@versini/sassysaint 8.4.5 → 8.4.7

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,13 +1,13 @@
1
- var Ar = Object.defineProperty;
2
- var Pr = (e, n, t) => n in e ? Ar(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var ve = (e, n, t) => Pr(e, typeof n != "symbol" ? n + "" : n, t);
4
- import * as tn from "react/jsx-runtime";
5
- import { jsx as te, jsxs as In, Fragment as zr } from "react/jsx-runtime";
6
- import { getDefaultExportFromCjs as vt, ChatContext as Lr, E as Nr, Re as Kn } from "./App.7hpZWt4y.js";
7
- import Tn from "clsx";
8
- import _r, { useState as Ot, useEffect as An, useRef as Oe, useCallback as vr, useContext as Or } from "react";
9
- import { re as Rr, unObfuscate as Mr, obfuscate as Fr, LOCAL_STORAGE_PREFIX as Dr, LOCAL_STORAGE_CHAT_DETAILS as Br, convertCamelCaseToReadable as jr, ROLE_INTERNAL as Hr } from "./index.DzB3nTq_.js";
10
- const Rt = ({
1
+ var zr = Object.defineProperty;
2
+ var Lr = (e, n, t) => n in e ? zr(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var Oe = (e, n, t) => Lr(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import * as ln from "react/jsx-runtime";
5
+ import { jsx as te, jsxs as Pn, Fragment as Nr } from "react/jsx-runtime";
6
+ import { getDefaultExportFromCjs as Rt, ChatContext as _r, E as vr, Re as Xn } from "./App.C-VQczE3.js";
7
+ import zn from "clsx";
8
+ import Mt, { useState as Be, useEffect as Ze, useRef as be, useCallback as Or, useContext as Rr } from "react";
9
+ import { re as Mr, unObfuscate as Fr, obfuscate as Dr, LOCAL_STORAGE_PREFIX as Br, LOCAL_STORAGE_CHAT_DETAILS as jr, convertCamelCaseToReadable as Hr, ROLE_INTERNAL as Vr } from "./index.CguAHSTN.js";
10
+ const Ft = ({
11
11
  children: e,
12
12
  fill: n,
13
13
  viewBox: t,
@@ -18,8 +18,8 @@ const Rt = ({
18
18
  semantic: a = !1,
19
19
  ...s
20
20
  }) => {
21
- const u = Tn(l, r);
22
- return /* @__PURE__ */ In(zr, { children: [
21
+ const u = zn(l, r);
22
+ return /* @__PURE__ */ Pn(Nr, { children: [
23
23
  /* @__PURE__ */ te(
24
24
  "svg",
25
25
  {
@@ -50,14 +50,14 @@ try {
50
50
  });
51
51
  } catch {
52
52
  }
53
- const Vr = ({
53
+ const Ur = ({
54
54
  className: e,
55
55
  viewBox: n,
56
56
  title: t,
57
57
  monotone: r,
58
58
  ...i
59
- }) => /* @__PURE__ */ In(
60
- Rt,
59
+ }) => /* @__PURE__ */ Pn(
60
+ Ft,
61
61
  {
62
62
  defaultViewBox: "0 0 448 512",
63
63
  size: "size-5",
@@ -76,14 +76,14 @@ const Vr = ({
76
76
  /* @__PURE__ */ te("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
77
77
  ]
78
78
  }
79
- ), Ur = ({
79
+ ), qr = ({
80
80
  className: e,
81
81
  viewBox: n,
82
82
  title: t,
83
83
  monotone: r,
84
84
  ...i
85
85
  }) => /* @__PURE__ */ te(
86
- Rt,
86
+ Ft,
87
87
  {
88
88
  defaultViewBox: "0 0 512 512",
89
89
  size: "size-5",
@@ -107,11 +107,11 @@ try {
107
107
  });
108
108
  } catch {
109
109
  }
110
- const Mt = _r.forwardRef(({ copyToClipboard: e, ...n }, t) => {
111
- const [r, i] = Ot(!1), l = () => {
110
+ const Dt = Mt.forwardRef(({ copyToClipboard: e, ...n }, t) => {
111
+ const [r, i] = Be(!1), l = () => {
112
112
  typeof e == "string" && (navigator.clipboard.writeText(e), i(!0)), typeof e == "function" && (navigator.clipboard.writeText(e()), i(!0));
113
113
  };
114
- return An(() => {
114
+ return Ze(() => {
115
115
  let o;
116
116
  return r && (o = window.setTimeout(() => {
117
117
  i(!1);
@@ -119,7 +119,7 @@ const Mt = _r.forwardRef(({ copyToClipboard: e, ...n }, t) => {
119
119
  clearTimeout(o);
120
120
  };
121
121
  }, [r]), /* @__PURE__ */ te(
122
- Rr,
122
+ Mr,
123
123
  {
124
124
  ...n,
125
125
  size: "small",
@@ -127,83 +127,99 @@ const Mt = _r.forwardRef(({ copyToClipboard: e, ...n }, t) => {
127
127
  label: r ? "Copied to clipboard" : "Copy to clipboard",
128
128
  onClick: l,
129
129
  disabled: r,
130
- children: r ? /* @__PURE__ */ te(Vr, { size: "size-3" }) : /* @__PURE__ */ te(Ur, { size: "size-3" })
130
+ children: r ? /* @__PURE__ */ te(Ur, { size: "size-3" }) : /* @__PURE__ */ te(qr, { size: "size-3" })
131
131
  }
132
132
  );
133
133
  });
134
- Mt.displayName = "ButtonCopy";
135
- const Ft = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, zn = 4, Ln = 5, Nn = 6, Dt = 7, Bt = 8, Yn = typeof self == "object" ? self : globalThis, qr = (e, n) => {
134
+ Dt.displayName = "ButtonCopy";
135
+ const $r = 2, Wr = $r * 1e3, on = "", Gr = (e) => e * (2 - e);
136
+ function Kr(e, n = !0) {
137
+ const [t, r] = Be(0), [i, l] = Be(0), [o, a] = Be(e), s = be(0), u = be(0);
138
+ return o !== e && (a(e), l(e.startsWith(o) ? t : 0)), Ze(() => {
139
+ if (!n)
140
+ return;
141
+ const c = e.split(on).length, p = (d) => {
142
+ u.current || (u.current = d);
143
+ const h = d - u.current, w = Math.min(h / Wr, 1), b = Gr(w), P = i + (c - i) * b;
144
+ r(Math.floor(P)), w < 1 && (s.current = requestAnimationFrame(p));
145
+ };
146
+ return u.current = 0, s.current = requestAnimationFrame(p), () => {
147
+ s.current && cancelAnimationFrame(s.current);
148
+ };
149
+ }, [i, e, n]), n ? e.split(on).slice(0, t).join(on) : e;
150
+ }
151
+ const Bt = -1, en = 0, Qe = 1, Je = 2, Ln = 3, Nn = 4, _n = 5, vn = 6, jt = 7, Ht = 8, Qn = typeof self == "object" ? self : globalThis, Yr = (e, n) => {
136
152
  const t = (i, l) => (e.set(l, i), i), r = (i) => {
137
153
  if (e.has(i))
138
154
  return e.get(i);
139
155
  const [l, o] = n[i];
140
156
  switch (l) {
141
- case Je:
142
- case Ft:
157
+ case en:
158
+ case Bt:
143
159
  return t(o, i);
144
- case Xe: {
160
+ case Qe: {
145
161
  const a = t([], i);
146
162
  for (const s of o)
147
163
  a.push(r(s));
148
164
  return a;
149
165
  }
150
- case Qe: {
166
+ case Je: {
151
167
  const a = t({}, i);
152
168
  for (const [s, u] of o)
153
169
  a[r(s)] = r(u);
154
170
  return a;
155
171
  }
156
- case Pn:
172
+ case Ln:
157
173
  return t(new Date(o), i);
158
- case zn: {
174
+ case Nn: {
159
175
  const { source: a, flags: s } = o;
160
176
  return t(new RegExp(a, s), i);
161
177
  }
162
- case Ln: {
178
+ case _n: {
163
179
  const a = t(/* @__PURE__ */ new Map(), i);
164
180
  for (const [s, u] of o)
165
181
  a.set(r(s), r(u));
166
182
  return a;
167
183
  }
168
- case Nn: {
184
+ case vn: {
169
185
  const a = t(/* @__PURE__ */ new Set(), i);
170
186
  for (const s of o)
171
187
  a.add(r(s));
172
188
  return a;
173
189
  }
174
- case Dt: {
190
+ case jt: {
175
191
  const { name: a, message: s } = o;
176
- return t(new Yn[a](s), i);
192
+ return t(new Qn[a](s), i);
177
193
  }
178
- case Bt:
194
+ case Ht:
179
195
  return t(BigInt(o), i);
180
196
  case "BigInt":
181
197
  return t(Object(BigInt(o)), i);
182
198
  }
183
- return t(new Yn[l](o), i);
199
+ return t(new Qn[l](o), i);
184
200
  };
185
201
  return r;
186
- }, Xn = (e) => qr(/* @__PURE__ */ new Map(), e)(0), Ie = "", { toString: $r } = {}, { keys: Wr } = Object, Re = (e) => {
202
+ }, Jn = (e) => Yr(/* @__PURE__ */ new Map(), e)(0), Te = "", { toString: Xr } = {}, { keys: Qr } = Object, Re = (e) => {
187
203
  const n = typeof e;
188
204
  if (n !== "object" || !e)
189
- return [Je, n];
190
- const t = $r.call(e).slice(8, -1);
205
+ return [en, n];
206
+ const t = Xr.call(e).slice(8, -1);
191
207
  switch (t) {
192
208
  case "Array":
193
- return [Xe, Ie];
209
+ return [Qe, Te];
194
210
  case "Object":
195
- return [Qe, Ie];
211
+ return [Je, Te];
196
212
  case "Date":
197
- return [Pn, Ie];
213
+ return [Ln, Te];
198
214
  case "RegExp":
199
- return [zn, Ie];
215
+ return [Nn, Te];
200
216
  case "Map":
201
- return [Ln, Ie];
217
+ return [_n, Te];
202
218
  case "Set":
203
- return [Nn, Ie];
219
+ return [vn, Te];
204
220
  }
205
- return t.includes("Array") ? [Xe, t] : t.includes("Error") ? [Dt, t] : [Qe, t];
206
- }, $e = ([e, n]) => e === Je && (n === "function" || n === "symbol"), Gr = (e, n, t, r) => {
221
+ return t.includes("Array") ? [Qe, t] : t.includes("Error") ? [jt, t] : [Je, t];
222
+ }, We = ([e, n]) => e === en && (n === "function" || n === "symbol"), Jr = (e, n, t, r) => {
207
223
  const i = (o, a) => {
208
224
  const s = r.push(o) - 1;
209
225
  return t.set(a, s), s;
@@ -212,11 +228,11 @@ const Ft = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, zn = 4, Ln = 5, Nn = 6, Dt = 7, B
212
228
  return t.get(o);
213
229
  let [a, s] = Re(o);
214
230
  switch (a) {
215
- case Je: {
231
+ case en: {
216
232
  let c = o;
217
233
  switch (s) {
218
234
  case "bigint":
219
- a = Bt, c = o.toString();
235
+ a = Ht, c = o.toString();
220
236
  break;
221
237
  case "function":
222
238
  case "symbol":
@@ -225,11 +241,11 @@ const Ft = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, zn = 4, Ln = 5, Nn = 6, Dt = 7, B
225
241
  c = null;
226
242
  break;
227
243
  case "undefined":
228
- return i([Ft], o);
244
+ return i([Bt], o);
229
245
  }
230
246
  return i([a, c], o);
231
247
  }
232
- case Xe: {
248
+ case Qe: {
233
249
  if (s)
234
250
  return i([s, [...o]], o);
235
251
  const c = [], p = i([a, c], o);
@@ -237,7 +253,7 @@ const Ft = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, zn = 4, Ln = 5, Nn = 6, Dt = 7, B
237
253
  c.push(l(d));
238
254
  return p;
239
255
  }
240
- case Qe: {
256
+ case Je: {
241
257
  if (s)
242
258
  switch (s) {
243
259
  case "BigInt":
@@ -250,26 +266,26 @@ const Ft = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, zn = 4, Ln = 5, Nn = 6, Dt = 7, B
250
266
  if (n && "toJSON" in o)
251
267
  return l(o.toJSON());
252
268
  const c = [], p = i([a, c], o);
253
- for (const d of Wr(o))
254
- (e || !$e(Re(o[d]))) && c.push([l(d), l(o[d])]);
269
+ for (const d of Qr(o))
270
+ (e || !We(Re(o[d]))) && c.push([l(d), l(o[d])]);
255
271
  return p;
256
272
  }
257
- case Pn:
273
+ case Ln:
258
274
  return i([a, o.toISOString()], o);
259
- case zn: {
275
+ case Nn: {
260
276
  const { source: c, flags: p } = o;
261
277
  return i([a, { source: c, flags: p }], o);
262
278
  }
263
- case Ln: {
279
+ case _n: {
264
280
  const c = [], p = i([a, c], o);
265
281
  for (const [d, h] of o)
266
- (e || !($e(Re(d)) || $e(Re(h)))) && c.push([l(d), l(h)]);
282
+ (e || !(We(Re(d)) || We(Re(h)))) && c.push([l(d), l(h)]);
267
283
  return p;
268
284
  }
269
- case Nn: {
285
+ case vn: {
270
286
  const c = [], p = i([a, c], o);
271
287
  for (const d of o)
272
- (e || !$e(Re(d))) && c.push(l(d));
288
+ (e || !We(Re(d))) && c.push(l(d));
273
289
  return p;
274
290
  }
275
291
  }
@@ -277,13 +293,13 @@ const Ft = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, zn = 4, Ln = 5, Nn = 6, Dt = 7, B
277
293
  return i([a, { name: s, message: u }], o);
278
294
  };
279
295
  return l;
280
- }, Qn = (e, { json: n, lossy: t } = {}) => {
296
+ }, Zn = (e, { json: n, lossy: t } = {}) => {
281
297
  const r = [];
282
- return Gr(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
283
- }, be = typeof structuredClone == "function" ? (
298
+ return Jr(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
299
+ }, we = typeof structuredClone == "function" ? (
284
300
  /* c8 ignore start */
285
- (e, n) => n && ("json" in n || "lossy" in n) ? Xn(Qn(e, n)) : structuredClone(e)
286
- ) : (e, n) => Xn(Qn(e, n)), jt = (
301
+ (e, n) => n && ("json" in n || "lossy" in n) ? Jn(Zn(e, n)) : structuredClone(e)
302
+ ) : (e, n) => Jn(Zn(e, n)), Vt = (
287
303
  // Note: overloads in JSDoc can’t yet use different `@template`s.
288
304
  /**
289
305
  * @type {(
@@ -299,22 +315,22 @@ const Ft = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, zn = 4, Ln = 5, Nn = 6, Dt = 7, B
299
315
  */
300
316
  function(e) {
301
317
  if (e == null)
302
- return Xr;
318
+ return ni;
303
319
  if (typeof e == "string")
304
- return Yr(e);
320
+ return ei(e);
305
321
  if (typeof e == "object")
306
- return Kr(e);
322
+ return Zr(e);
307
323
  if (typeof e == "function")
308
- return _n(e);
324
+ return On(e);
309
325
  throw new Error("Expected function, string, or array as `test`");
310
326
  }
311
327
  );
312
- function Kr(e) {
328
+ function Zr(e) {
313
329
  const n = [];
314
330
  let t = -1;
315
331
  for (; ++t < e.length; )
316
- n[t] = jt(e[t]);
317
- return _n(r);
332
+ n[t] = Vt(e[t]);
333
+ return On(r);
318
334
  function r(...i) {
319
335
  let l = -1;
320
336
  for (; ++l < n.length; )
@@ -322,16 +338,16 @@ function Kr(e) {
322
338
  return !1;
323
339
  }
324
340
  }
325
- function Yr(e) {
326
- return _n(n);
341
+ function ei(e) {
342
+ return On(n);
327
343
  function n(t) {
328
344
  return t.tagName === e;
329
345
  }
330
346
  }
331
- function _n(e) {
347
+ function On(e) {
332
348
  return n;
333
349
  function n(t, r, i) {
334
- return !!(Qr(t) && e.call(
350
+ return !!(ti(t) && e.call(
335
351
  this,
336
352
  t,
337
353
  typeof r == "number" ? r : void 0,
@@ -339,26 +355,26 @@ function _n(e) {
339
355
  ));
340
356
  }
341
357
  }
342
- function Xr(e) {
358
+ function ni(e) {
343
359
  return !!(e && typeof e == "object" && "type" in e && e.type === "element" && "tagName" in e && typeof e.tagName == "string");
344
360
  }
345
- function Qr(e) {
361
+ function ti(e) {
346
362
  return e !== null && typeof e == "object" && "type" in e && "tagName" in e;
347
363
  }
348
- const Jr = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, Zr = /^[a-zA-Z]:\\/;
349
- function ei(e) {
364
+ const ri = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, ii = /^[a-zA-Z]:\\/;
365
+ function li(e) {
350
366
  if (typeof e != "string")
351
367
  throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
352
- return Zr.test(e) ? !1 : Jr.test(e);
368
+ return ii.test(e) ? !1 : ri.test(e);
353
369
  }
354
- function ni(e) {
370
+ function oi(e) {
355
371
  const n = String(e || "").trim();
356
372
  return n ? n.split(/[ \t\n\r\f]+/g) : [];
357
373
  }
358
- function ti(e) {
374
+ function ai(e) {
359
375
  return e.join(" ").trim();
360
376
  }
361
- const Ht = (
377
+ const Ut = (
362
378
  // Note: overloads in JSDoc can’t yet use different `@template`s.
363
379
  /**
364
380
  * @type {(
@@ -375,22 +391,22 @@ const Ht = (
375
391
  */
376
392
  function(e) {
377
393
  if (e == null)
378
- return oi;
394
+ return pi;
379
395
  if (typeof e == "function")
380
- return Ze(e);
396
+ return nn(e);
381
397
  if (typeof e == "object")
382
- return Array.isArray(e) ? ri(e) : ii(e);
398
+ return Array.isArray(e) ? ui(e) : si(e);
383
399
  if (typeof e == "string")
384
- return li(e);
400
+ return ci(e);
385
401
  throw new Error("Expected function, string, or object as test");
386
402
  }
387
403
  );
388
- function ri(e) {
404
+ function ui(e) {
389
405
  const n = [];
390
406
  let t = -1;
391
407
  for (; ++t < e.length; )
392
- n[t] = Ht(e[t]);
393
- return Ze(r);
408
+ n[t] = Ut(e[t]);
409
+ return nn(r);
394
410
  function r(...i) {
395
411
  let l = -1;
396
412
  for (; ++l < n.length; )
@@ -398,12 +414,12 @@ function ri(e) {
398
414
  return !1;
399
415
  }
400
416
  }
401
- function ii(e) {
417
+ function si(e) {
402
418
  const n = (
403
419
  /** @type {Record<string, unknown>} */
404
420
  e
405
421
  );
406
- return Ze(t);
422
+ return nn(t);
407
423
  function t(r) {
408
424
  const i = (
409
425
  /** @type {Record<string, unknown>} */
@@ -416,16 +432,16 @@ function ii(e) {
416
432
  return !0;
417
433
  }
418
434
  }
419
- function li(e) {
420
- return Ze(n);
435
+ function ci(e) {
436
+ return nn(n);
421
437
  function n(t) {
422
438
  return t && t.type === e;
423
439
  }
424
440
  }
425
- function Ze(e) {
441
+ function nn(e) {
426
442
  return n;
427
443
  function n(t, r, i) {
428
- return !!(ai(t) && e.call(
444
+ return !!(hi(t) && e.call(
429
445
  this,
430
446
  t,
431
447
  typeof r == "number" ? r : void 0,
@@ -433,17 +449,17 @@ function Ze(e) {
433
449
  ));
434
450
  }
435
451
  }
436
- function oi() {
452
+ function pi() {
437
453
  return !0;
438
454
  }
439
- function ai(e) {
455
+ function hi(e) {
440
456
  return e !== null && typeof e == "object" && "type" in e;
441
457
  }
442
- const Vt = [], ui = !0, Jn = !1, si = "skip";
443
- function ci(e, n, t, r) {
458
+ const qt = [], fi = !0, et = !1, mi = "skip";
459
+ function di(e, n, t, r) {
444
460
  let i;
445
461
  typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
446
- const l = Ht(i), o = r ? -1 : 1;
462
+ const l = Ut(i), o = r ? -1 : 1;
447
463
  a(e, void 0, [])();
448
464
  function a(s, u, c) {
449
465
  const p = (
@@ -464,18 +480,18 @@ function ci(e, n, t, r) {
464
480
  }
465
481
  return d;
466
482
  function d() {
467
- let h = Vt, w, b, z;
468
- if ((!n || l(s, u, c[c.length - 1] || void 0)) && (h = pi(t(s, c)), h[0] === Jn))
483
+ let h = qt, w, b, P;
484
+ if ((!n || l(s, u, c[c.length - 1] || void 0)) && (h = gi(t(s, c)), h[0] === et))
469
485
  return h;
470
486
  if ("children" in s && s.children) {
471
487
  const k = (
472
488
  /** @type {UnistParent} */
473
489
  s
474
490
  );
475
- if (k.children && h[0] !== si)
476
- for (b = (r ? k.children.length : -1) + o, z = c.concat(k); b > -1 && b < k.children.length; ) {
477
- const P = k.children[b];
478
- if (w = a(P, b, z)(), w[0] === Jn)
491
+ if (k.children && h[0] !== mi)
492
+ for (b = (r ? k.children.length : -1) + o, P = c.concat(k); b > -1 && b < k.children.length; ) {
493
+ const z = k.children[b];
494
+ if (w = a(z, b, P)(), w[0] === et)
479
495
  return w;
480
496
  b = typeof w[1] == "number" ? w[1] : b + o;
481
497
  }
@@ -484,33 +500,33 @@ function ci(e, n, t, r) {
484
500
  }
485
501
  }
486
502
  }
487
- function pi(e) {
488
- return Array.isArray(e) ? e : typeof e == "number" ? [ui, e] : e == null ? Vt : [e];
503
+ function gi(e) {
504
+ return Array.isArray(e) ? e : typeof e == "number" ? [fi, e] : e == null ? qt : [e];
489
505
  }
490
- function en(e, n, t, r) {
506
+ function tn(e, n, t, r) {
491
507
  let i, l, o;
492
- typeof n == "function" && typeof t != "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r), ci(e, l, a, i);
508
+ typeof n == "function" && typeof t != "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r), di(e, l, a, i);
493
509
  function a(s, u) {
494
510
  const c = u[u.length - 1], p = c ? c.children.indexOf(s) : void 0;
495
511
  return o(s, p, c);
496
512
  }
497
513
  }
498
- const hi = ["http", "https"], fi = ["nofollow"], mi = {};
499
- function di(e) {
500
- const n = e || mi, t = n.protocols || hi, r = jt(n.test);
514
+ const yi = ["http", "https"], xi = ["nofollow"], ki = {};
515
+ function bi(e) {
516
+ const n = e || ki, t = n.protocols || yi, r = Vt(n.test);
501
517
  return function(i) {
502
- en(i, "element", function(l, o, a) {
518
+ tn(i, "element", function(l, o, a) {
503
519
  if (l.tagName === "a" && typeof l.properties.href == "string" && r(l, o, a)) {
504
520
  const s = l.properties.href;
505
- if (ei(s) ? t.includes(s.slice(0, s.indexOf(":"))) : s.startsWith("//")) {
506
- const u = Me(n.content, l), c = u && !Array.isArray(u) ? [u] : u, p = Me(n.rel, l) || fi, d = typeof p == "string" ? ni(p) : p, h = Me(n.target, l), w = Me(n.properties, l);
507
- if (w && Object.assign(l.properties, be(w)), d.length > 0 && (l.properties.rel = [...d]), h && (l.properties.target = h), c) {
521
+ if (li(s) ? t.includes(s.slice(0, s.indexOf(":"))) : s.startsWith("//")) {
522
+ const u = Me(n.content, l), c = u && !Array.isArray(u) ? [u] : u, p = Me(n.rel, l) || xi, d = typeof p == "string" ? oi(p) : p, h = Me(n.target, l), w = Me(n.properties, l);
523
+ if (w && Object.assign(l.properties, we(w)), d.length > 0 && (l.properties.rel = [...d]), h && (l.properties.target = h), c) {
508
524
  const b = Me(n.contentProperties, l) || {};
509
525
  l.children.push({
510
526
  type: "element",
511
527
  tagName: "span",
512
- properties: be(b),
513
- children: be(c)
528
+ properties: we(b),
529
+ children: we(c)
514
530
  });
515
531
  }
516
532
  }
@@ -521,7 +537,7 @@ function di(e) {
521
537
  function Me(e, n) {
522
538
  return typeof e == "function" ? e(n) : e;
523
539
  }
524
- function vu(e) {
540
+ function Du(e) {
525
541
  const n = [], t = String(e || "");
526
542
  let r = t.indexOf(","), i = 0, l = !1;
527
543
  for (; !l; ) {
@@ -531,24 +547,24 @@ function vu(e) {
531
547
  }
532
548
  return n;
533
549
  }
534
- function gi(e, n) {
550
+ function wi(e, n) {
535
551
  const t = {};
536
552
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
537
553
  (t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
538
554
  ).trim();
539
555
  }
540
- const yi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, xi = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, ki = {};
541
- function Zn(e, n) {
542
- return (ki.jsx ? xi : yi).test(e);
556
+ const Si = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ci = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ei = {};
557
+ function nt(e, n) {
558
+ return (Ei.jsx ? Ci : Si).test(e);
543
559
  }
544
- const bi = /[ \t\n\f\r]/g;
545
- function wi(e) {
546
- return typeof e == "object" ? e.type === "text" ? et(e.value) : !1 : et(e);
560
+ const Ii = /[ \t\n\f\r]/g;
561
+ function Ti(e) {
562
+ return typeof e == "object" ? e.type === "text" ? tt(e.value) : !1 : tt(e);
547
563
  }
548
- function et(e) {
549
- return e.replace(bi, "") === "";
564
+ function tt(e) {
565
+ return e.replace(Ii, "") === "";
550
566
  }
551
- class Ve {
567
+ class Ue {
552
568
  /**
553
569
  * @param {SchemaType['property']} property
554
570
  * Property.
@@ -563,16 +579,16 @@ class Ve {
563
579
  this.normal = t, this.property = n, r && (this.space = r);
564
580
  }
565
581
  }
566
- Ve.prototype.normal = {};
567
- Ve.prototype.property = {};
568
- Ve.prototype.space = void 0;
569
- function Ut(e, n) {
582
+ Ue.prototype.normal = {};
583
+ Ue.prototype.property = {};
584
+ Ue.prototype.space = void 0;
585
+ function $t(e, n) {
570
586
  const t = {}, r = {};
571
587
  for (const i of e)
572
588
  Object.assign(t, i.property), Object.assign(r, i.normal);
573
- return new Ve(t, r, n);
589
+ return new Ue(t, r, n);
574
590
  }
575
- function gn(e) {
591
+ function kn(e) {
576
592
  return e.toLowerCase();
577
593
  }
578
594
  class J {
@@ -600,16 +616,16 @@ J.prototype.overloadedBoolean = !1;
600
616
  J.prototype.property = "";
601
617
  J.prototype.spaceSeparated = !1;
602
618
  J.prototype.space = void 0;
603
- let Si = 0;
604
- const v = we(), $ = we(), qt = we(), x = we(), V = we(), Te = we(), ee = we();
605
- function we() {
606
- return 2 ** ++Si;
619
+ let Ai = 0;
620
+ const v = Se(), $ = Se(), Wt = Se(), x = Se(), V = Se(), Ae = Se(), ee = Se();
621
+ function Se() {
622
+ return 2 ** ++Ai;
607
623
  }
608
- const yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: v, booleanish: $, commaOrSpaceSeparated: ee, commaSeparated: Te, number: x, overloadedBoolean: qt, spaceSeparated: V }, Symbol.toStringTag, { value: "Module" })), rn = (
624
+ const bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: v, booleanish: $, commaOrSpaceSeparated: ee, commaSeparated: Ae, number: x, overloadedBoolean: Wt, spaceSeparated: V }, Symbol.toStringTag, { value: "Module" })), an = (
609
625
  /** @type {ReadonlyArray<keyof typeof types>} */
610
- Object.keys(yn)
626
+ Object.keys(bn)
611
627
  );
612
- class vn extends J {
628
+ class Rn extends J {
613
629
  /**
614
630
  * @constructor
615
631
  * @param {string} property
@@ -625,31 +641,31 @@ class vn extends J {
625
641
  */
626
642
  constructor(n, t, r, i) {
627
643
  let l = -1;
628
- if (super(n, t), nt(this, "space", i), typeof r == "number")
629
- for (; ++l < rn.length; ) {
630
- const o = rn[l];
631
- nt(this, rn[l], (r & yn[o]) === yn[o]);
644
+ if (super(n, t), rt(this, "space", i), typeof r == "number")
645
+ for (; ++l < an.length; ) {
646
+ const o = an[l];
647
+ rt(this, an[l], (r & bn[o]) === bn[o]);
632
648
  }
633
649
  }
634
650
  }
635
- vn.prototype.defined = !0;
636
- function nt(e, n, t) {
651
+ Rn.prototype.defined = !0;
652
+ function rt(e, n, t) {
637
653
  t && (e[n] = t);
638
654
  }
639
- function Pe(e) {
655
+ function ze(e) {
640
656
  const n = {}, t = {};
641
657
  for (const [r, i] of Object.entries(e.properties)) {
642
- const l = new vn(
658
+ const l = new Rn(
643
659
  r,
644
660
  e.transform(e.attributes || {}, r),
645
661
  i,
646
662
  e.space
647
663
  );
648
- e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[gn(r)] = r, t[gn(l.attribute)] = r;
664
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[kn(r)] = r, t[kn(l.attribute)] = r;
649
665
  }
650
- return new Ve(n, t, e.space);
666
+ return new Ue(n, t, e.space);
651
667
  }
652
- const $t = Pe({
668
+ const Gt = ze({
653
669
  properties: {
654
670
  ariaActiveDescendant: null,
655
671
  ariaAtomic: $,
@@ -705,13 +721,13 @@ const $t = Pe({
705
721
  return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
706
722
  }
707
723
  });
708
- function Wt(e, n) {
724
+ function Kt(e, n) {
709
725
  return n in e ? e[n] : n;
710
726
  }
711
- function Gt(e, n) {
712
- return Wt(e, n.toLowerCase());
727
+ function Yt(e, n) {
728
+ return Kt(e, n.toLowerCase());
713
729
  }
714
- const Ci = Pe({
730
+ const Pi = ze({
715
731
  attributes: {
716
732
  acceptcharset: "accept-charset",
717
733
  classname: "class",
@@ -722,7 +738,7 @@ const Ci = Pe({
722
738
  properties: {
723
739
  // Standard Properties.
724
740
  abbr: null,
725
- accept: Te,
741
+ accept: Ae,
726
742
  acceptCharset: V,
727
743
  accessKey: V,
728
744
  action: null,
@@ -749,7 +765,7 @@ const Ci = Pe({
749
765
  contentEditable: $,
750
766
  controls: v,
751
767
  controlsList: V,
752
- coords: x | Te,
768
+ coords: x | Ae,
753
769
  crossOrigin: null,
754
770
  data: null,
755
771
  dateTime: null,
@@ -759,7 +775,7 @@ const Ci = Pe({
759
775
  dir: null,
760
776
  dirName: null,
761
777
  disabled: v,
762
- download: qt,
778
+ download: Wt,
763
779
  draggable: $,
764
780
  encType: null,
765
781
  enterKeyHint: null,
@@ -1071,8 +1087,8 @@ const Ci = Pe({
1071
1087
  unselectable: null
1072
1088
  },
1073
1089
  space: "html",
1074
- transform: Gt
1075
- }), Ei = Pe({
1090
+ transform: Yt
1091
+ }), zi = ze({
1076
1092
  attributes: {
1077
1093
  accentHeight: "accent-height",
1078
1094
  alignmentBaseline: "alignment-baseline",
@@ -1331,9 +1347,9 @@ const Ci = Pe({
1331
1347
  from: null,
1332
1348
  fx: null,
1333
1349
  fy: null,
1334
- g1: Te,
1335
- g2: Te,
1336
- glyphName: Te,
1350
+ g1: Ae,
1351
+ g2: Ae,
1352
+ glyphName: Ae,
1337
1353
  glyphOrientationHorizontal: null,
1338
1354
  glyphOrientationVertical: null,
1339
1355
  glyphRef: null,
@@ -1630,8 +1646,8 @@ const Ci = Pe({
1630
1646
  zoomAndPan: null
1631
1647
  },
1632
1648
  space: "svg",
1633
- transform: Wt
1634
- }), Kt = Pe({
1649
+ transform: Kt
1650
+ }), Xt = ze({
1635
1651
  properties: {
1636
1652
  xLinkActuate: null,
1637
1653
  xLinkArcRole: null,
@@ -1645,18 +1661,18 @@ const Ci = Pe({
1645
1661
  transform(e, n) {
1646
1662
  return "xlink:" + n.slice(5).toLowerCase();
1647
1663
  }
1648
- }), Yt = Pe({
1664
+ }), Qt = ze({
1649
1665
  attributes: { xmlnsxlink: "xmlns:xlink" },
1650
1666
  properties: { xmlnsXLink: null, xmlns: null },
1651
1667
  space: "xmlns",
1652
- transform: Gt
1653
- }), Xt = Pe({
1668
+ transform: Yt
1669
+ }), Jt = ze({
1654
1670
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1655
1671
  space: "xml",
1656
1672
  transform(e, n) {
1657
1673
  return "xml:" + n.slice(3).toLowerCase();
1658
1674
  }
1659
- }), Ii = {
1675
+ }), Li = {
1660
1676
  classId: "classID",
1661
1677
  dataType: "datatype",
1662
1678
  itemId: "itemID",
@@ -1674,67 +1690,67 @@ const Ci = Pe({
1674
1690
  xLinkTitle: "xlinkTitle",
1675
1691
  xLinkType: "xlinkType",
1676
1692
  xmlnsXLink: "xmlnsXlink"
1677
- }, Ti = /[A-Z]/g, tt = /-[a-z]/g, Ai = /^data[-\w.:]+$/i;
1678
- function Pi(e, n) {
1679
- const t = gn(n);
1693
+ }, Ni = /[A-Z]/g, it = /-[a-z]/g, _i = /^data[-\w.:]+$/i;
1694
+ function vi(e, n) {
1695
+ const t = kn(n);
1680
1696
  let r = n, i = J;
1681
1697
  if (t in e.normal)
1682
1698
  return e.property[e.normal[t]];
1683
- if (t.length > 4 && t.slice(0, 4) === "data" && Ai.test(n)) {
1699
+ if (t.length > 4 && t.slice(0, 4) === "data" && _i.test(n)) {
1684
1700
  if (n.charAt(4) === "-") {
1685
- const l = n.slice(5).replace(tt, Li);
1701
+ const l = n.slice(5).replace(it, Ri);
1686
1702
  r = "data" + l.charAt(0).toUpperCase() + l.slice(1);
1687
1703
  } else {
1688
1704
  const l = n.slice(4);
1689
- if (!tt.test(l)) {
1690
- let o = l.replace(Ti, zi);
1705
+ if (!it.test(l)) {
1706
+ let o = l.replace(Ni, Oi);
1691
1707
  o.charAt(0) !== "-" && (o = "-" + o), n = "data" + o;
1692
1708
  }
1693
1709
  }
1694
- i = vn;
1710
+ i = Rn;
1695
1711
  }
1696
1712
  return new i(r, n);
1697
1713
  }
1698
- function zi(e) {
1714
+ function Oi(e) {
1699
1715
  return "-" + e.toLowerCase();
1700
1716
  }
1701
- function Li(e) {
1717
+ function Ri(e) {
1702
1718
  return e.charAt(1).toUpperCase();
1703
1719
  }
1704
- const Ni = Ut([$t, Ci, Kt, Yt, Xt], "html"), On = Ut([$t, Ei, Kt, Yt, Xt], "svg");
1705
- var Fe = {}, ln, rt;
1706
- function _i() {
1707
- if (rt) return ln;
1708
- rt = 1;
1720
+ const Mi = $t([Gt, Pi, Xt, Qt, Jt], "html"), Mn = $t([Gt, zi, Xt, Qt, Jt], "svg");
1721
+ var Fe = {}, un, lt;
1722
+ function Fi() {
1723
+ if (lt) return un;
1724
+ lt = 1;
1709
1725
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, o = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
1710
1726
  `, u = "/", c = "*", p = "", d = "comment", h = "declaration";
1711
- ln = function(b, z) {
1727
+ un = function(b, P) {
1712
1728
  if (typeof b != "string")
1713
1729
  throw new TypeError("First argument must be a string");
1714
1730
  if (!b) return [];
1715
- z = z || {};
1716
- var k = 1, P = 1;
1731
+ P = P || {};
1732
+ var k = 1, z = 1;
1717
1733
  function C(T) {
1718
1734
  var E = T.match(n);
1719
1735
  E && (k += E.length);
1720
1736
  var N = T.lastIndexOf(s);
1721
- P = ~N ? T.length - N : P + T.length;
1737
+ z = ~N ? T.length - N : z + T.length;
1722
1738
  }
1723
1739
  function B() {
1724
- var T = { line: k, column: P };
1740
+ var T = { line: k, column: z };
1725
1741
  return function(E) {
1726
1742
  return E.position = new H(T), q(), E;
1727
1743
  };
1728
1744
  }
1729
1745
  function H(T) {
1730
- this.start = T, this.end = { line: k, column: P }, this.source = z.source;
1746
+ this.start = T, this.end = { line: k, column: z }, this.source = P.source;
1731
1747
  }
1732
1748
  H.prototype.content = b;
1733
1749
  function y(T) {
1734
1750
  var E = new Error(
1735
- z.source + ":" + k + ":" + P + ": " + T
1751
+ P.source + ":" + k + ":" + z + ": " + T
1736
1752
  );
1737
- if (E.reason = T, E.filename = z.source, E.line = k, E.column = P, E.source = b, !z.silent) throw E;
1753
+ if (E.reason = T, E.filename = P.source, E.line = k, E.column = z, E.source = b, !P.silent) throw E;
1738
1754
  }
1739
1755
  function R(T) {
1740
1756
  var E = T.exec(b);
@@ -1760,7 +1776,7 @@ function _i() {
1760
1776
  if (E += 2, p === b.charAt(E - 1))
1761
1777
  return y("End of comment missing");
1762
1778
  var N = b.slice(2, E - 2);
1763
- return P += 2, C(N), b = b.slice(E), P += 2, T({
1779
+ return z += 2, C(N), b = b.slice(E), z += 2, T({
1764
1780
  type: d,
1765
1781
  comment: N
1766
1782
  });
@@ -1790,17 +1806,17 @@ function _i() {
1790
1806
  function w(b) {
1791
1807
  return b ? b.replace(a, p) : p;
1792
1808
  }
1793
- return ln;
1809
+ return un;
1794
1810
  }
1795
- var it;
1796
- function vi() {
1797
- if (it) return Fe;
1798
- it = 1;
1811
+ var ot;
1812
+ function Di() {
1813
+ if (ot) return Fe;
1814
+ ot = 1;
1799
1815
  var e = Fe.__importDefault || function(r) {
1800
1816
  return r && r.__esModule ? r : { default: r };
1801
1817
  };
1802
1818
  Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.default = t;
1803
- var n = e(/* @__PURE__ */ _i());
1819
+ var n = e(/* @__PURE__ */ Fi());
1804
1820
  function t(r, i) {
1805
1821
  var l = null;
1806
1822
  if (!r || typeof r != "string")
@@ -1815,9 +1831,9 @@ function vi() {
1815
1831
  }
1816
1832
  return Fe;
1817
1833
  }
1818
- var Oi = /* @__PURE__ */ vi();
1819
- const lt = /* @__PURE__ */ vt(Oi), Ri = lt.default || lt, Qt = Jt("end"), Rn = Jt("start");
1820
- function Jt(e) {
1834
+ var Bi = /* @__PURE__ */ Di();
1835
+ const at = /* @__PURE__ */ Rt(Bi), ji = at.default || at, Zt = er("end"), Fn = er("start");
1836
+ function er(e) {
1821
1837
  return n;
1822
1838
  function n(t) {
1823
1839
  const r = t && t.position && t.position[e] || {};
@@ -1829,21 +1845,21 @@ function Jt(e) {
1829
1845
  };
1830
1846
  }
1831
1847
  }
1832
- function Mi(e) {
1833
- const n = Rn(e), t = Qt(e);
1848
+ function Hi(e) {
1849
+ const n = Fn(e), t = Zt(e);
1834
1850
  if (n && t)
1835
1851
  return { start: n, end: t };
1836
1852
  }
1837
- function Be(e) {
1838
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? ot(e.position) : "start" in e || "end" in e ? ot(e) : "line" in e || "column" in e ? xn(e) : "";
1853
+ function je(e) {
1854
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? ut(e.position) : "start" in e || "end" in e ? ut(e) : "line" in e || "column" in e ? wn(e) : "";
1839
1855
  }
1840
- function xn(e) {
1841
- return at(e && e.line) + ":" + at(e && e.column);
1856
+ function wn(e) {
1857
+ return st(e && e.line) + ":" + st(e && e.column);
1842
1858
  }
1843
- function ot(e) {
1844
- return xn(e && e.start) + "-" + xn(e && e.end);
1859
+ function ut(e) {
1860
+ return wn(e && e.start) + "-" + wn(e && e.end);
1845
1861
  }
1846
- function at(e) {
1862
+ function st(e) {
1847
1863
  return e && typeof e == "number" ? e : 1;
1848
1864
  }
1849
1865
  class Y extends Error {
@@ -1917,7 +1933,7 @@ class Y extends Error {
1917
1933
  s && (l.place = s.position);
1918
1934
  }
1919
1935
  const a = l.place && "start" in l.place ? l.place.start : l.place;
1920
- this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.message = i, this.line = a ? a.line : void 0, this.name = Be(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 : "";
1936
+ this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.message = i, this.line = a ? a.line : void 0, this.name = je(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 : "";
1921
1937
  }
1922
1938
  }
1923
1939
  Y.prototype.file = "";
@@ -1933,8 +1949,8 @@ Y.prototype.fatal = void 0;
1933
1949
  Y.prototype.place = void 0;
1934
1950
  Y.prototype.ruleId = void 0;
1935
1951
  Y.prototype.source = void 0;
1936
- const Mn = {}.hasOwnProperty, Fi = /* @__PURE__ */ new Map(), Di = /[A-Z]/g, Bi = /-([a-z])/g, ji = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Hi = /* @__PURE__ */ new Set(["td", "th"]), Zt = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1937
- function Vi(e, n) {
1952
+ const Dn = {}.hasOwnProperty, Vi = /* @__PURE__ */ new Map(), Ui = /[A-Z]/g, qi = /-([a-z])/g, $i = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Wi = /* @__PURE__ */ new Set(["td", "th"]), nr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1953
+ function Gi(e, n) {
1938
1954
  if (!n || n.Fragment === void 0)
1939
1955
  throw new TypeError("Expected `Fragment` in options");
1940
1956
  const t = n.filePath || void 0;
@@ -1944,13 +1960,13 @@ function Vi(e, n) {
1944
1960
  throw new TypeError(
1945
1961
  "Expected `jsxDEV` in options when `development: true`"
1946
1962
  );
1947
- r = Xi(t, n.jsxDEV);
1963
+ r = nl(t, n.jsxDEV);
1948
1964
  } else {
1949
1965
  if (typeof n.jsx != "function")
1950
1966
  throw new TypeError("Expected `jsx` in production options");
1951
1967
  if (typeof n.jsxs != "function")
1952
1968
  throw new TypeError("Expected `jsxs` in production options");
1953
- r = Yi(t, n.jsx, n.jsxs);
1969
+ r = el(t, n.jsx, n.jsxs);
1954
1970
  }
1955
1971
  const i = {
1956
1972
  Fragment: n.Fragment,
@@ -1963,10 +1979,10 @@ function Vi(e, n) {
1963
1979
  ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
1964
1980
  passKeys: n.passKeys !== !1,
1965
1981
  passNode: n.passNode || !1,
1966
- schema: n.space === "svg" ? On : Ni,
1982
+ schema: n.space === "svg" ? Mn : Mi,
1967
1983
  stylePropertyNameCase: n.stylePropertyNameCase || "dom",
1968
1984
  tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
1969
- }, l = er(i, e, void 0);
1985
+ }, l = tr(i, e, void 0);
1970
1986
  return l && typeof l != "string" ? l : i.create(
1971
1987
  e,
1972
1988
  i.Fragment,
@@ -1974,31 +1990,31 @@ function Vi(e, n) {
1974
1990
  void 0
1975
1991
  );
1976
1992
  }
1977
- function er(e, n, t) {
1993
+ function tr(e, n, t) {
1978
1994
  if (n.type === "element")
1979
- return Ui(e, n, t);
1995
+ return Ki(e, n, t);
1980
1996
  if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
1981
- return qi(e, n);
1997
+ return Yi(e, n);
1982
1998
  if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
1983
- return Wi(e, n, t);
1999
+ return Qi(e, n, t);
1984
2000
  if (n.type === "mdxjsEsm")
1985
- return $i(e, n);
2001
+ return Xi(e, n);
1986
2002
  if (n.type === "root")
1987
- return Gi(e, n, t);
2003
+ return Ji(e, n, t);
1988
2004
  if (n.type === "text")
1989
- return Ki(e, n);
2005
+ return Zi(e, n);
1990
2006
  }
1991
- function Ui(e, n, t) {
2007
+ function Ki(e, n, t) {
1992
2008
  const r = e.schema;
1993
2009
  let i = r;
1994
- n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = On, e.schema = i), e.ancestors.push(n);
1995
- const l = tr(e, n.tagName, !1), o = Qi(e, n);
1996
- let a = Dn(e, n);
1997
- return ji.has(n.tagName) && (a = a.filter(function(s) {
1998
- return typeof s == "string" ? !wi(s) : !0;
1999
- })), nr(e, o, l, n), Fn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
2000
- }
2001
- function qi(e, n) {
2010
+ n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Mn, e.schema = i), e.ancestors.push(n);
2011
+ const l = ir(e, n.tagName, !1), o = tl(e, n);
2012
+ let a = jn(e, n);
2013
+ return $i.has(n.tagName) && (a = a.filter(function(s) {
2014
+ return typeof s == "string" ? !Ti(s) : !0;
2015
+ })), rr(e, o, l, n), Bn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
2016
+ }
2017
+ function Yi(e, n) {
2002
2018
  if (n.data && n.data.estree && e.evaluater) {
2003
2019
  const r = n.data.estree.body[0];
2004
2020
  return (
@@ -2006,50 +2022,50 @@ function qi(e, n) {
2006
2022
  e.evaluater.evaluateExpression(r.expression)
2007
2023
  );
2008
2024
  }
2009
- He(e, n.position);
2025
+ Ve(e, n.position);
2010
2026
  }
2011
- function $i(e, n) {
2027
+ function Xi(e, n) {
2012
2028
  if (n.data && n.data.estree && e.evaluater)
2013
2029
  return (
2014
2030
  /** @type {Child | undefined} */
2015
2031
  e.evaluater.evaluateProgram(n.data.estree)
2016
2032
  );
2017
- He(e, n.position);
2033
+ Ve(e, n.position);
2018
2034
  }
2019
- function Wi(e, n, t) {
2035
+ function Qi(e, n, t) {
2020
2036
  const r = e.schema;
2021
2037
  let i = r;
2022
- n.name === "svg" && r.space === "html" && (i = On, e.schema = i), e.ancestors.push(n);
2023
- const l = n.name === null ? e.Fragment : tr(e, n.name, !0), o = Ji(e, n), a = Dn(e, n);
2024
- return nr(e, o, l, n), Fn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
2038
+ n.name === "svg" && r.space === "html" && (i = Mn, e.schema = i), e.ancestors.push(n);
2039
+ const l = n.name === null ? e.Fragment : ir(e, n.name, !0), o = rl(e, n), a = jn(e, n);
2040
+ return rr(e, o, l, n), Bn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
2025
2041
  }
2026
- function Gi(e, n, t) {
2042
+ function Ji(e, n, t) {
2027
2043
  const r = {};
2028
- return Fn(r, Dn(e, n)), e.create(n, e.Fragment, r, t);
2044
+ return Bn(r, jn(e, n)), e.create(n, e.Fragment, r, t);
2029
2045
  }
2030
- function Ki(e, n) {
2046
+ function Zi(e, n) {
2031
2047
  return n.value;
2032
2048
  }
2033
- function nr(e, n, t, r) {
2049
+ function rr(e, n, t, r) {
2034
2050
  typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = r);
2035
2051
  }
2036
- function Fn(e, n) {
2052
+ function Bn(e, n) {
2037
2053
  if (n.length > 0) {
2038
2054
  const t = n.length > 1 ? n : n[0];
2039
2055
  t && (e.children = t);
2040
2056
  }
2041
2057
  }
2042
- function Yi(e, n, t) {
2058
+ function el(e, n, t) {
2043
2059
  return r;
2044
2060
  function r(i, l, o, a) {
2045
2061
  const u = Array.isArray(o.children) ? t : n;
2046
2062
  return a ? u(l, o, a) : u(l, o);
2047
2063
  }
2048
2064
  }
2049
- function Xi(e, n) {
2065
+ function nl(e, n) {
2050
2066
  return t;
2051
2067
  function t(r, i, l, o) {
2052
- const a = Array.isArray(l.children), s = Rn(r);
2068
+ const a = Array.isArray(l.children), s = Fn(r);
2053
2069
  return n(
2054
2070
  i,
2055
2071
  l,
@@ -2064,15 +2080,15 @@ function Xi(e, n) {
2064
2080
  );
2065
2081
  }
2066
2082
  }
2067
- function Qi(e, n) {
2083
+ function tl(e, n) {
2068
2084
  const t = {};
2069
2085
  let r, i;
2070
2086
  for (i in n.properties)
2071
- if (i !== "children" && Mn.call(n.properties, i)) {
2072
- const l = Zi(e, i, n.properties[i]);
2087
+ if (i !== "children" && Dn.call(n.properties, i)) {
2088
+ const l = il(e, i, n.properties[i]);
2073
2089
  if (l) {
2074
2090
  const [o, a] = l;
2075
- e.tableCellAlignToStyle && o === "align" && typeof a == "string" && Hi.has(n.tagName) ? r = a : t[o] = a;
2091
+ e.tableCellAlignToStyle && o === "align" && typeof a == "string" && Wi.has(n.tagName) ? r = a : t[o] = a;
2076
2092
  }
2077
2093
  }
2078
2094
  if (r) {
@@ -2084,7 +2100,7 @@ function Qi(e, n) {
2084
2100
  }
2085
2101
  return t;
2086
2102
  }
2087
- function Ji(e, n) {
2103
+ function rl(e, n) {
2088
2104
  const t = {};
2089
2105
  for (const r of n.attributes)
2090
2106
  if (r.type === "mdxJsxExpressionAttribute")
@@ -2095,7 +2111,7 @@ function Ji(e, n) {
2095
2111
  e.evaluater.evaluateExpression(a.argument)
2096
2112
  );
2097
2113
  } else
2098
- He(e, n.position);
2114
+ Ve(e, n.position);
2099
2115
  else {
2100
2116
  const i = r.name;
2101
2117
  let l;
@@ -2104,7 +2120,7 @@ function Ji(e, n) {
2104
2120
  const a = r.value.data.estree.body[0];
2105
2121
  l = e.evaluater.evaluateExpression(a.expression);
2106
2122
  } else
2107
- He(e, n.position);
2123
+ Ve(e, n.position);
2108
2124
  else
2109
2125
  l = r.value === null ? !0 : r.value;
2110
2126
  t[i] = /** @type {Props[keyof Props]} */
@@ -2112,10 +2128,10 @@ function Ji(e, n) {
2112
2128
  }
2113
2129
  return t;
2114
2130
  }
2115
- function Dn(e, n) {
2131
+ function jn(e, n) {
2116
2132
  const t = [];
2117
2133
  let r = -1;
2118
- const i = e.passKeys ? /* @__PURE__ */ new Map() : Fi;
2134
+ const i = e.passKeys ? /* @__PURE__ */ new Map() : Vi;
2119
2135
  for (; ++r < n.children.length; ) {
2120
2136
  const l = n.children[r];
2121
2137
  let o;
@@ -2126,28 +2142,28 @@ function Dn(e, n) {
2126
2142
  o = s + "-" + u, i.set(s, u + 1);
2127
2143
  }
2128
2144
  }
2129
- const a = er(e, l, o);
2145
+ const a = tr(e, l, o);
2130
2146
  a !== void 0 && t.push(a);
2131
2147
  }
2132
2148
  return t;
2133
2149
  }
2134
- function Zi(e, n, t) {
2135
- const r = Pi(e.schema, n);
2150
+ function il(e, n, t) {
2151
+ const r = vi(e.schema, n);
2136
2152
  if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
2137
- if (Array.isArray(t) && (t = r.commaSeparated ? gi(t) : ti(t)), r.property === "style") {
2138
- let i = typeof t == "object" ? t : el(e, String(t));
2139
- return e.stylePropertyNameCase === "css" && (i = nl(i)), ["style", i];
2153
+ if (Array.isArray(t) && (t = r.commaSeparated ? wi(t) : ai(t)), r.property === "style") {
2154
+ let i = typeof t == "object" ? t : ll(e, String(t));
2155
+ return e.stylePropertyNameCase === "css" && (i = ol(i)), ["style", i];
2140
2156
  }
2141
2157
  return [
2142
- e.elementAttributeNameCase === "react" && r.space ? Ii[r.property] || r.property : r.attribute,
2158
+ e.elementAttributeNameCase === "react" && r.space ? Li[r.property] || r.property : r.attribute,
2143
2159
  t
2144
2160
  ];
2145
2161
  }
2146
2162
  }
2147
- function el(e, n) {
2163
+ function ll(e, n) {
2148
2164
  const t = {};
2149
2165
  try {
2150
- Ri(n, r);
2166
+ ji(n, r);
2151
2167
  } catch (i) {
2152
2168
  if (!e.ignoreInvalidStyle) {
2153
2169
  const l = (
@@ -2159,16 +2175,16 @@ function el(e, n) {
2159
2175
  ruleId: "style",
2160
2176
  source: "hast-util-to-jsx-runtime"
2161
2177
  });
2162
- throw o.file = e.filePath || void 0, o.url = Zt + "#cannot-parse-style-attribute", o;
2178
+ throw o.file = e.filePath || void 0, o.url = nr + "#cannot-parse-style-attribute", o;
2163
2179
  }
2164
2180
  }
2165
2181
  return t;
2166
2182
  function r(i, l) {
2167
2183
  let o = i;
2168
- o.slice(0, 2) !== "--" && (o.slice(0, 4) === "-ms-" && (o = "ms-" + o.slice(4)), o = o.replace(Bi, rl)), t[o] = l;
2184
+ o.slice(0, 2) !== "--" && (o.slice(0, 4) === "-ms-" && (o = "ms-" + o.slice(4)), o = o.replace(qi, ul)), t[o] = l;
2169
2185
  }
2170
2186
  }
2171
- function tr(e, n, t) {
2187
+ function ir(e, n, t) {
2172
2188
  let r;
2173
2189
  if (!t)
2174
2190
  r = { type: "Literal", value: n };
@@ -2176,7 +2192,7 @@ function tr(e, n, t) {
2176
2192
  const i = n.split(".");
2177
2193
  let l = -1, o;
2178
2194
  for (; ++l < i.length; ) {
2179
- const a = Zn(i[l]) ? { type: "Identifier", name: i[l] } : { type: "Literal", value: i[l] };
2195
+ const a = nt(i[l]) ? { type: "Identifier", name: i[l] } : { type: "Literal", value: i[l] };
2180
2196
  o = o ? {
2181
2197
  type: "MemberExpression",
2182
2198
  object: o,
@@ -2187,19 +2203,19 @@ function tr(e, n, t) {
2187
2203
  }
2188
2204
  r = o;
2189
2205
  } else
2190
- r = Zn(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
2206
+ r = nt(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
2191
2207
  if (r.type === "Literal") {
2192
2208
  const i = (
2193
2209
  /** @type {string | number} */
2194
2210
  r.value
2195
2211
  );
2196
- return Mn.call(e.components, i) ? e.components[i] : i;
2212
+ return Dn.call(e.components, i) ? e.components[i] : i;
2197
2213
  }
2198
2214
  if (e.evaluater)
2199
2215
  return e.evaluater.evaluateExpression(r);
2200
- He(e);
2216
+ Ve(e);
2201
2217
  }
2202
- function He(e, n) {
2218
+ function Ve(e, n) {
2203
2219
  const t = new Y(
2204
2220
  "Cannot handle MDX estrees without `createEvaluater`",
2205
2221
  {
@@ -2209,66 +2225,66 @@ function He(e, n) {
2209
2225
  source: "hast-util-to-jsx-runtime"
2210
2226
  }
2211
2227
  );
2212
- throw t.file = e.filePath || void 0, t.url = Zt + "#cannot-handle-mdx-estrees-without-createevaluater", t;
2228
+ throw t.file = e.filePath || void 0, t.url = nr + "#cannot-handle-mdx-estrees-without-createevaluater", t;
2213
2229
  }
2214
- function nl(e) {
2230
+ function ol(e) {
2215
2231
  const n = {};
2216
2232
  let t;
2217
2233
  for (t in e)
2218
- Mn.call(e, t) && (n[tl(t)] = e[t]);
2234
+ Dn.call(e, t) && (n[al(t)] = e[t]);
2219
2235
  return n;
2220
2236
  }
2221
- function tl(e) {
2222
- let n = e.replace(Di, il);
2237
+ function al(e) {
2238
+ let n = e.replace(Ui, sl);
2223
2239
  return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
2224
2240
  }
2225
- function rl(e, n) {
2241
+ function ul(e, n) {
2226
2242
  return n.toUpperCase();
2227
2243
  }
2228
- function il(e) {
2244
+ function sl(e) {
2229
2245
  return "-" + e.toLowerCase();
2230
2246
  }
2231
- function ll(e) {
2247
+ function cl(e) {
2232
2248
  const n = (
2233
2249
  /** @type {Processor} */
2234
2250
  this
2235
2251
  );
2236
2252
  n.compiler = t;
2237
2253
  function t(r, i) {
2238
- return Vi(r, { filePath: i.path, ...e });
2254
+ return Gi(r, { filePath: i.path, ...e });
2239
2255
  }
2240
2256
  }
2241
- const ol = {};
2242
- function al(e, n) {
2243
- const t = ol, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
2244
- return rr(e, r, i);
2257
+ const pl = {};
2258
+ function hl(e, n) {
2259
+ const t = pl, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
2260
+ return lr(e, r, i);
2245
2261
  }
2246
- function rr(e, n, t) {
2247
- if (ul(e)) {
2262
+ function lr(e, n, t) {
2263
+ if (fl(e)) {
2248
2264
  if ("value" in e)
2249
2265
  return e.type === "html" && !t ? "" : e.value;
2250
2266
  if (n && "alt" in e && e.alt)
2251
2267
  return e.alt;
2252
2268
  if ("children" in e)
2253
- return ut(e.children, n, t);
2269
+ return ct(e.children, n, t);
2254
2270
  }
2255
- return Array.isArray(e) ? ut(e, n, t) : "";
2271
+ return Array.isArray(e) ? ct(e, n, t) : "";
2256
2272
  }
2257
- function ut(e, n, t) {
2273
+ function ct(e, n, t) {
2258
2274
  const r = [];
2259
2275
  let i = -1;
2260
2276
  for (; ++i < e.length; )
2261
- r[i] = rr(e[i], n, t);
2277
+ r[i] = lr(e[i], n, t);
2262
2278
  return r.join("");
2263
2279
  }
2264
- function ul(e) {
2280
+ function fl(e) {
2265
2281
  return !!(e && typeof e == "object");
2266
2282
  }
2267
- const st = document.createElement("i");
2268
- function Bn(e) {
2283
+ const pt = document.createElement("i");
2284
+ function Hn(e) {
2269
2285
  const n = "&" + e + ";";
2270
- st.innerHTML = n;
2271
- const t = st.textContent;
2286
+ pt.innerHTML = n;
2287
+ const t = pt.textContent;
2272
2288
  return t.charCodeAt(t.length - 1) === 59 && e !== "semi" || t === n ? !1 : t;
2273
2289
  }
2274
2290
  function ce(e, n, t, r) {
@@ -2283,24 +2299,24 @@ function ce(e, n, t, r) {
2283
2299
  function re(e, n) {
2284
2300
  return e.length > 0 ? (ce(e, e.length, 0, n), e) : n;
2285
2301
  }
2286
- const ct = {}.hasOwnProperty;
2287
- function sl(e) {
2302
+ const ht = {}.hasOwnProperty;
2303
+ function ml(e) {
2288
2304
  const n = {};
2289
2305
  let t = -1;
2290
2306
  for (; ++t < e.length; )
2291
- cl(n, e[t]);
2307
+ dl(n, e[t]);
2292
2308
  return n;
2293
2309
  }
2294
- function cl(e, n) {
2310
+ function dl(e, n) {
2295
2311
  let t;
2296
2312
  for (t in n) {
2297
- const i = (ct.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t];
2313
+ const i = (ht.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t];
2298
2314
  let o;
2299
2315
  if (l)
2300
2316
  for (o in l) {
2301
- ct.call(i, o) || (i[o] = []);
2317
+ ht.call(i, o) || (i[o] = []);
2302
2318
  const a = l[o];
2303
- pl(
2319
+ gl(
2304
2320
  // @ts-expect-error Looks like a list.
2305
2321
  i[o],
2306
2322
  Array.isArray(a) ? a : a ? [a] : []
@@ -2308,14 +2324,14 @@ function cl(e, n) {
2308
2324
  }
2309
2325
  }
2310
2326
  }
2311
- function pl(e, n) {
2327
+ function gl(e, n) {
2312
2328
  let t = -1;
2313
2329
  const r = [];
2314
2330
  for (; ++t < n.length; )
2315
2331
  (n[t].add === "after" ? e : r).push(n[t]);
2316
2332
  ce(e, 0, 0, r);
2317
2333
  }
2318
- function ir(e, n) {
2334
+ function or(e, n) {
2319
2335
  const t = Number.parseInt(e, n);
2320
2336
  return (
2321
2337
  // C0 except for HT, LF, FF, CR, space.
@@ -2328,18 +2344,18 @@ function ir(e, n) {
2328
2344
  t > 1114111 ? "�" : String.fromCodePoint(t)
2329
2345
  );
2330
2346
  }
2331
- function Ae(e) {
2347
+ function Pe(e) {
2332
2348
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
2333
2349
  }
2334
- const se = ye(/[A-Za-z]/), ne = ye(/[\dA-Za-z]/), hl = ye(/[#-'*+\--9=?A-Z^-~]/);
2335
- function kn(e) {
2350
+ const se = ye(/[A-Za-z]/), ne = ye(/[\dA-Za-z]/), yl = ye(/[#-'*+\--9=?A-Z^-~]/);
2351
+ function Sn(e) {
2336
2352
  return (
2337
2353
  // Special whitespace codes (which have negative values), C0 and Control
2338
2354
  // character DEL
2339
2355
  e !== null && (e < 32 || e === 127)
2340
2356
  );
2341
2357
  }
2342
- const bn = ye(/\d/), fl = ye(/[\dA-Fa-f]/), ml = ye(/[!-/:-@[-`{-~]/);
2358
+ const Cn = ye(/\d/), xl = ye(/[\dA-Fa-f]/), kl = ye(/[!-/:-@[-`{-~]/);
2343
2359
  function L(e) {
2344
2360
  return e !== null && e < -2;
2345
2361
  }
@@ -2349,14 +2365,14 @@ function Q(e) {
2349
2365
  function M(e) {
2350
2366
  return e === -2 || e === -1 || e === 32;
2351
2367
  }
2352
- const dl = ye(new RegExp("\\p{P}|\\p{S}", "u")), gl = ye(/\s/);
2368
+ const bl = ye(new RegExp("\\p{P}|\\p{S}", "u")), wl = ye(/\s/);
2353
2369
  function ye(e) {
2354
2370
  return n;
2355
2371
  function n(t) {
2356
2372
  return t !== null && t > -1 && e.test(String.fromCharCode(t));
2357
2373
  }
2358
2374
  }
2359
- function ze(e) {
2375
+ function Le(e) {
2360
2376
  const n = [];
2361
2377
  let t = -1, r = 0, i = 0;
2362
2378
  for (; ++t < e.length; ) {
@@ -2386,10 +2402,10 @@ function U(e, n, t, r) {
2386
2402
  return M(s) && l++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
2387
2403
  }
2388
2404
  }
2389
- const yl = {
2390
- tokenize: xl
2405
+ const Sl = {
2406
+ tokenize: Cl
2391
2407
  };
2392
- function xl(e) {
2408
+ function Cl(e) {
2393
2409
  const n = e.attempt(this.parser.constructs.contentInitial, r, i);
2394
2410
  let t;
2395
2411
  return n;
@@ -2418,12 +2434,12 @@ function xl(e) {
2418
2434
  return L(a) ? (e.consume(a), e.exit("chunkText"), l) : (e.consume(a), o);
2419
2435
  }
2420
2436
  }
2421
- const kl = {
2422
- tokenize: bl
2423
- }, pt = {
2424
- tokenize: wl
2437
+ const El = {
2438
+ tokenize: Il
2439
+ }, ft = {
2440
+ tokenize: Tl
2425
2441
  };
2426
- function bl(e) {
2442
+ function Il(e) {
2427
2443
  const n = this, t = [];
2428
2444
  let r = 0, i, l, o;
2429
2445
  return a;
@@ -2436,7 +2452,7 @@ function bl(e) {
2436
2452
  }
2437
2453
  function s(C) {
2438
2454
  if (r++, n.containerState._closeFlow) {
2439
- n.containerState._closeFlow = void 0, i && P();
2455
+ n.containerState._closeFlow = void 0, i && z();
2440
2456
  const B = n.events.length;
2441
2457
  let H = B, y;
2442
2458
  for (; H--; )
@@ -2462,23 +2478,23 @@ function bl(e) {
2462
2478
  return w(C);
2463
2479
  n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
2464
2480
  }
2465
- return n.containerState = {}, e.check(pt, c, p)(C);
2481
+ return n.containerState = {}, e.check(ft, c, p)(C);
2466
2482
  }
2467
2483
  function c(C) {
2468
- return i && P(), k(r), d(C);
2484
+ return i && z(), k(r), d(C);
2469
2485
  }
2470
2486
  function p(C) {
2471
2487
  return n.parser.lazy[n.now().line] = r !== t.length, o = n.now().offset, w(C);
2472
2488
  }
2473
2489
  function d(C) {
2474
- return n.containerState = {}, e.attempt(pt, h, w)(C);
2490
+ return n.containerState = {}, e.attempt(ft, h, w)(C);
2475
2491
  }
2476
2492
  function h(C) {
2477
2493
  return r++, t.push([n.currentConstruct, n.containerState]), d(C);
2478
2494
  }
2479
2495
  function w(C) {
2480
2496
  if (C === null) {
2481
- i && P(), k(0), e.consume(C);
2497
+ i && z(), k(0), e.consume(C);
2482
2498
  return;
2483
2499
  }
2484
2500
  return i = i || n.parser.flow(n.now()), e.enter("chunkFlow", {
@@ -2489,12 +2505,12 @@ function bl(e) {
2489
2505
  }
2490
2506
  function b(C) {
2491
2507
  if (C === null) {
2492
- z(e.exit("chunkFlow"), !0), k(0), e.consume(C);
2508
+ P(e.exit("chunkFlow"), !0), k(0), e.consume(C);
2493
2509
  return;
2494
2510
  }
2495
- return L(C) ? (e.consume(C), z(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (e.consume(C), b);
2511
+ return L(C) ? (e.consume(C), P(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (e.consume(C), b);
2496
2512
  }
2497
- function z(C, B) {
2513
+ function P(C, B) {
2498
2514
  const H = n.sliceStream(C);
2499
2515
  if (B && H.push(null), C.previous = l, l && (l.next = C), l = C, i.defineSkip(C.start), i.write(H), n.parser.lazy[C.start.line]) {
2500
2516
  let y = i.events.length;
@@ -2531,20 +2547,20 @@ function bl(e) {
2531
2547
  }
2532
2548
  t.length = C;
2533
2549
  }
2534
- function P() {
2550
+ function z() {
2535
2551
  i.write([null]), l = void 0, i = void 0, n.containerState._closeFlow = void 0;
2536
2552
  }
2537
2553
  }
2538
- function wl(e, n, t) {
2554
+ function Tl(e, n, t) {
2539
2555
  return U(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2540
2556
  }
2541
- function ht(e) {
2542
- if (e === null || Q(e) || gl(e))
2557
+ function mt(e) {
2558
+ if (e === null || Q(e) || wl(e))
2543
2559
  return 1;
2544
- if (dl(e))
2560
+ if (bl(e))
2545
2561
  return 2;
2546
2562
  }
2547
- function jn(e, n, t) {
2563
+ function Vn(e, n, t) {
2548
2564
  const r = [];
2549
2565
  let i = -1;
2550
2566
  for (; ++i < e.length; ) {
@@ -2553,12 +2569,12 @@ function jn(e, n, t) {
2553
2569
  }
2554
2570
  return n;
2555
2571
  }
2556
- const wn = {
2572
+ const En = {
2557
2573
  name: "attention",
2558
- resolveAll: Sl,
2559
- tokenize: Cl
2574
+ resolveAll: Al,
2575
+ tokenize: Pl
2560
2576
  };
2561
- function Sl(e, n) {
2577
+ function Al(e, n) {
2562
2578
  let t = -1, r, i, l, o, a, s, u, c;
2563
2579
  for (; ++t < e.length; )
2564
2580
  if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
@@ -2573,7 +2589,7 @@ function Sl(e, n) {
2573
2589
  }, d = {
2574
2590
  ...e[t][1].start
2575
2591
  };
2576
- ft(p, -s), ft(d, s), o = {
2592
+ dt(p, -s), dt(d, s), o = {
2577
2593
  type: s > 1 ? "strongSequence" : "emphasisSequence",
2578
2594
  start: p,
2579
2595
  end: {
@@ -2605,7 +2621,7 @@ function Sl(e, n) {
2605
2621
  ...o.start
2606
2622
  }, e[t][1].start = {
2607
2623
  ...a.end
2608
- }, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = re(u, [["enter", e[r][1], n], ["exit", e[r][1], n]])), u = re(u, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), u = re(u, jn(n.parser.constructs.insideSpan.null, e.slice(r + 1, t), n)), u = re(u, [["exit", l, n], ["enter", a, n], ["exit", a, n], ["exit", i, n]]), e[t][1].end.offset - e[t][1].start.offset ? (c = 2, u = re(u, [["enter", e[t][1], n], ["exit", e[t][1], n]])) : c = 0, ce(e, r - 1, t - r + 3, u), t = r + u.length - c - 2;
2624
+ }, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = re(u, [["enter", e[r][1], n], ["exit", e[r][1], n]])), u = re(u, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), u = re(u, Vn(n.parser.constructs.insideSpan.null, e.slice(r + 1, t), n)), u = re(u, [["exit", l, n], ["enter", a, n], ["exit", a, n], ["exit", i, n]]), e[t][1].end.offset - e[t][1].start.offset ? (c = 2, u = re(u, [["enter", e[t][1], n], ["exit", e[t][1], n]])) : c = 0, ce(e, r - 1, t - r + 3, u), t = r + u.length - c - 2;
2609
2625
  break;
2610
2626
  }
2611
2627
  }
@@ -2613,8 +2629,8 @@ function Sl(e, n) {
2613
2629
  e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
2614
2630
  return e;
2615
2631
  }
2616
- function Cl(e, n) {
2617
- const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = ht(r);
2632
+ function Pl(e, n) {
2633
+ const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = mt(r);
2618
2634
  let l;
2619
2635
  return o;
2620
2636
  function o(s) {
@@ -2623,18 +2639,18 @@ function Cl(e, n) {
2623
2639
  function a(s) {
2624
2640
  if (s === l)
2625
2641
  return e.consume(s), a;
2626
- const u = e.exit("attentionSequence"), c = ht(s), p = !c || c === 2 && i || t.includes(s), d = !i || i === 2 && c || t.includes(r);
2642
+ const u = e.exit("attentionSequence"), c = mt(s), p = !c || c === 2 && i || t.includes(s), d = !i || i === 2 && c || t.includes(r);
2627
2643
  return u._open = !!(l === 42 ? p : p && (i || !d)), u._close = !!(l === 42 ? d : d && (c || !p)), n(s);
2628
2644
  }
2629
2645
  }
2630
- function ft(e, n) {
2646
+ function dt(e, n) {
2631
2647
  e.column += n, e.offset += n, e._bufferIndex += n;
2632
2648
  }
2633
- const El = {
2649
+ const zl = {
2634
2650
  name: "autolink",
2635
- tokenize: Il
2651
+ tokenize: Ll
2636
2652
  };
2637
- function Il(e, n, t) {
2653
+ function Ll(e, n, t) {
2638
2654
  let r = 0;
2639
2655
  return i;
2640
2656
  function i(h) {
@@ -2650,10 +2666,10 @@ function Il(e, n, t) {
2650
2666
  return h === 58 ? (e.consume(h), r = 0, s) : (h === 43 || h === 45 || h === 46 || ne(h)) && r++ < 32 ? (e.consume(h), a) : (r = 0, u(h));
2651
2667
  }
2652
2668
  function s(h) {
2653
- return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), n) : h === null || h === 32 || h === 60 || kn(h) ? t(h) : (e.consume(h), s);
2669
+ return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), n) : h === null || h === 32 || h === 60 || Sn(h) ? t(h) : (e.consume(h), s);
2654
2670
  }
2655
2671
  function u(h) {
2656
- return h === 64 ? (e.consume(h), c) : hl(h) ? (e.consume(h), u) : t(h);
2672
+ return h === 64 ? (e.consume(h), c) : yl(h) ? (e.consume(h), u) : t(h);
2657
2673
  }
2658
2674
  function c(h) {
2659
2675
  return ne(h) ? p(h) : t(h);
@@ -2669,11 +2685,11 @@ function Il(e, n, t) {
2669
2685
  return t(h);
2670
2686
  }
2671
2687
  }
2672
- const nn = {
2688
+ const rn = {
2673
2689
  partial: !0,
2674
- tokenize: Tl
2690
+ tokenize: Nl
2675
2691
  };
2676
- function Tl(e, n, t) {
2692
+ function Nl(e, n, t) {
2677
2693
  return r;
2678
2694
  function r(l) {
2679
2695
  return M(l) ? U(e, i, "linePrefix")(l) : i(l);
@@ -2682,15 +2698,15 @@ function Tl(e, n, t) {
2682
2698
  return l === null || L(l) ? n(l) : t(l);
2683
2699
  }
2684
2700
  }
2685
- const lr = {
2701
+ const ar = {
2686
2702
  continuation: {
2687
- tokenize: Pl
2703
+ tokenize: vl
2688
2704
  },
2689
- exit: zl,
2705
+ exit: Ol,
2690
2706
  name: "blockQuote",
2691
- tokenize: Al
2707
+ tokenize: _l
2692
2708
  };
2693
- function Al(e, n, t) {
2709
+ function _l(e, n, t) {
2694
2710
  const r = this;
2695
2711
  return i;
2696
2712
  function i(o) {
@@ -2706,37 +2722,37 @@ function Al(e, n, t) {
2706
2722
  return M(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(o));
2707
2723
  }
2708
2724
  }
2709
- function Pl(e, n, t) {
2725
+ function vl(e, n, t) {
2710
2726
  const r = this;
2711
2727
  return i;
2712
2728
  function i(o) {
2713
2729
  return M(o) ? U(e, l, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : l(o);
2714
2730
  }
2715
2731
  function l(o) {
2716
- return e.attempt(lr, n, t)(o);
2732
+ return e.attempt(ar, n, t)(o);
2717
2733
  }
2718
2734
  }
2719
- function zl(e) {
2735
+ function Ol(e) {
2720
2736
  e.exit("blockQuote");
2721
2737
  }
2722
- const or = {
2738
+ const ur = {
2723
2739
  name: "characterEscape",
2724
- tokenize: Ll
2740
+ tokenize: Rl
2725
2741
  };
2726
- function Ll(e, n, t) {
2742
+ function Rl(e, n, t) {
2727
2743
  return r;
2728
2744
  function r(l) {
2729
2745
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(l), e.exit("escapeMarker"), i;
2730
2746
  }
2731
2747
  function i(l) {
2732
- return ml(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
2748
+ return kl(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
2733
2749
  }
2734
2750
  }
2735
- const ar = {
2751
+ const sr = {
2736
2752
  name: "characterReference",
2737
- tokenize: Nl
2753
+ tokenize: Ml
2738
2754
  };
2739
- function Nl(e, n, t) {
2755
+ function Ml(e, n, t) {
2740
2756
  const r = this;
2741
2757
  let i = 0, l, o;
2742
2758
  return a;
@@ -2747,25 +2763,25 @@ function Nl(e, n, t) {
2747
2763
  return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), l = 31, o = ne, c(p));
2748
2764
  }
2749
2765
  function u(p) {
2750
- return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = fl, c) : (e.enter("characterReferenceValue"), l = 7, o = bn, c(p));
2766
+ return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = xl, c) : (e.enter("characterReferenceValue"), l = 7, o = Cn, c(p));
2751
2767
  }
2752
2768
  function c(p) {
2753
2769
  if (p === 59 && i) {
2754
2770
  const d = e.exit("characterReferenceValue");
2755
- return o === ne && !Bn(r.sliceSerialize(d)) ? t(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
2771
+ return o === ne && !Hn(r.sliceSerialize(d)) ? t(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
2756
2772
  }
2757
2773
  return o(p) && i++ < l ? (e.consume(p), c) : t(p);
2758
2774
  }
2759
2775
  }
2760
- const mt = {
2776
+ const gt = {
2761
2777
  partial: !0,
2762
- tokenize: vl
2763
- }, dt = {
2778
+ tokenize: Dl
2779
+ }, yt = {
2764
2780
  concrete: !0,
2765
2781
  name: "codeFenced",
2766
- tokenize: _l
2782
+ tokenize: Fl
2767
2783
  };
2768
- function _l(e, n, t) {
2784
+ function Fl(e, n, t) {
2769
2785
  const r = this, i = {
2770
2786
  partial: !0,
2771
2787
  tokenize: H
@@ -2783,7 +2799,7 @@ function _l(e, n, t) {
2783
2799
  return y === a ? (o++, e.consume(y), c) : o < 3 ? t(y) : (e.exit("codeFencedFenceSequence"), M(y) ? U(e, p, "whitespace")(y) : p(y));
2784
2800
  }
2785
2801
  function p(y) {
2786
- return y === null || L(y) ? (e.exit("codeFencedFence"), r.interrupt ? n(y) : e.check(mt, b, B)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2802
+ return y === null || L(y) ? (e.exit("codeFencedFence"), r.interrupt ? n(y) : e.check(gt, b, B)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2787
2803
  contentType: "string"
2788
2804
  }), d(y));
2789
2805
  }
@@ -2799,19 +2815,19 @@ function _l(e, n, t) {
2799
2815
  return y === null || L(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(y)) : y === 96 && y === a ? t(y) : (e.consume(y), w);
2800
2816
  }
2801
2817
  function b(y) {
2802
- return e.attempt(i, B, z)(y);
2818
+ return e.attempt(i, B, P)(y);
2803
2819
  }
2804
- function z(y) {
2820
+ function P(y) {
2805
2821
  return e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), k;
2806
2822
  }
2807
2823
  function k(y) {
2808
- return l > 0 && M(y) ? U(e, P, "linePrefix", l + 1)(y) : P(y);
2824
+ return l > 0 && M(y) ? U(e, z, "linePrefix", l + 1)(y) : z(y);
2809
2825
  }
2810
- function P(y) {
2811
- return y === null || L(y) ? e.check(mt, b, B)(y) : (e.enter("codeFlowValue"), C(y));
2826
+ function z(y) {
2827
+ return y === null || L(y) ? e.check(gt, b, B)(y) : (e.enter("codeFlowValue"), C(y));
2812
2828
  }
2813
2829
  function C(y) {
2814
- return y === null || L(y) ? (e.exit("codeFlowValue"), P(y)) : (e.consume(y), C);
2830
+ return y === null || L(y) ? (e.exit("codeFlowValue"), z(y)) : (e.consume(y), C);
2815
2831
  }
2816
2832
  function B(y) {
2817
2833
  return e.exit("codeFenced"), n(y);
@@ -2836,7 +2852,7 @@ function _l(e, n, t) {
2836
2852
  }
2837
2853
  }
2838
2854
  }
2839
- function vl(e, n, t) {
2855
+ function Dl(e, n, t) {
2840
2856
  const r = this;
2841
2857
  return i;
2842
2858
  function i(o) {
@@ -2846,14 +2862,14 @@ function vl(e, n, t) {
2846
2862
  return r.parser.lazy[r.now().line] ? t(o) : n(o);
2847
2863
  }
2848
2864
  }
2849
- const on = {
2865
+ const sn = {
2850
2866
  name: "codeIndented",
2851
- tokenize: Rl
2852
- }, Ol = {
2867
+ tokenize: jl
2868
+ }, Bl = {
2853
2869
  partial: !0,
2854
- tokenize: Ml
2870
+ tokenize: Hl
2855
2871
  };
2856
- function Rl(e, n, t) {
2872
+ function jl(e, n, t) {
2857
2873
  const r = this;
2858
2874
  return i;
2859
2875
  function i(u) {
@@ -2864,7 +2880,7 @@ function Rl(e, n, t) {
2864
2880
  return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(u) : t(u);
2865
2881
  }
2866
2882
  function o(u) {
2867
- return u === null ? s(u) : L(u) ? e.attempt(Ol, o, s)(u) : (e.enter("codeFlowValue"), a(u));
2883
+ return u === null ? s(u) : L(u) ? e.attempt(Bl, o, s)(u) : (e.enter("codeFlowValue"), a(u));
2868
2884
  }
2869
2885
  function a(u) {
2870
2886
  return u === null || L(u) ? (e.exit("codeFlowValue"), o(u)) : (e.consume(u), a);
@@ -2873,7 +2889,7 @@ function Rl(e, n, t) {
2873
2889
  return e.exit("codeIndented"), n(u);
2874
2890
  }
2875
2891
  }
2876
- function Ml(e, n, t) {
2892
+ function Hl(e, n, t) {
2877
2893
  const r = this;
2878
2894
  return i;
2879
2895
  function i(o) {
@@ -2884,13 +2900,13 @@ function Ml(e, n, t) {
2884
2900
  return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : L(o) ? i(o) : t(o);
2885
2901
  }
2886
2902
  }
2887
- const Fl = {
2903
+ const Vl = {
2888
2904
  name: "codeText",
2889
- previous: Bl,
2890
- resolve: Dl,
2891
- tokenize: jl
2905
+ previous: ql,
2906
+ resolve: Ul,
2907
+ tokenize: $l
2892
2908
  };
2893
- function Dl(e) {
2909
+ function Ul(e) {
2894
2910
  let n = e.length - 4, t = 3, r, i;
2895
2911
  if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
2896
2912
  for (r = t; ++r < n; )
@@ -2903,10 +2919,10 @@ function Dl(e) {
2903
2919
  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);
2904
2920
  return e;
2905
2921
  }
2906
- function Bl(e) {
2922
+ function ql(e) {
2907
2923
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
2908
2924
  }
2909
- function jl(e, n, t) {
2925
+ function $l(e, n, t) {
2910
2926
  let r = 0, i, l;
2911
2927
  return o;
2912
2928
  function o(p) {
@@ -2925,7 +2941,7 @@ function jl(e, n, t) {
2925
2941
  return p === 96 ? (e.consume(p), i++, c) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(p)) : (l.type = "codeTextData", u(p));
2926
2942
  }
2927
2943
  }
2928
- class Hl {
2944
+ class Wl {
2929
2945
  /**
2930
2946
  * @param {ReadonlyArray<T> | null | undefined} [initial]
2931
2947
  * Initial items (optional).
@@ -3097,10 +3113,10 @@ function De(e, n) {
3097
3113
  for (; t < n.length; )
3098
3114
  e.push(...n.slice(t, t + 1e4)), t += 1e4;
3099
3115
  }
3100
- function ur(e) {
3116
+ function cr(e) {
3101
3117
  const n = {};
3102
3118
  let t = -1, r, i, l, o, a, s, u;
3103
- const c = new Hl(e);
3119
+ const c = new Wl(e);
3104
3120
  for (; ++t < c.length; ) {
3105
3121
  for (; t in n; )
3106
3122
  t = n[t];
@@ -3108,7 +3124,7 @@ function ur(e) {
3108
3124
  for (; ++l < s.length && s[l][1].type !== "content"; )
3109
3125
  s[l][1].type === "chunkText" && (s[l][1]._isInFirstContentOfListItem = !0, l++);
3110
3126
  if (r[0] === "enter")
3111
- r[1].contentType && (Object.assign(n, Vl(c, t)), t = n[t], u = !0);
3127
+ r[1].contentType && (Object.assign(n, Gl(c, t)), t = n[t], u = !0);
3112
3128
  else if (r[1]._container) {
3113
3129
  for (l = t, i = void 0; l-- && (o = c.get(l), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank"); )
3114
3130
  o[0] === "enter" && (i && (c.get(i)[1].type = "lineEndingBlank"), o[1].type = "lineEnding", i = l);
@@ -3119,12 +3135,12 @@ function ur(e) {
3119
3135
  }
3120
3136
  return ce(e, 0, Number.POSITIVE_INFINITY, c.slice(0)), !u;
3121
3137
  }
3122
- function Vl(e, n) {
3138
+ function Gl(e, n) {
3123
3139
  const t = e.get(n)[1], r = e.get(n)[2];
3124
3140
  let i = n - 1;
3125
3141
  const l = [], o = t._tokenizer || r.parser[t.contentType](t.start), a = o.events, s = [], u = {};
3126
3142
  let c, p, d = -1, h = t, w = 0, b = 0;
3127
- const z = [b];
3143
+ const P = [b];
3128
3144
  for (; h; ) {
3129
3145
  for (; e.get(++i)[1] !== h; )
3130
3146
  ;
@@ -3132,26 +3148,26 @@ function Vl(e, n) {
3132
3148
  }
3133
3149
  for (h = t; ++d < a.length; )
3134
3150
  // Find a void token that includes a break.
3135
- a[d][0] === "exit" && a[d - 1][0] === "enter" && a[d][1].type === a[d - 1][1].type && a[d][1].start.line !== a[d][1].end.line && (b = d + 1, z.push(b), h._tokenizer = void 0, h.previous = void 0, h = h.next);
3136
- for (o.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : z.pop(), d = z.length; d--; ) {
3137
- const k = a.slice(z[d], z[d + 1]), P = l.pop();
3138
- s.push([P, P + k.length - 1]), e.splice(P, 2, k);
3151
+ a[d][0] === "exit" && a[d - 1][0] === "enter" && a[d][1].type === a[d - 1][1].type && a[d][1].start.line !== a[d][1].end.line && (b = d + 1, P.push(b), h._tokenizer = void 0, h.previous = void 0, h = h.next);
3152
+ for (o.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : P.pop(), d = P.length; d--; ) {
3153
+ const k = a.slice(P[d], P[d + 1]), z = l.pop();
3154
+ s.push([z, z + k.length - 1]), e.splice(z, 2, k);
3139
3155
  }
3140
3156
  for (s.reverse(), d = -1; ++d < s.length; )
3141
3157
  u[w + s[d][0]] = w + s[d][1], w += s[d][1] - s[d][0] - 1;
3142
3158
  return u;
3143
3159
  }
3144
- const Ul = {
3145
- resolve: $l,
3146
- tokenize: Wl
3147
- }, ql = {
3160
+ const Kl = {
3161
+ resolve: Xl,
3162
+ tokenize: Ql
3163
+ }, Yl = {
3148
3164
  partial: !0,
3149
- tokenize: Gl
3165
+ tokenize: Jl
3150
3166
  };
3151
- function $l(e) {
3152
- return ur(e), e;
3167
+ function Xl(e) {
3168
+ return cr(e), e;
3153
3169
  }
3154
- function Wl(e, n) {
3170
+ function Ql(e, n) {
3155
3171
  let t;
3156
3172
  return r;
3157
3173
  function r(a) {
@@ -3160,7 +3176,7 @@ function Wl(e, n) {
3160
3176
  }), i(a);
3161
3177
  }
3162
3178
  function i(a) {
3163
- return a === null ? l(a) : L(a) ? e.check(ql, o, l)(a) : (e.consume(a), i);
3179
+ return a === null ? l(a) : L(a) ? e.check(Yl, o, l)(a) : (e.consume(a), i);
3164
3180
  }
3165
3181
  function l(a) {
3166
3182
  return e.exit("chunkContent"), e.exit("content"), n(a);
@@ -3172,7 +3188,7 @@ function Wl(e, n) {
3172
3188
  }), t = t.next, i;
3173
3189
  }
3174
3190
  }
3175
- function Gl(e, n, t) {
3191
+ function Jl(e, n, t) {
3176
3192
  const r = this;
3177
3193
  return i;
3178
3194
  function i(o) {
@@ -3185,12 +3201,12 @@ function Gl(e, n, t) {
3185
3201
  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);
3186
3202
  }
3187
3203
  }
3188
- function sr(e, n, t, r, i, l, o, a, s) {
3204
+ function pr(e, n, t, r, i, l, o, a, s) {
3189
3205
  const u = s || Number.POSITIVE_INFINITY;
3190
3206
  let c = 0;
3191
3207
  return p;
3192
3208
  function p(k) {
3193
- return k === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(k), e.exit(l), d) : k === null || k === 32 || k === 41 || kn(k) ? t(k) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
3209
+ return k === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(k), e.exit(l), d) : k === null || k === 32 || k === 41 || Sn(k) ? t(k) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
3194
3210
  contentType: "string"
3195
3211
  }), b(k));
3196
3212
  }
@@ -3206,13 +3222,13 @@ function sr(e, n, t, r, i, l, o, a, s) {
3206
3222
  return k === 60 || k === 62 || k === 92 ? (e.consume(k), h) : h(k);
3207
3223
  }
3208
3224
  function b(k) {
3209
- return !c && (k === null || k === 41 || Q(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(k)) : c < u && k === 40 ? (e.consume(k), c++, b) : k === 41 ? (e.consume(k), c--, b) : k === null || k === 32 || k === 40 || kn(k) ? t(k) : (e.consume(k), k === 92 ? z : b);
3225
+ return !c && (k === null || k === 41 || Q(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(k)) : c < u && k === 40 ? (e.consume(k), c++, b) : k === 41 ? (e.consume(k), c--, b) : k === null || k === 32 || k === 40 || Sn(k) ? t(k) : (e.consume(k), k === 92 ? P : b);
3210
3226
  }
3211
- function z(k) {
3227
+ function P(k) {
3212
3228
  return k === 40 || k === 41 || k === 92 ? (e.consume(k), b) : b(k);
3213
3229
  }
3214
3230
  }
3215
- function cr(e, n, t, r, i, l) {
3231
+ function hr(e, n, t, r, i, l) {
3216
3232
  const o = this;
3217
3233
  let a = 0, s;
3218
3234
  return u;
@@ -3236,7 +3252,7 @@ function cr(e, n, t, r, i, l) {
3236
3252
  return h === 91 || h === 92 || h === 93 ? (e.consume(h), a++, p) : p(h);
3237
3253
  }
3238
3254
  }
3239
- function pr(e, n, t, r, i, l) {
3255
+ function fr(e, n, t, r, i, l) {
3240
3256
  let o;
3241
3257
  return a;
3242
3258
  function a(d) {
@@ -3257,21 +3273,21 @@ function pr(e, n, t, r, i, l) {
3257
3273
  return d === o || d === 92 ? (e.consume(d), c) : c(d);
3258
3274
  }
3259
3275
  }
3260
- function je(e, n) {
3276
+ function He(e, n) {
3261
3277
  let t;
3262
3278
  return r;
3263
3279
  function r(i) {
3264
3280
  return L(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : M(i) ? U(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3265
3281
  }
3266
3282
  }
3267
- const Kl = {
3283
+ const Zl = {
3268
3284
  name: "definition",
3269
- tokenize: Xl
3270
- }, Yl = {
3285
+ tokenize: no
3286
+ }, eo = {
3271
3287
  partial: !0,
3272
- tokenize: Ql
3288
+ tokenize: to
3273
3289
  };
3274
- function Xl(e, n, t) {
3290
+ function no(e, n, t) {
3275
3291
  const r = this;
3276
3292
  let i;
3277
3293
  return l;
@@ -3279,7 +3295,7 @@ function Xl(e, n, t) {
3279
3295
  return e.enter("definition"), o(h);
3280
3296
  }
3281
3297
  function o(h) {
3282
- return cr.call(
3298
+ return hr.call(
3283
3299
  r,
3284
3300
  e,
3285
3301
  a,
@@ -3291,13 +3307,13 @@ function Xl(e, n, t) {
3291
3307
  )(h);
3292
3308
  }
3293
3309
  function a(h) {
3294
- return i = Ae(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), s) : t(h);
3310
+ return i = Pe(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), s) : t(h);
3295
3311
  }
3296
3312
  function s(h) {
3297
- return Q(h) ? je(e, u)(h) : u(h);
3313
+ return Q(h) ? He(e, u)(h) : u(h);
3298
3314
  }
3299
3315
  function u(h) {
3300
- return sr(
3316
+ return pr(
3301
3317
  e,
3302
3318
  c,
3303
3319
  // Note: we don’t need to reset the way `markdown-rs` does.
@@ -3310,7 +3326,7 @@ function Xl(e, n, t) {
3310
3326
  )(h);
3311
3327
  }
3312
3328
  function c(h) {
3313
- return e.attempt(Yl, p, p)(h);
3329
+ return e.attempt(eo, p, p)(h);
3314
3330
  }
3315
3331
  function p(h) {
3316
3332
  return M(h) ? U(e, d, "whitespace")(h) : d(h);
@@ -3319,13 +3335,13 @@ function Xl(e, n, t) {
3319
3335
  return h === null || L(h) ? (e.exit("definition"), r.parser.defined.push(i), n(h)) : t(h);
3320
3336
  }
3321
3337
  }
3322
- function Ql(e, n, t) {
3338
+ function to(e, n, t) {
3323
3339
  return r;
3324
3340
  function r(a) {
3325
- return Q(a) ? je(e, i)(a) : t(a);
3341
+ return Q(a) ? He(e, i)(a) : t(a);
3326
3342
  }
3327
3343
  function i(a) {
3328
- return pr(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
3344
+ return fr(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
3329
3345
  }
3330
3346
  function l(a) {
3331
3347
  return M(a) ? U(e, o, "whitespace")(a) : o(a);
@@ -3334,11 +3350,11 @@ function Ql(e, n, t) {
3334
3350
  return a === null || L(a) ? n(a) : t(a);
3335
3351
  }
3336
3352
  }
3337
- const Jl = {
3353
+ const ro = {
3338
3354
  name: "hardBreakEscape",
3339
- tokenize: Zl
3355
+ tokenize: io
3340
3356
  };
3341
- function Zl(e, n, t) {
3357
+ function io(e, n, t) {
3342
3358
  return r;
3343
3359
  function r(l) {
3344
3360
  return e.enter("hardBreakEscape"), e.consume(l), i;
@@ -3347,12 +3363,12 @@ function Zl(e, n, t) {
3347
3363
  return L(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
3348
3364
  }
3349
3365
  }
3350
- const eo = {
3366
+ const lo = {
3351
3367
  name: "headingAtx",
3352
- resolve: no,
3353
- tokenize: to
3368
+ resolve: oo,
3369
+ tokenize: ao
3354
3370
  };
3355
- function no(e, n) {
3371
+ function oo(e, n) {
3356
3372
  let t = e.length - 2, r = 3, i, l;
3357
3373
  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 = {
3358
3374
  type: "atxHeadingText",
@@ -3365,7 +3381,7 @@ function no(e, n) {
3365
3381
  contentType: "text"
3366
3382
  }, ce(e, r, t - r + 1, [["enter", i, n], ["enter", l, n], ["exit", l, n], ["exit", i, n]])), e;
3367
3383
  }
3368
- function to(e, n, t) {
3384
+ function ao(e, n, t) {
3369
3385
  let r = 0;
3370
3386
  return i;
3371
3387
  function i(c) {
@@ -3387,7 +3403,7 @@ function to(e, n, t) {
3387
3403
  return c === null || c === 35 || Q(c) ? (e.exit("atxHeadingText"), a(c)) : (e.consume(c), u);
3388
3404
  }
3389
3405
  }
3390
- const ro = [
3406
+ const uo = [
3391
3407
  "address",
3392
3408
  "article",
3393
3409
  "aside",
@@ -3450,25 +3466,25 @@ const ro = [
3450
3466
  "tr",
3451
3467
  "track",
3452
3468
  "ul"
3453
- ], gt = ["pre", "script", "style", "textarea"], io = {
3469
+ ], xt = ["pre", "script", "style", "textarea"], so = {
3454
3470
  concrete: !0,
3455
3471
  name: "htmlFlow",
3456
- resolveTo: ao,
3457
- tokenize: uo
3458
- }, lo = {
3472
+ resolveTo: ho,
3473
+ tokenize: fo
3474
+ }, co = {
3459
3475
  partial: !0,
3460
- tokenize: co
3461
- }, oo = {
3476
+ tokenize: go
3477
+ }, po = {
3462
3478
  partial: !0,
3463
- tokenize: so
3479
+ tokenize: mo
3464
3480
  };
3465
- function ao(e) {
3481
+ function ho(e) {
3466
3482
  let n = e.length;
3467
3483
  for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
3468
3484
  ;
3469
3485
  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;
3470
3486
  }
3471
- function uo(e, n, t) {
3487
+ function fo(e, n, t) {
3472
3488
  const r = this;
3473
3489
  let i, l, o, a, s;
3474
3490
  return u;
@@ -3479,7 +3495,7 @@ function uo(e, n, t) {
3479
3495
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(m), p;
3480
3496
  }
3481
3497
  function p(m) {
3482
- return m === 33 ? (e.consume(m), d) : m === 47 ? (e.consume(m), l = !0, b) : m === 63 ? (e.consume(m), i = 3, r.interrupt ? n : f) : se(m) ? (e.consume(m), o = String.fromCharCode(m), z) : t(m);
3498
+ return m === 33 ? (e.consume(m), d) : m === 47 ? (e.consume(m), l = !0, b) : m === 63 ? (e.consume(m), i = 3, r.interrupt ? n : f) : se(m) ? (e.consume(m), o = String.fromCharCode(m), P) : t(m);
3483
3499
  }
3484
3500
  function d(m) {
3485
3501
  return m === 45 ? (e.consume(m), i = 2, h) : m === 91 ? (e.consume(m), i = 5, a = 0, w) : se(m) ? (e.consume(m), i = 4, r.interrupt ? n : f) : t(m);
@@ -3492,20 +3508,20 @@ function uo(e, n, t) {
3492
3508
  return m === oe.charCodeAt(a++) ? (e.consume(m), a === oe.length ? r.interrupt ? n : I : w) : t(m);
3493
3509
  }
3494
3510
  function b(m) {
3495
- return se(m) ? (e.consume(m), o = String.fromCharCode(m), z) : t(m);
3511
+ return se(m) ? (e.consume(m), o = String.fromCharCode(m), P) : t(m);
3496
3512
  }
3497
- function z(m) {
3513
+ function P(m) {
3498
3514
  if (m === null || m === 47 || m === 62 || Q(m)) {
3499
3515
  const oe = m === 47, xe = o.toLowerCase();
3500
- return !oe && !l && gt.includes(xe) ? (i = 1, r.interrupt ? n(m) : I(m)) : ro.includes(o.toLowerCase()) ? (i = 6, oe ? (e.consume(m), k) : r.interrupt ? n(m) : I(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? P(m) : C(m));
3516
+ return !oe && !l && xt.includes(xe) ? (i = 1, r.interrupt ? n(m) : I(m)) : uo.includes(o.toLowerCase()) ? (i = 6, oe ? (e.consume(m), k) : r.interrupt ? n(m) : I(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? z(m) : C(m));
3501
3517
  }
3502
- return m === 45 || ne(m) ? (e.consume(m), o += String.fromCharCode(m), z) : t(m);
3518
+ return m === 45 || ne(m) ? (e.consume(m), o += String.fromCharCode(m), P) : t(m);
3503
3519
  }
3504
3520
  function k(m) {
3505
3521
  return m === 62 ? (e.consume(m), r.interrupt ? n : I) : t(m);
3506
3522
  }
3507
- function P(m) {
3508
- return M(m) ? (e.consume(m), P) : D(m);
3523
+ function z(m) {
3524
+ return M(m) ? (e.consume(m), z) : D(m);
3509
3525
  }
3510
3526
  function C(m) {
3511
3527
  return m === 47 ? (e.consume(m), D) : m === 58 || m === 95 || se(m) ? (e.consume(m), B) : M(m) ? (e.consume(m), C) : D(m);
@@ -3535,10 +3551,10 @@ function uo(e, n, t) {
3535
3551
  return m === null || L(m) ? I(m) : M(m) ? (e.consume(m), A) : t(m);
3536
3552
  }
3537
3553
  function I(m) {
3538
- return m === 45 && i === 2 ? (e.consume(m), W) : m === 60 && i === 1 ? (e.consume(m), G) : m === 62 && i === 4 ? (e.consume(m), le) : m === 63 && i === 3 ? (e.consume(m), f) : m === 93 && i === 5 ? (e.consume(m), pe) : L(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(lo, he, T)(m)) : m === null || L(m) ? (e.exit("htmlFlowData"), T(m)) : (e.consume(m), I);
3554
+ return m === 45 && i === 2 ? (e.consume(m), W) : m === 60 && i === 1 ? (e.consume(m), G) : m === 62 && i === 4 ? (e.consume(m), le) : m === 63 && i === 3 ? (e.consume(m), f) : m === 93 && i === 5 ? (e.consume(m), pe) : L(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(co, he, T)(m)) : m === null || L(m) ? (e.exit("htmlFlowData"), T(m)) : (e.consume(m), I);
3539
3555
  }
3540
3556
  function T(m) {
3541
- return e.check(oo, E, he)(m);
3557
+ return e.check(po, E, he)(m);
3542
3558
  }
3543
3559
  function E(m) {
3544
3560
  return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), N;
@@ -3555,7 +3571,7 @@ function uo(e, n, t) {
3555
3571
  function ie(m) {
3556
3572
  if (m === 62) {
3557
3573
  const oe = o.toLowerCase();
3558
- return gt.includes(oe) ? (e.consume(m), le) : I(m);
3574
+ return xt.includes(oe) ? (e.consume(m), le) : I(m);
3559
3575
  }
3560
3576
  return se(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), ie) : I(m);
3561
3577
  }
@@ -3572,7 +3588,7 @@ function uo(e, n, t) {
3572
3588
  return e.exit("htmlFlow"), n(m);
3573
3589
  }
3574
3590
  }
3575
- function so(e, n, t) {
3591
+ function mo(e, n, t) {
3576
3592
  const r = this;
3577
3593
  return i;
3578
3594
  function i(o) {
@@ -3582,17 +3598,17 @@ function so(e, n, t) {
3582
3598
  return r.parser.lazy[r.now().line] ? t(o) : n(o);
3583
3599
  }
3584
3600
  }
3585
- function co(e, n, t) {
3601
+ function go(e, n, t) {
3586
3602
  return r;
3587
3603
  function r(i) {
3588
- return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(nn, n, t);
3604
+ return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(rn, n, t);
3589
3605
  }
3590
3606
  }
3591
- const po = {
3607
+ const yo = {
3592
3608
  name: "htmlText",
3593
- tokenize: ho
3609
+ tokenize: xo
3594
3610
  };
3595
- function ho(e, n, t) {
3611
+ function xo(e, n, t) {
3596
3612
  const r = this;
3597
3613
  let i, l, o;
3598
3614
  return a;
@@ -3603,7 +3619,7 @@ function ho(e, n, t) {
3603
3619
  return f === 33 ? (e.consume(f), u) : f === 47 ? (e.consume(f), H) : f === 63 ? (e.consume(f), C) : se(f) ? (e.consume(f), q) : t(f);
3604
3620
  }
3605
3621
  function u(f) {
3606
- return f === 45 ? (e.consume(f), c) : f === 91 ? (e.consume(f), l = 0, w) : se(f) ? (e.consume(f), P) : t(f);
3622
+ return f === 45 ? (e.consume(f), c) : f === 91 ? (e.consume(f), l = 0, w) : se(f) ? (e.consume(f), z) : t(f);
3607
3623
  }
3608
3624
  function c(f) {
3609
3625
  return f === 45 ? (e.consume(f), h) : t(f);
@@ -3622,16 +3638,16 @@ function ho(e, n, t) {
3622
3638
  return f === le.charCodeAt(l++) ? (e.consume(f), l === le.length ? b : w) : t(f);
3623
3639
  }
3624
3640
  function b(f) {
3625
- return f === null ? t(f) : f === 93 ? (e.consume(f), z) : L(f) ? (o = b, G(f)) : (e.consume(f), b);
3641
+ return f === null ? t(f) : f === 93 ? (e.consume(f), P) : L(f) ? (o = b, G(f)) : (e.consume(f), b);
3626
3642
  }
3627
- function z(f) {
3643
+ function P(f) {
3628
3644
  return f === 93 ? (e.consume(f), k) : b(f);
3629
3645
  }
3630
3646
  function k(f) {
3631
3647
  return f === 62 ? W(f) : f === 93 ? (e.consume(f), k) : b(f);
3632
3648
  }
3633
- function P(f) {
3634
- return f === null || f === 62 ? W(f) : L(f) ? (o = P, G(f)) : (e.consume(f), P);
3649
+ function z(f) {
3650
+ return f === null || f === 62 ? W(f) : L(f) ? (o = z, G(f)) : (e.consume(f), z);
3635
3651
  }
3636
3652
  function C(f) {
3637
3653
  return f === null ? t(f) : f === 63 ? (e.consume(f), B) : L(f) ? (o = C, G(f)) : (e.consume(f), C);
@@ -3685,19 +3701,19 @@ function ho(e, n, t) {
3685
3701
  return e.enter("htmlTextData"), o(f);
3686
3702
  }
3687
3703
  }
3688
- const Hn = {
3704
+ const Un = {
3689
3705
  name: "labelEnd",
3690
- resolveAll: yo,
3691
- resolveTo: xo,
3692
- tokenize: ko
3693
- }, fo = {
3694
- tokenize: bo
3695
- }, mo = {
3696
- tokenize: wo
3697
- }, go = {
3698
- tokenize: So
3706
+ resolveAll: So,
3707
+ resolveTo: Co,
3708
+ tokenize: Eo
3709
+ }, ko = {
3710
+ tokenize: Io
3711
+ }, bo = {
3712
+ tokenize: To
3713
+ }, wo = {
3714
+ tokenize: Ao
3699
3715
  };
3700
- function yo(e) {
3716
+ function So(e) {
3701
3717
  let n = -1;
3702
3718
  const t = [];
3703
3719
  for (; ++n < e.length; ) {
@@ -3709,7 +3725,7 @@ function yo(e) {
3709
3725
  }
3710
3726
  return e.length !== t.length && ce(e, 0, e.length, t), e;
3711
3727
  }
3712
- function xo(e, n) {
3728
+ function Co(e, n) {
3713
3729
  let t = e.length, r = 0, i, l, o, a;
3714
3730
  for (; t--; )
3715
3731
  if (i = e[t][1], l) {
@@ -3747,9 +3763,9 @@ function xo(e, n) {
3747
3763
  ...e[o - 2][1].start
3748
3764
  }
3749
3765
  };
3750
- return a = [["enter", s, n], ["enter", u, n]], a = re(a, e.slice(l + 1, l + r + 3)), a = re(a, [["enter", c, n]]), a = re(a, jn(n.parser.constructs.insideSpan.null, e.slice(l + r + 4, o - 3), n)), a = re(a, [["exit", c, n], e[o - 2], e[o - 1], ["exit", u, n]]), a = re(a, e.slice(o + 1)), a = re(a, [["exit", s, n]]), ce(e, l, e.length, a), e;
3766
+ return a = [["enter", s, n], ["enter", u, n]], a = re(a, e.slice(l + 1, l + r + 3)), a = re(a, [["enter", c, n]]), a = re(a, Vn(n.parser.constructs.insideSpan.null, e.slice(l + r + 4, o - 3), n)), a = re(a, [["exit", c, n], e[o - 2], e[o - 1], ["exit", u, n]]), a = re(a, e.slice(o + 1)), a = re(a, [["exit", s, n]]), ce(e, l, e.length, a), e;
3751
3767
  }
3752
- function ko(e, n, t) {
3768
+ function Eo(e, n, t) {
3753
3769
  const r = this;
3754
3770
  let i = r.events.length, l, o;
3755
3771
  for (; i--; )
@@ -3759,16 +3775,16 @@ function ko(e, n, t) {
3759
3775
  }
3760
3776
  return a;
3761
3777
  function a(d) {
3762
- return l ? l._inactive ? p(d) : (o = r.parser.defined.includes(Ae(r.sliceSerialize({
3778
+ return l ? l._inactive ? p(d) : (o = r.parser.defined.includes(Pe(r.sliceSerialize({
3763
3779
  start: l.end,
3764
3780
  end: r.now()
3765
3781
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), s) : t(d);
3766
3782
  }
3767
3783
  function s(d) {
3768
- return d === 40 ? e.attempt(fo, c, o ? c : p)(d) : d === 91 ? e.attempt(mo, c, o ? u : p)(d) : o ? c(d) : p(d);
3784
+ return d === 40 ? e.attempt(ko, c, o ? c : p)(d) : d === 91 ? e.attempt(bo, c, o ? u : p)(d) : o ? c(d) : p(d);
3769
3785
  }
3770
3786
  function u(d) {
3771
- return e.attempt(go, c, p)(d);
3787
+ return e.attempt(wo, c, p)(d);
3772
3788
  }
3773
3789
  function c(d) {
3774
3790
  return n(d);
@@ -3777,47 +3793,47 @@ function ko(e, n, t) {
3777
3793
  return l._balanced = !0, t(d);
3778
3794
  }
3779
3795
  }
3780
- function bo(e, n, t) {
3796
+ function Io(e, n, t) {
3781
3797
  return r;
3782
3798
  function r(p) {
3783
3799
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
3784
3800
  }
3785
3801
  function i(p) {
3786
- return Q(p) ? je(e, l)(p) : l(p);
3802
+ return Q(p) ? He(e, l)(p) : l(p);
3787
3803
  }
3788
3804
  function l(p) {
3789
- return p === 41 ? c(p) : sr(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(p);
3805
+ return p === 41 ? c(p) : pr(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(p);
3790
3806
  }
3791
3807
  function o(p) {
3792
- return Q(p) ? je(e, s)(p) : c(p);
3808
+ return Q(p) ? He(e, s)(p) : c(p);
3793
3809
  }
3794
3810
  function a(p) {
3795
3811
  return t(p);
3796
3812
  }
3797
3813
  function s(p) {
3798
- return p === 34 || p === 39 || p === 40 ? pr(e, u, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(p) : c(p);
3814
+ return p === 34 || p === 39 || p === 40 ? fr(e, u, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(p) : c(p);
3799
3815
  }
3800
3816
  function u(p) {
3801
- return Q(p) ? je(e, c)(p) : c(p);
3817
+ return Q(p) ? He(e, c)(p) : c(p);
3802
3818
  }
3803
3819
  function c(p) {
3804
3820
  return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), n) : t(p);
3805
3821
  }
3806
3822
  }
3807
- function wo(e, n, t) {
3823
+ function To(e, n, t) {
3808
3824
  const r = this;
3809
3825
  return i;
3810
3826
  function i(a) {
3811
- return cr.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
3827
+ return hr.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
3812
3828
  }
3813
3829
  function l(a) {
3814
- return r.parser.defined.includes(Ae(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? n(a) : t(a);
3830
+ return r.parser.defined.includes(Pe(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? n(a) : t(a);
3815
3831
  }
3816
3832
  function o(a) {
3817
3833
  return t(a);
3818
3834
  }
3819
3835
  }
3820
- function So(e, n, t) {
3836
+ function Ao(e, n, t) {
3821
3837
  return r;
3822
3838
  function r(l) {
3823
3839
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), i;
@@ -3826,12 +3842,12 @@ function So(e, n, t) {
3826
3842
  return l === 93 ? (e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), e.exit("reference"), n) : t(l);
3827
3843
  }
3828
3844
  }
3829
- const Co = {
3845
+ const Po = {
3830
3846
  name: "labelStartImage",
3831
- resolveAll: Hn.resolveAll,
3832
- tokenize: Eo
3847
+ resolveAll: Un.resolveAll,
3848
+ tokenize: zo
3833
3849
  };
3834
- function Eo(e, n, t) {
3850
+ function zo(e, n, t) {
3835
3851
  const r = this;
3836
3852
  return i;
3837
3853
  function i(a) {
@@ -3844,12 +3860,12 @@ function Eo(e, n, t) {
3844
3860
  return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
3845
3861
  }
3846
3862
  }
3847
- const Io = {
3863
+ const Lo = {
3848
3864
  name: "labelStartLink",
3849
- resolveAll: Hn.resolveAll,
3850
- tokenize: To
3865
+ resolveAll: Un.resolveAll,
3866
+ tokenize: No
3851
3867
  };
3852
- function To(e, n, t) {
3868
+ function No(e, n, t) {
3853
3869
  const r = this;
3854
3870
  return i;
3855
3871
  function i(o) {
@@ -3859,21 +3875,21 @@ function To(e, n, t) {
3859
3875
  return o === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(o) : n(o);
3860
3876
  }
3861
3877
  }
3862
- const an = {
3878
+ const cn = {
3863
3879
  name: "lineEnding",
3864
- tokenize: Ao
3880
+ tokenize: _o
3865
3881
  };
3866
- function Ao(e, n) {
3882
+ function _o(e, n) {
3867
3883
  return t;
3868
3884
  function t(r) {
3869
3885
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), U(e, n, "linePrefix");
3870
3886
  }
3871
3887
  }
3872
- const Ye = {
3888
+ const Xe = {
3873
3889
  name: "thematicBreak",
3874
- tokenize: Po
3890
+ tokenize: vo
3875
3891
  };
3876
- function Po(e, n, t) {
3892
+ function vo(e, n, t) {
3877
3893
  let r = 0, i;
3878
3894
  return l;
3879
3895
  function l(u) {
@@ -3891,43 +3907,43 @@ function Po(e, n, t) {
3891
3907
  }
3892
3908
  const X = {
3893
3909
  continuation: {
3894
- tokenize: _o
3910
+ tokenize: Fo
3895
3911
  },
3896
- exit: Oo,
3912
+ exit: Bo,
3897
3913
  name: "list",
3898
- tokenize: No
3899
- }, zo = {
3914
+ tokenize: Mo
3915
+ }, Oo = {
3900
3916
  partial: !0,
3901
- tokenize: Ro
3902
- }, Lo = {
3917
+ tokenize: jo
3918
+ }, Ro = {
3903
3919
  partial: !0,
3904
- tokenize: vo
3920
+ tokenize: Do
3905
3921
  };
3906
- function No(e, n, t) {
3922
+ function Mo(e, n, t) {
3907
3923
  const r = this, i = r.events[r.events.length - 1];
3908
3924
  let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
3909
3925
  return a;
3910
3926
  function a(h) {
3911
3927
  const w = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
3912
- if (w === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : bn(h)) {
3928
+ if (w === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : Cn(h)) {
3913
3929
  if (r.containerState.type || (r.containerState.type = w, e.enter(w, {
3914
3930
  _container: !0
3915
3931
  })), w === "listUnordered")
3916
- return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Ye, t, u)(h) : u(h);
3932
+ return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Xe, t, u)(h) : u(h);
3917
3933
  if (!r.interrupt || h === 49)
3918
3934
  return e.enter("listItemPrefix"), e.enter("listItemValue"), s(h);
3919
3935
  }
3920
3936
  return t(h);
3921
3937
  }
3922
3938
  function s(h) {
3923
- return bn(h) && ++o < 10 ? (e.consume(h), s) : (!r.interrupt || o < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), u(h)) : t(h);
3939
+ return Cn(h) && ++o < 10 ? (e.consume(h), s) : (!r.interrupt || o < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), u(h)) : t(h);
3924
3940
  }
3925
3941
  function u(h) {
3926
3942
  return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
3927
- nn,
3943
+ rn,
3928
3944
  // Can’t be empty when interrupting.
3929
3945
  r.interrupt ? t : c,
3930
- e.attempt(zo, d, p)
3946
+ e.attempt(Oo, d, p)
3931
3947
  );
3932
3948
  }
3933
3949
  function c(h) {
@@ -3940,20 +3956,20 @@ function No(e, n, t) {
3940
3956
  return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(h);
3941
3957
  }
3942
3958
  }
3943
- function _o(e, n, t) {
3959
+ function Fo(e, n, t) {
3944
3960
  const r = this;
3945
- return r.containerState._closeFlow = void 0, e.check(nn, i, l);
3961
+ return r.containerState._closeFlow = void 0, e.check(rn, i, l);
3946
3962
  function i(a) {
3947
3963
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, U(e, n, "listItemIndent", r.containerState.size + 1)(a);
3948
3964
  }
3949
3965
  function l(a) {
3950
- return r.containerState.furtherBlankLines || !M(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(Lo, n, o)(a));
3966
+ return r.containerState.furtherBlankLines || !M(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(Ro, n, o)(a));
3951
3967
  }
3952
3968
  function o(a) {
3953
3969
  return r.containerState._closeFlow = !0, r.interrupt = void 0, U(e, e.attempt(X, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
3954
3970
  }
3955
3971
  }
3956
- function vo(e, n, t) {
3972
+ function Do(e, n, t) {
3957
3973
  const r = this;
3958
3974
  return U(e, i, "listItemIndent", r.containerState.size + 1);
3959
3975
  function i(l) {
@@ -3961,10 +3977,10 @@ function vo(e, n, t) {
3961
3977
  return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? n(l) : t(l);
3962
3978
  }
3963
3979
  }
3964
- function Oo(e) {
3980
+ function Bo(e) {
3965
3981
  e.exit(this.containerState.type);
3966
3982
  }
3967
- function Ro(e, n, t) {
3983
+ function jo(e, n, t) {
3968
3984
  const r = this;
3969
3985
  return U(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
3970
3986
  function i(l) {
@@ -3972,12 +3988,12 @@ function Ro(e, n, t) {
3972
3988
  return !M(l) && o && o[1].type === "listItemPrefixWhitespace" ? n(l) : t(l);
3973
3989
  }
3974
3990
  }
3975
- const yt = {
3991
+ const kt = {
3976
3992
  name: "setextUnderline",
3977
- resolveTo: Mo,
3978
- tokenize: Fo
3993
+ resolveTo: Ho,
3994
+ tokenize: Vo
3979
3995
  };
3980
- function Mo(e, n) {
3996
+ function Ho(e, n) {
3981
3997
  let t = e.length, r, i, l;
3982
3998
  for (; t--; )
3983
3999
  if (e[t][0] === "enter") {
@@ -4001,7 +4017,7 @@ function Mo(e, n) {
4001
4017
  ...e[l][1].end
4002
4018
  }) : e[r][1] = o, e.push(["exit", o, n]), e;
4003
4019
  }
4004
- function Fo(e, n, t) {
4020
+ function Vo(e, n, t) {
4005
4021
  const r = this;
4006
4022
  let i;
4007
4023
  return l;
@@ -4024,16 +4040,16 @@ function Fo(e, n, t) {
4024
4040
  return u === null || L(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
4025
4041
  }
4026
4042
  }
4027
- const Do = {
4028
- tokenize: Bo
4043
+ const Uo = {
4044
+ tokenize: qo
4029
4045
  };
4030
- function Bo(e) {
4046
+ function qo(e) {
4031
4047
  const n = this, t = e.attempt(
4032
4048
  // Try to parse a blank line.
4033
- nn,
4049
+ rn,
4034
4050
  r,
4035
4051
  // Try to parse initial flow (essentially, only code).
4036
- e.attempt(this.parser.constructs.flowInitial, i, U(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Ul, i)), "linePrefix"))
4052
+ e.attempt(this.parser.constructs.flowInitial, i, U(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Kl, i)), "linePrefix"))
4037
4053
  );
4038
4054
  return t;
4039
4055
  function r(l) {
@@ -4051,12 +4067,12 @@ function Bo(e) {
4051
4067
  return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n.currentConstruct = void 0, t;
4052
4068
  }
4053
4069
  }
4054
- const jo = {
4055
- resolveAll: fr()
4056
- }, Ho = hr("string"), Vo = hr("text");
4057
- function hr(e) {
4070
+ const $o = {
4071
+ resolveAll: dr()
4072
+ }, Wo = mr("string"), Go = mr("text");
4073
+ function mr(e) {
4058
4074
  return {
4059
- resolveAll: fr(e === "text" ? Uo : void 0),
4075
+ resolveAll: dr(e === "text" ? Ko : void 0),
4060
4076
  tokenize: n
4061
4077
  };
4062
4078
  function n(t) {
@@ -4090,7 +4106,7 @@ function hr(e) {
4090
4106
  }
4091
4107
  }
4092
4108
  }
4093
- function fr(e) {
4109
+ function dr(e) {
4094
4110
  return n;
4095
4111
  function n(t, r) {
4096
4112
  let i = -1, l;
@@ -4099,7 +4115,7 @@ function fr(e) {
4099
4115
  return e ? e(t, r) : t;
4100
4116
  }
4101
4117
  }
4102
- function Uo(e, n) {
4118
+ function Ko(e, n) {
4103
4119
  let t = 0;
4104
4120
  for (; ++t <= e.length; )
4105
4121
  if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
@@ -4141,7 +4157,7 @@ function Uo(e, n) {
4141
4157
  }
4142
4158
  return e;
4143
4159
  }
4144
- const qo = {
4160
+ const Yo = {
4145
4161
  42: X,
4146
4162
  43: X,
4147
4163
  45: X,
@@ -4155,46 +4171,46 @@ const qo = {
4155
4171
  55: X,
4156
4172
  56: X,
4157
4173
  57: X,
4158
- 62: lr
4159
- }, $o = {
4160
- 91: Kl
4161
- }, Wo = {
4162
- [-2]: on,
4163
- [-1]: on,
4164
- 32: on
4165
- }, Go = {
4166
- 35: eo,
4167
- 42: Ye,
4168
- 45: [yt, Ye],
4169
- 60: io,
4170
- 61: yt,
4171
- 95: Ye,
4172
- 96: dt,
4173
- 126: dt
4174
- }, Ko = {
4175
- 38: ar,
4176
- 92: or
4177
- }, Yo = {
4178
- [-5]: an,
4179
- [-4]: an,
4180
- [-3]: an,
4181
- 33: Co,
4182
- 38: ar,
4183
- 42: wn,
4184
- 60: [El, po],
4185
- 91: Io,
4186
- 92: [Jl, or],
4187
- 93: Hn,
4188
- 95: wn,
4189
- 96: Fl
4174
+ 62: ar
4190
4175
  }, Xo = {
4191
- null: [wn, jo]
4176
+ 91: Zl
4192
4177
  }, Qo = {
4193
- null: [42, 95]
4178
+ [-2]: sn,
4179
+ [-1]: sn,
4180
+ 32: sn
4194
4181
  }, Jo = {
4182
+ 35: lo,
4183
+ 42: Xe,
4184
+ 45: [kt, Xe],
4185
+ 60: so,
4186
+ 61: kt,
4187
+ 95: Xe,
4188
+ 96: yt,
4189
+ 126: yt
4190
+ }, Zo = {
4191
+ 38: sr,
4192
+ 92: ur
4193
+ }, ea = {
4194
+ [-5]: cn,
4195
+ [-4]: cn,
4196
+ [-3]: cn,
4197
+ 33: Po,
4198
+ 38: sr,
4199
+ 42: En,
4200
+ 60: [zl, yo],
4201
+ 91: Lo,
4202
+ 92: [ro, ur],
4203
+ 93: Un,
4204
+ 95: En,
4205
+ 96: Vl
4206
+ }, na = {
4207
+ null: [En, $o]
4208
+ }, ta = {
4209
+ null: [42, 95]
4210
+ }, ra = {
4195
4211
  null: []
4196
- }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: Qo, contentInitial: $o, disable: Jo, document: qo, flow: Go, flowInitial: Wo, insideSpan: Xo, string: Ko, text: Yo }, Symbol.toStringTag, { value: "Module" }));
4197
- function ea(e, n, t) {
4212
+ }, ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: ta, contentInitial: Xo, disable: ra, document: Yo, flow: Jo, flowInitial: Qo, insideSpan: na, string: Zo, text: ea }, Symbol.toStringTag, { value: "Module" }));
4213
+ function la(e, n, t) {
4198
4214
  let r = {
4199
4215
  _bufferIndex: -1,
4200
4216
  _index: 0,
@@ -4207,7 +4223,7 @@ function ea(e, n, t) {
4207
4223
  const s = {
4208
4224
  attempt: R(H),
4209
4225
  check: R(y),
4210
- consume: P,
4226
+ consume: z,
4211
4227
  enter: C,
4212
4228
  exit: B,
4213
4229
  interrupt: R(y, {
@@ -4228,13 +4244,13 @@ function ea(e, n, t) {
4228
4244
  let c = n.tokenize.call(u, s);
4229
4245
  return n.resolveAll && l.push(n), u;
4230
4246
  function p(A) {
4231
- return o = re(o, A), z(), o[o.length - 1] !== null ? [] : (q(n, 0), u.events = jn(l, u.events, u), u.events);
4247
+ return o = re(o, A), P(), o[o.length - 1] !== null ? [] : (q(n, 0), u.events = Vn(l, u.events, u), u.events);
4232
4248
  }
4233
4249
  function d(A, I) {
4234
- return ta(h(A), I);
4250
+ return aa(h(A), I);
4235
4251
  }
4236
4252
  function h(A) {
4237
- return na(o, A);
4253
+ return oa(o, A);
4238
4254
  }
4239
4255
  function w() {
4240
4256
  const {
@@ -4255,7 +4271,7 @@ function ea(e, n, t) {
4255
4271
  function b(A) {
4256
4272
  i[A.line] = A.column, D();
4257
4273
  }
4258
- function z() {
4274
+ function P() {
4259
4275
  let A;
4260
4276
  for (; r._index < o.length; ) {
4261
4277
  const I = o[r._index];
@@ -4269,7 +4285,7 @@ function ea(e, n, t) {
4269
4285
  function k(A) {
4270
4286
  c = c(A);
4271
4287
  }
4272
- function P(A) {
4288
+ function z(A) {
4273
4289
  L(A) ? (r.line++, r.column = 1, r.offset += A === -3 ? 2 : 1, D()) : A !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
4274
4290
  // strings.
4275
4291
  /** @type {string} */
@@ -4304,23 +4320,23 @@ function ea(e, n, t) {
4304
4320
  ])
4305
4321
  ) : le(E);
4306
4322
  function le(K) {
4307
- return Le;
4308
- function Le(de) {
4309
- const Se = de !== null && K[de], Ce = de !== null && K.null, qe = [
4323
+ return Ne;
4324
+ function Ne(de) {
4325
+ const Ce = de !== null && K[de], Ee = de !== null && K.null, $e = [
4310
4326
  // To do: add more extension tests.
4311
4327
  /* c8 ignore next 2 */
4312
- ...Array.isArray(Se) ? Se : Se ? [Se] : [],
4313
- ...Array.isArray(Ce) ? Ce : Ce ? [Ce] : []
4328
+ ...Array.isArray(Ce) ? Ce : Ce ? [Ce] : [],
4329
+ ...Array.isArray(Ee) ? Ee : Ee ? [Ee] : []
4314
4330
  ];
4315
- return he(qe)(de);
4331
+ return he($e)(de);
4316
4332
  }
4317
4333
  }
4318
4334
  function he(K) {
4319
4335
  return G = K, ie = 0, K.length === 0 ? W : m(K[ie]);
4320
4336
  }
4321
4337
  function m(K) {
4322
- return Le;
4323
- function Le(de) {
4338
+ return Ne;
4339
+ function Ne(de) {
4324
4340
  return f = F(), pe = K, K.partial || (u.currentConstruct = K), K.name && u.parser.constructs.disable.null.includes(K.name) ? xe() : K.tokenize.call(
4325
4341
  // If we do have fields, create an object w/ `context` as its
4326
4342
  // prototype.
@@ -4357,7 +4373,7 @@ function ea(e, n, t) {
4357
4373
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
4358
4374
  }
4359
4375
  }
4360
- function na(e, n) {
4376
+ function oa(e, n) {
4361
4377
  const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, l = n.end._bufferIndex;
4362
4378
  let o;
4363
4379
  if (t === i)
@@ -4371,7 +4387,7 @@ function na(e, n) {
4371
4387
  }
4372
4388
  return o;
4373
4389
  }
4374
- function ta(e, n) {
4390
+ function aa(e, n) {
4375
4391
  let t = -1;
4376
4392
  const r = [];
4377
4393
  let i;
@@ -4411,42 +4427,42 @@ function ta(e, n) {
4411
4427
  }
4412
4428
  return r.join("");
4413
4429
  }
4414
- function ra(e) {
4430
+ function ua(e) {
4415
4431
  const r = {
4416
4432
  constructs: (
4417
4433
  /** @type {FullNormalizedExtension} */
4418
- sl([Zo, ...(e || {}).extensions || []])
4434
+ ml([ia, ...(e || {}).extensions || []])
4419
4435
  ),
4420
- content: i(yl),
4436
+ content: i(Sl),
4421
4437
  defined: [],
4422
- document: i(kl),
4423
- flow: i(Do),
4438
+ document: i(El),
4439
+ flow: i(Uo),
4424
4440
  lazy: {},
4425
- string: i(Ho),
4426
- text: i(Vo)
4441
+ string: i(Wo),
4442
+ text: i(Go)
4427
4443
  };
4428
4444
  return r;
4429
4445
  function i(l) {
4430
4446
  return o;
4431
4447
  function o(a) {
4432
- return ea(r, l, a);
4448
+ return la(r, l, a);
4433
4449
  }
4434
4450
  }
4435
4451
  }
4436
- function ia(e) {
4437
- for (; !ur(e); )
4452
+ function sa(e) {
4453
+ for (; !cr(e); )
4438
4454
  ;
4439
4455
  return e;
4440
4456
  }
4441
- const xt = /[\0\t\n\r]/g;
4442
- function la() {
4457
+ const bt = /[\0\t\n\r]/g;
4458
+ function ca() {
4443
4459
  let e = 1, n = "", t = !0, r;
4444
4460
  return i;
4445
4461
  function i(l, o, a) {
4446
4462
  const s = [];
4447
4463
  let u, c, p, d, h;
4448
4464
  for (l = n + (typeof l == "string" ? l.toString() : new TextDecoder(o || void 0).decode(l)), p = 0, n = "", t && (l.charCodeAt(0) === 65279 && p++, t = void 0); p < l.length; ) {
4449
- if (xt.lastIndex = p, u = xt.exec(l), d = u && u.index !== void 0 ? u.index : l.length, h = l.charCodeAt(d), !u) {
4465
+ if (bt.lastIndex = p, u = bt.exec(l), d = u && u.index !== void 0 ? u.index : l.length, h = l.charCodeAt(d), !u) {
4450
4466
  n = l.slice(p);
4451
4467
  break;
4452
4468
  }
@@ -4474,83 +4490,83 @@ function la() {
4474
4490
  return a && (r && s.push(-5), n && s.push(n), s.push(null)), s;
4475
4491
  }
4476
4492
  }
4477
- const oa = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
4478
- function aa(e) {
4479
- return e.replace(oa, ua);
4493
+ const pa = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
4494
+ function ha(e) {
4495
+ return e.replace(pa, fa);
4480
4496
  }
4481
- function ua(e, n, t) {
4497
+ function fa(e, n, t) {
4482
4498
  if (n)
4483
4499
  return n;
4484
4500
  if (t.charCodeAt(0) === 35) {
4485
4501
  const i = t.charCodeAt(1), l = i === 120 || i === 88;
4486
- return ir(t.slice(l ? 2 : 1), l ? 16 : 10);
4502
+ return or(t.slice(l ? 2 : 1), l ? 16 : 10);
4487
4503
  }
4488
- return Bn(t) || e;
4504
+ return Hn(t) || e;
4489
4505
  }
4490
- const mr = {}.hasOwnProperty;
4491
- function sa(e, n, t) {
4492
- return typeof n != "string" && (t = n, n = void 0), ca(t)(ia(ra(t).document().write(la()(e, n, !0))));
4506
+ const gr = {}.hasOwnProperty;
4507
+ function ma(e, n, t) {
4508
+ return typeof n != "string" && (t = n, n = void 0), da(t)(sa(ua(t).document().write(ca()(e, n, !0))));
4493
4509
  }
4494
- function ca(e) {
4510
+ function da(e) {
4495
4511
  const n = {
4496
4512
  transforms: [],
4497
4513
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4498
4514
  enter: {
4499
- autolink: l(Wn),
4515
+ autolink: l(Kn),
4500
4516
  autolinkProtocol: F,
4501
4517
  autolinkEmail: F,
4502
- atxHeading: l(Un),
4503
- blockQuote: l(Ce),
4518
+ atxHeading: l($n),
4519
+ blockQuote: l(Ee),
4504
4520
  characterEscape: F,
4505
4521
  characterReference: F,
4506
- codeFenced: l(qe),
4522
+ codeFenced: l($e),
4507
4523
  codeFencedFenceInfo: o,
4508
4524
  codeFencedFenceMeta: o,
4509
- codeIndented: l(qe, o),
4510
- codeText: l(xr, o),
4525
+ codeIndented: l($e, o),
4526
+ codeText: l(br, o),
4511
4527
  codeTextData: F,
4512
4528
  data: F,
4513
4529
  codeFlowValue: F,
4514
- definition: l(kr),
4530
+ definition: l(wr),
4515
4531
  definitionDestinationString: o,
4516
4532
  definitionLabelString: o,
4517
4533
  definitionTitleString: o,
4518
- emphasis: l(br),
4519
- hardBreakEscape: l(qn),
4520
- hardBreakTrailing: l(qn),
4521
- htmlFlow: l($n, o),
4534
+ emphasis: l(Sr),
4535
+ hardBreakEscape: l(Wn),
4536
+ hardBreakTrailing: l(Wn),
4537
+ htmlFlow: l(Gn, o),
4522
4538
  htmlFlowData: F,
4523
- htmlText: l($n, o),
4539
+ htmlText: l(Gn, o),
4524
4540
  htmlTextData: F,
4525
- image: l(wr),
4541
+ image: l(Cr),
4526
4542
  label: o,
4527
- link: l(Wn),
4528
- listItem: l(Sr),
4543
+ link: l(Kn),
4544
+ listItem: l(Er),
4529
4545
  listItemValue: d,
4530
- listOrdered: l(Gn, p),
4531
- listUnordered: l(Gn),
4532
- paragraph: l(Cr),
4546
+ listOrdered: l(Yn, p),
4547
+ listUnordered: l(Yn),
4548
+ paragraph: l(Ir),
4533
4549
  reference: m,
4534
4550
  referenceString: o,
4535
4551
  resourceDestinationString: o,
4536
4552
  resourceTitleString: o,
4537
- setextHeading: l(Un),
4538
- strong: l(Er),
4539
- thematicBreak: l(Tr)
4553
+ setextHeading: l($n),
4554
+ strong: l(Tr),
4555
+ thematicBreak: l(Pr)
4540
4556
  },
4541
4557
  exit: {
4542
4558
  atxHeading: s(),
4543
4559
  atxHeadingSequence: H,
4544
4560
  autolink: s(),
4545
- autolinkEmail: Se,
4561
+ autolinkEmail: Ce,
4546
4562
  autolinkProtocol: de,
4547
4563
  blockQuote: s(),
4548
4564
  characterEscapeValue: D,
4549
4565
  characterReferenceMarkerHexadecimal: xe,
4550
4566
  characterReferenceMarkerNumeric: xe,
4551
4567
  characterReferenceValue: K,
4552
- characterReference: Le,
4553
- codeFenced: s(z),
4568
+ characterReference: Ne,
4569
+ codeFenced: s(P),
4554
4570
  codeFencedFence: b,
4555
4571
  codeFencedFenceInfo: h,
4556
4572
  codeFencedFenceMeta: w,
@@ -4561,7 +4577,7 @@ function ca(e) {
4561
4577
  data: D,
4562
4578
  definition: s(),
4563
4579
  definitionDestinationString: B,
4564
- definitionLabelString: P,
4580
+ definitionLabelString: z,
4565
4581
  definitionTitleString: C,
4566
4582
  emphasis: s(),
4567
4583
  hardBreakEscape: s(I),
@@ -4590,7 +4606,7 @@ function ca(e) {
4590
4606
  thematicBreak: s()
4591
4607
  }
4592
4608
  };
4593
- dr(n, (e || {}).mdastExtensions || []);
4609
+ yr(n, (e || {}).mdastExtensions || []);
4594
4610
  const t = {};
4595
4611
  return r;
4596
4612
  function r(g) {
@@ -4619,13 +4635,13 @@ function ca(e) {
4619
4635
  }
4620
4636
  for (j = -1; ++j < g.length; ) {
4621
4637
  const ae = n[g[j][0]];
4622
- mr.call(ae, g[j][1].type) && ae[g[j][1].type].call(Object.assign({
4638
+ gr.call(ae, g[j][1].type) && ae[g[j][1].type].call(Object.assign({
4623
4639
  sliceSerialize: g[j][2].sliceSerialize
4624
4640
  }, _), g[j][1]);
4625
4641
  }
4626
4642
  if (_.tokenStack.length > 0) {
4627
4643
  const ae = _.tokenStack[_.tokenStack.length - 1];
4628
- (ae[1] || kt).call(_, void 0, ae[0]);
4644
+ (ae[1] || wt).call(_, void 0, ae[0]);
4629
4645
  }
4630
4646
  for (S.position = {
4631
4647
  start: ge(g.length > 0 ? g[0][1].start : {
@@ -4643,18 +4659,18 @@ function ca(e) {
4643
4659
  return S;
4644
4660
  }
4645
4661
  function i(g, S, _) {
4646
- let O = S - 1, j = -1, ae = !1, ke, fe, Ne, _e;
4662
+ let O = S - 1, j = -1, ae = !1, ke, fe, _e, ve;
4647
4663
  for (; ++O <= _; ) {
4648
4664
  const Z = g[O];
4649
4665
  switch (Z[1].type) {
4650
4666
  case "listUnordered":
4651
4667
  case "listOrdered":
4652
4668
  case "blockQuote": {
4653
- Z[0] === "enter" ? j++ : j--, _e = void 0;
4669
+ Z[0] === "enter" ? j++ : j--, ve = void 0;
4654
4670
  break;
4655
4671
  }
4656
4672
  case "lineEndingBlank": {
4657
- Z[0] === "enter" && (ke && !_e && !j && !Ne && (Ne = O), _e = void 0);
4673
+ Z[0] === "enter" && (ke && !ve && !j && !_e && (_e = O), ve = void 0);
4658
4674
  break;
4659
4675
  }
4660
4676
  case "linePrefix":
@@ -4664,29 +4680,29 @@ function ca(e) {
4664
4680
  case "listItemPrefixWhitespace":
4665
4681
  break;
4666
4682
  default:
4667
- _e = void 0;
4683
+ ve = void 0;
4668
4684
  }
4669
4685
  if (!j && Z[0] === "enter" && Z[1].type === "listItemPrefix" || j === -1 && Z[0] === "exit" && (Z[1].type === "listUnordered" || Z[1].type === "listOrdered")) {
4670
4686
  if (ke) {
4671
- let Ee = O;
4672
- for (fe = void 0; Ee--; ) {
4673
- const me = g[Ee];
4687
+ let Ie = O;
4688
+ for (fe = void 0; Ie--; ) {
4689
+ const me = g[Ie];
4674
4690
  if (me[1].type === "lineEnding" || me[1].type === "lineEndingBlank") {
4675
4691
  if (me[0] === "exit") continue;
4676
- fe && (g[fe][1].type = "lineEndingBlank", ae = !0), me[1].type = "lineEnding", fe = Ee;
4692
+ fe && (g[fe][1].type = "lineEndingBlank", ae = !0), me[1].type = "lineEnding", fe = Ie;
4677
4693
  } else if (!(me[1].type === "linePrefix" || me[1].type === "blockQuotePrefix" || me[1].type === "blockQuotePrefixWhitespace" || me[1].type === "blockQuoteMarker" || me[1].type === "listItemIndent")) break;
4678
4694
  }
4679
- Ne && (!fe || Ne < fe) && (ke._spread = !0), ke.end = Object.assign({}, fe ? g[fe][1].start : Z[1].end), g.splice(fe || O, 0, ["exit", ke, Z[2]]), O++, _++;
4695
+ _e && (!fe || _e < fe) && (ke._spread = !0), ke.end = Object.assign({}, fe ? g[fe][1].start : Z[1].end), g.splice(fe || O, 0, ["exit", ke, Z[2]]), O++, _++;
4680
4696
  }
4681
4697
  if (Z[1].type === "listItemPrefix") {
4682
- const Ee = {
4698
+ const Ie = {
4683
4699
  type: "listItem",
4684
4700
  _spread: !1,
4685
4701
  start: Object.assign({}, Z[1].start),
4686
4702
  // @ts-expect-error: we’ll add `end` in a second.
4687
4703
  end: void 0
4688
4704
  };
4689
- ke = Ee, g.splice(O, 0, ["enter", Ee, Z[2]]), O++, _++, Ne = void 0, _e = !0;
4705
+ ke = Ie, g.splice(O, 0, ["enter", Ie, Z[2]]), O++, _++, _e = void 0, ve = !0;
4690
4706
  }
4691
4707
  }
4692
4708
  }
@@ -4720,15 +4736,15 @@ function ca(e) {
4720
4736
  function u(g, S) {
4721
4737
  const _ = this.stack.pop(), O = this.tokenStack.pop();
4722
4738
  if (O)
4723
- O[0].type !== g.type && (S ? S.call(this, g, O[0]) : (O[1] || kt).call(this, g, O[0]));
4724
- else throw new Error("Cannot close `" + g.type + "` (" + Be({
4739
+ O[0].type !== g.type && (S ? S.call(this, g, O[0]) : (O[1] || wt).call(this, g, O[0]));
4740
+ else throw new Error("Cannot close `" + g.type + "` (" + je({
4725
4741
  start: g.start,
4726
4742
  end: g.end
4727
4743
  }) + "): it’s not open");
4728
4744
  _.position.end = ge(g.end);
4729
4745
  }
4730
4746
  function c() {
4731
- return al(this.stack.pop());
4747
+ return hl(this.stack.pop());
4732
4748
  }
4733
4749
  function p() {
4734
4750
  this.data.expectingFirstListItemValue = !0;
@@ -4750,7 +4766,7 @@ function ca(e) {
4750
4766
  function b() {
4751
4767
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
4752
4768
  }
4753
- function z() {
4769
+ function P() {
4754
4770
  const g = this.resume(), S = this.stack[this.stack.length - 1];
4755
4771
  S.value = g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
4756
4772
  }
@@ -4758,9 +4774,9 @@ function ca(e) {
4758
4774
  const g = this.resume(), S = this.stack[this.stack.length - 1];
4759
4775
  S.value = g.replace(/(\r?\n|\r)$/g, "");
4760
4776
  }
4761
- function P(g) {
4777
+ function z(g) {
4762
4778
  const S = this.resume(), _ = this.stack[this.stack.length - 1];
4763
- _.label = S, _.identifier = Ae(this.sliceSerialize(g)).toLowerCase();
4779
+ _.label = S, _.identifier = Pe(this.sliceSerialize(g)).toLowerCase();
4764
4780
  }
4765
4781
  function C() {
4766
4782
  const g = this.resume(), S = this.stack[this.stack.length - 1];
@@ -4790,7 +4806,7 @@ function ca(e) {
4790
4806
  function F(g) {
4791
4807
  const _ = this.stack[this.stack.length - 1].children;
4792
4808
  let O = _[_.length - 1];
4793
- (!O || O.type !== "text") && (O = Ir(), O.position = {
4809
+ (!O || O.type !== "text") && (O = Ar(), O.position = {
4794
4810
  start: ge(g.start),
4795
4811
  // @ts-expect-error: we’ll add `end` later.
4796
4812
  end: void 0
@@ -4844,7 +4860,7 @@ function ca(e) {
4844
4860
  }
4845
4861
  function ie(g) {
4846
4862
  const S = this.sliceSerialize(g), _ = this.stack[this.stack.length - 2];
4847
- _.label = aa(S), _.identifier = Ae(S).toLowerCase();
4863
+ _.label = ha(S), _.identifier = Pe(S).toLowerCase();
4848
4864
  }
4849
4865
  function pe() {
4850
4866
  const g = this.stack[this.stack.length - 1], S = this.resume(), _ = this.stack[this.stack.length - 1];
@@ -4870,7 +4886,7 @@ function ca(e) {
4870
4886
  }
4871
4887
  function oe(g) {
4872
4888
  const S = this.resume(), _ = this.stack[this.stack.length - 1];
4873
- _.label = S, _.identifier = Ae(this.sliceSerialize(g)).toLowerCase(), this.data.referenceType = "full";
4889
+ _.label = S, _.identifier = Pe(this.sliceSerialize(g)).toLowerCase(), this.data.referenceType = "full";
4874
4890
  }
4875
4891
  function xe(g) {
4876
4892
  this.data.characterReferenceType = g.type;
@@ -4878,11 +4894,11 @@ function ca(e) {
4878
4894
  function K(g) {
4879
4895
  const S = this.sliceSerialize(g), _ = this.data.characterReferenceType;
4880
4896
  let O;
4881
- _ ? (O = ir(S, _ === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : O = Bn(S);
4897
+ _ ? (O = or(S, _ === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : O = Hn(S);
4882
4898
  const j = this.stack[this.stack.length - 1];
4883
4899
  j.value += O;
4884
4900
  }
4885
- function Le(g) {
4901
+ function Ne(g) {
4886
4902
  const S = this.stack.pop();
4887
4903
  S.position.end = ge(g.end);
4888
4904
  }
@@ -4891,18 +4907,18 @@ function ca(e) {
4891
4907
  const S = this.stack[this.stack.length - 1];
4892
4908
  S.url = this.sliceSerialize(g);
4893
4909
  }
4894
- function Se(g) {
4910
+ function Ce(g) {
4895
4911
  D.call(this, g);
4896
4912
  const S = this.stack[this.stack.length - 1];
4897
4913
  S.url = "mailto:" + this.sliceSerialize(g);
4898
4914
  }
4899
- function Ce() {
4915
+ function Ee() {
4900
4916
  return {
4901
4917
  type: "blockquote",
4902
4918
  children: []
4903
4919
  };
4904
4920
  }
4905
- function qe() {
4921
+ function $e() {
4906
4922
  return {
4907
4923
  type: "code",
4908
4924
  lang: null,
@@ -4910,13 +4926,13 @@ function ca(e) {
4910
4926
  value: ""
4911
4927
  };
4912
4928
  }
4913
- function xr() {
4929
+ function br() {
4914
4930
  return {
4915
4931
  type: "inlineCode",
4916
4932
  value: ""
4917
4933
  };
4918
4934
  }
4919
- function kr() {
4935
+ function wr() {
4920
4936
  return {
4921
4937
  type: "definition",
4922
4938
  identifier: "",
@@ -4925,13 +4941,13 @@ function ca(e) {
4925
4941
  url: ""
4926
4942
  };
4927
4943
  }
4928
- function br() {
4944
+ function Sr() {
4929
4945
  return {
4930
4946
  type: "emphasis",
4931
4947
  children: []
4932
4948
  };
4933
4949
  }
4934
- function Un() {
4950
+ function $n() {
4935
4951
  return {
4936
4952
  type: "heading",
4937
4953
  // @ts-expect-error `depth` will be set later.
@@ -4939,18 +4955,18 @@ function ca(e) {
4939
4955
  children: []
4940
4956
  };
4941
4957
  }
4942
- function qn() {
4958
+ function Wn() {
4943
4959
  return {
4944
4960
  type: "break"
4945
4961
  };
4946
4962
  }
4947
- function $n() {
4963
+ function Gn() {
4948
4964
  return {
4949
4965
  type: "html",
4950
4966
  value: ""
4951
4967
  };
4952
4968
  }
4953
- function wr() {
4969
+ function Cr() {
4954
4970
  return {
4955
4971
  type: "image",
4956
4972
  title: null,
@@ -4958,7 +4974,7 @@ function ca(e) {
4958
4974
  alt: null
4959
4975
  };
4960
4976
  }
4961
- function Wn() {
4977
+ function Kn() {
4962
4978
  return {
4963
4979
  type: "link",
4964
4980
  title: null,
@@ -4966,7 +4982,7 @@ function ca(e) {
4966
4982
  children: []
4967
4983
  };
4968
4984
  }
4969
- function Gn(g) {
4985
+ function Yn(g) {
4970
4986
  return {
4971
4987
  type: "list",
4972
4988
  ordered: g.type === "listOrdered",
@@ -4975,7 +4991,7 @@ function ca(e) {
4975
4991
  children: []
4976
4992
  };
4977
4993
  }
4978
- function Sr(g) {
4994
+ function Er(g) {
4979
4995
  return {
4980
4996
  type: "listItem",
4981
4997
  spread: g._spread,
@@ -4983,25 +4999,25 @@ function ca(e) {
4983
4999
  children: []
4984
5000
  };
4985
5001
  }
4986
- function Cr() {
5002
+ function Ir() {
4987
5003
  return {
4988
5004
  type: "paragraph",
4989
5005
  children: []
4990
5006
  };
4991
5007
  }
4992
- function Er() {
5008
+ function Tr() {
4993
5009
  return {
4994
5010
  type: "strong",
4995
5011
  children: []
4996
5012
  };
4997
5013
  }
4998
- function Ir() {
5014
+ function Ar() {
4999
5015
  return {
5000
5016
  type: "text",
5001
5017
  value: ""
5002
5018
  };
5003
5019
  }
5004
- function Tr() {
5020
+ function Pr() {
5005
5021
  return {
5006
5022
  type: "thematicBreak"
5007
5023
  };
@@ -5014,17 +5030,17 @@ function ge(e) {
5014
5030
  offset: e.offset
5015
5031
  };
5016
5032
  }
5017
- function dr(e, n) {
5033
+ function yr(e, n) {
5018
5034
  let t = -1;
5019
5035
  for (; ++t < n.length; ) {
5020
5036
  const r = n[t];
5021
- Array.isArray(r) ? dr(e, r) : pa(e, r);
5037
+ Array.isArray(r) ? yr(e, r) : ga(e, r);
5022
5038
  }
5023
5039
  }
5024
- function pa(e, n) {
5040
+ function ga(e, n) {
5025
5041
  let t;
5026
5042
  for (t in n)
5027
- if (mr.call(n, t))
5043
+ if (gr.call(n, t))
5028
5044
  switch (t) {
5029
5045
  case "canContainEols": {
5030
5046
  const r = n[t];
@@ -5044,23 +5060,23 @@ function pa(e, n) {
5044
5060
  }
5045
5061
  }
5046
5062
  }
5047
- function kt(e, n) {
5048
- throw e ? new Error("Cannot close `" + e.type + "` (" + Be({
5063
+ function wt(e, n) {
5064
+ throw e ? new Error("Cannot close `" + e.type + "` (" + je({
5049
5065
  start: e.start,
5050
5066
  end: e.end
5051
- }) + "): a different token (`" + n.type + "`, " + Be({
5067
+ }) + "): a different token (`" + n.type + "`, " + je({
5052
5068
  start: n.start,
5053
5069
  end: n.end
5054
- }) + ") is open") : new Error("Cannot close document, a token (`" + n.type + "`, " + Be({
5070
+ }) + ") is open") : new Error("Cannot close document, a token (`" + n.type + "`, " + je({
5055
5071
  start: n.start,
5056
5072
  end: n.end
5057
5073
  }) + ") is still open");
5058
5074
  }
5059
- function ha(e) {
5075
+ function ya(e) {
5060
5076
  const n = this;
5061
5077
  n.parser = t;
5062
5078
  function t(r) {
5063
- return sa(r, {
5079
+ return ma(r, {
5064
5080
  ...n.data("settings"),
5065
5081
  ...e,
5066
5082
  // Note: these options are not in the readme.
@@ -5071,7 +5087,7 @@ function ha(e) {
5071
5087
  });
5072
5088
  }
5073
5089
  }
5074
- function fa(e, n) {
5090
+ function xa(e, n) {
5075
5091
  const t = {
5076
5092
  type: "element",
5077
5093
  tagName: "blockquote",
@@ -5080,12 +5096,12 @@ function fa(e, n) {
5080
5096
  };
5081
5097
  return e.patch(n, t), e.applyData(n, t);
5082
5098
  }
5083
- function ma(e, n) {
5099
+ function ka(e, n) {
5084
5100
  const t = { type: "element", tagName: "br", properties: {}, children: [] };
5085
5101
  return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
5086
5102
  ` }];
5087
5103
  }
5088
- function da(e, n) {
5104
+ function ba(e, n) {
5089
5105
  const t = n.value ? n.value + `
5090
5106
  ` : "", r = {};
5091
5107
  n.lang && (r.className = ["language-" + n.lang]);
@@ -5097,7 +5113,7 @@ function da(e, n) {
5097
5113
  };
5098
5114
  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;
5099
5115
  }
5100
- function ga(e, n) {
5116
+ function wa(e, n) {
5101
5117
  const t = {
5102
5118
  type: "element",
5103
5119
  tagName: "del",
@@ -5106,7 +5122,7 @@ function ga(e, n) {
5106
5122
  };
5107
5123
  return e.patch(n, t), e.applyData(n, t);
5108
5124
  }
5109
- function ya(e, n) {
5125
+ function Sa(e, n) {
5110
5126
  const t = {
5111
5127
  type: "element",
5112
5128
  tagName: "em",
@@ -5115,8 +5131,8 @@ function ya(e, n) {
5115
5131
  };
5116
5132
  return e.patch(n, t), e.applyData(n, t);
5117
5133
  }
5118
- function xa(e, n) {
5119
- const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = ze(r.toLowerCase()), l = e.footnoteOrder.indexOf(r);
5134
+ function Ca(e, n) {
5135
+ const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Le(r.toLowerCase()), l = e.footnoteOrder.indexOf(r);
5120
5136
  let o, a = e.footnoteCounts.get(r);
5121
5137
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = l + 1, a += 1, e.footnoteCounts.set(r, a);
5122
5138
  const s = {
@@ -5139,7 +5155,7 @@ function xa(e, n) {
5139
5155
  };
5140
5156
  return e.patch(n, u), e.applyData(n, u);
5141
5157
  }
5142
- function ka(e, n) {
5158
+ function Ea(e, n) {
5143
5159
  const t = {
5144
5160
  type: "element",
5145
5161
  tagName: "h" + n.depth,
@@ -5148,13 +5164,13 @@ function ka(e, n) {
5148
5164
  };
5149
5165
  return e.patch(n, t), e.applyData(n, t);
5150
5166
  }
5151
- function ba(e, n) {
5167
+ function Ia(e, n) {
5152
5168
  if (e.options.allowDangerousHtml) {
5153
5169
  const t = { type: "raw", value: n.value };
5154
5170
  return e.patch(n, t), e.applyData(n, t);
5155
5171
  }
5156
5172
  }
5157
- function gr(e, n) {
5173
+ function xr(e, n) {
5158
5174
  const t = n.referenceType;
5159
5175
  let r = "]";
5160
5176
  if (t === "collapsed" ? r += "[]" : t === "full" && (r += "[" + (n.label || n.identifier) + "]"), n.type === "imageReference")
@@ -5164,22 +5180,22 @@ function gr(e, n) {
5164
5180
  const o = i[i.length - 1];
5165
5181
  return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
5166
5182
  }
5167
- function wa(e, n) {
5183
+ function Ta(e, n) {
5168
5184
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
5169
5185
  if (!r)
5170
- return gr(e, n);
5171
- const i = { src: ze(r.url || ""), alt: n.alt };
5186
+ return xr(e, n);
5187
+ const i = { src: Le(r.url || ""), alt: n.alt };
5172
5188
  r.title !== null && r.title !== void 0 && (i.title = r.title);
5173
5189
  const l = { type: "element", tagName: "img", properties: i, children: [] };
5174
5190
  return e.patch(n, l), e.applyData(n, l);
5175
5191
  }
5176
- function Sa(e, n) {
5177
- const t = { src: ze(n.url) };
5192
+ function Aa(e, n) {
5193
+ const t = { src: Le(n.url) };
5178
5194
  n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
5179
5195
  const r = { type: "element", tagName: "img", properties: t, children: [] };
5180
5196
  return e.patch(n, r), e.applyData(n, r);
5181
5197
  }
5182
- function Ca(e, n) {
5198
+ function Pa(e, n) {
5183
5199
  const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
5184
5200
  e.patch(n, t);
5185
5201
  const r = {
@@ -5190,11 +5206,11 @@ function Ca(e, n) {
5190
5206
  };
5191
5207
  return e.patch(n, r), e.applyData(n, r);
5192
5208
  }
5193
- function Ea(e, n) {
5209
+ function za(e, n) {
5194
5210
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
5195
5211
  if (!r)
5196
- return gr(e, n);
5197
- const i = { href: ze(r.url || "") };
5212
+ return xr(e, n);
5213
+ const i = { href: Le(r.url || "") };
5198
5214
  r.title !== null && r.title !== void 0 && (i.title = r.title);
5199
5215
  const l = {
5200
5216
  type: "element",
@@ -5204,8 +5220,8 @@ function Ea(e, n) {
5204
5220
  };
5205
5221
  return e.patch(n, l), e.applyData(n, l);
5206
5222
  }
5207
- function Ia(e, n) {
5208
- const t = { href: ze(n.url) };
5223
+ function La(e, n) {
5224
+ const t = { href: Le(n.url) };
5209
5225
  n.title !== null && n.title !== void 0 && (t.title = n.title);
5210
5226
  const r = {
5211
5227
  type: "element",
@@ -5215,8 +5231,8 @@ function Ia(e, n) {
5215
5231
  };
5216
5232
  return e.patch(n, r), e.applyData(n, r);
5217
5233
  }
5218
- function Ta(e, n, t) {
5219
- const r = e.all(n), i = t ? Aa(t) : yr(n), l = {}, o = [];
5234
+ function Na(e, n, t) {
5235
+ const r = e.all(n), i = t ? _a(t) : kr(n), l = {}, o = [];
5220
5236
  if (typeof n.checked == "boolean") {
5221
5237
  const c = r[0];
5222
5238
  let p;
@@ -5239,22 +5255,22 @@ function Ta(e, n, t) {
5239
5255
  const u = { type: "element", tagName: "li", properties: l, children: o };
5240
5256
  return e.patch(n, u), e.applyData(n, u);
5241
5257
  }
5242
- function Aa(e) {
5258
+ function _a(e) {
5243
5259
  let n = !1;
5244
5260
  if (e.type === "list") {
5245
5261
  n = e.spread || !1;
5246
5262
  const t = e.children;
5247
5263
  let r = -1;
5248
5264
  for (; !n && ++r < t.length; )
5249
- n = yr(t[r]);
5265
+ n = kr(t[r]);
5250
5266
  }
5251
5267
  return n;
5252
5268
  }
5253
- function yr(e) {
5269
+ function kr(e) {
5254
5270
  const n = e.spread;
5255
5271
  return n ?? e.children.length > 1;
5256
5272
  }
5257
- function Pa(e, n) {
5273
+ function va(e, n) {
5258
5274
  const t = {}, r = e.all(n);
5259
5275
  let i = -1;
5260
5276
  for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
@@ -5272,7 +5288,7 @@ function Pa(e, n) {
5272
5288
  };
5273
5289
  return e.patch(n, l), e.applyData(n, l);
5274
5290
  }
5275
- function za(e, n) {
5291
+ function Oa(e, n) {
5276
5292
  const t = {
5277
5293
  type: "element",
5278
5294
  tagName: "p",
@@ -5281,11 +5297,11 @@ function za(e, n) {
5281
5297
  };
5282
5298
  return e.patch(n, t), e.applyData(n, t);
5283
5299
  }
5284
- function La(e, n) {
5300
+ function Ra(e, n) {
5285
5301
  const t = { type: "root", children: e.wrap(e.all(n)) };
5286
5302
  return e.patch(n, t), e.applyData(n, t);
5287
5303
  }
5288
- function Na(e, n) {
5304
+ function Ma(e, n) {
5289
5305
  const t = {
5290
5306
  type: "element",
5291
5307
  tagName: "strong",
@@ -5294,7 +5310,7 @@ function Na(e, n) {
5294
5310
  };
5295
5311
  return e.patch(n, t), e.applyData(n, t);
5296
5312
  }
5297
- function _a(e, n) {
5313
+ function Fa(e, n) {
5298
5314
  const t = e.all(n), r = t.shift(), i = [];
5299
5315
  if (r) {
5300
5316
  const o = {
@@ -5311,7 +5327,7 @@ function _a(e, n) {
5311
5327
  tagName: "tbody",
5312
5328
  properties: {},
5313
5329
  children: e.wrap(t, !0)
5314
- }, a = Rn(n.children[1]), s = Qt(n.children[n.children.length - 1]);
5330
+ }, a = Fn(n.children[1]), s = Zt(n.children[n.children.length - 1]);
5315
5331
  a && s && (o.position = { start: a, end: s }), i.push(o);
5316
5332
  }
5317
5333
  const l = {
@@ -5322,7 +5338,7 @@ function _a(e, n) {
5322
5338
  };
5323
5339
  return e.patch(n, l), e.applyData(n, l);
5324
5340
  }
5325
- function va(e, n, t) {
5341
+ function Da(e, n, t) {
5326
5342
  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;
5327
5343
  let s = -1;
5328
5344
  const u = [];
@@ -5340,7 +5356,7 @@ function va(e, n, t) {
5340
5356
  };
5341
5357
  return e.patch(n, c), e.applyData(n, c);
5342
5358
  }
5343
- function Oa(e, n) {
5359
+ function Ba(e, n) {
5344
5360
  const t = {
5345
5361
  type: "element",
5346
5362
  tagName: "td",
@@ -5350,37 +5366,37 @@ function Oa(e, n) {
5350
5366
  };
5351
5367
  return e.patch(n, t), e.applyData(n, t);
5352
5368
  }
5353
- const bt = 9, wt = 32;
5354
- function Ra(e) {
5369
+ const St = 9, Ct = 32;
5370
+ function ja(e) {
5355
5371
  const n = String(e), t = /\r?\n|\r/g;
5356
5372
  let r = t.exec(n), i = 0;
5357
5373
  const l = [];
5358
5374
  for (; r; )
5359
5375
  l.push(
5360
- St(n.slice(i, r.index), i > 0, !0),
5376
+ Et(n.slice(i, r.index), i > 0, !0),
5361
5377
  r[0]
5362
5378
  ), i = r.index + r[0].length, r = t.exec(n);
5363
- return l.push(St(n.slice(i), i > 0, !1)), l.join("");
5379
+ return l.push(Et(n.slice(i), i > 0, !1)), l.join("");
5364
5380
  }
5365
- function St(e, n, t) {
5381
+ function Et(e, n, t) {
5366
5382
  let r = 0, i = e.length;
5367
5383
  if (n) {
5368
5384
  let l = e.codePointAt(r);
5369
- for (; l === bt || l === wt; )
5385
+ for (; l === St || l === Ct; )
5370
5386
  r++, l = e.codePointAt(r);
5371
5387
  }
5372
5388
  if (t) {
5373
5389
  let l = e.codePointAt(i - 1);
5374
- for (; l === bt || l === wt; )
5390
+ for (; l === St || l === Ct; )
5375
5391
  i--, l = e.codePointAt(i - 1);
5376
5392
  }
5377
5393
  return i > r ? e.slice(r, i) : "";
5378
5394
  }
5379
- function Ma(e, n) {
5380
- const t = { type: "text", value: Ra(String(n.value)) };
5395
+ function Ha(e, n) {
5396
+ const t = { type: "text", value: ja(String(n.value)) };
5381
5397
  return e.patch(n, t), e.applyData(n, t);
5382
5398
  }
5383
- function Fa(e, n) {
5399
+ function Va(e, n) {
5384
5400
  const t = {
5385
5401
  type: "element",
5386
5402
  tagName: "hr",
@@ -5389,39 +5405,39 @@ function Fa(e, n) {
5389
5405
  };
5390
5406
  return e.patch(n, t), e.applyData(n, t);
5391
5407
  }
5392
- const Da = {
5393
- blockquote: fa,
5394
- break: ma,
5395
- code: da,
5396
- delete: ga,
5397
- emphasis: ya,
5398
- footnoteReference: xa,
5399
- heading: ka,
5400
- html: ba,
5401
- imageReference: wa,
5402
- image: Sa,
5403
- inlineCode: Ca,
5404
- linkReference: Ea,
5405
- link: Ia,
5406
- listItem: Ta,
5407
- list: Pa,
5408
- paragraph: za,
5408
+ const Ua = {
5409
+ blockquote: xa,
5410
+ break: ka,
5411
+ code: ba,
5412
+ delete: wa,
5413
+ emphasis: Sa,
5414
+ footnoteReference: Ca,
5415
+ heading: Ea,
5416
+ html: Ia,
5417
+ imageReference: Ta,
5418
+ image: Aa,
5419
+ inlineCode: Pa,
5420
+ linkReference: za,
5421
+ link: La,
5422
+ listItem: Na,
5423
+ list: va,
5424
+ paragraph: Oa,
5409
5425
  // @ts-expect-error: root is different, but hard to type.
5410
- root: La,
5411
- strong: Na,
5412
- table: _a,
5413
- tableCell: Oa,
5414
- tableRow: va,
5415
- text: Ma,
5416
- thematicBreak: Fa,
5417
- toml: We,
5418
- yaml: We,
5419
- definition: We,
5420
- footnoteDefinition: We
5426
+ root: Ra,
5427
+ strong: Ma,
5428
+ table: Fa,
5429
+ tableCell: Ba,
5430
+ tableRow: Da,
5431
+ text: Ha,
5432
+ thematicBreak: Va,
5433
+ toml: Ge,
5434
+ yaml: Ge,
5435
+ definition: Ge,
5436
+ footnoteDefinition: Ge
5421
5437
  };
5422
- function We() {
5438
+ function Ge() {
5423
5439
  }
5424
- function Ba(e, n) {
5440
+ function qa(e, n) {
5425
5441
  const t = [{ type: "text", value: "↩" }];
5426
5442
  return n > 1 && t.push({
5427
5443
  type: "element",
@@ -5430,11 +5446,11 @@ function Ba(e, n) {
5430
5446
  children: [{ type: "text", value: String(n) }]
5431
5447
  }), t;
5432
5448
  }
5433
- function ja(e, n) {
5449
+ function $a(e, n) {
5434
5450
  return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
5435
5451
  }
5436
- function Ha(e) {
5437
- const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Ba, r = e.options.footnoteBackLabel || ja, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
5452
+ function Wa(e) {
5453
+ const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || qa, r = e.options.footnoteBackLabel || $a, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
5438
5454
  className: ["sr-only"]
5439
5455
  }, a = [];
5440
5456
  let s = -1;
@@ -5444,13 +5460,13 @@ function Ha(e) {
5444
5460
  );
5445
5461
  if (!u)
5446
5462
  continue;
5447
- const c = e.all(u), p = String(u.identifier).toUpperCase(), d = ze(p.toLowerCase());
5463
+ const c = e.all(u), p = String(u.identifier).toUpperCase(), d = Le(p.toLowerCase());
5448
5464
  let h = 0;
5449
5465
  const w = [], b = e.footnoteCounts.get(p);
5450
5466
  for (; b !== void 0 && ++h <= b; ) {
5451
5467
  w.length > 0 && w.push({ type: "text", value: " " });
5452
- let P = typeof t == "string" ? t : t(s, h);
5453
- typeof P == "string" && (P = { type: "text", value: P }), w.push({
5468
+ let z = typeof t == "string" ? t : t(s, h);
5469
+ typeof z == "string" && (z = { type: "text", value: z }), w.push({
5454
5470
  type: "element",
5455
5471
  tagName: "a",
5456
5472
  properties: {
@@ -5459,13 +5475,13 @@ function Ha(e) {
5459
5475
  ariaLabel: typeof r == "string" ? r : r(s, h),
5460
5476
  className: ["data-footnote-backref"]
5461
5477
  },
5462
- children: Array.isArray(P) ? P : [P]
5478
+ children: Array.isArray(z) ? z : [z]
5463
5479
  });
5464
5480
  }
5465
- const z = c[c.length - 1];
5466
- if (z && z.type === "element" && z.tagName === "p") {
5467
- const P = z.children[z.children.length - 1];
5468
- P && P.type === "text" ? P.value += " " : z.children.push({ type: "text", value: " " }), z.children.push(...w);
5481
+ const P = c[c.length - 1];
5482
+ if (P && P.type === "element" && P.tagName === "p") {
5483
+ const z = P.children[P.children.length - 1];
5484
+ z && z.type === "text" ? z.value += " " : P.children.push({ type: "text", value: " " }), P.children.push(...w);
5469
5485
  } else
5470
5486
  c.push(...w);
5471
5487
  const k = {
@@ -5486,7 +5502,7 @@ function Ha(e) {
5486
5502
  type: "element",
5487
5503
  tagName: l,
5488
5504
  properties: {
5489
- ...be(o),
5505
+ ...we(o),
5490
5506
  id: "footnote-label"
5491
5507
  },
5492
5508
  children: [{ type: "text", value: i }]
@@ -5504,11 +5520,11 @@ function Ha(e) {
5504
5520
  ]
5505
5521
  };
5506
5522
  }
5507
- const Sn = {}.hasOwnProperty, Va = {};
5508
- function Ua(e, n) {
5509
- const t = n || Va, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...Da, ...t.handlers }, a = {
5523
+ const In = {}.hasOwnProperty, Ga = {};
5524
+ function Ka(e, n) {
5525
+ const t = n || Ga, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...Ua, ...t.handlers }, a = {
5510
5526
  all: u,
5511
- applyData: $a,
5527
+ applyData: Xa,
5512
5528
  definitionById: r,
5513
5529
  footnoteById: i,
5514
5530
  footnoteCounts: l,
@@ -5516,10 +5532,10 @@ function Ua(e, n) {
5516
5532
  handlers: o,
5517
5533
  one: s,
5518
5534
  options: t,
5519
- patch: qa,
5520
- wrap: Ga
5535
+ patch: Ya,
5536
+ wrap: Ja
5521
5537
  };
5522
- return en(e, function(c) {
5538
+ return tn(e, function(c) {
5523
5539
  if (c.type === "definition" || c.type === "footnoteDefinition") {
5524
5540
  const p = c.type === "definition" ? r : i, d = String(c.identifier).toUpperCase();
5525
5541
  p.has(d) || p.set(d, c);
@@ -5527,16 +5543,16 @@ function Ua(e, n) {
5527
5543
  }), a;
5528
5544
  function s(c, p) {
5529
5545
  const d = c.type, h = a.handlers[d];
5530
- if (Sn.call(a.handlers, d) && h)
5546
+ if (In.call(a.handlers, d) && h)
5531
5547
  return h(a, c, p);
5532
5548
  if (a.options.passThrough && a.options.passThrough.includes(d)) {
5533
5549
  if ("children" in c) {
5534
- const { children: b, ...z } = c, k = be(z);
5550
+ const { children: b, ...P } = c, k = we(P);
5535
5551
  return k.children = a.all(c), k;
5536
5552
  }
5537
- return be(c);
5553
+ return we(c);
5538
5554
  }
5539
- return (a.options.unknownHandler || Wa)(a, c, p);
5555
+ return (a.options.unknownHandler || Qa)(a, c, p);
5540
5556
  }
5541
5557
  function u(c) {
5542
5558
  const p = [];
@@ -5546,9 +5562,9 @@ function Ua(e, n) {
5546
5562
  for (; ++h < d.length; ) {
5547
5563
  const w = a.one(d[h], c);
5548
5564
  if (w) {
5549
- if (h && d[h - 1].type === "break" && (!Array.isArray(w) && w.type === "text" && (w.value = Ct(w.value)), !Array.isArray(w) && w.type === "element")) {
5565
+ if (h && d[h - 1].type === "break" && (!Array.isArray(w) && w.type === "text" && (w.value = It(w.value)), !Array.isArray(w) && w.type === "element")) {
5550
5566
  const b = w.children[0];
5551
- b && b.type === "text" && (b.value = Ct(b.value));
5567
+ b && b.type === "text" && (b.value = It(b.value));
5552
5568
  }
5553
5569
  Array.isArray(w) ? p.push(...w) : p.push(w);
5554
5570
  }
@@ -5557,10 +5573,10 @@ function Ua(e, n) {
5557
5573
  return p;
5558
5574
  }
5559
5575
  }
5560
- function qa(e, n) {
5561
- e.position && (n.position = Mi(e));
5576
+ function Ya(e, n) {
5577
+ e.position && (n.position = Hi(e));
5562
5578
  }
5563
- function $a(e, n) {
5579
+ function Xa(e, n) {
5564
5580
  let t = n;
5565
5581
  if (e && e.data) {
5566
5582
  const r = e.data.hName, i = e.data.hChildren, l = e.data.hProperties;
@@ -5571,12 +5587,12 @@ function $a(e, n) {
5571
5587
  const o = "children" in t ? t.children : [t];
5572
5588
  t = { type: "element", tagName: r, properties: {}, children: o };
5573
5589
  }
5574
- t.type === "element" && l && Object.assign(t.properties, be(l)), "children" in t && t.children && i !== null && i !== void 0 && (t.children = i);
5590
+ t.type === "element" && l && Object.assign(t.properties, we(l)), "children" in t && t.children && i !== null && i !== void 0 && (t.children = i);
5575
5591
  }
5576
5592
  return t;
5577
5593
  }
5578
- function Wa(e, n) {
5579
- const t = n.data || {}, r = "value" in n && !(Sn.call(t, "hProperties") || Sn.call(t, "hChildren")) ? { type: "text", value: n.value } : {
5594
+ function Qa(e, n) {
5595
+ const t = n.data || {}, r = "value" in n && !(In.call(t, "hProperties") || In.call(t, "hChildren")) ? { type: "text", value: n.value } : {
5580
5596
  type: "element",
5581
5597
  tagName: "div",
5582
5598
  properties: {},
@@ -5584,7 +5600,7 @@ function Wa(e, n) {
5584
5600
  };
5585
5601
  return e.patch(n, r), e.applyData(n, r);
5586
5602
  }
5587
- function Ga(e, n) {
5603
+ function Ja(e, n) {
5588
5604
  const t = [];
5589
5605
  let r = -1;
5590
5606
  for (n && t.push({ type: "text", value: `
@@ -5594,39 +5610,39 @@ function Ga(e, n) {
5594
5610
  return n && e.length > 0 && t.push({ type: "text", value: `
5595
5611
  ` }), t;
5596
5612
  }
5597
- function Ct(e) {
5613
+ function It(e) {
5598
5614
  let n = 0, t = e.charCodeAt(n);
5599
5615
  for (; t === 9 || t === 32; )
5600
5616
  n++, t = e.charCodeAt(n);
5601
5617
  return e.slice(n);
5602
5618
  }
5603
- function Et(e, n) {
5604
- const t = Ua(e, n), r = t.one(e, void 0), i = Ha(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5619
+ function Tt(e, n) {
5620
+ const t = Ka(e, n), r = t.one(e, void 0), i = Wa(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5605
5621
  return i && l.children.push({ type: "text", value: `
5606
5622
  ` }, i), l;
5607
5623
  }
5608
- function Ka(e, n) {
5624
+ function Za(e, n) {
5609
5625
  return e && "run" in e ? async function(t, r) {
5610
5626
  const i = (
5611
5627
  /** @type {HastRoot} */
5612
- Et(t, { file: r, ...n })
5628
+ Tt(t, { file: r, ...n })
5613
5629
  );
5614
5630
  await e.run(i, r);
5615
5631
  } : function(t, r) {
5616
5632
  return (
5617
5633
  /** @type {HastRoot} */
5618
- Et(t, { file: r, ...e || n })
5634
+ Tt(t, { file: r, ...e || n })
5619
5635
  );
5620
5636
  };
5621
5637
  }
5622
- function It(e) {
5638
+ function At(e) {
5623
5639
  if (e)
5624
5640
  throw e;
5625
5641
  }
5626
- var un, Tt;
5627
- function Ya() {
5628
- if (Tt) return un;
5629
- Tt = 1;
5642
+ var pn, Pt;
5643
+ function eu() {
5644
+ if (Pt) return pn;
5645
+ Pt = 1;
5630
5646
  var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
5631
5647
  return typeof Array.isArray == "function" ? Array.isArray(u) : n.call(u) === "[object Array]";
5632
5648
  }, l = function(u) {
@@ -5654,24 +5670,24 @@ function Ya() {
5654
5670
  } else return;
5655
5671
  return u[c];
5656
5672
  };
5657
- return un = function s() {
5658
- var u, c, p, d, h, w, b = arguments[0], z = 1, k = arguments.length, P = !1;
5659
- for (typeof b == "boolean" && (P = b, b = arguments[1] || {}, z = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); z < k; ++z)
5660
- if (u = arguments[z], u != null)
5673
+ return pn = function s() {
5674
+ var u, c, p, d, h, w, b = arguments[0], P = 1, k = arguments.length, z = !1;
5675
+ for (typeof b == "boolean" && (z = b, b = arguments[1] || {}, P = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); P < k; ++P)
5676
+ if (u = arguments[P], u != null)
5661
5677
  for (c in u)
5662
- p = a(b, c), d = a(u, c), b !== d && (P && d && (l(d) || (h = i(d))) ? (h ? (h = !1, w = p && i(p) ? p : []) : w = p && l(p) ? p : {}, o(b, { name: c, newValue: s(P, w, d) })) : typeof d < "u" && o(b, { name: c, newValue: d }));
5678
+ p = a(b, c), d = a(u, c), b !== d && (z && d && (l(d) || (h = i(d))) ? (h ? (h = !1, w = p && i(p) ? p : []) : w = p && l(p) ? p : {}, o(b, { name: c, newValue: s(z, w, d) })) : typeof d < "u" && o(b, { name: c, newValue: d }));
5663
5679
  return b;
5664
- }, un;
5680
+ }, pn;
5665
5681
  }
5666
- var Xa = /* @__PURE__ */ Ya();
5667
- const sn = /* @__PURE__ */ vt(Xa);
5668
- function Cn(e) {
5682
+ var nu = /* @__PURE__ */ eu();
5683
+ const hn = /* @__PURE__ */ Rt(nu);
5684
+ function Tn(e) {
5669
5685
  if (typeof e != "object" || e === null)
5670
5686
  return !1;
5671
5687
  const n = Object.getPrototypeOf(e);
5672
5688
  return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
5673
5689
  }
5674
- function Qa() {
5690
+ function tu() {
5675
5691
  const e = [], n = { run: t, use: r };
5676
5692
  return n;
5677
5693
  function t(...i) {
@@ -5689,7 +5705,7 @@ function Qa() {
5689
5705
  }
5690
5706
  for (; ++p < i.length; )
5691
5707
  (u[p] === null || u[p] === void 0) && (u[p] = i[p]);
5692
- i = u, c ? Ja(c, a)(...u) : o(null, ...u);
5708
+ i = u, c ? ru(c, a)(...u) : o(null, ...u);
5693
5709
  }
5694
5710
  }
5695
5711
  function r(i) {
@@ -5700,7 +5716,7 @@ function Qa() {
5700
5716
  return e.push(i), n;
5701
5717
  }
5702
5718
  }
5703
- function Ja(e, n) {
5719
+ function ru(e, n) {
5704
5720
  let t;
5705
5721
  return r;
5706
5722
  function r(...o) {
@@ -5727,11 +5743,11 @@ function Ja(e, n) {
5727
5743
  i(null, o);
5728
5744
  }
5729
5745
  }
5730
- const ue = { basename: Za, dirname: eu, extname: nu, join: tu, sep: "/" };
5731
- function Za(e, n) {
5746
+ const ue = { basename: iu, dirname: lu, extname: ou, join: au, sep: "/" };
5747
+ function iu(e, n) {
5732
5748
  if (n !== void 0 && typeof n != "string")
5733
5749
  throw new TypeError('"ext" argument must be a string');
5734
- Ue(e);
5750
+ qe(e);
5735
5751
  let t = 0, r = -1, i = e.length, l;
5736
5752
  if (n === void 0 || n.length === 0 || n.length > e.length) {
5737
5753
  for (; i--; )
@@ -5756,8 +5772,8 @@ function Za(e, n) {
5756
5772
  o < 0 && (l = !0, o = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
5757
5773
  return t === r ? r = o : r < 0 && (r = e.length), e.slice(t, r);
5758
5774
  }
5759
- function eu(e) {
5760
- if (Ue(e), e.length === 0)
5775
+ function lu(e) {
5776
+ if (qe(e), e.length === 0)
5761
5777
  return ".";
5762
5778
  let n = -1, t = e.length, r;
5763
5779
  for (; --t; )
@@ -5769,8 +5785,8 @@ function eu(e) {
5769
5785
  } else r || (r = !0);
5770
5786
  return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
5771
5787
  }
5772
- function nu(e) {
5773
- Ue(e);
5788
+ function ou(e) {
5789
+ qe(e);
5774
5790
  let n = e.length, t = -1, r = 0, i = -1, l = 0, o;
5775
5791
  for (; n--; ) {
5776
5792
  const a = e.codePointAt(n);
@@ -5787,19 +5803,19 @@ function nu(e) {
5787
5803
  l === 0 || // The (right-most) trimmed path component is exactly `..`.
5788
5804
  l === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
5789
5805
  }
5790
- function tu(...e) {
5806
+ function au(...e) {
5791
5807
  let n = -1, t;
5792
5808
  for (; ++n < e.length; )
5793
- Ue(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
5794
- return t === void 0 ? "." : ru(t);
5809
+ qe(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
5810
+ return t === void 0 ? "." : uu(t);
5795
5811
  }
5796
- function ru(e) {
5797
- Ue(e);
5812
+ function uu(e) {
5813
+ qe(e);
5798
5814
  const n = e.codePointAt(0) === 47;
5799
- let t = iu(e, !n);
5815
+ let t = su(e, !n);
5800
5816
  return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
5801
5817
  }
5802
- function iu(e, n) {
5818
+ function su(e, n) {
5803
5819
  let t = "", r = 0, i = -1, l = 0, o = -1, a, s;
5804
5820
  for (; ++o <= e.length; ) {
5805
5821
  if (o < e.length)
@@ -5830,24 +5846,24 @@ function iu(e, n) {
5830
5846
  }
5831
5847
  return t;
5832
5848
  }
5833
- function Ue(e) {
5849
+ function qe(e) {
5834
5850
  if (typeof e != "string")
5835
5851
  throw new TypeError(
5836
5852
  "Path must be a string. Received " + JSON.stringify(e)
5837
5853
  );
5838
5854
  }
5839
- const lu = { cwd: ou };
5840
- function ou() {
5855
+ const cu = { cwd: pu };
5856
+ function pu() {
5841
5857
  return "/";
5842
5858
  }
5843
- function En(e) {
5859
+ function An(e) {
5844
5860
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
5845
5861
  e.auth === void 0);
5846
5862
  }
5847
- function au(e) {
5863
+ function hu(e) {
5848
5864
  if (typeof e == "string")
5849
5865
  e = new URL(e);
5850
- else if (!En(e)) {
5866
+ else if (!An(e)) {
5851
5867
  const n = new TypeError(
5852
5868
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
5853
5869
  );
@@ -5857,9 +5873,9 @@ function au(e) {
5857
5873
  const n = new TypeError("The URL must be of scheme file");
5858
5874
  throw n.code = "ERR_INVALID_URL_SCHEME", n;
5859
5875
  }
5860
- return uu(e);
5876
+ return fu(e);
5861
5877
  }
5862
- function uu(e) {
5878
+ function fu(e) {
5863
5879
  if (e.hostname !== "") {
5864
5880
  const r = new TypeError(
5865
5881
  'File URL host must be "localhost" or empty on darwin'
@@ -5880,7 +5896,7 @@ function uu(e) {
5880
5896
  }
5881
5897
  return decodeURIComponent(n);
5882
5898
  }
5883
- const cn = (
5899
+ const fn = (
5884
5900
  /** @type {const} */
5885
5901
  [
5886
5902
  "history",
@@ -5891,7 +5907,7 @@ const cn = (
5891
5907
  "dirname"
5892
5908
  ]
5893
5909
  );
5894
- class su {
5910
+ class mu {
5895
5911
  /**
5896
5912
  * Create a new virtual file.
5897
5913
  *
@@ -5916,15 +5932,15 @@ class su {
5916
5932
  */
5917
5933
  constructor(n) {
5918
5934
  let t;
5919
- n ? En(n) ? t = { path: n } : typeof n == "string" || cu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : lu.cwd(), this.data = {}, this.history = [], this.messages = [];
5935
+ n ? An(n) ? t = { path: n } : typeof n == "string" || du(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : cu.cwd(), this.data = {}, this.history = [], this.messages = [];
5920
5936
  let r = -1;
5921
- for (; ++r < cn.length; ) {
5922
- const l = cn[r];
5937
+ for (; ++r < fn.length; ) {
5938
+ const l = fn[r];
5923
5939
  l in t && t[l] !== void 0 && t[l] !== null && (this[l] = l === "history" ? [...t[l]] : t[l]);
5924
5940
  }
5925
5941
  let i;
5926
5942
  for (i in t)
5927
- cn.includes(i) || (this[i] = t[i]);
5943
+ fn.includes(i) || (this[i] = t[i]);
5928
5944
  }
5929
5945
  /**
5930
5946
  * Get the basename (including extname) (example: `'index.min.js'`).
@@ -5948,7 +5964,7 @@ class su {
5948
5964
  * Nothing.
5949
5965
  */
5950
5966
  set basename(n) {
5951
- hn(n, "basename"), pn(n, "basename"), this.path = ue.join(this.dirname || "", n);
5967
+ dn(n, "basename"), mn(n, "basename"), this.path = ue.join(this.dirname || "", n);
5952
5968
  }
5953
5969
  /**
5954
5970
  * Get the parent path (example: `'~'`).
@@ -5970,7 +5986,7 @@ class su {
5970
5986
  * Nothing.
5971
5987
  */
5972
5988
  set dirname(n) {
5973
- At(this.basename, "dirname"), this.path = ue.join(n || "", this.basename);
5989
+ zt(this.basename, "dirname"), this.path = ue.join(n || "", this.basename);
5974
5990
  }
5975
5991
  /**
5976
5992
  * Get the extname (including dot) (example: `'.js'`).
@@ -5994,7 +6010,7 @@ class su {
5994
6010
  * Nothing.
5995
6011
  */
5996
6012
  set extname(n) {
5997
- if (pn(n, "extname"), At(this.dirname, "extname"), n) {
6013
+ if (mn(n, "extname"), zt(this.dirname, "extname"), n) {
5998
6014
  if (n.codePointAt(0) !== 46)
5999
6015
  throw new Error("`extname` must start with `.`");
6000
6016
  if (n.includes(".", 1))
@@ -6024,7 +6040,7 @@ class su {
6024
6040
  * Nothing.
6025
6041
  */
6026
6042
  set path(n) {
6027
- En(n) && (n = au(n)), hn(n, "path"), this.path !== n && this.history.push(n);
6043
+ An(n) && (n = hu(n)), dn(n, "path"), this.path !== n && this.history.push(n);
6028
6044
  }
6029
6045
  /**
6030
6046
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -6048,7 +6064,7 @@ class su {
6048
6064
  * Nothing.
6049
6065
  */
6050
6066
  set stem(n) {
6051
- hn(n, "stem"), pn(n, "stem"), this.path = ue.join(this.dirname || "", n + (this.extname || ""));
6067
+ dn(n, "stem"), mn(n, "stem"), this.path = ue.join(this.dirname || "", n + (this.extname || ""));
6052
6068
  }
6053
6069
  // Normal prototypal methods.
6054
6070
  /**
@@ -6261,24 +6277,24 @@ class su {
6261
6277
  return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(n || void 0).decode(this.value);
6262
6278
  }
6263
6279
  }
6264
- function pn(e, n) {
6280
+ function mn(e, n) {
6265
6281
  if (e && e.includes(ue.sep))
6266
6282
  throw new Error(
6267
6283
  "`" + n + "` cannot be a path: did not expect `" + ue.sep + "`"
6268
6284
  );
6269
6285
  }
6270
- function hn(e, n) {
6286
+ function dn(e, n) {
6271
6287
  if (!e)
6272
6288
  throw new Error("`" + n + "` cannot be empty");
6273
6289
  }
6274
- function At(e, n) {
6290
+ function zt(e, n) {
6275
6291
  if (!e)
6276
6292
  throw new Error("Setting `" + n + "` requires `path` to be set too");
6277
6293
  }
6278
- function cu(e) {
6294
+ function du(e) {
6279
6295
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6280
6296
  }
6281
- const pu = (
6297
+ const gu = (
6282
6298
  /**
6283
6299
  * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
6284
6300
  */
@@ -6299,13 +6315,13 @@ const pu = (
6299
6315
  };
6300
6316
  return Object.setPrototypeOf(l, r), l;
6301
6317
  }
6302
- ), hu = {}.hasOwnProperty;
6303
- class Vn extends pu {
6318
+ ), yu = {}.hasOwnProperty;
6319
+ class qn extends gu {
6304
6320
  /**
6305
6321
  * Create a processor.
6306
6322
  */
6307
6323
  constructor() {
6308
- 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 = Qa();
6324
+ 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 = tu();
6309
6325
  }
6310
6326
  /**
6311
6327
  * Copy a processor.
@@ -6321,14 +6337,14 @@ class Vn extends pu {
6321
6337
  copy() {
6322
6338
  const n = (
6323
6339
  /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
6324
- new Vn()
6340
+ new qn()
6325
6341
  );
6326
6342
  let t = -1;
6327
6343
  for (; ++t < this.attachers.length; ) {
6328
6344
  const r = this.attachers[t];
6329
6345
  n.use(...r);
6330
6346
  }
6331
- return n.data(sn(!0, {}, this.namespace)), n;
6347
+ return n.data(hn(!0, {}, this.namespace)), n;
6332
6348
  }
6333
6349
  /**
6334
6350
  * Configure the processor with info available to all plugins.
@@ -6390,7 +6406,7 @@ class Vn extends pu {
6390
6406
  * the entire dataset when getting without key.
6391
6407
  */
6392
6408
  data(n, t) {
6393
- return typeof n == "string" ? arguments.length === 2 ? (dn("data", this.frozen), this.namespace[n] = t, this) : hu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (dn("data", this.frozen), this.namespace = n, this) : this.namespace;
6409
+ return typeof n == "string" ? arguments.length === 2 ? (xn("data", this.frozen), this.namespace[n] = t, this) : yu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (xn("data", this.frozen), this.namespace = n, this) : this.namespace;
6394
6410
  }
6395
6411
  /**
6396
6412
  * Freeze a processor.
@@ -6443,8 +6459,8 @@ class Vn extends pu {
6443
6459
  */
6444
6460
  parse(n) {
6445
6461
  this.freeze();
6446
- const t = Ge(n), r = this.parser || this.Parser;
6447
- return fn("parse", r), r(String(t), t);
6462
+ const t = Ke(n), r = this.parser || this.Parser;
6463
+ return gn("parse", r), r(String(t), t);
6448
6464
  }
6449
6465
  /**
6450
6466
  * Process the given file as configured on the processor.
@@ -6490,9 +6506,9 @@ class Vn extends pu {
6490
6506
  */
6491
6507
  process(n, t) {
6492
6508
  const r = this;
6493
- return this.freeze(), fn("process", this.parser || this.Parser), mn("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
6509
+ return this.freeze(), gn("process", this.parser || this.Parser), yn("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
6494
6510
  function i(l, o) {
6495
- const a = Ge(n), s = (
6511
+ const a = Ke(n), s = (
6496
6512
  /** @type {HeadTree extends undefined ? Node : HeadTree} */
6497
6513
  /** @type {unknown} */
6498
6514
  r.parse(a)
@@ -6505,7 +6521,7 @@ class Vn extends pu {
6505
6521
  /** @type {unknown} */
6506
6522
  p
6507
6523
  ), w = r.stringify(h, d);
6508
- du(w) ? d.value = w : d.result = w, u(
6524
+ bu(w) ? d.value = w : d.result = w, u(
6509
6525
  c,
6510
6526
  /** @type {VFileWithOutput<CompileResult>} */
6511
6527
  d
@@ -6549,9 +6565,9 @@ class Vn extends pu {
6549
6565
  */
6550
6566
  processSync(n) {
6551
6567
  let t = !1, r;
6552
- return this.freeze(), fn("processSync", this.parser || this.Parser), mn("processSync", this.compiler || this.Compiler), this.process(n, i), zt("processSync", "process", t), r;
6568
+ return this.freeze(), gn("processSync", this.parser || this.Parser), yn("processSync", this.compiler || this.Compiler), this.process(n, i), Nt("processSync", "process", t), r;
6553
6569
  function i(l, o) {
6554
- t = !0, It(l), r = o;
6570
+ t = !0, At(l), r = o;
6555
6571
  }
6556
6572
  }
6557
6573
  /**
@@ -6593,11 +6609,11 @@ class Vn extends pu {
6593
6609
  * transformed tree.
6594
6610
  */
6595
6611
  run(n, t, r) {
6596
- Pt(n), this.freeze();
6612
+ Lt(n), this.freeze();
6597
6613
  const i = this.transformers;
6598
6614
  return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
6599
6615
  function l(o, a) {
6600
- const s = Ge(t);
6616
+ const s = Ke(t);
6601
6617
  i.run(n, s, u);
6602
6618
  function u(c, p, d) {
6603
6619
  const h = (
@@ -6627,9 +6643,9 @@ class Vn extends pu {
6627
6643
  */
6628
6644
  runSync(n, t) {
6629
6645
  let r = !1, i;
6630
- return this.run(n, t, l), zt("runSync", "run", r), i;
6646
+ return this.run(n, t, l), Nt("runSync", "run", r), i;
6631
6647
  function l(o, a) {
6632
- It(o), i = a, r = !0;
6648
+ At(o), i = a, r = !0;
6633
6649
  }
6634
6650
  }
6635
6651
  /**
@@ -6663,8 +6679,8 @@ class Vn extends pu {
6663
6679
  */
6664
6680
  stringify(n, t) {
6665
6681
  this.freeze();
6666
- const r = Ge(t), i = this.compiler || this.Compiler;
6667
- return mn("stringify", i), Pt(n), i(n, r);
6682
+ const r = Ke(t), i = this.compiler || this.Compiler;
6683
+ return yn("stringify", i), Lt(n), i(n, r);
6668
6684
  }
6669
6685
  /**
6670
6686
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -6725,7 +6741,7 @@ class Vn extends pu {
6725
6741
  */
6726
6742
  use(n, ...t) {
6727
6743
  const r = this.attachers, i = this.namespace;
6728
- if (dn("use", this.frozen), n != null) if (typeof n == "function")
6744
+ if (xn("use", this.frozen), n != null) if (typeof n == "function")
6729
6745
  s(n, t);
6730
6746
  else if (typeof n == "object")
6731
6747
  Array.isArray(n) ? a(n) : o(n);
@@ -6752,7 +6768,7 @@ class Vn extends pu {
6752
6768
  throw new Error(
6753
6769
  "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"
6754
6770
  );
6755
- a(u.plugins), u.settings && (i.settings = sn(!0, i.settings, u.settings));
6771
+ a(u.plugins), u.settings && (i.settings = hn(!0, i.settings, u.settings));
6756
6772
  }
6757
6773
  function a(u) {
6758
6774
  let c = -1;
@@ -6776,61 +6792,61 @@ class Vn extends pu {
6776
6792
  else if (c.length > 0) {
6777
6793
  let [h, ...w] = c;
6778
6794
  const b = r[d][1];
6779
- Cn(b) && Cn(h) && (h = sn(!0, b, h)), r[d] = [u, h, ...w];
6795
+ Tn(b) && Tn(h) && (h = hn(!0, b, h)), r[d] = [u, h, ...w];
6780
6796
  }
6781
6797
  }
6782
6798
  }
6783
6799
  }
6784
- const fu = new Vn().freeze();
6785
- function fn(e, n) {
6800
+ const xu = new qn().freeze();
6801
+ function gn(e, n) {
6786
6802
  if (typeof n != "function")
6787
6803
  throw new TypeError("Cannot `" + e + "` without `parser`");
6788
6804
  }
6789
- function mn(e, n) {
6805
+ function yn(e, n) {
6790
6806
  if (typeof n != "function")
6791
6807
  throw new TypeError("Cannot `" + e + "` without `compiler`");
6792
6808
  }
6793
- function dn(e, n) {
6809
+ function xn(e, n) {
6794
6810
  if (n)
6795
6811
  throw new Error(
6796
6812
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
6797
6813
  );
6798
6814
  }
6799
- function Pt(e) {
6800
- if (!Cn(e) || typeof e.type != "string")
6815
+ function Lt(e) {
6816
+ if (!Tn(e) || typeof e.type != "string")
6801
6817
  throw new TypeError("Expected node, got `" + e + "`");
6802
6818
  }
6803
- function zt(e, n, t) {
6819
+ function Nt(e, n, t) {
6804
6820
  if (!t)
6805
6821
  throw new Error(
6806
6822
  "`" + e + "` finished async. Use `" + n + "` instead"
6807
6823
  );
6808
6824
  }
6809
- function Ge(e) {
6810
- return mu(e) ? e : new su(e);
6825
+ function Ke(e) {
6826
+ return ku(e) ? e : new mu(e);
6811
6827
  }
6812
- function mu(e) {
6828
+ function ku(e) {
6813
6829
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
6814
6830
  }
6815
- function du(e) {
6816
- return typeof e == "string" || gu(e);
6831
+ function bu(e) {
6832
+ return typeof e == "string" || wu(e);
6817
6833
  }
6818
- function gu(e) {
6834
+ function wu(e) {
6819
6835
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6820
6836
  }
6821
- class yu {
6837
+ class Su {
6822
6838
  constructor() {
6823
- ve(this, "remarkGfm", null);
6824
- ve(this, "rehypeKatex", null);
6825
- ve(this, "remarkMath", null);
6826
- ve(this, "rehypeHighlight", null);
6839
+ Oe(this, "remarkGfm", null);
6840
+ Oe(this, "rehypeKatex", null);
6841
+ Oe(this, "remarkMath", null);
6842
+ Oe(this, "rehypeHighlight", null);
6827
6843
  this.remarkGfm = null, this.rehypeKatex = null, this.remarkMath = null, this.rehypeHighlight = null;
6828
6844
  }
6829
6845
  async loadGfm() {
6830
6846
  if (!this.remarkGfm) {
6831
6847
  const { default: n } = await import(
6832
6848
  /* webpackChunkName: "LazyRemarkGfm" */
6833
- "./index.DeRHKZV2.js"
6849
+ "./index.BVkxSv-f.js"
6834
6850
  );
6835
6851
  this.remarkGfm = n;
6836
6852
  }
@@ -6838,10 +6854,10 @@ class yu {
6838
6854
  }
6839
6855
  async loadKatex() {
6840
6856
  if (!this.rehypeKatex) {
6841
- Su("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
6857
+ Au("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
6842
6858
  const { default: n } = await import(
6843
6859
  /* webpackChunkName: "LazyRehypeKatex" */
6844
- "./index.uwFC5DG7.js"
6860
+ "./index.DrXRLReV.js"
6845
6861
  );
6846
6862
  this.rehypeKatex = n;
6847
6863
  }
@@ -6851,7 +6867,7 @@ class yu {
6851
6867
  if (!this.remarkMath) {
6852
6868
  const { default: n } = await import(
6853
6869
  /* webpackChunkName: "LazyRemarkMath" */
6854
- "./index.DdDk4SyR.js"
6870
+ "./index.nheNYjH_.js"
6855
6871
  );
6856
6872
  this.remarkMath = n;
6857
6873
  }
@@ -6861,61 +6877,62 @@ class yu {
6861
6877
  if (!this.rehypeHighlight) {
6862
6878
  const { default: n } = await import(
6863
6879
  /* webpackChunkName: "LazyRehypeHighlight" */
6864
- "./index.Xr4-dv2c.js"
6880
+ "./index.DJuiPjae.js"
6865
6881
  );
6866
6882
  this.rehypeHighlight = n;
6867
6883
  }
6868
6884
  return this.rehypeHighlight;
6869
6885
  }
6870
6886
  }
6871
- const Ke = new yu(), xu = ({
6887
+ const Ye = new Su(), Cu = ({
6872
6888
  children: e,
6873
6889
  raw: n,
6874
6890
  ...t
6875
- }) => /* @__PURE__ */ In("pre", { className: "relative pt-7 sm:pt-2 ps-0 sm:ps-3", ...t, children: [
6891
+ }) => /* @__PURE__ */ Pn("pre", { className: "relative pt-7 sm:pt-2 ps-0 sm:ps-3", ...t, children: [
6876
6892
  e,
6877
6893
  /* @__PURE__ */ te(
6878
- Mt,
6894
+ Dt,
6879
6895
  {
6880
6896
  mode: "light",
6881
6897
  focusMode: "light",
6882
- copyToClipboard: () => Mr(n) || "",
6898
+ copyToClipboard: () => Fr(n) || "",
6883
6899
  labelRight: "Copy",
6884
6900
  radius: "small",
6885
6901
  className: "mb-2 px-1 absolute top-2 right-2 font-sans font-normal text-xs"
6886
6902
  }
6887
6903
  )
6888
- ] }), ku = (e) => e.includes("```"), bu = (e) => e.includes("$$"), wu = (e) => (
6889
- // table
6904
+ ] }), Eu = (e) => e.includes("```"), Iu = (e) => e.includes("$$"), Tu = (e) => (
6905
+ // urls
6906
+ e.includes("http://") || e.includes("https://") || // table
6890
6907
  e.includes("|") || // strikethrough
6891
6908
  e.includes("~") || e.includes("~~") || // task lists
6892
6909
  e.includes("- [ ]") || e.includes("- [x]")
6893
- ), Su = (e) => {
6910
+ ), Au = (e) => {
6894
6911
  const n = document.createElement("link");
6895
6912
  n.href = e, n.type = "text/css", n.rel = "stylesheet", n.id = "dynamic-katex-css", document.head.appendChild(n);
6896
- }, Cu = () => (e) => {
6897
- en(e, (n) => {
6913
+ }, Pu = () => (e) => {
6914
+ tn(e, (n) => {
6898
6915
  var t;
6899
6916
  if ((n == null ? void 0 : n.type) === "element" && (n == null ? void 0 : n.tagName) === "pre") {
6900
6917
  const [r] = n.children;
6901
6918
  if (r.tagName !== "code")
6902
6919
  return;
6903
- n.raw = Fr((t = r.children) == null ? void 0 : t[0].value);
6920
+ n.raw = Dr((t = r.children) == null ? void 0 : t[0].value);
6904
6921
  }
6905
6922
  });
6906
- }, Eu = () => (e) => {
6907
- en(e, "element", (n) => {
6923
+ }, zu = () => (e) => {
6924
+ tn(e, "element", (n) => {
6908
6925
  (n == null ? void 0 : n.type) === "element" && (n == null ? void 0 : n.tagName) === "pre" && (n.properties.raw = n.raw);
6909
6926
  });
6910
- }, Iu = ({
6927
+ }, Lu = ({
6911
6928
  onError: e = () => {
6912
6929
  }
6913
6930
  } = {}) => {
6914
- const n = Oe(e), t = Oe(null), r = Oe(null), i = Oe(null), l = Oe({
6931
+ const n = be(e), t = be(null), r = be(null), i = be(null), l = be({
6915
6932
  rehypePlugins: [
6916
- Cu,
6933
+ Pu,
6917
6934
  [
6918
- di,
6935
+ bi,
6919
6936
  {
6920
6937
  target: "_blank",
6921
6938
  rel: ["noopener", "noreferrer"]
@@ -6923,107 +6940,110 @@ const Ke = new yu(), xu = ({
6923
6940
  ]
6924
6941
  ],
6925
6942
  remarkPlugins: []
6926
- }), [o, a] = Ot(null);
6927
- An(() => {
6943
+ }), [o, a] = Be(null);
6944
+ Ze(() => {
6928
6945
  n.current = e;
6929
6946
  }, [e]);
6930
- const s = vr((u) => {
6947
+ const s = Or((u) => {
6931
6948
  (async () => {
6932
6949
  const { rehypePlugins: c, remarkPlugins: p } = l.current;
6933
- if (!t.current && ku(u)) {
6950
+ if (!t.current && Eu(u)) {
6934
6951
  t.current = !0;
6935
- const d = await Ke.loadHighlight();
6952
+ const d = await Ye.loadHighlight();
6936
6953
  l.current.rehypePlugins = [...c, d];
6937
6954
  }
6938
- if (!r.current && wu(u)) {
6955
+ if (!r.current && Tu(u)) {
6939
6956
  r.current = !0;
6940
- const d = await Ke.loadGfm();
6957
+ const d = await Ye.loadGfm();
6941
6958
  l.current.remarkPlugins = [...p, d];
6942
6959
  }
6943
- if (!i.current && bu(u)) {
6960
+ if (!i.current && Iu(u)) {
6944
6961
  i.current = !0;
6945
- const d = await Ke.loadKatex(), h = await Ke.loadMath();
6962
+ const d = await Ye.loadKatex(), h = await Ye.loadMath();
6946
6963
  l.current.remarkPlugins = [...p, h], l.current.rehypePlugins = [...c, d];
6947
6964
  }
6948
- l.current.rehypePlugins.push(Eu), fu().use(ha).use(l.current.remarkPlugins).use(Ka).use(l.current.rehypePlugins).use(ll, {
6949
- Fragment: tn.Fragment,
6950
- jsx: tn.jsx,
6951
- jsxs: tn.jsxs,
6965
+ l.current.rehypePlugins.push(zu), xu().use(ya).use(l.current.remarkPlugins).use(Za).use(l.current.rehypePlugins).use(cl, {
6966
+ Fragment: ln.Fragment,
6967
+ jsx: ln.jsx,
6968
+ jsxs: ln.jsxs,
6952
6969
  components: {
6953
- pre: xu
6970
+ pre: Cu
6954
6971
  }
6955
6972
  }).process(u).then((d) => a(d.result)).catch(n.current);
6956
6973
  })();
6957
6974
  }, []);
6958
6975
  return [o, s];
6959
- }, Lt = {
6976
+ }, _t = {
6960
6977
  MODEL: "Model",
6961
6978
  PLUGIN: "Plugin",
6962
6979
  USAGE: "Usage"
6963
- }, Nt = Tn("max-w-[99cqw] mt-3"), _t = Tn("max-w-xs", "sm:max-w-3xl"), Tu = ({
6964
- content: e,
6965
- annotations: n,
6966
- toolName: t,
6967
- role: r
6968
- }) => {
6969
- const {
6970
- state: { streaming: i }
6971
- } = Or(Lr), l = n == null ? void 0 : n.model, [o, a] = Iu(), [s] = Nr({
6972
- key: Dr + Br,
6973
- initialValue: !1
6974
- }), u = s && {
6975
- [Lt.MODEL]: l || null,
6976
- [Lt.PLUGIN]: t ? jr(t) : null
6977
- };
6978
- return An(() => {
6979
- e && a(e);
6980
- }, [e, a]), r === Hr ? /* @__PURE__ */ te(
6981
- Kn,
6982
- {
6983
- tail: !0,
6984
- className: Nt,
6985
- contentClassName: _t,
6986
- noMaxWidth: !0,
6987
- children: /* @__PURE__ */ te("div", { className: "flex items-center justify-center", children: o })
6988
- }
6989
- ) : /* @__PURE__ */ te(
6990
- Kn,
6991
- {
6992
- tail: !0,
6993
- copyToClipboard: i ? "loading..." : e,
6994
- copyToClipboardFocusMode: "light",
6995
- footer: u,
6996
- className: Nt,
6997
- contentClassName: _t,
6998
- noMaxWidth: !0,
6999
- children: o
7000
- }
7001
- );
7002
- }, Ou = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Tu }, Symbol.toStringTag, { value: "Module" }));
6980
+ }, vt = zn("max-w-[99cqw] mt-3"), Ot = zn("max-w-xs", "sm:max-w-3xl", "prose-li:ps-3"), Nu = Mt.memo(
6981
+ ({
6982
+ content: e,
6983
+ annotations: n,
6984
+ toolName: t,
6985
+ role: r,
6986
+ smooth: i = !1
6987
+ }) => {
6988
+ const l = Kr(e, i), {
6989
+ state: { streaming: o }
6990
+ } = Rr(_r), a = n == null ? void 0 : n.model, [s, u] = Lu(), [c] = vr({
6991
+ key: Br + jr,
6992
+ initialValue: !1
6993
+ }), p = c && {
6994
+ [_t.MODEL]: a || null,
6995
+ [_t.PLUGIN]: t ? Hr(t) : null
6996
+ };
6997
+ return Ze(() => {
6998
+ l && u(l);
6999
+ }, [l, u]), r === Vr ? /* @__PURE__ */ te(
7000
+ Xn,
7001
+ {
7002
+ tail: !0,
7003
+ className: vt,
7004
+ contentClassName: Ot,
7005
+ noMaxWidth: !0,
7006
+ children: /* @__PURE__ */ te("div", { className: "flex items-center justify-center", children: s })
7007
+ }
7008
+ ) : /* @__PURE__ */ te(
7009
+ Xn,
7010
+ {
7011
+ tail: !0,
7012
+ copyToClipboard: o ? "loading..." : e,
7013
+ copyToClipboardFocusMode: "light",
7014
+ footer: p,
7015
+ className: vt,
7016
+ contentClassName: Ot,
7017
+ noMaxWidth: !0,
7018
+ children: s
7019
+ }
7020
+ );
7021
+ }
7022
+ ), Bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Nu }, Symbol.toStringTag, { value: "Module" }));
7003
7023
  export {
7004
- Ou as ChatBubbleAssistant,
7005
- Jn as EXIT,
7006
- si as SKIP,
7024
+ Bu as ChatBubbleAssistant,
7025
+ et as EXIT,
7026
+ mi as SKIP,
7007
7027
  se as asciiAlpha,
7008
7028
  ne as asciiAlphanumeric,
7009
- kn as asciiControl,
7010
- nn as blankLine,
7011
- ht as classifyCharacter,
7012
- sl as combineExtensions,
7013
- Ht as convert,
7014
- jt as convertElement,
7029
+ Sn as asciiControl,
7030
+ rn as blankLine,
7031
+ mt as classifyCharacter,
7032
+ ml as combineExtensions,
7033
+ Ut as convert,
7034
+ Vt as convertElement,
7015
7035
  U as factorySpace,
7016
7036
  L as markdownLineEnding,
7017
7037
  Q as markdownLineEndingOrSpace,
7018
7038
  M as markdownSpace,
7019
- Ae as normalizeIdentifier,
7020
- ni as parse,
7021
- vu as parse$1,
7022
- jn as resolveAll,
7039
+ Pe as normalizeIdentifier,
7040
+ oi as parse,
7041
+ Du as parse$1,
7042
+ Vn as resolveAll,
7023
7043
  ce as splice,
7024
- al as toString,
7025
- dl as unicodePunctuation,
7026
- gl as unicodeWhitespace,
7027
- en as visit,
7028
- ci as visitParents
7044
+ hl as toString,
7045
+ bl as unicodePunctuation,
7046
+ wl as unicodeWhitespace,
7047
+ tn as visit,
7048
+ di as visitParents
7029
7049
  };