@linkdesk/ui 0.2.29 → 0.2.31

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 io, useMemo as ve, useRef as se, useEffect as re, useState as o
7
7
  import fo, { createPortal as Dr } from "react-dom";
8
8
  import { useTranslation as ft } from "react-i18next";
9
9
  const Zt = "data-hint", ho = "data-hint-command", Nu = "data-hint-delay", mo = "data-hint-placement";
10
- function kT({ children: e, title: t }) {
10
+ function CT({ children: e, title: t }) {
11
11
  const n = t ? { [Zt]: t, [Nu]: "0" } : null;
12
12
  return /* @__PURE__ */ F("span", { className: "ldk-badge", ...n, children: e });
13
13
  }
@@ -1229,69 +1229,69 @@ function So() {
1229
1229
  di = 1;
1230
1230
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, u = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, a = /^[;\s]*/, o = /^\s+|\s+$/g, l = `
1231
1231
  `, c = "/", f = "*", d = "", m = "comment", h = "declaration";
1232
- function T(N, k) {
1232
+ function E(N, k) {
1233
1233
  if (typeof N != "string")
1234
1234
  throw new TypeError("First argument must be a string");
1235
1235
  if (!N) return [];
1236
1236
  k = k || {};
1237
1237
  var L = 1, x = 1;
1238
- function P(w) {
1239
- var O = w.match(t);
1238
+ function w(P) {
1239
+ var O = P.match(t);
1240
1240
  O && (L += O.length);
1241
- var V = w.lastIndexOf(l);
1242
- x = ~V ? w.length - V : x + w.length;
1241
+ var V = P.lastIndexOf(l);
1242
+ x = ~V ? P.length - V : x + P.length;
1243
1243
  }
1244
- function z() {
1245
- var w = { line: L, column: x };
1244
+ function U() {
1245
+ var P = { line: L, column: x };
1246
1246
  return function(O) {
1247
- return O.position = new C(w), B(), O;
1247
+ return O.position = new C(P), B(), O;
1248
1248
  };
1249
1249
  }
1250
- function C(w) {
1251
- this.start = w, this.end = { line: L, column: x }, this.source = k.source;
1250
+ function C(P) {
1251
+ this.start = P, this.end = { line: L, column: x }, this.source = k.source;
1252
1252
  }
1253
1253
  C.prototype.content = N;
1254
- function q(w) {
1254
+ function q(P) {
1255
1255
  var O = new Error(
1256
- k.source + ":" + L + ":" + x + ": " + w
1256
+ k.source + ":" + L + ":" + x + ": " + P
1257
1257
  );
1258
- if (O.reason = w, O.filename = k.source, O.line = L, O.column = x, O.source = N, !k.silent) throw O;
1258
+ if (O.reason = P, O.filename = k.source, O.line = L, O.column = x, O.source = N, !k.silent) throw O;
1259
1259
  }
1260
- function W(w) {
1261
- var O = w.exec(N);
1260
+ function W(P) {
1261
+ var O = P.exec(N);
1262
1262
  if (O) {
1263
1263
  var V = O[0];
1264
- return P(V), N = N.slice(V.length), O;
1264
+ return w(V), N = N.slice(V.length), O;
1265
1265
  }
1266
1266
  }
1267
1267
  function B() {
1268
1268
  W(n);
1269
1269
  }
1270
- function _(w) {
1270
+ function _(P) {
1271
1271
  var O;
1272
- for (w = w || []; O = D(); )
1273
- O !== !1 && w.push(O);
1274
- return w;
1272
+ for (P = P || []; O = D(); )
1273
+ O !== !1 && P.push(O);
1274
+ return P;
1275
1275
  }
1276
1276
  function D() {
1277
- var w = z();
1277
+ var P = U();
1278
1278
  if (!(c != N.charAt(0) || f != N.charAt(1))) {
1279
1279
  for (var O = 2; d != N.charAt(O) && (f != N.charAt(O) || c != N.charAt(O + 1)); )
1280
1280
  ++O;
1281
1281
  if (O += 2, d === N.charAt(O - 1))
1282
1282
  return q("End of comment missing");
1283
1283
  var V = N.slice(2, O - 2);
1284
- return x += 2, P(V), N = N.slice(O), x += 2, w({
1284
+ return x += 2, w(V), N = N.slice(O), x += 2, P({
1285
1285
  type: m,
1286
1286
  comment: V
1287
1287
  });
1288
1288
  }
1289
1289
  }
1290
- function U() {
1291
- var w = z(), O = W(r);
1290
+ function z() {
1291
+ var P = U(), O = W(r);
1292
1292
  if (O) {
1293
1293
  if (D(), !W(i)) return q("property missing ':'");
1294
- var V = W(u), j = w({
1294
+ var V = W(u), j = P({
1295
1295
  type: h,
1296
1296
  property: I(O[0].replace(e, d)),
1297
1297
  value: V ? I(V[0].replace(e, d)) : d
@@ -1300,18 +1300,18 @@ function So() {
1300
1300
  }
1301
1301
  }
1302
1302
  function X() {
1303
- var w = [];
1304
- _(w);
1305
- for (var O; O = U(); )
1306
- O !== !1 && (w.push(O), _(w));
1307
- return w;
1303
+ var P = [];
1304
+ _(P);
1305
+ for (var O; O = z(); )
1306
+ O !== !1 && (P.push(O), _(P));
1307
+ return P;
1308
1308
  }
1309
1309
  return B(), X();
1310
1310
  }
1311
1311
  function I(N) {
1312
1312
  return N ? N.replace(o, d) : d;
1313
1313
  }
1314
- return Yn = T, Yn;
1314
+ return Yn = E, Yn;
1315
1315
  }
1316
1316
  var fi;
1317
1317
  function Lo() {
@@ -1985,28 +1985,28 @@ function cl(e) {
1985
1985
  return o;
1986
1986
  function o(x) {
1987
1987
  if (r < n.length) {
1988
- const P = n[r];
1989
- return t.containerState = P[1], e.attempt(P[0].continuation, l, c)(x);
1988
+ const w = n[r];
1989
+ return t.containerState = w[1], e.attempt(w[0].continuation, l, c)(x);
1990
1990
  }
1991
1991
  return c(x);
1992
1992
  }
1993
1993
  function l(x) {
1994
1994
  if (r++, t.containerState._closeFlow) {
1995
1995
  t.containerState._closeFlow = void 0, i && L();
1996
- const P = t.events.length;
1997
- let z = P, C;
1998
- for (; z--; )
1999
- if (t.events[z][0] === "exit" && t.events[z][1].type === "chunkFlow") {
2000
- C = t.events[z][1].end;
1996
+ const w = t.events.length;
1997
+ let U = w, C;
1998
+ for (; U--; )
1999
+ if (t.events[U][0] === "exit" && t.events[U][1].type === "chunkFlow") {
2000
+ C = t.events[U][1].end;
2001
2001
  break;
2002
2002
  }
2003
2003
  k(r);
2004
- let q = P;
2004
+ let q = w;
2005
2005
  for (; q < t.events.length; )
2006
2006
  t.events[q][1].end = {
2007
2007
  ...C
2008
2008
  }, q++;
2009
- return Le(t.events, z + 1, 0, t.events.slice(P)), t.events.length = q, c(x);
2009
+ return Le(t.events, U + 1, 0, t.events.slice(w)), t.events.length = q, c(x);
2010
2010
  }
2011
2011
  return o(x);
2012
2012
  }
@@ -2015,7 +2015,7 @@ function cl(e) {
2015
2015
  if (!i)
2016
2016
  return m(x);
2017
2017
  if (i.currentConstruct && i.currentConstruct.concrete)
2018
- return T(x);
2018
+ return E(x);
2019
2019
  t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
2020
2020
  }
2021
2021
  return t.containerState = {}, e.check(_i, f, d)(x);
@@ -2024,15 +2024,15 @@ function cl(e) {
2024
2024
  return i && L(), k(r), m(x);
2025
2025
  }
2026
2026
  function d(x) {
2027
- return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, T(x);
2027
+ return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, E(x);
2028
2028
  }
2029
2029
  function m(x) {
2030
- return t.containerState = {}, e.attempt(_i, h, T)(x);
2030
+ return t.containerState = {}, e.attempt(_i, h, E)(x);
2031
2031
  }
2032
2032
  function h(x) {
2033
2033
  return r++, n.push([t.currentConstruct, t.containerState]), m(x);
2034
2034
  }
2035
- function T(x) {
2035
+ function E(x) {
2036
2036
  if (x === null) {
2037
2037
  i && L(), k(0), e.consume(x);
2038
2038
  return;
@@ -2050,9 +2050,9 @@ function cl(e) {
2050
2050
  }
2051
2051
  return $(x) ? (e.consume(x), N(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(x), I);
2052
2052
  }
2053
- function N(x, P) {
2054
- const z = t.sliceStream(x);
2055
- if (P && z.push(null), x.previous = u, u && (u.next = x), u = x, i.defineSkip(x.start), i.write(z), t.parser.lazy[x.start.line]) {
2053
+ function N(x, w) {
2054
+ const U = t.sliceStream(x);
2055
+ if (w && U.push(null), x.previous = u, u && (u.next = x), u = x, i.defineSkip(x.start), i.write(U), t.parser.lazy[x.start.line]) {
2056
2056
  let C = i.events.length;
2057
2057
  for (; C--; )
2058
2058
  if (
@@ -2080,10 +2080,10 @@ function cl(e) {
2080
2080
  }
2081
2081
  }
2082
2082
  function k(x) {
2083
- let P = n.length;
2084
- for (; P-- > x; ) {
2085
- const z = n[P];
2086
- t.containerState = z[1], z[0].exit.call(t, e);
2083
+ let w = n.length;
2084
+ for (; w-- > x; ) {
2085
+ const U = n[w];
2086
+ t.containerState = U[1], U[0].exit.call(t, e);
2087
2087
  }
2088
2088
  n.length = x;
2089
2089
  }
@@ -2219,8 +2219,8 @@ function pl(e, t, n) {
2219
2219
  }
2220
2220
  function m(h) {
2221
2221
  if ((h === 45 || _e(h)) && r++ < 63) {
2222
- const T = h === 45 ? m : d;
2223
- return e.consume(h), T;
2222
+ const E = h === 45 ? m : d;
2223
+ return e.consume(h), E;
2224
2224
  }
2225
2225
  return n(h);
2226
2226
  }
@@ -2324,7 +2324,7 @@ const ki = {
2324
2324
  function kl(e, t, n) {
2325
2325
  const r = this, i = {
2326
2326
  partial: !0,
2327
- tokenize: z
2327
+ tokenize: U
2328
2328
  };
2329
2329
  let u = 0, a = 0, o;
2330
2330
  return l;
@@ -2339,7 +2339,7 @@ function kl(e, t, n) {
2339
2339
  return C === o ? (a++, e.consume(C), f) : a < 3 ? n(C) : (e.exit("codeFencedFenceSequence"), ee(C) ? ne(e, d, "whitespace")(C) : d(C));
2340
2340
  }
2341
2341
  function d(C) {
2342
- return C === null || $(C) ? (e.exit("codeFencedFence"), r.interrupt ? t(C) : e.check(ki, I, P)(C)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2342
+ return C === null || $(C) ? (e.exit("codeFencedFence"), r.interrupt ? t(C) : e.check(ki, I, w)(C)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2343
2343
  contentType: "string"
2344
2344
  }), m(C));
2345
2345
  }
@@ -2349,13 +2349,13 @@ function kl(e, t, n) {
2349
2349
  function h(C) {
2350
2350
  return C === null || $(C) ? d(C) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
2351
2351
  contentType: "string"
2352
- }), T(C));
2352
+ }), E(C));
2353
2353
  }
2354
- function T(C) {
2355
- return C === null || $(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(C)) : C === 96 && C === o ? n(C) : (e.consume(C), T);
2354
+ function E(C) {
2355
+ return C === null || $(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(C)) : C === 96 && C === o ? n(C) : (e.consume(C), E);
2356
2356
  }
2357
2357
  function I(C) {
2358
- return e.attempt(i, P, N)(C);
2358
+ return e.attempt(i, w, N)(C);
2359
2359
  }
2360
2360
  function N(C) {
2361
2361
  return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), k;
@@ -2364,30 +2364,30 @@ function kl(e, t, n) {
2364
2364
  return u > 0 && ee(C) ? ne(e, L, "linePrefix", u + 1)(C) : L(C);
2365
2365
  }
2366
2366
  function L(C) {
2367
- return C === null || $(C) ? e.check(ki, I, P)(C) : (e.enter("codeFlowValue"), x(C));
2367
+ return C === null || $(C) ? e.check(ki, I, w)(C) : (e.enter("codeFlowValue"), x(C));
2368
2368
  }
2369
2369
  function x(C) {
2370
2370
  return C === null || $(C) ? (e.exit("codeFlowValue"), L(C)) : (e.consume(C), x);
2371
2371
  }
2372
- function P(C) {
2372
+ function w(C) {
2373
2373
  return e.exit("codeFenced"), t(C);
2374
2374
  }
2375
- function z(C, q, W) {
2375
+ function U(C, q, W) {
2376
2376
  let B = 0;
2377
2377
  return _;
2378
2378
  function _(O) {
2379
2379
  return C.enter("lineEnding"), C.consume(O), C.exit("lineEnding"), D;
2380
2380
  }
2381
2381
  function D(O) {
2382
- return C.enter("codeFencedFence"), ee(O) ? ne(C, U, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : U(O);
2382
+ return C.enter("codeFencedFence"), ee(O) ? ne(C, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : z(O);
2383
2383
  }
2384
- function U(O) {
2384
+ function z(O) {
2385
2385
  return O === o ? (C.enter("codeFencedFenceSequence"), X(O)) : W(O);
2386
2386
  }
2387
2387
  function X(O) {
2388
- return O === o ? (B++, C.consume(O), X) : B >= a ? (C.exit("codeFencedFenceSequence"), ee(O) ? ne(C, w, "whitespace")(O) : w(O)) : W(O);
2388
+ return O === o ? (B++, C.consume(O), X) : B >= a ? (C.exit("codeFencedFenceSequence"), ee(O) ? ne(C, P, "whitespace")(O) : P(O)) : W(O);
2389
2389
  }
2390
- function w(O) {
2390
+ function P(O) {
2391
2391
  return O === null || $(O) ? (C.exit("codeFencedFence"), q(O)) : W(O);
2392
2392
  }
2393
2393
  }
@@ -2684,7 +2684,7 @@ function Rl(e, t) {
2684
2684
  let a = n._tokenizer;
2685
2685
  a || (a = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (a._contentTypeTextTrailing = !0));
2686
2686
  const o = a.events, l = [], c = {};
2687
- let f, d, m = -1, h = n, T = 0, I = 0;
2687
+ let f, d, m = -1, h = n, E = 0, I = 0;
2688
2688
  const N = [I];
2689
2689
  for (; h; ) {
2690
2690
  for (; e.get(++i)[1] !== h; )
@@ -2699,7 +2699,7 @@ function Rl(e, t) {
2699
2699
  l.push([L, L + k.length - 1]), e.splice(L, 2, k);
2700
2700
  }
2701
2701
  for (l.reverse(), m = -1; ++m < l.length; )
2702
- c[T + l[m][0]] = T + l[m][1], T += l[m][1] - l[m][0] - 1;
2702
+ c[E + l[m][0]] = E + l[m][1], E += l[m][1] - l[m][0] - 1;
2703
2703
  return c;
2704
2704
  }
2705
2705
  const wl = {
@@ -2761,9 +2761,9 @@ function Ku(e, t, n, r, i, u, a, o, l) {
2761
2761
  }), h(k));
2762
2762
  }
2763
2763
  function h(k) {
2764
- return k === 62 ? (e.exit("chunkString"), e.exit(o), m(k)) : k === null || k === 60 || $(k) ? n(k) : (e.consume(k), k === 92 ? T : h);
2764
+ return k === 62 ? (e.exit("chunkString"), e.exit(o), m(k)) : k === null || k === 60 || $(k) ? n(k) : (e.consume(k), k === 92 ? E : h);
2765
2765
  }
2766
- function T(k) {
2766
+ function E(k) {
2767
2767
  return k === 60 || k === 62 || k === 92 ? (e.consume(k), h) : h(k);
2768
2768
  }
2769
2769
  function I(k) {
@@ -3043,14 +3043,14 @@ function Jl(e, t, n) {
3043
3043
  return A === 33 ? (e.consume(A), m) : A === 47 ? (e.consume(A), u = !0, I) : A === 63 ? (e.consume(A), i = 3, r.interrupt ? t : g) : Ce(A) ? (e.consume(A), a = String.fromCharCode(A), N) : n(A);
3044
3044
  }
3045
3045
  function m(A) {
3046
- return A === 45 ? (e.consume(A), i = 2, h) : A === 91 ? (e.consume(A), i = 5, o = 0, T) : Ce(A) ? (e.consume(A), i = 4, r.interrupt ? t : g) : n(A);
3046
+ return A === 45 ? (e.consume(A), i = 2, h) : A === 91 ? (e.consume(A), i = 5, o = 0, E) : Ce(A) ? (e.consume(A), i = 4, r.interrupt ? t : g) : n(A);
3047
3047
  }
3048
3048
  function h(A) {
3049
3049
  return A === 45 ? (e.consume(A), r.interrupt ? t : g) : n(A);
3050
3050
  }
3051
- function T(A) {
3051
+ function E(A) {
3052
3052
  const Re = "CDATA[";
3053
- return A === Re.charCodeAt(o++) ? (e.consume(A), o === Re.length ? r.interrupt ? t : U : T) : n(A);
3053
+ return A === Re.charCodeAt(o++) ? (e.consume(A), o === Re.length ? r.interrupt ? t : z : E) : n(A);
3054
3054
  }
3055
3055
  function I(A) {
3056
3056
  return Ce(A) ? (e.consume(A), a = String.fromCharCode(A), N) : n(A);
@@ -3058,24 +3058,24 @@ function Jl(e, t, n) {
3058
3058
  function N(A) {
3059
3059
  if (A === null || A === 47 || A === 62 || le(A)) {
3060
3060
  const Re = A === 47, tt = a.toLowerCase();
3061
- return !Re && !u && Ii.includes(tt) ? (i = 1, r.interrupt ? t(A) : U(A)) : $l.includes(a.toLowerCase()) ? (i = 6, Re ? (e.consume(A), k) : r.interrupt ? t(A) : U(A)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(A) : u ? L(A) : x(A));
3061
+ return !Re && !u && Ii.includes(tt) ? (i = 1, r.interrupt ? t(A) : z(A)) : $l.includes(a.toLowerCase()) ? (i = 6, Re ? (e.consume(A), k) : r.interrupt ? t(A) : z(A)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(A) : u ? L(A) : x(A));
3062
3062
  }
3063
3063
  return A === 45 || _e(A) ? (e.consume(A), a += String.fromCharCode(A), N) : n(A);
3064
3064
  }
3065
3065
  function k(A) {
3066
- return A === 62 ? (e.consume(A), r.interrupt ? t : U) : n(A);
3066
+ return A === 62 ? (e.consume(A), r.interrupt ? t : z) : n(A);
3067
3067
  }
3068
3068
  function L(A) {
3069
3069
  return ee(A) ? (e.consume(A), L) : _(A);
3070
3070
  }
3071
3071
  function x(A) {
3072
- return A === 47 ? (e.consume(A), _) : A === 58 || A === 95 || Ce(A) ? (e.consume(A), P) : ee(A) ? (e.consume(A), x) : _(A);
3072
+ return A === 47 ? (e.consume(A), _) : A === 58 || A === 95 || Ce(A) ? (e.consume(A), w) : ee(A) ? (e.consume(A), x) : _(A);
3073
3073
  }
3074
- function P(A) {
3075
- return A === 45 || A === 46 || A === 58 || A === 95 || _e(A) ? (e.consume(A), P) : z(A);
3074
+ function w(A) {
3075
+ return A === 45 || A === 46 || A === 58 || A === 95 || _e(A) ? (e.consume(A), w) : U(A);
3076
3076
  }
3077
- function z(A) {
3078
- return A === 61 ? (e.consume(A), C) : ee(A) ? (e.consume(A), z) : x(A);
3077
+ function U(A) {
3078
+ return A === 61 ? (e.consume(A), C) : ee(A) ? (e.consume(A), U) : x(A);
3079
3079
  }
3080
3080
  function C(A) {
3081
3081
  return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), l = A, q) : ee(A) ? (e.consume(A), C) : W(A);
@@ -3084,7 +3084,7 @@ function Jl(e, t, n) {
3084
3084
  return A === l ? (e.consume(A), l = null, B) : A === null || $(A) ? n(A) : (e.consume(A), q);
3085
3085
  }
3086
3086
  function W(A) {
3087
- return A === null || A === 34 || A === 39 || A === 47 || A === 60 || A === 61 || A === 62 || A === 96 || le(A) ? z(A) : (e.consume(A), W);
3087
+ return A === null || A === 34 || A === 39 || A === 47 || A === 60 || A === 61 || A === 62 || A === 96 || le(A) ? U(A) : (e.consume(A), W);
3088
3088
  }
3089
3089
  function B(A) {
3090
3090
  return A === 47 || A === 62 || ee(A) ? x(A) : n(A);
@@ -3093,38 +3093,38 @@ function Jl(e, t, n) {
3093
3093
  return A === 62 ? (e.consume(A), D) : n(A);
3094
3094
  }
3095
3095
  function D(A) {
3096
- return A === null || $(A) ? U(A) : ee(A) ? (e.consume(A), D) : n(A);
3096
+ return A === null || $(A) ? z(A) : ee(A) ? (e.consume(A), D) : n(A);
3097
3097
  }
3098
- function U(A) {
3099
- return A === 45 && i === 2 ? (e.consume(A), V) : A === 60 && i === 1 ? (e.consume(A), j) : A === 62 && i === 4 ? (e.consume(A), me) : A === 63 && i === 3 ? (e.consume(A), g) : A === 93 && i === 5 ? (e.consume(A), G) : $(A) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Ql, ge, X)(A)) : A === null || $(A) ? (e.exit("htmlFlowData"), X(A)) : (e.consume(A), U);
3098
+ function z(A) {
3099
+ return A === 45 && i === 2 ? (e.consume(A), V) : A === 60 && i === 1 ? (e.consume(A), j) : A === 62 && i === 4 ? (e.consume(A), me) : A === 63 && i === 3 ? (e.consume(A), g) : A === 93 && i === 5 ? (e.consume(A), G) : $(A) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Ql, ge, X)(A)) : A === null || $(A) ? (e.exit("htmlFlowData"), X(A)) : (e.consume(A), z);
3100
3100
  }
3101
3101
  function X(A) {
3102
- return e.check(Kl, w, ge)(A);
3102
+ return e.check(Kl, P, ge)(A);
3103
3103
  }
3104
- function w(A) {
3104
+ function P(A) {
3105
3105
  return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), O;
3106
3106
  }
3107
3107
  function O(A) {
3108
- return A === null || $(A) ? X(A) : (e.enter("htmlFlowData"), U(A));
3108
+ return A === null || $(A) ? X(A) : (e.enter("htmlFlowData"), z(A));
3109
3109
  }
3110
3110
  function V(A) {
3111
- return A === 45 ? (e.consume(A), g) : U(A);
3111
+ return A === 45 ? (e.consume(A), g) : z(A);
3112
3112
  }
3113
3113
  function j(A) {
3114
- return A === 47 ? (e.consume(A), a = "", Z) : U(A);
3114
+ return A === 47 ? (e.consume(A), a = "", Z) : z(A);
3115
3115
  }
3116
3116
  function Z(A) {
3117
3117
  if (A === 62) {
3118
3118
  const Re = a.toLowerCase();
3119
- return Ii.includes(Re) ? (e.consume(A), me) : U(A);
3119
+ return Ii.includes(Re) ? (e.consume(A), me) : z(A);
3120
3120
  }
3121
- return Ce(A) && a.length < 8 ? (e.consume(A), a += String.fromCharCode(A), Z) : U(A);
3121
+ return Ce(A) && a.length < 8 ? (e.consume(A), a += String.fromCharCode(A), Z) : z(A);
3122
3122
  }
3123
3123
  function G(A) {
3124
- return A === 93 ? (e.consume(A), g) : U(A);
3124
+ return A === 93 ? (e.consume(A), g) : z(A);
3125
3125
  }
3126
3126
  function g(A) {
3127
- return A === 62 ? (e.consume(A), me) : A === 45 && i === 2 ? (e.consume(A), g) : U(A);
3127
+ return A === 62 ? (e.consume(A), me) : A === 45 && i === 2 ? (e.consume(A), g) : z(A);
3128
3128
  }
3129
3129
  function me(A) {
3130
3130
  return A === null || $(A) ? (e.exit("htmlFlowData"), ge(A)) : (e.consume(A), me);
@@ -3161,10 +3161,10 @@ function nc(e, t, n) {
3161
3161
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(g), l;
3162
3162
  }
3163
3163
  function l(g) {
3164
- return g === 33 ? (e.consume(g), c) : g === 47 ? (e.consume(g), z) : g === 63 ? (e.consume(g), x) : Ce(g) ? (e.consume(g), W) : n(g);
3164
+ return g === 33 ? (e.consume(g), c) : g === 47 ? (e.consume(g), U) : g === 63 ? (e.consume(g), x) : Ce(g) ? (e.consume(g), W) : n(g);
3165
3165
  }
3166
3166
  function c(g) {
3167
- return g === 45 ? (e.consume(g), f) : g === 91 ? (e.consume(g), u = 0, T) : Ce(g) ? (e.consume(g), L) : n(g);
3167
+ return g === 45 ? (e.consume(g), f) : g === 91 ? (e.consume(g), u = 0, E) : Ce(g) ? (e.consume(g), L) : n(g);
3168
3168
  }
3169
3169
  function f(g) {
3170
3170
  return g === 45 ? (e.consume(g), h) : n(g);
@@ -3178,9 +3178,9 @@ function nc(e, t, n) {
3178
3178
  function h(g) {
3179
3179
  return g === 62 ? V(g) : g === 45 ? m(g) : d(g);
3180
3180
  }
3181
- function T(g) {
3181
+ function E(g) {
3182
3182
  const me = "CDATA[";
3183
- return g === me.charCodeAt(u++) ? (e.consume(g), u === me.length ? I : T) : n(g);
3183
+ return g === me.charCodeAt(u++) ? (e.consume(g), u === me.length ? I : E) : n(g);
3184
3184
  }
3185
3185
  function I(g) {
3186
3186
  return g === null ? n(g) : g === 93 ? (e.consume(g), N) : $(g) ? (a = I, j(g)) : (e.consume(g), I);
@@ -3195,12 +3195,12 @@ function nc(e, t, n) {
3195
3195
  return g === null || g === 62 ? V(g) : $(g) ? (a = L, j(g)) : (e.consume(g), L);
3196
3196
  }
3197
3197
  function x(g) {
3198
- return g === null ? n(g) : g === 63 ? (e.consume(g), P) : $(g) ? (a = x, j(g)) : (e.consume(g), x);
3198
+ return g === null ? n(g) : g === 63 ? (e.consume(g), w) : $(g) ? (a = x, j(g)) : (e.consume(g), x);
3199
3199
  }
3200
- function P(g) {
3200
+ function w(g) {
3201
3201
  return g === 62 ? V(g) : x(g);
3202
3202
  }
3203
- function z(g) {
3203
+ function U(g) {
3204
3204
  return Ce(g) ? (e.consume(g), C) : n(g);
3205
3205
  }
3206
3206
  function C(g) {
@@ -3219,16 +3219,16 @@ function nc(e, t, n) {
3219
3219
  return g === 45 || g === 46 || g === 58 || g === 95 || _e(g) ? (e.consume(g), _) : D(g);
3220
3220
  }
3221
3221
  function D(g) {
3222
- return g === 61 ? (e.consume(g), U) : $(g) ? (a = D, j(g)) : ee(g) ? (e.consume(g), D) : B(g);
3222
+ return g === 61 ? (e.consume(g), z) : $(g) ? (a = D, j(g)) : ee(g) ? (e.consume(g), D) : B(g);
3223
3223
  }
3224
- function U(g) {
3225
- return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), i = g, X) : $(g) ? (a = U, j(g)) : ee(g) ? (e.consume(g), U) : (e.consume(g), w);
3224
+ function z(g) {
3225
+ return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), i = g, X) : $(g) ? (a = z, j(g)) : ee(g) ? (e.consume(g), z) : (e.consume(g), P);
3226
3226
  }
3227
3227
  function X(g) {
3228
3228
  return g === i ? (e.consume(g), i = void 0, O) : g === null ? n(g) : $(g) ? (a = X, j(g)) : (e.consume(g), X);
3229
3229
  }
3230
- function w(g) {
3231
- return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || le(g) ? B(g) : (e.consume(g), w);
3230
+ function P(g) {
3231
+ return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || le(g) ? B(g) : (e.consume(g), P);
3232
3232
  }
3233
3233
  function O(g) {
3234
3234
  return g === 47 || g === 62 || le(g) ? B(g) : n(g);
@@ -3469,11 +3469,11 @@ function _c(e, t, n) {
3469
3469
  let u = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, a = 0;
3470
3470
  return o;
3471
3471
  function o(h) {
3472
- const T = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
3473
- if (T === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : pr(h)) {
3474
- if (r.containerState.type || (r.containerState.type = T, e.enter(T, {
3472
+ const E = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
3473
+ if (E === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : pr(h)) {
3474
+ if (r.containerState.type || (r.containerState.type = E, e.enter(E, {
3475
3475
  _container: !0
3476
- })), T === "listUnordered")
3476
+ })), E === "listUnordered")
3477
3477
  return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(bn, n, c)(h) : c(h);
3478
3478
  if (!r.interrupt || h === 49)
3479
3479
  return e.enter("listItemPrefix"), e.enter("listItemValue"), l(h);
@@ -3777,11 +3777,11 @@ function qc(e, t, n) {
3777
3777
  const i = {}, u = [];
3778
3778
  let a = [], o = [];
3779
3779
  const l = {
3780
- attempt: q(z),
3780
+ attempt: q(U),
3781
3781
  check: q(C),
3782
3782
  consume: L,
3783
3783
  enter: x,
3784
- exit: P,
3784
+ exit: w,
3785
3785
  interrupt: q(C, {
3786
3786
  interrupt: !0
3787
3787
  })
@@ -3790,7 +3790,7 @@ function qc(e, t, n) {
3790
3790
  containerState: {},
3791
3791
  defineSkip: I,
3792
3792
  events: [],
3793
- now: T,
3793
+ now: E,
3794
3794
  parser: e,
3795
3795
  previous: null,
3796
3796
  sliceSerialize: m,
@@ -3802,25 +3802,25 @@ function qc(e, t, n) {
3802
3802
  function d(D) {
3803
3803
  return a = Oe(a, D), N(), a[a.length - 1] !== null ? [] : (W(t, 0), c.events = Dn(u, c.events, c), c.events);
3804
3804
  }
3805
- function m(D, U) {
3806
- return Wc(h(D), U);
3805
+ function m(D, z) {
3806
+ return Wc(h(D), z);
3807
3807
  }
3808
3808
  function h(D) {
3809
3809
  return Vc(a, D);
3810
3810
  }
3811
- function T() {
3811
+ function E() {
3812
3812
  const {
3813
3813
  _bufferIndex: D,
3814
- _index: U,
3814
+ _index: z,
3815
3815
  line: X,
3816
- column: w,
3816
+ column: P,
3817
3817
  offset: O
3818
3818
  } = r;
3819
3819
  return {
3820
3820
  _bufferIndex: D,
3821
- _index: U,
3821
+ _index: z,
3822
3822
  line: X,
3823
- column: w,
3823
+ column: P,
3824
3824
  offset: O
3825
3825
  };
3826
3826
  }
@@ -3830,12 +3830,12 @@ function qc(e, t, n) {
3830
3830
  function N() {
3831
3831
  let D;
3832
3832
  for (; r._index < a.length; ) {
3833
- const U = a[r._index];
3834
- if (typeof U == "string")
3835
- for (D = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === D && r._bufferIndex < U.length; )
3836
- k(U.charCodeAt(r._bufferIndex));
3833
+ const z = a[r._index];
3834
+ if (typeof z == "string")
3835
+ for (D = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === D && r._bufferIndex < z.length; )
3836
+ k(z.charCodeAt(r._bufferIndex));
3837
3837
  else
3838
- k(U);
3838
+ k(z);
3839
3839
  }
3840
3840
  }
3841
3841
  function k(D) {
@@ -3847,34 +3847,34 @@ function qc(e, t, n) {
3847
3847
  /** @type {string} */
3848
3848
  a[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = D;
3849
3849
  }
3850
- function x(D, U) {
3851
- const X = U || {};
3852
- return X.type = D, X.start = T(), c.events.push(["enter", X, c]), o.push(X), X;
3850
+ function x(D, z) {
3851
+ const X = z || {};
3852
+ return X.type = D, X.start = E(), c.events.push(["enter", X, c]), o.push(X), X;
3853
3853
  }
3854
- function P(D) {
3855
- const U = o.pop();
3856
- return U.end = T(), c.events.push(["exit", U, c]), U;
3854
+ function w(D) {
3855
+ const z = o.pop();
3856
+ return z.end = E(), c.events.push(["exit", z, c]), z;
3857
3857
  }
3858
- function z(D, U) {
3859
- W(D, U.from);
3858
+ function U(D, z) {
3859
+ W(D, z.from);
3860
3860
  }
3861
- function C(D, U) {
3862
- U.restore();
3861
+ function C(D, z) {
3862
+ z.restore();
3863
3863
  }
3864
- function q(D, U) {
3864
+ function q(D, z) {
3865
3865
  return X;
3866
- function X(w, O, V) {
3866
+ function X(P, O, V) {
3867
3867
  let j, Z, G, g;
3868
- return Array.isArray(w) ? (
3868
+ return Array.isArray(P) ? (
3869
3869
  /* c8 ignore next 1 */
3870
- ge(w)
3871
- ) : "tokenize" in w ? (
3870
+ ge(P)
3871
+ ) : "tokenize" in P ? (
3872
3872
  // Looks like a construct.
3873
3873
  ge([
3874
3874
  /** @type {Construct} */
3875
- w
3875
+ P
3876
3876
  ])
3877
- ) : me(w);
3877
+ ) : me(P);
3878
3878
  function me(be) {
3879
3879
  return Ot;
3880
3880
  function Ot(je) {
@@ -3897,7 +3897,7 @@ function qc(e, t, n) {
3897
3897
  // If we do have fields, create an object w/ `context` as its
3898
3898
  // prototype.
3899
3899
  // This allows a “live binding”, which is needed for `interrupt`.
3900
- U ? Object.assign(Object.create(c), U) : c,
3900
+ z ? Object.assign(Object.create(c), z) : c,
3901
3901
  l,
3902
3902
  Re,
3903
3903
  tt
@@ -3912,17 +3912,17 @@ function qc(e, t, n) {
3912
3912
  }
3913
3913
  }
3914
3914
  }
3915
- function W(D, U) {
3916
- D.resolveAll && !u.includes(D) && u.push(D), D.resolve && Le(c.events, U, c.events.length - U, D.resolve(c.events.slice(U), c)), D.resolveTo && (c.events = D.resolveTo(c.events, c));
3915
+ function W(D, z) {
3916
+ D.resolveAll && !u.includes(D) && u.push(D), D.resolve && Le(c.events, z, c.events.length - z, D.resolve(c.events.slice(z), c)), D.resolveTo && (c.events = D.resolveTo(c.events, c));
3917
3917
  }
3918
3918
  function B() {
3919
- const D = T(), U = c.previous, X = c.currentConstruct, w = c.events.length, O = Array.from(o);
3919
+ const D = E(), z = c.previous, X = c.currentConstruct, P = c.events.length, O = Array.from(o);
3920
3920
  return {
3921
- from: w,
3921
+ from: P,
3922
3922
  restore: V
3923
3923
  };
3924
3924
  function V() {
3925
- r = D, c.previous = U, c.currentConstruct = X, c.events.length = w, o = O, _();
3925
+ r = D, c.previous = z, c.currentConstruct = X, c.events.length = P, o = O, _();
3926
3926
  }
3927
3927
  }
3928
3928
  function _() {
@@ -4112,7 +4112,7 @@ function Zc(e) {
4112
4112
  },
4113
4113
  exit: {
4114
4114
  atxHeading: l(),
4115
- atxHeadingSequence: z,
4115
+ atxHeadingSequence: U,
4116
4116
  autolink: l(),
4117
4117
  autolinkEmail: pt,
4118
4118
  autolinkProtocol: je,
@@ -4125,22 +4125,22 @@ function Zc(e) {
4125
4125
  codeFenced: l(N),
4126
4126
  codeFencedFence: I,
4127
4127
  codeFencedFenceInfo: h,
4128
- codeFencedFenceMeta: T,
4128
+ codeFencedFenceMeta: E,
4129
4129
  codeFlowValue: _,
4130
4130
  codeIndented: l(k),
4131
4131
  codeText: l(O),
4132
4132
  codeTextData: _,
4133
4133
  data: _,
4134
4134
  definition: l(),
4135
- definitionDestinationString: P,
4135
+ definitionDestinationString: w,
4136
4136
  definitionLabelString: L,
4137
4137
  definitionTitleString: x,
4138
4138
  emphasis: l(),
4139
- hardBreakEscape: l(U),
4140
- hardBreakTrailing: l(U),
4139
+ hardBreakEscape: l(z),
4140
+ hardBreakTrailing: l(z),
4141
4141
  htmlFlow: l(X),
4142
4142
  htmlFlowData: _,
4143
- htmlText: l(w),
4143
+ htmlText: l(P),
4144
4144
  htmlTextData: _,
4145
4145
  image: l(j),
4146
4146
  label: G,
@@ -4315,7 +4315,7 @@ function Zc(e) {
4315
4315
  const R = this.resume(), Y = this.stack[this.stack.length - 1];
4316
4316
  Y.lang = R;
4317
4317
  }
4318
- function T() {
4318
+ function E() {
4319
4319
  const R = this.resume(), Y = this.stack[this.stack.length - 1];
4320
4320
  Y.meta = R;
4321
4321
  }
@@ -4338,11 +4338,11 @@ function Zc(e) {
4338
4338
  const R = this.resume(), Y = this.stack[this.stack.length - 1];
4339
4339
  Y.title = R;
4340
4340
  }
4341
- function P() {
4341
+ function w() {
4342
4342
  const R = this.resume(), Y = this.stack[this.stack.length - 1];
4343
4343
  Y.url = R;
4344
4344
  }
4345
- function z(R) {
4345
+ function U(R) {
4346
4346
  const Y = this.stack[this.stack.length - 1];
4347
4347
  if (!Y.depth) {
4348
4348
  const K = this.sliceSerialize(R).length;
@@ -4381,14 +4381,14 @@ function Zc(e) {
4381
4381
  }
4382
4382
  !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Y.type) && (B.call(this, R), _.call(this, R));
4383
4383
  }
4384
- function U() {
4384
+ function z() {
4385
4385
  this.data.atHardBreak = !0;
4386
4386
  }
4387
4387
  function X() {
4388
4388
  const R = this.resume(), Y = this.stack[this.stack.length - 1];
4389
4389
  Y.value = R;
4390
4390
  }
4391
- function w() {
4391
+ function P() {
4392
4392
  const R = this.resume(), Y = this.stack[this.stack.length - 1];
4393
4393
  Y.value = R;
4394
4394
  }
@@ -4901,8 +4901,8 @@ function k0(e, t, n) {
4901
4901
  for (; ++l < o; ) {
4902
4902
  const d = t.children[l], m = {}, h = a ? a[l] : void 0;
4903
4903
  h && (m.align = h);
4904
- let T = { type: "element", tagName: u, properties: m, children: [] };
4905
- d && (T.children = e.all(d), e.patch(d, T), T = e.applyData(d, T)), c.push(T);
4904
+ let E = { type: "element", tagName: u, properties: m, children: [] };
4905
+ d && (E.children = e.all(d), e.patch(d, E), E = e.applyData(d, E)), c.push(E);
4906
4906
  }
4907
4907
  const f = {
4908
4908
  type: "element",
@@ -5207,11 +5207,11 @@ function F0(e) {
5207
5207
  continue;
5208
5208
  const f = e.all(c), d = String(c.identifier).toUpperCase(), m = Nt(d.toLowerCase());
5209
5209
  let h = 0;
5210
- const T = [], I = e.footnoteCounts.get(d);
5210
+ const E = [], I = e.footnoteCounts.get(d);
5211
5211
  for (; I !== void 0 && ++h <= I; ) {
5212
- T.length > 0 && T.push({ type: "text", value: " " });
5212
+ E.length > 0 && E.push({ type: "text", value: " " });
5213
5213
  let L = typeof n == "string" ? n : n(l, h);
5214
- typeof L == "string" && (L = { type: "text", value: L }), T.push({
5214
+ typeof L == "string" && (L = { type: "text", value: L }), E.push({
5215
5215
  type: "element",
5216
5216
  tagName: "a",
5217
5217
  properties: {
@@ -5226,9 +5226,9 @@ function F0(e) {
5226
5226
  const N = f[f.length - 1];
5227
5227
  if (N && N.type === "element" && N.tagName === "p") {
5228
5228
  const L = N.children[N.children.length - 1];
5229
- L && L.type === "text" ? L.value += " " : N.children.push({ type: "text", value: " " }), N.children.push(...T);
5229
+ L && L.type === "text" ? L.value += " " : N.children.push({ type: "text", value: " " }), N.children.push(...E);
5230
5230
  } else
5231
- f.push(...T);
5231
+ f.push(...E);
5232
5232
  const k = {
5233
5233
  type: "element",
5234
5234
  tagName: "li",
@@ -5378,7 +5378,7 @@ function ca(e, t, n, r) {
5378
5378
  }
5379
5379
  return m;
5380
5380
  function m() {
5381
- let h = la, T, I, N;
5381
+ let h = la, E, I, N;
5382
5382
  if ((!t || u(l, c, f[f.length - 1] || void 0)) && (h = V0(n(l, f)), h[0] === Tr))
5383
5383
  return h;
5384
5384
  if ("children" in l && l.children) {
@@ -5389,9 +5389,9 @@ function ca(e, t, n, r) {
5389
5389
  if (k.children && h[0] !== q0)
5390
5390
  for (I = (r ? k.children.length : -1) + a, N = f.concat(k); I > -1 && I < k.children.length; ) {
5391
5391
  const L = k.children[I];
5392
- if (T = o(L, I, N)(), T[0] === Tr)
5393
- return T;
5394
- I = typeof T[1] == "number" ? T[1] : I + a;
5392
+ if (E = o(L, I, N)(), E[0] === Tr)
5393
+ return E;
5394
+ I = typeof E[1] == "number" ? E[1] : I + a;
5395
5395
  }
5396
5396
  }
5397
5397
  return h;
@@ -5449,13 +5449,13 @@ function j0(e, t) {
5449
5449
  const m = f.children;
5450
5450
  let h = -1;
5451
5451
  for (; ++h < m.length; ) {
5452
- const T = o.one(m[h], f);
5453
- if (T) {
5454
- if (h && m[h - 1].type === "break" && (!Array.isArray(T) && T.type === "text" && (T.value = Pi(T.value)), !Array.isArray(T) && T.type === "element")) {
5455
- const I = T.children[0];
5452
+ const E = o.one(m[h], f);
5453
+ if (E) {
5454
+ if (h && m[h - 1].type === "break" && (!Array.isArray(E) && E.type === "text" && (E.value = Pi(E.value)), !Array.isArray(E) && E.type === "element")) {
5455
+ const I = E.children[0];
5456
5456
  I && I.type === "text" && (I.value = Pi(I.value));
5457
5457
  }
5458
- Array.isArray(T) ? d.push(...T) : d.push(T);
5458
+ Array.isArray(E) ? d.push(...E) : d.push(E);
5459
5459
  }
5460
5460
  }
5461
5461
  }
@@ -5560,11 +5560,11 @@ function J0() {
5560
5560
  return c[f];
5561
5561
  };
5562
5562
  return jn = function l() {
5563
- var c, f, d, m, h, T, I = arguments[0], N = 1, k = arguments.length, L = !1;
5563
+ var c, f, d, m, h, E, I = arguments[0], N = 1, k = arguments.length, L = !1;
5564
5564
  for (typeof I == "boolean" && (L = I, I = arguments[1] || {}, N = 2), (I == null || typeof I != "object" && typeof I != "function") && (I = {}); N < k; ++N)
5565
5565
  if (c = arguments[N], c != null)
5566
5566
  for (f in c)
5567
- d = o(I, f), m = o(c, f), I !== m && (L && m && (u(m) || (h = i(m))) ? (h ? (h = !1, T = d && i(d) ? d : []) : T = d && u(d) ? d : {}, a(I, { name: f, newValue: l(L, T, m) })) : typeof m < "u" && a(I, { name: f, newValue: m }));
5567
+ d = o(I, f), m = o(c, f), I !== m && (L && m && (u(m) || (h = i(m))) ? (h ? (h = !1, E = d && i(d) ? d : []) : E = d && u(d) ? d : {}, a(I, { name: f, newValue: l(L, E, m) })) : typeof m < "u" && a(I, { name: f, newValue: m }));
5568
5568
  return I;
5569
5569
  }, jn;
5570
5570
  }
@@ -6409,8 +6409,8 @@ class qr extends hd {
6409
6409
  /** @type {CompileTree extends undefined ? Node : CompileTree} */
6410
6410
  /** @type {unknown} */
6411
6411
  d
6412
- ), T = r.stringify(h, m);
6413
- Td(T) ? m.value = T : m.result = T, c(
6412
+ ), E = r.stringify(h, m);
6413
+ Td(E) ? m.value = E : m.result = E, c(
6414
6414
  f,
6415
6415
  /** @type {VFileWithOutput<CompileResult>} */
6416
6416
  m
@@ -6679,9 +6679,9 @@ class qr extends hd {
6679
6679
  if (m === -1)
6680
6680
  r.push([c, ...f]);
6681
6681
  else if (f.length > 0) {
6682
- let [h, ...T] = f;
6682
+ let [h, ...E] = f;
6683
6683
  const I = r[m][1];
6684
- gr(I) && gr(h) && (h = $n(!0, I, h)), r[m] = [c, h, ...T];
6684
+ gr(I) && gr(h) && (h = $n(!0, I, h)), r[m] = [c, h, ...E];
6685
6685
  }
6686
6686
  }
6687
6687
  }
@@ -6789,8 +6789,8 @@ function yd(e, t) {
6789
6789
  let h;
6790
6790
  for (h in qn)
6791
6791
  if (Object.hasOwn(qn, h) && Object.hasOwn(f.properties, h)) {
6792
- const T = f.properties[h], I = qn[h];
6793
- (I === null || I.includes(f.tagName)) && (f.properties[h] = l(String(T || ""), h, f));
6792
+ const E = f.properties[h], I = qn[h];
6793
+ (I === null || I.includes(f.tagName)) && (f.properties[h] = l(String(E || ""), h, f));
6794
6794
  }
6795
6795
  }
6796
6796
  if (f.type === "element") {
@@ -6831,10 +6831,10 @@ function Sd(e, t, n) {
6831
6831
  function o(c, f) {
6832
6832
  let d = -1, m;
6833
6833
  for (; ++d < f.length; ) {
6834
- const h = f[d], T = m ? m.children : void 0;
6834
+ const h = f[d], E = m ? m.children : void 0;
6835
6835
  if (i(
6836
6836
  h,
6837
- T ? T.indexOf(h) : void 0,
6837
+ E ? E.indexOf(h) : void 0,
6838
6838
  m
6839
6839
  ))
6840
6840
  return;
@@ -6845,26 +6845,26 @@ function Sd(e, t, n) {
6845
6845
  }
6846
6846
  function l(c, f) {
6847
6847
  const d = f[f.length - 1], m = u[a][0], h = u[a][1];
6848
- let T = 0;
6848
+ let E = 0;
6849
6849
  const N = d.children.indexOf(c);
6850
6850
  let k = !1, L = [];
6851
6851
  m.lastIndex = 0;
6852
6852
  let x = m.exec(c.value);
6853
6853
  for (; x; ) {
6854
- const P = x.index, z = {
6854
+ const w = x.index, U = {
6855
6855
  index: x.index,
6856
6856
  input: x.input,
6857
6857
  stack: [...f, c]
6858
6858
  };
6859
- let C = h(...x, z);
6860
- if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? m.lastIndex = P + 1 : (T !== P && L.push({
6859
+ let C = h(...x, U);
6860
+ if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? m.lastIndex = w + 1 : (E !== w && L.push({
6861
6861
  type: "text",
6862
- value: c.value.slice(T, P)
6863
- }), Array.isArray(C) ? L.push(...C) : C && L.push(C), T = P + x[0].length, k = !0), !m.global)
6862
+ value: c.value.slice(E, w)
6863
+ }), Array.isArray(C) ? L.push(...C) : C && L.push(C), E = w + x[0].length, k = !0), !m.global)
6864
6864
  break;
6865
6865
  x = m.exec(c.value);
6866
6866
  }
6867
- return k ? (T < c.value.length && L.push({ type: "text", value: c.value.slice(T) }), d.children.splice(N, 1, ...L)) : L = [c], N + L.length;
6867
+ return k ? (E < c.value.length && L.push({ type: "text", value: c.value.slice(E) }), d.children.splice(N, 1, ...L)) : L = [c], N + L.length;
6868
6868
  }
6869
6869
  }
6870
6870
  function Ld(e) {
@@ -7186,27 +7186,27 @@ function cf(e, t) {
7186
7186
  n.alignDelimiters !== !1 && (L = N.length + L + k.length, L > l[d] && (l[d] = L), h[d] = L), m[d] = x;
7187
7187
  }
7188
7188
  a.splice(1, 0, m), o.splice(1, 0, h), f = -1;
7189
- const T = [];
7189
+ const E = [];
7190
7190
  for (; ++f < a.length; ) {
7191
7191
  const I = a[f], N = o[f];
7192
7192
  d = -1;
7193
7193
  const k = [];
7194
7194
  for (; ++d < c; ) {
7195
7195
  const L = I[d] || "";
7196
- let x = "", P = "";
7196
+ let x = "", w = "";
7197
7197
  if (n.alignDelimiters !== !1) {
7198
- const z = l[d] - (N[d] || 0), C = u[d];
7199
- C === 114 ? x = " ".repeat(z) : C === 99 ? z % 2 ? (x = " ".repeat(z / 2 + 0.5), P = " ".repeat(z / 2 - 0.5)) : (x = " ".repeat(z / 2), P = x) : P = " ".repeat(z);
7198
+ const U = l[d] - (N[d] || 0), C = u[d];
7199
+ C === 114 ? x = " ".repeat(U) : C === 99 ? U % 2 ? (x = " ".repeat(U / 2 + 0.5), w = " ".repeat(U / 2 - 0.5)) : (x = " ".repeat(U / 2), w = x) : w = " ".repeat(U);
7200
7200
  }
7201
7201
  n.delimiterStart !== !1 && !d && k.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
7202
7202
  // empty: there will be a closing space.
7203
- !(n.alignDelimiters === !1 && L === "") && (n.delimiterStart !== !1 || d) && k.push(" "), n.alignDelimiters !== !1 && k.push(x), k.push(L), n.alignDelimiters !== !1 && k.push(P), n.padding !== !1 && k.push(" "), (n.delimiterEnd !== !1 || d !== c - 1) && k.push("|");
7203
+ !(n.alignDelimiters === !1 && L === "") && (n.delimiterStart !== !1 || d) && k.push(" "), n.alignDelimiters !== !1 && k.push(x), k.push(L), n.alignDelimiters !== !1 && k.push(w), n.padding !== !1 && k.push(" "), (n.delimiterEnd !== !1 || d !== c - 1) && k.push("|");
7204
7204
  }
7205
- T.push(
7205
+ E.push(
7206
7206
  n.delimiterEnd === !1 ? k.join("").replace(/ +$/, "") : k.join("")
7207
7207
  );
7208
7208
  }
7209
- return T.join(`
7209
+ return E.join(`
7210
7210
  `);
7211
7211
  }
7212
7212
  function df(e) {
@@ -7907,15 +7907,15 @@ function Kf(e) {
7907
7907
  tableRow: o
7908
7908
  }
7909
7909
  };
7910
- function a(h, T, I, N) {
7910
+ function a(h, E, I, N) {
7911
7911
  return c(f(h, I, N), h.align);
7912
7912
  }
7913
- function o(h, T, I, N) {
7913
+ function o(h, E, I, N) {
7914
7914
  const k = d(h, I, N), L = c([k]);
7915
7915
  return L.slice(0, L.indexOf(`
7916
7916
  `));
7917
7917
  }
7918
- function l(h, T, I, N) {
7918
+ function l(h, E, I, N) {
7919
7919
  const k = I.enter("tableCell"), L = I.enter("phrasing"), x = I.containerPhrasing(h, {
7920
7920
  ...N,
7921
7921
  before: u,
@@ -7923,9 +7923,9 @@ function Kf(e) {
7923
7923
  });
7924
7924
  return L(), k(), x;
7925
7925
  }
7926
- function c(h, T) {
7926
+ function c(h, E) {
7927
7927
  return cf(h, {
7928
- align: T,
7928
+ align: E,
7929
7929
  // @ts-expect-error: `markdown-table` types should support `null`.
7930
7930
  alignDelimiters: r,
7931
7931
  // @ts-expect-error: `markdown-table` types should support `null`.
@@ -7934,24 +7934,24 @@ function Kf(e) {
7934
7934
  stringLength: i
7935
7935
  });
7936
7936
  }
7937
- function f(h, T, I) {
7937
+ function f(h, E, I) {
7938
7938
  const N = h.children;
7939
7939
  let k = -1;
7940
- const L = [], x = T.enter("table");
7940
+ const L = [], x = E.enter("table");
7941
7941
  for (; ++k < N.length; )
7942
- L[k] = d(N[k], T, I);
7942
+ L[k] = d(N[k], E, I);
7943
7943
  return x(), L;
7944
7944
  }
7945
- function d(h, T, I) {
7945
+ function d(h, E, I) {
7946
7946
  const N = h.children;
7947
7947
  let k = -1;
7948
- const L = [], x = T.enter("tableRow");
7948
+ const L = [], x = E.enter("tableRow");
7949
7949
  for (; ++k < N.length; )
7950
- L[k] = l(N[k], h, T, I);
7950
+ L[k] = l(N[k], h, E, I);
7951
7951
  return x(), L;
7952
7952
  }
7953
- function m(h, T, I) {
7954
- let N = xa.inlineCode(h, T, I);
7953
+ function m(h, E, I) {
7954
+ let N = xa.inlineCode(h, E, I);
7955
7955
  return I.stack.includes("tableCell") && (N = N.replace(/\|/g, "\\$&")), N;
7956
7956
  }
7957
7957
  }
@@ -8355,36 +8355,36 @@ function gh(e, t, n) {
8355
8355
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
8356
8356
  let u, a = 0, o;
8357
8357
  return l;
8358
- function l(T) {
8359
- return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(T), e.exit("gfmFootnoteDefinitionLabelMarker"), c;
8358
+ function l(E) {
8359
+ return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(E), e.exit("gfmFootnoteDefinitionLabelMarker"), c;
8360
8360
  }
8361
- function c(T) {
8362
- return T === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(T), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", f) : n(T);
8361
+ function c(E) {
8362
+ return E === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(E), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", f) : n(E);
8363
8363
  }
8364
- function f(T) {
8364
+ function f(E) {
8365
8365
  if (
8366
8366
  // Too long.
8367
8367
  a > 999 || // Closing brace with nothing.
8368
- T === 93 && !o || // Space or tab is not supported by GFM for some reason.
8368
+ E === 93 && !o || // Space or tab is not supported by GFM for some reason.
8369
8369
  // `\n` and `[` not being supported makes sense.
8370
- T === null || T === 91 || le(T)
8370
+ E === null || E === 91 || le(E)
8371
8371
  )
8372
- return n(T);
8373
- if (T === 93) {
8372
+ return n(E);
8373
+ if (E === 93) {
8374
8374
  e.exit("chunkString");
8375
8375
  const I = e.exit("gfmFootnoteDefinitionLabelString");
8376
- return u = Pe(r.sliceSerialize(I)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(T), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), m;
8376
+ return u = Pe(r.sliceSerialize(I)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(E), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), m;
8377
8377
  }
8378
- return le(T) || (o = !0), a++, e.consume(T), T === 92 ? d : f;
8378
+ return le(E) || (o = !0), a++, e.consume(E), E === 92 ? d : f;
8379
8379
  }
8380
- function d(T) {
8381
- return T === 91 || T === 92 || T === 93 ? (e.consume(T), a++, f) : f(T);
8380
+ function d(E) {
8381
+ return E === 91 || E === 92 || E === 93 ? (e.consume(E), a++, f) : f(E);
8382
8382
  }
8383
- function m(T) {
8384
- return T === 58 ? (e.enter("definitionMarker"), e.consume(T), e.exit("definitionMarker"), i.includes(u) || i.push(u), ne(e, h, "gfmFootnoteDefinitionWhitespace")) : n(T);
8383
+ function m(E) {
8384
+ return E === 58 ? (e.enter("definitionMarker"), e.consume(E), e.exit("definitionMarker"), i.includes(u) || i.push(u), ne(e, h, "gfmFootnoteDefinitionWhitespace")) : n(E);
8385
8385
  }
8386
- function h(T) {
8387
- return t(T);
8386
+ function h(E) {
8387
+ return t(E);
8388
8388
  }
8389
8389
  }
8390
8390
  function _h(e, t, n) {
@@ -8449,16 +8449,16 @@ function Ch(e) {
8449
8449
  const c = this.previous, f = this.events;
8450
8450
  let d = 0;
8451
8451
  return m;
8452
- function m(T) {
8453
- return c === 126 && f[f.length - 1][1].type !== "characterEscape" ? l(T) : (a.enter("strikethroughSequenceTemporary"), h(T));
8452
+ function m(E) {
8453
+ return c === 126 && f[f.length - 1][1].type !== "characterEscape" ? l(E) : (a.enter("strikethroughSequenceTemporary"), h(E));
8454
8454
  }
8455
- function h(T) {
8455
+ function h(E) {
8456
8456
  const I = Ct(c);
8457
- if (T === 126)
8458
- return d > 1 ? l(T) : (a.consume(T), d++, h);
8459
- if (d < 2 && !n) return l(T);
8460
- const N = a.exit("strikethroughSequenceTemporary"), k = Ct(T);
8461
- return N._open = !k || k === 2 && !!I, N._close = !I || I === 2 && !!k, o(T);
8457
+ if (E === 126)
8458
+ return d > 1 ? l(E) : (a.consume(E), d++, h);
8459
+ if (d < 2 && !n) return l(E);
8460
+ const N = a.exit("strikethroughSequenceTemporary"), k = Ct(E);
8461
+ return N._open = !k || k === 2 && !!I, N._close = !I || I === 2 && !!k, o(E);
8462
8462
  }
8463
8463
  }
8464
8464
  }
@@ -8568,12 +8568,12 @@ function Sh(e, t, n) {
8568
8568
  function o(_) {
8569
8569
  let D = r.events.length - 1;
8570
8570
  for (; D > -1; ) {
8571
- const w = r.events[D][1].type;
8572
- if (w === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
8573
- w === "linePrefix") D--;
8571
+ const P = r.events[D][1].type;
8572
+ if (P === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
8573
+ P === "linePrefix") D--;
8574
8574
  else break;
8575
8575
  }
8576
- const U = D > -1 ? r.events[D][1].type : null, X = U === "tableHead" || U === "tableRow" ? C : l;
8576
+ const z = D > -1 ? r.events[D][1].type : null, X = z === "tableHead" || z === "tableRow" ? C : l;
8577
8577
  return X === C && r.parser.lazy[r.now().line] ? n(_) : X(_);
8578
8578
  }
8579
8579
  function l(_) {
@@ -8592,30 +8592,30 @@ function Sh(e, t, n) {
8592
8592
  return _ === 92 || _ === 124 ? (e.consume(_), d) : d(_);
8593
8593
  }
8594
8594
  function h(_) {
8595
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(_) : (e.enter("tableDelimiterRow"), a = !1, ee(_) ? ne(e, T, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(_) : T(_));
8595
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(_) : (e.enter("tableDelimiterRow"), a = !1, ee(_) ? ne(e, E, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(_) : E(_));
8596
8596
  }
8597
- function T(_) {
8598
- return _ === 45 || _ === 58 ? N(_) : _ === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(_), e.exit("tableCellDivider"), I) : z(_);
8597
+ function E(_) {
8598
+ return _ === 45 || _ === 58 ? N(_) : _ === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(_), e.exit("tableCellDivider"), I) : U(_);
8599
8599
  }
8600
8600
  function I(_) {
8601
8601
  return ee(_) ? ne(e, N, "whitespace")(_) : N(_);
8602
8602
  }
8603
8603
  function N(_) {
8604
- return _ === 58 ? (u += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(_), e.exit("tableDelimiterMarker"), k) : _ === 45 ? (u += 1, k(_)) : _ === null || $(_) ? P(_) : z(_);
8604
+ return _ === 58 ? (u += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(_), e.exit("tableDelimiterMarker"), k) : _ === 45 ? (u += 1, k(_)) : _ === null || $(_) ? w(_) : U(_);
8605
8605
  }
8606
8606
  function k(_) {
8607
- return _ === 45 ? (e.enter("tableDelimiterFiller"), L(_)) : z(_);
8607
+ return _ === 45 ? (e.enter("tableDelimiterFiller"), L(_)) : U(_);
8608
8608
  }
8609
8609
  function L(_) {
8610
8610
  return _ === 45 ? (e.consume(_), L) : _ === 58 ? (a = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(_), e.exit("tableDelimiterMarker"), x) : (e.exit("tableDelimiterFiller"), x(_));
8611
8611
  }
8612
8612
  function x(_) {
8613
- return ee(_) ? ne(e, P, "whitespace")(_) : P(_);
8613
+ return ee(_) ? ne(e, w, "whitespace")(_) : w(_);
8614
8614
  }
8615
- function P(_) {
8616
- return _ === 124 ? T(_) : _ === null || $(_) ? !a || i !== u ? z(_) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(_)) : z(_);
8615
+ function w(_) {
8616
+ return _ === 124 ? E(_) : _ === null || $(_) ? !a || i !== u ? U(_) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(_)) : U(_);
8617
8617
  }
8618
- function z(_) {
8618
+ function U(_) {
8619
8619
  return n(_);
8620
8620
  }
8621
8621
  function C(_) {
@@ -8635,18 +8635,18 @@ function Lh(e, t) {
8635
8635
  let n = -1, r = !0, i = 0, u = [0, 0, 0, 0], a = [0, 0, 0, 0], o = !1, l = 0, c, f, d;
8636
8636
  const m = new Ih();
8637
8637
  for (; ++n < e.length; ) {
8638
- const h = e[n], T = h[1];
8639
- h[0] === "enter" ? T.type === "tableHead" ? (o = !1, l !== 0 && (Ki(m, t, l, c, f), f = void 0, l = 0), c = {
8638
+ const h = e[n], E = h[1];
8639
+ h[0] === "enter" ? E.type === "tableHead" ? (o = !1, l !== 0 && (Ki(m, t, l, c, f), f = void 0, l = 0), c = {
8640
8640
  type: "table",
8641
- start: Object.assign({}, T.start),
8641
+ start: Object.assign({}, E.start),
8642
8642
  // Note: correct end is set later.
8643
- end: Object.assign({}, T.end)
8644
- }, m.add(n, 0, [["enter", c, t]])) : T.type === "tableRow" || T.type === "tableDelimiterRow" ? (r = !0, d = void 0, u = [0, 0, 0, 0], a = [0, n + 1, 0, 0], o && (o = !1, f = {
8643
+ end: Object.assign({}, E.end)
8644
+ }, m.add(n, 0, [["enter", c, t]])) : E.type === "tableRow" || E.type === "tableDelimiterRow" ? (r = !0, d = void 0, u = [0, 0, 0, 0], a = [0, n + 1, 0, 0], o && (o = !1, f = {
8645
8645
  type: "tableBody",
8646
- start: Object.assign({}, T.start),
8646
+ start: Object.assign({}, E.start),
8647
8647
  // Note: correct end is set later.
8648
- end: Object.assign({}, T.end)
8649
- }, m.add(n, 0, [["enter", f, t]])), i = T.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (T.type === "data" || T.type === "tableDelimiterMarker" || T.type === "tableDelimiterFiller") ? (r = !1, a[2] === 0 && (u[1] !== 0 && (a[0] = a[1], d = fn(m, t, u, i, void 0, d), u = [0, 0, 0, 0]), a[2] = n)) : T.type === "tableCellDivider" && (r ? r = !1 : (u[1] !== 0 && (a[0] = a[1], d = fn(m, t, u, i, void 0, d)), u = a, a = [u[1], n, 0, 0])) : T.type === "tableHead" ? (o = !0, l = n) : T.type === "tableRow" || T.type === "tableDelimiterRow" ? (l = n, u[1] !== 0 ? (a[0] = a[1], d = fn(m, t, u, i, n, d)) : a[1] !== 0 && (d = fn(m, t, a, i, n, d)), i = 0) : i && (T.type === "data" || T.type === "tableDelimiterMarker" || T.type === "tableDelimiterFiller") && (a[3] = n);
8648
+ end: Object.assign({}, E.end)
8649
+ }, m.add(n, 0, [["enter", f, t]])), i = E.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (E.type === "data" || E.type === "tableDelimiterMarker" || E.type === "tableDelimiterFiller") ? (r = !1, a[2] === 0 && (u[1] !== 0 && (a[0] = a[1], d = fn(m, t, u, i, void 0, d), u = [0, 0, 0, 0]), a[2] = n)) : E.type === "tableCellDivider" && (r ? r = !1 : (u[1] !== 0 && (a[0] = a[1], d = fn(m, t, u, i, void 0, d)), u = a, a = [u[1], n, 0, 0])) : E.type === "tableHead" ? (o = !0, l = n) : E.type === "tableRow" || E.type === "tableDelimiterRow" ? (l = n, u[1] !== 0 ? (a[0] = a[1], d = fn(m, t, u, i, n, d)) : a[1] !== 0 && (d = fn(m, t, a, i, n, d)), i = 0) : i && (E.type === "data" || E.type === "tableDelimiterMarker" || E.type === "tableDelimiterFiller") && (a[3] = n);
8650
8650
  }
8651
8651
  for (l !== 0 && Ki(m, t, l, c, f), m.consume(t.events), n = -1; ++n < t.events.length; ) {
8652
8652
  const h = t.events[n];
@@ -8672,8 +8672,8 @@ function fn(e, t, n, r, i, u) {
8672
8672
  if (e.add(n[2], 0, [["enter", d, t]]), r !== 2) {
8673
8673
  const m = t.events[n[2]], h = t.events[n[3]];
8674
8674
  if (m[1].end = Object.assign({}, h[1].end), m[1].type = "chunkText", m[1].contentType = "text", n[3] > n[2] + 1) {
8675
- const T = n[2] + 1, I = n[3] - n[2] - 1;
8676
- e.add(T, I, []);
8675
+ const E = n[2] + 1, I = n[3] - n[2] - 1;
8676
+ e.add(E, I, []);
8677
8677
  }
8678
8678
  }
8679
8679
  e.add(n[3] + 1, 0, [["exit", d, t]]);
@@ -9893,17 +9893,17 @@ const H = s, km = {
9893
9893
  [M.XMLNS]: /* @__PURE__ */ new Set()
9894
9894
  }, Ir = /* @__PURE__ */ new Set([H.H1, H.H2, H.H3, H.H4, H.H5, H.H6]);
9895
9895
  y.STYLE, y.SCRIPT, y.XMP, y.IFRAME, y.NOEMBED, y.NOFRAMES, y.PLAINTEXT;
9896
- var E;
9896
+ var T;
9897
9897
  (function(e) {
9898
9898
  e[e.DATA = 0] = "DATA", e[e.RCDATA = 1] = "RCDATA", e[e.RAWTEXT = 2] = "RAWTEXT", e[e.SCRIPT_DATA = 3] = "SCRIPT_DATA", e[e.PLAINTEXT = 4] = "PLAINTEXT", e[e.TAG_OPEN = 5] = "TAG_OPEN", e[e.END_TAG_OPEN = 6] = "END_TAG_OPEN", e[e.TAG_NAME = 7] = "TAG_NAME", e[e.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", e[e.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", e[e.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", e[e.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", e[e.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", e[e.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", e[e.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", e[e.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", e[e.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", e[e.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", e[e.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", e[e.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", e[e.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", e[e.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", e[e.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", e[e.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", e[e.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", e[e.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", e[e.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", e[e.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", e[e.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", e[e.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", e[e.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", e[e.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", e[e.COMMENT_START = 42] = "COMMENT_START", e[e.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", e[e.COMMENT = 44] = "COMMENT", e[e.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", e[e.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", e[e.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", e[e.COMMENT_END = 50] = "COMMENT_END", e[e.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", e[e.DOCTYPE = 52] = "DOCTYPE", e[e.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", e[e.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", e[e.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", e[e.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", e[e.CDATA_SECTION = 68] = "CDATA_SECTION", e[e.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", e[e.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", e[e.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", e[e.AMBIGUOUS_AMPERSAND = 72] = "AMBIGUOUS_AMPERSAND";
9899
- })(E || (E = {}));
9899
+ })(T || (T = {}));
9900
9900
  const fe = {
9901
- DATA: E.DATA,
9902
- RCDATA: E.RCDATA,
9903
- RAWTEXT: E.RAWTEXT,
9904
- SCRIPT_DATA: E.SCRIPT_DATA,
9905
- PLAINTEXT: E.PLAINTEXT,
9906
- CDATA_SECTION: E.CDATA_SECTION
9901
+ DATA: T.DATA,
9902
+ RCDATA: T.RCDATA,
9903
+ RAWTEXT: T.RAWTEXT,
9904
+ SCRIPT_DATA: T.SCRIPT_DATA,
9905
+ PLAINTEXT: T.PLAINTEXT,
9906
+ CDATA_SECTION: T.CDATA_SECTION
9907
9907
  };
9908
9908
  function Cm(e) {
9909
9909
  return e >= p.DIGIT_0 && e <= p.DIGIT_9;
@@ -9934,7 +9934,7 @@ function ym(e) {
9934
9934
  }
9935
9935
  class Nm {
9936
9936
  constructor(t, n) {
9937
- this.options = t, this.handler = n, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state = E.DATA, this.returnState = E.DATA, this.entityStartPos = 0, this.consumedAfterSnapshot = -1, this.currentCharacterToken = null, this.currentToken = null, this.currentAttr = { name: "", value: "" }, this.preprocessor = new dm(n), this.currentLocation = this.getCurrentLocation(-1), this.entityDecoder = new gm(fm, (r, i) => {
9937
+ this.options = t, this.handler = n, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state = T.DATA, this.returnState = T.DATA, this.entityStartPos = 0, this.consumedAfterSnapshot = -1, this.currentCharacterToken = null, this.currentToken = null, this.currentAttr = { name: "", value: "" }, this.preprocessor = new dm(n), this.currentLocation = this.getCurrentLocation(-1), this.entityDecoder = new gm(fm, (r, i) => {
9938
9938
  this.preprocessor.pos = this.entityStartPos + i - 1, this._flushCodePointConsumedAsCharacterReference(r);
9939
9939
  }, n.onParseError ? {
9940
9940
  missingSemicolonAfterCharacterReference: () => {
@@ -10140,10 +10140,10 @@ class Nm {
10140
10140
  }
10141
10141
  // Character reference helpers
10142
10142
  _startCharacterReference() {
10143
- this.returnState = this.state, this.state = E.CHARACTER_REFERENCE, this.entityStartPos = this.preprocessor.pos, this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? Ve.Attribute : Ve.Legacy);
10143
+ this.returnState = this.state, this.state = T.CHARACTER_REFERENCE, this.entityStartPos = this.preprocessor.pos, this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? Ve.Attribute : Ve.Legacy);
10144
10144
  }
10145
10145
  _isCharacterReferenceInAttribute() {
10146
- return this.returnState === E.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === E.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === E.ATTRIBUTE_VALUE_UNQUOTED;
10146
+ return this.returnState === T.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === T.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === T.ATTRIBUTE_VALUE_UNQUOTED;
10147
10147
  }
10148
10148
  _flushCodePointConsumedAsCharacterReference(t) {
10149
10149
  this._isCharacterReferenceInAttribute() ? this.currentAttr.value += String.fromCodePoint(t) : this._emitCodePoint(t);
@@ -10151,295 +10151,295 @@ class Nm {
10151
10151
  // Calling states this way turns out to be much faster than any other approach.
10152
10152
  _callState(t) {
10153
10153
  switch (this.state) {
10154
- case E.DATA: {
10154
+ case T.DATA: {
10155
10155
  this._stateData(t);
10156
10156
  break;
10157
10157
  }
10158
- case E.RCDATA: {
10158
+ case T.RCDATA: {
10159
10159
  this._stateRcdata(t);
10160
10160
  break;
10161
10161
  }
10162
- case E.RAWTEXT: {
10162
+ case T.RAWTEXT: {
10163
10163
  this._stateRawtext(t);
10164
10164
  break;
10165
10165
  }
10166
- case E.SCRIPT_DATA: {
10166
+ case T.SCRIPT_DATA: {
10167
10167
  this._stateScriptData(t);
10168
10168
  break;
10169
10169
  }
10170
- case E.PLAINTEXT: {
10170
+ case T.PLAINTEXT: {
10171
10171
  this._statePlaintext(t);
10172
10172
  break;
10173
10173
  }
10174
- case E.TAG_OPEN: {
10174
+ case T.TAG_OPEN: {
10175
10175
  this._stateTagOpen(t);
10176
10176
  break;
10177
10177
  }
10178
- case E.END_TAG_OPEN: {
10178
+ case T.END_TAG_OPEN: {
10179
10179
  this._stateEndTagOpen(t);
10180
10180
  break;
10181
10181
  }
10182
- case E.TAG_NAME: {
10182
+ case T.TAG_NAME: {
10183
10183
  this._stateTagName(t);
10184
10184
  break;
10185
10185
  }
10186
- case E.RCDATA_LESS_THAN_SIGN: {
10186
+ case T.RCDATA_LESS_THAN_SIGN: {
10187
10187
  this._stateRcdataLessThanSign(t);
10188
10188
  break;
10189
10189
  }
10190
- case E.RCDATA_END_TAG_OPEN: {
10190
+ case T.RCDATA_END_TAG_OPEN: {
10191
10191
  this._stateRcdataEndTagOpen(t);
10192
10192
  break;
10193
10193
  }
10194
- case E.RCDATA_END_TAG_NAME: {
10194
+ case T.RCDATA_END_TAG_NAME: {
10195
10195
  this._stateRcdataEndTagName(t);
10196
10196
  break;
10197
10197
  }
10198
- case E.RAWTEXT_LESS_THAN_SIGN: {
10198
+ case T.RAWTEXT_LESS_THAN_SIGN: {
10199
10199
  this._stateRawtextLessThanSign(t);
10200
10200
  break;
10201
10201
  }
10202
- case E.RAWTEXT_END_TAG_OPEN: {
10202
+ case T.RAWTEXT_END_TAG_OPEN: {
10203
10203
  this._stateRawtextEndTagOpen(t);
10204
10204
  break;
10205
10205
  }
10206
- case E.RAWTEXT_END_TAG_NAME: {
10206
+ case T.RAWTEXT_END_TAG_NAME: {
10207
10207
  this._stateRawtextEndTagName(t);
10208
10208
  break;
10209
10209
  }
10210
- case E.SCRIPT_DATA_LESS_THAN_SIGN: {
10210
+ case T.SCRIPT_DATA_LESS_THAN_SIGN: {
10211
10211
  this._stateScriptDataLessThanSign(t);
10212
10212
  break;
10213
10213
  }
10214
- case E.SCRIPT_DATA_END_TAG_OPEN: {
10214
+ case T.SCRIPT_DATA_END_TAG_OPEN: {
10215
10215
  this._stateScriptDataEndTagOpen(t);
10216
10216
  break;
10217
10217
  }
10218
- case E.SCRIPT_DATA_END_TAG_NAME: {
10218
+ case T.SCRIPT_DATA_END_TAG_NAME: {
10219
10219
  this._stateScriptDataEndTagName(t);
10220
10220
  break;
10221
10221
  }
10222
- case E.SCRIPT_DATA_ESCAPE_START: {
10222
+ case T.SCRIPT_DATA_ESCAPE_START: {
10223
10223
  this._stateScriptDataEscapeStart(t);
10224
10224
  break;
10225
10225
  }
10226
- case E.SCRIPT_DATA_ESCAPE_START_DASH: {
10226
+ case T.SCRIPT_DATA_ESCAPE_START_DASH: {
10227
10227
  this._stateScriptDataEscapeStartDash(t);
10228
10228
  break;
10229
10229
  }
10230
- case E.SCRIPT_DATA_ESCAPED: {
10230
+ case T.SCRIPT_DATA_ESCAPED: {
10231
10231
  this._stateScriptDataEscaped(t);
10232
10232
  break;
10233
10233
  }
10234
- case E.SCRIPT_DATA_ESCAPED_DASH: {
10234
+ case T.SCRIPT_DATA_ESCAPED_DASH: {
10235
10235
  this._stateScriptDataEscapedDash(t);
10236
10236
  break;
10237
10237
  }
10238
- case E.SCRIPT_DATA_ESCAPED_DASH_DASH: {
10238
+ case T.SCRIPT_DATA_ESCAPED_DASH_DASH: {
10239
10239
  this._stateScriptDataEscapedDashDash(t);
10240
10240
  break;
10241
10241
  }
10242
- case E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: {
10242
+ case T.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: {
10243
10243
  this._stateScriptDataEscapedLessThanSign(t);
10244
10244
  break;
10245
10245
  }
10246
- case E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: {
10246
+ case T.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: {
10247
10247
  this._stateScriptDataEscapedEndTagOpen(t);
10248
10248
  break;
10249
10249
  }
10250
- case E.SCRIPT_DATA_ESCAPED_END_TAG_NAME: {
10250
+ case T.SCRIPT_DATA_ESCAPED_END_TAG_NAME: {
10251
10251
  this._stateScriptDataEscapedEndTagName(t);
10252
10252
  break;
10253
10253
  }
10254
- case E.SCRIPT_DATA_DOUBLE_ESCAPE_START: {
10254
+ case T.SCRIPT_DATA_DOUBLE_ESCAPE_START: {
10255
10255
  this._stateScriptDataDoubleEscapeStart(t);
10256
10256
  break;
10257
10257
  }
10258
- case E.SCRIPT_DATA_DOUBLE_ESCAPED: {
10258
+ case T.SCRIPT_DATA_DOUBLE_ESCAPED: {
10259
10259
  this._stateScriptDataDoubleEscaped(t);
10260
10260
  break;
10261
10261
  }
10262
- case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: {
10262
+ case T.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: {
10263
10263
  this._stateScriptDataDoubleEscapedDash(t);
10264
10264
  break;
10265
10265
  }
10266
- case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: {
10266
+ case T.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: {
10267
10267
  this._stateScriptDataDoubleEscapedDashDash(t);
10268
10268
  break;
10269
10269
  }
10270
- case E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: {
10270
+ case T.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: {
10271
10271
  this._stateScriptDataDoubleEscapedLessThanSign(t);
10272
10272
  break;
10273
10273
  }
10274
- case E.SCRIPT_DATA_DOUBLE_ESCAPE_END: {
10274
+ case T.SCRIPT_DATA_DOUBLE_ESCAPE_END: {
10275
10275
  this._stateScriptDataDoubleEscapeEnd(t);
10276
10276
  break;
10277
10277
  }
10278
- case E.BEFORE_ATTRIBUTE_NAME: {
10278
+ case T.BEFORE_ATTRIBUTE_NAME: {
10279
10279
  this._stateBeforeAttributeName(t);
10280
10280
  break;
10281
10281
  }
10282
- case E.ATTRIBUTE_NAME: {
10282
+ case T.ATTRIBUTE_NAME: {
10283
10283
  this._stateAttributeName(t);
10284
10284
  break;
10285
10285
  }
10286
- case E.AFTER_ATTRIBUTE_NAME: {
10286
+ case T.AFTER_ATTRIBUTE_NAME: {
10287
10287
  this._stateAfterAttributeName(t);
10288
10288
  break;
10289
10289
  }
10290
- case E.BEFORE_ATTRIBUTE_VALUE: {
10290
+ case T.BEFORE_ATTRIBUTE_VALUE: {
10291
10291
  this._stateBeforeAttributeValue(t);
10292
10292
  break;
10293
10293
  }
10294
- case E.ATTRIBUTE_VALUE_DOUBLE_QUOTED: {
10294
+ case T.ATTRIBUTE_VALUE_DOUBLE_QUOTED: {
10295
10295
  this._stateAttributeValueDoubleQuoted(t);
10296
10296
  break;
10297
10297
  }
10298
- case E.ATTRIBUTE_VALUE_SINGLE_QUOTED: {
10298
+ case T.ATTRIBUTE_VALUE_SINGLE_QUOTED: {
10299
10299
  this._stateAttributeValueSingleQuoted(t);
10300
10300
  break;
10301
10301
  }
10302
- case E.ATTRIBUTE_VALUE_UNQUOTED: {
10302
+ case T.ATTRIBUTE_VALUE_UNQUOTED: {
10303
10303
  this._stateAttributeValueUnquoted(t);
10304
10304
  break;
10305
10305
  }
10306
- case E.AFTER_ATTRIBUTE_VALUE_QUOTED: {
10306
+ case T.AFTER_ATTRIBUTE_VALUE_QUOTED: {
10307
10307
  this._stateAfterAttributeValueQuoted(t);
10308
10308
  break;
10309
10309
  }
10310
- case E.SELF_CLOSING_START_TAG: {
10310
+ case T.SELF_CLOSING_START_TAG: {
10311
10311
  this._stateSelfClosingStartTag(t);
10312
10312
  break;
10313
10313
  }
10314
- case E.BOGUS_COMMENT: {
10314
+ case T.BOGUS_COMMENT: {
10315
10315
  this._stateBogusComment(t);
10316
10316
  break;
10317
10317
  }
10318
- case E.MARKUP_DECLARATION_OPEN: {
10318
+ case T.MARKUP_DECLARATION_OPEN: {
10319
10319
  this._stateMarkupDeclarationOpen(t);
10320
10320
  break;
10321
10321
  }
10322
- case E.COMMENT_START: {
10322
+ case T.COMMENT_START: {
10323
10323
  this._stateCommentStart(t);
10324
10324
  break;
10325
10325
  }
10326
- case E.COMMENT_START_DASH: {
10326
+ case T.COMMENT_START_DASH: {
10327
10327
  this._stateCommentStartDash(t);
10328
10328
  break;
10329
10329
  }
10330
- case E.COMMENT: {
10330
+ case T.COMMENT: {
10331
10331
  this._stateComment(t);
10332
10332
  break;
10333
10333
  }
10334
- case E.COMMENT_LESS_THAN_SIGN: {
10334
+ case T.COMMENT_LESS_THAN_SIGN: {
10335
10335
  this._stateCommentLessThanSign(t);
10336
10336
  break;
10337
10337
  }
10338
- case E.COMMENT_LESS_THAN_SIGN_BANG: {
10338
+ case T.COMMENT_LESS_THAN_SIGN_BANG: {
10339
10339
  this._stateCommentLessThanSignBang(t);
10340
10340
  break;
10341
10341
  }
10342
- case E.COMMENT_LESS_THAN_SIGN_BANG_DASH: {
10342
+ case T.COMMENT_LESS_THAN_SIGN_BANG_DASH: {
10343
10343
  this._stateCommentLessThanSignBangDash(t);
10344
10344
  break;
10345
10345
  }
10346
- case E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: {
10346
+ case T.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: {
10347
10347
  this._stateCommentLessThanSignBangDashDash(t);
10348
10348
  break;
10349
10349
  }
10350
- case E.COMMENT_END_DASH: {
10350
+ case T.COMMENT_END_DASH: {
10351
10351
  this._stateCommentEndDash(t);
10352
10352
  break;
10353
10353
  }
10354
- case E.COMMENT_END: {
10354
+ case T.COMMENT_END: {
10355
10355
  this._stateCommentEnd(t);
10356
10356
  break;
10357
10357
  }
10358
- case E.COMMENT_END_BANG: {
10358
+ case T.COMMENT_END_BANG: {
10359
10359
  this._stateCommentEndBang(t);
10360
10360
  break;
10361
10361
  }
10362
- case E.DOCTYPE: {
10362
+ case T.DOCTYPE: {
10363
10363
  this._stateDoctype(t);
10364
10364
  break;
10365
10365
  }
10366
- case E.BEFORE_DOCTYPE_NAME: {
10366
+ case T.BEFORE_DOCTYPE_NAME: {
10367
10367
  this._stateBeforeDoctypeName(t);
10368
10368
  break;
10369
10369
  }
10370
- case E.DOCTYPE_NAME: {
10370
+ case T.DOCTYPE_NAME: {
10371
10371
  this._stateDoctypeName(t);
10372
10372
  break;
10373
10373
  }
10374
- case E.AFTER_DOCTYPE_NAME: {
10374
+ case T.AFTER_DOCTYPE_NAME: {
10375
10375
  this._stateAfterDoctypeName(t);
10376
10376
  break;
10377
10377
  }
10378
- case E.AFTER_DOCTYPE_PUBLIC_KEYWORD: {
10378
+ case T.AFTER_DOCTYPE_PUBLIC_KEYWORD: {
10379
10379
  this._stateAfterDoctypePublicKeyword(t);
10380
10380
  break;
10381
10381
  }
10382
- case E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: {
10382
+ case T.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: {
10383
10383
  this._stateBeforeDoctypePublicIdentifier(t);
10384
10384
  break;
10385
10385
  }
10386
- case E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: {
10386
+ case T.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: {
10387
10387
  this._stateDoctypePublicIdentifierDoubleQuoted(t);
10388
10388
  break;
10389
10389
  }
10390
- case E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: {
10390
+ case T.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: {
10391
10391
  this._stateDoctypePublicIdentifierSingleQuoted(t);
10392
10392
  break;
10393
10393
  }
10394
- case E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: {
10394
+ case T.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: {
10395
10395
  this._stateAfterDoctypePublicIdentifier(t);
10396
10396
  break;
10397
10397
  }
10398
- case E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: {
10398
+ case T.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: {
10399
10399
  this._stateBetweenDoctypePublicAndSystemIdentifiers(t);
10400
10400
  break;
10401
10401
  }
10402
- case E.AFTER_DOCTYPE_SYSTEM_KEYWORD: {
10402
+ case T.AFTER_DOCTYPE_SYSTEM_KEYWORD: {
10403
10403
  this._stateAfterDoctypeSystemKeyword(t);
10404
10404
  break;
10405
10405
  }
10406
- case E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: {
10406
+ case T.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: {
10407
10407
  this._stateBeforeDoctypeSystemIdentifier(t);
10408
10408
  break;
10409
10409
  }
10410
- case E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: {
10410
+ case T.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: {
10411
10411
  this._stateDoctypeSystemIdentifierDoubleQuoted(t);
10412
10412
  break;
10413
10413
  }
10414
- case E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: {
10414
+ case T.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: {
10415
10415
  this._stateDoctypeSystemIdentifierSingleQuoted(t);
10416
10416
  break;
10417
10417
  }
10418
- case E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: {
10418
+ case T.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: {
10419
10419
  this._stateAfterDoctypeSystemIdentifier(t);
10420
10420
  break;
10421
10421
  }
10422
- case E.BOGUS_DOCTYPE: {
10422
+ case T.BOGUS_DOCTYPE: {
10423
10423
  this._stateBogusDoctype(t);
10424
10424
  break;
10425
10425
  }
10426
- case E.CDATA_SECTION: {
10426
+ case T.CDATA_SECTION: {
10427
10427
  this._stateCdataSection(t);
10428
10428
  break;
10429
10429
  }
10430
- case E.CDATA_SECTION_BRACKET: {
10430
+ case T.CDATA_SECTION_BRACKET: {
10431
10431
  this._stateCdataSectionBracket(t);
10432
10432
  break;
10433
10433
  }
10434
- case E.CDATA_SECTION_END: {
10434
+ case T.CDATA_SECTION_END: {
10435
10435
  this._stateCdataSectionEnd(t);
10436
10436
  break;
10437
10437
  }
10438
- case E.CHARACTER_REFERENCE: {
10438
+ case T.CHARACTER_REFERENCE: {
10439
10439
  this._stateCharacterReference();
10440
10440
  break;
10441
10441
  }
10442
- case E.AMBIGUOUS_AMPERSAND: {
10442
+ case T.AMBIGUOUS_AMPERSAND: {
10443
10443
  this._stateAmbiguousAmpersand(t);
10444
10444
  break;
10445
10445
  }
@@ -10453,7 +10453,7 @@ class Nm {
10453
10453
  _stateData(t) {
10454
10454
  switch (t) {
10455
10455
  case p.LESS_THAN_SIGN: {
10456
- this.state = E.TAG_OPEN;
10456
+ this.state = T.TAG_OPEN;
10457
10457
  break;
10458
10458
  }
10459
10459
  case p.AMPERSAND: {
@@ -10481,7 +10481,7 @@ class Nm {
10481
10481
  break;
10482
10482
  }
10483
10483
  case p.LESS_THAN_SIGN: {
10484
- this.state = E.RCDATA_LESS_THAN_SIGN;
10484
+ this.state = T.RCDATA_LESS_THAN_SIGN;
10485
10485
  break;
10486
10486
  }
10487
10487
  case p.NULL: {
@@ -10501,7 +10501,7 @@ class Nm {
10501
10501
  _stateRawtext(t) {
10502
10502
  switch (t) {
10503
10503
  case p.LESS_THAN_SIGN: {
10504
- this.state = E.RAWTEXT_LESS_THAN_SIGN;
10504
+ this.state = T.RAWTEXT_LESS_THAN_SIGN;
10505
10505
  break;
10506
10506
  }
10507
10507
  case p.NULL: {
@@ -10521,7 +10521,7 @@ class Nm {
10521
10521
  _stateScriptData(t) {
10522
10522
  switch (t) {
10523
10523
  case p.LESS_THAN_SIGN: {
10524
- this.state = E.SCRIPT_DATA_LESS_THAN_SIGN;
10524
+ this.state = T.SCRIPT_DATA_LESS_THAN_SIGN;
10525
10525
  break;
10526
10526
  }
10527
10527
  case p.NULL: {
@@ -10556,19 +10556,19 @@ class Nm {
10556
10556
  //------------------------------------------------------------------
10557
10557
  _stateTagOpen(t) {
10558
10558
  if (Qe(t))
10559
- this._createStartTagToken(), this.state = E.TAG_NAME, this._stateTagName(t);
10559
+ this._createStartTagToken(), this.state = T.TAG_NAME, this._stateTagName(t);
10560
10560
  else
10561
10561
  switch (t) {
10562
10562
  case p.EXCLAMATION_MARK: {
10563
- this.state = E.MARKUP_DECLARATION_OPEN;
10563
+ this.state = T.MARKUP_DECLARATION_OPEN;
10564
10564
  break;
10565
10565
  }
10566
10566
  case p.SOLIDUS: {
10567
- this.state = E.END_TAG_OPEN;
10567
+ this.state = T.END_TAG_OPEN;
10568
10568
  break;
10569
10569
  }
10570
10570
  case p.QUESTION_MARK: {
10571
- this._err(S.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = E.BOGUS_COMMENT, this._stateBogusComment(t);
10571
+ this._err(S.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = T.BOGUS_COMMENT, this._stateBogusComment(t);
10572
10572
  break;
10573
10573
  }
10574
10574
  case p.EOF: {
@@ -10576,18 +10576,18 @@ class Nm {
10576
10576
  break;
10577
10577
  }
10578
10578
  default:
10579
- this._err(S.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = E.DATA, this._stateData(t);
10579
+ this._err(S.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = T.DATA, this._stateData(t);
10580
10580
  }
10581
10581
  }
10582
10582
  // End tag open state
10583
10583
  //------------------------------------------------------------------
10584
10584
  _stateEndTagOpen(t) {
10585
10585
  if (Qe(t))
10586
- this._createEndTagToken(), this.state = E.TAG_NAME, this._stateTagName(t);
10586
+ this._createEndTagToken(), this.state = T.TAG_NAME, this._stateTagName(t);
10587
10587
  else
10588
10588
  switch (t) {
10589
10589
  case p.GREATER_THAN_SIGN: {
10590
- this._err(S.missingEndTagName), this.state = E.DATA;
10590
+ this._err(S.missingEndTagName), this.state = T.DATA;
10591
10591
  break;
10592
10592
  }
10593
10593
  case p.EOF: {
@@ -10595,7 +10595,7 @@ class Nm {
10595
10595
  break;
10596
10596
  }
10597
10597
  default:
10598
- this._err(S.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = E.BOGUS_COMMENT, this._stateBogusComment(t);
10598
+ this._err(S.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = T.BOGUS_COMMENT, this._stateBogusComment(t);
10599
10599
  }
10600
10600
  }
10601
10601
  // Tag name state
@@ -10607,15 +10607,15 @@ class Nm {
10607
10607
  case p.LINE_FEED:
10608
10608
  case p.TABULATION:
10609
10609
  case p.FORM_FEED: {
10610
- this.state = E.BEFORE_ATTRIBUTE_NAME;
10610
+ this.state = T.BEFORE_ATTRIBUTE_NAME;
10611
10611
  break;
10612
10612
  }
10613
10613
  case p.SOLIDUS: {
10614
- this.state = E.SELF_CLOSING_START_TAG;
10614
+ this.state = T.SELF_CLOSING_START_TAG;
10615
10615
  break;
10616
10616
  }
10617
10617
  case p.GREATER_THAN_SIGN: {
10618
- this.state = E.DATA, this.emitCurrentTagToken();
10618
+ this.state = T.DATA, this.emitCurrentTagToken();
10619
10619
  break;
10620
10620
  }
10621
10621
  case p.NULL: {
@@ -10633,12 +10633,12 @@ class Nm {
10633
10633
  // RCDATA less-than sign state
10634
10634
  //------------------------------------------------------------------
10635
10635
  _stateRcdataLessThanSign(t) {
10636
- t === p.SOLIDUS ? this.state = E.RCDATA_END_TAG_OPEN : (this._emitChars("<"), this.state = E.RCDATA, this._stateRcdata(t));
10636
+ t === p.SOLIDUS ? this.state = T.RCDATA_END_TAG_OPEN : (this._emitChars("<"), this.state = T.RCDATA, this._stateRcdata(t));
10637
10637
  }
10638
10638
  // RCDATA end tag open state
10639
10639
  //------------------------------------------------------------------
10640
10640
  _stateRcdataEndTagOpen(t) {
10641
- Qe(t) ? (this.state = E.RCDATA_END_TAG_NAME, this._stateRcdataEndTagName(t)) : (this._emitChars("</"), this.state = E.RCDATA, this._stateRcdata(t));
10641
+ Qe(t) ? (this.state = T.RCDATA_END_TAG_NAME, this._stateRcdataEndTagName(t)) : (this._emitChars("</"), this.state = T.RCDATA, this._stateRcdata(t));
10642
10642
  }
10643
10643
  handleSpecialEndTag(t) {
10644
10644
  if (!this.preprocessor.startsWith(this.lastStartTagName, !1))
@@ -10650,11 +10650,11 @@ class Nm {
10650
10650
  case p.LINE_FEED:
10651
10651
  case p.TABULATION:
10652
10652
  case p.FORM_FEED:
10653
- return this._advanceBy(this.lastStartTagName.length), this.state = E.BEFORE_ATTRIBUTE_NAME, !1;
10653
+ return this._advanceBy(this.lastStartTagName.length), this.state = T.BEFORE_ATTRIBUTE_NAME, !1;
10654
10654
  case p.SOLIDUS:
10655
- return this._advanceBy(this.lastStartTagName.length), this.state = E.SELF_CLOSING_START_TAG, !1;
10655
+ return this._advanceBy(this.lastStartTagName.length), this.state = T.SELF_CLOSING_START_TAG, !1;
10656
10656
  case p.GREATER_THAN_SIGN:
10657
- return this._advanceBy(this.lastStartTagName.length), this.emitCurrentTagToken(), this.state = E.DATA, !1;
10657
+ return this._advanceBy(this.lastStartTagName.length), this.emitCurrentTagToken(), this.state = T.DATA, !1;
10658
10658
  default:
10659
10659
  return !this._ensureHibernation();
10660
10660
  }
@@ -10662,69 +10662,69 @@ class Nm {
10662
10662
  // RCDATA end tag name state
10663
10663
  //------------------------------------------------------------------
10664
10664
  _stateRcdataEndTagName(t) {
10665
- this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = E.RCDATA, this._stateRcdata(t));
10665
+ this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = T.RCDATA, this._stateRcdata(t));
10666
10666
  }
10667
10667
  // RAWTEXT less-than sign state
10668
10668
  //------------------------------------------------------------------
10669
10669
  _stateRawtextLessThanSign(t) {
10670
- t === p.SOLIDUS ? this.state = E.RAWTEXT_END_TAG_OPEN : (this._emitChars("<"), this.state = E.RAWTEXT, this._stateRawtext(t));
10670
+ t === p.SOLIDUS ? this.state = T.RAWTEXT_END_TAG_OPEN : (this._emitChars("<"), this.state = T.RAWTEXT, this._stateRawtext(t));
10671
10671
  }
10672
10672
  // RAWTEXT end tag open state
10673
10673
  //------------------------------------------------------------------
10674
10674
  _stateRawtextEndTagOpen(t) {
10675
- Qe(t) ? (this.state = E.RAWTEXT_END_TAG_NAME, this._stateRawtextEndTagName(t)) : (this._emitChars("</"), this.state = E.RAWTEXT, this._stateRawtext(t));
10675
+ Qe(t) ? (this.state = T.RAWTEXT_END_TAG_NAME, this._stateRawtextEndTagName(t)) : (this._emitChars("</"), this.state = T.RAWTEXT, this._stateRawtext(t));
10676
10676
  }
10677
10677
  // RAWTEXT end tag name state
10678
10678
  //------------------------------------------------------------------
10679
10679
  _stateRawtextEndTagName(t) {
10680
- this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = E.RAWTEXT, this._stateRawtext(t));
10680
+ this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = T.RAWTEXT, this._stateRawtext(t));
10681
10681
  }
10682
10682
  // Script data less-than sign state
10683
10683
  //------------------------------------------------------------------
10684
10684
  _stateScriptDataLessThanSign(t) {
10685
10685
  switch (t) {
10686
10686
  case p.SOLIDUS: {
10687
- this.state = E.SCRIPT_DATA_END_TAG_OPEN;
10687
+ this.state = T.SCRIPT_DATA_END_TAG_OPEN;
10688
10688
  break;
10689
10689
  }
10690
10690
  case p.EXCLAMATION_MARK: {
10691
- this.state = E.SCRIPT_DATA_ESCAPE_START, this._emitChars("<!");
10691
+ this.state = T.SCRIPT_DATA_ESCAPE_START, this._emitChars("<!");
10692
10692
  break;
10693
10693
  }
10694
10694
  default:
10695
- this._emitChars("<"), this.state = E.SCRIPT_DATA, this._stateScriptData(t);
10695
+ this._emitChars("<"), this.state = T.SCRIPT_DATA, this._stateScriptData(t);
10696
10696
  }
10697
10697
  }
10698
10698
  // Script data end tag open state
10699
10699
  //------------------------------------------------------------------
10700
10700
  _stateScriptDataEndTagOpen(t) {
10701
- Qe(t) ? (this.state = E.SCRIPT_DATA_END_TAG_NAME, this._stateScriptDataEndTagName(t)) : (this._emitChars("</"), this.state = E.SCRIPT_DATA, this._stateScriptData(t));
10701
+ Qe(t) ? (this.state = T.SCRIPT_DATA_END_TAG_NAME, this._stateScriptDataEndTagName(t)) : (this._emitChars("</"), this.state = T.SCRIPT_DATA, this._stateScriptData(t));
10702
10702
  }
10703
10703
  // Script data end tag name state
10704
10704
  //------------------------------------------------------------------
10705
10705
  _stateScriptDataEndTagName(t) {
10706
- this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = E.SCRIPT_DATA, this._stateScriptData(t));
10706
+ this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = T.SCRIPT_DATA, this._stateScriptData(t));
10707
10707
  }
10708
10708
  // Script data escape start state
10709
10709
  //------------------------------------------------------------------
10710
10710
  _stateScriptDataEscapeStart(t) {
10711
- t === p.HYPHEN_MINUS ? (this.state = E.SCRIPT_DATA_ESCAPE_START_DASH, this._emitChars("-")) : (this.state = E.SCRIPT_DATA, this._stateScriptData(t));
10711
+ t === p.HYPHEN_MINUS ? (this.state = T.SCRIPT_DATA_ESCAPE_START_DASH, this._emitChars("-")) : (this.state = T.SCRIPT_DATA, this._stateScriptData(t));
10712
10712
  }
10713
10713
  // Script data escape start dash state
10714
10714
  //------------------------------------------------------------------
10715
10715
  _stateScriptDataEscapeStartDash(t) {
10716
- t === p.HYPHEN_MINUS ? (this.state = E.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-")) : (this.state = E.SCRIPT_DATA, this._stateScriptData(t));
10716
+ t === p.HYPHEN_MINUS ? (this.state = T.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-")) : (this.state = T.SCRIPT_DATA, this._stateScriptData(t));
10717
10717
  }
10718
10718
  // Script data escaped state
10719
10719
  //------------------------------------------------------------------
10720
10720
  _stateScriptDataEscaped(t) {
10721
10721
  switch (t) {
10722
10722
  case p.HYPHEN_MINUS: {
10723
- this.state = E.SCRIPT_DATA_ESCAPED_DASH, this._emitChars("-");
10723
+ this.state = T.SCRIPT_DATA_ESCAPED_DASH, this._emitChars("-");
10724
10724
  break;
10725
10725
  }
10726
10726
  case p.LESS_THAN_SIGN: {
10727
- this.state = E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
10727
+ this.state = T.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
10728
10728
  break;
10729
10729
  }
10730
10730
  case p.NULL: {
@@ -10744,15 +10744,15 @@ class Nm {
10744
10744
  _stateScriptDataEscapedDash(t) {
10745
10745
  switch (t) {
10746
10746
  case p.HYPHEN_MINUS: {
10747
- this.state = E.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-");
10747
+ this.state = T.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-");
10748
10748
  break;
10749
10749
  }
10750
10750
  case p.LESS_THAN_SIGN: {
10751
- this.state = E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
10751
+ this.state = T.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
10752
10752
  break;
10753
10753
  }
10754
10754
  case p.NULL: {
10755
- this._err(S.unexpectedNullCharacter), this.state = E.SCRIPT_DATA_ESCAPED, this._emitChars(de);
10755
+ this._err(S.unexpectedNullCharacter), this.state = T.SCRIPT_DATA_ESCAPED, this._emitChars(de);
10756
10756
  break;
10757
10757
  }
10758
10758
  case p.EOF: {
@@ -10760,7 +10760,7 @@ class Nm {
10760
10760
  break;
10761
10761
  }
10762
10762
  default:
10763
- this.state = E.SCRIPT_DATA_ESCAPED, this._emitCodePoint(t);
10763
+ this.state = T.SCRIPT_DATA_ESCAPED, this._emitCodePoint(t);
10764
10764
  }
10765
10765
  }
10766
10766
  // Script data escaped dash dash state
@@ -10772,15 +10772,15 @@ class Nm {
10772
10772
  break;
10773
10773
  }
10774
10774
  case p.LESS_THAN_SIGN: {
10775
- this.state = E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
10775
+ this.state = T.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
10776
10776
  break;
10777
10777
  }
10778
10778
  case p.GREATER_THAN_SIGN: {
10779
- this.state = E.SCRIPT_DATA, this._emitChars(">");
10779
+ this.state = T.SCRIPT_DATA, this._emitChars(">");
10780
10780
  break;
10781
10781
  }
10782
10782
  case p.NULL: {
10783
- this._err(S.unexpectedNullCharacter), this.state = E.SCRIPT_DATA_ESCAPED, this._emitChars(de);
10783
+ this._err(S.unexpectedNullCharacter), this.state = T.SCRIPT_DATA_ESCAPED, this._emitChars(de);
10784
10784
  break;
10785
10785
  }
10786
10786
  case p.EOF: {
@@ -10788,23 +10788,23 @@ class Nm {
10788
10788
  break;
10789
10789
  }
10790
10790
  default:
10791
- this.state = E.SCRIPT_DATA_ESCAPED, this._emitCodePoint(t);
10791
+ this.state = T.SCRIPT_DATA_ESCAPED, this._emitCodePoint(t);
10792
10792
  }
10793
10793
  }
10794
10794
  // Script data escaped less-than sign state
10795
10795
  //------------------------------------------------------------------
10796
10796
  _stateScriptDataEscapedLessThanSign(t) {
10797
- t === p.SOLIDUS ? this.state = E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN : Qe(t) ? (this._emitChars("<"), this.state = E.SCRIPT_DATA_DOUBLE_ESCAPE_START, this._stateScriptDataDoubleEscapeStart(t)) : (this._emitChars("<"), this.state = E.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
10797
+ t === p.SOLIDUS ? this.state = T.SCRIPT_DATA_ESCAPED_END_TAG_OPEN : Qe(t) ? (this._emitChars("<"), this.state = T.SCRIPT_DATA_DOUBLE_ESCAPE_START, this._stateScriptDataDoubleEscapeStart(t)) : (this._emitChars("<"), this.state = T.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
10798
10798
  }
10799
10799
  // Script data escaped end tag open state
10800
10800
  //------------------------------------------------------------------
10801
10801
  _stateScriptDataEscapedEndTagOpen(t) {
10802
- Qe(t) ? (this.state = E.SCRIPT_DATA_ESCAPED_END_TAG_NAME, this._stateScriptDataEscapedEndTagName(t)) : (this._emitChars("</"), this.state = E.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
10802
+ Qe(t) ? (this.state = T.SCRIPT_DATA_ESCAPED_END_TAG_NAME, this._stateScriptDataEscapedEndTagName(t)) : (this._emitChars("</"), this.state = T.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
10803
10803
  }
10804
10804
  // Script data escaped end tag name state
10805
10805
  //------------------------------------------------------------------
10806
10806
  _stateScriptDataEscapedEndTagName(t) {
10807
- this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = E.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
10807
+ this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = T.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
10808
10808
  }
10809
10809
  // Script data double escape start state
10810
10810
  //------------------------------------------------------------------
@@ -10813,19 +10813,19 @@ class Nm {
10813
10813
  this._emitCodePoint(t);
10814
10814
  for (let n = 0; n < Ie.SCRIPT.length; n++)
10815
10815
  this._emitCodePoint(this._consume());
10816
- this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED;
10817
- } else this._ensureHibernation() || (this.state = E.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
10816
+ this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED;
10817
+ } else this._ensureHibernation() || (this.state = T.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
10818
10818
  }
10819
10819
  // Script data double escaped state
10820
10820
  //------------------------------------------------------------------
10821
10821
  _stateScriptDataDoubleEscaped(t) {
10822
10822
  switch (t) {
10823
10823
  case p.HYPHEN_MINUS: {
10824
- this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH, this._emitChars("-");
10824
+ this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED_DASH, this._emitChars("-");
10825
10825
  break;
10826
10826
  }
10827
10827
  case p.LESS_THAN_SIGN: {
10828
- this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
10828
+ this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
10829
10829
  break;
10830
10830
  }
10831
10831
  case p.NULL: {
@@ -10845,15 +10845,15 @@ class Nm {
10845
10845
  _stateScriptDataDoubleEscapedDash(t) {
10846
10846
  switch (t) {
10847
10847
  case p.HYPHEN_MINUS: {
10848
- this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH, this._emitChars("-");
10848
+ this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH, this._emitChars("-");
10849
10849
  break;
10850
10850
  }
10851
10851
  case p.LESS_THAN_SIGN: {
10852
- this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
10852
+ this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
10853
10853
  break;
10854
10854
  }
10855
10855
  case p.NULL: {
10856
- this._err(S.unexpectedNullCharacter), this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(de);
10856
+ this._err(S.unexpectedNullCharacter), this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(de);
10857
10857
  break;
10858
10858
  }
10859
10859
  case p.EOF: {
@@ -10861,7 +10861,7 @@ class Nm {
10861
10861
  break;
10862
10862
  }
10863
10863
  default:
10864
- this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(t);
10864
+ this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(t);
10865
10865
  }
10866
10866
  }
10867
10867
  // Script data double escaped dash dash state
@@ -10873,15 +10873,15 @@ class Nm {
10873
10873
  break;
10874
10874
  }
10875
10875
  case p.LESS_THAN_SIGN: {
10876
- this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
10876
+ this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
10877
10877
  break;
10878
10878
  }
10879
10879
  case p.GREATER_THAN_SIGN: {
10880
- this.state = E.SCRIPT_DATA, this._emitChars(">");
10880
+ this.state = T.SCRIPT_DATA, this._emitChars(">");
10881
10881
  break;
10882
10882
  }
10883
10883
  case p.NULL: {
10884
- this._err(S.unexpectedNullCharacter), this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(de);
10884
+ this._err(S.unexpectedNullCharacter), this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(de);
10885
10885
  break;
10886
10886
  }
10887
10887
  case p.EOF: {
@@ -10889,13 +10889,13 @@ class Nm {
10889
10889
  break;
10890
10890
  }
10891
10891
  default:
10892
- this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(t);
10892
+ this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(t);
10893
10893
  }
10894
10894
  }
10895
10895
  // Script data double escaped less-than sign state
10896
10896
  //------------------------------------------------------------------
10897
10897
  _stateScriptDataDoubleEscapedLessThanSign(t) {
10898
- t === p.SOLIDUS ? (this.state = E.SCRIPT_DATA_DOUBLE_ESCAPE_END, this._emitChars("/")) : (this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
10898
+ t === p.SOLIDUS ? (this.state = T.SCRIPT_DATA_DOUBLE_ESCAPE_END, this._emitChars("/")) : (this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
10899
10899
  }
10900
10900
  // Script data double escape end state
10901
10901
  //------------------------------------------------------------------
@@ -10904,8 +10904,8 @@ class Nm {
10904
10904
  this._emitCodePoint(t);
10905
10905
  for (let n = 0; n < Ie.SCRIPT.length; n++)
10906
10906
  this._emitCodePoint(this._consume());
10907
- this.state = E.SCRIPT_DATA_ESCAPED;
10908
- } else this._ensureHibernation() || (this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
10907
+ this.state = T.SCRIPT_DATA_ESCAPED;
10908
+ } else this._ensureHibernation() || (this.state = T.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
10909
10909
  }
10910
10910
  // Before attribute name state
10911
10911
  //------------------------------------------------------------------
@@ -10919,15 +10919,15 @@ class Nm {
10919
10919
  case p.SOLIDUS:
10920
10920
  case p.GREATER_THAN_SIGN:
10921
10921
  case p.EOF: {
10922
- this.state = E.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(t);
10922
+ this.state = T.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(t);
10923
10923
  break;
10924
10924
  }
10925
10925
  case p.EQUALS_SIGN: {
10926
- this._err(S.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = E.ATTRIBUTE_NAME;
10926
+ this._err(S.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = T.ATTRIBUTE_NAME;
10927
10927
  break;
10928
10928
  }
10929
10929
  default:
10930
- this._createAttr(""), this.state = E.ATTRIBUTE_NAME, this._stateAttributeName(t);
10930
+ this._createAttr(""), this.state = T.ATTRIBUTE_NAME, this._stateAttributeName(t);
10931
10931
  }
10932
10932
  }
10933
10933
  // Attribute name state
@@ -10941,11 +10941,11 @@ class Nm {
10941
10941
  case p.SOLIDUS:
10942
10942
  case p.GREATER_THAN_SIGN:
10943
10943
  case p.EOF: {
10944
- this._leaveAttrName(), this.state = E.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(t);
10944
+ this._leaveAttrName(), this.state = T.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(t);
10945
10945
  break;
10946
10946
  }
10947
10947
  case p.EQUALS_SIGN: {
10948
- this._leaveAttrName(), this.state = E.BEFORE_ATTRIBUTE_VALUE;
10948
+ this._leaveAttrName(), this.state = T.BEFORE_ATTRIBUTE_VALUE;
10949
10949
  break;
10950
10950
  }
10951
10951
  case p.QUOTATION_MARK:
@@ -10972,15 +10972,15 @@ class Nm {
10972
10972
  case p.FORM_FEED:
10973
10973
  break;
10974
10974
  case p.SOLIDUS: {
10975
- this.state = E.SELF_CLOSING_START_TAG;
10975
+ this.state = T.SELF_CLOSING_START_TAG;
10976
10976
  break;
10977
10977
  }
10978
10978
  case p.EQUALS_SIGN: {
10979
- this.state = E.BEFORE_ATTRIBUTE_VALUE;
10979
+ this.state = T.BEFORE_ATTRIBUTE_VALUE;
10980
10980
  break;
10981
10981
  }
10982
10982
  case p.GREATER_THAN_SIGN: {
10983
- this.state = E.DATA, this.emitCurrentTagToken();
10983
+ this.state = T.DATA, this.emitCurrentTagToken();
10984
10984
  break;
10985
10985
  }
10986
10986
  case p.EOF: {
@@ -10988,7 +10988,7 @@ class Nm {
10988
10988
  break;
10989
10989
  }
10990
10990
  default:
10991
- this._createAttr(""), this.state = E.ATTRIBUTE_NAME, this._stateAttributeName(t);
10991
+ this._createAttr(""), this.state = T.ATTRIBUTE_NAME, this._stateAttributeName(t);
10992
10992
  }
10993
10993
  }
10994
10994
  // Before attribute value state
@@ -11001,19 +11001,19 @@ class Nm {
11001
11001
  case p.FORM_FEED:
11002
11002
  break;
11003
11003
  case p.QUOTATION_MARK: {
11004
- this.state = E.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
11004
+ this.state = T.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
11005
11005
  break;
11006
11006
  }
11007
11007
  case p.APOSTROPHE: {
11008
- this.state = E.ATTRIBUTE_VALUE_SINGLE_QUOTED;
11008
+ this.state = T.ATTRIBUTE_VALUE_SINGLE_QUOTED;
11009
11009
  break;
11010
11010
  }
11011
11011
  case p.GREATER_THAN_SIGN: {
11012
- this._err(S.missingAttributeValue), this.state = E.DATA, this.emitCurrentTagToken();
11012
+ this._err(S.missingAttributeValue), this.state = T.DATA, this.emitCurrentTagToken();
11013
11013
  break;
11014
11014
  }
11015
11015
  default:
11016
- this.state = E.ATTRIBUTE_VALUE_UNQUOTED, this._stateAttributeValueUnquoted(t);
11016
+ this.state = T.ATTRIBUTE_VALUE_UNQUOTED, this._stateAttributeValueUnquoted(t);
11017
11017
  }
11018
11018
  }
11019
11019
  // Attribute value (double-quoted) state
@@ -11021,7 +11021,7 @@ class Nm {
11021
11021
  _stateAttributeValueDoubleQuoted(t) {
11022
11022
  switch (t) {
11023
11023
  case p.QUOTATION_MARK: {
11024
- this.state = E.AFTER_ATTRIBUTE_VALUE_QUOTED;
11024
+ this.state = T.AFTER_ATTRIBUTE_VALUE_QUOTED;
11025
11025
  break;
11026
11026
  }
11027
11027
  case p.AMPERSAND: {
@@ -11045,7 +11045,7 @@ class Nm {
11045
11045
  _stateAttributeValueSingleQuoted(t) {
11046
11046
  switch (t) {
11047
11047
  case p.APOSTROPHE: {
11048
- this.state = E.AFTER_ATTRIBUTE_VALUE_QUOTED;
11048
+ this.state = T.AFTER_ATTRIBUTE_VALUE_QUOTED;
11049
11049
  break;
11050
11050
  }
11051
11051
  case p.AMPERSAND: {
@@ -11072,7 +11072,7 @@ class Nm {
11072
11072
  case p.LINE_FEED:
11073
11073
  case p.TABULATION:
11074
11074
  case p.FORM_FEED: {
11075
- this._leaveAttrValue(), this.state = E.BEFORE_ATTRIBUTE_NAME;
11075
+ this._leaveAttrValue(), this.state = T.BEFORE_ATTRIBUTE_NAME;
11076
11076
  break;
11077
11077
  }
11078
11078
  case p.AMPERSAND: {
@@ -11080,7 +11080,7 @@ class Nm {
11080
11080
  break;
11081
11081
  }
11082
11082
  case p.GREATER_THAN_SIGN: {
11083
- this._leaveAttrValue(), this.state = E.DATA, this.emitCurrentTagToken();
11083
+ this._leaveAttrValue(), this.state = T.DATA, this.emitCurrentTagToken();
11084
11084
  break;
11085
11085
  }
11086
11086
  case p.NULL: {
@@ -11111,15 +11111,15 @@ class Nm {
11111
11111
  case p.LINE_FEED:
11112
11112
  case p.TABULATION:
11113
11113
  case p.FORM_FEED: {
11114
- this._leaveAttrValue(), this.state = E.BEFORE_ATTRIBUTE_NAME;
11114
+ this._leaveAttrValue(), this.state = T.BEFORE_ATTRIBUTE_NAME;
11115
11115
  break;
11116
11116
  }
11117
11117
  case p.SOLIDUS: {
11118
- this._leaveAttrValue(), this.state = E.SELF_CLOSING_START_TAG;
11118
+ this._leaveAttrValue(), this.state = T.SELF_CLOSING_START_TAG;
11119
11119
  break;
11120
11120
  }
11121
11121
  case p.GREATER_THAN_SIGN: {
11122
- this._leaveAttrValue(), this.state = E.DATA, this.emitCurrentTagToken();
11122
+ this._leaveAttrValue(), this.state = T.DATA, this.emitCurrentTagToken();
11123
11123
  break;
11124
11124
  }
11125
11125
  case p.EOF: {
@@ -11127,7 +11127,7 @@ class Nm {
11127
11127
  break;
11128
11128
  }
11129
11129
  default:
11130
- this._err(S.missingWhitespaceBetweenAttributes), this.state = E.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
11130
+ this._err(S.missingWhitespaceBetweenAttributes), this.state = T.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
11131
11131
  }
11132
11132
  }
11133
11133
  // Self-closing start tag state
@@ -11136,7 +11136,7 @@ class Nm {
11136
11136
  switch (t) {
11137
11137
  case p.GREATER_THAN_SIGN: {
11138
11138
  const n = this.currentToken;
11139
- n.selfClosing = !0, this.state = E.DATA, this.emitCurrentTagToken();
11139
+ n.selfClosing = !0, this.state = T.DATA, this.emitCurrentTagToken();
11140
11140
  break;
11141
11141
  }
11142
11142
  case p.EOF: {
@@ -11144,7 +11144,7 @@ class Nm {
11144
11144
  break;
11145
11145
  }
11146
11146
  default:
11147
- this._err(S.unexpectedSolidusInTag), this.state = E.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
11147
+ this._err(S.unexpectedSolidusInTag), this.state = T.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
11148
11148
  }
11149
11149
  }
11150
11150
  // Bogus comment state
@@ -11153,7 +11153,7 @@ class Nm {
11153
11153
  const n = this.currentToken;
11154
11154
  switch (t) {
11155
11155
  case p.GREATER_THAN_SIGN: {
11156
- this.state = E.DATA, this.emitCurrentComment(n);
11156
+ this.state = T.DATA, this.emitCurrentComment(n);
11157
11157
  break;
11158
11158
  }
11159
11159
  case p.EOF: {
@@ -11171,24 +11171,24 @@ class Nm {
11171
11171
  // Markup declaration open state
11172
11172
  //------------------------------------------------------------------
11173
11173
  _stateMarkupDeclarationOpen(t) {
11174
- this._consumeSequenceIfMatch(Ie.DASH_DASH, !0) ? (this._createCommentToken(Ie.DASH_DASH.length + 1), this.state = E.COMMENT_START) : this._consumeSequenceIfMatch(Ie.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Ie.DOCTYPE.length + 1), this.state = E.DOCTYPE) : this._consumeSequenceIfMatch(Ie.CDATA_START, !0) ? this.inForeignNode ? this.state = E.CDATA_SECTION : (this._err(S.cdataInHtmlContent), this._createCommentToken(Ie.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = E.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(S.incorrectlyOpenedComment), this._createCommentToken(2), this.state = E.BOGUS_COMMENT, this._stateBogusComment(t));
11174
+ this._consumeSequenceIfMatch(Ie.DASH_DASH, !0) ? (this._createCommentToken(Ie.DASH_DASH.length + 1), this.state = T.COMMENT_START) : this._consumeSequenceIfMatch(Ie.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Ie.DOCTYPE.length + 1), this.state = T.DOCTYPE) : this._consumeSequenceIfMatch(Ie.CDATA_START, !0) ? this.inForeignNode ? this.state = T.CDATA_SECTION : (this._err(S.cdataInHtmlContent), this._createCommentToken(Ie.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = T.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(S.incorrectlyOpenedComment), this._createCommentToken(2), this.state = T.BOGUS_COMMENT, this._stateBogusComment(t));
11175
11175
  }
11176
11176
  // Comment start state
11177
11177
  //------------------------------------------------------------------
11178
11178
  _stateCommentStart(t) {
11179
11179
  switch (t) {
11180
11180
  case p.HYPHEN_MINUS: {
11181
- this.state = E.COMMENT_START_DASH;
11181
+ this.state = T.COMMENT_START_DASH;
11182
11182
  break;
11183
11183
  }
11184
11184
  case p.GREATER_THAN_SIGN: {
11185
- this._err(S.abruptClosingOfEmptyComment), this.state = E.DATA;
11185
+ this._err(S.abruptClosingOfEmptyComment), this.state = T.DATA;
11186
11186
  const n = this.currentToken;
11187
11187
  this.emitCurrentComment(n);
11188
11188
  break;
11189
11189
  }
11190
11190
  default:
11191
- this.state = E.COMMENT, this._stateComment(t);
11191
+ this.state = T.COMMENT, this._stateComment(t);
11192
11192
  }
11193
11193
  }
11194
11194
  // Comment start dash state
@@ -11197,11 +11197,11 @@ class Nm {
11197
11197
  const n = this.currentToken;
11198
11198
  switch (t) {
11199
11199
  case p.HYPHEN_MINUS: {
11200
- this.state = E.COMMENT_END;
11200
+ this.state = T.COMMENT_END;
11201
11201
  break;
11202
11202
  }
11203
11203
  case p.GREATER_THAN_SIGN: {
11204
- this._err(S.abruptClosingOfEmptyComment), this.state = E.DATA, this.emitCurrentComment(n);
11204
+ this._err(S.abruptClosingOfEmptyComment), this.state = T.DATA, this.emitCurrentComment(n);
11205
11205
  break;
11206
11206
  }
11207
11207
  case p.EOF: {
@@ -11209,7 +11209,7 @@ class Nm {
11209
11209
  break;
11210
11210
  }
11211
11211
  default:
11212
- n.data += "-", this.state = E.COMMENT, this._stateComment(t);
11212
+ n.data += "-", this.state = T.COMMENT, this._stateComment(t);
11213
11213
  }
11214
11214
  }
11215
11215
  // Comment state
@@ -11218,11 +11218,11 @@ class Nm {
11218
11218
  const n = this.currentToken;
11219
11219
  switch (t) {
11220
11220
  case p.HYPHEN_MINUS: {
11221
- this.state = E.COMMENT_END_DASH;
11221
+ this.state = T.COMMENT_END_DASH;
11222
11222
  break;
11223
11223
  }
11224
11224
  case p.LESS_THAN_SIGN: {
11225
- n.data += "<", this.state = E.COMMENT_LESS_THAN_SIGN;
11225
+ n.data += "<", this.state = T.COMMENT_LESS_THAN_SIGN;
11226
11226
  break;
11227
11227
  }
11228
11228
  case p.NULL: {
@@ -11243,7 +11243,7 @@ class Nm {
11243
11243
  const n = this.currentToken;
11244
11244
  switch (t) {
11245
11245
  case p.EXCLAMATION_MARK: {
11246
- n.data += "!", this.state = E.COMMENT_LESS_THAN_SIGN_BANG;
11246
+ n.data += "!", this.state = T.COMMENT_LESS_THAN_SIGN_BANG;
11247
11247
  break;
11248
11248
  }
11249
11249
  case p.LESS_THAN_SIGN: {
@@ -11251,23 +11251,23 @@ class Nm {
11251
11251
  break;
11252
11252
  }
11253
11253
  default:
11254
- this.state = E.COMMENT, this._stateComment(t);
11254
+ this.state = T.COMMENT, this._stateComment(t);
11255
11255
  }
11256
11256
  }
11257
11257
  // Comment less-than sign bang state
11258
11258
  //------------------------------------------------------------------
11259
11259
  _stateCommentLessThanSignBang(t) {
11260
- t === p.HYPHEN_MINUS ? this.state = E.COMMENT_LESS_THAN_SIGN_BANG_DASH : (this.state = E.COMMENT, this._stateComment(t));
11260
+ t === p.HYPHEN_MINUS ? this.state = T.COMMENT_LESS_THAN_SIGN_BANG_DASH : (this.state = T.COMMENT, this._stateComment(t));
11261
11261
  }
11262
11262
  // Comment less-than sign bang dash state
11263
11263
  //------------------------------------------------------------------
11264
11264
  _stateCommentLessThanSignBangDash(t) {
11265
- t === p.HYPHEN_MINUS ? this.state = E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH : (this.state = E.COMMENT_END_DASH, this._stateCommentEndDash(t));
11265
+ t === p.HYPHEN_MINUS ? this.state = T.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH : (this.state = T.COMMENT_END_DASH, this._stateCommentEndDash(t));
11266
11266
  }
11267
11267
  // Comment less-than sign bang dash dash state
11268
11268
  //------------------------------------------------------------------
11269
11269
  _stateCommentLessThanSignBangDashDash(t) {
11270
- t !== p.GREATER_THAN_SIGN && t !== p.EOF && this._err(S.nestedComment), this.state = E.COMMENT_END, this._stateCommentEnd(t);
11270
+ t !== p.GREATER_THAN_SIGN && t !== p.EOF && this._err(S.nestedComment), this.state = T.COMMENT_END, this._stateCommentEnd(t);
11271
11271
  }
11272
11272
  // Comment end dash state
11273
11273
  //------------------------------------------------------------------
@@ -11275,7 +11275,7 @@ class Nm {
11275
11275
  const n = this.currentToken;
11276
11276
  switch (t) {
11277
11277
  case p.HYPHEN_MINUS: {
11278
- this.state = E.COMMENT_END;
11278
+ this.state = T.COMMENT_END;
11279
11279
  break;
11280
11280
  }
11281
11281
  case p.EOF: {
@@ -11283,7 +11283,7 @@ class Nm {
11283
11283
  break;
11284
11284
  }
11285
11285
  default:
11286
- n.data += "-", this.state = E.COMMENT, this._stateComment(t);
11286
+ n.data += "-", this.state = T.COMMENT, this._stateComment(t);
11287
11287
  }
11288
11288
  }
11289
11289
  // Comment end state
@@ -11292,11 +11292,11 @@ class Nm {
11292
11292
  const n = this.currentToken;
11293
11293
  switch (t) {
11294
11294
  case p.GREATER_THAN_SIGN: {
11295
- this.state = E.DATA, this.emitCurrentComment(n);
11295
+ this.state = T.DATA, this.emitCurrentComment(n);
11296
11296
  break;
11297
11297
  }
11298
11298
  case p.EXCLAMATION_MARK: {
11299
- this.state = E.COMMENT_END_BANG;
11299
+ this.state = T.COMMENT_END_BANG;
11300
11300
  break;
11301
11301
  }
11302
11302
  case p.HYPHEN_MINUS: {
@@ -11308,7 +11308,7 @@ class Nm {
11308
11308
  break;
11309
11309
  }
11310
11310
  default:
11311
- n.data += "--", this.state = E.COMMENT, this._stateComment(t);
11311
+ n.data += "--", this.state = T.COMMENT, this._stateComment(t);
11312
11312
  }
11313
11313
  }
11314
11314
  // Comment end bang state
@@ -11317,11 +11317,11 @@ class Nm {
11317
11317
  const n = this.currentToken;
11318
11318
  switch (t) {
11319
11319
  case p.HYPHEN_MINUS: {
11320
- n.data += "--!", this.state = E.COMMENT_END_DASH;
11320
+ n.data += "--!", this.state = T.COMMENT_END_DASH;
11321
11321
  break;
11322
11322
  }
11323
11323
  case p.GREATER_THAN_SIGN: {
11324
- this._err(S.incorrectlyClosedComment), this.state = E.DATA, this.emitCurrentComment(n);
11324
+ this._err(S.incorrectlyClosedComment), this.state = T.DATA, this.emitCurrentComment(n);
11325
11325
  break;
11326
11326
  }
11327
11327
  case p.EOF: {
@@ -11329,7 +11329,7 @@ class Nm {
11329
11329
  break;
11330
11330
  }
11331
11331
  default:
11332
- n.data += "--!", this.state = E.COMMENT, this._stateComment(t);
11332
+ n.data += "--!", this.state = T.COMMENT, this._stateComment(t);
11333
11333
  }
11334
11334
  }
11335
11335
  // DOCTYPE state
@@ -11340,11 +11340,11 @@ class Nm {
11340
11340
  case p.LINE_FEED:
11341
11341
  case p.TABULATION:
11342
11342
  case p.FORM_FEED: {
11343
- this.state = E.BEFORE_DOCTYPE_NAME;
11343
+ this.state = T.BEFORE_DOCTYPE_NAME;
11344
11344
  break;
11345
11345
  }
11346
11346
  case p.GREATER_THAN_SIGN: {
11347
- this.state = E.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
11347
+ this.state = T.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
11348
11348
  break;
11349
11349
  }
11350
11350
  case p.EOF: {
@@ -11354,14 +11354,14 @@ class Nm {
11354
11354
  break;
11355
11355
  }
11356
11356
  default:
11357
- this._err(S.missingWhitespaceBeforeDoctypeName), this.state = E.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
11357
+ this._err(S.missingWhitespaceBeforeDoctypeName), this.state = T.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
11358
11358
  }
11359
11359
  }
11360
11360
  // Before DOCTYPE name state
11361
11361
  //------------------------------------------------------------------
11362
11362
  _stateBeforeDoctypeName(t) {
11363
11363
  if (vt(t))
11364
- this._createDoctypeToken(String.fromCharCode(hn(t))), this.state = E.DOCTYPE_NAME;
11364
+ this._createDoctypeToken(String.fromCharCode(hn(t))), this.state = T.DOCTYPE_NAME;
11365
11365
  else
11366
11366
  switch (t) {
11367
11367
  case p.SPACE:
@@ -11370,13 +11370,13 @@ class Nm {
11370
11370
  case p.FORM_FEED:
11371
11371
  break;
11372
11372
  case p.NULL: {
11373
- this._err(S.unexpectedNullCharacter), this._createDoctypeToken(de), this.state = E.DOCTYPE_NAME;
11373
+ this._err(S.unexpectedNullCharacter), this._createDoctypeToken(de), this.state = T.DOCTYPE_NAME;
11374
11374
  break;
11375
11375
  }
11376
11376
  case p.GREATER_THAN_SIGN: {
11377
11377
  this._err(S.missingDoctypeName), this._createDoctypeToken(null);
11378
11378
  const n = this.currentToken;
11379
- n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = E.DATA;
11379
+ n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = T.DATA;
11380
11380
  break;
11381
11381
  }
11382
11382
  case p.EOF: {
@@ -11386,7 +11386,7 @@ class Nm {
11386
11386
  break;
11387
11387
  }
11388
11388
  default:
11389
- this._createDoctypeToken(String.fromCodePoint(t)), this.state = E.DOCTYPE_NAME;
11389
+ this._createDoctypeToken(String.fromCodePoint(t)), this.state = T.DOCTYPE_NAME;
11390
11390
  }
11391
11391
  }
11392
11392
  // DOCTYPE name state
@@ -11398,11 +11398,11 @@ class Nm {
11398
11398
  case p.LINE_FEED:
11399
11399
  case p.TABULATION:
11400
11400
  case p.FORM_FEED: {
11401
- this.state = E.AFTER_DOCTYPE_NAME;
11401
+ this.state = T.AFTER_DOCTYPE_NAME;
11402
11402
  break;
11403
11403
  }
11404
11404
  case p.GREATER_THAN_SIGN: {
11405
- this.state = E.DATA, this.emitCurrentDoctype(n);
11405
+ this.state = T.DATA, this.emitCurrentDoctype(n);
11406
11406
  break;
11407
11407
  }
11408
11408
  case p.NULL: {
@@ -11428,7 +11428,7 @@ class Nm {
11428
11428
  case p.FORM_FEED:
11429
11429
  break;
11430
11430
  case p.GREATER_THAN_SIGN: {
11431
- this.state = E.DATA, this.emitCurrentDoctype(n);
11431
+ this.state = T.DATA, this.emitCurrentDoctype(n);
11432
11432
  break;
11433
11433
  }
11434
11434
  case p.EOF: {
@@ -11436,7 +11436,7 @@ class Nm {
11436
11436
  break;
11437
11437
  }
11438
11438
  default:
11439
- this._consumeSequenceIfMatch(Ie.PUBLIC, !1) ? this.state = E.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Ie.SYSTEM, !1) ? this.state = E.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(S.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
11439
+ this._consumeSequenceIfMatch(Ie.PUBLIC, !1) ? this.state = T.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Ie.SYSTEM, !1) ? this.state = T.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(S.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = T.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
11440
11440
  }
11441
11441
  }
11442
11442
  // After DOCTYPE public keyword state
@@ -11448,19 +11448,19 @@ class Nm {
11448
11448
  case p.LINE_FEED:
11449
11449
  case p.TABULATION:
11450
11450
  case p.FORM_FEED: {
11451
- this.state = E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
11451
+ this.state = T.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
11452
11452
  break;
11453
11453
  }
11454
11454
  case p.QUOTATION_MARK: {
11455
- this._err(S.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
11455
+ this._err(S.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = T.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
11456
11456
  break;
11457
11457
  }
11458
11458
  case p.APOSTROPHE: {
11459
- this._err(S.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
11459
+ this._err(S.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = T.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
11460
11460
  break;
11461
11461
  }
11462
11462
  case p.GREATER_THAN_SIGN: {
11463
- this._err(S.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = E.DATA, this.emitCurrentDoctype(n);
11463
+ this._err(S.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = T.DATA, this.emitCurrentDoctype(n);
11464
11464
  break;
11465
11465
  }
11466
11466
  case p.EOF: {
@@ -11468,7 +11468,7 @@ class Nm {
11468
11468
  break;
11469
11469
  }
11470
11470
  default:
11471
- this._err(S.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11471
+ this._err(S.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = T.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11472
11472
  }
11473
11473
  }
11474
11474
  // Before DOCTYPE public identifier state
@@ -11482,15 +11482,15 @@ class Nm {
11482
11482
  case p.FORM_FEED:
11483
11483
  break;
11484
11484
  case p.QUOTATION_MARK: {
11485
- n.publicId = "", this.state = E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
11485
+ n.publicId = "", this.state = T.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
11486
11486
  break;
11487
11487
  }
11488
11488
  case p.APOSTROPHE: {
11489
- n.publicId = "", this.state = E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
11489
+ n.publicId = "", this.state = T.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
11490
11490
  break;
11491
11491
  }
11492
11492
  case p.GREATER_THAN_SIGN: {
11493
- this._err(S.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = E.DATA, this.emitCurrentDoctype(n);
11493
+ this._err(S.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = T.DATA, this.emitCurrentDoctype(n);
11494
11494
  break;
11495
11495
  }
11496
11496
  case p.EOF: {
@@ -11498,7 +11498,7 @@ class Nm {
11498
11498
  break;
11499
11499
  }
11500
11500
  default:
11501
- this._err(S.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11501
+ this._err(S.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = T.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11502
11502
  }
11503
11503
  }
11504
11504
  // DOCTYPE public identifier (double-quoted) state
@@ -11507,7 +11507,7 @@ class Nm {
11507
11507
  const n = this.currentToken;
11508
11508
  switch (t) {
11509
11509
  case p.QUOTATION_MARK: {
11510
- this.state = E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
11510
+ this.state = T.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
11511
11511
  break;
11512
11512
  }
11513
11513
  case p.NULL: {
@@ -11515,7 +11515,7 @@ class Nm {
11515
11515
  break;
11516
11516
  }
11517
11517
  case p.GREATER_THAN_SIGN: {
11518
- this._err(S.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = E.DATA;
11518
+ this._err(S.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = T.DATA;
11519
11519
  break;
11520
11520
  }
11521
11521
  case p.EOF: {
@@ -11532,7 +11532,7 @@ class Nm {
11532
11532
  const n = this.currentToken;
11533
11533
  switch (t) {
11534
11534
  case p.APOSTROPHE: {
11535
- this.state = E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
11535
+ this.state = T.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
11536
11536
  break;
11537
11537
  }
11538
11538
  case p.NULL: {
@@ -11540,7 +11540,7 @@ class Nm {
11540
11540
  break;
11541
11541
  }
11542
11542
  case p.GREATER_THAN_SIGN: {
11543
- this._err(S.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = E.DATA;
11543
+ this._err(S.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = T.DATA;
11544
11544
  break;
11545
11545
  }
11546
11546
  case p.EOF: {
@@ -11560,19 +11560,19 @@ class Nm {
11560
11560
  case p.LINE_FEED:
11561
11561
  case p.TABULATION:
11562
11562
  case p.FORM_FEED: {
11563
- this.state = E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
11563
+ this.state = T.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
11564
11564
  break;
11565
11565
  }
11566
11566
  case p.GREATER_THAN_SIGN: {
11567
- this.state = E.DATA, this.emitCurrentDoctype(n);
11567
+ this.state = T.DATA, this.emitCurrentDoctype(n);
11568
11568
  break;
11569
11569
  }
11570
11570
  case p.QUOTATION_MARK: {
11571
- this._err(S.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
11571
+ this._err(S.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = T.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
11572
11572
  break;
11573
11573
  }
11574
11574
  case p.APOSTROPHE: {
11575
- this._err(S.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
11575
+ this._err(S.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = T.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
11576
11576
  break;
11577
11577
  }
11578
11578
  case p.EOF: {
@@ -11580,7 +11580,7 @@ class Nm {
11580
11580
  break;
11581
11581
  }
11582
11582
  default:
11583
- this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11583
+ this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = T.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11584
11584
  }
11585
11585
  }
11586
11586
  // Between DOCTYPE public and system identifiers state
@@ -11594,15 +11594,15 @@ class Nm {
11594
11594
  case p.FORM_FEED:
11595
11595
  break;
11596
11596
  case p.GREATER_THAN_SIGN: {
11597
- this.emitCurrentDoctype(n), this.state = E.DATA;
11597
+ this.emitCurrentDoctype(n), this.state = T.DATA;
11598
11598
  break;
11599
11599
  }
11600
11600
  case p.QUOTATION_MARK: {
11601
- n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
11601
+ n.systemId = "", this.state = T.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
11602
11602
  break;
11603
11603
  }
11604
11604
  case p.APOSTROPHE: {
11605
- n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
11605
+ n.systemId = "", this.state = T.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
11606
11606
  break;
11607
11607
  }
11608
11608
  case p.EOF: {
@@ -11610,7 +11610,7 @@ class Nm {
11610
11610
  break;
11611
11611
  }
11612
11612
  default:
11613
- this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11613
+ this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = T.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11614
11614
  }
11615
11615
  }
11616
11616
  // After DOCTYPE system keyword state
@@ -11622,19 +11622,19 @@ class Nm {
11622
11622
  case p.LINE_FEED:
11623
11623
  case p.TABULATION:
11624
11624
  case p.FORM_FEED: {
11625
- this.state = E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
11625
+ this.state = T.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
11626
11626
  break;
11627
11627
  }
11628
11628
  case p.QUOTATION_MARK: {
11629
- this._err(S.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
11629
+ this._err(S.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = T.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
11630
11630
  break;
11631
11631
  }
11632
11632
  case p.APOSTROPHE: {
11633
- this._err(S.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
11633
+ this._err(S.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = T.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
11634
11634
  break;
11635
11635
  }
11636
11636
  case p.GREATER_THAN_SIGN: {
11637
- this._err(S.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.DATA, this.emitCurrentDoctype(n);
11637
+ this._err(S.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = T.DATA, this.emitCurrentDoctype(n);
11638
11638
  break;
11639
11639
  }
11640
11640
  case p.EOF: {
@@ -11642,7 +11642,7 @@ class Nm {
11642
11642
  break;
11643
11643
  }
11644
11644
  default:
11645
- this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11645
+ this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = T.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11646
11646
  }
11647
11647
  }
11648
11648
  // Before DOCTYPE system identifier state
@@ -11656,15 +11656,15 @@ class Nm {
11656
11656
  case p.FORM_FEED:
11657
11657
  break;
11658
11658
  case p.QUOTATION_MARK: {
11659
- n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
11659
+ n.systemId = "", this.state = T.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
11660
11660
  break;
11661
11661
  }
11662
11662
  case p.APOSTROPHE: {
11663
- n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
11663
+ n.systemId = "", this.state = T.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
11664
11664
  break;
11665
11665
  }
11666
11666
  case p.GREATER_THAN_SIGN: {
11667
- this._err(S.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.DATA, this.emitCurrentDoctype(n);
11667
+ this._err(S.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = T.DATA, this.emitCurrentDoctype(n);
11668
11668
  break;
11669
11669
  }
11670
11670
  case p.EOF: {
@@ -11672,7 +11672,7 @@ class Nm {
11672
11672
  break;
11673
11673
  }
11674
11674
  default:
11675
- this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11675
+ this._err(S.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = T.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11676
11676
  }
11677
11677
  }
11678
11678
  // DOCTYPE system identifier (double-quoted) state
@@ -11681,7 +11681,7 @@ class Nm {
11681
11681
  const n = this.currentToken;
11682
11682
  switch (t) {
11683
11683
  case p.QUOTATION_MARK: {
11684
- this.state = E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
11684
+ this.state = T.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
11685
11685
  break;
11686
11686
  }
11687
11687
  case p.NULL: {
@@ -11689,7 +11689,7 @@ class Nm {
11689
11689
  break;
11690
11690
  }
11691
11691
  case p.GREATER_THAN_SIGN: {
11692
- this._err(S.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = E.DATA;
11692
+ this._err(S.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = T.DATA;
11693
11693
  break;
11694
11694
  }
11695
11695
  case p.EOF: {
@@ -11706,7 +11706,7 @@ class Nm {
11706
11706
  const n = this.currentToken;
11707
11707
  switch (t) {
11708
11708
  case p.APOSTROPHE: {
11709
- this.state = E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
11709
+ this.state = T.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
11710
11710
  break;
11711
11711
  }
11712
11712
  case p.NULL: {
@@ -11714,7 +11714,7 @@ class Nm {
11714
11714
  break;
11715
11715
  }
11716
11716
  case p.GREATER_THAN_SIGN: {
11717
- this._err(S.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = E.DATA;
11717
+ this._err(S.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = T.DATA;
11718
11718
  break;
11719
11719
  }
11720
11720
  case p.EOF: {
@@ -11736,7 +11736,7 @@ class Nm {
11736
11736
  case p.FORM_FEED:
11737
11737
  break;
11738
11738
  case p.GREATER_THAN_SIGN: {
11739
- this.emitCurrentDoctype(n), this.state = E.DATA;
11739
+ this.emitCurrentDoctype(n), this.state = T.DATA;
11740
11740
  break;
11741
11741
  }
11742
11742
  case p.EOF: {
@@ -11744,7 +11744,7 @@ class Nm {
11744
11744
  break;
11745
11745
  }
11746
11746
  default:
11747
- this._err(S.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11747
+ this._err(S.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = T.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
11748
11748
  }
11749
11749
  }
11750
11750
  // Bogus DOCTYPE state
@@ -11753,7 +11753,7 @@ class Nm {
11753
11753
  const n = this.currentToken;
11754
11754
  switch (t) {
11755
11755
  case p.GREATER_THAN_SIGN: {
11756
- this.emitCurrentDoctype(n), this.state = E.DATA;
11756
+ this.emitCurrentDoctype(n), this.state = T.DATA;
11757
11757
  break;
11758
11758
  }
11759
11759
  case p.NULL: {
@@ -11771,7 +11771,7 @@ class Nm {
11771
11771
  _stateCdataSection(t) {
11772
11772
  switch (t) {
11773
11773
  case p.RIGHT_SQUARE_BRACKET: {
11774
- this.state = E.CDATA_SECTION_BRACKET;
11774
+ this.state = T.CDATA_SECTION_BRACKET;
11775
11775
  break;
11776
11776
  }
11777
11777
  case p.EOF: {
@@ -11785,14 +11785,14 @@ class Nm {
11785
11785
  // CDATA section bracket state
11786
11786
  //------------------------------------------------------------------
11787
11787
  _stateCdataSectionBracket(t) {
11788
- t === p.RIGHT_SQUARE_BRACKET ? this.state = E.CDATA_SECTION_END : (this._emitChars("]"), this.state = E.CDATA_SECTION, this._stateCdataSection(t));
11788
+ t === p.RIGHT_SQUARE_BRACKET ? this.state = T.CDATA_SECTION_END : (this._emitChars("]"), this.state = T.CDATA_SECTION, this._stateCdataSection(t));
11789
11789
  }
11790
11790
  // CDATA section end state
11791
11791
  //------------------------------------------------------------------
11792
11792
  _stateCdataSectionEnd(t) {
11793
11793
  switch (t) {
11794
11794
  case p.GREATER_THAN_SIGN: {
11795
- this.state = E.DATA;
11795
+ this.state = T.DATA;
11796
11796
  break;
11797
11797
  }
11798
11798
  case p.RIGHT_SQUARE_BRACKET: {
@@ -11800,7 +11800,7 @@ class Nm {
11800
11800
  break;
11801
11801
  }
11802
11802
  default:
11803
- this._emitChars("]]"), this.state = E.CDATA_SECTION, this._stateCdataSection(t);
11803
+ this._emitChars("]]"), this.state = T.CDATA_SECTION, this._stateCdataSection(t);
11804
11804
  }
11805
11805
  }
11806
11806
  // Character reference state
@@ -11814,7 +11814,7 @@ class Nm {
11814
11814
  this.active = !1, this.preprocessor.pos = this.preprocessor.html.length - 1, this.consumedAfterSnapshot = 0, this.preprocessor.endOfChunkHit = !0;
11815
11815
  return;
11816
11816
  }
11817
- t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(p.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && tu(this.preprocessor.peek(1)) ? E.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
11817
+ t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(p.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && tu(this.preprocessor.peek(1)) ? T.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
11818
11818
  }
11819
11819
  // Ambiguos ampersand state
11820
11820
  //------------------------------------------------------------------
@@ -15530,7 +15530,7 @@ function lE({ markdown: e, className: t, assetBase: n }) {
15530
15530
  }
15531
15531
  ) });
15532
15532
  }
15533
- const CT = io(lE);
15533
+ const IT = io(lE);
15534
15534
  function cE({ children: e, onClick: t, disabled: n, title: r, type: i = "button", variant: u, size: a }) {
15535
15535
  const o = ["ldk-button", u && `ldk-button--${u}`, a && `ldk-button--${a}`].filter(Boolean).join(" "), l = typeof e == "string" || typeof e == "number";
15536
15536
  return /* @__PURE__ */ F(
@@ -15608,8 +15608,8 @@ function Un({ children: e, onClose: t, closeOnOutsideClick: n = !0, triggerRef:
15608
15608
  if (!o || !t || !n) return;
15609
15609
  const d = (m) => {
15610
15610
  var N, k;
15611
- 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;
15612
- !T && !I && t();
15611
+ const h = m.target, E = (N = l.current) == null ? void 0 : N.contains(h), I = ((k = r == null ? void 0 : r.current) == null ? void 0 : k.contains(h)) ?? !1;
15612
+ !E && !I && t();
15613
15613
  };
15614
15614
  return window.addEventListener("mousedown", d, !0), () => window.removeEventListener("mousedown", d, !0);
15615
15615
  }, [o, t, n, r]), re(() => {
@@ -15624,15 +15624,15 @@ function Un({ children: e, onClose: t, closeOnOutsideClick: n = !0, triggerRef:
15624
15624
  if (!d) return;
15625
15625
  const m = d.querySelector(Tu);
15626
15626
  m ? m.focus() : (d.tabIndex = -1, d.focus());
15627
- const h = (T) => {
15628
- if (T.key !== "Tab") return;
15627
+ const h = (E) => {
15628
+ if (E.key !== "Tab") return;
15629
15629
  const I = Array.from(d.querySelectorAll(Tu));
15630
15630
  if (I.length === 0) {
15631
- T.preventDefault();
15631
+ E.preventDefault();
15632
15632
  return;
15633
15633
  }
15634
15634
  const N = I[0], k = I[I.length - 1];
15635
- T.shiftKey && document.activeElement === N ? (T.preventDefault(), k.focus()) : !T.shiftKey && document.activeElement === k && (T.preventDefault(), N.focus());
15635
+ E.shiftKey && document.activeElement === N ? (E.preventDefault(), k.focus()) : !E.shiftKey && document.activeElement === k && (E.preventDefault(), N.focus());
15636
15636
  };
15637
15637
  return window.addEventListener("keydown", h), () => window.removeEventListener("keydown", h);
15638
15638
  }, [o, i]);
@@ -15700,40 +15700,40 @@ function AE(e) {
15700
15700
  let t = e.replace(/[^0-9a-fA-F]/g, "").slice(0, 6);
15701
15701
  return t.length > 0 && (t = "#" + t), t;
15702
15702
  }
15703
- function IT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u }) {
15704
- const [a, o] = oe(() => pn(t)), [l, c] = oe(t), f = se(null), d = se(null), m = se(null), h = se(null), T = se(a), [I, N] = oe(null);
15703
+ function yT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u }) {
15704
+ const [a, o] = oe(() => pn(t)), [l, c] = oe(t), f = se(null), d = se(null), m = se(null), h = se(null), E = se(a), [I, N] = oe(null);
15705
15705
  re(() => {
15706
15706
  if (e) {
15707
15707
  const _ = pn(t);
15708
- T.current = _, o(_), c(t);
15708
+ E.current = _, o(_), c(t);
15709
15709
  }
15710
15710
  }, [t, e]);
15711
15711
  const k = ce((_) => {
15712
15712
  const D = AE(_);
15713
15713
  if (c(D), /^#[0-9a-fA-F]{6}$/.test(D)) {
15714
- const U = pn(D);
15715
- return T.current = U, o(U), D;
15714
+ const z = pn(D);
15715
+ return E.current = z, o(z), D;
15716
15716
  }
15717
15717
  return null;
15718
15718
  }, []), L = ce((_) => {
15719
15719
  var V;
15720
15720
  const D = (V = f.current) == null ? void 0 : V.getBoundingClientRect();
15721
15721
  if (!D) return;
15722
- const U = Math.max(0, Math.min(1, (_.clientX - D.left) / D.width)), X = Math.max(0, Math.min(1, (_.clientY - D.top) / D.height)), O = { ...T.current, s: U, v: 1 - X };
15723
- T.current = O, o(O), c(sr(O.h, O.s, O.v));
15722
+ const z = Math.max(0, Math.min(1, (_.clientX - D.left) / D.width)), X = Math.max(0, Math.min(1, (_.clientY - D.top) / D.height)), O = { ...E.current, s: z, v: 1 - X };
15723
+ E.current = O, o(O), c(sr(O.h, O.s, O.v));
15724
15724
  }, []), x = ce((_) => {
15725
15725
  var O;
15726
15726
  const D = (O = d.current) == null ? void 0 : O.getBoundingClientRect();
15727
15727
  if (!D) return;
15728
- const U = Math.max(0, Math.min(1, (_.clientX - D.left) / D.width)), w = { ...T.current, h: U * 360 };
15729
- T.current = w, o(w), c(sr(w.h, w.s, w.v));
15728
+ const z = Math.max(0, Math.min(1, (_.clientX - D.left) / D.width)), P = { ...E.current, h: z * 360 };
15729
+ E.current = P, o(P), c(sr(P.h, P.s, P.v));
15730
15730
  }, []);
15731
15731
  if (re(() => {
15732
15732
  if (!e) return;
15733
15733
  const _ = () => {
15734
15734
  h.current = null;
15735
- }, D = (U) => {
15736
- h.current === "sv" ? L(U) : h.current === "hue" && x(U);
15735
+ }, D = (z) => {
15736
+ h.current === "sv" ? L(z) : h.current === "hue" && x(z);
15737
15737
  };
15738
15738
  return window.addEventListener("mouseup", _), window.addEventListener("mousemove", D), () => {
15739
15739
  window.removeEventListener("mouseup", _), window.removeEventListener("mousemove", D);
@@ -15743,10 +15743,10 @@ function IT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15743
15743
  N(null);
15744
15744
  return;
15745
15745
  }
15746
- const _ = m.current, D = { width: window.innerWidth, height: window.innerHeight }, U = _ ? ar(u, _.offsetWidth, _.offsetHeight, D) : ar(u, bu, i != null && i.length ? _u : gu, D);
15747
- N((X) => X && X.left === U.left && X.top === U.top ? X : U);
15746
+ const _ = m.current, D = { width: window.innerWidth, height: window.innerHeight }, z = _ ? ar(u, _.offsetWidth, _.offsetHeight, D) : ar(u, bu, i != null && i.length ? _u : gu, D);
15747
+ N((X) => X && X.left === z.left && X.top === z.top ? X : z);
15748
15748
  }, [e, u, i]), !e) return null;
15749
- const P = sr(a.h, 1, 1), z = `${Math.round(a.s * 100)}%`, C = `${Math.round((1 - a.v) * 100)}%`, q = `${Math.round(a.h / 360 * 100)}%`, W = u && !I ? ar(
15749
+ const w = sr(a.h, 1, 1), U = `${Math.round(a.s * 100)}%`, C = `${Math.round((1 - a.v) * 100)}%`, q = `${Math.round(a.h / 360 * 100)}%`, W = u && !I ? ar(
15750
15750
  u,
15751
15751
  bu,
15752
15752
  i != null && i.length ? _u : gu,
@@ -15767,14 +15767,14 @@ function IT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15767
15767
  {
15768
15768
  ref: f,
15769
15769
  className: "ldk-colorpicker-sv",
15770
- style: { background: P },
15770
+ style: { background: w },
15771
15771
  onMouseDown: (_) => {
15772
15772
  h.current = "sv", L(_);
15773
15773
  },
15774
15774
  children: [
15775
15775
  /* @__PURE__ */ F("div", { className: "ldk-colorpicker-sv-white" }),
15776
15776
  /* @__PURE__ */ F("div", { className: "ldk-colorpicker-sv-black" }),
15777
- /* @__PURE__ */ F("div", { className: "ldk-colorpicker-sv-cursor", style: { left: z, top: C } })
15777
+ /* @__PURE__ */ F("div", { className: "ldk-colorpicker-sv-cursor", style: { left: U, top: C } })
15778
15778
  ]
15779
15779
  }
15780
15780
  ),
@@ -15823,7 +15823,7 @@ function IT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15823
15823
  "data-hint-delay": "0",
15824
15824
  onClick: () => {
15825
15825
  const D = pn(_);
15826
- T.current = D, o(D), c(_), n(_);
15826
+ E.current = D, o(D), c(_), n(_);
15827
15827
  }
15828
15828
  },
15829
15829
  _
@@ -15873,28 +15873,28 @@ function ks({ containerRef: e, onClose: t, onKeyDown: n, listRef: r, search: i,
15873
15873
  }
15874
15874
  ) });
15875
15875
  }
15876
- function yT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, title: u, className: a, onOpen: o, inputMode: l = "text" }) {
15877
- const { t: c } = ft(), [f, d] = oe(!1), [m, h] = oe(e), [T, I] = oe(-1), N = se(null), k = se(null), L = se(null), x = se(null), P = se(!1);
15876
+ function NT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, title: u, className: a, onOpen: o, inputMode: l = "text" }) {
15877
+ const { t: c } = ft(), [f, d] = oe(!1), [m, h] = oe(e), [E, I] = oe(-1), N = se(null), k = se(null), L = se(null), x = se(null), w = se(!1);
15878
15878
  re(() => {
15879
- P.current || h(e);
15879
+ w.current || h(e);
15880
15880
  }, [e]);
15881
- const z = m !== e, C = ve(() => {
15882
- if (!z) return t;
15881
+ const U = m !== e, C = ve(() => {
15882
+ if (!U) return t;
15883
15883
  const _ = m.trim().toLowerCase();
15884
15884
  return _ ? t.filter((D) => D.toLowerCase().includes(_)) : t;
15885
- }, [t, m, z]);
15885
+ }, [t, m, U]);
15886
15886
  re(() => {
15887
- T >= C.length && I(Math.max(0, C.length - 1));
15888
- }, [C.length, T]), re(() => {
15887
+ E >= C.length && I(Math.max(0, C.length - 1));
15888
+ }, [C.length, E]), re(() => {
15889
15889
  if (!f) return;
15890
15890
  o == null || o();
15891
15891
  const _ = C.findIndex((D) => D === e);
15892
15892
  I(_ >= 0 ? _ : 0);
15893
15893
  }, [f]), re(() => {
15894
15894
  if (!f || !x.current) return;
15895
- const _ = x.current.children[T];
15895
+ const _ = x.current.children[E];
15896
15896
  _ == null || _.scrollIntoView({ block: "nearest" });
15897
- }, [T, f]);
15897
+ }, [E, f]);
15898
15898
  const q = ce(
15899
15899
  (_) => {
15900
15900
  const D = _.trim();
@@ -15903,10 +15903,10 @@ function yT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15903
15903
  [e, n]
15904
15904
  ), W = ce(
15905
15905
  (_) => {
15906
- var U;
15906
+ var z;
15907
15907
  const D = k.current;
15908
15908
  if (D) {
15909
- if ((U = L.current) != null && U.contains(_.target)) {
15909
+ if ((z = L.current) != null && z.contains(_.target)) {
15910
15910
  _.preventDefault(), f ? (d(!1), D.blur()) : (D.focus(), d(!0));
15911
15911
  return;
15912
15912
  }
@@ -15924,14 +15924,14 @@ function yT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15924
15924
  _.preventDefault(), d(!0), I((D) => Math.max(D - 1, 0));
15925
15925
  break;
15926
15926
  case "Enter":
15927
- _.preventDefault(), f && C[T] ? q(C[T]) : q(m);
15927
+ _.preventDefault(), f && C[E] ? q(C[E]) : q(m);
15928
15928
  break;
15929
15929
  case "Escape":
15930
15930
  _.preventDefault(), h(e), d(!1);
15931
15931
  break;
15932
15932
  }
15933
15933
  },
15934
- [f, C, T, q, m, e]
15934
+ [f, C, E, q, m, e]
15935
15935
  );
15936
15936
  return /* @__PURE__ */ ie(
15937
15937
  "div",
@@ -15953,10 +15953,10 @@ function yT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15953
15953
  placeholder: i,
15954
15954
  disabled: r,
15955
15955
  onFocus: () => {
15956
- P.current = !0, d(!0);
15956
+ w.current = !0, d(!0);
15957
15957
  },
15958
15958
  onBlur: () => {
15959
- P.current = !1, q(m);
15959
+ w.current = !1, q(m);
15960
15960
  },
15961
15961
  onChange: (_) => {
15962
15962
  h(_.target.value), d(!0), I(-1);
@@ -15982,9 +15982,9 @@ function yT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15982
15982
  children: C.length === 0 ? /* @__PURE__ */ F("li", { className: "ldk-selectbox-empty", children: c("无匹配项") }) : C.map((_, D) => /* @__PURE__ */ F(
15983
15983
  "li",
15984
15984
  {
15985
- className: `ldk-selectbox-item ${D === T ? "ldk-selectbox-item-focus" : ""} ${_ === e ? "ldk-selectbox-item-selected" : ""}`,
15986
- onMouseDown: (U) => {
15987
- U.preventDefault(), q(_);
15985
+ className: `ldk-selectbox-item ${D === E ? "ldk-selectbox-item-focus" : ""} ${_ === e ? "ldk-selectbox-item-selected" : ""}`,
15986
+ onMouseDown: (z) => {
15987
+ z.preventDefault(), q(_);
15988
15988
  },
15989
15989
  onMouseEnter: () => I(D),
15990
15990
  children: _
@@ -16026,27 +16026,27 @@ function Cs(e, t) {
16026
16026
  };
16027
16027
  });
16028
16028
  }
16029
- function NT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i, items: u, variant: a }) {
16029
+ function xT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i, items: u, variant: a }) {
16030
16030
  const o = se(null), l = se(/* @__PURE__ */ new Map()), c = se(null), [f, d] = oe([]), m = ve(() => JSON.stringify(n ?? {}), [n]);
16031
16031
  re(() => {
16032
16032
  var O, V;
16033
- let w = !1;
16033
+ let P = !1;
16034
16034
  return u ? (d(u), () => {
16035
- w = !0;
16035
+ P = !0;
16036
16036
  }) : ((V = (O = or().menu) == null ? void 0 : O.getItems) == null || V.call(O, e, n).then((j) => {
16037
- !w && j && d(j);
16037
+ !P && j && d(j);
16038
16038
  }).catch(() => {
16039
16039
  }), () => {
16040
- w = !0;
16040
+ P = !0;
16041
16041
  });
16042
16042
  }, [e, m, u]);
16043
16043
  const h = ve(() => {
16044
- const w = /* @__PURE__ */ new Map(), O = [];
16044
+ const P = /* @__PURE__ */ new Map(), O = [];
16045
16045
  for (const j of f) {
16046
16046
  const Z = j.children;
16047
16047
  if (!j.command && !Z) continue;
16048
16048
  const G = j.group ?? "__default";
16049
- w.has(G) || (w.set(G, []), O.push(G));
16049
+ P.has(G) || (P.set(G, []), O.push(G));
16050
16050
  let g;
16051
16051
  if (Z && Z.length > 0)
16052
16052
  g = Cs(Z, G);
@@ -16054,7 +16054,7 @@ function NT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16054
16054
  const me = i(j.command, n ?? {});
16055
16055
  me && me.length > 0 && (g = me.map((ge) => ({ id: ge.id, label: ge.label, group: G, checked: ge.checked, onSelect: ge.onSelect })));
16056
16056
  }
16057
- w.get(G).push({
16057
+ P.get(G).push({
16058
16058
  id: j.command || j.label || "",
16059
16059
  // E5.8#37.7.1:label 优先于命令 title——菜单项显式 label 是槽位显示文本(如 when 门控的
16060
16060
  // 「移动到右侧/左侧」、面板视图清单的视图名);命令 title 只是无 label 时的兜底
@@ -16069,34 +16069,34 @@ function NT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16069
16069
  }
16070
16070
  const V = [];
16071
16071
  for (let j = 0; j < O.length; j++)
16072
- j > 0 && V.push({ type: "divider", group: O[j] }), V.push(...w.get(O[j]));
16072
+ j > 0 && V.push({ type: "divider", group: O[j] }), V.push(...P.get(O[j]));
16073
16073
  return V;
16074
- }, [f, n, i]), [T, I] = oe([]), N = ce(() => {
16074
+ }, [f, n, i]), [E, I] = oe([]), N = ce(() => {
16075
16075
  c.current && (clearTimeout(c.current), c.current = null);
16076
- }, []), k = ce((w) => {
16077
- c.current && (clearTimeout(c.current), c.current = null), c.current = setTimeout(() => I((O) => O.slice(0, w)), 150);
16078
- }, []), L = ce((w, O, V) => {
16076
+ }, []), k = ce((P) => {
16077
+ c.current && (clearTimeout(c.current), c.current = null), c.current = setTimeout(() => I((O) => O.slice(0, P)), 150);
16078
+ }, []), L = ce((P, O, V) => {
16079
16079
  N();
16080
- const j = w.getBoundingClientRect(), Z = 160, G = j.right + Z > window.innerWidth ? j.left - Z - 4 : j.right + 4;
16080
+ const j = P.getBoundingClientRect(), Z = 160, G = j.right + Z > window.innerWidth ? j.left - Z - 4 : j.right + 4;
16081
16081
  I((g) => [...g.slice(0, V), { x: G, y: j.top, items: O }]);
16082
- }, [N]), [x, P] = oe({ left: t.x, top: t.y }), [z, C] = oe(!1), q = z;
16082
+ }, [N]), [x, w] = oe({ left: t.x, top: t.y }), [U, C] = oe(!1), q = U;
16083
16083
  re(() => {
16084
16084
  if (!q) return;
16085
- const w = (Z) => {
16086
- Z.key === "Escape" && hE(o.current) && (T.length > 0 ? I((G) => G.slice(0, G.length - 1)) : r());
16085
+ const P = (Z) => {
16086
+ Z.key === "Escape" && hE(o.current) && (E.length > 0 ? I((G) => G.slice(0, G.length - 1)) : r());
16087
16087
  }, O = () => r(), V = () => r(), j = (Z) => {
16088
16088
  var me;
16089
16089
  const G = Z.target;
16090
16090
  (((me = o.current) == null ? void 0 : me.contains(G)) ?? !1) || [...l.current.values()].some((ge) => ge.contains(G)) || r();
16091
16091
  };
16092
- return window.addEventListener("keydown", w), window.addEventListener("blur", O), window.addEventListener("wheel", V, !0), a !== "embedded" && window.addEventListener("mousedown", j, !0), () => {
16093
- window.removeEventListener("keydown", w), window.removeEventListener("blur", O), window.removeEventListener("wheel", V, !0), a !== "embedded" && window.removeEventListener("mousedown", j, !0);
16092
+ return window.addEventListener("keydown", P), window.addEventListener("blur", O), window.addEventListener("wheel", V, !0), a !== "embedded" && window.addEventListener("mousedown", j, !0), () => {
16093
+ window.removeEventListener("keydown", P), window.removeEventListener("blur", O), window.removeEventListener("wheel", V, !0), a !== "embedded" && window.removeEventListener("mousedown", j, !0);
16094
16094
  };
16095
- }, [r, T, q, a]);
16096
- const [W, B] = oe(-1), _ = se(/* @__PURE__ */ new Map()), D = ve(() => h.filter((w) => !("type" in w)), [h]);
16095
+ }, [r, E, q, a]);
16096
+ const [W, B] = oe(-1), _ = se(/* @__PURE__ */ new Map()), D = ve(() => h.filter((P) => !("type" in P)), [h]);
16097
16097
  re(() => {
16098
16098
  if (!q) return;
16099
- const w = (O) => {
16099
+ const P = (O) => {
16100
16100
  var V, j, Z;
16101
16101
  if (O.key === "ArrowDown")
16102
16102
  O.preventDefault(), B((G) => Math.min(G + 1, D.length - 1));
@@ -16110,42 +16110,42 @@ function NT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16110
16110
  g && L(g, G.children, 0);
16111
16111
  }
16112
16112
  } else if (O.key === "ArrowLeft")
16113
- T.length > 0 && (O.preventDefault(), I((G) => G.slice(0, G.length - 1)));
16113
+ E.length > 0 && (O.preventDefault(), I((G) => G.slice(0, G.length - 1)));
16114
16114
  else if (O.key === "Enter" && W >= 0) {
16115
16115
  O.preventDefault();
16116
16116
  const G = D[W];
16117
16117
  G && (G.onSelect ? G.onSelect() : (Z = (j = or().commands) == null ? void 0 : j.executeCommand) == null || Z.call(j, G.id, void 0, ...G.commandArgs ?? [], n), r());
16118
16118
  }
16119
16119
  };
16120
- return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
16121
- }, [D, W, n, r, q, T, L]), re(() => {
16122
- var w;
16123
- W >= 0 && ((w = _.current.get(W)) == null || w.scrollIntoView({ block: "nearest" }));
16120
+ return window.addEventListener("keydown", P), () => window.removeEventListener("keydown", P);
16121
+ }, [D, W, n, r, q, E, L]), re(() => {
16122
+ var P;
16123
+ W >= 0 && ((P = _.current.get(W)) == null || P.scrollIntoView({ block: "nearest" }));
16124
16124
  }, [W]);
16125
- const U = ce(async (w) => {
16125
+ const z = ce(async (P) => {
16126
16126
  var O, V;
16127
- if (r(), w.onSelect) {
16128
- w.onSelect();
16127
+ if (r(), P.onSelect) {
16128
+ P.onSelect();
16129
16129
  return;
16130
16130
  }
16131
- await ((V = (O = or().commands) == null ? void 0 : O.executeCommand) == null ? void 0 : V.call(O, w.id, void 0, ...w.commandArgs ?? [], n));
16131
+ await ((V = (O = or().commands) == null ? void 0 : O.executeCommand) == null ? void 0 : V.call(O, P.id, void 0, ...P.commandArgs ?? [], n));
16132
16132
  }, [n, r]);
16133
16133
  xn(() => {
16134
- P({ left: t.x, top: Math.max(30, t.y) }), C(!1);
16134
+ w({ left: t.x, top: Math.max(30, t.y) }), C(!1);
16135
16135
  }, [t.x, t.y, h.length]), re(() => {
16136
- const w = o.current;
16137
- if (!w) return;
16138
- const O = w.getBoundingClientRect();
16136
+ const P = o.current;
16137
+ if (!P) return;
16138
+ const O = P.getBoundingClientRect();
16139
16139
  let V = t.x, j = Math.max(30, t.y);
16140
- V + O.width > window.innerWidth && (V = Math.max(0, window.innerWidth - O.width - 4)), j + O.height > window.innerHeight && (j = Math.max(30, window.innerHeight - O.height - 4)), P({ left: V, top: j });
16140
+ V + O.width > window.innerWidth && (V = Math.max(0, window.innerWidth - O.width - 4)), j + O.height > window.innerHeight && (j = Math.max(30, window.innerHeight - O.height - 4)), w({ left: V, top: j });
16141
16141
  const Z = requestAnimationFrame(() => {
16142
- C(!0), w.classList.add("show");
16142
+ C(!0), P.classList.add("show");
16143
16143
  });
16144
16144
  return () => cancelAnimationFrame(Z);
16145
16145
  }, [t.x, t.y, h.length]), re(() => {
16146
- var w;
16147
- z && ((w = o.current) == null || w.focus());
16148
- }, [z]);
16146
+ var P;
16147
+ U && ((P = o.current) == null || P.focus());
16148
+ }, [U]);
16149
16149
  let X = 0;
16150
16150
  return /* @__PURE__ */ ie(Un, { rootId: "context-menu-root", zIndex: String(En), children: [
16151
16151
  a !== "embedded" && a !== "non-modal" && Dr(
@@ -16171,11 +16171,11 @@ function NT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16171
16171
  left: x.left,
16172
16172
  top: x.top,
16173
16173
  zIndex: En,
16174
- visibility: z ? void 0 : "hidden"
16174
+ visibility: U ? void 0 : "hidden"
16175
16175
  },
16176
- children: h.map((w, O) => {
16177
- if ("type" in w) return /* @__PURE__ */ F("div", { className: "ldk-ctx-divider" }, `div-${O}`);
16178
- const V = X++, j = !!(w.children && w.children.length > 0), Z = V === W, G = w.group === "delete";
16176
+ children: h.map((P, O) => {
16177
+ if ("type" in P) return /* @__PURE__ */ F("div", { className: "ldk-ctx-divider" }, `div-${O}`);
16178
+ const V = X++, j = !!(P.children && P.children.length > 0), Z = V === W, G = P.group === "delete";
16179
16179
  return (
16180
16180
  // E5.8#37.7.1:复合 key——共享命令 id 的动态项(面板视图清单全用同一 toggle 命令)会撞 key;
16181
16181
  // 并入数组索引消歧(菜单项在菜单生命周期内静态,索引稳定)。
@@ -16187,45 +16187,45 @@ function NT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16187
16187
  },
16188
16188
  className: `ldk-ctx-item${Z ? " focused" : ""}${G ? " ldk-ctx-item-danger" : ""}`,
16189
16189
  onClick: (g) => {
16190
- g.stopPropagation(), j || U(w);
16190
+ g.stopPropagation(), j || z(P);
16191
16191
  },
16192
16192
  onMouseEnter: (g) => {
16193
- B(V), j ? L(g.currentTarget, w.children, 0) : I((me) => me.slice(0, 0));
16193
+ B(V), j ? L(g.currentTarget, P.children, 0) : I((me) => me.slice(0, 0));
16194
16194
  },
16195
16195
  onMouseLeave: () => {
16196
16196
  j && k(1);
16197
16197
  },
16198
16198
  children: [
16199
- /* @__PURE__ */ F("span", { className: "ldk-ctx-item-check", "aria-hidden": "true", children: w.checked ? "✓" : "" }),
16200
- /* @__PURE__ */ F("span", { className: "ldk-ctx-item-label", children: w.label }),
16199
+ /* @__PURE__ */ F("span", { className: "ldk-ctx-item-check", "aria-hidden": "true", children: P.checked ? "✓" : "" }),
16200
+ /* @__PURE__ */ F("span", { className: "ldk-ctx-item-label", children: P.label }),
16201
16201
  j && /* @__PURE__ */ F("span", { className: "ctx-item-chevron", children: "›" }),
16202
- w.shortcut && /* @__PURE__ */ F(Au, { label: w.shortcut, className: "ldk-ctx-item-shortcut" })
16202
+ P.shortcut && /* @__PURE__ */ F(Au, { label: P.shortcut, className: "ldk-ctx-item-shortcut" })
16203
16203
  ]
16204
16204
  },
16205
- `${w.id}::${O}`
16205
+ `${P.id}::${O}`
16206
16206
  )
16207
16207
  );
16208
16208
  })
16209
16209
  }
16210
16210
  ),
16211
- T.map((w, O) => /* @__PURE__ */ F(
16211
+ E.map((P, O) => /* @__PURE__ */ F(
16212
16212
  "div",
16213
16213
  {
16214
16214
  ref: (V) => {
16215
16215
  V ? l.current.set(O, V) : l.current.delete(O);
16216
16216
  },
16217
16217
  className: "ldk-ctx-menu show",
16218
- style: { left: w.x, top: w.y, zIndex: En },
16218
+ style: { left: P.x, top: P.y, zIndex: En },
16219
16219
  onMouseEnter: N,
16220
16220
  onMouseLeave: () => k(O + 1),
16221
- children: w.items.map((V, j) => {
16221
+ children: P.items.map((V, j) => {
16222
16222
  const Z = !!(V.children && V.children.length > 0);
16223
16223
  return /* @__PURE__ */ ie(
16224
16224
  "div",
16225
16225
  {
16226
16226
  className: "ldk-ctx-item",
16227
16227
  onClick: (G) => {
16228
- G.stopPropagation(), Z || U(V);
16228
+ G.stopPropagation(), Z || z(V);
16229
16229
  },
16230
16230
  onMouseEnter: (G) => {
16231
16231
  Z ? L(G.currentTarget, V.children, O + 1) : I((g) => g.slice(0, O + 1));
@@ -16252,25 +16252,25 @@ function CE(e) {
16252
16252
  return typeof e == "object" && "value" in e && "label" in e;
16253
16253
  }
16254
16254
  function Is({ value: e, options: t, onChange: n, disabled: r, placeholder: i, title: u, className: a, onOpen: o }) {
16255
- const { t: l } = ft(), [c, f] = oe(!1), [d, m] = oe(""), [h, T] = oe(-1), I = se(null), N = se(null), k = se(null), L = ve(
16255
+ const { t: l } = ft(), [c, f] = oe(!1), [d, m] = oe(""), [h, E] = oe(-1), I = se(null), N = se(null), k = se(null), L = ve(
16256
16256
  () => t.map((B) => CE(B) ? B : { value: B, label: B }),
16257
16257
  [t]
16258
16258
  ), x = ve(() => {
16259
16259
  if (!d) return L;
16260
16260
  const B = d.toLowerCase();
16261
16261
  return L.filter((_) => _.label.toLowerCase().includes(B));
16262
- }, [L, d]), P = ve(() => L.find((B) => B.value === e), [L, e]), z = ve(() => P ? P.label : e !== "" ? e : i ?? e, [P, e, i]);
16262
+ }, [L, d]), w = ve(() => L.find((B) => B.value === e), [L, e]), U = ve(() => w ? w.label : e !== "" ? e : i ?? e, [w, e, i]);
16263
16263
  re(() => {
16264
- h >= x.length && T(Math.max(0, x.length - 1));
16264
+ h >= x.length && E(Math.max(0, x.length - 1));
16265
16265
  }, [x.length, h]), re(() => {
16266
16266
  var _, D;
16267
16267
  if (!c) {
16268
- m(""), T(-1);
16268
+ m(""), E(-1);
16269
16269
  return;
16270
16270
  }
16271
16271
  o == null || o();
16272
- const B = x.findIndex((U) => U.value === e);
16273
- T(B >= 0 ? B : 0), L.length > 8 ? (_ = N.current) == null || _.focus() : (D = k.current) == null || D.focus();
16272
+ const B = x.findIndex((z) => z.value === e);
16273
+ E(B >= 0 ? B : 0), L.length > 8 ? (_ = N.current) == null || _.focus() : (D = k.current) == null || D.focus();
16274
16274
  }, [c]);
16275
16275
  const C = ce(
16276
16276
  (B) => {
@@ -16281,10 +16281,10 @@ function Is({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16281
16281
  (B) => {
16282
16282
  switch (B.key) {
16283
16283
  case "ArrowDown":
16284
- B.preventDefault(), T((_) => Math.min(_ + 1, x.length - 1));
16284
+ B.preventDefault(), E((_) => Math.min(_ + 1, x.length - 1));
16285
16285
  break;
16286
16286
  case "ArrowUp":
16287
- B.preventDefault(), T((_) => Math.max(_ - 1, 0));
16287
+ B.preventDefault(), E((_) => Math.max(_ - 1, 0));
16288
16288
  break;
16289
16289
  case "Enter":
16290
16290
  B.preventDefault(), x[h] && C(x[h].value);
@@ -16315,8 +16315,8 @@ function Is({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16315
16315
  onClick: () => f((B) => !B),
16316
16316
  children: [
16317
16317
  /* @__PURE__ */ ie("span", { className: "ldk-selectbox-label", children: [
16318
- (P == null ? void 0 : P.preview) && /* @__PURE__ */ F("span", { className: "ldk-selectbox-swatch", style: { background: P.preview } }),
16319
- z
16318
+ (w == null ? void 0 : w.preview) && /* @__PURE__ */ F("span", { className: "ldk-selectbox-swatch", style: { background: w.preview } }),
16319
+ U
16320
16320
  ] }),
16321
16321
  /* @__PURE__ */ F("span", { className: `codicon codicon-chevron-down ldk-selectbox-arrow ${c ? "ldk-selectbox-arrow-up" : ""}` })
16322
16322
  ]
@@ -16338,7 +16338,7 @@ function Is({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16338
16338
  placeholder: l("筛选..."),
16339
16339
  value: d,
16340
16340
  onChange: (B) => {
16341
- m(B.target.value), T(0);
16341
+ m(B.target.value), E(0);
16342
16342
  }
16343
16343
  }
16344
16344
  ) }) : void 0,
@@ -16347,7 +16347,7 @@ function Is({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16347
16347
  {
16348
16348
  className: `ldk-selectbox-item ${_ === h ? "ldk-selectbox-item-focus" : ""} ${B.value === e ? "ldk-selectbox-item-selected" : ""}`,
16349
16349
  onClick: () => C(B.value),
16350
- onMouseEnter: () => T(_),
16350
+ onMouseEnter: () => E(_),
16351
16351
  children: [
16352
16352
  B.preview && /* @__PURE__ */ F("span", { className: "ldk-selectbox-swatch", style: { background: B.preview } }),
16353
16353
  B.label
@@ -16362,31 +16362,31 @@ function Is({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16362
16362
  );
16363
16363
  }
16364
16364
  const ku = "followTheme", lr = [];
16365
- function xT({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, placeholder: u, title: a }) {
16365
+ function ST({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, placeholder: u, title: a }) {
16366
16366
  const { t: o } = ft(), [l, c] = oe(lr), f = n === "theme.colorways" && r === "colors", [d, m] = oe(void 0);
16367
16367
  re(() => {
16368
- var k, L, x, P, z;
16368
+ var k, L, x, w, U;
16369
16369
  if (!f) return;
16370
16370
  let I = !1;
16371
16371
  (L = (k = window.linkdesk) == null ? void 0 : k.configuration) == null || L.get("app.appearanceMode").then((C) => {
16372
16372
  I || m(C);
16373
16373
  });
16374
- const N = (z = (P = (x = window.linkdesk) == null ? void 0 : x.configuration) == null ? void 0 : P.onChange) == null ? void 0 : z.call(P, "app.appearanceMode", (C) => m(C));
16374
+ const N = (U = (w = (x = window.linkdesk) == null ? void 0 : x.configuration) == null ? void 0 : w.onChange) == null ? void 0 : U.call(w, "app.appearanceMode", (C) => m(C));
16375
16375
  return () => {
16376
16376
  I = !0, N == null || N();
16377
16377
  };
16378
16378
  }, [f]);
16379
- const h = f && d === "custom", T = ce(async () => {
16379
+ const h = f && d === "custom", E = ce(async () => {
16380
16380
  var N, k, L, x;
16381
16381
  const I = (k = (N = window.linkdesk) == null ? void 0 : N.theme) == null ? void 0 : k.listRecipes;
16382
16382
  if (I)
16383
16383
  try {
16384
- const P = await I() ?? [];
16384
+ const w = await I() ?? [];
16385
16385
  if (n === "theme.sources" || h) {
16386
16386
  if (r === "colors") {
16387
16387
  c([
16388
16388
  { value: ku, label: o("跟随主题") },
16389
- ...P.flatMap(
16389
+ ...w.flatMap(
16390
16390
  (B) => B.colorways.map((_) => {
16391
16391
  var D;
16392
16392
  return {
@@ -16399,14 +16399,14 @@ function xT({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
16399
16399
  ]);
16400
16400
  return;
16401
16401
  }
16402
- const W = r ? P.filter((B) => B.domains.includes(r)) : P;
16402
+ const W = r ? w.filter((B) => B.domains.includes(r)) : w;
16403
16403
  c([
16404
16404
  { value: ku, label: o("跟随主题") },
16405
16405
  ...W.map((B) => ({ value: B.id, label: B.name }))
16406
16406
  ]);
16407
16407
  return;
16408
16408
  }
16409
- const z = (x = (L = window.linkdesk) == null ? void 0 : L.configuration) == null ? void 0 : x.get, C = z ? await z("app.theme") : "", q = P.find((W) => W.id === C);
16409
+ const U = (x = (L = window.linkdesk) == null ? void 0 : L.configuration) == null ? void 0 : x.get, C = U ? await U("app.theme") : "", q = w.find((W) => W.id === C);
16410
16410
  c(
16411
16411
  q ? q.colorways.map((W) => {
16412
16412
  var B;
@@ -16418,17 +16418,17 @@ function xT({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
16418
16418
  }
16419
16419
  }, [n, r, o, h]);
16420
16420
  return re(() => {
16421
- var k, L, x, P, z, C;
16422
- T();
16421
+ var k, L, x, w, U, C;
16422
+ E();
16423
16423
  const I = (x = (L = (k = window.linkdesk) == null ? void 0 : k.configuration) == null ? void 0 : L.onPluginLifecycleChange) == null ? void 0 : x.call(L, () => {
16424
- T();
16425
- }), N = n === "theme.colorways" ? (C = (z = (P = window.linkdesk) == null ? void 0 : P.configuration) == null ? void 0 : z.onChange) == null ? void 0 : C.call(z, "app.theme", () => {
16426
- T();
16424
+ E();
16425
+ }), N = n === "theme.colorways" ? (C = (U = (w = window.linkdesk) == null ? void 0 : w.configuration) == null ? void 0 : U.onChange) == null ? void 0 : C.call(U, "app.theme", () => {
16426
+ E();
16427
16427
  }) : void 0;
16428
16428
  return () => {
16429
16429
  I == null || I(), N == null || N();
16430
16430
  };
16431
- }, [T, n]), f && !h && l.length === 1 ? null : /* @__PURE__ */ F(
16431
+ }, [E, n]), f && !h && l.length === 1 ? null : /* @__PURE__ */ F(
16432
16432
  Is,
16433
16433
  {
16434
16434
  value: e,
@@ -16438,12 +16438,12 @@ function xT({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
16438
16438
  placeholder: u,
16439
16439
  title: a,
16440
16440
  onOpen: () => {
16441
- T();
16441
+ E();
16442
16442
  }
16443
16443
  }
16444
16444
  );
16445
16445
  }
16446
- function ST({ value: e, onChange: t, dialogType: n }) {
16446
+ function LT({ value: e, onChange: t, dialogType: n }) {
16447
16447
  const { t: r } = ft(), i = async () => {
16448
16448
  var o;
16449
16449
  const u = (o = window.linkdesk) == null ? void 0 : o.dialog;
@@ -16554,7 +16554,7 @@ function NE(e) {
16554
16554
  };
16555
16555
  }, [e]), t;
16556
16556
  }
16557
- function LT({ value: e, onChange: t, monoOnly: n = !0 }) {
16557
+ function OT({ value: e, onChange: t, monoOnly: n = !0 }) {
16558
16558
  const { t: r } = ft(), i = NE(n), u = ve(() => n ? i.map((a) => ({ value: a, label: a })) : [
16559
16559
  { value: "", label: r("跟随主题") },
16560
16560
  { value: "__none__", label: r("系统字体") },
@@ -16570,7 +16570,7 @@ function LT({ value: e, onChange: t, monoOnly: n = !0 }) {
16570
16570
  }
16571
16571
  );
16572
16572
  }
16573
- function OT({ label: e, children: t }) {
16573
+ function DT({ label: e, children: t }) {
16574
16574
  return /* @__PURE__ */ ie("div", { className: "ldk-form-row", children: [
16575
16575
  /* @__PURE__ */ F("label", { children: e }),
16576
16576
  t
@@ -16584,12 +16584,12 @@ function xE(e, t, n, r) {
16584
16584
  const f = c === "bottom" ? u : a, d = Math.max(Ge, n.height - t.height - Ge);
16585
16585
  return { top: Math.min(Math.max(f, Ge), d), left: Math.max(Ge, i), placement: c };
16586
16586
  }
16587
- function DT({ lines: e, title: t, note: n, placement: r = "bottom", openDelayMs: i = 400, children: u }) {
16588
- const a = se(null), o = se(null), l = se(void 0), [c, f] = oe(!1), [d, m] = oe({ top: 0, left: 0 }), h = uo(), T = e.length > 0, I = ce(() => {
16587
+ function RT({ lines: e, title: t, note: n, placement: r = "bottom", openDelayMs: i = 400, children: u }) {
16588
+ const a = se(null), o = se(null), l = se(void 0), [c, f] = oe(!1), [d, m] = oe({ top: 0, left: 0 }), h = uo(), E = e.length > 0, I = ce(() => {
16589
16589
  window.clearTimeout(l.current), f(!1);
16590
16590
  }, []), N = ce(() => {
16591
- var P;
16592
- const x = (P = a.current) == null ? void 0 : P.getBoundingClientRect();
16591
+ var w;
16592
+ const x = (w = a.current) == null ? void 0 : w.getBoundingClientRect();
16593
16593
  x && (m({ top: x.bottom + xr, left: x.left }), f(!0));
16594
16594
  }, []), k = ce(() => {
16595
16595
  window.clearTimeout(l.current), l.current = setTimeout(N, i);
@@ -16599,18 +16599,18 @@ function DT({ lines: e, title: t, note: n, placement: r = "bottom", openDelayMs:
16599
16599
  return xn(() => {
16600
16600
  var C, q;
16601
16601
  if (!c) return;
16602
- const x = (C = a.current) == null ? void 0 : C.getBoundingClientRect(), P = (q = o.current) == null ? void 0 : q.getBoundingClientRect();
16603
- if (!x || !P) return;
16604
- const z = xE(x, P, { width: window.innerWidth, height: window.innerHeight }, r);
16605
- m({ top: z.top, left: z.left });
16602
+ const x = (C = a.current) == null ? void 0 : C.getBoundingClientRect(), w = (q = o.current) == null ? void 0 : q.getBoundingClientRect();
16603
+ if (!x || !w) return;
16604
+ const U = xE(x, w, { width: window.innerWidth, height: window.innerHeight }, r);
16605
+ m({ top: U.top, left: U.left });
16606
16606
  }, [c, r]), re(() => () => window.clearTimeout(l.current), []), re(() => {
16607
16607
  if (!c) return;
16608
- const x = (P) => {
16609
- var z;
16610
- (z = a.current) != null && z.contains(P.target) || f(!1);
16608
+ const x = (w) => {
16609
+ var U;
16610
+ (U = a.current) != null && U.contains(w.target) || f(!1);
16611
16611
  };
16612
16612
  return window.addEventListener("pointerdown", x, !0), () => window.removeEventListener("pointerdown", x, !0);
16613
- }, [c]), T ? /* @__PURE__ */ ie(
16613
+ }, [c]), E ? /* @__PURE__ */ ie(
16614
16614
  "span",
16615
16615
  {
16616
16616
  ref: a,
@@ -16635,16 +16635,16 @@ function DT({ lines: e, title: t, note: n, placement: r = "bottom", openDelayMs:
16635
16635
  }
16636
16636
  ) : /* @__PURE__ */ F(Lr, { children: u });
16637
16637
  }
16638
- function RT({ label: e, command: t, placement: n, openDelayMs: r, children: i }) {
16638
+ function wT({ label: e, command: t, placement: n, openDelayMs: r, children: i }) {
16639
16639
  if (!(e != null && e !== "" || t != null) || !ao(i)) return i;
16640
16640
  const a = {};
16641
16641
  return e != null && e !== "" && (a[Zt] = e), t != null && (a[ho] = t), n != null && (a[mo] = n), r != null && (a[Nu] = String(r)), so(i, a);
16642
16642
  }
16643
- function wT({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style: a }) {
16643
+ function PT({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style: a }) {
16644
16644
  const { t: o } = ft(), l = ce(
16645
16645
  (h) => {
16646
- let T = h;
16647
- return n !== void 0 && (T = Math.max(n, T)), r !== void 0 && (T = Math.min(r, T)), T;
16646
+ let E = h;
16647
+ return n !== void 0 && (E = Math.max(n, E)), r !== void 0 && (E = Math.min(r, E)), E;
16648
16648
  },
16649
16649
  [n, r]
16650
16650
  ), c = () => t(l(e - i)), f = () => t(l(e + i)), d = n !== void 0 && e <= n, m = r !== void 0 && e >= r;
@@ -16667,8 +16667,8 @@ function wT({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style
16667
16667
  type: "text",
16668
16668
  value: e,
16669
16669
  onChange: (h) => {
16670
- const T = Number(h.target.value);
16671
- isNaN(T) || t(l(T));
16670
+ const E = Number(h.target.value);
16671
+ isNaN(E) || t(l(E));
16672
16672
  },
16673
16673
  style: { width: 56, textAlign: "center" }
16674
16674
  }
@@ -16687,13 +16687,13 @@ function wT({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style
16687
16687
  )
16688
16688
  ] });
16689
16689
  }
16690
- function PT({ value: e, multiline: t }) {
16690
+ function MT({ value: e, multiline: t }) {
16691
16691
  return e ? /* @__PURE__ */ F("span", { className: `ldk-readonly-text${t ? " multiline" : ""}`, children: e }) : null;
16692
16692
  }
16693
- function MT({ children: e }) {
16693
+ function FT({ children: e }) {
16694
16694
  return e == null || e === "" ? null : /* @__PURE__ */ F("div", { className: "ldk-section-subtitle", children: e });
16695
16695
  }
16696
- function FT({ options: e, value: t, onChange: n, ariaLabel: r }) {
16696
+ function BT({ options: e, value: t, onChange: n, ariaLabel: r }) {
16697
16697
  const i = se([]), u = (a, o) => {
16698
16698
  var f;
16699
16699
  if (!["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"].includes(a.key)) return;
@@ -16726,7 +16726,7 @@ function FT({ options: e, value: t, onChange: n, ariaLabel: r }) {
16726
16726
  );
16727
16727
  }) });
16728
16728
  }
16729
- function BT({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, ariaLabel: u, disabled: a, style: o }) {
16729
+ function HT({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, ariaLabel: u, disabled: a, style: o }) {
16730
16730
  const l = (f) => Math.min(r, Math.max(n, f)), c = r > n ? (l(e) - n) / (r - n) * 100 : 0;
16731
16731
  return /* @__PURE__ */ F(
16732
16732
  "input",
@@ -16744,7 +16744,7 @@ function BT({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, aria
16744
16744
  }
16745
16745
  );
16746
16746
  }
16747
- function HT({
16747
+ function vT({
16748
16748
  value: e,
16749
16749
  onChange: t,
16750
16750
  locked: n = [],
@@ -16759,50 +16759,50 @@ function HT({
16759
16759
  itemKey: d,
16760
16760
  hint: m
16761
16761
  }) {
16762
- const [h, T] = oe(""), [I, N] = oe(null), k = () => N(null), L = (P) => {
16763
- const z = (C) => {
16764
- if (!d) return C === P;
16765
- const q = d(P);
16766
- return q === null ? C === P : d(C) === q;
16762
+ const [h, E] = oe(""), [I, N] = oe(null), k = () => N(null), L = (w) => {
16763
+ const U = (C) => {
16764
+ if (!d) return C === w;
16765
+ const q = d(w);
16766
+ return q === null ? C === w : d(C) === q;
16767
16767
  };
16768
- return n.some(z) || e.some(z);
16768
+ return n.some(U) || e.some(U);
16769
16769
  }, x = () => {
16770
- const P = h.trim();
16771
- if (!P) {
16770
+ const w = h.trim();
16771
+ if (!w) {
16772
16772
  l && N(l);
16773
16773
  return;
16774
16774
  }
16775
- if (o && !/^https?:\/\/.+/.test(P)) {
16775
+ if (o && !/^https?:\/\/.+/.test(w)) {
16776
16776
  c && N(c);
16777
16777
  return;
16778
16778
  }
16779
- if (L(P)) {
16779
+ if (L(w)) {
16780
16780
  f && N(f);
16781
16781
  return;
16782
16782
  }
16783
- t([...e, P]), T(""), k();
16783
+ t([...e, w]), E(""), k();
16784
16784
  };
16785
16785
  return /* @__PURE__ */ ie("div", { className: "ldk-sle", children: [
16786
- n.map((P) => /* @__PURE__ */ ie("div", { className: "ldk-sle-row ldk-sle-row--locked", "data-hint": P, "data-hint-delay": "0", children: [
16786
+ n.map((w) => /* @__PURE__ */ ie("div", { className: "ldk-sle-row ldk-sle-row--locked", "data-hint": w, "data-hint-delay": "0", children: [
16787
16787
  o && /* @__PURE__ */ F("span", { className: "codicon codicon-link ldk-sle-glyph", "aria-hidden": "true" }),
16788
- /* @__PURE__ */ F("span", { className: "ldk-sle-url", children: P }),
16788
+ /* @__PURE__ */ F("span", { className: "ldk-sle-url", children: w }),
16789
16789
  r && /* @__PURE__ */ F("span", { className: "ldk-sle-badge", children: r }),
16790
16790
  /* @__PURE__ */ F("span", { className: "codicon codicon-lock ldk-sle-lock", "aria-hidden": "true" })
16791
- ] }, P)),
16792
- e.map((P) => /* @__PURE__ */ ie("div", { className: "ldk-sle-row", "data-hint": P, "data-hint-delay": "0", children: [
16791
+ ] }, w)),
16792
+ e.map((w) => /* @__PURE__ */ ie("div", { className: "ldk-sle-row", "data-hint": w, "data-hint-delay": "0", children: [
16793
16793
  o && /* @__PURE__ */ F("span", { className: "codicon codicon-link ldk-sle-glyph", "aria-hidden": "true" }),
16794
- /* @__PURE__ */ F("span", { className: "ldk-sle-url", children: P }),
16794
+ /* @__PURE__ */ F("span", { className: "ldk-sle-url", children: w }),
16795
16795
  /* @__PURE__ */ F(
16796
16796
  "button",
16797
16797
  {
16798
16798
  className: "ldk-sle-del",
16799
16799
  "data-hint": a,
16800
16800
  "aria-label": a,
16801
- onClick: () => t(e.filter((z) => z !== P)),
16801
+ onClick: () => t(e.filter((U) => U !== w)),
16802
16802
  children: /* @__PURE__ */ F("span", { className: "codicon codicon-trash", "aria-hidden": "true" })
16803
16803
  }
16804
16804
  )
16805
- ] }, P)),
16805
+ ] }, w)),
16806
16806
  /* @__PURE__ */ ie("div", { className: "ldk-sle-add-row", children: [
16807
16807
  /* @__PURE__ */ F(
16808
16808
  "input",
@@ -16812,11 +16812,11 @@ function HT({
16812
16812
  value: h,
16813
16813
  placeholder: i,
16814
16814
  spellCheck: !1,
16815
- onChange: (P) => {
16816
- T(P.target.value), k();
16815
+ onChange: (w) => {
16816
+ E(w.target.value), k();
16817
16817
  },
16818
- onKeyDown: (P) => {
16819
- P.key === "Enter" && x();
16818
+ onKeyDown: (w) => {
16819
+ w.key === "Enter" && x();
16820
16820
  }
16821
16821
  }
16822
16822
  ),
@@ -16826,110 +16826,114 @@ function HT({
16826
16826
  !I && m && /* @__PURE__ */ F("div", { className: "ldk-sle-msg ldk-sle-msg--hint", children: m })
16827
16827
  ] });
16828
16828
  }
16829
- const SE = 6, LE = "color-mix(in srgb, var(--text-secondary) 45%, transparent)";
16830
- function vT({ value: e, onChange: t }) {
16831
- const { t: n } = ft(), [r, i] = oe([]), [u, a] = oe(0), o = se([]), l = ce((f) => {
16832
- var m, h;
16833
- const d = (h = (m = window.linkdesk) == null ? void 0 : m.theme) == null ? void 0 : h.listRecipes;
16834
- d && d().then((T) => {
16835
- f && !f() || i(T ?? []);
16829
+ function SE(e, t) {
16830
+ return e ? e.kind === "host" ? t("壳自带") : t("来自 {{name}}", { name: e.name }) : "";
16831
+ }
16832
+ const LE = 6, OE = "color-mix(in srgb, var(--text-secondary) 45%, transparent)";
16833
+ function UT({ value: e, onChange: t }) {
16834
+ const { t: n } = ft(), r = ce((d, m) => String(n(d, m)), [n]), [i, u] = oe([]), [a, o] = oe(0), l = se([]), c = ce((d) => {
16835
+ var h, E;
16836
+ const m = (E = (h = window.linkdesk) == null ? void 0 : h.theme) == null ? void 0 : E.listRecipes;
16837
+ m && m().then((I) => {
16838
+ d && !d() || u(I ?? []);
16836
16839
  }).catch(() => {
16837
16840
  });
16838
16841
  }, []);
16839
16842
  re(() => {
16840
- var h, T, I;
16841
- let f = !1;
16842
- l(() => !f);
16843
- const m = (I = (T = (h = window.linkdesk) == null ? void 0 : h.configuration) == null ? void 0 : T.onPluginLifecycleChange) == null ? void 0 : I.call(T, () => {
16844
- l();
16843
+ var E, I, N;
16844
+ let d = !1;
16845
+ c(() => !d);
16846
+ const h = (N = (I = (E = window.linkdesk) == null ? void 0 : E.configuration) == null ? void 0 : I.onPluginLifecycleChange) == null ? void 0 : N.call(I, () => {
16847
+ c();
16845
16848
  });
16846
16849
  return () => {
16847
- f = !0, m == null || m();
16850
+ d = !0, h == null || h();
16848
16851
  };
16849
- }, [l]);
16850
- const c = (f) => {
16851
- var h;
16852
- const d = r.length;
16853
- if (d === 0) return;
16854
- let m = u;
16855
- switch (f.key) {
16852
+ }, [c]);
16853
+ const f = (d) => {
16854
+ var E;
16855
+ const m = i.length;
16856
+ if (m === 0) return;
16857
+ let h = a;
16858
+ switch (d.key) {
16856
16859
  case "ArrowRight":
16857
16860
  case "ArrowDown":
16858
- m = Math.min(u + 1, d - 1);
16861
+ h = Math.min(a + 1, m - 1);
16859
16862
  break;
16860
16863
  case "ArrowLeft":
16861
16864
  case "ArrowUp":
16862
- m = Math.max(u - 1, 0);
16865
+ h = Math.max(a - 1, 0);
16863
16866
  break;
16864
16867
  case "Home":
16865
- m = 0;
16868
+ h = 0;
16866
16869
  break;
16867
16870
  case "End":
16868
- m = d - 1;
16871
+ h = m - 1;
16869
16872
  break;
16870
16873
  default:
16871
16874
  return;
16872
16875
  }
16873
- f.preventDefault(), a(m), (h = o.current[m]) == null || h.focus();
16876
+ d.preventDefault(), o(h), (E = l.current[h]) == null || E.focus();
16874
16877
  };
16875
- return r.length === 0 ? /* @__PURE__ */ F("span", { className: "ldk-theme-picker-empty", children: n("无可用主题配方") }) : /* @__PURE__ */ F(
16878
+ return i.length === 0 ? /* @__PURE__ */ F("span", { className: "ldk-theme-picker-empty", children: n("无可用主题配方") }) : /* @__PURE__ */ F(
16876
16879
  "div",
16877
16880
  {
16878
16881
  className: "ldk-theme-picker",
16879
16882
  role: "group",
16880
16883
  "aria-label": n("主题配方"),
16881
- onKeyDown: c,
16882
- children: r.map((f, d) => {
16883
- var N, k;
16884
- const m = f.colorways.length <= 1, h = (N = f.colorways[0]) == null ? void 0 : N.preview, T = (h == null ? void 0 : h.accent) || LE, I = f.id === e;
16884
+ onKeyDown: f,
16885
+ children: i.map((d, m) => {
16886
+ var L, x;
16887
+ const h = d.colorways.length <= 1, E = (L = d.colorways[0]) == null ? void 0 : L.preview, I = (E == null ? void 0 : E.accent) || OE, N = d.id === e, k = SE(d.source, r);
16885
16888
  return /* @__PURE__ */ ie(
16886
16889
  "button",
16887
16890
  {
16888
- ref: (L) => {
16889
- o.current[d] = L;
16891
+ ref: (w) => {
16892
+ l.current[m] = w;
16890
16893
  },
16891
16894
  type: "button",
16892
- className: `ldk-theme-picker-card${I ? " active" : ""}`,
16893
- tabIndex: u === d ? 0 : -1,
16894
- "aria-label": f.name,
16895
- "aria-pressed": I,
16896
- onClick: () => t(f.id),
16897
- onFocus: () => a(d),
16895
+ className: `ldk-theme-picker-card${N ? " active" : ""}`,
16896
+ tabIndex: a === m ? 0 : -1,
16897
+ "aria-label": d.name,
16898
+ "aria-pressed": N,
16899
+ onClick: () => t(d.id),
16900
+ onFocus: () => o(m),
16898
16901
  children: [
16899
- /* @__PURE__ */ F("div", { className: "ldk-theme-picker-preview", style: h != null && h.bgWindow ? { background: h.bgWindow } : void 0, children: m ? (
16902
+ /* @__PURE__ */ F("div", { className: "ldk-theme-picker-preview", style: E != null && E.bgWindow ? { background: E.bgWindow } : void 0, children: h ? (
16900
16903
  // 单配色配方——3 条强调色预览条(mockup .ldk-theme-picker-preview-bar)
16901
16904
  /* @__PURE__ */ ie(Lr, { children: [
16902
- /* @__PURE__ */ F("span", { className: "ldk-theme-picker-preview-bar", style: { background: T } }),
16903
- /* @__PURE__ */ F("span", { className: "ldk-theme-picker-preview-bar", style: { background: T } }),
16904
- /* @__PURE__ */ F("span", { className: "ldk-theme-picker-preview-bar", style: { background: T } })
16905
+ /* @__PURE__ */ F("span", { className: "ldk-theme-picker-preview-bar", style: { background: I } }),
16906
+ /* @__PURE__ */ F("span", { className: "ldk-theme-picker-preview-bar", style: { background: I } }),
16907
+ /* @__PURE__ */ F("span", { className: "ldk-theme-picker-preview-bar", style: { background: I } })
16905
16908
  ] })
16906
16909
  ) : (
16907
16910
  // 多配色配方——配色圆点色板(mockup .ldk-theme-picker-preview-dot)
16908
- /* @__PURE__ */ F("span", { className: "ldk-theme-picker-preview-dots", children: f.colorways.slice(0, SE).map((L) => {
16909
- var x;
16911
+ /* @__PURE__ */ F("span", { className: "ldk-theme-picker-preview-dots", children: d.colorways.slice(0, LE).map((w) => {
16912
+ var U;
16910
16913
  return /* @__PURE__ */ F(
16911
16914
  "span",
16912
16915
  {
16913
16916
  className: "ldk-theme-picker-preview-dot",
16914
- style: (x = L.preview) != null && x.accent ? { background: L.preview.accent } : void 0
16917
+ style: (U = w.preview) != null && U.accent ? { background: w.preview.accent } : void 0
16915
16918
  },
16916
- L.id
16919
+ w.id
16917
16920
  );
16918
16921
  }) })
16919
16922
  ) }),
16920
16923
  /* @__PURE__ */ ie("div", { className: "ldk-theme-picker-name", children: [
16921
- /* @__PURE__ */ F("span", { className: "ldk-theme-picker-name-text", children: f.name }),
16922
- /* @__PURE__ */ F("span", { className: "ldk-theme-picker-badge", children: m ? ((k = f.colorways[0]) == null ? void 0 : k.name) ?? "" : n("{{count}} 配色", { count: f.colorways.length }) })
16923
- ] })
16924
+ /* @__PURE__ */ F("span", { className: "ldk-theme-picker-name-text", children: d.name }),
16925
+ /* @__PURE__ */ F("span", { className: "ldk-theme-picker-badge", children: h ? ((x = d.colorways[0]) == null ? void 0 : x.name) ?? "" : n("{{count}} 配色", { count: d.colorways.length }) })
16926
+ ] }),
16927
+ k ? /* @__PURE__ */ F("div", { className: "ldk-theme-picker-source", "data-hint": k, children: k }) : null
16924
16928
  ]
16925
16929
  },
16926
- f.id
16930
+ d.id
16927
16931
  );
16928
16932
  })
16929
16933
  }
16930
16934
  );
16931
16935
  }
16932
- function UT({ checked: e, onChange: t, disabled: n }) {
16936
+ function zT({ checked: e, onChange: t, disabled: n }) {
16933
16937
  return /* @__PURE__ */ F(
16934
16938
  "div",
16935
16939
  {
@@ -16945,7 +16949,7 @@ function UT({ checked: e, onChange: t, disabled: n }) {
16945
16949
  function _t() {
16946
16950
  return window.linkdesk;
16947
16951
  }
16948
- const zT = Or(function({
16952
+ const YT = Or(function({
16949
16953
  size: t,
16950
16954
  value: n,
16951
16955
  onConfirm: r,
@@ -16959,18 +16963,18 @@ const zT = Or(function({
16959
16963
  min: d,
16960
16964
  max: m
16961
16965
  }, h) {
16962
- const T = se(null), [I, N] = oe(n), [k, L] = oe(!0);
16966
+ const E = se(null), [I, N] = oe(n), [k, L] = oe(!0);
16963
16967
  oo(h, () => ({
16964
16968
  getValue: () => I
16965
16969
  }), [I]), re(() => {
16966
- if (!l || !T.current) return;
16967
- T.current.focus(), requestAnimationFrame(() => {
16968
- if (T.current)
16970
+ if (!l || !E.current) return;
16971
+ E.current.focus(), requestAnimationFrame(() => {
16972
+ if (E.current)
16969
16973
  if (a === "nameOnly") {
16970
16974
  const q = n.lastIndexOf(".");
16971
- q > 0 ? T.current.setSelectionRange(0, q) : T.current.select();
16975
+ q > 0 ? E.current.setSelectionRange(0, q) : E.current.select();
16972
16976
  } else
16973
- T.current.select();
16977
+ E.current.select();
16974
16978
  });
16975
16979
  }, [l]), re(() => {
16976
16980
  var C, q;
@@ -16988,16 +16992,16 @@ const zT = Or(function({
16988
16992
  }, []);
16989
16993
  const x = (C) => {
16990
16994
  C.key === "Enter" ? (C.preventDefault(), L(!1), r(I)) : C.key === "Escape" && (C.preventDefault(), L(!1), i()), C.stopPropagation();
16991
- }, P = () => {
16995
+ }, w = () => {
16992
16996
  k && (L(!1), r(I));
16993
- }, z = () => {
16997
+ }, U = () => {
16994
16998
  var C, q, W, B;
16995
16999
  (q = (C = _t().contextKey) == null ? void 0 : C.set) == null || q.call(C, "inputFocus", !0), (B = (W = _t().keybindings) == null ? void 0 : W.setKeybindingCaptureActive) == null || B.call(W, !0);
16996
17000
  };
16997
17001
  return /* @__PURE__ */ F(
16998
17002
  "input",
16999
17003
  {
17000
- ref: T,
17004
+ ref: E,
17001
17005
  className: `ldk-inline-input ldk-inline-input--${t}`,
17002
17006
  type: f,
17003
17007
  value: I,
@@ -17006,8 +17010,8 @@ const zT = Or(function({
17006
17010
  N(q), u == null || u(q);
17007
17011
  },
17008
17012
  onKeyDown: x,
17009
- onBlur: P,
17010
- onFocus: z,
17013
+ onBlur: w,
17014
+ onFocus: U,
17011
17015
  onDragStart: (C) => C.preventDefault(),
17012
17016
  placeholder: c,
17013
17017
  min: d,
@@ -17017,7 +17021,7 @@ const zT = Or(function({
17017
17021
  spellCheck: !1
17018
17022
  }
17019
17023
  );
17020
- }), OE = `<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
17024
+ }), DE = `<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
17021
17025
  <defs>
17022
17026
  <linearGradient id="defBg" x1="0" y1="0" x2="1" y2="1">
17023
17027
  <stop offset="0" stop-color="#3F4A5E"/>
@@ -17035,8 +17039,8 @@ const zT = Or(function({
17035
17039
  <path d="M24 18.6 L24 27" fill="none" stroke="#F1F5F9" stroke-width="2.9" stroke-linecap="round"/>
17036
17040
  <path d="M17 30 L23 30" fill="none" stroke="#F1F5F9" stroke-width="2.9" stroke-linecap="round"/>
17037
17041
  <path d="M25 30 L31 30" fill="none" stroke="#F1F5F9" stroke-width="2.9" stroke-linecap="round"/>
17038
- </svg>`, DE = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(OE)}`;
17039
- function RE(e, t) {
17042
+ </svg>`, RE = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(DE)}`;
17043
+ function wE(e, t) {
17040
17044
  const n = t.icon, r = t.iconSource;
17041
17045
  if (r === "lucide" && n)
17042
17046
  return { lucide: n };
@@ -17053,10 +17057,10 @@ function RE(e, t) {
17053
17057
  }
17054
17058
  return { emoji: "📄" };
17055
17059
  }
17056
- function YT(...e) {
17060
+ function qT(...e) {
17057
17061
  for (const t of e) if (t != null && t.marketIcon) return { icon: t.marketIcon, iconSource: t.marketIconSource };
17058
17062
  for (const t of e) if (t != null && t.icon) return { icon: t.icon, iconSource: t.iconSource };
17059
- return { icon: DE, iconSource: "url" };
17063
+ return { icon: RE, iconSource: "url" };
17060
17064
  }
17061
17065
  /**
17062
17066
  * @license lucide-react v1.42.0 - ISC
@@ -17064,18 +17068,18 @@ function YT(...e) {
17064
17068
  * This source code is licensed under the ISC license.
17065
17069
  * See the LICENSE file in the root directory of this source tree.
17066
17070
  */
17067
- const wE = (e) => e == null ? void 0 : e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
17071
+ const PE = (e) => e == null ? void 0 : e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
17068
17072
  /**
17069
17073
  * @license lucide-react v1.42.0 - ISC
17070
17074
  *
17071
17075
  * This source code is licensed under the ISC license.
17072
17076
  * See the LICENSE file in the root directory of this source tree.
17073
17077
  */
17074
- function PE(e, t, n = []) {
17078
+ function ME(e, t, n = []) {
17075
17079
  if (t == null)
17076
17080
  throw new Error("[lucide]: iconNode is required when icon name is used");
17077
17081
  return {
17078
- name: wE(e),
17082
+ name: PE(e),
17079
17083
  size: 24,
17080
17084
  node: t,
17081
17085
  ...n.length > 0 ? { aliases: n } : {}
@@ -17087,7 +17091,7 @@ function PE(e, t, n = []) {
17087
17091
  * This source code is licensed under the ISC license.
17088
17092
  * See the LICENSE file in the root directory of this source tree.
17089
17093
  */
17090
- const ME = (e) => {
17094
+ const FE = (e) => {
17091
17095
  let t = "", n = !1;
17092
17096
  for (const r of e) {
17093
17097
  if (r === "-" || r === "_" || r <= " ") {
@@ -17104,8 +17108,8 @@ const ME = (e) => {
17104
17108
  * This source code is licensed under the ISC license.
17105
17109
  * See the LICENSE file in the root directory of this source tree.
17106
17110
  */
17107
- const FE = (e) => {
17108
- const t = ME(e);
17111
+ const BE = (e) => {
17112
+ const t = FE(e);
17109
17113
  return t.charAt(0).toUpperCase() + t.slice(1);
17110
17114
  };
17111
17115
  /**
@@ -17141,13 +17145,13 @@ const ut = {
17141
17145
  function cr(e) {
17142
17146
  return e != null;
17143
17147
  }
17144
- function BE(e, t = {}) {
17148
+ function HE(e, t = {}) {
17145
17149
  var m, h;
17146
- const n = t.attributeNames ?? {}, r = (T) => n[T] ?? T, i = e.size ?? e.width ?? ut.width, u = e.size ?? e.height ?? ut.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 ? Sr(...l) : Sr("lucide", ...o, ...l), f = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? ut["stroke-width"]) * Number(e.size ?? e.width ?? ut.width) / Number(t.size ?? t.width ?? ut.width) : t.strokeWidth ?? ut["stroke-width"];
17150
+ const n = t.attributeNames ?? {}, r = (E) => n[E] ?? E, i = e.size ?? e.width ?? ut.width, u = e.size ?? e.height ?? ut.height, a = ((m = e.aliases) == null ? void 0 : m.filter((E) => typeof E == "string" && E.trim() !== "").map((E) => `lucide-${E}`)) ?? [], o = [...e.name ? [`lucide-${e.name}`] : [], ...a], l = ((h = t.className) == null ? void 0 : h.split(" ").filter(Boolean)) ?? [], c = t.includeDefaultClasses === !1 ? Sr(...l) : Sr("lucide", ...o, ...l), f = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? ut["stroke-width"]) * Number(e.size ?? e.width ?? ut.width) / Number(t.size ?? t.width ?? ut.width) : t.strokeWidth ?? ut["stroke-width"];
17147
17151
  return [
17148
17152
  "svg",
17149
17153
  {
17150
- ...Object.entries(ut).reduce((T, [I, N]) => (T[r(I)] = N, T), {}),
17154
+ ...Object.entries(ut).reduce((E, [I, N]) => (E[r(I)] = N, E), {}),
17151
17155
  ..."color" in t && t.color && {
17152
17156
  [r("stroke")]: t.color
17153
17157
  },
@@ -17171,8 +17175,8 @@ function BE(e, t = {}) {
17171
17175
  } : {},
17172
17176
  ..."attributes" in t && t.attributes
17173
17177
  },
17174
- e.node.map((T) => {
17175
- const [I, N, k] = T, L = t.nonScalingStroke ? { [r("vector-effect")]: "non-scaling-stroke", ...N } : N;
17178
+ e.node.map((E) => {
17179
+ const [I, N, k] = E, L = t.nonScalingStroke ? { [r("vector-effect")]: "non-scaling-stroke", ...N } : N;
17176
17180
  return k ? [I, L, k] : [I, L];
17177
17181
  })
17178
17182
  ];
@@ -17183,8 +17187,8 @@ function BE(e, t = {}) {
17183
17187
  * This source code is licensed under the ISC license.
17184
17188
  * See the LICENSE file in the root directory of this source tree.
17185
17189
  */
17186
- function HE(e, t = {}) {
17187
- return BE(e, {
17190
+ function vE(e, t = {}) {
17191
+ return HE(e, {
17188
17192
  ...t,
17189
17193
  attributeNames: {
17190
17194
  ...t.attributeNames,
@@ -17202,12 +17206,12 @@ function HE(e, t = {}) {
17202
17206
  * This source code is licensed under the ISC license.
17203
17207
  * See the LICENSE file in the root directory of this source tree.
17204
17208
  */
17205
- const vE = (e) => {
17209
+ const UE = (e) => {
17206
17210
  for (const t in e)
17207
17211
  if (t.startsWith("aria-") || t === "role" || t === "title")
17208
17212
  return !0;
17209
17213
  return !1;
17210
- }, UE = co({}), zE = () => lo(UE), YE = Or(
17214
+ }, zE = co({}), YE = () => lo(zE), qE = Or(
17211
17215
  ({
17212
17216
  color: e,
17213
17217
  size: t,
@@ -17228,16 +17232,16 @@ const vE = (e) => {
17228
17232
  }, m) => {
17229
17233
  const {
17230
17234
  size: h = 24,
17231
- strokeWidth: T = 2,
17235
+ strokeWidth: E = 2,
17232
17236
  absoluteStrokeWidth: I = !1,
17233
17237
  nonScalingStroke: N = !1,
17234
17238
  color: k = "currentColor",
17235
17239
  className: L = ""
17236
- } = zE() ?? {}, x = !!l || vE(d), [P, z, C = []] = HE(f, {
17240
+ } = YE() ?? {}, x = !!l || UE(d), [w, U, C = []] = vE(f, {
17237
17241
  color: e ?? k,
17238
17242
  width: n ?? t ?? h,
17239
17243
  height: r ?? t ?? h,
17240
- strokeWidth: i ?? T,
17244
+ strokeWidth: i ?? E,
17241
17245
  absoluteStrokeWidth: u ?? I,
17242
17246
  nonScalingStroke: a ?? N,
17243
17247
  className: Sr(L, o),
@@ -17245,10 +17249,10 @@ const vE = (e) => {
17245
17249
  attributes: d
17246
17250
  });
17247
17251
  return dr(
17248
- P,
17252
+ w,
17249
17253
  {
17250
17254
  ref: m,
17251
- ...z
17255
+ ...U
17252
17256
  },
17253
17257
  [
17254
17258
  ...C.map(([q, W]) => dr(q, W)),
@@ -17264,15 +17268,15 @@ const vE = (e) => {
17264
17268
  * See the LICENSE file in the root directory of this source tree.
17265
17269
  */
17266
17270
  function he(e, t = [], n = []) {
17267
- const r = typeof e == "string" ? PE(e, t, n) : e, i = Or(
17268
- ({ className: u, ...a }, o) => dr(YE, {
17271
+ const r = typeof e == "string" ? ME(e, t, n) : e, i = Or(
17272
+ ({ className: u, ...a }, o) => dr(qE, {
17269
17273
  ref: o,
17270
17274
  icon: r,
17271
17275
  className: u,
17272
17276
  ...a
17273
17277
  })
17274
17278
  );
17275
- return r.name && (i.displayName = FE(r.name)), i;
17279
+ return r.name && (i.displayName = BE(r.name)), i;
17276
17280
  }
17277
17281
  /**
17278
17282
  * @license lucide-react v1.42.0 - ISC
@@ -17295,7 +17299,7 @@ const Ns = {
17295
17299
  ]
17296
17300
  };
17297
17301
  Ns.node;
17298
- const qE = he(Ns);
17302
+ const VE = he(Ns);
17299
17303
  /**
17300
17304
  * @license lucide-react v1.42.0 - ISC
17301
17305
  *
@@ -17314,7 +17318,7 @@ const xs = {
17314
17318
  aliases: ["bar-chart-3"]
17315
17319
  };
17316
17320
  xs.node;
17317
- const VE = he(xs);
17321
+ const WE = he(xs);
17318
17322
  /**
17319
17323
  * @license lucide-react v1.42.0 - ISC
17320
17324
  *
@@ -17331,7 +17335,7 @@ const Ss = {
17331
17335
  ]
17332
17336
  };
17333
17337
  Ss.node;
17334
- const WE = he(Ss);
17338
+ const jE = he(Ss);
17335
17339
  /**
17336
17340
  * @license lucide-react v1.42.0 - ISC
17337
17341
  *
@@ -17350,7 +17354,7 @@ const Ls = {
17350
17354
  aliases: ["smile"]
17351
17355
  };
17352
17356
  Ls.node;
17353
- const jE = he(Ls);
17357
+ const $E = he(Ls);
17354
17358
  /**
17355
17359
  * @license lucide-react v1.42.0 - ISC
17356
17360
  *
@@ -17372,7 +17376,7 @@ const Os = {
17372
17376
  ]
17373
17377
  };
17374
17378
  Os.node;
17375
- const $E = he(Os);
17379
+ const GE = he(Os);
17376
17380
  /**
17377
17381
  * @license lucide-react v1.42.0 - ISC
17378
17382
  *
@@ -17393,7 +17397,7 @@ const Ds = {
17393
17397
  ]
17394
17398
  };
17395
17399
  Ds.node;
17396
- const GE = he(Ds);
17400
+ const QE = he(Ds);
17397
17401
  /**
17398
17402
  * @license lucide-react v1.42.0 - ISC
17399
17403
  *
@@ -17423,7 +17427,7 @@ const Rs = {
17423
17427
  ]
17424
17428
  };
17425
17429
  Rs.node;
17426
- const QE = he(Rs);
17430
+ const KE = he(Rs);
17427
17431
  /**
17428
17432
  * @license lucide-react v1.42.0 - ISC
17429
17433
  *
@@ -17444,7 +17448,7 @@ const ws = {
17444
17448
  ]
17445
17449
  };
17446
17450
  ws.node;
17447
- const KE = he(ws);
17451
+ const XE = he(ws);
17448
17452
  /**
17449
17453
  * @license lucide-react v1.42.0 - ISC
17450
17454
  *
@@ -17461,7 +17465,7 @@ const Ps = {
17461
17465
  ]
17462
17466
  };
17463
17467
  Ps.node;
17464
- const XE = he(Ps);
17468
+ const JE = he(Ps);
17465
17469
  /**
17466
17470
  * @license lucide-react v1.42.0 - ISC
17467
17471
  *
@@ -17484,7 +17488,7 @@ const Ms = {
17484
17488
  ]
17485
17489
  };
17486
17490
  Ms.node;
17487
- const JE = he(Ms);
17491
+ const ZE = he(Ms);
17488
17492
  /**
17489
17493
  * @license lucide-react v1.42.0 - ISC
17490
17494
  *
@@ -17500,7 +17504,7 @@ const Fs = {
17500
17504
  ]
17501
17505
  };
17502
17506
  Fs.node;
17503
- const ZE = he(Fs);
17507
+ const eT = he(Fs);
17504
17508
  /**
17505
17509
  * @license lucide-react v1.42.0 - ISC
17506
17510
  *
@@ -17517,7 +17521,7 @@ const Bs = {
17517
17521
  ]
17518
17522
  };
17519
17523
  Bs.node;
17520
- const eT = he(Bs);
17524
+ const tT = he(Bs);
17521
17525
  /**
17522
17526
  * @license lucide-react v1.42.0 - ISC
17523
17527
  *
@@ -17541,7 +17545,7 @@ const Hs = {
17541
17545
  ]
17542
17546
  };
17543
17547
  Hs.node;
17544
- const tT = he(Hs);
17548
+ const nT = he(Hs);
17545
17549
  /**
17546
17550
  * @license lucide-react v1.42.0 - ISC
17547
17551
  *
@@ -17562,7 +17566,7 @@ const vs = {
17562
17566
  ]
17563
17567
  };
17564
17568
  vs.node;
17565
- const nT = he(vs);
17569
+ const rT = he(vs);
17566
17570
  /**
17567
17571
  * @license lucide-react v1.42.0 - ISC
17568
17572
  *
@@ -17583,7 +17587,7 @@ const Us = {
17583
17587
  ]
17584
17588
  };
17585
17589
  Us.node;
17586
- const rT = he(Us);
17590
+ const iT = he(Us);
17587
17591
  /**
17588
17592
  * @license lucide-react v1.42.0 - ISC
17589
17593
  *
@@ -17613,7 +17617,7 @@ const zs = {
17613
17617
  ]
17614
17618
  };
17615
17619
  zs.node;
17616
- const iT = he(zs);
17620
+ const uT = he(zs);
17617
17621
  /**
17618
17622
  * @license lucide-react v1.42.0 - ISC
17619
17623
  *
@@ -17635,7 +17639,7 @@ const Ys = {
17635
17639
  ]
17636
17640
  };
17637
17641
  Ys.node;
17638
- const uT = he(Ys);
17642
+ const aT = he(Ys);
17639
17643
  /**
17640
17644
  * @license lucide-react v1.42.0 - ISC
17641
17645
  *
@@ -17658,7 +17662,7 @@ const qs = {
17658
17662
  ]
17659
17663
  };
17660
17664
  qs.node;
17661
- const aT = he(qs);
17665
+ const sT = he(qs);
17662
17666
  /**
17663
17667
  * @license lucide-react v1.42.0 - ISC
17664
17668
  *
@@ -17683,7 +17687,7 @@ const Vs = {
17683
17687
  aliases: ["stars"]
17684
17688
  };
17685
17689
  Vs.node;
17686
- const sT = he(Vs);
17690
+ const oT = he(Vs);
17687
17691
  /**
17688
17692
  * @license lucide-react v1.42.0 - ISC
17689
17693
  *
@@ -17704,7 +17708,7 @@ const Ws = {
17704
17708
  ]
17705
17709
  };
17706
17710
  Ws.node;
17707
- const oT = he(Ws);
17711
+ const lT = he(Ws);
17708
17712
  /**
17709
17713
  * @license lucide-react v1.42.0 - ISC
17710
17714
  *
@@ -17725,39 +17729,39 @@ const js = {
17725
17729
  ]
17726
17730
  };
17727
17731
  js.node;
17728
- const lT = he(js), cT = {
17729
- File: $E,
17730
- Folder: KE,
17731
- FolderOpen: GE,
17732
- FolderTree: QE,
17733
- Package: tT,
17734
- ShoppingBag: aT,
17735
- Monitor: eT,
17736
- Settings: uT,
17737
- BookOpen: qE,
17738
- BarChart3: VE,
17739
- Lightbulb: JE,
17740
- Lock: ZE,
17741
- Download: WE,
17742
- Globe: XE,
17743
- Plug: nT,
17744
- Puzzle: rT,
17745
- Rocket: iT,
17746
- Smile: jE,
17747
- Sparkles: sT,
17748
- Star: oT,
17749
- Zap: lT
17732
+ const cT = he(js), dT = {
17733
+ File: GE,
17734
+ Folder: XE,
17735
+ FolderOpen: QE,
17736
+ FolderTree: KE,
17737
+ Package: nT,
17738
+ ShoppingBag: sT,
17739
+ Monitor: tT,
17740
+ Settings: aT,
17741
+ BookOpen: VE,
17742
+ BarChart3: WE,
17743
+ Lightbulb: ZE,
17744
+ Lock: eT,
17745
+ Download: jE,
17746
+ Globe: JE,
17747
+ Plug: rT,
17748
+ Puzzle: iT,
17749
+ Rocket: uT,
17750
+ Smile: $E,
17751
+ Sparkles: oT,
17752
+ Star: lT,
17753
+ Zap: cT
17750
17754
  }, Cu = "📄";
17751
- function qT({ pluginId: e, manifest: t, className: n, alt: r = "" }) {
17752
- const i = t ? RE(e, t) : { emoji: Cu };
17755
+ function VT({ pluginId: e, manifest: t, className: n, alt: r = "" }) {
17756
+ const i = t ? wE(e, t) : { emoji: Cu };
17753
17757
  if (i.lucide) {
17754
- const u = cT[i.lucide];
17758
+ const u = dT[i.lucide];
17755
17759
  if (u)
17756
17760
  return /* @__PURE__ */ F(u, { className: `plugin-icon plugin-icon--lucide ${n ?? ""}` });
17757
17761
  }
17758
17762
  return i.codicon ? /* @__PURE__ */ F("span", { className: `codicon ${i.codicon} plugin-icon plugin-icon--codicon ${n ?? ""}` }) : i.src ? /* @__PURE__ */ F("img", { src: i.src, alt: r, className: `plugin-icon plugin-icon--img ${n ?? ""}`, draggable: !1 }) : /* @__PURE__ */ F("span", { className: `plugin-icon plugin-icon--emoji ${n ?? ""}`, children: i.emoji ?? Cu });
17759
17763
  }
17760
- function VT({ onPreview: e, onPin: t, disabled: n, delay: r = 250 }) {
17764
+ function WT({ onPreview: e, onPin: t, disabled: n, delay: r = 250 }) {
17761
17765
  const i = se(null);
17762
17766
  re(() => () => {
17763
17767
  i.current && clearTimeout(i.current);
@@ -17771,7 +17775,7 @@ function VT({ onPreview: e, onPin: t, disabled: n, delay: r = 250 }) {
17771
17775
  }, [n, t]);
17772
17776
  return { handleMouseDown: u, handleClick: a };
17773
17777
  }
17774
- function WT(e) {
17778
+ function jT(e) {
17775
17779
  const t = se(e);
17776
17780
  return t.current = e, ce((n) => {
17777
17781
  var i, u, a, o, l, c;
@@ -17780,7 +17784,7 @@ function WT(e) {
17780
17784
  return r !== "c" && r !== "x" && r !== "v" ? !1 : (n.preventDefault(), r === "c" ? (u = (i = t.current).onCopy) == null || u.call(i) : r === "x" ? (o = (a = t.current).onCut) == null || o.call(a) : (c = (l = t.current).onPaste) == null || c.call(l), !0);
17781
17785
  }, []);
17782
17786
  }
17783
- function jT(e, t = 150) {
17787
+ function $T(e, t = 150) {
17784
17788
  const [n, r] = oe(""), i = se(null), u = ce(
17785
17789
  (o) => {
17786
17790
  r(o), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
@@ -17795,7 +17799,7 @@ function jT(e, t = 150) {
17795
17799
  i.current && clearTimeout(i.current);
17796
17800
  }, []), { value: n, onChange: u, onClear: a };
17797
17801
  }
17798
- const dT = {
17802
+ const fT = {
17799
17803
  "package.json": "codicon-package",
17800
17804
  "tsconfig.json": "codicon-settings-gear",
17801
17805
  ".gitignore": "codicon-git-ignore",
@@ -17803,7 +17807,7 @@ const dT = {
17803
17807
  LICENSE: "codicon-law",
17804
17808
  ".env": "codicon-symbol-key",
17805
17809
  "docker-compose.yml": "codicon-server-environment"
17806
- }, fT = {
17810
+ }, hT = {
17807
17811
  ".tsx": "codicon-react",
17808
17812
  ".ts": "codicon-symbol-namespace",
17809
17813
  ".json": "codicon-json",
@@ -17832,13 +17836,13 @@ const dT = {
17832
17836
  components: "codicon-folder-library",
17833
17837
  hooks: "codicon-folder-library",
17834
17838
  utils: "codicon-folder-library"
17835
- }, hT = "codicon-file", mT = "codicon-folder", pT = "codicon-folder-opened", yu = "codicon-root-folder", ET = (e) => ({ kind: "class", className: e });
17839
+ }, mT = "codicon-file", pT = "codicon-folder", ET = "codicon-folder-opened", yu = "codicon-root-folder", TT = (e) => ({ kind: "class", className: e });
17836
17840
  function Tn(e) {
17837
17841
  const t = {};
17838
17842
  for (const [n, r] of Object.entries(e)) t[n] = { class: r };
17839
17843
  return t;
17840
17844
  }
17841
- class $T {
17845
+ class GT {
17842
17846
  constructor(t) {
17843
17847
  Fe(this, "_fileMap");
17844
17848
  Fe(this, "_extMap");
@@ -17850,28 +17854,28 @@ class $T {
17850
17854
  Fe(this, "_defaultFolderOpen");
17851
17855
  Fe(this, "_defaultRoot");
17852
17856
  Fe(this, "_defaultRootOpen");
17853
- this._fileMap = { ...Tn(dT), ...t == null ? void 0 : t.files }, this._extMap = { ...Tn(fT), ...t == null ? void 0 : t.extensions }, this._folderMap = { ...Tn(Iu), ...t == null ? void 0 : t.folders }, this._folderOpenMap = { ...Tn(Iu), ...t == null ? void 0 : t.foldersExpanded }, this._defaultFile = t == null ? void 0 : t.file, this._defaultFolder = t == null ? void 0 : t.folder, this._defaultFolderOpen = t == null ? void 0 : t.folderExpanded, this._defaultRoot = t == null ? void 0 : t.rootFolder, this._defaultRootOpen = t == null ? void 0 : t.rootFolderExpanded;
17857
+ this._fileMap = { ...Tn(fT), ...t == null ? void 0 : t.files }, this._extMap = { ...Tn(hT), ...t == null ? void 0 : t.extensions }, this._folderMap = { ...Tn(Iu), ...t == null ? void 0 : t.folders }, this._folderOpenMap = { ...Tn(Iu), ...t == null ? void 0 : t.foldersExpanded }, this._defaultFile = t == null ? void 0 : t.file, this._defaultFolder = t == null ? void 0 : t.folder, this._defaultFolderOpen = t == null ? void 0 : t.folderExpanded, this._defaultRoot = t == null ? void 0 : t.rootFolder, this._defaultRootOpen = t == null ? void 0 : t.rootFolderExpanded;
17854
17858
  }
17855
17859
  /** 解析映射条目 → 渲染描述符(glyph → class / image → 壳解析好的 linkdesk:// url) */
17856
17860
  resolve(t, n) {
17857
- return t ? "imagePath" in t ? { kind: "image", url: t.imagePath } : { kind: "class", className: t.class, color: t.color } : ET(n);
17861
+ return t ? "imagePath" in t ? { kind: "image", url: t.imagePath } : { kind: "class", className: t.class, color: t.color } : TT(n);
17858
17862
  }
17859
17863
  /** 文件图标——按文件名解析(E6#69g:tab 传路径基名即可) */
17860
17864
  getFileIcon(t) {
17861
17865
  return this.resolve(
17862
17866
  this._fileMap[t] ?? this._extMap[this._getExt(t)] ?? this._defaultFile,
17863
- hT
17867
+ mT
17864
17868
  );
17865
17869
  }
17866
17870
  /** 文件夹图标 */
17867
17871
  getFolderIcon(t, n) {
17868
- return n ? this.resolve(this._defaultRoot, yu) : this.resolve(this._folderMap[t] ?? this._defaultFolder, mT);
17872
+ return n ? this.resolve(this._defaultRoot, yu) : this.resolve(this._folderMap[t] ?? this._defaultFolder, pT);
17869
17873
  }
17870
17874
  /** 获取展开状态的文件夹图标 */
17871
17875
  getFolderIconOpened(t, n) {
17872
17876
  return n ? this.resolve(this._defaultRootOpen ?? this._defaultRoot, yu) : this.resolve(
17873
17877
  this._folderOpenMap[t] ?? this._folderMap[t] ?? this._defaultFolderOpen ?? this._defaultFolder,
17874
- pT
17878
+ ET
17875
17879
  );
17876
17880
  }
17877
17881
  _getExt(t) {
@@ -17879,45 +17883,45 @@ class $T {
17879
17883
  return n > 0 ? t.slice(n) : "";
17880
17884
  }
17881
17885
  }
17882
- function GT(e, t) {
17886
+ function QT(e, t) {
17883
17887
  const n = t - e;
17884
17888
  return !Number.isInteger(e) || !Number.isInteger(t) || n <= 2 ? 0.01 : 1;
17885
17889
  }
17886
- function QT(e) {
17890
+ function KT(e) {
17887
17891
  const t = /^https?:\/\/(?:github\.com|raw\.githubusercontent\.com)\/([^/]+)\/([^/?#]+)/i.exec(e.trim());
17888
17892
  return t ? `${t[1].toLowerCase()}/${t[2].toLowerCase()}` : null;
17889
17893
  }
17890
17894
  export {
17891
- kT as Badge,
17895
+ CT as Badge,
17892
17896
  cE as Button,
17893
- IT as ColorPicker,
17894
- yT as Combobox,
17895
- NT as ContextMenu,
17896
- DE as DEFAULT_PLUGIN_IDENTITY_URI,
17897
- xT as DynamicSelect,
17898
- $T as FileIconResolver,
17899
- ST as FilePathInput,
17900
- LT as FontFamilySelect,
17901
- OT as FormRow,
17902
- DT as HintCard,
17903
- RT as HintTip,
17904
- zT as InlineInput,
17905
- CT as MarkdownView,
17906
- wT as NumberInput,
17897
+ yT as ColorPicker,
17898
+ NT as Combobox,
17899
+ xT as ContextMenu,
17900
+ RE as DEFAULT_PLUGIN_IDENTITY_URI,
17901
+ ST as DynamicSelect,
17902
+ GT as FileIconResolver,
17903
+ LT as FilePathInput,
17904
+ OT as FontFamilySelect,
17905
+ DT as FormRow,
17906
+ RT as HintCard,
17907
+ wT as HintTip,
17908
+ YT as InlineInput,
17909
+ IT as MarkdownView,
17910
+ PT as NumberInput,
17907
17911
  Un as OverlayPortal,
17908
- qT as PluginIcon,
17909
- PT as ReadOnlyText,
17910
- MT as SectionSubtitle,
17911
- FT as SegmentedRadio,
17912
+ VT as PluginIcon,
17913
+ MT as ReadOnlyText,
17914
+ FT as SectionSubtitle,
17915
+ BT as SegmentedRadio,
17912
17916
  Is as SelectBox,
17913
- BT as Slider,
17914
- HT as StringListEditor,
17915
- vT as ThemePicker,
17916
- UT as Toggle,
17917
- GT as inferSliderStep,
17918
- YT as pickIdentityArt,
17919
- QT as urlSourceKey,
17920
- VT as useClickPreview,
17921
- WT as useClipboardKeys,
17922
- jT as useDebouncedInput
17917
+ HT as Slider,
17918
+ vT as StringListEditor,
17919
+ UT as ThemePicker,
17920
+ zT as Toggle,
17921
+ QT as inferSliderStep,
17922
+ qT as pickIdentityArt,
17923
+ KT as urlSourceKey,
17924
+ WT as useClickPreview,
17925
+ jT as useClipboardKeys,
17926
+ $T as useDebouncedInput
17923
17927
  };