From 78b4d4969e90d585365353ee09566ffb2a3554f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Fri, 17 May 2024 16:02:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archive.php | 20 +- comments.php | 77 +++- dist/css/markdown.min.css | 1 - dist/css/prism.css | 3 - dist/css/prism1.css | 246 ------------- style.css => dist/css/style.css | 77 ++++ dist/js/Markdown.min.js | 1 - dist/js/bundle.js | 416 +++++++++++++++++---- dist/js/bundle1.js | 629 -------------------------------- dist/js/prism.js | 9 - dist/js/prism1.js | 28 -- dist/js/twikoo.all.min.js | 2 - footer.php | 17 +- functions.php | 27 +- header.php | 43 ++- index.php | 8 +- page-about.php | 21 ++ page.php | 7 +- post.php | 44 ++- postlist.php | 23 +- sns.php | 21 +- 21 files changed, 654 insertions(+), 1066 deletions(-) delete mode 100644 dist/css/markdown.min.css delete mode 100644 dist/css/prism.css delete mode 100644 dist/css/prism1.css rename style.css => dist/css/style.css (97%) delete mode 100644 dist/js/Markdown.min.js delete mode 100644 dist/js/bundle1.js delete mode 100644 dist/js/prism.js delete mode 100644 dist/js/prism1.js delete mode 100644 dist/js/twikoo.all.min.js create mode 100644 page-about.php diff --git a/archive.php b/archive.php index b12e5e6..e78d6bd 100644 --- a/archive.php +++ b/archive.php @@ -12,7 +12,7 @@ 'author' => _t('作者 %s 发布的文章') ), '', ''); ?>

categorydescription(); ?>

- + next()): ?>
@@ -50,17 +50,21 @@
excerpt(180); ?> -
- -
+ + -
-

404 - 页面没找到

-

你想查看的页面已被转移或删除了

+ + + +
need('footer.php'); ?> \ No newline at end of file diff --git a/comments.php b/comments.php index cdaa307..99f6191 100644 --- a/comments.php +++ b/comments.php @@ -1,15 +1,80 @@
-
-

+
+ comments()->to($comments); ?> + allow('comment')): ?> + is('attachment')) : ?> + + +
+ + +

+ + commentsNum(_t('暂无评论'), _t('仅有 1 条评论'), _t('已有 %d 条评论')); ?>

- - options->twikoo(); ?> + have()): ?> + + +
+ listComments(); ?> + + + pageNav( + '', + '', + 1, + '...', + array( + 'wrapTag' => 'div', + 'wrapClass' => 'cat_pagination_page', + 'itemTag' => '', + 'textTag' => 'a', + 'currentClass' => 'active', + 'prevClass' => 'prev', + 'nextClass' => 'next' + ) + ); + ?> + + +
+ user->hasLogin()): ?> +

user->screenName(); ?>. »

+ +

+ +

+

+ options->commentsRequireMail): ?> required /> +

+

+ options->commentsRequireURL): ?> required /> +

+ + +

+ +

+

+ +

+
-

\ No newline at end of file + + + + + options->twikoo(); ?> + + + \ No newline at end of file diff --git a/dist/css/markdown.min.css b/dist/css/markdown.min.css deleted file mode 100644 index c6d57c4..0000000 --- a/dist/css/markdown.min.css +++ /dev/null @@ -1 +0,0 @@ -.md-view *{box-sizing:border-box;color:#424242}.md-h1,.md-h2,.md-h3,.md-h4,.md-h5,.md-h6{font-weight:700}.md-code{display:block;margin:1rem 0;padding:1rem;color:#f5f5f5;border-radius:5px;background-color:#424242}.md-code-inline{display:inline-block;padding:.125rem .25rem;color:#ef6c00;background-color:#fff3e0}.md-ul,.md-ol{padding-left:2rem;margin:1rem 0}.md-ul>li,.md-ol>li{margin-top:.5rem}.md-ul>li:first-child,.md-ol>li:first-child{margin-top:0}.md-ul ul,.md-ol ul{margin:.5rem 0 0 0}.md-blockquote{display:block;padding:1rem 0 1rem 1rem;margin:1rem 0;border-left:.5rem solid #bdbdbd;border-radius:5px;background-color:#eee;overflow:auto;word-break:break-word !important}.md-a{position:relative;cursor:pointer;text-decoration:underline transparent;color:#ef6c00}.md-a::before{content:"";border-bottom:.1rem solid #ef6c00;position:absolute;bottom:0;left:0;width:0;transition:width .3s ease}.md-a:hover::before{width:100%}.md-hr{border:0;border-top:.09rem dashed #bdbdbd;border-bottom:0;margin:.5rem 0}.md-sub,.md-sup{font-size:.75rem}.md-sub{bottom:-.25rem}.md-sup{top:-.25rem}.md-img{margin:1rem 0;padding:.5rem;background-color:#eee;border-radius:5px;max-width:100%}.md-strong{font-weight:700}.md-em{font-style:italic}.md-del{text-decoration:line-through}.md-mark{background-color:#ffeb3b}.md-table-outer{width:100%;overflow:auto}.md-table{border-collapse:collapse;display:table;width:100%;text-align:center;margin:1rem 0}.md-thead{background-color:#eceff1}.md-th,.md-td{padding:.5rem;border:.0625rem solid #d5d5d5;white-space:nowrap}.md-th{font-weight:700}.md-tr:nth-child(even){background-color:#eee} \ No newline at end of file diff --git a/dist/css/prism.css b/dist/css/prism.css deleted file mode 100644 index 5aa151f..0000000 --- a/dist/css/prism.css +++ /dev/null @@ -1,3 +0,0 @@ -/* PrismJS 1.29.0 -https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript&plugins=highlight-keywords+autoloader */ -code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help} diff --git a/dist/css/prism1.css b/dist/css/prism1.css deleted file mode 100644 index 823123c..0000000 --- a/dist/css/prism1.css +++ /dev/null @@ -1,246 +0,0 @@ -/* PrismJS 1.29.0 -https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+aspnet+c+csharp+cpp+css-extras+git+go+java+jq+json+json5+jsonp+markup-templating+php+plsql+python+sql&plugins=line-numbers+show-language+toolbar+copy-to-clipboard */ -code[class*=language-], -pre[class*=language-] { - color: #ccc; - background: 0 0; - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; - font-size: 1em; - text-align: left; - white-space: pre; - word-spacing: normal; - word-break: normal; - word-wrap: normal; - line-height: 1.5; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none -} - -pre[class*=language-] { - padding: 1em; - margin: .5em 0; - overflow: auto -} - -:not(pre)>code[class*=language-], -pre[class*=language-] { - background: #2d2d2d -} - -:not(pre)>code[class*=language-] { - padding: .1em; - border-radius: .3em; - white-space: normal -} - -.token.block-comment, -.token.cdata, -.token.comment, -.token.doctype, -.token.prolog { - color: #999 -} - -.token.punctuation { - color: #ccc -} - -.token.attr-name, -.token.deleted, -.token.namespace, -.token.tag { - color: #e2777a -} - -.token.function-name { - color: #6196cc -} - -.token.boolean, -.token.function, -.token.number { - color: #f08d49 -} - -.token.class-name, -.token.constant, -.token.property, -.token.symbol { - color: #f8c555 -} - -.token.atrule, -.token.builtin, -.token.important, -.token.keyword, -.token.selector { - color: #cc99cd -} - -.token.attr-value, -.token.char, -.token.regex, -.token.string, -.token.variable { - color: #7ec699 -} - -.token.entity, -.token.operator, -.token.url { - color: #67cdcc -} - -.token.bold, -.token.important { - font-weight: 700 -} - -.token.italic { - font-style: italic -} - -.token.entity { - cursor: help -} - -.token.inserted { - color: green -} - -pre[class*=language-].line-numbers { - position: relative; - padding-left: 3.8em; - counter-reset: linenumber -} - -pre[class*=language-].line-numbers>code { - position: relative; - white-space: inherit -} - -.line-numbers .line-numbers-rows { - position: absolute; - pointer-events: none; - top: 0; - font-size: 100%; - left: -3.8em; - width: 3em; - letter-spacing: -1px; - border-right: 1px solid #999; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none -} - -.line-numbers-rows>span { - display: block; - counter-increment: linenumber -} - -.line-numbers-rows>span:before { - content: counter(linenumber); - color: #999; - display: block; - padding-right: .8em; - text-align: right -} - -div.code-toolbar { - position: relative -} - -div.code-toolbar>.toolbar { - position: absolute; - z-index: 10; - top: .3em; - right: .2em; - transition: opacity .3s ease-in-out; - opacity: 0 -} - -div.code-toolbar:hover>.toolbar { - opacity: 1 -} - -div.code-toolbar:focus-within>.toolbar { - opacity: 1 -} - -div.code-toolbar>.toolbar>.toolbar-item { - display: inline-block -} - -div.code-toolbar>.toolbar>.toolbar-item>a { - cursor: pointer -} - -div.code-toolbar>.toolbar>.toolbar-item>button { - background: 0 0; - border: 0; - color: inherit; - font: inherit; - line-height: normal; - overflow: visible; - padding: 0; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none -} - -div.code-toolbar>.toolbar>.toolbar-item>a, -div.code-toolbar>.toolbar>.toolbar-item>button, -div.code-toolbar>.toolbar>.toolbar-item>span { - color: #bbb; - font-size: .8em; - padding: 0 .5em; - background: #f5f2f0; - background: rgba(224, 224, 224, .2); - box-shadow: 0 2px 0 0 rgba(0, 0, 0, .2); - border-radius: .5em -} - -div.code-toolbar>.toolbar>.toolbar-item>a:focus, -div.code-toolbar>.toolbar>.toolbar-item>a:hover, -div.code-toolbar>.toolbar>.toolbar-item>button:focus, -div.code-toolbar>.toolbar>.toolbar-item>button:hover, -div.code-toolbar>.toolbar>.toolbar-item>span:focus, -div.code-toolbar>.toolbar>.toolbar-item>span:hover { - color: inherit; - text-decoration: none -} - -.pre-mac { - position: relative; - margin-top: -7px; - top: 21px; - left: 10px; - width: 100px; - z-index: 99; -} - -.pre-mac>span { - float: left; - width: 10px; - height: 10px; - border-radius: 50%; - margin-right: 5px; -} - -.pre-mac>span:nth-child(1) { - background: red; -} - -.pre-mac>span:nth-child(2) { - background: sandybrown; -} - -.pre-mac>span:nth-child(3) { - background: limegreen; -} \ No newline at end of file diff --git a/style.css b/dist/css/style.css similarity index 97% rename from style.css rename to dist/css/style.css index e2a9877..b97b944 100644 --- a/style.css +++ b/dist/css/style.css @@ -4015,5 +4015,82 @@ textarea { .heatmap_day_level_4 { background-color: var(--ht-lv-4) } +/* 分页 */ +.cat_pagination_page{ + display: flex; + align-items: center; + justify-content: center; + margin-top: var(--margin); + gap: 0.5rem; +} +.cat_pagination_page li.active a { + background: var(--theme); + color: #fff; + font-weight: 500; +} +.cat_pagination_page a{ + display: flex; + padding: 0.5rem; + font-size: 0.9rem; + width: 1.75rem; + height: 1.75rem; + background: var(--background); + border-radius: 50%; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + transition: 0.2s; + -webkit-transition: 0.2s; + justify-content: center; + align-items: center; + letter-spacing: 0; +} +.cat_pagination_page span.next{ + cursor: pointer; +} +.cat_pagination_page li.active a:hover{ + cursor: not-allowed; +} +/* 分页 */ +.cat_archive_next { + display: flex; + align-items: center; + justify-content: center; + margin-top: var(--margin); +} +.cat_archive_next .next{ + color: var(--C); + padding: 0.5rem 0.75rem; + font-size: 0.9rem; + background: var(--background); + border-radius: 1rem; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + transition: 0.2s; + -webkit-transition: 0.2s; + letter-spacing: 2px; + cursor: pointer; +} +.cat_archive_next .over{ + font-size: small; + color: var(--A); + padding: 0.5rem; + text-align: center; +} +.cat_categorymenu{ + display: flex; + flex-wrap: wrap; + gap: 1rem; +} +.cat_categorymenu a:last-child { + margin-right: auto; +} +.cat_categorymenu a { + display: inline-block; + font-size: 0.9rem; + margin-bottom: 0; +} \ No newline at end of file diff --git a/dist/js/Markdown.min.js b/dist/js/Markdown.min.js deleted file mode 100644 index dd12289..0000000 --- a/dist/js/Markdown.min.js +++ /dev/null @@ -1 +0,0 @@ -self.addEventListener("message",function(e){let data=e.data;let mdText=data.mdText;let markdown=new Markdown({mdText:mdText});let htmlText=markdown.markdown();self.postMessage({htmlText:htmlText})},false);class Markdown{constructor(props={mdText:""}){this.h1Reg=/^([-+*]*)( )*(#) (.+)/;this.h2Reg=/^([-+*]*)( )*(#{2}) (.+)/;this.h3Reg=/^([-+*]*)( )*(#{3}) (.+)/;this.h4Reg=/^([-+*]*)( )*(#{4}) (.+)/;this.h5Reg=/^([-+*]*)( )*(#{5}) (.+)/;this.h6Reg=/^([-+*]*)( )*(#{6}) (.+)/;this.hrReg=/^[-+*_]{3,}$/;this.aReg=/\[([^\[\]]+?)]\(([^()]+?)\)/;this.imgReg=/!\[([^\[\]]+?)]\(([^()]+?)\)/;this.strongReg=/\*\*(.+?)\*\*/;this.emReg=/\*(.+?)\*/;this.delReg=/~~(.+?)~~/;this.markReg=/==(.+?)==/;this.subReg=/~(.+?)~/;this.supReg=/\^(.+?)\^/;this.inlineCodeReg=/`{1,2}(.+?)`{1,2}/;this.ulReg=/\n([-+*].*(\n[-+*].*)*)/;this.olReg=/\n([1-9]+\..*(\n[0-9]+\..*)*)/;this.blockquoteReg=/\n(>.*(\n>.*)*)/;this.codeReg=/\n```\n([\s\S]*?)\n```[\n]?/;this.tableReg=/\n(\|.*?\|
\n(\|(nbsp;)*-+)+\|
\n(\|.*?\|
\n)*)/;this.tranRegs=[{reg:/\\\\/,to:""},{reg:/\\&/,to:""},{reg:/\\ /,to:""},{reg:/\\</,to:""},{reg:/\\>/,to:""},{reg:/\\'/,to:""},{reg:/\\"/,to:""},{reg:/\\#/,to:""},{reg:/\\=/,to:""},{reg:/\\\+/,to:""},{reg:/\\-/,to:""},{reg:/\\\*/,to:""},{reg:/\\_/,to:""},{reg:/\\`/,to:""},{reg:/\\\|/,to:""},{reg:/\\~/,to:""},{reg:/\\\^/,to:""},{reg:/\\!/,to:""},{reg:/\\{/,to:""},{reg:/\\}/,to:""},{reg:/\\\[/,to:""},{reg:/\\]/,to:""},{reg:/\\\(/,to:""},{reg:/\\\)/,to:""},{reg:/\\./,to:""}];this.tranToRegs=[{reg://,to:"\\"},{reg://,to:"&"},{reg://,to:"\\ "},{reg://,to:"<"},{reg://,to:">"},{reg://,to:"'"},{reg://,to:"""},{reg://,to:"#"},{reg://,to:"="},{reg://,to:"+"},{reg://,to:"-"},{reg://,to:"*"},{reg://,to:"_"},{reg://,to:"`"},{reg://,to:"|"},{reg://,to:"~"},{reg://,to:"^"},{reg://,to:"!"},{reg://,to:"{"},{reg://,to:"}"},{reg://,to:"["},{reg://,to:"]"},{reg://,to:"("},{reg://,to:")"},{reg://,to:"."}];let htmlEncode=str=>{let s;if(str.length===0){return""}s=str.replace(/&/g,"&").replace(/ /g," ").replace(//g,">").replace(/'/g,"'").replace(/"/g,""");return s};this.props=props;this.props.mdText=htmlEncode(this.props.mdText)}markdown(){const replaceTran=htmlText=>{let reg;let i=0;for(let tranReg of this.tranRegs){while(reg=tranReg.reg.exec(htmlText)){htmlText=htmlText.replace(tranReg.reg,tranReg.to)}i++}return htmlText};const replaceTranTo=htmlText=>{let reg;let i=0;for(let tranToReg of this.tranToRegs){while(reg=tranToReg.reg.exec(htmlText)){htmlText=htmlText.replace(tranToReg.reg,tranToReg.to)}i++}return htmlText};const replaceA=htmlText=>{let reg;while(reg=this.aReg.exec(htmlText)){htmlText=htmlText.replace(this.aReg,`${reg[1]}`)}return htmlText};const replaceImg=htmlText=>{let reg;while(reg=this.imgReg.exec(htmlText)){htmlText=htmlText.replace(this.imgReg,`${reg[1]}`)}return htmlText};const replaceStrong=htmlText=>{let reg;while(reg=this.strongReg.exec(htmlText)){htmlText=htmlText.replace(this.strongReg,`${reg[1]}`)}return htmlText};const replaceEm=htmlText=>{let reg;while(reg=this.emReg.exec(htmlText)){htmlText=htmlText.replace(this.emReg,`${reg[1]}`)}return htmlText};const replaceDel=htmlText=>{let reg;while(reg=this.delReg.exec(htmlText)){htmlText=htmlText.replace(this.delReg,`${reg[1]}`)}return htmlText};const replaceMark=htmlText=>{let reg;while(reg=this.markReg.exec(htmlText)){htmlText=htmlText.replace(this.markReg,`${reg[1]}`)}return htmlText};const replaceSub=htmlText=>{let reg;while(reg=this.subReg.exec(htmlText)){htmlText=htmlText.replace(this.subReg,`${reg[1]}`)}return htmlText};const replaceSup=htmlText=>{let reg;while(reg=this.supReg.exec(htmlText)){htmlText=htmlText.replace(this.supReg,`${reg[1]}`)}return htmlText};const replaceInlineCode=htmlText=>{let reg;while(reg=this.inlineCodeReg.exec(htmlText)){htmlText=htmlText.replace(this.inlineCodeReg,`${reg[1]}`)}return htmlText};const replaceBlockquote=htmlText=>{htmlText="\n"+htmlText;let reg;while(reg=this.blockquoteReg.exec(htmlText)){let reg2=reg[1];reg2=reg2.split("\n");for(let i=0,l=reg2.length;i");reg2=`

${reg2}

`}reg2=`
\n${reg2}\n
`;htmlText=htmlText.replace(this.blockquoteReg,reg2)}return htmlText};const replaceUl=htmlText=>{htmlText="\n"+htmlText;let reg;while(reg=this.ulReg.exec(htmlText)){let reg2=reg[1];reg2=reg2.split("\n");for(let i=0,l=reg2.length;i\n${reg2[i]}\n`}}reg2=reg2.join("\n");reg2=`\n
    \n${reg2}\n
\n`;htmlText=htmlText.replace(this.ulReg,reg2)}return htmlText};const replaceOl=htmlText=>{htmlText="\n"+htmlText;let reg;while(reg=this.olReg.exec(htmlText)){let reg2=reg[1];reg2=reg2.split("\n");for(let i=0,l=reg2.length;i\n${reg2[i]}\n`}}reg2=reg2.join("\n");reg2=`\n
    \n${reg2}\n
\n`;htmlText=htmlText.replace(this.olReg,reg2)}return htmlText};const replaceCode=htmlText=>{htmlText="\n"+htmlText;let reg;while(reg=this.codeReg.exec(htmlText)){htmlText=htmlText.replace(this.codeReg,`\n\n${reg[1]}\n\n`)}return htmlText};const replaceTable=htmlText=>{htmlText="\n"+htmlText;let reg;while(reg=this.tableReg.exec(htmlText)){let reg2=reg[1].split("
\n");reg2.pop();let count=0;for(let i=0,l=reg2[1].length;i\n\n\n\n`;let reg3;let thInThead=[];while(reg3=/\|(.[^|]*)/.exec(reg2[0])){reg2[0]=reg2[0].replace(/\|(.[^|]*)/,``);thInThead.push(`\n\n`)}thInThead.length=count-1;for(let th of thInThead){if(!th){th=`\n\n`}table+=th}table+=`\n\n\n\n`;for(let i=2,l=reg2.length;i\n`;let trInTbody=reg2[i].split("|");trInTbody.pop();trInTbody.shift();trInTbody.length=count-1;for(let td of trInTbody){if(!td){td=`\n\n`}else{td=`\n\n`}table+=td}table+=`\n\n`}table+="\n\n
\n${reg3[1]}\n\n
\n\n${td}\n
\n\n";htmlText=htmlText.replace(this.tableReg,table)}return htmlText};let mdText=this.props.mdText;mdText=replaceTran(mdText);mdText=replaceCode(mdText);let mdTexts=mdText.split("\n");let htmlText="";let target=false;let code=[];for(let text of mdTexts){if(/^/.test(text)){target=false}if(target){code.push(text)}else{if(code.length>0){code.shift();htmlText+=`\n\n${code.join("
\n")}
\n
\n`;code=[]}else{let reg;if(reg=this.h6Reg.exec(text)){htmlText+=`${reg[1]}
${reg[4]}
\n`}else if(reg=this.h5Reg.exec(text)){htmlText+=`${reg[1]}
${reg[4]}
\n`}else if(reg=this.h4Reg.exec(text)){htmlText+=`${reg[1]}

${reg[4]}

\n`}else if(reg=this.h3Reg.exec(text)){htmlText+=`${reg[1]}

${reg[4]}

\n`}else if(reg=this.h2Reg.exec(text)){htmlText+=`${reg[1]}

${reg[4]}

\n`}else if(reg=this.h1Reg.exec(text)){htmlText+=`${reg[1]}

${reg[4]}

\n`}else if(reg=this.hrReg.exec(text)){htmlText+=`
\n`}else{htmlText+=`${text}
\n`}}}}let sub=0;let htmls=[];let reg;while(reg=//.exec(htmlText)){htmls[htmls.length]=htmlText.substring(sub,reg.index);htmls[htmls.length]=htmlText.substring(reg.index,reg.index+reg[0].length);htmlText=htmlText.substring(reg.index+reg[0].length)}htmls[htmls.length]=htmlText;htmlText="";let i=1;for(let html of htmls){if(i%2!==0){html=replaceTable(html);html=replaceImg(html);html=replaceA(html);html=replaceStrong(html);html=replaceEm(html);html=replaceDel(html);html=replaceMark(html);html=replaceSub(html);html=replaceSup(html);html=replaceInlineCode(html);html=replaceBlockquote(html);html=replaceOl(html);html=replaceUl(html)}htmlText+=html;i++}htmlText=replaceTranTo(htmlText);htmlText=htmlText.replace(/
/,"");return htmlText}} \ No newline at end of file diff --git a/dist/js/bundle.js b/dist/js/bundle.js index 9221b32..b15a642 100644 --- a/dist/js/bundle.js +++ b/dist/js/bundle.js @@ -1,61 +1,355 @@ -(()=>{window.addComment=function(m){var u,p,f,c=m.document,o={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},k=m.MutationObserver||m.WebKitMutationObserver||m.MozMutationObserver,N="querySelector"in c&&"addEventListener"in m,D=!!c.documentElement.dataset;function x(){F(),k&&new k(O).observe(c.body,{childList:!0,subtree:!0})}function F(r){if(N&&(u=i(o.cancelReplyId),p=i(o.commentFormId),u)){let d=function(n){if((n.metaKey||n.ctrlKey)&&n.keyCode===13)return p.removeEventListener("keydown",d),n.preventDefault(),p.submit.click(),!1};var l=d;u.addEventListener("touchstart",L),u.addEventListener("click",L),p&&p.addEventListener("keydown",d);for(var t,a=function(n){var I=o.commentReplyClass;return n&&n.childNodes||(n=c),n=c.getElementsByClassName?n.getElementsByClassName(I):n.querySelectorAll("."+I),n}(r),e=0,y=a.length;e{var d=class{ver;type;finished;paged;genre_list;subjects;genre;baseAPI="https://node.wpista.com/v1/outer/";token;constructor(e){this.ver="1.0.1",this.type="movie",this.finished=!1,this.paged=1,this.genre_list=[],this.genre=[],this.subjects=[],this.token=e.token,this._create()}on(e,t,s){var a=document.querySelectorAll(t);a.forEach(n=>{n.addEventListener(e,s)})}_fetchGenres(){document.querySelector(".db--genres").innerHTML="",fetch(this.baseAPI+"genres?token="+this.token+"&type="+this.type).then(e=>e.json()).then(e=>{e.data.length&&(this.genre_list=e.data,this._renderGenre())})}_handleGenreClick(){this.on("click",".db--genreItem",e=>{let t=e.currentTarget;if(t.classList.contains("is-active")){let s=this.genre.indexOf(t.innerText);t.classList.remove("is-active"),this.genre.splice(s,1),this.paged=1,this.finished=!1,this.subjects=[],this._fetchData();return}document.querySelector(".db--list").innerHTML="",document.querySelector(".lds-ripple").classList.remove("u-hide"),t.classList.add("is-active"),this.genre.push(t.innerText),this.paged=1,this.finished=!1,this.subjects=[],this._fetchData()})}_renderGenre(){document.querySelector(".db--genres").innerHTML=this.genre_list.map(e=>`${e.name}`).join(""),this._handleGenreClick()}_fetchData(){fetch(this.baseAPI+"faves?token="+this.token+"&type="+this.type+"&paged="+this.paged+"&genre="+JSON.stringify(this.genre)).then(e=>e.json()).then(e=>{e.data.length?(document.querySelector(".db--list").classList.contains("db--list__card")?(this.subjects=[...this.subjects,...e.data],this._randerDateTemplate()):(this.subjects=[...this.subjects,...e.data],this._randerListTemplate()),document.querySelector(".lds-ripple").classList.add("u-hide")):(this.finished=!0,document.querySelector(".lds-ripple").classList.add("u-hide"))})}_randerDateTemplate(){let e=this.subjects.reduce((s,a)=>{let n=new Date(a.create_time),i=n.getFullYear(),r=n.getMonth()+1,l=`${i}-${r.toString().padStart(2,"0")}`;return Object.prototype.hasOwnProperty.call(s,l)?s[l].push(a):s[l]=[a],s},{}),t="";for(let s in e){let a=s.split("-");t+=`
${a[1]}
${a[0]}
`,t+=e[s].map(n=>`
${n.is_top250?'Top 250':""}
${n.douban_score>0?''+n.douban_score:""}${n.year>0?" \xB7 "+n.year:""}
`).join(""),t+="
"}document.querySelector(".db--list").innerHTML=t}_randerListTemplate(){document.querySelector(".db--list").innerHTML=this.subjects.map(e=>`
${e.is_top250?'Top 250':""}
${e.create_time}
${e.douban_score>0?''+e.douban_score:""}${e.year>0?" \xB7 "+e.year:""}
-
- `).join("")}_handleScroll(){window.addEventListener("scroll",()=>{var e=window.scrollY||window.pageYOffset;document.querySelector(".block-more").offsetTop+-window.innerHeight{if(e.currentTarget.classList.contains("current"))return;this.genre=[],this.type=e.currentTarget.dataset.type,this.type!="book"?(this._fetchGenres(),document.querySelector(".db--genres")?.classList.remove("u-hide")):document.querySelector(".db--genres").classList.add("u-hide"),document.querySelector(".db--list").innerHTML="",document.querySelector(".lds-ripple").classList.remove("u-hide"),document.querySelector(".db--navItem.current").classList.remove("current"),e.target.classList.add("current"),this.paged=1,this.finished=!1,this.subjects=[],this._fetchData()})}_create(){if(document.querySelector(".db--container")){let e=document.querySelector(".db--container");if(e.dataset.token)this.token=e.dataset.token;else return;let t=document.querySelector(".db--navItem.current");t instanceof HTMLElement&&(this.type=t.dataset.type);let s=document.querySelector(".db--list");s.dataset.type&&(this.type=s.dataset.type),this.type=="movie"&&document.querySelector(".db--genres").classList.remove("u-hide"),this._fetchGenres(),this._fetchData(),this._handleScroll(),this._handleNavClick()}document.querySelector(".js-db")&&document.querySelectorAll(".js-db").forEach(e=>{let t=e,s=t.dataset.id,a=t.dataset.type,n=t.parentNode;fetch(this.baseAPI+`${a}/${s}?token=${this.token}`).then(i=>{i.json().then(r=>{if(r.data){let l=r.data,c=document.createElement("div");c.classList.add("doulist-item"),c.innerHTML=`
-
-
- -
${l.douban_score}
-
${l.card_subtitle}
-
-
`,n.replaceWith(c)}})})}),document.querySelector(".db--collection")&&document.querySelectorAll(".db--collection").forEach(e=>{this._fetchCollection(e)})}_fetchCollection(e){let t=e.dataset.style?e.dataset.style:"card";fetch(obvInit.api+"v1/movies?type="+e.dataset.type+"&paged=1&genre=&start_time="+e.dataset.start+"&end_time="+e.dataset.end).then(s=>s.json()).then(s=>{if(s.length)if(t=="card")e.innerHTML+=s.map(a=>`
-
-
Marked ${a.create_time}
-
${a.douban_score}
${a.remark||a.card_subtitle}
`).join("");else{let a=s.reduce((i,r)=>(Object.prototype.hasOwnProperty.call(i,r.create_time)?i[r.create_time].push(r):i[r.create_time]=[r],i),{}),n="";for(let i in a)n+=`
${i}
`,n+=a[i].map(r=>`
- -
- -
${r.douban_score}
- ${r.remark||r.card_subtitle} -
-
`).join(""),n+="
";e.innerHTML=n}})}};new d({token:window.WPD_TOKEN});})(); - -; -(()=>{var o=class{getCookie(e){if(0${e}`;document.querySelector("body").insertAdjacentHTML("beforeend",t),document.querySelector(".notice--wrapper").classList.add("is-active"),setTimeout(()=>{document.querySelector(".notice--wrapper").remove()},3e3)}};var a=class{selector;timeFormat={second:"second ago",seconds:"seconds ago",minute:"minute ago",minutes:"minutes ago",hour:"hour ago",hours:"hours ago",day:"day ago",days:"days ago",week:"week ago",weeks:"weeks ago",month:"month ago",months:"months ago",year:"year ago",years:"years ago"};doms=[];constructor(e){this.selector=e.selector,e.timeFormat&&(this.timeFormat=e.timeFormat),this.init(),setTimeout(()=>{this.refresh()},1e3*5)}init(){this.doms=Array.from(document.querySelectorAll(this.selector)),this.doms.forEach(e=>{e.innerText=this.humanize_time_ago(e.attributes.datetime.value)})}humanize_time_ago(e){let i=new Date(e),t=Date.now()/1e3-Number(i.getTime()/1e3);return t<3600?`${Math.ceil(t/60)} ${Math.ceil(t/60)==1?this.timeFormat.second:this.timeFormat.seconds}`:t<86400?`${Math.ceil(t/3600)} ${Math.ceil(t/3660)==1?this.timeFormat.hour:this.timeFormat.hours}`:t<86400*30?`${Math.ceil(t/86400)} ${Math.ceil(t/86400)==1?this.timeFormat.day:this.timeFormat.days}`:t<86400*30*12?`${Math.ceil(t/(86400*30))} ${Math.ceil(t/(86400*30))==1?this.timeFormat.month:this.timeFormat.months}`:i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate()}refresh(){this.doms.forEach(e=>{e.innerText=this.humanize_time_ago(e.attributes.datetime.value)})}},l=a;var n=class extends o{singleSelector=".post--single";likeButtonSelctor=".like-btn";articleSelector=".post--item";viewSelector=".article--views";actionDomain;text="";likeButton=null;post_id;is_single=!1;constructor(e){if(super(),this.singleSelector=e.singleSelector??this.singleSelector,this.likeButtonSelctor=e.likeButtonSelctor??this.likeButtonSelctor,this.articleSelector=e.articleSelector??this.articleSelector,this.viewSelector=e.viewSelector??this.viewSelector,this.actionDomain=e.actionDomain,this.text=e.text??this.text,this.is_single=!!document.querySelector(this.singleSelector),this.is_single){let i=document.querySelector(this.singleSelector);this.post_id=i.dataset.id??"",this.initArticleLike()}}initArticleLike(){this.likeButton=document.querySelector(this.likeButtonSelctor),this.likeButton&&(fetch(this.actionDomain+"post/"+this.post_id+"/like").then(e=>{e.json().then(i=>{this.likeButton.querySelector(".count").innerText=i.likes})}),this.likeButton.addEventListener("click",()=>{this.handleLike()}),this.getCookie("like_"+this.post_id)&&this.likeButton.classList.add("is-active"))}handleLike(){if(this.getCookie("like_"+this.post_id))return this.showNotice("You have already liked this post");if(this.likeButton){let e=this.actionDomain+"post/"+this.post_id+"/like";fetch(e,{method:"post"}).then(i=>i.json()).then(i=>{this.showNotice("Thanks for your like");let t=this.likeButton?.querySelector(".count");t&&(t.innerText=i.likes),this.setCookie("like_"+this.post_id,"1",1)}),this.likeButton?.classList.add("is-active")}}},h=n;var c=class extends o{is_single=!1;post_id=0;is_archive=!1;VERSION="0.4.1";like_btn;selctor=".like-btn";actionDomain=window.actionDomain;constructor(){super(),this.initCopyright(),this.initThemeSwitch(),this.initBack2Top(),this.initSearch()}initSearch(){document.querySelector('[data-action="show-search"]').addEventListener("click",()=>{document.querySelector(".site--header__center .inner").classList.toggle("search--active")})}initBack2Top(){if(document.querySelector(".backToTop")){let e=document.querySelector(".backToTop");window.addEventListener("scroll",()=>{(window.scrollY||window.pageYOffset)>200?e.classList.add("is-active"):e.classList.remove("is-active")}),e.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})})}}initCopyright(){let e=``;document.querySelector(".site--footer__content").insertAdjacentHTML("afterend",e),document.querySelector(".icon--copryrights").addEventListener("click",()=>{document.querySelector(".site--footer__info").classList.toggle("active")})}initThemeSwitch(){let e=localStorage.getItem("theme")?localStorage.getItem("theme"):"auto",i=`
- - - - - - - - - - - - - - - - - - - - - - - - - -
`;document.querySelector("body").insertAdjacentHTML("beforeend",i),document.querySelectorAll(".fixed--theme span").forEach(t=>{t.addEventListener("click",()=>{t.classList.contains("is-active")||(document.querySelectorAll(".fixed--theme span").forEach(s=>{s.classList.remove("is-active")}),t.dataset.actionValue=="dark"?(localStorage.setItem("theme","dark"),document.querySelector("body").classList.remove("auto"),document.querySelector("body").classList.add("dark"),t.classList.add("is-active")):t.dataset.actionValue=="light"?(localStorage.setItem("theme","light"),document.querySelector("body").classList.remove("auto"),document.querySelector("body").classList.remove("dark"),t.classList.add("is-active")):t.dataset.actionValue=="auto"&&(localStorage.setItem("theme","auto"),document.querySelector("body").classList.remove("dark"),document.querySelector("body").classList.add("auto"),t.classList.add("is-active")))})})}};new h({singleSelector:".post--single",articleSelector:".post--item",likeButtonSelctor:".like-btn",actionDomain:window.actionDomain});new c;new l({selector:".humane--time",timeFormat:window.timeFormat});})(); \ No newline at end of file +(() => { + // + window.addComment = function(v) { + var I, C, h, E = v.document, b = { commentReplyClass: "comment-reply-link", commentReplyTitleId: "reply-title", cancelReplyId: "cancel-comment-reply-link", commentFormId: "commentform", temporaryFormId: "wp-temp-form-div", parentIdFieldId: "comment_parent", postIdFieldId: "comment_post_ID" }, e = v.MutationObserver || v.WebKitMutationObserver || v.MozMutationObserver, r = "querySelector" in E && "addEventListener" in v, n = !!E.documentElement.dataset; + function t() { + d(), e && new e(o).observe(E.body, { childList: true, subtree: true }); + } + function d(e2) { + if (r && (I = g(b.cancelReplyId), C = g(b.commentFormId), I)) { + let t3 = function(e3) { + if ((e3.metaKey || e3.ctrlKey) && 13 === e3.keyCode) + return C.removeEventListener("keydown", t3), e3.preventDefault(), C.submit.click(), false; + }; + var t2 = t3; + I.addEventListener("touchstart", l), I.addEventListener("click", l); + C && C.addEventListener("keydown", t3); + for (var n2, d2 = function(e3) { + var t4 = b.commentReplyClass; + e3 && e3.childNodes || (e3 = E); + e3 = E.getElementsByClassName ? e3.getElementsByClassName(t4) : e3.querySelectorAll("." + t4); + return e3; + }(e2), o2 = 0, i = d2.length; o2 < i; o2++) + (n2 = d2[o2]).addEventListener("touchstart", a), n2.addEventListener("click", a); + } + } + function l(e2) { + var t2, n2, d2 = g(b.temporaryFormId); + d2 && h && (g(b.parentIdFieldId).value = "0", t2 = d2.textContent, d2.parentNode.replaceChild(h, d2), this.style.display = "none", n2 = (d2 = (d2 = g(b.commentReplyTitleId)) && d2.firstChild) && d2.nextSibling, d2 && d2.nodeType === Node.TEXT_NODE && t2 && (n2 && "A" === n2.nodeName && n2.id !== b.cancelReplyId && (n2.style.display = ""), d2.textContent = t2), e2.preventDefault()); + } + function a(e2) { + var t2 = g(b.commentReplyTitleId), t2 = t2 && t2.firstChild.textContent, n2 = this, d2 = m(n2, "belowelement"), o2 = m(n2, "commentid"), i = m(n2, "respondelement"), r2 = m(n2, "postid"), n2 = m(n2, "replyto") || t2; + d2 && o2 && i && r2 && false === v.addComment.moveForm(d2, o2, i, r2, n2) && e2.preventDefault(); + } + function o(e2) { + for (var t2 = e2.length; t2--; ) + if (e2[t2].addedNodes.length) + return void d(); + } + function m(e2, t2) { + return n ? e2.dataset[t2] : e2.getAttribute("data-" + t2); + } + function g(e2) { + return E.getElementById(e2); + } + return r && "loading" !== E.readyState ? t() : r && v.addEventListener("DOMContentLoaded", t, false), { init: d, moveForm: function(e2, t2, n2, d2, o2) { + var i, r2, l2, a2, m2, c, s, e2 = g(e2), n2 = (h = g(n2), g(b.parentIdFieldId)), y = g(b.postIdFieldId), p = g(b.commentReplyTitleId), u = (p = p && p.firstChild) && p.nextSibling; + if (e2 && h && n2) { + void 0 === o2 && (o2 = p && p.textContent), a2 = h, m2 = b.temporaryFormId, c = g(m2), s = (s = g(b.commentReplyTitleId)) ? s.firstChild.textContent : "", c || ((c = E.createElement("div")).id = m2, c.style.display = "none", c.textContent = s, a2.parentNode.insertBefore(c, a2)), d2 && y && (y.value = d2), n2.value = t2, I.style.display = "", e2.parentNode.insertBefore(h, e2.nextSibling), p && p.nodeType === Node.TEXT_NODE && (u && "A" === u.nodeName && u.id !== b.cancelReplyId && (u.style.display = "none"), p.textContent = o2), I.onclick = function() { + return false; + }; + try { + for (var f = 0; f < C.elements.length; f++) + if (i = C.elements[f], r2 = false, "getComputedStyle" in v ? l2 = v.getComputedStyle(i) : E.documentElement.currentStyle && (l2 = i.currentStyle), (i.offsetWidth <= 0 && i.offsetHeight <= 0 || "hidden" === l2.visibility) && (r2 = true), "hidden" !== i.type && !i.disabled && !r2) { + i.focus(); + break; + } + } catch (e3) { + } + return false; + } + } }; + }(window); + })(); + /*! This file is auto-generated */ + ; + (() => { + // ns-hugo:E:\OneDrive\桌面\suxiaoxiao\bigfa\bigfa.github.io\themes\farallon\assets\ts\utils.ts + var farallonHelper = class { + getCookie(t) { + if (0 < document.cookie.length) { + var e = document.cookie.indexOf(t + "="); + if (-1 != e) { + e = e + t.length + 1; + var n = document.cookie.indexOf(";", e); + return -1 == n && (n = document.cookie.length), document.cookie.substring(e, n); + } + } + return ""; + } + setCookie(t, e, n) { + var o = /* @__PURE__ */ new Date(); + o.setTime(o.getTime() + 24 * n * 60 * 60 * 1e3); + var i = "expires=" + o.toUTCString(); + document.cookie = t + "=" + e + ";" + i + ";path=/"; + } + showNotice(message, type = "success") { + const html = `
${message}
`; + document.querySelector("body").insertAdjacentHTML("beforeend", html); + document.querySelector(".notice--wrapper").classList.add("is-active"); + setTimeout(() => { + document.querySelector(".notice--wrapper").remove(); + }, 3e3); + } + }; + + // ns-hugo:E:\OneDrive\桌面\suxiaoxiao\bigfa\bigfa.github.io\themes\farallon\assets\ts\date.ts + var farallonDate = class { + selector; + timeFormat = { + second: "second ago", + seconds: "seconds ago", + minute: "minute ago", + minutes: "minutes ago", + hour: "hour ago", + hours: "hours ago", + day: "day ago", + days: "days ago", + week: "week ago", + weeks: "weeks ago", + month: "month ago", + months: "months ago", + year: "year ago", + years: "years ago" + }; + doms = []; + constructor(config) { + this.selector = config.selector; + if (config.timeFormat) { + this.timeFormat = config.timeFormat; + } + this.init(); + setTimeout(() => { + this.refresh(); + }, 1e3 * 5); + } + init() { + this.doms = Array.from(document.querySelectorAll(this.selector)); + this.doms.forEach((dom) => { + dom.innerText = this.humanize_time_ago( + dom.attributes["datetime"].value + ); + }); + } + humanize_time_ago(datetime) { + const time = new Date(datetime); + const between = Date.now() / 1e3 - Number(time.getTime() / 1e3); + if (between < 3600) { + return `${Math.ceil(between / 60)} ${Math.ceil(between / 60) == 1 ? this.timeFormat.second : this.timeFormat.seconds}`; + } else if (between < 86400) { + return `${Math.ceil(between / 3600)} ${Math.ceil(between / 3660) == 1 ? this.timeFormat.hour : this.timeFormat.hours}`; + } else if (between < 86400 * 30) { + return `${Math.ceil(between / 86400)} ${Math.ceil(between / 86400) == 1 ? this.timeFormat.day : this.timeFormat.days}`; + } else if (between < 86400 * 30 * 12) { + return `${Math.ceil(between / (86400 * 30))} ${Math.ceil(between / (86400 * 30)) == 1 ? this.timeFormat.month : this.timeFormat.months}`; + } else { + return time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate(); + } + } + refresh() { + this.doms.forEach((dom) => { + dom.innerText = this.humanize_time_ago( + dom.attributes["datetime"].value + ); + }); + } + }; + var date_default = farallonDate; + + // ns-hugo:E:\OneDrive\桌面\suxiaoxiao\bigfa\bigfa.github.io\themes\farallon\assets\ts\action.ts + var farallonActions = class extends farallonHelper { + singleSelector = ".post--single"; + likeButtonSelctor = ".like-btn"; + articleSelector = ".post--item"; + viewSelector = ".article--views"; + actionDomain; + text = ""; + likeButton = null; + post_id; + is_single = false; + constructor(config) { + super(); + this.singleSelector = config.singleSelector ?? this.singleSelector; + this.likeButtonSelctor = config.likeButtonSelctor ?? this.likeButtonSelctor; + this.articleSelector = config.articleSelector ?? this.articleSelector; + this.viewSelector = config.viewSelector ?? this.viewSelector; + this.actionDomain = config.actionDomain; + this.text = config.text ?? this.text; + this.is_single = document.querySelector(this.singleSelector) ? true : false; + if (this.is_single) { + const postSingle = document.querySelector( + this.singleSelector + ); + this.post_id = postSingle.dataset.id ?? ""; + this.initArticleLike(); + } + } + initArticleLike() { + this.likeButton = document.querySelector(this.likeButtonSelctor); + if (this.likeButton) { + fetch(this.actionDomain + "post/" + this.post_id + "/like").then( + (res) => { + res.json().then((data) => { + this.likeButton.querySelector( + ".count" + ).innerText = data.likes; + }); + } + ); + this.likeButton.addEventListener("click", () => { + this.handleLike(); + }); + if (this.getCookie("like_" + this.post_id)) { + this.likeButton.classList.add("is-active"); + } + } + } + handleLike() { + if (this.getCookie("like_" + this.post_id)) { + return this.showNotice("You have already liked this post"); + } + if (this.likeButton) { + const url = this.actionDomain + "post/" + this.post_id + "/like"; + fetch(url, { + method: "post" + }).then((response) => { + return response.json(); + }).then((data) => { + this.showNotice("Thanks for your like"); + const countElement = this.likeButton?.querySelector( + ".count" + ); + if (countElement) { + countElement.innerText = data.likes; + } + this.setCookie("like_" + this.post_id, "1", 1); + }); + this.likeButton?.classList.add("is-active"); + } + } + }; + var action_default = farallonActions; + + // + var farallonBase = class extends farallonHelper { + is_single = false; + post_id = 0; + is_archive = false; + VERSION = "0.4.1"; + like_btn; + selctor = ".like-btn"; + // @ts-ignore + actionDomain = window.actionDomain; + constructor() { + super(); + this.initCopyright(); + this.initThemeSwitch(); + this.initBack2Top(); + this.initSearch(); + } + initSearch() { + document.querySelector('[data-action="show-search"]').addEventListener("click", () => { + document.querySelector(".site--header__center .inner").classList.toggle("search--active"); + }); + } + initBack2Top() { + if (document.querySelector(".backToTop")) { + const backToTop = document.querySelector( + ".backToTop" + ); + window.addEventListener("scroll", () => { + const t = window.scrollY || window.pageYOffset; + t > 200 ? backToTop.classList.add("is-active") : backToTop.classList.remove("is-active"); + }); + backToTop.addEventListener("click", () => { + window.scrollTo({ top: 0, behavior: "smooth" }); + }); + } + } + initCopyright() { + const copyright = ``; + document.querySelector(".site--footer__content").insertAdjacentHTML("afterend", copyright); + document.querySelector(".icon--copryrights").addEventListener("click", () => { + document.querySelector(".site--footer__info").classList.toggle("active"); + }); + } + initThemeSwitch() { + const theme = localStorage.getItem("theme") ? localStorage.getItem("theme") : "auto"; + const html = `
+ + + + + + + + + + + + + + + + + + + + + + + + + +
`; + document.querySelector("body").insertAdjacentHTML("beforeend", html); + document.querySelectorAll(".fixed--theme span").forEach((item) => { + item.addEventListener("click", () => { + if (item.classList.contains("is-active")) + return; + document.querySelectorAll(".fixed--theme span").forEach((item2) => { + item2.classList.remove("is-active"); + }); + if (item.dataset.actionValue == "dark") { + localStorage.setItem("theme", "dark"); + document.querySelector("body").classList.remove("auto"); + document.querySelector("body").classList.add("dark"); + item.classList.add("is-active"); + } else if (item.dataset.actionValue == "light") { + localStorage.setItem("theme", "light"); + document.querySelector("body").classList.remove("auto"); + document.querySelector("body").classList.remove("dark"); + item.classList.add("is-active"); + } else if (item.dataset.actionValue == "auto") { + localStorage.setItem("theme", "auto"); + document.querySelector("body").classList.remove("dark"); + document.querySelector("body").classList.add("auto"); + item.classList.add("is-active"); + } + }); + }); + } + }; + new action_default({ + singleSelector: ".post--single", + articleSelector: ".post--item", + likeButtonSelctor: ".like-btn", + // @ts-ignore + actionDomain: window.actionDomain + }); + new farallonBase(); + new date_default({ + selector: ".humane--time", + //@ts-ignore + timeFormat: window.timeFormat + }); + })(); + \ No newline at end of file diff --git a/dist/js/bundle1.js b/dist/js/bundle1.js deleted file mode 100644 index 38641c9..0000000 --- a/dist/js/bundle1.js +++ /dev/null @@ -1,629 +0,0 @@ -(() => { - // - window.addComment = function(v) { - var I, C, h, E = v.document, b = { commentReplyClass: "comment-reply-link", commentReplyTitleId: "reply-title", cancelReplyId: "cancel-comment-reply-link", commentFormId: "commentform", temporaryFormId: "wp-temp-form-div", parentIdFieldId: "comment_parent", postIdFieldId: "comment_post_ID" }, e = v.MutationObserver || v.WebKitMutationObserver || v.MozMutationObserver, r = "querySelector" in E && "addEventListener" in v, n = !!E.documentElement.dataset; - function t() { - d(), e && new e(o).observe(E.body, { childList: true, subtree: true }); - } - function d(e2) { - if (r && (I = g(b.cancelReplyId), C = g(b.commentFormId), I)) { - let t3 = function(e3) { - if ((e3.metaKey || e3.ctrlKey) && 13 === e3.keyCode) - return C.removeEventListener("keydown", t3), e3.preventDefault(), C.submit.click(), false; - }; - var t2 = t3; - I.addEventListener("touchstart", l), I.addEventListener("click", l); - C && C.addEventListener("keydown", t3); - for (var n2, d2 = function(e3) { - var t4 = b.commentReplyClass; - e3 && e3.childNodes || (e3 = E); - e3 = E.getElementsByClassName ? e3.getElementsByClassName(t4) : e3.querySelectorAll("." + t4); - return e3; - }(e2), o2 = 0, i = d2.length; o2 < i; o2++) - (n2 = d2[o2]).addEventListener("touchstart", a), n2.addEventListener("click", a); - } - } - function l(e2) { - var t2, n2, d2 = g(b.temporaryFormId); - d2 && h && (g(b.parentIdFieldId).value = "0", t2 = d2.textContent, d2.parentNode.replaceChild(h, d2), this.style.display = "none", n2 = (d2 = (d2 = g(b.commentReplyTitleId)) && d2.firstChild) && d2.nextSibling, d2 && d2.nodeType === Node.TEXT_NODE && t2 && (n2 && "A" === n2.nodeName && n2.id !== b.cancelReplyId && (n2.style.display = ""), d2.textContent = t2), e2.preventDefault()); - } - function a(e2) { - var t2 = g(b.commentReplyTitleId), t2 = t2 && t2.firstChild.textContent, n2 = this, d2 = m(n2, "belowelement"), o2 = m(n2, "commentid"), i = m(n2, "respondelement"), r2 = m(n2, "postid"), n2 = m(n2, "replyto") || t2; - d2 && o2 && i && r2 && false === v.addComment.moveForm(d2, o2, i, r2, n2) && e2.preventDefault(); - } - function o(e2) { - for (var t2 = e2.length; t2--; ) - if (e2[t2].addedNodes.length) - return void d(); - } - function m(e2, t2) { - return n ? e2.dataset[t2] : e2.getAttribute("data-" + t2); - } - function g(e2) { - return E.getElementById(e2); - } - return r && "loading" !== E.readyState ? t() : r && v.addEventListener("DOMContentLoaded", t, false), { init: d, moveForm: function(e2, t2, n2, d2, o2) { - var i, r2, l2, a2, m2, c, s, e2 = g(e2), n2 = (h = g(n2), g(b.parentIdFieldId)), y = g(b.postIdFieldId), p = g(b.commentReplyTitleId), u = (p = p && p.firstChild) && p.nextSibling; - if (e2 && h && n2) { - void 0 === o2 && (o2 = p && p.textContent), a2 = h, m2 = b.temporaryFormId, c = g(m2), s = (s = g(b.commentReplyTitleId)) ? s.firstChild.textContent : "", c || ((c = E.createElement("div")).id = m2, c.style.display = "none", c.textContent = s, a2.parentNode.insertBefore(c, a2)), d2 && y && (y.value = d2), n2.value = t2, I.style.display = "", e2.parentNode.insertBefore(h, e2.nextSibling), p && p.nodeType === Node.TEXT_NODE && (u && "A" === u.nodeName && u.id !== b.cancelReplyId && (u.style.display = "none"), p.textContent = o2), I.onclick = function() { - return false; - }; - try { - for (var f = 0; f < C.elements.length; f++) - if (i = C.elements[f], r2 = false, "getComputedStyle" in v ? l2 = v.getComputedStyle(i) : E.documentElement.currentStyle && (l2 = i.currentStyle), (i.offsetWidth <= 0 && i.offsetHeight <= 0 || "hidden" === l2.visibility) && (r2 = true), "hidden" !== i.type && !i.disabled && !r2) { - i.focus(); - break; - } - } catch (e3) { - } - return false; - } - } }; - }(window); -})(); -/*! This file is auto-generated */ - -; -(() => { - // - var FARALLON_DOUBAN = class { - ver; - type; - finished; - paged; - genre_list; - subjects; - genre; - baseAPI = "https://node.wpista.com/v1/outer/"; - token; - constructor(config) { - this.ver = "1.0.1"; - this.type = "movie"; - this.finished = false; - this.paged = 1; - this.genre_list = []; - this.genre = []; - this.subjects = []; - this.token = config.token; - this._create(); - } - on(t, e, n) { - var a = document.querySelectorAll(e); - a.forEach((item) => { - item.addEventListener(t, n); - }); - } - _fetchGenres() { - document.querySelector(".db--genres").innerHTML = ""; - fetch( - this.baseAPI + "genres?token=" + this.token + "&type=" + this.type - ).then((response) => response.json()).then((t) => { - if (t.data.length) { - this.genre_list = t.data; - this._renderGenre(); - } - }); - } - _handleGenreClick() { - this.on("click", ".db--genreItem", (t) => { - const self = t.currentTarget; - if (self.classList.contains("is-active")) { - const index = this.genre.indexOf(self.innerText); - self.classList.remove("is-active"); - this.genre.splice(index, 1); - this.paged = 1; - this.finished = false; - this.subjects = []; - this._fetchData(); - return; - } - document.querySelector(".db--list").innerHTML = ""; - document.querySelector(".lds-ripple").classList.remove("u-hide"); - self.classList.add("is-active"); - this.genre.push(self.innerText); - this.paged = 1; - this.finished = false; - this.subjects = []; - this._fetchData(); - return; - }); - } - _renderGenre() { - document.querySelector(".db--genres").innerHTML = this.genre_list.map((item) => { - return `${item.name}`; - }).join(""); - this._handleGenreClick(); - } - _fetchData() { - fetch( - this.baseAPI + "faves?token=" + this.token + "&type=" + this.type + "&paged=" + this.paged + "&genre=" + JSON.stringify(this.genre) - ).then((response) => response.json()).then((t) => { - if (t.data.length) { - if (document.querySelector(".db--list").classList.contains("db--list__card")) { - this.subjects = [...this.subjects, ...t.data]; - this._randerDateTemplate(); - } else { - this.subjects = [...this.subjects, ...t.data]; - this._randerListTemplate(); - } - document.querySelector(".lds-ripple").classList.add("u-hide"); - } else { - this.finished = true; - document.querySelector(".lds-ripple").classList.add("u-hide"); - } - }); - } - _randerDateTemplate() { - const result = this.subjects.reduce((result2, item) => { - const date = new Date(item.create_time); - const year = date.getFullYear(); - const month = date.getMonth() + 1; - const key = `${year}-${month.toString().padStart(2, "0")}`; - if (Object.prototype.hasOwnProperty.call(result2, key)) { - result2[key].push(item); - } else { - result2[key] = [item]; - } - return result2; - }, {}); - let html = ``; - for (let key in result) { - const date = key.split("-"); - html += `
${date[1]}
${date[0]}
`; - html += result[key].map((movie) => { - return `
${movie.is_top250 ? 'Top 250' : ""}
${movie.douban_score > 0 ? '' + movie.douban_score : ""}${movie.year > 0 ? " \xB7 " + movie.year : ""}
`; - }).join(""); - html += `
`; - } - document.querySelector(".db--list").innerHTML = html; - } - _randerListTemplate() { - document.querySelector(".db--list").innerHTML = this.subjects.map((item) => { - return `
${item.is_top250 ? 'Top 250' : ""}
${item.create_time}
${item.douban_score > 0 ? '' + item.douban_score : ""}${item.year > 0 ? " \xB7 " + item.year : ""}
-
- `; - }).join(""); - } - _handleScroll() { - window.addEventListener("scroll", () => { - var t = window.scrollY || window.pageYOffset; - const moreElement = document.querySelector( - ".block-more" - ); - if (moreElement.offsetTop + -window.innerHeight < t && document.querySelector(".lds-ripple").classList.contains("u-hide") && !this.finished) { - document.querySelector(".lds-ripple").classList.remove("u-hide"); - this.paged++; - this._fetchData(); - } - }); - } - _handleNavClick() { - this.on("click", ".db--navItem", (t) => { - if (t.currentTarget.classList.contains("current")) - return; - this.genre = []; - this.type = t.currentTarget.dataset.type; - if (this.type != "book") { - this._fetchGenres(); - document.querySelector(".db--genres")?.classList.remove("u-hide"); - } else { - document.querySelector(".db--genres").classList.add("u-hide"); - } - document.querySelector(".db--list").innerHTML = ""; - document.querySelector(".lds-ripple").classList.remove("u-hide"); - document.querySelector(".db--navItem.current").classList.remove("current"); - const self = t.target; - self.classList.add("current"); - this.paged = 1; - this.finished = false; - this.subjects = []; - this._fetchData(); - }); - } - _create() { - if (document.querySelector(".db--container")) { - const container = document.querySelector( - ".db--container" - ); - if (container.dataset.token) { - this.token = container.dataset.token; - } else { - return; - } - const currentNavItem = document.querySelector( - ".db--navItem.current" - ); - if (currentNavItem instanceof HTMLElement) { - this.type = currentNavItem.dataset.type; - } - const currentType = document.querySelector( - ".db--list" - ); - if (currentType.dataset.type) - this.type = currentType.dataset.type; - if (this.type == "movie") { - document.querySelector(".db--genres").classList.remove("u-hide"); - } - this._fetchGenres(); - this._fetchData(); - this._handleScroll(); - this._handleNavClick(); - } - if (document.querySelector(".js-db")) { - document.querySelectorAll(".js-db").forEach((item) => { - const db = item; - const id = db.dataset.id; - const type = db.dataset.type; - const nodeParent = db.parentNode; - fetch( - // @ts-ignore - this.baseAPI + `${type}/${id}?token=${this.token}` - ).then((response) => { - response.json().then((t) => { - if (t.data) { - const data = t.data; - const node = document.createElement("div"); - node.classList.add("doulist-item"); - node.innerHTML = `
-
-
- -
${data.douban_score}
-
${data.card_subtitle}
-
-
`; - nodeParent.replaceWith(node); - } - }); - }); - }); - } - if (document.querySelector(".db--collection")) { - document.querySelectorAll(".db--collection").forEach((item) => { - this._fetchCollection(item); - }); - } - } - _fetchCollection(item) { - const type = item.dataset.style ? item.dataset.style : "card"; - fetch( - // @ts-ignore - obvInit.api + "v1/movies?type=" + item.dataset.type + "&paged=1&genre=&start_time=" + item.dataset.start + "&end_time=" + item.dataset.end - ).then((response) => response.json()).then((t) => { - if (t.length) { - if (type == "card") { - item.innerHTML += t.map((movie) => { - return `
-
-
Marked ${movie.create_time}
-
${movie.douban_score}
${movie.remark || movie.card_subtitle}
`; - }).join(""); - } else { - const result = t.reduce((result2, item2) => { - if (Object.prototype.hasOwnProperty.call( - result2, - item2.create_time - )) { - result2[item2.create_time].push(item2); - } else { - result2[item2.create_time] = [item2]; - } - return result2; - }, {}); - let html = ``; - for (let key in result) { - html += `
${key}
`; - html += result[key].map((movie) => { - return `
- -
- -
${movie.douban_score}
- ${movie.remark || movie.card_subtitle} -
-
`; - }).join(""); - html += `
`; - } - item.innerHTML = html; - } - } - }); - } - }; - new FARALLON_DOUBAN({ - // @ts-ignore - token: window.WPD_TOKEN - }); -})(); - -; -(() => { - // ns-hugo:E:\OneDrive\桌面\suxiaoxiao\bigfa\bigfa.github.io\themes\farallon\assets\ts\utils.ts - var farallonHelper = class { - getCookie(t) { - if (0 < document.cookie.length) { - var e = document.cookie.indexOf(t + "="); - if (-1 != e) { - e = e + t.length + 1; - var n = document.cookie.indexOf(";", e); - return -1 == n && (n = document.cookie.length), document.cookie.substring(e, n); - } - } - return ""; - } - setCookie(t, e, n) { - var o = /* @__PURE__ */ new Date(); - o.setTime(o.getTime() + 24 * n * 60 * 60 * 1e3); - var i = "expires=" + o.toUTCString(); - document.cookie = t + "=" + e + ";" + i + ";path=/"; - } - showNotice(message, type = "success") { - const html = `
${message}
`; - document.querySelector("body").insertAdjacentHTML("beforeend", html); - document.querySelector(".notice--wrapper").classList.add("is-active"); - setTimeout(() => { - document.querySelector(".notice--wrapper").remove(); - }, 3e3); - } - }; - - // ns-hugo:E:\OneDrive\桌面\suxiaoxiao\bigfa\bigfa.github.io\themes\farallon\assets\ts\date.ts - var farallonDate = class { - selector; - timeFormat = { - second: "second ago", - seconds: "seconds ago", - minute: "minute ago", - minutes: "minutes ago", - hour: "hour ago", - hours: "hours ago", - day: "day ago", - days: "days ago", - week: "week ago", - weeks: "weeks ago", - month: "month ago", - months: "months ago", - year: "year ago", - years: "years ago" - }; - doms = []; - constructor(config) { - this.selector = config.selector; - if (config.timeFormat) { - this.timeFormat = config.timeFormat; - } - this.init(); - setTimeout(() => { - this.refresh(); - }, 1e3 * 5); - } - init() { - this.doms = Array.from(document.querySelectorAll(this.selector)); - this.doms.forEach((dom) => { - dom.innerText = this.humanize_time_ago( - dom.attributes["datetime"].value - ); - }); - } - humanize_time_ago(datetime) { - const time = new Date(datetime); - const between = Date.now() / 1e3 - Number(time.getTime() / 1e3); - if (between < 3600) { - return `${Math.ceil(between / 60)} ${Math.ceil(between / 60) == 1 ? this.timeFormat.second : this.timeFormat.seconds}`; - } else if (between < 86400) { - return `${Math.ceil(between / 3600)} ${Math.ceil(between / 3660) == 1 ? this.timeFormat.hour : this.timeFormat.hours}`; - } else if (between < 86400 * 30) { - return `${Math.ceil(between / 86400)} ${Math.ceil(between / 86400) == 1 ? this.timeFormat.day : this.timeFormat.days}`; - } else if (between < 86400 * 30 * 12) { - return `${Math.ceil(between / (86400 * 30))} ${Math.ceil(between / (86400 * 30)) == 1 ? this.timeFormat.month : this.timeFormat.months}`; - } else { - return time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate(); - } - } - refresh() { - this.doms.forEach((dom) => { - dom.innerText = this.humanize_time_ago( - dom.attributes["datetime"].value - ); - }); - } - }; - var date_default = farallonDate; - - // ns-hugo:E:\OneDrive\桌面\suxiaoxiao\bigfa\bigfa.github.io\themes\farallon\assets\ts\action.ts - var farallonActions = class extends farallonHelper { - singleSelector = ".post--single"; - likeButtonSelctor = ".like-btn"; - articleSelector = ".post--item"; - viewSelector = ".article--views"; - actionDomain; - text = ""; - likeButton = null; - post_id; - is_single = false; - constructor(config) { - super(); - this.singleSelector = config.singleSelector ?? this.singleSelector; - this.likeButtonSelctor = config.likeButtonSelctor ?? this.likeButtonSelctor; - this.articleSelector = config.articleSelector ?? this.articleSelector; - this.viewSelector = config.viewSelector ?? this.viewSelector; - this.actionDomain = config.actionDomain; - this.text = config.text ?? this.text; - this.is_single = document.querySelector(this.singleSelector) ? true : false; - if (this.is_single) { - const postSingle = document.querySelector( - this.singleSelector - ); - this.post_id = postSingle.dataset.id ?? ""; - this.initArticleLike(); - } - } - initArticleLike() { - this.likeButton = document.querySelector(this.likeButtonSelctor); - if (this.likeButton) { - fetch(this.actionDomain + "post/" + this.post_id + "/like").then( - (res) => { - res.json().then((data) => { - this.likeButton.querySelector( - ".count" - ).innerText = data.likes; - }); - } - ); - this.likeButton.addEventListener("click", () => { - this.handleLike(); - }); - if (this.getCookie("like_" + this.post_id)) { - this.likeButton.classList.add("is-active"); - } - } - } - handleLike() { - if (this.getCookie("like_" + this.post_id)) { - return this.showNotice("You have already liked this post"); - } - if (this.likeButton) { - const url = this.actionDomain + "post/" + this.post_id + "/like"; - fetch(url, { - method: "post" - }).then((response) => { - return response.json(); - }).then((data) => { - this.showNotice("Thanks for your like"); - const countElement = this.likeButton?.querySelector( - ".count" - ); - if (countElement) { - countElement.innerText = data.likes; - } - this.setCookie("like_" + this.post_id, "1", 1); - }); - this.likeButton?.classList.add("is-active"); - } - } - }; - var action_default = farallonActions; - - // - var farallonBase = class extends farallonHelper { - is_single = false; - post_id = 0; - is_archive = false; - VERSION = "0.4.1"; - like_btn; - selctor = ".like-btn"; - // @ts-ignore - actionDomain = window.actionDomain; - constructor() { - super(); - this.initCopyright(); - this.initThemeSwitch(); - this.initBack2Top(); - this.initSearch(); - } - initSearch() { - document.querySelector('[data-action="show-search"]').addEventListener("click", () => { - document.querySelector(".site--header__center .inner").classList.toggle("search--active"); - }); - } - initBack2Top() { - if (document.querySelector(".backToTop")) { - const backToTop = document.querySelector( - ".backToTop" - ); - window.addEventListener("scroll", () => { - const t = window.scrollY || window.pageYOffset; - t > 200 ? backToTop.classList.add("is-active") : backToTop.classList.remove("is-active"); - }); - backToTop.addEventListener("click", () => { - window.scrollTo({ top: 0, behavior: "smooth" }); - }); - } - } - initCopyright() { - const copyright = ``; - document.querySelector(".site--footer__content").insertAdjacentHTML("afterend", copyright); - document.querySelector(".icon--copryrights").addEventListener("click", () => { - document.querySelector(".site--footer__info").classList.toggle("active"); - }); - } - initThemeSwitch() { - const theme = localStorage.getItem("theme") ? localStorage.getItem("theme") : "auto"; - const html = `
- - - - - - - - - - - - - - - - - - - - - - - - - -
`; - document.querySelector("body").insertAdjacentHTML("beforeend", html); - document.querySelectorAll(".fixed--theme span").forEach((item) => { - item.addEventListener("click", () => { - if (item.classList.contains("is-active")) - return; - document.querySelectorAll(".fixed--theme span").forEach((item2) => { - item2.classList.remove("is-active"); - }); - if (item.dataset.actionValue == "dark") { - localStorage.setItem("theme", "dark"); - document.querySelector("body").classList.remove("auto"); - document.querySelector("body").classList.add("dark"); - item.classList.add("is-active"); - } else if (item.dataset.actionValue == "light") { - localStorage.setItem("theme", "light"); - document.querySelector("body").classList.remove("auto"); - document.querySelector("body").classList.remove("dark"); - item.classList.add("is-active"); - } else if (item.dataset.actionValue == "auto") { - localStorage.setItem("theme", "auto"); - document.querySelector("body").classList.remove("dark"); - document.querySelector("body").classList.add("auto"); - item.classList.add("is-active"); - } - }); - }); - } - }; - new action_default({ - singleSelector: ".post--single", - articleSelector: ".post--item", - likeButtonSelctor: ".like-btn", - // @ts-ignore - actionDomain: window.actionDomain - }); - new farallonBase(); - new date_default({ - selector: ".humane--time", - //@ts-ignore - timeFormat: window.timeFormat - }); -})(); diff --git a/dist/js/prism.js b/dist/js/prism.js deleted file mode 100644 index e00963b..0000000 --- a/dist/js/prism.js +++ /dev/null @@ -1,9 +0,0 @@ -/* PrismJS 1.29.0 -https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript&plugins=highlight-keywords+autoloader */ -var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(e){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof i?new i(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&").replace(/=g.reach);A+=w.value.length,w=w.next){var E=w.value;if(n.length>e.length)return;if(!(E instanceof i)){var P,L=1;if(y){if(!(P=l(b,A,e,m))||P.index>=e.length)break;var S=P.index,O=P.index+P[0].length,j=A;for(j+=w.value.length;S>=j;)j+=(w=w.next).value.length;if(A=j-=w.value.length,w.value instanceof i)continue;for(var C=w;C!==n.tail&&(jg.reach&&(g.reach=W);var z=w.prev;if(_&&(z=u(n,z,_),A+=_.length),c(n,z,L),w=u(n,z,new i(f,p?a.tokenize(N,p):N,k,N)),M&&u(n,w,M),L>1){var I={cause:f+","+d,reach:W};o(e,n,t,w.prev,A,I),g&&I.reach>g.reach&&(g.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function u(e,n,t){var r=n.next,a={value:t,prev:n,next:r};return n.next=a,r.prev=a,e.length++,a}function c(e,n,t){for(var r=n.next,a=0;a"+i.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(n){var t=JSON.parse(n.data),r=t.language,i=t.code,l=t.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),l&&e.close()}),!1),a):a;var g=a.util.currentScript();function f(){a.manual||a.highlightAll()}if(g&&(a.filename=g.src,g.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&g&&g.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return a}(_self);"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism); -Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(a,e){var s={};s["language-"+e]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[e]},s.cdata=/^$/i;var t={"included-cdata":{pattern://i,inside:s}};t["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var n={};n[a]={pattern:RegExp("(<__[^>]*>)(?:))*\\]\\]>|(?!)".replace(/__/g,(function(){return a})),"i"),lookbehind:!0,greedy:!0,inside:t},Prism.languages.insertBefore("markup","cdata",n)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(a,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp("(^|[\"'\\s])(?:"+a+")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))","i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml; -!function(s){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;s.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:[^;{\\s\"']|\\s+(?!\\s)|"+e.source+")*?(?:;|(?=\\s*\\{))"),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|(?:[^\\\\\r\n()\"']|\\\\[^])*)\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},s.languages.css.atrule.inside.rest=s.languages.css;var t=s.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Prism); -Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}; -Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp("(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp("((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)/(?:(?:\\[(?:[^\\]\\\\\r\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|/\\*(?:[^*]|\\*(?!/))*\\*/)*(?:$|[\r\n,.;:})\\]]|//))"),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)","javascript")),Prism.languages.js=Prism.languages.javascript; -"undefined"!=typeof Prism&&Prism.hooks.add("wrap",(function(e){"keyword"===e.type&&e.classes.push("keyword-"+e.content)})); -!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e={javascript:"clike",actionscript:"javascript",apex:["clike","sql"],arduino:"cpp",aspnet:["markup","csharp"],birb:"clike",bison:"c",c:"clike",csharp:"clike",cpp:"c",cfscript:"clike",chaiscript:["clike","cpp"],cilkc:"c",cilkcpp:"cpp",coffeescript:"javascript",crystal:"ruby","css-extras":"css",d:"clike",dart:"clike",django:"markup-templating",ejs:["javascript","markup-templating"],etlua:["lua","markup-templating"],erb:["ruby","markup-templating"],fsharp:"clike","firestore-security-rules":"clike",flow:"javascript",ftl:"markup-templating",gml:"clike",glsl:"c",go:"clike",gradle:"clike",groovy:"clike",haml:"ruby",handlebars:"markup-templating",haxe:"clike",hlsl:"c",idris:"haskell",java:"clike",javadoc:["markup","java","javadoclike"],jolie:"clike",jsdoc:["javascript","javadoclike","typescript"],"js-extras":"javascript",json5:"json",jsonp:"json","js-templates":"javascript",kotlin:"clike",latte:["clike","markup-templating","php"],less:"css",lilypond:"scheme",liquid:"markup-templating",markdown:"markup","markup-templating":"markup",mongodb:"javascript",n4js:"javascript",objectivec:"c",opencl:"c",parser:"markup",php:"markup-templating",phpdoc:["php","javadoclike"],"php-extras":"php",plsql:"sql",processing:"clike",protobuf:"clike",pug:["markup","javascript"],purebasic:"clike",purescript:"haskell",qsharp:"clike",qml:"javascript",qore:"clike",racket:"scheme",cshtml:["markup","csharp"],jsx:["markup","javascript"],tsx:["jsx","typescript"],reason:"clike",ruby:"clike",sass:"css",scss:"css",scala:"java","shell-session":"bash",smarty:"markup-templating",solidity:"clike",soy:"markup-templating",sparql:"turtle",sqf:"clike",squirrel:"clike",stata:["mata","java","python"],"t4-cs":["t4-templating","csharp"],"t4-vb":["t4-templating","vbnet"],tap:"yaml",tt2:["clike","markup-templating"],textile:"markup",twig:"markup-templating",typescript:"javascript",v:"clike",vala:"clike",vbnet:"basic",velocity:"markup",wiki:"markup",xeora:"markup","xml-doc":"markup",xquery:"markup"},a={html:"markup",xml:"markup",svg:"markup",mathml:"markup",ssml:"markup",atom:"markup",rss:"markup",js:"javascript",g4:"antlr4",ino:"arduino","arm-asm":"armasm",art:"arturo",adoc:"asciidoc",avs:"avisynth",avdl:"avro-idl",gawk:"awk",sh:"bash",shell:"bash",shortcode:"bbcode",rbnf:"bnf",oscript:"bsl",cs:"csharp",dotnet:"csharp",cfc:"cfscript","cilk-c":"cilkc","cilk-cpp":"cilkcpp",cilk:"cilkcpp",coffee:"coffeescript",conc:"concurnas",jinja2:"django","dns-zone":"dns-zone-file",dockerfile:"docker",gv:"dot",eta:"ejs",xlsx:"excel-formula",xls:"excel-formula",gamemakerlanguage:"gml",po:"gettext",gni:"gn",ld:"linker-script","go-mod":"go-module",hbs:"handlebars",mustache:"handlebars",hs:"haskell",idr:"idris",gitignore:"ignore",hgignore:"ignore",npmignore:"ignore",webmanifest:"json",kt:"kotlin",kts:"kotlin",kum:"kumir",tex:"latex",context:"latex",ly:"lilypond",emacs:"lisp",elisp:"lisp","emacs-lisp":"lisp",md:"markdown",moon:"moonscript",n4jsd:"n4js",nani:"naniscript",objc:"objectivec",qasm:"openqasm",objectpascal:"pascal",px:"pcaxis",pcode:"peoplecode",plantuml:"plant-uml",pq:"powerquery",mscript:"powerquery",pbfasm:"purebasic",purs:"purescript",py:"python",qs:"qsharp",rkt:"racket",razor:"cshtml",rpy:"renpy",res:"rescript",robot:"robotframework",rb:"ruby","sh-session":"shell-session",shellsession:"shell-session",smlnj:"sml",sol:"solidity",sln:"solution-file",rq:"sparql",sclang:"supercollider",t4:"t4-cs",trickle:"tremor",troy:"tremor",trig:"turtle",ts:"typescript",tsconfig:"typoscript",uscript:"unrealscript",uc:"unrealscript",url:"uri",vb:"visual-basic",vba:"visual-basic",webidl:"web-idl",mathematica:"wolfram",nb:"wolfram",wl:"wolfram",xeoracube:"xeora",yml:"yaml"},r={},s="components/",i=Prism.util.currentScript();if(i){var t=/\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,c=/(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,l=i.getAttribute("data-autoloader-path");if(null!=l)s=l.trim().replace(/\/?$/,"/");else{var p=i.src;t.test(p)?s=p.replace(t,"components/"):c.test(p)&&(s=p.replace(c,"$1components/"))}}var n=Prism.plugins.autoloader={languages_path:s,use_minified:!0,loadLanguages:m};Prism.hooks.add("complete",(function(e){var a=e.element,r=e.language;if(a&&r&&"none"!==r){var s=function(e){var a=(e.getAttribute("data-dependencies")||"").trim();if(!a){var r=e.parentElement;r&&"pre"===r.tagName.toLowerCase()&&(a=(r.getAttribute("data-dependencies")||"").trim())}return a?a.split(/\s*,\s*/g):[]}(a);/^diff-./i.test(r)?(s.push("diff"),s.push(r.substr("diff-".length))):s.push(r),s.every(o)||m(s,(function(){Prism.highlightElement(a)}))}}))}function o(e){if(e.indexOf("!")>=0)return!1;if((e=a[e]||e)in Prism.languages)return!0;var s=r[e];return s&&!s.error&&!1===s.loading}function m(s,i,t){"string"==typeof s&&(s=[s]);var c=s.length,l=0,p=!1;function k(){p||++l===c&&i&&i(s)}0!==c?s.forEach((function(s){!function(s,i,t){var c=s.indexOf("!")>=0;function l(){var e=r[s];e||(e=r[s]={callbacks:[]}),e.callbacks.push({success:i,error:t}),!c&&o(s)?u(s,"success"):!c&&e.error?u(s,"error"):!c&&e.loading||(e.loading=!0,e.error=!1,function(e,a,r){var s=document.createElement("script");s.src=e,s.async=!0,s.onload=function(){document.body.removeChild(s),a&&a()},s.onerror=function(){document.body.removeChild(s),r&&r()},document.body.appendChild(s)}(function(e){return n.languages_path+"prism-"+e+(n.use_minified?".min":"")+".js"}(s),(function(){e.loading=!1,u(s,"success")}),(function(){e.loading=!1,e.error=!0,u(s,"error")})))}s=s.replace("!","");var p=e[s=a[s]||s];p&&p.length?m(p,l,t):l()}(s,k,(function(){p||(p=!0,t&&t(s))}))})):i&&setTimeout(i,0)}function u(e,a){if(r[e]){for(var s=r[e].callbacks,i=0,t=s.length;i= g.reach); A += w.value.length, w = w.next) { var E = w.value; if (n.length > e.length) return; if (!(E instanceof i)) { var P, L = 1; if (y) { if (!(P = l(b, A, e, m)) || P.index >= e.length) break; var S = P.index, O = P.index + P[0].length, j = A; for (j += w.value.length; S >= j;)j += (w = w.next).value.length; if (A = j -= w.value.length, w.value instanceof i) continue; for (var C = w; C !== n.tail && (j < O || "string" == typeof C.value); C = C.next)L++, j += C.value.length; L--, E = e.slice(A, j), P.index -= A } else if (!(P = l(b, 0, E, m))) continue; S = P.index; var N = P[0], _ = E.slice(0, S), M = E.slice(S + N.length), W = A + E.length; g && W > g.reach && (g.reach = W); var z = w.prev; if (_ && (z = u(n, z, _), A += _.length), c(n, z, L), w = u(n, z, new i(f, p ? a.tokenize(N, p) : N, k, N)), M && u(n, w, M), L > 1) { var I = { cause: f + "," + d, reach: W }; o(e, n, t, w.prev, A, I), g && I.reach > g.reach && (g.reach = I.reach) } } } } } } function s() { var e = { value: null, prev: null, next: null }, n = { value: null, prev: e, next: null }; e.next = n, this.head = e, this.tail = n, this.length = 0 } function u(e, n, t) { var r = n.next, a = { value: t, prev: n, next: r }; return n.next = a, r.prev = a, e.length++, a } function c(e, n, t) { for (var r = n.next, a = 0; a < t && r !== e.tail; a++)r = r.next; n.next = r, r.prev = n, e.length -= a } if (e.Prism = a, i.stringify = function e(n, t) { if ("string" == typeof n) return n; if (Array.isArray(n)) { var r = ""; return n.forEach((function (n) { r += e(n, t) })), r } var i = { type: n.type, content: e(n.content, t), tag: "span", classes: ["token", n.type], attributes: {}, language: t }, l = n.alias; l && (Array.isArray(l) ? Array.prototype.push.apply(i.classes, l) : i.classes.push(l)), a.hooks.run("wrap", i); var o = ""; for (var s in i.attributes) o += " " + s + '="' + (i.attributes[s] || "").replace(/"/g, """) + '"'; return "<" + i.tag + ' class="' + i.classes.join(" ") + '"' + o + ">" + i.content + "" }, !e.document) return e.addEventListener ? (a.disableWorkerMessageHandler || e.addEventListener("message", (function (n) { var t = JSON.parse(n.data), r = t.language, i = t.code, l = t.immediateClose; e.postMessage(a.highlight(i, a.languages[r], r)), l && e.close() }), !1), a) : a; var g = a.util.currentScript(); function f() { a.manual || a.highlightAll() } if (g && (a.filename = g.src, g.hasAttribute("data-manual") && (a.manual = !0)), !a.manual) { var h = document.readyState; "loading" === h || "interactive" === h && g && g.defer ? document.addEventListener("DOMContentLoaded", f) : window.requestAnimationFrame ? window.requestAnimationFrame(f) : window.setTimeout(f, 16) } return a }(_self); "undefined" != typeof module && module.exports && (module.exports = Prism), "undefined" != typeof global && (global.Prism = Prism); -Prism.languages.markup = { comment: { pattern: //, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: //i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity, Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup, Prism.hooks.add("wrap", (function (a) { "entity" === a.type && (a.attributes.title = a.content.replace(/&/, "&")) })), Object.defineProperty(Prism.languages.markup.tag, "addInlined", { value: function (a, e) { var s = {}; s["language-" + e] = { pattern: /(^$)/i, lookbehind: !0, inside: Prism.languages[e] }, s.cdata = /^$/i; var t = { "included-cdata": { pattern: //i, inside: s } }; t["language-" + e] = { pattern: /[\s\S]+/, inside: Prism.languages[e] }; var n = {}; n[a] = { pattern: RegExp("(<__[^>]*>)(?:))*\\]\\]>|(?!)".replace(/__/g, (function () { return a })), "i"), lookbehind: !0, greedy: !0, inside: t }, Prism.languages.insertBefore("markup", "cdata", n) } }), Object.defineProperty(Prism.languages.markup.tag, "addAttribute", { value: function (a, e) { Prism.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp("(^|[\"'\\s])(?:" + a + ")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))", "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [e, "language-" + e], inside: Prism.languages[e] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } }) } }), Prism.languages.html = Prism.languages.markup, Prism.languages.mathml = Prism.languages.markup, Prism.languages.svg = Prism.languages.markup, Prism.languages.xml = Prism.languages.extend("markup", {}), Prism.languages.ssml = Prism.languages.xml, Prism.languages.atom = Prism.languages.xml, Prism.languages.rss = Prism.languages.xml; -!function (s) { var e = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/; s.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:[^;{\\s\"']|\\s+(?!\\s)|" + e.source + ")*?(?:;|(?=\\s*\\{))"), inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + e.source + "|(?:[^\\\\\r\n()\"']|\\\\[^])*)\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + e.source + "$"), alias: "url" } } }, selector: { pattern: RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + e.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: e, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, s.languages.css.atrule.inside.rest = s.languages.css; var t = s.languages.markup; t && (t.tag.addInlined("style", "css"), t.tag.addAttribute("style", "css")) }(Prism); -Prism.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }; -Prism.languages.javascript = Prism.languages.extend("clike", { "class-name": [Prism.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp("(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, Prism.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp("((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)/(?:(?:\\[(?:[^\\]\\\\\r\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|/\\*(?:[^*]|\\*(?!/))*\\*/)*(?:$|[\r\n,.;:})\\]]|//))"), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: Prism.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: Prism.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: Prism.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: Prism.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: Prism.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), Prism.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: Prism.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), Prism.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)", "javascript")), Prism.languages.js = Prism.languages.javascript; -!function (e) { function n(e, n) { return e.replace(/<<(\d+)>>/g, (function (e, s) { return "(?:" + n[+s] + ")" })) } function s(e, s, a) { return RegExp(n(e, s), a || "") } function a(e, n) { for (var s = 0; s < n; s++)e = e.replace(/<>/g, (function () { return "(?:" + e + ")" })); return e.replace(/<>/g, "[^\\s\\S]") } var t = "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void", r = "class enum interface record struct", i = "add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)", o = "abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"; function l(e) { return "\\b(?:" + e.trim().replace(/ /g, "|") + ")\\b" } var d = l(r), p = RegExp(l(t + " " + r + " " + i + " " + o)), c = l(r + " " + i + " " + o), u = l(t + " " + r + " " + o), g = a("<(?:[^<>;=+\\-*/%&|^]|<>)*>", 2), b = a("\\((?:[^()]|<>)*\\)", 2), h = "@?\\b[A-Za-z_]\\w*\\b", f = n("<<0>>(?:\\s*<<1>>)?", [h, g]), m = n("(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*", [c, f]), k = "\\[\\s*(?:,\\s*)*\\]", y = n("<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?", [m, k]), w = n("[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>", [g, b, k]), v = n("\\(<<0>>+(?:,<<0>>+)+\\)", [w]), x = n("(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?", [v, m, k]), $ = { keyword: p, punctuation: /[<>()?,.:[\]]/ }, _ = "'(?:[^\r\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'", B = '"(?:\\\\.|[^\\\\"\r\n])*"'; e.languages.csharp = e.languages.extend("clike", { string: [{ pattern: s("(^|[^$\\\\])<<0>>", ['@"(?:""|\\\\[^]|[^\\\\"])*"(?!")']), lookbehind: !0, greedy: !0 }, { pattern: s("(^|[^@$\\\\])<<0>>", [B]), lookbehind: !0, greedy: !0 }], "class-name": [{ pattern: s("(\\busing\\s+static\\s+)<<0>>(?=\\s*;)", [m]), lookbehind: !0, inside: $ }, { pattern: s("(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)", [h, x]), lookbehind: !0, inside: $ }, { pattern: s("(\\busing\\s+)<<0>>(?=\\s*=)", [h]), lookbehind: !0 }, { pattern: s("(\\b<<0>>\\s+)<<1>>", [d, f]), lookbehind: !0, inside: $ }, { pattern: s("(\\bcatch\\s*\\(\\s*)<<0>>", [m]), lookbehind: !0, inside: $ }, { pattern: s("(\\bwhere\\s+)<<0>>", [h]), lookbehind: !0 }, { pattern: s("(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>", [y]), lookbehind: !0, inside: $ }, { pattern: s("\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))", [x, u, h]), inside: $ }], keyword: p, number: /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i, operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/, punctuation: /\?\.?|::|[{}[\];(),.:]/ }), e.languages.insertBefore("csharp", "number", { range: { pattern: /\.\./, alias: "operator" } }), e.languages.insertBefore("csharp", "punctuation", { "named-parameter": { pattern: s("([(,]\\s*)<<0>>(?=\\s*:)", [h]), lookbehind: !0, alias: "punctuation" } }), e.languages.insertBefore("csharp", "class-name", { namespace: { pattern: s("(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])", [h]), lookbehind: !0, inside: { punctuation: /\./ } }, "type-expression": { pattern: s("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))", [b]), lookbehind: !0, alias: "class-name", inside: $ }, "return-type": { pattern: s("<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [x, m]), inside: $, alias: "class-name" }, "constructor-invocation": { pattern: s("(\\bnew\\s+)<<0>>(?=\\s*[[({])", [x]), lookbehind: !0, inside: $, alias: "class-name" }, "generic-method": { pattern: s("<<0>>\\s*<<1>>(?=\\s*\\()", [h, g]), inside: { function: s("^<<0>>", [h]), generic: { pattern: RegExp(g), alias: "class-name", inside: $ } } }, "type-list": { pattern: s("\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))", [d, f, h, x, p.source, b, "\\bnew\\s*\\(\\s*\\)"]), lookbehind: !0, inside: { "record-arguments": { pattern: s("(^(?!new\\s*\\()<<0>>\\s*)<<1>>", [f, b]), lookbehind: !0, greedy: !0, inside: e.languages.csharp }, keyword: p, "class-name": { pattern: RegExp(x), greedy: !0, inside: $ }, punctuation: /[,()]/ } }, preprocessor: { pattern: /(^[\t ]*)#.*/m, lookbehind: !0, alias: "property", inside: { directive: { pattern: /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/, lookbehind: !0, alias: "keyword" } } } }); var E = B + "|" + _, R = n("/(?![*/])|//[^\r\n]*[\r\n]|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>", [E]), z = a(n("[^\"'/()]|<<0>>|\\(<>*\\)", [R]), 2), S = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", j = n("<<0>>(?:\\s*\\(<<1>>*\\))?", [m, z]); e.languages.insertBefore("csharp", "class-name", { attribute: { pattern: s("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])", [S, j]), lookbehind: !0, greedy: !0, inside: { target: { pattern: s("^<<0>>(?=\\s*:)", [S]), alias: "keyword" }, "attribute-arguments": { pattern: s("\\(<<0>>*\\)", [z]), inside: e.languages.csharp }, "class-name": { pattern: RegExp(m), inside: { punctuation: /\./ } }, punctuation: /[:,]/ } } }); var A = ":[^}\r\n]+", F = a(n("[^\"'/()]|<<0>>|\\(<>*\\)", [R]), 2), P = n("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [F, A]), U = a(n("[^\"'/()]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>|\\(<>*\\)", [E]), 2), Z = n("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [U, A]); function q(n, a) { return { interpolation: { pattern: s("((?:^|[^{])(?:\\{\\{)*)<<0>>", [n]), lookbehind: !0, inside: { "format-string": { pattern: s("(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)", [a, A]), lookbehind: !0, inside: { punctuation: /^:/ } }, punctuation: /^\{|\}$/, expression: { pattern: /[\s\S]+/, alias: "language-csharp", inside: e.languages.csharp } } }, string: /[\s\S]+/ } } e.languages.insertBefore("csharp", "string", { "interpolation-string": [{ pattern: s('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[^]|\\{\\{|<<0>>|[^\\\\{"])*"', [P]), lookbehind: !0, greedy: !0, inside: q(P, F) }, { pattern: s('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"', [Z]), lookbehind: !0, greedy: !0, inside: q(Z, U) }], char: { pattern: RegExp(_), greedy: !0 } }), e.languages.dotnet = e.languages.cs = e.languages.csharp }(Prism); -Prism.languages.aspnet = Prism.languages.extend("markup", { "page-directive": { pattern: /<%\s*@.*%>/, alias: "tag", inside: { "page-directive": { pattern: /<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i, alias: "tag" }, rest: Prism.languages.markup.tag.inside } }, directive: { pattern: /<%.*%>/, alias: "tag", inside: { directive: { pattern: /<%\s*?[$=%#:]{0,2}|%>/, alias: "tag" }, rest: Prism.languages.csharp } } }), Prism.languages.aspnet.tag.pattern = /<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/, Prism.languages.insertBefore("inside", "punctuation", { directive: Prism.languages.aspnet.directive }, Prism.languages.aspnet.tag.inside["attr-value"]), Prism.languages.insertBefore("aspnet", "comment", { "asp-comment": { pattern: /<%--[\s\S]*?--%>/, alias: ["asp", "comment"] } }), Prism.languages.insertBefore("aspnet", Prism.languages.javascript ? "script" : "tag", { "asp-script": { pattern: /(]*>)[\s\S]*?(?=<\/script>)/i, lookbehind: !0, alias: ["asp", "script"], inside: Prism.languages.csharp || {} } }); -Prism.languages.c = Prism.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: !0 }, keyword: /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), Prism.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), Prism.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: !0, greedy: !0, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 }, Prism.languages.c.string], char: Prism.languages.c.char, comment: Prism.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: !0, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: !0, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: Prism.languages.c } } } }), Prism.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete Prism.languages.c.boolean; -!function (e) { var t = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, n = "\\b(?!)\\w+(?:\\s*\\.\\s*\\w+)*\\b".replace(//g, (function () { return t.source })); e.languages.cpp = e.languages.extend("c", { "class-name": [{ pattern: RegExp("(\\b(?:class|concept|enum|struct|typename)\\s+)(?!)\\w+".replace(//g, (function () { return t.source }))), lookbehind: !0 }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: t, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: !0 }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:false|true)\b/ }), e.languages.insertBefore("cpp", "string", { module: { pattern: RegExp('(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\r\n|[^])|[^"\\\\\r\n])*"|<[^<>\r\n]*>|' + "(?:\\s*:\\s*)?|:\\s*".replace(//g, (function () { return n })) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]) }(Prism); -!function (e) { var a, n = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/; e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: a = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp("\\[(?:[^[\\]\"']|" + n.source + ")*\\]"), greedy: !0, inside: { punctuation: /^\[|\]$/, "case-sensitivity": { pattern: /(\s)[si]$/i, lookbehind: !0, alias: "keyword" }, namespace: { pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/, lookbehind: !0, inside: { punctuation: /\|$/ } }, "attr-name": { pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/, lookbehind: !0 }, "attr-value": [n, { pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/, lookbehind: !0 }], operator: /[|~*^$]?=/ } }, "n-th": [{ pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/, lookbehind: !0, inside: { number: /[\dn]+/, operator: /[+-]/ } }, { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 }], combinator: />|\+|~|\|\|/, punctuation: /[(),]/ } }, e.languages.css.atrule.inside["selector-function-argument"].inside = a, e.languages.insertBefore("css", "property", { variable: { pattern: /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i, lookbehind: !0 } }); var r = { pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/, lookbehind: !0 }, i = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 }; e.languages.insertBefore("css", "function", { operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 }, hexcode: { pattern: /\B#[\da-f]{3,8}\b/i, alias: "color" }, color: [{ pattern: /(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i, lookbehind: !0 }, { pattern: /\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i, inside: { unit: r, number: i, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: r, number: i }) }(Prism); -Prism.languages.git = { comment: /^#.*/m, deleted: /^[-–].*/m, inserted: /^\+.*/m, string: /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/, command: { pattern: /^.*\$ git .*$/m, inside: { parameter: /\s--?\w+/ } }, coord: /^@@.*@@$/m, "commit-sha1": /^commit \w{40}$/m }; -Prism.languages.go = Prism.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/, lookbehind: !0, greedy: !0 }, keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, boolean: /\b(?:_|false|iota|nil|true)\b/, number: [/\b0(?:b[01_]+|o[0-7_]+)i?\b/i, /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i, /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i], operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/ }), Prism.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete Prism.languages.go["class-name"]; -!function (e) { var n = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, t = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", s = { pattern: RegExp("(^|[^\\w.])" + t + "[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b"), lookbehind: !0, inside: { namespace: { pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/, inside: { punctuation: /\./ } }, punctuation: /\./ } }; e.languages.java = e.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/, lookbehind: !0, greedy: !0 }, "class-name": [s, { pattern: RegExp("(^|[^\\w.])" + t + "[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)"), lookbehind: !0, inside: s.inside }, { pattern: RegExp("(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)" + t + "[A-Z]\\w*\\b"), lookbehind: !0, inside: s.inside }], keyword: n, function: [e.languages.clike.function, { pattern: /(::\s*)[a-z_]\w*/, lookbehind: !0 }], number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i, operator: { pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m, lookbehind: !0 }, constant: /\b[A-Z][A-Z_\d]+\b/ }), e.languages.insertBefore("java", "string", { "triple-quoted-string": { pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/, greedy: !0, alias: "string" }, char: { pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/, greedy: !0 } }), e.languages.insertBefore("java", "class-name", { annotation: { pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/, lookbehind: !0, alias: "punctuation" }, generics: { pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/, inside: { "class-name": s, keyword: n, punctuation: /[<>(),.:]/, operator: /[?&|]/ } }, import: [{ pattern: RegExp("(\\bimport\\s+)" + t + "(?:[A-Z]\\w*|\\*)(?=\\s*;)"), lookbehind: !0, inside: { namespace: s.inside.namespace, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }, { pattern: RegExp("(\\bimport\\s+static\\s+)" + t + "(?:\\w+|\\*)(?=\\s*;)"), lookbehind: !0, alias: "static", inside: { namespace: s.inside.namespace, static: /\b\w+$/, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }], namespace: { pattern: RegExp("(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?".replace(//g, (function () { return n.source }))), lookbehind: !0, inside: { punctuation: /\./ } } }) }(Prism); -!function (e) { var n = "\\\\\\((?:[^()]|\\([^()]*\\))*\\)", t = RegExp('(^|[^\\\\])"(?:[^"\r\n\\\\]|\\\\[^\r\n(]|__)*"'.replace(/__/g, (function () { return n }))), i = { interpolation: { pattern: RegExp("((?:^|[^\\\\])(?:\\\\{2})*)" + n), lookbehind: !0, inside: { content: { pattern: /^(\\\()[\s\S]+(?=\)$)/, lookbehind: !0, inside: null }, punctuation: /^\\\(|\)$/ } } }, a = e.languages.jq = { comment: /#.*/, property: { pattern: RegExp(t.source + "(?=\\s*:(?!:))"), lookbehind: !0, greedy: !0, inside: i }, string: { pattern: t, lookbehind: !0, greedy: !0, inside: i }, function: { pattern: /(\bdef\s+)[a-z_]\w+/i, lookbehind: !0 }, variable: /\B\$\w+/, "property-literal": { pattern: /\b[a-z_]\w*(?=\s*:(?!:))/i, alias: "property" }, keyword: /\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/, boolean: /\b(?:false|true)\b/, number: /(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/, operator: [{ pattern: /\|=?/, alias: "pipe" }, /\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/], "c-style-function": { pattern: /\b[a-z_]\w*(?=\s*\()/i, alias: "function" }, punctuation: /::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/, dot: { pattern: /\./, alias: "important" } }; i.interpolation.inside.content.inside = a }(Prism); -Prism.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, Prism.languages.webmanifest = Prism.languages.json; -!function (n) { var e = /("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/; n.languages.json5 = n.languages.extend("json", { property: [{ pattern: RegExp(e.source + "(?=\\s*:)"), greedy: !0 }, { pattern: /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/, alias: "unquoted" }], string: { pattern: e, greedy: !0 }, number: /[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/ }) }(Prism); -Prism.languages.jsonp = Prism.languages.extend("json", { punctuation: /[{}[\]();,.]/ }), Prism.languages.insertBefore("jsonp", "punctuation", { function: /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/ }); -!function (e) { function n(e, n) { return "___" + e.toUpperCase() + n + "___" } Object.defineProperties(e.languages["markup-templating"] = {}, { buildPlaceholders: { value: function (t, a, r, o) { if (t.language === a) { var c = t.tokenStack = []; t.code = t.code.replace(r, (function (e) { if ("function" == typeof o && !o(e)) return e; for (var r, i = c.length; -1 !== t.code.indexOf(r = n(a, i));)++i; return c[i] = e, r })), t.grammar = e.languages.markup } } }, tokenizePlaceholders: { value: function (t, a) { if (t.language === a && t.tokenStack) { t.grammar = e.languages[a]; var r = 0, o = Object.keys(t.tokenStack); !function c(i) { for (var u = 0; u < i.length && !(r >= o.length); u++) { var g = i[u]; if ("string" == typeof g || g.content && "string" == typeof g.content) { var l = o[r], s = t.tokenStack[l], f = "string" == typeof g ? g : g.content, p = n(a, l), k = f.indexOf(p); if (k > -1) { ++r; var m = f.substring(0, k), d = new e.Token(a, e.tokenize(s, t.grammar), "language-" + a, s), h = f.substring(k + p.length), v = []; m && v.push.apply(v, c([m])), v.push(d), h && v.push.apply(v, c([h])), "string" == typeof g ? i.splice.apply(i, [u, 1].concat(v)) : g.content = v } } else g.content && c(g.content) } return i }(t.tokens) } } } }) }(Prism); -!function (e) { var a = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/, t = [{ pattern: /\b(?:false|true)\b/i, alias: "boolean" }, { pattern: /(::\s*)\b[a-z_]\w*\b(?!\s*\()/i, greedy: !0, lookbehind: !0 }, { pattern: /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i, greedy: !0, lookbehind: !0 }, /\b(?:null)\b/i, /\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/], i = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, n = /|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/, s = /[{}\[\](),:;]/; e.languages.php = { delimiter: { pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i, alias: "important" }, comment: a, variable: /\$+(?:\w+\b|(?=\{))/, package: { pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i, lookbehind: !0, inside: { punctuation: /\\/ } }, "class-name-definition": { pattern: /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i, lookbehind: !0, alias: "class-name" }, "function-definition": { pattern: /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i, lookbehind: !0, alias: "function" }, keyword: [{ pattern: /(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i, alias: "type-casting", greedy: !0, lookbehind: !0 }, { pattern: /([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i, alias: "type-hint", greedy: !0, lookbehind: !0 }, { pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i, alias: "return-type", greedy: !0, lookbehind: !0 }, { pattern: /\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i, alias: "type-declaration", greedy: !0 }, { pattern: /(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i, alias: "type-declaration", greedy: !0, lookbehind: !0 }, { pattern: /\b(?:parent|self|static)(?=\s*::)/i, alias: "static-context", greedy: !0 }, { pattern: /(\byield\s+)from\b/i, lookbehind: !0 }, /\bclass\b/i, { pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i, lookbehind: !0 }], "argument-name": { pattern: /([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i, lookbehind: !0 }, "class-name": [{ pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i, greedy: !0, lookbehind: !0 }, { pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i, greedy: !0, lookbehind: !0 }, { pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i, greedy: !0 }, { pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i, alias: "class-name-fully-qualified", greedy: !0, lookbehind: !0, inside: { punctuation: /\\/ } }, { pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i, alias: "class-name-fully-qualified", greedy: !0, inside: { punctuation: /\\/ } }, { pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i, alias: "class-name-fully-qualified", greedy: !0, lookbehind: !0, inside: { punctuation: /\\/ } }, { pattern: /\b[a-z_]\w*(?=\s*\$)/i, alias: "type-declaration", greedy: !0 }, { pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i, alias: ["class-name-fully-qualified", "type-declaration"], greedy: !0, inside: { punctuation: /\\/ } }, { pattern: /\b[a-z_]\w*(?=\s*::)/i, alias: "static-context", greedy: !0 }, { pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i, alias: ["class-name-fully-qualified", "static-context"], greedy: !0, inside: { punctuation: /\\/ } }, { pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i, alias: "type-hint", greedy: !0, lookbehind: !0 }, { pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i, alias: ["class-name-fully-qualified", "type-hint"], greedy: !0, lookbehind: !0, inside: { punctuation: /\\/ } }, { pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i, alias: "return-type", greedy: !0, lookbehind: !0 }, { pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i, alias: ["class-name-fully-qualified", "return-type"], greedy: !0, lookbehind: !0, inside: { punctuation: /\\/ } }], constant: t, function: { pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i, lookbehind: !0, inside: { punctuation: /\\/ } }, property: { pattern: /(->\s*)\w+/, lookbehind: !0 }, number: i, operator: n, punctuation: s }; var l = { pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/, lookbehind: !0, inside: e.languages.php }, r = [{ pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/, alias: "nowdoc-string", greedy: !0, inside: { delimiter: { pattern: /^<<<'[^']+'|[a-z_]\w*;$/i, alias: "symbol", inside: { punctuation: /^<<<'?|[';]$/ } } } }, { pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i, alias: "heredoc-string", greedy: !0, inside: { delimiter: { pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i, alias: "symbol", inside: { punctuation: /^<<<"?|[";]$/ } }, interpolation: l } }, { pattern: /`(?:\\[\s\S]|[^\\`])*`/, alias: "backtick-quoted-string", greedy: !0 }, { pattern: /'(?:\\[\s\S]|[^\\'])*'/, alias: "single-quoted-string", greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, alias: "double-quoted-string", greedy: !0, inside: { interpolation: l } }]; e.languages.insertBefore("php", "variable", { string: r, attribute: { pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im, greedy: !0, inside: { "attribute-content": { pattern: /^(#\[)[\s\S]+(?=\]$)/, lookbehind: !0, inside: { comment: a, string: r, "attribute-class-name": [{ pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i, alias: "class-name", greedy: !0, lookbehind: !0 }, { pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i, alias: ["class-name", "class-name-fully-qualified"], greedy: !0, lookbehind: !0, inside: { punctuation: /\\/ } }], constant: t, number: i, operator: n, punctuation: s } }, delimiter: { pattern: /^#\[|\]$/, alias: "punctuation" } } } }), e.hooks.add("before-tokenize", (function (a) { /<\?/.test(a.code) && e.languages["markup-templating"].buildPlaceholders(a, "php", /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g) })), e.hooks.add("after-tokenize", (function (a) { e.languages["markup-templating"].tokenizePlaceholders(a, "php") })) }(Prism); -Prism.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }; -Prism.languages.plsql = Prism.languages.extend("sql", { comment: { pattern: /\/\*[\s\S]*?\*\/|--.*/, greedy: !0 }, keyword: /\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i, operator: /:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/ }), Prism.languages.insertBefore("plsql", "operator", { label: { pattern: /<<\s*\w+\s*>>/, alias: "symbol" } }); -Prism.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python; -!function () { if ("undefined" != typeof Prism && "undefined" != typeof document) { var e = "line-numbers", n = /\n(?!$)/g, t = Prism.plugins.lineNumbers = { getLine: function (n, t) { if ("PRE" === n.tagName && n.classList.contains(e)) { var i = n.querySelector(".line-numbers-rows"); if (i) { var r = parseInt(n.getAttribute("data-start"), 10) || 1, s = r + (i.children.length - 1); t < r && (t = r), t > s && (t = s); var l = t - r; return i.children[l] } } }, resize: function (e) { r([e]) }, assumeViewportIndependence: !0 }, i = void 0; window.addEventListener("resize", (function () { t.assumeViewportIndependence && i === window.innerWidth || (i = window.innerWidth, r(Array.prototype.slice.call(document.querySelectorAll("pre.line-numbers")))) })), Prism.hooks.add("complete", (function (t) { if (t.code) { var i = t.element, s = i.parentNode; if (s && /pre/i.test(s.nodeName) && !i.querySelector(".line-numbers-rows") && Prism.util.isActive(i, e)) { i.classList.remove(e), s.classList.add(e); var l, o = t.code.match(n), a = o ? o.length + 1 : 1, u = new Array(a + 1).join(""); (l = document.createElement("span")).setAttribute("aria-hidden", "true"), l.className = "line-numbers-rows", l.innerHTML = u, s.hasAttribute("data-start") && (s.style.counterReset = "linenumber " + (parseInt(s.getAttribute("data-start"), 10) - 1)), t.element.appendChild(l), r([s]), Prism.hooks.run("line-numbers", t) } } })), Prism.hooks.add("line-numbers", (function (e) { e.plugins = e.plugins || {}, e.plugins.lineNumbers = !0 })) } function r(e) { if (0 != (e = e.filter((function (e) { var n, t = (n = e, n ? window.getComputedStyle ? getComputedStyle(n) : n.currentStyle || null : null)["white-space"]; return "pre-wrap" === t || "pre-line" === t }))).length) { var t = e.map((function (e) { var t = e.querySelector("code"), i = e.querySelector(".line-numbers-rows"); if (t && i) { var r = e.querySelector(".line-numbers-sizer"), s = t.textContent.split(n); r || ((r = document.createElement("span")).className = "line-numbers-sizer", t.appendChild(r)), r.innerHTML = "0", r.style.display = "block"; var l = r.getBoundingClientRect().height; return r.innerHTML = "", { element: e, lines: s, lineHeights: [], oneLinerHeight: l, sizer: r } } })).filter(Boolean); t.forEach((function (e) { var n = e.sizer, t = e.lines, i = e.lineHeights, r = e.oneLinerHeight; i[t.length - 1] = void 0, t.forEach((function (e, t) { if (e && e.length > 1) { var s = n.appendChild(document.createElement("span")); s.style.display = "block", s.textContent = e } else i[t] = r })) })), t.forEach((function (e) { for (var n = e.sizer, t = e.lineHeights, i = 0, r = 0; r < t.length; r++)void 0 === t[r] && (t[r] = n.children[i++].getBoundingClientRect().height) })), t.forEach((function (e) { var n = e.sizer, t = e.element.querySelector(".line-numbers-rows"); n.style.display = "none", n.innerHTML = "", e.lineHeights.forEach((function (e, n) { t.children[n].style.height = e + "px" })) })) } } }(); -!function () { if ("undefined" != typeof Prism && "undefined" != typeof document) { var e = [], t = {}, n = function () { }; Prism.plugins.toolbar = {}; var a = Prism.plugins.toolbar.registerButton = function (n, a) { var r; r = "function" == typeof a ? a : function (e) { var t; return "function" == typeof a.onClick ? ((t = document.createElement("button")).type = "button", t.addEventListener("click", (function () { a.onClick.call(this, e) }))) : "string" == typeof a.url ? (t = document.createElement("a")).href = a.url : t = document.createElement("span"), a.className && t.classList.add(a.className), t.textContent = a.text, t }, n in t ? console.warn('There is a button with the key "' + n + '" registered already.') : e.push(t[n] = r) }, r = Prism.plugins.toolbar.hook = function (a) { var r = a.element.parentNode; if (r && /pre/i.test(r.nodeName) && !r.parentNode.classList.contains("code-toolbar")) { var o = document.createElement("div"); o.classList.add("code-toolbar"), r.parentNode.insertBefore(o, r), o.appendChild(r); var i = document.createElement("div"); i.classList.add("toolbar"); var l = e, d = function (e) { for (; e;) { var t = e.getAttribute("data-toolbar-order"); if (null != t) return (t = t.trim()).length ? t.split(/\s*,\s*/g) : []; e = e.parentElement } }(a.element); d && (l = d.map((function (e) { return t[e] || n }))), l.forEach((function (e) { var t = e(a); if (t) { var n = document.createElement("div"); n.classList.add("toolbar-item"), n.appendChild(t), i.appendChild(n) } })), o.appendChild(i) } }; a("label", (function (e) { var t = e.element.parentNode; if (t && /pre/i.test(t.nodeName) && t.hasAttribute("data-label")) { var n, a, r = t.getAttribute("data-label"); try { a = document.querySelector("template#" + r) } catch (e) { } return a ? n = a.content : (t.hasAttribute("data-url") ? (n = document.createElement("a")).href = t.getAttribute("data-url") : n = document.createElement("span"), n.textContent = r), n } })), Prism.hooks.add("complete", r) } }(); -!function () { if ("undefined" != typeof Prism && "undefined" != typeof document) if (Prism.plugins.toolbar) { var e = { none: "Plain text", plain: "Plain text", plaintext: "Plain text", text: "Plain text", txt: "Plain text", html: "HTML", xml: "XML", svg: "SVG", mathml: "MathML", ssml: "SSML", rss: "RSS", css: "CSS", clike: "C-like", js: "JavaScript", abap: "ABAP", abnf: "ABNF", al: "AL", antlr4: "ANTLR4", g4: "ANTLR4", apacheconf: "Apache Configuration", apl: "APL", aql: "AQL", ino: "Arduino", arff: "ARFF", armasm: "ARM Assembly", "arm-asm": "ARM Assembly", art: "Arturo", asciidoc: "AsciiDoc", adoc: "AsciiDoc", aspnet: "ASP.NET (C#)", asm6502: "6502 Assembly", asmatmel: "Atmel AVR Assembly", autohotkey: "AutoHotkey", autoit: "AutoIt", avisynth: "AviSynth", avs: "AviSynth", "avro-idl": "Avro IDL", avdl: "Avro IDL", awk: "AWK", gawk: "GAWK", sh: "Shell", basic: "BASIC", bbcode: "BBcode", bbj: "BBj", bnf: "BNF", rbnf: "RBNF", bqn: "BQN", bsl: "BSL (1C:Enterprise)", oscript: "OneScript", csharp: "C#", cs: "C#", dotnet: "C#", cpp: "C++", cfscript: "CFScript", cfc: "CFScript", cil: "CIL", cilkc: "Cilk/C", "cilk-c": "Cilk/C", cilkcpp: "Cilk/C++", "cilk-cpp": "Cilk/C++", cilk: "Cilk/C++", cmake: "CMake", cobol: "COBOL", coffee: "CoffeeScript", conc: "Concurnas", csp: "Content-Security-Policy", "css-extras": "CSS Extras", csv: "CSV", cue: "CUE", dataweave: "DataWeave", dax: "DAX", django: "Django/Jinja2", jinja2: "Django/Jinja2", "dns-zone-file": "DNS zone file", "dns-zone": "DNS zone file", dockerfile: "Docker", dot: "DOT (Graphviz)", gv: "DOT (Graphviz)", ebnf: "EBNF", editorconfig: "EditorConfig", ejs: "EJS", etlua: "Embedded Lua templating", erb: "ERB", "excel-formula": "Excel Formula", xlsx: "Excel Formula", xls: "Excel Formula", fsharp: "F#", "firestore-security-rules": "Firestore security rules", ftl: "FreeMarker Template Language", gml: "GameMaker Language", gamemakerlanguage: "GameMaker Language", gap: "GAP (CAS)", gcode: "G-code", gdscript: "GDScript", gedcom: "GEDCOM", gettext: "gettext", po: "gettext", glsl: "GLSL", gn: "GN", gni: "GN", "linker-script": "GNU Linker Script", ld: "GNU Linker Script", "go-module": "Go module", "go-mod": "Go module", graphql: "GraphQL", hbs: "Handlebars", hs: "Haskell", hcl: "HCL", hlsl: "HLSL", http: "HTTP", hpkp: "HTTP Public-Key-Pins", hsts: "HTTP Strict-Transport-Security", ichigojam: "IchigoJam", "icu-message-format": "ICU Message Format", idr: "Idris", ignore: ".ignore", gitignore: ".gitignore", hgignore: ".hgignore", npmignore: ".npmignore", inform7: "Inform 7", javadoc: "JavaDoc", javadoclike: "JavaDoc-like", javastacktrace: "Java stack trace", jq: "JQ", jsdoc: "JSDoc", "js-extras": "JS Extras", json: "JSON", webmanifest: "Web App Manifest", json5: "JSON5", jsonp: "JSONP", jsstacktrace: "JS stack trace", "js-templates": "JS Templates", keepalived: "Keepalived Configure", kts: "Kotlin Script", kt: "Kotlin", kumir: "KuMir (КуМир)", kum: "KuMir (КуМир)", latex: "LaTeX", tex: "TeX", context: "ConTeXt", lilypond: "LilyPond", ly: "LilyPond", emacs: "Lisp", elisp: "Lisp", "emacs-lisp": "Lisp", llvm: "LLVM IR", log: "Log file", lolcode: "LOLCODE", magma: "Magma (CAS)", md: "Markdown", "markup-templating": "Markup templating", matlab: "MATLAB", maxscript: "MAXScript", mel: "MEL", metafont: "METAFONT", mongodb: "MongoDB", moon: "MoonScript", n1ql: "N1QL", n4js: "N4JS", n4jsd: "N4JS", "nand2tetris-hdl": "Nand To Tetris HDL", naniscript: "Naninovel Script", nani: "Naninovel Script", nasm: "NASM", neon: "NEON", nginx: "nginx", nsis: "NSIS", objectivec: "Objective-C", objc: "Objective-C", ocaml: "OCaml", opencl: "OpenCL", openqasm: "OpenQasm", qasm: "OpenQasm", parigp: "PARI/GP", objectpascal: "Object Pascal", psl: "PATROL Scripting Language", pcaxis: "PC-Axis", px: "PC-Axis", peoplecode: "PeopleCode", pcode: "PeopleCode", php: "PHP", phpdoc: "PHPDoc", "php-extras": "PHP Extras", "plant-uml": "PlantUML", plantuml: "PlantUML", plsql: "PL/SQL", powerquery: "PowerQuery", pq: "PowerQuery", mscript: "PowerQuery", powershell: "PowerShell", promql: "PromQL", properties: ".properties", protobuf: "Protocol Buffers", purebasic: "PureBasic", pbfasm: "PureBasic", purs: "PureScript", py: "Python", qsharp: "Q#", qs: "Q#", q: "Q (kdb+ database)", qml: "QML", rkt: "Racket", cshtml: "Razor C#", razor: "Razor C#", jsx: "React JSX", tsx: "React TSX", renpy: "Ren'py", rpy: "Ren'py", res: "ReScript", rest: "reST (reStructuredText)", robotframework: "Robot Framework", robot: "Robot Framework", rb: "Ruby", sas: "SAS", sass: "Sass (Sass)", scss: "Sass (SCSS)", "shell-session": "Shell session", "sh-session": "Shell session", shellsession: "Shell session", sml: "SML", smlnj: "SML/NJ", solidity: "Solidity (Ethereum)", sol: "Solidity (Ethereum)", "solution-file": "Solution file", sln: "Solution file", soy: "Soy (Closure Template)", sparql: "SPARQL", rq: "SPARQL", "splunk-spl": "Splunk SPL", sqf: "SQF: Status Quo Function (Arma 3)", sql: "SQL", stata: "Stata Ado", iecst: "Structured Text (IEC 61131-3)", supercollider: "SuperCollider", sclang: "SuperCollider", systemd: "Systemd configuration file", "t4-templating": "T4 templating", "t4-cs": "T4 Text Templates (C#)", t4: "T4 Text Templates (C#)", "t4-vb": "T4 Text Templates (VB)", tap: "TAP", tt2: "Template Toolkit 2", toml: "TOML", trickle: "trickle", troy: "troy", trig: "TriG", ts: "TypeScript", tsconfig: "TSConfig", uscript: "UnrealScript", uc: "UnrealScript", uorazor: "UO Razor Script", uri: "URI", url: "URL", vbnet: "VB.Net", vhdl: "VHDL", vim: "vim", "visual-basic": "Visual Basic", vba: "VBA", vb: "Visual Basic", wasm: "WebAssembly", "web-idl": "Web IDL", webidl: "Web IDL", wgsl: "WGSL", wiki: "Wiki markup", wolfram: "Wolfram language", nb: "Mathematica Notebook", wl: "Wolfram language", xeoracube: "XeoraCube", "xml-doc": "XML doc (.net)", xojo: "Xojo (REALbasic)", xquery: "XQuery", yaml: "YAML", yml: "YAML", yang: "YANG" }; Prism.plugins.toolbar.registerButton("show-language", (function (a) { var t = a.element.parentNode; if (t && /pre/i.test(t.nodeName)) { var o, i = t.getAttribute("data-language") || e[a.language] || ((o = a.language) ? (o.substring(0, 1).toUpperCase() + o.substring(1)).replace(/s(?=cript)/, "S") : o); if (i) { var s = document.createElement("span"); return s.textContent = i, s } } })) } else console.warn("Show Languages plugin loaded before Toolbar plugin.") }(); -!function () { function t(t) { var e = document.createElement("textarea"); e.value = t.getText(), e.style.top = "0", e.style.left = "0", e.style.position = "fixed", document.body.appendChild(e), e.focus(), e.select(); try { var o = document.execCommand("copy"); setTimeout((function () { o ? t.success() : t.error() }), 1) } catch (e) { setTimeout((function () { t.error(e) }), 1) } document.body.removeChild(e) } "undefined" != typeof Prism && "undefined" != typeof document && (Prism.plugins.toolbar ? Prism.plugins.toolbar.registerButton("copy-to-clipboard", (function (e) { var o = e.element, n = function (t) { var e = { copy: "Copy", "copy-error": "Press Ctrl+C to copy", "copy-success": "Copied!", "copy-timeout": 5e3 }; for (var o in e) { for (var n = "data-prismjs-" + o, c = t; c && !c.hasAttribute(n);)c = c.parentElement; c && (e[o] = c.getAttribute(n)) } return e }(o), c = document.createElement("button"); c.className = "copy-to-clipboard-button", c.setAttribute("type", "button"); var r = document.createElement("span"); return c.appendChild(r), u("copy"), function (e, o) { e.addEventListener("click", (function () { !function (e) { navigator.clipboard ? navigator.clipboard.writeText(e.getText()).then(e.success, (function () { t(e) })) : t(e) }(o) })) }(c, { getText: function () { return o.textContent }, success: function () { u("copy-success"), i() }, error: function () { u("copy-error"), setTimeout((function () { !function (t) { window.getSelection().selectAllChildren(t) }(o) }), 1), i() } }), c; function i() { setTimeout((function () { u("copy") }), n["copy-timeout"]) } function u(t) { r.textContent = n[t], c.setAttribute("data-copy-state", t) } })) : console.warn("Copy to Clipboard plugin loaded before Toolbar plugin.")) }(); diff --git a/dist/js/twikoo.all.min.js b/dist/js/twikoo.all.min.js deleted file mode 100644 index 98ca4b1..0000000 --- a/dist/js/twikoo.all.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see twikoo.all.min.js.LICENSE.txt */ -var e,t;e=this,t=function(){return function(){var e={6885:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3692);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var i=n(2912);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},3692:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StorageType=t.AbstractStorage=t.AbstractSDKRequest=void 0,function(e){e.local="local",e.none="none",e.session="session"}(n||(t.StorageType=n={})),t.AbstractSDKRequest=function(){},t.AbstractStorage=function(){}},2912:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var o in n)""===i?!r&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?\:\/\//.test(t+=i)?t:""+e+t}},3052:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOGINTYPE=t.DATA_VERSION=void 0,t.getEndPoint=function(){return{BASE_URL:l,PROTOCOL:c}},t.getSdkName=function(){return s},t.getSdkVersion=function(){return a},t.setEndPoint=d,t.setRegionLevelEndpoint=function(e,t,n){d(t?"//"+e+"."+t+".tcb-api.tencentcloudapi.com/web":"//"+e+".ap-shanghai.tcb-api.tencentcloudapi.com/web",n)},t.setSdkName=function(e){s=e,i(e)},t.setSdkVersion=function(e){a=e};var r=n(2566),i=r.constants.setSdkName,o=r.constants.setProtocol,a="",s="@cloudbase/js-sdk";t.DATA_VERSION="2020-01-10";var u,c="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:",l="//tcb-api.tencentcloudapi.com/web";function d(e,t){l=e,t&&(c=t,o(t))}!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.CUSTOM="CUSTOM",e.NULL="NULL"}(u||(t.LOGINTYPE=u={}))},7696:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0,t.EVENTS={LOGIN_STATE_CHANGED:"loginStateChanged",LOGIN_STATE_EXPIRED:"loginStateExpire",LOGIN_TYPE_CHANGED:"loginTypeChanged",ANONYMOUS_CONVERTED:"anonymousConverted",ACCESS_TOKEN_REFRESHD:"refreshAccessToken"}},4283:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.cloudbase=void 0;var i=r(n(9367)),o=n(2566),a=r(n(2473)),s=n(3219),u=n(4319),c=n(1706),l=n(6153),d=n(3052),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;u--)(o=e[u])&&(s=(a<3?o(s):a>3?o(t,n,s):o(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},h=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,i["default"])(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},g=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},m=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]x:return w(b.INVALID_PARAMS,"timeout is greater than maximum value[10min]"),x;case e<100:return w(b.INVALID_PARAMS,"timeout is less than maximum value[100ms]"),100;default:return e}},p([E({mode:"sync",title:"Cloudbase 初始化失败",messages:["请确认以下各项:"," 1 - 调用 cloudbase.init() 的语法或参数是否正确"," 2 - 如果是非浏览器环境,是否配置了安全应用来源(https://docs.cloudbase.net/api-reference/webv2/adapter.html#jie-ru-liu-cheng)","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+k]}),h("design:type",Function),h("design:paramtypes",[Object]),h("design:returntype",e)],e.prototype,"init",null),p([E({title:"调用扩展能力失败",messages:["请确认以下各项:"," 1 - 调用 invokeExtension() 的语法或参数是否正确"," 2 - 被调用的扩展能力是否已经安装并通过 registerExtension() 注册","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+k]}),h("design:type",Function),h("design:paramtypes",[String,Object]),h("design:returntype",Promise)],e.prototype,"invokeExtension",null),e}(),D=t.cloudbase=new I;D.useAdapters(a["default"]),t["default"]=D},4319:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Platform=void 0,t.Platform={}},1706:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCacheByEnvId=function(e){return f[e]},t.getLocalCache=function(e){return p[e]},t.initCache=function(e){var t=e.env,n=e.persistence,r=e.platformInfo,h={accessTokenKey:o+"_"+t,accessTokenExpireKey:a+"_"+t,refreshTokenKey:s+"_"+t,anonymousUuidKey:u+"_"+t,loginTypeKey:c+"_"+t,userInfoKey:l+"_"+t};f[t]?f[t].updatePersistence(n):f[t]=new d(i(i({},e),{keys:h,platformInfo:r,alwaysLocalKeys:["anonymousUuidKey"]})),p[t]=p[t]||new d(i(i({},e),{keys:h,platformInfo:r,persistence:"local"}))};var r=n(2566),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=1)return[2,this._refreshAccessToken(--e)];throw new Error(JSON.stringify({code:f.OPERATION_FAIL,message:"重试获取 refresh token 失败"}));case 9:return o.cloudbase.fire(s.EVENTS.LOGIN_STATE_EXPIRED),[4,this._cache.removeStoreAsync(a)];case 10:d.sent(),d.label=11;case 11:throw new Error(JSON.stringify({code:f.NETWORK_ERROR,msg:"refresh access_token failed:"+h.data.code}));case 12:return h.data.access_token?(o.cloudbase.fire(s.EVENTS.ACCESS_TOKEN_REFRESHD),[4,this._cache.setStoreAsync(n,h.data.access_token)]):[3,15];case 13:return d.sent(),[4,this._cache.setStoreAsync(i,h.data.access_token_expire+Date.now())];case 14:return d.sent(),[2,{accessToken:h.data.access_token,accessTokenExpire:h.data.access_token_expire}];case 15:return h.data.refresh_token?[4,this._cache.removeStoreAsync(a)]:[3,19];case 16:return d.sent(),[4,this._cache.setStoreAsync(a,h.data.refresh_token)];case 17:return d.sent(),[4,this._refreshAccessToken()];case 18:d.sent(),d.label=19;case 19:return[2]}}))}))},e.prototype._setRefreshToken=function(e){return l(this,void 0,void 0,(function(){var t,n,r,i;return d(this,(function(o){switch(o.label){case 0:return t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,[4,this._cache.removeStoreAsync(n)];case 1:return o.sent(),[4,this._cache.removeStoreAsync(r)];case 2:return o.sent(),[4,this._cache.setStoreAsync(i,e)];case 3:return o.sent(),[2]}}))}))},e}(),w={}},1235:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LOGINTYPE=void 0,function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL",e.PHONE="PHONE"}(n||(t.LOGINTYPE=n={}))},3442:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t.Auth=void 0,Object.defineProperty(t,"AuthProvider",{enumerable:!0,get:function(){return l.AuthProvider}}),t.eventBus=t.LoginState=t.EVENTS=void 0,t.registerAuth=function(e){try{e.registerComponent(M)}catch(t){console.warn(t)}},t.registerProvider=function(e,t){S.prototype[e]=function(n){var r="_"+e;return this[r]||(this[r]=new t(h(h({},n),this._config))),this[r]}};var i=r(n(9367)),o=n(2566),a=n(9250),s=n(4325),u=n(2007),c=n(1235),l=n(4522),d=n(7036),f=n(9676),p=n(2424),h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;u--)(o=e[u])&&(s=(a<3?o(s):a>3?o(t,n,s):o(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},m=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,i["default"])(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},v=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},_=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o["default"])(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},h=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]Date.now()?[4,(s=new r.LoginState({envId:this._config.env,cache:this._cache,request:this._request})).checkLocalStateAsync()]:[3,4]:[3,7];case 3:return o.sent(),[2,s];case 4:return[4,this._cache.removeStoreAsync(t)];case 5:return o.sent(),[4,this._cache.removeStoreAsync(n)];case 6:o.sent(),o.label=7;case 7:return[2]}}))}))},e.prototype.setRefreshToken=function(e){return i(this,void 0,void 0,(function(){var t,n,r,i;return o(this,(function(o){switch(o.label){case 0:return t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,[4,this._cache.removeStoreAsync(n)];case 1:return o.sent(),[4,this._cache.removeStoreAsync(r)];case 2:return o.sent(),[4,this._cache.setStoreAsync(i,e)];case 3:return o.sent(),[2]}}))}))},e.prototype.setAccessToken=function(e,t){return i(this,void 0,void 0,(function(){var n,r,i;return o(this,(function(o){switch(o.label){case 0:return n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey,[4,this._cache.setStoreAsync(r,e)];case 1:return o.sent(),[4,this._cache.setStoreAsync(i,t)];case 2:return o.sent(),[2]}}))}))},e.prototype.refreshUserInfo=function(){return i(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,this._request.send("auth.getUserInfo",{})];case 1:return e=t.sent().data,[4,this.setLocalUserInfo(e)];case 2:return t.sent(),[2,e]}}))}))},e.prototype.setLocalUserInfo=function(e){return i(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=this._cache.keys.userInfoKey,[4,this._cache.setStoreAsync(t,e)];case 1:return n.sent(),[2]}}))}))},e}()},2007:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAuthProvider=void 0;var i,o=r(n(9367)),a=n(2566),s=n(4522),u=n(1235),c=n(3442),l=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,o["default"])(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o["default"])(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},h=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o["default"])(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},h=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o["default"])(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},h=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o["default"])(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},h=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;u--)(i=e[u])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,o["default"])(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},h=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;u--)(o=e[u])&&(s=(a<3?o(s):a>3?o(t,n,s):o(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,i["default"])(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;u--)(o=e[u])&&(s=(a<3?o(s):a>3?o(t,n,s):o(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,i["default"])(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]d}));f.unshift(a[d].replace(l,n+"."+r).replace(c,i)),(o=new Error).stack=(s?"@debugger":"Error")+"\n"+f.join("\n")}return o}t.catchErrorsDecorator=function(e){var t=e.mode,n=void 0===t?"async":t,s=e.customInfo,d=void 0===s?{}:s,f=e.title,p=e.messages,h=void 0===p?[]:p;return function(e,t,s){if(a.IS_DEBUG_MODE){var p=d.className||e.constructor.name,g=d.methodName||t,m=s.value,v=function(e){var t="",n=e.stack.split("\n"),r=n.findIndex((function(e){return u.test(e)}));if(-1!==r){var i=c.exec(n[r+1]||"");t=i?i[0]:""}return t}(new Error);s.value="sync"===n?function(){for(var e=[],t=0;t0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0?JSON.parse(r).content:""}u.printWarn(c.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getStoreAsync insteed")},e.prototype.getStoreAsync=function(e,t){var n;return o(this,void 0,void 0,(function(){var r;return a(this,(function(i){switch(i.label){case 0:try{if("undefined"!=typeof process&&(null===(n=process.env)||void 0===n?void 0:n.tcb_token))return[2,process.env.tcb_token];if(!this._storage)return[2,""]}catch(o){return[2,""]}return t=t||"localCachev1",[4,this._storage.getItem(e)];case 1:return(r=i.sent())&&r.indexOf(t)>=0?[2,JSON.parse(r).content]:[2,""]}}))}))},e.prototype.removeStore=function(e){"async"!==this.mode?this._storage.removeItem(e):u.printWarn(c.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use removeStoreAsync insteed")},e.prototype.removeStoreAsync=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this._storage.removeItem(e)];case 1:return t.sent(),[2]}}))}))},e}();t.CloudbaseCache=f},9978:function(e,t,n){"use strict";var r,i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(){for(var e=0,t=0,n=arguments.length;t0},e}();t.CloudbaseEventEmitter=c;var l=new c;t.addEventListener=function(e,t){l.on(e,t)},t.activateEvent=function(e,t){void 0===t&&(t={}),l.fire(e,t)},t.removeEventListener=function(e,t){l.off(e,t)}},5939:function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformPhone=t.sleep=t.printGroupLog=t.throwError=t.printInfo=t.printError=t.printWarn=t.execCallback=t.createPromiseCallback=t.removeParam=t.getHash=t.getQuery=t.toQueryString=t.createSign=t.formatUrl=t.genSeqId=t.isFormData=t.isInstanceOf=t.isNull=t.isPalinObject=t.isUndefined=t.isString=t.isArray=void 0;var i=r(n(4180)),o=r(n(6253)),a=r(n(1717)),s=n(3440);function u(e){var t=o["default"].stringify(e);return t=(t=(t=t.replace(/=+$/,"")).replace(/\+/g,"-")).replace(/\//g,"_")}t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isString=function(e){return"string"==typeof e},t.isUndefined=function(e){return void 0===e},t.isPalinObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isNull=function(e){return"[object Null]"===Object.prototype.toString.call(e)},t.isInstanceOf=function(e,t){return e instanceof t},t.isFormData=function(e){return"[object FormData]"===Object.prototype.toString.call(e)},t.genSeqId=function(){return Math.random().toString(16).slice(2)},t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var o in n)""===i?!r&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?\:\/\//.test(t+=i)?t:""+e+t},t.createSign=function(e,t){var n=u(a["default"].parse(JSON.stringify({alg:"HS256",typ:"JWT"})))+"."+u(a["default"].parse(JSON.stringify(e)));return n+"."+u(i["default"](n,t))},t.toQueryString=function(e){void 0===e&&(e={});var t=[];for(var n in e)t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")},t.getQuery=function(e,t){if("undefined"==typeof window)return!1;var n=t||window.location.search,r=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=n.substr(n.indexOf("?")+1).match(r);return null!=i?i[2]:""},t.getHash=function(e){if("undefined"==typeof window)return"";var t=window.location.hash.match(new RegExp("[#?&/]"+e+"=([^&#]*)"));return t?t[1]:""},t.removeParam=function(e,t){var n=t.split("?")[0],r=[],i=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==i){for(var o=(r=i.split("&")).length-1;o>=0;o-=1)r[o].split("=")[0]===e&&r.splice(o,1);n=n+"?"+r.join("&")}return n},t.createPromiseCallback=function(){var e;if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e},t.execCallback=function(e,t,n){if(void 0===n&&(n=null),e&&"function"==typeof e)return e(t,n);if(t)throw t;return n},t.printWarn=function(e,t){console.warn("["+s.getSdkName()+"]["+e+"]:"+t)},t.printError=function(e,t){console.error({code:e,msg:"["+s.getSdkName()+"]["+e+"]:"+t})},t.printInfo=function(e,t){console.log("["+s.getSdkName()+"]["+e+"]:"+t)},t.throwError=function(e,t){throw new Error(JSON.stringify({code:e,msg:"["+s.getSdkName()+"]["+e+"]:"+t}))},t.printGroupLog=function(e){var t=e.title,n=e.subtitle,r=void 0===n?"":n,i=e.content,o=void 0===i?[]:i,a=e.printTrace,s=void 0!==a&&a,u=e.collapsed;void 0!==u&&u?console.groupCollapsed(t,r):console.group(t,r);for(var c=0,l=o;c>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,i,a){return o((s=o(o(t,e),o(r,a)))<<(u=i)|s>>>32-u,n);var s,u}function s(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function u(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function c(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}function d(e,t){var n,r,i,a,d;e[t>>5]|=128<>>9<<4)]=t;var f=1732584193,p=-271733879,h=-1732584194,g=271733878;for(n=0;n>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=undefined,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+r.charAt(15&t);return i}function g(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return f(d(p(e),8*e.length))}(g(e))}function v(e,t){return function(e,t){var n,r,i=p(e),o=[],a=[];for(o[15]=a[15]=undefined,i.length>16&&(i=d(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=d(o.concat(p(t)),512+8*t.length),f(d(a.concat(r),640))}(g(e),g(t))}function _(e,t,n){return t?n?v(t,e):h(v(t,e)):n?m(e):h(m(e))}(r=function(){return _}.call(t,n,t,e))===undefined||(e.exports=r)}()},2473:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wxMpStorage=t["default"]=t.WxRequest=t.WxMpWebSocket=void 0;var r,i=n(6885),o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,c=e.min(4*u,i);if(u){for(var l=0;l>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return n.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64},"object"===(0,s["default"])(t)?e.exports=t=a(n(4794)):(i=[n(4794)],(o="function"==typeof(r=a)?r.apply(t,i):r)===undefined||(e.exports=o))},1717:function(e,t,n){"use strict";var r,i,o,a,s=n(477)(n(9367));a=function(e){return e.enc.Utf8},"object"===(0,s["default"])(t)?e.exports=t=a(n(4794)):(i=[n(4794)],(o="function"==typeof(r=a)?r.apply(t,i):r)===undefined||(e.exports=o))},4180:function(e,t,n){"use strict";var r,i,o,a,s=n(477)(n(9367));a=function(e){return e.HmacSHA256},"object"===(0,s["default"])(t)?e.exports=t=a(n(4794),n(5794),n(2910)):(i=[n(4794),n(5794),n(2910)],(o="function"==typeof(r=a)?r.apply(t,i):r)===undefined||(e.exports=o))},2910:function(e,t,n){"use strict";var r,i,o,a,s=n(477)(n(9367));a=function(e){var t,n,r;n=(t=e).lib.Base,r=t.enc.Utf8,t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,c=0;c>>7)^(h<<14|h>>>18)^h>>>3,m=c[p-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[p]=g+c[p-7]+v+c[p-16]}var _=r&i^r&o^i&o,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+u[p]+c[p];f=d,d=l,l=s,s=a+b|0,a=o,o=i,i=r,r=b+(y+_)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(l),n.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256},"object"===(0,s["default"])(t)?e.exports=t=a(n(4794)):(i=[n(4794)],(o="function"==typeof(r=a)?r.apply(t,i):r)===undefined||(e.exports=o))},9067:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r="undefined"!=typeof t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,undefined]]);var a={};if(r)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},5346:function(e){"use strict";e.exports=function(e){return e[1]}},1463:function(e,t,n){"use strict";var r=n(477)(n(9367));e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===(0,r["default"])(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=96)}({0:function(e,t,n){function r(e,t,n,r,i,o,a,s){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},96:function(e,t,n){n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button","class":[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{"class":e.icon}):e._e(),e.$slots["default"]?n("span",[e._t("default")],2):e._e()])};r._withStripped=!0;var i={name:"ElButton",inject:{elForm:{"default":""},elFormItem:{"default":""}},props:{type:{type:String,"default":"default"},size:String,icon:{type:String,"default":""},nativeType:{type:String,"default":"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},o=n(0),a=Object(o.a)(i,r,[],!1,null,null,null);a.options.__file="packages/button/src/button.vue";var s=a.exports;s.install=function(e){e.component(s.name,s)},t["default"]=s}})},5735:function(e,t,n){"use strict";var r=n(477)(n(9367));e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===(0,r["default"])(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=75)}({0:function(e,t,n){function r(e,t,n,r,i,o,a,s){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n(2036)},21:function(e,t){e.exports=n(4524)},4:function(e,t){e.exports=n(5956)},75:function(e,t,n){n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{"class":["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon","class":e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon","class":e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon","class":["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)};r._withStripped=!0;var i=n(4),o=n.n(i),a=n(11),s=n.n(a),u=void 0,c=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function l(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1,n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;u||(u=document.createElement("textarea"),document.body.appendChild(u));var r=function(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:c.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}(e),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;u.setAttribute("style",s+";\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n"),u.value=e.value||e.placeholder||"";var l=u.scrollHeight,d={};"border-box"===a?l+=o:"content-box"===a&&(l-=i),u.value="";var f=u.scrollHeight-i;if(null!==t){var p=f*t;"border-box"===a&&(p=p+i+o),l=Math.max(p,l),d.minHeight=p+"px"}if(null!==n){var h=f*n;"border-box"===a&&(h=h+i+o),l=Math.min(h,l)}return d.height=l+"px",u.parentNode&&u.parentNode.removeChild(u),u=null,d}var d=n(9),f=n.n(d),p=n(21),h={name:"ElInput",componentName:"ElInput",mixins:[o.a,s.a],inheritAttrs:!1,inject:{elForm:{"default":""},elFormItem:{"default":""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,"default":"text"},autosize:{type:[Boolean,Object],"default":!1},autocomplete:{type:String,"default":"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,"default":!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,"default":!1},showPassword:{type:Boolean,"default":!1},showWordLimit:{type:Boolean,"default":!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return f()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||this.value===undefined?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize;if("textarea"===this.type)if(e){var t=e.minRows,n=e.maxRows;this.textareaCalcStyle=l(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:l(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(p.isKorean)(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r0&&arguments[0]!==undefined?arguments[0]:{};if(!i.a.prototype.$isServer){if("string"==typeof(e=_()({},b,e)).target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&k)return k;var t=e.body?document.body:e.target,n=new y({el:document.createElement("div"),data:e});return function(e,t,n){var r={};e.fullscreen?(n.originalPosition=Object(l.getStyle)(document.body,"position"),n.originalOverflow=Object(l.getStyle)(document.body,"overflow"),r.zIndex=d.PopupManager.nextZIndex()):e.body?(n.originalPosition=Object(l.getStyle)(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";r[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(t){r[t]=e.target.getBoundingClientRect()[t]+"px"}))):n.originalPosition=Object(l.getStyle)(t,"position"),Object.keys(r).forEach((function(e){n.$el.style[e]=r[e]}))}(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(l.addClass)(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(l.addClass)(t,"el-loading-parent--hidden"),t.appendChild(n.$el),i.a.nextTick((function(){n.visible=!0})),e.fullscreen&&(k=n),n}};t["default"]={install:function(e){e.use(m),e.prototype.$loading=w},directive:m,service:w}},9:function(e,t){e.exports=n(8589)}})},5956:function(e,t){"use strict";function n(e,t,r){this.$children.forEach((function(i){i.$options.componentName===e?i.$emit.apply(i,[t].concat(r)):n.apply(i,[e,t].concat([r]))}))}t.__esModule=!0,t["default"]={methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==e);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,r){n.call(this,e,t,r)}}}},2036:function(e,t,n){"use strict";t.__esModule=!0,n(2417),t["default"]={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},3725:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:300,r=arguments.length>3&&arguments[3]!==undefined&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",o):e.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},2865:function(e,t,n){"use strict";var r=n(477)(n(9367));t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=undefined;var i="function"==typeof Symbol&&"symbol"===(0,r["default"])(Symbol.iterator)?function(e){return(0,r["default"])(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,r["default"])(e)};t.hasClass=g,t.addClass=function(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,o=r.length;i-1}t.once=function(e,t,n){p(e,t,(function r(){n&&n.apply(this,arguments),h(e,t,r)}))};var m=t.getStyle=l<9?function(e,t){if(!s){if(!e||!t)return null;"float"===(t=f(t))&&(t="styleFloat");try{if("opacity"===t)try{return e.filters.item("alpha").opacity/100}catch(n){return 1}return e.style[t]||e.currentStyle?e.currentStyle[t]:null}catch(n){return e.style[t]}}}:function(e,t){if(!s){if(!e||!t)return null;"float"===(t=f(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(r){return e.style[t]}}},v=t.isScroll=function(e,t){if(!s){var n=null!==t&&t!==undefined;return m(e,n?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!s){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(v(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(s||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,undefined].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.topr.top&&n.right>r.left&&n.left0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),r):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,r=e.zIndex;if(r&&(o["default"].zIndex=r),n&&(this._closing&&(o["default"].closeModal(this._popupId),this._closing=!1),o["default"].openModal(this._popupId,o["default"].nextZIndex(),this.modalAppendToBody?undefined:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,s.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,s.getStyle)(document.body,"paddingRight"),10)),l=(0,a["default"])();var i=document.documentElement.clientHeight0&&(i||"scroll"===u)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+l+"px"),(0,s.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=o["default"].nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o["default"].closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,s.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=o["default"]},8432:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(4478),o=(r=i)&&r.__esModule?r:{"default":r},a=n(2865),s=!1,u=!1,c=void 0,l=function(){if(!o["default"].prototype.$isServer){var e=f.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),f.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){f.doOnModalClick&&f.doOnModalClick()}))),e}},d={},f={modalFade:!0,getInstance:function(e){return d[e]},register:function(e,t){e&&t&&(d[e]=t)},deregister:function(e){e&&(d[e]=null,delete d[e])},nextZIndex:function(){return f.zIndex++},modalStack:[],doOnModalClick:function(){var e=f.modalStack[f.modalStack.length-1];if(e){var t=f.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,i){if(!o["default"].prototype.$isServer&&e&&t!==undefined){this.modalFade=i;for(var u=this.modalStack,c=0,d=u.length;c0){var r=t[t.length-1];if(r.id===e)r.modalClass&&r.modalClass.trim().split(/\s+/).forEach((function(e){return(0,a.removeClass)(n,e)})),t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex);else for(var i=t.length-1;i>=0;i--)if(t[i].id===e){t.splice(i,1);break}}0===t.length&&(this.modalFade&&(0,a.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",f.modalDom=undefined),(0,a.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(f,"zIndex",{configurable:!0,get:function(){return u||(c=c||(o["default"].prototype.$ELEMENT||{}).zIndex||2e3,u=!0),c},set:function(e){c=e}}),o["default"].prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=function(){if(!o["default"].prototype.$isServer&&f.modalStack.length>0){var e=f.modalStack[f.modalStack.length-1];if(!e)return;return f.getInstance(e.id)}}();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t["default"]=f},9686:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(){if(o["default"].prototype.$isServer)return 0;if(a!==undefined)return a;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),a=t-r};var r,i=n(4478),o=(r=i)&&r.__esModule?r:{"default":r},a=void 0},4524:function(e,t){"use strict";t.__esModule=!0,t.isDef=function(e){return e!==undefined&&null!==e},t.isKorean=function(e){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e)}},6200:function(e,t,n){"use strict";var r=n(477)(n(9367));t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=undefined;var i="function"==typeof Symbol&&"symbol"===(0,r["default"])(Symbol.iterator)?function(e){return(0,r["default"])(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,r["default"])(e)};t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isHtmlElement=function(e){return e&&e.nodeType===Node.ELEMENT_NODE};var o,a=n(4478),s=(o=a)&&o.__esModule?o:{"default":o},u=function(e){return e&&"[object Function]"==={}.toString.call(e)};"object"===("undefined"==typeof Int8Array?"undefined":i(Int8Array))||!s["default"].prototype.$isServer&&"function"==typeof document.childNodes||(t.isFunction=u=function(e){return"function"==typeof e||!1}),t.isFunction=u,t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return e!==undefined&&null!==e}},2417:function(e,t,n){"use strict";var r=n(477)(n(9367));t.__esModule=!0,t.isMac=t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=undefined;var i="function"==typeof Symbol&&"symbol"===(0,r["default"])(Symbol.iterator)?function(e){return(0,r["default"])(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,r["default"])(e)};t.noop=function(){},t.hasOwn=function(e,t){return c.call(e,t)},t.toObject=function(e){for(var t={},n=0;n0&&arguments[0]!==undefined?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var d=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},f=(t.arrayFind=function(e,t){var n=d(e,t);return-1!==n?e[n]:undefined},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!s["default"].prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!s["default"].prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!s["default"].prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==(void 0===e?"undefined":i(e)))return e;var t=["ms-","webkit-"];return["transform","transition","animation"].forEach((function(n){var r=e[n];n&&r&&t.forEach((function(t){e[t+n]=r}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,u.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,u.isObject)(e),r=(0,u.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}),p=t.arrayEquals=function(e,t){if(t=t||[],(e=e||[]).length!==t.length)return!1;for(var n=0;n0&&arguments[0]!==undefined?arguments[0]:{},i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||e.contains(r.target)||e.contains(i.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(t.expression&&e[u].methodName&&n.context[e[u].methodName]?n.context[e[u].methodName]():e[u].bindingFn&&e[u].bindingFn())}}!o["default"].prototype.$isServer&&(0,a.on)(document,"mousedown",(function(e){return i=e})),!o["default"].prototype.$isServer&&(0,a.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[u].documentHandler(e,i)}))})),t["default"]={bind:function(e,t,n){s.push(e);var r=c++;e[u]={id:r,documentHandler:l(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[u].documentHandler=l(e,t,n),e[u].methodName=t.expression,e[u].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n-1}t.once=function(e,t,n){d(e,t,(function r(){n&&n.apply(this,arguments),f(e,t,r)}))};var h=t.getStyle=u<9?function(e,t){if(!o){if(!e||!t)return null;"float"===(t=l(t))&&(t="styleFloat");try{if("opacity"===t)try{return e.filters.item("alpha").opacity/100}catch(n){return 1}return e.style[t]||e.currentStyle?e.currentStyle[t]:null}catch(n){return e.style[t]}}}:function(e,t){if(!o){if(!e||!t)return null;"float"===(t=l(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(r){return e.style[t]}}},g=t.isScroll=function(e,t){if(!o){var n=null!==t&&t!==undefined;return h(e,n?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!o){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(g(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(o||!e||!t)return!1;var n,r=e.getBoundingClientRect();return n=[window,document,document.documentElement,null,undefined].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),r.topn.top&&r.right>n.left&&r.left=0)return!1;if((e=t[e]||e)in Prism.languages)return!0;var r=n[e];return r&&!r.error&&!1===r.loading}function d(r,i,o){"string"==typeof r&&(r=[r]);var a=r.length,s=0,u=!1;function p(){u||++s===a&&i&&i(r)}0!==a?r.forEach((function(r){!function(r,i,o){var a=r.indexOf("!")>=0;function s(){var e=n[r];e||(e=n[r]={callbacks:[]}),e.callbacks.push({success:i,error:o}),!a&&l(r)?f(r,"success"):!a&&e.error?f(r,"error"):!a&&e.loading||(e.loading=!0,e.error=!1,function(e,t,n){var r=document.createElement("script");r.src=e,r.async=!0,r.onload=function(){document.body.removeChild(r),t&&t()},r.onerror=function(){document.body.removeChild(r),n&&n()},document.body.appendChild(r)}(function(e){return c.languages_path+"prism-"+e+(c.use_minified?".min":"")+".js"}(r),(function(){e.loading=!1,f(r,"success")}),(function(){e.loading=!1,e.error=!0,f(r,"error")})))}r=r.replace("!",""),r=t[r]||r;var u=e[r];u&&u.length?d(u,s,o):s()}(r,p,(function(){u||(u=!0,o&&o(r))}))})):i&&setTimeout(i,0)}function f(e,t){if(n[e]){for(var r=n[e].callbacks,i=0,o=r.length;i=d.reach);E+=w.value.length,w=w.next){var A=w.value;if(t.length>e.length)return;if(!(A instanceof o)){var x,C=1;if(_){if(!(x=a(k,E,e,v))||x.index>=e.length)break;var I=x.index,D=x.index+x[0].length,O=E;for(O+=w.value.length;I>=O;)O+=(w=w.next).value.length;if(E=O-=w.value.length,w.value instanceof o)continue;for(var S=w;S!==t.tail&&(Od.reach&&(d.reach=P);var F=w.prev;if(M&&(F=c(t,F,M),E+=M.length),l(t,F,C),w=c(t,F,new o(f,m?i.tokenize(T,m):T,y,T)),N&&c(t,w,N),C>1){var L={cause:f+","+h,reach:P};s(e,t,n,w.prev,E,L),d&&L.reach>d.reach&&(d.reach=L.reach)}}}}}}function u(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function l(e,t,n){for(var r=t.next,i=0;i"+r.content+""},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var d=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),"undefined"!=typeof n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},r.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{"function":/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,"function":{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,"function":/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],"function":/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",i="loaded",o="pre[data-src]:not(["+t+'="'+i+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",(function(e){e.selector+=", "+o})),r.hooks.add("before-sanity-check",(function(a){var s=a.element;if(s.matches(o)){a.code="",s.setAttribute(t,n);var u=s.appendChild(document.createElement("CODE"));u.textContent="Loading…";var c=s.getAttribute("data-src"),l=a.language;if("none"===l){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];l=e[d]||d}r.util.setLanguage(u,l),r.util.setLanguage(s,l);var f=r.plugins.autoloader;f&&f.loadLanguages(l),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(c,(function(e){s.setAttribute(t,i);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,undefined]:[n,n]}return undefined}(s.getAttribute("data-range"));if(n){var o=e.split(/\r\n?|\n/g),a=n[0],c=null==n[1]?o.length:n[1];a<0&&(a+=o.length),a=Math.max(0,Math.min(a-1,o.length)),c<0&&(c+=o.length),c=Math.max(0,Math.min(c,o.length)),e=o.slice(a,c).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}u.textContent=e,r.highlightElement(u)}),(function(e){s.setAttribute(t,"failed"),u.textContent=e}))}})),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(o),i=0;t=n[i++];)r.highlightElement(t)}};var a=!1;r.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},8926:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var i=r(n(87)),o=r(n(1452)),a=r(n(8928));t.A={components:{TkComments:i["default"],TkFooter:o["default"],TkAdmin:a["default"]},data:function(){return{showAdmin:!1,showAdminEntry:!1}},methods:{onShowAdminEntry:function(e){this.showAdminEntry=e}}}},3397:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var i=r(n(3491)),o=r(n(6370)),a=r(n(6359)),s=r(n(5910));t.A={data:function(){return{iconComment:i["default"],iconCommentSolid:o["default"],iconLike:a["default"],iconLikeSolid:s["default"]}},props:{liked:Boolean,likeCount:Number,repliesCount:Number},computed:{likeCountStr:function(){return this.likeCount>0?"".concat(this.likeCount):""},repliesCountStr:function(){return this.repliesCount>0?"".concat(this.repliesCount):""}},methods:{onLike:function(e){e.preventDefault(),this.$emit("like")},onReply:function(e){e.preventDefault(),this.$emit("reply")}}}},4238:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var i=r(n(479)),o=r(n(4964)),a=r(n(2889)),s=r(n(2015)),u=r(n(4880)),c=r(n(9985)),l=r(n(9097)),d=n(8129),f=r(n(9671));t.A={components:{TkAdminComment:s["default"],TkAdminConfig:u["default"],TkAdminImport:c["default"],TkAdminExport:l["default"]},props:{show:Boolean},data:function(){return{iconClose:f["default"],loading:!0,version:"",needUpdate:!1,isLogin:!1,isSetPassword:!0,isSetCredentials:!1,credentials:"",password:"",passwordConfirm:"",loginErrorMessage:"",activeTabName:"comment"}},computed:{canRegist:function(){return!this.isSetPassword&&!!this.password&&this.password===this.passwordConfirm&&(this.isSetCredentials||this.credentials)}},methods:{t:d.t,onLogin:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n,r;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.password){t.next=3;break}return e.loginErrorMessage=(0,d.t)("ADMIN_PASSWORD_REQUIRED"),t.abrupt("return");case 3:return e.loading=!0,e.loginErrorMessage="",n=(0,a["default"])(e.password),t.next=8,(0,d.call)(e.$tcb,"LOGIN",{password:n});case 8:if(!(r=t.sent).result.message){t.next=13;break}e.loginErrorMessage=r.result.message,t.next=28;break;case 13:if(!r.result.ticket){t.next=27;break}return t.prev=14,t.next=17,e.$tcb.auth.customAuthProvider().signIn(r.result.ticket);case 17:d.logger.log("登录成功"),e.password="",e.checkAuth(),t.next=25;break;case 22:t.prev=22,t.t0=t["catch"](14),d.logger.error("登录失败",t.t0);case 25:t.next=28;break;case 27:0===r.result.code&&(d.logger.log("登录成功"),localStorage.setItem("twikoo-access-token",n),e.password="",e.checkAuth());case 28:e.loading=!1;case 29:case"end":return t.stop()}}),t,null,[[14,22]])})))()},onLogout:function(e){var t=this;return(0,o["default"])(i["default"].mark((function n(){return i["default"].wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.preventDefault(),t.loading=!0,!t.$tcb){n.next=9;break}return n.next=5,t.$tcb.auth.signOut();case 5:return n.next=7,t.$tcb.auth.anonymousAuthProvider().signIn();case 7:n.next=10;break;case 9:localStorage.removeItem("twikoo-access-token");case 10:t.isLogin=!1,t.loading=!1;case 12:case"end":return n.stop()}}),n)})))()},onRegist:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n,r;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,n=(0,a["default"])(e.password),t.next=4,(0,d.call)(e.$tcb,"SET_PASSWORD",{password:n,credentials:e.credentials});case 4:(r=t.sent).result.code?(e.loginErrorMessage=(0,d.t)("ADMIN_REGIST_FAILED"),r.result.message&&(e.loginErrorMessage+=","+r.result.message),d.logger.warn("Twikoo 注册失败",r)):(e.passwordMd5="",e.isSetPassword=!0,e.onLogin()),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},onShow:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.checkAuth();case 3:if(e.isLogin){t.next=7;break}return t.next=6,e.checkIfPasswordSet();case 6:e.focusPassword();case 7:e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},focusPassword:function(){var e=this;setTimeout((function(){e.$refs.focusme&&e.$refs.focusme.focus()}),500)},checkAuth:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n,r;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.$tcb){t.next=7;break}return t.next=3,e.$tcb.auth.getCurrenUser();case 3:n=t.sent,e.isLogin="CUSTOM"===n.loginType,t.next=11;break;case 7:return t.next=9,(0,d.call)(e.$tcb,"GET_CONFIG");case 9:(r=t.sent)&&r.result&&r.result.config&&(e.isLogin=r.result.config.IS_ADMIN);case 11:case"end":return t.stop()}}),t)})))()},checkIfPasswordSet:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,d.call)(e.$tcb,"GET_PASSWORD_STATUS");case 3:n=t.sent,e.version=n.result.version,e.isSetPassword=n.result.status,e.isSetCredentials=!e.$tcb,t.next=14;break;case 9:throw t.prev=9,t.t0=t["catch"](0),e.needUpdate=!0,e.loading=!1,t.t0;case 14:case"end":return t.stop()}}),t,null,[[0,9]])})))()},onClose:function(e){e.preventDefault(),this.$emit("close")}},watch:{show:function(e){e&&this.onShow()}}}},4555:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var i=r(n(479)),o=r(n(4964)),a=n(1085),s=n(8129),u=n(2199),c=r(n(7163)),l=r(n(6431));t.A={components:{TkAvatar:c["default"],TkPagination:l["default"]},data:function(){return{loading:!0,comments:[],serverConfig:{},serverVersion:this.$twikoo.serverConfig.VERSION,clientVersion:u.version,count:0,pageSize:5,currentPage:1,filter:{keyword:"",type:""}}},methods:{t:s.t,displayCreated:function(e){return(0,s.timeago)(e.created)},convertLink:function(e){return(0,s.convertLink)(e)},getComments:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,(0,s.call)(e.$tcb,"COMMENT_GET_FOR_ADMIN",{per:e.pageSize,page:e.currentPage,keyword:e.filter.keyword,type:e.filter.type});case 3:(n=t.sent).result&&!n.result.code&&(e.count=n.result.count,e.comments=n.result.data),e.$nextTick((function(){(0,s.renderLinks)(e.$refs.comments),(0,s.renderMath)(e.$refs["comment-list"],e.$twikoo.katex),e.highlightCode()})),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},getConfig:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.call)(e.$tcb,"GET_CONFIG_FOR_ADMIN");case 2:(n=t.sent).result&&!n.result.code&&(e.serverConfig=n.result.config,e.checkConfig());case 4:case"end":return t.stop()}}),t)})))()},checkConfig:function(){var e=this;this.serverConfig.HIGHLIGHT||(this.serverConfig.HIGHLIGHT="true");var t={},n=localStorage.getItem("twikoo");n&&(t=JSON.parse(n)),["nick","mail","avatar"].forEach((function(n){t[n]?e.serverConfig[n]=t[n]:e.serverConfig[n]=""})),!t.nick&&this.serverConfig.BLOGGER_NICK&&(t.nick=this.serverConfig.BLOGGER_NICK),!t.mail&&this.serverConfig.BLOGGER_EMAIL&&(t.mail=this.serverConfig.BLOGGER_EMAIL),!t.link&&this.serverConfig.SITE_URL&&(t.link=this.serverConfig.SITE_URL),localStorage.setItem("twikoo",JSON.stringify(t)),a.app.$emit("initMeta")},onPageSizeChange:function(e){this.pageSize=e,this.getComments()},switchPage:function(e){this.currentPage=e,this.getComments()},handleView:function(e){window.open("".concat(e.url,"#").concat(e._id))},handleDelete:function(e){var t=this;return(0,o["default"])(i["default"].mark((function n(){return i["default"].wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(confirm((0,s.t)("ADMIN_COMMENT_DELETE_CONFIRM"))){n.next=2;break}return n.abrupt("return");case 2:return t.loading=!0,n.next=5,(0,s.call)(t.$tcb,"COMMENT_DELETE_FOR_ADMIN",{id:e._id});case 5:return n.next=7,t.getComments();case 7:t.loading=!1;case 8:case"end":return n.stop()}}),n)})))()},handleSpam:function(e,t){this.setComment(e,{isSpam:t})},handleTop:function(e,t){this.setComment(e,{top:t})},setComment:function(e,t){var n=this;return(0,o["default"])(i["default"].mark((function r(){return i["default"].wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n.loading=!0,r.next=3,(0,s.call)(n.$tcb,"COMMENT_SET_FOR_ADMIN",{id:e._id,set:t});case 3:return r.next=5,n.getComments();case 5:n.loading=!1;case 6:case"end":return r.stop()}}),r)})))()},highlightCode:function(){"true"===this.serverConfig.HIGHLIGHT&&(0,s.renderCode)(this.$refs["comment-list"],this.serverConfig.HIGHLIGHT_THEME)}},mounted:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.getConfig(),e.getComments()]);case 2:e.highlightCode();case 3:case"end":return t.stop()}}),t)})))()}}},4868:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var i=r(n(479)),o=r(n(4964)),a=n(8129),s=n(2199);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&this.$refs["tk-replies"]&&(this.hasExpand=this.$refs["tk-replies"].scrollHeight>236)},scrollToComment:function(){-1!==window.location.hash.indexOf(this.comment.id)&&(this.$refs["tk-comment"].scrollIntoView(),this.$emit("expand"))},onLike:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.likeLoading){t.next=2;break}return t.abrupt("return");case 2:return e.likeLoading=!0,t.next=5,(0,a.call)(e.$tcb,"COMMENT_LIKE",{id:e.comment.id});case 5:e.liked?e.like--:e.like++,e.liked=!e.liked,e.likeLoading=!1;case 8:case"end":return t.stop()}}),t)})))()},onReply:function(){this.$emit("reply",this.comment.id)},onReplyReply:function(e){this.pid=e,this.$emit("reply",this.comment.id)},onCancel:function(){this.pid="",this.$emit("reply","")},onLoad:function(){this.pid="",this.$emit("reply",""),this.$emit("load"),this.onExpand()},onExpand:function(){this.isExpanded=!0},onCollapse:function(){this.isExpanded=!1},checkAuth:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.$tcb){t.next=7;break}return t.next=3,e.$tcb.auth.getCurrenUser();case 3:n=t.sent,e.isLogin="CUSTOM"===n.loginType,t.next=8;break;case 7:e.isLogin=e.$twikoo.serverConfig&&e.$twikoo.serverConfig.IS_ADMIN;case 8:case"end":return t.stop()}}),t)})))()},handleSpam:function(e,t){t.preventDefault(),this.setComment({isSpam:e})},handleTop:function(e,t){t.preventDefault(),this.setComment({top:e})},popupLightbox:function(e){if("true"===this.$twikoo.serverConfig.LIGHTBOX){var t=e.target;if("IMG"===t.tagName&&!t.classList.contains("tk-owo-emotion")){var n=document.createElement("div");n.className="tk-lightbox";var r=document.createElement("img");r.className="tk-lightbox-image",r.src=t.src,n.appendChild(r),n.addEventListener("click",(function(){document.body.removeChild(n)})),document.body.appendChild(n)}}},setComment:function(e){var t=this;return(0,o["default"])(i["default"].mark((function n(){return i["default"].wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,n.next=3,(0,a.call)(t.$tcb,"COMMENT_SET_FOR_ADMIN",{id:t.comment.id,set:e});case 3:t.loading=!1,t.$emit("load");case 5:case"end":return n.stop()}}),n)})))()}},mounted:function(){var e=this;this.$nextTick(this.showExpandIfNeed),this.$nextTick(this.scrollToComment),this.$nextTick((function(){(0,a.renderLinks)(e.$refs.comment),(0,a.renderMath)(e.$refs.comment,e.$twikoo.katex)})),this.checkAuth()},watch:{"comment.like":{handler:function(e){this.like=this.comment.like,this.liked=this.comment.liked},immediate:!0},"config.HIGHLIGHT":{handler:function(e){var t=this;"true"===e&&this.$nextTick((function(){(0,a.renderCode)(t.$refs.comment,t.config.HIGHLIGHT_THEME)}))},immediate:!0}}}},4333:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var i=r(n(479)),o=r(n(4964)),a=n(8129),s=r(n(4494)),u=r(n(500)),c=r(n(504)),l=r(n(9966)),d=r(n(4478));t.A={components:{TkSubmit:s["default"],TkComment:u["default"]},props:{showAdminEntry:Boolean},data:function(){return{loading:!0,loadingMore:!1,errorMessage:"",config:{},comments:[],showExpand:!0,count:0,replyId:"",iconSetting:c["default"],iconRefresh:l["default"]}},methods:{t:a.t,initConfig:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.call)(e.$tcb,"GET_CONFIG");case 2:(n=t.sent)&&n.result&&n.result.config&&(e.config=n.result.config,d["default"].prototype.$twikoo.serverConfig=n.result.config);case 4:case"end":return t.stop()}}),t)})))()},initComments:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,n=(0,a.getUrl)(e.$twikoo.path),t.next=4,e.getComments({url:n});case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},refresh:function(){this.comments=[],this.initComments()},onExpand:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n,r;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.loadingMore){t.next=2;break}return t.abrupt("return");case 2:return e.loadingMore=!0,n=(0,a.getUrl)(e.$twikoo.path),r=e.comments.filter((function(e){return!e.top})).map((function(e){return e.created})).sort((function(e,t){return e-t}))[0],t.next=7,e.getComments({url:n,before:r});case 7:e.loadingMore=!1;case 8:case"end":return t.stop()}}),t)})))()},onCommentLoaded:function(){"function"==typeof this.$twikoo.onCommentLoaded&&this.$twikoo.onCommentLoaded()},getComments:function(e){var t=this;return(0,o["default"])(i["default"].mark((function n(){var r;return i["default"].wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,a.call)(t.$tcb,"COMMENT_GET",e);case 3:(r=n.sent)&&r.result&&r.result.data&&(t.comments=e.before?t.comments.concat(r.result.data):r.result.data,t.showExpand=r.result.more,t.count=r.result.count||t.comments.length||0,t.$nextTick(t.onCommentLoaded)),n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](0),t.errorMessage=n.t0.message;case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))()},onReply:function(e){this.replyId=e},openAdmin:function(){this.$emit("admin")}},mounted:function(){this.initConfig(),this.initComments()}}},418:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var i=r(n(479)),o=r(n(4964)),a=n(2199),s=n(8129);t.A={data:function(){return{version:a.version,counter:{}}},methods:{getCounter:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n,r,o,a;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=document.getElementById("twikoo_visitors")){t.next=3;break}return t.abrupt("return");case 3:if(-1===["localhost","127.0.0.1","0.0.0.0"].indexOf(window.location.hostname)){t.next=5;break}return t.abrupt("return");case 5:return r=(0,s.getUrl)(e.$twikoo.path),o=(0,s.getHref)(e.$twikoo.href),t.next=9,(0,s.call)(e.$tcb,"COUNTER_GET",{url:r,href:o,title:document.title});case 9:a=t.sent,e.counter=a.result,(e.counter.time||0===e.counter.time)&&(n.innerHTML=e.counter.time);case 12:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.getCounter()}}},2362:function(e,t,n){"use strict";Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(1085),i=n(8129),o=/^[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])?)*$/;t.A={props:{nick:String,mail:String,link:String,config:Object},data:function(){return{metaInputs:[{key:"nick",locale:(0,i.t)("META_INPUT_NICK"),name:"nick",type:"text"},{key:"mail",locale:(0,i.t)("META_INPUT_MAIL"),name:"mail",type:"email"},{key:"link",locale:(0,i.t)("META_INPUT_LINK"),name:"link",type:"text"}],metaData:{nick:"",mail:"",link:""}}},computed:{displayedFields:function(){var e=this.config.DISPLAYED_FIELDS;return{nick:!e||-1!==e.indexOf("nick"),mail:!e||-1!==e.indexOf("mail"),link:!e||-1!==e.indexOf("link")}},displayedInputs:function(){var e=this;return this.metaInputs.filter((function(t){return!!e.displayedFields[t.key]}))},requiredFields:function(){var e=this.config.REQUIRED_FIELDS;return{nick:!e||-1!==e.indexOf("nick"),mail:!e||-1!==e.indexOf("mail"),link:!!e&&-1!==e.indexOf("link")}}},methods:{t:i.t,initMeta:function(){var e=localStorage.getItem("twikoo");if(e){var t=JSON.parse(e);this.metaData.nick=t.nick,this.metaData.mail=t.mail,this.metaData.link=t.link}this.updateMeta()},updateMeta:function(){localStorage.setItem("twikoo",JSON.stringify(this.metaData)),this.$emit("update",{meta:this.metaData,valid:this.checkValid()})},checkValid:function(){var e=o.test(this.metaData.mail);return(this.metaData.nick||!this.requiredFields.nick)&&(e||!this.requiredFields.mail)&&(this.metaData.link||!this.requiredFields.link)},checkQQ:function(){if((0,i.isQQ)(this.metaData.nick)){var e=this.metaData.nick.replace(/@qq.com/gi,""),t="".concat(e,"@qq.com");this.metaData.mail=t,this.getQQNick(e)}},getQQNick:function(e){var t=this,n="https://api.qjqq.cn/api/qqinfo?qq=".concat(e),r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState&&200===r.status){var e=JSON.parse(r.responseText);t.metaData.nick=e.name,t.updateMeta()}},r.open("GET",n),r.send()},checkAdminCrypt:function(){var e=this.$root.$children[0],t=!this.config.HIDE_ADMIN_CRYPT||this.config.HIDE_ADMIN_CRYPT===this.metaData.nick;e.onShowAdminEntry(t)},onMetaChange:function(){this.checkQQ(),this.updateMeta(),this.checkAdminCrypt()}},watch:{nick:function(e){this.metaData.nick=e},mail:function(e){this.metaData.mail=e},link:function(e){this.metaData.link=e},requiredFields:{handler:function(e,t){this.$emit("update",{meta:this.metaData,valid:this.checkValid()})},deep:!0},"config.VERSION":function(){this.checkAdminCrypt()}},mounted:function(){r.app.$on("initMeta",this.initMeta),this.initMeta()}}},9171:function(e,t,n){"use strict";Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(8129);t.A={props:{pageSize:{type:Number,"default":10},total:{type:Number,"default":0}},data:function(){return{currentPage:1,userInput:0,userPageSize:0,pagers:[]}},computed:{pageCount:function(){return Math.ceil(this.total/this.pageSize)}},methods:{t:r.t,generatePager:function(){for(var e=[],t=1;t<=this.pageCount;t++)Math.abs(this.currentPage-t)<3||1===t||t===this.pageCount?e.push({title:"".concat(t),page:t}):Math.abs(this.currentPage-t)<4&&e.push({title:"...",page:t});this.pagers=e},currentChange:function(e){this.currentPage=parseInt(e),this.currentPage>this.pageCount&&(this.currentPage=this.pageCount),this.userInput=0,this.$emit("current-change",this.currentPage),this.generatePager()},pageSizeChamge:function(e){this.userPageSize=0,this.$emit("page-size-change",parseInt(e))},handleInput:function(e){this.userInput=parseInt(e)},handleInputPageSize:function(e){this.userPageSize=parseInt(e)}},watch:{total:{handler:function(){this.generatePager()},immediate:!0},pageSize:{handler:function(){this.generatePager()}}}}},147:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var i=r(n(479)),o=r(n(4964)),a=r(n(1423)),s=r(n(6639)),u=r(n(5171)),c=r(n(2573)),l=r(n(7163)),d=r(n(3415)),f=n(8129),p=r(n(1628)),h=["apng","bmp","gif","jpeg","jpg","png","svg","tif","tiff","webp"];t.A={components:{TkAvatar:l["default"],TkMetaInput:d["default"]},directives:{Clickoutside:c["default"]},props:{replyId:String,pid:String,config:Object},data:function(){return{isSending:!1,isPreviewing:!1,isMetaValid:!1,errorMessage:"",owo:null,comment:"",commentHtml:"",nick:"",mail:"",link:"",turnstileLoad:null,iconMarkdown:a["default"],iconEmotion:s["default"],iconImage:u["default"]}},computed:{canSend:function(){return!this.isSending&&!!this.isMetaValid&&!!this.comment.trim()},textarea:function(){return this.$refs.textarea?this.$refs.textarea.$refs.textarea:null},commentPlaceholder:function(){var e=this.$twikoo.placeholder||this.config.COMMENT_PLACEHOLDER||"";return e=e.replace(/
/g,"\n")},maxLength:function(){var e=parseInt(this.config.LIMIT_LENGTH);return Number.isNaN(e)&&(e=500),e>0?e:null}},methods:{t:f.t,initDraft:function(){var e=localStorage.getItem("twikoo-draft");!this.comment&&e&&(this.comment=e)},saveDraft:function(){localStorage.setItem("twikoo-draft",this.comment)},initOwo:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("true"!==e.config.SHOW_EMOTION){t.next=6;break}return t.next=3,(0,f.initOwoEmotions)(e.config.EMOTION_CDN||"https://owo.imaegoo.com/owo.json");case 3:n=t.sent,e.owo=new p["default"]({logo:s["default"],container:e.$refs.owo,target:e.textarea,odata:n,position:"down",maxHeight:"250px"}),f.marked.setOptions({odata:(0,f.initMarkedOwo)(n)});case 6:case"end":return t.stop()}}),t)})))()},initTurnstile:function(){var e=this;this.config.TURNSTILE_SITE_KEY&&(window.turnstile?this.turnstileLoad=Promise.resolve():this.turnstileLoad=new Promise((function(t,n){var r=document.createElement("script");r.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",r.onload=t,r.onerror=n,e.$refs["turnstile-container"].appendChild(r)})))},getTurnstileToken:function(){var e=this;return new Promise((function(t,n){e.turnstileLoad.then((function(){var r=window.turnstile.render(e.$refs.turnstile,{sitekey:e.config.TURNSTILE_SITE_KEY,callback:function(e){t(e),setTimeout((function(){window.turnstile.remove(r)}),5e3)},"error-callback":n})}))}))},onMetaUpdate:function(e){this.nick=e.meta.nick,this.mail=e.meta.mail,this.link=e.meta.link,this.isMetaValid=e.valid},cancel:function(){this.$emit("cancel")},onCommentInput:function(){this.saveDraft(),this.updatePreview()},preview:function(){this.isPreviewing=!this.isPreviewing,this.updatePreview()},updatePreview:function(){var e=this;this.isPreviewing&&(this.commentHtml=(0,f.marked)(this.comment),this.$nextTick((function(){(0,f.renderLinks)(e.$refs["comment-preview"]),(0,f.renderMath)(e.$refs["comment-preview"],e.$twikoo.katex),"true"===e.config.HIGHLIGHT&&(0,f.renderCode)(e.$refs["comment-preview"],e.config.HIGHLIGHT_THEME)})))},send:function(){var e=this;return(0,o["default"])(i["default"].mark((function t(){var n,r;return i["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isSending=!0,t.prev=1,!e.comment.match(new RegExp("!\\[".concat((0,f.t)("IMAGE_UPLOAD_PLACEHOLDER"),".+\\]\\(\\)")))){t.next=4;break}throw new Error((0,f.t)("IMAGE_UPLOAD_PLEASE_WAIT"));case 4:return t.t0=e.nick,t.t1=e.mail,t.t2=e.link,t.next=9,(0,f.getUserAgent)();case 9:if(t.t3=t.sent,t.t4=(0,f.getUrl)(e.$twikoo.path),t.t5=(0,f.getHref)(e.$twikoo.href),t.t6=(0,f.marked)(e.comment),t.t7=e.pid?e.pid:e.replyId,t.t8=e.replyId,n={nick:t.t0,mail:t.t1,link:t.t2,ua:t.t3,url:t.t4,href:t.t5,comment:t.t6,pid:t.t7,rid:t.t8},!e.config.TURNSTILE_SITE_KEY){t.next=20;break}return t.next=19,e.getTurnstileToken();case 19:n.turnstileToken=t.sent;case 20:return t.next=22,(0,f.call)(e.$tcb,"COMMENT_SUBMIT",n);case 22:if(!((r=t.sent)&&r.result&&r.result.id)){t.next=30;break}e.comment="",e.errorMessage="",e.$emit("load"),e.saveDraft(),t.next=31;break;case 30:throw new Error(r.result.message);case 31:t.next=37;break;case 33:t.prev=33,t.t9=t["catch"](1),f.logger.error("评论失败",t.t9),e.errorMessage="".concat((0,f.t)("COMMENT_FAILED"),": ").concat(t.t9&&t.t9.message);case 37:return t.prev=37,e.isSending=!1,t.finish(37);case 40:case"end":return t.stop()}}),t,null,[[1,33,37,40]])})))()},addEventListener:function(){this.textarea&&this.textarea.addEventListener("paste",this.onPaste)},onBgImgChange:function(){this.config.COMMENT_BG_IMG&&this.textarea&&(this.textarea.style["background-image"]='url("'.concat(this.config.COMMENT_BG_IMG,'")'))},onEnterKeyUp:function(e){(e.ctrlKey||e.metaKey)&&this.canSend&&(this.send(),e.preventDefault())},closeOwo:function(){this.owo&&this.owo.container.classList.contains("OwO-open")&&this.owo.toggle()},openSelectImage:function(){this.$refs.inputFile.click()},onSelectImage:function(){var e=this.$refs.inputFile.files[0];this.parseAndUploadPhoto(e)},onPaste:function(e){var t;e.clipboardData&&(e.clipboardData.files[0]?t=e.clipboardData.files[0]:e.clipboardData.items[0]&&e.clipboardData.items[0].getAsFile()&&(t=e.clipboardData.items[0].getAsFile()),this.parseAndUploadPhoto(t))},parseAndUploadPhoto:function(e){if(e&&"true"===this.config.SHOW_IMAGE){var t=e.name.split("."),n=t.length>1?t.pop():"";if(-1!==h.indexOf(n.toLowerCase())){var r=this.getUserId(),i="".concat(Date.now(),"-").concat(r),o=t.join(".");this.paste(this.getImagePlaceholder(i,n));var a=this.config.IMAGE_CDN;!this.$tcb||a&&"qcloud"!==a?a?this.uploadPhotoToThirdParty(i,o,n,e):this.uploadFailed(i,n,(0,f.t)("IMAGE_UPLOAD_FAILED_NO_CONF")):this.uploadPhotoToQcloud(i,o,n,e)}}},getUserId:function(){return this.$tcb?this.$tcb.auth.currentUser.uid:localStorage.getItem("twikoo-access-token")},uploadPhotoToQcloud:function(e,t,n,r){var a=this;return(0,o["default"])(i["default"].mark((function s(){var o,u,c;return i["default"].wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,a.$tcb.app.uploadFile({cloudPath:"tk-img/".concat(e,".").concat(n),filePath:r});case 3:if(!(o=i.sent).fileID){i.next=10;break}return i.next=7,a.$tcb.app.getTempFileURL({fileList:[o.fileID]});case 7:u=i.sent,c=u.fileList[0].tempFileURL,a.uploadCompleted(e,t,n,c);case 10:i.next=16;break;case 12:i.prev=12,i.t0=i["catch"](0),console.error(i.t0),a.uploadFailed(e,n,i.t0.message);case 16:case"end":return i.stop()}}),s,null,[[0,12]])})))()},uploadPhotoToThirdParty:function(e,t,n,r){var a=this;return(0,o["default"])(i["default"].mark((function s(){var o,u,c;return i["default"].wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.t0=f.call,i.t1=a.$tcb,i.t2="".concat(e,".").concat(n),i.next=6,(0,f.blobToDataURL)(r);case 6:return i.t3=i.sent,i.t4={fileName:i.t2,photo:i.t3},i.next=10,(0,i.t0)(i.t1,"UPLOAD_IMAGE",i.t4);case 10:u=i.sent,(c=u.result).data?a.uploadCompleted(e,t,n,c.data.url):1040===c.code&&c.err&&(o=c.err.match(/this image exists at: (http[^ ]+)/))?(console.warn(c),a.uploadCompleted(e,t,n,o[1])):(console.error(c),a.uploadFailed(e,n,c.err)),i.next=19;break;case 15:i.prev=15,i.t5=i["catch"](0),console.error(i.t5),a.uploadFailed(e,n,i.t5.message);case 19:case"end":return i.stop()}}),s,null,[[0,15]])})))()},uploadCompleted:function(e,t,n,r){t=t.replace(/[[\]]/g,"_"),this.comment=this.comment.replace(this.getImagePlaceholder(e,n),"![".concat(t,"](").concat(r,")")),this.$refs.inputFile.value=""},uploadFailed:function(e,t,n){this.comment=this.comment.replace(this.getImagePlaceholder(e,t),"_".concat((0,f.t)("IMAGE_UPLOAD_FAILED"),": ").concat(n,"_")),this.$refs.inputFile.value=""},paste:function(e){if(document.selection)document.selection.createRange().text=e;else if(this.textarea.selectionStart||0===this.textarea.selectionStart){var t=this.textarea.selectionStart,n=this.textarea.selectionEnd;this.comment=this.comment.substring(0,t)+e+this.comment.substring(n,this.comment.length),this.textarea.selectionStart=t+e.length,this.textarea.selectionEnd=t+e.length}else this.comment+=e},getImagePlaceholder:function(e,t){return"![".concat((0,f.t)("IMAGE_UPLOAD_PLACEHOLDER")," ").concat(e,".").concat(t,"]()")}},mounted:function(){this.initDraft(),this.initOwo(),this.addEventListener(),this.onBgImgChange(),this.initTurnstile()},watch:{"config.SHOW_EMOTION":function(){this.initOwo()},"config.COMMENT_BG_IMG":function(){this.onBgImgChange()},"config.TURNSTILE_SITE_KEY":function(){this.initTurnstile()}}}},1573:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"twikoo",attrs:{id:"twikoo"}},[t("tk-comments",{attrs:{"show-admin-entry":e.showAdminEntry},on:{admin:function(t){e.showAdmin=!0}}}),e._v(" "),t("tk-footer"),e._v(" "),t("tk-admin",{attrs:{show:e.showAdmin},on:{close:function(t){e.showAdmin=!1}}})],1)},t.Yp=[]},8114:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-action"},[t("a",{staticClass:"tk-action-link","class":{"tk-liked":e.liked},attrs:{href:"#"},on:{click:e.onLike}},[t("span",{staticClass:"tk-action-icon",domProps:{innerHTML:e._s(e.iconLike)}}),e._v(" "),t("span",{staticClass:"tk-action-icon tk-action-icon-solid",domProps:{innerHTML:e._s(e.iconLikeSolid)}}),e._v(" "),t("span",{staticClass:"tk-action-count"},[e._v(e._s(e.likeCountStr))])]),e._v(" "),t("a",{staticClass:"tk-action-link",attrs:{href:"#"},on:{click:e.onReply}},[t("span",{staticClass:"tk-action-icon",domProps:{innerHTML:e._s(e.iconComment)}}),e._v(" "),t("span",{staticClass:"tk-action-icon tk-action-icon-solid",domProps:{innerHTML:e._s(e.iconCommentSolid)}}),e._v(" "),t("span",{staticClass:"tk-action-count"},[e._v(e._s(e.repliesCountStr))])])])},t.Yp=[]},6827:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-admin-container"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-admin","class":{__show:e.show}},[t("a",{staticClass:"tk-admin-close",attrs:{href:"#"},domProps:{innerHTML:e._s(e.iconClose)},on:{click:e.onClose}}),e._v(" "),e.needUpdate?t("div",{staticClass:"tk-login-title"},[t("div",[e._v(e._s(e.t("ADMIN_NEED_UPDATE")))]),e._v(" "),t("a",{attrs:{href:"https://twikoo.js.org/update.html",target:"_blank"}},[e._v("https://twikoo.js.org/update.html")])]):e._e(),e._v(" "),e.needUpdate?e._e():t("div",[!e.isLogin&&e.isSetPassword?t("div",{staticClass:"tk-login"},[t("div",{staticClass:"tk-login-title"},[e._v(e._s(e.t("ADMIN_LOGIN_TITLE")))]),e._v(" "),t("input",{attrs:{type:"hidden"}}),e._v(" "),t("el-input",{ref:"focusme",staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_PASSWORD_PLACEHOLDER"),"show-password":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onLogin.apply(null,arguments)}},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_PASSWORD")))]),e._v(" "),t("el-button",{attrs:{slot:"append"},on:{click:e.onLogin},slot:"append"},[e._v(e._s(e.t("ADMIN_LOGIN")))])],2),e._v(" "),e.loginErrorMessage?t("div",{staticClass:"tk-login-msg"},[e._v("\n "+e._s(e.loginErrorMessage)+"\n "),t("a",{attrs:{href:"https://twikoo.js.org/faq.html",rel:"noopener noreferrer",target:"_blank"}},[e._v(e._s(e.t("ADMIN_FORGOT")))])]):e._e()],1):e._e(),e._v(" "),e.isLogin||e.isSetPassword?e._e():t("div",{staticClass:"tk-regist"},[t("div",{staticClass:"tk-login-title"},[e._v(e._s(e.t("ADMIN_LOGIN_TITLE")))]),e._v(" "),e.isSetCredentials?e._e():t("el-input",{ref:"focusme",staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_CREDENTIALS_PLACEHOLDER")},model:{value:e.credentials,callback:function(t){e.credentials=t},expression:"credentials"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_CREDENTIALS")))])],2),e._v(" "),t("el-input",{staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_SET_PASSWORD_PLACEHOLDER"),"show-password":""},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_SET_PASSWORD")))])],2),e._v(" "),t("el-input",{staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_SET_PASSWORD_CONFIRM_PLACEHOLDER"),"show-password":""},model:{value:e.passwordConfirm,callback:function(t){e.passwordConfirm=t},expression:"passwordConfirm"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_SET_PASSWORD_CONFIRM")))])],2),e._v(" "),t("el-button",{staticClass:"tk-regist-button",attrs:{disabled:!e.canRegist},on:{click:e.onRegist}},[e._v(e._s(e.t("ADMIN_REGIST")))]),e._v(" "),e.loginErrorMessage?t("div",{staticClass:"tk-login-msg"},[e._v(e._s(e.loginErrorMessage))]):e._e(),e._v(" "),e.isSetCredentials?e._e():t("div",{staticClass:"tk-login-msg"},[t("a",{attrs:{href:"https://twikoo.js.org/faq.html",rel:"noopener noreferrer",target:"_blank"}},[e._v(e._s(e.t("ADMIN_CREDENTIALS_FAQ")))])])],1),e._v(" "),e.isLogin?t("div",{staticClass:"tk-panel"},[t("div",{staticClass:"tk-panel-title"},[t("div",[e._v(e._s(e.t("ADMIN_TITLE")))]),e._v(" "),t("a",{staticClass:"tk-panel-logout",attrs:{href:"#"},on:{click:e.onLogout}},[e._v(e._s(e.t("ADMIN_LOGOUT")))])]),e._v(" "),t("div",{staticClass:"tk-tabs"},[t("div",{staticClass:"tk-tab","class":{__active:"comment"===e.activeTabName},on:{click:function(t){e.activeTabName="comment"}}},[e._v(e._s(e.t("ADMIN_COMMENT")))]),e._v(" "),t("div",{staticClass:"tk-tab","class":{__active:"config"===e.activeTabName},on:{click:function(t){e.activeTabName="config"}}},[e._v(e._s(e.t("ADMIN_CONFIG")))]),e._v(" "),t("div",{staticClass:"tk-tab","class":{__active:"import"===e.activeTabName},on:{click:function(t){e.activeTabName="import"}}},[e._v(e._s(e.t("ADMIN_IMPORT")))]),e._v(" "),t("div",{staticClass:"tk-tab","class":{__active:"export"===e.activeTabName},on:{click:function(t){e.activeTabName="export"}}},[e._v(e._s(e.t("ADMIN_EXPORT")))])]),e._v(" "),t("tk-admin-comment",{directives:[{name:"show",rawName:"v-show",value:"comment"===e.activeTabName,expression:"activeTabName === 'comment'"}]}),e._v(" "),t("tk-admin-config",{directives:[{name:"show",rawName:"v-show",value:"config"===e.activeTabName,expression:"activeTabName === 'config'"}]}),e._v(" "),t("tk-admin-import",{directives:[{name:"show",rawName:"v-show",value:"import"===e.activeTabName,expression:"activeTabName === 'import'"}]}),e._v(" "),t("tk-admin-export",{directives:[{name:"show",rawName:"v-show",value:"export"===e.activeTabName,expression:"activeTabName === 'export'"}]})],1):e._e()])])])},t.Yp=[]},7060:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-admin-comment"},[e.clientVersion!==e.serverVersion?t("div",{staticClass:"tk-admin-warn"},[t("span",[e._v(e._s(e.t("ADMIN_CLIENT_VERSION"))+e._s(e.clientVersion)+",")]),e._v(" "),t("span",[e._v(e._s(e.t("ADMIN_SERVER_VERSION"))+e._s(e.serverVersion)+",")]),e._v(" "),e._m(0)]):e._e(),e._v(" "),t("div",{staticClass:"tk-admin-comment-filter"},[t("el-input",{staticClass:"tk-admin-comment-filter-keyword",attrs:{size:"small",placeholder:e.t("ADMIN_COMMENT_SEARCH_PLACEHOLDER")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getComments.apply(null,arguments)}},model:{value:e.filter.keyword,callback:function(t){e.$set(e.filter,"keyword",t)},expression:"filter.keyword"}}),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.type,expression:"filter.type"}],staticClass:"tk-admin-comment-filter-type",on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.filter,"type",t.target.multiple?n:n[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.t("ADMIN_COMMENT_FILTER_ALL")))]),e._v(" "),t("option",{attrs:{value:"VISIBLE"}},[e._v(e._s(e.t("ADMIN_COMMENT_FILTER_VISIBLE")))]),e._v(" "),t("option",{attrs:{value:"HIDDEN"}},[e._v(e._s(e.t("ADMIN_COMMENT_FILTER_HIDDEN")))])]),e._v(" "),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.getComments}},[e._v(e._s(e.t("ADMIN_COMMENT_SEARCH")))])],1),e._v(" "),t("div",{ref:"comment-list",staticClass:"tk-admin-comment-list"},e._l(e.comments,(function(n){return t("div",{key:n._id,staticClass:"tk-admin-comment-item"},[t("div",{staticClass:"tk-admin-comment-meta"},[t("tk-avatar",{attrs:{config:e.serverConfig,avatar:n.avatar,mail:n.mail,link:n.link}}),e._v(" "),n.link?e._e():t("span",[e._v(e._s(n.nick)+" ")]),e._v(" "),n.link?t("a",{attrs:{href:e.convertLink(n.link),target:"_blank"}},[e._v(e._s(n.nick)+" ")]):e._e(),e._v(" "),n.mail?t("span",[e._v("("),t("a",{attrs:{href:"mailto:".concat(n.mail)}},[e._v(e._s(n.mail))]),e._v(") ")]):e._e(),e._v(" "),n.isSpam?t("span",[e._v(e._s(e.t("ADMIN_COMMENT_IS_SPAM_SUFFIX"))+" ")]):e._e(),e._v(" "),t("span",{staticClass:"tk-time"},[e._v(e._s(e.displayCreated(n))+" ")]),e._v(" "),t("span",{attrs:{title:n.ua}},[e._v(e._s(n.ipRegion))])],1),e._v(" "),t("div",{ref:"comments",refInFor:!0,staticClass:"tk-content",domProps:{innerHTML:e._s(n.comment)}}),e._v(" "),t("div",{staticClass:"tk-admin-actions"},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleView(n)}}},[e._v(e._s(e.t("ADMIN_COMMENT_VIEW")))]),e._v(" "),n.isSpam?t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleSpam(n,!1)}}},[e._v(e._s(e.t("ADMIN_COMMENT_SHOW")))]):e._e(),e._v(" "),n.isSpam?e._e():t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleSpam(n,!0)}}},[e._v(e._s(e.t("ADMIN_COMMENT_HIDE")))]),e._v(" "),!n.rid&&n.top?t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleTop(n,!1)}}},[e._v(e._s(e.t("ADMIN_COMMENT_UNTOP")))]):e._e(),e._v(" "),n.rid||n.top?e._e():t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleTop(n,!0)}}},[e._v(e._s(e.t("ADMIN_COMMENT_TOP")))]),e._v(" "),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleDelete(n)}}},[e._v(e._s(e.t("ADMIN_COMMENT_DELETE")))])],1)])})),0),e._v(" "),t("tk-pagination",{attrs:{"page-size":e.pageSize,total:e.count},on:{"page-size-change":e.onPageSizeChange,"current-change":e.switchPage}})],1)},t.Yp=[function(){var e=this,t=e._self._c;return t("span",[e._v("请参考 "),t("a",{attrs:{href:"https://twikoo.js.org/update.html",target:"_blank"}},[e._v("版本更新")]),e._v(" 进行升级")])}]},2584:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-admin-config"},[e.clientVersion!==e.serverVersion?t("div",{staticClass:"tk-admin-warn"},[t("span",[e._v(e._s(e.t("ADMIN_CLIENT_VERSION"))+e._s(e.clientVersion)+",")]),e._v(" "),t("span",[e._v(e._s(e.t("ADMIN_SERVER_VERSION"))+e._s(e.serverVersion)+",")]),e._v(" "),e._m(0)]):e._e(),e._v(" "),t("div",{staticClass:"tk-admin-config-groups"},[e._l(e.settings,(function(n){return t("details",{key:n.name,staticClass:"tk-admin-config-group"},[t("summary",{staticClass:"tk-admin-config-group-title"},[e._v(e._s(n.name))]),e._v(" "),e._l(n.items,(function(n){return t("div",{key:n.key,staticClass:"tk-admin-config-item"},[t("div",{staticClass:"tk-admin-config-title",attrs:{title:n.key}},[e._v(e._s(n.key))]),e._v(" "),t("div",{staticClass:"tk-admin-config-input"},[t("el-input",{attrs:{placeholder:n.ph,size:"small","show-password":n.secret},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"setting.value"}})],1),e._v(" "),t("div"),e._v(" "),t("div",{staticClass:"tk-admin-config-desc"},[e._v(e._s(n.desc))])])}))],2)})),e._v(" "),t("details",{staticClass:"tk-admin-config-group"},[t("summary",{staticClass:"tk-admin-config-group-title"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST")))]),e._v(" "),t("div",{staticClass:"tk-admin-config-email-test"},[t("div",{staticClass:"tk-admin-config-email-test-desc"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST_HELP")))]),e._v(" "),t("div",{staticClass:"tk-admin-config-input"},[t("el-input",{attrs:{size:"small"},model:{value:e.emailTestAddress,callback:function(t){e.emailTestAddress=t},expression:"emailTestAddress"}},[t("el-button",{attrs:{slot:"append",type:"info"},on:{click:e.testEmail},slot:"append"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST_BTN")))])],1)],1),e._v(" "),t("div",{staticClass:"tk-admin-config-email-test-desc"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST_RESULT"))+e._s(e.emailTestResult))])])])],2),e._v(" "),t("div",{staticClass:"tk-admin-config-actions"},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveConfig}},[e._v(e._s(e.t("ADMIN_CONFIG_SAVE")))]),e._v(" "),t("el-button",{attrs:{size:"small",type:"info"},on:{click:e.resetConfig}},[e._v(e._s(e.t("ADMIN_CONFIG_RESET")))])],1),e._v(" "),t("div",{staticClass:"tk-admin-config-message"},[e._v(e._s(e.message))])])},t.Yp=[function(){var e=this,t=e._self._c;return t("span",[e._v("请参考 "),t("a",{attrs:{href:"https://twikoo.js.org/update.html",target:"_blank"}},[e._v("版本更新")]),e._v(" 进行升级")])}]},9976:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-admin-export"},[t("div",{staticClass:"tk-admin-warn tk-admin-import-warn"},[t("p",[e._v(e._s(e.t("ADMIN_EXPORT_WARN")))])]),e._v(" "),t("el-button",{attrs:{size:"small",disabled:e.loading},on:{click:function(t){return e.doExport("comment")}}},[e._v(e._s(e.t("ADMIN_EXPORT_COMMENT")))]),e._v(" "),t("el-button",{attrs:{size:"small",disabled:e.loading},on:{click:function(t){return e.doExport("counter")}}},[e._v(e._s(e.t("ADMIN_EXPORT_COUNTER")))])],1)},t.Yp=[]},872:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-admin-import"},[t("div",{staticClass:"tk-admin-warn tk-admin-import-warn"},[t("p",[e._v(e._s(e.t("ADMIN_IMPORT_WARN")))]),e._v(" "),t("p",[e._v(e._s(e.warnText[e.source]))])]),e._v(" "),t("div",{staticClass:"tk-admin-import-label"},[e._v(e._s(e.t("ADMIN_IMPORT_SELECT_SOURCE")))]),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.source,expression:"source"}],on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.source=t.target.multiple?n:n[0]}}},[t("option",{attrs:{disabled:"",value:""}},[e._v(e._s(e.t("ADMIN_IMPORT_SELECT")))]),e._v(" "),t("option",{attrs:{value:"valine"}},[e._v("Valine (JSON)")]),e._v(" "),t("option",{attrs:{value:"disqus"}},[e._v("Disqus (XML)")]),e._v(" "),t("option",{attrs:{value:"artalk"}},[e._v("Artalk v1 (JSON)")]),e._v(" "),t("option",{attrs:{value:"artalk2"}},[e._v("Artalk v2 (Artrans)")]),e._v(" "),t("option",{attrs:{value:"twikoo"}},[e._v("Twikoo (JSON)")])]),e._v(" "),t("div",{staticClass:"tk-admin-import-label"},[e._v(e._s(e.t("ADMIN_IMPORT_SELECT_FILE")))]),e._v(" "),t("input",{ref:"inputFile",attrs:{type:"file",value:""}}),e._v(" "),t("el-button",{attrs:{size:"small",disabled:e.loading},on:{click:e.uploadFile}},[e._v(e._s(e.t("ADMIN_IMPORT_START")))]),e._v(" "),t("el-input",{ref:"logTextArea",attrs:{type:"textarea",rows:10,placeholder:e.t("ADMIN_IMPORT_LOG"),readonly:""},model:{value:e.logText,callback:function(t){e.logText=t},expression:"logText"}})],1)},t.Yp=[]},6934:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-avatar","class":{"tk-clickable":!!e.link,"tk-has-avatar":!!e.avatarInner},on:{click:e.onClick}},[e.avatarInner?e._e():t("div",{staticClass:"tk-avatar-img",domProps:{innerHTML:e._s(e.iconUser)}}),e._v(" "),e.avatarInner?t("img",{staticClass:"tk-avatar-img",attrs:{src:e.avatarInner,alt:""}}):e._e()])},t.Yp=[]},4196:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{ref:"tk-comment",staticClass:"tk-comment","class":{"tk-master":e.comment.master},attrs:{id:e.comment.id}},[t("tk-avatar",{attrs:{config:e.config,nick:e.comment.nick,avatar:e.comment.avatar,"mail-md5":e.comment.mailMd5,link:e.convertedLink}}),e._v(" "),t("div",{staticClass:"tk-main"},[t("div",{staticClass:"tk-row"},[t("div",{staticClass:"tk-meta"},[e.convertedLink?e._e():t("strong",{staticClass:"tk-nick"},[e._v(e._s(e.comment.nick))]),e._v(" "),e.convertedLink?t("a",{staticClass:"tk-nick tk-nick-link",attrs:{href:e.convertedLink,target:"_blank",rel:"noopener noreferrer"}},[t("strong",[e._v(e._s(e.comment.nick))])]):e._e(),e._v(" "),e.comment.master?t("span",{staticClass:"tk-tag tk-tag-green"},[e._v(e._s(e.config.MASTER_TAG||e.t("COMMENT_MASTER_TAG")))]):e._e(),e._v(" "),e.comment.top?t("span",{staticClass:"tk-tag tk-tag-red"},[e._v(e._s(e.t("COMMENT_TOP_TAG")))]):e._e(),e._v(" "),e.comment.isSpam?t("span",{staticClass:"tk-tag tk-tag-yellow"},[e._v(e._s(e.t("COMMENT_REVIEWING_TAG")))]):e._e(),e._v(" "),t("small",{staticClass:"tk-time"},[t("time",{attrs:{datetime:e.jsonTimestamp,title:e.localeTime}},[e._v(e._s(e.displayCreated))])]),e._v(" "),e.isLogin?t("small",{staticClass:"tk-actions"},[e.comment.isSpam?t("a",{attrs:{href:"#"},on:{click:function(t){return e.handleSpam(!1,t)}}},[e._v(e._s(e.t("ADMIN_COMMENT_SHOW")))]):e._e(),e._v(" "),e.comment.isSpam?e._e():t("a",{attrs:{href:"#"},on:{click:function(t){return e.handleSpam(!0,t)}}},[e._v(e._s(e.t("ADMIN_COMMENT_HIDE")))]),e._v(" "),!e.comment.rid&&e.comment.top?t("a",{attrs:{href:"#"},on:{click:function(t){return e.handleTop(!1,t)}}},[e._v(e._s(e.t("ADMIN_COMMENT_UNTOP")))]):e._e(),e._v(" "),e.comment.rid||e.comment.top?e._e():t("a",{attrs:{href:"#"},on:{click:function(t){return e.handleTop(!0,t)}}},[e._v(e._s(e.t("ADMIN_COMMENT_TOP")))])]):e._e()]),e._v(" "),t("tk-action",{attrs:{liked:e.liked,"like-count":e.like,"replies-count":e.comment.replies.length},on:{like:e.onLike,reply:e.onReply}})],1),e._v(" "),t("div",{staticClass:"tk-content"},[e.comment.pid?t("span",[e._v(e._s(e.t("COMMENT_REPLIED"))+" "),t("a",{staticClass:"tk-ruser",attrs:{href:"#".concat(e.comment.pid)}},[e._v("@"+e._s(e.comment.ruser))]),e._v(" :")]):e._e(),e._v(" "),t("span",{ref:"comment",domProps:{innerHTML:e._s(e.comment.comment)},on:{click:e.popupLightbox}})]),e._v(" "),e.comment.ipRegion||e.comment.os||e.comment.browser?t("div",{staticClass:"tk-extras"},[e.comment.ipRegion?t("div",{staticClass:"tk-extra"},[t("span",{staticClass:"tk-icon __comment",domProps:{innerHTML:e._s(e.iconLocation)}}),e._v(" "),t("span",{staticClass:"tk-extra-text"},[e._v(" "+e._s(e.comment.ipRegion))])]):e._e(),e._v(" "),e.comment.os?t("div",{staticClass:"tk-extra"},[t("span",{staticClass:"tk-icon __comment",domProps:{innerHTML:e._s(e.iconOs)}}),e._v(" "),t("span",{staticClass:"tk-extra-text"},[e._v(" "+e._s(e.comment.os))])]):e._e(),e._v(" "),e.comment.browser?t("div",{staticClass:"tk-extra"},[t("span",{staticClass:"tk-icon __comment",domProps:{innerHTML:e._s(e.iconBrowser)}}),e._v(" "),t("span",{staticClass:"tk-extra-text"},[e._v(" "+e._s(e.comment.browser))])]):e._e()]):e._e(),e._v(" "),t("div",{ref:"tk-replies",staticClass:"tk-replies","class":{"tk-replies-expand":e.isExpanded||!e.showExpand}},e._l(e.comment.replies,(function(n){return t("tk-comment",{key:n.id,attrs:{comment:n,config:e.config},on:{expand:e.onExpand,load:e.onLoad,reply:e.onReplyReply}})})),1),e._v(" "),e.replying?t("tk-submit",{attrs:{"reply-id":e.comment.id,pid:e.pid,config:e.config},on:{load:e.onLoad,cancel:e.onCancel}}):e._e(),e._v(" "),e.showExpand?t("div",{staticClass:"tk-expand",on:{click:e.onExpand}},[e._v(e._s(e.t("COMMENT_EXPAND")))]):e._e(),e._v(" "),e.showCollapse?t("div",{staticClass:"tk-expand _collapse",on:{click:e.onCollapse}},[e._v(e._s(e.t("COMMENT_COLLAPSE")))]):e._e()],1)],1)},t.Yp=[]},8519:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-comments"},[t("tk-submit",{attrs:{config:e.config},on:{load:e.initComments}}),e._v(" "),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-comments-container"},[t("div",{staticClass:"tk-comments-title"},[t("span",{staticClass:"tk-comments-count","class":{__hidden:!e.comments.length}},[t("span",[e._v(e._s(e.count))]),e._v(" "),t("span",[e._v(e._s(e.t("COMMENTS_COUNT_SUFFIX")))])]),e._v(" "),t("span",[e.loading||e.loadingMore?e._e():t("span",{staticClass:"tk-icon __comments",domProps:{innerHTML:e._s(e.iconRefresh)},on:{click:e.refresh}}),e.showAdminEntry?t("span",{staticClass:"tk-icon __comments",domProps:{innerHTML:e._s(e.iconSetting)},on:{click:e.openAdmin}}):e._e()])]),e._v(" "),e.loading||e.comments.length?e._e():t("div",{staticClass:"tk-comments-no"},[e.errorMessage?e._e():t("span",[e._v(e._s(e.t("COMMENTS_NO_COMMENTS")))]),e._v(" "),e.errorMessage?t("span",{staticClass:"tk-comments-error"},[e._v(e._s(e.errorMessage))]):e._e()]),e._v(" "),e._l(e.comments,(function(n){return t("tk-comment",{key:n.id,attrs:{comment:n,replying:e.replyId===n.id,config:e.config},on:{reply:e.onReply,load:e.initComments}})})),e._v(" "),e.showExpand&&!e.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingMore,expression:"loadingMore"}],staticClass:"tk-expand",on:{click:e.onExpand}},[e._v(e._s(e.t("COMMENTS_EXPAND")))]):e._e()],2)],1)},t.Yp=[]},2080:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-footer"},[e._v("\n Powered by "),t("a",{attrs:{href:"https://twikoo.js.org",target:"_blank"}},[e._v("Twikoo")]),e._v("\n v"+e._s(e.version)+"\n")])},t.Yp=[]},1412:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-meta-input"},e._l(e.displayedInputs,(function(n){return t("el-input",{key:n.key,attrs:{name:n.name,type:n.type,placeholder:e.requiredFields[n.key]?e.t("META_INPUT_REQUIRED"):e.t("META_INPUT_NOT_REQUIRED"),size:"small"},on:{change:e.onMetaChange},model:{value:e.metaData[n.key],callback:function(t){e.$set(e.metaData,n.key,t)},expression:"metaData[metaInput.key]"}},[t("template",{slot:"prepend"},[e._v(e._s(n.locale))])],2)})),1)},t.Yp=[]},8675:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-pagination"},[e.pageCount?t("div",{staticClass:"tk-pagination-options"},[t("div",[t("span",[e._v(e._s(e.t("PAGINATION_COUNT_PREFIX")))]),e._v(" "),t("span",[e._v(e._s(e.total))]),e._v(" "),t("span",[e._v(e._s(e.t("PAGINATION_COUNT_SUFFIX")))])]),e._v(" "),t("el-input",{attrs:{type:"number",min:"1",max:"100",value:e.userPageSize?e.userPageSize:e.pageSize},on:{input:e.handleInputPageSize,change:e.pageSizeChamge}}),e._v(" "),t("span",[e._v(e._s(e.t("PAGINATION_PAGESIZE")))])],1):e._e(),e._v(" "),t("div",{staticClass:"tk-pagination-pagers"},e._l(e.pagers,(function(n){return t("div",{key:n.page,staticClass:"tk-pagination-pager","class":{__current:n.page===e.currentPage},on:{click:function(t){return e.currentChange(n.page)}}},[e._v(e._s(n.title))])})),0),e._v(" "),e.pageCount?t("div",{staticClass:"tk-pagination-options"},[t("span",[e._v(e._s(e.t("PAGINATION_GOTO_PREFIX")))]),e._v(" "),t("el-input",{attrs:{type:"number",min:"1",max:e.pageCount,value:e.userInput?e.userInput:e.currentPage},on:{input:e.handleInput,change:e.currentChange}}),e._v(" "),t("span",[e._v(e._s(e.t("PAGINATION_GOTO_SUFFIX")))])],1):e._e()])},t.Yp=[]},7212:function(e,t){"use strict";t.Yp=t.XX=void 0,t.XX=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-submit"},[t("div",{staticClass:"tk-row"},[t("tk-avatar",{attrs:{config:e.config,mail:e.mail}}),e._v(" "),t("div",{staticClass:"tk-col"},[t("tk-meta-input",{attrs:{nick:e.nick,mail:e.mail,link:e.link,config:e.config},on:{update:e.onMetaUpdate}}),e._v(" "),t("el-input",{ref:"textarea",staticClass:"tk-input",attrs:{type:"textarea","show-word-limit":"",placeholder:e.commentPlaceholder,autosize:{minRows:3},maxlength:e.maxLength},on:{input:e.onCommentInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onEnterKeyUp(t)}},model:{value:e.comment,callback:function(t){e.comment=t},expression:"comment"}})],1)],1),e._v(" "),t("div",{staticClass:"tk-row actions"},[t("div",{staticClass:"tk-row-actions-start"},[t("div",{directives:[{name:"show",rawName:"v-show",value:"true"===e.config.SHOW_EMOTION,expression:"config.SHOW_EMOTION === 'true'"},{name:"clickoutside",rawName:"v-clickoutside",value:e.closeOwo,expression:"closeOwo"}],ref:"owo",staticClass:"tk-submit-action-icon OwO",domProps:{innerHTML:e._s(e.iconEmotion)}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"true"===e.config.SHOW_IMAGE,expression:"config.SHOW_IMAGE === 'true'"}],staticClass:"tk-submit-action-icon",domProps:{innerHTML:e._s(e.iconImage)},on:{click:e.openSelectImage}}),e._v(" "),t("input",{ref:"inputFile",staticClass:"tk-input-image",attrs:{type:"file",accept:"image/*",value:""},on:{change:e.onSelectImage}}),e._v(" "),t("div",{staticClass:"tk-error-message"},[e._v(e._s(e.errorMessage))])]),e._v(" "),t("a",{staticClass:"tk-submit-action-icon __markdown",attrs:{alt:"Markdown is supported",href:"https://guides.github.com/features/mastering-markdown/",target:"_blank",rel:"noopener noreferrer"},domProps:{innerHTML:e._s(e.iconMarkdown)}}),e._v(" "),e.replyId?t("el-button",{staticClass:"tk-cancel",attrs:{size:"small"},on:{click:e.cancel}},[e._v(e._s(e.t("SUBMIT_CANCEL")))]):e._e(),e._v(" "),t("el-button",{staticClass:"tk-preview",attrs:{size:"small"},on:{click:e.preview}},[e._v(e._s(e.t("SUBMIT_PREVIEW")))]),e._v(" "),t("el-button",{staticClass:"tk-send",attrs:{type:"primary",size:"small",disabled:!e.canSend},on:{click:e.send}},[e._v(e._s(e.isSending?e.t("SUBMIT_SENDING"):e.t("SUBMIT_SEND")))]),e._v(" "),t("div",{ref:"turnstile-container",staticClass:"tk-turnstile-container"},[t("div",{ref:"turnstile",staticClass:"tk-turnstile"})])],1),e._v(" "),e.isPreviewing?t("div",{ref:"comment-preview",staticClass:"tk-preview-container",domProps:{innerHTML:e._s(e.commentHtml)}}):e._e()])},t.Yp=[]},5547:function(e,t){"use strict";t.A=function(e,t){for(var n=[],r={},i=0;i=0&&Math.floor(t)===t&&isFinite(e)}function _(e){return l(e)&&"function"==typeof e.then&&"function"==typeof e["catch"]}function y(e){return null==e?"":Array.isArray(e)||m(e)&&e.toString===g?JSON.stringify(e,b,2):String(e)}function b(e,t){return t&&t.__v_isRef?t.value:t}function k(e){var t=parseFloat(e);return isNaN(t)?e:t}function w(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(r,1)}}var x=Object.prototype.hasOwnProperty;function C(e,t){return x.call(e,t)}function I(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var D=/-(\w)/g,O=I((function(e){return e.replace(D,(function(e,t){return t?t.toUpperCase():""}))})),S=I((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),T=/\B([A-Z])/g,M=I((function(e){return e.replace(T,"-$1").toLowerCase()})),N=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function P(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function F(e,t){for(var n in t)e[n]=t[n];return e}function L(e){for(var t={},n=0;n0,ne=Z&&Z.indexOf("edge/")>0;Z&&Z.indexOf("android");var re=Z&&/iphone|ipad|ipod|ios/.test(Z);Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z);var ie,oe=Z&&Z.match(/firefox\/(\d+)/),ae={}.watch,se=!1;if(Q)try{var ue={};Object.defineProperty(ue,"passive",{get:function(){se=!0}}),window.addEventListener("test-passive",null,ue)}catch(s){}var ce=function(){return void 0===ie&&(ie=!Q&&"undefined"!=typeof n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),ie},le=Q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function de(e){return"function"==typeof e&&/native code/.test(e.toString())}var fe,pe="undefined"!=typeof Symbol&&de(Symbol)&&"undefined"!=typeof Reflect&&de(Reflect.ownKeys);fe="undefined"!=typeof Set&&de(Set)?Set:function(){return(0,o["default"])((function e(){(0,i["default"])(this,e),this.set=Object.create(null)}),[{key:"has",value:function(e){return!0===this.set[e]}},{key:"add",value:function(e){this.set[e]=!0}},{key:"clear",value:function(){this.set=Object.create(null)}}])}();var he=null;function ge(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;e||he&&he._scope.off(),he=e,e&&e._scope.on()}var me=function(){return(0,o["default"])((function e(t,n,r,o,a,s,u,c){(0,i["default"])(this,e),this.tag=t,this.data=n,this.children=r,this.text=o,this.elm=a,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=n&&n.key,this.componentOptions=u,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}),[{key:"child",get:function(){return this.componentInstance}}])}(),ve=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",t=new me;return t.text=e,t.isComment=!0,t};function _e(e){return new me(void 0,void 0,void 0,String(e))}function ye(e){var t=new me(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var be=0,ke=[],we=function(){for(var e=0;e1&&arguments[1]!==undefined&&arguments[1],r=arguments.length>2&&arguments[2]!==undefined&&arguments[2];if((0,i["default"])(this,e),this.value=t,this.shallow=n,this.mock=r,this.dep=r?Ne:new Ee,this.vmCount=0,K(t,"__ob__",this),u(t)){if(!r)if(J)t.__proto__=De;else for(var o=0,a=Oe.length;o6&&undefined;var a=new Ee,s=Object.getOwnPropertyDescriptor(e,t);if(!s||!1!==s.configurable){var c=s&&s.get,l=s&&s.set;c&&!l||n!==Se&&2!==arguments.length||(n=e[t]);var d=i?n&&n.__ob__:Fe(n,!1,o);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=c?c.call(e):n;return Ee.target&&(a.depend(),d&&(d.dep.depend(),u(t)&&$e(t))),Ve(t)&&!i?t.value:t},set:function(t){var r=c?c.call(e):n;if(z(r,t)){if(l)l.call(e,t);else{if(c)return;if(!i&&Ve(r)&&!Ve(t))return void(r.value=t);n=t}d=i?t&&t.__ob__:Fe(t,!1,o),a.notify()}}}),a}}function Re(e,t,n){if(!He(e)){var r=e.__ob__;return u(e)&&v(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),r&&!r.shallow&&r.mock&&Fe(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||r&&r.vmCount?n:r?(Le(r.value,t,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(e[t]=n,n)}}function je(e,t){if(u(e)&&v(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||He(e)||C(e,t)&&(delete e[t],n&&n.dep.notify())}}function $e(e){for(var t,n=0,r=e.length;n2&&arguments[2]!==undefined?arguments[2]:s,o=i.immediate,a=i.deep,c=i.flush,l=void 0===c?"pre":c,d=(i.onTrack,i.onTrigger,he),f=function(e,t){var n=en(e,null,arguments.length>2&&arguments[2]!==undefined?arguments[2]:null,d,t);return a&&n&&n.__ob__&&n.__ob__.dep.depend(),n},h=!1,g=!1;if(Ve(e)?(n=function(){return e.value},h=ze(e)):Ge(e)?(n=function(){return e.__ob__.dep.depend(),e},a=!0):u(e)?(g=!0,h=e.some((function(e){return Ge(e)||ze(e)})),n=function(){return e.map((function(e){return Ve(e)?e.value:Ge(e)?(e.__ob__.dep.depend(),Sn(e)):p(e)?f(e,rt):void 0}))}):n=p(e)?t?function(){return f(e,rt)}:function(){if(!d||!d._isDestroyed)return r&&r(),f(e,tt,[v])}:R,t&&a){var m=n;n=function(){return Sn(m())}}var v=function(e){r=_.onStop=function(){f(e,it)}};if(ce())return v=R,t?o&&f(t,nt,[n(),g?[]:void 0,v]):n(),R;var _=new Pn(he,n,R,{lazy:!0});_.noRecurse=!t;var y=g?[]:st;return _.run=function(){if(_.active)if(t){var e=_.get();(a||h||(g?e.some((function(e,t){return z(e,y[t])})):z(e,y)))&&(r&&r(),f(t,nt,[e,y===st?void 0:y,v]),y=e)}else _.get()},"sync"===l?_.update=_.run:"post"===l?(_.post=!0,_.update=function(){return nr(_)}):_.update=function(){if(d&&d===he&&!d._isMounted){var e=d._preWatchers||(d._preWatchers=[]);e.indexOf(_)<0&&e.push(_)}else nr(_)},t?o?_.run():y=_.get():"post"===l&&d?d.$once("hook:mounted",(function(){return _.get()})):_.get(),function(){_.teardown()}}var ct=function(){return(0,o["default"])((function e(){var t=arguments.length>0&&arguments[0]!==undefined&&arguments[0];(0,i["default"])(this,e),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=at,!t&&at&&(this.index=(at.scopes||(at.scopes=[])).push(this)-1)}),[{key:"run",value:function(e){if(this.active){var t=at;try{return at=this,e()}finally{at=t}}}},{key:"on",value:function(){at=this}},{key:"off",value:function(){at=this.parent}},{key:"stop",value:function(e){if(this.active){var t,n;for(t=0,n=this.effects.length;t0&&(_t((r=yt(r,"".concat(t||"","_").concat(n)))[0])&&_t(o)&&(a[i]=_e(o.text+r[0].text),r.shift()),a.push.apply(a,r)):f(r)?_t(o)?a[i]=_e(o.text+r):""!==r&&a.push(_e(r)):_t(r)&&_t(o)?a[i]=_e(o.text+r.text):(d(e._isVList)&&l(r.tag)&&c(r.key)&&l(t)&&(r.key="__vlist".concat(t,"_").concat(n,"__")),a.push(r)));return a}function bt(e,t){var n,r,i,o,a=null;if(u(e)||"string"==typeof e)for(a=new Array(e.length),n=0,r=e.length;n0,a=t?!!t.$stable:!o,u=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==s&&u===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=$t(e,n,c,t[c]))}else i={};for(var l in n)l in i||(i[l]=Ut(n,l));return t&&Object.isExtensible(t)&&(t._normalized=i),K(i,"$stable",a),K(i,"$key",u),K(i,"$hasNormal",o),i}function $t(e,t,n,r){var i=function(){var t=he;ge(e);var n=arguments.length?r.apply(null,arguments):r({}),i=(n=n&&"object"==(0,a["default"])(n)&&!u(n)?[n]:vt(n))&&n[0];return ge(t),n&&(!i||1===n.length&&i.isComment&&!Rt(i))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:i,enumerable:!0,configurable:!0}),i}function Ut(e,t){return function(){return e[t]}}function Bt(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};K(t,"_v_attr_proxy",!0),Gt(t,e.$attrs,s,e,"$attrs")}return e._attrsProxy},get listeners(){return e._listenersProxy||Gt(e._listenersProxy={},e.$listeners,s,e,"$listeners"),e._listenersProxy},get slots(){return function(e){return e._slotsProxy||Ht(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}(e)},emit:N(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return Xe(e,t,n)}))}}}function Gt(e,t,n,r,i){var o=!1;for(var a in t)a in e?t[a]!==n[a]&&(o=!0):(o=!0,zt(e,a,r,i));for(var s in e)s in t||(o=!0,delete e[s]);return o}function zt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function Ht(e,t){for(var n in t)e[n]=t[n];for(var r in e)r in t||delete e[r]}function qt(){var e=he;return e._setupContext||(e._setupContext=Bt(e))}var Vt=null;function Wt(e,t){return(e.__esModule||pe&&"Module"===e[Symbol.toStringTag])&&(e=e["default"]),h(e)?t.extend(e):e}function Xt(e){if(u(e))for(var t=0;t1&&arguments[1]!==undefined?arguments[1]:he;if(n)return function(e,t,n){var r=e.$options;r[t]=mr(r[t],n)}(n,e,t)}}var gn=hn("beforeMount"),mn=hn("mounted"),vn=hn("beforeUpdate"),_n=hn("updated"),yn=hn("beforeDestroy"),bn=hn("destroyed"),kn=hn("activated"),wn=hn("deactivated"),En=hn("serverPrefetch"),An=hn("renderTracked"),xn=hn("renderTriggered"),Cn=hn("errorCaptured"),In="2.7.16",Dn=Object.freeze({__proto__:null,version:In,defineComponent:function(e){return e},ref:function(e){return We(e,!1)},shallowRef:function(e){return We(e,!0)},isRef:Ve,toRef:Ke,toRefs:function(e){var t=u(e)?new Array(e.length):{};for(var n in e)t[n]=Ke(e,n);return t},unref:function(e){return Ve(e)?e.value:e},proxyRefs:function(e){if(Ge(e))return e;for(var t={},n=Object.keys(e),r=0;r2&&arguments[2]!==undefined&&arguments[2],r=he;if(r){var i=r.$parent&&r.$parent._provided;if(i&&e in i)return i[e];if(arguments.length>1)return n&&p(t)?t.call(r):t}},h:function(e,t,n){return Jt(he,e,t,n,2,!0)},getCurrentInstance:function(){return he&&{proxy:he}},useSlots:function(){return qt().slots},useAttrs:function(){return qt().attrs},useListeners:function(){return qt().listeners},mergeDefaults:function(e,t){var n=u(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var r in t){var i=n[r];i?u(i)||p(i)?n[r]={type:i,"default":t[r]}:i["default"]=t[r]:null===i&&(n[r]={"default":t[r]})}return n},nextTick:pn,set:Re,del:je,useCssModule:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"$style";return he&&he[e]||s},useCssVars:function(e){if(Q){var t=he;t&&ot((function(){var n=t.$el,r=e(t,t._setupProxy);if(n&&1===n.nodeType){var i=n.style;for(var o in r)i.setProperty("--".concat(o),r[o])}}))}},defineAsyncComponent:function(e){p(e)&&(e={loader:e});var t=e,n=t.loader,r=t.loadingComponent,i=t.errorComponent,o=t.delay,a=void 0===o?200:o,s=t.timeout,u=(t.suspensible,t.onError),c=null,l=0,d=function f(){var e;return c||(e=c=n()["catch"]((function(e){if(e=e instanceof Error?e:new Error(String(e)),u)return new Promise((function(t,n){u(e,(function(){return t((l++,c=null,f()))}),(function(){return n(e)}),l+1)}));throw e})).then((function(t){return e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t["default"]),t)})))};return function(){return{component:d(),delay:a,timeout:s,error:i,loading:r}}},onBeforeMount:gn,onMounted:mn,onBeforeUpdate:vn,onUpdated:_n,onBeforeUnmount:yn,onUnmounted:bn,onActivated:kn,onDeactivated:wn,onServerPrefetch:En,onRenderTracked:An,onRenderTriggered:xn,onErrorCaptured:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:he;Cn(e,t)}}),On=new fe;function Sn(e){return Tn(e,On),On.clear(),e}function Tn(e,t){var n,r,i=u(e);if(!(!i&&!h(e)||e.__v_skip||Object.isFrozen(e)||e instanceof me)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i)for(n=e.length;n--;)Tn(e[n],t);else if(Ve(e))Tn(e.value,t);else for(n=(r=Object.keys(e)).length;n--;)Tn(e[r[n]],t)}}var Mn,Nn=0,Pn=function(){return(0,o["default"])((function e(t,n,r,o,a){(0,i["default"])(this,e),function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:at;t&&t.active&&t.effects.push(e)}(this,at&&!at._vm?at:t?t._scope:void 0),(this.vm=t)&&a&&(t._watcher=this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++Nn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="",p(n)?this.getter=n:(this.getter=function(e){if(!Y.test(e)){var t=e.split(".");return function(e){for(var n=0;n3&&arguments[3]!==undefined)||arguments[3];xe();var i=he,o=lt();r&&ge(e);var a=e.$options[t],s="".concat(t," hook");if(a)for(var u=0,c=a.length;udocument.createEvent("Event").timeStamp&&(Qn=function(){return Zn.now()})}var er=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function tr(){var e,t;for(Jn=Qn(),Kn=!0,qn.sort(er),Yn=0;YnYn&&qn[n].id>e.id;)n--;qn.splice(n+1,0,e)}else qn.push(e);Xn||(Xn=!0,pn(tr))}}function rr(e,t){if(e){for(var n=Object.create(null),r=pe?Reflect.ownKeys(e):Object.keys(e),i=0;i2&&arguments[2]!==undefined)||arguments[2];if(!t)return e;for(var a=pe?Reflect.ownKeys(t):Object.keys(t),s=0;s-1)if(o&&!C(i,"default"))a=!1;else if(""===a||a===M(e)){var u=xr(String,i.type);(u<0||s-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===g.call(n)&&e.test(t));var n}function $r(e,t){var n=e.cache,r=e.keys,i=e._vnode,o=e.$vnode;for(var a in n){var s=n[a];if(s){var u=s.name;u&&!t(u)&&Ur(n,a,r,i)}}o.componentOptions.children=void 0}function Ur(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,A(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Pr++,t._isVue=!0,t.__v_skip=!0,t._scope=new ct(!0),t._scope.parent=void 0,t._scope._vm=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=yr(Fr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&jn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=Ft(t._renderChildren,r),e.$scopedSlots=n?jt(e.$parent,n.data.scopedSlots,e.$slots):s,e._c=function(t,n,r,i){return Jt(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Jt(e,t,n,r,i,!0)};var i=n&&n.data;Le(e,"$attrs",i&&i.attrs||s,null,!0),Le(e,"$listeners",t._parentListeners||s,null,!0)}(t),Hn(t,"beforeCreate",void 0,!1),function(e){var t=rr(e.$options.inject,e);t&&(Me(!1),Object.keys(t).forEach((function(n){Le(e,n,t[n])})),Me(!0))}(t),Dr(t),function(e){var t=e.$options.provide;if(t){var n=p(t)?t.call(e):t;if(!h(n))return;for(var r=dt(e),i=pe?Reflect.ownKeys(n):Object.keys(n),o=0;o1?P(n):n;for(var r=P(arguments,1),i='event handler for "'.concat(e,'"'),o=0,a=n.length;oparseInt(this.max)&&Ur(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ur(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){$r(e,(function(e){return jr(t,e)}))})),this.$watch("exclude",(function(t){$r(e,(function(e){return!jr(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots["default"],t=Xt(e),n=t&&t.componentOptions;if(n){var r=Rr(n),i=this.include,o=this.exclude;if(i&&(!r||!jr(i,r))||o&&r&&jr(o,r))return t;var a=this.cache,s=this.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;a[u]?(t.componentInstance=a[u].componentInstance,A(s,u),s.push(u)):(this.vnodeToCache=t,this.keyToCache=u),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return W}};Object.defineProperty(e,"config",t),e.util={warn:fr,extend:F,mergeOptions:yr,defineReactive:Le},e.set=Re,e["delete"]=je,e.nextTick=pn,e.observable=function(e){return Fe(e),e},e.options=Object.create(null),q.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,F(e.options.components,Gr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=P(arguments,1);return n.unshift(this),p(e.install)?e.install.apply(e,n):p(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=yr(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=sr(e)||sr(n.options),a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=yr(n.options,e),a["super"]=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)Ir(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)Sr(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,q.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=F({},a.options),i[r]=a,a}}(e),function(e){q.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&m(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&p(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Lr),Object.defineProperty(Lr.prototype,"$isServer",{get:ce}),Object.defineProperty(Lr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Lr,"FunctionalRenderContext",{value:ir}),Lr.version=In;var zr=w("style,class"),Hr=w("input,textarea,option,select,progress"),qr=w("contenteditable,draggable,spellcheck"),Vr=w("events,caret,typing,plaintext-only"),Wr=function(e,t){return Qr(t)||"false"===t?"false":"contenteditable"===e&&Vr(t)?t:"true"},Xr=w("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Kr="http://www.w3.org/1999/xlink",Yr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Jr=function(e){return Yr(e)?e.slice(6,e.length):""},Qr=function(e){return null==e||!1===e};function Zr(e,t){return{staticClass:ei(e.staticClass,t.staticClass),"class":l(e["class"])?[e["class"],t["class"]]:t["class"]}}function ei(e,t){return e?t?e+" "+t:e:t||""}function ti(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?xi(e,t,n):Xr(t)?Qr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):qr(t)?e.setAttribute(t,Wr(t,n)):Yr(t)?Qr(n)?e.removeAttributeNS(Kr,Jr(t)):e.setAttributeNS(Kr,t,n):xi(e,t,n)}function xi(e,t,n){Qr(n)?e.removeAttribute(t):(!ee||te||"TEXTAREA"!==e.tagName||"placeholder"!==t||""===n||e.__ieph||(e.addEventListener("input",(function r(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)})),e.__ieph=!0),e.setAttribute(t,n))}var Ci={create:Ei,update:Ei};function Ii(e,t){var n=t.elm,r=t.data,i=e.data;if(!(c(r.staticClass)&&c(r["class"])&&(c(i)||c(i.staticClass)&&c(i["class"])))){var o=function(e){for(var t=e.data,n=e,r=e;l(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Zr(r.data,t));for(;l(n=n.parent);)n&&n.data&&(t=Zr(t,n.data));return function(e,t){return l(e)||l(t)?ei(e,ti(t)):""}(t.staticClass,t["class"])}(t),a=n._transitionClasses;l(a)&&(o=ei(o,ti(a))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var Di,Oi={create:Ii,update:Ii},Si="__r",Ti="__c";function Mi(e,t,n){var r=Di;return function i(){null!==t.apply(null,arguments)&&Fi(e,i,n,r)}}var Ni=on&&!(oe&&Number(oe[1])<=53);function Pi(e,t,n,r){if(Ni){var i=Jn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Di.addEventListener(e,t,se?{capture:n,passive:r}:n)}function Fi(e,t,n,r){(r||Di).removeEventListener(e,t._wrapper||t,n)}function Li(e,t){if(!c(e.data.on)||!c(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Di=t.elm||e.elm,function(e){if(l(e[Si])){var t=ee?"change":"input";e[t]=[].concat(e[Si],e[t]||[]),delete e[Si]}l(e[Ti])&&(e.change=[].concat(e[Ti],e.change||[]),delete e[Ti])}(n),ht(n,r,Pi,Fi,Mi,t.context),Di=void 0}}var Ri,ji={create:Li,update:Li,destroy:function(e){return Li(e,fi)}};function $i(e,t){if(!c(e.data.domProps)||!c(t.data.domProps)){var n,r,i=t.elm,o=e.data.domProps||{},a=t.data.domProps||{};for(n in(l(a.__ob__)||d(a._v_attr_proxy))&&(a=t.data.domProps=F({},a)),o)n in a||(i[n]="");for(n in a){if(r=a[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===o[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var s=c(r)?"":String(r);Ui(i,s)&&(i.value=s)}else if("innerHTML"===n&&ii(i.tagName)&&c(i.innerHTML)){(Ri=Ri||document.createElement("div")).innerHTML="".concat(r,"");for(var u=Ri.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;u.firstChild;)i.appendChild(u.firstChild)}else if(r!==o[n])try{i[n]=r}catch(e){}}}}function Ui(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(l(r)){if(r.number)return k(n)!==k(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Bi={create:$i,update:$i},Gi=I((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function zi(e){var t=Hi(e.style);return e.staticStyle?F(e.staticStyle,t):t}function Hi(e){return Array.isArray(e)?L(e):"string"==typeof e?Gi(e):e}var qi,Vi=/^--/,Wi=/\s*!important$/,Xi=function(e,t,n){if(Vi.test(t))e.style.setProperty(t,n);else if(Wi.test(n))e.style.setProperty(M(t),n.replace(Wi,""),"important");else{var r=Yi(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(Zi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function to(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Zi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function no(e){if(e){if("object"==(0,a["default"])(e)){var t={};return!1!==e.css&&F(t,ro(e.name||"v")),F(t,e),t}return"string"==typeof e?ro(e):void 0}}var ro=I((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),io=Q&&!te,oo="transition",ao="animation",so="transition",uo="transitionend",co="animation",lo="animationend";io&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(so="WebkitTransition",uo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(co="WebkitAnimation",lo="webkitAnimationEnd"));var fo=Q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function po(e){fo((function(){fo(e)}))}function ho(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),eo(e,t))}function go(e,t){e._transitionClasses&&A(e._transitionClasses,t),to(e,t)}function mo(e,t,n){var r=_o(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===oo?uo:lo,u=0,c=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++u>=a&&c()};setTimeout((function(){u0&&(n=oo,l=a,d=o.length):t===ao?c>0&&(n=ao,l=c,d=u.length):d=(n=(l=Math.max(a,c))>0?a>c?oo:ao:null)?n===oo?o.length:u.length:0,{type:n,timeout:l,propCount:d,hasTransform:n===oo&&vo.test(r[so+"Property"])}}function yo(e,t){for(;e.length1}function xo(e,t){!0!==t.data.show&&ko(t)}var Co=function(e){var t,n,r={},i=e.modules,o=e.nodeOps;for(t=0;th?y(e,c(n[v+1])?null:n[v+1].elm,n,p,v,r):p>v&&k(t,f,h)}(f,g,v,n,u):l(v)?(l(e.text)&&o.setTextContent(f,""),y(f,null,v,0,v.length-1,n)):l(g)?k(g,0,g.length-1):l(e.text)&&o.setTextContent(f,""):e.text!==t.text&&o.setTextContent(f,t.text),l(h)&&l(p=h.hook)&&l(p=p.postpatch)&&p(e,t)}}}function C(e,t,n){if(d(n)&&l(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(U(To(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function So(e,t){return t.every((function(t){return!U(t,e)}))}function To(e){return"_value"in e?e._value:e.value}function Mo(e){e.target.composing=!0}function No(e){e.target.composing&&(e.target.composing=!1,Po(e.target,"input"))}function Po(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Fo(e){return!e.componentInstance||e.data&&e.data.transition?e:Fo(e.componentInstance._vnode)}var Lo={bind:function(e,t,n){var r=t.value,i=(n=Fo(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ko(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Fo(n)).data&&n.data.transition?(n.data.show=!0,r?ko(n,(function(){e.style.display=e.__vOriginalDisplay})):wo(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Ro={model:Io,show:Lo},jo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function $o(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?$o(Xt(t.children)):e}function Uo(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[O(o)]=i[o];return t}function Bo(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Go=function(e){return e.tag||Rt(e)},zo=function(e){return"show"===e.name},Ho={name:"transition",props:jo,abstract:!0,render:function(e){var t=this,n=this.$slots["default"];if(n&&(n=n.filter(Go)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=$o(i);if(!o)return i;if(this._leaving)return Bo(e,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:f(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Uo(this),u=this._vnode,c=$o(u);if(o.data.directives&&o.data.directives.some(zo)&&(o.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,c)&&!Rt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var l=c.data.transition=F({},s);if("out-in"===r)return this._leaving=!0,gt(l,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Bo(e,i);if("in-out"===r){if(Rt(o))return u;var d,p=function(){d()};gt(s,"afterEnter",p),gt(s,"enterCancelled",p),gt(l,"delayLeave",(function(e){d=e}))}}return i}}},qo=F({tag:String,moveClass:String},jo);delete qo.mode;var Vo={props:qo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Un(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots["default"]||[],o=this.children=[],a=Uo(this),s=0;s-1?ai[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ai[e]=/HTMLUnknownElement/.test(t.toString())},F(Lr.options.directives,Ro),F(Lr.options.components,Yo),Lr.prototype.__patch__=Q?Co:R,Lr.prototype.$mount=function(e,t){return function(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=ve),Hn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Pn(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&Hn(e,"beforeUpdate")}},!0),n=!1;var i=e._preWatchers;if(i)for(var o=0;o.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}t.Lexer=function(){function e(t){(0,i["default"])(this,e),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||s.defaults,this.options.tokenizer=this.options.tokenizer||new a.Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:u.block.normal,inline:u.inline.normal};this.options.pedantic?(n.block=u.block.pedantic,n.inline=u.inline.pedantic):this.options.gfm&&(n.block=u.block.gfm,this.options.breaks?n.inline=u.inline.breaks:n.inline=u.inline.gfm),this.tokenizer.rules=n}return(0,o["default"])(e,[{key:"lex",value:function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}},{key:"blockTokens",value:function(e){var t,n,r,i,o=this,a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];this.options.pedantic&&(e=e.replace(/^ +$/gm,""));for(var s,u=function(){if(o.options.extensions&&o.options.extensions.block&&o.options.extensions.block.some((function(n){return!!(t=n.call({lexer:o},e,a))&&(e=e.substring(t.raw.length),a.push(t),!0)})))return 0;if(t=o.tokenizer.space(e))return e=e.substring(t.raw.length),1===t.raw.length&&a.length>0?a[a.length-1].raw+="\n":a.push(t),0;if(t=o.tokenizer.code(e))return e=e.substring(t.raw.length),!(n=a[a.length-1])||"paragraph"!==n.type&&"text"!==n.type?a.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,o.inlineQueue[o.inlineQueue.length-1].src=n.text),0;if(t=o.tokenizer.fences(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.heading(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.hr(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.blockquote(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.list(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.html(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.def(e))return e=e.substring(t.raw.length),!(n=a[a.length-1])||"paragraph"!==n.type&&"text"!==n.type?o.tokens.links[t.tag]||(o.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,o.inlineQueue[o.inlineQueue.length-1].src=n.text),0;if(t=o.tokenizer.table(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.lheading(e))return e=e.substring(t.raw.length),a.push(t),0;if(r=e,o.options.extensions&&o.options.extensions.startBlock){var s,u=Infinity,c=e.slice(1);o.options.extensions.startBlock.forEach((function(e){"number"==typeof(s=e.call({lexer:this},c))&&s>=0&&(u=Math.min(u,s))})),u=0&&(r=e.substring(0,u+1))}if(o.state.top&&(t=o.tokenizer.paragraph(r)))return n=a[a.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,o.inlineQueue.pop(),o.inlineQueue[o.inlineQueue.length-1].src=n.text):a.push(t),i=r.length!==e.length,e=e.substring(t.raw.length),0;if(t=o.tokenizer.text(e))return e=e.substring(t.raw.length),(n=a[a.length-1])&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,o.inlineQueue.pop(),o.inlineQueue[o.inlineQueue.length-1].src=n.text):a.push(t),0;if(e){var l="Infinite loop on byte: "+e.charCodeAt(0);if(o.options.silent)return console.error(l),1;throw new Error(l)}};e&&(0===(s=u())||1!==s););return this.state.top=!0,a}},{key:"inline",value:function(e,t){this.inlineQueue.push({src:e,tokens:t})}},{key:"inlineTokens",value:function(e){var t,n,r,i,o,a,s=this,u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[],f=e;if(this.tokens.links){var p=Object.keys(this.tokens.links);if(p.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(f));)p.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(f=f.slice(0,i.index)+"["+(0,c.repeatString)("a",i[0].length-2)+"]"+f.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(f));)f=f.slice(0,i.index)+"["+(0,c.repeatString)("a",i[0].length-2)+"]"+f.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(f));)f=f.slice(0,i.index)+"++"+f.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(var h,g=function(){if(o||(a=""),o=!1,t=s.tokenizer.owo(e))return e=e.substring(t.raw.length),t.type&&u.push(t),0;if(s.options.extensions&&s.options.extensions.inline&&s.options.extensions.inline.some((function(n){return!!(t=n.call({lexer:s},e,u))&&(e=e.substring(t.raw.length),u.push(t),!0)})))return 0;if(t=s.tokenizer.escape(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=s.tokenizer.tag(e))return e=e.substring(t.raw.length),(n=u[u.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(t=s.tokenizer.link(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=s.tokenizer.reflink(e,s.tokens.links))return e=e.substring(t.raw.length),(n=u[u.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(t=s.tokenizer.emStrong(e,f,a))return e=e.substring(t.raw.length),u.push(t),0;if(t=s.tokenizer.codespan(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=s.tokenizer.br(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=s.tokenizer.del(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=s.tokenizer.autolink(e,d))return e=e.substring(t.raw.length),u.push(t),0;if(!s.state.inLink&&(t=s.tokenizer.url(e,d)))return e=e.substring(t.raw.length),u.push(t),0;if(r=e,s.options.extensions&&s.options.extensions.startInline){var i,c=Infinity,p=e.slice(1);s.options.extensions.startInline.forEach((function(e){"number"==typeof(i=e.call({lexer:this},p))&&i>=0&&(c=Math.min(c,i))})),c=0&&(r=e.substring(0,c+1))}if(t=s.tokenizer.inlineText(r,l))return e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(a=t.raw.slice(-1)),o=!0,(n=u[u.length-1])&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(s.options.silent)return console.error(h),1;throw new Error(h)}};e&&(0===(h=g())||1!==h););return u}}],[{key:"rules",get:function(){return{block:u.block,inline:u.inline}}},{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}}])}()},2817:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var i=r(n(8850)),o=r(n(1332)),a=n(7565),s=n(1674),u=n(2123),c=n(4008),l=n(9105);t.Parser=function(){function e(t){(0,i["default"])(this,e),this.options=t||c.defaults,this.options.renderer=this.options.renderer||new a.Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new s.TextRenderer,this.slugger=new u.Slugger}return(0,o["default"])(e,[{key:"parse",value:function(e){var t,n,r,i,o,a,s,u,c,d,f,p,h,g,m,v,_,y,b,k=!(arguments.length>1&&arguments[1]!==undefined)||arguments[1],w="",E=e.length;for(t=0;t0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=y+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=y+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:y}):g+=y),g+=this.parse(m.tokens,h),c+=this.renderer.listitem(g,_,v);w+=this.renderer.list(c,f,p);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(c=d.tokens?this.parseInline(d.tokens):d.text;t+1':":"+e+":"}},{key:"code",value:function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'
'+(n?e:(0,s.escape)(e,!0))+"
\n":"
"+(n?e:(0,s.escape)(e,!0))+"
\n"}},{key:"blockquote",value:function(e){return"
\n"+e+"
\n"}},{key:"html",value:function(e){return e}},{key:"heading",value:function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"}},{key:"hr",value:function(){return this.options.xhtml?"
\n":"
\n"}},{key:"list",value:function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}},{key:"listitem",value:function(e){return"
  • "+e+"
  • \n"}},{key:"checkbox",value:function(e){return" "}},{key:"paragraph",value:function(e){return"

    "+e+"

    \n"}},{key:"table",value:function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"}},{key:"tablerow",value:function(e){return"\n"+e+"\n"}},{key:"tablecell",value:function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"}},{key:"strong",value:function(e){return""+e+""}},{key:"em",value:function(e){return""+e+""}},{key:"codespan",value:function(e){return""+e+""}},{key:"br",value:function(){return this.options.xhtml?"
    ":"
    "}},{key:"del",value:function(e){return""+e+""}},{key:"link",value:function(e,t,n){if(null===(e=(0,s.cleanUrl)(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"}},{key:"image",value:function(e,t,n){if(null===(e=(0,s.cleanUrl)(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"}},{key:"text",value:function(e){return e}}])}()},2123:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t.Slugger=void 0;var i=r(n(8850)),o=r(n(1332));t.Slugger=function(){return(0,o["default"])((function e(){(0,i["default"])(this,e),this.seen={}}),[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}},{key:"slug",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}])}()},1674:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderer=void 0;var i=r(n(8850)),o=r(n(1332));t.TextRenderer=function(){return(0,o["default"])((function e(){(0,i["default"])(this,e)}),[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,t,n){return""+n}},{key:"image",value:function(e,t,n){return""+n}},{key:"br",value:function(){return""}}])}()},4001:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t.Tokenizer=void 0;var i=r(n(8850)),o=r(n(1332)),a=r(n(9272)),s=n(4008),u=n(9105);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:(0,u.rtrim)(n,"\n")}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:(0,a["default"])(t,1)[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=(0,u.rtrim)(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}var i={type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}},{key:"list",value:function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,o,a,s,u,l,d,f,p,h,g=t[1].trim(),m=g.length>1,v={type:"list",raw:"",ordered:m,start:m?+g.slice(0,-1):"",loose:!1,items:[]};g=m?"\\d{1,9}\\".concat(g.slice(-1)):"\\".concat(g),this.options.pedantic&&(g=m?g:"[*+-]");for(var _=new RegExp("^( {0,3}".concat(g,")((?: [^\\n]*)?(?:\\n|$))"));e&&(h=!1,t=_.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),l=t[2].split("\n",1)[0],d=e.split("\n",1)[0],this.options.pedantic?(o=2,p=l.trimLeft()):(o=(o=t[2].search(/[^ ]/))>4?1:o,p=l.slice(o),o+=t[1].length),s=!1,!l&&/^ *$/.test(d)&&(n+=d+"\n",e=e.substring(d.length+1),h=!0),!h)for(var y=new RegExp("^ {0,".concat(Math.min(3,o-1),"}(?:[*+-]|\\d{1,9}[.)])"));e&&(l=f=e.split("\n",1)[0],this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!y.test(l));){if(l.search(/[^ ]/)>=o||!l.trim())p+="\n"+l.slice(o);else{if(s)break;p+="\n"+l}s||l.trim()||(s=!0),n+=f+"\n",e=e.substring(f.length+1)}v.loose||(u?v.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(p))&&(i="[ ] "!==r[0],p=p.replace(/^\[[ xX]\] +/,"")),v.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:p}),v.raw+=n}v.items[v.items.length-1].raw=n.trimRight(),v.items[v.items.length-1].text=p.trimRight(),v.raw=v.raw.trimRight();var b=v.items.length;for(a=0;a1)return!0}catch(i){r.e(i)}finally{r.f()}return!1}));!v.loose&&k.length&&w&&(v.loose=!0,v.items[a].loose=!0)}return v}}},{key:"html",value:function(e){var t=this.rules.block.html.exec(e);if(t){var n={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(t[0]):(0,u.escape)(t[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}}},{key:"def",value:function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}},{key:"table",value:function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:(0,u.splitCells)(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i,o,a,s=n.align.length;for(r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):(0,u.escape)(t[0]):t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var r=(0,u.rtrim)(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var i=(0,u.findClosingBracket)(t[2],"()");if(i>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var a=t[2],s="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);c&&(a=c[1],s=c[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),d(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0],this.lexer)}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return d(n,r,n[0],this.lexer)}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))){var i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,s=r[0].length-1,u=s,c=0,l="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+s);null!=(r=l.exec(t));)if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(a=o.length,r[3]||r[4])u+=a;else if(!((r[5]||r[6])&&s%3)||(s+a)%3){if(!((u-=a)>0)){if(a=Math.min(a,a+u+c),Math.min(s,a)%2){var d=e.slice(1,s+r.index+a);return{type:"em",raw:e.slice(0,s+r.index+a+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}var f=e.slice(2,s+r.index+a-1);return{type:"strong",raw:e.slice(0,s+r.index+a+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}}else c+=a}}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=(0,u.escape)(n,!0),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}},{key:"owo",value:function(e){var t=this.rules.inline.owo.exec(e);if(t&&t[0].length>1)return{type:"owo",raw:t[0],text:t[1]}}},{key:"autolink",value:function(e,t){var n,r,i=this.rules.inline.autolink.exec(e);if(i)return r="@"===i[2]?"mailto:"+(n=(0,u.escape)(this.options.mangle?t(i[1]):i[1])):n=(0,u.escape)(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},{key:"url",value:function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])i="mailto:"+(r=(0,u.escape)(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=(0,u.escape)(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}},{key:"inlineText",value:function(e,t){var n,r=this.rules.inline.text.exec(e);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):(0,u.escape)(r[0]):r[0]:(0,u.escape)(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}])}()},4008:function(e,t){"use strict";function n(){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}}Object.defineProperty(t,"__esModule",{value:!0}),t.changeDefaults=function(e){t.defaults=e},t.defaults=void 0,t.getDefaults=n,t.defaults={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}},9105:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkSanitizeDeprecation=function(e){e&&e.sanitize&&!e.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")},t.cleanUrl=function(e,t,n){if(e){var r;try{r=decodeURIComponent(c(n)).replace(d,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!f.test(n)&&(n=v(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n},t.edit=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(l,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n},t.escape=function(e,t){if(t){if(n.test(e))return e.replace(r,s)}else if(i.test(e))return e.replace(o,s);return e},t.findClosingBracket=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,i=0;i1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},t.resolveUrl=v,t.rtrim=_,t.splitCells=function(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=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"']/,r=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,a={"&":"&","<":"<",">":">",'"':""","'":"'"},s=function(e){return a[e]},u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function c(e){return e.replace(u,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var l=/(^|[^\[])\^/g,d=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,p={},h=/^[^:]+:\/*[^/]*$/,g=/^([^:]+:)[\s\S]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(e,t){p[" "+e]||(h.test(e)?p[" "+e]=e+"/":p[" "+e]=_(e,"/",!0));var n=-1===(e=p[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(g,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(m,"$1")+t:e+t}function _(e,t,n){var r=e.length;if(0===r)return"";for(var i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nAn error occurred:

    "+(0,c.escape)(d.message+"",!0)+"
    ";throw d}}p.options=p.setOptions=function(e){return(0,c.merge)(p.defaults,e),(0,l.changeDefaults)(p.defaults),p},p.getDefaults=l.getDefaults,p.defaults=l.defaults,p.use=function(){for(var e=arguments.length,t=new Array(e),n=0;nAn error occurred:

    "+(0,c.escape)(o.message+"",!0)+"
    ";throw o}},p.Parser=i.Parser,p.parser=i.Parser.parse,p.Renderer=a.Renderer,p.TextRenderer=s.TextRenderer,p.Lexer=r.Lexer,p.lexer=r.Lexer.lex,p.Tokenizer=o.Tokenizer,p.Slugger=u.Slugger,p.parse=p,t.options=p.options,t.setOptions=p.setOptions,t.use=p.use,t.walkTokens=p.walkTokens,t.parseInline=p.parseInline,t.parse=p,t.parser=i.Parser.parse,t.lexer=r.Lexer.lex},5779:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inline=t.block=void 0;var r=n(9105),i=t.block={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}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:r.noopTest,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};i._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,i._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,i.def=(0,r.edit)(i.def).replace("label",i._label).replace("title",i._title).getRegex(),i.bullet=/(?:[*+-]|\d{1,9}[.)])/,i.listItemStart=(0,r.edit)(/^( *)(bull) */).replace("bull",i.bullet).getRegex(),i.list=(0,r.edit)(i.list).replace(/bull/g,i.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+i.def.source+")").getRegex(),i._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",i._comment=/|$)/,i.html=(0,r.edit)(i.html,"i").replace("comment",i._comment).replace("tag",i._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),i.paragraph=(0,r.edit)(i._paragraph).replace("hr",i.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",i._tag).getRegex(),i.blockquote=(0,r.edit)(i.blockquote).replace("paragraph",i.paragraph).getRegex(),i.normal=(0,r.merge)({},i),i.gfm=(0,r.merge)({},i.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),i.gfm.table=(0,r.edit)(i.gfm.table).replace("hr",i.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",i._tag).getRegex(),i.gfm.paragraph=(0,r.edit)(i._paragraph).replace("hr",i.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",i.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",i._tag).getRegex(),i.pedantic=(0,r.merge)({},i.normal,{html:(0,r.edit)("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",i._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:r.noopTest,paragraph:(0,r.edit)(i.normal._paragraph).replace("hr",i.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",i.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var o=t.inline={owo:/^:(\S*):/,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:r.noopTest,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:r.noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",o.punctuation=(0,r.edit)(o.punctuation).replace(/punctuation/g,o._punctuation).getRegex(),o.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,o.escapedEmSt=/\\\*|\\_/g,o._comment=(0,r.edit)(i._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),o.emStrong.lDelim=(0,r.edit)(o.emStrong.lDelim).replace(/punct/g,o._punctuation).getRegex(),o.emStrong.rDelimAst=(0,r.edit)(o.emStrong.rDelimAst,"g").replace(/punct/g,o._punctuation).getRegex(),o.emStrong.rDelimUnd=(0,r.edit)(o.emStrong.rDelimUnd,"g").replace(/punct/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._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])?)+(?![-_])/,o.autolink=(0,r.edit)(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=(0,r.edit)(o.tag).replace("comment",o._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,o._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=(0,r.edit)(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=(0,r.edit)(o.reflink).replace("label",o._label).replace("ref",i._label).getRegex(),o.nolink=(0,r.edit)(o.nolink).replace("ref",i._label).getRegex(),o.reflinkSearch=(0,r.edit)(o.reflinkSearch,"g").replace("reflink",o.reflink).replace("nolink",o.nolink).getRegex(),o.normal=(0,r.merge)({},o),o.pedantic=(0,r.merge)({},o.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:(0,r.edit)(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:(0,r.edit)(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=(0,r.merge)({},o.normal,{escape:(0,r.edit)(o.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]*?(?:(?=[\\'.concat(e.logo,"")+'
    ',r=0;r');for(var i=this.odata[this.packages[r]].container,o=0;o').concat(a,"")}n+=""}n+='
      ';for(var s=0;s".concat(this.packages[s],"");n+="
    ",this.container.innerHTML=n,this.logo=this.container.getElementsByClassName("OwO-logo")[0],this.logo.addEventListener("click",(function(){t.toggle()})),this.container.getElementsByClassName("OwO-body")[0].addEventListener("click",(function(e){var n=null;if(e.target.classList.contains("OwO-item")?n=e.target:e.target.parentNode.classList.contains("OwO-item")&&(n=e.target.parentNode),n){var r=t.area.selectionEnd,i=t.area.value,o=n.innerHTML;if(-1!==o.indexOf("2&&f[2]!==undefined?f[2]:{},o=e||(s.app?s.app.$tcb:null),a=r.envId||s.app.$twikoo.envId,u=r.funcName||(null===s.app||void 0===s.app?void 0:s.app.$twikoo.funcName)||"twikoo",!o){t.next=33;break}return t.prev=5,t.next=8,o.app.callFunction({name:u,data:c({event:n},r)});case 8:case 27:case 36:return t.abrupt("return",t.sent);case 11:t.prev=11,t.t0=t["catch"](5),t.t1=n,t.next="COMMENT_LIKE"===t.t1?16:"COMMENT_GET"===t.t1?18:"COMMENT_SUBMIT"===t.t1?20:"COUNTER_GET"===t.t1?22:24;break;case 16:return d="comment-like",t.abrupt("break",24);case 18:return d="comment-get",t.abrupt("break",24);case 20:return d="comment-submit",t.abrupt("break",24);case 22:return d="counter-get",t.abrupt("break",24);case 24:if(!d){t.next=30;break}return t.next=27,o.app.callFunction({name:d,data:r});case 30:throw new Error("请升级 Twikoo 云函数版本再试,如果仍无法解决,请删除并重新创建 Twikoo 云函数 - https://twikoo.js.org");case 31:t.next=40;break;case 33:if(!l(a)){t.next=39;break}return t.next=36,new Promise((function(e,t){try{var i=localStorage.getItem("twikoo-access-token"),o=new XMLHttpRequest;o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){var n=JSON.parse(o.responseText);n.accessToken&&localStorage.setItem("twikoo-access-token",n.accessToken),e({result:n})}else t(o.status)},o.open("POST",a),o.setRequestHeader("Content-Type","application/json"),o.send(JSON.stringify(c({event:n,accessToken:i},r)))}catch(s){t(s)}}));case 39:throw new Error("缺少 envId 配置 - https://twikoo.js.org");case 40:case"end":return t.stop()}}),t,null,[[5,11]])})));return function(t,n){return e.apply(this,arguments)}}()},7080:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQQAvatar=function(e){var t=e.replace(/@qq.com/gi,"");return"https://thirdqq.qlogo.cn/g?b=sdk&nk=".concat(t,"&s=140")},t.isQQ=function(e){return/^[1-9][0-9]{4,10}$/.test(e)||/^[1-9][0-9]{4,10}@qq.com$/i.test(e)},t.normalizeMail=function(e){return String(e).trim().toLowerCase()}},9212:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t.initMarkedOwo=function(e){if(e&&Object.values(e)){var t={};return Object.values(e).forEach((function(e){e.container.forEach((function(e){var n=p(e.icon);n&&(t[e.text]=n)}))})),t}},t.initOwoEmotions=function(e){return d.apply(this,arguments)};var i=r(n(479)),o=r(n(1819)),a=r(n(4964)),s=n(8129);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=200&&n.status<300||304===n.status){var e=function(e){try{return Object.values(e).forEach((function(e){if("image"===e.type){var t,n=u(e.container);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.text||(r.text=h(p(r.icon)))}}catch(i){n.e(i)}finally{n.f()}}})),e}catch(t){s.logger.warn("OwO data is bad: ",t)}}(JSON.parse(n.responseText));t(e)}else s.logger.warn("OwO data request was unsuccessful: "+n.status)},n.open("get",e,!0),n.send(null)}))}function d(){return(d=(0,a["default"])(i["default"].mark((function e(t){var n,r;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},e.next=3,Promise.all(t.split(",").map((function(e){return l(e.trim())})));case 3:return r=e.sent,Object.assign.apply(Object,[n].concat((0,o["default"])(r))),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var f=document.createElement("template");function p(e){try{return f.innerHTML=e,f.content.childNodes[0].src}catch(t){return""}}function h(e){return e.split("#").shift().split("?").shift().split("/").pop()}},4161:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r,i,o=n(1085),a=function(e,t){var n=document.getElementById("twikoo");i&&n.contains(i)||!e||"none"===e||((i=document.createElement("link")).href="default"===e?"".concat(t,"/themes/prism.min.css"):"".concat(t,"/themes/prism-").concat(e,".min.css"),i.rel="stylesheet",i.type="text/css",n.appendChild(i))};t["default"]=function(e,t){var i=o.app&&o.app.$twikoo.prismCdn?o.app.$twikoo.prismCdn:"https://cdn.staticfile.net/prism/1.28.0";window.Prism=window.Prism||{},window.Prism.manual=!0,r||(r=n(1965),n(210),r.plugins.autoloader.languages_path="".concat(i,"/components/")),a(t,i),r.highlightAllUnder(e)}},7564:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i,o=r(n(3852)),a="ADMIN_COMMENT",s="ADMIN_CONFIG_CATEGORY",u="ADMIN_CONFIG_ITEM",c="ADMIN_IMPORT",l=["qmsg","serverchan","pushplus","pushplushxtrip","dingtalk","wecom","bark","gocqhttp","atri","pushdeer","igot","telegram","feishu"].map((function(e){return'"'.concat(e,'"')})),d=["126","163","1und1","AOL","DebugMail","DynectEmail","FastMail","GandiMail","Gmail","Godaddy","GodaddyAsia","GodaddyEurope","Hotmail","Mail.ru","Maildev","Mailgun","Mailjet","Mailosaur","Mandrill","Naver","OpenMailBox","Outlook365","Postmark","QQ","QQex","SES","SES-EU-WEST-1","SES-US-EAST-1","SES-US-WEST-2","SendCloud","SendGrid","SendPulse","SendinBlue","Sparkpost","Yahoo","Yandex","Zoho","hot.ee","iCloud","mail.ee","qiye.aliyun"].map((function(e){return'"'.concat(e,'"')})),f=["default","coy","dark","funky","okaidia","solarizedlight","tomorrow","twilight"].map((function(e){return'"'.concat(e,'"')})),p=["qcloud","7bu","https://7bu.top","smms"].map((function(e){return'"'.concat(e,'"')})),h=["404","mp","identicon","monsterid","wavatar","retro","robohash","blank"].map((function(e){return'"'.concat(e,'"')}));t["default"]=(i={ADMIN_CLIENT_VERSION:["前端版本:","前端版本:","前端版本:","Client version: ","Клиент версияси: ","クライアントバージョン:"],ADMIN_SERVER_VERSION:["云函数版本:","云函數版本:","雲端函式版本:","Server version: ","Сервернинг версияси: ","サーバーサイドバージョン: "]},(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,a,["评论管理","評論管理","留言管理","Comment","Изоҳ","コメント管理"]),a+"_DELETE",["删除","刪除","移除","Delete","Ўчирмоқ","削除"]),a+"_DELETE_CONFIRM",["确认删除?","確認刪除?","確認移除?","Confirm deletion?","Ўчириш тасдиқлансинми?","本当に削除しますか?"]),a+"_FILTER_ALL",["全部","全部","全部","All","Ҳаммаси","全部"]),a+"_FILTER_VISIBLE",["只看可见","只看可見","只看可見","Visible","Кўринадиган","可視のみ"]),a+"_FILTER_HIDDEN",["只看隐藏","只看隱藏","只看隱藏","Hidden","Яширилган","非表示のみ"]),a+"_HIDE",["隐藏","隱藏","隱藏","Hide","非表示"]),a+"_IS_SPAM_SUFFIX",[" (已隐藏)"," (已隱藏)"," (已隱藏)"," (Hidden)"," (Яширилган)"," (非表示にされた)"]),a+"_SEARCH",["搜索","搜索","搜尋","Search","Излаш","検索"]),a+"_SEARCH_PLACEHOLDER",["搜索昵称、邮箱、网址、IP、评论正文、文章地址","搜索暱稱、郵箱、網址、IP、評論正文、文章地址","搜索暱稱、郵件、網址、IP、留言正文、文章路徑","Search by nick, mail, website, IP, comment, or article path","Тахаллус, почта, веб-сайт, ИП, шарҳ ёки мақола йўли бўйича излаш","ニックネーム、メールアドレス、ウェブサイトURL、IPアドレス、コメント内容、記事のURLを検索"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,a+"_SHOW",["显示","顯示","顯示","Show","Кўрсатиш","表示"]),a+"_TOP",["置顶","置頂","置頂","Pin","Қадамоқ","トップに固定"]),a+"_UNTOP",["取消置顶","取消置頂","取消置頂","Unpin","Қадоқни ечмоқ","トップ固定を解除"]),a+"_VIEW",["查看","查看","檢視","View","Кўриниш","閲覧"]),"ADMIN_CONFIG",["配置管理","配置管理","設定值管理","Configuration","Конфигурация","設定管理"]),s+"_COMMON",["通用","通用","一般","General","Умумий","一般"]),s+"_IM",["即时通知","即時通知","即時通知","Instant notification","Тезкор хабарнома","即時通知"]),s+"_MAIL",["邮件通知","郵件通知","郵件通知","Email notification","Электрон почта хабарномаси","メール通知"]),s+"_PLUGIN",["插件","插件","擴充功能","Plugin","Плагин","プラグイン"]),s+"_PRIVACY",["隐私","隱私","隱私權","Privacy","Шахсий қоидалар","プライバシー"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,s+"_SPAM",["反垃圾","反垃圾","防垃圾","Spam","Спам","スパム対策"]),"ADMIN_CONFIG_EMAIL_TEST",["邮件通知测试","郵件通知測試","郵件通知測試","Email notification test","Электрон почта хабарномаси тести","メール通知テスト"]),"ADMIN_CONFIG_EMAIL_TEST_BTN",["发送测试邮件","發送測試郵件","發送測試郵件","Send test mail","Синов хатини юбориш","テストメールを送信"]),"ADMIN_CONFIG_EMAIL_TEST_HELP",["输入一个邮箱地址,发送测试邮件","輸入一個郵箱位址,發送測試郵件","輸入一個郵箱帳號,發送測試郵件","Input an email address & send test mail","Э-почта манзилини киритинг ва синов хатини юборинг","メールアドレスを入力し、テストメールを送信してください"]),"ADMIN_CONFIG_EMAIL_TEST_RESULT",["测试结果:","測試結果:","測試結果:","Test result: ","Тест натижаси: ","テスト結果:"]),"ADMIN_CONFIG_EXAMPLE",["示例:","示例:","範例:","Example: ","Намуна: ","例:"]),u+"_AKISMET_KEY",['Akismet 反垃圾评论,用于垃圾评论检测,设为 "MANUAL_REVIEW" 开启人工审核,留空不使用反垃圾。注册:https://akismet.com','Akismet 反垃圾評論,用於垃圾評論檢測,設為 "MANUAL_REVIEW" 開啟人工審核,留空不使用反垃圾。註冊:https://akismet.com','Akismet 防垃圾留言,用於垃圾留言檢測,設為 "MANUAL_REVIEW" 以開啟人工審核,留空則不使用防垃圾。註冊:https://akismet.com','Akismet spam protection. Set to "MANUAL_REVIEW" to enable manual review. Leave it blank to not use anti-spam. Register Akismet: https://akismet.com','Акисмет спам ҳимояси. Қўлда кўриб чиқишни ёқиш учун "MANUAL_REVIEW" га созланг. Анти-спамдан фойдаланмаслик учун уни бўш қолдиринг. Акисметни рўйхатдан ўтказиш: https://akismet.com','Akismetは、スパムコメントの検出に使用されるアンチスパムサービスです。"MANUAL_REVIEW"に設定することで、手動レビューを有効化します。コメントのスパム対策にAkismetを使用することで、不要なコメントをブロックし、サイトのセキュリティを向上させることができます。 Akismetの詳細情報と登録は、https://akismet.com で提供されています。']),u+"_BLOGGER_NICK",["博主的昵称。","博主的昵稱。","站長的暱稱。","Admin nick name.","Админ исми.","管理者のニックネーム。"]),u+"_BLOGGER_EMAIL",["博主的邮箱地址,用于邮件通知、博主标识。","博主的郵箱地址,用於郵件通知、博主標識。","站長的郵箱帳號,用於郵件通知、站長認證。","Admin Email address. Used for Email notification and admin identification.","Админ электрон почта манзили. Электрон почта хабарномаси ва администратор идентификацияси учун фойдаланилади.","管理者のメールアドレス。メール通知と管理者の識別に使用されます。"]),u+"_COMMENT_BG_IMG",["评论框自定义背景图片 URL 地址。","評論框自定義背景圖片 URL 地址。","留言區塊自訂背景圖片 URL 網址。","URL for custom background image.","Махсус фон расми учун УРЛ.","コメントボックスのカスタム背景画像のURLアドレス。"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,u+"_COMMENT_PAGE_SIZE",["评论列表分页大小,默认为 8。","評論列表分頁大小,預設為 8。","留言列表分頁大小,預設為 8。","Comment page size. Default: 8.","Изоҳ саҳифаси ўлчами. Стандарт: 8.","コメントリストのページサイズ、デフォルトは8。"]),u+"_COMMENT_PLACEHOLDER",["评论框提示信息,可用
    换行,默认为空","評論框提示信息,可用
    換行,預設為空","留言區塊提示資訊,可用
    換行,預設空白","Comment placeholder. Use
    to start a newline. Default: empty.","Изоҳ тўлдирувчиси. Янги қаторни бошлаш учун <бр> дан фойдаланинг. Стандарт: бўш.","コメントボックスのヒントメッセージ、
    で改行可能、デフォルトは空。"]),u+"_CORS_ALLOW_ORIGIN",["CORS 安全域名,注意:错误设置会导致无法加载,默认为空,格式为 https://blog.example.com;如需添加多域名请使用,分隔","CORS 安全域名,注意:错误设置会导致无法加載,默認為空,格式为 https://blog.example.com;如需添加多域名請使用,分隔","CORS 安全網域,注意:設定錯誤將會導致載入失敗,預設空白,格式應為 https://blog.example.com;如需添加多域名請使用,分隔","CORS allow origin, note: incorrect settings can cause loading failure. Default: blank, format: https://blog.example.com; If you need to add multiple domain names, please use, separate","Версел СОРС келиб чиқишига рухсат беради, эътибор беринг: нотўғри созламалар юклашда хатоликка олиб келиши мумкин. Стандарт: бўш, формат: https://blog.example.com; Агар сиз бир нечта домен номларини қўшмоқчи бўлсангиз, илтимос, ажратишдан фойдаланинг.","CORS セキュアドメイン。注意:誤った設定は読み込みエラーを引き起こす可能性があります。デフォルトは空、形式は https://blog.example.com です。複数のドメインを追加する場合は、コンマで区切ってください。"]),u+"_DEFAULT_GRAVATAR",['默认的头像显示。默认值为 "identicon",可选:'.concat(h.join("、")),'預設的頭像顯示。預設值為 "identicon",可選:'.concat(h.join("、")),'預設的大頭貼照圖示。預設值為 "identicon",選項:'.concat(h.join("、")),'Avatar placeholder. Default: "identicon". Choose from: '.concat(h.join(", ")),"Аватар тўлдирувчиси. Стандарт: «идентификатор». Қуйидагилардан танланг: ".concat(h.join(", ")),'デフォルトのプロフィール画像表示。デフォルトは "identicon" で、選択肢は:'.concat(h.join("、")," です")]),u+"_EMOTION_CDN",["表情 CDN,英文逗号分隔。默认为:https://owo.imaegoo.com/owo.json","表情 CDN,英文逗號分隔。預設為:https://owo.imaegoo.com/owo.json","表情 CDN 來源,使用英文逗號分隔。預設為:https://owo.imaegoo.com/owo.json","Emoji CDN. Separate by comma. Default: https://owo.imaegoo.com/owo.json","Emoji CDN. Вергул билан ажратинг. Default: https://owo.imaegoo.com/owo.json","顔文字CDN。コンマで区切ってください。デフォルト:https://owo.imaegoo.com/owo.json"]),u+"_FORBIDDEN_WORDS",["违禁词配置,包含违禁词的内容会直接标记为垃圾评论。英文逗号分隔。","違禁詞配置,包含違禁詞的內容會直接標記為垃圾評論。英文逗號分隔。","禁用詞語設定,包含禁用詞語的內容會直接標記為垃圾留言。使用英文逗號分隔。","Configure prohibited words. Comments containing prohibited words will be auto spammed. Separate by comma.","Тақиқланган сўзларни созланг. Тақиқланган сўзларни ўз ичига олган шарҳлар автоматик равишда спамга юборилади. Вергул билан ажратинг.","禁止ワード設定、禁止ワードを含むコンテンツは直ちにスパムコメントとしてマークされます。コンマで区切ってください。"]),u+"_BLOCKED_WORDS",["屏蔽词配置,包含屏蔽词的内容会直接评论失败。英文逗号分隔。","屏蔽词配置,包含屏蔽词的内容会直接评论失败。英文逗号分隔。","屏蔽词配置,包含屏蔽词的内容会直接评论失败。英文逗号分隔。","Configure blocked words. Comments containing blocked words will fail to send. Separate by comma.","Configure blocked words. Comments containing blocked words will fail to send. Separate by comma.","ブロックワード設定、 ブロックワードを含むコンテンツは送信に失敗します。コンマで区切ってください。"]),u+"_GRAVATAR_CDN",["自定义头像 CDN 地址。如:cn.gravatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net,默认:cravatar.cn","自定義頭像 CDN 地址。如:cn.gravatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net,預設:cravatar.cn","自訂大頭貼照 CDN 來源。如:cn.gravatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net,預設:cravatar.cn","Custom avator CDN. (Examples: gravatar.com) Default: cravatar.cn.","Custom avator CDN. (Мисоллар: gravatar.com) Default: cravatar.cn.","カスタムプロフィール画像CDNアドレス。例:cn.gravatar.com、cravatar.cn、sdn.geekzu.org、gravatar.loli.net、デフォルト:cravatar.cn"]),u+"_HIDE_ADMIN_CRYPT",["隐藏管理面板入口。可设置一个“暗号”,只有在“昵称”一栏输入相同的“暗号”时,管理面板入口才会显示,留空则不隐藏管理入口","隱藏管理面板入口。可設定一個“暗號”,只有在“暱稱”一欄輸入相同的“暗號”時,管理面板入口才會顯示,留空則不隱藏管理入口","隱藏管理控制台入口。可設定一個“暗號”,只有在「暱稱」一欄輸入相同的「暗號」時,管理控制台入口才會顯示,留白則不隱藏管理入口","Set a cipher to hide the management panel entrance, only when the same cipher is entered in the nickname field the management panel entry will be displayed. Leave it blank to not hide the management entrance.","Бошқарув панелига киришни яшириш учун шифрни ўрнатинг, фақат тахаллус майдонига худди шу шифр киритилганда бошқарув панелидаги ёзув кўрсатилади. Бошқарув киришини яширмаслик учун уни бўш қолдиринг.",'管理パネルのログイン画面を非表示にする。 "パスワード" を設定でき、 "ニックネーム" フィールドに同じ "パスワード" を入力した場合のみ、管理パネルのログイン画面が表示されます。空白の場合、管理パネルのログイン画面は非表示にされません。']),u+"_HIGHLIGHT",["启用代码高亮功能。如果您的主题和代码高亮有冲突,请设为 false。默认:true","啟用代碼高亮功能。如果您的主題和代碼高亮有衝突,請設為 false。預設:true","啟用程式碼醒目顯示功能。如果您的主題和此功能發生衝突,請設定為 false。預設:true","Enable code highlighting. If your theme conflicts with code highlighting, please set it to false. Default: true.","Кодни ажратиб кўрсатишни ёқинг. Агар мавзуингиз кодни ажратиб кўрсатишга зид бўлса, уни «фалсе» га ўрнатинг. Стандарт: рост.","コードハイライト機能を有効にします。テーマとコードハイライトに競合がある場合、falseに設定してください。デフォルト:true"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,u+"_HIGHLIGHT_THEME",["代码高亮主题,可选:".concat(f.join("、"),",访问 https://prismjs.com 可预览主题效果。如果您的主题和代码高亮有冲突,请设为 none。默认:none"),"代碼高亮主題,可選:".concat(f.join("、"),",訪問 https://prismjs.com 可預覽主題效果。如果您的主題和代碼高亮有衝突,請設為 none。預設:none"),"程式碼醒目顯示主題,選項:".concat(f.join("、"),",瀏覽 https://prismjs.com 可預覽主題效果。如果您的主題和此功能發生衝突,請設定為 none。預設:none"),"Code highlighting theme. Select from: ".concat(f.join(", "),". Visit https://prismjs.com for preview. If your theme conflicts with code highlighting, please set it to none. Default: none."),"Кодни таъкидлаш мавзуси. Қуйидагилардан танланг: ".concat(f.join(", "),". Олдиндан кўриш учун https://prismjs.com сайтига ташриф буюринг. Агар мавзуингиз кодни ажратиб кўрсатишга зид бўлса, уни «Ҳеч» га ўрнатинг. Стандарт: йўқ."),"コードハイライトのテーマ、選択肢:".concat(f.join("、"),"、テーマの効果をプレビューするには https://prismjs.com を訪問してください。テーマとコードハイライトに競合がある場合、noneに設定してください。デフォルト:none")]),u+"_IMAGE_CDN",["插入图片所使用的图床,目前支持:".concat(p.join("、")),"插入圖片所使用的圖床,目前支持:".concat(p.join("、")),"插入圖片所使用的圖床,目前支援:".concat(p.join("、")),"The image bed for image uploading. Select from: ".concat(p.join(", ")),"Расм юклаш учун расм тўшаги. Қуйидагилардан танланг: ".concat(p.join(", ")),"画像のアップロードに使用する画像ホスティングサービス、次のうちから選択してください:".concat(p.join("、"))]),u+"_IMAGE_CDN_TOKEN",["图床 token。qcloud 图床无需设置","图床 token。qcloud 图床无需设置","圖床 token。qcloud 圖床不需設定","The image bed token. Unnessessary for qcloud","Тасвир токен белгиси. Қслоуд учун кераксиз","画像ホスティングトークン。qcloud画像ホスティングを利用する場合は設定の必要はありません"]),u+"_LIGHTBOX",["使用简易图片点击放大效果。默认:false","使用簡易圖片點擊放大效果。預設:false","使用簡易圖片點擊放大效果。預設:false","Use simple Lightbox effect. Default: false","Используйте простые эффекты лайтбокса. По умолчанию: false","シンプルなLightbox効果を使用します。デフォルト:false"]),u+"_LIMIT_PER_MINUTE",["单个 IP 发言频率限制(条/10分钟),0 为无限制,默认:10","單個 IP 發言頻率限制(條/10分鐘),0 為無限制,預設:10","單個 IP 留言頻率限制(則/10分鐘),0 為無限,預設:10","How many comments can be posted by each IP every 10 minutes, 0 is unlimited, default: 10.","Ҳар бир ИП ҳар 10 дақиқада қанча шарҳ қолдириши мумкин, 0 чексиз, стандарт: 10.","同一IPにおける10分ごとの投稿回数制限。0は無制限、デフォルト:10"]),u+"_LIMIT_PER_MINUTE_ALL",["全站发言频率限制(条/10分钟),0 为无限制,默认:10","全站發言頻率限制(條/10分鐘),0 為無限制,預設:10","全站留言頻率限制(則/10分鐘),0 為無限,預設:10","How many comments can be posted by all IPs every 10 minutes, 0 is unlimited, default: 10.","Барча ИП-лар ҳар 10 дақиқада қанча шарҳ қўйиши мумкин, 0 чексиз, стандарт: 10.","全IPにおける10分ごとの投稿回数制限。0は無制限、デフォルト:10"]),u+"_LIMIT_LENGTH",["评论长度限制,0 为无限制,默认:500","評論長度限制,0 為無限制,預設:500","留言長度限制,0 為無限,預設:500","Comment length limitation, 0 is unlimited, default: 500.","Шарҳ узунлиги чеклови, 0 чексиз, стандарт: 500.","コメント長さの制限、0は無制限、デフォルト:500"]),u+"_MAIL_SUBJECT",["自定义通知邮件主题,留空则使用默认主题。","自定義通知郵件主題,留空則使用預設主題。","自訂通知郵件主題,留白則使用預設主題。","Custom Email notification subject. Leave it blank to use the default subject.","Махсус электрон почта хабарномаси мавзуси. Стандарт мавзуни ишлатиш учун уни бўш қолдиринг.","カスタム通知メールの件名、空白の場合はデフォルトの件名を使用します。"]),u+"_MAIL_SUBJECT_ADMIN",["自定义博主通知邮件主题,留空则使用默认主题。","自定義博主通知郵件主題,留空則使用預設主題。","自訂站長通知郵件主題,留白則使用預設主題。","Custom admin Email notification subject. Leave it blank to use the default subject.","Махсус администратор электрон почта хабарномаси мавзуси. Стандарт мавзуни ишлатиш учун уни бўш қолдиринг.","管理者へのカスタム通知メールの件名、空白の場合はデフォルトの件名を使用します。"]),u+"_MAIL_TEMPLATE",["自定义通知邮件模板,留空则使用默认模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","自定義通知郵件模板,留空則使用預設模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","自訂通知郵件模板,留白則使用預設模板。可包含的欄位:${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","Custom Email notification template. Leave it blank to use the default template. Fields that can be included: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","Махсус электрон почта хабарномаси шаблони. Стандарт шаблонни ишлатиш учун уни бўш қолдиринг. Қўшилиши мумкин бўлган майдонлар: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","カスタム通知メールテンプレート、空白の場合はデフォルトテンプレートを使用します。使用可能なフィールド:${SITE_URL}、${SITE_NAME}、${PARENT_NICK}、${PARENT_COMMENT}、${NICK}、${COMMENT}、${POST_URL}、${IMG}、${PARENT_IMG}"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,u+"_MAIL_TEMPLATE_ADMIN",["自定义博主通知邮件模板,留空则使用默认模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","自定義博主通知郵件模板,留空則使用預設模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","自訂站長通知郵件模板,留白則使用預設模板。可包含的欄位:${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","Custom admin Email notification template. Leave it blank to use the default template. Fields that can be included: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","Махсус администратор электрон почта хабарномаси шаблони. Стандарт шаблонни ишлатиш учун уни бўш қолдиринг. Қўшилиши мумкин бўлган майдонлар: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","管理者へのカスタム通知メールテンプレート、空白の場合はデフォルトテンプレートを使用します。使用可能なフィールド:${SITE_URL}、${SITE_NAME}、${NICK}、${COMMENT}、${POST_URL}、${IP}、${MAIL}、${IMG}"]),u+"_MASTER_TAG",["博主标识自定义文字,默认为 “博主”。","博主標識自定義文字,預設為 “博主”。","站長認證自訂文字,預設為「博主」。","Custom admin identifier.","Махсус администратор идентификатори.",'管理者を表すカスタムテキスト、デフォルトは "ブロガー"']),u+"_NOTIFY_SPAM",["垃圾评论是否发送通知,默认:true","垃圾評論是否發送通知,默認:true","垃圾留言是否發送通知,預設:true","Notifications for spam comments. Default: true.","Спам шарҳлар учун билдиришномалар. Стандарт: рост.","スパムコメントの通知を送信するかどうか、デフォルト:true"]),u+"_TURNSTILE_SITE_KEY",["Turnstile 验证码的站点密钥。申请地址: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile 验证码的站点密钥。申请地址: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile 验证码的站点密钥。申请地址: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHA Site Key. Get from: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHA Site Key. Get from: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHAのサイトキー. 参照: https://dash.cloudflare.com/?to=/:account/turnstile"]),u+"_TURNSTILE_SECRET_KEY",["Turnstile 验证码的密钥","Turnstile 验证码的密钥","Turnstile 验证码的密钥","Turnstile CAPTCHA Secret Key","Turnstile CAPTCHA Secret Key","Turnstile CAPTCHAのシークレットキー"]),u+"_QCLOUD_SECRET_ID",["腾讯云 secret id,用于垃圾评论检测。同时设置腾讯云和 Akismet 时,只有腾讯云会生效。注册:https://twikoo.js.org/cms.html","騰訊雲 secret id,用於垃圾評論檢測。同時設定騰訊雲和 Akismet 時,只有騰訊雲會生效。註冊:https://twikoo.js.org/cms.html","騰訊雲 Secret ID,用於垃圾留言檢測。同時設定騰訊雲和 Akismet 時,只有騰訊雲會被啟用。註冊:https://twikoo.js.org/cms.html","Tencent Cloud secret id for spam detection. When Tencent Cloud and Akismet are set at the same time, only Tencent Cloud will take effect. Register: https://twikoo.js.org/cms.html","Спамни аниқлаш учун Тенсент Слоуд махфий идентификатори. Тенсент Слоуд ва Акисмет бир вақтнинг ўзида ўрнатилганда, фақат Тенсент Слоуд кучга киради. Рўйхатдан ўтиш: https://twikoo.js.org/cms.html","Tencent CloudのシークレットID、スパムコメントの検出に使用されます。同時にTencent CloudとAkismetを設定した場合、Tencent Cloudのみが有効になります。登録:https://twikoo.js.org/cms.html"]),u+"_QCLOUD_SECRET_KEY",["腾讯云 secret key","騰訊雲 secret key","騰訊雲 Secret Key","Tencent Cloud secret key.","Тенсент Клауд махфий калити.","Tencent Cloudのシークレットキー"]),u+"_PUSHOO_CHANNEL",["即时消息推送平台名称,支持:".concat(l.join("、")," 等"),"即時消息推送平台名称,支持:".concat(l.join("、")," 等"),"即時訊息推送平台名稱,支援:".concat(l.join("、")," 等"),"IM notification push channel. Support: ".concat(l.join(", ")),"ИМ билдиришномаси суриш канали. Қўллаб-қувватлаш: ".concat(l.join(", ")),"即時メッセージプッシュプラットフォームの名前、".concat(l.join("、")," などに対応しています。")]),u+"_PUSHOO_TOKEN",["即时消息推送 token。请参考 https://pushoo.js.org 里的详细说明配置","即時消息推送 token。请参考 https://pushoo.js.org 里的详细说明配置","即時訊息推送 Token。請参考 https://pushoo.js.org 裡的詳細說明進行設定","IM notification push token. See https://pushoo.js.org for details","ИМ билдиришномаси пуш токени. Тафсилотлар учун https://pushoo.js.org га қаранг","即時メッセージプッシュトークン。詳細な設定については、https://pushoo.js.org の説明をご覧ください"]),u+"_DISPLAYED_FIELDS",["界面上展示的输入框,默认:nick,mail,link","界面上顯示的輸入框,預設:nick,mail,link","界面上顯示的輸入框,預設:nick,mail,link","Input boxes displayed on the interface. Default: nick,mail,link","Поля ввода, отображаемые на интерфейсе, Стандарт: nick,mail,link","画面に表示される入力欄、デフォルト:nick,mail,link"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,u+"_REQUIRED_FIELDS",["评论必填信息,设为 nick,mail,link 代表全必填,设为 none 代表全选填,默认:nick,mail","評論必填信息,設為 nick,mail,link 代表全必填,設為 none 代表全選填,預設:nick,mail","留言必填資訊,設為 nick,mail,link 代表全必填,設為 none 代表全選填,預設:nick,mail",'Required fields for comments. Set to "nick,mail,link" means all fields are required. Set to "none" means all fields are optional. Default: nick,mail.',"Шарҳлар учун зарур майдонлар. «Ниск,маил,линк» га ўрнатилган бўлса, барча майдонлар талаб қилинади. «Йўқ» га ўрнатилиши барча майдонлар ихтиёрий эканлигини англатади. Стандарт: ник, почта.","コメント必須情報、すべてを必須にする場合は nick,mail,link に設定、すべてを」任意にする場合はnoneに設定してください。デフォルト:nick,mail"]),u+"_SC_MAIL_NOTIFY",["是否同时通过 IM 和邮件 2 种方式通知博主,默认只通过 IM 通知博主,默认:false","是否同時通過 IM 和郵件 2 種方式通知博主,預設只通過 IM 通知博主,預設:false","是否同時透過 IM 和郵件 2 種方式通知博主,預設只透過 IM 通知博主,預設:false","Whether to notify admin via IM and email at the same time, the default is to notify admin only via IM. Default: false.","Администраторни бир вақтнинг ўзида ИМ ва электрон почта орқали хабардор қилиш керакми, сукут бўйича администраторни фақат ИМ орқали хабардор қилиш керак. Стандарт: нотўғри.","管理者にIMとEメールで同時に通知するかどうか、デフォルトはIMのみで通知、デフォルト:false"]),u+"_SENDER_EMAIL",["邮件通知邮箱地址。对于大多数邮箱服务商,SENDER_EMAIL 必须和 SMTP_USER 保持一致,否则无法发送邮件。","郵件通知郵箱地址。對於大多數郵箱服務商,SENDER_EMAIL 必須和 SMTP_USER 保持一致,否則無法發送郵件。","郵件通知郵箱帳號。對於大多數電郵服務提供商,SENDER_EMAIL 必須和 SMTP_USER 保持一致,否則無法傳送郵件。","Email address for Email notification. For most email service providers, SENDER_EMAIL must be consistent with SMTP_USER, otherwise emails cannot be sent.","Электрон почта хабарномаси учун электрон почта манзили. Аксарият электрон почта хизмати провайдерлари учун SENDER_EMAIL билан мос келиши керак, акс ҳолда электрон почта хабарларини юбориб бўлмайди.","電子メール通知の電子メールアドレス。 ほとんどのメールボックス・プロバイダでは、SENDER_EMAILはSMTP_USERと同じでなければなりません。"]),u+"_SENDER_NAME",["邮件通知标题。","郵件通知標題。","郵件通知標題。","The title for Email notification.","Электрон почта хабарномаси сарлавҳаси.","メール通知のタイトル"]),u+"_SHOW_EMOTION",["启用插入表情功能,默认为:true","啟用插入表情功能,預設為:true","啟用插入表情功能,預設為:true","Enable emojis. Default: true.","Кулгичларни ёқинг. Стандарт: рост.","顔文字の挿入を有効にする、デフォルト:true"]),u+"_SHOW_IMAGE",["启用插入图片功能,默认为:true","啟用插入圖片功能,預設為:true","啟用插入圖片功能,預設為:true","Enable picture uploading. Default: true.","Расм юклашни ёқинг. Стандарт: рост.","画像挿入機能を有効にする、デフォルト:true"]),u+"_SHOW_UA",["是否显示用户系统和浏览器,默认为:true","是否顯示使用者系統和瀏覽器,預設為:true","是否顯示使用者作業系統和瀏覽器,預設為:true","Show users' OS and browser. Default: true.","Фойдаланувчиларнинг ОС ва браузерини кўрсатиш. Стандарт: рост.","ユーザーのOSとブラウザーの情報を表示するかどうか、デフォルトは:true"]),u+"_SHOW_REGION",["是否显示用户 IP 属地到省,可能不准确,不支持 IPv6,默认为:false","是否顯示使用者 IP 屬地到省,預設為:false","是否顯示使用者 IP 所屬地(精確到省),預設為:false","Show users' IP region (province). Default: false.","Фойдаланувчиларнинг ИП ҳудудини (вилоят) кўрсатиш. Стандарт: нотўғри.","ユーザーIPの所在地(省)を表示するかどうか。正確でない場合があります。IPv6はサポートされていません。デフォルトは:false"]),u+"_SITE_NAME",["网站名称","網站名稱","網站名稱","Website name.","Вебсайт номи.","ウェブサイト名"]),u+"_SITE_URL",["网站地址","網站地址","網站網址","Website URL.","Вебсайт URL.","ウェブサイトのアドレス"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,u+"_SMTP_HOST",["自定义 SMTP 服务器地址。如您已配置 SMTP_SERVICE,此项请留空。","自定義 SMTP 伺服器地址。如您已配置 SMTP_SERVICE,此項請留空。","自訂 SMTP 伺服器位址。如您已設定 SMTP_SERVICE,此項請留白。","Custom SMTP server address. If you have configured SMTP_SERVICE, please leave it empty.","Махсус СМТП сервер манзили. Агар сиз СМТП_СEРВИСE созлаган бўлсангиз, уни бўш қолдиринг.","自定义 SMTP 服务器地址。如您已配置 SMTP_SERVICE,此项请留空。","カスタムSMTPサーバのアドレス。 SMTP_SERVICEを設定している場合は空白のままにします。"]),u+"_SMTP_PASS",["邮件通知邮箱密码,QQ、163邮箱请填写授权码。","郵件通知郵箱密碼,QQ、163郵箱請填寫授權碼。","郵件通知郵箱密碼,QQ、163 郵箱請填寫授權碼。","Email notification mailbox password. Enter authorization code for QQ/163 mail.","Электрон почта хабарномаси почта қутиси пароли. ҚҚ/163 почтаси учун авторизация кодини киритинг.","メール通知のメールボックスパスワード、QQ、163メールは認証コードを入力してください"]),u+"_SMTP_PORT",["自定义 SMTP 端口。如您已配置 SMTP_SERVICE,此项请留空。","自定義 SMTP 端口。如您已配置 SMTP_SERVICE,此項請留空。","自訂 SMTP 連接埠。如您已設定 SMTP_SERVICE,此項請留白。","Custom SMTP port. If you have configured SMTP_SERVICE, please leave it empty.","Махсус СМТП порти. Агар сиз СМТП_СEРВИС созлаган бўлсангиз, уни бўш қолдиринг.","カスタムSMTPポート。 SMTP_SERVICEを設定している場合は、空白のままにします。"]),u+"_SMTP_SECURE",["自定义 SMTP 是否使用TLS,请填写 true 或 false。如您已配置 SMTP_SERVICE,此项请留空。","自定義 SMTP 是否使用TLS,請填寫 true 或 false。如您已配置 SMTP_SERVICE,此項請留空。","自訂 SMTP 是否使用 TLS,請填寫 true 或 false。如您已設定 SMTP_SERVICE,此項請留白。",'Custom TLS for SMTP. Enter "true" or "false". If you have configured SMTP_SERVICE, please leave it empty.',"СМТП учун махсус ТЛС. «Тўғри» ёки «нотўғри» ни киритинг. Агар сиз СМТП_СEРВИС созлаган бўлсангиз, уни бўш қолдиринг.","SMTPがTLSを使用するかどうかをカスタマイズします。trueまたはfalseを記入してください。SMTP_SERVICEを設定している場合は、この項目を空白にしてください。"]),u+"_SMTP_SERVICE",["邮件通知邮箱服务商。支持:".concat(d.join("、")),"郵件通知郵箱服務商。支持:".concat(d.join("、")),"郵件通知郵箱服務提供商。支援:".concat(d.join("、")),"Email service provider for Email notification. Support: ".concat(d.join(", ")),"Электрон почта хабарномаси учун электрон почта хизмати провайдери. Қўллаб-қувватлаш: ".concat(d.join(", ")),"メール通知メールボックスサービスプロバイダ。 サポート: ".concat(d.join(","),".")]),u+"_SMTP_USER",["邮件通知邮箱用户名。","郵件通知郵箱用户名。","郵件通知郵箱使用者名稱。","Email notification mailbox username.","Электрон почта хабарномаси почта қутиси фойдаланувчи номи.","メール通知のメールボックスユーザー名。"]),"ADMIN_CONFIG_RESET",["重置","重置","還原","Reset","Ресет","リセット"]),"ADMIN_CONFIG_SAVE",["保存","保存","儲存","Save","Сақлаш","保存"]),"ADMIN_CREDENTIALS",["私钥文件","私鑰文件","私鑰檔案","Private key file","Shaxsiy kalit fayli","秘密鍵ファイル"]),"ADMIN_CREDENTIALS_FAQ",["如何获得私钥","如何獲得私鑰","如何獲取私鑰","How to get the private key","Shaxsiy kalitni qanday olish mumkin","秘密鍵を取得する方法"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,"ADMIN_CREDENTIALS_PLACEHOLDER",["请粘贴私钥文件内容","請貼上私鑰文件內容","請貼上私鑰檔案內容","Please paste the contents of the private key file","Iltimos, shaxsiy kalit faylining mazmunini joylashtiring","秘密鍵ファイルの内容を貼り付けてください"]),"ADMIN_FORGOT",["忘记密码","忘記密碼","忘記密碼","Forget your password","Парол унутилган","パスワードを忘れた"]),"ADMIN_EXPORT",["导出","匯出","匯出","Export","Экспорт","エクスポート"]),"ADMIN_EXPORT_WARN",["将全部数据导出为 JSON 文件。如果遇到评论较多、导出失败或缺失数据,请连接数据库手动导出","將全部數據匯出為 JSON 檔。如果遇到評論較多、匯出失敗或缺失數據,請連接資料庫手動匯出","將全部數據匯出為 JSON 檔。如果遇到評論較多、匯出失敗或缺失數據,請連接資料庫手動匯出","Export all data as a JSON file. If you encounter export failures or missing data, connect to the database to export manually","Барча маълумотларни ЖСОН файли сифатида экспорт қилинг. Экспорт хатоси ёки этишмаётган маълумотларга дуч келсангиз, қўлда экспорт қилиш учун маълумотлар базасига уланинг","すべてのデータをJSONファイルとしてエクスポートします。コメントが多く、エクスポートに失敗したりデータが欠落している場合は、データベースに手動で接続してエクスポートしてください"]),"ADMIN_EXPORT_COMMENT",["导出评论","匯出評論","匯出評論","Export comment","Изохни экспорт килиш","コメントをエクスポート"]),"ADMIN_EXPORT_COUNTER",["导出访问量","匯出訪問量","匯出訪問量","Export counter","Экспорт сони","ページビューをエクスポート"]),c,["导入","匯入","匯入","Import","Импорт","インポート"]),c+"_FILE_REQUIRED",["未选择文件","未選擇文件","未選擇檔案","No file selected","Файлни танланмади","ファイルが選択されていません"]),c+"_IMPORTED",["完成导入 ","完成匯入 ","完成匯入 ","Imported ","Импорт қилинди ","インポート完了 "]),c+"_IMPORTING",["开始导入 ","開始匯入 ","開始匯入 ","Importing ","Импорт қилинмоқда ","インポートを開始 "]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,c+"_LOG",["日志","日誌","日誌","Log","Лог","システムログ"]),c+"_SELECT",["请选择","請選擇","請選擇","Select","Танланг","選択してください"]),c+"_SELECT_FILE",["选择文件","選擇文件","選擇檔案","Select file","Файлни танланг","ファイルを選択"]),c+"_SELECT_SOURCE",["选择源系统","選擇源系統","選擇來源系統","Select source","Манба танланг","ソースを選択"]),c+"_SOURCE_REQUIRED",["未选择源系统","未選擇源系統","未選擇來源系統","No source selected.","Ҳеч қандай манба танланмаган.","ソースが選択されていません"]),c+"_START",["开始导入","開始匯入","開始匯入","Start import","Импортни бошлаш","インポートを開始"]),c+"_STARTING",["开始导入","開始匯入","開始匯入","Importing","Импорт қилинмоқда","インポート中です"]),c+"_TIP_ARTALK",["请上传 JSON 格式的 Artalk 导出文件,文件名通常为 comments.data.json","請上傳 JSON 格式的 Artalk 導出文件,文件名通常為 comments.data.json","請上傳 JSON 格式的 Artalk 匯出檔案,檔名通常為 comments.data.json","Please upload the Artalk export file in JSON format.The file name is usually comments.data.json","Арталк экспорт файлини ЖСОН форматида юкланг. Файл номи одатда comments.data.json бўлади.","JSON形式のArtalkエクスポートファイルをアップロードしてください。ファイル名は通常、comments.data.jsonです。"]),c+"_TIP_DISQUS",["请上传 XML 格式的 Disqus 导出文件,文件名通常为 [网站名称]-[导出时间]-all.xml","請上傳 XML 格式的 Disqus 導出文件,文件名通常為 [網站名稱]-[導出時間]-all.xml","請上傳 XML 格式的 Disqus 匯出檔案,檔名通常為 [網站名稱]-[匯出時間]-all.xml","Please upload the Disqus export file in XML format. The file name is usually [website name]-[export time]-all.xml","Disqus экспорт файлини ХМЛ форматида юкланг. Файл номи одатда [веб-сайт номи]-[экспорт vaqti]-all.xml","DisqusエクスポートファイルをXML形式でアップロードしてください。ファイル名は通常、[サイト名]-[エクスポート時間]-all.xmlです。"]),c+"_TIP_VALINE",["请上传 JSON 格式的 Valine 导出文件,文件名通常为 Comment.json","請上傳 JSON 格式的 Valine 導出文件,文件名通常為 Comment.json","請上傳 JSON 格式的 Valine 匯出檔案,檔名通常為 Comment.json","Please upload the Valine export file in JSON format. The file name is usually Comment.json","Илтимос, Валине экспорт файлини ЖСОН форматида юкланг. Файл номи одатда Comment.json","JSON形式のValineエクスポートファイルをアップロードしてください。ファイル名は通常、Comment.jsonです。"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,c+"_UPLOADED",["上传完成 ","上傳完成 ","上傳完成 ","Uploaded ","Юкланди ","アップロード完了"]),c+"_UPLOADING",["已上传 ","已上傳 ","已上傳 ","Uploading ","Юкланмоқда ","すでにアップロードされています"]),c+"_WARN",["支持从其他评论系统的备份文件导入评论。\n数据是安全的,导入功能完全在您的云环境进行。\n建议在导入前备份 comment 数据库。","支持從其他評論系統的備份文件匯入評論。\n數據是安全的,匯入功能完全在您的雲環境進行。\n建議在匯入前備份 comment 數據庫。","支援從其他留言系統的備份檔案匯入留言。\n資料是安全的,匯入功能完全在您的雲端環境進行。\n建議在匯入前備份 comment 資料庫。","Import comments from other comment systems.\nThe data is safe, and the import function is performed entirely in your cloud environment.\nPlease backup your comment database before importing.","Бошқа шарҳ тизимларидан шарҳларни импорт қилинг.\nМаълумотлар хавфсиз ва импорт функцияси тўлиқ булутли муҳитда амалга оширилади.\nИмпорт қилишдан олдин шарҳлар маълумотлар базасини захираланг.","他のレビューシステムのバックアップファイルからのレビューのインポートに対応。 \nデータは安全で、インポート機能はすべてクラウド環境で実行されます。 \nインポート前にコメントデータベースをバックアップすることを推奨します。"]),"ADMIN_LOGIN",["登录","登入","登入","Sign in","Тизимга кириш","ログイン"]),"ADMIN_LOGIN_TITLE",["Twikoo 评论管理","Twikoo 評論管理","Twikoo 留言管理","Twikoo Management Panel","Twikoo Бошқарув Панели","Twikoo コメント管理"]),"ADMIN_LOGOUT",["退出登录","退出登入","登出","Sign out","Тизимдан чиқиш","ログアウト"]),"ADMIN_NEED_UPDATE",["若要使用评论管理,请更新 Twikoo 云函数","若要使用評論管理,請更新 Twikoo 雲函數","若要使用留言管理功能,請更新 Twikoo 雲端函數","A new version of Twikoo is required for comment management.","Фикрларни бошқариш учун Твикоо нинг янги версияси талаб қилинади.","コメント管理を使用するには、Twikoo クラウド関数を更新してください"]),"ADMIN_PASSWORD",["密码","密碼","密碼","Password","Пароль","パスワード"]),"ADMIN_PASSWORD_PLACEHOLDER",["请输入","請輸入","請輸入","Enter your password...","Паролингизни киритинг...","入力してください"]),"ADMIN_PASSWORD_REQUIRED",["请输入密码","請輸入密碼","請輸入密碼","Please enter your password","Илтимос, паролингизни киритинг","パスワードを入力してください"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,"ADMIN_REGIST",["注册","註冊","註冊","Register","Рўйхатдан ўтиш","登録"]),"ADMIN_REGIST_FAILED",["注册失败","註冊失敗","註冊失敗","Register failed","Рўйхатдан ўтиш амалга ошмади","登録に失敗しました"]),"ADMIN_SET_PASSWORD",["设置密码","設置密碼","設定密碼","Set password","Пароль қўйиш","パスワードの設定"]),"ADMIN_SET_PASSWORD_CONFIRM",["确认密码","確認密碼","確認密碼","Confirm password","Паролни тасдиқланг","パスワードの確認"]),"ADMIN_SET_PASSWORD_CONFIRM_PLACEHOLDER",["确认密码","確認密碼","確認密碼","Confirm password...","Паролни тасдиқлаш...","パスワードの確認"]),"ADMIN_SET_PASSWORD_PLACEHOLDER",["密码","密碼","密碼","Password","Пароль","パスワード"]),"ADMIN_TITLE",["Twikoo 管理面板","Twikoo 管理面板","Twikoo 管理控制台","Twikoo Management Panel","Twikoo Бошқарув Панели","Twikoo管理パネル"]),"COMMENTS_COUNT_SUFFIX",[" 条评论"," 條評論"," 則留言"," comments"," изоҳлар"," 件のコメント"]),"COMMENTS_EXPAND",["查看更多","查看更多","檢視更多","Load more","Давомини юклаш","もっと見る"]),"COMMENTS_NO_COMMENTS",["没有评论","沒有評論","沒有留言","No comment","Изоҳларсиз","コメントなし"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,"COMMENT_EXPAND",["展开","展開","展開","Read more","Давомини ўқиш","コメントを展開する"]),"COMMENT_COLLAPSE",["收起","收起","閉合","Collapse","Очиш","コメントを折りたたむ"]),"COMMENT_MASTER_TAG",["博主","博主","站長","Admin","Модератор","管理者"]),"COMMENT_REPLIED",["回复","回覆","回覆","Reply","Жавоб бериш","返信"]),"COMMENT_REVIEWING_TAG",["审核中","審核中","審核中","Pending","Кутилмоқда","検討中"]),"COMMENT_TOP_TAG",["置顶","置頂","置頂","Pinned","Қадоқланган","トップに固定"]),"COMMENT_FAILED",["评论失败","評論失敗","評論失敗","Comment failed","Фикр билдирилмади","コメント失敗"]),"META_INPUT_LINK",["网址","網址","網址","Website","Веб-сайт","ウェブサイト"]),"META_INPUT_MAIL",["邮箱","郵箱","郵箱","Email","Email","受信箱"]),"META_INPUT_NICK",["昵称","暱稱","暱稱","Nickname","Исм","ネットネーム"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,"META_INPUT_NOT_REQUIRED",["选填","選填","選填","Optional","Ихтиёрий","任意"]),"META_INPUT_REQUIRED",["必填","必填","必填","Required","Мажбурий","必須項目"]),"PAGINATION_COUNT_PREFIX",["共 ","共 ","共 ","","","合計 "]),"PAGINATION_COUNT_SUFFIX",[" 条"," 條"," 條"," entries"," ёзувлар"," 件"]),"PAGINATION_GOTO_PREFIX",["前往","前往","前往","Goto page","Саҳифага ўтиш","ページに移動"]),"PAGINATION_GOTO_SUFFIX",["页","頁","頁","","ページ"]),"PAGINATION_PAGESIZE",["条/页","條/頁","則/頁","entries/page","ёзувлар/саҳифа","件/ページ"]),"SUBMIT_CANCEL",["取消","取消","取消","Cancel","Бекор қилиш","キャンセル"]),"SUBMIT_PREVIEW",["预览","預覽","預覽","Preview","Кўриб чиқиш","プレビュー"]),"SUBMIT_SEND",["发送","發送","傳送","Send","Юбормоқ","送信"]),(0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])((0,o["default"])(i,"IMAGE_UPLOAD_PLACEHOLDER",["图片上传中","圖片上傳中","圖片上傳中","Uploading image","Расм юклаш","画像のアップロード中"]),"IMAGE_UPLOAD_FAILED",["图片上传失败","圖片上傳失敗","圖片上傳失敗","IMAGE UPLOAD FAILED","РАСМ ЮКЛАНМАДИ","画像のアップロード失敗"]),"IMAGE_UPLOAD_FAILED_NO_CONF",["博主未配置图床服务","博主未配置圖床服務","博主未配置圖床服務","The blogger didn't configured any image bed service","Муаллиф ҳеч қандай тасвир хизматини созламаган","管理者が画僧配信サービスを設定していません"]),"IMAGE_UPLOAD_PLEASE_WAIT",["图片上传中,请稍候再发送","圖片上傳中,請稍候再發送","圖片上傳中,請稍候再傳送","Uploading image, please try again later","Расм юкланмоқда, кейинроқ қайта уриниб кўринг","画像はアップロード中です"]),"SUBMIT_SENDING",["发送中","發送中","正在傳送","Sending","Юбориш","送信中"]),"TIMEAGO_DAYS",["天前","天前","天前","days ago","кунлар олдин","日前"]),"TIMEAGO_HOURS",["小时前","小時前","小時前","hours ago","соатлар олдин","時間前"]),"TIMEAGO_MINUTES",["分钟前","分鐘前","分鐘前","minutes ago","дақиқалар олдин","分前"]),"TIMEAGO_NOW",["刚刚","剛剛","剛剛","Just now","Ҳозиргина","たった今"]),"TIMEAGO_SECONDS",["秒前","秒前","秒前","seconds ago","сониялар олдин","秒前"]))},5878:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t.setLanguage=t["default"]=void 0;var i=r(n(7564)),o={zh:0,"zh-cn":0,"zh-hk":1,"zh-tw":2,"en-us":3,"en-gb":3,en:3,uz:4,"uz-uz":4,ja:5,"ja-jp":5},a="";t.setLanguage=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};e.lang&&e.lang.toLowerCase()in o&&(a=e.lang)},t["default"]=function(e,t){var n=(t||a||navigator.language).toLowerCase();return(n&&o[n]?i["default"][e][o[n]]:i["default"][e][o["zh-cn"]])||""}},8129:function(e,t,n){"use strict";var r=n(477),i=n(9367);Object.defineProperty(t,"__esModule",{value:!0}),t.blobToDataURL=void 0,Object.defineProperty(t,"call",{enumerable:!0,get:function(){return p.call}}),t.getHref=t.getFuncVer=t.getCommentsCountApi=t.convertLink=void 0,Object.defineProperty(t,"getQQAvatar",{enumerable:!0,get:function(){return h.getQQAvatar}}),t.getUserAgent=t.getUrl=t.getRecentCommentsApi=void 0,Object.defineProperty(t,"initMarkedOwo",{enumerable:!0,get:function(){return g.initMarkedOwo}}),Object.defineProperty(t,"initOwoEmotions",{enumerable:!0,get:function(){return g.initOwoEmotions}}),t.isNotSet=void 0,Object.defineProperty(t,"isQQ",{enumerable:!0,get:function(){return h.isQQ}}),Object.defineProperty(t,"isUrl",{enumerable:!0,get:function(){return p.isUrl}}),t.logger=void 0,Object.defineProperty(t,"marked",{enumerable:!0,get:function(){return d["default"]}}),Object.defineProperty(t,"normalizeMail",{enumerable:!0,get:function(){return h.normalizeMail}}),t.readAsText=void 0,Object.defineProperty(t,"renderCode",{enumerable:!0,get:function(){return f["default"]}}),t.renderMath=t.renderLinks=void 0,Object.defineProperty(t,"setLanguage",{enumerable:!0,get:function(){return c.setLanguage}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return c["default"]}}),Object.defineProperty(t,"timeago",{enumerable:!0,get:function(){return l["default"]}}),t.timestamp=void 0;var o,a=r(n(479)),s=r(n(1819)),u=r(n(4964)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=i(e)&&"function"!=typeof e)return{"default":e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r["default"]=e,n&&n.set(e,r),r}(n(5878)),l=r(n(7435)),d=r(n(37)),f=r(n(4161)),p=n(585),h=n(7080),g=n(9212);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==undefined?arguments[0]:new Date).getTime()},t.convertLink=function(e){return e?"http"!==e.substring(0,4)?"http://".concat(e):e:""},t.getFuncVer=function(){var e=(0,u["default"])(a["default"].mark((function t(e){return a["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o){t.next=4;break}return t.next=3,(0,p.call)(e,"GET_FUNC_VERSION");case 3:o=t.sent;case 4:return t.abrupt("return",o);case 5:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}(),t.getCommentsCountApi=function(){var e=(0,u["default"])(a["default"].mark((function t(e,n){var r;return a["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.urls instanceof Array){t.next=2;break}throw new Error("urls 参数有误");case 2:if(0!==n.urls.length){t.next=4;break}return t.abrupt("return",[]);case 4:return t.next=6,(0,p.call)(e,"GET_COMMENTS_COUNT",n);case 6:return r=t.sent,t.abrupt("return",r.result.data);case 8:case"end":return t.stop()}}),t)})));return function(t,n){return e.apply(this,arguments)}}(),t.getRecentCommentsApi=function(){var e=(0,u["default"])(a["default"].mark((function t(e,n){var r,i,o,s;return a["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,p.call)(e,"GET_RECENT_COMMENTS",n);case 2:r=t.sent,i=v(r.result.data);try{for(i.s();!(o=i.n()).done;)(s=o.value).relativeTime=(0,l["default"])(s.created)}catch(a){i.e(a)}finally{i.f()}return t.abrupt("return",r.result.data);case 6:case"end":return t.stop()}}),t)})));return function(t,n){return e.apply(this,arguments)}}(),t.getUserAgent=function(){var e=(0,u["default"])(a["default"].mark((function t(){var e,n,r,i,o,s;return a["default"].wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=window.navigator.userAgent,t.prev=1,"Windows"!==(n=navigator.userAgentData.platform)&&"macOS"!==n){t.next=10;break}return t.next=6,navigator.userAgentData.getHighEntropyValues(["platformVersion"]);case 6:r=t.sent,i=r.platformVersion,o=parseInt(i.split(".")[0]),"Windows"===n&&o>=13?e=e.replace(/Windows NT 10\.0/i,"Windows NT ".concat("11.0")):"macOS"===n&&o>=11&&(s=i.replace(/\./g,"_"),e=e.replace(/Mac OS X 10_[0-9]+_[0-9]+/i,"Mac OS X ".concat(s)));case 10:t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](1);case 14:return t.abrupt("return",e);case 15:case"end":return t.stop()}}),t,null,[[1,12]])})));return function(){return e.apply(this,arguments)}}(),t.getUrl=function(e){var t;if(window.TWIKOO_MAGIC_PATH)t=window.TWIKOO_MAGIC_PATH;else if(e&&"string"==typeof e)switch(e){case"location.pathname":case"window.location.pathname":t=window.location.pathname;break;case"location.href":case"window.location.href":t=window.location.href;break;default:t=e}else t=window.location.pathname;return t},t.getHref=function(e){var t,n;return null!==(t=null!==(n=window.TWIKOO_MAGIC_HREF)&&void 0!==n?n:e)&&void 0!==t?t:window.location.href},t.readAsText=function(e){return new Promise((function(t,n){var r=new FileReader;r.readAsText(e),r.onloadend=function(){r.error?n(r.error):t(r.result)}}))},t.renderLinks=function(e){var t=[];e instanceof Array?e.forEach((function(e){var n;(n=t).push.apply(n,(0,s["default"])(e.getElementsByTagName("a")))})):e instanceof Element&&(t=e.getElementsByTagName("a"));var n,r=v(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer")}}catch(o){r.e(o)}finally{r.f()}},t.renderMath=function(e,t){"function"==typeof renderMathInElement&&renderMathInElement(e,t||{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}],throwOnError:!1})},t.blobToDataURL=function(e){return new Promise((function(t){var n=new FileReader;n.onload=function(e){var n=e.target.result;t(n)},n.readAsDataURL(e)}))}},37:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=n(78);r.marked.setOptions({renderer:new r.marked.Renderer,gfm:!0,tables:!0,breaks:!0,pedantic:!1,smartLists:!0,smartypants:!0}),t["default"]=r.marked},824:function(e,t,n){"use strict";var r=n(477);Object.defineProperty(t,"__esModule",{value:!0}),t.install=function(e){return d.apply(this,arguments)},t.tcb=void 0;var i=r(n(479)),o=r(n(4964)),a=n(8129);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&r[1]!==undefined?r[1]:{},l.sdk=t,f(n),e.next=5,p(n);case 5:return e.abrupt("return",l);case 6:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function f(e){var t,n=[],r=s(c);try{for(r.s();!(t=r.n()).done;){var i=t.value;i["default"]&&(0,a.isNotSet)(e[i.key])?e[i.key]=i["default"]:i.required&&(0,a.isNotSet)(e[i.key])&&n.push(i.key)}}catch(d){r.e(d)}finally{r.f()}if(n.length>0){var o,u=s(n);try{for(u.s();!(o=u.n()).done;){var l=o.value;a.logger.warn("".concat(l," is required"))}}catch(d){u.e(d)}finally{u.f()}throw new Error("Twikoo: failed to init")}}function p(e){return h.apply(this,arguments)}function h(){return(h=(0,o["default"])(i["default"].mark((function e(t){return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g(t),e.next=3,m();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){l.app=l.sdk.init({env:e.envId,region:e.region})}function m(){return v.apply(this,arguments)}function v(){return(v=(0,o["default"])(i["default"].mark((function e(){return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){l.auth=l.app.auth({persistence:"local"}),l.auth.hasLoginState()?e():l.auth.anonymousAuthProvider().signIn().then(e)["catch"](t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},7435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=n(8129),i={timeago:{seconds:(0,r.t)("TIMEAGO_SECONDS"),minutes:(0,r.t)("TIMEAGO_MINUTES"),hours:(0,r.t)("TIMEAGO_HOURS"),days:(0,r.t)("TIMEAGO_DAYS"),now:(0,r.t)("TIMEAGO_NOW")}},o=function(e){var t=a(e.getDate(),2),n=a(e.getMonth()+1,2),r=a(e.getFullYear(),2);return"".concat(r,"-").concat(n,"-").concat(t)},a=function(e,t){for(var n=e.toString();n.length1&&arguments[1]!==undefined?arguments[1]:{};return i["default"].prototype.$tcb=e,i["default"].prototype.$twikoo=n,t.app=c=new i["default"]({render:function(e){return e(o["default"])}}),c.$mount(n.el||"#twikoo"),c}},3723:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,".el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#FFF;border:1px solid #DCDFE6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;-webkit-transition:.1s;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 20px;font-size:14px;border-radius:4px}.el-button+.el-button{margin-left:10px}.el-button:focus,.el-button:hover{color:#409EFF;border-color:#c6e2ff;background-color:#ecf5ff}.el-button:active{color:#3a8ee6;border-color:#3a8ee6;outline:0}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon-]+span{margin-left:5px}.el-button.is-plain:focus,.el-button.is-plain:hover{background:#FFF;border-color:#409EFF;color:#409EFF}.el-button.is-active,.el-button.is-plain:active{color:#3a8ee6;border-color:#3a8ee6}.el-button.is-plain:active{background:#FFF;outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:#C0C4CC;cursor:not-allowed;background-image:none;background-color:#FFF;border-color:#EBEEF5}.el-button.is-disabled.el-button--text{background-color:transparent}.el-button.is-disabled.is-plain,.el-button.is-disabled.is-plain:focus,.el-button.is-disabled.is-plain:hover{background-color:#FFF;border-color:#EBEEF5;color:#C0C4CC}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{pointer-events:none;content:'';position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:rgba(255,255,255,.35)}.el-button.is-round{border-radius:20px;padding:12px 23px}.el-button.is-circle{border-radius:50%;padding:12px}.el-button--primary{color:#FFF;background-color:#409EFF;border-color:#409EFF}.el-button--primary:focus,.el-button--primary:hover{background:#66b1ff;border-color:#66b1ff;color:#FFF}.el-button--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#FFF;outline:0}.el-button--primary.is-active{background:#3a8ee6;border-color:#3a8ee6;color:#FFF}.el-button--primary.is-disabled,.el-button--primary.is-disabled:active,.el-button--primary.is-disabled:focus,.el-button--primary.is-disabled:hover{color:#FFF;background-color:#a0cfff;border-color:#a0cfff}.el-button--primary.is-plain{color:#409EFF;background:#ecf5ff;border-color:#b3d8ff}.el-button--primary.is-plain:focus,.el-button--primary.is-plain:hover{background:#409EFF;border-color:#409EFF;color:#FFF}.el-button--primary.is-plain:active{background:#3a8ee6;border-color:#3a8ee6;color:#FFF;outline:0}.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover{color:#8cc5ff;background-color:#ecf5ff;border-color:#d9ecff}.el-button--success{color:#FFF;background-color:#67C23A;border-color:#67C23A}.el-button--success:focus,.el-button--success:hover{background:#85ce61;border-color:#85ce61;color:#FFF}.el-button--success.is-active,.el-button--success:active{background:#5daf34;border-color:#5daf34;color:#FFF}.el-button--success:active{outline:0}.el-button--success.is-disabled,.el-button--success.is-disabled:active,.el-button--success.is-disabled:focus,.el-button--success.is-disabled:hover{color:#FFF;background-color:#b3e19d;border-color:#b3e19d}.el-button--success.is-plain{color:#67C23A;background:#f0f9eb;border-color:#c2e7b0}.el-button--success.is-plain:focus,.el-button--success.is-plain:hover{background:#67C23A;border-color:#67C23A;color:#FFF}.el-button--success.is-plain:active{background:#5daf34;border-color:#5daf34;color:#FFF;outline:0}.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover{color:#a4da89;background-color:#f0f9eb;border-color:#e1f3d8}.el-button--warning{color:#FFF;background-color:#E6A23C;border-color:#E6A23C}.el-button--warning:focus,.el-button--warning:hover{background:#ebb563;border-color:#ebb563;color:#FFF}.el-button--warning.is-active,.el-button--warning:active{background:#cf9236;border-color:#cf9236;color:#FFF}.el-button--warning:active{outline:0}.el-button--warning.is-disabled,.el-button--warning.is-disabled:active,.el-button--warning.is-disabled:focus,.el-button--warning.is-disabled:hover{color:#FFF;background-color:#f3d19e;border-color:#f3d19e}.el-button--warning.is-plain{color:#E6A23C;background:#fdf6ec;border-color:#f5dab1}.el-button--warning.is-plain:focus,.el-button--warning.is-plain:hover{background:#E6A23C;border-color:#E6A23C;color:#FFF}.el-button--warning.is-plain:active{background:#cf9236;border-color:#cf9236;color:#FFF;outline:0}.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover{color:#f0c78a;background-color:#fdf6ec;border-color:#faecd8}.el-button--danger{color:#FFF;background-color:#F56C6C;border-color:#F56C6C}.el-button--danger:focus,.el-button--danger:hover{background:#f78989;border-color:#f78989;color:#FFF}.el-button--danger.is-active,.el-button--danger:active{background:#dd6161;border-color:#dd6161;color:#FFF}.el-button--danger:active{outline:0}.el-button--danger.is-disabled,.el-button--danger.is-disabled:active,.el-button--danger.is-disabled:focus,.el-button--danger.is-disabled:hover{color:#FFF;background-color:#fab6b6;border-color:#fab6b6}.el-button--danger.is-plain{color:#F56C6C;background:#fef0f0;border-color:#fbc4c4}.el-button--danger.is-plain:focus,.el-button--danger.is-plain:hover{background:#F56C6C;border-color:#F56C6C;color:#FFF}.el-button--danger.is-plain:active{background:#dd6161;border-color:#dd6161;color:#FFF;outline:0}.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover{color:#f9a7a7;background-color:#fef0f0;border-color:#fde2e2}.el-button--info{color:#FFF;background-color:#909399;border-color:#909399}.el-button--info:focus,.el-button--info:hover{background:#a6a9ad;border-color:#a6a9ad;color:#FFF}.el-button--info.is-active,.el-button--info:active{background:#82848a;border-color:#82848a;color:#FFF}.el-button--info:active{outline:0}.el-button--info.is-disabled,.el-button--info.is-disabled:active,.el-button--info.is-disabled:focus,.el-button--info.is-disabled:hover{color:#FFF;background-color:#c8c9cc;border-color:#c8c9cc}.el-button--info.is-plain{color:#909399;background:#f4f4f5;border-color:#d3d4d6}.el-button--info.is-plain:focus,.el-button--info.is-plain:hover{background:#909399;border-color:#909399;color:#FFF}.el-button--info.is-plain:active{background:#82848a;border-color:#82848a;color:#FFF;outline:0}.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover{color:#bcbec2;background-color:#f4f4f5;border-color:#e9e9eb}.el-button--medium{padding:10px 20px;font-size:14px;border-radius:4px}.el-button--mini,.el-button--small{font-size:12px;border-radius:3px}.el-button--medium.is-round{padding:10px 20px}.el-button--medium.is-circle{padding:10px}.el-button--small,.el-button--small.is-round{padding:9px 15px}.el-button--small.is-circle{padding:9px}.el-button--mini,.el-button--mini.is-round{padding:7px 15px}.el-button--mini.is-circle{padding:7px}.el-button--text{border-color:transparent;color:#409EFF;background:0 0;padding-left:0;padding-right:0}.el-button--text:focus,.el-button--text:hover{color:#66b1ff;border-color:transparent;background-color:transparent}.el-button--text:active{color:#3a8ee6;border-color:transparent;background-color:transparent}.el-button--text.is-disabled,.el-button--text.is-disabled:focus,.el-button--text.is-disabled:hover{border-color:transparent}.el-button-group .el-button--danger:last-child,.el-button-group .el-button--danger:not(:first-child):not(:last-child),.el-button-group .el-button--info:last-child,.el-button-group .el-button--info:not(:first-child):not(:last-child),.el-button-group .el-button--primary:last-child,.el-button-group .el-button--primary:not(:first-child):not(:last-child),.el-button-group .el-button--success:last-child,.el-button-group .el-button--success:not(:first-child):not(:last-child),.el-button-group .el-button--warning:last-child,.el-button-group .el-button--warning:not(:first-child):not(:last-child),.el-button-group>.el-dropdown>.el-button{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--danger:first-child,.el-button-group .el-button--danger:not(:first-child):not(:last-child),.el-button-group .el-button--info:first-child,.el-button-group .el-button--info:not(:first-child):not(:last-child),.el-button-group .el-button--primary:first-child,.el-button-group .el-button--primary:not(:first-child):not(:last-child),.el-button-group .el-button--success:first-child,.el-button-group .el-button--success:not(:first-child):not(:last-child),.el-button-group .el-button--warning:first-child,.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-right-color:rgba(255,255,255,.5)}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group::after,.el-button-group::before{display:table;content:\"\"}.el-button-group::after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button.is-disabled{z-index:1}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-radius:4px}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:20px}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button.is-active,.el-button-group>.el-button:not(.is-disabled):active,.el-button-group>.el-button:not(.is-disabled):focus,.el-button-group>.el-button:not(.is-disabled):hover{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0}",""]),t["default"]=a},1315:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,".el-input__inner,.el-textarea__inner{background-image:none;-webkit-box-sizing:border-box;-webkit-transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:14px}.el-textarea__inner{display:block;resize:vertical;padding:5px 15px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;color:#606266;background-color:#FFF;border:1px solid #DCDFE6;border-radius:4px;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-textarea__inner::-webkit-input-placeholder{color:#C0C4CC}.el-textarea__inner:-ms-input-placeholder{color:#C0C4CC}.el-textarea__inner::-ms-input-placeholder{color:#C0C4CC}.el-textarea__inner::placeholder{color:#C0C4CC}.el-textarea__inner:hover{border-color:#C0C4CC}.el-textarea__inner:focus{outline:0;border-color:#409EFF}.el-textarea .el-input__count{color:#909399;background:#FFF;position:absolute;font-size:12px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-webkit-input-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner::-ms-input-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:#C0C4CC}.el-textarea.is-exceed .el-textarea__inner{border-color:#F56C6C}.el-textarea.is-exceed .el-input__count{color:#F56C6C}.el-input{position:relative;font-size:14px;display:inline-block;width:100%}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:#b4bccc}.el-input::-webkit-scrollbar-corner{background:#fff}.el-input::-webkit-scrollbar-track{background:#fff}.el-input::-webkit-scrollbar-track-piece{background:#fff;width:6px}.el-input .el-input__clear{color:#C0C4CC;font-size:14px;cursor:pointer;-webkit-transition:color .2s cubic-bezier(.645,.045,.355,1);transition:color .2s cubic-bezier(.645,.045,.355,1)}.el-input .el-input__clear:hover{color:#909399}.el-input .el-input__count{height:100%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#909399;font-size:12px}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input,.el-input__inner{font-size:inherit}.el-input .el-input__count .el-input__count-inner{background:#FFF;line-height:initial;display:inline-block;padding:0 5px}.el-input__inner{-webkit-appearance:none;background-color:#FFF;border-radius:4px;border:1px solid #DCDFE6;box-sizing:border-box;color:#606266;display:inline-block;height:40px;line-height:40px;outline:0;padding:0 15px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);width:100%}.el-input__prefix,.el-input__suffix{position:absolute;top:0;-webkit-transition:all .3s;text-align:center;height:100%;color:#C0C4CC}.el-input__inner::-ms-reveal{display:none}.el-input__inner::-webkit-input-placeholder{color:#C0C4CC}.el-input__inner:-ms-input-placeholder{color:#C0C4CC}.el-input__inner::-ms-input-placeholder{color:#C0C4CC}.el-input__inner::placeholder{color:#C0C4CC}.el-input__inner:hover{border-color:#C0C4CC}.el-input.is-active .el-input__inner,.el-input__inner:focus{border-color:#409EFF;outline:0}.el-input__suffix{right:5px;transition:all .3s;pointer-events:none}.el-input__suffix-inner{pointer-events:all}.el-input__prefix{left:5px;transition:all .3s}.el-input__icon{height:100%;width:25px;text-align:center;-webkit-transition:all .3s;transition:all .3s;line-height:40px}.el-input__icon:after{content:'';height:100%;width:0;display:inline-block;vertical-align:middle}.el-input__validateIcon{pointer-events:none}.el-input.is-disabled .el-input__inner{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-input.is-disabled .el-input__inner::-webkit-input-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner::-ms-input-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner::placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__inner{border-color:#F56C6C}.el-input.is-exceed .el-input__suffix .el-input__count{color:#F56C6C}.el-input--suffix .el-input__inner{padding-right:30px}.el-input--prefix .el-input__inner{padding-left:30px}.el-input--medium{font-size:14px}.el-input--medium .el-input__inner{height:36px;line-height:36px}.el-input--medium .el-input__icon{line-height:36px}.el-input--small{font-size:13px}.el-input--small .el-input__inner{height:32px;line-height:32px}.el-input--small .el-input__icon{line-height:32px}.el-input--mini{font-size:12px}.el-input--mini .el-input__inner{height:28px;line-height:28px}.el-input--mini .el-input__icon{line-height:28px}.el-input-group{line-height:normal;display:inline-table;width:100%;border-collapse:separate;border-spacing:0}.el-input-group>.el-input__inner{vertical-align:middle;display:table-cell}.el-input-group__append,.el-input-group__prepend{background-color:#F5F7FA;color:#909399;vertical-align:middle;display:table-cell;position:relative;border:1px solid #DCDFE6;border-radius:4px;padding:0 20px;width:1px;white-space:nowrap}.el-input-group--prepend .el-input__inner,.el-input-group__append{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--append .el-input__inner,.el-input-group__prepend{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:-10px -20px}.el-input-group__append button.el-button,.el-input-group__append div.el-select .el-input__inner,.el-input-group__append div.el-select:hover .el-input__inner,.el-input-group__prepend button.el-button,.el-input-group__prepend div.el-select .el-input__inner,.el-input-group__prepend div.el-select:hover .el-input__inner{border-color:transparent;background-color:transparent;color:inherit;border-top:0;border-bottom:0}.el-input-group__prepend{border-right:0}.el-input-group__append{border-left:0}.el-input-group--append .el-select .el-input.is-focus .el-input__inner,.el-input-group--prepend .el-select .el-input.is-focus .el-input__inner{border-color:transparent}.el-input__inner::-ms-clear{display:none;width:0;height:0}",""]),t["default"]=a},9211:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,".el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:rgba(255,255,255,.9);margin:0;top:0;right:0;bottom:0;left:0;-webkit-transition:opacity .3s;transition:opacity .3s}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:-25px}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:50px;width:50px}.el-loading-spinner{top:50%;margin-top:-21px;width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:#409EFF;margin:3px 0;font-size:14px}.el-loading-spinner .circular{height:42px;width:42px;-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:#409EFF;stroke-linecap:round}.el-loading-spinner i{color:#409EFF}.el-loading-fade-enter,.el-loading-fade-leave-active{opacity:0}@-webkit-keyframes loading-rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}100%{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}100%{stroke-dasharray:90,150;stroke-dashoffset:-120px}}",""]),t["default"]=a},9737:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.twikoo {\n position: relative;\n}\n.twikoo svg {\n width: 100%;\n height: 100%;\n fill: currentColor;\n}\n\n/* 全局 CSS */\n.tk-expand {\n width: 100%;\n cursor: pointer;\n padding: 0.75em;\n text-align: center;\n transition: all 0.5s;\n}\n.tk-expand:hover {\n background-color: rgba(0,0,0,0.13);\n}\n.tk-expand:active {\n background-color: rgba(0,0,0,0.19);\n}\n.tk-content img {\n max-width: 300px;\n max-height: 300px;\n vertical-align: middle;\n}\n.tk-owo-emotion,\n.twikoo .OwO-item img {\n width: 3em;\n height: auto;\n}\n\n/* element-ui overwrite */\n.twikoo .el-input__inner,\n.twikoo .el-textarea__inner {\n color: currentColor;\n background-color: transparent;\n border-color: rgba(144,147,153,0.31);\n}\n.twikoo .el-input__inner:hover,\n.twikoo .el-textarea__inner:hover {\n border-color: rgba(144,147,153,0.50);\n}\n.twikoo .el-input__inner:focus,\n.twikoo .el-textarea__inner:focus {\n border-color: #409eff;\n}\n.twikoo .el-input-group__append,\n.twikoo .el-input-group__prepend {\n color: currentColor;\n background-clip: padding-box;\n background-color: rgba(144,147,153,0.13);\n border-color: rgba(144,147,153,0.31);\n}\n.twikoo .el-button:not(.el-button--primary):not(.el-button--text) {\n color: currentColor;\n background-color: rgba(144,147,153,0.063);\n border-color: rgba(144,147,153,0.31);\n}\n.twikoo .el-button:not(.el-button--primary):not(.el-button--text):active,\n.twikoo .el-button:not(.el-button--primary):not(.el-button--text):focus,\n.twikoo .el-button:not(.el-button--primary):not(.el-button--text):hover {\n color: #409eff;\n background-color: rgba(64,158,255,0.063);\n border-color: rgba(64,158,255,0.50);\n}\n.twikoo .el-button--primary.is-disabled,\n.twikoo .el-button--primary.is-disabled:active,\n.twikoo .el-button--primary.is-disabled:focus,\n.twikoo .el-button--primary.is-disabled:hover {\n color: rgba(255,255,255,0.63);\n background-color: rgba(64,158,255,0.50);\n border-color: transparent;\n}\n.twikoo .el-loading-mask {\n background-color: transparent;\n backdrop-filter: opacity(20%);\n}\n.twikoo .el-textarea .el-input__count {\n color: currentColor;\n background: transparent;\n}\n.tk-admin-warn {\n padding: 1rem 1.5rem;\n background-color: #fff7d0;\n border-left: 0.5rem solid #e7c000;\n color: #6b5900;\n align-self: stretch;\n}\n",""]),t["default"]=a},6640:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-action {\n display: flex;\n align-items: center;\n}\n.tk-action-link {\n margin-left: 0.5rem;\n color: #409eff;\n text-decoration: none;\n display: flex;\n align-items: center;\n}\n.tk-action-link .tk-action-icon-solid {\n display: none;\n}\n.tk-action-link.tk-liked .tk-action-icon,\n.tk-action-link:hover .tk-action-icon {\n display: none;\n}\n.tk-action-link.tk-liked .tk-action-icon-solid,\n.tk-action-link:hover .tk-action-icon-solid {\n display: block;\n}\n.tk-action-count {\n margin-left: 0.25rem;\n font-size: 0.75rem;\n height: 1.5rem;\n line-height: 1.5rem;\n}\n.tk-action-icon {\n display: inline-block;\n height: 1em;\n width: 1em;\n line-height: 0;\n color: #409eff;\n}\n",""]),t["default"]=a},8405:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-admin-container {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n pointer-events: none;\n}\n.tk-admin {\n position: absolute;\n top: 0;\n left: 100%;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n pointer-events: all;\n color: #ffffff;\n background-color: rgba(0,0,0,0.60);\n backdrop-filter: blur(5px);\n transition: all 0.5s ease;\n visibility: hidden;\n}\n.tk-admin::-webkit-scrollbar {\n width: 5px;\n background-color: transparent;\n}\n.tk-admin::-webkit-scrollbar-track {\n background-color: transparent;\n}\n.tk-admin::-webkit-scrollbar-thumb {\n background-color: rgba(255,255,255,0.31);\n}\n.tk-admin.__show {\n left: 0;\n visibility: visible;\n}\n.tk-admin-close {\n position: sticky;\n float: right;\n display: block;\n top: 0;\n right: 0;\n width: 1rem;\n height: 1rem;\n padding: 1rem;\n box-sizing: content-box;\n color: #ffffff;\n}\n.tk-login,\n.tk-regist {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n padding: 0 2rem;\n}\n.tk-login-title {\n color: #ffffff;\n font-size: 1.25rem;\n text-align: center;\n margin-top: 10rem;\n}\n.tk-password,\n.tk-login-msg {\n color: #ffffff;\n width: 80%;\n text-align: center;\n margin-top: 1rem;\n}\n.tk-password .el-input__inner {\n min-width: 100px;\n}\n.tk-login-msg a {\n color: #ffffff;\n margin-left: 1em;\n text-decoration: underline;\n}\n.tk-regist-button {\n margin-top: 1rem;\n}\n.tk-panel {\n color: #ffffff;\n padding: 2rem;\n}\n.tk-panel-title {\n font-size: 1.5rem;\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n}\n.tk-panel-logout {\n color: #ffffff;\n font-size: 1rem;\n text-decoration: underline;\n}\n.tk-panel .tk-tabs {\n display: flex;\n margin-bottom: 1em;\n border-bottom: 2px solid #c0c4cc;\n}\n.tk-panel .tk-tab {\n color: #c0c4cc;\n cursor: pointer;\n line-height: 2em;\n margin-right: 2em;\n margin-bottom: -2px;\n}\n.tk-panel .tk-tab.__active {\n color: #ffffff;\n border-bottom: 2px solid #ffffff;\n}\n",""]),t["default"]=a},7054:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-admin-comment {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.tk-admin-comment a {\n color: currentColor;\n text-decoration: underline;\n}\n.tk-admin-warn {\n margin-bottom: 1em;\n}\n.tk-admin-comment-filter {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n}\n.tk-admin-comment-filter-keyword {\n flex: 1;\n}\n.tk-admin-comment-filter-type {\n height: 32px;\n margin: 0 0.5em;\n padding: 0 0.5em;\n color: #ffffff;\n background: none;\n border: 1px solid rgba(144,147,153,0.31);\n border-radius: 4px;\n position: relative;\n -moz-appearance: none;\n -webkit-appearance: none;\n}\n.tk-admin-comment-filter-type:focus {\n border-color: #409eff;\n}\n.tk-admin-comment-filter-type option {\n color: initial;\n}\n.tk-admin-comment-list {\n margin-top: 1em;\n}\n.tk-admin-comment-list,\n.tk-admin-comment-item {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: stretch;\n}\n.tk-admin-comment-meta {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n margin-bottom: 0.5em;\n}\n.tk-admin-comment .tk-avatar {\n margin-right: 0.5em;\n}\n.tk-admin-actions {\n display: flex;\n margin-bottom: 1em;\n border-bottom: 1px solid rgba(255,255,255,0.5);\n}\n",""]),t["default"]=a},9914:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-admin-config-groups {\n overflow-y: auto;\n padding-right: 0.5em;\n}\n.tk-admin-config-groups .tk-admin-config-group,\n.tk-admin-config-groups .tk-admin-config-group-title {\n background: transparent;\n}\n.tk-admin-config-group-title {\n margin-top: 1em;\n font-size: 1.25rem;\n font-weight: bold;\n}\n.tk-admin-config-item {\n display: grid;\n align-items: center;\n grid-template-columns: 30% 70%;\n margin-top: 1em;\n}\n.tk-admin-config-title {\n text-align: right;\n margin-right: 1em;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.tk-admin-config-desc {\n margin-top: 0.5em;\n font-size: 0.75em;\n overflow-wrap: break-word;\n}\n.tk-admin-config-actions {\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 1em;\n}\n.tk-admin-config-message {\n margin-top: 0.5em;\n text-align: center;\n}\n.tk-admin-config-email-test-desc {\n margin: 1em 0;\n}\n",""]),t["default"]=a},8120:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-admin-import {\n display: flex;\n flex-direction: column;\n}\n.tk-admin-import-label {\n margin-top: 1em;\n font-size: 1.25rem;\n font-weight: bold;\n}\n.tk-admin-import select,\n.tk-admin-import input,\n.tk-admin-import .el-button,\n.tk-admin-import .el-textarea {\n margin-top: 1em;\n}\n",""]),t["default"]=a},1402:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-avatar {\n flex-shrink: 0;\n height: 2.5rem;\n width: 2.5rem;\n overflow: hidden;\n text-align: center;\n border-radius: 5px;\n margin-right: 1rem;\n}\n.tk-comment .tk-submit .tk-avatar,\n.tk-replies .tk-avatar {\n height: 1.6rem;\n width: 1.6rem;\n}\n.tk-avatar.tk-has-avatar {\n background-color: rgba(144,147,153,0.13);\n}\n.tk-avatar.tk-clickable {\n cursor: pointer;\n}\n.tk-avatar .tk-avatar-img {\n height: 2.5rem;\n color: #c0c4cc;\n}\n.tk-comment .tk-submit .tk-avatar .tk-avatar-img,\n.tk-replies .tk-avatar .tk-avatar-img {\n height: 1.6rem;\n}\n",""]),t["default"]=a},6558:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-main {\n flex: 1;\n width: 0;\n}\n.tk-row {\n flex: 1;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n}\n.tk-nick-link {\n color: inherit;\n text-decoration: none;\n}\n.tk-replies .tk-nick-link {\n font-size: .9em;\n}\n.tk-nick-link:hover {\n color: #409eff;\n}\n.tk-actions {\n display: none;\n margin-left: 1em;\n}\n.tk-comment:hover .tk-actions {\n display: inline;\n}\n.tk-extras {\n color: #999999;\n font-size: 0.875em;\n display: flex;\n flex-wrap: wrap;\n}\n.tk-extra {\n margin-top: 0.5rem;\n margin-right: 0.75rem;\n display: flex;\n align-items: center;\n}\n.tk-icon.__comment {\n height: 1em;\n width: 1em;\n line-height: 1;\n}\n.tk-extra-text {\n line-height: 1;\n}\n.tk-tag {\n display: inline-block;\n padding: 0 0.5em;\n font-size: 0.75em;\n background-color: #f2f6fc;\n}\n.tk-tag-green {\n background-color: rgba(103,194,58,0.13);\n border: 1px solid rgba(103,194,58,0.50);\n border-radius: 2px;\n color: #67c23a;\n}\n.tk-tag-yellow {\n background-color: rgba(230,162,60,0.13);\n border: 1px solid rgba(230,162,60,0.50);\n border-radius: 2px;\n color: #e6a23c;\n}\n.tk-tag-blue {\n background-color: rgba(64,158,255,0.13);\n border: 1px solid rgba(64,158,255,0.50);\n border-radius: 2px;\n color: #409eff;\n}\n.tk-tag-red {\n background-color: rgba(245,108,108,0.13);\n border: 1px solid rgba(245,108,108,0.50);\n border-radius: 2px;\n color: #f56c6c;\n}\n.tk-comment {\n margin-top: 1rem;\n display: flex;\n flex-direction: row;\n word-break: break-all;\n}\n.tk-content {\n margin-top: 0.5rem;\n overflow: auto;\n max-height: 500px;\n}\n.tk-replies .tk-content {\n font-size: .9em;\n}\n.tk-comment .vemoji {\n max-height: 2em;\n vertical-align: middle;\n}\n.tk-replies {\n max-height: 200px;\n overflow: hidden;\n position: relative;\n}\n.tk-replies-expand {\n max-height: none;\n}\n.tk-submit {\n margin-top: 1rem;\n}\n.tk-expand {\n font-size: 0.75em;\n}\n.tk-lightbox {\n display: block;\n position: fixed;\n background-color: rgba(0, 0, 0, 0.3);\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n}\n.tk-lightbox-image {\n min-width: 100px;\n min-height: 30px;\n width: auto;\n height: auto;\n max-width: 95%;\n max-height: 95%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: linear-gradient(90deg, #eeeeee 50%, #e3e3e3 0);\n background-size: 40px 100%;\n}\n",""]),t["default"]=a},3109:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-comments-title {\n font-size: 1.25rem;\n font-weight: bold;\n margin-bottom: 1rem;\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n}\n.tk-comments-count.__hidden {\n visibility: hidden;\n}\n.tk-comments-container {\n min-height: 10rem;\n display: flex;\n flex-direction: column;\n}\n.tk-comments-no {\n flex: 1;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.tk-comments-error {\n font-size: 0.75em;\n color: #ff0000;\n}\n.tk-icon.__comments {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: sub;\n margin-left: 0.5em;\n height: 0.75em;\n width: 0.75em;\n line-height: 0;\n cursor: pointer;\n color: #409eff;\n}\n",""]),t["default"]=a},8440:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-footer {\n width: 100%;\n text-align: end;\n font-size: 0.75em;\n color: #999999;\n margin-top: 1em;\n}\n",""]),t["default"]=a},7618:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-meta-input {\n display: flex;\n}\n.tk-meta-input .el-input {\n width: auto;\n width: calc((100% - 1rem) / 3); /* Fix Safari */\n flex: 1;\n}\n.tk-meta-input .el-input + .el-input {\n margin-left: 0.5rem;\n}\n.tk-meta-input .el-input .el-input-group__prepend {\n padding: 0 1rem;\n}\n.tk-meta-input .el-input input:invalid {\n border: 1px solid #f56c6c;\n box-shadow: none;\n}\n@media screen and (max-width: 767px) {\n.tk-meta-input {\n flex-direction: column;\n}\n.tk-meta-input .el-input {\n width: auto;\n}\n.tk-meta-input .el-input + .el-input {\n margin-left: 0;\n margin-top: 0.5rem;\n}\n}\n",""]),t["default"]=a},6785:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-pagination,\n.tk-pagination-pagers {\n display: flex;\n}\n.tk-pagination {\n width: 100%;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n}\n.tk-pagination-options {\n display: flex;\n align-items: center;\n}\n.tk-pagination-pager {\n width: 2em;\n height: 2em;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.tk-pagination-pager.__current {\n background-color: #409eff;\n pointer-events: none;\n}\n.tk-pagination .el-input {\n width: 50px;\n}\n.tk-pagination .el-input .el-input__inner {\n padding: 0;\n height: 28px;\n text-align: center;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.tk-pagination .el-input .el-input__inner::-webkit-inner-spin-button,\n.tk-pagination .el-input .el-input__inner::-webkit-outer-spin-button {\n -webkit-appearance: none;\n appearance: none;\n margin: 0;\n}\n",""]),t["default"]=a},5322:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,"\n.tk-submit {\n display: flex;\n flex-direction: column;\n}\n.tk-row {\n display: flex;\n flex-direction: row;\n}\n.tk-col {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.tk-meta-input {\n margin-bottom: 0.5rem;\n}\n.tk-row.actions {\n position: relative;\n margin-top: 1rem;\n margin-bottom: 1rem;\n margin-left: 3.5rem;\n align-items: center;\n justify-content: flex-end;\n}\n.tk-row-actions-start {\n flex: 1;\n display: flex;\n align-items: center;\n}\n.tk-submit-action-icon {\n align-self: center;\n display: inline-block;\n width: 1.25em;\n line-height: 0;\n margin-right: 10px;\n cursor: pointer;\n flex-shrink: 0;\n}\n.tk-submit-action-icon svg:hover {\n opacity: 0.8;\n}\n.tk-submit-action-icon.__markdown {\n color: #909399;\n}\n.tk-error-message {\n word-break: break-all;\n color: #ff0000;\n font-size: 0.75em;\n flex-shrink: 1;\n}\n.tk-input-image {\n display: none;\n}\n.tk-input {\n flex: 1;\n}\n.tk-input .el-textarea__inner {\n background-position: right bottom;\n background-repeat: no-repeat;\n}\n.tk-turnstile-container {\n position: absolute;\n right: 0;\n bottom: -75px;\n}\n.tk-turnstile {\n display: flex;\n flex-direction: column;\n}\n.tk-preview-container {\n margin-left: 3rem;\n margin-bottom: 1rem;\n padding: 5px 15px;\n border: 1px solid rgba(128,128,128,0.31);\n border-radius: 4px;\n word-break: break-word;\n}\n",""]),t["default"]=a},6810:function(e,t,n){"use strict";n.r(t);var r=n(5346),i=n.n(r),o=n(9067),a=n.n(o)()(i());a.push([e.id,'/*!\n * OwO v1.0.2\n * Source: https://github.com/DIYgod/OwO/blob/master/dist/OwO.min.css\n * Author: DIYgod\n * Modified by: iMaeGoo\n * Released under the MIT License.\n */\n\n.OwO {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.OwO.OwO-open .OwO-body {\n display: block;\n}\n\n.OwO .OwO-logo {\n width: 1.125em;\n display: flex;\n}\n\n.OwO .OwO-body {\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n max-width: 500px;\n color: #4a4a4a;\n background-color: #ffffff;\n border: 1px solid rgba(144,147,153,0.31);\n top: 2em;\n border-radius: 0 4px 4px;\n z-index: 1000;\n}\n\n.night .OwO .OwO-body,\n.darkmode .OwO .OwO-body,\n.DarkMode .OwO .OwO-body,\n[data-theme="dark"] .OwO .OwO-body,\n[data-user-color-scheme="dark"] .OwO .OwO-body {\n color: #ffffff;\n background-color: #4a4a4a;\n}\n\n.OwO .OwO-body .OwO-items {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: none;\n padding: 10px;\n padding-right: 0;\n margin: 0;\n overflow: auto;\n font-size: 0;\n}\n\n.OwO .OwO-body .OwO-items .OwO-item {\n list-style-type: none;\n padding: 5px 10px;\n border-radius: 5px;\n display: inline-block;\n font-size: 12px;\n line-height: 14px;\n cursor: pointer;\n -webkit-transition: .3s;\n transition: .3s;\n text-align: center;\n}\n\n.OwO .OwO-body .OwO-items .OwO-item:hover {\n background-color: rgba(144,147,153,0.13);\n box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);\n}\n\n.OwO .OwO-body .OwO-items-emoji .OwO-item {\n font-size: 20px;\n line-height: 19px;\n}\n\n.OwO .OwO-body .OwO-items-image .OwO-item {\n width: 14%;\n box-sizing: border-box;\n}\n\n@media screen and (max-width: 600px) {\n #twikoo .OwO-items > .OwO-item {\n width: 16%;\n }\n}\n\n@media screen and (max-width: 460px) {\n #twikoo .OwO-items > .OwO-item {\n width: 20%;\n }\n}\n\n@media screen and (max-width: 400px) {\n #twikoo .OwO-items > .OwO-item {\n width: 25%;\n }\n}\n\n@media screen and (max-width: 330px) {\n #twikoo .OwO-items > .OwO-item {\n width: 33%;\n }\n}\n\n\n.OwO .OwO-body .OwO-items-image .OwO-item img {\n max-width: 100%;\n}\n\n.OwO .OwO-body .OwO-items-show {\n display: block;\n}\n\n.OwO .OwO-body .OwO-bar {\n width: 100%;\n border-top: 1px solid rgba(144,147,153,0.31);\n border-radius: 0 0 4px 4px;\n}\n\n.OwO .OwO-body .OwO-bar .OwO-packages {\n margin: 0;\n padding: 0;\n font-size: 0;\n}\n\n.OwO .OwO-body .OwO-bar .OwO-packages li {\n list-style-type: none;\n display: inline-block;\n line-height: 30px;\n font-size: 14px;\n padding: 0 10px;\n cursor: pointer;\n margin-right: 3px;\n}\n\n.OwO .OwO-body .OwO-bar .OwO-packages li:nth-child(1) {\n border-radius: 0 0 0 3px;\n}\n\n.OwO .OwO-body .OwO-bar .OwO-packages li:hover {\n background-color: rgba(144,147,153,0.13);\n}\n\n.OwO .OwO-body .OwO-bar .OwO-packages .OwO-package-active {\n background-color: rgba(144,147,153,0.13);\n -webkit-transition: .3s;\n transition: .3s;\n}\n',""]),t["default"]=a},6937:function(e){e.exports=''},9396:function(e){e.exports=''},58:function(e){e.exports=''},7051:function(e){e.exports=''},8443:function(e){e.exports=''},3793:function(e){e.exports=''},8974:function(e){e.exports=''},1423:function(e){e.exports=''},740:function(e){e.exports=''},7397:function(e){e.exports=''},2531:function(e){e.exports=''},3491:function(e){e.exports=''},5171:function(e){e.exports=''},6639:function(e){e.exports=''},6359:function(e){e.exports=''},9039:function(e){e.exports=''},504:function(e){e.exports=''},6370:function(e){e.exports=''},3982:function(e){e.exports=''},9966:function(e){e.exports=''},5910:function(e){e.exports=''},9671:function(e){e.exports=''},9587:function(e){e.exports=''},6768:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(1573),i=n(8926),o=i.A,a=(n(1288),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},7454:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(8114),i=n(3397),o=i.A,a=(n(2929),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},8928:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(6827),i=n(4238),o=i.A,a=(n(842),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},2015:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(7060),i=n(4555),o=i.A,a=(n(8155),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},4880:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(2584),i=n(4868),o=i.A,a=(n(9977),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},9097:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(9976),i=n(3396),o=i.A,a=(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports},9985:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(872),i=n(9865),o=i.A,a=(n(8087),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},7163:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(6934),i=n(4064),o=i.A,a=(n(7871),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},500:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(4196),i=n(3572),o=i.A,a=(n(13),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},87:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(8519),i=n(4333),o=i.A,a=(n(896),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},1452:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(2080),i=n(418),o=i.A,a=(n(3457),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},3415:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(1412),i=n(2362),o=i.A,a=(n(2418),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},6431:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(8675),i=n(9171),o=i.A,a=(n(292),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},4494:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return i.B},"default":function(){return a}});var r=n(7212),i=n(147),o=i.A,a=(n(307),(0,n(4486).A)(o,r.XX,r.Yp,!1,null,null,null).exports)},4486:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:c}}n.d(t,{A:function(){return r}})},622:function(e,t,n){var r=n(3723);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("0e5ef982",r,!0,{})},8848:function(e,t,n){var r=n(1315);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("1a92f302",r,!0,{})},6756:function(e,t,n){var r=n(9211);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("e6b19834",r,!0,{})},1288:function(e,t,n){var r=n(9737);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("5049e71b",r,!0,{})},2929:function(e,t,n){var r=n(6640);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("2e97bedb",r,!0,{})},842:function(e,t,n){var r=n(8405);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("649fbfd3",r,!0,{})},8155:function(e,t,n){var r=n(7054);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("38478b6f",r,!0,{})},9977:function(e,t,n){var r=n(9914);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("7097c350",r,!0,{})},8087:function(e,t,n){var r=n(8120);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("59ad6a1e",r,!0,{})},7871:function(e,t,n){var r=n(1402);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("48048424",r,!0,{})},13:function(e,t,n){var r=n(6558);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("3fc840a6",r,!0,{})},896:function(e,t,n){var r=n(3109);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("7f96da90",r,!0,{})},3457:function(e,t,n){var r=n(8440);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("042e8a68",r,!0,{})},2418:function(e,t,n){var r=n(7618);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("59ca4f90",r,!0,{})},292:function(e,t,n){var r=n(6785);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("88983344",r,!0,{})},307:function(e,t,n){var r=n(5322);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("1d22dba9",r,!0,{})},4707:function(e,t,n){var r=n(6810);r.__esModule&&(r=r["default"]),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5083).A)("8be46386",r,!0,{})},5083:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(5547),i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,c=!1,l=function(){},d=null,f="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,i){c=n,d=i||{};var a=(0,r.A)(e,t);return g(a),function(t){for(var n=[],i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),y}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},9272:function(e,t,n){"use strict";var r=n(8554),i=n(4805),o=n(2075),a=n(2971);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports["default"]=e.exports},1819:function(e,t,n){"use strict";var r=n(8198),i=n(6884),o=n(2075),a=n(5838);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports["default"]=e.exports},7278:function(e,t,n){"use strict";var r=n(9367)["default"];e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},3987:function(e,t,n){"use strict";var r=n(9367)["default"],i=n(7278);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports["default"]=e.exports},9367:function(e){"use strict";function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},2075:function(e,t,n){"use strict";var r=n(6530);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},479:function(e,t,n){"use strict";var r=n(477)(n(9367)),i=n(7120)();e.exports=i;try{regeneratorRuntime=i}catch(o){"object"===("undefined"==typeof globalThis?"undefined":(0,r["default"])(globalThis))?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},5707:function(e){"use strict";e.exports=JSON.parse('{"name":"@cloudbase/js-sdk","version":"1.7.2","description":"cloudbase javascript sdk","main":"dist/index.cjs.js","module":"dist/index.esm.js","miniprogram":"miniprogram_dist","typings":"./index.d.ts","scripts":{"lint":"eslint --fix \\"./src/**/*.ts\\" \\"./database/**/*.ts\\"","build":"rm -rf dist/ && gulp build","build:cdn":"gulp cdn","build:miniapp":"gulp miniapp","build:e2e":"rm -rf dist/ && NODE_ENV=e2e gulp e2e"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/TencentCloudBase/cloudbase-js-sdk"},"keywords":["tcb","cloudbase","Cloudbase","serverless","Serverless","javascript","JavaScript"],"files":["miniprogram_dist","**/dist/","/index.d.ts","**/package.json"],"components":["app","auth","database","functions","storage"],"author":"","license":"ISC","dependencies":{"@cloudbase/analytics":"^1.1.1-alpha.0","@cloudbase/app":"^1.4.1","@cloudbase/auth":"^1.6.1","@cloudbase/database":"0.9.18-next","@cloudbase/functions":"^1.3.4","@cloudbase/realtime":"^1.1.4-alpha.0","@cloudbase/storage":"^1.3.4","@cloudbase/types":"^1.1.3-alpha.0","@cloudbase/utilities":"^1.3.4"},"devDependencies":{"@babel/core":"^7.9.0","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-transform-runtime":"^7.9.0","@babel/preset-env":"^7.9.5","@babel/preset-typescript":"^7.9.0","@typescript-eslint/eslint-plugin":"^3.8.0","@typescript-eslint/parser":"^3.8.0","awesome-typescript-loader":"^5.2.1","babel-loader":"^8.1.0","eslint":"^7.6.0","eslint-config-alloy":"^3.7.4","gulp":"^4.0.2","gulp-clean":"^0.4.0","gulp-rename":"^2.0.0","gulp-sourcemaps":"^2.6.5","gulp-typescript":"^6.0.0-alpha.1","json-loader":"^0.5.7","merge-stream":"^2.0.0","package-json-cleanup-loader":"^1.0.3","typescript":"^3.8.3","webpack":"4.41.3","webpack-cli":"^3.3.11","webpack-node-externals":"^1.7.2","webpack-stream":"^5.2.1","webpack-visualizer-plugin":"^0.1.11"},"browserslist":["last 2 version","> 1%","not dead","chrome 53"],"gitHead":"29ca0bf24318daa1fbb230910edf0b1545e17e7f"}')}},t={};function n(r){var i=t[r];if(i!==undefined)return i.exports;var o=t[r]={id:r,exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";var e=r,t=n(477);Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0,e.getCommentsCount=function(){return g.apply(this,arguments)},e.getRecentComments=function(){return m.apply(this,arguments)},e.init=p,Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.version}});var i=t(n(479)),o=t(n(4964)),a=n(2199),s=n(824),u=n(1085),c=n(8129),l=t(n(9459));function d(e){return f.apply(this,arguments)}function f(){return(f=(0,o["default"])(i["default"].mark((function e(t){return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.install)(l["default"],t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(){return h.apply(this,arguments)}function h(){return h=(0,o["default"])(i["default"].mark((function e(){var t,n,r=arguments;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&r[0]!==undefined?r[0]:{},!(0,c.isUrl)(t.envId)){e.next=5;break}e.t0=null,e.next=8;break;case 5:return e.next=7,d(t);case 7:e.t0=e.sent;case 8:n=e.t0,(0,c.setLanguage)(t),(0,u.render)(n,t);case 11:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function g(){return g=(0,o["default"])(i["default"].mark((function e(){var t,n,r=arguments;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&r[0]!==undefined?r[0]:{},!(0,c.isUrl)(t.envId)){e.next=5;break}e.t0=null,e.next=8;break;case 5:return e.next=7,d(t);case 7:e.t0=e.sent;case 8:return n=e.t0,e.next=11,(0,c.getCommentsCountApi)(n,t);case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function m(){return m=(0,o["default"])(i["default"].mark((function e(){var t,n,r=arguments;return i["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&r[0]!==undefined?r[0]:{},!(0,c.isUrl)(t.envId)){e.next=5;break}e.t0=null,e.next=8;break;case 5:return e.next=7,d(t);case 7:e.t0=e.sent;case 8:return n=e.t0,e.next=11,(0,c.getRecentCommentsApi)(n,t);case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}n(9744),n(7441),n(5417),e["default"]=p}(),r}()},"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.twikoo=t():e.twikoo=t(); \ No newline at end of file diff --git a/footer.php b/footer.php index 6c7fc1a..3916a38 100644 --- a/footer.php +++ b/footer.php @@ -5,22 +5,21 @@ - © .
    options->title(); ?> - - . Made with 💗 - - 时光沉淀 - - + options->tongji(); ?> @@ -33,8 +32,8 @@ - + footer(); ?> - + \ No newline at end of file diff --git a/functions.php b/functions.php index df1cbb9..bf065a6 100644 --- a/functions.php +++ b/functions.php @@ -5,29 +5,36 @@ function themeConfig($form) { $form->addInput($logoUrl); $icoUrl = new Typecho_Widget_Helper_Form_Element_Text('icoUrl', NULL, NULL, _t('站点 Favicon 地址')); $form->addInput($icoUrl); - $twikooENV = new Typecho_Widget_Helper_Form_Element_Text('twikooENV', NULL, NULL, _t('填入twikooENV')); - $form->addInput($twikooENV); - $instagramurl = new Typecho_Widget_Helper_Form_Element_Text('instagramurl', NULL, NULL, _t('填入INS地址')); + $jzyear = new Typecho_Widget_Helper_Form_Element_Text('jzyear', NULL, NULL, _t('建站年份')); + $form->addInput($jzyear); + $instagramurl = new Typecho_Widget_Helper_Form_Element_Text('instagramurl', NULL, NULL, _t('INS')); $form->addInput($instagramurl); - $telegramurl = new Typecho_Widget_Helper_Form_Element_Text('telegramurl', NULL, NULL, _t('填入电报地址')); + $telegramurl = new Typecho_Widget_Helper_Form_Element_Text('telegramurl', NULL, NULL, _t('电报')); $form->addInput($telegramurl); - $githuburl = new Typecho_Widget_Helper_Form_Element_Text('githuburl', NULL, NULL, _t('填入github地址')); + $githuburl = new Typecho_Widget_Helper_Form_Element_Text('githuburl', NULL, NULL, _t('github')); $form->addInput($githuburl); - $twitterurl = new Typecho_Widget_Helper_Form_Element_Text('twitterurl', NULL, NULL, _t('填入twitter地址')); + $twitterurl = new Typecho_Widget_Helper_Form_Element_Text('twitterurl', NULL, NULL, _t('twitter')); $form->addInput($twitterurl); - $feedurl = new Typecho_Widget_Helper_Form_Element_Text('feedurl', NULL, NULL, _t('填入网站Feed地址')); + $feedurl = new Typecho_Widget_Helper_Form_Element_Text('feedurl', NULL, NULL, _t('网站Feed')); $form->addInput($feedurl); - $mastodonurl = new Typecho_Widget_Helper_Form_Element_Text('mastodonurl', NULL, NULL, _t('填入mastodon地址')); + $mastodonurl = new Typecho_Widget_Helper_Form_Element_Text('mastodonurl', NULL, NULL, _t('mastodon')); $form->addInput($mastodonurl); $twikoo = new Typecho_Widget_Helper_Form_Element_Textarea('twikoo', NULL, NULL, _t('引用第三方评论')); $form->addInput($twikoo); - $addhead = new Typecho_Widget_Helper_Form_Element_Textarea('addhead', NULL, NULL, _t('添加head引用')); + $addhead = new Typecho_Widget_Helper_Form_Element_Textarea('addhead', NULL, NULL, _t('添加head')); $form->addInput($addhead); $tongji = new Typecho_Widget_Helper_Form_Element_Textarea('tongji', NULL, NULL, _t('统计代码')); $form->addInput($tongji); } - +function themeFields($layout) { + $switchpf = new Typecho_Widget_Helper_Form_Element_Checkbox('switchpf', + array('open'=>'显示作者'), + NULL, + _t('是否文章页面显示作者信息'), + _t('勾选后,将在文章页面显示')); + $layout->addItem($switchpf); +} function get_post_view($archive) { $cid = $archive->cid; $db = Typecho_Db::get(); diff --git a/header.php b/header.php index 2fdc2bd..a0c92d6 100644 --- a/header.php +++ b/header.php @@ -15,27 +15,40 @@ error_reporting(E_ALL);if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> 'date' => _t('在 %s 发布的文章'), 'author' => _t('%s 发布的文章') ), '', ' - '); ?>is('post')) $this->category(',', false);?>is('post')) echo ' - ';?>options->title(); ?>is('index')) echo ' - '; ?>is('index')) $this->options->description() ?> - + options->icoUrl): ?> header("generator=&template=&pingback=&wlw=&xmlrpc=&rss1=&atom=&rss2=/feed"); ?> - - options->addhead(); ?> + + options->addhead(); ?> +
    - \ No newline at end of file diff --git a/index.php b/index.php index e9785f0..ebbea8d 100644 --- a/index.php +++ b/index.php @@ -1,9 +1,9 @@ need('header.php'); diff --git a/page-about.php b/page-about.php new file mode 100644 index 0000000..5c0d55d --- /dev/null +++ b/page-about.php @@ -0,0 +1,21 @@ + +need('header.php'); ?> +
    +
    +

    title() ?>

    +
    +
    + +
    + content(); ?> +
    +
    +
    +need('footer.php'); ?> + \ No newline at end of file diff --git a/page.php b/page.php index 1d93e31..04350ef 100644 --- a/page.php +++ b/page.php @@ -1,16 +1,15 @@ need('header.php'); ?> -
    +

    title() ?>

    -
    content(); ?>
    - need('comments.php'); ?> -
    + need('comments.php'); ?> + need('footer.php'); ?> \ No newline at end of file diff --git a/post.php b/post.php index 1679b4a..458a063 100644 --- a/post.php +++ b/post.php @@ -38,25 +38,32 @@
    - -
    - + + + + + +
    tags(' ', true, ' '); ?>
    - + + fields->switchpf && in_array('open', $this->fields->switchpf)): ?> + need('profile.php'); ?> + + -
    + need('comments.php'); ?> -
    + need('footer.php'); ?> - \ No newline at end of file diff --git a/postlist.php b/postlist.php index e30a3ac..61bbbd9 100644 --- a/postlist.php +++ b/postlist.php @@ -57,10 +57,23 @@ - - + + pagenav( + '', + '', + 1, + '...', + array( + 'wrapTag' => 'div', + 'wrapClass' => 'cat_pagination_page', + 'itemTag' => '', + 'textTag' => 'a', + 'currentClass' => 'active', + 'prevClass' => 'prev', + 'nextClass' => 'next' + ) + ); + ?> \ No newline at end of file diff --git a/sns.php b/sns.php index 691992c..23024a0 100644 --- a/sns.php +++ b/sns.php @@ -1,5 +1,5 @@ - - + + @@ -9,28 +9,31 @@ stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" /> - +options->telegramurl): ?> - + +options->twitterurl): ?> - + +options->instagramurl): ?> - + +options->githuburl): ?> - + +options->mastodonurl): ?> - \ No newline at end of file + + \ No newline at end of file