zudoku 0.55.0 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/app/main.d.ts +1 -1
  2. package/dist/app/main.js +11 -4
  3. package/dist/app/main.js.map +1 -1
  4. package/dist/config/validators/InputNavigationSchema.d.ts +4 -0
  5. package/dist/config/validators/InputNavigationSchema.js +1 -0
  6. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  7. package/dist/config/validators/validate.d.ts +1 -0
  8. package/dist/config/validators/validate.js +1 -0
  9. package/dist/config/validators/validate.js.map +1 -1
  10. package/dist/flat-config.d.ts +2 -0
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +1 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/lib/components/BuildCheck.js +7 -0
  15. package/dist/lib/components/BuildCheck.js.map +1 -1
  16. package/dist/lib/components/Header.js +1 -1
  17. package/dist/lib/components/Header.js.map +1 -1
  18. package/dist/lib/components/Layout.js +4 -7
  19. package/dist/lib/components/Layout.js.map +1 -1
  20. package/dist/lib/components/Meta.d.ts +2 -0
  21. package/dist/lib/components/Meta.js +11 -0
  22. package/dist/lib/components/Meta.js.map +1 -0
  23. package/dist/lib/components/context/ZudokuContext.js +1 -1
  24. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  25. package/dist/lib/components/index.d.ts +1 -0
  26. package/dist/lib/components/index.js +2 -0
  27. package/dist/lib/components/index.js.map +1 -1
  28. package/dist/lib/components/navigation/NavigationCategory.js +1 -1
  29. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
  30. package/dist/lib/components/navigation/NavigationItem.js +3 -2
  31. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  32. package/dist/lib/components/navigation/utils.js +12 -11
  33. package/dist/lib/components/navigation/utils.js.map +1 -1
  34. package/dist/lib/core/ZudokuContext.d.ts +1 -0
  35. package/dist/lib/core/ZudokuContext.js.map +1 -1
  36. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  37. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  38. package/dist/lib/plugins/custom-pages/index.js +3 -0
  39. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  40. package/dist/lib/ui/CodeBlock.js +8 -8
  41. package/dist/lib/ui/CodeBlock.js.map +1 -1
  42. package/dist/lib/ui/Dialog.js +2 -2
  43. package/dist/lib/ui/Dialog.js.map +1 -1
  44. package/dist/vite/plugin-mdx.js +1 -1
  45. package/dist/vite/plugin-mdx.js.map +1 -1
  46. package/dist/vite/sitemap.js +10 -9
  47. package/dist/vite/sitemap.js.map +1 -1
  48. package/lib/{CodeBlock-NFCmSWOK.js → CodeBlock-yJjjRwj-.js} +17 -17
  49. package/lib/CodeBlock-yJjjRwj-.js.map +1 -0
  50. package/lib/{Command-BYukybsa.js → Command-CfgGXMfJ.js} +2 -2
  51. package/lib/{Command-BYukybsa.js.map → Command-CfgGXMfJ.js.map} +1 -1
  52. package/lib/Dialog-B7YnrNnG.js +114 -0
  53. package/lib/Dialog-B7YnrNnG.js.map +1 -0
  54. package/lib/{MdxPage-D1XC3kwu.js → MdxPage-D49lfheg.js} +7 -7
  55. package/lib/{MdxPage-D1XC3kwu.js.map → MdxPage-D49lfheg.js.map} +1 -1
  56. package/lib/{OAuthErrorPage-CSYvzsNJ.js → OAuthErrorPage-COKL9zOi.js} +6 -6
  57. package/lib/{OAuthErrorPage-CSYvzsNJ.js.map → OAuthErrorPage-COKL9zOi.js.map} +1 -1
  58. package/lib/{OasProvider-Ch3fGSNb.js → OasProvider-CCv_-asV.js} +2 -2
  59. package/lib/{OasProvider-Ch3fGSNb.js.map → OasProvider-CCv_-asV.js.map} +1 -1
  60. package/lib/{OperationList-Boc5tg5n.js → OperationList-DkS0B0y1.js} +11 -11
  61. package/lib/{OperationList-Boc5tg5n.js.map → OperationList-DkS0B0y1.js.map} +1 -1
  62. package/lib/{Pagination-DdqTabDR.js → Pagination-VfR2DCXf.js} +2 -2
  63. package/lib/{Pagination-DdqTabDR.js.map → Pagination-VfR2DCXf.js.map} +1 -1
  64. package/lib/{RouteGuard-D17dUEM_.js → RouteGuard-CSi9-hSR.js} +4 -4
  65. package/lib/{RouteGuard-D17dUEM_.js.map → RouteGuard-CSi9-hSR.js.map} +1 -1
  66. package/lib/{SchemaList-BbkMdqgT.js → SchemaList-B7ezc5Uy.js} +8 -8
  67. package/lib/{SchemaList-BbkMdqgT.js.map → SchemaList-B7ezc5Uy.js.map} +1 -1
  68. package/lib/{SchemaView-Bo48Qzuu.js → SchemaView-BuL-ycaR.js} +4 -4
  69. package/lib/{SchemaView-Bo48Qzuu.js.map → SchemaView-BuL-ycaR.js.map} +1 -1
  70. package/lib/{Select-BgBGJ5cF.js → Select-B9h5k2Pz.js} +3 -3
  71. package/lib/{Select-BgBGJ5cF.js.map → Select-B9h5k2Pz.js.map} +1 -1
  72. package/lib/{SignUp-ckLqfC6h.js → SignUp-Cn_gZ7UN.js} +3 -3
  73. package/lib/{SignUp-ckLqfC6h.js.map → SignUp-Cn_gZ7UN.js.map} +1 -1
  74. package/lib/{Slot-CkWazhCn.js → Slot-BFCJzl5J.js} +365 -365
  75. package/lib/{Slot-CkWazhCn.js.map → Slot-BFCJzl5J.js.map} +1 -1
  76. package/lib/{SyntaxHighlight-DQ64ObSH.js → SyntaxHighlight-CSW4eaIJ.js} +313 -313
  77. package/lib/SyntaxHighlight-CSW4eaIJ.js.map +1 -0
  78. package/lib/{Toc-cVDQRzE6.js → Toc-B9K7a2FS.js} +2 -2
  79. package/lib/{Toc-cVDQRzE6.js.map → Toc-B9K7a2FS.js.map} +1 -1
  80. package/lib/{ZudokuContext-Coxa0DfE.js → ZudokuContext-mDDq1hft.js} +76 -68
  81. package/lib/{ZudokuContext-Coxa0DfE.js.map → ZudokuContext-mDDq1hft.js.map} +1 -1
  82. package/lib/{circular-CshZkiOV.js → circular-BMUvC5RK.js} +2 -2
  83. package/lib/{circular-CshZkiOV.js.map → circular-BMUvC5RK.js.map} +1 -1
  84. package/lib/{createServer-CHAS8ilN.js → createServer-I8dX2VSu.js} +4 -4
  85. package/lib/{createServer-CHAS8ilN.js.map → createServer-I8dX2VSu.js.map} +1 -1
  86. package/lib/{errors-BQk2rSTP.js → errors-D2Qdkul6.js} +2 -2
  87. package/lib/{errors-BQk2rSTP.js.map → errors-D2Qdkul6.js.map} +1 -1
  88. package/lib/{hook-DEPqwjke.js → hook-CGx8MPrU.js} +2 -2
  89. package/lib/{hook-DEPqwjke.js.map → hook-CGx8MPrU.js.map} +1 -1
  90. package/lib/{index-BruDSPOJ.js → index-Cc70HIQT.js} +106 -101
  91. package/lib/index-Cc70HIQT.js.map +1 -0
  92. package/lib/{index-BB_X3XYb.js → index-ChOC1gfC.js} +2 -2
  93. package/lib/{index-BB_X3XYb.js.map → index-ChOC1gfC.js.map} +1 -1
  94. package/lib/{index-BIP4zJwn.js → index-DZqSbZzE.js} +16 -16
  95. package/lib/{index-BIP4zJwn.js.map → index-DZqSbZzE.js.map} +1 -1
  96. package/lib/ui/CodeBlock.js +1 -1
  97. package/lib/ui/Command.js +1 -1
  98. package/lib/ui/Dialog.js +56 -41
  99. package/lib/ui/Dialog.js.map +1 -1
  100. package/lib/ui/SyntaxHighlight.js +3 -3
  101. package/lib/zudoku.auth-auth0.js +1 -1
  102. package/lib/zudoku.auth-azureb2c.js +5 -5
  103. package/lib/zudoku.auth-clerk.js +2 -2
  104. package/lib/zudoku.auth-openid.js +5 -5
  105. package/lib/zudoku.auth-supabase.js +2 -2
  106. package/lib/zudoku.components.js +19 -18
  107. package/lib/zudoku.hooks.js +3 -3
  108. package/lib/zudoku.plugin-api-catalog.js +6 -6
  109. package/lib/zudoku.plugin-api-keys.js +7 -10
  110. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  111. package/lib/zudoku.plugin-custom-pages.js +8 -5
  112. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  113. package/lib/zudoku.plugin-markdown.js +1 -1
  114. package/lib/zudoku.plugin-openapi.js +3 -3
  115. package/lib/zudoku.plugin-search-pagefind.js +5 -5
  116. package/package.json +6 -6
  117. package/src/app/main.tsx +18 -4
  118. package/src/lib/components/BuildCheck.tsx +10 -0
  119. package/src/lib/components/Header.tsx +3 -2
  120. package/src/lib/components/Layout.tsx +2 -21
  121. package/src/lib/components/Meta.tsx +32 -0
  122. package/src/lib/components/context/ZudokuContext.ts +1 -1
  123. package/src/lib/components/index.ts +2 -0
  124. package/src/lib/components/navigation/NavigationCategory.tsx +1 -1
  125. package/src/lib/components/navigation/NavigationItem.tsx +4 -2
  126. package/src/lib/components/navigation/utils.ts +12 -12
  127. package/src/lib/core/ZudokuContext.ts +1 -0
  128. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -3
  129. package/src/lib/plugins/custom-pages/index.tsx +3 -0
  130. package/src/lib/ui/CodeBlock.tsx +8 -8
  131. package/src/lib/ui/Dialog.tsx +12 -3
  132. package/lib/CodeBlock-NFCmSWOK.js.map +0 -1
  133. package/lib/Dialog-u9Uz9sTt.js +0 -99
  134. package/lib/Dialog-u9Uz9sTt.js.map +0 -1
  135. package/lib/SyntaxHighlight-DQ64ObSH.js.map +0 -1
  136. package/lib/index-BruDSPOJ.js.map +0 -1
  137. package/src/shiki/langs/vue-vine.js +0 -1
@@ -1,22 +1,22 @@
1
- import { R as Es, I as Ts, n as gs, J as bs, K as en, j as ai, c as or, F as As } from "./ZudokuContext-Coxa0DfE.js";
1
+ import { R as Es, I as Ts, n as gs, J as bs, K as en, j as Xn, c as lr, F as As } from "./ZudokuContext-mDDq1hft.js";
2
2
  import { j as k } from "./jsx-runtime-C5mzlN2N.js";
3
- import { c as Tn, u as _s, f as lr, h as Cs, d as Is, L as xs, i as Ns, j as Ss } from "./chunk-QMGIS6GS-CdEm9pzB.js";
3
+ import { c as Tn, u as _s, f as cr, h as Cs, d as Is, L as xs, i as Ns, j as Ss } from "./chunk-QMGIS6GS-CdEm9pzB.js";
4
4
  import { CheckIcon as ks, CopyIcon as Os, ChevronRightIcon as ys, ExternalLinkIcon as Ls, LinkIcon as Rs, UnlinkIcon as Ds } from "lucide-react";
5
5
  import { a as Ps, c as si } from "./index-DI5SPFK9.js";
6
6
  import { Callout as Ue } from "./ui/Callout.js";
7
7
  import * as ws from "react";
8
- import { useRef as je, createContext as oi, use as li, useEffect as et, useCallback as ci, useState as sn, useMemo as Ft, memo as cr, Fragment as Ms } from "react";
9
- import { s as tn, p as Ve, a as fr, v as gn, b as Bs, V as Fs, u as Hs, t as Us, c as qr, d as jr, o as Me, z as fi, e as vs, f as zs, g as Ys, i as hi, j as qs, k as Vr, E as js, S as Vs, l as Ws, h as Qs } from "./SyntaxHighlight-DQ64ObSH.js";
8
+ import { useRef as je, createContext as oi, use as li, useEffect as et, useCallback as ci, useState as sn, useMemo as Ft, memo as fr, Fragment as Ms } from "react";
9
+ import { s as tn, p as Ve, a as hr, v as gn, b as Bs, V as Fs, u as Hs, t as Us, c as jr, d as Vr, o as Me, z as fi, e as vs, f as zs, g as Ys, i as hi, j as qs, k as Wr, E as js, S as Vs, l as Ws, h as Qs } from "./SyntaxHighlight-CSW4eaIJ.js";
10
10
  import { c as ie } from "./cn-dYga0KKN.js";
11
- import { u as Gs, C as Xs } from "./CodeBlock-NFCmSWOK.js";
11
+ import { u as Gs, C as Xs } from "./CodeBlock-yJjjRwj-.js";
12
12
  import * as pt from "@radix-ui/react-tooltip";
13
- import { a as Ks, d as $s, e as Js } from "./hook-DEPqwjke.js";
13
+ import { a as Ks, d as $s, e as Js } from "./hook-CGx8MPrU.js";
14
14
  import * as yn from "@radix-ui/react-collapsible";
15
15
  import { B as Zs } from "./Button-B3o-2Xdf.js";
16
16
  import { Slot as eo } from "@radix-ui/react-slot";
17
17
  import { Button as to } from "./ui/Button.js";
18
18
  import { Stepper as no } from "./ui/Stepper.js";
19
- import { g as ro, i as uo, Z as Wr } from "./invariant-Bm-FVUQE.js";
19
+ import { g as ro, i as uo, Z as Qr } from "./invariant-Bm-FVUQE.js";
20
20
  import { EmbeddedCodeBlock as io } from "./ui/EmbeddedCodeBlock.js";
21
21
  import { a as ao } from "./useExposedProps-DUoV7MCU.js";
22
22
  var FE = class extends Es {
@@ -242,7 +242,7 @@ const oo = ({
242
242
  "video"
243
243
  ]
244
244
  }, lo = {};
245
- function hr(e, t) {
245
+ function dr(e, t) {
246
246
  const n = lo, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, u = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
247
247
  return di(e, r, u);
248
248
  }
@@ -253,11 +253,11 @@ function di(e, t, n) {
253
253
  if (t && "alt" in e && e.alt)
254
254
  return e.alt;
255
255
  if ("children" in e)
256
- return Qr(e.children, t, n);
256
+ return Gr(e.children, t, n);
257
257
  }
258
- return Array.isArray(e) ? Qr(e, t, n) : "";
258
+ return Array.isArray(e) ? Gr(e, t, n) : "";
259
259
  }
260
- function Qr(e, t, n) {
260
+ function Gr(e, t, n) {
261
261
  const r = [];
262
262
  let u = -1;
263
263
  for (; ++u < e.length; )
@@ -267,11 +267,11 @@ function Qr(e, t, n) {
267
267
  function co(e) {
268
268
  return !!(e && typeof e == "object");
269
269
  }
270
- const Gr = typeof document < "u" && document.createElement("i");
271
- function dr(e) {
270
+ const Xr = typeof document < "u" && document.createElement("i");
271
+ function mr(e) {
272
272
  const t = "&" + e + ";";
273
- Gr.innerHTML = t;
274
- const n = Gr.textContent;
273
+ Xr.innerHTML = t;
274
+ const n = Xr.textContent;
275
275
  return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
276
276
  }
277
277
  function Oe(e, t, n, r) {
@@ -286,7 +286,7 @@ function Oe(e, t, n, r) {
286
286
  function ge(e, t) {
287
287
  return e.length > 0 ? (Oe(e, e.length, 0, t), e) : t;
288
288
  }
289
- const Xr = {}.hasOwnProperty;
289
+ const Kr = {}.hasOwnProperty;
290
290
  function fo(e) {
291
291
  const t = {};
292
292
  let n = -1;
@@ -297,11 +297,11 @@ function fo(e) {
297
297
  function ho(e, t) {
298
298
  let n;
299
299
  for (n in t) {
300
- const u = (Xr.call(e, n) ? e[n] : void 0) || (e[n] = {}), a = t[n];
300
+ const u = (Kr.call(e, n) ? e[n] : void 0) || (e[n] = {}), a = t[n];
301
301
  let i;
302
302
  if (a)
303
303
  for (i in a) {
304
- Xr.call(u, i) || (u[i] = []);
304
+ Kr.call(u, i) || (u[i] = []);
305
305
  const o = a[i];
306
306
  mo(
307
307
  // @ts-expect-error Looks like a list.
@@ -342,7 +342,7 @@ function on(e) {
342
342
  e !== null && (e < 32 || e === 127)
343
343
  );
344
344
  }
345
- const Xn = We(/\d/), Eo = We(/[\dA-Fa-f]/), To = We(/[!-/:-@[-`{-~]/);
345
+ const Kn = We(/\d/), Eo = We(/[\dA-Fa-f]/), To = We(/[!-/:-@[-`{-~]/);
346
346
  function H(e) {
347
347
  return e !== null && e < -2;
348
348
  }
@@ -408,7 +408,7 @@ function bo(e) {
408
408
  }
409
409
  const Ao = {
410
410
  tokenize: _o
411
- }, Kr = {
411
+ }, $r = {
412
412
  tokenize: Co
413
413
  };
414
414
  function _o(e) {
@@ -458,7 +458,7 @@ function _o(e) {
458
458
  t.interrupt = !!(u.currentConstruct && !u._gfmTableDynamicInterruptHack);
459
459
  }
460
460
  return t.containerState = {}, e.check(
461
- Kr,
461
+ $r,
462
462
  h,
463
463
  f
464
464
  )(D);
@@ -471,7 +471,7 @@ function _o(e) {
471
471
  }
472
472
  function p(D) {
473
473
  return t.containerState = {}, e.attempt(
474
- Kr,
474
+ $r,
475
475
  d,
476
476
  A
477
477
  )(D);
@@ -555,7 +555,7 @@ function dt(e) {
555
555
  if (bn(e))
556
556
  return 2;
557
557
  }
558
- function mr(e, t, n) {
558
+ function pr(e, t, n) {
559
559
  const r = [];
560
560
  let u = -1;
561
561
  for (; ++u < e.length; ) {
@@ -564,7 +564,7 @@ function mr(e, t, n) {
564
564
  }
565
565
  return t;
566
566
  }
567
- const Kn = {
567
+ const $n = {
568
568
  name: "attention",
569
569
  tokenize: xo,
570
570
  resolveAll: Io
@@ -580,7 +580,7 @@ function Io(e, t) {
580
580
  continue;
581
581
  l = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
582
582
  const f = Object.assign({}, e[r][1].end), p = Object.assign({}, e[n][1].start);
583
- $r(f, -l), $r(p, l), i = {
583
+ Jr(f, -l), Jr(p, l), i = {
584
584
  type: l > 1 ? "strongSequence" : "emphasisSequence",
585
585
  start: f,
586
586
  end: Object.assign({}, e[r][1].end)
@@ -606,7 +606,7 @@ function Io(e, t) {
606
606
  ["enter", a, t]
607
607
  ]), c = ge(
608
608
  c,
609
- mr(
609
+ pr(
610
610
  t.parser.constructs.insideSpan.null,
611
611
  e.slice(r + 1, n),
612
612
  t
@@ -641,7 +641,7 @@ function xo(e, t) {
641
641
  return c._open = !!(a === 42 ? f : f && (u || !p)), c._close = !!(a === 42 ? p : p && (h || !f)), t(l);
642
642
  }
643
643
  }
644
- function $r(e, t) {
644
+ function Jr(e, t) {
645
645
  e.column += t, e.offset += t, e._bufferIndex += t;
646
646
  }
647
647
  const No = {
@@ -766,20 +766,20 @@ function Do(e, t, n) {
766
766
  return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), a = 31, i = fe, h(f));
767
767
  }
768
768
  function c(f) {
769
- return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, i = Eo, h) : (e.enter("characterReferenceValue"), a = 7, i = Xn, h(f));
769
+ return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, i = Eo, h) : (e.enter("characterReferenceValue"), a = 7, i = Kn, h(f));
770
770
  }
771
771
  function h(f) {
772
772
  if (f === 59 && u) {
773
773
  const p = e.exit("characterReferenceValue");
774
- return i === fe && !dr(r.sliceSerialize(p)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
774
+ return i === fe && !mr(r.sliceSerialize(p)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
775
775
  }
776
776
  return i(f) && u++ < a ? (e.consume(f), h) : n(f);
777
777
  }
778
778
  }
779
- const Jr = {
779
+ const Zr = {
780
780
  tokenize: wo,
781
781
  partial: !0
782
- }, Zr = {
782
+ }, eu = {
783
783
  name: "codeFenced",
784
784
  tokenize: Po,
785
785
  concrete: !0
@@ -802,7 +802,7 @@ function Po(e, t, n) {
802
802
  return O === o ? (i++, e.consume(O), h) : i < 3 ? n(O) : (e.exit("codeFencedFenceSequence"), j(O) ? W(e, f, "whitespace")(O) : f(O));
803
803
  }
804
804
  function f(O) {
805
- return O === null || H(O) ? (e.exit("codeFencedFence"), r.interrupt ? t(O) : e.check(Jr, I, z)(O)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
805
+ return O === null || H(O) ? (e.exit("codeFencedFence"), r.interrupt ? t(O) : e.check(Zr, I, z)(O)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
806
806
  contentType: "string"
807
807
  }), p(O));
808
808
  }
@@ -832,7 +832,7 @@ function Po(e, t, n) {
832
832
  )(O) : w(O);
833
833
  }
834
834
  function w(O) {
835
- return O === null || H(O) ? e.check(Jr, I, z)(O) : (e.enter("codeFlowValue"), D(O));
835
+ return O === null || H(O) ? e.check(Zr, I, z)(O) : (e.enter("codeFlowValue"), D(O));
836
836
  }
837
837
  function D(O) {
838
838
  return O === null || H(O) ? (e.exit("codeFlowValue"), w(O)) : (e.consume(O), D);
@@ -1322,7 +1322,7 @@ const rl = [
1322
1322
  "tr",
1323
1323
  "track",
1324
1324
  "ul"
1325
- ], eu = ["pre", "script", "style", "textarea"], ul = {
1325
+ ], tu = ["pre", "script", "style", "textarea"], ul = {
1326
1326
  name: "htmlFlow",
1327
1327
  tokenize: ol,
1328
1328
  resolveTo: sl,
@@ -1369,7 +1369,7 @@ function ol(e, t, n) {
1369
1369
  function L(b) {
1370
1370
  if (b === null || b === 47 || b === 62 || J(b)) {
1371
1371
  const Ie = b === 47, Ge = i.toLowerCase();
1372
- return !Ie && !a && eu.includes(Ge) ? (u = 1, r.interrupt ? t(b) : F(b)) : rl.includes(i.toLowerCase()) ? (u = 6, Ie ? (e.consume(b), x) : r.interrupt ? t(b) : F(b)) : (u = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : a ? w(b) : D(b));
1372
+ return !Ie && !a && tu.includes(Ge) ? (u = 1, r.interrupt ? t(b) : F(b)) : rl.includes(i.toLowerCase()) ? (u = 6, Ie ? (e.consume(b), x) : r.interrupt ? t(b) : F(b)) : (u = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : a ? w(b) : D(b));
1373
1373
  }
1374
1374
  return b === 45 || fe(b) ? (e.consume(b), i += String.fromCharCode(b), L) : n(b);
1375
1375
  }
@@ -1435,7 +1435,7 @@ function ol(e, t, n) {
1435
1435
  function _e(b) {
1436
1436
  if (b === 62) {
1437
1437
  const Ie = i.toLowerCase();
1438
- return eu.includes(Ie) ? (e.consume(b), Ce) : F(b);
1438
+ return tu.includes(Ie) ? (e.consume(b), Ce) : F(b);
1439
1439
  }
1440
1440
  return de(b) && i.length < 8 ? (e.consume(b), i += String.fromCharCode(b), _e) : F(b);
1441
1441
  }
@@ -1570,7 +1570,7 @@ function hl(e, t, n) {
1570
1570
  return e.enter("htmlTextData"), i(g);
1571
1571
  }
1572
1572
  }
1573
- const pr = {
1573
+ const Er = {
1574
1574
  name: "labelEnd",
1575
1575
  tokenize: gl,
1576
1576
  resolveTo: Tl,
@@ -1621,7 +1621,7 @@ function Tl(e, t) {
1621
1621
  ["enter", c, t]
1622
1622
  ], o = ge(o, e.slice(a + 1, a + r + 3)), o = ge(o, [["enter", h, t]]), o = ge(
1623
1623
  o,
1624
- mr(
1624
+ pr(
1625
1625
  t.parser.constructs.insideSpan.null,
1626
1626
  e.slice(a + r + 4, i - 3),
1627
1627
  t
@@ -1758,7 +1758,7 @@ function _l(e, t, n) {
1758
1758
  const Cl = {
1759
1759
  name: "labelStartImage",
1760
1760
  tokenize: Il,
1761
- resolveAll: pr.resolveAll
1761
+ resolveAll: Er.resolveAll
1762
1762
  };
1763
1763
  function Il(e, t, n) {
1764
1764
  const r = this;
@@ -1776,7 +1776,7 @@ function Il(e, t, n) {
1776
1776
  const xl = {
1777
1777
  name: "labelStartLink",
1778
1778
  tokenize: Nl,
1779
- resolveAll: pr.resolveAll
1779
+ resolveAll: Er.resolveAll
1780
1780
  };
1781
1781
  function Nl(e, t, n) {
1782
1782
  const r = this;
@@ -1838,7 +1838,7 @@ function Ll(e, t, n) {
1838
1838
  return o;
1839
1839
  function o(d) {
1840
1840
  const A = r.containerState.type || (d === 42 || d === 43 || d === 45 ? "listUnordered" : "listOrdered");
1841
- if (A === "listUnordered" ? !r.containerState.marker || d === r.containerState.marker : Xn(d)) {
1841
+ if (A === "listUnordered" ? !r.containerState.marker || d === r.containerState.marker : Kn(d)) {
1842
1842
  if (r.containerState.type || (r.containerState.type = A, e.enter(A, {
1843
1843
  _container: !0
1844
1844
  })), A === "listUnordered")
@@ -1849,7 +1849,7 @@ function Ll(e, t, n) {
1849
1849
  return n(d);
1850
1850
  }
1851
1851
  function l(d) {
1852
- return Xn(d) && ++i < 10 ? (e.consume(d), l) : (!r.interrupt || i < 2) && (r.containerState.marker ? d === r.containerState.marker : d === 41 || d === 46) ? (e.exit("listItemValue"), c(d)) : n(d);
1852
+ return Kn(d) && ++i < 10 ? (e.consume(d), l) : (!r.interrupt || i < 2) && (r.containerState.marker ? d === r.containerState.marker : d === 41 || d === 46) ? (e.exit("listItemValue"), c(d)) : n(d);
1853
1853
  }
1854
1854
  function c(d) {
1855
1855
  return e.enter("listItemMarker"), e.consume(d), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || d, e.check(
@@ -1925,7 +1925,7 @@ function wl(e, t, n) {
1925
1925
  return !j(a) && i && i[1].type === "listItemPrefixWhitespace" ? t(a) : n(a);
1926
1926
  }
1927
1927
  }
1928
- const tu = {
1928
+ const nu = {
1929
1929
  name: "setextUnderline",
1930
1930
  tokenize: Bl,
1931
1931
  resolveTo: Ml
@@ -2141,7 +2141,7 @@ function ql(e, t, n) {
2141
2141
  let h = t.tokenize.call(c, l);
2142
2142
  return t.resolveAll && a.push(t), c;
2143
2143
  function f(B) {
2144
- return i = ge(i, B), L(), i[i.length - 1] !== null ? [] : (ee(t, 0), c.events = mr(a, c.events, c), c.events);
2144
+ return i = ge(i, B), L(), i[i.length - 1] !== null ? [] : (ee(t, 0), c.events = pr(a, c.events, c), c.events);
2145
2145
  }
2146
2146
  function p(B, F) {
2147
2147
  return Vl(d(B), F);
@@ -2339,12 +2339,12 @@ const Wl = {
2339
2339
  }, Xl = {
2340
2340
  35: el,
2341
2341
  42: nn,
2342
- 45: [tu, nn],
2342
+ 45: [nu, nn],
2343
2343
  60: ul,
2344
- 61: tu,
2344
+ 61: nu,
2345
2345
  95: nn,
2346
- 96: Zr,
2347
- 126: Zr
2346
+ 96: eu,
2347
+ 126: eu
2348
2348
  }, Kl = {
2349
2349
  38: Ti,
2350
2350
  92: Ei
@@ -2354,15 +2354,15 @@ const Wl = {
2354
2354
  [-3]: Dn,
2355
2355
  33: Cl,
2356
2356
  38: Ti,
2357
- 42: Kn,
2357
+ 42: $n,
2358
2358
  60: [No, fl],
2359
2359
  91: xl,
2360
2360
  92: [Jo, Ei],
2361
- 93: pr,
2362
- 95: Kn,
2361
+ 93: Er,
2362
+ 95: $n,
2363
2363
  96: Ho
2364
2364
  }, Jl = {
2365
- null: [Kn, Ul]
2365
+ null: [$n, Ul]
2366
2366
  }, Zl = {
2367
2367
  null: [42, 95]
2368
2368
  }, ec = {
@@ -2406,7 +2406,7 @@ function rc(e) {
2406
2406
  ;
2407
2407
  return e;
2408
2408
  }
2409
- const nu = /[\0\t\n\r]/g;
2409
+ const ru = /[\0\t\n\r]/g;
2410
2410
  function uc() {
2411
2411
  let e = 1, t = "", n = !0, r;
2412
2412
  return u;
@@ -2414,7 +2414,7 @@ function uc() {
2414
2414
  const l = [];
2415
2415
  let c, h, f, p, d;
2416
2416
  for (a = t + (typeof a == "string" ? a.toString() : new TextDecoder(i || void 0).decode(a)), f = 0, t = "", n && (a.charCodeAt(0) === 65279 && f++, n = void 0); f < a.length; ) {
2417
- if (nu.lastIndex = f, c = nu.exec(a), p = c && c.index !== void 0 ? c.index : a.length, d = a.charCodeAt(p), !c) {
2417
+ if (ru.lastIndex = f, c = ru.exec(a), p = c && c.index !== void 0 ? c.index : a.length, d = a.charCodeAt(p), !c) {
2418
2418
  t = a.slice(f);
2419
2419
  break;
2420
2420
  }
@@ -2453,7 +2453,7 @@ function sc(e, t, n) {
2453
2453
  const u = n.charCodeAt(1), a = u === 120 || u === 88;
2454
2454
  return mi(n.slice(a ? 2 : 1), a ? 16 : 10);
2455
2455
  }
2456
- return dr(n) || e;
2456
+ return mr(n) || e;
2457
2457
  }
2458
2458
  const xi = {}.hasOwnProperty;
2459
2459
  function oc(e, t, n) {
@@ -2468,10 +2468,10 @@ function lc(e) {
2468
2468
  transforms: [],
2469
2469
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
2470
2470
  enter: {
2471
- autolink: a(zr),
2471
+ autolink: a(Yr),
2472
2472
  autolinkProtocol: X,
2473
2473
  autolinkEmail: X,
2474
- atxHeading: a(Hr),
2474
+ atxHeading: a(Ur),
2475
2475
  blockQuote: a(it),
2476
2476
  characterEscape: X,
2477
2477
  characterReference: X,
@@ -2488,25 +2488,25 @@ function lc(e) {
2488
2488
  definitionLabelString: i,
2489
2489
  definitionTitleString: i,
2490
2490
  emphasis: a(ls),
2491
- hardBreakEscape: a(Ur),
2492
- hardBreakTrailing: a(Ur),
2493
- htmlFlow: a(vr, i),
2491
+ hardBreakEscape: a(vr),
2492
+ hardBreakTrailing: a(vr),
2493
+ htmlFlow: a(zr, i),
2494
2494
  htmlFlowData: X,
2495
- htmlText: a(vr, i),
2495
+ htmlText: a(zr, i),
2496
2496
  htmlTextData: X,
2497
2497
  image: a(cs),
2498
2498
  label: i,
2499
- link: a(zr),
2499
+ link: a(Yr),
2500
2500
  listItem: a(fs),
2501
2501
  listItemValue: p,
2502
- listOrdered: a(Yr, f),
2503
- listUnordered: a(Yr),
2502
+ listOrdered: a(qr, f),
2503
+ listUnordered: a(qr),
2504
2504
  paragraph: a(hs),
2505
2505
  reference: b,
2506
2506
  referenceString: i,
2507
2507
  resourceDestinationString: i,
2508
2508
  resourceTitleString: i,
2509
- setextHeading: a(Hr),
2509
+ setextHeading: a(Ur),
2510
2510
  strong: a(ds),
2511
2511
  thematicBreak: a(ps)
2512
2512
  },
@@ -2602,7 +2602,7 @@ function lc(e) {
2602
2602
  }
2603
2603
  if (U.tokenStack.length > 0) {
2604
2604
  const xe = U.tokenStack[U.tokenStack.length - 1];
2605
- (xe[1] || ru).call(U, void 0, xe[0]);
2605
+ (xe[1] || uu).call(U, void 0, xe[0]);
2606
2606
  }
2607
2607
  for (M.position = {
2608
2608
  start: He(
@@ -2704,7 +2704,7 @@ function lc(e) {
2704
2704
  function c(S, M) {
2705
2705
  const U = this.stack.pop(), V = this.tokenStack.pop();
2706
2706
  if (V)
2707
- V[0].type !== S.type && (M ? M.call(this, S, V[0]) : (V[1] || ru).call(this, S, V[0]));
2707
+ V[0].type !== S.type && (M ? M.call(this, S, V[0]) : (V[1] || uu).call(this, S, V[0]));
2708
2708
  else throw new Error(
2709
2709
  "Cannot close `" + S.type + "` (" + tn({
2710
2710
  start: S.start,
@@ -2714,7 +2714,7 @@ function lc(e) {
2714
2714
  U.position.end = He(S.end);
2715
2715
  }
2716
2716
  function h() {
2717
- return hr(this.stack.pop());
2717
+ return dr(this.stack.pop());
2718
2718
  }
2719
2719
  function f() {
2720
2720
  this.data.expectingFirstListItemValue = !0;
@@ -2871,7 +2871,7 @@ function lc(e) {
2871
2871
  U ? (V = mi(
2872
2872
  M,
2873
2873
  U === "characterReferenceMarkerNumeric" ? 10 : 16
2874
- ), this.data.characterReferenceType = void 0) : V = dr(M);
2874
+ ), this.data.characterReferenceType = void 0) : V = mr(M);
2875
2875
  const K = this.stack.pop();
2876
2876
  K.value += V, K.position.end = He(S.end);
2877
2877
  }
@@ -2920,7 +2920,7 @@ function lc(e) {
2920
2920
  children: []
2921
2921
  };
2922
2922
  }
2923
- function Hr() {
2923
+ function Ur() {
2924
2924
  return {
2925
2925
  type: "heading",
2926
2926
  // @ts-expect-error `depth` will be set later.
@@ -2928,12 +2928,12 @@ function lc(e) {
2928
2928
  children: []
2929
2929
  };
2930
2930
  }
2931
- function Ur() {
2931
+ function vr() {
2932
2932
  return {
2933
2933
  type: "break"
2934
2934
  };
2935
2935
  }
2936
- function vr() {
2936
+ function zr() {
2937
2937
  return {
2938
2938
  type: "html",
2939
2939
  value: ""
@@ -2947,7 +2947,7 @@ function lc(e) {
2947
2947
  alt: null
2948
2948
  };
2949
2949
  }
2950
- function zr() {
2950
+ function Yr() {
2951
2951
  return {
2952
2952
  type: "link",
2953
2953
  title: null,
@@ -2955,7 +2955,7 @@ function lc(e) {
2955
2955
  children: []
2956
2956
  };
2957
2957
  }
2958
- function Yr(S) {
2958
+ function qr(S) {
2959
2959
  return {
2960
2960
  type: "list",
2961
2961
  ordered: S.type === "listOrdered",
@@ -3033,7 +3033,7 @@ function cc(e, t) {
3033
3033
  }
3034
3034
  }
3035
3035
  }
3036
- function ru(e, t) {
3036
+ function uu(e, t) {
3037
3037
  throw e ? new Error(
3038
3038
  "Cannot close `" + e.type + "` (" + tn({
3039
3039
  start: e.start,
@@ -3323,7 +3323,7 @@ function Rc(e, t) {
3323
3323
  tagName: "tbody",
3324
3324
  properties: {},
3325
3325
  children: e.wrap(n, !0)
3326
- }, o = Ve(t.children[1]), l = fr(t.children[t.children.length - 1]);
3326
+ }, o = Ve(t.children[1]), l = hr(t.children[t.children.length - 1]);
3327
3327
  o && l && (i.position = { start: o, end: l }), u.push(i);
3328
3328
  }
3329
3329
  const a = {
@@ -3362,28 +3362,28 @@ function Pc(e, t) {
3362
3362
  };
3363
3363
  return e.patch(t, n), e.applyData(t, n);
3364
3364
  }
3365
- const uu = 9, iu = 32;
3365
+ const iu = 9, au = 32;
3366
3366
  function wc(e) {
3367
3367
  const t = String(e), n = /\r?\n|\r/g;
3368
3368
  let r = n.exec(t), u = 0;
3369
3369
  const a = [];
3370
3370
  for (; r; )
3371
3371
  a.push(
3372
- au(t.slice(u, r.index), u > 0, !0),
3372
+ su(t.slice(u, r.index), u > 0, !0),
3373
3373
  r[0]
3374
3374
  ), u = r.index + r[0].length, r = n.exec(t);
3375
- return a.push(au(t.slice(u), u > 0, !1)), a.join("");
3375
+ return a.push(su(t.slice(u), u > 0, !1)), a.join("");
3376
3376
  }
3377
- function au(e, t, n) {
3377
+ function su(e, t, n) {
3378
3378
  let r = 0, u = e.length;
3379
3379
  if (t) {
3380
3380
  let a = e.codePointAt(r);
3381
- for (; a === uu || a === iu; )
3381
+ for (; a === iu || a === au; )
3382
3382
  r++, a = e.codePointAt(r);
3383
3383
  }
3384
3384
  if (n) {
3385
3385
  let a = e.codePointAt(u - 1);
3386
- for (; a === uu || a === iu; )
3386
+ for (; a === iu || a === au; )
3387
3387
  u--, a = e.codePointAt(u - 1);
3388
3388
  }
3389
3389
  return u > r ? e.slice(r, u) : "";
@@ -3433,7 +3433,7 @@ const Fc = {
3433
3433
  };
3434
3434
  function Qt() {
3435
3435
  }
3436
- const Oi = -1, _n = 0, Rt = 1, ln = 2, Er = 3, Tr = 4, gr = 5, br = 6, yi = 7, Li = 8, su = typeof self == "object" ? self : globalThis, Hc = (e, t) => {
3436
+ const Oi = -1, _n = 0, Rt = 1, ln = 2, Tr = 3, gr = 4, br = 5, Ar = 6, yi = 7, Li = 8, ou = typeof self == "object" ? self : globalThis, Hc = (e, t) => {
3437
3437
  const n = (u, a) => (e.set(a, u), u), r = (u) => {
3438
3438
  if (e.has(u))
3439
3439
  return e.get(u);
@@ -3454,19 +3454,19 @@ const Oi = -1, _n = 0, Rt = 1, ln = 2, Er = 3, Tr = 4, gr = 5, br = 6, yi = 7, L
3454
3454
  o[r(l)] = r(c);
3455
3455
  return o;
3456
3456
  }
3457
- case Er:
3457
+ case Tr:
3458
3458
  return n(new Date(i), u);
3459
- case Tr: {
3459
+ case gr: {
3460
3460
  const { source: o, flags: l } = i;
3461
3461
  return n(new RegExp(o, l), u);
3462
3462
  }
3463
- case gr: {
3463
+ case br: {
3464
3464
  const o = n(/* @__PURE__ */ new Map(), u);
3465
3465
  for (const [l, c] of i)
3466
3466
  o.set(r(l), r(c));
3467
3467
  return o;
3468
3468
  }
3469
- case br: {
3469
+ case Ar: {
3470
3470
  const o = n(/* @__PURE__ */ new Set(), u);
3471
3471
  for (const l of i)
3472
3472
  o.add(r(l));
@@ -3474,7 +3474,7 @@ const Oi = -1, _n = 0, Rt = 1, ln = 2, Er = 3, Tr = 4, gr = 5, br = 6, yi = 7, L
3474
3474
  }
3475
3475
  case yi: {
3476
3476
  const { name: o, message: l } = i;
3477
- return n(new su[o](l), u);
3477
+ return n(new ou[o](l), u);
3478
3478
  }
3479
3479
  case Li:
3480
3480
  return n(BigInt(i), u);
@@ -3487,10 +3487,10 @@ const Oi = -1, _n = 0, Rt = 1, ln = 2, Er = 3, Tr = 4, gr = 5, br = 6, yi = 7, L
3487
3487
  return n(new DataView(o), i);
3488
3488
  }
3489
3489
  }
3490
- return n(new su[a](i), u);
3490
+ return n(new ou[a](i), u);
3491
3491
  };
3492
3492
  return r;
3493
- }, ou = (e) => Hc(/* @__PURE__ */ new Map(), e)(0), st = "", { toString: Uc } = {}, { keys: vc } = Object, xt = (e) => {
3493
+ }, lu = (e) => Hc(/* @__PURE__ */ new Map(), e)(0), st = "", { toString: Uc } = {}, { keys: vc } = Object, xt = (e) => {
3494
3494
  const t = typeof e;
3495
3495
  if (t !== "object" || !e)
3496
3496
  return [_n, t];
@@ -3501,13 +3501,13 @@ const Oi = -1, _n = 0, Rt = 1, ln = 2, Er = 3, Tr = 4, gr = 5, br = 6, yi = 7, L
3501
3501
  case "Object":
3502
3502
  return [ln, st];
3503
3503
  case "Date":
3504
- return [Er, st];
3505
- case "RegExp":
3506
3504
  return [Tr, st];
3507
- case "Map":
3505
+ case "RegExp":
3508
3506
  return [gr, st];
3509
- case "Set":
3507
+ case "Map":
3510
3508
  return [br, st];
3509
+ case "Set":
3510
+ return [Ar, st];
3511
3511
  case "DataView":
3512
3512
  return [Rt, n];
3513
3513
  }
@@ -3565,19 +3565,19 @@ const Oi = -1, _n = 0, Rt = 1, ln = 2, Er = 3, Tr = 4, gr = 5, br = 6, yi = 7, L
3565
3565
  (e || !Gt(xt(i[p]))) && h.push([a(p), a(i[p])]);
3566
3566
  return f;
3567
3567
  }
3568
- case Er:
3568
+ case Tr:
3569
3569
  return u([o, i.toISOString()], i);
3570
- case Tr: {
3570
+ case gr: {
3571
3571
  const { source: h, flags: f } = i;
3572
3572
  return u([o, { source: h, flags: f }], i);
3573
3573
  }
3574
- case gr: {
3574
+ case br: {
3575
3575
  const h = [], f = u([o, h], i);
3576
3576
  for (const [p, d] of i)
3577
3577
  (e || !(Gt(xt(p)) || Gt(xt(d)))) && h.push([a(p), a(d)]);
3578
3578
  return f;
3579
3579
  }
3580
- case br: {
3580
+ case Ar: {
3581
3581
  const h = [], f = u([o, h], i);
3582
3582
  for (const p of i)
3583
3583
  (e || !Gt(xt(p))) && h.push(a(p));
@@ -3588,13 +3588,13 @@ const Oi = -1, _n = 0, Rt = 1, ln = 2, Er = 3, Tr = 4, gr = 5, br = 6, yi = 7, L
3588
3588
  return u([o, { name: l, message: c }], i);
3589
3589
  };
3590
3590
  return a;
3591
- }, lu = (e, { json: t, lossy: n } = {}) => {
3591
+ }, cu = (e, { json: t, lossy: n } = {}) => {
3592
3592
  const r = [];
3593
3593
  return zc(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
3594
3594
  }, cn = typeof structuredClone == "function" ? (
3595
3595
  /* c8 ignore start */
3596
- (e, t) => t && ("json" in t || "lossy" in t) ? ou(lu(e, t)) : structuredClone(e)
3597
- ) : (e, t) => ou(lu(e, t));
3596
+ (e, t) => t && ("json" in t || "lossy" in t) ? lu(cu(e, t)) : structuredClone(e)
3597
+ ) : (e, t) => lu(cu(e, t));
3598
3598
  function Yc(e, t) {
3599
3599
  const n = [{ type: "text", value: "↩" }];
3600
3600
  return t > 1 && n.push({
@@ -3678,7 +3678,7 @@ function jc(e) {
3678
3678
  ]
3679
3679
  };
3680
3680
  }
3681
- const $n = {}.hasOwnProperty, Vc = {};
3681
+ const Jn = {}.hasOwnProperty, Vc = {};
3682
3682
  function Wc(e, t) {
3683
3683
  const n = t || Vc, r = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = { ...Fc, ...n.handlers }, o = {
3684
3684
  all: c,
@@ -3701,7 +3701,7 @@ function Wc(e, t) {
3701
3701
  }), o;
3702
3702
  function l(h, f) {
3703
3703
  const p = h.type, d = o.handlers[p];
3704
- if ($n.call(o.handlers, p) && d)
3704
+ if (Jn.call(o.handlers, p) && d)
3705
3705
  return d(o, h, f);
3706
3706
  if (o.options.passThrough && o.options.passThrough.includes(p)) {
3707
3707
  if ("children" in h) {
@@ -3720,9 +3720,9 @@ function Wc(e, t) {
3720
3720
  for (; ++d < p.length; ) {
3721
3721
  const A = o.one(p[d], h);
3722
3722
  if (A) {
3723
- if (d && p[d - 1].type === "break" && (!Array.isArray(A) && A.type === "text" && (A.value = cu(A.value)), !Array.isArray(A) && A.type === "element")) {
3723
+ if (d && p[d - 1].type === "break" && (!Array.isArray(A) && A.type === "text" && (A.value = fu(A.value)), !Array.isArray(A) && A.type === "element")) {
3724
3724
  const I = A.children[0];
3725
- I && I.type === "text" && (I.value = cu(I.value));
3725
+ I && I.type === "text" && (I.value = fu(I.value));
3726
3726
  }
3727
3727
  Array.isArray(A) ? f.push(...A) : f.push(A);
3728
3728
  }
@@ -3750,7 +3750,7 @@ function Gc(e, t) {
3750
3750
  return n;
3751
3751
  }
3752
3752
  function Xc(e, t) {
3753
- const n = t.data || {}, r = "value" in t && !($n.call(n, "hProperties") || $n.call(n, "hChildren")) ? { type: "text", value: t.value } : {
3753
+ const n = t.data || {}, r = "value" in t && !(Jn.call(n, "hProperties") || Jn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
3754
3754
  type: "element",
3755
3755
  tagName: "div",
3756
3756
  properties: {},
@@ -3768,13 +3768,13 @@ function Kc(e, t) {
3768
3768
  return t && e.length > 0 && n.push({ type: "text", value: `
3769
3769
  ` }), n;
3770
3770
  }
3771
- function cu(e) {
3771
+ function fu(e) {
3772
3772
  let t = 0, n = e.charCodeAt(t);
3773
3773
  for (; n === 9 || n === 32; )
3774
3774
  t++, n = e.charCodeAt(t);
3775
3775
  return e.slice(t);
3776
3776
  }
3777
- function fu(e, t) {
3777
+ function hu(e, t) {
3778
3778
  const n = Wc(e, t), r = n.one(e, void 0), u = jc(n), a = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
3779
3779
  return u && a.children.push({ type: "text", value: `
3780
3780
  ` }, u), a;
@@ -3783,24 +3783,24 @@ function $c(e, t) {
3783
3783
  return e && "run" in e ? async function(n, r) {
3784
3784
  const u = (
3785
3785
  /** @type {HastRoot} */
3786
- fu(n, { file: r, ...t })
3786
+ hu(n, { file: r, ...t })
3787
3787
  );
3788
3788
  await e.run(u, r);
3789
3789
  } : function(n, r) {
3790
3790
  return (
3791
3791
  /** @type {HastRoot} */
3792
- fu(n, { file: r, ...e || t })
3792
+ hu(n, { file: r, ...e || t })
3793
3793
  );
3794
3794
  };
3795
3795
  }
3796
- function hu(e) {
3796
+ function du(e) {
3797
3797
  if (e)
3798
3798
  throw e;
3799
3799
  }
3800
- var Pn, du;
3800
+ var Pn, mu;
3801
3801
  function Jc() {
3802
- if (du) return Pn;
3803
- du = 1;
3802
+ if (mu) return Pn;
3803
+ mu = 1;
3804
3804
  var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, u = function(c) {
3805
3805
  return typeof Array.isArray == "function" ? Array.isArray(c) : t.call(c) === "[object Array]";
3806
3806
  }, a = function(c) {
@@ -3839,7 +3839,7 @@ function Jc() {
3839
3839
  }
3840
3840
  var Zc = Jc();
3841
3841
  const wn = /* @__PURE__ */ ro(Zc);
3842
- function Jn(e) {
3842
+ function Zn(e) {
3843
3843
  if (typeof e != "object" || e === null)
3844
3844
  return !1;
3845
3845
  const t = Object.getPrototypeOf(e);
@@ -4014,14 +4014,14 @@ const o0 = { cwd: l0 };
4014
4014
  function l0() {
4015
4015
  return "/";
4016
4016
  }
4017
- function Zn(e) {
4017
+ function er(e) {
4018
4018
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
4019
4019
  e.auth === void 0);
4020
4020
  }
4021
4021
  function c0(e) {
4022
4022
  if (typeof e == "string")
4023
4023
  e = new URL(e);
4024
- else if (!Zn(e)) {
4024
+ else if (!er(e)) {
4025
4025
  const t = new TypeError(
4026
4026
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
4027
4027
  );
@@ -4090,7 +4090,7 @@ class Ri {
4090
4090
  */
4091
4091
  constructor(t) {
4092
4092
  let n;
4093
- t ? Zn(t) ? n = { path: t } : typeof t == "string" || h0(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : o0.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
4093
+ t ? er(t) ? n = { path: t } : typeof t == "string" || h0(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : o0.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
4094
4094
  let r = -1;
4095
4095
  for (; ++r < Mn.length; ) {
4096
4096
  const a = Mn[r];
@@ -4144,7 +4144,7 @@ class Ri {
4144
4144
  * Nothing.
4145
4145
  */
4146
4146
  set dirname(t) {
4147
- mu(this.basename, "dirname"), this.path = Se.join(t || "", this.basename);
4147
+ pu(this.basename, "dirname"), this.path = Se.join(t || "", this.basename);
4148
4148
  }
4149
4149
  /**
4150
4150
  * Get the extname (including dot) (example: `'.js'`).
@@ -4168,7 +4168,7 @@ class Ri {
4168
4168
  * Nothing.
4169
4169
  */
4170
4170
  set extname(t) {
4171
- if (Bn(t, "extname"), mu(this.dirname, "extname"), t) {
4171
+ if (Bn(t, "extname"), pu(this.dirname, "extname"), t) {
4172
4172
  if (t.codePointAt(0) !== 46)
4173
4173
  throw new Error("`extname` must start with `.`");
4174
4174
  if (t.includes(".", 1))
@@ -4198,7 +4198,7 @@ class Ri {
4198
4198
  * Nothing.
4199
4199
  */
4200
4200
  set path(t) {
4201
- Zn(t) && (t = c0(t)), Fn(t, "path"), this.path !== t && this.history.push(t);
4201
+ er(t) && (t = c0(t)), Fn(t, "path"), this.path !== t && this.history.push(t);
4202
4202
  }
4203
4203
  /**
4204
4204
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -4445,7 +4445,7 @@ function Fn(e, t) {
4445
4445
  if (!e)
4446
4446
  throw new Error("`" + t + "` cannot be empty");
4447
4447
  }
4448
- function mu(e, t) {
4448
+ function pu(e, t) {
4449
4449
  if (!e)
4450
4450
  throw new Error("Setting `" + t + "` requires `path` to be set too");
4451
4451
  }
@@ -4474,7 +4474,7 @@ const d0 = (
4474
4474
  return Object.setPrototypeOf(a, r), a;
4475
4475
  }
4476
4476
  ), m0 = {}.hasOwnProperty;
4477
- class Ar extends d0 {
4477
+ class _r extends d0 {
4478
4478
  /**
4479
4479
  * Create a processor.
4480
4480
  */
@@ -4495,7 +4495,7 @@ class Ar extends d0 {
4495
4495
  copy() {
4496
4496
  const t = (
4497
4497
  /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
4498
- new Ar()
4498
+ new _r()
4499
4499
  );
4500
4500
  let n = -1;
4501
4501
  for (; ++n < this.attachers.length; ) {
@@ -4723,9 +4723,9 @@ class Ar extends d0 {
4723
4723
  */
4724
4724
  processSync(t) {
4725
4725
  let n = !1, r;
4726
- return this.freeze(), Hn("processSync", this.parser || this.Parser), Un("processSync", this.compiler || this.Compiler), this.process(t, u), Eu("processSync", "process", n), r;
4726
+ return this.freeze(), Hn("processSync", this.parser || this.Parser), Un("processSync", this.compiler || this.Compiler), this.process(t, u), Tu("processSync", "process", n), r;
4727
4727
  function u(a, i) {
4728
- n = !0, hu(a), r = i;
4728
+ n = !0, du(a), r = i;
4729
4729
  }
4730
4730
  }
4731
4731
  /**
@@ -4767,7 +4767,7 @@ class Ar extends d0 {
4767
4767
  * transformed tree.
4768
4768
  */
4769
4769
  run(t, n, r) {
4770
- pu(t), this.freeze();
4770
+ Eu(t), this.freeze();
4771
4771
  const u = this.transformers;
4772
4772
  return !r && typeof n == "function" && (r = n, n = void 0), r ? a(void 0, r) : new Promise(a);
4773
4773
  function a(i, o) {
@@ -4801,9 +4801,9 @@ class Ar extends d0 {
4801
4801
  */
4802
4802
  runSync(t, n) {
4803
4803
  let r = !1, u;
4804
- return this.run(t, n, a), Eu("runSync", "run", r), u;
4804
+ return this.run(t, n, a), Tu("runSync", "run", r), u;
4805
4805
  function a(i, o) {
4806
- hu(i), u = o, r = !0;
4806
+ du(i), u = o, r = !0;
4807
4807
  }
4808
4808
  }
4809
4809
  /**
@@ -4838,7 +4838,7 @@ class Ar extends d0 {
4838
4838
  stringify(t, n) {
4839
4839
  this.freeze();
4840
4840
  const r = Xt(n), u = this.compiler || this.Compiler;
4841
- return Un("stringify", u), pu(t), u(t, r);
4841
+ return Un("stringify", u), Eu(t), u(t, r);
4842
4842
  }
4843
4843
  /**
4844
4844
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -4950,12 +4950,12 @@ class Ar extends d0 {
4950
4950
  else if (h.length > 0) {
4951
4951
  let [d, ...A] = h;
4952
4952
  const I = r[p][1];
4953
- Jn(I) && Jn(d) && (d = wn(!0, I, d)), r[p] = [c, d, ...A];
4953
+ Zn(I) && Zn(d) && (d = wn(!0, I, d)), r[p] = [c, d, ...A];
4954
4954
  }
4955
4955
  }
4956
4956
  }
4957
4957
  }
4958
- const p0 = new Ar().freeze();
4958
+ const p0 = new _r().freeze();
4959
4959
  function Hn(e, t) {
4960
4960
  if (typeof t != "function")
4961
4961
  throw new TypeError("Cannot `" + e + "` without `parser`");
@@ -4970,11 +4970,11 @@ function vn(e, t) {
4970
4970
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
4971
4971
  );
4972
4972
  }
4973
- function pu(e) {
4974
- if (!Jn(e) || typeof e.type != "string")
4973
+ function Eu(e) {
4974
+ if (!Zn(e) || typeof e.type != "string")
4975
4975
  throw new TypeError("Expected node, got `" + e + "`");
4976
4976
  }
4977
- function Eu(e, t, n) {
4977
+ function Tu(e, t, n) {
4978
4978
  if (!n)
4979
4979
  throw new Error(
4980
4980
  "`" + e + "` finished async. Use `" + t + "` instead"
@@ -4992,7 +4992,7 @@ function T0(e) {
4992
4992
  function g0(e) {
4993
4993
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
4994
4994
  }
4995
- const b0 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Tu = [], gu = { allowDangerousHtml: !0 }, A0 = /^(https?|ircs?|mailto|xmpp)$/i, _0 = [
4995
+ const b0 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", gu = [], bu = { allowDangerousHtml: !0 }, A0 = /^(https?|ircs?|mailto|xmpp)$/i, _0 = [
4996
4996
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
4997
4997
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
4998
4998
  {
@@ -5031,7 +5031,7 @@ function C0(e) {
5031
5031
  return N0(t.runSync(t.parse(n), n), e);
5032
5032
  }
5033
5033
  function I0(e) {
5034
- const t = e.rehypePlugins || Tu, n = e.remarkPlugins || Tu, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...gu } : gu;
5034
+ const t = e.rehypePlugins || gu, n = e.remarkPlugins || gu, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...bu } : bu;
5035
5035
  return p0().use(fc).use(n).use($c, r).use(t);
5036
5036
  }
5037
5037
  function x0(e) {
@@ -5080,7 +5080,7 @@ function S0(e) {
5080
5080
  A0.test(e.slice(0, t)) ? e : ""
5081
5081
  );
5082
5082
  }
5083
- const Di = -1, Cn = 0, fn = 1, hn = 2, _r = 3, Cr = 4, Ir = 5, xr = 6, Pi = 7, wi = 8, bu = typeof self == "object" ? self : globalThis, k0 = (e, t) => {
5083
+ const Di = -1, Cn = 0, fn = 1, hn = 2, Cr = 3, Ir = 4, xr = 5, Nr = 6, Pi = 7, wi = 8, Au = typeof self == "object" ? self : globalThis, k0 = (e, t) => {
5084
5084
  const n = (u, a) => (e.set(a, u), u), r = (u) => {
5085
5085
  if (e.has(u))
5086
5086
  return e.get(u);
@@ -5101,19 +5101,19 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, _r = 3, Cr = 4, Ir = 5, xr = 6, Pi = 7, w
5101
5101
  o[r(l)] = r(c);
5102
5102
  return o;
5103
5103
  }
5104
- case _r:
5104
+ case Cr:
5105
5105
  return n(new Date(i), u);
5106
- case Cr: {
5106
+ case Ir: {
5107
5107
  const { source: o, flags: l } = i;
5108
5108
  return n(new RegExp(o, l), u);
5109
5109
  }
5110
- case Ir: {
5110
+ case xr: {
5111
5111
  const o = n(/* @__PURE__ */ new Map(), u);
5112
5112
  for (const [l, c] of i)
5113
5113
  o.set(r(l), r(c));
5114
5114
  return o;
5115
5115
  }
5116
- case xr: {
5116
+ case Nr: {
5117
5117
  const o = n(/* @__PURE__ */ new Set(), u);
5118
5118
  for (const l of i)
5119
5119
  o.add(r(l));
@@ -5121,17 +5121,17 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, _r = 3, Cr = 4, Ir = 5, xr = 6, Pi = 7, w
5121
5121
  }
5122
5122
  case Pi: {
5123
5123
  const { name: o, message: l } = i;
5124
- return n(new bu[o](l), u);
5124
+ return n(new Au[o](l), u);
5125
5125
  }
5126
5126
  case wi:
5127
5127
  return n(BigInt(i), u);
5128
5128
  case "BigInt":
5129
5129
  return n(Object(BigInt(i)), u);
5130
5130
  }
5131
- return n(new bu[a](i), u);
5131
+ return n(new Au[a](i), u);
5132
5132
  };
5133
5133
  return r;
5134
- }, Au = (e) => k0(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: O0 } = {}, { keys: y0 } = Object, Nt = (e) => {
5134
+ }, _u = (e) => k0(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: O0 } = {}, { keys: y0 } = Object, Nt = (e) => {
5135
5135
  const t = typeof e;
5136
5136
  if (t !== "object" || !e)
5137
5137
  return [Cn, t];
@@ -5142,13 +5142,13 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, _r = 3, Cr = 4, Ir = 5, xr = 6, Pi = 7, w
5142
5142
  case "Object":
5143
5143
  return [hn, ot];
5144
5144
  case "Date":
5145
- return [_r, ot];
5146
- case "RegExp":
5147
5145
  return [Cr, ot];
5148
- case "Map":
5146
+ case "RegExp":
5149
5147
  return [Ir, ot];
5150
- case "Set":
5148
+ case "Map":
5151
5149
  return [xr, ot];
5150
+ case "Set":
5151
+ return [Nr, ot];
5152
5152
  }
5153
5153
  return n.includes("Array") ? [fn, n] : n.includes("Error") ? [Pi, n] : [hn, n];
5154
5154
  }, Kt = ([e, t]) => e === Cn && (t === "function" || t === "symbol"), L0 = (e, t, n, r) => {
@@ -5202,19 +5202,19 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, _r = 3, Cr = 4, Ir = 5, xr = 6, Pi = 7, w
5202
5202
  (e || !Kt(Nt(i[p]))) && h.push([a(p), a(i[p])]);
5203
5203
  return f;
5204
5204
  }
5205
- case _r:
5205
+ case Cr:
5206
5206
  return u([o, i.toISOString()], i);
5207
- case Cr: {
5207
+ case Ir: {
5208
5208
  const { source: h, flags: f } = i;
5209
5209
  return u([o, { source: h, flags: f }], i);
5210
5210
  }
5211
- case Ir: {
5211
+ case xr: {
5212
5212
  const h = [], f = u([o, h], i);
5213
5213
  for (const [p, d] of i)
5214
5214
  (e || !(Kt(Nt(p)) || Kt(Nt(d)))) && h.push([a(p), a(d)]);
5215
5215
  return f;
5216
5216
  }
5217
- case xr: {
5217
+ case Nr: {
5218
5218
  const h = [], f = u([o, h], i);
5219
5219
  for (const p of i)
5220
5220
  (e || !Kt(Nt(p))) && h.push(a(p));
@@ -5225,13 +5225,13 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, _r = 3, Cr = 4, Ir = 5, xr = 6, Pi = 7, w
5225
5225
  return u([o, { name: l, message: c }], i);
5226
5226
  };
5227
5227
  return a;
5228
- }, _u = (e, { json: t, lossy: n } = {}) => {
5228
+ }, Cu = (e, { json: t, lossy: n } = {}) => {
5229
5229
  const r = [];
5230
5230
  return L0(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5231
- }, Cu = typeof structuredClone == "function" ? (
5231
+ }, Iu = typeof structuredClone == "function" ? (
5232
5232
  /* c8 ignore start */
5233
- (e, t) => t && ("json" in t || "lossy" in t) ? Au(_u(e, t)) : structuredClone(e)
5234
- ) : (e, t) => Au(_u(e, t));
5233
+ (e, t) => t && ("json" in t || "lossy" in t) ? _u(Cu(e, t)) : structuredClone(e)
5234
+ ) : (e, t) => _u(Cu(e, t));
5235
5235
  class Yt {
5236
5236
  /**
5237
5237
  * @constructor
@@ -5281,7 +5281,7 @@ const v = nt(), ue = nt(), Bi = nt(), P = nt(), Z = nt(), ht = nt(), Te = nt();
5281
5281
  function nt() {
5282
5282
  return 2 ** ++R0;
5283
5283
  }
5284
- const er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5284
+ const tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5285
5285
  __proto__: null,
5286
5286
  boolean: v,
5287
5287
  booleanish: ue,
@@ -5290,8 +5290,8 @@ const er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5290
5290
  number: P,
5291
5291
  overloadedBoolean: Bi,
5292
5292
  spaceSeparated: Z
5293
- }, Symbol.toStringTag, { value: "Module" })), zn = Object.keys(er);
5294
- class Nr extends Ae {
5293
+ }, Symbol.toStringTag, { value: "Module" })), zn = Object.keys(tr);
5294
+ class Sr extends Ae {
5295
5295
  /**
5296
5296
  * @constructor
5297
5297
  * @param {string} property
@@ -5301,15 +5301,15 @@ class Nr extends Ae {
5301
5301
  */
5302
5302
  constructor(t, n, r, u) {
5303
5303
  let a = -1;
5304
- if (super(t, n), Iu(this, "space", u), typeof r == "number")
5304
+ if (super(t, n), xu(this, "space", u), typeof r == "number")
5305
5305
  for (; ++a < zn.length; ) {
5306
5306
  const i = zn[a];
5307
- Iu(this, zn[a], (r & er[i]) === er[i]);
5307
+ xu(this, zn[a], (r & tr[i]) === tr[i]);
5308
5308
  }
5309
5309
  }
5310
5310
  }
5311
- Nr.prototype.defined = !0;
5312
- function Iu(e, t, n) {
5311
+ Sr.prototype.defined = !0;
5312
+ function xu(e, t, n) {
5313
5313
  n && (e[t] = n);
5314
5314
  }
5315
5315
  const D0 = {}.hasOwnProperty;
@@ -5318,7 +5318,7 @@ function Tt(e) {
5318
5318
  let r;
5319
5319
  for (r in e.properties)
5320
5320
  if (D0.call(e.properties, r)) {
5321
- const u = e.properties[r], a = new Nr(
5321
+ const u = e.properties[r], a = new Sr(
5322
5322
  r,
5323
5323
  e.transform(e.attributes || {}, r),
5324
5324
  u,
@@ -6335,24 +6335,24 @@ const zi = Tt({
6335
6335
  z: null,
6336
6336
  zoomAndPan: null
6337
6337
  }
6338
- }), M0 = /^data[-\w.:]+$/i, xu = /-[a-z]/g, B0 = /[A-Z]/g;
6339
- function Sr(e, t) {
6338
+ }), M0 = /^data[-\w.:]+$/i, Nu = /-[a-z]/g, B0 = /[A-Z]/g;
6339
+ function kr(e, t) {
6340
6340
  const n = Ht(t);
6341
6341
  let r = t, u = Ae;
6342
6342
  if (n in e.normal)
6343
6343
  return e.property[e.normal[n]];
6344
6344
  if (n.length > 4 && n.slice(0, 4) === "data" && M0.test(t)) {
6345
6345
  if (t.charAt(4) === "-") {
6346
- const a = t.slice(5).replace(xu, H0);
6346
+ const a = t.slice(5).replace(Nu, H0);
6347
6347
  r = "data" + a.charAt(0).toUpperCase() + a.slice(1);
6348
6348
  } else {
6349
6349
  const a = t.slice(4);
6350
- if (!xu.test(a)) {
6350
+ if (!Nu.test(a)) {
6351
6351
  let i = a.replace(B0, F0);
6352
6352
  i.charAt(0) !== "-" && (i = "-" + i), t = "data" + i;
6353
6353
  }
6354
6354
  }
6355
- u = Nr;
6355
+ u = Sr;
6356
6356
  }
6357
6357
  return new u(r, t);
6358
6358
  }
@@ -6362,13 +6362,13 @@ function F0(e) {
6362
6362
  function H0(e) {
6363
6363
  return e.charAt(1).toUpperCase();
6364
6364
  }
6365
- const In = Mi([Hi, Fi, zi, Yi, P0], "html"), qt = Mi([Hi, Fi, zi, Yi, w0], "svg"), Nu = /[#.]/g;
6365
+ const In = Mi([Hi, Fi, zi, Yi, P0], "html"), qt = Mi([Hi, Fi, zi, Yi, w0], "svg"), Su = /[#.]/g;
6366
6366
  function U0(e, t) {
6367
6367
  const n = e || "", r = {};
6368
6368
  let u = 0, a, i;
6369
6369
  for (; u < n.length; ) {
6370
- Nu.lastIndex = u;
6371
- const o = Nu.exec(n), l = n.slice(u, o ? o.index : n.length);
6370
+ Su.lastIndex = u;
6371
+ const o = Su.exec(n), l = n.slice(u, o ? o.index : n.length);
6372
6372
  l && (a ? a === "#" ? r.id = l : Array.isArray(r.className) ? r.className.push(l) : r.className = [l] : i = l, u += l.length), o && (a = o[0], u++);
6373
6373
  }
6374
6374
  return {
@@ -6379,7 +6379,7 @@ function U0(e, t) {
6379
6379
  children: []
6380
6380
  };
6381
6381
  }
6382
- const tr = {}.hasOwnProperty;
6382
+ const nr = {}.hasOwnProperty;
6383
6383
  function qi(e, t, n) {
6384
6384
  const r = n && q0(n);
6385
6385
  function u(a, i, ...o) {
@@ -6391,15 +6391,15 @@ function qi(e, t, n) {
6391
6391
  i
6392
6392
  );
6393
6393
  o.unshift(h);
6394
- } else if (c = U0(a, t), c.tagName = c.tagName.toLowerCase(), r && tr.call(r, c.tagName) && (c.tagName = r[c.tagName]), v0(i))
6394
+ } else if (c = U0(a, t), c.tagName = c.tagName.toLowerCase(), r && nr.call(r, c.tagName) && (c.tagName = r[c.tagName]), v0(i))
6395
6395
  o.unshift(i);
6396
6396
  else {
6397
6397
  let h;
6398
6398
  for (h in i)
6399
- tr.call(i, h) && z0(e, c.properties, h, i[h]);
6399
+ nr.call(i, h) && z0(e, c.properties, h, i[h]);
6400
6400
  }
6401
6401
  for (; ++l < o.length; )
6402
- nr(c.children, o[l]);
6402
+ rr(c.children, o[l]);
6403
6403
  return c.type === "element" && c.tagName === "template" && (c.content = { type: "root", children: c.children }, c.children = []), c;
6404
6404
  }
6405
6405
  return u;
@@ -6428,19 +6428,19 @@ function v0(e) {
6428
6428
  return !!("children" in e && Array.isArray(e.children));
6429
6429
  }
6430
6430
  function z0(e, t, n, r) {
6431
- const u = Sr(e, n);
6431
+ const u = kr(e, n);
6432
6432
  let a = -1, i;
6433
6433
  if (r != null) {
6434
6434
  if (typeof r == "number") {
6435
6435
  if (Number.isNaN(r)) return;
6436
6436
  i = r;
6437
- } else typeof r == "boolean" ? i = r : typeof r == "string" ? u.spaceSeparated ? i = qr(r) : u.commaSeparated ? i = jr(r) : u.commaOrSpaceSeparated ? i = qr(jr(r).join(" ")) : i = Su(u, u.property, r) : Array.isArray(r) ? i = r.concat() : i = u.property === "style" ? Y0(r) : String(r);
6437
+ } else typeof r == "boolean" ? i = r : typeof r == "string" ? u.spaceSeparated ? i = jr(r) : u.commaSeparated ? i = Vr(r) : u.commaOrSpaceSeparated ? i = jr(Vr(r).join(" ")) : i = ku(u, u.property, r) : Array.isArray(r) ? i = r.concat() : i = u.property === "style" ? Y0(r) : String(r);
6438
6438
  if (Array.isArray(i)) {
6439
6439
  const o = [];
6440
6440
  for (; ++a < i.length; ) {
6441
6441
  const l = (
6442
6442
  /** @type {number | string} */
6443
- Su(u, u.property, i[a])
6443
+ ku(u, u.property, i[a])
6444
6444
  );
6445
6445
  o[a] = l;
6446
6446
  }
@@ -6456,19 +6456,19 @@ function z0(e, t, n, r) {
6456
6456
  t[u.property] = i;
6457
6457
  }
6458
6458
  }
6459
- function nr(e, t) {
6459
+ function rr(e, t) {
6460
6460
  let n = -1;
6461
6461
  if (t != null) if (typeof t == "string" || typeof t == "number")
6462
6462
  e.push({ type: "text", value: String(t) });
6463
6463
  else if (Array.isArray(t))
6464
6464
  for (; ++n < t.length; )
6465
- nr(e, t[n]);
6465
+ rr(e, t[n]);
6466
6466
  else if (typeof t == "object" && "type" in t)
6467
- t.type === "root" ? nr(e, t.children) : e.push(t);
6467
+ t.type === "root" ? rr(e, t.children) : e.push(t);
6468
6468
  else
6469
6469
  throw new Error("Expected node, nodes, or string, got `" + t + "`");
6470
6470
  }
6471
- function Su(e, t, n) {
6471
+ function ku(e, t, n) {
6472
6472
  if (typeof n == "string") {
6473
6473
  if (e.number && n && !Number.isNaN(Number(n)))
6474
6474
  return Number(n);
@@ -6481,7 +6481,7 @@ function Y0(e) {
6481
6481
  const t = [];
6482
6482
  let n;
6483
6483
  for (n in e)
6484
- tr.call(e, n) && t.push([n, e[n]].join(": "));
6484
+ nr.call(e, n) && t.push([n, e[n]].join(": "));
6485
6485
  return t.join("; ");
6486
6486
  }
6487
6487
  function q0(e) {
@@ -6541,7 +6541,7 @@ function Q0(e) {
6541
6541
  for (; ; ) {
6542
6542
  let o = n[i];
6543
6543
  if (o === void 0) {
6544
- const l = ku(t, n[i - 1]);
6544
+ const l = Ou(t, n[i - 1]);
6545
6545
  o = l === -1 ? t.length + 1 : l + 1, n[i] = o;
6546
6546
  }
6547
6547
  if (o > a)
@@ -6557,7 +6557,7 @@ function Q0(e) {
6557
6557
  function u(a) {
6558
6558
  if (a && typeof a.line == "number" && typeof a.column == "number" && !Number.isNaN(a.line) && !Number.isNaN(a.column)) {
6559
6559
  for (; n.length < a.line; ) {
6560
- const o = n[n.length - 1], l = ku(t, o), c = l === -1 ? t.length + 1 : l + 1;
6560
+ const o = n[n.length - 1], l = Ou(t, o), c = l === -1 ? t.length + 1 : l + 1;
6561
6561
  if (o === c) break;
6562
6562
  n.push(c);
6563
6563
  }
@@ -6566,7 +6566,7 @@ function Q0(e) {
6566
6566
  }
6567
6567
  }
6568
6568
  }
6569
- function ku(e, t) {
6569
+ function Ou(e, t) {
6570
6570
  const n = e.indexOf("\r", t), r = e.indexOf(`
6571
6571
  `, t);
6572
6572
  return r === -1 ? n : n === -1 || n + 1 === r ? r : n < r ? n : r;
@@ -6581,7 +6581,7 @@ const Je = {
6581
6581
  }, ji = {}.hasOwnProperty, G0 = Object.prototype;
6582
6582
  function X0(e, t) {
6583
6583
  const n = t || {};
6584
- return kr(
6584
+ return Or(
6585
6585
  {
6586
6586
  file: n.file || void 0,
6587
6587
  location: !1,
@@ -6591,7 +6591,7 @@ function X0(e, t) {
6591
6591
  e
6592
6592
  );
6593
6593
  }
6594
- function kr(e, t) {
6594
+ function Or(e, t) {
6595
6595
  let n;
6596
6596
  switch (t.nodeName) {
6597
6597
  case "#comment": {
@@ -6646,7 +6646,7 @@ function Vi(e, t) {
6646
6646
  for (; ++n < t.length; ) {
6647
6647
  const u = (
6648
6648
  /** @type {RootContent} */
6649
- kr(e, t[n])
6649
+ Or(e, t[n])
6650
6650
  );
6651
6651
  r.push(u);
6652
6652
  }
@@ -6668,7 +6668,7 @@ function K0(e, t) {
6668
6668
  t
6669
6669
  ), l = o.sourceCodeLocation, c = l && l.startTag && ct(l.startTag), h = l && l.endTag && ct(l.endTag), f = (
6670
6670
  /** @type {Root} */
6671
- kr(e, o.content)
6671
+ Or(e, o.content)
6672
6672
  );
6673
6673
  c && h && e.file && (f.position = { start: c.end, end: h.start }), i.content = f;
6674
6674
  }
@@ -6689,7 +6689,7 @@ function $0(e, t, n) {
6689
6689
  let i;
6690
6690
  if (n.attrs)
6691
6691
  for (i in n.attrs)
6692
- ji.call(n.attrs, i) && (a[Sr(e.schema, i).property] = ct(
6692
+ ji.call(n.attrs, i) && (a[kr(e.schema, i).property] = ct(
6693
6693
  n.attrs[i]
6694
6694
  ));
6695
6695
  Me(n.startTag);
@@ -6700,18 +6700,18 @@ function $0(e, t, n) {
6700
6700
  return r;
6701
6701
  }
6702
6702
  function ct(e) {
6703
- const t = Ou({
6703
+ const t = yu({
6704
6704
  line: e.startLine,
6705
6705
  column: e.startCol,
6706
6706
  offset: e.startOffset
6707
- }), n = Ou({
6707
+ }), n = yu({
6708
6708
  line: e.endLine,
6709
6709
  column: e.endCol,
6710
6710
  offset: e.endOffset
6711
6711
  });
6712
6712
  return t || n ? { start: t, end: n } : void 0;
6713
6713
  }
6714
- function Ou(e) {
6714
+ function yu(e) {
6715
6715
  return e.line && e.column ? e : void 0;
6716
6716
  }
6717
6717
  const J0 = {}, Z0 = {}.hasOwnProperty, Wi = fi("type", { handlers: { root: tf, element: sf, text: uf, comment: af, doctype: rf } });
@@ -6726,11 +6726,11 @@ function tf(e, t) {
6726
6726
  mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
6727
6727
  childNodes: []
6728
6728
  };
6729
- return n.childNodes = Or(e.children, n, t), gt(e, n), n;
6729
+ return n.childNodes = yr(e.children, n, t), gt(e, n), n;
6730
6730
  }
6731
6731
  function nf(e, t) {
6732
6732
  const n = { nodeName: "#document-fragment", childNodes: [] };
6733
- return n.childNodes = Or(e.children, n, t), gt(e, n), n;
6733
+ return n.childNodes = yr(e.children, n, t), gt(e, n), n;
6734
6734
  }
6735
6735
  function rf(e) {
6736
6736
  const t = {
@@ -6784,10 +6784,10 @@ function sf(e, t) {
6784
6784
  childNodes: [],
6785
6785
  parentNode: null
6786
6786
  };
6787
- return o.childNodes = Or(e.children, o, r), gt(e, o), e.tagName === "template" && e.content && (o.content = nf(e.content, r)), o;
6787
+ return o.childNodes = yr(e.children, o, r), gt(e, o), e.tagName === "template" && e.content && (o.content = nf(e.content, r)), o;
6788
6788
  }
6789
6789
  function of(e, t, n) {
6790
- const r = Sr(e, t);
6790
+ const r = kr(e, t);
6791
6791
  if (n === !1 || n === null || n === void 0 || typeof n == "number" && Number.isNaN(n) || !n && r.boolean)
6792
6792
  return;
6793
6793
  Array.isArray(n) && (n = r.commaSeparated ? vs(n) : zs(n));
@@ -6801,7 +6801,7 @@ function of(e, t, n) {
6801
6801
  }
6802
6802
  return u;
6803
6803
  }
6804
- function Or(e, t, n) {
6804
+ function yr(e, t, n) {
6805
6805
  let r = -1;
6806
6806
  const u = [];
6807
6807
  if (e)
@@ -7040,14 +7040,14 @@ var qe;
7040
7040
  (function(e) {
7041
7041
  e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
7042
7042
  })(qe || (qe = {}));
7043
- function rr(e) {
7043
+ function ur(e) {
7044
7044
  return e >= se.ZERO && e <= se.NINE;
7045
7045
  }
7046
7046
  function bf(e) {
7047
7047
  return e >= se.UPPER_A && e <= se.UPPER_F || e >= se.LOWER_A && e <= se.LOWER_F;
7048
7048
  }
7049
7049
  function Af(e) {
7050
- return e >= se.UPPER_A && e <= se.UPPER_Z || e >= se.LOWER_A && e <= se.LOWER_Z || rr(e);
7050
+ return e >= se.UPPER_A && e <= se.UPPER_Z || e >= se.LOWER_A && e <= se.LOWER_Z || ur(e);
7051
7051
  }
7052
7052
  function _f(e) {
7053
7053
  return e === se.EQUALS || Af(e);
@@ -7124,7 +7124,7 @@ class Ji {
7124
7124
  const r = n;
7125
7125
  for (; n < t.length; ) {
7126
7126
  const u = t.charCodeAt(n);
7127
- if (rr(u) || bf(u))
7127
+ if (ur(u) || bf(u))
7128
7128
  n += 1;
7129
7129
  else
7130
7130
  return this.addToNumericResult(t, r, n, 16), this.emitNumericEntity(u, 3);
@@ -7144,7 +7144,7 @@ class Ji {
7144
7144
  const r = n;
7145
7145
  for (; n < t.length; ) {
7146
7146
  const u = t.charCodeAt(n);
7147
- if (rr(u))
7147
+ if (ur(u))
7148
7148
  n += 1;
7149
7149
  else
7150
7150
  return this.addToNumericResult(t, r, n, 10), this.emitNumericEntity(u, 2);
@@ -7530,7 +7530,7 @@ const R = s, xf = {
7530
7530
  [y.XLINK]: /* @__PURE__ */ new Set(),
7531
7531
  [y.XML]: /* @__PURE__ */ new Set(),
7532
7532
  [y.XMLNS]: /* @__PURE__ */ new Set()
7533
- }, ur = /* @__PURE__ */ new Set([R.H1, R.H2, R.H3, R.H4, R.H5, R.H6]);
7533
+ }, ir = /* @__PURE__ */ new Set([R.H1, R.H2, R.H3, R.H4, R.H5, R.H6]);
7534
7534
  _.STYLE, _.SCRIPT, _.XMP, _.IFRAME, _.NOEMBED, _.NOFRAMES, _.PLAINTEXT;
7535
7535
  var E;
7536
7536
  (function(e) {
@@ -7556,7 +7556,7 @@ function Sf(e) {
7556
7556
  function ve(e) {
7557
7557
  return Sf(e) || yt(e);
7558
7558
  }
7559
- function yu(e) {
7559
+ function Lu(e) {
7560
7560
  return ve(e) || Nf(e);
7561
7561
  }
7562
7562
  function $t(e) {
@@ -7565,7 +7565,7 @@ function $t(e) {
7565
7565
  function ea(e) {
7566
7566
  return e === m.SPACE || e === m.LINE_FEED || e === m.TABULATION || e === m.FORM_FEED;
7567
7567
  }
7568
- function Lu(e) {
7568
+ function Ru(e) {
7569
7569
  return ea(e) || e === m.SOLIDUS || e === m.GREATER_THAN_SIGN;
7570
7570
  }
7571
7571
  function kf(e) {
@@ -8448,7 +8448,7 @@ class Of {
8448
8448
  // Script data double escape start state
8449
8449
  //------------------------------------------------------------------
8450
8450
  _stateScriptDataDoubleEscapeStart(t) {
8451
- if (this.preprocessor.startsWith(me.SCRIPT, !1) && Lu(this.preprocessor.peek(me.SCRIPT.length))) {
8451
+ if (this.preprocessor.startsWith(me.SCRIPT, !1) && Ru(this.preprocessor.peek(me.SCRIPT.length))) {
8452
8452
  this._emitCodePoint(t);
8453
8453
  for (let n = 0; n < me.SCRIPT.length; n++)
8454
8454
  this._emitCodePoint(this._consume());
@@ -8539,7 +8539,7 @@ class Of {
8539
8539
  // Script data double escape end state
8540
8540
  //------------------------------------------------------------------
8541
8541
  _stateScriptDataDoubleEscapeEnd(t) {
8542
- if (this.preprocessor.startsWith(me.SCRIPT, !1) && Lu(this.preprocessor.peek(me.SCRIPT.length))) {
8542
+ if (this.preprocessor.startsWith(me.SCRIPT, !1) && Ru(this.preprocessor.peek(me.SCRIPT.length))) {
8543
8543
  this._emitCodePoint(t);
8544
8544
  for (let n = 0; n < me.SCRIPT.length; n++)
8545
8545
  this._emitCodePoint(this._consume());
@@ -9453,15 +9453,15 @@ class Of {
9453
9453
  this.active = !1, this.preprocessor.pos = this.preprocessor.html.length - 1, this.consumedAfterSnapshot = 0, this.preprocessor.endOfChunkHit = !0;
9454
9454
  return;
9455
9455
  }
9456
- t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(m.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && yu(this.preprocessor.peek(1)) ? E.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
9456
+ t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(m.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && Lu(this.preprocessor.peek(1)) ? E.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
9457
9457
  }
9458
9458
  // Ambiguos ampersand state
9459
9459
  //------------------------------------------------------------------
9460
9460
  _stateAmbiguousAmpersand(t) {
9461
- yu(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === m.SEMICOLON && this._err(C.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
9461
+ Lu(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === m.SEMICOLON && this._err(C.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
9462
9462
  }
9463
9463
  }
9464
- const ta = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P, s.RB, s.RP, s.RT, s.RTC]), Ru = /* @__PURE__ */ new Set([
9464
+ const ta = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P, s.RB, s.RP, s.RT, s.RTC]), Du = /* @__PURE__ */ new Set([
9465
9465
  ...ta,
9466
9466
  s.CAPTION,
9467
9467
  s.COLGROUP,
@@ -9481,7 +9481,7 @@ const ta = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P,
9481
9481
  s.TD,
9482
9482
  s.TEMPLATE,
9483
9483
  s.TH
9484
- ]), yf = /* @__PURE__ */ new Set([...dn, s.OL, s.UL]), Lf = /* @__PURE__ */ new Set([...dn, s.BUTTON]), Du = /* @__PURE__ */ new Set([s.ANNOTATION_XML, s.MI, s.MN, s.MO, s.MS, s.MTEXT]), Pu = /* @__PURE__ */ new Set([s.DESC, s.FOREIGN_OBJECT, s.TITLE]), Rf = /* @__PURE__ */ new Set([s.TR, s.TEMPLATE, s.HTML]), Df = /* @__PURE__ */ new Set([s.TBODY, s.TFOOT, s.THEAD, s.TEMPLATE, s.HTML]), Pf = /* @__PURE__ */ new Set([s.TABLE, s.TEMPLATE, s.HTML]), wf = /* @__PURE__ */ new Set([s.TD, s.TH]);
9484
+ ]), yf = /* @__PURE__ */ new Set([...dn, s.OL, s.UL]), Lf = /* @__PURE__ */ new Set([...dn, s.BUTTON]), Pu = /* @__PURE__ */ new Set([s.ANNOTATION_XML, s.MI, s.MN, s.MO, s.MS, s.MTEXT]), wu = /* @__PURE__ */ new Set([s.DESC, s.FOREIGN_OBJECT, s.TITLE]), Rf = /* @__PURE__ */ new Set([s.TR, s.TEMPLATE, s.HTML]), Df = /* @__PURE__ */ new Set([s.TBODY, s.TFOOT, s.THEAD, s.TEMPLATE, s.HTML]), Pf = /* @__PURE__ */ new Set([s.TABLE, s.TEMPLATE, s.HTML]), wf = /* @__PURE__ */ new Set([s.TD, s.TH]);
9485
9485
  class Mf {
9486
9486
  get currentTmplContentOrNode() {
9487
9487
  return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
@@ -9538,7 +9538,7 @@ class Mf {
9538
9538
  this.shortenToLength(r < 0 ? 0 : r);
9539
9539
  }
9540
9540
  popUntilNumberedHeaderPopped() {
9541
- this.popUntilPopped(ur, y.HTML);
9541
+ this.popUntilPopped(ir, y.HTML);
9542
9542
  }
9543
9543
  popUntilTableCellPopped() {
9544
9544
  this.popUntilPopped(wf, y.HTML);
@@ -9596,12 +9596,12 @@ class Mf {
9596
9596
  break;
9597
9597
  }
9598
9598
  case y.SVG: {
9599
- if (Pu.has(u))
9599
+ if (wu.has(u))
9600
9600
  return !1;
9601
9601
  break;
9602
9602
  }
9603
9603
  case y.MATHML: {
9604
- if (Du.has(u))
9604
+ if (Pu.has(u))
9605
9605
  return !1;
9606
9606
  break;
9607
9607
  }
@@ -9623,19 +9623,19 @@ class Mf {
9623
9623
  const n = this.tagIDs[t];
9624
9624
  switch (this.treeAdapter.getNamespaceURI(this.items[t])) {
9625
9625
  case y.HTML: {
9626
- if (ur.has(n))
9626
+ if (ir.has(n))
9627
9627
  return !0;
9628
9628
  if (dn.has(n))
9629
9629
  return !1;
9630
9630
  break;
9631
9631
  }
9632
9632
  case y.SVG: {
9633
- if (Pu.has(n))
9633
+ if (wu.has(n))
9634
9634
  return !1;
9635
9635
  break;
9636
9636
  }
9637
9637
  case y.MATHML: {
9638
- if (Du.has(n))
9638
+ if (Pu.has(n))
9639
9639
  return !1;
9640
9640
  break;
9641
9641
  }
@@ -9689,11 +9689,11 @@ class Mf {
9689
9689
  this.pop();
9690
9690
  }
9691
9691
  generateImpliedEndTagsThoroughly() {
9692
- for (; Ru.has(this.currentTagId); )
9692
+ for (; Du.has(this.currentTagId); )
9693
9693
  this.pop();
9694
9694
  }
9695
9695
  generateImpliedEndTagsWithExclusion(t) {
9696
- for (; this.currentTagId !== t && Ru.has(this.currentTagId); )
9696
+ for (; this.currentTagId !== t && Du.has(this.currentTagId); )
9697
9697
  this.pop();
9698
9698
  }
9699
9699
  }
@@ -9702,7 +9702,7 @@ var ke;
9702
9702
  (function(e) {
9703
9703
  e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
9704
9704
  })(ke || (ke = {}));
9705
- const wu = { type: ke.Marker };
9705
+ const Mu = { type: ke.Marker };
9706
9706
  class Bf {
9707
9707
  constructor(t) {
9708
9708
  this.treeAdapter = t, this.entries = [], this.bookmark = null;
@@ -9739,7 +9739,7 @@ class Bf {
9739
9739
  }
9740
9740
  //Mutations
9741
9741
  insertMarker() {
9742
- this.entries.unshift(wu);
9742
+ this.entries.unshift(Mu);
9743
9743
  }
9744
9744
  pushElement(t, n) {
9745
9745
  this._ensureNoahArkCondition(t), this.entries.unshift({
@@ -9766,7 +9766,7 @@ class Bf {
9766
9766
  * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker
9767
9767
  */
9768
9768
  clearToLastMarker() {
9769
- const t = this.entries.indexOf(wu);
9769
+ const t = this.entries.indexOf(Mu);
9770
9770
  t >= 0 ? this.entries.splice(0, t + 1) : this.entries.length = 0;
9771
9771
  }
9772
9772
  //Search
@@ -10004,7 +10004,7 @@ const ze = {
10004
10004
  "-//w3c//dtd html 4.01 frameset//",
10005
10005
  "-//w3c//dtd html 4.01 transitional//"
10006
10006
  ];
10007
- function Mu(e, t) {
10007
+ function Bu(e, t) {
10008
10008
  return t.some((n) => e.startsWith(n));
10009
10009
  }
10010
10010
  function Yf(e) {
@@ -10021,14 +10021,14 @@ function qf(e) {
10021
10021
  if (n = n.toLowerCase(), vf.has(n))
10022
10022
  return be.QUIRKS;
10023
10023
  let r = t === null ? Uf : ra;
10024
- if (Mu(n, r))
10024
+ if (Bu(n, r))
10025
10025
  return be.QUIRKS;
10026
- if (r = t === null ? ua : zf, Mu(n, r))
10026
+ if (r = t === null ? ua : zf, Bu(n, r))
10027
10027
  return be.LIMITED_QUIRKS;
10028
10028
  }
10029
10029
  return be.NO_QUIRKS;
10030
10030
  }
10031
- const Bu = {
10031
+ const Fu = {
10032
10032
  TEXT_HTML: "text/html",
10033
10033
  APPLICATION_XML: "application/xhtml+xml"
10034
10034
  }, jf = "definitionurl", Vf = "definitionURL", Wf = new Map([
@@ -10202,7 +10202,7 @@ function aa(e) {
10202
10202
  n != null && (e.attrs[t].name = n);
10203
10203
  }
10204
10204
  }
10205
- function yr(e) {
10205
+ function Lr(e) {
10206
10206
  for (let t = 0; t < e.attrs.length; t++) {
10207
10207
  const n = Qf.get(e.attrs[t].name);
10208
10208
  n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace);
@@ -10220,7 +10220,7 @@ function Zf(e, t, n) {
10220
10220
  for (let r = 0; r < n.length; r++)
10221
10221
  if (n[r].name === Ze.ENCODING) {
10222
10222
  const u = n[r].value.toLowerCase();
10223
- return u === Bu.TEXT_HTML || u === Bu.APPLICATION_XML;
10223
+ return u === Fu.TEXT_HTML || u === Fu.APPLICATION_XML;
10224
10224
  }
10225
10225
  }
10226
10226
  return t === y.SVG && (e === s.FOREIGN_OBJECT || e === s.DESC || e === s.TITLE);
@@ -10240,16 +10240,16 @@ const uh = {
10240
10240
  endLine: -1,
10241
10241
  endCol: -1,
10242
10242
  endOffset: -1
10243
- }, sa = /* @__PURE__ */ new Set([s.TABLE, s.TBODY, s.TFOOT, s.THEAD, s.TR]), Fu = {
10243
+ }, sa = /* @__PURE__ */ new Set([s.TABLE, s.TBODY, s.TFOOT, s.THEAD, s.TR]), Hu = {
10244
10244
  scriptingEnabled: !0,
10245
10245
  sourceCodeLocationInfo: !1,
10246
10246
  treeAdapter: ze,
10247
10247
  onParseError: null
10248
10248
  };
10249
- class Hu {
10249
+ class Uu {
10250
10250
  constructor(t, n, r = null, u = null) {
10251
10251
  this.fragmentContext = r, this.scriptHandler = u, this.currentToken = null, this.stopped = !1, this.insertionMode = T.INITIAL, this.originalInsertionMode = T.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
10252
- ...Fu,
10252
+ ...Hu,
10253
10253
  ...t
10254
10254
  }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new Of(this.options, this), this.activeFormattingElements = new Bf(this.treeAdapter), this.fragmentContextID = r ? bt(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new Mf(this.document, this.treeAdapter, this);
10255
10255
  }
@@ -10260,7 +10260,7 @@ class Hu {
10260
10260
  }
10261
10261
  static getFragmentParser(t, n) {
10262
10262
  const r = {
10263
- ...Fu,
10263
+ ...Hu,
10264
10264
  ...n
10265
10265
  };
10266
10266
  t ?? (t = r.treeAdapter.createElement(_.TEMPLATE, y.HTML, []));
@@ -10770,7 +10770,7 @@ class Hu {
10770
10770
  /** @internal */
10771
10771
  onComment(t) {
10772
10772
  if (this.skipNextNewLine = !1, this.currentNotInHTML) {
10773
- ir(this, t);
10773
+ ar(this, t);
10774
10774
  return;
10775
10775
  }
10776
10776
  switch (this.insertionMode) {
@@ -10792,7 +10792,7 @@ class Hu {
10792
10792
  case T.IN_TEMPLATE:
10793
10793
  case T.IN_FRAMESET:
10794
10794
  case T.AFTER_FRAMESET: {
10795
- ir(this, t);
10795
+ ar(this, t);
10796
10796
  break;
10797
10797
  }
10798
10798
  case T.IN_TABLE_TEXT: {
@@ -10892,7 +10892,7 @@ class Hu {
10892
10892
  break;
10893
10893
  }
10894
10894
  case T.IN_COLUMN_GROUP: {
10895
- Dr(this, t);
10895
+ Pr(this, t);
10896
10896
  break;
10897
10897
  }
10898
10898
  case T.IN_TABLE_BODY: {
@@ -10997,7 +10997,7 @@ class Hu {
10997
10997
  break;
10998
10998
  }
10999
10999
  case T.IN_TABLE_BODY: {
11000
- ar(this, t);
11000
+ sr(this, t);
11001
11001
  break;
11002
11002
  }
11003
11003
  case T.IN_ROW: {
@@ -11094,7 +11094,7 @@ class Hu {
11094
11094
  case T.AFTER_FRAMESET:
11095
11095
  case T.AFTER_AFTER_BODY:
11096
11096
  case T.AFTER_AFTER_FRAMESET: {
11097
- Rr(this, t);
11097
+ Dr(this, t);
11098
11098
  break;
11099
11099
  }
11100
11100
  }
@@ -11186,7 +11186,7 @@ function ch(e, t, n) {
11186
11186
  const r = e.treeAdapter.getNamespaceURI(n.element), { token: u } = n, a = e.treeAdapter.createElement(u.tagName, r, u.attrs);
11187
11187
  e._adoptNodes(t, a), e.treeAdapter.appendChild(t, a), e.activeFormattingElements.insertElementAfterBookmark(a, u), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, a, u.tagID);
11188
11188
  }
11189
- function Lr(e, t) {
11189
+ function Rr(e, t) {
11190
11190
  for (let n = 0; n < nh; n++) {
11191
11191
  const r = ih(e, t);
11192
11192
  if (!r)
@@ -11199,7 +11199,7 @@ function Lr(e, t) {
11199
11199
  e.treeAdapter.detachNode(a), i && lh(e, i, a), ch(e, u, r);
11200
11200
  }
11201
11201
  }
11202
- function ir(e, t) {
11202
+ function ar(e, t) {
11203
11203
  e._appendCommentNode(t, e.openElements.currentTmplContentOrNode);
11204
11204
  }
11205
11205
  function fh(e, t) {
@@ -11208,7 +11208,7 @@ function fh(e, t) {
11208
11208
  function hh(e, t) {
11209
11209
  e._appendCommentNode(t, e.document);
11210
11210
  }
11211
- function Rr(e, t) {
11211
+ function Dr(e, t) {
11212
11212
  if (e.stopped = !0, t.location) {
11213
11213
  const n = e.fragmentContext ? 0 : 2;
11214
11214
  for (let r = e.openElements.stackTop; r >= n; r--)
@@ -11437,7 +11437,7 @@ function xn(e, t) {
11437
11437
  break;
11438
11438
  }
11439
11439
  case q.COMMENT: {
11440
- ir(e, t);
11440
+ ar(e, t);
11441
11441
  break;
11442
11442
  }
11443
11443
  case q.START_TAG: {
@@ -11475,7 +11475,7 @@ function Sh(e, t) {
11475
11475
  e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._insertElement(t, y.HTML);
11476
11476
  }
11477
11477
  function kh(e, t) {
11478
- e.openElements.hasInButtonScope(s.P) && e._closePElement(), ur.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, y.HTML);
11478
+ e.openElements.hasInButtonScope(s.P) && e._closePElement(), ir.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, y.HTML);
11479
11479
  }
11480
11480
  function Oh(e, t) {
11481
11481
  e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._insertElement(t, y.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
@@ -11506,13 +11506,13 @@ function Dh(e, t) {
11506
11506
  }
11507
11507
  function Ph(e, t) {
11508
11508
  const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);
11509
- n && (Lr(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, y.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
11509
+ n && (Rr(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, y.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
11510
11510
  }
11511
11511
  function wh(e, t) {
11512
11512
  e._reconstructActiveFormattingElements(), e._insertElement(t, y.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
11513
11513
  }
11514
11514
  function Mh(e, t) {
11515
- e._reconstructActiveFormattingElements(), e.openElements.hasInScope(s.NOBR) && (Lr(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, y.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
11515
+ e._reconstructActiveFormattingElements(), e.openElements.hasInScope(s.NOBR) && (Rr(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, y.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
11516
11516
  }
11517
11517
  function Bh(e, t) {
11518
11518
  e._reconstructActiveFormattingElements(), e._insertElement(t, y.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
@@ -11548,7 +11548,7 @@ function qh(e, t) {
11548
11548
  function jh(e, t) {
11549
11549
  e.framesetOk = !1, e._switchToTextParsing(t, re.RAWTEXT);
11550
11550
  }
11551
- function Uu(e, t) {
11551
+ function vu(e, t) {
11552
11552
  e._switchToTextParsing(t, re.RAWTEXT);
11553
11553
  }
11554
11554
  function Vh(e, t) {
@@ -11564,12 +11564,12 @@ function Gh(e, t) {
11564
11564
  e.openElements.hasInScope(s.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(s.RTC), e._insertElement(t, y.HTML);
11565
11565
  }
11566
11566
  function Xh(e, t) {
11567
- e._reconstructActiveFormattingElements(), ia(t), yr(t), t.selfClosing ? e._appendElement(t, y.MATHML) : e._insertElement(t, y.MATHML), t.ackSelfClosing = !0;
11567
+ e._reconstructActiveFormattingElements(), ia(t), Lr(t), t.selfClosing ? e._appendElement(t, y.MATHML) : e._insertElement(t, y.MATHML), t.ackSelfClosing = !0;
11568
11568
  }
11569
11569
  function Kh(e, t) {
11570
- e._reconstructActiveFormattingElements(), aa(t), yr(t), t.selfClosing ? e._appendElement(t, y.SVG) : e._insertElement(t, y.SVG), t.ackSelfClosing = !0;
11570
+ e._reconstructActiveFormattingElements(), aa(t), Lr(t), t.selfClosing ? e._appendElement(t, y.SVG) : e._insertElement(t, y.SVG), t.ackSelfClosing = !0;
11571
11571
  }
11572
- function vu(e, t) {
11572
+ function zu(e, t) {
11573
11573
  e._reconstructActiveFormattingElements(), e._insertElement(t, y.HTML);
11574
11574
  }
11575
11575
  function he(e, t) {
@@ -11747,7 +11747,7 @@ function he(e, t) {
11747
11747
  }
11748
11748
  case s.NOEMBED:
11749
11749
  case s.NOFRAMES: {
11750
- Uu(e, t);
11750
+ vu(e, t);
11751
11751
  break;
11752
11752
  }
11753
11753
  case s.FRAMESET: {
@@ -11759,7 +11759,7 @@ function he(e, t) {
11759
11759
  break;
11760
11760
  }
11761
11761
  case s.NOSCRIPT: {
11762
- e.options.scriptingEnabled ? Uu(e, t) : vu(e, t);
11762
+ e.options.scriptingEnabled ? vu(e, t) : zu(e, t);
11763
11763
  break;
11764
11764
  }
11765
11765
  case s.PLAINTEXT: {
@@ -11779,7 +11779,7 @@ function he(e, t) {
11779
11779
  case s.COLGROUP:
11780
11780
  break;
11781
11781
  default:
11782
- vu(e, t);
11782
+ zu(e, t);
11783
11783
  }
11784
11784
  }
11785
11785
  function $h(e, t) {
@@ -11847,7 +11847,7 @@ function Nn(e, t) {
11847
11847
  case s.SMALL:
11848
11848
  case s.STRIKE:
11849
11849
  case s.STRONG: {
11850
- Lr(e, t);
11850
+ Rr(e, t);
11851
11851
  break;
11852
11852
  }
11853
11853
  case s.P: {
@@ -11933,7 +11933,7 @@ function Nn(e, t) {
11933
11933
  }
11934
11934
  }
11935
11935
  function da(e, t) {
11936
- e.tmplInsertionModeStack.length > 0 ? Aa(e, t) : Rr(e, t);
11936
+ e.tmplInsertionModeStack.length > 0 ? Aa(e, t) : Dr(e, t);
11937
11937
  }
11938
11938
  function sd(e, t) {
11939
11939
  var n;
@@ -11964,7 +11964,7 @@ function cd(e, t) {
11964
11964
  e.openElements.clearBackToTableContext(), e._insertElement(t, y.HTML), e.insertionMode = T.IN_COLUMN_GROUP;
11965
11965
  }
11966
11966
  function fd(e, t) {
11967
- e.openElements.clearBackToTableContext(), e._insertFakeElement(_.COLGROUP, s.COLGROUP), e.insertionMode = T.IN_COLUMN_GROUP, Dr(e, t);
11967
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(_.COLGROUP, s.COLGROUP), e.insertionMode = T.IN_COLUMN_GROUP, Pr(e, t);
11968
11968
  }
11969
11969
  function hd(e, t) {
11970
11970
  e.openElements.clearBackToTableContext(), e._insertElement(t, y.HTML), e.insertionMode = T.IN_TABLE_BODY;
@@ -12103,7 +12103,7 @@ function gd(e, t) {
12103
12103
  Nn(e, t);
12104
12104
  }
12105
12105
  }
12106
- function Dr(e, t) {
12106
+ function Pr(e, t) {
12107
12107
  switch (t.tagID) {
12108
12108
  case s.HTML: {
12109
12109
  he(e, t);
@@ -12164,7 +12164,7 @@ function Sn(e, t) {
12164
12164
  mt(e, t);
12165
12165
  }
12166
12166
  }
12167
- function ar(e, t) {
12167
+ function sr(e, t) {
12168
12168
  const n = t.tagID;
12169
12169
  switch (t.tagID) {
12170
12170
  case s.TBODY:
@@ -12218,13 +12218,13 @@ function Ta(e, t) {
12218
12218
  break;
12219
12219
  }
12220
12220
  case s.TABLE: {
12221
- e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE_BODY, ar(e, t));
12221
+ e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE_BODY, sr(e, t));
12222
12222
  break;
12223
12223
  }
12224
12224
  case s.TBODY:
12225
12225
  case s.TFOOT:
12226
12226
  case s.THEAD: {
12227
- (e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(s.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE_BODY, ar(e, t));
12227
+ (e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(s.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE_BODY, sr(e, t));
12228
12228
  break;
12229
12229
  }
12230
12230
  case s.BODY:
@@ -12355,7 +12355,7 @@ function xd(e, t) {
12355
12355
  break;
12356
12356
  }
12357
12357
  case s.COL: {
12358
- e.tmplInsertionModeStack[0] = T.IN_COLUMN_GROUP, e.insertionMode = T.IN_COLUMN_GROUP, Dr(e, t);
12358
+ e.tmplInsertionModeStack[0] = T.IN_COLUMN_GROUP, e.insertionMode = T.IN_COLUMN_GROUP, Pr(e, t);
12359
12359
  break;
12360
12360
  }
12361
12361
  case s.TR: {
@@ -12375,7 +12375,7 @@ function Nd(e, t) {
12375
12375
  t.tagID === s.TEMPLATE && rt(e, t);
12376
12376
  }
12377
12377
  function Aa(e, t) {
12378
- e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Rr(e, t);
12378
+ e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Dr(e, t);
12379
12379
  }
12380
12380
  function Sd(e, t) {
12381
12381
  t.tagID === s.HTML ? he(e, t) : pn(e, t);
@@ -12465,7 +12465,7 @@ function Md(e, t) {
12465
12465
  Ca(e), e._startTagOutsideForeignContent(t);
12466
12466
  else {
12467
12467
  const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
12468
- r === y.MATHML ? ia(t) : r === y.SVG && ($f(t), aa(t)), yr(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
12468
+ r === y.MATHML ? ia(t) : r === y.SVG && ($f(t), aa(t)), Lr(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
12469
12469
  }
12470
12470
  }
12471
12471
  function Bd(e, t) {
@@ -12493,13 +12493,13 @@ const Fd = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title
12493
12493
  "mdxJsxTextElement",
12494
12494
  "mdxTextExpression",
12495
12495
  "mdxjsEsm"
12496
- ]), zu = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
12496
+ ]), Yu = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
12497
12497
  function Ia(e, t) {
12498
12498
  const n = Gd(e), r = fi("type", {
12499
12499
  handlers: { root: Ud, element: vd, text: zd, comment: Na, doctype: Yd, raw: jd },
12500
12500
  unknown: Vd
12501
12501
  }), u = {
12502
- parser: n ? new Hu(zu) : Hu.getFragmentParser(void 0, zu),
12502
+ parser: n ? new Uu(Yu) : Uu.getFragmentParser(void 0, Yu),
12503
12503
  handle(o) {
12504
12504
  r(o, u);
12505
12505
  },
@@ -12644,7 +12644,7 @@ function Wd(e, t) {
12644
12644
  function Qd(e, t) {
12645
12645
  const n = e.tagName.toLowerCase();
12646
12646
  if (!t.parser.tokenizer.inForeignNode && Ys.includes(n) || t.parser.tokenizer.state === re.PLAINTEXT) return;
12647
- At(t, fr(e));
12647
+ At(t, hr(e));
12648
12648
  const r = {
12649
12649
  type: q.END_TAG,
12650
12650
  tagName: n,
@@ -12669,7 +12669,7 @@ function Vt(e) {
12669
12669
  line: void 0,
12670
12670
  column: void 0,
12671
12671
  offset: void 0
12672
- }, n = fr(e) || {
12672
+ }, n = hr(e) || {
12673
12673
  line: void 0,
12674
12674
  column: void 0,
12675
12675
  offset: void 0
@@ -12684,7 +12684,7 @@ function Vt(e) {
12684
12684
  };
12685
12685
  }
12686
12686
  function Xd(e) {
12687
- return "children" in e ? Cu({ ...e, children: [] }) : Cu(e);
12687
+ return "children" in e ? Iu({ ...e, children: [] }) : Iu(e);
12688
12688
  }
12689
12689
  function Kd(e) {
12690
12690
  return function(t, n) {
@@ -12874,8 +12874,8 @@ function dm(e) {
12874
12874
  return [e, void 0];
12875
12875
  e = e.slice(0, t.index);
12876
12876
  let n = t[0], r = n.indexOf(")");
12877
- const u = Vr(e, "(");
12878
- let a = Vr(e, ")");
12877
+ const u = Wr(e, "(");
12878
+ let a = Wr(e, ")");
12879
12879
  for (; r !== -1 && u > a; )
12880
12880
  e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), a++;
12881
12881
  return [e, n];
@@ -13045,9 +13045,9 @@ function Pm(e, t) {
13045
13045
  let f = -1;
13046
13046
  if (typeof r == "object" && "length" in r)
13047
13047
  for (; ++f < c; )
13048
- a[f] = Yu(r[f]);
13048
+ a[f] = qu(r[f]);
13049
13049
  else {
13050
- const I = Yu(r);
13050
+ const I = qu(r);
13051
13051
  for (; ++f < c; )
13052
13052
  a[f] = I;
13053
13053
  }
@@ -13091,7 +13091,7 @@ function Pm(e, t) {
13091
13091
  function wm(e) {
13092
13092
  return e == null ? "" : String(e);
13093
13093
  }
13094
- function Yu(e) {
13094
+ function qu(e) {
13095
13095
  const t = typeof e == "string" ? e.codePointAt(0) : 0;
13096
13096
  return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
13097
13097
  }
@@ -13108,9 +13108,9 @@ function Bm(e, t, n) {
13108
13108
  return ">" + (n ? "" : " ") + e;
13109
13109
  }
13110
13110
  function Fm(e, t) {
13111
- return qu(e, t.inConstruct, !0) && !qu(e, t.notInConstruct, !1);
13111
+ return ju(e, t.inConstruct, !0) && !ju(e, t.notInConstruct, !1);
13112
13112
  }
13113
- function qu(e, t, n) {
13113
+ function ju(e, t, n) {
13114
13114
  if (typeof t == "string" && (t = [t]), !t || t.length === 0)
13115
13115
  return n;
13116
13116
  let r = -1;
@@ -13119,7 +13119,7 @@ function qu(e, t, n) {
13119
13119
  return !0;
13120
13120
  return !1;
13121
13121
  }
13122
- function ju(e, t, n, r) {
13122
+ function Vu(e, t, n, r) {
13123
13123
  let u = -1;
13124
13124
  for (; ++u < n.unsafe.length; )
13125
13125
  if (n.unsafe[u].character === `
@@ -13189,7 +13189,7 @@ function zm(e, t, n, r) {
13189
13189
  function Ym(e, t, n) {
13190
13190
  return (n ? "" : " ") + e;
13191
13191
  }
13192
- function Pr(e) {
13192
+ function wr(e) {
13193
13193
  const t = e.options.quote || '"';
13194
13194
  if (t !== '"' && t !== "'")
13195
13195
  throw new Error(
@@ -13198,7 +13198,7 @@ function Pr(e) {
13198
13198
  return t;
13199
13199
  }
13200
13200
  function qm(e, t, n, r) {
13201
- const u = Pr(n), a = u === '"' ? "Quote" : "Apostrophe", i = n.enter("definition");
13201
+ const u = wr(n), a = u === '"' ? "Quote" : "Apostrophe", i = n.enter("definition");
13202
13202
  let o = n.enter("label");
13203
13203
  const l = n.createTracker(r);
13204
13204
  let c = l.move("[");
@@ -13303,7 +13303,7 @@ function Wm(e, t) {
13303
13303
  return gn(e, function(r) {
13304
13304
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
13305
13305
  return n = !0, js;
13306
- }), !!((!e.depth || e.depth < 3) && hr(e) && (t.options.setext || n));
13306
+ }), !!((!e.depth || e.depth < 3) && dr(e) && (t.options.setext || n));
13307
13307
  }
13308
13308
  function Qm(e, t, n, r) {
13309
13309
  const u = Math.max(Math.min(6, e.depth || 1), 1), a = n.createTracker(r);
@@ -13343,7 +13343,7 @@ function Gm() {
13343
13343
  }
13344
13344
  Pa.peek = Xm;
13345
13345
  function Pa(e, t, n, r) {
13346
- const u = Pr(n), a = u === '"' ? "Quote" : "Apostrophe", i = n.enter("image");
13346
+ const u = wr(n), a = u === '"' ? "Quote" : "Apostrophe", i = n.enter("image");
13347
13347
  let o = n.enter("label");
13348
13348
  const l = n.createTracker(r);
13349
13349
  let c = l.move("![");
@@ -13414,7 +13414,7 @@ function $m() {
13414
13414
  return "`";
13415
13415
  }
13416
13416
  function Ba(e, t) {
13417
- const n = hr(e);
13417
+ const n = dr(e);
13418
13418
  return !!(!t.options.resourceLink && // If there’s a url…
13419
13419
  e.url && // And there’s a no title…
13420
13420
  !e.title && // And the content of `node` is a single text node…
@@ -13426,7 +13426,7 @@ function Ba(e, t) {
13426
13426
  }
13427
13427
  Fa.peek = Jm;
13428
13428
  function Fa(e, t, n, r) {
13429
- const u = Pr(n), a = u === '"' ? "Quote" : "Apostrophe", i = n.createTracker(r);
13429
+ const u = wr(n), a = u === '"' ? "Quote" : "Apostrophe", i = n.createTracker(r);
13430
13430
  let o, l;
13431
13431
  if (Ba(e, n)) {
13432
13432
  const h = n.stack;
@@ -13493,7 +13493,7 @@ function Ha(e, t, n, r) {
13493
13493
  function Zm() {
13494
13494
  return "[";
13495
13495
  }
13496
- function wr(e) {
13496
+ function Mr(e) {
13497
13497
  const t = e.options.bullet || "*";
13498
13498
  if (t !== "*" && t !== "+" && t !== "-")
13499
13499
  throw new Error(
@@ -13502,7 +13502,7 @@ function wr(e) {
13502
13502
  return t;
13503
13503
  }
13504
13504
  function e1(e) {
13505
- const t = wr(e), n = e.options.bulletOther;
13505
+ const t = Mr(e), n = e.options.bulletOther;
13506
13506
  if (!n)
13507
13507
  return t === "*" ? "-" : "*";
13508
13508
  if (n !== "*" && n !== "+" && n !== "-")
@@ -13533,7 +13533,7 @@ function Ua(e) {
13533
13533
  }
13534
13534
  function n1(e, t, n, r) {
13535
13535
  const u = n.enter("list"), a = n.bulletCurrent;
13536
- let i = e.ordered ? t1(n) : wr(n);
13536
+ let i = e.ordered ? t1(n) : Mr(n);
13537
13537
  const o = e.ordered ? i === "." ? ")" : "." : e1(n);
13538
13538
  let l = t && n.bulletLastUsed ? i === n.bulletLastUsed : !1;
13539
13539
  if (!e.ordered) {
@@ -13569,7 +13569,7 @@ function r1(e) {
13569
13569
  }
13570
13570
  function u1(e, t, n, r) {
13571
13571
  const u = r1(n);
13572
- let a = n.bulletCurrent || wr(n);
13572
+ let a = n.bulletCurrent || Mr(n);
13573
13573
  t && t.type === "list" && t.ordered && (a = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + a);
13574
13574
  let i = a.length + 1;
13575
13575
  (u === "tab" || u === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (i = Math.ceil(i / 4) * 4);
@@ -13671,11 +13671,11 @@ function h1(e, t, n) {
13671
13671
  }
13672
13672
  const za = {
13673
13673
  blockquote: Mm,
13674
- break: ju,
13674
+ break: Vu,
13675
13675
  code: zm,
13676
13676
  definition: qm,
13677
13677
  emphasis: Ra,
13678
- hardBreak: ju,
13678
+ hardBreak: Vu,
13679
13679
  heading: Qm,
13680
13680
  html: Da,
13681
13681
  image: Pa,
@@ -13695,8 +13695,8 @@ function d1() {
13695
13695
  return {
13696
13696
  enter: {
13697
13697
  table: m1,
13698
- tableData: Vu,
13699
- tableHeader: Vu,
13698
+ tableData: Wu,
13699
+ tableHeader: Wu,
13700
13700
  tableRow: E1
13701
13701
  },
13702
13702
  exit: {
@@ -13730,7 +13730,7 @@ function E1(e) {
13730
13730
  function Gn(e) {
13731
13731
  this.exit(e);
13732
13732
  }
13733
- function Vu(e) {
13733
+ function Wu(e) {
13734
13734
  this.enter({ type: "tableCell", children: [] }, e);
13735
13735
  }
13736
13736
  function T1(e) {
@@ -13822,8 +13822,8 @@ function b1(e) {
13822
13822
  function A1() {
13823
13823
  return {
13824
13824
  exit: {
13825
- taskListCheckValueChecked: Wu,
13826
- taskListCheckValueUnchecked: Wu,
13825
+ taskListCheckValueChecked: Qu,
13826
+ taskListCheckValueUnchecked: Qu,
13827
13827
  paragraph: C1
13828
13828
  }
13829
13829
  };
@@ -13834,7 +13834,7 @@ function _1() {
13834
13834
  handlers: { listItem: I1 }
13835
13835
  };
13836
13836
  }
13837
- function Wu(e) {
13837
+ function Qu(e) {
13838
13838
  const t = this.stack[this.stack.length - 2];
13839
13839
  Me(t.type === "listItem"), t.checked = e.type === "taskListCheckValueChecked";
13840
13840
  }
@@ -13900,7 +13900,7 @@ function an(e, t, n, r) {
13900
13900
  for (n && e.splice(t, n); a < r.length; )
13901
13901
  i = r.slice(a, a + 1e4), i.unshift(t, 0), e.splice(...i), a += 1e4, t += 1e4;
13902
13902
  }
13903
- const Qu = {}.hasOwnProperty;
13903
+ const Gu = {}.hasOwnProperty;
13904
13904
  function S1(e) {
13905
13905
  const t = {};
13906
13906
  let n = -1;
@@ -13911,11 +13911,11 @@ function S1(e) {
13911
13911
  function k1(e, t) {
13912
13912
  let n;
13913
13913
  for (n in t) {
13914
- const u = (Qu.call(e, n) ? e[n] : void 0) || (e[n] = {}), a = t[n];
13914
+ const u = (Gu.call(e, n) ? e[n] : void 0) || (e[n] = {}), a = t[n];
13915
13915
  let i;
13916
13916
  if (a)
13917
13917
  for (i in a) {
13918
- Qu.call(u, i) || (u[i] = []);
13918
+ Gu.call(u, i) || (u[i] = []);
13919
13919
  const o = a[i];
13920
13920
  O1(
13921
13921
  // @ts-expect-error Looks like a list.
@@ -13981,10 +13981,10 @@ function D1(e, t, n) {
13981
13981
  let u, a;
13982
13982
  return i;
13983
13983
  function i(f) {
13984
- return !sr(f) || !Xa.call(r, r.previous) || Mr(r.events) ? n(f) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), o(f));
13984
+ return !or(f) || !Xa.call(r, r.previous) || Br(r.events) ? n(f) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), o(f));
13985
13985
  }
13986
13986
  function o(f) {
13987
- return sr(f) ? (e.consume(f), o) : f === 64 ? (e.consume(f), l) : n(f);
13987
+ return or(f) ? (e.consume(f), o) : f === 64 ? (e.consume(f), l) : n(f);
13988
13988
  }
13989
13989
  function l(f) {
13990
13990
  return f === 46 ? e.check(L1, h, c)(f) : f === 45 || f === 95 || fe(f) ? (a = !0, e.consume(f), l) : h(f);
@@ -14000,7 +14000,7 @@ function P1(e, t, n) {
14000
14000
  const r = this;
14001
14001
  return u;
14002
14002
  function u(i) {
14003
- return i !== 87 && i !== 119 || !Qa.call(r, r.previous) || Mr(r.events) ? n(i) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(y1, e.attempt(Ya, e.attempt(qa, a), n), n)(i));
14003
+ return i !== 87 && i !== 119 || !Qa.call(r, r.previous) || Br(r.events) ? n(i) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(y1, e.attempt(Ya, e.attempt(qa, a), n), n)(i));
14004
14004
  }
14005
14005
  function a(i) {
14006
14006
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(i);
@@ -14011,7 +14011,7 @@ function w1(e, t, n) {
14011
14011
  let u = "", a = !1;
14012
14012
  return i;
14013
14013
  function i(f) {
14014
- return (f === 72 || f === 104) && Ga.call(r, r.previous) && !Mr(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), u += String.fromCodePoint(f), e.consume(f), o) : n(f);
14014
+ return (f === 72 || f === 104) && Ga.call(r, r.previous) && !Br(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), u += String.fromCodePoint(f), e.consume(f), o) : n(f);
14015
14015
  }
14016
14016
  function o(f) {
14017
14017
  if (de(f) && u.length < 5)
@@ -14101,12 +14101,12 @@ function Ga(e) {
14101
14101
  return !de(e);
14102
14102
  }
14103
14103
  function Xa(e) {
14104
- return !(e === 47 || sr(e));
14104
+ return !(e === 47 || or(e));
14105
14105
  }
14106
- function sr(e) {
14106
+ function or(e) {
14107
14107
  return e === 43 || e === 45 || e === 46 || e === 95 || fe(e);
14108
14108
  }
14109
- function Mr(e) {
14109
+ function Br(e) {
14110
14110
  let t = e.length, n = !1;
14111
14111
  for (; t--; ) {
14112
14112
  const r = e[t][1];
@@ -14563,7 +14563,7 @@ function up(e, t) {
14563
14563
  const p = new Z1();
14564
14564
  for (; ++n < e.length; ) {
14565
14565
  const d = e[n], A = d[1];
14566
- d[0] === "enter" ? A.type === "tableHead" ? (o = !1, l !== 0 && (Gu(p, t, l, c, h), h = void 0, l = 0), c = {
14566
+ d[0] === "enter" ? A.type === "tableHead" ? (o = !1, l !== 0 && (Xu(p, t, l, c, h), h = void 0, l = 0), c = {
14567
14567
  type: "table",
14568
14568
  start: Object.assign({}, A.start),
14569
14569
  // Note: correct end is set later.
@@ -14575,7 +14575,7 @@ function up(e, t) {
14575
14575
  end: Object.assign({}, A.end)
14576
14576
  }, p.add(n, 0, [["enter", h, t]])), u = A.type === "tableDelimiterRow" ? 2 : h ? 3 : 1) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") ? (r = !1, i[2] === 0 && (a[1] !== 0 && (i[0] = i[1], f = Jt(p, t, a, u, void 0, f), a = [0, 0, 0, 0]), i[2] = n)) : A.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (i[0] = i[1], f = Jt(p, t, a, u, void 0, f)), a = i, i = [a[1], n, 0, 0])) : A.type === "tableHead" ? (o = !0, l = n) : A.type === "tableRow" || A.type === "tableDelimiterRow" ? (l = n, a[1] !== 0 ? (i[0] = i[1], f = Jt(p, t, a, u, n, f)) : i[1] !== 0 && (f = Jt(p, t, i, u, n, f)), u = 0) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") && (i[3] = n);
14577
14577
  }
14578
- for (l !== 0 && Gu(p, t, l, c, h), p.consume(t.events), n = -1; ++n < t.events.length; ) {
14578
+ for (l !== 0 && Xu(p, t, l, c, h), p.consume(t.events), n = -1; ++n < t.events.length; ) {
14579
14579
  const d = t.events[n];
14580
14580
  d[0] === "enter" && d[1].type === "table" && (d[1]._align = tp(t.events, n));
14581
14581
  }
@@ -14607,7 +14607,7 @@ function Jt(e, t, n, r, u, a) {
14607
14607
  }
14608
14608
  return u !== void 0 && (a.end = Object.assign({}, lt(t.events, u)), e.add(u, 0, [["exit", a, t]]), a = void 0), a;
14609
14609
  }
14610
- function Gu(e, t, n, r, u) {
14610
+ function Xu(e, t, n, r, u) {
14611
14611
  const a = [], i = lt(t.events, n);
14612
14612
  u && (u.end = Object.assign({}, i), a.push(["exit", u, t])), r.end = Object.assign({}, i), a.push(["exit", r, t]), e.add(n + 1, 0, a);
14613
14613
  }
@@ -14676,17 +14676,17 @@ const hp = {
14676
14676
  typescript: /(tsx?|typescript)/,
14677
14677
  javascript: /(jsx?|javascript)/,
14678
14678
  markdown: /(md|markdown)/,
14679
- mdx: /(mdx)/,
14680
- json: /(json)/,
14681
- yaml: /(yaml)/,
14682
- toml: /(toml)/,
14683
- bash: /(shell|bash|sh|zsh)/,
14679
+ mdx: /mdx/,
14680
+ json: /json/,
14681
+ yaml: /yaml/,
14682
+ toml: /toml/,
14683
+ gnubash: /(shell|bash|sh|zsh)/,
14684
14684
  python: /(py|python)/,
14685
- dotnet: /(cs|csharp|vb)/,
14685
+ dotnet: /(^cs$|csharp|vb)/,
14686
14686
  rust: /(rs|rust)/,
14687
14687
  ruby: /(rb|ruby)/,
14688
14688
  php: /php/,
14689
- html: /html?/,
14689
+ html5: /html?/,
14690
14690
  css: /css/
14691
14691
  }, dp = (e) => {
14692
14692
  if (!e) return;
@@ -14742,7 +14742,7 @@ const hp = {
14742
14742
  "div",
14743
14743
  {
14744
14744
  className: ie(
14745
- "code-block text-sm not-prose scrollbar overflow-x-auto scrollbar [&>code]:p-3 [&>code]:py-2",
14745
+ "code-block text-sm not-prose scrollbar overflow-x-auto scrollbar [&_code]:p-3 [&_code]:py-2",
14746
14746
  i.className
14747
14747
  ),
14748
14748
  ref: c,
@@ -14760,8 +14760,8 @@ const hp = {
14760
14760
  },
14761
14761
  unobserve: () => {
14762
14762
  }
14763
- }), Br = () => li(Ka), pp = () => {
14764
- const e = je(null), { observe: t, unobserve: n } = Br();
14763
+ }), Fr = () => li(Ka), pp = () => {
14764
+ const e = je(null), { observe: t, unobserve: n } = Fr();
14765
14765
  return et(() => {
14766
14766
  const u = e.current;
14767
14767
  if (u)
@@ -14851,7 +14851,7 @@ const Ap = {
14851
14851
  indigo: "text-indigo-400 dark:text-indigo-600",
14852
14852
  gray: "text-gray-400 dark:text-gray-600",
14853
14853
  outline: ""
14854
- }, Xu = ({
14854
+ }, Ku = ({
14855
14855
  color: e,
14856
14856
  label: t,
14857
14857
  className: n,
@@ -14869,7 +14869,7 @@ const Ap = {
14869
14869
  }
14870
14870
  );
14871
14871
  var Cp = Object.getOwnPropertyNames, Ip = Object.getOwnPropertySymbols, xp = Object.prototype.hasOwnProperty;
14872
- function Ku(e, t) {
14872
+ function $u(e, t) {
14873
14873
  return function(r, u, a) {
14874
14874
  return e(r, u, a) && t(r, u, a);
14875
14875
  };
@@ -14886,7 +14886,7 @@ function Zt(e) {
14886
14886
  return a.delete(n), a.delete(r), l;
14887
14887
  };
14888
14888
  }
14889
- function $u(e) {
14889
+ function Ju(e) {
14890
14890
  return Cp(e).concat(Ip(e));
14891
14891
  }
14892
14892
  var Np = Object.hasOwn || function(e, t) {
@@ -14895,7 +14895,7 @@ var Np = Object.hasOwn || function(e, t) {
14895
14895
  function ut(e, t) {
14896
14896
  return e === t || !e && !t && e !== e && t !== t;
14897
14897
  }
14898
- var Sp = "__v", kp = "__o", Op = "_owner", Ju = Object.getOwnPropertyDescriptor, Zu = Object.keys;
14898
+ var Sp = "__v", kp = "__o", Op = "_owner", Zu = Object.getOwnPropertyDescriptor, ei = Object.keys;
14899
14899
  function yp(e, t, n) {
14900
14900
  var r = e.length;
14901
14901
  if (t.length !== r)
@@ -14914,7 +14914,7 @@ function Rp(e, t) {
14914
14914
  function Dp(e, t) {
14915
14915
  return e === t;
14916
14916
  }
14917
- function ei(e, t, n) {
14917
+ function ti(e, t, n) {
14918
14918
  var r = e.size;
14919
14919
  if (r !== t.size)
14920
14920
  return !1;
@@ -14941,8 +14941,8 @@ function ei(e, t, n) {
14941
14941
  }
14942
14942
  var Pp = ut;
14943
14943
  function wp(e, t, n) {
14944
- var r = Zu(e), u = r.length;
14945
- if (Zu(t).length !== u)
14944
+ var r = ei(e), u = r.length;
14945
+ if (ei(t).length !== u)
14946
14946
  return !1;
14947
14947
  for (; u-- > 0; )
14948
14948
  if (!Ja(e, t, n, r[u]))
@@ -14950,11 +14950,11 @@ function wp(e, t, n) {
14950
14950
  return !0;
14951
14951
  }
14952
14952
  function Ot(e, t, n) {
14953
- var r = $u(e), u = r.length;
14954
- if ($u(t).length !== u)
14953
+ var r = Ju(e), u = r.length;
14954
+ if (Ju(t).length !== u)
14955
14955
  return !1;
14956
14956
  for (var a, i, o; u-- > 0; )
14957
- if (a = r[u], !Ja(e, t, n, a) || (i = Ju(e, a), o = Ju(t, a), (i || o) && (!i || !o || i.configurable !== o.configurable || i.enumerable !== o.enumerable || i.writable !== o.writable)))
14957
+ if (a = r[u], !Ja(e, t, n, a) || (i = Zu(e, a), o = Zu(t, a), (i || o) && (!i || !o || i.configurable !== o.configurable || i.enumerable !== o.enumerable || i.writable !== o.writable)))
14958
14958
  return !1;
14959
14959
  return !0;
14960
14960
  }
@@ -14964,7 +14964,7 @@ function Mp(e, t) {
14964
14964
  function Bp(e, t) {
14965
14965
  return e.source === t.source && e.flags === t.flags;
14966
14966
  }
14967
- function ti(e, t, n) {
14967
+ function ni(e, t, n) {
14968
14968
  var r = e.size;
14969
14969
  if (r !== t.size)
14970
14970
  return !1;
@@ -14998,7 +14998,7 @@ function Hp(e, t) {
14998
14998
  function Ja(e, t, n, r) {
14999
14999
  return (r === Op || r === kp || r === Sp) && (e.$$typeof || t.$$typeof) ? !0 : Np(t, r) && n.equals(e[r], t[r], r, r, e, t, n);
15000
15000
  }
15001
- var Up = "[object Arguments]", vp = "[object Boolean]", zp = "[object Date]", Yp = "[object Error]", qp = "[object Map]", jp = "[object Number]", Vp = "[object Object]", Wp = "[object RegExp]", Qp = "[object Set]", Gp = "[object String]", Xp = "[object URL]", Kp = Array.isArray, ni = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, ri = Object.assign, $p = Object.prototype.toString.call.bind(Object.prototype.toString);
15001
+ var Up = "[object Arguments]", vp = "[object Boolean]", zp = "[object Date]", Yp = "[object Error]", qp = "[object Map]", jp = "[object Number]", Vp = "[object Object]", Wp = "[object RegExp]", Qp = "[object Set]", Gp = "[object String]", Xp = "[object URL]", Kp = Array.isArray, ri = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, ui = Object.assign, $p = Object.prototype.toString.call.bind(Object.prototype.toString);
15002
15002
  function Jp(e) {
15003
15003
  var t = e.areArraysEqual, n = e.areDatesEqual, r = e.areErrorsEqual, u = e.areFunctionsEqual, a = e.areMapsEqual, i = e.areNumbersEqual, o = e.areObjectsEqual, l = e.arePrimitiveWrappersEqual, c = e.areRegExpsEqual, h = e.areSetsEqual, f = e.areTypedArraysEqual, p = e.areUrlsEqual;
15004
15004
  return function(A, I, L) {
@@ -15018,7 +15018,7 @@ function Jp(e) {
15018
15018
  return o(A, I, L);
15019
15019
  if (Kp(A))
15020
15020
  return t(A, I, L);
15021
- if (ni != null && ni(A))
15021
+ if (ri != null && ri(A))
15022
15022
  return f(A, I, L);
15023
15023
  if (w === Date)
15024
15024
  return n(A, I, L);
@@ -15038,18 +15038,18 @@ function Zp(e) {
15038
15038
  areDatesEqual: Lp,
15039
15039
  areErrorsEqual: Rp,
15040
15040
  areFunctionsEqual: Dp,
15041
- areMapsEqual: r ? Ku(ei, Ot) : ei,
15041
+ areMapsEqual: r ? $u(ti, Ot) : ti,
15042
15042
  areNumbersEqual: Pp,
15043
15043
  areObjectsEqual: r ? Ot : wp,
15044
15044
  arePrimitiveWrappersEqual: Mp,
15045
15045
  areRegExpsEqual: Bp,
15046
- areSetsEqual: r ? Ku(ti, Ot) : ti,
15046
+ areSetsEqual: r ? $u(ni, Ot) : ni,
15047
15047
  areTypedArraysEqual: r ? Ot : Fp,
15048
15048
  areUrlsEqual: Hp
15049
15049
  };
15050
- if (n && (u = ri({}, u, n(u))), t) {
15050
+ if (n && (u = ui({}, u, n(u))), t) {
15051
15051
  var a = Zt(u.areArraysEqual), i = Zt(u.areMapsEqual), o = Zt(u.areObjectsEqual), l = Zt(u.areSetsEqual);
15052
- u = ri({}, u, {
15052
+ u = ui({}, u, {
15053
15053
  areArraysEqual: a,
15054
15054
  areMapsEqual: i,
15055
15055
  areObjectsEqual: o,
@@ -15146,7 +15146,7 @@ const rE = ({
15146
15146
  },
15147
15147
  variant: "ghost",
15148
15148
  size: "icon",
15149
- className: "size-6 hover:bg-[hsl(from_hsl(var(--accent))_h_s_calc(l-5))] hover:dark:bg-[hsl(from_hsl(var(--accent))_h_s_calc(l+5))]",
15149
+ className: "size-6 hover:bg-[hsl(from_var(--accent)_h_s_calc(l+6*var(--dark)))]",
15150
15150
  children: /* @__PURE__ */ k.jsx(
15151
15151
  ys,
15152
15152
  {
@@ -15179,10 +15179,10 @@ const rE = ({
15179
15179
  onOpenChange: () => h(!0),
15180
15180
  children: [
15181
15181
  /* @__PURE__ */ k.jsx(yn.Trigger, { className: "group", asChild: !0, disabled: !i, children: e.link?.type === "doc" ? /* @__PURE__ */ k.jsxs(
15182
- lr,
15182
+ cr,
15183
15183
  {
15184
15184
  to: {
15185
- pathname: ai(e.link.path),
15185
+ pathname: Xn(e.link.path),
15186
15186
  search: a.search
15187
15187
  },
15188
15188
  className: A,
@@ -15226,9 +15226,9 @@ const rE = ({
15226
15226
  ]
15227
15227
  }
15228
15228
  );
15229
- }, Za = cr(rE, nE);
15229
+ }, Za = fr(rE, nE);
15230
15230
  Za.displayName = "NavigationCategory";
15231
- const ui = ({
15231
+ const ii = ({
15232
15232
  label: e,
15233
15233
  className: t
15234
15234
  }) => {
@@ -15265,7 +15265,7 @@ const ui = ({
15265
15265
  item: e,
15266
15266
  onRequestClose: t
15267
15267
  }) => {
15268
- const n = Tn(), { activeAnchor: r } = Br(), u = Ks(), a = or();
15268
+ const n = Tn(), { activeAnchor: r } = Fr(), u = Ks(), a = lr();
15269
15269
  if (!As(u, a)(e))
15270
15270
  return null;
15271
15271
  switch (e.type) {
@@ -15273,25 +15273,25 @@ const ui = ({
15273
15273
  return /* @__PURE__ */ k.jsx(Za, { category: e, onRequestClose: t });
15274
15274
  case "doc":
15275
15275
  return /* @__PURE__ */ k.jsxs(
15276
- lr,
15276
+ cr,
15277
15277
  {
15278
15278
  viewTransition: !0,
15279
15279
  className: ({ isActive: i, isPending: o }) => en({ isActive: i, isPending: o }),
15280
- to: ai(e.path),
15280
+ to: Xn(e.path),
15281
15281
  onClick: t,
15282
15282
  end: !0,
15283
15283
  children: [
15284
15284
  e.icon && /* @__PURE__ */ k.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
15285
15285
  e.badge ? /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
15286
- e.label && /* @__PURE__ */ k.jsx(ui, { label: e.label, className: "flex-1" }),
15287
- /* @__PURE__ */ k.jsx(Xu, { ...e.badge })
15286
+ e.label && /* @__PURE__ */ k.jsx(ii, { label: e.label, className: "flex-1" }),
15287
+ /* @__PURE__ */ k.jsx(Ku, { ...e.badge })
15288
15288
  ] }) : e.label
15289
15289
  ]
15290
15290
  }
15291
15291
  );
15292
15292
  case "link":
15293
15293
  case "custom-page": {
15294
- const i = e.type === "link" ? e.to : e.path;
15294
+ const i = e.type === "link" ? e.to : Xn(e.path);
15295
15295
  return i.startsWith("http") ? /* @__PURE__ */ k.jsxs(
15296
15296
  "a",
15297
15297
  {
@@ -15316,14 +15316,14 @@ const ui = ({
15316
15316
  },
15317
15317
  [es]: i.split("#")[1],
15318
15318
  className: en({
15319
- isActive: i === [n.pathname, r].join("#")
15319
+ isActive: i === [n.pathname, r].filter(Boolean).join("#")
15320
15320
  }),
15321
15321
  onClick: t,
15322
15322
  children: [
15323
15323
  e.icon && /* @__PURE__ */ k.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
15324
15324
  e.badge ? /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
15325
- e.label && /* @__PURE__ */ k.jsx(ui, { label: e.label }),
15326
- /* @__PURE__ */ k.jsx(Xu, { ...e.badge })
15325
+ e.label && /* @__PURE__ */ k.jsx(ii, { label: e.label }),
15326
+ /* @__PURE__ */ k.jsx(Ku, { ...e.badge })
15327
15327
  ] }) : /* @__PURE__ */ k.jsx("span", { className: "break-all", children: e.label })
15328
15328
  ]
15329
15329
  }
@@ -15335,7 +15335,7 @@ const ui = ({
15335
15335
  const n = e.getBoundingClientRect();
15336
15336
  n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
15337
15337
  }, ts = () => {
15338
- const { setActiveAnchor: e } = Br();
15338
+ const { setActiveAnchor: e } = Fr();
15339
15339
  return ci(
15340
15340
  (n) => {
15341
15341
  const r = n.replace(/^#/, ""), u = r.split("/").at(0), a = document.getElementById(decodeURIComponent(r)), i = document.querySelector(
@@ -15363,7 +15363,7 @@ const ui = ({
15363
15363
  const t = Tn(), n = ts(), r = Cs(e.to), [u, a] = r.split("#"), i = (o) => {
15364
15364
  e.onClick?.(o), !(a !== t.hash.slice(1) || u !== t.pathname) && (o.preventDefault(), n(a));
15365
15365
  };
15366
- return /* @__PURE__ */ k.jsx(lr, { ...e, onClick: i });
15366
+ return /* @__PURE__ */ k.jsx(cr, { ...e, onClick: i });
15367
15367
  }, aE = si("", {
15368
15368
  variants: {
15369
15369
  size: {
@@ -15543,16 +15543,16 @@ const ui = ({
15543
15543
  }
15544
15544
  );
15545
15545
  }
15546
- }, dE = "prose dark:prose-invert prose-neutral typography", Fr = ({
15546
+ }, dE = "prose dark:prose-invert prose-neutral typography", Hr = ({
15547
15547
  children: e,
15548
15548
  className: t
15549
- }) => /* @__PURE__ */ k.jsx("div", { className: ie(dE, t), children: e }), mE = [fp], rs = cr(
15549
+ }) => /* @__PURE__ */ k.jsx("div", { className: ie(dE, t), children: e }), mE = [fp], rs = fr(
15550
15550
  ({
15551
15551
  content: e,
15552
15552
  className: t,
15553
15553
  components: n
15554
15554
  }) => {
15555
- const { syntaxHighlighting: r } = or().options, u = Ft(
15555
+ const { syntaxHighlighting: r } = lr().options, u = Ft(
15556
15556
  () => [
15557
15557
  Kd,
15558
15558
  ...Ws(r?.themes)
@@ -15562,7 +15562,7 @@ const ui = ({
15562
15562
  () => ({ ...hE, ...n }),
15563
15563
  [n]
15564
15564
  );
15565
- return /* @__PURE__ */ k.jsx(Fr, { className: t, children: /* @__PURE__ */ k.jsx(
15565
+ return /* @__PURE__ */ k.jsx(Hr, { className: t, children: /* @__PURE__ */ k.jsx(
15566
15566
  C0,
15567
15567
  {
15568
15568
  remarkPlugins: mE,
@@ -15585,7 +15585,7 @@ const us = ({
15585
15585
  ] }) });
15586
15586
  }, pE = () => {
15587
15587
  const e = Is();
15588
- return /* @__PURE__ */ k.jsxs(Fr, { className: "h-full pt-(--padding-content-top)", children: [
15588
+ return /* @__PURE__ */ k.jsxs(Hr, { className: "h-full pt-(--padding-content-top)", children: [
15589
15589
  /* @__PURE__ */ k.jsx(oo, { children: "404" }),
15590
15590
  /* @__PURE__ */ k.jsxs(Ye, { level: 1, className: "flex gap-3.5 items-center", children: [
15591
15591
  "Page not found",
@@ -15609,9 +15609,9 @@ const us = ({
15609
15609
  /* @__PURE__ */ k.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
15610
15610
  /* @__PURE__ */ k.jsx(xs, { to: "/", children: "Go back home" })
15611
15611
  ] });
15612
- }, is = cr(
15612
+ }, is = fr(
15613
15613
  ({ code: e, children: t, embedded: n, ...r }) => {
15614
- const { syntaxHighlighting: u } = or().options;
15614
+ const { syntaxHighlighting: u } = lr().options;
15615
15615
  uo(u?.highlighter, "Highlighter not found");
15616
15616
  const a = Qs(
15617
15617
  u.highlighter,
@@ -15624,8 +15624,8 @@ const us = ({
15624
15624
  );
15625
15625
  is.displayName = "SyntaxHighlight";
15626
15626
  function EE({ error: e }) {
15627
- const t = e instanceof Error ? e.message : "Something went wrong", n = e instanceof Wr ? e.developerHint : void 0, r = e instanceof Wr ? e.title : "Something went wrong", u = e instanceof Error ? e.stack : void 0, a = e instanceof Error ? e.cause : void 0, i = a instanceof Error ? String(a.stack) : u;
15628
- return /* @__PURE__ */ k.jsxs(Fr, { className: "grid grid-cols-1 !max-w-none pt-(--padding-content-top)", children: [
15627
+ const t = e instanceof Error ? e.message : "Something went wrong", n = e instanceof Qr ? e.developerHint : void 0, r = e instanceof Qr ? e.title : "Something went wrong", u = e instanceof Error ? e.stack : void 0, a = e instanceof Error ? e.cause : void 0, i = a instanceof Error ? String(a.stack) : u;
15628
+ return /* @__PURE__ */ k.jsxs(Hr, { className: "grid grid-cols-1 !max-w-none pt-(--padding-content-top)", children: [
15629
15629
  /* @__PURE__ */ k.jsx(Ye, { level: 1, children: r }),
15630
15630
  "Error: ",
15631
15631
  t,
@@ -15693,10 +15693,10 @@ function TE(e) {
15693
15693
  const t = li(ss);
15694
15694
  return Js(t, e);
15695
15695
  }
15696
- const ii = ["prepend", "replace", "append"], gE = (e) => {
15696
+ const ai = ["prepend", "replace", "append"], gE = (e) => {
15697
15697
  const t = ao(), n = TE((r) => r.getItems(e));
15698
15698
  return Ft(() => n.length === 0 ? [] : n.toSorted((r, u) => {
15699
- const a = ii.indexOf(r.type) - ii.indexOf(u.type);
15699
+ const a = ai.indexOf(r.type) - ai.indexOf(u.type);
15700
15700
  return a !== 0 ? a : r.sequence - u.sequence;
15701
15701
  }).map(
15702
15702
  (r) => typeof r.content == "function" ? /* @__PURE__ */ k.jsx(r.content, { ...t }, r.id) : /* @__PURE__ */ k.jsx(Ms, { children: r.content }, r.id)
@@ -15718,7 +15718,7 @@ export {
15718
15718
  uE as N,
15719
15719
  vE as R,
15720
15720
  cE as S,
15721
- Fr as T,
15721
+ Hr as T,
15722
15722
  HE as V,
15723
15723
  YE as a,
15724
15724
  Tp as b,
@@ -15734,6 +15734,6 @@ export {
15734
15734
  hE as l,
15735
15735
  zE as m,
15736
15736
  iE as s,
15737
- Br as u
15737
+ Fr as u
15738
15738
  };
15739
- //# sourceMappingURL=Slot-CkWazhCn.js.map
15739
+ //# sourceMappingURL=Slot-BFCJzl5J.js.map