filesbox/web/dist/69123.4e899985.async.js

139 lines
835 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
var ml=Object.defineProperty;var Nt=Object.assign;var mi=(Xe,ye,o)=>(typeof ye!="symbol"&&(ye+=""),ye in Xe?ml(Xe,ye,{enumerable:!0,configurable:!0,writable:!0,value:o}):Xe[ye]=o),_o=(Xe,ye,o)=>{if(!ye.has(Xe))throw TypeError("Cannot "+o)},Qe=(Xe,ye,o)=>(_o(Xe,ye,"read from private field"),o?o.call(Xe):ye.get(Xe)),Cn=(Xe,ye,o,l)=>(_o(Xe,ye,"write to private field"),l?l.call(Xe,o):ye.set(Xe,o),o),yn=(Xe,ye,o)=>(_o(Xe,ye,"access private method"),o),el=(Xe,ye,o)=>new Promise((l,f)=>{var p=S=>{try{a(o.next(S))}catch(m){f(m)}},d=S=>{try{a(o.throw(S))}catch(m){f(m)}},a=S=>S.done?l(S.value):Promise.resolve(S.value).then(p,d);a((o=o.apply(Xe,ye)).next())});(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[69123],{1065:function(Xe,ye,o){"use strict";o.d(ye,{TK:function(){return d},ys:function(){return v},Mb:function(){return m},eC:function(){return V},Gn:function(){return qt}});var l=o(74405),f=o(30111),p=o(16888);class d{constructor(P,Y,he){this.state=P,this.pos=Y,this.explicit=he,this.abortListeners=[]}tokenBefore(P){let Y=(0,p.qz)(this.state).resolveInner(this.pos,-1);for(;Y&&P.indexOf(Y.name)<0;)Y=Y.parent;return Y?{from:Y.from,to:this.pos,text:this.state.sliceDoc(Y.from,this.pos),type:Y.type}:null}matchBefore(P){let Y=this.state.doc.lineAt(this.pos),he=Math.max(Y.from,this.pos-250),le=Y.text.slice(he-Y.from,this.pos-Y.from),je=le.search(w(P,!1));return je<0?null:{from:he+je,to:this.pos,text:le.slice(je)}}get aborted(){return this.abortListeners==null}addEventListener(P,Y){P=="abort"&&this.abortListeners&&this.abortListeners.push(Y)}}function a(F){let P=Object.keys(F).join(""),Y=/\w/.test(P);return Y&&(P=P.replace(/\w/g,"")),`[${Y?"\\w":""}${P.replace(/[^\w\s]/g,"\\$&")}]`}function S(F){let P=Object.create(null),Y=Object.create(null);for(let{label:le}of F){P[le[0]]=!0;for(let je=1;je<le.length;je++)Y[le[je]]=!0}let he=a(P)+a(Y)+"*$";return[new RegExp("^"+he),new RegExp(he)]}function m(F){let P=F.map(le=>typeof le=="string"?{label:le}:le),[Y,he]=P.every(le=>/^\w+$/.test(le.label))?[/\w*$/,/\w+$/]:S(P);return le=>{let je=le.matchBefore(he);return je||le.explicit?{from:je?je.from:le.pos,options:P,validFor:Y}:null}}function x(F,P){return Y=>{for(let he=syntaxTree(Y.state).resolveInner(Y.pos,-1);he;he=he.parent){if(F.indexOf(he.name)>-1)return P(Y);if(he.type.isTop)break}return null}}function V(F,P){return Y=>{for(let he=(0,p.qz)(Y.state).resolveInner(Y.pos,-1);he;he=he.parent){if(F.indexOf(he.name)>-1)return null;if(he.type.isTop)break}return P(Y)}}class U{constructor(P,Y,he,le){this.completion=P,this.source=Y,this.match=he,this.score=le}}function te(F){return F.selection.main.from}function w(F,P){var Y;let{source:he}=F,le=P&&he[0]!="^",je=he[he.length-1]!="$";return!le&&!je?F:new RegExp(`${le?"^":""}(?:${he})${je?"$":""}`,(Y=F.flags)!==null&&Y!==void 0?Y:F.ignoreCase?"i":"")}const ce=l.q6.define();function N(F,P,Y,he){let{main:le}=F.selection,je=Y-le.from,We=he-le.from;return Object.assign(Object.assign({},F.changeByRange(et=>et!=le&&Y!=he&&F.sliceDoc(et.from+je,et.from+We)!=F.sliceDoc(Y,he)?{range:et}:{changes:{from:et.from+je,to:he==le.from?et.to:et.from+We,insert:P},range:l.jT.cursor(et.from+je+P.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const xe=new WeakMap;function be(F){if(!Array.isArray(F))return F;let P=xe.get(F);return P||xe.set(F,P=m(F)),P}const ne=l.Py.define(),me=l.Py.define();class ke{constructor(P){this.pattern=P,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let Y=0;Y<P.length;){let he=(0,l.gm)(P,Y),le=(0,l.nZ)(he);this.chars.push(he);let je=P.slice(Y,Y+le),We=je.toUpperCase();this.folded.push((0,l.gm)(We==je?je.toLowerCase():We,0)),Y+=le}this.astral=P.length!=this.chars.length}ret(P,Y){return this.score=P,this.matched=Y,!0}match(P){if(this.pattern.length==0)return this.ret(-100,[]);if(P.length<this.pattern.length)return!1;let{chars:Y,folded:he,any:le,precise:je,byWord:We}=this;if(Y.length==1){let kt=(0,l.gm)(P,0),Dt=(0,l.nZ)(kt),un=Dt==P.length?0:-100;if(kt!=Y[0])if(kt==he[0])un+=-200;else return!1;return this.r
\${}
} catch (\${error}) {
\${}
}`,{label:"try",detail:"/ catch block",type:"keyword"}),(0,q.Gn)("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,q.Gn)(`if (\${}) {
\${}
} else {
\${}
}`,{label:"if",detail:"/ else block",type:"keyword"}),(0,q.Gn)(`class \${name} {
constructor(\${params}) {
\${}
}
}`,{label:"class",detail:"definition",type:"keyword"}),(0,q.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,q.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Ke=Se.concat([(0,q.Gn)("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),(0,q.Gn)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),(0,q.Gn)("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ot=new K.hr,mt=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function ut(Oe){return(Ge,it)=>{let Ye=Ge.node.getChild("VariableDefinition");return Ye&&it(Ye,Oe),!0}}const Vt=["FunctionDeclaration"],zt={FunctionDeclaration:ut("function"),ClassDeclaration:ut("class"),ClassExpression:()=>!0,EnumDeclaration:ut("constant"),TypeAliasDeclaration:ut("type"),NamespaceDeclaration:ut("namespace"),VariableDefinition(Oe,Ge){Oe.matchContext(Vt)||Ge(Oe,"variable")},TypeDefinition(Oe,Ge){Ge(Oe,"type")},__proto__:null};function It(Oe,Ge){let it=ot.get(Ge);if(it)return it;let Ye=[],Pt=!0;function qt(Tt,Ht){let Gt=Oe.sliceString(Tt.from,Tt.to);Ye.push({label:Gt,type:Ht})}return Ge.cursor(K.vj.IncludeAnonymous).iterate(Tt=>{if(Pt)Pt=!1;else if(Tt.name){let Ht=zt[Tt.name];if(Ht&&Ht(Tt,qt)||mt.has(Tt.name))return!1}else if(Tt.to-Tt.from>8192){for(let Ht of It(Oe,Tt.node))Ye.push(Ht);return!1}}),ot.set(Ge,Ye),Ye}const sn=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,on=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function Xt(Oe){let Ge=(0,I.qz)(Oe.state).resolveInner(Oe.pos,-1);if(on.indexOf(Ge.name)>-1)return null;let it=Ge.name=="VariableName"||Ge.to-Ge.from<20&&sn.test(Oe.state.sliceDoc(Ge.from,Ge.to));if(!it&&!Oe.explicit)return null;let Ye=[];for(let Pt=Ge;Pt;Pt=Pt.parent)mt.has(Pt.name)&&(Ye=Ye.concat(It(Oe.state.doc,Pt)));return{options:Ye,from:it?Ge.from:Oe.pos,validFor:sn}}function $t(Oe,Ge,it){var Ye;let Pt=[];for(;;){let qt=Ge.firstChild,Tt;if((qt==null?void 0:qt.name)=="VariableName")return Pt.push(Oe(qt)),{path:Pt.reverse(),name:it};if((qt==null?void 0:qt.name)=="MemberExpression"&&((Ye=Tt=qt.lastChild)===null||Ye===void 0?void 0:Ye.name)=="PropertyName")Pt.push(Oe(Tt)),Ge=qt;else return null}}function Ve(Oe){let Ge=Ye=>Oe.state.doc.sliceString(Ye.from,Ye.to),it=(0,I.qz)(Oe.state).resolveInner(Oe.pos,-1);return it.name=="PropertyName"?$t(Ge,it.parent,Ge(it)):(it.name=="."||it.name=="?.")&&it.parent.name=="MemberExpression"?$t(Ge,it.parent,""):on.indexOf(it.name)>-1?null:it.name=="VariableName"||it.to-it.from<20&&sn.test(Ge(it))?{path:[],name:Ge(it)}:it.name=="MemberExpression"?$t(Ge,it,""):Oe.explicit?{path:[],name:""}:null}function A(Oe,Ge){let it=[],Ye=new Set;for(let Pt=0;;Pt++){for(let Tt of(Object.getOwnPropertyNames||Object.keys)(Oe)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(Tt)||Ye.has(Tt))continue;Ye.add(Tt);let Ht;try{Ht=Oe[Tt]}catch(Gt){continue}it.push({label:Tt,type:typeof Ht=="function"?/^[A-Z]/.test(Tt)?"class":Ge?"function":"method":Ge?"variable":"property",boost:-Pt})}let qt=Object.getPrototypeOf(Oe);if(!qt)return it;Oe=qt}}function D(Oe){let Ge=new Map;return it=>{let Ye=Ve(it);if(!Ye)return null;let Pt=Oe;for(let Tt of Ye.path)if(Pt=Pt[Tt],!Pt)return null;let qt=Ge.get(Pt);return qt||Ge.set(Pt,qt=A(Pt,!Ye.path.length)),{from:it.pos-Ye.name.length,options:qt,validFor:sn}}}const oe=I.qp.define({name:"javascript",parser:$.configure({props:[I.uj.add({IfStatement:(0,I.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,I.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:I.ze,SwitchBody:Oe=>{let Ge=Oe.textAfter,it=/^\s*\}/.test(Ge),Ye=/^\s*(case|default)\b/.test(Ge);return Oe.baseIndent+(it?0:Ye?1:2)*Oe.unit},Block:(0,I.vw)({closing:"}"}),ArrowFunction:Oe=>Oe.baseIndent+Oe.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,I.tC)({exce
`+C.scrub(),Ae=this.advance(ee);return Ae>-1&&Ae<ee.length?this.complete(g,j,Ae):!1}finish(g,C){return(this.stage==2||this.stage==3)&&N(C.content,this.pos)==C.content.length?this.complete(g,C,C.content.length):!1}complete(g,C,j){return g.addLeafElement(C,$t(x.LinkReference,this.start,this.start+j,this.elts)),!0}nextStage(g){return g?(this.pos=g.to-this.start,this.elts.push(g),this.stage++,!0):(g===!1&&(this.stage=-1),!1)}advance(g){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(nn(g,this.pos,this.start,!0)))return-1;if(g.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push($t(x.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(Yt(g,N(g,this.pos),this.start)))return-1}else if(this.stage==2){let C=N(g,this.pos),j=0;if(C>this.pos){let ee=Bt(g,C,this.start);if(ee){let Ae=I(g,ee.to-this.start);Ae>0&&(this.nextStage(ee),j=Ae)}}return j||(j=I(g,this.pos)),j>0&&j<g.length?j:-1}else return I(g,this.pos)}}}function I(O,g){for(;g<O.length;g++){let C=O.charCodeAt(g);if(C==10)break;if(!ce(C))return-1}return g}class H{nextLine(g,C,j){let ee=C.depth<g.stack.length?-1:Ee(C),Ae=C.next;if(ee<0)return!1;let _e=$t(x.HeaderMark,g.lineStart+C.pos,g.lineStart+ee);return g.nextLine(),g.addLeafElement(j,$t(Ae==61?x.SetextHeading1:x.SetextHeading2,j.start,g.prevLineEnd(),[...g.parser.parseInline(j.content,j.start),_e])),!0}finish(){return!1}}const W={LinkReference(O,g){return g.content.charCodeAt(0)==91?new $(g):null},SetextHeading(){return new H}},q=[(O,g)=>Ce(g)>=0,(O,g)=>be(g)>=0,(O,g)=>ne(g)>=0,(O,g)=>re(g,O,!0)>=0,(O,g)=>ae(g,O,!0)>=0,(O,g)=>me(g,O,!0)>=0,(O,g)=>lt(g,O,!0)>=0],K={text:"",end:0};class Se{constructor(g,C,j,ee){this.parser=g,this.input=C,this.ranges=ee,this.line=new U,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=ee[ee.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=ee[0].from,this.block=m.create(x.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=j.length?new Le(j,C):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:g}=this;for(;;){for(let j=0;;){let ee=g.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;j<g.markers.length&&(!ee||g.markers[j].from<ee.end);){let Ae=g.markers[j++];this.addNode(Ae.type,Ae.from,Ae.to)}if(!ee)break;this.finishContext()}if(g.pos<g.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(g.basePos))return null;e:for(;;){for(let j of this.parser.blockParsers)if(j){let ee=j(this,g);if(ee!=!1){if(ee==!0)return null;g.forward();continue e}}break}let C=new V(this.lineStart+g.pos,g.text.slice(g.pos));for(let j of this.parser.leafBlockParsers)if(j){let ee=j(this,C);ee&&C.parsers.push(ee)}e:for(;this.nextLine()&&g.pos!=g.text.length;){if(g.indent<g.baseIndent+4){for(let j of this.parser.endLeafBlock)if(j(this,g,C))break e}for(let j of C.parsers)if(j.nextLine(this,g,C))return null;C.content+=`
`+g.scrub();for(let j of g.markers)C.marks.push(j)}return this.finishLeaf(C),null}stopAt(g){if(this.stoppedAt!=null&&this.stoppedAt<g)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=g}reuseFragment(g){if(!this.fragments.moveTo(this.absoluteLineStart+g,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let C=this.fragments.takeNodes(this);return C?(this.absoluteLineStart+=C,this.lineStart=ze(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(g=this.depth-1){return this.parser.nodeSet.types[this.stack[g].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(g){let C=K;if(C.end=g,g>=this.to)C.text="";else if(C.text=this.lineChunkAt(g),C.end+=C.text.length,this.ranges.length>1){let j=this.absoluteLineStart,ee=this.rangeI;for(;this.ranges[ee].to<C.end;){ee++;let Ae=this.ranges[ee].from,_e=this.lineChunkAt(Ae);C.end=Ae+_e.length,C.text=C.text.slice(0,this.ranges[ee-1].to-j)+_e,j=C.end-C.text.length}}return C}readLine(){let{line:g}=this,{text:C,end:j}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=j,g.reset(C);g.depth<this.stack.length;g.depth++){let ee=this.stack[g.depth],Ae=this.parser.skipContextMarkup[ee.type];if(!Ae)throw new Error("Unhandled block context "+x[ee.type]);if(!Ae(ee,this,g))break;g.forward()}}lineChunkAt(g){let C=this.input.chunk(g),j;if(this.input.lineChunks)j=C==`
`?"":C;else{let ee=C.indexOf(`
`);j=ee<0?C:C.slice(0,ee)}return g+j.length>this.to?j.slice(0,this.to-g):j}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(g,C,j=0){this.block=m.create(g,j,this.lineStart+C,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(g,C,j=0){this.startContext(this.parser.getNodeType(g),C,j)}addNode(g,C,j){typeof g=="number"&&(g=new a.mp(this.parser.nodeSet.types[g],It,It,(j!=null?j:this.prevLineEnd())-C)),this.block.addChild(g,C-this.block.from)}addElement(g){this.block.addChild(g.toTree(this.parser.nodeSet),g.from-this.block.from)}addLeafElement(g,C){this.addNode(this.buffer.writeElements(tn(C.children,g.marks),-C.from).finish(C.type,C.to-C.from),C.from)}finishContext(){let g=this.stack.pop(),C=this.stack[this.stack.length-1];C.addChild(g.toTree(this.parser.nodeSet),g.from-C.from),this.block=C}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(g){return this.ranges.length>1?Ke(this.ranges,0,g.topNode,this.ranges[0].from,this.reusePlaceholders):g}finishLeaf(g){for(let j of g.parsers)if(j.finish(this,g))return;let C=tn(this.parser.parseInline(g.content,g.start),g.marks);this.addNode(this.buffer.writeElements(C,-g.start).finish(x.Paragraph,g.content.length),g.start)}elt(g,C,j,ee){return typeof g=="string"?$t(this.parser.getNodeType(g),C,j,ee):new Xt(g,C)}get buffer(){return new sn(this.parser.nodeSet)}}function Ke(O,g,C,j,ee){let Ae=O[g].to,_e=[],st=[],ht=C.from+j;function kt(Dt,un){for(;un?Dt>=Ae:Dt>Ae;){let Ft=O[g+1].from-Ae;j+=Ft,Dt+=Ft,g++,Ae=O[g].to}}for(let Dt=C.firstChild;Dt;Dt=Dt.nextSibling){kt(Dt.from+j,!0);let un=Dt.from+j,Ft,$n=ee.get(Dt.tree);$n?Ft=$n:Dt.to+j>Ae?(Ft=Ke(O,g,Dt,j,ee),kt(Dt.to+j,!1)):Ft=Dt.toTree(),_e.push(Ft),st.push(un-ht)}return kt(C.to+j,!1),new a.mp(C.type,_e,st,C.to+j-ht,C.tree?C.tree.propValues:void 0)}class ot extends a._b{constructor(g,C,j,ee,Ae,_e,st,ht,kt){super();this.nodeSet=g,this.blockParsers=C,this.leafBlockParsers=j,this.blockNames=ee,this.endLeafBlock=Ae,this.skipContextMarkup=_e,this.inlineParsers=st,this.inlineNames=ht,this.wrappers=kt,this.nodeTypes=Object.create(null);for(let Dt of g.types)this.nodeTypes[Dt.name]=Dt.id}createParse(g,C,j){let ee=new Se(this,g,C,j);for(let Ae of this.wrappers)ee=Ae(ee,g,C,j);return ee}configure(g){let C=ut(g);if(!C)return this;let{nodeSet:j,skipContextMarkup:ee}=this,Ae=this.blockParsers.slice(),_e=this.leafBlockParsers.slice(),st=this.blockNames.slice(),ht=this.inlineParsers.slice(),kt=this.inlineNames.slice(),Dt=this.endLeafBlock.slice(),un=this.wrappers;if(mt(C.defineNodes)){ee=Object.assign({},ee);let Ft=j.types.slice(),$n;for(let Wn of C.defineNodes){let{name:Mn,block:ti,composite:J,style:k}=typeof Wn=="string"?{name:Wn}:Wn;if(Ft.some(ve=>ve.name==Mn))continue;J&&(ee[Ft.length]=(ve,Me,Be)=>J(Me,Be,ve.value));let L=Ft.length,se=J?["Block","BlockContext"]:ti?L>=x.ATXHeading1&&L<=x.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;Ft.push(a.Jq.define({id:L,name:Mn,props:se&&[[a.md.group,se]]})),k&&($n||($n={}),Array.isArray(k)||k instanceof S.Vp?$n[Mn]=k:Object.assign($n,k))}j=new a.Lj(Ft),$n&&(j=j.extend((0,S.Gv)($n)))}if(mt(C.props)&&(j=j.extend(...C.props)),mt(C.remove))for(let Ft of C.remove){let $n=this.blockNames.indexOf(Ft),Wn=this.inlineNames.indexOf(Ft);$n>-1&&(Ae[$n]=_e[$n]=void 0),Wn>-1&&(ht[Wn]=void 0)}if(mt(C.parseBlock))for(let Ft of C.parseBlock){let $n=st.indexOf(Ft.name);if($n>-1)Ae[$n]=Ft.parse,_e[$n]=Ft.leaf;else{let Wn=Ft.before?Vt(st,Ft.before):Ft.after?Vt(st,Ft.after)+1:st.length-1;Ae.splice(Wn,0,Ft.parse),_e.splice(Wn,0,Ft.leaf),st.splice(Wn,0,Ft.name)}Ft.endLeaf&&Dt.push(Ft.endLeaf)}if(mt(C.parseInline))for(let Ft of C.parseInline){let $n=kt.indexOf(Ft.name);if($n>-1)ht[$n]=Ft.parse;else{let Wn=Ft.before?Vt(kt,Ft.before):Ft.after?Vt(kt,Ft.after)+1:kt.length-1;ht.splice(Wn,0,Ft.parse),kt.splice(Wn,0,Ft.name)}}return C.wrap&&(un=un.concat(C.wrap)),new ot(j,Ae,_e,st,Dt,ee,ht,kt,un)}getNodeType(g){let C=this.nodeTypes[g];if(C==null)throw new Ra
`;)Ae--;this.fragmentEnd=Ae?Ae-1:0}let j=this.cursor;j||(j=this.cursor=this.fragment.tree.cursor(),j.firstChild());let ee=g+this.fragment.offset;for(;j.to<=ee;)if(!j.parent())return!1;for(;;){if(j.from>=ee)return this.fragment.from<=C;if(!j.childAfter(ee))return!1}}matches(g){let C=this.cursor.tree;return C&&C.prop(a.md.contextHash)==g}takeNodes(g){let C=this.cursor,j=this.fragment.offset,ee=this.fragmentEnd-(this.fragment.openEnd?1:0),Ae=g.absoluteLineStart,_e=Ae,st=g.block.children.length,ht=_e,kt=st;for(;;){if(C.to-j>ee){if(C.type.isAnonymous&&C.firstChild())continue;break}let Dt=ze(C.from-j,g.ranges);if(C.to-j<=g.ranges[g.rangeI].to)g.addNode(C.tree,Dt);else{let un=new a.mp(g.parser.nodeSet.types[x.Paragraph],[],[],0,g.block.hashProp);g.reusePlaceholders.set(un,C.tree),g.addNode(un,Dt)}if(C.type.is("Block")&&(gn.indexOf(C.type.id)<0?(_e=C.to-j,st=g.block.children.length):(_e=ht,st=kt,ht=C.to-j,kt=g.block.children.length)),!C.nextSibling())break}for(;g.block.children.length>st;)g.block.children.pop(),g.block.positions.pop();return _e-Ae}}function ze(O,g){let C=O;for(let j=1;j<g.length;j++){let ee=g[j-1].to,Ae=g[j].from;ee<O&&(C-=Ae-ee)}return C}const Ot=(0,S.Gv)({"Blockquote/...":S.pJ.quote,HorizontalRule:S.pJ.contentSeparator,"ATXHeading1/... SetextHeading1/...":S.pJ.heading1,"ATXHeading2/... SetextHeading2/...":S.pJ.heading2,"ATXHeading3/...":S.pJ.heading3,"ATXHeading4/...":S.pJ.heading4,"ATXHeading5/...":S.pJ.heading5,"ATXHeading6/...":S.pJ.heading6,"Comment CommentBlock":S.pJ.comment,Escape:S.pJ.escape,Entity:S.pJ.character,"Emphasis/...":S.pJ.emphasis,"StrongEmphasis/...":S.pJ.strong,"Link/... Image/...":S.pJ.link,"OrderedList/... BulletList/...":S.pJ.list,"BlockQuote/...":S.pJ.quote,"InlineCode CodeText":S.pJ.monospace,"URL Autolink":S.pJ.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":S.pJ.processingInstruction,"CodeInfo LinkLabel":S.pJ.labelName,LinkTitle:S.pJ.string,Paragraph:S.pJ.content}),yt=new ot(new a.Lj(zt).extend(Ot),Object.keys(Ie).map(O=>Ie[O]),Object.keys(Ie).map(O=>W[O]),Object.keys(Ie),q,w,Object.keys(rt).map(O=>rt[O]),Object.keys(rt),[]);function Oe(O,g,C){let j=[];for(let ee=O.firstChild,Ae=g;;ee=ee.nextSibling){let _e=ee?ee.from:C;if(_e>Ae&&j.push({from:Ae,to:_e}),!ee)break;Ae=ee.to}return j}function Ge(O){let{codeParser:g,htmlParser:C}=O;return{wrap:(0,a.FE)((ee,Ae)=>{let _e=ee.type.id;if(g&&(_e==x.CodeBlock||_e==x.FencedCode)){let st="";if(_e==x.FencedCode){let kt=ee.node.getChild(x.CodeInfo);kt&&(st=Ae.read(kt.from,kt.to))}let ht=g(st);if(ht)return{parser:ht,overlay:kt=>kt.type.id==x.CodeText}}else if(C&&(_e==x.HTMLBlock||_e==x.HTMLTag))return{parser:C,overlay:Oe(ee.node,ee.from,ee.to)};return null})}}const it={resolve:"Strikethrough",mark:"StrikethroughMark"},Ye={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":S.pJ.strikethrough}},{name:"StrikethroughMark",style:S.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(O,g,C){if(g!=126||O.char(C+1)!=126||O.char(C+2)==126)return-1;let j=O.slice(C-1,C),ee=O.slice(C+2,C+3),Ae=/\s|^$/.test(j),_e=/\s|^$/.test(ee),st=Ne.test(j),ht=Ne.test(ee);return O.addDelimiter(it,C,C+2,!_e&&(!ht||Ae||st),!Ae&&(!st||_e||ht))},after:"Emphasis"}]};function Pt(O,g,C=0,j,ee=0){let Ae=0,_e=!0,st=-1,ht=-1,kt=!1,Dt=()=>{j.push(O.elt("TableCell",ee+st,ee+ht,O.parser.parseInline(g.slice(st,ht),ee+st)))};for(let un=C;un<g.length;un++){let Ft=g.charCodeAt(un);Ft==124&&!kt?((!_e||st>-1)&&Ae++,_e=!1,j&&(st>-1&&Dt(),j.push(O.elt("TableDelimiter",un+ee,un+ee+1))),st=ht=-1):(kt||Ft!=32&&Ft!=9)&&(st<0&&(st=un),ht=un+1),kt=!kt&&Ft==92}return st>-1&&(Ae++,j&&Dt()),Ae}function qt(O,g){for(let C=g;C<O.length;C++){let j=O.charCodeAt(C);if(j==124)return!0;j==92&&C++}return!1}const Tt=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class Ht{constructor(){this.rows=null}nextLine(g,C,j){if(this.rows==null){this.rows=!1;let ee;if((C.next==45||C.next==58||C.next==124)&&Tt.test(ee=C.text.slice(C.pos))){let Ae=[];Pt(g,j.content,0,Ae,j.start)==Pt(g,ee,C.pos)&&(this.rows=[g.elt("TableHeader",j.start,j.start+j.content.length,Ae),g.elt("TableDeli
`&&(L="");else{let se=L.indexOf(`
`);se>-1&&(L=L.slice(0,se))}return k+L.length<=this.to?L:L.slice(0,this.to-k)}nextLine(){let k=this.parsedPos,L=this.lineAfter(k),se=k+L.length;for(let ve=this.rangeIndex;;){let Me=this.ranges[ve].to;if(Me>=se||(L=L.slice(0,Me-(se-L.length)),ve++,ve==this.ranges.length))break;let Be=this.ranges[ve].from,Ct=this.lineAfter(Be);L+=Ct,se=Be+Ct.length}return{line:L,end:se}}skipGapsTo(k,L,se){for(;;){let ve=this.ranges[this.rangeIndex].to,Me=k+L;if(se>0?ve>Me:ve>=Me)break;L+=this.ranges[++this.rangeIndex].from-ve}return L}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(k,L,se,ve,Me){if(this.ranges.length>1){Me=this.skipGapsTo(L,Me,1),L+=Me;let Be=this.chunk.length;Me=this.skipGapsTo(se,Me,-1),se+=Me,ve+=this.chunk.length-Be}return this.chunk.push(k,L,se,ve),Me}parseLine(k){let{line:L,end:se}=this.nextLine(),ve=0,{streamParser:Me}=this.lang,Be=new Pe(L,k?k.state.tabSize:4,k?Ie(k.state):2);if(Be.eol())Me.blankLine(this.state,Be.indentUnit);else for(;!Be.eol();){let Ct=je(Me.token,Be,this.state);if(Ct&&(ve=this.emitToken(this.lang.tokenTable.resolve(Ct),this.parsedPos+Be.start,this.parsedPos+Be.pos,4,ve)),Be.start>1e4)break}this.parsedPos=se,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let k=l.mp.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:at,topID:0,maxBufferLength:2048,reused:this.chunkReused});k=new l.mp(k.type,k.children,k.positions,k.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(k),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new l.mp(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function je(J,k,L){k.start=k.pos;for(let se=0;se<10;se++){let ve=J(k,L);if(k.pos>k.start)return ve}throw new Error("Stream parser failed to advance stream.")}const We=Object.create(null),et=[l.Jq.none],at=new l.Lj(et),O=[],g=Object.create(null),C=Object.create(null);for(let[J,k]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])C[J]=_e(We,k);class j{constructor(k){this.extra=k,this.table=Object.assign(Object.create(null),C)}resolve(k){return k?this.table[k]||(this.table[k]=_e(this.extra,k)):0}}const ee=new j(We);function Ae(J,k){O.indexOf(J)>-1||(O.push(J),console.warn(k))}function _e(J,k){let L=[];for(let Ct of k.split(" ")){let St=[];for(let rn of Ct.split(".")){let cn=J[rn]||d.pJ[rn];cn?typeof cn=="function"?St.length?St=St.map(cn):Ae(rn,`Modifier ${rn} used at start of tag`):St.length?Ae(rn,`Tag ${rn} used as modifier`):St=Array.isArray(cn)?cn:[cn]:Ae(rn,`Unknown highlighting tag ${rn}`)}for(let rn of St)L.push(rn)}if(!L.length)return 0;let se=k.replace(/ /g,"_"),ve=se+" "+L.map(Ct=>Ct.id),Me=g[ve];if(Me)return Me.id;let Be=g[ve]=l.Jq.define({id:et.length,name:se,props:[(0,d.Gv)({[se]:L})]});return et.push(Be),Be.id}function st(J){let k=l.Jq.define({id:et.length,name:"Document",props:[m.add(()=>J)],top:!0});return et.push(k),k}function ht(J){return J.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(J)}function kt(J){for(let k=J.iter();!k.next().done;)if(ht(k.value))return!0;return!1}function Dt(J){let k=!1;return J.iterChanges((L,se,ve,Me,Be)=>{!k&&kt(Be)&&(k=!0)}),k}const un=f.r$.define({combine:J=>J.some(k=>k)});function Ft(J={}){let k=[$n];return J.alwaysIsolate&&k.push(un.of(!0)),k}const $n=p.lg.fromClass(class{constructor(J){this.always=J.state.facet(un)||J.textDirection!=p.Nm.LTR||J.state.facet(p.tk.perLineTextDirection),this.hasRTL=!this.always&&kt(J.state.doc),this.tree=ce(J.state),this.decorations=this.always||this.hasRTL?Wn(J,this.tree,this.always):p.p.none}update(J){let k=J.state.facet(un)||J.view.textDirection!=p.Nm
`){[h,c]=te(this,h,c);let Q="";for(let X=0,M=0;X<=c&&M<this.text.length;M++){let fe=this.text[M],Pe=X+fe.length;X>h&&M&&(Q+=v),h<Pe&&c>X&&(Q+=fe.slice(Math.max(0,h-X),c-X)),X=Pe+1}return Q}flatten(h){for(let c of this.text)h.push(c)}scanIdentical(){return 0}static split(h,c){let v=[],Q=-1;for(let X of h)v.push(X),Q+=X.length+1,v.length==32&&(c.push(new f(v,Q)),v=[],Q=-1);return Q>-1&&c.push(new f(v,Q)),c}}class p extends l{constructor(h,c){super();this.children=h,this.length=c,this.lines=0;for(let v of h)this.lines+=v.lines}lineInner(h,c,v,Q){for(let X=0;;X++){let M=this.children[X],fe=Q+M.length,Pe=v+M.lines-1;if((c?Pe:fe)>=h)return M.lineInner(h,c,v,Q);Q=fe+1,v=Pe+1}}decompose(h,c,v,Q){for(let X=0,M=0;M<=c&&X<this.children.length;X++){let fe=this.children[X],Pe=M+fe.length;if(h<=Pe&&c>=M){let Fe=Q&((M<=h?1:0)|(Pe>=c?2:0));M>=h&&Pe<=c&&!Fe?v.push(fe):fe.decompose(h-M,c-M,v,Fe)}M=Pe+1}}replace(h,c,v){if([h,c]=te(this,h,c),v.lines<this.lines)for(let Q=0,X=0;Q<this.children.length;Q++){let M=this.children[Q],fe=X+M.length;if(h>=X&&c<=fe){let Pe=M.replace(h-X,c-X,v),Fe=this.lines-M.lines+Pe.lines;if(Pe.lines<Fe>>5-1&&Pe.lines>Fe>>5+1){let pt=this.children.slice();return pt[Q]=Pe,new p(pt,this.length-(c-h)+v.length)}return super.replace(X,fe,Pe)}X=fe+1}return super.replace(h,c,v)}sliceString(h,c=this.length,v=`
`){[h,c]=te(this,h,c);let Q="";for(let X=0,M=0;X<this.children.length&&M<=c;X++){let fe=this.children[X],Pe=M+fe.length;M>h&&X&&(Q+=v),h<Pe&&c>M&&(Q+=fe.sliceString(h-M,c-M,v)),M=Pe+1}return Q}flatten(h){for(let c of this.children)c.flatten(h)}scanIdentical(h,c){if(!(h instanceof p))return 0;let v=0,[Q,X,M,fe]=c>0?[0,0,this.children.length,h.children.length]:[this.children.length-1,h.children.length-1,-1,-1];for(;;Q+=c,X+=c){if(Q==M||X==fe)return v;let Pe=this.children[Q],Fe=h.children[X];if(Pe!=Fe)return v+Pe.scanIdentical(Fe,c);v+=Pe.length+1}}static from(h,c=h.reduce((v,Q)=>v+Q.length+1,-1)){let v=0;for(let P of h)v+=P.lines;if(v<32){let P=[];for(let Y of h)Y.flatten(P);return new f(P,c)}let Q=Math.max(32,v>>5),X=Q<<1,M=Q>>1,fe=[],Pe=0,Fe=-1,pt=[];function Zt(P){let Y;if(P.lines>X&&P instanceof p)for(let he of P.children)Zt(he);else P.lines>M&&(Pe>M||!Pe)?(F(),fe.push(P)):P instanceof f&&Pe&&(Y=pt[pt.length-1])instanceof f&&P.lines+Y.lines<=32?(Pe+=P.lines,Fe+=P.length+1,pt[pt.length-1]=new f(Y.text.concat(P.text),Y.length+1+P.length)):(Pe+P.lines>Q&&F(),Pe+=P.lines,Fe+=P.length+1,pt.push(P))}function F(){Pe!=0&&(fe.push(pt.length==1?pt[0]:p.from(pt,Fe)),Fe=-1,Pe=pt.length=0)}for(let P of h)Zt(P);return F(),fe.length==1?fe[0]:new p(fe,c)}}l.empty=new f([""],0);function d(ue){let h=-1;for(let c of ue)h+=c.length+1;return h}function a(ue,h,c=0,v=1e9){for(let Q=0,X=0,M=!0;X<ue.length&&Q<=v;X++){let fe=ue[X],Pe=Q+fe.length;Pe>=c&&(Pe>v&&(fe=fe.slice(0,v-Q)),Q<c&&(fe=fe.slice(c-Q)),M?(h[h.length-1]+=fe,M=!1):h.push(fe)),Q=Pe+1}return h}function S(ue,h,c){return a(ue,[""],h,c)}class m{constructor(h,c=1){this.dir=c,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[h],this.offsets=[c>0?1:(h instanceof f?h.text.length:h.children.length)<<1]}nextInner(h,c){for(this.done=this.lineBreak=!1;;){let v=this.nodes.length-1,Q=this.nodes[v],X=this.offsets[v],M=X>>1,fe=Q instanceof f?Q.text.length:Q.children.length;if(M==(c>0?fe:0)){if(v==0)return this.done=!0,this.value="",this;c>0&&this.offsets[v-1]++,this.nodes.pop(),this.offsets.pop()}else if((X&1)==(c>0?0:1)){if(this.offsets[v]+=c,h==0)return this.lineBreak=!0,this.value=`
`,this;h--}else if(Q instanceof f){let Pe=Q.text[M+(c<0?-1:0)];if(this.offsets[v]+=c,Pe.length>Math.max(0,h))return this.value=h==0?Pe:c>0?Pe.slice(h):Pe.slice(0,Pe.length-h),this;h-=Pe.length}else{let Pe=Q.children[M+(c<0?-1:0)];h>Pe.length?(h-=Pe.length,this.offsets[v]+=c):(c<0&&this.offsets[v]--,this.nodes.push(Pe),this.offsets.push(c>0?1:(Pe instanceof f?Pe.text.length:Pe.children.length)<<1))}}}next(h=0){return h<0&&(this.nextInner(-h,-this.dir),h=this.value.length),this.nextInner(h,this.dir)}}class x{constructor(h,c,v){this.value="",this.done=!1,this.cursor=new m(h,c>v?-1:1),this.pos=c>v?h.length:0,this.from=Math.min(c,v),this.to=Math.max(c,v)}nextInner(h,c){if(c<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;h+=Math.max(0,c<0?this.pos-this.to:this.from-this.pos);let v=c<0?this.pos-this.from:this.to-this.pos;h>v&&(h=v),v-=h;let{value:Q}=this.cursor.next(h);return this.pos+=(Q.length+h)*c,this.value=Q.length<=v?Q:c<0?Q.slice(Q.length-v):Q.slice(0,v),this.done=!this.value,this}next(h=0){return h<0?h=Math.max(h,this.from-this.pos):h>0&&(h=Math.min(h,this.to-this.pos)),this.nextInner(h,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class V{constructor(h){this.inner=h,this.afterBreak=!0,this.value="",this.done=!1}next(h=0){let{done:c,lineBreak:v,value:Q}=this.inner.next(h);return c&&this.afterBreak?(this.value="",this.afterBreak=!1):c?(this.done=!0,this.value=""):v?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=Q,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol!="undefined"&&(l.prototype[Symbol.iterator]=function(){return this.iter()},m.prototype[Symbol.iterator]=x.prototype[Symbol.iterator]=V.prototype[Symbol.iterator]=function(){return this});class U{constructor(h,c,v,Q){this.from=h,this.to=c,this.number=v,this.text=Q}get length(){return this.to-this.from}}function te(ue,h,c){return h=Math.max(0,Math.min(ue.length,h)),[h,Math.max(h,Math.min(ue.length,c))]}let w="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(ue=>ue?parseInt(ue,36):1);for(let ue=1;ue<w.length;ue++)w[ue]+=w[ue-1];function ce(ue){for(let h=1;h<w.length;h+=2)if(w[h]>ue)return w[h-1]<=ue;return!1}function N(ue){return ue>=127462&&ue<=127487}const xe=8205;function be(ue,h,c=!0,v=!0){return(c?ne:me)(ue,h,v)}function ne(ue,h,c){if(h==ue.length)return h;h&&ke(ue.charCodeAt(h))&&re(ue.charCodeAt(h-1))&&h--;let v=ae(ue,h);for(h+=Ee(v);h<ue.length;){let Q=ae(ue,h);if(v==xe||Q==xe||c&&ce(Q))h+=Ee(Q),v=Q;else if(N(Q)){let X=0,M=h-2;for(;M>=0&&N(ae(ue,M));)X++,M-=2;if(X%2==0)break;h+=2}else break}return h}function me(ue,h,c){for(;h>0;){let v=ne(ue,h-2,c);if(v<h)return v;h--}return 0}function ke(ue){return ue>=56320&&ue<57344}function re(ue){return ue>=55296&&ue<56320}function ae(ue,h){let
`}get readOnly(){return this.facet(hn)}phrase(h,...c){for(let v of this.facet(en.phrases))if(Object.prototype.hasOwnProperty.call(v,h)){h=v[h];break}return c.length&&(h=h.replace(/\$(\$|\d*)/g,(v,Q)=>{if(Q=="$")return"$";let X=+(Q||1);return!X||X>c.length?v:c[X-1]})),h}languageDataAt(h,c,v=-1){let Q=[];for(let X of this.facet(Ne))for(let M of X(this,c,v))Object.prototype.hasOwnProperty.call(M,h)&&Q.push(M[h]);return Q}charCategorizer(h){return Jt(this.languageDataAt("wordChars",h).join(""))}wordAt(h){let{text:c,from:v,length:Q}=this.doc.lineAt(h),X=this.charCategorizer(h),M=h-v,fe=h-v;for(;M>0;){let Pe=be(c,M,!1);if(X(c.slice(Pe,M))!=Ht.Word)break;M=Pe}for(;fe<Q;){let Pe=be(c,fe);if(X(c.slice(fe,Pe))!=Ht.Word)break;fe=Pe}return M==fe?null:W.range(M+v,fe+v)}}en.allowMultipleSelections=rt,en.tabSize=Se.define({combine:ue=>ue.length?ue[0]:4}),en.lineSeparator=Lt,en.readOnly=hn,en.phrases=Se.define({compare(ue,h){let c=Object.keys(ue),v=Object.keys(h);return c.length==v.length&&c.every(Q=>ue[Q]==h[Q])}}),en.languageData=Ne,en.changeFilter=Yt,en.transactionFilter=Bt,en.transactionExtender=nn,Ve.reconfigure=ze.define();function _t(ue,h,c={}){let v={};for(let Q of ue)for(let X of Object.keys(Q)){let M=Q[X],fe=v[X];if(fe===void 0)v[X]=M;else if(!(fe===M||M===void 0))if(Object.hasOwnProperty.call(c,X))v[X]=c[X](fe,M);else throw new Error("Config merge conflict for field "+X)}for(let Q in h)v[Q]===void 0&&(v[Q]=h[Q]);return v}class On{eq(h){return this==h}range(h,c=h){return dn.create(h,c,this)}}On.prototype.startSide=On.prototype.endSide=0,On.prototype.point=!1,On.prototype.mapMode=qe.TrackDel;class dn{constructor(h,c,v){this.from=h,this.to=c,this.value=v}static create(h,c,v){return new dn(h,c,v)}}function Ln(ue,h){return ue.from-h.from||ue.value.startSide-h.value.startSide}class En{constructor(h,c,v,Q){this.from=h,this.to=c,this.value=v,this.maxPoint=Q}get length(){return this.to[this.to.length-1]}findIndex(h,c,v,Q=0){let X=v?this.to:this.from;for(let M=Q,fe=X.length;;){if(M==fe)return M;let Pe=M+fe>>1,Fe=X[Pe]-h||(v?this.value[Pe].endSide:this.value[Pe].startSide)-c;if(Pe==M)return Fe>=0?M:fe;Fe>=0?fe=Pe:M=Pe+1}}between(h,c,v,Q){for(let X=this.findIndex(c,-1e9,!0),M=this.findIndex(v,1e9,!1,X);X<M;X++)if(Q(this.from[X]+h,this.to[X]+h,this.value[X])===!1)return!1}map(h,c){let v=[],Q=[],X=[],M=-1,fe=-1;for(let Pe=0;Pe<this.value.length;Pe++){let Fe=this.value[Pe],pt=this.from[Pe]+h,Zt=this.to[Pe]+h,F,P;if(pt==Zt){let Y=c.mapPos(pt,Fe.startSide,Fe.mapMode);if(Y==null||(F=P=Y,Fe.startSide!=Fe.endSide&&(P=c.mapPos(pt,Fe.endSide),P<F)))continue}else if(F=c.mapPos(pt,Fe.startSide),P=c.mapPos(Zt,Fe.endSide),F>P||F==P&&Fe.startSide>0&&Fe.endSide<=0)continue;(P-F||Fe.endSide-Fe.startSide)<0||(M<0&&(M=F),Fe.point&&(fe=Math.max(fe,P-F)),v.push(Fe),Q.push(F-M),X.push(P-M))}return{mapped:v.length?new En(Q,X,v,fe):null,pos:M}}}class vn{constructor(h,c,v,Q){this.chunkPos=h,this.chunk=c,this.nextLayer=v,this.maxPoint=Q}static create(h,c,v,Q){return new vn(h,c,v,Q)}get length(){let h=this.chunk.length-1;return h<0?0:Math.max(this.chunkEnd(h),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let h=this.nextLayer.size;for(let c of this.chunk)h+=c.value.length;return h}chunkEnd(h){return this.chunkPos[h]+this.chunk[h].length}update(h){let{add:c=[],sort:v=!1,filterFrom:Q=0,filterTo:X=this.length}=h,M=h.filter;if(c.length==0&&!M)return this;if(v&&(c=c.slice().sort(Ln)),this.isEmpty)return c.length?vn.of(c):this;let fe=new li(this,null,-1).goto(0),Pe=0,Fe=[],pt=new Dn;for(;fe.value||Pe<c.length;)if(Pe<c.length&&(fe.from-c[Pe].from||fe.startSide-c[Pe].value.startSide)>=0){let Zt=c[Pe++];pt.addInner(Zt.from,Zt.to,Zt.value)||Fe.push(Zt)}else fe.rangeIndex==1&&fe.chunkIndex<this.chunk.length&&(Pe==c.length||this.chunkEnd(fe.chunkIndex)<c[Pe].from)&&(!M||Q>this.chunkEnd(fe.chunkIndex)||X<this.chunkPos[fe.chunkIndex])&&pt.addChunk(this.chunkPos[fe.chunkIndex],this.chunk[fe.chunkIndex])?fe.nextChunk():((!M||Q>fe.to||X<fe.from||M(fe.from,fe.to,fe.value))&&(pt.addInner(fe.from,fe.to,fe.value)||Fe.push(dn.create(fe.from,fe.to,fe.value))),fe.next());ret
`,r=s.state.doc.line(r.number+(t?1:-1)),u=s.bidiSpans(r),_=s.visualLineSide(r,!t)}if(R){if(!R(G))return T}else{if(!n)return _;R=n(G)}T=_}}function Js(s,e,t){let n=s.state.charCategorizer(e),r=n(t);return u=>{let y=n(u);return r==l.D0.Space&&(r=y),r==y}}function Ks(s,e,t,n){let r=e.head,u=t?1:-1;if(r==(t?s.state.doc.length:0))return l.jT.cursor(r,e.assoc);let y=e.goalColumn,T,R=s.contentDOM.getBoundingClientRect(),_=s.coordsAtPos(r,e.assoc||-1),G=s.documentTop;if(_)y==null&&(y=_.left-R.left),T=u<0?_.top:_.bottom;else{let Ue=s.viewState.lineBlockAt(r);y==null&&(y=Math.min(R.right-R.left,s.defaultCharacterWidth*(r-Ue.from))),T=(u<0?Ue.top:Ue.bottom)+G}let we=R.left+y,Ze=n!=null?n:s.viewState.heightOracle.textHeight>>1;for(let Ue=0;;Ue+=10){let tt=T+(Ze+Ue)*u,wt=fi(s,{x:we,y:tt},!1,u);if(tt<R.top||tt>R.bottom||(u<0?wt<r:wt>r)){let gt=s.docView.coordsForChar(wt),Et=!gt||tt<gt.top?-1:1;return l.jT.cursor(wt,Et,void 0,y)}}}function Ui(s,e,t){for(;;){let n=0;for(let r of s)r.between(e-1,e+1,(u,y,T)=>{if(e>u&&e<y){let R=n||t||(e-u<y-e?-1:1);e=R<0?u:y,n=R}});if(!n)return e}}function Gi(s,e,t){let n=Ui(s.state.facet(j).map(r=>r(s)),t.from,e.head>t.from?-1:1);return n==t.from?t:l.jT.cursor(n,n<t.from?1:-1)}class _s{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,D.safari&&e.contentDOM.addEventListener("input",()=>null),D.gecko&&co(e.contentDOM.ownerDocument)}handleEvent(e){!dr(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let n=this.handlers[e];if(n){for(let r of n.observers)r(this.view,t);for(let r of n.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Fr(e),n=this.handlers,r=this.view.contentDOM;for(let u in t)if(u!="scroll"){let y=!t[u].handlers.length,T=n[u];T&&y!=!T.handlers.length&&(r.removeEventListener(u,this.handleEvent),T=null),T||r.addEventListener(u,this.handleEvent,{passive:y})}for(let u in n)u!="scroll"&&!t[u]&&r.removeEventListener(u,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&Ur.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),D.android&&D.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return D.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=eo.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||to.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,Rt(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:D.safari&&!D.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function hr(s,e){return(t,n)=>{try{return e.call(s,n,t)}catch(r){Y(t.state,r)}}}function Fr(s){let e=Object.create
`&&s.lineWrapping&&(n&&(n=l.jT.single(n.main.anchor-1,n.main.head-1)),t={from:r.from,to:r.to,insert:l.xv.of([" "])}),t){if(D.ios&&s.inputState.flushIOSKey()||D.android&&(t.from==r.from&&t.to==r.to&&t.insert.length==1&&t.insert.lines==2&&Rt(s.contentDOM,"Enter",13)||(t.from==r.from-1&&t.to==r.to&&t.insert.length==0||u==8&&t.insert.length<t.to-t.from&&t.to>r.head)&&Rt(s.contentDOM,"Backspace",8)||t.from==r.from&&t.to==r.to+1&&t.insert.length==0&&Rt(s.contentDOM,"Delete",46)))return!0;let y=t.insert.toString();s.inputState.composing>=0&&s.inputState.composing++;let T,R=()=>T||(T=So(s,t,n));return s.state.facet(Pe).some(_=>_(s,t.from,t.to,y,R))||s.dispatch(R()),!0}else if(n&&!n.main.eq(r)){let y=!1,T="select";return s.inputState.lastSelectionTime>Date.now()-50&&(s.inputState.lastSelectionOrigin=="select"&&(y=!0),T=s.inputState.lastSelectionOrigin),s.dispatch({selection:n,scrollIntoView:y,userEvent:T}),!0}else return!1}function So(s,e,t){let n,r=s.state,u=r.selection.main;if(e.from>=u.from&&e.to<=u.to&&e.to-e.from>=(u.to-u.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&s.inputState.composing<0){let T=u.from<e.from?r.sliceDoc(u.from,e.from):"",R=u.to>e.to?r.sliceDoc(e.to,u.to):"";n=r.replaceSelection(s.state.toText(T+e.insert.sliceString(0,void 0,s.state.lineBreak)+R))}else{let T=r.changes(e),R=t&&t.main.to<=T.newLength?t.main:void 0;if(r.selection.ranges.length>1&&s.inputState.composing>=0&&e.to<=u.to&&e.to>=u.to-10){let _=s.state.sliceDoc(e.from,e.to),G,we=t&&Wn(s,t.main.head);if(we){let tt=e.insert.length-(e.to-e.from);G={from:we.from,to:we.to-tt}}else G=s.state.doc.lineAt(u.head);let Ze=u.to-e.to,Ue=u.to-u.from;n=r.changeByRange(tt=>{if(tt.from==u.from&&tt.to==u.to)return{changes:T,range:R||tt.map(T)};let wt=tt.to-Ze,gt=wt-_.length;if(tt.to-tt.from!=Ue||s.state.sliceDoc(gt,wt)!=_||tt.to>=G.from&&tt.from<=G.to)return{range:tt};let Et=r.changes({from:gt,to:wt,insert:e.insert}),mn=tt.to-u.to;return{changes:Et,range:R?l.jT.range(Math.max(0,R.anchor+mn),Math.max(0,R.head+mn)):tt.map(Et)}})}else n={changes:T,selection:R&&r.selection.replaceRange(R)}}let y="input.type";return(s.composing||s.inputState.compositionPendingChange&&s.inputState.compositionEndedAt>Date.now()-50)&&(s.inputState.compositionPendingChange=!1,y+=".compose",s.inputState.compositionFirstChange&&(y+=".start",s.inputState.compositionFirstChange=!1)),r.update(n,{userEvent:y,scrollIntoView:!0})}function ko(s,e,t,n){let r=Math.min(s.length,e.length),u=0;for(;u<r&&s.charCodeAt(u)==e.charCodeAt(u);)u++;if(u==r&&s.length==e.length)return null;let y=s.length,T=e.length;for(;y>0&&T>0&&s.charCodeAt(y-1)==e.charCodeAt(T-1);)y--,T--;if(n=="end"){let R=Math.max(0,u-Math.min(y,T));t-=y+R-u}return y<u&&s.length<e.length?(u-=t<=u&&t>=y?u-t:0,T=u+(T-y),y=u):T<u&&(u-=t<=u&&t>=T?u-t:0,y=u+(y-T),T=u),{from:u,toA:y,toB:T}}function ys(s){let e=[];if(s.root.activeElement!=s.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:r,focusOffset:u}=s.observer.selectionRange;return t&&(e.push(new gs(t,n)),(r!=t||u!=n)&&e.push(new gs(r,u))),e}function Lr(s,e){if(s.length==0)return null;let t=s[0].pos,n=s.length==2?s[1].pos:t;return t>-1&&n>-1?l.jT.single(t+e,n+e):null}const wo={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},yr=D.ie&&D.ie_version<=11;class Co{constructor(e){this.view=e,this.active=!1,this.selectionRange=new nt,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(D.ie&&D.ie_version<=11||D.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),yr&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoo
-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,kr),Lo={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Ir=null;function Xo(){var s;if(Ir==null&&typeof document!="undefined"&&document.body){let e=document.body.style;Ir=((s=e.tabSize)!==null&&s!==void 0?s:e.MozTabSize)!=null}return Ir||!1}const wr=l.r$.define({combine(s){let e=(0,l.BO)(s,{render:null,specialChars:jo,addSpecialChars:null});return(e.replaceTabs=!Xo())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,kr)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,kr)),e}});function ll(s={}){return[wr.of(s),Mo()]}let Ws=null;function Mo(){return Ws||(Ws=We.fromClass(class{constructor(s){this.view=s,this.decorations=Ye.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(s.state.facet(wr)),this.decorations=this.decorator.createDeco(s)}makeDecorator(s){return new Mr({regexp:s.specialChars,decoration:(e,t,n)=>{let{doc:r}=t.state,u=codePointAt(e[0],0);if(u==9){let y=r.lineAt(n),T=t.state.tabSize,R=countColumn(y.text,T,n-y.from);return Ye.replace({widget:new Yo((T-R%T)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[u]||(this.decorationCache[u]=Ye.replace({widget:new zo(s,u)}))},boundary:s.replaceTabs?void 0:/[^]/})}update(s){let e=s.state.facet(wr);s.startState.facet(wr)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(s.view)):this.decorations=this.decorator.updateDeco(s,this.decorations)}},{decorations:s=>s.decorations}))}const Io="\u2022";function Wo(s){return s>=32?Io:s==10?"\u2424":String.fromCharCode(9216+s)}class zo extends null{constructor(e,t){super();this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=Wo(this.code),n=e.state.phrase("Control character")+" "+(Lo[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let u=document.createElement("span");return u.textContent=t,u.title=n,u.setAttribute("aria-label",n),u.className="cm-specialChar",u}ignoreEvent(){return!1}}class Yo extends null{constructor(e){super();this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const zs=null;function al(){return[zs,O.of(s=>{var e;return((e=s.plugin(zs))===null||e===void 0?void 0:e.attrs)||null})]}function hl(){return Bo}const Ys=Ye.line({class:"cm-activeLine"}),Bo=We.fromClass(class{constructor(s){this.decorations=this.getDeco(s)}update(s){(s.docChanged||s.selectionSet)&&(this.decorations=this.getDeco(s.view))}getDeco(s){let e=-1,t=[];for(let n of s.state.selection.ranges){let r=s.lineBlockAt(n.head);r.from>e&&(t.push(Ys.range(r.from)),e=r.from)}return Ye.set(t)}},{decorations:s=>s.decorations});class Vo extends Ge{constructor(e){super();this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?N(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=ke(t[0],n.direction!="rtl"),u=parseInt(n.lineHeight);return r.bottom-r.top>u*1.5?{left:r.left,right:r.right,top:r.top,bottom:r.top+u}:r}ignoreEvent(){return!1}}function No(s){return We.fromClass(class{constructor(e){this.view=e,this.plac
`,sn),Xt=on<0?It.length:on;if(Xt>sn&&K(It.slice(sn,Xt),zt),on<0)break;Se(),sn=on+1}mt=Vt}}ce(W,q,(Vt,zt,It)=>{ut(Vt,""),ut(zt,It)},Ke,ot),ut(ot,"")}class xe{constructor(W,q,K){this.at=W,this.highlighters=q,this.span=K,this.class=""}startSpan(W,q){q!=this.class&&(this.flush(W),W>this.at&&(this.at=W),this.class=q)}flush(W){W>this.at&&this.class&&this.span(this.at,W,this.class)}highlightRange(W,q,K,Se,Ke){let{type:ot,from:mt,to:ut}=W;if(mt>=K||ut<=q)return;ot.isTop&&(Ke=this.highlighters.filter(on=>!on.scope||on.scope(ot)));let Vt=Se,zt=be(W)||U.empty,It=w(Ke,zt.tags);if(It&&(Vt&&(Vt+=" "),Vt+=It,zt.mode==1&&(Se+=(Se?" ":"")+It)),this.startSpan(Math.max(q,mt),Vt),zt.opaque)return;let sn=W.tree&&W.tree.prop(l.md.mounted);if(sn&&sn.overlay){let on=W.node.enter(sn.overlay[0].from+mt,1),Xt=this.highlighters.filter(Ve=>!Ve.scope||Ve.scope(sn.tree.type)),$t=W.firstChild();for(let Ve=0,A=mt;;Ve++){let D=Ve<sn.overlay.length?sn.overlay[Ve]:null,oe=D?D.from+mt:ut,ge=Math.max(q,A),Te=Math.min(K,oe);if(ge<Te&&$t)for(;W.from<Te&&(this.highlightRange(W,ge,Te,Se,Ke),this.startSpan(Math.min(Te,W.to),Vt),!(W.to>=oe||!W.nextSibling())););if(!D||oe>K)break;A=D.to+mt,A>q&&(this.highlightRange(on.cursor(),Math.max(q,D.from+mt),Math.min(K,A),"",Xt),this.startSpan(Math.min(K,A),Vt))}$t&&W.parent()}else if(W.firstChild()){sn&&(Se="");do if(!(W.to<=q)){if(W.from>=K)break;this.highlightRange(W,q,K,Se,Ke),this.startSpan(Math.min(K,W.to),Vt)}while(W.nextSibling());W.parent()}}}function be(H){let W=H.type.prop(V);for(;W&&W.context&&!H.matchContext(W.context);)W=W.next;return W||null}const ne=p.define,me=ne(),ke=ne(),re=ne(ke),ae=ne(ke),Ce=ne(),Ee=ne(Ce),nt=ne(Ce),qe=ne(),dt=ne(qe),Je=ne(),lt=ne(),Rt=ne(),Re=ne(Rt),Ie=ne(),$={comment:me,lineComment:ne(me),blockComment:ne(me),docComment:ne(me),name:ke,variableName:ne(ke),typeName:re,tagName:ne(re),propertyName:ae,attributeName:ne(ae),className:ne(ke),labelName:ne(ke),namespace:ne(ke),macroName:ne(ke),literal:Ce,string:Ee,docString:ne(Ee),character:ne(Ee),attributeValue:ne(Ee),number:nt,integer:ne(nt),float:ne(nt),bool:ne(Ce),regexp:ne(Ce),escape:ne(Ce),color:ne(Ce),url:ne(Ce),keyword:Je,self:ne(Je),null:ne(Je),atom:ne(Je),unit:ne(Je),modifier:ne(Je),operatorKeyword:ne(Je),controlKeyword:ne(Je),definitionKeyword:ne(Je),moduleKeyword:ne(Je),operator:lt,derefOperator:ne(lt),arithmeticOperator:ne(lt),logicOperator:ne(lt),bitwiseOperator:ne(lt),compareOperator:ne(lt),updateOperator:ne(lt),definitionOperator:ne(lt),typeOperator:ne(lt),controlOperator:ne(lt),punctuation:Rt,separator:ne(Rt),bracket:Re,angleBracket:ne(Re),squareBracket:ne(Re),paren:ne(Re),brace:ne(Re),content:qe,heading:dt,heading1:ne(dt),heading2:ne(dt),heading3:ne(dt),heading4:ne(dt),heading5:ne(dt),heading6:ne(dt),contentSeparator:ne(qe),list:ne(qe),quote:ne(qe),emphasis:ne(qe),strong:ne(qe),link:ne(qe),monospace:ne(qe),strikethrough:ne(qe),inserted:ne(),deleted:ne(),changed:ne(),invalid:ne(),meta:Ie,documentMeta:ne(Ie),annotation:ne(Ie),processingInstruction:ne(Ie),definition:p.defineModifier(),constant:p.defineModifier(),function:p.defineModifier(),standard:p.defineModifier(),local:p.defineModifier(),special:p.defineModifier()},I=te([{tag:$.link,class:"tok-link"},{tag:$.heading,class:"tok-heading"},{tag:$.emphasis,class:"tok-emphasis"},{tag:$.strong,class:"tok-strong"},{tag:$.keyword,class:"tok-keyword"},{tag:$.atom,class:"tok-atom"},{tag:$.bool,class:"tok-bool"},{tag:$.url,class:"tok-url"},{tag:$.labelName,class:"tok-labelName"},{tag:$.inserted,class:"tok-inserted"},{tag:$.deleted,class:"tok-deleted"},{tag:$.literal,class:"tok-literal"},{tag:$.string,class:"tok-string"},{tag:$.number,class:"tok-number"},{tag:[$.regexp,$.escape,$.special($.string)],class:"tok-string2"},{tag:$.variableName,class:"tok-variableName"},{tag:$.local($.variableName),class:"tok-variableName tok-local"},{tag:$.definition($.variableName),class:"tok-variableName tok-definition"},{tag:$.special($.variableName),class:"tok-variableName2"},{tag:$.definition($.propertyName),class:"tok-propertyName tok-definition"},{tag:$.typeName,class:"tok-typeName"},{tag:$.namespace,cla
`&&U()}return l.trim(V)}Xe.exports=f},17381:function(Xe){Xe.exports={indexOf:function(ye,o){var l,f;if(Array.prototype.indexOf)return ye.indexOf(o);for(l=0,f=ye.length;l<f;l++)if(ye[l]===o)return l;return-1},forEach:function(ye,o,l){var f,p;if(Array.prototype.forEach)return ye.forEach(o,l);for(f=0,p=ye.length;f<p;f++)o.call(l,ye[f],f,ye)},trim:function(ye){return String.prototype.trim?ye.trim():ye.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(ye){return String.prototype.trimRight?ye.trimRight():ye.replace(/(\s*$)/g,"")}}},84007:function(Xe){"use strict";Xe.exports=JSON.parse('{"Aacute":"\xC1","aacute":"\xE1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223E","acd":"\u223F","acE":"\u223E\u0333","Acirc":"\xC2","acirc":"\xE2","acute":"\xB4","Acy":"\u0410","acy":"\u0430","AElig":"\xC6","aelig":"\xE6","af":"\u2061","Afr":"\u{1D504}","afr":"\u{1D51E}","Agrave":"\xC0","agrave":"\xE0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03B1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2A3F","amp":"&","AMP":"&","andand":"\u2A55","And":"\u2A53","and":"\u2227","andd":"\u2A5C","andslope":"\u2A58","andv":"\u2A5A","ang":"\u2220","ange":"\u29A4","angle":"\u2220","angmsdaa":"\u29A8","angmsdab":"\u29A9","angmsdac":"\u29AA","angmsdad":"\u29AB","angmsdae":"\u29AC","angmsdaf":"\u29AD","angmsdag":"\u29AE","angmsdah":"\u29AF","angmsd":"\u2221","angrt":"\u221F","angrtvb":"\u22BE","angrtvbd":"\u299D","angsph":"\u2222","angst":"\xC5","angzarr":"\u237C","Aogon":"\u0104","aogon":"\u0105","Aopf":"\u{1D538}","aopf":"\u{1D552}","apacir":"\u2A6F","ap":"\u2248","apE":"\u2A70","ape":"\u224A","apid":"\u224B","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224A","Aring":"\xC5","aring":"\xE5","Ascr":"\u{1D49C}","ascr":"\u{1D4B6}","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224D","Atilde":"\xC3","atilde":"\xE3","Auml":"\xC4","auml":"\xE4","awconint":"\u2233","awint":"\u2A11","backcong":"\u224C","backepsilon":"\u03F6","backprime":"\u2035","backsim":"\u223D","backsimeq":"\u22CD","Backslash":"\u2216","Barv":"\u2AE7","barvee":"\u22BD","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23B5","bbrktbrk":"\u23B6","bcong":"\u224C","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201E","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29B0","bepsi":"\u03F6","bernou":"\u212C","Bernoullis":"\u212C","Beta":"\u0392","beta":"\u03B2","beth":"\u2136","between":"\u226C","Bfr":"\u{1D505}","bfr":"\u{1D51F}","bigcap":"\u22C2","bigcirc":"\u25EF","bigcup":"\u22C3","bigodot":"\u2A00","bigoplus":"\u2A01","bigotimes":"\u2A02","bigsqcup":"\u2A06","bigstar":"\u2605","bigtriangledown":"\u25BD","bigtriangleup":"\u25B3","biguplus":"\u2A04","bigvee":"\u22C1","bigwedge":"\u22C0","bkarow":"\u290D","blacklozenge":"\u29EB","blacksquare":"\u25AA","blacktriangle":"\u25B4","blacktriangledown":"\u25BE","blacktriangleleft":"\u25C2","blacktriangleright":"\u25B8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20E5","bnequiv":"\u2261\u20E5","bNot":"\u2AED","bnot":"\u2310","Bopf":"\u{1D539}","bopf":"\u{1D553}","bot":"\u22A5","bottom":"\u22A5","bowtie":"\u22C8","boxbox":"\u29C9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250C","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252C","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229F","boxplus":"\u229E","boxtimes":"\u22A0","boxul":"\u2518","boxuL":"\u255B","boxUl":"\u255C","boxUL":"\u255D","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255A","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253C","boxvH":"\u256A","boxVh":"\u256B","boxVH":"\u256C","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251C","boxvR":"\u255E","boxVr":"\u255F","boxVR":"\u2560","bprime":"\u2035","breve":"\u02D8","Breve":"\u02D8","brvbar":"\xA6","bscr":"\u{1D4B7}","Bscr":"\u212C","bsemi":"\u204F","bsim":"\u223D","bsime":"\u22CD","bsolb":"\u29C5","bsol":"\\\\
`},d.fence=function(S,m,x,V,U){var te=S[m],w=te.info?f(te.info).trim():"",ce="",N="",xe,be,ne,me,ke;return w&&(ne=w.split(/(\s+)/g),ce=ne[0],N=ne.slice(2).join("")),x.highlight?xe=x.highlight(te.content,ce,N)||p(te.content):xe=p(te.content),xe.indexOf("<pre")===0?xe+`
`:w?(be=te.attrIndex("class"),me=te.attrs?te.attrs.slice():[],be<0?me.push(["class",x.langPrefix+ce]):(me[be]=me[be].slice(),me[be][1]+=" "+x.langPrefix+ce),ke={attrs:me},"<pre><code"+U.renderAttrs(ke)+">"+xe+`</code></pre>
`):"<pre><code"+U.renderAttrs(te)+">"+xe+`</code></pre>
`},d.image=function(S,m,x,V,U){var te=S[m];return te.attrs[te.attrIndex("alt")][1]=U.renderInlineAsText(te.children,x,V),U.renderToken(S,m,x)},d.hardbreak=function(S,m,x){return x.xhtmlOut?`<br />
`:`<br>
`},d.softbreak=function(S,m,x){return x.breaks?x.xhtmlOut?`<br />
`:`<br>
`:`
`},d.text=function(S,m){return p(S[m].content)},d.html_block=function(S,m){return S[m].content},d.html_inline=function(S,m){return S[m].content};function a(){this.rules=l({},d)}a.prototype.renderAttrs=function(m){var x,V,U;if(!m.attrs)return"";for(U="",x=0,V=m.attrs.length;x<V;x++)U+=" "+p(m.attrs[x][0])+'="'+p(m.attrs[x][1])+'"';return U},a.prototype.renderToken=function(m,x,V){var U,te="",w=!1,ce=m[x];return ce.hidden?"":(ce.block&&ce.nesting!==-1&&x&&m[x-1].hidden&&(te+=`
`),te+=(ce.nesting===-1?"</":"<")+ce.tag,te+=this.renderAttrs(ce),ce.nesting===0&&V.xhtmlOut&&(te+=" /"),ce.block&&(w=!0,ce.nesting===1&&x+1<m.length&&(U=m[x+1],(U.type==="inline"||U.hidden||U.nesting===-1&&U.tag===ce.tag)&&(w=!1))),te+=w?`>
`:">",te)},a.prototype.renderInline=function(S,m,x){for(var V,U="",te=this.rules,w=0,ce=S.length;w<ce;w++)V=S[w].type,typeof te[V]!="undefined"?U+=te[V](S,w,m,x,this):U+=this.renderToken(S,w,m);return U},a.prototype.renderInlineAsText=function(S,m,x){for(var V="",U=0,te=S.length;U<te;U++)S[U].type==="text"?V+=S[U].content:S[U].type==="image"?V+=this.renderInlineAsText(S[U].children,m,x):S[U].type==="softbreak"&&(V+=`
`);return V},a.prototype.render=function(S,m,x){var V,U,te,w="",ce=this.rules;for(V=0,U=S.length;V<U;V++)te=S[V].type,te==="inline"?w+=this.renderInline(S[V].children,m,x):typeof ce[te]!="undefined"?w+=ce[te](S,V,m,x,this):w+=this.renderToken(S,V,m,x);return w},Xe.exports=a},79580:function(Xe){"use strict";function ye(){this.__rules__=[],this.__cache__=null}ye.prototype.__find__=function(o){for(var l=0;l<this.__rules__.length;l++)if(this.__rules__[l].name===o)return l;return-1},ye.prototype.__compile__=function(){var o=this,l=[""];o.__rules__.forEach(function(f){!f.enabled||f.alt.forEach(function(p){l.indexOf(p)<0&&l.push(p)})}),o.__cache__={},l.forEach(function(f){o.__cache__[f]=[],o.__rules__.forEach(function(p){!p.enabled||f&&p.alt.indexOf(f)<0||o.__cache__[f].push(p.fn)})})},ye.prototype.at=function(o,l,f){var p=this.__find__(o),d=f||{};if(p===-1)throw new Error("Parser rule not found: "+o);this.__rules__[p].fn=l,this.__rules__[p].alt=d.alt||[],this.__cache__=null},ye.prototype.before=function(o,l,f,p){var d=this.__find__(o),a=p||{};if(d===-1)throw new Error("Parser rule not found: "+o);this.__rules__.splice(d,0,{name:l,enabled:!0,fn:f,alt:a.alt||[]}),this.__cache__=null},ye.prototype.after=function(o,l,f,p){var d=this.__find__(o),a=p||{};if(d===-1)throw new Error("Parser rule not found: "+o);this.__rules__.splice(d+1,0,{name:l,enabled:!0,fn:f,alt:a.alt||[]}),this.__cache__=null},ye.prototype.push=function(o,l,f){var p=f||{};this.__rules__.push({name:o,enabled:!0,fn:l,alt:p.alt||[]}),this.__cache__=null},ye.prototype.enable=function(o,l){Array.isArray(o)||(o=[o]);var f=[];return o.forEach(function(p){var d=this.__find__(p);if(d<0){if(l)return;throw new Error("Rules manager: invalid rule name "+p)}this.__rules__[d].enabled=!0,f.push(p)},this),this.__cache__=null,f},ye.prototype.enableOnly=function(o,l){Array.isArray(o)||(o=[o]),this.__rules__.forEach(function(f){f.enabled=!1}),this.enable(o,l)},ye.prototype.disable=function(o,l){Array.isArray(o)||(o=[o]);var f=[];return o.forEach(function(p){var d=this.__find__(p);if(d<0){if(l)return;throw new Error("Rules manager: invalid rule name "+p)}this.__rules__[d].enabled=!1,f.push(p)},this),this.__cache__=null,f},ye.prototype.getRules=function(o){return this.__cache__===null&&this.__compile__(),this.__cache__[o]||[]},Xe.exports=ye},45258:function(Xe,ye,o){"use strict";var l=o(67022).isSpace;Xe.exports=function(p,d,a,S){var m,x,V,U,te,w,ce,N,xe,be,ne,me,ke,re,ae,Ce,Ee,nt,qe,dt,Je=p.lineMax,lt=p.bMarks[d]+p.tShift[d],Rt=p.eMarks[d];if(p.sCount[d]-p.blkIndent>=4||p.src.charCodeAt(lt)!==62)return!1;if(S)return!0;for(be=[],ne=[],re=[],ae=[],nt=p.md.block.ruler.getRules("blockquote"),ke=p.parentType,p.parentType="blockquote",N=d;N<a&&(dt=p.sCount[N]<p.blkIndent,lt=p.bMarks[N]+p.tShift[N],Rt=p.eMarks[N],!(lt>=Rt));N++){if(p.src.charCodeAt(lt++)===62&&!dt){for(U=p.sCount[N]+1,p.src.charCodeAt(lt)===32?(lt++,U++,m=!1,Ce=!0):p.src.charCodeAt(lt)===9?(Ce=!0,(p.bsCount[N]+U)%4==3?(lt++,U++,m=!1):m=!0):Ce=!1,xe=U,be.push(p.bMarks[N]),p.bMarks[N]=lt;lt<Rt&&(x=p.src.charCodeAt(lt),l(x));){x===9?xe+=4-(xe+p.bsCount[N]+(m?1:0))%4:xe++;lt++}w=lt>=Rt,ne.push(p.bsCount[N]),p.bsCount[N]=p.sCount[N]+1+(Ce?1:0),re.push(p.sCount[N]),p.sCount[N]=xe-U,ae.push(p.tShift[N]),p.tShift[N]=lt-p.bMarks[N];continue}if(w)break;for(Ee=!1,V=0,te=nt.length;V<te;V++)if(nt[V](p,N,a,!0)){Ee=!0;break}if(Ee){p.lineMax=N,p.blkIndent!==0&&(be.push(p.bMarks[N]),ne.push(p.bsCount[N]),ae.push(p.tShift[N]),re.push(p.sCount[N]),p.sCount[N]-=p.blkIndent);break}be.push(p.bMarks[N]),ne.push(p.bsCount[N]),ae.push(p.tShift[N]),re.push(p.sCount[N]),p.sCount[N]=-1}for(me=p.blkIndent,p.blkIndent=0,qe=p.push("blockquote_open","blockquote",1),qe.markup=">",qe.map=ce=[d,0],p.md.block.tokenize(p,d,N),qe=p.push("blockquote_close","blockquote",-1),qe.markup=">",p.lineMax=Je,p.parentType=ke,ce[1]=p.line,V=0;V<ae.length;V++)p.bMarks[V+d]=be[V],p.tShift[V+d]=ae[V],p.sCount[V+d]=re[V],p.bsCount[V+d]=ne[V];return p.blkIndent=me,!0}},38768:function(Xe){"use strict";Xe.exports=function(o,l,f){var p,d,a;if(o.sCount[l]-o.blkIndent<4)return!1;for(
`,a.map=[l,o.line],!0}},13542:function(Xe){"use strict";Xe.exports=function(o,l,f,p){var d,a,S,m,x,V,U,te=!1,w=o.bMarks[l]+o.tShift[l],ce=o.eMarks[l];if(o.sCount[l]-o.blkIndent>=4||w+3>ce||(d=o.src.charCodeAt(w),d!==126&&d!==96)||(x=w,w=o.skipChars(w,d),a=w-x,a<3)||(U=o.src.slice(x,w),S=o.src.slice(w,ce),d===96&&S.indexOf(String.fromCharCode(d))>=0))return!1;if(p)return!0;for(m=l;m++,!(m>=f||(w=x=o.bMarks[m]+o.tShift[m],ce=o.eMarks[m],w<ce&&o.sCount[m]<o.blkIndent));)if(o.src.charCodeAt(w)===d&&!(o.sCount[m]-o.blkIndent>=4)&&(w=o.skipChars(w,d),!(w-x<a)&&(w=o.skipSpaces(w),!(w<ce)))){te=!0;break}return a=o.sCount[l],o.line=m+(te?1:0),V=o.push("fence","code",0),V.info=S,V.content=o.getLines(l+1,m,a,!0),V.markup=U,V.map=[l,o.line],!0}},61630:function(Xe,ye,o){"use strict";var l=o(67022).isSpace;Xe.exports=function(p,d,a,S){var m,x,V,U,te=p.bMarks[d]+p.tShift[d],w=p.eMarks[d];if(p.sCount[d]-p.blkIndent>=4||(m=p.src.charCodeAt(te),m!==35||te>=w))return!1;for(x=1,m=p.src.charCodeAt(++te);m===35&&te<w&&x<=6;)x++,m=p.src.charCodeAt(++te);return x>6||te<w&&!l(m)?!1:(S||(w=p.skipSpacesBack(w,te),V=p.skipCharsBack(w,35,te),V>te&&l(p.src.charCodeAt(V-1))&&(w=V),p.line=d+1,U=p.push("heading_open","h"+String(x),1),U.markup="########".slice(0,x),U.map=[d,p.line],U=p.push("inline","",0),U.content=p.src.slice(te,w).trim(),U.map=[d,p.line],U.children=[],U=p.push("heading_close","h"+String(x),-1),U.markup="########".slice(0,x)),!0)}},35634:function(Xe,ye,o){"use strict";var l=o(67022).isSpace;Xe.exports=function(p,d,a,S){var m,x,V,U,te=p.bMarks[d]+p.tShift[d],w=p.eMarks[d];if(p.sCount[d]-p.blkIndent>=4||(m=p.src.charCodeAt(te++),m!==42&&m!==45&&m!==95))return!1;for(x=1;te<w;){if(V=p.src.charCodeAt(te++),V!==m&&!l(V))return!1;V===m&&x++}return x<3?!1:(S||(p.line=d+1,U=p.push("hr","hr",0),U.map=[d,p.line],U.markup=Array(x+1).join(String.fromCharCode(m))),!0)}},76329:function(Xe,ye,o){"use strict";var l=o(40813),f=o(51947).q,p=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+l.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(f.source+"\\s*$"),/^$/,!1]];Xe.exports=function(a,S,m,x){var V,U,te,w,ce=a.bMarks[S]+a.tShift[S],N=a.eMarks[S];if(a.sCount[S]-a.blkIndent>=4||!a.md.options.html||a.src.charCodeAt(ce)!==60)return!1;for(w=a.src.slice(ce,N),V=0;V<p.length&&!p[V][0].test(w);V++);if(V===p.length)return!1;if(x)return p[V][2];if(U=S+1,!p[V][1].test(w)){for(;U<m&&!(a.sCount[U]<a.blkIndent);U++)if(ce=a.bMarks[U]+a.tShift[U],N=a.eMarks[U],w=a.src.slice(ce,N),p[V][1].test(w)){w.length!==0&&U++;break}}return a.line=U,te=a.push("html_block","",0),te.map=[S,U],te.content=a.getLines(S,U,a.blkIndent,!0),!0}},56850:function(Xe){"use strict";Xe.exports=function(o,l,f){var p,d,a,S,m,x,V,U,te,w=l+1,ce,N=o.md.block.ruler.getRules("paragraph");if(o.sCount[l]-o.blkIndent>=4)return!1;for(ce=o.parentType,o.parentType="paragraph";w<f&&!o.isEmpty(w);w++)if(!(o.sCount[w]-o.blkIndent>3)){if(o.sCount[w]>=o.blkIndent&&(x=o.bMarks[w]+o.tShift[w],V=o.eMarks[w],x<V&&(te=o.src.charCodeAt(x),(te===45||te===61)&&(x=o.skipChars(x,te),x=o.skipSpaces(x),x>=V)))){U=te===61?1:2;break}if(!(o.sCount[w]<0)){for(d=!1,a=0,S=N.length;a<S;a++)if(N[a](o,w,f,!0)){d=!0;break}if(d)break}}return U?(p=o.getLines(l,w,o.blkIndent,!1).trim(),o.line=w+1,m=o.push("heading_open","h"+String(U),1),m.markup=String.fromCharCode(te),m.map=[l,o.line],m=o.push("inline","",0),m.content=p,m.map=[l,o.line-1],m.children=[],m=o.push("heading_close","h"+String(U),-1),m.markup=String.fromCharCode(te),o.parentType=ce,!0):!1}},18532:function(Xe,ye,o){"use strict";var l=o(67022).isSpace;function f(a,S){var m,x,V,U;return x=a.bMarks[S]+a.tShift[S],V=a.eMarks[S],m=a.src.charCodeAt(x++),m!==42&&m!==45&&m!==43||x<V&&(U=a.src.charCodeAt(x),!l(U))?-1:x}function p(a,S){var m,x=a.bMarks[S]+a.tShift[S],V=x,U=a.eMarks[S];if(V+1>=U||(m=a.src.charCodeAt(V++),m<48||m>57))return-1;for(;;){if(V>=U)return-1;if(m=a.src.charCodeAt(V++),m>=48&&m<=57){if(V-x>=10)return-1;continue}if(m===
`),p=p.replace(o,"\uFFFD"),f.src=p}},2834:function(Xe){"use strict";var ye=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,o=/\((c|tm|r)\)/i,l=/\((c|tm|r)\)/ig,f={c:"\xA9",r:"\xAE",tm:"\u2122"};function p(S,m){return f[m.toLowerCase()]}function d(S){var m,x,V=0;for(m=S.length-1;m>=0;m--)x=S[m],x.type==="text"&&!V&&(x.content=x.content.replace(l,p)),x.type==="link_open"&&x.info==="auto"&&V--,x.type==="link_close"&&x.info==="auto"&&V++}function a(S){var m,x,V=0;for(m=S.length-1;m>=0;m--)x=S[m],x.type==="text"&&!V&&ye.test(x.content)&&(x.content=x.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),x.type==="link_open"&&x.info==="auto"&&V--,x.type==="link_close"&&x.info==="auto"&&V++}Xe.exports=function(m){var x;if(!!m.md.options.typographer)for(x=m.tokens.length-1;x>=0;x--)m.tokens[x].type==="inline"&&(o.test(m.tokens[x].content)&&d(m.tokens[x].children),ye.test(m.tokens[x].content)&&a(m.tokens[x].children))}},58450:function(Xe,ye,o){"use strict";var l=o(67022).isWhiteSpace,f=o(67022).isPunctChar,p=o(67022).isMdAsciiPunct,d=/['"]/,a=/['"]/g,S="\u2019";function m(V,U,te){return V.slice(0,U)+te+V.slice(U+1)}function x(V,U){var te,w,ce,N,xe,be,ne,me,ke,re,ae,Ce,Ee,nt,qe,dt,Je,lt,Rt,Re,Ie;for(Rt=[],te=0;te<V.length;te++){for(w=V[te],ne=V[te].level,Je=Rt.length-1;Je>=0&&!(Rt[Je].level<=ne);Je--);if(Rt.length=Je+1,w.type!=="text")continue;ce=w.content,xe=0,be=ce.length;e:for(;xe<be&&(a.lastIndex=xe,N=a.exec(ce),!!N);){if(qe=dt=!0,xe=N.index+1,lt=N[0]==="'",ke=32,N.index-1>=0)ke=ce.charCodeAt(N.index-1);else for(Je=te-1;Je>=0&&!(V[Je].type==="softbreak"||V[Je].type==="hardbreak");Je--)if(!!V[Je].content){ke=V[Je].content.charCodeAt(V[Je].content.length-1);break}if(re=32,xe<be)re=ce.charCodeAt(xe);else for(Je=te+1;Je<V.length&&!(V[Je].type==="softbreak"||V[Je].type==="hardbreak");Je++)if(!!V[Je].content){re=V[Je].content.charCodeAt(0);break}if(ae=p(ke)||f(String.fromCharCode(ke)),Ce=p(re)||f(String.fromCharCode(re)),Ee=l(ke),nt=l(re),nt?qe=!1:Ce&&(Ee||ae||(qe=!1)),Ee?dt=!1:ae&&(nt||Ce||(dt=!1)),re===34&&N[0]==='"'&&ke>=48&&ke<=57&&(dt=qe=!1),qe&&dt&&(qe=ae,dt=Ce),!qe&&!dt){lt&&(w.content=m(w.content,N.index,S));continue}if(dt){for(Je=Rt.length-1;Je>=0&&(me=Rt[Je],!(Rt[Je].level<ne));Je--)if(me.single===lt&&Rt[Je].level===ne){me=Rt[Je],lt?(Re=U.md.options.quotes[2],Ie=U.md.options.quotes[3]):(Re=U.md.options.quotes[0],Ie=U.md.options.quotes[1]),w.content=m(w.content,N.index,Ie),V[me.token].content=m(V[me.token].content,me.pos,Re),xe+=Ie.length-1,me.token===te&&(xe+=Re.length-1),ce=w.content,be=ce.length,Rt.length=Je;continue e}}qe?Rt.push({token:te,pos:N.index,single:lt,level:ne}):dt&&lt&&(w.content=m(w.content,N.index,S))}}}Xe.exports=function(U){var te;if(!!U.md.options.typographer)for(te=U.tokens.length-1;te>=0;te--)U.tokens[te].type!=="inline"||!d.test(U.tokens[te].content)||x(U.tokens[te].children,U)}},16480:function(Xe,ye,o){"use strict";var l=o(75872);function f(p,d,a){this.src=p,this.env=a,this.tokens=[],this.inlineMode=!1,this.md=d}f.prototype.Token=l,Xe.exports=f},46633:function(Xe){"use strict";Xe.exports=function(o){var l,f,p,d,a,S,m=o.tokens;for(l=0,f=m.length;l<f;l++)if(m[l].type==="inline"){for(p=m[l].children,a=p.length,d=0;d<a;d++)p[d].type==="text_special"&&(p[d].type="text");for(d=S=0;d<a;d++)p[d].type==="text"&&d+1<a&&p[d+1].type==="text"?p[d+1].content=p[d].content+p[d+1].content:(d!==S&&(p[S]=p[d]),S++);d!==S&&(p.length=S)}}},43420:function(Xe){"use strict";var ye=/^([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=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;Xe.exports=function(f,p){var d,a,S,m,x,V,U=f.pos;if(f.src.charCodeAt(U)!==60)return!1;for(x=f.pos,V=f.posMax;;){if(++U>=V||(m=f.src.charCodeAt(U),m===60))return!1;if(m===62)break}return d=f.src.slice(x+1,U),o.test(d)?(a=f.md.normalizeLink(d),f.md.valida
Expects a CSS selector, a Node element, a NodeList or an array.
See: https://github.com/francoischalifour/medium-zoom`)}},Gr=function(b){var E=document.createElement("div");return E.classList.add("medium-zoom-overlay"),E.style.background=b,E},ro=function(b){var E=b.getBoundingClientRect(),Z=E.top,z=E.left,B=E.width,ie=E.height,de=b.cloneNode(),pe=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,$e=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return de.removeAttribute("id"),de.style.position="absolute",de.style.top=Z+pe+"px",de.style.left=z+$e+"px",de.style.width=B+"px",de.style.height=ie+"px",de.style.transform="",de},Xi=function(b,E){var Z=Li({bubbles:!1,cancelable:!1,detail:void 0},E);if(typeof window.CustomEvent=="function")return new CustomEvent(b,Z);var z=document.createEvent("CustomEvent");return z.initCustomEvent(b,Z.bubbles,Z.cancelable,Z.detail),z},qr=function i(b){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=window.Promise||function(fn){function an(){}fn(an,an)},z=function(fn){var an=fn.target;if(an===Nn){ct();return}Ut.indexOf(an)!==-1&&bt({target:an})},B=function(){if(!(Qn||!Wt.original)){var fn=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(Fn-fn)>xn.scrollOffset&&setTimeout(ct,150)}},ie=function(fn){var an=fn.key||fn.keyCode;(an==="Escape"||an==="Esc"||an===27)&&ct()},de=function(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},an=fn;if(fn.background&&(Nn.style.background=fn.background),fn.container&&fn.container instanceof Object&&(an.container=Li({},xn.container,fn.container)),fn.template){var Zn=dr(fn.template)?fn.template:document.querySelector(fn.template);an.template=Zn}return xn=Li({},xn,an),Ut.forEach(function(Yn){Yn.dispatchEvent(Xi("medium-zoom:update",{detail:{zoom:Sn}}))}),Sn},pe=function(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return i(Li({},xn,fn))},$e=function(){for(var fn=arguments.length,an=Array(fn),Zn=0;Zn<fn;Zn++)an[Zn]=arguments[Zn];var Yn=an.reduce(function(ln,Vn){return[].concat(ln,wi(Vn))},[]);return Yn.filter(function(ln){return Ut.indexOf(ln)===-1}).forEach(function(ln){Ut.push(ln),ln.classList.add("medium-zoom-image")}),pn.forEach(function(ln){var Vn=ln.type,qn=ln.listener,ei=ln.options;Yn.forEach(function(kn){kn.addEventListener(Vn,qn,ei)})}),Sn},De=function(){for(var fn=arguments.length,an=Array(fn),Zn=0;Zn<fn;Zn++)an[Zn]=arguments[Zn];Wt.zoomed&&ct();var Yn=an.length>0?an.reduce(function(ln,Vn){return[].concat(ln,wi(Vn))},[]):Ut;return Yn.forEach(function(ln){ln.classList.remove("medium-zoom-image"),ln.dispatchEvent(Xi("medium-zoom:detach",{detail:{zoom:Sn}}))}),Ut=Ut.filter(function(ln){return Yn.indexOf(ln)===-1}),Sn},ft=function(fn,an){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ut.forEach(function(Yn){Yn.addEventListener("medium-zoom:"+fn,an,Zn)}),pn.push({type:"medium-zoom:"+fn,listener:an,options:Zn}),Sn},He=function(fn,an){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ut.forEach(function(Yn){Yn.removeEventListener("medium-zoom:"+fn,an,Zn)}),pn=pn.filter(function(Yn){return!(Yn.type==="medium-zoom:"+fn&&Yn.listener.toString()===an.toString())}),Sn},vt=function(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},an=fn.target,Zn=function(){var ln={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},Vn=void 0,qn=void 0;if(xn.container)if(xn.container instanceof Object)ln=Li({},ln,xn.container),Vn=ln.width-ln.left-ln.right-xn.margin*2,qn=ln.height-ln.top-ln.bottom-xn.margin*2;else{var ei=dr(xn.container)?xn.container:document.querySelector(xn.container),kn=ei.getBoundingClientRect(),Tn=kn.width,ni=kn.height,oi=kn.left,Hn=kn.top;ln=Li({},ln,{width:Tn,height:ni,left:oi,top:Hn})}Vn=Vn||ln.width-xn.margin*2,qn=qn||ln.height-xn.margin*2;var _n=Wt.zoomedHd||Wt.original,Pi=ki(_n)?Vn:_n.naturalWidth||Vn,Si=ki(_n)?qn:_n.naturalHeight||qn,Qi=_n.getBoundingClientRect(),Ii=Qi.top,Cr=Qi.left,Ti=Qi.width,ji=Qi.height,Vi=Math.min(Math.ma
${jt}
\`\`\`
`,De=3,ft=3+Qt.length-$e.length;break}case"table":{$e="|";const{selectedShape:jt={x:1,y:1}}=E,{x:Qt,y:Ut}=jt;for(let pn=0;pn<=Ut;pn++)$e+=" col |";$e+=`
|`;for(let pn=0;pn<=Ut;pn++)$e+=" - |";for(let pn=0;pn<=Qt;pn++){$e+=`
|`;for(let Qn=0;Qn<=Ut;Qn++)$e+=" content |"}De=2,ft=5-$e.length;break}case"link":{const{desc:jt,url:Qt}=E;$e=`[${jt}](${Qt})`,He=!1;break}case"image":{const{desc:jt,url:Qt,urls:Ut}=E;Ut instanceof Array?$e=Ut.reduce((pn,Qn)=>pn+`![${jt}](${Qn})
`,""):$e=`![${jt}](${Qt})
`,He=!1;break}case"flow":{$e=`\`\`\`mermaid
${(bt==null?void 0:bt.flow)||`flowchart TD
Start --> Stop`}
\`\`\`
`,De=3,ft=10-$e.length;break}case"sequence":{$e=`\`\`\`mermaid
${(bt==null?void 0:bt.sequence)||`sequenceDiagram
A->>B: hello!
B-->>A: hi!
A-)B: bye!`}
\`\`\`
`,De=3,ft=10-$e.length;break}case"gantt":{$e=`\`\`\`mermaid
${(bt==null?void 0:bt.gantt)||`gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1, 20d`}
\`\`\`
`,De=3,ft=10-$e.length;break}case"class":{$e=`\`\`\`mermaid
${(bt==null?void 0:bt.class)||`classDiagram
class Animal
Vehicle <|-- Car`}
\`\`\`
`,De=3,ft=10-$e.length;break}case"state":{$e=`\`\`\`mermaid
${(bt==null?void 0:bt.state)||`stateDiagram-v2
s1 --> s2`}
\`\`\`
`,De=3,ft=10-$e.length;break}case"pie":{$e=`\`\`\`mermaid
${(bt==null?void 0:bt.pie)||`pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 15`}
\`\`\`
`,De=3,ft=10-$e.length;break}case"relationship":{$e=`\`\`\`mermaid
${(bt==null?void 0:bt.relationship)||`erDiagram
CAR ||--o{ NAMED-DRIVER : allows
PERSON ||--o{ NAMED-DRIVER : is`}
\`\`\`
`,De=3,ft=10-$e.length;break}case"journey":{$e=`\`\`\`mermaid
${(bt==null?void 0:bt.journey)||`journey
title My working day
section Go to work
Make tea: 5: Me
Go upstairs: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 5: Me`}
\`\`\`
`,De=3,ft=10-$e.length;break}case"katexInline":{$e="$$",De=1,ft=-1;break}case"katexBlock":{$e=`$$
$$
`,De=3,ft=-4;break}case"universal":{const{generate:jt}=E,Qt=jt(ct);$e=Qt.targetValue,He=(At=Qt.select)!=null?At:!0,De=Qt.deviationStart||0,ft=Qt.deviationEnd||0}}return{text:$e,options:{select:He,deviationStart:De,deviationEnd:ft,replaceAll:vt}}},Mi=i=>{const b=new w.F6;return E=>(b.get(i.state)?i.dispatch({effects:b.reconfigure(E)}):i.dispatch({effects:w.Py.appendConfig.of(b.of(E))}),!0)};class fs{constructor(b){Ei(this,"view"),Ei(this,"maxLength",Number.MAX_SAFE_INTEGER),Ei(this,"toggleTabSize"),Ei(this,"togglePlaceholder"),Ei(this,"setExtensions"),Ei(this,"toggleDisabled"),Ei(this,"toggleReadOnly"),Ei(this,"toggleMaxlength"),this.view=b,this.toggleTabSize=Mi(this.view),this.togglePlaceholder=Mi(this.view),this.setExtensions=Mi(this.view),this.toggleDisabled=Mi(this.view),this.toggleReadOnly=Mi(this.view),this.toggleMaxlength=Mi(this.view)}getValue(){return this.view.state.doc.toString()}setValue(b,E=0,Z=this.view.state.doc.length){this.view.dispatch({changes:{from:E,to:Z,insert:b}})}getSelectedText(){const{from:b,to:E}=this.view.state.selection.main;return this.view.state.sliceDoc(b,E)}replaceSelectedText(b,E={select:!0,deviationStart:0,deviationEnd:0,replaceAll:!1},Z){try{if(E.replaceAll){if(this.setValue(b),b.length>this.maxLength)throw new Error("The input text is too long");return}if(this.view.state.doc.length-this.getSelectedText().length+b.length>this.maxLength)throw new Error("The input text is too long");const{from:z}=this.view.state.selection.main;if(this.view.dispatch(this.view.state.replaceSelection(b)),E.select){const B=z+b.length+E.deviationEnd;this.view.dispatch({selection:w.jT.create([w.jT.range(z+E.deviationStart,B),w.jT.cursor(B)],1)})}this.view.focus()}catch(z){if(z.message==="The input text is too long")p.b.emit(Z,p.E,{name:"overlength",message:z.message,data:b});else throw z}}setTabSize(b){this.toggleTabSize([w.yy.tabSize.of(b),m.c.of(" ".repeat(b))])}setPlaceholder(b){this.togglePlaceholder((0,S.W$)(b))}focus(b){if(this.view.focus(),!b)return;let E=0,Z=0,z=0;switch(b){case"start":break;case"end":{E=Z=z=this.getValue().length;break}default:E=b.rangeAnchor||b.cursorPos,Z=b.rangeHead||b.cursorPos,z=b.cursorPos}this.view.dispatch({scrollIntoView:!0,selection:w.jT.create([w.jT.range(E,Z),w.jT.cursor(z)],1)})}setDisabled(b){this.toggleDisabled([S.tk.editable.of(!b)])}setReadOnly(b){this.toggleReadOnly([w.yy.readOnly.of(b)])}setMaxLength(b){this.maxLength=b,this.toggleMaxlength([w.yy.changeFilter.of(E=>E.newDoc.length<=b)])}}const ds="#e5c07b",br="var(--md-color)",xo="#56b6c2",Ji="#ffffff",Ki="var(--md-color)",ps="#e5c07b",ms="#e5c07b",gs="var(--md-color)",Os="#d19a66",bs="#c678dd",So="#21252b",ko="#2c313a",ys="var(--md-bk-color)",Lr="var(--md-bk-color)",wo="#ceedfa33",yr="#528bff",Co=S.tk.theme({"&":{color:Ki,backgroundColor:ys},".cm-content":{caretColor:yr},".cm-cursor, .cm-dropCursor":{borderLeftColor:yr},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:wo},".cm-panels":{backgroundColor:So,color:Ki},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#ceedfa33"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:ys,color:Ki,borderRight:"1px solid",borderColor:"var(--md-border-color)"},".cm-activeLineGutter":{backgroundColor:ko},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"1px solid var(--md-border-color)",backgroundColor:Lr},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Lr,borderBottomColor:Lr},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{color:Ki}}},{da
| - | - | - |
| content | content | content |
| content | content | content |`},{label:"$",type:"text",apply:er("$","","","$","type")},{label:"$$",type:"text",apply:er("$$","",`
`,`
$$`,"title")},...["note","abstract","info","tip","success","question","warning","failure","danger","bug","example","quote","hint","caution","error","attention"].map(z=>({label:`!!! ${z}`,type:"text",apply:er("!!!",` ${z}`," Title",`
!!!`,"title")}))]}};return(0,no.ys)({override:i?[b,...i]:[b]})},Es=To,Sr=(i,b)=>[{key:"Ctrl-b",mac:"Cmd-b",run:()=>(p.b.emit(i,p.f,"bold"),!0)},{key:"Ctrl-d",mac:"Cmd-d",run:Di,preventDefault:!0},{key:"Ctrl-s",mac:"Cmd-s",run:E=>(p.b.emit(i,p.O,E.state.doc.toString()),!0),shift:()=>(p.b.emit(i,p.f,"strikeThrough"),!0)},{key:"Ctrl-u",mac:"Cmd-u",run:()=>(p.b.emit(i,p.f,"underline"),!0),shift:()=>(p.b.emit(i,p.f,"unorderedList"),!0)},{key:"Ctrl-i",mac:"Cmd-i",run:()=>(p.b.emit(i,p.f,"italic"),!0),shift:()=>(p.b.emit(i,p.h,"image"),!0)},{key:"Ctrl-1",mac:"Cmd-1",run:()=>(p.b.emit(i,p.f,"h1"),!0)},{key:"Ctrl-2",mac:"Cmd-2",run:()=>(p.b.emit(i,p.f,"h2"),!0)},{key:"Ctrl-3",mac:"Cmd-3",run:()=>(p.b.emit(i,p.f,"h3"),!0)},{key:"Ctrl-4",mac:"Cmd-4",run:()=>(p.b.emit(i,p.f,"h4"),!0)},{key:"Ctrl-5",mac:"Cmd-5",run:()=>(p.b.emit(i,p.f,"h5"),!0)},{key:"Ctrl-6",mac:"Cmd-6",run:()=>(p.b.emit(i,p.f,"h6"),!0)},{key:"Ctrl-ArrowUp",mac:"Cmd-ArrowUp",run:()=>(p.b.emit(i,p.f,"sup"),!0)},{key:"Ctrl-ArrowDown",mac:"Cmd-ArrowDown",run:()=>(p.b.emit(i,p.f,"sub"),!0)},{key:"Ctrl-o",mac:"Cmd-o",run:()=>(p.b.emit(i,p.f,"orderedList"),!0)},{key:"Ctrl-c",mac:"Cmd-c",shift:()=>(p.b.emit(i,p.f,"code"),!0),any(E,Z){return(Z.ctrlKey||Z.metaKey)&&Z.altKey&&Z.code==="KeyC"?(p.b.emit(i,p.f,"codeRow"),!0):!1}},{key:"Ctrl-l",mac:"Cmd-l",run:()=>(p.b.emit(i,p.h,"link"),!0)},{key:"Ctrl-f",mac:"Cmd-f",shift:()=>b.noPrettier?!1:(p.b.emit(i,p.f,"prettier"),!0)},{any:(E,Z)=>(Z.ctrlKey||Z.metaKey)&&Z.altKey&&Z.shiftKey&&Z.code==="KeyT"?(p.b.emit(i,p.f,"table"),!0):!1}],Rs=Sr,Ds=i=>{const{editorId:b}=(0,f.useContext)(si);return(0,f.useCallback)(E=>{if(!E.clipboardData)return;if(E.clipboardData.files.length>0){const{files:z}=E.clipboardData;p.b.emit(b,p.U,Array.from(z).filter(B=>/image\/.*/.test(B.type))),E.preventDefault();return}if(i.autoDetectCode&&E.clipboardData.types.includes("vscode-editor-data")){const z=JSON.parse(E.clipboardData.getData("vscode-editor-data"));p.b.emit(b,p.f,"code",{mode:z.mode,text:E.clipboardData.getData("text/plain")}),E.preventDefault();return}const Z=E.clipboardData.getData("text/plain");i.maxLength&&Z.length+i.modelValue.length>i.maxLength&&p.b.emit(b,p.E,{name:"overlength",message:"The input text is too long",data:Z})},[i.autoDetectCode,i.maxLength,i.modelValue])},Bi=Ds,rl=i=>{const{tabWidth:b,editorId:E,theme:Z}=(0,f.useContext)(si),z=(0,f.useRef)(null),B=(0,f.useRef)(),[ie]=(0,f.useState)(()=>({language:new w.F6,theme:new w.F6,autocompletion:new w.F6,update:new w.F6,domEvent:new w.F6,history:new w.F6})),[de]=(0,f.useState)(()=>Rs(E,i)),pe=(0,f.useRef)(!0),$e=Bi(i),[De]=(0,f.useState)(()=>[S.$f.of([...cr,...rt,...de,ur]),ie.history.of(H()),ie.language.of((0,te.markdown)({codeLanguages:U})),S.tk.lineWrapping,ie.update.of(S.tk.updateListener.of(vt=>{vt.docChanged&&i.onChange(vt.state.doc.toString())})),ie.domEvent.of(S.tk.domEventHandlers({paste:$e,blur:i.onBlur,focus:i.onFocus,drop:i.onDrop,input:vt=>{i.onInput&&i.onInput(vt);const{data:ct}=vt;i.maxLength&&i.modelValue.length+ct.length>i.maxLength&&p.b.emit(E,p.E,{name:"overlength",message:"The input text is too long",data:ct})}}))]),[ft]=(0,f.useState)(()=>d.f.codeMirrorExtensions(Z,[...De,ie.theme.of(Z==="light"?Xr:xs),ie.autocompletion.of(Es(i.completions))],[...de])),He=(0,f.useCallback)(()=>{var vt,ct;(vt=B.current)==null||vt.view.dispatch({effects:ie.history.reconfigure([])}),(ct=B.current)==null||ct.view.dispatch({effects:ie.history.reconfigure(H())})},[ie.history]);return(0,f.useEffect)(()=>{const vt=new S.tk({doc:i.modelValue,parent:z.current,extensions:ft}),ct=new fs(vt);return B.current=ct,setTimeout(()=>{ct.setTabSize(b),ct.setDisabled(i.disabled),ct.setReadOnly(i.readOnly),i.placeholder&&ct.setPlaceholder(i.placeholder),typeof i.maxLength=="number"&&ct.setMaxLength(i.maxLength),i.autoFocus&&vt.focus(),pe.current=!1},0),p.b.on(E,{name:p.j,callback(){K(vt)}}),p.b.on(E,{name:p.i,callback(){Se(vt)}}),p.b.on(E,{name:p.f,callback(bt,At={}){var jt;const{text:Qt,options:Ut}=jr(bt,B.current,At);(jt=B.current)==null||jt.replaceSelectedText(Qt,Ut,E)}}),()=>{vt.destroy(),pe.current=!0
`:"")+i.getLines(b+1,ie,i.tShift[b],!0)+(B&&B.trim()?B:""),ft.map=[b,i.line],ft.markup="$$",!0},Ir=(i,b)=>{const E=z=>{if(b.katexRef.current){const B=b.katexRef.current.renderToString(z,{throwOnError:!1});return`<span class="${d.p}-katex-inline" data-processed>${B}</span>`}else return`<span class="${d.p}-katex-inline">${z}</span>`},Z=(z,B)=>{if(b.katexRef.current){const ie=b.katexRef.current.renderToString(z,{throwOnError:!1,displayMode:!0});return`<p class="${d.p}-katex-block" data-line=${B} data-processed>${ie}</p>`}else return`<p class="${d.p}-katex-block" data-line=${B}>${z}</p>`};i.inline.ruler.after("escape","math_inline",jo),i.block.ruler.after("blockquote","math_block",Lo,{alt:["paragraph","reference","blockquote","list"]}),i.renderer.rules.math_inline=(z,B)=>E(z[B].content),i.renderer.rules.math_block=(z,B)=>Z(z[B].content,z[B].map[0])+`
`},Xo=Ir,wr=(i,b)=>{b=b||{};const E=3,Z=b.marker||"!",z=Z.charCodeAt(0),B=Z.length;let ie="",de="";const pe=(De,ft,He,vt,ct)=>{const bt=De[ft];return bt.type==="admonition_open"?(De[ft].attrPush(["class",`${d.p}-admonition ${d.p}-admonition-${bt.info}`]),De[ft].attrSet("data-line",String(De[ft].map[0]))):bt.type==="admonition_title_open"&&De[ft].attrPush(["class",`${d.p}-admonition-title`]),ct.renderToken(De,ft,He)},$e=De=>{const ft=De.trim().split(" ",2);de="",ie=ft[0],ft.length>1&&(de=De.substring(ie.length+2)),(de===""||!de)&&(de=ie)};i.block.ruler.before("code","admonition",(De,ft,He,vt)=>{let ct,bt,At,jt=!1,Qt=De.bMarks[ft]+De.tShift[ft],Ut=De.eMarks[ft];if(z!==De.src.charCodeAt(Qt))return!1;for(ct=Qt+1;ct<=Ut&&Z[(ct-Qt)%B]===De.src[ct];ct++);const pn=Math.floor((ct-Qt)/B);if(pn!==E)return!1;ct-=(ct-Qt)%B;const Qn=De.src.slice(Qt,ct),Fn=De.src.slice(ct,Ut);if($e(Fn),vt)return!0;for(bt=ft;bt++,!(bt>=He||(Qt=De.bMarks[bt]+De.tShift[bt],Ut=De.eMarks[bt],Qt<Ut&&De.sCount[bt]<De.blkIndent));)if(z===De.src.charCodeAt(Qt)&&!(De.sCount[bt]-De.blkIndent>=4)){for(ct=Qt+1;ct<=Ut&&Z[(ct-Qt)%B]===De.src[ct];ct++);if(!(Math.floor((ct-Qt)/B)<pn)&&(ct-=(ct-Qt)%B,ct=De.skipSpaces(ct),!(ct<Ut))){jt=!0;break}}const xn=De.parentType,Wt=De.lineMax;return De.parentType="root",De.lineMax=bt,At=De.push("admonition_open","div",1),At.markup=Qn,At.block=!0,At.info=ie,At.map=[ft,bt],At=De.push("admonition_title_open","p",1),At.markup=Qn+" "+ie,At.map=[ft,bt],At=De.push("inline","",0),At.content=de,At.map=[ft,De.line-1],At.children=[],At=De.push("admonition_title_close","p",-1),At.markup=Qn+" "+ie,De.md.block.tokenize(De,ft+1,bt),At=De.push("admonition_close","div",-1),At.markup=De.src.slice(Qt,ct),At.block=!0,De.parentType=xn,De.lineMax=Wt,De.line=bt+(jt?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),i.renderer.rules.admonition_open=pe,i.renderer.rules.admonition_title_open=pe,i.renderer.rules.admonition_title_close=pe,i.renderer.rules.admonition_close=pe},ll=wr,Ws=(i,b)=>{i.renderer.rules.heading_open=(E,Z)=>{var z;const B=E[Z],ie=((z=E[Z+1].children)==null?void 0:z.reduce((pe,$e)=>pe+($e.content||""),""))||"",de=B.markup.length;return b.headsRef.current.push({text:ie,level:de}),B.map&&B.level===0&&(B.attrSet("data-line",String(B.map[0])),B.attrSet("id",b.mdHeadingId(ie,de,b.headsRef.current.length))),i.renderer.renderToken(E,Z,b)},i.renderer.rules.heading_close=(E,Z,z,B,ie)=>ie.renderToken(E,Z,z)},Mo=Ws,Io=(i,b)=>{const E=i.renderer.rules.fence,Z=i.utils.unescapeAll,z=/\[(\w*)(?::([\w ]*))?\]/;function B($e){return $e.info?Z($e.info).trim():""}function ie($e){const De=B($e),[ft=null,He=""]=(z.exec(De)||[]).slice(1);return[ft,He]}function de($e){const De=B($e);return De?De.split(/(\s+)/g)[0]:""}const pe=($e,De,ft,He,vt)=>{if($e[De].hidden)return"";const[ct,bt]=ie($e[De]);if(ct===null)return E($e,De,ft,He,vt);let At,jt,Qt,Ut,pn="",Qn="";for(let Fn=De;Fn<$e.length&&(At=$e[Fn],[jt,Qt]=ie(At),jt===ct);Fn++)At.info=At.info.replace(z,""),At.hidden=!0,Ut=Fn-De>0?"":" checked",pn+=`<li><input type="radio" name="label-group-${b.editorId}-${De}"${Ut}><label for="group-${b.editorId}-${De}-tab-${Fn-De}" onclick="this.previousElementSibling.click()">${Qt||de(At)}</label></li>
`,Qn+=`<input type="radio" id="group-${b.editorId}-${De}-tab-${Fn-De}" name="group-${b.editorId}-${De}"${Ut}>
`+E($e,Fn,ft,He,vt);return`<div class="code-tabs">
<ul>
`+pn+`</ul>
`+Qn+"</div>"};i.renderer.rules.fence=pe},Wo=Io,zo=i=>{["paragraph_open","table_open","ordered_list_open","bullet_list_open","blockquote_open","hr","html_block","fence"].forEach(b=>{const E=i.renderer.rules[b];E?i.renderer.rules[b]=(Z,z,B,ie,de)=>{let pe;const $e=E(Z,z,B,ie,de);return Z[z].map&&Z[z].level===0&&!/^<!--/.test($e)?(pe=Z[z].map[0],$e.replace(/^(<[^>]*)/,`$1 data-line="${pe}"`)):$e}:i.renderer.rules[b]=(Z,z,B,ie,de)=>{let pe;return Z[z].map&&Z[z].level===0&&(pe=Z[z].map[0],Z[z].attrSet("data-line",String(pe))),de.renderToken(Z,z,B)}})},Yo=(i,b)=>{const{onHtmlChanged:E=()=>{},onGetCatalog:Z=()=>{}}=i,{editorConfig:z,markdownItConfig:B,markdownItPlugins:ie}=d.f,{editorId:de,showCodeRowNumber:pe,theme:$e}=(0,f.useContext)(si),De=(0,f.useRef)([]),ft=(0,f.useRef)($e);(0,f.useEffect)(()=>{ft.current=$e},[$e]);const{hljsRef:He,hljsInited:vt}=Ms(i),{katexRef:ct,katexInited:bt}=Is(i),{reRender:At,replaceMermaid:jt}=Ro(i),[Qt]=(0,f.useState)(()=>{const Sn=oo({html:!0,breaks:!0});B(Sn,{editorId:de});const Bn=[{type:"katex",plugin:Xo,options:{katexRef:ct}},{type:"image",plugin:_r.Z,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:ll,options:{}},{type:"taskList",plugin:es,options:{}},{type:"heading",plugin:Mo,options:{mdHeadingId:i.mdHeadingId,headsRef:De}},{type:"codeTabs",plugin:Wo,options:{editorId:de}},{type:"xss",plugin:ts,options:{xss(an){return{whiteList:Object.assign({},an.getDefaultWhiteList(),{input:["class","disabled","type","checked"]})}}}}];i.noMermaid||Bn.push({type:"mermaid",plugin:Mr,options:{themeRef:ft}}),ie(Bn,{editorId:de}).forEach(an=>{Sn.use(an.plugin,an.options)});const fn=Sn.options.highlight;return Sn.set({highlight:(an,Zn,Yn)=>{if(fn){const qn=fn(an,Zn,Yn);if(qn)return qn}let ln;!i.noHighlight&&He.current?He.current.getLanguage(Zn)?ln=He.current.highlight(an,{language:Zn,ignoreIllegals:!0}).value:ln=He.current.highlightAuto(an).value:ln=Qt.utils.escapeHtml(an);const Vn=pe?(0,p.k)(ln.replace(/^\n+|\n+$/g,"")):`<span class="code-block">${ln.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${Zn}" language=${Zn}>${Vn}</code></pre>`}}),zo(Sn),Sn}),[Ut,pn]=(0,f.useState)(`_article-key_${(0,a.Vj)()}`),[Qn,Fn]=(0,f.useState)(()=>i.sanitize(Qt.render(i.modelValue))),xn=(0,f.useMemo)(()=>(i.noHighlight||vt)&&(i.noKatex||bt),[vt,bt]),Wt=(0,f.useRef)(!0),Nn=(0,f.useCallback)(()=>{De.current=[];const Sn=i.sanitize(Qt.render(i.modelValue));Fn(Sn)},[Qt,i]);return(0,f.useEffect)(()=>{p.b.emit(de,p.B,Qn),E(Qn),Z(De.current),p.b.emit(de,p.l,De.current)},[Qn,Ut]),(0,f.useEffect)(()=>{if(Wt.current){Wt.current=!1;return}const Sn=setTimeout(()=>{Nn()},(z==null?void 0:z.renderDelay)!==void 0?z==null?void 0:z.renderDelay:b?0:500);return()=>{clearTimeout(Sn)}},[xn,$e,Nn]),(0,f.useEffect)(()=>{jt()},[Qn,At]),(0,f.useEffect)(()=>{p.b.on(de,{name:p.m,callback(){p.b.emit(de,p.l,De.current)}})},[]),(0,f.useEffect)(()=>{const Sn=()=>{Nn(),pn(`_article-key_${(0,a.Vj)()}`)};return p.b.on(de,{name:p.R,callback:Sn}),()=>{p.b.remove(de,p.R,Sn)}},[Nn]),{html:Qn,key:Ut}},zs=Yo,al=(i,b,E)=>{const[Z,z]=(0,f.useState)({width:i.inputBoxWitdh}),[B,ie]=(0,f.useState)({left:i.inputBoxWitdh}),de=(0,f.useRef)(i.inputBoxWitdh);return(0,f.useEffect)(()=>{var pe,$e,De;const ft=((pe=b.current)==null?void 0:pe.offsetWidth)||0,He=(($e=b.current)==null?void 0:$e.getBoundingClientRect().x)||0,vt=At=>{var jt;let Qt=At.x-He;Qt<d.M?Qt=d.M:Qt>ft-d.M&&(Qt=ft-d.M);const Ut=`${Qt}px`;z(pn=>Nt(Nt({},pn),{width:Ut})),ie(pn=>Nt(Nt({},pn),{left:Ut})),de.current=Ut,(jt=i.onInputBoxWitdhChange)==null||jt.call(i,Ut)},ct=()=>{ie(At=>Nt({},At)),document.addEventListener("mousemove",vt)},bt=()=>{ie(At=>Nt({},At)),document.removeEventListener("mousemove",vt)};return(De=E.current)==null||De.addEventListener("mousedown",ct),document.addEventListener("mouseup",bt),()=>{var At,jt;(At=E.current)==null||At.removeEventListener("mousedown",ct),(jt=E.current)==null||jt.removeEventListener("mouseup",bt)}},[b,i,E]),(0,f.useEffect)(()=>{i.inputBoxWitdh&&(z(pe=>Nt(Nt({},pe),{width:i.inputBoxWitdh})),ie(pe=>Nt(Nt({},pe),{left:i.inputBoxWitdh
`),K=['<span rn-wrapper aria-hidden="true">'];return q.forEach(()=>{K.push("<span></span>")}),K.push("</span>"),`<span class="code-block">${W}</span>${K.join("")}`},Rt=W=>W.filter(q=>q!==!1).join(" "),Re=(W,q)=>{if(!W||!q)return 0;const K=W==null?void 0:W.getBoundingClientRect();if(q===document.documentElement)return K.top-q.clientTop;const Se=q==null?void 0:q.getBoundingClientRect();return K.top-Se.top},Ie=({tocItem:W,mdHeadingId:q,scrollElement:K,onClick:Se,scrollElementOffsetTop:Ke=0})=>(0,l.a)("div",{className:Rt([`${p.p}-catalog-link`,W.active&&`${p.p}-catalog-active`]),onClick:ot=>{Se&&Se(ot,W),ot.stopPropagation();const mt=q(W.text,W.level,W.index),ut=document.getElementById(mt),Vt=K instanceof Element?K:document.querySelector(K);if(ut&&Vt){let zt=ut.offsetParent,It=ut.offsetTop;if(Vt.contains(zt))for(;zt&&Vt!=zt;)It+=zt==null?void 0:zt.offsetTop,zt=zt==null?void 0:zt.offsetParent;Vt==null||Vt.scrollTo({top:It-Ke,behavior:"smooth"})}},children:[(0,l.j)("span",{title:W.text,children:W.text}),(0,l.j)("div",{className:`${p.p}-catalog-wrapper`,children:W.children&&W.children.map(ot=>(0,l.j)(Ie,{mdHeadingId:q,tocItem:ot,scrollElement:K,onClick:Se,scrollElementOffsetTop:Ke},`${ot.text}-${ot.index}`))})]}),$=Ie,I=W=>{const{editorId:q,mdHeadingId:K=p.e.mdHeadingId,theme:Se="light",offsetTop:Ke=20}=W,[ot,mt]=(0,f.useState)([]),[ut,Vt]=(0,f.useState)(),zt=(0,f.useMemo)(()=>{const on=[];return ot.forEach((Xt,$t)=>{const{text:Ve,level:A}=Xt,D={level:A,text:Ve,index:$t+1,active:ut===Xt};if(on.length===0)on.push(D);else{let oe=on[on.length-1];if(D.level>oe.level)for(let ge=oe.level+1;ge<=6;ge++){const{children:Te}=oe;if(!Te){oe.children=[D];break}if(oe=Te[Te.length-1],D.level<=oe.level){Te.push(D);break}}else on.push(D)}}),on},[ut,ot]),[It]=(0,f.useState)(()=>W.scrollElement||`#${q}-preview-wrapper`),sn=(0,f.useCallback)(()=>It instanceof HTMLElement?It:document.querySelector(It),[It]);return(0,f.useEffect)(()=>{let on=[];const Xt=D=>{if(D.length===0)return mt([]),!1;const{activeHead:oe}=D.reduce((ge,Te,Ne)=>{const rt=document.getElementById(K(Te.text,Te.level,Ne+1));if(rt instanceof HTMLElement){const Lt=sn(),Yt=Re(rt,Lt);if(Yt<Ke&&Yt>ge.minTop)return{activeHead:Te,minTop:Yt}}return ge},{activeHead:D[0],minTop:Number.MIN_SAFE_INTEGER});Vt(oe),mt(D),on=D},$t=sn(),Ve=$t===document.documentElement?window:$t,A=()=>{Xt(on)};return x.on(q,{name:nt,callback:D=>{Ve==null||Ve.removeEventListener("scroll",A),Xt(D),Ve==null||Ve.addEventListener("scroll",A)}}),x.emit(q,qe),Ve==null||Ve.addEventListener("scroll",A),()=>{x.remove(q,nt,Xt),Ve==null||Ve.removeEventListener("scroll",A)}},[Ke,K,sn]),(0,f.useEffect)(()=>{W.onActive&&W.onActive(ut)},[ut,W]),(0,l.j)("div",{className:`${p.p}-catalog${Se==="dark"?"-dark":""} ${W.className||""} `,style:W.style,children:zt.map(on=>(0,l.j)($,{mdHeadingId:K,tocItem:on,scrollElement:It,onClick:W.onClick,scrollElementOffsetTop:W.scrollElementOffsetTop},`${on.text}-${on.index}`))})},H=f.memo(I)},14405:function(Xe,ye,o){"use strict";o.d(ye,{F:function(){return U},a:function(){return w},j:function(){return te}});var l=o(67294),f={exports:{}},p={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var d;function a(){if(d)return p;d=1;var ce=l,N=Symbol.for("react.element"),xe=Symbol.for("react.fragment"),be=Object.prototype.hasOwnProperty,ne=ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,me={key:!0,ref:!0,__self:!0,__source:!0};function ke(re,ae,Ce){var Ee,nt={},qe=null,dt=null;Ce!==void 0&&(qe=""+Ce),ae.key!==void 0&&(qe=""+ae.key),ae.ref!==void 0&&(dt=ae.ref);for(Ee in ae)be.call(ae,Ee)&&!me.hasOwnProperty(Ee)&&(nt[Ee]=ae[Ee]);if(re&&re.defaultProps)for(Ee in ae=re.defaultProps,ae)nt[Ee]===void 0&&(nt[Ee]=ae[Ee]);return{$$typeof:N,type:re,key:qe,ref:dt,props:nt,_owner:ne.current}}return p.Fragment=xe,p.jsx=ke,p.jsxs=ke,p}var S={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var m;function x(){return m||(m=1),S}f.exports=a();var V=f.exports;const U=V.Fragment,te=V.jsx,w=V.jsxs},97337:function(Xe,ye,o){var w,N,xe,be,ne,me,ke,re,ae,Ce,Ee,nt,qe,dt,Je,lt,Rt,Re,Ie,$,I,H,W,q,fl,Se,Ke,ot,mt,ut,gl,zt,It,sn,on,lr,$t,ar,A,dl,oe,tl,Te,nl,rt,ii,Yt,pl,nn,Hs;"use strict";var l=o(34155);const f=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,p=new Set,d=(gn,Le,ze,Ot)=>{typeof l=="object"&&l&&typeof l.emitWarning=="function"?l.emitWarning(gn,Le,ze,Ot):console.error(`[${ze}] ${Le}: ${gn}`)},a=gn=>!p.has(gn),S=Symbol("type"),m=gn=>gn&&gn===Math.floor(gn)&&gn>0&&isFinite(gn),x=gn=>m(gn)?gn<=Math.pow(2,8)?Uint8Array:gn<=Math.pow(2,16)?Uint16Array:gn<=Math.pow(2,32)?Uint32Array:gn<=Number.MAX_SAFE_INTEGER?V:null:null;class V extends Array{constructor(Le){super(Le);this.fill(0)}}const ce=class{constructor(Le,ze){mi(this,"heap");mi(this,"length");if(!Qe(ce,w))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new ze(Le),this.length=0}static create(Le){const ze=x(Le);if(!ze)return[];Cn(ce,w,!0);const Ot=new ce(Le,ze);return Cn(ce,w,!1),Ot}push(Le){this.heap[this.length++]=Le}pop(){return this.heap[--this.length]}};let U=ce;w=new WeakMap,w.set(U,!1);const tn=class{constructor(Le){q.add(this);ut.add(this);on.add(this);$t.add(this);A.add(this);oe.add(this);Te.add(this);rt.add(this);Yt.add(this);nn.add(this);N.set(this,void 0);xe.set(this,void 0);be.set(this,void 0);ne.set(this,void 0);me.set(this,void 0);mi(this,"ttl");mi(this,"ttlResolution");mi(this,"ttlAutopurge");mi(this,"updateAgeOnGet");mi(this,"updateAgeOnHas");mi(this,"allowStale");mi(this,"noDisposeOnSet");mi(this,"noUpdateTTL");mi(this,"maxEntrySize");mi(this,"sizeCalculation");mi(this,"noDeleteOnFetchRejection");mi(this,"noDeleteOnStaleGet");mi(this,"allowStaleOnFetchAbort");mi(this,"allowStaleOnFetchRejection");mi(this,"ignoreFetchAbort");ke.set(this,void 0);re.set(this,void 0);ae.set(this,void 0);Ce.set(this,void 0);Ee.set(this,void 0);nt.set(this,void 0);qe.set(this,void 0);dt.set(this,void 0);Je.set(this,void 0);lt.set(this,void 0);Rt.set(this,void 0);Re.set(this,void 0);Ie.set(this,void 0);$.set(this,void 0);I.set(this,void 0);H.set(this,void 0);W.set(this,void 0);Se.set(this,()=>{});Ke.set(this,()=>{});ot.set(this,()=>{});mt.set(this,()=>!1);zt.set(this,Le=>{});It.set(this,(Le,ze,Ot)=>{});sn.set(this,(Le,ze,Ot,yt)=>{if(Ot||yt)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:ze=0,ttl:Ot,ttlResolution:yt=1,ttlAutopurge:Oe,updateAgeOnGet:Ge,updateAgeOnHas:it,allowStale:Ye,dispose:Pt,disposeAfter:qt,noDisposeOnSet:Tt,noUpdateTTL:Ht,maxSize:Gt=0,maxEntrySize:xt=0,sizeCalculation:Kt,fetchMethod:Jt,noDeleteOnFetchRejection:en,noDeleteOnStaleGet:_t,allowStaleOnFetchRejection:On,allowStaleOnFetchAbort:dn,ignoreFetchAbort:Ln}=Le;if(ze!==0&&!m(ze))throw new TypeError("max option must be a nonnegative integer");const En=ze?x(ze):Array;if(!En)throw new Error("invalid max value: "+ze);if(Cn(this,N,ze),Cn(this,xe,Gt),this.maxEntrySize=xt||Qe(this,xe),this.sizeCalculation=Kt,this.sizeCalculation){if(!Qe(this,xe)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Jt!==void 0&&typeof Jt!="function")throw new TypeError("fetchMethod must be a function if specified");if(Cn(this,me,Jt),Cn(this,H,!!Jt),Cn(this,ae,new Map),Cn(this,Ce,new Array(ze).fill(void 0)),Cn(this,Ee,new Array(ze).fill(void 0)),Cn(this,nt,new En(ze)),Cn(this,qe,new En(ze)),Cn(this,dt,0),Cn(this,Je,0),Cn(this,lt,U.create(ze)),Cn(this,ke,0),Cn(this,re,0),typeof Pt=="function"&&Cn(this,be,Pt),typeof qt=="function"?(Cn(this,ne,qt),Cn(this,Rt,[])):(Cn(this,ne,void 0),Cn(this,Rt,void 0)),Cn(this,I,!!Qe(this,be)),Cn(this,W,!!Qe(this,ne)),this.noDisposeOnSet=!!Tt,this.noUpdateTTL=!!Ht,this.noDeleteOnFetchRejection=!!en,this.allowStaleOnFetchRejection=!!On,this.allowStaleOnFetchAbort=!!dn,this.ignoreFetchAbort=!!Ln,this.
`," "],d=["{","}","|","\\","^","`"].concat(p),a=["'"].concat(d),S=["%","/","?",";","#"].concat(a),m=["/","?","#"],x=255,V=/^[+a-z0-9A-Z_-]{0,63}$/,U=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,te={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ce(N,xe){if(N&&N instanceof ye)return N;var be=new ye;return be.parse(N,xe),be}ye.prototype.parse=function(N,xe){var be,ne,me,ke,re,ae=N;if(ae=ae.trim(),!xe&&N.split("#").length===1){var Ce=f.exec(ae);if(Ce)return this.pathname=Ce[1],Ce[2]&&(this.search=Ce[2]),this}var Ee=o.exec(ae);if(Ee&&(Ee=Ee[0],me=Ee.toLowerCase(),this.protocol=Ee,ae=ae.substr(Ee.length)),(xe||Ee||ae.match(/^\/\/[^@\/]+@[^@\/]+/))&&(re=ae.substr(0,2)==="//",re&&!(Ee&&te[Ee])&&(ae=ae.substr(2),this.slashes=!0)),!te[Ee]&&(re||Ee&&!w[Ee])){var nt=-1;for(be=0;be<m.length;be++)ke=ae.indexOf(m[be]),ke!==-1&&(nt===-1||ke<nt)&&(nt=ke);var qe,dt;for(nt===-1?dt=ae.lastIndexOf("@"):dt=ae.lastIndexOf("@",nt),dt!==-1&&(qe=ae.slice(0,dt),ae=ae.slice(dt+1),this.auth=qe),nt=-1,be=0;be<S.length;be++)ke=ae.indexOf(S[be]),ke!==-1&&(nt===-1||ke<nt)&&(nt=ke);nt===-1&&(nt=ae.length),ae[nt-1]===":"&&nt--;var Je=ae.slice(0,nt);ae=ae.slice(nt),this.parseHost(Je),this.hostname=this.hostname||"";var lt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!lt){var Rt=this.hostname.split(/\./);for(be=0,ne=Rt.length;be<ne;be++){var Re=Rt[be];if(!!Re&&!Re.match(V)){for(var Ie="",$=0,I=Re.length;$<I;$++)Re.charCodeAt($)>127?Ie+="x":Ie+=Re[$];if(!Ie.match(V)){var H=Rt.slice(0,be),W=Rt.slice(be+1),q=Re.match(U);q&&(H.push(q[1]),W.unshift(q[2])),W.length&&(ae=W.join(".")+ae),this.hostname=H.join(".");break}}}}this.hostname.length>x&&(this.hostname=""),lt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var K=ae.indexOf("#");K!==-1&&(this.hash=ae.substr(K),ae=ae.slice(0,K));var Se=ae.indexOf("?");return Se!==-1&&(this.search=ae.substr(Se),ae=ae.slice(0,Se)),ae&&(this.pathname=ae),w[me]&&this.hostname&&!this.pathname&&(this.pathname=""),this},ye.prototype.parseHost=function(N){var xe=l.exec(N);xe&&(xe=xe[0],xe!==":"&&(this.port=xe.substr(1)),N=N.substr(0,N.length-xe.length)),N&&(this.hostname=N)},Xe.exports=ce},3689:function(Xe,ye,o){"use strict";o.r(ye),o.d(ye,{ucs2decode:function(){return re},ucs2encode:function(){return ae},decode:function(){return qe},encode:function(){return dt},toASCII:function(){return lt},toUnicode:function(){return Je}});const l=2147483647,f=36,p=1,d=26,a=38,S=700,m=72,x=128,V="-",U=/^xn--/,te=/[^\0-\x7F]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,ce={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=f-p,xe=Math.floor,be=String.fromCharCode;function ne(Re){throw new RangeError(ce[Re])}function me(Re,Ie){const $=[];let I=Re.length;for(;I--;)$[I]=Ie(Re[I]);return $}function ke(Re,Ie){const $=Re.split("@");let I="";$.length>1&&(I=$[0]+"@",Re=$[1]),Re=Re.replace(w,".");const H=Re.split("."),W=me(H,Ie).join(".");return I+W}function re(Re){const Ie=[];let $=0;const I=Re.length;for(;$<I;){const H=Re.charCodeAt($++);if(H>=55296&&H<=56319&&$<I){const W=Re.charCodeAt($++);(W&64512)==56320?Ie.push(((H&1023)<<10)+(W&1023)+65536):(Ie.push(H),$--)}else Ie.push(H)}return Ie}const ae=Re=>String.fromCodePoint(...Re),Ce=function(Re){return Re>=48&&Re<58?26+(Re-48):Re>=65&&Re<91?Re-65:Re>=97&&Re<123?Re-97:f},Ee=function(Re,Ie){return Re+22+75*(Re<26)-((Ie!=0)<<5)},nt=function(Re,Ie,$){let I=0;for(Re=$?xe(Re/S):Re>>1,Re+=xe(Re/Ie);Re>N*d>>1;I+=f)Re=xe(Re/N);return xe(I+(N+1)*Re/(Re+a))},qe=function(Re){const Ie=[],$=Re.length;let I=0,H=x,W=m,q=Re.lastIndexOf(V);q<0&&(q=0);for(let K=0;K<q;++K)Re.charCodeAt(K)>=128&&ne("not-basic"),Ie.push(Re.charCodeAt(K));for(let K=q>0?q+1:0;K<$;){const Se=I;for(let ot=1,mt=f;;mt+=f){K>=$&&ne("invalid-input");const ut=Ce(Re.charCodeAt(K++));ut>=f&&ne("invalid-input"),ut>xe((l-I)/ot)&&ne("overflow"),I+=ut*ot;const Vt=mt<=W?p:mt>=W+d?d:mt-W;if(ut<Vt)break;const zt=f-Vt;ot>xe(l/zt)&&ne("overflow"),ot*=z
`)}static newName(){let V=d[f]||1;return d[f]=V+1,l+V.toString(36)}static mount(V,U,te){let w=V[p],ce=te&&te.nonce;w?ce&&w.setNonce(ce):w=new m(V,ce),w.mount(Array.isArray(U)?U:[U])}}let S=new Map;class m{constructor(V,U){this.root=V;let te=V.ownerDocument||V,w=te.defaultView;if(!V.head&&V.adoptedStyleSheets&&w.CSSStyleSheet){let ce=S.get(te);if(ce)return V[p]=ce;this.sheet=new w.CSSStyleSheet,S.set(te,this)}else this.styleTag=te.createElement("style"),U&&this.styleTag.setAttribute("nonce",U);this.modules=[],V[p]=this}mount(V){let U=this.sheet,te=0,w=0;for(let ce=0;ce<V.length;ce++){let N=V[ce],xe=this.modules.indexOf(N);if(xe<w&&xe>-1&&(this.modules.splice(xe,1),w--,xe=-1),xe==-1){if(this.modules.splice(w++,0,N),U)for(let be=0;be<N.rules.length;be++)U.insertRule(N.rules[be],te++)}else{for(;w<xe;)te+=this.modules[w++].rules.length;te+=N.rules.length,w++}}if(U)this.root.adoptedStyleSheets.indexOf(this.sheet)<0&&(this.root.adoptedStyleSheets=[this.sheet,...this.root.adoptedStyleSheets]);else{let ce="";for(let xe=0;xe<this.modules.length;xe++)ce+=this.modules[xe].getRules()+`
`;this.styleTag.textContent=ce;let N=this.root.head||this.root;this.styleTag.parentNode!=N&&N.insertBefore(this.styleTag,N.firstChild)}}setNonce(V){this.styleTag&&this.styleTag.getAttribute("nonce")!=V&&this.styleTag.setAttribute("nonce",V)}}},11742:function(Xe){Xe.exports=function(){var ye=document.getSelection();if(!ye.rangeCount)return function(){};for(var o=document.activeElement,l=[],f=0;f<ye.rangeCount;f++)l.push(ye.getRangeAt(f));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null;break}return ye.removeAllRanges(),function(){ye.type==="Caret"&&ye.removeAllRanges(),ye.rangeCount||l.forEach(function(p){ye.addRange(p)}),o&&o.focus()}}},99413:function(Xe){Xe.exports=/[\0-\x1F\x7F-\x9F]/},52326:function(Xe){Xe.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},73189:function(Xe){Xe.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},35045:function(Xe){Xe.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},84205:function(Xe,ye,o){"use strict";ye.Any=o(29369),ye.Cc=o(99413),ye.Cf=o(52326),ye.P=o(73189),ye.Z=o(35045)},29369:function(Xe){Xe.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},82302:function(Xe,ye,o){var l=o(29970).FilterCSS,f=o(29970).getDefaultWhiteList,p=o(75938);function d(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],stro