@docfuse/markdown 0.1.0
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/LICENSE +21 -0
- package/README.md +50 -0
- package/README.zh-CN.md +50 -0
- package/dist/Markdown-D33gcJbF.js +2116 -0
- package/dist/base.css +2 -0
- package/dist/client/chunks/client-DIoaSmq2.js +334 -0
- package/dist/client/chunks/gallery-BPqV7HsS.js +40 -0
- package/dist/client/chunks/image-BGExZy1g.js +36 -0
- package/dist/client/chunks/provider-DL6V8F7z.js +841 -0
- package/dist/client/chunks/react-runtime-ByABE9MG.js +10571 -0
- package/dist/client/chunks/serialized-BvfsNeRQ.js +3464 -0
- package/dist/client/chunks/table-DBiKAEbC.js +30 -0
- package/dist/client/index.js +4 -0
- package/dist/client/nativeBehaviors.d.ts +4 -0
- package/dist/client.d.ts +15 -0
- package/dist/compiler/analyze.d.ts +27 -0
- package/dist/compiler/assets.d.ts +29 -0
- package/dist/compiler/ast.d.ts +68 -0
- package/dist/compiler/createPipeline.d.ts +18 -0
- package/dist/compiler/defaultLabels.d.ts +28 -0
- package/dist/compiler/directiveValidation.d.ts +17 -0
- package/dist/compiler/highlighter.d.ts +3 -0
- package/dist/compiler/mdxModules.d.ts +19 -0
- package/dist/compiler/mdxPlugins.d.ts +16 -0
- package/dist/compiler/normalizeOptions.d.ts +16 -0
- package/dist/compiler/pluginPlan.d.ts +18 -0
- package/dist/compiler/plugins/code.d.ts +16 -0
- package/dist/compiler/plugins/directives.d.ts +24 -0
- package/dist/compiler/plugins/documentBlocks.d.ts +5 -0
- package/dist/compiler/plugins/tables.d.ts +5 -0
- package/dist/compiler/plugins.d.ts +24 -0
- package/dist/compiler/prepareMarkdown.d.ts +11 -0
- package/dist/compiler/sanitizeBoundary.d.ts +18 -0
- package/dist/compiler/stableJson.d.ts +2 -0
- package/dist/compiler/syntaxFeatures.d.ts +10 -0
- package/dist/compiler/types.d.ts +177 -0
- package/dist/components/blocks/MarkdownCodeBlock.d.ts +10 -0
- package/dist/components/blocks/MarkdownCopySnippet.d.ts +10 -0
- package/dist/components/blocks/MarkdownHeading.d.ts +13 -0
- package/dist/components/blocks/MarkdownImage.d.ts +16 -0
- package/dist/components/blocks/MarkdownTable.d.ts +12 -0
- package/dist/components/blocks/MarkdownTerminal.d.ts +9 -0
- package/dist/components/composite/MarkdownComposite.d.ts +37 -0
- package/dist/components/composite/MarkdownFileTree.d.ts +5 -0
- package/dist/components/composite/MarkdownTabs.d.ts +6 -0
- package/dist/components/gallery/ImageGallery.d.ts +25 -0
- package/dist/components/shared/MarkdownActions.d.ts +18 -0
- package/dist/components/shared/MarkdownDialog.d.ts +11 -0
- package/dist/components/shared/MarkdownFileIcon.d.ts +4 -0
- package/dist/components/shared/MarkdownIcon.d.ts +8 -0
- package/dist/components/shared/interactionConstants.d.ts +1 -0
- package/dist/components/shared/reactText.d.ts +14 -0
- package/dist/directiveValidation-BdIao7Yn.js +741 -0
- package/dist/file-icons/LICENSE +21 -0
- package/dist/file-icons/astro.svg +1 -0
- package/dist/file-icons/bun.svg +1 -0
- package/dist/file-icons/bun_light.svg +1 -0
- package/dist/file-icons/config.svg +1 -0
- package/dist/file-icons/console.svg +1 -0
- package/dist/file-icons/css.svg +1 -0
- package/dist/file-icons/database.svg +1 -0
- package/dist/file-icons/deno.svg +1 -0
- package/dist/file-icons/deno_light.svg +1 -0
- package/dist/file-icons/diff.svg +1 -0
- package/dist/file-icons/docker.svg +1 -0
- package/dist/file-icons/document.svg +1 -0
- package/dist/file-icons/download.svg +1 -0
- package/dist/file-icons/environment.svg +1 -0
- package/dist/file-icons/excel.svg +1 -0
- package/dist/file-icons/git.svg +1 -0
- package/dist/file-icons/github-actions.svg +1 -0
- package/dist/file-icons/go.svg +1 -0
- package/dist/file-icons/javascript.svg +1 -0
- package/dist/file-icons/json.svg +1 -0
- package/dist/file-icons/markdown.svg +1 -0
- package/dist/file-icons/nodejs.svg +1 -0
- package/dist/file-icons/npm.svg +1 -0
- package/dist/file-icons/pdf.svg +1 -0
- package/dist/file-icons/pnpm.svg +1 -0
- package/dist/file-icons/pnpm_light.svg +1 -0
- package/dist/file-icons/powerpoint.svg +1 -0
- package/dist/file-icons/python.svg +1 -0
- package/dist/file-icons/react.svg +1 -0
- package/dist/file-icons/rust.svg +1 -0
- package/dist/file-icons/sass.svg +1 -0
- package/dist/file-icons/settings.svg +1 -0
- package/dist/file-icons/svelte.svg +1 -0
- package/dist/file-icons/typescript.svg +1 -0
- package/dist/file-icons/vue.svg +1 -0
- package/dist/file-icons/word.svg +1 -0
- package/dist/file-icons/yaml.svg +1 -0
- package/dist/file-icons/yarn.svg +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +6 -0
- package/dist/islands/gallery.d.ts +2 -0
- package/dist/islands/image.d.ts +2 -0
- package/dist/islands/options.d.ts +8 -0
- package/dist/islands/provider.d.ts +4 -0
- package/dist/islands/serialized.d.ts +4 -0
- package/dist/islands/table.d.ts +2 -0
- package/dist/islands.d.ts +13 -0
- package/dist/plugins-DQ-VUuCT.js +288 -0
- package/dist/prepareMarkdown-CHqN2JF5.js +852 -0
- package/dist/protocol/serializedNode.d.ts +3 -0
- package/dist/react/Markdown.d.ts +54 -0
- package/dist/react/componentMap.d.ts +172 -0
- package/dist/react/semanticOverrideProps.d.ts +4 -0
- package/dist/react/slots.d.ts +39 -0
- package/dist/react/urlTransform.d.ts +12 -0
- package/dist/server/analyze.d.ts +6 -0
- package/dist/server/analyze.js +132 -0
- package/dist/server/cache.d.ts +16 -0
- package/dist/server/createMarkdownRenderer.d.ts +39 -0
- package/dist/server.d.ts +5 -0
- package/dist/server.js +137 -0
- package/dist/shared/copyText.d.ts +2 -0
- package/dist/shared/fileKinds.d.ts +6 -0
- package/dist/theme.css +183 -0
- package/dist/theme.d.ts +167 -0
- package/dist/theme.js +228 -0
- package/package.json +110 -0
|
@@ -0,0 +1,3464 @@
|
|
|
1
|
+
import { r as c, j as s, g as qn } from "./react-runtime-ByABE9MG.js";
|
|
2
|
+
import { c as re, u as Xn, t as Gn, g as Cn, a as Jn, e as V, s as h, D as T, b as wn, m as G, d as Q, M as En, f as W, r as X, h as ne, i as we, j as Yn, I as Le, k as Zn, l as De } from "./provider-DL6V8F7z.js";
|
|
3
|
+
import { c as jn } from "./client-DIoaSmq2.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v1.31.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const Qn = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], et = re("check", Qn);
|
|
11
|
+
/**
|
|
12
|
+
* @license lucide-react v1.31.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
const nt = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], tt = re("chevron-down", nt);
|
|
18
|
+
/**
|
|
19
|
+
* @license lucide-react v1.31.0 - ISC
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the ISC license.
|
|
22
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
24
|
+
const at = [
|
|
25
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
26
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
27
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
28
|
+
], lt = re("circle-alert", at);
|
|
29
|
+
/**
|
|
30
|
+
* @license lucide-react v1.31.0 - ISC
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the ISC license.
|
|
33
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/
|
|
35
|
+
const ot = [
|
|
36
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
37
|
+
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
38
|
+
], rt = re("circle-check", ot);
|
|
39
|
+
/**
|
|
40
|
+
* @license lucide-react v1.31.0 - ISC
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the ISC license.
|
|
43
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/
|
|
45
|
+
const it = [
|
|
46
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
47
|
+
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
48
|
+
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
49
|
+
], st = re("info", it);
|
|
50
|
+
/**
|
|
51
|
+
* @license lucide-react v1.31.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/
|
|
56
|
+
const ct = [
|
|
57
|
+
[
|
|
58
|
+
"path",
|
|
59
|
+
{
|
|
60
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
61
|
+
key: "wmoenq"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
65
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
66
|
+
], dt = re("triangle-alert", ct);
|
|
67
|
+
function Ne(e) {
|
|
68
|
+
return e.type === "root" ? ["r", e.children.map(Ne)] : e.type === "element" ? ["e", e.tagName, e.properties, e.children.map(Ne)] : e.type === "comment" ? ["c", e.value] : ["t", "value" in e ? String(e.value) : ""];
|
|
69
|
+
}
|
|
70
|
+
function Me(e) {
|
|
71
|
+
return e[0] === "r" ? { type: "root", children: e[1].map(Me) } : e[0] === "e" ? {
|
|
72
|
+
type: "element",
|
|
73
|
+
tagName: e[1],
|
|
74
|
+
properties: e[2],
|
|
75
|
+
children: e[3].map(Me)
|
|
76
|
+
} : e[0] === "c" ? { type: "comment", value: e[1] } : { type: "text", value: e[1] };
|
|
77
|
+
}
|
|
78
|
+
function Te(e) {
|
|
79
|
+
return Array.isArray(e) ? e[0] === "r" ? e.length === 2 && Array.isArray(e[1]) && e[1].every(Te) : e[0] === "e" ? e.length === 4 && typeof e[1] == "string" && !!e[2] && typeof e[2] == "object" && !Array.isArray(e[2]) && Array.isArray(e[3]) && e[3].every(Te) : (e[0] === "t" || e[0] === "c") && e.length === 2 && typeof e[1] == "string" : !1;
|
|
80
|
+
}
|
|
81
|
+
function ut(e) {
|
|
82
|
+
try {
|
|
83
|
+
return !e || typeof e != "object" || typeof e.type != "string" ? void 0 : JSON.stringify(Ne(e));
|
|
84
|
+
} catch {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function Sn(e) {
|
|
89
|
+
try {
|
|
90
|
+
const n = JSON.parse(e ?? "null");
|
|
91
|
+
return Te(n) ? Me(n) : void 0;
|
|
92
|
+
} catch {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function Re({
|
|
97
|
+
children: e,
|
|
98
|
+
node: n,
|
|
99
|
+
src: t,
|
|
100
|
+
alt: a,
|
|
101
|
+
caption: o,
|
|
102
|
+
title: l,
|
|
103
|
+
width: r,
|
|
104
|
+
height: i,
|
|
105
|
+
loading: d,
|
|
106
|
+
srcSet: f,
|
|
107
|
+
sizes: p,
|
|
108
|
+
zoomLabel: m,
|
|
109
|
+
closeLabel: k,
|
|
110
|
+
inner: b = !1,
|
|
111
|
+
...N
|
|
112
|
+
}) {
|
|
113
|
+
const j = N, C = Xn(), g = t && C ? C(t, "src") : t, S = f && C ? Gn(f, C) : f, y = Cn(Jn()), A = c.Children.toArray(e).find(
|
|
114
|
+
(Z) => c.isValidElement(Z) && V(Z) === "img"
|
|
115
|
+
), P = c.Children.toArray(e).find((Z) => {
|
|
116
|
+
if (!c.isValidElement(Z)) return !1;
|
|
117
|
+
const le = Z;
|
|
118
|
+
return V(le) === "figcaption" || le.props["data-df-slot"] === "caption";
|
|
119
|
+
}), R = m || h(j, "data-df-zoom-label", "dataDfZoomLabel") || T.zoomImage, I = k || h(j, "data-df-close-label", "dataDfCloseLabel") || T.closeImagePreview, [L, B] = c.useState(!1), O = c.useRef(null), D = c.useRef(null), z = c.useRef(null), q = () => B(!1), E = wn({
|
|
120
|
+
open: L,
|
|
121
|
+
close: q,
|
|
122
|
+
dialogRef: z,
|
|
123
|
+
initialFocusRef: D,
|
|
124
|
+
triggerRef: O
|
|
125
|
+
}), x = A ?? (g ? /* @__PURE__ */ s.jsx(
|
|
126
|
+
"img",
|
|
127
|
+
{
|
|
128
|
+
src: g,
|
|
129
|
+
alt: a ?? "",
|
|
130
|
+
title: l,
|
|
131
|
+
width: r,
|
|
132
|
+
height: i,
|
|
133
|
+
loading: d,
|
|
134
|
+
srcSet: S,
|
|
135
|
+
sizes: p,
|
|
136
|
+
"data-df-element": "image"
|
|
137
|
+
}
|
|
138
|
+
) : null), _ = P ?? (o ? /* @__PURE__ */ s.jsx("figcaption", { "data-df-slot": "caption", children: o }) : null), Y = G("df-media-frame", j.className), { className: he, ...ge } = Q(j);
|
|
139
|
+
if (!x)
|
|
140
|
+
return b ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx("figure", { ...ge, className: Y, "data-df-component": "image", "data-df-slot": "root", children: e });
|
|
141
|
+
const ye = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
142
|
+
/* @__PURE__ */ s.jsx(
|
|
143
|
+
"button",
|
|
144
|
+
{
|
|
145
|
+
ref: O,
|
|
146
|
+
className: "df-media-zoom",
|
|
147
|
+
type: "button",
|
|
148
|
+
"data-df-action": "zoom-image",
|
|
149
|
+
"data-df-slot": "action",
|
|
150
|
+
"aria-label": R,
|
|
151
|
+
"aria-haspopup": "dialog",
|
|
152
|
+
title: R,
|
|
153
|
+
onClick: () => B(!0),
|
|
154
|
+
children: x
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
_ ? y ? /* @__PURE__ */ s.jsx(y, { ..._.props, "data-df-slot": "caption", children: _.props.children }) : /* @__PURE__ */ s.jsx("figcaption", { "data-df-slot": "caption", children: _.props.children }) : null,
|
|
158
|
+
L ? /* @__PURE__ */ s.jsx(En, { children: /* @__PURE__ */ s.jsxs(
|
|
159
|
+
"div",
|
|
160
|
+
{
|
|
161
|
+
ref: z,
|
|
162
|
+
className: "df-image-lightbox",
|
|
163
|
+
"data-df-slot": "lightbox",
|
|
164
|
+
role: "dialog",
|
|
165
|
+
"aria-modal": "true",
|
|
166
|
+
"aria-label": R,
|
|
167
|
+
tabIndex: -1,
|
|
168
|
+
onKeyDown: E,
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ s.jsx(
|
|
171
|
+
"div",
|
|
172
|
+
{
|
|
173
|
+
className: "df-image-lightbox-backdrop",
|
|
174
|
+
"data-df-action": "close-image",
|
|
175
|
+
"aria-hidden": "true",
|
|
176
|
+
onClick: q
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
/* @__PURE__ */ s.jsxs("div", { className: "df-image-lightbox-card", children: [
|
|
180
|
+
/* @__PURE__ */ s.jsx(
|
|
181
|
+
"button",
|
|
182
|
+
{
|
|
183
|
+
ref: D,
|
|
184
|
+
className: "df-icon-button df-image-lightbox-close",
|
|
185
|
+
type: "button",
|
|
186
|
+
"data-df-action": "close-image",
|
|
187
|
+
"data-df-slot": "close",
|
|
188
|
+
"aria-label": I,
|
|
189
|
+
onClick: q,
|
|
190
|
+
children: /* @__PURE__ */ s.jsx(W, { name: "close" })
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
c.cloneElement(x, { loading: "eager" }),
|
|
194
|
+
_ ? /* @__PURE__ */ s.jsx("p", { children: X(_.props.children) }) : null
|
|
195
|
+
] })
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
) }) : null
|
|
199
|
+
] });
|
|
200
|
+
return b ? ye : /* @__PURE__ */ s.jsx(
|
|
201
|
+
"figure",
|
|
202
|
+
{
|
|
203
|
+
...ge,
|
|
204
|
+
className: Y,
|
|
205
|
+
"data-df-component": "image",
|
|
206
|
+
"data-df-slot": "root",
|
|
207
|
+
"data-df-island": "image",
|
|
208
|
+
"data-df-zoom-label": R,
|
|
209
|
+
"data-df-close-label": I,
|
|
210
|
+
"data-df-island-data": ut(n),
|
|
211
|
+
children: ye
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
function ft(e, n) {
|
|
216
|
+
const t = {};
|
|
217
|
+
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
218
|
+
(t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
|
|
219
|
+
).trim();
|
|
220
|
+
}
|
|
221
|
+
const pt = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, mt = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, ht = {};
|
|
222
|
+
function on(e, n) {
|
|
223
|
+
return (ht.jsx ? mt : pt).test(e);
|
|
224
|
+
}
|
|
225
|
+
const gt = /[ \t\n\f\r]/g;
|
|
226
|
+
function yt(e) {
|
|
227
|
+
return typeof e == "object" ? e.type === "text" ? rn(e.value) : !1 : rn(e);
|
|
228
|
+
}
|
|
229
|
+
function rn(e) {
|
|
230
|
+
return e.replace(gt, "") === "";
|
|
231
|
+
}
|
|
232
|
+
class me {
|
|
233
|
+
/**
|
|
234
|
+
* @param {SchemaType['property']} property
|
|
235
|
+
* Property.
|
|
236
|
+
* @param {SchemaType['normal']} normal
|
|
237
|
+
* Normal.
|
|
238
|
+
* @param {Space | undefined} [space]
|
|
239
|
+
* Space.
|
|
240
|
+
* @returns
|
|
241
|
+
* Schema.
|
|
242
|
+
*/
|
|
243
|
+
constructor(n, t, a) {
|
|
244
|
+
this.normal = t, this.property = n, a && (this.space = a);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
me.prototype.normal = {};
|
|
248
|
+
me.prototype.property = {};
|
|
249
|
+
me.prototype.space = void 0;
|
|
250
|
+
function Ln(e, n) {
|
|
251
|
+
const t = {}, a = {};
|
|
252
|
+
for (const o of e)
|
|
253
|
+
Object.assign(t, o.property), Object.assign(a, o.normal);
|
|
254
|
+
return new me(t, a, n);
|
|
255
|
+
}
|
|
256
|
+
function Ae(e) {
|
|
257
|
+
return e.toLowerCase();
|
|
258
|
+
}
|
|
259
|
+
class H {
|
|
260
|
+
/**
|
|
261
|
+
* @param {string} property
|
|
262
|
+
* Property.
|
|
263
|
+
* @param {string} attribute
|
|
264
|
+
* Attribute.
|
|
265
|
+
* @returns
|
|
266
|
+
* Info.
|
|
267
|
+
*/
|
|
268
|
+
constructor(n, t) {
|
|
269
|
+
this.attribute = t, this.property = n;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
H.prototype.attribute = "";
|
|
273
|
+
H.prototype.booleanish = !1;
|
|
274
|
+
H.prototype.boolean = !1;
|
|
275
|
+
H.prototype.commaOrSpaceSeparated = !1;
|
|
276
|
+
H.prototype.commaSeparated = !1;
|
|
277
|
+
H.prototype.defined = !1;
|
|
278
|
+
H.prototype.mustUseProperty = !1;
|
|
279
|
+
H.prototype.number = !1;
|
|
280
|
+
H.prototype.overloadedBoolean = !1;
|
|
281
|
+
H.prototype.property = "";
|
|
282
|
+
H.prototype.spaceSeparated = !1;
|
|
283
|
+
H.prototype.space = void 0;
|
|
284
|
+
let bt = 0;
|
|
285
|
+
const v = te(), F = te(), Pe = te(), u = te(), M = te(), ee = te(), K = te();
|
|
286
|
+
function te() {
|
|
287
|
+
return 2 ** ++bt;
|
|
288
|
+
}
|
|
289
|
+
const Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
290
|
+
__proto__: null,
|
|
291
|
+
boolean: v,
|
|
292
|
+
booleanish: F,
|
|
293
|
+
commaOrSpaceSeparated: K,
|
|
294
|
+
commaSeparated: ee,
|
|
295
|
+
number: u,
|
|
296
|
+
overloadedBoolean: Pe,
|
|
297
|
+
spaceSeparated: M
|
|
298
|
+
}, Symbol.toStringTag, { value: "Module" })), Ee = (
|
|
299
|
+
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
300
|
+
Object.keys(Ie)
|
|
301
|
+
);
|
|
302
|
+
class Ye extends H {
|
|
303
|
+
/**
|
|
304
|
+
* @constructor
|
|
305
|
+
* @param {string} property
|
|
306
|
+
* Property.
|
|
307
|
+
* @param {string} attribute
|
|
308
|
+
* Attribute.
|
|
309
|
+
* @param {number | null | undefined} [mask]
|
|
310
|
+
* Mask.
|
|
311
|
+
* @param {Space | undefined} [space]
|
|
312
|
+
* Space.
|
|
313
|
+
* @returns
|
|
314
|
+
* Info.
|
|
315
|
+
*/
|
|
316
|
+
constructor(n, t, a, o) {
|
|
317
|
+
let l = -1;
|
|
318
|
+
if (super(n, t), sn(this, "space", o), typeof a == "number")
|
|
319
|
+
for (; ++l < Ee.length; ) {
|
|
320
|
+
const r = Ee[l];
|
|
321
|
+
sn(this, Ee[l], (a & Ie[r]) === Ie[r]);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
Ye.prototype.defined = !0;
|
|
326
|
+
function sn(e, n, t) {
|
|
327
|
+
t && (e[n] = t);
|
|
328
|
+
}
|
|
329
|
+
function ie(e) {
|
|
330
|
+
const n = {}, t = {};
|
|
331
|
+
for (const [a, o] of Object.entries(e.properties)) {
|
|
332
|
+
const l = new Ye(
|
|
333
|
+
a,
|
|
334
|
+
e.transform(e.attributes || {}, a),
|
|
335
|
+
o,
|
|
336
|
+
e.space
|
|
337
|
+
);
|
|
338
|
+
e.mustUseProperty && e.mustUseProperty.includes(a) && (l.mustUseProperty = !0), n[a] = l, t[Ae(a)] = a, t[Ae(l.attribute)] = a;
|
|
339
|
+
}
|
|
340
|
+
return new me(n, t, e.space);
|
|
341
|
+
}
|
|
342
|
+
const Dn = ie({
|
|
343
|
+
properties: {
|
|
344
|
+
ariaActiveDescendant: null,
|
|
345
|
+
ariaAtomic: F,
|
|
346
|
+
ariaAutoComplete: null,
|
|
347
|
+
ariaBusy: F,
|
|
348
|
+
ariaChecked: F,
|
|
349
|
+
ariaColCount: u,
|
|
350
|
+
ariaColIndex: u,
|
|
351
|
+
ariaColSpan: u,
|
|
352
|
+
ariaControls: M,
|
|
353
|
+
ariaCurrent: null,
|
|
354
|
+
ariaDescribedBy: M,
|
|
355
|
+
ariaDetails: null,
|
|
356
|
+
ariaDisabled: F,
|
|
357
|
+
ariaDropEffect: M,
|
|
358
|
+
ariaErrorMessage: null,
|
|
359
|
+
ariaExpanded: F,
|
|
360
|
+
ariaFlowTo: M,
|
|
361
|
+
ariaGrabbed: F,
|
|
362
|
+
ariaHasPopup: null,
|
|
363
|
+
ariaHidden: F,
|
|
364
|
+
ariaInvalid: null,
|
|
365
|
+
ariaKeyShortcuts: null,
|
|
366
|
+
ariaLabel: null,
|
|
367
|
+
ariaLabelledBy: M,
|
|
368
|
+
ariaLevel: u,
|
|
369
|
+
ariaLive: null,
|
|
370
|
+
ariaModal: F,
|
|
371
|
+
ariaMultiLine: F,
|
|
372
|
+
ariaMultiSelectable: F,
|
|
373
|
+
ariaOrientation: null,
|
|
374
|
+
ariaOwns: M,
|
|
375
|
+
ariaPlaceholder: null,
|
|
376
|
+
ariaPosInSet: u,
|
|
377
|
+
ariaPressed: F,
|
|
378
|
+
ariaReadOnly: F,
|
|
379
|
+
ariaRelevant: null,
|
|
380
|
+
ariaRequired: F,
|
|
381
|
+
ariaRoleDescription: M,
|
|
382
|
+
ariaRowCount: u,
|
|
383
|
+
ariaRowIndex: u,
|
|
384
|
+
ariaRowSpan: u,
|
|
385
|
+
ariaSelected: F,
|
|
386
|
+
ariaSetSize: u,
|
|
387
|
+
ariaSort: null,
|
|
388
|
+
ariaValueMax: u,
|
|
389
|
+
ariaValueMin: u,
|
|
390
|
+
ariaValueNow: u,
|
|
391
|
+
ariaValueText: null,
|
|
392
|
+
role: null
|
|
393
|
+
},
|
|
394
|
+
transform(e, n) {
|
|
395
|
+
return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
function Nn(e, n) {
|
|
399
|
+
return n in e ? e[n] : n;
|
|
400
|
+
}
|
|
401
|
+
function Mn(e, n) {
|
|
402
|
+
return Nn(e, n.toLowerCase());
|
|
403
|
+
}
|
|
404
|
+
const vt = ie({
|
|
405
|
+
attributes: {
|
|
406
|
+
acceptcharset: "accept-charset",
|
|
407
|
+
classname: "class",
|
|
408
|
+
htmlfor: "for",
|
|
409
|
+
httpequiv: "http-equiv"
|
|
410
|
+
},
|
|
411
|
+
mustUseProperty: ["checked", "multiple", "muted", "selected"],
|
|
412
|
+
properties: {
|
|
413
|
+
// Standard Properties.
|
|
414
|
+
abbr: null,
|
|
415
|
+
accept: ee,
|
|
416
|
+
acceptCharset: M,
|
|
417
|
+
accessKey: M,
|
|
418
|
+
action: null,
|
|
419
|
+
allow: null,
|
|
420
|
+
allowFullScreen: v,
|
|
421
|
+
allowPaymentRequest: v,
|
|
422
|
+
allowUserMedia: v,
|
|
423
|
+
alpha: v,
|
|
424
|
+
alt: null,
|
|
425
|
+
as: null,
|
|
426
|
+
async: v,
|
|
427
|
+
autoCapitalize: null,
|
|
428
|
+
autoComplete: M,
|
|
429
|
+
autoFocus: v,
|
|
430
|
+
autoPlay: v,
|
|
431
|
+
blocking: M,
|
|
432
|
+
capture: null,
|
|
433
|
+
charSet: null,
|
|
434
|
+
checked: v,
|
|
435
|
+
cite: null,
|
|
436
|
+
className: M,
|
|
437
|
+
closedBy: null,
|
|
438
|
+
colorSpace: null,
|
|
439
|
+
cols: u,
|
|
440
|
+
colSpan: u,
|
|
441
|
+
command: null,
|
|
442
|
+
commandFor: null,
|
|
443
|
+
content: null,
|
|
444
|
+
contentEditable: F,
|
|
445
|
+
controls: v,
|
|
446
|
+
controlsList: M,
|
|
447
|
+
coords: u | ee,
|
|
448
|
+
crossOrigin: null,
|
|
449
|
+
data: null,
|
|
450
|
+
dateTime: null,
|
|
451
|
+
decoding: null,
|
|
452
|
+
default: v,
|
|
453
|
+
defer: v,
|
|
454
|
+
dir: null,
|
|
455
|
+
dirName: null,
|
|
456
|
+
disabled: v,
|
|
457
|
+
download: Pe,
|
|
458
|
+
draggable: F,
|
|
459
|
+
encType: null,
|
|
460
|
+
enterKeyHint: null,
|
|
461
|
+
fetchPriority: null,
|
|
462
|
+
form: null,
|
|
463
|
+
formAction: null,
|
|
464
|
+
formEncType: null,
|
|
465
|
+
formMethod: null,
|
|
466
|
+
formNoValidate: v,
|
|
467
|
+
formTarget: null,
|
|
468
|
+
headers: M,
|
|
469
|
+
height: u,
|
|
470
|
+
hidden: Pe,
|
|
471
|
+
high: u,
|
|
472
|
+
href: null,
|
|
473
|
+
hrefLang: null,
|
|
474
|
+
htmlFor: M,
|
|
475
|
+
httpEquiv: M,
|
|
476
|
+
id: null,
|
|
477
|
+
imageSizes: null,
|
|
478
|
+
imageSrcSet: null,
|
|
479
|
+
inert: v,
|
|
480
|
+
inputMode: null,
|
|
481
|
+
integrity: null,
|
|
482
|
+
is: null,
|
|
483
|
+
isMap: v,
|
|
484
|
+
itemId: null,
|
|
485
|
+
itemProp: M,
|
|
486
|
+
itemRef: M,
|
|
487
|
+
itemScope: v,
|
|
488
|
+
itemType: M,
|
|
489
|
+
kind: null,
|
|
490
|
+
label: null,
|
|
491
|
+
lang: null,
|
|
492
|
+
language: null,
|
|
493
|
+
list: null,
|
|
494
|
+
loading: null,
|
|
495
|
+
loop: v,
|
|
496
|
+
low: u,
|
|
497
|
+
manifest: null,
|
|
498
|
+
max: null,
|
|
499
|
+
maxLength: u,
|
|
500
|
+
media: null,
|
|
501
|
+
method: null,
|
|
502
|
+
min: null,
|
|
503
|
+
minLength: u,
|
|
504
|
+
multiple: v,
|
|
505
|
+
muted: v,
|
|
506
|
+
name: null,
|
|
507
|
+
nonce: null,
|
|
508
|
+
noModule: v,
|
|
509
|
+
noValidate: v,
|
|
510
|
+
onAbort: null,
|
|
511
|
+
onAfterPrint: null,
|
|
512
|
+
onAuxClick: null,
|
|
513
|
+
onBeforeMatch: null,
|
|
514
|
+
onBeforePrint: null,
|
|
515
|
+
onBeforeToggle: null,
|
|
516
|
+
onBeforeUnload: null,
|
|
517
|
+
onBlur: null,
|
|
518
|
+
onCancel: null,
|
|
519
|
+
onCanPlay: null,
|
|
520
|
+
onCanPlayThrough: null,
|
|
521
|
+
onChange: null,
|
|
522
|
+
onClick: null,
|
|
523
|
+
onClose: null,
|
|
524
|
+
onContextLost: null,
|
|
525
|
+
onContextMenu: null,
|
|
526
|
+
onContextRestored: null,
|
|
527
|
+
onCopy: null,
|
|
528
|
+
onCueChange: null,
|
|
529
|
+
onCut: null,
|
|
530
|
+
onDblClick: null,
|
|
531
|
+
onDrag: null,
|
|
532
|
+
onDragEnd: null,
|
|
533
|
+
onDragEnter: null,
|
|
534
|
+
onDragExit: null,
|
|
535
|
+
onDragLeave: null,
|
|
536
|
+
onDragOver: null,
|
|
537
|
+
onDragStart: null,
|
|
538
|
+
onDrop: null,
|
|
539
|
+
onDurationChange: null,
|
|
540
|
+
onEmptied: null,
|
|
541
|
+
onEnded: null,
|
|
542
|
+
onError: null,
|
|
543
|
+
onFocus: null,
|
|
544
|
+
onFormData: null,
|
|
545
|
+
onHashChange: null,
|
|
546
|
+
onInput: null,
|
|
547
|
+
onInvalid: null,
|
|
548
|
+
onKeyDown: null,
|
|
549
|
+
onKeyPress: null,
|
|
550
|
+
onKeyUp: null,
|
|
551
|
+
onLanguageChange: null,
|
|
552
|
+
onLoad: null,
|
|
553
|
+
onLoadedData: null,
|
|
554
|
+
onLoadedMetadata: null,
|
|
555
|
+
onLoadEnd: null,
|
|
556
|
+
onLoadStart: null,
|
|
557
|
+
onMessage: null,
|
|
558
|
+
onMessageError: null,
|
|
559
|
+
onMouseDown: null,
|
|
560
|
+
onMouseEnter: null,
|
|
561
|
+
onMouseLeave: null,
|
|
562
|
+
onMouseMove: null,
|
|
563
|
+
onMouseOut: null,
|
|
564
|
+
onMouseOver: null,
|
|
565
|
+
onMouseUp: null,
|
|
566
|
+
onOffline: null,
|
|
567
|
+
onOnline: null,
|
|
568
|
+
onPageHide: null,
|
|
569
|
+
onPageShow: null,
|
|
570
|
+
onPaste: null,
|
|
571
|
+
onPause: null,
|
|
572
|
+
onPlay: null,
|
|
573
|
+
onPlaying: null,
|
|
574
|
+
onPopState: null,
|
|
575
|
+
onProgress: null,
|
|
576
|
+
onRateChange: null,
|
|
577
|
+
onRejectionHandled: null,
|
|
578
|
+
onReset: null,
|
|
579
|
+
onResize: null,
|
|
580
|
+
onScroll: null,
|
|
581
|
+
onScrollEnd: null,
|
|
582
|
+
onSecurityPolicyViolation: null,
|
|
583
|
+
onSeeked: null,
|
|
584
|
+
onSeeking: null,
|
|
585
|
+
onSelect: null,
|
|
586
|
+
onSlotChange: null,
|
|
587
|
+
onStalled: null,
|
|
588
|
+
onStorage: null,
|
|
589
|
+
onSubmit: null,
|
|
590
|
+
onSuspend: null,
|
|
591
|
+
onTimeUpdate: null,
|
|
592
|
+
onToggle: null,
|
|
593
|
+
onUnhandledRejection: null,
|
|
594
|
+
onUnload: null,
|
|
595
|
+
onVolumeChange: null,
|
|
596
|
+
onWaiting: null,
|
|
597
|
+
onWheel: null,
|
|
598
|
+
open: v,
|
|
599
|
+
optimum: u,
|
|
600
|
+
pattern: null,
|
|
601
|
+
ping: M,
|
|
602
|
+
placeholder: null,
|
|
603
|
+
playsInline: v,
|
|
604
|
+
popover: null,
|
|
605
|
+
popoverTarget: null,
|
|
606
|
+
popoverTargetAction: null,
|
|
607
|
+
poster: null,
|
|
608
|
+
preload: null,
|
|
609
|
+
readOnly: v,
|
|
610
|
+
referrerPolicy: null,
|
|
611
|
+
rel: M,
|
|
612
|
+
required: v,
|
|
613
|
+
reversed: v,
|
|
614
|
+
rows: u,
|
|
615
|
+
rowSpan: u,
|
|
616
|
+
sandbox: M,
|
|
617
|
+
scope: null,
|
|
618
|
+
scoped: v,
|
|
619
|
+
seamless: v,
|
|
620
|
+
selected: v,
|
|
621
|
+
shadowRootClonable: v,
|
|
622
|
+
shadowRootCustomElementRegistry: v,
|
|
623
|
+
shadowRootDelegatesFocus: v,
|
|
624
|
+
shadowRootMode: null,
|
|
625
|
+
shadowRootSerializable: v,
|
|
626
|
+
shape: null,
|
|
627
|
+
size: u,
|
|
628
|
+
sizes: null,
|
|
629
|
+
slot: null,
|
|
630
|
+
span: u,
|
|
631
|
+
spellCheck: F,
|
|
632
|
+
src: null,
|
|
633
|
+
srcDoc: null,
|
|
634
|
+
srcLang: null,
|
|
635
|
+
srcSet: null,
|
|
636
|
+
start: u,
|
|
637
|
+
step: null,
|
|
638
|
+
style: null,
|
|
639
|
+
tabIndex: u,
|
|
640
|
+
target: null,
|
|
641
|
+
title: null,
|
|
642
|
+
translate: null,
|
|
643
|
+
type: null,
|
|
644
|
+
typeMustMatch: v,
|
|
645
|
+
useMap: null,
|
|
646
|
+
value: F,
|
|
647
|
+
width: u,
|
|
648
|
+
wrap: null,
|
|
649
|
+
writingSuggestions: null,
|
|
650
|
+
// Legacy.
|
|
651
|
+
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
|
652
|
+
align: null,
|
|
653
|
+
// Several. Use CSS `text-align` instead,
|
|
654
|
+
aLink: null,
|
|
655
|
+
// `<body>`. Use CSS `a:active {color}` instead
|
|
656
|
+
archive: M,
|
|
657
|
+
// `<object>`. List of URIs to archives
|
|
658
|
+
axis: null,
|
|
659
|
+
// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
660
|
+
background: null,
|
|
661
|
+
// `<body>`. Use CSS `background-image` instead
|
|
662
|
+
bgColor: null,
|
|
663
|
+
// `<body>` and table elements. Use CSS `background-color` instead
|
|
664
|
+
border: u,
|
|
665
|
+
// `<table>`. Use CSS `border-width` instead,
|
|
666
|
+
borderColor: null,
|
|
667
|
+
// `<table>`. Use CSS `border-color` instead,
|
|
668
|
+
bottomMargin: u,
|
|
669
|
+
// `<body>`
|
|
670
|
+
cellPadding: null,
|
|
671
|
+
// `<table>`
|
|
672
|
+
cellSpacing: null,
|
|
673
|
+
// `<table>`
|
|
674
|
+
char: null,
|
|
675
|
+
// Several table elements. When `align=char`, sets the character to align on
|
|
676
|
+
charOff: null,
|
|
677
|
+
// Several table elements. When `char`, offsets the alignment
|
|
678
|
+
classId: null,
|
|
679
|
+
// `<object>`
|
|
680
|
+
clear: null,
|
|
681
|
+
// `<br>`. Use CSS `clear` instead
|
|
682
|
+
code: null,
|
|
683
|
+
// `<object>`
|
|
684
|
+
codeBase: null,
|
|
685
|
+
// `<object>`
|
|
686
|
+
codeType: null,
|
|
687
|
+
// `<object>`
|
|
688
|
+
color: null,
|
|
689
|
+
// `<font>` and `<hr>`. Use CSS instead
|
|
690
|
+
compact: v,
|
|
691
|
+
// Lists. Use CSS to reduce space between items instead
|
|
692
|
+
declare: v,
|
|
693
|
+
// `<object>`
|
|
694
|
+
event: null,
|
|
695
|
+
// `<script>`
|
|
696
|
+
face: null,
|
|
697
|
+
// `<font>`. Use CSS instead
|
|
698
|
+
frame: null,
|
|
699
|
+
// `<table>`
|
|
700
|
+
frameBorder: null,
|
|
701
|
+
// `<iframe>`. Use CSS `border` instead
|
|
702
|
+
hSpace: u,
|
|
703
|
+
// `<img>` and `<object>`
|
|
704
|
+
leftMargin: u,
|
|
705
|
+
// `<body>`
|
|
706
|
+
link: null,
|
|
707
|
+
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
708
|
+
longDesc: null,
|
|
709
|
+
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
710
|
+
lowSrc: null,
|
|
711
|
+
// `<img>`. Use a `<picture>`
|
|
712
|
+
marginHeight: u,
|
|
713
|
+
// `<body>`
|
|
714
|
+
marginWidth: u,
|
|
715
|
+
// `<body>`
|
|
716
|
+
noResize: v,
|
|
717
|
+
// `<frame>`
|
|
718
|
+
noHref: v,
|
|
719
|
+
// `<area>`. Use no href instead of an explicit `nohref`
|
|
720
|
+
noShade: v,
|
|
721
|
+
// `<hr>`. Use background-color and height instead of borders
|
|
722
|
+
noWrap: v,
|
|
723
|
+
// `<td>` and `<th>`
|
|
724
|
+
object: null,
|
|
725
|
+
// `<applet>`
|
|
726
|
+
profile: null,
|
|
727
|
+
// `<head>`
|
|
728
|
+
prompt: null,
|
|
729
|
+
// `<isindex>`
|
|
730
|
+
rev: null,
|
|
731
|
+
// `<link>`
|
|
732
|
+
rightMargin: u,
|
|
733
|
+
// `<body>`
|
|
734
|
+
rules: null,
|
|
735
|
+
// `<table>`
|
|
736
|
+
scheme: null,
|
|
737
|
+
// `<meta>`
|
|
738
|
+
scrolling: F,
|
|
739
|
+
// `<frame>`. Use overflow in the child context
|
|
740
|
+
standby: null,
|
|
741
|
+
// `<object>`
|
|
742
|
+
summary: null,
|
|
743
|
+
// `<table>`
|
|
744
|
+
text: null,
|
|
745
|
+
// `<body>`. Use CSS `color` instead
|
|
746
|
+
topMargin: u,
|
|
747
|
+
// `<body>`
|
|
748
|
+
valueType: null,
|
|
749
|
+
// `<param>`
|
|
750
|
+
version: null,
|
|
751
|
+
// `<html>`. Use a doctype.
|
|
752
|
+
vAlign: null,
|
|
753
|
+
// Several. Use CSS `vertical-align` instead
|
|
754
|
+
vLink: null,
|
|
755
|
+
// `<body>`. Use CSS `a:visited {color}` instead
|
|
756
|
+
vSpace: u,
|
|
757
|
+
// `<img>` and `<object>`
|
|
758
|
+
// Non-standard Properties.
|
|
759
|
+
allowTransparency: null,
|
|
760
|
+
autoCorrect: null,
|
|
761
|
+
autoSave: null,
|
|
762
|
+
credentialless: v,
|
|
763
|
+
disablePictureInPicture: v,
|
|
764
|
+
disableRemotePlayback: v,
|
|
765
|
+
exportParts: ee,
|
|
766
|
+
part: M,
|
|
767
|
+
prefix: null,
|
|
768
|
+
property: null,
|
|
769
|
+
results: u,
|
|
770
|
+
security: null,
|
|
771
|
+
unselectable: null
|
|
772
|
+
},
|
|
773
|
+
space: "html",
|
|
774
|
+
transform: Mn
|
|
775
|
+
}), xt = ie({
|
|
776
|
+
attributes: {
|
|
777
|
+
accentHeight: "accent-height",
|
|
778
|
+
alignmentBaseline: "alignment-baseline",
|
|
779
|
+
arabicForm: "arabic-form",
|
|
780
|
+
baselineShift: "baseline-shift",
|
|
781
|
+
capHeight: "cap-height",
|
|
782
|
+
className: "class",
|
|
783
|
+
clipPath: "clip-path",
|
|
784
|
+
clipRule: "clip-rule",
|
|
785
|
+
colorInterpolation: "color-interpolation",
|
|
786
|
+
colorInterpolationFilters: "color-interpolation-filters",
|
|
787
|
+
colorProfile: "color-profile",
|
|
788
|
+
colorRendering: "color-rendering",
|
|
789
|
+
crossOrigin: "crossorigin",
|
|
790
|
+
dataType: "datatype",
|
|
791
|
+
dominantBaseline: "dominant-baseline",
|
|
792
|
+
enableBackground: "enable-background",
|
|
793
|
+
fillOpacity: "fill-opacity",
|
|
794
|
+
fillRule: "fill-rule",
|
|
795
|
+
floodColor: "flood-color",
|
|
796
|
+
floodOpacity: "flood-opacity",
|
|
797
|
+
fontFamily: "font-family",
|
|
798
|
+
fontSize: "font-size",
|
|
799
|
+
fontSizeAdjust: "font-size-adjust",
|
|
800
|
+
fontStretch: "font-stretch",
|
|
801
|
+
fontStyle: "font-style",
|
|
802
|
+
fontVariant: "font-variant",
|
|
803
|
+
fontWeight: "font-weight",
|
|
804
|
+
glyphName: "glyph-name",
|
|
805
|
+
glyphOrientationHorizontal: "glyph-orientation-horizontal",
|
|
806
|
+
glyphOrientationVertical: "glyph-orientation-vertical",
|
|
807
|
+
hrefLang: "hreflang",
|
|
808
|
+
horizAdvX: "horiz-adv-x",
|
|
809
|
+
horizOriginX: "horiz-origin-x",
|
|
810
|
+
horizOriginY: "horiz-origin-y",
|
|
811
|
+
imageRendering: "image-rendering",
|
|
812
|
+
letterSpacing: "letter-spacing",
|
|
813
|
+
lightingColor: "lighting-color",
|
|
814
|
+
markerEnd: "marker-end",
|
|
815
|
+
markerMid: "marker-mid",
|
|
816
|
+
markerStart: "marker-start",
|
|
817
|
+
maskType: "mask-type",
|
|
818
|
+
navDown: "nav-down",
|
|
819
|
+
navDownLeft: "nav-down-left",
|
|
820
|
+
navDownRight: "nav-down-right",
|
|
821
|
+
navLeft: "nav-left",
|
|
822
|
+
navNext: "nav-next",
|
|
823
|
+
navPrev: "nav-prev",
|
|
824
|
+
navRight: "nav-right",
|
|
825
|
+
navUp: "nav-up",
|
|
826
|
+
navUpLeft: "nav-up-left",
|
|
827
|
+
navUpRight: "nav-up-right",
|
|
828
|
+
onAbort: "onabort",
|
|
829
|
+
onActivate: "onactivate",
|
|
830
|
+
onAfterPrint: "onafterprint",
|
|
831
|
+
onBeforePrint: "onbeforeprint",
|
|
832
|
+
onBegin: "onbegin",
|
|
833
|
+
onCancel: "oncancel",
|
|
834
|
+
onCanPlay: "oncanplay",
|
|
835
|
+
onCanPlayThrough: "oncanplaythrough",
|
|
836
|
+
onChange: "onchange",
|
|
837
|
+
onClick: "onclick",
|
|
838
|
+
onClose: "onclose",
|
|
839
|
+
onCopy: "oncopy",
|
|
840
|
+
onCueChange: "oncuechange",
|
|
841
|
+
onCut: "oncut",
|
|
842
|
+
onDblClick: "ondblclick",
|
|
843
|
+
onDrag: "ondrag",
|
|
844
|
+
onDragEnd: "ondragend",
|
|
845
|
+
onDragEnter: "ondragenter",
|
|
846
|
+
onDragExit: "ondragexit",
|
|
847
|
+
onDragLeave: "ondragleave",
|
|
848
|
+
onDragOver: "ondragover",
|
|
849
|
+
onDragStart: "ondragstart",
|
|
850
|
+
onDrop: "ondrop",
|
|
851
|
+
onDurationChange: "ondurationchange",
|
|
852
|
+
onEmptied: "onemptied",
|
|
853
|
+
onEnd: "onend",
|
|
854
|
+
onEnded: "onended",
|
|
855
|
+
onError: "onerror",
|
|
856
|
+
onFocus: "onfocus",
|
|
857
|
+
onFocusIn: "onfocusin",
|
|
858
|
+
onFocusOut: "onfocusout",
|
|
859
|
+
onHashChange: "onhashchange",
|
|
860
|
+
onInput: "oninput",
|
|
861
|
+
onInvalid: "oninvalid",
|
|
862
|
+
onKeyDown: "onkeydown",
|
|
863
|
+
onKeyPress: "onkeypress",
|
|
864
|
+
onKeyUp: "onkeyup",
|
|
865
|
+
onLoad: "onload",
|
|
866
|
+
onLoadedData: "onloadeddata",
|
|
867
|
+
onLoadedMetadata: "onloadedmetadata",
|
|
868
|
+
onLoadStart: "onloadstart",
|
|
869
|
+
onMessage: "onmessage",
|
|
870
|
+
onMouseDown: "onmousedown",
|
|
871
|
+
onMouseEnter: "onmouseenter",
|
|
872
|
+
onMouseLeave: "onmouseleave",
|
|
873
|
+
onMouseMove: "onmousemove",
|
|
874
|
+
onMouseOut: "onmouseout",
|
|
875
|
+
onMouseOver: "onmouseover",
|
|
876
|
+
onMouseUp: "onmouseup",
|
|
877
|
+
onMouseWheel: "onmousewheel",
|
|
878
|
+
onOffline: "onoffline",
|
|
879
|
+
onOnline: "ononline",
|
|
880
|
+
onPageHide: "onpagehide",
|
|
881
|
+
onPageShow: "onpageshow",
|
|
882
|
+
onPaste: "onpaste",
|
|
883
|
+
onPause: "onpause",
|
|
884
|
+
onPlay: "onplay",
|
|
885
|
+
onPlaying: "onplaying",
|
|
886
|
+
onPopState: "onpopstate",
|
|
887
|
+
onProgress: "onprogress",
|
|
888
|
+
onRateChange: "onratechange",
|
|
889
|
+
onRepeat: "onrepeat",
|
|
890
|
+
onReset: "onreset",
|
|
891
|
+
onResize: "onresize",
|
|
892
|
+
onScroll: "onscroll",
|
|
893
|
+
onSeeked: "onseeked",
|
|
894
|
+
onSeeking: "onseeking",
|
|
895
|
+
onSelect: "onselect",
|
|
896
|
+
onShow: "onshow",
|
|
897
|
+
onStalled: "onstalled",
|
|
898
|
+
onStorage: "onstorage",
|
|
899
|
+
onSubmit: "onsubmit",
|
|
900
|
+
onSuspend: "onsuspend",
|
|
901
|
+
onTimeUpdate: "ontimeupdate",
|
|
902
|
+
onToggle: "ontoggle",
|
|
903
|
+
onUnload: "onunload",
|
|
904
|
+
onVolumeChange: "onvolumechange",
|
|
905
|
+
onWaiting: "onwaiting",
|
|
906
|
+
onZoom: "onzoom",
|
|
907
|
+
overlinePosition: "overline-position",
|
|
908
|
+
overlineThickness: "overline-thickness",
|
|
909
|
+
paintOrder: "paint-order",
|
|
910
|
+
panose1: "panose-1",
|
|
911
|
+
pointerEvents: "pointer-events",
|
|
912
|
+
referrerPolicy: "referrerpolicy",
|
|
913
|
+
renderingIntent: "rendering-intent",
|
|
914
|
+
shapeRendering: "shape-rendering",
|
|
915
|
+
stopColor: "stop-color",
|
|
916
|
+
stopOpacity: "stop-opacity",
|
|
917
|
+
strikethroughPosition: "strikethrough-position",
|
|
918
|
+
strikethroughThickness: "strikethrough-thickness",
|
|
919
|
+
strokeDashArray: "stroke-dasharray",
|
|
920
|
+
strokeDashOffset: "stroke-dashoffset",
|
|
921
|
+
strokeLineCap: "stroke-linecap",
|
|
922
|
+
strokeLineJoin: "stroke-linejoin",
|
|
923
|
+
strokeMiterLimit: "stroke-miterlimit",
|
|
924
|
+
strokeOpacity: "stroke-opacity",
|
|
925
|
+
strokeWidth: "stroke-width",
|
|
926
|
+
tabIndex: "tabindex",
|
|
927
|
+
textAnchor: "text-anchor",
|
|
928
|
+
textDecoration: "text-decoration",
|
|
929
|
+
textRendering: "text-rendering",
|
|
930
|
+
transformOrigin: "transform-origin",
|
|
931
|
+
typeOf: "typeof",
|
|
932
|
+
underlinePosition: "underline-position",
|
|
933
|
+
underlineThickness: "underline-thickness",
|
|
934
|
+
unicodeBidi: "unicode-bidi",
|
|
935
|
+
unicodeRange: "unicode-range",
|
|
936
|
+
unitsPerEm: "units-per-em",
|
|
937
|
+
vAlphabetic: "v-alphabetic",
|
|
938
|
+
vHanging: "v-hanging",
|
|
939
|
+
vIdeographic: "v-ideographic",
|
|
940
|
+
vMathematical: "v-mathematical",
|
|
941
|
+
vectorEffect: "vector-effect",
|
|
942
|
+
vertAdvY: "vert-adv-y",
|
|
943
|
+
vertOriginX: "vert-origin-x",
|
|
944
|
+
vertOriginY: "vert-origin-y",
|
|
945
|
+
wordSpacing: "word-spacing",
|
|
946
|
+
writingMode: "writing-mode",
|
|
947
|
+
xHeight: "x-height",
|
|
948
|
+
// These were camelcased in Tiny. Now lowercased in SVG 2
|
|
949
|
+
playbackOrder: "playbackorder",
|
|
950
|
+
timelineBegin: "timelinebegin"
|
|
951
|
+
},
|
|
952
|
+
properties: {
|
|
953
|
+
about: K,
|
|
954
|
+
accentHeight: u,
|
|
955
|
+
accumulate: null,
|
|
956
|
+
additive: null,
|
|
957
|
+
alignmentBaseline: null,
|
|
958
|
+
alphabetic: u,
|
|
959
|
+
amplitude: u,
|
|
960
|
+
arabicForm: null,
|
|
961
|
+
ascent: u,
|
|
962
|
+
attributeName: null,
|
|
963
|
+
attributeType: null,
|
|
964
|
+
azimuth: u,
|
|
965
|
+
bandwidth: null,
|
|
966
|
+
baselineShift: null,
|
|
967
|
+
baseFrequency: null,
|
|
968
|
+
baseProfile: null,
|
|
969
|
+
bbox: null,
|
|
970
|
+
begin: null,
|
|
971
|
+
bias: u,
|
|
972
|
+
by: null,
|
|
973
|
+
calcMode: null,
|
|
974
|
+
capHeight: u,
|
|
975
|
+
className: M,
|
|
976
|
+
clip: null,
|
|
977
|
+
clipPath: null,
|
|
978
|
+
clipPathUnits: null,
|
|
979
|
+
clipRule: null,
|
|
980
|
+
color: null,
|
|
981
|
+
colorInterpolation: null,
|
|
982
|
+
colorInterpolationFilters: null,
|
|
983
|
+
colorProfile: null,
|
|
984
|
+
colorRendering: null,
|
|
985
|
+
content: null,
|
|
986
|
+
contentScriptType: null,
|
|
987
|
+
contentStyleType: null,
|
|
988
|
+
crossOrigin: null,
|
|
989
|
+
cursor: null,
|
|
990
|
+
cx: null,
|
|
991
|
+
cy: null,
|
|
992
|
+
d: null,
|
|
993
|
+
dataType: null,
|
|
994
|
+
defaultAction: null,
|
|
995
|
+
descent: u,
|
|
996
|
+
diffuseConstant: u,
|
|
997
|
+
direction: null,
|
|
998
|
+
display: null,
|
|
999
|
+
dur: null,
|
|
1000
|
+
divisor: u,
|
|
1001
|
+
dominantBaseline: null,
|
|
1002
|
+
download: v,
|
|
1003
|
+
dx: null,
|
|
1004
|
+
dy: null,
|
|
1005
|
+
edgeMode: null,
|
|
1006
|
+
editable: null,
|
|
1007
|
+
elevation: u,
|
|
1008
|
+
enableBackground: null,
|
|
1009
|
+
end: null,
|
|
1010
|
+
event: null,
|
|
1011
|
+
exponent: u,
|
|
1012
|
+
externalResourcesRequired: null,
|
|
1013
|
+
fill: null,
|
|
1014
|
+
fillOpacity: u,
|
|
1015
|
+
fillRule: null,
|
|
1016
|
+
filter: null,
|
|
1017
|
+
filterRes: null,
|
|
1018
|
+
filterUnits: null,
|
|
1019
|
+
floodColor: null,
|
|
1020
|
+
floodOpacity: null,
|
|
1021
|
+
focusable: null,
|
|
1022
|
+
focusHighlight: null,
|
|
1023
|
+
fontFamily: null,
|
|
1024
|
+
fontSize: null,
|
|
1025
|
+
fontSizeAdjust: null,
|
|
1026
|
+
fontStretch: null,
|
|
1027
|
+
fontStyle: null,
|
|
1028
|
+
fontVariant: null,
|
|
1029
|
+
fontWeight: null,
|
|
1030
|
+
format: null,
|
|
1031
|
+
fr: null,
|
|
1032
|
+
from: null,
|
|
1033
|
+
fx: null,
|
|
1034
|
+
fy: null,
|
|
1035
|
+
g1: ee,
|
|
1036
|
+
g2: ee,
|
|
1037
|
+
glyphName: ee,
|
|
1038
|
+
glyphOrientationHorizontal: null,
|
|
1039
|
+
glyphOrientationVertical: null,
|
|
1040
|
+
glyphRef: null,
|
|
1041
|
+
gradientTransform: null,
|
|
1042
|
+
gradientUnits: null,
|
|
1043
|
+
handler: null,
|
|
1044
|
+
hanging: u,
|
|
1045
|
+
hatchContentUnits: null,
|
|
1046
|
+
hatchUnits: null,
|
|
1047
|
+
height: null,
|
|
1048
|
+
href: null,
|
|
1049
|
+
hrefLang: null,
|
|
1050
|
+
horizAdvX: u,
|
|
1051
|
+
horizOriginX: u,
|
|
1052
|
+
horizOriginY: u,
|
|
1053
|
+
id: null,
|
|
1054
|
+
ideographic: u,
|
|
1055
|
+
imageRendering: null,
|
|
1056
|
+
initialVisibility: null,
|
|
1057
|
+
in: null,
|
|
1058
|
+
in2: null,
|
|
1059
|
+
intercept: u,
|
|
1060
|
+
k: u,
|
|
1061
|
+
k1: u,
|
|
1062
|
+
k2: u,
|
|
1063
|
+
k3: u,
|
|
1064
|
+
k4: u,
|
|
1065
|
+
kernelMatrix: K,
|
|
1066
|
+
kernelUnitLength: null,
|
|
1067
|
+
keyPoints: null,
|
|
1068
|
+
// SEMI_COLON_SEPARATED
|
|
1069
|
+
keySplines: null,
|
|
1070
|
+
// SEMI_COLON_SEPARATED
|
|
1071
|
+
keyTimes: null,
|
|
1072
|
+
// SEMI_COLON_SEPARATED
|
|
1073
|
+
kerning: null,
|
|
1074
|
+
lang: null,
|
|
1075
|
+
lengthAdjust: null,
|
|
1076
|
+
letterSpacing: null,
|
|
1077
|
+
lightingColor: null,
|
|
1078
|
+
limitingConeAngle: u,
|
|
1079
|
+
local: null,
|
|
1080
|
+
markerEnd: null,
|
|
1081
|
+
markerMid: null,
|
|
1082
|
+
markerStart: null,
|
|
1083
|
+
markerHeight: null,
|
|
1084
|
+
markerUnits: null,
|
|
1085
|
+
markerWidth: null,
|
|
1086
|
+
mask: null,
|
|
1087
|
+
maskContentUnits: null,
|
|
1088
|
+
maskType: null,
|
|
1089
|
+
maskUnits: null,
|
|
1090
|
+
mathematical: null,
|
|
1091
|
+
max: null,
|
|
1092
|
+
media: null,
|
|
1093
|
+
mediaCharacterEncoding: null,
|
|
1094
|
+
mediaContentEncodings: null,
|
|
1095
|
+
mediaSize: u,
|
|
1096
|
+
mediaTime: null,
|
|
1097
|
+
method: null,
|
|
1098
|
+
min: null,
|
|
1099
|
+
mode: null,
|
|
1100
|
+
name: null,
|
|
1101
|
+
navDown: null,
|
|
1102
|
+
navDownLeft: null,
|
|
1103
|
+
navDownRight: null,
|
|
1104
|
+
navLeft: null,
|
|
1105
|
+
navNext: null,
|
|
1106
|
+
navPrev: null,
|
|
1107
|
+
navRight: null,
|
|
1108
|
+
navUp: null,
|
|
1109
|
+
navUpLeft: null,
|
|
1110
|
+
navUpRight: null,
|
|
1111
|
+
numOctaves: null,
|
|
1112
|
+
observer: null,
|
|
1113
|
+
offset: null,
|
|
1114
|
+
onAbort: null,
|
|
1115
|
+
onActivate: null,
|
|
1116
|
+
onAfterPrint: null,
|
|
1117
|
+
onBeforePrint: null,
|
|
1118
|
+
onBegin: null,
|
|
1119
|
+
onCancel: null,
|
|
1120
|
+
onCanPlay: null,
|
|
1121
|
+
onCanPlayThrough: null,
|
|
1122
|
+
onChange: null,
|
|
1123
|
+
onClick: null,
|
|
1124
|
+
onClose: null,
|
|
1125
|
+
onCopy: null,
|
|
1126
|
+
onCueChange: null,
|
|
1127
|
+
onCut: null,
|
|
1128
|
+
onDblClick: null,
|
|
1129
|
+
onDrag: null,
|
|
1130
|
+
onDragEnd: null,
|
|
1131
|
+
onDragEnter: null,
|
|
1132
|
+
onDragExit: null,
|
|
1133
|
+
onDragLeave: null,
|
|
1134
|
+
onDragOver: null,
|
|
1135
|
+
onDragStart: null,
|
|
1136
|
+
onDrop: null,
|
|
1137
|
+
onDurationChange: null,
|
|
1138
|
+
onEmptied: null,
|
|
1139
|
+
onEnd: null,
|
|
1140
|
+
onEnded: null,
|
|
1141
|
+
onError: null,
|
|
1142
|
+
onFocus: null,
|
|
1143
|
+
onFocusIn: null,
|
|
1144
|
+
onFocusOut: null,
|
|
1145
|
+
onHashChange: null,
|
|
1146
|
+
onInput: null,
|
|
1147
|
+
onInvalid: null,
|
|
1148
|
+
onKeyDown: null,
|
|
1149
|
+
onKeyPress: null,
|
|
1150
|
+
onKeyUp: null,
|
|
1151
|
+
onLoad: null,
|
|
1152
|
+
onLoadedData: null,
|
|
1153
|
+
onLoadedMetadata: null,
|
|
1154
|
+
onLoadStart: null,
|
|
1155
|
+
onMessage: null,
|
|
1156
|
+
onMouseDown: null,
|
|
1157
|
+
onMouseEnter: null,
|
|
1158
|
+
onMouseLeave: null,
|
|
1159
|
+
onMouseMove: null,
|
|
1160
|
+
onMouseOut: null,
|
|
1161
|
+
onMouseOver: null,
|
|
1162
|
+
onMouseUp: null,
|
|
1163
|
+
onMouseWheel: null,
|
|
1164
|
+
onOffline: null,
|
|
1165
|
+
onOnline: null,
|
|
1166
|
+
onPageHide: null,
|
|
1167
|
+
onPageShow: null,
|
|
1168
|
+
onPaste: null,
|
|
1169
|
+
onPause: null,
|
|
1170
|
+
onPlay: null,
|
|
1171
|
+
onPlaying: null,
|
|
1172
|
+
onPopState: null,
|
|
1173
|
+
onProgress: null,
|
|
1174
|
+
onRateChange: null,
|
|
1175
|
+
onRepeat: null,
|
|
1176
|
+
onReset: null,
|
|
1177
|
+
onResize: null,
|
|
1178
|
+
onScroll: null,
|
|
1179
|
+
onSeeked: null,
|
|
1180
|
+
onSeeking: null,
|
|
1181
|
+
onSelect: null,
|
|
1182
|
+
onShow: null,
|
|
1183
|
+
onStalled: null,
|
|
1184
|
+
onStorage: null,
|
|
1185
|
+
onSubmit: null,
|
|
1186
|
+
onSuspend: null,
|
|
1187
|
+
onTimeUpdate: null,
|
|
1188
|
+
onToggle: null,
|
|
1189
|
+
onUnload: null,
|
|
1190
|
+
onVolumeChange: null,
|
|
1191
|
+
onWaiting: null,
|
|
1192
|
+
onZoom: null,
|
|
1193
|
+
opacity: null,
|
|
1194
|
+
operator: null,
|
|
1195
|
+
order: null,
|
|
1196
|
+
orient: null,
|
|
1197
|
+
orientation: null,
|
|
1198
|
+
origin: null,
|
|
1199
|
+
overflow: null,
|
|
1200
|
+
overlay: null,
|
|
1201
|
+
overlinePosition: u,
|
|
1202
|
+
overlineThickness: u,
|
|
1203
|
+
paintOrder: null,
|
|
1204
|
+
panose1: null,
|
|
1205
|
+
path: null,
|
|
1206
|
+
pathLength: u,
|
|
1207
|
+
patternContentUnits: null,
|
|
1208
|
+
patternTransform: null,
|
|
1209
|
+
patternUnits: null,
|
|
1210
|
+
phase: null,
|
|
1211
|
+
ping: M,
|
|
1212
|
+
pitch: null,
|
|
1213
|
+
playbackOrder: null,
|
|
1214
|
+
pointerEvents: null,
|
|
1215
|
+
points: null,
|
|
1216
|
+
pointsAtX: u,
|
|
1217
|
+
pointsAtY: u,
|
|
1218
|
+
pointsAtZ: u,
|
|
1219
|
+
preserveAlpha: null,
|
|
1220
|
+
preserveAspectRatio: null,
|
|
1221
|
+
primitiveUnits: null,
|
|
1222
|
+
propagate: null,
|
|
1223
|
+
property: K,
|
|
1224
|
+
r: null,
|
|
1225
|
+
radius: null,
|
|
1226
|
+
referrerPolicy: null,
|
|
1227
|
+
refX: null,
|
|
1228
|
+
refY: null,
|
|
1229
|
+
rel: K,
|
|
1230
|
+
rev: K,
|
|
1231
|
+
renderingIntent: null,
|
|
1232
|
+
repeatCount: null,
|
|
1233
|
+
repeatDur: null,
|
|
1234
|
+
requiredExtensions: K,
|
|
1235
|
+
requiredFeatures: K,
|
|
1236
|
+
requiredFonts: K,
|
|
1237
|
+
requiredFormats: K,
|
|
1238
|
+
resource: null,
|
|
1239
|
+
restart: null,
|
|
1240
|
+
result: null,
|
|
1241
|
+
rotate: null,
|
|
1242
|
+
rx: null,
|
|
1243
|
+
ry: null,
|
|
1244
|
+
scale: null,
|
|
1245
|
+
seed: null,
|
|
1246
|
+
shapeRendering: null,
|
|
1247
|
+
side: null,
|
|
1248
|
+
slope: null,
|
|
1249
|
+
snapshotTime: null,
|
|
1250
|
+
specularConstant: u,
|
|
1251
|
+
specularExponent: u,
|
|
1252
|
+
spreadMethod: null,
|
|
1253
|
+
spacing: null,
|
|
1254
|
+
startOffset: null,
|
|
1255
|
+
stdDeviation: null,
|
|
1256
|
+
stemh: null,
|
|
1257
|
+
stemv: null,
|
|
1258
|
+
stitchTiles: null,
|
|
1259
|
+
stopColor: null,
|
|
1260
|
+
stopOpacity: null,
|
|
1261
|
+
strikethroughPosition: u,
|
|
1262
|
+
strikethroughThickness: u,
|
|
1263
|
+
string: null,
|
|
1264
|
+
stroke: null,
|
|
1265
|
+
strokeDashArray: K,
|
|
1266
|
+
strokeDashOffset: null,
|
|
1267
|
+
strokeLineCap: null,
|
|
1268
|
+
strokeLineJoin: null,
|
|
1269
|
+
strokeMiterLimit: u,
|
|
1270
|
+
strokeOpacity: u,
|
|
1271
|
+
strokeWidth: null,
|
|
1272
|
+
style: null,
|
|
1273
|
+
surfaceScale: u,
|
|
1274
|
+
syncBehavior: null,
|
|
1275
|
+
syncBehaviorDefault: null,
|
|
1276
|
+
syncMaster: null,
|
|
1277
|
+
syncTolerance: null,
|
|
1278
|
+
syncToleranceDefault: null,
|
|
1279
|
+
systemLanguage: K,
|
|
1280
|
+
tabIndex: u,
|
|
1281
|
+
tableValues: null,
|
|
1282
|
+
target: null,
|
|
1283
|
+
targetX: u,
|
|
1284
|
+
targetY: u,
|
|
1285
|
+
textAnchor: null,
|
|
1286
|
+
textDecoration: null,
|
|
1287
|
+
textRendering: null,
|
|
1288
|
+
textLength: null,
|
|
1289
|
+
timelineBegin: null,
|
|
1290
|
+
title: null,
|
|
1291
|
+
transformBehavior: null,
|
|
1292
|
+
type: null,
|
|
1293
|
+
typeOf: K,
|
|
1294
|
+
to: null,
|
|
1295
|
+
transform: null,
|
|
1296
|
+
transformOrigin: null,
|
|
1297
|
+
u1: null,
|
|
1298
|
+
u2: null,
|
|
1299
|
+
underlinePosition: u,
|
|
1300
|
+
underlineThickness: u,
|
|
1301
|
+
unicode: null,
|
|
1302
|
+
unicodeBidi: null,
|
|
1303
|
+
unicodeRange: null,
|
|
1304
|
+
unitsPerEm: u,
|
|
1305
|
+
values: null,
|
|
1306
|
+
vAlphabetic: u,
|
|
1307
|
+
vMathematical: u,
|
|
1308
|
+
vectorEffect: null,
|
|
1309
|
+
vHanging: u,
|
|
1310
|
+
vIdeographic: u,
|
|
1311
|
+
version: null,
|
|
1312
|
+
vertAdvY: u,
|
|
1313
|
+
vertOriginX: u,
|
|
1314
|
+
vertOriginY: u,
|
|
1315
|
+
viewBox: null,
|
|
1316
|
+
viewTarget: null,
|
|
1317
|
+
visibility: null,
|
|
1318
|
+
width: null,
|
|
1319
|
+
widths: null,
|
|
1320
|
+
wordSpacing: null,
|
|
1321
|
+
writingMode: null,
|
|
1322
|
+
x: null,
|
|
1323
|
+
x1: null,
|
|
1324
|
+
x2: null,
|
|
1325
|
+
xChannelSelector: null,
|
|
1326
|
+
xHeight: u,
|
|
1327
|
+
y: null,
|
|
1328
|
+
y1: null,
|
|
1329
|
+
y2: null,
|
|
1330
|
+
yChannelSelector: null,
|
|
1331
|
+
z: null,
|
|
1332
|
+
zoomAndPan: null
|
|
1333
|
+
},
|
|
1334
|
+
space: "svg",
|
|
1335
|
+
transform: Nn
|
|
1336
|
+
}), Tn = ie({
|
|
1337
|
+
properties: {
|
|
1338
|
+
xLinkActuate: null,
|
|
1339
|
+
xLinkArcRole: null,
|
|
1340
|
+
xLinkHref: null,
|
|
1341
|
+
xLinkRole: null,
|
|
1342
|
+
xLinkShow: null,
|
|
1343
|
+
xLinkTitle: null,
|
|
1344
|
+
xLinkType: null
|
|
1345
|
+
},
|
|
1346
|
+
space: "xlink",
|
|
1347
|
+
transform(e, n) {
|
|
1348
|
+
return "xlink:" + n.slice(5).toLowerCase();
|
|
1349
|
+
}
|
|
1350
|
+
}), Rn = ie({
|
|
1351
|
+
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1352
|
+
properties: { xmlnsXLink: null, xmlns: null },
|
|
1353
|
+
space: "xmlns",
|
|
1354
|
+
transform: Mn
|
|
1355
|
+
}), An = ie({
|
|
1356
|
+
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1357
|
+
space: "xml",
|
|
1358
|
+
transform(e, n) {
|
|
1359
|
+
return "xml:" + n.slice(3).toLowerCase();
|
|
1360
|
+
}
|
|
1361
|
+
}), kt = {
|
|
1362
|
+
classId: "classID",
|
|
1363
|
+
dataType: "datatype",
|
|
1364
|
+
itemId: "itemID",
|
|
1365
|
+
strokeDashArray: "strokeDasharray",
|
|
1366
|
+
strokeDashOffset: "strokeDashoffset",
|
|
1367
|
+
strokeLineCap: "strokeLinecap",
|
|
1368
|
+
strokeLineJoin: "strokeLinejoin",
|
|
1369
|
+
strokeMiterLimit: "strokeMiterlimit",
|
|
1370
|
+
typeOf: "typeof",
|
|
1371
|
+
xLinkActuate: "xlinkActuate",
|
|
1372
|
+
xLinkArcRole: "xlinkArcrole",
|
|
1373
|
+
xLinkHref: "xlinkHref",
|
|
1374
|
+
xLinkRole: "xlinkRole",
|
|
1375
|
+
xLinkShow: "xlinkShow",
|
|
1376
|
+
xLinkTitle: "xlinkTitle",
|
|
1377
|
+
xLinkType: "xlinkType",
|
|
1378
|
+
xmlnsXLink: "xmlnsXlink"
|
|
1379
|
+
}, Ct = /[A-Z]/g, cn = /-[a-z]/g, wt = /^data[-\w.:]+$/i;
|
|
1380
|
+
function Et(e, n) {
|
|
1381
|
+
const t = Ae(n);
|
|
1382
|
+
let a = n, o = H;
|
|
1383
|
+
if (t in e.normal)
|
|
1384
|
+
return e.property[e.normal[t]];
|
|
1385
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && wt.test(n)) {
|
|
1386
|
+
if (n.charAt(4) === "-") {
|
|
1387
|
+
const l = n.slice(5).replace(cn, St);
|
|
1388
|
+
a = "data" + l.charAt(0).toUpperCase() + l.slice(1);
|
|
1389
|
+
} else {
|
|
1390
|
+
const l = n.slice(4);
|
|
1391
|
+
if (!cn.test(l)) {
|
|
1392
|
+
let r = l.replace(Ct, jt);
|
|
1393
|
+
r.charAt(0) !== "-" && (r = "-" + r), n = "data" + r;
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
o = Ye;
|
|
1397
|
+
}
|
|
1398
|
+
return new o(a, n);
|
|
1399
|
+
}
|
|
1400
|
+
function jt(e) {
|
|
1401
|
+
return "-" + e.toLowerCase();
|
|
1402
|
+
}
|
|
1403
|
+
function St(e) {
|
|
1404
|
+
return e.charAt(1).toUpperCase();
|
|
1405
|
+
}
|
|
1406
|
+
const Lt = Ln([Dn, vt, Tn, Rn, An], "html"), Ze = Ln([Dn, xt, Tn, Rn, An], "svg");
|
|
1407
|
+
function Dt(e) {
|
|
1408
|
+
return e.join(" ").trim();
|
|
1409
|
+
}
|
|
1410
|
+
var oe = {}, je, dn;
|
|
1411
|
+
function Nt() {
|
|
1412
|
+
if (dn) return je;
|
|
1413
|
+
dn = 1;
|
|
1414
|
+
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, t = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, r = /^[;\s]*/, i = /^\s+|\s+$/g, d = `
|
|
1415
|
+
`, f = "/", p = "*", m = "", k = "comment", b = "declaration";
|
|
1416
|
+
function N(C, g) {
|
|
1417
|
+
if (typeof C != "string")
|
|
1418
|
+
throw new TypeError("First argument must be a string");
|
|
1419
|
+
if (!C) return [];
|
|
1420
|
+
g = g || {};
|
|
1421
|
+
var S = 1, y = 1;
|
|
1422
|
+
function A(E) {
|
|
1423
|
+
var x = E.match(n);
|
|
1424
|
+
x && (S += x.length);
|
|
1425
|
+
var _ = E.lastIndexOf(d);
|
|
1426
|
+
y = ~_ ? E.length - _ : y + E.length;
|
|
1427
|
+
}
|
|
1428
|
+
function P() {
|
|
1429
|
+
var E = { line: S, column: y };
|
|
1430
|
+
return function(x) {
|
|
1431
|
+
return x.position = new R(E), B(), x;
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
function R(E) {
|
|
1435
|
+
this.start = E, this.end = { line: S, column: y }, this.source = g.source;
|
|
1436
|
+
}
|
|
1437
|
+
R.prototype.content = C;
|
|
1438
|
+
function I(E) {
|
|
1439
|
+
var x = new Error(
|
|
1440
|
+
g.source + ":" + S + ":" + y + ": " + E
|
|
1441
|
+
);
|
|
1442
|
+
if (x.reason = E, x.filename = g.source, x.line = S, x.column = y, x.source = C, !g.silent) throw x;
|
|
1443
|
+
}
|
|
1444
|
+
function L(E) {
|
|
1445
|
+
var x = E.exec(C);
|
|
1446
|
+
if (x) {
|
|
1447
|
+
var _ = x[0];
|
|
1448
|
+
return A(_), C = C.slice(_.length), x;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
function B() {
|
|
1452
|
+
L(t);
|
|
1453
|
+
}
|
|
1454
|
+
function O(E) {
|
|
1455
|
+
var x;
|
|
1456
|
+
for (E = E || []; x = D(); )
|
|
1457
|
+
x !== !1 && E.push(x);
|
|
1458
|
+
return E;
|
|
1459
|
+
}
|
|
1460
|
+
function D() {
|
|
1461
|
+
var E = P();
|
|
1462
|
+
if (!(f != C.charAt(0) || p != C.charAt(1))) {
|
|
1463
|
+
for (var x = 2; m != C.charAt(x) && (p != C.charAt(x) || f != C.charAt(x + 1)); )
|
|
1464
|
+
++x;
|
|
1465
|
+
if (x += 2, m === C.charAt(x - 1))
|
|
1466
|
+
return I("End of comment missing");
|
|
1467
|
+
var _ = C.slice(2, x - 2);
|
|
1468
|
+
return y += 2, A(_), C = C.slice(x), y += 2, E({
|
|
1469
|
+
type: k,
|
|
1470
|
+
comment: _
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
function z() {
|
|
1475
|
+
var E = P(), x = L(a);
|
|
1476
|
+
if (x) {
|
|
1477
|
+
if (D(), !L(o)) return I("property missing ':'");
|
|
1478
|
+
var _ = L(l), Y = E({
|
|
1479
|
+
type: b,
|
|
1480
|
+
property: j(x[0].replace(e, m)),
|
|
1481
|
+
value: _ ? j(_[0].replace(e, m)) : m
|
|
1482
|
+
});
|
|
1483
|
+
return L(r), Y;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
function q() {
|
|
1487
|
+
var E = [];
|
|
1488
|
+
O(E);
|
|
1489
|
+
for (var x; x = z(); )
|
|
1490
|
+
x !== !1 && (E.push(x), O(E));
|
|
1491
|
+
return E;
|
|
1492
|
+
}
|
|
1493
|
+
return B(), q();
|
|
1494
|
+
}
|
|
1495
|
+
function j(C) {
|
|
1496
|
+
return C ? C.replace(i, m) : m;
|
|
1497
|
+
}
|
|
1498
|
+
return je = N, je;
|
|
1499
|
+
}
|
|
1500
|
+
var un;
|
|
1501
|
+
function Mt() {
|
|
1502
|
+
if (un) return oe;
|
|
1503
|
+
un = 1;
|
|
1504
|
+
var e = oe && oe.__importDefault || function(a) {
|
|
1505
|
+
return a && a.__esModule ? a : { default: a };
|
|
1506
|
+
};
|
|
1507
|
+
Object.defineProperty(oe, "__esModule", { value: !0 }), oe.default = t;
|
|
1508
|
+
const n = e(Nt());
|
|
1509
|
+
function t(a, o) {
|
|
1510
|
+
let l = null;
|
|
1511
|
+
if (!a || typeof a != "string")
|
|
1512
|
+
return l;
|
|
1513
|
+
const r = (0, n.default)(a), i = typeof o == "function";
|
|
1514
|
+
return r.forEach((d) => {
|
|
1515
|
+
if (d.type !== "declaration")
|
|
1516
|
+
return;
|
|
1517
|
+
const { property: f, value: p } = d;
|
|
1518
|
+
i ? o(f, p, d) : p && (l = l || {}, l[f] = p);
|
|
1519
|
+
}), l;
|
|
1520
|
+
}
|
|
1521
|
+
return oe;
|
|
1522
|
+
}
|
|
1523
|
+
var ce = {}, fn;
|
|
1524
|
+
function Tt() {
|
|
1525
|
+
if (fn) return ce;
|
|
1526
|
+
fn = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.camelCase = void 0;
|
|
1527
|
+
var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, a = /^-(webkit|moz|ms|o|khtml)-/, o = /^-(ms)-/, l = function(f) {
|
|
1528
|
+
return !f || t.test(f) || e.test(f);
|
|
1529
|
+
}, r = function(f, p) {
|
|
1530
|
+
return p.toUpperCase();
|
|
1531
|
+
}, i = function(f, p) {
|
|
1532
|
+
return "".concat(p, "-");
|
|
1533
|
+
}, d = function(f, p) {
|
|
1534
|
+
return p === void 0 && (p = {}), l(f) ? f : (f = f.toLowerCase(), p.reactCompat ? f = f.replace(o, i) : f = f.replace(a, i), f.replace(n, r));
|
|
1535
|
+
};
|
|
1536
|
+
return ce.camelCase = d, ce;
|
|
1537
|
+
}
|
|
1538
|
+
var de, pn;
|
|
1539
|
+
function Rt() {
|
|
1540
|
+
if (pn) return de;
|
|
1541
|
+
pn = 1;
|
|
1542
|
+
var e = de && de.__importDefault || function(o) {
|
|
1543
|
+
return o && o.__esModule ? o : { default: o };
|
|
1544
|
+
}, n = e(Mt()), t = Tt();
|
|
1545
|
+
function a(o, l) {
|
|
1546
|
+
var r = {};
|
|
1547
|
+
return !o || typeof o != "string" || (0, n.default)(o, function(i, d) {
|
|
1548
|
+
i && d && (r[(0, t.camelCase)(i, l)] = d);
|
|
1549
|
+
}), r;
|
|
1550
|
+
}
|
|
1551
|
+
return a.default = a, de = a, de;
|
|
1552
|
+
}
|
|
1553
|
+
var At = Rt();
|
|
1554
|
+
const Pt = /* @__PURE__ */ qn(At), It = Ft("start");
|
|
1555
|
+
function Ft(e) {
|
|
1556
|
+
return n;
|
|
1557
|
+
function n(t) {
|
|
1558
|
+
const a = t && t.position && t.position[e] || {};
|
|
1559
|
+
if (typeof a.line == "number" && a.line > 0 && typeof a.column == "number" && a.column > 0)
|
|
1560
|
+
return {
|
|
1561
|
+
line: a.line,
|
|
1562
|
+
column: a.column,
|
|
1563
|
+
offset: typeof a.offset == "number" && a.offset > -1 ? a.offset : void 0
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
function _t(e) {
|
|
1568
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? mn(e.position) : "start" in e || "end" in e ? mn(e) : "line" in e || "column" in e ? Fe(e) : "";
|
|
1569
|
+
}
|
|
1570
|
+
function Fe(e) {
|
|
1571
|
+
return hn(e && e.line) + ":" + hn(e && e.column);
|
|
1572
|
+
}
|
|
1573
|
+
function mn(e) {
|
|
1574
|
+
return Fe(e && e.start) + "-" + Fe(e && e.end);
|
|
1575
|
+
}
|
|
1576
|
+
function hn(e) {
|
|
1577
|
+
return e && typeof e == "number" ? e : 1;
|
|
1578
|
+
}
|
|
1579
|
+
class U extends Error {
|
|
1580
|
+
/**
|
|
1581
|
+
* Create a message for `reason`.
|
|
1582
|
+
*
|
|
1583
|
+
* > 🪦 **Note**: also has obsolete signatures.
|
|
1584
|
+
*
|
|
1585
|
+
* @overload
|
|
1586
|
+
* @param {string} reason
|
|
1587
|
+
* @param {Options | null | undefined} [options]
|
|
1588
|
+
* @returns
|
|
1589
|
+
*
|
|
1590
|
+
* @overload
|
|
1591
|
+
* @param {string} reason
|
|
1592
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
1593
|
+
* @param {string | null | undefined} [origin]
|
|
1594
|
+
* @returns
|
|
1595
|
+
*
|
|
1596
|
+
* @overload
|
|
1597
|
+
* @param {string} reason
|
|
1598
|
+
* @param {Point | Position | null | undefined} place
|
|
1599
|
+
* @param {string | null | undefined} [origin]
|
|
1600
|
+
* @returns
|
|
1601
|
+
*
|
|
1602
|
+
* @overload
|
|
1603
|
+
* @param {string} reason
|
|
1604
|
+
* @param {string | null | undefined} [origin]
|
|
1605
|
+
* @returns
|
|
1606
|
+
*
|
|
1607
|
+
* @overload
|
|
1608
|
+
* @param {Error | VFileMessage} cause
|
|
1609
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
1610
|
+
* @param {string | null | undefined} [origin]
|
|
1611
|
+
* @returns
|
|
1612
|
+
*
|
|
1613
|
+
* @overload
|
|
1614
|
+
* @param {Error | VFileMessage} cause
|
|
1615
|
+
* @param {Point | Position | null | undefined} place
|
|
1616
|
+
* @param {string | null | undefined} [origin]
|
|
1617
|
+
* @returns
|
|
1618
|
+
*
|
|
1619
|
+
* @overload
|
|
1620
|
+
* @param {Error | VFileMessage} cause
|
|
1621
|
+
* @param {string | null | undefined} [origin]
|
|
1622
|
+
* @returns
|
|
1623
|
+
*
|
|
1624
|
+
* @param {Error | VFileMessage | string} causeOrReason
|
|
1625
|
+
* Reason for message, should use markdown.
|
|
1626
|
+
* @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
|
|
1627
|
+
* Configuration (optional).
|
|
1628
|
+
* @param {string | null | undefined} [origin]
|
|
1629
|
+
* Place in code where the message originates (example:
|
|
1630
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
1631
|
+
* @returns
|
|
1632
|
+
* Instance of `VFileMessage`.
|
|
1633
|
+
*/
|
|
1634
|
+
// eslint-disable-next-line complexity
|
|
1635
|
+
constructor(n, t, a) {
|
|
1636
|
+
super(), typeof t == "string" && (a = t, t = void 0);
|
|
1637
|
+
let o = "", l = {}, r = !1;
|
|
1638
|
+
if (t && ("line" in t && "column" in t ? l = { place: t } : "start" in t && "end" in t ? l = { place: t } : "type" in t ? l = {
|
|
1639
|
+
ancestors: [t],
|
|
1640
|
+
place: t.position
|
|
1641
|
+
} : l = { ...t }), typeof n == "string" ? o = n : !l.cause && n && (r = !0, o = n.message, l.cause = n), !l.ruleId && !l.source && typeof a == "string") {
|
|
1642
|
+
const d = a.indexOf(":");
|
|
1643
|
+
d === -1 ? l.ruleId = a : (l.source = a.slice(0, d), l.ruleId = a.slice(d + 1));
|
|
1644
|
+
}
|
|
1645
|
+
if (!l.place && l.ancestors && l.ancestors) {
|
|
1646
|
+
const d = l.ancestors[l.ancestors.length - 1];
|
|
1647
|
+
d && (l.place = d.position);
|
|
1648
|
+
}
|
|
1649
|
+
const i = l.place && "start" in l.place ? l.place.start : l.place;
|
|
1650
|
+
this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = i ? i.column : void 0, this.fatal = void 0, this.file = "", this.message = o, this.line = i ? i.line : void 0, this.name = _t(l.place) || "1:1", this.place = l.place || void 0, this.reason = this.message, this.ruleId = l.ruleId || void 0, this.source = l.source || void 0, this.stack = r && l.cause && typeof l.cause.stack == "string" ? l.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
U.prototype.file = "";
|
|
1654
|
+
U.prototype.name = "";
|
|
1655
|
+
U.prototype.reason = "";
|
|
1656
|
+
U.prototype.message = "";
|
|
1657
|
+
U.prototype.stack = "";
|
|
1658
|
+
U.prototype.column = void 0;
|
|
1659
|
+
U.prototype.line = void 0;
|
|
1660
|
+
U.prototype.ancestors = void 0;
|
|
1661
|
+
U.prototype.cause = void 0;
|
|
1662
|
+
U.prototype.fatal = void 0;
|
|
1663
|
+
U.prototype.place = void 0;
|
|
1664
|
+
U.prototype.ruleId = void 0;
|
|
1665
|
+
U.prototype.source = void 0;
|
|
1666
|
+
const Qe = {}.hasOwnProperty, Ot = /* @__PURE__ */ new Map(), zt = /[A-Z]/g, $t = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ut = /* @__PURE__ */ new Set(["td", "th"]), Pn = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1667
|
+
function Bt(e, n) {
|
|
1668
|
+
if (!n || n.Fragment === void 0)
|
|
1669
|
+
throw new TypeError("Expected `Fragment` in options");
|
|
1670
|
+
const t = n.filePath || void 0;
|
|
1671
|
+
let a;
|
|
1672
|
+
if (n.development) {
|
|
1673
|
+
if (typeof n.jsxDEV != "function")
|
|
1674
|
+
throw new TypeError(
|
|
1675
|
+
"Expected `jsxDEV` in options when `development: true`"
|
|
1676
|
+
);
|
|
1677
|
+
a = Jt(t, n.jsxDEV);
|
|
1678
|
+
} else {
|
|
1679
|
+
if (typeof n.jsx != "function")
|
|
1680
|
+
throw new TypeError("Expected `jsx` in production options");
|
|
1681
|
+
if (typeof n.jsxs != "function")
|
|
1682
|
+
throw new TypeError("Expected `jsxs` in production options");
|
|
1683
|
+
a = Gt(t, n.jsx, n.jsxs);
|
|
1684
|
+
}
|
|
1685
|
+
const o = {
|
|
1686
|
+
Fragment: n.Fragment,
|
|
1687
|
+
ancestors: [],
|
|
1688
|
+
components: n.components || {},
|
|
1689
|
+
create: a,
|
|
1690
|
+
elementAttributeNameCase: n.elementAttributeNameCase || "react",
|
|
1691
|
+
evaluater: n.createEvaluater ? n.createEvaluater() : void 0,
|
|
1692
|
+
filePath: t,
|
|
1693
|
+
ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
|
|
1694
|
+
passKeys: n.passKeys !== !1,
|
|
1695
|
+
passNode: n.passNode || !1,
|
|
1696
|
+
schema: n.space === "svg" ? Ze : Lt,
|
|
1697
|
+
stylePropertyNameCase: n.stylePropertyNameCase || "dom",
|
|
1698
|
+
tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
|
|
1699
|
+
}, l = In(o, e, void 0);
|
|
1700
|
+
return l && typeof l != "string" ? l : o.create(
|
|
1701
|
+
e,
|
|
1702
|
+
o.Fragment,
|
|
1703
|
+
{ children: l || void 0 },
|
|
1704
|
+
void 0
|
|
1705
|
+
);
|
|
1706
|
+
}
|
|
1707
|
+
function In(e, n, t) {
|
|
1708
|
+
if (n.type === "element")
|
|
1709
|
+
return Vt(e, n, t);
|
|
1710
|
+
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
|
|
1711
|
+
return Ht(e, n);
|
|
1712
|
+
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
|
|
1713
|
+
return Wt(e, n, t);
|
|
1714
|
+
if (n.type === "mdxjsEsm")
|
|
1715
|
+
return Kt(e, n);
|
|
1716
|
+
if (n.type === "root")
|
|
1717
|
+
return qt(e, n, t);
|
|
1718
|
+
if (n.type === "text")
|
|
1719
|
+
return Xt(e, n);
|
|
1720
|
+
}
|
|
1721
|
+
function Vt(e, n, t) {
|
|
1722
|
+
const a = e.schema;
|
|
1723
|
+
let o = a;
|
|
1724
|
+
n.tagName.toLowerCase() === "svg" && a.space === "html" && (o = Ze, e.schema = o), e.ancestors.push(n);
|
|
1725
|
+
const l = _n(e, n.tagName, !1), r = Yt(e, n);
|
|
1726
|
+
let i = nn(e, n);
|
|
1727
|
+
return $t.has(n.tagName) && (i = i.filter(function(d) {
|
|
1728
|
+
return typeof d == "string" ? !yt(d) : !0;
|
|
1729
|
+
})), Fn(e, r, l, n), en(r, i), e.ancestors.pop(), e.schema = a, e.create(n, l, r, t);
|
|
1730
|
+
}
|
|
1731
|
+
function Ht(e, n) {
|
|
1732
|
+
if (n.data && n.data.estree && e.evaluater) {
|
|
1733
|
+
const a = n.data.estree.body[0];
|
|
1734
|
+
return a.type, /** @type {Child | undefined} */
|
|
1735
|
+
e.evaluater.evaluateExpression(a.expression);
|
|
1736
|
+
}
|
|
1737
|
+
pe(e, n.position);
|
|
1738
|
+
}
|
|
1739
|
+
function Kt(e, n) {
|
|
1740
|
+
if (n.data && n.data.estree && e.evaluater)
|
|
1741
|
+
return (
|
|
1742
|
+
/** @type {Child | undefined} */
|
|
1743
|
+
e.evaluater.evaluateProgram(n.data.estree)
|
|
1744
|
+
);
|
|
1745
|
+
pe(e, n.position);
|
|
1746
|
+
}
|
|
1747
|
+
function Wt(e, n, t) {
|
|
1748
|
+
const a = e.schema;
|
|
1749
|
+
let o = a;
|
|
1750
|
+
n.name === "svg" && a.space === "html" && (o = Ze, e.schema = o), e.ancestors.push(n);
|
|
1751
|
+
const l = n.name === null ? e.Fragment : _n(e, n.name, !0), r = Zt(e, n), i = nn(e, n);
|
|
1752
|
+
return Fn(e, r, l, n), en(r, i), e.ancestors.pop(), e.schema = a, e.create(n, l, r, t);
|
|
1753
|
+
}
|
|
1754
|
+
function qt(e, n, t) {
|
|
1755
|
+
const a = {};
|
|
1756
|
+
return en(a, nn(e, n)), e.create(n, e.Fragment, a, t);
|
|
1757
|
+
}
|
|
1758
|
+
function Xt(e, n) {
|
|
1759
|
+
return n.value;
|
|
1760
|
+
}
|
|
1761
|
+
function Fn(e, n, t, a) {
|
|
1762
|
+
typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = a);
|
|
1763
|
+
}
|
|
1764
|
+
function en(e, n) {
|
|
1765
|
+
if (n.length > 0) {
|
|
1766
|
+
const t = n.length > 1 ? n : n[0];
|
|
1767
|
+
t && (e.children = t);
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
function Gt(e, n, t) {
|
|
1771
|
+
return a;
|
|
1772
|
+
function a(o, l, r, i) {
|
|
1773
|
+
const f = Array.isArray(r.children) ? t : n;
|
|
1774
|
+
return i ? f(l, r, i) : f(l, r);
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
function Jt(e, n) {
|
|
1778
|
+
return t;
|
|
1779
|
+
function t(a, o, l, r) {
|
|
1780
|
+
const i = Array.isArray(l.children), d = It(a);
|
|
1781
|
+
return n(
|
|
1782
|
+
o,
|
|
1783
|
+
l,
|
|
1784
|
+
r,
|
|
1785
|
+
i,
|
|
1786
|
+
{
|
|
1787
|
+
columnNumber: d ? d.column - 1 : void 0,
|
|
1788
|
+
fileName: e,
|
|
1789
|
+
lineNumber: d ? d.line : void 0
|
|
1790
|
+
},
|
|
1791
|
+
void 0
|
|
1792
|
+
);
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
function Yt(e, n) {
|
|
1796
|
+
const t = {};
|
|
1797
|
+
let a, o;
|
|
1798
|
+
for (o in n.properties)
|
|
1799
|
+
if (o !== "children" && Qe.call(n.properties, o)) {
|
|
1800
|
+
const l = Qt(e, o, n.properties[o]);
|
|
1801
|
+
if (l) {
|
|
1802
|
+
const [r, i] = l;
|
|
1803
|
+
e.tableCellAlignToStyle && r === "align" && typeof i == "string" && Ut.has(n.tagName) ? a = i : t[r] = i;
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
if (a) {
|
|
1807
|
+
const l = (
|
|
1808
|
+
/** @type {Style} */
|
|
1809
|
+
t.style || (t.style = {})
|
|
1810
|
+
);
|
|
1811
|
+
l[e.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = a;
|
|
1812
|
+
}
|
|
1813
|
+
return t;
|
|
1814
|
+
}
|
|
1815
|
+
function Zt(e, n) {
|
|
1816
|
+
const t = {};
|
|
1817
|
+
for (const a of n.attributes)
|
|
1818
|
+
if (a.type === "mdxJsxExpressionAttribute")
|
|
1819
|
+
if (a.data && a.data.estree && e.evaluater) {
|
|
1820
|
+
const l = a.data.estree.body[0];
|
|
1821
|
+
l.type;
|
|
1822
|
+
const r = l.expression;
|
|
1823
|
+
r.type;
|
|
1824
|
+
const i = r.properties[0];
|
|
1825
|
+
i.type, Object.assign(
|
|
1826
|
+
t,
|
|
1827
|
+
e.evaluater.evaluateExpression(i.argument)
|
|
1828
|
+
);
|
|
1829
|
+
} else
|
|
1830
|
+
pe(e, n.position);
|
|
1831
|
+
else {
|
|
1832
|
+
const o = a.name;
|
|
1833
|
+
let l;
|
|
1834
|
+
if (a.value && typeof a.value == "object")
|
|
1835
|
+
if (a.value.data && a.value.data.estree && e.evaluater) {
|
|
1836
|
+
const i = a.value.data.estree.body[0];
|
|
1837
|
+
i.type, l = e.evaluater.evaluateExpression(i.expression);
|
|
1838
|
+
} else
|
|
1839
|
+
pe(e, n.position);
|
|
1840
|
+
else
|
|
1841
|
+
l = a.value === null ? !0 : a.value;
|
|
1842
|
+
t[o] = /** @type {Props[keyof Props]} */
|
|
1843
|
+
l;
|
|
1844
|
+
}
|
|
1845
|
+
return t;
|
|
1846
|
+
}
|
|
1847
|
+
function nn(e, n) {
|
|
1848
|
+
const t = [];
|
|
1849
|
+
let a = -1;
|
|
1850
|
+
const o = e.passKeys ? /* @__PURE__ */ new Map() : Ot;
|
|
1851
|
+
for (; ++a < n.children.length; ) {
|
|
1852
|
+
const l = n.children[a];
|
|
1853
|
+
let r;
|
|
1854
|
+
if (e.passKeys) {
|
|
1855
|
+
const d = l.type === "element" ? l.tagName : l.type === "mdxJsxFlowElement" || l.type === "mdxJsxTextElement" ? l.name : void 0;
|
|
1856
|
+
if (d) {
|
|
1857
|
+
const f = o.get(d) || 0;
|
|
1858
|
+
r = d + "-" + f, o.set(d, f + 1);
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
const i = In(e, l, r);
|
|
1862
|
+
i !== void 0 && t.push(i);
|
|
1863
|
+
}
|
|
1864
|
+
return t;
|
|
1865
|
+
}
|
|
1866
|
+
function Qt(e, n, t) {
|
|
1867
|
+
const a = Et(e.schema, n);
|
|
1868
|
+
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
|
1869
|
+
if (Array.isArray(t) && (t = a.commaSeparated ? ft(t) : Dt(t)), a.property === "style") {
|
|
1870
|
+
let o = typeof t == "object" ? t : ea(e, String(t));
|
|
1871
|
+
return e.stylePropertyNameCase === "css" && (o = na(o)), ["style", o];
|
|
1872
|
+
}
|
|
1873
|
+
return [
|
|
1874
|
+
e.elementAttributeNameCase === "react" && a.space ? kt[a.property] || a.property : a.attribute,
|
|
1875
|
+
t
|
|
1876
|
+
];
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
function ea(e, n) {
|
|
1880
|
+
try {
|
|
1881
|
+
return Pt(n, { reactCompat: !0 });
|
|
1882
|
+
} catch (t) {
|
|
1883
|
+
if (e.ignoreInvalidStyle)
|
|
1884
|
+
return {};
|
|
1885
|
+
const a = (
|
|
1886
|
+
/** @type {Error} */
|
|
1887
|
+
t
|
|
1888
|
+
), o = new U("Cannot parse `style` attribute", {
|
|
1889
|
+
ancestors: e.ancestors,
|
|
1890
|
+
cause: a,
|
|
1891
|
+
ruleId: "style",
|
|
1892
|
+
source: "hast-util-to-jsx-runtime"
|
|
1893
|
+
});
|
|
1894
|
+
throw o.file = e.filePath || void 0, o.url = Pn + "#cannot-parse-style-attribute", o;
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
function _n(e, n, t) {
|
|
1898
|
+
let a;
|
|
1899
|
+
if (!t)
|
|
1900
|
+
a = { type: "Literal", value: n };
|
|
1901
|
+
else if (n.includes(".")) {
|
|
1902
|
+
const o = n.split(".");
|
|
1903
|
+
let l = -1, r;
|
|
1904
|
+
for (; ++l < o.length; ) {
|
|
1905
|
+
const i = on(o[l]) ? { type: "Identifier", name: o[l] } : { type: "Literal", value: o[l] };
|
|
1906
|
+
r = r ? {
|
|
1907
|
+
type: "MemberExpression",
|
|
1908
|
+
object: r,
|
|
1909
|
+
property: i,
|
|
1910
|
+
computed: !!(l && i.type === "Literal"),
|
|
1911
|
+
optional: !1
|
|
1912
|
+
} : i;
|
|
1913
|
+
}
|
|
1914
|
+
a = r;
|
|
1915
|
+
} else
|
|
1916
|
+
a = on(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
|
|
1917
|
+
if (a.type === "Literal") {
|
|
1918
|
+
const o = (
|
|
1919
|
+
/** @type {string | number} */
|
|
1920
|
+
a.value
|
|
1921
|
+
);
|
|
1922
|
+
return Qe.call(e.components, o) ? e.components[o] : o;
|
|
1923
|
+
}
|
|
1924
|
+
if (e.evaluater)
|
|
1925
|
+
return e.evaluater.evaluateExpression(a);
|
|
1926
|
+
pe(e);
|
|
1927
|
+
}
|
|
1928
|
+
function pe(e, n) {
|
|
1929
|
+
const t = new U(
|
|
1930
|
+
"Cannot handle MDX estrees without `createEvaluater`",
|
|
1931
|
+
{
|
|
1932
|
+
ancestors: e.ancestors,
|
|
1933
|
+
place: n,
|
|
1934
|
+
ruleId: "mdx-estree",
|
|
1935
|
+
source: "hast-util-to-jsx-runtime"
|
|
1936
|
+
}
|
|
1937
|
+
);
|
|
1938
|
+
throw t.file = e.filePath || void 0, t.url = Pn + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
|
1939
|
+
}
|
|
1940
|
+
function na(e) {
|
|
1941
|
+
const n = {};
|
|
1942
|
+
let t;
|
|
1943
|
+
for (t in e)
|
|
1944
|
+
Qe.call(e, t) && (n[ta(t)] = e[t]);
|
|
1945
|
+
return n;
|
|
1946
|
+
}
|
|
1947
|
+
function ta(e) {
|
|
1948
|
+
let n = e.replace(zt, aa);
|
|
1949
|
+
return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
|
|
1950
|
+
}
|
|
1951
|
+
function aa(e) {
|
|
1952
|
+
return "-" + e.toLowerCase();
|
|
1953
|
+
}
|
|
1954
|
+
const On = 1500;
|
|
1955
|
+
function ke({
|
|
1956
|
+
value: e,
|
|
1957
|
+
label: n,
|
|
1958
|
+
action: t,
|
|
1959
|
+
className: a = "df-block-button",
|
|
1960
|
+
icon: o = "copy",
|
|
1961
|
+
failureLabel: l = T.copyFailed
|
|
1962
|
+
}) {
|
|
1963
|
+
const [r, i] = c.useState("idle");
|
|
1964
|
+
c.useEffect(() => {
|
|
1965
|
+
if (r === "idle") return;
|
|
1966
|
+
const f = setTimeout(() => i("idle"), On);
|
|
1967
|
+
return () => clearTimeout(f);
|
|
1968
|
+
}, [r]);
|
|
1969
|
+
const d = r === "success" ? `${n} ✓` : r === "error" ? l : n;
|
|
1970
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1971
|
+
"button",
|
|
1972
|
+
{
|
|
1973
|
+
className: `${a}${r === "success" ? " df-action-success" : ""}${r === "error" ? " df-action-error" : ""}`,
|
|
1974
|
+
type: "button",
|
|
1975
|
+
"data-df-action": t,
|
|
1976
|
+
"data-df-copied": r === "success" ? "true" : void 0,
|
|
1977
|
+
"data-df-copy-error": r === "error" ? "true" : void 0,
|
|
1978
|
+
"aria-label": d,
|
|
1979
|
+
title: d,
|
|
1980
|
+
onClick: async () => {
|
|
1981
|
+
try {
|
|
1982
|
+
i(await jn(e) ? "success" : "error");
|
|
1983
|
+
} catch {
|
|
1984
|
+
i("error");
|
|
1985
|
+
}
|
|
1986
|
+
},
|
|
1987
|
+
children: [
|
|
1988
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-action-icon df-action-icon-copy", "aria-hidden": "true", children: /* @__PURE__ */ s.jsx(W, { name: o }) }),
|
|
1989
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-action-icon df-action-icon-success", "aria-hidden": "true", children: /* @__PURE__ */ s.jsx(et, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) }),
|
|
1990
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-sr-only", "aria-live": "polite", "aria-atomic": "true", children: r === "idle" ? "" : d })
|
|
1991
|
+
]
|
|
1992
|
+
}
|
|
1993
|
+
);
|
|
1994
|
+
}
|
|
1995
|
+
function la({
|
|
1996
|
+
value: e,
|
|
1997
|
+
filename: n,
|
|
1998
|
+
label: t,
|
|
1999
|
+
action: a,
|
|
2000
|
+
className: o = "df-block-button",
|
|
2001
|
+
contentType: l = "text/plain;charset=utf-8"
|
|
2002
|
+
}) {
|
|
2003
|
+
const [r, i] = c.useState();
|
|
2004
|
+
return c.useEffect(() => {
|
|
2005
|
+
if (typeof URL > "u" || typeof URL.createObjectURL != "function") return;
|
|
2006
|
+
const d = URL.createObjectURL(new Blob([e], { type: l }));
|
|
2007
|
+
return i(d), () => URL.revokeObjectURL(d);
|
|
2008
|
+
}, [l, e]), /* @__PURE__ */ s.jsx(
|
|
2009
|
+
"a",
|
|
2010
|
+
{
|
|
2011
|
+
className: o,
|
|
2012
|
+
href: r ?? "#",
|
|
2013
|
+
download: n,
|
|
2014
|
+
"data-df-action": a,
|
|
2015
|
+
"aria-disabled": r ? void 0 : "true",
|
|
2016
|
+
"aria-label": t,
|
|
2017
|
+
title: t,
|
|
2018
|
+
tabIndex: r ? void 0 : -1,
|
|
2019
|
+
onClick: (d) => {
|
|
2020
|
+
r || d.preventDefault();
|
|
2021
|
+
},
|
|
2022
|
+
children: /* @__PURE__ */ s.jsx(W, { name: "download" })
|
|
2023
|
+
}
|
|
2024
|
+
);
|
|
2025
|
+
}
|
|
2026
|
+
const oa = {
|
|
2027
|
+
"package.json": "package",
|
|
2028
|
+
"package-lock.json": "package",
|
|
2029
|
+
"pnpm-lock.yaml": "package",
|
|
2030
|
+
"yarn.lock": "package",
|
|
2031
|
+
"bun.lock": "package",
|
|
2032
|
+
"bun.lockb": "package",
|
|
2033
|
+
"deno.json": "package",
|
|
2034
|
+
"deno.jsonc": "package",
|
|
2035
|
+
"pnpm-workspace.yaml": "package",
|
|
2036
|
+
".gitignore": "config",
|
|
2037
|
+
".editorconfig": "config",
|
|
2038
|
+
".npmrc": "config",
|
|
2039
|
+
".nvmrc": "config",
|
|
2040
|
+
".prettierrc": "config",
|
|
2041
|
+
"biome.json": "config",
|
|
2042
|
+
dockerfile: "container",
|
|
2043
|
+
containerfile: "container",
|
|
2044
|
+
"tsconfig.json": "config",
|
|
2045
|
+
"jsconfig.json": "config",
|
|
2046
|
+
"turbo.json": "config",
|
|
2047
|
+
"vite.config.ts": "config",
|
|
2048
|
+
"vite.config.js": "config"
|
|
2049
|
+
}, ra = {
|
|
2050
|
+
ts: "typescript",
|
|
2051
|
+
tsx: "typescript",
|
|
2052
|
+
mts: "typescript",
|
|
2053
|
+
cts: "typescript",
|
|
2054
|
+
js: "javascript",
|
|
2055
|
+
jsx: "javascript",
|
|
2056
|
+
mjs: "javascript",
|
|
2057
|
+
cjs: "javascript",
|
|
2058
|
+
md: "markdown",
|
|
2059
|
+
mdx: "markdown",
|
|
2060
|
+
css: "style",
|
|
2061
|
+
conf: "config",
|
|
2062
|
+
scss: "style",
|
|
2063
|
+
sass: "style",
|
|
2064
|
+
less: "style",
|
|
2065
|
+
json: "data",
|
|
2066
|
+
jsonc: "data",
|
|
2067
|
+
yaml: "data",
|
|
2068
|
+
yml: "data",
|
|
2069
|
+
toml: "data",
|
|
2070
|
+
sql: "database",
|
|
2071
|
+
diff: "diff",
|
|
2072
|
+
patch: "diff",
|
|
2073
|
+
sh: "shell",
|
|
2074
|
+
bash: "shell",
|
|
2075
|
+
zsh: "shell",
|
|
2076
|
+
fish: "shell",
|
|
2077
|
+
vue: "component",
|
|
2078
|
+
svelte: "component",
|
|
2079
|
+
astro: "component",
|
|
2080
|
+
py: "source",
|
|
2081
|
+
go: "source",
|
|
2082
|
+
rs: "source"
|
|
2083
|
+
}, ia = {
|
|
2084
|
+
typescript: "typescript",
|
|
2085
|
+
ts: "typescript",
|
|
2086
|
+
tsx: "typescript",
|
|
2087
|
+
javascript: "javascript",
|
|
2088
|
+
js: "javascript",
|
|
2089
|
+
jsx: "javascript",
|
|
2090
|
+
markdown: "markdown",
|
|
2091
|
+
md: "markdown",
|
|
2092
|
+
mdx: "markdown",
|
|
2093
|
+
css: "style",
|
|
2094
|
+
scss: "style",
|
|
2095
|
+
sass: "style",
|
|
2096
|
+
less: "style",
|
|
2097
|
+
json: "data",
|
|
2098
|
+
jsonc: "data",
|
|
2099
|
+
yaml: "data",
|
|
2100
|
+
yml: "data",
|
|
2101
|
+
toml: "data",
|
|
2102
|
+
sql: "database",
|
|
2103
|
+
diff: "diff",
|
|
2104
|
+
docker: "container",
|
|
2105
|
+
dockerfile: "container",
|
|
2106
|
+
nginx: "config",
|
|
2107
|
+
shell: "shell",
|
|
2108
|
+
sh: "shell",
|
|
2109
|
+
bash: "shell",
|
|
2110
|
+
zsh: "shell",
|
|
2111
|
+
terminal: "shell",
|
|
2112
|
+
vue: "component",
|
|
2113
|
+
svelte: "component",
|
|
2114
|
+
astro: "component",
|
|
2115
|
+
python: "source",
|
|
2116
|
+
py: "source",
|
|
2117
|
+
go: "source",
|
|
2118
|
+
rust: "source",
|
|
2119
|
+
rs: "source"
|
|
2120
|
+
};
|
|
2121
|
+
function zn(e, n = "") {
|
|
2122
|
+
const t = e.split(/[\\/]/).pop()?.toLowerCase() || "", a = oa[t];
|
|
2123
|
+
if (a) return a;
|
|
2124
|
+
if (/^\.env(?:\..+)?$/.test(t)) return "environment";
|
|
2125
|
+
if (/(^|\.)config\.[^.]+$/.test(t) || /^\.[a-z0-9-]+rc(?:\.[^.]+)?$/.test(t))
|
|
2126
|
+
return "config";
|
|
2127
|
+
const o = t.includes(".") && t.split(".").pop() || "";
|
|
2128
|
+
return ra[o] || ia[n.toLowerCase()] || "file";
|
|
2129
|
+
}
|
|
2130
|
+
const gn = {
|
|
2131
|
+
astro: "astro",
|
|
2132
|
+
bash: "console",
|
|
2133
|
+
css: "css",
|
|
2134
|
+
diff: "diff",
|
|
2135
|
+
docker: "docker",
|
|
2136
|
+
dockerfile: "docker",
|
|
2137
|
+
go: "go",
|
|
2138
|
+
javascript: "javascript",
|
|
2139
|
+
js: "javascript",
|
|
2140
|
+
jsx: "javascript",
|
|
2141
|
+
json: "json",
|
|
2142
|
+
jsonc: "json",
|
|
2143
|
+
markdown: "markdown",
|
|
2144
|
+
md: "markdown",
|
|
2145
|
+
mdx: "markdown",
|
|
2146
|
+
python: "python",
|
|
2147
|
+
py: "python",
|
|
2148
|
+
rust: "rust",
|
|
2149
|
+
rs: "rust",
|
|
2150
|
+
sass: "sass",
|
|
2151
|
+
scss: "sass",
|
|
2152
|
+
shell: "console",
|
|
2153
|
+
sh: "console",
|
|
2154
|
+
sql: "database",
|
|
2155
|
+
svelte: "svelte",
|
|
2156
|
+
terminal: "console",
|
|
2157
|
+
typescript: "typescript",
|
|
2158
|
+
ts: "typescript",
|
|
2159
|
+
tsx: "typescript",
|
|
2160
|
+
vue: "vue",
|
|
2161
|
+
yaml: "yaml",
|
|
2162
|
+
yml: "yaml",
|
|
2163
|
+
zsh: "console"
|
|
2164
|
+
};
|
|
2165
|
+
function sa(e, n = "") {
|
|
2166
|
+
const t = e.replace(/\\/g, "/").toLowerCase(), a = t.split("/").pop() || "";
|
|
2167
|
+
if (/^docfuse\.config\.(?:[cm]?[jt]s)$/.test(a)) return "docfuse";
|
|
2168
|
+
if (/^(?:.*\/)?\.github\/workflows\/[^/]+\.ya?ml$/.test(t)) return "github-actions";
|
|
2169
|
+
if (["npm", "pnpm", "yarn", "bun", "deno"].includes(a))
|
|
2170
|
+
return a;
|
|
2171
|
+
if (a === "package.json") return "nodejs";
|
|
2172
|
+
if (a.startsWith("pnpm-") || a === "pnpm-lock.yaml") return "pnpm";
|
|
2173
|
+
if (a === "package-lock.json" || a === ".npmrc") return "npm";
|
|
2174
|
+
if (a === "yarn.lock") return "yarn";
|
|
2175
|
+
if (a === "bun.lock" || a === "bun.lockb") return "bun";
|
|
2176
|
+
if (a === "deno.json" || a === "deno.jsonc") return "deno";
|
|
2177
|
+
if (a === "dockerfile" || a === "containerfile") return "docker";
|
|
2178
|
+
if (a === ".gitignore" || a === ".gitattributes" || a === ".gitmodules")
|
|
2179
|
+
return "git";
|
|
2180
|
+
if (/^\.env(?:\.|$)/.test(a)) return "environment";
|
|
2181
|
+
if (a === "tsconfig.json" || a === "jsconfig.json") return "typescript";
|
|
2182
|
+
if (/\.(?:jsx|tsx)$/.test(a)) return "react";
|
|
2183
|
+
const o = zn(a, n);
|
|
2184
|
+
if (o === "config") return "config";
|
|
2185
|
+
if (o === "database") return "database";
|
|
2186
|
+
if (o === "diff") return "diff";
|
|
2187
|
+
if (o === "shell") return "console";
|
|
2188
|
+
if (o === "container") return "docker";
|
|
2189
|
+
const l = a.includes(".") && a.split(".").pop() || "";
|
|
2190
|
+
return gn[l] || gn[n.toLowerCase()] || "document";
|
|
2191
|
+
}
|
|
2192
|
+
function ca({ filename: e, language: n }) {
|
|
2193
|
+
const t = zn(e, n), a = sa(e, n);
|
|
2194
|
+
return /* @__PURE__ */ s.jsx(
|
|
2195
|
+
"span",
|
|
2196
|
+
{
|
|
2197
|
+
className: "df-code-file-icon",
|
|
2198
|
+
"data-df-file-icon": a,
|
|
2199
|
+
"data-df-file-kind": t,
|
|
2200
|
+
"aria-hidden": "true"
|
|
2201
|
+
}
|
|
2202
|
+
);
|
|
2203
|
+
}
|
|
2204
|
+
function da(e) {
|
|
2205
|
+
const n = ne(e).find((t) => V(t) === "pre");
|
|
2206
|
+
return X(n ? n.props.children : e);
|
|
2207
|
+
}
|
|
2208
|
+
function _e({
|
|
2209
|
+
children: e,
|
|
2210
|
+
source: n,
|
|
2211
|
+
language: t,
|
|
2212
|
+
filename: a,
|
|
2213
|
+
copyLabel: o,
|
|
2214
|
+
copyFailureLabel: l,
|
|
2215
|
+
...r
|
|
2216
|
+
}) {
|
|
2217
|
+
const i = r, d = n ?? (h(i, "data-df-source", "dataDfSource") || da(e)), f = t ?? (h(i, "data-df-language", "dataDfLanguage") || "text"), p = a ?? (h(i, "data-df-filename", "dataDfFilename") || void 0), m = o ?? (h(i, "data-df-copy-label", "dataDfCopyLabel") || T.copyCode), k = l ?? (h(i, "data-df-copy-failure-label", "dataDfCopyFailureLabel") || T.copyFailed), b = G("df-code", i.className), { className: N, ...j } = Q(i);
|
|
2218
|
+
return /* @__PURE__ */ s.jsxs("figure", { ...j, className: b, "data-df-component": "code-block", "data-df-slot": "root", children: [
|
|
2219
|
+
/* @__PURE__ */ s.jsx(
|
|
2220
|
+
ua,
|
|
2221
|
+
{
|
|
2222
|
+
source: d,
|
|
2223
|
+
language: f,
|
|
2224
|
+
filename: p,
|
|
2225
|
+
copyLabel: m,
|
|
2226
|
+
copyFailureLabel: k
|
|
2227
|
+
}
|
|
2228
|
+
),
|
|
2229
|
+
e
|
|
2230
|
+
] });
|
|
2231
|
+
}
|
|
2232
|
+
function ua({
|
|
2233
|
+
source: e,
|
|
2234
|
+
language: n,
|
|
2235
|
+
filename: t,
|
|
2236
|
+
copyLabel: a = T.copyCode,
|
|
2237
|
+
copyFailureLabel: o = T.copyFailed
|
|
2238
|
+
}) {
|
|
2239
|
+
const l = t ? /* @__PURE__ */ s.jsxs("span", { className: "df-code-file", "data-df-slot": "title", "data-df-language": n, children: [
|
|
2240
|
+
/* @__PURE__ */ s.jsx(ca, { filename: t, language: n }),
|
|
2241
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-code-file-name", children: t })
|
|
2242
|
+
] }) : /* @__PURE__ */ s.jsx("span", { className: "df-code-lang", "data-df-slot": "title", children: n }), r = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2243
|
+
l,
|
|
2244
|
+
/* @__PURE__ */ s.jsx("div", { className: "df-block-actions", "data-df-slot": "actions", children: /* @__PURE__ */ s.jsx(
|
|
2245
|
+
ke,
|
|
2246
|
+
{
|
|
2247
|
+
value: e,
|
|
2248
|
+
label: a,
|
|
2249
|
+
failureLabel: o,
|
|
2250
|
+
action: "copy-code"
|
|
2251
|
+
}
|
|
2252
|
+
) })
|
|
2253
|
+
] });
|
|
2254
|
+
return /* @__PURE__ */ s.jsx(
|
|
2255
|
+
"div",
|
|
2256
|
+
{
|
|
2257
|
+
className: "df-code-bar",
|
|
2258
|
+
"data-df-slot": "toolbar",
|
|
2259
|
+
"data-df-behavior": "code-toolbar",
|
|
2260
|
+
"data-df-language": n,
|
|
2261
|
+
"data-df-filename": t,
|
|
2262
|
+
"data-df-copy-label": a,
|
|
2263
|
+
"data-df-copy-failure-label": o,
|
|
2264
|
+
children: r
|
|
2265
|
+
}
|
|
2266
|
+
);
|
|
2267
|
+
}
|
|
2268
|
+
function Oe({
|
|
2269
|
+
children: e,
|
|
2270
|
+
value: n,
|
|
2271
|
+
copyLabel: t,
|
|
2272
|
+
copyFailureLabel: a,
|
|
2273
|
+
className: o,
|
|
2274
|
+
inner: l = !1,
|
|
2275
|
+
...r
|
|
2276
|
+
}) {
|
|
2277
|
+
const i = n ?? (h(r, "data-df-value", "dataDfValue") || X(e)), d = t || h(r, "data-df-copy-label", "dataDfCopyLabel") || T.copySnippet, f = a || h(r, "data-df-copy-failure-label", "dataDfCopyFailureLabel") || T.copyFailed, p = G("df-copy-snippet", o), { className: m, ...k } = Q(r), b = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2278
|
+
/* @__PURE__ */ s.jsx("code", { "data-df-slot": "content", children: e ?? i }),
|
|
2279
|
+
/* @__PURE__ */ s.jsx(
|
|
2280
|
+
ke,
|
|
2281
|
+
{
|
|
2282
|
+
value: i,
|
|
2283
|
+
label: d,
|
|
2284
|
+
action: "copy-snippet",
|
|
2285
|
+
className: "df-copy-snippet-button",
|
|
2286
|
+
failureLabel: f
|
|
2287
|
+
}
|
|
2288
|
+
)
|
|
2289
|
+
] });
|
|
2290
|
+
return l ? b : /* @__PURE__ */ s.jsx(
|
|
2291
|
+
"span",
|
|
2292
|
+
{
|
|
2293
|
+
...k,
|
|
2294
|
+
className: p,
|
|
2295
|
+
"data-df-component": "copy-snippet",
|
|
2296
|
+
"data-df-slot": "root",
|
|
2297
|
+
"data-df-behavior": "copy-snippet",
|
|
2298
|
+
"data-df-value": i,
|
|
2299
|
+
"data-df-copy-label": d,
|
|
2300
|
+
"data-df-copy-failure-label": f,
|
|
2301
|
+
children: b
|
|
2302
|
+
}
|
|
2303
|
+
);
|
|
2304
|
+
}
|
|
2305
|
+
function fa(e) {
|
|
2306
|
+
return ne(e).find((n) => V(n) === "table");
|
|
2307
|
+
}
|
|
2308
|
+
function ze(e) {
|
|
2309
|
+
return e ? ne(e.props.children).filter((n) => V(n) === "tr") : [];
|
|
2310
|
+
}
|
|
2311
|
+
function be(e) {
|
|
2312
|
+
return ne(e.props.children).filter(
|
|
2313
|
+
(n) => V(n) === "th" || V(n) === "td"
|
|
2314
|
+
);
|
|
2315
|
+
}
|
|
2316
|
+
function yn(e, n) {
|
|
2317
|
+
return ne(e.props.children).find(
|
|
2318
|
+
(t) => V(t) === n
|
|
2319
|
+
);
|
|
2320
|
+
}
|
|
2321
|
+
function pa(e) {
|
|
2322
|
+
return /[",\n]/.test(e) ? `"${e.replace(/"/g, '""')}"` : e;
|
|
2323
|
+
}
|
|
2324
|
+
function ma(e) {
|
|
2325
|
+
return e ? ne(e.props.children).filter(
|
|
2326
|
+
(t) => V(t) === "thead" || V(t) === "tbody"
|
|
2327
|
+
).flatMap(
|
|
2328
|
+
(t) => ze(t).map(
|
|
2329
|
+
(a) => be(a).map((o) => pa(X(o.props.children))).join(",")
|
|
2330
|
+
)
|
|
2331
|
+
).join(`
|
|
2332
|
+
`) : "";
|
|
2333
|
+
}
|
|
2334
|
+
function ha(e, n, t, a) {
|
|
2335
|
+
if (!e) return null;
|
|
2336
|
+
const o = yn(e, "thead"), l = yn(e, "tbody"), r = ze(o), i = r[0] ? be(r[0]).map((p, m) => {
|
|
2337
|
+
const k = n?.column === m, b = k ? n.direction : void 0;
|
|
2338
|
+
return c.cloneElement(p, {
|
|
2339
|
+
"aria-sort": k ? b === "asc" ? "ascending" : "descending" : void 0,
|
|
2340
|
+
children: /* @__PURE__ */ s.jsxs(
|
|
2341
|
+
"button",
|
|
2342
|
+
{
|
|
2343
|
+
className: "df-sort-button",
|
|
2344
|
+
type: "button",
|
|
2345
|
+
"data-df-action": "sort-table",
|
|
2346
|
+
"data-column": String(m),
|
|
2347
|
+
"data-sort": b,
|
|
2348
|
+
"aria-pressed": k ? "true" : "false",
|
|
2349
|
+
"aria-label": t.replace("{column}", String(m + 1)),
|
|
2350
|
+
title: t.replace("{column}", String(m + 1)),
|
|
2351
|
+
onClick: () => a?.(m),
|
|
2352
|
+
children: [
|
|
2353
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-sort-label", children: p.props.children }),
|
|
2354
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-sort-icon", "aria-hidden": "true", children: /* @__PURE__ */ s.jsx(W, { name: "sort", direction: b }) })
|
|
2355
|
+
]
|
|
2356
|
+
}
|
|
2357
|
+
)
|
|
2358
|
+
});
|
|
2359
|
+
}) : [], d = l ? ze(l).slice().sort((p, m) => {
|
|
2360
|
+
if (!n) return 0;
|
|
2361
|
+
const k = X(be(p)[n.column]?.props.children), b = X(be(m)[n.column]?.props.children), N = k.localeCompare(b, void 0, { numeric: !0, sensitivity: "base" });
|
|
2362
|
+
return n.direction === "asc" ? N : -N;
|
|
2363
|
+
}) : [], f = ne(e.props.children).map((p) => V(p) === "thead" && r[0] ? c.cloneElement(p, {
|
|
2364
|
+
children: r.map(
|
|
2365
|
+
(m, k) => k === 0 ? c.cloneElement(m, { children: i }) : m
|
|
2366
|
+
)
|
|
2367
|
+
}) : V(p) === "tbody" && l && n ? c.cloneElement(p, { children: d }) : p);
|
|
2368
|
+
return c.cloneElement(e, { children: f });
|
|
2369
|
+
}
|
|
2370
|
+
function $e({
|
|
2371
|
+
children: e,
|
|
2372
|
+
tableTitle: n,
|
|
2373
|
+
copyLabel: t,
|
|
2374
|
+
copyFailureLabel: a,
|
|
2375
|
+
downloadLabel: o,
|
|
2376
|
+
zoomLabel: l,
|
|
2377
|
+
closeLabel: r,
|
|
2378
|
+
sortLabel: i,
|
|
2379
|
+
serializedTable: d,
|
|
2380
|
+
inner: f = !1,
|
|
2381
|
+
...p
|
|
2382
|
+
}) {
|
|
2383
|
+
const m = p, k = fa(e), b = c.useMemo(() => ma(k), [k]), [N, j] = c.useState(null), [C, g] = c.useState(!1), S = c.useRef(null), y = c.useRef(null), A = c.useRef(null), P = n || h(m, "data-df-table-title", "dataDfTableTitle") || T.tableTitle, R = t || h(m, "data-df-copy-label", "dataDfCopyLabel") || T.copyTableCsv, I = a || h(m, "data-df-copy-failure-label", "dataDfCopyFailureLabel") || T.copyFailed, L = o || h(m, "data-df-download-label", "dataDfDownloadLabel") || T.downloadTableCsv, B = l || h(m, "data-df-zoom-label", "dataDfZoomLabel") || T.zoomTable, O = r || h(m, "data-df-close-label", "dataDfCloseLabel") || T.closeTablePreview, D = i || h(m, "data-df-sort-label", "dataDfSortLabel") || T.sortTableColumn, z = d ?? h(m, "data-df-table", "dataDfTable"), q = G("df-table-window", m.className), { className: E, ...x } = Q(m), Y = ha(k, N, D, (le) => j(
|
|
2384
|
+
(ln) => ln?.column === le ? ln.direction === "asc" ? { column: le, direction: "desc" } : null : { column: le, direction: "asc" }
|
|
2385
|
+
)), he = () => g(!1), ge = wn({
|
|
2386
|
+
open: C,
|
|
2387
|
+
close: he,
|
|
2388
|
+
dialogRef: A,
|
|
2389
|
+
initialFocusRef: A,
|
|
2390
|
+
triggerRef: S
|
|
2391
|
+
}), ye = C && Y ? /* @__PURE__ */ s.jsx(En, { children: /* @__PURE__ */ s.jsxs(
|
|
2392
|
+
"div",
|
|
2393
|
+
{
|
|
2394
|
+
ref: A,
|
|
2395
|
+
className: "df-table-preview",
|
|
2396
|
+
"data-df-slot": "preview",
|
|
2397
|
+
role: "dialog",
|
|
2398
|
+
"aria-modal": "true",
|
|
2399
|
+
"aria-label": P,
|
|
2400
|
+
tabIndex: -1,
|
|
2401
|
+
onKeyDown: ge,
|
|
2402
|
+
children: [
|
|
2403
|
+
/* @__PURE__ */ s.jsx(
|
|
2404
|
+
"div",
|
|
2405
|
+
{
|
|
2406
|
+
className: "df-table-preview-backdrop",
|
|
2407
|
+
"data-df-action": "close-table",
|
|
2408
|
+
"aria-hidden": "true",
|
|
2409
|
+
onClick: he
|
|
2410
|
+
}
|
|
2411
|
+
),
|
|
2412
|
+
/* @__PURE__ */ s.jsxs("div", { className: "df-table-preview-card", children: [
|
|
2413
|
+
/* @__PURE__ */ s.jsxs("div", { className: "df-table-preview-head", children: [
|
|
2414
|
+
/* @__PURE__ */ s.jsx("strong", { children: P }),
|
|
2415
|
+
/* @__PURE__ */ s.jsx(
|
|
2416
|
+
"button",
|
|
2417
|
+
{
|
|
2418
|
+
ref: y,
|
|
2419
|
+
className: "df-icon-button",
|
|
2420
|
+
type: "button",
|
|
2421
|
+
"data-df-action": "close-table",
|
|
2422
|
+
"data-df-slot": "close",
|
|
2423
|
+
"aria-label": O,
|
|
2424
|
+
onClick: he,
|
|
2425
|
+
children: /* @__PURE__ */ s.jsx(W, { name: "close" })
|
|
2426
|
+
}
|
|
2427
|
+
)
|
|
2428
|
+
] }),
|
|
2429
|
+
/* @__PURE__ */ s.jsx("div", { className: "df-table-preview-body", children: /* @__PURE__ */ s.jsx("div", { className: "df-table-window", children: /* @__PURE__ */ s.jsx("div", { className: "df-data-table", children: Y }) }) })
|
|
2430
|
+
] })
|
|
2431
|
+
]
|
|
2432
|
+
}
|
|
2433
|
+
) }) : null, Z = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2434
|
+
/* @__PURE__ */ s.jsxs("div", { className: "df-block-toolbar", "data-df-slot": "toolbar", children: [
|
|
2435
|
+
/* @__PURE__ */ s.jsxs("span", { className: "df-block-title", "data-df-slot": "title", children: [
|
|
2436
|
+
/* @__PURE__ */ s.jsx(W, { name: "table" }),
|
|
2437
|
+
/* @__PURE__ */ s.jsx("span", { children: P })
|
|
2438
|
+
] }),
|
|
2439
|
+
/* @__PURE__ */ s.jsxs("div", { className: "df-block-actions", "data-df-slot": "actions", children: [
|
|
2440
|
+
/* @__PURE__ */ s.jsx(
|
|
2441
|
+
ke,
|
|
2442
|
+
{
|
|
2443
|
+
value: b,
|
|
2444
|
+
label: R,
|
|
2445
|
+
failureLabel: I,
|
|
2446
|
+
action: "copy-table"
|
|
2447
|
+
}
|
|
2448
|
+
),
|
|
2449
|
+
/* @__PURE__ */ s.jsx(
|
|
2450
|
+
la,
|
|
2451
|
+
{
|
|
2452
|
+
value: b,
|
|
2453
|
+
filename: "table.csv",
|
|
2454
|
+
label: L,
|
|
2455
|
+
action: "download-table",
|
|
2456
|
+
contentType: "text/csv;charset=utf-8"
|
|
2457
|
+
}
|
|
2458
|
+
),
|
|
2459
|
+
/* @__PURE__ */ s.jsx(
|
|
2460
|
+
"button",
|
|
2461
|
+
{
|
|
2462
|
+
ref: S,
|
|
2463
|
+
className: "df-block-button",
|
|
2464
|
+
type: "button",
|
|
2465
|
+
"data-df-action": "zoom-table",
|
|
2466
|
+
"aria-label": B,
|
|
2467
|
+
title: B,
|
|
2468
|
+
"aria-haspopup": "dialog",
|
|
2469
|
+
onClick: () => g(!0),
|
|
2470
|
+
children: /* @__PURE__ */ s.jsx(W, { name: "maximize" })
|
|
2471
|
+
}
|
|
2472
|
+
)
|
|
2473
|
+
] })
|
|
2474
|
+
] }),
|
|
2475
|
+
/* @__PURE__ */ s.jsx("div", { className: "df-data-table", "data-df-slot": "content", children: Y ?? e }),
|
|
2476
|
+
ye
|
|
2477
|
+
] });
|
|
2478
|
+
return f ? Z : /* @__PURE__ */ s.jsx(
|
|
2479
|
+
"figure",
|
|
2480
|
+
{
|
|
2481
|
+
...x,
|
|
2482
|
+
className: q,
|
|
2483
|
+
"data-df-component": "table",
|
|
2484
|
+
"data-df-slot": "root",
|
|
2485
|
+
"data-df-island": "table",
|
|
2486
|
+
"data-df-table-title": P,
|
|
2487
|
+
"data-df-copy-label": R,
|
|
2488
|
+
"data-df-copy-failure-label": I,
|
|
2489
|
+
"data-df-download-label": L,
|
|
2490
|
+
"data-df-zoom-label": B,
|
|
2491
|
+
"data-df-close-label": O,
|
|
2492
|
+
"data-df-sort-label": D,
|
|
2493
|
+
"data-df-table": z || void 0,
|
|
2494
|
+
children: Z
|
|
2495
|
+
}
|
|
2496
|
+
);
|
|
2497
|
+
}
|
|
2498
|
+
function ga(e) {
|
|
2499
|
+
return e.replace(/\r\n?/g, `
|
|
2500
|
+
`).split(`
|
|
2501
|
+
`).map((n, t, a) => {
|
|
2502
|
+
const o = n.match(/^(\s*)([$>])(\s*)/), l = o ? null : n.match(/^(\s*)([✓✔✕✖!→•])(\s*)/), r = o ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2503
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-terminal-prompt", children: `${o[1]}${o[2]}` }),
|
|
2504
|
+
o[3] || " ",
|
|
2505
|
+
n.slice(o[0].length)
|
|
2506
|
+
] }) : l ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2507
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-terminal-status", children: `${l[1]}${l[2]}` }),
|
|
2508
|
+
l[3] || " ",
|
|
2509
|
+
n.slice(l[0].length)
|
|
2510
|
+
] }) : /* @__PURE__ */ s.jsx("span", { className: "df-terminal-output", children: n });
|
|
2511
|
+
return /* @__PURE__ */ s.jsxs("span", { children: [
|
|
2512
|
+
r,
|
|
2513
|
+
t < a.length - 1 ? `
|
|
2514
|
+
` : null
|
|
2515
|
+
] }, `${t}-${n}`);
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
2518
|
+
function ve({
|
|
2519
|
+
children: e,
|
|
2520
|
+
node: n,
|
|
2521
|
+
title: t,
|
|
2522
|
+
source: a,
|
|
2523
|
+
copyLabel: o,
|
|
2524
|
+
copyFailureLabel: l,
|
|
2525
|
+
...r
|
|
2526
|
+
}) {
|
|
2527
|
+
const i = r, d = t || h(i, "data-df-title", "dataDfTitle") || T.terminalTitle, f = a ?? h(i, "data-df-source", "dataDfSource"), p = o || h(i, "data-df-copy-label", "dataDfCopyLabel") || T.copyTerminal, m = l || h(i, "data-df-copy-failure-label", "dataDfCopyFailureLabel") || T.copyFailed, k = G("df-terminal", i.className), { className: b, ...N } = Q(i);
|
|
2528
|
+
return /* @__PURE__ */ s.jsxs("div", { ...N, className: k, "data-df-component": "terminal", "data-df-slot": "root", children: [
|
|
2529
|
+
/* @__PURE__ */ s.jsx(
|
|
2530
|
+
ya,
|
|
2531
|
+
{
|
|
2532
|
+
title: d,
|
|
2533
|
+
source: f,
|
|
2534
|
+
copyLabel: p,
|
|
2535
|
+
copyFailureLabel: m
|
|
2536
|
+
}
|
|
2537
|
+
),
|
|
2538
|
+
/* @__PURE__ */ s.jsx("pre", { "data-df-slot": "content", children: ga(f) })
|
|
2539
|
+
] });
|
|
2540
|
+
}
|
|
2541
|
+
function ya({
|
|
2542
|
+
title: e,
|
|
2543
|
+
source: n,
|
|
2544
|
+
copyLabel: t = T.copyTerminal,
|
|
2545
|
+
copyFailureLabel: a = T.copyFailed,
|
|
2546
|
+
inner: o = !1
|
|
2547
|
+
}) {
|
|
2548
|
+
const l = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2549
|
+
/* @__PURE__ */ s.jsx("span", { children: e }),
|
|
2550
|
+
/* @__PURE__ */ s.jsx(
|
|
2551
|
+
ke,
|
|
2552
|
+
{
|
|
2553
|
+
value: n,
|
|
2554
|
+
label: t,
|
|
2555
|
+
action: "copy-terminal",
|
|
2556
|
+
className: "df-copy-snippet-button",
|
|
2557
|
+
failureLabel: a
|
|
2558
|
+
}
|
|
2559
|
+
)
|
|
2560
|
+
] });
|
|
2561
|
+
return o ? l : /* @__PURE__ */ s.jsx(
|
|
2562
|
+
"div",
|
|
2563
|
+
{
|
|
2564
|
+
className: "df-terminal-head",
|
|
2565
|
+
"data-df-slot": "toolbar",
|
|
2566
|
+
"data-df-behavior": "terminal-toolbar",
|
|
2567
|
+
"data-df-title": e,
|
|
2568
|
+
"data-df-copy-label": t,
|
|
2569
|
+
"data-df-copy-failure-label": a,
|
|
2570
|
+
children: l
|
|
2571
|
+
}
|
|
2572
|
+
);
|
|
2573
|
+
}
|
|
2574
|
+
function tn(e, n, t) {
|
|
2575
|
+
const a = e;
|
|
2576
|
+
return a[n] ?? a[t];
|
|
2577
|
+
}
|
|
2578
|
+
function ue(e) {
|
|
2579
|
+
return c.isValidElement(e);
|
|
2580
|
+
}
|
|
2581
|
+
function $n(e) {
|
|
2582
|
+
return String(tn(e.props, "data-df-tab", "dataDfTab") ?? "");
|
|
2583
|
+
}
|
|
2584
|
+
function ba(e) {
|
|
2585
|
+
return String(tn(e.props, "data-df-tab-panel", "dataDfTabPanel") ?? "");
|
|
2586
|
+
}
|
|
2587
|
+
function Ue(e) {
|
|
2588
|
+
return c.Children.toArray(e.props.children).filter(ue);
|
|
2589
|
+
}
|
|
2590
|
+
function Be(e) {
|
|
2591
|
+
return e.props.disabled === !0 || e.props["aria-disabled"] === "true";
|
|
2592
|
+
}
|
|
2593
|
+
function va(e) {
|
|
2594
|
+
return e.props["aria-selected"] === !0 || e.props["aria-selected"] === "true";
|
|
2595
|
+
}
|
|
2596
|
+
function bn(e) {
|
|
2597
|
+
return Number.parseInt(c.version, 10) >= 19 ? e.props.ref : e.ref;
|
|
2598
|
+
}
|
|
2599
|
+
function xa(e, n, t = "smooth") {
|
|
2600
|
+
if (typeof e.scrollTo != "function") return;
|
|
2601
|
+
const a = n.offsetLeft, o = a + n.offsetWidth;
|
|
2602
|
+
a < e.scrollLeft ? e.scrollTo({ left: a, behavior: t }) : o > e.scrollLeft + e.clientWidth && e.scrollTo({ left: o - e.clientWidth, behavior: t });
|
|
2603
|
+
}
|
|
2604
|
+
function ka(e, n, t, a, o, l) {
|
|
2605
|
+
const r = c.Children.toArray(e), i = r.findIndex((g) => ue(g) && g.props.role === "tablist");
|
|
2606
|
+
if (i < 0) return e;
|
|
2607
|
+
const d = r[i], f = Ue(d);
|
|
2608
|
+
if (!f.length) return e;
|
|
2609
|
+
const p = f.map((g, S) => $n(g) || `tab-${S + 1}`), m = f.flatMap((g, S) => Be(g) ? [] : [S]), k = (g, S = !1) => {
|
|
2610
|
+
g && (t(g), queueMicrotask(() => {
|
|
2611
|
+
const y = a.current[g];
|
|
2612
|
+
y && (xa(o.current ?? y.parentElement ?? y, y), S && y.focus());
|
|
2613
|
+
}));
|
|
2614
|
+
}, b = (g, S) => {
|
|
2615
|
+
if (!["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(g.key)) return;
|
|
2616
|
+
const y = m.indexOf(S);
|
|
2617
|
+
if (y < 0 || m.length === 0) return;
|
|
2618
|
+
g.preventDefault(), g.stopPropagation();
|
|
2619
|
+
const A = g.key === "Home" ? m[0] : g.key === "End" ? m.at(-1) : m[(y + (g.key === "ArrowRight" || g.key === "ArrowDown" ? 1 : -1) + m.length) % m.length];
|
|
2620
|
+
if (A === void 0) return;
|
|
2621
|
+
const P = p[A];
|
|
2622
|
+
P && k(P, !0);
|
|
2623
|
+
}, N = f.map((g, S) => {
|
|
2624
|
+
const y = p[S] ?? `tab-${S + 1}`, A = y === n, P = g.props.onClick, R = g.props.onKeyDown, I = bn(g);
|
|
2625
|
+
return c.cloneElement(g, {
|
|
2626
|
+
id: `${l}-tab-${S + 1}`,
|
|
2627
|
+
"aria-controls": `${l}-panel-${S + 1}`,
|
|
2628
|
+
"aria-selected": A ? "true" : "false",
|
|
2629
|
+
tabIndex: A ? 0 : -1,
|
|
2630
|
+
ref: (L) => {
|
|
2631
|
+
a.current[y] = L, typeof I == "function" ? I(L) : I && "current" in I && (I.current = L);
|
|
2632
|
+
},
|
|
2633
|
+
onClick: (L) => {
|
|
2634
|
+
P?.(L), !L.defaultPrevented && (L.stopPropagation(), k(y));
|
|
2635
|
+
},
|
|
2636
|
+
onKeyDown: (L) => {
|
|
2637
|
+
R?.(L), L.defaultPrevented || b(L, S);
|
|
2638
|
+
}
|
|
2639
|
+
});
|
|
2640
|
+
}), j = bn(d), C = c.cloneElement(d, {
|
|
2641
|
+
children: N,
|
|
2642
|
+
ref: (g) => {
|
|
2643
|
+
o.current = g, typeof j == "function" ? j(g) : j && "current" in j && (j.current = g);
|
|
2644
|
+
}
|
|
2645
|
+
});
|
|
2646
|
+
return r.map((g, S) => {
|
|
2647
|
+
if (S === i) return C;
|
|
2648
|
+
if (!ue(g) || g.props.role !== "tabpanel") return g;
|
|
2649
|
+
const y = r.filter((P) => ue(P) && P.props.role === "tabpanel").indexOf(g), A = ba(g) || p[y] || "";
|
|
2650
|
+
return c.cloneElement(g, {
|
|
2651
|
+
id: `${l}-panel-${y + 1}`,
|
|
2652
|
+
"aria-labelledby": `${l}-tab-${y + 1}`,
|
|
2653
|
+
hidden: A !== n
|
|
2654
|
+
});
|
|
2655
|
+
});
|
|
2656
|
+
}
|
|
2657
|
+
function fe({
|
|
2658
|
+
children: e,
|
|
2659
|
+
kind: n = "tabs",
|
|
2660
|
+
component: t,
|
|
2661
|
+
...a
|
|
2662
|
+
}) {
|
|
2663
|
+
const l = c.Children.toArray(e).find(
|
|
2664
|
+
(D) => ue(D) && D.props.role === "tablist"
|
|
2665
|
+
), r = l ? Ue(l).map((D, z) => $n(D) || `tab-${z + 1}`) : [], i = l ? Ue(l) : [], d = i.findIndex(
|
|
2666
|
+
(D) => va(D) && !Be(D)
|
|
2667
|
+
), f = i.findIndex((D) => !Be(D)), p = r[d >= 0 ? d : f] ?? "", [m, k] = c.useState(p), b = r.includes(m) ? m : p, N = c.useRef({}), j = c.useRef(null), [C, g] = c.useState(!1), [S, y] = c.useState(!1), A = c.useId().replace(/:/g, ""), R = String(tn(a, "data-df-tabs-id", "dataDfTabsId") ?? "") || `df-tabs-${A}`, I = ka(e, b, k, N, j, R);
|
|
2668
|
+
c.useEffect(() => {
|
|
2669
|
+
if (n !== "code-group") return;
|
|
2670
|
+
const D = j.current;
|
|
2671
|
+
if (!D) return;
|
|
2672
|
+
const z = () => {
|
|
2673
|
+
const E = Math.max(0, D.scrollWidth - D.clientWidth);
|
|
2674
|
+
g(E > 1 && D.scrollLeft > 1), y(E > 1 && D.scrollLeft < E - 1);
|
|
2675
|
+
};
|
|
2676
|
+
z(), D.addEventListener("scroll", z, { passive: !0 });
|
|
2677
|
+
const q = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(z);
|
|
2678
|
+
return q?.observe(D), () => {
|
|
2679
|
+
D.removeEventListener("scroll", z), q?.disconnect();
|
|
2680
|
+
};
|
|
2681
|
+
}, [e, n]);
|
|
2682
|
+
const L = (D) => {
|
|
2683
|
+
const z = j.current;
|
|
2684
|
+
!z || typeof z.scrollBy != "function" || z.scrollBy({
|
|
2685
|
+
left: D * Math.max(180, z.clientWidth * 0.72),
|
|
2686
|
+
behavior: "smooth"
|
|
2687
|
+
});
|
|
2688
|
+
}, B = Q(a), O = G(
|
|
2689
|
+
n === "code-group" ? "df-tabs df-code-group" : "df-tabs",
|
|
2690
|
+
a.className
|
|
2691
|
+
);
|
|
2692
|
+
return t ? /* @__PURE__ */ s.jsx(
|
|
2693
|
+
t,
|
|
2694
|
+
{
|
|
2695
|
+
...B,
|
|
2696
|
+
className: O,
|
|
2697
|
+
kind: n,
|
|
2698
|
+
"data-df-component": n,
|
|
2699
|
+
"data-df-slot": "root",
|
|
2700
|
+
"data-df-behavior": "tabs",
|
|
2701
|
+
"data-df-tabs-id": R,
|
|
2702
|
+
children: I
|
|
2703
|
+
}
|
|
2704
|
+
) : /* @__PURE__ */ s.jsxs(
|
|
2705
|
+
"div",
|
|
2706
|
+
{
|
|
2707
|
+
...B,
|
|
2708
|
+
className: O,
|
|
2709
|
+
"data-df-component": n,
|
|
2710
|
+
"data-df-slot": "root",
|
|
2711
|
+
"data-df-behavior": "tabs",
|
|
2712
|
+
"data-df-tabs-id": R,
|
|
2713
|
+
children: [
|
|
2714
|
+
n === "code-group" ? /* @__PURE__ */ s.jsx(
|
|
2715
|
+
"button",
|
|
2716
|
+
{
|
|
2717
|
+
type: "button",
|
|
2718
|
+
className: "df-code-tabs-scroll df-code-tabs-scroll-start",
|
|
2719
|
+
"data-df-action": "scroll-code-tabs",
|
|
2720
|
+
"data-df-direction": "-1",
|
|
2721
|
+
"aria-label": "Previous code files",
|
|
2722
|
+
hidden: !C,
|
|
2723
|
+
onClick: () => L(-1),
|
|
2724
|
+
children: /* @__PURE__ */ s.jsx(W, { name: "previous", size: 18 })
|
|
2725
|
+
}
|
|
2726
|
+
) : null,
|
|
2727
|
+
I,
|
|
2728
|
+
n === "code-group" ? /* @__PURE__ */ s.jsx(
|
|
2729
|
+
"button",
|
|
2730
|
+
{
|
|
2731
|
+
type: "button",
|
|
2732
|
+
className: "df-code-tabs-scroll df-code-tabs-scroll-end",
|
|
2733
|
+
"data-df-action": "scroll-code-tabs",
|
|
2734
|
+
"data-df-direction": "1",
|
|
2735
|
+
"aria-label": "Next code files",
|
|
2736
|
+
hidden: !S,
|
|
2737
|
+
onClick: () => L(1),
|
|
2738
|
+
children: /* @__PURE__ */ s.jsx(W, { name: "next", size: 18 })
|
|
2739
|
+
}
|
|
2740
|
+
) : null
|
|
2741
|
+
]
|
|
2742
|
+
}
|
|
2743
|
+
);
|
|
2744
|
+
}
|
|
2745
|
+
function vn(e) {
|
|
2746
|
+
if (typeof e.type == "string") return e.type;
|
|
2747
|
+
const n = e.type.displayName ?? "";
|
|
2748
|
+
return n.startsWith("Markdown") ? n.slice(8).toLowerCase() : "";
|
|
2749
|
+
}
|
|
2750
|
+
function Un(e) {
|
|
2751
|
+
return typeof e == "string" && !e.trim();
|
|
2752
|
+
}
|
|
2753
|
+
function Ve(e, n, t, a) {
|
|
2754
|
+
if (!c.isValidElement(e)) return e;
|
|
2755
|
+
const o = e, l = c.Children.toArray(o.props.children).filter((y) => !Un(y)), r = o.props["data-df-file-tree-file"] !== void 0 || o.props.dataDfFileTreeFile !== void 0, i = o.props["data-df-file-tree-branch"] !== void 0 || o.props.dataDfFileTreeBranch !== void 0, d = o.props["aria-current"] === "page" || o.props["aria-current"] === !0 || o.props["data-df-current"] !== void 0 || o.props.dataDfCurrent !== void 0, f = i ? l.findIndex(
|
|
2756
|
+
(y) => c.isValidElement(y) && vn(y) === "button"
|
|
2757
|
+
) : -1, p = i ? l.findIndex(
|
|
2758
|
+
(y) => c.isValidElement(y) && vn(y) === "ul"
|
|
2759
|
+
) : -1, m = String(
|
|
2760
|
+
o.props["data-df-file-tree-path"] ?? o.props.dataDfFileTreePath ?? ""
|
|
2761
|
+
), k = f >= 0 ? X(l[f].props.children) : "", b = m || `${n}:${k.trim().toLowerCase()}`, N = f >= 0 ? l[f].props["aria-expanded"] : void 0, j = i ? t[b] ?? (N !== !1 && N !== "false") : !0, C = l.map((y, A) => {
|
|
2762
|
+
const P = `${n}.${A}`;
|
|
2763
|
+
if (i && A === f && c.isValidElement(y)) {
|
|
2764
|
+
const R = y, I = R.props.onClick, L = c.Children.toArray(R.props.children), B = L.some(
|
|
2765
|
+
(O) => c.isValidElement(O) && (O.props["data-df-slot"] === "folder-icon" || O.props.dataDfSlot === "folder-icon")
|
|
2766
|
+
);
|
|
2767
|
+
return c.cloneElement(R, {
|
|
2768
|
+
className: G("df-file-tree-folder", R.props.className),
|
|
2769
|
+
"data-df-action": "toggle-file-tree",
|
|
2770
|
+
"data-df-file-tree-toggle": "",
|
|
2771
|
+
"aria-expanded": String(j),
|
|
2772
|
+
children: B ? L : [
|
|
2773
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-file-tree-folder-icon", "data-df-slot": "folder-icon", children: /* @__PURE__ */ s.jsx(W, { name: "folder" }) }, "folder-icon"),
|
|
2774
|
+
...L
|
|
2775
|
+
],
|
|
2776
|
+
onClick: (O) => {
|
|
2777
|
+
typeof I == "function" && I(O), O.defaultPrevented || a(b, !j);
|
|
2778
|
+
}
|
|
2779
|
+
});
|
|
2780
|
+
}
|
|
2781
|
+
if (i && A === p && c.isValidElement(y)) {
|
|
2782
|
+
const R = Ve(y, P, t, a);
|
|
2783
|
+
return /* @__PURE__ */ s.jsx(
|
|
2784
|
+
"div",
|
|
2785
|
+
{
|
|
2786
|
+
className: "df-file-tree-children",
|
|
2787
|
+
"data-df-state": j ? "expanded" : "collapsed",
|
|
2788
|
+
"aria-hidden": j ? void 0 : "true",
|
|
2789
|
+
inert: j ? void 0 : !0,
|
|
2790
|
+
children: R
|
|
2791
|
+
},
|
|
2792
|
+
`${b}-children`
|
|
2793
|
+
);
|
|
2794
|
+
}
|
|
2795
|
+
return Ve(y, P, t, a);
|
|
2796
|
+
}), g = l.some(
|
|
2797
|
+
(y) => c.isValidElement(y) && (y.props["data-df-slot"] === "file-icon" || y.props.dataDfSlot === "file-icon")
|
|
2798
|
+
), S = r && !g ? [
|
|
2799
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-file-tree-file-icon", "data-df-slot": "file-icon", children: /* @__PURE__ */ s.jsx(W, { name: "file" }) }, "file-icon"),
|
|
2800
|
+
...C
|
|
2801
|
+
] : C;
|
|
2802
|
+
return c.cloneElement(o, {
|
|
2803
|
+
...r || i ? {
|
|
2804
|
+
className: G(
|
|
2805
|
+
[
|
|
2806
|
+
r ? "df-file-tree-file" : "",
|
|
2807
|
+
i ? "df-file-tree-branch" : "",
|
|
2808
|
+
d ? "df-file-tree-current" : ""
|
|
2809
|
+
].filter(Boolean).join(" "),
|
|
2810
|
+
o.props.className
|
|
2811
|
+
)
|
|
2812
|
+
} : {},
|
|
2813
|
+
...i ? {
|
|
2814
|
+
"data-df-state": j ? "expanded" : "collapsed",
|
|
2815
|
+
"data-df-file-tree-path": b
|
|
2816
|
+
} : {},
|
|
2817
|
+
children: S
|
|
2818
|
+
});
|
|
2819
|
+
}
|
|
2820
|
+
function He({ children: e, ...n }) {
|
|
2821
|
+
const [t, a] = c.useState({}), o = c.Children.toArray(e).filter((i) => !Un(i)).map(
|
|
2822
|
+
(i, d) => Ve(
|
|
2823
|
+
i,
|
|
2824
|
+
String(d),
|
|
2825
|
+
t,
|
|
2826
|
+
(f, p) => a((m) => ({ ...m, [f]: p }))
|
|
2827
|
+
)
|
|
2828
|
+
), l = c.Children.map(
|
|
2829
|
+
o,
|
|
2830
|
+
(i) => c.isValidElement(i) ? c.cloneElement(i, { "data-df-slot": "content" }) : i
|
|
2831
|
+
), r = Q(n);
|
|
2832
|
+
return /* @__PURE__ */ s.jsx(
|
|
2833
|
+
"div",
|
|
2834
|
+
{
|
|
2835
|
+
...r,
|
|
2836
|
+
className: G("df-file-tree", n.className),
|
|
2837
|
+
"data-df-component": "file-tree",
|
|
2838
|
+
"data-df-slot": "root",
|
|
2839
|
+
"data-df-behavior": "file-tree",
|
|
2840
|
+
children: l
|
|
2841
|
+
}
|
|
2842
|
+
);
|
|
2843
|
+
}
|
|
2844
|
+
function ae(e, n, t) {
|
|
2845
|
+
return {
|
|
2846
|
+
...Q(e),
|
|
2847
|
+
...t ? { className: G(t, e.className) } : {},
|
|
2848
|
+
"data-df-component": n,
|
|
2849
|
+
"data-df-slot": "root"
|
|
2850
|
+
};
|
|
2851
|
+
}
|
|
2852
|
+
function xe({ children: e, ...n }) {
|
|
2853
|
+
const t = String(
|
|
2854
|
+
n["data-callout"] ?? n.dataCallout ?? "info"
|
|
2855
|
+
), a = t === "tip" ? rt : t === "warning" ? dt : t === "danger" ? lt : st, o = c.Children.map(e, (l) => {
|
|
2856
|
+
if (!c.isValidElement(l)) return l;
|
|
2857
|
+
const r = l;
|
|
2858
|
+
return r.props["data-df-slot"] === "title" || r.props.dataDfSlot === "title" ? c.cloneElement(r, {
|
|
2859
|
+
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2860
|
+
/* @__PURE__ */ s.jsx(a, { className: "df-callout-icon", size: 17, strokeWidth: 2, "aria-hidden": "true" }),
|
|
2861
|
+
r.props.children
|
|
2862
|
+
] })
|
|
2863
|
+
}) : l;
|
|
2864
|
+
});
|
|
2865
|
+
return c.createElement("div", ae(n, "callout", "df-callout"), o);
|
|
2866
|
+
}
|
|
2867
|
+
function Ke({ children: e, ...n }) {
|
|
2868
|
+
return c.createElement("ol", ae(n, "steps", "df-steps"), e);
|
|
2869
|
+
}
|
|
2870
|
+
function Ca(e) {
|
|
2871
|
+
const n = c.Children.toArray(e), t = n.findIndex(
|
|
2872
|
+
(a) => c.isValidElement(a) && V(a) === "summary"
|
|
2873
|
+
);
|
|
2874
|
+
return t < 0 ? { summary: void 0, content: n } : {
|
|
2875
|
+
summary: n[t],
|
|
2876
|
+
content: n.filter(
|
|
2877
|
+
(a, o) => o !== t && !(typeof a == "string" && a.trim().length === 0)
|
|
2878
|
+
)
|
|
2879
|
+
};
|
|
2880
|
+
}
|
|
2881
|
+
function We({ children: e, onToggle: n, ...t }) {
|
|
2882
|
+
const a = t.open === !0, [o, l] = c.useState(a), [r, i] = c.useState(!1), d = c.useRef(null), { summary: f, content: p } = Ca(e), m = c.isValidElement(f) ? (() => {
|
|
2883
|
+
const b = f, N = b.props.onClick;
|
|
2884
|
+
return c.cloneElement(b, {
|
|
2885
|
+
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2886
|
+
b.props.children,
|
|
2887
|
+
/* @__PURE__ */ s.jsx(tt, { className: "df-details-chevron", size: 17, strokeWidth: 2, "aria-hidden": "true" })
|
|
2888
|
+
] }),
|
|
2889
|
+
onClick: (j) => {
|
|
2890
|
+
if (N?.(j), j.defaultPrevented) return;
|
|
2891
|
+
const C = j.currentTarget.closest("details");
|
|
2892
|
+
queueMicrotask(() => l(C?.open ?? !1));
|
|
2893
|
+
}
|
|
2894
|
+
});
|
|
2895
|
+
})() : f;
|
|
2896
|
+
c.useEffect(() => {
|
|
2897
|
+
i(!0);
|
|
2898
|
+
}, []);
|
|
2899
|
+
const k = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2900
|
+
m,
|
|
2901
|
+
/* @__PURE__ */ s.jsx(
|
|
2902
|
+
"div",
|
|
2903
|
+
{
|
|
2904
|
+
ref: d,
|
|
2905
|
+
className: "df-details-content",
|
|
2906
|
+
"data-df-slot": "content",
|
|
2907
|
+
inert: r && !o ? !0 : void 0,
|
|
2908
|
+
children: /* @__PURE__ */ s.jsx("div", { className: "df-details-content-inner", children: p.map((b, N) => /* @__PURE__ */ s.jsx(c.Fragment, { children: b }, c.isValidElement(b) && b.key !== null ? b.key : `details-${N}`)) })
|
|
2909
|
+
}
|
|
2910
|
+
)
|
|
2911
|
+
] });
|
|
2912
|
+
return /* @__PURE__ */ s.jsx(
|
|
2913
|
+
"details",
|
|
2914
|
+
{
|
|
2915
|
+
...ae(t, "details"),
|
|
2916
|
+
"data-df-behavior": "details",
|
|
2917
|
+
"data-df-enhanced": r ? "true" : void 0,
|
|
2918
|
+
onToggle: (b) => {
|
|
2919
|
+
l(b.currentTarget.open), n?.(b);
|
|
2920
|
+
},
|
|
2921
|
+
children: k
|
|
2922
|
+
}
|
|
2923
|
+
);
|
|
2924
|
+
}
|
|
2925
|
+
function Bn(e, n) {
|
|
2926
|
+
return c.Children.map(e, (t) => c.isValidElement(t) ? c.cloneElement(t, { "data-df-slot": n }) : t);
|
|
2927
|
+
}
|
|
2928
|
+
function qe({ children: e, ...n }) {
|
|
2929
|
+
return /* @__PURE__ */ s.jsx("div", { ...ae(n, "card-grid", "df-card-grid"), children: Bn(e, "card") });
|
|
2930
|
+
}
|
|
2931
|
+
function Xe({ children: e, ...n }) {
|
|
2932
|
+
return /* @__PURE__ */ s.jsx("section", { ...ae(n, "api", "df-api-block"), children: Bn(e, "section") });
|
|
2933
|
+
}
|
|
2934
|
+
function Ge({ children: e, ...n }) {
|
|
2935
|
+
return /* @__PURE__ */ s.jsx("aside", { ...ae(n, "aside", "df-aside"), children: e });
|
|
2936
|
+
}
|
|
2937
|
+
function Je({ children: e, ...n }) {
|
|
2938
|
+
const t = ae(n, "badge", "df-badge");
|
|
2939
|
+
return /* @__PURE__ */ s.jsx("span", { ...t, "data-df-slot": "label", children: e });
|
|
2940
|
+
}
|
|
2941
|
+
function wa({
|
|
2942
|
+
anchor: e,
|
|
2943
|
+
anchorLabel: n,
|
|
2944
|
+
copyFailureLabel: t = T.copyFailed
|
|
2945
|
+
}) {
|
|
2946
|
+
const [a, o] = c.useState("idle");
|
|
2947
|
+
c.useEffect(() => {
|
|
2948
|
+
if (a === "idle") return;
|
|
2949
|
+
const d = setTimeout(() => o("idle"), On);
|
|
2950
|
+
return () => clearTimeout(d);
|
|
2951
|
+
}, [a]);
|
|
2952
|
+
const l = async () => {
|
|
2953
|
+
const d = typeof window > "u" ? e : `${window.location.origin}${window.location.pathname}${window.location.search}${e}`;
|
|
2954
|
+
try {
|
|
2955
|
+
o(await jn(d) ? "success" : "error");
|
|
2956
|
+
} catch {
|
|
2957
|
+
o("error");
|
|
2958
|
+
}
|
|
2959
|
+
}, r = n || T.copySectionLink, i = a === "success" ? `${r} ✓` : a === "error" ? t : r;
|
|
2960
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2961
|
+
"button",
|
|
2962
|
+
{
|
|
2963
|
+
className: `df-anchor${a === "success" ? " df-action-success" : ""}${a === "error" ? " df-action-error" : ""}`,
|
|
2964
|
+
type: "button",
|
|
2965
|
+
"data-anchor": e,
|
|
2966
|
+
"data-df-action": "copy-section-link",
|
|
2967
|
+
"data-df-anchor-label": r,
|
|
2968
|
+
"data-df-copy-error": a === "error" ? "true" : void 0,
|
|
2969
|
+
"aria-label": i,
|
|
2970
|
+
title: i,
|
|
2971
|
+
onClick: l,
|
|
2972
|
+
children: [
|
|
2973
|
+
/* @__PURE__ */ s.jsx(W, { name: "link" }),
|
|
2974
|
+
/* @__PURE__ */ s.jsx("span", { className: "df-sr-only", "aria-live": "polite", "aria-atomic": "true", children: a === "idle" ? "" : i })
|
|
2975
|
+
]
|
|
2976
|
+
}
|
|
2977
|
+
);
|
|
2978
|
+
}
|
|
2979
|
+
function Ea({
|
|
2980
|
+
level: e,
|
|
2981
|
+
as: n,
|
|
2982
|
+
id: t,
|
|
2983
|
+
anchor: a,
|
|
2984
|
+
anchorLabel: o,
|
|
2985
|
+
copyFailureLabel: l,
|
|
2986
|
+
children: r,
|
|
2987
|
+
className: i,
|
|
2988
|
+
...d
|
|
2989
|
+
}) {
|
|
2990
|
+
const f = n ?? `h${e}`, p = i?.split(/\s+/).filter(Boolean) ?? [], m = p.some((N) => N === "sr-only" || N === "df-sr-only"), k = e > 1 && !!a && !m;
|
|
2991
|
+
m && !p.includes("df-sr-only") && p.push("df-sr-only"), k && p.push("df-heading-with-anchor");
|
|
2992
|
+
const b = p.join(" ");
|
|
2993
|
+
return /* @__PURE__ */ s.jsxs(f, { ...d, id: t, className: b || void 0, children: [
|
|
2994
|
+
r,
|
|
2995
|
+
k && a ? /* @__PURE__ */ s.jsx(
|
|
2996
|
+
"span",
|
|
2997
|
+
{
|
|
2998
|
+
className: "df-anchor-island",
|
|
2999
|
+
"data-df-behavior": "heading",
|
|
3000
|
+
"data-df-anchor": a,
|
|
3001
|
+
"data-df-anchor-label": o || T.copySectionLink,
|
|
3002
|
+
"data-df-copy-failure-label": l || T.copyFailed,
|
|
3003
|
+
children: /* @__PURE__ */ s.jsx(
|
|
3004
|
+
wa,
|
|
3005
|
+
{
|
|
3006
|
+
anchor: a,
|
|
3007
|
+
anchorLabel: o,
|
|
3008
|
+
copyFailureLabel: l
|
|
3009
|
+
}
|
|
3010
|
+
)
|
|
3011
|
+
}
|
|
3012
|
+
) : null
|
|
3013
|
+
] });
|
|
3014
|
+
}
|
|
3015
|
+
function xn(e, n) {
|
|
3016
|
+
return c.Children.toArray(e).find((t) => {
|
|
3017
|
+
if (!c.isValidElement(t)) return !1;
|
|
3018
|
+
const a = t;
|
|
3019
|
+
return V(a) === n || n === "figcaption" && (a.props["data-df-slot"] === "caption" || a.props.dataDfSlot === "caption");
|
|
3020
|
+
});
|
|
3021
|
+
}
|
|
3022
|
+
function Vn(e, n, t) {
|
|
3023
|
+
const a = { ...n, children: t };
|
|
3024
|
+
if (e === "code-block")
|
|
3025
|
+
return {
|
|
3026
|
+
...a,
|
|
3027
|
+
source: h(n, "data-df-source", "dataDfSource") || X(t),
|
|
3028
|
+
language: h(n, "data-df-language", "dataDfLanguage") || "text",
|
|
3029
|
+
copyLabel: h(n, "data-df-copy-label", "dataDfCopyLabel") || void 0,
|
|
3030
|
+
copyFailureLabel: h(n, "data-df-copy-failure-label", "dataDfCopyFailureLabel") || void 0
|
|
3031
|
+
};
|
|
3032
|
+
if (e === "copy-snippet")
|
|
3033
|
+
return {
|
|
3034
|
+
...a,
|
|
3035
|
+
value: h(n, "data-df-value", "dataDfValue") || X(t),
|
|
3036
|
+
copyLabel: h(n, "data-df-copy-label", "dataDfCopyLabel") || void 0,
|
|
3037
|
+
copyFailureLabel: h(n, "data-df-copy-failure-label", "dataDfCopyFailureLabel") || void 0
|
|
3038
|
+
};
|
|
3039
|
+
if (e === "table")
|
|
3040
|
+
return {
|
|
3041
|
+
...a,
|
|
3042
|
+
tableTitle: h(n, "data-df-table-title", "dataDfTableTitle") || void 0,
|
|
3043
|
+
copyLabel: h(n, "data-df-copy-label", "dataDfCopyLabel") || void 0,
|
|
3044
|
+
copyFailureLabel: h(n, "data-df-copy-failure-label", "dataDfCopyFailureLabel") || void 0,
|
|
3045
|
+
downloadLabel: h(n, "data-df-download-label", "dataDfDownloadLabel") || void 0,
|
|
3046
|
+
zoomLabel: h(n, "data-df-zoom-label", "dataDfZoomLabel") || void 0,
|
|
3047
|
+
closeLabel: h(n, "data-df-close-label", "dataDfCloseLabel") || void 0,
|
|
3048
|
+
sortLabel: h(n, "data-df-sort-label", "dataDfSortLabel") || void 0
|
|
3049
|
+
};
|
|
3050
|
+
if (e === "image") {
|
|
3051
|
+
const o = xn(t, "img"), l = xn(t, "figcaption"), r = o ? we(o.props, "width") : void 0, i = o ? we(o.props, "height") : void 0, d = o ? we(o.props, "loading") : void 0;
|
|
3052
|
+
return {
|
|
3053
|
+
...a,
|
|
3054
|
+
src: o && h(o.props, "src") || void 0,
|
|
3055
|
+
alt: o ? h(o.props, "alt") : void 0,
|
|
3056
|
+
caption: l ? X(l.props.children) : void 0,
|
|
3057
|
+
title: o && h(o.props, "title") || void 0,
|
|
3058
|
+
width: typeof r == "string" || typeof r == "number" ? r : void 0,
|
|
3059
|
+
height: typeof i == "string" || typeof i == "number" ? i : void 0,
|
|
3060
|
+
loading: d === "eager" || d === "lazy" ? d : void 0,
|
|
3061
|
+
srcSet: o && h(o.props, "srcSet", "srcset") || void 0,
|
|
3062
|
+
sizes: o && h(o.props, "sizes") || void 0,
|
|
3063
|
+
zoomLabel: h(n, "data-df-zoom-label", "dataDfZoomLabel") || void 0,
|
|
3064
|
+
closeLabel: h(n, "data-df-close-label", "dataDfCloseLabel") || void 0
|
|
3065
|
+
};
|
|
3066
|
+
}
|
|
3067
|
+
return e === "terminal" ? {
|
|
3068
|
+
...a,
|
|
3069
|
+
title: h(n, "data-df-title", "dataDfTitle") || void 0,
|
|
3070
|
+
source: h(n, "data-df-source", "dataDfSource"),
|
|
3071
|
+
copyLabel: h(n, "data-df-copy-label", "dataDfCopyLabel") || void 0,
|
|
3072
|
+
copyFailureLabel: h(n, "data-df-copy-failure-label", "dataDfCopyFailureLabel") || void 0
|
|
3073
|
+
} : e === "gallery" ? {
|
|
3074
|
+
...a,
|
|
3075
|
+
items: Yn(void 0, n.node, t),
|
|
3076
|
+
labels: {
|
|
3077
|
+
gallery: h(n, "data-df-gallery-label", "dataDfGalleryLabel") || void 0,
|
|
3078
|
+
close: h(n, "data-df-close-label", "dataDfCloseLabel") || void 0,
|
|
3079
|
+
previous: h(n, "data-df-previous-label", "dataDfPreviousLabel") || void 0,
|
|
3080
|
+
next: h(n, "data-df-next-label", "dataDfNextLabel") || void 0,
|
|
3081
|
+
thumbnails: h(n, "data-df-thumbnails-label", "dataDfThumbnailsLabel") || void 0,
|
|
3082
|
+
image: h(n, "data-df-image-label", "dataDfImageLabel") || void 0
|
|
3083
|
+
}
|
|
3084
|
+
} : a;
|
|
3085
|
+
}
|
|
3086
|
+
function ja(e) {
|
|
3087
|
+
return Array.isArray(e) ? e.join(" ") : typeof e == "string" ? e : "";
|
|
3088
|
+
}
|
|
3089
|
+
function $(e, n) {
|
|
3090
|
+
const t = [ja(e), n].filter(Boolean);
|
|
3091
|
+
return t.length ? t.join(" ") : void 0;
|
|
3092
|
+
}
|
|
3093
|
+
const an = {
|
|
3094
|
+
callout: { className: "callout", override: "Callout" },
|
|
3095
|
+
tabs: { className: "tabs", override: "Tabs" },
|
|
3096
|
+
"code-group": { className: "tabs", override: "CodeGroup" },
|
|
3097
|
+
steps: { className: "steps", override: "Steps" },
|
|
3098
|
+
"code-block": { className: "codeBlock", override: "CodeBlock" },
|
|
3099
|
+
"copy-snippet": { className: "copySnippet", override: "CopySnippet" },
|
|
3100
|
+
table: { className: "table", override: "Table" },
|
|
3101
|
+
image: { className: "image", override: "Image" },
|
|
3102
|
+
terminal: { className: "terminal", override: "Terminal" },
|
|
3103
|
+
details: { className: "details", override: "Details" },
|
|
3104
|
+
"file-tree": { className: "fileTree", override: "FileTree" },
|
|
3105
|
+
gallery: { className: "gallery", override: "Gallery" },
|
|
3106
|
+
"card-grid": { className: "cardGrid", override: "CardGrid" },
|
|
3107
|
+
api: { className: "api", override: "Api" },
|
|
3108
|
+
aside: { className: "aside", override: "Aside" },
|
|
3109
|
+
badge: { className: "badge", override: "Badge" }
|
|
3110
|
+
};
|
|
3111
|
+
function kn(e) {
|
|
3112
|
+
const n = typeof e == "string" ? e : "";
|
|
3113
|
+
return Object.hasOwn(an, n) ? n : void 0;
|
|
3114
|
+
}
|
|
3115
|
+
function Ce(e) {
|
|
3116
|
+
return kn(e["data-df-component"]) ?? kn(e.dataDfComponent);
|
|
3117
|
+
}
|
|
3118
|
+
function Sa(e, n) {
|
|
3119
|
+
return n[an[e].className];
|
|
3120
|
+
}
|
|
3121
|
+
function se(e, n) {
|
|
3122
|
+
return e[an[n].override];
|
|
3123
|
+
}
|
|
3124
|
+
function J(e, n) {
|
|
3125
|
+
return e[n];
|
|
3126
|
+
}
|
|
3127
|
+
function Hn(e, n, t, a, o, l) {
|
|
3128
|
+
const r = $(n.className, Sa(e, a)), i = se(o, e);
|
|
3129
|
+
if (i) {
|
|
3130
|
+
const d = Vn(e, { ...n, className: r }, t);
|
|
3131
|
+
return c.createElement(i, Kn(e, d, l));
|
|
3132
|
+
}
|
|
3133
|
+
if (e === "file-tree") return c.createElement(He, { ...n, className: r, children: t });
|
|
3134
|
+
if (e === "gallery") return c.createElement(Le, { ...n, className: r, children: t });
|
|
3135
|
+
if (e === "terminal") return c.createElement(ve, { ...n, className: r, children: t });
|
|
3136
|
+
if (e === "copy-snippet")
|
|
3137
|
+
return c.createElement(Oe, { ...n, className: r, children: t });
|
|
3138
|
+
if (e === "card-grid") return c.createElement(qe, { ...n, className: r, children: t });
|
|
3139
|
+
if (e === "api") return c.createElement(Xe, { ...n, className: r, children: t });
|
|
3140
|
+
if (e === "aside") return c.createElement(Ge, { ...n, className: r, children: t });
|
|
3141
|
+
if (e === "badge") return c.createElement(Je, { ...n, className: r, children: t });
|
|
3142
|
+
}
|
|
3143
|
+
function Kn(e, n, t) {
|
|
3144
|
+
const a = De(n, t);
|
|
3145
|
+
return e !== "gallery" || !Array.isArray(a.items) ? a : {
|
|
3146
|
+
...a,
|
|
3147
|
+
items: a.items.map(
|
|
3148
|
+
(o) => o && typeof o == "object" ? De(o, t) : o
|
|
3149
|
+
)
|
|
3150
|
+
};
|
|
3151
|
+
}
|
|
3152
|
+
function w(e, n, t, a, o) {
|
|
3153
|
+
const l = n.replace(/[A-Z]/g, (i) => `-${i.toLowerCase()}`);
|
|
3154
|
+
function r({ children: i, node: d, ...f }) {
|
|
3155
|
+
const p = J(a, e) ?? e, m = De(f, o);
|
|
3156
|
+
if (n === "heading" && /^h[1-6]$/.test(e)) {
|
|
3157
|
+
const k = f["data-df-anchor"] ?? f.dataDfAnchor, b = f["data-df-anchor-label"] ?? f.dataDfAnchorLabel, N = f["data-df-copy-failure-label"] ?? f.dataDfCopyFailureLabel;
|
|
3158
|
+
return c.createElement(Ea, {
|
|
3159
|
+
...m,
|
|
3160
|
+
as: p,
|
|
3161
|
+
level: Number(e.slice(1)),
|
|
3162
|
+
anchor: typeof k == "string" ? k : void 0,
|
|
3163
|
+
anchorLabel: typeof b == "string" ? b : void 0,
|
|
3164
|
+
copyFailureLabel: typeof N == "string" ? N : void 0,
|
|
3165
|
+
className: $(m.className, t[n]),
|
|
3166
|
+
"data-df-element": l,
|
|
3167
|
+
children: i
|
|
3168
|
+
});
|
|
3169
|
+
}
|
|
3170
|
+
return c.createElement(
|
|
3171
|
+
p,
|
|
3172
|
+
{
|
|
3173
|
+
...m,
|
|
3174
|
+
className: $(m.className, t[n]),
|
|
3175
|
+
"data-df-element": l
|
|
3176
|
+
},
|
|
3177
|
+
i
|
|
3178
|
+
);
|
|
3179
|
+
}
|
|
3180
|
+
return r.displayName = `Markdown${e.charAt(0).toUpperCase()}${e.slice(1)}`, r;
|
|
3181
|
+
}
|
|
3182
|
+
function La(e, n) {
|
|
3183
|
+
return function({ children: a, node: o, ...l }) {
|
|
3184
|
+
const r = l["data-df-icon"] ?? l.dataDfIcon, i = typeof r == "string" ? Zn(e, r) : void 0;
|
|
3185
|
+
if (i)
|
|
3186
|
+
return c.createElement(i, {
|
|
3187
|
+
size: Number(l.width ?? 16),
|
|
3188
|
+
className: typeof l.className == "string" ? l.className : void 0,
|
|
3189
|
+
"aria-hidden": l["aria-hidden"]
|
|
3190
|
+
});
|
|
3191
|
+
const { ["data-df-icon"]: d, dataDfIcon: f, ...p } = l;
|
|
3192
|
+
return c.createElement(J(n, "svg") ?? "svg", p, a);
|
|
3193
|
+
};
|
|
3194
|
+
}
|
|
3195
|
+
function Da(e, n) {
|
|
3196
|
+
return function({ children: a, node: o, ...l }) {
|
|
3197
|
+
const r = l["data-df-slot"] === "caption" ? Cn(e) : void 0;
|
|
3198
|
+
return r ? c.createElement(r, {
|
|
3199
|
+
children: a,
|
|
3200
|
+
className: typeof l.className == "string" ? l.className : void 0,
|
|
3201
|
+
"data-df-slot": typeof l["data-df-slot"] == "string" ? l["data-df-slot"] : void 0
|
|
3202
|
+
}) : c.createElement(J(n, "figcaption") ?? "figcaption", l, a);
|
|
3203
|
+
};
|
|
3204
|
+
}
|
|
3205
|
+
function Na(e, n, t) {
|
|
3206
|
+
return function({ children: o, node: l, ...r }) {
|
|
3207
|
+
const i = Ce(r), d = i ? se(n, i) : void 0;
|
|
3208
|
+
if (i === "callout") {
|
|
3209
|
+
const p = d ?? xe;
|
|
3210
|
+
return c.createElement(p, {
|
|
3211
|
+
...r,
|
|
3212
|
+
className: $(r.className, e.callout),
|
|
3213
|
+
children: o
|
|
3214
|
+
});
|
|
3215
|
+
}
|
|
3216
|
+
if (i === "tabs" || i === "code-group")
|
|
3217
|
+
return c.createElement(fe, {
|
|
3218
|
+
...r,
|
|
3219
|
+
className: $(r.className, e.tabs),
|
|
3220
|
+
kind: i,
|
|
3221
|
+
component: d,
|
|
3222
|
+
children: o
|
|
3223
|
+
});
|
|
3224
|
+
const f = i && Hn(i, { ...r, node: l }, o, e, n, t);
|
|
3225
|
+
return f || c.createElement(
|
|
3226
|
+
J(n, "div") ?? "div",
|
|
3227
|
+
{
|
|
3228
|
+
...r,
|
|
3229
|
+
...i ? { "data-df-component": i } : {}
|
|
3230
|
+
},
|
|
3231
|
+
o
|
|
3232
|
+
);
|
|
3233
|
+
};
|
|
3234
|
+
}
|
|
3235
|
+
function Se(e, n, t, a) {
|
|
3236
|
+
return function({ children: l, node: r, ...i }) {
|
|
3237
|
+
const d = Ce(i), f = d ? se(t, d) : void 0;
|
|
3238
|
+
if (d === "callout") {
|
|
3239
|
+
const k = f ?? xe;
|
|
3240
|
+
return c.createElement(k, {
|
|
3241
|
+
...i,
|
|
3242
|
+
className: $(i.className, n.callout),
|
|
3243
|
+
children: l
|
|
3244
|
+
});
|
|
3245
|
+
}
|
|
3246
|
+
if (d === "tabs" || d === "code-group")
|
|
3247
|
+
return c.createElement(fe, {
|
|
3248
|
+
...i,
|
|
3249
|
+
className: $(i.className, n.tabs),
|
|
3250
|
+
kind: d,
|
|
3251
|
+
component: f,
|
|
3252
|
+
children: l
|
|
3253
|
+
});
|
|
3254
|
+
const p = d && Hn(d, { ...i, node: r }, l, n, t, a);
|
|
3255
|
+
if (p) return p;
|
|
3256
|
+
const m = e === "section" && (i["data-df-element"] === "footnotes" || i.dataDfElement === "footnotes");
|
|
3257
|
+
return c.createElement(
|
|
3258
|
+
J(t, e) ?? e,
|
|
3259
|
+
{
|
|
3260
|
+
...i,
|
|
3261
|
+
className: m ? $(i.className, n.footnotes) : i.className,
|
|
3262
|
+
...m ? { "data-df-element": "footnotes" } : {},
|
|
3263
|
+
...d ? { "data-df-component": d } : {}
|
|
3264
|
+
},
|
|
3265
|
+
l
|
|
3266
|
+
);
|
|
3267
|
+
};
|
|
3268
|
+
}
|
|
3269
|
+
function Ma(e, n, t) {
|
|
3270
|
+
return function({ children: o, node: l, ...r }) {
|
|
3271
|
+
const i = Ce(r);
|
|
3272
|
+
if (i && ["code-block", "table", "image", "terminal"].includes(i)) {
|
|
3273
|
+
const f = e[i === "code-block" ? "codeBlock" : i], p = se(n, i);
|
|
3274
|
+
if (p) {
|
|
3275
|
+
const m = Vn(
|
|
3276
|
+
i,
|
|
3277
|
+
{ ...r, className: $(r.className, f) },
|
|
3278
|
+
o
|
|
3279
|
+
);
|
|
3280
|
+
return c.createElement(p, Kn(i, m, t));
|
|
3281
|
+
}
|
|
3282
|
+
return i === "code-block" ? c.createElement(_e, {
|
|
3283
|
+
...r,
|
|
3284
|
+
className: $(r.className, f),
|
|
3285
|
+
children: o
|
|
3286
|
+
}) : i === "table" ? c.createElement($e, {
|
|
3287
|
+
...r,
|
|
3288
|
+
className: $(r.className, f),
|
|
3289
|
+
children: o
|
|
3290
|
+
}) : i === "image" ? c.createElement(Re, {
|
|
3291
|
+
...r,
|
|
3292
|
+
className: $(r.className, f),
|
|
3293
|
+
children: o
|
|
3294
|
+
}) : i === "terminal" ? c.createElement(ve, {
|
|
3295
|
+
...r,
|
|
3296
|
+
node: l,
|
|
3297
|
+
className: $(r.className, f),
|
|
3298
|
+
children: o
|
|
3299
|
+
}) : c.createElement(
|
|
3300
|
+
J(n, "figure") ?? "figure",
|
|
3301
|
+
{ ...r, className: $(r.className, f), "data-df-component": i },
|
|
3302
|
+
o
|
|
3303
|
+
);
|
|
3304
|
+
}
|
|
3305
|
+
return c.createElement(
|
|
3306
|
+
J(n, "figure") ?? "figure",
|
|
3307
|
+
{
|
|
3308
|
+
...r,
|
|
3309
|
+
...i ? { "data-df-component": i } : {}
|
|
3310
|
+
},
|
|
3311
|
+
o
|
|
3312
|
+
);
|
|
3313
|
+
};
|
|
3314
|
+
}
|
|
3315
|
+
function Ta(e, n) {
|
|
3316
|
+
return function({ children: a, node: o, ...l }) {
|
|
3317
|
+
const r = Ce(l);
|
|
3318
|
+
if (r === "steps") {
|
|
3319
|
+
const i = se(n, r) ?? Ke;
|
|
3320
|
+
return c.createElement(i, {
|
|
3321
|
+
...l,
|
|
3322
|
+
className: $(l.className, e.steps),
|
|
3323
|
+
children: a
|
|
3324
|
+
});
|
|
3325
|
+
}
|
|
3326
|
+
return c.createElement(
|
|
3327
|
+
J(n, "ol") ?? "ol",
|
|
3328
|
+
{
|
|
3329
|
+
...l,
|
|
3330
|
+
className: $(l.className, e.list),
|
|
3331
|
+
...r ? { "data-df-component": r } : {}
|
|
3332
|
+
},
|
|
3333
|
+
a
|
|
3334
|
+
);
|
|
3335
|
+
};
|
|
3336
|
+
}
|
|
3337
|
+
function Ra(e, n) {
|
|
3338
|
+
return function({ children: a, node: o, ...l }) {
|
|
3339
|
+
const r = se(n, "details") ?? J(n, "details") ?? We;
|
|
3340
|
+
return c.createElement(r, {
|
|
3341
|
+
...l,
|
|
3342
|
+
node: o,
|
|
3343
|
+
className: $(l.className, e.details),
|
|
3344
|
+
children: a
|
|
3345
|
+
});
|
|
3346
|
+
};
|
|
3347
|
+
}
|
|
3348
|
+
function Aa(e = {}, n = {}, t = {}, a) {
|
|
3349
|
+
return {
|
|
3350
|
+
h1: w("h1", "heading", e, t, a),
|
|
3351
|
+
h2: w("h2", "heading", e, t, a),
|
|
3352
|
+
h3: w("h3", "heading", e, t, a),
|
|
3353
|
+
h4: w("h4", "heading", e, t, a),
|
|
3354
|
+
h5: w("h5", "heading", e, t, a),
|
|
3355
|
+
h6: w("h6", "heading", e, t, a),
|
|
3356
|
+
p: w("p", "paragraph", e, t, a),
|
|
3357
|
+
a: w("a", "link", e, t, a),
|
|
3358
|
+
ul: w("ul", "list", e, t, a),
|
|
3359
|
+
ol: Ta(e, t),
|
|
3360
|
+
li: w("li", "listItem", e, t, a),
|
|
3361
|
+
blockquote: w("blockquote", "blockquote", e, t),
|
|
3362
|
+
hr: w("hr", "horizontalRule", e, t),
|
|
3363
|
+
strong: w("strong", "strong", e, t),
|
|
3364
|
+
em: w("em", "emphasis", e, t),
|
|
3365
|
+
del: w("del", "strikethrough", e, t),
|
|
3366
|
+
mark: w("mark", "highlight", e, t),
|
|
3367
|
+
kbd: w("kbd", "keyboard", e, t),
|
|
3368
|
+
sup: w("sup", "superscript", e, t),
|
|
3369
|
+
sub: w("sub", "subscript", e, t),
|
|
3370
|
+
code: w("code", "inlineCode", e, t),
|
|
3371
|
+
div: Na(e, t, a),
|
|
3372
|
+
aside: Se("aside", e, t, a),
|
|
3373
|
+
section: Se("section", e, t, a),
|
|
3374
|
+
span: Se("span", e, t, a),
|
|
3375
|
+
pre: w("pre", "code", e, t),
|
|
3376
|
+
table: w("table", "table", e, t),
|
|
3377
|
+
thead: w("thead", "tableHead", e, t),
|
|
3378
|
+
tbody: w("tbody", "tableBody", e, t),
|
|
3379
|
+
tr: w("tr", "tableRow", e, t),
|
|
3380
|
+
th: w("th", "tableHeader", e, t),
|
|
3381
|
+
td: w("td", "tableCell", e, t),
|
|
3382
|
+
input: w("input", "taskCheckbox", e, t),
|
|
3383
|
+
figure: Ma(e, t, a),
|
|
3384
|
+
img: w("img", "image", e, t, a),
|
|
3385
|
+
video: w("video", "video", e, t, a),
|
|
3386
|
+
audio: w("audio", "audio", e, t, a),
|
|
3387
|
+
iframe: w("iframe", "embed", e, t, a),
|
|
3388
|
+
dl: w("dl", "definitionList", e, t),
|
|
3389
|
+
dt: w("dt", "definitionTerm", e, t),
|
|
3390
|
+
dd: w("dd", "definitionDescription", e, t),
|
|
3391
|
+
summary: w("summary", "summary", e, t),
|
|
3392
|
+
figcaption: Da(n, t),
|
|
3393
|
+
svg: La(n, t),
|
|
3394
|
+
details: Ra(e, t),
|
|
3395
|
+
MarkdownCallout: xe,
|
|
3396
|
+
MarkdownTabs: fe,
|
|
3397
|
+
MarkdownSteps: Ke,
|
|
3398
|
+
MarkdownCodeBlock: _e,
|
|
3399
|
+
MarkdownCopySnippet: Oe,
|
|
3400
|
+
MarkdownTable: $e,
|
|
3401
|
+
MarkdownImage: Re,
|
|
3402
|
+
MarkdownDetails: We,
|
|
3403
|
+
MarkdownTerminal: ve,
|
|
3404
|
+
MarkdownFileTree: He,
|
|
3405
|
+
MarkdownGallery: Le,
|
|
3406
|
+
MarkdownCardGrid: qe,
|
|
3407
|
+
MarkdownApiBlock: Xe,
|
|
3408
|
+
MarkdownAside: Ge,
|
|
3409
|
+
MarkdownBadge: Je,
|
|
3410
|
+
Callout: xe,
|
|
3411
|
+
Tabs: fe,
|
|
3412
|
+
CodeGroup: fe,
|
|
3413
|
+
Steps: Ke,
|
|
3414
|
+
CodeBlock: _e,
|
|
3415
|
+
CopySnippet: Oe,
|
|
3416
|
+
Table: $e,
|
|
3417
|
+
Image: Re,
|
|
3418
|
+
Details: We,
|
|
3419
|
+
Terminal: ve,
|
|
3420
|
+
FileTree: He,
|
|
3421
|
+
Gallery: Le,
|
|
3422
|
+
CardGrid: qe,
|
|
3423
|
+
Api: Xe,
|
|
3424
|
+
Aside: Ge,
|
|
3425
|
+
Badge: Je
|
|
3426
|
+
};
|
|
3427
|
+
}
|
|
3428
|
+
function Pa(e) {
|
|
3429
|
+
return !!(e && typeof e == "object" && typeof e.type == "string");
|
|
3430
|
+
}
|
|
3431
|
+
function Wn(e, n = {}, t = !0) {
|
|
3432
|
+
return Bt(e, {
|
|
3433
|
+
Fragment: s.Fragment,
|
|
3434
|
+
jsx: s.jsx,
|
|
3435
|
+
jsxs: s.jsxs,
|
|
3436
|
+
components: t ? Aa(n.classNames, n.slots, n.components) : void 0,
|
|
3437
|
+
passNode: !0
|
|
3438
|
+
});
|
|
3439
|
+
}
|
|
3440
|
+
function Oa(e, n = {}) {
|
|
3441
|
+
try {
|
|
3442
|
+
const t = Sn(e);
|
|
3443
|
+
return t ? Wn(t, n) : void 0;
|
|
3444
|
+
} catch {
|
|
3445
|
+
return;
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
function za(e, n = {}, t = !0) {
|
|
3449
|
+
try {
|
|
3450
|
+
const a = Sn(e);
|
|
3451
|
+
return !a || !("children" in a) || !Array.isArray(a.children) ? void 0 : a.children.filter(Pa).map((o, l) => {
|
|
3452
|
+
const r = o.type === "text" ? o.value : Wn(o, n, t);
|
|
3453
|
+
return c.isValidElement(r) && r.key === null ? c.cloneElement(r, { key: `markdown-node-${l}` }) : r;
|
|
3454
|
+
});
|
|
3455
|
+
} catch {
|
|
3456
|
+
return;
|
|
3457
|
+
}
|
|
3458
|
+
}
|
|
3459
|
+
export {
|
|
3460
|
+
Re as M,
|
|
3461
|
+
$e as a,
|
|
3462
|
+
Oa as b,
|
|
3463
|
+
za as r
|
|
3464
|
+
};
|