@linkdesk/ui 0.2.56 → 0.2.58

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.
package/dist/index.js CHANGED
@@ -3,15 +3,15 @@ var Io = Object.defineProperty;
3
3
  var yo = (e, t, n) => t in e ? Io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ve = (e, t, n) => yo(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import { jsx as N, jsxs as $, Fragment as xt } from "react/jsx-runtime";
6
- import { memo as xo, useMemo as Me, useRef as se, useEffect as ae, useState as re, useCallback as ie, useLayoutEffect as Mn, useId as Uu, isValidElement as So, cloneElement as Lo, forwardRef as Br, useImperativeHandle as Oo, useContext as Do, createContext as Ro, createElement as Tr } from "react";
6
+ import { memo as xo, useMemo as Me, useRef as se, useEffect as ae, useState as re, useCallback as ie, useLayoutEffect as Mn, useId as Uu, isValidElement as So, cloneElement as Lo, forwardRef as vr, useImperativeHandle as Oo, useContext as Do, createContext as Ro, createElement as _r } from "react";
7
7
  import wo, { createPortal as Fn } from "react-dom";
8
8
  import { useTranslation as Ae } from "react-i18next";
9
- const et = "data-hint", Po = "data-hint-command", vr = "data-hint-delay", Mo = "data-hint-placement";
10
- function Hr({ children: e, title: t }) {
11
- const n = t ? { [et]: t, [vr]: "0" } : null;
9
+ const et = "data-hint", Po = "data-hint-command", Hr = "data-hint-delay", Mo = "data-hint-placement";
10
+ function Ur({ children: e, title: t }) {
11
+ const n = t ? { [et]: t, [Hr]: "0" } : null;
12
12
  return /* @__PURE__ */ N("span", { className: "ldk-badge", ...n, children: e });
13
13
  }
14
- function gi(e) {
14
+ function bi(e) {
15
15
  const t = [], n = String(e || "");
16
16
  let r = n.indexOf(","), i = 0, u = !1;
17
17
  for (; !u; ) {
@@ -28,14 +28,14 @@ function zu(e, t) {
28
28
  ).trim();
29
29
  }
30
30
  const Fo = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Bo = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, vo = {};
31
- function bi(e, t) {
31
+ function Ti(e, t) {
32
32
  return (vo.jsx ? Bo : Fo).test(e);
33
33
  }
34
34
  const Ho = /[ \t\n\f\r]/g;
35
35
  function Uo(e) {
36
- return typeof e == "object" ? e.type === "text" ? Ti(e.value) : !1 : Ti(e);
36
+ return typeof e == "object" ? e.type === "text" ? _i(e.value) : !1 : _i(e);
37
37
  }
38
- function Ti(e) {
38
+ function _i(e) {
39
39
  return e.replace(Ho, "") === "";
40
40
  }
41
41
  class nn {
@@ -91,24 +91,24 @@ xe.prototype.property = "";
91
91
  xe.prototype.spaceSeparated = !1;
92
92
  xe.prototype.space = void 0;
93
93
  let zo = 0;
94
- const K = mt(), pe = mt(), _r = mt(), Y = mt(), le = mt(), ct = mt(), Le = mt();
94
+ const K = mt(), pe = mt(), Ar = mt(), Y = mt(), le = mt(), ct = mt(), Le = mt();
95
95
  function mt() {
96
96
  return 2 ** ++zo;
97
97
  }
98
- const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
98
+ const kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
99
99
  __proto__: null,
100
100
  boolean: K,
101
101
  booleanish: pe,
102
102
  commaOrSpaceSeparated: Le,
103
103
  commaSeparated: ct,
104
104
  number: Y,
105
- overloadedBoolean: _r,
105
+ overloadedBoolean: Ar,
106
106
  spaceSeparated: le
107
107
  }, Symbol.toStringTag, { value: "Module" })), Qn = (
108
108
  /** @type {ReadonlyArray<keyof typeof types>} */
109
- Object.keys(Ar)
109
+ Object.keys(kr)
110
110
  );
111
- class Ur extends xe {
111
+ class zr extends xe {
112
112
  /**
113
113
  * @constructor
114
114
  * @param {string} property
@@ -124,21 +124,21 @@ class Ur extends xe {
124
124
  */
125
125
  constructor(t, n, r, i) {
126
126
  let u = -1;
127
- if (super(t, n), _i(this, "space", i), typeof r == "number")
127
+ if (super(t, n), Ai(this, "space", i), typeof r == "number")
128
128
  for (; ++u < Qn.length; ) {
129
129
  const a = Qn[u];
130
- _i(this, Qn[u], (r & Ar[a]) === Ar[a]);
130
+ Ai(this, Qn[u], (r & kr[a]) === kr[a]);
131
131
  }
132
132
  }
133
133
  }
134
- Ur.prototype.defined = !0;
135
- function _i(e, t, n) {
134
+ zr.prototype.defined = !0;
135
+ function Ai(e, t, n) {
136
136
  n && (e[t] = n);
137
137
  }
138
138
  function St(e) {
139
139
  const t = {}, n = {};
140
140
  for (const [r, i] of Object.entries(e.properties)) {
141
- const u = new Ur(
141
+ const u = new zr(
142
142
  r,
143
143
  e.transform(e.attributes || {}, r),
144
144
  i,
@@ -263,7 +263,7 @@ const Yo = St({
263
263
  dir: null,
264
264
  dirName: null,
265
265
  disabled: K,
266
- download: _r,
266
+ download: Ar,
267
267
  draggable: pe,
268
268
  encType: null,
269
269
  enterKeyHint: null,
@@ -276,7 +276,7 @@ const Yo = St({
276
276
  formTarget: null,
277
277
  headers: le,
278
278
  height: Y,
279
- hidden: _r,
279
+ hidden: Ar,
280
280
  high: Y,
281
281
  href: null,
282
282
  hrefLang: null,
@@ -1185,7 +1185,7 @@ const Yo = St({
1185
1185
  xLinkTitle: "xlinkTitle",
1186
1186
  xLinkType: "xlinkType",
1187
1187
  xmlnsXLink: "xmlnsXlink"
1188
- }, Wo = /[A-Z]/g, Ai = /-[a-z]/g, $o = /^data[-\w.:]+$/i;
1188
+ }, Wo = /[A-Z]/g, ki = /-[a-z]/g, $o = /^data[-\w.:]+$/i;
1189
1189
  function Bn(e, t) {
1190
1190
  const n = Jt(t);
1191
1191
  let r = t, i = xe;
@@ -1193,16 +1193,16 @@ function Bn(e, t) {
1193
1193
  return e.property[e.normal[n]];
1194
1194
  if (n.length > 4 && n.slice(0, 4) === "data" && $o.test(t)) {
1195
1195
  if (t.charAt(4) === "-") {
1196
- const u = t.slice(5).replace(Ai, Go);
1196
+ const u = t.slice(5).replace(ki, Go);
1197
1197
  r = "data" + u.charAt(0).toUpperCase() + u.slice(1);
1198
1198
  } else {
1199
1199
  const u = t.slice(4);
1200
- if (!Ai.test(u)) {
1200
+ if (!ki.test(u)) {
1201
1201
  let a = u.replace(Wo, jo);
1202
1202
  a.charAt(0) !== "-" && (a = "-" + a), t = "data" + a;
1203
1203
  }
1204
1204
  }
1205
- i = Ur;
1205
+ i = zr;
1206
1206
  }
1207
1207
  return new i(r, t);
1208
1208
  }
@@ -1213,7 +1213,7 @@ function Go(e) {
1213
1213
  return e.charAt(1).toUpperCase();
1214
1214
  }
1215
1215
  const rn = Yu([Vu, Yo, $u, ju, Gu], "html"), tt = Yu([Vu, Vo, $u, ju, Gu], "svg");
1216
- function ki(e) {
1216
+ function Ci(e) {
1217
1217
  const t = String(e || "").trim();
1218
1218
  return t ? t.split(/[ \t\n\r\f]+/g) : [];
1219
1219
  }
@@ -1223,10 +1223,10 @@ function Qu(e) {
1223
1223
  function Ku(e) {
1224
1224
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1225
1225
  }
1226
- var Tt = {}, Kn, Ci;
1226
+ var Tt = {}, Kn, Ni;
1227
1227
  function Qo() {
1228
- if (Ci) return Kn;
1229
- Ci = 1;
1228
+ if (Ni) return Kn;
1229
+ Ni = 1;
1230
1230
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, u = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, a = /^[;\s]*/, s = /^\s+|\s+$/g, l = `
1231
1231
  `, c = "/", f = "*", d = "", m = "comment", h = "declaration";
1232
1232
  function p(I, _) {
@@ -1236,74 +1236,74 @@ function Qo() {
1236
1236
  _ = _ || {};
1237
1237
  var O = 1, x = 1;
1238
1238
  function P(F) {
1239
- var R = F.match(t);
1240
- R && (O += R.length);
1239
+ var w = F.match(t);
1240
+ w && (O += w.length);
1241
1241
  var W = F.lastIndexOf(l);
1242
1242
  x = ~W ? F.length - W : x + F.length;
1243
1243
  }
1244
- function w() {
1244
+ function R() {
1245
1245
  var F = { line: O, column: x };
1246
- return function(R) {
1247
- return R.position = new y(F), z(), R;
1246
+ return function(w) {
1247
+ return w.position = new y(F), z(), w;
1248
1248
  };
1249
1249
  }
1250
1250
  function y(F) {
1251
1251
  this.start = F, this.end = { line: O, column: x }, this.source = _.source;
1252
1252
  }
1253
1253
  y.prototype.content = I;
1254
- function v(F) {
1255
- var R = new Error(
1254
+ function H(F) {
1255
+ var w = new Error(
1256
1256
  _.source + ":" + O + ":" + x + ": " + F
1257
1257
  );
1258
- if (R.reason = F, R.filename = _.source, R.line = O, R.column = x, R.source = I, !_.silent) throw R;
1258
+ if (w.reason = F, w.filename = _.source, w.line = O, w.column = x, w.source = I, !_.silent) throw w;
1259
1259
  }
1260
- function U(F) {
1261
- var R = F.exec(I);
1262
- if (R) {
1263
- var W = R[0];
1264
- return P(W), I = I.slice(W.length), R;
1260
+ function v(F) {
1261
+ var w = F.exec(I);
1262
+ if (w) {
1263
+ var W = w[0];
1264
+ return P(W), I = I.slice(W.length), w;
1265
1265
  }
1266
1266
  }
1267
1267
  function z() {
1268
- U(n);
1268
+ v(n);
1269
1269
  }
1270
1270
  function T(F) {
1271
- var R;
1272
- for (F = F || []; R = L(); )
1273
- R !== !1 && F.push(R);
1271
+ var w;
1272
+ for (F = F || []; w = L(); )
1273
+ w !== !1 && F.push(w);
1274
1274
  return F;
1275
1275
  }
1276
1276
  function L() {
1277
- var F = w();
1277
+ var F = R();
1278
1278
  if (!(c != I.charAt(0) || f != I.charAt(1))) {
1279
- for (var R = 2; d != I.charAt(R) && (f != I.charAt(R) || c != I.charAt(R + 1)); )
1280
- ++R;
1281
- if (R += 2, d === I.charAt(R - 1))
1282
- return v("End of comment missing");
1283
- var W = I.slice(2, R - 2);
1284
- return x += 2, P(W), I = I.slice(R), x += 2, F({
1279
+ for (var w = 2; d != I.charAt(w) && (f != I.charAt(w) || c != I.charAt(w + 1)); )
1280
+ ++w;
1281
+ if (w += 2, d === I.charAt(w - 1))
1282
+ return H("End of comment missing");
1283
+ var W = I.slice(2, w - 2);
1284
+ return x += 2, P(W), I = I.slice(w), x += 2, F({
1285
1285
  type: m,
1286
1286
  comment: W
1287
1287
  });
1288
1288
  }
1289
1289
  }
1290
1290
  function V() {
1291
- var F = w(), R = U(r);
1292
- if (R) {
1293
- if (L(), !U(i)) return v("property missing ':'");
1294
- var W = U(u), j = F({
1291
+ var F = R(), w = v(r);
1292
+ if (w) {
1293
+ if (L(), !v(i)) return H("property missing ':'");
1294
+ var W = v(u), j = F({
1295
1295
  type: h,
1296
- property: k(R[0].replace(e, d)),
1296
+ property: k(w[0].replace(e, d)),
1297
1297
  value: W ? k(W[0].replace(e, d)) : d
1298
1298
  });
1299
- return U(a), j;
1299
+ return v(a), j;
1300
1300
  }
1301
1301
  }
1302
1302
  function J() {
1303
1303
  var F = [];
1304
1304
  T(F);
1305
- for (var R; R = V(); )
1306
- R !== !1 && (F.push(R), T(F));
1305
+ for (var w; w = V(); )
1306
+ w !== !1 && (F.push(w), T(F));
1307
1307
  return F;
1308
1308
  }
1309
1309
  return z(), J();
@@ -1313,10 +1313,10 @@ function Qo() {
1313
1313
  }
1314
1314
  return Kn = p, Kn;
1315
1315
  }
1316
- var Ni;
1316
+ var Ii;
1317
1317
  function Ko() {
1318
- if (Ni) return Tt;
1319
- Ni = 1;
1318
+ if (Ii) return Tt;
1319
+ Ii = 1;
1320
1320
  var e = Tt && Tt.__importDefault || function(r) {
1321
1321
  return r && r.__esModule ? r : { default: r };
1322
1322
  };
@@ -1336,10 +1336,10 @@ function Ko() {
1336
1336
  }
1337
1337
  return Tt;
1338
1338
  }
1339
- var Ft = {}, Ii;
1339
+ var Ft = {}, yi;
1340
1340
  function Xo() {
1341
- if (Ii) return Ft;
1342
- Ii = 1, Object.defineProperty(Ft, "__esModule", { value: !0 }), Ft.camelCase = void 0;
1341
+ if (yi) return Ft;
1342
+ yi = 1, Object.defineProperty(Ft, "__esModule", { value: !0 }), Ft.camelCase = void 0;
1343
1343
  var e = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, n = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, u = function(c) {
1344
1344
  return !c || n.test(c) || e.test(c);
1345
1345
  }, a = function(c, f) {
@@ -1351,10 +1351,10 @@ function Xo() {
1351
1351
  };
1352
1352
  return Ft.camelCase = l, Ft;
1353
1353
  }
1354
- var Bt, yi;
1354
+ var Bt, xi;
1355
1355
  function Jo() {
1356
- if (yi) return Bt;
1357
- yi = 1;
1356
+ if (xi) return Bt;
1357
+ xi = 1;
1358
1358
  var e = Bt && Bt.__importDefault || function(i) {
1359
1359
  return i && i.__esModule ? i : { default: i };
1360
1360
  }, t = e(Ko()), n = Xo();
@@ -1386,15 +1386,15 @@ function Ju(e) {
1386
1386
  return { start: t, end: n };
1387
1387
  }
1388
1388
  function Vt(e) {
1389
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? xi(e.position) : "start" in e || "end" in e ? xi(e) : "line" in e || "column" in e ? kr(e) : "";
1389
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Si(e.position) : "start" in e || "end" in e ? Si(e) : "line" in e || "column" in e ? Cr(e) : "";
1390
1390
  }
1391
- function kr(e) {
1392
- return Si(e && e.line) + ":" + Si(e && e.column);
1393
- }
1394
- function xi(e) {
1395
- return kr(e && e.start) + "-" + kr(e && e.end);
1391
+ function Cr(e) {
1392
+ return Li(e && e.line) + ":" + Li(e && e.column);
1396
1393
  }
1397
1394
  function Si(e) {
1395
+ return Cr(e && e.start) + "-" + Cr(e && e.end);
1396
+ }
1397
+ function Li(e) {
1398
1398
  return e && typeof e == "number" ? e : 1;
1399
1399
  }
1400
1400
  class ke extends Error {
@@ -1484,7 +1484,7 @@ ke.prototype.fatal = void 0;
1484
1484
  ke.prototype.place = void 0;
1485
1485
  ke.prototype.ruleId = void 0;
1486
1486
  ke.prototype.source = void 0;
1487
- const zr = {}.hasOwnProperty, tl = /* @__PURE__ */ new Map(), nl = /[A-Z]/g, rl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), il = /* @__PURE__ */ new Set(["td", "th"]), Zu = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1487
+ const Yr = {}.hasOwnProperty, tl = /* @__PURE__ */ new Map(), nl = /[A-Z]/g, rl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), il = /* @__PURE__ */ new Set(["td", "th"]), Zu = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1488
1488
  function ul(e, t) {
1489
1489
  if (!t || t.Fragment === void 0)
1490
1490
  throw new TypeError("Expected `Fragment` in options");
@@ -1544,10 +1544,10 @@ function al(e, t, n) {
1544
1544
  let i = r;
1545
1545
  t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = tt, e.schema = i), e.ancestors.push(t);
1546
1546
  const u = na(e, t.tagName, !1), a = ml(e, t);
1547
- let s = Vr(e, t);
1547
+ let s = qr(e, t);
1548
1548
  return rl.has(t.tagName) && (s = s.filter(function(l) {
1549
1549
  return typeof l == "string" ? !Uo(l) : !0;
1550
- })), ta(e, a, u, t), Yr(a, s), e.ancestors.pop(), e.schema = r, e.create(t, u, a, n);
1550
+ })), ta(e, a, u, t), Vr(a, s), e.ancestors.pop(), e.schema = r, e.create(t, u, a, n);
1551
1551
  }
1552
1552
  function sl(e, t) {
1553
1553
  if (t.data && t.data.estree && e.evaluater) {
@@ -1569,12 +1569,12 @@ function ll(e, t, n) {
1569
1569
  const r = e.schema;
1570
1570
  let i = r;
1571
1571
  t.name === "svg" && r.space === "html" && (i = tt, e.schema = i), e.ancestors.push(t);
1572
- const u = t.name === null ? e.Fragment : na(e, t.name, !0), a = pl(e, t), s = Vr(e, t);
1573
- return ta(e, a, u, t), Yr(a, s), e.ancestors.pop(), e.schema = r, e.create(t, u, a, n);
1572
+ const u = t.name === null ? e.Fragment : na(e, t.name, !0), a = pl(e, t), s = qr(e, t);
1573
+ return ta(e, a, u, t), Vr(a, s), e.ancestors.pop(), e.schema = r, e.create(t, u, a, n);
1574
1574
  }
1575
1575
  function cl(e, t, n) {
1576
1576
  const r = {};
1577
- return Yr(r, Vr(e, t)), e.create(t, e.Fragment, r, n);
1577
+ return Vr(r, qr(e, t)), e.create(t, e.Fragment, r, n);
1578
1578
  }
1579
1579
  function dl(e, t) {
1580
1580
  return t.value;
@@ -1582,7 +1582,7 @@ function dl(e, t) {
1582
1582
  function ta(e, t, n, r) {
1583
1583
  typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
1584
1584
  }
1585
- function Yr(e, t) {
1585
+ function Vr(e, t) {
1586
1586
  if (t.length > 0) {
1587
1587
  const n = t.length > 1 ? t : t[0];
1588
1588
  n && (e.children = n);
@@ -1617,7 +1617,7 @@ function ml(e, t) {
1617
1617
  const n = {};
1618
1618
  let r, i;
1619
1619
  for (i in t.properties)
1620
- if (i !== "children" && zr.call(t.properties, i)) {
1620
+ if (i !== "children" && Yr.call(t.properties, i)) {
1621
1621
  const u = El(e, i, t.properties[i]);
1622
1622
  if (u) {
1623
1623
  const [a, s] = u;
@@ -1665,7 +1665,7 @@ function pl(e, t) {
1665
1665
  }
1666
1666
  return n;
1667
1667
  }
1668
- function Vr(e, t) {
1668
+ function qr(e, t) {
1669
1669
  const n = [];
1670
1670
  let r = -1;
1671
1671
  const i = e.passKeys ? /* @__PURE__ */ new Map() : tl;
@@ -1723,7 +1723,7 @@ function na(e, t, n) {
1723
1723
  const i = t.split(".");
1724
1724
  let u = -1, a;
1725
1725
  for (; ++u < i.length; ) {
1726
- const s = bi(i[u]) ? { type: "Identifier", name: i[u] } : { type: "Literal", value: i[u] };
1726
+ const s = Ti(i[u]) ? { type: "Identifier", name: i[u] } : { type: "Literal", value: i[u] };
1727
1727
  a = a ? {
1728
1728
  type: "MemberExpression",
1729
1729
  object: a,
@@ -1734,13 +1734,13 @@ function na(e, t, n) {
1734
1734
  }
1735
1735
  r = a;
1736
1736
  } else
1737
- r = bi(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
1737
+ r = Ti(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
1738
1738
  if (r.type === "Literal") {
1739
1739
  const i = (
1740
1740
  /** @type {string | number} */
1741
1741
  r.value
1742
1742
  );
1743
- return zr.call(e.components, i) ? e.components[i] : i;
1743
+ return Yr.call(e.components, i) ? e.components[i] : i;
1744
1744
  }
1745
1745
  if (e.evaluater)
1746
1746
  return e.evaluater.evaluateExpression(r);
@@ -1762,7 +1762,7 @@ function bl(e) {
1762
1762
  const t = {};
1763
1763
  let n;
1764
1764
  for (n in e)
1765
- zr.call(e, n) && (t[Tl(n)] = e[n]);
1765
+ Yr.call(e, n) && (t[Tl(n)] = e[n]);
1766
1766
  return t;
1767
1767
  }
1768
1768
  function Tl(e) {
@@ -1795,7 +1795,7 @@ const Xn = {
1795
1795
  "video"
1796
1796
  ]
1797
1797
  }, Al = {};
1798
- function qr(e, t) {
1798
+ function Wr(e, t) {
1799
1799
  const n = Al, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
1800
1800
  return ra(e, r, i);
1801
1801
  }
@@ -1806,11 +1806,11 @@ function ra(e, t, n) {
1806
1806
  if (t && "alt" in e && e.alt)
1807
1807
  return e.alt;
1808
1808
  if ("children" in e)
1809
- return Li(e.children, t, n);
1809
+ return Oi(e.children, t, n);
1810
1810
  }
1811
- return Array.isArray(e) ? Li(e, t, n) : "";
1811
+ return Array.isArray(e) ? Oi(e, t, n) : "";
1812
1812
  }
1813
- function Li(e, t, n) {
1813
+ function Oi(e, t, n) {
1814
1814
  const r = [];
1815
1815
  let i = -1;
1816
1816
  for (; ++i < e.length; )
@@ -1820,11 +1820,11 @@ function Li(e, t, n) {
1820
1820
  function kl(e) {
1821
1821
  return !!(e && typeof e == "object");
1822
1822
  }
1823
- const Oi = document.createElement("i");
1824
- function Wr(e) {
1823
+ const Di = document.createElement("i");
1824
+ function $r(e) {
1825
1825
  const t = "&" + e + ";";
1826
- Oi.innerHTML = t;
1827
- const n = Oi.textContent;
1826
+ Di.innerHTML = t;
1827
+ const n = Di.textContent;
1828
1828
  return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
1829
1829
  }
1830
1830
  function Oe(e, t, n, r) {
@@ -1839,7 +1839,7 @@ function Oe(e, t, n, r) {
1839
1839
  function De(e, t) {
1840
1840
  return e.length > 0 ? (Oe(e, e.length, 0, t), e) : t;
1841
1841
  }
1842
- const Di = {}.hasOwnProperty;
1842
+ const Ri = {}.hasOwnProperty;
1843
1843
  function ia(e) {
1844
1844
  const t = {};
1845
1845
  let n = -1;
@@ -1850,11 +1850,11 @@ function ia(e) {
1850
1850
  function Cl(e, t) {
1851
1851
  let n;
1852
1852
  for (n in t) {
1853
- const i = (Di.call(e, n) ? e[n] : void 0) || (e[n] = {}), u = t[n];
1853
+ const i = (Ri.call(e, n) ? e[n] : void 0) || (e[n] = {}), u = t[n];
1854
1854
  let a;
1855
1855
  if (u)
1856
1856
  for (a in u) {
1857
- Di.call(i, a) || (i[a] = []);
1857
+ Ri.call(i, a) || (i[a] = []);
1858
1858
  const s = u[a];
1859
1859
  Nl(
1860
1860
  // @ts-expect-error Looks like a list.
@@ -1895,7 +1895,7 @@ function xn(e) {
1895
1895
  e !== null && (e < 32 || e === 127)
1896
1896
  );
1897
1897
  }
1898
- const Cr = nt(/\d/), yl = nt(/[\dA-Fa-f]/), xl = nt(/[!-/:-@[-`{-~]/);
1898
+ const Nr = nt(/\d/), yl = nt(/[\dA-Fa-f]/), xl = nt(/[!-/:-@[-`{-~]/);
1899
1899
  function G(e) {
1900
1900
  return e !== null && e < -2;
1901
1901
  }
@@ -1976,7 +1976,7 @@ function Ll(e) {
1976
1976
  }
1977
1977
  const Ol = {
1978
1978
  tokenize: Dl
1979
- }, Ri = {
1979
+ }, wi = {
1980
1980
  tokenize: Rl
1981
1981
  };
1982
1982
  function Dl(e) {
@@ -1994,19 +1994,19 @@ function Dl(e) {
1994
1994
  if (r++, t.containerState._closeFlow) {
1995
1995
  t.containerState._closeFlow = void 0, i && O();
1996
1996
  const P = t.events.length;
1997
- let w = P, y;
1998
- for (; w--; )
1999
- if (t.events[w][0] === "exit" && t.events[w][1].type === "chunkFlow") {
2000
- y = t.events[w][1].end;
1997
+ let R = P, y;
1998
+ for (; R--; )
1999
+ if (t.events[R][0] === "exit" && t.events[R][1].type === "chunkFlow") {
2000
+ y = t.events[R][1].end;
2001
2001
  break;
2002
2002
  }
2003
2003
  _(r);
2004
- let v = P;
2005
- for (; v < t.events.length; )
2006
- t.events[v][1].end = {
2004
+ let H = P;
2005
+ for (; H < t.events.length; )
2006
+ t.events[H][1].end = {
2007
2007
  ...y
2008
- }, v++;
2009
- return Oe(t.events, w + 1, 0, t.events.slice(P)), t.events.length = v, c(x);
2008
+ }, H++;
2009
+ return Oe(t.events, R + 1, 0, t.events.slice(P)), t.events.length = H, c(x);
2010
2010
  }
2011
2011
  return s(x);
2012
2012
  }
@@ -2018,7 +2018,7 @@ function Dl(e) {
2018
2018
  return p(x);
2019
2019
  t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
2020
2020
  }
2021
- return t.containerState = {}, e.check(Ri, f, d)(x);
2021
+ return t.containerState = {}, e.check(wi, f, d)(x);
2022
2022
  }
2023
2023
  function f(x) {
2024
2024
  return i && O(), _(r), m(x);
@@ -2027,7 +2027,7 @@ function Dl(e) {
2027
2027
  return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, p(x);
2028
2028
  }
2029
2029
  function m(x) {
2030
- return t.containerState = {}, e.attempt(Ri, h, p)(x);
2030
+ return t.containerState = {}, e.attempt(wi, h, p)(x);
2031
2031
  }
2032
2032
  function h(x) {
2033
2033
  return r++, n.push([t.currentConstruct, t.containerState]), m(x);
@@ -2051,8 +2051,8 @@ function Dl(e) {
2051
2051
  return G(x) ? (e.consume(x), I(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(x), k);
2052
2052
  }
2053
2053
  function I(x, P) {
2054
- const w = t.sliceStream(x);
2055
- if (P && w.push(null), x.previous = u, u && (u.next = x), u = x, i.defineSkip(x.start), i.write(w), t.parser.lazy[x.start.line]) {
2054
+ const R = t.sliceStream(x);
2055
+ if (P && R.push(null), x.previous = u, u && (u.next = x), u = x, i.defineSkip(x.start), i.write(R), t.parser.lazy[x.start.line]) {
2056
2056
  let y = i.events.length;
2057
2057
  for (; y--; )
2058
2058
  if (
@@ -2062,28 +2062,28 @@ function Dl(e) {
2062
2062
  i.events[y][1].end.offset > a)
2063
2063
  )
2064
2064
  return;
2065
- const v = t.events.length;
2066
- let U = v, z, T;
2067
- for (; U--; )
2068
- if (t.events[U][0] === "exit" && t.events[U][1].type === "chunkFlow") {
2065
+ const H = t.events.length;
2066
+ let v = H, z, T;
2067
+ for (; v--; )
2068
+ if (t.events[v][0] === "exit" && t.events[v][1].type === "chunkFlow") {
2069
2069
  if (z) {
2070
- T = t.events[U][1].end;
2070
+ T = t.events[v][1].end;
2071
2071
  break;
2072
2072
  }
2073
2073
  z = !0;
2074
2074
  }
2075
- for (_(r), y = v; y < t.events.length; )
2075
+ for (_(r), y = H; y < t.events.length; )
2076
2076
  t.events[y][1].end = {
2077
2077
  ...T
2078
2078
  }, y++;
2079
- Oe(t.events, U + 1, 0, t.events.slice(v)), t.events.length = y;
2079
+ Oe(t.events, v + 1, 0, t.events.slice(H)), t.events.length = y;
2080
2080
  }
2081
2081
  }
2082
2082
  function _(x) {
2083
2083
  let P = n.length;
2084
2084
  for (; P-- > x; ) {
2085
- const w = n[P];
2086
- t.containerState = w[1], w[0].exit.call(t, e);
2085
+ const R = n[P];
2086
+ t.containerState = R[1], R[0].exit.call(t, e);
2087
2087
  }
2088
2088
  n.length = x;
2089
2089
  }
@@ -2109,7 +2109,7 @@ function Un(e, t, n) {
2109
2109
  }
2110
2110
  return t;
2111
2111
  }
2112
- const Nr = {
2112
+ const Ir = {
2113
2113
  name: "attention",
2114
2114
  resolveAll: wl,
2115
2115
  tokenize: Pl
@@ -2129,7 +2129,7 @@ function wl(e, t) {
2129
2129
  }, m = {
2130
2130
  ...e[n][1].start
2131
2131
  };
2132
- wi(d, -l), wi(m, l), a = {
2132
+ Pi(d, -l), Pi(m, l), a = {
2133
2133
  type: l > 1 ? "strongSequence" : "emphasisSequence",
2134
2134
  start: d,
2135
2135
  end: {
@@ -2183,7 +2183,7 @@ function Pl(e, t) {
2183
2183
  return c._open = !!(u === 42 ? d : d && (i || !m)), c._close = !!(u === 42 ? m : m && (f || !d)), t(l);
2184
2184
  }
2185
2185
  }
2186
- function wi(e, t) {
2186
+ function Pi(e, t) {
2187
2187
  e.column += t, e.offset += t, e._bufferIndex += t;
2188
2188
  }
2189
2189
  const Ml = {
@@ -2303,20 +2303,20 @@ function Yl(e, t, n) {
2303
2303
  return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), u = 31, a = _e, f(d));
2304
2304
  }
2305
2305
  function c(d) {
2306
- return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), u = 6, a = yl, f) : (e.enter("characterReferenceValue"), u = 7, a = Cr, f(d));
2306
+ return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), u = 6, a = yl, f) : (e.enter("characterReferenceValue"), u = 7, a = Nr, f(d));
2307
2307
  }
2308
2308
  function f(d) {
2309
2309
  if (d === 59 && i) {
2310
2310
  const m = e.exit("characterReferenceValue");
2311
- return a === _e && !Wr(r.sliceSerialize(m)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
2311
+ return a === _e && !$r(r.sliceSerialize(m)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
2312
2312
  }
2313
2313
  return a(d) && i++ < u ? (e.consume(d), f) : n(d);
2314
2314
  }
2315
2315
  }
2316
- const Pi = {
2316
+ const Mi = {
2317
2317
  partial: !0,
2318
2318
  tokenize: ql
2319
- }, Mi = {
2319
+ }, Fi = {
2320
2320
  concrete: !0,
2321
2321
  name: "codeFenced",
2322
2322
  tokenize: Vl
@@ -2324,7 +2324,7 @@ const Pi = {
2324
2324
  function Vl(e, t, n) {
2325
2325
  const r = this, i = {
2326
2326
  partial: !0,
2327
- tokenize: w
2327
+ tokenize: R
2328
2328
  };
2329
2329
  let u = 0, a = 0, s;
2330
2330
  return l;
@@ -2332,14 +2332,14 @@ function Vl(e, t, n) {
2332
2332
  return c(y);
2333
2333
  }
2334
2334
  function c(y) {
2335
- const v = r.events[r.events.length - 1];
2336
- return u = v && v[1].type === "linePrefix" ? v[2].sliceSerialize(v[1], !0).length : 0, s = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(y);
2335
+ const H = r.events[r.events.length - 1];
2336
+ return u = H && H[1].type === "linePrefix" ? H[2].sliceSerialize(H[1], !0).length : 0, s = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(y);
2337
2337
  }
2338
2338
  function f(y) {
2339
2339
  return y === s ? (a++, e.consume(y), f) : a < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), te(y) ? ue(e, d, "whitespace")(y) : d(y));
2340
2340
  }
2341
2341
  function d(y) {
2342
- return y === null || G(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(Pi, k, P)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2342
+ return y === null || G(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(Mi, k, P)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2343
2343
  contentType: "string"
2344
2344
  }), m(y));
2345
2345
  }
@@ -2364,7 +2364,7 @@ function Vl(e, t, n) {
2364
2364
  return u > 0 && te(y) ? ue(e, O, "linePrefix", u + 1)(y) : O(y);
2365
2365
  }
2366
2366
  function O(y) {
2367
- return y === null || G(y) ? e.check(Pi, k, P)(y) : (e.enter("codeFlowValue"), x(y));
2367
+ return y === null || G(y) ? e.check(Mi, k, P)(y) : (e.enter("codeFlowValue"), x(y));
2368
2368
  }
2369
2369
  function x(y) {
2370
2370
  return y === null || G(y) ? (e.exit("codeFlowValue"), O(y)) : (e.consume(y), x);
@@ -2372,23 +2372,23 @@ function Vl(e, t, n) {
2372
2372
  function P(y) {
2373
2373
  return e.exit("codeFenced"), t(y);
2374
2374
  }
2375
- function w(y, v, U) {
2375
+ function R(y, H, v) {
2376
2376
  let z = 0;
2377
2377
  return T;
2378
- function T(R) {
2379
- return y.enter("lineEnding"), y.consume(R), y.exit("lineEnding"), L;
2378
+ function T(w) {
2379
+ return y.enter("lineEnding"), y.consume(w), y.exit("lineEnding"), L;
2380
2380
  }
2381
- function L(R) {
2382
- return y.enter("codeFencedFence"), te(R) ? ue(y, V, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(R) : V(R);
2381
+ function L(w) {
2382
+ return y.enter("codeFencedFence"), te(w) ? ue(y, V, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(w) : V(w);
2383
2383
  }
2384
- function V(R) {
2385
- return R === s ? (y.enter("codeFencedFenceSequence"), J(R)) : U(R);
2384
+ function V(w) {
2385
+ return w === s ? (y.enter("codeFencedFenceSequence"), J(w)) : v(w);
2386
2386
  }
2387
- function J(R) {
2388
- return R === s ? (z++, y.consume(R), J) : z >= a ? (y.exit("codeFencedFenceSequence"), te(R) ? ue(y, F, "whitespace")(R) : F(R)) : U(R);
2387
+ function J(w) {
2388
+ return w === s ? (z++, y.consume(w), J) : z >= a ? (y.exit("codeFencedFenceSequence"), te(w) ? ue(y, F, "whitespace")(w) : F(w)) : v(w);
2389
2389
  }
2390
- function F(R) {
2391
- return R === null || G(R) ? (y.exit("codeFencedFence"), v(R)) : U(R);
2390
+ function F(w) {
2391
+ return w === null || G(w) ? (y.exit("codeFencedFence"), H(w)) : v(w);
2392
2392
  }
2393
2393
  }
2394
2394
  }
@@ -3011,7 +3011,7 @@ const mc = [
3011
3011
  "tr",
3012
3012
  "track",
3013
3013
  "ul"
3014
- ], Fi = ["pre", "script", "style", "textarea"], pc = {
3014
+ ], Bi = ["pre", "script", "style", "textarea"], pc = {
3015
3015
  concrete: !0,
3016
3016
  name: "htmlFlow",
3017
3017
  resolveTo: bc,
@@ -3058,7 +3058,7 @@ function Tc(e, t, n) {
3058
3058
  function I(C) {
3059
3059
  if (C === null || C === 47 || C === 62 || ce(C)) {
3060
3060
  const we = C === 47, rt = a.toLowerCase();
3061
- return !we && !u && Fi.includes(rt) ? (i = 1, r.interrupt ? t(C) : V(C)) : mc.includes(a.toLowerCase()) ? (i = 6, we ? (e.consume(C), _) : r.interrupt ? t(C) : V(C)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(C) : u ? O(C) : x(C));
3061
+ return !we && !u && Bi.includes(rt) ? (i = 1, r.interrupt ? t(C) : V(C)) : mc.includes(a.toLowerCase()) ? (i = 6, we ? (e.consume(C), _) : r.interrupt ? t(C) : V(C)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(C) : u ? O(C) : x(C));
3062
3062
  }
3063
3063
  return C === 45 || _e(C) ? (e.consume(C), a += String.fromCharCode(C), I) : n(C);
3064
3064
  }
@@ -3072,19 +3072,19 @@ function Tc(e, t, n) {
3072
3072
  return C === 47 ? (e.consume(C), T) : C === 58 || C === 95 || Ne(C) ? (e.consume(C), P) : te(C) ? (e.consume(C), x) : T(C);
3073
3073
  }
3074
3074
  function P(C) {
3075
- return C === 45 || C === 46 || C === 58 || C === 95 || _e(C) ? (e.consume(C), P) : w(C);
3075
+ return C === 45 || C === 46 || C === 58 || C === 95 || _e(C) ? (e.consume(C), P) : R(C);
3076
3076
  }
3077
- function w(C) {
3078
- return C === 61 ? (e.consume(C), y) : te(C) ? (e.consume(C), w) : x(C);
3077
+ function R(C) {
3078
+ return C === 61 ? (e.consume(C), y) : te(C) ? (e.consume(C), R) : x(C);
3079
3079
  }
3080
3080
  function y(C) {
3081
- return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), l = C, v) : te(C) ? (e.consume(C), y) : U(C);
3081
+ return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), l = C, H) : te(C) ? (e.consume(C), y) : v(C);
3082
3082
  }
3083
- function v(C) {
3084
- return C === l ? (e.consume(C), l = null, z) : C === null || G(C) ? n(C) : (e.consume(C), v);
3083
+ function H(C) {
3084
+ return C === l ? (e.consume(C), l = null, z) : C === null || G(C) ? n(C) : (e.consume(C), H);
3085
3085
  }
3086
- function U(C) {
3087
- return C === null || C === 34 || C === 39 || C === 47 || C === 60 || C === 61 || C === 62 || C === 96 || ce(C) ? w(C) : (e.consume(C), U);
3086
+ function v(C) {
3087
+ return C === null || C === 34 || C === 39 || C === 47 || C === 60 || C === 61 || C === 62 || C === 96 || ce(C) ? R(C) : (e.consume(C), v);
3088
3088
  }
3089
3089
  function z(C) {
3090
3090
  return C === 47 || C === 62 || te(C) ? x(C) : n(C);
@@ -3102,9 +3102,9 @@ function Tc(e, t, n) {
3102
3102
  return e.check(gc, F, Te)(C);
3103
3103
  }
3104
3104
  function F(C) {
3105
- return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), R;
3105
+ return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), w;
3106
3106
  }
3107
- function R(C) {
3107
+ function w(C) {
3108
3108
  return C === null || G(C) ? J(C) : (e.enter("htmlFlowData"), V(C));
3109
3109
  }
3110
3110
  function W(C) {
@@ -3116,7 +3116,7 @@ function Tc(e, t, n) {
3116
3116
  function Z(C) {
3117
3117
  if (C === 62) {
3118
3118
  const we = a.toLowerCase();
3119
- return Fi.includes(we) ? (e.consume(C), me) : V(C);
3119
+ return Bi.includes(we) ? (e.consume(C), me) : V(C);
3120
3120
  }
3121
3121
  return Ne(C) && a.length < 8 ? (e.consume(C), a += String.fromCharCode(C), Z) : V(C);
3122
3122
  }
@@ -3161,7 +3161,7 @@ function Cc(e, t, n) {
3161
3161
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(A), l;
3162
3162
  }
3163
3163
  function l(A) {
3164
- return A === 33 ? (e.consume(A), c) : A === 47 ? (e.consume(A), w) : A === 63 ? (e.consume(A), x) : Ne(A) ? (e.consume(A), U) : n(A);
3164
+ return A === 33 ? (e.consume(A), c) : A === 47 ? (e.consume(A), R) : A === 63 ? (e.consume(A), x) : Ne(A) ? (e.consume(A), v) : n(A);
3165
3165
  }
3166
3166
  function c(A) {
3167
3167
  return A === 45 ? (e.consume(A), f) : A === 91 ? (e.consume(A), u = 0, p) : Ne(A) ? (e.consume(A), O) : n(A);
@@ -3200,17 +3200,17 @@ function Cc(e, t, n) {
3200
3200
  function P(A) {
3201
3201
  return A === 62 ? W(A) : x(A);
3202
3202
  }
3203
- function w(A) {
3203
+ function R(A) {
3204
3204
  return Ne(A) ? (e.consume(A), y) : n(A);
3205
3205
  }
3206
3206
  function y(A) {
3207
- return A === 45 || _e(A) ? (e.consume(A), y) : v(A);
3207
+ return A === 45 || _e(A) ? (e.consume(A), y) : H(A);
3208
3208
  }
3209
- function v(A) {
3210
- return G(A) ? (a = v, j(A)) : te(A) ? (e.consume(A), v) : W(A);
3209
+ function H(A) {
3210
+ return G(A) ? (a = H, j(A)) : te(A) ? (e.consume(A), H) : W(A);
3211
3211
  }
3212
- function U(A) {
3213
- return A === 45 || _e(A) ? (e.consume(A), U) : A === 47 || A === 62 || ce(A) ? z(A) : n(A);
3212
+ function v(A) {
3213
+ return A === 45 || _e(A) ? (e.consume(A), v) : A === 47 || A === 62 || ce(A) ? z(A) : n(A);
3214
3214
  }
3215
3215
  function z(A) {
3216
3216
  return A === 47 ? (e.consume(A), W) : A === 58 || A === 95 || Ne(A) ? (e.consume(A), T) : G(A) ? (a = z, j(A)) : te(A) ? (e.consume(A), z) : W(A);
@@ -3225,12 +3225,12 @@ function Cc(e, t, n) {
3225
3225
  return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), i = A, J) : G(A) ? (a = V, j(A)) : te(A) ? (e.consume(A), V) : (e.consume(A), F);
3226
3226
  }
3227
3227
  function J(A) {
3228
- return A === i ? (e.consume(A), i = void 0, R) : A === null ? n(A) : G(A) ? (a = J, j(A)) : (e.consume(A), J);
3228
+ return A === i ? (e.consume(A), i = void 0, w) : A === null ? n(A) : G(A) ? (a = J, j(A)) : (e.consume(A), J);
3229
3229
  }
3230
3230
  function F(A) {
3231
3231
  return A === null || A === 34 || A === 39 || A === 60 || A === 61 || A === 96 ? n(A) : A === 47 || A === 62 || ce(A) ? z(A) : (e.consume(A), F);
3232
3232
  }
3233
- function R(A) {
3233
+ function w(A) {
3234
3234
  return A === 47 || A === 62 || ce(A) ? z(A) : n(A);
3235
3235
  }
3236
3236
  function W(A) {
@@ -3246,7 +3246,7 @@ function Cc(e, t, n) {
3246
3246
  return e.enter("htmlTextData"), a(A);
3247
3247
  }
3248
3248
  }
3249
- const $r = {
3249
+ const jr = {
3250
3250
  name: "labelEnd",
3251
3251
  resolveAll: xc,
3252
3252
  resolveTo: Sc,
@@ -3389,7 +3389,7 @@ function Rc(e, t, n) {
3389
3389
  }
3390
3390
  const wc = {
3391
3391
  name: "labelStartImage",
3392
- resolveAll: $r.resolveAll,
3392
+ resolveAll: jr.resolveAll,
3393
3393
  tokenize: Pc
3394
3394
  };
3395
3395
  function Pc(e, t, n) {
@@ -3407,7 +3407,7 @@ function Pc(e, t, n) {
3407
3407
  }
3408
3408
  const Mc = {
3409
3409
  name: "labelStartLink",
3410
- resolveAll: $r.resolveAll,
3410
+ resolveAll: jr.resolveAll,
3411
3411
  tokenize: Fc
3412
3412
  };
3413
3413
  function Fc(e, t, n) {
@@ -3470,7 +3470,7 @@ function zc(e, t, n) {
3470
3470
  return s;
3471
3471
  function s(h) {
3472
3472
  const p = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
3473
- if (p === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : Cr(h)) {
3473
+ if (p === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : Nr(h)) {
3474
3474
  if (r.containerState.type || (r.containerState.type = p, e.enter(p, {
3475
3475
  _container: !0
3476
3476
  })), p === "listUnordered")
@@ -3481,7 +3481,7 @@ function zc(e, t, n) {
3481
3481
  return n(h);
3482
3482
  }
3483
3483
  function l(h) {
3484
- return Cr(h) && ++a < 10 ? (e.consume(h), l) : (!r.interrupt || a < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), c(h)) : n(h);
3484
+ return Nr(h) && ++a < 10 ? (e.consume(h), l) : (!r.interrupt || a < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), c(h)) : n(h);
3485
3485
  }
3486
3486
  function c(h) {
3487
3487
  return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
@@ -3533,7 +3533,7 @@ function Wc(e, t, n) {
3533
3533
  return !te(u) && a && a[1].type === "listItemPrefixWhitespace" ? t(u) : n(u);
3534
3534
  }
3535
3535
  }
3536
- const Bi = {
3536
+ const vi = {
3537
3537
  name: "setextUnderline",
3538
3538
  resolveTo: $c,
3539
3539
  tokenize: jc
@@ -3726,12 +3726,12 @@ const ed = {
3726
3726
  }, rd = {
3727
3727
  35: dc,
3728
3728
  42: kn,
3729
- 45: [Bi, kn],
3729
+ 45: [vi, kn],
3730
3730
  60: pc,
3731
- 61: Bi,
3731
+ 61: vi,
3732
3732
  95: kn,
3733
- 96: Mi,
3734
- 126: Mi
3733
+ 96: Fi,
3734
+ 126: Fi
3735
3735
  }, id = {
3736
3736
  38: oa,
3737
3737
  92: sa
@@ -3741,15 +3741,15 @@ const ed = {
3741
3741
  [-3]: Zn,
3742
3742
  33: wc,
3743
3743
  38: oa,
3744
- 42: Nr,
3744
+ 42: Ir,
3745
3745
  60: [Ml, kc],
3746
3746
  91: Mc,
3747
3747
  92: [lc, sa],
3748
- 93: $r,
3749
- 95: Nr,
3748
+ 93: jr,
3749
+ 95: Ir,
3750
3750
  96: Gl
3751
3751
  }, ad = {
3752
- null: [Nr, Kc]
3752
+ null: [Ir, Kc]
3753
3753
  }, sd = {
3754
3754
  null: [42, 95]
3755
3755
  }, od = {
@@ -3777,12 +3777,12 @@ function cd(e, t, n) {
3777
3777
  const i = {}, u = [];
3778
3778
  let a = [], s = [];
3779
3779
  const l = {
3780
- attempt: v(w),
3781
- check: v(y),
3780
+ attempt: H(R),
3781
+ check: H(y),
3782
3782
  consume: O,
3783
3783
  enter: x,
3784
3784
  exit: P,
3785
- interrupt: v(y, {
3785
+ interrupt: H(y, {
3786
3786
  interrupt: !0
3787
3787
  })
3788
3788
  }, c = {
@@ -3800,7 +3800,7 @@ function cd(e, t, n) {
3800
3800
  let f = t.tokenize.call(c, l);
3801
3801
  return t.resolveAll && u.push(t), c;
3802
3802
  function d(L) {
3803
- return a = De(a, L), I(), a[a.length - 1] !== null ? [] : (U(t, 0), c.events = Un(u, c.events, c), c.events);
3803
+ return a = De(a, L), I(), a[a.length - 1] !== null ? [] : (v(t, 0), c.events = Un(u, c.events, c), c.events);
3804
3804
  }
3805
3805
  function m(L, V) {
3806
3806
  return fd(h(L), V);
@@ -3814,14 +3814,14 @@ function cd(e, t, n) {
3814
3814
  _index: V,
3815
3815
  line: J,
3816
3816
  column: F,
3817
- offset: R
3817
+ offset: w
3818
3818
  } = r;
3819
3819
  return {
3820
3820
  _bufferIndex: L,
3821
3821
  _index: V,
3822
3822
  line: J,
3823
3823
  column: F,
3824
- offset: R
3824
+ offset: w
3825
3825
  };
3826
3826
  }
3827
3827
  function k(L) {
@@ -3855,15 +3855,15 @@ function cd(e, t, n) {
3855
3855
  const V = s.pop();
3856
3856
  return V.end = p(), c.events.push(["exit", V, c]), V;
3857
3857
  }
3858
- function w(L, V) {
3859
- U(L, V.from);
3858
+ function R(L, V) {
3859
+ v(L, V.from);
3860
3860
  }
3861
3861
  function y(L, V) {
3862
3862
  V.restore();
3863
3863
  }
3864
- function v(L, V) {
3864
+ function H(L, V) {
3865
3865
  return J;
3866
- function J(F, R, W) {
3866
+ function J(F, w, W) {
3867
3867
  let j, Z, Q, A;
3868
3868
  return Array.isArray(F) ? (
3869
3869
  /* c8 ignore next 1 */
@@ -3905,24 +3905,24 @@ function cd(e, t, n) {
3905
3905
  }
3906
3906
  }
3907
3907
  function we(be) {
3908
- return L(Q, A), R;
3908
+ return L(Q, A), w;
3909
3909
  }
3910
3910
  function rt(be) {
3911
3911
  return A.restore(), ++Z < j.length ? C(j[Z]) : W;
3912
3912
  }
3913
3913
  }
3914
3914
  }
3915
- function U(L, V) {
3915
+ function v(L, V) {
3916
3916
  L.resolveAll && !u.includes(L) && u.push(L), L.resolve && Oe(c.events, V, c.events.length - V, L.resolve(c.events.slice(V), c)), L.resolveTo && (c.events = L.resolveTo(c.events, c));
3917
3917
  }
3918
3918
  function z() {
3919
- const L = p(), V = c.previous, J = c.currentConstruct, F = c.events.length, R = Array.from(s);
3919
+ const L = p(), V = c.previous, J = c.currentConstruct, F = c.events.length, w = Array.from(s);
3920
3920
  return {
3921
3921
  from: F,
3922
3922
  restore: W
3923
3923
  };
3924
3924
  function W() {
3925
- r = L, c.previous = V, c.currentConstruct = J, c.events.length = F, s = R, T();
3925
+ r = L, c.previous = V, c.currentConstruct = J, c.events.length = F, s = w, T();
3926
3926
  }
3927
3927
  }
3928
3928
  function T() {
@@ -4010,7 +4010,7 @@ function md(e) {
4010
4010
  ;
4011
4011
  return e;
4012
4012
  }
4013
- const vi = /[\0\t\n\r]/g;
4013
+ const Hi = /[\0\t\n\r]/g;
4014
4014
  function pd() {
4015
4015
  let e = 1, t = "", n = !0, r;
4016
4016
  return i;
@@ -4018,7 +4018,7 @@ function pd() {
4018
4018
  const l = [];
4019
4019
  let c, f, d, m, h;
4020
4020
  for (u = t + (typeof u == "string" ? u.toString() : new TextDecoder(a || void 0).decode(u)), d = 0, t = "", n && (u.charCodeAt(0) === 65279 && d++, n = void 0); d < u.length; ) {
4021
- if (vi.lastIndex = d, c = vi.exec(u), m = c && c.index !== void 0 ? c.index : u.length, h = u.charCodeAt(m), !c) {
4021
+ if (Hi.lastIndex = d, c = Hi.exec(u), m = c && c.index !== void 0 ? c.index : u.length, h = u.charCodeAt(m), !c) {
4022
4022
  t = u.slice(d);
4023
4023
  break;
4024
4024
  }
@@ -4057,7 +4057,7 @@ function bd(e, t, n) {
4057
4057
  const i = n.charCodeAt(1), u = i === 120 || i === 88;
4058
4058
  return ua(n.slice(u ? 2 : 1), u ? 16 : 10);
4059
4059
  }
4060
- return Wr(n) || e;
4060
+ return $r(n) || e;
4061
4061
  }
4062
4062
  const pa = {}.hasOwnProperty;
4063
4063
  function Td(e, t, n) {
@@ -4068,10 +4068,10 @@ function _d(e) {
4068
4068
  transforms: [],
4069
4069
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4070
4070
  enter: {
4071
- autolink: u(pi),
4071
+ autolink: u(Ei),
4072
4072
  autolinkProtocol: z,
4073
4073
  autolinkEmail: z,
4074
- atxHeading: u(fi),
4074
+ atxHeading: u(hi),
4075
4075
  blockQuote: u(gt),
4076
4076
  characterEscape: z,
4077
4077
  characterReference: z,
@@ -4088,31 +4088,31 @@ function _d(e) {
4088
4088
  definitionLabelString: a,
4089
4089
  definitionTitleString: a,
4090
4090
  emphasis: u(bo),
4091
- hardBreakEscape: u(hi),
4092
- hardBreakTrailing: u(hi),
4093
- htmlFlow: u(mi, a),
4091
+ hardBreakEscape: u(mi),
4092
+ hardBreakTrailing: u(mi),
4093
+ htmlFlow: u(pi, a),
4094
4094
  htmlFlowData: z,
4095
- htmlText: u(mi, a),
4095
+ htmlText: u(pi, a),
4096
4096
  htmlTextData: z,
4097
4097
  image: u(To),
4098
4098
  label: a,
4099
- link: u(pi),
4099
+ link: u(Ei),
4100
4100
  listItem: u(_o),
4101
4101
  listItemValue: m,
4102
- listOrdered: u(Ei, d),
4103
- listUnordered: u(Ei),
4102
+ listOrdered: u(gi, d),
4103
+ listUnordered: u(gi),
4104
4104
  paragraph: u(Ao),
4105
4105
  reference: C,
4106
4106
  referenceString: a,
4107
4107
  resourceDestinationString: a,
4108
4108
  resourceTitleString: a,
4109
- setextHeading: u(fi),
4109
+ setextHeading: u(hi),
4110
4110
  strong: u(ko),
4111
4111
  thematicBreak: u(No)
4112
4112
  },
4113
4113
  exit: {
4114
4114
  atxHeading: l(),
4115
- atxHeadingSequence: w,
4115
+ atxHeadingSequence: R,
4116
4116
  autolink: l(),
4117
4117
  autolinkEmail: Et,
4118
4118
  autolinkProtocol: je,
@@ -4128,7 +4128,7 @@ function _d(e) {
4128
4128
  codeFencedFenceMeta: p,
4129
4129
  codeFlowValue: T,
4130
4130
  codeIndented: l(_),
4131
- codeText: l(R),
4131
+ codeText: l(w),
4132
4132
  codeTextData: T,
4133
4133
  data: T,
4134
4134
  definition: l(),
@@ -4155,8 +4155,8 @@ function _d(e) {
4155
4155
  resourceDestinationString: A,
4156
4156
  resourceTitleString: me,
4157
4157
  resource: Te,
4158
- setextHeading: l(U),
4159
- setextHeadingLineSequence: v,
4158
+ setextHeading: l(v),
4159
+ setextHeadingLineSequence: H,
4160
4160
  setextHeadingText: y,
4161
4161
  strong: l(),
4162
4162
  thematicBreak: l()
@@ -4197,7 +4197,7 @@ function _d(e) {
4197
4197
  }
4198
4198
  if (X.tokenStack.length > 0) {
4199
4199
  const Pe = X.tokenStack[X.tokenStack.length - 1];
4200
- (Pe[1] || Hi).call(X, void 0, Pe[0]);
4200
+ (Pe[1] || Ui).call(X, void 0, Pe[0]);
4201
4201
  }
4202
4202
  for (q.position = {
4203
4203
  start: Ge(M.length > 0 ? M[0][1].start : {
@@ -4292,7 +4292,7 @@ function _d(e) {
4292
4292
  function c(M, q) {
4293
4293
  const X = this.stack.pop(), ne = this.tokenStack.pop();
4294
4294
  if (ne)
4295
- ne[0].type !== M.type && (q ? q.call(this, M, ne[0]) : (ne[1] || Hi).call(this, M, ne[0]));
4295
+ ne[0].type !== M.type && (q ? q.call(this, M, ne[0]) : (ne[1] || Ui).call(this, M, ne[0]));
4296
4296
  else throw new Error("Cannot close `" + M.type + "` (" + Vt({
4297
4297
  start: M.start,
4298
4298
  end: M.end
@@ -4300,7 +4300,7 @@ function _d(e) {
4300
4300
  X.position.end = Ge(M.end);
4301
4301
  }
4302
4302
  function f() {
4303
- return qr(this.stack.pop());
4303
+ return Wr(this.stack.pop());
4304
4304
  }
4305
4305
  function d() {
4306
4306
  this.data.expectingFirstListItemValue = !0;
@@ -4342,7 +4342,7 @@ function _d(e) {
4342
4342
  const M = this.resume(), q = this.stack[this.stack.length - 1];
4343
4343
  q.url = M;
4344
4344
  }
4345
- function w(M) {
4345
+ function R(M) {
4346
4346
  const q = this.stack[this.stack.length - 1];
4347
4347
  if (!q.depth) {
4348
4348
  const X = this.sliceSerialize(M).length;
@@ -4352,11 +4352,11 @@ function _d(e) {
4352
4352
  function y() {
4353
4353
  this.data.setextHeadingSlurpLineEnding = !0;
4354
4354
  }
4355
- function v(M) {
4355
+ function H(M) {
4356
4356
  const q = this.stack[this.stack.length - 1];
4357
4357
  q.depth = this.sliceSerialize(M).codePointAt(0) === 61 ? 1 : 2;
4358
4358
  }
4359
- function U() {
4359
+ function v() {
4360
4360
  this.data.setextHeadingSlurpLineEnding = void 0;
4361
4361
  }
4362
4362
  function z(M) {
@@ -4392,7 +4392,7 @@ function _d(e) {
4392
4392
  const M = this.resume(), q = this.stack[this.stack.length - 1];
4393
4393
  q.value = M;
4394
4394
  }
4395
- function R() {
4395
+ function w() {
4396
4396
  const M = this.resume(), q = this.stack[this.stack.length - 1];
4397
4397
  q.value = M;
4398
4398
  }
@@ -4450,7 +4450,7 @@ function _d(e) {
4450
4450
  function be(M) {
4451
4451
  const q = this.sliceSerialize(M), X = this.data.characterReferenceType;
4452
4452
  let ne;
4453
- X ? (ne = ua(q, X === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ne = Wr(q);
4453
+ X ? (ne = ua(q, X === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ne = $r(q);
4454
4454
  const oe = this.stack[this.stack.length - 1];
4455
4455
  oe.value += ne;
4456
4456
  }
@@ -4503,7 +4503,7 @@ function _d(e) {
4503
4503
  children: []
4504
4504
  };
4505
4505
  }
4506
- function fi() {
4506
+ function hi() {
4507
4507
  return {
4508
4508
  type: "heading",
4509
4509
  // @ts-expect-error `depth` will be set later.
@@ -4511,12 +4511,12 @@ function _d(e) {
4511
4511
  children: []
4512
4512
  };
4513
4513
  }
4514
- function hi() {
4514
+ function mi() {
4515
4515
  return {
4516
4516
  type: "break"
4517
4517
  };
4518
4518
  }
4519
- function mi() {
4519
+ function pi() {
4520
4520
  return {
4521
4521
  type: "html",
4522
4522
  value: ""
@@ -4530,7 +4530,7 @@ function _d(e) {
4530
4530
  alt: null
4531
4531
  };
4532
4532
  }
4533
- function pi() {
4533
+ function Ei() {
4534
4534
  return {
4535
4535
  type: "link",
4536
4536
  title: null,
@@ -4538,7 +4538,7 @@ function _d(e) {
4538
4538
  children: []
4539
4539
  };
4540
4540
  }
4541
- function Ei(M) {
4541
+ function gi(M) {
4542
4542
  return {
4543
4543
  type: "list",
4544
4544
  ordered: M.type === "listOrdered",
@@ -4616,7 +4616,7 @@ function Ad(e, t) {
4616
4616
  }
4617
4617
  }
4618
4618
  }
4619
- function Hi(e, t) {
4619
+ function Ui(e, t) {
4620
4620
  throw e ? new Error("Cannot close `" + e.type + "` (" + Vt({
4621
4621
  start: e.start,
4622
4622
  end: e.end
@@ -4922,28 +4922,28 @@ function qd(e, t) {
4922
4922
  };
4923
4923
  return e.patch(t, n), e.applyData(t, n);
4924
4924
  }
4925
- const Ui = 9, zi = 32;
4925
+ const zi = 9, Yi = 32;
4926
4926
  function Wd(e) {
4927
4927
  const t = String(e), n = /\r?\n|\r/g;
4928
4928
  let r = n.exec(t), i = 0;
4929
4929
  const u = [];
4930
4930
  for (; r; )
4931
4931
  u.push(
4932
- Yi(t.slice(i, r.index), i > 0, !0),
4932
+ Vi(t.slice(i, r.index), i > 0, !0),
4933
4933
  r[0]
4934
4934
  ), i = r.index + r[0].length, r = n.exec(t);
4935
- return u.push(Yi(t.slice(i), i > 0, !1)), u.join("");
4935
+ return u.push(Vi(t.slice(i), i > 0, !1)), u.join("");
4936
4936
  }
4937
- function Yi(e, t, n) {
4937
+ function Vi(e, t, n) {
4938
4938
  let r = 0, i = e.length;
4939
4939
  if (t) {
4940
4940
  let u = e.codePointAt(r);
4941
- for (; u === Ui || u === zi; )
4941
+ for (; u === zi || u === Yi; )
4942
4942
  r++, u = e.codePointAt(r);
4943
4943
  }
4944
4944
  if (n) {
4945
4945
  let u = e.codePointAt(i - 1);
4946
- for (; u === Ui || u === zi; )
4946
+ for (; u === zi || u === Yi; )
4947
4947
  i--, u = e.codePointAt(i - 1);
4948
4948
  }
4949
4949
  return i > r ? e.slice(r, i) : "";
@@ -4993,7 +4993,7 @@ const Gd = {
4993
4993
  };
4994
4994
  function hn() {
4995
4995
  }
4996
- const Ta = -1, zn = 0, Wt = 1, Sn = 2, jr = 3, Gr = 4, Qr = 5, Kr = 6, _a = 7, Aa = 8, { defineProperty: Qd } = Object, ka = typeof self == "object" ? self : globalThis, Vi = (e, t) => {
4996
+ const Ta = -1, zn = 0, Wt = 1, Sn = 2, Gr = 3, Qr = 4, Kr = 5, Xr = 6, _a = 7, Aa = 8, { defineProperty: Qd } = Object, ka = typeof self == "object" ? self : globalThis, qi = (e, t) => {
4997
4997
  switch (e) {
4998
4998
  case "Function":
4999
4999
  case "SharedWorker":
@@ -5032,19 +5032,19 @@ const Ta = -1, zn = 0, Wt = 1, Sn = 2, jr = 3, Gr = 4, Qr = 5, Kr = 6, _a = 7, A
5032
5032
  }
5033
5033
  return s;
5034
5034
  }
5035
- case jr:
5035
+ case Gr:
5036
5036
  return n(new Date(a), i);
5037
- case Gr: {
5037
+ case Qr: {
5038
5038
  const { source: s, flags: l } = a;
5039
5039
  return n(new RegExp(s, l), i);
5040
5040
  }
5041
- case Qr: {
5041
+ case Kr: {
5042
5042
  const s = n(/* @__PURE__ */ new Map(), i);
5043
5043
  for (const [l, c] of a)
5044
5044
  s.set(r(l), r(c));
5045
5045
  return s;
5046
5046
  }
5047
- case Kr: {
5047
+ case Xr: {
5048
5048
  const s = n(/* @__PURE__ */ new Set(), i);
5049
5049
  for (const l of a)
5050
5050
  s.add(r(l));
@@ -5053,7 +5053,7 @@ const Ta = -1, zn = 0, Wt = 1, Sn = 2, jr = 3, Gr = 4, Qr = 5, Kr = 6, _a = 7, A
5053
5053
  case _a: {
5054
5054
  const { name: s, message: l } = a;
5055
5055
  return n(
5056
- typeof ka[s] == "function" ? Vi(s, l) : new Error(l),
5056
+ typeof ka[s] == "function" ? qi(s, l) : new Error(l),
5057
5057
  i
5058
5058
  );
5059
5059
  }
@@ -5070,10 +5070,10 @@ const Ta = -1, zn = 0, Wt = 1, Sn = 2, jr = 3, Gr = 4, Qr = 5, Kr = 6, _a = 7, A
5070
5070
  case "-0":
5071
5071
  return -0;
5072
5072
  }
5073
- return n(Vi(u, a), i);
5073
+ return n(qi(u, a), i);
5074
5074
  };
5075
5075
  return r;
5076
- }, qi = (e) => Kd(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: Xd } = {}, { keys: Jd, is: Zd } = Object, Ht = (e) => {
5076
+ }, Wi = (e) => Kd(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: Xd } = {}, { keys: Jd, is: Zd } = Object, Ht = (e) => {
5077
5077
  const t = typeof e;
5078
5078
  if (t !== "object" || !e)
5079
5079
  return [zn, t];
@@ -5084,13 +5084,13 @@ const Ta = -1, zn = 0, Wt = 1, Sn = 2, jr = 3, Gr = 4, Qr = 5, Kr = 6, _a = 7, A
5084
5084
  case "Object":
5085
5085
  return [Sn, ot];
5086
5086
  case "Date":
5087
- return [jr, ot];
5088
- case "RegExp":
5089
5087
  return [Gr, ot];
5090
- case "Map":
5088
+ case "RegExp":
5091
5089
  return [Qr, ot];
5092
- case "Set":
5090
+ case "Map":
5093
5091
  return [Kr, ot];
5092
+ case "Set":
5093
+ return [Xr, ot];
5094
5094
  case "DataView":
5095
5095
  return [Wt, n];
5096
5096
  }
@@ -5152,19 +5152,19 @@ const Ta = -1, zn = 0, Wt = 1, Sn = 2, jr = 3, Gr = 4, Qr = 5, Kr = 6, _a = 7, A
5152
5152
  (e || !mn(Ht(a[m]))) && f.push([u(m), u(a[m])]);
5153
5153
  return d;
5154
5154
  }
5155
- case jr:
5155
+ case Gr:
5156
5156
  return i([s, isNaN(a.getTime()) ? ot : a.toISOString()], a);
5157
- case Gr: {
5157
+ case Qr: {
5158
5158
  const { source: f, flags: d } = a;
5159
5159
  return i([s, { source: f, flags: d }], a);
5160
5160
  }
5161
- case Qr: {
5161
+ case Kr: {
5162
5162
  const f = [], d = i([s, f], a);
5163
5163
  for (const [m, h] of a)
5164
5164
  (e || !(mn(Ht(m)) || mn(Ht(h)))) && f.push([u(m), u(h)]);
5165
5165
  return d;
5166
5166
  }
5167
- case Kr: {
5167
+ case Xr: {
5168
5168
  const f = [], d = i([s, f], a);
5169
5169
  for (const m of a)
5170
5170
  (e || !mn(Ht(m))) && f.push(u(m));
@@ -5175,13 +5175,13 @@ const Ta = -1, zn = 0, Wt = 1, Sn = 2, jr = 3, Gr = 4, Qr = 5, Kr = 6, _a = 7, A
5175
5175
  return i([s, { name: l, message: c }], a);
5176
5176
  };
5177
5177
  return u;
5178
- }, Wi = (e, { json: t, lossy: n } = {}) => {
5178
+ }, $i = (e, { json: t, lossy: n } = {}) => {
5179
5179
  const r = [];
5180
5180
  return e0(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5181
5181
  }, ht = typeof structuredClone == "function" ? (
5182
5182
  /* c8 ignore start */
5183
- (e, t) => t && ("json" in t || "lossy" in t) ? qi(Wi(e, t)) : structuredClone(e)
5184
- ) : (e, t) => qi(Wi(e, t));
5183
+ (e, t) => t && ("json" in t || "lossy" in t) ? Wi($i(e, t)) : structuredClone(e)
5184
+ ) : (e, t) => Wi($i(e, t));
5185
5185
  function t0(e, t) {
5186
5186
  const n = [{ type: "text", value: "↩" }];
5187
5187
  return t > 1 && n.push({
@@ -5353,7 +5353,7 @@ function s0() {
5353
5353
  function o0(e) {
5354
5354
  return e !== null && typeof e == "object" && "type" in e;
5355
5355
  }
5356
- const Ca = [], l0 = !0, Ir = !1, c0 = "skip";
5356
+ const Ca = [], l0 = !0, yr = !1, c0 = "skip";
5357
5357
  function Na(e, t, n, r) {
5358
5358
  let i;
5359
5359
  typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
@@ -5379,7 +5379,7 @@ function Na(e, t, n, r) {
5379
5379
  return m;
5380
5380
  function m() {
5381
5381
  let h = Ca, p, k, I;
5382
- if ((!t || u(l, c, f[f.length - 1] || void 0)) && (h = d0(n(l, f)), h[0] === Ir))
5382
+ if ((!t || u(l, c, f[f.length - 1] || void 0)) && (h = d0(n(l, f)), h[0] === yr))
5383
5383
  return h;
5384
5384
  if ("children" in l && l.children) {
5385
5385
  const _ = (
@@ -5389,7 +5389,7 @@ function Na(e, t, n, r) {
5389
5389
  if (_.children && h[0] !== c0)
5390
5390
  for (k = (r ? _.children.length : -1) + a, I = f.concat(_); k > -1 && k < _.children.length; ) {
5391
5391
  const O = _.children[k];
5392
- if (p = s(O, k, I)(), p[0] === Ir)
5392
+ if (p = s(O, k, I)(), p[0] === yr)
5393
5393
  return p;
5394
5394
  k = typeof p[1] == "number" ? p[1] : k + a;
5395
5395
  }
@@ -5409,7 +5409,7 @@ function qn(e, t, n, r) {
5409
5409
  return a(l, d, f);
5410
5410
  }
5411
5411
  }
5412
- const yr = {}.hasOwnProperty, f0 = {};
5412
+ const xr = {}.hasOwnProperty, f0 = {};
5413
5413
  function h0(e, t) {
5414
5414
  const n = t || f0, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), a = { ...Gd, ...n.handlers }, s = {
5415
5415
  all: c,
@@ -5432,7 +5432,7 @@ function h0(e, t) {
5432
5432
  }), s;
5433
5433
  function l(f, d) {
5434
5434
  const m = f.type, h = s.handlers[m];
5435
- if (yr.call(s.handlers, m) && h)
5435
+ if (xr.call(s.handlers, m) && h)
5436
5436
  return h(s, f, d);
5437
5437
  if (s.options.passThrough && s.options.passThrough.includes(m)) {
5438
5438
  if ("children" in f) {
@@ -5451,9 +5451,9 @@ function h0(e, t) {
5451
5451
  for (; ++h < m.length; ) {
5452
5452
  const p = s.one(m[h], f);
5453
5453
  if (p) {
5454
- if (h && m[h - 1].type === "break" && (!Array.isArray(p) && p.type === "text" && (p.value = $i(p.value)), !Array.isArray(p) && p.type === "element")) {
5454
+ if (h && m[h - 1].type === "break" && (!Array.isArray(p) && p.type === "text" && (p.value = ji(p.value)), !Array.isArray(p) && p.type === "element")) {
5455
5455
  const k = p.children[0];
5456
- k && k.type === "text" && (k.value = $i(k.value));
5456
+ k && k.type === "text" && (k.value = ji(k.value));
5457
5457
  }
5458
5458
  Array.isArray(p) ? d.push(...p) : d.push(p);
5459
5459
  }
@@ -5481,7 +5481,7 @@ function p0(e, t) {
5481
5481
  return n;
5482
5482
  }
5483
5483
  function E0(e, t) {
5484
- const n = t.data || {}, r = "value" in t && !(yr.call(n, "hProperties") || yr.call(n, "hChildren")) ? { type: "text", value: t.value } : {
5484
+ const n = t.data || {}, r = "value" in t && !(xr.call(n, "hProperties") || xr.call(n, "hChildren")) ? { type: "text", value: t.value } : {
5485
5485
  type: "element",
5486
5486
  tagName: "div",
5487
5487
  properties: {},
@@ -5499,13 +5499,13 @@ function g0(e, t) {
5499
5499
  return t && e.length > 0 && n.push({ type: "text", value: `
5500
5500
  ` }), n;
5501
5501
  }
5502
- function $i(e) {
5502
+ function ji(e) {
5503
5503
  let t = 0, n = e.charCodeAt(t);
5504
5504
  for (; n === 9 || n === 32; )
5505
5505
  t++, n = e.charCodeAt(t);
5506
5506
  return e.slice(t);
5507
5507
  }
5508
- function ji(e, t) {
5508
+ function Gi(e, t) {
5509
5509
  const n = h0(e, t), r = n.one(e, void 0), i = r0(n), u = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5510
5510
  return i && u.children.push({ type: "text", value: `
5511
5511
  ` }, i), u;
@@ -5514,24 +5514,24 @@ function b0(e, t) {
5514
5514
  return e && "run" in e ? async function(n, r) {
5515
5515
  const i = (
5516
5516
  /** @type {HastRoot} */
5517
- ji(n, { file: r, ...t })
5517
+ Gi(n, { file: r, ...t })
5518
5518
  );
5519
5519
  await e.run(i, r);
5520
5520
  } : function(n, r) {
5521
5521
  return (
5522
5522
  /** @type {HastRoot} */
5523
- ji(n, { file: r, ...e || t })
5523
+ Gi(n, { file: r, ...e || t })
5524
5524
  );
5525
5525
  };
5526
5526
  }
5527
- function Gi(e) {
5527
+ function Qi(e) {
5528
5528
  if (e)
5529
5529
  throw e;
5530
5530
  }
5531
- var er, Qi;
5531
+ var er, Ki;
5532
5532
  function T0() {
5533
- if (Qi) return er;
5534
- Qi = 1;
5533
+ if (Ki) return er;
5534
+ Ki = 1;
5535
5535
  var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(c) {
5536
5536
  return typeof Array.isArray == "function" ? Array.isArray(c) : t.call(c) === "[object Array]";
5537
5537
  }, u = function(c) {
@@ -5570,7 +5570,7 @@ function T0() {
5570
5570
  }
5571
5571
  var _0 = T0();
5572
5572
  const tr = /* @__PURE__ */ Ku(_0);
5573
- function xr(e) {
5573
+ function Sr(e) {
5574
5574
  if (typeof e != "object" || e === null)
5575
5575
  return !1;
5576
5576
  const t = Object.getPrototypeOf(e);
@@ -5745,14 +5745,14 @@ const L0 = { cwd: O0 };
5745
5745
  function O0() {
5746
5746
  return "/";
5747
5747
  }
5748
- function Sr(e) {
5748
+ function Lr(e) {
5749
5749
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
5750
5750
  e.auth === void 0);
5751
5751
  }
5752
5752
  function D0(e) {
5753
5753
  if (typeof e == "string")
5754
5754
  e = new URL(e);
5755
- else if (!Sr(e)) {
5755
+ else if (!Lr(e)) {
5756
5756
  const t = new TypeError(
5757
5757
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
5758
5758
  );
@@ -5821,7 +5821,7 @@ class Ia {
5821
5821
  */
5822
5822
  constructor(t) {
5823
5823
  let n;
5824
- t ? Sr(t) ? n = { path: t } : typeof t == "string" || w0(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : L0.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5824
+ t ? Lr(t) ? n = { path: t } : typeof t == "string" || w0(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : L0.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5825
5825
  let r = -1;
5826
5826
  for (; ++r < nr.length; ) {
5827
5827
  const u = nr[r];
@@ -5875,7 +5875,7 @@ class Ia {
5875
5875
  * Nothing.
5876
5876
  */
5877
5877
  set dirname(t) {
5878
- Ki(this.basename, "dirname"), this.path = He.join(t || "", this.basename);
5878
+ Xi(this.basename, "dirname"), this.path = He.join(t || "", this.basename);
5879
5879
  }
5880
5880
  /**
5881
5881
  * Get the extname (including dot) (example: `'.js'`).
@@ -5899,7 +5899,7 @@ class Ia {
5899
5899
  * Nothing.
5900
5900
  */
5901
5901
  set extname(t) {
5902
- if (rr(t, "extname"), Ki(this.dirname, "extname"), t) {
5902
+ if (rr(t, "extname"), Xi(this.dirname, "extname"), t) {
5903
5903
  if (t.codePointAt(0) !== 46)
5904
5904
  throw new Error("`extname` must start with `.`");
5905
5905
  if (t.includes(".", 1))
@@ -5929,7 +5929,7 @@ class Ia {
5929
5929
  * Nothing.
5930
5930
  */
5931
5931
  set path(t) {
5932
- Sr(t) && (t = D0(t)), ir(t, "path"), this.path !== t && this.history.push(t);
5932
+ Lr(t) && (t = D0(t)), ir(t, "path"), this.path !== t && this.history.push(t);
5933
5933
  }
5934
5934
  /**
5935
5935
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -6176,7 +6176,7 @@ function ir(e, t) {
6176
6176
  if (!e)
6177
6177
  throw new Error("`" + t + "` cannot be empty");
6178
6178
  }
6179
- function Ki(e, t) {
6179
+ function Xi(e, t) {
6180
6180
  if (!e)
6181
6181
  throw new Error("Setting `" + t + "` requires `path` to be set too");
6182
6182
  }
@@ -6205,7 +6205,7 @@ const P0 = (
6205
6205
  return Object.setPrototypeOf(u, r), u;
6206
6206
  })
6207
6207
  ), M0 = {}.hasOwnProperty;
6208
- class Xr extends P0 {
6208
+ class Jr extends P0 {
6209
6209
  /**
6210
6210
  * Create a processor.
6211
6211
  */
@@ -6226,7 +6226,7 @@ class Xr extends P0 {
6226
6226
  copy() {
6227
6227
  const t = (
6228
6228
  /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
6229
- new Xr()
6229
+ new Jr()
6230
6230
  );
6231
6231
  let n = -1;
6232
6232
  for (; ++n < this.attachers.length; ) {
@@ -6454,9 +6454,9 @@ class Xr extends P0 {
6454
6454
  */
6455
6455
  processSync(t) {
6456
6456
  let n = !1, r;
6457
- return this.freeze(), ur("processSync", this.parser || this.Parser), ar("processSync", this.compiler || this.Compiler), this.process(t, i), Ji("processSync", "process", n), r;
6457
+ return this.freeze(), ur("processSync", this.parser || this.Parser), ar("processSync", this.compiler || this.Compiler), this.process(t, i), Zi("processSync", "process", n), r;
6458
6458
  function i(u, a) {
6459
- n = !0, Gi(u), r = a;
6459
+ n = !0, Qi(u), r = a;
6460
6460
  }
6461
6461
  }
6462
6462
  /**
@@ -6498,7 +6498,7 @@ class Xr extends P0 {
6498
6498
  * transformed tree.
6499
6499
  */
6500
6500
  run(t, n, r) {
6501
- Xi(t), this.freeze();
6501
+ Ji(t), this.freeze();
6502
6502
  const i = this.transformers;
6503
6503
  return !r && typeof n == "function" && (r = n, n = void 0), r ? u(void 0, r) : new Promise(u);
6504
6504
  function u(a, s) {
@@ -6532,9 +6532,9 @@ class Xr extends P0 {
6532
6532
  */
6533
6533
  runSync(t, n) {
6534
6534
  let r = !1, i;
6535
- return this.run(t, n, u), Ji("runSync", "run", r), i;
6535
+ return this.run(t, n, u), Zi("runSync", "run", r), i;
6536
6536
  function u(a, s) {
6537
- Gi(a), i = s, r = !0;
6537
+ Qi(a), i = s, r = !0;
6538
6538
  }
6539
6539
  }
6540
6540
  /**
@@ -6569,7 +6569,7 @@ class Xr extends P0 {
6569
6569
  stringify(t, n) {
6570
6570
  this.freeze();
6571
6571
  const r = pn(n), i = this.compiler || this.Compiler;
6572
- return ar("stringify", i), Xi(t), i(t, r);
6572
+ return ar("stringify", i), Ji(t), i(t, r);
6573
6573
  }
6574
6574
  /**
6575
6575
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -6681,12 +6681,12 @@ class Xr extends P0 {
6681
6681
  else if (f.length > 0) {
6682
6682
  let [h, ...p] = f;
6683
6683
  const k = r[m][1];
6684
- xr(k) && xr(h) && (h = tr(!0, k, h)), r[m] = [c, h, ...p];
6684
+ Sr(k) && Sr(h) && (h = tr(!0, k, h)), r[m] = [c, h, ...p];
6685
6685
  }
6686
6686
  }
6687
6687
  }
6688
6688
  }
6689
- const F0 = new Xr().freeze();
6689
+ const F0 = new Jr().freeze();
6690
6690
  function ur(e, t) {
6691
6691
  if (typeof t != "function")
6692
6692
  throw new TypeError("Cannot `" + e + "` without `parser`");
@@ -6701,11 +6701,11 @@ function sr(e, t) {
6701
6701
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
6702
6702
  );
6703
6703
  }
6704
- function Xi(e) {
6705
- if (!xr(e) || typeof e.type != "string")
6704
+ function Ji(e) {
6705
+ if (!Sr(e) || typeof e.type != "string")
6706
6706
  throw new TypeError("Expected node, got `" + e + "`");
6707
6707
  }
6708
- function Ji(e, t, n) {
6708
+ function Zi(e, t, n) {
6709
6709
  if (!n)
6710
6710
  throw new Error(
6711
6711
  "`" + e + "` finished async. Use `" + t + "` instead"
@@ -6723,7 +6723,7 @@ function v0(e) {
6723
6723
  function H0(e) {
6724
6724
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6725
6725
  }
6726
- const U0 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Zi = [], eu = { allowDangerousHtml: !0 }, z0 = /^(https?|ircs?|mailto|xmpp)$/i, Y0 = [
6726
+ const U0 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", eu = [], tu = { allowDangerousHtml: !0 }, z0 = /^(https?|ircs?|mailto|xmpp)$/i, Y0 = [
6727
6727
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
6728
6728
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
6729
6729
  {
@@ -6762,7 +6762,7 @@ function V0(e) {
6762
6762
  return $0(t.runSync(t.parse(n), n), e);
6763
6763
  }
6764
6764
  function q0(e) {
6765
- const t = e.rehypePlugins || Zi, n = e.remarkPlugins || Zi, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...eu } : eu;
6765
+ const t = e.rehypePlugins || eu, n = e.remarkPlugins || eu, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...tu } : tu;
6766
6766
  return F0().use(kd).use(n).use(b0, r).use(t);
6767
6767
  }
6768
6768
  function W0(e) {
@@ -6809,7 +6809,7 @@ function j0(e) {
6809
6809
  z0.test(e.slice(0, t)) ? e : ""
6810
6810
  );
6811
6811
  }
6812
- function tu(e, t) {
6812
+ function nu(e, t) {
6813
6813
  const n = String(e);
6814
6814
  if (typeof t != "string")
6815
6815
  throw new TypeError("Expected character");
@@ -6851,12 +6851,12 @@ function Q0(e, t, n) {
6851
6851
  m.lastIndex = 0;
6852
6852
  let x = m.exec(c.value);
6853
6853
  for (; x; ) {
6854
- const P = x.index, w = {
6854
+ const P = x.index, R = {
6855
6855
  index: x.index,
6856
6856
  input: x.input,
6857
6857
  stack: [...f, c]
6858
6858
  };
6859
- let y = h(...x, w);
6859
+ let y = h(...x, R);
6860
6860
  if (typeof y == "string" && (y = y.length > 0 ? { type: "text", value: y } : void 0), y === !1 ? m.lastIndex = P + 1 : (p !== P && O.push({
6861
6861
  type: "text",
6862
6862
  value: c.value.slice(p, P)
@@ -6998,8 +6998,8 @@ function df(e) {
6998
6998
  return [e, void 0];
6999
6999
  e = e.slice(0, t.index);
7000
7000
  let n = t[0], r = n.indexOf(")");
7001
- const i = tu(e, "(");
7002
- let u = tu(e, ")");
7001
+ const i = nu(e, "(");
7002
+ let u = nu(e, ")");
7003
7003
  for (; r !== -1 && i > u; )
7004
7004
  e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), u++;
7005
7005
  return [e, n];
@@ -7166,9 +7166,9 @@ function Df(e, t) {
7166
7166
  let d = -1;
7167
7167
  if (typeof r == "object" && "length" in r)
7168
7168
  for (; ++d < c; )
7169
- u[d] = nu(r[d]);
7169
+ u[d] = ru(r[d]);
7170
7170
  else {
7171
- const k = nu(r);
7171
+ const k = ru(r);
7172
7172
  for (; ++d < c; )
7173
7173
  u[d] = k;
7174
7174
  }
@@ -7195,8 +7195,8 @@ function Df(e, t) {
7195
7195
  const O = k[d] || "";
7196
7196
  let x = "", P = "";
7197
7197
  if (n.alignDelimiters !== !1) {
7198
- const w = l[d] - (I[d] || 0), y = u[d];
7199
- y === 114 ? x = " ".repeat(w) : y === 99 ? w % 2 ? (x = " ".repeat(w / 2 + 0.5), P = " ".repeat(w / 2 - 0.5)) : (x = " ".repeat(w / 2), P = x) : P = " ".repeat(w);
7198
+ const R = l[d] - (I[d] || 0), y = u[d];
7199
+ y === 114 ? x = " ".repeat(R) : y === 99 ? R % 2 ? (x = " ".repeat(R / 2 + 0.5), P = " ".repeat(R / 2 - 0.5)) : (x = " ".repeat(R / 2), P = x) : P = " ".repeat(R);
7200
7200
  }
7201
7201
  n.delimiterStart !== !1 && !d && _.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
7202
7202
  // empty: there will be a closing space.
@@ -7212,19 +7212,19 @@ function Df(e, t) {
7212
7212
  function Rf(e) {
7213
7213
  return e == null ? "" : String(e);
7214
7214
  }
7215
- function nu(e) {
7215
+ function ru(e) {
7216
7216
  const t = typeof e == "string" ? e.codePointAt(0) : 0;
7217
7217
  return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
7218
7218
  }
7219
- const ru = {}.hasOwnProperty;
7219
+ const iu = {}.hasOwnProperty;
7220
7220
  function Oa(e, t) {
7221
7221
  const n = t || {};
7222
7222
  function r(i, ...u) {
7223
7223
  let a = r.invalid;
7224
7224
  const s = r.handlers;
7225
- if (i && ru.call(i, e)) {
7225
+ if (i && iu.call(i, e)) {
7226
7226
  const l = String(i[e]);
7227
- a = ru.call(s, l) ? s[l] : r.unknown;
7227
+ a = iu.call(s, l) ? s[l] : r.unknown;
7228
7228
  }
7229
7229
  if (a)
7230
7230
  return a.call(this, i, ...u);
@@ -7244,9 +7244,9 @@ function Pf(e, t, n) {
7244
7244
  return ">" + (n ? "" : " ") + e;
7245
7245
  }
7246
7246
  function Mf(e, t) {
7247
- return iu(e, t.inConstruct, !0) && !iu(e, t.notInConstruct, !1);
7247
+ return uu(e, t.inConstruct, !0) && !uu(e, t.notInConstruct, !1);
7248
7248
  }
7249
- function iu(e, t, n) {
7249
+ function uu(e, t, n) {
7250
7250
  if (typeof t == "string" && (t = [t]), !t || t.length === 0)
7251
7251
  return n;
7252
7252
  let r = -1;
@@ -7255,7 +7255,7 @@ function iu(e, t, n) {
7255
7255
  return !0;
7256
7256
  return !1;
7257
7257
  }
7258
- function uu(e, t, n, r) {
7258
+ function au(e, t, n, r) {
7259
7259
  let i = -1;
7260
7260
  for (; ++i < n.unsafe.length; )
7261
7261
  if (n.unsafe[i].character === `
@@ -7325,7 +7325,7 @@ function Hf(e, t, n, r) {
7325
7325
  function Uf(e, t, n) {
7326
7326
  return (n ? "" : " ") + e;
7327
7327
  }
7328
- function Jr(e) {
7328
+ function Zr(e) {
7329
7329
  const t = e.options.quote || '"';
7330
7330
  if (t !== '"' && t !== "'")
7331
7331
  throw new Error(
@@ -7334,7 +7334,7 @@ function Jr(e) {
7334
7334
  return t;
7335
7335
  }
7336
7336
  function zf(e, t, n, r) {
7337
- const i = Jr(n), u = i === '"' ? "Quote" : "Apostrophe", a = n.enter("definition");
7337
+ const i = Zr(n), u = i === '"' ? "Quote" : "Apostrophe", a = n.enter("definition");
7338
7338
  let s = n.enter("label");
7339
7339
  const l = n.createTracker(r);
7340
7340
  let c = l.move("[");
@@ -7438,8 +7438,8 @@ function qf(e, t) {
7438
7438
  let n = !1;
7439
7439
  return qn(e, function(r) {
7440
7440
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
7441
- return n = !0, Ir;
7442
- }), !!((!e.depth || e.depth < 3) && qr(e) && (t.options.setext || n));
7441
+ return n = !0, yr;
7442
+ }), !!((!e.depth || e.depth < 3) && Wr(e) && (t.options.setext || n));
7443
7443
  }
7444
7444
  function Wf(e, t, n, r) {
7445
7445
  const i = Math.max(Math.min(6, e.depth || 1), 1), u = n.createTracker(r);
@@ -7479,7 +7479,7 @@ function $f() {
7479
7479
  }
7480
7480
  wa.peek = jf;
7481
7481
  function wa(e, t, n, r) {
7482
- const i = Jr(n), u = i === '"' ? "Quote" : "Apostrophe", a = n.enter("image");
7482
+ const i = Zr(n), u = i === '"' ? "Quote" : "Apostrophe", a = n.enter("image");
7483
7483
  let s = n.enter("label");
7484
7484
  const l = n.createTracker(r);
7485
7485
  let c = l.move("![");
@@ -7550,7 +7550,7 @@ function Qf() {
7550
7550
  return "`";
7551
7551
  }
7552
7552
  function Fa(e, t) {
7553
- const n = qr(e);
7553
+ const n = Wr(e);
7554
7554
  return !!(!t.options.resourceLink && // If there’s a url…
7555
7555
  e.url && // And there’s a no title…
7556
7556
  !e.title && // And the content of `node` is a single text node…
@@ -7562,7 +7562,7 @@ function Fa(e, t) {
7562
7562
  }
7563
7563
  Ba.peek = Kf;
7564
7564
  function Ba(e, t, n, r) {
7565
- const i = Jr(n), u = i === '"' ? "Quote" : "Apostrophe", a = n.createTracker(r);
7565
+ const i = Zr(n), u = i === '"' ? "Quote" : "Apostrophe", a = n.createTracker(r);
7566
7566
  let s, l;
7567
7567
  if (Fa(e, n)) {
7568
7568
  const f = n.stack;
@@ -7629,7 +7629,7 @@ function va(e, t, n, r) {
7629
7629
  function Xf() {
7630
7630
  return "[";
7631
7631
  }
7632
- function Zr(e) {
7632
+ function ei(e) {
7633
7633
  const t = e.options.bullet || "*";
7634
7634
  if (t !== "*" && t !== "+" && t !== "-")
7635
7635
  throw new Error(
@@ -7638,7 +7638,7 @@ function Zr(e) {
7638
7638
  return t;
7639
7639
  }
7640
7640
  function Jf(e) {
7641
- const t = Zr(e), n = e.options.bulletOther;
7641
+ const t = ei(e), n = e.options.bulletOther;
7642
7642
  if (!n)
7643
7643
  return t === "*" ? "-" : "*";
7644
7644
  if (n !== "*" && n !== "+" && n !== "-")
@@ -7669,7 +7669,7 @@ function Ha(e) {
7669
7669
  }
7670
7670
  function eh(e, t, n, r) {
7671
7671
  const i = n.enter("list"), u = n.bulletCurrent;
7672
- let a = e.ordered ? Zf(n) : Zr(n);
7672
+ let a = e.ordered ? Zf(n) : ei(n);
7673
7673
  const s = e.ordered ? a === "." ? ")" : "." : Jf(n);
7674
7674
  let l = t && n.bulletLastUsed ? a === n.bulletLastUsed : !1;
7675
7675
  if (!e.ordered) {
@@ -7705,7 +7705,7 @@ function th(e) {
7705
7705
  }
7706
7706
  function nh(e, t, n, r) {
7707
7707
  const i = th(n);
7708
- let u = n.bulletCurrent || Zr(n);
7708
+ let u = n.bulletCurrent || ei(n);
7709
7709
  t && t.type === "list" && t.ordered && (u = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + u);
7710
7710
  let a = u.length + 1;
7711
7711
  (i === "tab" || i === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (a = Math.ceil(a / 4) * 4);
@@ -7807,11 +7807,11 @@ function ch(e, t, n) {
7807
7807
  }
7808
7808
  const za = {
7809
7809
  blockquote: wf,
7810
- break: uu,
7810
+ break: au,
7811
7811
  code: Hf,
7812
7812
  definition: zf,
7813
7813
  emphasis: Da,
7814
- hardBreak: uu,
7814
+ hardBreak: au,
7815
7815
  heading: Wf,
7816
7816
  html: Ra,
7817
7817
  image: wa,
@@ -7831,8 +7831,8 @@ function dh() {
7831
7831
  return {
7832
7832
  enter: {
7833
7833
  table: fh,
7834
- tableData: au,
7835
- tableHeader: au,
7834
+ tableData: su,
7835
+ tableHeader: su,
7836
7836
  tableRow: mh
7837
7837
  },
7838
7838
  exit: {
@@ -7866,7 +7866,7 @@ function mh(e) {
7866
7866
  function dr(e) {
7867
7867
  this.exit(e);
7868
7868
  }
7869
- function au(e) {
7869
+ function su(e) {
7870
7870
  this.enter({ type: "tableCell", children: [] }, e);
7871
7871
  }
7872
7872
  function ph(e) {
@@ -7958,8 +7958,8 @@ function gh(e) {
7958
7958
  function bh() {
7959
7959
  return {
7960
7960
  exit: {
7961
- taskListCheckValueChecked: su,
7962
- taskListCheckValueUnchecked: su,
7961
+ taskListCheckValueChecked: ou,
7962
+ taskListCheckValueUnchecked: ou,
7963
7963
  paragraph: _h
7964
7964
  }
7965
7965
  };
@@ -7970,7 +7970,7 @@ function Th() {
7970
7970
  handlers: { listItem: Ah }
7971
7971
  };
7972
7972
  }
7973
- function su(e) {
7973
+ function ou(e) {
7974
7974
  const t = this.stack[this.stack.length - 2];
7975
7975
  t.type, t.checked = e.type === "taskListCheckValueChecked";
7976
7976
  }
@@ -8076,10 +8076,10 @@ function xh(e, t, n) {
8076
8076
  let i, u;
8077
8077
  return a;
8078
8078
  function a(d) {
8079
- return !Lr(d) || !Qa.call(r, r.previous) || ei(r.events) ? n(d) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(d));
8079
+ return !Or(d) || !Qa.call(r, r.previous) || ti(r.events) ? n(d) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(d));
8080
8080
  }
8081
8081
  function s(d) {
8082
- return Lr(d) ? (e.consume(d), s) : d === 64 ? (e.consume(d), l) : n(d);
8082
+ return Or(d) ? (e.consume(d), s) : d === 64 ? (e.consume(d), l) : n(d);
8083
8083
  }
8084
8084
  function l(d) {
8085
8085
  return d === 46 ? e.check(Ih, f, c)(d) : d === 45 || d === 95 || _e(d) ? (u = !0, e.consume(d), l) : f(d);
@@ -8095,7 +8095,7 @@ function Sh(e, t, n) {
8095
8095
  const r = this;
8096
8096
  return i;
8097
8097
  function i(a) {
8098
- return a !== 87 && a !== 119 || !ja.call(r, r.previous) || ei(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Nh, e.attempt(Ya, e.attempt(Va, u), n), n)(a));
8098
+ return a !== 87 && a !== 119 || !ja.call(r, r.previous) || ti(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Nh, e.attempt(Ya, e.attempt(Va, u), n), n)(a));
8099
8099
  }
8100
8100
  function u(a) {
8101
8101
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(a);
@@ -8106,7 +8106,7 @@ function Lh(e, t, n) {
8106
8106
  let i = "", u = !1;
8107
8107
  return a;
8108
8108
  function a(d) {
8109
- return (d === 72 || d === 104) && Ga.call(r, r.previous) && !ei(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(d), e.consume(d), s) : n(d);
8109
+ return (d === 72 || d === 104) && Ga.call(r, r.previous) && !ti(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(d), e.consume(d), s) : n(d);
8110
8110
  }
8111
8111
  function s(d) {
8112
8112
  if (Ne(d) && i.length < 5)
@@ -8196,12 +8196,12 @@ function Ga(e) {
8196
8196
  return !Ne(e);
8197
8197
  }
8198
8198
  function Qa(e) {
8199
- return !(e === 47 || Lr(e));
8199
+ return !(e === 47 || Or(e));
8200
8200
  }
8201
- function Lr(e) {
8201
+ function Or(e) {
8202
8202
  return e === 43 || e === 45 || e === 46 || e === 95 || _e(e);
8203
8203
  }
8204
- function ei(e) {
8204
+ function ti(e) {
8205
8205
  let t = e.length, n = !1;
8206
8206
  for (; t--; ) {
8207
8207
  const r = e[t][1];
@@ -8595,16 +8595,16 @@ function Qh(e, t, n) {
8595
8595
  return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(T) : (e.enter("tableDelimiterRow"), a = !1, te(T) ? ue(e, p, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(T) : p(T));
8596
8596
  }
8597
8597
  function p(T) {
8598
- return T === 45 || T === 58 ? I(T) : T === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), k) : w(T);
8598
+ return T === 45 || T === 58 ? I(T) : T === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), k) : R(T);
8599
8599
  }
8600
8600
  function k(T) {
8601
8601
  return te(T) ? ue(e, I, "whitespace")(T) : I(T);
8602
8602
  }
8603
8603
  function I(T) {
8604
- return T === 58 ? (u += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"), _) : T === 45 ? (u += 1, _(T)) : T === null || G(T) ? P(T) : w(T);
8604
+ return T === 58 ? (u += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"), _) : T === 45 ? (u += 1, _(T)) : T === null || G(T) ? P(T) : R(T);
8605
8605
  }
8606
8606
  function _(T) {
8607
- return T === 45 ? (e.enter("tableDelimiterFiller"), O(T)) : w(T);
8607
+ return T === 45 ? (e.enter("tableDelimiterFiller"), O(T)) : R(T);
8608
8608
  }
8609
8609
  function O(T) {
8610
8610
  return T === 45 ? (e.consume(T), O) : T === 58 ? (a = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(T), e.exit("tableDelimiterMarker"), x) : (e.exit("tableDelimiterFiller"), x(T));
@@ -8613,22 +8613,22 @@ function Qh(e, t, n) {
8613
8613
  return te(T) ? ue(e, P, "whitespace")(T) : P(T);
8614
8614
  }
8615
8615
  function P(T) {
8616
- return T === 124 ? p(T) : T === null || G(T) ? !a || i !== u ? w(T) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(T)) : w(T);
8616
+ return T === 124 ? p(T) : T === null || G(T) ? !a || i !== u ? R(T) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(T)) : R(T);
8617
8617
  }
8618
- function w(T) {
8618
+ function R(T) {
8619
8619
  return n(T);
8620
8620
  }
8621
8621
  function y(T) {
8622
- return e.enter("tableRow"), v(T);
8622
+ return e.enter("tableRow"), H(T);
8623
8623
  }
8624
- function v(T) {
8625
- return T === 124 ? (e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), v) : T === null || G(T) ? (e.exit("tableRow"), t(T)) : te(T) ? ue(e, v, "whitespace")(T) : (e.enter("data"), U(T));
8624
+ function H(T) {
8625
+ return T === 124 ? (e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), H) : T === null || G(T) ? (e.exit("tableRow"), t(T)) : te(T) ? ue(e, H, "whitespace")(T) : (e.enter("data"), v(T));
8626
8626
  }
8627
- function U(T) {
8628
- return T === null || T === 124 || ce(T) ? (e.exit("data"), v(T)) : (e.consume(T), T === 92 ? z : U);
8627
+ function v(T) {
8628
+ return T === null || T === 124 || ce(T) ? (e.exit("data"), H(T)) : (e.consume(T), T === 92 ? z : v);
8629
8629
  }
8630
8630
  function z(T) {
8631
- return T === 92 || T === 124 ? (e.consume(T), U) : U(T);
8631
+ return T === 92 || T === 124 ? (e.consume(T), v) : v(T);
8632
8632
  }
8633
8633
  }
8634
8634
  function Kh(e, t) {
@@ -8636,7 +8636,7 @@ function Kh(e, t) {
8636
8636
  const m = new Wh();
8637
8637
  for (; ++n < e.length; ) {
8638
8638
  const h = e[n], p = h[1];
8639
- h[0] === "enter" ? p.type === "tableHead" ? (s = !1, l !== 0 && (ou(m, t, l, c, f), f = void 0, l = 0), c = {
8639
+ h[0] === "enter" ? p.type === "tableHead" ? (s = !1, l !== 0 && (lu(m, t, l, c, f), f = void 0, l = 0), c = {
8640
8640
  type: "table",
8641
8641
  start: Object.assign({}, p.start),
8642
8642
  // Note: correct end is set later.
@@ -8648,7 +8648,7 @@ function Kh(e, t) {
8648
8648
  end: Object.assign({}, p.end)
8649
8649
  }, m.add(n, 0, [["enter", f, t]])), i = p.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (p.type === "data" || p.type === "tableDelimiterMarker" || p.type === "tableDelimiterFiller") ? (r = !1, a[2] === 0 && (u[1] !== 0 && (a[0] = a[1], d = En(m, t, u, i, void 0, d), u = [0, 0, 0, 0]), a[2] = n)) : p.type === "tableCellDivider" && (r ? r = !1 : (u[1] !== 0 && (a[0] = a[1], d = En(m, t, u, i, void 0, d)), u = a, a = [u[1], n, 0, 0])) : p.type === "tableHead" ? (s = !0, l = n) : p.type === "tableRow" || p.type === "tableDelimiterRow" ? (l = n, u[1] !== 0 ? (a[0] = a[1], d = En(m, t, u, i, n, d)) : a[1] !== 0 && (d = En(m, t, a, i, n, d)), i = 0) : i && (p.type === "data" || p.type === "tableDelimiterMarker" || p.type === "tableDelimiterFiller") && (a[3] = n);
8650
8650
  }
8651
- for (l !== 0 && ou(m, t, l, c, f), m.consume(t.events), n = -1; ++n < t.events.length; ) {
8651
+ for (l !== 0 && lu(m, t, l, c, f), m.consume(t.events), n = -1; ++n < t.events.length; ) {
8652
8652
  const h = t.events[n];
8653
8653
  h[0] === "enter" && h[1].type === "table" && (h[1]._align = jh(t.events, n));
8654
8654
  }
@@ -8680,7 +8680,7 @@ function En(e, t, n, r, i, u) {
8680
8680
  }
8681
8681
  return i !== void 0 && (u.end = Object.assign({}, kt(t.events, i)), e.add(i, 0, [["exit", u, t]]), u = void 0), u;
8682
8682
  }
8683
- function ou(e, t, n, r, i) {
8683
+ function lu(e, t, n, r, i) {
8684
8684
  const u = [], a = kt(t.events, n);
8685
8685
  i && (i.end = Object.assign({}, a), u.push(["exit", i, t])), r.end = Object.assign({}, a), u.push(["exit", r, t]), e.add(n + 1, 0, u);
8686
8686
  }
@@ -8745,13 +8745,13 @@ function rm(e) {
8745
8745
  ), n = e || nm, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), u = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), a = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
8746
8746
  i.push(tm(n)), u.push(kh()), a.push(Ch(n));
8747
8747
  }
8748
- const lu = /[#.]/g;
8748
+ const cu = /[#.]/g;
8749
8749
  function im(e, t) {
8750
8750
  const n = e || "", r = {};
8751
8751
  let i = 0, u, a;
8752
8752
  for (; i < n.length; ) {
8753
- lu.lastIndex = i;
8754
- const s = lu.exec(n), l = n.slice(i, s ? s.index : n.length);
8753
+ cu.lastIndex = i;
8754
+ const s = cu.exec(n), l = n.slice(i, s ? s.index : n.length);
8755
8755
  l && (u ? u === "#" ? r.id = l : Array.isArray(r.className) ? r.className.push(l) : r.className = [l] : a = l, i += l.length), s && (u = s[0], i++);
8756
8756
  }
8757
8757
  return {
@@ -8783,7 +8783,7 @@ function Ka(e, t, n) {
8783
8783
  am(e, l.properties, d, m);
8784
8784
  }
8785
8785
  for (const c of s)
8786
- Or(l.children, c);
8786
+ Dr(l.children, c);
8787
8787
  return l.type === "element" && l.tagName === "template" && (l.content = { type: "root", children: l.children }, l.children = []), l;
8788
8788
  }
8789
8789
  return i;
@@ -8818,13 +8818,13 @@ function am(e, t, n, r) {
8818
8818
  if (typeof r == "number") {
8819
8819
  if (Number.isNaN(r)) return;
8820
8820
  u = r;
8821
- } else typeof r == "boolean" ? u = r : typeof r == "string" ? i.spaceSeparated ? u = ki(r) : i.commaSeparated ? u = gi(r) : i.commaOrSpaceSeparated ? u = ki(gi(r).join(" ")) : u = cu(i, i.property, r) : Array.isArray(r) ? u = [...r] : u = i.property === "style" ? sm(r) : String(r);
8821
+ } else typeof r == "boolean" ? u = r : typeof r == "string" ? i.spaceSeparated ? u = Ci(r) : i.commaSeparated ? u = bi(r) : i.commaOrSpaceSeparated ? u = Ci(bi(r).join(" ")) : u = du(i, i.property, r) : Array.isArray(r) ? u = [...r] : u = i.property === "style" ? sm(r) : String(r);
8822
8822
  if (Array.isArray(u)) {
8823
8823
  const a = [];
8824
8824
  for (const s of u)
8825
8825
  a.push(
8826
8826
  /** @type {number | string} */
8827
- cu(i, i.property, s)
8827
+ du(i, i.property, s)
8828
8828
  );
8829
8829
  u = a;
8830
8830
  }
@@ -8834,18 +8834,18 @@ function am(e, t, n, r) {
8834
8834
  )), t[i.property] = u;
8835
8835
  }
8836
8836
  }
8837
- function Or(e, t) {
8837
+ function Dr(e, t) {
8838
8838
  if (t != null) if (typeof t == "number" || typeof t == "string")
8839
8839
  e.push({ type: "text", value: String(t) });
8840
8840
  else if (Array.isArray(t))
8841
8841
  for (const n of t)
8842
- Or(e, n);
8842
+ Dr(e, n);
8843
8843
  else if (typeof t == "object" && "type" in t)
8844
- t.type === "root" ? Or(e, t.children) : e.push(t);
8844
+ t.type === "root" ? Dr(e, t.children) : e.push(t);
8845
8845
  else
8846
8846
  throw new Error("Expected node, nodes, or string, got `" + t + "`");
8847
8847
  }
8848
- function cu(e, t, n) {
8848
+ function du(e, t, n) {
8849
8849
  if (typeof n == "string") {
8850
8850
  if (e.number && n && !Number.isNaN(Number(n)))
8851
8851
  return Number(n);
@@ -8916,7 +8916,7 @@ function fm(e) {
8916
8916
  for (; ; ) {
8917
8917
  let s = n[a];
8918
8918
  if (s === void 0) {
8919
- const l = du(t, n[a - 1]);
8919
+ const l = fu(t, n[a - 1]);
8920
8920
  s = l === -1 ? t.length + 1 : l + 1, n[a] = s;
8921
8921
  }
8922
8922
  if (s > u)
@@ -8932,7 +8932,7 @@ function fm(e) {
8932
8932
  function i(u) {
8933
8933
  if (u && typeof u.line == "number" && typeof u.column == "number" && !Number.isNaN(u.line) && !Number.isNaN(u.column)) {
8934
8934
  for (; n.length < u.line; ) {
8935
- const s = n[n.length - 1], l = du(t, s), c = l === -1 ? t.length + 1 : l + 1;
8935
+ const s = n[n.length - 1], l = fu(t, s), c = l === -1 ? t.length + 1 : l + 1;
8936
8936
  if (s === c) break;
8937
8937
  n.push(c);
8938
8938
  }
@@ -8941,7 +8941,7 @@ function fm(e) {
8941
8941
  }
8942
8942
  }
8943
8943
  }
8944
- function du(e, t) {
8944
+ function fu(e, t) {
8945
8945
  const n = e.indexOf("\r", t), r = e.indexOf(`
8946
8946
  `, t);
8947
8947
  return r === -1 ? n : n === -1 || n + 1 === r ? r : n < r ? n : r;
@@ -8956,7 +8956,7 @@ const lt = {
8956
8956
  }, Xa = {}.hasOwnProperty, hm = Object.prototype;
8957
8957
  function mm(e, t) {
8958
8958
  const n = t || {};
8959
- return ti(
8959
+ return ni(
8960
8960
  {
8961
8961
  file: n.file || void 0,
8962
8962
  location: !1,
@@ -8966,7 +8966,7 @@ function mm(e, t) {
8966
8966
  e
8967
8967
  );
8968
8968
  }
8969
- function ti(e, t) {
8969
+ function ni(e, t) {
8970
8970
  let n;
8971
8971
  switch (t.nodeName) {
8972
8972
  case "#comment": {
@@ -9021,7 +9021,7 @@ function Ja(e, t) {
9021
9021
  for (; ++n < t.length; ) {
9022
9022
  const i = (
9023
9023
  /** @type {RootContent} */
9024
- ti(e, t[n])
9024
+ ni(e, t[n])
9025
9025
  );
9026
9026
  r.push(i);
9027
9027
  }
@@ -9043,7 +9043,7 @@ function pm(e, t) {
9043
9043
  t
9044
9044
  ), l = s.sourceCodeLocation, c = l && l.startTag && Nt(l.startTag), f = l && l.endTag && Nt(l.endTag), d = (
9045
9045
  /** @type {Root} */
9046
- ti(e, s.content)
9046
+ ni(e, s.content)
9047
9047
  );
9048
9048
  c && f && e.file && (d.position = { start: c.end, end: f.start }), a.content = d;
9049
9049
  }
@@ -9075,18 +9075,18 @@ function Em(e, t, n) {
9075
9075
  return r;
9076
9076
  }
9077
9077
  function Nt(e) {
9078
- const t = fu({
9078
+ const t = hu({
9079
9079
  line: e.startLine,
9080
9080
  column: e.startCol,
9081
9081
  offset: e.startOffset
9082
- }), n = fu({
9082
+ }), n = hu({
9083
9083
  line: e.endLine,
9084
9084
  column: e.endCol,
9085
9085
  offset: e.endOffset
9086
9086
  });
9087
9087
  return t || n ? { start: t, end: n } : void 0;
9088
9088
  }
9089
- function fu(e) {
9089
+ function hu(e) {
9090
9090
  return e.line && e.column ? e : void 0;
9091
9091
  }
9092
9092
  const gm = {}, bm = {}.hasOwnProperty, Za = Oa("type", { handlers: { root: _m, element: Im, text: Cm, comment: Nm, doctype: km } });
@@ -9101,11 +9101,11 @@ function _m(e, t) {
9101
9101
  mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
9102
9102
  childNodes: []
9103
9103
  };
9104
- return n.childNodes = ni(e.children, n, t), Ot(e, n), n;
9104
+ return n.childNodes = ri(e.children, n, t), Ot(e, n), n;
9105
9105
  }
9106
9106
  function Am(e, t) {
9107
9107
  const n = { nodeName: "#document-fragment", childNodes: [] };
9108
- return n.childNodes = ni(e.children, n, t), Ot(e, n), n;
9108
+ return n.childNodes = ri(e.children, n, t), Ot(e, n), n;
9109
9109
  }
9110
9110
  function km(e) {
9111
9111
  const t = {
@@ -9159,7 +9159,7 @@ function Im(e, t) {
9159
9159
  childNodes: [],
9160
9160
  parentNode: null
9161
9161
  };
9162
- return s.childNodes = ni(e.children, s, r), Ot(e, s), e.tagName === "template" && e.content && (s.content = Am(e.content, r)), s;
9162
+ return s.childNodes = ri(e.children, s, r), Ot(e, s), e.tagName === "template" && e.content && (s.content = Am(e.content, r)), s;
9163
9163
  }
9164
9164
  function ym(e, t, n) {
9165
9165
  const r = Bn(e, t);
@@ -9176,7 +9176,7 @@ function ym(e, t, n) {
9176
9176
  }
9177
9177
  return i;
9178
9178
  }
9179
- function ni(e, t, n) {
9179
+ function ri(e, t, n) {
9180
9180
  let r = -1;
9181
9181
  const i = [];
9182
9182
  if (e)
@@ -9425,14 +9425,14 @@ var Ze;
9425
9425
  (function(e) {
9426
9426
  e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
9427
9427
  })(Ze || (Ze = {}));
9428
- function Dr(e) {
9428
+ function Rr(e) {
9429
9429
  return e >= ge.ZERO && e <= ge.NINE;
9430
9430
  }
9431
9431
  function Bm(e) {
9432
9432
  return e >= ge.UPPER_A && e <= ge.UPPER_F || e >= ge.LOWER_A && e <= ge.LOWER_F;
9433
9433
  }
9434
9434
  function vm(e) {
9435
- return e >= ge.UPPER_A && e <= ge.UPPER_Z || e >= ge.LOWER_A && e <= ge.LOWER_Z || Dr(e);
9435
+ return e >= ge.UPPER_A && e <= ge.UPPER_Z || e >= ge.LOWER_A && e <= ge.LOWER_Z || Rr(e);
9436
9436
  }
9437
9437
  function Hm(e) {
9438
9438
  return e === ge.EQUALS || vm(e);
@@ -9509,7 +9509,7 @@ class Um {
9509
9509
  const r = n;
9510
9510
  for (; n < t.length; ) {
9511
9511
  const i = t.charCodeAt(n);
9512
- if (Dr(i) || Bm(i))
9512
+ if (Rr(i) || Bm(i))
9513
9513
  n += 1;
9514
9514
  else
9515
9515
  return this.addToNumericResult(t, r, n, 16), this.emitNumericEntity(i, 3);
@@ -9529,7 +9529,7 @@ class Um {
9529
9529
  const r = n;
9530
9530
  for (; n < t.length; ) {
9531
9531
  const i = t.charCodeAt(n);
9532
- if (Dr(i))
9532
+ if (Rr(i))
9533
9533
  n += 1;
9534
9534
  else
9535
9535
  return this.addToNumericResult(t, r, n, 10), this.emitNumericEntity(i, 2);
@@ -9802,96 +9802,96 @@ function Dt(e) {
9802
9802
  var t;
9803
9803
  return (t = Ym.get(e)) !== null && t !== void 0 ? t : o.UNKNOWN;
9804
9804
  }
9805
- const H = o, Vm = {
9805
+ const U = o, Vm = {
9806
9806
  [B.HTML]: /* @__PURE__ */ new Set([
9807
- H.ADDRESS,
9808
- H.APPLET,
9809
- H.AREA,
9810
- H.ARTICLE,
9811
- H.ASIDE,
9812
- H.BASE,
9813
- H.BASEFONT,
9814
- H.BGSOUND,
9815
- H.BLOCKQUOTE,
9816
- H.BODY,
9817
- H.BR,
9818
- H.BUTTON,
9819
- H.CAPTION,
9820
- H.CENTER,
9821
- H.COL,
9822
- H.COLGROUP,
9823
- H.DD,
9824
- H.DETAILS,
9825
- H.DIR,
9826
- H.DIV,
9827
- H.DL,
9828
- H.DT,
9829
- H.EMBED,
9830
- H.FIELDSET,
9831
- H.FIGCAPTION,
9832
- H.FIGURE,
9833
- H.FOOTER,
9834
- H.FORM,
9835
- H.FRAME,
9836
- H.FRAMESET,
9837
- H.H1,
9838
- H.H2,
9839
- H.H3,
9840
- H.H4,
9841
- H.H5,
9842
- H.H6,
9843
- H.HEAD,
9844
- H.HEADER,
9845
- H.HGROUP,
9846
- H.HR,
9847
- H.HTML,
9848
- H.IFRAME,
9849
- H.IMG,
9850
- H.INPUT,
9851
- H.LI,
9852
- H.LINK,
9853
- H.LISTING,
9854
- H.MAIN,
9855
- H.MARQUEE,
9856
- H.MENU,
9857
- H.META,
9858
- H.NAV,
9859
- H.NOEMBED,
9860
- H.NOFRAMES,
9861
- H.NOSCRIPT,
9862
- H.OBJECT,
9863
- H.OL,
9864
- H.P,
9865
- H.PARAM,
9866
- H.PLAINTEXT,
9867
- H.PRE,
9868
- H.SCRIPT,
9869
- H.SECTION,
9870
- H.SELECT,
9871
- H.SOURCE,
9872
- H.STYLE,
9873
- H.SUMMARY,
9874
- H.TABLE,
9875
- H.TBODY,
9876
- H.TD,
9877
- H.TEMPLATE,
9878
- H.TEXTAREA,
9879
- H.TFOOT,
9880
- H.TH,
9881
- H.THEAD,
9882
- H.TITLE,
9883
- H.TR,
9884
- H.TRACK,
9885
- H.UL,
9886
- H.WBR,
9887
- H.XMP
9807
+ U.ADDRESS,
9808
+ U.APPLET,
9809
+ U.AREA,
9810
+ U.ARTICLE,
9811
+ U.ASIDE,
9812
+ U.BASE,
9813
+ U.BASEFONT,
9814
+ U.BGSOUND,
9815
+ U.BLOCKQUOTE,
9816
+ U.BODY,
9817
+ U.BR,
9818
+ U.BUTTON,
9819
+ U.CAPTION,
9820
+ U.CENTER,
9821
+ U.COL,
9822
+ U.COLGROUP,
9823
+ U.DD,
9824
+ U.DETAILS,
9825
+ U.DIR,
9826
+ U.DIV,
9827
+ U.DL,
9828
+ U.DT,
9829
+ U.EMBED,
9830
+ U.FIELDSET,
9831
+ U.FIGCAPTION,
9832
+ U.FIGURE,
9833
+ U.FOOTER,
9834
+ U.FORM,
9835
+ U.FRAME,
9836
+ U.FRAMESET,
9837
+ U.H1,
9838
+ U.H2,
9839
+ U.H3,
9840
+ U.H4,
9841
+ U.H5,
9842
+ U.H6,
9843
+ U.HEAD,
9844
+ U.HEADER,
9845
+ U.HGROUP,
9846
+ U.HR,
9847
+ U.HTML,
9848
+ U.IFRAME,
9849
+ U.IMG,
9850
+ U.INPUT,
9851
+ U.LI,
9852
+ U.LINK,
9853
+ U.LISTING,
9854
+ U.MAIN,
9855
+ U.MARQUEE,
9856
+ U.MENU,
9857
+ U.META,
9858
+ U.NAV,
9859
+ U.NOEMBED,
9860
+ U.NOFRAMES,
9861
+ U.NOSCRIPT,
9862
+ U.OBJECT,
9863
+ U.OL,
9864
+ U.P,
9865
+ U.PARAM,
9866
+ U.PLAINTEXT,
9867
+ U.PRE,
9868
+ U.SCRIPT,
9869
+ U.SECTION,
9870
+ U.SELECT,
9871
+ U.SOURCE,
9872
+ U.STYLE,
9873
+ U.SUMMARY,
9874
+ U.TABLE,
9875
+ U.TBODY,
9876
+ U.TD,
9877
+ U.TEMPLATE,
9878
+ U.TEXTAREA,
9879
+ U.TFOOT,
9880
+ U.TH,
9881
+ U.THEAD,
9882
+ U.TITLE,
9883
+ U.TR,
9884
+ U.TRACK,
9885
+ U.UL,
9886
+ U.WBR,
9887
+ U.XMP
9888
9888
  ]),
9889
- [B.MATHML]: /* @__PURE__ */ new Set([H.MI, H.MO, H.MN, H.MS, H.MTEXT, H.ANNOTATION_XML]),
9890
- [B.SVG]: /* @__PURE__ */ new Set([H.TITLE, H.FOREIGN_OBJECT, H.DESC]),
9889
+ [B.MATHML]: /* @__PURE__ */ new Set([U.MI, U.MO, U.MN, U.MS, U.MTEXT, U.ANNOTATION_XML]),
9890
+ [B.SVG]: /* @__PURE__ */ new Set([U.TITLE, U.FOREIGN_OBJECT, U.DESC]),
9891
9891
  [B.XLINK]: /* @__PURE__ */ new Set(),
9892
9892
  [B.XML]: /* @__PURE__ */ new Set(),
9893
9893
  [B.XMLNS]: /* @__PURE__ */ new Set()
9894
- }, Rr = /* @__PURE__ */ new Set([H.H1, H.H2, H.H3, H.H4, H.H5, H.H6]);
9894
+ }, wr = /* @__PURE__ */ new Set([U.H1, U.H2, U.H3, U.H4, U.H5, U.H6]);
9895
9895
  S.STYLE, S.SCRIPT, S.XMP, S.IFRAME, S.NOEMBED, S.NOFRAMES, S.PLAINTEXT;
9896
9896
  var g;
9897
9897
  (function(e) {
@@ -9917,7 +9917,7 @@ function Wm(e) {
9917
9917
  function Ke(e) {
9918
9918
  return Wm(e) || Yt(e);
9919
9919
  }
9920
- function hu(e) {
9920
+ function mu(e) {
9921
9921
  return Ke(e) || qm(e);
9922
9922
  }
9923
9923
  function gn(e) {
@@ -9926,7 +9926,7 @@ function gn(e) {
9926
9926
  function is(e) {
9927
9927
  return e === E.SPACE || e === E.LINE_FEED || e === E.TABULATION || e === E.FORM_FEED;
9928
9928
  }
9929
- function mu(e) {
9929
+ function pu(e) {
9930
9930
  return is(e) || e === E.SOLIDUS || e === E.GREATER_THAN_SIGN;
9931
9931
  }
9932
9932
  function $m(e) {
@@ -10809,7 +10809,7 @@ class jm {
10809
10809
  // Script data double escape start state
10810
10810
  //------------------------------------------------------------------
10811
10811
  _stateScriptDataDoubleEscapeStart(t) {
10812
- if (this.preprocessor.startsWith(Ie.SCRIPT, !1) && mu(this.preprocessor.peek(Ie.SCRIPT.length))) {
10812
+ if (this.preprocessor.startsWith(Ie.SCRIPT, !1) && pu(this.preprocessor.peek(Ie.SCRIPT.length))) {
10813
10813
  this._emitCodePoint(t);
10814
10814
  for (let n = 0; n < Ie.SCRIPT.length; n++)
10815
10815
  this._emitCodePoint(this._consume());
@@ -10900,7 +10900,7 @@ class jm {
10900
10900
  // Script data double escape end state
10901
10901
  //------------------------------------------------------------------
10902
10902
  _stateScriptDataDoubleEscapeEnd(t) {
10903
- if (this.preprocessor.startsWith(Ie.SCRIPT, !1) && mu(this.preprocessor.peek(Ie.SCRIPT.length))) {
10903
+ if (this.preprocessor.startsWith(Ie.SCRIPT, !1) && pu(this.preprocessor.peek(Ie.SCRIPT.length))) {
10904
10904
  this._emitCodePoint(t);
10905
10905
  for (let n = 0; n < Ie.SCRIPT.length; n++)
10906
10906
  this._emitCodePoint(this._consume());
@@ -11814,15 +11814,15 @@ class jm {
11814
11814
  this.active = !1, this.preprocessor.pos = this.preprocessor.html.length - 1, this.consumedAfterSnapshot = 0, this.preprocessor.endOfChunkHit = !0;
11815
11815
  return;
11816
11816
  }
11817
- t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(E.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && hu(this.preprocessor.peek(1)) ? g.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
11817
+ t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(E.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && mu(this.preprocessor.peek(1)) ? g.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
11818
11818
  }
11819
11819
  // Ambiguos ampersand state
11820
11820
  //------------------------------------------------------------------
11821
11821
  _stateAmbiguousAmpersand(t) {
11822
- hu(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === E.SEMICOLON && this._err(D.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
11822
+ mu(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === E.SEMICOLON && this._err(D.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
11823
11823
  }
11824
11824
  }
11825
- const us = /* @__PURE__ */ new Set([o.DD, o.DT, o.LI, o.OPTGROUP, o.OPTION, o.P, o.RB, o.RP, o.RT, o.RTC]), pu = /* @__PURE__ */ new Set([
11825
+ const us = /* @__PURE__ */ new Set([o.DD, o.DT, o.LI, o.OPTGROUP, o.OPTION, o.P, o.RB, o.RP, o.RT, o.RTC]), Eu = /* @__PURE__ */ new Set([
11826
11826
  ...us,
11827
11827
  o.CAPTION,
11828
11828
  o.COLGROUP,
@@ -11842,7 +11842,7 @@ const us = /* @__PURE__ */ new Set([o.DD, o.DT, o.LI, o.OPTGROUP, o.OPTION, o.P,
11842
11842
  o.TD,
11843
11843
  o.TEMPLATE,
11844
11844
  o.TH
11845
- ]), Gm = /* @__PURE__ */ new Set([...On, o.OL, o.UL]), Qm = /* @__PURE__ */ new Set([...On, o.BUTTON]), Eu = /* @__PURE__ */ new Set([o.ANNOTATION_XML, o.MI, o.MN, o.MO, o.MS, o.MTEXT]), gu = /* @__PURE__ */ new Set([o.DESC, o.FOREIGN_OBJECT, o.TITLE]), Km = /* @__PURE__ */ new Set([o.TR, o.TEMPLATE, o.HTML]), Xm = /* @__PURE__ */ new Set([o.TBODY, o.TFOOT, o.THEAD, o.TEMPLATE, o.HTML]), Jm = /* @__PURE__ */ new Set([o.TABLE, o.TEMPLATE, o.HTML]), Zm = /* @__PURE__ */ new Set([o.TD, o.TH]);
11845
+ ]), Gm = /* @__PURE__ */ new Set([...On, o.OL, o.UL]), Qm = /* @__PURE__ */ new Set([...On, o.BUTTON]), gu = /* @__PURE__ */ new Set([o.ANNOTATION_XML, o.MI, o.MN, o.MO, o.MS, o.MTEXT]), bu = /* @__PURE__ */ new Set([o.DESC, o.FOREIGN_OBJECT, o.TITLE]), Km = /* @__PURE__ */ new Set([o.TR, o.TEMPLATE, o.HTML]), Xm = /* @__PURE__ */ new Set([o.TBODY, o.TFOOT, o.THEAD, o.TEMPLATE, o.HTML]), Jm = /* @__PURE__ */ new Set([o.TABLE, o.TEMPLATE, o.HTML]), Zm = /* @__PURE__ */ new Set([o.TD, o.TH]);
11846
11846
  class e1 {
11847
11847
  get currentTmplContentOrNode() {
11848
11848
  return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
@@ -11899,7 +11899,7 @@ class e1 {
11899
11899
  this.shortenToLength(Math.max(r, 0));
11900
11900
  }
11901
11901
  popUntilNumberedHeaderPopped() {
11902
- this.popUntilPopped(Rr, B.HTML);
11902
+ this.popUntilPopped(wr, B.HTML);
11903
11903
  }
11904
11904
  popUntilTableCellPopped() {
11905
11905
  this.popUntilPopped(Zm, B.HTML);
@@ -11957,12 +11957,12 @@ class e1 {
11957
11957
  break;
11958
11958
  }
11959
11959
  case B.SVG: {
11960
- if (gu.has(i))
11960
+ if (bu.has(i))
11961
11961
  return !1;
11962
11962
  break;
11963
11963
  }
11964
11964
  case B.MATHML: {
11965
- if (Eu.has(i))
11965
+ if (gu.has(i))
11966
11966
  return !1;
11967
11967
  break;
11968
11968
  }
@@ -11984,19 +11984,19 @@ class e1 {
11984
11984
  const n = this.tagIDs[t];
11985
11985
  switch (this.treeAdapter.getNamespaceURI(this.items[t])) {
11986
11986
  case B.HTML: {
11987
- if (Rr.has(n))
11987
+ if (wr.has(n))
11988
11988
  return !0;
11989
11989
  if (On.has(n))
11990
11990
  return !1;
11991
11991
  break;
11992
11992
  }
11993
11993
  case B.SVG: {
11994
- if (gu.has(n))
11994
+ if (bu.has(n))
11995
11995
  return !1;
11996
11996
  break;
11997
11997
  }
11998
11998
  case B.MATHML: {
11999
- if (Eu.has(n))
11999
+ if (gu.has(n))
12000
12000
  return !1;
12001
12001
  break;
12002
12002
  }
@@ -12050,11 +12050,11 @@ class e1 {
12050
12050
  this.pop();
12051
12051
  }
12052
12052
  generateImpliedEndTagsThoroughly() {
12053
- for (; this.currentTagId !== void 0 && pu.has(this.currentTagId); )
12053
+ for (; this.currentTagId !== void 0 && Eu.has(this.currentTagId); )
12054
12054
  this.pop();
12055
12055
  }
12056
12056
  generateImpliedEndTagsWithExclusion(t) {
12057
- for (; this.currentTagId !== void 0 && this.currentTagId !== t && pu.has(this.currentTagId); )
12057
+ for (; this.currentTagId !== void 0 && this.currentTagId !== t && Eu.has(this.currentTagId); )
12058
12058
  this.pop();
12059
12059
  }
12060
12060
  }
@@ -12063,7 +12063,7 @@ var Ue;
12063
12063
  (function(e) {
12064
12064
  e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
12065
12065
  })(Ue || (Ue = {}));
12066
- const bu = { type: Ue.Marker };
12066
+ const Tu = { type: Ue.Marker };
12067
12067
  class t1 {
12068
12068
  constructor(t) {
12069
12069
  this.treeAdapter = t, this.entries = [], this.bookmark = null;
@@ -12100,7 +12100,7 @@ class t1 {
12100
12100
  }
12101
12101
  //Mutations
12102
12102
  insertMarker() {
12103
- this.entries.unshift(bu);
12103
+ this.entries.unshift(Tu);
12104
12104
  }
12105
12105
  pushElement(t, n) {
12106
12106
  this._ensureNoahArkCondition(t), this.entries.unshift({
@@ -12127,7 +12127,7 @@ class t1 {
12127
12127
  * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker
12128
12128
  */
12129
12129
  clearToLastMarker() {
12130
- const t = this.entries.indexOf(bu);
12130
+ const t = this.entries.indexOf(Tu);
12131
12131
  t === -1 ? this.entries.length = 0 : this.entries.splice(0, t + 1);
12132
12132
  }
12133
12133
  //Search
@@ -12365,7 +12365,7 @@ const Xe = {
12365
12365
  "-//w3c//dtd html 4.01 frameset//",
12366
12366
  "-//w3c//dtd html 4.01 transitional//"
12367
12367
  ];
12368
- function Tu(e, t) {
12368
+ function _u(e, t) {
12369
12369
  return t.some((n) => e.startsWith(n));
12370
12370
  }
12371
12371
  function s1(e) {
@@ -12382,14 +12382,14 @@ function o1(e) {
12382
12382
  if (n = n.toLowerCase(), u1.has(n))
12383
12383
  return Re.QUIRKS;
12384
12384
  let r = t === null ? i1 : ss;
12385
- if (Tu(n, r))
12385
+ if (_u(n, r))
12386
12386
  return Re.QUIRKS;
12387
- if (r = t === null ? os : a1, Tu(n, r))
12387
+ if (r = t === null ? os : a1, _u(n, r))
12388
12388
  return Re.LIMITED_QUIRKS;
12389
12389
  }
12390
12390
  return Re.NO_QUIRKS;
12391
12391
  }
12392
- const _u = {
12392
+ const Au = {
12393
12393
  TEXT_HTML: "text/html",
12394
12394
  APPLICATION_XML: "application/xhtml+xml"
12395
12395
  }, l1 = "definitionurl", c1 = "definitionURL", d1 = new Map([
@@ -12563,7 +12563,7 @@ function cs(e) {
12563
12563
  n != null && (e.attrs[t].name = n);
12564
12564
  }
12565
12565
  }
12566
- function ri(e) {
12566
+ function ii(e) {
12567
12567
  for (let t = 0; t < e.attrs.length; t++) {
12568
12568
  const n = f1.get(e.attrs[t].name);
12569
12569
  n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace);
@@ -12581,7 +12581,7 @@ function b1(e, t, n) {
12581
12581
  for (let r = 0; r < n.length; r++)
12582
12582
  if (n[r].name === dt.ENCODING) {
12583
12583
  const i = n[r].value.toLowerCase();
12584
- return i === _u.TEXT_HTML || i === _u.APPLICATION_XML;
12584
+ return i === Au.TEXT_HTML || i === Au.APPLICATION_XML;
12585
12585
  }
12586
12586
  }
12587
12587
  return t === B.SVG && (e === o.FOREIGN_OBJECT || e === o.DESC || e === o.TITLE);
@@ -12601,16 +12601,16 @@ const C1 = {
12601
12601
  endLine: -1,
12602
12602
  endCol: -1,
12603
12603
  endOffset: -1
12604
- }, ds = /* @__PURE__ */ new Set([o.TABLE, o.TBODY, o.TFOOT, o.THEAD, o.TR]), Au = {
12604
+ }, ds = /* @__PURE__ */ new Set([o.TABLE, o.TBODY, o.TFOOT, o.THEAD, o.TR]), ku = {
12605
12605
  scriptingEnabled: !0,
12606
12606
  sourceCodeLocationInfo: !1,
12607
12607
  treeAdapter: Xe,
12608
12608
  onParseError: null
12609
12609
  };
12610
- class ku {
12610
+ class Cu {
12611
12611
  constructor(t, n, r = null, i = null) {
12612
12612
  this.fragmentContext = r, this.scriptHandler = i, this.currentToken = null, this.stopped = !1, this.insertionMode = b.INITIAL, this.originalInsertionMode = b.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
12613
- ...Au,
12613
+ ...ku,
12614
12614
  ...t
12615
12615
  }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new jm(this.options, this), this.activeFormattingElements = new t1(this.treeAdapter), this.fragmentContextID = r ? Dt(this.treeAdapter.getTagName(r)) : o.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new e1(this.document, this.treeAdapter, this);
12616
12616
  }
@@ -12621,7 +12621,7 @@ class ku {
12621
12621
  }
12622
12622
  static getFragmentParser(t, n) {
12623
12623
  const r = {
12624
- ...Au,
12624
+ ...ku,
12625
12625
  ...n
12626
12626
  };
12627
12627
  t ?? (t = r.treeAdapter.createElement(S.TEMPLATE, B.HTML, []));
@@ -13131,7 +13131,7 @@ class ku {
13131
13131
  /** @internal */
13132
13132
  onComment(t) {
13133
13133
  if (this.skipNextNewLine = !1, this.currentNotInHTML) {
13134
- wr(this, t);
13134
+ Pr(this, t);
13135
13135
  return;
13136
13136
  }
13137
13137
  switch (this.insertionMode) {
@@ -13153,7 +13153,7 @@ class ku {
13153
13153
  case b.IN_TEMPLATE:
13154
13154
  case b.IN_FRAMESET:
13155
13155
  case b.AFTER_FRAMESET: {
13156
- wr(this, t);
13156
+ Pr(this, t);
13157
13157
  break;
13158
13158
  }
13159
13159
  case b.IN_TABLE_TEXT: {
@@ -13253,7 +13253,7 @@ class ku {
13253
13253
  break;
13254
13254
  }
13255
13255
  case b.IN_COLUMN_GROUP: {
13256
- ai(this, t);
13256
+ si(this, t);
13257
13257
  break;
13258
13258
  }
13259
13259
  case b.IN_TABLE_BODY: {
@@ -13358,7 +13358,7 @@ class ku {
13358
13358
  break;
13359
13359
  }
13360
13360
  case b.IN_TABLE_BODY: {
13361
- Pr(this, t);
13361
+ Mr(this, t);
13362
13362
  break;
13363
13363
  }
13364
13364
  case b.IN_ROW: {
@@ -13455,7 +13455,7 @@ class ku {
13455
13455
  case b.AFTER_FRAMESET:
13456
13456
  case b.AFTER_AFTER_BODY:
13457
13457
  case b.AFTER_AFTER_FRAMESET: {
13458
- ui(this, t);
13458
+ ai(this, t);
13459
13459
  break;
13460
13460
  }
13461
13461
  }
@@ -13547,7 +13547,7 @@ function L1(e, t, n) {
13547
13547
  const r = e.treeAdapter.getNamespaceURI(n.element), { token: i } = n, u = e.treeAdapter.createElement(i.tagName, r, i.attrs);
13548
13548
  e._adoptNodes(t, u), e.treeAdapter.appendChild(t, u), e.activeFormattingElements.insertElementAfterBookmark(u, i), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, u, i.tagID);
13549
13549
  }
13550
- function ii(e, t) {
13550
+ function ui(e, t) {
13551
13551
  for (let n = 0; n < A1; n++) {
13552
13552
  const r = N1(e, t);
13553
13553
  if (!r)
@@ -13560,7 +13560,7 @@ function ii(e, t) {
13560
13560
  e.treeAdapter.detachNode(u), a && S1(e, a, u), L1(e, i, r);
13561
13561
  }
13562
13562
  }
13563
- function wr(e, t) {
13563
+ function Pr(e, t) {
13564
13564
  e._appendCommentNode(t, e.openElements.currentTmplContentOrNode);
13565
13565
  }
13566
13566
  function O1(e, t) {
@@ -13569,7 +13569,7 @@ function O1(e, t) {
13569
13569
  function D1(e, t) {
13570
13570
  e._appendCommentNode(t, e.document);
13571
13571
  }
13572
- function ui(e, t) {
13572
+ function ai(e, t) {
13573
13573
  if (e.stopped = !0, t.location) {
13574
13574
  const n = e.fragmentContext ? 0 : 2;
13575
13575
  for (let r = e.openElements.stackTop; r >= n; r--)
@@ -13798,7 +13798,7 @@ function Wn(e, t) {
13798
13798
  break;
13799
13799
  }
13800
13800
  case ee.COMMENT: {
13801
- wr(e, t);
13801
+ Pr(e, t);
13802
13802
  break;
13803
13803
  }
13804
13804
  case ee.START_TAG: {
@@ -13836,7 +13836,7 @@ function W1(e, t) {
13836
13836
  e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, B.HTML);
13837
13837
  }
13838
13838
  function $1(e, t) {
13839
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && Rr.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, B.HTML);
13839
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && wr.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, B.HTML);
13840
13840
  }
13841
13841
  function j1(e, t) {
13842
13842
  e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, B.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
@@ -13867,13 +13867,13 @@ function X1(e, t) {
13867
13867
  }
13868
13868
  function J1(e, t) {
13869
13869
  const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);
13870
- n && (ii(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, B.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
13870
+ n && (ui(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, B.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
13871
13871
  }
13872
13872
  function Z1(e, t) {
13873
13873
  e._reconstructActiveFormattingElements(), e._insertElement(t, B.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
13874
13874
  }
13875
13875
  function ep(e, t) {
13876
- e._reconstructActiveFormattingElements(), e.openElements.hasInScope(o.NOBR) && (ii(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, B.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
13876
+ e._reconstructActiveFormattingElements(), e.openElements.hasInScope(o.NOBR) && (ui(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, B.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
13877
13877
  }
13878
13878
  function tp(e, t) {
13879
13879
  e._reconstructActiveFormattingElements(), e._insertElement(t, B.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
@@ -13909,7 +13909,7 @@ function op(e, t) {
13909
13909
  function lp(e, t) {
13910
13910
  e.framesetOk = !1, e._switchToTextParsing(t, fe.RAWTEXT);
13911
13911
  }
13912
- function Cu(e, t) {
13912
+ function Nu(e, t) {
13913
13913
  e._switchToTextParsing(t, fe.RAWTEXT);
13914
13914
  }
13915
13915
  function cp(e, t) {
@@ -13925,12 +13925,12 @@ function hp(e, t) {
13925
13925
  e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(o.RTC), e._insertElement(t, B.HTML);
13926
13926
  }
13927
13927
  function mp(e, t) {
13928
- e._reconstructActiveFormattingElements(), ls(t), ri(t), t.selfClosing ? e._appendElement(t, B.MATHML) : e._insertElement(t, B.MATHML), t.ackSelfClosing = !0;
13928
+ e._reconstructActiveFormattingElements(), ls(t), ii(t), t.selfClosing ? e._appendElement(t, B.MATHML) : e._insertElement(t, B.MATHML), t.ackSelfClosing = !0;
13929
13929
  }
13930
13930
  function pp(e, t) {
13931
- e._reconstructActiveFormattingElements(), cs(t), ri(t), t.selfClosing ? e._appendElement(t, B.SVG) : e._insertElement(t, B.SVG), t.ackSelfClosing = !0;
13931
+ e._reconstructActiveFormattingElements(), cs(t), ii(t), t.selfClosing ? e._appendElement(t, B.SVG) : e._insertElement(t, B.SVG), t.ackSelfClosing = !0;
13932
13932
  }
13933
- function Nu(e, t) {
13933
+ function Iu(e, t) {
13934
13934
  e._reconstructActiveFormattingElements(), e._insertElement(t, B.HTML);
13935
13935
  }
13936
13936
  function Ce(e, t) {
@@ -14108,7 +14108,7 @@ function Ce(e, t) {
14108
14108
  }
14109
14109
  case o.NOEMBED:
14110
14110
  case o.NOFRAMES: {
14111
- Cu(e, t);
14111
+ Nu(e, t);
14112
14112
  break;
14113
14113
  }
14114
14114
  case o.FRAMESET: {
@@ -14120,7 +14120,7 @@ function Ce(e, t) {
14120
14120
  break;
14121
14121
  }
14122
14122
  case o.NOSCRIPT: {
14123
- e.options.scriptingEnabled ? Cu(e, t) : Nu(e, t);
14123
+ e.options.scriptingEnabled ? Nu(e, t) : Iu(e, t);
14124
14124
  break;
14125
14125
  }
14126
14126
  case o.PLAINTEXT: {
@@ -14140,7 +14140,7 @@ function Ce(e, t) {
14140
14140
  case o.COLGROUP:
14141
14141
  break;
14142
14142
  default:
14143
- Nu(e, t);
14143
+ Iu(e, t);
14144
14144
  }
14145
14145
  }
14146
14146
  function Ep(e, t) {
@@ -14208,7 +14208,7 @@ function $n(e, t) {
14208
14208
  case o.SMALL:
14209
14209
  case o.STRIKE:
14210
14210
  case o.STRONG: {
14211
- ii(e, t);
14211
+ ui(e, t);
14212
14212
  break;
14213
14213
  }
14214
14214
  case o.P: {
@@ -14294,7 +14294,7 @@ function $n(e, t) {
14294
14294
  }
14295
14295
  }
14296
14296
  function gs(e, t) {
14297
- e.tmplInsertionModeStack.length > 0 ? Ns(e, t) : ui(e, t);
14297
+ e.tmplInsertionModeStack.length > 0 ? Ns(e, t) : ai(e, t);
14298
14298
  }
14299
14299
  function yp(e, t) {
14300
14300
  var n;
@@ -14325,7 +14325,7 @@ function Lp(e, t) {
14325
14325
  e.openElements.clearBackToTableContext(), e._insertElement(t, B.HTML), e.insertionMode = b.IN_COLUMN_GROUP;
14326
14326
  }
14327
14327
  function Op(e, t) {
14328
- e.openElements.clearBackToTableContext(), e._insertFakeElement(S.COLGROUP, o.COLGROUP), e.insertionMode = b.IN_COLUMN_GROUP, ai(e, t);
14328
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(S.COLGROUP, o.COLGROUP), e.insertionMode = b.IN_COLUMN_GROUP, si(e, t);
14329
14329
  }
14330
14330
  function Dp(e, t) {
14331
14331
  e.openElements.clearBackToTableContext(), e._insertElement(t, B.HTML), e.insertionMode = b.IN_TABLE_BODY;
@@ -14464,7 +14464,7 @@ function Bp(e, t) {
14464
14464
  $n(e, t);
14465
14465
  }
14466
14466
  }
14467
- function ai(e, t) {
14467
+ function si(e, t) {
14468
14468
  switch (t.tagID) {
14469
14469
  case o.HTML: {
14470
14470
  Ce(e, t);
@@ -14525,7 +14525,7 @@ function jn(e, t) {
14525
14525
  yt(e, t);
14526
14526
  }
14527
14527
  }
14528
- function Pr(e, t) {
14528
+ function Mr(e, t) {
14529
14529
  const n = t.tagID;
14530
14530
  switch (t.tagID) {
14531
14531
  case o.TBODY:
@@ -14579,13 +14579,13 @@ function As(e, t) {
14579
14579
  break;
14580
14580
  }
14581
14581
  case o.TABLE: {
14582
- e.openElements.hasInTableScope(o.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Pr(e, t));
14582
+ e.openElements.hasInTableScope(o.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Mr(e, t));
14583
14583
  break;
14584
14584
  }
14585
14585
  case o.TBODY:
14586
14586
  case o.TFOOT:
14587
14587
  case o.THEAD: {
14588
- (e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(o.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Pr(e, t));
14588
+ (e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(o.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Mr(e, t));
14589
14589
  break;
14590
14590
  }
14591
14591
  case o.BODY:
@@ -14716,7 +14716,7 @@ function Vp(e, t) {
14716
14716
  break;
14717
14717
  }
14718
14718
  case o.COL: {
14719
- e.tmplInsertionModeStack[0] = b.IN_COLUMN_GROUP, e.insertionMode = b.IN_COLUMN_GROUP, ai(e, t);
14719
+ e.tmplInsertionModeStack[0] = b.IN_COLUMN_GROUP, e.insertionMode = b.IN_COLUMN_GROUP, si(e, t);
14720
14720
  break;
14721
14721
  }
14722
14722
  case o.TR: {
@@ -14736,7 +14736,7 @@ function qp(e, t) {
14736
14736
  t.tagID === o.TEMPLATE && pt(e, t);
14737
14737
  }
14738
14738
  function Ns(e, t) {
14739
- e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(o.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : ui(e, t);
14739
+ e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(o.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : ai(e, t);
14740
14740
  }
14741
14741
  function Wp(e, t) {
14742
14742
  t.tagID === o.HTML ? Ce(e, t) : Rn(e, t);
@@ -14826,7 +14826,7 @@ function eE(e, t) {
14826
14826
  ys(e), e._startTagOutsideForeignContent(t);
14827
14827
  else {
14828
14828
  const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
14829
- r === B.MATHML ? ls(t) : r === B.SVG && (E1(t), cs(t)), ri(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
14829
+ r === B.MATHML ? ls(t) : r === B.SVG && (E1(t), cs(t)), ii(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
14830
14830
  }
14831
14831
  }
14832
14832
  function tE(e, t) {
@@ -14854,13 +14854,13 @@ const nE = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title
14854
14854
  "mdxJsxTextElement",
14855
14855
  "mdxTextExpression",
14856
14856
  "mdxjsEsm"
14857
- ]), Iu = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
14857
+ ]), yu = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
14858
14858
  function xs(e, t) {
14859
14859
  const n = hE(e), r = Oa("type", {
14860
14860
  handlers: { root: iE, element: uE, text: aE, comment: Ls, doctype: sE, raw: lE },
14861
14861
  unknown: cE
14862
14862
  }), i = {
14863
- parser: n ? new ku(Iu) : ku.getFragmentParser(void 0, Iu),
14863
+ parser: n ? new Cu(yu) : Cu.getFragmentParser(void 0, yu),
14864
14864
  handle(s) {
14865
14865
  r(s, i);
14866
14866
  },
@@ -15350,13 +15350,13 @@ function kE(e, t) {
15350
15350
  for (c in s)
15351
15351
  if (Je.call(s, c)) {
15352
15352
  const f = s[c];
15353
- let d = yu(
15353
+ let d = xu(
15354
15354
  e,
15355
- xu(u, c),
15355
+ Su(u, c),
15356
15356
  c,
15357
15357
  f
15358
15358
  );
15359
- d == null && (d = yu(e, xu(a, c), c, f)), d != null && (l[c] = d);
15359
+ d == null && (d = xu(e, Su(a, c), c, f)), d != null && (l[c] = d);
15360
15360
  }
15361
15361
  if (i && Je.call(i, n)) {
15362
15362
  const f = i[n];
@@ -15365,7 +15365,7 @@ function kE(e, t) {
15365
15365
  }
15366
15366
  return l;
15367
15367
  }
15368
- function yu(e, t, n, r) {
15368
+ function xu(e, t, n, r) {
15369
15369
  return t ? Array.isArray(r) ? CE(e, t, n, r) : ws(e, t, n, r) : void 0;
15370
15370
  }
15371
15371
  function CE(e, t, n, r) {
@@ -15421,7 +15421,7 @@ function ln(e, t) {
15421
15421
  );
15422
15422
  t.data && (e.data = ht(t.data)), n && (e.position = n);
15423
15423
  }
15424
- function xu(e, t) {
15424
+ function Su(e, t) {
15425
15425
  let n, r = -1;
15426
15426
  if (e)
15427
15427
  for (; ++r < e.length; ) {
@@ -15567,10 +15567,10 @@ function In({ children: e, onClick: t, disabled: n, title: r, type: i = "button"
15567
15567
  }
15568
15568
  );
15569
15569
  }
15570
- var _t = {}, Su;
15570
+ var _t = {}, Lu;
15571
15571
  function RE() {
15572
- if (Su) return _t;
15573
- Su = 1;
15572
+ if (Lu) return _t;
15573
+ Lu = 1;
15574
15574
  var e = wo;
15575
15575
  if (process.env.NODE_ENV === "production")
15576
15576
  _t.createRoot = e.createRoot, _t.hydrateRoot = e.hydrateRoot;
@@ -15595,7 +15595,7 @@ function RE() {
15595
15595
  return _t;
15596
15596
  }
15597
15597
  RE();
15598
- const si = "data-overlay-layer";
15598
+ const oi = "data-overlay-layer";
15599
15599
  function wE(e) {
15600
15600
  let t = e;
15601
15601
  for (; t && t !== document.body; ) {
@@ -15610,19 +15610,19 @@ function wE(e) {
15610
15610
  }
15611
15611
  function Ps(e) {
15612
15612
  if (!e || !e.isConnected) return !0;
15613
- const t = Array.from(document.querySelectorAll(`[${si}]`));
15613
+ const t = Array.from(document.querySelectorAll(`[${oi}]`));
15614
15614
  if (t.length <= 1) return !0;
15615
15615
  const n = t.map(wE), r = Math.max(...n);
15616
15616
  return t.indexOf(e) === n.lastIndexOf(r);
15617
15617
  }
15618
15618
  function PE(e) {
15619
- return Ps((e == null ? void 0 : e.closest(`[${si}]`)) ?? null);
15619
+ return Ps((e == null ? void 0 : e.closest(`[${oi}]`)) ?? null);
15620
15620
  }
15621
15621
  const ME = "overlay-root", FE = "ld-scrim-plane";
15622
- function oi() {
15622
+ function li() {
15623
15623
  return document.getElementById(FE) ?? document.body;
15624
15624
  }
15625
- const Lu = 'a[href],button:not([disabled]),input:not([disabled]),textarea:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])';
15625
+ const Ou = 'a[href],button:not([disabled]),input:not([disabled]),textarea:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])';
15626
15626
  function cn({ children: e, onClose: t, closeOnOutsideClick: n = !0, triggerRef: r, trapFocus: i, zIndex: u, rootId: a, open: s = !0 }) {
15627
15627
  const l = se(null);
15628
15628
  ae(() => {
@@ -15643,11 +15643,11 @@ function cn({ children: e, onClose: t, closeOnOutsideClick: n = !0, triggerRef:
15643
15643
  if (!s || !i) return;
15644
15644
  const d = l.current;
15645
15645
  if (!d) return;
15646
- const m = d.querySelector(Lu);
15646
+ const m = d.querySelector(Ou);
15647
15647
  m ? m.focus() : (d.tabIndex = -1, d.focus());
15648
15648
  const h = (p) => {
15649
15649
  if (p.key !== "Tab") return;
15650
- const k = Array.from(d.querySelectorAll(Lu));
15650
+ const k = Array.from(d.querySelectorAll(Ou));
15651
15651
  if (k.length === 0) {
15652
15652
  p.preventDefault();
15653
15653
  return;
@@ -15657,7 +15657,7 @@ function cn({ children: e, onClose: t, closeOnOutsideClick: n = !0, triggerRef:
15657
15657
  };
15658
15658
  return window.addEventListener("keydown", h), () => window.removeEventListener("keydown", h);
15659
15659
  }, [s, i]);
15660
- const c = s ? { [si]: "" } : {}, f = {
15660
+ const c = s ? { [oi]: "" } : {}, f = {
15661
15661
  position: "relative",
15662
15662
  ...u ? { zIndex: u } : {}
15663
15663
  };
@@ -15675,7 +15675,7 @@ function cn({ children: e, onClose: t, closeOnOutsideClick: n = !0, triggerRef:
15675
15675
  (a ? document.getElementById(a) : document.getElementById(ME)) ?? document.body
15676
15676
  );
15677
15677
  }
15678
- const Ou = 232, Du = 224, Ru = 263, BE = 8;
15678
+ const Du = 232, Ru = 224, wu = 263, BE = 8;
15679
15679
  function mr(e, t, n, r, i = BE) {
15680
15680
  const u = Math.max(i, r.width - t - i), a = Math.max(i, r.height - n - i), s = Math.min(Math.max(
15681
15681
  e.x + t + i <= r.width ? e.x : e.x - t - i,
@@ -15740,11 +15740,11 @@ function Ab({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15740
15740
  var W;
15741
15741
  const L = (W = f.current) == null ? void 0 : W.getBoundingClientRect();
15742
15742
  if (!L) return;
15743
- const V = Math.max(0, Math.min(1, (T.clientX - L.left) / L.width)), J = Math.max(0, Math.min(1, (T.clientY - L.top) / L.height)), R = { ...p.current, s: V, v: 1 - J };
15744
- p.current = R, s(R), c(pr(R.h, R.s, R.v));
15743
+ const V = Math.max(0, Math.min(1, (T.clientX - L.left) / L.width)), J = Math.max(0, Math.min(1, (T.clientY - L.top) / L.height)), w = { ...p.current, s: V, v: 1 - J };
15744
+ p.current = w, s(w), c(pr(w.h, w.s, w.v));
15745
15745
  }, []), x = ie((T) => {
15746
- var R;
15747
- const L = (R = d.current) == null ? void 0 : R.getBoundingClientRect();
15746
+ var w;
15747
+ const L = (w = d.current) == null ? void 0 : w.getBoundingClientRect();
15748
15748
  if (!L) return;
15749
15749
  const V = Math.max(0, Math.min(1, (T.clientX - L.left) / L.width)), F = { ...p.current, h: V * 360 };
15750
15750
  p.current = F, s(F), c(pr(F.h, F.s, F.v));
@@ -15764,17 +15764,17 @@ function Ab({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15764
15764
  I(null);
15765
15765
  return;
15766
15766
  }
15767
- const T = m.current, L = { width: window.innerWidth, height: window.innerHeight }, V = T ? mr(u, T.offsetWidth, T.offsetHeight, L) : mr(u, Ou, i != null && i.length ? Ru : Du, L);
15767
+ const T = m.current, L = { width: window.innerWidth, height: window.innerHeight }, V = T ? mr(u, T.offsetWidth, T.offsetHeight, L) : mr(u, Du, i != null && i.length ? wu : Ru, L);
15768
15768
  I((J) => J && J.left === V.left && J.top === V.top ? J : V);
15769
15769
  }, [e, u, i]), !e) return null;
15770
- const P = pr(a.h, 1, 1), w = `${Math.round(a.s * 100)}%`, y = `${Math.round((1 - a.v) * 100)}%`, v = `${Math.round(a.h / 360 * 100)}%`, U = u && !k ? mr(
15770
+ const P = pr(a.h, 1, 1), R = `${Math.round(a.s * 100)}%`, y = `${Math.round((1 - a.v) * 100)}%`, H = `${Math.round(a.h / 360 * 100)}%`, v = u && !k ? mr(
15771
15771
  u,
15772
- Ou,
15773
- i != null && i.length ? Ru : Du,
15772
+ Du,
15773
+ i != null && i.length ? wu : Ru,
15774
15774
  { width: window.innerWidth, height: window.innerHeight }
15775
- ) : null, z = k ?? U;
15775
+ ) : null, z = k ?? v;
15776
15776
  return /* @__PURE__ */ $(cn, { onClose: r, children: [
15777
- Fn(/* @__PURE__ */ N("div", { className: "ldk-colorpicker-overlay", onClick: () => r() }), oi()),
15777
+ Fn(/* @__PURE__ */ N("div", { className: "ldk-colorpicker-overlay", onClick: () => r() }), li()),
15778
15778
  /* @__PURE__ */ $(
15779
15779
  "div",
15780
15780
  {
@@ -15795,7 +15795,7 @@ function Ab({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15795
15795
  children: [
15796
15796
  /* @__PURE__ */ N("div", { className: "ldk-colorpicker-sv-white" }),
15797
15797
  /* @__PURE__ */ N("div", { className: "ldk-colorpicker-sv-black" }),
15798
- /* @__PURE__ */ N("div", { className: "ldk-colorpicker-sv-cursor", style: { left: w, top: y } })
15798
+ /* @__PURE__ */ N("div", { className: "ldk-colorpicker-sv-cursor", style: { left: R, top: y } })
15799
15799
  ]
15800
15800
  }
15801
15801
  ),
@@ -15807,7 +15807,7 @@ function Ab({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15807
15807
  onMouseDown: (T) => {
15808
15808
  h.current = "hue", x(T);
15809
15809
  },
15810
- children: /* @__PURE__ */ N("div", { className: "ldk-colorpicker-hue-cursor", style: { left: v } })
15810
+ children: /* @__PURE__ */ N("div", { className: "ldk-colorpicker-hue-cursor", style: { left: H } })
15811
15811
  }
15812
15812
  ),
15813
15813
  /* @__PURE__ */ $("div", { className: "ldk-colorpicker-footer", children: [
@@ -15899,11 +15899,11 @@ function kb({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15899
15899
  ae(() => {
15900
15900
  P.current || h(e);
15901
15901
  }, [e]);
15902
- const w = m !== e, y = Me(() => {
15903
- if (!w) return t;
15902
+ const R = m !== e, y = Me(() => {
15903
+ if (!R) return t;
15904
15904
  const T = m.trim().toLowerCase();
15905
15905
  return T ? t.filter((L) => L.toLowerCase().includes(T)) : t;
15906
- }, [t, m, w]);
15906
+ }, [t, m, R]);
15907
15907
  ae(() => {
15908
15908
  p >= y.length && k(Math.max(0, y.length - 1));
15909
15909
  }, [y.length, p]), ae(() => {
@@ -15916,13 +15916,13 @@ function kb({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15916
15916
  const T = x.current.children[p];
15917
15917
  T == null || T.scrollIntoView({ block: "nearest" });
15918
15918
  }, [p, f]);
15919
- const v = ie(
15919
+ const H = ie(
15920
15920
  (T) => {
15921
15921
  const L = T.trim();
15922
15922
  d(!1), L && (h(L), L !== e && n(L));
15923
15923
  },
15924
15924
  [e, n]
15925
- ), U = ie(
15925
+ ), v = ie(
15926
15926
  (T) => {
15927
15927
  var V;
15928
15928
  const L = _.current;
@@ -15945,14 +15945,14 @@ function kb({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15945
15945
  T.preventDefault(), d(!0), k((L) => Math.max(L - 1, 0));
15946
15946
  break;
15947
15947
  case "Enter":
15948
- T.preventDefault(), f && y[p] ? v(y[p]) : v(m);
15948
+ T.preventDefault(), f && y[p] ? H(y[p]) : H(m);
15949
15949
  break;
15950
15950
  case "Escape":
15951
15951
  T.preventDefault(), h(e), d(!1);
15952
15952
  break;
15953
15953
  }
15954
15954
  },
15955
- [f, y, p, v, m, e]
15955
+ [f, y, p, H, m, e]
15956
15956
  );
15957
15957
  return /* @__PURE__ */ $(
15958
15958
  "div",
@@ -15960,7 +15960,7 @@ function kb({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15960
15960
  className: `ldk-combobox ${f ? "ldk-selectbox-open" : ""} ${r ? "ldk-selectbox-disabled" : ""} ${a ?? ""}`,
15961
15961
  ref: I,
15962
15962
  children: [
15963
- /* @__PURE__ */ $("div", { className: "ldk-combobox-field", onMouseDown: U, children: [
15963
+ /* @__PURE__ */ $("div", { className: "ldk-combobox-field", onMouseDown: v, children: [
15964
15964
  /* @__PURE__ */ N(
15965
15965
  "input",
15966
15966
  {
@@ -15977,7 +15977,7 @@ function kb({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15977
15977
  P.current = !0, d(!0);
15978
15978
  },
15979
15979
  onBlur: () => {
15980
- P.current = !1, v(m);
15980
+ P.current = !1, H(m);
15981
15981
  },
15982
15982
  onChange: (T) => {
15983
15983
  h(T.target.value), d(!0), k(-1);
@@ -16005,7 +16005,7 @@ function kb({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16005
16005
  {
16006
16006
  className: `ldk-selectbox-item ${L === p ? "ldk-selectbox-item-focus" : ""} ${T === e ? "ldk-selectbox-item-selected" : ""}`,
16007
16007
  onMouseDown: (V) => {
16008
- V.preventDefault(), v(T);
16008
+ V.preventDefault(), H(T);
16009
16009
  },
16010
16010
  onMouseEnter: () => k(L),
16011
16011
  children: T
@@ -16018,7 +16018,7 @@ function kb({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16018
16018
  }
16019
16019
  );
16020
16020
  }
16021
- function wu({ label: e, className: t }) {
16021
+ function Pu({ label: e, className: t }) {
16022
16022
  if (!e.trim()) return null;
16023
16023
  const n = e.split(" ").filter(Boolean);
16024
16024
  return /* @__PURE__ */ N("span", { className: t ? `ldk-keybinding-hint ${t}` : "ldk-keybinding-hint", children: n.map((r, i) => (
@@ -16051,14 +16051,14 @@ function Fs(e, t) {
16051
16051
  };
16052
16052
  });
16053
16053
  }
16054
- function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i, items: u, variant: a }) {
16054
+ function ci({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i, items: u, variant: a }) {
16055
16055
  const s = se(null), l = se(/* @__PURE__ */ new Map()), c = se(null), [f, d] = re([]), m = Me(() => JSON.stringify(n ?? {}), [n]);
16056
16056
  ae(() => {
16057
- var R, W;
16057
+ var w, W;
16058
16058
  let F = !1;
16059
16059
  return u ? (d(u), () => {
16060
16060
  F = !0;
16061
- }) : ((W = (R = Er().menu) == null ? void 0 : R.getItems) == null || W.call(R, e, n).then((j) => {
16061
+ }) : ((W = (w = Er().menu) == null ? void 0 : w.getItems) == null || W.call(w, e, n).then((j) => {
16062
16062
  !F && j && d(j);
16063
16063
  }).catch(() => {
16064
16064
  }), () => {
@@ -16066,12 +16066,12 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16066
16066
  });
16067
16067
  }, [e, m, u]);
16068
16068
  const h = Me(() => {
16069
- const F = /* @__PURE__ */ new Map(), R = [];
16069
+ const F = /* @__PURE__ */ new Map(), w = [];
16070
16070
  for (const j of f) {
16071
16071
  const Z = j.children;
16072
16072
  if (!j.command && !Z) continue;
16073
16073
  const Q = j.group ?? "__default";
16074
- F.has(Q) || (F.set(Q, []), R.push(Q));
16074
+ F.has(Q) || (F.set(Q, []), w.push(Q));
16075
16075
  let A;
16076
16076
  if (Z && Z.length > 0)
16077
16077
  A = Fs(Z, Q);
@@ -16093,84 +16093,84 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16093
16093
  });
16094
16094
  }
16095
16095
  const W = [];
16096
- for (let j = 0; j < R.length; j++)
16097
- j > 0 && W.push({ type: "divider", group: R[j] }), W.push(...F.get(R[j]));
16096
+ for (let j = 0; j < w.length; j++)
16097
+ j > 0 && W.push({ type: "divider", group: w[j] }), W.push(...F.get(w[j]));
16098
16098
  return W;
16099
16099
  }, [f, n, i]), [p, k] = re([]), I = ie(() => {
16100
16100
  c.current && (clearTimeout(c.current), c.current = null);
16101
16101
  }, []), _ = ie((F) => {
16102
- c.current && (clearTimeout(c.current), c.current = null), c.current = setTimeout(() => k((R) => R.slice(0, F)), 150);
16103
- }, []), O = ie((F, R, W) => {
16102
+ c.current && (clearTimeout(c.current), c.current = null), c.current = setTimeout(() => k((w) => w.slice(0, F)), 150);
16103
+ }, []), O = ie((F, w, W) => {
16104
16104
  I();
16105
16105
  const j = F.getBoundingClientRect(), Z = 160, Q = j.right + Z > window.innerWidth ? j.left - Z - 4 : j.right + 4;
16106
- k((A) => [...A.slice(0, W), { x: Q, y: j.top, items: R }]);
16107
- }, [I]), [x, P] = re({ left: t.x, top: t.y }), [w, y] = re(!1), v = w;
16106
+ k((A) => [...A.slice(0, W), { x: Q, y: j.top, items: w }]);
16107
+ }, [I]), [x, P] = re({ left: t.x, top: t.y }), [R, y] = re(!1), H = R;
16108
16108
  ae(() => {
16109
- if (!v) return;
16109
+ if (!H) return;
16110
16110
  const F = (Z) => {
16111
16111
  Z.key === "Escape" && PE(s.current) && (p.length > 0 ? k((Q) => Q.slice(0, Q.length - 1)) : r());
16112
- }, R = () => r(), W = () => r(), j = (Z) => {
16112
+ }, w = () => r(), W = () => r(), j = (Z) => {
16113
16113
  var me;
16114
16114
  const Q = Z.target;
16115
16115
  (((me = s.current) == null ? void 0 : me.contains(Q)) ?? !1) || [...l.current.values()].some((Te) => Te.contains(Q)) || r();
16116
16116
  };
16117
- return window.addEventListener("keydown", F), window.addEventListener("blur", R), window.addEventListener("wheel", W, !0), a !== "embedded" && window.addEventListener("mousedown", j, !0), () => {
16118
- window.removeEventListener("keydown", F), window.removeEventListener("blur", R), window.removeEventListener("wheel", W, !0), a !== "embedded" && window.removeEventListener("mousedown", j, !0);
16117
+ return window.addEventListener("keydown", F), window.addEventListener("blur", w), window.addEventListener("wheel", W, !0), a !== "embedded" && window.addEventListener("mousedown", j, !0), () => {
16118
+ window.removeEventListener("keydown", F), window.removeEventListener("blur", w), window.removeEventListener("wheel", W, !0), a !== "embedded" && window.removeEventListener("mousedown", j, !0);
16119
16119
  };
16120
- }, [r, p, v, a]);
16121
- const [U, z] = re(-1), T = se(/* @__PURE__ */ new Map()), L = Me(() => h.filter((F) => !("type" in F)), [h]);
16120
+ }, [r, p, H, a]);
16121
+ const [v, z] = re(-1), T = se(/* @__PURE__ */ new Map()), L = Me(() => h.filter((F) => !("type" in F)), [h]);
16122
16122
  ae(() => {
16123
- if (!v) return;
16124
- const F = (R) => {
16123
+ if (!H) return;
16124
+ const F = (w) => {
16125
16125
  var W, j, Z;
16126
- if (R.key === "ArrowDown")
16127
- R.preventDefault(), z((Q) => Math.min(Q + 1, L.length - 1));
16128
- else if (R.key === "ArrowUp")
16129
- R.preventDefault(), z((Q) => Math.max(Q - 1, 0));
16130
- else if (R.key === "ArrowRight" && U >= 0) {
16131
- const Q = L[U];
16126
+ if (w.key === "ArrowDown")
16127
+ w.preventDefault(), z((Q) => Math.min(Q + 1, L.length - 1));
16128
+ else if (w.key === "ArrowUp")
16129
+ w.preventDefault(), z((Q) => Math.max(Q - 1, 0));
16130
+ else if (w.key === "ArrowRight" && v >= 0) {
16131
+ const Q = L[v];
16132
16132
  if ((W = Q == null ? void 0 : Q.children) != null && W.length) {
16133
- R.preventDefault();
16134
- const A = T.current.get(U);
16133
+ w.preventDefault();
16134
+ const A = T.current.get(v);
16135
16135
  A && O(A, Q.children, 0);
16136
16136
  }
16137
- } else if (R.key === "ArrowLeft")
16138
- p.length > 0 && (R.preventDefault(), k((Q) => Q.slice(0, Q.length - 1)));
16139
- else if (R.key === "Enter" && U >= 0) {
16140
- R.preventDefault();
16141
- const Q = L[U];
16137
+ } else if (w.key === "ArrowLeft")
16138
+ p.length > 0 && (w.preventDefault(), k((Q) => Q.slice(0, Q.length - 1)));
16139
+ else if (w.key === "Enter" && v >= 0) {
16140
+ w.preventDefault();
16141
+ const Q = L[v];
16142
16142
  Q && (Q.onSelect ? Q.onSelect() : (Z = (j = Er().commands) == null ? void 0 : j.executeCommand) == null || Z.call(j, Q.id, void 0, ...Q.commandArgs ?? [], n), r());
16143
16143
  }
16144
16144
  };
16145
16145
  return window.addEventListener("keydown", F), () => window.removeEventListener("keydown", F);
16146
- }, [L, U, n, r, v, p, O]), ae(() => {
16146
+ }, [L, v, n, r, H, p, O]), ae(() => {
16147
16147
  var F;
16148
- U >= 0 && ((F = T.current.get(U)) == null || F.scrollIntoView({ block: "nearest" }));
16149
- }, [U]);
16148
+ v >= 0 && ((F = T.current.get(v)) == null || F.scrollIntoView({ block: "nearest" }));
16149
+ }, [v]);
16150
16150
  const V = ie(async (F) => {
16151
- var R, W;
16151
+ var w, W;
16152
16152
  if (r(), F.onSelect) {
16153
16153
  F.onSelect();
16154
16154
  return;
16155
16155
  }
16156
- await ((W = (R = Er().commands) == null ? void 0 : R.executeCommand) == null ? void 0 : W.call(R, F.id, void 0, ...F.commandArgs ?? [], n));
16156
+ await ((W = (w = Er().commands) == null ? void 0 : w.executeCommand) == null ? void 0 : W.call(w, F.id, void 0, ...F.commandArgs ?? [], n));
16157
16157
  }, [n, r]);
16158
16158
  Mn(() => {
16159
16159
  P({ left: t.x, top: Math.max(30, t.y) }), y(!1);
16160
16160
  }, [t.x, t.y, h.length]), ae(() => {
16161
16161
  const F = s.current;
16162
16162
  if (!F) return;
16163
- const R = F.offsetWidth, W = F.offsetHeight;
16163
+ const w = F.offsetWidth, W = F.offsetHeight;
16164
16164
  let j = t.x, Z = Math.max(30, t.y);
16165
- j + R > window.innerWidth && (j = Math.max(0, window.innerWidth - R - 4)), Z + W > window.innerHeight && (Z = Math.max(30, window.innerHeight - W - 4)), P({ left: j, top: Z });
16165
+ j + w > window.innerWidth && (j = Math.max(0, window.innerWidth - w - 4)), Z + W > window.innerHeight && (Z = Math.max(30, window.innerHeight - W - 4)), P({ left: j, top: Z });
16166
16166
  const Q = requestAnimationFrame(() => {
16167
16167
  y(!0), F.classList.add("show");
16168
16168
  });
16169
16169
  return () => cancelAnimationFrame(Q);
16170
16170
  }, [t.x, t.y, h.length]), ae(() => {
16171
16171
  var F;
16172
- w && ((F = s.current) == null || F.focus());
16173
- }, [w]);
16172
+ R && ((F = s.current) == null || F.focus());
16173
+ }, [R]);
16174
16174
  let J = 0;
16175
16175
  return /* @__PURE__ */ $(cn, { rootId: "context-menu-root", zIndex: String(_n), children: [
16176
16176
  a !== "embedded" && a !== "non-modal" && Fn(
@@ -16184,7 +16184,7 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16184
16184
  }
16185
16185
  }
16186
16186
  ),
16187
- oi()
16187
+ li()
16188
16188
  ),
16189
16189
  /* @__PURE__ */ N(
16190
16190
  "div",
@@ -16196,11 +16196,11 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16196
16196
  left: x.left,
16197
16197
  top: x.top,
16198
16198
  zIndex: _n,
16199
- visibility: w ? void 0 : "hidden"
16199
+ visibility: R ? void 0 : "hidden"
16200
16200
  },
16201
- children: h.map((F, R) => {
16202
- if ("type" in F) return /* @__PURE__ */ N("div", { className: "ldk-ctx-divider" }, `div-${R}`);
16203
- const W = J++, j = !!(F.children && F.children.length > 0), Z = W === U, Q = F.group === "delete";
16201
+ children: h.map((F, w) => {
16202
+ if ("type" in F) return /* @__PURE__ */ N("div", { className: "ldk-ctx-divider" }, `div-${w}`);
16203
+ const W = J++, j = !!(F.children && F.children.length > 0), Z = W === v, Q = F.group === "delete";
16204
16204
  return (
16205
16205
  // E5.8#37.7.1:复合 key——共享命令 id 的动态项(面板视图清单全用同一 toggle 命令)会撞 key;
16206
16206
  // 并入数组索引消歧(菜单项在菜单生命周期内静态,索引稳定)。
@@ -16224,25 +16224,25 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16224
16224
  /* @__PURE__ */ N("span", { className: "ldk-ctx-item-check", "aria-hidden": "true", children: F.checked ? "✓" : "" }),
16225
16225
  /* @__PURE__ */ N("span", { className: "ldk-ctx-item-label", children: F.label }),
16226
16226
  j && /* @__PURE__ */ N("span", { className: "ctx-item-chevron", children: "›" }),
16227
- F.shortcut && /* @__PURE__ */ N(wu, { label: F.shortcut, className: "ldk-ctx-item-shortcut" })
16227
+ F.shortcut && /* @__PURE__ */ N(Pu, { label: F.shortcut, className: "ldk-ctx-item-shortcut" })
16228
16228
  ]
16229
16229
  },
16230
- `${F.id}::${R}`
16230
+ `${F.id}::${w}`
16231
16231
  )
16232
16232
  );
16233
16233
  })
16234
16234
  }
16235
16235
  ),
16236
- p.map((F, R) => /* @__PURE__ */ N(
16236
+ p.map((F, w) => /* @__PURE__ */ N(
16237
16237
  "div",
16238
16238
  {
16239
16239
  ref: (W) => {
16240
- W ? l.current.set(R, W) : l.current.delete(R);
16240
+ W ? l.current.set(w, W) : l.current.delete(w);
16241
16241
  },
16242
16242
  className: "ldk-ctx-menu show",
16243
16243
  style: { left: F.x, top: F.y, zIndex: _n },
16244
16244
  onMouseEnter: I,
16245
- onMouseLeave: () => _(R + 1),
16245
+ onMouseLeave: () => _(w + 1),
16246
16246
  children: F.items.map((W, j) => {
16247
16247
  const Z = !!(W.children && W.children.length > 0);
16248
16248
  return /* @__PURE__ */ $(
@@ -16253,23 +16253,23 @@ function li({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16253
16253
  Q.stopPropagation(), Z || V(W);
16254
16254
  },
16255
16255
  onMouseEnter: (Q) => {
16256
- Z ? O(Q.currentTarget, W.children, R + 1) : k((A) => A.slice(0, R + 1));
16256
+ Z ? O(Q.currentTarget, W.children, w + 1) : k((A) => A.slice(0, w + 1));
16257
16257
  },
16258
16258
  onMouseLeave: () => {
16259
- Z && _(R + 2);
16259
+ Z && _(w + 2);
16260
16260
  },
16261
16261
  children: [
16262
16262
  /* @__PURE__ */ N("span", { className: "ldk-ctx-item-check", "aria-hidden": "true", children: W.checked ? "✓" : "" }),
16263
16263
  /* @__PURE__ */ N("span", { className: "ldk-ctx-item-label", children: W.label }),
16264
16264
  Z && /* @__PURE__ */ N("span", { className: "ctx-item-chevron", children: "›" }),
16265
- W.shortcut && /* @__PURE__ */ N(wu, { label: W.shortcut, className: "ldk-ctx-item-shortcut" })
16265
+ W.shortcut && /* @__PURE__ */ N(Pu, { label: W.shortcut, className: "ldk-ctx-item-shortcut" })
16266
16266
  ]
16267
16267
  },
16268
16268
  `${W.id}::${j}`
16269
16269
  );
16270
16270
  })
16271
16271
  },
16272
- R
16272
+ w
16273
16273
  ))
16274
16274
  ] });
16275
16275
  }
@@ -16284,7 +16284,7 @@ function dn({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16284
16284
  if (!d) return O;
16285
16285
  const z = d.toLowerCase();
16286
16286
  return O.filter((T) => T.label.toLowerCase().includes(z));
16287
- }, [O, d]), P = Me(() => O.find((z) => z.value === e), [O, e]), w = Me(() => P ? P.label : e !== "" ? e : i ?? e, [P, e, i]);
16287
+ }, [O, d]), P = Me(() => O.find((z) => z.value === e), [O, e]), R = Me(() => P ? P.label : e !== "" ? e : i ?? e, [P, e, i]);
16288
16288
  ae(() => {
16289
16289
  h >= x.length && p(Math.max(0, x.length - 1));
16290
16290
  }, [x.length, h]), ae(() => {
@@ -16302,7 +16302,7 @@ function dn({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16302
16302
  n(z), f(!1);
16303
16303
  },
16304
16304
  [n]
16305
- ), v = ie(
16305
+ ), H = ie(
16306
16306
  (z) => {
16307
16307
  switch (z.key) {
16308
16308
  case "ArrowDown":
@@ -16323,7 +16323,7 @@ function dn({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16323
16323
  const z = _.current.children[h];
16324
16324
  z == null || z.scrollIntoView({ block: "nearest" });
16325
16325
  }, [h, c]);
16326
- const U = O.length > 8;
16326
+ const v = O.length > 8;
16327
16327
  return /* @__PURE__ */ $(
16328
16328
  "div",
16329
16329
  {
@@ -16341,7 +16341,7 @@ function dn({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16341
16341
  children: [
16342
16342
  /* @__PURE__ */ $("span", { className: "ldk-selectbox-label", children: [
16343
16343
  (P == null ? void 0 : P.preview) && /* @__PURE__ */ N("span", { className: "ldk-selectbox-swatch", style: { background: P.preview } }),
16344
- w
16344
+ R
16345
16345
  ] }),
16346
16346
  /* @__PURE__ */ N("span", { className: `codicon codicon-chevron-down ldk-selectbox-arrow ${c ? "ldk-selectbox-arrow-up" : ""}` })
16347
16347
  ]
@@ -16352,9 +16352,9 @@ function dn({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16352
16352
  {
16353
16353
  containerRef: k,
16354
16354
  onClose: () => f(!1),
16355
- onKeyDown: v,
16355
+ onKeyDown: H,
16356
16356
  listRef: _,
16357
- search: U ? /* @__PURE__ */ N("div", { className: "ldk-selectbox-search", children: /* @__PURE__ */ N(
16357
+ search: v ? /* @__PURE__ */ N("div", { className: "ldk-selectbox-search", children: /* @__PURE__ */ N(
16358
16358
  "input",
16359
16359
  {
16360
16360
  ref: I,
@@ -16386,23 +16386,23 @@ function dn({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16386
16386
  }
16387
16387
  );
16388
16388
  }
16389
- const Pu = "followTheme", gr = [];
16389
+ const Mu = "followTheme", gr = [];
16390
16390
  function Cb({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, placeholder: u, title: a }) {
16391
16391
  const { t: s, i18n: l } = Ae(), [c, f] = re(gr), d = n === "theme.colorways" && r === "colors", [m, h] = re(void 0);
16392
16392
  ae(() => {
16393
- var x, P, w, y, v;
16393
+ var x, P, R, y, H;
16394
16394
  if (!d) return;
16395
16395
  let _ = !1;
16396
- (P = (x = window.linkdesk) == null ? void 0 : x.configuration) == null || P.get("app.appearanceMode").then((U) => {
16397
- _ || h(U);
16396
+ (P = (x = window.linkdesk) == null ? void 0 : x.configuration) == null || P.get("app.appearanceMode").then((v) => {
16397
+ _ || h(v);
16398
16398
  });
16399
- const O = (v = (y = (w = window.linkdesk) == null ? void 0 : w.configuration) == null ? void 0 : y.onChange) == null ? void 0 : v.call(y, "app.appearanceMode", (U) => h(U));
16399
+ const O = (H = (y = (R = window.linkdesk) == null ? void 0 : R.configuration) == null ? void 0 : y.onChange) == null ? void 0 : H.call(y, "app.appearanceMode", (v) => h(v));
16400
16400
  return () => {
16401
16401
  _ = !0, O == null || O();
16402
16402
  };
16403
16403
  }, [d]);
16404
16404
  const p = d && m === "custom", k = ie(async () => {
16405
- var O, x, P, w;
16405
+ var O, x, P, R;
16406
16406
  const _ = (x = (O = window.linkdesk) == null ? void 0 : O.theme) == null ? void 0 : x.listRecipes;
16407
16407
  if (_)
16408
16408
  try {
@@ -16410,7 +16410,7 @@ function Cb({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
16410
16410
  if (n === "theme.sources" || p) {
16411
16411
  if (r === "colors") {
16412
16412
  f([
16413
- { value: Pu, label: s("跟随主题") },
16413
+ { value: Mu, label: s("跟随主题") },
16414
16414
  ...y.flatMap(
16415
16415
  (L) => L.colorways.map((V) => {
16416
16416
  var J;
@@ -16426,12 +16426,12 @@ function Cb({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
16426
16426
  }
16427
16427
  const T = r ? y.filter((L) => L.domains.includes(r)) : y;
16428
16428
  f([
16429
- { value: Pu, label: s("跟随主题") },
16429
+ { value: Mu, label: s("跟随主题") },
16430
16430
  ...T.map((L) => ({ value: L.id, label: L.name }))
16431
16431
  ]);
16432
16432
  return;
16433
16433
  }
16434
- const v = (w = (P = window.linkdesk) == null ? void 0 : P.configuration) == null ? void 0 : w.get, U = v ? await v("app.theme") : "", z = y.find((T) => T.id === U);
16434
+ const H = (R = (P = window.linkdesk) == null ? void 0 : P.configuration) == null ? void 0 : R.get, v = H ? await H("app.theme") : "", z = y.find((T) => T.id === v);
16435
16435
  f(
16436
16436
  z ? z.colorways.map((T) => {
16437
16437
  var L;
@@ -16445,11 +16445,11 @@ function Cb({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
16445
16445
  k();
16446
16446
  }, [k]);
16447
16447
  return ae(() => {
16448
- var x, P, w, y, v, U;
16448
+ var x, P, R, y, H, v;
16449
16449
  k();
16450
- const _ = (w = (P = (x = window.linkdesk) == null ? void 0 : x.configuration) == null ? void 0 : P.onPluginLifecycleChange) == null ? void 0 : w.call(P, () => {
16450
+ const _ = (R = (P = (x = window.linkdesk) == null ? void 0 : x.configuration) == null ? void 0 : P.onPluginLifecycleChange) == null ? void 0 : R.call(P, () => {
16451
16451
  k();
16452
- }), O = n === "theme.colorways" ? (U = (v = (y = window.linkdesk) == null ? void 0 : y.configuration) == null ? void 0 : v.onChange) == null ? void 0 : U.call(v, "app.theme", () => {
16452
+ }), O = n === "theme.colorways" ? (v = (H = (y = window.linkdesk) == null ? void 0 : y.configuration) == null ? void 0 : H.onChange) == null ? void 0 : v.call(H, "app.theme", () => {
16453
16453
  k();
16454
16454
  }) : void 0;
16455
16455
  return l.on("languageChanged", I), () => {
@@ -16625,9 +16625,9 @@ function Ob({ label: e, children: t }) {
16625
16625
  t
16626
16626
  ] });
16627
16627
  }
16628
- const Mr = 6, Qe = 8;
16628
+ const Fr = 6, Qe = 8;
16629
16629
  function JE(e, t, n, r) {
16630
- const i = Math.max(Qe, Math.min(e.left, n.width - t.width - Qe)), u = e.bottom + Mr, a = e.top - t.height - Mr, s = u + t.height <= n.height - Qe, l = a >= Qe;
16630
+ const i = Math.max(Qe, Math.min(e.left, n.width - t.width - Qe)), u = e.bottom + Fr, a = e.top - t.height - Fr, s = u + t.height <= n.height - Qe, l = a >= Qe;
16631
16631
  let c = r;
16632
16632
  r === "bottom" && !s && l ? c = "top" : r === "top" && !l && s ? c = "bottom" : r === "bottom" && !s && !l && (c = "top");
16633
16633
  const f = c === "bottom" ? u : a, d = Math.max(Qe, n.height - t.height - Qe);
@@ -16639,24 +16639,26 @@ function Db({ lines: e, title: t, note: n, placement: r = "bottom", openDelayMs:
16639
16639
  }, []), I = ie(() => {
16640
16640
  var P;
16641
16641
  const x = (P = a.current) == null ? void 0 : P.getBoundingClientRect();
16642
- x && (m({ top: x.bottom + Mr, left: x.left }), f(!0));
16642
+ x && (m({ top: x.bottom + Fr, left: x.left }), f(!0));
16643
16643
  }, []), _ = ie(() => {
16644
16644
  window.clearTimeout(l.current), l.current = setTimeout(I, i);
16645
16645
  }, [I, i]), O = ie(() => {
16646
16646
  window.clearTimeout(l.current), f(!1);
16647
16647
  }, []);
16648
16648
  return Mn(() => {
16649
- var y, v;
16649
+ var y, H;
16650
16650
  if (!c) return;
16651
- const x = (y = a.current) == null ? void 0 : y.getBoundingClientRect(), P = (v = s.current) == null ? void 0 : v.getBoundingClientRect();
16651
+ const x = (y = a.current) == null ? void 0 : y.getBoundingClientRect(), P = (H = s.current) == null ? void 0 : H.getBoundingClientRect();
16652
16652
  if (!x || !P) return;
16653
- const w = JE(x, P, { width: window.innerWidth, height: window.innerHeight }, r);
16654
- m({ top: w.top, left: w.left });
16655
- }, [c, r]), ae(() => () => window.clearTimeout(l.current), []), ae(() => {
16653
+ const R = JE(x, P, { width: window.innerWidth, height: window.innerHeight }, r);
16654
+ m(
16655
+ (v) => v.top === R.top && v.left === R.left ? v : { top: R.top, left: R.left }
16656
+ );
16657
+ }, [c, r, d]), ae(() => () => window.clearTimeout(l.current), []), ae(() => {
16656
16658
  if (!c) return;
16657
16659
  const x = (P) => {
16658
- var w;
16659
- (w = a.current) != null && w.contains(P.target) || f(!1);
16660
+ var R;
16661
+ (R = a.current) != null && R.contains(P.target) || f(!1);
16660
16662
  };
16661
16663
  return window.addEventListener("pointerdown", x, !0), () => window.removeEventListener("pointerdown", x, !0);
16662
16664
  }, [c]), p ? /* @__PURE__ */ $(
@@ -16687,7 +16689,7 @@ function Db({ lines: e, title: t, note: n, placement: r = "bottom", openDelayMs:
16687
16689
  function ZE({ label: e, command: t, placement: n, openDelayMs: r, children: i }) {
16688
16690
  if (!(e != null && e !== "" || t != null) || !So(i)) return i;
16689
16691
  const a = {};
16690
- return e != null && e !== "" && (a[et] = e), t != null && (a[Po] = t), n != null && (a[Mo] = n), r != null && (a[vr] = String(r)), Lo(i, a);
16692
+ return e != null && e !== "" && (a[et] = e), t != null && (a[Po] = t), n != null && (a[Mo] = n), r != null && (a[Hr] = String(r)), Lo(i, a);
16691
16693
  }
16692
16694
  function Rb({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style: a }) {
16693
16695
  const { t: s } = Ae(), l = ie(
@@ -16746,7 +16748,7 @@ let wn = !1;
16746
16748
  function vs() {
16747
16749
  return typeof document < "u" && document.visibilityState === "hidden";
16748
16750
  }
16749
- async function ci(e) {
16751
+ async function di(e) {
16750
16752
  const t = e.runRef.current;
16751
16753
  if (!t) return;
16752
16754
  let n;
@@ -16761,7 +16763,7 @@ async function ci(e) {
16761
16763
  }
16762
16764
  function Hs(e) {
16763
16765
  e.timer !== null || vs() || (e.timer = setInterval(() => {
16764
- ci(e);
16766
+ di(e);
16765
16767
  }, e.intervalMs));
16766
16768
  }
16767
16769
  function Us(e) {
@@ -16770,7 +16772,7 @@ function Us(e) {
16770
16772
  function zs() {
16771
16773
  const e = vs();
16772
16774
  for (const t of Ct.values())
16773
- e ? Us(t) : (ci(t), Hs(t));
16775
+ e ? Us(t) : (di(t), Hs(t));
16774
16776
  }
16775
16777
  function tg() {
16776
16778
  wn || typeof document > "u" || (document.addEventListener("visibilitychange", zs), wn = !0);
@@ -16798,7 +16800,7 @@ function rg(e, t, n = eg) {
16798
16800
  runRef: u,
16799
16801
  subscribers: /* @__PURE__ */ new Set(),
16800
16802
  timer: null
16801
- }, Ct.set(e, c), tg()), c.subscribers.add(l), ci(c), Hs(c), () => {
16803
+ }, Ct.set(e, c), tg()), c.subscribers.add(l), di(c), Hs(c), () => {
16802
16804
  s = !1;
16803
16805
  const f = Ct.get(e);
16804
16806
  f && (f.subscribers.delete(l), !(f.subscribers.size > 0) && (Us(f), Ct.delete(e), Ct.size === 0 && ng()));
@@ -16866,7 +16868,7 @@ function Mb({
16866
16868
  disabled: c,
16867
16869
  style: f
16868
16870
  }) {
16869
- const { t: d } = Ae(), m = (w) => Math.min(r, Math.max(n, w)), h = (w) => Number(w.toFixed((String(i).split(".")[1] ?? "").length)), p = m(e), k = r > n ? (p - n) / (r - n) * 100 : 0, I = /* @__PURE__ */ N(
16871
+ const { t: d } = Ae(), m = (R) => Math.min(r, Math.max(n, R)), h = (R) => Number(R.toFixed((String(i).split(".")[1] ?? "").length)), p = m(e), k = r > n ? (p - n) / (r - n) * 100 : 0, I = /* @__PURE__ */ N(
16870
16872
  "input",
16871
16873
  {
16872
16874
  type: "range",
@@ -16877,21 +16879,21 @@ function Mb({
16877
16879
  step: i,
16878
16880
  disabled: c,
16879
16881
  "aria-label": l,
16880
- onChange: (w) => t(Number(w.target.value)),
16882
+ onChange: (R) => t(Number(R.target.value)),
16881
16883
  style: { ...f, "--slider-pct": `${k}%` }
16882
16884
  }
16883
16885
  );
16884
16886
  if (u === void 0 && !s) return I;
16885
- const _ = p <= n, O = p >= r, x = (w) => t(m(h(p + w * i))), P = (w) => /* @__PURE__ */ N(
16887
+ const _ = p <= n, O = p >= r, x = (R) => t(m(h(p + R * i))), P = (R) => /* @__PURE__ */ N(
16886
16888
  "button",
16887
16889
  {
16888
16890
  type: "button",
16889
16891
  className: "ldk-slider-step",
16890
- "data-dir": w,
16891
- disabled: c || (w === -1 ? _ : O),
16892
- "aria-label": `${d(w === -1 ? "减少" : "增加")}${l ? ` ${l}` : ""}`,
16893
- onClick: () => x(w),
16894
- children: /* @__PURE__ */ N("svg", { viewBox: "0 0 10 10", fill: "none", "aria-hidden": "true", children: w === -1 ? /* @__PURE__ */ N("path", { d: "M1.5 5h7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) : /* @__PURE__ */ N("path", { d: "M5 1.5v7M1.5 5h7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) })
16892
+ "data-dir": R,
16893
+ disabled: c || (R === -1 ? _ : O),
16894
+ "aria-label": `${d(R === -1 ? "减少" : "增加")}${l ? ` ${l}` : ""}`,
16895
+ onClick: () => x(R),
16896
+ children: /* @__PURE__ */ N("svg", { viewBox: "0 0 10 10", fill: "none", "aria-hidden": "true", children: R === -1 ? /* @__PURE__ */ N("path", { d: "M1.5 5h7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) : /* @__PURE__ */ N("path", { d: "M5 1.5v7M1.5 5h7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) })
16895
16897
  }
16896
16898
  );
16897
16899
  return /* @__PURE__ */ $("span", { className: "ldk-slider-root", "data-pos": u === void 0 ? void 0 : a, "data-stepper": s, children: [
@@ -16917,12 +16919,12 @@ function Fb({
16917
16919
  hint: m
16918
16920
  }) {
16919
16921
  const [h, p] = re(""), [k, I] = re(null), _ = () => I(null), O = (P) => {
16920
- const w = (y) => {
16922
+ const R = (y) => {
16921
16923
  if (!d) return y === P;
16922
- const v = d(P);
16923
- return v === null ? y === P : d(y) === v;
16924
+ const H = d(P);
16925
+ return H === null ? y === P : d(y) === H;
16924
16926
  };
16925
- return n.some(w) || e.some(w);
16927
+ return n.some(R) || e.some(R);
16926
16928
  }, x = () => {
16927
16929
  const P = h.trim();
16928
16930
  if (!P) {
@@ -16955,7 +16957,7 @@ function Fb({
16955
16957
  className: "ldk-sle-del",
16956
16958
  "data-hint": a,
16957
16959
  "aria-label": a,
16958
- onClick: () => t(e.filter((w) => w !== P)),
16960
+ onClick: () => t(e.filter((R) => R !== P)),
16959
16961
  children: /* @__PURE__ */ N("span", { className: "codicon codicon-trash", "aria-hidden": "true" })
16960
16962
  }
16961
16963
  )
@@ -17065,12 +17067,12 @@ function Bb({ value: e, onChange: t }) {
17065
17067
  ) : (
17066
17068
  // 多配色配方——配色圆点色板(mockup .ldk-theme-picker-preview-dot)
17067
17069
  /* @__PURE__ */ N("span", { className: "ldk-theme-picker-preview-dots", children: m.colorways.slice(0, ag).map((P) => {
17068
- var w;
17070
+ var R;
17069
17071
  return /* @__PURE__ */ N(
17070
17072
  "span",
17071
17073
  {
17072
17074
  className: "ldk-theme-picker-preview-dot",
17073
- style: (w = P.preview) != null && w.accent ? { background: P.preview.accent } : void 0
17075
+ style: (R = P.preview) != null && R.accent ? { background: P.preview.accent } : void 0
17074
17076
  },
17075
17077
  P.id
17076
17078
  );
@@ -17104,7 +17106,7 @@ function vb({ checked: e, onChange: t, disabled: n }) {
17104
17106
  function At() {
17105
17107
  return window.linkdesk;
17106
17108
  }
17107
- const og = Br(function({
17109
+ const og = vr(function({
17108
17110
  size: t,
17109
17111
  value: n,
17110
17112
  onConfirm: r,
@@ -17136,9 +17138,9 @@ const og = Br(function({
17136
17138
  I.current.select();
17137
17139
  });
17138
17140
  }, [l]), ae(() => {
17139
- var U, z;
17141
+ var v, z;
17140
17142
  if (!x) {
17141
- (z = (U = At().contextKey) == null ? void 0 : U.set) == null || z.call(U, "inputFocus", !1);
17143
+ (z = (v = At().contextKey) == null ? void 0 : v.set) == null || z.call(v, "inputFocus", !1);
17142
17144
  const T = requestAnimationFrame(() => {
17143
17145
  var L, V;
17144
17146
  (V = (L = At().keybindings) == null ? void 0 : L.setKeybindingCaptureActive) == null || V.call(L, !1);
@@ -17146,16 +17148,16 @@ const og = Br(function({
17146
17148
  return () => cancelAnimationFrame(T);
17147
17149
  }
17148
17150
  }, [x]), ae(() => () => {
17149
- var U, z, T, L;
17150
- (z = (U = At().contextKey) == null ? void 0 : U.set) == null || z.call(U, "inputFocus", !1), (L = (T = At().keybindings) == null ? void 0 : T.setKeybindingCaptureActive) == null || L.call(T, !1);
17151
+ var v, z, T, L;
17152
+ (z = (v = At().contextKey) == null ? void 0 : v.set) == null || z.call(v, "inputFocus", !1), (L = (T = At().keybindings) == null ? void 0 : T.setKeybindingCaptureActive) == null || L.call(T, !1);
17151
17153
  }, []);
17152
- const w = (U) => {
17153
- U.key === "Enter" ? (U.preventDefault(), P(!1), r(_)) : U.key === "Escape" && (U.preventDefault(), P(!1), i()), U.stopPropagation();
17154
+ const R = (v) => {
17155
+ v.key === "Enter" ? (v.preventDefault(), P(!1), r(_)) : v.key === "Escape" && (v.preventDefault(), P(!1), i()), v.stopPropagation();
17154
17156
  }, y = () => {
17155
17157
  x && (P(!1), r(_));
17156
- }, v = () => {
17157
- var U, z, T, L;
17158
- P(!0), (z = (U = At().contextKey) == null ? void 0 : U.set) == null || z.call(U, "inputFocus", !0), (L = (T = At().keybindings) == null ? void 0 : T.setKeybindingCaptureActive) == null || L.call(T, !0);
17158
+ }, H = () => {
17159
+ var v, z, T, L;
17160
+ P(!0), (z = (v = At().contextKey) == null ? void 0 : v.set) == null || z.call(v, "inputFocus", !0), (L = (T = At().keybindings) == null ? void 0 : T.setKeybindingCaptureActive) == null || L.call(T, !0);
17159
17161
  };
17160
17162
  return /* @__PURE__ */ N(
17161
17163
  "input",
@@ -17164,14 +17166,14 @@ const og = Br(function({
17164
17166
  className: `ldk-inline-input ldk-inline-input--${t}`,
17165
17167
  type: f,
17166
17168
  value: _,
17167
- onChange: (U) => {
17168
- const z = f === "number" ? U.target.value.replace(/\D/g, "") : U.target.value;
17169
+ onChange: (v) => {
17170
+ const z = f === "number" ? v.target.value.replace(/\D/g, "") : v.target.value;
17169
17171
  O(z), u == null || u(z);
17170
17172
  },
17171
- onKeyDown: w,
17173
+ onKeyDown: R,
17172
17174
  onBlur: y,
17173
- onFocus: v,
17174
- onDragStart: (U) => U.preventDefault(),
17175
+ onFocus: H,
17176
+ onDragStart: (v) => v.preventDefault(),
17175
17177
  placeholder: c,
17176
17178
  ...h ? { "aria-label": h } : {},
17177
17179
  min: d,
@@ -17206,6 +17208,8 @@ function dg(e, t) {
17206
17208
  return { lucide: n };
17207
17209
  if (r === "codicon" && n)
17208
17210
  return { codicon: `codicon-${n}` };
17211
+ if (r === "shared" && n)
17212
+ return { sharedName: n };
17209
17213
  if (n && (r === "svg" || r === "url"))
17210
17214
  return { src: n };
17211
17215
  if (n) {
@@ -17278,7 +17282,7 @@ const pg = (e) => {
17278
17282
  * This source code is licensed under the ISC license.
17279
17283
  * See the LICENSE file in the root directory of this source tree.
17280
17284
  */
17281
- const Fr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
17285
+ const Br = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
17282
17286
  /**
17283
17287
  * @license lucide-react v1.42.0 - ISC
17284
17288
  *
@@ -17307,7 +17311,7 @@ function br(e) {
17307
17311
  }
17308
17312
  function Eg(e, t = {}) {
17309
17313
  var m, h;
17310
- const n = t.attributeNames ?? {}, r = (p) => n[p] ?? p, i = e.size ?? e.width ?? st.width, u = e.size ?? e.height ?? st.height, a = ((m = e.aliases) == null ? void 0 : m.filter((p) => typeof p == "string" && p.trim() !== "").map((p) => `lucide-${p}`)) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...a], l = ((h = t.className) == null ? void 0 : h.split(" ").filter(Boolean)) ?? [], c = t.includeDefaultClasses === !1 ? Fr(...l) : Fr("lucide", ...s, ...l), f = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? st["stroke-width"]) * Number(e.size ?? e.width ?? st.width) / Number(t.size ?? t.width ?? st.width) : t.strokeWidth ?? st["stroke-width"];
17314
+ const n = t.attributeNames ?? {}, r = (p) => n[p] ?? p, i = e.size ?? e.width ?? st.width, u = e.size ?? e.height ?? st.height, a = ((m = e.aliases) == null ? void 0 : m.filter((p) => typeof p == "string" && p.trim() !== "").map((p) => `lucide-${p}`)) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...a], l = ((h = t.className) == null ? void 0 : h.split(" ").filter(Boolean)) ?? [], c = t.includeDefaultClasses === !1 ? Br(...l) : Br("lucide", ...s, ...l), f = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? st["stroke-width"]) * Number(e.size ?? e.width ?? st.width) / Number(t.size ?? t.width ?? st.width) : t.strokeWidth ?? st["stroke-width"];
17311
17315
  return [
17312
17316
  "svg",
17313
17317
  {
@@ -17371,7 +17375,7 @@ const bg = (e) => {
17371
17375
  if (t.startsWith("aria-") || t === "role" || t === "title")
17372
17376
  return !0;
17373
17377
  return !1;
17374
- }, Tg = Ro({}), _g = () => Do(Tg), Ag = Br(
17378
+ }, Tg = Ro({}), _g = () => Do(Tg), Ag = vr(
17375
17379
  ({
17376
17380
  color: e,
17377
17381
  size: t,
@@ -17397,25 +17401,25 @@ const bg = (e) => {
17397
17401
  nonScalingStroke: I = !1,
17398
17402
  color: _ = "currentColor",
17399
17403
  className: O = ""
17400
- } = _g() ?? {}, x = !!l || bg(d), [P, w, y = []] = gg(f, {
17404
+ } = _g() ?? {}, x = !!l || bg(d), [P, R, y = []] = gg(f, {
17401
17405
  color: e ?? _,
17402
17406
  width: n ?? t ?? h,
17403
17407
  height: r ?? t ?? h,
17404
17408
  strokeWidth: i ?? p,
17405
17409
  absoluteStrokeWidth: u ?? k,
17406
17410
  nonScalingStroke: a ?? I,
17407
- className: Fr(O, s),
17411
+ className: Br(O, s),
17408
17412
  hasA11yProp: x,
17409
17413
  attributes: d
17410
17414
  });
17411
- return Tr(
17415
+ return _r(
17412
17416
  P,
17413
17417
  {
17414
17418
  ref: m,
17415
- ...w
17419
+ ...R
17416
17420
  },
17417
17421
  [
17418
- ...y.map(([v, U]) => Tr(v, U)),
17422
+ ...y.map(([H, v]) => _r(H, v)),
17419
17423
  ...Array.isArray(l) ? l : [l]
17420
17424
  ]
17421
17425
  );
@@ -17428,8 +17432,8 @@ const bg = (e) => {
17428
17432
  * See the LICENSE file in the root directory of this source tree.
17429
17433
  */
17430
17434
  function he(e, t = [], n = []) {
17431
- const r = typeof e == "string" ? hg(e, t, n) : e, i = Br(
17432
- ({ className: u, ...a }, s) => Tr(Ag, {
17435
+ const r = typeof e == "string" ? hg(e, t, n) : e, i = vr(
17436
+ ({ className: u, ...a }, s) => _r(Ag, {
17433
17437
  ref: s,
17434
17438
  icon: r,
17435
17439
  className: u,
@@ -17911,15 +17915,41 @@ const Yg = he(oo), Vg = {
17911
17915
  Sparkles: Ug,
17912
17916
  Star: zg,
17913
17917
  Zap: Yg
17914
- }, Mu = "📄";
17915
- function lo({ pluginId: e, manifest: t, className: n, alt: r = "" }) {
17916
- const i = t ? dg(e, t) : { emoji: Mu };
17917
- if (i.lucide) {
17918
- const u = Vg[i.lucide];
17919
- if (u)
17920
- return /* @__PURE__ */ N(u, { className: `plugin-icon plugin-icon--lucide ${n ?? ""}` });
17918
+ }, Tr = "📄";
17919
+ function lo({ pluginId: e, manifest: t, sharedIcons: n, className: r, alt: i = "" }) {
17920
+ const u = t ? dg(e, t) : { emoji: Tr };
17921
+ if (u.lucide) {
17922
+ const a = Vg[u.lucide];
17923
+ if (a)
17924
+ return /* @__PURE__ */ N(a, { className: `plugin-icon plugin-icon--lucide ${r ?? ""}` });
17925
+ }
17926
+ if (u.codicon)
17927
+ return /* @__PURE__ */ N("span", { className: `codicon ${u.codicon} plugin-icon plugin-icon--codicon ${r ?? ""}` });
17928
+ if (u.sharedName) {
17929
+ const a = n == null ? void 0 : n[u.sharedName];
17930
+ if (a != null && a.url) {
17931
+ const s = `url("${a.url}")`;
17932
+ return /* @__PURE__ */ N(
17933
+ "span",
17934
+ {
17935
+ className: `plugin-icon plugin-icon--ink ${r ?? ""}`,
17936
+ style: {
17937
+ backgroundColor: "var(--icon-ink)",
17938
+ WebkitMaskImage: s,
17939
+ maskImage: s,
17940
+ WebkitMaskRepeat: "no-repeat",
17941
+ maskRepeat: "no-repeat",
17942
+ WebkitMaskPosition: "center",
17943
+ maskPosition: "center",
17944
+ WebkitMaskSize: "contain",
17945
+ maskSize: "contain"
17946
+ }
17947
+ }
17948
+ );
17949
+ }
17950
+ return /* @__PURE__ */ N("span", { className: `plugin-icon plugin-icon--emoji ${r ?? ""}`, children: Tr });
17921
17951
  }
17922
- return i.codicon ? /* @__PURE__ */ N("span", { className: `codicon ${i.codicon} plugin-icon plugin-icon--codicon ${n ?? ""}` }) : i.src ? /* @__PURE__ */ N("img", { src: i.src, alt: r, className: `plugin-icon plugin-icon--img ${n ?? ""}`, draggable: !1 }) : /* @__PURE__ */ N("span", { className: `plugin-icon plugin-icon--emoji ${n ?? ""}`, children: i.emoji ?? Mu });
17952
+ return u.src ? /* @__PURE__ */ N("img", { src: u.src, alt: i, className: `plugin-icon plugin-icon--img ${r ?? ""}`, draggable: !1 }) : /* @__PURE__ */ N("span", { className: `plugin-icon plugin-icon--emoji ${r ?? ""}`, children: u.emoji ?? Tr });
17923
17953
  }
17924
17954
  const qg = "pluginCardGear";
17925
17955
  function Wg({
@@ -17938,10 +17968,10 @@ function Wg({
17938
17968
  const { t: d } = Ae(), m = Uu(), h = se(null), [p, k] = re(null), I = r ? `${e} · v${r}` : e, _ = ie(() => {
17939
17969
  a(!u);
17940
17970
  }, [a, u]), O = ie(() => {
17941
- var U;
17942
- const v = (U = h.current) == null ? void 0 : U.getBoundingClientRect();
17943
- v && k({ x: v.left, y: v.bottom + 4 });
17944
- }, []), x = ie(() => k(null), []), P = !!s && s.length > 0, w = { [et]: I, [vr]: "0" }, y = { [et]: d("更多操作") };
17971
+ var v;
17972
+ const H = (v = h.current) == null ? void 0 : v.getBoundingClientRect();
17973
+ H && k({ x: H.left, y: H.bottom + 4 });
17974
+ }, []), x = ie(() => k(null), []), P = !!s && s.length > 0, R = { [et]: I, [Hr]: "0" }, y = { [et]: d("更多操作") };
17945
17975
  return /* @__PURE__ */ $(
17946
17976
  "div",
17947
17977
  {
@@ -17968,9 +17998,9 @@ function Wg({
17968
17998
  /* @__PURE__ */ $("span", { className: "ldk-plugin-card-ident", children: [
17969
17999
  /* @__PURE__ */ $("span", { className: "ldk-plugin-card-titleline", children: [
17970
18000
  /* @__PURE__ */ N("span", { className: "ldk-plugin-card-title", children: n }),
17971
- l && /* @__PURE__ */ N(Hr, { children: d("已停用") })
18001
+ l && /* @__PURE__ */ N(Ur, { children: d("已停用") })
17972
18002
  ] }),
17973
- /* @__PURE__ */ N("span", { className: "ldk-plugin-card-sub", ...w, children: I })
18003
+ /* @__PURE__ */ N("span", { className: "ldk-plugin-card-sub", ...R, children: I })
17974
18004
  ] }),
17975
18005
  i != null && /* @__PURE__ */ N("span", { className: "ldk-plugin-card-summary", children: i }),
17976
18006
  /* @__PURE__ */ N(
@@ -17999,7 +18029,7 @@ function Wg({
17999
18029
  u && c != null && /* @__PURE__ */ N("div", { className: "ldk-plugin-card-toolbar", children: c }),
18000
18030
  u && /* @__PURE__ */ N("div", { className: "ldk-plugin-card-body", id: m, children: f }),
18001
18031
  P && p && /* @__PURE__ */ N(
18002
- li,
18032
+ ci,
18003
18033
  {
18004
18034
  menuId: qg,
18005
18035
  anchor: p,
@@ -18035,7 +18065,7 @@ function Ub({
18035
18065
  "aria-hidden": "true"
18036
18066
  }
18037
18067
  ),
18038
- oi()
18068
+ li()
18039
18069
  ),
18040
18070
  /* @__PURE__ */ N(
18041
18071
  cn,
@@ -18083,7 +18113,7 @@ function Ub({
18083
18113
  /* @__PURE__ */ $("div", { className: "ldk-openwith-names", children: [
18084
18114
  /* @__PURE__ */ $("div", { className: "ldk-openwith-nm", children: [
18085
18115
  _.title,
18086
- _.isDefault && /* @__PURE__ */ N(Hr, { title: _.isAuto ? void 0 : a("用户指定"), children: _.isAuto ? a("自动默认") : a("默认") })
18116
+ _.isDefault && /* @__PURE__ */ N(Ur, { title: _.isAuto ? void 0 : a("用户指定"), children: _.isAuto ? a("自动默认") : a("默认") })
18087
18117
  ] }),
18088
18118
  /* @__PURE__ */ N("div", { className: "ldk-openwith-pid", children: _.pluginId })
18089
18119
  ] }),
@@ -18493,7 +18523,7 @@ function nb({ row: e, onPick: t, gearItems: n = [], nameOnlyHit: r = !1 }) {
18493
18523
  }
18494
18524
  ),
18495
18525
  u && n.length > 0 && /* @__PURE__ */ N(
18496
- li,
18526
+ ci,
18497
18527
  {
18498
18528
  menuId: tb,
18499
18529
  anchor: u,
@@ -18504,13 +18534,13 @@ function nb({ row: e, onPick: t, gearItems: n = [], nameOnlyHit: r = !1 }) {
18504
18534
  )
18505
18535
  ] });
18506
18536
  }
18507
- function di(e) {
18537
+ function fi(e) {
18508
18538
  if (typeof e != "string") return "";
18509
18539
  const t = e.trim().toLowerCase().replace(/^\.+/, "");
18510
18540
  return !t || /[\s/\\]/.test(t) ? "" : t;
18511
18541
  }
18512
18542
  function co(e) {
18513
- const t = di(e);
18543
+ const t = fi(e);
18514
18544
  return t ? `.${t}` : "";
18515
18545
  }
18516
18546
  function fo(e, t) {
@@ -18523,7 +18553,7 @@ function eT(e) {
18523
18553
  if (!Array.isArray(e)) return [];
18524
18554
  const t = [], n = /* @__PURE__ */ new Set();
18525
18555
  for (const r of e) {
18526
- const i = di(r);
18556
+ const i = fi(r);
18527
18557
  !i || n.has(i) || (n.add(i), t.push(i));
18528
18558
  }
18529
18559
  return t;
@@ -18533,7 +18563,7 @@ function tT(e) {
18533
18563
  if (!Array.isArray(t)) return [];
18534
18564
  const n = [], r = /* @__PURE__ */ new Set();
18535
18565
  for (const i of t) {
18536
- const u = i, a = typeof (u == null ? void 0 : u.extension) == "string" ? u.extension.trim() : "", s = di(u == null ? void 0 : u.extension);
18566
+ const u = i, a = typeof (u == null ? void 0 : u.extension) == "string" ? u.extension.trim() : "", s = fi(u == null ? void 0 : u.extension);
18537
18567
  if (!s || r.has(s)) continue;
18538
18568
  r.add(s);
18539
18569
  const l = typeof (u == null ? void 0 : u.displayName) == "string" ? u.displayName.trim() : "";
@@ -18679,7 +18709,7 @@ function cb({ row: e, onPick: t, gearItems: n = [] }) {
18679
18709
  ] })
18680
18710
  ] }),
18681
18711
  /* @__PURE__ */ $("div", { className: "ldk-famgr-control", children: [
18682
- /* @__PURE__ */ N(Hr, { children: r("{{count}} 个候选", { count: e.handlerCount }) }),
18712
+ /* @__PURE__ */ N(Ur, { children: r("{{count}} 个候选", { count: e.handlerCount }) }),
18683
18713
  /* @__PURE__ */ N(
18684
18714
  dn,
18685
18715
  {
@@ -18696,7 +18726,7 @@ function cb({ row: e, onPick: t, gearItems: n = [] }) {
18696
18726
  n.length > 0 && /* @__PURE__ */ N("button", { type: "button", className: "ldk-famgr-gear", "aria-label": r("更多操作"), onClick: d, children: /* @__PURE__ */ N("span", { className: "codicon codicon-gear", "aria-hidden": "true" }) })
18697
18727
  ] }),
18698
18728
  i && n.length > 0 && /* @__PURE__ */ N(
18699
- li,
18729
+ ci,
18700
18730
  {
18701
18731
  menuId: lb,
18702
18732
  anchor: i,
@@ -18719,56 +18749,56 @@ function rT({
18719
18749
  cardGearItems: s,
18720
18750
  cardRowGearItems: l
18721
18751
  }) {
18722
- const { t: c } = Ae(), f = t.trim(), [d, m] = re({}), [h, p] = re({}), [k, I] = re({}), _ = ie((w, y) => {
18723
- p((v) => v[w] === y ? v : { ...v, [w]: y });
18724
- }, []), O = ie((w, y) => {
18725
- I((v) => v[w] === y ? v : { ...v, [w]: y });
18726
- }, []), x = e.cards.map((w) => w.pluginId).join("|");
18752
+ const { t: c } = Ae(), f = t.trim(), [d, m] = re({}), [h, p] = re({}), [k, I] = re({}), _ = ie((R, y) => {
18753
+ p((H) => H[R] === y ? H : { ...H, [R]: y });
18754
+ }, []), O = ie((R, y) => {
18755
+ I((H) => H[R] === y ? H : { ...H, [R]: y });
18756
+ }, []), x = e.cards.map((R) => R.pluginId).join("|");
18727
18757
  ae(() => {
18728
- f && m((w) => {
18758
+ f && m((R) => {
18729
18759
  let y = !1;
18730
- const v = { ...w };
18731
- for (const U of e.cards)
18732
- v[U.pluginId] || (v[U.pluginId] = !0, y = !0);
18733
- return y ? v : w;
18760
+ const H = { ...R };
18761
+ for (const v of e.cards)
18762
+ H[v.pluginId] || (H[v.pluginId] = !0, y = !0);
18763
+ return y ? H : R;
18734
18764
  });
18735
18765
  }, [f, x, e.cards]);
18736
- const P = ie((w, y) => {
18737
- m((v) => ({ ...v, [w]: y })), !y && (p((v) => v[w] ? { ...v, [w]: "" } : v), I((v) => {
18738
- const U = v[w];
18739
- return U && U !== "alpha" ? { ...v, [w]: "alpha" } : v;
18766
+ const P = ie((R, y) => {
18767
+ m((H) => ({ ...H, [R]: y })), !y && (p((H) => H[R] ? { ...H, [R]: "" } : H), I((H) => {
18768
+ const v = H[R];
18769
+ return v && v !== "alpha" ? { ...H, [R]: "alpha" } : H;
18740
18770
  }));
18741
18771
  }, []);
18742
18772
  return i && !r ? /* @__PURE__ */ N("div", { className: "ldk-famgr", children: /* @__PURE__ */ N("div", { className: "ldk-famgr-empty", children: c("加载默认打开方式失败:{{msg}}", { msg: i }) }) }) : n && !r ? /* @__PURE__ */ N("div", { className: "ldk-famgr", children: /* @__PURE__ */ N("div", { className: "ldk-famgr-empty", children: c("加载中…") }) }) : f && e.contested.length === 0 && e.cards.length === 0 ? /* @__PURE__ */ N("div", { className: "ldk-famgr", children: /* @__PURE__ */ N("div", { className: "ldk-famgr-empty", children: c("没有匹配的类型或插件") }) }) : /* @__PURE__ */ $("div", { className: "ldk-famgr", children: [
18743
18773
  /* @__PURE__ */ $("div", { className: "ldk-famgr-subsection", children: [
18744
18774
  /* @__PURE__ */ N("h3", { className: "ldk-famgr-subsection-title", children: c("多候选类型") }),
18745
- e.contested.length === 0 ? /* @__PURE__ */ N("div", { className: "ldk-famgr-empty", children: c("(当前没有多候选的类型)") }) : e.contested.map((w) => /* @__PURE__ */ N(
18775
+ e.contested.length === 0 ? /* @__PURE__ */ N("div", { className: "ldk-famgr-empty", children: c("(当前没有多候选的类型)") }) : e.contested.map((R) => /* @__PURE__ */ N(
18746
18776
  cb,
18747
18777
  {
18748
- row: w,
18778
+ row: R,
18749
18779
  onPick: u,
18750
- ...a ? { gearItems: a(w) } : {}
18780
+ ...a ? { gearItems: a(R) } : {}
18751
18781
  },
18752
- w.exts.join("|")
18782
+ R.exts.join("|")
18753
18783
  ))
18754
18784
  ] }),
18755
18785
  /* @__PURE__ */ $("div", { className: "ldk-famgr-subsection", children: [
18756
18786
  /* @__PURE__ */ N("h3", { className: "ldk-famgr-subsection-title", children: c("按插件浏览") }),
18757
- e.cards.length === 0 ? /* @__PURE__ */ N("div", { className: "ldk-famgr-empty", children: c("(没有声明了文件类型的插件)") }) : e.cards.map((w) => /* @__PURE__ */ N(
18787
+ e.cards.length === 0 ? /* @__PURE__ */ N("div", { className: "ldk-famgr-empty", children: c("(没有声明了文件类型的插件)") }) : e.cards.map((R) => /* @__PURE__ */ N(
18758
18788
  hb,
18759
18789
  {
18760
- card: w,
18761
- expanded: !!d[w.pluginId],
18790
+ card: R,
18791
+ expanded: !!d[R.pluginId],
18762
18792
  onToggle: P,
18763
18793
  onPick: u,
18764
- filter: h[w.pluginId] ?? "",
18765
- sortMode: k[w.pluginId] ?? "alpha",
18794
+ filter: h[R.pluginId] ?? "",
18795
+ sortMode: k[R.pluginId] ?? "alpha",
18766
18796
  onCardFilter: _,
18767
18797
  onCardSort: O,
18768
- ...s ? { gearItems: s(w) } : {},
18798
+ ...s ? { gearItems: s(R) } : {},
18769
18799
  ...l ? { rowGearItems: l } : {}
18770
18800
  },
18771
- w.pluginId
18801
+ R.pluginId
18772
18802
  ))
18773
18803
  ] })
18774
18804
  ] });
@@ -18891,7 +18921,7 @@ function mb({
18891
18921
  }
18892
18922
  export {
18893
18923
  jb as BackgroundImagePicker,
18894
- Hr as Badge,
18924
+ Ur as Badge,
18895
18925
  In as Button,
18896
18926
  yn as CONFIG_NONE_SENTINEL,
18897
18927
  nb as CardRow,
@@ -18899,7 +18929,7 @@ export {
18899
18929
  Ab as ColorPicker,
18900
18930
  kb as Combobox,
18901
18931
  cb as ContestedRow,
18902
- li as ContextMenu,
18932
+ ci as ContextMenu,
18903
18933
  cg as DEFAULT_PLUGIN_IDENTITY_URI,
18904
18934
  Cb as DynamicSelect,
18905
18935
  ho as EXT_LABEL_MAX,
@@ -18943,7 +18973,7 @@ export {
18943
18973
  qb as inferSliderStep,
18944
18974
  Sb as isSettingsHiddenHint,
18945
18975
  xb as isSettingsUiHint,
18946
- di as normalizeExt,
18976
+ fi as normalizeExt,
18947
18977
  eT as normalizeExtList,
18948
18978
  sb as orderRows,
18949
18979
  co as overrideKeyOf,