juneau 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useState as Le, useRef as xr, useCallback as he, useContext as br, createContext as wr, useEffect as ji } from "react";
2
- import { jsx as v, jsxs as Y, Fragment as Hi } from "react/jsx-runtime";
2
+ import { jsx as v, jsxs as X, Fragment as Hi } from "react/jsx-runtime";
3
3
  const J = (e) => new Promise((n) => setTimeout(n, e));
4
4
  function th(e) {
5
5
  return e.parts.filter((n) => n.type === "text").map((n) => n.text).join("");
@@ -11,7 +11,7 @@ async function _n(e, n, t) {
11
11
  const nh = {
12
12
  async *sendMessage(e) {
13
13
  const t = [...e.messages].reverse().find((i) => i.role === "user")?.parts.find((i) => i.type === "text"), r = t?.type === "text" ? t.text.toLowerCase() : "";
14
- r.includes("activity") || r.includes("progress") || r.includes("document") || r.includes("dokument") ? yield* $i() : r.includes("table") || r.includes("data") || r.includes("list") || r.includes("show") ? yield* qi() : r.includes("proposal") || r.includes("suggest") || r.includes("recommend") ? yield* Ui() : r.includes("help") || r.includes("what can") || r.includes("how do") ? yield* Vi() : r.includes("error") || r.includes("fail") || r.includes("break") ? yield* Wi() : yield* Qi(r);
14
+ r.includes("activity") || r.includes("progress") || r.includes("document") || r.includes("dokument") ? yield* $i() : r.includes("table") || r.includes("data") || r.includes("list") || r.includes("show") ? yield* qi() : r.includes("proposal") || r.includes("suggest") || r.includes("recommend") ? yield* Vi() : r.includes("help") || r.includes("what can") || r.includes("how do") ? yield* Ui() : r.includes("error") || r.includes("fail") || r.includes("break") ? yield* Wi() : yield* Qi(r);
15
15
  }
16
16
  };
17
17
  async function* $i() {
@@ -73,7 +73,7 @@ async function* qi() {
73
73
  }, await J(300), yield* Z(`
74
74
  Total across all entries: **7,900** — Type A accounts for the largest share at 53%.`, 25), yield { type: "done" };
75
75
  }
76
- async function* Ui() {
76
+ async function* Vi() {
77
77
  yield* Z(`Based on the current data, I have a suggestion for you:
78
78
 
79
79
  `, 30), await J(500), yield {
@@ -91,7 +91,7 @@ async function* Ui() {
91
91
  }
92
92
  }, yield { type: "done" };
93
93
  }
94
- async function* Vi() {
94
+ async function* Ui() {
95
95
  yield* Z(`I'm a general-purpose AI assistant. Here's what I can help with:
96
96
 
97
97
  `, 30), await J(200), yield* Z(`- **Summarise data** — ask me to show, list, or summarise information
@@ -124,29 +124,31 @@ function rh(e, n = {}) {
124
124
  headers: r = {},
125
125
  getHeaders: i,
126
126
  getBody: o,
127
- parseEvent: l = Xi
127
+ parseEvent: l = Xi,
128
+ credentials: a
128
129
  } = n;
129
130
  return {
130
- async *sendMessage(a) {
131
- const s = i ? await i(a) : {}, u = o ? o(a) : { messages: a.messages, context: a.context }, f = await fetch(e, {
131
+ async *sendMessage(s) {
132
+ const u = i ? await i(s) : {}, f = o ? o(s) : { messages: s.messages, context: s.context }, c = await fetch(e, {
132
133
  method: t,
134
+ credentials: a,
133
135
  headers: {
134
136
  "Content-Type": "application/json",
135
137
  ...r,
136
- ...s
138
+ ...u
137
139
  },
138
- body: JSON.stringify(u)
140
+ body: JSON.stringify(f)
139
141
  });
140
- if (!f.ok) {
141
- const c = await f.text().catch(() => `HTTP ${f.status}`);
142
- yield { type: "error", message: `Request failed (${f.status}): ${c}` };
142
+ if (!c.ok) {
143
+ const h = await c.text().catch(() => `HTTP ${c.status}`);
144
+ yield { type: "error", message: `Request failed (${c.status}): ${h}` };
143
145
  return;
144
146
  }
145
- if (!f.body) {
147
+ if (!c.body) {
146
148
  yield { type: "error", message: "Response body is empty — server may not support streaming." };
147
149
  return;
148
150
  }
149
- yield* Yi(f.body, l);
151
+ yield* Yi(c.body, l);
150
152
  }
151
153
  };
152
154
  }
@@ -197,29 +199,31 @@ function ih(e, n = {}) {
197
199
  headers: r = {},
198
200
  getHeaders: i,
199
201
  getBody: o,
200
- parseChunk: l = Ji
202
+ parseChunk: l = Ji,
203
+ credentials: a
201
204
  } = n;
202
205
  return {
203
- async *sendMessage(a) {
204
- const s = i ? await i(a) : {}, u = o ? o(a) : { messages: a.messages, context: a.context }, f = await fetch(e, {
206
+ async *sendMessage(s) {
207
+ const u = i ? await i(s) : {}, f = o ? o(s) : { messages: s.messages, context: s.context }, c = await fetch(e, {
205
208
  method: t,
209
+ credentials: a,
206
210
  headers: {
207
211
  "Content-Type": "application/json",
208
212
  ...r,
209
- ...s
213
+ ...u
210
214
  },
211
- body: JSON.stringify(u)
215
+ body: JSON.stringify(f)
212
216
  });
213
- if (!f.ok) {
214
- const c = await f.text().catch(() => `HTTP ${f.status}`);
215
- yield { type: "error", message: `Request failed (${f.status}): ${c}` };
217
+ if (!c.ok) {
218
+ const h = await c.text().catch(() => `HTTP ${c.status}`);
219
+ yield { type: "error", message: `Request failed (${c.status}): ${h}` };
216
220
  return;
217
221
  }
218
- if (!f.body) {
222
+ if (!c.body) {
219
223
  yield { type: "error", message: "Response body is empty — server may not support streaming." };
220
224
  return;
221
225
  }
222
- yield* Gi(f.body, l);
226
+ yield* Gi(c.body, l);
223
227
  }
224
228
  };
225
229
  }
@@ -270,67 +274,74 @@ function Zi({
270
274
  }) {
271
275
  const [i, o] = Le([]), [l, a] = Le(""), [s, u] = Le(!1), [f, c] = Le(!1), [h, p] = Le(null), g = xr(null), x = he((L) => {
272
276
  o((y) => {
273
- const T = y[y.length - 1];
274
- if (!T || T.role !== "assistant") return y;
277
+ const _ = y[y.length - 1];
278
+ if (!_ || _.role !== "assistant") return y;
275
279
  if (L.type === "activity" && L.id) {
276
- const P = [...T.parts], M = P.findIndex(
280
+ const P = [..._.parts], M = P.findIndex(
277
281
  (z) => z.type === "activity" && z.id === L.id
278
282
  );
279
283
  if (M !== -1)
280
- return P[M] = L, [...y.slice(0, -1), { ...T, parts: P }];
284
+ return P[M] = L, [...y.slice(0, -1), { ..._, parts: P }];
281
285
  }
282
286
  return [
283
287
  ...y.slice(0, -1),
284
- { ...T, parts: [...T.parts, L] }
288
+ { ..._, parts: [..._.parts, L] }
285
289
  ];
286
290
  });
287
291
  }, []), C = he((L) => {
288
292
  o((y) => {
289
- const T = y[y.length - 1];
290
- if (!T || T.role !== "assistant") return y;
291
- const P = [...T.parts], M = P[P.length - 1];
292
- return M?.type === "text" ? P[P.length - 1] = { type: "text", text: M.text + L } : P.push({ type: "text", text: L }), [...y.slice(0, -1), { ...T, parts: P }];
293
+ const _ = y[y.length - 1];
294
+ if (!_ || _.role !== "assistant") return y;
295
+ const P = [..._.parts], M = P[P.length - 1];
296
+ return M?.type === "text" ? P[P.length - 1] = { type: "text", text: M.text + L } : P.push({ type: "text", text: L }), [...y.slice(0, -1), { ..._, parts: P }];
293
297
  });
294
298
  }, []), k = he(async (L, y) => {
295
299
  p(null);
296
- const T = {
300
+ const _ = {
297
301
  id: ft(),
298
302
  role: "user",
299
303
  parts: [{ type: "text", text: L }],
300
304
  createdAt: /* @__PURE__ */ new Date()
301
- }, P = {
302
- id: ft(),
303
- role: "assistant",
304
- parts: [],
305
- createdAt: /* @__PURE__ */ new Date()
305
+ }, P = ft();
306
+ let M = !1;
307
+ const z = () => {
308
+ if (M) return;
309
+ M = !0;
310
+ const j = {
311
+ id: P,
312
+ role: "assistant",
313
+ parts: [],
314
+ createdAt: /* @__PURE__ */ new Date()
315
+ };
316
+ o((U) => [...U, j]);
306
317
  };
307
- o((z) => [...z, T, P]), u(!0), c(!0), g.current?.abort();
308
- const M = new AbortController();
309
- g.current = M;
318
+ o((j) => [...j, _]), u(!0), c(!0), g.current?.abort();
319
+ const T = new AbortController();
320
+ g.current = T;
310
321
  try {
311
- const z = e.sendMessage({ messages: [...y, T], context: n });
322
+ const j = e.sendMessage({ messages: [...y, _], context: n });
312
323
  await _n(
313
- z,
314
- (A) => {
315
- switch (c(!1), A.type) {
324
+ j,
325
+ (U) => {
326
+ switch (c(!1), U.type) {
316
327
  case "text":
317
- C(A.text);
328
+ z(), C(U.text);
318
329
  break;
319
330
  case "part":
320
- x(A.part);
331
+ z(), x(U.part);
321
332
  break;
322
333
  case "error":
323
- x({ type: "error", message: A.message }), p(A.message);
334
+ z(), x({ type: "error", message: U.message }), p(U.message);
324
335
  break;
325
336
  case "done":
326
337
  break;
327
338
  }
328
339
  },
329
- M.signal
340
+ T.signal
330
341
  );
331
- } catch (z) {
332
- const A = z instanceof Error ? z.message : "Unknown error occurred";
333
- p(A), x({ type: "error", message: A });
342
+ } catch (j) {
343
+ const U = j instanceof Error ? j.message : "Unknown error occurred";
344
+ p(U), z(), x({ type: "error", message: U });
334
345
  } finally {
335
346
  u(!1), c(!1);
336
347
  }
@@ -349,8 +360,8 @@ function Zi({
349
360
  createdAt: /* @__PURE__ */ new Date()
350
361
  };
351
362
  o((M) => [...M, y]), g.current?.abort();
352
- const T = new AbortController();
353
- g.current = T;
363
+ const _ = new AbortController();
364
+ g.current = _;
354
365
  const P = {
355
366
  id: ft(),
356
367
  role: "system",
@@ -376,7 +387,7 @@ function Zi({
376
387
  break;
377
388
  }
378
389
  },
379
- T.signal
390
+ _.signal
380
391
  );
381
392
  } catch (M) {
382
393
  const z = M instanceof Error ? M.message : "Unknown error occurred";
@@ -390,7 +401,7 @@ function Zi({
390
401
  g.current?.abort(), o([]), a(""), p(null), u(!1), c(!1);
391
402
  }, []), B = he((L, y) => {
392
403
  t?.(L, y);
393
- }, [t]), q = he((L) => {
404
+ }, [t]), V = he((L) => {
394
405
  r?.(L);
395
406
  }, [r]);
396
407
  return {
@@ -406,7 +417,7 @@ function Zi({
406
417
  error: h,
407
418
  reset: w,
408
419
  confirmProposal: B,
409
- cancelProposal: q
420
+ cancelProposal: V
410
421
  };
411
422
  }
412
423
  const Wt = {
@@ -414,6 +425,7 @@ const Wt = {
414
425
  clearConversation: "Clear conversation",
415
426
  minimizeSidebar: "Minimize",
416
427
  expandSidebar: "Expand",
428
+ userLabel: "You",
417
429
  inputPlaceholder: "Ask a question… (Enter to send)",
418
430
  sendMessage: "Send message",
419
431
  stopMessage: "Stop",
@@ -430,7 +442,7 @@ const Wt = {
430
442
  actionHistory: "History",
431
443
  actionRules: "Rules"
432
444
  }, Cr = wr(Wt);
433
- function qe() {
445
+ function Fe() {
434
446
  return br(Cr);
435
447
  }
436
448
  const el = "_root_14q8g_1", tl = {
@@ -508,6 +520,7 @@ const ah = {
508
520
  clearConversation: "Vymazat konverzaci",
509
521
  minimizeSidebar: "Minimalizovat",
510
522
  expandSidebar: "Rozbalit",
523
+ userLabel: "Vy",
511
524
  inputPlaceholder: "Zeptejte se na cokoliv… (Enter pro odeslání)",
512
525
  sendMessage: "Odeslat zprávu",
513
526
  stopMessage: "Zastavit",
@@ -754,19 +767,19 @@ ie.prototype.property = "";
754
767
  ie.prototype.spaceSeparated = !1;
755
768
  ie.prototype.space = void 0;
756
769
  let xl = 0;
757
- const F = Fe(), X = Fe(), Yt = Fe(), I = Fe(), W = Fe(), De = Fe(), oe = Fe();
758
- function Fe() {
770
+ const F = Re(), G = Re(), Yt = Re(), I = Re(), Q = Re(), De = Re(), oe = Re();
771
+ function Re() {
759
772
  return 2 ** ++xl;
760
773
  }
761
774
  const Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
762
775
  __proto__: null,
763
776
  boolean: F,
764
- booleanish: X,
777
+ booleanish: G,
765
778
  commaOrSpaceSeparated: oe,
766
779
  commaSeparated: De,
767
780
  number: I,
768
781
  overloadedBoolean: Yt,
769
- spaceSeparated: W
782
+ spaceSeparated: Q
770
783
  }, Symbol.toStringTag, { value: "Module" })), _t = (
771
784
  /** @type {ReadonlyArray<keyof typeof types>} */
772
785
  Object.keys(Xt)
@@ -798,7 +811,7 @@ ln.prototype.defined = !0;
798
811
  function zn(e, n, t) {
799
812
  t && (e[n] = t);
800
813
  }
801
- function Ue(e) {
814
+ function Ve(e) {
802
815
  const n = {}, t = {};
803
816
  for (const [r, i] of Object.entries(e.properties)) {
804
817
  const o = new ln(
@@ -811,50 +824,50 @@ function Ue(e) {
811
824
  }
812
825
  return new at(n, t, e.space);
813
826
  }
814
- const Er = Ue({
827
+ const Er = Ve({
815
828
  properties: {
816
829
  ariaActiveDescendant: null,
817
- ariaAtomic: X,
830
+ ariaAtomic: G,
818
831
  ariaAutoComplete: null,
819
- ariaBusy: X,
820
- ariaChecked: X,
832
+ ariaBusy: G,
833
+ ariaChecked: G,
821
834
  ariaColCount: I,
822
835
  ariaColIndex: I,
823
836
  ariaColSpan: I,
824
- ariaControls: W,
837
+ ariaControls: Q,
825
838
  ariaCurrent: null,
826
- ariaDescribedBy: W,
839
+ ariaDescribedBy: Q,
827
840
  ariaDetails: null,
828
- ariaDisabled: X,
829
- ariaDropEffect: W,
841
+ ariaDisabled: G,
842
+ ariaDropEffect: Q,
830
843
  ariaErrorMessage: null,
831
- ariaExpanded: X,
832
- ariaFlowTo: W,
833
- ariaGrabbed: X,
844
+ ariaExpanded: G,
845
+ ariaFlowTo: Q,
846
+ ariaGrabbed: G,
834
847
  ariaHasPopup: null,
835
- ariaHidden: X,
848
+ ariaHidden: G,
836
849
  ariaInvalid: null,
837
850
  ariaKeyShortcuts: null,
838
851
  ariaLabel: null,
839
- ariaLabelledBy: W,
852
+ ariaLabelledBy: Q,
840
853
  ariaLevel: I,
841
854
  ariaLive: null,
842
- ariaModal: X,
843
- ariaMultiLine: X,
844
- ariaMultiSelectable: X,
855
+ ariaModal: G,
856
+ ariaMultiLine: G,
857
+ ariaMultiSelectable: G,
845
858
  ariaOrientation: null,
846
- ariaOwns: W,
859
+ ariaOwns: Q,
847
860
  ariaPlaceholder: null,
848
861
  ariaPosInSet: I,
849
- ariaPressed: X,
850
- ariaReadOnly: X,
862
+ ariaPressed: G,
863
+ ariaReadOnly: G,
851
864
  ariaRelevant: null,
852
- ariaRequired: X,
853
- ariaRoleDescription: W,
865
+ ariaRequired: G,
866
+ ariaRoleDescription: Q,
854
867
  ariaRowCount: I,
855
868
  ariaRowIndex: I,
856
869
  ariaRowSpan: I,
857
- ariaSelected: X,
870
+ ariaSelected: G,
858
871
  ariaSetSize: I,
859
872
  ariaSort: null,
860
873
  ariaValueMax: I,
@@ -873,7 +886,7 @@ function Ar(e, n) {
873
886
  function _r(e, n) {
874
887
  return Ar(e, n.toLowerCase());
875
888
  }
876
- const bl = Ue({
889
+ const bl = Ve({
877
890
  attributes: {
878
891
  acceptcharset: "accept-charset",
879
892
  classname: "class",
@@ -885,8 +898,8 @@ const bl = Ue({
885
898
  // Standard Properties.
886
899
  abbr: null,
887
900
  accept: De,
888
- acceptCharset: W,
889
- accessKey: W,
901
+ acceptCharset: Q,
902
+ accessKey: Q,
890
903
  action: null,
891
904
  allow: null,
892
905
  allowFullScreen: F,
@@ -897,15 +910,15 @@ const bl = Ue({
897
910
  as: null,
898
911
  async: F,
899
912
  autoCapitalize: null,
900
- autoComplete: W,
913
+ autoComplete: Q,
901
914
  autoFocus: F,
902
915
  autoPlay: F,
903
- blocking: W,
916
+ blocking: Q,
904
917
  capture: null,
905
918
  charSet: null,
906
919
  checked: F,
907
920
  cite: null,
908
- className: W,
921
+ className: Q,
909
922
  closedBy: null,
910
923
  colorSpace: null,
911
924
  cols: I,
@@ -913,9 +926,9 @@ const bl = Ue({
913
926
  command: null,
914
927
  commandFor: null,
915
928
  content: null,
916
- contentEditable: X,
929
+ contentEditable: G,
917
930
  controls: F,
918
- controlsList: W,
931
+ controlsList: Q,
919
932
  coords: I | De,
920
933
  crossOrigin: null,
921
934
  data: null,
@@ -927,7 +940,7 @@ const bl = Ue({
927
940
  dirName: null,
928
941
  disabled: F,
929
942
  download: Yt,
930
- draggable: X,
943
+ draggable: G,
931
944
  encType: null,
932
945
  enterKeyHint: null,
933
946
  fetchPriority: null,
@@ -937,14 +950,14 @@ const bl = Ue({
937
950
  formMethod: null,
938
951
  formNoValidate: F,
939
952
  formTarget: null,
940
- headers: W,
953
+ headers: Q,
941
954
  height: I,
942
955
  hidden: Yt,
943
956
  high: I,
944
957
  href: null,
945
958
  hrefLang: null,
946
- htmlFor: W,
947
- httpEquiv: W,
959
+ htmlFor: Q,
960
+ httpEquiv: Q,
948
961
  id: null,
949
962
  imageSizes: null,
950
963
  imageSrcSet: null,
@@ -954,10 +967,10 @@ const bl = Ue({
954
967
  is: null,
955
968
  isMap: F,
956
969
  itemId: null,
957
- itemProp: W,
958
- itemRef: W,
970
+ itemProp: Q,
971
+ itemRef: Q,
959
972
  itemScope: F,
960
- itemType: W,
973
+ itemType: Q,
961
974
  kind: null,
962
975
  label: null,
963
976
  lang: null,
@@ -1070,7 +1083,7 @@ const bl = Ue({
1070
1083
  open: F,
1071
1084
  optimum: I,
1072
1085
  pattern: null,
1073
- ping: W,
1086
+ ping: Q,
1074
1087
  placeholder: null,
1075
1088
  playsInline: F,
1076
1089
  popover: null,
@@ -1080,12 +1093,12 @@ const bl = Ue({
1080
1093
  preload: null,
1081
1094
  readOnly: F,
1082
1095
  referrerPolicy: null,
1083
- rel: W,
1096
+ rel: Q,
1084
1097
  required: F,
1085
1098
  reversed: F,
1086
1099
  rows: I,
1087
1100
  rowSpan: I,
1088
- sandbox: W,
1101
+ sandbox: Q,
1089
1102
  scope: null,
1090
1103
  scoped: F,
1091
1104
  seamless: F,
@@ -1100,7 +1113,7 @@ const bl = Ue({
1100
1113
  sizes: null,
1101
1114
  slot: null,
1102
1115
  span: I,
1103
- spellCheck: X,
1116
+ spellCheck: G,
1104
1117
  src: null,
1105
1118
  srcDoc: null,
1106
1119
  srcLang: null,
@@ -1115,7 +1128,7 @@ const bl = Ue({
1115
1128
  type: null,
1116
1129
  typeMustMatch: F,
1117
1130
  useMap: null,
1118
- value: X,
1131
+ value: G,
1119
1132
  width: I,
1120
1133
  wrap: null,
1121
1134
  writingSuggestions: null,
@@ -1125,7 +1138,7 @@ const bl = Ue({
1125
1138
  // Several. Use CSS `text-align` instead,
1126
1139
  aLink: null,
1127
1140
  // `<body>`. Use CSS `a:active {color}` instead
1128
- archive: W,
1141
+ archive: Q,
1129
1142
  // `<object>`. List of URIs to archives
1130
1143
  axis: null,
1131
1144
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -1207,7 +1220,7 @@ const bl = Ue({
1207
1220
  // `<table>`
1208
1221
  scheme: null,
1209
1222
  // `<meta>`
1210
- scrolling: X,
1223
+ scrolling: G,
1211
1224
  // `<frame>`. Use overflow in the child context
1212
1225
  standby: null,
1213
1226
  // `<object>`
@@ -1235,7 +1248,7 @@ const bl = Ue({
1235
1248
  disablePictureInPicture: F,
1236
1249
  disableRemotePlayback: F,
1237
1250
  exportParts: De,
1238
- part: W,
1251
+ part: Q,
1239
1252
  prefix: null,
1240
1253
  property: null,
1241
1254
  results: I,
@@ -1244,7 +1257,7 @@ const bl = Ue({
1244
1257
  },
1245
1258
  space: "html",
1246
1259
  transform: _r
1247
- }), wl = Ue({
1260
+ }), wl = Ve({
1248
1261
  attributes: {
1249
1262
  accentHeight: "accent-height",
1250
1263
  alignmentBaseline: "alignment-baseline",
@@ -1444,7 +1457,7 @@ const bl = Ue({
1444
1457
  by: null,
1445
1458
  calcMode: null,
1446
1459
  capHeight: I,
1447
- className: W,
1460
+ className: Q,
1448
1461
  clip: null,
1449
1462
  clipPath: null,
1450
1463
  clipPathUnits: null,
@@ -1680,7 +1693,7 @@ const bl = Ue({
1680
1693
  patternTransform: null,
1681
1694
  patternUnits: null,
1682
1695
  phase: null,
1683
- ping: W,
1696
+ ping: Q,
1684
1697
  pitch: null,
1685
1698
  playbackOrder: null,
1686
1699
  pointerEvents: null,
@@ -1805,7 +1818,7 @@ const bl = Ue({
1805
1818
  },
1806
1819
  space: "svg",
1807
1820
  transform: Ar
1808
- }), Tr = Ue({
1821
+ }), Tr = Ve({
1809
1822
  properties: {
1810
1823
  xLinkActuate: null,
1811
1824
  xLinkArcRole: null,
@@ -1819,12 +1832,12 @@ const bl = Ue({
1819
1832
  transform(e, n) {
1820
1833
  return "xlink:" + n.slice(5).toLowerCase();
1821
1834
  }
1822
- }), Pr = Ue({
1835
+ }), Pr = Ve({
1823
1836
  attributes: { xmlnsxlink: "xmlns:xlink" },
1824
1837
  properties: { xmlnsXLink: null, xmlns: null },
1825
1838
  space: "xmlns",
1826
1839
  transform: _r
1827
- }), zr = Ue({
1840
+ }), zr = Ve({
1828
1841
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1829
1842
  space: "xml",
1830
1843
  transform(e, n) {
@@ -1882,7 +1895,7 @@ function Tl(e) {
1882
1895
  function Lr(e) {
1883
1896
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1884
1897
  }
1885
- var Be = {}, Tt, Dn;
1898
+ var je = {}, Tt, Dn;
1886
1899
  function Pl() {
1887
1900
  if (Dn) return Tt;
1888
1901
  Dn = 1;
@@ -1895,15 +1908,15 @@ function Pl() {
1895
1908
  k = k || {};
1896
1909
  var E = 1, S = 1;
1897
1910
  function R(z) {
1898
- var A = z.match(n);
1899
- A && (E += A.length);
1900
- var U = z.lastIndexOf(s);
1901
- S = ~U ? z.length - U : S + z.length;
1911
+ var T = z.match(n);
1912
+ T && (E += T.length);
1913
+ var j = z.lastIndexOf(s);
1914
+ S = ~j ? z.length - j : S + z.length;
1902
1915
  }
1903
1916
  function N() {
1904
1917
  var z = { line: E, column: S };
1905
- return function(A) {
1906
- return A.position = new w(z), L(), A;
1918
+ return function(T) {
1919
+ return T.position = new w(z), L(), T;
1907
1920
  };
1908
1921
  }
1909
1922
  function w(z) {
@@ -1911,58 +1924,58 @@ function Pl() {
1911
1924
  }
1912
1925
  w.prototype.content = C;
1913
1926
  function B(z) {
1914
- var A = new Error(
1927
+ var T = new Error(
1915
1928
  k.source + ":" + E + ":" + S + ": " + z
1916
1929
  );
1917
- if (A.reason = z, A.filename = k.source, A.line = E, A.column = S, A.source = C, !k.silent) throw A;
1930
+ if (T.reason = z, T.filename = k.source, T.line = E, T.column = S, T.source = C, !k.silent) throw T;
1918
1931
  }
1919
- function q(z) {
1920
- var A = z.exec(C);
1921
- if (A) {
1922
- var U = A[0];
1923
- return R(U), C = C.slice(U.length), A;
1932
+ function V(z) {
1933
+ var T = z.exec(C);
1934
+ if (T) {
1935
+ var j = T[0];
1936
+ return R(j), C = C.slice(j.length), T;
1924
1937
  }
1925
1938
  }
1926
1939
  function L() {
1927
- q(t);
1940
+ V(t);
1928
1941
  }
1929
1942
  function y(z) {
1930
- var A;
1931
- for (z = z || []; A = T(); )
1932
- A !== !1 && z.push(A);
1943
+ var T;
1944
+ for (z = z || []; T = _(); )
1945
+ T !== !1 && z.push(T);
1933
1946
  return z;
1934
1947
  }
1935
- function T() {
1948
+ function _() {
1936
1949
  var z = N();
1937
1950
  if (!(u != C.charAt(0) || f != C.charAt(1))) {
1938
- for (var A = 2; c != C.charAt(A) && (f != C.charAt(A) || u != C.charAt(A + 1)); )
1939
- ++A;
1940
- if (A += 2, c === C.charAt(A - 1))
1951
+ for (var T = 2; c != C.charAt(T) && (f != C.charAt(T) || u != C.charAt(T + 1)); )
1952
+ ++T;
1953
+ if (T += 2, c === C.charAt(T - 1))
1941
1954
  return B("End of comment missing");
1942
- var U = C.slice(2, A - 2);
1943
- return S += 2, R(U), C = C.slice(A), S += 2, z({
1955
+ var j = C.slice(2, T - 2);
1956
+ return S += 2, R(j), C = C.slice(T), S += 2, z({
1944
1957
  type: h,
1945
- comment: U
1958
+ comment: j
1946
1959
  });
1947
1960
  }
1948
1961
  }
1949
1962
  function P() {
1950
- var z = N(), A = q(r);
1951
- if (A) {
1952
- if (T(), !q(i)) return B("property missing ':'");
1953
- var U = q(o), G = z({
1963
+ var z = N(), T = V(r);
1964
+ if (T) {
1965
+ if (_(), !V(i)) return B("property missing ':'");
1966
+ var j = V(o), U = z({
1954
1967
  type: p,
1955
- property: x(A[0].replace(e, c)),
1956
- value: U ? x(U[0].replace(e, c)) : c
1968
+ property: x(T[0].replace(e, c)),
1969
+ value: j ? x(j[0].replace(e, c)) : c
1957
1970
  });
1958
- return q(l), G;
1971
+ return V(l), U;
1959
1972
  }
1960
1973
  }
1961
1974
  function M() {
1962
1975
  var z = [];
1963
1976
  y(z);
1964
- for (var A; A = P(); )
1965
- A !== !1 && (z.push(A), y(z));
1977
+ for (var T; T = P(); )
1978
+ T !== !1 && (z.push(T), y(z));
1966
1979
  return z;
1967
1980
  }
1968
1981
  return L(), M();
@@ -1974,12 +1987,12 @@ function Pl() {
1974
1987
  }
1975
1988
  var Mn;
1976
1989
  function zl() {
1977
- if (Mn) return Be;
1990
+ if (Mn) return je;
1978
1991
  Mn = 1;
1979
- var e = Be && Be.__importDefault || function(r) {
1992
+ var e = je && je.__importDefault || function(r) {
1980
1993
  return r && r.__esModule ? r : { default: r };
1981
1994
  };
1982
- Object.defineProperty(Be, "__esModule", { value: !0 }), Be.default = t;
1995
+ Object.defineProperty(je, "__esModule", { value: !0 }), je.default = t;
1983
1996
  const n = e(Pl());
1984
1997
  function t(r, i) {
1985
1998
  let o = null;
@@ -1993,7 +2006,7 @@ function zl() {
1993
2006
  a ? i(u, f, s) : f && (o = o || {}, o[u] = f);
1994
2007
  }), o;
1995
2008
  }
1996
- return Be;
2009
+ return je;
1997
2010
  }
1998
2011
  var Xe = {}, Fn;
1999
2012
  function Ll() {
@@ -2190,9 +2203,9 @@ function Rr(e, n, t) {
2190
2203
  if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
2191
2204
  return ql(e, n);
2192
2205
  if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
2193
- return Vl(e, n, t);
2206
+ return Ul(e, n, t);
2194
2207
  if (n.type === "mdxjsEsm")
2195
- return Ul(e, n);
2208
+ return Vl(e, n);
2196
2209
  if (n.type === "root")
2197
2210
  return Wl(e, n, t);
2198
2211
  if (n.type === "text")
@@ -2216,7 +2229,7 @@ function ql(e, n) {
2216
2229
  }
2217
2230
  lt(e, n.position);
2218
2231
  }
2219
- function Ul(e, n) {
2232
+ function Vl(e, n) {
2220
2233
  if (n.data && n.data.estree && e.evaluater)
2221
2234
  return (
2222
2235
  /** @type {Child | undefined} */
@@ -2224,7 +2237,7 @@ function Ul(e, n) {
2224
2237
  );
2225
2238
  lt(e, n.position);
2226
2239
  }
2227
- function Vl(e, n, t) {
2240
+ function Ul(e, n, t) {
2228
2241
  const r = e.schema;
2229
2242
  let i = r;
2230
2243
  n.name === "svg" && r.space === "html" && (i = on, e.schema = i), e.ancestors.push(n);
@@ -2558,10 +2571,10 @@ const Jt = Ee(/\d/), so = Ee(/[\dA-Fa-f]/), uo = Ee(/[!-/:-@[-`{-~]/);
2558
2571
  function D(e) {
2559
2572
  return e !== null && e < -2;
2560
2573
  }
2561
- function Q(e) {
2574
+ function Y(e) {
2562
2575
  return e !== null && (e < 0 || e === 32);
2563
2576
  }
2564
- function j(e) {
2577
+ function H(e) {
2565
2578
  return e === -2 || e === -1 || e === 32;
2566
2579
  }
2567
2580
  const St = Ee(/\p{P}|\p{S}/u), Me = Ee(/\s/);
@@ -2571,7 +2584,7 @@ function Ee(e) {
2571
2584
  return t !== null && t > -1 && e.test(String.fromCharCode(t));
2572
2585
  }
2573
2586
  }
2574
- function Ve(e) {
2587
+ function Ue(e) {
2575
2588
  const n = [];
2576
2589
  let t = -1, r = 0, i = 0;
2577
2590
  for (; ++t < e.length; ) {
@@ -2590,15 +2603,15 @@ function Ve(e) {
2590
2603
  }
2591
2604
  return n.join("") + e.slice(r);
2592
2605
  }
2593
- function $(e, n, t, r) {
2606
+ function q(e, n, t, r) {
2594
2607
  const i = r ? r - 1 : Number.POSITIVE_INFINITY;
2595
2608
  let o = 0;
2596
2609
  return l;
2597
2610
  function l(s) {
2598
- return j(s) ? (e.enter(t), a(s)) : n(s);
2611
+ return H(s) ? (e.enter(t), a(s)) : n(s);
2599
2612
  }
2600
2613
  function a(s) {
2601
- return j(s) && o++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
2614
+ return H(s) && o++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
2602
2615
  }
2603
2616
  }
2604
2617
  const co = {
@@ -2613,7 +2626,7 @@ function fo(e) {
2613
2626
  e.consume(a);
2614
2627
  return;
2615
2628
  }
2616
- return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), $(e, n, "linePrefix");
2629
+ return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), q(e, n, "linePrefix");
2617
2630
  }
2618
2631
  function i(a) {
2619
2632
  return e.enter("paragraph"), o(a);
@@ -2722,11 +2735,11 @@ function ho(e) {
2722
2735
  )
2723
2736
  return;
2724
2737
  const B = n.events.length;
2725
- let q = B, L, y;
2726
- for (; q--; )
2727
- if (n.events[q][0] === "exit" && n.events[q][1].type === "chunkFlow") {
2738
+ let V = B, L, y;
2739
+ for (; V--; )
2740
+ if (n.events[V][0] === "exit" && n.events[V][1].type === "chunkFlow") {
2728
2741
  if (L) {
2729
- y = n.events[q][1].end;
2742
+ y = n.events[V][1].end;
2730
2743
  break;
2731
2744
  }
2732
2745
  L = !0;
@@ -2735,7 +2748,7 @@ function ho(e) {
2735
2748
  n.events[w][1].end = {
2736
2749
  ...y
2737
2750
  }, w++;
2738
- ae(n.events, q + 1, 0, n.events.slice(B)), n.events.length = w;
2751
+ ae(n.events, V + 1, 0, n.events.slice(B)), n.events.length = w;
2739
2752
  }
2740
2753
  }
2741
2754
  function k(S) {
@@ -2751,10 +2764,10 @@ function ho(e) {
2751
2764
  }
2752
2765
  }
2753
2766
  function mo(e, n, t) {
2754
- return $(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2767
+ return q(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2755
2768
  }
2756
- function $e(e) {
2757
- if (e === null || Q(e) || Me(e))
2769
+ function qe(e) {
2770
+ if (e === null || Y(e) || Me(e))
2758
2771
  return 1;
2759
2772
  if (St(e))
2760
2773
  return 2;
@@ -2829,7 +2842,7 @@ function go(e, n) {
2829
2842
  return e;
2830
2843
  }
2831
2844
  function yo(e, n) {
2832
- const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = $e(r);
2845
+ const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = qe(r);
2833
2846
  let o;
2834
2847
  return l;
2835
2848
  function l(s) {
@@ -2838,7 +2851,7 @@ function yo(e, n) {
2838
2851
  function a(s) {
2839
2852
  if (s === o)
2840
2853
  return e.consume(s), a;
2841
- const u = e.exit("attentionSequence"), f = $e(s), c = !f || f === 2 && i || t.includes(s), h = !i || i === 2 && f || t.includes(r);
2854
+ const u = e.exit("attentionSequence"), f = qe(s), c = !f || f === 2 && i || t.includes(s), h = !i || i === 2 && f || t.includes(r);
2842
2855
  return u._open = !!(o === 42 ? c : c && (i || !h)), u._close = !!(o === 42 ? h : h && (f || !c)), n(s);
2843
2856
  }
2844
2857
  }
@@ -2891,7 +2904,7 @@ const st = {
2891
2904
  function bo(e, n, t) {
2892
2905
  return r;
2893
2906
  function r(o) {
2894
- return j(o) ? $(e, i, "linePrefix")(o) : i(o);
2907
+ return H(o) ? q(e, i, "linePrefix")(o) : i(o);
2895
2908
  }
2896
2909
  function i(o) {
2897
2910
  return o === null || D(o) ? n(o) : t(o);
@@ -2918,14 +2931,14 @@ function wo(e, n, t) {
2918
2931
  return t(l);
2919
2932
  }
2920
2933
  function o(l) {
2921
- return j(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(l));
2934
+ return H(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(l));
2922
2935
  }
2923
2936
  }
2924
2937
  function Co(e, n, t) {
2925
2938
  const r = this;
2926
2939
  return i;
2927
2940
  function i(l) {
2928
- return j(l) ? $(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
2941
+ return H(l) ? q(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
2929
2942
  }
2930
2943
  function o(l) {
2931
2944
  return e.attempt($r, n, t)(l);
@@ -2947,7 +2960,7 @@ function vo(e, n, t) {
2947
2960
  return uo(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(o);
2948
2961
  }
2949
2962
  }
2950
- const Ur = {
2963
+ const Vr = {
2951
2964
  name: "characterReference",
2952
2965
  tokenize: Io
2953
2966
  };
@@ -2972,10 +2985,10 @@ function Io(e, n, t) {
2972
2985
  return l(c) && i++ < o ? (e.consume(c), f) : t(c);
2973
2986
  }
2974
2987
  }
2975
- const Un = {
2988
+ const Vn = {
2976
2989
  partial: !0,
2977
2990
  tokenize: Ao
2978
- }, Vn = {
2991
+ }, Un = {
2979
2992
  concrete: !0,
2980
2993
  name: "codeFenced",
2981
2994
  tokenize: Eo
@@ -2995,15 +3008,15 @@ function Eo(e, n, t) {
2995
3008
  return o = B && B[1].type === "linePrefix" ? B[2].sliceSerialize(B[1], !0).length : 0, a = w, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(w);
2996
3009
  }
2997
3010
  function f(w) {
2998
- return w === a ? (l++, e.consume(w), f) : l < 3 ? t(w) : (e.exit("codeFencedFenceSequence"), j(w) ? $(e, c, "whitespace")(w) : c(w));
3011
+ return w === a ? (l++, e.consume(w), f) : l < 3 ? t(w) : (e.exit("codeFencedFenceSequence"), H(w) ? q(e, c, "whitespace")(w) : c(w));
2999
3012
  }
3000
3013
  function c(w) {
3001
- return w === null || D(w) ? (e.exit("codeFencedFence"), r.interrupt ? n(w) : e.check(Un, x, R)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
3014
+ return w === null || D(w) ? (e.exit("codeFencedFence"), r.interrupt ? n(w) : e.check(Vn, x, R)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
3002
3015
  contentType: "string"
3003
3016
  }), h(w));
3004
3017
  }
3005
3018
  function h(w) {
3006
- return w === null || D(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(w)) : j(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), $(e, p, "whitespace")(w)) : w === 96 && w === a ? t(w) : (e.consume(w), h);
3019
+ return w === null || D(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(w)) : H(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), q(e, p, "whitespace")(w)) : w === 96 && w === a ? t(w) : (e.consume(w), h);
3007
3020
  }
3008
3021
  function p(w) {
3009
3022
  return w === null || D(w) ? c(w) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -3020,10 +3033,10 @@ function Eo(e, n, t) {
3020
3033
  return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), k;
3021
3034
  }
3022
3035
  function k(w) {
3023
- return o > 0 && j(w) ? $(e, E, "linePrefix", o + 1)(w) : E(w);
3036
+ return o > 0 && H(w) ? q(e, E, "linePrefix", o + 1)(w) : E(w);
3024
3037
  }
3025
3038
  function E(w) {
3026
- return w === null || D(w) ? e.check(Un, x, R)(w) : (e.enter("codeFlowValue"), S(w));
3039
+ return w === null || D(w) ? e.check(Vn, x, R)(w) : (e.enter("codeFlowValue"), S(w));
3027
3040
  }
3028
3041
  function S(w) {
3029
3042
  return w === null || D(w) ? (e.exit("codeFlowValue"), E(w)) : (e.consume(w), S);
@@ -3031,23 +3044,23 @@ function Eo(e, n, t) {
3031
3044
  function R(w) {
3032
3045
  return e.exit("codeFenced"), n(w);
3033
3046
  }
3034
- function N(w, B, q) {
3047
+ function N(w, B, V) {
3035
3048
  let L = 0;
3036
3049
  return y;
3037
- function y(A) {
3038
- return w.enter("lineEnding"), w.consume(A), w.exit("lineEnding"), T;
3050
+ function y(T) {
3051
+ return w.enter("lineEnding"), w.consume(T), w.exit("lineEnding"), _;
3039
3052
  }
3040
- function T(A) {
3041
- return w.enter("codeFencedFence"), j(A) ? $(w, P, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(A) : P(A);
3053
+ function _(T) {
3054
+ return w.enter("codeFencedFence"), H(T) ? q(w, P, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(T) : P(T);
3042
3055
  }
3043
- function P(A) {
3044
- return A === a ? (w.enter("codeFencedFenceSequence"), M(A)) : q(A);
3056
+ function P(T) {
3057
+ return T === a ? (w.enter("codeFencedFenceSequence"), M(T)) : V(T);
3045
3058
  }
3046
- function M(A) {
3047
- return A === a ? (L++, w.consume(A), M) : L >= l ? (w.exit("codeFencedFenceSequence"), j(A) ? $(w, z, "whitespace")(A) : z(A)) : q(A);
3059
+ function M(T) {
3060
+ return T === a ? (L++, w.consume(T), M) : L >= l ? (w.exit("codeFencedFenceSequence"), H(T) ? q(w, z, "whitespace")(T) : z(T)) : V(T);
3048
3061
  }
3049
- function z(A) {
3050
- return A === null || D(A) ? (w.exit("codeFencedFence"), B(A)) : q(A);
3062
+ function z(T) {
3063
+ return T === null || D(T) ? (w.exit("codeFencedFence"), B(T)) : V(T);
3051
3064
  }
3052
3065
  }
3053
3066
  }
@@ -3072,7 +3085,7 @@ function To(e, n, t) {
3072
3085
  const r = this;
3073
3086
  return i;
3074
3087
  function i(u) {
3075
- return e.enter("codeIndented"), $(e, o, "linePrefix", 5)(u);
3088
+ return e.enter("codeIndented"), q(e, o, "linePrefix", 5)(u);
3076
3089
  }
3077
3090
  function o(u) {
3078
3091
  const f = r.events[r.events.length - 1];
@@ -3092,7 +3105,7 @@ function Po(e, n, t) {
3092
3105
  const r = this;
3093
3106
  return i;
3094
3107
  function i(l) {
3095
- return r.parser.lazy[r.now().line] ? t(l) : D(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), i) : $(e, o, "linePrefix", 5)(l);
3108
+ 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);
3096
3109
  }
3097
3110
  function o(l) {
3098
3111
  const a = r.events[r.events.length - 1];
@@ -3312,7 +3325,7 @@ function Je(e, n) {
3312
3325
  for (; t < n.length; )
3313
3326
  e.push(...n.slice(t, t + 1e4)), t += 1e4;
3314
3327
  }
3315
- function Vr(e) {
3328
+ function Ur(e) {
3316
3329
  const n = {};
3317
3330
  let t = -1, r, i, o, l, a, s, u;
3318
3331
  const f = new Fo(e);
@@ -3369,7 +3382,7 @@ const No = {
3369
3382
  tokenize: Ho
3370
3383
  };
3371
3384
  function Bo(e) {
3372
- return Vr(e), e;
3385
+ return Ur(e), e;
3373
3386
  }
3374
3387
  function jo(e, n) {
3375
3388
  let t;
@@ -3396,7 +3409,7 @@ function Ho(e, n, t) {
3396
3409
  const r = this;
3397
3410
  return i;
3398
3411
  function i(l) {
3399
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), $(e, o, "linePrefix");
3412
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), q(e, o, "linePrefix");
3400
3413
  }
3401
3414
  function o(l) {
3402
3415
  if (l === null || D(l))
@@ -3426,7 +3439,7 @@ function Wr(e, n, t, r, i, o, l, a, s) {
3426
3439
  return k === 60 || k === 62 || k === 92 ? (e.consume(k), p) : p(k);
3427
3440
  }
3428
3441
  function x(k) {
3429
- return !f && (k === null || k === 41 || Q(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), n(k)) : f < u && k === 40 ? (e.consume(k), f++, x) : k === 41 ? (e.consume(k), f--, x) : k === null || k === 32 || k === 40 || xt(k) ? t(k) : (e.consume(k), k === 92 ? C : x);
3442
+ return !f && (k === null || k === 41 || Y(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), n(k)) : f < u && k === 40 ? (e.consume(k), f++, x) : k === 41 ? (e.consume(k), f--, x) : k === null || k === 32 || k === 40 || xt(k) ? t(k) : (e.consume(k), k === 92 ? C : x);
3430
3443
  }
3431
3444
  function C(k) {
3432
3445
  return k === 40 || k === 41 || k === 92 ? (e.consume(k), x) : x(k);
@@ -3450,7 +3463,7 @@ function Qr(e, n, t, r, i, o) {
3450
3463
  }), c(p));
3451
3464
  }
3452
3465
  function c(p) {
3453
- return p === null || p === 91 || p === 93 || D(p) || a++ > 999 ? (e.exit("chunkString"), f(p)) : (e.consume(p), s || (s = !j(p)), p === 92 ? h : c);
3466
+ return p === null || p === 91 || p === 93 || D(p) || a++ > 999 ? (e.exit("chunkString"), f(p)) : (e.consume(p), s || (s = !H(p)), p === 92 ? h : c);
3454
3467
  }
3455
3468
  function h(p) {
3456
3469
  return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, c) : c(p);
@@ -3466,7 +3479,7 @@ function Yr(e, n, t, r, i, o) {
3466
3479
  return h === l ? (e.enter(i), e.consume(h), e.exit(i), e.exit(r), n) : (e.enter(o), u(h));
3467
3480
  }
3468
3481
  function u(h) {
3469
- return h === l ? (e.exit(o), s(l)) : h === null ? t(h) : D(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), $(e, u, "linePrefix")) : (e.enter("chunkString", {
3482
+ 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", {
3470
3483
  contentType: "string"
3471
3484
  }), f(h));
3472
3485
  }
@@ -3481,17 +3494,17 @@ function rt(e, n) {
3481
3494
  let t;
3482
3495
  return r;
3483
3496
  function r(i) {
3484
- return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : j(i) ? $(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3497
+ return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : H(i) ? q(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3485
3498
  }
3486
3499
  }
3487
3500
  const $o = {
3488
3501
  name: "definition",
3489
- tokenize: Uo
3502
+ tokenize: Vo
3490
3503
  }, qo = {
3491
3504
  partial: !0,
3492
- tokenize: Vo
3505
+ tokenize: Uo
3493
3506
  };
3494
- function Uo(e, n, t) {
3507
+ function Vo(e, n, t) {
3495
3508
  const r = this;
3496
3509
  let i;
3497
3510
  return o;
@@ -3514,7 +3527,7 @@ function Uo(e, n, t) {
3514
3527
  return i = de(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), s) : t(p);
3515
3528
  }
3516
3529
  function s(p) {
3517
- return Q(p) ? rt(e, u)(p) : u(p);
3530
+ return Y(p) ? rt(e, u)(p) : u(p);
3518
3531
  }
3519
3532
  function u(p) {
3520
3533
  return Wr(
@@ -3533,22 +3546,22 @@ function Uo(e, n, t) {
3533
3546
  return e.attempt(qo, c, c)(p);
3534
3547
  }
3535
3548
  function c(p) {
3536
- return j(p) ? $(e, h, "whitespace")(p) : h(p);
3549
+ return H(p) ? q(e, h, "whitespace")(p) : h(p);
3537
3550
  }
3538
3551
  function h(p) {
3539
3552
  return p === null || D(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
3540
3553
  }
3541
3554
  }
3542
- function Vo(e, n, t) {
3555
+ function Uo(e, n, t) {
3543
3556
  return r;
3544
3557
  function r(a) {
3545
- return Q(a) ? rt(e, i)(a) : t(a);
3558
+ return Y(a) ? rt(e, i)(a) : t(a);
3546
3559
  }
3547
3560
  function i(a) {
3548
3561
  return Yr(e, o, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
3549
3562
  }
3550
3563
  function o(a) {
3551
- return j(a) ? $(e, l, "whitespace")(a) : l(a);
3564
+ return H(a) ? q(e, l, "whitespace")(a) : l(a);
3552
3565
  }
3553
3566
  function l(a) {
3554
3567
  return a === null || D(a) ? n(a) : t(a);
@@ -3595,16 +3608,16 @@ function Go(e, n, t) {
3595
3608
  return e.enter("atxHeadingSequence"), l(f);
3596
3609
  }
3597
3610
  function l(f) {
3598
- return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || Q(f) ? (e.exit("atxHeadingSequence"), a(f)) : t(f);
3611
+ return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || Y(f) ? (e.exit("atxHeadingSequence"), a(f)) : t(f);
3599
3612
  }
3600
3613
  function a(f) {
3601
- return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || D(f) ? (e.exit("atxHeading"), n(f)) : j(f) ? $(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), u(f));
3614
+ return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || D(f) ? (e.exit("atxHeading"), n(f)) : H(f) ? q(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), u(f));
3602
3615
  }
3603
3616
  function s(f) {
3604
3617
  return f === 35 ? (e.consume(f), s) : (e.exit("atxHeadingSequence"), a(f));
3605
3618
  }
3606
3619
  function u(f) {
3607
- return f === null || f === 35 || Q(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), u);
3620
+ return f === null || f === 35 || Y(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), u);
3608
3621
  }
3609
3622
  }
3610
3623
  const Jo = [
@@ -3715,7 +3728,7 @@ function na(e, n, t) {
3715
3728
  return ne(m) ? (e.consume(m), l = String.fromCharCode(m), C) : t(m);
3716
3729
  }
3717
3730
  function C(m) {
3718
- if (m === null || m === 47 || m === 62 || Q(m)) {
3731
+ if (m === null || m === 47 || m === 62 || Y(m)) {
3719
3732
  const fe = m === 47, Ae = l.toLowerCase();
3720
3733
  return !fe && !o && Wn.includes(Ae) ? (i = 1, r.interrupt ? n(m) : P(m)) : Jo.includes(l.toLowerCase()) ? (i = 6, fe ? (e.consume(m), k) : r.interrupt ? n(m) : P(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ? E(m) : S(m));
3721
3734
  }
@@ -3725,51 +3738,51 @@ function na(e, n, t) {
3725
3738
  return m === 62 ? (e.consume(m), r.interrupt ? n : P) : t(m);
3726
3739
  }
3727
3740
  function E(m) {
3728
- return j(m) ? (e.consume(m), E) : y(m);
3741
+ return H(m) ? (e.consume(m), E) : y(m);
3729
3742
  }
3730
3743
  function S(m) {
3731
- return m === 47 ? (e.consume(m), y) : m === 58 || m === 95 || ne(m) ? (e.consume(m), R) : j(m) ? (e.consume(m), S) : y(m);
3744
+ return m === 47 ? (e.consume(m), y) : m === 58 || m === 95 || ne(m) ? (e.consume(m), R) : H(m) ? (e.consume(m), S) : y(m);
3732
3745
  }
3733
3746
  function R(m) {
3734
3747
  return m === 45 || m === 46 || m === 58 || m === 95 || ee(m) ? (e.consume(m), R) : N(m);
3735
3748
  }
3736
3749
  function N(m) {
3737
- return m === 61 ? (e.consume(m), w) : j(m) ? (e.consume(m), N) : S(m);
3750
+ return m === 61 ? (e.consume(m), w) : H(m) ? (e.consume(m), N) : S(m);
3738
3751
  }
3739
3752
  function w(m) {
3740
- return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), s = m, B) : j(m) ? (e.consume(m), w) : q(m);
3753
+ return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), s = m, B) : H(m) ? (e.consume(m), w) : V(m);
3741
3754
  }
3742
3755
  function B(m) {
3743
3756
  return m === s ? (e.consume(m), s = null, L) : m === null || D(m) ? t(m) : (e.consume(m), B);
3744
3757
  }
3745
- function q(m) {
3746
- return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || Q(m) ? N(m) : (e.consume(m), q);
3758
+ function V(m) {
3759
+ return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || Y(m) ? N(m) : (e.consume(m), V);
3747
3760
  }
3748
3761
  function L(m) {
3749
- return m === 47 || m === 62 || j(m) ? S(m) : t(m);
3762
+ return m === 47 || m === 62 || H(m) ? S(m) : t(m);
3750
3763
  }
3751
3764
  function y(m) {
3752
- return m === 62 ? (e.consume(m), T) : t(m);
3765
+ return m === 62 ? (e.consume(m), _) : t(m);
3753
3766
  }
3754
- function T(m) {
3755
- return m === null || D(m) ? P(m) : j(m) ? (e.consume(m), T) : t(m);
3767
+ function _(m) {
3768
+ return m === null || D(m) ? P(m) : H(m) ? (e.consume(m), _) : t(m);
3756
3769
  }
3757
3770
  function P(m) {
3758
- return m === 45 && i === 2 ? (e.consume(m), U) : m === 60 && i === 1 ? (e.consume(m), G) : m === 62 && i === 4 ? (e.consume(m), ce) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), ye) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Zo, ke, M)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), M(m)) : (e.consume(m), P);
3771
+ return m === 45 && i === 2 ? (e.consume(m), j) : m === 60 && i === 1 ? (e.consume(m), U) : m === 62 && i === 4 ? (e.consume(m), ce) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), ye) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Zo, ke, M)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), M(m)) : (e.consume(m), P);
3759
3772
  }
3760
3773
  function M(m) {
3761
3774
  return e.check(ea, z, ke)(m);
3762
3775
  }
3763
3776
  function z(m) {
3764
- return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), A;
3777
+ return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), T;
3765
3778
  }
3766
- function A(m) {
3779
+ function T(m) {
3767
3780
  return m === null || D(m) ? M(m) : (e.enter("htmlFlowData"), P(m));
3768
3781
  }
3769
- function U(m) {
3782
+ function j(m) {
3770
3783
  return m === 45 ? (e.consume(m), d) : P(m);
3771
3784
  }
3772
- function G(m) {
3785
+ function U(m) {
3773
3786
  return m === 47 ? (e.consume(m), l = "", ue) : P(m);
3774
3787
  }
3775
3788
  function ue(m) {
@@ -3820,7 +3833,7 @@ function oa(e, n, t) {
3820
3833
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(d), s;
3821
3834
  }
3822
3835
  function s(d) {
3823
- return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), N) : d === 63 ? (e.consume(d), S) : ne(d) ? (e.consume(d), q) : t(d);
3836
+ return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), N) : d === 63 ? (e.consume(d), S) : ne(d) ? (e.consume(d), V) : t(d);
3824
3837
  }
3825
3838
  function u(d) {
3826
3839
  return d === 45 ? (e.consume(d), f) : d === 91 ? (e.consume(d), o = 0, g) : ne(d) ? (e.consume(d), E) : t(d);
@@ -3829,35 +3842,35 @@ function oa(e, n, t) {
3829
3842
  return d === 45 ? (e.consume(d), p) : t(d);
3830
3843
  }
3831
3844
  function c(d) {
3832
- return d === null ? t(d) : d === 45 ? (e.consume(d), h) : D(d) ? (l = c, G(d)) : (e.consume(d), c);
3845
+ return d === null ? t(d) : d === 45 ? (e.consume(d), h) : D(d) ? (l = c, U(d)) : (e.consume(d), c);
3833
3846
  }
3834
3847
  function h(d) {
3835
3848
  return d === 45 ? (e.consume(d), p) : c(d);
3836
3849
  }
3837
3850
  function p(d) {
3838
- return d === 62 ? U(d) : d === 45 ? h(d) : c(d);
3851
+ return d === 62 ? j(d) : d === 45 ? h(d) : c(d);
3839
3852
  }
3840
3853
  function g(d) {
3841
3854
  const ce = "CDATA[";
3842
3855
  return d === ce.charCodeAt(o++) ? (e.consume(d), o === ce.length ? x : g) : t(d);
3843
3856
  }
3844
3857
  function x(d) {
3845
- return d === null ? t(d) : d === 93 ? (e.consume(d), C) : D(d) ? (l = x, G(d)) : (e.consume(d), x);
3858
+ return d === null ? t(d) : d === 93 ? (e.consume(d), C) : D(d) ? (l = x, U(d)) : (e.consume(d), x);
3846
3859
  }
3847
3860
  function C(d) {
3848
3861
  return d === 93 ? (e.consume(d), k) : x(d);
3849
3862
  }
3850
3863
  function k(d) {
3851
- return d === 62 ? U(d) : d === 93 ? (e.consume(d), k) : x(d);
3864
+ return d === 62 ? j(d) : d === 93 ? (e.consume(d), k) : x(d);
3852
3865
  }
3853
3866
  function E(d) {
3854
- return d === null || d === 62 ? U(d) : D(d) ? (l = E, G(d)) : (e.consume(d), E);
3867
+ return d === null || d === 62 ? j(d) : D(d) ? (l = E, U(d)) : (e.consume(d), E);
3855
3868
  }
3856
3869
  function S(d) {
3857
- return d === null ? t(d) : d === 63 ? (e.consume(d), R) : D(d) ? (l = S, G(d)) : (e.consume(d), S);
3870
+ return d === null ? t(d) : d === 63 ? (e.consume(d), R) : D(d) ? (l = S, U(d)) : (e.consume(d), S);
3858
3871
  }
3859
3872
  function R(d) {
3860
- return d === 62 ? U(d) : S(d);
3873
+ return d === 62 ? j(d) : S(d);
3861
3874
  }
3862
3875
  function N(d) {
3863
3876
  return ne(d) ? (e.consume(d), w) : t(d);
@@ -3866,40 +3879,40 @@ function oa(e, n, t) {
3866
3879
  return d === 45 || ee(d) ? (e.consume(d), w) : B(d);
3867
3880
  }
3868
3881
  function B(d) {
3869
- return D(d) ? (l = B, G(d)) : j(d) ? (e.consume(d), B) : U(d);
3882
+ return D(d) ? (l = B, U(d)) : H(d) ? (e.consume(d), B) : j(d);
3870
3883
  }
3871
- function q(d) {
3872
- return d === 45 || ee(d) ? (e.consume(d), q) : d === 47 || d === 62 || Q(d) ? L(d) : t(d);
3884
+ function V(d) {
3885
+ return d === 45 || ee(d) ? (e.consume(d), V) : d === 47 || d === 62 || Y(d) ? L(d) : t(d);
3873
3886
  }
3874
3887
  function L(d) {
3875
- return d === 47 ? (e.consume(d), U) : d === 58 || d === 95 || ne(d) ? (e.consume(d), y) : D(d) ? (l = L, G(d)) : j(d) ? (e.consume(d), L) : U(d);
3888
+ return d === 47 ? (e.consume(d), j) : d === 58 || d === 95 || ne(d) ? (e.consume(d), y) : D(d) ? (l = L, U(d)) : H(d) ? (e.consume(d), L) : j(d);
3876
3889
  }
3877
3890
  function y(d) {
3878
- return d === 45 || d === 46 || d === 58 || d === 95 || ee(d) ? (e.consume(d), y) : T(d);
3891
+ return d === 45 || d === 46 || d === 58 || d === 95 || ee(d) ? (e.consume(d), y) : _(d);
3879
3892
  }
3880
- function T(d) {
3881
- return d === 61 ? (e.consume(d), P) : D(d) ? (l = T, G(d)) : j(d) ? (e.consume(d), T) : L(d);
3893
+ function _(d) {
3894
+ return d === 61 ? (e.consume(d), P) : D(d) ? (l = _, U(d)) : H(d) ? (e.consume(d), _) : L(d);
3882
3895
  }
3883
3896
  function P(d) {
3884
- return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, M) : D(d) ? (l = P, G(d)) : j(d) ? (e.consume(d), P) : (e.consume(d), z);
3897
+ return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, M) : D(d) ? (l = P, U(d)) : H(d) ? (e.consume(d), P) : (e.consume(d), z);
3885
3898
  }
3886
3899
  function M(d) {
3887
- return d === i ? (e.consume(d), i = void 0, A) : d === null ? t(d) : D(d) ? (l = M, G(d)) : (e.consume(d), M);
3900
+ return d === i ? (e.consume(d), i = void 0, T) : d === null ? t(d) : D(d) ? (l = M, U(d)) : (e.consume(d), M);
3888
3901
  }
3889
3902
  function z(d) {
3890
- return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || Q(d) ? L(d) : (e.consume(d), z);
3903
+ return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || Y(d) ? L(d) : (e.consume(d), z);
3891
3904
  }
3892
- function A(d) {
3893
- return d === 47 || d === 62 || Q(d) ? L(d) : t(d);
3905
+ function T(d) {
3906
+ return d === 47 || d === 62 || Y(d) ? L(d) : t(d);
3894
3907
  }
3895
- function U(d) {
3908
+ function j(d) {
3896
3909
  return d === 62 ? (e.consume(d), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(d);
3897
3910
  }
3898
- function G(d) {
3911
+ function U(d) {
3899
3912
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), ue;
3900
3913
  }
3901
3914
  function ue(d) {
3902
- return j(d) ? $(e, ye, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : ye(d);
3915
+ return H(d) ? q(e, ye, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : ye(d);
3903
3916
  }
3904
3917
  function ye(d) {
3905
3918
  return e.enter("htmlTextData"), l(d);
@@ -4003,13 +4016,13 @@ function ha(e, n, t) {
4003
4016
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
4004
4017
  }
4005
4018
  function i(c) {
4006
- return Q(c) ? rt(e, o)(c) : o(c);
4019
+ return Y(c) ? rt(e, o)(c) : o(c);
4007
4020
  }
4008
4021
  function o(c) {
4009
4022
  return c === 41 ? f(c) : Wr(e, l, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
4010
4023
  }
4011
4024
  function l(c) {
4012
- return Q(c) ? rt(e, s)(c) : f(c);
4025
+ return Y(c) ? rt(e, s)(c) : f(c);
4013
4026
  }
4014
4027
  function a(c) {
4015
4028
  return t(c);
@@ -4018,7 +4031,7 @@ function ha(e, n, t) {
4018
4031
  return c === 34 || c === 39 || c === 40 ? Yr(e, u, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : f(c);
4019
4032
  }
4020
4033
  function u(c) {
4021
- return Q(c) ? rt(e, f)(c) : f(c);
4034
+ return Y(c) ? rt(e, f)(c) : f(c);
4022
4035
  }
4023
4036
  function f(c) {
4024
4037
  return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), n) : t(c);
@@ -4086,7 +4099,7 @@ const Lt = {
4086
4099
  function ba(e, n) {
4087
4100
  return t;
4088
4101
  function t(r) {
4089
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), $(e, n, "linePrefix");
4102
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), q(e, n, "linePrefix");
4090
4103
  }
4091
4104
  }
4092
4105
  const kt = {
@@ -4106,7 +4119,7 @@ function wa(e, n, t) {
4106
4119
  return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || D(u)) ? (e.exit("thematicBreak"), n(u)) : t(u);
4107
4120
  }
4108
4121
  function s(u) {
4109
- return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), j(u) ? $(e, a, "whitespace")(u) : a(u));
4122
+ return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), H(u) ? q(e, a, "whitespace")(u) : a(u));
4110
4123
  }
4111
4124
  }
4112
4125
  const re = {
@@ -4154,7 +4167,7 @@ function va(e, n, t) {
4154
4167
  return r.containerState.initialBlankLine = !0, o++, h(p);
4155
4168
  }
4156
4169
  function c(p) {
4157
- return j(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), h) : t(p);
4170
+ return H(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), h) : t(p);
4158
4171
  }
4159
4172
  function h(p) {
4160
4173
  return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
@@ -4164,18 +4177,18 @@ function Ia(e, n, t) {
4164
4177
  const r = this;
4165
4178
  return r.containerState._closeFlow = void 0, e.check(st, i, o);
4166
4179
  function i(a) {
4167
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, $(e, n, "listItemIndent", r.containerState.size + 1)(a);
4180
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, q(e, n, "listItemIndent", r.containerState.size + 1)(a);
4168
4181
  }
4169
4182
  function o(a) {
4170
- return r.containerState.furtherBlankLines || !j(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Sa, n, l)(a));
4183
+ return r.containerState.furtherBlankLines || !H(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(Sa, n, l)(a));
4171
4184
  }
4172
4185
  function l(a) {
4173
- return r.containerState._closeFlow = !0, r.interrupt = void 0, $(e, e.attempt(re, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
4186
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, q(e, e.attempt(re, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
4174
4187
  }
4175
4188
  }
4176
4189
  function Ea(e, n, t) {
4177
4190
  const r = this;
4178
- return $(e, i, "listItemIndent", r.containerState.size + 1);
4191
+ return q(e, i, "listItemIndent", r.containerState.size + 1);
4179
4192
  function i(o) {
4180
4193
  const l = r.events[r.events.length - 1];
4181
4194
  return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? n(o) : t(o);
@@ -4186,10 +4199,10 @@ function Aa(e) {
4186
4199
  }
4187
4200
  function _a(e, n, t) {
4188
4201
  const r = this;
4189
- return $(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
4202
+ return q(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
4190
4203
  function i(o) {
4191
4204
  const l = r.events[r.events.length - 1];
4192
- return !j(o) && l && l[1].type === "listItemPrefixWhitespace" ? n(o) : t(o);
4205
+ return !H(o) && l && l[1].type === "listItemPrefixWhitespace" ? n(o) : t(o);
4193
4206
  }
4194
4207
  }
4195
4208
  const Qn = {
@@ -4238,7 +4251,7 @@ function Pa(e, n, t) {
4238
4251
  return e.enter("setextHeadingLineSequence"), a(u);
4239
4252
  }
4240
4253
  function a(u) {
4241
- return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), j(u) ? $(e, s, "lineSuffix")(u) : s(u));
4254
+ return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), H(u) ? q(e, s, "lineSuffix")(u) : s(u));
4242
4255
  }
4243
4256
  function s(u) {
4244
4257
  return u === null || D(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
@@ -4253,7 +4266,7 @@ function La(e) {
4253
4266
  st,
4254
4267
  r,
4255
4268
  // Try to parse initial flow (essentially, only code).
4256
- e.attempt(this.parser.constructs.flowInitial, i, $(e, e.attempt(this.parser.constructs.flow, i, e.attempt(No, i)), "linePrefix"))
4269
+ e.attempt(this.parser.constructs.flowInitial, i, q(e, e.attempt(this.parser.constructs.flow, i, e.attempt(No, i)), "linePrefix"))
4257
4270
  );
4258
4271
  return t;
4259
4272
  function r(o) {
@@ -4389,17 +4402,17 @@ const Na = {
4389
4402
  60: Ko,
4390
4403
  61: Qn,
4391
4404
  95: kt,
4392
- 96: Vn,
4393
- 126: Vn
4405
+ 96: Un,
4406
+ 126: Un
4394
4407
  }, Ha = {
4395
- 38: Ur,
4408
+ 38: Vr,
4396
4409
  92: qr
4397
4410
  }, $a = {
4398
4411
  [-5]: Lt,
4399
4412
  [-4]: Lt,
4400
4413
  [-3]: Lt,
4401
4414
  33: ga,
4402
- 38: Ur,
4415
+ 38: Vr,
4403
4416
  42: Kt,
4404
4417
  60: [ko, la],
4405
4418
  91: ka,
@@ -4409,15 +4422,15 @@ const Na = {
4409
4422
  96: zo
4410
4423
  }, qa = {
4411
4424
  null: [Kt, Da]
4412
- }, Ua = {
4413
- null: [42, 95]
4414
4425
  }, Va = {
4426
+ null: [42, 95]
4427
+ }, Ua = {
4415
4428
  null: []
4416
4429
  }, Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4417
4430
  __proto__: null,
4418
- attentionMarkers: Ua,
4431
+ attentionMarkers: Va,
4419
4432
  contentInitial: Oa,
4420
- disable: Va,
4433
+ disable: Ua,
4421
4434
  document: Na,
4422
4435
  flow: ja,
4423
4436
  flowInitial: Ba,
@@ -4458,72 +4471,72 @@ function Qa(e, n, t) {
4458
4471
  };
4459
4472
  let f = n.tokenize.call(u, s);
4460
4473
  return n.resolveAll && o.push(n), u;
4461
- function c(T) {
4462
- return l = se(l, T), C(), l[l.length - 1] !== null ? [] : (q(n, 0), u.events = vt(o, u.events, u), u.events);
4474
+ function c(_) {
4475
+ return l = se(l, _), C(), l[l.length - 1] !== null ? [] : (V(n, 0), u.events = vt(o, u.events, u), u.events);
4463
4476
  }
4464
- function h(T, P) {
4465
- return Xa(p(T), P);
4477
+ function h(_, P) {
4478
+ return Xa(p(_), P);
4466
4479
  }
4467
- function p(T) {
4468
- return Ya(l, T);
4480
+ function p(_) {
4481
+ return Ya(l, _);
4469
4482
  }
4470
4483
  function g() {
4471
4484
  const {
4472
- _bufferIndex: T,
4485
+ _bufferIndex: _,
4473
4486
  _index: P,
4474
4487
  line: M,
4475
4488
  column: z,
4476
- offset: A
4489
+ offset: T
4477
4490
  } = r;
4478
4491
  return {
4479
- _bufferIndex: T,
4492
+ _bufferIndex: _,
4480
4493
  _index: P,
4481
4494
  line: M,
4482
4495
  column: z,
4483
- offset: A
4496
+ offset: T
4484
4497
  };
4485
4498
  }
4486
- function x(T) {
4487
- i[T.line] = T.column, y();
4499
+ function x(_) {
4500
+ i[_.line] = _.column, y();
4488
4501
  }
4489
4502
  function C() {
4490
- let T;
4503
+ let _;
4491
4504
  for (; r._index < l.length; ) {
4492
4505
  const P = l[r._index];
4493
4506
  if (typeof P == "string")
4494
- for (T = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === T && r._bufferIndex < P.length; )
4507
+ for (_ = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === _ && r._bufferIndex < P.length; )
4495
4508
  k(P.charCodeAt(r._bufferIndex));
4496
4509
  else
4497
4510
  k(P);
4498
4511
  }
4499
4512
  }
4500
- function k(T) {
4501
- f = f(T);
4513
+ function k(_) {
4514
+ f = f(_);
4502
4515
  }
4503
- function E(T) {
4504
- D(T) ? (r.line++, r.column = 1, r.offset += T === -3 ? 2 : 1, y()) : T !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
4516
+ function E(_) {
4517
+ D(_) ? (r.line++, r.column = 1, r.offset += _ === -3 ? 2 : 1, y()) : _ !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
4505
4518
  // strings.
4506
4519
  /** @type {string} */
4507
- l[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = T;
4520
+ l[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = _;
4508
4521
  }
4509
- function S(T, P) {
4522
+ function S(_, P) {
4510
4523
  const M = P || {};
4511
- return M.type = T, M.start = g(), u.events.push(["enter", M, u]), a.push(M), M;
4524
+ return M.type = _, M.start = g(), u.events.push(["enter", M, u]), a.push(M), M;
4512
4525
  }
4513
- function R(T) {
4526
+ function R(_) {
4514
4527
  const P = a.pop();
4515
4528
  return P.end = g(), u.events.push(["exit", P, u]), P;
4516
4529
  }
4517
- function N(T, P) {
4518
- q(T, P.from);
4530
+ function N(_, P) {
4531
+ V(_, P.from);
4519
4532
  }
4520
- function w(T, P) {
4533
+ function w(_, P) {
4521
4534
  P.restore();
4522
4535
  }
4523
- function B(T, P) {
4536
+ function B(_, P) {
4524
4537
  return M;
4525
- function M(z, A, U) {
4526
- let G, ue, ye, d;
4538
+ function M(z, T, j) {
4539
+ let U, ue, ye, d;
4527
4540
  return Array.isArray(z) ? (
4528
4541
  /* c8 ignore next 1 */
4529
4542
  ke(z)
@@ -4537,17 +4550,17 @@ function Qa(e, n, t) {
4537
4550
  function ce(K) {
4538
4551
  return We;
4539
4552
  function We(Se) {
4540
- const Re = Se !== null && K[Se], Ne = Se !== null && K.null, ct = [
4553
+ const Ne = Se !== null && K[Se], Oe = Se !== null && K.null, ct = [
4541
4554
  // To do: add more extension tests.
4542
4555
  /* c8 ignore next 2 */
4543
- ...Array.isArray(Re) ? Re : Re ? [Re] : [],
4544
- ...Array.isArray(Ne) ? Ne : Ne ? [Ne] : []
4556
+ ...Array.isArray(Ne) ? Ne : Ne ? [Ne] : [],
4557
+ ...Array.isArray(Oe) ? Oe : Oe ? [Oe] : []
4545
4558
  ];
4546
4559
  return ke(ct)(Se);
4547
4560
  }
4548
4561
  }
4549
4562
  function ke(K) {
4550
- return G = K, ue = 0, K.length === 0 ? U : m(K[ue]);
4563
+ return U = K, ue = 0, K.length === 0 ? j : m(K[ue]);
4551
4564
  }
4552
4565
  function m(K) {
4553
4566
  return We;
@@ -4564,24 +4577,24 @@ function Qa(e, n, t) {
4564
4577
  }
4565
4578
  }
4566
4579
  function fe(K) {
4567
- return T(ye, d), A;
4580
+ return _(ye, d), T;
4568
4581
  }
4569
4582
  function Ae(K) {
4570
- return d.restore(), ++ue < G.length ? m(G[ue]) : U;
4583
+ return d.restore(), ++ue < U.length ? m(U[ue]) : j;
4571
4584
  }
4572
4585
  }
4573
4586
  }
4574
- function q(T, P) {
4575
- T.resolveAll && !o.includes(T) && o.push(T), T.resolve && ae(u.events, P, u.events.length - P, T.resolve(u.events.slice(P), u)), T.resolveTo && (u.events = T.resolveTo(u.events, u));
4587
+ function V(_, P) {
4588
+ _.resolveAll && !o.includes(_) && o.push(_), _.resolve && ae(u.events, P, u.events.length - P, _.resolve(u.events.slice(P), u)), _.resolveTo && (u.events = _.resolveTo(u.events, u));
4576
4589
  }
4577
4590
  function L() {
4578
- const T = g(), P = u.previous, M = u.currentConstruct, z = u.events.length, A = Array.from(a);
4591
+ const _ = g(), P = u.previous, M = u.currentConstruct, z = u.events.length, T = Array.from(a);
4579
4592
  return {
4580
4593
  from: z,
4581
- restore: U
4594
+ restore: j
4582
4595
  };
4583
- function U() {
4584
- r = T, u.previous = P, u.currentConstruct = M, u.events.length = z, a = A, y();
4596
+ function j() {
4597
+ r = _, u.previous = P, u.currentConstruct = M, u.events.length = z, a = T, y();
4585
4598
  }
4586
4599
  }
4587
4600
  function y() {
@@ -4665,7 +4678,7 @@ function Ga(e) {
4665
4678
  }
4666
4679
  }
4667
4680
  function Ja(e) {
4668
- for (; !Vr(e); )
4681
+ for (; !Ur(e); )
4669
4682
  ;
4670
4683
  return e;
4671
4684
  }
@@ -4731,7 +4744,7 @@ function rs(e) {
4731
4744
  autolinkProtocol: L,
4732
4745
  autolinkEmail: L,
4733
4746
  atxHeading: o(Sn),
4734
- blockQuote: o(Ne),
4747
+ blockQuote: o(Oe),
4735
4748
  characterEscape: L,
4736
4749
  characterReference: L,
4737
4750
  codeFenced: o(ct),
@@ -4773,7 +4786,7 @@ function rs(e) {
4773
4786
  atxHeading: s(),
4774
4787
  atxHeadingSequence: N,
4775
4788
  autolink: s(),
4776
- autolinkEmail: Re,
4789
+ autolinkEmail: Ne,
4777
4790
  autolinkProtocol: Se,
4778
4791
  blockQuote: s(),
4779
4792
  characterEscapeValue: y,
@@ -4787,7 +4800,7 @@ function rs(e) {
4787
4800
  codeFencedFenceMeta: g,
4788
4801
  codeFlowValue: y,
4789
4802
  codeIndented: s(k),
4790
- codeText: s(A),
4803
+ codeText: s(T),
4791
4804
  codeTextData: y,
4792
4805
  data: y,
4793
4806
  definition: s(),
@@ -4801,11 +4814,11 @@ function rs(e) {
4801
4814
  htmlFlowData: y,
4802
4815
  htmlText: s(z),
4803
4816
  htmlTextData: y,
4804
- image: s(G),
4817
+ image: s(U),
4805
4818
  label: ye,
4806
4819
  labelText: ue,
4807
- lineEnding: T,
4808
- link: s(U),
4820
+ lineEnding: _,
4821
+ link: s(j),
4809
4822
  listItem: s(),
4810
4823
  listOrdered: s(),
4811
4824
  listUnordered: s(),
@@ -4814,7 +4827,7 @@ function rs(e) {
4814
4827
  resourceDestinationString: d,
4815
4828
  resourceTitleString: ce,
4816
4829
  resource: ke,
4817
- setextHeading: s(q),
4830
+ setextHeading: s(V),
4818
4831
  setextHeadingLineSequence: B,
4819
4832
  setextHeadingText: w,
4820
4833
  strong: s(),
@@ -4825,12 +4838,12 @@ function rs(e) {
4825
4838
  const t = {};
4826
4839
  return r;
4827
4840
  function r(b) {
4828
- let _ = {
4841
+ let A = {
4829
4842
  type: "root",
4830
4843
  children: []
4831
4844
  };
4832
4845
  const O = {
4833
- stack: [_],
4846
+ stack: [A],
4834
4847
  tokenStack: [],
4835
4848
  config: n,
4836
4849
  enter: a,
@@ -4838,27 +4851,27 @@ function rs(e) {
4838
4851
  buffer: l,
4839
4852
  resume: f,
4840
4853
  data: t
4841
- }, H = [];
4842
- let V = -1;
4843
- for (; ++V < b.length; )
4844
- if (b[V][1].type === "listOrdered" || b[V][1].type === "listUnordered")
4845
- if (b[V][0] === "enter")
4846
- H.push(V);
4854
+ }, $ = [];
4855
+ let W = -1;
4856
+ for (; ++W < b.length; )
4857
+ if (b[W][1].type === "listOrdered" || b[W][1].type === "listUnordered")
4858
+ if (b[W][0] === "enter")
4859
+ $.push(W);
4847
4860
  else {
4848
- const pe = H.pop();
4849
- V = i(b, pe, V);
4861
+ const pe = $.pop();
4862
+ W = i(b, pe, W);
4850
4863
  }
4851
- for (V = -1; ++V < b.length; ) {
4852
- const pe = n[b[V][0]];
4853
- Jr.call(pe, b[V][1].type) && pe[b[V][1].type].call(Object.assign({
4854
- sliceSerialize: b[V][2].sliceSerialize
4855
- }, O), b[V][1]);
4864
+ for (W = -1; ++W < b.length; ) {
4865
+ const pe = n[b[W][0]];
4866
+ Jr.call(pe, b[W][1].type) && pe[b[W][1].type].call(Object.assign({
4867
+ sliceSerialize: b[W][2].sliceSerialize
4868
+ }, O), b[W][1]);
4856
4869
  }
4857
4870
  if (O.tokenStack.length > 0) {
4858
4871
  const pe = O.tokenStack[O.tokenStack.length - 1];
4859
4872
  (pe[1] || Xn).call(O, void 0, pe[0]);
4860
4873
  }
4861
- for (_.position = {
4874
+ for (A.position = {
4862
4875
  start: ve(b.length > 0 ? b[0][1].start : {
4863
4876
  line: 1,
4864
4877
  column: 1,
@@ -4869,23 +4882,23 @@ function rs(e) {
4869
4882
  column: 1,
4870
4883
  offset: 0
4871
4884
  })
4872
- }, V = -1; ++V < n.transforms.length; )
4873
- _ = n.transforms[V](_) || _;
4874
- return _;
4875
- }
4876
- function i(b, _, O) {
4877
- let H = _ - 1, V = -1, pe = !1, _e, xe, Qe, Ye;
4878
- for (; ++H <= O; ) {
4879
- const le = b[H];
4885
+ }, W = -1; ++W < n.transforms.length; )
4886
+ A = n.transforms[W](A) || A;
4887
+ return A;
4888
+ }
4889
+ function i(b, A, O) {
4890
+ let $ = A - 1, W = -1, pe = !1, _e, xe, Qe, Ye;
4891
+ for (; ++$ <= O; ) {
4892
+ const le = b[$];
4880
4893
  switch (le[1].type) {
4881
4894
  case "listUnordered":
4882
4895
  case "listOrdered":
4883
4896
  case "blockQuote": {
4884
- le[0] === "enter" ? V++ : V--, Ye = void 0;
4897
+ le[0] === "enter" ? W++ : W--, Ye = void 0;
4885
4898
  break;
4886
4899
  }
4887
4900
  case "lineEndingBlank": {
4888
- le[0] === "enter" && (_e && !Ye && !V && !Qe && (Qe = H), Ye = void 0);
4901
+ le[0] === "enter" && (_e && !Ye && !W && !Qe && (Qe = $), Ye = void 0);
4889
4902
  break;
4890
4903
  }
4891
4904
  case "linePrefix":
@@ -4897,36 +4910,36 @@ function rs(e) {
4897
4910
  default:
4898
4911
  Ye = void 0;
4899
4912
  }
4900
- if (!V && le[0] === "enter" && le[1].type === "listItemPrefix" || V === -1 && le[0] === "exit" && (le[1].type === "listUnordered" || le[1].type === "listOrdered")) {
4913
+ if (!W && le[0] === "enter" && le[1].type === "listItemPrefix" || W === -1 && le[0] === "exit" && (le[1].type === "listUnordered" || le[1].type === "listOrdered")) {
4901
4914
  if (_e) {
4902
- let Oe = H;
4903
- for (xe = void 0; Oe--; ) {
4904
- const be = b[Oe];
4915
+ let Be = $;
4916
+ for (xe = void 0; Be--; ) {
4917
+ const be = b[Be];
4905
4918
  if (be[1].type === "lineEnding" || be[1].type === "lineEndingBlank") {
4906
4919
  if (be[0] === "exit") continue;
4907
- xe && (b[xe][1].type = "lineEndingBlank", pe = !0), be[1].type = "lineEnding", xe = Oe;
4920
+ xe && (b[xe][1].type = "lineEndingBlank", pe = !0), be[1].type = "lineEnding", xe = Be;
4908
4921
  } else if (!(be[1].type === "linePrefix" || be[1].type === "blockQuotePrefix" || be[1].type === "blockQuotePrefixWhitespace" || be[1].type === "blockQuoteMarker" || be[1].type === "listItemIndent")) break;
4909
4922
  }
4910
- Qe && (!xe || Qe < xe) && (_e._spread = !0), _e.end = Object.assign({}, xe ? b[xe][1].start : le[1].end), b.splice(xe || H, 0, ["exit", _e, le[2]]), H++, O++;
4923
+ Qe && (!xe || Qe < xe) && (_e._spread = !0), _e.end = Object.assign({}, xe ? b[xe][1].start : le[1].end), b.splice(xe || $, 0, ["exit", _e, le[2]]), $++, O++;
4911
4924
  }
4912
4925
  if (le[1].type === "listItemPrefix") {
4913
- const Oe = {
4926
+ const Be = {
4914
4927
  type: "listItem",
4915
4928
  _spread: !1,
4916
4929
  start: Object.assign({}, le[1].start),
4917
4930
  // @ts-expect-error: we’ll add `end` in a second.
4918
4931
  end: void 0
4919
4932
  };
4920
- _e = Oe, b.splice(H, 0, ["enter", Oe, le[2]]), H++, O++, Qe = void 0, Ye = !0;
4933
+ _e = Be, b.splice($, 0, ["enter", Be, le[2]]), $++, O++, Qe = void 0, Ye = !0;
4921
4934
  }
4922
4935
  }
4923
4936
  }
4924
- return b[_][1]._spread = pe, O;
4937
+ return b[A][1]._spread = pe, O;
4925
4938
  }
4926
- function o(b, _) {
4939
+ function o(b, A) {
4927
4940
  return O;
4928
- function O(H) {
4929
- a.call(this, b(H), H), _ && _.call(this, H);
4941
+ function O($) {
4942
+ a.call(this, b($), $), A && A.call(this, $);
4930
4943
  }
4931
4944
  }
4932
4945
  function l() {
@@ -4935,23 +4948,23 @@ function rs(e) {
4935
4948
  children: []
4936
4949
  });
4937
4950
  }
4938
- function a(b, _, O) {
4939
- this.stack[this.stack.length - 1].children.push(b), this.stack.push(b), this.tokenStack.push([_, O || void 0]), b.position = {
4940
- start: ve(_.start),
4951
+ function a(b, A, O) {
4952
+ this.stack[this.stack.length - 1].children.push(b), this.stack.push(b), this.tokenStack.push([A, O || void 0]), b.position = {
4953
+ start: ve(A.start),
4941
4954
  // @ts-expect-error: `end` will be patched later.
4942
4955
  end: void 0
4943
4956
  };
4944
4957
  }
4945
4958
  function s(b) {
4946
- return _;
4947
- function _(O) {
4959
+ return A;
4960
+ function A(O) {
4948
4961
  b && b.call(this, O), u.call(this, O);
4949
4962
  }
4950
4963
  }
4951
- function u(b, _) {
4952
- const O = this.stack.pop(), H = this.tokenStack.pop();
4953
- if (H)
4954
- H[0].type !== b.type && (_ ? _.call(this, b, H[0]) : (H[1] || Xn).call(this, b, H[0]));
4964
+ function u(b, A) {
4965
+ const O = this.stack.pop(), $ = this.tokenStack.pop();
4966
+ if ($)
4967
+ $[0].type !== b.type && (A ? A.call(this, b, $[0]) : ($[1] || Xn).call(this, b, $[0]));
4955
4968
  else throw new Error("Cannot close `" + b.type + "` (" + nt({
4956
4969
  start: b.start,
4957
4970
  end: b.end
@@ -4966,132 +4979,132 @@ function rs(e) {
4966
4979
  }
4967
4980
  function h(b) {
4968
4981
  if (this.data.expectingFirstListItemValue) {
4969
- const _ = this.stack[this.stack.length - 2];
4970
- _.start = Number.parseInt(this.sliceSerialize(b), 10), this.data.expectingFirstListItemValue = void 0;
4982
+ const A = this.stack[this.stack.length - 2];
4983
+ A.start = Number.parseInt(this.sliceSerialize(b), 10), this.data.expectingFirstListItemValue = void 0;
4971
4984
  }
4972
4985
  }
4973
4986
  function p() {
4974
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
4975
- _.lang = b;
4987
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
4988
+ A.lang = b;
4976
4989
  }
4977
4990
  function g() {
4978
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
4979
- _.meta = b;
4991
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
4992
+ A.meta = b;
4980
4993
  }
4981
4994
  function x() {
4982
4995
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
4983
4996
  }
4984
4997
  function C() {
4985
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
4986
- _.value = b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
4998
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
4999
+ A.value = b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
4987
5000
  }
4988
5001
  function k() {
4989
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
4990
- _.value = b.replace(/(\r?\n|\r)$/g, "");
5002
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
5003
+ A.value = b.replace(/(\r?\n|\r)$/g, "");
4991
5004
  }
4992
5005
  function E(b) {
4993
- const _ = this.resume(), O = this.stack[this.stack.length - 1];
4994
- O.label = _, O.identifier = de(this.sliceSerialize(b)).toLowerCase();
5006
+ const A = this.resume(), O = this.stack[this.stack.length - 1];
5007
+ O.label = A, O.identifier = de(this.sliceSerialize(b)).toLowerCase();
4995
5008
  }
4996
5009
  function S() {
4997
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
4998
- _.title = b;
5010
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
5011
+ A.title = b;
4999
5012
  }
5000
5013
  function R() {
5001
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
5002
- _.url = b;
5014
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
5015
+ A.url = b;
5003
5016
  }
5004
5017
  function N(b) {
5005
- const _ = this.stack[this.stack.length - 1];
5006
- if (!_.depth) {
5018
+ const A = this.stack[this.stack.length - 1];
5019
+ if (!A.depth) {
5007
5020
  const O = this.sliceSerialize(b).length;
5008
- _.depth = O;
5021
+ A.depth = O;
5009
5022
  }
5010
5023
  }
5011
5024
  function w() {
5012
5025
  this.data.setextHeadingSlurpLineEnding = !0;
5013
5026
  }
5014
5027
  function B(b) {
5015
- const _ = this.stack[this.stack.length - 1];
5016
- _.depth = this.sliceSerialize(b).codePointAt(0) === 61 ? 1 : 2;
5028
+ const A = this.stack[this.stack.length - 1];
5029
+ A.depth = this.sliceSerialize(b).codePointAt(0) === 61 ? 1 : 2;
5017
5030
  }
5018
- function q() {
5031
+ function V() {
5019
5032
  this.data.setextHeadingSlurpLineEnding = void 0;
5020
5033
  }
5021
5034
  function L(b) {
5022
5035
  const O = this.stack[this.stack.length - 1].children;
5023
- let H = O[O.length - 1];
5024
- (!H || H.type !== "text") && (H = Oi(), H.position = {
5036
+ let $ = O[O.length - 1];
5037
+ (!$ || $.type !== "text") && ($ = Oi(), $.position = {
5025
5038
  start: ve(b.start),
5026
5039
  // @ts-expect-error: we’ll add `end` later.
5027
5040
  end: void 0
5028
- }, O.push(H)), this.stack.push(H);
5041
+ }, O.push($)), this.stack.push($);
5029
5042
  }
5030
5043
  function y(b) {
5031
- const _ = this.stack.pop();
5032
- _.value += this.sliceSerialize(b), _.position.end = ve(b.end);
5044
+ const A = this.stack.pop();
5045
+ A.value += this.sliceSerialize(b), A.position.end = ve(b.end);
5033
5046
  }
5034
- function T(b) {
5035
- const _ = this.stack[this.stack.length - 1];
5047
+ function _(b) {
5048
+ const A = this.stack[this.stack.length - 1];
5036
5049
  if (this.data.atHardBreak) {
5037
- const O = _.children[_.children.length - 1];
5050
+ const O = A.children[A.children.length - 1];
5038
5051
  O.position.end = ve(b.end), this.data.atHardBreak = void 0;
5039
5052
  return;
5040
5053
  }
5041
- !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(_.type) && (L.call(this, b), y.call(this, b));
5054
+ !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(A.type) && (L.call(this, b), y.call(this, b));
5042
5055
  }
5043
5056
  function P() {
5044
5057
  this.data.atHardBreak = !0;
5045
5058
  }
5046
5059
  function M() {
5047
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
5048
- _.value = b;
5060
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
5061
+ A.value = b;
5049
5062
  }
5050
5063
  function z() {
5051
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
5052
- _.value = b;
5064
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
5065
+ A.value = b;
5053
5066
  }
5054
- function A() {
5055
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
5056
- _.value = b;
5067
+ function T() {
5068
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
5069
+ A.value = b;
5057
5070
  }
5058
- function U() {
5071
+ function j() {
5059
5072
  const b = this.stack[this.stack.length - 1];
5060
5073
  if (this.data.inReference) {
5061
- const _ = this.data.referenceType || "shortcut";
5062
- b.type += "Reference", b.referenceType = _, delete b.url, delete b.title;
5074
+ const A = this.data.referenceType || "shortcut";
5075
+ b.type += "Reference", b.referenceType = A, delete b.url, delete b.title;
5063
5076
  } else
5064
5077
  delete b.identifier, delete b.label;
5065
5078
  this.data.referenceType = void 0;
5066
5079
  }
5067
- function G() {
5080
+ function U() {
5068
5081
  const b = this.stack[this.stack.length - 1];
5069
5082
  if (this.data.inReference) {
5070
- const _ = this.data.referenceType || "shortcut";
5071
- b.type += "Reference", b.referenceType = _, delete b.url, delete b.title;
5083
+ const A = this.data.referenceType || "shortcut";
5084
+ b.type += "Reference", b.referenceType = A, delete b.url, delete b.title;
5072
5085
  } else
5073
5086
  delete b.identifier, delete b.label;
5074
5087
  this.data.referenceType = void 0;
5075
5088
  }
5076
5089
  function ue(b) {
5077
- const _ = this.sliceSerialize(b), O = this.stack[this.stack.length - 2];
5078
- O.label = es(_), O.identifier = de(_).toLowerCase();
5090
+ const A = this.sliceSerialize(b), O = this.stack[this.stack.length - 2];
5091
+ O.label = es(A), O.identifier = de(A).toLowerCase();
5079
5092
  }
5080
5093
  function ye() {
5081
- const b = this.stack[this.stack.length - 1], _ = this.resume(), O = this.stack[this.stack.length - 1];
5094
+ const b = this.stack[this.stack.length - 1], A = this.resume(), O = this.stack[this.stack.length - 1];
5082
5095
  if (this.data.inReference = !0, O.type === "link") {
5083
- const H = b.children;
5084
- O.children = H;
5096
+ const $ = b.children;
5097
+ O.children = $;
5085
5098
  } else
5086
- O.alt = _;
5099
+ O.alt = A;
5087
5100
  }
5088
5101
  function d() {
5089
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
5090
- _.url = b;
5102
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
5103
+ A.url = b;
5091
5104
  }
5092
5105
  function ce() {
5093
- const b = this.resume(), _ = this.stack[this.stack.length - 1];
5094
- _.title = b;
5106
+ const b = this.resume(), A = this.stack[this.stack.length - 1];
5107
+ A.title = b;
5095
5108
  }
5096
5109
  function ke() {
5097
5110
  this.data.inReference = void 0;
@@ -5100,34 +5113,34 @@ function rs(e) {
5100
5113
  this.data.referenceType = "collapsed";
5101
5114
  }
5102
5115
  function fe(b) {
5103
- const _ = this.resume(), O = this.stack[this.stack.length - 1];
5104
- O.label = _, O.identifier = de(this.sliceSerialize(b)).toLowerCase(), this.data.referenceType = "full";
5116
+ const A = this.resume(), O = this.stack[this.stack.length - 1];
5117
+ O.label = A, O.identifier = de(this.sliceSerialize(b)).toLowerCase(), this.data.referenceType = "full";
5105
5118
  }
5106
5119
  function Ae(b) {
5107
5120
  this.data.characterReferenceType = b.type;
5108
5121
  }
5109
5122
  function K(b) {
5110
- const _ = this.sliceSerialize(b), O = this.data.characterReferenceType;
5111
- let H;
5112
- O ? (H = Hr(_, O === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : H = pn(_);
5113
- const V = this.stack[this.stack.length - 1];
5114
- V.value += H;
5123
+ const A = this.sliceSerialize(b), O = this.data.characterReferenceType;
5124
+ let $;
5125
+ O ? ($ = Hr(A, O === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : $ = pn(A);
5126
+ const W = this.stack[this.stack.length - 1];
5127
+ W.value += $;
5115
5128
  }
5116
5129
  function We(b) {
5117
- const _ = this.stack.pop();
5118
- _.position.end = ve(b.end);
5130
+ const A = this.stack.pop();
5131
+ A.position.end = ve(b.end);
5119
5132
  }
5120
5133
  function Se(b) {
5121
5134
  y.call(this, b);
5122
- const _ = this.stack[this.stack.length - 1];
5123
- _.url = this.sliceSerialize(b);
5135
+ const A = this.stack[this.stack.length - 1];
5136
+ A.url = this.sliceSerialize(b);
5124
5137
  }
5125
- function Re(b) {
5138
+ function Ne(b) {
5126
5139
  y.call(this, b);
5127
- const _ = this.stack[this.stack.length - 1];
5128
- _.url = "mailto:" + this.sliceSerialize(b);
5140
+ const A = this.stack[this.stack.length - 1];
5141
+ A.url = "mailto:" + this.sliceSerialize(b);
5129
5142
  }
5130
- function Ne() {
5143
+ function Oe() {
5131
5144
  return {
5132
5145
  type: "blockquote",
5133
5146
  children: []
@@ -5347,7 +5360,7 @@ function cs(e, n) {
5347
5360
  return e.patch(n, t), e.applyData(n, t);
5348
5361
  }
5349
5362
  function fs(e, n) {
5350
- const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Ve(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
5363
+ const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Ue(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
5351
5364
  let l, a = e.footnoteCounts.get(r);
5352
5365
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
5353
5366
  const s = {
@@ -5399,13 +5412,13 @@ function ds(e, n) {
5399
5412
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
5400
5413
  if (!r)
5401
5414
  return Zr(e, n);
5402
- const i = { src: Ve(r.url || ""), alt: n.alt };
5415
+ const i = { src: Ue(r.url || ""), alt: n.alt };
5403
5416
  r.title !== null && r.title !== void 0 && (i.title = r.title);
5404
5417
  const o = { type: "element", tagName: "img", properties: i, children: [] };
5405
5418
  return e.patch(n, o), e.applyData(n, o);
5406
5419
  }
5407
5420
  function ms(e, n) {
5408
- const t = { src: Ve(n.url) };
5421
+ const t = { src: Ue(n.url) };
5409
5422
  n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
5410
5423
  const r = { type: "element", tagName: "img", properties: t, children: [] };
5411
5424
  return e.patch(n, r), e.applyData(n, r);
@@ -5425,7 +5438,7 @@ function ys(e, n) {
5425
5438
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
5426
5439
  if (!r)
5427
5440
  return Zr(e, n);
5428
- const i = { href: Ve(r.url || "") };
5441
+ const i = { href: Ue(r.url || "") };
5429
5442
  r.title !== null && r.title !== void 0 && (i.title = r.title);
5430
5443
  const o = {
5431
5444
  type: "element",
@@ -5436,7 +5449,7 @@ function ys(e, n) {
5436
5449
  return e.patch(n, o), e.applyData(n, o);
5437
5450
  }
5438
5451
  function ks(e, n) {
5439
- const t = { href: Ve(n.url) };
5452
+ const t = { href: Ue(n.url) };
5440
5453
  n.title !== null && n.title !== void 0 && (t.title = n.title);
5441
5454
  const r = {
5442
5455
  type: "element",
@@ -5851,7 +5864,7 @@ function Os(e) {
5851
5864
  );
5852
5865
  if (!u)
5853
5866
  continue;
5854
- const f = e.all(u), c = String(u.identifier).toUpperCase(), h = Ve(c.toLowerCase());
5867
+ const f = e.all(u), c = String(u.identifier).toUpperCase(), h = Ue(c.toLowerCase());
5855
5868
  let p = 0;
5856
5869
  const g = [], x = e.footnoteCounts.get(c);
5857
5870
  for (; x !== void 0 && ++p <= x; ) {
@@ -5999,7 +6012,7 @@ function $s() {
5999
6012
  function qs(e) {
6000
6013
  return e !== null && typeof e == "object" && "type" in e;
6001
6014
  }
6002
- const li = [], Us = !0, Zt = !1, Vs = "skip";
6015
+ const li = [], Vs = !0, Zt = !1, Us = "skip";
6003
6016
  function oi(e, n, t, r) {
6004
6017
  let i;
6005
6018
  typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
@@ -6032,7 +6045,7 @@ function oi(e, n, t, r) {
6032
6045
  /** @type {UnistParent} */
6033
6046
  s
6034
6047
  );
6035
- if (k.children && p[0] !== Vs)
6048
+ if (k.children && p[0] !== Us)
6036
6049
  for (x = (r ? k.children.length : -1) + l, C = f.concat(k); x > -1 && x < k.children.length; ) {
6037
6050
  const E = k.children[x];
6038
6051
  if (g = a(E, x, C)(), g[0] === Zt)
@@ -6045,7 +6058,7 @@ function oi(e, n, t, r) {
6045
6058
  }
6046
6059
  }
6047
6060
  function Ws(e) {
6048
- return Array.isArray(e) ? e : typeof e == "number" ? [Us, e] : e == null ? li : [e];
6061
+ return Array.isArray(e) ? e : typeof e == "number" ? [Vs, e] : e == null ? li : [e];
6049
6062
  }
6050
6063
  function kn(e, n, t, r) {
6051
6064
  let i, o, l;
@@ -7424,7 +7437,7 @@ function Au(e, n) {
7424
7437
  components: i,
7425
7438
  ignoreInvalidStyle: !0,
7426
7439
  jsx: v,
7427
- jsxs: Y,
7440
+ jsxs: X,
7428
7441
  passKeys: !0,
7429
7442
  passNode: !0
7430
7443
  });
@@ -7610,9 +7623,9 @@ function Hu(e) {
7610
7623
  }
7611
7624
  function $u(e, n, t, r, i) {
7612
7625
  let o = "";
7613
- if (!si(i) || (/^w/i.test(n) && (t = n + t, n = "", o = "http://"), !Uu(t)))
7626
+ if (!si(i) || (/^w/i.test(n) && (t = n + t, n = "", o = "http://"), !Vu(t)))
7614
7627
  return !1;
7615
- const l = Vu(t + r);
7628
+ const l = Uu(t + r);
7616
7629
  if (!l[0]) return !1;
7617
7630
  const a = {
7618
7631
  type: "link",
@@ -7634,11 +7647,11 @@ function qu(e, n, t, r) {
7634
7647
  }
7635
7648
  );
7636
7649
  }
7637
- function Uu(e) {
7650
+ function Vu(e) {
7638
7651
  const n = e.split(".");
7639
7652
  return !(n.length < 2 || n[n.length - 1] && (/_/.test(n[n.length - 1]) || !/[a-zA-Z\d]/.test(n[n.length - 1])) || n[n.length - 2] && (/_/.test(n[n.length - 2]) || !/[a-zA-Z\d]/.test(n[n.length - 2])));
7640
7653
  }
7641
- function Vu(e) {
7654
+ function Uu(e) {
7642
7655
  const n = /[!"&'),.:;<>?\]}]+$/.exec(e);
7643
7656
  if (!n)
7644
7657
  return [e, void 0];
@@ -8006,7 +8019,7 @@ function ot(e) {
8006
8019
  return "&#x" + e.toString(16).toUpperCase() + ";";
8007
8020
  }
8008
8021
  function Ct(e, n, t) {
8009
- const r = $e(e), i = $e(n);
8022
+ const r = qe(e), i = qe(n);
8010
8023
  return r === void 0 ? i === void 0 ? (
8011
8024
  // Letter inside:
8012
8025
  // we have to encode *both* letters for `_` as it is looser.
@@ -8432,7 +8445,7 @@ function qc(e) {
8432
8445
  );
8433
8446
  return n;
8434
8447
  }
8435
- function Uc(e, n, t) {
8448
+ function Vc(e, n, t) {
8436
8449
  const r = (bi(t) + (t.options.ruleSpaces ? " " : "")).repeat(qc(t));
8437
8450
  return t.options.ruleSpaces ? r.slice(0, -1) : r;
8438
8451
  }
@@ -8456,9 +8469,9 @@ const Ci = {
8456
8469
  root: Bc,
8457
8470
  strong: wi,
8458
8471
  text: $c,
8459
- thematicBreak: Uc
8472
+ thematicBreak: Vc
8460
8473
  };
8461
- function Vc() {
8474
+ function Uc() {
8462
8475
  return {
8463
8476
  enter: {
8464
8477
  table: Wc,
@@ -8469,9 +8482,9 @@ function Vc() {
8469
8482
  exit: {
8470
8483
  codeText: Xc,
8471
8484
  table: Qc,
8472
- tableData: Ut,
8473
- tableHeader: Ut,
8474
- tableRow: Ut
8485
+ tableData: Vt,
8486
+ tableHeader: Vt,
8487
+ tableRow: Vt
8475
8488
  }
8476
8489
  };
8477
8490
  }
@@ -8494,7 +8507,7 @@ function Qc(e) {
8494
8507
  function Yc(e) {
8495
8508
  this.enter({ type: "tableRow", children: [] }, e);
8496
8509
  }
8497
- function Ut(e) {
8510
+ function Vt(e) {
8498
8511
  this.exit(e);
8499
8512
  }
8500
8513
  function mr(e) {
@@ -8643,7 +8656,7 @@ function nf() {
8643
8656
  Mu(),
8644
8657
  tc(),
8645
8658
  lc(),
8646
- Vc(),
8659
+ Uc(),
8647
8660
  Kc()
8648
8661
  ];
8649
8662
  }
@@ -8753,7 +8766,7 @@ function cf(e, n, t) {
8753
8766
  return c === 47 ? (e.consume(c), o ? u : (o = !0, s)) : t(c);
8754
8767
  }
8755
8768
  function u(c) {
8756
- return c === null || xt(c) || Q(c) || Me(c) || St(c) ? t(c) : e.attempt(Si, e.attempt(vi, f), t)(c);
8769
+ return c === null || xt(c) || Y(c) || Me(c) || St(c) ? t(c) : e.attempt(Si, e.attempt(vi, f), t)(c);
8757
8770
  }
8758
8771
  function f(c) {
8759
8772
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), n(c);
@@ -8773,7 +8786,7 @@ function pf(e, n, t) {
8773
8786
  let r, i, o;
8774
8787
  return l;
8775
8788
  function l(u) {
8776
- return u === 46 || u === 95 ? e.check(Ii, s, a)(u) : u === null || Q(u) || Me(u) || u !== 45 && St(u) ? s(u) : (o = !0, e.consume(u), l);
8789
+ return u === 46 || u === 95 ? e.check(Ii, s, a)(u) : u === null || Y(u) || Me(u) || u !== 45 && St(u) ? s(u) : (o = !0, e.consume(u), l);
8777
8790
  }
8778
8791
  function a(u) {
8779
8792
  return u === 95 ? r = !0 : (i = r, r = void 0), e.consume(u), l;
@@ -8786,7 +8799,7 @@ function hf(e, n) {
8786
8799
  let t = 0, r = 0;
8787
8800
  return i;
8788
8801
  function i(l) {
8789
- return l === 40 ? (t++, e.consume(l), i) : l === 41 && r < t ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(Ii, n, o)(l) : l === null || Q(l) || Me(l) ? n(l) : (e.consume(l), i);
8802
+ return l === 40 ? (t++, e.consume(l), i) : l === 41 && r < t ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(Ii, n, o)(l) : l === null || Y(l) || Me(l) ? n(l) : (e.consume(l), i);
8790
8803
  }
8791
8804
  function o(l) {
8792
8805
  return l === 41 && r++, e.consume(l), i;
@@ -8798,11 +8811,11 @@ function df(e, n, t) {
8798
8811
  return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), o) : a === 93 ? (e.consume(a), i) : (
8799
8812
  // `<` is an end.
8800
8813
  a === 60 || // So is whitespace.
8801
- a === null || Q(a) || Me(a) ? n(a) : t(a)
8814
+ a === null || Y(a) || Me(a) ? n(a) : t(a)
8802
8815
  );
8803
8816
  }
8804
8817
  function i(a) {
8805
- return a === null || a === 40 || a === 91 || Q(a) || Me(a) ? n(a) : r(a);
8818
+ return a === null || a === 40 || a === 91 || Y(a) || Me(a) ? n(a) : r(a);
8806
8819
  }
8807
8820
  function o(a) {
8808
8821
  return ne(a) ? l(a) : t(a);
@@ -8821,7 +8834,7 @@ function mf(e, n, t) {
8821
8834
  }
8822
8835
  }
8823
8836
  function _i(e) {
8824
- return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || Q(e);
8837
+ return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || Y(e);
8825
8838
  }
8826
8839
  function Ti(e) {
8827
8840
  return !ne(e);
@@ -8968,7 +8981,7 @@ function bf(e, n, t) {
8968
8981
  o > 999 || // Closing brace with nothing.
8969
8982
  c === 93 && !l || // Space or tab is not supported by GFM for some reason.
8970
8983
  // `\n` and `[` not being supported makes sense.
8971
- c === null || c === 91 || Q(c)
8984
+ c === null || c === 91 || Y(c)
8972
8985
  )
8973
8986
  return t(c);
8974
8987
  if (c === 93) {
@@ -8976,7 +8989,7 @@ function bf(e, n, t) {
8976
8989
  const h = e.exit("gfmFootnoteCallString");
8977
8990
  return i.includes(de(r.sliceSerialize(h))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(c), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), n) : t(c);
8978
8991
  }
8979
- return Q(c) || (l = !0), o++, e.consume(c), c === 92 ? f : u;
8992
+ return Y(c) || (l = !0), o++, e.consume(c), c === 92 ? f : u;
8980
8993
  }
8981
8994
  function f(c) {
8982
8995
  return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, u) : u(c);
@@ -8998,7 +9011,7 @@ function wf(e, n, t) {
8998
9011
  l > 999 || // Closing brace with nothing.
8999
9012
  g === 93 && !a || // Space or tab is not supported by GFM for some reason.
9000
9013
  // `\n` and `[` not being supported makes sense.
9001
- g === null || g === 91 || Q(g)
9014
+ g === null || g === 91 || Y(g)
9002
9015
  )
9003
9016
  return t(g);
9004
9017
  if (g === 93) {
@@ -9006,13 +9019,13 @@ function wf(e, n, t) {
9006
9019
  const x = e.exit("gfmFootnoteDefinitionLabelString");
9007
9020
  return o = de(r.sliceSerialize(x)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), h;
9008
9021
  }
9009
- return Q(g) || (a = !0), l++, e.consume(g), g === 92 ? c : f;
9022
+ return Y(g) || (a = !0), l++, e.consume(g), g === 92 ? c : f;
9010
9023
  }
9011
9024
  function c(g) {
9012
9025
  return g === 91 || g === 92 || g === 93 ? (e.consume(g), l++, f) : f(g);
9013
9026
  }
9014
9027
  function h(g) {
9015
- return g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), i.includes(o) || i.push(o), $(e, p, "gfmFootnoteDefinitionWhitespace")) : t(g);
9028
+ return g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), i.includes(o) || i.push(o), q(e, p, "gfmFootnoteDefinitionWhitespace")) : t(g);
9016
9029
  }
9017
9030
  function p(g) {
9018
9031
  return n(g);
@@ -9026,7 +9039,7 @@ function Sf(e) {
9026
9039
  }
9027
9040
  function vf(e, n, t) {
9028
9041
  const r = this;
9029
- return $(e, i, "gfmFootnoteDefinitionIndent", 5);
9042
+ return q(e, i, "gfmFootnoteDefinitionIndent", 5);
9030
9043
  function i(o) {
9031
9044
  const l = r.events[r.events.length - 1];
9032
9045
  return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? n(o) : t(o);
@@ -9084,11 +9097,11 @@ function If(e) {
9084
9097
  return u === 126 && f[f.length - 1][1].type !== "characterEscape" ? s(g) : (l.enter("strikethroughSequenceTemporary"), p(g));
9085
9098
  }
9086
9099
  function p(g) {
9087
- const x = $e(u);
9100
+ const x = qe(u);
9088
9101
  if (g === 126)
9089
9102
  return c > 1 ? s(g) : (l.consume(g), c++, p);
9090
9103
  if (c < 2 && !t) return s(g);
9091
- const C = l.exit("strikethroughSequenceTemporary"), k = $e(g);
9104
+ const C = l.exit("strikethroughSequenceTemporary"), k = qe(g);
9092
9105
  return C._open = !k || k === 2 && !!x, C._close = !x || x === 2 && !!k, a(g);
9093
9106
  }
9094
9107
  }
@@ -9197,14 +9210,14 @@ function Pf(e, n, t) {
9197
9210
  let i = 0, o = 0, l;
9198
9211
  return a;
9199
9212
  function a(y) {
9200
- let T = r.events.length - 1;
9201
- for (; T > -1; ) {
9202
- const z = r.events[T][1].type;
9213
+ let _ = r.events.length - 1;
9214
+ for (; _ > -1; ) {
9215
+ const z = r.events[_][1].type;
9203
9216
  if (z === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
9204
- z === "linePrefix") T--;
9217
+ z === "linePrefix") _--;
9205
9218
  else break;
9206
9219
  }
9207
- const P = T > -1 ? r.events[T][1].type : null, M = P === "tableHead" || P === "tableRow" ? w : s;
9220
+ const P = _ > -1 ? r.events[_][1].type : null, M = P === "tableHead" || P === "tableRow" ? w : s;
9208
9221
  return M === w && r.parser.lazy[r.now().line] ? t(y) : M(y);
9209
9222
  }
9210
9223
  function s(y) {
@@ -9214,22 +9227,22 @@ function Pf(e, n, t) {
9214
9227
  return y === 124 || (l = !0, o += 1), f(y);
9215
9228
  }
9216
9229
  function f(y) {
9217
- return y === null ? t(y) : D(y) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), p) : t(y) : j(y) ? $(e, f, "whitespace")(y) : (o += 1, l && (l = !1, i += 1), y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(y)));
9230
+ return y === null ? t(y) : D(y) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), p) : t(y) : H(y) ? q(e, f, "whitespace")(y) : (o += 1, l && (l = !1, i += 1), y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(y)));
9218
9231
  }
9219
9232
  function c(y) {
9220
- return y === null || y === 124 || Q(y) ? (e.exit("data"), f(y)) : (e.consume(y), y === 92 ? h : c);
9233
+ return y === null || y === 124 || Y(y) ? (e.exit("data"), f(y)) : (e.consume(y), y === 92 ? h : c);
9221
9234
  }
9222
9235
  function h(y) {
9223
9236
  return y === 92 || y === 124 ? (e.consume(y), c) : c(y);
9224
9237
  }
9225
9238
  function p(y) {
9226
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(y) : (e.enter("tableDelimiterRow"), l = !1, j(y) ? $(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(y) : g(y));
9239
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(y) : (e.enter("tableDelimiterRow"), l = !1, H(y) ? q(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(y) : g(y));
9227
9240
  }
9228
9241
  function g(y) {
9229
9242
  return y === 45 || y === 58 ? C(y) : y === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), x) : N(y);
9230
9243
  }
9231
9244
  function x(y) {
9232
- return j(y) ? $(e, C, "whitespace")(y) : C(y);
9245
+ return H(y) ? q(e, C, "whitespace")(y) : C(y);
9233
9246
  }
9234
9247
  function C(y) {
9235
9248
  return y === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), k) : y === 45 ? (o += 1, k(y)) : y === null || D(y) ? R(y) : N(y);
@@ -9241,7 +9254,7 @@ function Pf(e, n, t) {
9241
9254
  return y === 45 ? (e.consume(y), E) : y === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), S) : (e.exit("tableDelimiterFiller"), S(y));
9242
9255
  }
9243
9256
  function S(y) {
9244
- return j(y) ? $(e, R, "whitespace")(y) : R(y);
9257
+ return H(y) ? q(e, R, "whitespace")(y) : R(y);
9245
9258
  }
9246
9259
  function R(y) {
9247
9260
  return y === 124 ? g(y) : y === null || D(y) ? !l || i !== o ? N(y) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(y)) : N(y);
@@ -9253,13 +9266,13 @@ function Pf(e, n, t) {
9253
9266
  return e.enter("tableRow"), B(y);
9254
9267
  }
9255
9268
  function B(y) {
9256
- return y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), B) : y === null || D(y) ? (e.exit("tableRow"), n(y)) : j(y) ? $(e, B, "whitespace")(y) : (e.enter("data"), q(y));
9269
+ return y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), B) : y === null || D(y) ? (e.exit("tableRow"), n(y)) : H(y) ? q(e, B, "whitespace")(y) : (e.enter("data"), V(y));
9257
9270
  }
9258
- function q(y) {
9259
- return y === null || y === 124 || Q(y) ? (e.exit("data"), B(y)) : (e.consume(y), y === 92 ? L : q);
9271
+ function V(y) {
9272
+ return y === null || y === 124 || Y(y) ? (e.exit("data"), B(y)) : (e.consume(y), y === 92 ? L : V);
9260
9273
  }
9261
9274
  function L(y) {
9262
- return y === 92 || y === 124 ? (e.consume(y), q) : q(y);
9275
+ return y === 92 || y === 124 ? (e.consume(y), V) : V(y);
9263
9276
  }
9264
9277
  }
9265
9278
  function zf(e, n) {
@@ -9287,15 +9300,15 @@ function zf(e, n) {
9287
9300
  }
9288
9301
  function mt(e, n, t, r, i, o) {
9289
9302
  const l = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
9290
- t[0] !== 0 && (o.end = Object.assign({}, He(n.events, t[0])), e.add(t[0], 0, [["exit", o, n]]));
9291
- const s = He(n.events, t[1]);
9303
+ t[0] !== 0 && (o.end = Object.assign({}, $e(n.events, t[0])), e.add(t[0], 0, [["exit", o, n]]));
9304
+ const s = $e(n.events, t[1]);
9292
9305
  if (o = {
9293
9306
  type: l,
9294
9307
  start: Object.assign({}, s),
9295
9308
  // Note: correct end is set later.
9296
9309
  end: Object.assign({}, s)
9297
9310
  }, e.add(t[1], 0, [["enter", o, n]]), t[2] !== 0) {
9298
- const u = He(n.events, t[2]), f = He(n.events, t[3]), c = {
9311
+ const u = $e(n.events, t[2]), f = $e(n.events, t[3]), c = {
9299
9312
  type: a,
9300
9313
  start: Object.assign({}, u),
9301
9314
  end: Object.assign({}, f)
@@ -9309,13 +9322,13 @@ function mt(e, n, t, r, i, o) {
9309
9322
  }
9310
9323
  e.add(t[3] + 1, 0, [["exit", c, n]]);
9311
9324
  }
9312
- return i !== void 0 && (o.end = Object.assign({}, He(n.events, i)), e.add(i, 0, [["exit", o, n]]), o = void 0), o;
9325
+ return i !== void 0 && (o.end = Object.assign({}, $e(n.events, i)), e.add(i, 0, [["exit", o, n]]), o = void 0), o;
9313
9326
  }
9314
9327
  function yr(e, n, t, r, i) {
9315
- const o = [], l = He(n.events, t);
9328
+ const o = [], l = $e(n.events, t);
9316
9329
  i && (i.end = Object.assign({}, l), o.push(["exit", i, n])), r.end = Object.assign({}, l), o.push(["exit", r, n]), e.add(t + 1, 0, o);
9317
9330
  }
9318
- function He(e, n) {
9331
+ function $e(e, n) {
9319
9332
  const t = e[n], r = t[0] === "enter" ? "start" : "end";
9320
9333
  return t[1][r];
9321
9334
  }
@@ -9342,19 +9355,19 @@ function Mf(e, n, t) {
9342
9355
  );
9343
9356
  }
9344
9357
  function o(s) {
9345
- return Q(s) ? (e.enter("taskListCheckValueUnchecked"), e.consume(s), e.exit("taskListCheckValueUnchecked"), l) : s === 88 || s === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(s), e.exit("taskListCheckValueChecked"), l) : t(s);
9358
+ return Y(s) ? (e.enter("taskListCheckValueUnchecked"), e.consume(s), e.exit("taskListCheckValueUnchecked"), l) : s === 88 || s === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(s), e.exit("taskListCheckValueChecked"), l) : t(s);
9346
9359
  }
9347
9360
  function l(s) {
9348
9361
  return s === 93 ? (e.enter("taskListCheckMarker"), e.consume(s), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), a) : t(s);
9349
9362
  }
9350
9363
  function a(s) {
9351
- return D(s) ? n(s) : j(s) ? e.check({
9364
+ return D(s) ? n(s) : H(s) ? e.check({
9352
9365
  tokenize: Ff
9353
9366
  }, n, t)(s) : t(s);
9354
9367
  }
9355
9368
  }
9356
9369
  function Ff(e, n, t) {
9357
- return $(e, r, "whitespace");
9370
+ return q(e, r, "whitespace");
9358
9371
  function r(i) {
9359
9372
  return i === null ? t(i) : n(i);
9360
9373
  }
@@ -9383,14 +9396,14 @@ const Bf = "_wrapper_v5oy7_1", jf = "_table_v5oy7_8", Hf = "_th_v5oy7_14", $f =
9383
9396
  tr: $f,
9384
9397
  td: qf
9385
9398
  };
9386
- function Uf({ part: e }) {
9387
- return /* @__PURE__ */ v("div", { className: Ze.wrapper, children: /* @__PURE__ */ Y("table", { className: Ze.table, children: [
9399
+ function Vf({ part: e }) {
9400
+ return /* @__PURE__ */ v("div", { className: Ze.wrapper, children: /* @__PURE__ */ X("table", { className: Ze.table, children: [
9388
9401
  /* @__PURE__ */ v("thead", { children: /* @__PURE__ */ v("tr", { children: e.columns.map((n) => /* @__PURE__ */ v("th", { className: Ze.th, children: n }, n)) }) }),
9389
9402
  /* @__PURE__ */ v("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ v("tr", { className: Ze.tr, children: e.columns.map((r) => /* @__PURE__ */ v("td", { className: Ze.td, children: String(n[r] ?? "") }, r)) }, t)) })
9390
9403
  ] }) });
9391
9404
  }
9392
- const Vf = "_card_q8nsq_1", Wf = "_header_q8nsq_9", Qf = "_icon_q8nsq_16", Yf = "_title_q8nsq_23", Xf = "_description_q8nsq_29", Gf = "_actions_q8nsq_36", Jf = "_confirm_q8nsq_41", Kf = "_cancel_q8nsq_57", Ie = {
9393
- card: Vf,
9405
+ const Uf = "_card_q8nsq_1", Wf = "_header_q8nsq_9", Qf = "_icon_q8nsq_16", Yf = "_title_q8nsq_23", Xf = "_description_q8nsq_29", Gf = "_actions_q8nsq_36", Jf = "_confirm_q8nsq_41", Kf = "_cancel_q8nsq_57", Ie = {
9406
+ card: Uf,
9394
9407
  header: Wf,
9395
9408
  icon: Qf,
9396
9409
  title: Yf,
@@ -9400,14 +9413,14 @@ const Vf = "_card_q8nsq_1", Wf = "_header_q8nsq_9", Qf = "_icon_q8nsq_16", Yf =
9400
9413
  cancel: Kf
9401
9414
  };
9402
9415
  function Zf({ part: e, onConfirm: n, onCancel: t }) {
9403
- const r = qe(), { proposal: i } = e;
9404
- return /* @__PURE__ */ Y("div", { className: Ie.card, children: [
9405
- /* @__PURE__ */ Y("div", { className: Ie.header, children: [
9416
+ const r = Fe(), { proposal: i } = e;
9417
+ return /* @__PURE__ */ X("div", { className: Ie.card, children: [
9418
+ /* @__PURE__ */ X("div", { className: Ie.header, children: [
9406
9419
  /* @__PURE__ */ v("svg", { className: Ie.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ v("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" }) }),
9407
9420
  /* @__PURE__ */ v("span", { className: Ie.title, children: i.title })
9408
9421
  ] }),
9409
9422
  i.description && /* @__PURE__ */ v("p", { className: Ie.description, children: i.description }),
9410
- /* @__PURE__ */ Y("div", { className: Ie.actions, children: [
9423
+ /* @__PURE__ */ X("div", { className: Ie.actions, children: [
9411
9424
  /* @__PURE__ */ v(
9412
9425
  "button",
9413
9426
  {
@@ -9435,15 +9448,15 @@ const ep = "_activity_2jjfs_1", tp = "_indicator_2jjfs_13", np = "_content_2jjfs
9435
9448
  description: ip
9436
9449
  };
9437
9450
  function lp({ part: e }) {
9438
- return /* @__PURE__ */ Y("div", { className: et.activity, "data-status": e.status, children: [
9451
+ return /* @__PURE__ */ X("div", { className: et.activity, "data-status": e.status, children: [
9439
9452
  /* @__PURE__ */ v("span", { className: et.indicator, "aria-hidden": "true" }),
9440
- /* @__PURE__ */ Y("div", { className: et.content, children: [
9453
+ /* @__PURE__ */ X("div", { className: et.content, children: [
9441
9454
  /* @__PURE__ */ v("div", { className: et.title, children: e.title }),
9442
9455
  e.description && /* @__PURE__ */ v("div", { className: et.description, children: e.description })
9443
9456
  ] })
9444
9457
  ] });
9445
9458
  }
9446
- const op = "_markdown_187bn_1", ap = "_errorText_187bn_83", sp = "_errorIcon_187bn_91", Vt = {
9459
+ const op = "_markdown_187bn_1", ap = "_errorText_187bn_83", sp = "_errorIcon_187bn_91", Ut = {
9447
9460
  markdown: op,
9448
9461
  errorText: ap,
9449
9462
  errorIcon: sp
@@ -9451,9 +9464,9 @@ const op = "_markdown_187bn_1", ap = "_errorText_187bn_83", sp = "_errorIcon_187
9451
9464
  function up({ part: e, onProposalConfirm: n, onProposalCancel: t }) {
9452
9465
  switch (e.type) {
9453
9466
  case "text":
9454
- return /* @__PURE__ */ v("div", { className: Vt.markdown, children: /* @__PURE__ */ v(vu, { remarkPlugins: [Of], children: e.text }) });
9467
+ return /* @__PURE__ */ v("div", { className: Ut.markdown, children: /* @__PURE__ */ v(vu, { remarkPlugins: [Of], children: e.text }) });
9455
9468
  case "table":
9456
- return /* @__PURE__ */ v(Uf, { part: e });
9469
+ return /* @__PURE__ */ v(Vf, { part: e });
9457
9470
  case "activity":
9458
9471
  return /* @__PURE__ */ v(lp, { part: e });
9459
9472
  case "proposal":
@@ -9466,8 +9479,8 @@ function up({ part: e, onProposalConfirm: n, onProposalCancel: t }) {
9466
9479
  }
9467
9480
  );
9468
9481
  case "error":
9469
- return /* @__PURE__ */ Y("span", { className: Vt.errorText, children: [
9470
- /* @__PURE__ */ v(pl, { className: Vt.errorIcon }),
9482
+ return /* @__PURE__ */ X("span", { className: Ut.errorText, children: [
9483
+ /* @__PURE__ */ v(pl, { className: Ut.errorIcon }),
9471
9484
  e.message
9472
9485
  ] });
9473
9486
  }
@@ -9481,22 +9494,22 @@ const cp = "_wrapper_13l1e_1", fp = "_user_13l1e_8", pp = "_assistant_13l1e_12",
9481
9494
  empty: mp
9482
9495
  };
9483
9496
  function gp({ message: e, onProposalConfirm: n, onProposalCancel: t, assistantIcon: r }) {
9484
- const i = e.role === "user";
9485
- return /* @__PURE__ */ Y("div", { className: `${Pe.wrapper} ${i ? Pe.user : Pe.assistant}`, children: [
9486
- !i && /* @__PURE__ */ v("div", { className: Pe.avatar, "aria-hidden": "true", children: r ?? /* @__PURE__ */ v(vr, {}) }),
9487
- /* @__PURE__ */ Y("div", { className: Pe.bubble, children: [
9488
- e.parts.map((o, l) => /* @__PURE__ */ v(
9497
+ const i = Fe(), o = e.role === "user";
9498
+ return /* @__PURE__ */ X("div", { className: `${Pe.wrapper} ${o ? Pe.user : Pe.assistant}`, children: [
9499
+ !o && /* @__PURE__ */ v("div", { className: Pe.avatar, "aria-hidden": "true", children: r ?? /* @__PURE__ */ v(vr, {}) }),
9500
+ /* @__PURE__ */ X("div", { className: Pe.bubble, children: [
9501
+ e.parts.map((l, a) => /* @__PURE__ */ v(
9489
9502
  up,
9490
9503
  {
9491
- part: o,
9504
+ part: l,
9492
9505
  onProposalConfirm: n,
9493
9506
  onProposalCancel: t
9494
9507
  },
9495
- l
9508
+ a
9496
9509
  )),
9497
9510
  e.parts.length === 0 && /* @__PURE__ */ v("span", { className: Pe.empty })
9498
9511
  ] }),
9499
- i && /* @__PURE__ */ v("div", { className: Pe.avatar, children: "You" })
9512
+ o && /* @__PURE__ */ v("div", { className: Pe.avatar, children: i.userLabel })
9500
9513
  ] });
9501
9514
  }
9502
9515
  const yp = "_wrapper_1dvvu_1", kp = "_dot_1dvvu_8", xp = "_connectingLabel_1dvvu_19", tt = {
@@ -9505,8 +9518,8 @@ const yp = "_wrapper_1dvvu_1", kp = "_dot_1dvvu_8", xp = "_connectingLabel_1dvvu
9505
9518
  connectingLabel: xp
9506
9519
  };
9507
9520
  function bp({ connecting: e = !1 }) {
9508
- const n = qe();
9509
- return /* @__PURE__ */ Y(
9521
+ const n = Fe();
9522
+ return /* @__PURE__ */ X(
9510
9523
  "div",
9511
9524
  {
9512
9525
  className: tt.wrapper,
@@ -9527,11 +9540,11 @@ const wp = "_list_1f8gn_1", Cp = "_empty_1f8gn_11", Sp = "_hint_1f8gn_24", vp =
9527
9540
  typing: vp
9528
9541
  };
9529
9542
  function Ip({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r, onProposalCancel: i, assistantIcon: o }) {
9530
- const l = qe(), a = xr(null);
9543
+ const l = Fe(), a = xr(null);
9531
9544
  return ji(() => {
9532
9545
  a.current?.scrollIntoView({ behavior: "smooth" });
9533
- }, [e, n]), /* @__PURE__ */ Y("div", { className: gt.list, children: [
9534
- e.length === 0 && /* @__PURE__ */ Y("div", { className: gt.empty, children: [
9546
+ }, [e, n]), /* @__PURE__ */ X("div", { className: gt.list, children: [
9547
+ e.length === 0 && /* @__PURE__ */ X("div", { className: gt.empty, children: [
9535
9548
  /* @__PURE__ */ v("p", { children: l.emptyStateText }),
9536
9549
  /* @__PURE__ */ v("p", { className: gt.hint, children: /* @__PURE__ */ v("em", { children: l.emptyStateHint }) })
9537
9550
  ] }),
@@ -9561,7 +9574,7 @@ const Ep = "_wrapper_v8iyr_1", Ap = "_textarea_v8iyr_11", _p = "_toolbar_v8iyr_3
9561
9574
  stopIcon: Mp
9562
9575
  };
9563
9576
  function Fp({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeholder: o, actions: l, sendIcon: a }) {
9564
- const s = qe(), u = [
9577
+ const s = Fe(), u = [
9565
9578
  { icon: /* @__PURE__ */ v(ll, {}), label: s.actionAddFile },
9566
9579
  { icon: /* @__PURE__ */ v(ol, {}), label: s.actionQuickActions },
9567
9580
  { icon: /* @__PURE__ */ v(al, {}), label: s.actionNew },
@@ -9570,7 +9583,7 @@ function Fp({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9570
9583
  ], f = l ?? u, c = (h) => {
9571
9584
  h.key === "Enter" && !h.shiftKey && (h.preventDefault(), t());
9572
9585
  };
9573
- return /* @__PURE__ */ Y("div", { className: we.wrapper, children: [
9586
+ return /* @__PURE__ */ X("div", { className: we.wrapper, children: [
9574
9587
  /* @__PURE__ */ v(
9575
9588
  "textarea",
9576
9589
  {
@@ -9584,8 +9597,8 @@ function Fp({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9584
9597
  "aria-label": s.sendMessage
9585
9598
  }
9586
9599
  ),
9587
- /* @__PURE__ */ Y("div", { className: we.toolbar, children: [
9588
- f.length > 0 && /* @__PURE__ */ v("div", { className: we.actions, children: f.map((h, p) => /* @__PURE__ */ Y(
9600
+ /* @__PURE__ */ X("div", { className: we.toolbar, children: [
9601
+ f.length > 0 && /* @__PURE__ */ v("div", { className: we.actions, children: f.map((h, p) => /* @__PURE__ */ X(
9589
9602
  "button",
9590
9603
  {
9591
9604
  className: we.actionBtn,
@@ -9600,7 +9613,7 @@ function Fp({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9600
9613
  },
9601
9614
  p
9602
9615
  )) }),
9603
- i && r ? /* @__PURE__ */ Y(
9616
+ i && r ? /* @__PURE__ */ X(
9604
9617
  "button",
9605
9618
  {
9606
9619
  className: we.stopBtn,
@@ -9612,7 +9625,7 @@ function Fp({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9612
9625
  /* @__PURE__ */ v("span", { children: s.stopMessage })
9613
9626
  ]
9614
9627
  }
9615
- ) : /* @__PURE__ */ Y(
9628
+ ) : /* @__PURE__ */ X(
9616
9629
  "button",
9617
9630
  {
9618
9631
  className: we.sendBtn,
@@ -9636,8 +9649,8 @@ const Rp = "_wrapper_1kefv_1", Np = "_icon_1kefv_14", Op = "_message_1kefv_20",
9636
9649
  dismiss: Bp
9637
9650
  };
9638
9651
  function jp({ message: e, onDismiss: n }) {
9639
- const t = qe();
9640
- return /* @__PURE__ */ Y("div", { className: yt.wrapper, role: "alert", children: [
9652
+ const t = Fe();
9653
+ return /* @__PURE__ */ X("div", { className: yt.wrapper, role: "alert", children: [
9641
9654
  /* @__PURE__ */ v("svg", { className: yt.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ v("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" }) }),
9642
9655
  /* @__PURE__ */ v("span", { className: yt.message, children: e }),
9643
9656
  n && /* @__PURE__ */ v("button", { className: yt.dismiss, onClick: n, "aria-label": t.errorDismiss, children: /* @__PURE__ */ v("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ v("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" }) }) })
@@ -9664,7 +9677,7 @@ function qp({
9664
9677
  className: g,
9665
9678
  style: x
9666
9679
  }) {
9667
- return /* @__PURE__ */ Y(
9680
+ return /* @__PURE__ */ X(
9668
9681
  "div",
9669
9682
  {
9670
9683
  className: [$p.chat, g].filter(Boolean).join(" "),
@@ -9699,25 +9712,25 @@ function qp({
9699
9712
  }
9700
9713
  );
9701
9714
  }
9702
- const Up = "_header_f9hy1_1", Vp = "_left_f9hy1_12", Wp = "_icon_f9hy1_18", Qp = "_title_f9hy1_23", Yp = "_resetBtn_f9hy1_29", Xp = "_actions_f9hy1_50", je = {
9703
- header: Up,
9704
- left: Vp,
9715
+ const Vp = "_header_f9hy1_1", Up = "_left_f9hy1_12", Wp = "_icon_f9hy1_18", Qp = "_title_f9hy1_23", Yp = "_resetBtn_f9hy1_29", Xp = "_actions_f9hy1_50", He = {
9716
+ header: Vp,
9717
+ left: Up,
9705
9718
  icon: Wp,
9706
9719
  title: Qp,
9707
9720
  resetBtn: Yp,
9708
9721
  actions: Xp
9709
9722
  };
9710
9723
  function Gp({ title: e, onMinimize: n, isMinimized: t, icon: r }) {
9711
- const i = qe();
9712
- return /* @__PURE__ */ Y("div", { className: je.header, children: [
9713
- /* @__PURE__ */ Y("div", { className: je.left, children: [
9714
- /* @__PURE__ */ v("span", { className: je.icon, "aria-hidden": "true", children: r ?? /* @__PURE__ */ v(vr, {}) }),
9715
- /* @__PURE__ */ v("span", { className: je.title, children: e ?? i.sidebarTitle })
9724
+ const i = Fe();
9725
+ return /* @__PURE__ */ X("div", { className: He.header, children: [
9726
+ /* @__PURE__ */ X("div", { className: He.left, children: [
9727
+ /* @__PURE__ */ v("span", { className: He.icon, "aria-hidden": "true", children: r ?? /* @__PURE__ */ v(vr, {}) }),
9728
+ /* @__PURE__ */ v("span", { className: He.title, children: e ?? i.sidebarTitle })
9716
9729
  ] }),
9717
- n && /* @__PURE__ */ v("div", { className: je.actions, children: /* @__PURE__ */ v(
9730
+ n && /* @__PURE__ */ v("div", { className: He.actions, children: /* @__PURE__ */ v(
9718
9731
  "button",
9719
9732
  {
9720
- className: je.resetBtn,
9733
+ className: He.resetBtn,
9721
9734
  onClick: n,
9722
9735
  title: t ? i.expandSidebar : i.minimizeSidebar,
9723
9736
  "aria-label": t ? i.expandSidebar : i.minimizeSidebar,
@@ -9751,7 +9764,7 @@ function sh({
9751
9764
  confirmProposal: k,
9752
9765
  cancelProposal: E
9753
9766
  } = rl();
9754
- return /* @__PURE__ */ Y(
9767
+ return /* @__PURE__ */ X(
9755
9768
  "aside",
9756
9769
  {
9757
9770
  className: [kr.sidebar, a ? kr.minimized : "", o].filter(Boolean).join(" "),
@@ -9798,7 +9811,7 @@ export {
9798
9811
  up as AiMessagePartRenderer,
9799
9812
  Zf as AiProposalCard,
9800
9813
  sh as AiSidebar,
9801
- Uf as AiTablePart,
9814
+ Vf as AiTablePart,
9802
9815
  bp as AiTypingIndicator,
9803
9816
  lh as JuneauProvider,
9804
9817
  _n as consumeStream,