@linkdesk/ui 0.1.7 → 0.2.1

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
@@ -7,7 +7,7 @@ import { memo as Zs, useMemo as ve, useRef as ce, useEffect as re, useState as o
7
7
  import ro, { createPortal as Nr } from "react-dom";
8
8
  import { useTranslation as ft } from "react-i18next";
9
9
  function fT({ children: e, title: t }) {
10
- return /* @__PURE__ */ U("span", { className: "badge", title: t, children: e });
10
+ return /* @__PURE__ */ U("span", { className: "ldk-badge", title: t, children: e });
11
11
  }
12
12
  function ti(e) {
13
13
  const t = [], n = String(e || "");
@@ -19,7 +19,7 @@ function ti(e) {
19
19
  }
20
20
  return t;
21
21
  }
22
- function Cu(e, t) {
22
+ function ku(e, t) {
23
23
  const n = {};
24
24
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
25
25
  (n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
@@ -54,7 +54,7 @@ class Jt {
54
54
  Jt.prototype.normal = {};
55
55
  Jt.prototype.property = {};
56
56
  Jt.prototype.space = void 0;
57
- function ku(e, t) {
57
+ function Cu(e, t) {
58
58
  const n = {}, r = {};
59
59
  for (const i of e)
60
60
  Object.assign(n, i.property), Object.assign(r, i.normal);
@@ -1210,7 +1210,7 @@ function Eo(e) {
1210
1210
  function To(e) {
1211
1211
  return e.charAt(1).toUpperCase();
1212
1212
  }
1213
- const Zt = ku([Iu, co, xu, Su, Lu], "html"), Je = ku([Iu, fo, xu, Su, Lu], "svg");
1213
+ const Zt = Cu([Iu, co, xu, Su, Lu], "html"), Je = Cu([Iu, fo, xu, Su, Lu], "svg");
1214
1214
  function ai(e) {
1215
1215
  const t = String(e || "").trim();
1216
1216
  return t ? t.split(/[ \t\n\r\f]+/g) : [];
@@ -1227,11 +1227,11 @@ function bo() {
1227
1227
  si = 1;
1228
1228
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, u = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, a = /^[;\s]*/, o = /^\s+|\s+$/g, l = `
1229
1229
  `, c = "/", d = "*", f = "", m = "comment", h = "declaration";
1230
- function T(N, C) {
1230
+ function T(N, k) {
1231
1231
  if (typeof N != "string")
1232
1232
  throw new TypeError("First argument must be a string");
1233
1233
  if (!N) return [];
1234
- C = C || {};
1234
+ k = k || {};
1235
1235
  var L = 1, S = 1;
1236
1236
  function w(R) {
1237
1237
  var O = R.match(t);
@@ -1242,18 +1242,18 @@ function bo() {
1242
1242
  function q() {
1243
1243
  var R = { line: L, column: S };
1244
1244
  return function(O) {
1245
- return O.position = new k(R), F(), O;
1245
+ return O.position = new C(R), F(), O;
1246
1246
  };
1247
1247
  }
1248
- function k(R) {
1249
- this.start = R, this.end = { line: L, column: S }, this.source = C.source;
1248
+ function C(R) {
1249
+ this.start = R, this.end = { line: L, column: S }, this.source = k.source;
1250
1250
  }
1251
- k.prototype.content = N;
1251
+ C.prototype.content = N;
1252
1252
  function H(R) {
1253
1253
  var O = new Error(
1254
- C.source + ":" + L + ":" + S + ": " + R
1254
+ k.source + ":" + L + ":" + S + ": " + R
1255
1255
  );
1256
- if (O.reason = R, O.filename = C.source, O.line = L, O.column = S, O.source = N, !C.silent) throw O;
1256
+ if (O.reason = R, O.filename = k.source, O.line = L, O.column = S, O.source = N, !k.silent) throw O;
1257
1257
  }
1258
1258
  function z(R) {
1259
1259
  var O = R.exec(N);
@@ -1364,8 +1364,8 @@ function Ao() {
1364
1364
  }
1365
1365
  return r.default = r, wt = r, wt;
1366
1366
  }
1367
- var Co = Ao();
1368
- const ko = /* @__PURE__ */ Du(Co), Nn = Ru("end"), Ue = Ru("start");
1367
+ var ko = Ao();
1368
+ const Co = /* @__PURE__ */ Du(ko), Nn = Ru("end"), Ue = Ru("start");
1369
1369
  function Ru(e) {
1370
1370
  return t;
1371
1371
  function t(n) {
@@ -1685,7 +1685,7 @@ function Or(e, t) {
1685
1685
  function vo(e, t, n) {
1686
1686
  const r = yn(e.schema, t);
1687
1687
  if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
1688
- if (Array.isArray(n) && (n = r.commaSeparated ? Cu(n) : Ou(n)), r.property === "style") {
1688
+ if (Array.isArray(n) && (n = r.commaSeparated ? ku(n) : Ou(n)), r.property === "style") {
1689
1689
  let i = typeof n == "object" ? n : Uo(e, String(n));
1690
1690
  return e.stylePropertyNameCase === "css" && (i = zo(i)), ["style", i];
1691
1691
  }
@@ -1697,7 +1697,7 @@ function vo(e, t, n) {
1697
1697
  }
1698
1698
  function Uo(e, t) {
1699
1699
  try {
1700
- return ko(t, { reactCompat: !0 });
1700
+ return Co(t, { reactCompat: !0 });
1701
1701
  } catch (n) {
1702
1702
  if (e.ignoreInvalidStyle)
1703
1703
  return {};
@@ -1885,7 +1885,7 @@ function Uu(e, t) {
1885
1885
  function Pe(e) {
1886
1886
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
1887
1887
  }
1888
- const Ce = Ze(/[A-Za-z]/), ge = Ze(/[\dA-Za-z]/), Qo = Ze(/[#-'*+\--9=?A-Z^-~]/);
1888
+ const ke = Ze(/[A-Za-z]/), ge = Ze(/[\dA-Za-z]/), Qo = Ze(/[#-'*+\--9=?A-Z^-~]/);
1889
1889
  function gn(e) {
1890
1890
  return (
1891
1891
  // Special whitespace codes (which have negative values), C0 and Control
@@ -1992,17 +1992,17 @@ function el(e) {
1992
1992
  if (r++, t.containerState._closeFlow) {
1993
1993
  t.containerState._closeFlow = void 0, i && L();
1994
1994
  const w = t.events.length;
1995
- let q = w, k;
1995
+ let q = w, C;
1996
1996
  for (; q--; )
1997
1997
  if (t.events[q][0] === "exit" && t.events[q][1].type === "chunkFlow") {
1998
- k = t.events[q][1].end;
1998
+ C = t.events[q][1].end;
1999
1999
  break;
2000
2000
  }
2001
- C(r);
2001
+ k(r);
2002
2002
  let H = w;
2003
2003
  for (; H < t.events.length; )
2004
2004
  t.events[H][1].end = {
2005
- ...k
2005
+ ...C
2006
2006
  }, H++;
2007
2007
  return Le(t.events, q + 1, 0, t.events.slice(w)), t.events.length = H, c(S);
2008
2008
  }
@@ -2019,7 +2019,7 @@ function el(e) {
2019
2019
  return t.containerState = {}, e.check(Ei, d, f)(S);
2020
2020
  }
2021
2021
  function d(S) {
2022
- return i && L(), C(r), m(S);
2022
+ return i && L(), k(r), m(S);
2023
2023
  }
2024
2024
  function f(S) {
2025
2025
  return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, T(S);
@@ -2032,7 +2032,7 @@ function el(e) {
2032
2032
  }
2033
2033
  function T(S) {
2034
2034
  if (S === null) {
2035
- i && L(), C(0), e.consume(S);
2035
+ i && L(), k(0), e.consume(S);
2036
2036
  return;
2037
2037
  }
2038
2038
  return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -2043,7 +2043,7 @@ function el(e) {
2043
2043
  }
2044
2044
  function I(S) {
2045
2045
  if (S === null) {
2046
- N(e.exit("chunkFlow"), !0), C(0), e.consume(S);
2046
+ N(e.exit("chunkFlow"), !0), k(0), e.consume(S);
2047
2047
  return;
2048
2048
  }
2049
2049
  return G(S) ? (e.consume(S), N(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(S), I);
@@ -2051,13 +2051,13 @@ function el(e) {
2051
2051
  function N(S, w) {
2052
2052
  const q = t.sliceStream(S);
2053
2053
  if (w && q.push(null), S.previous = u, u && (u.next = S), u = S, i.defineSkip(S.start), i.write(q), t.parser.lazy[S.start.line]) {
2054
- let k = i.events.length;
2055
- for (; k--; )
2054
+ let C = i.events.length;
2055
+ for (; C--; )
2056
2056
  if (
2057
2057
  // The token starts before the line ending…
2058
- i.events[k][1].start.offset < a && // …and either is not ended yet…
2059
- (!i.events[k][1].end || // …or ends after it.
2060
- i.events[k][1].end.offset > a)
2058
+ i.events[C][1].start.offset < a && // …and either is not ended yet…
2059
+ (!i.events[C][1].end || // …or ends after it.
2060
+ i.events[C][1].end.offset > a)
2061
2061
  )
2062
2062
  return;
2063
2063
  const H = t.events.length;
@@ -2070,14 +2070,14 @@ function el(e) {
2070
2070
  }
2071
2071
  F = !0;
2072
2072
  }
2073
- for (C(r), k = H; k < t.events.length; )
2074
- t.events[k][1].end = {
2073
+ for (k(r), C = H; C < t.events.length; )
2074
+ t.events[C][1].end = {
2075
2075
  ...A
2076
- }, k++;
2077
- Le(t.events, z + 1, 0, t.events.slice(H)), t.events.length = k;
2076
+ }, C++;
2077
+ Le(t.events, z + 1, 0, t.events.slice(H)), t.events.length = C;
2078
2078
  }
2079
2079
  }
2080
- function C(S) {
2080
+ function k(S) {
2081
2081
  let w = n.length;
2082
2082
  for (; w-- > S; ) {
2083
2083
  const q = n[w];
@@ -2092,7 +2092,7 @@ function el(e) {
2092
2092
  function tl(e, t, n) {
2093
2093
  return ne(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2094
2094
  }
2095
- function Ct(e) {
2095
+ function kt(e) {
2096
2096
  if (e === null || ae(e) || lt(e))
2097
2097
  return 1;
2098
2098
  if (xn(e))
@@ -2168,7 +2168,7 @@ function nl(e, t) {
2168
2168
  return e;
2169
2169
  }
2170
2170
  function rl(e, t) {
2171
- const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Ct(r);
2171
+ const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = kt(r);
2172
2172
  let u;
2173
2173
  return a;
2174
2174
  function a(l) {
@@ -2177,7 +2177,7 @@ function rl(e, t) {
2177
2177
  function o(l) {
2178
2178
  if (l === u)
2179
2179
  return e.consume(l), o;
2180
- const c = e.exit("attentionSequence"), d = Ct(l), f = !d || d === 2 && i || n.includes(l), m = !i || i === 2 && d || n.includes(r);
2180
+ const c = e.exit("attentionSequence"), d = kt(l), f = !d || d === 2 && i || n.includes(l), m = !i || i === 2 && d || n.includes(r);
2181
2181
  return c._open = !!(u === 42 ? f : f && (i || !m)), c._close = !!(u === 42 ? m : m && (d || !f)), t(l);
2182
2182
  }
2183
2183
  }
@@ -2195,7 +2195,7 @@ function ul(e, t, n) {
2195
2195
  return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), u;
2196
2196
  }
2197
2197
  function u(h) {
2198
- return Ce(h) ? (e.consume(h), a) : h === 64 ? n(h) : c(h);
2198
+ return ke(h) ? (e.consume(h), a) : h === 64 ? n(h) : c(h);
2199
2199
  }
2200
2200
  function a(h) {
2201
2201
  return h === 43 || h === 45 || h === 46 || ge(h) ? (r = 1, o(h)) : c(h);
@@ -2326,67 +2326,67 @@ function dl(e, t, n) {
2326
2326
  };
2327
2327
  let u = 0, a = 0, o;
2328
2328
  return l;
2329
- function l(k) {
2330
- return c(k);
2329
+ function l(C) {
2330
+ return c(C);
2331
2331
  }
2332
- function c(k) {
2332
+ function c(C) {
2333
2333
  const H = r.events[r.events.length - 1];
2334
- return u = H && H[1].type === "linePrefix" ? H[2].sliceSerialize(H[1], !0).length : 0, o = k, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(k);
2334
+ return u = H && H[1].type === "linePrefix" ? H[2].sliceSerialize(H[1], !0).length : 0, o = C, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(C);
2335
2335
  }
2336
- function d(k) {
2337
- return k === o ? (a++, e.consume(k), d) : a < 3 ? n(k) : (e.exit("codeFencedFenceSequence"), ee(k) ? ne(e, f, "whitespace")(k) : f(k));
2336
+ function d(C) {
2337
+ return C === o ? (a++, e.consume(C), d) : a < 3 ? n(C) : (e.exit("codeFencedFenceSequence"), ee(C) ? ne(e, f, "whitespace")(C) : f(C));
2338
2338
  }
2339
- function f(k) {
2340
- return k === null || G(k) ? (e.exit("codeFencedFence"), r.interrupt ? t(k) : e.check(bi, I, w)(k)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2339
+ function f(C) {
2340
+ return C === null || G(C) ? (e.exit("codeFencedFence"), r.interrupt ? t(C) : e.check(bi, I, w)(C)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2341
2341
  contentType: "string"
2342
- }), m(k));
2342
+ }), m(C));
2343
2343
  }
2344
- function m(k) {
2345
- return k === null || G(k) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(k)) : ee(k) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ne(e, h, "whitespace")(k)) : k === 96 && k === o ? n(k) : (e.consume(k), m);
2344
+ function m(C) {
2345
+ return C === null || G(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(C)) : ee(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ne(e, h, "whitespace")(C)) : C === 96 && C === o ? n(C) : (e.consume(C), m);
2346
2346
  }
2347
- function h(k) {
2348
- return k === null || G(k) ? f(k) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
2347
+ function h(C) {
2348
+ return C === null || G(C) ? f(C) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
2349
2349
  contentType: "string"
2350
- }), T(k));
2350
+ }), T(C));
2351
2351
  }
2352
- function T(k) {
2353
- return k === null || G(k) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(k)) : k === 96 && k === o ? n(k) : (e.consume(k), T);
2352
+ function T(C) {
2353
+ return C === null || G(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(C)) : C === 96 && C === o ? n(C) : (e.consume(C), T);
2354
2354
  }
2355
- function I(k) {
2356
- return e.attempt(i, w, N)(k);
2355
+ function I(C) {
2356
+ return e.attempt(i, w, N)(C);
2357
2357
  }
2358
- function N(k) {
2359
- return e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), C;
2358
+ function N(C) {
2359
+ return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), k;
2360
2360
  }
2361
- function C(k) {
2362
- return u > 0 && ee(k) ? ne(e, L, "linePrefix", u + 1)(k) : L(k);
2361
+ function k(C) {
2362
+ return u > 0 && ee(C) ? ne(e, L, "linePrefix", u + 1)(C) : L(C);
2363
2363
  }
2364
- function L(k) {
2365
- return k === null || G(k) ? e.check(bi, I, w)(k) : (e.enter("codeFlowValue"), S(k));
2364
+ function L(C) {
2365
+ return C === null || G(C) ? e.check(bi, I, w)(C) : (e.enter("codeFlowValue"), S(C));
2366
2366
  }
2367
- function S(k) {
2368
- return k === null || G(k) ? (e.exit("codeFlowValue"), L(k)) : (e.consume(k), S);
2367
+ function S(C) {
2368
+ return C === null || G(C) ? (e.exit("codeFlowValue"), L(C)) : (e.consume(C), S);
2369
2369
  }
2370
- function w(k) {
2371
- return e.exit("codeFenced"), t(k);
2370
+ function w(C) {
2371
+ return e.exit("codeFenced"), t(C);
2372
2372
  }
2373
- function q(k, H, z) {
2373
+ function q(C, H, z) {
2374
2374
  let F = 0;
2375
2375
  return A;
2376
2376
  function A(O) {
2377
- return k.enter("lineEnding"), k.consume(O), k.exit("lineEnding"), M;
2377
+ return C.enter("lineEnding"), C.consume(O), C.exit("lineEnding"), M;
2378
2378
  }
2379
2379
  function M(O) {
2380
- return k.enter("codeFencedFence"), ee(O) ? ne(k, V, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : V(O);
2380
+ return C.enter("codeFencedFence"), ee(O) ? ne(C, V, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : V(O);
2381
2381
  }
2382
2382
  function V(O) {
2383
- return O === o ? (k.enter("codeFencedFenceSequence"), X(O)) : z(O);
2383
+ return O === o ? (C.enter("codeFencedFenceSequence"), X(O)) : z(O);
2384
2384
  }
2385
2385
  function X(O) {
2386
- return O === o ? (F++, k.consume(O), X) : F >= a ? (k.exit("codeFencedFenceSequence"), ee(O) ? ne(k, R, "whitespace")(O) : R(O)) : z(O);
2386
+ return O === o ? (F++, C.consume(O), X) : F >= a ? (C.exit("codeFencedFenceSequence"), ee(O) ? ne(C, R, "whitespace")(O) : R(O)) : z(O);
2387
2387
  }
2388
2388
  function R(O) {
2389
- return O === null || G(O) ? (k.exit("codeFencedFence"), H(O)) : z(O);
2389
+ return O === null || G(O) ? (C.exit("codeFencedFence"), H(O)) : z(O);
2390
2390
  }
2391
2391
  }
2392
2392
  }
@@ -2662,7 +2662,7 @@ function Vu(e) {
2662
2662
  for (; ++u < l.length && l[u][1].type !== "content"; )
2663
2663
  l[u][1].type === "chunkText" && (l[u][1]._isInFirstContentOfListItem = !0, u++);
2664
2664
  if (r[0] === "enter")
2665
- r[1].contentType && (Object.assign(t, Cl(d, n)), n = t[n], c = !0);
2665
+ r[1].contentType && (Object.assign(t, kl(d, n)), n = t[n], c = !0);
2666
2666
  else if (r[1]._container) {
2667
2667
  for (u = n, i = void 0; u--; )
2668
2668
  if (a = d.get(u), a[1].type === "lineEnding" || a[1].type === "lineEndingBlank")
@@ -2675,7 +2675,7 @@ function Vu(e) {
2675
2675
  }
2676
2676
  return Le(e, 0, Number.POSITIVE_INFINITY, d.slice(0)), !c;
2677
2677
  }
2678
- function Cl(e, t) {
2678
+ function kl(e, t) {
2679
2679
  const n = e.get(t)[1], r = e.get(t)[2];
2680
2680
  let i = t - 1;
2681
2681
  const u = [];
@@ -2693,14 +2693,14 @@ function Cl(e, t) {
2693
2693
  // Find a void token that includes a break.
2694
2694
  o[m][0] === "exit" && o[m - 1][0] === "enter" && o[m][1].type === o[m - 1][1].type && o[m][1].start.line !== o[m][1].end.line && (I = m + 1, N.push(I), h._tokenizer = void 0, h.previous = void 0, h = h.next);
2695
2695
  for (a.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : N.pop(), m = N.length; m--; ) {
2696
- const C = o.slice(N[m], N[m + 1]), L = u.pop();
2697
- l.push([L, L + C.length - 1]), e.splice(L, 2, C);
2696
+ const k = o.slice(N[m], N[m + 1]), L = u.pop();
2697
+ l.push([L, L + k.length - 1]), e.splice(L, 2, k);
2698
2698
  }
2699
2699
  for (l.reverse(), m = -1; ++m < l.length; )
2700
2700
  c[T + l[m][0]] = T + l[m][1], T += l[m][1] - l[m][0] - 1;
2701
2701
  return c;
2702
2702
  }
2703
- const kl = {
2703
+ const Cl = {
2704
2704
  resolve: yl,
2705
2705
  tokenize: Nl
2706
2706
  }, Il = {
@@ -2748,27 +2748,27 @@ function Wu(e, t, n, r, i, u, a, o, l) {
2748
2748
  const c = l || Number.POSITIVE_INFINITY;
2749
2749
  let d = 0;
2750
2750
  return f;
2751
- function f(C) {
2752
- return C === 60 ? (e.enter(r), e.enter(i), e.enter(u), e.consume(C), e.exit(u), m) : C === null || C === 32 || C === 41 || gn(C) ? n(C) : (e.enter(r), e.enter(a), e.enter(o), e.enter("chunkString", {
2751
+ function f(k) {
2752
+ return k === 60 ? (e.enter(r), e.enter(i), e.enter(u), e.consume(k), e.exit(u), m) : k === null || k === 32 || k === 41 || gn(k) ? n(k) : (e.enter(r), e.enter(a), e.enter(o), e.enter("chunkString", {
2753
2753
  contentType: "string"
2754
- }), I(C));
2754
+ }), I(k));
2755
2755
  }
2756
- function m(C) {
2757
- return C === 62 ? (e.enter(u), e.consume(C), e.exit(u), e.exit(i), e.exit(r), t) : (e.enter(o), e.enter("chunkString", {
2756
+ function m(k) {
2757
+ return k === 62 ? (e.enter(u), e.consume(k), e.exit(u), e.exit(i), e.exit(r), t) : (e.enter(o), e.enter("chunkString", {
2758
2758
  contentType: "string"
2759
- }), h(C));
2759
+ }), h(k));
2760
2760
  }
2761
- function h(C) {
2762
- return C === 62 ? (e.exit("chunkString"), e.exit(o), m(C)) : C === null || C === 60 || G(C) ? n(C) : (e.consume(C), C === 92 ? T : h);
2761
+ function h(k) {
2762
+ return k === 62 ? (e.exit("chunkString"), e.exit(o), m(k)) : k === null || k === 60 || G(k) ? n(k) : (e.consume(k), k === 92 ? T : h);
2763
2763
  }
2764
- function T(C) {
2765
- return C === 60 || C === 62 || C === 92 ? (e.consume(C), h) : h(C);
2764
+ function T(k) {
2765
+ return k === 60 || k === 62 || k === 92 ? (e.consume(k), h) : h(k);
2766
2766
  }
2767
- function I(C) {
2768
- return !d && (C === null || C === 41 || ae(C)) ? (e.exit("chunkString"), e.exit(o), e.exit(a), e.exit(r), t(C)) : d < c && C === 40 ? (e.consume(C), d++, I) : C === 41 ? (e.consume(C), d--, I) : C === null || C === 32 || C === 40 || gn(C) ? n(C) : (e.consume(C), C === 92 ? N : I);
2767
+ function I(k) {
2768
+ return !d && (k === null || k === 41 || ae(k)) ? (e.exit("chunkString"), e.exit(o), e.exit(a), e.exit(r), t(k)) : d < c && k === 40 ? (e.consume(k), d++, I) : k === 41 ? (e.consume(k), d--, I) : k === null || k === 32 || k === 40 || gn(k) ? n(k) : (e.consume(k), k === 92 ? N : I);
2769
2769
  }
2770
- function N(C) {
2771
- return C === 40 || C === 41 || C === 92 ? (e.consume(C), I) : I(C);
2770
+ function N(k) {
2771
+ return k === 40 || k === 41 || k === 92 ? (e.consume(k), I) : I(k);
2772
2772
  }
2773
2773
  }
2774
2774
  function ju(e, t, n, r, i, u) {
@@ -3038,10 +3038,10 @@ function Yl(e, t, n) {
3038
3038
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(_), f;
3039
3039
  }
3040
3040
  function f(_) {
3041
- return _ === 33 ? (e.consume(_), m) : _ === 47 ? (e.consume(_), u = !0, I) : _ === 63 ? (e.consume(_), i = 3, r.interrupt ? t : g) : Ce(_) ? (e.consume(_), a = String.fromCharCode(_), N) : n(_);
3041
+ return _ === 33 ? (e.consume(_), m) : _ === 47 ? (e.consume(_), u = !0, I) : _ === 63 ? (e.consume(_), i = 3, r.interrupt ? t : g) : ke(_) ? (e.consume(_), a = String.fromCharCode(_), N) : n(_);
3042
3042
  }
3043
3043
  function m(_) {
3044
- return _ === 45 ? (e.consume(_), i = 2, h) : _ === 91 ? (e.consume(_), i = 5, o = 0, T) : Ce(_) ? (e.consume(_), i = 4, r.interrupt ? t : g) : n(_);
3044
+ return _ === 45 ? (e.consume(_), i = 2, h) : _ === 91 ? (e.consume(_), i = 5, o = 0, T) : ke(_) ? (e.consume(_), i = 4, r.interrupt ? t : g) : n(_);
3045
3045
  }
3046
3046
  function h(_) {
3047
3047
  return _ === 45 ? (e.consume(_), r.interrupt ? t : g) : n(_);
@@ -3051,32 +3051,32 @@ function Yl(e, t, n) {
3051
3051
  return _ === Re.charCodeAt(o++) ? (e.consume(_), o === Re.length ? r.interrupt ? t : V : T) : n(_);
3052
3052
  }
3053
3053
  function I(_) {
3054
- return Ce(_) ? (e.consume(_), a = String.fromCharCode(_), N) : n(_);
3054
+ return ke(_) ? (e.consume(_), a = String.fromCharCode(_), N) : n(_);
3055
3055
  }
3056
3056
  function N(_) {
3057
3057
  if (_ === null || _ === 47 || _ === 62 || ae(_)) {
3058
3058
  const Re = _ === 47, et = a.toLowerCase();
3059
- return !Re && !u && _i.includes(et) ? (i = 1, r.interrupt ? t(_) : V(_)) : Bl.includes(a.toLowerCase()) ? (i = 6, Re ? (e.consume(_), C) : r.interrupt ? t(_) : V(_)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(_) : u ? L(_) : S(_));
3059
+ return !Re && !u && _i.includes(et) ? (i = 1, r.interrupt ? t(_) : V(_)) : Bl.includes(a.toLowerCase()) ? (i = 6, Re ? (e.consume(_), k) : r.interrupt ? t(_) : V(_)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(_) : u ? L(_) : S(_));
3060
3060
  }
3061
3061
  return _ === 45 || ge(_) ? (e.consume(_), a += String.fromCharCode(_), N) : n(_);
3062
3062
  }
3063
- function C(_) {
3063
+ function k(_) {
3064
3064
  return _ === 62 ? (e.consume(_), r.interrupt ? t : V) : n(_);
3065
3065
  }
3066
3066
  function L(_) {
3067
3067
  return ee(_) ? (e.consume(_), L) : A(_);
3068
3068
  }
3069
3069
  function S(_) {
3070
- return _ === 47 ? (e.consume(_), A) : _ === 58 || _ === 95 || Ce(_) ? (e.consume(_), w) : ee(_) ? (e.consume(_), S) : A(_);
3070
+ return _ === 47 ? (e.consume(_), A) : _ === 58 || _ === 95 || ke(_) ? (e.consume(_), w) : ee(_) ? (e.consume(_), S) : A(_);
3071
3071
  }
3072
3072
  function w(_) {
3073
3073
  return _ === 45 || _ === 46 || _ === 58 || _ === 95 || ge(_) ? (e.consume(_), w) : q(_);
3074
3074
  }
3075
3075
  function q(_) {
3076
- return _ === 61 ? (e.consume(_), k) : ee(_) ? (e.consume(_), q) : S(_);
3076
+ return _ === 61 ? (e.consume(_), C) : ee(_) ? (e.consume(_), q) : S(_);
3077
3077
  }
3078
- function k(_) {
3079
- return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? n(_) : _ === 34 || _ === 39 ? (e.consume(_), l = _, H) : ee(_) ? (e.consume(_), k) : z(_);
3078
+ function C(_) {
3079
+ return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? n(_) : _ === 34 || _ === 39 ? (e.consume(_), l = _, H) : ee(_) ? (e.consume(_), C) : z(_);
3080
3080
  }
3081
3081
  function H(_) {
3082
3082
  return _ === l ? (e.consume(_), l = null, F) : _ === null || G(_) ? n(_) : (e.consume(_), H);
@@ -3094,10 +3094,10 @@ function Yl(e, t, n) {
3094
3094
  return _ === null || G(_) ? V(_) : ee(_) ? (e.consume(_), M) : n(_);
3095
3095
  }
3096
3096
  function V(_) {
3097
- return _ === 45 && i === 2 ? (e.consume(_), W) : _ === 60 && i === 1 ? (e.consume(_), j) : _ === 62 && i === 4 ? (e.consume(_), he) : _ === 63 && i === 3 ? (e.consume(_), g) : _ === 93 && i === 5 ? (e.consume(_), Q) : G(_) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(vl, ke, X)(_)) : _ === null || G(_) ? (e.exit("htmlFlowData"), X(_)) : (e.consume(_), V);
3097
+ return _ === 45 && i === 2 ? (e.consume(_), W) : _ === 60 && i === 1 ? (e.consume(_), j) : _ === 62 && i === 4 ? (e.consume(_), he) : _ === 63 && i === 3 ? (e.consume(_), g) : _ === 93 && i === 5 ? (e.consume(_), Q) : G(_) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(vl, Ce, X)(_)) : _ === null || G(_) ? (e.exit("htmlFlowData"), X(_)) : (e.consume(_), V);
3098
3098
  }
3099
3099
  function X(_) {
3100
- return e.check(Ul, R, ke)(_);
3100
+ return e.check(Ul, R, Ce)(_);
3101
3101
  }
3102
3102
  function R(_) {
3103
3103
  return e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), O;
@@ -3116,7 +3116,7 @@ function Yl(e, t, n) {
3116
3116
  const Re = a.toLowerCase();
3117
3117
  return _i.includes(Re) ? (e.consume(_), he) : V(_);
3118
3118
  }
3119
- return Ce(_) && a.length < 8 ? (e.consume(_), a += String.fromCharCode(_), Z) : V(_);
3119
+ return ke(_) && a.length < 8 ? (e.consume(_), a += String.fromCharCode(_), Z) : V(_);
3120
3120
  }
3121
3121
  function Q(_) {
3122
3122
  return _ === 93 ? (e.consume(_), g) : V(_);
@@ -3125,9 +3125,9 @@ function Yl(e, t, n) {
3125
3125
  return _ === 62 ? (e.consume(_), he) : _ === 45 && i === 2 ? (e.consume(_), g) : V(_);
3126
3126
  }
3127
3127
  function he(_) {
3128
- return _ === null || G(_) ? (e.exit("htmlFlowData"), ke(_)) : (e.consume(_), he);
3128
+ return _ === null || G(_) ? (e.exit("htmlFlowData"), Ce(_)) : (e.consume(_), he);
3129
3129
  }
3130
- function ke(_) {
3130
+ function Ce(_) {
3131
3131
  return e.exit("htmlFlow"), t(_);
3132
3132
  }
3133
3133
  }
@@ -3159,10 +3159,10 @@ function jl(e, t, n) {
3159
3159
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(g), l;
3160
3160
  }
3161
3161
  function l(g) {
3162
- return g === 33 ? (e.consume(g), c) : g === 47 ? (e.consume(g), q) : g === 63 ? (e.consume(g), S) : Ce(g) ? (e.consume(g), z) : n(g);
3162
+ return g === 33 ? (e.consume(g), c) : g === 47 ? (e.consume(g), q) : g === 63 ? (e.consume(g), S) : ke(g) ? (e.consume(g), z) : n(g);
3163
3163
  }
3164
3164
  function c(g) {
3165
- return g === 45 ? (e.consume(g), d) : g === 91 ? (e.consume(g), u = 0, T) : Ce(g) ? (e.consume(g), L) : n(g);
3165
+ return g === 45 ? (e.consume(g), d) : g === 91 ? (e.consume(g), u = 0, T) : ke(g) ? (e.consume(g), L) : n(g);
3166
3166
  }
3167
3167
  function d(g) {
3168
3168
  return g === 45 ? (e.consume(g), h) : n(g);
@@ -3184,10 +3184,10 @@ function jl(e, t, n) {
3184
3184
  return g === null ? n(g) : g === 93 ? (e.consume(g), N) : G(g) ? (a = I, j(g)) : (e.consume(g), I);
3185
3185
  }
3186
3186
  function N(g) {
3187
- return g === 93 ? (e.consume(g), C) : I(g);
3187
+ return g === 93 ? (e.consume(g), k) : I(g);
3188
3188
  }
3189
- function C(g) {
3190
- return g === 62 ? W(g) : g === 93 ? (e.consume(g), C) : I(g);
3189
+ function k(g) {
3190
+ return g === 62 ? W(g) : g === 93 ? (e.consume(g), k) : I(g);
3191
3191
  }
3192
3192
  function L(g) {
3193
3193
  return g === null || g === 62 ? W(g) : G(g) ? (a = L, j(g)) : (e.consume(g), L);
@@ -3199,10 +3199,10 @@ function jl(e, t, n) {
3199
3199
  return g === 62 ? W(g) : S(g);
3200
3200
  }
3201
3201
  function q(g) {
3202
- return Ce(g) ? (e.consume(g), k) : n(g);
3202
+ return ke(g) ? (e.consume(g), C) : n(g);
3203
3203
  }
3204
- function k(g) {
3205
- return g === 45 || ge(g) ? (e.consume(g), k) : H(g);
3204
+ function C(g) {
3205
+ return g === 45 || ge(g) ? (e.consume(g), C) : H(g);
3206
3206
  }
3207
3207
  function H(g) {
3208
3208
  return G(g) ? (a = H, j(g)) : ee(g) ? (e.consume(g), H) : W(g);
@@ -3211,7 +3211,7 @@ function jl(e, t, n) {
3211
3211
  return g === 45 || ge(g) ? (e.consume(g), z) : g === 47 || g === 62 || ae(g) ? F(g) : n(g);
3212
3212
  }
3213
3213
  function F(g) {
3214
- return g === 47 ? (e.consume(g), W) : g === 58 || g === 95 || Ce(g) ? (e.consume(g), A) : G(g) ? (a = F, j(g)) : ee(g) ? (e.consume(g), F) : W(g);
3214
+ return g === 47 ? (e.consume(g), W) : g === 58 || g === 95 || ke(g) ? (e.consume(g), A) : G(g) ? (a = F, j(g)) : ee(g) ? (e.consume(g), F) : W(g);
3215
3215
  }
3216
3216
  function A(g) {
3217
3217
  return g === 45 || g === 46 || g === 58 || g === 95 || ge(g) ? (e.consume(g), A) : M(g);
@@ -3592,7 +3592,7 @@ function bc(e) {
3592
3592
  en,
3593
3593
  r,
3594
3594
  // Try to parse initial flow (essentially, only code).
3595
- e.attempt(this.parser.constructs.flowInitial, i, ne(e, e.attempt(this.parser.constructs.flow, i, e.attempt(kl, i)), "linePrefix"))
3595
+ e.attempt(this.parser.constructs.flowInitial, i, ne(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Cl, i)), "linePrefix"))
3596
3596
  );
3597
3597
  return n;
3598
3598
  function r(u) {
@@ -3615,7 +3615,7 @@ const gc = {
3615
3615
  }, _c = Qu("string"), Ac = Qu("text");
3616
3616
  function Qu(e) {
3617
3617
  return {
3618
- resolveAll: $u(e === "text" ? Cc : void 0),
3618
+ resolveAll: $u(e === "text" ? kc : void 0),
3619
3619
  tokenize: t
3620
3620
  };
3621
3621
  function t(n) {
@@ -3658,7 +3658,7 @@ function $u(e) {
3658
3658
  return e ? e(n, r) : n;
3659
3659
  }
3660
3660
  }
3661
- function Cc(e, t) {
3661
+ function kc(e, t) {
3662
3662
  let n = 0;
3663
3663
  for (; ++n <= e.length; )
3664
3664
  if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
@@ -3700,7 +3700,7 @@ function Cc(e, t) {
3700
3700
  }
3701
3701
  return e;
3702
3702
  }
3703
- const kc = {
3703
+ const Cc = {
3704
3704
  42: ye,
3705
3705
  43: ye,
3706
3706
  45: ye,
@@ -3757,7 +3757,7 @@ const kc = {
3757
3757
  attentionMarkers: Oc,
3758
3758
  contentInitial: Ic,
3759
3759
  disable: Dc,
3760
- document: kc,
3760
+ document: Cc,
3761
3761
  flow: Nc,
3762
3762
  flowInitial: yc,
3763
3763
  insideSpan: Lc,
@@ -3776,11 +3776,11 @@ function wc(e, t, n) {
3776
3776
  let a = [], o = [];
3777
3777
  const l = {
3778
3778
  attempt: H(q),
3779
- check: H(k),
3779
+ check: H(C),
3780
3780
  consume: L,
3781
3781
  enter: S,
3782
3782
  exit: w,
3783
- interrupt: H(k, {
3783
+ interrupt: H(C, {
3784
3784
  interrupt: !0
3785
3785
  })
3786
3786
  }, c = {
@@ -3831,12 +3831,12 @@ function wc(e, t, n) {
3831
3831
  const V = a[r._index];
3832
3832
  if (typeof V == "string")
3833
3833
  for (M = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === M && r._bufferIndex < V.length; )
3834
- C(V.charCodeAt(r._bufferIndex));
3834
+ k(V.charCodeAt(r._bufferIndex));
3835
3835
  else
3836
- C(V);
3836
+ k(V);
3837
3837
  }
3838
3838
  }
3839
- function C(M) {
3839
+ function k(M) {
3840
3840
  d = d(M);
3841
3841
  }
3842
3842
  function L(M) {
@@ -3856,7 +3856,7 @@ function wc(e, t, n) {
3856
3856
  function q(M, V) {
3857
3857
  z(M, V.from);
3858
3858
  }
3859
- function k(M, V) {
3859
+ function C(M, V) {
3860
3860
  V.restore();
3861
3861
  }
3862
3862
  function H(M, V) {
@@ -3865,10 +3865,10 @@ function wc(e, t, n) {
3865
3865
  let j, Z, Q, g;
3866
3866
  return Array.isArray(R) ? (
3867
3867
  /* c8 ignore next 1 */
3868
- ke(R)
3868
+ Ce(R)
3869
3869
  ) : "tokenize" in R ? (
3870
3870
  // Looks like a construct.
3871
- ke([
3871
+ Ce([
3872
3872
  /** @type {Construct} */
3873
3873
  R
3874
3874
  ])
@@ -3882,10 +3882,10 @@ function wc(e, t, n) {
3882
3882
  ...Array.isArray(mt) ? mt : mt ? [mt] : [],
3883
3883
  ...Array.isArray(pt) ? pt : pt ? [pt] : []
3884
3884
  ];
3885
- return ke(an)(je);
3885
+ return Ce(an)(je);
3886
3886
  }
3887
3887
  }
3888
- function ke(be) {
3888
+ function Ce(be) {
3889
3889
  return j = be, Z = 0, be.length === 0 ? W : _(be[Z]);
3890
3890
  }
3891
3891
  function _(be) {
@@ -4008,7 +4008,7 @@ function Bc(e) {
4008
4008
  ;
4009
4009
  return e;
4010
4010
  }
4011
- const Ci = /[\0\t\n\r]/g;
4011
+ const ki = /[\0\t\n\r]/g;
4012
4012
  function Hc() {
4013
4013
  let e = 1, t = "", n = !0, r;
4014
4014
  return i;
@@ -4016,7 +4016,7 @@ function Hc() {
4016
4016
  const l = [];
4017
4017
  let c, d, f, m, h;
4018
4018
  for (u = t + (typeof u == "string" ? u.toString() : new TextDecoder(a || void 0).decode(u)), f = 0, t = "", n && (u.charCodeAt(0) === 65279 && f++, n = void 0); f < u.length; ) {
4019
- if (Ci.lastIndex = f, c = Ci.exec(u), m = c && c.index !== void 0 ? c.index : u.length, h = u.charCodeAt(m), !c) {
4019
+ if (ki.lastIndex = f, c = ki.exec(u), m = c && c.index !== void 0 ? c.index : u.length, h = u.charCodeAt(m), !c) {
4020
4020
  t = u.slice(f);
4021
4021
  break;
4022
4022
  }
@@ -4125,7 +4125,7 @@ function qc(e) {
4125
4125
  codeFencedFenceInfo: h,
4126
4126
  codeFencedFenceMeta: T,
4127
4127
  codeFlowValue: A,
4128
- codeIndented: l(C),
4128
+ codeIndented: l(k),
4129
4129
  codeText: l(O),
4130
4130
  codeTextData: A,
4131
4131
  data: A,
@@ -4152,10 +4152,10 @@ function qc(e) {
4152
4152
  referenceString: Re,
4153
4153
  resourceDestinationString: g,
4154
4154
  resourceTitleString: he,
4155
- resource: ke,
4155
+ resource: Ce,
4156
4156
  setextHeading: l(z),
4157
4157
  setextHeadingLineSequence: H,
4158
- setextHeadingText: k,
4158
+ setextHeadingText: C,
4159
4159
  strong: l(),
4160
4160
  thematicBreak: l()
4161
4161
  }
@@ -4195,7 +4195,7 @@ function qc(e) {
4195
4195
  }
4196
4196
  if (K.tokenStack.length > 0) {
4197
4197
  const we = K.tokenStack[K.tokenStack.length - 1];
4198
- (we[1] || ki).call(K, void 0, we[0]);
4198
+ (we[1] || Ci).call(K, void 0, we[0]);
4199
4199
  }
4200
4200
  for (Y.position = {
4201
4201
  start: Ge(D.length > 0 ? D[0][1].start : {
@@ -4290,7 +4290,7 @@ function qc(e) {
4290
4290
  function c(D, Y) {
4291
4291
  const K = this.stack.pop(), te = this.tokenStack.pop();
4292
4292
  if (te)
4293
- te[0].type !== D.type && (Y ? Y.call(this, D, te[0]) : (te[1] || ki).call(this, D, te[0]));
4293
+ te[0].type !== D.type && (Y ? Y.call(this, D, te[0]) : (te[1] || Ci).call(this, D, te[0]));
4294
4294
  else throw new Error("Cannot close `" + D.type + "` (" + vt({
4295
4295
  start: D.start,
4296
4296
  end: D.end
@@ -4324,7 +4324,7 @@ function qc(e) {
4324
4324
  const D = this.resume(), Y = this.stack[this.stack.length - 1];
4325
4325
  Y.value = D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
4326
4326
  }
4327
- function C() {
4327
+ function k() {
4328
4328
  const D = this.resume(), Y = this.stack[this.stack.length - 1];
4329
4329
  Y.value = D.replace(/(\r?\n|\r)$/g, "");
4330
4330
  }
@@ -4347,7 +4347,7 @@ function qc(e) {
4347
4347
  Y.depth = K;
4348
4348
  }
4349
4349
  }
4350
- function k() {
4350
+ function C() {
4351
4351
  this.data.setextHeadingSlurpLineEnding = !0;
4352
4352
  }
4353
4353
  function H(D) {
@@ -4432,7 +4432,7 @@ function qc(e) {
4432
4432
  const D = this.resume(), Y = this.stack[this.stack.length - 1];
4433
4433
  Y.title = D;
4434
4434
  }
4435
- function ke() {
4435
+ function Ce() {
4436
4436
  this.data.inReference = void 0;
4437
4437
  }
4438
4438
  function _() {
@@ -4614,7 +4614,7 @@ function Vc(e, t) {
4614
4614
  }
4615
4615
  }
4616
4616
  }
4617
- function ki(e, t) {
4617
+ function Ci(e, t) {
4618
4618
  throw e ? new Error("Cannot close `" + e.type + "` (" + vt({
4619
4619
  start: e.start,
4620
4620
  end: e.end
@@ -5071,7 +5071,7 @@ const ea = -1, Ln = 0, zt = 1, _n = 2, Pr = 3, Mr = 4, Fr = 5, Br = 6, ta = 7, n
5071
5071
  return n(xi(u, a), i);
5072
5072
  };
5073
5073
  return r;
5074
- }, Si = (e) => g0(/* @__PURE__ */ new Map(), e)(0), ut = "", { toString: _0 } = {}, { keys: A0, is: C0 } = Object, Mt = (e) => {
5074
+ }, Si = (e) => g0(/* @__PURE__ */ new Map(), e)(0), ut = "", { toString: _0 } = {}, { keys: A0, is: k0 } = Object, Mt = (e) => {
5075
5075
  const t = typeof e;
5076
5076
  if (t !== "object" || !e)
5077
5077
  return [Ln, t];
@@ -5093,7 +5093,7 @@ const ea = -1, Ln = 0, zt = 1, _n = 2, Pr = 3, Mr = 4, Fr = 5, Br = 6, ta = 7, n
5093
5093
  return [zt, n];
5094
5094
  }
5095
5095
  return n.includes("Array") ? [zt, n] : e instanceof Error ? [ta, e.name || "Error"] : [_n, n];
5096
- }, on = ([e, t]) => e === Ln && (t === "function" || t === "symbol"), k0 = (e, t, n, r) => {
5096
+ }, on = ([e, t]) => e === Ln && (t === "function" || t === "symbol"), C0 = (e, t, n, r) => {
5097
5097
  const i = (a, o) => {
5098
5098
  const l = r.push(a) - 1;
5099
5099
  return n.set(o, l), l;
@@ -5109,7 +5109,7 @@ const ea = -1, Ln = 0, zt = 1, _n = 2, Pr = 3, Mr = 4, Fr = 5, Br = 6, ta = 7, n
5109
5109
  o = na, d = a.toString();
5110
5110
  break;
5111
5111
  case "number":
5112
- if (!a && C0(a, -0))
5112
+ if (!a && k0(a, -0))
5113
5113
  return r.push(["-0"]) - 1;
5114
5114
  break;
5115
5115
  case "function":
@@ -5175,7 +5175,7 @@ const ea = -1, Ln = 0, zt = 1, _n = 2, Pr = 3, Mr = 4, Fr = 5, Br = 6, ta = 7, n
5175
5175
  return u;
5176
5176
  }, Li = (e, { json: t, lossy: n } = {}) => {
5177
5177
  const r = [];
5178
- return k0(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5178
+ return C0(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5179
5179
  }, ct = typeof structuredClone == "function" ? (
5180
5180
  /* c8 ignore start */
5181
5181
  (e, t) => t && ("json" in t || "lossy" in t) ? Si(Li(e, t)) : structuredClone(e)
@@ -5227,13 +5227,13 @@ function N0(e) {
5227
5227
  L && L.type === "text" ? L.value += " " : N.children.push({ type: "text", value: " " }), N.children.push(...T);
5228
5228
  } else
5229
5229
  d.push(...T);
5230
- const C = {
5230
+ const k = {
5231
5231
  type: "element",
5232
5232
  tagName: "li",
5233
5233
  properties: { id: t + "fn-" + m },
5234
5234
  children: e.wrap(d, !0)
5235
5235
  };
5236
- e.patch(c, C), o.push(C);
5236
+ e.patch(c, k), o.push(k);
5237
5237
  }
5238
5238
  if (o.length !== 0)
5239
5239
  return {
@@ -5380,13 +5380,13 @@ function ua(e, t, n, r) {
5380
5380
  if ((!t || u(l, c, d[d.length - 1] || void 0)) && (h = P0(n(l, d)), h[0] === hr))
5381
5381
  return h;
5382
5382
  if ("children" in l && l.children) {
5383
- const C = (
5383
+ const k = (
5384
5384
  /** @type {UnistParent} */
5385
5385
  l
5386
5386
  );
5387
- if (C.children && h[0] !== w0)
5388
- for (I = (r ? C.children.length : -1) + a, N = d.concat(C); I > -1 && I < C.children.length; ) {
5389
- const L = C.children[I];
5387
+ if (k.children && h[0] !== w0)
5388
+ for (I = (r ? k.children.length : -1) + a, N = d.concat(k); I > -1 && I < k.children.length; ) {
5389
+ const L = k.children[I];
5390
5390
  if (T = o(L, I, N)(), T[0] === hr)
5391
5391
  return T;
5392
5392
  I = typeof T[1] == "number" ? T[1] : I + a;
@@ -5434,8 +5434,8 @@ function F0(e, t) {
5434
5434
  return h(o, d, f);
5435
5435
  if (o.options.passThrough && o.options.passThrough.includes(m)) {
5436
5436
  if ("children" in d) {
5437
- const { children: I, ...N } = d, C = ct(N);
5438
- return C.children = o.all(d), C;
5437
+ const { children: I, ...N } = d, k = ct(N);
5438
+ return k.children = o.all(d), k;
5439
5439
  }
5440
5440
  return ct(d);
5441
5441
  }
@@ -5558,8 +5558,8 @@ function Y0() {
5558
5558
  return c[d];
5559
5559
  };
5560
5560
  return Yn = function l() {
5561
- var c, d, f, m, h, T, I = arguments[0], N = 1, C = arguments.length, L = !1;
5562
- for (typeof I == "boolean" && (L = I, I = arguments[1] || {}, N = 2), (I == null || typeof I != "object" && typeof I != "function") && (I = {}); N < C; ++N)
5561
+ var c, d, f, m, h, T, I = arguments[0], N = 1, k = arguments.length, L = !1;
5562
+ for (typeof I == "boolean" && (L = I, I = arguments[1] || {}, N = 2), (I == null || typeof I != "object" && typeof I != "function") && (I = {}); N < k; ++N)
5563
5563
  if (c = arguments[N], c != null)
5564
5564
  for (d in c)
5565
5565
  f = o(I, d), m = o(c, d), I !== m && (L && m && (u(m) || (h = i(m))) ? (h ? (h = !1, T = f && i(f) ? f : []) : T = f && u(f) ? f : {}, a(I, { name: d, newValue: l(L, T, m) })) : typeof m < "u" && a(I, { name: d, newValue: m }));
@@ -6845,7 +6845,7 @@ function gf(e, t, n) {
6845
6845
  const f = d[d.length - 1], m = u[a][0], h = u[a][1];
6846
6846
  let T = 0;
6847
6847
  const N = f.children.indexOf(c);
6848
- let C = !1, L = [];
6848
+ let k = !1, L = [];
6849
6849
  m.lastIndex = 0;
6850
6850
  let S = m.exec(c.value);
6851
6851
  for (; S; ) {
@@ -6854,15 +6854,15 @@ function gf(e, t, n) {
6854
6854
  input: S.input,
6855
6855
  stack: [...d, c]
6856
6856
  };
6857
- let k = h(...S, q);
6858
- if (typeof k == "string" && (k = k.length > 0 ? { type: "text", value: k } : void 0), k === !1 ? m.lastIndex = w + 1 : (T !== w && L.push({
6857
+ let C = h(...S, q);
6858
+ if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? m.lastIndex = w + 1 : (T !== w && L.push({
6859
6859
  type: "text",
6860
6860
  value: c.value.slice(T, w)
6861
- }), Array.isArray(k) ? L.push(...k) : k && L.push(k), T = w + S[0].length, C = !0), !m.global)
6861
+ }), Array.isArray(C) ? L.push(...C) : C && L.push(C), T = w + S[0].length, k = !0), !m.global)
6862
6862
  break;
6863
6863
  S = m.exec(c.value);
6864
6864
  }
6865
- return C ? (T < c.value.length && L.push({ type: "text", value: c.value.slice(T) }), f.children.splice(N, 1, ...L)) : L = [c], N + L.length;
6865
+ return k ? (T < c.value.length && L.push({ type: "text", value: c.value.slice(T) }), f.children.splice(N, 1, ...L)) : L = [c], N + L.length;
6866
6866
  }
6867
6867
  }
6868
6868
  function _f(e) {
@@ -6873,20 +6873,20 @@ function _f(e) {
6873
6873
  let r = -1;
6874
6874
  for (; ++r < n.length; ) {
6875
6875
  const i = n[r];
6876
- t.push([Af(i[0]), Cf(i[1])]);
6876
+ t.push([Af(i[0]), kf(i[1])]);
6877
6877
  }
6878
6878
  return t;
6879
6879
  }
6880
6880
  function Af(e) {
6881
6881
  return typeof e == "string" ? new RegExp(bf(e), "g") : e;
6882
6882
  }
6883
- function Cf(e) {
6883
+ function kf(e) {
6884
6884
  return typeof e == "function" ? e : function() {
6885
6885
  return e;
6886
6886
  };
6887
6887
  }
6888
6888
  const Kn = "phrasing", Xn = ["autolink", "link", "image", "label"];
6889
- function kf() {
6889
+ function Cf() {
6890
6890
  return {
6891
6891
  transforms: [Of],
6892
6892
  enter: {
@@ -7150,12 +7150,12 @@ function ed(e, t) {
7150
7150
  let c = 0, d = -1;
7151
7151
  for (; ++d < e.length; ) {
7152
7152
  const I = [], N = [];
7153
- let C = -1;
7154
- for (e[d].length > c && (c = e[d].length); ++C < e[d].length; ) {
7155
- const L = td(e[d][C]);
7153
+ let k = -1;
7154
+ for (e[d].length > c && (c = e[d].length); ++k < e[d].length; ) {
7155
+ const L = td(e[d][k]);
7156
7156
  if (n.alignDelimiters !== !1) {
7157
7157
  const S = i(L);
7158
- N[C] = S, (l[C] === void 0 || S > l[C]) && (l[C] = S);
7158
+ N[k] = S, (l[k] === void 0 || S > l[k]) && (l[k] = S);
7159
7159
  }
7160
7160
  I.push(L);
7161
7161
  }
@@ -7174,34 +7174,34 @@ function ed(e, t) {
7174
7174
  const m = [], h = [];
7175
7175
  for (; ++f < c; ) {
7176
7176
  const I = u[f];
7177
- let N = "", C = "";
7178
- I === 99 ? (N = ":", C = ":") : I === 108 ? N = ":" : I === 114 && (C = ":");
7177
+ let N = "", k = "";
7178
+ I === 99 ? (N = ":", k = ":") : I === 108 ? N = ":" : I === 114 && (k = ":");
7179
7179
  let L = n.alignDelimiters === !1 ? 1 : Math.max(
7180
7180
  1,
7181
- l[f] - N.length - C.length
7181
+ l[f] - N.length - k.length
7182
7182
  );
7183
- const S = N + "-".repeat(L) + C;
7184
- n.alignDelimiters !== !1 && (L = N.length + L + C.length, L > l[f] && (l[f] = L), h[f] = L), m[f] = S;
7183
+ const S = N + "-".repeat(L) + k;
7184
+ n.alignDelimiters !== !1 && (L = N.length + L + k.length, L > l[f] && (l[f] = L), h[f] = L), m[f] = S;
7185
7185
  }
7186
7186
  a.splice(1, 0, m), o.splice(1, 0, h), d = -1;
7187
7187
  const T = [];
7188
7188
  for (; ++d < a.length; ) {
7189
7189
  const I = a[d], N = o[d];
7190
7190
  f = -1;
7191
- const C = [];
7191
+ const k = [];
7192
7192
  for (; ++f < c; ) {
7193
7193
  const L = I[f] || "";
7194
7194
  let S = "", w = "";
7195
7195
  if (n.alignDelimiters !== !1) {
7196
- const q = l[f] - (N[f] || 0), k = u[f];
7197
- k === 114 ? S = " ".repeat(q) : k === 99 ? q % 2 ? (S = " ".repeat(q / 2 + 0.5), w = " ".repeat(q / 2 - 0.5)) : (S = " ".repeat(q / 2), w = S) : w = " ".repeat(q);
7196
+ const q = l[f] - (N[f] || 0), C = u[f];
7197
+ C === 114 ? S = " ".repeat(q) : C === 99 ? q % 2 ? (S = " ".repeat(q / 2 + 0.5), w = " ".repeat(q / 2 - 0.5)) : (S = " ".repeat(q / 2), w = S) : w = " ".repeat(q);
7198
7198
  }
7199
- n.delimiterStart !== !1 && !f && C.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
7199
+ n.delimiterStart !== !1 && !f && k.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
7200
7200
  // empty: there will be a closing space.
7201
- !(n.alignDelimiters === !1 && L === "") && (n.delimiterStart !== !1 || f) && C.push(" "), n.alignDelimiters !== !1 && C.push(S), C.push(L), n.alignDelimiters !== !1 && C.push(w), n.padding !== !1 && C.push(" "), (n.delimiterEnd !== !1 || f !== c - 1) && C.push("|");
7201
+ !(n.alignDelimiters === !1 && L === "") && (n.delimiterStart !== !1 || f) && k.push(" "), n.alignDelimiters !== !1 && k.push(S), k.push(L), n.alignDelimiters !== !1 && k.push(w), n.padding !== !1 && k.push(" "), (n.delimiterEnd !== !1 || f !== c - 1) && k.push("|");
7202
7202
  }
7203
7203
  T.push(
7204
- n.delimiterEnd === !1 ? C.join("").replace(/ +$/, "") : C.join("")
7204
+ n.delimiterEnd === !1 ? k.join("").replace(/ +$/, "") : k.join("")
7205
7205
  );
7206
7206
  }
7207
7207
  return T.join(`
@@ -7373,7 +7373,7 @@ function Kt(e) {
7373
7373
  return "&#x" + e.toString(16).toUpperCase() + ";";
7374
7374
  }
7375
7375
  function An(e, t, n) {
7376
- const r = Ct(e), i = Ct(t);
7376
+ const r = kt(e), i = kt(t);
7377
7377
  return r === void 0 ? i === void 0 ? (
7378
7378
  // Letter inside:
7379
7379
  // we have to encode *both* letters for `_` as it is looser.
@@ -7649,7 +7649,7 @@ function Ad(e) {
7649
7649
  );
7650
7650
  return n;
7651
7651
  }
7652
- function Cd(e) {
7652
+ function kd(e) {
7653
7653
  const t = e.options.bulletOrdered || ".";
7654
7654
  if (t !== "." && t !== ")")
7655
7655
  throw new Error(
@@ -7665,9 +7665,9 @@ function _a(e) {
7665
7665
  );
7666
7666
  return t;
7667
7667
  }
7668
- function kd(e, t, n, r) {
7668
+ function Cd(e, t, n, r) {
7669
7669
  const i = n.enter("list"), u = n.bulletCurrent;
7670
- let a = e.ordered ? Cd(n) : Ur(n);
7670
+ let a = e.ordered ? kd(n) : Ur(n);
7671
7671
  const o = e.ordered ? a === "." ? ")" : "." : Ad(n);
7672
7672
  let l = t && n.bulletLastUsed ? a === n.bulletLastUsed : !1;
7673
7673
  if (!e.ordered) {
@@ -7803,7 +7803,7 @@ function wd(e, t, n) {
7803
7803
  const r = (_a(n) + (n.options.ruleSpaces ? " " : "")).repeat(Rd(n));
7804
7804
  return n.options.ruleSpaces ? r.slice(0, -1) : r;
7805
7805
  }
7806
- const Ca = {
7806
+ const ka = {
7807
7807
  blockquote: nd,
7808
7808
  break: qi,
7809
7809
  code: od,
@@ -7817,7 +7817,7 @@ const Ca = {
7817
7817
  inlineCode: Ea,
7818
7818
  link: ba,
7819
7819
  linkReference: ga,
7820
- list: kd,
7820
+ list: Cd,
7821
7821
  listItem: yd,
7822
7822
  paragraph: Nd,
7823
7823
  root: Sd,
@@ -7909,17 +7909,17 @@ function Ud(e) {
7909
7909
  return c(d(h, I, N), h.align);
7910
7910
  }
7911
7911
  function o(h, T, I, N) {
7912
- const C = f(h, I, N), L = c([C]);
7912
+ const k = f(h, I, N), L = c([k]);
7913
7913
  return L.slice(0, L.indexOf(`
7914
7914
  `));
7915
7915
  }
7916
7916
  function l(h, T, I, N) {
7917
- const C = I.enter("tableCell"), L = I.enter("phrasing"), S = I.containerPhrasing(h, {
7917
+ const k = I.enter("tableCell"), L = I.enter("phrasing"), S = I.containerPhrasing(h, {
7918
7918
  ...N,
7919
7919
  before: u,
7920
7920
  after: u
7921
7921
  });
7922
- return L(), C(), S;
7922
+ return L(), k(), S;
7923
7923
  }
7924
7924
  function c(h, T) {
7925
7925
  return ed(h, {
@@ -7934,22 +7934,22 @@ function Ud(e) {
7934
7934
  }
7935
7935
  function d(h, T, I) {
7936
7936
  const N = h.children;
7937
- let C = -1;
7937
+ let k = -1;
7938
7938
  const L = [], S = T.enter("table");
7939
- for (; ++C < N.length; )
7940
- L[C] = f(N[C], T, I);
7939
+ for (; ++k < N.length; )
7940
+ L[k] = f(N[k], T, I);
7941
7941
  return S(), L;
7942
7942
  }
7943
7943
  function f(h, T, I) {
7944
7944
  const N = h.children;
7945
- let C = -1;
7945
+ let k = -1;
7946
7946
  const L = [], S = T.enter("tableRow");
7947
- for (; ++C < N.length; )
7948
- L[C] = l(N[C], h, T, I);
7947
+ for (; ++k < N.length; )
7948
+ L[k] = l(N[k], h, T, I);
7949
7949
  return S(), L;
7950
7950
  }
7951
7951
  function m(h, T, I) {
7952
- let N = Ca.inlineCode(h, T, I);
7952
+ let N = ka.inlineCode(h, T, I);
7953
7953
  return I.stack.includes("tableCell") && (N = N.replace(/\|/g, "\\$&")), N;
7954
7954
  }
7955
7955
  }
@@ -7996,7 +7996,7 @@ function qd(e) {
7996
7996
  function Vd(e, t, n, r) {
7997
7997
  const i = e.children[0], u = typeof e.checked == "boolean" && i && i.type === "paragraph", a = "[" + (e.checked ? "x" : " ") + "] ", o = n.createTracker(r);
7998
7998
  u && o.move(a);
7999
- let l = Ca.listItem(e, t, n, {
7999
+ let l = ka.listItem(e, t, n, {
8000
8000
  ...r,
8001
8001
  ...o.current()
8002
8002
  });
@@ -8007,7 +8007,7 @@ function Vd(e, t, n, r) {
8007
8007
  }
8008
8008
  function Wd() {
8009
8009
  return [
8010
- kf(),
8010
+ Cf(),
8011
8011
  Vf(),
8012
8012
  Qf(),
8013
8013
  Pd(),
@@ -8028,7 +8028,7 @@ function jd(e) {
8028
8028
  const Gd = {
8029
8029
  tokenize: Zd,
8030
8030
  partial: !0
8031
- }, ka = {
8031
+ }, Ca = {
8032
8032
  tokenize: eh,
8033
8033
  partial: !0
8034
8034
  }, Ia = {
@@ -8086,14 +8086,14 @@ function Kd(e, t, n) {
8086
8086
  return e.consume(f), i = !0, l;
8087
8087
  }
8088
8088
  function d(f) {
8089
- return u && i && Ce(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(f)) : n(f);
8089
+ return u && i && ke(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(f)) : n(f);
8090
8090
  }
8091
8091
  }
8092
8092
  function Xd(e, t, n) {
8093
8093
  const r = this;
8094
8094
  return i;
8095
8095
  function i(a) {
8096
- return a !== 87 && a !== 119 || !Sa.call(r, r.previous) || zr(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Gd, e.attempt(ka, e.attempt(Ia, u), n), n)(a));
8096
+ return a !== 87 && a !== 119 || !Sa.call(r, r.previous) || zr(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Gd, e.attempt(Ca, e.attempt(Ia, u), n), n)(a));
8097
8097
  }
8098
8098
  function u(a) {
8099
8099
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(a);
@@ -8107,7 +8107,7 @@ function Jd(e, t, n) {
8107
8107
  return (f === 72 || f === 104) && La.call(r, r.previous) && !zr(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(f), e.consume(f), o) : n(f);
8108
8108
  }
8109
8109
  function o(f) {
8110
- if (Ce(f) && i.length < 5)
8110
+ if (ke(f) && i.length < 5)
8111
8111
  return i += String.fromCodePoint(f), e.consume(f), o;
8112
8112
  if (f === 58) {
8113
8113
  const m = i.toLowerCase();
@@ -8120,7 +8120,7 @@ function Jd(e, t, n) {
8120
8120
  return f === 47 ? (e.consume(f), u ? c : (u = !0, l)) : n(f);
8121
8121
  }
8122
8122
  function c(f) {
8123
- return f === null || gn(f) || ae(f) || lt(f) || xn(f) ? n(f) : e.attempt(ka, e.attempt(Ia, d), n)(f);
8123
+ return f === null || gn(f) || ae(f) || lt(f) || xn(f) ? n(f) : e.attempt(Ca, e.attempt(Ia, d), n)(f);
8124
8124
  }
8125
8125
  function d(f) {
8126
8126
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(f);
@@ -8172,10 +8172,10 @@ function nh(e, t, n) {
8172
8172
  return o === null || o === 40 || o === 91 || ae(o) || lt(o) ? t(o) : r(o);
8173
8173
  }
8174
8174
  function u(o) {
8175
- return Ce(o) ? a(o) : n(o);
8175
+ return ke(o) ? a(o) : n(o);
8176
8176
  }
8177
8177
  function a(o) {
8178
- return o === 59 ? (e.consume(o), r) : Ce(o) ? (e.consume(o), a) : n(o);
8178
+ return o === 59 ? (e.consume(o), r) : ke(o) ? (e.consume(o), a) : n(o);
8179
8179
  }
8180
8180
  }
8181
8181
  function rh(e, t, n) {
@@ -8191,7 +8191,7 @@ function Sa(e) {
8191
8191
  return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || ae(e);
8192
8192
  }
8193
8193
  function La(e) {
8194
- return !Ce(e);
8194
+ return !ke(e);
8195
8195
  }
8196
8196
  function Oa(e) {
8197
8197
  return !(e === 47 || Tr(e));
@@ -8451,12 +8451,12 @@ function hh(e) {
8451
8451
  return c === 126 && d[d.length - 1][1].type !== "characterEscape" ? l(T) : (a.enter("strikethroughSequenceTemporary"), h(T));
8452
8452
  }
8453
8453
  function h(T) {
8454
- const I = Ct(c);
8454
+ const I = kt(c);
8455
8455
  if (T === 126)
8456
8456
  return f > 1 ? l(T) : (a.consume(T), f++, h);
8457
8457
  if (f < 2 && !n) return l(T);
8458
- const N = a.exit("strikethroughSequenceTemporary"), C = Ct(T);
8459
- return N._open = !C || C === 2 && !!I, N._close = !I || I === 2 && !!C, o(T);
8458
+ const N = a.exit("strikethroughSequenceTemporary"), k = kt(T);
8459
+ return N._open = !k || k === 2 && !!I, N._close = !I || I === 2 && !!k, o(T);
8460
8460
  }
8461
8461
  }
8462
8462
  }
@@ -8571,8 +8571,8 @@ function bh(e, t, n) {
8571
8571
  R === "linePrefix") M--;
8572
8572
  else break;
8573
8573
  }
8574
- const V = M > -1 ? r.events[M][1].type : null, X = V === "tableHead" || V === "tableRow" ? k : l;
8575
- return X === k && r.parser.lazy[r.now().line] ? n(A) : X(A);
8574
+ const V = M > -1 ? r.events[M][1].type : null, X = V === "tableHead" || V === "tableRow" ? C : l;
8575
+ return X === C && r.parser.lazy[r.now().line] ? n(A) : X(A);
8576
8576
  }
8577
8577
  function l(A) {
8578
8578
  return e.enter("tableHead"), e.enter("tableRow"), c(A);
@@ -8599,9 +8599,9 @@ function bh(e, t, n) {
8599
8599
  return ee(A) ? ne(e, N, "whitespace")(A) : N(A);
8600
8600
  }
8601
8601
  function N(A) {
8602
- return A === 58 ? (u += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(A), e.exit("tableDelimiterMarker"), C) : A === 45 ? (u += 1, C(A)) : A === null || G(A) ? w(A) : q(A);
8602
+ return A === 58 ? (u += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(A), e.exit("tableDelimiterMarker"), k) : A === 45 ? (u += 1, k(A)) : A === null || G(A) ? w(A) : q(A);
8603
8603
  }
8604
- function C(A) {
8604
+ function k(A) {
8605
8605
  return A === 45 ? (e.enter("tableDelimiterFiller"), L(A)) : q(A);
8606
8606
  }
8607
8607
  function L(A) {
@@ -8616,7 +8616,7 @@ function bh(e, t, n) {
8616
8616
  function q(A) {
8617
8617
  return n(A);
8618
8618
  }
8619
- function k(A) {
8619
+ function C(A) {
8620
8620
  return e.enter("tableRow"), H(A);
8621
8621
  }
8622
8622
  function H(A) {
@@ -8688,7 +8688,7 @@ function _t(e, t) {
8688
8688
  }
8689
8689
  const _h = {
8690
8690
  name: "tasklistCheck",
8691
- tokenize: Ch
8691
+ tokenize: kh
8692
8692
  };
8693
8693
  function Ah() {
8694
8694
  return {
@@ -8697,7 +8697,7 @@ function Ah() {
8697
8697
  }
8698
8698
  };
8699
8699
  }
8700
- function Ch(e, t, n) {
8700
+ function kh(e, t, n) {
8701
8701
  const r = this;
8702
8702
  return i;
8703
8703
  function i(l) {
@@ -8716,11 +8716,11 @@ function Ch(e, t, n) {
8716
8716
  }
8717
8717
  function o(l) {
8718
8718
  return G(l) ? t(l) : ee(l) ? e.check({
8719
- tokenize: kh
8719
+ tokenize: Ch
8720
8720
  }, t, n)(l) : n(l);
8721
8721
  }
8722
8722
  }
8723
- function kh(e, t, n) {
8723
+ function Ch(e, t, n) {
8724
8724
  return ne(e, r, "whitespace");
8725
8725
  function r(i) {
8726
8726
  return i === null ? n(i) : t(i);
@@ -9163,7 +9163,7 @@ function $h(e, t, n) {
9163
9163
  const r = yn(e, t);
9164
9164
  if (n === !1 || n === null || n === void 0 || typeof n == "number" && Number.isNaN(n) || !n && r.boolean)
9165
9165
  return;
9166
- Array.isArray(n) && (n = r.commaSeparated ? Cu(n) : Ou(n));
9166
+ Array.isArray(n) && (n = r.commaSeparated ? ku(n) : Ou(n));
9167
9167
  const i = {
9168
9168
  name: r.attribute,
9169
9169
  value: n === !0 ? "" : String(n)
@@ -11830,7 +11830,7 @@ const Ua = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P,
11830
11830
  s.TH,
11831
11831
  s.THEAD,
11832
11832
  s.TR
11833
- ]), Cn = /* @__PURE__ */ new Set([
11833
+ ]), kn = /* @__PURE__ */ new Set([
11834
11834
  s.APPLET,
11835
11835
  s.CAPTION,
11836
11836
  s.HTML,
@@ -11840,8 +11840,8 @@ const Ua = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P,
11840
11840
  s.TD,
11841
11841
  s.TEMPLATE,
11842
11842
  s.TH
11843
- ]), T1 = /* @__PURE__ */ new Set([...Cn, s.OL, s.UL]), b1 = /* @__PURE__ */ new Set([...Cn, s.BUTTON]), eu = /* @__PURE__ */ new Set([s.ANNOTATION_XML, s.MI, s.MN, s.MO, s.MS, s.MTEXT]), tu = /* @__PURE__ */ new Set([s.DESC, s.FOREIGN_OBJECT, s.TITLE]), g1 = /* @__PURE__ */ new Set([s.TR, s.TEMPLATE, s.HTML]), _1 = /* @__PURE__ */ new Set([s.TBODY, s.TFOOT, s.THEAD, s.TEMPLATE, s.HTML]), A1 = /* @__PURE__ */ new Set([s.TABLE, s.TEMPLATE, s.HTML]), C1 = /* @__PURE__ */ new Set([s.TD, s.TH]);
11844
- class k1 {
11843
+ ]), T1 = /* @__PURE__ */ new Set([...kn, s.OL, s.UL]), b1 = /* @__PURE__ */ new Set([...kn, s.BUTTON]), eu = /* @__PURE__ */ new Set([s.ANNOTATION_XML, s.MI, s.MN, s.MO, s.MS, s.MTEXT]), tu = /* @__PURE__ */ new Set([s.DESC, s.FOREIGN_OBJECT, s.TITLE]), g1 = /* @__PURE__ */ new Set([s.TR, s.TEMPLATE, s.HTML]), _1 = /* @__PURE__ */ new Set([s.TBODY, s.TFOOT, s.THEAD, s.TEMPLATE, s.HTML]), A1 = /* @__PURE__ */ new Set([s.TABLE, s.TEMPLATE, s.HTML]), k1 = /* @__PURE__ */ new Set([s.TD, s.TH]);
11844
+ class C1 {
11845
11845
  get currentTmplContentOrNode() {
11846
11846
  return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
11847
11847
  }
@@ -11900,7 +11900,7 @@ class k1 {
11900
11900
  this.popUntilPopped(_r, P.HTML);
11901
11901
  }
11902
11902
  popUntilTableCellPopped() {
11903
- this.popUntilPopped(C1, P.HTML);
11903
+ this.popUntilPopped(k1, P.HTML);
11904
11904
  }
11905
11905
  popAllUpToHtmlElement() {
11906
11906
  this.tmplCount = 0, this.shortenToLength(1);
@@ -11969,7 +11969,7 @@ class k1 {
11969
11969
  return !0;
11970
11970
  }
11971
11971
  hasInScope(t) {
11972
- return this.hasInDynamicScope(t, Cn);
11972
+ return this.hasInDynamicScope(t, kn);
11973
11973
  }
11974
11974
  hasInListItemScope(t) {
11975
11975
  return this.hasInDynamicScope(t, T1);
@@ -11984,7 +11984,7 @@ class k1 {
11984
11984
  case P.HTML: {
11985
11985
  if (_r.has(n))
11986
11986
  return !0;
11987
- if (Cn.has(n))
11987
+ if (kn.has(n))
11988
11988
  return !1;
11989
11989
  break;
11990
11990
  }
@@ -12610,7 +12610,7 @@ class au {
12610
12610
  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 = {
12611
12611
  ...uu,
12612
12612
  ...t
12613
- }, 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 E1(this.options, this), this.activeFormattingElements = new I1(this.treeAdapter), this.fragmentContextID = r ? xt(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new k1(this.document, this.treeAdapter, this);
12613
+ }, 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 E1(this.options, this), this.activeFormattingElements = new I1(this.treeAdapter), this.fragmentContextID = r ? xt(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new C1(this.document, this.treeAdapter, this);
12614
12614
  }
12615
12615
  // API
12616
12616
  static parse(t, n) {
@@ -13006,7 +13006,7 @@ class au {
13006
13006
  /** @internal */
13007
13007
  onCharacter(t) {
13008
13008
  if (this.skipNextNewLine = !1, this.tokenizer.inForeignNode) {
13009
- Cp(this, t);
13009
+ kp(this, t);
13010
13010
  return;
13011
13011
  }
13012
13012
  switch (this.insertionMode) {
@@ -13058,7 +13058,7 @@ class au {
13058
13058
  break;
13059
13059
  }
13060
13060
  case b.IN_COLUMN_GROUP: {
13061
- kn(this, t);
13061
+ Cn(this, t);
13062
13062
  break;
13063
13063
  }
13064
13064
  case b.AFTER_BODY: {
@@ -13113,7 +13113,7 @@ class au {
13113
13113
  break;
13114
13114
  }
13115
13115
  case b.IN_COLUMN_GROUP: {
13116
- kn(this, t);
13116
+ Cn(this, t);
13117
13117
  break;
13118
13118
  }
13119
13119
  case b.AFTER_BODY: {
@@ -13205,7 +13205,7 @@ class au {
13205
13205
  * @protected
13206
13206
  */
13207
13207
  _processStartTag(t) {
13208
- this.shouldProcessStartTagTokenInForeignContent(t) ? kp(this, t) : this._startTagOutsideForeignContent(t);
13208
+ this.shouldProcessStartTagTokenInForeignContent(t) ? Cp(this, t) : this._startTagOutsideForeignContent(t);
13209
13209
  }
13210
13210
  /** @protected */
13211
13211
  _startTagOutsideForeignContent(t) {
@@ -13239,7 +13239,7 @@ class au {
13239
13239
  break;
13240
13240
  }
13241
13241
  case b.IN_TABLE: {
13242
- kt(this, t);
13242
+ Ct(this, t);
13243
13243
  break;
13244
13244
  }
13245
13245
  case b.IN_TABLE_TEXT: {
@@ -13356,7 +13356,7 @@ class au {
13356
13356
  break;
13357
13357
  }
13358
13358
  case b.IN_TABLE_BODY: {
13359
- Cr(this, t);
13359
+ kr(this, t);
13360
13360
  break;
13361
13361
  }
13362
13362
  case b.IN_ROW: {
@@ -13867,10 +13867,10 @@ function Am(e, t) {
13867
13867
  const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(y.A);
13868
13868
  n && (Wr(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, P.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
13869
13869
  }
13870
- function Cm(e, t) {
13870
+ function km(e, t) {
13871
13871
  e._reconstructActiveFormattingElements(), e._insertElement(t, P.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
13872
13872
  }
13873
- function km(e, t) {
13873
+ function Cm(e, t) {
13874
13874
  e._reconstructActiveFormattingElements(), e.openElements.hasInScope(s.NOBR) && (Wr(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, P.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
13875
13875
  }
13876
13876
  function Im(e, t) {
@@ -13945,7 +13945,7 @@ function Ae(e, t) {
13945
13945
  case s.SMALL:
13946
13946
  case s.STRIKE:
13947
13947
  case s.STRONG: {
13948
- Cm(e, t);
13948
+ km(e, t);
13949
13949
  break;
13950
13950
  }
13951
13951
  case s.A: {
@@ -14056,7 +14056,7 @@ function Ae(e, t) {
14056
14056
  break;
14057
14057
  }
14058
14058
  case s.NOBR: {
14059
- km(e, t);
14059
+ Cm(e, t);
14060
14060
  break;
14061
14061
  }
14062
14062
  case s.MATH: {
@@ -14340,7 +14340,7 @@ function rp(e, t) {
14340
14340
  function ip(e, t) {
14341
14341
  !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, P.HTML), e.formElement = e.openElements.current, e.openElements.pop());
14342
14342
  }
14343
- function kt(e, t) {
14343
+ function Ct(e, t) {
14344
14344
  switch (t.tagID) {
14345
14345
  case s.TD:
14346
14346
  case s.TH:
@@ -14437,7 +14437,7 @@ function Bt(e, t) {
14437
14437
  const ts = /* @__PURE__ */ new Set([s.CAPTION, s.COL, s.COLGROUP, s.TBODY, s.TD, s.TFOOT, s.TH, s.THEAD, s.TR]);
14438
14438
  function up(e, t) {
14439
14439
  const n = t.tagID;
14440
- ts.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = b.IN_TABLE, kt(e, t)) : Ae(e, t);
14440
+ ts.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = b.IN_TABLE, Ct(e, t)) : Ae(e, t);
14441
14441
  }
14442
14442
  function ap(e, t) {
14443
14443
  const n = t.tagID;
@@ -14477,7 +14477,7 @@ function Gr(e, t) {
14477
14477
  break;
14478
14478
  }
14479
14479
  default:
14480
- kn(e, t);
14480
+ Cn(e, t);
14481
14481
  }
14482
14482
  }
14483
14483
  function sp(e, t) {
@@ -14493,10 +14493,10 @@ function sp(e, t) {
14493
14493
  case s.COL:
14494
14494
  break;
14495
14495
  default:
14496
- kn(e, t);
14496
+ Cn(e, t);
14497
14497
  }
14498
14498
  }
14499
- function kn(e, t) {
14499
+ function Cn(e, t) {
14500
14500
  e.openElements.currentTagId === s.COLGROUP && (e.openElements.pop(), e.insertionMode = b.IN_TABLE, e._processToken(t));
14501
14501
  }
14502
14502
  function Mn(e, t) {
@@ -14516,14 +14516,14 @@ function Mn(e, t) {
14516
14516
  case s.TBODY:
14517
14517
  case s.TFOOT:
14518
14518
  case s.THEAD: {
14519
- e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE, kt(e, t));
14519
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE, Ct(e, t));
14520
14520
  break;
14521
14521
  }
14522
14522
  default:
14523
- kt(e, t);
14523
+ Ct(e, t);
14524
14524
  }
14525
14525
  }
14526
- function Cr(e, t) {
14526
+ function kr(e, t) {
14527
14527
  const n = t.tagID;
14528
14528
  switch (t.tagID) {
14529
14529
  case s.TBODY:
@@ -14567,7 +14567,7 @@ function Fn(e, t) {
14567
14567
  break;
14568
14568
  }
14569
14569
  default:
14570
- kt(e, t);
14570
+ Ct(e, t);
14571
14571
  }
14572
14572
  }
14573
14573
  function ns(e, t) {
@@ -14577,13 +14577,13 @@ function ns(e, t) {
14577
14577
  break;
14578
14578
  }
14579
14579
  case s.TABLE: {
14580
- e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Cr(e, t));
14580
+ e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, kr(e, t));
14581
14581
  break;
14582
14582
  }
14583
14583
  case s.TBODY:
14584
14584
  case s.TFOOT:
14585
14585
  case s.THEAD: {
14586
- (e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(s.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Cr(e, t));
14586
+ (e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(s.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, kr(e, t));
14587
14587
  break;
14588
14588
  }
14589
14589
  case s.BODY:
@@ -14710,7 +14710,7 @@ function dp(e, t) {
14710
14710
  case s.TBODY:
14711
14711
  case s.TFOOT:
14712
14712
  case s.THEAD: {
14713
- e.tmplInsertionModeStack[0] = b.IN_TABLE, e.insertionMode = b.IN_TABLE, kt(e, t);
14713
+ e.tmplInsertionModeStack[0] = b.IN_TABLE, e.insertionMode = b.IN_TABLE, Ct(e, t);
14714
14714
  break;
14715
14715
  }
14716
14716
  case s.COL: {
@@ -14812,14 +14812,14 @@ function _p(e, t) {
14812
14812
  function Ap(e, t) {
14813
14813
  t.chars = le, e._insertCharacters(t);
14814
14814
  }
14815
- function Cp(e, t) {
14815
+ function kp(e, t) {
14816
14816
  e._insertCharacters(t), e.framesetOk = !1;
14817
14817
  }
14818
14818
  function ss(e) {
14819
14819
  for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== P.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
14820
14820
  e.openElements.pop();
14821
14821
  }
14822
- function kp(e, t) {
14822
+ function Cp(e, t) {
14823
14823
  if (H1(t))
14824
14824
  ss(e), e._startTagOutsideForeignContent(t);
14825
14825
  else {
@@ -15518,7 +15518,7 @@ function Jp(e) {
15518
15518
  }
15519
15519
  function Zp({ markdown: e, className: t, assetBase: n }) {
15520
15520
  const r = ve(() => Jp(n), [n]);
15521
- return /* @__PURE__ */ U("div", { className: t ? `mdv ${t}` : "mdv", children: /* @__PURE__ */ U(
15521
+ return /* @__PURE__ */ U("div", { className: t ? `ldk-mdv ${t}` : "ldk-mdv", children: /* @__PURE__ */ U(
15522
15522
  hf,
15523
15523
  {
15524
15524
  remarkPlugins: [Nh],
@@ -15530,7 +15530,7 @@ function Zp({ markdown: e, className: t, assetBase: n }) {
15530
15530
  }
15531
15531
  const dT = Zs(Zp);
15532
15532
  function eE({ children: e, onClick: t, disabled: n, title: r, type: i = "button", variant: u, size: a }) {
15533
- const o = ["button", u && `button--${u}`, a && `button--${a}`].filter(Boolean).join(" ");
15533
+ const o = ["ldk-button", u && `ldk-button--${u}`, a && `ldk-button--${a}`].filter(Boolean).join(" ");
15534
15534
  return /* @__PURE__ */ U("button", { type: i, className: o, onClick: t, disabled: n, title: r, children: e });
15535
15535
  }
15536
15536
  var bt = {}, du;
@@ -15594,8 +15594,8 @@ function $r({ children: e, onClose: t, closeOnOutsideClick: n = !0, triggerRef:
15594
15594
  re(() => {
15595
15595
  if (!o || !t || !n) return;
15596
15596
  const f = (m) => {
15597
- var N, C;
15598
- const h = m.target, T = (N = l.current) == null ? void 0 : N.contains(h), I = ((C = r == null ? void 0 : r.current) == null ? void 0 : C.contains(h)) ?? !1;
15597
+ var N, k;
15598
+ const h = m.target, T = (N = l.current) == null ? void 0 : N.contains(h), I = ((k = r == null ? void 0 : r.current) == null ? void 0 : k.contains(h)) ?? !1;
15599
15599
  !T && !I && t();
15600
15600
  };
15601
15601
  return window.addEventListener("mousedown", f, !0), () => window.removeEventListener("mousedown", f, !0);
@@ -15618,8 +15618,8 @@ function $r({ children: e, onClose: t, closeOnOutsideClick: n = !0, triggerRef:
15618
15618
  T.preventDefault();
15619
15619
  return;
15620
15620
  }
15621
- const N = I[0], C = I[I.length - 1];
15622
- T.shiftKey && document.activeElement === N ? (T.preventDefault(), C.focus()) : !T.shiftKey && document.activeElement === C && (T.preventDefault(), N.focus());
15621
+ const N = I[0], k = I[I.length - 1];
15622
+ T.shiftKey && document.activeElement === N ? (T.preventDefault(), k.focus()) : !T.shiftKey && document.activeElement === k && (T.preventDefault(), N.focus());
15623
15623
  };
15624
15624
  return window.addEventListener("keydown", h), () => window.removeEventListener("keydown", h);
15625
15625
  }, [o, i]);
@@ -15695,7 +15695,7 @@ function hT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15695
15695
  T.current = A, o(A), c(t);
15696
15696
  }
15697
15697
  }, [t, e]);
15698
- const C = pe((A) => {
15698
+ const k = pe((A) => {
15699
15699
  const M = fE(A);
15700
15700
  if (c(M), /^#[0-9a-fA-F]{6}$/.test(M)) {
15701
15701
  const V = hn(M);
@@ -15733,7 +15733,7 @@ function hT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15733
15733
  const A = m.current, M = { width: window.innerWidth, height: window.innerHeight }, V = A ? nr(u, A.offsetWidth, A.offsetHeight, M) : nr(u, mu, i != null && i.length ? Eu : pu, M);
15734
15734
  N((X) => X && X.left === V.left && X.top === V.top ? X : V);
15735
15735
  }, [e, u, i]), !e) return null;
15736
- const w = rr(a.h, 1, 1), q = `${Math.round(a.s * 100)}%`, k = `${Math.round((1 - a.v) * 100)}%`, H = `${Math.round(a.h / 360 * 100)}%`, z = u && !I ? nr(
15736
+ const w = rr(a.h, 1, 1), q = `${Math.round(a.s * 100)}%`, C = `${Math.round((1 - a.v) * 100)}%`, H = `${Math.round(a.h / 360 * 100)}%`, z = u && !I ? nr(
15737
15737
  u,
15738
15738
  mu,
15739
15739
  i != null && i.length ? Eu : pu,
@@ -15761,7 +15761,7 @@ function hT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15761
15761
  children: [
15762
15762
  /* @__PURE__ */ U("div", { className: "colorpicker-sv-white" }),
15763
15763
  /* @__PURE__ */ U("div", { className: "colorpicker-sv-black" }),
15764
- /* @__PURE__ */ U("div", { className: "colorpicker-sv-cursor", style: { left: q, top: k } })
15764
+ /* @__PURE__ */ U("div", { className: "colorpicker-sv-cursor", style: { left: q, top: C } })
15765
15765
  ]
15766
15766
  }
15767
15767
  ),
@@ -15785,12 +15785,12 @@ function hT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15785
15785
  type: "text",
15786
15786
  value: l,
15787
15787
  onChange: (A) => {
15788
- const M = C(A.target.value);
15788
+ const M = k(A.target.value);
15789
15789
  M && n(M);
15790
15790
  },
15791
15791
  onKeyDown: (A) => {
15792
15792
  if (A.key === "Enter") {
15793
- const M = C(l);
15793
+ const M = k(l);
15794
15794
  M && n(M);
15795
15795
  }
15796
15796
  },
@@ -15842,7 +15842,7 @@ function Ts({ containerRef: e, onClose: t, onKeyDown: n, listRef: r, search: i,
15842
15842
  }, [e, l]), /* @__PURE__ */ U($r, { onClose: t, triggerRef: e, children: /* @__PURE__ */ se(
15843
15843
  "div",
15844
15844
  {
15845
- className: "selectbox-dropdown",
15845
+ className: "ldk-selectbox-dropdown",
15846
15846
  onKeyDown: n,
15847
15847
  style: {
15848
15848
  position: "fixed",
@@ -15854,13 +15854,13 @@ function Ts({ containerRef: e, onClose: t, onKeyDown: n, listRef: r, search: i,
15854
15854
  },
15855
15855
  children: [
15856
15856
  i,
15857
- /* @__PURE__ */ U("ul", { ref: r, className: "selectbox-list", tabIndex: -1, children: u })
15857
+ /* @__PURE__ */ U("ul", { ref: r, className: "ldk-selectbox-list", tabIndex: -1, children: u })
15858
15858
  ]
15859
15859
  }
15860
15860
  ) });
15861
15861
  }
15862
15862
  function mT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, title: u, className: a, onOpen: o, inputMode: l = "text" }) {
15863
- const { t: c } = ft(), [d, f] = oe(!1), [m, h] = oe(e), [T, I] = oe(-1), N = ce(null), C = ce(null), L = ce(!1);
15863
+ const { t: c } = ft(), [d, f] = oe(!1), [m, h] = oe(e), [T, I] = oe(-1), N = ce(null), k = ce(null), L = ce(!1);
15864
15864
  re(() => {
15865
15865
  L.current || h(e);
15866
15866
  }, [e]);
@@ -15877,8 +15877,8 @@ function mT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15877
15877
  const H = w.findIndex((z) => z === e);
15878
15878
  I(H >= 0 ? H : 0);
15879
15879
  }, [d]), re(() => {
15880
- if (!d || !C.current) return;
15881
- const H = C.current.children[T];
15880
+ if (!d || !k.current) return;
15881
+ const H = k.current.children[T];
15882
15882
  H == null || H.scrollIntoView({ block: "nearest" });
15883
15883
  }, [T, d]);
15884
15884
  const q = pe(
@@ -15887,7 +15887,7 @@ function mT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15887
15887
  f(!1), z && (h(z), z !== e && n(z));
15888
15888
  },
15889
15889
  [e, n]
15890
- ), k = pe(
15890
+ ), C = pe(
15891
15891
  (H) => {
15892
15892
  switch (H.key) {
15893
15893
  case "ArrowDown":
@@ -15909,16 +15909,16 @@ function mT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15909
15909
  return /* @__PURE__ */ se(
15910
15910
  "div",
15911
15911
  {
15912
- className: `combobox ${d ? "selectbox-open" : ""} ${r ? "selectbox-disabled" : ""} ${a ?? ""}`,
15912
+ className: `ldk-combobox ${d ? "ldk-selectbox-open" : ""} ${r ? "ldk-selectbox-disabled" : ""} ${a ?? ""}`,
15913
15913
  ref: N,
15914
15914
  children: [
15915
- /* @__PURE__ */ se("div", { className: "combobox-field", children: [
15915
+ /* @__PURE__ */ se("div", { className: "ldk-combobox-field", children: [
15916
15916
  /* @__PURE__ */ U(
15917
15917
  "input",
15918
15918
  {
15919
15919
  type: "text",
15920
15920
  inputMode: l,
15921
- className: "combobox-input",
15921
+ className: "ldk-combobox-input",
15922
15922
  value: m,
15923
15923
  title: u,
15924
15924
  "aria-label": u,
@@ -15933,21 +15933,21 @@ function mT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15933
15933
  onChange: (H) => {
15934
15934
  h(H.target.value), f(!0), I(-1);
15935
15935
  },
15936
- onKeyDown: k
15936
+ onKeyDown: C
15937
15937
  }
15938
15938
  ),
15939
- /* @__PURE__ */ U("span", { className: `codicon codicon-chevron-down selectbox-arrow ${d ? "selectbox-arrow-up" : ""}` })
15939
+ /* @__PURE__ */ U("span", { className: `codicon codicon-chevron-down ldk-selectbox-arrow ${d ? "ldk-selectbox-arrow-up" : ""}` })
15940
15940
  ] }),
15941
15941
  d && /* @__PURE__ */ U(
15942
15942
  Ts,
15943
15943
  {
15944
15944
  containerRef: N,
15945
15945
  onClose: () => f(!1),
15946
- listRef: C,
15947
- children: w.length === 0 ? /* @__PURE__ */ U("li", { className: "selectbox-empty", children: c("无匹配项") }) : w.map((H, z) => /* @__PURE__ */ U(
15946
+ listRef: k,
15947
+ children: w.length === 0 ? /* @__PURE__ */ U("li", { className: "ldk-selectbox-empty", children: c("无匹配项") }) : w.map((H, z) => /* @__PURE__ */ U(
15948
15948
  "li",
15949
15949
  {
15950
- className: `selectbox-item ${z === T ? "selectbox-item-focus" : ""} ${H === e ? "selectbox-item-selected" : ""}`,
15950
+ className: `ldk-selectbox-item ${z === T ? "ldk-selectbox-item-focus" : ""} ${H === e ? "ldk-selectbox-item-selected" : ""}`,
15951
15951
  onMouseDown: (F) => {
15952
15952
  F.preventDefault(), q(H);
15953
15953
  },
@@ -16006,7 +16006,7 @@ function pT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16006
16006
  g = bs(Z, Q);
16007
16007
  else if (Z && Z.length === 0 && i) {
16008
16008
  const he = i(j.command, n ?? {});
16009
- he && he.length > 0 && (g = he.map((ke) => ({ id: ke.id, label: ke.label, group: Q })));
16009
+ he && he.length > 0 && (g = he.map((Ce) => ({ id: Ce.id, label: Ce.label, group: Q })));
16010
16010
  }
16011
16011
  R.get(Q).push({
16012
16012
  id: j.command || j.label || "",
@@ -16027,13 +16027,13 @@ function pT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16027
16027
  return W;
16028
16028
  }, [d, n, i]), [T, I] = oe([]), N = pe(() => {
16029
16029
  c.current && (clearTimeout(c.current), c.current = null);
16030
- }, []), C = pe((R) => {
16030
+ }, []), k = pe((R) => {
16031
16031
  c.current && (clearTimeout(c.current), c.current = null), c.current = setTimeout(() => I((O) => O.slice(0, R)), 150);
16032
16032
  }, []), L = pe((R, O, W) => {
16033
16033
  N();
16034
16034
  const j = R.getBoundingClientRect(), Z = 160, Q = j.right + Z > window.innerWidth ? j.left - Z - 4 : j.right + 4;
16035
16035
  I((g) => [...g.slice(0, W), { x: Q, y: j.top, items: O }]);
16036
- }, [N]), [S, w] = oe({ left: t.x, top: t.y }), [q, k] = oe(!1), H = q;
16036
+ }, [N]), [S, w] = oe({ left: t.x, top: t.y }), [q, C] = oe(!1), H = q;
16037
16037
  re(() => {
16038
16038
  if (!H) return;
16039
16039
  const R = (Z) => {
@@ -16041,7 +16041,7 @@ function pT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16041
16041
  }, O = () => r(), W = () => r(), j = (Z) => {
16042
16042
  var he;
16043
16043
  const Q = Z.target;
16044
- (((he = o.current) == null ? void 0 : he.contains(Q)) ?? !1) || [...l.current.values()].some((ke) => ke.contains(Q)) || r();
16044
+ (((he = o.current) == null ? void 0 : he.contains(Q)) ?? !1) || [...l.current.values()].some((Ce) => Ce.contains(Q)) || r();
16045
16045
  };
16046
16046
  return window.addEventListener("keydown", R), window.addEventListener("blur", O), window.addEventListener("wheel", W, !0), a !== "embedded" && window.addEventListener("mousedown", j, !0), () => {
16047
16047
  window.removeEventListener("keydown", R), window.removeEventListener("blur", O), window.removeEventListener("wheel", W, !0), a !== "embedded" && window.removeEventListener("mousedown", j, !0);
@@ -16081,7 +16081,7 @@ function pT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16081
16081
  r(), await ((W = (O = ir().commands) == null ? void 0 : O.executeCommand) == null ? void 0 : W.call(O, R.id, void 0, ...R.commandArgs ?? [], n));
16082
16082
  }, [n, r]);
16083
16083
  Ir(() => {
16084
- w({ left: t.x, top: Math.max(30, t.y) }), k(!1);
16084
+ w({ left: t.x, top: Math.max(30, t.y) }), C(!1);
16085
16085
  }, [t.x, t.y, h.length]), re(() => {
16086
16086
  const R = o.current;
16087
16087
  if (!R) return;
@@ -16089,7 +16089,7 @@ function pT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16089
16089
  let W = t.x, j = Math.max(30, t.y);
16090
16090
  W + O.width > window.innerWidth && (W = Math.max(0, window.innerWidth - O.width - 4)), j + O.height > window.innerHeight && (j = Math.max(30, window.innerHeight - O.height - 4)), w({ left: W, top: j });
16091
16091
  const Z = requestAnimationFrame(() => {
16092
- k(!0), R.classList.add("show");
16092
+ C(!0), R.classList.add("show");
16093
16093
  });
16094
16094
  return () => cancelAnimationFrame(Z);
16095
16095
  }, [t.x, t.y, h.length]), re(() => {
@@ -16143,7 +16143,7 @@ function pT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16143
16143
  F(W), j ? L(g.currentTarget, R.children, 0) : I((he) => he.slice(0, 0));
16144
16144
  },
16145
16145
  onMouseLeave: () => {
16146
- j && C(1);
16146
+ j && k(1);
16147
16147
  },
16148
16148
  children: [
16149
16149
  /* @__PURE__ */ U("span", { className: "ctx-item-check", "aria-hidden": "true", children: R.checked ? "✓" : "" }),
@@ -16167,7 +16167,7 @@ function pT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16167
16167
  className: "ctx-menu show",
16168
16168
  style: { left: R.x, top: R.y, zIndex: mn },
16169
16169
  onMouseEnter: N,
16170
- onMouseLeave: () => C(O + 1),
16170
+ onMouseLeave: () => k(O + 1),
16171
16171
  children: R.items.map((W, j) => {
16172
16172
  const Z = !!(W.children && W.children.length > 0);
16173
16173
  return /* @__PURE__ */ se(
@@ -16181,7 +16181,7 @@ function pT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16181
16181
  Z ? L(Q.currentTarget, W.children, O + 1) : I((g) => g.slice(0, O + 1));
16182
16182
  },
16183
16183
  onMouseLeave: () => {
16184
- Z && C(O + 2);
16184
+ Z && k(O + 2);
16185
16185
  },
16186
16186
  children: [
16187
16187
  /* @__PURE__ */ U("span", { className: "ctx-item-check", "aria-hidden": "true", children: W.checked ? "✓" : "" }),
@@ -16202,7 +16202,7 @@ function hE(e) {
16202
16202
  return typeof e == "object" && "value" in e && "label" in e;
16203
16203
  }
16204
16204
  function gs({ value: e, options: t, onChange: n, disabled: r, placeholder: i, title: u, className: a, onOpen: o }) {
16205
- const { t: l } = ft(), [c, d] = oe(!1), [f, m] = oe(""), [h, T] = oe(-1), I = ce(null), N = ce(null), C = ce(null), L = ve(
16205
+ const { t: l } = ft(), [c, d] = oe(!1), [f, m] = oe(""), [h, T] = oe(-1), I = ce(null), N = ce(null), k = ce(null), L = ve(
16206
16206
  () => t.map((F) => hE(F) ? F : { value: F, label: F }),
16207
16207
  [t]
16208
16208
  ), S = ve(() => {
@@ -16220,9 +16220,9 @@ function gs({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16220
16220
  }
16221
16221
  o == null || o();
16222
16222
  const F = S.findIndex((V) => V.value === e);
16223
- T(F >= 0 ? F : 0), L.length > 8 ? (A = N.current) == null || A.focus() : (M = C.current) == null || M.focus();
16223
+ T(F >= 0 ? F : 0), L.length > 8 ? (A = N.current) == null || A.focus() : (M = k.current) == null || M.focus();
16224
16224
  }, [c]);
16225
- const k = pe(
16225
+ const C = pe(
16226
16226
  (F) => {
16227
16227
  n(F), d(!1);
16228
16228
  },
@@ -16237,38 +16237,38 @@ function gs({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16237
16237
  F.preventDefault(), T((A) => Math.max(A - 1, 0));
16238
16238
  break;
16239
16239
  case "Enter":
16240
- F.preventDefault(), S[h] && k(S[h].value);
16240
+ F.preventDefault(), S[h] && C(S[h].value);
16241
16241
  break;
16242
16242
  }
16243
16243
  },
16244
- [S, h, k]
16244
+ [S, h, C]
16245
16245
  );
16246
16246
  re(() => {
16247
- if (!c || !C.current) return;
16248
- const F = C.current.children[h];
16247
+ if (!c || !k.current) return;
16248
+ const F = k.current.children[h];
16249
16249
  F == null || F.scrollIntoView({ block: "nearest" });
16250
16250
  }, [h, c]);
16251
16251
  const z = L.length > 8;
16252
16252
  return /* @__PURE__ */ se(
16253
16253
  "div",
16254
16254
  {
16255
- className: `selectbox ${c ? "selectbox-open" : ""} ${r ? "selectbox-disabled" : ""} ${a ?? ""}`,
16255
+ className: `ldk-selectbox ${c ? "ldk-selectbox-open" : ""} ${r ? "ldk-selectbox-disabled" : ""} ${a ?? ""}`,
16256
16256
  ref: I,
16257
16257
  children: [
16258
16258
  /* @__PURE__ */ se(
16259
16259
  "button",
16260
16260
  {
16261
16261
  type: "button",
16262
- className: "selectbox-trigger",
16262
+ className: "ldk-selectbox-trigger",
16263
16263
  disabled: r,
16264
16264
  title: u,
16265
16265
  onClick: () => d((F) => !F),
16266
16266
  children: [
16267
- /* @__PURE__ */ se("span", { className: "selectbox-label", children: [
16268
- (w == null ? void 0 : w.preview) && /* @__PURE__ */ U("span", { className: "selectbox-swatch", style: { background: w.preview } }),
16267
+ /* @__PURE__ */ se("span", { className: "ldk-selectbox-label", children: [
16268
+ (w == null ? void 0 : w.preview) && /* @__PURE__ */ U("span", { className: "ldk-selectbox-swatch", style: { background: w.preview } }),
16269
16269
  q
16270
16270
  ] }),
16271
- /* @__PURE__ */ U("span", { className: `codicon codicon-chevron-down selectbox-arrow ${c ? "selectbox-arrow-up" : ""}` })
16271
+ /* @__PURE__ */ U("span", { className: `codicon codicon-chevron-down ldk-selectbox-arrow ${c ? "ldk-selectbox-arrow-up" : ""}` })
16272
16272
  ]
16273
16273
  }
16274
16274
  ),
@@ -16278,13 +16278,13 @@ function gs({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16278
16278
  containerRef: I,
16279
16279
  onClose: () => d(!1),
16280
16280
  onKeyDown: H,
16281
- listRef: C,
16282
- search: z ? /* @__PURE__ */ U("div", { className: "selectbox-search", children: /* @__PURE__ */ U(
16281
+ listRef: k,
16282
+ search: z ? /* @__PURE__ */ U("div", { className: "ldk-selectbox-search", children: /* @__PURE__ */ U(
16283
16283
  "input",
16284
16284
  {
16285
16285
  ref: N,
16286
16286
  type: "text",
16287
- className: "selectbox-search-input",
16287
+ className: "ldk-selectbox-search-input",
16288
16288
  placeholder: l("筛选..."),
16289
16289
  value: f,
16290
16290
  onChange: (F) => {
@@ -16292,14 +16292,14 @@ function gs({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16292
16292
  }
16293
16293
  }
16294
16294
  ) }) : void 0,
16295
- children: S.length === 0 ? /* @__PURE__ */ U("li", { className: "selectbox-empty", children: l("无匹配项") }) : S.map((F, A) => /* @__PURE__ */ se(
16295
+ children: S.length === 0 ? /* @__PURE__ */ U("li", { className: "ldk-selectbox-empty", children: l("无匹配项") }) : S.map((F, A) => /* @__PURE__ */ se(
16296
16296
  "li",
16297
16297
  {
16298
- className: `selectbox-item ${A === h ? "selectbox-item-focus" : ""} ${F.value === e ? "selectbox-item-selected" : ""}`,
16299
- onClick: () => k(F.value),
16298
+ className: `ldk-selectbox-item ${A === h ? "ldk-selectbox-item-focus" : ""} ${F.value === e ? "ldk-selectbox-item-selected" : ""}`,
16299
+ onClick: () => C(F.value),
16300
16300
  onMouseEnter: () => T(A),
16301
16301
  children: [
16302
- F.preview && /* @__PURE__ */ U("span", { className: "selectbox-swatch", style: { background: F.preview } }),
16302
+ F.preview && /* @__PURE__ */ U("span", { className: "ldk-selectbox-swatch", style: { background: F.preview } }),
16303
16303
  F.label
16304
16304
  ]
16305
16305
  },
@@ -16315,20 +16315,20 @@ const Tu = "followTheme", ur = [];
16315
16315
  function ET({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, placeholder: u, title: a }) {
16316
16316
  const { t: o } = ft(), [l, c] = oe(ur), d = n === "theme.colorways" && r === "colors", [f, m] = oe(void 0);
16317
16317
  re(() => {
16318
- var C, L, S, w, q;
16318
+ var k, L, S, w, q;
16319
16319
  if (!d) return;
16320
16320
  let I = !1;
16321
- (L = (C = window.linkdesk) == null ? void 0 : C.configuration) == null || L.get("app.appearanceMode").then((k) => {
16322
- I || m(k);
16321
+ (L = (k = window.linkdesk) == null ? void 0 : k.configuration) == null || L.get("app.appearanceMode").then((C) => {
16322
+ I || m(C);
16323
16323
  });
16324
- const N = (q = (w = (S = window.linkdesk) == null ? void 0 : S.configuration) == null ? void 0 : w.onChange) == null ? void 0 : q.call(w, "app.appearanceMode", (k) => m(k));
16324
+ const N = (q = (w = (S = window.linkdesk) == null ? void 0 : S.configuration) == null ? void 0 : w.onChange) == null ? void 0 : q.call(w, "app.appearanceMode", (C) => m(C));
16325
16325
  return () => {
16326
16326
  I = !0, N == null || N();
16327
16327
  };
16328
16328
  }, [d]);
16329
16329
  const h = d && f === "custom", T = pe(async () => {
16330
- var N, C, L, S;
16331
- const I = (C = (N = window.linkdesk) == null ? void 0 : N.theme) == null ? void 0 : C.listRecipes;
16330
+ var N, k, L, S;
16331
+ const I = (k = (N = window.linkdesk) == null ? void 0 : N.theme) == null ? void 0 : k.listRecipes;
16332
16332
  if (I)
16333
16333
  try {
16334
16334
  const w = await I() ?? [];
@@ -16356,7 +16356,7 @@ function ET({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
16356
16356
  ]);
16357
16357
  return;
16358
16358
  }
16359
- const q = (S = (L = window.linkdesk) == null ? void 0 : L.configuration) == null ? void 0 : S.get, k = q ? await q("app.theme") : "", H = w.find((z) => z.id === k);
16359
+ const q = (S = (L = window.linkdesk) == null ? void 0 : L.configuration) == null ? void 0 : S.get, C = q ? await q("app.theme") : "", H = w.find((z) => z.id === C);
16360
16360
  c(
16361
16361
  H ? H.colorways.map((z) => {
16362
16362
  var F;
@@ -16368,11 +16368,11 @@ function ET({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
16368
16368
  }
16369
16369
  }, [n, r, o, h]);
16370
16370
  return re(() => {
16371
- var C, L, S, w, q, k;
16371
+ var k, L, S, w, q, C;
16372
16372
  T();
16373
- const I = (S = (L = (C = window.linkdesk) == null ? void 0 : C.configuration) == null ? void 0 : L.onPluginLifecycleChange) == null ? void 0 : S.call(L, () => {
16373
+ const I = (S = (L = (k = window.linkdesk) == null ? void 0 : k.configuration) == null ? void 0 : L.onPluginLifecycleChange) == null ? void 0 : S.call(L, () => {
16374
16374
  T();
16375
- }), N = n === "theme.colorways" ? (k = (q = (w = window.linkdesk) == null ? void 0 : w.configuration) == null ? void 0 : q.onChange) == null ? void 0 : k.call(q, "app.theme", () => {
16375
+ }), N = n === "theme.colorways" ? (C = (q = (w = window.linkdesk) == null ? void 0 : w.configuration) == null ? void 0 : q.onChange) == null ? void 0 : C.call(q, "app.theme", () => {
16376
16376
  T();
16377
16377
  }) : void 0;
16378
16378
  return () => {
@@ -16411,7 +16411,7 @@ function TT({ value: e, onChange: t, dialogType: n }) {
16411
16411
  /* @__PURE__ */ U(
16412
16412
  "input",
16413
16413
  {
16414
- className: "input",
16414
+ className: "ldk-input",
16415
16415
  type: "text",
16416
16416
  value: e,
16417
16417
  onChange: (u) => t(u.target.value),
@@ -16549,7 +16549,7 @@ function _T({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style
16549
16549
  /* @__PURE__ */ U(
16550
16550
  "input",
16551
16551
  {
16552
- className: "input number-input-field",
16552
+ className: "ldk-input number-input-field",
16553
16553
  type: "text",
16554
16554
  value: e,
16555
16555
  onChange: (h) => {
@@ -16606,13 +16606,13 @@ function AT({ options: e, value: t, onChange: n, ariaLabel: r }) {
16606
16606
  );
16607
16607
  }) });
16608
16608
  }
16609
- function CT({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, ariaLabel: u, disabled: a, style: o }) {
16609
+ function kT({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, ariaLabel: u, disabled: a, style: o }) {
16610
16610
  const l = (d) => Math.min(r, Math.max(n, d)), c = r > n ? (l(e) - n) / (r - n) * 100 : 0;
16611
16611
  return /* @__PURE__ */ U(
16612
16612
  "input",
16613
16613
  {
16614
16614
  type: "range",
16615
- className: "slider",
16615
+ className: "ldk-slider",
16616
16616
  value: l(e),
16617
16617
  min: n,
16618
16618
  max: r,
@@ -16624,7 +16624,7 @@ function CT({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, aria
16624
16624
  }
16625
16625
  );
16626
16626
  }
16627
- function kT({
16627
+ function CT({
16628
16628
  value: e,
16629
16629
  onChange: t,
16630
16630
  locked: n = [],
@@ -16639,11 +16639,11 @@ function kT({
16639
16639
  itemKey: f,
16640
16640
  hint: m
16641
16641
  }) {
16642
- const [h, T] = oe(""), [I, N] = oe(null), C = () => N(null), L = (w) => {
16643
- const q = (k) => {
16644
- if (!f) return k === w;
16642
+ const [h, T] = oe(""), [I, N] = oe(null), k = () => N(null), L = (w) => {
16643
+ const q = (C) => {
16644
+ if (!f) return C === w;
16645
16645
  const H = f(w);
16646
- return H === null ? k === w : f(k) === H;
16646
+ return H === null ? C === w : f(C) === H;
16647
16647
  };
16648
16648
  return n.some(q) || e.some(q);
16649
16649
  }, S = () => {
@@ -16660,22 +16660,22 @@ function kT({
16660
16660
  d && N(d);
16661
16661
  return;
16662
16662
  }
16663
- t([...e, w]), T(""), C();
16663
+ t([...e, w]), T(""), k();
16664
16664
  };
16665
- return /* @__PURE__ */ se("div", { className: "sle", children: [
16666
- n.map((w) => /* @__PURE__ */ se("div", { className: "sle-row sle-row--locked", title: w, children: [
16667
- o && /* @__PURE__ */ U("span", { className: "codicon codicon-link sle-glyph", "aria-hidden": "true" }),
16668
- /* @__PURE__ */ U("span", { className: "sle-url", children: w }),
16669
- r && /* @__PURE__ */ U("span", { className: "sle-badge", children: r }),
16670
- /* @__PURE__ */ U("span", { className: "codicon codicon-lock sle-lock", "aria-hidden": "true" })
16665
+ return /* @__PURE__ */ se("div", { className: "ldk-sle", children: [
16666
+ n.map((w) => /* @__PURE__ */ se("div", { className: "ldk-sle-row ldk-sle-row--locked", title: w, children: [
16667
+ o && /* @__PURE__ */ U("span", { className: "codicon codicon-link ldk-sle-glyph", "aria-hidden": "true" }),
16668
+ /* @__PURE__ */ U("span", { className: "ldk-sle-url", children: w }),
16669
+ r && /* @__PURE__ */ U("span", { className: "ldk-sle-badge", children: r }),
16670
+ /* @__PURE__ */ U("span", { className: "codicon codicon-lock ldk-sle-lock", "aria-hidden": "true" })
16671
16671
  ] }, w)),
16672
- e.map((w) => /* @__PURE__ */ se("div", { className: "sle-row", title: w, children: [
16673
- o && /* @__PURE__ */ U("span", { className: "codicon codicon-link sle-glyph", "aria-hidden": "true" }),
16674
- /* @__PURE__ */ U("span", { className: "sle-url", children: w }),
16672
+ e.map((w) => /* @__PURE__ */ se("div", { className: "ldk-sle-row", title: w, children: [
16673
+ o && /* @__PURE__ */ U("span", { className: "codicon codicon-link ldk-sle-glyph", "aria-hidden": "true" }),
16674
+ /* @__PURE__ */ U("span", { className: "ldk-sle-url", children: w }),
16675
16675
  /* @__PURE__ */ U(
16676
16676
  "button",
16677
16677
  {
16678
- className: "sle-del",
16678
+ className: "ldk-sle-del",
16679
16679
  title: a,
16680
16680
  "aria-label": a,
16681
16681
  onClick: () => t(e.filter((q) => q !== w)),
@@ -16683,27 +16683,27 @@ function kT({
16683
16683
  }
16684
16684
  )
16685
16685
  ] }, w)),
16686
- /* @__PURE__ */ se("div", { className: "sle-add-row", children: [
16686
+ /* @__PURE__ */ se("div", { className: "ldk-sle-add-row", children: [
16687
16687
  /* @__PURE__ */ U(
16688
16688
  "input",
16689
16689
  {
16690
- className: "sle-input",
16690
+ className: "ldk-sle-input",
16691
16691
  type: "text",
16692
16692
  value: h,
16693
16693
  placeholder: i,
16694
16694
  spellCheck: !1,
16695
16695
  onChange: (w) => {
16696
- T(w.target.value), C();
16696
+ T(w.target.value), k();
16697
16697
  },
16698
16698
  onKeyDown: (w) => {
16699
16699
  w.key === "Enter" && S();
16700
16700
  }
16701
16701
  }
16702
16702
  ),
16703
- /* @__PURE__ */ U("button", { className: "sle-add-btn", type: "button", onClick: S, children: u })
16703
+ /* @__PURE__ */ U("button", { className: "ldk-sle-add-btn", type: "button", onClick: S, children: u })
16704
16704
  ] }),
16705
- I && /* @__PURE__ */ U("span", { className: "sle-msg sle-msg--error", children: I }),
16706
- !I && m && /* @__PURE__ */ U("div", { className: "sle-msg sle-msg--hint", children: m })
16705
+ I && /* @__PURE__ */ U("span", { className: "ldk-sle-msg ldk-sle-msg--error", children: I }),
16706
+ !I && m && /* @__PURE__ */ U("div", { className: "ldk-sle-msg ldk-sle-msg--hint", children: m })
16707
16707
  ] });
16708
16708
  }
16709
16709
  const TE = 6, bE = "color-mix(in srgb, var(--text-secondary) 45%, transparent)";
@@ -16760,7 +16760,7 @@ function IT({ value: e, onChange: t }) {
16760
16760
  "aria-label": n("主题配方"),
16761
16761
  onKeyDown: c,
16762
16762
  children: r.map((d, f) => {
16763
- var N, C;
16763
+ var N, k;
16764
16764
  const m = d.colorways.length <= 1, h = (N = d.colorways[0]) == null ? void 0 : N.preview, T = (h == null ? void 0 : h.accent) || bE, I = d.id === e;
16765
16765
  return /* @__PURE__ */ se(
16766
16766
  "button",
@@ -16799,7 +16799,7 @@ function IT({ value: e, onChange: t }) {
16799
16799
  ) }),
16800
16800
  /* @__PURE__ */ se("div", { className: "tname", children: [
16801
16801
  /* @__PURE__ */ U("span", { className: "tname-name", children: d.name }),
16802
- /* @__PURE__ */ U("span", { className: "tbadge", children: m ? ((C = d.colorways[0]) == null ? void 0 : C.name) ?? "" : n("{{count}} 配色", { count: d.colorways.length }) })
16802
+ /* @__PURE__ */ U("span", { className: "tbadge", children: m ? ((k = d.colorways[0]) == null ? void 0 : k.name) ?? "" : n("{{count}} 配色", { count: d.colorways.length }) })
16803
16803
  ] })
16804
16804
  ]
16805
16805
  },
@@ -16813,7 +16813,7 @@ function yT({ checked: e, onChange: t, disabled: n }) {
16813
16813
  return /* @__PURE__ */ U(
16814
16814
  "div",
16815
16815
  {
16816
- className: `toggle${e ? " on" : ""}${n ? " disabled" : ""}`,
16816
+ className: `ldk-toggle${e ? " on" : ""}${n ? " disabled" : ""}`,
16817
16817
  onClick: () => {
16818
16818
  n || t(!e);
16819
16819
  },
@@ -16839,7 +16839,7 @@ const NT = yr(function({
16839
16839
  min: f,
16840
16840
  max: m
16841
16841
  }, h) {
16842
- const T = ce(null), [I, N] = oe(n), [C, L] = oe(!0);
16842
+ const T = ce(null), [I, N] = oe(n), [k, L] = oe(!0);
16843
16843
  eo(h, () => ({
16844
16844
  getValue: () => I
16845
16845
  }), [I]), re(() => {
@@ -16853,26 +16853,26 @@ const NT = yr(function({
16853
16853
  T.current.select();
16854
16854
  });
16855
16855
  }, [l]), re(() => {
16856
- var k, H;
16857
- if (!C) {
16858
- (H = (k = gt().contextKey) == null ? void 0 : k.set) == null || H.call(k, "inputFocus", !1);
16856
+ var C, H;
16857
+ if (!k) {
16858
+ (H = (C = gt().contextKey) == null ? void 0 : C.set) == null || H.call(C, "inputFocus", !1);
16859
16859
  const z = requestAnimationFrame(() => {
16860
16860
  var F, A;
16861
16861
  (A = (F = gt().keybindings) == null ? void 0 : F.setKeybindingCaptureActive) == null || A.call(F, !1);
16862
16862
  });
16863
16863
  return () => cancelAnimationFrame(z);
16864
16864
  }
16865
- }, [C]), re(() => () => {
16866
- var k, H, z, F;
16867
- (H = (k = gt().contextKey) == null ? void 0 : k.set) == null || H.call(k, "inputFocus", !1), (F = (z = gt().keybindings) == null ? void 0 : z.setKeybindingCaptureActive) == null || F.call(z, !1);
16865
+ }, [k]), re(() => () => {
16866
+ var C, H, z, F;
16867
+ (H = (C = gt().contextKey) == null ? void 0 : C.set) == null || H.call(C, "inputFocus", !1), (F = (z = gt().keybindings) == null ? void 0 : z.setKeybindingCaptureActive) == null || F.call(z, !1);
16868
16868
  }, []);
16869
- const S = (k) => {
16870
- k.key === "Enter" ? (k.preventDefault(), L(!1), r(I)) : k.key === "Escape" && (k.preventDefault(), L(!1), i()), k.stopPropagation();
16869
+ const S = (C) => {
16870
+ C.key === "Enter" ? (C.preventDefault(), L(!1), r(I)) : C.key === "Escape" && (C.preventDefault(), L(!1), i()), C.stopPropagation();
16871
16871
  }, w = () => {
16872
- C && (L(!1), r(I));
16872
+ k && (L(!1), r(I));
16873
16873
  }, q = () => {
16874
- var k, H, z, F;
16875
- (H = (k = gt().contextKey) == null ? void 0 : k.set) == null || H.call(k, "inputFocus", !0), (F = (z = gt().keybindings) == null ? void 0 : z.setKeybindingCaptureActive) == null || F.call(z, !0);
16874
+ var C, H, z, F;
16875
+ (H = (C = gt().contextKey) == null ? void 0 : C.set) == null || H.call(C, "inputFocus", !0), (F = (z = gt().keybindings) == null ? void 0 : z.setKeybindingCaptureActive) == null || F.call(z, !0);
16876
16876
  };
16877
16877
  return /* @__PURE__ */ U(
16878
16878
  "input",
@@ -16881,14 +16881,14 @@ const NT = yr(function({
16881
16881
  className: `inline-input inline-input--${t}`,
16882
16882
  type: d,
16883
16883
  value: I,
16884
- onChange: (k) => {
16885
- const H = d === "number" ? k.target.value.replace(/\D/g, "") : k.target.value;
16884
+ onChange: (C) => {
16885
+ const H = d === "number" ? C.target.value.replace(/\D/g, "") : C.target.value;
16886
16886
  N(H), u == null || u(H);
16887
16887
  },
16888
16888
  onKeyDown: S,
16889
16889
  onBlur: w,
16890
16890
  onFocus: q,
16891
- onDragStart: (k) => k.preventDefault(),
16891
+ onDragStart: (C) => C.preventDefault(),
16892
16892
  placeholder: c,
16893
16893
  min: f,
16894
16894
  max: m,
@@ -16944,18 +16944,18 @@ function xT(...e) {
16944
16944
  * This source code is licensed under the ISC license.
16945
16945
  * See the LICENSE file in the root directory of this source tree.
16946
16946
  */
16947
- const CE = (e) => e == null ? void 0 : e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
16947
+ const kE = (e) => e == null ? void 0 : e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
16948
16948
  /**
16949
16949
  * @license lucide-react v1.42.0 - ISC
16950
16950
  *
16951
16951
  * This source code is licensed under the ISC license.
16952
16952
  * See the LICENSE file in the root directory of this source tree.
16953
16953
  */
16954
- function kE(e, t, n = []) {
16954
+ function CE(e, t, n = []) {
16955
16955
  if (t == null)
16956
16956
  throw new Error("[lucide]: iconNode is required when icon name is used");
16957
16957
  return {
16958
- name: CE(e),
16958
+ name: kE(e),
16959
16959
  size: 24,
16960
16960
  node: t,
16961
16961
  ...n.length > 0 ? { aliases: n } : {}
@@ -16994,7 +16994,7 @@ const yE = (e) => {
16994
16994
  * This source code is licensed under the ISC license.
16995
16995
  * See the LICENSE file in the root directory of this source tree.
16996
16996
  */
16997
- const kr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
16997
+ const Cr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
16998
16998
  /**
16999
16999
  * @license lucide-react v1.42.0 - ISC
17000
17000
  *
@@ -17023,7 +17023,7 @@ function ar(e) {
17023
17023
  }
17024
17024
  function NE(e, t = {}) {
17025
17025
  var m, h;
17026
- const n = t.attributeNames ?? {}, r = (T) => n[T] ?? T, i = e.size ?? e.width ?? it.width, u = e.size ?? e.height ?? it.height, a = ((m = e.aliases) == null ? void 0 : m.filter((T) => typeof T == "string" && T.trim() !== "").map((T) => `lucide-${T}`)) ?? [], o = [...e.name ? [`lucide-${e.name}`] : [], ...a], l = ((h = t.className) == null ? void 0 : h.split(" ").filter(Boolean)) ?? [], c = t.includeDefaultClasses === !1 ? kr(...l) : kr("lucide", ...o, ...l), d = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? it["stroke-width"]) * Number(e.size ?? e.width ?? it.width) / Number(t.size ?? t.width ?? it.width) : t.strokeWidth ?? it["stroke-width"];
17026
+ const n = t.attributeNames ?? {}, r = (T) => n[T] ?? T, i = e.size ?? e.width ?? it.width, u = e.size ?? e.height ?? it.height, a = ((m = e.aliases) == null ? void 0 : m.filter((T) => typeof T == "string" && T.trim() !== "").map((T) => `lucide-${T}`)) ?? [], o = [...e.name ? [`lucide-${e.name}`] : [], ...a], l = ((h = t.className) == null ? void 0 : h.split(" ").filter(Boolean)) ?? [], c = t.includeDefaultClasses === !1 ? Cr(...l) : Cr("lucide", ...o, ...l), d = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? it["stroke-width"]) * Number(e.size ?? e.width ?? it.width) / Number(t.size ?? t.width ?? it.width) : t.strokeWidth ?? it["stroke-width"];
17027
17027
  return [
17028
17028
  "svg",
17029
17029
  {
@@ -17052,8 +17052,8 @@ function NE(e, t = {}) {
17052
17052
  ..."attributes" in t && t.attributes
17053
17053
  },
17054
17054
  e.node.map((T) => {
17055
- const [I, N, C] = T, L = t.nonScalingStroke ? { [r("vector-effect")]: "non-scaling-stroke", ...N } : N;
17056
- return C ? [I, L, C] : [I, L];
17055
+ const [I, N, k] = T, L = t.nonScalingStroke ? { [r("vector-effect")]: "non-scaling-stroke", ...N } : N;
17056
+ return k ? [I, L, k] : [I, L];
17057
17057
  })
17058
17058
  ];
17059
17059
  }
@@ -17111,16 +17111,16 @@ const SE = (e) => {
17111
17111
  strokeWidth: T = 2,
17112
17112
  absoluteStrokeWidth: I = !1,
17113
17113
  nonScalingStroke: N = !1,
17114
- color: C = "currentColor",
17114
+ color: k = "currentColor",
17115
17115
  className: L = ""
17116
- } = OE() ?? {}, S = !!l || SE(f), [w, q, k = []] = xE(d, {
17117
- color: e ?? C,
17116
+ } = OE() ?? {}, S = !!l || SE(f), [w, q, C = []] = xE(d, {
17117
+ color: e ?? k,
17118
17118
  width: n ?? t ?? h,
17119
17119
  height: r ?? t ?? h,
17120
17120
  strokeWidth: i ?? T,
17121
17121
  absoluteStrokeWidth: u ?? I,
17122
17122
  nonScalingStroke: a ?? N,
17123
- className: kr(L, o),
17123
+ className: Cr(L, o),
17124
17124
  hasA11yProp: S,
17125
17125
  attributes: f
17126
17126
  });
@@ -17131,7 +17131,7 @@ const SE = (e) => {
17131
17131
  ...q
17132
17132
  },
17133
17133
  [
17134
- ...k.map(([H, z]) => sr(H, z)),
17134
+ ...C.map(([H, z]) => sr(H, z)),
17135
17135
  ...Array.isArray(l) ? l : [l]
17136
17136
  ]
17137
17137
  );
@@ -17144,7 +17144,7 @@ const SE = (e) => {
17144
17144
  * See the LICENSE file in the root directory of this source tree.
17145
17145
  */
17146
17146
  function de(e, t = [], n = []) {
17147
- const r = typeof e == "string" ? kE(e, t, n) : e, i = yr(
17147
+ const r = typeof e == "string" ? CE(e, t, n) : e, i = yr(
17148
17148
  ({ className: u, ...a }, o) => sr(DE, {
17149
17149
  ref: o,
17150
17150
  icon: r,
@@ -17182,7 +17182,7 @@ const RE = de(As);
17182
17182
  * This source code is licensed under the ISC license.
17183
17183
  * See the LICENSE file in the root directory of this source tree.
17184
17184
  */
17185
- const Cs = {
17185
+ const ks = {
17186
17186
  name: "chart-column",
17187
17187
  size: 24,
17188
17188
  node: [
@@ -17193,15 +17193,15 @@ const Cs = {
17193
17193
  ],
17194
17194
  aliases: ["bar-chart-3"]
17195
17195
  };
17196
- Cs.node;
17197
- const wE = de(Cs);
17196
+ ks.node;
17197
+ const wE = de(ks);
17198
17198
  /**
17199
17199
  * @license lucide-react v1.42.0 - ISC
17200
17200
  *
17201
17201
  * This source code is licensed under the ISC license.
17202
17202
  * See the LICENSE file in the root directory of this source tree.
17203
17203
  */
17204
- const ks = {
17204
+ const Cs = {
17205
17205
  name: "download",
17206
17206
  size: 24,
17207
17207
  node: [
@@ -17210,8 +17210,8 @@ const ks = {
17210
17210
  ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
17211
17211
  ]
17212
17212
  };
17213
- ks.node;
17214
- const PE = de(ks);
17213
+ Cs.node;
17214
+ const PE = de(Cs);
17215
17215
  /**
17216
17216
  * @license lucide-react v1.42.0 - ISC
17217
17217
  *
@@ -17786,8 +17786,8 @@ export {
17786
17786
  ST as PluginIcon,
17787
17787
  AT as SegmentedRadio,
17788
17788
  gs as SelectBox,
17789
- CT as Slider,
17790
- kT as StringListEditor,
17789
+ kT as Slider,
17790
+ CT as StringListEditor,
17791
17791
  IT as ThemePicker,
17792
17792
  yT as Toggle,
17793
17793
  wT as inferSliderStep,