md-editor-v3 1.11.4 → 1.11.7
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/lib/MdEditor/layouts/Catalog/index.d.ts +2 -2
- package/lib/md-editor-v3.es.js +82 -47
- package/lib/md-editor-v3.umd.js +40 -40
- package/lib/style.css +1 -1
- package/package.json +2 -2
|
@@ -18,7 +18,7 @@ declare const Catalog: import("vue").DefineComponent<{
|
|
|
18
18
|
default: (text: string) => string;
|
|
19
19
|
};
|
|
20
20
|
scrollElement: {
|
|
21
|
-
type: PropType<string |
|
|
21
|
+
type: PropType<string | Element>;
|
|
22
22
|
};
|
|
23
23
|
theme: {
|
|
24
24
|
type: PropType<Themes>;
|
|
@@ -37,7 +37,7 @@ declare const Catalog: import("vue").DefineComponent<{
|
|
|
37
37
|
default: (text: string) => string;
|
|
38
38
|
};
|
|
39
39
|
scrollElement: {
|
|
40
|
-
type: PropType<string |
|
|
40
|
+
type: PropType<string | Element>;
|
|
41
41
|
};
|
|
42
42
|
theme: {
|
|
43
43
|
type: PropType<Themes>;
|
package/lib/md-editor-v3.es.js
CHANGED
|
@@ -21,9 +21,9 @@ var __publicField = (obj, key, value) => {
|
|
|
21
21
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
22
|
return value;
|
|
23
23
|
};
|
|
24
|
-
import { onMounted, onBeforeUnmount, provide, computed, defineComponent, createVNode, reactive, ref, watch, cloneVNode, nextTick, inject, mergeProps, Fragment } from "vue";
|
|
24
|
+
import { onMounted, onBeforeUnmount, provide, computed, defineComponent, createVNode, reactive, ref, watch, cloneVNode, nextTick, inject, mergeProps, Fragment, toRef } from "vue";
|
|
25
25
|
const prefix = "md";
|
|
26
|
-
const iconfontUrl = "
|
|
26
|
+
const iconfontUrl = "https://at.alicdn.com/t/font_2605852_pqekijay2ij.js";
|
|
27
27
|
const highlightUrl = {
|
|
28
28
|
atom: "https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/atom-one-dark.css",
|
|
29
29
|
github: "https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/github.css",
|
|
@@ -918,6 +918,22 @@ const debounce = (fn, ms = 200) => {
|
|
|
918
918
|
}, ms);
|
|
919
919
|
};
|
|
920
920
|
};
|
|
921
|
+
const splitKatexValue = (str, key = "$") => {
|
|
922
|
+
const arr = str.split(key);
|
|
923
|
+
let regText = key;
|
|
924
|
+
let text = "";
|
|
925
|
+
for (let i = 1; i < arr.length; i++) {
|
|
926
|
+
if (/\\$/.test(arr[i])) {
|
|
927
|
+
regText += arr[i] + "$";
|
|
928
|
+
text += arr[i] + "$";
|
|
929
|
+
} else {
|
|
930
|
+
regText += arr[i] + key;
|
|
931
|
+
text += arr[i];
|
|
932
|
+
break;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
return [regText, text];
|
|
936
|
+
};
|
|
921
937
|
var style$2 = "";
|
|
922
938
|
var Modal = defineComponent({
|
|
923
939
|
props: {
|
|
@@ -2215,7 +2231,7 @@ function unescape(html) {
|
|
|
2215
2231
|
}
|
|
2216
2232
|
const caret = /(^|[^\[])\^/g;
|
|
2217
2233
|
function edit(regex, opt) {
|
|
2218
|
-
regex = regex
|
|
2234
|
+
regex = typeof regex === "string" ? regex : regex.source;
|
|
2219
2235
|
opt = opt || "";
|
|
2220
2236
|
const obj = {
|
|
2221
2237
|
replace: (name, val) => {
|
|
@@ -2341,7 +2357,7 @@ function rtrim(str, c, invert) {
|
|
|
2341
2357
|
break;
|
|
2342
2358
|
}
|
|
2343
2359
|
}
|
|
2344
|
-
return str.
|
|
2360
|
+
return str.slice(0, l - suffLen);
|
|
2345
2361
|
}
|
|
2346
2362
|
function findClosingBracket(str, b) {
|
|
2347
2363
|
if (str.indexOf(b[1]) === -1) {
|
|
@@ -2499,7 +2515,7 @@ class Tokenizer {
|
|
|
2499
2515
|
blockquote(src) {
|
|
2500
2516
|
const cap = this.rules.block.blockquote.exec(src);
|
|
2501
2517
|
if (cap) {
|
|
2502
|
-
const text = cap[0].replace(/^ *> ?/gm, "");
|
|
2518
|
+
const text = cap[0].replace(/^ *>[ \t]?/gm, "");
|
|
2503
2519
|
return {
|
|
2504
2520
|
type: "blockquote",
|
|
2505
2521
|
raw: cap[0],
|
|
@@ -2526,7 +2542,7 @@ class Tokenizer {
|
|
|
2526
2542
|
if (this.options.pedantic) {
|
|
2527
2543
|
bull = isordered ? bull : "[*+-]";
|
|
2528
2544
|
}
|
|
2529
|
-
const itemRegex = new RegExp(`^( {0,3}${bull})((?:
|
|
2545
|
+
const itemRegex = new RegExp(`^( {0,3}${bull})((?:[ ][^\\n]*)?(?:\\n|$))`);
|
|
2530
2546
|
while (src) {
|
|
2531
2547
|
endEarly = false;
|
|
2532
2548
|
if (!(cap = itemRegex.exec(src))) {
|
|
@@ -3018,10 +3034,10 @@ const block = {
|
|
|
3018
3034
|
newline: /^(?: *(?:\n|$))+/,
|
|
3019
3035
|
code: /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,
|
|
3020
3036
|
fences: /^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
|
|
3021
|
-
hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,
|
|
3037
|
+
hr: /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,
|
|
3022
3038
|
heading: /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
|
|
3023
3039
|
blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,
|
|
3024
|
-
list: /^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,
|
|
3040
|
+
list: /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,
|
|
3025
3041
|
html: "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",
|
|
3026
3042
|
def: /^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,
|
|
3027
3043
|
table: noopTest,
|
|
@@ -3064,8 +3080,8 @@ const inline = {
|
|
|
3064
3080
|
reflinkSearch: "reflink|nolink(?!\\()",
|
|
3065
3081
|
emStrong: {
|
|
3066
3082
|
lDelim: /^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,
|
|
3067
|
-
rDelimAst: /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,
|
|
3068
|
-
rDelimUnd: /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/
|
|
3083
|
+
rDelimAst: /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,
|
|
3084
|
+
rDelimUnd: /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/
|
|
3069
3085
|
},
|
|
3070
3086
|
code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
|
|
3071
3087
|
br: /^( {2,}|\\)\n(?!\s*$)/,
|
|
@@ -3186,7 +3202,7 @@ class Lexer {
|
|
|
3186
3202
|
return lexer.inlineTokens(src);
|
|
3187
3203
|
}
|
|
3188
3204
|
lex(src) {
|
|
3189
|
-
src = src.replace(/\r\n|\r/g, "\n")
|
|
3205
|
+
src = src.replace(/\r\n|\r/g, "\n");
|
|
3190
3206
|
this.blockTokens(src, this.tokens);
|
|
3191
3207
|
let next;
|
|
3192
3208
|
while (next = this.inlineQueue.shift()) {
|
|
@@ -3196,7 +3212,11 @@ class Lexer {
|
|
|
3196
3212
|
}
|
|
3197
3213
|
blockTokens(src, tokens = []) {
|
|
3198
3214
|
if (this.options.pedantic) {
|
|
3199
|
-
src = src.replace(/^ +$/gm, "");
|
|
3215
|
+
src = src.replace(/\t/g, " ").replace(/^ +$/gm, "");
|
|
3216
|
+
} else {
|
|
3217
|
+
src = src.replace(/^( *)(\t+)/gm, (_, leading, tabs) => {
|
|
3218
|
+
return leading + " ".repeat(tabs.length);
|
|
3219
|
+
});
|
|
3200
3220
|
}
|
|
3201
3221
|
let token, lastToken, cutSrc, lastParagraphClipped;
|
|
3202
3222
|
while (src) {
|
|
@@ -3505,16 +3525,21 @@ class Renderer {
|
|
|
3505
3525
|
return '<pre><code class="' + this.options.langPrefix + escape(lang, true) + '">' + (escaped ? code : escape(code, true)) + "</code></pre>\n";
|
|
3506
3526
|
}
|
|
3507
3527
|
blockquote(quote) {
|
|
3508
|
-
return
|
|
3528
|
+
return `<blockquote>
|
|
3529
|
+
${quote}</blockquote>
|
|
3530
|
+
`;
|
|
3509
3531
|
}
|
|
3510
3532
|
html(html) {
|
|
3511
3533
|
return html;
|
|
3512
3534
|
}
|
|
3513
3535
|
heading(text, level, raw, slugger) {
|
|
3514
3536
|
if (this.options.headerIds) {
|
|
3515
|
-
|
|
3537
|
+
const id = this.options.headerPrefix + slugger.slug(raw);
|
|
3538
|
+
return `<h${level} id="${id}">${text}</h${level}>
|
|
3539
|
+
`;
|
|
3516
3540
|
}
|
|
3517
|
-
return
|
|
3541
|
+
return `<h${level}>${text}</h${level}>
|
|
3542
|
+
`;
|
|
3518
3543
|
}
|
|
3519
3544
|
hr() {
|
|
3520
3545
|
return this.options.xhtml ? "<hr/>\n" : "<hr>\n";
|
|
@@ -3524,41 +3549,46 @@ class Renderer {
|
|
|
3524
3549
|
return "<" + type + startatt + ">\n" + body + "</" + type + ">\n";
|
|
3525
3550
|
}
|
|
3526
3551
|
listitem(text) {
|
|
3527
|
-
return
|
|
3552
|
+
return `<li>${text}</li>
|
|
3553
|
+
`;
|
|
3528
3554
|
}
|
|
3529
3555
|
checkbox(checked) {
|
|
3530
3556
|
return "<input " + (checked ? 'checked="" ' : "") + 'disabled="" type="checkbox"' + (this.options.xhtml ? " /" : "") + "> ";
|
|
3531
3557
|
}
|
|
3532
3558
|
paragraph(text) {
|
|
3533
|
-
return
|
|
3559
|
+
return `<p>${text}</p>
|
|
3560
|
+
`;
|
|
3534
3561
|
}
|
|
3535
3562
|
table(header, body) {
|
|
3536
3563
|
if (body)
|
|
3537
|
-
body =
|
|
3564
|
+
body = `<tbody>${body}</tbody>`;
|
|
3538
3565
|
return "<table>\n<thead>\n" + header + "</thead>\n" + body + "</table>\n";
|
|
3539
3566
|
}
|
|
3540
3567
|
tablerow(content) {
|
|
3541
|
-
return
|
|
3568
|
+
return `<tr>
|
|
3569
|
+
${content}</tr>
|
|
3570
|
+
`;
|
|
3542
3571
|
}
|
|
3543
3572
|
tablecell(content, flags) {
|
|
3544
3573
|
const type = flags.header ? "th" : "td";
|
|
3545
|
-
const tag = flags.align ?
|
|
3546
|
-
return tag + content +
|
|
3574
|
+
const tag = flags.align ? `<${type} align="${flags.align}">` : `<${type}>`;
|
|
3575
|
+
return tag + content + `</${type}>
|
|
3576
|
+
`;
|
|
3547
3577
|
}
|
|
3548
3578
|
strong(text) {
|
|
3549
|
-
return
|
|
3579
|
+
return `<strong>${text}</strong>`;
|
|
3550
3580
|
}
|
|
3551
3581
|
em(text) {
|
|
3552
|
-
return
|
|
3582
|
+
return `<em>${text}</em>`;
|
|
3553
3583
|
}
|
|
3554
3584
|
codespan(text) {
|
|
3555
|
-
return
|
|
3585
|
+
return `<code>${text}</code>`;
|
|
3556
3586
|
}
|
|
3557
3587
|
br() {
|
|
3558
3588
|
return this.options.xhtml ? "<br/>" : "<br>";
|
|
3559
3589
|
}
|
|
3560
3590
|
del(text) {
|
|
3561
|
-
return
|
|
3591
|
+
return `<del>${text}</del>`;
|
|
3562
3592
|
}
|
|
3563
3593
|
link(href, title, text) {
|
|
3564
3594
|
href = cleanUrl(this.options.sanitize, this.options.baseUrl, href);
|
|
@@ -3577,9 +3607,9 @@ class Renderer {
|
|
|
3577
3607
|
if (href === null) {
|
|
3578
3608
|
return text;
|
|
3579
3609
|
}
|
|
3580
|
-
let out =
|
|
3610
|
+
let out = `<img src="${href}" alt="${text}"`;
|
|
3581
3611
|
if (title) {
|
|
3582
|
-
out +=
|
|
3612
|
+
out += ` title="${title}"`;
|
|
3583
3613
|
}
|
|
3584
3614
|
out += this.options.xhtml ? "/>" : ">";
|
|
3585
3615
|
return out;
|
|
@@ -4612,9 +4642,8 @@ var kaTexExtensions = {
|
|
|
4612
4642
|
return (_a = text.match(/\n\$\$\n/)) == null ? void 0 : _a.index;
|
|
4613
4643
|
},
|
|
4614
4644
|
tokenizer(text) {
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
if (match) {
|
|
4645
|
+
if (/^\$\$\n/.test(text)) {
|
|
4646
|
+
const match = splitKatexValue(text, "$$");
|
|
4618
4647
|
const token = {
|
|
4619
4648
|
type: "KaTexBlockExtension",
|
|
4620
4649
|
raw: match[0],
|
|
@@ -4644,12 +4673,11 @@ var kaTexExtensions = {
|
|
|
4644
4673
|
level: "inline",
|
|
4645
4674
|
start: (text) => {
|
|
4646
4675
|
var _a;
|
|
4647
|
-
return (_a = text.match(/\$[^\n]
|
|
4676
|
+
return (_a = text.match(/\$[^\n]*/)) == null ? void 0 : _a.index;
|
|
4648
4677
|
},
|
|
4649
4678
|
tokenizer(text) {
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
if (match) {
|
|
4679
|
+
if (/^\$[^\n]*/.test(text)) {
|
|
4680
|
+
const match = splitKatexValue(text);
|
|
4653
4681
|
const token = {
|
|
4654
4682
|
type: "KaTexInlineExtension",
|
|
4655
4683
|
raw: match[0],
|
|
@@ -4817,16 +4845,20 @@ const useMarked = (props2, mermaidData) => {
|
|
|
4817
4845
|
extensions: props2.extensions
|
|
4818
4846
|
});
|
|
4819
4847
|
}
|
|
4820
|
-
const html =
|
|
4848
|
+
const html = ref(props2.sanitize(marked(props2.value || "")));
|
|
4849
|
+
const markHtml = debounce(() => {
|
|
4821
4850
|
heads.value = [];
|
|
4822
|
-
const _html = marked(props2.value || "");
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4851
|
+
const _html = props2.sanitize(marked(props2.value || ""));
|
|
4852
|
+
html.value = _html;
|
|
4853
|
+
props2.onHtmlChanged(_html);
|
|
4854
|
+
}, 500);
|
|
4855
|
+
watch([
|
|
4856
|
+
highlightInited,
|
|
4857
|
+
toRef(mermaidData, "reRender"),
|
|
4858
|
+
toRef(mermaidData, "mermaidInited"),
|
|
4859
|
+
katexInited,
|
|
4860
|
+
toRef(props2, "value")
|
|
4861
|
+
], markHtml);
|
|
4830
4862
|
const highlightLoad = () => {
|
|
4831
4863
|
marked.setOptions({
|
|
4832
4864
|
highlight: (code) => {
|
|
@@ -4836,7 +4868,6 @@ const useMarked = (props2, mermaidData) => {
|
|
|
4836
4868
|
});
|
|
4837
4869
|
highlightInited.value = true;
|
|
4838
4870
|
};
|
|
4839
|
-
watch(() => html.value, props2.onHtmlChanged);
|
|
4840
4871
|
watch(() => heads.value, (list) => {
|
|
4841
4872
|
props2.onGetCatalog(list);
|
|
4842
4873
|
bus.emit(editorId, "catalogChanged", list);
|
|
@@ -4908,7 +4939,9 @@ const useAutoScroll = (props2, html, textAreaRef, previewRef, htmlRef) => {
|
|
|
4908
4939
|
});
|
|
4909
4940
|
};
|
|
4910
4941
|
onMounted(() => {
|
|
4911
|
-
|
|
4942
|
+
if (previewRef.value || htmlRef.value) {
|
|
4943
|
+
[initScrollAuto, clearScrollAuto] = scrollAuto(textAreaRef.value, previewRef.value || htmlRef.value);
|
|
4944
|
+
}
|
|
4912
4945
|
});
|
|
4913
4946
|
const htmlChanged = () => {
|
|
4914
4947
|
nextTick(() => {
|
|
@@ -5207,7 +5240,7 @@ const CatalogLink = defineComponent({
|
|
|
5207
5240
|
e.stopPropagation();
|
|
5208
5241
|
const id = props2.markedHeadingId(props2.tocItem.text, props2.tocItem.level);
|
|
5209
5242
|
const targetHeadEle = document.getElementById(id);
|
|
5210
|
-
const scrollContainer = props2.scrollElement instanceof
|
|
5243
|
+
const scrollContainer = props2.scrollElement instanceof Element ? props2.scrollElement : document.querySelector(props2.scrollElement);
|
|
5211
5244
|
if (targetHeadEle && scrollContainer) {
|
|
5212
5245
|
let par = targetHeadEle.offsetParent;
|
|
5213
5246
|
let offsetTop = targetHeadEle.offsetTop;
|
|
@@ -5223,7 +5256,9 @@ const CatalogLink = defineComponent({
|
|
|
5223
5256
|
});
|
|
5224
5257
|
}
|
|
5225
5258
|
}
|
|
5226
|
-
}, [createVNode("span",
|
|
5259
|
+
}, [createVNode("span", {
|
|
5260
|
+
"title": props2.tocItem.text
|
|
5261
|
+
}, [props2.tocItem.text]), props2.tocItem.children && props2.tocItem.children.map((item) => createVNode(CatalogLink, {
|
|
5227
5262
|
"markedHeadingId": props2.markedHeadingId,
|
|
5228
5263
|
"key": item.text,
|
|
5229
5264
|
"tocItem": item,
|
package/lib/md-editor-v3.umd.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var en=Object.defineProperty,tn=Object.defineProperties;var nn=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var ln=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable;var se=(a,c,D)=>c in a?en(a,c,{enumerable:!0,configurable:!0,writable:!0,value:D}):a[c]=D,K=(a,c)=>{for(var D in c||(c={}))ln.call(c,D)&&se(a,D,c[D]);if(it)for(var D of it(c))rn.call(c,D)&&se(a,D,c[D]);return a},te=(a,c)=>tn(a,nn(c));var lt=(a,c,D)=>(se(a,typeof c!="symbol"?c+"":c,D),D);(function(a,c){typeof exports=="object"&&typeof module!="undefined"?module.exports=c(require("vue")):typeof define=="function"&&define.amd?define(["vue"],c):(a=typeof globalThis!="undefined"?globalThis:a||self,a.MdEditorV3=c(a.Vue))})(this,function(a){"use strict";const c="md",D="//at.alicdn.com/t/font_2605852_pqekijay2ij.js",G={atom:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/atom-one-dark.css",github:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/github.css",githubDark:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/github-dark.css",js:"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/highlight.min.js"},oe={main:"https://cdn.jsdelivr.net/npm/prettier@2.4.0/standalone.js",markdown:"https://cdn.jsdelivr.net/npm/prettier@2.4.0/parser-markdown.js"},ce={css:"https://cdn.jsdelivr.net/npm/cropperjs@1.5.12/dist/cropper.min.css",js:"https://cdn.jsdelivr.net/npm/cropperjs@1.5.12/dist/cropper.min.js"},rt="https://cdn.jsdelivr.net/npm/screenfull@5.1.0/dist/screenfull.js",de=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],ue={"zh-CN":{toolbarTips:{bold:"\u52A0\u7C97",underline:"\u4E0B\u5212\u7EBF",italic:"\u659C\u4F53",strikeThrough:"\u5220\u9664\u7EBF",title:"\u6807\u9898",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",quote:"\u5F15\u7528",unorderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868",codeRow:"\u884C\u5185\u4EE3\u7801",code:"\u5757\u7EA7\u4EE3\u7801",link:"\u94FE\u63A5",image:"\u56FE\u7247",table:"\u8868\u683C",mermaid:"mermaid\u56FE",katex:"katex\u516C\u5F0F",revoke:"\u540E\u9000",next:"\u524D\u8FDB",save:"\u4FDD\u5B58",prettier:"\u7F8E\u5316",pageFullscreen:"\u6D4F\u89C8\u5668\u5168\u5C4F",fullscreen:"\u5C4F\u5E55\u5168\u5C4F",preview:"\u9884\u89C8",htmlPreview:"html\u4EE3\u7801\u9884\u89C8",catalog:"\u76EE\u5F55",github:"\u6E90\u7801\u5730\u5740"},titleItem:{h1:"\u4E00\u7EA7\u6807\u9898",h2:"\u4E8C\u7EA7\u6807\u9898",h3:"\u4E09\u7EA7\u6807\u9898",h4:"\u56DB\u7EA7\u6807\u9898",h5:"\u4E94\u7EA7\u6807\u9898",h6:"\u516D\u7EA7\u6807\u9898"},imgTitleItem:{link:"\u6DFB\u52A0\u94FE\u63A5",upload:"\u4E0A\u4F20\u56FE\u7247",clip2upload:"\u88C1\u526A\u4E0A\u4F20"},linkModalTips:{title:"\u6DFB\u52A0",descLable:"\u94FE\u63A5\u63CF\u8FF0\uFF1A",descLablePlaceHolder:"\u8BF7\u8F93\u5165\u63CF\u8FF0...",urlLable:"\u94FE\u63A5\u5730\u5740\uFF1A",UrlLablePlaceHolder:"\u8BF7\u8F93\u5165\u94FE\u63A5...",buttonOK:"\u786E\u5B9A"},clipModalTips:{title:"\u88C1\u526A\u56FE\u7247\u4E0A\u4F20",buttonUpload:"\u4E0A\u4F20"},copyCode:{text:"\u590D\u5236\u4EE3\u7801",tips:"\u5DF2\u590D\u5236\uFF01"},mermaid:{flow:"\u6D41\u7A0B\u56FE",sequence:"\u65F6\u5E8F\u56FE",gantt:"\u7518\u7279\u56FE",class:"\u7C7B\u56FE",state:"\u72B6\u6001\u56FE",pie:"\u997C\u56FE",relationship:"\u5173\u7CFB\u56FE",journey:"\u65C5\u7A0B\u56FE"},katex:{inline:"\u884C\u5185\u516C\u5F0F",block:"\u5757\u7EA7\u516C\u5F0F"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{title:"Add ",descLable:"Desc:",descLablePlaceHolder:"Enter a description...",urlLable:"Link:",UrlLablePlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",tips:"Copied!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"}}},at="https://cdn.jsdelivr.net/npm/mermaid@8.13.5/dist/mermaid.min.js",st="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js",ot="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css";class ct{constructor(){lt(this,"pools",{})}remove(t,e,n){const r=this.pools[t]&&this.pools[t][e];r&&(this.pools[t][e]=r.filter(s=>s===n))}clear(t){this.pools[t]={}}on(t,e){return this.pools[t]||(this.pools[t]={}),this.pools[t][e.name]||(this.pools[t][e.name]=[]),this.pools[t][e.name].push(e.callback),this.pools[t][e.name].includes(e.callback)}emit(t,e,...n){this.pools[t]||(this.pools[t]={});const r=this.pools[t][e];r&&r.forEach(s=>{try{s(...n)}catch(o){console.error(`${e} monitor event exception\uFF01`,o)}})}}var y=new ct;const he=(i,t)=>{const e=n=>{const l=i.parentElement||document.body,r=l.offsetWidth,s=l.offsetHeight,{clientWidth:o}=document.documentElement,{clientHeight:d}=document.documentElement,f=n.offsetX,p=n.offsetY,g=h=>{let m=h.x+document.body.scrollLeft-document.body.clientLeft-f,b=h.y+document.body.scrollTop-document.body.clientTop-p;m=m<1?1:m<o-r-1?m:o-r-1,b=b<1?1:b<d-s-1?b:d-s-1,t?t(m,b):(l.style.left=`${m}px`,l.style.top=`${b}px`)};document.addEventListener("mousemove",g);const u=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",u)};document.addEventListener("mouseup",u)};return i.addEventListener("mousedown",e),()=>{i.removeEventListener("mousedown",e)}},R=(i,t="")=>{const e=document.getElementById(i.id);e?t!==""&&i.onload instanceof Function&&(Reflect.get(window,t)?i.onload(new Event("load")):e.addEventListener("load",i.onload)):document.head.appendChild(i)},dt=(i,t)=>{const{editorId:e}=i,n=r=>{var s,o;return((s=i.toolbars)==null?void 0:s.includes(r))&&!((o=i.toolbarsExclude)!=null&&o.includes(r))},l=r=>{if(r.target===document.querySelector(`#${i.editorId}-textarea`))if(r.ctrlKey||r.metaKey)switch(r.code){case"KeyS":{r.shiftKey?n("strikeThrough")&&y.emit(e,"replace","strikeThrough"):n("save")&&(y.emit(e,"onSave",i.modelValue),r.preventDefault());break}case"KeyB":{n("bold")&&(y.emit(e,"replace","bold"),r.preventDefault());break}case"KeyU":{r.shiftKey?n("unorderedList")&&(y.emit(e,"replace","unorderedList"),r.preventDefault()):n("underline")&&(y.emit(e,"replace","underline"),r.preventDefault());break}case"KeyI":{r.shiftKey?n("image")&&(y.emit(e,"openModals","image"),r.preventDefault()):n("italic")&&(y.emit(e,"replace","italic"),r.preventDefault());break}case"Digit1":{n("title")&&(y.emit(e,"replace","h1"),r.preventDefault());break}case"Digit2":{n("title")&&(y.emit(e,"replace","h2"),r.preventDefault());break}case"Digit3":{n("title")&&(y.emit(e,"replace","h3"),r.preventDefault());break}case"Digit4":{n("title")&&(y.emit(e,"replace","h4"),r.preventDefault());break}case"Digit5":{n("title")&&(y.emit(e,"replace","h5"),r.preventDefault());break}case"Digit6":{n("title")&&(y.emit(e,"replace","h6"),r.preventDefault());break}case"ArrowUp":{n("sup")&&(y.emit(e,"replace","sup"),r.preventDefault());break}case"ArrowDown":{n("sub")&&(y.emit(e,"replace","sub"),r.preventDefault());break}case"KeyQ":{if(r.key==="a"){r.target.select();return}y.emit(e,"replace","quote"),r.preventDefault();break}case"KeyA":if(r.key==="q"){y.emit(e,"replace","quote"),r.preventDefault();break}else return;case"KeyO":{n("orderedList")&&(y.emit(e,"replace","orderedList"),r.preventDefault());break}case"KeyC":{if(r.shiftKey)n("code")&&(y.emit(e,"replace","code"),r.preventDefault());else if(r.altKey)n("codeRow")&&(y.emit(e,"replace","codeRow"),r.preventDefault());else{r.preventDefault(),y.emit(e,"replace","ctrlC");break}break}case"KeyL":{n("link")&&(y.emit(e,"openModals","link"),r.preventDefault());break}case"KeyZ":{if(r.key==="w")return;r.shiftKey?n("next")&&(y.emit(e,"ctrlShiftZ"),r.preventDefault()):n("revoke")&&(y.emit(e,"ctrlZ"),r.preventDefault());break}case"KeyW":if(r.key==="z"){r.shiftKey?n("next")&&(y.emit(e,"ctrlShiftZ"),r.preventDefault()):n("revoke")&&(y.emit(e,"ctrlZ"),r.preventDefault());break}else return;case"KeyF":{r.shiftKey&&n("prettier")&&(y.emit(e,"replace","prettier"),r.preventDefault());break}case"KeyT":{r.altKey&&r.shiftKey&&n("table")&&(y.emit(e,"replace","table"),r.preventDefault());break}case"KeyX":{y.emit(e,"replace","ctrlX"),r.preventDefault();break}case"KeyD":{r.preventDefault(),y.emit(e,"replace","ctrlD");break}}else r.code==="Tab"&&(r.preventDefault(),r.shiftKey?y.emit(e,"replace","shiftTab"):y.emit(e,"replace","tab"))};a.onMounted(()=>{i.previewOnly||(window.addEventListener("keydown",l),y.on(e,{name:"onSave",callback(){i.onSave?i.onSave(i.modelValue):t.emit("onSave",i.modelValue)}}))}),a.onBeforeUnmount(()=>{i.previewOnly||window.removeEventListener("keydown",l)})},ut=i=>{const{editorId:t}=i;a.provide("editorId",t),a.provide("tabWidth",i.tabWidth),a.provide("theme",a.computed(()=>i.theme));const e=a.computed(()=>{let l=G.atom;if(i.highlightCss)l=i.highlightCss;else switch(i.previewTheme){case"github":{i.theme==="dark"?l=G.githubDark:l=G.github;break}}return{js:i.highlightJs,css:l}});a.provide("highlight",e),a.provide("historyLength",i.historyLength),a.provide("previewOnly",i.previewOnly),a.provide("showCodeRowNumber",i.showCodeRowNumber);const n=a.computed(()=>{const l=K(K({},ue),i.languageUserDefined);return l[i.language]?l[i.language]:ue["zh-CN"]});a.provide("usedLanguageText",n),a.provide("Cropper",i.Cropper),a.provide("previewTheme",a.computed(()=>i.previewTheme))},ht=i=>{const{iconfontJs:t,prettier:e,prettierCDN:n,prettierMDCDN:l,previewOnly:r,cropperCss:s,cropperJs:o}=i;a.onMounted(()=>{const d=document.createElement("script");d.src=t,d.id=`${c}-icon`;const f=document.createElement("script"),p=document.createElement("script");f.src=n,f.id=`${c}-prettier`,p.src=l,p.id=`${c}-prettierMD`;const g=document.createElement("link");g.rel="stylesheet",g.href=s,g.id=`${c}-cropperCss`;const u=document.createElement("script");u.src=o,u.id=`${c}-cropper`,r||(R(d),i.Cropper||(R(g),R(u)),e&&(R(f),R(p)))})};var an="",ft=a.defineComponent({setup(){return()=>a.createVNode("div",{class:`${c}-divider`},null)}});const H=({instance:i,ctx:t,props:e={}},n="default")=>{const l=(i==null?void 0:i.$slots[n])||(t==null?void 0:t.slots[n]);return(l?l(i):"")||e[n]};var sn="",P=a.defineComponent({props:{trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>()=>{}}},setup(i,t){const e=`${c}-dropdown-hidden`,n=a.reactive({overlayClass:[e],overlayStyle:{},triggerHover:!1,overlayHover:!1}),l=a.ref(),r=a.ref(),s=()=>{i.trigger==="hover"&&(n.triggerHover=!0);const g=l.value,u=r.value,h=g.getBoundingClientRect(),m=g.offsetTop,b=g.offsetLeft,v=h.height,x=h.width;n.overlayStyle=te(K({},n.overlayStyle),{top:m+v+"px",left:b-u.offsetWidth/2+x/2+"px"}),i.onChange(!0)},o=()=>{n.overlayHover=!0};a.watch(()=>i.visible,g=>{g?n.overlayClass=n.overlayClass.filter(u=>u!==e):n.overlayClass.push(e)});const d=g=>{const u=l.value,h=r.value;!u.contains(g.target)&&!h.contains(g.target)&&i.onChange(!1)};let f=-1;const p=g=>{l.value===g.target?n.triggerHover=!1:n.overlayHover=!1,clearTimeout(f),f=window.setTimeout(()=>{!n.overlayHover&&!n.triggerHover&&i.onChange(!1)},10)};return a.onMounted(()=>{i.trigger==="click"?(l.value.addEventListener("click",s),document.addEventListener("click",d)):(l.value.addEventListener("mouseenter",s),l.value.addEventListener("mouseleave",p),r.value.addEventListener("mouseenter",o),r.value.addEventListener("mouseleave",p))}),a.onBeforeUnmount(()=>{i.trigger==="click"?(l.value.removeEventListener("click",s),document.removeEventListener("click",d)):(l.value.removeEventListener("mouseenter",s),l.value.removeEventListener("mouseleave",p),r.value.removeEventListener("mouseenter",o),r.value.removeEventListener("mouseleave",p))}),()=>{const g=H({ctx:t}),u=H({props:i,ctx:t},"overlay"),h=a.cloneVNode(g instanceof Array?g[0]:g,{ref:l}),m=a.createVNode("div",{class:[`${c}-dropdown`,n.overlayClass],style:n.overlayStyle,ref:r},[a.createVNode("div",{class:`${c}-dropdown-overlay`},[u instanceof Array?u[0]:u])]);return[h,m]}}});const A=(i,t=0,e=t)=>{i.setSelectionRange?setTimeout(()=>{i.setSelectionRange(t,e),i.focus()},0):console.log("can not reset position!")},ne=(i,t,e)=>{const{deviationStart:n=0,deviationEnd:l=0,direct:r=!1,select:s=!1}=e;let o="";if(i.selectionStart||i.selectionStart===0){const d=i.selectionStart,f=i.selectionEnd||0,{prefixVal:p=i.value.substring(0,d),subfixVal:g=i.value.substring(f,i.value.length)}=e;o=p+t+g,A(i,s?d+n:d+t.length+l,d+t.length+l)}else o+=t;return r&&(i.value=o),o},pt=(i,t={newWindow:!0,nofollow:!0})=>{i||console.warn("error link!");const e=document.createElement("a");e.href=i,e.style.display="none",t.newWindow&&(e.target="_blank"),t.nofollow&&(e.rel="noopener noreferrer"),document.body.appendChild(e),e.click(),document.body.removeChild(e)},fe=(i,t)=>{const e=mt(()=>{i.removeEventListener("scroll",n),i.addEventListener("scroll",n),t.removeEventListener("scroll",n),t.addEventListener("scroll",n)},50),n=l=>{const r=i.clientHeight,s=t.clientHeight,o=i.scrollHeight,d=t.scrollHeight,f=(o-r)/(d-s);l.target===i?(t.removeEventListener("scroll",n),t.scrollTo({top:i.scrollTop/f}),e()):(i.removeEventListener("scroll",n),i.scrollTo({top:t.scrollTop*f}),e())};return[e,()=>{i.removeEventListener("scroll",n),t.removeEventListener("scroll",n)}]},gt=(i,t="image.png")=>{const e=i.split(","),n=e[0].match(/:(.*?);/);if(n){const l=n[1],r=atob(e[1]);let s=r.length;const o=new Uint8Array(s);for(;s--;)o[s]=r.charCodeAt(s);return new File([o],t,{type:l})}return null},pe=i=>{if(!i.trim())return i;const t=i.split(`
|
|
2
|
-
`),e=['<span rn-wrapper aria-hidden="true">'];return t.forEach(()=>{e.push("<span></span>")}),e.push("</span>"),`<span class="code-block">${i}</span>${e.join("")}`},mt=(i,t=200)=>{let e=0;return(...n)=>{e&&clearTimeout(e),e=window.setTimeout(()=>{i.apply(globalThis,n),e=0},t)}};var on="",ge=a.defineComponent({props:{title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClosed:{type:Function,default:()=>()=>{}},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>()=>{}}},setup(i,t){const e=a.ref(i.visible),n=a.ref([`${c}-modal`]),l=a.ref(),r=a.ref();let s=()=>{};const o=a.reactive({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}});return a.onMounted(()=>{s=he(r.value,(d,f)=>{o.initPos.left=d+"px",o.initPos.top=f+"px"})}),a.onBeforeUnmount(()=>{s()}),a.watch(()=>i.isFullscreen,d=>{d?s():s=he(r.value,(f,p)=>{o.initPos.left=f+"px",o.initPos.top=p+"px"})}),a.watch(()=>i.visible,d=>{d?(n.value.push("zoom-in"),e.value=d,a.nextTick(()=>{const f=l.value.offsetWidth/2,p=l.value.offsetHeight/2,g=document.documentElement.clientWidth/2,u=document.documentElement.clientHeight/2;o.initPos.left=g-f+"px",o.initPos.top=u-p+"px"}),setTimeout(()=>{n.value=n.value.filter(f=>f!=="zoom-in")},140)):(n.value.push("zoom-out"),setTimeout(()=>{n.value=n.value.filter(f=>f!=="zoom-out"),e.value=d},130))}),()=>{const d=H({ctx:t}),f=H({props:i,ctx:t},"title");return a.createVNode("div",{style:{display:e.value?"block":"none"}},[a.createVNode("div",{class:`${c}-modal-mask`,onClick:i.onClosed},null),a.createVNode("div",{class:n.value,style:te(K({},o.initPos),{width:i.width,height:i.height}),ref:l},[a.createVNode("div",{class:`${c}-modal-header`,ref:r},[f||""]),a.createVNode("div",{class:`${c}-modal-body`},[d]),a.createVNode("div",{class:`${c}-modal-func`},[i.showAdjust&&a.createVNode("div",{class:`${c}-modal-adjust`,onClick:p=>{p.stopPropagation(),i.isFullscreen?o.initPos=o.historyPos:(o.historyPos=o.initPos,o.initPos={left:"0",top:"0"}),i.onAdjust(!i.isFullscreen)}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":`#icon-${i.isFullscreen?"suoxiao":"fangda"}`},null)])]),a.createVNode("div",{class:`${c}-modal-close`,onClick:p=>{p.stopPropagation(),i.onClosed&&i.onClosed()}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-close"},null)])])])])])}}}),kt=a.defineComponent({props:{type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){const t=a.inject("usedLanguageText"),e=a.inject("editorId"),n=a.computed(()=>{var r,s,o,d;switch(i.type){case"link":return`${(r=t.value.linkModalTips)==null?void 0:r.title}${(s=t.value.toolbarTips)==null?void 0:s.link}`;case"image":return`${(o=t.value.linkModalTips)==null?void 0:o.title}${(d=t.value.toolbarTips)==null?void 0:d.image}`;default:return""}}),l=a.reactive({desc:"",url:""});return a.watch(()=>i.visible,r=>{r||setTimeout(()=>{l.desc="",l.url=""},200)}),()=>a.createVNode(ge,{title:n.value,visible:i.visible,onClosed:i.onCancel},{default:()=>{var r,s,o,d,f;return[a.createVNode("div",{class:`${c}-form-item`},[a.createVNode("label",{class:`${c}-lable`,for:`link-desc-${e}`},[(r=t.value.linkModalTips)==null?void 0:r.descLable]),a.createVNode("input",{placeholder:(s=t.value.linkModalTips)==null?void 0:s.descLablePlaceHolder,class:`${c}-input`,id:`link-desc-${e}`,type:"text",value:l.desc,onChange:p=>{l.desc=p.target.value},autocomplete:"off"},null)]),a.createVNode("div",{class:`${c}-form-item`},[a.createVNode("label",{class:`${c}-lable`,for:`link-url-${e}`},[(o=t.value.linkModalTips)==null?void 0:o.urlLable]),a.createVNode("input",{placeholder:(d=t.value.linkModalTips)==null?void 0:d.UrlLablePlaceHolder,class:`${c}-input`,id:`link-url-${e}`,type:"text",value:l.url,onChange:p=>{l.url=p.target.value},autocomplete:"off"},null)]),a.createVNode("div",{class:`${c}-form-item`},[a.createVNode("button",{class:[`${c}-btn`,`${c}-btn-row`],type:"button",onClick:()=>{i.onOk(l),l.desc="",l.url=""}},[(f=t.value.linkModalTips)==null?void 0:f.buttonOK])])]}})}}),cn="",bt=a.defineComponent({props:{visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){const t=a.inject("usedLanguageText"),e=a.inject("editorId");let n=a.inject("Cropper");const l=a.ref(),r=a.ref(),s=a.ref(),o=a.reactive({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let d=null;a.watch(()=>i.visible,()=>{i.visible&&!o.cropperInited&&(n=n||window.Cropper,l.value.onchange=()=>{const g=l.value.files||[];if(o.imgSelected=!0,(g==null?void 0:g.length)>0){const u=new FileReader;u.onload=h=>{o.imgSrc=h.target.result,a.nextTick(()=>{d=new n(r.value,{viewMode:2,preview:`.${c}-clip-preview-target`})})},u.readAsDataURL(g[0])}})}),a.watch(()=>[o.imgSelected],()=>{s.value.style=""}),a.watch(()=>o.isFullscreen,()=>{a.nextTick(()=>{d==null||d.destroy(),s.value.style="",r.value&&(d=new n(r.value,{viewMode:2,preview:`.${c}-clip-preview-target`}))})});const f=a.computed(()=>o.isFullscreen?{width:"100%",height:"100%"}:{width:"668px",height:"421px"}),p=()=>{d.destroy(),l.value.value="",o.imgSelected=!1};return()=>{var g;return a.createVNode(ge,a.mergeProps({title:(g=t.value.clipModalTips)==null?void 0:g.title,visible:i.visible,onClosed:i.onCancel,showAdjust:!0,isFullscreen:o.isFullscreen,onAdjust:u=>{o.isFullscreen=u}},f.value),{default:()=>{var u;return[a.createVNode("div",{class:`${c}-form-item ${c}-clip`},[a.createVNode("div",{class:`${c}-clip-main`},[o.imgSelected?a.createVNode("div",{class:`${c}-clip-cropper`},[a.createVNode("img",{src:o.imgSrc,ref:r,style:{display:"none"}},null),a.createVNode("div",{class:`${c}-clip-delete`,onClick:p},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-delete"},null)])])]):a.createVNode("div",{class:`${c}-clip-upload`,onClick:()=>{l.value.click()}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-upload"},null)])])]),a.createVNode("div",{class:`${c}-clip-preview`},[a.createVNode("div",{class:`${c}-clip-preview-target`,ref:s},null)])]),a.createVNode("div",{class:`${c}-form-item`},[a.createVNode("button",{class:`${c}-btn`,type:"button",onClick:()=>{const h=d.getCroppedCanvas();y.emit(e,"uploadImage",[gt(h.toDataURL("image/png"))],i.onOk),p()}},[(u=t.value.linkModalTips)==null?void 0:u.buttonOK])]),a.createVNode("input",{ref:l,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}}),yt=a.defineComponent({props:{type:{type:String,default:"link"},linkVisible:{type:Boolean,default:!1},clipVisible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){return()=>a.createVNode(a.Fragment,null,[a.createVNode(kt,{type:i.type,visible:i.linkVisible,onOk:i.onOk,onCancel:i.onCancel},null),a.createVNode(bt,{visible:i.clipVisible,onOk:i.onOk,onCancel:i.onCancel},null)])}});const wt=i=>{const t=a.inject("previewOnly");let{screenfull:e}=i;const n=()=>{e.isEnabled?e.isFullscreen?e.exit():e.request():console.error("browser does not support screenfull!")},l=()=>{e=window.screenfull,e&&e.isEnabled&&e.on("change",()=>{i.updateSetting(!i.setting.fullscreen,"fullscreen")})};return a.onMounted(()=>{if(e&&e.isEnabled&&e.on("change",()=>{i.updateSetting(!i.setting.fullscreen,"fullscreen")}),!t&&i.screenfull===null){const r=document.createElement("script");r.src=i.screenfullJs,r.addEventListener("load",l),r.id=`${c}-screenfull`,R(r)}}),{fullScreenHandler:n}},xt=a.defineComponent({name:"TableShape",props:{tableShape:{type:Array,default:()=>[6,4]},onSelected:{type:Function,default:()=>{}}},setup(i){const t=a.reactive({x:-1,y:-1});return()=>a.createVNode("div",{class:`${c}-table-shape`,onMouseleave:()=>{t.x=-1,t.y=-1}},[new Array(i.tableShape[1]).fill("").map((e,n)=>a.createVNode("div",{class:`${c}-table-shape-row`,key:`table-shape-row-${n}`},[new Array(i.tableShape[0]).fill("").map((l,r)=>a.createVNode("div",{class:`${c}-table-shape-col`,key:`table-shape-col-${r}`,onMouseenter:()=>{t.x=n,t.y=r},onClick:()=>{i.onSelected(t)}},[a.createVNode("div",{class:[`${c}-table-shape-col-default`,n<=t.x&&r<=t.y&&`${c}-table-shape-col-include`]},null)]))]))])}});var $t=a.defineComponent({name:"MDEditorToolbar",props:{prettier:{type:Boolean},toolbars:{type:Array,default:()=>[]},toolbarsExclude:{type:Array,default:()=>[]},setting:{type:Object,default:()=>({})},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:""},updateSetting:{type:Function,default:()=>()=>{}},tableShape:{type:Array,default:()=>[6,4]},defToolbars:{type:Object}},setup(i){const t=a.inject("editorId"),e=a.inject("usedLanguageText"),{fullScreenHandler:n}=wt(i),l=a.reactive({title:!1,catalog:!1,image:!1,table:!1,mermaid:!1,katex:!1}),r=(u,h)=>{y.emit(t,"replace",u,h)},s=a.reactive({type:"link",linkVisible:!1,clipVisible:!1}),o=a.ref();a.onMounted(()=>{var u;y.on(t,{name:"openModals",callback(h){s.type=h,s.linkVisible=!0}}),(u=o.value)==null||u.addEventListener("mouseover",()=>{var h;(h=window.getSelection())!=null&&h.toString()||y.emit(t,"selectTextChange","")})});const d=a.computed(()=>{const u=i.toolbars.filter(v=>!i.toolbarsExclude.includes(v)),h=u.indexOf("="),m=h===-1?u:u.slice(0,h+1),b=h===-1?[]:u.slice(h,Number.MAX_SAFE_INTEGER);return[m,b]}),f=a.ref(),p=()=>{y.emit(t,"uploadImage",f.value.files),f.value.value=""};a.onMounted(()=>{f.value.addEventListener("change",p)});const g=u=>{var h,m,b,v,x,C,_,E,F,V,I,L,j,q,W,De,Fe,Le,je,_e,Re,ze,Ae,Me,Oe,He,Be,Pe,Ue,qe,Ke,Ze,Je,We,Ge,Qe,Xe,Ye,et,tt,nt;if(de.includes(u))switch(u){case"-":return a.createVNode(ft,null,null);case"bold":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(h=e.value.toolbarTips)==null?void 0:h.bold,onClick:()=>{r("bold")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-bold"},null)])]);case"underline":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(m=e.value.toolbarTips)==null?void 0:m.underline,onClick:()=>{r("underline")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-underline"},null)])]);case"italic":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(b=e.value.toolbarTips)==null?void 0:b.italic,onClick:()=>{r("italic")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-italic"},null)])]);case"strikeThrough":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(v=e.value.toolbarTips)==null?void 0:v.strikeThrough,onClick:()=>{r("strikeThrough")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-strike-through"},null)])]);case"title":return a.createVNode(P,{visible:l.title,onChange:S=>{l.title=S},overlay:a.createVNode("ul",{class:`${c}-menu`,onClick:()=>{l.title=!1}},[a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h1")}},[(x=e.value.titleItem)==null?void 0:x.h1]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h2")}},[(C=e.value.titleItem)==null?void 0:C.h2]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h3")}},[(_=e.value.titleItem)==null?void 0:_.h3]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h4")}},[(E=e.value.titleItem)==null?void 0:E.h4]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h5")}},[(F=e.value.titleItem)==null?void 0:F.h5]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h6")}},[(V=e.value.titleItem)==null?void 0:V.h6])])},{default:()=>{var S;return[a.createVNode("div",{class:`${c}-toolbar-item`,title:(S=e.value.toolbarTips)==null?void 0:S.title},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-title"},null)])])]}});case"sub":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(I=e.value.toolbarTips)==null?void 0:I.sub,onClick:()=>{r("sub")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-sub"},null)])]);case"sup":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(L=e.value.toolbarTips)==null?void 0:L.sup,onClick:()=>{r("sup")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-sup"},null)])]);case"quote":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(j=e.value.toolbarTips)==null?void 0:j.quote,onClick:()=>{r("quote")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-quote"},null)])]);case"unorderedList":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(q=e.value.toolbarTips)==null?void 0:q.unorderedList,onClick:()=>{r("unorderedList")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-unordered-list"},null)])]);case"orderedList":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(W=e.value.toolbarTips)==null?void 0:W.orderedList,onClick:()=>{r("orderedList")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-ordered-list"},null)])]);case"codeRow":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(De=e.value.toolbarTips)==null?void 0:De.codeRow,onClick:()=>{r("codeRow")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-code-row"},null)])]);case"code":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Fe=e.value.toolbarTips)==null?void 0:Fe.code,onClick:()=>{r("code")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-code"},null)])]);case"link":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Le=e.value.toolbarTips)==null?void 0:Le.link,onClick:()=>{s.type="link",s.linkVisible=!0}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-link"},null)])]);case"image":return a.createVNode(P,{visible:l.image,onChange:S=>{l.image=S},overlay:a.createVNode("ul",{class:`${c}-menu`,onClick:()=>{l.title=!1}},[a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{s.type="image",s.linkVisible=!0}},[(je=e.value.imgTitleItem)==null?void 0:je.link]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{f.value.click()}},[(_e=e.value.imgTitleItem)==null?void 0:_e.upload]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{s.clipVisible=!0}},[(Re=e.value.imgTitleItem)==null?void 0:Re.clip2upload])])},{default:()=>{var S;return[a.createVNode("div",{class:`${c}-toolbar-item`,title:(S=e.value.toolbarTips)==null?void 0:S.image},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-image"},null)])])]}});case"table":return a.createVNode(P,{visible:l.table,onChange:S=>{l.table=S},key:"bar-table",overlay:a.createVNode(xt,{tableShape:i.tableShape,onSelected:S=>{r("table",{selectedShape:S})}},null)},{default:()=>{var S;return[a.createVNode("div",{class:`${c}-toolbar-item`,title:(S=e.value.toolbarTips)==null?void 0:S.table},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-table"},null)])])]}});case"revoke":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(ze=e.value.toolbarTips)==null?void 0:ze.revoke,onClick:()=>{y.emit(t,"ctrlZ")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-revoke"},null)])]);case"next":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Ae=e.value.toolbarTips)==null?void 0:Ae.next,onClick:()=>{y.emit(t,"ctrlShiftZ")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-next"},null)])]);case"save":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Me=e.value.toolbarTips)==null?void 0:Me.save,onClick:()=>{y.emit(t,"onSave")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-baocun"},null)])]);case"prettier":return i.prettier?a.createVNode("div",{class:`${c}-toolbar-item`,title:(Oe=e.value.toolbarTips)==null?void 0:Oe.prettier,onClick:()=>{r("prettier")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-prettier"},null)])]):"";case"pageFullscreen":return!i.setting.fullscreen&&a.createVNode("div",{class:`${c}-toolbar-item`,title:(He=e.value.toolbarTips)==null?void 0:He.pageFullscreen,onClick:()=>{i.updateSetting(!i.setting.pageFullScreen,"pageFullScreen")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":`#icon-${i.setting.pageFullScreen?"suoxiao":"fangda"}`},null)])]);case"fullscreen":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Be=e.value.toolbarTips)==null?void 0:Be.fullscreen,onClick:n},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":`#icon-${i.setting.fullscreen?"fullScreen-exit":"fullScreen"}`},null)])]);case"preview":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Pe=e.value.toolbarTips)==null?void 0:Pe.preview,onClick:()=>{i.updateSetting(!i.setting.preview,"preview")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-preview"},null)])]);case"htmlPreview":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Ue=e.value.toolbarTips)==null?void 0:Ue.htmlPreview,onClick:()=>{i.updateSetting(!i.setting.htmlPreview,"htmlPreview")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-coding"},null)])]);case"catalog":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(qe=e.value.toolbarTips)==null?void 0:qe.catalog,onClick:()=>{y.emit(t,"catalogShow")},key:"bar-catalog"},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-catalog"},null)])]);case"github":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Ke=e.value.toolbarTips)==null?void 0:Ke.github,onClick:()=>pt("https://github.com/imzbf/md-editor-v3")},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-github"},null)])]);case"mermaid":return a.createVNode(P,{visible:l.mermaid,onChange:S=>{l.mermaid=S},overlay:a.createVNode("ul",{class:`${c}-menu`,onClick:()=>{l.mermaid=!1}},[a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("flow")}},[(Ze=e.value.mermaid)==null?void 0:Ze.flow]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("sequence")}},[(Je=e.value.mermaid)==null?void 0:Je.sequence]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("gantt")}},[(We=e.value.mermaid)==null?void 0:We.gantt]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("class")}},[(Ge=e.value.mermaid)==null?void 0:Ge.class]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("state")}},[(Qe=e.value.mermaid)==null?void 0:Qe.state]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("pie")}},[(Xe=e.value.mermaid)==null?void 0:Xe.pie]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("relationship")}},[(Ye=e.value.mermaid)==null?void 0:Ye.relationship]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("journey")}},[(et=e.value.mermaid)==null?void 0:et.journey])]),key:"bar-mermaid"},{default:()=>{var S;return[a.createVNode("div",{class:`${c}-toolbar-item`,title:(S=e.value.toolbarTips)==null?void 0:S.mermaid},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-mermaid"},null)])])]}});case"katex":return a.createVNode(P,{visible:l.katex,onChange:S=>{l.katex=S},overlay:a.createVNode("ul",{class:`${c}-menu`,onClick:()=>{l.katex=!1}},[a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("katexInline")}},[(tt=e.value.katex)==null?void 0:tt.inline]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("katexBlock")}},[(nt=e.value.katex)==null?void 0:nt.block])]),key:"bar-katex"},{default:()=>{var S;return[a.createVNode("div",{class:`${c}-toolbar-item`,title:(S=e.value.toolbarTips)==null?void 0:S.katex},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-formula"},null)])])]}})}else return i.defToolbars instanceof Array?i.defToolbars[u]||"":i.defToolbars&&i.defToolbars.children instanceof Array&&i.defToolbars.children[u]||""};return()=>{const u=d.value[0].map(m=>g(m)),h=d.value[1].map(m=>g(m));return a.createVNode("div",{class:`${c}-toolbar-wrapper`},[a.createVNode("div",{class:`${c}-toolbar`},[a.createVNode("div",{class:`${c}-toolbar-left`,ref:o},[u]),a.createVNode("div",{class:`${c}-toolbar-right`},[h])]),a.createVNode("input",{ref:f,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),a.createVNode(yt,{linkVisible:s.linkVisible,clipVisible:s.clipVisible,type:s.type,onCancel:()=>{s.linkVisible=!1,s.clipVisible=!1},onOk:m=>{m&&r(s.type,{desc:m.desc,url:m.url}),s.linkVisible=!1,s.clipVisible=!1}},null)])}}});function me(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let U=me();function vt(i){U=i}const Ct=/[&<>"']/,St=/[&<>"']/g,Nt=/[<>"']|&(?!#?\w+;)/,Et=/[<>"']|&(?!#?\w+;)/g,Vt={"&":"&","<":"<",">":">",'"':""","'":"'"},ke=i=>Vt[i];function T(i,t){if(t){if(Ct.test(i))return i.replace(St,ke)}else if(Nt.test(i))return i.replace(Et,ke);return i}const Tt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function be(i){return i.replace(Tt,(t,e)=>(e=e.toLowerCase(),e==="colon"?":":e.charAt(0)==="#"?e.charAt(1)==="x"?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const It=/(^|[^\[])\^/g;function N(i,t){i=i.source||i,t=t||"";const e={replace:(n,l)=>(l=l.source||l,l=l.replace(It,"$1"),i=i.replace(n,l),e),getRegex:()=>new RegExp(i,t)};return e}const Dt=/[^\w:]/g,Ft=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ye(i,t,e){if(i){let n;try{n=decodeURIComponent(be(e)).replace(Dt,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}t&&!Ft.test(e)&&(e=Rt(t,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Q={},Lt=/^[^:]+:\/*[^/]*$/,jt=/^([^:]+:)[\s\S]*$/,_t=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Rt(i,t){Q[" "+i]||(Lt.test(i)?Q[" "+i]=i+"/":Q[" "+i]=Y(i,"/",!0)),i=Q[" "+i];const e=i.indexOf(":")===-1;return t.substring(0,2)==="//"?e?t:i.replace(jt,"$1")+t:t.charAt(0)==="/"?e?t:i.replace(_t,"$1")+t:i+t}const X={exec:function(){}};function z(i){let t=1,e,n;for(;t<arguments.length;t++){e=arguments[t];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i}function we(i,t){const e=i.replace(/\|/g,(r,s,o)=>{let d=!1,f=s;for(;--f>=0&&o[f]==="\\";)d=!d;return d?"|":" |"}),n=e.split(/ \|/);let l=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;l<n.length;l++)n[l]=n[l].trim().replace(/\\\|/g,"|");return n}function Y(i,t,e){const n=i.length;if(n===0)return"";let l=0;for(;l<n;){const r=i.charAt(n-l-1);if(r===t&&!e)l++;else if(r!==t&&e)l++;else break}return i.substr(0,n-l)}function zt(i,t){if(i.indexOf(t[1])===-1)return-1;const e=i.length;let n=0,l=0;for(;l<e;l++)if(i[l]==="\\")l++;else if(i[l]===t[0])n++;else if(i[l]===t[1]&&(n--,n<0))return l;return-1}function xe(i){i&&i.sanitize&&!i.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function $e(i,t){if(t<1)return"";let e="";for(;t>1;)t&1&&(e+=i),t>>=1,i+=i;return e+i}function ve(i,t,e,n){const l=t.href,r=t.title?T(t.title):null,s=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){n.state.inLink=!0;const o={type:"link",raw:e,href:l,title:r,text:s,tokens:n.inlineTokens(s,[])};return n.state.inLink=!1,o}else return{type:"image",raw:e,href:l,title:r,text:T(s)}}function At(i,t){const e=i.match(/^(\s+)(?:```)/);if(e===null)return t;const n=e[1];return t.split(`
|
|
1
|
+
var tn=Object.defineProperty,nn=Object.defineProperties;var ln=Object.getOwnPropertyDescriptors;var rt=Object.getOwnPropertySymbols;var rn=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable;var se=(a,c,D)=>c in a?tn(a,c,{enumerable:!0,configurable:!0,writable:!0,value:D}):a[c]=D,K=(a,c)=>{for(var D in c||(c={}))rn.call(c,D)&&se(a,D,c[D]);if(rt)for(var D of rt(c))an.call(c,D)&&se(a,D,c[D]);return a},te=(a,c)=>nn(a,ln(c));var at=(a,c,D)=>(se(a,typeof c!="symbol"?c+"":c,D),D);(function(a,c){typeof exports=="object"&&typeof module!="undefined"?module.exports=c(require("vue")):typeof define=="function"&&define.amd?define(["vue"],c):(a=typeof globalThis!="undefined"?globalThis:a||self,a.MdEditorV3=c(a.Vue))})(this,function(a){"use strict";const c="md",D="https://at.alicdn.com/t/font_2605852_pqekijay2ij.js",G={atom:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/atom-one-dark.css",github:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/github.css",githubDark:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/github-dark.css",js:"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/highlight.min.js"},oe={main:"https://cdn.jsdelivr.net/npm/prettier@2.4.0/standalone.js",markdown:"https://cdn.jsdelivr.net/npm/prettier@2.4.0/parser-markdown.js"},ce={css:"https://cdn.jsdelivr.net/npm/cropperjs@1.5.12/dist/cropper.min.css",js:"https://cdn.jsdelivr.net/npm/cropperjs@1.5.12/dist/cropper.min.js"},st="https://cdn.jsdelivr.net/npm/screenfull@5.1.0/dist/screenfull.js",de=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],ue={"zh-CN":{toolbarTips:{bold:"\u52A0\u7C97",underline:"\u4E0B\u5212\u7EBF",italic:"\u659C\u4F53",strikeThrough:"\u5220\u9664\u7EBF",title:"\u6807\u9898",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",quote:"\u5F15\u7528",unorderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868",codeRow:"\u884C\u5185\u4EE3\u7801",code:"\u5757\u7EA7\u4EE3\u7801",link:"\u94FE\u63A5",image:"\u56FE\u7247",table:"\u8868\u683C",mermaid:"mermaid\u56FE",katex:"katex\u516C\u5F0F",revoke:"\u540E\u9000",next:"\u524D\u8FDB",save:"\u4FDD\u5B58",prettier:"\u7F8E\u5316",pageFullscreen:"\u6D4F\u89C8\u5668\u5168\u5C4F",fullscreen:"\u5C4F\u5E55\u5168\u5C4F",preview:"\u9884\u89C8",htmlPreview:"html\u4EE3\u7801\u9884\u89C8",catalog:"\u76EE\u5F55",github:"\u6E90\u7801\u5730\u5740"},titleItem:{h1:"\u4E00\u7EA7\u6807\u9898",h2:"\u4E8C\u7EA7\u6807\u9898",h3:"\u4E09\u7EA7\u6807\u9898",h4:"\u56DB\u7EA7\u6807\u9898",h5:"\u4E94\u7EA7\u6807\u9898",h6:"\u516D\u7EA7\u6807\u9898"},imgTitleItem:{link:"\u6DFB\u52A0\u94FE\u63A5",upload:"\u4E0A\u4F20\u56FE\u7247",clip2upload:"\u88C1\u526A\u4E0A\u4F20"},linkModalTips:{title:"\u6DFB\u52A0",descLable:"\u94FE\u63A5\u63CF\u8FF0\uFF1A",descLablePlaceHolder:"\u8BF7\u8F93\u5165\u63CF\u8FF0...",urlLable:"\u94FE\u63A5\u5730\u5740\uFF1A",UrlLablePlaceHolder:"\u8BF7\u8F93\u5165\u94FE\u63A5...",buttonOK:"\u786E\u5B9A"},clipModalTips:{title:"\u88C1\u526A\u56FE\u7247\u4E0A\u4F20",buttonUpload:"\u4E0A\u4F20"},copyCode:{text:"\u590D\u5236\u4EE3\u7801",tips:"\u5DF2\u590D\u5236\uFF01"},mermaid:{flow:"\u6D41\u7A0B\u56FE",sequence:"\u65F6\u5E8F\u56FE",gantt:"\u7518\u7279\u56FE",class:"\u7C7B\u56FE",state:"\u72B6\u6001\u56FE",pie:"\u997C\u56FE",relationship:"\u5173\u7CFB\u56FE",journey:"\u65C5\u7A0B\u56FE"},katex:{inline:"\u884C\u5185\u516C\u5F0F",block:"\u5757\u7EA7\u516C\u5F0F"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{title:"Add ",descLable:"Desc:",descLablePlaceHolder:"Enter a description...",urlLable:"Link:",UrlLablePlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",tips:"Copied!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"}}},ot="https://cdn.jsdelivr.net/npm/mermaid@8.13.5/dist/mermaid.min.js",ct="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js",dt="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css";class ut{constructor(){at(this,"pools",{})}remove(t,e,n){const r=this.pools[t]&&this.pools[t][e];r&&(this.pools[t][e]=r.filter(s=>s===n))}clear(t){this.pools[t]={}}on(t,e){return this.pools[t]||(this.pools[t]={}),this.pools[t][e.name]||(this.pools[t][e.name]=[]),this.pools[t][e.name].push(e.callback),this.pools[t][e.name].includes(e.callback)}emit(t,e,...n){this.pools[t]||(this.pools[t]={});const r=this.pools[t][e];r&&r.forEach(s=>{try{s(...n)}catch(o){console.error(`${e} monitor event exception\uFF01`,o)}})}}var b=new ut;const he=(i,t)=>{const e=n=>{const l=i.parentElement||document.body,r=l.offsetWidth,s=l.offsetHeight,{clientWidth:o}=document.documentElement,{clientHeight:d}=document.documentElement,f=n.offsetX,p=n.offsetY,g=u=>{let m=u.x+document.body.scrollLeft-document.body.clientLeft-f,y=u.y+document.body.scrollTop-document.body.clientTop-p;m=m<1?1:m<o-r-1?m:o-r-1,y=y<1?1:y<d-s-1?y:d-s-1,t?t(m,y):(l.style.left=`${m}px`,l.style.top=`${y}px`)};document.addEventListener("mousemove",g);const h=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",h)};document.addEventListener("mouseup",h)};return i.addEventListener("mousedown",e),()=>{i.removeEventListener("mousedown",e)}},R=(i,t="")=>{const e=document.getElementById(i.id);e?t!==""&&i.onload instanceof Function&&(Reflect.get(window,t)?i.onload(new Event("load")):e.addEventListener("load",i.onload)):document.head.appendChild(i)},ht=(i,t)=>{const{editorId:e}=i,n=r=>{var s,o;return((s=i.toolbars)==null?void 0:s.includes(r))&&!((o=i.toolbarsExclude)!=null&&o.includes(r))},l=r=>{if(r.target===document.querySelector(`#${i.editorId}-textarea`))if(r.ctrlKey||r.metaKey)switch(r.code){case"KeyS":{r.shiftKey?n("strikeThrough")&&b.emit(e,"replace","strikeThrough"):n("save")&&(b.emit(e,"onSave",i.modelValue),r.preventDefault());break}case"KeyB":{n("bold")&&(b.emit(e,"replace","bold"),r.preventDefault());break}case"KeyU":{r.shiftKey?n("unorderedList")&&(b.emit(e,"replace","unorderedList"),r.preventDefault()):n("underline")&&(b.emit(e,"replace","underline"),r.preventDefault());break}case"KeyI":{r.shiftKey?n("image")&&(b.emit(e,"openModals","image"),r.preventDefault()):n("italic")&&(b.emit(e,"replace","italic"),r.preventDefault());break}case"Digit1":{n("title")&&(b.emit(e,"replace","h1"),r.preventDefault());break}case"Digit2":{n("title")&&(b.emit(e,"replace","h2"),r.preventDefault());break}case"Digit3":{n("title")&&(b.emit(e,"replace","h3"),r.preventDefault());break}case"Digit4":{n("title")&&(b.emit(e,"replace","h4"),r.preventDefault());break}case"Digit5":{n("title")&&(b.emit(e,"replace","h5"),r.preventDefault());break}case"Digit6":{n("title")&&(b.emit(e,"replace","h6"),r.preventDefault());break}case"ArrowUp":{n("sup")&&(b.emit(e,"replace","sup"),r.preventDefault());break}case"ArrowDown":{n("sub")&&(b.emit(e,"replace","sub"),r.preventDefault());break}case"KeyQ":{if(r.key==="a"){r.target.select();return}b.emit(e,"replace","quote"),r.preventDefault();break}case"KeyA":if(r.key==="q"){b.emit(e,"replace","quote"),r.preventDefault();break}else return;case"KeyO":{n("orderedList")&&(b.emit(e,"replace","orderedList"),r.preventDefault());break}case"KeyC":{if(r.shiftKey)n("code")&&(b.emit(e,"replace","code"),r.preventDefault());else if(r.altKey)n("codeRow")&&(b.emit(e,"replace","codeRow"),r.preventDefault());else{r.preventDefault(),b.emit(e,"replace","ctrlC");break}break}case"KeyL":{n("link")&&(b.emit(e,"openModals","link"),r.preventDefault());break}case"KeyZ":{if(r.key==="w")return;r.shiftKey?n("next")&&(b.emit(e,"ctrlShiftZ"),r.preventDefault()):n("revoke")&&(b.emit(e,"ctrlZ"),r.preventDefault());break}case"KeyW":if(r.key==="z"){r.shiftKey?n("next")&&(b.emit(e,"ctrlShiftZ"),r.preventDefault()):n("revoke")&&(b.emit(e,"ctrlZ"),r.preventDefault());break}else return;case"KeyF":{r.shiftKey&&n("prettier")&&(b.emit(e,"replace","prettier"),r.preventDefault());break}case"KeyT":{r.altKey&&r.shiftKey&&n("table")&&(b.emit(e,"replace","table"),r.preventDefault());break}case"KeyX":{b.emit(e,"replace","ctrlX"),r.preventDefault();break}case"KeyD":{r.preventDefault(),b.emit(e,"replace","ctrlD");break}}else r.code==="Tab"&&(r.preventDefault(),r.shiftKey?b.emit(e,"replace","shiftTab"):b.emit(e,"replace","tab"))};a.onMounted(()=>{i.previewOnly||(window.addEventListener("keydown",l),b.on(e,{name:"onSave",callback(){i.onSave?i.onSave(i.modelValue):t.emit("onSave",i.modelValue)}}))}),a.onBeforeUnmount(()=>{i.previewOnly||window.removeEventListener("keydown",l)})},ft=i=>{const{editorId:t}=i;a.provide("editorId",t),a.provide("tabWidth",i.tabWidth),a.provide("theme",a.computed(()=>i.theme));const e=a.computed(()=>{let l=G.atom;if(i.highlightCss)l=i.highlightCss;else switch(i.previewTheme){case"github":{i.theme==="dark"?l=G.githubDark:l=G.github;break}}return{js:i.highlightJs,css:l}});a.provide("highlight",e),a.provide("historyLength",i.historyLength),a.provide("previewOnly",i.previewOnly),a.provide("showCodeRowNumber",i.showCodeRowNumber);const n=a.computed(()=>{const l=K(K({},ue),i.languageUserDefined);return l[i.language]?l[i.language]:ue["zh-CN"]});a.provide("usedLanguageText",n),a.provide("Cropper",i.Cropper),a.provide("previewTheme",a.computed(()=>i.previewTheme))},pt=i=>{const{iconfontJs:t,prettier:e,prettierCDN:n,prettierMDCDN:l,previewOnly:r,cropperCss:s,cropperJs:o}=i;a.onMounted(()=>{const d=document.createElement("script");d.src=t,d.id=`${c}-icon`;const f=document.createElement("script"),p=document.createElement("script");f.src=n,f.id=`${c}-prettier`,p.src=l,p.id=`${c}-prettierMD`;const g=document.createElement("link");g.rel="stylesheet",g.href=s,g.id=`${c}-cropperCss`;const h=document.createElement("script");h.src=o,h.id=`${c}-cropper`,r||(R(d),i.Cropper||(R(g),R(h)),e&&(R(f),R(p)))})};var sn="",gt=a.defineComponent({setup(){return()=>a.createVNode("div",{class:`${c}-divider`},null)}});const H=({instance:i,ctx:t,props:e={}},n="default")=>{const l=(i==null?void 0:i.$slots[n])||(t==null?void 0:t.slots[n]);return(l?l(i):"")||e[n]};var on="",P=a.defineComponent({props:{trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>()=>{}}},setup(i,t){const e=`${c}-dropdown-hidden`,n=a.reactive({overlayClass:[e],overlayStyle:{},triggerHover:!1,overlayHover:!1}),l=a.ref(),r=a.ref(),s=()=>{i.trigger==="hover"&&(n.triggerHover=!0);const g=l.value,h=r.value,u=g.getBoundingClientRect(),m=g.offsetTop,y=g.offsetLeft,v=u.height,w=u.width;n.overlayStyle=te(K({},n.overlayStyle),{top:m+v+"px",left:y-h.offsetWidth/2+w/2+"px"}),i.onChange(!0)},o=()=>{n.overlayHover=!0};a.watch(()=>i.visible,g=>{g?n.overlayClass=n.overlayClass.filter(h=>h!==e):n.overlayClass.push(e)});const d=g=>{const h=l.value,u=r.value;!h.contains(g.target)&&!u.contains(g.target)&&i.onChange(!1)};let f=-1;const p=g=>{l.value===g.target?n.triggerHover=!1:n.overlayHover=!1,clearTimeout(f),f=window.setTimeout(()=>{!n.overlayHover&&!n.triggerHover&&i.onChange(!1)},10)};return a.onMounted(()=>{i.trigger==="click"?(l.value.addEventListener("click",s),document.addEventListener("click",d)):(l.value.addEventListener("mouseenter",s),l.value.addEventListener("mouseleave",p),r.value.addEventListener("mouseenter",o),r.value.addEventListener("mouseleave",p))}),a.onBeforeUnmount(()=>{i.trigger==="click"?(l.value.removeEventListener("click",s),document.removeEventListener("click",d)):(l.value.removeEventListener("mouseenter",s),l.value.removeEventListener("mouseleave",p),r.value.removeEventListener("mouseenter",o),r.value.removeEventListener("mouseleave",p))}),()=>{const g=H({ctx:t}),h=H({props:i,ctx:t},"overlay"),u=a.cloneVNode(g instanceof Array?g[0]:g,{ref:l}),m=a.createVNode("div",{class:[`${c}-dropdown`,n.overlayClass],style:n.overlayStyle,ref:r},[a.createVNode("div",{class:`${c}-dropdown-overlay`},[h instanceof Array?h[0]:h])]);return[u,m]}}});const A=(i,t=0,e=t)=>{i.setSelectionRange?setTimeout(()=>{i.setSelectionRange(t,e),i.focus()},0):console.log("can not reset position!")},ne=(i,t,e)=>{const{deviationStart:n=0,deviationEnd:l=0,direct:r=!1,select:s=!1}=e;let o="";if(i.selectionStart||i.selectionStart===0){const d=i.selectionStart,f=i.selectionEnd||0,{prefixVal:p=i.value.substring(0,d),subfixVal:g=i.value.substring(f,i.value.length)}=e;o=p+t+g,A(i,s?d+n:d+t.length+l,d+t.length+l)}else o+=t;return r&&(i.value=o),o},mt=(i,t={newWindow:!0,nofollow:!0})=>{i||console.warn("error link!");const e=document.createElement("a");e.href=i,e.style.display="none",t.newWindow&&(e.target="_blank"),t.nofollow&&(e.rel="noopener noreferrer"),document.body.appendChild(e),e.click(),document.body.removeChild(e)},fe=(i,t)=>{const e=ge(()=>{i.removeEventListener("scroll",n),i.addEventListener("scroll",n),t.removeEventListener("scroll",n),t.addEventListener("scroll",n)},50),n=l=>{const r=i.clientHeight,s=t.clientHeight,o=i.scrollHeight,d=t.scrollHeight,f=(o-r)/(d-s);l.target===i?(t.removeEventListener("scroll",n),t.scrollTo({top:i.scrollTop/f}),e()):(i.removeEventListener("scroll",n),i.scrollTo({top:t.scrollTop*f}),e())};return[e,()=>{i.removeEventListener("scroll",n),t.removeEventListener("scroll",n)}]},kt=(i,t="image.png")=>{const e=i.split(","),n=e[0].match(/:(.*?);/);if(n){const l=n[1],r=atob(e[1]);let s=r.length;const o=new Uint8Array(s);for(;s--;)o[s]=r.charCodeAt(s);return new File([o],t,{type:l})}return null},pe=i=>{if(!i.trim())return i;const t=i.split(`
|
|
2
|
+
`),e=['<span rn-wrapper aria-hidden="true">'];return t.forEach(()=>{e.push("<span></span>")}),e.push("</span>"),`<span class="code-block">${i}</span>${e.join("")}`},ge=(i,t=200)=>{let e=0;return(...n)=>{e&&clearTimeout(e),e=window.setTimeout(()=>{i.apply(globalThis,n),e=0},t)}},me=(i,t="$")=>{const e=i.split(t);let n=t,l="";for(let r=1;r<e.length;r++)if(/\\$/.test(e[r]))n+=e[r]+"$",l+=e[r]+"$";else{n+=e[r]+t,l+=e[r];break}return[n,l]};var cn="",ke=a.defineComponent({props:{title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClosed:{type:Function,default:()=>()=>{}},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>()=>{}}},setup(i,t){const e=a.ref(i.visible),n=a.ref([`${c}-modal`]),l=a.ref(),r=a.ref();let s=()=>{};const o=a.reactive({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}});return a.onMounted(()=>{s=he(r.value,(d,f)=>{o.initPos.left=d+"px",o.initPos.top=f+"px"})}),a.onBeforeUnmount(()=>{s()}),a.watch(()=>i.isFullscreen,d=>{d?s():s=he(r.value,(f,p)=>{o.initPos.left=f+"px",o.initPos.top=p+"px"})}),a.watch(()=>i.visible,d=>{d?(n.value.push("zoom-in"),e.value=d,a.nextTick(()=>{const f=l.value.offsetWidth/2,p=l.value.offsetHeight/2,g=document.documentElement.clientWidth/2,h=document.documentElement.clientHeight/2;o.initPos.left=g-f+"px",o.initPos.top=h-p+"px"}),setTimeout(()=>{n.value=n.value.filter(f=>f!=="zoom-in")},140)):(n.value.push("zoom-out"),setTimeout(()=>{n.value=n.value.filter(f=>f!=="zoom-out"),e.value=d},130))}),()=>{const d=H({ctx:t}),f=H({props:i,ctx:t},"title");return a.createVNode("div",{style:{display:e.value?"block":"none"}},[a.createVNode("div",{class:`${c}-modal-mask`,onClick:i.onClosed},null),a.createVNode("div",{class:n.value,style:te(K({},o.initPos),{width:i.width,height:i.height}),ref:l},[a.createVNode("div",{class:`${c}-modal-header`,ref:r},[f||""]),a.createVNode("div",{class:`${c}-modal-body`},[d]),a.createVNode("div",{class:`${c}-modal-func`},[i.showAdjust&&a.createVNode("div",{class:`${c}-modal-adjust`,onClick:p=>{p.stopPropagation(),i.isFullscreen?o.initPos=o.historyPos:(o.historyPos=o.initPos,o.initPos={left:"0",top:"0"}),i.onAdjust(!i.isFullscreen)}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":`#icon-${i.isFullscreen?"suoxiao":"fangda"}`},null)])]),a.createVNode("div",{class:`${c}-modal-close`,onClick:p=>{p.stopPropagation(),i.onClosed&&i.onClosed()}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-close"},null)])])])])])}}}),bt=a.defineComponent({props:{type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){const t=a.inject("usedLanguageText"),e=a.inject("editorId"),n=a.computed(()=>{var r,s,o,d;switch(i.type){case"link":return`${(r=t.value.linkModalTips)==null?void 0:r.title}${(s=t.value.toolbarTips)==null?void 0:s.link}`;case"image":return`${(o=t.value.linkModalTips)==null?void 0:o.title}${(d=t.value.toolbarTips)==null?void 0:d.image}`;default:return""}}),l=a.reactive({desc:"",url:""});return a.watch(()=>i.visible,r=>{r||setTimeout(()=>{l.desc="",l.url=""},200)}),()=>a.createVNode(ke,{title:n.value,visible:i.visible,onClosed:i.onCancel},{default:()=>{var r,s,o,d,f;return[a.createVNode("div",{class:`${c}-form-item`},[a.createVNode("label",{class:`${c}-lable`,for:`link-desc-${e}`},[(r=t.value.linkModalTips)==null?void 0:r.descLable]),a.createVNode("input",{placeholder:(s=t.value.linkModalTips)==null?void 0:s.descLablePlaceHolder,class:`${c}-input`,id:`link-desc-${e}`,type:"text",value:l.desc,onChange:p=>{l.desc=p.target.value},autocomplete:"off"},null)]),a.createVNode("div",{class:`${c}-form-item`},[a.createVNode("label",{class:`${c}-lable`,for:`link-url-${e}`},[(o=t.value.linkModalTips)==null?void 0:o.urlLable]),a.createVNode("input",{placeholder:(d=t.value.linkModalTips)==null?void 0:d.UrlLablePlaceHolder,class:`${c}-input`,id:`link-url-${e}`,type:"text",value:l.url,onChange:p=>{l.url=p.target.value},autocomplete:"off"},null)]),a.createVNode("div",{class:`${c}-form-item`},[a.createVNode("button",{class:[`${c}-btn`,`${c}-btn-row`],type:"button",onClick:()=>{i.onOk(l),l.desc="",l.url=""}},[(f=t.value.linkModalTips)==null?void 0:f.buttonOK])])]}})}}),dn="",yt=a.defineComponent({props:{visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){const t=a.inject("usedLanguageText"),e=a.inject("editorId");let n=a.inject("Cropper");const l=a.ref(),r=a.ref(),s=a.ref(),o=a.reactive({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let d=null;a.watch(()=>i.visible,()=>{i.visible&&!o.cropperInited&&(n=n||window.Cropper,l.value.onchange=()=>{const g=l.value.files||[];if(o.imgSelected=!0,(g==null?void 0:g.length)>0){const h=new FileReader;h.onload=u=>{o.imgSrc=u.target.result,a.nextTick(()=>{d=new n(r.value,{viewMode:2,preview:`.${c}-clip-preview-target`})})},h.readAsDataURL(g[0])}})}),a.watch(()=>[o.imgSelected],()=>{s.value.style=""}),a.watch(()=>o.isFullscreen,()=>{a.nextTick(()=>{d==null||d.destroy(),s.value.style="",r.value&&(d=new n(r.value,{viewMode:2,preview:`.${c}-clip-preview-target`}))})});const f=a.computed(()=>o.isFullscreen?{width:"100%",height:"100%"}:{width:"668px",height:"421px"}),p=()=>{d.destroy(),l.value.value="",o.imgSelected=!1};return()=>{var g;return a.createVNode(ke,a.mergeProps({title:(g=t.value.clipModalTips)==null?void 0:g.title,visible:i.visible,onClosed:i.onCancel,showAdjust:!0,isFullscreen:o.isFullscreen,onAdjust:h=>{o.isFullscreen=h}},f.value),{default:()=>{var h;return[a.createVNode("div",{class:`${c}-form-item ${c}-clip`},[a.createVNode("div",{class:`${c}-clip-main`},[o.imgSelected?a.createVNode("div",{class:`${c}-clip-cropper`},[a.createVNode("img",{src:o.imgSrc,ref:r,style:{display:"none"}},null),a.createVNode("div",{class:`${c}-clip-delete`,onClick:p},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-delete"},null)])])]):a.createVNode("div",{class:`${c}-clip-upload`,onClick:()=>{l.value.click()}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-upload"},null)])])]),a.createVNode("div",{class:`${c}-clip-preview`},[a.createVNode("div",{class:`${c}-clip-preview-target`,ref:s},null)])]),a.createVNode("div",{class:`${c}-form-item`},[a.createVNode("button",{class:`${c}-btn`,type:"button",onClick:()=>{const u=d.getCroppedCanvas();b.emit(e,"uploadImage",[kt(u.toDataURL("image/png"))],i.onOk),p()}},[(h=t.value.linkModalTips)==null?void 0:h.buttonOK])]),a.createVNode("input",{ref:l,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}}),wt=a.defineComponent({props:{type:{type:String,default:"link"},linkVisible:{type:Boolean,default:!1},clipVisible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){return()=>a.createVNode(a.Fragment,null,[a.createVNode(bt,{type:i.type,visible:i.linkVisible,onOk:i.onOk,onCancel:i.onCancel},null),a.createVNode(yt,{visible:i.clipVisible,onOk:i.onOk,onCancel:i.onCancel},null)])}});const xt=i=>{const t=a.inject("previewOnly");let{screenfull:e}=i;const n=()=>{e.isEnabled?e.isFullscreen?e.exit():e.request():console.error("browser does not support screenfull!")},l=()=>{e=window.screenfull,e&&e.isEnabled&&e.on("change",()=>{i.updateSetting(!i.setting.fullscreen,"fullscreen")})};return a.onMounted(()=>{if(e&&e.isEnabled&&e.on("change",()=>{i.updateSetting(!i.setting.fullscreen,"fullscreen")}),!t&&i.screenfull===null){const r=document.createElement("script");r.src=i.screenfullJs,r.addEventListener("load",l),r.id=`${c}-screenfull`,R(r)}}),{fullScreenHandler:n}},$t=a.defineComponent({name:"TableShape",props:{tableShape:{type:Array,default:()=>[6,4]},onSelected:{type:Function,default:()=>{}}},setup(i){const t=a.reactive({x:-1,y:-1});return()=>a.createVNode("div",{class:`${c}-table-shape`,onMouseleave:()=>{t.x=-1,t.y=-1}},[new Array(i.tableShape[1]).fill("").map((e,n)=>a.createVNode("div",{class:`${c}-table-shape-row`,key:`table-shape-row-${n}`},[new Array(i.tableShape[0]).fill("").map((l,r)=>a.createVNode("div",{class:`${c}-table-shape-col`,key:`table-shape-col-${r}`,onMouseenter:()=>{t.x=n,t.y=r},onClick:()=>{i.onSelected(t)}},[a.createVNode("div",{class:[`${c}-table-shape-col-default`,n<=t.x&&r<=t.y&&`${c}-table-shape-col-include`]},null)]))]))])}});var vt=a.defineComponent({name:"MDEditorToolbar",props:{prettier:{type:Boolean},toolbars:{type:Array,default:()=>[]},toolbarsExclude:{type:Array,default:()=>[]},setting:{type:Object,default:()=>({})},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:""},updateSetting:{type:Function,default:()=>()=>{}},tableShape:{type:Array,default:()=>[6,4]},defToolbars:{type:Object}},setup(i){const t=a.inject("editorId"),e=a.inject("usedLanguageText"),{fullScreenHandler:n}=xt(i),l=a.reactive({title:!1,catalog:!1,image:!1,table:!1,mermaid:!1,katex:!1}),r=(h,u)=>{b.emit(t,"replace",h,u)},s=a.reactive({type:"link",linkVisible:!1,clipVisible:!1}),o=a.ref();a.onMounted(()=>{var h;b.on(t,{name:"openModals",callback(u){s.type=u,s.linkVisible=!0}}),(h=o.value)==null||h.addEventListener("mouseover",()=>{var u;(u=window.getSelection())!=null&&u.toString()||b.emit(t,"selectTextChange","")})});const d=a.computed(()=>{const h=i.toolbars.filter(v=>!i.toolbarsExclude.includes(v)),u=h.indexOf("="),m=u===-1?h:h.slice(0,u+1),y=u===-1?[]:h.slice(u,Number.MAX_SAFE_INTEGER);return[m,y]}),f=a.ref(),p=()=>{b.emit(t,"uploadImage",f.value.files),f.value.value=""};a.onMounted(()=>{f.value.addEventListener("change",p)});const g=h=>{var u,m,y,v,w,C,j,E,F,V,I,L,_,q,W,Le,_e,je,Re,ze,Ae,Me,Oe,He,Be,Pe,Ue,qe,Ke,Ze,Je,We,Ge,Qe,Xe,Ye,et,tt,nt,it,lt;if(de.includes(h))switch(h){case"-":return a.createVNode(gt,null,null);case"bold":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(u=e.value.toolbarTips)==null?void 0:u.bold,onClick:()=>{r("bold")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-bold"},null)])]);case"underline":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(m=e.value.toolbarTips)==null?void 0:m.underline,onClick:()=>{r("underline")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-underline"},null)])]);case"italic":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(y=e.value.toolbarTips)==null?void 0:y.italic,onClick:()=>{r("italic")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-italic"},null)])]);case"strikeThrough":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(v=e.value.toolbarTips)==null?void 0:v.strikeThrough,onClick:()=>{r("strikeThrough")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-strike-through"},null)])]);case"title":return a.createVNode(P,{visible:l.title,onChange:S=>{l.title=S},overlay:a.createVNode("ul",{class:`${c}-menu`,onClick:()=>{l.title=!1}},[a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h1")}},[(w=e.value.titleItem)==null?void 0:w.h1]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h2")}},[(C=e.value.titleItem)==null?void 0:C.h2]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h3")}},[(j=e.value.titleItem)==null?void 0:j.h3]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h4")}},[(E=e.value.titleItem)==null?void 0:E.h4]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h5")}},[(F=e.value.titleItem)==null?void 0:F.h5]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("h6")}},[(V=e.value.titleItem)==null?void 0:V.h6])])},{default:()=>{var S;return[a.createVNode("div",{class:`${c}-toolbar-item`,title:(S=e.value.toolbarTips)==null?void 0:S.title},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-title"},null)])])]}});case"sub":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(I=e.value.toolbarTips)==null?void 0:I.sub,onClick:()=>{r("sub")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-sub"},null)])]);case"sup":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(L=e.value.toolbarTips)==null?void 0:L.sup,onClick:()=>{r("sup")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-sup"},null)])]);case"quote":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(_=e.value.toolbarTips)==null?void 0:_.quote,onClick:()=>{r("quote")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-quote"},null)])]);case"unorderedList":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(q=e.value.toolbarTips)==null?void 0:q.unorderedList,onClick:()=>{r("unorderedList")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-unordered-list"},null)])]);case"orderedList":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(W=e.value.toolbarTips)==null?void 0:W.orderedList,onClick:()=>{r("orderedList")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-ordered-list"},null)])]);case"codeRow":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Le=e.value.toolbarTips)==null?void 0:Le.codeRow,onClick:()=>{r("codeRow")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-code-row"},null)])]);case"code":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(_e=e.value.toolbarTips)==null?void 0:_e.code,onClick:()=>{r("code")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-code"},null)])]);case"link":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(je=e.value.toolbarTips)==null?void 0:je.link,onClick:()=>{s.type="link",s.linkVisible=!0}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-link"},null)])]);case"image":return a.createVNode(P,{visible:l.image,onChange:S=>{l.image=S},overlay:a.createVNode("ul",{class:`${c}-menu`,onClick:()=>{l.title=!1}},[a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{s.type="image",s.linkVisible=!0}},[(Re=e.value.imgTitleItem)==null?void 0:Re.link]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{f.value.click()}},[(ze=e.value.imgTitleItem)==null?void 0:ze.upload]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{s.clipVisible=!0}},[(Ae=e.value.imgTitleItem)==null?void 0:Ae.clip2upload])])},{default:()=>{var S;return[a.createVNode("div",{class:`${c}-toolbar-item`,title:(S=e.value.toolbarTips)==null?void 0:S.image},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-image"},null)])])]}});case"table":return a.createVNode(P,{visible:l.table,onChange:S=>{l.table=S},key:"bar-table",overlay:a.createVNode($t,{tableShape:i.tableShape,onSelected:S=>{r("table",{selectedShape:S})}},null)},{default:()=>{var S;return[a.createVNode("div",{class:`${c}-toolbar-item`,title:(S=e.value.toolbarTips)==null?void 0:S.table},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-table"},null)])])]}});case"revoke":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Me=e.value.toolbarTips)==null?void 0:Me.revoke,onClick:()=>{b.emit(t,"ctrlZ")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-revoke"},null)])]);case"next":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Oe=e.value.toolbarTips)==null?void 0:Oe.next,onClick:()=>{b.emit(t,"ctrlShiftZ")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-next"},null)])]);case"save":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(He=e.value.toolbarTips)==null?void 0:He.save,onClick:()=>{b.emit(t,"onSave")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-baocun"},null)])]);case"prettier":return i.prettier?a.createVNode("div",{class:`${c}-toolbar-item`,title:(Be=e.value.toolbarTips)==null?void 0:Be.prettier,onClick:()=>{r("prettier")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-prettier"},null)])]):"";case"pageFullscreen":return!i.setting.fullscreen&&a.createVNode("div",{class:`${c}-toolbar-item`,title:(Pe=e.value.toolbarTips)==null?void 0:Pe.pageFullscreen,onClick:()=>{i.updateSetting(!i.setting.pageFullScreen,"pageFullScreen")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":`#icon-${i.setting.pageFullScreen?"suoxiao":"fangda"}`},null)])]);case"fullscreen":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Ue=e.value.toolbarTips)==null?void 0:Ue.fullscreen,onClick:n},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":`#icon-${i.setting.fullscreen?"fullScreen-exit":"fullScreen"}`},null)])]);case"preview":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(qe=e.value.toolbarTips)==null?void 0:qe.preview,onClick:()=>{i.updateSetting(!i.setting.preview,"preview")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-preview"},null)])]);case"htmlPreview":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Ke=e.value.toolbarTips)==null?void 0:Ke.htmlPreview,onClick:()=>{i.updateSetting(!i.setting.htmlPreview,"htmlPreview")}},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-coding"},null)])]);case"catalog":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Ze=e.value.toolbarTips)==null?void 0:Ze.catalog,onClick:()=>{b.emit(t,"catalogShow")},key:"bar-catalog"},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-catalog"},null)])]);case"github":return a.createVNode("div",{class:`${c}-toolbar-item`,title:(Je=e.value.toolbarTips)==null?void 0:Je.github,onClick:()=>mt("https://github.com/imzbf/md-editor-v3")},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-github"},null)])]);case"mermaid":return a.createVNode(P,{visible:l.mermaid,onChange:S=>{l.mermaid=S},overlay:a.createVNode("ul",{class:`${c}-menu`,onClick:()=>{l.mermaid=!1}},[a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("flow")}},[(We=e.value.mermaid)==null?void 0:We.flow]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("sequence")}},[(Ge=e.value.mermaid)==null?void 0:Ge.sequence]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("gantt")}},[(Qe=e.value.mermaid)==null?void 0:Qe.gantt]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("class")}},[(Xe=e.value.mermaid)==null?void 0:Xe.class]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("state")}},[(Ye=e.value.mermaid)==null?void 0:Ye.state]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("pie")}},[(et=e.value.mermaid)==null?void 0:et.pie]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("relationship")}},[(tt=e.value.mermaid)==null?void 0:tt.relationship]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("journey")}},[(nt=e.value.mermaid)==null?void 0:nt.journey])]),key:"bar-mermaid"},{default:()=>{var S;return[a.createVNode("div",{class:`${c}-toolbar-item`,title:(S=e.value.toolbarTips)==null?void 0:S.mermaid},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-mermaid"},null)])])]}});case"katex":return a.createVNode(P,{visible:l.katex,onChange:S=>{l.katex=S},overlay:a.createVNode("ul",{class:`${c}-menu`,onClick:()=>{l.katex=!1}},[a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("katexInline")}},[(it=e.value.katex)==null?void 0:it.inline]),a.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r("katexBlock")}},[(lt=e.value.katex)==null?void 0:lt.block])]),key:"bar-katex"},{default:()=>{var S;return[a.createVNode("div",{class:`${c}-toolbar-item`,title:(S=e.value.toolbarTips)==null?void 0:S.katex},[a.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[a.createVNode("use",{"xlink:href":"#icon-formula"},null)])])]}})}else return i.defToolbars instanceof Array?i.defToolbars[h]||"":i.defToolbars&&i.defToolbars.children instanceof Array&&i.defToolbars.children[h]||""};return()=>{const h=d.value[0].map(m=>g(m)),u=d.value[1].map(m=>g(m));return a.createVNode("div",{class:`${c}-toolbar-wrapper`},[a.createVNode("div",{class:`${c}-toolbar`},[a.createVNode("div",{class:`${c}-toolbar-left`,ref:o},[h]),a.createVNode("div",{class:`${c}-toolbar-right`},[u])]),a.createVNode("input",{ref:f,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),a.createVNode(wt,{linkVisible:s.linkVisible,clipVisible:s.clipVisible,type:s.type,onCancel:()=>{s.linkVisible=!1,s.clipVisible=!1},onOk:m=>{m&&r(s.type,{desc:m.desc,url:m.url}),s.linkVisible=!1,s.clipVisible=!1}},null)])}}});function be(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let U=be();function Ct(i){U=i}const St=/[&<>"']/,Nt=/[&<>"']/g,Et=/[<>"']|&(?!#?\w+;)/,Vt=/[<>"']|&(?!#?\w+;)/g,Tt={"&":"&","<":"<",">":">",'"':""","'":"'"},ye=i=>Tt[i];function T(i,t){if(t){if(St.test(i))return i.replace(Nt,ye)}else if(Et.test(i))return i.replace(Vt,ye);return i}const It=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function we(i){return i.replace(It,(t,e)=>(e=e.toLowerCase(),e==="colon"?":":e.charAt(0)==="#"?e.charAt(1)==="x"?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const Dt=/(^|[^\[])\^/g;function N(i,t){i=typeof i=="string"?i:i.source,t=t||"";const e={replace:(n,l)=>(l=l.source||l,l=l.replace(Dt,"$1"),i=i.replace(n,l),e),getRegex:()=>new RegExp(i,t)};return e}const Ft=/[^\w:]/g,Lt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function xe(i,t,e){if(i){let n;try{n=decodeURIComponent(we(e)).replace(Ft,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}t&&!Lt.test(e)&&(e=zt(t,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Q={},_t=/^[^:]+:\/*[^/]*$/,jt=/^([^:]+:)[\s\S]*$/,Rt=/^([^:]+:\/*[^/]*)[\s\S]*$/;function zt(i,t){Q[" "+i]||(_t.test(i)?Q[" "+i]=i+"/":Q[" "+i]=Y(i,"/",!0)),i=Q[" "+i];const e=i.indexOf(":")===-1;return t.substring(0,2)==="//"?e?t:i.replace(jt,"$1")+t:t.charAt(0)==="/"?e?t:i.replace(Rt,"$1")+t:i+t}const X={exec:function(){}};function z(i){let t=1,e,n;for(;t<arguments.length;t++){e=arguments[t];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i}function $e(i,t){const e=i.replace(/\|/g,(r,s,o)=>{let d=!1,f=s;for(;--f>=0&&o[f]==="\\";)d=!d;return d?"|":" |"}),n=e.split(/ \|/);let l=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;l<n.length;l++)n[l]=n[l].trim().replace(/\\\|/g,"|");return n}function Y(i,t,e){const n=i.length;if(n===0)return"";let l=0;for(;l<n;){const r=i.charAt(n-l-1);if(r===t&&!e)l++;else if(r!==t&&e)l++;else break}return i.slice(0,n-l)}function At(i,t){if(i.indexOf(t[1])===-1)return-1;const e=i.length;let n=0,l=0;for(;l<e;l++)if(i[l]==="\\")l++;else if(i[l]===t[0])n++;else if(i[l]===t[1]&&(n--,n<0))return l;return-1}function ve(i){i&&i.sanitize&&!i.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Ce(i,t){if(t<1)return"";let e="";for(;t>1;)t&1&&(e+=i),t>>=1,i+=i;return e+i}function Se(i,t,e,n){const l=t.href,r=t.title?T(t.title):null,s=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){n.state.inLink=!0;const o={type:"link",raw:e,href:l,title:r,text:s,tokens:n.inlineTokens(s,[])};return n.state.inLink=!1,o}else return{type:"image",raw:e,href:l,title:r,text:T(s)}}function Mt(i,t){const e=i.match(/^(\s+)(?:```)/);if(e===null)return t;const n=e[1];return t.split(`
|
|
3
3
|
`).map(l=>{const r=l.match(/^\s+/);if(r===null)return l;const[s]=r;return s.length>=n.length?l.slice(n.length):l}).join(`
|
|
4
4
|
`)}class ie{constructor(t){this.options=t||U}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Y(n,`
|
|
5
|
-
`)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],l=
|
|
5
|
+
`)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],l=Mt(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:l}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(/#$/.test(n)){const r=Y(n,"#");(this.options.pedantic||!r||/ $/.test(r))&&(n=r.trim())}const l={type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:[]};return this.lexer.inline(l.text,l.tokens),l}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const n=e[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n,l,r,s,o,d,f,p,g,h,u,m,y=e[1].trim();const v=y.length>1,w={type:"list",raw:"",ordered:v,start:v?+y.slice(0,-1):"",loose:!1,items:[]};y=v?`\\d{1,9}\\${y.slice(-1)}`:`\\${y}`,this.options.pedantic&&(y=v?y:"[*+-]");const C=new RegExp(`^( {0,3}${y})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(m=!1,!(!(e=C.exec(t))||this.rules.block.hr.test(t)));){if(n=e[0],t=t.substring(n.length),p=e[2].split(`
|
|
6
6
|
`,1)[0],g=t.split(`
|
|
7
|
-
`,1)[0],this.options.pedantic?(s=2,
|
|
8
|
-
`,t=t.substring(g.length+1),m=!0),!m){const E=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;t&&(
|
|
9
|
-
`,1)[0],p=
|
|
10
|
-
`+p.slice(s);else if(!d)
|
|
11
|
-
`+p;else break;!d&&!p.trim()&&(d=!0),n+=
|
|
12
|
-
`,t=t.substring(
|
|
13
|
-
`&&(L+=1),L>1)return!0;return!1});!
|
|
14
|
-
`):[]};if(n.header.length===n.align.length){n.raw=e[0];let l=n.align.length,r,s,o,d;for(r=0;r<l;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(l=n.rows.length,r=0;r<l;r++)n.rows[r]
|
|
15
|
-
`?e[1].slice(0,-1):e[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}text(t){const e=this.rules.block.text.exec(t);if(e){const n={type:"text",raw:e[0],text:e[0],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:T(e[1])}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):T(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const n=e[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const s=Y(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{const s=
|
|
16
|
-
]`).replace("lheading",
|
|
17
|
-
`)
|
|
7
|
+
`,1)[0],this.options.pedantic?(s=2,u=p.trimLeft()):(s=e[2].search(/[^ ]/),s=s>4?1:s,u=p.slice(s),s+=e[1].length),d=!1,!p&&/^ *$/.test(g)&&(n+=g+`
|
|
8
|
+
`,t=t.substring(g.length+1),m=!0),!m){const E=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;t&&(h=t.split(`
|
|
9
|
+
`,1)[0],p=h,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!E.test(p));){if(p.search(/[^ ]/)>=s||!p.trim())u+=`
|
|
10
|
+
`+p.slice(s);else if(!d)u+=`
|
|
11
|
+
`+p;else break;!d&&!p.trim()&&(d=!0),n+=h+`
|
|
12
|
+
`,t=t.substring(h.length+1)}}w.loose||(f?w.loose=!0:/\n *\n *$/.test(n)&&(f=!0)),this.options.gfm&&(l=/^\[[ xX]\] /.exec(u),l&&(r=l[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),w.items.push({type:"list_item",raw:n,task:!!l,checked:r,loose:!1,text:u}),w.raw+=n}w.items[w.items.length-1].raw=n.trimRight(),w.items[w.items.length-1].text=u.trimRight(),w.raw=w.raw.trimRight();const j=w.items.length;for(o=0;o<j;o++){this.lexer.state.top=!1,w.items[o].tokens=this.lexer.blockTokens(w.items[o].text,[]);const E=w.items[o].tokens.filter(V=>V.type==="space"),F=E.every(V=>{const I=V.raw.split("");let L=0;for(const _ of I)if(_===`
|
|
13
|
+
`&&(L+=1),L>1)return!0;return!1});!w.loose&&E.length&&F&&(w.loose=!0,w.items[o].loose=!0)}return w}}html(t){const e=this.rules.block.html.exec(t);if(e){const n={type:"html",raw:e[0],pre:!this.options.sanitizer&&(e[1]==="pre"||e[1]==="script"||e[1]==="style"),text:e[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(e[0]):T(e[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}}def(t){const e=this.rules.block.def.exec(t);if(e){e[3]&&(e[3]=e[3].substring(1,e[3].length-1));const n=e[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:n,raw:e[0],href:e[2],title:e[3]}}}table(t){const e=this.rules.block.table.exec(t);if(e){const n={type:"table",header:$e(e[1]).map(l=>({text:l})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split(`
|
|
14
|
+
`):[]};if(n.header.length===n.align.length){n.raw=e[0];let l=n.align.length,r,s,o,d;for(r=0;r<l;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(l=n.rows.length,r=0;r<l;r++)n.rows[r]=$e(n.rows[r],n.header.length).map(f=>({text:f}));for(l=n.header.length,s=0;s<l;s++)n.header[s].tokens=[],this.lexer.inlineTokens(n.header[s].text,n.header[s].tokens);for(l=n.rows.length,s=0;s<l;s++)for(d=n.rows[s],o=0;o<d.length;o++)d[o].tokens=[],this.lexer.inlineTokens(d[o].text,d[o].tokens);return n}}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e){const n={type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const n={type:"paragraph",raw:e[0],text:e[1].charAt(e[1].length-1)===`
|
|
15
|
+
`?e[1].slice(0,-1):e[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}text(t){const e=this.rules.block.text.exec(t);if(e){const n={type:"text",raw:e[0],text:e[0],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:T(e[1])}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):T(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const n=e[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const s=Y(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{const s=At(e[2],"()");if(s>-1){const d=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,d).trim(),e[3]=""}}let l=e[2],r="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);s&&(l=s[1],r=s[3])}else r=e[3]?e[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(this.options.pedantic&&!/>$/.test(n)?l=l.slice(1):l=l.slice(1,-1)),Se(e,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:r&&r.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let l=(n[2]||n[1]).replace(/\s+/g," ");if(l=e[l.toLowerCase()],!l||!l.href){const r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return Se(n,l,n[0],this.lexer)}}emStrong(t,e,n=""){let l=this.rules.inline.emStrong.lDelim.exec(t);if(!l||l[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=l[1]||l[2]||"";if(!r||r&&(n===""||this.rules.inline.punctuation.exec(n))){const s=l[0].length-1;let o,d,f=s,p=0;const g=l[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(g.lastIndex=0,e=e.slice(-1*t.length+s);(l=g.exec(e))!=null;){if(o=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!o)continue;if(d=o.length,l[3]||l[4]){f+=d;continue}else if((l[5]||l[6])&&s%3&&!((s+d)%3)){p+=d;continue}if(f-=d,f>0)continue;if(d=Math.min(d,d+f+p),Math.min(s,d)%2){const u=t.slice(1,s+l.index+d);return{type:"em",raw:t.slice(0,s+l.index+d+1),text:u,tokens:this.lexer.inlineTokens(u,[])}}const h=t.slice(2,s+l.index+d-1);return{type:"strong",raw:t.slice(0,s+l.index+d+1),text:h,tokens:this.lexer.inlineTokens(h,[])}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(/\n/g," ");const l=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return l&&r&&(n=n.substring(1,n.length-1)),n=T(n,!0),{type:"codespan",raw:e[0],text:n}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}autolink(t,e){const n=this.rules.inline.autolink.exec(t);if(n){let l,r;return n[2]==="@"?(l=T(this.options.mangle?e(n[1]):n[1]),r="mailto:"+l):(l=T(n[1]),r=l),{type:"link",raw:n[0],text:l,href:r,tokens:[{type:"text",raw:l,text:l}]}}}url(t,e){let n;if(n=this.rules.inline.url.exec(t)){let l,r;if(n[2]==="@")l=T(this.options.mangle?e(n[0]):n[0]),r="mailto:"+l;else{let s;do s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(s!==n[0]);l=T(n[0]),n[1]==="www."?r="http://"+l:r=l}return{type:"link",raw:n[0],text:l,href:r,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(t,e){const n=this.rules.inline.text.exec(t);if(n){let l;return this.lexer.state.inRawBlock?l=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):T(n[0]):n[0]:l=T(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:l}}}}const x={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:X,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};x._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,x._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,x.def=N(x.def).replace("label",x._label).replace("title",x._title).getRegex(),x.bullet=/(?:[*+-]|\d{1,9}[.)])/,x.listItemStart=N(/^( *)(bull) */).replace("bull",x.bullet).getRegex(),x.list=N(x.list).replace(/bull/g,x.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+x.def.source+")").getRegex(),x._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",x._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,x.html=N(x.html,"i").replace("comment",x._comment).replace("tag",x._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x.paragraph=N(x._paragraph).replace("hr",x.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x._tag).getRegex(),x.blockquote=N(x.blockquote).replace("paragraph",x.paragraph).getRegex(),x.normal=z({},x),x.gfm=z({},x.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),x.gfm.table=N(x.gfm.table).replace("hr",x.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x._tag).getRegex(),x.gfm.paragraph=N(x._paragraph).replace("hr",x.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",x.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x._tag).getRegex(),x.pedantic=z({},x.normal,{html:N(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",x._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:X,paragraph:N(x.normal._paragraph).replace("hr",x.hr).replace("heading",` *#{1,6} *[^
|
|
16
|
+
]`).replace("lheading",x.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const k={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:X,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:X,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};k._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",k.punctuation=N(k.punctuation).replace(/punctuation/g,k._punctuation).getRegex(),k.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,k.escapedEmSt=/\\\*|\\_/g,k._comment=N(x._comment).replace("(?:-->|$)","-->").getRegex(),k.emStrong.lDelim=N(k.emStrong.lDelim).replace(/punct/g,k._punctuation).getRegex(),k.emStrong.rDelimAst=N(k.emStrong.rDelimAst,"g").replace(/punct/g,k._punctuation).getRegex(),k.emStrong.rDelimUnd=N(k.emStrong.rDelimUnd,"g").replace(/punct/g,k._punctuation).getRegex(),k._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,k._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,k._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,k.autolink=N(k.autolink).replace("scheme",k._scheme).replace("email",k._email).getRegex(),k._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,k.tag=N(k.tag).replace("comment",k._comment).replace("attribute",k._attribute).getRegex(),k._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,k._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,k._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,k.link=N(k.link).replace("label",k._label).replace("href",k._href).replace("title",k._title).getRegex(),k.reflink=N(k.reflink).replace("label",k._label).replace("ref",x._label).getRegex(),k.nolink=N(k.nolink).replace("ref",x._label).getRegex(),k.reflinkSearch=N(k.reflinkSearch,"g").replace("reflink",k.reflink).replace("nolink",k.nolink).getRegex(),k.normal=z({},k),k.pedantic=z({},k.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:N(/^!?\[(label)\]\((.*?)\)/).replace("label",k._label).getRegex(),reflink:N(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",k._label).getRegex()}),k.gfm=z({},k.normal,{escape:N(k.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),k.gfm.url=N(k.gfm.url,"i").replace("email",k.gfm._extended_email).getRegex(),k.breaks=z({},k.gfm,{br:N(k.br).replace("{2,}","*").getRegex(),text:N(k.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function Ot(i){return i.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function Ne(i){let t="",e,n;const l=i.length;for(e=0;e<l;e++)n=i.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),t+="&#"+n+";";return t}class M{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||U,this.options.tokenizer=this.options.tokenizer||new ie,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={block:x.normal,inline:k.normal};this.options.pedantic?(e.block=x.pedantic,e.inline=k.pedantic):this.options.gfm&&(e.block=x.gfm,this.options.breaks?e.inline=k.breaks:e.inline=k.gfm),this.tokenizer.rules=e}static get rules(){return{block:x,inline:k}}static lex(t,e){return new M(e).lex(t)}static lexInline(t,e){return new M(e).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
17
|
+
`),this.blockTokens(t,this.tokens);let e;for(;e=this.inlineQueue.shift();)this.inlineTokens(e.src,e.tokens);return this.tokens}blockTokens(t,e=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(o,d,f)=>d+" ".repeat(f.length));let n,l,r,s;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(n=o.call({lexer:this},t,e))?(t=t.substring(n.raw.length),e.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&e.length>0?e[e.length-1].raw+=`
|
|
18
18
|
`:e.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),l=e[e.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
|
|
19
19
|
`+n.raw,l.text+=`
|
|
20
20
|
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text):e.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),l=e[e.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
|
|
@@ -23,40 +23,40 @@ var en=Object.defineProperty,tn=Object.defineProperties;var nn=Object.getOwnProp
|
|
|
23
23
|
`+n.raw,l.text+=`
|
|
24
24
|
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):e.push(n),s=r.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),l=e[e.length-1],l&&l.type==="text"?(l.raw+=`
|
|
25
25
|
`+n.raw,l.text+=`
|
|
26
|
-
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):e.push(n);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,e}inline(t,e){this.inlineQueue.push({src:t,tokens:e})}inlineTokens(t,e=[]){let n,l,r,s=t,o,d,f;if(this.tokens.links){const p=Object.keys(this.tokens.links);if(p.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["
|
|
26
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):e.push(n);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,e}inline(t,e){this.inlineQueue.push({src:t,tokens:e})}inlineTokens(t,e=[]){let n,l,r,s=t,o,d,f;if(this.tokens.links){const p=Object.keys(this.tokens.links);if(p.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+Ce("a",o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+Ce("a",o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(d||(f=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(p=>(n=p.call({lexer:this},t,e))?(t=t.substring(n.raw.length),e.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),l=e[e.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):e.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),l=e[e.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):e.push(n);continue}if(n=this.tokenizer.emStrong(t,s,f)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.autolink(t,Ne)){t=t.substring(n.raw.length),e.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t,Ne))){t=t.substring(n.raw.length),e.push(n);continue}if(r=t,this.options.extensions&&this.options.extensions.startInline){let p=1/0;const g=t.slice(1);let h;this.options.extensions.startInline.forEach(function(u){h=u.call({lexer:this},g),typeof h=="number"&&h>=0&&(p=Math.min(p,h))}),p<1/0&&p>=0&&(r=t.substring(0,p+1))}if(n=this.tokenizer.inlineText(r,Ot)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(f=n.raw.slice(-1)),d=!0,l=e[e.length-1],l&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):e.push(n);continue}if(t){const p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return e}}class le{constructor(t){this.options=t||U}code(t,e,n){const l=(e||"").match(/\S*/)[0];if(this.options.highlight){const r=this.options.highlight(t,l);r!=null&&r!==t&&(n=!0,t=r)}return t=t.replace(/\n$/,"")+`
|
|
27
27
|
`,l?'<pre><code class="'+this.options.langPrefix+T(l,!0)+'">'+(n?t:T(t,!0))+`</code></pre>
|
|
28
28
|
`:"<pre><code>"+(n?t:T(t,!0))+`</code></pre>
|
|
29
29
|
`}blockquote(t){return`<blockquote>
|
|
30
|
-
|
|
31
|
-
`}html(t){return t}heading(t,e,n,l){
|
|
32
|
-
|
|
30
|
+
${t}</blockquote>
|
|
31
|
+
`}html(t){return t}heading(t,e,n,l){if(this.options.headerIds){const r=this.options.headerPrefix+l.slug(n);return`<h${e} id="${r}">${t}</h${e}>
|
|
32
|
+
`}return`<h${e}>${t}</h${e}>
|
|
33
33
|
`}hr(){return this.options.xhtml?`<hr/>
|
|
34
34
|
`:`<hr>
|
|
35
35
|
`}list(t,e,n){const l=e?"ol":"ul",r=e&&n!==1?' start="'+n+'"':"";return"<"+l+r+`>
|
|
36
36
|
`+t+"</"+l+`>
|
|
37
|
-
`}listitem(t){return
|
|
38
|
-
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return
|
|
39
|
-
`}table(t,e){return e&&(e
|
|
37
|
+
`}listitem(t){return`<li>${t}</li>
|
|
38
|
+
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>
|
|
39
|
+
`}table(t,e){return e&&(e=`<tbody>${e}</tbody>`),`<table>
|
|
40
40
|
<thead>
|
|
41
41
|
`+t+`</thead>
|
|
42
42
|
`+e+`</table>
|
|
43
43
|
`}tablerow(t){return`<tr>
|
|
44
|
-
|
|
45
|
-
`}tablecell(t,e){const n=e.header?"th":"td";return(e.align
|
|
46
|
-
`}strong(t){return
|
|
47
|
-
`+(
|
|
48
|
-
Please report this to https://github.com/markedjs/marked.`,t.silent)return"<p>An error occurred:</p><pre>"+T(n.message+"",!0)+"</pre>";throw n}}$.options=$.setOptions=function(i){return z($.defaults,i),
|
|
49
|
-
Please report this to https://github.com/markedjs/marked.`,t.silent)return"<p>An error occurred:</p><pre>"+T(e.message+"",!0)+"</pre>";throw e}},$.Parser=O,$.parser=O.parse,$.Renderer=le,$.TextRenderer=
|
|
44
|
+
${t}</tr>
|
|
45
|
+
`}tablecell(t,e){const n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
46
|
+
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,e,n){if(t=xe(this.options.sanitize,this.options.baseUrl,t),t===null)return n;let l='<a href="'+T(t)+'"';return e&&(l+=' title="'+e+'"'),l+=">"+n+"</a>",l}image(t,e,n){if(t=xe(this.options.sanitize,this.options.baseUrl,t),t===null)return n;let l=`<img src="${t}" alt="${n}"`;return e&&(l+=` title="${e}"`),l+=this.options.xhtml?"/>":">",l}text(t){return t}}class Ee{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,n){return""+n}image(t,e,n){return""+n}br(){return""}}class Ve{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let n=t,l=0;if(this.seen.hasOwnProperty(n)){l=this.seen[t];do l++,n=t+"-"+l;while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=l,this.seen[n]=0),n}slug(t,e={}){const n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}class O{constructor(t){this.options=t||U,this.options.renderer=this.options.renderer||new le,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ee,this.slugger=new Ve}static parse(t,e){return new O(e).parse(t)}static parseInline(t,e){return new O(e).parseInline(t)}parse(t,e=!0){let n="",l,r,s,o,d,f,p,g,h,u,m,y,v,w,C,j,E,F,V;const I=t.length;for(l=0;l<I;l++){if(u=t[l],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(V=this.options.extensions.renderers[u.type].call({parser:this},u),V!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type))){n+=V||"";continue}switch(u.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(u.tokens),u.depth,we(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(u.text,u.lang,u.escaped);continue}case"table":{for(g="",p="",o=u.header.length,r=0;r<o;r++)p+=this.renderer.tablecell(this.parseInline(u.header[r].tokens),{header:!0,align:u.align[r]});for(g+=this.renderer.tablerow(p),h="",o=u.rows.length,r=0;r<o;r++){for(f=u.rows[r],p="",d=f.length,s=0;s<d;s++)p+=this.renderer.tablecell(this.parseInline(f[s].tokens),{header:!1,align:u.align[s]});h+=this.renderer.tablerow(p)}n+=this.renderer.table(g,h);continue}case"blockquote":{h=this.parse(u.tokens),n+=this.renderer.blockquote(h);continue}case"list":{for(m=u.ordered,y=u.start,v=u.loose,o=u.items.length,h="",r=0;r<o;r++)C=u.items[r],j=C.checked,E=C.task,w="",C.task&&(F=this.renderer.checkbox(j),v?C.tokens.length>0&&C.tokens[0].type==="paragraph"?(C.tokens[0].text=F+" "+C.tokens[0].text,C.tokens[0].tokens&&C.tokens[0].tokens.length>0&&C.tokens[0].tokens[0].type==="text"&&(C.tokens[0].tokens[0].text=F+" "+C.tokens[0].tokens[0].text)):C.tokens.unshift({type:"text",text:F}):w+=F),w+=this.parse(C.tokens,v),h+=this.renderer.listitem(w,E,j);n+=this.renderer.list(h,m,y);continue}case"html":{n+=this.renderer.html(u.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(u.tokens));continue}case"text":{for(h=u.tokens?this.parseInline(u.tokens):u.text;l+1<I&&t[l+1].type==="text";)u=t[++l],h+=`
|
|
47
|
+
`+(u.tokens?this.parseInline(u.tokens):u.text);n+=e?this.renderer.paragraph(h):h;continue}default:{const L='Token with "'+u.type+'" type was not found.';if(this.options.silent){console.error(L);return}else throw new Error(L)}}}return n}parseInline(t,e){e=e||this.renderer;let n="",l,r,s;const o=t.length;for(l=0;l<o;l++){if(r=t[l],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(s=this.options.extensions.renderers[r.type].call({parser:this},r),s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type))){n+=s||"";continue}switch(r.type){case"escape":{n+=e.text(r.text);break}case"html":{n+=e.html(r.text);break}case"link":{n+=e.link(r.href,r.title,this.parseInline(r.tokens,e));break}case"image":{n+=e.image(r.href,r.title,r.text);break}case"strong":{n+=e.strong(this.parseInline(r.tokens,e));break}case"em":{n+=e.em(this.parseInline(r.tokens,e));break}case"codespan":{n+=e.codespan(r.text);break}case"br":{n+=e.br();break}case"del":{n+=e.del(this.parseInline(r.tokens,e));break}case"text":{n+=e.text(r.text);break}default:{const d='Token with "'+r.type+'" type was not found.';if(this.options.silent){console.error(d);return}else throw new Error(d)}}}return n}}function $(i,t,e){if(typeof i=="undefined"||i===null)throw new Error("marked(): input parameter is undefined or null");if(typeof i!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");if(typeof t=="function"&&(e=t,t=null),t=z({},$.defaults,t||{}),ve(t),e){const n=t.highlight;let l;try{l=M.lex(i,t)}catch(o){return e(o)}const r=function(o){let d;if(!o)try{t.walkTokens&&$.walkTokens(l,t.walkTokens),d=O.parse(l,t)}catch(f){o=f}return t.highlight=n,o?e(o):e(null,d)};if(!n||n.length<3||(delete t.highlight,!l.length))return r();let s=0;$.walkTokens(l,function(o){o.type==="code"&&(s++,setTimeout(()=>{n(o.text,o.lang,function(d,f){if(d)return r(d);f!=null&&f!==o.text&&(o.text=f,o.escaped=!0),s--,s===0&&r()})},0))}),s===0&&r();return}try{const n=M.lex(i,t);return t.walkTokens&&$.walkTokens(n,t.walkTokens),O.parse(n,t)}catch(n){if(n.message+=`
|
|
48
|
+
Please report this to https://github.com/markedjs/marked.`,t.silent)return"<p>An error occurred:</p><pre>"+T(n.message+"",!0)+"</pre>";throw n}}$.options=$.setOptions=function(i){return z($.defaults,i),Ct($.defaults),$},$.getDefaults=be,$.defaults=U,$.use=function(...i){const t=z({},...i),e=$.defaults.extensions||{renderers:{},childTokens:{}};let n;i.forEach(l=>{if(l.extensions&&(n=!0,l.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if(r.renderer){const s=e.renderers?e.renderers[r.name]:null;s?e.renderers[r.name]=function(...o){let d=r.renderer.apply(this,o);return d===!1&&(d=s.apply(this,o)),d}:e.renderers[r.name]=r.renderer}if(r.tokenizer){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[r.level]?e[r.level].unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}r.childTokens&&(e.childTokens[r.name]=r.childTokens)})),l.renderer){const r=$.defaults.renderer||new le;for(const s in l.renderer){const o=r[s];r[s]=(...d)=>{let f=l.renderer[s].apply(r,d);return f===!1&&(f=o.apply(r,d)),f}}t.renderer=r}if(l.tokenizer){const r=$.defaults.tokenizer||new ie;for(const s in l.tokenizer){const o=r[s];r[s]=(...d)=>{let f=l.tokenizer[s].apply(r,d);return f===!1&&(f=o.apply(r,d)),f}}t.tokenizer=r}if(l.walkTokens){const r=$.defaults.walkTokens;t.walkTokens=function(s){l.walkTokens.call(this,s),r&&r.call(this,s)}}n&&(t.extensions=e),$.setOptions(t)})},$.walkTokens=function(i,t){for(const e of i)switch(t.call($,e),e.type){case"table":{for(const n of e.header)$.walkTokens(n.tokens,t);for(const n of e.rows)for(const l of n)$.walkTokens(l.tokens,t);break}case"list":{$.walkTokens(e.items,t);break}default:$.defaults.extensions&&$.defaults.extensions.childTokens&&$.defaults.extensions.childTokens[e.type]?$.defaults.extensions.childTokens[e.type].forEach(function(n){$.walkTokens(e[n],t)}):e.tokens&&$.walkTokens(e.tokens,t)}},$.parseInline=function(i,t){if(typeof i=="undefined"||i===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof i!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");t=z({},$.defaults,t||{}),ve(t);try{const e=M.lexInline(i,t);return t.walkTokens&&$.walkTokens(e,t.walkTokens),O.parseInline(e,t)}catch(e){if(e.message+=`
|
|
49
|
+
Please report this to https://github.com/markedjs/marked.`,t.silent)return"<p>An error occurred:</p><pre>"+T(e.message+"",!0)+"</pre>";throw e}},$.Parser=O,$.parser=O.parse,$.Renderer=le,$.TextRenderer=Ee,$.Lexer=M,$.lexer=M.lex,$.Tokenizer=ie,$.Slugger=Ve,$.parse=$,O.parse,M.lex;var Ht=function(){var i=document.getSelection();if(!i.rangeCount)return function(){};for(var t=document.activeElement,e=[],n=0;n<i.rangeCount;n++)e.push(i.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return i.removeAllRanges(),function(){i.type==="Caret"&&i.removeAllRanges(),i.rangeCount||e.forEach(function(l){i.addRange(l)}),t&&t.focus()}},Bt=Ht,Te={"text/plain":"Text","text/html":"Url",default:"Text"},Pt="Copy to clipboard: #{key}, Enter";function Ut(i){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,t)}function qt(i,t){var e,n,l,r,s,o,d=!1;t||(t={}),e=t.debug||!1;try{l=Bt(),r=document.createRange(),s=document.getSelection(),o=document.createElement("span"),o.textContent=i,o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData=="undefined"){e&&console.warn("unable to use e.clipboardData"),e&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=Te[t.format]||Te.default;window.clipboardData.setData(g,i)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,i);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(o),r.selectNodeContents(o),s.addRange(r);var f=document.execCommand("copy");if(!f)throw new Error("copy command was unsuccessful");d=!0}catch(p){e&&console.error("unable to copy using execCommand: ",p),e&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",i),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(g){e&&console.error("unable to copy using clipboardData: ",g),e&&console.error("falling back to prompt"),n=Ut("message"in t?t.message:Pt),window.prompt(n,i)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(r):s.removeAllRanges()),o&&document.body.removeChild(o),l()}return d}var Z=qt;const J=i=>{const t=i.value,e=t.substring(0,i.selectionStart),n=t.substring(i.selectionEnd,t.length),l=e.lastIndexOf(`
|
|
50
50
|
`),r=e.substring(0,l+1),s=n.indexOf(`
|
|
51
|
-
`),o=n.substring(s===-1?n.length:s,n.length),d=e.substring(l+1,e.length),f=n.substring(0,s);return{prefixStr:e,subfixStr:n,prefixStrEndRow:r,subfixStrEndRow:o,prefixSupply:d,subfixSupply:f}},
|
|
52
|
-
|`;for(let
|
|
53
|
-
|`;for(let v=0;v<=m;v++)l+=" content |"}r=2,s=5-l.length,o=!0;break}case"link":{const{desc:
|
|
54
|
-
`,""):l=`![${
|
|
55
|
-
`;break}case"tab":{t=((p=window.getSelection())==null?void 0:p.toString())||"";const{tabWidth:
|
|
56
|
-
`).map(E=>`${
|
|
57
|
-
`),d=m.substring(0,m.length-v.length),f=
|
|
58
|
-
`);let[V,I]=[0,0];const L=F.map((
|
|
59
|
-
`);return A(e,e.selectionStart-V,e.selectionEnd-I),`${m}${L}${
|
|
51
|
+
`),o=n.substring(s===-1?n.length:s,n.length),d=e.substring(l+1,e.length),f=n.substring(0,s);return{prefixStr:e,subfixStr:n,prefixStrEndRow:r,subfixStrEndRow:o,prefixSupply:d,subfixSupply:f}},Kt=(i,t="",e,n)=>{var p,g;let l="",r=0,s=0,o=!1,d,f;if(/^h[1-6]{1}$/.test(i)){const h=i.replace(/^h(\d)/,(u,m)=>new Array(Number(m)).fill("#",0,m).join(""));l=`${h} ${t}`,r=h.length+1}else{if(i==="prettier")return window.prettier.format(e.value,{parser:"markdown",plugins:window.prettierPlugins});switch(i){case"bold":{l=`**${t}**`,r=2,s=-2;break}case"underline":{l=`<u>${t}</u>`,r=3,s=-4;break}case"italic":{l=`*${t}*`,r=1,s=-1;break}case"strikeThrough":{l=`~${t}~`,r=1,s=-1;break}case"sub":{l=`<sub>${t}</sub>`,r=5,s=-6;break}case"sup":{l=`<sup>${t}</sup>`,r=5,s=-6;break}case"codeRow":{l="`"+t+"`",r=1,s=-1;break}case"quote":{l=`> ${t}`,r=2;break}case"orderedList":{l=`1. ${t}`,r=3;break}case"unorderedList":{l=`- ${t}`,r=2;break}case"code":{l="```language\n"+t+"\n```\n",r=3,s=11-l.length,o=!0;break}case"table":{l="|";const{selectedShape:h={x:1,y:1}}=n,{x:u,y:m}=h;for(let y=0;y<=m;y++)l+=" col |";l+=`
|
|
52
|
+
|`;for(let y=0;y<=m;y++)l+=" - |";for(let y=0;y<=u;y++){l+=`
|
|
53
|
+
|`;for(let v=0;v<=m;v++)l+=" content |"}r=2,s=5-l.length,o=!0;break}case"link":{const{desc:h,url:u}=n;l=`[${h}](${u})`;break}case"image":{const{desc:h,url:u,urls:m}=n;m instanceof Array?l=m.reduce((y,v)=>y+`
|
|
54
|
+
`,""):l=`
|
|
55
|
+
`;break}case"tab":{t=((p=window.getSelection())==null?void 0:p.toString())||"";const{tabWidth:h=2}=n,u=new Array(h).fill(" ").join("");if(t==="")l=u;else if(/\n/.test(t)){const{prefixStr:m,subfixStr:y,prefixSupply:v,subfixSupply:w}=J(e);l=`${v}${t}${w}`.split(`
|
|
56
|
+
`).map(E=>`${u}${E}`).join(`
|
|
57
|
+
`),d=m.substring(0,m.length-v.length),f=y.substring(w.length,y.length),o=!0,r=h,s=-v.length-w.length}else{const y=e.value.substring(0,e.selectionStart);/\n$/.test(y)||y===""?(l=`${u}${t}`,o=!0):l=u}break}case"shiftTab":{t=((g=window.getSelection())==null?void 0:g.toString())||"";const{tabWidth:h=2}=n,{prefixStr:u,prefixStrEndRow:m,subfixStrEndRow:y,prefixSupply:v,subfixSupply:w}=J(e),C=new RegExp(`^\\s{${h}}`),j=(E=!1,F=!1)=>{const V=`${v}${t}${w}`;if(C.test(V)){const I=u.length-(F?0:h),L=E?I+t.length-h:I;return A(e,I,L),`${m}${V.replace(C,"")}${y}`}else if(/^\s/.test(V)){const I=V.replace(/^\s/,""),L=V.length-I.length,_=e.selectionStart-(F?0:L),q=E?_+t.length-L:_;return A(e,_,q),`${m}${I}${y}`}else l=t};if(t===""){const E=j();if(E)return E}else if(/\n/.test(t)){const F=`${v}${t}${w}`.split(`
|
|
58
|
+
`);let[V,I]=[0,0];const L=F.map((_,q)=>{if(C.test(_))return q===0&&(V=h),I+=h,_.replace(C,"");if(/^\s/.test(_)){const W=_.replace(/^\s/,"");return I+=_.length-W.length,W}return _}).join(`
|
|
59
|
+
`);return A(e,e.selectionStart-V,e.selectionEnd-I),`${m}${L}${y}`}else{const E=j(!0,!0);if(E)return E}break}case"ctrlC":{const{prefixSupply:h,subfixSupply:u}=J(e);return Z(t===""?`${h}${u}`:t),e.value}case"ctrlX":{const{prefixStrEndRow:h,subfixStrEndRow:u,prefixStr:m,subfixStr:y,prefixSupply:v,subfixSupply:w}=J(e);return t===""?(Z(`${v}${w}`),A(e,h.length),`${h}${u.replace(/^\n/,"")}`):(Z(t),A(e,m.length),`${m}${y}`)}case"ctrlD":{const{prefixStrEndRow:h,subfixStrEndRow:u}=J(e);return A(e,h.length),`${h}${u.replace(/^\n/,"")}`}case"flow":{l="```mermaid\nflowchart TD \n Start --> Stop\n```\n",r=2;break}case"sequence":{l="```mermaid\nsequenceDiagram\n A->>B: hello!\n B-->>A: hi!\n A-)B: bye!\n```\n",r=2;break}case"gantt":{l=`\`\`\`mermaid
|
|
60
60
|
gantt
|
|
61
61
|
title A Gantt Diagram
|
|
62
62
|
dateFormat YYYY-MM-DD
|
|
@@ -78,7 +78,7 @@ journey
|
|
|
78
78
|
`,r=2;break}case"katexInline":{l="$$",r=1,s=-1;break}case"katexBlock":{l=`$$
|
|
79
79
|
|
|
80
80
|
$$
|
|
81
|
-
`,r=1,s=-4;break}}}return ne(e,l,{deviationStart:r,deviationEnd:s,select:o,prefixVal:d,subfixVal:f})};var
|
|
82
|
-
`),v=
|
|
83
|
-
- `,{}));else{const
|
|
84
|
-
${C}. `,{}))}}}),
|
|
81
|
+
`,r=1,s=-4;break}}}return ne(e,l,{deviationStart:r,deviationEnd:s,select:o,prefixVal:d,subfixVal:f})};var Ie={block(i,t){return{name:"KaTexBlockExtension",level:"block",start:e=>{var n;return(n=e.match(/\n\$\$\n/))==null?void 0:n.index},tokenizer(e){if(/^\$\$\n/.test(e)){const n=me(e,"$$");return{type:"KaTexBlockExtension",raw:n[0],text:n[1].trim(),tokens:[]}}},renderer(e){const n=t||typeof window!="undefined"&&window.katex;if(n){const l=n.renderToString(e.text,{throwOnError:!1,displayMode:!0});return`<span class="${i}-katex-block" data-processed>${l}</span>`}else return`<span class="${i}-katex-block">${e.text}</span>`}}},inline(i,t){return{name:"KaTexInlineExtension",level:"inline",start:e=>{var n;return(n=e.match(/\$[^\n]*/))==null?void 0:n.index},tokenizer(e){if(/^\$[^\n]*/.test(e)){const n=me(e);return{type:"KaTexInlineExtension",raw:n[0],text:n[1].trim(),tokens:[]}}},renderer(e){const n=t||typeof window!="undefined"&&window.katex;if(n){const l=n.renderToString(e.text,{throwOnError:!1});return`<span class="${i}-katex-inline" data-processed>${l}</span>`}else return`<span class="${i}-katex-inline">${e.text}</span>`}}}};const Zt=(i,t)=>{var o,d;const e=a.inject("previewOnly"),n=a.inject("historyLength"),l=a.inject("editorId");if(e)return;let r=-1;const s={list:[{content:i.value,startPos:((o=t.value)==null?void 0:o.selectionStart)||0,endPos:((d=t.value)==null?void 0:d.selectionEnd)||0}],userUpdated:!0,curr:0};a.watch(()=>i.value,f=>{var h,u;clearTimeout(r);const p=((h=t.value)==null?void 0:h.selectionStart)||0,g=((u=t.value)==null?void 0:u.selectionEnd)||0;r=setTimeout(()=>{if(s.userUpdated){s.curr<s.list.length-1&&(s.list=s.list.slice(0,s.curr+1)),s.list.length>n&&s.list.shift();const m=s.list.pop();m.startPos=p,m.endPos=g,Array.prototype.push.call(s.list,m,{content:f,startPos:p,endPos:g}),s.curr=s.list.length-1}else s.userUpdated=!0},10)}),a.onMounted(()=>{b.on(l,{name:"ctrlZ",callback(){s.userUpdated=!1,s.curr=s.curr-1<0?0:s.curr-1;const f=s.list[s.curr];i.onChange(f.content),A(t.value,f.startPos,f.endPos)}}),b.on(l,{name:"ctrlShiftZ",callback(){s.userUpdated=!1,s.curr=s.curr+1===s.list.length?s.curr:s.curr+1;const f=s.list[s.curr];i.onChange(f.content),A(t.value,f.startPos,f.endPos)}})})},Jt=(i,t)=>{const e=a.inject("showCodeRowNumber"),n=a.inject("editorId"),l=a.inject("highlight"),r=a.ref(!1),s=a.ref(!1),o=a.ref([]),d=new $.Renderer;d.heading=(...h)=>{const[,u,m]=h;return o.value.push({text:m,level:u}),i.markedHeading(...h)},d.defaultCode=d.code,d.code=(h,u,m)=>{var y;if(!i.noMermaid&&u==="mermaid"){const v=`${c}-mermaid-${Date.now().toString(36)}`;try{let w="";return i.mermaid?w=i.mermaid.mermaidAPI.render(v,h):typeof window!="undefined"&&window.mermaid?w=window.mermaid.mermaidAPI.render(v,h):w=`<div class="mermaid">${h}</div>`,`<div class="${c}-mermaid">${w}</div>`}catch{if(typeof document!="undefined"){const C=document.querySelector(`#${v}`);if(C){const j=C.outerHTML;return(y=C.parentElement)==null||y.remove(),j}}return""}}return d.defaultCode(h,u,m)},d.image=i.markedImage,d.listitem=(h,u)=>u?`<li class="li-task">${h}</li>`:`<li>${h}</li>`,$.setOptions({renderer:d,breaks:!0}),i.noKatex||$.use({extensions:[Ie.inline(c,i.katex),Ie.block(c,i.katex)]}),i.hljs&&$.setOptions({highlight:h=>{const u=i.hljs.highlightAuto(h).value;return e?pe(u):`<span class="code-block">${u}</span>`}}),i.extensions instanceof Array&&i.extensions.length>0&&$.use({extensions:i.extensions});const f=a.ref(i.sanitize($(i.value||""))),p=ge(()=>{o.value=[];const h=i.sanitize($(i.value||""));f.value=h,i.onHtmlChanged(h)},500);a.watch([r,a.toRef(t,"reRender"),a.toRef(t,"mermaidInited"),s,a.toRef(i,"value")],p);const g=()=>{$.setOptions({highlight:h=>{const u=window.hljs.highlightAuto(h).value;return e?pe(u):`<span class="code-block">${u}</span>`}}),r.value=!0};return a.watch(()=>o.value,h=>{i.onGetCatalog(h),b.emit(n,"catalogChanged",h)}),a.onMounted(()=>{if(!i.noKatex&&!i.katex){const h=document.createElement("script");h.src=i.katexJs,h.onload=()=>{s.value=!0},h.id=`${c}-katex`;const u=document.createElement("link");u.rel="stylesheet",u.href=i.katexCss,u.id=`${c}-katexCss`,R(h,"katex"),R(u)}if(i.hljs===null){const h=document.createElement("link");h.rel="stylesheet",h.href=l.value.css,h.id=`${c}-hlCss`;const u=document.createElement("script");u.src=l.value.js,u.onload=g,u.id=`${c}-hljs`,R(h),R(u,"hljs")}}),a.onMounted(()=>{b.on(n,{name:"pushCatalog",callback(){b.emit(n,"catalogChanged",o.value)}})}),{html:f}},Wt=(i,t,e,n,l)=>{const r=a.inject("previewOnly"),s=a.inject("usedLanguageText"),o=a.inject("editorId");let d=()=>{},f=()=>{};const p=()=>{document.querySelectorAll(`#${o} .${c}-preview pre`).forEach(u=>{var y;const m=document.createElement("span");m.setAttribute("class","copy-button"),m.innerText=((y=s.value.copyCode)==null?void 0:y.text)||"\u590D\u5236\u4EE3\u7801",m.addEventListener("click",()=>{var v;Z(u.querySelector("code").innerText),m.innerText=((v=s.value.copyCode)==null?void 0:v.tips)||"\u5DF2\u590D\u5236\uFF01",setTimeout(()=>{var w;m.innerText=((w=s.value.copyCode)==null?void 0:w.text)||"\u590D\u5236\u4EE3\u7801"},1500)}),u.appendChild(m)})};a.onMounted(()=>{(n.value||l.value)&&([f,d]=fe(e.value,n.value||l.value))});const g=()=>{a.nextTick(()=>{i.setting.preview&&!r&&(d(),f()),p()})},h=u=>{u&&!r&&a.nextTick(()=>{d(),[f,d]=fe(e.value,n.value||l.value),f()})};a.watch(()=>t.value,g),a.watch(()=>i.setting.preview,h),a.watch(()=>i.setting.htmlPreview,h),a.onMounted(g)},Gt=(i,t)=>{const e=a.inject("previewOnly"),n=a.inject("tabWidth"),l=a.inject("editorId"),r=a.ref("");return a.onMounted(()=>{var s,o;e||((s=t.value)==null||s.addEventListener("select",()=>{var d;r.value=((d=window.getSelection())==null?void 0:d.toString())||""}),(o=t.value)==null||o.addEventListener("keypress",d=>{var f,p,g;if(d.key==="Enter"){const h=(f=t.value)==null?void 0:f.selectionStart,u=(p=t.value)==null?void 0:p.value.substring(0,h),m=(g=t.value)==null?void 0:g.value.substring(h),y=u==null?void 0:u.lastIndexOf(`
|
|
82
|
+
`),v=u==null?void 0:u.substring(y+1,h);if(/^\d+\.\s|^-\s/.test(v))if(d.cancelBubble=!0,d.preventDefault(),d.stopPropagation(),/^\d+\.\s+$|^-\s+$/.test(v)){const w=u==null?void 0:u.replace(new RegExp(v+"$"),"");i.onChange(w+m),A(t.value,w==null?void 0:w.length)}else if(/^-\s+.+/.test(v))i.onChange(ne(t.value,`
|
|
83
|
+
- `,{}));else{const w=v==null?void 0:v.match(/\d+(?=\.)/),C=w&&Number(w[0])+1||1;i.onChange(ne(t.value,`
|
|
84
|
+
${C}. `,{}))}}}),b.on(l,{name:"replace",callback(d,f={}){i.onChange(Kt(d,r.value,t.value,te(K({},f),{tabWidth:n})))}}))}),b.on(l,{name:"selectTextChange",callback(s){r.value=s}}),{selectedText:r}},Qt=i=>{const t=a.inject("theme"),e=a.reactive({reRender:!1,mermaidInited:!!i.mermaid}),n=()=>{i.noMermaid||(i.mermaid?i.mermaid.initialize({theme:t.value==="dark"?"dark":"default"}):window.mermaid&&window.mermaid.initialize({theme:t.value==="dark"?"dark":"default"}),e.reRender=!e.reRender)};a.watch(()=>t.value,n);let l;return a.onMounted(()=>{!i.noMermaid&&!i.mermaid?(l=document.createElement("script"),l.src=i.mermaidJs,l.onload=()=>{window.mermaid.initialize({theme:t.value==="dark"?"dark":"default",logLevel:"Fatal"}),e.mermaidInited=!0},l.id=`${c}-mermaid`,R(l,"mermaid")):i.noMermaid||n()}),e},Xt=i=>{const t=a.inject("editorId"),e=a.inject("previewOnly"),n=l=>{if(l.clipboardData&&l.clipboardData.files.length>0){const{files:r}=l.clipboardData;b.emit(t,"uploadImage",Array.from(r).filter(s=>/image\/.*/.test(s.type))),l.preventDefault()}};a.onMounted(()=>{e||i.value.addEventListener("paste",n)}),a.onBeforeUnmount(()=>{e||i.value.removeEventListener("paste",n)})};var Yt=a.defineComponent({name:"MDEditorContent",props:{value:{type:String,default:""},hljs:{type:Object,default:null},onChange:{type:Function,default:()=>()=>{}},setting:{type:Object,default:()=>({})},onHtmlChanged:{type:Function,default:()=>()=>{}},onGetCatalog:{type:Function,default:()=>()=>{}},markedHeading:{type:Function,default:()=>""},mermaid:{type:Object},mermaidJs:{type:String,default:""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:i=>i},placeholder:{type:String,default:""},katex:{type:Object},katexJs:{type:String,default:""},katexCss:{type:String,default:""},noKatex:{type:Boolean,default:!1},extensions:{type:Array},markedImage:{type:Function,default:()=>""}},setup(i){const t=a.inject("previewOnly"),e=a.inject("showCodeRowNumber"),n=a.inject("previewTheme"),l=a.inject("editorId"),r=a.ref(),s=a.ref(),o=a.ref(),d=Qt(i),{html:f}=Jt(i,d);Wt(i,f,r,s,o);const{selectedText:p}=Gt(i,r);return Zt(i,r),Xt(r),()=>a.createVNode(a.Fragment,null,[a.createVNode("div",{class:[`${c}-content`]},[!t&&a.createVNode("div",{class:`${c}-input-wrapper`},[a.createVNode("textarea",{id:`${l}-textarea`,ref:r,value:i.value,onInput:g=>{p.value="",i.onChange(g.target.value)},class:[i.setting.preview||i.setting.htmlPreview?"":"textarea-only"],placeholder:i.placeholder},null)]),i.setting.preview&&a.createVNode("div",{id:`${l}-preview-wrapper`,class:`${c}-preview-wrapper`,ref:s,key:"content-preview-wrapper"},[a.createVNode("div",{id:`${l}-preview`,class:[`${c}-preview`,`${n==null?void 0:n.value}-theme`,e&&`${c}-scrn`],innerHTML:f.value},null)]),i.setting.htmlPreview&&a.createVNode("div",{class:`${c}-preview-wrapper`,ref:o,key:"html-preview-wrapper"},[a.createVNode("div",{class:`${c}-html`},[f.value])])])])}});const De=a.defineComponent({props:{tocItem:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:()=>{}},scrollElement:{type:[String,Object],default:""}},setup(i){return()=>a.createVNode("div",{class:`${c}-catalog-link`,onClick:t=>{t.stopPropagation();const e=i.markedHeadingId(i.tocItem.text,i.tocItem.level),n=document.getElementById(e),l=i.scrollElement instanceof Element?i.scrollElement:document.querySelector(i.scrollElement);if(n&&l){let r=n.offsetParent,s=n.offsetTop;if(l.contains(r))for(;r&&l!=r;)s+=r==null?void 0:r.offsetTop,r=r==null?void 0:r.offsetParent;l==null||l.scrollTo({top:s,behavior:"smooth"})}}},[a.createVNode("span",{title:i.tocItem.text},[i.tocItem.text]),i.tocItem.children&&i.tocItem.children.map(t=>a.createVNode(De,{markedHeadingId:i.markedHeadingId,key:t.text,tocItem:t,scrollElement:i.scrollElement},null))])}});var un="";const ee=a.defineComponent({name:"Catalog",props:{editorId:{type:String},class:{type:String,default:""},markedHeadingId:{type:Function,default:i=>i},scrollElement:{type:[String,Object]},theme:{type:String,default:"light"}},setup(i){const t=i.editorId,e=a.reactive({list:[],show:!1,scrollElement:i.scrollElement||`#${t}-preview-wrapper`}),n=a.computed(()=>{const l=[];return e.list.forEach(({text:r,level:s})=>{const o={level:s,text:r};if(l.length===0)l.push(o);else{let d=l[l.length-1];if(o.level>d.level)for(let f=d.level+1;f<=6;f++){const{children:p}=d;if(!p){d.children=[o];break}if(d=p[p.length-1],o.level<=d.level){p.push(o);break}}else l.push(o)}}),l});return a.onMounted(()=>{b.on(t,{name:"catalogChanged",callback:l=>{e.list=l}}),b.emit(t,"pushCatalog")}),()=>a.createVNode("div",{class:`${c}-catalog${i.theme==="dark"?"-dark":""} ${i.class}`},[n.value.map(l=>a.createVNode(De,{markedHeadingId:i.markedHeadingId,tocItem:l,key:l.text,scrollElement:e.scrollElement},null))])}});var hn="",fn="";const Fe=i=>i,en={modelValue:{type:String,default:""},theme:{type:String,default:"light"},editorClass:{type:String,default:""},hljs:{type:Object,default:null},highlightJs:{type:String,default:G.js},highlightCss:{type:String,default:""},historyLength:{type:Number,default:10},onChange:{type:Function},onSave:{type:Function},onUploadImg:{type:Function},pageFullScreen:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},htmlPreview:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},language:{type:String,default:"zh-CN"},languageUserDefined:{type:Object,default:()=>({})},toolbars:{type:Array,default:de},toolbarsExclude:{type:Array,default:[]},prettier:{type:Boolean,default:!0},prettierCDN:{type:String,default:oe.main},prettierMDCDN:{type:String,default:oe.markdown},onHtmlChanged:{type:Function},Cropper:{type:Function,default:null},cropperCss:{type:String,default:ce.css},cropperJs:{type:String,default:ce.js},iconfontJs:{type:String,default:D},onGetCatalog:{type:Function},editorId:{type:String,default:"md-editor-v3"},tabWidth:{type:Number,default:2},showCodeRowNumber:{type:Boolean,default:!1},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:st},previewTheme:{type:String,default:"default"},markedHeading:{type:Function,default:(i,t,e)=>{const n=Fe(e);return i!==e?`<h${t} id="${n}">${i}</h${t}>`:`<h${t} id="${n}"><a href="#${n}">${e}</a></h${t}>`}},style:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:Fe},tableShape:{type:Array,default:()=>[6,4]},mermaid:{type:Object},mermaidJs:{type:String,default:ot},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:i=>i},placeholder:{type:String,default:""},katex:{type:Object},katexJs:{type:String,default:ct},katexCss:{type:String,default:dt},noKatex:{type:Boolean,default:!1},defToolbars:{type:[String,Object]},extensions:{type:Array},markedImage:{type:Function,default:(i,t,e)=>`<figure><img src="${i}" alt="${e}"><figcaption>${e}</figcaption></figure>`}};var B=a.defineComponent({name:"MdEditorV3",props:en,setup(i,t){const{editorId:e}=i;ht(i,t),ft(i),pt(i);const n=a.reactive({catalogVisible:!1}),l=a.reactive({pageFullScreen:i.pageFullScreen,fullscreen:!1,preview:i.preview,htmlPreview:i.preview?!1:i.htmlPreview}),r=(f,p)=>{l[p]=f,p==="preview"&&l.preview?l.htmlPreview=!1:p==="htmlPreview"&&l.htmlPreview&&(l.preview=!1)};let s="";const o=()=>{l.pageFullScreen||l.fullscreen?document.body.style.overflow="hidden":document.body.style.overflow=s};a.watch(()=>[l.pageFullScreen,l.fullscreen],o),a.onMounted(()=>{i.previewOnly||b.on(e,{name:"uploadImage",callback(f,p){const g=h=>{b.emit(e,"replace","image",{desc:"",urls:h}),p&&p()};i.onUploadImg?i.onUploadImg(f,g):t.emit("onUploadImg",f,g)}}),s=document.body.style.overflow,o(),b.on(e,{name:"catalogShow",callback:()=>{n.catalogVisible=!n.catalogVisible}})}),a.onBeforeUnmount(()=>{b.clear(e)});const d=a.computed(()=>!i.toolbarsExclude.includes("catalog")&&i.toolbars.includes("catalog"));return()=>{const f=H({props:i,ctx:t},"defToolbars");return a.createVNode("div",{id:e,class:[c,i.editorClass,i.theme==="dark"&&`${c}-dark`,l.fullscreen||l.pageFullScreen?`${c}-fullscreen`:"",i.previewOnly&&`${c}-previewOnly`],style:i.style},[!i.previewOnly&&a.createVNode(vt,{prettier:i.prettier,screenfull:i.screenfull,screenfullJs:i.screenfullJs,toolbars:i.toolbars,toolbarsExclude:i.toolbarsExclude,setting:l,updateSetting:r,tableShape:i.tableShape,defToolbars:f},null),a.createVNode(Yt,{hljs:i.hljs,value:i.modelValue,onChange:p=>{i.onChange?i.onChange(p):(t.emit("update:modelValue",p),t.emit("onChange",p))},setting:l,onHtmlChanged:p=>{i.onHtmlChanged?i.onHtmlChanged(p):t.emit("onHtmlChanged",p)},onGetCatalog:p=>{i.onGetCatalog?i.onGetCatalog(p):t.emit("onGetCatalog",p)},markedHeading:i.markedHeading,mermaid:i.mermaid,mermaidJs:i.mermaidJs,noMermaid:i.noMermaid,sanitize:i.sanitize,placeholder:i.placeholder,katex:i.katex,katexJs:i.katexJs,katexCss:i.katexCss,noKatex:i.noKatex,extensions:i.extensions,markedImage:i.markedImage},null),d.value&&a.createVNode(ee,{theme:i.theme,style:{display:n.catalogVisible?"block":"none"},class:`${c}-catalog-editor`,editorId:e,markedHeadingId:i.markedHeadingId},null)])}}}),re=a.defineComponent({name:"NormalToolbar",props:{title:{type:String,default:""},trigger:{type:[String,Object]},onClick:{type:Function,default:()=>()=>{}}},setup(i,t){return()=>{const e=H({props:i,ctx:t},"trigger");return a.createVNode("div",{class:`${c}-toolbar-item`,title:i.title,onClick:i.onClick},[e])}}}),ae=a.defineComponent({name:"DropdownToolbar",props:{title:{type:String,default:""},visible:{type:Boolean},trigger:{type:[String,Object]},onChange:{type:Function,default:()=>()=>{}},overlay:{type:[String,Object]}},setup(i,t){return()=>{const e=H({props:i,ctx:t},"trigger"),n=H({props:i,ctx:t},"overlay");return a.createVNode(P,{visible:i.visible,onChange:i.onChange,overlay:n},{default:()=>[a.createVNode("div",{class:`${c}-toolbar-item`,title:i.title||""},[e])]})}}});return B.install=i=>(i.component(B.name,B),i.component(re.name,re),i.component(ae.name,ae),i.component(ee.name,ee),i),B.NormalToolbar=re,B.DropdownToolbar=ae,B.Catalog=ee,B});
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.md-divider{position:relative;display:inline-block;width:1px;top:.1em;height:.9em;margin:0 8px;background-color:#e6e6e6}.md-dark .md-divider{background-color:#2d2d2d}.md-dropdown{overflow:hidden;box-sizing:border-box;position:absolute;transition:all .3s;opacity:1;z-index:10000;background-color:#fff}.md-dropdown-hidden{opacity:0;z-index:-10000}.md-dropdown-overlay{margin-top:6px}.md-dark .md-dropdown{background-color:#000}.md-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20000;height:100%;background-color:#00000073}.md-modal{display:block;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;border-radius:3px;border:1px solid #e6e6e6;position:fixed;z-index:20001;flex-direction:column}.md-modal-header{cursor:grab;display:flex;justify-content:space-between;padding:10px 24px;color:#222;font-weight:600;font-size:16px;line-height:22px;word-wrap:break-word;user-select:none;border-bottom:1px solid #e6e6e6;position:relative}.md-modal-body{padding:24px;font-size:14px;word-wrap:break-word;height:calc(100% - 61px);box-sizing:border-box}.md-modal .md-modal-func{position:absolute;top:10px;right:10px}.md-modal .md-modal-func .md-modal-adjust,.md-modal .md-modal-func .md-modal-close{cursor:pointer;width:24px;height:24px;line-height:24px;text-align:center;display:inline-block}.md-modal .md-modal-func .md-modal-adjust{padding-right:10px}.animation{animation-duration:.15s}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoom-in{animation-name:zoomIn;animation-duration:.15s}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoom-out{animation-name:zoomOut;animation-duration:.15s}.md-clip{position:relative;display:flex;height:calc(100% - 32px)}.md-clip-main,.md-clip-preview{width:50%;height:100%;border:1px #e6e6e6 solid}.md-clip-main{margin-right:1em}.md-clip-main .md-clip-cropper{position:relative;width:100%;height:100%}.md-clip-main .md-clip-cropper .md-clip-delete{position:absolute;top:0;right:0;font-size:0;background-color:#ececec;border-bottom-left-radius:4px;color:#222;cursor:pointer}.md-clip-main .md-clip-upload{display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer}.md-clip-main .md-clip-upload .md-icon{width:auto;height:40px}.md-clip-preview-target{width:100%;height:100%;overflow:hidden}.md-dark .md-clip-main,.md-dark .md-clip-preview{border:1px #2d2d2d solid}.md-dark .md-clip-main{margin-right:1em}.md-dark .md-clip-main .md-clip-cropper .md-clip-delete{background-color:#111;color:#999}.md-catalog-editor{position:absolute;overflow:auto;top:44px;right:0;height:calc(100% - 44px);background-color:#f6f6f6;border-left:1px solid #e6e6e6;width:200px;box-sizing:border-box;margin:0;padding:5px 10px;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";z-index:2}.md-catalog-link{padding:5px 0 5px 8px;line-height:1.2}.md-catalog-link span{position:relative;overflow:hidden;color:#222;white-space:nowrap;text-overflow:ellipsis;transition:color .3s;cursor:pointer}.md-catalog-link span:hover{color:#73d13d}.md-catalog-link>.md-catalog-link{padding-top:5px;padding-bottom:5px}.md-catalog-link>.md-catalog-link:first-of-type{padding-top:10px}.md-catalog-link>.md-catalog-link:last-of-type{padding-bottom:0}.md-catalog-dark{background-color:#000;border-left-color:#2d2d2d}.md-catalog-dark .md-catalog-link span{color:#999}.md-catalog-dark .md-catalog-link span:hover{color:#73d13d}.md{width:100%;height:400px;position:relative;box-sizing:border-box;border:1px solid #e6e6e6;display:flex;flex-direction:column;overflow:hidden;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI Variable,Segoe UI,system-ui,ui-sans-serif,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.md ::-webkit-scrollbar{width:6px;height:6px}.md ::-webkit-scrollbar-corner,.md ::-webkit-scrollbar-track{background-color:#e2e2e2}.md ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.md ::-webkit-scrollbar-button:vertical{display:none}.md ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.md ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.md-icon{width:24px;height:24px;fill:currentColor;overflow:hidden}.md-menu{margin:0;padding:0;border-radius:3px;border:1px solid #e6e6e6}.md-menu-item{list-style:none;font-size:12px;color:#222;padding:4px 10px;cursor:pointer}.md-menu-item:first-of-type{padding-top:8px}.md-menu-item:last-of-type{padding-bottom:8px}.md-menu-item:hover{background-color:#f5f7fa}.md-table-shape{padding:4px;border-radius:3px;border:1px solid #e6e6e6;display:flex;flex-direction:column}.md-table-shape-row{display:flex}.md-table-shape-col{padding:2px;cursor:pointer}.md-table-shape-col-default{width:16px;height:16px;background-color:#e0e0e0;border-radius:3px;transition:all .2s}.md-table-shape-col-include{background-color:#aaa}.md-toolbar-wrapper{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.md-toolbar-wrapper::-webkit-scrollbar{height:0!important}.md-toolbar-wrapper .md-toolbar{min-width:850px;padding:4px;height:35px;border-bottom:1px solid #e6e6e6;display:flex;justify-content:space-between;align-items:center;box-sizing:content-box}.md-toolbar-wrapper .md-toolbar-item{height:24px;display:inline-block;padding:0 4px;transition:all .3s;border-radius:0;cursor:pointer;list-style:none;user-select:none}.md-toolbar-wrapper .md-toolbar-item:hover{border-radius:3px;background-color:#e6e6e6}.md-toolbar-wrapper .md-toolbar-left,.md-toolbar-wrapper .md-toolbar-right{padding:1px 0;display:flex;align-items:center}.md-content{display:flex;height:calc(100% - 44px)}.md-content .md-input-wrapper{flex:1;box-sizing:border-box}.md-content .md-input-wrapper textarea{width:100%;height:100%;padding:10px 20px;box-sizing:border-box;font-size:1em;font-family:-apple-system,Consolas,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;resize:none;border:none;outline:none;overflow-y:scroll;color:inherit;background-color:inherit}.md-content .md-input-wrapper textarea.textarea-only{overflow-y:auto}.md-content .md-preview-wrapper{position:relative;flex:1;box-sizing:border-box;overflow:auto}.md-content .md-preview,.md-content .md-html{padding:10px 20px;font-size:16px;position:relative;word-break:break-all}.md-form-item{margin-bottom:14px;text-align:center}.md-form-item:last-of-type{margin-bottom:0}.md-lable{font-size:14px;color:#222;width:80px;text-align:center;display:inline-block}.md-input{border-radius:4px;padding:4px 11px;color:#222;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #e6e6e6;transition:all .2s}.md-input:focus{border-color:#57a3f3;outline:0;box-shadow:0 0 0 2px #2d8cf033}.md-btn{font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid transparent;white-space:nowrap;user-select:none;height:32px;padding:0 15px;font-size:14px;border-radius:4px;transition:all .2s linear;color:#515a6e;background-color:#fff;border-color:#e6e6e6;margin-left:10px}.md-btn:first-of-type{margin-left:0}.md-btn:hover{color:#57a3f3;background-color:#fff;border-color:#57a3f3}.md-btn-row{width:100%}.md-katex-block{text-align:center;margin:20px}.md-previewOnly{border:none;height:auto}.md-previewOnly .md-content{height:100%}.md-previewOnly .md-preview{padding:0}.md-dark{color:#999;background-color:#000;border-color:#2d2d2d}.md-dark .md-toolbar{border-color:#2d2d2d}.md-dark .md-toolbar-item:hover{background-color:#1b1a1a}.md-dark .md-table-shape{border-color:#2d2d2d}.md-dark .md-table-shape-col-default{background-color:#222}.md-dark .md-table-shape-col-include{background-color:#555}.md-dark .md-modal{background-color:#000;border-color:#2d2d2d}.md-dark .md-modal-header{border-color:#2d2d2d;color:#999}.md-dark .md-modal-header .md-modal-title{color:#999}.md-dark .md-dropdown-overlay{background-color:#000}.md-dark .md-menu{border-color:#2d2d2d}.md-dark .md-menu{background-color:inherit}.md-dark .md-menu-item{color:#999}.md-dark .md-menu-item:hover{background-color:#1b1a1a}.md-dark .md-lable{color:#999}.md-dark .md-input,.md-dark .md-btn{color:#999;background-color:#000;border-color:#2d2d2d}.md-dark ::-webkit-scrollbar-corner,.md-dark ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;width:auto!important;height:auto!important;z-index:10000}.mermaid,.md-katex-inline,.md-katex-block{display:none}.mermaid[data-processed],.md-katex-inline[data-processed]{display:initial}.md-katex-block[data-processed]{display:block}.md-scrn span[rn-wrapper]{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;user-select:none;counter-reset:linenumber}.md-scrn span[rn-wrapper]>span{display:block;pointer-events:none;counter-increment:linenumber}.md-scrn span[rn-wrapper]>span:before{color:#999;display:block;padding-right:.5em;text-align:right;content:counter(linenumber)}.md-scrn pre code{padding-left:3.5em!important}.default-theme ::-webkit-scrollbar{width:6px;height:6px}.default-theme ::-webkit-scrollbar-corner,.default-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.default-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.default-theme ::-webkit-scrollbar-button:vertical{display:none}.default-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.default-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.default-theme h1,.default-theme h2,.default-theme h3,.default-theme h4,.default-theme h5,.default-theme h6{position:relative;word-break:break-all}.default-theme h1 a,.default-theme h2 a,.default-theme h3 a,.default-theme h4 a,.default-theme h5 a,.default-theme h6 a{color:inherit}.default-theme h1 a:hover,.default-theme h2 a:hover,.default-theme h3 a:hover,.default-theme h4 a:hover,.default-theme h5 a:hover,.default-theme h6 a:hover{color:inherit;text-decoration:none}.default-theme ol li{list-style:decimal}.default-theme ul li{list-style:disc}.default-theme ol .li-task,.default-theme ul .li-task{list-style-type:none}.default-theme ol .li-task input,.default-theme ul .li-task input{margin-left:-1.5em;margin-right:.1em}.default-theme pre,.default-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.default-theme pre code{display:block}.default-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.default-theme figure{margin:0 0 1em;display:inline-block}.default-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.default-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.default-theme div[inline]>figure{display:inline-block;padding-right:.5em}.default-theme div[inline]>figure img{padding:0;border:none}.default-theme h1,.default-theme h2,.default-theme h3,.default-theme h4,.default-theme h5,.default-theme h6{margin:1.4em 0 .8em;font-weight:700}.default-theme a{text-decoration:none;color:#2d8cf0;transition:color .3s}.default-theme a:hover{color:#73d13d}.default-theme img{display:block;margin:0 auto;max-width:100%;box-sizing:border-box;padding:5px;border:1px solid #e6e6e6;border-radius:3px}.default-theme p{line-height:1.6;margin:0;padding:.5rem 0}.default-theme p:empty{display:none}.default-theme code{color:#3594f7;background-color:#3baafa1a;display:inline-block;padding:0 4px;border-radius:2px;line-height:22px}.default-theme blockquote{margin:20px 0;padding:.5em 1.2em;line-height:2em;background-color:#ececec;border-left:5px solid #35b378;display:block}.default-theme blockquote p{padding:0}.default-theme pre{position:relative;margin:20px 0;border-radius:5px;box-shadow:#0005 0 2px 2px;line-height:1.6}.default-theme pre code{position:relative;padding:1em;background-color:#282c34;color:#a9b7c6;border-radius:0 0 5px 5px}.default-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer}.default-theme pre:before{content:"";display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAACCCAYAAADVN8idAAAgAElEQVR4nO2de5QU5Zn/v1VdVX2/zQwMzDCDgCBKOIx4myXLRlnYGDlhzWWDSTxkhXBQo2iS34kmavb3C5qo5+yqqBs5xNG4ZpVskjXk6BrhqAkbdoyXgSUoiqgMzDjAzPS1+lLX3x/TYNU7F6C7untm+vn8Ne/bVdVvP+8777fe2/MABEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQExKu2BtN03SyHGVhxdS61jk+77xWr3dWk9c7Y4okTakThbqAIIa8POcTeF4EAM0w1KxhZtKamhxUtcETinKiN5s92p3Nfngok31vx/HB7mr/FmLisaItMGv2NPfclqnCrKYGoXVqWJxWF+TrAj4u5JE4n+jiRZMzoWmmmlPMTDpjJgdTxuDxhNrX2691HzmuffhBX/7gjj3pD6v9W4iJx9TFwXqxWWrlG6UmforYiIhQb4ZcEcPPBzjJ5eZd4AHA0GGYip7nZSPNJfU44tqAcUI9ZhxTetUepfv4W6mBav+W08FxRUvZ0P3F3jjehHBByM+3RyNLLw6H29vCwQubPJ6ZhY/aS3x0JwD05nKH9yRSXW8kEp2dsfiu/UnZKPG5xCRiQYuHb5/vvfyieZ4lbXO8FzU1uE62vwtLfHQXAPT064f3Hsq++cZ7ud2vHci+uv9IjtofYWP6VfWfEud7F2Gu9wJMEacVsteW+NgOAMAJtQ8Hs2+rB7J7P35h4C8lPtNxaloI2+tDkRUNDSuvqG9YPsfvnY/SRe9M6TwkywdeGRjcuaO///nOgWS8Qt9LjCP+ap6v/m8X+1de3ua78twmaT5KF70zpev9XuXAq3syL+54S97+2nsZan81SMN8v9tzaXApvziwBDOkky9epQrf6RgSxqPKYeOt9O7cn1O7+g/I+TJ/52mpSSG8aXbL51ZNa/zCeX7/QlRO/Eaj811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7uPax9+2Jc/uGNP+sNq/xZi4jF1cbBebJZa+UapiZ8iNiIi1JshV8Tw8wFOcrl511D0IUOHweWNPDJ6mkvqccS1AeOEesw4pvSqPUp3tSJCnA2VOjFAEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEAQxzvj/snGtbrdYI/0AAAAASUVORK5CYII=);height:32px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:0;border-top-left-radius:5px;border-top-right-radius:5px;background-position:10px 10px}.default-theme table{width:100%;table-layout:fixed;overflow:auto;border-spacing:0;border-collapse:collapse;margin-bottom:1em}.default-theme table tr th,.default-theme table tr td{word-wrap:break-word;padding:6px 13px;border:1px solid #e6e6e6}.default-theme table tr:nth-child(2n){background-color:#fafafa}.default-theme table tr:hover{background-color:#eee}.default-theme ol,.default-theme ul{margin:.6em 0;padding-left:1.6em}.default-theme ol li,.default-theme ul li{line-height:1.6;margin:.5em 0}.md-dark .default-theme{color:#999}.md-dark .default-theme ::-webkit-scrollbar-corner,.md-dark .default-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .default-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .default-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .default-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .default-theme hr{border-color:#2d2d2d}.md-dark .default-theme h1,.md-dark .default-theme h2,.md-dark .default-theme h3,.md-dark .default-theme h4,.md-dark .default-theme h5,.md-dark .default-theme h6,.md-dark .default-theme strong{color:#999}.md-dark .default-theme img{border-color:#2d2d2d}.md-dark .default-theme blockquote{background-color:#111}.md-dark .default-theme pre code{background-color:#1a1a1a;color:#a9b7c6}.md-dark .default-theme pre .copy-button{color:#999}.md-dark .default-theme pre:before{background-color:#1a1a1a}.md-dark .default-theme table tr th,.md-dark .default-theme table tr td{border-color:#2d2d2d}.md-dark .default-theme table tr:nth-child(2n){background-color:#0c0c0c}.md-dark .default-theme table tr:hover{background-color:#191919}.github-theme{line-height:1.5}.github-theme ::-webkit-scrollbar{width:6px;height:6px}.github-theme ::-webkit-scrollbar-corner,.github-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.github-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.github-theme ::-webkit-scrollbar-button:vertical{display:none}.github-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.github-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.github-theme h1,.github-theme h2,.github-theme h3,.github-theme h4,.github-theme h5,.github-theme h6{position:relative;word-break:break-all}.github-theme h1 a,.github-theme h2 a,.github-theme h3 a,.github-theme h4 a,.github-theme h5 a,.github-theme h6 a{color:inherit}.github-theme h1 a:hover,.github-theme h2 a:hover,.github-theme h3 a:hover,.github-theme h4 a:hover,.github-theme h5 a:hover,.github-theme h6 a:hover{color:inherit;text-decoration:none}.github-theme ol li{list-style:decimal}.github-theme ul li{list-style:disc}.github-theme ol .li-task,.github-theme ul .li-task{list-style-type:none}.github-theme ol .li-task input,.github-theme ul .li-task input{margin-left:-1.5em;margin-right:.1em}.github-theme pre,.github-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.github-theme pre code{display:block}.github-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.github-theme figure{margin:0 0 1em;display:inline-block}.github-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.github-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.github-theme div[inline]>figure{display:inline-block;padding-right:.5em}.github-theme div[inline]>figure img{padding:0;border:none}.github-theme h1,.github-theme h2,.github-theme h3,.github-theme h4,.github-theme h5,.github-theme h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.github-theme h1{padding-bottom:.3em;font-size:2em;border-bottom:1px solid #d9dee4}.github-theme h2{padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid #d9dee4}.github-theme h3{font-size:1.25em}.github-theme h4{font-size:1em}.github-theme h5{font-size:.875em}.github-theme h6{font-size:.85em;color:#2d3339}.github-theme a{text-decoration:none;color:#539bf5}.github-theme a:hover{text-decoration:underline}.github-theme img{max-width:100%;box-sizing:content-box;background-color:#fff}.github-theme p,.github-theme blockquote,.github-theme ul,.github-theme ol,.github-theme dl,.github-theme table,.github-theme pre,.github-theme details{margin-top:0;margin-bottom:16px}.github-theme p:empty{display:none}.github-theme code{padding:.2em .4em;margin:0;background-color:#eff1f2;border-radius:6px}.github-theme blockquote{padding:0 1em;color:#57606a;border-left:.25em solid #d0d7de}.github-theme pre{background-color:#f6f8fa;border-radius:6px;position:relative}.github-theme pre code{position:relative;padding:1em;line-height:1.45;margin-bottom:0;word-break:normal;letter-spacing:1px}.github-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer;display:none}.github-theme pre:hover .copy-button{display:initial}.github-theme table{display:block;max-width:100%;overflow:auto;border-spacing:0;border-collapse:collapse}.github-theme table tr{background-color:#fff;border-top:1px solid #d8dee4}.github-theme table tr th,.github-theme table tr td{padding:6px 13px;border:1px solid #d0d7de}.github-theme table tr:nth-child(2n){background-color:#f7f8fa}.github-theme ol,.github-theme ul{padding-left:2em}.github-theme ol li+li,.github-theme ul li+li{margin-top:.25em}.md-dark .github-theme{color:#c9d1d9}.md-dark .github-theme ::-webkit-scrollbar-corner,.md-dark .github-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .github-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .github-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .github-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .github-theme hr{border-color:#2d2d2d}.md-dark .github-theme h1,.md-dark .github-theme h2,.md-dark .github-theme h3,.md-dark .github-theme h4,.md-dark .github-theme h5,.md-dark .github-theme h6,.md-dark .github-theme strong{color:#c9d1d9}.md-dark .github-theme h1,.md-dark .github-theme h2{border-bottom:1px solid #373e47}.md-dark .github-theme img{border-color:#2d2d2d}.md-dark .github-theme blockquote{border-color:#444c56;color:#8b949e;background-color:initial}.md-dark .github-theme code{background-color:#2d3339;color:#c9d1d9}.md-dark .github-theme pre{background-color:#2d333b}.md-dark .github-theme pre code{color:#a9b7c6;background-color:#161b22}.md-dark .github-theme pre .copy-button{color:#999}.md-dark .github-theme pre:before{background-color:#1a1a1a}.md-dark .github-theme table tr{background-color:transparent;border-color:gray}.md-dark .github-theme table tr th,.md-dark .github-theme table tr td{border-color:#30363d}.md-dark .github-theme table tr:nth-child(2n){background-color:#161b22}.vuepress-theme{font-size:16px;color:#304455}.vuepress-theme ::-webkit-scrollbar{width:6px;height:6px}.vuepress-theme ::-webkit-scrollbar-corner,.vuepress-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.vuepress-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.vuepress-theme ::-webkit-scrollbar-button:vertical{display:none}.vuepress-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.vuepress-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.vuepress-theme h1,.vuepress-theme h2,.vuepress-theme h3,.vuepress-theme h4,.vuepress-theme h5,.vuepress-theme h6{position:relative;word-break:break-all}.vuepress-theme h1 a,.vuepress-theme h2 a,.vuepress-theme h3 a,.vuepress-theme h4 a,.vuepress-theme h5 a,.vuepress-theme h6 a{color:inherit}.vuepress-theme h1 a:hover,.vuepress-theme h2 a:hover,.vuepress-theme h3 a:hover,.vuepress-theme h4 a:hover,.vuepress-theme h5 a:hover,.vuepress-theme h6 a:hover{color:inherit;text-decoration:none}.vuepress-theme ol li{list-style:decimal}.vuepress-theme ul li{list-style:disc}.vuepress-theme ol .li-task,.vuepress-theme ul .li-task{list-style-type:none}.vuepress-theme ol .li-task input,.vuepress-theme ul .li-task input{margin-left:-1.5em;margin-right:.1em}.vuepress-theme pre,.vuepress-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.vuepress-theme pre code{display:block}.vuepress-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.vuepress-theme figure{margin:0 0 1em;display:inline-block}.vuepress-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.vuepress-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.vuepress-theme h1,.vuepress-theme h2,.vuepress-theme h3,.vuepress-theme h4,.vuepress-theme h5,.vuepress-theme h6{font-weight:600;color:#273849;line-height:1.45;position:relative;margin-top:1em}.vuepress-theme h1{font-size:2.2em;margin:1em 0}.vuepress-theme h2{font-size:1.65em;padding-bottom:.3em;border-bottom:1px solid #eaecef}.vuepress-theme h3{line-height:1.35em}.vuepress-theme a{text-decoration:none;color:#42b983;font-weight:600}.vuepress-theme img{max-width:100%}.vuepress-theme div[inline]>figure{display:inline-block;padding-right:.5em}.vuepress-theme div[inline]>figure img{padding:0;border:none}.vuepress-theme em{color:#4f5959;padding:0 6px 0 4px}.vuepress-theme code{color:#d63200;padding:3px 5px;margin:0 2px;border-radius:2px;white-space:nowrap}.vuepress-theme p{word-spacing:.05em}.vuepress-theme p:empty{display:none}.vuepress-theme blockquote{margin:2em 0;padding-left:20px;border-left:4px solid #42b983}.vuepress-theme blockquote p{margin-left:0;margin-top:1.2em;margin-bottom:0;padding:0}.vuepress-theme pre,.vuepress-theme code{background-color:#f8f8f8}.vuepress-theme pre{border-radius:2px;position:relative;font-size:.875em;margin:1em 0}.vuepress-theme pre code{overflow-x:auto;color:#747384;white-space:pre;padding:1em;font-size:.85rem;line-height:1.6rem}.vuepress-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer;display:none}.vuepress-theme pre:hover .copy-button{display:initial}.vuepress-theme table{border-collapse:collapse;margin:1rem 0;display:block;overflow-x:auto}.vuepress-theme table tr{border-top:1px solid #dfe2e5}.vuepress-theme table tr th,.vuepress-theme table tr td{border:1px solid #dfe2e5;padding:.6em 1em}.vuepress-theme table tr:nth-child(2n){background-color:#f6f8fa}.vuepress-theme p,.vuepress-theme ol,.vuepress-theme ul{line-height:1.6em;margin:1.2em 0;position:relative;z-index:1}.vuepress-theme ul,.vuepress-theme ol{padding-left:1.25em;line-height:1.4em}.vuepress-theme ul li,.vuepress-theme ol li{margin:1.2em 0}.md-dark .vuepress-theme{color:#999}.md-dark .vuepress-theme ::-webkit-scrollbar-corner,.md-dark .vuepress-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .vuepress-theme hr{border-color:#2d2d2d}.md-dark .vuepress-theme h1,.md-dark .vuepress-theme h2,.md-dark .vuepress-theme h3,.md-dark .vuepress-theme h4,.md-dark .vuepress-theme h5,.md-dark .vuepress-theme h6,.md-dark .vuepress-theme strong{color:#999}.md-dark .vuepress-theme h2{border-color:#2d2d2d}.md-dark .vuepress-theme code{color:#e06c75;background-color:#1a1a1a}.md-dark .vuepress-theme pre{background-color:#1a1a1a}.md-dark .vuepress-theme pre code{background-color:#1a1a1a;color:#999}.md-dark .vuepress-theme pre:before{background-color:#1a1a1a}.md-dark .vuepress-theme table tr th,.md-dark .vuepress-theme table tr td{border-color:#2d2d2d}.md-dark .vuepress-theme table tr:nth-child(2n){background-color:#0c0c0c}
|
|
1
|
+
.md-divider{position:relative;display:inline-block;width:1px;top:.1em;height:.9em;margin:0 8px;background-color:#e6e6e6}.md-dark .md-divider{background-color:#2d2d2d}.md-dropdown{overflow:hidden;box-sizing:border-box;position:absolute;transition:all .3s;opacity:1;z-index:10000;background-color:#fff}.md-dropdown-hidden{opacity:0;z-index:-10000}.md-dropdown-overlay{margin-top:6px}.md-dark .md-dropdown{background-color:#000}.md-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20000;height:100%;background-color:#00000073}.md-modal{display:block;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;border-radius:3px;border:1px solid #e6e6e6;position:fixed;z-index:20001;flex-direction:column}.md-modal-header{cursor:grab;display:flex;justify-content:space-between;padding:10px 24px;color:#222;font-weight:600;font-size:16px;line-height:22px;word-wrap:break-word;user-select:none;border-bottom:1px solid #e6e6e6;position:relative}.md-modal-body{padding:24px;font-size:14px;word-wrap:break-word;height:calc(100% - 61px);box-sizing:border-box}.md-modal .md-modal-func{position:absolute;top:10px;right:10px}.md-modal .md-modal-func .md-modal-adjust,.md-modal .md-modal-func .md-modal-close{cursor:pointer;width:24px;height:24px;line-height:24px;text-align:center;display:inline-block}.md-modal .md-modal-func .md-modal-adjust{padding-right:10px}.animation{animation-duration:.15s}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoom-in{animation-name:zoomIn;animation-duration:.15s}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoom-out{animation-name:zoomOut;animation-duration:.15s}.md-clip{position:relative;display:flex;height:calc(100% - 32px)}.md-clip-main,.md-clip-preview{width:50%;height:100%;border:1px #e6e6e6 solid}.md-clip-main{margin-right:1em}.md-clip-main .md-clip-cropper{position:relative;width:100%;height:100%}.md-clip-main .md-clip-cropper .md-clip-delete{position:absolute;top:0;right:0;font-size:0;background-color:#ececec;border-bottom-left-radius:4px;color:#222;cursor:pointer}.md-clip-main .md-clip-upload{display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer}.md-clip-main .md-clip-upload .md-icon{width:auto;height:40px}.md-clip-preview-target{width:100%;height:100%;overflow:hidden}.md-dark .md-clip-main,.md-dark .md-clip-preview{border:1px #2d2d2d solid}.md-dark .md-clip-main{margin-right:1em}.md-dark .md-clip-main .md-clip-cropper .md-clip-delete{background-color:#111;color:#999}.md-catalog-editor{position:absolute;overflow:auto;top:44px;right:0;height:calc(100% - 44px);background-color:#f6f6f6;border-left:1px solid #e6e6e6;width:200px;box-sizing:border-box;margin:0;padding:5px 10px;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";z-index:2}.md-catalog>.md-catalog-link{padding:5px 8px}.md-catalog-link{padding:5px 0 5px 8px;line-height:1.2}.md-catalog-link span{display:inline-block;width:100%;position:relative;overflow:hidden;color:#222;white-space:nowrap;text-overflow:ellipsis;transition:color .3s;cursor:pointer}.md-catalog-link span:hover{color:#73d13d}.md-catalog-link>.md-catalog-link{padding-top:5px;padding-bottom:5px}.md-catalog-link>.md-catalog-link:first-of-type{padding-top:10px}.md-catalog-link>.md-catalog-link:last-of-type{padding-bottom:0}.md-catalog-dark{background-color:#000;border-left-color:#2d2d2d}.md-catalog-dark>.md-catalog-link{padding:5px 8px}.md-catalog-dark .md-catalog-link span{color:#999}.md-catalog-dark .md-catalog-link span:hover{color:#73d13d}.md{width:100%;height:400px;position:relative;box-sizing:border-box;border:1px solid #e6e6e6;display:flex;flex-direction:column;overflow:hidden;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI Variable,Segoe UI,system-ui,ui-sans-serif,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.md ::-webkit-scrollbar{width:6px;height:6px}.md ::-webkit-scrollbar-corner,.md ::-webkit-scrollbar-track{background-color:#e2e2e2}.md ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.md ::-webkit-scrollbar-button:vertical{display:none}.md ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.md ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.md-icon{width:24px;height:24px;fill:currentColor;overflow:hidden}.md-menu{margin:0;padding:0;border-radius:3px;border:1px solid #e6e6e6}.md-menu-item{list-style:none;font-size:12px;color:#222;padding:4px 10px;cursor:pointer;line-height:16px}.md-menu-item:first-of-type{padding-top:8px}.md-menu-item:last-of-type{padding-bottom:8px}.md-menu-item:hover{background-color:#f5f7fa}.md-table-shape{padding:4px;border-radius:3px;border:1px solid #e6e6e6;display:flex;flex-direction:column}.md-table-shape-row{display:flex}.md-table-shape-col{padding:2px;cursor:pointer}.md-table-shape-col-default{width:16px;height:16px;background-color:#e0e0e0;border-radius:3px;transition:all .2s}.md-table-shape-col-include{background-color:#aaa}.md-toolbar-wrapper{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.md-toolbar-wrapper::-webkit-scrollbar{height:0!important}.md-toolbar-wrapper .md-toolbar{min-width:850px;padding:4px;height:35px;border-bottom:1px solid #e6e6e6;display:flex;justify-content:space-between;align-items:center;box-sizing:content-box}.md-toolbar-wrapper .md-toolbar-item{height:24px;display:inline-block;padding:0 4px;transition:all .3s;border-radius:0;cursor:pointer;list-style:none;user-select:none}.md-toolbar-wrapper .md-toolbar-item:hover{border-radius:3px;background-color:#e6e6e6}.md-toolbar-wrapper .md-toolbar-left,.md-toolbar-wrapper .md-toolbar-right{padding:1px 0;display:flex;align-items:center}.md-content{display:flex;height:calc(100% - 44px)}.md-content .md-input-wrapper{flex:1;box-sizing:border-box}.md-content .md-input-wrapper textarea{width:100%;height:100%;padding:10px 20px;box-sizing:border-box;font-size:1em;font-family:-apple-system,Consolas,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;resize:none;border:none;outline:none;overflow-y:scroll;color:inherit;background-color:inherit}.md-content .md-input-wrapper textarea.textarea-only{overflow-y:auto}.md-content .md-preview-wrapper{position:relative;flex:1;box-sizing:border-box;overflow:auto}.md-content .md-preview,.md-content .md-html{padding:10px 20px;font-size:16px;position:relative;word-break:break-all}.md-form-item{margin-bottom:14px;text-align:center}.md-form-item:last-of-type{margin-bottom:0}.md-lable{font-size:14px;color:#222;width:80px;text-align:center;display:inline-block}.md-input{border-radius:4px;padding:4px 11px;color:#222;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #e6e6e6;transition:all .2s}.md-input:focus{border-color:#57a3f3;outline:0;box-shadow:0 0 0 2px #2d8cf033}.md-btn{font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid transparent;white-space:nowrap;user-select:none;height:32px;padding:0 15px;font-size:14px;border-radius:4px;transition:all .2s linear;color:#515a6e;background-color:#fff;border-color:#e6e6e6;margin-left:10px}.md-btn:first-of-type{margin-left:0}.md-btn:hover{color:#57a3f3;background-color:#fff;border-color:#57a3f3}.md-btn-row{width:100%}.md-katex-block{text-align:center;margin:20px}.md-previewOnly{border:none;height:auto}.md-previewOnly .md-content{height:100%}.md-previewOnly .md-preview{padding:0}.md-dark{color:#999;background-color:#000;border-color:#2d2d2d}.md-dark .md-toolbar{border-color:#2d2d2d}.md-dark .md-toolbar-item:hover{background-color:#1b1a1a}.md-dark .md-table-shape{border-color:#2d2d2d}.md-dark .md-table-shape-col-default{background-color:#222}.md-dark .md-table-shape-col-include{background-color:#555}.md-dark .md-modal{background-color:#000;border-color:#2d2d2d}.md-dark .md-modal-header{border-color:#2d2d2d;color:#999}.md-dark .md-modal-header .md-modal-title{color:#999}.md-dark .md-dropdown-overlay{background-color:#000}.md-dark .md-menu{border-color:#2d2d2d}.md-dark .md-menu{background-color:inherit}.md-dark .md-menu-item{color:#999}.md-dark .md-menu-item:hover{background-color:#1b1a1a}.md-dark .md-lable{color:#999}.md-dark .md-input,.md-dark .md-btn{color:#999;background-color:#000;border-color:#2d2d2d}.md-dark ::-webkit-scrollbar-corner,.md-dark ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;width:auto!important;height:auto!important;z-index:10000}.mermaid,.md-katex-inline,.md-katex-block{display:none}.mermaid[data-processed],.md-katex-inline[data-processed]{display:initial}.md-katex-block[data-processed]{display:block}.md-scrn span[rn-wrapper]{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;user-select:none;counter-reset:linenumber}.md-scrn span[rn-wrapper]>span{display:block;pointer-events:none;counter-increment:linenumber}.md-scrn span[rn-wrapper]>span:before{color:#999;display:block;padding-right:.5em;text-align:right;content:counter(linenumber)}.md-scrn pre code{padding-left:3.5em!important}.default-theme ::-webkit-scrollbar{width:6px;height:6px}.default-theme ::-webkit-scrollbar-corner,.default-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.default-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.default-theme ::-webkit-scrollbar-button:vertical{display:none}.default-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.default-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.default-theme h1,.default-theme h2,.default-theme h3,.default-theme h4,.default-theme h5,.default-theme h6{position:relative;word-break:break-all}.default-theme h1 a,.default-theme h2 a,.default-theme h3 a,.default-theme h4 a,.default-theme h5 a,.default-theme h6 a{color:inherit}.default-theme h1 a:hover,.default-theme h2 a:hover,.default-theme h3 a:hover,.default-theme h4 a:hover,.default-theme h5 a:hover,.default-theme h6 a:hover{color:inherit;text-decoration:none}.default-theme ol li{list-style:decimal}.default-theme ul li{list-style:disc}.default-theme ol .li-task,.default-theme ul .li-task{list-style-type:none}.default-theme ol .li-task input,.default-theme ul .li-task input{margin-left:-1.5em;margin-right:.1em}.default-theme pre,.default-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.default-theme pre code{display:block;overflow:auto}.default-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.default-theme figure{margin:0 0 1em;display:inline-block}.default-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.default-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.default-theme div[inline]>figure{display:inline-block;padding-right:.5em}.default-theme div[inline]>figure img{padding:0;border:none}.default-theme h1,.default-theme h2,.default-theme h3,.default-theme h4,.default-theme h5,.default-theme h6{margin:1.4em 0 .8em;font-weight:700}.default-theme a{text-decoration:none;color:#2d8cf0;transition:color .3s}.default-theme a:hover{color:#73d13d}.default-theme img{display:block;margin:0 auto;max-width:100%;box-sizing:border-box;padding:5px;border:1px solid #e6e6e6;border-radius:3px}.default-theme p{line-height:1.6;margin:0;padding:.5rem 0}.default-theme p:empty{display:none}.default-theme code{color:#3594f7;background-color:#3baafa1a;display:inline-block;padding:0 4px;border-radius:2px;line-height:22px}.default-theme blockquote{margin:20px 0;padding:.5em 1.2em;line-height:2em;background-color:#ececec;border-left:5px solid #35b378;display:block}.default-theme blockquote p{padding:0}.default-theme pre{position:relative;margin:20px 0;border-radius:5px;box-shadow:#0005 0 2px 2px;line-height:1.6}.default-theme pre code{position:relative;padding:1em;background-color:#282c34;color:#a9b7c6;border-radius:0 0 5px 5px}.default-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer}.default-theme pre:before{content:"";display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAACCCAYAAADVN8idAAAgAElEQVR4nO2de5QU5Zn/v1VdVX2/zQwMzDCDgCBKOIx4myXLRlnYGDlhzWWDSTxkhXBQo2iS34kmavb3C5qo5+yqqBs5xNG4ZpVskjXk6BrhqAkbdoyXgSUoiqgMzDjAzPS1+lLX3x/TYNU7F6C7untm+vn8Ne/bVdVvP+8777fe2/MABEEQBEEQBEEQBEEQBEEQBEEQBEEQ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DVA1HapqQlH0kXZ+snSZJmdsezX55DOvxLeSAE4+Zmxoutq1PHKVycGFMQQRGNpxKokiOEkAN9T4wLt4uFw8wLvAcyaMQv/HmyYMkwMMHbpuwNANQNNhahpMRYOiquBP73WpgzOh6zvjL1QyasRJakYIrdw0u+Vzq6Y1fuE8v38hzkAQy0znu7K877d9x3716AdHXqpyWYgKcOPK+pWrlgS+Mr9FWogzEMQy03WgW923/X9Sv/zX5wfKPgVFVJ/mq6dcxC0Nfpaf6ZmD0whiBejAR7lD+n8nf9/zXP+bp7+8PNSkEJ6kvT4UWdHQsPKK+rrlc/z++aicKHYekuUDrwwM7txxov958gpTm1w2zxdZsdi/6vI235XnNknzUTlR7Hq/Vznw6p7MizvekreTV5japGG+3+25NLiUXxxYghnSzEJ2uYVxaL/DUeWw+WZ6d/b15K5qOMlmqWkhtLIg5Ofbo5GlF4fD7W3h4IUF121A6eLYCQzFCNyTSHW9kUh0dsbiu+gIBGFlQYuHv2y+9/KL53mWLJrjvajgug0oXRy7gKEYgXsPZd98473c7tcOZF/df4SOQBB2pl9V/ylxvncR5novKLhuA0oXxg5gKEag+X72bfVAdm85d38WCwnhGKyYWtc6x+ed1+r1zmryemdMkaQpdaJQFxDEkJfnfALPiwCgGYaaNYxMWtOSg6o2eCKvnOjNZY92Z7MfHspk3yNn2EQxrGgLzJo9zT23Zaowq6lebJ0a4adFg0Jd0MeFPBLnEwRuqP1ppppTzEwqYyZjKW3weNzo6x1Qu7uPax9+2Jc/uGNP+sNq/xZi4jF1cbBebJZa+UapiZ8iNiIi1JshV8Tw8wFOcrl511D0IUOHweWNPDJ6mkvqccS1AeOEesw4pvSqPUp3tSJCnA2VOjFAEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEAQxzvj/snGtbrdYI/0AAAAASUVORK5CYII=);height:32px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:0;border-top-left-radius:5px;border-top-right-radius:5px;background-position:10px 10px}.default-theme table{width:100%;table-layout:fixed;overflow:auto;border-spacing:0;border-collapse:collapse;margin-bottom:1em}.default-theme table tr th,.default-theme table tr td{word-wrap:break-word;padding:6px 13px;border:1px solid #e6e6e6}.default-theme table tr:nth-child(2n){background-color:#fafafa}.default-theme table tr:hover{background-color:#eee}.default-theme ol,.default-theme ul{margin:.6em 0;padding-left:1.6em}.default-theme ol li,.default-theme ul li{line-height:1.6;margin:.5em 0}.md-dark .default-theme{color:#999}.md-dark .default-theme ::-webkit-scrollbar-corner,.md-dark .default-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .default-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .default-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .default-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .default-theme hr{border-color:#2d2d2d}.md-dark .default-theme h1,.md-dark .default-theme h2,.md-dark .default-theme h3,.md-dark .default-theme h4,.md-dark .default-theme h5,.md-dark .default-theme h6,.md-dark .default-theme strong{color:#999}.md-dark .default-theme img{border-color:#2d2d2d}.md-dark .default-theme blockquote{background-color:#111}.md-dark .default-theme pre code{background-color:#1a1a1a;color:#a9b7c6}.md-dark .default-theme pre .copy-button{color:#999}.md-dark .default-theme pre:before{background-color:#1a1a1a}.md-dark .default-theme table tr th,.md-dark .default-theme table tr td{border-color:#2d2d2d}.md-dark .default-theme table tr:nth-child(2n){background-color:#0c0c0c}.md-dark .default-theme table tr:hover{background-color:#191919}.github-theme{line-height:1.5}.github-theme ::-webkit-scrollbar{width:6px;height:6px}.github-theme ::-webkit-scrollbar-corner,.github-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.github-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.github-theme ::-webkit-scrollbar-button:vertical{display:none}.github-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.github-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.github-theme h1,.github-theme h2,.github-theme h3,.github-theme h4,.github-theme h5,.github-theme h6{position:relative;word-break:break-all}.github-theme h1 a,.github-theme h2 a,.github-theme h3 a,.github-theme h4 a,.github-theme h5 a,.github-theme h6 a{color:inherit}.github-theme h1 a:hover,.github-theme h2 a:hover,.github-theme h3 a:hover,.github-theme h4 a:hover,.github-theme h5 a:hover,.github-theme h6 a:hover{color:inherit;text-decoration:none}.github-theme ol li{list-style:decimal}.github-theme ul li{list-style:disc}.github-theme ol .li-task,.github-theme ul .li-task{list-style-type:none}.github-theme ol .li-task input,.github-theme ul .li-task input{margin-left:-1.5em;margin-right:.1em}.github-theme pre,.github-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.github-theme pre code{display:block;overflow:auto}.github-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.github-theme figure{margin:0 0 1em;display:inline-block}.github-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.github-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.github-theme div[inline]>figure{display:inline-block;padding-right:.5em}.github-theme div[inline]>figure img{padding:0;border:none}.github-theme h1,.github-theme h2,.github-theme h3,.github-theme h4,.github-theme h5,.github-theme h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.github-theme h1{padding-bottom:.3em;font-size:2em;border-bottom:1px solid #d9dee4}.github-theme h2{padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid #d9dee4}.github-theme h3{font-size:1.25em}.github-theme h4{font-size:1em}.github-theme h5{font-size:.875em}.github-theme h6{font-size:.85em;color:#2d3339}.github-theme a{text-decoration:none;color:#539bf5}.github-theme a:hover{text-decoration:underline}.github-theme img{max-width:100%;box-sizing:content-box;background-color:#fff}.github-theme p,.github-theme blockquote,.github-theme ul,.github-theme ol,.github-theme dl,.github-theme table,.github-theme pre,.github-theme details{margin-top:0;margin-bottom:16px}.github-theme p:empty{display:none}.github-theme code{padding:.2em .4em;margin:0;background-color:#eff1f2;border-radius:6px}.github-theme blockquote{padding:0 1em;color:#57606a;border-left:.25em solid #d0d7de}.github-theme pre{background-color:#f6f8fa;border-radius:6px;position:relative}.github-theme pre code{position:relative;padding:1em;line-height:1.45;margin-bottom:0;word-break:normal;letter-spacing:1px}.github-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer;display:none}.github-theme pre:hover .copy-button{display:initial}.github-theme table{display:block;max-width:100%;overflow:auto;border-spacing:0;border-collapse:collapse}.github-theme table tr{background-color:#fff;border-top:1px solid #d8dee4}.github-theme table tr th,.github-theme table tr td{padding:6px 13px;border:1px solid #d0d7de}.github-theme table tr:nth-child(2n){background-color:#f7f8fa}.github-theme ol,.github-theme ul{padding-left:2em}.github-theme ol li+li,.github-theme ul li+li{margin-top:.25em}.md-dark .github-theme{color:#c9d1d9}.md-dark .github-theme ::-webkit-scrollbar-corner,.md-dark .github-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .github-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .github-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .github-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .github-theme hr{border-color:#2d2d2d}.md-dark .github-theme h1,.md-dark .github-theme h2,.md-dark .github-theme h3,.md-dark .github-theme h4,.md-dark .github-theme h5,.md-dark .github-theme h6,.md-dark .github-theme strong{color:#c9d1d9}.md-dark .github-theme h1,.md-dark .github-theme h2{border-bottom:1px solid #373e47}.md-dark .github-theme img{border-color:#2d2d2d}.md-dark .github-theme blockquote{border-color:#444c56;color:#8b949e;background-color:initial}.md-dark .github-theme code{background-color:#2d3339;color:#c9d1d9}.md-dark .github-theme pre{background-color:#2d333b}.md-dark .github-theme pre code{color:#a9b7c6;background-color:#161b22}.md-dark .github-theme pre .copy-button{color:#999}.md-dark .github-theme pre:before{background-color:#1a1a1a}.md-dark .github-theme table tr{background-color:transparent;border-color:gray}.md-dark .github-theme table tr th,.md-dark .github-theme table tr td{border-color:#30363d}.md-dark .github-theme table tr:nth-child(2n){background-color:#161b22}.vuepress-theme{font-size:16px;color:#304455}.vuepress-theme ::-webkit-scrollbar{width:6px;height:6px}.vuepress-theme ::-webkit-scrollbar-corner,.vuepress-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.vuepress-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.vuepress-theme ::-webkit-scrollbar-button:vertical{display:none}.vuepress-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.vuepress-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.vuepress-theme h1,.vuepress-theme h2,.vuepress-theme h3,.vuepress-theme h4,.vuepress-theme h5,.vuepress-theme h6{position:relative;word-break:break-all}.vuepress-theme h1 a,.vuepress-theme h2 a,.vuepress-theme h3 a,.vuepress-theme h4 a,.vuepress-theme h5 a,.vuepress-theme h6 a{color:inherit}.vuepress-theme h1 a:hover,.vuepress-theme h2 a:hover,.vuepress-theme h3 a:hover,.vuepress-theme h4 a:hover,.vuepress-theme h5 a:hover,.vuepress-theme h6 a:hover{color:inherit;text-decoration:none}.vuepress-theme ol li{list-style:decimal}.vuepress-theme ul li{list-style:disc}.vuepress-theme ol .li-task,.vuepress-theme ul .li-task{list-style-type:none}.vuepress-theme ol .li-task input,.vuepress-theme ul .li-task input{margin-left:-1.5em;margin-right:.1em}.vuepress-theme pre,.vuepress-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.vuepress-theme pre code{display:block;overflow:auto}.vuepress-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.vuepress-theme figure{margin:0 0 1em;display:inline-block}.vuepress-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.vuepress-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.vuepress-theme h1,.vuepress-theme h2,.vuepress-theme h3,.vuepress-theme h4,.vuepress-theme h5,.vuepress-theme h6{font-weight:600;color:#273849;line-height:1.45;position:relative;margin-top:1em}.vuepress-theme h1{font-size:2.2em;margin:1em 0}.vuepress-theme h2{font-size:1.65em;padding-bottom:.3em;border-bottom:1px solid #eaecef}.vuepress-theme h3{line-height:1.35em}.vuepress-theme a{text-decoration:none;color:#42b983;font-weight:600}.vuepress-theme img{max-width:100%}.vuepress-theme div[inline]>figure{display:inline-block;padding-right:.5em}.vuepress-theme div[inline]>figure img{padding:0;border:none}.vuepress-theme em{color:#4f5959;padding:0 6px 0 4px}.vuepress-theme code{color:#d63200;padding:3px 5px;margin:0 2px;border-radius:2px;white-space:nowrap}.vuepress-theme p{word-spacing:.05em}.vuepress-theme p:empty{display:none}.vuepress-theme blockquote{margin:2em 0;padding-left:20px;border-left:4px solid #42b983}.vuepress-theme blockquote p{margin-left:0;margin-top:1.2em;margin-bottom:0;padding:0}.vuepress-theme pre,.vuepress-theme code{background-color:#f8f8f8}.vuepress-theme pre{border-radius:2px;position:relative;font-size:.875em;margin:1em 0}.vuepress-theme pre code{overflow-x:auto;color:#747384;white-space:pre;padding:1em;font-size:.85rem;line-height:1.6rem}.vuepress-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer;display:none}.vuepress-theme pre:hover .copy-button{display:initial}.vuepress-theme table{border-collapse:collapse;margin:1rem 0;display:block;overflow-x:auto}.vuepress-theme table tr{border-top:1px solid #dfe2e5}.vuepress-theme table tr th,.vuepress-theme table tr td{border:1px solid #dfe2e5;padding:.6em 1em}.vuepress-theme table tr:nth-child(2n){background-color:#f6f8fa}.vuepress-theme p,.vuepress-theme ol,.vuepress-theme ul{line-height:1.6em;margin:1.2em 0;position:relative;z-index:1}.vuepress-theme ul,.vuepress-theme ol{padding-left:1.25em;line-height:1.4em}.vuepress-theme ul li,.vuepress-theme ol li{margin:1.2em 0}.md-dark .vuepress-theme{color:#999}.md-dark .vuepress-theme ::-webkit-scrollbar-corner,.md-dark .vuepress-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .vuepress-theme hr{border-color:#2d2d2d}.md-dark .vuepress-theme h1,.md-dark .vuepress-theme h2,.md-dark .vuepress-theme h3,.md-dark .vuepress-theme h4,.md-dark .vuepress-theme h5,.md-dark .vuepress-theme h6,.md-dark .vuepress-theme strong{color:#999}.md-dark .vuepress-theme h2{border-color:#2d2d2d}.md-dark .vuepress-theme code{color:#e06c75;background-color:#1a1a1a}.md-dark .vuepress-theme pre{background-color:#1a1a1a}.md-dark .vuepress-theme pre code{background-color:#1a1a1a;color:#999}.md-dark .vuepress-theme pre:before{background-color:#1a1a1a}.md-dark .vuepress-theme table tr th,.md-dark .vuepress-theme table tr td{border-color:#2d2d2d}.md-dark .vuepress-theme table tr:nth-child(2n){background-color:#0c0c0c}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "md-editor-v3",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.7",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"vue",
|
|
6
6
|
"vue3",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@types/node": "^15.12.5",
|
|
55
55
|
"@typescript-eslint/eslint-plugin": "^4.28.0",
|
|
56
56
|
"@typescript-eslint/parser": "^4.28.0",
|
|
57
|
-
"@vavt/markdown-theme": "^0.0.
|
|
57
|
+
"@vavt/markdown-theme": "^0.0.9",
|
|
58
58
|
"@vitejs/plugin-vue": "^1.2.3",
|
|
59
59
|
"@vitejs/plugin-vue-jsx": "^1.1.5",
|
|
60
60
|
"@vue/compiler-sfc": "^3.0.5",
|