juneau 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ async function Nn(e, n, t) {
11
11
  for await (const r of e)
12
12
  if (t?.aborted || (n(r), r.type === "done" || r.type === "error")) break;
13
13
  }
14
- function zr(e) {
14
+ function Pr(e) {
15
15
  return e.type === "proposal";
16
16
  }
17
17
  const Zi = 1;
@@ -24,7 +24,7 @@ function Uh(e) {
24
24
  }));
25
25
  }
26
26
  function el(e) {
27
- return zr(e) && !e.proposal.resolved ? { ...e, proposal: { ...e.proposal, resolved: "expired" } } : e;
27
+ return Pr(e) && !e.proposal.resolved ? { ...e, proposal: { ...e.proposal, resolved: "expired" } } : e;
28
28
  }
29
29
  function qh(e) {
30
30
  return e.map(({ v: n, ...t }) => ({
@@ -207,7 +207,7 @@ async function* ee(e, n) {
207
207
  for (let r = 0; r < e.length; r += 3)
208
208
  yield { type: "text", text: e.slice(r, r + 3) }, await K(n);
209
209
  }
210
- function Pr(e) {
210
+ function zr(e) {
211
211
  if (!e || e === "[DONE]") return [];
212
212
  let n;
213
213
  try {
@@ -307,7 +307,7 @@ async function* ul(e, n) {
307
307
  }
308
308
  const cl = (e) => {
309
309
  if (!e || e === "[DONE]") return [];
310
- const n = Pr(e);
310
+ const n = zr(e);
311
311
  if (n.length > 0) return n;
312
312
  try {
313
313
  const t = JSON.parse(e);
@@ -383,7 +383,7 @@ async function* fl(e, n) {
383
383
  yield { type: "done" };
384
384
  }
385
385
  const pl = (e) => {
386
- const n = Pr(e);
386
+ const n = zr(e);
387
387
  return n.length > 0 ? n : e ? [{ type: "text", text: e }] : [];
388
388
  };
389
389
  let hl = 0;
@@ -533,18 +533,18 @@ function dl({
533
533
  y.current?.abort(), h(!1), g(!1);
534
534
  }, []), T = de((v) => {
535
535
  y.current?.abort(), A.current = !0, s(v ?? []), f(""), S(null), h(!1), g(!1);
536
- }, []), z = de((v, M) => {
536
+ }, []), P = de((v, M) => {
537
537
  A.current = !0, s((B) => B.map((Y) => ({
538
538
  ...Y,
539
539
  parts: Y.parts.map(
540
- (W) => zr(W) && W.proposal.id === v ? { ...W, proposal: { ...W.proposal, resolved: M } } : W
540
+ (W) => Pr(W) && W.proposal.id === v ? { ...W, proposal: { ...W.proposal, resolved: M } } : W
541
541
  )
542
542
  })));
543
543
  }, []), q = de((v, M) => {
544
- z(v, "confirmed"), t?.(v, M);
545
- }, [t, z]), P = de((v) => {
546
- z(v, "cancelled"), r?.(v);
547
- }, [r, z]);
544
+ P(v, "confirmed"), t?.(v, M);
545
+ }, [t, P]), z = de((v) => {
546
+ P(v, "cancelled"), r?.(v);
547
+ }, [r, P]);
548
548
  return Ir(() => ({
549
549
  messages: a,
550
550
  input: u,
@@ -558,7 +558,7 @@ function dl({
558
558
  error: C,
559
559
  reset: T,
560
560
  confirmProposal: q,
561
- cancelProposal: P
561
+ cancelProposal: z
562
562
  }), [
563
563
  a,
564
564
  u,
@@ -571,7 +571,7 @@ function dl({
571
571
  C,
572
572
  T,
573
573
  q,
574
- P
574
+ z
575
575
  ]);
576
576
  }
577
577
  const Lr = {
@@ -605,7 +605,7 @@ const Lr = {
605
605
  function Ie() {
606
606
  return sn(Dr);
607
607
  }
608
- const ml = "_root_1etc2_1", gl = {
608
+ const ml = "_root_14q8g_1", gl = {
609
609
  root: ml
610
610
  };
611
611
  function Gh({ children: e, theme: n, labels: t, defaultTitle: r, className: i, style: o }) {
@@ -885,9 +885,9 @@ function Il(e, n) {
885
885
  (t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
886
886
  ).trim();
887
887
  }
888
- const Tl = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, zl = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pl = {};
888
+ const Tl = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pl = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, zl = {};
889
889
  function Fn(e, n) {
890
- return (Pl.jsx ? zl : Tl).test(e);
890
+ return (zl.jsx ? Pl : Tl).test(e);
891
891
  }
892
892
  const Ll = /[ \t\n\f\r]/g;
893
893
  function Dl(e) {
@@ -2089,30 +2089,30 @@ function ql() {
2089
2089
  if (!S) return [];
2090
2090
  y = y || {};
2091
2091
  var A = 1, _ = 1;
2092
- function L(P) {
2093
- var v = P.match(n);
2092
+ function L(z) {
2093
+ var v = z.match(n);
2094
2094
  v && (A += v.length);
2095
- var M = P.lastIndexOf(s);
2096
- _ = ~M ? P.length - M : _ + P.length;
2095
+ var M = z.lastIndexOf(s);
2096
+ _ = ~M ? z.length - M : _ + z.length;
2097
2097
  }
2098
2098
  function N() {
2099
- var P = { line: A, column: _ };
2099
+ var z = { line: A, column: _ };
2100
2100
  return function(v) {
2101
- return v.position = new x(P), H(), v;
2101
+ return v.position = new x(z), H(), v;
2102
2102
  };
2103
2103
  }
2104
- function x(P) {
2105
- this.start = P, this.end = { line: A, column: _ }, this.source = y.source;
2104
+ function x(z) {
2105
+ this.start = z, this.end = { line: A, column: _ }, this.source = y.source;
2106
2106
  }
2107
2107
  x.prototype.content = S;
2108
- function O(P) {
2108
+ function O(z) {
2109
2109
  var v = new Error(
2110
- y.source + ":" + A + ":" + _ + ": " + P
2110
+ y.source + ":" + A + ":" + _ + ": " + z
2111
2111
  );
2112
- if (v.reason = P, v.filename = y.source, v.line = A, v.column = _, v.source = S, !y.silent) throw v;
2112
+ if (v.reason = z, v.filename = y.source, v.line = A, v.column = _, v.source = S, !y.silent) throw v;
2113
2113
  }
2114
- function $(P) {
2115
- var v = P.exec(S);
2114
+ function $(z) {
2115
+ var v = z.exec(S);
2116
2116
  if (v) {
2117
2117
  var M = v[0];
2118
2118
  return L(M), S = S.slice(M.length), v;
@@ -2121,31 +2121,31 @@ function ql() {
2121
2121
  function H() {
2122
2122
  $(t);
2123
2123
  }
2124
- function k(P) {
2124
+ function k(z) {
2125
2125
  var v;
2126
- for (P = P || []; v = T(); )
2127
- v !== !1 && P.push(v);
2128
- return P;
2126
+ for (z = z || []; v = T(); )
2127
+ v !== !1 && z.push(v);
2128
+ return z;
2129
2129
  }
2130
2130
  function T() {
2131
- var P = N();
2131
+ var z = N();
2132
2132
  if (!(u != S.charAt(0) || f != S.charAt(1))) {
2133
2133
  for (var v = 2; c != S.charAt(v) && (f != S.charAt(v) || u != S.charAt(v + 1)); )
2134
2134
  ++v;
2135
2135
  if (v += 2, c === S.charAt(v - 1))
2136
2136
  return O("End of comment missing");
2137
2137
  var M = S.slice(2, v - 2);
2138
- return _ += 2, L(M), S = S.slice(v), _ += 2, P({
2138
+ return _ += 2, L(M), S = S.slice(v), _ += 2, z({
2139
2139
  type: h,
2140
2140
  comment: M
2141
2141
  });
2142
2142
  }
2143
2143
  }
2144
- function z() {
2145
- var P = N(), v = $(r);
2144
+ function P() {
2145
+ var z = N(), v = $(r);
2146
2146
  if (v) {
2147
2147
  if (T(), !$(i)) return O("property missing ':'");
2148
- var M = $(o), B = P({
2148
+ var M = $(o), B = z({
2149
2149
  type: p,
2150
2150
  property: C(v[0].replace(e, c)),
2151
2151
  value: M ? C(M[0].replace(e, c)) : c
@@ -2154,11 +2154,11 @@ function ql() {
2154
2154
  }
2155
2155
  }
2156
2156
  function q() {
2157
- var P = [];
2158
- k(P);
2159
- for (var v; v = z(); )
2160
- v !== !1 && (P.push(v), k(P));
2161
- return P;
2157
+ var z = [];
2158
+ k(z);
2159
+ for (var v; v = P(); )
2160
+ v !== !1 && (z.push(v), k(z));
2161
+ return z;
2162
2162
  }
2163
2163
  return H(), q();
2164
2164
  }
@@ -2831,7 +2831,7 @@ function Ao(e) {
2831
2831
  const Io = {
2832
2832
  tokenize: To
2833
2833
  }, Gn = {
2834
- tokenize: zo
2834
+ tokenize: Po
2835
2835
  };
2836
2836
  function To(e) {
2837
2837
  const n = this, t = [];
@@ -2945,7 +2945,7 @@ function To(e) {
2945
2945
  i.write([null]), o = void 0, i = void 0, n.containerState._closeFlow = void 0;
2946
2946
  }
2947
2947
  }
2948
- function zo(e, n, t) {
2948
+ function Po(e, n, t) {
2949
2949
  return U(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2950
2950
  }
2951
2951
  function We(e) {
@@ -2965,10 +2965,10 @@ function Tt(e, n, t) {
2965
2965
  }
2966
2966
  const tn = {
2967
2967
  name: "attention",
2968
- resolveAll: Po,
2968
+ resolveAll: zo,
2969
2969
  tokenize: Lo
2970
2970
  };
2971
- function Po(e, n) {
2971
+ function zo(e, n) {
2972
2972
  let t = -1, r, i, o, l, a, s, u, f;
2973
2973
  for (; ++t < e.length; )
2974
2974
  if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
@@ -3233,15 +3233,15 @@ function $o(e, n, t) {
3233
3233
  return x.enter("lineEnding"), x.consume(v), x.exit("lineEnding"), T;
3234
3234
  }
3235
3235
  function T(v) {
3236
- return x.enter("codeFencedFence"), j(v) ? U(x, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : z(v);
3236
+ return x.enter("codeFencedFence"), j(v) ? U(x, P, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : P(v);
3237
3237
  }
3238
- function z(v) {
3238
+ function P(v) {
3239
3239
  return v === a ? (x.enter("codeFencedFenceSequence"), q(v)) : $(v);
3240
3240
  }
3241
3241
  function q(v) {
3242
- return v === a ? (H++, x.consume(v), q) : H >= l ? (x.exit("codeFencedFenceSequence"), j(v) ? U(x, P, "whitespace")(v) : P(v)) : $(v);
3242
+ return v === a ? (H++, x.consume(v), q) : H >= l ? (x.exit("codeFencedFenceSequence"), j(v) ? U(x, z, "whitespace")(v) : z(v)) : $(v);
3243
3243
  }
3244
- function P(v) {
3244
+ function z(v) {
3245
3245
  return v === null || D(v) ? (x.exit("codeFencedFence"), O(v)) : $(v);
3246
3246
  }
3247
3247
  }
@@ -3904,20 +3904,20 @@ function ya(e, n, t) {
3904
3904
  }
3905
3905
  function g(m) {
3906
3906
  const ne = "CDATA[";
3907
- return m === ne.charCodeAt(a++) ? (e.consume(m), a === ne.length ? r.interrupt ? n : z : g) : t(m);
3907
+ return m === ne.charCodeAt(a++) ? (e.consume(m), a === ne.length ? r.interrupt ? n : P : g) : t(m);
3908
3908
  }
3909
3909
  function C(m) {
3910
3910
  return ae(m) ? (e.consume(m), l = String.fromCharCode(m), S) : t(m);
3911
3911
  }
3912
3912
  function S(m) {
3913
3913
  if (m === null || m === 47 || m === 62 || J(m)) {
3914
- const ne = m === 47, ze = l.toLowerCase();
3915
- return !ne && !o && er.includes(ze) ? (i = 1, r.interrupt ? n(m) : z(m)) : pa.includes(l.toLowerCase()) ? (i = 6, ne ? (e.consume(m), y) : r.interrupt ? n(m) : z(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ? A(m) : _(m));
3914
+ const ne = m === 47, Pe = l.toLowerCase();
3915
+ return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : P(m)) : pa.includes(l.toLowerCase()) ? (i = 6, ne ? (e.consume(m), y) : r.interrupt ? n(m) : P(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ? A(m) : _(m));
3916
3916
  }
3917
3917
  return m === 45 || ie(m) ? (e.consume(m), l += String.fromCharCode(m), S) : t(m);
3918
3918
  }
3919
3919
  function y(m) {
3920
- return m === 62 ? (e.consume(m), r.interrupt ? n : z) : t(m);
3920
+ return m === 62 ? (e.consume(m), r.interrupt ? n : P) : t(m);
3921
3921
  }
3922
3922
  function A(m) {
3923
3923
  return j(m) ? (e.consume(m), A) : k(m);
@@ -3947,38 +3947,38 @@ function ya(e, n, t) {
3947
3947
  return m === 62 ? (e.consume(m), T) : t(m);
3948
3948
  }
3949
3949
  function T(m) {
3950
- return m === null || D(m) ? z(m) : j(m) ? (e.consume(m), T) : t(m);
3950
+ return m === null || D(m) ? P(m) : j(m) ? (e.consume(m), T) : t(m);
3951
3951
  }
3952
- function z(m) {
3953
- return m === 45 && i === 2 ? (e.consume(m), M) : m === 60 && i === 1 ? (e.consume(m), B) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), W) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(da, te, q)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), q(m)) : (e.consume(m), z);
3952
+ function P(m) {
3953
+ return m === 45 && i === 2 ? (e.consume(m), M) : m === 60 && i === 1 ? (e.consume(m), B) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), W) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(da, te, q)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), q(m)) : (e.consume(m), P);
3954
3954
  }
3955
3955
  function q(m) {
3956
- return e.check(ma, P, te)(m);
3956
+ return e.check(ma, z, te)(m);
3957
3957
  }
3958
- function P(m) {
3958
+ function z(m) {
3959
3959
  return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), v;
3960
3960
  }
3961
3961
  function v(m) {
3962
- return m === null || D(m) ? q(m) : (e.enter("htmlFlowData"), z(m));
3962
+ return m === null || D(m) ? q(m) : (e.enter("htmlFlowData"), P(m));
3963
3963
  }
3964
3964
  function M(m) {
3965
- return m === 45 ? (e.consume(m), d) : z(m);
3965
+ return m === 45 ? (e.consume(m), d) : P(m);
3966
3966
  }
3967
3967
  function B(m) {
3968
- return m === 47 ? (e.consume(m), l = "", Y) : z(m);
3968
+ return m === 47 ? (e.consume(m), l = "", Y) : P(m);
3969
3969
  }
3970
3970
  function Y(m) {
3971
3971
  if (m === 62) {
3972
3972
  const ne = l.toLowerCase();
3973
- return er.includes(ne) ? (e.consume(m), se) : z(m);
3973
+ return er.includes(ne) ? (e.consume(m), se) : P(m);
3974
3974
  }
3975
- return ae(m) && l.length < 8 ? (e.consume(m), l += String.fromCharCode(m), Y) : z(m);
3975
+ return ae(m) && l.length < 8 ? (e.consume(m), l += String.fromCharCode(m), Y) : P(m);
3976
3976
  }
3977
3977
  function W(m) {
3978
- return m === 93 ? (e.consume(m), d) : z(m);
3978
+ return m === 93 ? (e.consume(m), d) : P(m);
3979
3979
  }
3980
3980
  function d(m) {
3981
- return m === 62 ? (e.consume(m), se) : m === 45 && i === 2 ? (e.consume(m), d) : z(m);
3981
+ return m === 62 ? (e.consume(m), se) : m === 45 && i === 2 ? (e.consume(m), d) : P(m);
3982
3982
  }
3983
3983
  function se(m) {
3984
3984
  return m === null || D(m) ? (e.exit("htmlFlowData"), te(m)) : (e.consume(m), se);
@@ -4073,16 +4073,16 @@ function wa(e, n, t) {
4073
4073
  return d === 45 || d === 46 || d === 58 || d === 95 || ie(d) ? (e.consume(d), k) : T(d);
4074
4074
  }
4075
4075
  function T(d) {
4076
- return d === 61 ? (e.consume(d), z) : D(d) ? (l = T, B(d)) : j(d) ? (e.consume(d), T) : H(d);
4076
+ return d === 61 ? (e.consume(d), P) : D(d) ? (l = T, B(d)) : j(d) ? (e.consume(d), T) : H(d);
4077
4077
  }
4078
- function z(d) {
4079
- return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, q) : D(d) ? (l = z, B(d)) : j(d) ? (e.consume(d), z) : (e.consume(d), P);
4078
+ function P(d) {
4079
+ return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, q) : D(d) ? (l = P, B(d)) : j(d) ? (e.consume(d), P) : (e.consume(d), z);
4080
4080
  }
4081
4081
  function q(d) {
4082
4082
  return d === i ? (e.consume(d), i = void 0, v) : d === null ? t(d) : D(d) ? (l = q, B(d)) : (e.consume(d), q);
4083
4083
  }
4084
- function P(d) {
4085
- return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ? H(d) : (e.consume(d), P);
4084
+ function z(d) {
4085
+ return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ? H(d) : (e.consume(d), z);
4086
4086
  }
4087
4087
  function v(d) {
4088
4088
  return d === 47 || d === 62 || J(d) ? H(d) : t(d);
@@ -4110,7 +4110,7 @@ const xn = {
4110
4110
  }, Sa = {
4111
4111
  tokenize: Ta
4112
4112
  }, va = {
4113
- tokenize: za
4113
+ tokenize: Pa
4114
4114
  };
4115
4115
  function _a(e) {
4116
4116
  let n = -1;
@@ -4232,7 +4232,7 @@ function Ta(e, n, t) {
4232
4232
  return t(a);
4233
4233
  }
4234
4234
  }
4235
- function za(e, n, t) {
4235
+ function Pa(e, n, t) {
4236
4236
  return r;
4237
4237
  function r(o) {
4238
4238
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
@@ -4241,7 +4241,7 @@ function za(e, n, t) {
4241
4241
  return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), n) : t(o);
4242
4242
  }
4243
4243
  }
4244
- const Pa = {
4244
+ const za = {
4245
4245
  name: "labelStartImage",
4246
4246
  resolveAll: xn.resolveAll,
4247
4247
  tokenize: La
@@ -4593,7 +4593,7 @@ const Ka = {
4593
4593
  [-5]: Ft,
4594
4594
  [-4]: Ft,
4595
4595
  [-3]: Ft,
4596
- 33: Pa,
4596
+ 33: za,
4597
4597
  38: ei,
4598
4598
  42: tn,
4599
4599
  60: [Do, ba],
@@ -4656,8 +4656,8 @@ function ss(e, n, t) {
4656
4656
  function c(T) {
4657
4657
  return l = me(l, T), S(), l[l.length - 1] !== null ? [] : ($(n, 0), u.events = Tt(o, u.events, u), u.events);
4658
4658
  }
4659
- function h(T, z) {
4660
- return cs(p(T), z);
4659
+ function h(T, P) {
4660
+ return cs(p(T), P);
4661
4661
  }
4662
4662
  function p(T) {
4663
4663
  return us(l, T);
@@ -4665,16 +4665,16 @@ function ss(e, n, t) {
4665
4665
  function g() {
4666
4666
  const {
4667
4667
  _bufferIndex: T,
4668
- _index: z,
4668
+ _index: P,
4669
4669
  line: q,
4670
- column: P,
4670
+ column: z,
4671
4671
  offset: v
4672
4672
  } = r;
4673
4673
  return {
4674
4674
  _bufferIndex: T,
4675
- _index: z,
4675
+ _index: P,
4676
4676
  line: q,
4677
- column: P,
4677
+ column: z,
4678
4678
  offset: v
4679
4679
  };
4680
4680
  }
@@ -4684,12 +4684,12 @@ function ss(e, n, t) {
4684
4684
  function S() {
4685
4685
  let T;
4686
4686
  for (; r._index < l.length; ) {
4687
- const z = l[r._index];
4688
- if (typeof z == "string")
4689
- for (T = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === T && r._bufferIndex < z.length; )
4690
- y(z.charCodeAt(r._bufferIndex));
4687
+ const P = l[r._index];
4688
+ if (typeof P == "string")
4689
+ for (T = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === T && r._bufferIndex < P.length; )
4690
+ y(P.charCodeAt(r._bufferIndex));
4691
4691
  else
4692
- y(z);
4692
+ y(P);
4693
4693
  }
4694
4694
  }
4695
4695
  function y(T) {
@@ -4701,34 +4701,34 @@ function ss(e, n, t) {
4701
4701
  /** @type {string} */
4702
4702
  l[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = T;
4703
4703
  }
4704
- function _(T, z) {
4705
- const q = z || {};
4704
+ function _(T, P) {
4705
+ const q = P || {};
4706
4706
  return q.type = T, q.start = g(), u.events.push(["enter", q, u]), a.push(q), q;
4707
4707
  }
4708
4708
  function L(T) {
4709
- const z = a.pop();
4710
- return z.end = g(), u.events.push(["exit", z, u]), z;
4709
+ const P = a.pop();
4710
+ return P.end = g(), u.events.push(["exit", P, u]), P;
4711
4711
  }
4712
- function N(T, z) {
4713
- $(T, z.from);
4712
+ function N(T, P) {
4713
+ $(T, P.from);
4714
4714
  }
4715
- function x(T, z) {
4716
- z.restore();
4715
+ function x(T, P) {
4716
+ P.restore();
4717
4717
  }
4718
- function O(T, z) {
4718
+ function O(T, P) {
4719
4719
  return q;
4720
- function q(P, v, M) {
4720
+ function q(z, v, M) {
4721
4721
  let B, Y, W, d;
4722
- return Array.isArray(P) ? (
4722
+ return Array.isArray(z) ? (
4723
4723
  /* c8 ignore next 1 */
4724
- te(P)
4725
- ) : "tokenize" in P ? (
4724
+ te(z)
4725
+ ) : "tokenize" in z ? (
4726
4726
  // Looks like a construct.
4727
4727
  te([
4728
4728
  /** @type {Construct} */
4729
- P
4729
+ z
4730
4730
  ])
4731
- ) : se(P);
4731
+ ) : se(z);
4732
4732
  function se(re) {
4733
4733
  return Xe;
4734
4734
  function Xe(Ee) {
@@ -4747,36 +4747,36 @@ function ss(e, n, t) {
4747
4747
  function m(re) {
4748
4748
  return Xe;
4749
4749
  function Xe(Ee) {
4750
- return d = H(), W = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? ze() : re.tokenize.call(
4750
+ return d = H(), W = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? Pe() : re.tokenize.call(
4751
4751
  // If we do have fields, create an object w/ `context` as its
4752
4752
  // prototype.
4753
4753
  // This allows a “live binding”, which is needed for `interrupt`.
4754
- z ? Object.assign(Object.create(u), z) : u,
4754
+ P ? Object.assign(Object.create(u), P) : u,
4755
4755
  s,
4756
4756
  ne,
4757
- ze
4757
+ Pe
4758
4758
  )(Ee);
4759
4759
  }
4760
4760
  }
4761
4761
  function ne(re) {
4762
4762
  return T(W, d), v;
4763
4763
  }
4764
- function ze(re) {
4764
+ function Pe(re) {
4765
4765
  return d.restore(), ++Y < B.length ? m(B[Y]) : M;
4766
4766
  }
4767
4767
  }
4768
4768
  }
4769
- function $(T, z) {
4770
- T.resolveAll && !o.includes(T) && o.push(T), T.resolve && he(u.events, z, u.events.length - z, T.resolve(u.events.slice(z), u)), T.resolveTo && (u.events = T.resolveTo(u.events, u));
4769
+ function $(T, P) {
4770
+ T.resolveAll && !o.includes(T) && o.push(T), T.resolve && he(u.events, P, u.events.length - P, T.resolve(u.events.slice(P), u)), T.resolveTo && (u.events = T.resolveTo(u.events, u));
4771
4771
  }
4772
4772
  function H() {
4773
- const T = g(), z = u.previous, q = u.currentConstruct, P = u.events.length, v = Array.from(a);
4773
+ const T = g(), P = u.previous, q = u.currentConstruct, z = u.events.length, v = Array.from(a);
4774
4774
  return {
4775
- from: P,
4775
+ from: z,
4776
4776
  restore: M
4777
4777
  };
4778
4778
  function M() {
4779
- r = T, u.previous = z, u.currentConstruct = q, u.events.length = P, a = v, k();
4779
+ r = T, u.previous = P, u.currentConstruct = q, u.events.length = z, a = v, k();
4780
4780
  }
4781
4781
  }
4782
4782
  function k() {
@@ -4942,11 +4942,11 @@ function ks(e) {
4942
4942
  definitionLabelString: l,
4943
4943
  definitionTitleString: l,
4944
4944
  emphasis: o(Ui),
4945
- hardBreakEscape: o(zn),
4946
- hardBreakTrailing: o(zn),
4947
- htmlFlow: o(Pn, l),
4945
+ hardBreakEscape: o(Pn),
4946
+ hardBreakTrailing: o(Pn),
4947
+ htmlFlow: o(zn, l),
4948
4948
  htmlFlowData: H,
4949
- htmlText: o(Pn, l),
4949
+ htmlText: o(zn, l),
4950
4950
  htmlTextData: H,
4951
4951
  image: o(qi),
4952
4952
  label: l,
@@ -4972,8 +4972,8 @@ function ks(e) {
4972
4972
  autolinkProtocol: Ee,
4973
4973
  blockQuote: s(),
4974
4974
  characterEscapeValue: k,
4975
- characterReferenceMarkerHexadecimal: ze,
4976
- characterReferenceMarkerNumeric: ze,
4975
+ characterReferenceMarkerHexadecimal: Pe,
4976
+ characterReferenceMarkerNumeric: Pe,
4977
4977
  characterReferenceValue: re,
4978
4978
  characterReference: Xe,
4979
4979
  codeFenced: s(S),
@@ -4990,11 +4990,11 @@ function ks(e) {
4990
4990
  definitionLabelString: A,
4991
4991
  definitionTitleString: _,
4992
4992
  emphasis: s(),
4993
- hardBreakEscape: s(z),
4994
- hardBreakTrailing: s(z),
4993
+ hardBreakEscape: s(P),
4994
+ hardBreakTrailing: s(P),
4995
4995
  htmlFlow: s(q),
4996
4996
  htmlFlowData: k,
4997
- htmlText: s(P),
4997
+ htmlText: s(z),
4998
4998
  htmlTextData: k,
4999
4999
  image: s(B),
5000
5000
  label: W,
@@ -5069,7 +5069,7 @@ function ks(e) {
5069
5069
  return I;
5070
5070
  }
5071
5071
  function i(w, I, F) {
5072
- let V = I - 1, X = -1, ge = !1, Pe, we, Ge, Je;
5072
+ let V = I - 1, X = -1, ge = !1, ze, we, Ge, Je;
5073
5073
  for (; ++V <= F; ) {
5074
5074
  const fe = w[V];
5075
5075
  switch (fe[1].type) {
@@ -5080,7 +5080,7 @@ function ks(e) {
5080
5080
  break;
5081
5081
  }
5082
5082
  case "lineEndingBlank": {
5083
- fe[0] === "enter" && (Pe && !Je && !X && !Ge && (Ge = V), Je = void 0);
5083
+ fe[0] === "enter" && (ze && !Je && !X && !Ge && (Ge = V), Je = void 0);
5084
5084
  break;
5085
5085
  }
5086
5086
  case "linePrefix":
@@ -5093,7 +5093,7 @@ function ks(e) {
5093
5093
  Je = void 0;
5094
5094
  }
5095
5095
  if (!X && fe[0] === "enter" && fe[1].type === "listItemPrefix" || X === -1 && fe[0] === "exit" && (fe[1].type === "listUnordered" || fe[1].type === "listOrdered")) {
5096
- if (Pe) {
5096
+ if (ze) {
5097
5097
  let He = V;
5098
5098
  for (we = void 0; He--; ) {
5099
5099
  const Ce = w[He];
@@ -5102,7 +5102,7 @@ function ks(e) {
5102
5102
  we && (w[we][1].type = "lineEndingBlank", ge = !0), Ce[1].type = "lineEnding", we = He;
5103
5103
  } else if (!(Ce[1].type === "linePrefix" || Ce[1].type === "blockQuotePrefix" || Ce[1].type === "blockQuotePrefixWhitespace" || Ce[1].type === "blockQuoteMarker" || Ce[1].type === "listItemIndent")) break;
5104
5104
  }
5105
- Ge && (!we || Ge < we) && (Pe._spread = !0), Pe.end = Object.assign({}, we ? w[we][1].start : fe[1].end), w.splice(we || V, 0, ["exit", Pe, fe[2]]), V++, F++;
5105
+ Ge && (!we || Ge < we) && (ze._spread = !0), ze.end = Object.assign({}, we ? w[we][1].start : fe[1].end), w.splice(we || V, 0, ["exit", ze, fe[2]]), V++, F++;
5106
5106
  }
5107
5107
  if (fe[1].type === "listItemPrefix") {
5108
5108
  const He = {
@@ -5112,7 +5112,7 @@ function ks(e) {
5112
5112
  // @ts-expect-error: we’ll add `end` in a second.
5113
5113
  end: void 0
5114
5114
  };
5115
- Pe = He, w.splice(V, 0, ["enter", He, fe[2]]), V++, F++, Ge = void 0, Je = !0;
5115
+ ze = He, w.splice(V, 0, ["enter", He, fe[2]]), V++, F++, Ge = void 0, Je = !0;
5116
5116
  }
5117
5117
  }
5118
5118
  }
@@ -5235,14 +5235,14 @@ function ks(e) {
5235
5235
  }
5236
5236
  !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(I.type) && (H.call(this, w), k.call(this, w));
5237
5237
  }
5238
- function z() {
5238
+ function P() {
5239
5239
  this.data.atHardBreak = !0;
5240
5240
  }
5241
5241
  function q() {
5242
5242
  const w = this.resume(), I = this.stack[this.stack.length - 1];
5243
5243
  I.value = w;
5244
5244
  }
5245
- function P() {
5245
+ function z() {
5246
5246
  const w = this.resume(), I = this.stack[this.stack.length - 1];
5247
5247
  I.value = w;
5248
5248
  }
@@ -5298,7 +5298,7 @@ function ks(e) {
5298
5298
  const I = this.resume(), F = this.stack[this.stack.length - 1];
5299
5299
  F.label = I, F.identifier = ke(this.sliceSerialize(w)).toLowerCase(), this.data.referenceType = "full";
5300
5300
  }
5301
- function ze(w) {
5301
+ function Pe(w) {
5302
5302
  this.data.characterReferenceType = w.type;
5303
5303
  }
5304
5304
  function re(w) {
@@ -5365,12 +5365,12 @@ function ks(e) {
5365
5365
  children: []
5366
5366
  };
5367
5367
  }
5368
- function zn() {
5368
+ function Pn() {
5369
5369
  return {
5370
5370
  type: "break"
5371
5371
  };
5372
5372
  }
5373
- function Pn() {
5373
+ function zn() {
5374
5374
  return {
5375
5375
  type: "html",
5376
5376
  value: ""
@@ -5599,13 +5599,13 @@ function Ts(e, n) {
5599
5599
  const o = { type: "element", tagName: "img", properties: i, children: [] };
5600
5600
  return e.patch(n, o), e.applyData(n, o);
5601
5601
  }
5602
- function zs(e, n) {
5602
+ function Ps(e, n) {
5603
5603
  const t = { src: Ye(n.url) };
5604
5604
  n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
5605
5605
  const r = { type: "element", tagName: "img", properties: t, children: [] };
5606
5606
  return e.patch(n, r), e.applyData(n, r);
5607
5607
  }
5608
- function Ps(e, n) {
5608
+ function zs(e, n) {
5609
5609
  const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
5610
5610
  e.patch(n, t);
5611
5611
  const r = {
@@ -5825,8 +5825,8 @@ const Ws = {
5825
5825
  heading: As,
5826
5826
  html: Is,
5827
5827
  imageReference: Ts,
5828
- image: zs,
5829
- inlineCode: Ps,
5828
+ image: Ps,
5829
+ inlineCode: zs,
5830
5830
  linkReference: Ls,
5831
5831
  link: Ds,
5832
5832
  listItem: Ns,
@@ -5847,7 +5847,7 @@ const Ws = {
5847
5847
  };
5848
5848
  function mt() {
5849
5849
  }
5850
- const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, hi = 8, di = typeof self == "object" ? self : globalThis, ar = (e, n) => {
5850
+ const fi = -1, Pt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, hi = 8, di = typeof self == "object" ? self : globalThis, ar = (e, n) => {
5851
5851
  switch (e) {
5852
5852
  case "Function":
5853
5853
  case "SharedWorker":
@@ -5864,7 +5864,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5864
5864
  return e.get(i);
5865
5865
  const [o, l] = n[i];
5866
5866
  switch (o) {
5867
- case zt:
5867
+ case Pt:
5868
5868
  case fi:
5869
5869
  return t(l, i);
5870
5870
  case at: {
@@ -5921,7 +5921,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5921
5921
  }, sr = (e) => Qs(/* @__PURE__ */ new Map(), e)(0), Me = "", { toString: Ys } = {}, { keys: Xs } = Object, tt = (e) => {
5922
5922
  const n = typeof e;
5923
5923
  if (n !== "object" || !e)
5924
- return [zt, n];
5924
+ return [Pt, n];
5925
5925
  const t = Ys.call(e).slice(8, -1);
5926
5926
  switch (t) {
5927
5927
  case "Array":
@@ -5940,7 +5940,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5940
5940
  return [at, t];
5941
5941
  }
5942
5942
  return t.includes("Array") ? [at, t] : e instanceof Error ? [pi, e.name || "Error"] : [_t, t];
5943
- }, gt = ([e, n]) => e === zt && (n === "function" || n === "symbol"), Gs = (e, n, t, r) => {
5943
+ }, gt = ([e, n]) => e === Pt && (n === "function" || n === "symbol"), Gs = (e, n, t, r) => {
5944
5944
  const i = (l, a) => {
5945
5945
  const s = r.push(l) - 1;
5946
5946
  return t.set(a, s), s;
@@ -5949,7 +5949,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
5949
5949
  return t.get(l);
5950
5950
  let [a, s] = tt(l);
5951
5951
  switch (a) {
5952
- case zt: {
5952
+ case Pt: {
5953
5953
  let f = l;
5954
5954
  switch (s) {
5955
5955
  case "bigint":
@@ -6106,7 +6106,7 @@ function Zs(e) {
6106
6106
  ]
6107
6107
  };
6108
6108
  }
6109
- const Pt = (
6109
+ const zt = (
6110
6110
  // Note: overloads in JSDoc can’t yet use different `@template`s.
6111
6111
  /**
6112
6112
  * @type {(
@@ -6144,7 +6144,7 @@ function eu(e) {
6144
6144
  const n = [];
6145
6145
  let t = -1;
6146
6146
  for (; ++t < e.length; )
6147
- n[t] = Pt(e[t]);
6147
+ n[t] = zt(e[t]);
6148
6148
  return Lt(r);
6149
6149
  function r(...i) {
6150
6150
  let o = -1;
@@ -6198,7 +6198,7 @@ const mi = [], lu = !0, nn = !1, ou = "skip";
6198
6198
  function gi(e, n, t, r) {
6199
6199
  let i;
6200
6200
  typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
6201
- const o = Pt(i), l = r ? -1 : 1;
6201
+ const o = zt(i), l = r ? -1 : 1;
6202
6202
  a(e, void 0, [])();
6203
6203
  function a(s, u, f) {
6204
6204
  const c = (
@@ -7024,7 +7024,7 @@ function dr(e, n) {
7024
7024
  function Tu(e) {
7025
7025
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
7026
7026
  }
7027
- const zu = (
7027
+ const Pu = (
7028
7028
  /**
7029
7029
  * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
7030
7030
  */
@@ -7045,8 +7045,8 @@ const zu = (
7045
7045
  };
7046
7046
  return Object.setPrototypeOf(o, r), o;
7047
7047
  })
7048
- ), Pu = {}.hasOwnProperty;
7049
- class _n extends zu {
7048
+ ), zu = {}.hasOwnProperty;
7049
+ class _n extends Pu {
7050
7050
  /**
7051
7051
  * Create a processor.
7052
7052
  */
@@ -7136,7 +7136,7 @@ class _n extends zu {
7136
7136
  * the entire dataset when getting without key.
7137
7137
  */
7138
7138
  data(n, t) {
7139
- return typeof n == "string" ? arguments.length === 2 ? (qt("data", this.frozen), this.namespace[n] = t, this) : Pu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (qt("data", this.frozen), this.namespace = n, this) : this.namespace;
7139
+ return typeof n == "string" ? arguments.length === 2 ? (qt("data", this.frozen), this.namespace[n] = t, this) : zu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (qt("data", this.frozen), this.namespace = n, this) : this.namespace;
7140
7140
  }
7141
7141
  /**
7142
7142
  * Freeze a processor.
@@ -7665,7 +7665,7 @@ function Uu(e) {
7665
7665
  return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
7666
7666
  }
7667
7667
  function qu(e, n, t) {
7668
- const i = Pt((t || {}).ignore || []), o = Wu(n);
7668
+ const i = zt((t || {}).ignore || []), o = Wu(n);
7669
7669
  let l = -1;
7670
7670
  for (; ++l < o.length; )
7671
7671
  gi(e, "text", a);
@@ -8069,7 +8069,7 @@ function Ic(e, n, t, r) {
8069
8069
  function Tc(e, n, t) {
8070
8070
  return ">" + (t ? "" : " ") + e;
8071
8071
  }
8072
- function zc(e, n) {
8072
+ function Pc(e, n) {
8073
8073
  return wr(e, n.inConstruct, !0) && !wr(e, n.notInConstruct, !1);
8074
8074
  }
8075
8075
  function wr(e, n, t) {
@@ -8085,12 +8085,12 @@ function Cr(e, n, t, r) {
8085
8085
  let i = -1;
8086
8086
  for (; ++i < t.unsafe.length; )
8087
8087
  if (t.unsafe[i].character === `
8088
- ` && zc(t.stack, t.unsafe[i]))
8088
+ ` && Pc(t.stack, t.unsafe[i]))
8089
8089
  return /[ \t]/.test(r.before) ? "" : " ";
8090
8090
  return `\\
8091
8091
  `;
8092
8092
  }
8093
- function Pc(e, n) {
8093
+ function zc(e, n) {
8094
8094
  const t = String(e);
8095
8095
  let r = t.indexOf(n), i = r, o = 0, l = 0;
8096
8096
  if (typeof n != "string")
@@ -8119,7 +8119,7 @@ function Nc(e, n, t, r) {
8119
8119
  const c = t.enter("codeIndented"), h = t.indentLines(o, Mc);
8120
8120
  return c(), h;
8121
8121
  }
8122
- const a = t.createTracker(r), s = i.repeat(Math.max(Pc(o, i) + 1, 3)), u = t.enter("codeFenced");
8122
+ const a = t.createTracker(r), s = i.repeat(Math.max(zc(o, i) + 1, 3)), u = t.enter("codeFenced");
8123
8123
  let f = a.move(s);
8124
8124
  if (e.lang) {
8125
8125
  const c = t.enter(`codeFencedLang${l}`);
@@ -8485,7 +8485,7 @@ function Yc(e) {
8485
8485
  );
8486
8486
  return n;
8487
8487
  }
8488
- function zi(e) {
8488
+ function Pi(e) {
8489
8489
  const n = e.options.rule || "*";
8490
8490
  if (n !== "*" && n !== "-" && n !== "_")
8491
8491
  throw new Error(
@@ -8505,7 +8505,7 @@ function Xc(e, n, t, r) {
8505
8505
  (l === "*" || l === "-") && // Empty first list item:
8506
8506
  f && (!f.children || !f.children[0]) && // Directly in two other list items:
8507
8507
  t.stack[t.stack.length - 1] === "list" && t.stack[t.stack.length - 2] === "listItem" && t.stack[t.stack.length - 3] === "list" && t.stack[t.stack.length - 4] === "listItem" && // That are each the first child.
8508
- t.indexStack[t.indexStack.length - 1] === 0 && t.indexStack[t.indexStack.length - 2] === 0 && t.indexStack[t.indexStack.length - 3] === 0 && (s = !0), zi(t) === l && f
8508
+ t.indexStack[t.indexStack.length - 1] === 0 && t.indexStack[t.indexStack.length - 2] === 0 && t.indexStack[t.indexStack.length - 3] === 0 && (s = !0), Pi(t) === l && f
8509
8509
  ) {
8510
8510
  let c = -1;
8511
8511
  for (; ++c < e.children.length; ) {
@@ -8552,7 +8552,7 @@ function Kc(e, n, t, r) {
8552
8552
  }
8553
8553
  const Zc = (
8554
8554
  /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
8555
- Pt([
8555
+ zt([
8556
8556
  "break",
8557
8557
  "delete",
8558
8558
  "emphasis",
@@ -8589,8 +8589,8 @@ function tf(e) {
8589
8589
  );
8590
8590
  return n;
8591
8591
  }
8592
- Pi.peek = nf;
8593
- function Pi(e, n, t, r) {
8592
+ zi.peek = nf;
8593
+ function zi(e, n, t, r) {
8594
8594
  const i = tf(t), o = t.enter("strong"), l = t.createTracker(r), a = l.move(i + i);
8595
8595
  let s = l.move(
8596
8596
  t.containerPhrasing(e, {
@@ -8628,7 +8628,7 @@ function lf(e) {
8628
8628
  return n;
8629
8629
  }
8630
8630
  function of(e, n, t) {
8631
- const r = (zi(t) + (t.options.ruleSpaces ? " " : "")).repeat(lf(t));
8631
+ const r = (Pi(t) + (t.options.ruleSpaces ? " " : "")).repeat(lf(t));
8632
8632
  return t.options.ruleSpaces ? r.slice(0, -1) : r;
8633
8633
  }
8634
8634
  const Li = {
@@ -8649,7 +8649,7 @@ const Li = {
8649
8649
  listItem: Jc,
8650
8650
  paragraph: Kc,
8651
8651
  root: ef,
8652
- strong: Pi,
8652
+ strong: zi,
8653
8653
  text: rf,
8654
8654
  thematicBreak: of
8655
8655
  };
@@ -8866,7 +8866,7 @@ const bf = {
8866
8866
  tokenize: Tf,
8867
8867
  partial: !0
8868
8868
  }, wf = {
8869
- tokenize: zf,
8869
+ tokenize: Pf,
8870
8870
  partial: !0
8871
8871
  }, Ri = {
8872
8872
  name: "wwwAutolink",
@@ -9006,7 +9006,7 @@ function Tf(e, n, t) {
9006
9006
  return a === 59 ? (e.consume(a), r) : ae(a) ? (e.consume(a), l) : t(a);
9007
9007
  }
9008
9008
  }
9009
- function zf(e, n, t) {
9009
+ function Pf(e, n, t) {
9010
9010
  return r;
9011
9011
  function r(o) {
9012
9012
  return e.consume(o), i;
@@ -9042,7 +9042,7 @@ function In(e) {
9042
9042
  }
9043
9043
  return e.length > 0 && !t && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), t;
9044
9044
  }
9045
- const Pf = {
9045
+ const zf = {
9046
9046
  tokenize: Bf,
9047
9047
  partial: !0
9048
9048
  };
@@ -9214,7 +9214,7 @@ function Rf(e, n, t) {
9214
9214
  }
9215
9215
  }
9216
9216
  function Ff(e, n, t) {
9217
- return e.check(ft, n, e.attempt(Pf, n, t));
9217
+ return e.check(ft, n, e.attempt(zf, n, t));
9218
9218
  }
9219
9219
  function Of(e) {
9220
9220
  e.exit("gfmFootnoteDefinition");
@@ -9394,12 +9394,12 @@ function qf(e, n, t) {
9394
9394
  function a(k) {
9395
9395
  let T = r.events.length - 1;
9396
9396
  for (; T > -1; ) {
9397
- const P = r.events[T][1].type;
9398
- if (P === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
9399
- P === "linePrefix") T--;
9397
+ const z = r.events[T][1].type;
9398
+ if (z === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
9399
+ z === "linePrefix") T--;
9400
9400
  else break;
9401
9401
  }
9402
- const z = T > -1 ? r.events[T][1].type : null, q = z === "tableHead" || z === "tableRow" ? x : s;
9402
+ const P = T > -1 ? r.events[T][1].type : null, q = P === "tableHead" || P === "tableRow" ? x : s;
9403
9403
  return q === x && r.parser.lazy[r.now().line] ? t(k) : q(k);
9404
9404
  }
9405
9405
  function s(k) {
@@ -9571,7 +9571,7 @@ function Zf(e) {
9571
9571
  ), t = e || Kf, r = n.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
9572
9572
  i.push(Jf(t)), o.push(kf()), l.push(xf(t));
9573
9573
  }
9574
- const ep = "_wrapper_izvjy_1", tp = "_table_izvjy_15", np = "_th_izvjy_27", rp = "_tr_izvjy_47", ip = "_td_izvjy_63", nt = {
9574
+ const ep = "_wrapper_v5oy7_1", tp = "_table_v5oy7_8", np = "_th_v5oy7_14", rp = "_tr_v5oy7_24", ip = "_td_v5oy7_32", nt = {
9575
9575
  wrapper: ep,
9576
9576
  table: tp,
9577
9577
  th: np,
@@ -9584,7 +9584,7 @@ function lp({ part: e }) {
9584
9584
  /* @__PURE__ */ b("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ b("tr", { className: nt.tr, children: e.columns.map((r) => /* @__PURE__ */ b("td", { className: nt.td, children: String(n[r] ?? "") }, r)) }, t)) })
9585
9585
  ] }) });
9586
9586
  }
9587
- const op = "_card_1gzm6_1", ap = "_header_1gzm6_17", sp = "_icon_1gzm6_31", up = "_title_1gzm6_45", cp = "_description_1gzm6_57", fp = "_cardResolved_1gzm6_71", pp = "_resolvedBadge_1gzm6_79", hp = "_actions_1gzm6_101", dp = "_confirm_1gzm6_111", mp = "_cancel_1gzm6_143", ye = {
9587
+ const op = "_card_83cdc_1", ap = "_header_83cdc_9", sp = "_icon_83cdc_16", up = "_title_83cdc_23", cp = "_description_83cdc_29", fp = "_cardResolved_83cdc_36", pp = "_resolvedBadge_83cdc_40", hp = "_actions_83cdc_51", dp = "_confirm_83cdc_56", mp = "_cancel_83cdc_72", ye = {
9588
9588
  card: op,
9589
9589
  header: ap,
9590
9590
  icon: sp,
@@ -9624,7 +9624,7 @@ function gp({ part: e, onConfirm: n, onCancel: t }) {
9624
9624
  ] })
9625
9625
  ] });
9626
9626
  }
9627
- const yp = "_activity_1661l_1", kp = "_indicator_1661l_25", xp = "_content_1661l_71", bp = "_title_1661l_79", wp = "_description_1661l_89", rt = {
9627
+ const yp = "_activity_2jjfs_1", kp = "_indicator_2jjfs_13", xp = "_content_2jjfs_36", bp = "_title_2jjfs_40", wp = "_description_2jjfs_45", rt = {
9628
9628
  activity: yp,
9629
9629
  indicator: kp,
9630
9630
  content: xp,
@@ -9640,7 +9640,7 @@ function Cp({ part: e }) {
9640
9640
  ] })
9641
9641
  ] });
9642
9642
  }
9643
- const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_24", Ep = "_title_jwkcu_30", Ap = "_subtitle_jwkcu_36", Ip = "_fields_jwkcu_41", Tp = "_fieldRow_jwkcu_48", zp = "_fieldLabel_jwkcu_55", Pp = "_fieldValue_jwkcu_61", Lp = "_badge_jwkcu_68", Dp = "_badgeSuccess_jwkcu_76", Np = "_badgeWarning_jwkcu_81", Mp = "_badgeDanger_jwkcu_86", Rp = "_badgeNeutral_jwkcu_91", oe = {
9643
+ const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_24", Ep = "_title_jwkcu_30", Ap = "_subtitle_jwkcu_36", Ip = "_fields_jwkcu_41", Tp = "_fieldRow_jwkcu_48", Pp = "_fieldLabel_jwkcu_55", zp = "_fieldValue_jwkcu_61", Lp = "_badge_jwkcu_68", Dp = "_badgeSuccess_jwkcu_76", Np = "_badgeWarning_jwkcu_81", Mp = "_badgeDanger_jwkcu_86", Rp = "_badgeNeutral_jwkcu_91", oe = {
9644
9644
  card: Sp,
9645
9645
  cardClickable: vp,
9646
9646
  header: _p,
@@ -9648,8 +9648,8 @@ const Sp = "_card_jwkcu_1", vp = "_cardClickable_jwkcu_14", _p = "_header_jwkcu_
9648
9648
  subtitle: Ap,
9649
9649
  fields: Ip,
9650
9650
  fieldRow: Tp,
9651
- fieldLabel: zp,
9652
- fieldValue: Pp,
9651
+ fieldLabel: Pp,
9652
+ fieldValue: zp,
9653
9653
  badge: Lp,
9654
9654
  badgeSuccess: Dp,
9655
9655
  badgeWarning: Np,
@@ -9699,7 +9699,7 @@ function jp({ part: e, onEntityClick: n }) {
9699
9699
  ))
9700
9700
  ] });
9701
9701
  }
9702
- const $p = "_markdown_sznoh_1", Hp = "_unknownPart_sznoh_167", Vp = "_errorText_sznoh_195", Up = "_errorIcon_sznoh_211", xt = {
9702
+ const $p = "_markdown_1yi3y_1", Hp = "_unknownPart_1yi3y_84", Vp = "_errorText_1yi3y_98", Up = "_errorIcon_1yi3y_106", xt = {
9703
9703
  markdown: $p,
9704
9704
  unknownPart: Hp,
9705
9705
  errorText: Vp,
@@ -9747,7 +9747,7 @@ function qp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
9747
9747
  ] }) : null;
9748
9748
  }
9749
9749
  }
9750
- const Wp = "_wrapper_1jkxo_1", Qp = "_user_1jkxo_15", Yp = "_assistant_1jkxo_23", Xp = "_avatar_1jkxo_31", Gp = "_bubble_1jkxo_77", Jp = "_empty_1jkxo_121", De = {
9750
+ const Wp = "_wrapper_13l1e_1", Qp = "_user_13l1e_8", Yp = "_assistant_13l1e_12", Xp = "_avatar_13l1e_16", Gp = "_bubble_13l1e_39", Jp = "_empty_13l1e_61", De = {
9751
9751
  wrapper: Wp,
9752
9752
  user: Qp,
9753
9753
  assistant: Yp,
@@ -9776,7 +9776,7 @@ function Kp({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityCli
9776
9776
  a && /* @__PURE__ */ b("div", { className: De.avatar, children: l.userLabel })
9777
9777
  ] });
9778
9778
  }
9779
- const Zp = "_wrapper_1oco7_1", eh = "_dot_1oco7_15", th = "_connectingLabel_1oco7_37", it = {
9779
+ const Zp = "_wrapper_1dvvu_1", eh = "_dot_1dvvu_8", th = "_connectingLabel_1dvvu_19", it = {
9780
9780
  wrapper: Zp,
9781
9781
  dot: eh,
9782
9782
  connectingLabel: th
@@ -9797,7 +9797,7 @@ function nh({ connecting: e = !1 }) {
9797
9797
  }
9798
9798
  );
9799
9799
  }
9800
- const rh = "_list_ixto8_1", ih = "_empty_ixto8_21", lh = "_hint_ixto8_47", oh = "_typing_ixto8_61", bt = {
9800
+ const rh = "_list_1f8gn_1", ih = "_empty_1f8gn_11", lh = "_hint_1f8gn_24", oh = "_typing_1f8gn_31", bt = {
9801
9801
  list: rh,
9802
9802
  empty: ih,
9803
9803
  hint: lh,
@@ -9828,7 +9828,7 @@ function ah({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r,
9828
9828
  /* @__PURE__ */ b("div", { ref: u })
9829
9829
  ] });
9830
9830
  }
9831
- const sh = "_wrapper_ehrkb_1", uh = "_textarea_ehrkb_21", ch = "_toolbar_ehrkb_69", fh = "_actions_ehrkb_89", ph = "_actionBtn_ehrkb_103", hh = "_sendBtn_ehrkb_169", dh = "_spinnerIcon_ehrkb_231", mh = "_stopBtn_ehrkb_251", gh = "_stopIcon_ehrkb_297", Se = {
9831
+ const sh = "_wrapper_v8iyr_1", uh = "_textarea_v8iyr_11", ch = "_toolbar_v8iyr_35", fh = "_actions_v8iyr_45", ph = "_actionBtn_v8iyr_52", hh = "_sendBtn_v8iyr_85", dh = "_spinnerIcon_v8iyr_116", mh = "_stopBtn_v8iyr_126", gh = "_stopIcon_v8iyr_149", Se = {
9832
9832
  wrapper: sh,
9833
9833
  textarea: uh,
9834
9834
  toolbar: ch,
@@ -9912,7 +9912,7 @@ function yh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9912
9912
  ] })
9913
9913
  ] });
9914
9914
  }
9915
- const kh = "_wrapper_1e3w5_1", xh = "_icon_1e3w5_27", bh = "_message_1e3w5_39", wh = "_dismiss_1e3w5_47", wt = {
9915
+ const kh = "_wrapper_1kefv_1", xh = "_icon_1kefv_14", bh = "_message_1kefv_20", wh = "_dismiss_1kefv_24", wt = {
9916
9916
  wrapper: kh,
9917
9917
  icon: xh,
9918
9918
  message: bh,
@@ -9926,7 +9926,7 @@ function Ch({ message: e, onDismiss: n }) {
9926
9926
  n && /* @__PURE__ */ b("button", { className: wt.dismiss, onClick: n, "aria-label": t.errorDismiss, children: /* @__PURE__ */ b("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ b("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) }) })
9927
9927
  ] });
9928
9928
  }
9929
- const Sh = "_chat_13051_1", vh = {
9929
+ const Sh = "_chat_1acbe_1", vh = {
9930
9930
  chat: Sh
9931
9931
  };
9932
9932
  function _h({
@@ -9986,13 +9986,13 @@ function _h({
9986
9986
  }
9987
9987
  );
9988
9988
  }
9989
- const Eh = "_header_1saak_1", Ah = "_left_1saak_23", Ih = "_icon_1saak_35", Th = "_title_1saak_45", zh = "_resetBtn_1saak_57", Ph = "_actions_1saak_99", Ne = {
9989
+ const Eh = "_header_f9hy1_1", Ah = "_left_f9hy1_12", Ih = "_icon_f9hy1_18", Th = "_title_f9hy1_23", Ph = "_resetBtn_f9hy1_29", zh = "_actions_f9hy1_50", Ne = {
9990
9990
  header: Eh,
9991
9991
  left: Ah,
9992
9992
  icon: Ih,
9993
9993
  title: Th,
9994
- resetBtn: zh,
9995
- actions: Ph
9994
+ resetBtn: Ph,
9995
+ actions: zh
9996
9996
  };
9997
9997
  function Lh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
9998
9998
  const o = Ie();
@@ -10025,7 +10025,7 @@ function Lh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
10025
10025
  ] })
10026
10026
  ] });
10027
10027
  }
10028
- const Dh = "_sidebar_u9ybt_1", Nh = "_minimized_u9ybt_39", Ar = {
10028
+ const Dh = "_sidebar_17ski_1", Nh = "_minimized_17ski_20", Ar = {
10029
10029
  sidebar: Dh,
10030
10030
  minimized: Nh
10031
10031
  };
@@ -10096,14 +10096,14 @@ function ed({
10096
10096
  }
10097
10097
  );
10098
10098
  }
10099
- const Mh = "_list_j7fvh_1", Rh = "_item_j7fvh_19", Fh = "_chat_j7fvh_31", Oh = "_chatActive_j7fvh_71", Bh = "_title_j7fvh_79", jh = "_date_j7fvh_99", $h = "_empty_j7fvh_163", ve = {
10099
+ const Mh = "_list_180ms_1", Rh = "_item_180ms_10", Fh = "_chat_180ms_16", Oh = "_chatActive_180ms_36", Bh = "_title_180ms_40", jh = "_date_180ms_50", $h = "_empty_180ms_82", ve = {
10100
10100
  list: Mh,
10101
10101
  item: Rh,
10102
10102
  chat: Fh,
10103
10103
  chatActive: Oh,
10104
10104
  title: Bh,
10105
10105
  date: jh,
10106
- delete: "_delete_j7fvh_111",
10106
+ delete: "_delete_180ms_56",
10107
10107
  empty: $h
10108
10108
  };
10109
10109
  function td({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
@@ -10155,11 +10155,11 @@ export {
10155
10155
  K as delay,
10156
10156
  qh as deserializeMessages,
10157
10157
  Ki as getMessageText,
10158
- zr as isProposalPart,
10158
+ Pr as isProposalPart,
10159
10159
  Zh as juneauCs,
10160
10160
  Lr as juneauEn,
10161
10161
  Qh as mockAdapter,
10162
- Pr as parseJuneauWire,
10162
+ zr as parseJuneauWire,
10163
10163
  Uh as serializeForStorage,
10164
10164
  Ji as serializeMessages,
10165
10165
  Wh as trimChats,