UNPKG

@dcodegroup-au/dsg-vue

Version:

Front-end Vue/Tailwind DSG for UntitledUI.

35 lines 296 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const fe=require("vue"),Si=require("./_commonjsHelpers-DwGv2jUC.cjs"),Ci=require("./DsgLabel.vue_vue_type_style_index_0_lang-gCBicmCZ.cjs");var kt={exports:{}};/*! * Vditor v3.11.1 - A markdown editor written in TypeScript. * * MIT License * * Copyright (c) 2018-present B3log 开源, b3log.org * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * */var Li=kt.exports,In;function Mi(){return In||(In=1,function(Oe,Gt){(function(nt,Y){Oe.exports=Y()})(Li,function(){return(()=>{var dt={173:Z=>{var E=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},L=-1,x=1,A=0;E.Diff=function(c,l){return[c,l]},E.prototype.diff_main=function(c,l,y,p){typeof p>"u"&&(this.Diff_Timeout<=0?p=Number.MAX_VALUE:p=new Date().getTime()+this.Diff_Timeout*1e3);var m=p;if(c==null||l==null)throw new Error("Null input. (diff_main)");if(c==l)return c?[new E.Diff(A,c)]:[];typeof y>"u"&&(y=!0);var f=y,v=this.diff_commonPrefix(c,l),w=c.substring(0,v);c=c.substring(v),l=l.substring(v),v=this.diff_commonSuffix(c,l);var b=c.substring(c.length-v);c=c.substring(0,c.length-v),l=l.substring(0,l.length-v);var g=this.diff_compute_(c,l,f,m);return w&&g.unshift(new E.Diff(A,w)),b&&g.push(new E.Diff(A,b)),this.diff_cleanupMerge(g),g},E.prototype.diff_compute_=function(c,l,y,p){var m;if(!c)return[new E.Diff(x,l)];if(!l)return[new E.Diff(L,c)];var f=c.length>l.length?c:l,v=c.length>l.length?l:c,w=f.indexOf(v);if(w!=-1)return m=[new E.Diff(x,f.substring(0,w)),new E.Diff(A,v),new E.Diff(x,f.substring(w+v.length))],c.length>l.length&&(m[0][0]=m[2][0]=L),m;if(v.length==1)return[new E.Diff(L,c),new E.Diff(x,l)];var b=this.diff_halfMatch_(c,l);if(b){var g=b[0],o=b[1],C=b[2],_=b[3],D=b[4],M=this.diff_main(g,C,y,p),P=this.diff_main(o,_,y,p);return M.concat([new E.Diff(A,D)],P)}return y&&c.length>100&&l.length>100?this.diff_lineMode_(c,l,p):this.diff_bisect_(c,l,p)},E.prototype.diff_lineMode_=function(c,l,y){var p=this.diff_linesToChars_(c,l);c=p.chars1,l=p.chars2;var m=p.lineArray,f=this.diff_main(c,l,!1,y);this.diff_charsToLines_(f,m),this.diff_cleanupSemantic(f),f.push(new E.Diff(A,""));for(var v=0,w=0,b=0,g="",o="";v<f.length;){switch(f[v][0]){case x:b++,o+=f[v][1];break;case L:w++,g+=f[v][1];break;case A:if(w>=1&&b>=1){f.splice(v-w-b,w+b),v=v-w-b;for(var C=this.diff_main(g,o,!1,y),_=C.length-1;_>=0;_--)f.splice(v,0,C[_]);v=v+C.length}b=0,w=0,g="",o="";break}v++}return f.pop(),f},E.prototype.diff_bisect_=function(c,l,y){for(var p=c.length,m=l.length,f=Math.ceil((p+m)/2),v=f,w=2*f,b=new Array(w),g=new Array(w),o=0;o<w;o++)b[o]=-1,g[o]=-1;b[v+1]=0,g[v+1]=0;for(var C=p-m,_=C%2!=0,D=0,M=0,P=0,V=0,z=0;z<f&&!(new Date().getTime()>y);z++){for(var $=-z+D;$<=z-M;$+=2){var ne=v+$,oe;$==-z||$!=z&&b[ne-1]<b[ne+1]?oe=b[ne+1]:oe=b[ne-1]+1;for(var ge=oe-$;oe<p&&ge<m&&c.charAt(oe)==l.charAt(ge);)oe++,ge++;if(b[ne]=oe,oe>p)M+=2;else if(ge>m)D+=2;else if(_){var de=v+C-$;if(de>=0&&de<w&&g[de]!=-1){var le=p-g[de];if(oe>=le)return this.diff_bisectSplit_(c,l,oe,ge,y)}}}for(var ve=-z+P;ve<=z-V;ve+=2){var de=v+ve,le;ve==-z||ve!=z&&g[de-1]<g[de+1]?le=g[de+1]:le=g[de-1]+1;for(var Te=le-ve;le<p&&Te<m&&c.charAt(p-le-1)==l.charAt(m-Te-1);)le++,Te++;if(g[de]=le,le>p)V+=2;else if(Te>m)P+=2;else if(!_){var ne=v+C-ve;if(ne>=0&&ne<w&&b[ne]!=-1){var oe=b[ne],ge=v+oe-ne;if(le=p-le,oe>=le)return this.diff_bisectSplit_(c,l,oe,ge,y)}}}}return[new E.Diff(L,c),new E.Diff(x,l)]},E.prototype.diff_bisectSplit_=function(c,l,y,p,m){var f=c.substring(0,y),v=l.substring(0,p),w=c.substring(y),b=l.substring(p),g=this.diff_main(f,v,!1,m),o=this.diff_main(w,b,!1,m);return g.concat(o)},E.prototype.diff_linesToChars_=function(c,l){var y=[],p={};y[0]="";function m(b){for(var g="",o=0,C=-1,_=y.length;C<b.length-1;){C=b.indexOf(` `,o),C==-1&&(C=b.length-1);var D=b.substring(o,C+1);(p.hasOwnProperty?p.hasOwnProperty(D):p[D]!==void 0)?g+=String.fromCharCode(p[D]):(_==f&&(D=b.substring(o),C=b.length),g+=String.fromCharCode(_),p[D]=_,y[_++]=D),o=C+1}return g}var f=4e4,v=m(c);f=65535;var w=m(l);return{chars1:v,chars2:w,lineArray:y}},E.prototype.diff_charsToLines_=function(c,l){for(var y=0;y<c.length;y++){for(var p=c[y][1],m=[],f=0;f<p.length;f++)m[f]=l[p.charCodeAt(f)];c[y][1]=m.join("")}},E.prototype.diff_commonPrefix=function(c,l){if(!c||!l||c.charAt(0)!=l.charAt(0))return 0;for(var y=0,p=Math.min(c.length,l.length),m=p,f=0;y<m;)c.substring(f,m)==l.substring(f,m)?(y=m,f=y):p=m,m=Math.floor((p-y)/2+y);return m},E.prototype.diff_commonSuffix=function(c,l){if(!c||!l||c.charAt(c.length-1)!=l.charAt(l.length-1))return 0;for(var y=0,p=Math.min(c.length,l.length),m=p,f=0;y<m;)c.substring(c.length-m,c.length-f)==l.substring(l.length-m,l.length-f)?(y=m,f=y):p=m,m=Math.floor((p-y)/2+y);return m},E.prototype.diff_commonOverlap_=function(c,l){var y=c.length,p=l.length;if(y==0||p==0)return 0;y>p?c=c.substring(y-p):y<p&&(l=l.substring(0,y));var m=Math.min(y,p);if(c==l)return m;for(var f=0,v=1;;){var w=c.substring(m-v),b=l.indexOf(w);if(b==-1)return f;v+=b,(b==0||c.substring(m-v)==l.substring(0,v))&&(f=v,v++)}},E.prototype.diff_halfMatch_=function(c,l){if(this.Diff_Timeout<=0)return null;var y=c.length>l.length?c:l,p=c.length>l.length?l:c;if(y.length<4||p.length*2<y.length)return null;var m=this;function f(M,P,V){for(var z=M.substring(V,V+Math.floor(M.length/4)),$=-1,ne="",oe,ge,de,le;($=P.indexOf(z,$+1))!=-1;){var ve=m.diff_commonPrefix(M.substring(V),P.substring($)),Te=m.diff_commonSuffix(M.substring(0,V),P.substring(0,$));ne.length<Te+ve&&(ne=P.substring($-Te,$)+P.substring($,$+ve),oe=M.substring(0,V-Te),ge=M.substring(V+ve),de=P.substring(0,$-Te),le=P.substring($+ve))}return ne.length*2>=M.length?[oe,ge,de,le,ne]:null}var v=f(y,p,Math.ceil(y.length/4)),w=f(y,p,Math.ceil(y.length/2)),b;if(!v&&!w)return null;w?v?b=v[4].length>w[4].length?v:w:b=w:b=v;var g,o,C,_;c.length>l.length?(g=b[0],o=b[1],C=b[2],_=b[3]):(C=b[0],_=b[1],g=b[2],o=b[3]);var D=b[4];return[g,o,C,_,D]},E.prototype.diff_cleanupSemantic=function(c){for(var l=!1,y=[],p=0,m=null,f=0,v=0,w=0,b=0,g=0;f<c.length;)c[f][0]==A?(y[p++]=f,v=b,w=g,b=0,g=0,m=c[f][1]):(c[f][0]==x?b+=c[f][1].length:g+=c[f][1].length,m&&m.length<=Math.max(v,w)&&m.length<=Math.max(b,g)&&(c.splice(y[p-1],0,new E.Diff(L,m)),c[y[p-1]+1][0]=x,p--,p--,f=p>0?y[p-1]:-1,v=0,w=0,b=0,g=0,m=null,l=!0)),f++;for(l&&this.diff_cleanupMerge(c),this.diff_cleanupSemanticLossless(c),f=1;f<c.length;){if(c[f-1][0]==L&&c[f][0]==x){var o=c[f-1][1],C=c[f][1],_=this.diff_commonOverlap_(o,C),D=this.diff_commonOverlap_(C,o);_>=D?(_>=o.length/2||_>=C.length/2)&&(c.splice(f,0,new E.Diff(A,C.substring(0,_))),c[f-1][1]=o.substring(0,o.length-_),c[f+1][1]=C.substring(_),f++):(D>=o.length/2||D>=C.length/2)&&(c.splice(f,0,new E.Diff(A,o.substring(0,D))),c[f-1][0]=x,c[f-1][1]=C.substring(0,C.length-D),c[f+1][0]=L,c[f+1][1]=o.substring(D),f++),f++}f++}},E.prototype.diff_cleanupSemanticLossless=function(c){function l(D,M){if(!D||!M)return 6;var P=D.charAt(D.length-1),V=M.charAt(0),z=P.match(E.nonAlphaNumericRegex_),$=V.match(E.nonAlphaNumericRegex_),ne=z&&P.match(E.whitespaceRegex_),oe=$&&V.match(E.whitespaceRegex_),ge=ne&&P.match(E.linebreakRegex_),de=oe&&V.match(E.linebreakRegex_),le=ge&&D.match(E.blanklineEndRegex_),ve=de&&M.match(E.blanklineStartRegex_);return le||ve?5:ge||de?4:z&&!ne&&oe?3:ne||oe?2:z||$?1:0}for(var y=1;y<c.length-1;){if(c[y-1][0]==A&&c[y+1][0]==A){var p=c[y-1][1],m=c[y][1],f=c[y+1][1],v=this.diff_commonSuffix(p,m);if(v){var w=m.substring(m.length-v);p=p.substring(0,p.length-v),m=w+m.substring(0,m.length-v),f=w+f}for(var b=p,g=m,o=f,C=l(p,m)+l(m,f);m.charAt(0)===f.charAt(0);){p+=m.charAt(0),m=m.substring(1)+f.charAt(0),f=f.substring(1);var _=l(p,m)+l(m,f);_>=C&&(C=_,b=p,g=m,o=f)}c[y-1][1]!=b&&(b?c[y-1][1]=b:(c.splice(y-1,1),y--),c[y][1]=g,o?c[y+1][1]=o:(c.splice(y+1,1),y--))}y++}},E.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,E.whitespaceRegex_=/\s/,E.linebreakRegex_=/[\r\n]/,E.blanklineEndRegex_=/\n\r?\n$/,E.blanklineStartRegex_=/^\r?\n\r?\n/,E.prototype.diff_cleanupEfficiency=function(c){for(var l=!1,y=[],p=0,m=null,f=0,v=!1,w=!1,b=!1,g=!1;f<c.length;)c[f][0]==A?(c[f][1].length<this.Diff_EditCost&&(b||g)?(y[p++]=f,v=b,w=g,m=c[f][1]):(p=0,m=null),b=g=!1):(c[f][0]==L?g=!0:b=!0,m&&(v&&w&&b&&g||m.length<this.Diff_EditCost/2&&v+w+b+g==3)&&(c.splice(y[p-1],0,new E.Diff(L,m)),c[y[p-1]+1][0]=x,p--,m=null,v&&w?(b=g=!0,p=0):(p--,f=p>0?y[p-1]:-1,b=g=!1),l=!0)),f++;l&&this.diff_cleanupMerge(c)},E.prototype.diff_cleanupMerge=function(c){c.push(new E.Diff(A,""));for(var l=0,y=0,p=0,m="",f="",v;l<c.length;)switch(c[l][0]){case x:p++,f+=c[l][1],l++;break;case L:y++,m+=c[l][1],l++;break;case A:y+p>1?(y!==0&&p!==0&&(v=this.diff_commonPrefix(f,m),v!==0&&(l-y-p>0&&c[l-y-p-1][0]==A?c[l-y-p-1][1]+=f.substring(0,v):(c.splice(0,0,new E.Diff(A,f.substring(0,v))),l++),f=f.substring(v),m=m.substring(v)),v=this.diff_commonSuffix(f,m),v!==0&&(c[l][1]=f.substring(f.length-v)+c[l][1],f=f.substring(0,f.length-v),m=m.substring(0,m.length-v))),l-=y+p,c.splice(l,y+p),m.length&&(c.splice(l,0,new E.Diff(L,m)),l++),f.length&&(c.splice(l,0,new E.Diff(x,f)),l++),l++):l!==0&&c[l-1][0]==A?(c[l-1][1]+=c[l][1],c.splice(l,1)):l++,p=0,y=0,m="",f="";break}c[c.length-1][1]===""&&c.pop();var w=!1;for(l=1;l<c.length-1;)c[l-1][0]==A&&c[l+1][0]==A&&(c[l][1].substring(c[l][1].length-c[l-1][1].length)==c[l-1][1]?(c[l][1]=c[l-1][1]+c[l][1].substring(0,c[l][1].length-c[l-1][1].length),c[l+1][1]=c[l-1][1]+c[l+1][1],c.splice(l-1,1),w=!0):c[l][1].substring(0,c[l+1][1].length)==c[l+1][1]&&(c[l-1][1]+=c[l+1][1],c[l][1]=c[l][1].substring(c[l+1][1].length)+c[l+1][1],c.splice(l+1,1),w=!0)),l++;w&&this.diff_cleanupMerge(c)},E.prototype.diff_xIndex=function(c,l){var y=0,p=0,m=0,f=0,v;for(v=0;v<c.length&&(c[v][0]!==x&&(y+=c[v][1].length),c[v][0]!==L&&(p+=c[v][1].length),!(y>l));v++)m=y,f=p;return c.length!=v&&c[v][0]===L?f:f+(l-m)},E.prototype.diff_prettyHtml=function(c){for(var l=[],y=/&/g,p=/</g,m=/>/g,f=/\n/g,v=0;v<c.length;v++){var w=c[v][0],b=c[v][1],g=b.replace(y,"&amp;").replace(p,"&lt;").replace(m,"&gt;").replace(f,"&para;<br>");switch(w){case x:l[v]='<ins style="background:#e6ffe6;">'+g+"</ins>";break;case L:l[v]='<del style="background:#ffe6e6;">'+g+"</del>";break;case A:l[v]="<span>"+g+"</span>";break}}return l.join("")},E.prototype.diff_text1=function(c){for(var l=[],y=0;y<c.length;y++)c[y][0]!==x&&(l[y]=c[y][1]);return l.join("")},E.prototype.diff_text2=function(c){for(var l=[],y=0;y<c.length;y++)c[y][0]!==L&&(l[y]=c[y][1]);return l.join("")},E.prototype.diff_levenshtein=function(c){for(var l=0,y=0,p=0,m=0;m<c.length;m++){var f=c[m][0],v=c[m][1];switch(f){case x:y+=v.length;break;case L:p+=v.length;break;case A:l+=Math.max(y,p),y=0,p=0;break}}return l+=Math.max(y,p),l},E.prototype.diff_toDelta=function(c){for(var l=[],y=0;y<c.length;y++)switch(c[y][0]){case x:l[y]="+"+encodeURI(c[y][1]);break;case L:l[y]="-"+c[y][1].length;break;case A:l[y]="="+c[y][1].length;break}return l.join(" ").replace(/%20/g," ")},E.prototype.diff_fromDelta=function(c,l){for(var y=[],p=0,m=0,f=l.split(/\t/g),v=0;v<f.length;v++){var w=f[v].substring(1);switch(f[v].charAt(0)){case"+":try{y[p++]=new E.Diff(x,decodeURI(w))}catch{throw new Error("Illegal escape in diff_fromDelta: "+w)}break;case"-":case"=":var b=parseInt(w,10);if(isNaN(b)||b<0)throw new Error("Invalid number in diff_fromDelta: "+w);var g=c.substring(m,m+=b);f[v].charAt(0)=="="?y[p++]=new E.Diff(A,g):y[p++]=new E.Diff(L,g);break;default:if(f[v])throw new Error("Invalid diff operation in diff_fromDelta: "+f[v])}}if(m!=c.length)throw new Error("Delta length ("+m+") does not equal source text length ("+c.length+").");return y},E.prototype.match_main=function(c,l,y){if(c==null||l==null||y==null)throw new Error("Null input. (match_main)");return y=Math.max(0,Math.min(y,c.length)),c==l?0:c.length?c.substring(y,y+l.length)==l?y:this.match_bitap_(c,l,y):-1},E.prototype.match_bitap_=function(c,l,y){if(l.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var p=this.match_alphabet_(l),m=this;function f(oe,ge){var de=oe/l.length,le=Math.abs(y-ge);return m.Match_Distance?de+le/m.Match_Distance:le?1:de}var v=this.Match_Threshold,w=c.indexOf(l,y);w!=-1&&(v=Math.min(f(0,w),v),w=c.lastIndexOf(l,y+l.length),w!=-1&&(v=Math.min(f(0,w),v)));var b=1<<l.length-1;w=-1;for(var g,o,C=l.length+c.length,_,D=0;D<l.length;D++){for(g=0,o=C;g<o;)f(D,y+o)<=v?g=o:C=o,o=Math.floor((C-g)/2+g);C=o;var M=Math.max(1,y-o+1),P=Math.min(y+o,c.length)+l.length,V=Array(P+2);V[P+1]=(1<<D)-1;for(var z=P;z>=M;z--){var $=p[c.charAt(z-1)];if(D===0?V[z]=(V[z+1]<<1|1)&$:V[z]=(V[z+1]<<1|1)&$|((_[z+1]|_[z])<<1|1)|_[z+1],V[z]&b){var ne=f(D,z-1);if(ne<=v)if(v=ne,w=z-1,w>y)M=Math.max(1,2*y-w);else break}}if(f(D+1,y)>v)break;_=V}return w},E.prototype.match_alphabet_=function(c){for(var l={},y=0;y<c.length;y++)l[c.charAt(y)]=0;for(var y=0;y<c.length;y++)l[c.charAt(y)]|=1<<c.length-y-1;return l},E.prototype.patch_addContext_=function(c,l){if(l.length!=0){if(c.start2===null)throw Error("patch not initialized");for(var y=l.substring(c.start2,c.start2+c.length1),p=0;l.indexOf(y)!=l.lastIndexOf(y)&&y.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)p+=this.Patch_Margin,y=l.substring(c.start2-p,c.start2+c.length1+p);p+=this.Patch_Margin;var m=l.substring(c.start2-p,c.start2);m&&c.diffs.unshift(new E.Diff(A,m));var f=l.substring(c.start2+c.length1,c.start2+c.length1+p);f&&c.diffs.push(new E.Diff(A,f)),c.start1-=m.length,c.start2-=m.length,c.length1+=m.length+f.length,c.length2+=m.length+f.length}},E.prototype.patch_make=function(c,l,y){var p,m;if(typeof c=="string"&&typeof l=="string"&&typeof y>"u")p=c,m=this.diff_main(p,l,!0),m.length>2&&(this.diff_cleanupSemantic(m),this.diff_cleanupEfficiency(m));else if(c&&typeof c=="object"&&typeof l>"u"&&typeof y>"u")m=c,p=this.diff_text1(m);else if(typeof c=="string"&&l&&typeof l=="object"&&typeof y>"u")p=c,m=l;else if(typeof c=="string"&&typeof l=="string"&&y&&typeof y=="object")p=c,m=y;else throw new Error("Unknown call format to patch_make.");if(m.length===0)return[];for(var f=[],v=new E.patch_obj,w=0,b=0,g=0,o=p,C=p,_=0;_<m.length;_++){var D=m[_][0],M=m[_][1];switch(!w&&D!==A&&(v.start1=b,v.start2=g),D){case x:v.diffs[w++]=m[_],v.length2+=M.length,C=C.substring(0,g)+M+C.substring(g);break;case L:v.length1+=M.length,v.diffs[w++]=m[_],C=C.substring(0,g)+C.substring(g+M.length);break;case A:M.length<=2*this.Patch_Margin&&w&&m.length!=_+1?(v.diffs[w++]=m[_],v.length1+=M.length,v.length2+=M.length):M.length>=2*this.Patch_Margin&&w&&(this.patch_addContext_(v,o),f.push(v),v=new E.patch_obj,w=0,o=C,b=g);break}D!==x&&(b+=M.length),D!==L&&(g+=M.length)}return w&&(this.patch_addContext_(v,o),f.push(v)),f},E.prototype.patch_deepCopy=function(c){for(var l=[],y=0;y<c.length;y++){var p=c[y],m=new E.patch_obj;m.diffs=[];for(var f=0;f<p.diffs.length;f++)m.diffs[f]=new E.Diff(p.diffs[f][0],p.diffs[f][1]);m.start1=p.start1,m.start2=p.start2,m.length1=p.length1,m.length2=p.length2,l[y]=m}return l},E.prototype.patch_apply=function(c,l){if(c.length==0)return[l,[]];c=this.patch_deepCopy(c);var y=this.patch_addPadding(c);l=y+l+y,this.patch_splitMax(c);for(var p=0,m=[],f=0;f<c.length;f++){var v=c[f].start2+p,w=this.diff_text1(c[f].diffs),b,g=-1;if(w.length>this.Match_MaxBits?(b=this.match_main(l,w.substring(0,this.Match_MaxBits),v),b!=-1&&(g=this.match_main(l,w.substring(w.length-this.Match_MaxBits),v+w.length-this.Match_MaxBits),(g==-1||b>=g)&&(b=-1))):b=this.match_main(l,w,v),b==-1)m[f]=!1,p-=c[f].length2-c[f].length1;else{m[f]=!0,p=b-v;var o;if(g==-1?o=l.substring(b,b+w.length):o=l.substring(b,g+this.Match_MaxBits),w==o)l=l.substring(0,b)+this.diff_text2(c[f].diffs)+l.substring(b+w.length);else{var C=this.diff_main(w,o,!1);if(w.length>this.Match_MaxBits&&this.diff_levenshtein(C)/w.length>this.Patch_DeleteThreshold)m[f]=!1;else{this.diff_cleanupSemanticLossless(C);for(var _=0,D,M=0;M<c[f].diffs.length;M++){var P=c[f].diffs[M];P[0]!==A&&(D=this.diff_xIndex(C,_)),P[0]===x?l=l.substring(0,b+D)+P[1]+l.substring(b+D):P[0]===L&&(l=l.substring(0,b+D)+l.substring(b+this.diff_xIndex(C,_+P[1].length))),P[0]!==L&&(_+=P[1].length)}}}}}return l=l.substring(y.length,l.length-y.length),[l,m]},E.prototype.patch_addPadding=function(c){for(var l=this.Patch_Margin,y="",p=1;p<=l;p++)y+=String.fromCharCode(p);for(var p=0;p<c.length;p++)c[p].start1+=l,c[p].start2+=l;var m=c[0],f=m.diffs;if(f.length==0||f[0][0]!=A)f.unshift(new E.Diff(A,y)),m.start1-=l,m.start2-=l,m.length1+=l,m.length2+=l;else if(l>f[0][1].length){var v=l-f[0][1].length;f[0][1]=y.substring(f[0][1].length)+f[0][1],m.start1-=v,m.start2-=v,m.length1+=v,m.length2+=v}if(m=c[c.length-1],f=m.diffs,f.length==0||f[f.length-1][0]!=A)f.push(new E.Diff(A,y)),m.length1+=l,m.length2+=l;else if(l>f[f.length-1][1].length){var v=l-f[f.length-1][1].length;f[f.length-1][1]+=y.substring(0,v),m.length1+=v,m.length2+=v}return y},E.prototype.patch_splitMax=function(c){for(var l=this.Match_MaxBits,y=0;y<c.length;y++)if(!(c[y].length1<=l)){var p=c[y];c.splice(y--,1);for(var m=p.start1,f=p.start2,v="";p.diffs.length!==0;){var w=new E.patch_obj,b=!0;for(w.start1=m-v.length,w.start2=f-v.length,v!==""&&(w.length1=w.length2=v.length,w.diffs.push(new E.Diff(A,v)));p.diffs.length!==0&&w.length1<l-this.Patch_Margin;){var g=p.diffs[0][0],o=p.diffs[0][1];g===x?(w.length2+=o.length,f+=o.length,w.diffs.push(p.diffs.shift()),b=!1):g===L&&w.diffs.length==1&&w.diffs[0][0]==A&&o.length>2*l?(w.length1+=o.length,m+=o.length,b=!1,w.diffs.push(new E.Diff(g,o)),p.diffs.shift()):(o=o.substring(0,l-w.length1-this.Patch_Margin),w.length1+=o.length,m+=o.length,g===A?(w.length2+=o.length,f+=o.length):b=!1,w.diffs.push(new E.Diff(g,o)),o==p.diffs[0][1]?p.diffs.shift():p.diffs[0][1]=p.diffs[0][1].substring(o.length))}v=this.diff_text2(w.diffs),v=v.substring(v.length-this.Patch_Margin);var C=this.diff_text1(p.diffs).substring(0,this.Patch_Margin);C!==""&&(w.length1+=C.length,w.length2+=C.length,w.diffs.length!==0&&w.diffs[w.diffs.length-1][0]===A?w.diffs[w.diffs.length-1][1]+=C:w.diffs.push(new E.Diff(A,C))),b||c.splice(++y,0,w)}}},E.prototype.patch_toText=function(c){for(var l=[],y=0;y<c.length;y++)l[y]=c[y];return l.join("")},E.prototype.patch_fromText=function(c){var l=[];if(!c)return l;for(var y=c.split(` `),p=0,m=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;p<y.length;){var f=y[p].match(m);if(!f)throw new Error("Invalid patch string: "+y[p]);var v=new E.patch_obj;for(l.push(v),v.start1=parseInt(f[1],10),f[2]===""?(v.start1--,v.length1=1):f[2]=="0"?v.length1=0:(v.start1--,v.length1=parseInt(f[2],10)),v.start2=parseInt(f[3],10),f[4]===""?(v.start2--,v.length2=1):f[4]=="0"?v.length2=0:(v.start2--,v.length2=parseInt(f[4],10)),p++;p<y.length;){var w=y[p].charAt(0);try{var b=decodeURI(y[p].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+b)}if(w=="-")v.diffs.push(new E.Diff(L,b));else if(w=="+")v.diffs.push(new E.Diff(x,b));else if(w==" ")v.diffs.push(new E.Diff(A,b));else{if(w=="@")break;if(w!=="")throw new Error('Invalid patch mode "'+w+'" in: '+b)}p++}}return l},E.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},E.patch_obj.prototype.toString=function(){var c,l;this.length1===0?c=this.start1+",0":this.length1==1?c=this.start1+1:c=this.start1+1+","+this.length1,this.length2===0?l=this.start2+",0":this.length2==1?l=this.start2+1:l=this.start2+1+","+this.length2;for(var y=["@@ -"+c+" +"+l+` @@ `],p,m=0;m<this.diffs.length;m++){switch(this.diffs[m][0]){case x:p="+";break;case L:p="-";break;case A:p=" ";break}y[m+1]=p+encodeURI(this.diffs[m][1])+` `}return y.join("").replace(/%20/g," ")},Z.exports=E,Z.exports.diff_match_patch=E,Z.exports.DIFF_DELETE=L,Z.exports.DIFF_INSERT=x,Z.exports.DIFF_EQUAL=A},408:(Z,E,L)=>{L.d(E,{default:()=>Fe});var x=L(135),A=L(840),c=L(775),l=L(428),y=L(325),p=L(483),m=L(999),f=function(N){N===void 0&&(N=document);var re=function(U){var j=document.createElement("img");j.src=U.getAttribute("data-src"),j.addEventListener("load",function(){!U.getAttribute("style")&&!U.getAttribute("class")&&!U.getAttribute("width")&&!U.getAttribute("height")&&j.naturalHeight>j.naturalWidth&&j.naturalWidth/j.naturalHeight<document.querySelector(".vditor-reset").clientWidth/(window.innerHeight-40)&&j.naturalHeight>window.innerHeight-40&&(U.style.height=window.innerHeight-40+"px"),U.src=j.src}),U.removeAttribute("data-src")};if(!("IntersectionObserver"in window))return N.querySelectorAll("img").forEach(function(U){U.getAttribute("data-src")&&re(U)}),!1;window.vditorImageIntersectionObserver?(window.vditorImageIntersectionObserver.disconnect(),N.querySelectorAll("img").forEach(function(U){window.vditorImageIntersectionObserver.observe(U)})):(window.vditorImageIntersectionObserver=new IntersectionObserver(function(U){U.forEach(function(j){(typeof j.isIntersecting>"u"?j.intersectionRatio!==0:j.isIntersecting)&&j.target.getAttribute("data-src")&&re(j.target)})}),N.querySelectorAll("img").forEach(function(U){window.vditorImageIntersectionObserver.observe(U)}))},v=L(472),w=L(280),b=L(637),g=L(825),o=L(11),C=L(194),_=L(436),D=L(229),M=L(145),P=L(538),V=L(413),z=L(106),$=L(673),ne=function(N){document.querySelectorAll(".vditor-anchor").forEach(function(re){N===1&&re.classList.add("vditor-anchor--left"),re.onclick=function(){var U=re.getAttribute("href").substr(1),j=document.getElementById("vditorAnchor-"+U).offsetTop;document.querySelector("html").scrollTop=j}}),window.onhashchange=function(){var re=document.getElementById("vditorAnchor-"+decodeURIComponent(window.location.hash.substr(1)));re&&(document.querySelector("html").scrollTop=re.offsetTop)}},oe=L(214),ge=L(810),de=function(N,re){if(re===void 0&&(re="zh_CN"),!(typeof speechSynthesis>"u"||typeof SpeechSynthesisUtterance>"u")){var U=function(){var Le=speechSynthesis.getVoices(),X,pe;return Le.forEach(function(De){De.lang===re.replace("_","-")&&(X=De),De.default&&(pe=De)}),X||(X=pe),X},j='<svg><use xlink:href="#vditor-icon-play"></use></svg>',he='<svg><use xlink:href="#vditor-icon-pause"></use></svg>';document.getElementById("vditorIconScript")||(j='<svg viewBox="0 0 32 32"><path d="M3.436 0l25.128 16-25.128 16v-32z"></path></svg>',he='<svg viewBox="0 0 32 32"><path d="M20.617 0h9.128v32h-9.128v-32zM2.255 32v-32h9.128v32h-9.128z"></path></svg>');var K=document.querySelector(".vditor-speech");K||(K=document.createElement("button"),K.className="vditor-speech",N.insertAdjacentElement("beforeend",K),speechSynthesis.onvoiceschanged!==void 0&&(speechSynthesis.onvoiceschanged=U));var ye=U(),ie=new SpeechSynthesisUtterance;ie.voice=ye,ie.onend=ie.onerror=function(){K.style.display="none",speechSynthesis.cancel(),K.classList.remove("vditor-speech--current"),K.innerHTML=j},N.addEventListener(window.ontouchstart!==void 0?"touchend":"click",function(Le){var X=Le.target;if(X.classList.contains("vditor-speech")||X.parentElement.classList.contains("vditor-speech")){K.classList.contains("vditor-speech--current")?speechSynthesis.speaking&&(speechSynthesis.paused?(speechSynthesis.resume(),K.innerHTML=he):(speechSynthesis.pause(),K.innerHTML=j)):(ie.text=K.getAttribute("data-text"),speechSynthesis.speak(ie),K.classList.add("vditor-speech--current"),K.innerHTML=he),(0,ge.Hc)(window.vditorSpeechRange),N.focus();return}if(K.style.display="none",speechSynthesis.cancel(),K.classList.remove("vditor-speech--current"),K.innerHTML=j,getSelection().rangeCount!==0){var pe=getSelection().getRangeAt(0),De=pe.toString().trim();if(De){window.vditorSpeechRange=pe.cloneRange();var Ne=pe.getBoundingClientRect();K.innerHTML=j,K.style.display="block",K.style.top=Ne.top+Ne.height+document.querySelector("html").scrollTop-20+"px",window.ontouchstart!==void 0?K.style.left=Le.changedTouches[Le.changedTouches.length-1].pageX+2+"px":K.style.left=Le.clientX+2+"px",K.setAttribute("data-text",De)}}})}},le=function(N,re,U,j){function he(K){return K instanceof U?K:new U(function(ye){ye(K)})}return new(U||(U=Promise))(function(K,ye){function ie(pe){try{X(j.next(pe))}catch(De){ye(De)}}function Le(pe){try{X(j.throw(pe))}catch(De){ye(De)}}function X(pe){pe.done?K(pe.value):he(pe.value).then(ie,Le)}X((j=j.apply(N,re||[])).next())})},ve=function(N,re){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},j,he,K,ye;return ye={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ie(X){return function(pe){return Le([X,pe])}}function Le(X){if(j)throw new TypeError("Generator is already executing.");for(;ye&&(ye=0,X[0]&&(U=0)),U;)try{if(j=1,he&&(K=X[0]&2?he.return:X[0]?he.throw||((K=he.return)&&K.call(he),0):he.next)&&!(K=K.call(he,X[1])).done)return K;switch(he=0,K&&(X=[X[0]&2,K.value]),X[0]){case 0:case 1:K=X;break;case 4:return U.label++,{value:X[1],done:!1};case 5:U.label++,he=X[1],X=[0];continue;case 7:X=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(X[0]===6||X[0]===2)){U=0;continue}if(X[0]===3&&(!K||X[1]>K[0]&&X[1]<K[3])){U.label=X[1];break}if(X[0]===6&&U.label<K[1]){U.label=K[1],K=X;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(X);break}K[2]&&U.ops.pop(),U.trys.pop();continue}X=re.call(N,U)}catch(pe){X=[6,pe],he=0}finally{j=K=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}},Te=function(N){var re,U={anchor:0,cdn:M.g.CDN,customEmoji:{},emojiPath:"".concat(M.g.CDN,"/dist/images/emoji"),hljs:M.g.HLJS_OPTIONS,icon:"ant",lang:"zh_CN",markdown:M.g.MARKDOWN_OPTIONS,math:M.g.MATH_OPTIONS,mode:"light",speech:{enable:!1},render:{media:{enable:!0}},theme:M.g.THEME_OPTIONS};return N.cdn&&(!((re=N.theme)===null||re===void 0)&&re.path||(U.theme.path="".concat(N.cdn,"/dist/css/content-theme")),N.emojiPath||(U.emojiPath="".concat(N.cdn,"/dist/images/emoji"))),(0,$.T)(U,N)},Ee=function(N,re){var U=Te(re);return(0,V.G)("".concat(U.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then(function(){var j=(0,oe.X)({autoSpace:U.markdown.autoSpace,gfmAutoLink:U.markdown.gfmAutoLink,codeBlockPreview:U.markdown.codeBlockPreview,emojiSite:U.emojiPath,emojis:U.customEmoji,fixTermTypo:U.markdown.fixTermTypo,footnotes:U.markdown.footnotes,headingAnchor:U.anchor!==0,inlineMathDigit:U.math.inlineDigit,lazyLoadImage:U.lazyLoadImage,linkBase:U.markdown.linkBase,linkPrefix:U.markdown.linkPrefix,listStyle:U.markdown.listStyle,mark:U.markdown.mark,mathBlockPreview:U.markdown.mathBlockPreview,paragraphBeginningSpace:U.markdown.paragraphBeginningSpace,sanitize:U.markdown.sanitize,toc:U.markdown.toc});return re?.renderers&&j.SetJSRenderers({renderers:{Md2HTML:re.renderers}}),j.SetHeadingID(!0),j.Md2HTML(N)})},k=function(N,re,U){return le(void 0,void 0,void 0,function(){var j,he,K,ye;return ve(this,function(ie){switch(ie.label){case 0:return j=Te(U),[4,Ee(re,j)];case 1:if(he=ie.sent(),j.transform&&(he=j.transform(he)),N.innerHTML=he,N.classList.add("vditor-reset"),j.i18n)return[3,5];if(["de_DE","en_US","fr_FR","pt_BR","ja_JP","ko_KR","ru_RU","sv_SE","zh_CN","zh_TW"].includes(j.lang))return[3,2];throw new Error("options.lang error, see https://ld246.com/article/1549638745630#options");case 2:return K="vditorI18nScript",ye=K+j.lang,document.querySelectorAll('head script[id^="'.concat(K,'"]')).forEach(function(Le){Le.id!==ye&&document.head.removeChild(Le)}),[4,(0,V.G)("".concat(j.cdn,"/dist/js/i18n/").concat(j.lang,".js"),ye)];case 3:ie.sent(),ie.label=4;case 4:return[3,6];case 5:window.VditorI18n=j.i18n,ie.label=6;case 6:return j.icon?[4,(0,V.G)("".concat(j.cdn,"/dist/js/icons/").concat(j.icon,".js"),"vditorIconScript")]:[3,8];case 7:ie.sent(),ie.label=8;case 8:return(0,P.Z)(j.theme.current,j.theme.path),j.anchor===1&&N.classList.add("vditor-reset--anchor"),(0,l.O)(N,j.hljs),(0,m.s)(j.hljs,N,j.cdn),(0,v.H)(N,{cdn:j.cdn,math:j.math}),(0,b.i)(N,j.cdn,j.mode),(0,g.J)(N,j.cdn,j.mode),(0,o.K)(N,j.cdn),(0,y.P)(N,j.cdn),(0,p.v)(N,j.cdn),(0,c.p)(N,j.cdn,j.mode),(0,C.P)(N,j.cdn,j.mode),(0,D.B)(N,j.cdn),(0,x.Q)(N,j.cdn),j.render.media.enable&&(0,w.Y)(N),j.speech.enable&&de(N),j.anchor!==0&&ne(j.anchor),j.after&&j.after(),j.lazyLoadImage&&f(N),N.addEventListener("click",function(Le){var X=(0,z.lG)(Le.target,"SPAN");if(X&&(0,z.fb)(X,"vditor-toc")){var pe=N.querySelector("#"+X.getAttribute("data-target-id"));pe&&window.scrollTo(window.scrollX,pe.offsetTop);return}}),[2]}})})},je=L(190),pt=L(580),ht=function(){function N(){}return N.adapterRender=A,N.previewImage=je.E,N.codeRender=l.O,N.graphvizRender=p.v,N.highlightRender=m.s,N.mathRender=v.H,N.mermaidRender=b.i,N.SMILESRender=g.J,N.markmapRender=o.K,N.flowchartRender=y.P,N.chartRender=c.p,N.abcRender=x.Q,N.mindmapRender=C.P,N.plantumlRender=D.B,N.outlineRender=_.k,N.mediaRender=w.Y,N.speechRender=de,N.lazyLoadImageRender=f,N.md2html=Ee,N.preview=k,N.setCodeTheme=pt.Y,N.setContentTheme=P.Z,N}();const Fe=ht},145:(Z,E,L)=>{L.d(E,{H:()=>x,g:()=>A});var x="3.11.1",A=function(){function c(){}return c.ZWSP="​",c.DROP_EDITOR="application/editor",c.MOBILE_WIDTH=520,c.CLASS_MENU_DISABLED="vditor-menu--disabled",c.EDIT_TOOLBARS=["emoji","headings","bold","italic","strike","link","list","ordered-list","outdent","indent","check","line","quote","code","inline-code","insert-after","insert-before","upload","record","table"],c.CODE_THEME=["a11y-dark","agate","an-old-hope","androidstudio","arta","atom-one-dark","atom-one-dark-reasonable","base16/3024","base16/apathy","base16/apprentice","base16/ashes","base16/atelier-cave","base16/atelier-dune","base16/atelier-estuary","base16/atelier-forest","base16/atelier-heath","base16/atelier-lakeside","base16/atelier-plateau","base16/atelier-savanna","base16/atelier-seaside","base16/atelier-sulphurpool","base16/atlas","base16/bespin","base16/black-metal","base16/black-metal-bathory","base16/black-metal-burzum","base16/black-metal-dark-funeral","base16/black-metal-gorgoroth","base16/black-metal-immortal","base16/black-metal-khold","base16/black-metal-marduk","base16/black-metal-mayhem","base16/black-metal-nile","base16/black-metal-venom","base16/brewer","base16/bright","base16/brogrammer","base16/brush-trees-dark","base16/chalk","base16/circus","base16/classic-dark","base16/codeschool","base16/colors","base16/danqing","base16/darcula","base16/dark-violet","base16/darkmoss","base16/darktooth","base16/decaf","base16/default-dark","base16/dracula","base16/edge-dark","base16/eighties","base16/embers","base16/equilibrium-dark","base16/equilibrium-gray-dark","base16/espresso","base16/eva","base16/eva-dim","base16/flat","base16/framer","base16/gigavolt","base16/google-dark","base16/grayscale-dark","base16/green-screen","base16/gruvbox-dark-hard","base16/gruvbox-dark-medium","base16/gruvbox-dark-pale","base16/gruvbox-dark-soft","base16/hardcore","base16/harmonic16-dark","base16/heetch-dark","base16/helios","base16/hopscotch","base16/horizon-dark","base16/humanoid-dark","base16/ia-dark","base16/icy-dark","base16/ir-black","base16/isotope","base16/kimber","base16/london-tube","base16/macintosh","base16/marrakesh","base16/materia","base16/material","base16/material-darker","base16/material-palenight","base16/material-vivid","base16/mellow-purple","base16/mocha","base16/monokai","base16/nebula","base16/nord","base16/nova","base16/ocean","base16/oceanicnext","base16/onedark","base16/outrun-dark","base16/papercolor-dark","base16/paraiso","base16/pasque","base16/phd","base16/pico","base16/pop","base16/porple","base16/qualia","base16/railscasts","base16/rebecca","base16/ros-pine","base16/ros-pine-moon","base16/sandcastle","base16/seti-ui","base16/silk-dark","base16/snazzy","base16/solar-flare","base16/solarized-dark","base16/spacemacs","base16/summercamp","base16/summerfruit-dark","base16/synth-midnight-terminal-dark","base16/tango","base16/tender","base16/tomorrow-night","base16/twilight","base16/unikitty-dark","base16/vulcan","base16/windows-10","base16/windows-95","base16/windows-high-contrast","base16/windows-nt","base16/woodland","base16/xcode-dusk","base16/zenburn","codepen-embed","dark","devibeans","far","felipec","github-dark","github-dark-dimmed","gml","gradient-dark","hybrid","ir-black","isbl-editor-dark","kimbie-dark","lioshi","monokai","monokai-sublime","night-owl","nnfx-dark","nord","obsidian","panda-syntax-dark","paraiso-dark","pojoaque","qtcreator-dark","rainbow","shades-of-purple","srcery","stackoverflow-dark","sunburst","tomorrow-night-blue","tomorrow-night-bright","tokyo-night-dark","vs2015","xt256","ant-design","a11y-light","arduino-light","ascetic","atom-one-light","base16/atelier-cave-light","base16/atelier-dune-light","base16/atelier-estuary-light","base16/atelier-forest-light","base16/atelier-heath-light","base16/atelier-lakeside-light","base16/atelier-plateau-light","base16/atelier-savanna-light","base16/atelier-seaside-light","base16/atelier-sulphurpool-light","base16/brush-trees","base16/classic-light","base16/cupcake","base16/cupertino","base16/default-light","base16/dirtysea","base16/edge-light","base16/equilibrium-gray-light","base16/equilibrium-light","base16/fruit-soda","base16/github","base16/google-light","base16/grayscale-light","base16/gruvbox-light-hard","base16/gruvbox-light-medium","base16/gruvbox-light-soft","base16/harmonic16-light","base16/heetch-light","base16/humanoid-light","base16/horizon-light","base16/ia-light","base16/material-lighter","base16/mexico-light","base16/one-light","base16/papercolor-light","base16/ros-pine-dawn","base16/sagelight","base16/shapeshifter","base16/silk-light","base16/solar-flare-light","base16/solarized-light","base16/summerfruit-light","base16/synth-midnight-terminal-light","base16/tomorrow","base16/unikitty-light","base16/windows-10-light","base16/windows-95-light","base16/windows-high-contrast-light","brown-paper","base16/windows-nt-light","color-brewer","docco","foundation","github","googlecode","gradient-light","grayscale","idea","intellij-light","isbl-editor-light","kimbie-light","lightfair","magula","mono-blue","nnfx-light","panda-syntax-light","paraiso-light","purebasic","qtcreator-light","routeros","school-book","stackoverflow-light","tokyo-night-light","vs","xcode","default"],c.ALIAS_CODE_LANGUAGES=["abc","plantuml","mermaid","flowchart","echarts","mindmap","graphviz","math","markmap","smiles","js","ts","html","toml","c#","bat"],c.CDN="https://unpkg.com/vditor@".concat("3.11.1"),c.MARKDOWN_OPTIONS={autoSpace:!1,gfmAutoLink:!0,codeBlockPreview:!0,fixTermTypo:!1,footnotes:!0,linkBase:"",linkPrefix:"",listStyle:!1,mark:!1,mathBlockPreview:!0,paragraphBeginningSpace:!1,sanitize:!0,toc:!1},c.HLJS_OPTIONS={enable:!0,lineNumber:!1,defaultLang:"",style:"github"},c.MATH_OPTIONS={engine:"KaTeX",inlineDigit:!1,macros:{}},c.THEME_OPTIONS={current:"light",list:{"ant-design":"Ant Design",dark:"Dark",light:"Light",wechat:"WeChat"},path:"".concat(c.CDN,"/dist/css/content-theme")},c}()},825:(Z,E,L)=>{L.d(E,{J:()=>y});var x=L(145),A=L(413),c=L(840),l=L(494),y=function(p,m,f){p===void 0&&(p=document),m===void 0&&(m=x.g.CDN);var v=c.SMILESRenderAdapter.getElements(p);v.length>0&&(0,A.G)("".concat(m,"/dist/js/smiles-drawer/smiles-drawer.min.js?v=2.1.7"),"vditorAbcjsScript").then(function(){var w=new SmiDrawer({},{});v.forEach(function(b){var g=c.SMILESRenderAdapter.getCode(b).trim();if(!(b.getAttribute("data-processed")==="true"||g.trim()==="")){var o="smiles"+(0,l.Wb)();b.innerHTML='<svg id="'.concat(o,'"></svg>'),w.draw(g,"#"+o,f==="dark"?"dark":void 0),b.setAttribute("data-processed","true")}})})}},135:(Z,E,L)=>{L.d(E,{Q:()=>l});var x=L(145),A=L(413),c=L(840),l=function(y,p){y===void 0&&(y=document),p===void 0&&(p=x.g.CDN);var m=c.abcRenderAdapter.getElements(y);m.length>0&&(0,A.G)("".concat(p,"/dist/js/abcjs/abcjs_basic.min.js"),"vditorAbcjsScript").then(function(){m.forEach(function(f){f.parentElement.classList.contains("vditor-wysiwyg__pre")||f.parentElement.classList.contains("vditor-ir__marker--pre")||f.getAttribute("data-processed")!=="true"&&(ABCJS.renderAbc(f,c.abcRenderAdapter.getCode(f).trim()),f.style.overflowX="auto",f.setAttribute("data-processed","true"))})})}},840:(Z,E,L)=>{L.r(E),L.d(E,{mathRenderAdapter:()=>x,SMILESRenderAdapter:()=>A,mermaidRenderAdapter:()=>c,markmapRenderAdapter:()=>l,mindmapRenderAdapter:()=>y,chartRenderAdapter:()=>p,abcRenderAdapter:()=>m,graphvizRenderAdapter:()=>f,flowchartRenderAdapter:()=>v,plantumlRenderAdapter:()=>w});var x={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-math")}},A={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-smiles")}},c={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-mermaid")}},l={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-markmap")}},y={getCode:function(b){return b.getAttribute("data-code")},getElements:function(b){return b.querySelectorAll(".language-mindmap")}},p={getCode:function(b){return b.innerText},getElements:function(b){return b.querySelectorAll(".language-echarts")}},m={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-abc")}},f={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-graphviz")}},v={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-flowchart")}},w={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-plantuml")}}},775:(Z,E,L)=>{L.d(E,{p:()=>m});var x=L(145),A=L(413),c=L(840),l=L(494),y=function(f,v,w,b){function g(o){return o instanceof w?o:new w(function(C){C(o)})}return new(w||(w=Promise))(function(o,C){function _(P){try{M(b.next(P))}catch(V){C(V)}}function D(P){try{M(b.throw(P))}catch(V){C(V)}}function M(P){P.done?o(P.value):g(P.value).then(_,D)}M((b=b.apply(f,v||[])).next())})},p=function(f,v){var w={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},b,g,o,C;return C={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function _(M){return function(P){return D([M,P])}}function D(M){if(b)throw new TypeError("Generator is already executing.");for(;C&&(C=0,M[0]&&(w=0)),w;)try{if(b=1,g&&(o=M[0]&2?g.return:M[0]?g.throw||((o=g.return)&&o.call(g),0):g.next)&&!(o=o.call(g,M[1])).done)return o;switch(g=0,o&&(M=[M[0]&2,o.value]),M[0]){case 0:case 1:o=M;break;case 4:return w.label++,{value:M[1],done:!1};case 5:w.label++,g=M[1],M=[0];continue;case 7:M=w.ops.pop(),w.trys.pop();continue;default:if(o=w.trys,!(o=o.length>0&&o[o.length-1])&&(M[0]===6||M[0]===2)){w=0;continue}if(M[0]===3&&(!o||M[1]>o[0]&&M[1]<o[3])){w.label=M[1];break}if(M[0]===6&&w.label<o[1]){w.label=o[1],o=M;break}if(o&&w.label<o[2]){w.label=o[2],w.ops.push(M);break}o[2]&&w.ops.pop(),w.trys.pop();continue}M=v.call(f,w)}catch(P){M=[6,P],g=0}finally{b=o=0}if(M[0]&5)throw M[1];return{value:M[0]?M[1]:void 0,done:!0}}},m=function(f,v,w){f===void 0&&(f=document),v===void 0&&(v=x.g.CDN);var b=c.chartRenderAdapter.getElements(f);b.length>0&&(0,A.G)("".concat(v,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){b.forEach(function(g){return y(void 0,void 0,void 0,function(){var o,C,_;return p(this,function(D){switch(D.label){case 0:if(g.parentElement.classList.contains("vditor-wysiwyg__pre")||g.parentElement.classList.contains("vditor-ir__marker--pre"))return[2];if(o=c.chartRenderAdapter.getCode(g).trim(),!o)return[2];D.label=1;case 1:return D.trys.push([1,3,,4]),g.getAttribute("data-processed")==="true"?[2]:[4,(0,l.Qf)(o)];case 2:return C=D.sent(),echarts.init(g,w==="dark"?"dark":void 0).setOption(C),g.setAttribute("data-processed","true"),[3,4];case 3:return _=D.sent(),g.className="vditor-reset--error",g.innerHTML="echarts render error: <br>".concat(_),[3,4];case 4:return[2]}})})})})}},428:(Z,E,L)=>{L.d(E,{O:()=>c});var x=L(105),A=L(145),c=function(l,y){Array.from(l.querySelectorAll("pre > code")).filter(function(p,m){return!(p.parentElement.classList.contains("vditor-wysiwyg__pre")||p.parentElement.classList.contains("vditor-ir__marker--pre")||p.classList.contains("language-mermaid")||p.classList.contains("language-flowchart")||p.classList.contains("language-echarts")||p.classList.contains("language-mindmap")||p.classList.contains("language-plantuml")||p.classList.contains("language-markmap")||p.classList.contains("language-abc")||p.classList.contains("language-graphviz")||p.classList.contains("language-math")||p.classList.contains("language-smiles")||p.style.maxHeight.indexOf("px")>-1||l.classList.contains("vditor-preview")&&m>5)}).forEach(function(p){var m,f,v,w=p.innerText;if(p.classList.contains("highlight-chroma")){var b=p.cloneNode(!0);b.querySelectorAll(".highlight-ln").forEach(function(_){_.remove()}),w=b.innerText}else w.endsWith(` `)&&(w=w.substr(0,w.length-1));var g='<svg><use xlink:href="#vditor-icon-copy"></use></svg>';document.getElementById("vditorIconScript")||(g='<svg viewBox="0 0 32 32"><path d="M22.545-0h-17.455c-1.6 0-2.909 1.309-2.909 2.909v20.364h2.909v-20.364h17.455v-2.909zM26.909 5.818h-16c-1.6 0-2.909 1.309-2.909 2.909v20.364c0 1.6 1.309 2.909 2.909 2.909h16c1.6 0 2.909-1.309 2.909-2.909v-20.364c0-1.6-1.309-2.909-2.909-2.909zM26.909 29.091h-16v-20.364h16v20.364z"></path></svg>');var o=document.createElement("div");o.className="vditor-copy",o.innerHTML='<span aria-label="'.concat(((m=window.VditorI18n)===null||m===void 0?void 0:m.copy)||"复制",`" onmouseover="this.setAttribute('aria-label', '`).concat(((f=window.VditorI18n)===null||f===void 0?void 0:f.copy)||"复制",`')" class="vditor-tooltipped vditor-tooltipped__w" onclick="event.stopPropagation();this.previousElementSibling.select();document.execCommand('copy');this.setAttribute('aria-label', '`).concat(((v=window.VditorI18n)===null||v===void 0?void 0:v.copied)||"已复制",`');this.previousElementSibling.blur()">`).concat(g,"</span>");var C=document.createElement("textarea");C.value=(0,x.X)(w),o.insertAdjacentElement("afterbegin",C),y&&y.renderMenu&&y.renderMenu(p,o),p.before(o),p.style.maxHeight=window.outerHeight-40+"px",p.insertAdjacentHTML("afterend",'<span style="position: absolute">'.concat(A.g.ZWSP,"</span>"))})}},325:(Z,E,L)=>{L.d(E,{P:()=>l});var x=L(145),A=L(413),c=L(840),l=function(y,p){p===void 0&&(p=x.g.CDN);var m=c.flowchartRenderAdapter.getElements(y);m.length!==0&&(0,A.G)("".concat(p,"/dist/js/flowchart.js/flowchart.min.js"),"vditorFlowchartScript").then(function(){m.forEach(function(f){if(f.getAttribute("data-processed")!=="true"){var v=flowchart.parse(c.flowchartRenderAdapter.getCode(f));f.innerHTML="",v.drawSVG(f),f.setAttribute("data-processed","true")}})})}},483:(Z,E,L)=>{L.d(E,{v:()=>l});var x=L(145),A=L(413),c=L(840),l=function(y,p){p===void 0&&(p=x.g.CDN);var m=c.graphvizRenderAdapter.getElements(y);m.length!==0&&(0,A.G)("".concat(p,"/dist/js/graphviz/viz.js"),"vditorGraphVizScript").then(function(){m.forEach(function(f){var v=c.graphvizRenderAdapter.getCode(f);if(!(f.parentElement.classList.contains("vditor-wysiwyg__pre")||f.parentElement.classList.contains("vditor-ir__marker--pre"))&&!(f.getAttribute("data-processed")==="true"||v.trim()==="")){try{var w=new Blob(["importScripts('".concat(document.getElementById("vditorGraphVizScript").src.replace("viz.js","full.render.js"),"');")],{type:"application/javascript"}),b=window.URL||window.webkitURL,g=b.createObjectURL(w),o=new Worker(g);new Viz({worker:o}).renderSVGElement(v).then(function(C){f.innerHTML=C.outerHTML}).catch(function(C){f.innerHTML="graphviz render error: <br>".concat(C),f.className="vditor-reset--error"})}catch(C){console.error("graphviz error",C)}f.setAttribute("data-processed","true")}})})}},999:(Z,E,L)=>{L.d(E,{s:()=>l});var x=L(145),A=L(413),c=L(290),l=function(y,p,m){p===void 0&&(p=document),m===void 0&&(m=x.g.CDN);var f=y.style;x.g.CODE_THEME.includes(f)||(f="github");var v=document.getElementById("vditorHljsStyle"),w="".concat(m,"/dist/js/highlight.js/styles/").concat(f,".min.css");if(v&&v.getAttribute("href")!==w&&v.remove(),(0,c.c)("".concat(m,"/dist/js/highlight.js/styles/").concat(f,".min.css"),"vditorHljsStyle"),y.enable!==!1){var b=p.querySelectorAll("pre > code");b.length!==0&&(0,A.G)("".concat(m,"/dist/js/highlight.js/highlight.min.js?v=11.7.0"),"vditorHljsScript").then(function(){(0,A.G)("".concat(m,"/dist/js/highlight.js/third-languages.js?v=1.0.1"),"vditorHljsThirdScript").then(function(){p.querySelectorAll("pre > code").forEach(function(g){if(!(g.parentElement.classList.contains("vditor-ir__marker--pre")||g.parentElement.classList.contains("vditor-wysiwyg__pre"))&&!(g.classList.contains("language-mermaid")||g.classList.contains("language-flowchart")||g.classList.contains("language-echarts")||g.classList.contains("language-mindmap")||g.classList.contains("language-plantuml")||g.classList.contains("language-smiles")||g.classList.contains("language-abc")||g.classList.contains("language-graphviz")||g.classList.contains("language-math"))){y.defaultLang!==""&&g.className.indexOf("language-")===-1&&g.classList.add("language-"+y.defaultLang);var o=g.className.replace("language-","");if(window.hljs.getLanguage(o)||(o="plaintext"),g.innerHTML=window.hljs.highlight(g.textContent,{language:o,ignoreIllegals:!0}).value,g.classList.add("hljs"),!!y.lineNumber){g.classList.add("vditor-linenumber");var C=g.querySelector(".vditor-linenumber__temp");C||(C=document.createElement("div"),C.className="vditor-linenumber__temp",g.insertAdjacentElement("beforeend",C));var _=getComputedStyle(g).whiteSpace,D=!1;(_==="pre-wrap"||_==="pre-line")&&(D=!0);var M="",P=g.textContent.split(/\r\n|\r|\n/g);P.pop(),P.map(function(V){var z="";D&&(C.textContent=V||` `,z=' style="height:'.concat(C.getBoundingClientRect().height,'px"')),M+="<span".concat(z,"></span>")}),C.style.display="none",M='<span class="vditor-linenumber__rows">'.concat(M,"</span>"),g.insertAdjacentHTML("beforeend",M)}}})})})}}},11:(Z,E,L)=>{L.d(E,{K:()=>m});var x=L(145),A=L(413),c=L(840),l={},y=function(f,v){var w=f.transform(v),b=Object.keys(w.features).filter(function(D){return!l[D]});b.forEach(function(D){l[D]=!0});var g=f.getAssets(b),o=g.styles,C=g.scripts,_=window.markmap;return o&&_.loadCSS(o),C&&_.loadJS(C),w},p=function(f,v){var w=window.markmap,b=w.Transformer,g=w.Markmap,o=w.deriveOptions;w.globalCSS;var C=new b;f.innerHTML='<svg style="width:100%"></svg>';var _=f.firstChild,D=g.create(_,null),M=y(C,v),P=M.root,V=M.frontmatter,z=V?.markmap,$=o(z);D.setData(P,$),D.fit()},m=function(f,v){f===void 0&&(f=document),v===void 0&&(v=x.g.CDN);var w=c.markmapRenderAdapter.getElements(f);w.length!==0&&(0,A.G)("".concat(v,"/dist/js/markmap/markmap.min.js"),"vditorMarkerScript").then(function(){w.forEach(function(b){var g=c.markmapRenderAdapter.getCode(b);if(!(b.getAttribute("data-processed")==="true"||g.trim()==="")){var o=document.createElement("div");o.className="language-markmap",b.parentNode.appendChild(o),p(o,g),b.parentNode.childNodes[0].nodeName=="CODE"&&b.parentNode.removeChild(b.parentNode.childNodes[0])}})})}},472:(Z,E,L)=>{L.d(E,{H:()=>p});var x=L(145),A=L(413),c=L(290),l=L(105),y=L(840),p=function(m,f){m===void 0&&(m=document);var v=y.mathRenderAdapter.getElements(m);if(v.length!==0){var w={cdn:x.g.CDN,math:{engine:"KaTeX",inlineDigit:!1,macros:{}}};if(f&&f.math&&(f.math=Object.assign({},w.math,f.math)),f=Object.assign({},w,f),f.math.engine==="KaTeX")(0,c.c)("".concat(f.cdn,"/dist/js/katex/katex.min.css?v=0.16.9"),"vditorKatexStyle"),(0,A.G)("".concat(f.cdn,"/dist/js/katex/katex.min.js?v=0.16.9"),"vditorKatexScript").then(function(){(0,A.G)("".concat(f.cdn,"/dist/js/katex/mhchem.min.js?v=0.16.9"),"vditorKatexChemScript").then(function(){v.forEach(function(o){if(!(o.parentElement.classList.contains("vditor-wysiwyg__pre")||o.parentElement.classList.contains("vditor-ir__marker--pre"))&&!o.getAttribute("data-math")){var C=(0,l.X)(y.mathRenderAdapter.getCode(o));o.setAttribute("data-math",C);try{o.innerHTML=katex.renderToString(C,{displayMode:o.tagName==="DIV",output:"html",macros:f.math.macros})}catch(_){o.innerHTML=_.message,o.className="language-math vditor-reset--error"}o.addEventListener("copy",function(_){_.stopPropagation(),_.preventDefault();var D=_.currentTarget.closest(".language-math");_.clipboardData.setData("text/html",D.innerHTML),_.clipboardData.setData("text/plain",D.getAttribute("data-math"))})}})})});else if(f.math.engine==="MathJax"){var b=function(o){if(o.length!==0){var C=0,_=o[o.length-1],D=function(){var M=o[C++];M===_?M():M(D)};D()}};window.MathJax||(window.MathJax={loader:{paths:{mathjax:"".concat(f.cdn,"/dist/js/mathjax")}},startup:{typeset:!1},tex:{macros:f.math.macros}},Object.assign(window.MathJax,f.math.mathJaxOptions)),(0,A.J)("".concat(f.cdn,"/dist/js/mathjax/tex-svg-full.js"),"protyleMathJaxScript");var g=function(o,C){var _=(0,l.X)(o.textContent).trim(),D=window.MathJax.getMetricsFor(o);D.display=o.tagName==="DIV",window.MathJax.tex2svgPromi