zudoku 0.35.5 → 0.36.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 (131) hide show
  1. package/dist/app/entry.server.js +5 -1
  2. package/dist/app/entry.server.js.map +1 -1
  3. package/dist/config/validators/common.d.ts +176 -176
  4. package/dist/config/validators/common.js +8 -6
  5. package/dist/config/validators/common.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +63 -63
  7. package/dist/lib/authentication/providers/openid.js +11 -7
  8. package/dist/lib/authentication/providers/openid.js.map +1 -1
  9. package/dist/lib/components/AnchorLink.js +3 -2
  10. package/dist/lib/components/AnchorLink.js.map +1 -1
  11. package/dist/lib/components/Layout.js +3 -14
  12. package/dist/lib/components/Layout.js.map +1 -1
  13. package/dist/lib/components/Zudoku.js +3 -1
  14. package/dist/lib/components/Zudoku.js.map +1 -1
  15. package/dist/lib/components/cache.d.ts +7 -0
  16. package/dist/lib/components/cache.js +7 -0
  17. package/dist/lib/components/cache.js.map +1 -1
  18. package/dist/lib/components/context/ViewportAnchorContext.js +3 -6
  19. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  20. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  21. package/dist/lib/components/context/ZudokuContext.js +4 -3
  22. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  23. package/dist/lib/components/navigation/SidebarItem.js +3 -2
  24. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  25. package/dist/lib/core/ZudokuContext.d.ts +8 -6
  26. package/dist/lib/core/ZudokuContext.js +4 -2
  27. package/dist/lib/core/ZudokuContext.js.map +1 -1
  28. package/dist/lib/core/plugins.d.ts +3 -3
  29. package/dist/lib/hooks/useEvent.test.js +1 -1
  30. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  31. package/dist/lib/oas/graphql/index.d.ts +16 -4
  32. package/dist/lib/oas/graphql/index.js +59 -43
  33. package/dist/lib/oas/graphql/index.js.map +1 -1
  34. package/dist/lib/plugins/openapi/OperationList.js +19 -5
  35. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  36. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  37. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  38. package/dist/lib/plugins/openapi/Sidecar.js +2 -2
  39. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  40. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
  41. package/dist/lib/plugins/openapi/client/useCreateQuery.js +2 -1
  42. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  43. package/dist/lib/plugins/openapi/graphql/gql.d.ts +4 -4
  44. package/dist/lib/plugins/openapi/graphql/gql.js +3 -3
  45. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  46. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +34 -45
  47. package/dist/lib/plugins/openapi/graphql/graphql.js +20 -30
  48. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  49. package/dist/lib/plugins/openapi/index.d.ts +5 -10
  50. package/dist/lib/plugins/openapi/index.js +29 -60
  51. package/dist/lib/plugins/openapi/index.js.map +1 -1
  52. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -1
  53. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +5 -7
  54. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -1
  55. package/dist/lib/util/traverse.js +2 -2
  56. package/dist/lib/util/traverse.js.map +1 -1
  57. package/dist/lib/util/useScrollToAnchor.js +2 -0
  58. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  59. package/dist/vite/api/schema-codegen.js +19 -4
  60. package/dist/vite/api/schema-codegen.js.map +1 -1
  61. package/dist/vite/api/schema-codegen.test.js +61 -0
  62. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  63. package/dist/vite/plugin-api.js +3 -11
  64. package/dist/vite/plugin-api.js.map +1 -1
  65. package/lib/{AuthenticationPlugin-4ip08maU.js → AuthenticationPlugin-Cr6xjOJD.js} +2 -2
  66. package/lib/{AuthenticationPlugin-4ip08maU.js.map → AuthenticationPlugin-Cr6xjOJD.js.map} +1 -1
  67. package/lib/{Markdown-hBN9vkm5.js → Markdown-BlioIqkZ.js} +313 -311
  68. package/lib/Markdown-BlioIqkZ.js.map +1 -0
  69. package/lib/{MdxPage-UCWwxhzC.js → MdxPage-7XnN9J9R.js} +3 -3
  70. package/lib/{MdxPage-UCWwxhzC.js.map → MdxPage-7XnN9J9R.js.map} +1 -1
  71. package/lib/{OasProvider-CJ8KOnsH.js → OasProvider-BaRRMSsD.js} +3 -3
  72. package/lib/{OasProvider-CJ8KOnsH.js.map → OasProvider-BaRRMSsD.js.map} +1 -1
  73. package/lib/{OperationList-C4rpJdcE.js → OperationList-BjL1hzSx.js} +988 -961
  74. package/lib/OperationList-BjL1hzSx.js.map +1 -0
  75. package/lib/{SlotletProvider-D-XPr1Wg.js → SlotletProvider-CXb3wQiR.js} +2 -2
  76. package/lib/{SlotletProvider-D-XPr1Wg.js.map → SlotletProvider-CXb3wQiR.js.map} +1 -1
  77. package/lib/{circular-v7K6lDDh.js → circular-ByJI6Mci.js} +4887 -4419
  78. package/lib/circular-ByJI6Mci.js.map +1 -0
  79. package/lib/{createServer-BEFAOb-x.js → createServer-DjgKDpGV.js} +3887 -4291
  80. package/lib/createServer-DjgKDpGV.js.map +1 -0
  81. package/lib/{hook-CfCFKZ-2.js → hook-Bo80UX00.js} +75 -74
  82. package/lib/hook-Bo80UX00.js.map +1 -0
  83. package/lib/{index-Dowg8c_k.js → index-D5m8_oyY.js} +612 -650
  84. package/lib/index-D5m8_oyY.js.map +1 -0
  85. package/lib/post-processors/traverse.js +2 -2
  86. package/lib/post-processors/traverse.js.map +1 -1
  87. package/lib/zudoku.auth-auth0.js +1 -1
  88. package/lib/zudoku.auth-clerk.js +2 -2
  89. package/lib/zudoku.auth-openid.js +283 -282
  90. package/lib/zudoku.auth-openid.js.map +1 -1
  91. package/lib/zudoku.components.js +395 -397
  92. package/lib/zudoku.components.js.map +1 -1
  93. package/lib/zudoku.hooks.js +1 -1
  94. package/lib/zudoku.plugin-api-catalog.js +2 -2
  95. package/lib/zudoku.plugin-api-keys.js +2 -2
  96. package/lib/zudoku.plugin-custom-pages.js +1 -1
  97. package/lib/zudoku.plugin-markdown.js +1 -1
  98. package/lib/zudoku.plugin-openapi.js +4 -5
  99. package/lib/zudoku.plugin-openapi.js.map +1 -1
  100. package/lib/zudoku.plugins.js.map +1 -1
  101. package/package.json +5 -5
  102. package/src/app/entry.server.tsx +7 -1
  103. package/src/lib/authentication/providers/openid.tsx +12 -9
  104. package/src/lib/components/AnchorLink.tsx +4 -2
  105. package/src/lib/components/Layout.tsx +3 -16
  106. package/src/lib/components/Zudoku.tsx +5 -1
  107. package/src/lib/components/cache.ts +8 -0
  108. package/src/lib/components/context/ViewportAnchorContext.tsx +3 -6
  109. package/src/lib/components/context/ZudokuContext.ts +5 -4
  110. package/src/lib/components/navigation/SidebarItem.tsx +3 -2
  111. package/src/lib/core/ZudokuContext.ts +11 -8
  112. package/src/lib/core/plugins.ts +4 -4
  113. package/src/lib/hooks/useEvent.test.tsx +1 -1
  114. package/src/lib/oas/graphql/index.ts +116 -76
  115. package/src/lib/plugins/openapi/OperationList.tsx +31 -37
  116. package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
  117. package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
  118. package/src/lib/plugins/openapi/client/useCreateQuery.ts +2 -1
  119. package/src/lib/plugins/openapi/graphql/gql.ts +17 -17
  120. package/src/lib/plugins/openapi/graphql/graphql.ts +62 -79
  121. package/src/lib/plugins/openapi/index.tsx +40 -84
  122. package/src/lib/plugins/openapi/interfaces.ts +4 -1
  123. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +5 -7
  124. package/src/lib/util/traverse.ts +2 -2
  125. package/src/lib/util/useScrollToAnchor.ts +2 -0
  126. package/lib/Markdown-hBN9vkm5.js.map +0 -1
  127. package/lib/OperationList-C4rpJdcE.js.map +0 -1
  128. package/lib/circular-v7K6lDDh.js.map +0 -1
  129. package/lib/createServer-BEFAOb-x.js.map +0 -1
  130. package/lib/hook-CfCFKZ-2.js.map +0 -1
  131. package/lib/index-Dowg8c_k.js.map +0 -1
@@ -1,18 +1,18 @@
1
1
  import { j as B } from "./jsx-runtime-CYK1ROHF.js";
2
- import { createContext as Ss, useRef as sn, useEffect as Yt, useCallback as fi, useContext as ys, useState as tr, useMemo as Kr, memo as Ns } from "react";
3
- import { d as Os, h as br, b as Ls, u as hi, e as Ds } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
2
+ import { createContext as Ss, useRef as sn, useEffect as Yt, useCallback as hi, useContext as ys, useState as tr, useMemo as $r, memo as Ns } from "react";
3
+ import { d as Os, h as br, u as Ar, b as Ls, e as Ds } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
4
4
  import { c as di } from "./index-CPNSgwSb.js";
5
5
  import { ChevronRightIcon as Rs, ExternalLinkIcon as Ps } from "lucide-react";
6
- import { m as ws, j as mi } from "./hook-CfCFKZ-2.js";
6
+ import { m as ws, j as mi } from "./hook-Bo80UX00.js";
7
7
  import { c as ht } from "./cn-qaFjX9_3.js";
8
8
  import * as Pn from "@radix-ui/react-collapsible";
9
9
  import { Slot as Ms } from "@radix-ui/react-slot";
10
10
  import { Callout as Je } from "./ui/Callout.js";
11
11
  import { Stepper as Bs } from "./ui/Stepper.js";
12
- import { S as $r } from "./SyntaxHighlight-BEoSoPEo.js";
12
+ import { S as Jr } from "./SyntaxHighlight-BEoSoPEo.js";
13
13
  import { g as pi } from "./_commonjsHelpers-BkfeUUK-.js";
14
14
  import { e as Fs } from "./index-Bn6Lc9tq.js";
15
- const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, gi = 8, Jr = typeof self == "object" ? self : globalThis, Hs = (e, t) => {
15
+ const Ei = -1, An = 0, dn = 1, mn = 2, _r = 3, Cr = 4, xr = 5, Ir = 6, Ti = 7, gi = 8, Zr = typeof self == "object" ? self : globalThis, Hs = (e, t) => {
16
16
  const n = (u, i) => (e.set(i, u), u), r = (u) => {
17
17
  if (e.has(u))
18
18
  return e.get(u);
@@ -33,19 +33,19 @@ const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, g
33
33
  o[r(l)] = r(c);
34
34
  return o;
35
35
  }
36
- case Ar:
36
+ case _r:
37
37
  return n(new Date(a), u);
38
- case _r: {
38
+ case Cr: {
39
39
  const { source: o, flags: l } = a;
40
40
  return n(new RegExp(o, l), u);
41
41
  }
42
- case Cr: {
42
+ case xr: {
43
43
  const o = n(/* @__PURE__ */ new Map(), u);
44
44
  for (const [l, c] of a)
45
45
  o.set(r(l), r(c));
46
46
  return o;
47
47
  }
48
- case xr: {
48
+ case Ir: {
49
49
  const o = n(/* @__PURE__ */ new Set(), u);
50
50
  for (const l of a)
51
51
  o.add(r(l));
@@ -53,17 +53,17 @@ const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, g
53
53
  }
54
54
  case Ti: {
55
55
  const { name: o, message: l } = a;
56
- return n(new Jr[o](l), u);
56
+ return n(new Zr[o](l), u);
57
57
  }
58
58
  case gi:
59
59
  return n(BigInt(a), u);
60
60
  case "BigInt":
61
61
  return n(Object(BigInt(a)), u);
62
62
  }
63
- return n(new Jr[i](a), u);
63
+ return n(new Zr[i](a), u);
64
64
  };
65
65
  return r;
66
- }, Zr = (e) => Hs(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: Us } = {}, { keys: vs } = Object, Ot = (e) => {
66
+ }, eu = (e) => Hs(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: Us } = {}, { keys: vs } = Object, Ot = (e) => {
67
67
  const t = typeof e;
68
68
  if (t !== "object" || !e)
69
69
  return [An, t];
@@ -74,13 +74,13 @@ const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, g
74
74
  case "Object":
75
75
  return [mn, ot];
76
76
  case "Date":
77
- return [Ar, ot];
78
- case "RegExp":
79
77
  return [_r, ot];
80
- case "Map":
78
+ case "RegExp":
81
79
  return [Cr, ot];
82
- case "Set":
80
+ case "Map":
83
81
  return [xr, ot];
82
+ case "Set":
83
+ return [Ir, ot];
84
84
  }
85
85
  return n.includes("Array") ? [dn, n] : n.includes("Error") ? [Ti, n] : [mn, n];
86
86
  }, tn = ([e, t]) => e === An && (t === "function" || t === "symbol"), zs = (e, t, n, r) => {
@@ -134,19 +134,19 @@ const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, g
134
134
  (e || !tn(Ot(a[E]))) && h.push([i(E), i(a[E])]);
135
135
  return f;
136
136
  }
137
- case Ar:
137
+ case _r:
138
138
  return u([o, a.toISOString()], a);
139
- case _r: {
139
+ case Cr: {
140
140
  const { source: h, flags: f } = a;
141
141
  return u([o, { source: h, flags: f }], a);
142
142
  }
143
- case Cr: {
143
+ case xr: {
144
144
  const h = [], f = u([o, h], a);
145
145
  for (const [E, m] of a)
146
146
  (e || !(tn(Ot(E)) || tn(Ot(m)))) && h.push([i(E), i(m)]);
147
147
  return f;
148
148
  }
149
- case xr: {
149
+ case Ir: {
150
150
  const h = [], f = u([o, h], a);
151
151
  for (const E of a)
152
152
  (e || !tn(Ot(E))) && h.push(i(E));
@@ -157,13 +157,13 @@ const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, g
157
157
  return u([o, { name: l, message: c }], a);
158
158
  };
159
159
  return i;
160
- }, eu = (e, { json: t, lossy: n } = {}) => {
160
+ }, tu = (e, { json: t, lossy: n } = {}) => {
161
161
  const r = [];
162
162
  return zs(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
163
163
  }, Tt = typeof structuredClone == "function" ? (
164
164
  /* c8 ignore start */
165
- (e, t) => t && ("json" in t || "lossy" in t) ? Zr(eu(e, t)) : structuredClone(e)
166
- ) : (e, t) => Zr(eu(e, t));
165
+ (e, t) => t && ("json" in t || "lossy" in t) ? eu(tu(e, t)) : structuredClone(e)
166
+ ) : (e, t) => eu(tu(e, t));
167
167
  let Qt = class {
168
168
  /**
169
169
  * @constructor
@@ -223,7 +223,7 @@ const nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
223
223
  overloadedBoolean: Ai,
224
224
  spaceSeparated: re
225
225
  }, Symbol.toStringTag, { value: "Module" })), wn = Object.keys(nr);
226
- let Ir = class extends Se {
226
+ let kr = class extends Se {
227
227
  /**
228
228
  * @constructor
229
229
  * @param {string} property
@@ -233,15 +233,15 @@ let Ir = class extends Se {
233
233
  */
234
234
  constructor(t, n, r, u) {
235
235
  let i = -1;
236
- if (super(t, n), tu(this, "space", u), typeof r == "number")
236
+ if (super(t, n), nu(this, "space", u), typeof r == "number")
237
237
  for (; ++i < wn.length; ) {
238
238
  const a = wn[i];
239
- tu(this, wn[i], (r & nr[a]) === nr[a]);
239
+ nu(this, wn[i], (r & nr[a]) === nr[a]);
240
240
  }
241
241
  }
242
242
  };
243
- Ir.prototype.defined = !0;
244
- function tu(e, t, n) {
243
+ kr.prototype.defined = !0;
244
+ function nu(e, t, n) {
245
245
  n && (e[t] = n);
246
246
  }
247
247
  const js = {}.hasOwnProperty;
@@ -250,7 +250,7 @@ function At(e) {
250
250
  let r;
251
251
  for (r in e.properties)
252
252
  if (js.call(e.properties, r)) {
253
- const u = e.properties[r], i = new Ir(
253
+ const u = e.properties[r], i = new kr(
254
254
  r,
255
255
  e.transform(e.attributes || {}, r),
256
256
  u,
@@ -1267,24 +1267,24 @@ const ki = At({
1267
1267
  z: null,
1268
1268
  zoomAndPan: null
1269
1269
  }
1270
- }), Ws = /^data[-\w.:]+$/i, nu = /-[a-z]/g, Qs = /[A-Z]/g;
1271
- function kr(e, t) {
1270
+ }), Ws = /^data[-\w.:]+$/i, ru = /-[a-z]/g, Qs = /[A-Z]/g;
1271
+ function Sr(e, t) {
1272
1272
  const n = jt(t);
1273
1273
  let r = t, u = Se;
1274
1274
  if (n in e.normal)
1275
1275
  return e.property[e.normal[n]];
1276
1276
  if (n.length > 4 && n.slice(0, 4) === "data" && Ws.test(t)) {
1277
1277
  if (t.charAt(4) === "-") {
1278
- const i = t.slice(5).replace(nu, Xs);
1278
+ const i = t.slice(5).replace(ru, Xs);
1279
1279
  r = "data" + i.charAt(0).toUpperCase() + i.slice(1);
1280
1280
  } else {
1281
1281
  const i = t.slice(4);
1282
- if (!nu.test(i)) {
1282
+ if (!ru.test(i)) {
1283
1283
  let a = i.replace(Qs, Gs);
1284
1284
  a.charAt(0) !== "-" && (a = "-" + a), t = "data" + a;
1285
1285
  }
1286
1286
  }
1287
- u = Ir;
1287
+ u = kr;
1288
1288
  }
1289
1289
  return new u(r, t);
1290
1290
  }
@@ -1295,7 +1295,7 @@ function Xs(e) {
1295
1295
  return e.charAt(1).toUpperCase();
1296
1296
  }
1297
1297
  const _n = bi([Ci, _i, ki, Si, qs], "html"), Gt = bi([Ci, _i, ki, Si, Vs], "svg");
1298
- function ru(e) {
1298
+ function uu(e) {
1299
1299
  const t = [], n = String(e || "");
1300
1300
  let r = n.indexOf(","), u = 0, i = !1;
1301
1301
  for (; !i; ) {
@@ -1311,13 +1311,13 @@ function yi(e, t) {
1311
1311
  (n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
1312
1312
  ).trim();
1313
1313
  }
1314
- const uu = /[#.]/g;
1314
+ const iu = /[#.]/g;
1315
1315
  function Ks(e, t) {
1316
1316
  const n = e || "", r = {};
1317
1317
  let u = 0, i, a;
1318
1318
  for (; u < n.length; ) {
1319
- uu.lastIndex = u;
1320
- const o = uu.exec(n), l = n.slice(u, o ? o.index : n.length);
1319
+ iu.lastIndex = u;
1320
+ const o = iu.exec(n), l = n.slice(u, o ? o.index : n.length);
1321
1321
  l && (i ? i === "#" ? r.id = l : Array.isArray(r.className) ? r.className.push(l) : r.className = [l] : a = l, u += l.length), o && (i = o[0], u++);
1322
1322
  }
1323
1323
  return {
@@ -1328,7 +1328,7 @@ function Ks(e, t) {
1328
1328
  children: []
1329
1329
  };
1330
1330
  }
1331
- function iu(e) {
1331
+ function au(e) {
1332
1332
  const t = String(e || "").trim();
1333
1333
  return t ? t.split(/[ \t\n\r\f]+/g) : [];
1334
1334
  }
@@ -1384,19 +1384,19 @@ function $s(e) {
1384
1384
  return !!("children" in e && Array.isArray(e.children));
1385
1385
  }
1386
1386
  function Js(e, t, n, r) {
1387
- const u = kr(e, n);
1387
+ const u = Sr(e, n);
1388
1388
  let i = -1, a;
1389
1389
  if (r != null) {
1390
1390
  if (typeof r == "number") {
1391
1391
  if (Number.isNaN(r)) return;
1392
1392
  a = r;
1393
- } else typeof r == "boolean" ? a = r : typeof r == "string" ? u.spaceSeparated ? a = iu(r) : u.commaSeparated ? a = ru(r) : u.commaOrSpaceSeparated ? a = iu(ru(r).join(" ")) : a = au(u, u.property, r) : Array.isArray(r) ? a = r.concat() : a = u.property === "style" ? Zs(r) : String(r);
1393
+ } else typeof r == "boolean" ? a = r : typeof r == "string" ? u.spaceSeparated ? a = au(r) : u.commaSeparated ? a = uu(r) : u.commaOrSpaceSeparated ? a = au(uu(r).join(" ")) : a = su(u, u.property, r) : Array.isArray(r) ? a = r.concat() : a = u.property === "style" ? Zs(r) : String(r);
1394
1394
  if (Array.isArray(a)) {
1395
1395
  const o = [];
1396
1396
  for (; ++i < a.length; ) {
1397
1397
  const l = (
1398
1398
  /** @type {number | string} */
1399
- au(u, u.property, a[i])
1399
+ su(u, u.property, a[i])
1400
1400
  );
1401
1401
  o[i] = l;
1402
1402
  }
@@ -1424,7 +1424,7 @@ function ur(e, t) {
1424
1424
  else
1425
1425
  throw new Error("Expected node, nodes, or string, got `" + t + "`");
1426
1426
  }
1427
- function au(e, t, n) {
1427
+ function su(e, t, n) {
1428
1428
  if (typeof n == "string") {
1429
1429
  if (e.number && n && !Number.isNaN(Number(n)))
1430
1430
  return Number(n);
@@ -1497,7 +1497,7 @@ function uo(e) {
1497
1497
  for (; ; ) {
1498
1498
  let o = n[a];
1499
1499
  if (o === void 0) {
1500
- const l = su(t, n[a - 1]);
1500
+ const l = ou(t, n[a - 1]);
1501
1501
  o = l === -1 ? t.length + 1 : l + 1, n[a] = o;
1502
1502
  }
1503
1503
  if (o > i)
@@ -1513,7 +1513,7 @@ function uo(e) {
1513
1513
  function u(i) {
1514
1514
  if (i && typeof i.line == "number" && typeof i.column == "number" && !Number.isNaN(i.line) && !Number.isNaN(i.column)) {
1515
1515
  for (; n.length < i.line; ) {
1516
- const o = n[n.length - 1], l = su(t, o), c = l === -1 ? t.length + 1 : l + 1;
1516
+ const o = n[n.length - 1], l = ou(t, o), c = l === -1 ? t.length + 1 : l + 1;
1517
1517
  if (o === c) break;
1518
1518
  n.push(c);
1519
1519
  }
@@ -1522,7 +1522,7 @@ function uo(e) {
1522
1522
  }
1523
1523
  }
1524
1524
  }
1525
- function su(e, t) {
1525
+ function ou(e, t) {
1526
1526
  const n = e.indexOf("\r", t), r = e.indexOf(`
1527
1527
  `, t);
1528
1528
  return r === -1 ? n : n === -1 || n + 1 === r ? r : n < r ? n : r;
@@ -1537,7 +1537,7 @@ const et = {
1537
1537
  }, Li = {}.hasOwnProperty, io = Object.prototype;
1538
1538
  function ao(e, t) {
1539
1539
  const n = t || {};
1540
- return Sr(
1540
+ return yr(
1541
1541
  {
1542
1542
  file: n.file || void 0,
1543
1543
  location: !1,
@@ -1547,7 +1547,7 @@ function ao(e, t) {
1547
1547
  e
1548
1548
  );
1549
1549
  }
1550
- function Sr(e, t) {
1550
+ function yr(e, t) {
1551
1551
  let n;
1552
1552
  switch (t.nodeName) {
1553
1553
  case "#comment": {
@@ -1602,7 +1602,7 @@ function Di(e, t) {
1602
1602
  for (; ++n < t.length; ) {
1603
1603
  const u = (
1604
1604
  /** @type {RootContent} */
1605
- Sr(e, t[n])
1605
+ yr(e, t[n])
1606
1606
  );
1607
1607
  r.push(u);
1608
1608
  }
@@ -1624,7 +1624,7 @@ function so(e, t) {
1624
1624
  t
1625
1625
  ), l = o.sourceCodeLocation, c = l && l.startTag && dt(l.startTag), h = l && l.endTag && dt(l.endTag), f = (
1626
1626
  /** @type {Root} */
1627
- Sr(e, o.content)
1627
+ yr(e, o.content)
1628
1628
  );
1629
1629
  c && h && e.file && (f.position = { start: c.end, end: h.start }), a.content = f;
1630
1630
  }
@@ -1645,7 +1645,7 @@ function oo(e, t, n) {
1645
1645
  let a;
1646
1646
  if (n.attrs)
1647
1647
  for (a in n.attrs)
1648
- Li.call(n.attrs, a) && (i[kr(e.schema, a).property] = dt(
1648
+ Li.call(n.attrs, a) && (i[Sr(e.schema, a).property] = dt(
1649
1649
  n.attrs[a]
1650
1650
  ));
1651
1651
  n.startTag;
@@ -1656,29 +1656,29 @@ function oo(e, t, n) {
1656
1656
  return r;
1657
1657
  }
1658
1658
  function dt(e) {
1659
- const t = ou({
1659
+ const t = lu({
1660
1660
  line: e.startLine,
1661
1661
  column: e.startCol,
1662
1662
  offset: e.startOffset
1663
- }), n = ou({
1663
+ }), n = lu({
1664
1664
  line: e.endLine,
1665
1665
  column: e.endCol,
1666
1666
  offset: e.endOffset
1667
1667
  });
1668
1668
  return t || n ? { start: t, end: n } : void 0;
1669
1669
  }
1670
- function ou(e) {
1670
+ function lu(e) {
1671
1671
  return e.line && e.column ? e : void 0;
1672
1672
  }
1673
- const lu = {}.hasOwnProperty;
1673
+ const cu = {}.hasOwnProperty;
1674
1674
  function Ri(e, t) {
1675
1675
  const n = t || {};
1676
1676
  function r(u, ...i) {
1677
1677
  let a = r.invalid;
1678
1678
  const o = r.handlers;
1679
- if (u && lu.call(u, e)) {
1679
+ if (u && cu.call(u, e)) {
1680
1680
  const l = String(u[e]);
1681
- a = lu.call(o, l) ? o[l] : r.unknown;
1681
+ a = cu.call(o, l) ? o[l] : r.unknown;
1682
1682
  }
1683
1683
  if (a)
1684
1684
  return a.call(this, u, ...i);
@@ -1697,11 +1697,11 @@ function ho(e, t) {
1697
1697
  mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
1698
1698
  childNodes: []
1699
1699
  };
1700
- return n.childNodes = yr(e.children, n, t), _t(e, n), n;
1700
+ return n.childNodes = Nr(e.children, n, t), _t(e, n), n;
1701
1701
  }
1702
1702
  function mo(e, t) {
1703
1703
  const n = { nodeName: "#document-fragment", childNodes: [] };
1704
- return n.childNodes = yr(e.children, n, t), _t(e, n), n;
1704
+ return n.childNodes = Nr(e.children, n, t), _t(e, n), n;
1705
1705
  }
1706
1706
  function po(e) {
1707
1707
  const t = {
@@ -1755,10 +1755,10 @@ function go(e, t) {
1755
1755
  childNodes: [],
1756
1756
  parentNode: null
1757
1757
  };
1758
- return o.childNodes = yr(e.children, o, r), _t(e, o), e.tagName === "template" && e.content && (o.content = mo(e.content, r)), o;
1758
+ return o.childNodes = Nr(e.children, o, r), _t(e, o), e.tagName === "template" && e.content && (o.content = mo(e.content, r)), o;
1759
1759
  }
1760
1760
  function bo(e, t, n) {
1761
- const r = kr(e, t);
1761
+ const r = Sr(e, t);
1762
1762
  if (n === !1 || n === null || n === void 0 || typeof n == "number" && Number.isNaN(n) || !n && r.boolean)
1763
1763
  return;
1764
1764
  Array.isArray(n) && (n = r.commaSeparated ? yi(n) : Ni(n));
@@ -1772,7 +1772,7 @@ function bo(e, t, n) {
1772
1772
  }
1773
1773
  return u;
1774
1774
  }
1775
- function yr(e, t, n) {
1775
+ function Nr(e, t, n) {
1776
1776
  let r = -1;
1777
1777
  const u = [];
1778
1778
  if (e)
@@ -2548,7 +2548,7 @@ function Ho(e) {
2548
2548
  function Ve(e) {
2549
2549
  return Ho(e) || wt(e);
2550
2550
  }
2551
- function cu(e) {
2551
+ function fu(e) {
2552
2552
  return Ve(e) || Fo(e);
2553
2553
  }
2554
2554
  function nn(e) {
@@ -2557,7 +2557,7 @@ function nn(e) {
2557
2557
  function zi(e) {
2558
2558
  return e === d.SPACE || e === d.LINE_FEED || e === d.TABULATION || e === d.FORM_FEED;
2559
2559
  }
2560
- function fu(e) {
2560
+ function hu(e) {
2561
2561
  return zi(e) || e === d.SOLIDUS || e === d.GREATER_THAN_SIGN;
2562
2562
  }
2563
2563
  function Uo(e) {
@@ -3440,7 +3440,7 @@ class vo {
3440
3440
  // Script data double escape start state
3441
3441
  //------------------------------------------------------------------
3442
3442
  _stateScriptDataDoubleEscapeStart(t) {
3443
- if (this.preprocessor.startsWith(ge.SCRIPT, !1) && fu(this.preprocessor.peek(ge.SCRIPT.length))) {
3443
+ if (this.preprocessor.startsWith(ge.SCRIPT, !1) && hu(this.preprocessor.peek(ge.SCRIPT.length))) {
3444
3444
  this._emitCodePoint(t);
3445
3445
  for (let n = 0; n < ge.SCRIPT.length; n++)
3446
3446
  this._emitCodePoint(this._consume());
@@ -3531,7 +3531,7 @@ class vo {
3531
3531
  // Script data double escape end state
3532
3532
  //------------------------------------------------------------------
3533
3533
  _stateScriptDataDoubleEscapeEnd(t) {
3534
- if (this.preprocessor.startsWith(ge.SCRIPT, !1) && fu(this.preprocessor.peek(ge.SCRIPT.length))) {
3534
+ if (this.preprocessor.startsWith(ge.SCRIPT, !1) && hu(this.preprocessor.peek(ge.SCRIPT.length))) {
3535
3535
  this._emitCodePoint(t);
3536
3536
  for (let n = 0; n < ge.SCRIPT.length; n++)
3537
3537
  this._emitCodePoint(this._consume());
@@ -4445,15 +4445,15 @@ class vo {
4445
4445
  this.active = !1, this.preprocessor.pos = this.preprocessor.html.length - 1, this.consumedAfterSnapshot = 0, this.preprocessor.endOfChunkHit = !0;
4446
4446
  return;
4447
4447
  }
4448
- t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && cu(this.preprocessor.peek(1)) ? p.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
4448
+ t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && fu(this.preprocessor.peek(1)) ? p.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
4449
4449
  }
4450
4450
  // Ambiguos ampersand state
4451
4451
  //------------------------------------------------------------------
4452
4452
  _stateAmbiguousAmpersand(t) {
4453
- cu(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === d.SEMICOLON && this._err(x.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
4453
+ fu(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === d.SEMICOLON && this._err(x.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
4454
4454
  }
4455
4455
  }
4456
- const Yi = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P, s.RB, s.RP, s.RT, s.RTC]), hu = /* @__PURE__ */ new Set([
4456
+ const Yi = /* @__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([
4457
4457
  ...Yi,
4458
4458
  s.CAPTION,
4459
4459
  s.COLGROUP,
@@ -4473,7 +4473,7 @@ const Yi = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P,
4473
4473
  s.TD,
4474
4474
  s.TEMPLATE,
4475
4475
  s.TH
4476
- ]), zo = /* @__PURE__ */ new Set([...pn, s.OL, s.UL]), Yo = /* @__PURE__ */ new Set([...pn, s.BUTTON]), du = /* @__PURE__ */ new Set([s.ANNOTATION_XML, s.MI, s.MN, s.MO, s.MS, s.MTEXT]), mu = /* @__PURE__ */ new Set([s.DESC, s.FOREIGN_OBJECT, s.TITLE]), jo = /* @__PURE__ */ new Set([s.TR, s.TEMPLATE, s.HTML]), qo = /* @__PURE__ */ new Set([s.TBODY, s.TFOOT, s.THEAD, s.TEMPLATE, s.HTML]), Vo = /* @__PURE__ */ new Set([s.TABLE, s.TEMPLATE, s.HTML]), Wo = /* @__PURE__ */ new Set([s.TD, s.TH]);
4476
+ ]), zo = /* @__PURE__ */ new Set([...pn, s.OL, s.UL]), Yo = /* @__PURE__ */ new Set([...pn, s.BUTTON]), mu = /* @__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]), jo = /* @__PURE__ */ new Set([s.TR, s.TEMPLATE, s.HTML]), qo = /* @__PURE__ */ new Set([s.TBODY, s.TFOOT, s.THEAD, s.TEMPLATE, s.HTML]), Vo = /* @__PURE__ */ new Set([s.TABLE, s.TEMPLATE, s.HTML]), Wo = /* @__PURE__ */ new Set([s.TD, s.TH]);
4477
4477
  class Qo {
4478
4478
  get currentTmplContentOrNode() {
4479
4479
  return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
@@ -4588,12 +4588,12 @@ class Qo {
4588
4588
  break;
4589
4589
  }
4590
4590
  case O.SVG: {
4591
- if (mu.has(u))
4591
+ if (pu.has(u))
4592
4592
  return !1;
4593
4593
  break;
4594
4594
  }
4595
4595
  case O.MATHML: {
4596
- if (du.has(u))
4596
+ if (mu.has(u))
4597
4597
  return !1;
4598
4598
  break;
4599
4599
  }
@@ -4622,12 +4622,12 @@ class Qo {
4622
4622
  break;
4623
4623
  }
4624
4624
  case O.SVG: {
4625
- if (mu.has(n))
4625
+ if (pu.has(n))
4626
4626
  return !1;
4627
4627
  break;
4628
4628
  }
4629
4629
  case O.MATHML: {
4630
- if (du.has(n))
4630
+ if (mu.has(n))
4631
4631
  return !1;
4632
4632
  break;
4633
4633
  }
@@ -4681,11 +4681,11 @@ class Qo {
4681
4681
  this.pop();
4682
4682
  }
4683
4683
  generateImpliedEndTagsThoroughly() {
4684
- for (; hu.has(this.currentTagId); )
4684
+ for (; du.has(this.currentTagId); )
4685
4685
  this.pop();
4686
4686
  }
4687
4687
  generateImpliedEndTagsWithExclusion(t) {
4688
- for (; this.currentTagId !== t && hu.has(this.currentTagId); )
4688
+ for (; this.currentTagId !== t && du.has(this.currentTagId); )
4689
4689
  this.pop();
4690
4690
  }
4691
4691
  }
@@ -4694,7 +4694,7 @@ var Pe;
4694
4694
  (function(e) {
4695
4695
  e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
4696
4696
  })(Pe || (Pe = {}));
4697
- const pu = { type: Pe.Marker };
4697
+ const Eu = { type: Pe.Marker };
4698
4698
  class Go {
4699
4699
  constructor(t) {
4700
4700
  this.treeAdapter = t, this.entries = [], this.bookmark = null;
@@ -4731,7 +4731,7 @@ class Go {
4731
4731
  }
4732
4732
  //Mutations
4733
4733
  insertMarker() {
4734
- this.entries.unshift(pu);
4734
+ this.entries.unshift(Eu);
4735
4735
  }
4736
4736
  pushElement(t, n) {
4737
4737
  this._ensureNoahArkCondition(t), this.entries.unshift({
@@ -4758,7 +4758,7 @@ class Go {
4758
4758
  * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker
4759
4759
  */
4760
4760
  clearToLastMarker() {
4761
- const t = this.entries.indexOf(pu);
4761
+ const t = this.entries.indexOf(Eu);
4762
4762
  t >= 0 ? this.entries.splice(0, t + 1) : this.entries.length = 0;
4763
4763
  }
4764
4764
  //Search
@@ -4996,7 +4996,7 @@ const We = {
4996
4996
  "-//w3c//dtd html 4.01 frameset//",
4997
4997
  "-//w3c//dtd html 4.01 transitional//"
4998
4998
  ];
4999
- function Eu(e, t) {
4999
+ function Tu(e, t) {
5000
5000
  return t.some((n) => e.startsWith(n));
5001
5001
  }
5002
5002
  function el(e) {
@@ -5013,14 +5013,14 @@ function tl(e) {
5013
5013
  if (n = n.toLowerCase(), Jo.has(n))
5014
5014
  return Ie.QUIRKS;
5015
5015
  let r = t === null ? $o : qi;
5016
- if (Eu(n, r))
5016
+ if (Tu(n, r))
5017
5017
  return Ie.QUIRKS;
5018
- if (r = t === null ? Vi : Zo, Eu(n, r))
5018
+ if (r = t === null ? Vi : Zo, Tu(n, r))
5019
5019
  return Ie.LIMITED_QUIRKS;
5020
5020
  }
5021
5021
  return Ie.NO_QUIRKS;
5022
5022
  }
5023
- const Tu = {
5023
+ const gu = {
5024
5024
  TEXT_HTML: "text/html",
5025
5025
  APPLICATION_XML: "application/xhtml+xml"
5026
5026
  }, nl = "definitionurl", rl = "definitionURL", ul = new Map([
@@ -5194,7 +5194,7 @@ function Qi(e) {
5194
5194
  n != null && (e.attrs[t].name = n);
5195
5195
  }
5196
5196
  }
5197
- function Nr(e) {
5197
+ function Or(e) {
5198
5198
  for (let t = 0; t < e.attrs.length; t++) {
5199
5199
  const n = il.get(e.attrs[t].name);
5200
5200
  n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace);
@@ -5212,7 +5212,7 @@ function fl(e, t, n) {
5212
5212
  for (let r = 0; r < n.length; r++)
5213
5213
  if (n[r].name === tt.ENCODING) {
5214
5214
  const u = n[r].value.toLowerCase();
5215
- return u === Tu.TEXT_HTML || u === Tu.APPLICATION_XML;
5215
+ return u === gu.TEXT_HTML || u === gu.APPLICATION_XML;
5216
5216
  }
5217
5217
  }
5218
5218
  return t === O.SVG && (e === s.FOREIGN_OBJECT || e === s.DESC || e === s.TITLE);
@@ -5232,16 +5232,16 @@ const El = {
5232
5232
  endLine: -1,
5233
5233
  endCol: -1,
5234
5234
  endOffset: -1
5235
- }, Gi = /* @__PURE__ */ new Set([s.TABLE, s.TBODY, s.TFOOT, s.THEAD, s.TR]), gu = {
5235
+ }, Gi = /* @__PURE__ */ new Set([s.TABLE, s.TBODY, s.TFOOT, s.THEAD, s.TR]), bu = {
5236
5236
  scriptingEnabled: !0,
5237
5237
  sourceCodeLocationInfo: !1,
5238
5238
  treeAdapter: We,
5239
5239
  onParseError: null
5240
5240
  };
5241
- class bu {
5241
+ class Au {
5242
5242
  constructor(t, n, r = null, u = null) {
5243
5243
  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 = {
5244
- ...gu,
5244
+ ...bu,
5245
5245
  ...t
5246
5246
  }, 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 vo(this.options, this), this.activeFormattingElements = new Go(this.treeAdapter), this.fragmentContextID = r ? Ct(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new Qo(this.document, this.treeAdapter, this);
5247
5247
  }
@@ -5252,7 +5252,7 @@ class bu {
5252
5252
  }
5253
5253
  static getFragmentParser(t, n) {
5254
5254
  const r = {
5255
- ...gu,
5255
+ ...bu,
5256
5256
  ...n
5257
5257
  };
5258
5258
  t ?? (t = r.treeAdapter.createElement(_.TEMPLATE, O.HTML, []));
@@ -5884,7 +5884,7 @@ class bu {
5884
5884
  break;
5885
5885
  }
5886
5886
  case T.IN_COLUMN_GROUP: {
5887
- Dr(this, t);
5887
+ Rr(this, t);
5888
5888
  break;
5889
5889
  }
5890
5890
  case T.IN_TABLE_BODY: {
@@ -6086,7 +6086,7 @@ class bu {
6086
6086
  case T.AFTER_FRAMESET:
6087
6087
  case T.AFTER_AFTER_BODY:
6088
6088
  case T.AFTER_AFTER_FRAMESET: {
6089
- Lr(this, t);
6089
+ Dr(this, t);
6090
6090
  break;
6091
6091
  }
6092
6092
  }
@@ -6178,7 +6178,7 @@ function Cl(e, t, n) {
6178
6178
  const r = e.treeAdapter.getNamespaceURI(n.element), { token: u } = n, i = e.treeAdapter.createElement(u.tagName, r, u.attrs);
6179
6179
  e._adoptNodes(t, i), e.treeAdapter.appendChild(t, i), e.activeFormattingElements.insertElementAfterBookmark(i, u), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, i, u.tagID);
6180
6180
  }
6181
- function Or(e, t) {
6181
+ function Lr(e, t) {
6182
6182
  for (let n = 0; n < ml; n++) {
6183
6183
  const r = Tl(e, t);
6184
6184
  if (!r)
@@ -6200,7 +6200,7 @@ function xl(e, t) {
6200
6200
  function Il(e, t) {
6201
6201
  e._appendCommentNode(t, e.document);
6202
6202
  }
6203
- function Lr(e, t) {
6203
+ function Dr(e, t) {
6204
6204
  if (e.stopped = !0, t.location) {
6205
6205
  const n = e.fragmentContext ? 0 : 2;
6206
6206
  for (let r = e.openElements.stackTop; r >= n; r--)
@@ -6498,13 +6498,13 @@ function ql(e, t) {
6498
6498
  }
6499
6499
  function Vl(e, t) {
6500
6500
  const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);
6501
- n && (Or(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
6501
+ n && (Lr(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
6502
6502
  }
6503
6503
  function Wl(e, t) {
6504
6504
  e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
6505
6505
  }
6506
6506
  function Ql(e, t) {
6507
- e._reconstructActiveFormattingElements(), e.openElements.hasInScope(s.NOBR) && (Or(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
6507
+ e._reconstructActiveFormattingElements(), e.openElements.hasInScope(s.NOBR) && (Lr(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
6508
6508
  }
6509
6509
  function Gl(e, t) {
6510
6510
  e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
@@ -6540,7 +6540,7 @@ function tc(e, t) {
6540
6540
  function nc(e, t) {
6541
6541
  e.framesetOk = !1, e._switchToTextParsing(t, ae.RAWTEXT);
6542
6542
  }
6543
- function Au(e, t) {
6543
+ function _u(e, t) {
6544
6544
  e._switchToTextParsing(t, ae.RAWTEXT);
6545
6545
  }
6546
6546
  function rc(e, t) {
@@ -6556,12 +6556,12 @@ function ac(e, t) {
6556
6556
  e.openElements.hasInScope(s.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(s.RTC), e._insertElement(t, O.HTML);
6557
6557
  }
6558
6558
  function sc(e, t) {
6559
- e._reconstructActiveFormattingElements(), Wi(t), Nr(t), t.selfClosing ? e._appendElement(t, O.MATHML) : e._insertElement(t, O.MATHML), t.ackSelfClosing = !0;
6559
+ e._reconstructActiveFormattingElements(), Wi(t), Or(t), t.selfClosing ? e._appendElement(t, O.MATHML) : e._insertElement(t, O.MATHML), t.ackSelfClosing = !0;
6560
6560
  }
6561
6561
  function oc(e, t) {
6562
- e._reconstructActiveFormattingElements(), Qi(t), Nr(t), t.selfClosing ? e._appendElement(t, O.SVG) : e._insertElement(t, O.SVG), t.ackSelfClosing = !0;
6562
+ e._reconstructActiveFormattingElements(), Qi(t), Or(t), t.selfClosing ? e._appendElement(t, O.SVG) : e._insertElement(t, O.SVG), t.ackSelfClosing = !0;
6563
6563
  }
6564
- function _u(e, t) {
6564
+ function Cu(e, t) {
6565
6565
  e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML);
6566
6566
  }
6567
6567
  function pe(e, t) {
@@ -6739,7 +6739,7 @@ function pe(e, t) {
6739
6739
  }
6740
6740
  case s.NOEMBED:
6741
6741
  case s.NOFRAMES: {
6742
- Au(e, t);
6742
+ _u(e, t);
6743
6743
  break;
6744
6744
  }
6745
6745
  case s.FRAMESET: {
@@ -6751,7 +6751,7 @@ function pe(e, t) {
6751
6751
  break;
6752
6752
  }
6753
6753
  case s.NOSCRIPT: {
6754
- e.options.scriptingEnabled ? Au(e, t) : _u(e, t);
6754
+ e.options.scriptingEnabled ? _u(e, t) : Cu(e, t);
6755
6755
  break;
6756
6756
  }
6757
6757
  case s.PLAINTEXT: {
@@ -6771,7 +6771,7 @@ function pe(e, t) {
6771
6771
  case s.COLGROUP:
6772
6772
  break;
6773
6773
  default:
6774
- _u(e, t);
6774
+ Cu(e, t);
6775
6775
  }
6776
6776
  }
6777
6777
  function lc(e, t) {
@@ -6839,7 +6839,7 @@ function xn(e, t) {
6839
6839
  case s.SMALL:
6840
6840
  case s.STRIKE:
6841
6841
  case s.STRONG: {
6842
- Or(e, t);
6842
+ Lr(e, t);
6843
6843
  break;
6844
6844
  }
6845
6845
  case s.P: {
@@ -6925,7 +6925,7 @@ function xn(e, t) {
6925
6925
  }
6926
6926
  }
6927
6927
  function ea(e, t) {
6928
- e.tmplInsertionModeStack.length > 0 ? sa(e, t) : Lr(e, t);
6928
+ e.tmplInsertionModeStack.length > 0 ? sa(e, t) : Dr(e, t);
6929
6929
  }
6930
6930
  function bc(e, t) {
6931
6931
  var n;
@@ -6956,7 +6956,7 @@ function Cc(e, t) {
6956
6956
  e.openElements.clearBackToTableContext(), e._insertElement(t, O.HTML), e.insertionMode = T.IN_COLUMN_GROUP;
6957
6957
  }
6958
6958
  function xc(e, t) {
6959
- e.openElements.clearBackToTableContext(), e._insertFakeElement(_.COLGROUP, s.COLGROUP), e.insertionMode = T.IN_COLUMN_GROUP, Dr(e, t);
6959
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(_.COLGROUP, s.COLGROUP), e.insertionMode = T.IN_COLUMN_GROUP, Rr(e, t);
6960
6960
  }
6961
6961
  function Ic(e, t) {
6962
6962
  e.openElements.clearBackToTableContext(), e._insertElement(t, O.HTML), e.insertionMode = T.IN_TABLE_BODY;
@@ -7095,7 +7095,7 @@ function Lc(e, t) {
7095
7095
  xn(e, t);
7096
7096
  }
7097
7097
  }
7098
- function Dr(e, t) {
7098
+ function Rr(e, t) {
7099
7099
  switch (t.tagID) {
7100
7100
  case s.HTML: {
7101
7101
  pe(e, t);
@@ -7347,7 +7347,7 @@ function Bc(e, t) {
7347
7347
  break;
7348
7348
  }
7349
7349
  case s.COL: {
7350
- e.tmplInsertionModeStack[0] = T.IN_COLUMN_GROUP, e.insertionMode = T.IN_COLUMN_GROUP, Dr(e, t);
7350
+ e.tmplInsertionModeStack[0] = T.IN_COLUMN_GROUP, e.insertionMode = T.IN_COLUMN_GROUP, Rr(e, t);
7351
7351
  break;
7352
7352
  }
7353
7353
  case s.TR: {
@@ -7367,7 +7367,7 @@ function Fc(e, t) {
7367
7367
  t.tagID === s.TEMPLATE && ut(e, t);
7368
7368
  }
7369
7369
  function sa(e, t) {
7370
- e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Lr(e, t);
7370
+ e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Dr(e, t);
7371
7371
  }
7372
7372
  function Hc(e, t) {
7373
7373
  t.tagID === s.HTML ? pe(e, t) : Tn(e, t);
@@ -7457,7 +7457,7 @@ function Qc(e, t) {
7457
7457
  la(e), e._startTagOutsideForeignContent(t);
7458
7458
  else {
7459
7459
  const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
7460
- r === O.MATHML ? Wi(t) : r === O.SVG && (ll(t), Qi(t)), Nr(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
7460
+ r === O.MATHML ? Wi(t) : r === O.SVG && (ll(t), Qi(t)), Or(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
7461
7461
  }
7462
7462
  }
7463
7463
  function Gc(e, t) {
@@ -7640,13 +7640,13 @@ const u0 = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title
7640
7640
  "mdxJsxTextElement",
7641
7641
  "mdxTextExpression",
7642
7642
  "mdxjsEsm"
7643
- ]), Cu = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
7643
+ ]), xu = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
7644
7644
  function da(e, t) {
7645
7645
  const n = p0(e), r = Ri("type", {
7646
7646
  handlers: { root: a0, element: s0, text: o0, comment: pa, doctype: l0, raw: f0 },
7647
7647
  unknown: h0
7648
7648
  }), u = {
7649
- parser: n ? new bu(Cu) : bu.getFragmentParser(void 0, Cu),
7649
+ parser: n ? new Au(xu) : Au.getFragmentParser(void 0, xu),
7650
7650
  handle(o) {
7651
7651
  r(o, u);
7652
7652
  },
@@ -7841,7 +7841,7 @@ function T0(e) {
7841
7841
  );
7842
7842
  };
7843
7843
  }
7844
- function xu(e, t) {
7844
+ function Iu(e, t) {
7845
7845
  const n = String(e);
7846
7846
  if (typeof t != "string")
7847
7847
  throw new TypeError("Expected character");
@@ -8050,8 +8050,8 @@ function B0(e) {
8050
8050
  return [e, void 0];
8051
8051
  e = e.slice(0, t.index);
8052
8052
  let n = t[0], r = n.indexOf(")");
8053
- const u = xu(e, "(");
8054
- let i = xu(e, ")");
8053
+ const u = Iu(e, "(");
8054
+ let i = Iu(e, ")");
8055
8055
  for (; r !== -1 && u > i; )
8056
8056
  e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), i++;
8057
8057
  return [e, n];
@@ -8221,9 +8221,9 @@ function nf(e, t) {
8221
8221
  let f = -1;
8222
8222
  if (typeof r == "object" && "length" in r)
8223
8223
  for (; ++f < c; )
8224
- i[f] = Iu(r[f]);
8224
+ i[f] = ku(r[f]);
8225
8225
  else {
8226
- const k = Iu(r);
8226
+ const k = ku(r);
8227
8227
  for (; ++f < c; )
8228
8228
  i[f] = k;
8229
8229
  }
@@ -8267,7 +8267,7 @@ function nf(e, t) {
8267
8267
  function rf(e) {
8268
8268
  return e == null ? "" : String(e);
8269
8269
  }
8270
- function Iu(e) {
8270
+ function ku(e) {
8271
8271
  const t = typeof e == "string" ? e.codePointAt(0) : 0;
8272
8272
  return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
8273
8273
  }
@@ -8284,9 +8284,9 @@ function af(e, t, n) {
8284
8284
  return ">" + (n ? "" : " ") + e;
8285
8285
  }
8286
8286
  function sf(e, t) {
8287
- return ku(e, t.inConstruct, !0) && !ku(e, t.notInConstruct, !1);
8287
+ return Su(e, t.inConstruct, !0) && !Su(e, t.notInConstruct, !1);
8288
8288
  }
8289
- function ku(e, t, n) {
8289
+ function Su(e, t, n) {
8290
8290
  if (typeof t == "string" && (t = [t]), !t || t.length === 0)
8291
8291
  return n;
8292
8292
  let r = -1;
@@ -8295,7 +8295,7 @@ function ku(e, t, n) {
8295
8295
  return !0;
8296
8296
  return !1;
8297
8297
  }
8298
- function Su(e, t, n, r) {
8298
+ function yu(e, t, n, r) {
8299
8299
  let u = -1;
8300
8300
  for (; ++u < n.unsafe.length; )
8301
8301
  if (n.unsafe[u].character === `
@@ -8365,7 +8365,7 @@ function ff(e, t, n, r) {
8365
8365
  function hf(e, t, n) {
8366
8366
  return (n ? "" : " ") + e;
8367
8367
  }
8368
- function Rr(e) {
8368
+ function Pr(e) {
8369
8369
  const t = e.options.quote || '"';
8370
8370
  if (t !== '"' && t !== "'")
8371
8371
  throw new Error(
@@ -8374,7 +8374,7 @@ function Rr(e) {
8374
8374
  return t;
8375
8375
  }
8376
8376
  function df(e, t, n, r) {
8377
- const u = Rr(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.enter("definition");
8377
+ const u = Pr(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.enter("definition");
8378
8378
  let o = n.enter("label");
8379
8379
  const l = n.createTracker(r);
8380
8380
  let c = l.move("[");
@@ -8481,7 +8481,7 @@ function pf(e, t, n) {
8481
8481
  return n.options.emphasis || "*";
8482
8482
  }
8483
8483
  const Ef = {};
8484
- function Pr(e, t) {
8484
+ function wr(e, t) {
8485
8485
  const n = Ef, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, u = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
8486
8486
  return Ca(e, r, u);
8487
8487
  }
@@ -8492,11 +8492,11 @@ function Ca(e, t, n) {
8492
8492
  if (t && "alt" in e && e.alt)
8493
8493
  return e.alt;
8494
8494
  if ("children" in e)
8495
- return yu(e.children, t, n);
8495
+ return Nu(e.children, t, n);
8496
8496
  }
8497
- return Array.isArray(e) ? yu(e, t, n) : "";
8497
+ return Array.isArray(e) ? Nu(e, t, n) : "";
8498
8498
  }
8499
- function yu(e, t, n) {
8499
+ function Nu(e, t, n) {
8500
8500
  const r = [];
8501
8501
  let u = -1;
8502
8502
  for (; ++u < e.length; )
@@ -8511,7 +8511,7 @@ function gf(e, t) {
8511
8511
  return Kt(e, function(r) {
8512
8512
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
8513
8513
  return n = !0, lr;
8514
- }), !!((!e.depth || e.depth < 3) && Pr(e) && (t.options.setext || n));
8514
+ }), !!((!e.depth || e.depth < 3) && wr(e) && (t.options.setext || n));
8515
8515
  }
8516
8516
  function bf(e, t, n, r) {
8517
8517
  const u = Math.max(Math.min(6, e.depth || 1), 1), i = n.createTracker(r);
@@ -8551,7 +8551,7 @@ function Af() {
8551
8551
  }
8552
8552
  Ia.peek = _f;
8553
8553
  function Ia(e, t, n, r) {
8554
- const u = Rr(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.enter("image");
8554
+ const u = Pr(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.enter("image");
8555
8555
  let o = n.enter("label");
8556
8556
  const l = n.createTracker(r);
8557
8557
  let c = l.move("![");
@@ -8622,7 +8622,7 @@ function xf() {
8622
8622
  return "`";
8623
8623
  }
8624
8624
  function ya(e, t) {
8625
- const n = Pr(e);
8625
+ const n = wr(e);
8626
8626
  return !!(!t.options.resourceLink && // If there’s a url…
8627
8627
  e.url && // And there’s a no title…
8628
8628
  !e.title && // And the content of `node` is a single text node…
@@ -8634,7 +8634,7 @@ function ya(e, t) {
8634
8634
  }
8635
8635
  Na.peek = If;
8636
8636
  function Na(e, t, n, r) {
8637
- const u = Rr(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.createTracker(r);
8637
+ const u = Pr(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.createTracker(r);
8638
8638
  let o, l;
8639
8639
  if (ya(e, n)) {
8640
8640
  const h = n.stack;
@@ -8701,7 +8701,7 @@ function Oa(e, t, n, r) {
8701
8701
  function kf() {
8702
8702
  return "[";
8703
8703
  }
8704
- function wr(e) {
8704
+ function Mr(e) {
8705
8705
  const t = e.options.bullet || "*";
8706
8706
  if (t !== "*" && t !== "+" && t !== "-")
8707
8707
  throw new Error(
@@ -8710,7 +8710,7 @@ function wr(e) {
8710
8710
  return t;
8711
8711
  }
8712
8712
  function Sf(e) {
8713
- const t = wr(e), n = e.options.bulletOther;
8713
+ const t = Mr(e), n = e.options.bulletOther;
8714
8714
  if (!n)
8715
8715
  return t === "*" ? "-" : "*";
8716
8716
  if (n !== "*" && n !== "+" && n !== "-")
@@ -8741,7 +8741,7 @@ function La(e) {
8741
8741
  }
8742
8742
  function Nf(e, t, n, r) {
8743
8743
  const u = n.enter("list"), i = n.bulletCurrent;
8744
- let a = e.ordered ? yf(n) : wr(n);
8744
+ let a = e.ordered ? yf(n) : Mr(n);
8745
8745
  const o = e.ordered ? a === "." ? ")" : "." : Sf(n);
8746
8746
  let l = t && n.bulletLastUsed ? a === n.bulletLastUsed : !1;
8747
8747
  if (!e.ordered) {
@@ -8777,7 +8777,7 @@ function Of(e) {
8777
8777
  }
8778
8778
  function Lf(e, t, n, r) {
8779
8779
  const u = Of(n);
8780
- let i = n.bulletCurrent || wr(n);
8780
+ let i = n.bulletCurrent || Mr(n);
8781
8781
  t && t.type === "list" && t.ordered && (i = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + i);
8782
8782
  let a = i.length + 1;
8783
8783
  (u === "tab" || u === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (a = Math.ceil(a / 4) * 4);
@@ -8879,11 +8879,11 @@ function Hf(e, t, n) {
8879
8879
  }
8880
8880
  const Ra = {
8881
8881
  blockquote: uf,
8882
- break: Su,
8882
+ break: yu,
8883
8883
  code: ff,
8884
8884
  definition: df,
8885
8885
  emphasis: _a,
8886
- hardBreak: Su,
8886
+ hardBreak: yu,
8887
8887
  heading: bf,
8888
8888
  html: xa,
8889
8889
  image: Ia,
@@ -8903,8 +8903,8 @@ function Uf() {
8903
8903
  return {
8904
8904
  enter: {
8905
8905
  table: vf,
8906
- tableData: Nu,
8907
- tableHeader: Nu,
8906
+ tableData: Ou,
8907
+ tableHeader: Ou,
8908
8908
  tableRow: Yf
8909
8909
  },
8910
8910
  exit: {
@@ -8938,7 +8938,7 @@ function Yf(e) {
8938
8938
  function zn(e) {
8939
8939
  this.exit(e);
8940
8940
  }
8941
- function Nu(e) {
8941
+ function Ou(e) {
8942
8942
  this.enter({ type: "tableCell", children: [] }, e);
8943
8943
  }
8944
8944
  function jf(e) {
@@ -9030,8 +9030,8 @@ function Vf(e) {
9030
9030
  function Wf() {
9031
9031
  return {
9032
9032
  exit: {
9033
- taskListCheckValueChecked: Ou,
9034
- taskListCheckValueUnchecked: Ou,
9033
+ taskListCheckValueChecked: Lu,
9034
+ taskListCheckValueUnchecked: Lu,
9035
9035
  paragraph: Gf
9036
9036
  }
9037
9037
  };
@@ -9042,7 +9042,7 @@ function Qf() {
9042
9042
  handlers: { listItem: Xf }
9043
9043
  };
9044
9044
  }
9045
- function Ou(e) {
9045
+ function Lu(e) {
9046
9046
  const t = this.stack[this.stack.length - 2];
9047
9047
  t.type, t.checked = e.type === "taskListCheckValueChecked";
9048
9048
  }
@@ -9108,7 +9108,7 @@ function cn(e, t, n, r) {
9108
9108
  for (n && e.splice(t, n); i < r.length; )
9109
9109
  a = r.slice(i, i + 1e4), a.unshift(t, 0), e.splice(...a), i += 1e4, t += 1e4;
9110
9110
  }
9111
- const Lu = {}.hasOwnProperty;
9111
+ const Du = {}.hasOwnProperty;
9112
9112
  function Jf(e) {
9113
9113
  const t = {};
9114
9114
  let n = -1;
@@ -9119,11 +9119,11 @@ function Jf(e) {
9119
9119
  function Zf(e, t) {
9120
9120
  let n;
9121
9121
  for (n in t) {
9122
- const u = (Lu.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n];
9122
+ const u = (Du.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n];
9123
9123
  let a;
9124
9124
  if (i)
9125
9125
  for (a in i) {
9126
- Lu.call(u, a) || (u[a] = []);
9126
+ Du.call(u, a) || (u[a] = []);
9127
9127
  const o = i[a];
9128
9128
  eh(
9129
9129
  // @ts-expect-error Looks like a list.
@@ -9189,7 +9189,7 @@ function uh(e, t, n) {
9189
9189
  let u, i;
9190
9190
  return a;
9191
9191
  function a(f) {
9192
- return !fr(f) || !va.call(r, r.previous) || Mr(r.events) ? n(f) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), o(f));
9192
+ return !fr(f) || !va.call(r, r.previous) || Br(r.events) ? n(f) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), o(f));
9193
9193
  }
9194
9194
  function o(f) {
9195
9195
  return fr(f) ? (e.consume(f), o) : f === 64 ? (e.consume(f), l) : n(f);
@@ -9208,7 +9208,7 @@ function ih(e, t, n) {
9208
9208
  const r = this;
9209
9209
  return u;
9210
9210
  function u(a) {
9211
- return a !== 87 && a !== 119 || !Ha.call(r, r.previous) || Mr(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(th, e.attempt(Pa, e.attempt(wa, i), n), n)(a));
9211
+ return a !== 87 && a !== 119 || !Ha.call(r, r.previous) || Br(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(th, e.attempt(Pa, e.attempt(wa, i), n), n)(a));
9212
9212
  }
9213
9213
  function i(a) {
9214
9214
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(a);
@@ -9219,7 +9219,7 @@ function ah(e, t, n) {
9219
9219
  let u = "", i = !1;
9220
9220
  return a;
9221
9221
  function a(f) {
9222
- return (f === 72 || f === 104) && Ua.call(r, r.previous) && !Mr(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), u += String.fromCodePoint(f), e.consume(f), o) : n(f);
9222
+ return (f === 72 || f === 104) && Ua.call(r, r.previous) && !Br(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), u += String.fromCodePoint(f), e.consume(f), o) : n(f);
9223
9223
  }
9224
9224
  function o(f) {
9225
9225
  if (Te(f) && u.length < 5)
@@ -9314,7 +9314,7 @@ function va(e) {
9314
9314
  function fr(e) {
9315
9315
  return e === 43 || e === 45 || e === 46 || e === 95 || me(e);
9316
9316
  }
9317
- function Mr(e) {
9317
+ function Br(e) {
9318
9318
  let t = e.length, n = !1;
9319
9319
  for (; t--; ) {
9320
9320
  const r = e[t][1];
@@ -9789,7 +9789,7 @@ function Lh(e, t) {
9789
9789
  const E = new kh();
9790
9790
  for (; ++n < e.length; ) {
9791
9791
  const m = e[n], A = m[1];
9792
- m[0] === "enter" ? A.type === "tableHead" ? (o = !1, l !== 0 && (Du(E, t, l, c, h), h = void 0, l = 0), c = {
9792
+ m[0] === "enter" ? A.type === "tableHead" ? (o = !1, l !== 0 && (Ru(E, t, l, c, h), h = void 0, l = 0), c = {
9793
9793
  type: "table",
9794
9794
  start: Object.assign({}, A.start),
9795
9795
  // Note: correct end is set later.
@@ -9801,7 +9801,7 @@ function Lh(e, t) {
9801
9801
  end: Object.assign({}, A.end)
9802
9802
  }, E.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, a[2] === 0 && (i[1] !== 0 && (a[0] = a[1], f = rn(E, t, i, u, void 0, f), i = [0, 0, 0, 0]), a[2] = n)) : A.type === "tableCellDivider" && (r ? r = !1 : (i[1] !== 0 && (a[0] = a[1], f = rn(E, t, i, u, void 0, f)), i = a, a = [i[1], n, 0, 0])) : A.type === "tableHead" ? (o = !0, l = n) : A.type === "tableRow" || A.type === "tableDelimiterRow" ? (l = n, i[1] !== 0 ? (a[0] = a[1], f = rn(E, t, i, u, n, f)) : a[1] !== 0 && (f = rn(E, t, a, u, n, f)), u = 0) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") && (a[3] = n);
9803
9803
  }
9804
- for (l !== 0 && Du(E, t, l, c, h), E.consume(t.events), n = -1; ++n < t.events.length; ) {
9804
+ for (l !== 0 && Ru(E, t, l, c, h), E.consume(t.events), n = -1; ++n < t.events.length; ) {
9805
9805
  const m = t.events[n];
9806
9806
  m[0] === "enter" && m[1].type === "table" && (m[1]._align = yh(t.events, n));
9807
9807
  }
@@ -9833,7 +9833,7 @@ function rn(e, t, n, r, u, i) {
9833
9833
  }
9834
9834
  return u !== void 0 && (i.end = Object.assign({}, ft(t.events, u)), e.add(u, 0, [["exit", i, t]]), i = void 0), i;
9835
9835
  }
9836
- function Du(e, t, n, r, u) {
9836
+ function Ru(e, t, n, r, u) {
9837
9837
  const i = [], a = ft(t.events, n);
9838
9838
  u && (u.end = Object.assign({}, a), i.push(["exit", u, t])), r.end = Object.assign({}, a), i.push(["exit", r, t]), e.add(n + 1, 0, i);
9839
9839
  }
@@ -9913,7 +9913,7 @@ const za = Ss(
9913
9913
  const u = e.current;
9914
9914
  if (u)
9915
9915
  return t(u), () => n(u);
9916
- }, [t, n]), { ref: fi((u) => {
9916
+ }, [t, n]), { ref: hi((u) => {
9917
9917
  u && (e.current = u);
9918
9918
  }, []) };
9919
9919
  }, sE = ({ children: e }) => {
@@ -9936,16 +9936,18 @@ const za = Ss(
9936
9936
  }), []), Yt(() => {
9937
9937
  const l = u.current, c = () => {
9938
9938
  const h = window.scrollY === 0, f = window.innerHeight + window.scrollY >= document.body.scrollHeight;
9939
- h ? n("") : f && requestIdleCallback(() => {
9940
- const E = Array.from(l).pop();
9941
- n((E == null ? void 0 : E.id) ?? "");
9942
- });
9939
+ if (h)
9940
+ n("");
9941
+ else if (f) {
9942
+ const E = Array.from(l).pop(), m = (E == null ? void 0 : E.id) ?? "";
9943
+ n(m);
9944
+ }
9943
9945
  };
9944
9946
  return document.addEventListener("scroll", c), () => {
9945
9947
  l.clear(), document.removeEventListener("scroll", c);
9946
9948
  };
9947
9949
  }, []);
9948
- const a = Kr(() => ({
9950
+ const a = $r(() => ({
9949
9951
  observe: (l) => {
9950
9952
  if (l) {
9951
9953
  if (!r.current) {
@@ -9959,7 +9961,7 @@ const za = Ss(
9959
9961
  var c;
9960
9962
  l && (i.current.delete(l), u.current.delete(l), (c = r.current) == null || c.unobserve(l));
9961
9963
  }
9962
- }), []), o = Kr(
9964
+ }), []), o = $r(
9963
9965
  () => ({ activeAnchor: t, setActiveAnchor: n, ...a }),
9964
9966
  [t, n, a]
9965
9967
  );
@@ -9982,7 +9984,7 @@ const za = Ss(
9982
9984
  indigo: "text-indigo-400 dark:text-indigo-600",
9983
9985
  gray: "text-gray-400 dark:text-gray-600",
9984
9986
  outline: ""
9985
- }, Ru = ({
9987
+ }, Pu = ({
9986
9988
  color: e,
9987
9989
  label: t,
9988
9990
  className: n,
@@ -10120,8 +10122,8 @@ const za = Ss(
10120
10122
  item: e,
10121
10123
  onRequestClose: t
10122
10124
  }) => {
10123
- var u;
10124
- const { activeAnchor: n } = Ln(), [r] = Ls();
10125
+ var i;
10126
+ const n = Ar(), { activeAnchor: r } = Ln(), [u] = Ls();
10125
10127
  switch (e.type) {
10126
10128
  case "category":
10127
10129
  return /* @__PURE__ */ B.jsx(zh, { category: e, onRequestClose: t });
@@ -10129,7 +10131,7 @@ const za = Ss(
10129
10131
  return /* @__PURE__ */ B.jsxs(
10130
10132
  br,
10131
10133
  {
10132
- className: ({ isActive: i }) => fn({ isActive: i }),
10134
+ className: ({ isActive: a }) => fn({ isActive: a }),
10133
10135
  to: mi(e.id),
10134
10136
  onClick: t,
10135
10137
  end: !0,
@@ -10137,7 +10139,7 @@ const za = Ss(
10137
10139
  e.icon && /* @__PURE__ */ B.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
10138
10140
  e.badge ? /* @__PURE__ */ B.jsxs(B.Fragment, { children: [
10139
10141
  /* @__PURE__ */ B.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
10140
- /* @__PURE__ */ B.jsx(Ru, { ...e.badge })
10142
+ /* @__PURE__ */ B.jsx(Pu, { ...e.badge })
10141
10143
  ] }) : e.label
10142
10144
  ]
10143
10145
  }
@@ -10162,17 +10164,17 @@ const za = Ss(
10162
10164
  to: {
10163
10165
  pathname: e.href.split("#")[0],
10164
10166
  hash: e.href.split("#")[1],
10165
- search: r.toString()
10167
+ search: u.toString()
10166
10168
  },
10167
10169
  [Ya]: e.href.split("#")[1],
10168
10170
  className: fn({
10169
- isActive: e.href.split("#")[1] === n,
10170
- className: ((u = e.badge) == null ? void 0 : u.placement) !== "start" && "justify-between"
10171
+ isActive: e.href === [n.pathname, r].join("#"),
10172
+ className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
10171
10173
  }),
10172
10174
  onClick: t,
10173
10175
  children: e.badge ? /* @__PURE__ */ B.jsxs(B.Fragment, { children: [
10174
10176
  /* @__PURE__ */ B.jsx("span", { className: "truncate", title: e.label, children: e.label }),
10175
- /* @__PURE__ */ B.jsx(Ru, { ...e.badge })
10177
+ /* @__PURE__ */ B.jsx(Pu, { ...e.badge })
10176
10178
  ] }) : /* @__PURE__ */ B.jsx("span", { className: "break-all", children: e.label })
10177
10179
  }
10178
10180
  );
@@ -10183,7 +10185,7 @@ const za = Ss(
10183
10185
  n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
10184
10186
  }, ja = () => {
10185
10187
  const { setActiveAnchor: e } = Ln();
10186
- return fi(
10188
+ return hi(
10187
10189
  (n) => {
10188
10190
  const r = n.replace(/^#/, ""), u = r.split("/").at(0), i = document.getElementById(decodeURIComponent(r)), a = document.querySelector(
10189
10191
  `[${Ya}="${u}"]`
@@ -10193,7 +10195,7 @@ const za = Ss(
10193
10195
  [e]
10194
10196
  );
10195
10197
  }, oE = () => {
10196
- const e = hi(), { setActiveAnchor: t } = Ln(), n = ja();
10198
+ const e = Ar(), { setActiveAnchor: t } = Ln(), n = ja();
10197
10199
  Yt(() => {
10198
10200
  if (e.hash && !n(e.hash)) {
10199
10201
  const r = new MutationObserver((u, i) => {
@@ -10203,11 +10205,11 @@ const za = Ss(
10203
10205
  }
10204
10206
  }, [e.hash, n, t]);
10205
10207
  }, qa = (e) => {
10206
- const t = hi(), n = ja(), r = Ds(e.to).split("#")[1], u = (i) => {
10207
- var a;
10208
- (a = e.onClick) == null || a.call(e, i), r === t.hash.slice(1) && (i.preventDefault(), n(r));
10208
+ const t = Ar(), n = ja(), r = Ds(e.to), [u, i] = r.split("#"), a = (o) => {
10209
+ var l;
10210
+ (l = e.onClick) == null || l.call(e, o), !(i !== t.hash.slice(1) || u !== t.pathname) && (o.preventDefault(), n(i));
10209
10211
  };
10210
- return /* @__PURE__ */ B.jsx(br, { ...e, onClick: u });
10212
+ return /* @__PURE__ */ B.jsx(br, { ...e, onClick: a });
10211
10213
  }, qh = di("group relative", {
10212
10214
  variants: {
10213
10215
  level: {
@@ -10313,7 +10315,7 @@ const za = Ss(
10313
10315
  a: ({ href: e, node: t, ...n }) => e && !e.startsWith("http") ? /* @__PURE__ */ B.jsx(qa, { to: e, relative: "path", ...n }) : /* @__PURE__ */ B.jsx("a", { href: e, target: "_blank", ...n, rel: "noreferrer" }),
10314
10316
  Callout: Je,
10315
10317
  Stepper: Bs,
10316
- SyntaxHighlight: $r,
10318
+ SyntaxHighlight: Jr,
10317
10319
  tip: (e) => /* @__PURE__ */ B.jsx(Je, { type: "tip", ...e }),
10318
10320
  info: (e) => /* @__PURE__ */ B.jsx(Je, { type: "info", ...e }),
10319
10321
  note: (e) => /* @__PURE__ */ B.jsx(Je, { type: "note", ...e }),
@@ -10327,7 +10329,7 @@ const za = Ss(
10327
10329
  return /* @__PURE__ */ B.jsx(Qh, { className: e, children: t });
10328
10330
  const i = e == null ? void 0 : e.match(/language?-(\w+)/);
10329
10331
  return /* @__PURE__ */ B.jsx(
10330
- $r,
10332
+ Jr,
10331
10333
  {
10332
10334
  language: i == null ? void 0 : i[1],
10333
10335
  className: "rounded-xl p-4 border dark:!bg-foreground/10 dark:border-transparent",
@@ -10338,14 +10340,14 @@ const za = Ss(
10338
10340
  );
10339
10341
  }
10340
10342
  }, Xh = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Kh = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, $h = {};
10341
- function Pu(e, t) {
10343
+ function wu(e, t) {
10342
10344
  return ($h.jsx ? Kh : Xh).test(e);
10343
10345
  }
10344
10346
  const Jh = /[ \t\n\f\r]/g;
10345
10347
  function Zh(e) {
10346
- return typeof e == "object" ? e.type === "text" ? wu(e.value) : !1 : wu(e);
10348
+ return typeof e == "object" ? e.type === "text" ? Mu(e.value) : !1 : Mu(e);
10347
10349
  }
10348
- function wu(e) {
10350
+ function Mu(e) {
10349
10351
  return e.replace(Jh, "") === "";
10350
10352
  }
10351
10353
  class Zt {
@@ -10418,7 +10420,7 @@ const dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10418
10420
  /** @type {ReadonlyArray<keyof typeof types>} */
10419
10421
  Object.keys(dr)
10420
10422
  );
10421
- class Br extends Ae {
10423
+ class Fr extends Ae {
10422
10424
  /**
10423
10425
  * @constructor
10424
10426
  * @param {string} property
@@ -10434,21 +10436,21 @@ class Br extends Ae {
10434
10436
  */
10435
10437
  constructor(t, n, r, u) {
10436
10438
  let i = -1;
10437
- if (super(t, n), Mu(this, "space", u), typeof r == "number")
10439
+ if (super(t, n), Bu(this, "space", u), typeof r == "number")
10438
10440
  for (; ++i < Yn.length; ) {
10439
10441
  const a = Yn[i];
10440
- Mu(this, Yn[i], (r & dr[a]) === dr[a]);
10442
+ Bu(this, Yn[i], (r & dr[a]) === dr[a]);
10441
10443
  }
10442
10444
  }
10443
10445
  }
10444
- Br.prototype.defined = !0;
10445
- function Mu(e, t, n) {
10446
+ Fr.prototype.defined = !0;
10447
+ function Bu(e, t, n) {
10446
10448
  n && (e[t] = n);
10447
10449
  }
10448
10450
  function It(e) {
10449
10451
  const t = {}, n = {};
10450
10452
  for (const [r, u] of Object.entries(e.properties)) {
10451
- const i = new Br(
10453
+ const i = new Fr(
10452
10454
  r,
10453
10455
  e.transform(e.attributes || {}, r),
10454
10456
  u,
@@ -11483,7 +11485,7 @@ const td = It({
11483
11485
  xLinkTitle: "xlinkTitle",
11484
11486
  xLinkType: "xlinkType",
11485
11487
  xmlnsXLink: "xmlnsXlink"
11486
- }, ud = /[A-Z]/g, Bu = /-[a-z]/g, id = /^data[-\w.:]+$/i;
11488
+ }, ud = /[A-Z]/g, Fu = /-[a-z]/g, id = /^data[-\w.:]+$/i;
11487
11489
  function ad(e, t) {
11488
11490
  const n = hr(t);
11489
11491
  let r = t, u = Ae;
@@ -11491,16 +11493,16 @@ function ad(e, t) {
11491
11493
  return e.property[e.normal[n]];
11492
11494
  if (n.length > 4 && n.slice(0, 4) === "data" && id.test(t)) {
11493
11495
  if (t.charAt(4) === "-") {
11494
- const i = t.slice(5).replace(Bu, od);
11496
+ const i = t.slice(5).replace(Fu, od);
11495
11497
  r = "data" + i.charAt(0).toUpperCase() + i.slice(1);
11496
11498
  } else {
11497
11499
  const i = t.slice(4);
11498
- if (!Bu.test(i)) {
11500
+ if (!Fu.test(i)) {
11499
11501
  let a = i.replace(ud, sd);
11500
11502
  a.charAt(0) !== "-" && (a = "-" + a), t = "data" + a;
11501
11503
  }
11502
11504
  }
11503
- u = Br;
11505
+ u = Fr;
11504
11506
  }
11505
11507
  return new u(r, t);
11506
11508
  }
@@ -11510,11 +11512,11 @@ function sd(e) {
11510
11512
  function od(e) {
11511
11513
  return e.charAt(1).toUpperCase();
11512
11514
  }
11513
- const ld = Va([Qa, td, Ka, $a, Ja], "html"), Fr = Va([Qa, nd, Ka, $a, Ja], "svg");
11514
- var ct = {}, jn, Fu;
11515
+ const ld = Va([Qa, td, Ka, $a, Ja], "html"), Hr = Va([Qa, nd, Ka, $a, Ja], "svg");
11516
+ var ct = {}, jn, Hu;
11515
11517
  function cd() {
11516
- if (Fu) return jn;
11517
- Fu = 1;
11518
+ if (Hu) return jn;
11519
+ Hu = 1;
11518
11520
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, u = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, a = /^[;\s]*/, o = /^\s+|\s+$/g, l = `
11519
11521
  `, c = "/", h = "*", f = "", E = "comment", m = "declaration";
11520
11522
  jn = function(k, L) {
@@ -11601,10 +11603,10 @@ function cd() {
11601
11603
  }
11602
11604
  return jn;
11603
11605
  }
11604
- var Hu;
11606
+ var Uu;
11605
11607
  function fd() {
11606
- if (Hu) return ct;
11607
- Hu = 1;
11608
+ if (Uu) return ct;
11609
+ Uu = 1;
11608
11610
  var e = ct && ct.__importDefault || function(r) {
11609
11611
  return r && r.__esModule ? r : { default: r };
11610
11612
  };
@@ -11624,10 +11626,10 @@ function fd() {
11624
11626
  }
11625
11627
  return ct;
11626
11628
  }
11627
- var Rt = {}, Uu;
11629
+ var Rt = {}, vu;
11628
11630
  function hd() {
11629
- if (Uu) return Rt;
11630
- Uu = 1, Object.defineProperty(Rt, "__esModule", { value: !0 }), Rt.camelCase = void 0;
11631
+ if (vu) return Rt;
11632
+ vu = 1, Object.defineProperty(Rt, "__esModule", { value: !0 }), Rt.camelCase = void 0;
11631
11633
  var e = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, n = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, u = /^-(ms)-/, i = function(c) {
11632
11634
  return !c || n.test(c) || e.test(c);
11633
11635
  }, a = function(c, h) {
@@ -11639,10 +11641,10 @@ function hd() {
11639
11641
  };
11640
11642
  return Rt.camelCase = l, Rt;
11641
11643
  }
11642
- var Pt, vu;
11644
+ var Pt, zu;
11643
11645
  function dd() {
11644
- if (vu) return Pt;
11645
- vu = 1;
11646
+ if (zu) return Pt;
11647
+ zu = 1;
11646
11648
  var e = Pt && Pt.__importDefault || function(u) {
11647
11649
  return u && u.__esModule ? u : { default: u };
11648
11650
  }, t = e(fd()), n = hd();
@@ -11657,15 +11659,15 @@ function dd() {
11657
11659
  var md = dd();
11658
11660
  const pd = /* @__PURE__ */ pi(md);
11659
11661
  function zt(e) {
11660
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? zu(e.position) : "start" in e || "end" in e ? zu(e) : "line" in e || "column" in e ? mr(e) : "";
11662
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Yu(e.position) : "start" in e || "end" in e ? Yu(e) : "line" in e || "column" in e ? mr(e) : "";
11661
11663
  }
11662
11664
  function mr(e) {
11663
- return Yu(e && e.line) + ":" + Yu(e && e.column);
11665
+ return ju(e && e.line) + ":" + ju(e && e.column);
11664
11666
  }
11665
- function zu(e) {
11667
+ function Yu(e) {
11666
11668
  return mr(e && e.start) + "-" + mr(e && e.end);
11667
11669
  }
11668
- function Yu(e) {
11670
+ function ju(e) {
11669
11671
  return e && typeof e == "number" ? e : 1;
11670
11672
  }
11671
11673
  class Ee extends Error {
@@ -11755,7 +11757,7 @@ Ee.prototype.fatal = void 0;
11755
11757
  Ee.prototype.place = void 0;
11756
11758
  Ee.prototype.ruleId = void 0;
11757
11759
  Ee.prototype.source = void 0;
11758
- const Hr = {}.hasOwnProperty, Ed = /* @__PURE__ */ new Map(), Td = /[A-Z]/g, gd = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), bd = /* @__PURE__ */ new Set(["td", "th"]), Za = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
11760
+ const Ur = {}.hasOwnProperty, Ed = /* @__PURE__ */ new Map(), Td = /[A-Z]/g, gd = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), bd = /* @__PURE__ */ new Set(["td", "th"]), Za = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
11759
11761
  function Ad(e, t) {
11760
11762
  if (!t || t.Fragment === void 0)
11761
11763
  throw new TypeError("Expected `Fragment` in options");
@@ -11785,7 +11787,7 @@ function Ad(e, t) {
11785
11787
  ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
11786
11788
  passKeys: t.passKeys !== !1,
11787
11789
  passNode: t.passNode || !1,
11788
- schema: t.space === "svg" ? Fr : ld,
11790
+ schema: t.space === "svg" ? Hr : ld,
11789
11791
  stylePropertyNameCase: t.stylePropertyNameCase || "dom",
11790
11792
  tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
11791
11793
  }, i = es(u, e, void 0);
@@ -11813,12 +11815,12 @@ function es(e, t, n) {
11813
11815
  function _d(e, t, n) {
11814
11816
  const r = e.schema;
11815
11817
  let u = r;
11816
- t.tagName.toLowerCase() === "svg" && r.space === "html" && (u = Fr, e.schema = u), e.ancestors.push(t);
11818
+ t.tagName.toLowerCase() === "svg" && r.space === "html" && (u = Hr, e.schema = u), e.ancestors.push(t);
11817
11819
  const i = ns(e, t.tagName, !1), a = Od(e, t);
11818
- let o = vr(e, t);
11820
+ let o = zr(e, t);
11819
11821
  return gd.has(t.tagName) && (o = o.filter(function(l) {
11820
11822
  return typeof l == "string" ? !Zh(l) : !0;
11821
- })), ts(e, a, i, t), Ur(a, o), e.ancestors.pop(), e.schema = r, e.create(t, i, a, n);
11823
+ })), ts(e, a, i, t), vr(a, o), e.ancestors.pop(), e.schema = r, e.create(t, i, a, n);
11822
11824
  }
11823
11825
  function Cd(e, t) {
11824
11826
  if (t.data && t.data.estree && e.evaluater) {
@@ -11839,13 +11841,13 @@ function xd(e, t) {
11839
11841
  function Id(e, t, n) {
11840
11842
  const r = e.schema;
11841
11843
  let u = r;
11842
- t.name === "svg" && r.space === "html" && (u = Fr, e.schema = u), e.ancestors.push(t);
11843
- const i = t.name === null ? e.Fragment : ns(e, t.name, !0), a = Ld(e, t), o = vr(e, t);
11844
- return ts(e, a, i, t), Ur(a, o), e.ancestors.pop(), e.schema = r, e.create(t, i, a, n);
11844
+ t.name === "svg" && r.space === "html" && (u = Hr, e.schema = u), e.ancestors.push(t);
11845
+ const i = t.name === null ? e.Fragment : ns(e, t.name, !0), a = Ld(e, t), o = zr(e, t);
11846
+ return ts(e, a, i, t), vr(a, o), e.ancestors.pop(), e.schema = r, e.create(t, i, a, n);
11845
11847
  }
11846
11848
  function kd(e, t, n) {
11847
11849
  const r = {};
11848
- return Ur(r, vr(e, t)), e.create(t, e.Fragment, r, n);
11850
+ return vr(r, zr(e, t)), e.create(t, e.Fragment, r, n);
11849
11851
  }
11850
11852
  function Sd(e, t) {
11851
11853
  return t.value;
@@ -11853,7 +11855,7 @@ function Sd(e, t) {
11853
11855
  function ts(e, t, n, r) {
11854
11856
  typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
11855
11857
  }
11856
- function Ur(e, t) {
11858
+ function vr(e, t) {
11857
11859
  if (t.length > 0) {
11858
11860
  const n = t.length > 1 ? t : t[0];
11859
11861
  n && (e.children = n);
@@ -11888,7 +11890,7 @@ function Od(e, t) {
11888
11890
  const n = {};
11889
11891
  let r, u;
11890
11892
  for (u in t.properties)
11891
- if (u !== "children" && Hr.call(t.properties, u)) {
11893
+ if (u !== "children" && Ur.call(t.properties, u)) {
11892
11894
  const i = Dd(e, u, t.properties[u]);
11893
11895
  if (i) {
11894
11896
  const [a, o] = i;
@@ -11936,7 +11938,7 @@ function Ld(e, t) {
11936
11938
  }
11937
11939
  return n;
11938
11940
  }
11939
- function vr(e, t) {
11941
+ function zr(e, t) {
11940
11942
  const n = [];
11941
11943
  let r = -1;
11942
11944
  const u = e.passKeys ? /* @__PURE__ */ new Map() : Ed;
@@ -11994,7 +11996,7 @@ function ns(e, t, n) {
11994
11996
  const u = t.split(".");
11995
11997
  let i = -1, a;
11996
11998
  for (; ++i < u.length; ) {
11997
- const o = Pu(u[i]) ? { type: "Identifier", name: u[i] } : { type: "Literal", value: u[i] };
11999
+ const o = wu(u[i]) ? { type: "Identifier", name: u[i] } : { type: "Literal", value: u[i] };
11998
12000
  a = a ? {
11999
12001
  type: "MemberExpression",
12000
12002
  object: a,
@@ -12005,13 +12007,13 @@ function ns(e, t, n) {
12005
12007
  }
12006
12008
  r = a;
12007
12009
  } else
12008
- r = Pu(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
12010
+ r = wu(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
12009
12011
  if (r.type === "Literal") {
12010
12012
  const u = (
12011
12013
  /** @type {string | number} */
12012
12014
  r.value
12013
12015
  );
12014
- return Hr.call(e.components, u) ? e.components[u] : u;
12016
+ return Ur.call(e.components, u) ? e.components[u] : u;
12015
12017
  }
12016
12018
  if (e.evaluater)
12017
12019
  return e.evaluater.evaluateExpression(r);
@@ -12033,7 +12035,7 @@ function Pd(e) {
12033
12035
  const t = {};
12034
12036
  let n;
12035
12037
  for (n in e)
12036
- Hr.call(e, n) && (t[wd(n)] = e[n]);
12038
+ Ur.call(e, n) && (t[wd(n)] = e[n]);
12037
12039
  return t;
12038
12040
  }
12039
12041
  function wd(e) {
@@ -12065,11 +12067,11 @@ const qn = {
12065
12067
  "track",
12066
12068
  "video"
12067
12069
  ]
12068
- }, ju = typeof document < "u" && document.createElement("i");
12069
- function zr(e) {
12070
+ }, qu = typeof document < "u" && document.createElement("i");
12071
+ function Yr(e) {
12070
12072
  const t = "&" + e + ";";
12071
- ju.innerHTML = t;
12072
- const n = ju.textContent;
12073
+ qu.innerHTML = t;
12074
+ const n = qu.textContent;
12073
12075
  return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
12074
12076
  }
12075
12077
  function we(e, t, n, r) {
@@ -12084,7 +12086,7 @@ function we(e, t, n, r) {
12084
12086
  function ke(e, t) {
12085
12087
  return e.length > 0 ? (we(e, e.length, 0, t), e) : t;
12086
12088
  }
12087
- const qu = {}.hasOwnProperty;
12089
+ const Vu = {}.hasOwnProperty;
12088
12090
  function Bd(e) {
12089
12091
  const t = {};
12090
12092
  let n = -1;
@@ -12095,11 +12097,11 @@ function Bd(e) {
12095
12097
  function Fd(e, t) {
12096
12098
  let n;
12097
12099
  for (n in t) {
12098
- const u = (qu.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n];
12100
+ const u = (Vu.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n];
12099
12101
  let a;
12100
12102
  if (i)
12101
12103
  for (a in i) {
12102
- qu.call(u, a) || (u[a] = []);
12104
+ Vu.call(u, a) || (u[a] = []);
12103
12105
  const o = i[a];
12104
12106
  Hd(
12105
12107
  // @ts-expect-error Looks like a list.
@@ -12189,7 +12191,7 @@ function vd(e) {
12189
12191
  }
12190
12192
  const zd = {
12191
12193
  tokenize: Yd
12192
- }, Vu = {
12194
+ }, Wu = {
12193
12195
  tokenize: jd
12194
12196
  };
12195
12197
  function Yd(e) {
@@ -12239,7 +12241,7 @@ function Yd(e) {
12239
12241
  t.interrupt = !!(u.currentConstruct && !u._gfmTableDynamicInterruptHack);
12240
12242
  }
12241
12243
  return t.containerState = {}, e.check(
12242
- Vu,
12244
+ Wu,
12243
12245
  h,
12244
12246
  f
12245
12247
  )(D);
@@ -12252,7 +12254,7 @@ function Yd(e) {
12252
12254
  }
12253
12255
  function E(D) {
12254
12256
  return t.containerState = {}, e.attempt(
12255
- Vu,
12257
+ Wu,
12256
12258
  m,
12257
12259
  A
12258
12260
  )(D);
@@ -12330,7 +12332,7 @@ function jd(e, t, n) {
12330
12332
  this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
12331
12333
  );
12332
12334
  }
12333
- function Yr(e, t, n) {
12335
+ function jr(e, t, n) {
12334
12336
  const r = [];
12335
12337
  let u = -1;
12336
12338
  for (; ++u < e.length; ) {
@@ -12355,7 +12357,7 @@ function qd(e, t) {
12355
12357
  continue;
12356
12358
  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;
12357
12359
  const f = Object.assign({}, e[r][1].end), E = Object.assign({}, e[n][1].start);
12358
- Wu(f, -l), Wu(E, l), a = {
12360
+ Qu(f, -l), Qu(E, l), a = {
12359
12361
  type: l > 1 ? "strongSequence" : "emphasisSequence",
12360
12362
  start: f,
12361
12363
  end: Object.assign({}, e[r][1].end)
@@ -12381,7 +12383,7 @@ function qd(e, t) {
12381
12383
  ["enter", i, t]
12382
12384
  ]), c = ke(
12383
12385
  c,
12384
- Yr(
12386
+ jr(
12385
12387
  t.parser.constructs.insideSpan.null,
12386
12388
  e.slice(r + 1, n),
12387
12389
  t
@@ -12416,7 +12418,7 @@ function Vd(e, t) {
12416
12418
  return c._open = !!(i === 42 ? f : f && (u || !E)), c._close = !!(i === 42 ? E : E && (h || !f)), t(l);
12417
12419
  }
12418
12420
  }
12419
- function Wu(e, t) {
12421
+ function Qu(e, t) {
12420
12422
  e.column += t, e.offset += t, e._bufferIndex += t;
12421
12423
  }
12422
12424
  const Wd = {
@@ -12546,15 +12548,15 @@ function Zd(e, t, n) {
12546
12548
  function h(f) {
12547
12549
  if (f === 59 && u) {
12548
12550
  const E = e.exit("characterReferenceValue");
12549
- return a === me && !zr(r.sliceSerialize(E)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
12551
+ return a === me && !Yr(r.sliceSerialize(E)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
12550
12552
  }
12551
12553
  return a(f) && u++ < i ? (e.consume(f), h) : n(f);
12552
12554
  }
12553
12555
  }
12554
- const Qu = {
12556
+ const Gu = {
12555
12557
  tokenize: tm,
12556
12558
  partial: !0
12557
- }, Gu = {
12559
+ }, Xu = {
12558
12560
  name: "codeFenced",
12559
12561
  tokenize: em,
12560
12562
  concrete: !0
@@ -12577,7 +12579,7 @@ function em(e, t, n) {
12577
12579
  return S === o ? (a++, e.consume(S), h) : a < 3 ? n(S) : (e.exit("codeFencedFenceSequence"), K(S) ? J(e, f, "whitespace")(S) : f(S));
12578
12580
  }
12579
12581
  function f(S) {
12580
- return S === null || z(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(Qu, k, Y)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
12582
+ return S === null || z(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(Gu, k, Y)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
12581
12583
  contentType: "string"
12582
12584
  }), E(S));
12583
12585
  }
@@ -12607,7 +12609,7 @@ function em(e, t, n) {
12607
12609
  )(S) : N(S);
12608
12610
  }
12609
12611
  function N(S) {
12610
- return S === null || z(S) ? e.check(Qu, k, Y)(S) : (e.enter("codeFlowValue"), D(S));
12612
+ return S === null || z(S) ? e.check(Gu, k, Y)(S) : (e.enter("codeFlowValue"), D(S));
12611
12613
  }
12612
12614
  function D(S) {
12613
12615
  return S === null || z(S) ? (e.exit("codeFlowValue"), N(S)) : (e.consume(S), D);
@@ -13090,7 +13092,7 @@ const Im = [
13090
13092
  "tr",
13091
13093
  "track",
13092
13094
  "ul"
13093
- ], Xu = ["pre", "script", "style", "textarea"], km = {
13095
+ ], Ku = ["pre", "script", "style", "textarea"], km = {
13094
13096
  name: "htmlFlow",
13095
13097
  tokenize: Om,
13096
13098
  resolveTo: Nm,
@@ -13137,7 +13139,7 @@ function Om(e, t, n) {
13137
13139
  function L(b) {
13138
13140
  if (b === null || b === 47 || b === 62 || ne(b)) {
13139
13141
  const Oe = b === 47, Xe = a.toLowerCase();
13140
- return !Oe && !i && Xu.includes(Xe) ? (u = 1, r.interrupt ? t(b) : U(b)) : Im.includes(a.toLowerCase()) ? (u = 6, Oe ? (e.consume(b), C) : r.interrupt ? t(b) : U(b)) : (u = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : i ? N(b) : D(b));
13142
+ return !Oe && !i && Ku.includes(Xe) ? (u = 1, r.interrupt ? t(b) : U(b)) : Im.includes(a.toLowerCase()) ? (u = 6, Oe ? (e.consume(b), C) : r.interrupt ? t(b) : U(b)) : (u = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : i ? N(b) : D(b));
13141
13143
  }
13142
13144
  return b === 45 || me(b) ? (e.consume(b), a += String.fromCharCode(b), L) : n(b);
13143
13145
  }
@@ -13203,7 +13205,7 @@ function Om(e, t, n) {
13203
13205
  function ye(b) {
13204
13206
  if (b === 62) {
13205
13207
  const Oe = a.toLowerCase();
13206
- return Xu.includes(Oe) ? (e.consume(b), Ne) : U(b);
13208
+ return Ku.includes(Oe) ? (e.consume(b), Ne) : U(b);
13207
13209
  }
13208
13210
  return Te(b) && a.length < 8 ? (e.consume(b), a += String.fromCharCode(b), ye) : U(b);
13209
13211
  }
@@ -13338,7 +13340,7 @@ function Pm(e, t, n) {
13338
13340
  return e.enter("htmlTextData"), a(g);
13339
13341
  }
13340
13342
  }
13341
- const jr = {
13343
+ const qr = {
13342
13344
  name: "labelEnd",
13343
13345
  tokenize: Um,
13344
13346
  resolveTo: Hm,
@@ -13389,7 +13391,7 @@ function Hm(e, t) {
13389
13391
  ["enter", c, t]
13390
13392
  ], o = ke(o, e.slice(i + 1, i + r + 3)), o = ke(o, [["enter", h, t]]), o = ke(
13391
13393
  o,
13392
- Yr(
13394
+ jr(
13393
13395
  t.parser.constructs.insideSpan.null,
13394
13396
  e.slice(i + r + 4, a - 3),
13395
13397
  t
@@ -13526,7 +13528,7 @@ function Ym(e, t, n) {
13526
13528
  const jm = {
13527
13529
  name: "labelStartImage",
13528
13530
  tokenize: qm,
13529
- resolveAll: jr.resolveAll
13531
+ resolveAll: qr.resolveAll
13530
13532
  };
13531
13533
  function qm(e, t, n) {
13532
13534
  const r = this;
@@ -13544,7 +13546,7 @@ function qm(e, t, n) {
13544
13546
  const Vm = {
13545
13547
  name: "labelStartLink",
13546
13548
  tokenize: Wm,
13547
- resolveAll: jr.resolveAll
13549
+ resolveAll: qr.resolveAll
13548
13550
  };
13549
13551
  function Wm(e, t, n) {
13550
13552
  const r = this;
@@ -13693,7 +13695,7 @@ function tp(e, t, n) {
13693
13695
  return !K(i) && a && a[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
13694
13696
  }
13695
13697
  }
13696
- const Ku = {
13698
+ const $u = {
13697
13699
  name: "setextUnderline",
13698
13700
  tokenize: rp,
13699
13701
  resolveTo: np
@@ -13909,7 +13911,7 @@ function cp(e, t, n) {
13909
13911
  let h = t.tokenize.call(c, l);
13910
13912
  return t.resolveAll && i.push(t), c;
13911
13913
  function f(H) {
13912
- return a = ke(a, H), L(), a[a.length - 1] !== null ? [] : (Z(t, 0), c.events = Yr(i, c.events, c), c.events);
13914
+ return a = ke(a, H), L(), a[a.length - 1] !== null ? [] : (Z(t, 0), c.events = jr(i, c.events, c), c.events);
13913
13915
  }
13914
13916
  function E(H, U) {
13915
13917
  return hp(m(H), U);
@@ -14107,12 +14109,12 @@ const dp = {
14107
14109
  }, Ep = {
14108
14110
  35: _m,
14109
14111
  42: hn,
14110
- 45: [Ku, hn],
14112
+ 45: [$u, hn],
14111
14113
  60: km,
14112
- 61: Ku,
14114
+ 61: $u,
14113
14115
  95: hn,
14114
- 96: Gu,
14115
- 126: Gu
14116
+ 96: Xu,
14117
+ 126: Xu
14116
14118
  }, Tp = {
14117
14119
  38: as,
14118
14120
  92: is
@@ -14126,7 +14128,7 @@ const dp = {
14126
14128
  60: [Wd, Rm],
14127
14129
  91: Vm,
14128
14130
  92: [bm, is],
14129
- 93: jr,
14131
+ 93: qr,
14130
14132
  95: pr,
14131
14133
  96: im
14132
14134
  }, bp = {
@@ -14174,7 +14176,7 @@ function Ip(e) {
14174
14176
  ;
14175
14177
  return e;
14176
14178
  }
14177
- const $u = /[\0\t\n\r]/g;
14179
+ const Ju = /[\0\t\n\r]/g;
14178
14180
  function kp() {
14179
14181
  let e = 1, t = "", n = !0, r;
14180
14182
  return u;
@@ -14182,7 +14184,7 @@ function kp() {
14182
14184
  const l = [];
14183
14185
  let c, h, f, E, m;
14184
14186
  for (i = t + (typeof i == "string" ? i.toString() : new TextDecoder(a || void 0).decode(i)), f = 0, t = "", n && (i.charCodeAt(0) === 65279 && f++, n = void 0); f < i.length; ) {
14185
- if ($u.lastIndex = f, c = $u.exec(i), E = c && c.index !== void 0 ? c.index : i.length, m = i.charCodeAt(E), !c) {
14187
+ if (Ju.lastIndex = f, c = Ju.exec(i), E = c && c.index !== void 0 ? c.index : i.length, m = i.charCodeAt(E), !c) {
14186
14188
  t = i.slice(f);
14187
14189
  break;
14188
14190
  }
@@ -14221,7 +14223,7 @@ function Np(e, t, n) {
14221
14223
  const u = n.charCodeAt(1), i = u === 120 || u === 88;
14222
14224
  return rs(n.slice(i ? 2 : 1), i ? 16 : 10);
14223
14225
  }
14224
- return zr(n) || e;
14226
+ return Yr(n) || e;
14225
14227
  }
14226
14228
  const ds = {}.hasOwnProperty;
14227
14229
  function Op(e, t, n) {
@@ -14236,10 +14238,10 @@ function Lp(e) {
14236
14238
  transforms: [],
14237
14239
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
14238
14240
  enter: {
14239
- autolink: i(Gr),
14241
+ autolink: i(Xr),
14240
14242
  autolinkProtocol: ee,
14241
14243
  autolinkEmail: ee,
14242
- atxHeading: i(Vr),
14244
+ atxHeading: i(Wr),
14243
14245
  blockQuote: i(at),
14244
14246
  characterEscape: ee,
14245
14247
  characterReference: ee,
@@ -14256,25 +14258,25 @@ function Lp(e) {
14256
14258
  definitionLabelString: a,
14257
14259
  definitionTitleString: a,
14258
14260
  emphasis: i(bs),
14259
- hardBreakEscape: i(Wr),
14260
- hardBreakTrailing: i(Wr),
14261
- htmlFlow: i(Qr, a),
14261
+ hardBreakEscape: i(Qr),
14262
+ hardBreakTrailing: i(Qr),
14263
+ htmlFlow: i(Gr, a),
14262
14264
  htmlFlowData: ee,
14263
- htmlText: i(Qr, a),
14265
+ htmlText: i(Gr, a),
14264
14266
  htmlTextData: ee,
14265
14267
  image: i(As),
14266
14268
  label: a,
14267
- link: i(Gr),
14269
+ link: i(Xr),
14268
14270
  listItem: i(_s),
14269
14271
  listItemValue: E,
14270
- listOrdered: i(Xr, f),
14271
- listUnordered: i(Xr),
14272
+ listOrdered: i(Kr, f),
14273
+ listUnordered: i(Kr),
14272
14274
  paragraph: i(Cs),
14273
14275
  reference: b,
14274
14276
  referenceString: a,
14275
14277
  resourceDestinationString: a,
14276
14278
  resourceTitleString: a,
14277
- setextHeading: i(Vr),
14279
+ setextHeading: i(Wr),
14278
14280
  strong: i(xs),
14279
14281
  thematicBreak: i(ks)
14280
14282
  },
@@ -14370,7 +14372,7 @@ function Lp(e) {
14370
14372
  }
14371
14373
  if (V.tokenStack.length > 0) {
14372
14374
  const Le = V.tokenStack[V.tokenStack.length - 1];
14373
- (Le[1] || Ju).call(V, void 0, Le[0]);
14375
+ (Le[1] || Zu).call(V, void 0, Le[0]);
14374
14376
  }
14375
14377
  for (M.position = {
14376
14378
  start: qe(
@@ -14472,7 +14474,7 @@ function Lp(e) {
14472
14474
  function c(y, M) {
14473
14475
  const V = this.stack.pop(), $ = this.tokenStack.pop();
14474
14476
  if ($)
14475
- $[0].type !== y.type && (M ? M.call(this, y, $[0]) : ($[1] || Ju).call(this, y, $[0]));
14477
+ $[0].type !== y.type && (M ? M.call(this, y, $[0]) : ($[1] || Zu).call(this, y, $[0]));
14476
14478
  else throw new Error(
14477
14479
  "Cannot close `" + y.type + "` (" + zt({
14478
14480
  start: y.start,
@@ -14482,7 +14484,7 @@ function Lp(e) {
14482
14484
  V.position.end = qe(y.end);
14483
14485
  }
14484
14486
  function h() {
14485
- return Pr(this.stack.pop());
14487
+ return wr(this.stack.pop());
14486
14488
  }
14487
14489
  function f() {
14488
14490
  this.data.expectingFirstListItemValue = !0;
@@ -14639,7 +14641,7 @@ function Lp(e) {
14639
14641
  V ? ($ = rs(
14640
14642
  M,
14641
14643
  V === "characterReferenceMarkerNumeric" ? 10 : 16
14642
- ), this.data.characterReferenceType = void 0) : $ = zr(M);
14644
+ ), this.data.characterReferenceType = void 0) : $ = Yr(M);
14643
14645
  const te = this.stack.pop();
14644
14646
  te.value += $, te.position.end = qe(y.end);
14645
14647
  }
@@ -14688,7 +14690,7 @@ function Lp(e) {
14688
14690
  children: []
14689
14691
  };
14690
14692
  }
14691
- function Vr() {
14693
+ function Wr() {
14692
14694
  return {
14693
14695
  type: "heading",
14694
14696
  // @ts-expect-error `depth` will be set later.
@@ -14696,12 +14698,12 @@ function Lp(e) {
14696
14698
  children: []
14697
14699
  };
14698
14700
  }
14699
- function Wr() {
14701
+ function Qr() {
14700
14702
  return {
14701
14703
  type: "break"
14702
14704
  };
14703
14705
  }
14704
- function Qr() {
14706
+ function Gr() {
14705
14707
  return {
14706
14708
  type: "html",
14707
14709
  value: ""
@@ -14715,7 +14717,7 @@ function Lp(e) {
14715
14717
  alt: null
14716
14718
  };
14717
14719
  }
14718
- function Gr() {
14720
+ function Xr() {
14719
14721
  return {
14720
14722
  type: "link",
14721
14723
  title: null,
@@ -14723,7 +14725,7 @@ function Lp(e) {
14723
14725
  children: []
14724
14726
  };
14725
14727
  }
14726
- function Xr(y) {
14728
+ function Kr(y) {
14727
14729
  return {
14728
14730
  type: "list",
14729
14731
  ordered: y.type === "listOrdered",
@@ -14801,7 +14803,7 @@ function Dp(e, t) {
14801
14803
  }
14802
14804
  }
14803
14805
  }
14804
- function Ju(e, t) {
14806
+ function Zu(e, t) {
14805
14807
  throw e ? new Error(
14806
14808
  "Cannot close `" + e.type + "` (" + zt({
14807
14809
  start: e.start,
@@ -15111,28 +15113,28 @@ function e1(e, t) {
15111
15113
  };
15112
15114
  return e.patch(t, n), e.applyData(t, n);
15113
15115
  }
15114
- const Zu = 9, ei = 32;
15116
+ const ei = 9, ti = 32;
15115
15117
  function t1(e) {
15116
15118
  const t = String(e), n = /\r?\n|\r/g;
15117
15119
  let r = n.exec(t), u = 0;
15118
15120
  const i = [];
15119
15121
  for (; r; )
15120
15122
  i.push(
15121
- ti(t.slice(u, r.index), u > 0, !0),
15123
+ ni(t.slice(u, r.index), u > 0, !0),
15122
15124
  r[0]
15123
15125
  ), u = r.index + r[0].length, r = n.exec(t);
15124
- return i.push(ti(t.slice(u), u > 0, !1)), i.join("");
15126
+ return i.push(ni(t.slice(u), u > 0, !1)), i.join("");
15125
15127
  }
15126
- function ti(e, t, n) {
15128
+ function ni(e, t, n) {
15127
15129
  let r = 0, u = e.length;
15128
15130
  if (t) {
15129
15131
  let i = e.codePointAt(r);
15130
- for (; i === Zu || i === ei; )
15132
+ for (; i === ei || i === ti; )
15131
15133
  r++, i = e.codePointAt(r);
15132
15134
  }
15133
15135
  if (n) {
15134
15136
  let i = e.codePointAt(u - 1);
15135
- for (; i === Zu || i === ei; )
15137
+ for (; i === ei || i === ti; )
15136
15138
  u--, i = e.codePointAt(u - 1);
15137
15139
  }
15138
15140
  return u > r ? e.slice(r, u) : "";
@@ -15305,9 +15307,9 @@ function l1(e, t) {
15305
15307
  for (; ++m < E.length; ) {
15306
15308
  const A = o.one(E[m], h);
15307
15309
  if (A) {
15308
- if (m && E[m - 1].type === "break" && (!Array.isArray(A) && A.type === "text" && (A.value = ni(A.value)), !Array.isArray(A) && A.type === "element")) {
15310
+ if (m && E[m - 1].type === "break" && (!Array.isArray(A) && A.type === "text" && (A.value = ri(A.value)), !Array.isArray(A) && A.type === "element")) {
15309
15311
  const k = A.children[0];
15310
- k && k.type === "text" && (k.value = ni(k.value));
15312
+ k && k.type === "text" && (k.value = ri(k.value));
15311
15313
  }
15312
15314
  Array.isArray(A) ? f.push(...A) : f.push(A);
15313
15315
  }
@@ -15353,13 +15355,13 @@ function d1(e, t) {
15353
15355
  return t && e.length > 0 && n.push({ type: "text", value: `
15354
15356
  ` }), n;
15355
15357
  }
15356
- function ni(e) {
15358
+ function ri(e) {
15357
15359
  let t = 0, n = e.charCodeAt(t);
15358
15360
  for (; n === 9 || n === 32; )
15359
15361
  t++, n = e.charCodeAt(t);
15360
15362
  return e.slice(t);
15361
15363
  }
15362
- function ri(e, t) {
15364
+ function ui(e, t) {
15363
15365
  const n = l1(e, t), r = n.one(e, void 0), u = s1(n), i = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
15364
15366
  return u && i.children.push({ type: "text", value: `
15365
15367
  ` }, u), i;
@@ -15368,24 +15370,24 @@ function m1(e, t) {
15368
15370
  return e && "run" in e ? async function(n, r) {
15369
15371
  const u = (
15370
15372
  /** @type {HastRoot} */
15371
- ri(n, { file: r, ...t })
15373
+ ui(n, { file: r, ...t })
15372
15374
  );
15373
15375
  await e.run(u, r);
15374
15376
  } : function(n, r) {
15375
15377
  return (
15376
15378
  /** @type {HastRoot} */
15377
- ri(n, { file: r, ...e || t })
15379
+ ui(n, { file: r, ...e || t })
15378
15380
  );
15379
15381
  };
15380
15382
  }
15381
- function ui(e) {
15383
+ function ii(e) {
15382
15384
  if (e)
15383
15385
  throw e;
15384
15386
  }
15385
- var Qn, ii;
15387
+ var Qn, ai;
15386
15388
  function p1() {
15387
- if (ii) return Qn;
15388
- ii = 1;
15389
+ if (ai) return Qn;
15390
+ ai = 1;
15389
15391
  var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, u = function(c) {
15390
15392
  return typeof Array.isArray == "function" ? Array.isArray(c) : t.call(c) === "[object Array]";
15391
15393
  }, i = function(c) {
@@ -15729,7 +15731,7 @@ class Ts {
15729
15731
  * Nothing.
15730
15732
  */
15731
15733
  set dirname(t) {
15732
- ai(this.basename, "dirname"), this.path = Re.join(t || "", this.basename);
15734
+ si(this.basename, "dirname"), this.path = Re.join(t || "", this.basename);
15733
15735
  }
15734
15736
  /**
15735
15737
  * Get the extname (including dot) (example: `'.js'`).
@@ -15753,7 +15755,7 @@ class Ts {
15753
15755
  * Nothing.
15754
15756
  */
15755
15757
  set extname(t) {
15756
- if (Kn(t, "extname"), ai(this.dirname, "extname"), t) {
15758
+ if (Kn(t, "extname"), si(this.dirname, "extname"), t) {
15757
15759
  if (t.codePointAt(0) !== 46)
15758
15760
  throw new Error("`extname` must start with `.`");
15759
15761
  if (t.includes(".", 1))
@@ -16030,7 +16032,7 @@ function $n(e, t) {
16030
16032
  if (!e)
16031
16033
  throw new Error("`" + t + "` cannot be empty");
16032
16034
  }
16033
- function ai(e, t) {
16035
+ function si(e, t) {
16034
16036
  if (!e)
16035
16037
  throw new Error("Setting `" + t + "` requires `path` to be set too");
16036
16038
  }
@@ -16059,7 +16061,7 @@ const L1 = (
16059
16061
  return Object.setPrototypeOf(i, r), i;
16060
16062
  }
16061
16063
  ), D1 = {}.hasOwnProperty;
16062
- class qr extends L1 {
16064
+ class Vr extends L1 {
16063
16065
  /**
16064
16066
  * Create a processor.
16065
16067
  */
@@ -16080,7 +16082,7 @@ class qr extends L1 {
16080
16082
  copy() {
16081
16083
  const t = (
16082
16084
  /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
16083
- new qr()
16085
+ new Vr()
16084
16086
  );
16085
16087
  let n = -1;
16086
16088
  for (; ++n < this.attachers.length; ) {
@@ -16308,9 +16310,9 @@ class qr extends L1 {
16308
16310
  */
16309
16311
  processSync(t) {
16310
16312
  let n = !1, r;
16311
- return this.freeze(), Jn("processSync", this.parser || this.Parser), Zn("processSync", this.compiler || this.Compiler), this.process(t, u), oi("processSync", "process", n), r;
16313
+ return this.freeze(), Jn("processSync", this.parser || this.Parser), Zn("processSync", this.compiler || this.Compiler), this.process(t, u), li("processSync", "process", n), r;
16312
16314
  function u(i, a) {
16313
- n = !0, ui(i), r = a;
16315
+ n = !0, ii(i), r = a;
16314
16316
  }
16315
16317
  }
16316
16318
  /**
@@ -16352,7 +16354,7 @@ class qr extends L1 {
16352
16354
  * transformed tree.
16353
16355
  */
16354
16356
  run(t, n, r) {
16355
- si(t), this.freeze();
16357
+ oi(t), this.freeze();
16356
16358
  const u = this.transformers;
16357
16359
  return !r && typeof n == "function" && (r = n, n = void 0), r ? i(void 0, r) : new Promise(i);
16358
16360
  function i(a, o) {
@@ -16386,9 +16388,9 @@ class qr extends L1 {
16386
16388
  */
16387
16389
  runSync(t, n) {
16388
16390
  let r = !1, u;
16389
- return this.run(t, n, i), oi("runSync", "run", r), u;
16391
+ return this.run(t, n, i), li("runSync", "run", r), u;
16390
16392
  function i(a, o) {
16391
- ui(a), u = o, r = !0;
16393
+ ii(a), u = o, r = !0;
16392
16394
  }
16393
16395
  }
16394
16396
  /**
@@ -16423,7 +16425,7 @@ class qr extends L1 {
16423
16425
  stringify(t, n) {
16424
16426
  this.freeze();
16425
16427
  const r = an(n), u = this.compiler || this.Compiler;
16426
- return Zn("stringify", u), si(t), u(t, r);
16428
+ return Zn("stringify", u), oi(t), u(t, r);
16427
16429
  }
16428
16430
  /**
16429
16431
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -16540,7 +16542,7 @@ class qr extends L1 {
16540
16542
  }
16541
16543
  }
16542
16544
  }
16543
- const R1 = new qr().freeze();
16545
+ const R1 = new Vr().freeze();
16544
16546
  function Jn(e, t) {
16545
16547
  if (typeof t != "function")
16546
16548
  throw new TypeError("Cannot `" + e + "` without `parser`");
@@ -16555,11 +16557,11 @@ function er(e, t) {
16555
16557
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
16556
16558
  );
16557
16559
  }
16558
- function si(e) {
16560
+ function oi(e) {
16559
16561
  if (!Tr(e) || typeof e.type != "string")
16560
16562
  throw new TypeError("Expected node, got `" + e + "`");
16561
16563
  }
16562
- function oi(e, t, n) {
16564
+ function li(e, t, n) {
16563
16565
  if (!n)
16564
16566
  throw new Error(
16565
16567
  "`" + e + "` finished async. Use `" + t + "` instead"
@@ -16577,7 +16579,7 @@ function w1(e) {
16577
16579
  function M1(e) {
16578
16580
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
16579
16581
  }
16580
- const B1 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", li = [], ci = {
16582
+ const B1 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", ci = [], fi = {
16581
16583
  allowDangerousHtml: !0
16582
16584
  }, F1 = /^(https?|ircs?|mailto|xmpp)$/i, H1 = [
16583
16585
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
@@ -16617,7 +16619,7 @@ const B1 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
16617
16619
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
16618
16620
  ];
16619
16621
  function U1(e) {
16620
- const t = e.allowedElements, n = e.allowElement, r = e.children || "", u = e.className, i = e.components, a = e.disallowedElements, o = e.rehypePlugins || li, l = e.remarkPlugins || li, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...ci } : ci, h = e.skipHtml, f = e.unwrapDisallowed, E = e.urlTransform || v1, m = R1().use(Rp).use(l).use(m1, c).use(o), A = new Ts();
16622
+ const t = e.allowedElements, n = e.allowElement, r = e.children || "", u = e.className, i = e.components, a = e.disallowedElements, o = e.rehypePlugins || ci, l = e.remarkPlugins || ci, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...fi } : fi, h = e.skipHtml, f = e.unwrapDisallowed, E = e.urlTransform || v1, m = R1().use(Rp).use(l).use(m1, c).use(o), A = new Ts();
16621
16623
  typeof r == "string" && (A.value = r);
16622
16624
  for (const N of H1)
16623
16625
  Object.prototype.hasOwnProperty.call(e, N.from) && (`Unexpected '${N.from}' prop, ` + (N.to ? `use '${N.to}' instead` : "remove it") + ` (see <${B1}#${N.id}> for more info)`, void 0);
@@ -16687,4 +16689,4 @@ export {
16687
16689
  jh as s,
16688
16690
  Ln as u
16689
16691
  };
16690
- //# sourceMappingURL=Markdown-hBN9vkm5.js.map
16692
+ //# sourceMappingURL=Markdown-BlioIqkZ.js.map