@yext/pages-components 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,47 +1,48 @@
1
- import { a as We, b as Dt, j as Ze } from "./index-sidm05Eh.js";
1
+ import { jsxs as Er, jsx as Ir, Fragment as Tr } from "react/jsx-runtime.js";
2
2
  import "react";
3
- const Vn = 9, qn = 32;
4
- function Ir(e) {
3
+ import { a as We, b as vt } from "./index-0El3OWzn.js";
4
+ const Un = 9, Vn = 32;
5
+ function Pr(e) {
5
6
  const n = String(e), t = /\r?\n|\r/g;
6
7
  let r = t.exec(n), i = 0;
7
8
  const l = [];
8
9
  for (; r; )
9
10
  l.push(
10
- $n(n.slice(i, r.index), i > 0, !0),
11
+ qn(n.slice(i, r.index), i > 0, !0),
11
12
  r[0]
12
13
  ), i = r.index + r[0].length, r = t.exec(n);
13
- return l.push($n(n.slice(i), i > 0, !1)), l.join("");
14
+ return l.push(qn(n.slice(i), i > 0, !1)), l.join("");
14
15
  }
15
- function $n(e, n, t) {
16
+ function qn(e, n, t) {
16
17
  let r = 0, i = e.length;
17
18
  if (n) {
18
19
  let l = e.codePointAt(r);
19
- for (; l === Vn || l === qn; )
20
+ for (; l === Un || l === Vn; )
20
21
  r++, l = e.codePointAt(r);
21
22
  }
22
23
  if (t) {
23
24
  let l = e.codePointAt(i - 1);
24
- for (; l === Vn || l === qn; )
25
+ for (; l === Un || l === Vn; )
25
26
  i--, l = e.codePointAt(i - 1);
26
27
  }
27
28
  return i > r ? e.slice(r, i) : "";
28
29
  }
29
- function Tr(e, n) {
30
+ function Ar(e, n) {
30
31
  const t = {};
31
32
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
32
33
  (t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
33
34
  ).trim();
34
35
  }
35
- const Pr = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ar = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, zr = {};
36
- function Wn(e, n) {
37
- return (zr.jsx ? Ar : Pr).test(e);
36
+ const zr = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Lr = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Or = {};
37
+ function $n(e, n) {
38
+ return (Or.jsx ? Lr : zr).test(e);
38
39
  }
39
- const Lr = /[ \t\n\f\r]/g;
40
- function Or(e) {
41
- return typeof e == "object" ? e.type === "text" ? Yn(e.value) : !1 : Yn(e);
40
+ const vr = /[ \t\n\f\r]/g;
41
+ function Dr(e) {
42
+ return typeof e == "object" ? e.type === "text" ? Wn(e.value) : !1 : Wn(e);
42
43
  }
43
- function Yn(e) {
44
- return e.replace(Lr, "") === "";
44
+ function Wn(e) {
45
+ return e.replace(vr, "") === "";
45
46
  }
46
47
  class Me {
47
48
  /**
@@ -61,13 +62,13 @@ class Me {
61
62
  Me.prototype.normal = {};
62
63
  Me.prototype.property = {};
63
64
  Me.prototype.space = void 0;
64
- function Nt(e, n) {
65
+ function Dt(e, n) {
65
66
  const t = {}, r = {};
66
67
  for (const i of e)
67
68
  Object.assign(t, i.property), Object.assign(r, i.normal);
68
69
  return new Me(t, r, n);
69
70
  }
70
- function fn(e) {
71
+ function pn(e) {
71
72
  return e.toLowerCase();
72
73
  }
73
74
  class J {
@@ -95,25 +96,25 @@ J.prototype.overloadedBoolean = !1;
95
96
  J.prototype.property = "";
96
97
  J.prototype.spaceSeparated = !1;
97
98
  J.prototype.space = void 0;
98
- let vr = 0;
99
- const z = be(), $ = be(), hn = be(), k = be(), R = be(), Ie = be(), ee = be();
99
+ let Nr = 0;
100
+ const z = be(), $ = be(), fn = be(), k = be(), R = be(), Ie = be(), ee = be();
100
101
  function be() {
101
- return 2 ** ++vr;
102
+ return 2 ** ++Nr;
102
103
  }
103
- const mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
104
+ const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
104
105
  __proto__: null,
105
106
  boolean: z,
106
107
  booleanish: $,
107
108
  commaOrSpaceSeparated: ee,
108
109
  commaSeparated: Ie,
109
110
  number: k,
110
- overloadedBoolean: hn,
111
+ overloadedBoolean: fn,
111
112
  spaceSeparated: R
112
- }, Symbol.toStringTag, { value: "Module" })), en = (
113
+ }, Symbol.toStringTag, { value: "Module" })), Ze = (
113
114
  /** @type {ReadonlyArray<keyof typeof types>} */
114
- Object.keys(mn)
115
+ Object.keys(hn)
115
116
  );
116
- class En extends J {
117
+ class Sn extends J {
117
118
  /**
118
119
  * @constructor
119
120
  * @param {string} property
@@ -129,31 +130,31 @@ class En extends J {
129
130
  */
130
131
  constructor(n, t, r, i) {
131
132
  let l = -1;
132
- if (super(n, t), Xn(this, "space", i), typeof r == "number")
133
- for (; ++l < en.length; ) {
134
- const o = en[l];
135
- Xn(this, en[l], (r & mn[o]) === mn[o]);
133
+ if (super(n, t), Yn(this, "space", i), typeof r == "number")
134
+ for (; ++l < Ze.length; ) {
135
+ const o = Ze[l];
136
+ Yn(this, Ze[l], (r & hn[o]) === hn[o]);
136
137
  }
137
138
  }
138
139
  }
139
- En.prototype.defined = !0;
140
- function Xn(e, n, t) {
140
+ Sn.prototype.defined = !0;
141
+ function Yn(e, n, t) {
141
142
  t && (e[n] = t);
142
143
  }
143
144
  function Pe(e) {
144
145
  const n = {}, t = {};
145
146
  for (const [r, i] of Object.entries(e.properties)) {
146
- const l = new En(
147
+ const l = new Sn(
147
148
  r,
148
149
  e.transform(e.attributes || {}, r),
149
150
  i,
150
151
  e.space
151
152
  );
152
- e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[fn(r)] = r, t[fn(l.attribute)] = r;
153
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[pn(r)] = r, t[pn(l.attribute)] = r;
153
154
  }
154
155
  return new Me(n, t, e.space);
155
156
  }
156
- const _t = Pe({
157
+ const Nt = Pe({
157
158
  properties: {
158
159
  ariaActiveDescendant: null,
159
160
  ariaAtomic: $,
@@ -209,13 +210,13 @@ const _t = Pe({
209
210
  return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
210
211
  }
211
212
  });
212
- function Ft(e, n) {
213
+ function _t(e, n) {
213
214
  return n in e ? e[n] : n;
214
215
  }
215
- function Rt(e, n) {
216
- return Ft(e, n.toLowerCase());
216
+ function Ft(e, n) {
217
+ return _t(e, n.toLowerCase());
217
218
  }
218
- const Dr = Pe({
219
+ const _r = Pe({
219
220
  attributes: {
220
221
  acceptcharset: "accept-charset",
221
222
  classname: "class",
@@ -263,7 +264,7 @@ const Dr = Pe({
263
264
  dir: null,
264
265
  dirName: null,
265
266
  disabled: z,
266
- download: hn,
267
+ download: fn,
267
268
  draggable: $,
268
269
  encType: null,
269
270
  enterKeyHint: null,
@@ -276,7 +277,7 @@ const Dr = Pe({
276
277
  formTarget: null,
277
278
  headers: R,
278
279
  height: k,
279
- hidden: hn,
280
+ hidden: fn,
280
281
  high: k,
281
282
  href: null,
282
283
  hrefLang: null,
@@ -575,8 +576,8 @@ const Dr = Pe({
575
576
  unselectable: null
576
577
  },
577
578
  space: "html",
578
- transform: Rt
579
- }), Nr = Pe({
579
+ transform: Ft
580
+ }), Fr = Pe({
580
581
  attributes: {
581
582
  accentHeight: "accent-height",
582
583
  alignmentBaseline: "alignment-baseline",
@@ -1134,8 +1135,8 @@ const Dr = Pe({
1134
1135
  zoomAndPan: null
1135
1136
  },
1136
1137
  space: "svg",
1137
- transform: Ft
1138
- }), Mt = Pe({
1138
+ transform: _t
1139
+ }), Rt = Pe({
1139
1140
  properties: {
1140
1141
  xLinkActuate: null,
1141
1142
  xLinkArcRole: null,
@@ -1149,18 +1150,18 @@ const Dr = Pe({
1149
1150
  transform(e, n) {
1150
1151
  return "xlink:" + n.slice(5).toLowerCase();
1151
1152
  }
1152
- }), Bt = Pe({
1153
+ }), Mt = Pe({
1153
1154
  attributes: { xmlnsxlink: "xmlns:xlink" },
1154
1155
  properties: { xmlnsXLink: null, xmlns: null },
1155
1156
  space: "xmlns",
1156
- transform: Rt
1157
- }), jt = Pe({
1157
+ transform: Ft
1158
+ }), Bt = Pe({
1158
1159
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1159
1160
  space: "xml",
1160
1161
  transform(e, n) {
1161
1162
  return "xml:" + n.slice(3).toLowerCase();
1162
1163
  }
1163
- }), _r = {
1164
+ }), Rr = {
1164
1165
  classId: "classID",
1165
1166
  dataType: "datatype",
1166
1167
  itemId: "itemID",
@@ -1178,49 +1179,49 @@ const Dr = Pe({
1178
1179
  xLinkTitle: "xlinkTitle",
1179
1180
  xLinkType: "xlinkType",
1180
1181
  xmlnsXLink: "xmlnsXlink"
1181
- }, Fr = /[A-Z]/g, Qn = /-[a-z]/g, Rr = /^data[-\w.:]+$/i;
1182
- function Mr(e, n) {
1183
- const t = fn(n);
1182
+ }, Mr = /[A-Z]/g, Xn = /-[a-z]/g, Br = /^data[-\w.:]+$/i;
1183
+ function jr(e, n) {
1184
+ const t = pn(n);
1184
1185
  let r = n, i = J;
1185
1186
  if (t in e.normal)
1186
1187
  return e.property[e.normal[t]];
1187
- if (t.length > 4 && t.slice(0, 4) === "data" && Rr.test(n)) {
1188
+ if (t.length > 4 && t.slice(0, 4) === "data" && Br.test(n)) {
1188
1189
  if (n.charAt(4) === "-") {
1189
- const l = n.slice(5).replace(Qn, jr);
1190
+ const l = n.slice(5).replace(Xn, Ur);
1190
1191
  r = "data" + l.charAt(0).toUpperCase() + l.slice(1);
1191
1192
  } else {
1192
1193
  const l = n.slice(4);
1193
- if (!Qn.test(l)) {
1194
- let o = l.replace(Fr, Br);
1194
+ if (!Xn.test(l)) {
1195
+ let o = l.replace(Mr, Hr);
1195
1196
  o.charAt(0) !== "-" && (o = "-" + o), n = "data" + o;
1196
1197
  }
1197
1198
  }
1198
- i = En;
1199
+ i = Sn;
1199
1200
  }
1200
1201
  return new i(r, n);
1201
1202
  }
1202
- function Br(e) {
1203
+ function Hr(e) {
1203
1204
  return "-" + e.toLowerCase();
1204
1205
  }
1205
- function jr(e) {
1206
+ function Ur(e) {
1206
1207
  return e.charAt(1).toUpperCase();
1207
1208
  }
1208
- const Hr = Nt([_t, Dr, Mt, Bt, jt], "html"), Cn = Nt([_t, Nr, Mt, Bt, jt], "svg");
1209
- function Ur(e) {
1209
+ const Vr = Dt([Nt, _r, Rt, Mt, Bt], "html"), Cn = Dt([Nt, Fr, Rt, Mt, Bt], "svg");
1210
+ function qr(e) {
1210
1211
  return e.join(" ").trim();
1211
1212
  }
1212
- var In = {}, Gn = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Vr = /\n/g, qr = /^\s*/, $r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Wr = /^:\s*/, Yr = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Xr = /^[;\s]*/, Qr = /^\s+|\s+$/g, Gr = `
1213
- `, Kn = "/", Jn = "*", ke = "", Kr = "comment", Jr = "declaration";
1214
- function Zr(e, n) {
1213
+ var En = {}, Qn = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, $r = /\n/g, Wr = /^\s*/, Yr = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Xr = /^:\s*/, Qr = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Gr = /^[;\s]*/, Kr = /^\s+|\s+$/g, Jr = `
1214
+ `, Gn = "/", Kn = "*", ke = "", Zr = "comment", ei = "declaration";
1215
+ function ni(e, n) {
1215
1216
  if (typeof e != "string")
1216
1217
  throw new TypeError("First argument must be a string");
1217
1218
  if (!e) return [];
1218
1219
  n = n || {};
1219
1220
  var t = 1, r = 1;
1220
1221
  function i(y) {
1221
- var b = y.match(Vr);
1222
+ var b = y.match($r);
1222
1223
  b && (t += b.length);
1223
- var T = y.lastIndexOf(Gr);
1224
+ var T = y.lastIndexOf(Jr);
1224
1225
  r = ~T ? y.length - T : r + y.length;
1225
1226
  }
1226
1227
  function l() {
@@ -1247,7 +1248,7 @@ function Zr(e, n) {
1247
1248
  }
1248
1249
  }
1249
1250
  function c() {
1250
- u(qr);
1251
+ u(Wr);
1251
1252
  }
1252
1253
  function s(y) {
1253
1254
  var b;
@@ -1257,28 +1258,28 @@ function Zr(e, n) {
1257
1258
  }
1258
1259
  function f() {
1259
1260
  var y = l();
1260
- if (!(Kn != e.charAt(0) || Jn != e.charAt(1))) {
1261
- for (var b = 2; ke != e.charAt(b) && (Jn != e.charAt(b) || Kn != e.charAt(b + 1)); )
1261
+ if (!(Gn != e.charAt(0) || Kn != e.charAt(1))) {
1262
+ for (var b = 2; ke != e.charAt(b) && (Kn != e.charAt(b) || Gn != e.charAt(b + 1)); )
1262
1263
  ++b;
1263
1264
  if (b += 2, ke === e.charAt(b - 1))
1264
1265
  return a("End of comment missing");
1265
1266
  var T = e.slice(2, b - 2);
1266
1267
  return r += 2, i(T), e = e.slice(b), r += 2, y({
1267
- type: Kr,
1268
+ type: Zr,
1268
1269
  comment: T
1269
1270
  });
1270
1271
  }
1271
1272
  }
1272
1273
  function d() {
1273
- var y = l(), b = u($r);
1274
+ var y = l(), b = u(Yr);
1274
1275
  if (b) {
1275
- if (f(), !u(Wr)) return a("property missing ':'");
1276
- var T = u(Yr), w = y({
1277
- type: Jr,
1278
- property: Zn(b[0].replace(Gn, ke)),
1279
- value: T ? Zn(T[0].replace(Gn, ke)) : ke
1276
+ if (f(), !u(Xr)) return a("property missing ':'");
1277
+ var T = u(Qr), w = y({
1278
+ type: ei,
1279
+ property: Jn(b[0].replace(Qn, ke)),
1280
+ value: T ? Jn(T[0].replace(Qn, ke)) : ke
1280
1281
  });
1281
- return u(Xr), w;
1282
+ return u(Gr), w;
1282
1283
  }
1283
1284
  }
1284
1285
  function p() {
@@ -1290,20 +1291,20 @@ function Zr(e, n) {
1290
1291
  }
1291
1292
  return c(), p();
1292
1293
  }
1293
- function Zn(e) {
1294
- return e ? e.replace(Qr, ke) : ke;
1294
+ function Jn(e) {
1295
+ return e ? e.replace(Kr, ke) : ke;
1295
1296
  }
1296
- var ei = Zr, ni = We && We.__importDefault || function(e) {
1297
+ var ti = ni, ri = We && We.__importDefault || function(e) {
1297
1298
  return e && e.__esModule ? e : { default: e };
1298
1299
  };
1299
- Object.defineProperty(In, "__esModule", { value: !0 });
1300
- In.default = ri;
1301
- const ti = ni(ei);
1302
- function ri(e, n) {
1300
+ Object.defineProperty(En, "__esModule", { value: !0 });
1301
+ En.default = li;
1302
+ const ii = ri(ti);
1303
+ function li(e, n) {
1303
1304
  let t = null;
1304
1305
  if (!e || typeof e != "string")
1305
1306
  return t;
1306
- const r = (0, ti.default)(e), i = typeof n == "function";
1307
+ const r = (0, ii.default)(e), i = typeof n == "function";
1307
1308
  return r.forEach((l) => {
1308
1309
  if (l.type !== "declaration")
1309
1310
  return;
@@ -1314,29 +1315,29 @@ function ri(e, n) {
1314
1315
  var Qe = {};
1315
1316
  Object.defineProperty(Qe, "__esModule", { value: !0 });
1316
1317
  Qe.camelCase = void 0;
1317
- var ii = /^--[a-zA-Z0-9_-]+$/, li = /-([a-z])/g, oi = /^[^-]+$/, ai = /^-(webkit|moz|ms|o|khtml)-/, ui = /^-(ms)-/, si = function(e) {
1318
- return !e || oi.test(e) || ii.test(e);
1319
- }, ci = function(e, n) {
1318
+ var oi = /^--[a-zA-Z0-9_-]+$/, ai = /-([a-z])/g, ui = /^[^-]+$/, si = /^-(webkit|moz|ms|o|khtml)-/, ci = /^-(ms)-/, pi = function(e) {
1319
+ return !e || ui.test(e) || oi.test(e);
1320
+ }, fi = function(e, n) {
1320
1321
  return n.toUpperCase();
1321
- }, et = function(e, n) {
1322
+ }, Zn = function(e, n) {
1322
1323
  return "".concat(n, "-");
1323
- }, pi = function(e, n) {
1324
- return n === void 0 && (n = {}), si(e) ? e : (e = e.toLowerCase(), n.reactCompat ? e = e.replace(ui, et) : e = e.replace(ai, et), e.replace(li, ci));
1324
+ }, hi = function(e, n) {
1325
+ return n === void 0 && (n = {}), pi(e) ? e : (e = e.toLowerCase(), n.reactCompat ? e = e.replace(ci, Zn) : e = e.replace(si, Zn), e.replace(ai, fi));
1325
1326
  };
1326
- Qe.camelCase = pi;
1327
- var fi = We && We.__importDefault || function(e) {
1327
+ Qe.camelCase = hi;
1328
+ var mi = We && We.__importDefault || function(e) {
1328
1329
  return e && e.__esModule ? e : { default: e };
1329
- }, hi = fi(In), mi = Qe;
1330
- function dn(e, n) {
1330
+ }, di = mi(En), gi = Qe;
1331
+ function mn(e, n) {
1331
1332
  var t = {};
1332
- return !e || typeof e != "string" || (0, hi.default)(e, function(r, i) {
1333
- r && i && (t[(0, mi.camelCase)(r, n)] = i);
1333
+ return !e || typeof e != "string" || (0, di.default)(e, function(r, i) {
1334
+ r && i && (t[(0, gi.camelCase)(r, n)] = i);
1334
1335
  }), t;
1335
1336
  }
1336
- dn.default = dn;
1337
- var di = dn;
1338
- const gi = /* @__PURE__ */ Dt(di), Ht = Ut("end"), Tn = Ut("start");
1339
- function Ut(e) {
1337
+ mn.default = mn;
1338
+ var yi = mn;
1339
+ const xi = /* @__PURE__ */ vt(yi), jt = Ht("end"), In = Ht("start");
1340
+ function Ht(e) {
1340
1341
  return n;
1341
1342
  function n(t) {
1342
1343
  const r = t && t.position && t.position[e] || {};
@@ -1348,21 +1349,21 @@ function Ut(e) {
1348
1349
  };
1349
1350
  }
1350
1351
  }
1351
- function yi(e) {
1352
- const n = Tn(e), t = Ht(e);
1352
+ function ki(e) {
1353
+ const n = In(e), t = jt(e);
1353
1354
  if (n && t)
1354
1355
  return { start: n, end: t };
1355
1356
  }
1356
1357
  function Ne(e) {
1357
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? nt(e.position) : "start" in e || "end" in e ? nt(e) : "line" in e || "column" in e ? gn(e) : "";
1358
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? et(e.position) : "start" in e || "end" in e ? et(e) : "line" in e || "column" in e ? dn(e) : "";
1358
1359
  }
1359
- function gn(e) {
1360
- return tt(e && e.line) + ":" + tt(e && e.column);
1360
+ function dn(e) {
1361
+ return nt(e && e.line) + ":" + nt(e && e.column);
1361
1362
  }
1362
- function nt(e) {
1363
- return gn(e && e.start) + "-" + gn(e && e.end);
1363
+ function et(e) {
1364
+ return dn(e && e.start) + "-" + dn(e && e.end);
1364
1365
  }
1365
- function tt(e) {
1366
+ function nt(e) {
1366
1367
  return e && typeof e == "number" ? e : 1;
1367
1368
  }
1368
1369
  class Q extends Error {
@@ -1436,7 +1437,7 @@ class Q extends Error {
1436
1437
  u && (l.place = u.position);
1437
1438
  }
1438
1439
  const a = l.place && "start" in l.place ? l.place.start : l.place;
1439
- this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = a ? a.line : void 0, this.name = Ne(l.place) || "1:1", this.place = l.place || void 0, this.reason = this.message, this.ruleId = l.ruleId || void 0, this.source = l.source || void 0, this.stack = o && l.cause && typeof l.cause.stack == "string" ? l.cause.stack : "", this.actual, this.expected, this.note, this.url;
1440
+ this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name = Ne(l.place) || "1:1", this.place = l.place || void 0, this.reason = this.message, this.ruleId = l.ruleId || void 0, this.source = l.source || void 0, this.stack = o && l.cause && typeof l.cause.stack == "string" ? l.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
1440
1441
  }
1441
1442
  }
1442
1443
  Q.prototype.file = "";
@@ -1452,8 +1453,8 @@ Q.prototype.fatal = void 0;
1452
1453
  Q.prototype.place = void 0;
1453
1454
  Q.prototype.ruleId = void 0;
1454
1455
  Q.prototype.source = void 0;
1455
- const Pn = {}.hasOwnProperty, xi = /* @__PURE__ */ new Map(), ki = /[A-Z]/g, bi = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), wi = /* @__PURE__ */ new Set(["td", "th"]), Vt = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1456
- function Si(e, n) {
1456
+ const Tn = {}.hasOwnProperty, bi = /* @__PURE__ */ new Map(), wi = /[A-Z]/g, Si = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ci = /* @__PURE__ */ new Set(["td", "th"]), Ut = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1457
+ function Ei(e, n) {
1457
1458
  if (!n || n.Fragment === void 0)
1458
1459
  throw new TypeError("Expected `Fragment` in options");
1459
1460
  const t = n.filePath || void 0;
@@ -1463,13 +1464,13 @@ function Si(e, n) {
1463
1464
  throw new TypeError(
1464
1465
  "Expected `jsxDEV` in options when `development: true`"
1465
1466
  );
1466
- r = Li(t, n.jsxDEV);
1467
+ r = vi(t, n.jsxDEV);
1467
1468
  } else {
1468
1469
  if (typeof n.jsx != "function")
1469
1470
  throw new TypeError("Expected `jsx` in production options");
1470
1471
  if (typeof n.jsxs != "function")
1471
1472
  throw new TypeError("Expected `jsxs` in production options");
1472
- r = zi(t, n.jsx, n.jsxs);
1473
+ r = Oi(t, n.jsx, n.jsxs);
1473
1474
  }
1474
1475
  const i = {
1475
1476
  Fragment: n.Fragment,
@@ -1482,10 +1483,10 @@ function Si(e, n) {
1482
1483
  ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
1483
1484
  passKeys: n.passKeys !== !1,
1484
1485
  passNode: n.passNode || !1,
1485
- schema: n.space === "svg" ? Cn : Hr,
1486
+ schema: n.space === "svg" ? Cn : Vr,
1486
1487
  stylePropertyNameCase: n.stylePropertyNameCase || "dom",
1487
1488
  tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
1488
- }, l = qt(i, e, void 0);
1489
+ }, l = Vt(i, e, void 0);
1489
1490
  return l && typeof l != "string" ? l : i.create(
1490
1491
  e,
1491
1492
  i.Fragment,
@@ -1493,31 +1494,31 @@ function Si(e, n) {
1493
1494
  void 0
1494
1495
  );
1495
1496
  }
1496
- function qt(e, n, t) {
1497
+ function Vt(e, n, t) {
1497
1498
  if (n.type === "element")
1498
- return Ei(e, n, t);
1499
+ return Ii(e, n, t);
1499
1500
  if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
1500
- return Ci(e, n);
1501
+ return Ti(e, n);
1501
1502
  if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
1502
- return Ti(e, n, t);
1503
+ return Ai(e, n, t);
1503
1504
  if (n.type === "mdxjsEsm")
1504
- return Ii(e, n);
1505
+ return Pi(e, n);
1505
1506
  if (n.type === "root")
1506
- return Pi(e, n, t);
1507
+ return zi(e, n, t);
1507
1508
  if (n.type === "text")
1508
- return Ai(e, n);
1509
+ return Li(e, n);
1509
1510
  }
1510
- function Ei(e, n, t) {
1511
+ function Ii(e, n, t) {
1511
1512
  const r = e.schema;
1512
1513
  let i = r;
1513
1514
  n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Cn, e.schema = i), e.ancestors.push(n);
1514
- const l = Wt(e, n.tagName, !1), o = Oi(e, n);
1515
- let a = zn(e, n);
1516
- return bi.has(n.tagName) && (a = a.filter(function(u) {
1517
- return typeof u == "string" ? !Or(u) : !0;
1518
- })), $t(e, o, l, n), An(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
1515
+ const l = $t(e, n.tagName, !1), o = Di(e, n);
1516
+ let a = An(e, n);
1517
+ return Si.has(n.tagName) && (a = a.filter(function(u) {
1518
+ return typeof u == "string" ? !Dr(u) : !0;
1519
+ })), qt(e, o, l, n), Pn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
1519
1520
  }
1520
- function Ci(e, n) {
1521
+ function Ti(e, n) {
1521
1522
  if (n.data && n.data.estree && e.evaluater) {
1522
1523
  const r = n.data.estree.body[0];
1523
1524
  return r.type, /** @type {Child | undefined} */
@@ -1525,7 +1526,7 @@ function Ci(e, n) {
1525
1526
  }
1526
1527
  Re(e, n.position);
1527
1528
  }
1528
- function Ii(e, n) {
1529
+ function Pi(e, n) {
1529
1530
  if (n.data && n.data.estree && e.evaluater)
1530
1531
  return (
1531
1532
  /** @type {Child | undefined} */
@@ -1533,40 +1534,40 @@ function Ii(e, n) {
1533
1534
  );
1534
1535
  Re(e, n.position);
1535
1536
  }
1536
- function Ti(e, n, t) {
1537
+ function Ai(e, n, t) {
1537
1538
  const r = e.schema;
1538
1539
  let i = r;
1539
1540
  n.name === "svg" && r.space === "html" && (i = Cn, e.schema = i), e.ancestors.push(n);
1540
- const l = n.name === null ? e.Fragment : Wt(e, n.name, !0), o = vi(e, n), a = zn(e, n);
1541
- return $t(e, o, l, n), An(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
1541
+ const l = n.name === null ? e.Fragment : $t(e, n.name, !0), o = Ni(e, n), a = An(e, n);
1542
+ return qt(e, o, l, n), Pn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
1542
1543
  }
1543
- function Pi(e, n, t) {
1544
+ function zi(e, n, t) {
1544
1545
  const r = {};
1545
- return An(r, zn(e, n)), e.create(n, e.Fragment, r, t);
1546
+ return Pn(r, An(e, n)), e.create(n, e.Fragment, r, t);
1546
1547
  }
1547
- function Ai(e, n) {
1548
+ function Li(e, n) {
1548
1549
  return n.value;
1549
1550
  }
1550
- function $t(e, n, t, r) {
1551
+ function qt(e, n, t, r) {
1551
1552
  typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = r);
1552
1553
  }
1553
- function An(e, n) {
1554
+ function Pn(e, n) {
1554
1555
  if (n.length > 0) {
1555
1556
  const t = n.length > 1 ? n : n[0];
1556
1557
  t && (e.children = t);
1557
1558
  }
1558
1559
  }
1559
- function zi(e, n, t) {
1560
+ function Oi(e, n, t) {
1560
1561
  return r;
1561
1562
  function r(i, l, o, a) {
1562
1563
  const c = Array.isArray(o.children) ? t : n;
1563
1564
  return a ? c(l, o, a) : c(l, o);
1564
1565
  }
1565
1566
  }
1566
- function Li(e, n) {
1567
+ function vi(e, n) {
1567
1568
  return t;
1568
1569
  function t(r, i, l, o) {
1569
- const a = Array.isArray(l.children), u = Tn(r);
1570
+ const a = Array.isArray(l.children), u = In(r);
1570
1571
  return n(
1571
1572
  i,
1572
1573
  l,
@@ -1581,15 +1582,15 @@ function Li(e, n) {
1581
1582
  );
1582
1583
  }
1583
1584
  }
1584
- function Oi(e, n) {
1585
+ function Di(e, n) {
1585
1586
  const t = {};
1586
1587
  let r, i;
1587
1588
  for (i in n.properties)
1588
- if (i !== "children" && Pn.call(n.properties, i)) {
1589
- const l = Di(e, i, n.properties[i]);
1589
+ if (i !== "children" && Tn.call(n.properties, i)) {
1590
+ const l = _i(e, i, n.properties[i]);
1590
1591
  if (l) {
1591
1592
  const [o, a] = l;
1592
- e.tableCellAlignToStyle && o === "align" && typeof a == "string" && wi.has(n.tagName) ? r = a : t[o] = a;
1593
+ e.tableCellAlignToStyle && o === "align" && typeof a == "string" && Ci.has(n.tagName) ? r = a : t[o] = a;
1593
1594
  }
1594
1595
  }
1595
1596
  if (r) {
@@ -1601,7 +1602,7 @@ function Oi(e, n) {
1601
1602
  }
1602
1603
  return t;
1603
1604
  }
1604
- function vi(e, n) {
1605
+ function Ni(e, n) {
1605
1606
  const t = {};
1606
1607
  for (const r of n.attributes)
1607
1608
  if (r.type === "mdxJsxExpressionAttribute")
@@ -1633,10 +1634,10 @@ function vi(e, n) {
1633
1634
  }
1634
1635
  return t;
1635
1636
  }
1636
- function zn(e, n) {
1637
+ function An(e, n) {
1637
1638
  const t = [];
1638
1639
  let r = -1;
1639
- const i = e.passKeys ? /* @__PURE__ */ new Map() : xi;
1640
+ const i = e.passKeys ? /* @__PURE__ */ new Map() : bi;
1640
1641
  for (; ++r < n.children.length; ) {
1641
1642
  const l = n.children[r];
1642
1643
  let o;
@@ -1647,27 +1648,27 @@ function zn(e, n) {
1647
1648
  o = u + "-" + c, i.set(u, c + 1);
1648
1649
  }
1649
1650
  }
1650
- const a = qt(e, l, o);
1651
+ const a = Vt(e, l, o);
1651
1652
  a !== void 0 && t.push(a);
1652
1653
  }
1653
1654
  return t;
1654
1655
  }
1655
- function Di(e, n, t) {
1656
- const r = Mr(e.schema, n);
1656
+ function _i(e, n, t) {
1657
+ const r = jr(e.schema, n);
1657
1658
  if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
1658
- if (Array.isArray(t) && (t = r.commaSeparated ? Tr(t) : Ur(t)), r.property === "style") {
1659
- let i = typeof t == "object" ? t : Ni(e, String(t));
1660
- return e.stylePropertyNameCase === "css" && (i = _i(i)), ["style", i];
1659
+ if (Array.isArray(t) && (t = r.commaSeparated ? Ar(t) : qr(t)), r.property === "style") {
1660
+ let i = typeof t == "object" ? t : Fi(e, String(t));
1661
+ return e.stylePropertyNameCase === "css" && (i = Ri(i)), ["style", i];
1661
1662
  }
1662
1663
  return [
1663
- e.elementAttributeNameCase === "react" && r.space ? _r[r.property] || r.property : r.attribute,
1664
+ e.elementAttributeNameCase === "react" && r.space ? Rr[r.property] || r.property : r.attribute,
1664
1665
  t
1665
1666
  ];
1666
1667
  }
1667
1668
  }
1668
- function Ni(e, n) {
1669
+ function Fi(e, n) {
1669
1670
  try {
1670
- return gi(n, { reactCompat: !0 });
1671
+ return xi(n, { reactCompat: !0 });
1671
1672
  } catch (t) {
1672
1673
  if (e.ignoreInvalidStyle)
1673
1674
  return {};
@@ -1680,10 +1681,10 @@ function Ni(e, n) {
1680
1681
  ruleId: "style",
1681
1682
  source: "hast-util-to-jsx-runtime"
1682
1683
  });
1683
- throw i.file = e.filePath || void 0, i.url = Vt + "#cannot-parse-style-attribute", i;
1684
+ throw i.file = e.filePath || void 0, i.url = Ut + "#cannot-parse-style-attribute", i;
1684
1685
  }
1685
1686
  }
1686
- function Wt(e, n, t) {
1687
+ function $t(e, n, t) {
1687
1688
  let r;
1688
1689
  if (!t)
1689
1690
  r = { type: "Literal", value: n };
@@ -1691,7 +1692,7 @@ function Wt(e, n, t) {
1691
1692
  const i = n.split(".");
1692
1693
  let l = -1, o;
1693
1694
  for (; ++l < i.length; ) {
1694
- const a = Wn(i[l]) ? { type: "Identifier", name: i[l] } : { type: "Literal", value: i[l] };
1695
+ const a = $n(i[l]) ? { type: "Identifier", name: i[l] } : { type: "Literal", value: i[l] };
1695
1696
  o = o ? {
1696
1697
  type: "MemberExpression",
1697
1698
  object: o,
@@ -1702,13 +1703,13 @@ function Wt(e, n, t) {
1702
1703
  }
1703
1704
  r = o;
1704
1705
  } else
1705
- r = Wn(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
1706
+ r = $n(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
1706
1707
  if (r.type === "Literal") {
1707
1708
  const i = (
1708
1709
  /** @type {string | number} */
1709
1710
  r.value
1710
1711
  );
1711
- return Pn.call(e.components, i) ? e.components[i] : i;
1712
+ return Tn.call(e.components, i) ? e.components[i] : i;
1712
1713
  }
1713
1714
  if (e.evaluater)
1714
1715
  return e.evaluater.evaluateExpression(r);
@@ -1724,23 +1725,23 @@ function Re(e, n) {
1724
1725
  source: "hast-util-to-jsx-runtime"
1725
1726
  }
1726
1727
  );
1727
- throw t.file = e.filePath || void 0, t.url = Vt + "#cannot-handle-mdx-estrees-without-createevaluater", t;
1728
+ throw t.file = e.filePath || void 0, t.url = Ut + "#cannot-handle-mdx-estrees-without-createevaluater", t;
1728
1729
  }
1729
- function _i(e) {
1730
+ function Ri(e) {
1730
1731
  const n = {};
1731
1732
  let t;
1732
1733
  for (t in e)
1733
- Pn.call(e, t) && (n[Fi(t)] = e[t]);
1734
+ Tn.call(e, t) && (n[Mi(t)] = e[t]);
1734
1735
  return n;
1735
1736
  }
1736
- function Fi(e) {
1737
- let n = e.replace(ki, Ri);
1737
+ function Mi(e) {
1738
+ let n = e.replace(wi, Bi);
1738
1739
  return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
1739
1740
  }
1740
- function Ri(e) {
1741
+ function Bi(e) {
1741
1742
  return "-" + e.toLowerCase();
1742
1743
  }
1743
- const nn = {
1744
+ const en = {
1744
1745
  action: ["form"],
1745
1746
  cite: ["blockquote", "del", "ins", "q"],
1746
1747
  data: ["object"],
@@ -1762,38 +1763,42 @@ const nn = {
1762
1763
  "track",
1763
1764
  "video"
1764
1765
  ]
1765
- }, Mi = {};
1766
- function Bi(e, n) {
1767
- const t = Mi, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
1768
- return Yt(e, r, i);
1766
+ }, ji = {};
1767
+ function Hi(e, n) {
1768
+ const t = ji, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
1769
+ return Wt(e, r, i);
1769
1770
  }
1770
- function Yt(e, n, t) {
1771
- if (ji(e)) {
1771
+ function Wt(e, n, t) {
1772
+ if (Ui(e)) {
1772
1773
  if ("value" in e)
1773
1774
  return e.type === "html" && !t ? "" : e.value;
1774
1775
  if (n && "alt" in e && e.alt)
1775
1776
  return e.alt;
1776
1777
  if ("children" in e)
1777
- return rt(e.children, n, t);
1778
+ return tt(e.children, n, t);
1778
1779
  }
1779
- return Array.isArray(e) ? rt(e, n, t) : "";
1780
+ return Array.isArray(e) ? tt(e, n, t) : "";
1780
1781
  }
1781
- function rt(e, n, t) {
1782
+ function tt(e, n, t) {
1782
1783
  const r = [];
1783
1784
  let i = -1;
1784
1785
  for (; ++i < e.length; )
1785
- r[i] = Yt(e[i], n, t);
1786
+ r[i] = Wt(e[i], n, t);
1786
1787
  return r.join("");
1787
1788
  }
1788
- function ji(e) {
1789
+ function Ui(e) {
1789
1790
  return !!(e && typeof e == "object");
1790
1791
  }
1791
- const it = document.createElement("i");
1792
- function Ln(e) {
1792
+ const rt = document.createElement("i");
1793
+ function zn(e) {
1793
1794
  const n = "&" + e + ";";
1794
- it.innerHTML = n;
1795
- const t = it.textContent;
1796
- return t.charCodeAt(t.length - 1) === 59 && e !== "semi" || t === n ? !1 : t;
1795
+ rt.innerHTML = n;
1796
+ const t = rt.textContent;
1797
+ return (
1798
+ // @ts-expect-error: TypeScript is wrong that `textContent` on elements can
1799
+ // yield `null`.
1800
+ t.charCodeAt(t.length - 1) === 59 && e !== "semi" || t === n ? !1 : t
1801
+ );
1797
1802
  }
1798
1803
  function se(e, n, t, r) {
1799
1804
  const i = e.length;
@@ -1807,24 +1812,24 @@ function se(e, n, t, r) {
1807
1812
  function te(e, n) {
1808
1813
  return e.length > 0 ? (se(e, e.length, 0, n), e) : n;
1809
1814
  }
1810
- const lt = {}.hasOwnProperty;
1811
- function Hi(e) {
1815
+ const it = {}.hasOwnProperty;
1816
+ function Vi(e) {
1812
1817
  const n = {};
1813
1818
  let t = -1;
1814
1819
  for (; ++t < e.length; )
1815
- Ui(n, e[t]);
1820
+ qi(n, e[t]);
1816
1821
  return n;
1817
1822
  }
1818
- function Ui(e, n) {
1823
+ function qi(e, n) {
1819
1824
  let t;
1820
1825
  for (t in n) {
1821
- const i = (lt.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t];
1826
+ const i = (it.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t];
1822
1827
  let o;
1823
1828
  if (l)
1824
1829
  for (o in l) {
1825
- lt.call(i, o) || (i[o] = []);
1830
+ it.call(i, o) || (i[o] = []);
1826
1831
  const a = l[o];
1827
- Vi(
1832
+ $i(
1828
1833
  // @ts-expect-error Looks like a list.
1829
1834
  i[o],
1830
1835
  Array.isArray(a) ? a : a ? [a] : []
@@ -1832,14 +1837,14 @@ function Ui(e, n) {
1832
1837
  }
1833
1838
  }
1834
1839
  }
1835
- function Vi(e, n) {
1840
+ function $i(e, n) {
1836
1841
  let t = -1;
1837
1842
  const r = [];
1838
1843
  for (; ++t < n.length; )
1839
1844
  (n[t].add === "after" ? e : r).push(n[t]);
1840
1845
  se(e, 0, 0, r);
1841
1846
  }
1842
- function Xt(e, n) {
1847
+ function Yt(e, n) {
1843
1848
  const t = Number.parseInt(e, n);
1844
1849
  return (
1845
1850
  // C0 except for HT, LF, FF, CR, space.
@@ -1855,15 +1860,15 @@ function Xt(e, n) {
1855
1860
  function Te(e) {
1856
1861
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
1857
1862
  }
1858
- const ue = ge(/[A-Za-z]/), ne = ge(/[\dA-Za-z]/), qi = ge(/[#-'*+\--9=?A-Z^-~]/);
1859
- function yn(e) {
1863
+ const ue = ge(/[A-Za-z]/), ne = ge(/[\dA-Za-z]/), Wi = ge(/[#-'*+\--9=?A-Z^-~]/);
1864
+ function gn(e) {
1860
1865
  return (
1861
1866
  // Special whitespace codes (which have negative values), C0 and Control
1862
1867
  // character DEL
1863
1868
  e !== null && (e < 32 || e === 127)
1864
1869
  );
1865
1870
  }
1866
- const xn = ge(/\d/), $i = ge(/[\dA-Fa-f]/), Wi = ge(/[!-/:-@[-`{-~]/);
1871
+ const yn = ge(/\d/), Yi = ge(/[\dA-Fa-f]/), Xi = ge(/[!-/:-@[-`{-~]/);
1867
1872
  function P(e) {
1868
1873
  return e !== null && e < -2;
1869
1874
  }
@@ -1873,7 +1878,7 @@ function K(e) {
1873
1878
  function D(e) {
1874
1879
  return e === -2 || e === -1 || e === 32;
1875
1880
  }
1876
- const Yi = ge(new RegExp("\\p{P}|\\p{S}", "u")), Xi = ge(/\s/);
1881
+ const Qi = ge(new RegExp("\\p{P}|\\p{S}", "u")), Gi = ge(/\s/);
1877
1882
  function ge(e) {
1878
1883
  return n;
1879
1884
  function n(t) {
@@ -1910,10 +1915,10 @@ function M(e, n, t, r) {
1910
1915
  return D(u) && l++ < i ? (e.consume(u), a) : (e.exit(t), n(u));
1911
1916
  }
1912
1917
  }
1913
- const Qi = {
1914
- tokenize: Gi
1918
+ const Ki = {
1919
+ tokenize: Ji
1915
1920
  };
1916
- function Gi(e) {
1921
+ function Ji(e) {
1917
1922
  const n = e.attempt(this.parser.constructs.contentInitial, r, i);
1918
1923
  let t;
1919
1924
  return n;
@@ -1942,23 +1947,23 @@ function Gi(e) {
1942
1947
  return P(a) ? (e.consume(a), e.exit("chunkText"), l) : (e.consume(a), o);
1943
1948
  }
1944
1949
  }
1945
- const Ki = {
1946
- tokenize: Ji
1947
- }, ot = {
1948
- tokenize: Zi
1950
+ const Zi = {
1951
+ tokenize: el
1952
+ }, lt = {
1953
+ tokenize: nl
1949
1954
  };
1950
- function Ji(e) {
1955
+ function el(e) {
1951
1956
  const n = this, t = [];
1952
1957
  let r = 0, i, l, o;
1953
1958
  return a;
1954
- function a(E) {
1959
+ function a(C) {
1955
1960
  if (r < t.length) {
1956
1961
  const j = t[r];
1957
- return n.containerState = j[1], e.attempt(j[0].continuation, u, c)(E);
1962
+ return n.containerState = j[1], e.attempt(j[0].continuation, u, c)(C);
1958
1963
  }
1959
- return c(E);
1964
+ return c(C);
1960
1965
  }
1961
- function u(E) {
1966
+ function u(C) {
1962
1967
  if (r++, n.containerState._closeFlow) {
1963
1968
  n.containerState._closeFlow = void 0, i && L();
1964
1969
  const j = n.events.length;
@@ -1974,53 +1979,53 @@ function Ji(e) {
1974
1979
  n.events[N][1].end = {
1975
1980
  ...x
1976
1981
  }, N++;
1977
- return se(n.events, U + 1, 0, n.events.slice(j)), n.events.length = N, c(E);
1982
+ return se(n.events, U + 1, 0, n.events.slice(j)), n.events.length = N, c(C);
1978
1983
  }
1979
- return a(E);
1984
+ return a(C);
1980
1985
  }
1981
- function c(E) {
1986
+ function c(C) {
1982
1987
  if (r === t.length) {
1983
1988
  if (!i)
1984
- return d(E);
1989
+ return d(C);
1985
1990
  if (i.currentConstruct && i.currentConstruct.concrete)
1986
- return y(E);
1991
+ return y(C);
1987
1992
  n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
1988
1993
  }
1989
- return n.containerState = {}, e.check(ot, s, f)(E);
1994
+ return n.containerState = {}, e.check(lt, s, f)(C);
1990
1995
  }
1991
- function s(E) {
1992
- return i && L(), w(r), d(E);
1996
+ function s(C) {
1997
+ return i && L(), w(r), d(C);
1993
1998
  }
1994
- function f(E) {
1995
- return n.parser.lazy[n.now().line] = r !== t.length, o = n.now().offset, y(E);
1999
+ function f(C) {
2000
+ return n.parser.lazy[n.now().line] = r !== t.length, o = n.now().offset, y(C);
1996
2001
  }
1997
- function d(E) {
1998
- return n.containerState = {}, e.attempt(ot, p, y)(E);
2002
+ function d(C) {
2003
+ return n.containerState = {}, e.attempt(lt, p, y)(C);
1999
2004
  }
2000
- function p(E) {
2001
- return r++, t.push([n.currentConstruct, n.containerState]), d(E);
2005
+ function p(C) {
2006
+ return r++, t.push([n.currentConstruct, n.containerState]), d(C);
2002
2007
  }
2003
- function y(E) {
2004
- if (E === null) {
2005
- i && L(), w(0), e.consume(E);
2008
+ function y(C) {
2009
+ if (C === null) {
2010
+ i && L(), w(0), e.consume(C);
2006
2011
  return;
2007
2012
  }
2008
2013
  return i = i || n.parser.flow(n.now()), e.enter("chunkFlow", {
2009
2014
  _tokenizer: i,
2010
2015
  contentType: "flow",
2011
2016
  previous: l
2012
- }), b(E);
2017
+ }), b(C);
2013
2018
  }
2014
- function b(E) {
2015
- if (E === null) {
2016
- T(e.exit("chunkFlow"), !0), w(0), e.consume(E);
2019
+ function b(C) {
2020
+ if (C === null) {
2021
+ T(e.exit("chunkFlow"), !0), w(0), e.consume(C);
2017
2022
  return;
2018
2023
  }
2019
- return P(E) ? (e.consume(E), T(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (e.consume(E), b);
2024
+ return P(C) ? (e.consume(C), T(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (e.consume(C), b);
2020
2025
  }
2021
- function T(E, j) {
2022
- const U = n.sliceStream(E);
2023
- if (j && U.push(null), E.previous = l, l && (l.next = E), l = E, i.defineSkip(E.start), i.write(U), n.parser.lazy[E.start.line]) {
2026
+ function T(C, j) {
2027
+ const U = n.sliceStream(C);
2028
+ if (j && U.push(null), C.previous = l, l && (l.next = C), l = C, i.defineSkip(C.start), i.write(U), n.parser.lazy[C.start.line]) {
2024
2029
  let x = i.events.length;
2025
2030
  for (; x--; )
2026
2031
  if (
@@ -2047,28 +2052,28 @@ function Ji(e) {
2047
2052
  se(n.events, V + 1, 0, n.events.slice(N)), n.events.length = x;
2048
2053
  }
2049
2054
  }
2050
- function w(E) {
2055
+ function w(C) {
2051
2056
  let j = t.length;
2052
- for (; j-- > E; ) {
2057
+ for (; j-- > C; ) {
2053
2058
  const U = t[j];
2054
2059
  n.containerState = U[1], U[0].exit.call(n, e);
2055
2060
  }
2056
- t.length = E;
2061
+ t.length = C;
2057
2062
  }
2058
2063
  function L() {
2059
2064
  i.write([null]), l = void 0, i = void 0, n.containerState._closeFlow = void 0;
2060
2065
  }
2061
2066
  }
2062
- function Zi(e, n, t) {
2067
+ function nl(e, n, t) {
2063
2068
  return M(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2064
2069
  }
2065
- function at(e) {
2066
- if (e === null || K(e) || Xi(e))
2070
+ function ot(e) {
2071
+ if (e === null || K(e) || Gi(e))
2067
2072
  return 1;
2068
- if (Yi(e))
2073
+ if (Qi(e))
2069
2074
  return 2;
2070
2075
  }
2071
- function On(e, n, t) {
2076
+ function Ln(e, n, t) {
2072
2077
  const r = [];
2073
2078
  let i = -1;
2074
2079
  for (; ++i < e.length; ) {
@@ -2077,12 +2082,12 @@ function On(e, n, t) {
2077
2082
  }
2078
2083
  return n;
2079
2084
  }
2080
- const kn = {
2085
+ const xn = {
2081
2086
  name: "attention",
2082
- resolveAll: el,
2083
- tokenize: nl
2087
+ resolveAll: tl,
2088
+ tokenize: rl
2084
2089
  };
2085
- function el(e, n) {
2090
+ function tl(e, n) {
2086
2091
  let t = -1, r, i, l, o, a, u, c, s;
2087
2092
  for (; ++t < e.length; )
2088
2093
  if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
@@ -2097,7 +2102,7 @@ function el(e, n) {
2097
2102
  }, d = {
2098
2103
  ...e[t][1].start
2099
2104
  };
2100
- ut(f, -u), ut(d, u), o = {
2105
+ at(f, -u), at(d, u), o = {
2101
2106
  type: u > 1 ? "strongSequence" : "emphasisSequence",
2102
2107
  start: f,
2103
2108
  end: {
@@ -2129,7 +2134,7 @@ function el(e, n) {
2129
2134
  ...o.start
2130
2135
  }, e[t][1].start = {
2131
2136
  ...a.end
2132
- }, c = [], e[r][1].end.offset - e[r][1].start.offset && (c = te(c, [["enter", e[r][1], n], ["exit", e[r][1], n]])), c = te(c, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), c = te(c, On(n.parser.constructs.insideSpan.null, e.slice(r + 1, t), n)), c = te(c, [["exit", l, n], ["enter", a, n], ["exit", a, n], ["exit", i, n]]), e[t][1].end.offset - e[t][1].start.offset ? (s = 2, c = te(c, [["enter", e[t][1], n], ["exit", e[t][1], n]])) : s = 0, se(e, r - 1, t - r + 3, c), t = r + c.length - s - 2;
2137
+ }, c = [], e[r][1].end.offset - e[r][1].start.offset && (c = te(c, [["enter", e[r][1], n], ["exit", e[r][1], n]])), c = te(c, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), c = te(c, Ln(n.parser.constructs.insideSpan.null, e.slice(r + 1, t), n)), c = te(c, [["exit", l, n], ["enter", a, n], ["exit", a, n], ["exit", i, n]]), e[t][1].end.offset - e[t][1].start.offset ? (s = 2, c = te(c, [["enter", e[t][1], n], ["exit", e[t][1], n]])) : s = 0, se(e, r - 1, t - r + 3, c), t = r + c.length - s - 2;
2133
2138
  break;
2134
2139
  }
2135
2140
  }
@@ -2137,8 +2142,8 @@ function el(e, n) {
2137
2142
  e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
2138
2143
  return e;
2139
2144
  }
2140
- function nl(e, n) {
2141
- const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = at(r);
2145
+ function rl(e, n) {
2146
+ const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = ot(r);
2142
2147
  let l;
2143
2148
  return o;
2144
2149
  function o(u) {
@@ -2147,18 +2152,18 @@ function nl(e, n) {
2147
2152
  function a(u) {
2148
2153
  if (u === l)
2149
2154
  return e.consume(u), a;
2150
- const c = e.exit("attentionSequence"), s = at(u), f = !s || s === 2 && i || t.includes(u), d = !i || i === 2 && s || t.includes(r);
2155
+ const c = e.exit("attentionSequence"), s = ot(u), f = !s || s === 2 && i || t.includes(u), d = !i || i === 2 && s || t.includes(r);
2151
2156
  return c._open = !!(l === 42 ? f : f && (i || !d)), c._close = !!(l === 42 ? d : d && (s || !f)), n(u);
2152
2157
  }
2153
2158
  }
2154
- function ut(e, n) {
2159
+ function at(e, n) {
2155
2160
  e.column += n, e.offset += n, e._bufferIndex += n;
2156
2161
  }
2157
- const tl = {
2162
+ const il = {
2158
2163
  name: "autolink",
2159
- tokenize: rl
2164
+ tokenize: ll
2160
2165
  };
2161
- function rl(e, n, t) {
2166
+ function ll(e, n, t) {
2162
2167
  let r = 0;
2163
2168
  return i;
2164
2169
  function i(p) {
@@ -2174,10 +2179,10 @@ function rl(e, n, t) {
2174
2179
  return p === 58 ? (e.consume(p), r = 0, u) : (p === 43 || p === 45 || p === 46 || ne(p)) && r++ < 32 ? (e.consume(p), a) : (r = 0, c(p));
2175
2180
  }
2176
2181
  function u(p) {
2177
- return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 || yn(p) ? t(p) : (e.consume(p), u);
2182
+ return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 || gn(p) ? t(p) : (e.consume(p), u);
2178
2183
  }
2179
2184
  function c(p) {
2180
- return p === 64 ? (e.consume(p), s) : qi(p) ? (e.consume(p), c) : t(p);
2185
+ return p === 64 ? (e.consume(p), s) : Wi(p) ? (e.consume(p), c) : t(p);
2181
2186
  }
2182
2187
  function s(p) {
2183
2188
  return ne(p) ? f(p) : t(p);
@@ -2195,9 +2200,9 @@ function rl(e, n, t) {
2195
2200
  }
2196
2201
  const Ge = {
2197
2202
  partial: !0,
2198
- tokenize: il
2203
+ tokenize: ol
2199
2204
  };
2200
- function il(e, n, t) {
2205
+ function ol(e, n, t) {
2201
2206
  return r;
2202
2207
  function r(l) {
2203
2208
  return D(l) ? M(e, i, "linePrefix")(l) : i(l);
@@ -2206,15 +2211,15 @@ function il(e, n, t) {
2206
2211
  return l === null || P(l) ? n(l) : t(l);
2207
2212
  }
2208
2213
  }
2209
- const Qt = {
2214
+ const Xt = {
2210
2215
  continuation: {
2211
- tokenize: ol
2216
+ tokenize: ul
2212
2217
  },
2213
- exit: al,
2218
+ exit: sl,
2214
2219
  name: "blockQuote",
2215
- tokenize: ll
2220
+ tokenize: al
2216
2221
  };
2217
- function ll(e, n, t) {
2222
+ function al(e, n, t) {
2218
2223
  const r = this;
2219
2224
  return i;
2220
2225
  function i(o) {
@@ -2230,37 +2235,37 @@ function ll(e, n, t) {
2230
2235
  return D(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(o));
2231
2236
  }
2232
2237
  }
2233
- function ol(e, n, t) {
2238
+ function ul(e, n, t) {
2234
2239
  const r = this;
2235
2240
  return i;
2236
2241
  function i(o) {
2237
2242
  return D(o) ? M(e, l, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : l(o);
2238
2243
  }
2239
2244
  function l(o) {
2240
- return e.attempt(Qt, n, t)(o);
2245
+ return e.attempt(Xt, n, t)(o);
2241
2246
  }
2242
2247
  }
2243
- function al(e) {
2248
+ function sl(e) {
2244
2249
  e.exit("blockQuote");
2245
2250
  }
2246
- const Gt = {
2251
+ const Qt = {
2247
2252
  name: "characterEscape",
2248
- tokenize: ul
2253
+ tokenize: cl
2249
2254
  };
2250
- function ul(e, n, t) {
2255
+ function cl(e, n, t) {
2251
2256
  return r;
2252
2257
  function r(l) {
2253
2258
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(l), e.exit("escapeMarker"), i;
2254
2259
  }
2255
2260
  function i(l) {
2256
- return Wi(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
2261
+ return Xi(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
2257
2262
  }
2258
2263
  }
2259
- const Kt = {
2264
+ const Gt = {
2260
2265
  name: "characterReference",
2261
- tokenize: sl
2266
+ tokenize: pl
2262
2267
  };
2263
- function sl(e, n, t) {
2268
+ function pl(e, n, t) {
2264
2269
  const r = this;
2265
2270
  let i = 0, l, o;
2266
2271
  return a;
@@ -2271,25 +2276,25 @@ function sl(e, n, t) {
2271
2276
  return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), l = 31, o = ne, s(f));
2272
2277
  }
2273
2278
  function c(f) {
2274
- return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = $i, s) : (e.enter("characterReferenceValue"), l = 7, o = xn, s(f));
2279
+ return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = Yi, s) : (e.enter("characterReferenceValue"), l = 7, o = yn, s(f));
2275
2280
  }
2276
2281
  function s(f) {
2277
2282
  if (f === 59 && i) {
2278
2283
  const d = e.exit("characterReferenceValue");
2279
- return o === ne && !Ln(r.sliceSerialize(d)) ? t(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
2284
+ return o === ne && !zn(r.sliceSerialize(d)) ? t(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
2280
2285
  }
2281
2286
  return o(f) && i++ < l ? (e.consume(f), s) : t(f);
2282
2287
  }
2283
2288
  }
2284
- const st = {
2289
+ const ut = {
2285
2290
  partial: !0,
2286
- tokenize: pl
2287
- }, ct = {
2291
+ tokenize: hl
2292
+ }, st = {
2288
2293
  concrete: !0,
2289
2294
  name: "codeFenced",
2290
- tokenize: cl
2295
+ tokenize: fl
2291
2296
  };
2292
- function cl(e, n, t) {
2297
+ function fl(e, n, t) {
2293
2298
  const r = this, i = {
2294
2299
  partial: !0,
2295
2300
  tokenize: U
@@ -2307,7 +2312,7 @@ function cl(e, n, t) {
2307
2312
  return x === a ? (o++, e.consume(x), s) : o < 3 ? t(x) : (e.exit("codeFencedFenceSequence"), D(x) ? M(e, f, "whitespace")(x) : f(x));
2308
2313
  }
2309
2314
  function f(x) {
2310
- return x === null || P(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(st, b, j)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2315
+ return x === null || P(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(ut, b, j)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2311
2316
  contentType: "string"
2312
2317
  }), d(x));
2313
2318
  }
@@ -2332,10 +2337,10 @@ function cl(e, n, t) {
2332
2337
  return l > 0 && D(x) ? M(e, L, "linePrefix", l + 1)(x) : L(x);
2333
2338
  }
2334
2339
  function L(x) {
2335
- return x === null || P(x) ? e.check(st, b, j)(x) : (e.enter("codeFlowValue"), E(x));
2340
+ return x === null || P(x) ? e.check(ut, b, j)(x) : (e.enter("codeFlowValue"), C(x));
2336
2341
  }
2337
- function E(x) {
2338
- return x === null || P(x) ? (e.exit("codeFlowValue"), L(x)) : (e.consume(x), E);
2342
+ function C(x) {
2343
+ return x === null || P(x) ? (e.exit("codeFlowValue"), L(x)) : (e.consume(x), C);
2339
2344
  }
2340
2345
  function j(x) {
2341
2346
  return e.exit("codeFenced"), n(x);
@@ -2347,9 +2352,9 @@ function cl(e, n, t) {
2347
2352
  return x.enter("lineEnding"), x.consume(v), x.exit("lineEnding"), I;
2348
2353
  }
2349
2354
  function I(v) {
2350
- return x.enter("codeFencedFence"), D(v) ? M(x, C, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : C(v);
2355
+ return x.enter("codeFencedFence"), D(v) ? M(x, E, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : E(v);
2351
2356
  }
2352
- function C(v) {
2357
+ function E(v) {
2353
2358
  return v === a ? (x.enter("codeFencedFenceSequence"), H(v)) : V(v);
2354
2359
  }
2355
2360
  function H(v) {
@@ -2360,7 +2365,7 @@ function cl(e, n, t) {
2360
2365
  }
2361
2366
  }
2362
2367
  }
2363
- function pl(e, n, t) {
2368
+ function hl(e, n, t) {
2364
2369
  const r = this;
2365
2370
  return i;
2366
2371
  function i(o) {
@@ -2370,14 +2375,14 @@ function pl(e, n, t) {
2370
2375
  return r.parser.lazy[r.now().line] ? t(o) : n(o);
2371
2376
  }
2372
2377
  }
2373
- const tn = {
2378
+ const nn = {
2374
2379
  name: "codeIndented",
2375
- tokenize: hl
2376
- }, fl = {
2380
+ tokenize: dl
2381
+ }, ml = {
2377
2382
  partial: !0,
2378
- tokenize: ml
2383
+ tokenize: gl
2379
2384
  };
2380
- function hl(e, n, t) {
2385
+ function dl(e, n, t) {
2381
2386
  const r = this;
2382
2387
  return i;
2383
2388
  function i(c) {
@@ -2388,7 +2393,7 @@ function hl(e, n, t) {
2388
2393
  return s && s[1].type === "linePrefix" && s[2].sliceSerialize(s[1], !0).length >= 4 ? o(c) : t(c);
2389
2394
  }
2390
2395
  function o(c) {
2391
- return c === null ? u(c) : P(c) ? e.attempt(fl, o, u)(c) : (e.enter("codeFlowValue"), a(c));
2396
+ return c === null ? u(c) : P(c) ? e.attempt(ml, o, u)(c) : (e.enter("codeFlowValue"), a(c));
2392
2397
  }
2393
2398
  function a(c) {
2394
2399
  return c === null || P(c) ? (e.exit("codeFlowValue"), o(c)) : (e.consume(c), a);
@@ -2397,7 +2402,7 @@ function hl(e, n, t) {
2397
2402
  return e.exit("codeIndented"), n(c);
2398
2403
  }
2399
2404
  }
2400
- function ml(e, n, t) {
2405
+ function gl(e, n, t) {
2401
2406
  const r = this;
2402
2407
  return i;
2403
2408
  function i(o) {
@@ -2408,13 +2413,13 @@ function ml(e, n, t) {
2408
2413
  return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : P(o) ? i(o) : t(o);
2409
2414
  }
2410
2415
  }
2411
- const dl = {
2416
+ const yl = {
2412
2417
  name: "codeText",
2413
- previous: yl,
2414
- resolve: gl,
2415
- tokenize: xl
2418
+ previous: kl,
2419
+ resolve: xl,
2420
+ tokenize: bl
2416
2421
  };
2417
- function gl(e) {
2422
+ function xl(e) {
2418
2423
  let n = e.length - 4, t = 3, r, i;
2419
2424
  if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
2420
2425
  for (r = t; ++r < n; )
@@ -2427,10 +2432,10 @@ function gl(e) {
2427
2432
  i === void 0 ? r !== n && e[r][1].type !== "lineEnding" && (i = r) : (r === n || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), n -= r - i - 2, r = i + 2), i = void 0);
2428
2433
  return e;
2429
2434
  }
2430
- function yl(e) {
2435
+ function kl(e) {
2431
2436
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
2432
2437
  }
2433
- function xl(e, n, t) {
2438
+ function bl(e, n, t) {
2434
2439
  let r = 0, i, l;
2435
2440
  return o;
2436
2441
  function o(f) {
@@ -2449,7 +2454,7 @@ function xl(e, n, t) {
2449
2454
  return f === 96 ? (e.consume(f), i++, s) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(f)) : (l.type = "codeTextData", c(f));
2450
2455
  }
2451
2456
  }
2452
- class kl {
2457
+ class wl {
2453
2458
  /**
2454
2459
  * @param {ReadonlyArray<T> | null | undefined} [initial]
2455
2460
  * Initial items (optional).
@@ -2621,10 +2626,10 @@ function ve(e, n) {
2621
2626
  for (; t < n.length; )
2622
2627
  e.push(...n.slice(t, t + 1e4)), t += 1e4;
2623
2628
  }
2624
- function Jt(e) {
2629
+ function Kt(e) {
2625
2630
  const n = {};
2626
2631
  let t = -1, r, i, l, o, a, u, c;
2627
- const s = new kl(e);
2632
+ const s = new wl(e);
2628
2633
  for (; ++t < s.length; ) {
2629
2634
  for (; t in n; )
2630
2635
  t = n[t];
@@ -2632,7 +2637,7 @@ function Jt(e) {
2632
2637
  for (; ++l < u.length && u[l][1].type !== "content"; )
2633
2638
  u[l][1].type === "chunkText" && (u[l][1]._isInFirstContentOfListItem = !0, l++);
2634
2639
  if (r[0] === "enter")
2635
- r[1].contentType && (Object.assign(n, bl(s, t)), t = n[t], c = !0);
2640
+ r[1].contentType && (Object.assign(n, Sl(s, t)), t = n[t], c = !0);
2636
2641
  else if (r[1]._container) {
2637
2642
  for (l = t, i = void 0; l--; )
2638
2643
  if (o = s.get(l), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank")
@@ -2645,7 +2650,7 @@ function Jt(e) {
2645
2650
  }
2646
2651
  return se(e, 0, Number.POSITIVE_INFINITY, s.slice(0)), !c;
2647
2652
  }
2648
- function bl(e, n) {
2653
+ function Sl(e, n) {
2649
2654
  const t = e.get(n)[1], r = e.get(n)[2];
2650
2655
  let i = n - 1;
2651
2656
  const l = [];
@@ -2670,17 +2675,17 @@ function bl(e, n) {
2670
2675
  c[y + u[d][0]] = y + u[d][1], y += u[d][1] - u[d][0] - 1;
2671
2676
  return c;
2672
2677
  }
2673
- const wl = {
2674
- resolve: El,
2675
- tokenize: Cl
2676
- }, Sl = {
2678
+ const Cl = {
2679
+ resolve: Il,
2680
+ tokenize: Tl
2681
+ }, El = {
2677
2682
  partial: !0,
2678
- tokenize: Il
2683
+ tokenize: Pl
2679
2684
  };
2680
- function El(e) {
2681
- return Jt(e), e;
2685
+ function Il(e) {
2686
+ return Kt(e), e;
2682
2687
  }
2683
- function Cl(e, n) {
2688
+ function Tl(e, n) {
2684
2689
  let t;
2685
2690
  return r;
2686
2691
  function r(a) {
@@ -2689,7 +2694,7 @@ function Cl(e, n) {
2689
2694
  }), i(a);
2690
2695
  }
2691
2696
  function i(a) {
2692
- return a === null ? l(a) : P(a) ? e.check(Sl, o, l)(a) : (e.consume(a), i);
2697
+ return a === null ? l(a) : P(a) ? e.check(El, o, l)(a) : (e.consume(a), i);
2693
2698
  }
2694
2699
  function l(a) {
2695
2700
  return e.exit("chunkContent"), e.exit("content"), n(a);
@@ -2701,7 +2706,7 @@ function Cl(e, n) {
2701
2706
  }), t = t.next, i;
2702
2707
  }
2703
2708
  }
2704
- function Il(e, n, t) {
2709
+ function Pl(e, n, t) {
2705
2710
  const r = this;
2706
2711
  return i;
2707
2712
  function i(o) {
@@ -2714,12 +2719,12 @@ function Il(e, n, t) {
2714
2719
  return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : e.interrupt(r.parser.constructs.flow, t, n)(o);
2715
2720
  }
2716
2721
  }
2717
- function Zt(e, n, t, r, i, l, o, a, u) {
2722
+ function Jt(e, n, t, r, i, l, o, a, u) {
2718
2723
  const c = u || Number.POSITIVE_INFINITY;
2719
2724
  let s = 0;
2720
2725
  return f;
2721
2726
  function f(w) {
2722
- return w === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(w), e.exit(l), d) : w === null || w === 32 || w === 41 || yn(w) ? t(w) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
2727
+ return w === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(w), e.exit(l), d) : w === null || w === 32 || w === 41 || gn(w) ? t(w) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
2723
2728
  contentType: "string"
2724
2729
  }), b(w));
2725
2730
  }
@@ -2735,13 +2740,13 @@ function Zt(e, n, t, r, i, l, o, a, u) {
2735
2740
  return w === 60 || w === 62 || w === 92 ? (e.consume(w), p) : p(w);
2736
2741
  }
2737
2742
  function b(w) {
2738
- return !s && (w === null || w === 41 || K(w)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(w)) : s < c && w === 40 ? (e.consume(w), s++, b) : w === 41 ? (e.consume(w), s--, b) : w === null || w === 32 || w === 40 || yn(w) ? t(w) : (e.consume(w), w === 92 ? T : b);
2743
+ return !s && (w === null || w === 41 || K(w)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(w)) : s < c && w === 40 ? (e.consume(w), s++, b) : w === 41 ? (e.consume(w), s--, b) : w === null || w === 32 || w === 40 || gn(w) ? t(w) : (e.consume(w), w === 92 ? T : b);
2739
2744
  }
2740
2745
  function T(w) {
2741
2746
  return w === 40 || w === 41 || w === 92 ? (e.consume(w), b) : b(w);
2742
2747
  }
2743
2748
  }
2744
- function er(e, n, t, r, i, l) {
2749
+ function Zt(e, n, t, r, i, l) {
2745
2750
  const o = this;
2746
2751
  let a = 0, u;
2747
2752
  return c;
@@ -2765,7 +2770,7 @@ function er(e, n, t, r, i, l) {
2765
2770
  return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, f) : f(p);
2766
2771
  }
2767
2772
  }
2768
- function nr(e, n, t, r, i, l) {
2773
+ function er(e, n, t, r, i, l) {
2769
2774
  let o;
2770
2775
  return a;
2771
2776
  function a(d) {
@@ -2793,14 +2798,14 @@ function _e(e, n) {
2793
2798
  return P(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : D(i) ? M(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
2794
2799
  }
2795
2800
  }
2796
- const Tl = {
2801
+ const Al = {
2797
2802
  name: "definition",
2798
- tokenize: Al
2799
- }, Pl = {
2803
+ tokenize: Ll
2804
+ }, zl = {
2800
2805
  partial: !0,
2801
- tokenize: zl
2806
+ tokenize: Ol
2802
2807
  };
2803
- function Al(e, n, t) {
2808
+ function Ll(e, n, t) {
2804
2809
  const r = this;
2805
2810
  let i;
2806
2811
  return l;
@@ -2808,7 +2813,7 @@ function Al(e, n, t) {
2808
2813
  return e.enter("definition"), o(p);
2809
2814
  }
2810
2815
  function o(p) {
2811
- return er.call(
2816
+ return Zt.call(
2812
2817
  r,
2813
2818
  e,
2814
2819
  a,
@@ -2826,7 +2831,7 @@ function Al(e, n, t) {
2826
2831
  return K(p) ? _e(e, c)(p) : c(p);
2827
2832
  }
2828
2833
  function c(p) {
2829
- return Zt(
2834
+ return Jt(
2830
2835
  e,
2831
2836
  s,
2832
2837
  // Note: we don’t need to reset the way `markdown-rs` does.
@@ -2839,7 +2844,7 @@ function Al(e, n, t) {
2839
2844
  )(p);
2840
2845
  }
2841
2846
  function s(p) {
2842
- return e.attempt(Pl, f, f)(p);
2847
+ return e.attempt(zl, f, f)(p);
2843
2848
  }
2844
2849
  function f(p) {
2845
2850
  return D(p) ? M(e, d, "whitespace")(p) : d(p);
@@ -2848,13 +2853,13 @@ function Al(e, n, t) {
2848
2853
  return p === null || P(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
2849
2854
  }
2850
2855
  }
2851
- function zl(e, n, t) {
2856
+ function Ol(e, n, t) {
2852
2857
  return r;
2853
2858
  function r(a) {
2854
2859
  return K(a) ? _e(e, i)(a) : t(a);
2855
2860
  }
2856
2861
  function i(a) {
2857
- return nr(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
2862
+ return er(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
2858
2863
  }
2859
2864
  function l(a) {
2860
2865
  return D(a) ? M(e, o, "whitespace")(a) : o(a);
@@ -2863,11 +2868,11 @@ function zl(e, n, t) {
2863
2868
  return a === null || P(a) ? n(a) : t(a);
2864
2869
  }
2865
2870
  }
2866
- const Ll = {
2871
+ const vl = {
2867
2872
  name: "hardBreakEscape",
2868
- tokenize: Ol
2873
+ tokenize: Dl
2869
2874
  };
2870
- function Ol(e, n, t) {
2875
+ function Dl(e, n, t) {
2871
2876
  return r;
2872
2877
  function r(l) {
2873
2878
  return e.enter("hardBreakEscape"), e.consume(l), i;
@@ -2876,12 +2881,12 @@ function Ol(e, n, t) {
2876
2881
  return P(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
2877
2882
  }
2878
2883
  }
2879
- const vl = {
2884
+ const Nl = {
2880
2885
  name: "headingAtx",
2881
- resolve: Dl,
2882
- tokenize: Nl
2886
+ resolve: _l,
2887
+ tokenize: Fl
2883
2888
  };
2884
- function Dl(e, n) {
2889
+ function _l(e, n) {
2885
2890
  let t = e.length - 2, r = 3, i, l;
2886
2891
  return e[r][1].type === "whitespace" && (r += 2), t - 2 > r && e[t][1].type === "whitespace" && (t -= 2), e[t][1].type === "atxHeadingSequence" && (r === t - 1 || t - 4 > r && e[t - 2][1].type === "whitespace") && (t -= r + 1 === t ? 2 : 4), t > r && (i = {
2887
2892
  type: "atxHeadingText",
@@ -2894,7 +2899,7 @@ function Dl(e, n) {
2894
2899
  contentType: "text"
2895
2900
  }, se(e, r, t - r + 1, [["enter", i, n], ["enter", l, n], ["exit", l, n], ["exit", i, n]])), e;
2896
2901
  }
2897
- function Nl(e, n, t) {
2902
+ function Fl(e, n, t) {
2898
2903
  let r = 0;
2899
2904
  return i;
2900
2905
  function i(s) {
@@ -2916,7 +2921,7 @@ function Nl(e, n, t) {
2916
2921
  return s === null || s === 35 || K(s) ? (e.exit("atxHeadingText"), a(s)) : (e.consume(s), c);
2917
2922
  }
2918
2923
  }
2919
- const _l = [
2924
+ const Rl = [
2920
2925
  "address",
2921
2926
  "article",
2922
2927
  "aside",
@@ -2979,25 +2984,25 @@ const _l = [
2979
2984
  "tr",
2980
2985
  "track",
2981
2986
  "ul"
2982
- ], pt = ["pre", "script", "style", "textarea"], Fl = {
2987
+ ], ct = ["pre", "script", "style", "textarea"], Ml = {
2983
2988
  concrete: !0,
2984
2989
  name: "htmlFlow",
2985
- resolveTo: Bl,
2986
- tokenize: jl
2987
- }, Rl = {
2988
- partial: !0,
2990
+ resolveTo: Hl,
2989
2991
  tokenize: Ul
2990
- }, Ml = {
2992
+ }, Bl = {
2993
+ partial: !0,
2994
+ tokenize: ql
2995
+ }, jl = {
2991
2996
  partial: !0,
2992
- tokenize: Hl
2997
+ tokenize: Vl
2993
2998
  };
2994
- function Bl(e) {
2999
+ function Hl(e) {
2995
3000
  let n = e.length;
2996
3001
  for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
2997
3002
  ;
2998
3003
  return n > 1 && e[n - 2][1].type === "linePrefix" && (e[n][1].start = e[n - 2][1].start, e[n + 1][1].start = e[n - 2][1].start, e.splice(n - 2, 2)), e;
2999
3004
  }
3000
- function jl(e, n, t) {
3005
+ function Ul(e, n, t) {
3001
3006
  const r = this;
3002
3007
  let i, l, o, a, u;
3003
3008
  return c;
@@ -3018,7 +3023,7 @@ function jl(e, n, t) {
3018
3023
  }
3019
3024
  function y(m) {
3020
3025
  const le = "CDATA[";
3021
- return m === le.charCodeAt(a++) ? (e.consume(m), a === le.length ? r.interrupt ? n : C : y) : t(m);
3026
+ return m === le.charCodeAt(a++) ? (e.consume(m), a === le.length ? r.interrupt ? n : E : y) : t(m);
3022
3027
  }
3023
3028
  function b(m) {
3024
3029
  return ue(m) ? (e.consume(m), o = String.fromCharCode(m), T) : t(m);
@@ -3026,24 +3031,24 @@ function jl(e, n, t) {
3026
3031
  function T(m) {
3027
3032
  if (m === null || m === 47 || m === 62 || K(m)) {
3028
3033
  const le = m === 47, ye = o.toLowerCase();
3029
- return !le && !l && pt.includes(ye) ? (i = 1, r.interrupt ? n(m) : C(m)) : _l.includes(o.toLowerCase()) ? (i = 6, le ? (e.consume(m), w) : r.interrupt ? n(m) : C(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? L(m) : E(m));
3034
+ return !le && !l && ct.includes(ye) ? (i = 1, r.interrupt ? n(m) : E(m)) : Rl.includes(o.toLowerCase()) ? (i = 6, le ? (e.consume(m), w) : r.interrupt ? n(m) : E(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? L(m) : C(m));
3030
3035
  }
3031
3036
  return m === 45 || ne(m) ? (e.consume(m), o += String.fromCharCode(m), T) : t(m);
3032
3037
  }
3033
3038
  function w(m) {
3034
- return m === 62 ? (e.consume(m), r.interrupt ? n : C) : t(m);
3039
+ return m === 62 ? (e.consume(m), r.interrupt ? n : E) : t(m);
3035
3040
  }
3036
3041
  function L(m) {
3037
3042
  return D(m) ? (e.consume(m), L) : B(m);
3038
3043
  }
3039
- function E(m) {
3040
- return m === 47 ? (e.consume(m), B) : m === 58 || m === 95 || ue(m) ? (e.consume(m), j) : D(m) ? (e.consume(m), E) : B(m);
3044
+ function C(m) {
3045
+ return m === 47 ? (e.consume(m), B) : m === 58 || m === 95 || ue(m) ? (e.consume(m), j) : D(m) ? (e.consume(m), C) : B(m);
3041
3046
  }
3042
3047
  function j(m) {
3043
3048
  return m === 45 || m === 46 || m === 58 || m === 95 || ne(m) ? (e.consume(m), j) : U(m);
3044
3049
  }
3045
3050
  function U(m) {
3046
- return m === 61 ? (e.consume(m), x) : D(m) ? (e.consume(m), U) : E(m);
3051
+ return m === 61 ? (e.consume(m), x) : D(m) ? (e.consume(m), U) : C(m);
3047
3052
  }
3048
3053
  function x(m) {
3049
3054
  return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), u = m, N) : D(m) ? (e.consume(m), x) : V(m);
@@ -3055,44 +3060,44 @@ function jl(e, n, t) {
3055
3060
  return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || K(m) ? U(m) : (e.consume(m), V);
3056
3061
  }
3057
3062
  function _(m) {
3058
- return m === 47 || m === 62 || D(m) ? E(m) : t(m);
3063
+ return m === 47 || m === 62 || D(m) ? C(m) : t(m);
3059
3064
  }
3060
3065
  function B(m) {
3061
3066
  return m === 62 ? (e.consume(m), I) : t(m);
3062
3067
  }
3063
3068
  function I(m) {
3064
- return m === null || P(m) ? C(m) : D(m) ? (e.consume(m), I) : t(m);
3069
+ return m === null || P(m) ? E(m) : D(m) ? (e.consume(m), I) : t(m);
3065
3070
  }
3066
- function C(m) {
3067
- return m === 45 && i === 2 ? (e.consume(m), X) : m === 60 && i === 1 ? (e.consume(m), W) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), h) : m === 93 && i === 5 ? (e.consume(m), ce) : P(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Rl, pe, H)(m)) : m === null || P(m) ? (e.exit("htmlFlowData"), H(m)) : (e.consume(m), C);
3071
+ function E(m) {
3072
+ return m === 45 && i === 2 ? (e.consume(m), X) : m === 60 && i === 1 ? (e.consume(m), W) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), h) : m === 93 && i === 5 ? (e.consume(m), ce) : P(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Bl, pe, H)(m)) : m === null || P(m) ? (e.exit("htmlFlowData"), H(m)) : (e.consume(m), E);
3068
3073
  }
3069
3074
  function H(m) {
3070
- return e.check(Ml, q, pe)(m);
3075
+ return e.check(jl, q, pe)(m);
3071
3076
  }
3072
3077
  function q(m) {
3073
3078
  return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), v;
3074
3079
  }
3075
3080
  function v(m) {
3076
- return m === null || P(m) ? H(m) : (e.enter("htmlFlowData"), C(m));
3081
+ return m === null || P(m) ? H(m) : (e.enter("htmlFlowData"), E(m));
3077
3082
  }
3078
3083
  function X(m) {
3079
- return m === 45 ? (e.consume(m), h) : C(m);
3084
+ return m === 45 ? (e.consume(m), h) : E(m);
3080
3085
  }
3081
3086
  function W(m) {
3082
- return m === 47 ? (e.consume(m), o = "", re) : C(m);
3087
+ return m === 47 ? (e.consume(m), o = "", re) : E(m);
3083
3088
  }
3084
3089
  function re(m) {
3085
3090
  if (m === 62) {
3086
3091
  const le = o.toLowerCase();
3087
- return pt.includes(le) ? (e.consume(m), ie) : C(m);
3092
+ return ct.includes(le) ? (e.consume(m), ie) : E(m);
3088
3093
  }
3089
- return ue(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), re) : C(m);
3094
+ return ue(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), re) : E(m);
3090
3095
  }
3091
3096
  function ce(m) {
3092
- return m === 93 ? (e.consume(m), h) : C(m);
3097
+ return m === 93 ? (e.consume(m), h) : E(m);
3093
3098
  }
3094
3099
  function h(m) {
3095
- return m === 62 ? (e.consume(m), ie) : m === 45 && i === 2 ? (e.consume(m), h) : C(m);
3100
+ return m === 62 ? (e.consume(m), ie) : m === 45 && i === 2 ? (e.consume(m), h) : E(m);
3096
3101
  }
3097
3102
  function ie(m) {
3098
3103
  return m === null || P(m) ? (e.exit("htmlFlowData"), pe(m)) : (e.consume(m), ie);
@@ -3101,7 +3106,7 @@ function jl(e, n, t) {
3101
3106
  return e.exit("htmlFlow"), n(m);
3102
3107
  }
3103
3108
  }
3104
- function Hl(e, n, t) {
3109
+ function Vl(e, n, t) {
3105
3110
  const r = this;
3106
3111
  return i;
3107
3112
  function i(o) {
@@ -3111,17 +3116,17 @@ function Hl(e, n, t) {
3111
3116
  return r.parser.lazy[r.now().line] ? t(o) : n(o);
3112
3117
  }
3113
3118
  }
3114
- function Ul(e, n, t) {
3119
+ function ql(e, n, t) {
3115
3120
  return r;
3116
3121
  function r(i) {
3117
3122
  return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ge, n, t);
3118
3123
  }
3119
3124
  }
3120
- const Vl = {
3125
+ const $l = {
3121
3126
  name: "htmlText",
3122
- tokenize: ql
3127
+ tokenize: Wl
3123
3128
  };
3124
- function ql(e, n, t) {
3129
+ function Wl(e, n, t) {
3125
3130
  const r = this;
3126
3131
  let i, l, o;
3127
3132
  return a;
@@ -3129,7 +3134,7 @@ function ql(e, n, t) {
3129
3134
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(h), u;
3130
3135
  }
3131
3136
  function u(h) {
3132
- return h === 33 ? (e.consume(h), c) : h === 47 ? (e.consume(h), U) : h === 63 ? (e.consume(h), E) : ue(h) ? (e.consume(h), V) : t(h);
3137
+ return h === 33 ? (e.consume(h), c) : h === 47 ? (e.consume(h), U) : h === 63 ? (e.consume(h), C) : ue(h) ? (e.consume(h), V) : t(h);
3133
3138
  }
3134
3139
  function c(h) {
3135
3140
  return h === 45 ? (e.consume(h), s) : h === 91 ? (e.consume(h), l = 0, y) : ue(h) ? (e.consume(h), L) : t(h);
@@ -3162,11 +3167,11 @@ function ql(e, n, t) {
3162
3167
  function L(h) {
3163
3168
  return h === null || h === 62 ? X(h) : P(h) ? (o = L, W(h)) : (e.consume(h), L);
3164
3169
  }
3165
- function E(h) {
3166
- return h === null ? t(h) : h === 63 ? (e.consume(h), j) : P(h) ? (o = E, W(h)) : (e.consume(h), E);
3170
+ function C(h) {
3171
+ return h === null ? t(h) : h === 63 ? (e.consume(h), j) : P(h) ? (o = C, W(h)) : (e.consume(h), C);
3167
3172
  }
3168
3173
  function j(h) {
3169
- return h === 62 ? X(h) : E(h);
3174
+ return h === 62 ? X(h) : C(h);
3170
3175
  }
3171
3176
  function U(h) {
3172
3177
  return ue(h) ? (e.consume(h), x) : t(h);
@@ -3187,10 +3192,10 @@ function ql(e, n, t) {
3187
3192
  return h === 45 || h === 46 || h === 58 || h === 95 || ne(h) ? (e.consume(h), B) : I(h);
3188
3193
  }
3189
3194
  function I(h) {
3190
- return h === 61 ? (e.consume(h), C) : P(h) ? (o = I, W(h)) : D(h) ? (e.consume(h), I) : _(h);
3195
+ return h === 61 ? (e.consume(h), E) : P(h) ? (o = I, W(h)) : D(h) ? (e.consume(h), I) : _(h);
3191
3196
  }
3192
- function C(h) {
3193
- return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (e.consume(h), i = h, H) : P(h) ? (o = C, W(h)) : D(h) ? (e.consume(h), C) : (e.consume(h), q);
3197
+ function E(h) {
3198
+ return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (e.consume(h), i = h, H) : P(h) ? (o = E, W(h)) : D(h) ? (e.consume(h), E) : (e.consume(h), q);
3194
3199
  }
3195
3200
  function H(h) {
3196
3201
  return h === i ? (e.consume(h), i = void 0, v) : h === null ? t(h) : P(h) ? (o = H, W(h)) : (e.consume(h), H);
@@ -3214,19 +3219,19 @@ function ql(e, n, t) {
3214
3219
  return e.enter("htmlTextData"), o(h);
3215
3220
  }
3216
3221
  }
3217
- const vn = {
3222
+ const On = {
3218
3223
  name: "labelEnd",
3219
- resolveAll: Xl,
3220
- resolveTo: Ql,
3221
- tokenize: Gl
3222
- }, $l = {
3223
- tokenize: Kl
3224
- }, Wl = {
3224
+ resolveAll: Gl,
3225
+ resolveTo: Kl,
3225
3226
  tokenize: Jl
3226
3227
  }, Yl = {
3227
3228
  tokenize: Zl
3229
+ }, Xl = {
3230
+ tokenize: eo
3231
+ }, Ql = {
3232
+ tokenize: no
3228
3233
  };
3229
- function Xl(e) {
3234
+ function Gl(e) {
3230
3235
  let n = -1;
3231
3236
  const t = [];
3232
3237
  for (; ++n < e.length; ) {
@@ -3238,7 +3243,7 @@ function Xl(e) {
3238
3243
  }
3239
3244
  return e.length !== t.length && se(e, 0, e.length, t), e;
3240
3245
  }
3241
- function Ql(e, n) {
3246
+ function Kl(e, n) {
3242
3247
  let t = e.length, r = 0, i, l, o, a;
3243
3248
  for (; t--; )
3244
3249
  if (i = e[t][1], l) {
@@ -3276,9 +3281,9 @@ function Ql(e, n) {
3276
3281
  ...e[o - 2][1].start
3277
3282
  }
3278
3283
  };
3279
- return a = [["enter", u, n], ["enter", c, n]], a = te(a, e.slice(l + 1, l + r + 3)), a = te(a, [["enter", s, n]]), a = te(a, On(n.parser.constructs.insideSpan.null, e.slice(l + r + 4, o - 3), n)), a = te(a, [["exit", s, n], e[o - 2], e[o - 1], ["exit", c, n]]), a = te(a, e.slice(o + 1)), a = te(a, [["exit", u, n]]), se(e, l, e.length, a), e;
3284
+ return a = [["enter", u, n], ["enter", c, n]], a = te(a, e.slice(l + 1, l + r + 3)), a = te(a, [["enter", s, n]]), a = te(a, Ln(n.parser.constructs.insideSpan.null, e.slice(l + r + 4, o - 3), n)), a = te(a, [["exit", s, n], e[o - 2], e[o - 1], ["exit", c, n]]), a = te(a, e.slice(o + 1)), a = te(a, [["exit", u, n]]), se(e, l, e.length, a), e;
3280
3285
  }
3281
- function Gl(e, n, t) {
3286
+ function Jl(e, n, t) {
3282
3287
  const r = this;
3283
3288
  let i = r.events.length, l, o;
3284
3289
  for (; i--; )
@@ -3294,10 +3299,10 @@ function Gl(e, n, t) {
3294
3299
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), u) : t(d);
3295
3300
  }
3296
3301
  function u(d) {
3297
- return d === 40 ? e.attempt($l, s, o ? s : f)(d) : d === 91 ? e.attempt(Wl, s, o ? c : f)(d) : o ? s(d) : f(d);
3302
+ return d === 40 ? e.attempt(Yl, s, o ? s : f)(d) : d === 91 ? e.attempt(Xl, s, o ? c : f)(d) : o ? s(d) : f(d);
3298
3303
  }
3299
3304
  function c(d) {
3300
- return e.attempt(Yl, s, f)(d);
3305
+ return e.attempt(Ql, s, f)(d);
3301
3306
  }
3302
3307
  function s(d) {
3303
3308
  return n(d);
@@ -3306,7 +3311,7 @@ function Gl(e, n, t) {
3306
3311
  return l._balanced = !0, t(d);
3307
3312
  }
3308
3313
  }
3309
- function Kl(e, n, t) {
3314
+ function Zl(e, n, t) {
3310
3315
  return r;
3311
3316
  function r(f) {
3312
3317
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), i;
@@ -3315,7 +3320,7 @@ function Kl(e, n, t) {
3315
3320
  return K(f) ? _e(e, l)(f) : l(f);
3316
3321
  }
3317
3322
  function l(f) {
3318
- return f === 41 ? s(f) : Zt(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(f);
3323
+ return f === 41 ? s(f) : Jt(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(f);
3319
3324
  }
3320
3325
  function o(f) {
3321
3326
  return K(f) ? _e(e, u)(f) : s(f);
@@ -3324,7 +3329,7 @@ function Kl(e, n, t) {
3324
3329
  return t(f);
3325
3330
  }
3326
3331
  function u(f) {
3327
- return f === 34 || f === 39 || f === 40 ? nr(e, c, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(f) : s(f);
3332
+ return f === 34 || f === 39 || f === 40 ? er(e, c, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(f) : s(f);
3328
3333
  }
3329
3334
  function c(f) {
3330
3335
  return K(f) ? _e(e, s)(f) : s(f);
@@ -3333,11 +3338,11 @@ function Kl(e, n, t) {
3333
3338
  return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), n) : t(f);
3334
3339
  }
3335
3340
  }
3336
- function Jl(e, n, t) {
3341
+ function eo(e, n, t) {
3337
3342
  const r = this;
3338
3343
  return i;
3339
3344
  function i(a) {
3340
- return er.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
3345
+ return Zt.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
3341
3346
  }
3342
3347
  function l(a) {
3343
3348
  return r.parser.defined.includes(Te(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? n(a) : t(a);
@@ -3346,7 +3351,7 @@ function Jl(e, n, t) {
3346
3351
  return t(a);
3347
3352
  }
3348
3353
  }
3349
- function Zl(e, n, t) {
3354
+ function no(e, n, t) {
3350
3355
  return r;
3351
3356
  function r(l) {
3352
3357
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), i;
@@ -3355,12 +3360,12 @@ function Zl(e, n, t) {
3355
3360
  return l === 93 ? (e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), e.exit("reference"), n) : t(l);
3356
3361
  }
3357
3362
  }
3358
- const eo = {
3363
+ const to = {
3359
3364
  name: "labelStartImage",
3360
- resolveAll: vn.resolveAll,
3361
- tokenize: no
3365
+ resolveAll: On.resolveAll,
3366
+ tokenize: ro
3362
3367
  };
3363
- function no(e, n, t) {
3368
+ function ro(e, n, t) {
3364
3369
  const r = this;
3365
3370
  return i;
3366
3371
  function i(a) {
@@ -3373,12 +3378,12 @@ function no(e, n, t) {
3373
3378
  return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
3374
3379
  }
3375
3380
  }
3376
- const to = {
3381
+ const io = {
3377
3382
  name: "labelStartLink",
3378
- resolveAll: vn.resolveAll,
3379
- tokenize: ro
3383
+ resolveAll: On.resolveAll,
3384
+ tokenize: lo
3380
3385
  };
3381
- function ro(e, n, t) {
3386
+ function lo(e, n, t) {
3382
3387
  const r = this;
3383
3388
  return i;
3384
3389
  function i(o) {
@@ -3388,11 +3393,11 @@ function ro(e, n, t) {
3388
3393
  return o === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(o) : n(o);
3389
3394
  }
3390
3395
  }
3391
- const rn = {
3396
+ const tn = {
3392
3397
  name: "lineEnding",
3393
- tokenize: io
3398
+ tokenize: oo
3394
3399
  };
3395
- function io(e, n) {
3400
+ function oo(e, n) {
3396
3401
  return t;
3397
3402
  function t(r) {
3398
3403
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), M(e, n, "linePrefix");
@@ -3400,9 +3405,9 @@ function io(e, n) {
3400
3405
  }
3401
3406
  const qe = {
3402
3407
  name: "thematicBreak",
3403
- tokenize: lo
3408
+ tokenize: ao
3404
3409
  };
3405
- function lo(e, n, t) {
3410
+ function ao(e, n, t) {
3406
3411
  let r = 0, i;
3407
3412
  return l;
3408
3413
  function l(c) {
@@ -3420,25 +3425,25 @@ function lo(e, n, t) {
3420
3425
  }
3421
3426
  const G = {
3422
3427
  continuation: {
3423
- tokenize: so
3428
+ tokenize: po
3424
3429
  },
3425
- exit: po,
3430
+ exit: ho,
3426
3431
  name: "list",
3427
- tokenize: uo
3428
- }, oo = {
3432
+ tokenize: co
3433
+ }, uo = {
3429
3434
  partial: !0,
3430
- tokenize: fo
3431
- }, ao = {
3435
+ tokenize: mo
3436
+ }, so = {
3432
3437
  partial: !0,
3433
- tokenize: co
3438
+ tokenize: fo
3434
3439
  };
3435
- function uo(e, n, t) {
3440
+ function co(e, n, t) {
3436
3441
  const r = this, i = r.events[r.events.length - 1];
3437
3442
  let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
3438
3443
  return a;
3439
3444
  function a(p) {
3440
3445
  const y = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
3441
- if (y === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : xn(p)) {
3446
+ if (y === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : yn(p)) {
3442
3447
  if (r.containerState.type || (r.containerState.type = y, e.enter(y, {
3443
3448
  _container: !0
3444
3449
  })), y === "listUnordered")
@@ -3449,14 +3454,14 @@ function uo(e, n, t) {
3449
3454
  return t(p);
3450
3455
  }
3451
3456
  function u(p) {
3452
- return xn(p) && ++o < 10 ? (e.consume(p), u) : (!r.interrupt || o < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), c(p)) : t(p);
3457
+ return yn(p) && ++o < 10 ? (e.consume(p), u) : (!r.interrupt || o < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), c(p)) : t(p);
3453
3458
  }
3454
3459
  function c(p) {
3455
3460
  return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
3456
3461
  Ge,
3457
3462
  // Can’t be empty when interrupting.
3458
3463
  r.interrupt ? t : s,
3459
- e.attempt(oo, d, f)
3464
+ e.attempt(uo, d, f)
3460
3465
  );
3461
3466
  }
3462
3467
  function s(p) {
@@ -3469,20 +3474,20 @@ function uo(e, n, t) {
3469
3474
  return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
3470
3475
  }
3471
3476
  }
3472
- function so(e, n, t) {
3477
+ function po(e, n, t) {
3473
3478
  const r = this;
3474
3479
  return r.containerState._closeFlow = void 0, e.check(Ge, i, l);
3475
3480
  function i(a) {
3476
3481
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, M(e, n, "listItemIndent", r.containerState.size + 1)(a);
3477
3482
  }
3478
3483
  function l(a) {
3479
- return r.containerState.furtherBlankLines || !D(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(ao, n, o)(a));
3484
+ return r.containerState.furtherBlankLines || !D(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(so, n, o)(a));
3480
3485
  }
3481
3486
  function o(a) {
3482
3487
  return r.containerState._closeFlow = !0, r.interrupt = void 0, M(e, e.attempt(G, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
3483
3488
  }
3484
3489
  }
3485
- function co(e, n, t) {
3490
+ function fo(e, n, t) {
3486
3491
  const r = this;
3487
3492
  return M(e, i, "listItemIndent", r.containerState.size + 1);
3488
3493
  function i(l) {
@@ -3490,10 +3495,10 @@ function co(e, n, t) {
3490
3495
  return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? n(l) : t(l);
3491
3496
  }
3492
3497
  }
3493
- function po(e) {
3498
+ function ho(e) {
3494
3499
  e.exit(this.containerState.type);
3495
3500
  }
3496
- function fo(e, n, t) {
3501
+ function mo(e, n, t) {
3497
3502
  const r = this;
3498
3503
  return M(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
3499
3504
  function i(l) {
@@ -3501,12 +3506,12 @@ function fo(e, n, t) {
3501
3506
  return !D(l) && o && o[1].type === "listItemPrefixWhitespace" ? n(l) : t(l);
3502
3507
  }
3503
3508
  }
3504
- const ft = {
3509
+ const pt = {
3505
3510
  name: "setextUnderline",
3506
- resolveTo: ho,
3507
- tokenize: mo
3511
+ resolveTo: go,
3512
+ tokenize: yo
3508
3513
  };
3509
- function ho(e, n) {
3514
+ function go(e, n) {
3510
3515
  let t = e.length, r, i, l;
3511
3516
  for (; t--; )
3512
3517
  if (e[t][0] === "enter") {
@@ -3530,7 +3535,7 @@ function ho(e, n) {
3530
3535
  ...e[l][1].end
3531
3536
  }) : e[r][1] = o, e.push(["exit", o, n]), e;
3532
3537
  }
3533
- function mo(e, n, t) {
3538
+ function yo(e, n, t) {
3534
3539
  const r = this;
3535
3540
  let i;
3536
3541
  return l;
@@ -3553,16 +3558,16 @@ function mo(e, n, t) {
3553
3558
  return c === null || P(c) ? (e.exit("setextHeadingLine"), n(c)) : t(c);
3554
3559
  }
3555
3560
  }
3556
- const go = {
3557
- tokenize: yo
3561
+ const xo = {
3562
+ tokenize: ko
3558
3563
  };
3559
- function yo(e) {
3564
+ function ko(e) {
3560
3565
  const n = this, t = e.attempt(
3561
3566
  // Try to parse a blank line.
3562
3567
  Ge,
3563
3568
  r,
3564
3569
  // Try to parse initial flow (essentially, only code).
3565
- e.attempt(this.parser.constructs.flowInitial, i, M(e, e.attempt(this.parser.constructs.flow, i, e.attempt(wl, i)), "linePrefix"))
3570
+ e.attempt(this.parser.constructs.flowInitial, i, M(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Cl, i)), "linePrefix"))
3566
3571
  );
3567
3572
  return t;
3568
3573
  function r(l) {
@@ -3580,12 +3585,12 @@ function yo(e) {
3580
3585
  return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n.currentConstruct = void 0, t;
3581
3586
  }
3582
3587
  }
3583
- const xo = {
3584
- resolveAll: rr()
3585
- }, ko = tr("string"), bo = tr("text");
3586
- function tr(e) {
3588
+ const bo = {
3589
+ resolveAll: tr()
3590
+ }, wo = nr("string"), So = nr("text");
3591
+ function nr(e) {
3587
3592
  return {
3588
- resolveAll: rr(e === "text" ? wo : void 0),
3593
+ resolveAll: tr(e === "text" ? Co : void 0),
3589
3594
  tokenize: n
3590
3595
  };
3591
3596
  function n(t) {
@@ -3619,7 +3624,7 @@ function tr(e) {
3619
3624
  }
3620
3625
  }
3621
3626
  }
3622
- function rr(e) {
3627
+ function tr(e) {
3623
3628
  return n;
3624
3629
  function n(t, r) {
3625
3630
  let i = -1, l;
@@ -3628,7 +3633,7 @@ function rr(e) {
3628
3633
  return e ? e(t, r) : t;
3629
3634
  }
3630
3635
  }
3631
- function wo(e, n) {
3636
+ function Co(e, n) {
3632
3637
  let t = 0;
3633
3638
  for (; ++t <= e.length; )
3634
3639
  if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
@@ -3670,7 +3675,7 @@ function wo(e, n) {
3670
3675
  }
3671
3676
  return e;
3672
3677
  }
3673
- const So = {
3678
+ const Eo = {
3674
3679
  42: G,
3675
3680
  43: G,
3676
3681
  45: G,
@@ -3684,57 +3689,57 @@ const So = {
3684
3689
  55: G,
3685
3690
  56: G,
3686
3691
  57: G,
3687
- 62: Qt
3688
- }, Eo = {
3689
- 91: Tl
3690
- }, Co = {
3691
- [-2]: tn,
3692
- [-1]: tn,
3693
- 32: tn
3692
+ 62: Xt
3694
3693
  }, Io = {
3695
- 35: vl,
3696
- 42: qe,
3697
- 45: [ft, qe],
3698
- 60: Fl,
3699
- 61: ft,
3700
- 95: qe,
3701
- 96: ct,
3702
- 126: ct
3694
+ 91: Al
3703
3695
  }, To = {
3704
- 38: Kt,
3705
- 92: Gt
3696
+ [-2]: nn,
3697
+ [-1]: nn,
3698
+ 32: nn
3706
3699
  }, Po = {
3707
- [-5]: rn,
3708
- [-4]: rn,
3709
- [-3]: rn,
3710
- 33: eo,
3711
- 38: Kt,
3712
- 42: kn,
3713
- 60: [tl, Vl],
3714
- 91: to,
3715
- 92: [Ll, Gt],
3716
- 93: vn,
3717
- 95: kn,
3718
- 96: dl
3700
+ 35: Nl,
3701
+ 42: qe,
3702
+ 45: [pt, qe],
3703
+ 60: Ml,
3704
+ 61: pt,
3705
+ 95: qe,
3706
+ 96: st,
3707
+ 126: st
3719
3708
  }, Ao = {
3720
- null: [kn, xo]
3709
+ 38: Gt,
3710
+ 92: Qt
3721
3711
  }, zo = {
3722
- null: [42, 95]
3712
+ [-5]: tn,
3713
+ [-4]: tn,
3714
+ [-3]: tn,
3715
+ 33: to,
3716
+ 38: Gt,
3717
+ 42: xn,
3718
+ 60: [il, $l],
3719
+ 91: io,
3720
+ 92: [vl, Qt],
3721
+ 93: On,
3722
+ 95: xn,
3723
+ 96: yl
3723
3724
  }, Lo = {
3725
+ null: [xn, bo]
3726
+ }, Oo = {
3727
+ null: [42, 95]
3728
+ }, vo = {
3724
3729
  null: []
3725
- }, Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3730
+ }, Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3726
3731
  __proto__: null,
3727
- attentionMarkers: zo,
3728
- contentInitial: Eo,
3729
- disable: Lo,
3730
- document: So,
3731
- flow: Io,
3732
- flowInitial: Co,
3733
- insideSpan: Ao,
3734
- string: To,
3735
- text: Po
3732
+ attentionMarkers: Oo,
3733
+ contentInitial: Io,
3734
+ disable: vo,
3735
+ document: Eo,
3736
+ flow: Po,
3737
+ flowInitial: To,
3738
+ insideSpan: Lo,
3739
+ string: Ao,
3740
+ text: zo
3736
3741
  }, Symbol.toStringTag, { value: "Module" }));
3737
- function vo(e, n, t) {
3742
+ function No(e, n, t) {
3738
3743
  let r = {
3739
3744
  _bufferIndex: -1,
3740
3745
  _index: 0,
@@ -3748,7 +3753,7 @@ function vo(e, n, t) {
3748
3753
  attempt: N(U),
3749
3754
  check: N(x),
3750
3755
  consume: L,
3751
- enter: E,
3756
+ enter: C,
3752
3757
  exit: j,
3753
3758
  interrupt: N(x, {
3754
3759
  interrupt: !0
@@ -3768,25 +3773,25 @@ function vo(e, n, t) {
3768
3773
  let s = n.tokenize.call(c, u);
3769
3774
  return n.resolveAll && l.push(n), c;
3770
3775
  function f(I) {
3771
- return o = te(o, I), T(), o[o.length - 1] !== null ? [] : (V(n, 0), c.events = On(l, c.events, c), c.events);
3776
+ return o = te(o, I), T(), o[o.length - 1] !== null ? [] : (V(n, 0), c.events = Ln(l, c.events, c), c.events);
3772
3777
  }
3773
- function d(I, C) {
3774
- return No(p(I), C);
3778
+ function d(I, E) {
3779
+ return Fo(p(I), E);
3775
3780
  }
3776
3781
  function p(I) {
3777
- return Do(o, I);
3782
+ return _o(o, I);
3778
3783
  }
3779
3784
  function y() {
3780
3785
  const {
3781
3786
  _bufferIndex: I,
3782
- _index: C,
3787
+ _index: E,
3783
3788
  line: H,
3784
3789
  column: q,
3785
3790
  offset: v
3786
3791
  } = r;
3787
3792
  return {
3788
3793
  _bufferIndex: I,
3789
- _index: C,
3794
+ _index: E,
3790
3795
  line: H,
3791
3796
  column: q,
3792
3797
  offset: v
@@ -3798,12 +3803,12 @@ function vo(e, n, t) {
3798
3803
  function T() {
3799
3804
  let I;
3800
3805
  for (; r._index < o.length; ) {
3801
- const C = o[r._index];
3802
- if (typeof C == "string")
3803
- for (I = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === I && r._bufferIndex < C.length; )
3804
- w(C.charCodeAt(r._bufferIndex));
3806
+ const E = o[r._index];
3807
+ if (typeof E == "string")
3808
+ for (I = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === I && r._bufferIndex < E.length; )
3809
+ w(E.charCodeAt(r._bufferIndex));
3805
3810
  else
3806
- w(C);
3811
+ w(E);
3807
3812
  }
3808
3813
  }
3809
3814
  function w(I) {
@@ -3815,21 +3820,21 @@ function vo(e, n, t) {
3815
3820
  /** @type {string} */
3816
3821
  o[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = I;
3817
3822
  }
3818
- function E(I, C) {
3819
- const H = C || {};
3823
+ function C(I, E) {
3824
+ const H = E || {};
3820
3825
  return H.type = I, H.start = y(), c.events.push(["enter", H, c]), a.push(H), H;
3821
3826
  }
3822
3827
  function j(I) {
3823
- const C = a.pop();
3824
- return C.end = y(), c.events.push(["exit", C, c]), C;
3828
+ const E = a.pop();
3829
+ return E.end = y(), c.events.push(["exit", E, c]), E;
3825
3830
  }
3826
- function U(I, C) {
3827
- V(I, C.from);
3831
+ function U(I, E) {
3832
+ V(I, E.from);
3828
3833
  }
3829
- function x(I, C) {
3830
- C.restore();
3834
+ function x(I, E) {
3835
+ E.restore();
3831
3836
  }
3832
- function N(I, C) {
3837
+ function N(I, E) {
3833
3838
  return H;
3834
3839
  function H(q, v, X) {
3835
3840
  let W, re, ce, h;
@@ -3865,7 +3870,7 @@ function vo(e, n, t) {
3865
3870
  // If we do have fields, create an object w/ `context` as its
3866
3871
  // prototype.
3867
3872
  // This allows a “live binding”, which is needed for `interrupt`.
3868
- C ? Object.assign(Object.create(c), C) : c,
3873
+ E ? Object.assign(Object.create(c), E) : c,
3869
3874
  u,
3870
3875
  le,
3871
3876
  ye
@@ -3880,24 +3885,24 @@ function vo(e, n, t) {
3880
3885
  }
3881
3886
  }
3882
3887
  }
3883
- function V(I, C) {
3884
- I.resolveAll && !l.includes(I) && l.push(I), I.resolve && se(c.events, C, c.events.length - C, I.resolve(c.events.slice(C), c)), I.resolveTo && (c.events = I.resolveTo(c.events, c));
3888
+ function V(I, E) {
3889
+ I.resolveAll && !l.includes(I) && l.push(I), I.resolve && se(c.events, E, c.events.length - E, I.resolve(c.events.slice(E), c)), I.resolveTo && (c.events = I.resolveTo(c.events, c));
3885
3890
  }
3886
3891
  function _() {
3887
- const I = y(), C = c.previous, H = c.currentConstruct, q = c.events.length, v = Array.from(a);
3892
+ const I = y(), E = c.previous, H = c.currentConstruct, q = c.events.length, v = Array.from(a);
3888
3893
  return {
3889
3894
  from: q,
3890
3895
  restore: X
3891
3896
  };
3892
3897
  function X() {
3893
- r = I, c.previous = C, c.currentConstruct = H, c.events.length = q, a = v, B();
3898
+ r = I, c.previous = E, c.currentConstruct = H, c.events.length = q, a = v, B();
3894
3899
  }
3895
3900
  }
3896
3901
  function B() {
3897
3902
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
3898
3903
  }
3899
3904
  }
3900
- function Do(e, n) {
3905
+ function _o(e, n) {
3901
3906
  const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, l = n.end._bufferIndex;
3902
3907
  let o;
3903
3908
  if (t === i)
@@ -3911,7 +3916,7 @@ function Do(e, n) {
3911
3916
  }
3912
3917
  return o;
3913
3918
  }
3914
- function No(e, n) {
3919
+ function Fo(e, n) {
3915
3920
  let t = -1;
3916
3921
  const r = [];
3917
3922
  let i;
@@ -3951,42 +3956,42 @@ function No(e, n) {
3951
3956
  }
3952
3957
  return r.join("");
3953
3958
  }
3954
- function _o(e) {
3959
+ function Ro(e) {
3955
3960
  const r = {
3956
3961
  constructs: (
3957
3962
  /** @type {FullNormalizedExtension} */
3958
- Hi([Oo, ...(e || {}).extensions || []])
3963
+ Vi([Do, ...(e || {}).extensions || []])
3959
3964
  ),
3960
- content: i(Qi),
3965
+ content: i(Ki),
3961
3966
  defined: [],
3962
- document: i(Ki),
3963
- flow: i(go),
3967
+ document: i(Zi),
3968
+ flow: i(xo),
3964
3969
  lazy: {},
3965
- string: i(ko),
3966
- text: i(bo)
3970
+ string: i(wo),
3971
+ text: i(So)
3967
3972
  };
3968
3973
  return r;
3969
3974
  function i(l) {
3970
3975
  return o;
3971
3976
  function o(a) {
3972
- return vo(r, l, a);
3977
+ return No(r, l, a);
3973
3978
  }
3974
3979
  }
3975
3980
  }
3976
- function Fo(e) {
3977
- for (; !Jt(e); )
3981
+ function Mo(e) {
3982
+ for (; !Kt(e); )
3978
3983
  ;
3979
3984
  return e;
3980
3985
  }
3981
- const ht = /[\0\t\n\r]/g;
3982
- function Ro() {
3986
+ const ft = /[\0\t\n\r]/g;
3987
+ function Bo() {
3983
3988
  let e = 1, n = "", t = !0, r;
3984
3989
  return i;
3985
3990
  function i(l, o, a) {
3986
3991
  const u = [];
3987
3992
  let c, s, f, d, p;
3988
3993
  for (l = n + (typeof l == "string" ? l.toString() : new TextDecoder(o || void 0).decode(l)), f = 0, n = "", t && (l.charCodeAt(0) === 65279 && f++, t = void 0); f < l.length; ) {
3989
- if (ht.lastIndex = f, c = ht.exec(l), d = c && c.index !== void 0 ? c.index : l.length, p = l.charCodeAt(d), !c) {
3994
+ if (ft.lastIndex = f, c = ft.exec(l), d = c && c.index !== void 0 ? c.index : l.length, p = l.charCodeAt(d), !c) {
3990
3995
  n = l.slice(f);
3991
3996
  break;
3992
3997
  }
@@ -4014,32 +4019,32 @@ function Ro() {
4014
4019
  return a && (r && u.push(-5), n && u.push(n), u.push(null)), u;
4015
4020
  }
4016
4021
  }
4017
- const Mo = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
4018
- function Bo(e) {
4019
- return e.replace(Mo, jo);
4022
+ const jo = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
4023
+ function Ho(e) {
4024
+ return e.replace(jo, Uo);
4020
4025
  }
4021
- function jo(e, n, t) {
4026
+ function Uo(e, n, t) {
4022
4027
  if (n)
4023
4028
  return n;
4024
4029
  if (t.charCodeAt(0) === 35) {
4025
4030
  const i = t.charCodeAt(1), l = i === 120 || i === 88;
4026
- return Xt(t.slice(l ? 2 : 1), l ? 16 : 10);
4031
+ return Yt(t.slice(l ? 2 : 1), l ? 16 : 10);
4027
4032
  }
4028
- return Ln(t) || e;
4033
+ return zn(t) || e;
4029
4034
  }
4030
- const ir = {}.hasOwnProperty;
4031
- function Ho(e, n, t) {
4032
- return typeof n != "string" && (t = n, n = void 0), Uo(t)(Fo(_o(t).document().write(Ro()(e, n, !0))));
4035
+ const rr = {}.hasOwnProperty;
4036
+ function Vo(e, n, t) {
4037
+ return typeof n != "string" && (t = n, n = void 0), qo(t)(Mo(Ro(t).document().write(Bo()(e, n, !0))));
4033
4038
  }
4034
- function Uo(e) {
4039
+ function qo(e) {
4035
4040
  const n = {
4036
4041
  transforms: [],
4037
4042
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4038
4043
  enter: {
4039
- autolink: l(Hn),
4044
+ autolink: l(jn),
4040
4045
  autolinkProtocol: _,
4041
4046
  autolinkEmail: _,
4042
- atxHeading: l(Mn),
4047
+ atxHeading: l(Rn),
4043
4048
  blockQuote: l(Se),
4044
4049
  characterEscape: _,
4045
4050
  characterReference: _,
@@ -4047,35 +4052,35 @@ function Uo(e) {
4047
4052
  codeFencedFenceInfo: o,
4048
4053
  codeFencedFenceMeta: o,
4049
4054
  codeIndented: l(je, o),
4050
- codeText: l(gr, o),
4055
+ codeText: l(dr, o),
4051
4056
  codeTextData: _,
4052
4057
  data: _,
4053
4058
  codeFlowValue: _,
4054
- definition: l(yr),
4059
+ definition: l(gr),
4055
4060
  definitionDestinationString: o,
4056
4061
  definitionLabelString: o,
4057
4062
  definitionTitleString: o,
4058
- emphasis: l(xr),
4059
- hardBreakEscape: l(Bn),
4060
- hardBreakTrailing: l(Bn),
4061
- htmlFlow: l(jn, o),
4063
+ emphasis: l(yr),
4064
+ hardBreakEscape: l(Mn),
4065
+ hardBreakTrailing: l(Mn),
4066
+ htmlFlow: l(Bn, o),
4062
4067
  htmlFlowData: _,
4063
- htmlText: l(jn, o),
4068
+ htmlText: l(Bn, o),
4064
4069
  htmlTextData: _,
4065
- image: l(kr),
4070
+ image: l(xr),
4066
4071
  label: o,
4067
- link: l(Hn),
4068
- listItem: l(br),
4072
+ link: l(jn),
4073
+ listItem: l(kr),
4069
4074
  listItemValue: d,
4070
- listOrdered: l(Un, f),
4071
- listUnordered: l(Un),
4072
- paragraph: l(wr),
4075
+ listOrdered: l(Hn, f),
4076
+ listUnordered: l(Hn),
4077
+ paragraph: l(br),
4073
4078
  reference: m,
4074
4079
  referenceString: o,
4075
4080
  resourceDestinationString: o,
4076
4081
  resourceTitleString: o,
4077
- setextHeading: l(Mn),
4078
- strong: l(Sr),
4082
+ setextHeading: l(Rn),
4083
+ strong: l(wr),
4079
4084
  thematicBreak: l(Cr)
4080
4085
  },
4081
4086
  exit: {
@@ -4102,10 +4107,10 @@ function Uo(e) {
4102
4107
  definition: u(),
4103
4108
  definitionDestinationString: j,
4104
4109
  definitionLabelString: L,
4105
- definitionTitleString: E,
4110
+ definitionTitleString: C,
4106
4111
  emphasis: u(),
4107
- hardBreakEscape: u(C),
4108
- hardBreakTrailing: u(C),
4112
+ hardBreakEscape: u(E),
4113
+ hardBreakTrailing: u(E),
4109
4114
  htmlFlow: u(H),
4110
4115
  htmlFlowData: B,
4111
4116
  htmlText: u(q),
@@ -4130,7 +4135,7 @@ function Uo(e) {
4130
4135
  thematicBreak: u()
4131
4136
  }
4132
4137
  };
4133
- lr(n, (e || {}).mdastExtensions || []);
4138
+ ir(n, (e || {}).mdastExtensions || []);
4134
4139
  const t = {};
4135
4140
  return r;
4136
4141
  function r(g) {
@@ -4159,13 +4164,13 @@ function Uo(e) {
4159
4164
  }
4160
4165
  for (F = -1; ++F < g.length; ) {
4161
4166
  const oe = n[g[F][0]];
4162
- ir.call(oe, g[F][1].type) && oe[g[F][1].type].call(Object.assign({
4167
+ rr.call(oe, g[F][1].type) && oe[g[F][1].type].call(Object.assign({
4163
4168
  sliceSerialize: g[F][2].sliceSerialize
4164
4169
  }, A), g[F][1]);
4165
4170
  }
4166
4171
  if (A.tokenStack.length > 0) {
4167
4172
  const oe = A.tokenStack[A.tokenStack.length - 1];
4168
- (oe[1] || mt).call(A, void 0, oe[0]);
4173
+ (oe[1] || ht).call(A, void 0, oe[0]);
4169
4174
  }
4170
4175
  for (S.position = {
4171
4176
  start: de(g.length > 0 ? g[0][1].start : {
@@ -4208,25 +4213,25 @@ function Uo(e) {
4208
4213
  }
4209
4214
  if (!F && Z[0] === "enter" && Z[1].type === "listItemPrefix" || F === -1 && Z[0] === "exit" && (Z[1].type === "listUnordered" || Z[1].type === "listOrdered")) {
4210
4215
  if (xe) {
4211
- let Ee = O;
4212
- for (fe = void 0; Ee--; ) {
4213
- const he = g[Ee];
4216
+ let Ce = O;
4217
+ for (fe = void 0; Ce--; ) {
4218
+ const he = g[Ce];
4214
4219
  if (he[1].type === "lineEnding" || he[1].type === "lineEndingBlank") {
4215
4220
  if (he[0] === "exit") continue;
4216
- fe && (g[fe][1].type = "lineEndingBlank", oe = !0), he[1].type = "lineEnding", fe = Ee;
4221
+ fe && (g[fe][1].type = "lineEndingBlank", oe = !0), he[1].type = "lineEnding", fe = Ce;
4217
4222
  } else if (!(he[1].type === "linePrefix" || he[1].type === "blockQuotePrefix" || he[1].type === "blockQuotePrefixWhitespace" || he[1].type === "blockQuoteMarker" || he[1].type === "listItemIndent")) break;
4218
4223
  }
4219
4224
  Le && (!fe || Le < fe) && (xe._spread = !0), xe.end = Object.assign({}, fe ? g[fe][1].start : Z[1].end), g.splice(fe || O, 0, ["exit", xe, Z[2]]), O++, A++;
4220
4225
  }
4221
4226
  if (Z[1].type === "listItemPrefix") {
4222
- const Ee = {
4227
+ const Ce = {
4223
4228
  type: "listItem",
4224
4229
  _spread: !1,
4225
4230
  start: Object.assign({}, Z[1].start),
4226
4231
  // @ts-expect-error: we’ll add `end` in a second.
4227
4232
  end: void 0
4228
4233
  };
4229
- xe = Ee, g.splice(O, 0, ["enter", Ee, Z[2]]), O++, A++, Le = void 0, Oe = !0;
4234
+ xe = Ce, g.splice(O, 0, ["enter", Ce, Z[2]]), O++, A++, Le = void 0, Oe = !0;
4230
4235
  }
4231
4236
  }
4232
4237
  }
@@ -4260,7 +4265,7 @@ function Uo(e) {
4260
4265
  function c(g, S) {
4261
4266
  const A = this.stack.pop(), O = this.tokenStack.pop();
4262
4267
  if (O)
4263
- O[0].type !== g.type && (S ? S.call(this, g, O[0]) : (O[1] || mt).call(this, g, O[0]));
4268
+ O[0].type !== g.type && (S ? S.call(this, g, O[0]) : (O[1] || ht).call(this, g, O[0]));
4264
4269
  else throw new Error("Cannot close `" + g.type + "` (" + Ne({
4265
4270
  start: g.start,
4266
4271
  end: g.end
@@ -4268,7 +4273,7 @@ function Uo(e) {
4268
4273
  A.position.end = de(g.end);
4269
4274
  }
4270
4275
  function s() {
4271
- return Bi(this.stack.pop());
4276
+ return Hi(this.stack.pop());
4272
4277
  }
4273
4278
  function f() {
4274
4279
  this.data.expectingFirstListItemValue = !0;
@@ -4302,7 +4307,7 @@ function Uo(e) {
4302
4307
  const S = this.resume(), A = this.stack[this.stack.length - 1];
4303
4308
  A.label = S, A.identifier = Te(this.sliceSerialize(g)).toLowerCase();
4304
4309
  }
4305
- function E() {
4310
+ function C() {
4306
4311
  const g = this.resume(), S = this.stack[this.stack.length - 1];
4307
4312
  S.title = g;
4308
4313
  }
@@ -4330,7 +4335,7 @@ function Uo(e) {
4330
4335
  function _(g) {
4331
4336
  const A = this.stack[this.stack.length - 1].children;
4332
4337
  let O = A[A.length - 1];
4333
- (!O || O.type !== "text") && (O = Er(), O.position = {
4338
+ (!O || O.type !== "text") && (O = Sr(), O.position = {
4334
4339
  start: de(g.start),
4335
4340
  // @ts-expect-error: we’ll add `end` later.
4336
4341
  end: void 0
@@ -4349,7 +4354,7 @@ function Uo(e) {
4349
4354
  }
4350
4355
  !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(S.type) && (_.call(this, g), B.call(this, g));
4351
4356
  }
4352
- function C() {
4357
+ function E() {
4353
4358
  this.data.atHardBreak = !0;
4354
4359
  }
4355
4360
  function H() {
@@ -4384,7 +4389,7 @@ function Uo(e) {
4384
4389
  }
4385
4390
  function re(g) {
4386
4391
  const S = this.sliceSerialize(g), A = this.stack[this.stack.length - 2];
4387
- A.label = Bo(S), A.identifier = Te(S).toLowerCase();
4392
+ A.label = Ho(S), A.identifier = Te(S).toLowerCase();
4388
4393
  }
4389
4394
  function ce() {
4390
4395
  const g = this.stack[this.stack.length - 1], S = this.resume(), A = this.stack[this.stack.length - 1];
@@ -4418,7 +4423,7 @@ function Uo(e) {
4418
4423
  function Y(g) {
4419
4424
  const S = this.sliceSerialize(g), A = this.data.characterReferenceType;
4420
4425
  let O;
4421
- A ? (O = Xt(S, A === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : O = Ln(S);
4426
+ A ? (O = Yt(S, A === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : O = zn(S);
4422
4427
  const F = this.stack[this.stack.length - 1];
4423
4428
  F.value += O;
4424
4429
  }
@@ -4450,13 +4455,13 @@ function Uo(e) {
4450
4455
  value: ""
4451
4456
  };
4452
4457
  }
4453
- function gr() {
4458
+ function dr() {
4454
4459
  return {
4455
4460
  type: "inlineCode",
4456
4461
  value: ""
4457
4462
  };
4458
4463
  }
4459
- function yr() {
4464
+ function gr() {
4460
4465
  return {
4461
4466
  type: "definition",
4462
4467
  identifier: "",
@@ -4465,13 +4470,13 @@ function Uo(e) {
4465
4470
  url: ""
4466
4471
  };
4467
4472
  }
4468
- function xr() {
4473
+ function yr() {
4469
4474
  return {
4470
4475
  type: "emphasis",
4471
4476
  children: []
4472
4477
  };
4473
4478
  }
4474
- function Mn() {
4479
+ function Rn() {
4475
4480
  return {
4476
4481
  type: "heading",
4477
4482
  // @ts-expect-error `depth` will be set later.
@@ -4479,18 +4484,18 @@ function Uo(e) {
4479
4484
  children: []
4480
4485
  };
4481
4486
  }
4482
- function Bn() {
4487
+ function Mn() {
4483
4488
  return {
4484
4489
  type: "break"
4485
4490
  };
4486
4491
  }
4487
- function jn() {
4492
+ function Bn() {
4488
4493
  return {
4489
4494
  type: "html",
4490
4495
  value: ""
4491
4496
  };
4492
4497
  }
4493
- function kr() {
4498
+ function xr() {
4494
4499
  return {
4495
4500
  type: "image",
4496
4501
  title: null,
@@ -4498,7 +4503,7 @@ function Uo(e) {
4498
4503
  alt: null
4499
4504
  };
4500
4505
  }
4501
- function Hn() {
4506
+ function jn() {
4502
4507
  return {
4503
4508
  type: "link",
4504
4509
  title: null,
@@ -4506,7 +4511,7 @@ function Uo(e) {
4506
4511
  children: []
4507
4512
  };
4508
4513
  }
4509
- function Un(g) {
4514
+ function Hn(g) {
4510
4515
  return {
4511
4516
  type: "list",
4512
4517
  ordered: g.type === "listOrdered",
@@ -4515,7 +4520,7 @@ function Uo(e) {
4515
4520
  children: []
4516
4521
  };
4517
4522
  }
4518
- function br(g) {
4523
+ function kr(g) {
4519
4524
  return {
4520
4525
  type: "listItem",
4521
4526
  spread: g._spread,
@@ -4523,19 +4528,19 @@ function Uo(e) {
4523
4528
  children: []
4524
4529
  };
4525
4530
  }
4526
- function wr() {
4531
+ function br() {
4527
4532
  return {
4528
4533
  type: "paragraph",
4529
4534
  children: []
4530
4535
  };
4531
4536
  }
4532
- function Sr() {
4537
+ function wr() {
4533
4538
  return {
4534
4539
  type: "strong",
4535
4540
  children: []
4536
4541
  };
4537
4542
  }
4538
- function Er() {
4543
+ function Sr() {
4539
4544
  return {
4540
4545
  type: "text",
4541
4546
  value: ""
@@ -4554,17 +4559,17 @@ function de(e) {
4554
4559
  offset: e.offset
4555
4560
  };
4556
4561
  }
4557
- function lr(e, n) {
4562
+ function ir(e, n) {
4558
4563
  let t = -1;
4559
4564
  for (; ++t < n.length; ) {
4560
4565
  const r = n[t];
4561
- Array.isArray(r) ? lr(e, r) : Vo(e, r);
4566
+ Array.isArray(r) ? ir(e, r) : $o(e, r);
4562
4567
  }
4563
4568
  }
4564
- function Vo(e, n) {
4569
+ function $o(e, n) {
4565
4570
  let t;
4566
4571
  for (t in n)
4567
- if (ir.call(n, t))
4572
+ if (rr.call(n, t))
4568
4573
  switch (t) {
4569
4574
  case "canContainEols": {
4570
4575
  const r = n[t];
@@ -4584,7 +4589,7 @@ function Vo(e, n) {
4584
4589
  }
4585
4590
  }
4586
4591
  }
4587
- function mt(e, n) {
4592
+ function ht(e, n) {
4588
4593
  throw e ? new Error("Cannot close `" + e.type + "` (" + Ne({
4589
4594
  start: e.start,
4590
4595
  end: e.end
@@ -4596,11 +4601,11 @@ function mt(e, n) {
4596
4601
  end: n.end
4597
4602
  }) + ") is still open");
4598
4603
  }
4599
- function qo(e) {
4604
+ function Wo(e) {
4600
4605
  const n = this;
4601
4606
  n.parser = t;
4602
4607
  function t(r) {
4603
- return Ho(r, {
4608
+ return Vo(r, {
4604
4609
  ...n.data("settings"),
4605
4610
  ...e,
4606
4611
  // Note: these options are not in the readme.
@@ -4611,7 +4616,7 @@ function qo(e) {
4611
4616
  });
4612
4617
  }
4613
4618
  }
4614
- function $o(e, n) {
4619
+ function Yo(e, n) {
4615
4620
  const t = {
4616
4621
  type: "element",
4617
4622
  tagName: "blockquote",
@@ -4620,12 +4625,12 @@ function $o(e, n) {
4620
4625
  };
4621
4626
  return e.patch(n, t), e.applyData(n, t);
4622
4627
  }
4623
- function Wo(e, n) {
4628
+ function Xo(e, n) {
4624
4629
  const t = { type: "element", tagName: "br", properties: {}, children: [] };
4625
4630
  return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
4626
4631
  ` }];
4627
4632
  }
4628
- function Yo(e, n) {
4633
+ function Qo(e, n) {
4629
4634
  const t = n.value ? n.value + `
4630
4635
  ` : "", r = {};
4631
4636
  n.lang && (r.className = ["language-" + n.lang]);
@@ -4637,7 +4642,7 @@ function Yo(e, n) {
4637
4642
  };
4638
4643
  return n.meta && (i.data = { meta: n.meta }), e.patch(n, i), i = e.applyData(n, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(n, i), i;
4639
4644
  }
4640
- function Xo(e, n) {
4645
+ function Go(e, n) {
4641
4646
  const t = {
4642
4647
  type: "element",
4643
4648
  tagName: "del",
@@ -4646,7 +4651,7 @@ function Xo(e, n) {
4646
4651
  };
4647
4652
  return e.patch(n, t), e.applyData(n, t);
4648
4653
  }
4649
- function Qo(e, n) {
4654
+ function Ko(e, n) {
4650
4655
  const t = {
4651
4656
  type: "element",
4652
4657
  tagName: "em",
@@ -4655,7 +4660,7 @@ function Qo(e, n) {
4655
4660
  };
4656
4661
  return e.patch(n, t), e.applyData(n, t);
4657
4662
  }
4658
- function Go(e, n) {
4663
+ function Jo(e, n) {
4659
4664
  const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Ae(r.toLowerCase()), l = e.footnoteOrder.indexOf(r);
4660
4665
  let o, a = e.footnoteCounts.get(r);
4661
4666
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = l + 1, a += 1, e.footnoteCounts.set(r, a);
@@ -4679,7 +4684,7 @@ function Go(e, n) {
4679
4684
  };
4680
4685
  return e.patch(n, c), e.applyData(n, c);
4681
4686
  }
4682
- function Ko(e, n) {
4687
+ function Zo(e, n) {
4683
4688
  const t = {
4684
4689
  type: "element",
4685
4690
  tagName: "h" + n.depth,
@@ -4688,13 +4693,13 @@ function Ko(e, n) {
4688
4693
  };
4689
4694
  return e.patch(n, t), e.applyData(n, t);
4690
4695
  }
4691
- function Jo(e, n) {
4696
+ function ea(e, n) {
4692
4697
  if (e.options.allowDangerousHtml) {
4693
4698
  const t = { type: "raw", value: n.value };
4694
4699
  return e.patch(n, t), e.applyData(n, t);
4695
4700
  }
4696
4701
  }
4697
- function or(e, n) {
4702
+ function lr(e, n) {
4698
4703
  const t = n.referenceType;
4699
4704
  let r = "]";
4700
4705
  if (t === "collapsed" ? r += "[]" : t === "full" && (r += "[" + (n.label || n.identifier) + "]"), n.type === "imageReference")
@@ -4704,22 +4709,22 @@ function or(e, n) {
4704
4709
  const o = i[i.length - 1];
4705
4710
  return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
4706
4711
  }
4707
- function Zo(e, n) {
4712
+ function na(e, n) {
4708
4713
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
4709
4714
  if (!r)
4710
- return or(e, n);
4715
+ return lr(e, n);
4711
4716
  const i = { src: Ae(r.url || ""), alt: n.alt };
4712
4717
  r.title !== null && r.title !== void 0 && (i.title = r.title);
4713
4718
  const l = { type: "element", tagName: "img", properties: i, children: [] };
4714
4719
  return e.patch(n, l), e.applyData(n, l);
4715
4720
  }
4716
- function ea(e, n) {
4721
+ function ta(e, n) {
4717
4722
  const t = { src: Ae(n.url) };
4718
4723
  n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
4719
4724
  const r = { type: "element", tagName: "img", properties: t, children: [] };
4720
4725
  return e.patch(n, r), e.applyData(n, r);
4721
4726
  }
4722
- function na(e, n) {
4727
+ function ra(e, n) {
4723
4728
  const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
4724
4729
  e.patch(n, t);
4725
4730
  const r = {
@@ -4730,10 +4735,10 @@ function na(e, n) {
4730
4735
  };
4731
4736
  return e.patch(n, r), e.applyData(n, r);
4732
4737
  }
4733
- function ta(e, n) {
4738
+ function ia(e, n) {
4734
4739
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
4735
4740
  if (!r)
4736
- return or(e, n);
4741
+ return lr(e, n);
4737
4742
  const i = { href: Ae(r.url || "") };
4738
4743
  r.title !== null && r.title !== void 0 && (i.title = r.title);
4739
4744
  const l = {
@@ -4744,7 +4749,7 @@ function ta(e, n) {
4744
4749
  };
4745
4750
  return e.patch(n, l), e.applyData(n, l);
4746
4751
  }
4747
- function ra(e, n) {
4752
+ function la(e, n) {
4748
4753
  const t = { href: Ae(n.url) };
4749
4754
  n.title !== null && n.title !== void 0 && (t.title = n.title);
4750
4755
  const r = {
@@ -4755,8 +4760,8 @@ function ra(e, n) {
4755
4760
  };
4756
4761
  return e.patch(n, r), e.applyData(n, r);
4757
4762
  }
4758
- function ia(e, n, t) {
4759
- const r = e.all(n), i = t ? la(t) : ar(n), l = {}, o = [];
4763
+ function oa(e, n, t) {
4764
+ const r = e.all(n), i = t ? aa(t) : or(n), l = {}, o = [];
4760
4765
  if (typeof n.checked == "boolean") {
4761
4766
  const s = r[0];
4762
4767
  let f;
@@ -4779,22 +4784,22 @@ function ia(e, n, t) {
4779
4784
  const c = { type: "element", tagName: "li", properties: l, children: o };
4780
4785
  return e.patch(n, c), e.applyData(n, c);
4781
4786
  }
4782
- function la(e) {
4787
+ function aa(e) {
4783
4788
  let n = !1;
4784
4789
  if (e.type === "list") {
4785
4790
  n = e.spread || !1;
4786
4791
  const t = e.children;
4787
4792
  let r = -1;
4788
4793
  for (; !n && ++r < t.length; )
4789
- n = ar(t[r]);
4794
+ n = or(t[r]);
4790
4795
  }
4791
4796
  return n;
4792
4797
  }
4793
- function ar(e) {
4798
+ function or(e) {
4794
4799
  const n = e.spread;
4795
4800
  return n ?? e.children.length > 1;
4796
4801
  }
4797
- function oa(e, n) {
4802
+ function ua(e, n) {
4798
4803
  const t = {}, r = e.all(n);
4799
4804
  let i = -1;
4800
4805
  for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
@@ -4812,7 +4817,7 @@ function oa(e, n) {
4812
4817
  };
4813
4818
  return e.patch(n, l), e.applyData(n, l);
4814
4819
  }
4815
- function aa(e, n) {
4820
+ function sa(e, n) {
4816
4821
  const t = {
4817
4822
  type: "element",
4818
4823
  tagName: "p",
@@ -4821,11 +4826,11 @@ function aa(e, n) {
4821
4826
  };
4822
4827
  return e.patch(n, t), e.applyData(n, t);
4823
4828
  }
4824
- function ua(e, n) {
4829
+ function ca(e, n) {
4825
4830
  const t = { type: "root", children: e.wrap(e.all(n)) };
4826
4831
  return e.patch(n, t), e.applyData(n, t);
4827
4832
  }
4828
- function sa(e, n) {
4833
+ function pa(e, n) {
4829
4834
  const t = {
4830
4835
  type: "element",
4831
4836
  tagName: "strong",
@@ -4834,7 +4839,7 @@ function sa(e, n) {
4834
4839
  };
4835
4840
  return e.patch(n, t), e.applyData(n, t);
4836
4841
  }
4837
- function ca(e, n) {
4842
+ function fa(e, n) {
4838
4843
  const t = e.all(n), r = t.shift(), i = [];
4839
4844
  if (r) {
4840
4845
  const o = {
@@ -4851,7 +4856,7 @@ function ca(e, n) {
4851
4856
  tagName: "tbody",
4852
4857
  properties: {},
4853
4858
  children: e.wrap(t, !0)
4854
- }, a = Tn(n.children[1]), u = Ht(n.children[n.children.length - 1]);
4859
+ }, a = In(n.children[1]), u = jt(n.children[n.children.length - 1]);
4855
4860
  a && u && (o.position = { start: a, end: u }), i.push(o);
4856
4861
  }
4857
4862
  const l = {
@@ -4862,7 +4867,7 @@ function ca(e, n) {
4862
4867
  };
4863
4868
  return e.patch(n, l), e.applyData(n, l);
4864
4869
  }
4865
- function pa(e, n, t) {
4870
+ function ha(e, n, t) {
4866
4871
  const r = t ? t.children : void 0, l = (r ? r.indexOf(n) : 1) === 0 ? "th" : "td", o = t && t.type === "table" ? t.align : void 0, a = o ? o.length : n.children.length;
4867
4872
  let u = -1;
4868
4873
  const c = [];
@@ -4880,7 +4885,7 @@ function pa(e, n, t) {
4880
4885
  };
4881
4886
  return e.patch(n, s), e.applyData(n, s);
4882
4887
  }
4883
- function fa(e, n) {
4888
+ function ma(e, n) {
4884
4889
  const t = {
4885
4890
  type: "element",
4886
4891
  tagName: "td",
@@ -4890,11 +4895,11 @@ function fa(e, n) {
4890
4895
  };
4891
4896
  return e.patch(n, t), e.applyData(n, t);
4892
4897
  }
4893
- function ha(e, n) {
4894
- const t = { type: "text", value: Ir(String(n.value)) };
4898
+ function da(e, n) {
4899
+ const t = { type: "text", value: Pr(String(n.value)) };
4895
4900
  return e.patch(n, t), e.applyData(n, t);
4896
4901
  }
4897
- function ma(e, n) {
4902
+ function ga(e, n) {
4898
4903
  const t = {
4899
4904
  type: "element",
4900
4905
  tagName: "hr",
@@ -4903,31 +4908,31 @@ function ma(e, n) {
4903
4908
  };
4904
4909
  return e.patch(n, t), e.applyData(n, t);
4905
4910
  }
4906
- const da = {
4907
- blockquote: $o,
4908
- break: Wo,
4909
- code: Yo,
4910
- delete: Xo,
4911
- emphasis: Qo,
4912
- footnoteReference: Go,
4913
- heading: Ko,
4914
- html: Jo,
4915
- imageReference: Zo,
4916
- image: ea,
4917
- inlineCode: na,
4918
- linkReference: ta,
4919
- link: ra,
4920
- listItem: ia,
4921
- list: oa,
4922
- paragraph: aa,
4911
+ const ya = {
4912
+ blockquote: Yo,
4913
+ break: Xo,
4914
+ code: Qo,
4915
+ delete: Go,
4916
+ emphasis: Ko,
4917
+ footnoteReference: Jo,
4918
+ heading: Zo,
4919
+ html: ea,
4920
+ imageReference: na,
4921
+ image: ta,
4922
+ inlineCode: ra,
4923
+ linkReference: ia,
4924
+ link: la,
4925
+ listItem: oa,
4926
+ list: ua,
4927
+ paragraph: sa,
4923
4928
  // @ts-expect-error: root is different, but hard to type.
4924
- root: ua,
4925
- strong: sa,
4926
- table: ca,
4927
- tableCell: fa,
4928
- tableRow: pa,
4929
- text: ha,
4930
- thematicBreak: ma,
4929
+ root: ca,
4930
+ strong: pa,
4931
+ table: fa,
4932
+ tableCell: ma,
4933
+ tableRow: ha,
4934
+ text: da,
4935
+ thematicBreak: ga,
4931
4936
  toml: He,
4932
4937
  yaml: He,
4933
4938
  definition: He,
@@ -4935,14 +4940,14 @@ const da = {
4935
4940
  };
4936
4941
  function He() {
4937
4942
  }
4938
- const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, cr = 8, dt = typeof self == "object" ? self : globalThis, ga = (e, n) => {
4943
+ const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, sr = 8, mt = typeof self == "object" ? self : globalThis, xa = (e, n) => {
4939
4944
  const t = (i, l) => (e.set(l, i), i), r = (i) => {
4940
4945
  if (e.has(i))
4941
4946
  return e.get(i);
4942
4947
  const [l, o] = n[i];
4943
4948
  switch (l) {
4944
4949
  case Ke:
4945
- case ur:
4950
+ case ar:
4946
4951
  return t(o, i);
4947
4952
  case Fe: {
4948
4953
  const a = t([], i);
@@ -4956,29 +4961,29 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
4956
4961
  a[r(u)] = r(c);
4957
4962
  return a;
4958
4963
  }
4959
- case Dn:
4964
+ case vn:
4960
4965
  return t(new Date(o), i);
4961
- case Nn: {
4966
+ case Dn: {
4962
4967
  const { source: a, flags: u } = o;
4963
4968
  return t(new RegExp(a, u), i);
4964
4969
  }
4965
- case _n: {
4970
+ case Nn: {
4966
4971
  const a = t(/* @__PURE__ */ new Map(), i);
4967
4972
  for (const [u, c] of o)
4968
4973
  a.set(r(u), r(c));
4969
4974
  return a;
4970
4975
  }
4971
- case Fn: {
4976
+ case _n: {
4972
4977
  const a = t(/* @__PURE__ */ new Set(), i);
4973
4978
  for (const u of o)
4974
4979
  a.add(r(u));
4975
4980
  return a;
4976
4981
  }
4977
- case sr: {
4982
+ case ur: {
4978
4983
  const { name: a, message: u } = o;
4979
- return t(new dt[a](u), i);
4984
+ return t(new mt[a](u), i);
4980
4985
  }
4981
- case cr:
4986
+ case sr:
4982
4987
  return t(BigInt(o), i);
4983
4988
  case "BigInt":
4984
4989
  return t(Object(BigInt(o)), i);
@@ -4989,32 +4994,32 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
4989
4994
  return t(new DataView(a), o);
4990
4995
  }
4991
4996
  }
4992
- return t(new dt[l](o), i);
4997
+ return t(new mt[l](o), i);
4993
4998
  };
4994
4999
  return r;
4995
- }, gt = (e) => ga(/* @__PURE__ */ new Map(), e)(0), Ce = "", { toString: ya } = {}, { keys: xa } = Object, De = (e) => {
5000
+ }, dt = (e) => xa(/* @__PURE__ */ new Map(), e)(0), Ee = "", { toString: ka } = {}, { keys: ba } = Object, De = (e) => {
4996
5001
  const n = typeof e;
4997
5002
  if (n !== "object" || !e)
4998
5003
  return [Ke, n];
4999
- const t = ya.call(e).slice(8, -1);
5004
+ const t = ka.call(e).slice(8, -1);
5000
5005
  switch (t) {
5001
5006
  case "Array":
5002
- return [Fe, Ce];
5007
+ return [Fe, Ee];
5003
5008
  case "Object":
5004
- return [Ye, Ce];
5009
+ return [Ye, Ee];
5005
5010
  case "Date":
5006
- return [Dn, Ce];
5011
+ return [vn, Ee];
5007
5012
  case "RegExp":
5008
- return [Nn, Ce];
5013
+ return [Dn, Ee];
5009
5014
  case "Map":
5010
- return [_n, Ce];
5015
+ return [Nn, Ee];
5011
5016
  case "Set":
5012
- return [Fn, Ce];
5017
+ return [_n, Ee];
5013
5018
  case "DataView":
5014
5019
  return [Fe, t];
5015
5020
  }
5016
- return t.includes("Array") ? [Fe, t] : t.includes("Error") ? [sr, t] : [Ye, t];
5017
- }, Ue = ([e, n]) => e === Ke && (n === "function" || n === "symbol"), ka = (e, n, t, r) => {
5021
+ return t.includes("Array") ? [Fe, t] : t.includes("Error") ? [ur, t] : [Ye, t];
5022
+ }, Ue = ([e, n]) => e === Ke && (n === "function" || n === "symbol"), wa = (e, n, t, r) => {
5018
5023
  const i = (o, a) => {
5019
5024
  const u = r.push(o) - 1;
5020
5025
  return t.set(a, u), u;
@@ -5027,7 +5032,7 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
5027
5032
  let s = o;
5028
5033
  switch (u) {
5029
5034
  case "bigint":
5030
- a = cr, s = o.toString();
5035
+ a = sr, s = o.toString();
5031
5036
  break;
5032
5037
  case "function":
5033
5038
  case "symbol":
@@ -5036,7 +5041,7 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
5036
5041
  s = null;
5037
5042
  break;
5038
5043
  case "undefined":
5039
- return i([ur], o);
5044
+ return i([ar], o);
5040
5045
  }
5041
5046
  return i([a, s], o);
5042
5047
  }
@@ -5063,23 +5068,23 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
5063
5068
  if (n && "toJSON" in o)
5064
5069
  return l(o.toJSON());
5065
5070
  const s = [], f = i([a, s], o);
5066
- for (const d of xa(o))
5071
+ for (const d of ba(o))
5067
5072
  (e || !Ue(De(o[d]))) && s.push([l(d), l(o[d])]);
5068
5073
  return f;
5069
5074
  }
5070
- case Dn:
5075
+ case vn:
5071
5076
  return i([a, o.toISOString()], o);
5072
- case Nn: {
5077
+ case Dn: {
5073
5078
  const { source: s, flags: f } = o;
5074
5079
  return i([a, { source: s, flags: f }], o);
5075
5080
  }
5076
- case _n: {
5081
+ case Nn: {
5077
5082
  const s = [], f = i([a, s], o);
5078
5083
  for (const [d, p] of o)
5079
5084
  (e || !(Ue(De(d)) || Ue(De(p)))) && s.push([l(d), l(p)]);
5080
5085
  return f;
5081
5086
  }
5082
- case Fn: {
5087
+ case _n: {
5083
5088
  const s = [], f = i([a, s], o);
5084
5089
  for (const d of o)
5085
5090
  (e || !Ue(De(d))) && s.push(l(d));
@@ -5090,14 +5095,14 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
5090
5095
  return i([a, { name: u, message: c }], o);
5091
5096
  };
5092
5097
  return l;
5093
- }, yt = (e, { json: n, lossy: t } = {}) => {
5098
+ }, gt = (e, { json: n, lossy: t } = {}) => {
5094
5099
  const r = [];
5095
- return ka(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
5100
+ return wa(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
5096
5101
  }, Xe = typeof structuredClone == "function" ? (
5097
5102
  /* c8 ignore start */
5098
- (e, n) => n && ("json" in n || "lossy" in n) ? gt(yt(e, n)) : structuredClone(e)
5099
- ) : (e, n) => gt(yt(e, n));
5100
- function ba(e, n) {
5103
+ (e, n) => n && ("json" in n || "lossy" in n) ? dt(gt(e, n)) : structuredClone(e)
5104
+ ) : (e, n) => dt(gt(e, n));
5105
+ function Sa(e, n) {
5101
5106
  const t = [{ type: "text", value: "↩" }];
5102
5107
  return n > 1 && t.push({
5103
5108
  type: "element",
@@ -5106,11 +5111,11 @@ function ba(e, n) {
5106
5111
  children: [{ type: "text", value: String(n) }]
5107
5112
  }), t;
5108
5113
  }
5109
- function wa(e, n) {
5114
+ function Ca(e, n) {
5110
5115
  return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
5111
5116
  }
5112
- function Sa(e) {
5113
- const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || ba, r = e.options.footnoteBackLabel || wa, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
5117
+ function Ea(e) {
5118
+ const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Sa, r = e.options.footnoteBackLabel || Ca, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
5114
5119
  className: ["sr-only"]
5115
5120
  }, a = [];
5116
5121
  let u = -1;
@@ -5180,7 +5185,7 @@ function Sa(e) {
5180
5185
  ]
5181
5186
  };
5182
5187
  }
5183
- const pr = (
5188
+ const cr = (
5184
5189
  // Note: overloads in JSDoc can’t yet use different `@template`s.
5185
5190
  /**
5186
5191
  * @type {(
@@ -5197,28 +5202,28 @@ const pr = (
5197
5202
  */
5198
5203
  function(e) {
5199
5204
  if (e == null)
5200
- return Ta;
5205
+ return Aa;
5201
5206
  if (typeof e == "function")
5202
5207
  return Je(e);
5203
5208
  if (typeof e == "object")
5204
- return Array.isArray(e) ? Ea(e) : (
5209
+ return Array.isArray(e) ? Ia(e) : (
5205
5210
  // Cast because `ReadonlyArray` goes into the above but `isArray`
5206
5211
  // narrows to `Array`.
5207
- Ca(
5212
+ Ta(
5208
5213
  /** @type {Props} */
5209
5214
  e
5210
5215
  )
5211
5216
  );
5212
5217
  if (typeof e == "string")
5213
- return Ia(e);
5218
+ return Pa(e);
5214
5219
  throw new Error("Expected function, string, or object as test");
5215
5220
  }
5216
5221
  );
5217
- function Ea(e) {
5222
+ function Ia(e) {
5218
5223
  const n = [];
5219
5224
  let t = -1;
5220
5225
  for (; ++t < e.length; )
5221
- n[t] = pr(e[t]);
5226
+ n[t] = cr(e[t]);
5222
5227
  return Je(r);
5223
5228
  function r(...i) {
5224
5229
  let l = -1;
@@ -5227,7 +5232,7 @@ function Ea(e) {
5227
5232
  return !1;
5228
5233
  }
5229
5234
  }
5230
- function Ca(e) {
5235
+ function Ta(e) {
5231
5236
  const n = (
5232
5237
  /** @type {Record<string, unknown>} */
5233
5238
  e
@@ -5245,7 +5250,7 @@ function Ca(e) {
5245
5250
  return !0;
5246
5251
  }
5247
5252
  }
5248
- function Ia(e) {
5253
+ function Pa(e) {
5249
5254
  return Je(n);
5250
5255
  function n(t) {
5251
5256
  return t && t.type === e;
@@ -5254,7 +5259,7 @@ function Ia(e) {
5254
5259
  function Je(e) {
5255
5260
  return n;
5256
5261
  function n(t, r, i) {
5257
- return !!(Pa(t) && e.call(
5262
+ return !!(za(t) && e.call(
5258
5263
  this,
5259
5264
  t,
5260
5265
  typeof r == "number" ? r : void 0,
@@ -5262,17 +5267,17 @@ function Je(e) {
5262
5267
  ));
5263
5268
  }
5264
5269
  }
5265
- function Ta() {
5270
+ function Aa() {
5266
5271
  return !0;
5267
5272
  }
5268
- function Pa(e) {
5273
+ function za(e) {
5269
5274
  return e !== null && typeof e == "object" && "type" in e;
5270
5275
  }
5271
- const fr = [], Aa = !0, xt = !1, za = "skip";
5272
- function La(e, n, t, r) {
5276
+ const pr = [], La = !0, yt = !1, Oa = "skip";
5277
+ function va(e, n, t, r) {
5273
5278
  let i;
5274
5279
  typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
5275
- const l = pr(i), o = r ? -1 : 1;
5280
+ const l = cr(i), o = r ? -1 : 1;
5276
5281
  a(e, void 0, [])();
5277
5282
  function a(u, c, s) {
5278
5283
  const f = (
@@ -5293,18 +5298,18 @@ function La(e, n, t, r) {
5293
5298
  }
5294
5299
  return d;
5295
5300
  function d() {
5296
- let p = fr, y, b, T;
5297
- if ((!n || l(u, c, s[s.length - 1] || void 0)) && (p = Oa(t(u, s)), p[0] === xt))
5301
+ let p = pr, y, b, T;
5302
+ if ((!n || l(u, c, s[s.length - 1] || void 0)) && (p = Da(t(u, s)), p[0] === yt))
5298
5303
  return p;
5299
5304
  if ("children" in u && u.children) {
5300
5305
  const w = (
5301
5306
  /** @type {UnistParent} */
5302
5307
  u
5303
5308
  );
5304
- if (w.children && p[0] !== za)
5309
+ if (w.children && p[0] !== Oa)
5305
5310
  for (b = (r ? w.children.length : -1) + o, T = s.concat(w); b > -1 && b < w.children.length; ) {
5306
5311
  const L = w.children[b];
5307
- if (y = a(L, b, T)(), y[0] === xt)
5312
+ if (y = a(L, b, T)(), y[0] === yt)
5308
5313
  return y;
5309
5314
  b = typeof y[1] == "number" ? y[1] : b + o;
5310
5315
  }
@@ -5313,22 +5318,22 @@ function La(e, n, t, r) {
5313
5318
  }
5314
5319
  }
5315
5320
  }
5316
- function Oa(e) {
5317
- return Array.isArray(e) ? e : typeof e == "number" ? [Aa, e] : e == null ? fr : [e];
5321
+ function Da(e) {
5322
+ return Array.isArray(e) ? e : typeof e == "number" ? [La, e] : e == null ? pr : [e];
5318
5323
  }
5319
- function hr(e, n, t, r) {
5324
+ function fr(e, n, t, r) {
5320
5325
  let i, l, o;
5321
- typeof n == "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r), La(e, l, a, i);
5326
+ typeof n == "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r), va(e, l, a, i);
5322
5327
  function a(u, c) {
5323
5328
  const s = c[c.length - 1], f = s ? s.children.indexOf(u) : void 0;
5324
5329
  return o(u, f, s);
5325
5330
  }
5326
5331
  }
5327
- const bn = {}.hasOwnProperty, va = {};
5328
- function Da(e, n) {
5329
- const t = n || va, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...da, ...t.handlers }, a = {
5332
+ const kn = {}.hasOwnProperty, Na = {};
5333
+ function _a(e, n) {
5334
+ const t = n || Na, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...ya, ...t.handlers }, a = {
5330
5335
  all: c,
5331
- applyData: _a,
5336
+ applyData: Ra,
5332
5337
  definitionById: r,
5333
5338
  footnoteById: i,
5334
5339
  footnoteCounts: l,
@@ -5336,10 +5341,10 @@ function Da(e, n) {
5336
5341
  handlers: o,
5337
5342
  one: u,
5338
5343
  options: t,
5339
- patch: Na,
5340
- wrap: Ra
5344
+ patch: Fa,
5345
+ wrap: Ba
5341
5346
  };
5342
- return hr(e, function(s) {
5347
+ return fr(e, function(s) {
5343
5348
  if (s.type === "definition" || s.type === "footnoteDefinition") {
5344
5349
  const f = s.type === "definition" ? r : i, d = String(s.identifier).toUpperCase();
5345
5350
  f.has(d) || f.set(d, s);
@@ -5347,7 +5352,7 @@ function Da(e, n) {
5347
5352
  }), a;
5348
5353
  function u(s, f) {
5349
5354
  const d = s.type, p = a.handlers[d];
5350
- if (bn.call(a.handlers, d) && p)
5355
+ if (kn.call(a.handlers, d) && p)
5351
5356
  return p(a, s, f);
5352
5357
  if (a.options.passThrough && a.options.passThrough.includes(d)) {
5353
5358
  if ("children" in s) {
@@ -5356,7 +5361,7 @@ function Da(e, n) {
5356
5361
  }
5357
5362
  return Xe(s);
5358
5363
  }
5359
- return (a.options.unknownHandler || Fa)(a, s, f);
5364
+ return (a.options.unknownHandler || Ma)(a, s, f);
5360
5365
  }
5361
5366
  function c(s) {
5362
5367
  const f = [];
@@ -5366,9 +5371,9 @@ function Da(e, n) {
5366
5371
  for (; ++p < d.length; ) {
5367
5372
  const y = a.one(d[p], s);
5368
5373
  if (y) {
5369
- if (p && d[p - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = kt(y.value)), !Array.isArray(y) && y.type === "element")) {
5374
+ if (p && d[p - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = xt(y.value)), !Array.isArray(y) && y.type === "element")) {
5370
5375
  const b = y.children[0];
5371
- b && b.type === "text" && (b.value = kt(b.value));
5376
+ b && b.type === "text" && (b.value = xt(b.value));
5372
5377
  }
5373
5378
  Array.isArray(y) ? f.push(...y) : f.push(y);
5374
5379
  }
@@ -5377,10 +5382,10 @@ function Da(e, n) {
5377
5382
  return f;
5378
5383
  }
5379
5384
  }
5380
- function Na(e, n) {
5381
- e.position && (n.position = yi(e));
5385
+ function Fa(e, n) {
5386
+ e.position && (n.position = ki(e));
5382
5387
  }
5383
- function _a(e, n) {
5388
+ function Ra(e, n) {
5384
5389
  let t = n;
5385
5390
  if (e && e.data) {
5386
5391
  const r = e.data.hName, i = e.data.hChildren, l = e.data.hProperties;
@@ -5395,8 +5400,8 @@ function _a(e, n) {
5395
5400
  }
5396
5401
  return t;
5397
5402
  }
5398
- function Fa(e, n) {
5399
- const t = n.data || {}, r = "value" in n && !(bn.call(t, "hProperties") || bn.call(t, "hChildren")) ? { type: "text", value: n.value } : {
5403
+ function Ma(e, n) {
5404
+ const t = n.data || {}, r = "value" in n && !(kn.call(t, "hProperties") || kn.call(t, "hChildren")) ? { type: "text", value: n.value } : {
5400
5405
  type: "element",
5401
5406
  tagName: "div",
5402
5407
  properties: {},
@@ -5404,7 +5409,7 @@ function Fa(e, n) {
5404
5409
  };
5405
5410
  return e.patch(n, r), e.applyData(n, r);
5406
5411
  }
5407
- function Ra(e, n) {
5412
+ function Ba(e, n) {
5408
5413
  const t = [];
5409
5414
  let r = -1;
5410
5415
  for (n && t.push({ type: "text", value: `
@@ -5414,39 +5419,39 @@ function Ra(e, n) {
5414
5419
  return n && e.length > 0 && t.push({ type: "text", value: `
5415
5420
  ` }), t;
5416
5421
  }
5417
- function kt(e) {
5422
+ function xt(e) {
5418
5423
  let n = 0, t = e.charCodeAt(n);
5419
5424
  for (; t === 9 || t === 32; )
5420
5425
  n++, t = e.charCodeAt(n);
5421
5426
  return e.slice(n);
5422
5427
  }
5423
- function bt(e, n) {
5424
- const t = Da(e, n), r = t.one(e, void 0), i = Sa(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5428
+ function kt(e, n) {
5429
+ const t = _a(e, n), r = t.one(e, void 0), i = Ea(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5425
5430
  return i && l.children.push({ type: "text", value: `
5426
5431
  ` }, i), l;
5427
5432
  }
5428
- function Ma(e, n) {
5433
+ function ja(e, n) {
5429
5434
  return e && "run" in e ? async function(t, r) {
5430
5435
  const i = (
5431
5436
  /** @type {HastRoot} */
5432
- bt(t, { file: r, ...n })
5437
+ kt(t, { file: r, ...n })
5433
5438
  );
5434
5439
  await e.run(i, r);
5435
5440
  } : function(t, r) {
5436
5441
  return (
5437
5442
  /** @type {HastRoot} */
5438
- bt(t, { file: r, ...e || n })
5443
+ kt(t, { file: r, ...e || n })
5439
5444
  );
5440
5445
  };
5441
5446
  }
5442
- function wt(e) {
5447
+ function bt(e) {
5443
5448
  if (e)
5444
5449
  throw e;
5445
5450
  }
5446
- var $e = Object.prototype.hasOwnProperty, mr = Object.prototype.toString, St = Object.defineProperty, Et = Object.getOwnPropertyDescriptor, Ct = function(n) {
5447
- return typeof Array.isArray == "function" ? Array.isArray(n) : mr.call(n) === "[object Array]";
5448
- }, It = function(n) {
5449
- if (!n || mr.call(n) !== "[object Object]")
5451
+ var $e = Object.prototype.hasOwnProperty, hr = Object.prototype.toString, wt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, Ct = function(n) {
5452
+ return typeof Array.isArray == "function" ? Array.isArray(n) : hr.call(n) === "[object Array]";
5453
+ }, Et = function(n) {
5454
+ if (!n || hr.call(n) !== "[object Object]")
5450
5455
  return !1;
5451
5456
  var t = $e.call(n, "constructor"), r = n.constructor && n.constructor.prototype && $e.call(n.constructor.prototype, "isPrototypeOf");
5452
5457
  if (n.constructor && !t && !r)
@@ -5455,36 +5460,36 @@ var $e = Object.prototype.hasOwnProperty, mr = Object.prototype.toString, St = O
5455
5460
  for (i in n)
5456
5461
  ;
5457
5462
  return typeof i > "u" || $e.call(n, i);
5458
- }, Tt = function(n, t) {
5459
- St && t.name === "__proto__" ? St(n, t.name, {
5463
+ }, It = function(n, t) {
5464
+ wt && t.name === "__proto__" ? wt(n, t.name, {
5460
5465
  enumerable: !0,
5461
5466
  configurable: !0,
5462
5467
  value: t.newValue,
5463
5468
  writable: !0
5464
5469
  }) : n[t.name] = t.newValue;
5465
- }, Pt = function(n, t) {
5470
+ }, Tt = function(n, t) {
5466
5471
  if (t === "__proto__")
5467
5472
  if ($e.call(n, t)) {
5468
- if (Et)
5469
- return Et(n, t).value;
5473
+ if (St)
5474
+ return St(n, t).value;
5470
5475
  } else return;
5471
5476
  return n[t];
5472
- }, Ba = function e() {
5477
+ }, Ha = function e() {
5473
5478
  var n, t, r, i, l, o, a = arguments[0], u = 1, c = arguments.length, s = !1;
5474
5479
  for (typeof a == "boolean" && (s = a, a = arguments[1] || {}, u = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); u < c; ++u)
5475
5480
  if (n = arguments[u], n != null)
5476
5481
  for (t in n)
5477
- r = Pt(a, t), i = Pt(n, t), a !== i && (s && i && (It(i) || (l = Ct(i))) ? (l ? (l = !1, o = r && Ct(r) ? r : []) : o = r && It(r) ? r : {}, Tt(a, { name: t, newValue: e(s, o, i) })) : typeof i < "u" && Tt(a, { name: t, newValue: i }));
5482
+ r = Tt(a, t), i = Tt(n, t), a !== i && (s && i && (Et(i) || (l = Ct(i))) ? (l ? (l = !1, o = r && Ct(r) ? r : []) : o = r && Et(r) ? r : {}, It(a, { name: t, newValue: e(s, o, i) })) : typeof i < "u" && It(a, { name: t, newValue: i }));
5478
5483
  return a;
5479
5484
  };
5480
- const ln = /* @__PURE__ */ Dt(Ba);
5481
- function wn(e) {
5485
+ const rn = /* @__PURE__ */ vt(Ha);
5486
+ function bn(e) {
5482
5487
  if (typeof e != "object" || e === null)
5483
5488
  return !1;
5484
5489
  const n = Object.getPrototypeOf(e);
5485
5490
  return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
5486
5491
  }
5487
- function ja() {
5492
+ function Ua() {
5488
5493
  const e = [], n = { run: t, use: r };
5489
5494
  return n;
5490
5495
  function t(...i) {
@@ -5502,7 +5507,7 @@ function ja() {
5502
5507
  }
5503
5508
  for (; ++f < i.length; )
5504
5509
  (c[f] === null || c[f] === void 0) && (c[f] = i[f]);
5505
- i = c, s ? Ha(s, a)(...c) : o(null, ...c);
5510
+ i = c, s ? Va(s, a)(...c) : o(null, ...c);
5506
5511
  }
5507
5512
  }
5508
5513
  function r(i) {
@@ -5513,7 +5518,7 @@ function ja() {
5513
5518
  return e.push(i), n;
5514
5519
  }
5515
5520
  }
5516
- function Ha(e, n) {
5521
+ function Va(e, n) {
5517
5522
  let t;
5518
5523
  return r;
5519
5524
  function r(...o) {
@@ -5540,8 +5545,8 @@ function Ha(e, n) {
5540
5545
  i(null, o);
5541
5546
  }
5542
5547
  }
5543
- const ae = { basename: Ua, dirname: Va, extname: qa, join: $a, sep: "/" };
5544
- function Ua(e, n) {
5548
+ const ae = { basename: qa, dirname: $a, extname: Wa, join: Ya, sep: "/" };
5549
+ function qa(e, n) {
5545
5550
  if (n !== void 0 && typeof n != "string")
5546
5551
  throw new TypeError('"ext" argument must be a string');
5547
5552
  Be(e);
@@ -5569,7 +5574,7 @@ function Ua(e, n) {
5569
5574
  o < 0 && (l = !0, o = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
5570
5575
  return t === r ? r = o : r < 0 && (r = e.length), e.slice(t, r);
5571
5576
  }
5572
- function Va(e) {
5577
+ function $a(e) {
5573
5578
  if (Be(e), e.length === 0)
5574
5579
  return ".";
5575
5580
  let n = -1, t = e.length, r;
@@ -5582,7 +5587,7 @@ function Va(e) {
5582
5587
  } else r || (r = !0);
5583
5588
  return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
5584
5589
  }
5585
- function qa(e) {
5590
+ function Wa(e) {
5586
5591
  Be(e);
5587
5592
  let n = e.length, t = -1, r = 0, i = -1, l = 0, o;
5588
5593
  for (; n--; ) {
@@ -5600,19 +5605,19 @@ function qa(e) {
5600
5605
  l === 0 || // The (right-most) trimmed path component is exactly `..`.
5601
5606
  l === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
5602
5607
  }
5603
- function $a(...e) {
5608
+ function Ya(...e) {
5604
5609
  let n = -1, t;
5605
5610
  for (; ++n < e.length; )
5606
5611
  Be(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
5607
- return t === void 0 ? "." : Wa(t);
5612
+ return t === void 0 ? "." : Xa(t);
5608
5613
  }
5609
- function Wa(e) {
5614
+ function Xa(e) {
5610
5615
  Be(e);
5611
5616
  const n = e.codePointAt(0) === 47;
5612
- let t = Ya(e, !n);
5617
+ let t = Qa(e, !n);
5613
5618
  return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
5614
5619
  }
5615
- function Ya(e, n) {
5620
+ function Qa(e, n) {
5616
5621
  let t = "", r = 0, i = -1, l = 0, o = -1, a, u;
5617
5622
  for (; ++o <= e.length; ) {
5618
5623
  if (o < e.length)
@@ -5649,18 +5654,18 @@ function Be(e) {
5649
5654
  "Path must be a string. Received " + JSON.stringify(e)
5650
5655
  );
5651
5656
  }
5652
- const Xa = { cwd: Qa };
5653
- function Qa() {
5657
+ const Ga = { cwd: Ka };
5658
+ function Ka() {
5654
5659
  return "/";
5655
5660
  }
5656
- function Sn(e) {
5661
+ function wn(e) {
5657
5662
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
5658
5663
  e.auth === void 0);
5659
5664
  }
5660
- function Ga(e) {
5665
+ function Ja(e) {
5661
5666
  if (typeof e == "string")
5662
5667
  e = new URL(e);
5663
- else if (!Sn(e)) {
5668
+ else if (!wn(e)) {
5664
5669
  const n = new TypeError(
5665
5670
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
5666
5671
  );
@@ -5670,9 +5675,9 @@ function Ga(e) {
5670
5675
  const n = new TypeError("The URL must be of scheme file");
5671
5676
  throw n.code = "ERR_INVALID_URL_SCHEME", n;
5672
5677
  }
5673
- return Ka(e);
5678
+ return Za(e);
5674
5679
  }
5675
- function Ka(e) {
5680
+ function Za(e) {
5676
5681
  if (e.hostname !== "") {
5677
5682
  const r = new TypeError(
5678
5683
  'File URL host must be "localhost" or empty on darwin'
@@ -5693,7 +5698,7 @@ function Ka(e) {
5693
5698
  }
5694
5699
  return decodeURIComponent(n);
5695
5700
  }
5696
- const on = (
5701
+ const ln = (
5697
5702
  /** @type {const} */
5698
5703
  [
5699
5704
  "history",
@@ -5704,7 +5709,7 @@ const on = (
5704
5709
  "dirname"
5705
5710
  ]
5706
5711
  );
5707
- class dr {
5712
+ class mr {
5708
5713
  /**
5709
5714
  * Create a new virtual file.
5710
5715
  *
@@ -5729,15 +5734,15 @@ class dr {
5729
5734
  */
5730
5735
  constructor(n) {
5731
5736
  let t;
5732
- n ? Sn(n) ? t = { path: n } : typeof n == "string" || Ja(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Xa.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5737
+ n ? wn(n) ? t = { path: n } : typeof n == "string" || eu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Ga.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5733
5738
  let r = -1;
5734
- for (; ++r < on.length; ) {
5735
- const l = on[r];
5739
+ for (; ++r < ln.length; ) {
5740
+ const l = ln[r];
5736
5741
  l in t && t[l] !== void 0 && t[l] !== null && (this[l] = l === "history" ? [...t[l]] : t[l]);
5737
5742
  }
5738
5743
  let i;
5739
5744
  for (i in t)
5740
- on.includes(i) || (this[i] = t[i]);
5745
+ ln.includes(i) || (this[i] = t[i]);
5741
5746
  }
5742
5747
  /**
5743
5748
  * Get the basename (including extname) (example: `'index.min.js'`).
@@ -5761,7 +5766,7 @@ class dr {
5761
5766
  * Nothing.
5762
5767
  */
5763
5768
  set basename(n) {
5764
- un(n, "basename"), an(n, "basename"), this.path = ae.join(this.dirname || "", n);
5769
+ an(n, "basename"), on(n, "basename"), this.path = ae.join(this.dirname || "", n);
5765
5770
  }
5766
5771
  /**
5767
5772
  * Get the parent path (example: `'~'`).
@@ -5783,7 +5788,7 @@ class dr {
5783
5788
  * Nothing.
5784
5789
  */
5785
5790
  set dirname(n) {
5786
- At(this.basename, "dirname"), this.path = ae.join(n || "", this.basename);
5791
+ Pt(this.basename, "dirname"), this.path = ae.join(n || "", this.basename);
5787
5792
  }
5788
5793
  /**
5789
5794
  * Get the extname (including dot) (example: `'.js'`).
@@ -5807,7 +5812,7 @@ class dr {
5807
5812
  * Nothing.
5808
5813
  */
5809
5814
  set extname(n) {
5810
- if (an(n, "extname"), At(this.dirname, "extname"), n) {
5815
+ if (on(n, "extname"), Pt(this.dirname, "extname"), n) {
5811
5816
  if (n.codePointAt(0) !== 46)
5812
5817
  throw new Error("`extname` must start with `.`");
5813
5818
  if (n.includes(".", 1))
@@ -5837,7 +5842,7 @@ class dr {
5837
5842
  * Nothing.
5838
5843
  */
5839
5844
  set path(n) {
5840
- Sn(n) && (n = Ga(n)), un(n, "path"), this.path !== n && this.history.push(n);
5845
+ wn(n) && (n = Ja(n)), an(n, "path"), this.path !== n && this.history.push(n);
5841
5846
  }
5842
5847
  /**
5843
5848
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -5861,7 +5866,7 @@ class dr {
5861
5866
  * Nothing.
5862
5867
  */
5863
5868
  set stem(n) {
5864
- un(n, "stem"), an(n, "stem"), this.path = ae.join(this.dirname || "", n + (this.extname || ""));
5869
+ an(n, "stem"), on(n, "stem"), this.path = ae.join(this.dirname || "", n + (this.extname || ""));
5865
5870
  }
5866
5871
  // Normal prototypal methods.
5867
5872
  /**
@@ -6074,24 +6079,24 @@ class dr {
6074
6079
  return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(n || void 0).decode(this.value);
6075
6080
  }
6076
6081
  }
6077
- function an(e, n) {
6082
+ function on(e, n) {
6078
6083
  if (e && e.includes(ae.sep))
6079
6084
  throw new Error(
6080
6085
  "`" + n + "` cannot be a path: did not expect `" + ae.sep + "`"
6081
6086
  );
6082
6087
  }
6083
- function un(e, n) {
6088
+ function an(e, n) {
6084
6089
  if (!e)
6085
6090
  throw new Error("`" + n + "` cannot be empty");
6086
6091
  }
6087
- function At(e, n) {
6092
+ function Pt(e, n) {
6088
6093
  if (!e)
6089
6094
  throw new Error("Setting `" + n + "` requires `path` to be set too");
6090
6095
  }
6091
- function Ja(e) {
6096
+ function eu(e) {
6092
6097
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6093
6098
  }
6094
- const Za = (
6099
+ const nu = (
6095
6100
  /**
6096
6101
  * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
6097
6102
  */
@@ -6118,13 +6123,13 @@ const Za = (
6118
6123
  }
6119
6124
  return l;
6120
6125
  }
6121
- ), eu = {}.hasOwnProperty;
6122
- class Rn extends Za {
6126
+ ), tu = {}.hasOwnProperty;
6127
+ class Fn extends nu {
6123
6128
  /**
6124
6129
  * Create a processor.
6125
6130
  */
6126
6131
  constructor() {
6127
- super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = ja();
6132
+ super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = Ua();
6128
6133
  }
6129
6134
  /**
6130
6135
  * Copy a processor.
@@ -6140,14 +6145,14 @@ class Rn extends Za {
6140
6145
  copy() {
6141
6146
  const n = (
6142
6147
  /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
6143
- new Rn()
6148
+ new Fn()
6144
6149
  );
6145
6150
  let t = -1;
6146
6151
  for (; ++t < this.attachers.length; ) {
6147
6152
  const r = this.attachers[t];
6148
6153
  n.use(...r);
6149
6154
  }
6150
- return n.data(ln(!0, {}, this.namespace)), n;
6155
+ return n.data(rn(!0, {}, this.namespace)), n;
6151
6156
  }
6152
6157
  /**
6153
6158
  * Configure the processor with info available to all plugins.
@@ -6209,7 +6214,7 @@ class Rn extends Za {
6209
6214
  * the entire dataset when getting without key.
6210
6215
  */
6211
6216
  data(n, t) {
6212
- return typeof n == "string" ? arguments.length === 2 ? (pn("data", this.frozen), this.namespace[n] = t, this) : eu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (pn("data", this.frozen), this.namespace = n, this) : this.namespace;
6217
+ return typeof n == "string" ? arguments.length === 2 ? (cn("data", this.frozen), this.namespace[n] = t, this) : tu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (cn("data", this.frozen), this.namespace = n, this) : this.namespace;
6213
6218
  }
6214
6219
  /**
6215
6220
  * Freeze a processor.
@@ -6263,7 +6268,7 @@ class Rn extends Za {
6263
6268
  parse(n) {
6264
6269
  this.freeze();
6265
6270
  const t = Ve(n), r = this.parser || this.Parser;
6266
- return sn("parse", r), r(String(t), t);
6271
+ return un("parse", r), r(String(t), t);
6267
6272
  }
6268
6273
  /**
6269
6274
  * Process the given file as configured on the processor.
@@ -6309,7 +6314,7 @@ class Rn extends Za {
6309
6314
  */
6310
6315
  process(n, t) {
6311
6316
  const r = this;
6312
- return this.freeze(), sn("process", this.parser || this.Parser), cn("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
6317
+ return this.freeze(), un("process", this.parser || this.Parser), sn("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
6313
6318
  function i(l, o) {
6314
6319
  const a = Ve(n), u = (
6315
6320
  /** @type {HeadTree extends undefined ? Node : HeadTree} */
@@ -6324,7 +6329,7 @@ class Rn extends Za {
6324
6329
  /** @type {unknown} */
6325
6330
  f
6326
6331
  ), y = r.stringify(p, d);
6327
- ru(y) ? d.value = y : d.result = y, c(
6332
+ lu(y) ? d.value = y : d.result = y, c(
6328
6333
  s,
6329
6334
  /** @type {VFileWithOutput<CompileResult>} */
6330
6335
  d
@@ -6368,9 +6373,9 @@ class Rn extends Za {
6368
6373
  */
6369
6374
  processSync(n) {
6370
6375
  let t = !1, r;
6371
- return this.freeze(), sn("processSync", this.parser || this.Parser), cn("processSync", this.compiler || this.Compiler), this.process(n, i), Lt("processSync", "process", t), r;
6376
+ return this.freeze(), un("processSync", this.parser || this.Parser), sn("processSync", this.compiler || this.Compiler), this.process(n, i), zt("processSync", "process", t), r;
6372
6377
  function i(l, o) {
6373
- t = !0, wt(l), r = o;
6378
+ t = !0, bt(l), r = o;
6374
6379
  }
6375
6380
  }
6376
6381
  /**
@@ -6412,7 +6417,7 @@ class Rn extends Za {
6412
6417
  * transformed tree.
6413
6418
  */
6414
6419
  run(n, t, r) {
6415
- zt(n), this.freeze();
6420
+ At(n), this.freeze();
6416
6421
  const i = this.transformers;
6417
6422
  return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
6418
6423
  function l(o, a) {
@@ -6446,9 +6451,9 @@ class Rn extends Za {
6446
6451
  */
6447
6452
  runSync(n, t) {
6448
6453
  let r = !1, i;
6449
- return this.run(n, t, l), Lt("runSync", "run", r), i;
6454
+ return this.run(n, t, l), zt("runSync", "run", r), i;
6450
6455
  function l(o, a) {
6451
- wt(o), i = a, r = !0;
6456
+ bt(o), i = a, r = !0;
6452
6457
  }
6453
6458
  }
6454
6459
  /**
@@ -6483,7 +6488,7 @@ class Rn extends Za {
6483
6488
  stringify(n, t) {
6484
6489
  this.freeze();
6485
6490
  const r = Ve(t), i = this.compiler || this.Compiler;
6486
- return cn("stringify", i), zt(n), i(n, r);
6491
+ return sn("stringify", i), At(n), i(n, r);
6487
6492
  }
6488
6493
  /**
6489
6494
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -6544,7 +6549,7 @@ class Rn extends Za {
6544
6549
  */
6545
6550
  use(n, ...t) {
6546
6551
  const r = this.attachers, i = this.namespace;
6547
- if (pn("use", this.frozen), n != null) if (typeof n == "function")
6552
+ if (cn("use", this.frozen), n != null) if (typeof n == "function")
6548
6553
  u(n, t);
6549
6554
  else if (typeof n == "object")
6550
6555
  Array.isArray(n) ? a(n) : o(n);
@@ -6571,7 +6576,7 @@ class Rn extends Za {
6571
6576
  throw new Error(
6572
6577
  "Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
6573
6578
  );
6574
- a(c.plugins), c.settings && (i.settings = ln(!0, i.settings, c.settings));
6579
+ a(c.plugins), c.settings && (i.settings = rn(!0, i.settings, c.settings));
6575
6580
  }
6576
6581
  function a(c) {
6577
6582
  let s = -1;
@@ -6595,49 +6600,49 @@ class Rn extends Za {
6595
6600
  else if (s.length > 0) {
6596
6601
  let [p, ...y] = s;
6597
6602
  const b = r[d][1];
6598
- wn(b) && wn(p) && (p = ln(!0, b, p)), r[d] = [c, p, ...y];
6603
+ bn(b) && bn(p) && (p = rn(!0, b, p)), r[d] = [c, p, ...y];
6599
6604
  }
6600
6605
  }
6601
6606
  }
6602
6607
  }
6603
- const nu = new Rn().freeze();
6604
- function sn(e, n) {
6608
+ const ru = new Fn().freeze();
6609
+ function un(e, n) {
6605
6610
  if (typeof n != "function")
6606
6611
  throw new TypeError("Cannot `" + e + "` without `parser`");
6607
6612
  }
6608
- function cn(e, n) {
6613
+ function sn(e, n) {
6609
6614
  if (typeof n != "function")
6610
6615
  throw new TypeError("Cannot `" + e + "` without `compiler`");
6611
6616
  }
6612
- function pn(e, n) {
6617
+ function cn(e, n) {
6613
6618
  if (n)
6614
6619
  throw new Error(
6615
6620
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
6616
6621
  );
6617
6622
  }
6618
- function zt(e) {
6619
- if (!wn(e) || typeof e.type != "string")
6623
+ function At(e) {
6624
+ if (!bn(e) || typeof e.type != "string")
6620
6625
  throw new TypeError("Expected node, got `" + e + "`");
6621
6626
  }
6622
- function Lt(e, n, t) {
6627
+ function zt(e, n, t) {
6623
6628
  if (!t)
6624
6629
  throw new Error(
6625
6630
  "`" + e + "` finished async. Use `" + n + "` instead"
6626
6631
  );
6627
6632
  }
6628
6633
  function Ve(e) {
6629
- return tu(e) ? e : new dr(e);
6634
+ return iu(e) ? e : new mr(e);
6630
6635
  }
6631
- function tu(e) {
6636
+ function iu(e) {
6632
6637
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
6633
6638
  }
6634
- function ru(e) {
6635
- return typeof e == "string" || iu(e);
6639
+ function lu(e) {
6640
+ return typeof e == "string" || ou(e);
6636
6641
  }
6637
- function iu(e) {
6642
+ function ou(e) {
6638
6643
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6639
6644
  }
6640
- const lu = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Ot = [], vt = { allowDangerousHtml: !0 }, ou = /^(https?|ircs?|mailto|xmpp)$/i, au = [
6645
+ const au = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Lt = [], Ot = { allowDangerousHtml: !0 }, uu = /^(https?|ircs?|mailto|xmpp)$/i, su = [
6641
6646
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
6642
6647
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
6643
6648
  {
@@ -6670,22 +6675,22 @@ const lu = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
6670
6675
  { from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
6671
6676
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
6672
6677
  ];
6673
- function mu(e) {
6674
- const n = uu(e), t = su(e);
6675
- return cu(n.runSync(n.parse(t), t), e);
6678
+ function yu(e) {
6679
+ const n = cu(e), t = pu(e);
6680
+ return fu(n.runSync(n.parse(t), t), e);
6676
6681
  }
6677
- function uu(e) {
6678
- const n = e.rehypePlugins || Ot, t = e.remarkPlugins || Ot, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...vt } : vt;
6679
- return nu().use(qo).use(t).use(Ma, r).use(n);
6682
+ function cu(e) {
6683
+ const n = e.rehypePlugins || Lt, t = e.remarkPlugins || Lt, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Ot } : Ot;
6684
+ return ru().use(Wo).use(t).use(ja, r).use(n);
6680
6685
  }
6681
- function su(e) {
6682
- const n = e.children || "", t = new dr();
6686
+ function pu(e) {
6687
+ const n = e.children || "", t = new mr();
6683
6688
  return typeof n == "string" && (t.value = n), t;
6684
6689
  }
6685
- function cu(e, n) {
6686
- const t = n.allowedElements, r = n.allowElement, i = n.components, l = n.disallowedElements, o = n.skipHtml, a = n.unwrapDisallowed, u = n.urlTransform || pu;
6687
- for (const s of au)
6688
- Object.hasOwn(n, s.from) && ("" + s.from + (s.to ? "use `" + s.to + "` instead" : "remove it") + lu + s.id, void 0);
6690
+ function fu(e, n) {
6691
+ const t = n.allowedElements, r = n.allowElement, i = n.components, l = n.disallowedElements, o = n.skipHtml, a = n.unwrapDisallowed, u = n.urlTransform || hu;
6692
+ for (const s of su)
6693
+ Object.hasOwn(n, s.from) && ("" + s.from + (s.to ? "use `" + s.to + "` instead" : "remove it") + au + s.id, void 0);
6689
6694
  return n.className && (e = {
6690
6695
  type: "element",
6691
6696
  tagName: "div",
@@ -6695,15 +6700,15 @@ function cu(e, n) {
6695
6700
  /** @type {Array<ElementContent>} */
6696
6701
  e.type === "root" ? e.children : [e]
6697
6702
  )
6698
- }), hr(e, c), Si(e, {
6699
- Fragment: Ze.Fragment,
6703
+ }), fr(e, c), Ei(e, {
6704
+ Fragment: Tr,
6700
6705
  // @ts-expect-error
6701
6706
  // React components are allowed to return numbers,
6702
6707
  // but not according to the types in hast-util-to-jsx-runtime
6703
6708
  components: i,
6704
6709
  ignoreInvalidStyle: !0,
6705
- jsx: Ze.jsx,
6706
- jsxs: Ze.jsxs,
6710
+ jsx: Ir,
6711
+ jsxs: Er,
6707
6712
  passKeys: !0,
6708
6713
  passNode: !0
6709
6714
  });
@@ -6712,9 +6717,9 @@ function cu(e, n) {
6712
6717
  return o ? d.children.splice(f, 1) : d.children[f] = { type: "text", value: s.value }, f;
6713
6718
  if (s.type === "element") {
6714
6719
  let p;
6715
- for (p in nn)
6716
- if (Object.hasOwn(nn, p) && Object.hasOwn(s.properties, p)) {
6717
- const y = s.properties[p], b = nn[p];
6720
+ for (p in en)
6721
+ if (Object.hasOwn(en, p) && Object.hasOwn(s.properties, p)) {
6722
+ const y = s.properties[p], b = en[p];
6718
6723
  (b === null || b.includes(s.tagName)) && (s.properties[p] = u(String(y || ""), p, s));
6719
6724
  }
6720
6725
  }
@@ -6725,16 +6730,16 @@ function cu(e, n) {
6725
6730
  }
6726
6731
  }
6727
6732
  }
6728
- function pu(e) {
6733
+ function hu(e) {
6729
6734
  const n = e.indexOf(":"), t = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
6730
6735
  return (
6731
6736
  // If there is no protocol, it’s relative.
6732
6737
  n === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
6733
6738
  i !== -1 && n > i || t !== -1 && n > t || r !== -1 && n > r || // It is a protocol, it should be allowed.
6734
- ou.test(e.slice(0, n)) ? e : ""
6739
+ uu.test(e.slice(0, n)) ? e : ""
6735
6740
  );
6736
6741
  }
6737
6742
  export {
6738
- mu as default,
6739
- pu as defaultUrlTransform
6743
+ yu as default,
6744
+ hu as defaultUrlTransform
6740
6745
  };