@kakadu/components 6.11.4 → 6.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/code.d.ts +11 -4
- package/build/components/code.js +4 -4
- package/build/components/code.mjs +257 -254
- package/build/components/input.d.ts +3 -1
- package/build/components/input.js +2 -2
- package/build/components/input.mjs +3 -2
- package/build/components/text.js +1 -1
- package/build/components/text.mjs +1 -1
- package/build/components.css +1 -1
- package/build/hooks/use-fetch.js +1 -1
- package/build/hooks/use-fetch.mjs +49 -51
- package/build/index.js +1 -1
- package/build/index.mjs +201 -200
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as q } from "../jsx-runtime-z6PQ6F3d.mjs";
|
|
2
2
|
import { useMemo as rn } from "react";
|
|
3
3
|
import { cx as ie } from "@kuma-ui/core";
|
|
4
4
|
import yn from "./copy-icon-button.mjs";
|
|
5
|
+
import { InputAttachment as En } from "./input.mjs";
|
|
5
6
|
$.displayName = "clike";
|
|
6
7
|
$.aliases = [];
|
|
7
8
|
function $(e) {
|
|
@@ -445,8 +446,8 @@ function fe(e) {
|
|
|
445
446
|
"operator",
|
|
446
447
|
"punctuation",
|
|
447
448
|
"number"
|
|
448
|
-
], s = a.variable[1].inside,
|
|
449
|
-
s[o[
|
|
449
|
+
], s = a.variable[1].inside, l = 0; l < o.length; l++)
|
|
450
|
+
s[o[l]] = n.languages.bash[o[l]];
|
|
450
451
|
n.languages.sh = n.languages.bash, n.languages.shell = n.languages.bash;
|
|
451
452
|
})(e);
|
|
452
453
|
}
|
|
@@ -483,7 +484,7 @@ function be(e) {
|
|
|
483
484
|
function s(U) {
|
|
484
485
|
return "\\b(?:" + U.trim().replace(/ /g, "|") + ")\\b";
|
|
485
486
|
}
|
|
486
|
-
var
|
|
487
|
+
var l = s(
|
|
487
488
|
o.typeDeclaration
|
|
488
489
|
), u = RegExp(
|
|
489
490
|
s(
|
|
@@ -553,7 +554,7 @@ function be(e) {
|
|
|
553
554
|
// class Foo<A, B>
|
|
554
555
|
// interface Foo<out A, B>
|
|
555
556
|
pattern: r(/(\b<<0>>\s+)<<1>>/.source, [
|
|
556
|
-
|
|
557
|
+
l,
|
|
557
558
|
E
|
|
558
559
|
]),
|
|
559
560
|
lookbehind: !0,
|
|
@@ -675,7 +676,7 @@ function be(e) {
|
|
|
675
676
|
pattern: r(
|
|
676
677
|
/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,
|
|
677
678
|
[
|
|
678
|
-
|
|
679
|
+
l,
|
|
679
680
|
E,
|
|
680
681
|
h,
|
|
681
682
|
g,
|
|
@@ -759,14 +760,14 @@ function be(e) {
|
|
|
759
760
|
}
|
|
760
761
|
}
|
|
761
762
|
});
|
|
762
|
-
var
|
|
763
|
+
var B = /:[^}\r\n]+/.source, V = a(
|
|
763
764
|
t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
764
765
|
F
|
|
765
766
|
]),
|
|
766
767
|
2
|
|
767
768
|
), ze = t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
768
769
|
V,
|
|
769
|
-
|
|
770
|
+
B
|
|
770
771
|
]), He = a(
|
|
771
772
|
t(
|
|
772
773
|
/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,
|
|
@@ -775,7 +776,7 @@ function be(e) {
|
|
|
775
776
|
2
|
|
776
777
|
), Pe = t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
777
778
|
He,
|
|
778
|
-
|
|
779
|
+
B
|
|
779
780
|
]);
|
|
780
781
|
function Ve(U, z) {
|
|
781
782
|
return {
|
|
@@ -786,7 +787,7 @@ function be(e) {
|
|
|
786
787
|
"format-string": {
|
|
787
788
|
pattern: r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [
|
|
788
789
|
z,
|
|
789
|
-
|
|
790
|
+
B
|
|
790
791
|
]),
|
|
791
792
|
lookbehind: !0,
|
|
792
793
|
inside: {
|
|
@@ -1333,7 +1334,7 @@ function Se(e) {
|
|
|
1333
1334
|
}, o = {
|
|
1334
1335
|
pattern: /\\[wsd]|\\p\{[^{}]+\}/i,
|
|
1335
1336
|
alias: "class-name"
|
|
1336
|
-
}, s = "(?:[^\\\\-]|" + r.source + ")",
|
|
1337
|
+
}, s = "(?:[^\\\\-]|" + r.source + ")", l = RegExp(s + "-" + s), u = {
|
|
1337
1338
|
pattern: /(<|')[^<>']+(?=[>']$)/,
|
|
1338
1339
|
lookbehind: !0,
|
|
1339
1340
|
alias: "variable"
|
|
@@ -1353,7 +1354,7 @@ function Se(e) {
|
|
|
1353
1354
|
alias: "punctuation"
|
|
1354
1355
|
},
|
|
1355
1356
|
range: {
|
|
1356
|
-
pattern:
|
|
1357
|
+
pattern: l,
|
|
1357
1358
|
inside: {
|
|
1358
1359
|
escape: r,
|
|
1359
1360
|
"range-punctuation": {
|
|
@@ -1771,7 +1772,7 @@ function Re(e) {
|
|
|
1771
1772
|
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
1772
1773
|
}
|
|
1773
1774
|
), s = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
1774
|
-
function
|
|
1775
|
+
function l(u, c) {
|
|
1775
1776
|
c = (c || "").replace(/m/g, "") + "m";
|
|
1776
1777
|
var f = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
1777
1778
|
return a;
|
|
@@ -1812,29 +1813,29 @@ function Re(e) {
|
|
|
1812
1813
|
alias: "important"
|
|
1813
1814
|
},
|
|
1814
1815
|
datetime: {
|
|
1815
|
-
pattern:
|
|
1816
|
+
pattern: l(
|
|
1816
1817
|
/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source
|
|
1817
1818
|
),
|
|
1818
1819
|
lookbehind: !0,
|
|
1819
1820
|
alias: "number"
|
|
1820
1821
|
},
|
|
1821
1822
|
boolean: {
|
|
1822
|
-
pattern:
|
|
1823
|
+
pattern: l(/false|true/.source, "i"),
|
|
1823
1824
|
lookbehind: !0,
|
|
1824
1825
|
alias: "important"
|
|
1825
1826
|
},
|
|
1826
1827
|
null: {
|
|
1827
|
-
pattern:
|
|
1828
|
+
pattern: l(/null|~/.source, "i"),
|
|
1828
1829
|
lookbehind: !0,
|
|
1829
1830
|
alias: "important"
|
|
1830
1831
|
},
|
|
1831
1832
|
string: {
|
|
1832
|
-
pattern:
|
|
1833
|
+
pattern: l(s),
|
|
1833
1834
|
lookbehind: !0,
|
|
1834
1835
|
greedy: !0
|
|
1835
1836
|
},
|
|
1836
1837
|
number: {
|
|
1837
|
-
pattern:
|
|
1838
|
+
pattern: l(
|
|
1838
1839
|
/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,
|
|
1839
1840
|
"i"
|
|
1840
1841
|
),
|
|
@@ -1851,10 +1852,10 @@ Ne.aliases = ["md"];
|
|
|
1851
1852
|
function Ne(e) {
|
|
1852
1853
|
e.register(X), (function(n) {
|
|
1853
1854
|
var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
1854
|
-
function r(
|
|
1855
|
-
return
|
|
1855
|
+
function r(l) {
|
|
1856
|
+
return l = l.replace(/<inner>/g, function() {
|
|
1856
1857
|
return t;
|
|
1857
|
-
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" +
|
|
1858
|
+
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + l + ")");
|
|
1858
1859
|
}
|
|
1859
1860
|
var a = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, o = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(
|
|
1860
1861
|
/__/g,
|
|
@@ -2097,14 +2098,14 @@ function Ne(e) {
|
|
|
2097
2098
|
}
|
|
2098
2099
|
}
|
|
2099
2100
|
}
|
|
2100
|
-
}), ["url", "bold", "italic", "strike"].forEach(function(
|
|
2101
|
+
}), ["url", "bold", "italic", "strike"].forEach(function(l) {
|
|
2101
2102
|
["url", "bold", "italic", "strike", "code-snippet"].forEach(
|
|
2102
2103
|
function(u) {
|
|
2103
|
-
|
|
2104
|
+
l !== u && (n.languages.markdown[l].inside.content.inside[u] = n.languages.markdown[u]);
|
|
2104
2105
|
}
|
|
2105
2106
|
);
|
|
2106
|
-
}), n.hooks.add("after-tokenize", function(
|
|
2107
|
-
if (
|
|
2107
|
+
}), n.hooks.add("after-tokenize", function(l) {
|
|
2108
|
+
if (l.language !== "markdown" && l.language !== "md")
|
|
2108
2109
|
return;
|
|
2109
2110
|
function u(c) {
|
|
2110
2111
|
if (!(!c || typeof c == "string"))
|
|
@@ -2123,11 +2124,11 @@ function Ne(e) {
|
|
|
2123
2124
|
}
|
|
2124
2125
|
}
|
|
2125
2126
|
}
|
|
2126
|
-
u(
|
|
2127
|
-
}), n.hooks.add("wrap", function(
|
|
2128
|
-
if (
|
|
2129
|
-
for (var u = "", c = 0, f =
|
|
2130
|
-
var k =
|
|
2127
|
+
u(l.tokens);
|
|
2128
|
+
}), n.hooks.add("wrap", function(l) {
|
|
2129
|
+
if (l.type === "code-block") {
|
|
2130
|
+
for (var u = "", c = 0, f = l.classes.length; c < f; c++) {
|
|
2131
|
+
var k = l.classes[c], A = /language-(.+)/.exec(k);
|
|
2131
2132
|
if (A) {
|
|
2132
2133
|
u = A[1];
|
|
2133
2134
|
break;
|
|
@@ -2135,10 +2136,10 @@ function Ne(e) {
|
|
|
2135
2136
|
}
|
|
2136
2137
|
var h = n.languages[u];
|
|
2137
2138
|
if (h)
|
|
2138
|
-
|
|
2139
|
+
l.content = n.highlight(l.content.value, h, u);
|
|
2139
2140
|
else if (u && u !== "none" && n.plugins.autoloader) {
|
|
2140
2141
|
var E = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
2141
|
-
|
|
2142
|
+
l.attributes.id = E, n.plugins.autoloader.loadLanguages(u, function() {
|
|
2142
2143
|
var m = document.getElementById(E);
|
|
2143
2144
|
m && (m.innerHTML = n.highlight(
|
|
2144
2145
|
m.textContent,
|
|
@@ -2320,13 +2321,13 @@ function ae(e) {
|
|
|
2320
2321
|
*/
|
|
2321
2322
|
value: function(r, a, o, s) {
|
|
2322
2323
|
if (r.language === a) {
|
|
2323
|
-
var
|
|
2324
|
+
var l = r.tokenStack = [];
|
|
2324
2325
|
r.code = r.code.replace(o, function(u) {
|
|
2325
2326
|
if (typeof s == "function" && !s(u))
|
|
2326
2327
|
return u;
|
|
2327
|
-
for (var c =
|
|
2328
|
+
for (var c = l.length, f; r.code.indexOf(f = t(a, c)) !== -1; )
|
|
2328
2329
|
++c;
|
|
2329
|
-
return
|
|
2330
|
+
return l[c] = u, f;
|
|
2330
2331
|
}), r.grammar = n.languages.markup;
|
|
2331
2332
|
}
|
|
2332
2333
|
}
|
|
@@ -2343,7 +2344,7 @@ function ae(e) {
|
|
|
2343
2344
|
return;
|
|
2344
2345
|
r.grammar = n.languages[a];
|
|
2345
2346
|
var o = 0, s = Object.keys(r.tokenStack);
|
|
2346
|
-
function
|
|
2347
|
+
function l(u) {
|
|
2347
2348
|
for (var c = 0; c < u.length && !(o >= s.length); c++) {
|
|
2348
2349
|
var f = u[c];
|
|
2349
2350
|
if (typeof f == "string" || f.content && typeof f.content == "string") {
|
|
@@ -2356,13 +2357,13 @@ function ae(e) {
|
|
|
2356
2357
|
"language-" + a,
|
|
2357
2358
|
A
|
|
2358
2359
|
), R = h.substring(m + E.length), T = [];
|
|
2359
|
-
y && T.push.apply(T,
|
|
2360
|
+
y && T.push.apply(T, l([y])), T.push(S), R && T.push.apply(T, l([R])), typeof f == "string" ? u.splice.apply(u, [c, 1].concat(T)) : f.content = T;
|
|
2360
2361
|
}
|
|
2361
|
-
} else f.content &&
|
|
2362
|
+
} else f.content && l(f.content);
|
|
2362
2363
|
}
|
|
2363
2364
|
return u;
|
|
2364
2365
|
}
|
|
2365
|
-
|
|
2366
|
+
l(r.tokens);
|
|
2366
2367
|
}
|
|
2367
2368
|
}
|
|
2368
2369
|
});
|
|
@@ -2583,7 +2584,7 @@ function Le(e) {
|
|
|
2583
2584
|
operator: o,
|
|
2584
2585
|
punctuation: s
|
|
2585
2586
|
};
|
|
2586
|
-
var
|
|
2587
|
+
var l = {
|
|
2587
2588
|
pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,
|
|
2588
2589
|
lookbehind: !0,
|
|
2589
2590
|
inside: n.languages.php
|
|
@@ -2614,7 +2615,7 @@ function Le(e) {
|
|
|
2614
2615
|
punctuation: /^<<<"?|[";]$/
|
|
2615
2616
|
}
|
|
2616
2617
|
},
|
|
2617
|
-
interpolation:
|
|
2618
|
+
interpolation: l
|
|
2618
2619
|
}
|
|
2619
2620
|
},
|
|
2620
2621
|
{
|
|
@@ -2632,7 +2633,7 @@ function Le(e) {
|
|
|
2632
2633
|
alias: "double-quoted-string",
|
|
2633
2634
|
greedy: !0,
|
|
2634
2635
|
inside: {
|
|
2635
|
-
interpolation:
|
|
2636
|
+
interpolation: l
|
|
2636
2637
|
}
|
|
2637
2638
|
}
|
|
2638
2639
|
];
|
|
@@ -3530,10 +3531,10 @@ _.prototype.overloadedBoolean = !1;
|
|
|
3530
3531
|
_.prototype.property = "";
|
|
3531
3532
|
_.prototype.spaceSeparated = !1;
|
|
3532
3533
|
_.prototype.space = void 0;
|
|
3533
|
-
let
|
|
3534
|
-
const p = P(), N = P(), se = P(),
|
|
3534
|
+
let Sn = 0;
|
|
3535
|
+
const p = P(), N = P(), se = P(), i = P(), w = P(), H = P(), M = P();
|
|
3535
3536
|
function P() {
|
|
3536
|
-
return 2 ** ++
|
|
3537
|
+
return 2 ** ++Sn;
|
|
3537
3538
|
}
|
|
3538
3539
|
const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3539
3540
|
__proto__: null,
|
|
@@ -3541,7 +3542,7 @@ const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3541
3542
|
booleanish: N,
|
|
3542
3543
|
commaOrSpaceSeparated: M,
|
|
3543
3544
|
commaSeparated: H,
|
|
3544
|
-
number:
|
|
3545
|
+
number: i,
|
|
3545
3546
|
overloadedBoolean: se,
|
|
3546
3547
|
spaceSeparated: w
|
|
3547
3548
|
}, Symbol.toStringTag, { value: "Module" })), le = (
|
|
@@ -3595,9 +3596,9 @@ const on = Y({
|
|
|
3595
3596
|
ariaAutoComplete: null,
|
|
3596
3597
|
ariaBusy: N,
|
|
3597
3598
|
ariaChecked: N,
|
|
3598
|
-
ariaColCount:
|
|
3599
|
-
ariaColIndex:
|
|
3600
|
-
ariaColSpan:
|
|
3599
|
+
ariaColCount: i,
|
|
3600
|
+
ariaColIndex: i,
|
|
3601
|
+
ariaColSpan: i,
|
|
3601
3602
|
ariaControls: w,
|
|
3602
3603
|
ariaCurrent: null,
|
|
3603
3604
|
ariaDescribedBy: w,
|
|
@@ -3614,7 +3615,7 @@ const on = Y({
|
|
|
3614
3615
|
ariaKeyShortcuts: null,
|
|
3615
3616
|
ariaLabel: null,
|
|
3616
3617
|
ariaLabelledBy: w,
|
|
3617
|
-
ariaLevel:
|
|
3618
|
+
ariaLevel: i,
|
|
3618
3619
|
ariaLive: null,
|
|
3619
3620
|
ariaModal: N,
|
|
3620
3621
|
ariaMultiLine: N,
|
|
@@ -3622,21 +3623,21 @@ const on = Y({
|
|
|
3622
3623
|
ariaOrientation: null,
|
|
3623
3624
|
ariaOwns: w,
|
|
3624
3625
|
ariaPlaceholder: null,
|
|
3625
|
-
ariaPosInSet:
|
|
3626
|
+
ariaPosInSet: i,
|
|
3626
3627
|
ariaPressed: N,
|
|
3627
3628
|
ariaReadOnly: N,
|
|
3628
3629
|
ariaRelevant: null,
|
|
3629
3630
|
ariaRequired: N,
|
|
3630
3631
|
ariaRoleDescription: w,
|
|
3631
|
-
ariaRowCount:
|
|
3632
|
-
ariaRowIndex:
|
|
3633
|
-
ariaRowSpan:
|
|
3632
|
+
ariaRowCount: i,
|
|
3633
|
+
ariaRowIndex: i,
|
|
3634
|
+
ariaRowSpan: i,
|
|
3634
3635
|
ariaSelected: N,
|
|
3635
|
-
ariaSetSize:
|
|
3636
|
+
ariaSetSize: i,
|
|
3636
3637
|
ariaSort: null,
|
|
3637
|
-
ariaValueMax:
|
|
3638
|
-
ariaValueMin:
|
|
3639
|
-
ariaValueNow:
|
|
3638
|
+
ariaValueMax: i,
|
|
3639
|
+
ariaValueMin: i,
|
|
3640
|
+
ariaValueNow: i,
|
|
3640
3641
|
ariaValueText: null,
|
|
3641
3642
|
role: null
|
|
3642
3643
|
},
|
|
@@ -3650,7 +3651,7 @@ function ln(e, n) {
|
|
|
3650
3651
|
function sn(e, n) {
|
|
3651
3652
|
return ln(e, n.toLowerCase());
|
|
3652
3653
|
}
|
|
3653
|
-
const
|
|
3654
|
+
const wn = Y({
|
|
3654
3655
|
attributes: {
|
|
3655
3656
|
acceptcharset: "accept-charset",
|
|
3656
3657
|
classname: "class",
|
|
@@ -3685,15 +3686,15 @@ const Sn = Y({
|
|
|
3685
3686
|
className: w,
|
|
3686
3687
|
closedBy: null,
|
|
3687
3688
|
colorSpace: null,
|
|
3688
|
-
cols:
|
|
3689
|
-
colSpan:
|
|
3689
|
+
cols: i,
|
|
3690
|
+
colSpan: i,
|
|
3690
3691
|
command: null,
|
|
3691
3692
|
commandFor: null,
|
|
3692
3693
|
content: null,
|
|
3693
3694
|
contentEditable: N,
|
|
3694
3695
|
controls: p,
|
|
3695
3696
|
controlsList: w,
|
|
3696
|
-
coords:
|
|
3697
|
+
coords: i | H,
|
|
3697
3698
|
crossOrigin: null,
|
|
3698
3699
|
data: null,
|
|
3699
3700
|
dateTime: null,
|
|
@@ -3715,9 +3716,9 @@ const Sn = Y({
|
|
|
3715
3716
|
formNoValidate: p,
|
|
3716
3717
|
formTarget: null,
|
|
3717
3718
|
headers: w,
|
|
3718
|
-
height:
|
|
3719
|
+
height: i,
|
|
3719
3720
|
hidden: se,
|
|
3720
|
-
high:
|
|
3721
|
+
high: i,
|
|
3721
3722
|
href: null,
|
|
3722
3723
|
hrefLang: null,
|
|
3723
3724
|
htmlFor: w,
|
|
@@ -3742,14 +3743,14 @@ const Sn = Y({
|
|
|
3742
3743
|
list: null,
|
|
3743
3744
|
loading: null,
|
|
3744
3745
|
loop: p,
|
|
3745
|
-
low:
|
|
3746
|
+
low: i,
|
|
3746
3747
|
manifest: null,
|
|
3747
3748
|
max: null,
|
|
3748
|
-
maxLength:
|
|
3749
|
+
maxLength: i,
|
|
3749
3750
|
media: null,
|
|
3750
3751
|
method: null,
|
|
3751
3752
|
min: null,
|
|
3752
|
-
minLength:
|
|
3753
|
+
minLength: i,
|
|
3753
3754
|
multiple: p,
|
|
3754
3755
|
muted: p,
|
|
3755
3756
|
name: null,
|
|
@@ -3845,7 +3846,7 @@ const Sn = Y({
|
|
|
3845
3846
|
onWaiting: null,
|
|
3846
3847
|
onWheel: null,
|
|
3847
3848
|
open: p,
|
|
3848
|
-
optimum:
|
|
3849
|
+
optimum: i,
|
|
3849
3850
|
pattern: null,
|
|
3850
3851
|
ping: w,
|
|
3851
3852
|
placeholder: null,
|
|
@@ -3860,8 +3861,8 @@ const Sn = Y({
|
|
|
3860
3861
|
rel: w,
|
|
3861
3862
|
required: p,
|
|
3862
3863
|
reversed: p,
|
|
3863
|
-
rows:
|
|
3864
|
-
rowSpan:
|
|
3864
|
+
rows: i,
|
|
3865
|
+
rowSpan: i,
|
|
3865
3866
|
sandbox: w,
|
|
3866
3867
|
scope: null,
|
|
3867
3868
|
scoped: p,
|
|
@@ -3873,19 +3874,19 @@ const Sn = Y({
|
|
|
3873
3874
|
shadowRootMode: null,
|
|
3874
3875
|
shadowRootSerializable: p,
|
|
3875
3876
|
shape: null,
|
|
3876
|
-
size:
|
|
3877
|
+
size: i,
|
|
3877
3878
|
sizes: null,
|
|
3878
3879
|
slot: null,
|
|
3879
|
-
span:
|
|
3880
|
+
span: i,
|
|
3880
3881
|
spellCheck: N,
|
|
3881
3882
|
src: null,
|
|
3882
3883
|
srcDoc: null,
|
|
3883
3884
|
srcLang: null,
|
|
3884
3885
|
srcSet: null,
|
|
3885
|
-
start:
|
|
3886
|
+
start: i,
|
|
3886
3887
|
step: null,
|
|
3887
3888
|
style: null,
|
|
3888
|
-
tabIndex:
|
|
3889
|
+
tabIndex: i,
|
|
3889
3890
|
target: null,
|
|
3890
3891
|
title: null,
|
|
3891
3892
|
translate: null,
|
|
@@ -3893,7 +3894,7 @@ const Sn = Y({
|
|
|
3893
3894
|
typeMustMatch: p,
|
|
3894
3895
|
useMap: null,
|
|
3895
3896
|
value: N,
|
|
3896
|
-
width:
|
|
3897
|
+
width: i,
|
|
3897
3898
|
wrap: null,
|
|
3898
3899
|
writingSuggestions: null,
|
|
3899
3900
|
// Legacy.
|
|
@@ -3910,11 +3911,11 @@ const Sn = Y({
|
|
|
3910
3911
|
// `<body>`. Use CSS `background-image` instead
|
|
3911
3912
|
bgColor: null,
|
|
3912
3913
|
// `<body>` and table elements. Use CSS `background-color` instead
|
|
3913
|
-
border:
|
|
3914
|
+
border: i,
|
|
3914
3915
|
// `<table>`. Use CSS `border-width` instead,
|
|
3915
3916
|
borderColor: null,
|
|
3916
3917
|
// `<table>`. Use CSS `border-color` instead,
|
|
3917
|
-
bottomMargin:
|
|
3918
|
+
bottomMargin: i,
|
|
3918
3919
|
// `<body>`
|
|
3919
3920
|
cellPadding: null,
|
|
3920
3921
|
// `<table>`
|
|
@@ -3948,9 +3949,9 @@ const Sn = Y({
|
|
|
3948
3949
|
// `<table>`
|
|
3949
3950
|
frameBorder: null,
|
|
3950
3951
|
// `<iframe>`. Use CSS `border` instead
|
|
3951
|
-
hSpace:
|
|
3952
|
+
hSpace: i,
|
|
3952
3953
|
// `<img>` and `<object>`
|
|
3953
|
-
leftMargin:
|
|
3954
|
+
leftMargin: i,
|
|
3954
3955
|
// `<body>`
|
|
3955
3956
|
link: null,
|
|
3956
3957
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
@@ -3958,9 +3959,9 @@ const Sn = Y({
|
|
|
3958
3959
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
3959
3960
|
lowSrc: null,
|
|
3960
3961
|
// `<img>`. Use a `<picture>`
|
|
3961
|
-
marginHeight:
|
|
3962
|
+
marginHeight: i,
|
|
3962
3963
|
// `<body>`
|
|
3963
|
-
marginWidth:
|
|
3964
|
+
marginWidth: i,
|
|
3964
3965
|
// `<body>`
|
|
3965
3966
|
noResize: p,
|
|
3966
3967
|
// `<frame>`
|
|
@@ -3978,7 +3979,7 @@ const Sn = Y({
|
|
|
3978
3979
|
// `<isindex>`
|
|
3979
3980
|
rev: null,
|
|
3980
3981
|
// `<link>`
|
|
3981
|
-
rightMargin:
|
|
3982
|
+
rightMargin: i,
|
|
3982
3983
|
// `<body>`
|
|
3983
3984
|
rules: null,
|
|
3984
3985
|
// `<table>`
|
|
@@ -3992,7 +3993,7 @@ const Sn = Y({
|
|
|
3992
3993
|
// `<table>`
|
|
3993
3994
|
text: null,
|
|
3994
3995
|
// `<body>`. Use CSS `color` instead
|
|
3995
|
-
topMargin:
|
|
3996
|
+
topMargin: i,
|
|
3996
3997
|
// `<body>`
|
|
3997
3998
|
valueType: null,
|
|
3998
3999
|
// `<param>`
|
|
@@ -4002,7 +4003,7 @@ const Sn = Y({
|
|
|
4002
4003
|
// Several. Use CSS `vertical-align` instead
|
|
4003
4004
|
vLink: null,
|
|
4004
4005
|
// `<body>`. Use CSS `a:visited {color}` instead
|
|
4005
|
-
vSpace:
|
|
4006
|
+
vSpace: i,
|
|
4006
4007
|
// `<img>` and `<object>`
|
|
4007
4008
|
// Non-standard Properties.
|
|
4008
4009
|
allowTransparency: null,
|
|
@@ -4015,13 +4016,13 @@ const Sn = Y({
|
|
|
4015
4016
|
part: w,
|
|
4016
4017
|
prefix: null,
|
|
4017
4018
|
property: null,
|
|
4018
|
-
results:
|
|
4019
|
+
results: i,
|
|
4019
4020
|
security: null,
|
|
4020
4021
|
unselectable: null
|
|
4021
4022
|
},
|
|
4022
4023
|
space: "html",
|
|
4023
4024
|
transform: sn
|
|
4024
|
-
}),
|
|
4025
|
+
}), An = Y({
|
|
4025
4026
|
attributes: {
|
|
4026
4027
|
accentHeight: "accent-height",
|
|
4027
4028
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -4200,27 +4201,27 @@ const Sn = Y({
|
|
|
4200
4201
|
},
|
|
4201
4202
|
properties: {
|
|
4202
4203
|
about: M,
|
|
4203
|
-
accentHeight:
|
|
4204
|
+
accentHeight: i,
|
|
4204
4205
|
accumulate: null,
|
|
4205
4206
|
additive: null,
|
|
4206
4207
|
alignmentBaseline: null,
|
|
4207
|
-
alphabetic:
|
|
4208
|
-
amplitude:
|
|
4208
|
+
alphabetic: i,
|
|
4209
|
+
amplitude: i,
|
|
4209
4210
|
arabicForm: null,
|
|
4210
|
-
ascent:
|
|
4211
|
+
ascent: i,
|
|
4211
4212
|
attributeName: null,
|
|
4212
4213
|
attributeType: null,
|
|
4213
|
-
azimuth:
|
|
4214
|
+
azimuth: i,
|
|
4214
4215
|
bandwidth: null,
|
|
4215
4216
|
baselineShift: null,
|
|
4216
4217
|
baseFrequency: null,
|
|
4217
4218
|
baseProfile: null,
|
|
4218
4219
|
bbox: null,
|
|
4219
4220
|
begin: null,
|
|
4220
|
-
bias:
|
|
4221
|
+
bias: i,
|
|
4221
4222
|
by: null,
|
|
4222
4223
|
calcMode: null,
|
|
4223
|
-
capHeight:
|
|
4224
|
+
capHeight: i,
|
|
4224
4225
|
className: w,
|
|
4225
4226
|
clip: null,
|
|
4226
4227
|
clipPath: null,
|
|
@@ -4241,26 +4242,26 @@ const Sn = Y({
|
|
|
4241
4242
|
d: null,
|
|
4242
4243
|
dataType: null,
|
|
4243
4244
|
defaultAction: null,
|
|
4244
|
-
descent:
|
|
4245
|
-
diffuseConstant:
|
|
4245
|
+
descent: i,
|
|
4246
|
+
diffuseConstant: i,
|
|
4246
4247
|
direction: null,
|
|
4247
4248
|
display: null,
|
|
4248
4249
|
dur: null,
|
|
4249
|
-
divisor:
|
|
4250
|
+
divisor: i,
|
|
4250
4251
|
dominantBaseline: null,
|
|
4251
4252
|
download: p,
|
|
4252
4253
|
dx: null,
|
|
4253
4254
|
dy: null,
|
|
4254
4255
|
edgeMode: null,
|
|
4255
4256
|
editable: null,
|
|
4256
|
-
elevation:
|
|
4257
|
+
elevation: i,
|
|
4257
4258
|
enableBackground: null,
|
|
4258
4259
|
end: null,
|
|
4259
4260
|
event: null,
|
|
4260
|
-
exponent:
|
|
4261
|
+
exponent: i,
|
|
4261
4262
|
externalResourcesRequired: null,
|
|
4262
4263
|
fill: null,
|
|
4263
|
-
fillOpacity:
|
|
4264
|
+
fillOpacity: i,
|
|
4264
4265
|
fillRule: null,
|
|
4265
4266
|
filter: null,
|
|
4266
4267
|
filterRes: null,
|
|
@@ -4290,27 +4291,27 @@ const Sn = Y({
|
|
|
4290
4291
|
gradientTransform: null,
|
|
4291
4292
|
gradientUnits: null,
|
|
4292
4293
|
handler: null,
|
|
4293
|
-
hanging:
|
|
4294
|
+
hanging: i,
|
|
4294
4295
|
hatchContentUnits: null,
|
|
4295
4296
|
hatchUnits: null,
|
|
4296
4297
|
height: null,
|
|
4297
4298
|
href: null,
|
|
4298
4299
|
hrefLang: null,
|
|
4299
|
-
horizAdvX:
|
|
4300
|
-
horizOriginX:
|
|
4301
|
-
horizOriginY:
|
|
4300
|
+
horizAdvX: i,
|
|
4301
|
+
horizOriginX: i,
|
|
4302
|
+
horizOriginY: i,
|
|
4302
4303
|
id: null,
|
|
4303
|
-
ideographic:
|
|
4304
|
+
ideographic: i,
|
|
4304
4305
|
imageRendering: null,
|
|
4305
4306
|
initialVisibility: null,
|
|
4306
4307
|
in: null,
|
|
4307
4308
|
in2: null,
|
|
4308
|
-
intercept:
|
|
4309
|
-
k:
|
|
4310
|
-
k1:
|
|
4311
|
-
k2:
|
|
4312
|
-
k3:
|
|
4313
|
-
k4:
|
|
4309
|
+
intercept: i,
|
|
4310
|
+
k: i,
|
|
4311
|
+
k1: i,
|
|
4312
|
+
k2: i,
|
|
4313
|
+
k3: i,
|
|
4314
|
+
k4: i,
|
|
4314
4315
|
kernelMatrix: M,
|
|
4315
4316
|
kernelUnitLength: null,
|
|
4316
4317
|
keyPoints: null,
|
|
@@ -4324,7 +4325,7 @@ const Sn = Y({
|
|
|
4324
4325
|
lengthAdjust: null,
|
|
4325
4326
|
letterSpacing: null,
|
|
4326
4327
|
lightingColor: null,
|
|
4327
|
-
limitingConeAngle:
|
|
4328
|
+
limitingConeAngle: i,
|
|
4328
4329
|
local: null,
|
|
4329
4330
|
markerEnd: null,
|
|
4330
4331
|
markerMid: null,
|
|
@@ -4341,7 +4342,7 @@ const Sn = Y({
|
|
|
4341
4342
|
media: null,
|
|
4342
4343
|
mediaCharacterEncoding: null,
|
|
4343
4344
|
mediaContentEncodings: null,
|
|
4344
|
-
mediaSize:
|
|
4345
|
+
mediaSize: i,
|
|
4345
4346
|
mediaTime: null,
|
|
4346
4347
|
method: null,
|
|
4347
4348
|
min: null,
|
|
@@ -4447,12 +4448,12 @@ const Sn = Y({
|
|
|
4447
4448
|
origin: null,
|
|
4448
4449
|
overflow: null,
|
|
4449
4450
|
overlay: null,
|
|
4450
|
-
overlinePosition:
|
|
4451
|
-
overlineThickness:
|
|
4451
|
+
overlinePosition: i,
|
|
4452
|
+
overlineThickness: i,
|
|
4452
4453
|
paintOrder: null,
|
|
4453
4454
|
panose1: null,
|
|
4454
4455
|
path: null,
|
|
4455
|
-
pathLength:
|
|
4456
|
+
pathLength: i,
|
|
4456
4457
|
patternContentUnits: null,
|
|
4457
4458
|
patternTransform: null,
|
|
4458
4459
|
patternUnits: null,
|
|
@@ -4462,9 +4463,9 @@ const Sn = Y({
|
|
|
4462
4463
|
playbackOrder: null,
|
|
4463
4464
|
pointerEvents: null,
|
|
4464
4465
|
points: null,
|
|
4465
|
-
pointsAtX:
|
|
4466
|
-
pointsAtY:
|
|
4467
|
-
pointsAtZ:
|
|
4466
|
+
pointsAtX: i,
|
|
4467
|
+
pointsAtY: i,
|
|
4468
|
+
pointsAtZ: i,
|
|
4468
4469
|
preserveAlpha: null,
|
|
4469
4470
|
preserveAspectRatio: null,
|
|
4470
4471
|
primitiveUnits: null,
|
|
@@ -4496,8 +4497,8 @@ const Sn = Y({
|
|
|
4496
4497
|
side: null,
|
|
4497
4498
|
slope: null,
|
|
4498
4499
|
snapshotTime: null,
|
|
4499
|
-
specularConstant:
|
|
4500
|
-
specularExponent:
|
|
4500
|
+
specularConstant: i,
|
|
4501
|
+
specularExponent: i,
|
|
4501
4502
|
spreadMethod: null,
|
|
4502
4503
|
spacing: null,
|
|
4503
4504
|
startOffset: null,
|
|
@@ -4507,30 +4508,30 @@ const Sn = Y({
|
|
|
4507
4508
|
stitchTiles: null,
|
|
4508
4509
|
stopColor: null,
|
|
4509
4510
|
stopOpacity: null,
|
|
4510
|
-
strikethroughPosition:
|
|
4511
|
-
strikethroughThickness:
|
|
4511
|
+
strikethroughPosition: i,
|
|
4512
|
+
strikethroughThickness: i,
|
|
4512
4513
|
string: null,
|
|
4513
4514
|
stroke: null,
|
|
4514
4515
|
strokeDashArray: M,
|
|
4515
4516
|
strokeDashOffset: null,
|
|
4516
4517
|
strokeLineCap: null,
|
|
4517
4518
|
strokeLineJoin: null,
|
|
4518
|
-
strokeMiterLimit:
|
|
4519
|
-
strokeOpacity:
|
|
4519
|
+
strokeMiterLimit: i,
|
|
4520
|
+
strokeOpacity: i,
|
|
4520
4521
|
strokeWidth: null,
|
|
4521
4522
|
style: null,
|
|
4522
|
-
surfaceScale:
|
|
4523
|
+
surfaceScale: i,
|
|
4523
4524
|
syncBehavior: null,
|
|
4524
4525
|
syncBehaviorDefault: null,
|
|
4525
4526
|
syncMaster: null,
|
|
4526
4527
|
syncTolerance: null,
|
|
4527
4528
|
syncToleranceDefault: null,
|
|
4528
4529
|
systemLanguage: M,
|
|
4529
|
-
tabIndex:
|
|
4530
|
+
tabIndex: i,
|
|
4530
4531
|
tableValues: null,
|
|
4531
4532
|
target: null,
|
|
4532
|
-
targetX:
|
|
4533
|
-
targetY:
|
|
4533
|
+
targetX: i,
|
|
4534
|
+
targetY: i,
|
|
4534
4535
|
textAnchor: null,
|
|
4535
4536
|
textDecoration: null,
|
|
4536
4537
|
textRendering: null,
|
|
@@ -4545,22 +4546,22 @@ const Sn = Y({
|
|
|
4545
4546
|
transformOrigin: null,
|
|
4546
4547
|
u1: null,
|
|
4547
4548
|
u2: null,
|
|
4548
|
-
underlinePosition:
|
|
4549
|
-
underlineThickness:
|
|
4549
|
+
underlinePosition: i,
|
|
4550
|
+
underlineThickness: i,
|
|
4550
4551
|
unicode: null,
|
|
4551
4552
|
unicodeBidi: null,
|
|
4552
4553
|
unicodeRange: null,
|
|
4553
|
-
unitsPerEm:
|
|
4554
|
+
unitsPerEm: i,
|
|
4554
4555
|
values: null,
|
|
4555
|
-
vAlphabetic:
|
|
4556
|
-
vMathematical:
|
|
4556
|
+
vAlphabetic: i,
|
|
4557
|
+
vMathematical: i,
|
|
4557
4558
|
vectorEffect: null,
|
|
4558
|
-
vHanging:
|
|
4559
|
-
vIdeographic:
|
|
4559
|
+
vHanging: i,
|
|
4560
|
+
vIdeographic: i,
|
|
4560
4561
|
version: null,
|
|
4561
|
-
vertAdvY:
|
|
4562
|
-
vertOriginX:
|
|
4563
|
-
vertOriginY:
|
|
4562
|
+
vertAdvY: i,
|
|
4563
|
+
vertOriginX: i,
|
|
4564
|
+
vertOriginY: i,
|
|
4564
4565
|
viewBox: null,
|
|
4565
4566
|
viewTarget: null,
|
|
4566
4567
|
visibility: null,
|
|
@@ -4572,7 +4573,7 @@ const Sn = Y({
|
|
|
4572
4573
|
x1: null,
|
|
4573
4574
|
x2: null,
|
|
4574
4575
|
xChannelSelector: null,
|
|
4575
|
-
xHeight:
|
|
4576
|
+
xHeight: i,
|
|
4576
4577
|
y: null,
|
|
4577
4578
|
y1: null,
|
|
4578
4579
|
y2: null,
|
|
@@ -4607,20 +4608,20 @@ const Sn = Y({
|
|
|
4607
4608
|
transform(e, n) {
|
|
4608
4609
|
return "xml:" + n.slice(3).toLowerCase();
|
|
4609
4610
|
}
|
|
4610
|
-
}),
|
|
4611
|
-
function
|
|
4611
|
+
}), kn = /[A-Z]/g, Ye = /-[a-z]/g, Tn = /^data[-\w.:]+$/i;
|
|
4612
|
+
function vn(e, n) {
|
|
4612
4613
|
const t = Z(n);
|
|
4613
4614
|
let r = n, a = _;
|
|
4614
4615
|
if (t in e.normal)
|
|
4615
4616
|
return e.property[e.normal[t]];
|
|
4616
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
|
4617
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && Tn.test(n)) {
|
|
4617
4618
|
if (n.charAt(4) === "-") {
|
|
4618
|
-
const o = n.slice(5).replace(Ye,
|
|
4619
|
+
const o = n.slice(5).replace(Ye, Nn);
|
|
4619
4620
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
4620
4621
|
} else {
|
|
4621
4622
|
const o = n.slice(4);
|
|
4622
4623
|
if (!Ye.test(o)) {
|
|
4623
|
-
let s = o.replace(
|
|
4624
|
+
let s = o.replace(kn, Rn);
|
|
4624
4625
|
s.charAt(0) !== "-" && (s = "-" + s), n = "data" + s;
|
|
4625
4626
|
}
|
|
4626
4627
|
}
|
|
@@ -4628,13 +4629,13 @@ function Tn(e, n) {
|
|
|
4628
4629
|
}
|
|
4629
4630
|
return new a(r, n);
|
|
4630
4631
|
}
|
|
4631
|
-
function
|
|
4632
|
+
function Rn(e) {
|
|
4632
4633
|
return "-" + e.toLowerCase();
|
|
4633
4634
|
}
|
|
4634
|
-
function
|
|
4635
|
+
function Nn(e) {
|
|
4635
4636
|
return e.charAt(1).toUpperCase();
|
|
4636
4637
|
}
|
|
4637
|
-
const
|
|
4638
|
+
const In = an([on, wn, un, cn, dn], "html"), xn = an([on, An, un, cn, dn], "svg");
|
|
4638
4639
|
function We(e) {
|
|
4639
4640
|
const n = [], t = String(e || "");
|
|
4640
4641
|
let r = t.indexOf(","), a = 0, o = !1;
|
|
@@ -4646,13 +4647,13 @@ function We(e) {
|
|
|
4646
4647
|
return n;
|
|
4647
4648
|
}
|
|
4648
4649
|
const Ze = /[#.]/g;
|
|
4649
|
-
function
|
|
4650
|
+
function Ln(e, n) {
|
|
4650
4651
|
const t = e || "", r = {};
|
|
4651
4652
|
let a = 0, o, s;
|
|
4652
4653
|
for (; a < t.length; ) {
|
|
4653
4654
|
Ze.lastIndex = a;
|
|
4654
|
-
const
|
|
4655
|
-
u && (o ? o === "#" ? r.id = u : Array.isArray(r.className) ? r.className.push(u) : r.className = [u] : s = u, a += u.length),
|
|
4655
|
+
const l = Ze.exec(t), u = t.slice(a, l ? l.index : t.length);
|
|
4656
|
+
u && (o ? o === "#" ? r.id = u : Array.isArray(r.className) ? r.className.push(u) : r.className = [u] : s = u, a += u.length), l && (o = l[0], a++);
|
|
4656
4657
|
}
|
|
4657
4658
|
return {
|
|
4658
4659
|
type: "element",
|
|
@@ -4667,8 +4668,8 @@ function Ke(e) {
|
|
|
4667
4668
|
return n ? n.split(/[ \t\n\r\f]+/g) : [];
|
|
4668
4669
|
}
|
|
4669
4670
|
function pn(e, n, t) {
|
|
4670
|
-
const r = t ?
|
|
4671
|
-
function a(o, s, ...
|
|
4671
|
+
const r = t ? _n(t) : void 0;
|
|
4672
|
+
function a(o, s, ...l) {
|
|
4672
4673
|
let u;
|
|
4673
4674
|
if (o == null) {
|
|
4674
4675
|
u = { type: "root", children: [] };
|
|
@@ -4676,23 +4677,23 @@ function pn(e, n, t) {
|
|
|
4676
4677
|
/** @type {Child} */
|
|
4677
4678
|
s
|
|
4678
4679
|
);
|
|
4679
|
-
|
|
4680
|
+
l.unshift(c);
|
|
4680
4681
|
} else {
|
|
4681
|
-
u =
|
|
4682
|
+
u = Ln(o, n);
|
|
4682
4683
|
const c = u.tagName.toLowerCase(), f = r ? r.get(c) : void 0;
|
|
4683
|
-
if (u.tagName = f || c,
|
|
4684
|
-
|
|
4684
|
+
if (u.tagName = f || c, On(s))
|
|
4685
|
+
l.unshift(s);
|
|
4685
4686
|
else
|
|
4686
4687
|
for (const [k, A] of Object.entries(s))
|
|
4687
|
-
|
|
4688
|
+
Cn(e, u.properties, k, A);
|
|
4688
4689
|
}
|
|
4689
|
-
for (const c of
|
|
4690
|
+
for (const c of l)
|
|
4690
4691
|
ce(u.children, c);
|
|
4691
4692
|
return u.type === "element" && u.tagName === "template" && (u.content = { type: "root", children: u.children }, u.children = []), u;
|
|
4692
4693
|
}
|
|
4693
4694
|
return a;
|
|
4694
4695
|
}
|
|
4695
|
-
function
|
|
4696
|
+
function On(e) {
|
|
4696
4697
|
if (e === null || typeof e != "object" || Array.isArray(e))
|
|
4697
4698
|
return !0;
|
|
4698
4699
|
if (typeof e.type != "string") return !1;
|
|
@@ -4715,20 +4716,20 @@ function Ln(e) {
|
|
|
4715
4716
|
}
|
|
4716
4717
|
return !!("children" in e && Array.isArray(e.children));
|
|
4717
4718
|
}
|
|
4718
|
-
function
|
|
4719
|
-
const a =
|
|
4719
|
+
function Cn(e, n, t, r) {
|
|
4720
|
+
const a = vn(e, t);
|
|
4720
4721
|
let o;
|
|
4721
4722
|
if (r != null) {
|
|
4722
4723
|
if (typeof r == "number") {
|
|
4723
4724
|
if (Number.isNaN(r)) return;
|
|
4724
4725
|
o = r;
|
|
4725
|
-
} else typeof r == "boolean" ? o = r : typeof r == "string" ? a.spaceSeparated ? o = Ke(r) : a.commaSeparated ? o = We(r) : a.commaOrSpaceSeparated ? o = Ke(We(r).join(" ")) : o = Xe(a, a.property, r) : Array.isArray(r) ? o = [...r] : o = a.property === "style" ?
|
|
4726
|
+
} else typeof r == "boolean" ? o = r : typeof r == "string" ? a.spaceSeparated ? o = Ke(r) : a.commaSeparated ? o = We(r) : a.commaOrSpaceSeparated ? o = Ke(We(r).join(" ")) : o = Xe(a, a.property, r) : Array.isArray(r) ? o = [...r] : o = a.property === "style" ? Dn(r) : String(r);
|
|
4726
4727
|
if (Array.isArray(o)) {
|
|
4727
4728
|
const s = [];
|
|
4728
|
-
for (const
|
|
4729
|
+
for (const l of o)
|
|
4729
4730
|
s.push(
|
|
4730
4731
|
/** @type {number | string} */
|
|
4731
|
-
Xe(a, a.property,
|
|
4732
|
+
Xe(a, a.property, l)
|
|
4732
4733
|
);
|
|
4733
4734
|
o = s;
|
|
4734
4735
|
}
|
|
@@ -4758,19 +4759,19 @@ function Xe(e, n, t) {
|
|
|
4758
4759
|
}
|
|
4759
4760
|
return t;
|
|
4760
4761
|
}
|
|
4761
|
-
function
|
|
4762
|
+
function Dn(e) {
|
|
4762
4763
|
const n = [];
|
|
4763
4764
|
for (const [t, r] of Object.entries(e))
|
|
4764
4765
|
n.push([t, r].join(": "));
|
|
4765
4766
|
return n.join("; ");
|
|
4766
4767
|
}
|
|
4767
|
-
function
|
|
4768
|
+
function _n(e) {
|
|
4768
4769
|
const n = /* @__PURE__ */ new Map();
|
|
4769
4770
|
for (const t of e)
|
|
4770
4771
|
n.set(t.toLowerCase(), t);
|
|
4771
4772
|
return n;
|
|
4772
4773
|
}
|
|
4773
|
-
const
|
|
4774
|
+
const Fn = [
|
|
4774
4775
|
"altGlyph",
|
|
4775
4776
|
"altGlyphDef",
|
|
4776
4777
|
"altGlyphItem",
|
|
@@ -4810,9 +4811,9 @@ const _n = [
|
|
|
4810
4811
|
"solidColor",
|
|
4811
4812
|
"textArea",
|
|
4812
4813
|
"textPath"
|
|
4813
|
-
],
|
|
4814
|
-
pn(
|
|
4815
|
-
const
|
|
4814
|
+
], Mn = pn(In, "div");
|
|
4815
|
+
pn(xn, "g", Fn);
|
|
4816
|
+
const Un = [
|
|
4816
4817
|
"AElig",
|
|
4817
4818
|
"AMP",
|
|
4818
4819
|
"Aacute",
|
|
@@ -4953,16 +4954,16 @@ function gn(e) {
|
|
|
4953
4954
|
const n = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
4954
4955
|
return n >= 48 && n <= 57;
|
|
4955
4956
|
}
|
|
4956
|
-
function
|
|
4957
|
+
function qn(e) {
|
|
4957
4958
|
const n = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
4958
4959
|
return n >= 97 && n <= 102 || n >= 65 && n <= 70 || n >= 48 && n <= 57;
|
|
4959
4960
|
}
|
|
4960
|
-
function
|
|
4961
|
+
function Bn(e) {
|
|
4961
4962
|
const n = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
4962
4963
|
return n >= 97 && n <= 122 || n >= 65 && n <= 90;
|
|
4963
4964
|
}
|
|
4964
4965
|
function Qe(e) {
|
|
4965
|
-
return
|
|
4966
|
+
return Bn(e) || gn(e);
|
|
4966
4967
|
}
|
|
4967
4968
|
const en = {
|
|
4968
4969
|
AElig: "Æ",
|
|
@@ -7091,11 +7092,11 @@ const en = {
|
|
|
7091
7092
|
zscr: "𝓏",
|
|
7092
7093
|
zwj: "",
|
|
7093
7094
|
zwnj: ""
|
|
7094
|
-
},
|
|
7095
|
+
}, $n = {}.hasOwnProperty;
|
|
7095
7096
|
function nn(e) {
|
|
7096
|
-
return
|
|
7097
|
+
return $n.call(en, e) ? en[e] : !1;
|
|
7097
7098
|
}
|
|
7098
|
-
const
|
|
7099
|
+
const Gn = [
|
|
7099
7100
|
"",
|
|
7100
7101
|
/* 1: Non terminated (named) */
|
|
7101
7102
|
"Named character references must be terminated by a semicolon",
|
|
@@ -7112,16 +7113,16 @@ const $n = [
|
|
|
7112
7113
|
/* 7: Prohibited (numeric) */
|
|
7113
7114
|
"Numeric character references cannot be outside the permissible Unicode range"
|
|
7114
7115
|
];
|
|
7115
|
-
function
|
|
7116
|
+
function zn(e, n) {
|
|
7116
7117
|
const t = {}, r = typeof t.additional == "string" ? t.additional.charCodeAt(0) : t.additional, a = [];
|
|
7117
|
-
let o = 0, s = -1,
|
|
7118
|
+
let o = 0, s = -1, l = "", u, c;
|
|
7118
7119
|
t.position && ("start" in t.position || "indent" in t.position ? (c = t.position.indent, u = t.position.start) : u = t.position);
|
|
7119
7120
|
let f = (u ? u.line : 0) || 1, k = (u ? u.column : 0) || 1, A = E(), h;
|
|
7120
7121
|
for (o--; ++o <= e.length; )
|
|
7121
7122
|
if (h === 10 && (k = (c ? c[s] : 0) || 1), h = e.charCodeAt(o), h === 38) {
|
|
7122
7123
|
const S = e.charCodeAt(o + 1);
|
|
7123
7124
|
if (S === 9 || S === 10 || S === 12 || S === 32 || S === 38 || S === 60 || Number.isNaN(S) || r && S === r) {
|
|
7124
|
-
|
|
7125
|
+
l += String.fromCharCode(h), k++;
|
|
7125
7126
|
continue;
|
|
7126
7127
|
}
|
|
7127
7128
|
const R = o + 1;
|
|
@@ -7133,12 +7134,12 @@ function Gn(e, n) {
|
|
|
7133
7134
|
} else
|
|
7134
7135
|
v = "named";
|
|
7135
7136
|
let L = "", O = "", I = "";
|
|
7136
|
-
const G = v === "named" ? Qe : v === "decimal" ? gn :
|
|
7137
|
+
const G = v === "named" ? Qe : v === "decimal" ? gn : qn;
|
|
7137
7138
|
for (g--; ++g <= e.length; ) {
|
|
7138
7139
|
const b = e.charCodeAt(g);
|
|
7139
7140
|
if (!G(b))
|
|
7140
7141
|
break;
|
|
7141
|
-
I += String.fromCharCode(b), v === "named" &&
|
|
7142
|
+
I += String.fromCharCode(b), v === "named" && Un.includes(I) && (L = I, O = nn(I));
|
|
7142
7143
|
}
|
|
7143
7144
|
let F = e.charCodeAt(g) === 59;
|
|
7144
7145
|
if (F) {
|
|
@@ -7155,8 +7156,8 @@ function Gn(e, n) {
|
|
|
7155
7156
|
else if (L !== I && (g = T + L.length, C = 1 + g - T, F = !1), !F) {
|
|
7156
7157
|
const b = L ? 1 : 3;
|
|
7157
7158
|
if (t.attribute) {
|
|
7158
|
-
const
|
|
7159
|
-
|
|
7159
|
+
const B = e.charCodeAt(g);
|
|
7160
|
+
B === 61 ? (m(b, C), O = "") : Qe(B) ? O = "" : m(b, C);
|
|
7160
7161
|
} else
|
|
7161
7162
|
m(b, C);
|
|
7162
7163
|
}
|
|
@@ -7167,15 +7168,15 @@ function Gn(e, n) {
|
|
|
7167
7168
|
I,
|
|
7168
7169
|
v === "hexadecimal" ? 16 : 10
|
|
7169
7170
|
);
|
|
7170
|
-
if (
|
|
7171
|
+
if (Hn(b))
|
|
7171
7172
|
m(7, C), D = "�";
|
|
7172
7173
|
else if (b in Je)
|
|
7173
7174
|
m(6, C), D = Je[b];
|
|
7174
7175
|
else {
|
|
7175
|
-
let
|
|
7176
|
-
|
|
7176
|
+
let B = "";
|
|
7177
|
+
Pn(b) && m(6, C), b > 65535 && (b -= 65536, B += String.fromCharCode(
|
|
7177
7178
|
b >>> 10 | 55296
|
|
7178
|
-
), b = 56320 | b & 1023), D =
|
|
7179
|
+
), b = 56320 | b & 1023), D = B + String.fromCharCode(b);
|
|
7179
7180
|
}
|
|
7180
7181
|
}
|
|
7181
7182
|
if (D) {
|
|
@@ -7188,9 +7189,9 @@ function Gn(e, n) {
|
|
|
7188
7189
|
e.slice(R - 1, g)
|
|
7189
7190
|
), A = b;
|
|
7190
7191
|
} else
|
|
7191
|
-
I = e.slice(R - 1, g),
|
|
7192
|
+
I = e.slice(R - 1, g), l += I, k += I.length, o = g - 1;
|
|
7192
7193
|
} else
|
|
7193
|
-
h === 10 && (f++, s++, k = 0), Number.isNaN(h) ? y() : (
|
|
7194
|
+
h === 10 && (f++, s++, k = 0), Number.isNaN(h) ? y() : (l += String.fromCharCode(h), k++);
|
|
7194
7195
|
return a.join("");
|
|
7195
7196
|
function E() {
|
|
7196
7197
|
return {
|
|
@@ -7203,25 +7204,25 @@ function Gn(e, n) {
|
|
|
7203
7204
|
let T;
|
|
7204
7205
|
t.warning && (T = E(), T.column += R, T.offset += R, t.warning.call(
|
|
7205
7206
|
t.warningContext || void 0,
|
|
7206
|
-
|
|
7207
|
+
Gn[S],
|
|
7207
7208
|
T,
|
|
7208
7209
|
S
|
|
7209
7210
|
));
|
|
7210
7211
|
}
|
|
7211
7212
|
function y() {
|
|
7212
|
-
|
|
7213
|
+
l && (a.push(l), t.text && t.text.call(t.textContext || void 0, l, {
|
|
7213
7214
|
start: A,
|
|
7214
7215
|
end: E()
|
|
7215
|
-
}),
|
|
7216
|
+
}), l = "");
|
|
7216
7217
|
}
|
|
7217
7218
|
}
|
|
7218
|
-
function
|
|
7219
|
+
function Hn(e) {
|
|
7219
7220
|
return e >= 55296 && e <= 57343 || e > 1114111;
|
|
7220
7221
|
}
|
|
7221
|
-
function
|
|
7222
|
+
function Pn(e) {
|
|
7222
7223
|
return e >= 1 && e <= 8 || e === 11 || e >= 13 && e <= 31 || e >= 127 && e <= 159 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534;
|
|
7223
7224
|
}
|
|
7224
|
-
var
|
|
7225
|
+
var Vn = 0, ee = {}, x = {
|
|
7225
7226
|
/**
|
|
7226
7227
|
* A namespace for utility methods.
|
|
7227
7228
|
*
|
|
@@ -7258,7 +7259,7 @@ var Pn = 0, ee = {}, x = {
|
|
|
7258
7259
|
* @returns {number}
|
|
7259
7260
|
*/
|
|
7260
7261
|
objId: function(e) {
|
|
7261
|
-
return e.__id || Object.defineProperty(e, "__id", { value: ++
|
|
7262
|
+
return e.__id || Object.defineProperty(e, "__id", { value: ++Vn }), e.__id;
|
|
7262
7263
|
},
|
|
7263
7264
|
/**
|
|
7264
7265
|
* Creates a deep clone of the given object.
|
|
@@ -7288,8 +7289,8 @@ var Pn = 0, ee = {}, x = {
|
|
|
7288
7289
|
case "Array":
|
|
7289
7290
|
return a = x.util.objId(n), t[a] ? t[a] : (r = [], t[a] = r, /** @type {any} */
|
|
7290
7291
|
n.forEach(
|
|
7291
|
-
function(s,
|
|
7292
|
-
r[
|
|
7292
|
+
function(s, l) {
|
|
7293
|
+
r[l] = e(s, t);
|
|
7293
7294
|
}
|
|
7294
7295
|
), /** @type {any} */
|
|
7295
7296
|
r);
|
|
@@ -7429,8 +7430,8 @@ var Pn = 0, ee = {}, x = {
|
|
|
7429
7430
|
for (var s in a)
|
|
7430
7431
|
if (a.hasOwnProperty(s)) {
|
|
7431
7432
|
if (s == n)
|
|
7432
|
-
for (var
|
|
7433
|
-
t.hasOwnProperty(
|
|
7433
|
+
for (var l in t)
|
|
7434
|
+
t.hasOwnProperty(l) && (o[l] = t[l]);
|
|
7434
7435
|
t.hasOwnProperty(s) || (o[s] = a[s]);
|
|
7435
7436
|
}
|
|
7436
7437
|
var u = r[e];
|
|
@@ -7445,8 +7446,8 @@ var Pn = 0, ee = {}, x = {
|
|
|
7445
7446
|
for (var s in n)
|
|
7446
7447
|
if (n.hasOwnProperty(s)) {
|
|
7447
7448
|
t.call(n, s, n[s], r || s);
|
|
7448
|
-
var
|
|
7449
|
-
u === "Object" && !a[o(
|
|
7449
|
+
var l = n[s], u = x.util.type(l);
|
|
7450
|
+
u === "Object" && !a[o(l)] ? (a[o(l)] = !0, e(l, t, null, a)) : u === "Array" && !a[o(l)] && (a[o(l)] = !0, e(l, t, s, a));
|
|
7450
7451
|
}
|
|
7451
7452
|
}
|
|
7452
7453
|
},
|
|
@@ -7512,8 +7513,8 @@ var Pn = 0, ee = {}, x = {
|
|
|
7512
7513
|
n[r] = t[r];
|
|
7513
7514
|
delete n.rest;
|
|
7514
7515
|
}
|
|
7515
|
-
var a = new
|
|
7516
|
-
return ne(a, a.head, e), fn(e, a, n, a.head, 0),
|
|
7516
|
+
var a = new jn();
|
|
7517
|
+
return ne(a, a.head, e), fn(e, a, n, a.head, 0), Wn(a);
|
|
7517
7518
|
},
|
|
7518
7519
|
/**
|
|
7519
7520
|
* @namespace
|
|
@@ -7571,12 +7572,12 @@ function tn(e, n, t, r) {
|
|
|
7571
7572
|
function fn(e, n, t, r, a, o) {
|
|
7572
7573
|
for (var s in t)
|
|
7573
7574
|
if (!(!t.hasOwnProperty(s) || !t[s])) {
|
|
7574
|
-
var
|
|
7575
|
-
|
|
7576
|
-
for (var u = 0; u <
|
|
7575
|
+
var l = t[s];
|
|
7576
|
+
l = Array.isArray(l) ? l : [l];
|
|
7577
|
+
for (var u = 0; u < l.length; ++u) {
|
|
7577
7578
|
if (o && o.cause == s + "," + u)
|
|
7578
7579
|
return;
|
|
7579
|
-
var c =
|
|
7580
|
+
var c = l[u], f = c.inside, k = !!c.lookbehind, A = !!c.greedy, h = c.alias;
|
|
7580
7581
|
if (A && !c.pattern.global) {
|
|
7581
7582
|
var E = c.pattern.toString().match(/[imsuy]*$/)[0];
|
|
7582
7583
|
c.pattern = RegExp(c.pattern.source, E + "g");
|
|
@@ -7603,14 +7604,14 @@ function fn(e, n, t, r, a, o) {
|
|
|
7603
7604
|
var I = g.index, G = g[0], F = R.slice(0, I), C = R.slice(I + G.length), D = S + R.length;
|
|
7604
7605
|
o && D > o.reach && (o.reach = D);
|
|
7605
7606
|
var b = y.prev;
|
|
7606
|
-
F && (b = ne(n, b, F), S += F.length),
|
|
7607
|
-
var
|
|
7607
|
+
F && (b = ne(n, b, F), S += F.length), Yn(n, b, T);
|
|
7608
|
+
var B = new W(
|
|
7608
7609
|
s,
|
|
7609
7610
|
f ? x.tokenize(G, f) : G,
|
|
7610
7611
|
h,
|
|
7611
7612
|
G
|
|
7612
7613
|
);
|
|
7613
|
-
if (y = ne(n, b,
|
|
7614
|
+
if (y = ne(n, b, B), C && ne(n, y, C), T > 1) {
|
|
7614
7615
|
var V = {
|
|
7615
7616
|
cause: s + "," + u,
|
|
7616
7617
|
reach: D
|
|
@@ -7629,7 +7630,7 @@ function fn(e, n, t, r, a, o) {
|
|
|
7629
7630
|
}
|
|
7630
7631
|
}
|
|
7631
7632
|
}
|
|
7632
|
-
function
|
|
7633
|
+
function jn() {
|
|
7633
7634
|
var e = { value: null, prev: null, next: null }, n = { value: null, prev: e, next: null };
|
|
7634
7635
|
e.next = n, this.head = e, this.tail = n, this.length = 0;
|
|
7635
7636
|
}
|
|
@@ -7637,12 +7638,12 @@ function ne(e, n, t) {
|
|
|
7637
7638
|
var r = n.next, a = { value: t, prev: n, next: r };
|
|
7638
7639
|
return n.next = a, r.prev = a, e.length++, a;
|
|
7639
7640
|
}
|
|
7640
|
-
function
|
|
7641
|
+
function Yn(e, n, t) {
|
|
7641
7642
|
for (var r = n.next, a = 0; a < t && r !== e.tail; a++)
|
|
7642
7643
|
r = r.next;
|
|
7643
7644
|
n.next = r, r.prev = n, e.length -= a;
|
|
7644
7645
|
}
|
|
7645
|
-
function
|
|
7646
|
+
function Wn(e) {
|
|
7646
7647
|
for (var n = [], t = e.head.next; t !== e.tail; )
|
|
7647
7648
|
n.push(t.value), t = t.next;
|
|
7648
7649
|
return n;
|
|
@@ -7652,14 +7653,14 @@ function hn() {
|
|
|
7652
7653
|
}
|
|
7653
7654
|
hn.prototype = bn;
|
|
7654
7655
|
const d = new hn();
|
|
7655
|
-
d.highlight =
|
|
7656
|
-
d.register =
|
|
7657
|
-
d.alias =
|
|
7658
|
-
d.registered =
|
|
7659
|
-
d.listLanguages =
|
|
7660
|
-
d.util.encode =
|
|
7656
|
+
d.highlight = Zn;
|
|
7657
|
+
d.register = Kn;
|
|
7658
|
+
d.alias = Xn;
|
|
7659
|
+
d.registered = Jn;
|
|
7660
|
+
d.listLanguages = Qn;
|
|
7661
|
+
d.util.encode = et;
|
|
7661
7662
|
d.Token.stringify = de;
|
|
7662
|
-
function
|
|
7663
|
+
function Zn(e, n) {
|
|
7663
7664
|
if (typeof e != "string")
|
|
7664
7665
|
throw new TypeError("Expected `string` for `value`, got `" + e + "`");
|
|
7665
7666
|
let t, r;
|
|
@@ -7679,12 +7680,12 @@ function Wn(e, n) {
|
|
|
7679
7680
|
children: bn.highlight.call(d, e, t, r)
|
|
7680
7681
|
};
|
|
7681
7682
|
}
|
|
7682
|
-
function
|
|
7683
|
+
function Kn(e) {
|
|
7683
7684
|
if (typeof e != "function" || !e.displayName)
|
|
7684
7685
|
throw new Error("Expected `function` for `syntax`, got `" + e + "`");
|
|
7685
7686
|
Object.hasOwn(d.languages, e.displayName) || e(d);
|
|
7686
7687
|
}
|
|
7687
|
-
function
|
|
7688
|
+
function Xn(e, n) {
|
|
7688
7689
|
const t = d.languages;
|
|
7689
7690
|
let r = {};
|
|
7690
7691
|
typeof e == "string" ? n && (r[e] = n) : r = e;
|
|
@@ -7692,19 +7693,19 @@ function Kn(e, n) {
|
|
|
7692
7693
|
for (a in r)
|
|
7693
7694
|
if (Object.hasOwn(r, a)) {
|
|
7694
7695
|
const o = r[a], s = typeof o == "string" ? [o] : o;
|
|
7695
|
-
let
|
|
7696
|
-
for (; ++
|
|
7697
|
-
t[s[
|
|
7696
|
+
let l = -1;
|
|
7697
|
+
for (; ++l < s.length; )
|
|
7698
|
+
t[s[l]] = t[a];
|
|
7698
7699
|
}
|
|
7699
7700
|
}
|
|
7700
|
-
function
|
|
7701
|
+
function Jn(e) {
|
|
7701
7702
|
if (typeof e != "string")
|
|
7702
7703
|
throw new TypeError(
|
|
7703
7704
|
"Expected `string` for `aliasOrLanguage`, got `" + e + "`"
|
|
7704
7705
|
);
|
|
7705
7706
|
return Object.hasOwn(d.languages, e);
|
|
7706
7707
|
}
|
|
7707
|
-
function
|
|
7708
|
+
function Qn() {
|
|
7708
7709
|
const e = d.languages, n = [];
|
|
7709
7710
|
let t;
|
|
7710
7711
|
for (t in e)
|
|
@@ -7734,19 +7735,19 @@ function de(e, n) {
|
|
|
7734
7735
|
};
|
|
7735
7736
|
return e.alias && t.classes.push(
|
|
7736
7737
|
...typeof e.alias == "string" ? [e.alias] : e.alias
|
|
7737
|
-
), d.hooks.run("wrap", t),
|
|
7738
|
+
), d.hooks.run("wrap", t), Mn(
|
|
7738
7739
|
t.tag + "." + t.classes.join("."),
|
|
7739
|
-
|
|
7740
|
+
nt(t.attributes),
|
|
7740
7741
|
t.content
|
|
7741
7742
|
);
|
|
7742
7743
|
}
|
|
7743
|
-
function
|
|
7744
|
+
function et(e) {
|
|
7744
7745
|
return e;
|
|
7745
7746
|
}
|
|
7746
|
-
function
|
|
7747
|
+
function nt(e) {
|
|
7747
7748
|
let n;
|
|
7748
7749
|
for (n in e)
|
|
7749
|
-
Object.hasOwn(e, n) && (e[n] =
|
|
7750
|
+
Object.hasOwn(e, n) && (e[n] = zn(e[n]));
|
|
7750
7751
|
return e;
|
|
7751
7752
|
}
|
|
7752
7753
|
d.register($);
|
|
@@ -7785,7 +7786,7 @@ d.register(qe);
|
|
|
7785
7786
|
d.register(Be);
|
|
7786
7787
|
d.register(oe);
|
|
7787
7788
|
d.register($e);
|
|
7788
|
-
function
|
|
7789
|
+
function tt(e) {
|
|
7789
7790
|
const n = e.split(`
|
|
7790
7791
|
`);
|
|
7791
7792
|
let t = Number.POSITIVE_INFINITY;
|
|
@@ -7798,39 +7799,41 @@ function nt(e) {
|
|
|
7798
7799
|
return n.map((a) => a.length > 0 ? a.slice(t) : a).join(`
|
|
7799
7800
|
`).trim();
|
|
7800
7801
|
}
|
|
7801
|
-
function
|
|
7802
|
-
return rn(() =>
|
|
7802
|
+
function rt(e) {
|
|
7803
|
+
return rn(() => tt(e), [e]);
|
|
7803
7804
|
}
|
|
7804
7805
|
function pe(e) {
|
|
7805
7806
|
if (e.type === "root")
|
|
7806
|
-
return /* @__PURE__ */
|
|
7807
|
+
return /* @__PURE__ */ q.jsx(q.Fragment, { children: e.children.map((n, t) => (
|
|
7807
7808
|
// eslint-disable-next-line react/no-array-index-key
|
|
7808
|
-
/* @__PURE__ */
|
|
7809
|
+
/* @__PURE__ */ q.jsx(pe, { ...n }, n.type + t)
|
|
7809
7810
|
)) });
|
|
7810
7811
|
if (e.type === "element" && e.tagName === "span") {
|
|
7811
7812
|
const n = e.properties.className;
|
|
7812
|
-
return !n || !Array.isArray(n) ? null : /* @__PURE__ */
|
|
7813
|
+
return !n || !Array.isArray(n) ? null : /* @__PURE__ */ q.jsx("span", { className: ie(n.includes("operator") && "kakadu-components-1667726031", n.includes("boolean") && "kakadu-components-384894690", n.includes("tag") && "kakadu-components-2912867647", n.includes("number") && "kakadu-components-1802647269", (n.includes("string") || n.includes("attr-value")) && "kakadu-components-3418498183", n.includes("function") && "kakadu-components-3194749274", n.includes("comment") && "kakadu-components-1827768978", n.includes("keyword") && "kakadu-components-2707971154"), children: e.children.map((t, r) => (
|
|
7813
7814
|
// eslint-disable-next-line react/no-array-index-key
|
|
7814
|
-
/* @__PURE__ */
|
|
7815
|
+
/* @__PURE__ */ q.jsx(pe, { ...t }, t.type + r)
|
|
7815
7816
|
)) });
|
|
7816
7817
|
}
|
|
7817
7818
|
return e.type === "text" ? e.value : null;
|
|
7818
7819
|
}
|
|
7819
|
-
function
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7820
|
+
function ut({
|
|
7821
|
+
language: e,
|
|
7822
|
+
footnote: n,
|
|
7823
|
+
isBlock: t,
|
|
7824
|
+
children: r,
|
|
7825
|
+
className: a,
|
|
7826
|
+
innerClassName: o,
|
|
7827
|
+
...s
|
|
7826
7828
|
}) {
|
|
7827
|
-
const
|
|
7828
|
-
return
|
|
7829
|
-
/* @__PURE__ */
|
|
7830
|
-
/* @__PURE__ */
|
|
7831
|
-
|
|
7829
|
+
const l = rt(r), u = rn(() => e ? d.highlight(l, e) : void 0, [l, e]), c = /* @__PURE__ */ q.jsx("code", { className: ie("kakadu-components-1675352502", t ? o : a), ...t ? {} : s, children: u ? /* @__PURE__ */ q.jsx(pe, { ...u }) : l });
|
|
7830
|
+
return t ? /* @__PURE__ */ q.jsxs("div", { className: ie("kakadu-components-663285900", a), children: [
|
|
7831
|
+
/* @__PURE__ */ q.jsx("pre", { className: "kakadu-components-1531276427", ...s, children: c }),
|
|
7832
|
+
/* @__PURE__ */ q.jsx("div", { className: "kakadu-components-3176325287", children: /* @__PURE__ */ q.jsx(yn, { value: l }) }),
|
|
7833
|
+
n ? /* @__PURE__ */ q.jsx(En, { children: n }) : null
|
|
7834
|
+
] }) : c;
|
|
7832
7835
|
}
|
|
7833
7836
|
export {
|
|
7834
|
-
|
|
7835
|
-
|
|
7837
|
+
ut as default,
|
|
7838
|
+
tt as formatCode
|
|
7836
7839
|
};
|