juneau 0.7.3 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useState as Me, useRef as Ue, useEffect as St, useCallback as de, useMemo as Ir, useContext as sn, createContext as Tr } from "react";
1
+ import { useState as Me, useRef as Ue, useEffect as St, useCallback as de, useMemo as Ar, useContext as sn, createContext as Tr } from "react";
2
2
  import { jsx as b, jsxs as Y, Fragment as un } from "react/jsx-runtime";
3
3
  function Ki(e) {
4
4
  return e.map((n) => n.role !== "assistant" || n.parts.some((t) => t.type === "text") ? n : { ...n, parts: [{ type: "text", text: "" }] });
@@ -11,7 +11,7 @@ async function Nn(e, n, t) {
11
11
  for await (const r of e)
12
12
  if (t?.aborted || (n(r), r.type === "done" || r.type === "error")) break;
13
13
  }
14
- function zr(e) {
14
+ function Pr(e) {
15
15
  return e.type === "proposal";
16
16
  }
17
17
  const el = 1;
@@ -24,7 +24,7 @@ function Xh(e) {
24
24
  }));
25
25
  }
26
26
  function tl(e) {
27
- return zr(e) && !e.proposal.resolved ? { ...e, proposal: { ...e.proposal, resolved: "expired" } } : e;
27
+ return Pr(e) && !e.proposal.resolved ? { ...e, proposal: { ...e.proposal, resolved: "expired" } } : e;
28
28
  }
29
29
  function Gh(e) {
30
30
  return e.map(({ v: n, ...t }) => ({
@@ -207,7 +207,7 @@ async function* ee(e, n) {
207
207
  for (let r = 0; r < e.length; r += 3)
208
208
  yield { type: "text", text: e.slice(r, r + 3) }, await K(n);
209
209
  }
210
- function Pr(e) {
210
+ function zr(e) {
211
211
  if (!e || e === "[DONE]") return [];
212
212
  let n;
213
213
  try {
@@ -307,7 +307,7 @@ async function* cl(e, n) {
307
307
  }
308
308
  const fl = (e) => {
309
309
  if (!e || e === "[DONE]") return [];
310
- const n = Pr(e);
310
+ const n = zr(e);
311
311
  if (n.length > 0) return n;
312
312
  try {
313
313
  const t = JSON.parse(e);
@@ -383,7 +383,7 @@ async function* pl(e, n) {
383
383
  yield { type: "done" };
384
384
  }
385
385
  const hl = (e) => {
386
- const n = Pr(e);
386
+ const n = zr(e);
387
387
  return n.length > 0 ? n : e ? [{ type: "text", text: e }] : [];
388
388
  };
389
389
  let dl = 0;
@@ -397,11 +397,11 @@ function ml({
397
397
  historyLimit: o,
398
398
  onMessagesChange: l
399
399
  }) {
400
- const [a, s] = Me(i ?? []), [u, f] = Me(""), [c, h] = Me(!1), [p, g] = Me(!1), [C, S] = Me(null), y = Ue(null), A = Ue(!1), _ = Ue(l);
400
+ const [a, s] = Me(i ?? []), [u, f] = Me(""), [c, h] = Me(!1), [p, g] = Me(!1), [C, S] = Me(null), y = Ue(null), I = Ue(!1), _ = Ue(l);
401
401
  St(() => {
402
402
  _.current = l;
403
403
  }), St(() => {
404
- !A.current || c || (A.current = !1, _.current?.(a));
404
+ !I.current || c || (I.current = !1, _.current?.(a));
405
405
  }, [a, c]);
406
406
  const L = de((v) => {
407
407
  s((R) => {
@@ -477,14 +477,14 @@ function ml({
477
477
  const m = te instanceof Error ? te.message : "Unknown error occurred";
478
478
  S(m), d(), L({ type: "error", message: m });
479
479
  } finally {
480
- A.current = !0, h(!1), g(!1);
480
+ I.current = !0, h(!1), g(!1);
481
481
  }
482
482
  }, [e, n, o, N, L]), O = de(async () => {
483
483
  const v = u.trim();
484
484
  !v || c || (f(""), await x(v, a));
485
- }, [u, c, a, x]), $ = de(async (v) => {
485
+ }, [u, c, a, x]), H = de(async (v) => {
486
486
  !v.trim() || c || await x(v, a);
487
- }, [c, a, x]), H = de(async (v) => {
487
+ }, [c, a, x]), j = de(async (v) => {
488
488
  if (c) return;
489
489
  S(null), h(!0), g(!0);
490
490
  const R = {
@@ -527,51 +527,51 @@ function ml({
527
527
  const d = W instanceof Error ? W.message : "Unknown error occurred";
528
528
  S(d), L({ type: "error", message: d });
529
529
  } finally {
530
- A.current = !0, h(!1), g(!1);
530
+ I.current = !0, h(!1), g(!1);
531
531
  }
532
532
  }, [c, e, n, N, L]), k = de(() => {
533
533
  y.current?.abort(), h(!1), g(!1);
534
534
  }, []), T = de((v) => {
535
- y.current?.abort(), A.current = !0, s(v ?? []), f(""), S(null), h(!1), g(!1);
536
- }, []), z = de((v, R) => {
537
- A.current = !0, s((B) => B.map((Q) => ({
535
+ y.current?.abort(), I.current = !0, s(v ?? []), f(""), S(null), h(!1), g(!1);
536
+ }, []), P = de((v, R) => {
537
+ I.current = !0, s((B) => B.map((Q) => ({
538
538
  ...Q,
539
539
  parts: Q.parts.map(
540
- (W) => zr(W) && W.proposal.id === v ? { ...W, proposal: { ...W.proposal, resolved: R } } : W
540
+ (W) => Pr(W) && W.proposal.id === v ? { ...W, proposal: { ...W.proposal, resolved: R } } : W
541
541
  )
542
542
  })));
543
543
  }, []), U = de((v, R) => {
544
- z(v, "confirmed"), t?.(v, R);
545
- }, [t, z]), P = de((v) => {
546
- z(v, "cancelled"), r?.(v);
547
- }, [r, z]);
548
- return Ir(() => ({
544
+ P(v, "confirmed"), t?.(v, R);
545
+ }, [t, P]), z = de((v) => {
546
+ P(v, "cancelled"), r?.(v);
547
+ }, [r, P]);
548
+ return Ar(() => ({
549
549
  messages: a,
550
550
  input: u,
551
551
  setInput: f,
552
552
  sendMessage: O,
553
- sendMessageWithText: $,
554
- sendGreeting: H,
553
+ sendMessageWithText: H,
554
+ sendGreeting: j,
555
555
  stop: k,
556
556
  isLoading: c,
557
557
  isConnecting: p,
558
558
  error: C,
559
559
  reset: T,
560
560
  confirmProposal: U,
561
- cancelProposal: P
561
+ cancelProposal: z
562
562
  }), [
563
563
  a,
564
564
  u,
565
565
  O,
566
- $,
567
566
  H,
567
+ j,
568
568
  k,
569
569
  c,
570
570
  p,
571
571
  C,
572
572
  T,
573
573
  U,
574
- P
574
+ z
575
575
  ]);
576
576
  }
577
577
  const Lr = {
@@ -605,7 +605,7 @@ const Lr = {
605
605
  function Te() {
606
606
  return sn(Dr);
607
607
  }
608
- const gl = "_root_1etc2_1", yl = {
608
+ const gl = "_root_14q8g_1", yl = {
609
609
  root: gl
610
610
  };
611
611
  function td({ children: e, theme: n, labels: t, defaultTitle: r, className: i, style: o }) {
@@ -685,7 +685,7 @@ function rd({
685
685
  initialMessages: i,
686
686
  historyLimit: o,
687
687
  onMessagesChange: l
688
- }), h = Ir(
688
+ }), h = Ar(
689
689
  () => ({ ...c, setContext: f }),
690
690
  [c, f]
691
691
  );
@@ -847,7 +847,7 @@ function El({ className: e, style: n, "aria-hidden": t = !0 }) {
847
847
  }
848
848
  );
849
849
  }
850
- function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
850
+ function Il({ className: e, style: n, "aria-hidden": t = !0 }) {
851
851
  return /* @__PURE__ */ b(
852
852
  "svg",
853
853
  {
@@ -863,7 +863,7 @@ function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
863
863
  }
864
864
  );
865
865
  }
866
- function Il({ className: e, style: n, "aria-hidden": t = !0 }) {
866
+ function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
867
867
  return /* @__PURE__ */ b(
868
868
  "svg",
869
869
  {
@@ -885,9 +885,9 @@ function Tl(e, n) {
885
885
  (t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
886
886
  ).trim();
887
887
  }
888
- const zl = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pl = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ll = {};
888
+ const Pl = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, zl = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ll = {};
889
889
  function Fn(e, n) {
890
- return (Ll.jsx ? Pl : zl).test(e);
890
+ return (Ll.jsx ? zl : Pl).test(e);
891
891
  }
892
892
  const Dl = /[ \t\n\f\r]/g;
893
893
  function Nl(e) {
@@ -2051,7 +2051,7 @@ function $l(e, n) {
2051
2051
  return e.property[e.normal[t]];
2052
2052
  if (t.length > 4 && t.slice(0, 4) === "data" && jl.test(n)) {
2053
2053
  if (n.charAt(4) === "-") {
2054
- const o = n.slice(5).replace(jn, Vl);
2054
+ const o = n.slice(5).replace(jn, ql);
2055
2055
  r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
2056
2056
  } else {
2057
2057
  const o = n.slice(4);
@@ -2067,17 +2067,17 @@ function $l(e, n) {
2067
2067
  function Hl(e) {
2068
2068
  return "-" + e.toLowerCase();
2069
2069
  }
2070
- function Vl(e) {
2070
+ function ql(e) {
2071
2071
  return e.charAt(1).toUpperCase();
2072
2072
  }
2073
- const ql = Rr([Mr, Ml, Br, jr, $r], "html"), pn = Rr([Mr, Fl, Br, jr, $r], "svg");
2073
+ const Vl = Rr([Mr, Ml, Br, jr, $r], "html"), pn = Rr([Mr, Fl, Br, jr, $r], "svg");
2074
2074
  function Ul(e) {
2075
2075
  return e.join(" ").trim();
2076
2076
  }
2077
2077
  function Hr(e) {
2078
2078
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2079
2079
  }
2080
- var Ve = {}, Nt, $n;
2080
+ var qe = {}, Nt, $n;
2081
2081
  function Wl() {
2082
2082
  if ($n) return Nt;
2083
2083
  $n = 1;
@@ -2088,79 +2088,79 @@ function Wl() {
2088
2088
  throw new TypeError("First argument must be a string");
2089
2089
  if (!S) return [];
2090
2090
  y = y || {};
2091
- var A = 1, _ = 1;
2092
- function L(P) {
2093
- var v = P.match(n);
2094
- v && (A += v.length);
2095
- var R = P.lastIndexOf(s);
2096
- _ = ~R ? P.length - R : _ + P.length;
2091
+ var I = 1, _ = 1;
2092
+ function L(z) {
2093
+ var v = z.match(n);
2094
+ v && (I += v.length);
2095
+ var R = z.lastIndexOf(s);
2096
+ _ = ~R ? z.length - R : _ + z.length;
2097
2097
  }
2098
2098
  function N() {
2099
- var P = { line: A, column: _ };
2099
+ var z = { line: I, column: _ };
2100
2100
  return function(v) {
2101
- return v.position = new x(P), H(), v;
2101
+ return v.position = new x(z), j(), v;
2102
2102
  };
2103
2103
  }
2104
- function x(P) {
2105
- this.start = P, this.end = { line: A, column: _ }, this.source = y.source;
2104
+ function x(z) {
2105
+ this.start = z, this.end = { line: I, column: _ }, this.source = y.source;
2106
2106
  }
2107
2107
  x.prototype.content = S;
2108
- function O(P) {
2108
+ function O(z) {
2109
2109
  var v = new Error(
2110
- y.source + ":" + A + ":" + _ + ": " + P
2110
+ y.source + ":" + I + ":" + _ + ": " + z
2111
2111
  );
2112
- if (v.reason = P, v.filename = y.source, v.line = A, v.column = _, v.source = S, !y.silent) throw v;
2112
+ if (v.reason = z, v.filename = y.source, v.line = I, v.column = _, v.source = S, !y.silent) throw v;
2113
2113
  }
2114
- function $(P) {
2115
- var v = P.exec(S);
2114
+ function H(z) {
2115
+ var v = z.exec(S);
2116
2116
  if (v) {
2117
2117
  var R = v[0];
2118
2118
  return L(R), S = S.slice(R.length), v;
2119
2119
  }
2120
2120
  }
2121
- function H() {
2122
- $(t);
2121
+ function j() {
2122
+ H(t);
2123
2123
  }
2124
- function k(P) {
2124
+ function k(z) {
2125
2125
  var v;
2126
- for (P = P || []; v = T(); )
2127
- v !== !1 && P.push(v);
2128
- return P;
2126
+ for (z = z || []; v = T(); )
2127
+ v !== !1 && z.push(v);
2128
+ return z;
2129
2129
  }
2130
2130
  function T() {
2131
- var P = N();
2131
+ var z = N();
2132
2132
  if (!(u != S.charAt(0) || f != S.charAt(1))) {
2133
2133
  for (var v = 2; c != S.charAt(v) && (f != S.charAt(v) || u != S.charAt(v + 1)); )
2134
2134
  ++v;
2135
2135
  if (v += 2, c === S.charAt(v - 1))
2136
2136
  return O("End of comment missing");
2137
2137
  var R = S.slice(2, v - 2);
2138
- return _ += 2, L(R), S = S.slice(v), _ += 2, P({
2138
+ return _ += 2, L(R), S = S.slice(v), _ += 2, z({
2139
2139
  type: h,
2140
2140
  comment: R
2141
2141
  });
2142
2142
  }
2143
2143
  }
2144
- function z() {
2145
- var P = N(), v = $(r);
2144
+ function P() {
2145
+ var z = N(), v = H(r);
2146
2146
  if (v) {
2147
- if (T(), !$(i)) return O("property missing ':'");
2148
- var R = $(o), B = P({
2147
+ if (T(), !H(i)) return O("property missing ':'");
2148
+ var R = H(o), B = z({
2149
2149
  type: p,
2150
2150
  property: C(v[0].replace(e, c)),
2151
2151
  value: R ? C(R[0].replace(e, c)) : c
2152
2152
  });
2153
- return $(l), B;
2153
+ return H(l), B;
2154
2154
  }
2155
2155
  }
2156
2156
  function U() {
2157
- var P = [];
2158
- k(P);
2159
- for (var v; v = z(); )
2160
- v !== !1 && (P.push(v), k(P));
2161
- return P;
2157
+ var z = [];
2158
+ k(z);
2159
+ for (var v; v = P(); )
2160
+ v !== !1 && (z.push(v), k(z));
2161
+ return z;
2162
2162
  }
2163
- return H(), U();
2163
+ return j(), U();
2164
2164
  }
2165
2165
  function C(S) {
2166
2166
  return S ? S.replace(a, c) : c;
@@ -2169,12 +2169,12 @@ function Wl() {
2169
2169
  }
2170
2170
  var Hn;
2171
2171
  function Yl() {
2172
- if (Hn) return Ve;
2172
+ if (Hn) return qe;
2173
2173
  Hn = 1;
2174
- var e = Ve && Ve.__importDefault || function(r) {
2174
+ var e = qe && qe.__importDefault || function(r) {
2175
2175
  return r && r.__esModule ? r : { default: r };
2176
2176
  };
2177
- Object.defineProperty(Ve, "__esModule", { value: !0 }), Ve.default = t;
2177
+ Object.defineProperty(qe, "__esModule", { value: !0 }), qe.default = t;
2178
2178
  const n = e(Wl());
2179
2179
  function t(r, i) {
2180
2180
  let o = null;
@@ -2188,12 +2188,12 @@ function Yl() {
2188
2188
  a ? i(u, f, s) : f && (o = o || {}, o[u] = f);
2189
2189
  }), o;
2190
2190
  }
2191
- return Ve;
2191
+ return qe;
2192
2192
  }
2193
- var Ke = {}, Vn;
2193
+ var Ke = {}, qn;
2194
2194
  function Ql() {
2195
- if (Vn) return Ke;
2196
- Vn = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.camelCase = void 0;
2195
+ if (qn) return Ke;
2196
+ qn = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.camelCase = void 0;
2197
2197
  var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, o = function(u) {
2198
2198
  return !u || t.test(u) || e.test(u);
2199
2199
  }, l = function(u, f) {
@@ -2205,10 +2205,10 @@ function Ql() {
2205
2205
  };
2206
2206
  return Ke.camelCase = s, Ke;
2207
2207
  }
2208
- var Ze, qn;
2208
+ var Ze, Vn;
2209
2209
  function Xl() {
2210
- if (qn) return Ze;
2211
- qn = 1;
2210
+ if (Vn) return Ze;
2211
+ Vn = 1;
2212
2212
  var e = Ze && Ze.__importDefault || function(i) {
2213
2213
  return i && i.__esModule ? i : { default: i };
2214
2214
  }, n = e(Yl()), t = Ql();
@@ -2221,8 +2221,8 @@ function Xl() {
2221
2221
  return r.default = r, Ze = r, Ze;
2222
2222
  }
2223
2223
  var Gl = Xl();
2224
- const Jl = /* @__PURE__ */ Hr(Gl), Vr = qr("end"), hn = qr("start");
2225
- function qr(e) {
2224
+ const Jl = /* @__PURE__ */ Hr(Gl), qr = Vr("end"), hn = Vr("start");
2225
+ function Vr(e) {
2226
2226
  return n;
2227
2227
  function n(t) {
2228
2228
  const r = t && t.position && t.position[e] || {};
@@ -2235,7 +2235,7 @@ function qr(e) {
2235
2235
  }
2236
2236
  }
2237
2237
  function Kl(e) {
2238
- const n = hn(e), t = Vr(e);
2238
+ const n = hn(e), t = qr(e);
2239
2239
  if (n && t)
2240
2240
  return { start: n, end: t };
2241
2241
  }
@@ -2368,7 +2368,7 @@ function ro(e, n) {
2368
2368
  ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
2369
2369
  passKeys: n.passKeys !== !1,
2370
2370
  passNode: n.passNode || !1,
2371
- schema: n.space === "svg" ? pn : ql,
2371
+ schema: n.space === "svg" ? pn : Vl,
2372
2372
  stylePropertyNameCase: n.stylePropertyNameCase || "dom",
2373
2373
  tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
2374
2374
  }, o = Wr(i, e, void 0);
@@ -2741,7 +2741,7 @@ function Jr(e, n) {
2741
2741
  function ke(e) {
2742
2742
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
2743
2743
  }
2744
- const ae = ze(/[A-Za-z]/), ie = ze(/[\dA-Za-z]/), vo = ze(/[#-'*+\--9=?A-Z^-~]/);
2744
+ const ae = Pe(/[A-Za-z]/), ie = Pe(/[\dA-Za-z]/), vo = Pe(/[#-'*+\--9=?A-Z^-~]/);
2745
2745
  function vt(e) {
2746
2746
  return (
2747
2747
  // Special whitespace codes (which have negative values), C0 and Control
@@ -2749,18 +2749,18 @@ function vt(e) {
2749
2749
  e !== null && (e < 32 || e === 127)
2750
2750
  );
2751
2751
  }
2752
- const en = ze(/\d/), _o = ze(/[\dA-Fa-f]/), Eo = ze(/[!-/:-@[-`{-~]/);
2752
+ const en = Pe(/\d/), _o = Pe(/[\dA-Fa-f]/), Eo = Pe(/[!-/:-@[-`{-~]/);
2753
2753
  function D(e) {
2754
2754
  return e !== null && e < -2;
2755
2755
  }
2756
2756
  function J(e) {
2757
2757
  return e !== null && (e < 0 || e === 32);
2758
2758
  }
2759
- function j(e) {
2759
+ function $(e) {
2760
2760
  return e === -2 || e === -1 || e === 32;
2761
2761
  }
2762
- const It = ze(/\p{P}|\p{S}/u), Oe = ze(/\s/);
2763
- function ze(e) {
2762
+ const At = Pe(/\p{P}|\p{S}/u), Oe = Pe(/\s/);
2763
+ function Pe(e) {
2764
2764
  return n;
2765
2765
  function n(t) {
2766
2766
  return t !== null && t > -1 && e.test(String.fromCharCode(t));
@@ -2785,21 +2785,21 @@ function Qe(e) {
2785
2785
  }
2786
2786
  return n.join("") + e.slice(r);
2787
2787
  }
2788
- function q(e, n, t, r) {
2788
+ function V(e, n, t, r) {
2789
2789
  const i = r ? r - 1 : Number.POSITIVE_INFINITY;
2790
2790
  let o = 0;
2791
2791
  return l;
2792
2792
  function l(s) {
2793
- return j(s) ? (e.enter(t), a(s)) : n(s);
2793
+ return $(s) ? (e.enter(t), a(s)) : n(s);
2794
2794
  }
2795
2795
  function a(s) {
2796
- return j(s) && o++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
2796
+ return $(s) && o++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
2797
2797
  }
2798
2798
  }
2799
- const Ao = {
2800
- tokenize: Io
2799
+ const Io = {
2800
+ tokenize: Ao
2801
2801
  };
2802
- function Io(e) {
2802
+ function Ao(e) {
2803
2803
  const n = e.attempt(this.parser.constructs.contentInitial, r, i);
2804
2804
  let t;
2805
2805
  return n;
@@ -2808,7 +2808,7 @@ function Io(e) {
2808
2808
  e.consume(a);
2809
2809
  return;
2810
2810
  }
2811
- return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), q(e, n, "linePrefix");
2811
+ return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), V(e, n, "linePrefix");
2812
2812
  }
2813
2813
  function i(a) {
2814
2814
  return e.enter("paragraph"), o(a);
@@ -2829,11 +2829,11 @@ function Io(e) {
2829
2829
  }
2830
2830
  }
2831
2831
  const To = {
2832
- tokenize: zo
2833
- }, Gn = {
2834
2832
  tokenize: Po
2833
+ }, Gn = {
2834
+ tokenize: zo
2835
2835
  };
2836
- function zo(e) {
2836
+ function Po(e) {
2837
2837
  const n = this, t = [];
2838
2838
  let r = 0, i, o, l;
2839
2839
  return a;
@@ -2846,7 +2846,7 @@ function zo(e) {
2846
2846
  }
2847
2847
  function s(_) {
2848
2848
  if (r++, n.containerState._closeFlow) {
2849
- n.containerState._closeFlow = void 0, i && A();
2849
+ n.containerState._closeFlow = void 0, i && I();
2850
2850
  const L = n.events.length;
2851
2851
  let N = L, x;
2852
2852
  for (; N--; )
@@ -2875,7 +2875,7 @@ function zo(e) {
2875
2875
  return n.containerState = {}, e.check(Gn, f, c)(_);
2876
2876
  }
2877
2877
  function f(_) {
2878
- return i && A(), y(r), h(_);
2878
+ return i && I(), y(r), h(_);
2879
2879
  }
2880
2880
  function c(_) {
2881
2881
  return n.parser.lazy[n.now().line] = r !== t.length, l = n.now().offset, g(_);
@@ -2888,7 +2888,7 @@ function zo(e) {
2888
2888
  }
2889
2889
  function g(_) {
2890
2890
  if (_ === null) {
2891
- i && A(), y(0), e.consume(_);
2891
+ i && I(), y(0), e.consume(_);
2892
2892
  return;
2893
2893
  }
2894
2894
  return i = i || n.parser.flow(n.now()), e.enter("chunkFlow", {
@@ -2917,20 +2917,20 @@ function zo(e) {
2917
2917
  )
2918
2918
  return;
2919
2919
  const O = n.events.length;
2920
- let $ = O, H, k;
2921
- for (; $--; )
2922
- if (n.events[$][0] === "exit" && n.events[$][1].type === "chunkFlow") {
2923
- if (H) {
2924
- k = n.events[$][1].end;
2920
+ let H = O, j, k;
2921
+ for (; H--; )
2922
+ if (n.events[H][0] === "exit" && n.events[H][1].type === "chunkFlow") {
2923
+ if (j) {
2924
+ k = n.events[H][1].end;
2925
2925
  break;
2926
2926
  }
2927
- H = !0;
2927
+ j = !0;
2928
2928
  }
2929
2929
  for (y(r), x = O; x < n.events.length; )
2930
2930
  n.events[x][1].end = {
2931
2931
  ...k
2932
2932
  }, x++;
2933
- he(n.events, $ + 1, 0, n.events.slice(O)), n.events.length = x;
2933
+ he(n.events, H + 1, 0, n.events.slice(O)), n.events.length = x;
2934
2934
  }
2935
2935
  }
2936
2936
  function y(_) {
@@ -2941,17 +2941,17 @@ function zo(e) {
2941
2941
  }
2942
2942
  t.length = _;
2943
2943
  }
2944
- function A() {
2944
+ function I() {
2945
2945
  i.write([null]), o = void 0, i = void 0, n.containerState._closeFlow = void 0;
2946
2946
  }
2947
2947
  }
2948
- function Po(e, n, t) {
2949
- return q(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2948
+ function zo(e, n, t) {
2949
+ return V(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2950
2950
  }
2951
2951
  function We(e) {
2952
2952
  if (e === null || J(e) || Oe(e))
2953
2953
  return 1;
2954
- if (It(e))
2954
+ if (At(e))
2955
2955
  return 2;
2956
2956
  }
2957
2957
  function Tt(e, n, t) {
@@ -3086,7 +3086,7 @@ const ft = {
3086
3086
  function Mo(e, n, t) {
3087
3087
  return r;
3088
3088
  function r(o) {
3089
- return j(o) ? q(e, i, "linePrefix")(o) : i(o);
3089
+ return $(o) ? V(e, i, "linePrefix")(o) : i(o);
3090
3090
  }
3091
3091
  function i(o) {
3092
3092
  return o === null || D(o) ? n(o) : t(o);
@@ -3113,14 +3113,14 @@ function Fo(e, n, t) {
3113
3113
  return t(l);
3114
3114
  }
3115
3115
  function o(l) {
3116
- return j(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(l));
3116
+ return $(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(l));
3117
3117
  }
3118
3118
  }
3119
3119
  function Oo(e, n, t) {
3120
3120
  const r = this;
3121
3121
  return i;
3122
3122
  function i(l) {
3123
- return j(l) ? q(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
3123
+ return $(l) ? V(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
3124
3124
  }
3125
3125
  function o(l) {
3126
3126
  return e.attempt(Kr, n, t)(l);
@@ -3169,7 +3169,7 @@ function $o(e, n, t) {
3169
3169
  }
3170
3170
  const Kn = {
3171
3171
  partial: !0,
3172
- tokenize: Vo
3172
+ tokenize: qo
3173
3173
  }, Zn = {
3174
3174
  concrete: !0,
3175
3175
  name: "codeFenced",
@@ -3190,7 +3190,7 @@ function Ho(e, n, t) {
3190
3190
  return o = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, a = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(x);
3191
3191
  }
3192
3192
  function f(x) {
3193
- return x === a ? (l++, e.consume(x), f) : l < 3 ? t(x) : (e.exit("codeFencedFenceSequence"), j(x) ? q(e, c, "whitespace")(x) : c(x));
3193
+ return x === a ? (l++, e.consume(x), f) : l < 3 ? t(x) : (e.exit("codeFencedFenceSequence"), $(x) ? V(e, c, "whitespace")(x) : c(x));
3194
3194
  }
3195
3195
  function c(x) {
3196
3196
  return x === null || D(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(Kn, C, L)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
@@ -3198,7 +3198,7 @@ function Ho(e, n, t) {
3198
3198
  }), h(x));
3199
3199
  }
3200
3200
  function h(x) {
3201
- return x === null || D(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(x)) : j(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), q(e, p, "whitespace")(x)) : x === 96 && x === a ? t(x) : (e.consume(x), h);
3201
+ return x === null || D(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(x)) : $(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), V(e, p, "whitespace")(x)) : x === 96 && x === a ? t(x) : (e.consume(x), h);
3202
3202
  }
3203
3203
  function p(x) {
3204
3204
  return x === null || D(x) ? c(x) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -3215,38 +3215,38 @@ function Ho(e, n, t) {
3215
3215
  return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), y;
3216
3216
  }
3217
3217
  function y(x) {
3218
- return o > 0 && j(x) ? q(e, A, "linePrefix", o + 1)(x) : A(x);
3218
+ return o > 0 && $(x) ? V(e, I, "linePrefix", o + 1)(x) : I(x);
3219
3219
  }
3220
- function A(x) {
3220
+ function I(x) {
3221
3221
  return x === null || D(x) ? e.check(Kn, C, L)(x) : (e.enter("codeFlowValue"), _(x));
3222
3222
  }
3223
3223
  function _(x) {
3224
- return x === null || D(x) ? (e.exit("codeFlowValue"), A(x)) : (e.consume(x), _);
3224
+ return x === null || D(x) ? (e.exit("codeFlowValue"), I(x)) : (e.consume(x), _);
3225
3225
  }
3226
3226
  function L(x) {
3227
3227
  return e.exit("codeFenced"), n(x);
3228
3228
  }
3229
- function N(x, O, $) {
3230
- let H = 0;
3229
+ function N(x, O, H) {
3230
+ let j = 0;
3231
3231
  return k;
3232
3232
  function k(v) {
3233
3233
  return x.enter("lineEnding"), x.consume(v), x.exit("lineEnding"), T;
3234
3234
  }
3235
3235
  function T(v) {
3236
- return x.enter("codeFencedFence"), j(v) ? q(x, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : z(v);
3236
+ return x.enter("codeFencedFence"), $(v) ? V(x, P, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : P(v);
3237
3237
  }
3238
- function z(v) {
3239
- return v === a ? (x.enter("codeFencedFenceSequence"), U(v)) : $(v);
3238
+ function P(v) {
3239
+ return v === a ? (x.enter("codeFencedFenceSequence"), U(v)) : H(v);
3240
3240
  }
3241
3241
  function U(v) {
3242
- return v === a ? (H++, x.consume(v), U) : H >= l ? (x.exit("codeFencedFenceSequence"), j(v) ? q(x, P, "whitespace")(v) : P(v)) : $(v);
3242
+ return v === a ? (j++, x.consume(v), U) : j >= l ? (x.exit("codeFencedFenceSequence"), $(v) ? V(x, z, "whitespace")(v) : z(v)) : H(v);
3243
3243
  }
3244
- function P(v) {
3245
- return v === null || D(v) ? (x.exit("codeFencedFence"), O(v)) : $(v);
3244
+ function z(v) {
3245
+ return v === null || D(v) ? (x.exit("codeFencedFence"), O(v)) : H(v);
3246
3246
  }
3247
3247
  }
3248
3248
  }
3249
- function Vo(e, n, t) {
3249
+ function qo(e, n, t) {
3250
3250
  const r = this;
3251
3251
  return i;
3252
3252
  function i(l) {
@@ -3259,7 +3259,7 @@ function Vo(e, n, t) {
3259
3259
  const Mt = {
3260
3260
  name: "codeIndented",
3261
3261
  tokenize: Uo
3262
- }, qo = {
3262
+ }, Vo = {
3263
3263
  partial: !0,
3264
3264
  tokenize: Wo
3265
3265
  };
@@ -3267,14 +3267,14 @@ function Uo(e, n, t) {
3267
3267
  const r = this;
3268
3268
  return i;
3269
3269
  function i(u) {
3270
- return e.enter("codeIndented"), q(e, o, "linePrefix", 5)(u);
3270
+ return e.enter("codeIndented"), V(e, o, "linePrefix", 5)(u);
3271
3271
  }
3272
3272
  function o(u) {
3273
3273
  const f = r.events[r.events.length - 1];
3274
3274
  return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(u) : t(u);
3275
3275
  }
3276
3276
  function l(u) {
3277
- return u === null ? s(u) : D(u) ? e.attempt(qo, l, s)(u) : (e.enter("codeFlowValue"), a(u));
3277
+ return u === null ? s(u) : D(u) ? e.attempt(Vo, l, s)(u) : (e.enter("codeFlowValue"), a(u));
3278
3278
  }
3279
3279
  function a(u) {
3280
3280
  return u === null || D(u) ? (e.exit("codeFlowValue"), l(u)) : (e.consume(u), a);
@@ -3287,7 +3287,7 @@ function Wo(e, n, t) {
3287
3287
  const r = this;
3288
3288
  return i;
3289
3289
  function i(l) {
3290
- return r.parser.lazy[r.now().line] ? t(l) : D(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), i) : q(e, o, "linePrefix", 5)(l);
3290
+ return r.parser.lazy[r.now().line] ? t(l) : D(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), i) : V(e, o, "linePrefix", 5)(l);
3291
3291
  }
3292
3292
  function o(l) {
3293
3293
  const a = r.events[r.events.length - 1];
@@ -3549,8 +3549,8 @@ function Ko(e, n) {
3549
3549
  // Find a void token that includes a break.
3550
3550
  a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (C = h + 1, S.push(C), p._tokenizer = void 0, p.previous = void 0, p = p.next);
3551
3551
  for (l.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : S.pop(), h = S.length; h--; ) {
3552
- const y = a.slice(S[h], S[h + 1]), A = o.pop();
3553
- s.push([A, A + y.length - 1]), e.splice(A, 2, y);
3552
+ const y = a.slice(S[h], S[h + 1]), I = o.pop();
3553
+ s.push([I, I + y.length - 1]), e.splice(I, 2, y);
3554
3554
  }
3555
3555
  for (s.reverse(), h = -1; ++h < s.length; )
3556
3556
  u[g + s[h][0]] = g + s[h][1], g += s[h][1] - s[h][0] - 1;
@@ -3591,7 +3591,7 @@ function ra(e, n, t) {
3591
3591
  const r = this;
3592
3592
  return i;
3593
3593
  function i(l) {
3594
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), q(e, o, "linePrefix");
3594
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), V(e, o, "linePrefix");
3595
3595
  }
3596
3596
  function o(l) {
3597
3597
  if (l === null || D(l))
@@ -3645,7 +3645,7 @@ function ri(e, n, t, r, i, o) {
3645
3645
  }), c(p));
3646
3646
  }
3647
3647
  function c(p) {
3648
- return p === null || p === 91 || p === 93 || D(p) || a++ > 999 ? (e.exit("chunkString"), f(p)) : (e.consume(p), s || (s = !j(p)), p === 92 ? h : c);
3648
+ return p === null || p === 91 || p === 93 || D(p) || a++ > 999 ? (e.exit("chunkString"), f(p)) : (e.consume(p), s || (s = !$(p)), p === 92 ? h : c);
3649
3649
  }
3650
3650
  function h(p) {
3651
3651
  return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, c) : c(p);
@@ -3661,7 +3661,7 @@ function ii(e, n, t, r, i, o) {
3661
3661
  return h === l ? (e.enter(i), e.consume(h), e.exit(i), e.exit(r), n) : (e.enter(o), u(h));
3662
3662
  }
3663
3663
  function u(h) {
3664
- return h === l ? (e.exit(o), s(l)) : h === null ? t(h) : D(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), q(e, u, "linePrefix")) : (e.enter("chunkString", {
3664
+ return h === l ? (e.exit(o), s(l)) : h === null ? t(h) : D(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), V(e, u, "linePrefix")) : (e.enter("chunkString", {
3665
3665
  contentType: "string"
3666
3666
  }), f(h));
3667
3667
  }
@@ -3676,7 +3676,7 @@ function ot(e, n) {
3676
3676
  let t;
3677
3677
  return r;
3678
3678
  function r(i) {
3679
- return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : j(i) ? q(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3679
+ return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : $(i) ? V(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3680
3680
  }
3681
3681
  }
3682
3682
  const ia = {
@@ -3728,7 +3728,7 @@ function oa(e, n, t) {
3728
3728
  return e.attempt(la, c, c)(p);
3729
3729
  }
3730
3730
  function c(p) {
3731
- return j(p) ? q(e, h, "whitespace")(p) : h(p);
3731
+ return $(p) ? V(e, h, "whitespace")(p) : h(p);
3732
3732
  }
3733
3733
  function h(p) {
3734
3734
  return p === null || D(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
@@ -3743,7 +3743,7 @@ function aa(e, n, t) {
3743
3743
  return ii(e, o, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
3744
3744
  }
3745
3745
  function o(a) {
3746
- return j(a) ? q(e, l, "whitespace")(a) : l(a);
3746
+ return $(a) ? V(e, l, "whitespace")(a) : l(a);
3747
3747
  }
3748
3748
  function l(a) {
3749
3749
  return a === null || D(a) ? n(a) : t(a);
@@ -3793,7 +3793,7 @@ function pa(e, n, t) {
3793
3793
  return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || J(f) ? (e.exit("atxHeadingSequence"), a(f)) : t(f);
3794
3794
  }
3795
3795
  function a(f) {
3796
- return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || D(f) ? (e.exit("atxHeading"), n(f)) : j(f) ? q(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), u(f));
3796
+ return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || D(f) ? (e.exit("atxHeading"), n(f)) : $(f) ? V(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), u(f));
3797
3797
  }
3798
3798
  function s(f) {
3799
3799
  return f === 35 ? (e.consume(f), s) : (e.exit("atxHeadingSequence"), a(f));
@@ -3904,81 +3904,81 @@ function ka(e, n, t) {
3904
3904
  }
3905
3905
  function g(m) {
3906
3906
  const ne = "CDATA[";
3907
- return m === ne.charCodeAt(a++) ? (e.consume(m), a === ne.length ? r.interrupt ? n : z : g) : t(m);
3907
+ return m === ne.charCodeAt(a++) ? (e.consume(m), a === ne.length ? r.interrupt ? n : P : g) : t(m);
3908
3908
  }
3909
3909
  function C(m) {
3910
3910
  return ae(m) ? (e.consume(m), l = String.fromCharCode(m), S) : t(m);
3911
3911
  }
3912
3912
  function S(m) {
3913
3913
  if (m === null || m === 47 || m === 62 || J(m)) {
3914
- const ne = m === 47, Pe = l.toLowerCase();
3915
- return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : z(m)) : ha.includes(l.toLowerCase()) ? (i = 6, ne ? (e.consume(m), y) : r.interrupt ? n(m) : z(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ? A(m) : _(m));
3914
+ const ne = m === 47, ze = l.toLowerCase();
3915
+ return !ne && !o && er.includes(ze) ? (i = 1, r.interrupt ? n(m) : P(m)) : ha.includes(l.toLowerCase()) ? (i = 6, ne ? (e.consume(m), y) : r.interrupt ? n(m) : P(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ? I(m) : _(m));
3916
3916
  }
3917
3917
  return m === 45 || ie(m) ? (e.consume(m), l += String.fromCharCode(m), S) : t(m);
3918
3918
  }
3919
3919
  function y(m) {
3920
- return m === 62 ? (e.consume(m), r.interrupt ? n : z) : t(m);
3920
+ return m === 62 ? (e.consume(m), r.interrupt ? n : P) : t(m);
3921
3921
  }
3922
- function A(m) {
3923
- return j(m) ? (e.consume(m), A) : k(m);
3922
+ function I(m) {
3923
+ return $(m) ? (e.consume(m), I) : k(m);
3924
3924
  }
3925
3925
  function _(m) {
3926
- return m === 47 ? (e.consume(m), k) : m === 58 || m === 95 || ae(m) ? (e.consume(m), L) : j(m) ? (e.consume(m), _) : k(m);
3926
+ return m === 47 ? (e.consume(m), k) : m === 58 || m === 95 || ae(m) ? (e.consume(m), L) : $(m) ? (e.consume(m), _) : k(m);
3927
3927
  }
3928
3928
  function L(m) {
3929
3929
  return m === 45 || m === 46 || m === 58 || m === 95 || ie(m) ? (e.consume(m), L) : N(m);
3930
3930
  }
3931
3931
  function N(m) {
3932
- return m === 61 ? (e.consume(m), x) : j(m) ? (e.consume(m), N) : _(m);
3932
+ return m === 61 ? (e.consume(m), x) : $(m) ? (e.consume(m), N) : _(m);
3933
3933
  }
3934
3934
  function x(m) {
3935
- return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), s = m, O) : j(m) ? (e.consume(m), x) : $(m);
3935
+ return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), s = m, O) : $(m) ? (e.consume(m), x) : H(m);
3936
3936
  }
3937
3937
  function O(m) {
3938
- return m === s ? (e.consume(m), s = null, H) : m === null || D(m) ? t(m) : (e.consume(m), O);
3939
- }
3940
- function $(m) {
3941
- return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || J(m) ? N(m) : (e.consume(m), $);
3938
+ return m === s ? (e.consume(m), s = null, j) : m === null || D(m) ? t(m) : (e.consume(m), O);
3942
3939
  }
3943
3940
  function H(m) {
3944
- return m === 47 || m === 62 || j(m) ? _(m) : t(m);
3941
+ return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || J(m) ? N(m) : (e.consume(m), H);
3942
+ }
3943
+ function j(m) {
3944
+ return m === 47 || m === 62 || $(m) ? _(m) : t(m);
3945
3945
  }
3946
3946
  function k(m) {
3947
3947
  return m === 62 ? (e.consume(m), T) : t(m);
3948
3948
  }
3949
3949
  function T(m) {
3950
- return m === null || D(m) ? z(m) : j(m) ? (e.consume(m), T) : t(m);
3950
+ return m === null || D(m) ? P(m) : $(m) ? (e.consume(m), T) : t(m);
3951
3951
  }
3952
- function z(m) {
3953
- return m === 45 && i === 2 ? (e.consume(m), R) : m === 60 && i === 1 ? (e.consume(m), B) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), W) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(ma, te, U)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), U(m)) : (e.consume(m), z);
3952
+ function P(m) {
3953
+ return m === 45 && i === 2 ? (e.consume(m), R) : m === 60 && i === 1 ? (e.consume(m), B) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), W) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(ma, te, U)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), U(m)) : (e.consume(m), P);
3954
3954
  }
3955
3955
  function U(m) {
3956
- return e.check(ga, P, te)(m);
3956
+ return e.check(ga, z, te)(m);
3957
3957
  }
3958
- function P(m) {
3958
+ function z(m) {
3959
3959
  return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), v;
3960
3960
  }
3961
3961
  function v(m) {
3962
- return m === null || D(m) ? U(m) : (e.enter("htmlFlowData"), z(m));
3962
+ return m === null || D(m) ? U(m) : (e.enter("htmlFlowData"), P(m));
3963
3963
  }
3964
3964
  function R(m) {
3965
- return m === 45 ? (e.consume(m), d) : z(m);
3965
+ return m === 45 ? (e.consume(m), d) : P(m);
3966
3966
  }
3967
3967
  function B(m) {
3968
- return m === 47 ? (e.consume(m), l = "", Q) : z(m);
3968
+ return m === 47 ? (e.consume(m), l = "", Q) : P(m);
3969
3969
  }
3970
3970
  function Q(m) {
3971
3971
  if (m === 62) {
3972
3972
  const ne = l.toLowerCase();
3973
- return er.includes(ne) ? (e.consume(m), se) : z(m);
3973
+ return er.includes(ne) ? (e.consume(m), se) : P(m);
3974
3974
  }
3975
- return ae(m) && l.length < 8 ? (e.consume(m), l += String.fromCharCode(m), Q) : z(m);
3975
+ return ae(m) && l.length < 8 ? (e.consume(m), l += String.fromCharCode(m), Q) : P(m);
3976
3976
  }
3977
3977
  function W(m) {
3978
- return m === 93 ? (e.consume(m), d) : z(m);
3978
+ return m === 93 ? (e.consume(m), d) : P(m);
3979
3979
  }
3980
3980
  function d(m) {
3981
- return m === 62 ? (e.consume(m), se) : m === 45 && i === 2 ? (e.consume(m), d) : z(m);
3981
+ return m === 62 ? (e.consume(m), se) : m === 45 && i === 2 ? (e.consume(m), d) : P(m);
3982
3982
  }
3983
3983
  function se(m) {
3984
3984
  return m === null || D(m) ? (e.exit("htmlFlowData"), te(m)) : (e.consume(m), se);
@@ -4015,10 +4015,10 @@ function Ca(e, n, t) {
4015
4015
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(d), s;
4016
4016
  }
4017
4017
  function s(d) {
4018
- return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), N) : d === 63 ? (e.consume(d), _) : ae(d) ? (e.consume(d), $) : t(d);
4018
+ return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), N) : d === 63 ? (e.consume(d), _) : ae(d) ? (e.consume(d), H) : t(d);
4019
4019
  }
4020
4020
  function u(d) {
4021
- return d === 45 ? (e.consume(d), f) : d === 91 ? (e.consume(d), o = 0, g) : ae(d) ? (e.consume(d), A) : t(d);
4021
+ return d === 45 ? (e.consume(d), f) : d === 91 ? (e.consume(d), o = 0, g) : ae(d) ? (e.consume(d), I) : t(d);
4022
4022
  }
4023
4023
  function f(d) {
4024
4024
  return d === 45 ? (e.consume(d), p) : t(d);
@@ -4045,8 +4045,8 @@ function Ca(e, n, t) {
4045
4045
  function y(d) {
4046
4046
  return d === 62 ? R(d) : d === 93 ? (e.consume(d), y) : C(d);
4047
4047
  }
4048
- function A(d) {
4049
- return d === null || d === 62 ? R(d) : D(d) ? (l = A, B(d)) : (e.consume(d), A);
4048
+ function I(d) {
4049
+ return d === null || d === 62 ? R(d) : D(d) ? (l = I, B(d)) : (e.consume(d), I);
4050
4050
  }
4051
4051
  function _(d) {
4052
4052
  return d === null ? t(d) : d === 63 ? (e.consume(d), L) : D(d) ? (l = _, B(d)) : (e.consume(d), _);
@@ -4061,31 +4061,31 @@ function Ca(e, n, t) {
4061
4061
  return d === 45 || ie(d) ? (e.consume(d), x) : O(d);
4062
4062
  }
4063
4063
  function O(d) {
4064
- return D(d) ? (l = O, B(d)) : j(d) ? (e.consume(d), O) : R(d);
4065
- }
4066
- function $(d) {
4067
- return d === 45 || ie(d) ? (e.consume(d), $) : d === 47 || d === 62 || J(d) ? H(d) : t(d);
4064
+ return D(d) ? (l = O, B(d)) : $(d) ? (e.consume(d), O) : R(d);
4068
4065
  }
4069
4066
  function H(d) {
4070
- return d === 47 ? (e.consume(d), R) : d === 58 || d === 95 || ae(d) ? (e.consume(d), k) : D(d) ? (l = H, B(d)) : j(d) ? (e.consume(d), H) : R(d);
4067
+ return d === 45 || ie(d) ? (e.consume(d), H) : d === 47 || d === 62 || J(d) ? j(d) : t(d);
4068
+ }
4069
+ function j(d) {
4070
+ return d === 47 ? (e.consume(d), R) : d === 58 || d === 95 || ae(d) ? (e.consume(d), k) : D(d) ? (l = j, B(d)) : $(d) ? (e.consume(d), j) : R(d);
4071
4071
  }
4072
4072
  function k(d) {
4073
4073
  return d === 45 || d === 46 || d === 58 || d === 95 || ie(d) ? (e.consume(d), k) : T(d);
4074
4074
  }
4075
4075
  function T(d) {
4076
- return d === 61 ? (e.consume(d), z) : D(d) ? (l = T, B(d)) : j(d) ? (e.consume(d), T) : H(d);
4076
+ return d === 61 ? (e.consume(d), P) : D(d) ? (l = T, B(d)) : $(d) ? (e.consume(d), T) : j(d);
4077
4077
  }
4078
- function z(d) {
4079
- return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, U) : D(d) ? (l = z, B(d)) : j(d) ? (e.consume(d), z) : (e.consume(d), P);
4078
+ function P(d) {
4079
+ return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, U) : D(d) ? (l = P, B(d)) : $(d) ? (e.consume(d), P) : (e.consume(d), z);
4080
4080
  }
4081
4081
  function U(d) {
4082
4082
  return d === i ? (e.consume(d), i = void 0, v) : d === null ? t(d) : D(d) ? (l = U, B(d)) : (e.consume(d), U);
4083
4083
  }
4084
- function P(d) {
4085
- return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ? H(d) : (e.consume(d), P);
4084
+ function z(d) {
4085
+ return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ? j(d) : (e.consume(d), z);
4086
4086
  }
4087
4087
  function v(d) {
4088
- return d === 47 || d === 62 || J(d) ? H(d) : t(d);
4088
+ return d === 47 || d === 62 || J(d) ? j(d) : t(d);
4089
4089
  }
4090
4090
  function R(d) {
4091
4091
  return d === 62 ? (e.consume(d), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(d);
@@ -4094,7 +4094,7 @@ function Ca(e, n, t) {
4094
4094
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), Q;
4095
4095
  }
4096
4096
  function Q(d) {
4097
- return j(d) ? q(e, W, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : W(d);
4097
+ return $(d) ? V(e, W, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : W(d);
4098
4098
  }
4099
4099
  function W(d) {
4100
4100
  return e.enter("htmlTextData"), l(d);
@@ -4103,14 +4103,14 @@ function Ca(e, n, t) {
4103
4103
  const xn = {
4104
4104
  name: "labelEnd",
4105
4105
  resolveAll: Ea,
4106
- resolveTo: Aa,
4107
- tokenize: Ia
4106
+ resolveTo: Ia,
4107
+ tokenize: Aa
4108
4108
  }, Sa = {
4109
4109
  tokenize: Ta
4110
4110
  }, va = {
4111
- tokenize: za
4112
- }, _a = {
4113
4111
  tokenize: Pa
4112
+ }, _a = {
4113
+ tokenize: za
4114
4114
  };
4115
4115
  function Ea(e) {
4116
4116
  let n = -1;
@@ -4124,7 +4124,7 @@ function Ea(e) {
4124
4124
  }
4125
4125
  return e.length !== t.length && he(e, 0, e.length, t), e;
4126
4126
  }
4127
- function Aa(e, n) {
4127
+ function Ia(e, n) {
4128
4128
  let t = e.length, r = 0, i, o, l, a;
4129
4129
  for (; t--; )
4130
4130
  if (i = e[t][1], o) {
@@ -4164,7 +4164,7 @@ function Aa(e, n) {
4164
4164
  };
4165
4165
  return a = [["enter", s, n], ["enter", u, n]], a = me(a, e.slice(o + 1, o + r + 3)), a = me(a, [["enter", f, n]]), a = me(a, Tt(n.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), n)), a = me(a, [["exit", f, n], e[l - 2], e[l - 1], ["exit", u, n]]), a = me(a, e.slice(l + 1)), a = me(a, [["exit", s, n]]), he(e, o, e.length, a), e;
4166
4166
  }
4167
- function Ia(e, n, t) {
4167
+ function Aa(e, n, t) {
4168
4168
  const r = this;
4169
4169
  let i = r.events.length, o, l;
4170
4170
  for (; i--; )
@@ -4219,7 +4219,7 @@ function Ta(e, n, t) {
4219
4219
  return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), n) : t(c);
4220
4220
  }
4221
4221
  }
4222
- function za(e, n, t) {
4222
+ function Pa(e, n, t) {
4223
4223
  const r = this;
4224
4224
  return i;
4225
4225
  function i(a) {
@@ -4232,7 +4232,7 @@ function za(e, n, t) {
4232
4232
  return t(a);
4233
4233
  }
4234
4234
  }
4235
- function Pa(e, n, t) {
4235
+ function za(e, n, t) {
4236
4236
  return r;
4237
4237
  function r(o) {
4238
4238
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
@@ -4281,7 +4281,7 @@ const Ft = {
4281
4281
  function Ma(e, n) {
4282
4282
  return t;
4283
4283
  function t(r) {
4284
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), q(e, n, "linePrefix");
4284
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), V(e, n, "linePrefix");
4285
4285
  }
4286
4286
  }
4287
4287
  const Ct = {
@@ -4301,19 +4301,19 @@ function Fa(e, n, t) {
4301
4301
  return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || D(u)) ? (e.exit("thematicBreak"), n(u)) : t(u);
4302
4302
  }
4303
4303
  function s(u) {
4304
- return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), j(u) ? q(e, a, "whitespace")(u) : a(u));
4304
+ return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), $(u) ? V(e, a, "whitespace")(u) : a(u));
4305
4305
  }
4306
4306
  }
4307
4307
  const ue = {
4308
4308
  continuation: {
4309
4309
  tokenize: $a
4310
4310
  },
4311
- exit: Va,
4311
+ exit: qa,
4312
4312
  name: "list",
4313
4313
  tokenize: ja
4314
4314
  }, Oa = {
4315
4315
  partial: !0,
4316
- tokenize: qa
4316
+ tokenize: Va
4317
4317
  }, Ba = {
4318
4318
  partial: !0,
4319
4319
  tokenize: Ha
@@ -4349,7 +4349,7 @@ function ja(e, n, t) {
4349
4349
  return r.containerState.initialBlankLine = !0, o++, h(p);
4350
4350
  }
4351
4351
  function c(p) {
4352
- return j(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), h) : t(p);
4352
+ return $(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), h) : t(p);
4353
4353
  }
4354
4354
  function h(p) {
4355
4355
  return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
@@ -4359,32 +4359,32 @@ function $a(e, n, t) {
4359
4359
  const r = this;
4360
4360
  return r.containerState._closeFlow = void 0, e.check(ft, i, o);
4361
4361
  function i(a) {
4362
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, q(e, n, "listItemIndent", r.containerState.size + 1)(a);
4362
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, V(e, n, "listItemIndent", r.containerState.size + 1)(a);
4363
4363
  }
4364
4364
  function o(a) {
4365
- return r.containerState.furtherBlankLines || !j(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Ba, n, l)(a));
4365
+ return r.containerState.furtherBlankLines || !$(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Ba, n, l)(a));
4366
4366
  }
4367
4367
  function l(a) {
4368
- return r.containerState._closeFlow = !0, r.interrupt = void 0, q(e, e.attempt(ue, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
4368
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, V(e, e.attempt(ue, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
4369
4369
  }
4370
4370
  }
4371
4371
  function Ha(e, n, t) {
4372
4372
  const r = this;
4373
- return q(e, i, "listItemIndent", r.containerState.size + 1);
4373
+ return V(e, i, "listItemIndent", r.containerState.size + 1);
4374
4374
  function i(o) {
4375
4375
  const l = r.events[r.events.length - 1];
4376
4376
  return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? n(o) : t(o);
4377
4377
  }
4378
4378
  }
4379
- function Va(e) {
4379
+ function qa(e) {
4380
4380
  e.exit(this.containerState.type);
4381
4381
  }
4382
- function qa(e, n, t) {
4382
+ function Va(e, n, t) {
4383
4383
  const r = this;
4384
- return q(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
4384
+ return V(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
4385
4385
  function i(o) {
4386
4386
  const l = r.events[r.events.length - 1];
4387
- return !j(o) && l && l[1].type === "listItemPrefixWhitespace" ? n(o) : t(o);
4387
+ return !$(o) && l && l[1].type === "listItemPrefixWhitespace" ? n(o) : t(o);
4388
4388
  }
4389
4389
  }
4390
4390
  const tr = {
@@ -4433,7 +4433,7 @@ function Wa(e, n, t) {
4433
4433
  return e.enter("setextHeadingLineSequence"), a(u);
4434
4434
  }
4435
4435
  function a(u) {
4436
- return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), j(u) ? q(e, s, "lineSuffix")(u) : s(u));
4436
+ return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), $(u) ? V(e, s, "lineSuffix")(u) : s(u));
4437
4437
  }
4438
4438
  function s(u) {
4439
4439
  return u === null || D(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
@@ -4448,7 +4448,7 @@ function Qa(e) {
4448
4448
  ft,
4449
4449
  r,
4450
4450
  // Try to parse initial flow (essentially, only code).
4451
- e.attempt(this.parser.constructs.flowInitial, i, q(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Zo, i)), "linePrefix"))
4451
+ e.attempt(this.parser.constructs.flowInitial, i, V(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Zo, i)), "linePrefix"))
4452
4452
  );
4453
4453
  return t;
4454
4454
  function r(o) {
@@ -4633,7 +4633,7 @@ function us(e, n, t) {
4633
4633
  const s = {
4634
4634
  attempt: O(N),
4635
4635
  check: O(x),
4636
- consume: A,
4636
+ consume: I,
4637
4637
  enter: _,
4638
4638
  exit: L,
4639
4639
  interrupt: O(x, {
@@ -4654,10 +4654,10 @@ function us(e, n, t) {
4654
4654
  let f = n.tokenize.call(u, s);
4655
4655
  return n.resolveAll && o.push(n), u;
4656
4656
  function c(T) {
4657
- return l = me(l, T), S(), l[l.length - 1] !== null ? [] : ($(n, 0), u.events = Tt(o, u.events, u), u.events);
4657
+ return l = me(l, T), S(), l[l.length - 1] !== null ? [] : (H(n, 0), u.events = Tt(o, u.events, u), u.events);
4658
4658
  }
4659
- function h(T, z) {
4660
- return fs(p(T), z);
4659
+ function h(T, P) {
4660
+ return fs(p(T), P);
4661
4661
  }
4662
4662
  function p(T) {
4663
4663
  return cs(l, T);
@@ -4665,16 +4665,16 @@ function us(e, n, t) {
4665
4665
  function g() {
4666
4666
  const {
4667
4667
  _bufferIndex: T,
4668
- _index: z,
4668
+ _index: P,
4669
4669
  line: U,
4670
- column: P,
4670
+ column: z,
4671
4671
  offset: v
4672
4672
  } = r;
4673
4673
  return {
4674
4674
  _bufferIndex: T,
4675
- _index: z,
4675
+ _index: P,
4676
4676
  line: U,
4677
- column: P,
4677
+ column: z,
4678
4678
  offset: v
4679
4679
  };
4680
4680
  }
@@ -4684,61 +4684,61 @@ function us(e, n, t) {
4684
4684
  function S() {
4685
4685
  let T;
4686
4686
  for (; r._index < l.length; ) {
4687
- const z = l[r._index];
4688
- if (typeof z == "string")
4689
- for (T = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === T && r._bufferIndex < z.length; )
4690
- y(z.charCodeAt(r._bufferIndex));
4687
+ const P = l[r._index];
4688
+ if (typeof P == "string")
4689
+ for (T = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === T && r._bufferIndex < P.length; )
4690
+ y(P.charCodeAt(r._bufferIndex));
4691
4691
  else
4692
- y(z);
4692
+ y(P);
4693
4693
  }
4694
4694
  }
4695
4695
  function y(T) {
4696
4696
  f = f(T);
4697
4697
  }
4698
- function A(T) {
4698
+ function I(T) {
4699
4699
  D(T) ? (r.line++, r.column = 1, r.offset += T === -3 ? 2 : 1, k()) : T !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
4700
4700
  // strings.
4701
4701
  /** @type {string} */
4702
4702
  l[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = T;
4703
4703
  }
4704
- function _(T, z) {
4705
- const U = z || {};
4704
+ function _(T, P) {
4705
+ const U = P || {};
4706
4706
  return U.type = T, U.start = g(), u.events.push(["enter", U, u]), a.push(U), U;
4707
4707
  }
4708
4708
  function L(T) {
4709
- const z = a.pop();
4710
- return z.end = g(), u.events.push(["exit", z, u]), z;
4709
+ const P = a.pop();
4710
+ return P.end = g(), u.events.push(["exit", P, u]), P;
4711
4711
  }
4712
- function N(T, z) {
4713
- $(T, z.from);
4712
+ function N(T, P) {
4713
+ H(T, P.from);
4714
4714
  }
4715
- function x(T, z) {
4716
- z.restore();
4715
+ function x(T, P) {
4716
+ P.restore();
4717
4717
  }
4718
- function O(T, z) {
4718
+ function O(T, P) {
4719
4719
  return U;
4720
- function U(P, v, R) {
4720
+ function U(z, v, R) {
4721
4721
  let B, Q, W, d;
4722
- return Array.isArray(P) ? (
4722
+ return Array.isArray(z) ? (
4723
4723
  /* c8 ignore next 1 */
4724
- te(P)
4725
- ) : "tokenize" in P ? (
4724
+ te(z)
4725
+ ) : "tokenize" in z ? (
4726
4726
  // Looks like a construct.
4727
4727
  te([
4728
4728
  /** @type {Construct} */
4729
- P
4729
+ z
4730
4730
  ])
4731
- ) : se(P);
4731
+ ) : se(z);
4732
4732
  function se(re) {
4733
4733
  return Xe;
4734
- function Xe(Ae) {
4735
- const je = Ae !== null && re[Ae], $e = Ae !== null && re.null, ht = [
4734
+ function Xe(Ie) {
4735
+ const je = Ie !== null && re[Ie], $e = Ie !== null && re.null, ht = [
4736
4736
  // To do: add more extension tests.
4737
4737
  /* c8 ignore next 2 */
4738
4738
  ...Array.isArray(je) ? je : je ? [je] : [],
4739
4739
  ...Array.isArray($e) ? $e : $e ? [$e] : []
4740
4740
  ];
4741
- return te(ht)(Ae);
4741
+ return te(ht)(Ie);
4742
4742
  }
4743
4743
  }
4744
4744
  function te(re) {
@@ -4746,37 +4746,37 @@ function us(e, n, t) {
4746
4746
  }
4747
4747
  function m(re) {
4748
4748
  return Xe;
4749
- function Xe(Ae) {
4750
- return d = H(), W = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? Pe() : re.tokenize.call(
4749
+ function Xe(Ie) {
4750
+ return d = j(), W = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? ze() : re.tokenize.call(
4751
4751
  // If we do have fields, create an object w/ `context` as its
4752
4752
  // prototype.
4753
4753
  // This allows a “live binding”, which is needed for `interrupt`.
4754
- z ? Object.assign(Object.create(u), z) : u,
4754
+ P ? Object.assign(Object.create(u), P) : u,
4755
4755
  s,
4756
4756
  ne,
4757
- Pe
4758
- )(Ae);
4757
+ ze
4758
+ )(Ie);
4759
4759
  }
4760
4760
  }
4761
4761
  function ne(re) {
4762
4762
  return T(W, d), v;
4763
4763
  }
4764
- function Pe(re) {
4764
+ function ze(re) {
4765
4765
  return d.restore(), ++Q < B.length ? m(B[Q]) : R;
4766
4766
  }
4767
4767
  }
4768
4768
  }
4769
- function $(T, z) {
4770
- T.resolveAll && !o.includes(T) && o.push(T), T.resolve && he(u.events, z, u.events.length - z, T.resolve(u.events.slice(z), u)), T.resolveTo && (u.events = T.resolveTo(u.events, u));
4769
+ function H(T, P) {
4770
+ T.resolveAll && !o.includes(T) && o.push(T), T.resolve && he(u.events, P, u.events.length - P, T.resolve(u.events.slice(P), u)), T.resolveTo && (u.events = T.resolveTo(u.events, u));
4771
4771
  }
4772
- function H() {
4773
- const T = g(), z = u.previous, U = u.currentConstruct, P = u.events.length, v = Array.from(a);
4772
+ function j() {
4773
+ const T = g(), P = u.previous, U = u.currentConstruct, z = u.events.length, v = Array.from(a);
4774
4774
  return {
4775
- from: P,
4775
+ from: z,
4776
4776
  restore: R
4777
4777
  };
4778
4778
  function R() {
4779
- r = T, u.previous = z, u.currentConstruct = U, u.events.length = P, a = v, k();
4779
+ r = T, u.previous = P, u.currentConstruct = U, u.events.length = z, a = v, k();
4780
4780
  }
4781
4781
  }
4782
4782
  function k() {
@@ -4843,7 +4843,7 @@ function ps(e) {
4843
4843
  /** @type {FullNormalizedExtension} */
4844
4844
  Gr([ss, ...(e || {}).extensions || []])
4845
4845
  ),
4846
- content: i(Ao),
4846
+ content: i(Io),
4847
4847
  defined: [],
4848
4848
  document: i(To),
4849
4849
  flow: i(Ya),
@@ -4923,31 +4923,31 @@ function xs(e) {
4923
4923
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4924
4924
  enter: {
4925
4925
  autolink: o(Ln),
4926
- autolinkProtocol: H,
4927
- autolinkEmail: H,
4926
+ autolinkProtocol: j,
4927
+ autolinkEmail: j,
4928
4928
  atxHeading: o(Tn),
4929
4929
  blockQuote: o($e),
4930
- characterEscape: H,
4931
- characterReference: H,
4930
+ characterEscape: j,
4931
+ characterReference: j,
4932
4932
  codeFenced: o(ht),
4933
4933
  codeFencedFenceInfo: l,
4934
4934
  codeFencedFenceMeta: l,
4935
4935
  codeIndented: o(ht, l),
4936
- codeText: o(Vi, l),
4937
- codeTextData: H,
4938
- data: H,
4939
- codeFlowValue: H,
4940
- definition: o(qi),
4936
+ codeText: o(qi, l),
4937
+ codeTextData: j,
4938
+ data: j,
4939
+ codeFlowValue: j,
4940
+ definition: o(Vi),
4941
4941
  definitionDestinationString: l,
4942
4942
  definitionLabelString: l,
4943
4943
  definitionTitleString: l,
4944
4944
  emphasis: o(Ui),
4945
- hardBreakEscape: o(zn),
4946
- hardBreakTrailing: o(zn),
4947
- htmlFlow: o(Pn, l),
4948
- htmlFlowData: H,
4949
- htmlText: o(Pn, l),
4950
- htmlTextData: H,
4945
+ hardBreakEscape: o(Pn),
4946
+ hardBreakTrailing: o(Pn),
4947
+ htmlFlow: o(zn, l),
4948
+ htmlFlowData: j,
4949
+ htmlText: o(zn, l),
4950
+ htmlTextData: j,
4951
4951
  image: o(Wi),
4952
4952
  label: l,
4953
4953
  link: o(Ln),
@@ -4969,11 +4969,11 @@ function xs(e) {
4969
4969
  atxHeadingSequence: N,
4970
4970
  autolink: s(),
4971
4971
  autolinkEmail: je,
4972
- autolinkProtocol: Ae,
4972
+ autolinkProtocol: Ie,
4973
4973
  blockQuote: s(),
4974
4974
  characterEscapeValue: k,
4975
- characterReferenceMarkerHexadecimal: Pe,
4976
- characterReferenceMarkerNumeric: Pe,
4975
+ characterReferenceMarkerHexadecimal: ze,
4976
+ characterReferenceMarkerNumeric: ze,
4977
4977
  characterReferenceValue: re,
4978
4978
  characterReference: Xe,
4979
4979
  codeFenced: s(S),
@@ -4987,14 +4987,14 @@ function xs(e) {
4987
4987
  data: k,
4988
4988
  definition: s(),
4989
4989
  definitionDestinationString: L,
4990
- definitionLabelString: A,
4990
+ definitionLabelString: I,
4991
4991
  definitionTitleString: _,
4992
4992
  emphasis: s(),
4993
- hardBreakEscape: s(z),
4994
- hardBreakTrailing: s(z),
4993
+ hardBreakEscape: s(P),
4994
+ hardBreakTrailing: s(P),
4995
4995
  htmlFlow: s(U),
4996
4996
  htmlFlowData: k,
4997
- htmlText: s(P),
4997
+ htmlText: s(z),
4998
4998
  htmlTextData: k,
4999
4999
  image: s(B),
5000
5000
  label: W,
@@ -5009,7 +5009,7 @@ function xs(e) {
5009
5009
  resourceDestinationString: d,
5010
5010
  resourceTitleString: se,
5011
5011
  resource: te,
5012
- setextHeading: s($),
5012
+ setextHeading: s(H),
5013
5013
  setextHeadingLineSequence: O,
5014
5014
  setextHeadingText: x,
5015
5015
  strong: s(),
@@ -5020,12 +5020,12 @@ function xs(e) {
5020
5020
  const t = {};
5021
5021
  return r;
5022
5022
  function r(w) {
5023
- let I = {
5023
+ let A = {
5024
5024
  type: "root",
5025
5025
  children: []
5026
5026
  };
5027
5027
  const F = {
5028
- stack: [I],
5028
+ stack: [A],
5029
5029
  tokenStack: [],
5030
5030
  config: n,
5031
5031
  enter: a,
@@ -5033,14 +5033,14 @@ function xs(e) {
5033
5033
  buffer: l,
5034
5034
  resume: f,
5035
5035
  data: t
5036
- }, V = [];
5036
+ }, q = [];
5037
5037
  let X = -1;
5038
5038
  for (; ++X < w.length; )
5039
5039
  if (w[X][1].type === "listOrdered" || w[X][1].type === "listUnordered")
5040
5040
  if (w[X][0] === "enter")
5041
- V.push(X);
5041
+ q.push(X);
5042
5042
  else {
5043
- const ge = V.pop();
5043
+ const ge = q.pop();
5044
5044
  X = i(w, ge, X);
5045
5045
  }
5046
5046
  for (X = -1; ++X < w.length; ) {
@@ -5053,25 +5053,25 @@ function xs(e) {
5053
5053
  const ge = F.tokenStack[F.tokenStack.length - 1];
5054
5054
  (ge[1] || rr).call(F, void 0, ge[0]);
5055
5055
  }
5056
- for (I.position = {
5057
- start: Ie(w.length > 0 ? w[0][1].start : {
5056
+ for (A.position = {
5057
+ start: Ae(w.length > 0 ? w[0][1].start : {
5058
5058
  line: 1,
5059
5059
  column: 1,
5060
5060
  offset: 0
5061
5061
  }),
5062
- end: Ie(w.length > 0 ? w[w.length - 2][1].end : {
5062
+ end: Ae(w.length > 0 ? w[w.length - 2][1].end : {
5063
5063
  line: 1,
5064
5064
  column: 1,
5065
5065
  offset: 0
5066
5066
  })
5067
5067
  }, X = -1; ++X < n.transforms.length; )
5068
- I = n.transforms[X](I) || I;
5069
- return I;
5068
+ A = n.transforms[X](A) || A;
5069
+ return A;
5070
5070
  }
5071
- function i(w, I, F) {
5072
- let V = I - 1, X = -1, ge = !1, Le, Ce, Ge, Je;
5073
- for (; ++V <= F; ) {
5074
- const fe = w[V];
5071
+ function i(w, A, F) {
5072
+ let q = A - 1, X = -1, ge = !1, Le, Ce, Ge, Je;
5073
+ for (; ++q <= F; ) {
5074
+ const fe = w[q];
5075
5075
  switch (fe[1].type) {
5076
5076
  case "listUnordered":
5077
5077
  case "listOrdered":
@@ -5080,7 +5080,7 @@ function xs(e) {
5080
5080
  break;
5081
5081
  }
5082
5082
  case "lineEndingBlank": {
5083
- fe[0] === "enter" && (Le && !Je && !X && !Ge && (Ge = V), Je = void 0);
5083
+ fe[0] === "enter" && (Le && !Je && !X && !Ge && (Ge = q), Je = void 0);
5084
5084
  break;
5085
5085
  }
5086
5086
  case "linePrefix":
@@ -5094,7 +5094,7 @@ function xs(e) {
5094
5094
  }
5095
5095
  if (!X && fe[0] === "enter" && fe[1].type === "listItemPrefix" || X === -1 && fe[0] === "exit" && (fe[1].type === "listUnordered" || fe[1].type === "listOrdered")) {
5096
5096
  if (Le) {
5097
- let He = V;
5097
+ let He = q;
5098
5098
  for (Ce = void 0; He--; ) {
5099
5099
  const Se = w[He];
5100
5100
  if (Se[1].type === "lineEnding" || Se[1].type === "lineEndingBlank") {
@@ -5102,7 +5102,7 @@ function xs(e) {
5102
5102
  Ce && (w[Ce][1].type = "lineEndingBlank", ge = !0), Se[1].type = "lineEnding", Ce = He;
5103
5103
  } else if (!(Se[1].type === "linePrefix" || Se[1].type === "blockQuotePrefix" || Se[1].type === "blockQuotePrefixWhitespace" || Se[1].type === "blockQuoteMarker" || Se[1].type === "listItemIndent")) break;
5104
5104
  }
5105
- Ge && (!Ce || Ge < Ce) && (Le._spread = !0), Le.end = Object.assign({}, Ce ? w[Ce][1].start : fe[1].end), w.splice(Ce || V, 0, ["exit", Le, fe[2]]), V++, F++;
5105
+ Ge && (!Ce || Ge < Ce) && (Le._spread = !0), Le.end = Object.assign({}, Ce ? w[Ce][1].start : fe[1].end), w.splice(Ce || q, 0, ["exit", Le, fe[2]]), q++, F++;
5106
5106
  }
5107
5107
  if (fe[1].type === "listItemPrefix") {
5108
5108
  const He = {
@@ -5112,16 +5112,16 @@ function xs(e) {
5112
5112
  // @ts-expect-error: we’ll add `end` in a second.
5113
5113
  end: void 0
5114
5114
  };
5115
- Le = He, w.splice(V, 0, ["enter", He, fe[2]]), V++, F++, Ge = void 0, Je = !0;
5115
+ Le = He, w.splice(q, 0, ["enter", He, fe[2]]), q++, F++, Ge = void 0, Je = !0;
5116
5116
  }
5117
5117
  }
5118
5118
  }
5119
- return w[I][1]._spread = ge, F;
5119
+ return w[A][1]._spread = ge, F;
5120
5120
  }
5121
- function o(w, I) {
5121
+ function o(w, A) {
5122
5122
  return F;
5123
- function F(V) {
5124
- a.call(this, w(V), V), I && I.call(this, V);
5123
+ function F(q) {
5124
+ a.call(this, w(q), q), A && A.call(this, q);
5125
5125
  }
5126
5126
  }
5127
5127
  function l() {
@@ -5130,28 +5130,28 @@ function xs(e) {
5130
5130
  children: []
5131
5131
  });
5132
5132
  }
5133
- function a(w, I, F) {
5134
- this.stack[this.stack.length - 1].children.push(w), this.stack.push(w), this.tokenStack.push([I, F || void 0]), w.position = {
5135
- start: Ie(I.start),
5133
+ function a(w, A, F) {
5134
+ this.stack[this.stack.length - 1].children.push(w), this.stack.push(w), this.tokenStack.push([A, F || void 0]), w.position = {
5135
+ start: Ae(A.start),
5136
5136
  // @ts-expect-error: `end` will be patched later.
5137
5137
  end: void 0
5138
5138
  };
5139
5139
  }
5140
5140
  function s(w) {
5141
- return I;
5142
- function I(F) {
5141
+ return A;
5142
+ function A(F) {
5143
5143
  w && w.call(this, F), u.call(this, F);
5144
5144
  }
5145
5145
  }
5146
- function u(w, I) {
5147
- const F = this.stack.pop(), V = this.tokenStack.pop();
5148
- if (V)
5149
- V[0].type !== w.type && (I ? I.call(this, w, V[0]) : (V[1] || rr).call(this, w, V[0]));
5146
+ function u(w, A) {
5147
+ const F = this.stack.pop(), q = this.tokenStack.pop();
5148
+ if (q)
5149
+ q[0].type !== w.type && (A ? A.call(this, w, q[0]) : (q[1] || rr).call(this, w, q[0]));
5150
5150
  else throw new Error("Cannot close `" + w.type + "` (" + lt({
5151
5151
  start: w.start,
5152
5152
  end: w.end
5153
5153
  }) + "): it’s not open");
5154
- F.position.end = Ie(w.end);
5154
+ F.position.end = Ae(w.end);
5155
5155
  }
5156
5156
  function f() {
5157
5157
  return yn(this.stack.pop());
@@ -5161,100 +5161,100 @@ function xs(e) {
5161
5161
  }
5162
5162
  function h(w) {
5163
5163
  if (this.data.expectingFirstListItemValue) {
5164
- const I = this.stack[this.stack.length - 2];
5165
- I.start = Number.parseInt(this.sliceSerialize(w), 10), this.data.expectingFirstListItemValue = void 0;
5164
+ const A = this.stack[this.stack.length - 2];
5165
+ A.start = Number.parseInt(this.sliceSerialize(w), 10), this.data.expectingFirstListItemValue = void 0;
5166
5166
  }
5167
5167
  }
5168
5168
  function p() {
5169
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5170
- I.lang = w;
5169
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5170
+ A.lang = w;
5171
5171
  }
5172
5172
  function g() {
5173
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5174
- I.meta = w;
5173
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5174
+ A.meta = w;
5175
5175
  }
5176
5176
  function C() {
5177
5177
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
5178
5178
  }
5179
5179
  function S() {
5180
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5181
- I.value = w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
5180
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5181
+ A.value = w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
5182
5182
  }
5183
5183
  function y() {
5184
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5185
- I.value = w.replace(/(\r?\n|\r)$/g, "");
5184
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5185
+ A.value = w.replace(/(\r?\n|\r)$/g, "");
5186
5186
  }
5187
- function A(w) {
5188
- const I = this.resume(), F = this.stack[this.stack.length - 1];
5189
- F.label = I, F.identifier = ke(this.sliceSerialize(w)).toLowerCase();
5187
+ function I(w) {
5188
+ const A = this.resume(), F = this.stack[this.stack.length - 1];
5189
+ F.label = A, F.identifier = ke(this.sliceSerialize(w)).toLowerCase();
5190
5190
  }
5191
5191
  function _() {
5192
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5193
- I.title = w;
5192
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5193
+ A.title = w;
5194
5194
  }
5195
5195
  function L() {
5196
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5197
- I.url = w;
5196
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5197
+ A.url = w;
5198
5198
  }
5199
5199
  function N(w) {
5200
- const I = this.stack[this.stack.length - 1];
5201
- if (!I.depth) {
5200
+ const A = this.stack[this.stack.length - 1];
5201
+ if (!A.depth) {
5202
5202
  const F = this.sliceSerialize(w).length;
5203
- I.depth = F;
5203
+ A.depth = F;
5204
5204
  }
5205
5205
  }
5206
5206
  function x() {
5207
5207
  this.data.setextHeadingSlurpLineEnding = !0;
5208
5208
  }
5209
5209
  function O(w) {
5210
- const I = this.stack[this.stack.length - 1];
5211
- I.depth = this.sliceSerialize(w).codePointAt(0) === 61 ? 1 : 2;
5210
+ const A = this.stack[this.stack.length - 1];
5211
+ A.depth = this.sliceSerialize(w).codePointAt(0) === 61 ? 1 : 2;
5212
5212
  }
5213
- function $() {
5213
+ function H() {
5214
5214
  this.data.setextHeadingSlurpLineEnding = void 0;
5215
5215
  }
5216
- function H(w) {
5216
+ function j(w) {
5217
5217
  const F = this.stack[this.stack.length - 1].children;
5218
- let V = F[F.length - 1];
5219
- (!V || V.type !== "text") && (V = Gi(), V.position = {
5220
- start: Ie(w.start),
5218
+ let q = F[F.length - 1];
5219
+ (!q || q.type !== "text") && (q = Gi(), q.position = {
5220
+ start: Ae(w.start),
5221
5221
  // @ts-expect-error: we’ll add `end` later.
5222
5222
  end: void 0
5223
- }, F.push(V)), this.stack.push(V);
5223
+ }, F.push(q)), this.stack.push(q);
5224
5224
  }
5225
5225
  function k(w) {
5226
- const I = this.stack.pop();
5227
- I.value += this.sliceSerialize(w), I.position.end = Ie(w.end);
5226
+ const A = this.stack.pop();
5227
+ A.value += this.sliceSerialize(w), A.position.end = Ae(w.end);
5228
5228
  }
5229
5229
  function T(w) {
5230
- const I = this.stack[this.stack.length - 1];
5230
+ const A = this.stack[this.stack.length - 1];
5231
5231
  if (this.data.atHardBreak) {
5232
- const F = I.children[I.children.length - 1];
5233
- F.position.end = Ie(w.end), this.data.atHardBreak = void 0;
5232
+ const F = A.children[A.children.length - 1];
5233
+ F.position.end = Ae(w.end), this.data.atHardBreak = void 0;
5234
5234
  return;
5235
5235
  }
5236
- !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(I.type) && (H.call(this, w), k.call(this, w));
5236
+ !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(A.type) && (j.call(this, w), k.call(this, w));
5237
5237
  }
5238
- function z() {
5238
+ function P() {
5239
5239
  this.data.atHardBreak = !0;
5240
5240
  }
5241
5241
  function U() {
5242
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5243
- I.value = w;
5242
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5243
+ A.value = w;
5244
5244
  }
5245
- function P() {
5246
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5247
- I.value = w;
5245
+ function z() {
5246
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5247
+ A.value = w;
5248
5248
  }
5249
5249
  function v() {
5250
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5251
- I.value = w;
5250
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5251
+ A.value = w;
5252
5252
  }
5253
5253
  function R() {
5254
5254
  const w = this.stack[this.stack.length - 1];
5255
5255
  if (this.data.inReference) {
5256
- const I = this.data.referenceType || "shortcut";
5257
- w.type += "Reference", w.referenceType = I, delete w.url, delete w.title;
5256
+ const A = this.data.referenceType || "shortcut";
5257
+ w.type += "Reference", w.referenceType = A, delete w.url, delete w.title;
5258
5258
  } else
5259
5259
  delete w.identifier, delete w.label;
5260
5260
  this.data.referenceType = void 0;
@@ -5262,31 +5262,31 @@ function xs(e) {
5262
5262
  function B() {
5263
5263
  const w = this.stack[this.stack.length - 1];
5264
5264
  if (this.data.inReference) {
5265
- const I = this.data.referenceType || "shortcut";
5266
- w.type += "Reference", w.referenceType = I, delete w.url, delete w.title;
5265
+ const A = this.data.referenceType || "shortcut";
5266
+ w.type += "Reference", w.referenceType = A, delete w.url, delete w.title;
5267
5267
  } else
5268
5268
  delete w.identifier, delete w.label;
5269
5269
  this.data.referenceType = void 0;
5270
5270
  }
5271
5271
  function Q(w) {
5272
- const I = this.sliceSerialize(w), F = this.stack[this.stack.length - 2];
5273
- F.label = gs(I), F.identifier = ke(I).toLowerCase();
5272
+ const A = this.sliceSerialize(w), F = this.stack[this.stack.length - 2];
5273
+ F.label = gs(A), F.identifier = ke(A).toLowerCase();
5274
5274
  }
5275
5275
  function W() {
5276
- const w = this.stack[this.stack.length - 1], I = this.resume(), F = this.stack[this.stack.length - 1];
5276
+ const w = this.stack[this.stack.length - 1], A = this.resume(), F = this.stack[this.stack.length - 1];
5277
5277
  if (this.data.inReference = !0, F.type === "link") {
5278
- const V = w.children;
5279
- F.children = V;
5278
+ const q = w.children;
5279
+ F.children = q;
5280
5280
  } else
5281
- F.alt = I;
5281
+ F.alt = A;
5282
5282
  }
5283
5283
  function d() {
5284
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5285
- I.url = w;
5284
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5285
+ A.url = w;
5286
5286
  }
5287
5287
  function se() {
5288
- const w = this.resume(), I = this.stack[this.stack.length - 1];
5289
- I.title = w;
5288
+ const w = this.resume(), A = this.stack[this.stack.length - 1];
5289
+ A.title = w;
5290
5290
  }
5291
5291
  function te() {
5292
5292
  this.data.inReference = void 0;
@@ -5295,32 +5295,32 @@ function xs(e) {
5295
5295
  this.data.referenceType = "collapsed";
5296
5296
  }
5297
5297
  function ne(w) {
5298
- const I = this.resume(), F = this.stack[this.stack.length - 1];
5299
- F.label = I, F.identifier = ke(this.sliceSerialize(w)).toLowerCase(), this.data.referenceType = "full";
5298
+ const A = this.resume(), F = this.stack[this.stack.length - 1];
5299
+ F.label = A, F.identifier = ke(this.sliceSerialize(w)).toLowerCase(), this.data.referenceType = "full";
5300
5300
  }
5301
- function Pe(w) {
5301
+ function ze(w) {
5302
5302
  this.data.characterReferenceType = w.type;
5303
5303
  }
5304
5304
  function re(w) {
5305
- const I = this.sliceSerialize(w), F = this.data.characterReferenceType;
5306
- let V;
5307
- F ? (V = Jr(I, F === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : V = kn(I);
5305
+ const A = this.sliceSerialize(w), F = this.data.characterReferenceType;
5306
+ let q;
5307
+ F ? (q = Jr(A, F === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : q = kn(A);
5308
5308
  const X = this.stack[this.stack.length - 1];
5309
- X.value += V;
5309
+ X.value += q;
5310
5310
  }
5311
5311
  function Xe(w) {
5312
- const I = this.stack.pop();
5313
- I.position.end = Ie(w.end);
5312
+ const A = this.stack.pop();
5313
+ A.position.end = Ae(w.end);
5314
5314
  }
5315
- function Ae(w) {
5315
+ function Ie(w) {
5316
5316
  k.call(this, w);
5317
- const I = this.stack[this.stack.length - 1];
5318
- I.url = this.sliceSerialize(w);
5317
+ const A = this.stack[this.stack.length - 1];
5318
+ A.url = this.sliceSerialize(w);
5319
5319
  }
5320
5320
  function je(w) {
5321
5321
  k.call(this, w);
5322
- const I = this.stack[this.stack.length - 1];
5323
- I.url = "mailto:" + this.sliceSerialize(w);
5322
+ const A = this.stack[this.stack.length - 1];
5323
+ A.url = "mailto:" + this.sliceSerialize(w);
5324
5324
  }
5325
5325
  function $e() {
5326
5326
  return {
@@ -5336,13 +5336,13 @@ function xs(e) {
5336
5336
  value: ""
5337
5337
  };
5338
5338
  }
5339
- function Vi() {
5339
+ function qi() {
5340
5340
  return {
5341
5341
  type: "inlineCode",
5342
5342
  value: ""
5343
5343
  };
5344
5344
  }
5345
- function qi() {
5345
+ function Vi() {
5346
5346
  return {
5347
5347
  type: "definition",
5348
5348
  identifier: "",
@@ -5365,12 +5365,12 @@ function xs(e) {
5365
5365
  children: []
5366
5366
  };
5367
5367
  }
5368
- function zn() {
5368
+ function Pn() {
5369
5369
  return {
5370
5370
  type: "break"
5371
5371
  };
5372
5372
  }
5373
- function Pn() {
5373
+ function zn() {
5374
5374
  return {
5375
5375
  type: "html",
5376
5376
  value: ""
@@ -5433,7 +5433,7 @@ function xs(e) {
5433
5433
  };
5434
5434
  }
5435
5435
  }
5436
- function Ie(e) {
5436
+ function Ae(e) {
5437
5437
  return {
5438
5438
  line: e.line,
5439
5439
  column: e.column,
@@ -5541,7 +5541,7 @@ function Es(e, n) {
5541
5541
  };
5542
5542
  return e.patch(n, t), e.applyData(n, t);
5543
5543
  }
5544
- function As(e, n) {
5544
+ function Is(e, n) {
5545
5545
  const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Qe(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
5546
5546
  let l, a = e.footnoteCounts.get(r);
5547
5547
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
@@ -5565,7 +5565,7 @@ function As(e, n) {
5565
5565
  };
5566
5566
  return e.patch(n, u), e.applyData(n, u);
5567
5567
  }
5568
- function Is(e, n) {
5568
+ function As(e, n) {
5569
5569
  const t = {
5570
5570
  type: "element",
5571
5571
  tagName: "h" + n.depth,
@@ -5590,7 +5590,7 @@ function ui(e, n) {
5590
5590
  const l = i[i.length - 1];
5591
5591
  return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
5592
5592
  }
5593
- function zs(e, n) {
5593
+ function Ps(e, n) {
5594
5594
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
5595
5595
  if (!r)
5596
5596
  return ui(e, n);
@@ -5599,7 +5599,7 @@ function zs(e, n) {
5599
5599
  const o = { type: "element", tagName: "img", properties: i, children: [] };
5600
5600
  return e.patch(n, o), e.applyData(n, o);
5601
5601
  }
5602
- function Ps(e, n) {
5602
+ function zs(e, n) {
5603
5603
  const t = { src: Qe(n.url) };
5604
5604
  n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
5605
5605
  const r = { type: "element", tagName: "img", properties: t, children: [] };
@@ -5737,7 +5737,7 @@ function $s(e, n) {
5737
5737
  tagName: "tbody",
5738
5738
  properties: {},
5739
5739
  children: e.wrap(t, !0)
5740
- }, a = hn(n.children[1]), s = Vr(n.children[n.children.length - 1]);
5740
+ }, a = hn(n.children[1]), s = qr(n.children[n.children.length - 1]);
5741
5741
  a && s && (l.position = { start: a, end: s }), i.push(l);
5742
5742
  }
5743
5743
  const o = {
@@ -5766,7 +5766,7 @@ function Hs(e, n, t) {
5766
5766
  };
5767
5767
  return e.patch(n, f), e.applyData(n, f);
5768
5768
  }
5769
- function Vs(e, n) {
5769
+ function qs(e, n) {
5770
5770
  const t = {
5771
5771
  type: "element",
5772
5772
  tagName: "td",
@@ -5777,7 +5777,7 @@ function Vs(e, n) {
5777
5777
  return e.patch(n, t), e.applyData(n, t);
5778
5778
  }
5779
5779
  const ir = 9, lr = 32;
5780
- function qs(e) {
5780
+ function Vs(e) {
5781
5781
  const n = String(e), t = /\r?\n|\r/g;
5782
5782
  let r = t.exec(n), i = 0;
5783
5783
  const o = [];
@@ -5803,7 +5803,7 @@ function or(e, n, t) {
5803
5803
  return i > r ? e.slice(r, i) : "";
5804
5804
  }
5805
5805
  function Us(e, n) {
5806
- const t = { type: "text", value: qs(String(n.value)) };
5806
+ const t = { type: "text", value: Vs(String(n.value)) };
5807
5807
  return e.patch(n, t), e.applyData(n, t);
5808
5808
  }
5809
5809
  function Ws(e, n) {
@@ -5821,11 +5821,11 @@ const Ys = {
5821
5821
  code: vs,
5822
5822
  delete: _s,
5823
5823
  emphasis: Es,
5824
- footnoteReference: As,
5825
- heading: Is,
5824
+ footnoteReference: Is,
5825
+ heading: As,
5826
5826
  html: Ts,
5827
- imageReference: zs,
5828
- image: Ps,
5827
+ imageReference: Ps,
5828
+ image: zs,
5829
5829
  inlineCode: Ls,
5830
5830
  linkReference: Ds,
5831
5831
  link: Ns,
@@ -5836,7 +5836,7 @@ const Ys = {
5836
5836
  root: Bs,
5837
5837
  strong: js,
5838
5838
  table: $s,
5839
- tableCell: Vs,
5839
+ tableCell: qs,
5840
5840
  tableRow: Hs,
5841
5841
  text: Us,
5842
5842
  thematicBreak: Ws,
@@ -5847,7 +5847,7 @@ const Ys = {
5847
5847
  };
5848
5848
  function mt() {
5849
5849
  }
5850
- const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, hi = 8, di = typeof self == "object" ? self : globalThis, ar = (e, n) => {
5850
+ const fi = -1, Pt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, hi = 8, di = typeof self == "object" ? self : globalThis, ar = (e, n) => {
5851
5851
  switch (e) {
5852
5852
  case "Function":
5853
5853
  case "SharedWorker":
@@ -5864,7 +5864,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5864
5864
  return e.get(i);
5865
5865
  const [o, l] = n[i];
5866
5866
  switch (o) {
5867
- case zt:
5867
+ case Pt:
5868
5868
  case fi:
5869
5869
  return t(l, i);
5870
5870
  case at: {
@@ -5921,7 +5921,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5921
5921
  }, sr = (e) => Qs(/* @__PURE__ */ new Map(), e)(0), Re = "", { toString: Xs } = {}, { keys: Gs } = Object, tt = (e) => {
5922
5922
  const n = typeof e;
5923
5923
  if (n !== "object" || !e)
5924
- return [zt, n];
5924
+ return [Pt, n];
5925
5925
  const t = Xs.call(e).slice(8, -1);
5926
5926
  switch (t) {
5927
5927
  case "Array":
@@ -5940,7 +5940,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5940
5940
  return [at, t];
5941
5941
  }
5942
5942
  return t.includes("Array") ? [at, t] : e instanceof Error ? [pi, e.name || "Error"] : [_t, t];
5943
- }, gt = ([e, n]) => e === zt && (n === "function" || n === "symbol"), Js = (e, n, t, r) => {
5943
+ }, gt = ([e, n]) => e === Pt && (n === "function" || n === "symbol"), Js = (e, n, t, r) => {
5944
5944
  const i = (l, a) => {
5945
5945
  const s = r.push(l) - 1;
5946
5946
  return t.set(a, s), s;
@@ -5949,7 +5949,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5949
5949
  return t.get(l);
5950
5950
  let [a, s] = tt(l);
5951
5951
  switch (a) {
5952
- case zt: {
5952
+ case Pt: {
5953
5953
  let f = l;
5954
5954
  switch (s) {
5955
5955
  case "bigint":
@@ -6051,8 +6051,8 @@ function eu(e) {
6051
6051
  const g = [], C = e.footnoteCounts.get(c);
6052
6052
  for (; C !== void 0 && ++p <= C; ) {
6053
6053
  g.length > 0 && g.push({ type: "text", value: " " });
6054
- let A = typeof t == "string" ? t : t(s, p);
6055
- typeof A == "string" && (A = { type: "text", value: A }), g.push({
6054
+ let I = typeof t == "string" ? t : t(s, p);
6055
+ typeof I == "string" && (I = { type: "text", value: I }), g.push({
6056
6056
  type: "element",
6057
6057
  tagName: "a",
6058
6058
  properties: {
@@ -6061,13 +6061,13 @@ function eu(e) {
6061
6061
  ariaLabel: typeof r == "string" ? r : r(s, p),
6062
6062
  className: ["data-footnote-backref"]
6063
6063
  },
6064
- children: Array.isArray(A) ? A : [A]
6064
+ children: Array.isArray(I) ? I : [I]
6065
6065
  });
6066
6066
  }
6067
6067
  const S = f[f.length - 1];
6068
6068
  if (S && S.type === "element" && S.tagName === "p") {
6069
- const A = S.children[S.children.length - 1];
6070
- A && A.type === "text" ? A.value += " " : S.children.push({ type: "text", value: " " }), S.children.push(...g);
6069
+ const I = S.children[S.children.length - 1];
6070
+ I && I.type === "text" ? I.value += " " : S.children.push({ type: "text", value: " " }), S.children.push(...g);
6071
6071
  } else
6072
6072
  f.push(...g);
6073
6073
  const y = {
@@ -6106,7 +6106,7 @@ function eu(e) {
6106
6106
  ]
6107
6107
  };
6108
6108
  }
6109
- const Pt = (
6109
+ const zt = (
6110
6110
  // Note: overloads in JSDoc can’t yet use different `@template`s.
6111
6111
  /**
6112
6112
  * @type {(
@@ -6144,7 +6144,7 @@ function tu(e) {
6144
6144
  const n = [];
6145
6145
  let t = -1;
6146
6146
  for (; ++t < e.length; )
6147
- n[t] = Pt(e[t]);
6147
+ n[t] = zt(e[t]);
6148
6148
  return Lt(r);
6149
6149
  function r(...i) {
6150
6150
  let o = -1;
@@ -6198,7 +6198,7 @@ const mi = [], ou = !0, nn = !1, au = "skip";
6198
6198
  function gi(e, n, t, r) {
6199
6199
  let i;
6200
6200
  typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
6201
- const o = Pt(i), l = r ? -1 : 1;
6201
+ const o = zt(i), l = r ? -1 : 1;
6202
6202
  a(e, void 0, [])();
6203
6203
  function a(s, u, f) {
6204
6204
  const c = (
@@ -6229,8 +6229,8 @@ function gi(e, n, t, r) {
6229
6229
  );
6230
6230
  if (y.children && p[0] !== au)
6231
6231
  for (C = (r ? y.children.length : -1) + l, S = f.concat(y); C > -1 && C < y.children.length; ) {
6232
- const A = y.children[C];
6233
- if (g = a(A, C, S)(), g[0] === nn)
6232
+ const I = y.children[C];
6233
+ if (g = a(I, C, S)(), g[0] === nn)
6234
6234
  return g;
6235
6235
  C = typeof g[1] == "number" ? g[1] : C + l;
6236
6236
  }
@@ -6401,11 +6401,11 @@ function gu() {
6401
6401
  return u[f];
6402
6402
  };
6403
6403
  return Ot = function s() {
6404
- var u, f, c, h, p, g, C = arguments[0], S = 1, y = arguments.length, A = !1;
6405
- for (typeof C == "boolean" && (A = C, C = arguments[1] || {}, S = 2), (C == null || typeof C != "object" && typeof C != "function") && (C = {}); S < y; ++S)
6404
+ var u, f, c, h, p, g, C = arguments[0], S = 1, y = arguments.length, I = !1;
6405
+ for (typeof C == "boolean" && (I = C, C = arguments[1] || {}, S = 2), (C == null || typeof C != "object" && typeof C != "function") && (C = {}); S < y; ++S)
6406
6406
  if (u = arguments[S], u != null)
6407
6407
  for (f in u)
6408
- c = a(C, f), h = a(u, f), C !== h && (A && h && (o(h) || (p = i(h))) ? (p ? (p = !1, g = c && i(c) ? c : []) : g = c && o(c) ? c : {}, l(C, { name: f, newValue: s(A, g, h) })) : typeof h < "u" && l(C, { name: f, newValue: h }));
6408
+ c = a(C, f), h = a(u, f), C !== h && (I && h && (o(h) || (p = i(h))) ? (p ? (p = !1, g = c && i(c) ? c : []) : g = c && o(c) ? c : {}, l(C, { name: f, newValue: s(I, g, h) })) : typeof h < "u" && l(C, { name: f, newValue: h }));
6409
6409
  return C;
6410
6410
  }, Ot;
6411
6411
  }
@@ -6582,15 +6582,15 @@ function pt(e) {
6582
6582
  "Path must be a string. Received " + JSON.stringify(e)
6583
6583
  );
6584
6584
  }
6585
- const Eu = { cwd: Au };
6586
- function Au() {
6585
+ const Eu = { cwd: Iu };
6586
+ function Iu() {
6587
6587
  return "/";
6588
6588
  }
6589
6589
  function on(e) {
6590
6590
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
6591
6591
  e.auth === void 0);
6592
6592
  }
6593
- function Iu(e) {
6593
+ function Au(e) {
6594
6594
  if (typeof e == "string")
6595
6595
  e = new URL(e);
6596
6596
  else if (!on(e)) {
@@ -6662,7 +6662,7 @@ class yi {
6662
6662
  */
6663
6663
  constructor(n) {
6664
6664
  let t;
6665
- n ? on(n) ? t = { path: n } : typeof n == "string" || zu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Eu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
6665
+ n ? on(n) ? t = { path: n } : typeof n == "string" || Pu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Eu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
6666
6666
  let r = -1;
6667
6667
  for (; ++r < jt.length; ) {
6668
6668
  const o = jt[r];
@@ -6770,7 +6770,7 @@ class yi {
6770
6770
  * Nothing.
6771
6771
  */
6772
6772
  set path(n) {
6773
- on(n) && (n = Iu(n)), Ht(n, "path"), this.path !== n && this.history.push(n);
6773
+ on(n) && (n = Au(n)), Ht(n, "path"), this.path !== n && this.history.push(n);
6774
6774
  }
6775
6775
  /**
6776
6776
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -7021,10 +7021,10 @@ function dr(e, n) {
7021
7021
  if (!e)
7022
7022
  throw new Error("Setting `" + n + "` requires `path` to be set too");
7023
7023
  }
7024
- function zu(e) {
7024
+ function Pu(e) {
7025
7025
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
7026
7026
  }
7027
- const Pu = (
7027
+ const zu = (
7028
7028
  /**
7029
7029
  * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
7030
7030
  */
@@ -7046,7 +7046,7 @@ const Pu = (
7046
7046
  return Object.setPrototypeOf(o, r), o;
7047
7047
  })
7048
7048
  ), Lu = {}.hasOwnProperty;
7049
- class _n extends Pu {
7049
+ class _n extends zu {
7050
7050
  /**
7051
7051
  * Create a processor.
7052
7052
  */
@@ -7190,7 +7190,7 @@ class _n extends Pu {
7190
7190
  parse(n) {
7191
7191
  this.freeze();
7192
7192
  const t = yt(n), r = this.parser || this.Parser;
7193
- return Vt("parse", r), r(String(t), t);
7193
+ return qt("parse", r), r(String(t), t);
7194
7194
  }
7195
7195
  /**
7196
7196
  * Process the given file as configured on the processor.
@@ -7236,7 +7236,7 @@ class _n extends Pu {
7236
7236
  */
7237
7237
  process(n, t) {
7238
7238
  const r = this;
7239
- return this.freeze(), Vt("process", this.parser || this.Parser), qt("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
7239
+ return this.freeze(), qt("process", this.parser || this.Parser), Vt("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
7240
7240
  function i(o, l) {
7241
7241
  const a = yt(n), s = (
7242
7242
  /** @type {HeadTree extends undefined ? Node : HeadTree} */
@@ -7295,7 +7295,7 @@ class _n extends Pu {
7295
7295
  */
7296
7296
  processSync(n) {
7297
7297
  let t = !1, r;
7298
- return this.freeze(), Vt("processSync", this.parser || this.Parser), qt("processSync", this.compiler || this.Compiler), this.process(n, i), gr("processSync", "process", t), r;
7298
+ return this.freeze(), qt("processSync", this.parser || this.Parser), Vt("processSync", this.compiler || this.Compiler), this.process(n, i), gr("processSync", "process", t), r;
7299
7299
  function i(o, l) {
7300
7300
  t = !0, pr(o), r = l;
7301
7301
  }
@@ -7410,7 +7410,7 @@ class _n extends Pu {
7410
7410
  stringify(n, t) {
7411
7411
  this.freeze();
7412
7412
  const r = yt(t), i = this.compiler || this.Compiler;
7413
- return qt("stringify", i), mr(n), i(n, r);
7413
+ return Vt("stringify", i), mr(n), i(n, r);
7414
7414
  }
7415
7415
  /**
7416
7416
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -7528,11 +7528,11 @@ class _n extends Pu {
7528
7528
  }
7529
7529
  }
7530
7530
  const Du = new _n().freeze();
7531
- function Vt(e, n) {
7531
+ function qt(e, n) {
7532
7532
  if (typeof n != "function")
7533
7533
  throw new TypeError("Cannot `" + e + "` without `parser`");
7534
7534
  }
7535
- function qt(e, n) {
7535
+ function Vt(e, n) {
7536
7536
  if (typeof n != "function")
7537
7537
  throw new TypeError("Cannot `" + e + "` without `compiler`");
7538
7538
  }
@@ -7600,7 +7600,7 @@ const Fu = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
7600
7600
  ];
7601
7601
  function ju(e) {
7602
7602
  const n = $u(e), t = Hu(e);
7603
- return Vu(n.runSync(n.parse(t), t), e);
7603
+ return qu(n.runSync(n.parse(t), t), e);
7604
7604
  }
7605
7605
  function $u(e) {
7606
7606
  const n = e.rehypePlugins || yr, t = e.remarkPlugins || yr, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...kr } : kr;
@@ -7610,8 +7610,8 @@ function Hu(e) {
7610
7610
  const n = e.children || "", t = new yi();
7611
7611
  return typeof n == "string" && (t.value = n), t;
7612
7612
  }
7613
- function Vu(e, n) {
7614
- const t = n.allowedElements, r = n.allowElement, i = n.components, o = n.disallowedElements, l = n.skipHtml, a = n.unwrapDisallowed, s = n.urlTransform || qu;
7613
+ function qu(e, n) {
7614
+ const t = n.allowedElements, r = n.allowElement, i = n.components, o = n.disallowedElements, l = n.skipHtml, a = n.unwrapDisallowed, s = n.urlTransform || Vu;
7615
7615
  for (const f of Bu)
7616
7616
  Object.hasOwn(n, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + Fu + f.id, void 0);
7617
7617
  return vn(e, u), ro(e, {
@@ -7641,7 +7641,7 @@ function Vu(e, n) {
7641
7641
  }
7642
7642
  }
7643
7643
  }
7644
- function qu(e) {
7644
+ function Vu(e) {
7645
7645
  const n = e.indexOf(":"), t = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
7646
7646
  return (
7647
7647
  // If there is no protocol, it’s relative.
@@ -7665,7 +7665,7 @@ function Uu(e) {
7665
7665
  return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
7666
7666
  }
7667
7667
  function Wu(e, n, t) {
7668
- const i = Pt((t || {}).ignore || []), o = Yu(n);
7668
+ const i = zt((t || {}).ignore || []), o = Yu(n);
7669
7669
  let l = -1;
7670
7670
  for (; ++l < o.length; )
7671
7671
  gi(e, "text", a);
@@ -7688,7 +7688,7 @@ function Wu(e, n, t) {
7688
7688
  const c = f[f.length - 1], h = o[l][0], p = o[l][1];
7689
7689
  let g = 0;
7690
7690
  const S = c.children.indexOf(u);
7691
- let y = !1, A = [];
7691
+ let y = !1, I = [];
7692
7692
  h.lastIndex = 0;
7693
7693
  let _ = h.exec(u.value);
7694
7694
  for (; _; ) {
@@ -7698,14 +7698,14 @@ function Wu(e, n, t) {
7698
7698
  stack: [...f, u]
7699
7699
  };
7700
7700
  let x = p(..._, N);
7701
- if (typeof x == "string" && (x = x.length > 0 ? { type: "text", value: x } : void 0), x === !1 ? h.lastIndex = L + 1 : (g !== L && A.push({
7701
+ if (typeof x == "string" && (x = x.length > 0 ? { type: "text", value: x } : void 0), x === !1 ? h.lastIndex = L + 1 : (g !== L && I.push({
7702
7702
  type: "text",
7703
7703
  value: u.value.slice(g, L)
7704
- }), Array.isArray(x) ? A.push(...x) : x && A.push(x), g = L + _[0].length, y = !0), !h.global)
7704
+ }), Array.isArray(x) ? I.push(...x) : x && I.push(x), g = L + _[0].length, y = !0), !h.global)
7705
7705
  break;
7706
7706
  _ = h.exec(u.value);
7707
7707
  }
7708
- return y ? (g < u.value.length && A.push({ type: "text", value: u.value.slice(g) }), c.children.splice(S, 1, ...A)) : A = [u], S + A.length;
7708
+ return y ? (g < u.value.length && I.push({ type: "text", value: u.value.slice(g) }), c.children.splice(S, 1, ...I)) : I = [u], S + I.length;
7709
7709
  }
7710
7710
  }
7711
7711
  function Yu(e) {
@@ -7847,7 +7847,7 @@ function ac(e) {
7847
7847
  }
7848
7848
  function ki(e, n) {
7849
7849
  const t = e.input.charCodeAt(e.index - 1);
7850
- return (e.index === 0 || Oe(t) || It(t)) && // If it’s an email, the previous character should not be a slash.
7850
+ return (e.index === 0 || Oe(t) || At(t)) && // If it’s an email, the previous character should not be a slash.
7851
7851
  (!n || t !== 47);
7852
7852
  }
7853
7853
  xi.peek = gc;
@@ -7988,19 +7988,19 @@ function _c() {
7988
7988
  function Ec(e) {
7989
7989
  return e.length;
7990
7990
  }
7991
- function Ac(e, n) {
7991
+ function Ic(e, n) {
7992
7992
  const t = n || {}, r = (t.align || []).concat(), i = t.stringLength || Ec, o = [], l = [], a = [], s = [];
7993
7993
  let u = 0, f = -1;
7994
7994
  for (; ++f < e.length; ) {
7995
7995
  const C = [], S = [];
7996
7996
  let y = -1;
7997
7997
  for (e[f].length > u && (u = e[f].length); ++y < e[f].length; ) {
7998
- const A = Ic(e[f][y]);
7998
+ const I = Ac(e[f][y]);
7999
7999
  if (t.alignDelimiters !== !1) {
8000
- const _ = i(A);
8000
+ const _ = i(I);
8001
8001
  S[y] = _, (s[y] === void 0 || _ > s[y]) && (s[y] = _);
8002
8002
  }
8003
- C.push(A);
8003
+ C.push(I);
8004
8004
  }
8005
8005
  l[f] = C, a[f] = S;
8006
8006
  }
@@ -8019,12 +8019,12 @@ function Ac(e, n) {
8019
8019
  const C = o[c];
8020
8020
  let S = "", y = "";
8021
8021
  C === 99 ? (S = ":", y = ":") : C === 108 ? S = ":" : C === 114 && (y = ":");
8022
- let A = t.alignDelimiters === !1 ? 1 : Math.max(
8022
+ let I = t.alignDelimiters === !1 ? 1 : Math.max(
8023
8023
  1,
8024
8024
  s[c] - S.length - y.length
8025
8025
  );
8026
- const _ = S + "-".repeat(A) + y;
8027
- t.alignDelimiters !== !1 && (A = S.length + A + y.length, A > s[c] && (s[c] = A), p[c] = A), h[c] = _;
8026
+ const _ = S + "-".repeat(I) + y;
8027
+ t.alignDelimiters !== !1 && (I = S.length + I + y.length, I > s[c] && (s[c] = I), p[c] = I), h[c] = _;
8028
8028
  }
8029
8029
  l.splice(1, 0, h), a.splice(1, 0, p), f = -1;
8030
8030
  const g = [];
@@ -8033,7 +8033,7 @@ function Ac(e, n) {
8033
8033
  c = -1;
8034
8034
  const y = [];
8035
8035
  for (; ++c < u; ) {
8036
- const A = C[c] || "";
8036
+ const I = C[c] || "";
8037
8037
  let _ = "", L = "";
8038
8038
  if (t.alignDelimiters !== !1) {
8039
8039
  const N = s[c] - (S[c] || 0), x = o[c];
@@ -8041,7 +8041,7 @@ function Ac(e, n) {
8041
8041
  }
8042
8042
  t.delimiterStart !== !1 && !c && y.push("|"), t.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
8043
8043
  // empty: there will be a closing space.
8044
- !(t.alignDelimiters === !1 && A === "") && (t.delimiterStart !== !1 || c) && y.push(" "), t.alignDelimiters !== !1 && y.push(_), y.push(A), t.alignDelimiters !== !1 && y.push(L), t.padding !== !1 && y.push(" "), (t.delimiterEnd !== !1 || c !== u - 1) && y.push("|");
8044
+ !(t.alignDelimiters === !1 && I === "") && (t.delimiterStart !== !1 || c) && y.push(" "), t.alignDelimiters !== !1 && y.push(_), y.push(I), t.alignDelimiters !== !1 && y.push(L), t.padding !== !1 && y.push(" "), (t.delimiterEnd !== !1 || c !== u - 1) && y.push("|");
8045
8045
  }
8046
8046
  g.push(
8047
8047
  t.delimiterEnd === !1 ? y.join("").replace(/ +$/, "") : y.join("")
@@ -8050,7 +8050,7 @@ function Ac(e, n) {
8050
8050
  return g.join(`
8051
8051
  `);
8052
8052
  }
8053
- function Ic(e) {
8053
+ function Ac(e) {
8054
8054
  return e == null ? "" : String(e);
8055
8055
  }
8056
8056
  function br(e) {
@@ -8062,14 +8062,14 @@ function Tc(e, n, t, r) {
8062
8062
  o.move("> "), o.shift(2);
8063
8063
  const l = t.indentLines(
8064
8064
  t.containerFlow(e, o.current()),
8065
- zc
8065
+ Pc
8066
8066
  );
8067
8067
  return i(), l;
8068
8068
  }
8069
- function zc(e, n, t) {
8069
+ function Pc(e, n, t) {
8070
8070
  return ">" + (t ? "" : " ") + e;
8071
8071
  }
8072
- function Pc(e, n) {
8072
+ function zc(e, n) {
8073
8073
  return wr(e, n.inConstruct, !0) && !wr(e, n.notInConstruct, !1);
8074
8074
  }
8075
8075
  function wr(e, n, t) {
@@ -8085,7 +8085,7 @@ function Cr(e, n, t, r) {
8085
8085
  let i = -1;
8086
8086
  for (; ++i < t.unsafe.length; )
8087
8087
  if (t.unsafe[i].character === `
8088
- ` && Pc(t.stack, t.unsafe[i]))
8088
+ ` && zc(t.stack, t.unsafe[i]))
8089
8089
  return /[ \t]/.test(r.before) ? "" : " ";
8090
8090
  return `\\
8091
8091
  `;
@@ -8200,7 +8200,7 @@ function Oc(e) {
8200
8200
  function ut(e) {
8201
8201
  return "&#x" + e.toString(16).toUpperCase() + ";";
8202
8202
  }
8203
- function At(e, n, t) {
8203
+ function It(e, n, t) {
8204
8204
  const r = We(e), i = We(n);
8205
8205
  return r === void 0 ? i === void 0 ? (
8206
8206
  // Letter inside:
@@ -8243,13 +8243,13 @@ function Ci(e, n, t, r) {
8243
8243
  ...l.current()
8244
8244
  })
8245
8245
  );
8246
- const u = s.charCodeAt(0), f = At(
8246
+ const u = s.charCodeAt(0), f = It(
8247
8247
  r.before.charCodeAt(r.before.length - 1),
8248
8248
  u,
8249
8249
  i
8250
8250
  );
8251
8251
  f.inside && (s = ut(u) + s.slice(1));
8252
- const c = s.charCodeAt(s.length - 1), h = At(r.after.charCodeAt(0), c, i);
8252
+ const c = s.charCodeAt(s.length - 1), h = It(r.after.charCodeAt(0), c, i);
8253
8253
  h.inside && (s = s.slice(0, -1) + ut(c));
8254
8254
  const p = l.move(i);
8255
8255
  return o(), t.attentionEncodeSurroundingInfo = {
@@ -8303,7 +8303,7 @@ function Si(e) {
8303
8303
  function Hc() {
8304
8304
  return "<";
8305
8305
  }
8306
- vi.peek = Vc;
8306
+ vi.peek = qc;
8307
8307
  function vi(e, n, t, r) {
8308
8308
  const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.enter("image");
8309
8309
  let a = t.enter("label");
@@ -8329,10 +8329,10 @@ function vi(e, n, t, r) {
8329
8329
  })
8330
8330
  ), u += s.move(i), a()), u += s.move(")"), l(), u;
8331
8331
  }
8332
- function Vc() {
8332
+ function qc() {
8333
8333
  return "!";
8334
8334
  }
8335
- _i.peek = qc;
8335
+ _i.peek = Vc;
8336
8336
  function _i(e, n, t, r) {
8337
8337
  const i = e.referenceType, o = t.enter("imageReference");
8338
8338
  let l = t.enter("label");
@@ -8353,7 +8353,7 @@ function _i(e, n, t, r) {
8353
8353
  });
8354
8354
  return l(), t.stack = f, o(), i === "full" || !u || u !== c ? s += a.move(c + "]") : i === "shortcut" ? s = s.slice(0, -1) : s += a.move("]"), s;
8355
8355
  }
8356
- function qc() {
8356
+ function Vc() {
8357
8357
  return "!";
8358
8358
  }
8359
8359
  Ei.peek = Uc;
@@ -8375,7 +8375,7 @@ function Ei(e, n, t) {
8375
8375
  function Uc() {
8376
8376
  return "`";
8377
8377
  }
8378
- function Ai(e, n) {
8378
+ function Ii(e, n) {
8379
8379
  const t = yn(e);
8380
8380
  return !!(!n.options.resourceLink && // If there’s a url…
8381
8381
  e.url && // And there’s a no title…
@@ -8386,11 +8386,11 @@ function Ai(e, n) {
8386
8386
  // references don’t work), space, or angle brackets…
8387
8387
  !/[\0- <>\u007F]/.test(e.url));
8388
8388
  }
8389
- Ii.peek = Wc;
8390
- function Ii(e, n, t, r) {
8389
+ Ai.peek = Wc;
8390
+ function Ai(e, n, t, r) {
8391
8391
  const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.createTracker(r);
8392
8392
  let a, s;
8393
- if (Ai(e, t)) {
8393
+ if (Ii(e, t)) {
8394
8394
  const f = t.stack;
8395
8395
  t.stack = [], a = t.enter("autolink");
8396
8396
  let c = l.move("<");
@@ -8429,7 +8429,7 @@ function Ii(e, n, t, r) {
8429
8429
  ), u += l.move(i), s()), u += l.move(")"), a(), u;
8430
8430
  }
8431
8431
  function Wc(e, n, t) {
8432
- return Ai(e, t) ? "<" : "[";
8432
+ return Ii(e, t) ? "<" : "[";
8433
8433
  }
8434
8434
  Ti.peek = Yc;
8435
8435
  function Ti(e, n, t, r) {
@@ -8455,7 +8455,7 @@ function Ti(e, n, t, r) {
8455
8455
  function Yc() {
8456
8456
  return "[";
8457
8457
  }
8458
- function An(e) {
8458
+ function In(e) {
8459
8459
  const n = e.options.bullet || "*";
8460
8460
  if (n !== "*" && n !== "+" && n !== "-")
8461
8461
  throw new Error(
@@ -8464,7 +8464,7 @@ function An(e) {
8464
8464
  return n;
8465
8465
  }
8466
8466
  function Qc(e) {
8467
- const n = An(e), t = e.options.bulletOther;
8467
+ const n = In(e), t = e.options.bulletOther;
8468
8468
  if (!t)
8469
8469
  return n === "*" ? "-" : "*";
8470
8470
  if (t !== "*" && t !== "+" && t !== "-")
@@ -8485,7 +8485,7 @@ function Xc(e) {
8485
8485
  );
8486
8486
  return n;
8487
8487
  }
8488
- function zi(e) {
8488
+ function Pi(e) {
8489
8489
  const n = e.options.rule || "*";
8490
8490
  if (n !== "*" && n !== "-" && n !== "_")
8491
8491
  throw new Error(
@@ -8495,7 +8495,7 @@ function zi(e) {
8495
8495
  }
8496
8496
  function Gc(e, n, t, r) {
8497
8497
  const i = t.enter("list"), o = t.bulletCurrent;
8498
- let l = e.ordered ? Xc(t) : An(t);
8498
+ let l = e.ordered ? Xc(t) : In(t);
8499
8499
  const a = e.ordered ? l === "." ? ")" : "." : Qc(t);
8500
8500
  let s = n && t.bulletLastUsed ? l === t.bulletLastUsed : !1;
8501
8501
  if (!e.ordered) {
@@ -8505,7 +8505,7 @@ function Gc(e, n, t, r) {
8505
8505
  (l === "*" || l === "-") && // Empty first list item:
8506
8506
  f && (!f.children || !f.children[0]) && // Directly in two other list items:
8507
8507
  t.stack[t.stack.length - 1] === "list" && t.stack[t.stack.length - 2] === "listItem" && t.stack[t.stack.length - 3] === "list" && t.stack[t.stack.length - 4] === "listItem" && // That are each the first child.
8508
- t.indexStack[t.indexStack.length - 1] === 0 && t.indexStack[t.indexStack.length - 2] === 0 && t.indexStack[t.indexStack.length - 3] === 0 && (s = !0), zi(t) === l && f
8508
+ t.indexStack[t.indexStack.length - 1] === 0 && t.indexStack[t.indexStack.length - 2] === 0 && t.indexStack[t.indexStack.length - 3] === 0 && (s = !0), Pi(t) === l && f
8509
8509
  ) {
8510
8510
  let c = -1;
8511
8511
  for (; ++c < e.children.length; ) {
@@ -8531,7 +8531,7 @@ function Jc(e) {
8531
8531
  }
8532
8532
  function Kc(e, n, t, r) {
8533
8533
  const i = Jc(t);
8534
- let o = t.bulletCurrent || An(t);
8534
+ let o = t.bulletCurrent || In(t);
8535
8535
  n && n.type === "list" && n.ordered && (o = (typeof n.start == "number" && n.start > -1 ? n.start : 1) + (t.options.incrementListMarker === !1 ? 0 : n.children.indexOf(e)) + o);
8536
8536
  let l = o.length + 1;
8537
8537
  (i === "tab" || i === "mixed" && (n && n.type === "list" && n.spread || e.spread)) && (l = Math.ceil(l / 4) * 4);
@@ -8552,7 +8552,7 @@ function Zc(e, n, t, r) {
8552
8552
  }
8553
8553
  const ef = (
8554
8554
  /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
8555
- Pt([
8555
+ zt([
8556
8556
  "break",
8557
8557
  "delete",
8558
8558
  "emphasis",
@@ -8589,8 +8589,8 @@ function nf(e) {
8589
8589
  );
8590
8590
  return n;
8591
8591
  }
8592
- Pi.peek = rf;
8593
- function Pi(e, n, t, r) {
8592
+ zi.peek = rf;
8593
+ function zi(e, n, t, r) {
8594
8594
  const i = nf(t), o = t.enter("strong"), l = t.createTracker(r), a = l.move(i + i);
8595
8595
  let s = l.move(
8596
8596
  t.containerPhrasing(e, {
@@ -8599,13 +8599,13 @@ function Pi(e, n, t, r) {
8599
8599
  ...l.current()
8600
8600
  })
8601
8601
  );
8602
- const u = s.charCodeAt(0), f = At(
8602
+ const u = s.charCodeAt(0), f = It(
8603
8603
  r.before.charCodeAt(r.before.length - 1),
8604
8604
  u,
8605
8605
  i
8606
8606
  );
8607
8607
  f.inside && (s = ut(u) + s.slice(1));
8608
- const c = s.charCodeAt(s.length - 1), h = At(r.after.charCodeAt(0), c, i);
8608
+ const c = s.charCodeAt(s.length - 1), h = It(r.after.charCodeAt(0), c, i);
8609
8609
  h.inside && (s = s.slice(0, -1) + ut(c));
8610
8610
  const p = l.move(i + i);
8611
8611
  return o(), t.attentionEncodeSurroundingInfo = {
@@ -8628,7 +8628,7 @@ function of(e) {
8628
8628
  return n;
8629
8629
  }
8630
8630
  function af(e, n, t) {
8631
- const r = (zi(t) + (t.options.ruleSpaces ? " " : "")).repeat(of(t));
8631
+ const r = (Pi(t) + (t.options.ruleSpaces ? " " : "")).repeat(of(t));
8632
8632
  return t.options.ruleSpaces ? r.slice(0, -1) : r;
8633
8633
  }
8634
8634
  const Li = {
@@ -8643,13 +8643,13 @@ const Li = {
8643
8643
  image: vi,
8644
8644
  imageReference: _i,
8645
8645
  inlineCode: Ei,
8646
- link: Ii,
8646
+ link: Ai,
8647
8647
  linkReference: Ti,
8648
8648
  list: Gc,
8649
8649
  listItem: Kc,
8650
8650
  paragraph: Zc,
8651
8651
  root: tf,
8652
- strong: Pi,
8652
+ strong: zi,
8653
8653
  text: lf,
8654
8654
  thematicBreak: af
8655
8655
  };
@@ -8737,20 +8737,20 @@ function df(e) {
8737
8737
  return u(f(p, C, S), p.align);
8738
8738
  }
8739
8739
  function a(p, g, C, S) {
8740
- const y = c(p, C, S), A = u([y]);
8741
- return A.slice(0, A.indexOf(`
8740
+ const y = c(p, C, S), I = u([y]);
8741
+ return I.slice(0, I.indexOf(`
8742
8742
  `));
8743
8743
  }
8744
8744
  function s(p, g, C, S) {
8745
- const y = C.enter("tableCell"), A = C.enter("phrasing"), _ = C.containerPhrasing(p, {
8745
+ const y = C.enter("tableCell"), I = C.enter("phrasing"), _ = C.containerPhrasing(p, {
8746
8746
  ...S,
8747
8747
  before: o,
8748
8748
  after: o
8749
8749
  });
8750
- return A(), y(), _;
8750
+ return I(), y(), _;
8751
8751
  }
8752
8752
  function u(p, g) {
8753
- return Ac(p, {
8753
+ return Ic(p, {
8754
8754
  align: g,
8755
8755
  // @ts-expect-error: `markdown-table` types should support `null`.
8756
8756
  alignDelimiters: r,
@@ -8763,18 +8763,18 @@ function df(e) {
8763
8763
  function f(p, g, C) {
8764
8764
  const S = p.children;
8765
8765
  let y = -1;
8766
- const A = [], _ = g.enter("table");
8766
+ const I = [], _ = g.enter("table");
8767
8767
  for (; ++y < S.length; )
8768
- A[y] = c(S[y], g, C);
8769
- return _(), A;
8768
+ I[y] = c(S[y], g, C);
8769
+ return _(), I;
8770
8770
  }
8771
8771
  function c(p, g, C) {
8772
8772
  const S = p.children;
8773
8773
  let y = -1;
8774
- const A = [], _ = g.enter("tableRow");
8774
+ const I = [], _ = g.enter("tableRow");
8775
8775
  for (; ++y < S.length; )
8776
- A[y] = s(S[y], p, g, C);
8777
- return _(), A;
8776
+ I[y] = s(S[y], p, g, C);
8777
+ return _(), I;
8778
8778
  }
8779
8779
  function h(p, g, C) {
8780
8780
  let S = Li.inlineCode(p, g, C);
@@ -8854,19 +8854,19 @@ function bf(e) {
8854
8854
  };
8855
8855
  }
8856
8856
  const wf = {
8857
- tokenize: Af,
8857
+ tokenize: If,
8858
8858
  partial: !0
8859
8859
  }, Di = {
8860
- tokenize: If,
8860
+ tokenize: Af,
8861
8861
  partial: !0
8862
8862
  }, Ni = {
8863
8863
  tokenize: Tf,
8864
8864
  partial: !0
8865
8865
  }, Ri = {
8866
- tokenize: zf,
8866
+ tokenize: Pf,
8867
8867
  partial: !0
8868
8868
  }, Cf = {
8869
- tokenize: Pf,
8869
+ tokenize: zf,
8870
8870
  partial: !0
8871
8871
  }, Mi = {
8872
8872
  name: "wwwAutolink",
@@ -8902,7 +8902,7 @@ function vf(e, n, t) {
8902
8902
  let i, o;
8903
8903
  return l;
8904
8904
  function l(c) {
8905
- return !an(c) || !ji.call(r, r.previous) || In(r.events) ? t(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
8905
+ return !an(c) || !ji.call(r, r.previous) || An(r.events) ? t(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
8906
8906
  }
8907
8907
  function a(c) {
8908
8908
  return an(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), s) : t(c);
@@ -8921,7 +8921,7 @@ function _f(e, n, t) {
8921
8921
  const r = this;
8922
8922
  return i;
8923
8923
  function i(l) {
8924
- return l !== 87 && l !== 119 || !Oi.call(r, r.previous) || In(r.events) ? t(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(wf, e.attempt(Di, e.attempt(Ni, o), t), t)(l));
8924
+ return l !== 87 && l !== 119 || !Oi.call(r, r.previous) || An(r.events) ? t(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(wf, e.attempt(Di, e.attempt(Ni, o), t), t)(l));
8925
8925
  }
8926
8926
  function o(l) {
8927
8927
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), n(l);
@@ -8932,7 +8932,7 @@ function Ef(e, n, t) {
8932
8932
  let i = "", o = !1;
8933
8933
  return l;
8934
8934
  function l(c) {
8935
- return (c === 72 || c === 104) && Bi.call(r, r.previous) && !In(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), a) : t(c);
8935
+ return (c === 72 || c === 104) && Bi.call(r, r.previous) && !An(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), a) : t(c);
8936
8936
  }
8937
8937
  function a(c) {
8938
8938
  if (ae(c) && i.length < 5)
@@ -8948,13 +8948,13 @@ function Ef(e, n, t) {
8948
8948
  return c === 47 ? (e.consume(c), o ? u : (o = !0, s)) : t(c);
8949
8949
  }
8950
8950
  function u(c) {
8951
- return c === null || vt(c) || J(c) || Oe(c) || It(c) ? t(c) : e.attempt(Di, e.attempt(Ni, f), t)(c);
8951
+ return c === null || vt(c) || J(c) || Oe(c) || At(c) ? t(c) : e.attempt(Di, e.attempt(Ni, f), t)(c);
8952
8952
  }
8953
8953
  function f(c) {
8954
8954
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), n(c);
8955
8955
  }
8956
8956
  }
8957
- function Af(e, n, t) {
8957
+ function If(e, n, t) {
8958
8958
  let r = 0;
8959
8959
  return i;
8960
8960
  function i(l) {
@@ -8964,11 +8964,11 @@ function Af(e, n, t) {
8964
8964
  return l === null ? t(l) : n(l);
8965
8965
  }
8966
8966
  }
8967
- function If(e, n, t) {
8967
+ function Af(e, n, t) {
8968
8968
  let r, i, o;
8969
8969
  return l;
8970
8970
  function l(u) {
8971
- return u === 46 || u === 95 ? e.check(Ri, s, a)(u) : u === null || J(u) || Oe(u) || u !== 45 && It(u) ? s(u) : (o = !0, e.consume(u), l);
8971
+ return u === 46 || u === 95 ? e.check(Ri, s, a)(u) : u === null || J(u) || Oe(u) || u !== 45 && At(u) ? s(u) : (o = !0, e.consume(u), l);
8972
8972
  }
8973
8973
  function a(u) {
8974
8974
  return u === 95 ? r = !0 : (i = r, r = void 0), e.consume(u), l;
@@ -8987,7 +8987,7 @@ function Tf(e, n) {
8987
8987
  return l === 41 && r++, e.consume(l), i;
8988
8988
  }
8989
8989
  }
8990
- function zf(e, n, t) {
8990
+ function Pf(e, n, t) {
8991
8991
  return r;
8992
8992
  function r(a) {
8993
8993
  return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), o) : a === 93 ? (e.consume(a), i) : (
@@ -9006,7 +9006,7 @@ function zf(e, n, t) {
9006
9006
  return a === 59 ? (e.consume(a), r) : ae(a) ? (e.consume(a), l) : t(a);
9007
9007
  }
9008
9008
  }
9009
- function Pf(e, n, t) {
9009
+ function zf(e, n, t) {
9010
9010
  return r;
9011
9011
  function r(o) {
9012
9012
  return e.consume(o), i;
@@ -9027,7 +9027,7 @@ function ji(e) {
9027
9027
  function an(e) {
9028
9028
  return e === 43 || e === 45 || e === 46 || e === 95 || ie(e);
9029
9029
  }
9030
- function In(e) {
9030
+ function An(e) {
9031
9031
  let n = e.length, t = !1;
9032
9032
  for (; n--; ) {
9033
9033
  const r = e[n][1];
@@ -9207,7 +9207,7 @@ function Ff(e, n, t) {
9207
9207
  return g === 91 || g === 92 || g === 93 ? (e.consume(g), l++, f) : f(g);
9208
9208
  }
9209
9209
  function h(g) {
9210
- return g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), i.includes(o) || i.push(o), q(e, p, "gfmFootnoteDefinitionWhitespace")) : t(g);
9210
+ return g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), i.includes(o) || i.push(o), V(e, p, "gfmFootnoteDefinitionWhitespace")) : t(g);
9211
9211
  }
9212
9212
  function p(g) {
9213
9213
  return n(g);
@@ -9221,7 +9221,7 @@ function Bf(e) {
9221
9221
  }
9222
9222
  function jf(e, n, t) {
9223
9223
  const r = this;
9224
- return q(e, i, "gfmFootnoteDefinitionIndent", 5);
9224
+ return V(e, i, "gfmFootnoteDefinitionIndent", 5);
9225
9225
  function i(o) {
9226
9226
  const l = r.events[r.events.length - 1];
9227
9227
  return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? n(o) : t(o);
@@ -9304,7 +9304,7 @@ class Hf {
9304
9304
  * @returns {undefined}
9305
9305
  */
9306
9306
  add(n, t, r) {
9307
- Vf(this, n, t, r);
9307
+ qf(this, n, t, r);
9308
9308
  }
9309
9309
  // To do: add this when moving to `micromark`.
9310
9310
  // /**
@@ -9343,7 +9343,7 @@ class Hf {
9343
9343
  this.map.length = 0;
9344
9344
  }
9345
9345
  }
9346
- function Vf(e, n, t, r) {
9346
+ function qf(e, n, t, r) {
9347
9347
  let i = 0;
9348
9348
  if (!(t === 0 && r.length === 0)) {
9349
9349
  for (; i < e.map.length; ) {
@@ -9356,7 +9356,7 @@ function Vf(e, n, t, r) {
9356
9356
  e.map.push([n, t, r]);
9357
9357
  }
9358
9358
  }
9359
- function qf(e, n) {
9359
+ function Vf(e, n) {
9360
9360
  let t = !1;
9361
9361
  const r = [];
9362
9362
  for (; n < e.length; ) {
@@ -9394,12 +9394,12 @@ function Wf(e, n, t) {
9394
9394
  function a(k) {
9395
9395
  let T = r.events.length - 1;
9396
9396
  for (; T > -1; ) {
9397
- const P = r.events[T][1].type;
9398
- if (P === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
9399
- P === "linePrefix") T--;
9397
+ const z = r.events[T][1].type;
9398
+ if (z === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
9399
+ z === "linePrefix") T--;
9400
9400
  else break;
9401
9401
  }
9402
- const z = T > -1 ? r.events[T][1].type : null, U = z === "tableHead" || z === "tableRow" ? x : s;
9402
+ const P = T > -1 ? r.events[T][1].type : null, U = P === "tableHead" || P === "tableRow" ? x : s;
9403
9403
  return U === x && r.parser.lazy[r.now().line] ? t(k) : U(k);
9404
9404
  }
9405
9405
  function s(k) {
@@ -9409,7 +9409,7 @@ function Wf(e, n, t) {
9409
9409
  return k === 124 || (l = !0, o += 1), f(k);
9410
9410
  }
9411
9411
  function f(k) {
9412
- return k === null ? t(k) : D(k) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), p) : t(k) : j(k) ? q(e, f, "whitespace")(k) : (o += 1, l && (l = !1, i += 1), k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(k)));
9412
+ return k === null ? t(k) : D(k) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), p) : t(k) : $(k) ? V(e, f, "whitespace")(k) : (o += 1, l && (l = !1, i += 1), k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(k)));
9413
9413
  }
9414
9414
  function c(k) {
9415
9415
  return k === null || k === 124 || J(k) ? (e.exit("data"), f(k)) : (e.consume(k), k === 92 ? h : c);
@@ -9418,25 +9418,25 @@ function Wf(e, n, t) {
9418
9418
  return k === 92 || k === 124 ? (e.consume(k), c) : c(k);
9419
9419
  }
9420
9420
  function p(k) {
9421
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(k) : (e.enter("tableDelimiterRow"), l = !1, j(k) ? q(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : g(k));
9421
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(k) : (e.enter("tableDelimiterRow"), l = !1, $(k) ? V(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : g(k));
9422
9422
  }
9423
9423
  function g(k) {
9424
9424
  return k === 45 || k === 58 ? S(k) : k === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), C) : N(k);
9425
9425
  }
9426
9426
  function C(k) {
9427
- return j(k) ? q(e, S, "whitespace")(k) : S(k);
9427
+ return $(k) ? V(e, S, "whitespace")(k) : S(k);
9428
9428
  }
9429
9429
  function S(k) {
9430
9430
  return k === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), y) : k === 45 ? (o += 1, y(k)) : k === null || D(k) ? L(k) : N(k);
9431
9431
  }
9432
9432
  function y(k) {
9433
- return k === 45 ? (e.enter("tableDelimiterFiller"), A(k)) : N(k);
9433
+ return k === 45 ? (e.enter("tableDelimiterFiller"), I(k)) : N(k);
9434
9434
  }
9435
- function A(k) {
9436
- return k === 45 ? (e.consume(k), A) : k === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), _) : (e.exit("tableDelimiterFiller"), _(k));
9435
+ function I(k) {
9436
+ return k === 45 ? (e.consume(k), I) : k === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), _) : (e.exit("tableDelimiterFiller"), _(k));
9437
9437
  }
9438
9438
  function _(k) {
9439
- return j(k) ? q(e, L, "whitespace")(k) : L(k);
9439
+ return $(k) ? V(e, L, "whitespace")(k) : L(k);
9440
9440
  }
9441
9441
  function L(k) {
9442
9442
  return k === 124 ? g(k) : k === null || D(k) ? !l || i !== o ? N(k) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(k)) : N(k);
@@ -9448,13 +9448,13 @@ function Wf(e, n, t) {
9448
9448
  return e.enter("tableRow"), O(k);
9449
9449
  }
9450
9450
  function O(k) {
9451
- return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), O) : k === null || D(k) ? (e.exit("tableRow"), n(k)) : j(k) ? q(e, O, "whitespace")(k) : (e.enter("data"), $(k));
9452
- }
9453
- function $(k) {
9454
- return k === null || k === 124 || J(k) ? (e.exit("data"), O(k)) : (e.consume(k), k === 92 ? H : $);
9451
+ return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), O) : k === null || D(k) ? (e.exit("tableRow"), n(k)) : $(k) ? V(e, O, "whitespace")(k) : (e.enter("data"), H(k));
9455
9452
  }
9456
9453
  function H(k) {
9457
- return k === 92 || k === 124 ? (e.consume(k), $) : $(k);
9454
+ return k === null || k === 124 || J(k) ? (e.exit("data"), O(k)) : (e.consume(k), k === 92 ? j : H);
9455
+ }
9456
+ function j(k) {
9457
+ return k === 92 || k === 124 ? (e.consume(k), H) : H(k);
9458
9458
  }
9459
9459
  }
9460
9460
  function Yf(e, n) {
@@ -9476,21 +9476,21 @@ function Yf(e, n) {
9476
9476
  }
9477
9477
  for (s !== 0 && _r(h, n, s, u, f), h.consume(n.events), t = -1; ++t < n.events.length; ) {
9478
9478
  const p = n.events[t];
9479
- p[0] === "enter" && p[1].type === "table" && (p[1]._align = qf(n.events, t));
9479
+ p[0] === "enter" && p[1].type === "table" && (p[1]._align = Vf(n.events, t));
9480
9480
  }
9481
9481
  return e;
9482
9482
  }
9483
9483
  function kt(e, n, t, r, i, o) {
9484
9484
  const l = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
9485
- t[0] !== 0 && (o.end = Object.assign({}, qe(n.events, t[0])), e.add(t[0], 0, [["exit", o, n]]));
9486
- const s = qe(n.events, t[1]);
9485
+ t[0] !== 0 && (o.end = Object.assign({}, Ve(n.events, t[0])), e.add(t[0], 0, [["exit", o, n]]));
9486
+ const s = Ve(n.events, t[1]);
9487
9487
  if (o = {
9488
9488
  type: l,
9489
9489
  start: Object.assign({}, s),
9490
9490
  // Note: correct end is set later.
9491
9491
  end: Object.assign({}, s)
9492
9492
  }, e.add(t[1], 0, [["enter", o, n]]), t[2] !== 0) {
9493
- const u = qe(n.events, t[2]), f = qe(n.events, t[3]), c = {
9493
+ const u = Ve(n.events, t[2]), f = Ve(n.events, t[3]), c = {
9494
9494
  type: a,
9495
9495
  start: Object.assign({}, u),
9496
9496
  end: Object.assign({}, f)
@@ -9504,13 +9504,13 @@ function kt(e, n, t, r, i, o) {
9504
9504
  }
9505
9505
  e.add(t[3] + 1, 0, [["exit", c, n]]);
9506
9506
  }
9507
- return i !== void 0 && (o.end = Object.assign({}, qe(n.events, i)), e.add(i, 0, [["exit", o, n]]), o = void 0), o;
9507
+ return i !== void 0 && (o.end = Object.assign({}, Ve(n.events, i)), e.add(i, 0, [["exit", o, n]]), o = void 0), o;
9508
9508
  }
9509
9509
  function _r(e, n, t, r, i) {
9510
- const o = [], l = qe(n.events, t);
9510
+ const o = [], l = Ve(n.events, t);
9511
9511
  i && (i.end = Object.assign({}, l), o.push(["exit", i, n])), r.end = Object.assign({}, l), o.push(["exit", r, n]), e.add(t + 1, 0, o);
9512
9512
  }
9513
- function qe(e, n) {
9513
+ function Ve(e, n) {
9514
9514
  const t = e[n], r = t[0] === "enter" ? "start" : "end";
9515
9515
  return t[1][r];
9516
9516
  }
@@ -9543,13 +9543,13 @@ function Gf(e, n, t) {
9543
9543
  return s === 93 ? (e.enter("taskListCheckMarker"), e.consume(s), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), a) : t(s);
9544
9544
  }
9545
9545
  function a(s) {
9546
- return D(s) ? n(s) : j(s) ? e.check({
9546
+ return D(s) ? n(s) : $(s) ? e.check({
9547
9547
  tokenize: Jf
9548
9548
  }, n, t)(s) : t(s);
9549
9549
  }
9550
9550
  }
9551
9551
  function Jf(e, n, t) {
9552
- return q(e, r, "whitespace");
9552
+ return V(e, r, "whitespace");
9553
9553
  function r(i) {
9554
9554
  return i === null ? t(i) : n(i);
9555
9555
  }
@@ -9571,7 +9571,7 @@ function ep(e) {
9571
9571
  ), t = e || Zf, r = n.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
9572
9572
  i.push(Kf(t)), o.push(xf()), l.push(bf(t));
9573
9573
  }
9574
- const tp = "_wrapper_izvjy_1", np = "_table_izvjy_15", rp = "_th_izvjy_27", ip = "_tr_izvjy_47", lp = "_td_izvjy_63", nt = {
9574
+ const tp = "_wrapper_v5oy7_1", np = "_table_v5oy7_8", rp = "_th_v5oy7_14", ip = "_tr_v5oy7_24", lp = "_td_v5oy7_32", nt = {
9575
9575
  wrapper: tp,
9576
9576
  table: np,
9577
9577
  th: rp,
@@ -9584,7 +9584,7 @@ function op({ part: e }) {
9584
9584
  /* @__PURE__ */ b("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ b("tr", { className: nt.tr, children: e.columns.map((r) => /* @__PURE__ */ b("td", { className: nt.td, children: String(n[r] ?? "") }, r)) }, t)) })
9585
9585
  ] }) });
9586
9586
  }
9587
- const ap = "_card_1gzm6_1", sp = "_header_1gzm6_17", up = "_icon_1gzm6_31", cp = "_title_1gzm6_45", fp = "_description_1gzm6_57", pp = "_cardResolved_1gzm6_71", hp = "_resolvedBadge_1gzm6_79", dp = "_actions_1gzm6_101", mp = "_confirm_1gzm6_111", gp = "_cancel_1gzm6_143", ye = {
9587
+ const ap = "_card_83cdc_1", sp = "_header_83cdc_9", up = "_icon_83cdc_16", cp = "_title_83cdc_23", fp = "_description_83cdc_29", pp = "_cardResolved_83cdc_36", hp = "_resolvedBadge_83cdc_40", dp = "_actions_83cdc_51", mp = "_confirm_83cdc_56", gp = "_cancel_83cdc_72", ye = {
9588
9588
  card: ap,
9589
9589
  header: sp,
9590
9590
  icon: up,
@@ -9624,7 +9624,7 @@ function yp({ part: e, onConfirm: n, onCancel: t }) {
9624
9624
  ] })
9625
9625
  ] });
9626
9626
  }
9627
- const kp = "_activity_1661l_1", xp = "_indicator_1661l_25", bp = "_content_1661l_71", wp = "_title_1661l_79", Cp = "_description_1661l_89", rt = {
9627
+ const kp = "_activity_2jjfs_1", xp = "_indicator_2jjfs_13", bp = "_content_2jjfs_36", wp = "_title_2jjfs_40", Cp = "_description_2jjfs_45", rt = {
9628
9628
  activity: kp,
9629
9629
  indicator: xp,
9630
9630
  content: bp,
@@ -9640,15 +9640,15 @@ function Sp({ part: e }) {
9640
9640
  ] })
9641
9641
  ] });
9642
9642
  }
9643
- const vp = "_card_jwkcu_1", _p = "_cardClickable_jwkcu_14", Ep = "_header_jwkcu_24", Ap = "_title_jwkcu_30", Ip = "_subtitle_jwkcu_36", Tp = "_fields_jwkcu_41", zp = "_fieldRow_jwkcu_48", Pp = "_fieldLabel_jwkcu_55", Lp = "_fieldValue_jwkcu_61", Dp = "_badge_jwkcu_68", Np = "_badgeSuccess_jwkcu_76", Rp = "_badgeWarning_jwkcu_81", Mp = "_badgeDanger_jwkcu_86", Fp = "_badgeNeutral_jwkcu_91", oe = {
9643
+ const vp = "_card_jwkcu_1", _p = "_cardClickable_jwkcu_14", Ep = "_header_jwkcu_24", Ip = "_title_jwkcu_30", Ap = "_subtitle_jwkcu_36", Tp = "_fields_jwkcu_41", Pp = "_fieldRow_jwkcu_48", zp = "_fieldLabel_jwkcu_55", Lp = "_fieldValue_jwkcu_61", Dp = "_badge_jwkcu_68", Np = "_badgeSuccess_jwkcu_76", Rp = "_badgeWarning_jwkcu_81", Mp = "_badgeDanger_jwkcu_86", Fp = "_badgeNeutral_jwkcu_91", oe = {
9644
9644
  card: vp,
9645
9645
  cardClickable: _p,
9646
9646
  header: Ep,
9647
- title: Ap,
9648
- subtitle: Ip,
9647
+ title: Ip,
9648
+ subtitle: Ap,
9649
9649
  fields: Tp,
9650
- fieldRow: zp,
9651
- fieldLabel: Pp,
9650
+ fieldRow: Pp,
9651
+ fieldLabel: zp,
9652
9652
  fieldValue: Lp,
9653
9653
  badge: Dp,
9654
9654
  badgeSuccess: Np,
@@ -9699,10 +9699,10 @@ function $p({ part: e, onEntityClick: n }) {
9699
9699
  ))
9700
9700
  ] });
9701
9701
  }
9702
- const Hp = "_markdown_sznoh_1", Vp = "_unknownPart_sznoh_167", qp = "_errorText_sznoh_195", Up = "_errorIcon_sznoh_211", xt = {
9702
+ const Hp = "_markdown_1yi3y_1", qp = "_unknownPart_1yi3y_84", Vp = "_errorText_1yi3y_98", Up = "_errorIcon_1yi3y_106", xt = {
9703
9703
  markdown: Hp,
9704
- unknownPart: Vp,
9705
- errorText: qp,
9704
+ unknownPart: qp,
9705
+ errorText: Vp,
9706
9706
  errorIcon: Up
9707
9707
  };
9708
9708
  function Wp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick: r, renderPart: i }) {
@@ -9733,7 +9733,7 @@ function Wp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
9733
9733
  return /* @__PURE__ */ b($p, { part: e, onEntityClick: r });
9734
9734
  case "error":
9735
9735
  return /* @__PURE__ */ Y("span", { className: xt.errorText, children: [
9736
- /* @__PURE__ */ b(Il, { className: xt.errorIcon }),
9736
+ /* @__PURE__ */ b(Al, { className: xt.errorIcon }),
9737
9737
  e.message
9738
9738
  ] });
9739
9739
  default:
@@ -9800,7 +9800,7 @@ function rh({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityCli
9800
9800
  a && /* @__PURE__ */ b("div", { className: xe.avatar, children: l.userLabel })
9801
9801
  ] });
9802
9802
  }
9803
- const ih = "_wrapper_1oco7_1", lh = "_dot_1oco7_15", oh = "_connectingLabel_1oco7_37", it = {
9803
+ const ih = "_wrapper_1dvvu_1", lh = "_dot_1dvvu_8", oh = "_connectingLabel_1dvvu_19", it = {
9804
9804
  wrapper: ih,
9805
9805
  dot: lh,
9806
9806
  connectingLabel: oh
@@ -9821,7 +9821,7 @@ function ah({ connecting: e = !1 }) {
9821
9821
  }
9822
9822
  );
9823
9823
  }
9824
- const sh = "_list_ixto8_1", uh = "_empty_ixto8_21", ch = "_hint_ixto8_47", fh = "_typing_ixto8_61", bt = {
9824
+ const sh = "_list_1f8gn_1", uh = "_empty_1f8gn_11", ch = "_hint_1f8gn_24", fh = "_typing_1f8gn_31", bt = {
9825
9825
  list: sh,
9826
9826
  empty: uh,
9827
9827
  hint: ch,
@@ -9852,7 +9852,7 @@ function ph({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r,
9852
9852
  /* @__PURE__ */ b("div", { ref: u })
9853
9853
  ] });
9854
9854
  }
9855
- const hh = "_wrapper_ehrkb_1", dh = "_textarea_ehrkb_21", mh = "_toolbar_ehrkb_69", gh = "_actions_ehrkb_89", yh = "_actionBtn_ehrkb_103", kh = "_sendBtn_ehrkb_169", xh = "_spinnerIcon_ehrkb_231", bh = "_stopBtn_ehrkb_251", wh = "_stopIcon_ehrkb_297", ve = {
9855
+ const hh = "_wrapper_v8iyr_1", dh = "_textarea_v8iyr_11", mh = "_toolbar_v8iyr_35", gh = "_actions_v8iyr_45", yh = "_actionBtn_v8iyr_52", kh = "_sendBtn_v8iyr_85", xh = "_spinnerIcon_v8iyr_116", bh = "_stopBtn_v8iyr_126", wh = "_stopIcon_v8iyr_149", ve = {
9856
9856
  wrapper: hh,
9857
9857
  textarea: dh,
9858
9858
  toolbar: mh,
@@ -9936,13 +9936,13 @@ function Ch({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9936
9936
  ] })
9937
9937
  ] });
9938
9938
  }
9939
- const Sh = "_wrapper_1e3w5_1", vh = "_icon_1e3w5_27", _h = "_message_1e3w5_39", Eh = "_dismiss_1e3w5_47", wt = {
9939
+ const Sh = "_wrapper_1kefv_1", vh = "_icon_1kefv_14", _h = "_message_1kefv_20", Eh = "_dismiss_1kefv_24", wt = {
9940
9940
  wrapper: Sh,
9941
9941
  icon: vh,
9942
9942
  message: _h,
9943
9943
  dismiss: Eh
9944
9944
  };
9945
- function Ah({ message: e, onDismiss: n }) {
9945
+ function Ih({ message: e, onDismiss: n }) {
9946
9946
  const t = Te();
9947
9947
  return /* @__PURE__ */ Y("div", { className: wt.wrapper, role: "alert", children: [
9948
9948
  /* @__PURE__ */ b("svg", { className: wt.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { fillRule: "evenodd", d: "M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" }) }),
@@ -9950,10 +9950,10 @@ function Ah({ message: e, onDismiss: n }) {
9950
9950
  n && /* @__PURE__ */ b("button", { className: wt.dismiss, onClick: n, "aria-label": t.errorDismiss, children: /* @__PURE__ */ b("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) }) })
9951
9951
  ] });
9952
9952
  }
9953
- const Ih = "_chat_13051_1", Th = {
9954
- chat: Ih
9953
+ const Ah = "_chat_1acbe_1", Th = {
9954
+ chat: Ah
9955
9955
  };
9956
- function zh({
9956
+ function Ph({
9957
9957
  messages: e,
9958
9958
  input: n,
9959
9959
  isLoading: t,
@@ -9992,7 +9992,7 @@ function zh({
9992
9992
  renderPart: C
9993
9993
  }
9994
9994
  ),
9995
- i && /* @__PURE__ */ b(Ah, { message: i }),
9995
+ i && /* @__PURE__ */ b(Ih, { message: i }),
9996
9996
  /* @__PURE__ */ b(
9997
9997
  Ch,
9998
9998
  {
@@ -10010,29 +10010,37 @@ function zh({
10010
10010
  }
10011
10011
  );
10012
10012
  }
10013
- const Ph = "_header_1saak_1", Lh = "_left_1saak_23", Dh = "_icon_1saak_35", Nh = "_title_1saak_45", Rh = "_resetBtn_1saak_57", Mh = "_actions_1saak_99", Ne = {
10014
- header: Ph,
10013
+ const zh = "_header_f9hy1_1", Lh = "_left_f9hy1_12", Dh = "_icon_f9hy1_18", Nh = "_title_f9hy1_23", Rh = "_resetBtn_f9hy1_29", Mh = "_actions_f9hy1_50", Ne = {
10014
+ header: zh,
10015
10015
  left: Lh,
10016
10016
  icon: Dh,
10017
10017
  title: Nh,
10018
10018
  resetBtn: Rh,
10019
10019
  actions: Mh
10020
10020
  };
10021
- function Fh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
10022
- const o = Te();
10021
+ function Fh({
10022
+ title: e,
10023
+ onMinimize: n,
10024
+ isMinimized: t,
10025
+ icon: r,
10026
+ onReset: i,
10027
+ headerActions: o
10028
+ }) {
10029
+ const l = Te();
10023
10030
  return /* @__PURE__ */ Y("div", { className: Ne.header, children: [
10024
10031
  /* @__PURE__ */ Y("div", { className: Ne.left, children: [
10025
10032
  /* @__PURE__ */ b("span", { className: Ne.icon, "aria-hidden": "true", children: r ?? /* @__PURE__ */ b(Nr, {}) }),
10026
- /* @__PURE__ */ b("span", { className: Ne.title, children: e ?? o.sidebarTitle })
10033
+ /* @__PURE__ */ b("span", { className: Ne.title, children: e ?? l.sidebarTitle })
10027
10034
  ] }),
10028
- (n || i) && /* @__PURE__ */ Y("div", { className: Ne.actions, children: [
10035
+ (n || i || o) && /* @__PURE__ */ Y("div", { className: Ne.actions, children: [
10036
+ o,
10029
10037
  i && /* @__PURE__ */ b(
10030
10038
  "button",
10031
10039
  {
10032
10040
  className: Ne.resetBtn,
10033
10041
  onClick: i,
10034
- title: o.resetConversation,
10035
- "aria-label": o.resetConversation,
10042
+ title: l.resetConversation,
10043
+ "aria-label": l.resetConversation,
10036
10044
  children: "↺"
10037
10045
  }
10038
10046
  ),
@@ -10041,15 +10049,15 @@ function Fh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
10041
10049
  {
10042
10050
  className: Ne.resetBtn,
10043
10051
  onClick: n,
10044
- title: t ? o.expandSidebar : o.minimizeSidebar,
10045
- "aria-label": t ? o.expandSidebar : o.minimizeSidebar,
10046
- children: t ? /* @__PURE__ */ b(Al, {}) : /* @__PURE__ */ b(El, {})
10052
+ title: t ? l.expandSidebar : l.minimizeSidebar,
10053
+ "aria-label": t ? l.expandSidebar : l.minimizeSidebar,
10054
+ children: t ? /* @__PURE__ */ b(Il, {}) : /* @__PURE__ */ b(El, {})
10047
10055
  }
10048
10056
  )
10049
10057
  ] })
10050
10058
  ] });
10051
10059
  }
10052
- const Oh = "_sidebar_u9ybt_1", Bh = "_minimized_u9ybt_39", Ar = {
10060
+ const Oh = "_sidebar_17ski_1", Bh = "_minimized_17ski_20", Ir = {
10053
10061
  sidebar: Oh,
10054
10062
  minimized: Bh
10055
10063
  };
@@ -10063,52 +10071,54 @@ function ld({
10063
10071
  style: l,
10064
10072
  onReset: a,
10065
10073
  renderPart: s,
10066
- onEntityClick: u
10074
+ onEntityClick: u,
10075
+ headerActions: f
10067
10076
  }) {
10068
- const [f, c] = Me(!1), {
10069
- messages: h,
10070
- input: p,
10071
- setInput: g,
10072
- sendMessage: C,
10073
- stop: S,
10074
- isLoading: y,
10075
- isConnecting: A,
10076
- error: _,
10077
- reset: L,
10078
- confirmProposal: N,
10079
- cancelProposal: x
10080
- } = xl(), O = a ? () => {
10081
- L(), a();
10077
+ const [c, h] = Me(!1), {
10078
+ messages: p,
10079
+ input: g,
10080
+ setInput: C,
10081
+ sendMessage: S,
10082
+ stop: y,
10083
+ isLoading: I,
10084
+ isConnecting: _,
10085
+ error: L,
10086
+ reset: N,
10087
+ confirmProposal: x,
10088
+ cancelProposal: O
10089
+ } = xl(), H = a ? () => {
10090
+ N(), a();
10082
10091
  } : void 0;
10083
10092
  return /* @__PURE__ */ Y(
10084
10093
  "aside",
10085
10094
  {
10086
- className: [Ar.sidebar, f ? Ar.minimized : "", o].filter(Boolean).join(" "),
10087
- style: { height: f ? void 0 : i, ...l },
10095
+ className: [Ir.sidebar, c ? Ir.minimized : "", o].filter(Boolean).join(" "),
10096
+ style: { height: c ? void 0 : i, ...l },
10088
10097
  children: [
10089
10098
  /* @__PURE__ */ b(
10090
10099
  Fh,
10091
10100
  {
10092
10101
  title: e,
10093
10102
  icon: n,
10094
- onMinimize: () => c(($) => !$),
10095
- isMinimized: f,
10096
- onReset: O
10103
+ onMinimize: () => h((j) => !j),
10104
+ isMinimized: c,
10105
+ onReset: H,
10106
+ headerActions: f
10097
10107
  }
10098
10108
  ),
10099
- !f && /* @__PURE__ */ b(
10100
- zh,
10109
+ !c && /* @__PURE__ */ b(
10110
+ Ph,
10101
10111
  {
10102
- messages: h,
10103
- input: p,
10104
- isLoading: y,
10105
- isConnecting: A,
10106
- error: _,
10107
- onInputChange: g,
10108
- onSend: C,
10109
- onStop: S,
10110
- onProposalConfirm: N,
10111
- onProposalCancel: x,
10112
+ messages: p,
10113
+ input: g,
10114
+ isLoading: I,
10115
+ isConnecting: _,
10116
+ error: L,
10117
+ onInputChange: C,
10118
+ onSend: S,
10119
+ onStop: y,
10120
+ onProposalConfirm: x,
10121
+ onProposalCancel: O,
10112
10122
  assistantIcon: n,
10113
10123
  actions: t,
10114
10124
  sendIcon: r,
@@ -10120,14 +10130,14 @@ function ld({
10120
10130
  }
10121
10131
  );
10122
10132
  }
10123
- const jh = "_list_j7fvh_1", $h = "_item_j7fvh_19", Hh = "_chat_j7fvh_31", Vh = "_chatActive_j7fvh_71", qh = "_title_j7fvh_79", Uh = "_date_j7fvh_99", Wh = "_empty_j7fvh_163", _e = {
10133
+ const jh = "_list_180ms_1", $h = "_item_180ms_10", Hh = "_chat_180ms_16", qh = "_chatActive_180ms_36", Vh = "_title_180ms_40", Uh = "_date_180ms_50", Wh = "_empty_180ms_82", _e = {
10124
10134
  list: jh,
10125
10135
  item: $h,
10126
10136
  chat: Hh,
10127
- chatActive: Vh,
10128
- title: qh,
10137
+ chatActive: qh,
10138
+ title: Vh,
10129
10139
  date: Uh,
10130
- delete: "_delete_j7fvh_111",
10140
+ delete: "_delete_180ms_56",
10131
10141
  empty: Wh
10132
10142
  };
10133
10143
  function od({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
@@ -10157,13 +10167,14 @@ function od({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
10157
10167
  }
10158
10168
  export {
10159
10169
  Sp as AiActivityPart,
10160
- zh as AiChat,
10170
+ Ph as AiChat,
10161
10171
  cn as AiChatContext,
10172
+ Fh as AiChatHeader,
10162
10173
  od as AiChatHistoryList,
10163
10174
  rd as AiChatProvider,
10164
10175
  $i as AiEntityCard,
10165
10176
  $p as AiEntityListPart,
10166
- Ah as AiError,
10177
+ Ih as AiError,
10167
10178
  Ch as AiInput,
10168
10179
  rh as AiMessageBubble,
10169
10180
  ph as AiMessageList,
@@ -10179,11 +10190,11 @@ export {
10179
10190
  K as delay,
10180
10191
  Gh as deserializeMessages,
10181
10192
  Zi as getMessageText,
10182
- zr as isProposalPart,
10193
+ Pr as isProposalPart,
10183
10194
  id as juneauCs,
10184
10195
  Lr as juneauEn,
10185
10196
  Kh as mockAdapter,
10186
- Pr as parseJuneauWire,
10197
+ zr as parseJuneauWire,
10187
10198
  Xh as serializeForStorage,
10188
10199
  Ki as serializeMessages,
10189
10200
  Jh as trimChats,