@jazzmine-ui/react 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as Z, Fragment as Oe, jsx as y } from "react/jsx-runtime";
2
2
  import P, { useState as xe, useRef as we, useCallback as Ee, useEffect as me, useMemo as ri } from "react";
3
- const ii = "_container_13h8d_1", li = "_collapsed_13h8d_28", ai = "_overlay_13h8d_37", oi = "_topSection_13h8d_42", si = "_brand_13h8d_52", ui = "_logoWrapper_13h8d_62", ci = "_logo_13h8d_62", hi = "_logoHidden_13h8d_81", di = "_toggleIcon_13h8d_85", pi = "_toggleIconVisible_13h8d_97", mi = "_assistantName_13h8d_103", fi = "_collapseButton_13h8d_115", yi = "_buttonGroup_13h8d_141", gi = "_actionButton_13h8d_146", ki = "_iconWrapper_13h8d_177", xi = "_plusSvg_13h8d_189", zi = "_buttonText_13h8d_206", Mi = "_sectionTitle_13h8d_216", wi = "_chatList_13h8d_225", bi = "_chatListUl_13h8d_231", Ni = "_chatListItem_13h8d_241", Ai = "_chatItem_13h8d_247", Zi = "_active_13h8d_272", Gi = "_chatIcon_13h8d_276", Si = "_chatText_13h8d_283", Ti = "_chatTitle_13h8d_290", vi = "_chatTimestamp_13h8d_299", Wi = "_emptyState_13h8d_305", Ei = "_emptyHint_13h8d_316", Ri = "_resolvedActions_13h8d_322", Yi = "_menuButton_13h8d_329", ji = "_menuButtonOpen_13h8d_343", Ii = "_dropdown_13h8d_352", Vi = "_dropdownItem_13h8d_365", Ci = "_dropdownItemDanger_13h8d_385", Bi = "_dropdownIcon_13h8d_393", B = {
3
+ const ii = "_container_37upa_1", li = "_collapsed_37upa_28", ai = "_overlay_37upa_37", oi = "_topSection_37upa_42", si = "_brand_37upa_52", ui = "_logoWrapper_37upa_62", ci = "_logo_37upa_62", hi = "_logoHidden_37upa_81", pi = "_toggleIcon_37upa_85", di = "_toggleIconVisible_37upa_97", mi = "_assistantName_37upa_103", fi = "_collapseButton_37upa_115", yi = "_buttonGroup_37upa_141", gi = "_actionButton_37upa_146", ki = "_iconWrapper_37upa_177", xi = "_plusSvg_37upa_189", zi = "_buttonText_37upa_206", Mi = "_sectionTitle_37upa_216", wi = "_chatList_37upa_225", bi = "_chatListUl_37upa_231", Ni = "_chatListItem_37upa_241", Ai = "_chatItem_37upa_247", Zi = "_active_37upa_273", Gi = "_chatIcon_37upa_277", Si = "_chatText_37upa_284", Ti = "_chatTitle_37upa_291", vi = "_chatTimestamp_37upa_300", Wi = "_emptyState_37upa_306", Ei = "_emptyHint_37upa_317", Ri = "_resolvedActions_37upa_323", Yi = "_menuButton_37upa_333", Ii = "_menuButtonOpen_37upa_347", ji = "_dropdown_37upa_356", Vi = "_dropdownItem_37upa_369", Ci = "_dropdownItemDanger_37upa_389", Bi = "_dropdownIcon_37upa_397", B = {
4
4
  container: ii,
5
5
  collapsed: li,
6
6
  overlay: ai,
@@ -9,8 +9,8 @@ const ii = "_container_13h8d_1", li = "_collapsed_13h8d_28", ai = "_overlay_13h8
9
9
  logoWrapper: ui,
10
10
  logo: ci,
11
11
  logoHidden: hi,
12
- toggleIcon: di,
13
- toggleIconVisible: pi,
12
+ toggleIcon: pi,
13
+ toggleIconVisible: di,
14
14
  assistantName: mi,
15
15
  collapseButton: fi,
16
16
  buttonGroup: yi,
@@ -32,8 +32,8 @@ const ii = "_container_13h8d_1", li = "_collapsed_13h8d_28", ai = "_overlay_13h8
32
32
  emptyHint: Ei,
33
33
  resolvedActions: Ri,
34
34
  menuButton: Yi,
35
- menuButtonOpen: ji,
36
- dropdown: Ii,
35
+ menuButtonOpen: Ii,
36
+ dropdown: ji,
37
37
  dropdownItem: Vi,
38
38
  dropdownItemDanger: Ci,
39
39
  dropdownIcon: Bi
@@ -57,33 +57,33 @@ const ii = "_container_13h8d_1", li = "_collapsed_13h8d_28", ai = "_overlay_13h8
57
57
  onRenameChat: u,
58
58
  onDeleteChat: c,
59
59
  onArchiveChat: s,
60
- className: d = "",
60
+ className: p = "",
61
61
  collapsed: f,
62
62
  onToggleCollapse: h
63
63
  }) => {
64
64
  const [x, z] = xe(!1), [G, M] = xe(null), [Y, N] = xe(!1), E = we(null), R = typeof f == "boolean" ? f : x, g = Ee(
65
65
  (w) => {
66
- const I = typeof w == "boolean" ? w : !R;
67
- h ? h(I) : z(I);
66
+ const j = typeof w == "boolean" ? w : !R;
67
+ h ? h(j) : z(j);
68
68
  },
69
69
  [R, h]
70
70
  );
71
71
  me(() => {
72
72
  if (window.innerWidth > 768) return;
73
- const w = (I) => {
74
- I.key === "Escape" && !R && g(!0);
73
+ const w = (j) => {
74
+ j.key === "Escape" && !R && g(!0);
75
75
  };
76
76
  return document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w);
77
77
  }, [R, g]), me(() => {
78
78
  if (!G) return;
79
- const w = (I) => {
80
- E.current && !E.current.contains(I.target) && M(null);
79
+ const w = (j) => {
80
+ E.current && !E.current.contains(j.target) && M(null);
81
81
  };
82
82
  return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
83
83
  }, [G]), me(() => {
84
84
  if (!G) return;
85
- const w = (I) => {
86
- I.key === "Escape" && M(null);
85
+ const w = (j) => {
86
+ j.key === "Escape" && M(null);
87
87
  };
88
88
  return document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w);
89
89
  }, [G]);
@@ -129,7 +129,7 @@ const ii = "_container_13h8d_1", li = "_collapsed_13h8d_28", ai = "_overlay_13h8
129
129
  /* @__PURE__ */ Z(
130
130
  "aside",
131
131
  {
132
- className: `${B.container} ${R ? B.collapsed : ""} ${d}`,
132
+ className: `${B.container} ${R ? B.collapsed : ""} ${p}`,
133
133
  "aria-label": "Chat sidebar",
134
134
  role: "complementary",
135
135
  onMouseEnter: () => N(!0),
@@ -225,70 +225,72 @@ const ii = "_container_13h8d_1", li = "_collapsed_13h8d_28", ai = "_overlay_13h8
225
225
  e.length === 0 ? /* @__PURE__ */ Z("div", { className: B.emptyState, children: [
226
226
  /* @__PURE__ */ y("p", { children: "No chats yet" }),
227
227
  /* @__PURE__ */ y("p", { className: B.emptyHint, children: "Start a new conversation" })
228
- ] }) : /* @__PURE__ */ y("ul", { role: "list", className: B.chatListUl, children: e.map((w) => /* @__PURE__ */ y(
228
+ ] }) : /* @__PURE__ */ y("ul", { role: "list", className: B.chatListUl, children: e.map((w) => /* @__PURE__ */ Z(
229
229
  "li",
230
230
  {
231
231
  ref: G === w.id ? E : null,
232
232
  className: B.chatListItem,
233
- children: /* @__PURE__ */ Z(
234
- "button",
235
- {
236
- className: `${B.chatItem} ${n === w.id ? B.active : ""}`,
237
- onClick: () => W(w.id),
238
- "aria-current": n === w.id ? "page" : void 0,
239
- title: w.title,
240
- children: [
241
- /* @__PURE__ */ y("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", className: B.chatIcon, "aria-hidden": "true", children: /* @__PURE__ */ y(
242
- "path",
243
- {
244
- d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8A8.5 8.5 0 0 1 12 20a8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.2A8.38 8.38 0 0 1 4 11.5a8.5 8.5 0 0 1 16.1-3.8A8.38 8.38 0 0 1 21 11.5Z",
245
- stroke: "currentColor",
246
- strokeWidth: "1.5",
247
- strokeLinecap: "round",
248
- strokeLinejoin: "round"
249
- }
250
- ) }),
251
- /* @__PURE__ */ Z("div", { className: B.chatText, children: [
252
- /* @__PURE__ */ y("span", { className: B.chatTitle, children: w.title }),
253
- w.timestamp && /* @__PURE__ */ y("span", { className: B.chatTimestamp, children: w.timestamp })
254
- ] }),
255
- S && S.length > 0 && /* @__PURE__ */ Z("div", { className: B.resolvedActions, children: [
256
- /* @__PURE__ */ y(
257
- "button",
233
+ children: [
234
+ /* @__PURE__ */ Z(
235
+ "button",
236
+ {
237
+ className: `${B.chatItem} ${n === w.id ? B.active : ""}`,
238
+ onClick: () => W(w.id),
239
+ "aria-current": n === w.id ? "page" : void 0,
240
+ title: w.title,
241
+ children: [
242
+ /* @__PURE__ */ y("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", className: B.chatIcon, "aria-hidden": "true", children: /* @__PURE__ */ y(
243
+ "path",
258
244
  {
259
- className: `${B.menuButton} ${G === w.id ? B.menuButtonOpen : ""}`,
260
- onClick: (I) => {
261
- I.stopPropagation(), M(G === w.id ? null : w.id);
262
- },
263
- "aria-label": "Chat options",
264
- "aria-expanded": G === w.id,
265
- "aria-haspopup": "menu",
266
- children: /* @__PURE__ */ Z("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: [
267
- /* @__PURE__ */ y("circle", { cx: "5", cy: "12", r: "2" }),
268
- /* @__PURE__ */ y("circle", { cx: "12", cy: "12", r: "2" }),
269
- /* @__PURE__ */ y("circle", { cx: "19", cy: "12", r: "2" })
270
- ] })
245
+ d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8A8.5 8.5 0 0 1 12 20a8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.2A8.38 8.38 0 0 1 4 11.5a8.5 8.5 0 0 1 16.1-3.8A8.38 8.38 0 0 1 21 11.5Z",
246
+ stroke: "currentColor",
247
+ strokeWidth: "1.5",
248
+ strokeLinecap: "round",
249
+ strokeLinejoin: "round"
271
250
  }
272
- ),
273
- G === w.id && /* @__PURE__ */ y("div", { className: B.dropdown, role: "menu", children: S.map((I, Q) => /* @__PURE__ */ Z(
274
- "button",
275
- {
276
- className: `${B.dropdownItem} ${I.danger ? B.dropdownItemDanger : ""}`,
277
- role: "menuitem",
278
- onClick: (T) => {
279
- T.stopPropagation(), I.onClick(w.id), M(null);
280
- },
281
- children: [
282
- I.icon && /* @__PURE__ */ y("span", { className: B.dropdownIcon, "aria-hidden": "true", children: I.icon }),
283
- I.label
284
- ]
285
- },
286
- Q
287
- )) })
288
- ] })
289
- ]
290
- }
291
- )
251
+ ) }),
252
+ /* @__PURE__ */ Z("div", { className: B.chatText, children: [
253
+ /* @__PURE__ */ y("span", { className: B.chatTitle, children: w.title }),
254
+ w.timestamp && /* @__PURE__ */ y("span", { className: B.chatTimestamp, children: w.timestamp })
255
+ ] })
256
+ ]
257
+ }
258
+ ),
259
+ S && S.length > 0 && /* @__PURE__ */ Z("div", { className: B.resolvedActions, children: [
260
+ /* @__PURE__ */ y(
261
+ "button",
262
+ {
263
+ className: `${B.menuButton} ${G === w.id ? B.menuButtonOpen : ""}`,
264
+ onClick: (j) => {
265
+ j.stopPropagation(), M(G === w.id ? null : w.id);
266
+ },
267
+ "aria-label": "Chat options",
268
+ "aria-expanded": G === w.id,
269
+ "aria-haspopup": "menu",
270
+ children: /* @__PURE__ */ Z("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: [
271
+ /* @__PURE__ */ y("circle", { cx: "5", cy: "12", r: "2" }),
272
+ /* @__PURE__ */ y("circle", { cx: "12", cy: "12", r: "2" }),
273
+ /* @__PURE__ */ y("circle", { cx: "19", cy: "12", r: "2" })
274
+ ] })
275
+ }
276
+ ),
277
+ G === w.id && /* @__PURE__ */ y("div", { className: B.dropdown, role: "menu", children: S.map((j, Q) => /* @__PURE__ */ Z(
278
+ "button",
279
+ {
280
+ className: `${B.dropdownItem} ${j.danger ? B.dropdownItemDanger : ""}`,
281
+ role: "menuitem",
282
+ onClick: (T) => {
283
+ T.stopPropagation(), j.onClick(w.id), M(null);
284
+ },
285
+ children: [
286
+ j.icon && /* @__PURE__ */ y("span", { className: B.dropdownIcon, "aria-hidden": "true", children: j.icon }),
287
+ j.label
288
+ ]
289
+ },
290
+ Q
291
+ )) })
292
+ ] })
293
+ ]
292
294
  },
293
295
  w.id
294
296
  )) })
@@ -348,15 +350,15 @@ const ii = "_container_13h8d_1", li = "_collapsed_13h8d_28", ai = "_overlay_13h8
348
350
  /* @__PURE__ */ y("span", { className: We.dot }),
349
351
  /* @__PURE__ */ y("span", { className: We.dot })
350
352
  ] })
351
- ] }), al = "_overlay_1szko_1", ol = "_modal_1szko_15", sl = "_header_1szko_38", ul = "_title_1szko_46", cl = "_closeButton_1szko_53", hl = "_content_1szko_71", dl = "_contextCard_1szko_80", pl = "_contextHeader_1szko_87", ml = "_contextHeaderLeft_1szko_95", fl = "_quoteIcon_1szko_102", yl = "_contextSource_1szko_107", gl = "_removeButton_1szko_115", kl = "_contextText_1szko_135", ce = {
353
+ ] }), al = "_overlay_1szko_1", ol = "_modal_1szko_15", sl = "_header_1szko_38", ul = "_title_1szko_46", cl = "_closeButton_1szko_53", hl = "_content_1szko_71", pl = "_contextCard_1szko_80", dl = "_contextHeader_1szko_87", ml = "_contextHeaderLeft_1szko_95", fl = "_quoteIcon_1szko_102", yl = "_contextSource_1szko_107", gl = "_removeButton_1szko_115", kl = "_contextText_1szko_135", ce = {
352
354
  overlay: al,
353
355
  modal: ol,
354
356
  header: sl,
355
357
  title: ul,
356
358
  closeButton: cl,
357
359
  content: hl,
358
- contextCard: dl,
359
- contextHeader: pl,
360
+ contextCard: pl,
361
+ contextHeader: dl,
360
362
  contextHeaderLeft: ml,
361
363
  quoteIcon: fl,
362
364
  contextSource: yl,
@@ -528,7 +530,7 @@ const ur = ({
528
530
  }
529
531
  )
530
532
  ] });
531
- }, Al = "_message_ienci_1", Zl = "_header_ienci_9", Gl = "_bubble_ienci_17", Sl = "_user_ienci_31", Tl = "_assistant_ienci_44", vl = "_assistantName_ienci_55", Wl = "_loadingWrapper_ienci_61", El = "_actionsList_ienci_65", Rl = "_actionItem_ienci_71", Yl = "_addContextButton_ienci_96", jl = "_activeSearchResult_ienci_180", ee = {
533
+ }, Al = "_message_ienci_1", Zl = "_header_ienci_9", Gl = "_bubble_ienci_17", Sl = "_user_ienci_31", Tl = "_assistant_ienci_44", vl = "_assistantName_ienci_55", Wl = "_loadingWrapper_ienci_61", El = "_actionsList_ienci_65", Rl = "_actionItem_ienci_71", Yl = "_addContextButton_ienci_96", Il = "_activeSearchResult_ienci_180", ee = {
532
534
  message: Al,
533
535
  header: Zl,
534
536
  bubble: Gl,
@@ -539,9 +541,9 @@ const ur = ({
539
541
  actionsList: El,
540
542
  actionItem: Rl,
541
543
  addContextButton: Yl,
542
- activeSearchResult: jl
544
+ activeSearchResult: Il
543
545
  };
544
- function Il(e, n) {
546
+ function jl(e, n) {
545
547
  const t = {};
546
548
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
547
549
  (t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
@@ -611,7 +613,7 @@ se.prototype.property = "";
611
613
  se.prototype.spaceSeparated = !1;
612
614
  se.prototype.space = void 0;
613
615
  let Ol = 0;
614
- const U = Ye(), $ = Ye(), Cn = Ye(), b = Ye(), D = Ye(), Ue = Ye(), de = Ye();
616
+ const U = Ye(), $ = Ye(), Cn = Ye(), b = Ye(), D = Ye(), Ue = Ye(), pe = Ye();
615
617
  function Ye() {
616
618
  return 2 ** ++Ol;
617
619
  }
@@ -619,7 +621,7 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
619
621
  __proto__: null,
620
622
  boolean: U,
621
623
  booleanish: $,
622
- commaOrSpaceSeparated: de,
624
+ commaOrSpaceSeparated: pe,
623
625
  commaSeparated: Ue,
624
626
  number: b,
625
627
  overloadedBoolean: Cn,
@@ -724,11 +726,11 @@ const hr = Le({
724
726
  return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
725
727
  }
726
728
  });
727
- function dr(e, n) {
729
+ function pr(e, n) {
728
730
  return n in e ? e[n] : n;
729
731
  }
730
- function pr(e, n) {
731
- return dr(e, n.toLowerCase());
732
+ function dr(e, n) {
733
+ return pr(e, n.toLowerCase());
732
734
  }
733
735
  const Ll = Le({
734
736
  attributes: {
@@ -1090,7 +1092,7 @@ const Ll = Le({
1090
1092
  unselectable: null
1091
1093
  },
1092
1094
  space: "html",
1093
- transform: pr
1095
+ transform: dr
1094
1096
  }), Ql = Le({
1095
1097
  attributes: {
1096
1098
  accentHeight: "accent-height",
@@ -1268,7 +1270,7 @@ const Ll = Le({
1268
1270
  timelineBegin: "timelinebegin"
1269
1271
  },
1270
1272
  properties: {
1271
- about: de,
1273
+ about: pe,
1272
1274
  accentHeight: b,
1273
1275
  accumulate: null,
1274
1276
  additive: null,
@@ -1380,7 +1382,7 @@ const Ll = Le({
1380
1382
  k2: b,
1381
1383
  k3: b,
1382
1384
  k4: b,
1383
- kernelMatrix: de,
1385
+ kernelMatrix: pe,
1384
1386
  kernelUnitLength: null,
1385
1387
  keyPoints: null,
1386
1388
  // SEMI_COLON_SEPARATED
@@ -1537,21 +1539,21 @@ const Ll = Le({
1537
1539
  preserveAspectRatio: null,
1538
1540
  primitiveUnits: null,
1539
1541
  propagate: null,
1540
- property: de,
1542
+ property: pe,
1541
1543
  r: null,
1542
1544
  radius: null,
1543
1545
  referrerPolicy: null,
1544
1546
  refX: null,
1545
1547
  refY: null,
1546
- rel: de,
1547
- rev: de,
1548
+ rel: pe,
1549
+ rev: pe,
1548
1550
  renderingIntent: null,
1549
1551
  repeatCount: null,
1550
1552
  repeatDur: null,
1551
- requiredExtensions: de,
1552
- requiredFeatures: de,
1553
- requiredFonts: de,
1554
- requiredFormats: de,
1553
+ requiredExtensions: pe,
1554
+ requiredFeatures: pe,
1555
+ requiredFonts: pe,
1556
+ requiredFormats: pe,
1555
1557
  resource: null,
1556
1558
  restart: null,
1557
1559
  result: null,
@@ -1579,7 +1581,7 @@ const Ll = Le({
1579
1581
  strikethroughThickness: b,
1580
1582
  string: null,
1581
1583
  stroke: null,
1582
- strokeDashArray: de,
1584
+ strokeDashArray: pe,
1583
1585
  strokeDashOffset: null,
1584
1586
  strokeLineCap: null,
1585
1587
  strokeLineJoin: null,
@@ -1593,7 +1595,7 @@ const Ll = Le({
1593
1595
  syncMaster: null,
1594
1596
  syncTolerance: null,
1595
1597
  syncToleranceDefault: null,
1596
- systemLanguage: de,
1598
+ systemLanguage: pe,
1597
1599
  tabIndex: b,
1598
1600
  tableValues: null,
1599
1601
  target: null,
@@ -1607,7 +1609,7 @@ const Ll = Le({
1607
1609
  title: null,
1608
1610
  transformBehavior: null,
1609
1611
  type: null,
1610
- typeOf: de,
1612
+ typeOf: pe,
1611
1613
  to: null,
1612
1614
  transform: null,
1613
1615
  transformOrigin: null,
@@ -1649,7 +1651,7 @@ const Ll = Le({
1649
1651
  zoomAndPan: null
1650
1652
  },
1651
1653
  space: "svg",
1652
- transform: dr
1654
+ transform: pr
1653
1655
  }), mr = Le({
1654
1656
  properties: {
1655
1657
  xLinkActuate: null,
@@ -1668,7 +1670,7 @@ const Ll = Le({
1668
1670
  attributes: { xmlnsxlink: "xmlns:xlink" },
1669
1671
  properties: { xmlnsXLink: null, xmlns: null },
1670
1672
  space: "xmlns",
1671
- transform: pr
1673
+ transform: dr
1672
1674
  }), yr = Le({
1673
1675
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1674
1676
  space: "xml",
@@ -1770,11 +1772,11 @@ function ua(e, n) {
1770
1772
  }
1771
1773
  function s(x) {
1772
1774
  var z;
1773
- for (x = x || []; z = d(); )
1775
+ for (x = x || []; z = p(); )
1774
1776
  z !== !1 && x.push(z);
1775
1777
  return x;
1776
1778
  }
1777
- function d() {
1779
+ function p() {
1778
1780
  var x = l();
1779
1781
  if (!(xt != e.charAt(0) || zt != e.charAt(1))) {
1780
1782
  for (var z = 2; Re != e.charAt(z) && (zt != e.charAt(z) || xt != e.charAt(z + 1)); )
@@ -1791,7 +1793,7 @@ function ua(e, n) {
1791
1793
  function f() {
1792
1794
  var x = l(), z = u(na);
1793
1795
  if (z) {
1794
- if (d(), !u(ta)) return o("property missing ':'");
1796
+ if (p(), !u(ta)) return o("property missing ':'");
1795
1797
  var G = u(ra), M = x({
1796
1798
  type: sa,
1797
1799
  property: Mt(z[0].replace(kt, Re)),
@@ -1816,13 +1818,13 @@ var ca = ua, ha = yn && yn.__importDefault || function(e) {
1816
1818
  return e && e.__esModule ? e : { default: e };
1817
1819
  };
1818
1820
  Object.defineProperty(Dn, "__esModule", { value: !0 });
1819
- Dn.default = pa;
1820
- const da = ha(ca);
1821
- function pa(e, n) {
1821
+ Dn.default = da;
1822
+ const pa = ha(ca);
1823
+ function da(e, n) {
1822
1824
  let t = null;
1823
1825
  if (!e || typeof e != "string")
1824
1826
  return t;
1825
- const r = (0, da.default)(e), i = typeof n == "function";
1827
+ const r = (0, pa.default)(e), i = typeof n == "function";
1826
1828
  return r.forEach((l) => {
1827
1829
  if (l.type !== "declaration")
1828
1830
  return;
@@ -2018,9 +2020,9 @@ function Mr(e, n, t) {
2018
2020
  if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
2019
2021
  return Ya(e, n);
2020
2022
  if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
2021
- return Ia(e, n, t);
2023
+ return ja(e, n, t);
2022
2024
  if (n.type === "mdxjsEsm")
2023
- return ja(e, n);
2025
+ return Ia(e, n);
2024
2026
  if (n.type === "root")
2025
2027
  return Va(e, n, t);
2026
2028
  if (n.type === "text")
@@ -2044,7 +2046,7 @@ function Ya(e, n) {
2044
2046
  }
2045
2047
  tn(e, n.position);
2046
2048
  }
2047
- function ja(e, n) {
2049
+ function Ia(e, n) {
2048
2050
  if (n.data && n.data.estree && e.evaluater)
2049
2051
  return (
2050
2052
  /** @type {Child | undefined} */
@@ -2052,7 +2054,7 @@ function ja(e, n) {
2052
2054
  );
2053
2055
  tn(e, n.position);
2054
2056
  }
2055
- function Ia(e, n, t) {
2057
+ function ja(e, n, t) {
2056
2058
  const r = e.schema;
2057
2059
  let i = r;
2058
2060
  n.name === "svg" && r.space === "html" && (i = Xn, e.schema = i), e.ancestors.push(n);
@@ -2174,7 +2176,7 @@ function et(e, n) {
2174
2176
  function La(e, n, t) {
2175
2177
  const r = Pl(e.schema, n);
2176
2178
  if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
2177
- if (Array.isArray(t) && (t = r.commaSeparated ? Il(t) : _l(t)), r.property === "style") {
2179
+ if (Array.isArray(t) && (t = r.commaSeparated ? jl(t) : _l(t)), r.property === "style") {
2178
2180
  let i = typeof t == "object" ? t : Qa(e, String(t));
2179
2181
  return e.stylePropertyNameCase === "css" && (i = qa(i)), ["style", i];
2180
2182
  }
@@ -2378,7 +2380,7 @@ function Ar(e, n) {
2378
2380
  function Fe(e) {
2379
2381
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
2380
2382
  }
2381
- const Me = Se(/[A-Za-z]/), pe = Se(/[\dA-Za-z]/), eo = Se(/[#-'*+\--9=?A-Z^-~]/);
2383
+ const Me = Se(/[A-Za-z]/), de = Se(/[\dA-Za-z]/), eo = Se(/[#-'*+\--9=?A-Z^-~]/);
2382
2384
  function On(e) {
2383
2385
  return (
2384
2386
  // Special whitespace codes (which have negative values), C0 and Control
@@ -2387,7 +2389,7 @@ function On(e) {
2387
2389
  );
2388
2390
  }
2389
2391
  const Ln = Se(/\d/), no = Se(/[\dA-Fa-f]/), to = Se(/[!-/:-@[-`{-~]/);
2390
- function j(e) {
2392
+ function I(e) {
2391
2393
  return e !== null && e < -2;
2392
2394
  }
2393
2395
  function oe(e) {
@@ -2409,7 +2411,7 @@ function Qe(e) {
2409
2411
  for (; ++t < e.length; ) {
2410
2412
  const l = e.charCodeAt(t);
2411
2413
  let a = "";
2412
- if (l === 37 && pe(e.charCodeAt(t + 1)) && pe(e.charCodeAt(t + 2)))
2414
+ if (l === 37 && de(e.charCodeAt(t + 1)) && de(e.charCodeAt(t + 2)))
2413
2415
  i = 2;
2414
2416
  else if (l < 128)
2415
2417
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l)) || (a = String.fromCharCode(l));
@@ -2462,7 +2464,7 @@ function ao(e) {
2462
2464
  e.exit("chunkText"), e.exit("paragraph"), e.consume(o);
2463
2465
  return;
2464
2466
  }
2465
- return j(o) ? (e.consume(o), e.exit("chunkText"), l) : (e.consume(o), a);
2467
+ return I(o) ? (e.consume(o), e.exit("chunkText"), l) : (e.consume(o), a);
2466
2468
  }
2467
2469
  }
2468
2470
  const oo = {
@@ -2509,12 +2511,12 @@ function so(e) {
2509
2511
  return x(N);
2510
2512
  n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
2511
2513
  }
2512
- return n.containerState = {}, e.check(St, s, d)(N);
2514
+ return n.containerState = {}, e.check(St, s, p)(N);
2513
2515
  }
2514
2516
  function s(N) {
2515
2517
  return i && Y(), M(r), f(N);
2516
2518
  }
2517
- function d(N) {
2519
+ function p(N) {
2518
2520
  return n.parser.lazy[n.now().line] = r !== t.length, a = n.now().offset, x(N);
2519
2521
  }
2520
2522
  function f(N) {
@@ -2539,7 +2541,7 @@ function so(e) {
2539
2541
  G(e.exit("chunkFlow"), !0), M(0), e.consume(N);
2540
2542
  return;
2541
2543
  }
2542
- return j(N) ? (e.consume(N), G(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, o) : (e.consume(N), z);
2544
+ return I(N) ? (e.consume(N), G(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, o) : (e.consume(N), z);
2543
2545
  }
2544
2546
  function G(N, E) {
2545
2547
  const R = n.sliceStream(N);
@@ -2615,14 +2617,14 @@ function co(e, n) {
2615
2617
  if ((e[r][1]._close || e[t][1]._open) && (e[t][1].end.offset - e[t][1].start.offset) % 3 && !((e[r][1].end.offset - e[r][1].start.offset + e[t][1].end.offset - e[t][1].start.offset) % 3))
2616
2618
  continue;
2617
2619
  u = e[r][1].end.offset - e[r][1].start.offset > 1 && e[t][1].end.offset - e[t][1].start.offset > 1 ? 2 : 1;
2618
- const d = {
2620
+ const p = {
2619
2621
  ...e[r][1].end
2620
2622
  }, f = {
2621
2623
  ...e[t][1].start
2622
2624
  };
2623
- vt(d, -u), vt(f, u), a = {
2625
+ vt(p, -u), vt(f, u), a = {
2624
2626
  type: u > 1 ? "strongSequence" : "emphasisSequence",
2625
- start: d,
2627
+ start: p,
2626
2628
  end: {
2627
2629
  ...e[r][1].end
2628
2630
  }
@@ -2670,8 +2672,8 @@ function ho(e, n) {
2670
2672
  function o(u) {
2671
2673
  if (u === l)
2672
2674
  return e.consume(u), o;
2673
- const c = e.exit("attentionSequence"), s = Tt(u), d = !s || s === 2 && i || t.includes(u), f = !i || i === 2 && s || t.includes(r);
2674
- return c._open = !!(l === 42 ? d : d && (i || !f)), c._close = !!(l === 42 ? f : f && (s || !d)), n(u);
2675
+ const c = e.exit("attentionSequence"), s = Tt(u), p = !s || s === 2 && i || t.includes(u), f = !i || i === 2 && s || t.includes(r);
2676
+ return c._open = !!(l === 42 ? p : p && (i || !f)), c._close = !!(l === 42 ? f : f && (s || !p)), n(u);
2675
2677
  }
2676
2678
  }
2677
2679
  function vt(e, n) {
@@ -2691,10 +2693,10 @@ function mo(e, n, t) {
2691
2693
  return Me(h) ? (e.consume(h), a) : h === 64 ? t(h) : c(h);
2692
2694
  }
2693
2695
  function a(h) {
2694
- return h === 43 || h === 45 || h === 46 || pe(h) ? (r = 1, o(h)) : c(h);
2696
+ return h === 43 || h === 45 || h === 46 || de(h) ? (r = 1, o(h)) : c(h);
2695
2697
  }
2696
2698
  function o(h) {
2697
- return h === 58 ? (e.consume(h), r = 0, u) : (h === 43 || h === 45 || h === 46 || pe(h)) && r++ < 32 ? (e.consume(h), o) : (r = 0, c(h));
2699
+ return h === 58 ? (e.consume(h), r = 0, u) : (h === 43 || h === 45 || h === 46 || de(h)) && r++ < 32 ? (e.consume(h), o) : (r = 0, c(h));
2698
2700
  }
2699
2701
  function u(h) {
2700
2702
  return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), n) : h === null || h === 32 || h === 60 || On(h) ? t(h) : (e.consume(h), u);
@@ -2703,14 +2705,14 @@ function mo(e, n, t) {
2703
2705
  return h === 64 ? (e.consume(h), s) : eo(h) ? (e.consume(h), c) : t(h);
2704
2706
  }
2705
2707
  function s(h) {
2706
- return pe(h) ? d(h) : t(h);
2708
+ return de(h) ? p(h) : t(h);
2707
2709
  }
2708
- function d(h) {
2710
+ function p(h) {
2709
2711
  return h === 46 ? (e.consume(h), r = 0, s) : h === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), n) : f(h);
2710
2712
  }
2711
2713
  function f(h) {
2712
- if ((h === 45 || pe(h)) && r++ < 63) {
2713
- const x = h === 45 ? f : d;
2714
+ if ((h === 45 || de(h)) && r++ < 63) {
2715
+ const x = h === 45 ? f : p;
2714
2716
  return e.consume(h), x;
2715
2717
  }
2716
2718
  return t(h);
@@ -2726,7 +2728,7 @@ function fo(e, n, t) {
2726
2728
  return H(l) ? K(e, i, "linePrefix")(l) : i(l);
2727
2729
  }
2728
2730
  function i(l) {
2729
- return l === null || j(l) ? n(l) : t(l);
2731
+ return l === null || I(l) ? n(l) : t(l);
2730
2732
  }
2731
2733
  }
2732
2734
  const Zr = {
@@ -2787,21 +2789,21 @@ function zo(e, n, t) {
2787
2789
  const r = this;
2788
2790
  let i = 0, l, a;
2789
2791
  return o;
2790
- function o(d) {
2791
- return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), u;
2792
+ function o(p) {
2793
+ return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), u;
2792
2794
  }
2793
- function u(d) {
2794
- return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), l = 31, a = pe, s(d));
2795
+ function u(p) {
2796
+ return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), l = 31, a = de, s(p));
2795
2797
  }
2796
- function c(d) {
2797
- return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, a = no, s) : (e.enter("characterReferenceValue"), l = 7, a = Ln, s(d));
2798
+ function c(p) {
2799
+ return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, a = no, s) : (e.enter("characterReferenceValue"), l = 7, a = Ln, s(p));
2798
2800
  }
2799
- function s(d) {
2800
- if (d === 59 && i) {
2801
+ function s(p) {
2802
+ if (p === 59 && i) {
2801
2803
  const f = e.exit("characterReferenceValue");
2802
- return a === pe && !nt(r.sliceSerialize(f)) ? t(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
2804
+ return a === de && !nt(r.sliceSerialize(f)) ? t(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
2803
2805
  }
2804
- return a(d) && i++ < l ? (e.consume(d), s) : t(d);
2806
+ return a(p) && i++ < l ? (e.consume(p), s) : t(p);
2805
2807
  }
2806
2808
  }
2807
2809
  const Wt = {
@@ -2827,23 +2829,23 @@ function Mo(e, n, t) {
2827
2829
  return l = W && W[1].type === "linePrefix" ? W[2].sliceSerialize(W[1], !0).length : 0, o = g, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), s(g);
2828
2830
  }
2829
2831
  function s(g) {
2830
- return g === o ? (a++, e.consume(g), s) : a < 3 ? t(g) : (e.exit("codeFencedFenceSequence"), H(g) ? K(e, d, "whitespace")(g) : d(g));
2832
+ return g === o ? (a++, e.consume(g), s) : a < 3 ? t(g) : (e.exit("codeFencedFenceSequence"), H(g) ? K(e, p, "whitespace")(g) : p(g));
2831
2833
  }
2832
- function d(g) {
2833
- return g === null || j(g) ? (e.exit("codeFencedFence"), r.interrupt ? n(g) : e.check(Wt, z, E)(g)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2834
+ function p(g) {
2835
+ return g === null || I(g) ? (e.exit("codeFencedFence"), r.interrupt ? n(g) : e.check(Wt, z, E)(g)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2834
2836
  contentType: "string"
2835
2837
  }), f(g));
2836
2838
  }
2837
2839
  function f(g) {
2838
- return g === null || j(g) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(g)) : H(g) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), K(e, h, "whitespace")(g)) : g === 96 && g === o ? t(g) : (e.consume(g), f);
2840
+ return g === null || I(g) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(g)) : H(g) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), K(e, h, "whitespace")(g)) : g === 96 && g === o ? t(g) : (e.consume(g), f);
2839
2841
  }
2840
2842
  function h(g) {
2841
- return g === null || j(g) ? d(g) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
2843
+ return g === null || I(g) ? p(g) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
2842
2844
  contentType: "string"
2843
2845
  }), x(g));
2844
2846
  }
2845
2847
  function x(g) {
2846
- return g === null || j(g) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(g)) : g === 96 && g === o ? t(g) : (e.consume(g), x);
2848
+ return g === null || I(g) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(g)) : g === 96 && g === o ? t(g) : (e.consume(g), x);
2847
2849
  }
2848
2850
  function z(g) {
2849
2851
  return e.attempt(i, E, G)(g);
@@ -2855,10 +2857,10 @@ function Mo(e, n, t) {
2855
2857
  return l > 0 && H(g) ? K(e, Y, "linePrefix", l + 1)(g) : Y(g);
2856
2858
  }
2857
2859
  function Y(g) {
2858
- return g === null || j(g) ? e.check(Wt, z, E)(g) : (e.enter("codeFlowValue"), N(g));
2860
+ return g === null || I(g) ? e.check(Wt, z, E)(g) : (e.enter("codeFlowValue"), N(g));
2859
2861
  }
2860
2862
  function N(g) {
2861
- return g === null || j(g) ? (e.exit("codeFlowValue"), Y(g)) : (e.consume(g), N);
2863
+ return g === null || I(g) ? (e.exit("codeFlowValue"), Y(g)) : (e.consume(g), N);
2862
2864
  }
2863
2865
  function E(g) {
2864
2866
  return e.exit("codeFenced"), n(g);
@@ -2873,13 +2875,13 @@ function Mo(e, n, t) {
2873
2875
  return g.enter("codeFencedFence"), H(T) ? K(g, w, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(T) : w(T);
2874
2876
  }
2875
2877
  function w(T) {
2876
- return T === o ? (g.enter("codeFencedFenceSequence"), I(T)) : O(T);
2878
+ return T === o ? (g.enter("codeFencedFenceSequence"), j(T)) : O(T);
2877
2879
  }
2878
- function I(T) {
2879
- return T === o ? (F++, g.consume(T), I) : F >= a ? (g.exit("codeFencedFenceSequence"), H(T) ? K(g, Q, "whitespace")(T) : Q(T)) : O(T);
2880
+ function j(T) {
2881
+ return T === o ? (F++, g.consume(T), j) : F >= a ? (g.exit("codeFencedFenceSequence"), H(T) ? K(g, Q, "whitespace")(T) : Q(T)) : O(T);
2880
2882
  }
2881
2883
  function Q(T) {
2882
- return T === null || j(T) ? (g.exit("codeFencedFence"), W(T)) : O(T);
2884
+ return T === null || I(T) ? (g.exit("codeFencedFence"), W(T)) : O(T);
2883
2885
  }
2884
2886
  }
2885
2887
  }
@@ -2911,10 +2913,10 @@ function No(e, n, t) {
2911
2913
  return s && s[1].type === "linePrefix" && s[2].sliceSerialize(s[1], !0).length >= 4 ? a(c) : t(c);
2912
2914
  }
2913
2915
  function a(c) {
2914
- return c === null ? u(c) : j(c) ? e.attempt(bo, a, u)(c) : (e.enter("codeFlowValue"), o(c));
2916
+ return c === null ? u(c) : I(c) ? e.attempt(bo, a, u)(c) : (e.enter("codeFlowValue"), o(c));
2915
2917
  }
2916
2918
  function o(c) {
2917
- return c === null || j(c) ? (e.exit("codeFlowValue"), a(c)) : (e.consume(c), o);
2919
+ return c === null || I(c) ? (e.exit("codeFlowValue"), a(c)) : (e.consume(c), o);
2918
2920
  }
2919
2921
  function u(c) {
2920
2922
  return e.exit("codeIndented"), n(c);
@@ -2924,11 +2926,11 @@ function Ao(e, n, t) {
2924
2926
  const r = this;
2925
2927
  return i;
2926
2928
  function i(a) {
2927
- return r.parser.lazy[r.now().line] ? t(a) : j(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : K(e, l, "linePrefix", 5)(a);
2929
+ return r.parser.lazy[r.now().line] ? t(a) : I(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : K(e, l, "linePrefix", 5)(a);
2928
2930
  }
2929
2931
  function l(a) {
2930
2932
  const o = r.events[r.events.length - 1];
2931
- return o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? n(a) : j(a) ? i(a) : t(a);
2933
+ return o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? n(a) : I(a) ? i(a) : t(a);
2932
2934
  }
2933
2935
  }
2934
2936
  const Zo = {
@@ -2956,20 +2958,20 @@ function So(e) {
2956
2958
  function To(e, n, t) {
2957
2959
  let r = 0, i, l;
2958
2960
  return a;
2959
- function a(d) {
2960
- return e.enter("codeText"), e.enter("codeTextSequence"), o(d);
2961
+ function a(p) {
2962
+ return e.enter("codeText"), e.enter("codeTextSequence"), o(p);
2961
2963
  }
2962
- function o(d) {
2963
- return d === 96 ? (e.consume(d), r++, o) : (e.exit("codeTextSequence"), u(d));
2964
+ function o(p) {
2965
+ return p === 96 ? (e.consume(p), r++, o) : (e.exit("codeTextSequence"), u(p));
2964
2966
  }
2965
- function u(d) {
2966
- return d === null ? t(d) : d === 32 ? (e.enter("space"), e.consume(d), e.exit("space"), u) : d === 96 ? (l = e.enter("codeTextSequence"), i = 0, s(d)) : j(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), u) : (e.enter("codeTextData"), c(d));
2967
+ function u(p) {
2968
+ return p === null ? t(p) : p === 32 ? (e.enter("space"), e.consume(p), e.exit("space"), u) : p === 96 ? (l = e.enter("codeTextSequence"), i = 0, s(p)) : I(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), u) : (e.enter("codeTextData"), c(p));
2967
2969
  }
2968
- function c(d) {
2969
- return d === null || d === 32 || d === 96 || j(d) ? (e.exit("codeTextData"), u(d)) : (e.consume(d), c);
2970
+ function c(p) {
2971
+ return p === null || p === 32 || p === 96 || I(p) ? (e.exit("codeTextData"), u(p)) : (e.consume(p), c);
2970
2972
  }
2971
- function s(d) {
2972
- return d === 96 ? (e.consume(d), i++, s) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(d)) : (l.type = "codeTextData", c(d));
2973
+ function s(p) {
2974
+ return p === 96 ? (e.consume(p), i++, s) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(p)) : (l.type = "codeTextData", c(p));
2973
2975
  }
2974
2976
  }
2975
2977
  class vo {
@@ -3175,12 +3177,12 @@ function Wo(e, n) {
3175
3177
  let a = t._tokenizer;
3176
3178
  a || (a = r.parser[t.contentType](t.start), t._contentTypeTextTrailing && (a._contentTypeTextTrailing = !0));
3177
3179
  const o = a.events, u = [], c = {};
3178
- let s, d, f = -1, h = t, x = 0, z = 0;
3180
+ let s, p, f = -1, h = t, x = 0, z = 0;
3179
3181
  const G = [z];
3180
3182
  for (; h; ) {
3181
3183
  for (; e.get(++i)[1] !== h; )
3182
3184
  ;
3183
- l.push(i), h._tokenizer || (s = r.sliceStream(h), h.next || s.push(null), d && a.defineSkip(h.start), h._isInFirstContentOfListItem && (a._gfmTasklistFirstContentOfListItem = !0), a.write(s), h._isInFirstContentOfListItem && (a._gfmTasklistFirstContentOfListItem = void 0)), d = h, h = h.next;
3185
+ l.push(i), h._tokenizer || (s = r.sliceStream(h), h.next || s.push(null), p && a.defineSkip(h.start), h._isInFirstContentOfListItem && (a._gfmTasklistFirstContentOfListItem = !0), a.write(s), h._isInFirstContentOfListItem && (a._gfmTasklistFirstContentOfListItem = void 0)), p = h, h = h.next;
3184
3186
  }
3185
3187
  for (h = t; ++f < o.length; )
3186
3188
  // Find a void token that includes a break.
@@ -3195,15 +3197,15 @@ function Wo(e, n) {
3195
3197
  }
3196
3198
  const Eo = {
3197
3199
  resolve: Yo,
3198
- tokenize: jo
3200
+ tokenize: Io
3199
3201
  }, Ro = {
3200
3202
  partial: !0,
3201
- tokenize: Io
3203
+ tokenize: jo
3202
3204
  };
3203
3205
  function Yo(e) {
3204
3206
  return Tr(e), e;
3205
3207
  }
3206
- function jo(e, n) {
3208
+ function Io(e, n) {
3207
3209
  let t;
3208
3210
  return r;
3209
3211
  function r(o) {
@@ -3212,7 +3214,7 @@ function jo(e, n) {
3212
3214
  }), i(o);
3213
3215
  }
3214
3216
  function i(o) {
3215
- return o === null ? l(o) : j(o) ? e.check(Ro, a, l)(o) : (e.consume(o), i);
3217
+ return o === null ? l(o) : I(o) ? e.check(Ro, a, l)(o) : (e.consume(o), i);
3216
3218
  }
3217
3219
  function l(o) {
3218
3220
  return e.exit("chunkContent"), e.exit("content"), n(o);
@@ -3224,14 +3226,14 @@ function jo(e, n) {
3224
3226
  }), t = t.next, i;
3225
3227
  }
3226
3228
  }
3227
- function Io(e, n, t) {
3229
+ function jo(e, n, t) {
3228
3230
  const r = this;
3229
3231
  return i;
3230
3232
  function i(a) {
3231
3233
  return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), K(e, l, "linePrefix");
3232
3234
  }
3233
3235
  function l(a) {
3234
- if (a === null || j(a))
3236
+ if (a === null || I(a))
3235
3237
  return t(a);
3236
3238
  const o = r.events[r.events.length - 1];
3237
3239
  return !r.parser.constructs.disable.null.includes("codeIndented") && o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? n(a) : e.interrupt(r.parser.constructs.flow, t, n)(a);
@@ -3240,8 +3242,8 @@ function Io(e, n, t) {
3240
3242
  function vr(e, n, t, r, i, l, a, o, u) {
3241
3243
  const c = u || Number.POSITIVE_INFINITY;
3242
3244
  let s = 0;
3243
- return d;
3244
- function d(M) {
3245
+ return p;
3246
+ function p(M) {
3245
3247
  return M === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(M), e.exit(l), f) : M === null || M === 32 || M === 41 || On(M) ? t(M) : (e.enter(r), e.enter(a), e.enter(o), e.enter("chunkString", {
3246
3248
  contentType: "string"
3247
3249
  }), z(M));
@@ -3252,7 +3254,7 @@ function vr(e, n, t, r, i, l, a, o, u) {
3252
3254
  }), h(M));
3253
3255
  }
3254
3256
  function h(M) {
3255
- return M === 62 ? (e.exit("chunkString"), e.exit(o), f(M)) : M === null || M === 60 || j(M) ? t(M) : (e.consume(M), M === 92 ? x : h);
3257
+ return M === 62 ? (e.exit("chunkString"), e.exit(o), f(M)) : M === null || M === 60 || I(M) ? t(M) : (e.consume(M), M === 92 ? x : h);
3256
3258
  }
3257
3259
  function x(M) {
3258
3260
  return M === 60 || M === 62 || M === 92 ? (e.consume(M), h) : h(M);
@@ -3277,15 +3279,15 @@ function Wr(e, n, t, r, i, l) {
3277
3279
  // which doesn’t need this.
3278
3280
  // Hidden footnotes hook.
3279
3281
  /* c8 ignore next 3 */
3280
- h === 94 && !o && "_hiddenFootnoteSupport" in a.parser.constructs ? t(h) : h === 93 ? (e.exit(l), e.enter(i), e.consume(h), e.exit(i), e.exit(r), n) : j(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), s) : (e.enter("chunkString", {
3282
+ h === 94 && !o && "_hiddenFootnoteSupport" in a.parser.constructs ? t(h) : h === 93 ? (e.exit(l), e.enter(i), e.consume(h), e.exit(i), e.exit(r), n) : I(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), s) : (e.enter("chunkString", {
3281
3283
  contentType: "string"
3282
- }), d(h));
3284
+ }), p(h));
3283
3285
  }
3284
- function d(h) {
3285
- return h === null || h === 91 || h === 93 || j(h) || o++ > 999 ? (e.exit("chunkString"), s(h)) : (e.consume(h), u || (u = !H(h)), h === 92 ? f : d);
3286
+ function p(h) {
3287
+ return h === null || h === 91 || h === 93 || I(h) || o++ > 999 ? (e.exit("chunkString"), s(h)) : (e.consume(h), u || (u = !H(h)), h === 92 ? f : p);
3286
3288
  }
3287
3289
  function f(h) {
3288
- return h === 91 || h === 92 || h === 93 ? (e.consume(h), o++, d) : d(h);
3290
+ return h === 91 || h === 92 || h === 93 ? (e.consume(h), o++, p) : p(h);
3289
3291
  }
3290
3292
  }
3291
3293
  function Er(e, n, t, r, i, l) {
@@ -3298,14 +3300,14 @@ function Er(e, n, t, r, i, l) {
3298
3300
  return f === a ? (e.enter(i), e.consume(f), e.exit(i), e.exit(r), n) : (e.enter(l), c(f));
3299
3301
  }
3300
3302
  function c(f) {
3301
- return f === a ? (e.exit(l), u(a)) : f === null ? t(f) : j(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), K(e, c, "linePrefix")) : (e.enter("chunkString", {
3303
+ return f === a ? (e.exit(l), u(a)) : f === null ? t(f) : I(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), K(e, c, "linePrefix")) : (e.enter("chunkString", {
3302
3304
  contentType: "string"
3303
3305
  }), s(f));
3304
3306
  }
3305
3307
  function s(f) {
3306
- return f === a || f === null || j(f) ? (e.exit("chunkString"), c(f)) : (e.consume(f), f === 92 ? d : s);
3308
+ return f === a || f === null || I(f) ? (e.exit("chunkString"), c(f)) : (e.consume(f), f === 92 ? p : s);
3307
3309
  }
3308
- function d(f) {
3310
+ function p(f) {
3309
3311
  return f === a || f === 92 ? (e.consume(f), s) : s(f);
3310
3312
  }
3311
3313
  }
@@ -3313,7 +3315,7 @@ function en(e, n) {
3313
3315
  let t;
3314
3316
  return r;
3315
3317
  function r(i) {
3316
- return j(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : H(i) ? K(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3318
+ return I(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : H(i) ? K(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3317
3319
  }
3318
3320
  }
3319
3321
  const Vo = {
@@ -3362,13 +3364,13 @@ function Bo(e, n, t) {
3362
3364
  )(h);
3363
3365
  }
3364
3366
  function s(h) {
3365
- return e.attempt(Co, d, d)(h);
3367
+ return e.attempt(Co, p, p)(h);
3366
3368
  }
3367
- function d(h) {
3369
+ function p(h) {
3368
3370
  return H(h) ? K(e, f, "whitespace")(h) : f(h);
3369
3371
  }
3370
3372
  function f(h) {
3371
- return h === null || j(h) ? (e.exit("definition"), r.parser.defined.push(i), n(h)) : t(h);
3373
+ return h === null || I(h) ? (e.exit("definition"), r.parser.defined.push(i), n(h)) : t(h);
3372
3374
  }
3373
3375
  }
3374
3376
  function Uo(e, n, t) {
@@ -3383,7 +3385,7 @@ function Uo(e, n, t) {
3383
3385
  return H(o) ? K(e, a, "whitespace")(o) : a(o);
3384
3386
  }
3385
3387
  function a(o) {
3386
- return o === null || j(o) ? n(o) : t(o);
3388
+ return o === null || I(o) ? n(o) : t(o);
3387
3389
  }
3388
3390
  }
3389
3391
  const Fo = {
@@ -3396,7 +3398,7 @@ function Oo(e, n, t) {
3396
3398
  return e.enter("hardBreakEscape"), e.consume(l), i;
3397
3399
  }
3398
3400
  function i(l) {
3399
- return j(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
3401
+ return I(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
3400
3402
  }
3401
3403
  }
3402
3404
  const Lo = {
@@ -3430,7 +3432,7 @@ function qo(e, n, t) {
3430
3432
  return s === 35 && r++ < 6 ? (e.consume(s), a) : s === null || oe(s) ? (e.exit("atxHeadingSequence"), o(s)) : t(s);
3431
3433
  }
3432
3434
  function o(s) {
3433
- return s === 35 ? (e.enter("atxHeadingSequence"), u(s)) : s === null || j(s) ? (e.exit("atxHeading"), n(s)) : H(s) ? K(e, o, "whitespace")(s) : (e.enter("atxHeadingText"), c(s));
3435
+ return s === 35 ? (e.enter("atxHeadingSequence"), u(s)) : s === null || I(s) ? (e.exit("atxHeading"), n(s)) : H(s) ? K(e, o, "whitespace")(s) : (e.enter("atxHeadingText"), c(s));
3434
3436
  }
3435
3437
  function u(s) {
3436
3438
  return s === 35 ? (e.consume(s), u) : (e.exit("atxHeadingSequence"), o(s));
@@ -3528,16 +3530,16 @@ function Ko(e, n, t) {
3528
3530
  return s(m);
3529
3531
  }
3530
3532
  function s(m) {
3531
- return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(m), d;
3533
+ return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(m), p;
3532
3534
  }
3533
- function d(m) {
3534
- return m === 33 ? (e.consume(m), f) : m === 47 ? (e.consume(m), l = !0, z) : m === 63 ? (e.consume(m), i = 3, r.interrupt ? n : p) : Me(m) ? (e.consume(m), a = String.fromCharCode(m), G) : t(m);
3535
+ function p(m) {
3536
+ return m === 33 ? (e.consume(m), f) : m === 47 ? (e.consume(m), l = !0, z) : m === 63 ? (e.consume(m), i = 3, r.interrupt ? n : d) : Me(m) ? (e.consume(m), a = String.fromCharCode(m), G) : t(m);
3535
3537
  }
3536
3538
  function f(m) {
3537
- return m === 45 ? (e.consume(m), i = 2, h) : m === 91 ? (e.consume(m), i = 5, o = 0, x) : Me(m) ? (e.consume(m), i = 4, r.interrupt ? n : p) : t(m);
3539
+ return m === 45 ? (e.consume(m), i = 2, h) : m === 91 ? (e.consume(m), i = 5, o = 0, x) : Me(m) ? (e.consume(m), i = 4, r.interrupt ? n : d) : t(m);
3538
3540
  }
3539
3541
  function h(m) {
3540
- return m === 45 ? (e.consume(m), r.interrupt ? n : p) : t(m);
3542
+ return m === 45 ? (e.consume(m), r.interrupt ? n : d) : t(m);
3541
3543
  }
3542
3544
  function x(m) {
3543
3545
  const ie = "CDATA[";
@@ -3551,7 +3553,7 @@ function Ko(e, n, t) {
3551
3553
  const ie = m === 47, Te = a.toLowerCase();
3552
3554
  return !ie && !l && Rt.includes(Te) ? (i = 1, r.interrupt ? n(m) : w(m)) : Ho.includes(a.toLowerCase()) ? (i = 6, ie ? (e.consume(m), M) : r.interrupt ? n(m) : w(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? Y(m) : N(m));
3553
3555
  }
3554
- return m === 45 || pe(m) ? (e.consume(m), a += String.fromCharCode(m), G) : t(m);
3556
+ return m === 45 || de(m) ? (e.consume(m), a += String.fromCharCode(m), G) : t(m);
3555
3557
  }
3556
3558
  function M(m) {
3557
3559
  return m === 62 ? (e.consume(m), r.interrupt ? n : w) : t(m);
@@ -3563,7 +3565,7 @@ function Ko(e, n, t) {
3563
3565
  return m === 47 ? (e.consume(m), V) : m === 58 || m === 95 || Me(m) ? (e.consume(m), E) : H(m) ? (e.consume(m), N) : V(m);
3564
3566
  }
3565
3567
  function E(m) {
3566
- return m === 45 || m === 46 || m === 58 || m === 95 || pe(m) ? (e.consume(m), E) : R(m);
3568
+ return m === 45 || m === 46 || m === 58 || m === 95 || de(m) ? (e.consume(m), E) : R(m);
3567
3569
  }
3568
3570
  function R(m) {
3569
3571
  return m === 61 ? (e.consume(m), g) : H(m) ? (e.consume(m), R) : N(m);
@@ -3572,7 +3574,7 @@ function Ko(e, n, t) {
3572
3574
  return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), u = m, W) : H(m) ? (e.consume(m), g) : O(m);
3573
3575
  }
3574
3576
  function W(m) {
3575
- return m === u ? (e.consume(m), u = null, F) : m === null || j(m) ? t(m) : (e.consume(m), W);
3577
+ return m === u ? (e.consume(m), u = null, F) : m === null || I(m) ? t(m) : (e.consume(m), W);
3576
3578
  }
3577
3579
  function O(m) {
3578
3580
  return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || oe(m) ? R(m) : (e.consume(m), O);
@@ -3584,22 +3586,22 @@ function Ko(e, n, t) {
3584
3586
  return m === 62 ? (e.consume(m), S) : t(m);
3585
3587
  }
3586
3588
  function S(m) {
3587
- return m === null || j(m) ? w(m) : H(m) ? (e.consume(m), S) : t(m);
3589
+ return m === null || I(m) ? w(m) : H(m) ? (e.consume(m), S) : t(m);
3588
3590
  }
3589
3591
  function w(m) {
3590
- return m === 45 && i === 2 ? (e.consume(m), v) : m === 60 && i === 1 ? (e.consume(m), q) : m === 62 && i === 4 ? (e.consume(m), ne) : m === 63 && i === 3 ? (e.consume(m), p) : m === 93 && i === 5 ? (e.consume(m), X) : j(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Po, fe, I)(m)) : m === null || j(m) ? (e.exit("htmlFlowData"), I(m)) : (e.consume(m), w);
3592
+ return m === 45 && i === 2 ? (e.consume(m), v) : m === 60 && i === 1 ? (e.consume(m), q) : m === 62 && i === 4 ? (e.consume(m), ne) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), X) : I(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Po, fe, j)(m)) : m === null || I(m) ? (e.exit("htmlFlowData"), j(m)) : (e.consume(m), w);
3591
3593
  }
3592
- function I(m) {
3594
+ function j(m) {
3593
3595
  return e.check(Xo, Q, fe)(m);
3594
3596
  }
3595
3597
  function Q(m) {
3596
3598
  return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), T;
3597
3599
  }
3598
3600
  function T(m) {
3599
- return m === null || j(m) ? I(m) : (e.enter("htmlFlowData"), w(m));
3601
+ return m === null || I(m) ? j(m) : (e.enter("htmlFlowData"), w(m));
3600
3602
  }
3601
3603
  function v(m) {
3602
- return m === 45 ? (e.consume(m), p) : w(m);
3604
+ return m === 45 ? (e.consume(m), d) : w(m);
3603
3605
  }
3604
3606
  function q(m) {
3605
3607
  return m === 47 ? (e.consume(m), a = "", _) : w(m);
@@ -3612,13 +3614,13 @@ function Ko(e, n, t) {
3612
3614
  return Me(m) && a.length < 8 ? (e.consume(m), a += String.fromCharCode(m), _) : w(m);
3613
3615
  }
3614
3616
  function X(m) {
3615
- return m === 93 ? (e.consume(m), p) : w(m);
3617
+ return m === 93 ? (e.consume(m), d) : w(m);
3616
3618
  }
3617
- function p(m) {
3618
- return m === 62 ? (e.consume(m), ne) : m === 45 && i === 2 ? (e.consume(m), p) : w(m);
3619
+ function d(m) {
3620
+ return m === 62 ? (e.consume(m), ne) : m === 45 && i === 2 ? (e.consume(m), d) : w(m);
3619
3621
  }
3620
3622
  function ne(m) {
3621
- return m === null || j(m) ? (e.exit("htmlFlowData"), fe(m)) : (e.consume(m), ne);
3623
+ return m === null || I(m) ? (e.exit("htmlFlowData"), fe(m)) : (e.consume(m), ne);
3622
3624
  }
3623
3625
  function fe(m) {
3624
3626
  return e.exit("htmlFlow"), n(m);
@@ -3628,7 +3630,7 @@ function _o(e, n, t) {
3628
3630
  const r = this;
3629
3631
  return i;
3630
3632
  function i(a) {
3631
- return j(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), l) : t(a);
3633
+ return I(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), l) : t(a);
3632
3634
  }
3633
3635
  function l(a) {
3634
3636
  return r.parser.lazy[r.now().line] ? t(a) : n(a);
@@ -3648,93 +3650,93 @@ function ns(e, n, t) {
3648
3650
  const r = this;
3649
3651
  let i, l, a;
3650
3652
  return o;
3651
- function o(p) {
3652
- return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(p), u;
3653
+ function o(d) {
3654
+ return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(d), u;
3653
3655
  }
3654
- function u(p) {
3655
- return p === 33 ? (e.consume(p), c) : p === 47 ? (e.consume(p), R) : p === 63 ? (e.consume(p), N) : Me(p) ? (e.consume(p), O) : t(p);
3656
+ function u(d) {
3657
+ return d === 33 ? (e.consume(d), c) : d === 47 ? (e.consume(d), R) : d === 63 ? (e.consume(d), N) : Me(d) ? (e.consume(d), O) : t(d);
3656
3658
  }
3657
- function c(p) {
3658
- return p === 45 ? (e.consume(p), s) : p === 91 ? (e.consume(p), l = 0, x) : Me(p) ? (e.consume(p), Y) : t(p);
3659
+ function c(d) {
3660
+ return d === 45 ? (e.consume(d), s) : d === 91 ? (e.consume(d), l = 0, x) : Me(d) ? (e.consume(d), Y) : t(d);
3659
3661
  }
3660
- function s(p) {
3661
- return p === 45 ? (e.consume(p), h) : t(p);
3662
+ function s(d) {
3663
+ return d === 45 ? (e.consume(d), h) : t(d);
3662
3664
  }
3663
- function d(p) {
3664
- return p === null ? t(p) : p === 45 ? (e.consume(p), f) : j(p) ? (a = d, q(p)) : (e.consume(p), d);
3665
+ function p(d) {
3666
+ return d === null ? t(d) : d === 45 ? (e.consume(d), f) : I(d) ? (a = p, q(d)) : (e.consume(d), p);
3665
3667
  }
3666
- function f(p) {
3667
- return p === 45 ? (e.consume(p), h) : d(p);
3668
+ function f(d) {
3669
+ return d === 45 ? (e.consume(d), h) : p(d);
3668
3670
  }
3669
- function h(p) {
3670
- return p === 62 ? v(p) : p === 45 ? f(p) : d(p);
3671
+ function h(d) {
3672
+ return d === 62 ? v(d) : d === 45 ? f(d) : p(d);
3671
3673
  }
3672
- function x(p) {
3674
+ function x(d) {
3673
3675
  const ne = "CDATA[";
3674
- return p === ne.charCodeAt(l++) ? (e.consume(p), l === ne.length ? z : x) : t(p);
3676
+ return d === ne.charCodeAt(l++) ? (e.consume(d), l === ne.length ? z : x) : t(d);
3675
3677
  }
3676
- function z(p) {
3677
- return p === null ? t(p) : p === 93 ? (e.consume(p), G) : j(p) ? (a = z, q(p)) : (e.consume(p), z);
3678
+ function z(d) {
3679
+ return d === null ? t(d) : d === 93 ? (e.consume(d), G) : I(d) ? (a = z, q(d)) : (e.consume(d), z);
3678
3680
  }
3679
- function G(p) {
3680
- return p === 93 ? (e.consume(p), M) : z(p);
3681
+ function G(d) {
3682
+ return d === 93 ? (e.consume(d), M) : z(d);
3681
3683
  }
3682
- function M(p) {
3683
- return p === 62 ? v(p) : p === 93 ? (e.consume(p), M) : z(p);
3684
+ function M(d) {
3685
+ return d === 62 ? v(d) : d === 93 ? (e.consume(d), M) : z(d);
3684
3686
  }
3685
- function Y(p) {
3686
- return p === null || p === 62 ? v(p) : j(p) ? (a = Y, q(p)) : (e.consume(p), Y);
3687
+ function Y(d) {
3688
+ return d === null || d === 62 ? v(d) : I(d) ? (a = Y, q(d)) : (e.consume(d), Y);
3687
3689
  }
3688
- function N(p) {
3689
- return p === null ? t(p) : p === 63 ? (e.consume(p), E) : j(p) ? (a = N, q(p)) : (e.consume(p), N);
3690
+ function N(d) {
3691
+ return d === null ? t(d) : d === 63 ? (e.consume(d), E) : I(d) ? (a = N, q(d)) : (e.consume(d), N);
3690
3692
  }
3691
- function E(p) {
3692
- return p === 62 ? v(p) : N(p);
3693
+ function E(d) {
3694
+ return d === 62 ? v(d) : N(d);
3693
3695
  }
3694
- function R(p) {
3695
- return Me(p) ? (e.consume(p), g) : t(p);
3696
+ function R(d) {
3697
+ return Me(d) ? (e.consume(d), g) : t(d);
3696
3698
  }
3697
- function g(p) {
3698
- return p === 45 || pe(p) ? (e.consume(p), g) : W(p);
3699
+ function g(d) {
3700
+ return d === 45 || de(d) ? (e.consume(d), g) : W(d);
3699
3701
  }
3700
- function W(p) {
3701
- return j(p) ? (a = W, q(p)) : H(p) ? (e.consume(p), W) : v(p);
3702
+ function W(d) {
3703
+ return I(d) ? (a = W, q(d)) : H(d) ? (e.consume(d), W) : v(d);
3702
3704
  }
3703
- function O(p) {
3704
- return p === 45 || pe(p) ? (e.consume(p), O) : p === 47 || p === 62 || oe(p) ? F(p) : t(p);
3705
+ function O(d) {
3706
+ return d === 45 || de(d) ? (e.consume(d), O) : d === 47 || d === 62 || oe(d) ? F(d) : t(d);
3705
3707
  }
3706
- function F(p) {
3707
- return p === 47 ? (e.consume(p), v) : p === 58 || p === 95 || Me(p) ? (e.consume(p), V) : j(p) ? (a = F, q(p)) : H(p) ? (e.consume(p), F) : v(p);
3708
+ function F(d) {
3709
+ return d === 47 ? (e.consume(d), v) : d === 58 || d === 95 || Me(d) ? (e.consume(d), V) : I(d) ? (a = F, q(d)) : H(d) ? (e.consume(d), F) : v(d);
3708
3710
  }
3709
- function V(p) {
3710
- return p === 45 || p === 46 || p === 58 || p === 95 || pe(p) ? (e.consume(p), V) : S(p);
3711
+ function V(d) {
3712
+ return d === 45 || d === 46 || d === 58 || d === 95 || de(d) ? (e.consume(d), V) : S(d);
3711
3713
  }
3712
- function S(p) {
3713
- return p === 61 ? (e.consume(p), w) : j(p) ? (a = S, q(p)) : H(p) ? (e.consume(p), S) : F(p);
3714
+ function S(d) {
3715
+ return d === 61 ? (e.consume(d), w) : I(d) ? (a = S, q(d)) : H(d) ? (e.consume(d), S) : F(d);
3714
3716
  }
3715
- function w(p) {
3716
- return p === null || p === 60 || p === 61 || p === 62 || p === 96 ? t(p) : p === 34 || p === 39 ? (e.consume(p), i = p, I) : j(p) ? (a = w, q(p)) : H(p) ? (e.consume(p), w) : (e.consume(p), Q);
3717
+ function w(d) {
3718
+ return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, j) : I(d) ? (a = w, q(d)) : H(d) ? (e.consume(d), w) : (e.consume(d), Q);
3717
3719
  }
3718
- function I(p) {
3719
- return p === i ? (e.consume(p), i = void 0, T) : p === null ? t(p) : j(p) ? (a = I, q(p)) : (e.consume(p), I);
3720
+ function j(d) {
3721
+ return d === i ? (e.consume(d), i = void 0, T) : d === null ? t(d) : I(d) ? (a = j, q(d)) : (e.consume(d), j);
3720
3722
  }
3721
- function Q(p) {
3722
- return p === null || p === 34 || p === 39 || p === 60 || p === 61 || p === 96 ? t(p) : p === 47 || p === 62 || oe(p) ? F(p) : (e.consume(p), Q);
3723
+ function Q(d) {
3724
+ return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || oe(d) ? F(d) : (e.consume(d), Q);
3723
3725
  }
3724
- function T(p) {
3725
- return p === 47 || p === 62 || oe(p) ? F(p) : t(p);
3726
+ function T(d) {
3727
+ return d === 47 || d === 62 || oe(d) ? F(d) : t(d);
3726
3728
  }
3727
- function v(p) {
3728
- return p === 62 ? (e.consume(p), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(p);
3729
+ function v(d) {
3730
+ return d === 62 ? (e.consume(d), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(d);
3729
3731
  }
3730
- function q(p) {
3731
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), _;
3732
+ function q(d) {
3733
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), _;
3732
3734
  }
3733
- function _(p) {
3734
- return H(p) ? K(e, X, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(p) : X(p);
3735
+ function _(d) {
3736
+ return H(d) ? K(e, X, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : X(d);
3735
3737
  }
3736
- function X(p) {
3737
- return e.enter("htmlTextData"), a(p);
3738
+ function X(d) {
3739
+ return e.enter("htmlTextData"), a(d);
3738
3740
  }
3739
3741
  }
3740
3742
  const rt = {
@@ -3811,49 +3813,49 @@ function os(e, n, t) {
3811
3813
  }
3812
3814
  return o;
3813
3815
  function o(f) {
3814
- return l ? l._inactive ? d(f) : (a = r.parser.defined.includes(Fe(r.sliceSerialize({
3816
+ return l ? l._inactive ? p(f) : (a = r.parser.defined.includes(Fe(r.sliceSerialize({
3815
3817
  start: l.end,
3816
3818
  end: r.now()
3817
3819
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(f), e.exit("labelMarker"), e.exit("labelEnd"), u) : t(f);
3818
3820
  }
3819
3821
  function u(f) {
3820
- return f === 40 ? e.attempt(ts, s, a ? s : d)(f) : f === 91 ? e.attempt(rs, s, a ? c : d)(f) : a ? s(f) : d(f);
3822
+ return f === 40 ? e.attempt(ts, s, a ? s : p)(f) : f === 91 ? e.attempt(rs, s, a ? c : p)(f) : a ? s(f) : p(f);
3821
3823
  }
3822
3824
  function c(f) {
3823
- return e.attempt(is, s, d)(f);
3825
+ return e.attempt(is, s, p)(f);
3824
3826
  }
3825
3827
  function s(f) {
3826
3828
  return n(f);
3827
3829
  }
3828
- function d(f) {
3830
+ function p(f) {
3829
3831
  return l._balanced = !0, t(f);
3830
3832
  }
3831
3833
  }
3832
3834
  function ss(e, n, t) {
3833
3835
  return r;
3834
- function r(d) {
3835
- return e.enter("resource"), e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), i;
3836
+ function r(p) {
3837
+ return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
3836
3838
  }
3837
- function i(d) {
3838
- return oe(d) ? en(e, l)(d) : l(d);
3839
+ function i(p) {
3840
+ return oe(p) ? en(e, l)(p) : l(p);
3839
3841
  }
3840
- function l(d) {
3841
- return d === 41 ? s(d) : vr(e, a, o, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(d);
3842
+ function l(p) {
3843
+ return p === 41 ? s(p) : vr(e, a, o, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(p);
3842
3844
  }
3843
- function a(d) {
3844
- return oe(d) ? en(e, u)(d) : s(d);
3845
+ function a(p) {
3846
+ return oe(p) ? en(e, u)(p) : s(p);
3845
3847
  }
3846
- function o(d) {
3847
- return t(d);
3848
+ function o(p) {
3849
+ return t(p);
3848
3850
  }
3849
- function u(d) {
3850
- return d === 34 || d === 39 || d === 40 ? Er(e, c, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(d) : s(d);
3851
+ function u(p) {
3852
+ return p === 34 || p === 39 || p === 40 ? Er(e, c, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(p) : s(p);
3851
3853
  }
3852
- function c(d) {
3853
- return oe(d) ? en(e, s)(d) : s(d);
3854
+ function c(p) {
3855
+ return oe(p) ? en(e, s)(p) : s(p);
3854
3856
  }
3855
- function s(d) {
3856
- return d === 41 ? (e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), e.exit("resource"), n) : t(d);
3857
+ function s(p) {
3858
+ return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), n) : t(p);
3857
3859
  }
3858
3860
  }
3859
3861
  function us(e, n, t) {
@@ -3881,9 +3883,9 @@ function cs(e, n, t) {
3881
3883
  const hs = {
3882
3884
  name: "labelStartImage",
3883
3885
  resolveAll: rt.resolveAll,
3884
- tokenize: ds
3886
+ tokenize: ps
3885
3887
  };
3886
- function ds(e, n, t) {
3888
+ function ps(e, n, t) {
3887
3889
  const r = this;
3888
3890
  return i;
3889
3891
  function i(o) {
@@ -3896,7 +3898,7 @@ function ds(e, n, t) {
3896
3898
  return o === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(o) : n(o);
3897
3899
  }
3898
3900
  }
3899
- const ps = {
3901
+ const ds = {
3900
3902
  name: "labelStartLink",
3901
3903
  resolveAll: rt.resolveAll,
3902
3904
  tokenize: ms
@@ -3935,7 +3937,7 @@ function ys(e, n, t) {
3935
3937
  return i = c, o(c);
3936
3938
  }
3937
3939
  function o(c) {
3938
- return c === i ? (e.enter("thematicBreakSequence"), u(c)) : r >= 3 && (c === null || j(c)) ? (e.exit("thematicBreak"), n(c)) : t(c);
3940
+ return c === i ? (e.enter("thematicBreakSequence"), u(c)) : r >= 3 && (c === null || I(c)) ? (e.exit("thematicBreak"), n(c)) : t(c);
3939
3941
  }
3940
3942
  function u(c) {
3941
3943
  return c === i ? (e.consume(c), r++, u) : (e.exit("thematicBreakSequence"), H(c) ? K(e, o, "whitespace")(c) : o(c));
@@ -3979,13 +3981,13 @@ function xs(e, n, t) {
3979
3981
  zn,
3980
3982
  // Can’t be empty when interrupting.
3981
3983
  r.interrupt ? t : s,
3982
- e.attempt(gs, f, d)
3984
+ e.attempt(gs, f, p)
3983
3985
  );
3984
3986
  }
3985
3987
  function s(h) {
3986
3988
  return r.containerState.initialBlankLine = !0, l++, f(h);
3987
3989
  }
3988
- function d(h) {
3990
+ function p(h) {
3989
3991
  return H(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), f) : t(h);
3990
3992
  }
3991
3993
  function f(h) {
@@ -4058,13 +4060,13 @@ function As(e, n, t) {
4058
4060
  let i;
4059
4061
  return l;
4060
4062
  function l(c) {
4061
- let s = r.events.length, d;
4063
+ let s = r.events.length, p;
4062
4064
  for (; s--; )
4063
4065
  if (r.events[s][1].type !== "lineEnding" && r.events[s][1].type !== "linePrefix" && r.events[s][1].type !== "content") {
4064
- d = r.events[s][1].type === "paragraph";
4066
+ p = r.events[s][1].type === "paragraph";
4065
4067
  break;
4066
4068
  }
4067
- return !r.parser.lazy[r.now().line] && (r.interrupt || d) ? (e.enter("setextHeadingLine"), i = c, a(c)) : t(c);
4069
+ return !r.parser.lazy[r.now().line] && (r.interrupt || p) ? (e.enter("setextHeadingLine"), i = c, a(c)) : t(c);
4068
4070
  }
4069
4071
  function a(c) {
4070
4072
  return e.enter("setextHeadingLineSequence"), o(c);
@@ -4073,7 +4075,7 @@ function As(e, n, t) {
4073
4075
  return c === i ? (e.consume(c), o) : (e.exit("setextHeadingLineSequence"), H(c) ? K(e, u, "lineSuffix")(c) : u(c));
4074
4076
  }
4075
4077
  function u(c) {
4076
- return c === null || j(c) ? (e.exit("setextHeadingLine"), n(c)) : t(c);
4078
+ return c === null || I(c) ? (e.exit("setextHeadingLine"), n(c)) : t(c);
4077
4079
  }
4078
4080
  }
4079
4081
  const Zs = {
@@ -4130,11 +4132,11 @@ function Rr(e) {
4130
4132
  function c(s) {
4131
4133
  if (s === null)
4132
4134
  return !0;
4133
- const d = i[s];
4135
+ const p = i[s];
4134
4136
  let f = -1;
4135
- if (d)
4136
- for (; ++f < d.length; ) {
4137
- const h = d[f];
4137
+ if (p)
4138
+ for (; ++f < p.length; ) {
4139
+ const h = p[f];
4138
4140
  if (!h.previous || h.previous.call(r, r.previous))
4139
4141
  return !0;
4140
4142
  }
@@ -4214,7 +4216,7 @@ const Es = {
4214
4216
  [-2]: An,
4215
4217
  [-1]: An,
4216
4218
  32: An
4217
- }, js = {
4219
+ }, Is = {
4218
4220
  35: Lo,
4219
4221
  42: mn,
4220
4222
  45: [Yt, mn],
@@ -4223,7 +4225,7 @@ const Es = {
4223
4225
  95: mn,
4224
4226
  96: Et,
4225
4227
  126: Et
4226
- }, Is = {
4228
+ }, js = {
4227
4229
  38: Sr,
4228
4230
  92: Gr
4229
4231
  }, Vs = {
@@ -4234,7 +4236,7 @@ const Es = {
4234
4236
  38: Sr,
4235
4237
  42: Qn,
4236
4238
  60: [po, es],
4237
- 91: ps,
4239
+ 91: ds,
4238
4240
  92: [Fo, Gr],
4239
4241
  93: rt,
4240
4242
  95: Qn,
@@ -4251,10 +4253,10 @@ const Es = {
4251
4253
  contentInitial: Rs,
4252
4254
  disable: Us,
4253
4255
  document: Es,
4254
- flow: js,
4256
+ flow: Is,
4255
4257
  flowInitial: Ys,
4256
4258
  insideSpan: Cs,
4257
- string: Is,
4259
+ string: js,
4258
4260
  text: Vs
4259
4261
  }, Symbol.toStringTag, { value: "Module" }));
4260
4262
  function Os(e, n, t) {
@@ -4286,11 +4288,11 @@ function Os(e, n, t) {
4286
4288
  previous: null,
4287
4289
  sliceSerialize: f,
4288
4290
  sliceStream: h,
4289
- write: d
4291
+ write: p
4290
4292
  };
4291
4293
  let s = n.tokenize.call(c, u);
4292
4294
  return n.resolveAll && l.push(n), c;
4293
- function d(S) {
4295
+ function p(S) {
4294
4296
  return a = ge(a, S), G(), a[a.length - 1] !== null ? [] : (O(n, 0), c.events = tt(l, c.events, c), c.events);
4295
4297
  }
4296
4298
  function f(S, w) {
@@ -4303,14 +4305,14 @@ function Os(e, n, t) {
4303
4305
  const {
4304
4306
  _bufferIndex: S,
4305
4307
  _index: w,
4306
- line: I,
4308
+ line: j,
4307
4309
  column: Q,
4308
4310
  offset: T
4309
4311
  } = r;
4310
4312
  return {
4311
4313
  _bufferIndex: S,
4312
4314
  _index: w,
4313
- line: I,
4315
+ line: j,
4314
4316
  column: Q,
4315
4317
  offset: T
4316
4318
  };
@@ -4333,14 +4335,14 @@ function Os(e, n, t) {
4333
4335
  s = s(S);
4334
4336
  }
4335
4337
  function Y(S) {
4336
- j(S) ? (r.line++, r.column = 1, r.offset += S === -3 ? 2 : 1, V()) : S !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
4338
+ I(S) ? (r.line++, r.column = 1, r.offset += S === -3 ? 2 : 1, V()) : S !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
4337
4339
  // strings.
4338
4340
  /** @type {string} */
4339
4341
  a[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = S;
4340
4342
  }
4341
4343
  function N(S, w) {
4342
- const I = w || {};
4343
- return I.type = S, I.start = x(), c.events.push(["enter", I, c]), o.push(I), I;
4344
+ const j = w || {};
4345
+ return j.type = S, j.start = x(), c.events.push(["enter", j, c]), o.push(j), j;
4344
4346
  }
4345
4347
  function E(S) {
4346
4348
  const w = o.pop();
@@ -4353,9 +4355,9 @@ function Os(e, n, t) {
4353
4355
  w.restore();
4354
4356
  }
4355
4357
  function W(S, w) {
4356
- return I;
4357
- function I(Q, T, v) {
4358
- let q, _, X, p;
4358
+ return j;
4359
+ function j(Q, T, v) {
4360
+ let q, _, X, d;
4359
4361
  return Array.isArray(Q) ? (
4360
4362
  /* c8 ignore next 1 */
4361
4363
  fe(Q)
@@ -4369,11 +4371,11 @@ function Os(e, n, t) {
4369
4371
  function ne(te) {
4370
4372
  return qe;
4371
4373
  function qe(Ze) {
4372
- const je = Ze !== null && te[Ze], Ie = Ze !== null && te.null, an = [
4374
+ const Ie = Ze !== null && te[Ze], je = Ze !== null && te.null, an = [
4373
4375
  // To do: add more extension tests.
4374
4376
  /* c8 ignore next 2 */
4375
- ...Array.isArray(je) ? je : je ? [je] : [],
4376
- ...Array.isArray(Ie) ? Ie : Ie ? [Ie] : []
4377
+ ...Array.isArray(Ie) ? Ie : Ie ? [Ie] : [],
4378
+ ...Array.isArray(je) ? je : je ? [je] : []
4377
4379
  ];
4378
4380
  return fe(an)(Ze);
4379
4381
  }
@@ -4384,7 +4386,7 @@ function Os(e, n, t) {
4384
4386
  function m(te) {
4385
4387
  return qe;
4386
4388
  function qe(Ze) {
4387
- return p = F(), X = te, te.partial || (c.currentConstruct = te), te.name && c.parser.constructs.disable.null.includes(te.name) ? Te() : te.tokenize.call(
4389
+ return d = F(), X = te, te.partial || (c.currentConstruct = te), te.name && c.parser.constructs.disable.null.includes(te.name) ? Te() : te.tokenize.call(
4388
4390
  // If we do have fields, create an object w/ `context` as its
4389
4391
  // prototype.
4390
4392
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -4396,10 +4398,10 @@ function Os(e, n, t) {
4396
4398
  }
4397
4399
  }
4398
4400
  function ie(te) {
4399
- return S(X, p), T;
4401
+ return S(X, d), T;
4400
4402
  }
4401
4403
  function Te(te) {
4402
- return p.restore(), ++_ < q.length ? m(q[_]) : v;
4404
+ return d.restore(), ++_ < q.length ? m(q[_]) : v;
4403
4405
  }
4404
4406
  }
4405
4407
  }
@@ -4407,13 +4409,13 @@ function Os(e, n, t) {
4407
4409
  S.resolveAll && !l.includes(S) && l.push(S), S.resolve && be(c.events, w, c.events.length - w, S.resolve(c.events.slice(w), c)), S.resolveTo && (c.events = S.resolveTo(c.events, c));
4408
4410
  }
4409
4411
  function F() {
4410
- const S = x(), w = c.previous, I = c.currentConstruct, Q = c.events.length, T = Array.from(o);
4412
+ const S = x(), w = c.previous, j = c.currentConstruct, Q = c.events.length, T = Array.from(o);
4411
4413
  return {
4412
4414
  from: Q,
4413
4415
  restore: v
4414
4416
  };
4415
4417
  function v() {
4416
- r = S, c.previous = w, c.currentConstruct = I, c.events.length = Q, o = T, V();
4418
+ r = S, c.previous = w, c.currentConstruct = j, c.events.length = Q, o = T, V();
4417
4419
  }
4418
4420
  }
4419
4421
  function V() {
@@ -4501,22 +4503,22 @@ function Hs(e) {
4501
4503
  ;
4502
4504
  return e;
4503
4505
  }
4504
- const jt = /[\0\t\n\r]/g;
4506
+ const It = /[\0\t\n\r]/g;
4505
4507
  function Js() {
4506
4508
  let e = 1, n = "", t = !0, r;
4507
4509
  return i;
4508
4510
  function i(l, a, o) {
4509
4511
  const u = [];
4510
- let c, s, d, f, h;
4511
- for (l = n + (typeof l == "string" ? l.toString() : new TextDecoder(a || void 0).decode(l)), d = 0, n = "", t && (l.charCodeAt(0) === 65279 && d++, t = void 0); d < l.length; ) {
4512
- if (jt.lastIndex = d, c = jt.exec(l), f = c && c.index !== void 0 ? c.index : l.length, h = l.charCodeAt(f), !c) {
4513
- n = l.slice(d);
4512
+ let c, s, p, f, h;
4513
+ for (l = n + (typeof l == "string" ? l.toString() : new TextDecoder(a || void 0).decode(l)), p = 0, n = "", t && (l.charCodeAt(0) === 65279 && p++, t = void 0); p < l.length; ) {
4514
+ if (It.lastIndex = p, c = It.exec(l), f = c && c.index !== void 0 ? c.index : l.length, h = l.charCodeAt(f), !c) {
4515
+ n = l.slice(p);
4514
4516
  break;
4515
4517
  }
4516
- if (h === 10 && d === f && r)
4518
+ if (h === 10 && p === f && r)
4517
4519
  u.push(-3), r = void 0;
4518
4520
  else
4519
- switch (r && (u.push(-5), r = void 0), d < f && (u.push(l.slice(d, f)), e += f - d), h) {
4521
+ switch (r && (u.push(-5), r = void 0), p < f && (u.push(l.slice(p, f)), e += f - p), h) {
4520
4522
  case 0: {
4521
4523
  u.push(65533), e++;
4522
4524
  break;
@@ -4532,7 +4534,7 @@ function Js() {
4532
4534
  default:
4533
4535
  r = !0, e = 1;
4534
4536
  }
4535
- d = f + 1;
4537
+ p = f + 1;
4536
4538
  }
4537
4539
  return o && (r && u.push(-5), n && u.push(n), u.push(null)), u;
4538
4540
  }
@@ -4550,7 +4552,7 @@ function Ds(e, n, t) {
4550
4552
  }
4551
4553
  return nt(t) || e;
4552
4554
  }
4553
- const jr = {}.hasOwnProperty;
4555
+ const Ir = {}.hasOwnProperty;
4554
4556
  function Ks(e, n, t) {
4555
4557
  return typeof n != "string" && (t = n, n = void 0), _s(t)(Hs(qs(t).document().write(Js()(e, n, !0))));
4556
4558
  }
@@ -4559,11 +4561,11 @@ function _s(e) {
4559
4561
  transforms: [],
4560
4562
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4561
4563
  enter: {
4562
- autolink: l(dt),
4564
+ autolink: l(pt),
4563
4565
  autolinkProtocol: F,
4564
4566
  autolinkEmail: F,
4565
4567
  atxHeading: l(ut),
4566
- blockQuote: l(Ie),
4568
+ blockQuote: l(je),
4567
4569
  characterEscape: F,
4568
4570
  characterReference: F,
4569
4571
  codeFenced: l(an),
@@ -4587,11 +4589,11 @@ function _s(e) {
4587
4589
  htmlTextData: F,
4588
4590
  image: l(Kr),
4589
4591
  label: a,
4590
- link: l(dt),
4592
+ link: l(pt),
4591
4593
  listItem: l(_r),
4592
4594
  listItemValue: f,
4593
- listOrdered: l(pt, d),
4594
- listUnordered: l(pt),
4595
+ listOrdered: l(dt, p),
4596
+ listUnordered: l(dt),
4595
4597
  paragraph: l($r),
4596
4598
  reference: m,
4597
4599
  referenceString: a,
@@ -4605,7 +4607,7 @@ function _s(e) {
4605
4607
  atxHeading: u(),
4606
4608
  atxHeadingSequence: R,
4607
4609
  autolink: u(),
4608
- autolinkEmail: je,
4610
+ autolinkEmail: Ie,
4609
4611
  autolinkProtocol: Ze,
4610
4612
  blockQuote: u(),
4611
4613
  characterEscapeValue: V,
@@ -4629,7 +4631,7 @@ function _s(e) {
4629
4631
  emphasis: u(),
4630
4632
  hardBreakEscape: u(w),
4631
4633
  hardBreakTrailing: u(w),
4632
- htmlFlow: u(I),
4634
+ htmlFlow: u(j),
4633
4635
  htmlFlowData: V,
4634
4636
  htmlText: u(Q),
4635
4637
  htmlTextData: V,
@@ -4643,7 +4645,7 @@ function _s(e) {
4643
4645
  listUnordered: u(),
4644
4646
  paragraph: u(),
4645
4647
  referenceString: ie,
4646
- resourceDestinationString: p,
4648
+ resourceDestinationString: d,
4647
4649
  resourceTitleString: ne,
4648
4650
  resource: fe,
4649
4651
  setextHeading: u(O),
@@ -4653,7 +4655,7 @@ function _s(e) {
4653
4655
  thematicBreak: u()
4654
4656
  }
4655
4657
  };
4656
- Ir(n, (e || {}).mdastExtensions || []);
4658
+ jr(n, (e || {}).mdastExtensions || []);
4657
4659
  const t = {};
4658
4660
  return r;
4659
4661
  function r(k) {
@@ -4682,13 +4684,13 @@ function _s(e) {
4682
4684
  }
4683
4685
  for (J = -1; ++J < k.length; ) {
4684
4686
  const ke = n[k[J][0]];
4685
- jr.call(ke, k[J][1].type) && ke[k[J][1].type].call(Object.assign({
4687
+ Ir.call(ke, k[J][1].type) && ke[k[J][1].type].call(Object.assign({
4686
4688
  sliceSerialize: k[J][2].sliceSerialize
4687
4689
  }, C), k[J][1]);
4688
4690
  }
4689
4691
  if (C.tokenStack.length > 0) {
4690
4692
  const ke = C.tokenStack[C.tokenStack.length - 1];
4691
- (ke[1] || It).call(C, void 0, ke[0]);
4693
+ (ke[1] || jt).call(C, void 0, ke[0]);
4692
4694
  }
4693
4695
  for (A.position = {
4694
4696
  start: Ge(k.length > 0 ? k[0][1].start : {
@@ -4783,7 +4785,7 @@ function _s(e) {
4783
4785
  function c(k, A) {
4784
4786
  const C = this.stack.pop(), L = this.tokenStack.pop();
4785
4787
  if (L)
4786
- L[0].type !== k.type && (A ? A.call(this, k, L[0]) : (L[1] || It).call(this, k, L[0]));
4788
+ L[0].type !== k.type && (A ? A.call(this, k, L[0]) : (L[1] || jt).call(this, k, L[0]));
4787
4789
  else throw new Error("Cannot close `" + k.type + "` (" + $e({
4788
4790
  start: k.start,
4789
4791
  end: k.end
@@ -4793,7 +4795,7 @@ function _s(e) {
4793
4795
  function s() {
4794
4796
  return Xa(this.stack.pop());
4795
4797
  }
4796
- function d() {
4798
+ function p() {
4797
4799
  this.data.expectingFirstListItemValue = !0;
4798
4800
  }
4799
4801
  function f(k) {
@@ -4875,7 +4877,7 @@ function _s(e) {
4875
4877
  function w() {
4876
4878
  this.data.atHardBreak = !0;
4877
4879
  }
4878
- function I() {
4880
+ function j() {
4879
4881
  const k = this.resume(), A = this.stack[this.stack.length - 1];
4880
4882
  A.value = k;
4881
4883
  }
@@ -4917,7 +4919,7 @@ function _s(e) {
4917
4919
  } else
4918
4920
  C.alt = A;
4919
4921
  }
4920
- function p() {
4922
+ function d() {
4921
4923
  const k = this.resume(), A = this.stack[this.stack.length - 1];
4922
4924
  A.url = k;
4923
4925
  }
@@ -4954,12 +4956,12 @@ function _s(e) {
4954
4956
  const A = this.stack[this.stack.length - 1];
4955
4957
  A.url = this.sliceSerialize(k);
4956
4958
  }
4957
- function je(k) {
4959
+ function Ie(k) {
4958
4960
  V.call(this, k);
4959
4961
  const A = this.stack[this.stack.length - 1];
4960
4962
  A.url = "mailto:" + this.sliceSerialize(k);
4961
4963
  }
4962
- function Ie() {
4964
+ function je() {
4963
4965
  return {
4964
4966
  type: "blockquote",
4965
4967
  children: []
@@ -5021,7 +5023,7 @@ function _s(e) {
5021
5023
  alt: null
5022
5024
  };
5023
5025
  }
5024
- function dt() {
5026
+ function pt() {
5025
5027
  return {
5026
5028
  type: "link",
5027
5029
  title: null,
@@ -5029,7 +5031,7 @@ function _s(e) {
5029
5031
  children: []
5030
5032
  };
5031
5033
  }
5032
- function pt(k) {
5034
+ function dt(k) {
5033
5035
  return {
5034
5036
  type: "list",
5035
5037
  ordered: k.type === "listOrdered",
@@ -5077,17 +5079,17 @@ function Ge(e) {
5077
5079
  offset: e.offset
5078
5080
  };
5079
5081
  }
5080
- function Ir(e, n) {
5082
+ function jr(e, n) {
5081
5083
  let t = -1;
5082
5084
  for (; ++t < n.length; ) {
5083
5085
  const r = n[t];
5084
- Array.isArray(r) ? Ir(e, r) : $s(e, r);
5086
+ Array.isArray(r) ? jr(e, r) : $s(e, r);
5085
5087
  }
5086
5088
  }
5087
5089
  function $s(e, n) {
5088
5090
  let t;
5089
5091
  for (t in n)
5090
- if (jr.call(n, t))
5092
+ if (Ir.call(n, t))
5091
5093
  switch (t) {
5092
5094
  case "canContainEols": {
5093
5095
  const r = n[t];
@@ -5107,7 +5109,7 @@ function $s(e, n) {
5107
5109
  }
5108
5110
  }
5109
5111
  }
5110
- function It(e, n) {
5112
+ function jt(e, n) {
5111
5113
  throw e ? new Error("Cannot close `" + e.type + "` (" + $e({
5112
5114
  start: e.start,
5113
5115
  end: e.end
@@ -5253,7 +5255,7 @@ function hu(e, n) {
5253
5255
  };
5254
5256
  return e.patch(n, r), e.applyData(n, r);
5255
5257
  }
5256
- function du(e, n) {
5258
+ function pu(e, n) {
5257
5259
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
5258
5260
  if (!r)
5259
5261
  return Vr(e, n);
@@ -5267,7 +5269,7 @@ function du(e, n) {
5267
5269
  };
5268
5270
  return e.patch(n, l), e.applyData(n, l);
5269
5271
  }
5270
- function pu(e, n) {
5272
+ function du(e, n) {
5271
5273
  const t = { href: Qe(n.url) };
5272
5274
  n.title !== null && n.title !== void 0 && (t.title = n.title);
5273
5275
  const r = {
@@ -5282,8 +5284,8 @@ function mu(e, n, t) {
5282
5284
  const r = e.all(n), i = t ? fu(t) : Cr(n), l = {}, a = [];
5283
5285
  if (typeof n.checked == "boolean") {
5284
5286
  const s = r[0];
5285
- let d;
5286
- s && s.type === "element" && s.tagName === "p" ? d = s : (d = { type: "element", tagName: "p", properties: {}, children: [] }, r.unshift(d)), d.children.length > 0 && d.children.unshift({ type: "text", value: " " }), d.children.unshift({
5287
+ let p;
5288
+ s && s.type === "element" && s.tagName === "p" ? p = s : (p = { type: "element", tagName: "p", properties: {}, children: [] }, r.unshift(p)), p.children.length > 0 && p.children.unshift({ type: "text", value: " " }), p.children.unshift({
5287
5289
  type: "element",
5288
5290
  tagName: "input",
5289
5291
  properties: { type: "checkbox", checked: n.checked, disabled: !0 },
@@ -5390,10 +5392,10 @@ function Mu(e, n, t) {
5390
5392
  let u = -1;
5391
5393
  const c = [];
5392
5394
  for (; ++u < o; ) {
5393
- const d = n.children[u], f = {}, h = a ? a[u] : void 0;
5395
+ const p = n.children[u], f = {}, h = a ? a[u] : void 0;
5394
5396
  h && (f.align = h);
5395
5397
  let x = { type: "element", tagName: l, properties: f, children: [] };
5396
- d && (x.children = e.all(d), e.patch(d, x), x = e.applyData(d, x)), c.push(x);
5398
+ p && (x.children = e.all(p), e.patch(p, x), x = e.applyData(p, x)), c.push(x);
5397
5399
  }
5398
5400
  const s = {
5399
5401
  type: "element",
@@ -5464,8 +5466,8 @@ const Zu = {
5464
5466
  imageReference: uu,
5465
5467
  image: cu,
5466
5468
  inlineCode: hu,
5467
- linkReference: du,
5468
- link: pu,
5469
+ linkReference: pu,
5470
+ link: du,
5469
5471
  listItem: mu,
5470
5472
  list: yu,
5471
5473
  paragraph: gu,
@@ -5594,10 +5596,10 @@ const Br = -1, Mn = 0, nn = 1, gn = 2, it = 3, lt = 4, at = 5, ot = 6, Ur = 7, F
5594
5596
  let f = a;
5595
5597
  return u === "DataView" ? f = new Uint8Array(a.buffer) : u === "ArrayBuffer" && (f = new Uint8Array(a)), i([u, [...f]], a);
5596
5598
  }
5597
- const s = [], d = i([o, s], a);
5599
+ const s = [], p = i([o, s], a);
5598
5600
  for (const f of a)
5599
5601
  s.push(l(f));
5600
- return d;
5602
+ return p;
5601
5603
  }
5602
5604
  case gn: {
5603
5605
  if (u)
@@ -5611,28 +5613,28 @@ const Br = -1, Mn = 0, nn = 1, gn = 2, it = 3, lt = 4, at = 5, ot = 6, Ur = 7, F
5611
5613
  }
5612
5614
  if (n && "toJSON" in a)
5613
5615
  return l(a.toJSON());
5614
- const s = [], d = i([o, s], a);
5616
+ const s = [], p = i([o, s], a);
5615
5617
  for (const f of Tu(a))
5616
5618
  (e || !hn(Xe(a[f]))) && s.push([l(f), l(a[f])]);
5617
- return d;
5619
+ return p;
5618
5620
  }
5619
5621
  case it:
5620
5622
  return i([o, a.toISOString()], a);
5621
5623
  case lt: {
5622
- const { source: s, flags: d } = a;
5623
- return i([o, { source: s, flags: d }], a);
5624
+ const { source: s, flags: p } = a;
5625
+ return i([o, { source: s, flags: p }], a);
5624
5626
  }
5625
5627
  case at: {
5626
- const s = [], d = i([o, s], a);
5628
+ const s = [], p = i([o, s], a);
5627
5629
  for (const [f, h] of a)
5628
5630
  (e || !(hn(Xe(f)) || hn(Xe(h)))) && s.push([l(f), l(h)]);
5629
- return d;
5631
+ return p;
5630
5632
  }
5631
5633
  case ot: {
5632
- const s = [], d = i([o, s], a);
5634
+ const s = [], p = i([o, s], a);
5633
5635
  for (const f of a)
5634
5636
  (e || !hn(Xe(f))) && s.push(l(f));
5635
- return d;
5637
+ return p;
5636
5638
  }
5637
5639
  }
5638
5640
  const { message: c } = a;
@@ -5669,9 +5671,9 @@ function Ru(e) {
5669
5671
  );
5670
5672
  if (!c)
5671
5673
  continue;
5672
- const s = e.all(c), d = String(c.identifier).toUpperCase(), f = Qe(d.toLowerCase());
5674
+ const s = e.all(c), p = String(c.identifier).toUpperCase(), f = Qe(p.toLowerCase());
5673
5675
  let h = 0;
5674
- const x = [], z = e.footnoteCounts.get(d);
5676
+ const x = [], z = e.footnoteCounts.get(p);
5675
5677
  for (; z !== void 0 && ++h <= z; ) {
5676
5678
  x.length > 0 && x.push({ type: "text", value: " " });
5677
5679
  let Y = typeof t == "string" ? t : t(u, h);
@@ -5753,13 +5755,13 @@ const Or = (
5753
5755
  return Array.isArray(e) ? Yu(e) : (
5754
5756
  // Cast because `ReadonlyArray` goes into the above but `isArray`
5755
5757
  // narrows to `Array`.
5756
- ju(
5758
+ Iu(
5757
5759
  /** @type {Props} */
5758
5760
  e
5759
5761
  )
5760
5762
  );
5761
5763
  if (typeof e == "string")
5762
- return Iu(e);
5764
+ return ju(e);
5763
5765
  throw new Error("Expected function, string, or object as test");
5764
5766
  }
5765
5767
  );
@@ -5776,7 +5778,7 @@ function Yu(e) {
5776
5778
  return !1;
5777
5779
  }
5778
5780
  }
5779
- function ju(e) {
5781
+ function Iu(e) {
5780
5782
  const n = (
5781
5783
  /** @type {Record<string, unknown>} */
5782
5784
  e
@@ -5794,7 +5796,7 @@ function ju(e) {
5794
5796
  return !0;
5795
5797
  }
5796
5798
  }
5797
- function Iu(e) {
5799
+ function ju(e) {
5798
5800
  return wn(n);
5799
5801
  function n(t) {
5800
5802
  return t && t.type === e;
@@ -5824,16 +5826,16 @@ function Fu(e, n, t, r) {
5824
5826
  const l = Or(i), a = r ? -1 : 1;
5825
5827
  o(e, void 0, [])();
5826
5828
  function o(u, c, s) {
5827
- const d = (
5829
+ const p = (
5828
5830
  /** @type {Record<string, unknown>} */
5829
5831
  u && typeof u == "object" ? u : {}
5830
5832
  );
5831
- if (typeof d.type == "string") {
5833
+ if (typeof p.type == "string") {
5832
5834
  const h = (
5833
5835
  // `hast`
5834
- typeof d.tagName == "string" ? d.tagName : (
5836
+ typeof p.tagName == "string" ? p.tagName : (
5835
5837
  // `xast`
5836
- typeof d.name == "string" ? d.name : void 0
5838
+ typeof p.name == "string" ? p.name : void 0
5837
5839
  )
5838
5840
  );
5839
5841
  Object.defineProperty(f, "name", {
@@ -5869,8 +5871,8 @@ function Qr(e, n, t, r) {
5869
5871
  let i, l, a;
5870
5872
  typeof n == "function" && typeof t != "function" ? (l = void 0, a = n, i = t) : (l = n, a = t, i = r), Fu(e, l, o, i);
5871
5873
  function o(u, c) {
5872
- const s = c[c.length - 1], d = s ? s.children.indexOf(u) : void 0;
5873
- return a(u, d, s);
5874
+ const s = c[c.length - 1], p = s ? s.children.indexOf(u) : void 0;
5875
+ return a(u, p, s);
5874
5876
  }
5875
5877
  }
5876
5878
  const qn = {}.hasOwnProperty, Lu = {};
@@ -5890,14 +5892,14 @@ function Qu(e, n) {
5890
5892
  };
5891
5893
  return Qr(e, function(s) {
5892
5894
  if (s.type === "definition" || s.type === "footnoteDefinition") {
5893
- const d = s.type === "definition" ? r : i, f = String(s.identifier).toUpperCase();
5894
- d.has(f) || d.set(f, s);
5895
+ const p = s.type === "definition" ? r : i, f = String(s.identifier).toUpperCase();
5896
+ p.has(f) || p.set(f, s);
5895
5897
  }
5896
5898
  }), o;
5897
- function u(s, d) {
5899
+ function u(s, p) {
5898
5900
  const f = s.type, h = o.handlers[f];
5899
5901
  if (qn.call(o.handlers, f) && h)
5900
- return h(o, s, d);
5902
+ return h(o, s, p);
5901
5903
  if (o.options.passThrough && o.options.passThrough.includes(f)) {
5902
5904
  if ("children" in s) {
5903
5905
  const { children: z, ...G } = s, M = kn(G);
@@ -5905,10 +5907,10 @@ function Qu(e, n) {
5905
5907
  }
5906
5908
  return kn(s);
5907
5909
  }
5908
- return (o.options.unknownHandler || Ju)(o, s, d);
5910
+ return (o.options.unknownHandler || Ju)(o, s, p);
5909
5911
  }
5910
5912
  function c(s) {
5911
- const d = [];
5913
+ const p = [];
5912
5914
  if ("children" in s) {
5913
5915
  const f = s.children;
5914
5916
  let h = -1;
@@ -5919,11 +5921,11 @@ function Qu(e, n) {
5919
5921
  const z = x.children[0];
5920
5922
  z && z.type === "text" && (z.value = Qt(z.value));
5921
5923
  }
5922
- Array.isArray(x) ? d.push(...x) : d.push(x);
5924
+ Array.isArray(x) ? p.push(...x) : p.push(x);
5923
5925
  }
5924
5926
  }
5925
5927
  }
5926
- return d;
5928
+ return p;
5927
5929
  }
5928
5930
  }
5929
5931
  function qu(e, n) {
@@ -6044,13 +6046,13 @@ function Ku() {
6044
6046
  o(null, ...i);
6045
6047
  function o(u, ...c) {
6046
6048
  const s = e[++l];
6047
- let d = -1;
6049
+ let p = -1;
6048
6050
  if (u) {
6049
6051
  a(u);
6050
6052
  return;
6051
6053
  }
6052
- for (; ++d < i.length; )
6053
- (c[d] === null || c[d] === void 0) && (c[d] = i[d]);
6054
+ for (; ++p < i.length; )
6055
+ (c[p] === null || c[p] === void 0) && (c[p] = i[p]);
6054
6056
  i = c, s ? _u(s, o)(...c) : a(null, ...c);
6055
6057
  }
6056
6058
  }
@@ -6805,7 +6807,7 @@ class st extends cc {
6805
6807
  */
6806
6808
  parse(n) {
6807
6809
  this.freeze();
6808
- const t = dn(n), r = this.parser || this.Parser;
6810
+ const t = pn(n), r = this.parser || this.Parser;
6809
6811
  return Wn("parse", r), r(String(t), t);
6810
6812
  }
6811
6813
  /**
@@ -6854,18 +6856,18 @@ class st extends cc {
6854
6856
  const r = this;
6855
6857
  return this.freeze(), Wn("process", this.parser || this.Parser), En("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
6856
6858
  function i(l, a) {
6857
- const o = dn(n), u = (
6859
+ const o = pn(n), u = (
6858
6860
  /** @type {HeadTree extends undefined ? Node : HeadTree} */
6859
6861
  /** @type {unknown} */
6860
6862
  r.parse(o)
6861
6863
  );
6862
- r.run(u, o, function(s, d, f) {
6863
- if (s || !d || !f)
6864
+ r.run(u, o, function(s, p, f) {
6865
+ if (s || !p || !f)
6864
6866
  return c(s);
6865
6867
  const h = (
6866
6868
  /** @type {CompileTree extends undefined ? Node : CompileTree} */
6867
6869
  /** @type {unknown} */
6868
- d
6870
+ p
6869
6871
  ), x = r.stringify(h, f);
6870
6872
  mc(x) ? f.value = x : f.result = x, c(
6871
6873
  s,
@@ -6873,8 +6875,8 @@ class st extends cc {
6873
6875
  f
6874
6876
  );
6875
6877
  });
6876
- function c(s, d) {
6877
- s || !d ? a(s) : l ? l(d) : t(void 0, d);
6878
+ function c(s, p) {
6879
+ s || !p ? a(s) : l ? l(p) : t(void 0, p);
6878
6880
  }
6879
6881
  }
6880
6882
  }
@@ -6959,12 +6961,12 @@ class st extends cc {
6959
6961
  const i = this.transformers;
6960
6962
  return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
6961
6963
  function l(a, o) {
6962
- const u = dn(t);
6964
+ const u = pn(t);
6963
6965
  i.run(n, u, c);
6964
- function c(s, d, f) {
6966
+ function c(s, p, f) {
6965
6967
  const h = (
6966
6968
  /** @type {TailTree extends undefined ? Node : TailTree} */
6967
- d || n
6969
+ p || n
6968
6970
  );
6969
6971
  s ? o(s) : a ? a(h) : r(void 0, h, f);
6970
6972
  }
@@ -7025,7 +7027,7 @@ class st extends cc {
7025
7027
  */
7026
7028
  stringify(n, t) {
7027
7029
  this.freeze();
7028
- const r = dn(t), i = this.compiler || this.Compiler;
7030
+ const r = pn(t), i = this.compiler || this.Compiler;
7029
7031
  return En("stringify", i), er(n), i(n, r);
7030
7032
  }
7031
7033
  /**
@@ -7099,11 +7101,11 @@ class st extends cc {
7099
7101
  u(c, []);
7100
7102
  else if (typeof c == "object")
7101
7103
  if (Array.isArray(c)) {
7102
- const [s, ...d] = (
7104
+ const [s, ...p] = (
7103
7105
  /** @type {PluginTuple<Array<unknown>>} */
7104
7106
  c
7105
7107
  );
7106
- u(s, d);
7108
+ u(s, p);
7107
7109
  } else
7108
7110
  a(c);
7109
7111
  else
@@ -7120,17 +7122,17 @@ class st extends cc {
7120
7122
  let s = -1;
7121
7123
  if (c != null) if (Array.isArray(c))
7122
7124
  for (; ++s < c.length; ) {
7123
- const d = c[s];
7124
- l(d);
7125
+ const p = c[s];
7126
+ l(p);
7125
7127
  }
7126
7128
  else
7127
7129
  throw new TypeError("Expected a list of plugins, not `" + c + "`");
7128
7130
  }
7129
7131
  function u(c, s) {
7130
- let d = -1, f = -1;
7131
- for (; ++d < r.length; )
7132
- if (r[d][0] === c) {
7133
- f = d;
7132
+ let p = -1, f = -1;
7133
+ for (; ++p < r.length; )
7134
+ if (r[p][0] === c) {
7135
+ f = p;
7134
7136
  break;
7135
7137
  }
7136
7138
  if (f === -1)
@@ -7143,7 +7145,7 @@ class st extends cc {
7143
7145
  }
7144
7146
  }
7145
7147
  }
7146
- const dc = new st().freeze();
7148
+ const pc = new st().freeze();
7147
7149
  function Wn(e, n) {
7148
7150
  if (typeof n != "function")
7149
7151
  throw new TypeError("Cannot `" + e + "` without `parser`");
@@ -7168,10 +7170,10 @@ function nr(e, n, t) {
7168
7170
  "`" + e + "` finished async. Use `" + n + "` instead"
7169
7171
  );
7170
7172
  }
7171
- function dn(e) {
7172
- return pc(e) ? e : new Hr(e);
7173
+ function pn(e) {
7174
+ return dc(e) ? e : new Hr(e);
7173
7175
  }
7174
- function pc(e) {
7176
+ function dc(e) {
7175
7177
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
7176
7178
  }
7177
7179
  function mc(e) {
@@ -7220,7 +7222,7 @@ function ir(e) {
7220
7222
  }
7221
7223
  function xc(e) {
7222
7224
  const n = e.rehypePlugins || tr, t = e.remarkPlugins || tr, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...rr } : rr;
7223
- return dc().use(eu).use(t).use(Xu, r).use(n);
7225
+ return pc().use(eu).use(t).use(Xu, r).use(n);
7224
7226
  }
7225
7227
  function zc(e) {
7226
7228
  const n = e.children || "", t = new Hr();
@@ -7239,9 +7241,9 @@ function Mc(e, n) {
7239
7241
  passKeys: !0,
7240
7242
  passNode: !0
7241
7243
  });
7242
- function c(s, d, f) {
7243
- if (s.type === "raw" && f && typeof d == "number")
7244
- return a ? f.children.splice(d, 1) : f.children[d] = { type: "text", value: s.value }, d;
7244
+ function c(s, p, f) {
7245
+ if (s.type === "raw" && f && typeof p == "number")
7246
+ return a ? f.children.splice(p, 1) : f.children[p] = { type: "text", value: s.value }, p;
7245
7247
  if (s.type === "element") {
7246
7248
  let h;
7247
7249
  for (h in Nn)
@@ -7252,8 +7254,8 @@ function Mc(e, n) {
7252
7254
  }
7253
7255
  if (s.type === "element") {
7254
7256
  let h = t ? !t.includes(s.tagName) : l ? l.includes(s.tagName) : !1;
7255
- if (!h && r && typeof d == "number" && (h = !r(s, d, f)), h && f && typeof d == "number")
7256
- return o && s.children ? f.children.splice(d, 1, ...s.children) : f.children.splice(d, 1), d;
7257
+ if (!h && r && typeof p == "number" && (h = !r(s, p, f)), h && f && typeof p == "number")
7258
+ return o && s.children ? f.children.splice(p, 1, ...s.children) : f.children.splice(p, 1), p;
7257
7259
  }
7258
7260
  }
7259
7261
  }
@@ -7278,7 +7280,7 @@ const lr = ({
7278
7280
  isActiveSearchResult: u = !1,
7279
7281
  messageId: c,
7280
7282
  contexts: s,
7281
- onAddContext: d
7283
+ onAddContext: p
7282
7284
  }) => {
7283
7285
  const f = n === "user", [h, x] = xe(!1), z = we(null), G = we(null), M = we(""), Y = async () => {
7284
7286
  if (!e) return;
@@ -7298,7 +7300,7 @@ const lr = ({
7298
7300
  } else
7299
7301
  M.current = "";
7300
7302
  }, E = () => {
7301
- if (!e || !c || !d) return;
7303
+ if (!e || !c || !p) return;
7302
7304
  let g = e, W = !1;
7303
7305
  M.current && M.current.length > 0 && M.current.length < e.length && (g = M.current, W = !0);
7304
7306
  const O = {
@@ -7308,7 +7310,7 @@ const lr = ({
7308
7310
  sender: n,
7309
7311
  isPartial: W
7310
7312
  };
7311
- d(O), M.current = "";
7313
+ p(O), M.current = "";
7312
7314
  const F = window.getSelection();
7313
7315
  F && F.removeAllRanges();
7314
7316
  }, R = () => e ? f ? o && o.trim() ? sr(e, o, u) : e : o && o.trim() ? /* @__PURE__ */ y(
@@ -7386,7 +7388,7 @@ const lr = ({
7386
7388
  }
7387
7389
  ),
7388
7390
  /* @__PURE__ */ Z("ul", { className: ee.actionsList, children: [
7389
- d && /* @__PURE__ */ y("li", { children: /* @__PURE__ */ y(
7391
+ p && /* @__PURE__ */ y("li", { children: /* @__PURE__ */ y(
7390
7392
  "button",
7391
7393
  {
7392
7394
  type: "button",
@@ -7564,24 +7566,24 @@ const lr = ({
7564
7566
  !a && s.current && (s.current.scrollTop = s.current.scrollHeight);
7565
7567
  }, [e, t, a]), me(() => {
7566
7568
  if (o && s.current) {
7567
- const d = document.getElementById(o);
7568
- d && d.scrollIntoView({ behavior: "smooth", block: "center" });
7569
+ const p = document.getElementById(o);
7570
+ p && p.scrollIntoView({ behavior: "smooth", block: "center" });
7569
7571
  }
7570
7572
  }, [o]), /* @__PURE__ */ Z("div", { ref: s, className: `${Nc.container} ${l}`, children: [
7571
- e.map((d) => /* @__PURE__ */ y(
7573
+ e.map((p) => /* @__PURE__ */ y(
7572
7574
  lr,
7573
7575
  {
7574
- messageId: d.id,
7575
- text: d.text,
7576
- sender: d.sender,
7577
- avatar: d.avatar,
7578
- assistantName: d.sender === "assistant" ? n : void 0,
7576
+ messageId: p.id,
7577
+ text: p.text,
7578
+ sender: p.sender,
7579
+ avatar: p.avatar,
7580
+ assistantName: p.sender === "assistant" ? n : void 0,
7579
7581
  searchQuery: a,
7580
- isActiveSearchResult: o === d.id,
7581
- contexts: d.contexts,
7582
+ isActiveSearchResult: o === p.id,
7583
+ contexts: p.contexts,
7582
7584
  onAddContext: u
7583
7585
  },
7584
- d.id
7586
+ p.id
7585
7587
  )),
7586
7588
  t && /* @__PURE__ */ y(
7587
7589
  lr,
@@ -7594,7 +7596,7 @@ const lr = ({
7594
7596
  }
7595
7597
  )
7596
7598
  ] });
7597
- }, Zc = "_wrapper_tre3j_1", Gc = "_inputContainer_tre3j_8", Sc = "_textarea_tre3j_15", Tc = "_sendButton_tre3j_46", pn = {
7599
+ }, Zc = "_wrapper_wpy1a_1", Gc = "_inputContainer_wpy1a_8", Sc = "_textarea_wpy1a_15", Tc = "_sendButton_wpy1a_47", dn = {
7598
7600
  wrapper: Zc,
7599
7601
  inputContainer: Gc,
7600
7602
  textarea: Sc,
@@ -7608,20 +7610,20 @@ const lr = ({
7608
7610
  const [i, l] = xe(""), a = P.useRef(null), o = (s) => {
7609
7611
  if (l(s.target.value), a.current) {
7610
7612
  a.current.style.height = "auto";
7611
- const d = a.current.scrollHeight;
7612
- d <= 44 ? (a.current.style.height = "44px", a.current.style.overflowY = "hidden") : d > 150 ? (a.current.style.height = "150px", a.current.style.overflowY = "auto") : (a.current.style.height = `${d}px`, a.current.style.overflowY = "hidden");
7613
+ const p = a.current.scrollHeight;
7614
+ p <= 44 ? (a.current.style.height = "44px", a.current.style.overflowY = "hidden") : p > 150 ? (a.current.style.height = "150px", a.current.style.overflowY = "auto") : (a.current.style.height = `${p}px`, a.current.style.overflowY = "hidden");
7613
7615
  }
7614
7616
  }, u = () => {
7615
7617
  i.trim() && !t && (e(i.trim()), l(""), a.current && (a.current.style.height = "44px", a.current.style.overflowY = "hidden"));
7616
7618
  }, c = (s) => {
7617
7619
  s.key === "Enter" && !s.shiftKey && window.innerWidth > 768 && (s.preventDefault(), u());
7618
7620
  };
7619
- return /* @__PURE__ */ y("div", { className: pn.wrapper, children: /* @__PURE__ */ Z("div", { className: `${pn.inputContainer} ${r}`, children: [
7621
+ return /* @__PURE__ */ y("div", { className: dn.wrapper, children: /* @__PURE__ */ Z("div", { className: `${dn.inputContainer} ${r}`, children: [
7620
7622
  /* @__PURE__ */ y(
7621
7623
  "textarea",
7622
7624
  {
7623
7625
  ref: a,
7624
- className: pn.textarea,
7626
+ className: dn.textarea,
7625
7627
  value: i,
7626
7628
  onChange: o,
7627
7629
  onKeyDown: c,
@@ -7633,7 +7635,7 @@ const lr = ({
7633
7635
  /* @__PURE__ */ y(
7634
7636
  "button",
7635
7637
  {
7636
- className: pn.sendButton,
7638
+ className: dn.sendButton,
7637
7639
  onClick: u,
7638
7640
  disabled: t || !i.trim(),
7639
7641
  "aria-label": "Send message",
@@ -7657,13 +7659,13 @@ const lr = ({
7657
7659
  }
7658
7660
  )
7659
7661
  ] }) });
7660
- }, Wc = "_container_der4n_1", Ec = "_header_der4n_7", Rc = "_title_der4n_14", Yc = "_icon_der4n_23", jc = "_viewAllButton_der4n_27", Ic = "_previewList_der4n_44", Vc = "_previewCard_der4n_50", Cc = "_previewHeader_der4n_63", Bc = "_contextSource_der4n_70", Uc = "_removeButton_der4n_77", Fc = "_previewText_der4n_97", Oc = "_moreIndicator_der4n_110", ye = {
7662
+ }, Wc = "_container_der4n_1", Ec = "_header_der4n_7", Rc = "_title_der4n_14", Yc = "_icon_der4n_23", Ic = "_viewAllButton_der4n_27", jc = "_previewList_der4n_44", Vc = "_previewCard_der4n_50", Cc = "_previewHeader_der4n_63", Bc = "_contextSource_der4n_70", Uc = "_removeButton_der4n_77", Fc = "_previewText_der4n_97", Oc = "_moreIndicator_der4n_110", ye = {
7661
7663
  container: Wc,
7662
7664
  header: Ec,
7663
7665
  title: Rc,
7664
7666
  icon: Yc,
7665
- viewAllButton: jc,
7666
- previewList: Ic,
7667
+ viewAllButton: Ic,
7668
+ previewList: jc,
7667
7669
  previewCard: Vc,
7668
7670
  previewHeader: Cc,
7669
7671
  contextSource: Bc,
@@ -7765,7 +7767,7 @@ const lr = ({
7765
7767
  compact: u = !1,
7766
7768
  className: c = "",
7767
7769
  searchQuery: s,
7768
- activeSearchMessageId: d,
7770
+ activeSearchMessageId: p,
7769
7771
  selectedContexts: f = [],
7770
7772
  onAddContext: h,
7771
7773
  onRemoveContext: x
@@ -7782,18 +7784,18 @@ const lr = ({
7782
7784
  if (!v) return;
7783
7785
  const q = v.getBoundingClientRect(), _ = q.top + q.height / 2;
7784
7786
  let X = null;
7785
- for (const p of V.current) {
7786
- const ne = document.getElementById(p.id);
7787
+ for (const d of V.current) {
7788
+ const ne = document.getElementById(d.id);
7787
7789
  if (!ne) continue;
7788
7790
  const fe = ne.getBoundingClientRect(), m = fe.top + fe.height / 2, ie = Math.abs(m - _);
7789
- (!X || ie < X.distance) && (X = { id: p.id, distance: ie });
7791
+ (!X || ie < X.distance) && (X = { id: d.id, distance: ie });
7790
7792
  }
7791
7793
  X && N(X.id);
7792
7794
  }, []), w = Ee(() => {
7793
7795
  M.current !== null && cancelAnimationFrame(M.current), M.current = requestAnimationFrame(() => {
7794
7796
  S(), M.current = null;
7795
7797
  });
7796
- }, [S]), I = Ee((v) => {
7798
+ }, [S]), j = Ee((v) => {
7797
7799
  if (v)
7798
7800
  return G.current = v, v.addEventListener("scroll", w, { passive: !0 }), () => {
7799
7801
  v.removeEventListener("scroll", w), M.current !== null && cancelAnimationFrame(M.current);
@@ -7804,7 +7806,7 @@ const lr = ({
7804
7806
  const _ = document.getElementById(v);
7805
7807
  if (!_) return;
7806
7808
  N(v);
7807
- const X = q.getBoundingClientRect(), p = _.getBoundingClientRect(), ne = p.top - X.top - X.height / 2 + p.height / 2;
7809
+ const X = q.getBoundingClientRect(), d = _.getBoundingClientRect(), ne = d.top - X.top - X.height / 2 + d.height / 2;
7808
7810
  q.scrollBy({ top: ne, behavior: "smooth" });
7809
7811
  }, []), T = Ee(
7810
7812
  (v, q, _) => {
@@ -7833,9 +7835,9 @@ const lr = ({
7833
7835
  loadingText: r,
7834
7836
  loadingVariant: i,
7835
7837
  searchQuery: s,
7836
- activeSearchMessageId: d,
7838
+ activeSearchMessageId: p,
7837
7839
  onAddContext: h,
7838
- scrollRef: I
7840
+ scrollRef: j
7839
7841
  }
7840
7842
  ) }) }),
7841
7843
  /* @__PURE__ */ Z("div", { className: `${le.inputWrapper} ${u ? le.compact : ""}`, children: [
@@ -7863,7 +7865,7 @@ const lr = ({
7863
7865
  onMouseLeave: () => R(!1),
7864
7866
  "data-expanded": E || void 0,
7865
7867
  children: g.map((v, q) => {
7866
- const _ = Y === v.id, X = F(q), p = v.text.slice(0, 55) + (v.text.length > 55 ? "…" : "");
7868
+ const _ = Y === v.id, X = F(q), d = v.text.slice(0, 55) + (v.text.length > 55 ? "…" : "");
7867
7869
  return /* @__PURE__ */ Z(
7868
7870
  "button",
7869
7871
  {
@@ -7871,10 +7873,10 @@ const lr = ({
7871
7873
  style: { top: X, transform: "translateY(-50%)" },
7872
7874
  onClick: () => Q(v.id),
7873
7875
  onKeyDown: (ne) => T(ne, v.id, q),
7874
- "aria-label": `Navigate to message: ${p}`,
7876
+ "aria-label": `Navigate to message: ${d}`,
7875
7877
  "aria-current": _ ? "location" : void 0,
7876
7878
  children: [
7877
- /* @__PURE__ */ y("span", { className: le.trackLabel, children: p }),
7879
+ /* @__PURE__ */ y("span", { className: le.trackLabel, children: d }),
7878
7880
  /* @__PURE__ */ y("span", { className: le.trackDash, "aria-hidden": "true" })
7879
7881
  ]
7880
7882
  },
@@ -7886,7 +7888,7 @@ const lr = ({
7886
7888
  }
7887
7889
  ) })
7888
7890
  ] });
7889
- }, rh = "_navbar_uj3wj_1", ih = "_navbarContent_uj3wj_10", lh = "_sidebarToggle_uj3wj_20", ah = "_assistantName_uj3wj_39", oh = "_searchContainer_uj3wj_47", sh = "_searchToggle_uj3wj_53", uh = "_searchBar_uj3wj_70", ch = "_searchInput_uj3wj_80", hh = "_searchCount_uj3wj_94", dh = "_searchNavigation_uj3wj_100", ph = "_searchNavBtn_uj3wj_105", mh = "_searchCloseBtn_uj3wj_128", he = {
7891
+ }, rh = "_navbar_uj3wj_1", ih = "_navbarContent_uj3wj_10", lh = "_sidebarToggle_uj3wj_20", ah = "_assistantName_uj3wj_39", oh = "_searchContainer_uj3wj_47", sh = "_searchToggle_uj3wj_53", uh = "_searchBar_uj3wj_70", ch = "_searchInput_uj3wj_80", hh = "_searchCount_uj3wj_94", ph = "_searchNavigation_uj3wj_100", dh = "_searchNavBtn_uj3wj_105", mh = "_searchCloseBtn_uj3wj_128", he = {
7890
7892
  navbar: rh,
7891
7893
  navbarContent: ih,
7892
7894
  sidebarToggle: lh,
@@ -7896,8 +7898,8 @@ const lr = ({
7896
7898
  searchBar: uh,
7897
7899
  searchInput: ch,
7898
7900
  searchCount: hh,
7899
- searchNavigation: dh,
7900
- searchNavBtn: ph,
7901
+ searchNavigation: ph,
7902
+ searchNavBtn: dh,
7901
7903
  searchCloseBtn: mh
7902
7904
  }, fh = ({
7903
7905
  assistantName: e,
@@ -7911,7 +7913,7 @@ const lr = ({
7911
7913
  }) => {
7912
7914
  const [u, c] = xe(!1), s = () => {
7913
7915
  c(!u), u && r && r("");
7914
- }, d = (h) => {
7916
+ }, p = (h) => {
7915
7917
  r == null || r(h.target.value);
7916
7918
  }, f = (h) => {
7917
7919
  h.key === "Enter" ? (h.preventDefault(), h.shiftKey ? o == null || o() : a == null || a()) : h.key === "Escape" && (c(!1), r == null || r(""));
@@ -7950,7 +7952,7 @@ const lr = ({
7950
7952
  {
7951
7953
  type: "text",
7952
7954
  value: t,
7953
- onChange: d,
7955
+ onChange: p,
7954
7956
  onKeyDown: f,
7955
7957
  placeholder: "Search messages...",
7956
7958
  className: he.searchInput,
@@ -8064,7 +8066,7 @@ const lr = ({
8064
8066
  isLoading: u = !1,
8065
8067
  loadingText: c = "",
8066
8068
  loadingVariant: s = "text-and-dots",
8067
- placeholder: d = "Type your message...",
8069
+ placeholder: p = "Type your message...",
8068
8070
  className: f = ""
8069
8071
  }) => {
8070
8072
  var Q;
@@ -8095,7 +8097,7 @@ const lr = ({
8095
8097
  i(T, N.length > 0 ? N : void 0), E([]);
8096
8098
  },
8097
8099
  [i, N]
8098
- ), I = (Q = g[M]) == null ? void 0 : Q.id;
8100
+ ), j = (Q = g[M]) == null ? void 0 : Q.id;
8099
8101
  return /* @__PURE__ */ y("div", { className: `${on.container} ${f}`, children: /* @__PURE__ */ Z("div", { className: on.body, children: [
8100
8102
  /* @__PURE__ */ y(
8101
8103
  Oi,
@@ -8138,10 +8140,10 @@ const lr = ({
8138
8140
  loadingText: c,
8139
8141
  loadingVariant: s,
8140
8142
  onSend: w,
8141
- inputPlaceholder: d,
8143
+ inputPlaceholder: p,
8142
8144
  inputDisabled: u,
8143
8145
  searchQuery: z,
8144
- activeSearchMessageId: I,
8146
+ activeSearchMessageId: j,
8145
8147
  selectedContexts: N,
8146
8148
  onAddContext: V,
8147
8149
  onRemoveContext: S
@@ -8169,7 +8171,7 @@ const lr = ({
8169
8171
  logo: u,
8170
8172
  className: c = ""
8171
8173
  }) => {
8172
- const [s, d] = xe(l), f = we(null);
8174
+ const [s, p] = xe(l), f = we(null);
8173
8175
  me(() => {
8174
8176
  typeof a == "function" && a(s);
8175
8177
  }, [s, a]);
@@ -8178,12 +8180,12 @@ const lr = ({
8178
8180
  };
8179
8181
  me(() => {
8180
8182
  const z = (G) => {
8181
- G.key === "Escape" && s && d(!1);
8183
+ G.key === "Escape" && s && p(!1);
8182
8184
  };
8183
8185
  return document.addEventListener("keydown", z), () => document.removeEventListener("keydown", z);
8184
8186
  }, [s]);
8185
8187
  const x = Ee((z) => {
8186
- f.current && (f.current.contains(z.target) || d(!1));
8188
+ f.current && (f.current.contains(z.target) || p(!1));
8187
8189
  }, []);
8188
8190
  return me(() => (s && document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x)), [s, x]), /* @__PURE__ */ Z("div", { className: `${De.root} ${c}`, ref: f, children: [
8189
8191
  s && /* @__PURE__ */ y("div", { className: De.popover, role: "dialog", "aria-label": "Chat messages", children: /* @__PURE__ */ Z("div", { className: De.popoverInner, children: [
@@ -8208,7 +8210,7 @@ const lr = ({
8208
8210
  "aria-haspopup": "dialog",
8209
8211
  "aria-label": s ? "Close chat" : "Open chat",
8210
8212
  className: De.button,
8211
- onClick: () => d((z) => !z),
8213
+ onClick: () => p((z) => !z),
8212
8214
  children: /* @__PURE__ */ y(
8213
8215
  "img",
8214
8216
  {
@@ -8219,7 +8221,7 @@ const lr = ({
8219
8221
  }
8220
8222
  )
8221
8223
  ] });
8222
- }, wh = "AI Assistant", Ke = "New Chat", Yn = (e) => e instanceof Error ? e : typeof e == "string" ? new Error(e) : new Error("Unknown error"), jn = () => (/* @__PURE__ */ new Date()).toISOString(), In = () => (/* @__PURE__ */ new Date()).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }), ar = (e, n) => {
8224
+ }, wh = "AI Assistant", Ke = "New Chat", Yn = (e) => e instanceof Error ? e : typeof e == "string" ? new Error(e) : new Error("Unknown error"), In = () => (/* @__PURE__ */ new Date()).toISOString(), jn = () => (/* @__PURE__ */ new Date()).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }), ar = (e, n) => {
8223
8225
  const t = e.findIndex((i) => i.id === n.id);
8224
8226
  if (t === -1)
8225
8227
  return [n, ...e];
@@ -8232,7 +8234,7 @@ const lr = ({
8232
8234
  className: r = "",
8233
8235
  onError: i
8234
8236
  }) => {
8235
- const [l, a] = P.useState([]), [o, u] = P.useState([]), [c, s] = P.useState(), [d, f] = P.useState(!1), [h, x] = P.useState(
8237
+ const [l, a] = P.useState([]), [o, u] = P.useState([]), [c, s] = P.useState(), [p, f] = P.useState(!1), [h, x] = P.useState(
8236
8238
  n ?? wh
8237
8239
  );
8238
8240
  P.useEffect(() => {
@@ -8253,7 +8255,7 @@ const lr = ({
8253
8255
  const N = await e.createConversation({ title: Ke }), E = {
8254
8256
  id: N.conversation_id,
8255
8257
  title: N.title || Ke,
8256
- timestamp: In()
8258
+ timestamp: jn()
8257
8259
  };
8258
8260
  u((R) => ar(R, E)), s(N.conversation_id), a([]);
8259
8261
  } catch (N) {
@@ -8278,7 +8280,7 @@ const lr = ({
8278
8280
  id: crypto.randomUUID(),
8279
8281
  text: N,
8280
8282
  sender: "user",
8281
- timestamp: jn(),
8283
+ timestamp: In(),
8282
8284
  contexts: E
8283
8285
  };
8284
8286
  a((g) => [...g, R]), f(!0);
@@ -8292,7 +8294,7 @@ const lr = ({
8292
8294
  const S = {
8293
8295
  id: V.conversation_id,
8294
8296
  title: V.title || N.slice(0, 40) || Ke,
8295
- timestamp: In()
8297
+ timestamp: jn()
8296
8298
  };
8297
8299
  u((w) => ar(w, S));
8298
8300
  }
@@ -8304,13 +8306,13 @@ const lr = ({
8304
8306
  id: crypto.randomUUID(),
8305
8307
  text: W.response.response_markdown || W.response.response,
8306
8308
  sender: "assistant",
8307
- timestamp: jn()
8309
+ timestamp: In()
8308
8310
  };
8309
8311
  a((V) => [...V, F]), O && u((V) => V.find((w) => w.id === O) ? V : [
8310
8312
  {
8311
8313
  id: O,
8312
8314
  title: N.slice(0, 40) || Ke,
8313
- timestamp: In()
8315
+ timestamp: jn()
8314
8316
  },
8315
8317
  ...V
8316
8318
  ]);
@@ -8322,7 +8324,7 @@ const lr = ({
8322
8324
  id: crypto.randomUUID(),
8323
8325
  text: "Sorry, something went wrong while sending your message.",
8324
8326
  sender: "assistant",
8325
- timestamp: jn()
8327
+ timestamp: In()
8326
8328
  }
8327
8329
  ]), i == null || i(W);
8328
8330
  } finally {
@@ -8342,7 +8344,7 @@ const lr = ({
8342
8344
  onNewChat: z,
8343
8345
  onSelectChat: G,
8344
8346
  onDeleteChat: M,
8345
- isLoading: d,
8347
+ isLoading: p,
8346
8348
  placeholder: t,
8347
8349
  className: r
8348
8350
  }