juneau 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { useState as Re, useRef as Ue, useEffect as St, useCallback as de, useMemo as Ar, useContext as sn, createContext as Tr } from "react";
2
- import { jsx as x, jsxs as Y, Fragment as un } from "react/jsx-runtime";
1
+ import { useState as Re, useRef as Ue, useEffect as St, useCallback as de, useMemo as Ir, useContext as sn, createContext as Tr } from "react";
2
+ import { jsx as x, jsxs as Q, 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: "" }] });
5
5
  }
@@ -15,7 +15,7 @@ function zr(e) {
15
15
  return e.type === "proposal";
16
16
  }
17
17
  const el = 1;
18
- function Gh(e) {
18
+ function Jh(e) {
19
19
  return e.map((n) => ({
20
20
  ...n,
21
21
  v: el,
@@ -26,7 +26,7 @@ function Gh(e) {
26
26
  function tl(e) {
27
27
  return zr(e) && !e.proposal.resolved ? { ...e, proposal: { ...e.proposal, resolved: "expired" } } : e;
28
28
  }
29
- function Jh(e) {
29
+ function Kh(e) {
30
30
  return e.map(({ v: n, ...t }) => ({
31
31
  ...t,
32
32
  createdAt: new Date(t.createdAt)
@@ -39,10 +39,10 @@ function nl(e, n) {
39
39
  t++;
40
40
  return e.slice(t);
41
41
  }
42
- function Kh(e, n) {
42
+ function Zh(e, n) {
43
43
  return n <= 0 || e.length <= n ? [...e].sort(Mn) : [...e].sort(Mn).slice(0, n);
44
44
  }
45
- const Mn = (e, n) => n.updatedAt.getTime() - e.updatedAt.getTime(), Zh = {
45
+ const Mn = (e, n) => n.updatedAt.getTime() - e.updatedAt.getTime(), ed = {
46
46
  async *sendMessage(e) {
47
47
  const n = [...e.messages].reverse().find((r) => r.role === "user"), t = n ? Zi(n).toLowerCase() : "";
48
48
  t.includes("activity") || t.includes("progress") || t.includes("document") || t.includes("dokument") ? yield* rl() : t.includes("table") || t.includes("data") || t.includes("list") || t.includes("show") ? yield* il() : t.includes("proposal") || t.includes("suggest") || t.includes("recommend") ? yield* ll() : t.includes("entity") || t.includes("card") || t.includes("detail") || t.includes("find") ? yield* ol() : t.includes("help") || t.includes("what can") || t.includes("how do") ? yield* al() : t.includes("error") || t.includes("fail") || t.includes("break") ? yield* sl() : yield* ul(t);
@@ -240,7 +240,7 @@ function Pr(e) {
240
240
  return [];
241
241
  }
242
242
  }
243
- function ed(e, n = {}) {
243
+ function td(e, n = {}) {
244
244
  const {
245
245
  method: t = "POST",
246
246
  headers: r = {},
@@ -319,7 +319,7 @@ const fl = (e) => {
319
319
  return [];
320
320
  }
321
321
  };
322
- function td(e, n = {}) {
322
+ function nd(e, n = {}) {
323
323
  const {
324
324
  method: t = "POST",
325
325
  headers: r = {},
@@ -397,49 +397,49 @@ function ml({
397
397
  historyLimit: o,
398
398
  onMessagesChange: l
399
399
  }) {
400
- const [a, s] = Re(i ?? []), [u, f] = Re(""), [c, h] = Re(!1), [p, g] = Re(!1), [C, S] = Re(null), y = Ue(null), I = Ue(!1), _ = Ue(l);
400
+ const [a, s] = Re(i ?? []), [u, f] = Re(""), [c, h] = Re(!1), [p, g] = Re(!1), [C, S] = Re(null), y = Ue(null), A = Ue(!1), _ = Ue(l);
401
401
  St(() => {
402
402
  _.current = l;
403
403
  }), St(() => {
404
- !I.current || c || (I.current = !1, _.current?.(a));
404
+ !A.current || c || (A.current = !1, _.current?.(a));
405
405
  }, [a, c]);
406
- const L = de((v) => {
407
- s((M) => {
408
- const j = M[M.length - 1];
409
- if (!j || j.role !== "assistant") return M;
406
+ const P = de((v) => {
407
+ s((N) => {
408
+ const j = N[N.length - 1];
409
+ if (!j || j.role !== "assistant") return N;
410
410
  if (v.type === "activity" && v.id) {
411
- const Q = [...j.parts], W = Q.findIndex(
411
+ const W = [...j.parts], Y = W.findIndex(
412
412
  (d) => d.type === "activity" && d.id === v.id
413
413
  );
414
- if (W !== -1)
415
- return Q[W] = v, [...M.slice(0, -1), { ...j, parts: Q }];
414
+ if (Y !== -1)
415
+ return W[Y] = v, [...N.slice(0, -1), { ...j, parts: W }];
416
416
  }
417
417
  return [
418
- ...M.slice(0, -1),
418
+ ...N.slice(0, -1),
419
419
  { ...j, parts: [...j.parts, v] }
420
420
  ];
421
421
  });
422
- }, []), N = de((v) => {
423
- s((M) => {
424
- const j = M[M.length - 1];
425
- if (!j || j.role !== "assistant") return M;
426
- const Q = [...j.parts], W = Q[Q.length - 1];
427
- return W?.type === "text" ? Q[Q.length - 1] = { type: "text", text: W.text + v } : Q.push({ type: "text", text: v }), [...M.slice(0, -1), { ...j, parts: Q }];
422
+ }, []), M = de((v) => {
423
+ s((N) => {
424
+ const j = N[N.length - 1];
425
+ if (!j || j.role !== "assistant") return N;
426
+ const W = [...j.parts], Y = W[W.length - 1];
427
+ return Y?.type === "text" ? W[W.length - 1] = { type: "text", text: Y.text + v } : W.push({ type: "text", text: v }), [...N.slice(0, -1), { ...j, parts: W }];
428
428
  });
429
- }, []), b = de(async (v, M) => {
429
+ }, []), b = de(async (v, N) => {
430
430
  S(null);
431
431
  const j = {
432
432
  id: dt(),
433
433
  role: "user",
434
434
  parts: [{ type: "text", text: v }],
435
435
  createdAt: /* @__PURE__ */ new Date()
436
- }, Q = dt();
437
- let W = !1;
436
+ }, W = dt();
437
+ let Y = !1;
438
438
  const d = () => {
439
- if (W) return;
440
- W = !0;
439
+ if (Y) return;
440
+ Y = !0;
441
441
  const te = {
442
- id: Q,
442
+ id: W,
443
443
  role: "assistant",
444
444
  parts: [],
445
445
  createdAt: /* @__PURE__ */ new Date()
@@ -451,7 +451,7 @@ function ml({
451
451
  y.current = se;
452
452
  try {
453
453
  const te = nl(
454
- [...M, j],
454
+ [...N, j],
455
455
  o ?? Number.POSITIVE_INFINITY
456
456
  ), m = e.sendMessage({ messages: Rn(te), context: n });
457
457
  await Nn(
@@ -459,13 +459,13 @@ function ml({
459
459
  (ne) => {
460
460
  switch (g(!1), ne.type) {
461
461
  case "text":
462
- d(), N(ne.text);
462
+ d(), M(ne.text);
463
463
  break;
464
464
  case "part":
465
- d(), L(ne.part);
465
+ d(), P(ne.part);
466
466
  break;
467
467
  case "error":
468
- d(), L({ type: "error", message: ne.message }), S(ne.message);
468
+ d(), P({ type: "error", message: ne.message }), S(ne.message);
469
469
  break;
470
470
  case "done":
471
471
  break;
@@ -475,11 +475,11 @@ function ml({
475
475
  );
476
476
  } catch (te) {
477
477
  const m = te instanceof Error ? te.message : "Unknown error occurred";
478
- S(m), d(), L({ type: "error", message: m });
478
+ S(m), d(), P({ type: "error", message: m });
479
479
  } finally {
480
- I.current = !0, h(!1), g(!1);
480
+ A.current = !0, h(!1), g(!1);
481
481
  }
482
- }, [e, n, o, N, L]), O = de(async () => {
482
+ }, [e, n, o, M, P]), O = de(async () => {
483
483
  const v = u.trim();
484
484
  !v || c || (f(""), await b(v, a));
485
485
  }, [u, c, a, b]), H = de(async (v) => {
@@ -487,35 +487,35 @@ function ml({
487
487
  }, [c, a, b]), B = de(async (v) => {
488
488
  if (c) return;
489
489
  S(null), h(!0), g(!0);
490
- const M = {
490
+ const N = {
491
491
  id: dt(),
492
492
  role: "assistant",
493
493
  parts: [],
494
494
  createdAt: /* @__PURE__ */ new Date()
495
495
  };
496
- s((W) => [...W, M]), y.current?.abort();
496
+ s((Y) => [...Y, N]), y.current?.abort();
497
497
  const j = new AbortController();
498
498
  y.current = j;
499
- const Q = {
499
+ const W = {
500
500
  id: dt(),
501
501
  role: "system",
502
502
  parts: [{ type: "text", text: v }],
503
503
  createdAt: /* @__PURE__ */ new Date()
504
504
  };
505
505
  try {
506
- const W = e.sendMessage({ messages: Rn([Q]), context: n });
506
+ const Y = e.sendMessage({ messages: Rn([W]), context: n });
507
507
  await Nn(
508
- W,
508
+ Y,
509
509
  (d) => {
510
510
  switch (g(!1), d.type) {
511
511
  case "text":
512
- N(d.text);
512
+ M(d.text);
513
513
  break;
514
514
  case "part":
515
- L(d.part);
515
+ P(d.part);
516
516
  break;
517
517
  case "error":
518
- L({ type: "error", message: d.message }), S(d.message);
518
+ P({ type: "error", message: d.message }), S(d.message);
519
519
  break;
520
520
  case "done":
521
521
  break;
@@ -523,29 +523,29 @@ function ml({
523
523
  },
524
524
  j.signal
525
525
  );
526
- } catch (W) {
527
- const d = W instanceof Error ? W.message : "Unknown error occurred";
528
- S(d), L({ type: "error", message: d });
526
+ } catch (Y) {
527
+ const d = Y instanceof Error ? Y.message : "Unknown error occurred";
528
+ S(d), P({ type: "error", message: d });
529
529
  } finally {
530
- I.current = !0, h(!1), g(!1);
530
+ A.current = !0, h(!1), g(!1);
531
531
  }
532
- }, [c, e, n, N, L]), k = de(() => {
532
+ }, [c, e, n, M, P]), k = de(() => {
533
533
  y.current?.abort(), h(!1), g(!1);
534
534
  }, []), T = de((v) => {
535
- y.current?.abort(), I.current = !0, s(v ?? []), f(""), S(null), h(!1), g(!1);
536
- }, []), z = de((v, M) => {
537
- I.current = !0, s((j) => j.map((Q) => ({
538
- ...Q,
539
- parts: Q.parts.map(
540
- (W) => zr(W) && W.proposal.id === v ? { ...W, proposal: { ...W.proposal, resolved: M } } : W
535
+ y.current?.abort(), A.current = !0, s(v ?? []), f(""), S(null), h(!1), g(!1);
536
+ }, []), z = de((v, N) => {
537
+ A.current = !0, s((j) => j.map((W) => ({
538
+ ...W,
539
+ parts: W.parts.map(
540
+ (Y) => zr(Y) && Y.proposal.id === v ? { ...Y, proposal: { ...Y.proposal, resolved: N } } : Y
541
541
  )
542
542
  })));
543
- }, []), U = de((v, M) => {
544
- z(v, "confirmed"), t?.(v, M);
545
- }, [t, z]), P = de((v) => {
543
+ }, []), q = de((v, N) => {
544
+ z(v, "confirmed"), t?.(v, N);
545
+ }, [t, z]), L = de((v) => {
546
546
  z(v, "cancelled"), r?.(v);
547
547
  }, [r, z]);
548
- return Ar(() => ({
548
+ return Ir(() => ({
549
549
  messages: a,
550
550
  input: u,
551
551
  setInput: f,
@@ -557,8 +557,8 @@ function ml({
557
557
  isConnecting: p,
558
558
  error: C,
559
559
  reset: T,
560
- confirmProposal: U,
561
- cancelProposal: P
560
+ confirmProposal: q,
561
+ cancelProposal: L
562
562
  }), [
563
563
  a,
564
564
  u,
@@ -570,8 +570,8 @@ function ml({
570
570
  p,
571
571
  C,
572
572
  T,
573
- U,
574
- P
573
+ q,
574
+ L
575
575
  ]);
576
576
  }
577
577
  const Lr = {
@@ -602,13 +602,13 @@ const Lr = {
602
602
  historyEmpty: "No previous chats",
603
603
  historyDeleteChat: "Delete chat"
604
604
  }, Dr = Tr(Lr);
605
- function Te() {
605
+ function ze() {
606
606
  return sn(Dr);
607
607
  }
608
608
  const gl = "_root_14q8g_1", yl = {
609
609
  root: gl
610
610
  };
611
- function nd({ children: e, theme: n, labels: t, defaultTitle: r, className: i, style: o }) {
611
+ function rd({ children: e, theme: n, labels: t, defaultTitle: r, className: i, style: o }) {
612
612
  const l = {
613
613
  ...Lr,
614
614
  ...r ? { sidebarTitle: r } : {},
@@ -681,10 +681,10 @@ function xl() {
681
681
  );
682
682
  return e;
683
683
  }
684
- function rd() {
684
+ function id() {
685
685
  return sn(cn);
686
686
  }
687
- function id({
687
+ function ld({
688
688
  adapter: e,
689
689
  context: n,
690
690
  onProposalConfirm: t,
@@ -704,13 +704,13 @@ function id({
704
704
  initialMessages: i,
705
705
  historyLimit: o,
706
706
  onMessagesChange: l
707
- }), h = Ar(
707
+ }), h = Ir(
708
708
  () => ({ ...c, setContext: f }),
709
709
  [c, f]
710
710
  );
711
711
  return /* @__PURE__ */ x(cn.Provider, { value: h, children: a });
712
712
  }
713
- const ld = {
713
+ const od = {
714
714
  sidebarTitle: "AI Asistent",
715
715
  clearConversation: "Vymazat konverzaci",
716
716
  resetConversation: "Resetovat konverzaci",
@@ -866,7 +866,7 @@ function El({ className: e, style: n, "aria-hidden": t = !0 }) {
866
866
  }
867
867
  );
868
868
  }
869
- function Il({ className: e, style: n, "aria-hidden": t = !0 }) {
869
+ function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
870
870
  return /* @__PURE__ */ x(
871
871
  "svg",
872
872
  {
@@ -882,7 +882,7 @@ function Il({ className: e, style: n, "aria-hidden": t = !0 }) {
882
882
  }
883
883
  );
884
884
  }
885
- function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
885
+ function Il({ className: e, style: n, "aria-hidden": t = !0 }) {
886
886
  return /* @__PURE__ */ x(
887
887
  "svg",
888
888
  {
@@ -2123,79 +2123,79 @@ function Yl() {
2123
2123
  throw new TypeError("First argument must be a string");
2124
2124
  if (!S) return [];
2125
2125
  y = y || {};
2126
- var I = 1, _ = 1;
2127
- function L(P) {
2128
- var v = P.match(n);
2129
- v && (I += v.length);
2130
- var M = P.lastIndexOf(s);
2131
- _ = ~M ? P.length - M : _ + P.length;
2126
+ var A = 1, _ = 1;
2127
+ function P(L) {
2128
+ var v = L.match(n);
2129
+ v && (A += v.length);
2130
+ var N = L.lastIndexOf(s);
2131
+ _ = ~N ? L.length - N : _ + L.length;
2132
2132
  }
2133
- function N() {
2134
- var P = { line: I, column: _ };
2133
+ function M() {
2134
+ var L = { line: A, column: _ };
2135
2135
  return function(v) {
2136
- return v.position = new b(P), B(), v;
2136
+ return v.position = new b(L), B(), v;
2137
2137
  };
2138
2138
  }
2139
- function b(P) {
2140
- this.start = P, this.end = { line: I, column: _ }, this.source = y.source;
2139
+ function b(L) {
2140
+ this.start = L, this.end = { line: A, column: _ }, this.source = y.source;
2141
2141
  }
2142
2142
  b.prototype.content = S;
2143
- function O(P) {
2143
+ function O(L) {
2144
2144
  var v = new Error(
2145
- y.source + ":" + I + ":" + _ + ": " + P
2145
+ y.source + ":" + A + ":" + _ + ": " + L
2146
2146
  );
2147
- if (v.reason = P, v.filename = y.source, v.line = I, v.column = _, v.source = S, !y.silent) throw v;
2147
+ if (v.reason = L, v.filename = y.source, v.line = A, v.column = _, v.source = S, !y.silent) throw v;
2148
2148
  }
2149
- function H(P) {
2150
- var v = P.exec(S);
2149
+ function H(L) {
2150
+ var v = L.exec(S);
2151
2151
  if (v) {
2152
- var M = v[0];
2153
- return L(M), S = S.slice(M.length), v;
2152
+ var N = v[0];
2153
+ return P(N), S = S.slice(N.length), v;
2154
2154
  }
2155
2155
  }
2156
2156
  function B() {
2157
2157
  H(t);
2158
2158
  }
2159
- function k(P) {
2159
+ function k(L) {
2160
2160
  var v;
2161
- for (P = P || []; v = T(); )
2162
- v !== !1 && P.push(v);
2163
- return P;
2161
+ for (L = L || []; v = T(); )
2162
+ v !== !1 && L.push(v);
2163
+ return L;
2164
2164
  }
2165
2165
  function T() {
2166
- var P = N();
2166
+ var L = M();
2167
2167
  if (!(u != S.charAt(0) || f != S.charAt(1))) {
2168
2168
  for (var v = 2; c != S.charAt(v) && (f != S.charAt(v) || u != S.charAt(v + 1)); )
2169
2169
  ++v;
2170
2170
  if (v += 2, c === S.charAt(v - 1))
2171
2171
  return O("End of comment missing");
2172
- var M = S.slice(2, v - 2);
2173
- return _ += 2, L(M), S = S.slice(v), _ += 2, P({
2172
+ var N = S.slice(2, v - 2);
2173
+ return _ += 2, P(N), S = S.slice(v), _ += 2, L({
2174
2174
  type: h,
2175
- comment: M
2175
+ comment: N
2176
2176
  });
2177
2177
  }
2178
2178
  }
2179
2179
  function z() {
2180
- var P = N(), v = H(r);
2180
+ var L = M(), v = H(r);
2181
2181
  if (v) {
2182
2182
  if (T(), !H(i)) return O("property missing ':'");
2183
- var M = H(o), j = P({
2183
+ var N = H(o), j = L({
2184
2184
  type: p,
2185
2185
  property: C(v[0].replace(e, c)),
2186
- value: M ? C(M[0].replace(e, c)) : c
2186
+ value: N ? C(N[0].replace(e, c)) : c
2187
2187
  });
2188
2188
  return H(l), j;
2189
2189
  }
2190
2190
  }
2191
- function U() {
2192
- var P = [];
2193
- k(P);
2191
+ function q() {
2192
+ var L = [];
2193
+ k(L);
2194
2194
  for (var v; v = z(); )
2195
- v !== !1 && (P.push(v), k(P));
2196
- return P;
2195
+ v !== !1 && (L.push(v), k(L));
2196
+ return L;
2197
2197
  }
2198
- return B(), U();
2198
+ return B(), q();
2199
2199
  }
2200
2200
  function C(S) {
2201
2201
  return S ? S.replace(a, c) : c;
@@ -2776,7 +2776,7 @@ function Jr(e, n) {
2776
2776
  function ke(e) {
2777
2777
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
2778
2778
  }
2779
- const ae = ze(/[A-Za-z]/), ie = ze(/[\dA-Za-z]/), _o = ze(/[#-'*+\--9=?A-Z^-~]/);
2779
+ const ae = Pe(/[A-Za-z]/), ie = Pe(/[\dA-Za-z]/), _o = Pe(/[#-'*+\--9=?A-Z^-~]/);
2780
2780
  function vt(e) {
2781
2781
  return (
2782
2782
  // Special whitespace codes (which have negative values), C0 and Control
@@ -2784,7 +2784,7 @@ function vt(e) {
2784
2784
  e !== null && (e < 32 || e === 127)
2785
2785
  );
2786
2786
  }
2787
- const en = ze(/\d/), Eo = ze(/[\dA-Fa-f]/), Io = ze(/[!-/:-@[-`{-~]/);
2787
+ const en = Pe(/\d/), Eo = Pe(/[\dA-Fa-f]/), Ao = Pe(/[!-/:-@[-`{-~]/);
2788
2788
  function D(e) {
2789
2789
  return e !== null && e < -2;
2790
2790
  }
@@ -2794,8 +2794,8 @@ function J(e) {
2794
2794
  function $(e) {
2795
2795
  return e === -2 || e === -1 || e === 32;
2796
2796
  }
2797
- const At = ze(/\p{P}|\p{S}/u), Oe = ze(/\s/);
2798
- function ze(e) {
2797
+ const It = Pe(/\p{P}|\p{S}/u), Oe = Pe(/\s/);
2798
+ function Pe(e) {
2799
2799
  return n;
2800
2800
  function n(t) {
2801
2801
  return t !== null && t > -1 && e.test(String.fromCharCode(t));
@@ -2820,7 +2820,7 @@ function Qe(e) {
2820
2820
  }
2821
2821
  return n.join("") + e.slice(r);
2822
2822
  }
2823
- function q(e, n, t, r) {
2823
+ function U(e, n, t, r) {
2824
2824
  const i = r ? r - 1 : Number.POSITIVE_INFINITY;
2825
2825
  let o = 0;
2826
2826
  return l;
@@ -2831,7 +2831,7 @@ function q(e, n, t, r) {
2831
2831
  return $(s) && o++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
2832
2832
  }
2833
2833
  }
2834
- const Ao = {
2834
+ const Io = {
2835
2835
  tokenize: To
2836
2836
  };
2837
2837
  function To(e) {
@@ -2843,7 +2843,7 @@ function To(e) {
2843
2843
  e.consume(a);
2844
2844
  return;
2845
2845
  }
2846
- return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), q(e, n, "linePrefix");
2846
+ return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), U(e, n, "linePrefix");
2847
2847
  }
2848
2848
  function i(a) {
2849
2849
  return e.enter("paragraph"), o(a);
@@ -2874,28 +2874,28 @@ function Po(e) {
2874
2874
  return a;
2875
2875
  function a(_) {
2876
2876
  if (r < t.length) {
2877
- const L = t[r];
2878
- return n.containerState = L[1], e.attempt(L[0].continuation, s, u)(_);
2877
+ const P = t[r];
2878
+ return n.containerState = P[1], e.attempt(P[0].continuation, s, u)(_);
2879
2879
  }
2880
2880
  return u(_);
2881
2881
  }
2882
2882
  function s(_) {
2883
2883
  if (r++, n.containerState._closeFlow) {
2884
- n.containerState._closeFlow = void 0, i && I();
2885
- const L = n.events.length;
2886
- let N = L, b;
2887
- for (; N--; )
2888
- if (n.events[N][0] === "exit" && n.events[N][1].type === "chunkFlow") {
2889
- b = n.events[N][1].end;
2884
+ n.containerState._closeFlow = void 0, i && A();
2885
+ const P = n.events.length;
2886
+ let M = P, b;
2887
+ for (; M--; )
2888
+ if (n.events[M][0] === "exit" && n.events[M][1].type === "chunkFlow") {
2889
+ b = n.events[M][1].end;
2890
2890
  break;
2891
2891
  }
2892
2892
  y(r);
2893
- let O = L;
2893
+ let O = P;
2894
2894
  for (; O < n.events.length; )
2895
2895
  n.events[O][1].end = {
2896
2896
  ...b
2897
2897
  }, O++;
2898
- return he(n.events, N + 1, 0, n.events.slice(L)), n.events.length = O, u(_);
2898
+ return he(n.events, M + 1, 0, n.events.slice(P)), n.events.length = O, u(_);
2899
2899
  }
2900
2900
  return a(_);
2901
2901
  }
@@ -2910,7 +2910,7 @@ function Po(e) {
2910
2910
  return n.containerState = {}, e.check(Gn, f, c)(_);
2911
2911
  }
2912
2912
  function f(_) {
2913
- return i && I(), y(r), h(_);
2913
+ return i && A(), y(r), h(_);
2914
2914
  }
2915
2915
  function c(_) {
2916
2916
  return n.parser.lazy[n.now().line] = r !== t.length, l = n.now().offset, g(_);
@@ -2923,7 +2923,7 @@ function Po(e) {
2923
2923
  }
2924
2924
  function g(_) {
2925
2925
  if (_ === null) {
2926
- i && I(), y(0), e.consume(_);
2926
+ i && A(), y(0), e.consume(_);
2927
2927
  return;
2928
2928
  }
2929
2929
  return i = i || n.parser.flow(n.now()), e.enter("chunkFlow", {
@@ -2939,9 +2939,9 @@ function Po(e) {
2939
2939
  }
2940
2940
  return D(_) ? (e.consume(_), S(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (e.consume(_), C);
2941
2941
  }
2942
- function S(_, L) {
2943
- const N = n.sliceStream(_);
2944
- if (L && N.push(null), _.previous = o, o && (o.next = _), o = _, i.defineSkip(_.start), i.write(N), n.parser.lazy[_.start.line]) {
2942
+ function S(_, P) {
2943
+ const M = n.sliceStream(_);
2944
+ if (P && M.push(null), _.previous = o, o && (o.next = _), o = _, i.defineSkip(_.start), i.write(M), n.parser.lazy[_.start.line]) {
2945
2945
  let b = i.events.length;
2946
2946
  for (; b--; )
2947
2947
  if (
@@ -2969,24 +2969,24 @@ function Po(e) {
2969
2969
  }
2970
2970
  }
2971
2971
  function y(_) {
2972
- let L = t.length;
2973
- for (; L-- > _; ) {
2974
- const N = t[L];
2975
- n.containerState = N[1], N[0].exit.call(n, e);
2972
+ let P = t.length;
2973
+ for (; P-- > _; ) {
2974
+ const M = t[P];
2975
+ n.containerState = M[1], M[0].exit.call(n, e);
2976
2976
  }
2977
2977
  t.length = _;
2978
2978
  }
2979
- function I() {
2979
+ function A() {
2980
2980
  i.write([null]), o = void 0, i = void 0, n.containerState._closeFlow = void 0;
2981
2981
  }
2982
2982
  }
2983
2983
  function Lo(e, n, t) {
2984
- return q(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2984
+ return U(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2985
2985
  }
2986
2986
  function We(e) {
2987
2987
  if (e === null || J(e) || Oe(e))
2988
2988
  return 1;
2989
- if (At(e))
2989
+ if (It(e))
2990
2990
  return 2;
2991
2991
  }
2992
2992
  function Tt(e, n, t) {
@@ -3121,7 +3121,7 @@ const ft = {
3121
3121
  function Fo(e, n, t) {
3122
3122
  return r;
3123
3123
  function r(o) {
3124
- return $(o) ? q(e, i, "linePrefix")(o) : i(o);
3124
+ return $(o) ? U(e, i, "linePrefix")(o) : i(o);
3125
3125
  }
3126
3126
  function i(o) {
3127
3127
  return o === null || D(o) ? n(o) : t(o);
@@ -3155,7 +3155,7 @@ function jo(e, n, t) {
3155
3155
  const r = this;
3156
3156
  return i;
3157
3157
  function i(l) {
3158
- return $(l) ? q(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
3158
+ return $(l) ? U(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
3159
3159
  }
3160
3160
  function o(l) {
3161
3161
  return e.attempt(Kr, n, t)(l);
@@ -3174,7 +3174,7 @@ function $o(e, n, t) {
3174
3174
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
3175
3175
  }
3176
3176
  function i(o) {
3177
- return Io(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(o);
3177
+ return Ao(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(o);
3178
3178
  }
3179
3179
  }
3180
3180
  const ei = {
@@ -3213,7 +3213,7 @@ const Kn = {
3213
3213
  function Vo(e, n, t) {
3214
3214
  const r = this, i = {
3215
3215
  partial: !0,
3216
- tokenize: N
3216
+ tokenize: M
3217
3217
  };
3218
3218
  let o = 0, l = 0, a;
3219
3219
  return s;
@@ -3225,15 +3225,15 @@ function Vo(e, n, t) {
3225
3225
  return o = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, a = b, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(b);
3226
3226
  }
3227
3227
  function f(b) {
3228
- return b === a ? (l++, e.consume(b), f) : l < 3 ? t(b) : (e.exit("codeFencedFenceSequence"), $(b) ? q(e, c, "whitespace")(b) : c(b));
3228
+ return b === a ? (l++, e.consume(b), f) : l < 3 ? t(b) : (e.exit("codeFencedFenceSequence"), $(b) ? U(e, c, "whitespace")(b) : c(b));
3229
3229
  }
3230
3230
  function c(b) {
3231
- return b === null || D(b) ? (e.exit("codeFencedFence"), r.interrupt ? n(b) : e.check(Kn, C, L)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
3231
+ return b === null || D(b) ? (e.exit("codeFencedFence"), r.interrupt ? n(b) : e.check(Kn, C, P)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
3232
3232
  contentType: "string"
3233
3233
  }), h(b));
3234
3234
  }
3235
3235
  function h(b) {
3236
- return b === null || D(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(b)) : $(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), q(e, p, "whitespace")(b)) : b === 96 && b === a ? t(b) : (e.consume(b), h);
3236
+ return b === null || D(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(b)) : $(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), U(e, p, "whitespace")(b)) : b === 96 && b === a ? t(b) : (e.consume(b), h);
3237
3237
  }
3238
3238
  function p(b) {
3239
3239
  return b === null || D(b) ? c(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -3244,39 +3244,39 @@ function Vo(e, n, t) {
3244
3244
  return b === null || D(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(b)) : b === 96 && b === a ? t(b) : (e.consume(b), g);
3245
3245
  }
3246
3246
  function C(b) {
3247
- return e.attempt(i, L, S)(b);
3247
+ return e.attempt(i, P, S)(b);
3248
3248
  }
3249
3249
  function S(b) {
3250
3250
  return e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), y;
3251
3251
  }
3252
3252
  function y(b) {
3253
- return o > 0 && $(b) ? q(e, I, "linePrefix", o + 1)(b) : I(b);
3253
+ return o > 0 && $(b) ? U(e, A, "linePrefix", o + 1)(b) : A(b);
3254
3254
  }
3255
- function I(b) {
3256
- return b === null || D(b) ? e.check(Kn, C, L)(b) : (e.enter("codeFlowValue"), _(b));
3255
+ function A(b) {
3256
+ return b === null || D(b) ? e.check(Kn, C, P)(b) : (e.enter("codeFlowValue"), _(b));
3257
3257
  }
3258
3258
  function _(b) {
3259
- return b === null || D(b) ? (e.exit("codeFlowValue"), I(b)) : (e.consume(b), _);
3259
+ return b === null || D(b) ? (e.exit("codeFlowValue"), A(b)) : (e.consume(b), _);
3260
3260
  }
3261
- function L(b) {
3261
+ function P(b) {
3262
3262
  return e.exit("codeFenced"), n(b);
3263
3263
  }
3264
- function N(b, O, H) {
3264
+ function M(b, O, H) {
3265
3265
  let B = 0;
3266
3266
  return k;
3267
3267
  function k(v) {
3268
3268
  return b.enter("lineEnding"), b.consume(v), b.exit("lineEnding"), T;
3269
3269
  }
3270
3270
  function T(v) {
3271
- return b.enter("codeFencedFence"), $(v) ? q(b, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : z(v);
3271
+ return b.enter("codeFencedFence"), $(v) ? U(b, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : z(v);
3272
3272
  }
3273
3273
  function z(v) {
3274
- return v === a ? (b.enter("codeFencedFenceSequence"), U(v)) : H(v);
3274
+ return v === a ? (b.enter("codeFencedFenceSequence"), q(v)) : H(v);
3275
3275
  }
3276
- function U(v) {
3277
- return v === a ? (B++, b.consume(v), U) : B >= l ? (b.exit("codeFencedFenceSequence"), $(v) ? q(b, P, "whitespace")(v) : P(v)) : H(v);
3276
+ function q(v) {
3277
+ return v === a ? (B++, b.consume(v), q) : B >= l ? (b.exit("codeFencedFenceSequence"), $(v) ? U(b, L, "whitespace")(v) : L(v)) : H(v);
3278
3278
  }
3279
- function P(v) {
3279
+ function L(v) {
3280
3280
  return v === null || D(v) ? (b.exit("codeFencedFence"), O(v)) : H(v);
3281
3281
  }
3282
3282
  }
@@ -3302,7 +3302,7 @@ function Wo(e, n, t) {
3302
3302
  const r = this;
3303
3303
  return i;
3304
3304
  function i(u) {
3305
- return e.enter("codeIndented"), q(e, o, "linePrefix", 5)(u);
3305
+ return e.enter("codeIndented"), U(e, o, "linePrefix", 5)(u);
3306
3306
  }
3307
3307
  function o(u) {
3308
3308
  const f = r.events[r.events.length - 1];
@@ -3322,7 +3322,7 @@ function Yo(e, n, t) {
3322
3322
  const r = this;
3323
3323
  return i;
3324
3324
  function i(l) {
3325
- 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);
3325
+ return r.parser.lazy[r.now().line] ? t(l) : D(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), i) : U(e, o, "linePrefix", 5)(l);
3326
3326
  }
3327
3327
  function o(l) {
3328
3328
  const a = r.events[r.events.length - 1];
@@ -3584,8 +3584,8 @@ function Zo(e, n) {
3584
3584
  // Find a void token that includes a break.
3585
3585
  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);
3586
3586
  for (l.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : S.pop(), h = S.length; h--; ) {
3587
- const y = a.slice(S[h], S[h + 1]), I = o.pop();
3588
- s.push([I, I + y.length - 1]), e.splice(I, 2, y);
3587
+ const y = a.slice(S[h], S[h + 1]), A = o.pop();
3588
+ s.push([A, A + y.length - 1]), e.splice(A, 2, y);
3589
3589
  }
3590
3590
  for (s.reverse(), h = -1; ++h < s.length; )
3591
3591
  u[g + s[h][0]] = g + s[h][1], g += s[h][1] - s[h][0] - 1;
@@ -3626,7 +3626,7 @@ function ia(e, n, t) {
3626
3626
  const r = this;
3627
3627
  return i;
3628
3628
  function i(l) {
3629
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), q(e, o, "linePrefix");
3629
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), U(e, o, "linePrefix");
3630
3630
  }
3631
3631
  function o(l) {
3632
3632
  if (l === null || D(l))
@@ -3696,7 +3696,7 @@ function ii(e, n, t, r, i, o) {
3696
3696
  return h === l ? (e.enter(i), e.consume(h), e.exit(i), e.exit(r), n) : (e.enter(o), u(h));
3697
3697
  }
3698
3698
  function u(h) {
3699
- 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", {
3699
+ return h === l ? (e.exit(o), s(l)) : h === null ? t(h) : D(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), U(e, u, "linePrefix")) : (e.enter("chunkString", {
3700
3700
  contentType: "string"
3701
3701
  }), f(h));
3702
3702
  }
@@ -3711,7 +3711,7 @@ function ot(e, n) {
3711
3711
  let t;
3712
3712
  return r;
3713
3713
  function r(i) {
3714
- return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : $(i) ? q(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3714
+ return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : $(i) ? U(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3715
3715
  }
3716
3716
  }
3717
3717
  const la = {
@@ -3763,7 +3763,7 @@ function aa(e, n, t) {
3763
3763
  return e.attempt(oa, c, c)(p);
3764
3764
  }
3765
3765
  function c(p) {
3766
- return $(p) ? q(e, h, "whitespace")(p) : h(p);
3766
+ return $(p) ? U(e, h, "whitespace")(p) : h(p);
3767
3767
  }
3768
3768
  function h(p) {
3769
3769
  return p === null || D(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
@@ -3778,7 +3778,7 @@ function sa(e, n, t) {
3778
3778
  return ii(e, o, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
3779
3779
  }
3780
3780
  function o(a) {
3781
- return $(a) ? q(e, l, "whitespace")(a) : l(a);
3781
+ return $(a) ? U(e, l, "whitespace")(a) : l(a);
3782
3782
  }
3783
3783
  function l(a) {
3784
3784
  return a === null || D(a) ? n(a) : t(a);
@@ -3828,7 +3828,7 @@ function ha(e, n, t) {
3828
3828
  return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || J(f) ? (e.exit("atxHeadingSequence"), a(f)) : t(f);
3829
3829
  }
3830
3830
  function a(f) {
3831
- return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || D(f) ? (e.exit("atxHeading"), n(f)) : $(f) ? q(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), u(f));
3831
+ return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || D(f) ? (e.exit("atxHeading"), n(f)) : $(f) ? U(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), u(f));
3832
3832
  }
3833
3833
  function s(f) {
3834
3834
  return f === 35 ? (e.consume(f), s) : (e.exit("atxHeadingSequence"), a(f));
@@ -3946,25 +3946,25 @@ function xa(e, n, t) {
3946
3946
  }
3947
3947
  function S(m) {
3948
3948
  if (m === null || m === 47 || m === 62 || J(m)) {
3949
- const ne = m === 47, Pe = l.toLowerCase();
3950
- return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : z(m)) : da.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 ? I(m) : _(m));
3949
+ const ne = m === 47, Le = l.toLowerCase();
3950
+ return !ne && !o && er.includes(Le) ? (i = 1, r.interrupt ? n(m) : z(m)) : da.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));
3951
3951
  }
3952
3952
  return m === 45 || ie(m) ? (e.consume(m), l += String.fromCharCode(m), S) : t(m);
3953
3953
  }
3954
3954
  function y(m) {
3955
3955
  return m === 62 ? (e.consume(m), r.interrupt ? n : z) : t(m);
3956
3956
  }
3957
- function I(m) {
3958
- return $(m) ? (e.consume(m), I) : k(m);
3957
+ function A(m) {
3958
+ return $(m) ? (e.consume(m), A) : k(m);
3959
3959
  }
3960
3960
  function _(m) {
3961
- return m === 47 ? (e.consume(m), k) : m === 58 || m === 95 || ae(m) ? (e.consume(m), L) : $(m) ? (e.consume(m), _) : k(m);
3961
+ return m === 47 ? (e.consume(m), k) : m === 58 || m === 95 || ae(m) ? (e.consume(m), P) : $(m) ? (e.consume(m), _) : k(m);
3962
3962
  }
3963
- function L(m) {
3964
- return m === 45 || m === 46 || m === 58 || m === 95 || ie(m) ? (e.consume(m), L) : N(m);
3963
+ function P(m) {
3964
+ return m === 45 || m === 46 || m === 58 || m === 95 || ie(m) ? (e.consume(m), P) : M(m);
3965
3965
  }
3966
- function N(m) {
3967
- return m === 61 ? (e.consume(m), b) : $(m) ? (e.consume(m), N) : _(m);
3966
+ function M(m) {
3967
+ return m === 61 ? (e.consume(m), b) : $(m) ? (e.consume(m), M) : _(m);
3968
3968
  }
3969
3969
  function b(m) {
3970
3970
  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), b) : H(m);
@@ -3973,7 +3973,7 @@ function xa(e, n, t) {
3973
3973
  return m === s ? (e.consume(m), s = null, B) : m === null || D(m) ? t(m) : (e.consume(m), O);
3974
3974
  }
3975
3975
  function H(m) {
3976
- 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);
3976
+ return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || J(m) ? M(m) : (e.consume(m), H);
3977
3977
  }
3978
3978
  function B(m) {
3979
3979
  return m === 47 || m === 62 || $(m) ? _(m) : t(m);
@@ -3985,31 +3985,31 @@ function xa(e, n, t) {
3985
3985
  return m === null || D(m) ? z(m) : $(m) ? (e.consume(m), T) : t(m);
3986
3986
  }
3987
3987
  function z(m) {
3988
- return m === 45 && i === 2 ? (e.consume(m), M) : m === 60 && i === 1 ? (e.consume(m), j) : 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(ga, te, U)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), U(m)) : (e.consume(m), z);
3988
+ return m === 45 && i === 2 ? (e.consume(m), N) : m === 60 && i === 1 ? (e.consume(m), j) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), Y) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(ga, te, q)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), q(m)) : (e.consume(m), z);
3989
3989
  }
3990
- function U(m) {
3991
- return e.check(ya, P, te)(m);
3990
+ function q(m) {
3991
+ return e.check(ya, L, te)(m);
3992
3992
  }
3993
- function P(m) {
3993
+ function L(m) {
3994
3994
  return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), v;
3995
3995
  }
3996
3996
  function v(m) {
3997
- return m === null || D(m) ? U(m) : (e.enter("htmlFlowData"), z(m));
3997
+ return m === null || D(m) ? q(m) : (e.enter("htmlFlowData"), z(m));
3998
3998
  }
3999
- function M(m) {
3999
+ function N(m) {
4000
4000
  return m === 45 ? (e.consume(m), d) : z(m);
4001
4001
  }
4002
4002
  function j(m) {
4003
- return m === 47 ? (e.consume(m), l = "", Q) : z(m);
4003
+ return m === 47 ? (e.consume(m), l = "", W) : z(m);
4004
4004
  }
4005
- function Q(m) {
4005
+ function W(m) {
4006
4006
  if (m === 62) {
4007
4007
  const ne = l.toLowerCase();
4008
4008
  return er.includes(ne) ? (e.consume(m), se) : z(m);
4009
4009
  }
4010
- return ae(m) && l.length < 8 ? (e.consume(m), l += String.fromCharCode(m), Q) : z(m);
4010
+ return ae(m) && l.length < 8 ? (e.consume(m), l += String.fromCharCode(m), W) : z(m);
4011
4011
  }
4012
- function W(m) {
4012
+ function Y(m) {
4013
4013
  return m === 93 ? (e.consume(m), d) : z(m);
4014
4014
  }
4015
4015
  function d(m) {
@@ -4050,10 +4050,10 @@ function Sa(e, n, t) {
4050
4050
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(d), s;
4051
4051
  }
4052
4052
  function s(d) {
4053
- 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);
4053
+ return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), M) : d === 63 ? (e.consume(d), _) : ae(d) ? (e.consume(d), H) : t(d);
4054
4054
  }
4055
4055
  function u(d) {
4056
- return d === 45 ? (e.consume(d), f) : d === 91 ? (e.consume(d), o = 0, g) : ae(d) ? (e.consume(d), I) : t(d);
4056
+ return d === 45 ? (e.consume(d), f) : d === 91 ? (e.consume(d), o = 0, g) : ae(d) ? (e.consume(d), A) : t(d);
4057
4057
  }
4058
4058
  function f(d) {
4059
4059
  return d === 45 ? (e.consume(d), p) : t(d);
@@ -4065,7 +4065,7 @@ function Sa(e, n, t) {
4065
4065
  return d === 45 ? (e.consume(d), p) : c(d);
4066
4066
  }
4067
4067
  function p(d) {
4068
- return d === 62 ? M(d) : d === 45 ? h(d) : c(d);
4068
+ return d === 62 ? N(d) : d === 45 ? h(d) : c(d);
4069
4069
  }
4070
4070
  function g(d) {
4071
4071
  const se = "CDATA[";
@@ -4078,31 +4078,31 @@ function Sa(e, n, t) {
4078
4078
  return d === 93 ? (e.consume(d), y) : C(d);
4079
4079
  }
4080
4080
  function y(d) {
4081
- return d === 62 ? M(d) : d === 93 ? (e.consume(d), y) : C(d);
4081
+ return d === 62 ? N(d) : d === 93 ? (e.consume(d), y) : C(d);
4082
4082
  }
4083
- function I(d) {
4084
- return d === null || d === 62 ? M(d) : D(d) ? (l = I, j(d)) : (e.consume(d), I);
4083
+ function A(d) {
4084
+ return d === null || d === 62 ? N(d) : D(d) ? (l = A, j(d)) : (e.consume(d), A);
4085
4085
  }
4086
4086
  function _(d) {
4087
- return d === null ? t(d) : d === 63 ? (e.consume(d), L) : D(d) ? (l = _, j(d)) : (e.consume(d), _);
4087
+ return d === null ? t(d) : d === 63 ? (e.consume(d), P) : D(d) ? (l = _, j(d)) : (e.consume(d), _);
4088
4088
  }
4089
- function L(d) {
4090
- return d === 62 ? M(d) : _(d);
4089
+ function P(d) {
4090
+ return d === 62 ? N(d) : _(d);
4091
4091
  }
4092
- function N(d) {
4092
+ function M(d) {
4093
4093
  return ae(d) ? (e.consume(d), b) : t(d);
4094
4094
  }
4095
4095
  function b(d) {
4096
4096
  return d === 45 || ie(d) ? (e.consume(d), b) : O(d);
4097
4097
  }
4098
4098
  function O(d) {
4099
- return D(d) ? (l = O, j(d)) : $(d) ? (e.consume(d), O) : M(d);
4099
+ return D(d) ? (l = O, j(d)) : $(d) ? (e.consume(d), O) : N(d);
4100
4100
  }
4101
4101
  function H(d) {
4102
4102
  return d === 45 || ie(d) ? (e.consume(d), H) : d === 47 || d === 62 || J(d) ? B(d) : t(d);
4103
4103
  }
4104
4104
  function B(d) {
4105
- return d === 47 ? (e.consume(d), M) : d === 58 || d === 95 || ae(d) ? (e.consume(d), k) : D(d) ? (l = B, j(d)) : $(d) ? (e.consume(d), B) : M(d);
4105
+ return d === 47 ? (e.consume(d), N) : d === 58 || d === 95 || ae(d) ? (e.consume(d), k) : D(d) ? (l = B, j(d)) : $(d) ? (e.consume(d), B) : N(d);
4106
4106
  }
4107
4107
  function k(d) {
4108
4108
  return d === 45 || d === 46 || d === 58 || d === 95 || ie(d) ? (e.consume(d), k) : T(d);
@@ -4111,34 +4111,34 @@ function Sa(e, n, t) {
4111
4111
  return d === 61 ? (e.consume(d), z) : D(d) ? (l = T, j(d)) : $(d) ? (e.consume(d), T) : B(d);
4112
4112
  }
4113
4113
  function z(d) {
4114
- 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, j(d)) : $(d) ? (e.consume(d), z) : (e.consume(d), P);
4114
+ return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, q) : D(d) ? (l = z, j(d)) : $(d) ? (e.consume(d), z) : (e.consume(d), L);
4115
4115
  }
4116
- function U(d) {
4117
- return d === i ? (e.consume(d), i = void 0, v) : d === null ? t(d) : D(d) ? (l = U, j(d)) : (e.consume(d), U);
4116
+ function q(d) {
4117
+ return d === i ? (e.consume(d), i = void 0, v) : d === null ? t(d) : D(d) ? (l = q, j(d)) : (e.consume(d), q);
4118
4118
  }
4119
- function P(d) {
4120
- return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ? B(d) : (e.consume(d), P);
4119
+ function L(d) {
4120
+ return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ? B(d) : (e.consume(d), L);
4121
4121
  }
4122
4122
  function v(d) {
4123
4123
  return d === 47 || d === 62 || J(d) ? B(d) : t(d);
4124
4124
  }
4125
- function M(d) {
4125
+ function N(d) {
4126
4126
  return d === 62 ? (e.consume(d), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(d);
4127
4127
  }
4128
4128
  function j(d) {
4129
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), Q;
4130
- }
4131
- function Q(d) {
4132
- return $(d) ? q(e, W, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : W(d);
4129
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), W;
4133
4130
  }
4134
4131
  function W(d) {
4132
+ return $(d) ? U(e, Y, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : Y(d);
4133
+ }
4134
+ function Y(d) {
4135
4135
  return e.enter("htmlTextData"), l(d);
4136
4136
  }
4137
4137
  }
4138
4138
  const xn = {
4139
4139
  name: "labelEnd",
4140
- resolveAll: Ia,
4141
- resolveTo: Aa,
4140
+ resolveAll: Aa,
4141
+ resolveTo: Ia,
4142
4142
  tokenize: Ta
4143
4143
  }, va = {
4144
4144
  tokenize: za
@@ -4147,7 +4147,7 @@ const xn = {
4147
4147
  }, Ea = {
4148
4148
  tokenize: La
4149
4149
  };
4150
- function Ia(e) {
4150
+ function Aa(e) {
4151
4151
  let n = -1;
4152
4152
  const t = [];
4153
4153
  for (; ++n < e.length; ) {
@@ -4159,7 +4159,7 @@ function Ia(e) {
4159
4159
  }
4160
4160
  return e.length !== t.length && he(e, 0, e.length, t), e;
4161
4161
  }
4162
- function Aa(e, n) {
4162
+ function Ia(e, n) {
4163
4163
  let t = e.length, r = 0, i, o, l, a;
4164
4164
  for (; t--; )
4165
4165
  if (i = e[t][1], o) {
@@ -4316,7 +4316,7 @@ const Ft = {
4316
4316
  function Fa(e, n) {
4317
4317
  return t;
4318
4318
  function t(r) {
4319
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), q(e, n, "linePrefix");
4319
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), U(e, n, "linePrefix");
4320
4320
  }
4321
4321
  }
4322
4322
  const Ct = {
@@ -4336,7 +4336,7 @@ function Oa(e, n, t) {
4336
4336
  return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || D(u)) ? (e.exit("thematicBreak"), n(u)) : t(u);
4337
4337
  }
4338
4338
  function s(u) {
4339
- return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), $(u) ? q(e, a, "whitespace")(u) : a(u));
4339
+ return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), $(u) ? U(e, a, "whitespace")(u) : a(u));
4340
4340
  }
4341
4341
  }
4342
4342
  const ue = {
@@ -4394,18 +4394,18 @@ function Ha(e, n, t) {
4394
4394
  const r = this;
4395
4395
  return r.containerState._closeFlow = void 0, e.check(ft, i, o);
4396
4396
  function i(a) {
4397
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, q(e, n, "listItemIndent", r.containerState.size + 1)(a);
4397
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, U(e, n, "listItemIndent", r.containerState.size + 1)(a);
4398
4398
  }
4399
4399
  function o(a) {
4400
4400
  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));
4401
4401
  }
4402
4402
  function l(a) {
4403
- 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);
4403
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, U(e, e.attempt(ue, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
4404
4404
  }
4405
4405
  }
4406
4406
  function Va(e, n, t) {
4407
4407
  const r = this;
4408
- return q(e, i, "listItemIndent", r.containerState.size + 1);
4408
+ return U(e, i, "listItemIndent", r.containerState.size + 1);
4409
4409
  function i(o) {
4410
4410
  const l = r.events[r.events.length - 1];
4411
4411
  return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? n(o) : t(o);
@@ -4416,7 +4416,7 @@ function qa(e) {
4416
4416
  }
4417
4417
  function Ua(e, n, t) {
4418
4418
  const r = this;
4419
- return q(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
4419
+ return U(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
4420
4420
  function i(o) {
4421
4421
  const l = r.events[r.events.length - 1];
4422
4422
  return !$(o) && l && l[1].type === "listItemPrefixWhitespace" ? n(o) : t(o);
@@ -4468,7 +4468,7 @@ function Ya(e, n, t) {
4468
4468
  return e.enter("setextHeadingLineSequence"), a(u);
4469
4469
  }
4470
4470
  function a(u) {
4471
- return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), $(u) ? q(e, s, "lineSuffix")(u) : s(u));
4471
+ return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), $(u) ? U(e, s, "lineSuffix")(u) : s(u));
4472
4472
  }
4473
4473
  function s(u) {
4474
4474
  return u === null || D(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
@@ -4483,7 +4483,7 @@ function Xa(e) {
4483
4483
  ft,
4484
4484
  r,
4485
4485
  // Try to parse initial flow (essentially, only code).
4486
- e.attempt(this.parser.constructs.flowInitial, i, q(e, e.attempt(this.parser.constructs.flow, i, e.attempt(ea, i)), "linePrefix"))
4486
+ e.attempt(this.parser.constructs.flowInitial, i, U(e, e.attempt(this.parser.constructs.flow, i, e.attempt(ea, i)), "linePrefix"))
4487
4487
  );
4488
4488
  return t;
4489
4489
  function r(o) {
@@ -4666,11 +4666,11 @@ function cs(e, n, t) {
4666
4666
  const i = {}, o = [];
4667
4667
  let l = [], a = [];
4668
4668
  const s = {
4669
- attempt: O(N),
4669
+ attempt: O(M),
4670
4670
  check: O(b),
4671
- consume: I,
4671
+ consume: A,
4672
4672
  enter: _,
4673
- exit: L,
4673
+ exit: P,
4674
4674
  interrupt: O(b, {
4675
4675
  interrupt: !0
4676
4676
  })
@@ -4701,15 +4701,15 @@ function cs(e, n, t) {
4701
4701
  const {
4702
4702
  _bufferIndex: T,
4703
4703
  _index: z,
4704
- line: U,
4705
- column: P,
4704
+ line: q,
4705
+ column: L,
4706
4706
  offset: v
4707
4707
  } = r;
4708
4708
  return {
4709
4709
  _bufferIndex: T,
4710
4710
  _index: z,
4711
- line: U,
4712
- column: P,
4711
+ line: q,
4712
+ column: L,
4713
4713
  offset: v
4714
4714
  };
4715
4715
  }
@@ -4730,74 +4730,74 @@ function cs(e, n, t) {
4730
4730
  function y(T) {
4731
4731
  f = f(T);
4732
4732
  }
4733
- function I(T) {
4733
+ function A(T) {
4734
4734
  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
4735
4735
  // strings.
4736
4736
  /** @type {string} */
4737
4737
  l[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = T;
4738
4738
  }
4739
4739
  function _(T, z) {
4740
- const U = z || {};
4741
- return U.type = T, U.start = g(), u.events.push(["enter", U, u]), a.push(U), U;
4740
+ const q = z || {};
4741
+ return q.type = T, q.start = g(), u.events.push(["enter", q, u]), a.push(q), q;
4742
4742
  }
4743
- function L(T) {
4743
+ function P(T) {
4744
4744
  const z = a.pop();
4745
4745
  return z.end = g(), u.events.push(["exit", z, u]), z;
4746
4746
  }
4747
- function N(T, z) {
4747
+ function M(T, z) {
4748
4748
  H(T, z.from);
4749
4749
  }
4750
4750
  function b(T, z) {
4751
4751
  z.restore();
4752
4752
  }
4753
4753
  function O(T, z) {
4754
- return U;
4755
- function U(P, v, M) {
4756
- let j, Q, W, d;
4757
- return Array.isArray(P) ? (
4754
+ return q;
4755
+ function q(L, v, N) {
4756
+ let j, W, Y, d;
4757
+ return Array.isArray(L) ? (
4758
4758
  /* c8 ignore next 1 */
4759
- te(P)
4760
- ) : "tokenize" in P ? (
4759
+ te(L)
4760
+ ) : "tokenize" in L ? (
4761
4761
  // Looks like a construct.
4762
4762
  te([
4763
4763
  /** @type {Construct} */
4764
- P
4764
+ L
4765
4765
  ])
4766
- ) : se(P);
4766
+ ) : se(L);
4767
4767
  function se(re) {
4768
4768
  return Xe;
4769
- function Xe(Ie) {
4770
- const Be = Ie !== null && re[Ie], $e = Ie !== null && re.null, ht = [
4769
+ function Xe(Ae) {
4770
+ const Be = Ae !== null && re[Ae], $e = Ae !== null && re.null, ht = [
4771
4771
  // To do: add more extension tests.
4772
4772
  /* c8 ignore next 2 */
4773
4773
  ...Array.isArray(Be) ? Be : Be ? [Be] : [],
4774
4774
  ...Array.isArray($e) ? $e : $e ? [$e] : []
4775
4775
  ];
4776
- return te(ht)(Ie);
4776
+ return te(ht)(Ae);
4777
4777
  }
4778
4778
  }
4779
4779
  function te(re) {
4780
- return j = re, Q = 0, re.length === 0 ? M : m(re[Q]);
4780
+ return j = re, W = 0, re.length === 0 ? N : m(re[W]);
4781
4781
  }
4782
4782
  function m(re) {
4783
4783
  return Xe;
4784
- function Xe(Ie) {
4785
- return d = B(), W = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? Pe() : re.tokenize.call(
4784
+ function Xe(Ae) {
4785
+ return d = B(), Y = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? Le() : re.tokenize.call(
4786
4786
  // If we do have fields, create an object w/ `context` as its
4787
4787
  // prototype.
4788
4788
  // This allows a “live binding”, which is needed for `interrupt`.
4789
4789
  z ? Object.assign(Object.create(u), z) : u,
4790
4790
  s,
4791
4791
  ne,
4792
- Pe
4793
- )(Ie);
4792
+ Le
4793
+ )(Ae);
4794
4794
  }
4795
4795
  }
4796
4796
  function ne(re) {
4797
- return T(W, d), v;
4797
+ return T(Y, d), v;
4798
4798
  }
4799
- function Pe(re) {
4800
- return d.restore(), ++Q < j.length ? m(j[Q]) : M;
4799
+ function Le(re) {
4800
+ return d.restore(), ++W < j.length ? m(j[W]) : N;
4801
4801
  }
4802
4802
  }
4803
4803
  }
@@ -4805,13 +4805,13 @@ function cs(e, n, t) {
4805
4805
  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));
4806
4806
  }
4807
4807
  function B() {
4808
- const T = g(), z = u.previous, U = u.currentConstruct, P = u.events.length, v = Array.from(a);
4808
+ const T = g(), z = u.previous, q = u.currentConstruct, L = u.events.length, v = Array.from(a);
4809
4809
  return {
4810
- from: P,
4811
- restore: M
4810
+ from: L,
4811
+ restore: N
4812
4812
  };
4813
- function M() {
4814
- r = T, u.previous = z, u.currentConstruct = U, u.events.length = P, a = v, k();
4813
+ function N() {
4814
+ r = T, u.previous = z, u.currentConstruct = q, u.events.length = L, a = v, k();
4815
4815
  }
4816
4816
  }
4817
4817
  function k() {
@@ -4878,7 +4878,7 @@ function hs(e) {
4878
4878
  /** @type {FullNormalizedExtension} */
4879
4879
  Gr([us, ...(e || {}).extensions || []])
4880
4880
  ),
4881
- content: i(Ao),
4881
+ content: i(Io),
4882
4882
  defined: [],
4883
4883
  document: i(zo),
4884
4884
  flow: i(Qa),
@@ -5001,14 +5001,14 @@ function bs(e) {
5001
5001
  },
5002
5002
  exit: {
5003
5003
  atxHeading: s(),
5004
- atxHeadingSequence: N,
5004
+ atxHeadingSequence: M,
5005
5005
  autolink: s(),
5006
5006
  autolinkEmail: Be,
5007
- autolinkProtocol: Ie,
5007
+ autolinkProtocol: Ae,
5008
5008
  blockQuote: s(),
5009
5009
  characterEscapeValue: k,
5010
- characterReferenceMarkerHexadecimal: Pe,
5011
- characterReferenceMarkerNumeric: Pe,
5010
+ characterReferenceMarkerHexadecimal: Le,
5011
+ characterReferenceMarkerNumeric: Le,
5012
5012
  characterReferenceValue: re,
5013
5013
  characterReference: Xe,
5014
5014
  codeFenced: s(S),
@@ -5021,21 +5021,21 @@ function bs(e) {
5021
5021
  codeTextData: k,
5022
5022
  data: k,
5023
5023
  definition: s(),
5024
- definitionDestinationString: L,
5025
- definitionLabelString: I,
5024
+ definitionDestinationString: P,
5025
+ definitionLabelString: A,
5026
5026
  definitionTitleString: _,
5027
5027
  emphasis: s(),
5028
5028
  hardBreakEscape: s(z),
5029
5029
  hardBreakTrailing: s(z),
5030
- htmlFlow: s(U),
5030
+ htmlFlow: s(q),
5031
5031
  htmlFlowData: k,
5032
- htmlText: s(P),
5032
+ htmlText: s(L),
5033
5033
  htmlTextData: k,
5034
5034
  image: s(j),
5035
- label: W,
5036
- labelText: Q,
5035
+ label: Y,
5036
+ labelText: W,
5037
5037
  lineEnding: T,
5038
- link: s(M),
5038
+ link: s(N),
5039
5039
  listItem: s(),
5040
5040
  listOrdered: s(),
5041
5041
  listUnordered: s(),
@@ -5055,12 +5055,12 @@ function bs(e) {
5055
5055
  const t = {};
5056
5056
  return r;
5057
5057
  function r(w) {
5058
- let A = {
5058
+ let I = {
5059
5059
  type: "root",
5060
5060
  children: []
5061
5061
  };
5062
5062
  const F = {
5063
- stack: [A],
5063
+ stack: [I],
5064
5064
  tokenStack: [],
5065
5065
  config: n,
5066
5066
  enter: a,
@@ -5088,23 +5088,23 @@ function bs(e) {
5088
5088
  const ge = F.tokenStack[F.tokenStack.length - 1];
5089
5089
  (ge[1] || rr).call(F, void 0, ge[0]);
5090
5090
  }
5091
- for (A.position = {
5092
- start: Ae(w.length > 0 ? w[0][1].start : {
5091
+ for (I.position = {
5092
+ start: Ie(w.length > 0 ? w[0][1].start : {
5093
5093
  line: 1,
5094
5094
  column: 1,
5095
5095
  offset: 0
5096
5096
  }),
5097
- end: Ae(w.length > 0 ? w[w.length - 2][1].end : {
5097
+ end: Ie(w.length > 0 ? w[w.length - 2][1].end : {
5098
5098
  line: 1,
5099
5099
  column: 1,
5100
5100
  offset: 0
5101
5101
  })
5102
5102
  }, X = -1; ++X < n.transforms.length; )
5103
- A = n.transforms[X](A) || A;
5104
- return A;
5103
+ I = n.transforms[X](I) || I;
5104
+ return I;
5105
5105
  }
5106
- function i(w, A, F) {
5107
- let V = A - 1, X = -1, ge = !1, Le, Ce, Ge, Je;
5106
+ function i(w, I, F) {
5107
+ let V = I - 1, X = -1, ge = !1, De, Ce, Ge, Je;
5108
5108
  for (; ++V <= F; ) {
5109
5109
  const fe = w[V];
5110
5110
  switch (fe[1].type) {
@@ -5115,7 +5115,7 @@ function bs(e) {
5115
5115
  break;
5116
5116
  }
5117
5117
  case "lineEndingBlank": {
5118
- fe[0] === "enter" && (Le && !Je && !X && !Ge && (Ge = V), Je = void 0);
5118
+ fe[0] === "enter" && (De && !Je && !X && !Ge && (Ge = V), Je = void 0);
5119
5119
  break;
5120
5120
  }
5121
5121
  case "linePrefix":
@@ -5128,7 +5128,7 @@ function bs(e) {
5128
5128
  Je = void 0;
5129
5129
  }
5130
5130
  if (!X && fe[0] === "enter" && fe[1].type === "listItemPrefix" || X === -1 && fe[0] === "exit" && (fe[1].type === "listUnordered" || fe[1].type === "listOrdered")) {
5131
- if (Le) {
5131
+ if (De) {
5132
5132
  let He = V;
5133
5133
  for (Ce = void 0; He--; ) {
5134
5134
  const Se = w[He];
@@ -5137,7 +5137,7 @@ function bs(e) {
5137
5137
  Ce && (w[Ce][1].type = "lineEndingBlank", ge = !0), Se[1].type = "lineEnding", Ce = He;
5138
5138
  } else if (!(Se[1].type === "linePrefix" || Se[1].type === "blockQuotePrefix" || Se[1].type === "blockQuotePrefixWhitespace" || Se[1].type === "blockQuoteMarker" || Se[1].type === "listItemIndent")) break;
5139
5139
  }
5140
- 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++;
5140
+ Ge && (!Ce || Ge < Ce) && (De._spread = !0), De.end = Object.assign({}, Ce ? w[Ce][1].start : fe[1].end), w.splice(Ce || V, 0, ["exit", De, fe[2]]), V++, F++;
5141
5141
  }
5142
5142
  if (fe[1].type === "listItemPrefix") {
5143
5143
  const He = {
@@ -5147,16 +5147,16 @@ function bs(e) {
5147
5147
  // @ts-expect-error: we’ll add `end` in a second.
5148
5148
  end: void 0
5149
5149
  };
5150
- Le = He, w.splice(V, 0, ["enter", He, fe[2]]), V++, F++, Ge = void 0, Je = !0;
5150
+ De = He, w.splice(V, 0, ["enter", He, fe[2]]), V++, F++, Ge = void 0, Je = !0;
5151
5151
  }
5152
5152
  }
5153
5153
  }
5154
- return w[A][1]._spread = ge, F;
5154
+ return w[I][1]._spread = ge, F;
5155
5155
  }
5156
- function o(w, A) {
5156
+ function o(w, I) {
5157
5157
  return F;
5158
5158
  function F(V) {
5159
- a.call(this, w(V), V), A && A.call(this, V);
5159
+ a.call(this, w(V), V), I && I.call(this, V);
5160
5160
  }
5161
5161
  }
5162
5162
  function l() {
@@ -5165,28 +5165,28 @@ function bs(e) {
5165
5165
  children: []
5166
5166
  });
5167
5167
  }
5168
- function a(w, A, F) {
5169
- this.stack[this.stack.length - 1].children.push(w), this.stack.push(w), this.tokenStack.push([A, F || void 0]), w.position = {
5170
- start: Ae(A.start),
5168
+ function a(w, I, F) {
5169
+ this.stack[this.stack.length - 1].children.push(w), this.stack.push(w), this.tokenStack.push([I, F || void 0]), w.position = {
5170
+ start: Ie(I.start),
5171
5171
  // @ts-expect-error: `end` will be patched later.
5172
5172
  end: void 0
5173
5173
  };
5174
5174
  }
5175
5175
  function s(w) {
5176
- return A;
5177
- function A(F) {
5176
+ return I;
5177
+ function I(F) {
5178
5178
  w && w.call(this, F), u.call(this, F);
5179
5179
  }
5180
5180
  }
5181
- function u(w, A) {
5181
+ function u(w, I) {
5182
5182
  const F = this.stack.pop(), V = this.tokenStack.pop();
5183
5183
  if (V)
5184
- V[0].type !== w.type && (A ? A.call(this, w, V[0]) : (V[1] || rr).call(this, w, V[0]));
5184
+ V[0].type !== w.type && (I ? I.call(this, w, V[0]) : (V[1] || rr).call(this, w, V[0]));
5185
5185
  else throw new Error("Cannot close `" + w.type + "` (" + lt({
5186
5186
  start: w.start,
5187
5187
  end: w.end
5188
5188
  }) + "): it’s not open");
5189
- F.position.end = Ae(w.end);
5189
+ F.position.end = Ie(w.end);
5190
5190
  }
5191
5191
  function f() {
5192
5192
  return yn(this.stack.pop());
@@ -5196,54 +5196,54 @@ function bs(e) {
5196
5196
  }
5197
5197
  function h(w) {
5198
5198
  if (this.data.expectingFirstListItemValue) {
5199
- const A = this.stack[this.stack.length - 2];
5200
- A.start = Number.parseInt(this.sliceSerialize(w), 10), this.data.expectingFirstListItemValue = void 0;
5199
+ const I = this.stack[this.stack.length - 2];
5200
+ I.start = Number.parseInt(this.sliceSerialize(w), 10), this.data.expectingFirstListItemValue = void 0;
5201
5201
  }
5202
5202
  }
5203
5203
  function p() {
5204
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5205
- A.lang = w;
5204
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5205
+ I.lang = w;
5206
5206
  }
5207
5207
  function g() {
5208
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5209
- A.meta = w;
5208
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5209
+ I.meta = w;
5210
5210
  }
5211
5211
  function C() {
5212
5212
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
5213
5213
  }
5214
5214
  function S() {
5215
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5216
- A.value = w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
5215
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5216
+ I.value = w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
5217
5217
  }
5218
5218
  function y() {
5219
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5220
- A.value = w.replace(/(\r?\n|\r)$/g, "");
5219
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5220
+ I.value = w.replace(/(\r?\n|\r)$/g, "");
5221
5221
  }
5222
- function I(w) {
5223
- const A = this.resume(), F = this.stack[this.stack.length - 1];
5224
- F.label = A, F.identifier = ke(this.sliceSerialize(w)).toLowerCase();
5222
+ function A(w) {
5223
+ const I = this.resume(), F = this.stack[this.stack.length - 1];
5224
+ F.label = I, F.identifier = ke(this.sliceSerialize(w)).toLowerCase();
5225
5225
  }
5226
5226
  function _() {
5227
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5228
- A.title = w;
5227
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5228
+ I.title = w;
5229
5229
  }
5230
- function L() {
5231
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5232
- A.url = w;
5230
+ function P() {
5231
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5232
+ I.url = w;
5233
5233
  }
5234
- function N(w) {
5235
- const A = this.stack[this.stack.length - 1];
5236
- if (!A.depth) {
5234
+ function M(w) {
5235
+ const I = this.stack[this.stack.length - 1];
5236
+ if (!I.depth) {
5237
5237
  const F = this.sliceSerialize(w).length;
5238
- A.depth = F;
5238
+ I.depth = F;
5239
5239
  }
5240
5240
  }
5241
5241
  function b() {
5242
5242
  this.data.setextHeadingSlurpLineEnding = !0;
5243
5243
  }
5244
5244
  function O(w) {
5245
- const A = this.stack[this.stack.length - 1];
5246
- A.depth = this.sliceSerialize(w).codePointAt(0) === 61 ? 1 : 2;
5245
+ const I = this.stack[this.stack.length - 1];
5246
+ I.depth = this.sliceSerialize(w).codePointAt(0) === 61 ? 1 : 2;
5247
5247
  }
5248
5248
  function H() {
5249
5249
  this.data.setextHeadingSlurpLineEnding = void 0;
@@ -5252,44 +5252,44 @@ function bs(e) {
5252
5252
  const F = this.stack[this.stack.length - 1].children;
5253
5253
  let V = F[F.length - 1];
5254
5254
  (!V || V.type !== "text") && (V = Gi(), V.position = {
5255
- start: Ae(w.start),
5255
+ start: Ie(w.start),
5256
5256
  // @ts-expect-error: we’ll add `end` later.
5257
5257
  end: void 0
5258
5258
  }, F.push(V)), this.stack.push(V);
5259
5259
  }
5260
5260
  function k(w) {
5261
- const A = this.stack.pop();
5262
- A.value += this.sliceSerialize(w), A.position.end = Ae(w.end);
5261
+ const I = this.stack.pop();
5262
+ I.value += this.sliceSerialize(w), I.position.end = Ie(w.end);
5263
5263
  }
5264
5264
  function T(w) {
5265
- const A = this.stack[this.stack.length - 1];
5265
+ const I = this.stack[this.stack.length - 1];
5266
5266
  if (this.data.atHardBreak) {
5267
- const F = A.children[A.children.length - 1];
5268
- F.position.end = Ae(w.end), this.data.atHardBreak = void 0;
5267
+ const F = I.children[I.children.length - 1];
5268
+ F.position.end = Ie(w.end), this.data.atHardBreak = void 0;
5269
5269
  return;
5270
5270
  }
5271
- !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(A.type) && (B.call(this, w), k.call(this, w));
5271
+ !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(I.type) && (B.call(this, w), k.call(this, w));
5272
5272
  }
5273
5273
  function z() {
5274
5274
  this.data.atHardBreak = !0;
5275
5275
  }
5276
- function U() {
5277
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5278
- A.value = w;
5276
+ function q() {
5277
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5278
+ I.value = w;
5279
5279
  }
5280
- function P() {
5281
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5282
- A.value = w;
5280
+ function L() {
5281
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5282
+ I.value = w;
5283
5283
  }
5284
5284
  function v() {
5285
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5286
- A.value = w;
5285
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5286
+ I.value = w;
5287
5287
  }
5288
- function M() {
5288
+ function N() {
5289
5289
  const w = this.stack[this.stack.length - 1];
5290
5290
  if (this.data.inReference) {
5291
- const A = this.data.referenceType || "shortcut";
5292
- w.type += "Reference", w.referenceType = A, delete w.url, delete w.title;
5291
+ const I = this.data.referenceType || "shortcut";
5292
+ w.type += "Reference", w.referenceType = I, delete w.url, delete w.title;
5293
5293
  } else
5294
5294
  delete w.identifier, delete w.label;
5295
5295
  this.data.referenceType = void 0;
@@ -5297,31 +5297,31 @@ function bs(e) {
5297
5297
  function j() {
5298
5298
  const w = this.stack[this.stack.length - 1];
5299
5299
  if (this.data.inReference) {
5300
- const A = this.data.referenceType || "shortcut";
5301
- w.type += "Reference", w.referenceType = A, delete w.url, delete w.title;
5300
+ const I = this.data.referenceType || "shortcut";
5301
+ w.type += "Reference", w.referenceType = I, delete w.url, delete w.title;
5302
5302
  } else
5303
5303
  delete w.identifier, delete w.label;
5304
5304
  this.data.referenceType = void 0;
5305
5305
  }
5306
- function Q(w) {
5307
- const A = this.sliceSerialize(w), F = this.stack[this.stack.length - 2];
5308
- F.label = ys(A), F.identifier = ke(A).toLowerCase();
5306
+ function W(w) {
5307
+ const I = this.sliceSerialize(w), F = this.stack[this.stack.length - 2];
5308
+ F.label = ys(I), F.identifier = ke(I).toLowerCase();
5309
5309
  }
5310
- function W() {
5311
- const w = this.stack[this.stack.length - 1], A = this.resume(), F = this.stack[this.stack.length - 1];
5310
+ function Y() {
5311
+ const w = this.stack[this.stack.length - 1], I = this.resume(), F = this.stack[this.stack.length - 1];
5312
5312
  if (this.data.inReference = !0, F.type === "link") {
5313
5313
  const V = w.children;
5314
5314
  F.children = V;
5315
5315
  } else
5316
- F.alt = A;
5316
+ F.alt = I;
5317
5317
  }
5318
5318
  function d() {
5319
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5320
- A.url = w;
5319
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5320
+ I.url = w;
5321
5321
  }
5322
5322
  function se() {
5323
- const w = this.resume(), A = this.stack[this.stack.length - 1];
5324
- A.title = w;
5323
+ const w = this.resume(), I = this.stack[this.stack.length - 1];
5324
+ I.title = w;
5325
5325
  }
5326
5326
  function te() {
5327
5327
  this.data.inReference = void 0;
@@ -5330,32 +5330,32 @@ function bs(e) {
5330
5330
  this.data.referenceType = "collapsed";
5331
5331
  }
5332
5332
  function ne(w) {
5333
- const A = this.resume(), F = this.stack[this.stack.length - 1];
5334
- F.label = A, F.identifier = ke(this.sliceSerialize(w)).toLowerCase(), this.data.referenceType = "full";
5333
+ const I = this.resume(), F = this.stack[this.stack.length - 1];
5334
+ F.label = I, F.identifier = ke(this.sliceSerialize(w)).toLowerCase(), this.data.referenceType = "full";
5335
5335
  }
5336
- function Pe(w) {
5336
+ function Le(w) {
5337
5337
  this.data.characterReferenceType = w.type;
5338
5338
  }
5339
5339
  function re(w) {
5340
- const A = this.sliceSerialize(w), F = this.data.characterReferenceType;
5340
+ const I = this.sliceSerialize(w), F = this.data.characterReferenceType;
5341
5341
  let V;
5342
- F ? (V = Jr(A, F === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : V = kn(A);
5342
+ F ? (V = Jr(I, F === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : V = kn(I);
5343
5343
  const X = this.stack[this.stack.length - 1];
5344
5344
  X.value += V;
5345
5345
  }
5346
5346
  function Xe(w) {
5347
- const A = this.stack.pop();
5348
- A.position.end = Ae(w.end);
5347
+ const I = this.stack.pop();
5348
+ I.position.end = Ie(w.end);
5349
5349
  }
5350
- function Ie(w) {
5350
+ function Ae(w) {
5351
5351
  k.call(this, w);
5352
- const A = this.stack[this.stack.length - 1];
5353
- A.url = this.sliceSerialize(w);
5352
+ const I = this.stack[this.stack.length - 1];
5353
+ I.url = this.sliceSerialize(w);
5354
5354
  }
5355
5355
  function Be(w) {
5356
5356
  k.call(this, w);
5357
- const A = this.stack[this.stack.length - 1];
5358
- A.url = "mailto:" + this.sliceSerialize(w);
5357
+ const I = this.stack[this.stack.length - 1];
5358
+ I.url = "mailto:" + this.sliceSerialize(w);
5359
5359
  }
5360
5360
  function $e() {
5361
5361
  return {
@@ -5468,7 +5468,7 @@ function bs(e) {
5468
5468
  };
5469
5469
  }
5470
5470
  }
5471
- function Ae(e) {
5471
+ function Ie(e) {
5472
5472
  return {
5473
5473
  line: e.line,
5474
5474
  column: e.column,
@@ -5567,7 +5567,7 @@ function Es(e, n) {
5567
5567
  };
5568
5568
  return e.patch(n, t), e.applyData(n, t);
5569
5569
  }
5570
- function Is(e, n) {
5570
+ function As(e, n) {
5571
5571
  const t = {
5572
5572
  type: "element",
5573
5573
  tagName: "em",
@@ -5576,7 +5576,7 @@ function Is(e, n) {
5576
5576
  };
5577
5577
  return e.patch(n, t), e.applyData(n, t);
5578
5578
  }
5579
- function As(e, n) {
5579
+ function Is(e, n) {
5580
5580
  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);
5581
5581
  let l, a = e.footnoteCounts.get(r);
5582
5582
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
@@ -5855,8 +5855,8 @@ const Qs = {
5855
5855
  break: vs,
5856
5856
  code: _s,
5857
5857
  delete: Es,
5858
- emphasis: Is,
5859
- footnoteReference: As,
5858
+ emphasis: As,
5859
+ footnoteReference: Is,
5860
5860
  heading: Ts,
5861
5861
  html: zs,
5862
5862
  imageReference: Ps,
@@ -6086,8 +6086,8 @@ function tu(e) {
6086
6086
  const g = [], C = e.footnoteCounts.get(c);
6087
6087
  for (; C !== void 0 && ++p <= C; ) {
6088
6088
  g.length > 0 && g.push({ type: "text", value: " " });
6089
- let I = typeof t == "string" ? t : t(s, p);
6090
- typeof I == "string" && (I = { type: "text", value: I }), g.push({
6089
+ let A = typeof t == "string" ? t : t(s, p);
6090
+ typeof A == "string" && (A = { type: "text", value: A }), g.push({
6091
6091
  type: "element",
6092
6092
  tagName: "a",
6093
6093
  properties: {
@@ -6096,13 +6096,13 @@ function tu(e) {
6096
6096
  ariaLabel: typeof r == "string" ? r : r(s, p),
6097
6097
  className: ["data-footnote-backref"]
6098
6098
  },
6099
- children: Array.isArray(I) ? I : [I]
6099
+ children: Array.isArray(A) ? A : [A]
6100
6100
  });
6101
6101
  }
6102
6102
  const S = f[f.length - 1];
6103
6103
  if (S && S.type === "element" && S.tagName === "p") {
6104
- const I = S.children[S.children.length - 1];
6105
- I && I.type === "text" ? I.value += " " : S.children.push({ type: "text", value: " " }), S.children.push(...g);
6104
+ const A = S.children[S.children.length - 1];
6105
+ A && A.type === "text" ? A.value += " " : S.children.push({ type: "text", value: " " }), S.children.push(...g);
6106
6106
  } else
6107
6107
  f.push(...g);
6108
6108
  const y = {
@@ -6264,8 +6264,8 @@ function gi(e, n, t, r) {
6264
6264
  );
6265
6265
  if (y.children && p[0] !== su)
6266
6266
  for (C = (r ? y.children.length : -1) + l, S = f.concat(y); C > -1 && C < y.children.length; ) {
6267
- const I = y.children[C];
6268
- if (g = a(I, C, S)(), g[0] === nn)
6267
+ const A = y.children[C];
6268
+ if (g = a(A, C, S)(), g[0] === nn)
6269
6269
  return g;
6270
6270
  C = typeof g[1] == "number" ? g[1] : C + l;
6271
6271
  }
@@ -6436,11 +6436,11 @@ function yu() {
6436
6436
  return u[f];
6437
6437
  };
6438
6438
  return Ot = function s() {
6439
- var u, f, c, h, p, g, C = arguments[0], S = 1, y = arguments.length, I = !1;
6440
- for (typeof C == "boolean" && (I = C, C = arguments[1] || {}, S = 2), (C == null || typeof C != "object" && typeof C != "function") && (C = {}); S < y; ++S)
6439
+ var u, f, c, h, p, g, C = arguments[0], S = 1, y = arguments.length, A = !1;
6440
+ for (typeof C == "boolean" && (A = C, C = arguments[1] || {}, S = 2), (C == null || typeof C != "object" && typeof C != "function") && (C = {}); S < y; ++S)
6441
6441
  if (u = arguments[S], u != null)
6442
6442
  for (f in u)
6443
- 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 }));
6443
+ 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 }));
6444
6444
  return C;
6445
6445
  }, Ot;
6446
6446
  }
@@ -6617,8 +6617,8 @@ function pt(e) {
6617
6617
  "Path must be a string. Received " + JSON.stringify(e)
6618
6618
  );
6619
6619
  }
6620
- const Iu = { cwd: Au };
6621
- function Au() {
6620
+ const Au = { cwd: Iu };
6621
+ function Iu() {
6622
6622
  return "/";
6623
6623
  }
6624
6624
  function on(e) {
@@ -6697,7 +6697,7 @@ class yi {
6697
6697
  */
6698
6698
  constructor(n) {
6699
6699
  let t;
6700
- n ? on(n) ? t = { path: n } : typeof n == "string" || Pu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Iu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
6700
+ n ? on(n) ? t = { path: n } : typeof n == "string" || Pu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Au.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
6701
6701
  let r = -1;
6702
6702
  for (; ++r < Bt.length; ) {
6703
6703
  const o = Bt[r];
@@ -7654,7 +7654,7 @@ function qu(e, n) {
7654
7654
  components: i,
7655
7655
  ignoreInvalidStyle: !0,
7656
7656
  jsx: x,
7657
- jsxs: Y,
7657
+ jsxs: Q,
7658
7658
  passKeys: !0,
7659
7659
  passNode: !0
7660
7660
  });
@@ -7723,24 +7723,24 @@ function Yu(e, n, t) {
7723
7723
  const c = f[f.length - 1], h = o[l][0], p = o[l][1];
7724
7724
  let g = 0;
7725
7725
  const S = c.children.indexOf(u);
7726
- let y = !1, I = [];
7726
+ let y = !1, A = [];
7727
7727
  h.lastIndex = 0;
7728
7728
  let _ = h.exec(u.value);
7729
7729
  for (; _; ) {
7730
- const L = _.index, N = {
7730
+ const P = _.index, M = {
7731
7731
  index: _.index,
7732
7732
  input: _.input,
7733
7733
  stack: [...f, u]
7734
7734
  };
7735
- let b = p(..._, N);
7736
- if (typeof b == "string" && (b = b.length > 0 ? { type: "text", value: b } : void 0), b === !1 ? h.lastIndex = L + 1 : (g !== L && I.push({
7735
+ let b = p(..._, M);
7736
+ if (typeof b == "string" && (b = b.length > 0 ? { type: "text", value: b } : void 0), b === !1 ? h.lastIndex = P + 1 : (g !== P && A.push({
7737
7737
  type: "text",
7738
- value: u.value.slice(g, L)
7739
- }), Array.isArray(b) ? I.push(...b) : b && I.push(b), g = L + _[0].length, y = !0), !h.global)
7738
+ value: u.value.slice(g, P)
7739
+ }), Array.isArray(b) ? A.push(...b) : b && A.push(b), g = P + _[0].length, y = !0), !h.global)
7740
7740
  break;
7741
7741
  _ = h.exec(u.value);
7742
7742
  }
7743
- 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;
7743
+ 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;
7744
7744
  }
7745
7745
  }
7746
7746
  function Qu(e) {
@@ -7882,7 +7882,7 @@ function sc(e) {
7882
7882
  }
7883
7883
  function ki(e, n) {
7884
7884
  const t = e.input.charCodeAt(e.index - 1);
7885
- return (e.index === 0 || Oe(t) || At(t)) && // If it’s an email, the previous character should not be a slash.
7885
+ return (e.index === 0 || Oe(t) || It(t)) && // If it’s an email, the previous character should not be a slash.
7886
7886
  (!n || t !== 47);
7887
7887
  }
7888
7888
  xi.peek = yc;
@@ -8020,22 +8020,22 @@ function wi(e, n, t, r) {
8020
8020
  function Ec() {
8021
8021
  return "~";
8022
8022
  }
8023
- function Ic(e) {
8023
+ function Ac(e) {
8024
8024
  return e.length;
8025
8025
  }
8026
- function Ac(e, n) {
8027
- const t = n || {}, r = (t.align || []).concat(), i = t.stringLength || Ic, o = [], l = [], a = [], s = [];
8026
+ function Ic(e, n) {
8027
+ const t = n || {}, r = (t.align || []).concat(), i = t.stringLength || Ac, o = [], l = [], a = [], s = [];
8028
8028
  let u = 0, f = -1;
8029
8029
  for (; ++f < e.length; ) {
8030
8030
  const C = [], S = [];
8031
8031
  let y = -1;
8032
8032
  for (e[f].length > u && (u = e[f].length); ++y < e[f].length; ) {
8033
- const I = Tc(e[f][y]);
8033
+ const A = Tc(e[f][y]);
8034
8034
  if (t.alignDelimiters !== !1) {
8035
- const _ = i(I);
8035
+ const _ = i(A);
8036
8036
  S[y] = _, (s[y] === void 0 || _ > s[y]) && (s[y] = _);
8037
8037
  }
8038
- C.push(I);
8038
+ C.push(A);
8039
8039
  }
8040
8040
  l[f] = C, a[f] = S;
8041
8041
  }
@@ -8054,12 +8054,12 @@ function Ac(e, n) {
8054
8054
  const C = o[c];
8055
8055
  let S = "", y = "";
8056
8056
  C === 99 ? (S = ":", y = ":") : C === 108 ? S = ":" : C === 114 && (y = ":");
8057
- let I = t.alignDelimiters === !1 ? 1 : Math.max(
8057
+ let A = t.alignDelimiters === !1 ? 1 : Math.max(
8058
8058
  1,
8059
8059
  s[c] - S.length - y.length
8060
8060
  );
8061
- const _ = S + "-".repeat(I) + y;
8062
- t.alignDelimiters !== !1 && (I = S.length + I + y.length, I > s[c] && (s[c] = I), p[c] = I), h[c] = _;
8061
+ const _ = S + "-".repeat(A) + y;
8062
+ t.alignDelimiters !== !1 && (A = S.length + A + y.length, A > s[c] && (s[c] = A), p[c] = A), h[c] = _;
8063
8063
  }
8064
8064
  l.splice(1, 0, h), a.splice(1, 0, p), f = -1;
8065
8065
  const g = [];
@@ -8068,15 +8068,15 @@ function Ac(e, n) {
8068
8068
  c = -1;
8069
8069
  const y = [];
8070
8070
  for (; ++c < u; ) {
8071
- const I = C[c] || "";
8072
- let _ = "", L = "";
8071
+ const A = C[c] || "";
8072
+ let _ = "", P = "";
8073
8073
  if (t.alignDelimiters !== !1) {
8074
- const N = s[c] - (S[c] || 0), b = o[c];
8075
- b === 114 ? _ = " ".repeat(N) : b === 99 ? N % 2 ? (_ = " ".repeat(N / 2 + 0.5), L = " ".repeat(N / 2 - 0.5)) : (_ = " ".repeat(N / 2), L = _) : L = " ".repeat(N);
8074
+ const M = s[c] - (S[c] || 0), b = o[c];
8075
+ b === 114 ? _ = " ".repeat(M) : b === 99 ? M % 2 ? (_ = " ".repeat(M / 2 + 0.5), P = " ".repeat(M / 2 - 0.5)) : (_ = " ".repeat(M / 2), P = _) : P = " ".repeat(M);
8076
8076
  }
8077
8077
  t.delimiterStart !== !1 && !c && y.push("|"), t.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
8078
8078
  // empty: there will be a closing space.
8079
- !(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("|");
8079
+ !(t.alignDelimiters === !1 && A === "") && (t.delimiterStart !== !1 || c) && y.push(" "), t.alignDelimiters !== !1 && y.push(_), y.push(A), t.alignDelimiters !== !1 && y.push(P), t.padding !== !1 && y.push(" "), (t.delimiterEnd !== !1 || c !== u - 1) && y.push("|");
8080
8080
  }
8081
8081
  g.push(
8082
8082
  t.delimiterEnd === !1 ? y.join("").replace(/ +$/, "") : y.join("")
@@ -8235,7 +8235,7 @@ function jc(e) {
8235
8235
  function ut(e) {
8236
8236
  return "&#x" + e.toString(16).toUpperCase() + ";";
8237
8237
  }
8238
- function It(e, n, t) {
8238
+ function At(e, n, t) {
8239
8239
  const r = We(e), i = We(n);
8240
8240
  return r === void 0 ? i === void 0 ? (
8241
8241
  // Letter inside:
@@ -8278,13 +8278,13 @@ function Ci(e, n, t, r) {
8278
8278
  ...l.current()
8279
8279
  })
8280
8280
  );
8281
- const u = s.charCodeAt(0), f = It(
8281
+ const u = s.charCodeAt(0), f = At(
8282
8282
  r.before.charCodeAt(r.before.length - 1),
8283
8283
  u,
8284
8284
  i
8285
8285
  );
8286
8286
  f.inside && (s = ut(u) + s.slice(1));
8287
- const c = s.charCodeAt(s.length - 1), h = It(r.after.charCodeAt(0), c, i);
8287
+ const c = s.charCodeAt(s.length - 1), h = At(r.after.charCodeAt(0), c, i);
8288
8288
  h.inside && (s = s.slice(0, -1) + ut(c));
8289
8289
  const p = l.move(i);
8290
8290
  return o(), t.attentionEncodeSurroundingInfo = {
@@ -8410,7 +8410,7 @@ function Ei(e, n, t) {
8410
8410
  function Wc() {
8411
8411
  return "`";
8412
8412
  }
8413
- function Ii(e, n) {
8413
+ function Ai(e, n) {
8414
8414
  const t = yn(e);
8415
8415
  return !!(!n.options.resourceLink && // If there’s a url…
8416
8416
  e.url && // And there’s a no title…
@@ -8421,11 +8421,11 @@ function Ii(e, n) {
8421
8421
  // references don’t work), space, or angle brackets…
8422
8422
  !/[\0- <>\u007F]/.test(e.url));
8423
8423
  }
8424
- Ai.peek = Yc;
8425
- function Ai(e, n, t, r) {
8424
+ Ii.peek = Yc;
8425
+ function Ii(e, n, t, r) {
8426
8426
  const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.createTracker(r);
8427
8427
  let a, s;
8428
- if (Ii(e, t)) {
8428
+ if (Ai(e, t)) {
8429
8429
  const f = t.stack;
8430
8430
  t.stack = [], a = t.enter("autolink");
8431
8431
  let c = l.move("<");
@@ -8464,7 +8464,7 @@ function Ai(e, n, t, r) {
8464
8464
  ), u += l.move(i), s()), u += l.move(")"), a(), u;
8465
8465
  }
8466
8466
  function Yc(e, n, t) {
8467
- return Ii(e, t) ? "<" : "[";
8467
+ return Ai(e, t) ? "<" : "[";
8468
8468
  }
8469
8469
  Ti.peek = Qc;
8470
8470
  function Ti(e, n, t, r) {
@@ -8490,7 +8490,7 @@ function Ti(e, n, t, r) {
8490
8490
  function Qc() {
8491
8491
  return "[";
8492
8492
  }
8493
- function In(e) {
8493
+ function An(e) {
8494
8494
  const n = e.options.bullet || "*";
8495
8495
  if (n !== "*" && n !== "+" && n !== "-")
8496
8496
  throw new Error(
@@ -8499,7 +8499,7 @@ function In(e) {
8499
8499
  return n;
8500
8500
  }
8501
8501
  function Xc(e) {
8502
- const n = In(e), t = e.options.bulletOther;
8502
+ const n = An(e), t = e.options.bulletOther;
8503
8503
  if (!t)
8504
8504
  return n === "*" ? "-" : "*";
8505
8505
  if (t !== "*" && t !== "+" && t !== "-")
@@ -8530,7 +8530,7 @@ function zi(e) {
8530
8530
  }
8531
8531
  function Jc(e, n, t, r) {
8532
8532
  const i = t.enter("list"), o = t.bulletCurrent;
8533
- let l = e.ordered ? Gc(t) : In(t);
8533
+ let l = e.ordered ? Gc(t) : An(t);
8534
8534
  const a = e.ordered ? l === "." ? ")" : "." : Xc(t);
8535
8535
  let s = n && t.bulletLastUsed ? l === t.bulletLastUsed : !1;
8536
8536
  if (!e.ordered) {
@@ -8566,7 +8566,7 @@ function Kc(e) {
8566
8566
  }
8567
8567
  function Zc(e, n, t, r) {
8568
8568
  const i = Kc(t);
8569
- let o = t.bulletCurrent || In(t);
8569
+ let o = t.bulletCurrent || An(t);
8570
8570
  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);
8571
8571
  let l = o.length + 1;
8572
8572
  (i === "tab" || i === "mixed" && (n && n.type === "list" && n.spread || e.spread)) && (l = Math.ceil(l / 4) * 4);
@@ -8634,13 +8634,13 @@ function Pi(e, n, t, r) {
8634
8634
  ...l.current()
8635
8635
  })
8636
8636
  );
8637
- const u = s.charCodeAt(0), f = It(
8637
+ const u = s.charCodeAt(0), f = At(
8638
8638
  r.before.charCodeAt(r.before.length - 1),
8639
8639
  u,
8640
8640
  i
8641
8641
  );
8642
8642
  f.inside && (s = ut(u) + s.slice(1));
8643
- const c = s.charCodeAt(s.length - 1), h = It(r.after.charCodeAt(0), c, i);
8643
+ const c = s.charCodeAt(s.length - 1), h = At(r.after.charCodeAt(0), c, i);
8644
8644
  h.inside && (s = s.slice(0, -1) + ut(c));
8645
8645
  const p = l.move(i + i);
8646
8646
  return o(), t.attentionEncodeSurroundingInfo = {
@@ -8678,7 +8678,7 @@ const Li = {
8678
8678
  image: vi,
8679
8679
  imageReference: _i,
8680
8680
  inlineCode: Ei,
8681
- link: Ai,
8681
+ link: Ii,
8682
8682
  linkReference: Ti,
8683
8683
  list: Jc,
8684
8684
  listItem: Zc,
@@ -8772,20 +8772,20 @@ function mf(e) {
8772
8772
  return u(f(p, C, S), p.align);
8773
8773
  }
8774
8774
  function a(p, g, C, S) {
8775
- const y = c(p, C, S), I = u([y]);
8776
- return I.slice(0, I.indexOf(`
8775
+ const y = c(p, C, S), A = u([y]);
8776
+ return A.slice(0, A.indexOf(`
8777
8777
  `));
8778
8778
  }
8779
8779
  function s(p, g, C, S) {
8780
- const y = C.enter("tableCell"), I = C.enter("phrasing"), _ = C.containerPhrasing(p, {
8780
+ const y = C.enter("tableCell"), A = C.enter("phrasing"), _ = C.containerPhrasing(p, {
8781
8781
  ...S,
8782
8782
  before: o,
8783
8783
  after: o
8784
8784
  });
8785
- return I(), y(), _;
8785
+ return A(), y(), _;
8786
8786
  }
8787
8787
  function u(p, g) {
8788
- return Ac(p, {
8788
+ return Ic(p, {
8789
8789
  align: g,
8790
8790
  // @ts-expect-error: `markdown-table` types should support `null`.
8791
8791
  alignDelimiters: r,
@@ -8798,18 +8798,18 @@ function mf(e) {
8798
8798
  function f(p, g, C) {
8799
8799
  const S = p.children;
8800
8800
  let y = -1;
8801
- const I = [], _ = g.enter("table");
8801
+ const A = [], _ = g.enter("table");
8802
8802
  for (; ++y < S.length; )
8803
- I[y] = c(S[y], g, C);
8804
- return _(), I;
8803
+ A[y] = c(S[y], g, C);
8804
+ return _(), A;
8805
8805
  }
8806
8806
  function c(p, g, C) {
8807
8807
  const S = p.children;
8808
8808
  let y = -1;
8809
- const I = [], _ = g.enter("tableRow");
8809
+ const A = [], _ = g.enter("tableRow");
8810
8810
  for (; ++y < S.length; )
8811
- I[y] = s(S[y], p, g, C);
8812
- return _(), I;
8811
+ A[y] = s(S[y], p, g, C);
8812
+ return _(), A;
8813
8813
  }
8814
8814
  function h(p, g, C) {
8815
8815
  let S = Li.inlineCode(p, g, C);
@@ -8889,7 +8889,7 @@ function wf(e) {
8889
8889
  };
8890
8890
  }
8891
8891
  const Cf = {
8892
- tokenize: Af,
8892
+ tokenize: If,
8893
8893
  partial: !0
8894
8894
  }, Di = {
8895
8895
  tokenize: Tf,
@@ -8909,7 +8909,7 @@ const Cf = {
8909
8909
  previous: Oi
8910
8910
  }, Fi = {
8911
8911
  name: "protocolAutolink",
8912
- tokenize: If,
8912
+ tokenize: Af,
8913
8913
  previous: ji
8914
8914
  }, Ee = {
8915
8915
  name: "emailAutolink",
@@ -8921,9 +8921,9 @@ function vf() {
8921
8921
  text: we
8922
8922
  };
8923
8923
  }
8924
- let De = 48;
8925
- for (; De < 123; )
8926
- we[De] = Ee, De++, De === 58 ? De = 65 : De === 91 && (De = 97);
8924
+ let Ne = 48;
8925
+ for (; Ne < 123; )
8926
+ we[Ne] = Ee, Ne++, Ne === 58 ? Ne = 65 : Ne === 91 && (Ne = 97);
8927
8927
  we[43] = Ee;
8928
8928
  we[45] = Ee;
8929
8929
  we[46] = Ee;
@@ -8937,7 +8937,7 @@ function _f(e, n, t) {
8937
8937
  let i, o;
8938
8938
  return l;
8939
8939
  function l(c) {
8940
- return !an(c) || !Bi.call(r, r.previous) || An(r.events) ? t(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
8940
+ return !an(c) || !Bi.call(r, r.previous) || In(r.events) ? t(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
8941
8941
  }
8942
8942
  function a(c) {
8943
8943
  return an(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), s) : t(c);
@@ -8956,18 +8956,18 @@ function Ef(e, n, t) {
8956
8956
  const r = this;
8957
8957
  return i;
8958
8958
  function i(l) {
8959
- return l !== 87 && l !== 119 || !Oi.call(r, r.previous) || An(r.events) ? t(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Cf, e.attempt(Di, e.attempt(Ni, o), t), t)(l));
8959
+ return l !== 87 && l !== 119 || !Oi.call(r, r.previous) || In(r.events) ? t(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Cf, e.attempt(Di, e.attempt(Ni, o), t), t)(l));
8960
8960
  }
8961
8961
  function o(l) {
8962
8962
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), n(l);
8963
8963
  }
8964
8964
  }
8965
- function If(e, n, t) {
8965
+ function Af(e, n, t) {
8966
8966
  const r = this;
8967
8967
  let i = "", o = !1;
8968
8968
  return l;
8969
8969
  function l(c) {
8970
- return (c === 72 || c === 104) && ji.call(r, r.previous) && !An(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), a) : t(c);
8970
+ return (c === 72 || c === 104) && ji.call(r, r.previous) && !In(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), a) : t(c);
8971
8971
  }
8972
8972
  function a(c) {
8973
8973
  if (ae(c) && i.length < 5)
@@ -8983,13 +8983,13 @@ function If(e, n, t) {
8983
8983
  return c === 47 ? (e.consume(c), o ? u : (o = !0, s)) : t(c);
8984
8984
  }
8985
8985
  function u(c) {
8986
- return c === null || vt(c) || J(c) || Oe(c) || At(c) ? t(c) : e.attempt(Di, e.attempt(Ni, f), t)(c);
8986
+ return c === null || vt(c) || J(c) || Oe(c) || It(c) ? t(c) : e.attempt(Di, e.attempt(Ni, f), t)(c);
8987
8987
  }
8988
8988
  function f(c) {
8989
8989
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), n(c);
8990
8990
  }
8991
8991
  }
8992
- function Af(e, n, t) {
8992
+ function If(e, n, t) {
8993
8993
  let r = 0;
8994
8994
  return i;
8995
8995
  function i(l) {
@@ -9003,7 +9003,7 @@ function Tf(e, n, t) {
9003
9003
  let r, i, o;
9004
9004
  return l;
9005
9005
  function l(u) {
9006
- return u === 46 || u === 95 ? e.check(Mi, s, a)(u) : u === null || J(u) || Oe(u) || u !== 45 && At(u) ? s(u) : (o = !0, e.consume(u), l);
9006
+ return u === 46 || u === 95 ? e.check(Mi, s, a)(u) : u === null || J(u) || Oe(u) || u !== 45 && It(u) ? s(u) : (o = !0, e.consume(u), l);
9007
9007
  }
9008
9008
  function a(u) {
9009
9009
  return u === 95 ? r = !0 : (i = r, r = void 0), e.consume(u), l;
@@ -9062,7 +9062,7 @@ function Bi(e) {
9062
9062
  function an(e) {
9063
9063
  return e === 43 || e === 45 || e === 46 || e === 95 || ie(e);
9064
9064
  }
9065
- function An(e) {
9065
+ function In(e) {
9066
9066
  let n = e.length, t = !1;
9067
9067
  for (; n--; ) {
9068
9068
  const r = e[n][1];
@@ -9242,7 +9242,7 @@ function Of(e, n, t) {
9242
9242
  return g === 91 || g === 92 || g === 93 ? (e.consume(g), l++, f) : f(g);
9243
9243
  }
9244
9244
  function h(g) {
9245
- return g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), i.includes(o) || i.push(o), q(e, p, "gfmFootnoteDefinitionWhitespace")) : t(g);
9245
+ return g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), i.includes(o) || i.push(o), U(e, p, "gfmFootnoteDefinitionWhitespace")) : t(g);
9246
9246
  }
9247
9247
  function p(g) {
9248
9248
  return n(g);
@@ -9256,7 +9256,7 @@ function Bf(e) {
9256
9256
  }
9257
9257
  function $f(e, n, t) {
9258
9258
  const r = this;
9259
- return q(e, i, "gfmFootnoteDefinitionIndent", 5);
9259
+ return U(e, i, "gfmFootnoteDefinitionIndent", 5);
9260
9260
  function i(o) {
9261
9261
  const l = r.events[r.events.length - 1];
9262
9262
  return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? n(o) : t(o);
@@ -9429,13 +9429,13 @@ function Yf(e, n, t) {
9429
9429
  function a(k) {
9430
9430
  let T = r.events.length - 1;
9431
9431
  for (; T > -1; ) {
9432
- const P = r.events[T][1].type;
9433
- if (P === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
9434
- P === "linePrefix") T--;
9432
+ const L = r.events[T][1].type;
9433
+ if (L === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
9434
+ L === "linePrefix") T--;
9435
9435
  else break;
9436
9436
  }
9437
- const z = T > -1 ? r.events[T][1].type : null, U = z === "tableHead" || z === "tableRow" ? b : s;
9438
- return U === b && r.parser.lazy[r.now().line] ? t(k) : U(k);
9437
+ const z = T > -1 ? r.events[T][1].type : null, q = z === "tableHead" || z === "tableRow" ? b : s;
9438
+ return q === b && r.parser.lazy[r.now().line] ? t(k) : q(k);
9439
9439
  }
9440
9440
  function s(k) {
9441
9441
  return e.enter("tableHead"), e.enter("tableRow"), u(k);
@@ -9444,7 +9444,7 @@ function Yf(e, n, t) {
9444
9444
  return k === 124 || (l = !0, o += 1), f(k);
9445
9445
  }
9446
9446
  function f(k) {
9447
- 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) ? 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)));
9447
+ 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) ? U(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)));
9448
9448
  }
9449
9449
  function c(k) {
9450
9450
  return k === null || k === 124 || J(k) ? (e.exit("data"), f(k)) : (e.consume(k), k === 92 ? h : c);
@@ -9453,37 +9453,37 @@ function Yf(e, n, t) {
9453
9453
  return k === 92 || k === 124 ? (e.consume(k), c) : c(k);
9454
9454
  }
9455
9455
  function p(k) {
9456
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(k) : (e.enter("tableDelimiterRow"), l = !1, $(k) ? q(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : g(k));
9456
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(k) : (e.enter("tableDelimiterRow"), l = !1, $(k) ? U(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : g(k));
9457
9457
  }
9458
9458
  function g(k) {
9459
- return k === 45 || k === 58 ? S(k) : k === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), C) : N(k);
9459
+ return k === 45 || k === 58 ? S(k) : k === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), C) : M(k);
9460
9460
  }
9461
9461
  function C(k) {
9462
- return $(k) ? q(e, S, "whitespace")(k) : S(k);
9462
+ return $(k) ? U(e, S, "whitespace")(k) : S(k);
9463
9463
  }
9464
9464
  function S(k) {
9465
- 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);
9465
+ 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) ? P(k) : M(k);
9466
9466
  }
9467
9467
  function y(k) {
9468
- return k === 45 ? (e.enter("tableDelimiterFiller"), I(k)) : N(k);
9468
+ return k === 45 ? (e.enter("tableDelimiterFiller"), A(k)) : M(k);
9469
9469
  }
9470
- function I(k) {
9471
- 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));
9470
+ function A(k) {
9471
+ 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));
9472
9472
  }
9473
9473
  function _(k) {
9474
- return $(k) ? q(e, L, "whitespace")(k) : L(k);
9474
+ return $(k) ? U(e, P, "whitespace")(k) : P(k);
9475
9475
  }
9476
- function L(k) {
9477
- return k === 124 ? g(k) : k === null || D(k) ? !l || i !== o ? N(k) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(k)) : N(k);
9476
+ function P(k) {
9477
+ return k === 124 ? g(k) : k === null || D(k) ? !l || i !== o ? M(k) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(k)) : M(k);
9478
9478
  }
9479
- function N(k) {
9479
+ function M(k) {
9480
9480
  return t(k);
9481
9481
  }
9482
9482
  function b(k) {
9483
9483
  return e.enter("tableRow"), O(k);
9484
9484
  }
9485
9485
  function O(k) {
9486
- return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), O) : k === null || D(k) ? (e.exit("tableRow"), n(k)) : $(k) ? q(e, O, "whitespace")(k) : (e.enter("data"), H(k));
9486
+ return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), O) : k === null || D(k) ? (e.exit("tableRow"), n(k)) : $(k) ? U(e, O, "whitespace")(k) : (e.enter("data"), H(k));
9487
9487
  }
9488
9488
  function H(k) {
9489
9489
  return k === null || k === 124 || J(k) ? (e.exit("data"), O(k)) : (e.consume(k), k === 92 ? B : H);
@@ -9584,7 +9584,7 @@ function Jf(e, n, t) {
9584
9584
  }
9585
9585
  }
9586
9586
  function Kf(e, n, t) {
9587
- return q(e, r, "whitespace");
9587
+ return U(e, r, "whitespace");
9588
9588
  function r(i) {
9589
9589
  return i === null ? t(i) : n(i);
9590
9590
  }
@@ -9614,7 +9614,7 @@ const np = "_wrapper_v5oy7_1", rp = "_table_v5oy7_8", ip = "_th_v5oy7_14", lp =
9614
9614
  td: op
9615
9615
  };
9616
9616
  function ap({ part: e }) {
9617
- return /* @__PURE__ */ x("div", { className: nt.wrapper, "data-juneau": "table-part", children: /* @__PURE__ */ Y("table", { className: nt.table, children: [
9617
+ return /* @__PURE__ */ x("div", { className: nt.wrapper, "data-juneau": "table-part", children: /* @__PURE__ */ Q("table", { className: nt.table, children: [
9618
9618
  /* @__PURE__ */ x("thead", { children: /* @__PURE__ */ x("tr", { children: e.columns.map((n) => /* @__PURE__ */ x("th", { className: nt.th, children: n }, n)) }) }),
9619
9619
  /* @__PURE__ */ x("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ x("tr", { className: nt.tr, children: e.columns.map((r) => /* @__PURE__ */ x("td", { className: nt.td, children: String(n[r] ?? "") }, r)) }, t)) })
9620
9620
  ] }) });
@@ -9632,19 +9632,19 @@ const sp = "_card_83cdc_1", up = "_header_83cdc_9", cp = "_icon_83cdc_16", fp =
9632
9632
  cancel: yp
9633
9633
  };
9634
9634
  function kp({ part: e, onConfirm: n, onCancel: t }) {
9635
- const r = Te(), { proposal: i } = e, o = i.resolved === "confirmed" ? r.proposalConfirmed : i.resolved === "cancelled" ? r.proposalCancelled : i.resolved === "expired" ? r.proposalExpired : null;
9636
- return /* @__PURE__ */ Y(
9635
+ const r = ze(), { proposal: i } = e, o = i.resolved === "confirmed" ? r.proposalConfirmed : i.resolved === "cancelled" ? r.proposalCancelled : i.resolved === "expired" ? r.proposalExpired : null;
9636
+ return /* @__PURE__ */ Q(
9637
9637
  "div",
9638
9638
  {
9639
9639
  className: i.resolved ? `${ye.card} ${ye.cardResolved}` : ye.card,
9640
9640
  "data-juneau": "proposal-card",
9641
9641
  children: [
9642
- /* @__PURE__ */ Y("div", { className: ye.header, children: [
9642
+ /* @__PURE__ */ Q("div", { className: ye.header, children: [
9643
9643
  /* @__PURE__ */ x("svg", { className: ye.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ x("path", { d: "M10 1a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 1zM5.05 3.05a.75.75 0 011.06 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06zm9.9 0a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zM10 6a4 4 0 100 8 4 4 0 000-8zm-9 4a.75.75 0 01.75-.75h1.5a.75.75 0 010 1.5h-1.5A.75.75 0 011 10zm15.75-.75a.75.75 0 000 1.5h1.5a.75.75 0 000-1.5h-1.5zM4.11 14.89a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm11.84 1.06a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 101.06 1.06l1.06-1.06zM10 17.25a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75z" }) }),
9644
9644
  /* @__PURE__ */ x("span", { className: ye.title, children: i.title })
9645
9645
  ] }),
9646
9646
  i.description && /* @__PURE__ */ x("p", { className: ye.description, children: i.description }),
9647
- o ? /* @__PURE__ */ x("span", { className: ye.resolvedBadge, children: o }) : /* @__PURE__ */ Y("div", { className: ye.actions, children: [
9647
+ o ? /* @__PURE__ */ x("span", { className: ye.resolvedBadge, children: o }) : /* @__PURE__ */ Q("div", { className: ye.actions, children: [
9648
9648
  /* @__PURE__ */ x(
9649
9649
  "button",
9650
9650
  {
@@ -9674,19 +9674,19 @@ const xp = "_activity_2jjfs_1", bp = "_indicator_2jjfs_13", wp = "_content_2jjfs
9674
9674
  description: Sp
9675
9675
  };
9676
9676
  function vp({ part: e }) {
9677
- return /* @__PURE__ */ Y("div", { className: rt.activity, "data-status": e.status, "data-juneau": "activity-part", children: [
9677
+ return /* @__PURE__ */ Q("div", { className: rt.activity, "data-status": e.status, "data-juneau": "activity-part", children: [
9678
9678
  /* @__PURE__ */ x("span", { className: rt.indicator, "aria-hidden": "true" }),
9679
- /* @__PURE__ */ Y("div", { className: rt.content, children: [
9679
+ /* @__PURE__ */ Q("div", { className: rt.content, children: [
9680
9680
  /* @__PURE__ */ x("div", { className: rt.title, children: e.title }),
9681
9681
  e.description && /* @__PURE__ */ x("div", { className: rt.description, children: e.description })
9682
9682
  ] })
9683
9683
  ] });
9684
9684
  }
9685
- const _p = "_card_jwkcu_1", Ep = "_cardClickable_jwkcu_14", Ip = "_header_jwkcu_24", Ap = "_title_jwkcu_30", Tp = "_subtitle_jwkcu_36", zp = "_fields_jwkcu_41", Pp = "_fieldRow_jwkcu_48", Lp = "_fieldLabel_jwkcu_55", Dp = "_fieldValue_jwkcu_61", Np = "_badge_jwkcu_68", Mp = "_badgeSuccess_jwkcu_76", Rp = "_badgeWarning_jwkcu_81", Fp = "_badgeDanger_jwkcu_86", Op = "_badgeNeutral_jwkcu_91", oe = {
9685
+ const _p = "_card_jwkcu_1", Ep = "_cardClickable_jwkcu_14", Ap = "_header_jwkcu_24", Ip = "_title_jwkcu_30", Tp = "_subtitle_jwkcu_36", zp = "_fields_jwkcu_41", Pp = "_fieldRow_jwkcu_48", Lp = "_fieldLabel_jwkcu_55", Dp = "_fieldValue_jwkcu_61", Np = "_badge_jwkcu_68", Mp = "_badgeSuccess_jwkcu_76", Rp = "_badgeWarning_jwkcu_81", Fp = "_badgeDanger_jwkcu_86", Op = "_badgeNeutral_jwkcu_91", oe = {
9686
9686
  card: _p,
9687
9687
  cardClickable: Ep,
9688
- header: Ip,
9689
- title: Ap,
9688
+ header: Ap,
9689
+ title: Ip,
9690
9690
  subtitle: Tp,
9691
9691
  fields: zp,
9692
9692
  fieldRow: Pp,
@@ -9704,12 +9704,12 @@ const _p = "_card_jwkcu_1", Ep = "_cardClickable_jwkcu_14", Ip = "_header_jwkcu_
9704
9704
  neutral: oe.badgeNeutral
9705
9705
  };
9706
9706
  function $i({ part: e, onEntityClick: n }) {
9707
- const { entity: t, entityType: r } = e, i = n !== void 0, o = /* @__PURE__ */ Y(un, { children: [
9708
- /* @__PURE__ */ Y("div", { className: oe.header, children: [
9707
+ const { entity: t, entityType: r } = e, i = n !== void 0, o = /* @__PURE__ */ Q(un, { children: [
9708
+ /* @__PURE__ */ Q("div", { className: oe.header, children: [
9709
9709
  /* @__PURE__ */ x("span", { className: oe.title, children: t.title }),
9710
9710
  t.subtitle && /* @__PURE__ */ x("span", { className: oe.subtitle, children: t.subtitle })
9711
9711
  ] }),
9712
- t.fields && t.fields.length > 0 && /* @__PURE__ */ x("dl", { className: oe.fields, children: t.fields.map((l, a) => /* @__PURE__ */ Y("div", { className: oe.fieldRow, children: [
9712
+ t.fields && t.fields.length > 0 && /* @__PURE__ */ x("dl", { className: oe.fields, children: t.fields.map((l, a) => /* @__PURE__ */ Q("div", { className: oe.fieldRow, children: [
9713
9713
  /* @__PURE__ */ x("dt", { className: oe.fieldLabel, children: l.label }),
9714
9714
  /* @__PURE__ */ x("dd", { className: oe.fieldValue, children: l.badge ? /* @__PURE__ */ x("span", { className: `${oe.badge} ${jp[l.badge]}`, children: l.value }) : l.value })
9715
9715
  ] }, a)) })
@@ -9730,7 +9730,7 @@ const Bp = "_list_a2maw_1", $p = "_listTitle_a2maw_11", Er = {
9730
9730
  listTitle: $p
9731
9731
  };
9732
9732
  function Hp({ part: e, onEntityClick: n }) {
9733
- return /* @__PURE__ */ Y("div", { className: Er.list, "data-juneau": "entity-list-part", children: [
9733
+ return /* @__PURE__ */ Q("div", { className: Er.list, "data-juneau": "entity-list-part", children: [
9734
9734
  e.title && /* @__PURE__ */ x("span", { className: Er.listTitle, children: e.title }),
9735
9735
  e.entities.map((t, r) => /* @__PURE__ */ x(
9736
9736
  $i,
@@ -9775,12 +9775,12 @@ function Yp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
9775
9775
  case "entity-list":
9776
9776
  return /* @__PURE__ */ x(Hp, { part: e, onEntityClick: r });
9777
9777
  case "error":
9778
- return /* @__PURE__ */ Y("span", { className: xt.errorText, children: [
9778
+ return /* @__PURE__ */ Q("span", { className: xt.errorText, children: [
9779
9779
  /* @__PURE__ */ x(Tl, { className: xt.errorIcon }),
9780
9780
  e.message
9781
9781
  ] });
9782
9782
  default:
9783
- return globalThis.process?.env?.NODE_ENV !== "production" ? /* @__PURE__ */ Y("div", { className: xt.unknownPart, children: [
9783
+ return globalThis.process?.env?.NODE_ENV !== "production" ? /* @__PURE__ */ Q("div", { className: xt.unknownPart, children: [
9784
9784
  "Unhandled part type: ",
9785
9785
  /* @__PURE__ */ x("code", { children: e.type }),
9786
9786
  " — pass a",
@@ -9815,7 +9815,7 @@ function rh(e) {
9815
9815
  }), n;
9816
9816
  }
9817
9817
  function ih({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick: r, assistantIcon: i, renderPart: o }) {
9818
- const l = Te(), a = e.role === "user", s = (f, c) => /* @__PURE__ */ x(
9818
+ const l = ze(), a = e.role === "user", s = (f, c) => /* @__PURE__ */ x(
9819
9819
  Yp,
9820
9820
  {
9821
9821
  part: f,
@@ -9826,7 +9826,7 @@ function ih({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityCli
9826
9826
  },
9827
9827
  c
9828
9828
  ), u = e.parts.some(Hi);
9829
- return /* @__PURE__ */ Y(
9829
+ return /* @__PURE__ */ Q(
9830
9830
  "div",
9831
9831
  {
9832
9832
  className: `${xe.wrapper} ${a ? xe.user : xe.assistant}`,
@@ -9842,7 +9842,7 @@ function ih({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityCli
9842
9842
  children: f.parts.map(({ part: h, index: p }) => s(h, p))
9843
9843
  },
9844
9844
  c
9845
- )) }) : /* @__PURE__ */ Y("div", { className: xe.bubble, "data-juneau-segment": "bubble", children: [
9845
+ )) }) : /* @__PURE__ */ Q("div", { className: xe.bubble, "data-juneau-segment": "bubble", children: [
9846
9846
  e.parts.map((f, c) => s(f, c)),
9847
9847
  e.parts.length === 0 && /* @__PURE__ */ x("span", { className: xe.empty })
9848
9848
  ] }),
@@ -9857,8 +9857,8 @@ const lh = "_wrapper_1dvvu_1", oh = "_dot_1dvvu_8", ah = "_connectingLabel_1dvvu
9857
9857
  connectingLabel: ah
9858
9858
  };
9859
9859
  function sh({ connecting: e = !1 }) {
9860
- const n = Te();
9861
- return /* @__PURE__ */ Y(
9860
+ const n = ze();
9861
+ return /* @__PURE__ */ Q(
9862
9862
  "div",
9863
9863
  {
9864
9864
  className: it.wrapper,
@@ -9880,11 +9880,11 @@ const uh = "_list_1f8gn_1", ch = "_empty_1f8gn_11", fh = "_hint_1f8gn_24", ph =
9880
9880
  typing: ph
9881
9881
  };
9882
9882
  function hh({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r, onProposalCancel: i, onEntityClick: o, assistantIcon: l, renderPart: a, emptyState: s }) {
9883
- const u = Te(), f = Ue(null);
9883
+ const u = ze(), f = Ue(null);
9884
9884
  return St(() => {
9885
9885
  f.current?.scrollIntoView({ behavior: "smooth" });
9886
- }, [e, n]), /* @__PURE__ */ Y("div", { className: bt.list, "data-juneau": "message-list", children: [
9887
- e.length === 0 && (s ?? /* @__PURE__ */ Y("div", { className: bt.empty, "data-juneau": "empty-state", children: [
9886
+ }, [e, n]), /* @__PURE__ */ Q("div", { className: bt.list, "data-juneau": "message-list", children: [
9887
+ e.length === 0 && (s ?? /* @__PURE__ */ Q("div", { className: bt.empty, "data-juneau": "empty-state", children: [
9888
9888
  /* @__PURE__ */ x("p", { children: u.emptyStateText }),
9889
9889
  /* @__PURE__ */ x("p", { className: bt.hint, children: /* @__PURE__ */ x("em", { children: u.emptyStateHint }) })
9890
9890
  ] })),
@@ -9916,7 +9916,7 @@ const dh = "_wrapper_v8iyr_1", mh = "_textarea_v8iyr_11", gh = "_toolbar_v8iyr_3
9916
9916
  stopIcon: Ch
9917
9917
  };
9918
9918
  function Sh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeholder: o, actions: l, sendIcon: a }) {
9919
- const s = Te(), u = Ue(null), f = Ue(!1);
9919
+ const s = ze(), u = Ue(null), f = Ue(!1);
9920
9920
  St(() => {
9921
9921
  f.current && !i && u.current?.focus(), f.current = i;
9922
9922
  }, [i]);
@@ -9929,7 +9929,7 @@ function Sh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9929
9929
  ], h = l ?? c, p = (g) => {
9930
9930
  g.key === "Enter" && !g.shiftKey && (g.preventDefault(), i || t());
9931
9931
  };
9932
- return /* @__PURE__ */ Y("div", { className: ve.wrapper, "data-juneau": "input", children: [
9932
+ return /* @__PURE__ */ Q("div", { className: ve.wrapper, "data-juneau": "input", children: [
9933
9933
  /* @__PURE__ */ x(
9934
9934
  "textarea",
9935
9935
  {
@@ -9944,8 +9944,8 @@ function Sh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9944
9944
  "aria-label": s.sendMessage
9945
9945
  }
9946
9946
  ),
9947
- /* @__PURE__ */ Y("div", { className: ve.toolbar, children: [
9948
- h.length > 0 && /* @__PURE__ */ x("div", { className: ve.actions, children: h.map((g, C) => /* @__PURE__ */ Y(
9947
+ /* @__PURE__ */ Q("div", { className: ve.toolbar, children: [
9948
+ h.length > 0 && /* @__PURE__ */ x("div", { className: ve.actions, children: h.map((g, C) => /* @__PURE__ */ Q(
9949
9949
  "button",
9950
9950
  {
9951
9951
  className: ve.actionBtn,
@@ -9960,7 +9960,7 @@ function Sh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9960
9960
  },
9961
9961
  C
9962
9962
  )) }),
9963
- i && r ? /* @__PURE__ */ Y(
9963
+ i && r ? /* @__PURE__ */ Q(
9964
9964
  "button",
9965
9965
  {
9966
9966
  className: ve.stopBtn,
@@ -9972,7 +9972,7 @@ function Sh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9972
9972
  /* @__PURE__ */ x("span", { children: s.stopMessage })
9973
9973
  ]
9974
9974
  }
9975
- ) : /* @__PURE__ */ Y(
9975
+ ) : /* @__PURE__ */ Q(
9976
9976
  "button",
9977
9977
  {
9978
9978
  className: ve.sendBtn,
@@ -9989,15 +9989,15 @@ function Sh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9989
9989
  ] })
9990
9990
  ] });
9991
9991
  }
9992
- const vh = "_wrapper_1kefv_1", _h = "_icon_1kefv_14", Eh = "_message_1kefv_20", Ih = "_dismiss_1kefv_24", wt = {
9992
+ const vh = "_wrapper_1kefv_1", _h = "_icon_1kefv_14", Eh = "_message_1kefv_20", Ah = "_dismiss_1kefv_24", wt = {
9993
9993
  wrapper: vh,
9994
9994
  icon: _h,
9995
9995
  message: Eh,
9996
- dismiss: Ih
9996
+ dismiss: Ah
9997
9997
  };
9998
- function Ah({ message: e, onDismiss: n }) {
9999
- const t = Te();
10000
- return /* @__PURE__ */ Y("div", { className: wt.wrapper, role: "alert", "data-juneau": "error", children: [
9998
+ function Ih({ message: e, onDismiss: n }) {
9999
+ const t = ze();
10000
+ return /* @__PURE__ */ Q("div", { className: wt.wrapper, role: "alert", "data-juneau": "error", children: [
10001
10001
  /* @__PURE__ */ x("svg", { className: wt.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ x("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" }) }),
10002
10002
  /* @__PURE__ */ x("span", { className: wt.message, children: e }),
10003
10003
  n && /* @__PURE__ */ x("button", { className: wt.dismiss, onClick: n, "aria-label": t.errorDismiss, children: /* @__PURE__ */ x("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ x("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" }) }) })
@@ -10025,13 +10025,13 @@ function Ph({
10025
10025
  renderPart: C,
10026
10026
  emptyState: S,
10027
10027
  className: y,
10028
- style: I
10028
+ style: A
10029
10029
  }) {
10030
- return /* @__PURE__ */ Y(
10030
+ return /* @__PURE__ */ Q(
10031
10031
  "div",
10032
10032
  {
10033
10033
  className: [zh.chat, y].filter(Boolean).join(" "),
10034
- style: I,
10034
+ style: A,
10035
10035
  "data-juneau": "chat",
10036
10036
  children: [
10037
10037
  /* @__PURE__ */ x(
@@ -10048,7 +10048,7 @@ function Ph({
10048
10048
  emptyState: S
10049
10049
  }
10050
10050
  ),
10051
- i && /* @__PURE__ */ x(Ah, { message: i }),
10051
+ i && /* @__PURE__ */ x(Ih, { message: i }),
10052
10052
  /* @__PURE__ */ x(
10053
10053
  Sh,
10054
10054
  {
@@ -10066,60 +10066,63 @@ function Ph({
10066
10066
  }
10067
10067
  );
10068
10068
  }
10069
- const Lh = "_header_f9hy1_1", Dh = "_left_f9hy1_12", Nh = "_icon_f9hy1_18", Mh = "_title_f9hy1_23", Rh = "_resetBtn_f9hy1_29", Fh = "_actions_f9hy1_50", Ne = {
10069
+ const Lh = "_header_1ss3g_1", Dh = "_left_1ss3g_12", Nh = "_icon_1ss3g_18", Mh = "_title_1ss3g_23", Rh = "_resetBtn_1ss3g_29", Fh = "_actions_1ss3g_50", Oh = "_badge_1ss3g_57", Te = {
10070
10070
  header: Lh,
10071
10071
  left: Dh,
10072
10072
  icon: Nh,
10073
10073
  title: Mh,
10074
10074
  resetBtn: Rh,
10075
- actions: Fh
10075
+ actions: Fh,
10076
+ badge: Oh
10076
10077
  };
10077
- function Oh({
10078
+ function jh({
10078
10079
  title: e,
10079
10080
  onMinimize: n,
10080
10081
  isMinimized: t,
10081
10082
  icon: r,
10082
10083
  onReset: i,
10083
- headerActions: o
10084
+ badge: o,
10085
+ headerActions: l
10084
10086
  }) {
10085
- const l = Te();
10086
- return /* @__PURE__ */ Y("div", { className: Ne.header, "data-juneau": "header", children: [
10087
- /* @__PURE__ */ Y("div", { className: Ne.left, children: [
10088
- /* @__PURE__ */ x("span", { className: Ne.icon, "aria-hidden": "true", children: r ?? /* @__PURE__ */ x(Nr, {}) }),
10089
- /* @__PURE__ */ x("span", { className: Ne.title, children: e ?? l.sidebarTitle })
10087
+ const a = ze();
10088
+ return /* @__PURE__ */ Q("div", { className: Te.header, "data-juneau": "header", children: [
10089
+ /* @__PURE__ */ Q("div", { className: Te.left, children: [
10090
+ /* @__PURE__ */ x("span", { className: Te.icon, "aria-hidden": "true", children: r ?? /* @__PURE__ */ x(Nr, {}) }),
10091
+ /* @__PURE__ */ x("span", { className: Te.title, children: e ?? a.sidebarTitle }),
10092
+ o && /* @__PURE__ */ x("span", { className: Te.badge, "data-juneau": "header-badge", children: o })
10090
10093
  ] }),
10091
- (n || i || o) && /* @__PURE__ */ Y("div", { className: Ne.actions, children: [
10092
- o,
10094
+ (n || i || l) && /* @__PURE__ */ Q("div", { className: Te.actions, children: [
10095
+ l,
10093
10096
  i && /* @__PURE__ */ x(
10094
10097
  "button",
10095
10098
  {
10096
- className: Ne.resetBtn,
10099
+ className: Te.resetBtn,
10097
10100
  onClick: i,
10098
- title: l.resetConversation,
10099
- "aria-label": l.resetConversation,
10101
+ title: a.resetConversation,
10102
+ "aria-label": a.resetConversation,
10100
10103
  "data-juneau": "header-reset",
10101
- children: /* @__PURE__ */ x(Al, {})
10104
+ children: /* @__PURE__ */ x(Il, {})
10102
10105
  }
10103
10106
  ),
10104
10107
  n && /* @__PURE__ */ x(
10105
10108
  "button",
10106
10109
  {
10107
- className: Ne.resetBtn,
10110
+ className: Te.resetBtn,
10108
10111
  onClick: n,
10109
- title: t ? l.expandSidebar : l.minimizeSidebar,
10110
- "aria-label": t ? l.expandSidebar : l.minimizeSidebar,
10112
+ title: t ? a.expandSidebar : a.minimizeSidebar,
10113
+ "aria-label": t ? a.expandSidebar : a.minimizeSidebar,
10111
10114
  "data-juneau": "header-minimize",
10112
- children: t ? /* @__PURE__ */ x(Il, {}) : /* @__PURE__ */ x(El, {})
10115
+ children: t ? /* @__PURE__ */ x(Al, {}) : /* @__PURE__ */ x(El, {})
10113
10116
  }
10114
10117
  )
10115
10118
  ] })
10116
10119
  ] });
10117
10120
  }
10118
- const jh = "_sidebar_17ski_1", Bh = "_minimized_17ski_20", Ir = {
10119
- sidebar: jh,
10120
- minimized: Bh
10121
+ const Bh = "_sidebar_17ski_1", $h = "_minimized_17ski_20", Ar = {
10122
+ sidebar: Bh,
10123
+ minimized: $h
10121
10124
  };
10122
- function od({
10125
+ function ad({
10123
10126
  title: e,
10124
10127
  icon: n,
10125
10128
  assistantIcon: t,
@@ -10133,80 +10136,87 @@ function od({
10133
10136
  renderPart: f,
10134
10137
  onEntityClick: c,
10135
10138
  headerActions: h,
10136
- emptyState: p
10139
+ badge: p,
10140
+ minimized: g,
10141
+ onMinimizedChange: C,
10142
+ emptyState: S
10137
10143
  }) {
10138
- const [g, C] = Re(!1), {
10139
- messages: S,
10140
- input: y,
10141
- setInput: I,
10142
- sendMessage: _,
10143
- stop: L,
10144
- isLoading: N,
10145
- isConnecting: b,
10146
- error: O,
10147
- reset: H,
10148
- confirmProposal: B,
10149
- cancelProposal: k
10150
- } = xl(), T = s ? async () => {
10151
- u && !await u() || (H(), s());
10144
+ const [y, A] = Re(!1), _ = g !== void 0, P = _ ? g : y, M = () => {
10145
+ const W = !P;
10146
+ _ || A(W), C?.(W);
10147
+ }, {
10148
+ messages: b,
10149
+ input: O,
10150
+ setInput: H,
10151
+ sendMessage: B,
10152
+ stop: k,
10153
+ isLoading: T,
10154
+ isConnecting: z,
10155
+ error: q,
10156
+ reset: L,
10157
+ confirmProposal: v,
10158
+ cancelProposal: N
10159
+ } = xl(), j = s ? async () => {
10160
+ u && !await u() || (L(), s());
10152
10161
  } : void 0;
10153
- return /* @__PURE__ */ Y(
10162
+ return /* @__PURE__ */ Q(
10154
10163
  "aside",
10155
10164
  {
10156
- className: [Ir.sidebar, g ? Ir.minimized : "", l].filter(Boolean).join(" "),
10157
- style: { height: g ? void 0 : o, ...a },
10165
+ className: [Ar.sidebar, P ? Ar.minimized : "", l].filter(Boolean).join(" "),
10166
+ style: { height: P ? void 0 : o, ...a },
10158
10167
  "data-juneau": "sidebar",
10159
10168
  children: [
10160
10169
  /* @__PURE__ */ x(
10161
- Oh,
10170
+ jh,
10162
10171
  {
10163
10172
  title: e,
10164
10173
  icon: n,
10165
- onMinimize: () => C((z) => !z),
10166
- isMinimized: g,
10167
- onReset: T,
10174
+ onMinimize: M,
10175
+ isMinimized: P,
10176
+ onReset: j,
10177
+ badge: p,
10168
10178
  headerActions: h
10169
10179
  }
10170
10180
  ),
10171
- !g && /* @__PURE__ */ x(
10181
+ !P && /* @__PURE__ */ x(
10172
10182
  Ph,
10173
10183
  {
10174
- messages: S,
10175
- input: y,
10176
- isLoading: N,
10177
- isConnecting: b,
10178
- error: O,
10179
- onInputChange: I,
10180
- onSend: _,
10181
- onStop: L,
10182
- onProposalConfirm: B,
10183
- onProposalCancel: k,
10184
+ messages: b,
10185
+ input: O,
10186
+ isLoading: T,
10187
+ isConnecting: z,
10188
+ error: q,
10189
+ onInputChange: H,
10190
+ onSend: B,
10191
+ onStop: k,
10192
+ onProposalConfirm: v,
10193
+ onProposalCancel: N,
10184
10194
  assistantIcon: t ?? n,
10185
10195
  actions: r,
10186
10196
  sendIcon: i,
10187
10197
  renderPart: f,
10188
10198
  onEntityClick: c,
10189
- emptyState: p
10199
+ emptyState: S
10190
10200
  }
10191
10201
  )
10192
10202
  ]
10193
10203
  }
10194
10204
  );
10195
10205
  }
10196
- const $h = "_list_180ms_1", Hh = "_item_180ms_10", Vh = "_chat_180ms_16", qh = "_chatActive_180ms_36", Uh = "_title_180ms_40", Wh = "_date_180ms_50", Yh = "_empty_180ms_82", _e = {
10197
- list: $h,
10198
- item: Hh,
10199
- chat: Vh,
10200
- chatActive: qh,
10201
- title: Uh,
10202
- date: Wh,
10206
+ const Hh = "_list_180ms_1", Vh = "_item_180ms_10", qh = "_chat_180ms_16", Uh = "_chatActive_180ms_36", Wh = "_title_180ms_40", Yh = "_date_180ms_50", Qh = "_empty_180ms_82", _e = {
10207
+ list: Hh,
10208
+ item: Vh,
10209
+ chat: qh,
10210
+ chatActive: Uh,
10211
+ title: Wh,
10212
+ date: Yh,
10203
10213
  delete: "_delete_180ms_56",
10204
- empty: Yh
10214
+ empty: Qh
10205
10215
  };
10206
- function ad({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
10207
- const i = Te();
10208
- return e.length === 0 ? /* @__PURE__ */ x("p", { className: _e.empty, children: i.historyEmpty }) : /* @__PURE__ */ x("ul", { className: _e.list, "data-juneau": "history-list", children: e.map((o) => /* @__PURE__ */ Y("li", { className: _e.item, children: [
10209
- /* @__PURE__ */ Y(
10216
+ function sd({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
10217
+ const i = ze();
10218
+ return e.length === 0 ? /* @__PURE__ */ x("p", { className: _e.empty, children: i.historyEmpty }) : /* @__PURE__ */ x("ul", { className: _e.list, "data-juneau": "history-list", children: e.map((o) => /* @__PURE__ */ Q("li", { className: _e.item, children: [
10219
+ /* @__PURE__ */ Q(
10210
10220
  "button",
10211
10221
  {
10212
10222
  className: o.id === t ? `${_e.chat} ${_e.chatActive}` : _e.chat,
@@ -10232,38 +10242,38 @@ export {
10232
10242
  vp as AiActivityPart,
10233
10243
  Ph as AiChat,
10234
10244
  cn as AiChatContext,
10235
- Oh as AiChatHeader,
10236
- ad as AiChatHistoryList,
10237
- id as AiChatProvider,
10245
+ jh as AiChatHeader,
10246
+ sd as AiChatHistoryList,
10247
+ ld as AiChatProvider,
10238
10248
  $i as AiEntityCard,
10239
10249
  Hp as AiEntityListPart,
10240
- Ah as AiError,
10250
+ Ih as AiError,
10241
10251
  Sh as AiInput,
10242
10252
  ih as AiMessageBubble,
10243
10253
  hh as AiMessageList,
10244
10254
  Yp as AiMessagePartRenderer,
10245
10255
  kp as AiProposalCard,
10246
- od as AiSidebar,
10256
+ ad as AiSidebar,
10247
10257
  ap as AiTablePart,
10248
10258
  sh as AiTypingIndicator,
10249
- nd as JuneauProvider,
10259
+ rd as JuneauProvider,
10250
10260
  Nn as consumeStream,
10251
- td as createFetchStreamAdapter,
10252
- ed as createSseAdapter,
10261
+ nd as createFetchStreamAdapter,
10262
+ td as createSseAdapter,
10253
10263
  K as delay,
10254
- Jh as deserializeMessages,
10264
+ Kh as deserializeMessages,
10255
10265
  Zi as getMessageText,
10256
10266
  zr as isProposalPart,
10257
- ld as juneauCs,
10267
+ od as juneauCs,
10258
10268
  Lr as juneauEn,
10259
- Zh as mockAdapter,
10269
+ ed as mockAdapter,
10260
10270
  Pr as parseJuneauWire,
10261
- Gh as serializeForStorage,
10271
+ Jh as serializeForStorage,
10262
10272
  Ki as serializeMessages,
10263
- Kh as trimChats,
10273
+ Zh as trimChats,
10264
10274
  nl as trimHistory,
10265
10275
  ml as useAiChat,
10266
10276
  xl as useAiChatContext,
10267
- rd as useAiChatContextSafe
10277
+ id as useAiChatContextSafe
10268
10278
  };
10269
10279
  //# sourceMappingURL=index.js.map