(window.webpackJsonp=window.webpackJsonp||[]).push([[179,6,7,16],{"+NIl":function(ct,Ge,v){(function(X){X(v("VrN/"))})(function(X){"use strict";X.defineMode("stex",function(Oe,xe){"use strict";function je(le,U){le.cmdState.push(U)}function Ce(le){return le.cmdState.length>0?le.cmdState[le.cmdState.length-1]:null}function ie(le){var U=le.cmdState.pop();U&&U.closeBracket()}function B(le){for(var U=le.cmdState,M=U.length-1;M>=0;M--){var z=U[M];if(z.name=="DEFAULT")continue;return z}return{styleIdentifier:function(){return null}}}function A(le,U,M){return function(){this.name=le,this.bracketNo=0,this.style=U,this.styles=M,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var k={};k.importmodule=A("importmodule","tag",["string","builtin"]),k.documentclass=A("documentclass","tag",["","atom"]),k.usepackage=A("usepackage","tag",["atom"]),k.begin=A("begin","tag",["atom"]),k.end=A("end","tag",["atom"]),k.label=A("label","tag",["atom"]),k.ref=A("ref","tag",["atom"]),k.eqref=A("eqref","tag",["atom"]),k.cite=A("cite","tag",["atom"]),k.bibitem=A("bibitem","tag",["atom"]),k.Bibitem=A("Bibitem","tag",["atom"]),k.RBibitem=A("RBibitem","tag",["atom"]),k.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ne(le,U){le.f=U}function q(le,U){var M;if(le.match(/^\\[a-zA-Z@]+/)){var z=le.current().slice(1);return M=k.hasOwnProperty(z)?k[z]:k.DEFAULT,M=new M,je(U,M),ne(U,Ae),M.style}if(le.match(/^\\[$&%#{}_]/))return"tag";if(le.match(/^\\[,;!\/\\]/))return"tag";if(le.match("\\["))return ne(U,function(ae,we){return me(ae,we,"\\]")}),"keyword";if(le.match("\\("))return ne(U,function(ae,we){return me(ae,we,"\\)")}),"keyword";if(le.match("$$"))return ne(U,function(ae,we){return me(ae,we,"$$")}),"keyword";if(le.match("$"))return ne(U,function(ae,we){return me(ae,we,"$")}),"keyword";var re=le.next();if(re=="%")return le.skipToEnd(),"comment";if(re=="}"||re=="]"){if(M=Ce(U),M)M.closeBracket(re),ne(U,Ae);else return"error";return"bracket"}else return re=="{"||re=="["?(M=k.DEFAULT,M=new M,je(U,M),"bracket"):/\d/.test(re)?(le.eatWhile(/[\w.%]/),"atom"):(le.eatWhile(/[\w\-_]/),M=B(U),M.name=="begin"&&(M.argument=le.current()),M.styleIdentifier())}function me(le,U,M){if(le.eatSpace())return null;if(M&&le.match(M))return ne(U,q),"keyword";if(le.match(/^\\[a-zA-Z@]+/))return"tag";if(le.match(/^[a-zA-Z]+/))return"variable-2";if(le.match(/^\\[$&%#{}_]/))return"tag";if(le.match(/^\\[,;!\/]/))return"tag";if(le.match(/^[\^_&]/))return"tag";if(le.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(le.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var z=le.next();return z=="{"||z=="}"||z=="["||z=="]"||z=="("||z==")"?"bracket":z=="%"?(le.skipToEnd(),"comment"):"error"}function Ae(le,U){var M=le.peek(),z;return M=="{"||M=="["?(z=Ce(U),z.openBracket(M),le.eat(M),ne(U,q),"bracket"):/[ \t\r]/.test(M)?(le.eat(M),null):(ne(U,q),ie(U),q(le,U))}return{startState:function(){var le=xe.inMathMode?function(U,M){return me(U,M)}:q;return{cmdState:[],f:le}},copyState:function(le){return{cmdState:le.cmdState.slice(),f:le.f}},token:function(le,U){return U.f(le,U)},blankLine:function(le){le.f=q,le.cmdState.length=0},lineComment:"%"}}),X.defineMIME("text/x-stex","stex"),X.defineMIME("text/x-latex","stex")})},"19Vz":function(ct,Ge,v){(function(X){X(v("VrN/"))})(function(X){X.defineOption("placeholder","",function(A,k,ne){var q=ne&&ne!=X.Init;if(k&&!q)A.on("blur",Ce),A.on("change",ie),A.on("swapDoc",ie),X.on(A.getInputField(),"compositionupdate",A.state.placeholderCompose=function(){je(A)}),ie(A);else if(!k&&q){A.off("blur",Ce),A.off("change",ie),A.off("swapDoc",ie),X.off(A.getInputField(),"compositionupdate",A.state.placeholderCompose),Oe(A);var me=A.getWrapperElement();me.className=me.className.replace(" CodeMirror-empty","")}k&&!A.hasFocus()&&Ce(A)});function Oe(A){A.state.placeholder&&(A.state.placeholder.parentNode.removeChild(A.state.placeholder),A.state.placeholder=null)}function xe(A){Oe(A);var k=A.state.placeholder=document.createElement("pre");k.style.cssText="height: 0; overflow: visible",k.style.direction=A.getOption("direction"),k.className="CodeMirror-placeholder CodeMirror-line-like";var ne=A.getOption("placeholder");typeof ne=="string"&&(ne=document.createTextNode(ne)),k.appendChild(ne),A.display.lineSpace.insertBefore(k,A.display.lineSpace.firstChild)}function je(A){setTimeout(function(){var k=!1,ne=A.getInputField();ne.nodeName=="TEXTAREA"?k=!ne.value:A.lineCount()==1&&(k=!/[^\u200b]/.test(ne.querySelector(".CodeMirror-line").textContent)),k?xe(A):Oe(A)},20)}function Ce(A){B(A)&&xe(A)}function ie(A){var k=A.getWrapperElement(),ne=B(A);k.className=k.className.replace(" CodeMirror-empty","")+(ne?" CodeMirror-empty":""),ne?xe(A):Oe(A)}function B(A){return A.lineCount()===1&&A.getLine(0)===""}})},"1eCo":function(ct,Ge,v){(function(X){X(v("VrN/"))})(function(X){"use strict";var Oe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},xe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};X.defineMode("xml",function(je,Ce){var ie=je.indentUnit,B={},A=Ce.htmlMode?Oe:xe;for(var k in A)B[k]=A[k];for(var k in Ce)B[k]=Ce[k];var ne,q;function me(w,oe){function V(J){return oe.tokenize=J,J(w,oe)}var S=w.next();if(S=="<")return w.eat("!")?w.eat("[")?w.match("CDATA[")?V(U("atom","]]>")):null:w.match("--")?V(U("comment","-->")):w.match("DOCTYPE",!0,!0)?(w.eatWhile(/[\w\._\-]/),V(M(1))):null:w.eat("?")?(w.eatWhile(/[\w\._\-]/),oe.tokenize=U("meta","?>"),"meta"):(ne=w.eat("/")?"closeTag":"openTag",oe.tokenize=Ae,"tag bracket");if(S=="&"){var N;return w.eat("#")?w.eat("x")?N=w.eatWhile(/[a-fA-F\d]/)&&w.eat(";"):N=w.eatWhile(/[\d]/)&&w.eat(";"):N=w.eatWhile(/[\w\.\-:]/)&&w.eat(";"),N?"atom":"error"}else return w.eatWhile(/[^&<]/),null}me.isInText=!0;function Ae(w,oe){var V=w.next();if(V==">"||V=="/"&&w.eat(">"))return oe.tokenize=me,ne=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return ne="equals",null;if(V=="<"){oe.tokenize=me,oe.state=we,oe.tagName=oe.tagStart=null;var S=oe.tokenize(w,oe);return S?S+" tag error":"tag error"}else return/[\'\"]/.test(V)?(oe.tokenize=le(V),oe.stringStartCol=w.column(),oe.tokenize(w,oe)):(w.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function le(w){var oe=function(V,S){for(;!V.eol();)if(V.next()==w){S.tokenize=Ae;break}return"string"};return oe.isInAttribute=!0,oe}function U(w,oe){return function(V,S){for(;!V.eol();){if(V.match(oe)){S.tokenize=me;break}V.next()}return w}}function M(w){return function(oe,V){for(var S;(S=oe.next())!=null;){if(S=="<")return V.tokenize=M(w+1),V.tokenize(oe,V);if(S==">")if(w==1){V.tokenize=me;break}else return V.tokenize=M(w-1),V.tokenize(oe,V)}return"meta"}}function z(w,oe,V){this.prev=w.context,this.tagName=oe,this.indent=w.indented,this.startOfLine=V,(B.doNotIndent.hasOwnProperty(oe)||w.context&&w.context.noIndent)&&(this.noIndent=!0)}function re(w){w.context&&(w.context=w.context.prev)}function ae(w,oe){for(var V;;){if(!w.context)return;if(V=w.context.tagName,!B.contextGrabbers.hasOwnProperty(V)||!B.contextGrabbers[V].hasOwnProperty(oe))return;re(w)}}function we(w,oe,V){return w=="openTag"?(V.tagStart=oe.column(),Ne):w=="closeTag"?fe:we}function Ne(w,oe,V){return w=="word"?(V.tagName=oe.current(),q="tag",se):B.allowMissingTagName&&w=="endTag"?(q="tag bracket",se(w,oe,V)):(q="error",Ne)}function fe(w,oe,V){if(w=="word"){var S=oe.current();return V.context&&V.context.tagName!=S&&B.implicitlyClosed.hasOwnProperty(V.context.tagName)&&re(V),V.context&&V.context.tagName==S||B.matchClosing===!1?(q="tag",Z):(q="tag error",he)}else return B.allowMissingTagName&&w=="endTag"?(q="tag bracket",Z(w,oe,V)):(q="error",he)}function Z(w,oe,V){return w!="endTag"?(q="error",Z):(re(V),we)}function he(w,oe,V){return q="error",Z(w,oe,V)}function se(w,oe,V){if(w=="word")return q="attribute",_;if(w=="endTag"||w=="selfcloseTag"){var S=V.tagName,N=V.tagStart;return V.tagName=V.tagStart=null,w=="selfcloseTag"||B.autoSelfClosers.hasOwnProperty(S)?ae(V,S):(ae(V,S),V.context=new z(V,S,N==V.indented)),we}return q="error",se}function _(w,oe,V){return w=="equals"?Q:(B.allowMissing||(q="error"),se(w,oe,V))}function Q(w,oe,V){return w=="string"?P:w=="word"&&B.allowUnquoted?(q="string",se):(q="error",se(w,oe,V))}function P(w,oe,V){return w=="string"?P:se(w,oe,V)}return{startState:function(w){var oe={tokenize:me,state:we,indented:w||0,tagName:null,tagStart:null,context:null};return w!=null&&(oe.baseIndent=w),oe},token:function(w,oe){if(!oe.tagName&&w.sol()&&(oe.indented=w.indentation()),w.eatSpace())return null;ne=null;var V=oe.tokenize(w,oe);return(V||ne)&&V!="comment"&&(q=null,oe.state=oe.state(ne||V,w,oe),q&&(V=q=="error"?V+" error":q)),V},indent:function(w,oe,V){var S=w.context;if(w.tokenize.isInAttribute)return w.tagStart==w.indented?w.stringStartCol+1:w.indented+ie;if(S&&S.noIndent)return X.Pass;if(w.tokenize!=Ae&&w.tokenize!=me)return V?V.match(/^(\s*)/)[0].length:0;if(w.tagName)return B.multilineTagIndentPastTag!==!1?w.tagStart+w.tagName.length+2:w.tagStart+ie*(B.multilineTagIndentFactor||1);if(B.alignCDATA&&/$/,blockCommentStart:"",configuration:B.htmlMode?"html":"xml",helperType:B.htmlMode?"html":"xml",skipAttribute:function(w){w.state==Q&&(w.state=se)},xmlCurrentTag:function(w){return w.tagName?{name:w.tagName,close:w.type=="closeTag"}:null},xmlCurrentContext:function(w){for(var oe=[],V=w.context;V;V=V.prev)V.tagName&&oe.push(V.tagName);return oe.reverse()}}}),X.defineMIME("text/xml","xml"),X.defineMIME("application/xml","xml"),X.mimeModes.hasOwnProperty("text/html")||X.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"7ahc":function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return Ne});var X=v("k1fw"),Oe=v("0Owb"),xe=v("+L6B"),je=v("2/Rp"),Ce=v("y8nQ"),ie=v("Vl3Y"),B=v("tJVT"),A=v("OaEy"),k=v("2fM7"),ne=v("q1tI"),q=v.n(ne),me=v("VrN/"),Ae=v.n(me),le=v("p77/"),U=v.n(le),M=v("c5Ni"),z=v.n(M),re=k.a.Option,ae={labelCol:{span:4},wrapperCol:{span:20}},we={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ge.b=function(fe){var Z=fe.callback,he=fe.onCancel,se=Object(ne.useState)("python"),_=Object(B.a)(se,2),Q=_[0],P=_[1];function w(V){P(we[V][1])}function oe(V){Z(V)}return q.a.createElement(ie.a,Object(Oe.a)({},ae,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:oe}),q.a.createElement(ie.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},q.a.createElement(k.a,{onChange:w},Object.keys(we).map(function(V){return q.a.createElement(re,{key:V,value:V},we[V][0])}))),q.a.createElement(ie.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},q.a.createElement(Ne,{mode:Q})),q.a.createElement("div",{className:"flex-container flex-end"},q.a.createElement(je.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),q.a.createElement(je.a,{type:"ghost",onClick:he},"\u53D6\u6D88")))};function Ne(fe){var Z=fe.value,he=fe.onChange,se=fe.mode,_=fe.options,Q=_===void 0?{}:_,P=Object(ne.useRef)(),w=Object(ne.useState)(),oe=Object(B.a)(w,2),V=oe[0],S=oe[1];return Object(ne.useEffect)(function(){if(V){function N(J){var K=J.getValue();he&&he(K)}return V.on("change",N),function(){V.off("change",N)}}},[V,he]),Object(ne.useEffect)(function(){V&&V.setOption("mode",se)},[V,se]),Object(ne.useEffect)(function(){V&&((Z!==V.getValue()||Z==="")&&setTimeout(function(){V.setValue(Z||" ")},300))},[V,Z]),Object(ne.useEffect)(function(){if(P.current&&!V){var N=Ae.a.fromTextArea(P.current,Object(X.a)({mode:se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Q));S(N)}},[P.current,V]),q.a.createElement("div",{className:"my-codemirror-container"},q.a.createElement("textarea",{ref:P}))}},"7ixt":function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return xe});var X={adjustX:1,adjustY:1},Oe=[0,0],xe={left:{points:["cr","cl"],overflow:X,offset:[-4,0],targetOffset:Oe},right:{points:["cl","cr"],overflow:X,offset:[4,0],targetOffset:Oe},top:{points:["bc","tc"],overflow:X,offset:[0,-4],targetOffset:Oe},bottom:{points:["tc","bc"],overflow:X,offset:[0,4],targetOffset:Oe},topLeft:{points:["bl","tl"],overflow:X,offset:[0,-4],targetOffset:Oe},leftTop:{points:["tr","tl"],overflow:X,offset:[-4,0],targetOffset:Oe},topRight:{points:["br","tr"],overflow:X,offset:[0,-4],targetOffset:Oe},rightTop:{points:["tl","tr"],overflow:X,offset:[4,0],targetOffset:Oe},bottomRight:{points:["tr","br"],overflow:X,offset:[0,4],targetOffset:Oe},rightBottom:{points:["bl","br"],overflow:X,offset:[4,0],targetOffset:Oe},bottomLeft:{points:["tl","bl"],overflow:X,offset:[0,4],targetOffset:Oe},leftBottom:{points:["br","bl"],overflow:X,offset:[-4,0],targetOffset:Oe}},je=xe},"815F":function(ct,Ge,v){"use strict";v.d(Ge,"e",function(){return B}),v.d(Ge,"c",function(){return k}),v.d(Ge,"d",function(){return ne}),v.d(Ge,"a",function(){return me}),v.d(Ge,"f",function(){return Ae}),v.d(Ge,"b",function(){return le});var X=v("KQm4"),Oe=v("VTBJ"),xe=v("Ff2n"),je=v("Zm9Q"),Ce=v("Kwbf"),ie=v("OZM5");function B(U,M){return U!=null?U:M}function A(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=new Map;function z(re){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(re||[]).forEach(function(we){var Ne=we.key,fe=we.children;Object(Ce.a)(Ne!=null,"Tree node must have a certain key: [".concat(ae).concat(Ne,"]"));var Z=String(Ne);Object(Ce.a)(!M.has(Z)||Ne===null||Ne===void 0,"Same 'key' exist in the Tree: ".concat(Z)),M.set(Z,!0),z(fe,"".concat(ae).concat(Z," > "))})}z(U)}function k(U){function M(z){var re=Object(je.a)(z);return re.map(function(ae){if(!Object(ie.i)(ae))return Object(Ce.a)(!ae,"Tree/TreeNode can only accept TreeNode as children."),null;var we=ae.key,Ne=ae.props,fe=Ne.children,Z=Object(xe.a)(Ne,["children"]),he=Object(Oe.a)({key:we},Z),se=M(fe);return se.length&&(he.children=se),he}).filter(function(ae){return ae})}return M(U)}function ne(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(M===!0?[]:M),re=[];function ae(we){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return we.map(function(fe,Z){var he=Object(ie.h)(Ne?Ne.pos:"0",Z),se=B(fe.key,he),_=Object(Oe.a)(Object(Oe.a)({},fe),{},{parent:Ne,pos:he,children:null,data:fe,isStart:[].concat(Object(X.a)(Ne?Ne.isStart:[]),[Z===0]),isEnd:[].concat(Object(X.a)(Ne?Ne.isEnd:[]),[Z===we.length-1])});return re.push(_),M===!0||z.has(se)?_.children=ae(fe.children||[],_):_.children=[],_})}return ae(U),re}function q(U,M,z){var re;z?typeof z=="string"?re=function(Ne){return Ne[z]}:typeof z=="function"&&(re=function(Ne){return z(Ne)}):re=function(Ne,fe){return B(Ne.key,fe)};function ae(we,Ne,fe){var Z=we?we.children:U,he=we?Object(ie.h)(fe.pos,Ne):"0";if(we){var se=re(we,he),_={node:we,index:Ne,pos:he,key:se,parentPos:fe.node?fe.pos:null,level:fe.level+1};M(_)}Z&&Z.forEach(function(Q,P){ae(Q,P,{node:we,pos:he,level:fe?fe.level+1:-1})})}ae(null)}function me(U){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=M.initWrapper,re=M.processEntity,ae=M.onProcessFinished,we=arguments.length>2?arguments[2]:void 0,Ne={},fe={},Z={posEntities:Ne,keyEntities:fe};return z&&(Z=z(Z)||Z),q(U,function(he){var se=he.node,_=he.index,Q=he.pos,P=he.key,w=he.parentPos,oe=he.level,V={node:se,index:_,key:P,pos:Q,level:oe},S=B(P,Q);Ne[Q]=V,fe[S]=V,V.parent=Ne[w],V.parent&&(V.parent.children=V.parent.children||[],V.parent.children.push(V)),re&&re(V,Z)},we),ae&&ae(Z),Z}function Ae(U,M){var z=M.expandedKeys,re=M.selectedKeys,ae=M.loadedKeys,we=M.loadingKeys,Ne=M.checkedKeys,fe=M.halfCheckedKeys,Z=M.dragOverNodeKey,he=M.dropPosition,se=M.keyEntities,_=se[U],Q={eventKey:U,expanded:z.indexOf(U)!==-1,selected:re.indexOf(U)!==-1,loaded:ae.indexOf(U)!==-1,loading:we.indexOf(U)!==-1,checked:Ne.indexOf(U)!==-1,halfChecked:fe.indexOf(U)!==-1,pos:String(_?_.pos:""),dragOver:Z===U&&he===0,dragOverGapTop:Z===U&&he===-1,dragOverGapBottom:Z===U&&he===1};return Q}function le(U){var M=U.data,z=U.expanded,re=U.selected,ae=U.checked,we=U.loaded,Ne=U.loading,fe=U.halfChecked,Z=U.dragOver,he=U.dragOverGapTop,se=U.dragOverGapBottom,_=U.pos,Q=U.active,P=Object(Oe.a)(Object(Oe.a)({},M),{},{expanded:z,selected:re,checked:ae,loaded:we,loading:Ne,halfChecked:fe,dragOver:Z,dragOverGapTop:he,dragOverGapBottom:se,pos:_,active:Q});return"props"in P||Object.defineProperty(P,"props",{get:function(){return Object(Ce.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),U}}),P}},"8EBN":function(ct,Ge,v){(function(X){X(v("VrN/"))})(function(X){"use strict";X.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Oe=0;Oe-1&&je.substring(B+1,je.length);if(A)return X.findModeByExtension(A)},X.findModeByName=function(je){je=je.toLowerCase();for(var Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:"select",ve=arguments.length>2?arguments[2]:void 0,ze=ue.get(We);return!ve&&Ne(ze,Pe)?null:ze},[ue]),Fe=k.useCallback(function(We){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ve=arguments.length>2?arguments[2]:void 0,ze=Te.get(We);return!ve&&Ne(ze,Pe)?null:ze},[Te]);return[Re,Fe]}function Z(ue){return k.useMemo(function(){var Te=new Map,Re=new Map;return ue.forEach(function(Fe){Te.set(Fe.key,Fe),Re.set(Fe.data.value,Fe)}),[Te,Re]},[ue])}var he={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},se=function(Te,Re){var Fe=Te.prefixCls,We=Te.height,Pe=Te.itemHeight,ve=Te.virtual,ze=Te.options,He=Te.flattenOptions,ke=Te.multiple,Ue=Te.searchValue,Y=Te.onSelect,W=Te.onToggleOpen,D=Te.open,m=Te.notFoundContent,x=Te.onMouseEnter,C=k.useContext(we),O=C.checkable,ce=C.checkedKeys,ye=C.halfCheckedKeys,Ke=C.treeExpandedKeys,rt=C.treeDefaultExpandAll,Qe=C.treeDefaultExpandedKeys,it=C.onTreeExpand,gt=C.treeIcon,xt=C.showTreeIcon,lt=C.switcherIcon,Pt=C.treeLine,kt=C.treeNodeFilterProp,Et=C.loadData,bt=C.treeLoadedKeys,pt=C.treeMotion,Ot=C.onTreeLoad,It=k.useRef(),Kt=Object(re.a)(function(){return ze},[D,ze],function(Ze,nt){return nt[0]&&Ze[1]!==nt[1]}),Yt=Z(He),Mt=Object(B.a)(Yt,2),hn=Mt[0],Jt=Mt[1],Wt=fe(hn,Jt),nn=Object(B.a)(Wt,2),Rt=nn[0],tt=nn[1],Ut=k.useMemo(function(){return ce.map(function(Ze){var nt=tt(Ze);return nt?nt.key:null})},[ce]),pn=k.useMemo(function(){return O?{checked:Ut,halfChecked:ye}:null},[Ut,ye,O]);k.useEffect(function(){if(D&&!ke&&Ut.length){var Ze;(Ze=It.current)===null||Ze===void 0||Ze.scrollTo({key:Ut[0]})}},[D]);var on=String(Ue).toLowerCase(),At=function(nt){return on?String(nt[kt]).toLowerCase().includes(on):!1},an=k.useState(Qe),Gt=Object(B.a)(an,2),wn=Gt[0],Xe=Gt[1],ft=k.useState(null),mn=Object(B.a)(ft,2),sn=mn[0],Ye=mn[1],kn=k.useMemo(function(){return Ke?Object(Ce.a)(Ke):Ue?sn:wn},[wn,sn,on,Ke]);k.useEffect(function(){Ue&&Ye(He.map(function(Ze){return Ze.key}))},[Ue]);var aa=function(nt){Xe(nt),Ye(nt),it&&it(nt)},ht=function(nt){nt.preventDefault()},Vt=function(nt,Ct){var yt=Ct.node.key,jt=Rt(yt,O?"checkbox":"select");jt!==null&&Y(jt.data.value,{selected:!ce.includes(jt.data.value)}),ke||W(!1)},Nn=k.useState(null),jn=Object(B.a)(Nn,2),en=jn[0],Sn=jn[1],st=Rt(en);if(k.useImperativeHandle(Re,function(){return{onKeyDown:function(nt){var Ct,yt=nt.which;switch(yt){case z.a.UP:case z.a.DOWN:case z.a.LEFT:case z.a.RIGHT:(Ct=It.current)===null||Ct===void 0||Ct.onKeyDown(nt);break;case z.a.ENTER:{st!==null&&Vt(null,{node:{key:en},selected:!ce.includes(st.data.value)});break}case z.a.ESC:W(!1)}},onKeyUp:function(){}}}),Kt.length===0)return k.createElement("div",{role:"listbox",className:"".concat(Fe,"-empty"),onMouseDown:ht},m);var _e={};return bt&&(_e.loadedKeys=bt),kn&&(_e.expandedKeys=kn),k.createElement("div",{onMouseDown:ht,onMouseEnter:x},st&&D&&k.createElement("span",{style:he,"aria-live":"assertive"},st.data.value),k.createElement(ae.b,Object.assign({ref:It,focusable:!1,prefixCls:"".concat(Fe,"-tree"),treeData:Kt,height:We,itemHeight:Pe,virtual:ve,multiple:ke,icon:gt,showIcon:xt,switcherIcon:lt,showLine:Pt,loadData:Ue?null:Et,motion:pt,checkable:O,checkStrictly:!0,checkedKeys:pn,selectedKeys:O?[]:Ut,defaultExpandAll:rt},_e,{onActiveChange:Sn,onSelect:Vt,onCheck:Vt,onExpand:aa,onLoad:Ot,filterTreeNode:At})))},_=k.forwardRef(se);_.displayName="OptionList";var Q=_,P=function(){return null},w=P,oe=v("Ff2n"),V=v("Zm9Q");function S(ue){return Object(V.a)(ue).map(function(Te){if(!k.isValidElement(Te)||!Te.type)return null;var Re=Te.key,Fe=Te.props,We=Fe.children,Pe=Fe.value,ve=Object(oe.a)(Fe,["children","value"]),ze=Object(A.a)({key:Re,value:Pe},ve),He=S(We);return He.length&&(ze.children=He),ze}).filter(function(Te){return Te})}function N(ue){if(!ue)return ue;var Te=Object(A.a)({},ue);return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return Object(M.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Te}}),Te}function J(ue,Te,Re,Fe,We){var Pe=null,ve=null;function ze(){function He(ke){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return ke.map(function(W,D){var m="".concat(Ue,"-").concat(D),x=Re.includes(W.value),C=He(W.children||[],m,x),O=k.createElement(w,Object.assign({},W),C.map(function(ye){return ye.node}));if(Te===W.value&&(Pe=O),x){var ce={pos:m,node:O,children:C};return Y||ve.push(ce),ce}return null}).filter(function(W){return W})}ve||(ve=[],He(Fe),ve.sort(function(ke,Ue){var Y=ke.node.props.value,W=Ue.node.props.value,D=Re.indexOf(Y),m=Re.indexOf(W);return D-m}))}Object.defineProperty(ue,"triggerNode",{get:function(){return Object(M.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),ze(),Pe}}),Object.defineProperty(ue,"allCheckedNodes",{get:function(){return Object(M.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),ze(),We?ve:ve.map(function(ke){var Ue=ke.node;return Ue})}})}function K(ue){return Array.isArray(ue)?ue:ue!==void 0?[ue]:[]}function H(ue,Te){var Re=new Map;return Te.forEach(function(Fe){var We=Fe.data;Re.set(We.value,We)}),ue.map(function(Fe){return N(Re.get(Fe))})}function u(ue,Te){var Re=H([ue],Te)[0];return Re?Re.disabled:!1}function s(ue){return ue.disabled||ue.disableCheckbox||ue.checkable===!1}function E(ue){for(var Te=ue.parent,Re=0,Fe=Te;Fe;)Fe=Fe.parent,Re+=1;return Re}function R(ue){function Te(Fe){return(Fe||[]).map(function(We){var Pe=We.value,ve=We.key,ze=We.children,He=Object(A.a)(Object(A.a)({},We),{},{key:"key"in We?ve:Pe});return ze&&(He.children=Te(ze)),He})}var Re=Object(me.d)(Te(ue),!0);return Re.map(function(Fe){return{key:Fe.data.key,data:Fe.data,level:E(Fe)}})}function ee(ue){return function(Te,Re){var Fe=Re[ue];return String(Fe).toLowerCase().includes(String(Te).toLowerCase())}}function be(ue,Te,Re){var Fe=Re.optionFilterProp,We=Re.filterOption;if(We===!1)return Te;var Pe;typeof We=="function"?Pe=We:Pe=ee(Fe);function ve(ze){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ze.map(function(ke){var Ue=ke.children,Y=He||Pe(ue,N(ke)),W=ve(Ue||[],Y);return Y||W.length?Object(A.a)(Object(A.a)({},ke),{},{children:W}):null}).filter(function(ke){return ke})}return ve(Te)}function de(ue,Te,Re,Fe){var We=new Map;return K(Te).forEach(function(Pe){Pe&&Object(ie.a)(Pe)==="object"&&"value"in Pe&&We.set(Pe.value,Pe)}),ue.map(function(Pe){var ve={value:Pe},ze=Re(Pe,"select",!0),He=ze?Fe(ze.data):Pe;if(We.has(Pe)){var ke=We.get(Pe);ve.label="label"in ke?ke.label:He,"halfChecked"in ke&&(ve.halfChecked=ke.halfChecked)}else ve.label=He;return ve})}function pe(ue,Te){var Re=new Set(ue);return Re.add(Te),Array.from(Re)}function I(ue,Te){var Re=new Set(ue);return Re.delete(Te),Array.from(Re)}function g(ue){var Te=ue.searchPlaceholder,Re=ue.treeCheckStrictly,Fe=ue.treeCheckable,We=ue.labelInValue,Pe=ue.value,ve=ue.multiple;Object(M.a)(!Te,"`searchPlaceholder` has been removed."),Re&&We===!1&&Object(M.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(We||Re)&&Object(M.a)(K(Pe).every(function(ze){return ze&&Object(ie.a)(ze)==="object"&&"value"in ze}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Re||ve||Fe?Object(M.a)(!Pe||Array.isArray(Pe),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(M.a)(!Array.isArray(Pe),"`value` should not be array when `TreeSelect` is single mode.")}var T=g,b=10;function L(ue,Te){var Re=Te.id,Fe=Te.pId,We=Te.rootPId,Pe={},ve=[],ze=ue.map(function(He){var ke=Object(A.a)({},He),Ue=ke[Re];return Pe[Ue]=ke,ke.key=ke.key||Ue,ke});return ze.forEach(function(He){var ke=He[Fe],Ue=Pe[ke];Ue&&(Ue.children=Ue.children||[],Ue.children.push(He)),(ke===We||!Ue&&We===null)&&ve.push(He)}),ve}function d(ue,Te){var Re=0,Fe=new Set;function We(Pe){return(Pe||[]).map(function(ve){var ze=ve.key,He=ve.value,ke=ve.children,Ue=Object(oe.a)(ve,["key","value","children"]),Y="value"in ve?He:ze,W=Object(A.a)(Object(A.a)({},Ue),{},{key:ze!=null?ze:Y,value:Y,title:Te(ve)});return"children"in ve&&(W.children=We(ke)),W})}return We(ue)}function h(ue,Te,Re){var Fe=Re.getLabelProp,We=Re.simpleMode,Pe=k.useRef({});return ue?(Pe.current.formatTreeData=Pe.current.treeData===ue?Pe.current.formatTreeData:d(We?L(ue,Object(A.a)({id:"id",pId:"pId",rootPId:null},We!==!0?We:{})):ue,Fe),Pe.current.treeData=ue):Pe.current.formatTreeData=Pe.current.children===Te?Pe.current.formatTreeData:d(S(Te),Fe),Pe.current.formatTreeData}var f="SHOW_ALL",y="SHOW_PARENT",G="SHOW_CHILD";function j(ue,Te,Re){var Fe=new Set(ue);return Te===G?ue.filter(function(We){var Pe=Re[We];return!(Pe&&Pe.children&&Pe.children.every(function(ve){var ze=ve.node;return s(ze)||Fe.has(ze.key)}))}):Te===y?ue.filter(function(We){var Pe=Re[We],ve=Pe?Pe.parent:null;return!(ve&&!s(ve.node)&&Fe.has(ve.node.key))}):ue}function te(ue,Te){var Re=Te.value,Fe=Te.getEntityByValue,We=Te.getEntityByKey,Pe=Te.treeConduction,ve=Te.showCheckedStrategy,ze=Te.conductKeyEntities,He=Te.getLabelProp;return k.useMemo(function(){var ke=ue;if(Pe){var Ue=j(ue.map(function(Y){var W=Fe(Y);return W?W.key:Y}),ve,ze);ke=Ue.map(function(Y){var W=We(Y);return W?W.data.value:Y})}return de(ke,Re,Fe,He)},[ue,Re,Pe,ve,Fe])}var Ee=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Le=Object(ne.a)({prefixCls:"rc-tree-select",components:{optionList:Q},convertChildrenToData:function(){return null},flattenOptions:R,getLabeledValue:q.e,filterOptions:be,isValueDisabled:u,findValueOption:H,omitDOMProps:function(Te){var Re=Object(A.a)({},Te);return Ee.forEach(function(Fe){delete Re[Fe]}),Re}});Le.displayName="Select";var Ie=k.forwardRef(function(ue,Te){var Re=ue.multiple,Fe=ue.treeCheckable,We=ue.treeCheckStrictly,Pe=ue.showCheckedStrategy,ve=Pe===void 0?"SHOW_CHILD":Pe,ze=ue.labelInValue,He=ue.loadData,ke=ue.treeLoadedKeys,Ue=ue.treeNodeFilterProp,Y=Ue===void 0?"value":Ue,W=ue.treeNodeLabelProp,D=ue.treeDataSimpleMode,m=ue.treeData,x=ue.treeExpandedKeys,C=ue.treeDefaultExpandedKeys,O=ue.treeDefaultExpandAll,ce=ue.children,ye=ue.treeIcon,Ke=ue.showTreeIcon,rt=ue.switcherIcon,Qe=ue.treeLine,it=ue.treeMotion,gt=ue.filterTreeNode,xt=ue.dropdownPopupAlign,lt=ue.onChange,Pt=ue.onTreeExpand,kt=ue.onTreeLoad,Et=ue.onDropdownVisibleChange,bt=ue.onSelect,pt=ue.onDeselect,Ot=Fe||We,It=Re||Ot,Kt=Fe&&!We,Yt=We||ze,Mt=k.useRef(null);k.useImperativeHandle(Te,function(){return{focus:Mt.current.focus,blur:Mt.current.blur}});var hn=function(yt){return m&&yt.label||yt.title},Jt=function(yt){return W?yt[W]:hn(yt)},Wt=h(m,ce,{getLabelProp:hn,simpleMode:D}),nn=Object(k.useMemo)(function(){return R(Wt)},[Wt]),Rt=Z(nn),tt=Object(B.a)(Rt,2),Ut=tt[0],pn=tt[1],on=fe(Ut,pn),At=Object(B.a)(on,2),an=At[0],Gt=At[1],wn=Object(k.useMemo)(function(){return Kt?Object(me.a)(Wt):{keyEntities:null}},[Wt,Fe,We]),Xe=wn.keyEntities,ft=Object(U.a)(ue.defaultValue,{value:ue.value}),mn=Object(B.a)(ft,2),sn=mn[0],Ye=mn[1],kn=function(yt){var jt=[],Nt=[];return yt.forEach(function(_t){Gt(_t)?Nt.push(_t):jt.push(_t)}),{missingRawValues:jt,existRawValues:Nt}},aa=Object(k.useMemo)(function(){var Ct=[],yt=[];if(K(sn).forEach(function(Qt){if(Qt&&Object(ie.a)(Qt)==="object"&&"value"in Qt)if(Qt.halfChecked&&We){var Pn=Gt(Qt.value);Ct.push(Pn?Pn.key:Qt.value)}else yt.push(Qt.value);else yt.push(Qt)}),Kt){var jt=kn(yt),Nt=jt.missingRawValues,_t=jt.existRawValues,En=_t.map(function(Qt){return Gt(Qt).key}),Zt=Object(Ae.a)(En,!0,Xe),un=Zt.checkedKeys,tn=Zt.halfCheckedKeys;return[[].concat(Object(Ce.a)(Nt),Object(Ce.a)(un.map(function(Qt){return an(Qt).data.value}))),tn]}return[yt,Ct]},[sn,It,Yt,Fe,We]),ht=Object(B.a)(aa,2),Vt=ht[0],Nn=ht[1],jn=te(Vt,{treeConduction:Kt,value:sn,showCheckedStrategy:ve,conductKeyEntities:Xe,getEntityByValue:Gt,getEntityByKey:an,getLabelProp:Jt}),en=function(yt,jt,Nt){if(Ye(It?yt:yt[0]),lt){var _t=yt;if(Kt&&ve!=="SHOW_ALL"){var En=yt.map(function(Tn){var zn=Gt(Tn);return zn?zn.key:Tn}),Zt=j(En,ve,Xe);_t=Zt.map(function(Tn){var zn=an(Tn);return zn?zn.data.value:Tn})}var un=jt||{triggerValue:void 0,selected:void 0},tn=un.triggerValue,Qt=un.selected,Pn=Yt?de(_t,sn,Gt,Jt):_t;if(We){var Kn=Nn.map(function(Tn){var zn=an(Tn);return zn?zn.data.value:Tn}).filter(function(Tn){return!_t.includes(Tn)});Pn=[].concat(Object(Ce.a)(Pn),Object(Ce.a)(de(Kn,sn,Gt,Jt)))}var cn={preValue:jn,triggerValue:tn},wa=!0;(We||Nt==="selection"&&!Qt)&&(wa=!1),J(cn,tn,yt,Wt,wa),Ot?cn.checked=Qt:cn.selected=Qt,lt(It?Pn:Pn[0],Yt?null:_t.map(function(Tn){var zn=Gt(Tn);return zn?Jt(zn.data):null}),cn)}},Sn=function(yt,jt,Nt){var _t=yt;if(!It)en([yt],{selected:!0,triggerValue:yt},Nt);else{var En=pe(Vt,yt);if(Kt){var Zt=kn(En),un=Zt.missingRawValues,tn=Zt.existRawValues,Qt=tn.map(function(cn){return Gt(cn).key}),Pn=Object(Ae.a)(Qt,!0,Xe),Kn=Pn.checkedKeys;En=[].concat(Object(Ce.a)(un),Object(Ce.a)(Kn.map(function(cn){return an(cn).data.value})))}en(En,{selected:!0,triggerValue:yt},Nt)}bt&&bt(_t,jt)},st=function(yt,jt,Nt){var _t=yt,En=I(Vt,yt);if(Kt){var Zt=kn(En),un=Zt.missingRawValues,tn=Zt.existRawValues,Qt=tn.map(function(cn){return Gt(cn).key}),Pn=Object(Ae.a)(Qt,{checked:!1,halfCheckedKeys:Nn},Xe),Kn=Pn.checkedKeys;En=[].concat(Object(Ce.a)(un),Object(Ce.a)(Kn.map(function(cn){return an(cn).data.value})))}en(En,{selected:!1,triggerValue:yt},Nt),pt&&pt(_t,jt)},_e=function(){en([],null,"clear")},Ze=k.useCallback(function(Ct){if(Et){var yt={};Object.defineProperty(yt,"documentClickClose",{get:function(){return Object(M.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Et(Ct,yt)}},[Et]),nt={optionLabelProp:null,optionFilterProp:Y,dropdownAlign:xt,internalProps:{mark:le.a,onClear:_e,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Sn,onRawDeselect:st}};return"filterTreeNode"in ue&&(nt.filterOption=gt),k.createElement(we.Provider,{value:{checkable:Ot,loadData:He,treeLoadedKeys:ke,onTreeLoad:kt,checkedKeys:Vt,halfCheckedKeys:Nn,treeDefaultExpandAll:O,treeExpandedKeys:x,treeDefaultExpandedKeys:C,onTreeExpand:Pt,treeIcon:ye,treeMotion:it,showTreeIcon:Ke,switcherIcon:rt,treeLine:Qe,treeNodeFilterProp:Y}},k.createElement(Le,Object.assign({ref:Mt,mode:It?"multiple":null},ue,nt,{value:jn,labelInValue:!0,options:Wt,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Ze})))}),De=function(ue){Object(xe.a)(Re,ue);var Te=Object(je.a)(Re);function Re(){var Fe;return Object(X.a)(this,Re),Fe=Te.apply(this,arguments),Fe.selectRef=k.createRef(),Fe.focus=function(){Fe.selectRef.current.focus()},Fe.blur=function(){Fe.selectRef.current.blur()},Fe}return Object(Oe.a)(Re,[{key:"render",value:function(){return k.createElement(Ie,Object.assign({ref:this.selectRef},this.props))}}]),Re}(k.Component);De.TreeNode=w,De.SHOW_ALL=f,De.SHOW_PARENT=y,De.SHOW_CHILD=G;var Me=De,$e=Ge.e=Me},"8pgt":function(ct,Ge,v){ct.exports={flexRow:"flexRow___2kcn2",flexColumn:"flexColumn___2bS_0",formWrap:"formWrap___3t-wi",example:"example___2J2YZ",footerWrap:"footerWrap___3u6gg"}},"9Bee":function(ct,Ge,v){"use strict";var X=v("k1fw"),Oe=v("tJVT"),xe=v("q1tI"),je=v.n(xe),Ce=v("vg9a"),ie=v("DlQD"),B=v.n(ie),A=v("rUJ1");function k(E,R){var ee=E.match(/^(\s+)(?:```)/);if(ee===null)return R;var be=ee[1];return R.split(`
`).map(function(de){var pe=de.match(/^\s+/);if(pe===null)return de;var I=Object(Oe.a)(pe,1),g=I[0];return g.length>=be.length?de.slice(be.length):de}).join(`
`)}var ne=[],q=[""],me=new B.a.Renderer,Ae=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){ne.length=0,q=[""]}var U={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function M(E,R,ee,be){if(R>=E.length||E[R].level<=ee)return R;var de=E[R];be.push("- "+de.text+""),R++;var pe=[];return R=M(E,R,de.level,pe),pe.length>0&&(be.push("
"),pe.forEach(function(I){be.push(I)}),be.push("
")),be.push(" "),R=M(E,R,ee,be),R}function z(){return M(ne,0,0,q),q.push("
"),q.join("")}var re={heading:function(R){var ee=Ae.exec(R);if(ee)return{type:"heading",raw:ee[0],depth:ee[1].length,text:ee[2]}},fences:function(R){var ee=this.rules.block.fences.exec(R);if(ee){var be=ee[0],de=k(be,ee[3]||""),pe=ee[2]?ee[2].trim():ee[2];if(["latex","katex","math"].indexOf(pe)>=0){var I=Ne(),g=de;de=I,fe[I]={type:"block",expression:g}}return{type:"code",raw:be,lang:pe,text:de}}}},ae=/(?:\${2})([^\n`]+?)(?:\${2})/gi,we=0,Ne=function(){return"__special_katext_id_".concat(we++,"__")},fe={};function Z(){return fe}function he(){we=0,fe={}}function se(E){return E=E.replace(ae,function(R,ee){var be=Ne();return fe[be]={type:"inline",expression:ee},be}),E}var _=me.listitem;me.listitem=function(E){return _(se(E))};var Q=me.paragraph;me.paragraph=function(E){return Q(se(E))};var P=me.tablecell;me.tablecell=function(E,R){return P(se(E),R)},me.code=function(E,R,ee){var be=(R||"").match(/\S*/)[0];return be?["latex","katex","math"].indexOf(be)>=0?"".concat(E,"
"):'
').concat(ee?E:Object(A.escape)(E,!0),`
`):''+(ee?E:Object(A.escape)(E,!0))+"
"},me.heading=function(E,R,ee){var be=this.options.headerPrefix+ee.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ne.push({anchor:be,level:R,text:E}),"'+E+""},B.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),B.a.use({tokenizer:re,renderer:me});var w=B.a,oe=v("SJMd"),V=v("ulZh"),S=v.n(V),N=v("m3rI"),J=v("Oy/b"),K=v("p5ED"),H=/]*>/g;function u(E){var R=document.createElement("div");return R.innerHTML=E,R.childNodes.length===0?"":R.childNodes[0].nodeValue}var s=Ge.a=function(E){var R,ee=E.value,be=ee===void 0?"":ee,de=E.className,pe=E.showTextOnly,I=E.showLines,g=E.style,T=g===void 0?{}:g,b=E.stylesPrev,L=b===void 0?{}:b,d=(R=String(be))===null||R===void 0?void 0:R.replace(/|<\/script>/gi,"").replace(/on\w+="[^"]*"/gi,""),h=Object(xe.useState)(""),f=Object(Oe.a)(h,2),y=f[0],G=f[1],j=Object(xe.useMemo)(function(){try{var Ie=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,De=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Me=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;d=d.replace(Ie,"("+N.a.API_SERVER+"/api/attachments/").replace(De,'"'+N.a.API_SERVER+"/api/attachments/").replace(Me,'"'+N.a.API_SERVER+"/files/uploads/").replace(/\r\n/g,`
`),d=d.replace(new RegExp("(?[TOC]
",z()),le()),$e=$e.replace(/(__special_katext_id_\d+__)/g,function(Re,Fe){var We=ue[Fe],Pe=We.type,ve=We.expression;return Object(J.renderToString)(u(ve)||"",{displayMode:Pe==="block",throwOnError:!1,output:"html"})}),$e=$e.replace(/▁/g,"\u2581\u2581\u2581"),he(),pe){var Te=document.createElement("div");return Te.innerHTML=$e,Te.innerText}return setTimeout(function(){return Le()},500),$e},[d]),te=Object(xe.useRef)();U.WebkitLineClamp=I,I&&(T=Object(X.a)(Object(X.a)({},T),U));function Ee(Ie){var De=Ie.target;if(De.tagName.toUpperCase()==="A"){var Me=De.getAttribute("href");if(Me.indexOf("office")>-1)Ie.preventDefault(),G(Me);else if(Me.startsWith("#")){Ie.preventDefault();var $e=document.getElementById(Me.replace("#",""));$e&&$e.scrollIntoView(!0)}}}var Le=function(){var De,Me=(De=te.current)===null||De===void 0?void 0:De.querySelectorAll("video");Me==null||Me.forEach(function($e){if($e.oncontextmenu=function(){return!1},$e.src.indexOf(".m3u8")>-1&&!$e.canPlayType("application/vnd.apple.mpegurl")){if(S.a.isSupported()){var ue=new S.a;ue.loadSource($e.src),ue.attachMedia($e)}}})};return Object(xe.useEffect)(function(){if(te.current&&j&&(j.match(H)&&window.PR.prettyPrint()),te.current)return te.current.addEventListener("click",Ee),function(){te.current.removeEventListener("click",Ee),he(),le()}},[j,te.current,Ee]),je.a.createElement(je.a.Fragment,null,je.a.createElement("div",{ref:te,style:Object(X.a)({},T),className:"".concat(de||""," markdown-body "),dangerouslySetInnerHTML:{__html:j}}),je.a.createElement(K.a,{close:!0,data:y,type:y!=null&&y.length?"office":"",style:Object(X.a)({},L),onClose:function(){return G("")}}))}},"9VGf":function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return xe});var X=v("q1tI"),Oe=v.n(X);function xe(je,Ce){var ie=Object(X.useRef)();Object(X.useEffect)(function(){ie.current=je}),Object(X.useEffect)(function(){function B(){ie.current()}if(Ce!==null){var A=setInterval(B,Ce);return function(){return clearInterval(A)}}},[Ce])}},Bd2K:function(ct,Ge,v){(function(X){X(v("VrN/"),v("osHv"))})(function(X){X.defineOption("autoCloseTags",!1,function(k,ne,q){if(q!=X.Init&&q&&k.removeKeyMap("autoCloseTags"),!ne)return;var me={name:"autoCloseTags"};(typeof ne!="object"||ne.whenClosing!==!1)&&(me["'/'"]=function(Ae){return ie(Ae)}),(typeof ne!="object"||ne.whenOpening!==!1)&&(me["'>'"]=function(Ae){return je(Ae)}),k.addKeyMap(me)});var Oe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],xe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function je(k){if(k.getOption("disableInput"))return X.Pass;for(var ne=k.listSelections(),q=[],me=k.getOption("autoCloseTags"),Ae=0;Aele.ch&&(ae=ae.slice(0,ae.length-U.end+le.ch));var Z=ae.toLowerCase();if(!ae||U.type=="string"&&(U.end!=le.ch||!/[\"\']/.test(U.string.charAt(U.string.length-1))||U.string.length==1)||U.type=="tag"&&re.close||U.string.indexOf("/")==le.ch-U.start-1||Ne&&B(Ne,Z)>-1||A(k,M.mode.xmlCurrentContext&&M.mode.xmlCurrentContext(z)||[],ae,le,!0))return X.Pass;var he=typeof me=="object"&&me.emptyTags;if(he&&B(he,ae)>-1){q[Ae]={text:"/>",newPos:X.Pos(le.line,le.ch+2)};continue}var se=fe&&B(fe,Z)>-1;q[Ae]={indent:se,text:">"+(se?`
`:"")+""+ae+">",newPos:se?X.Pos(le.line+1,0):X.Pos(le.line,le.ch+1)}}for(var _=typeof me=="object"&&me.dontIndentOnAutoClose,Ae=ne.length-1;Ae>=0;Ae--){var Q=q[Ae];k.replaceRange(Q.text,ne[Ae].head,ne[Ae].anchor,"+insert");var P=k.listSelections().slice(0);P[Ae]={head:Q.newPos,anchor:Q.newPos},k.setSelections(P),!_&&Q.indent&&(k.indentLine(Q.newPos.line,null,!0),k.indentLine(Q.newPos.line+1,null,!0))}}function Ce(k,ne){for(var q=k.listSelections(),me=[],Ae=ne?"/":"",le=k.getOption("autoCloseTags"),U=typeof le=="object"&&le.dontIndentOnSlash,M=0;M"&&(Ne+=">"),me[M]=Ne}if(k.replaceSelections(me),q=k.listSelections(),!U)for(var M=0;M=0&&ne[z]==q;z--)++M;me=U.to;for(var z=1;z0){for(var ne=0;ne1&&arguments[1]!==void 0?arguments[1]:"",ne=[],q=0;qY.length)&&(W=Y.length);for(var D=0,m=new Array(W);D=Y.length?{done:!0}:{done:!1,value:Y[m++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return D=Y[Symbol.iterator](),D.next.bind(D)}function ie(Y,W){return W={exports:{}},Y(W,W.exports),W.exports}var B=ie(function(Y){function W(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function D(m){Y.exports.defaults=m}Y.exports={defaults:W(),getDefaults:W,changeDefaults:D}}),A=B.defaults,k=B.getDefaults,ne=B.changeDefaults,q=/[&<>"']/,me=/[&<>"']/g,Ae=/[<>"']|&(?!#?\w+;)/,le=/[<>"']|&(?!#?\w+;)/g,U={"&":"&","<":"<",">":">",'"':""","'":"'"},M=function(W){return U[W]};function z(Y,W){if(W){if(q.test(Y))return Y.replace(me,M)}else if(Ae.test(Y))return Y.replace(le,M);return Y}var re=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ae(Y){return Y.replace(re,function(W,D){return D=D.toLowerCase(),D==="colon"?":":D.charAt(0)==="#"?D.charAt(1)==="x"?String.fromCharCode(parseInt(D.substring(2),16)):String.fromCharCode(+D.substring(1)):""})}var we=/(^|[^\[])\^/g;function Ne(Y,W){Y=Y.source||Y,W=W||"";var D={replace:function(x,C){return C=C.source||C,C=C.replace(we,"$1"),Y=Y.replace(x,C),D},getRegex:function(){return new RegExp(Y,W)}};return D}var fe=/[^\w:]/g,Z=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function he(Y,W,D){if(Y){var m;try{m=decodeURIComponent(ae(D)).replace(fe,"").toLowerCase()}catch(x){return null}if(m.indexOf("javascript:")===0||m.indexOf("vbscript:")===0||m.indexOf("data:")===0)return null}W&&!Z.test(D)&&(D=w(W,D));try{D=encodeURI(D).replace(/%25/g,"%")}catch(x){return null}return D}var se={},_=/^[^:]+:\/*[^/]*$/,Q=/^([^:]+:)[\s\S]*$/,P=/^([^:]+:\/*[^/]*)[\s\S]*$/;function w(Y,W){se[" "+Y]||(_.test(Y)?se[" "+Y]=Y+"/":se[" "+Y]=N(Y,"/",!0)),Y=se[" "+Y];var D=Y.indexOf(":")===-1;return W.substring(0,2)==="//"?D?W:Y.replace(Q,"$1")+W:W.charAt(0)==="/"?D?W:Y.replace(P,"$1")+W:Y+W}var oe={exec:function(){}};function V(Y){for(var W=1,D,m;W=0&&ce[Ke]==="\\";)ye=!ye;return ye?"|":" |"}),m=D.split(/ \|/),x=0;if(m.length>W)m.splice(W);else for(;m.length=m.length?x.slice(m.length):x}).join(`
`)}var pe=function(){function Y(D){this.options=D||u}var W=Y.prototype;return W.space=function(m){var x=this.rules.block.newline.exec(m);if(x)return x[0].length>1?{type:"space",raw:x[0]}:{raw:`
`}},W.code=function(m,x){var C=this.rules.block.code.exec(m);if(C){var O=x[x.length-1];if(O&&O.type==="paragraph")return{raw:C[0],text:C[0].trimRight()};var ce=C[0].replace(/^ {4}/gm,"");return{type:"code",raw:C[0],codeBlockStyle:"indented",text:this.options.pedantic?ce:s(ce,`
`)}}},W.fences=function(m){var x=this.rules.block.fences.exec(m);if(x){var C=x[0],O=de(C,x[3]||"");return{type:"code",raw:C,lang:x[2]?x[2].trim():x[2],text:O}}},W.heading=function(m){var x=this.rules.block.heading.exec(m);if(x)return{type:"heading",raw:x[0],depth:x[1].length,text:x[2]}},W.nptable=function(m){var x=this.rules.block.nptable.exec(m);if(x){var C={type:"table",header:E(x[1].replace(/^ *| *\| *$/g,"")),align:x[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:x[3]?x[3].replace(/\n$/,"").split(`
`):[],raw:x[0]};if(C.header.length===C.align.length){var O=C.align.length,ce;for(ce=0;ce ?/gm,"");return{type:"blockquote",raw:x[0],text:C}}},W.list=function(m){var x=this.rules.block.list.exec(m);if(x){for(var C=x[0],O=x[2],ce=O.length>1,ye=O[O.length-1]===")",Ke={type:"list",raw:C,ordered:ce,start:ce?+O.slice(0,-1):"",loose:!1,items:[]},rt=x[0].match(this.rules.block.item),Qe=!1,it,gt,xt,lt,Pt,kt,Et,bt=rt.length,pt=0;pt1||this.options.smartLists&&xt!==O)&&(lt=rt.slice(pt+1).join(`
`),Ke.raw=Ke.raw.substring(0,Ke.raw.length-lt.length),pt=bt-1)),Pt=Qe||/\n\n(?!\s*$)/.test(it),pt!==bt-1&&(Qe=it.charAt(it.length-1)===`
`,Pt||(Pt=Qe)),Pt&&(Ke.loose=!0),kt=/^\[[ xX]\] /.test(it),Et=void 0,kt&&(Et=it[1]!==" ",it=it.replace(/^\[[ xX]\] +/,"")),Ke.items.push({type:"list_item",raw:C,task:kt,checked:Et,loose:Pt,text:it});return Ke}},W.html=function(m){var x=this.rules.block.html.exec(m);if(x)return{type:this.options.sanitize?"paragraph":"html",raw:x[0],pre:!this.options.sanitizer&&(x[1]==="pre"||x[1]==="script"||x[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(x[0]):R(x[0]):x[0]}},W.def=function(m){var x=this.rules.block.def.exec(m);if(x){x[3]&&(x[3]=x[3].substring(1,x[3].length-1));var C=x[1].toLowerCase().replace(/\s+/g," ");return{tag:C,raw:x[0],href:x[2],title:x[3]}}},W.table=function(m){var x=this.rules.block.table.exec(m);if(x){var C={type:"table",header:E(x[1].replace(/^ *| *\| *$/g,"")),align:x[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:x[3]?x[3].replace(/\n$/,"").split(`
`):[]};if(C.header.length===C.align.length){C.raw=x[0];var O=C.align.length,ce;for(ce=0;ce/i.test(O[0])&&(x=!1),!C&&/^<(pre|code|kbd|script)(\s|>)/i.test(O[0])?C=!0:C&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(O[0])&&(C=!1),{type:this.options.sanitize?"text":"html",raw:O[0],inLink:x,inRawBlock:C,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(O[0]):R(O[0]):O[0]}},W.link=function(m){var x=this.rules.inline.link.exec(m);if(x){var C=ee(x[2],"()");if(C>-1){var O=x[0].indexOf("!")===0?5:4,ce=O+x[1].length+C;x[2]=x[2].substring(0,C),x[0]=x[0].substring(0,ce).trim(),x[3]=""}var ye=x[2],Ke="";if(this.options.pedantic){var rt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ye);rt?(ye=rt[1],Ke=rt[3]):Ke=""}else Ke=x[3]?x[3].slice(1,-1):"";ye=ye.trim().replace(/^<([\s\S]*)>$/,"$1");var Qe=be(x,{href:ye&&ye.replace(this.rules.inline._escapes,"$1"),title:Ke&&Ke.replace(this.rules.inline._escapes,"$1")},x[0]);return Qe}},W.reflink=function(m,x){var C;if((C=this.rules.inline.reflink.exec(m))||(C=this.rules.inline.nolink.exec(m))){var O=(C[2]||C[1]).replace(/\s+/g," ");if(O=x[O.toLowerCase()],!O||!O.href){var ce=C[0].charAt(0);return{type:"text",raw:ce,text:ce}}var ye=be(C,O,C[0]);return ye}},W.strong=function(m,x,C){C===void 0&&(C="");var O=this.rules.inline.strong.start.exec(m);if(O&&(!O[1]||O[1]&&(C===""||this.rules.inline.punctuation.exec(C)))){x=x.slice(-1*m.length);var ce=O[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ce.lastIndex=0;for(var ye;(O=ce.exec(x))!=null;)if(ye=this.rules.inline.strong.middle.exec(x.slice(0,O.index+3)),ye)return{type:"strong",raw:m.slice(0,ye[0].length),text:m.slice(2,ye[0].length-2)}}},W.em=function(m,x,C){C===void 0&&(C="");var O=this.rules.inline.em.start.exec(m);if(O&&(!O[1]||O[1]&&(C===""||this.rules.inline.punctuation.exec(C)))){x=x.slice(-1*m.length);var ce=O[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ce.lastIndex=0;for(var ye;(O=ce.exec(x))!=null;)if(ye=this.rules.inline.em.middle.exec(x.slice(0,O.index+2)),ye)return{type:"em",raw:m.slice(0,ye[0].length),text:m.slice(1,ye[0].length-1)}}},W.codespan=function(m){var x=this.rules.inline.code.exec(m);if(x){var C=x[2].replace(/\n/g," "),O=/[^ ]/.test(C),ce=C.startsWith(" ")&&C.endsWith(" ");return O&&ce&&(C=C.substring(1,C.length-1)),C=R(C,!0),{type:"codespan",raw:x[0],text:C}}},W.br=function(m){var x=this.rules.inline.br.exec(m);if(x)return{type:"br",raw:x[0]}},W.del=function(m){var x=this.rules.inline.del.exec(m);if(x)return{type:"del",raw:x[0],text:x[1]}},W.autolink=function(m,x){var C=this.rules.inline.autolink.exec(m);if(C){var O,ce;return C[2]==="@"?(O=R(this.options.mangle?x(C[1]):C[1]),ce="mailto:"+O):(O=R(C[1]),ce=O),{type:"link",raw:C[0],text:O,href:ce,tokens:[{type:"text",raw:O,text:O}]}}},W.url=function(m,x){var C;if(C=this.rules.inline.url.exec(m)){var O,ce;if(C[2]==="@")O=R(this.options.mangle?x(C[0]):C[0]),ce="mailto:"+O;else{var ye;do ye=C[0],C[0]=this.rules.inline._backpedal.exec(C[0])[0];while(ye!==C[0]);O=R(C[0]),C[1]==="www."?ce="http://"+O:ce=O}return{type:"link",raw:C[0],text:O,href:ce,tokens:[{type:"text",raw:O,text:O}]}}},W.inlineText=function(m,x,C){var O=this.rules.inline.text.exec(m);if(O){var ce;return x?ce=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(O[0]):R(O[0]):O[0]:ce=R(this.options.smartypants?C(O[0]):O[0]),{type:"text",raw:O[0],text:ce}}},Y}(),I=H.noopTest,g=H.edit,T=H.merge,b={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:I,table:I,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};b._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,b._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,b.def=g(b.def).replace("label",b._label).replace("title",b._title).getRegex(),b.bullet=/(?:[*+-]|\d{1,9}[.)])/,b.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,b.item=g(b.item,"gm").replace(/bull/g,b.bullet).getRegex(),b.list=g(b.list).replace(/bull/g,b.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+b.def.source+")").getRegex(),b._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",b._comment=//,b.html=g(b.html,"i").replace("comment",b._comment).replace("tag",b._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),b.paragraph=g(b._paragraph).replace("hr",b.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",b._tag).getRegex(),b.blockquote=g(b.blockquote).replace("paragraph",b.paragraph).getRegex(),b.normal=T({},b),b.gfm=T({},b.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),b.gfm.nptable=g(b.gfm.nptable).replace("hr",b.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",b._tag).getRegex(),b.gfm.table=g(b.gfm.table).replace("hr",b.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",b._tag).getRegex(),b.pedantic=T({},b.normal,{html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",b._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:I,paragraph:g(b.normal._paragraph).replace("hr",b.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",b.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var L={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:I,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",L.punctuation=g(L.punctuation).replace(/punctuation/g,L._punctuation).getRegex(),L._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",L._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",L.em.start=g(L.em.start).replace(/punctuation/g,L._punctuation).getRegex(),L.em.middle=g(L.em.middle).replace(/punctuation/g,L._punctuation).replace(/overlapSkip/g,L._overlapSkip).getRegex(),L.em.endAst=g(L.em.endAst,"g").replace(/punctuation/g,L._punctuation).getRegex(),L.em.endUnd=g(L.em.endUnd,"g").replace(/punctuation/g,L._punctuation).getRegex(),L.strong.start=g(L.strong.start).replace(/punctuation/g,L._punctuation).getRegex(),L.strong.middle=g(L.strong.middle).replace(/punctuation/g,L._punctuation).replace(/blockSkip/g,L._blockSkip).getRegex(),L.strong.endAst=g(L.strong.endAst,"g").replace(/punctuation/g,L._punctuation).getRegex(),L.strong.endUnd=g(L.strong.endUnd,"g").replace(/punctuation/g,L._punctuation).getRegex(),L.blockSkip=g(L._blockSkip,"g").getRegex(),L.overlapSkip=g(L._overlapSkip,"g").getRegex(),L._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,L._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,L._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,L.autolink=g(L.autolink).replace("scheme",L._scheme).replace("email",L._email).getRegex(),L._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,L.tag=g(L.tag).replace("comment",b._comment).replace("attribute",L._attribute).getRegex(),L._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,L._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,L._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,L.link=g(L.link).replace("label",L._label).replace("href",L._href).replace("title",L._title).getRegex(),L.reflink=g(L.reflink).replace("label",L._label).getRegex(),L.reflinkSearch=g(L.reflinkSearch,"g").replace("reflink",L.reflink).replace("nolink",L.nolink).getRegex(),L.normal=T({},L),L.pedantic=T({},L.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",L._label).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",L._label).getRegex()}),L.gfm=T({},L.normal,{escape:g(L.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(m="x"+m.toString(16)),W+=""+m+";";return W}var te=function(){function Y(D){this.tokens=[],this.tokens.links=Object.create(null),this.options=D||h,this.options.tokenizer=this.options.tokenizer||new pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var m={block:f.normal,inline:y.normal};this.options.pedantic?(m.block=f.pedantic,m.inline=y.pedantic):this.options.gfm&&(m.block=f.gfm,this.options.breaks?m.inline=y.breaks:m.inline=y.gfm),this.tokenizer.rules=m}Y.lex=function(m,x){var C=new Y(x);return C.lex(m)};var W=Y.prototype;return W.lex=function(m){return m=m.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(m,this.tokens,!0),this.inline(this.tokens),this.tokens},W.blockTokens=function(m,x,C){x===void 0&&(x=[]),C===void 0&&(C=!0),m=m.replace(/^ +$/gm,"");for(var O,ce,ye,Ke;m;){if(O=this.tokenizer.space(m)){m=m.substring(O.raw.length),O.type&&x.push(O);continue}if(O=this.tokenizer.code(m,x)){m=m.substring(O.raw.length),O.type?x.push(O):(Ke=x[x.length-1],Ke.raw+=`
`+O.raw,Ke.text+=`
`+O.text);continue}if(O=this.tokenizer.fences(m)){m=m.substring(O.raw.length),x.push(O);continue}if(O=this.tokenizer.heading(m)){m=m.substring(O.raw.length),x.push(O);continue}if(O=this.tokenizer.nptable(m)){m=m.substring(O.raw.length),x.push(O);continue}if(O=this.tokenizer.hr(m)){m=m.substring(O.raw.length),x.push(O);continue}if(O=this.tokenizer.blockquote(m)){m=m.substring(O.raw.length),O.tokens=this.blockTokens(O.text,[],C),x.push(O);continue}if(O=this.tokenizer.list(m)){for(m=m.substring(O.raw.length),ye=O.items.length,ce=0;ce0)for(;(rt=this.tokenizer.rules.inline.reflinkSearch.exec(Ke))!=null;)Qe.includes(rt[0].slice(rt[0].lastIndexOf("[")+1,-1))&&(Ke=Ke.slice(0,rt.index)+"["+"a".repeat(rt[0].length-2)+"]"+Ke.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(rt=this.tokenizer.rules.inline.blockSkip.exec(Ke))!=null;)Ke=Ke.slice(0,rt.index)+"["+"a".repeat(rt[0].length-2)+"]"+Ke.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;m;){if(ye=this.tokenizer.escape(m)){m=m.substring(ye.raw.length),x.push(ye);continue}if(ye=this.tokenizer.tag(m,C,O)){m=m.substring(ye.raw.length),C=ye.inLink,O=ye.inRawBlock,x.push(ye);continue}if(ye=this.tokenizer.link(m)){m=m.substring(ye.raw.length),ye.type==="link"&&(ye.tokens=this.inlineTokens(ye.text,[],!0,O)),x.push(ye);continue}if(ye=this.tokenizer.reflink(m,this.tokens.links)){m=m.substring(ye.raw.length),ye.type==="link"&&(ye.tokens=this.inlineTokens(ye.text,[],!0,O)),x.push(ye);continue}if(ye=this.tokenizer.strong(m,Ke,ce)){m=m.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],C,O),x.push(ye);continue}if(ye=this.tokenizer.em(m,Ke,ce)){m=m.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],C,O),x.push(ye);continue}if(ye=this.tokenizer.codespan(m)){m=m.substring(ye.raw.length),x.push(ye);continue}if(ye=this.tokenizer.br(m)){m=m.substring(ye.raw.length),x.push(ye);continue}if(ye=this.tokenizer.del(m)){m=m.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],C,O),x.push(ye);continue}if(ye=this.tokenizer.autolink(m,j)){m=m.substring(ye.raw.length),x.push(ye);continue}if(!C&&(ye=this.tokenizer.url(m,j))){m=m.substring(ye.raw.length),x.push(ye);continue}if(ye=this.tokenizer.inlineText(m,O,G)){m=m.substring(ye.raw.length),ce=ye.raw.slice(-1),x.push(ye);continue}if(m){var it="Infinite loop on byte: "+m.charCodeAt(0);if(this.options.silent){console.error(it);break}else throw new Error(it)}}return x},Oe(Y,null,[{key:"rules",get:function(){return{block:f,inline:y}}}]),Y}(),Ee=B.defaults,Le=H.cleanUrl,Ie=H.escape,De=function(){function Y(D){this.options=D||Ee}var W=Y.prototype;return W.code=function(m,x,C){var O=(x||"").match(/\S*/)[0];if(this.options.highlight){var ce=this.options.highlight(m,O);ce!=null&&ce!==m&&(C=!0,m=ce)}return O?''+(C?m:Ie(m,!0))+`
`:""+(C?m:Ie(m,!0))+`
`},W.blockquote=function(m){return`
`+m+`
`},W.html=function(m){return m},W.heading=function(m,x,C,O){return this.options.headerIds?"
`:""+m+"
`},W.hr=function(){return this.options.xhtml?`
`:`
`},W.list=function(m,x,C){var O=x?"ol":"ul",ce=x&&C!==1?' start="'+C+'"':"";return"<"+O+ce+`>
`+m+""+O+`>
`},W.listitem=function(m){return""+m+`
`},W.checkbox=function(m){return" "},W.paragraph=function(m){return""+m+`
`},W.table=function(m,x){return x&&(x=""+x+""),`
`},W.tablerow=function(m){return`
`+m+`
`},W.tablecell=function(m,x){var C=x.header?"th":"td",O=x.align?"<"+C+' align="'+x.align+'">':"<"+C+">";return O+m+""+C+`>
`},W.strong=function(m){return""+m+""},W.em=function(m){return""+m+""},W.codespan=function(m){return""+m+""},W.br=function(){return this.options.xhtml?"
":"
"},W.del=function(m){return""+m+""},W.link=function(m,x,C){if(m=Le(this.options.sanitize,this.options.baseUrl,m),m===null)return C;var O='"+C+"",O},W.image=function(m,x,C){if(m=Le(this.options.sanitize,this.options.baseUrl,m),m===null)return C;var O='
":">",O},W.text=function(m){return m},Y}(),Me=function(){function Y(){}var W=Y.prototype;return W.strong=function(m){return m},W.em=function(m){return m},W.codespan=function(m){return m},W.del=function(m){return m},W.html=function(m){return m},W.text=function(m){return m},W.link=function(m,x,C){return""+C},W.image=function(m,x,C){return""+C},W.br=function(){return""},Y}(),$e=function(){function Y(){this.seen={}}var W=Y.prototype;return W.slug=function(m){var x=m.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(x)){var C=x;do this.seen[C]++,x=C+"-"+this.seen[C];while(this.seen.hasOwnProperty(x))}return this.seen[x]=0,x},Y}(),ue=B.defaults,Te=H.unescape,Re=function(){function Y(D){this.options=D||ue,this.options.renderer=this.options.renderer||new De,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Me,this.slugger=new $e}Y.parse=function(m,x){var C=new Y(x);return C.parse(m)};var W=Y.prototype;return W.parse=function(m,x){x===void 0&&(x=!0);var C="",O,ce,ye,Ke,rt,Qe,it,gt,xt,lt,Pt,kt,Et,bt,pt,Ot,It,Kt,Yt=m.length;for(O=0;O0&&pt.tokens[0].type==="text"?(pt.tokens[0].text=Kt+" "+pt.tokens[0].text,pt.tokens[0].tokens&&pt.tokens[0].tokens.length>0&&pt.tokens[0].tokens[0].type==="text"&&(pt.tokens[0].tokens[0].text=Kt+" "+pt.tokens[0].tokens[0].text)):pt.tokens.unshift({type:"text",text:Kt}):bt+=Kt),bt+=this.parse(pt.tokens,Et),xt+=this.renderer.listitem(bt,It,Ot);C+=this.renderer.list(xt,Pt,kt);continue}case"html":{C+=this.renderer.html(lt.text);continue}case"paragraph":{C+=this.renderer.paragraph(this.parseInline(lt.tokens));continue}case"text":{for(xt=lt.tokens?this.parseInline(lt.tokens):lt.text;O+1An error occurred:"+Pe(ye.message+"",!0)+"
";throw ye}}ke.options=ke.setOptions=function(Y){return Fe(ke.defaults,Y),ze(ke.defaults),ke},ke.getDefaults=ve,ke.defaults=He,ke.use=function(Y){var W=Fe({},Y);if(Y.renderer&&function(){var m=ke.defaults.renderer||new De,x=function(ce){var ye=m[ce];m[ce]=function(){for(var Ke=arguments.length,rt=new Array(Ke),Qe=0;Qe`,triples:"",explode:"[]{}"},xe=X.Pos;X.defineOption("autoCloseBrackets",!1,function(U,M,z){z&&z!=X.Init&&(U.removeKeyMap(Ce),U.state.closeBrackets=null),M&&(ie(je(M,"pairs")),U.state.closeBrackets=M,U.addKeyMap(Ce))});function je(U,M){return M=="pairs"&&typeof U=="string"?U:typeof U=="object"&&U[M]!=null?U[M]:Oe[M]}var Ce={Backspace:k,Enter:ne};function ie(U){for(var M=0;M=0;ae--){var Ne=re[ae].head;U.replaceRange("",xe(Ne.line,Ne.ch-1),xe(Ne.line,Ne.ch+1),"+delete")}}function ne(U){var M=A(U),z=M&&je(M,"explode");if(!z||U.getOption("disableInput"))return X.Pass;for(var re=U.listSelections(),ae=0;ae0;return{anchor:new xe(U.anchor.line,U.anchor.ch+(M?-1:1)),head:new xe(U.head.line,U.head.ch+(M?1:-1))}}function me(U,M){var z=A(U);if(!z||U.getOption("disableInput"))return X.Pass;var re=je(z,"pairs"),ae=re.indexOf(M);if(ae==-1)return X.Pass;for(var we=je(z,"closeBefore"),Ne=je(z,"triples"),fe=re.charAt(ae+1)==M,Z=U.listSelections(),he=ae%2==0,se,_=0;_=0&&U.getRange(P,xe(P.line,P.ch+3))==M+M+M?w="skipThree":w="skip";else if(fe&&P.ch>1&&Ne.indexOf(M)>=0&&U.getRange(xe(P.line,P.ch-2),P)==M+M){if(P.ch>2&&/\bstring/.test(U.getTokenTypeAt(xe(P.line,P.ch-2))))return X.Pass;w="addFour"}else if(fe){var V=P.ch==0?" ":U.getRange(xe(P.line,P.ch-1),P);if(!X.isWordChar(oe)&&V!=M&&!X.isWordChar(V))w="both";else return X.Pass}else if(he&&(oe.length===0||/\s/.test(oe)||we.indexOf(oe)>-1))w="both";else return X.Pass;if(!se)se=w;else if(se!=w)return X.Pass}var S=ae%2?re.charAt(ae-1):M,N=ae%2?M:re.charAt(ae+1);U.operation(function(){if(se=="skip")U.execCommand("goCharRight");else if(se=="skipThree")for(var J=0;J<3;J++)U.execCommand("goCharRight");else if(se=="surround"){for(var K=U.getSelections(),J=0;J0&&(ee.percent=ee.loaded/ee.total*100),H.onProgress(ee)});var s=new FormData;H.data&&Object.keys(H.data).forEach(function(R){var ee=H.data[R];if(Array.isArray(ee)){ee.forEach(function(be){s.append(R+"[]",be)});return}s.append(R,H.data[R])}),H.file instanceof Blob?s.append(H.filename,H.file,H.file.name):s.append(H.filename,H.file),u.onerror=function(ee){H.onError(ee)},u.onload=function(){return u.status<200||u.status>=300?H.onError(Ce(H,u),ie(u)):H.onSuccess(ie(u),u)},u.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in u&&(u.withCredentials=!0);var E=H.headers||{};return E["X-Requested-With"]!==null&&u.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(E).forEach(function(R){E[R]!==null&&u.setRequestHeader(R,E[R])}),u.send(s),{abort:function(){u.abort()}}}var A=+new Date,k=0;function ne(){return"rc-upload-"+A+"-"+ ++k}function q(H,u){return H.indexOf(u,H.length-u.length)!==-1}var me=function(H,u){if(H&&u){var s=Array.isArray(u)?u:u.split(","),E=H.name||"",R=H.type||"",ee=R.replace(/\/.*$/,"");return s.some(function(be){var de=be.trim();return de.charAt(0)==="."?q(E.toLowerCase(),de.toLowerCase()):/\/\*$/.test(de)?ee===de.replace(/\/.*$/,""):R===de})}return!0};function Ae(H,u){var s=H.createReader(),E=[];function R(){s.readEntries(function(ee){var be=Array.prototype.slice.apply(ee);E=E.concat(be);var de=!be.length;de?u(E):R()})}R()}var le=function(u,s,E){var R=function ee(be,de){de=de||"",be.isFile?be.file(function(pe){E(pe)&&(be.fullPath&&!pe.webkitRelativePath&&(Object.defineProperties(pe,{webkitRelativePath:{writable:!0}}),pe.webkitRelativePath=be.fullPath.replace(/^\//,""),Object.defineProperties(pe,{webkitRelativePath:{writable:!1}})),s([pe]))}):be.isDirectory&&Ae(be,function(pe){pe.forEach(function(I){ee(I,""+de+be.name+"/")})})};u.forEach(function(ee){R(ee.webkitGetAsEntry())})},U=le,M=Object.assign||function(H){for(var u=1;u=0)continue;if(!Object.prototype.hasOwnProperty.call(H,E))continue;s[E]=H[E]}return s}function Ne(H,u){if(!(H instanceof u))throw new TypeError("Cannot call a class as a function")}function fe(H,u){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:H}function Z(H,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);H.prototype=Object.create(u&&u.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(H,u):H.__proto__=u)}var he=function(u){return Object.keys(u).reduce(function(s,E){return(E.substr(0,5)==="data-"||E.substr(0,5)==="aria-"||E==="role")&&(s[E]=u[E]),s},{})},se=function(H){Z(u,H);function u(){var s,E,R,ee;Ne(this,u);for(var be=arguments.length,de=Array(be),pe=0;pe1&&arguments[1]!==void 0?arguments[1]:1,D=Me.length,m=0;m1&&arguments[1]!==void 0?arguments[1]:!1;return Object(he.a)(s).map(function(R,ee){if(!Ce.isValidElement(R)||!R.type)return null;var be=R.type.isSelectOptGroup,de=R.key,pe=R.props,I=pe.children,g=Object(B.a)(pe,["children"]);return E||!be?se(R):Object(Z.a)(Object(Z.a)({key:"__RC_SELECT_GRP__".concat(de===null?ee:de,"__"),label:de},g),{},{options:_(I)})}).filter(function(R){return R})}var Q=v("2Qr1"),P=v("qNPg"),w=v("U8pU"),oe=v("Kwbf"),V=v("WKfj");function S(s){var E=s.mode,R=s.options,ee=s.children,be=s.backfill,de=s.allowClear,pe=s.placeholder,I=s.getInputElement,g=s.showSearch,T=s.onSearch,b=s.defaultOpen,L=s.autoFocus,d=s.labelInValue,h=s.value,f=s.inputValue,y=s.optionLabelProp,G=E==="multiple"||E==="tags",j=g!==void 0?g:G||E==="combobox",te=R||_(ee);if(Object(oe.a)(E!=="tags"||te.every(function(De){return!De.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),E==="tags"||E==="combobox"){var Ee=te.some(function(De){return De.options?De.options.some(function(Me){return typeof("value"in Me?Me.value:Me.key)=="number"}):typeof("value"in De?De.value:De.key)=="number"});Object(oe.a)(!Ee,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(oe.a)(E!=="combobox"||!y,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(oe.a)(E==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(oe.a)(E==="combobox"||!I,"`getInputElement` only work with `combobox` mode."),Object(oe.b)(E!=="combobox"||!I||!de||!pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),T&&!j&&E!=="combobox"&&E!=="tags"&&Object(oe.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(oe.b)(!b||L,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),h!=null){var Le=Object(V.d)(h);Object(oe.a)(!d||Le.every(function(De){return Object(w.a)(De)==="object"&&("key"in De||"value"in De)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(oe.a)(!G||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(ee){var Ie=null;Object(he.a)(ee).some(function(De){if(!Ce.isValidElement(De)||!De.type)return!1;var Me=De.type;if(Me.isSelectOption)return!1;if(Me.isSelectOptGroup){var $e=Object(he.a)(De.props.children).every(function(ue){return!Ce.isValidElement(ue)||!De.type||ue.type.isSelectOption?!0:(Ie=ue.type,!1)});return!$e}return Ie=Me,!0}),Ie&&Object(oe.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ie.displayName||Ie.name||Ie,"`.")),Object(oe.a)(f===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=S,J=Object(P.a)({prefixCls:"rc-select",components:{optionList:re},convertChildrenToData:_,flattenOptions:Q.d,getLabeledValue:Q.e,filterOptions:Q.b,isValueDisabled:Q.g,findValueOption:Q.c,warningProps:N,fillOptionsWithMissingValue:Q.a}),K=function(s){Object(xe.a)(R,s);var E=Object(je.a)(R);function R(){var ee;return Object(X.a)(this,R),ee=E.apply(this,arguments),ee.selectRef=Ce.createRef(),ee.focus=function(){ee.selectRef.current.focus()},ee.blur=function(){ee.selectRef.current.blur()},ee}return Object(Oe.a)(R,[{key:"render",value:function(){return Ce.createElement(J,Object.assign({ref:this.selectRef},this.props))}}]),R}(Ce.Component);K.Option=we,K.OptGroup=fe;var H=K,u=Ge.c=H},M8RZ:function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return k});var X=v("fWQN"),Oe=v("mtLc"),xe=v("yKVA"),je=v("879j"),Ce=v("q1tI"),ie=v.n(Ce),B=v("i8i4"),A=v.n(B),k=function(ne){Object(xe.a)(me,ne);var q=Object(je.a)(me);function me(Ae){var le;Object(X.a)(this,me),le=q.call(this,Ae);var U=window.document;return le.node=U.createElement("div"),U.body.appendChild(le.node),le}return Object(Oe.a)(me,[{key:"render",value:function(){var le=this.props.children;return Object(B.createPortal)(le,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),me}(ie.a.Component)},NvD2:function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return ie});var X=v("Kwbf");function Oe(B,A){var k=new Set;return B.forEach(function(ne){A.has(ne)||k.add(ne)}),k}function xe(B){var A=B||{},k=A.disabled,ne=A.disableCheckbox,q=A.checkable;return!!(k||ne)||q===!1}function je(B,A,k,ne){for(var q=new Set(B),me=new Set,Ae=0;Ae<=k;Ae+=1){var le=A.get(Ae)||new Set;le.forEach(function(re){var ae=re.key,we=re.node,Ne=re.children,fe=Ne===void 0?[]:Ne;q.has(ae)&&!ne(we)&&fe.filter(function(Z){return!ne(Z.node)}).forEach(function(Z){q.add(Z.key)})})}for(var U=new Set,M=k;M>=0;M-=1){var z=A.get(M)||new Set;z.forEach(function(re){var ae=re.parent,we=re.node;if(ne(we)||!re.parent||U.has(re.parent.key))return;if(ne(re.parent.node)){U.add(ae.key);return}var Ne=!0,fe=!1;(ae.children||[]).filter(function(Z){return!ne(Z.node)}).forEach(function(Z){var he=Z.key,se=q.has(he);Ne&&!se&&(Ne=!1),!fe&&(se||me.has(he))&&(fe=!0)}),Ne&&q.add(ae.key),fe&&me.add(ae.key),U.add(ae.key)})}return{checkedKeys:Array.from(q),halfCheckedKeys:Array.from(Oe(me,q))}}function Ce(B,A,k,ne,q){for(var me=new Set(B),Ae=new Set(A),le=0;le<=ne;le+=1){var U=k.get(le)||new Set;U.forEach(function(ae){var we=ae.key,Ne=ae.node,fe=ae.children,Z=fe===void 0?[]:fe;!me.has(we)&&!Ae.has(we)&&!q(Ne)&&Z.filter(function(he){return!q(he.node)}).forEach(function(he){me.delete(he.key)})})}Ae=new Set;for(var M=new Set,z=ne;z>=0;z-=1){var re=k.get(z)||new Set;re.forEach(function(ae){var we=ae.parent,Ne=ae.node;if(q(Ne)||!ae.parent||M.has(ae.parent.key))return;if(q(ae.parent.node)){M.add(we.key);return}var fe=!0,Z=!1;(we.children||[]).filter(function(he){return!q(he.node)}).forEach(function(he){var se=he.key,_=me.has(se);fe&&!_&&(fe=!1),!Z&&(_||Ae.has(se))&&(Z=!0)}),fe||me.delete(we.key),Z&&Ae.add(we.key),M.add(we.key)})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(Oe(Ae,me))}}function ie(B,A,k,ne){var q=[],me;ne?me=ne:me=xe;var Ae=new Set(B.filter(function(z){var re=!!k[z];return re||q.push(z),re})),le=new Map,U=0;Object.keys(k).forEach(function(z){var re=k[z],ae=re.level,we=le.get(ae);we||(we=new Set,le.set(ae,we)),we.add(re),U=Math.max(U,ae)}),Object(X.a)(!q.length,"Tree missing follow keys: ".concat(q.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var M;return A===!0?M=je(Ae,le,U,me):M=Ce(Ae,A.halfCheckedKeys,le,U,me),M}},OLES:function(ct,Ge,v){"use strict";var X=v("U8pU"),Oe=v("VTBJ"),xe=v("Ff2n"),je=v("q1tI"),Ce=v("uciX"),ie=v("7ixt"),B=function(Ae){var le=Ae.overlay,U=Ae.prefixCls,M=Ae.id,z=Ae.overlayInnerStyle;return je.createElement("div",{className:"".concat(U,"-inner"),id:M,role:"tooltip",style:z},typeof le=="function"?le():le)},A=B,k=function(Ae,le){var U=Ae.overlayClassName,M=Ae.trigger,z=M===void 0?["hover"]:M,re=Ae.mouseEnterDelay,ae=re===void 0?0:re,we=Ae.mouseLeaveDelay,Ne=we===void 0?.1:we,fe=Ae.overlayStyle,Z=Ae.prefixCls,he=Z===void 0?"rc-tooltip":Z,se=Ae.children,_=Ae.onVisibleChange,Q=Ae.afterVisibleChange,P=Ae.transitionName,w=Ae.animation,oe=Ae.placement,V=oe===void 0?"right":oe,S=Ae.align,N=S===void 0?{}:S,J=Ae.destroyTooltipOnHide,K=J===void 0?!1:J,H=Ae.defaultVisible,u=Ae.getTooltipContainer,s=Ae.overlayInnerStyle,E=Object(xe.a)(Ae,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),R=Object(je.useRef)(null);Object(je.useImperativeHandle)(le,function(){return R.current});var ee=Object(Oe.a)({},E);"visible"in Ae&&(ee.popupVisible=Ae.visible);var be=function(){var T=Ae.arrowContent,b=T===void 0?null:T,L=Ae.overlay,d=Ae.id;return[je.createElement("div",{className:"".concat(he,"-arrow"),key:"arrow"},b),je.createElement(A,{key:"content",prefixCls:he,id:d,overlay:L,overlayInnerStyle:s})]},de=!1,pe=!1;if(typeof K=="boolean")de=K;else if(K&&Object(X.a)(K)==="object"){var I=K.keepParent;de=I===!0,pe=I===!1}return je.createElement(Ce.a,Object.assign({popupClassName:U,prefixCls:he,popup:be,action:z,builtinPlacements:ie.a,popupPlacement:V,ref:R,popupAlign:N,getPopupContainer:u,onPopupVisibleChange:_,afterPopupVisibleChange:Q,popupTransitionName:P,popupAnimation:w,defaultPopupVisible:H,destroyPopupOnHide:de,autoDestroy:pe,mouseLeaveDelay:Ne,popupStyle:fe,mouseEnterDelay:ae},ee),se)},ne=Object(je.forwardRef)(k),q=Ge.a=ne},OZM5:function(ct,Ge,v){"use strict";v.d(Ge,"b",function(){return ne}),v.d(Ge,"a",function(){return q}),v.d(Ge,"k",function(){return me}),v.d(Ge,"h",function(){return Ae}),v.d(Ge,"i",function(){return le}),v.d(Ge,"g",function(){return U}),v.d(Ge,"c",function(){return M}),v.d(Ge,"d",function(){return z}),v.d(Ge,"j",function(){return we}),v.d(Ge,"e",function(){return Ne}),v.d(Ge,"f",function(){return fe});var X=v("KQm4"),Oe=v("U8pU"),xe=v("Ff2n"),je=v("q1tI"),Ce=v.n(je),ie=v("Kwbf"),B=v("WaYH"),A=.25,k=2;function ne(Z,he){var se=Z.slice(),_=se.indexOf(he);return _>=0&&se.splice(_,1),se}function q(Z,he){var se=Z.slice();return se.indexOf(he)===-1&&se.push(he),se}function me(Z){return Z.split("-")}function Ae(Z,he){return"".concat(Z,"-").concat(he)}function le(Z){return Z&&Z.type&&Z.type.isTreeNode}function U(Z,he){var se=[Z],_=he[Z];function Q(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];P.forEach(function(w){var oe=w.key,V=w.children;se.push(oe),Q(V)})}return Q(_.children),se}function M(Z,he){var se=Z.clientY,_=he.selectHandle.getBoundingClientRect(),Q=_.top,P=_.bottom,w=_.height,oe=Math.max(w*A,k);return se<=Q+oe?-1:se>=P-oe?1:0}function z(Z,he){if(!Z)return;var se=he.multiple;return se?Z.slice():Z.length?[Z[0]]:Z}var re=function(he){return he};function ae(Z,he){if(!Z)return[];var se=he||{},_=se.processProps,Q=_===void 0?re:_,P=Array.isArray(Z)?Z:[Z];return P.map(function(w){var oe=w.children,V=Object(xe.a)(w,["children"]),S=ae(oe,he);return Ce.a.createElement(B.a,Object.assign({},Q(V)),S)})}function we(Z){if(!Z)return null;var he;if(Array.isArray(Z))he={checkedKeys:Z,halfCheckedKeys:void 0};else if(Object(Oe.a)(Z)==="object")he={checkedKeys:Z.checked||void 0,halfCheckedKeys:Z.halfChecked||void 0};else return Object(ie.a)(!1,"`checkedKeys` is not an array or an object"),null;return he}function Ne(Z,he){var se=new Set;function _(Q){if(se.has(Q))return;var P=he[Q];if(!P)return;se.add(Q);var w=P.parent,oe=P.node;if(oe.disabled)return;w&&_(w.key)}return(Z||[]).forEach(function(Q){_(Q)}),Object(X.a)(se)}function fe(Z){var he={};return Object.keys(Z).forEach(function(se){(se.startsWith("data-")||se.startsWith("aria-"))&&(he[se]=Z[se])}),he}},Ot1p:function(ct,Ge,v){"use strict";var X=v("2qtc"),Oe=v("kLXV"),xe=v("rAM+"),je=v("miYZ"),Ce=v("tsqr"),ie=v("tJVT"),B=v("jrin"),A=v("q1tI"),k=v.n(A),ne=v("VrN/"),q=v.n(ne),me=v("bdgK"),Ae=v("p77/"),le=v("Bd2K"),U=v("ELLl"),M=v("19Vz"),z=v("lZu9"),re=v("+NIl"),ae=v("kSUc"),we=v("9Bee"),Ne=function(D){var m=D.value,x=m===void 0?"":m,C=D.className,O=D.showTextOnly,ce=D.showLines,ye=D.style,Ke=ye===void 0?{}:ye,rt=Object(A.useMemo)(function(){return""},[x]);return k.a.createElement(k.a.Fragment,null,k.a.createElement("div",{dangerouslySetInnerHTML:{__html:rt}}))},fe=v("0Owb"),Z=v("dejd"),he=v("C+DQ"),se=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function _(D){var m=D.onActionCallback,x=D.title,C=D.icon,O=D.actionName,ce=D.className,ye=ce===void 0?"":ce,Ke=D.children;function rt(){m(O)}return k.a.createElement("a",{title:x,className:ye,onClick:rt},k.a.createElement("i",{className:"md-iconfont ".concat(C)}),Ke)}var Q=function(D){var m=D.watch,x=D.showNullButton,C=D.onActionCallback,O=D.fullScreen,ce=D.insertTemp,ye=D.hidetoolBar,Ke=[].concat(se,[{title:"".concat(m?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(m?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return k.a.createElement("ul",{className:"markdown-toolbar-container"},!ye&&Ke.map(function(rt,Qe){return k.a.createElement("li",{key:Qe},rt.actionName?k.a.createElement(_,Object(fe.a)({},rt,{onActionCallback:C})):k.a.createElement("span",{className:"v-line"}))}),x?k.a.createElement("li",null,k.a.createElement(_,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:C},k.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce&&k.a.createElement("li",null,k.a.createElement(_,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ce),onActionCallback:C},k.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),k.a.createElement("li",{className:"btn-full-screen"},k.a.createElement(_,{icon:"".concat(O?"icon-shrink":"icon-enlarge"),title:O?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:C})))},P=v("M8RZ"),w=v("+L6B"),oe=v("2/Rp"),V=v("y8nQ"),S=v("Vl3Y"),N=v("5NDa"),J=v("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},H=function(D){var m=D.callback,x=D.onCancel;function C(O){m(O)}return k.a.createElement(S.a,Object(fe.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:C}),k.a.createElement(S.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},k.a.createElement(J.a,null)),k.a.createElement(S.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},k.a.createElement(J.a,null)),k.a.createElement("div",{className:"flex-container flex-end"},k.a.createElement(oe.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),k.a.createElement(oe.a,{type:"ghost",onClick:x},"\u53D6\u6D88")))},u=v("7ahc"),s=v("HmJG"),E=v("BjJ7"),R=S.a.useForm,ee={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}},de=function(D){var m=D.callback,x=D.onCancel,C=R(),O=Object(ie.a)(C,1),ce=O[0];function ye(Qe){m(Qe)}function Ke(Qe,it){ce.setFieldsValue({src:"/api/attachments/".concat(Qe.id),type:it.type})}function rt(Qe){var it=Qe.target.files[0];I(it,Ke)}return k.a.createElement(S.a,Object(fe.a)({form:ce},be,{className:"upload-image-panel",onFinish:ye}),k.a.createElement(S.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},k.a.createElement("div",{className:"flex-container"},k.a.createElement(S.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},k.a.createElement(J.a,{style:ee})),k.a.createElement(pe,{onFileChange:rt}))),k.a.createElement(S.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},k.a.createElement(J.a,{style:{width:264}})),k.a.createElement(S.a.Item,{style:{textAlign:"right"}},k.a.createElement(oe.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),k.a.createElement(oe.a,{type:"ghost",onClick:x},"\u53D6\u6D88")))};function pe(D){var m=D.onFileChange;return k.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",k.a.createElement("input",{type:"file",onChange:m}))}function I(D,m){if(!D)throw new String("\u6CA1\u6709\u6587\u4EF6");var x=new FormData;x.append("editormd-image-file",D),x.append("file_param_name","editormd-image-file"),x.append("byxhr","true");var C=new window.XMLHttpRequest;C.withCredentials=!0,C.addEventListener("load",function(O){m(JSON.parse(O.target.responseText),D)},!1),C.addEventListener("error",function(O){console.error(O)},!1),C.open("POST","".concat(E.a,"/api/attachments.json")),C.send(x)}var g=v("giR+"),T=v("fyUT"),b=v("7Kak"),L=v("9yH6"),d=L.a.Group,h={margin:"0 8px"},f=function(D){var m=D.callback,x=D.onCancel;function C(O){m(O)}return k.a.createElement(S.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:C},k.a.createElement("div",{className:"flex-container"},k.a.createElement("span",{style:h},"\u5355\u5143\u683C\u6570\uFF1A"),k.a.createElement("span",{style:h},"\u884C\u6570"),k.a.createElement(S.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},k.a.createElement(T.a,null)),k.a.createElement("span",{style:h},"\u5217\u6570"),k.a.createElement(S.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},k.a.createElement(T.a,null))),k.a.createElement("div",{className:"flex-container",style:{marginTop:12}},k.a.createElement("span",{style:h},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),k.a.createElement(S.a.Item,{name:"align"},k.a.createElement(d,null,k.a.createElement(L.a,{value:"default"},k.a.createElement("i",{className:"fa fa-align-justify"})),k.a.createElement(L.a,{value:"left"},k.a.createElement("i",{className:"fa fa-align-left"})),k.a.createElement(L.a,{value:"center"},k.a.createElement("i",{className:"fa fa-align-center"})),k.a.createElement(L.a,{value:"right"},k.a.createElement("i",{className:"fa fa-align-right"}))))),k.a.createElement("div",{className:"flex-container flex-end"},k.a.createElement(oe.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),k.a.createElement(oe.a,{type:"ghost",onClick:x},"\u53D6\u6D88")))},y=v("m3rI"),G=v("wMS7"),j=v.n(G),te="link",Ee="upload-image",Le="code-block",Ie="add-table",De="------------",Me={default:De,left:":".concat(De),center:":".concat(De,":"),right:"".concat(De,":")},$e=v("9VGf"),ue,Te;function Re(){}var Fe=0,We=1e4,Pe="\u2581",ve=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function ze(D){return/^\d+$/.test(D)?"".concat(D,"px"):D}var He=navigator.platform.toUpperCase().indexOf("MAC")>=0,ke=He?"Cmd":"Ctrl",Ue=(ue={},Object(B.a)(ue,ke+"-B","bold"),Object(B.a)(ue,ke+"-I","italic"),ue),Y=(Te={},Object(B.a)(Te,te,"\u6DFB\u52A0\u94FE\u63A5"),Object(B.a)(Te,Le,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(B.a)(Te,Ee,"\u6DFB\u52A0\u56FE\u7247"),Object(B.a)(Te,Ie,"\u6DFB\u52A0\u8868\u683C"),Te),W=Ge.a=function(D){var m=D.defaultValue,x=m===void 0?"":m,C=D.onChange,O=D.width,ce=O===void 0?"100%":O,ye=D.height,Ke=ye===void 0?400:ye,rt=D.miniToolbar,Qe=rt===void 0?!1:rt,it=D.isFocus,gt=it===void 0?!1:it,xt=D.watch,lt=D.insertTemp,Pt=D.mode,kt=Pt===void 0?"markdown":Pt,Et=D.id,bt=Et===void 0?"markdown-editor-id":Et,pt=D.showResizeBar,Ot=pt===void 0?!1:pt,It=D.noStorage,Kt=It===void 0?!1:It,Yt=D.showNullButton,Mt=Yt===void 0?!1:Yt,hn=D.hidetoolBar,Jt=hn===void 0?!1:hn,Wt=D.fullScreen,nn=Wt===void 0?!1:Wt,Rt=D.onBlur,tt=D.onCMBeforeChange,Ut=D.onFullScreen,pn=D.className,on=pn===void 0?"":pn,At=D.disablePaste,an=At===void 0?!1:At,Gt=D.placeholder,wn=Gt===void 0?"":Gt,Xe=D.values,ft=Xe===void 0?"":Xe,mn=Object(A.useState)(null),sn=Object(ie.a)(mn,2),Ye=sn[0],kn=sn[1],aa=Object(A.useState)(x),ht=Object(ie.a)(aa,2),Vt=ht[0],Nn=ht[1],jn=Object(A.useState)(xt),en=Object(ie.a)(jn,2),Sn=en[0],st=en[1],_e=Object(A.useState)(nn),Ze=Object(ie.a)(_e,2),nt=Ze[0],Ct=Ze[1],yt=Object(A.useState)(""),jt=Object(ie.a)(yt,2),Nt=jt[0],_t=jt[1],En=Object(A.useState)(0),Zt=Object(ie.a)(En,2),un=Zt[0],tn=Zt[1],Qt=Object(A.useState)(Ke),Pn=Object(ie.a)(Qt,2),Kn=Pn[0],cn=Pn[1],wa=Object(A.useState)(!1),Tn=Object(ie.a)(wa,2),zn=Tn[0],Ft=Tn[1],dt=Object(A.useRef)(),at=Object(A.useRef)(),gn=Object(A.useRef)(),zt=Object(A.useRef)();Object(A.useEffect)(function(){Nn(ft),Ye==null||Ye.setValue(ft)},[ft]),Object(A.useEffect)(function(){Ut==null||Ut(nt)},[nt]),Object(A.useEffect)(function(){if(dt.current){var mt=q.a.fromTextArea(dt.current,{mode:kt,lineNumbers:!Qe,lineWrapping:!0,value:x,autoCloseTags:!0,autoCloseBrackets:!0});gt&&mt.focus();function St(Tt,Dt){if(an){Dt.preventDefault();return}var Bt=Dt.clipboardData;if(Bt){var qt=Bt.types.toString(),dn=Bt.items,_n=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];if(qt==="Files"||Bt.types.indexOf("Files")>-1){if(Dt.preventDefault(),kt=="stex")return;try{var An,ga=dn[1];((An=dn[0])===null||An===void 0?void 0:An.kind)==="file"&&(ga=dn[0]);var bn=ga.getAsFile(),ka=bn.name.split(".").pop();I(bn,function(Wn){if(Wn.id){var ba,ya,sr;(bn==null||((ba=bn.type)===null||ba===void 0)?void 0:ba.indexOf("image"))>-1?mt.replaceSelection(".concat(Wn.content_type,")")):(bn==null||((ya=bn.type)===null||ya===void 0)?void 0:ya.indexOf("video"))>-1?mt.replaceSelection('')):(bn==null||((sr=bn.type)===null||sr===void 0)?void 0:sr.indexOf("pdf"))>-1?mt.replaceSelection('').concat(bn.name,"")):_n.includes(ka)?mt.replaceSelection('').concat(bn.name,"")):mt.replaceSelection("[".concat(bn.name,"](").concat(y.a.API_SERVER,"/api/attachments/").concat(Wn.id,"?type=").concat(Wn.content_type,")"))}else(Wn==null?void 0:Wn.status)===401&&(document.location.href="/user/login")})}catch(Wn){Ce.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return mt.on("paste",St),kn(mt),function(){mt.off("paste",St)}}},[]);var In=Object(A.useCallback)(function(){if(at.current)try{}catch(mt){console.log(mt,"---- to set md editor body height")}},[Kn,at,nt]);Object(A.useEffect)(function(){function mt(){var Tt=new me.default(function(Dt){var Bt=Object(xe.a)(Dt),qt;try{for(Bt.s();!(qt=Bt.n()).done;){var dn=qt.value;(dn.target.offsetHeight>0||dn.target.offsetWidth>0)&&(In(),Ye.setSize("100%","100%"),Ye.refresh())}}catch(_n){Bt.e(_n)}finally{Bt.f()}});return Tt.observe(dt.current.parentElement),Tt}if(Ye){var St=mt();return function(){St.unobserve(dt.current.parentElement)}}},[Ye,In]),Object(A.useEffect)(function(){if(Ye){for(var mt=[],St=function(){var dn=Dt[Tt];Bt=Object(ie.a)(dn,2);var _n=Bt[0],An=Bt[1],ga=Object(B.a)({},_n,function(){ea(An)});mt.push(ga),Ye.addKeyMap(ga)},Tt=0,Dt=Object.entries(Ue);Tt0){var mt=new Date().getTime(),St=window.sessionStorage.getItem(bt);mt>=un+We&&(!St||St!==Vt)&&(window.sessionStorage.setItem(bt,Vt),Ft(!0))}},We),Object(A.useEffect)(function(){st(xt)},[Ye,xt]),Object(A.useEffect)(function(){Ye&&(gt&&Ye.focus())},[Ye,gt]),Object(A.useEffect)(function(){if(Sn&&Ye){var mt=Ye.getScrollerElement();function St(Tt){var Dt=Tt.target;if(zt.current){var Bt=Dt.scrollTop/Dt.scrollHeight;zt.current.scrollTop=zt.current.scrollHeight*Bt}}return mt.addEventListener("scroll",St),function(){mt.removeEventListener("scroll",St)}}},[Ye,Sn]),Object(A.useEffect)(function(){if(Ye&&tt){function mt(St,Tt){tt(St,Tt)}return Ye.on("beforeChange",mt),function(){Ye.off("beforeChange",mt)}}},[Ye,tt]),Object(A.useEffect)(function(){if(Ye&&Rt){function mt(){Rt(Ye.getValue())}return Ye.on("blur",mt),function(){Ye.off("blur",mt)}}},[Ye,Rt]),Object(A.useEffect)(function(){if(Ye){function mt(St){var Tt=j.a.sanitize(St.getValue());Nn(Tt),tn(new Date().getTime()),St.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),C&&C(Tt)}return Ye.on("change",mt),function(){Ye.off("change",mt)}}},[Ye,C]),Object(A.useEffect)(function(){Ye&&(x==null?(Ye.setValue(""),Nn("")):x!==Ye.getValue()&&(Ye.setValue(x),Nn(x),Ye.setCursor(Ye.lineCount(),0)))},[Ye,x]);var ea=Object(A.useCallback)(function(mt){var St=Ye.getCursor(),Tt=Ye.getSelection(),Dt=Tt.split(`
`);switch(mt){case"bold":return Ye.replaceSelection("**"+Tt+"**"),Tt===""&&Ye.setCursor(St.line,St.ch+2),Ye.focus();case"italic":return Ye.replaceSelection("*"+Tt+"*"),Tt===""&&Ye.setCursor(St.line,St.ch+1),Ye.focus();case"code":return Ye.replaceSelection("`"+Tt+"`"),Tt===""&&Ye.setCursor(St.line,St.ch+1),Ye.focus();case"inline-latex":return Ye.replaceSelection("`$$"+Tt+"$$`"),Tt===""&&Ye.setCursor(St.line,St.ch+3),Ye.focus();case"latex":return Ye.replaceSelection("```latex\n"+Tt+"\n```"),Ye.setCursor(St.line+1,Tt.length+1),Ye.focus();case"line-break":return Ye.replaceSelection(`
`),Ye.focus();case"list-ul":return Tt===""?Ye.replaceSelection("- "+Tt):Ye.replaceSelection(Dt.map(function(Bt){return Bt===""?"":"- ".concat(Bt)}).join(`
`)),Ye.focus();case"list-ol":return Tt===""?Ye.replaceSelection("1. "+Tt):Ye.replaceSelection(Dt.map(function(Bt,qt){return Bt===""?"":"".concat(qt+1,". ").concat(Bt)}).join(`
`)),Ye.focus();case"add-null-ch":return Tt===""&&Ye.setCursor(St.line,St.ch+1),Ye.replaceSelection(Pe),Ye.focus();case"inster-template-1":return Tt===""&&Ye.setCursor(St.line,St.ch),Ye.replaceSelection(ve),Ye.focus();case"eraser":return Ye.setValue(""),Ye.focus();case"trigger-watch":return st(!Sn),Ye.focus();case"trigger-full-screen":return Ct(!nt),Ye.focus();case te:_t(te);return;case Le:_t(Le);return;case Ee:_t(Ee);return;case Ie:_t(Ie);return;default:throw new Error}},[Ye,Sn,nt]),Xn=Object(A.useCallback)(function(mt){_t("");switch(Nt){case te:var St=mt.title,Tt=mt.link;return Ye.replaceSelection("[".concat(St,"](").concat(Tt,")")),Ye.focus();case Le:var Dt=mt.language,Bt=mt.content;return Ye.replaceSelection(["```"+Dt,Bt,"```"].join(`
`)),Ye.focus();case Ee:var qt=mt.src,dn=mt.alt;return Ye.replaceSelection(".concat(qt,' "').concat(dn,'" )')),Ye.focus();case Ie:for(var _n=mt.row,An=mt.col,ga=mt.align,bn=`
`,ka=0;ka<_n;ka++){for(var Wn=[],ba=[],ya=0;ya300&&(_n=300);var An=Ke+_n+"px";cn(An)}}return mt.addEventListener("mousedown",Dt),document.addEventListener("mousemove",qt),document.addEventListener("mouseup",Bt),function(){mt.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",qt),document.removeEventListener("mouseup",Bt)}}},[Ye,gn]),Object(A.useEffect)(function(){cn(Ke)},[Ke]);var sa=ze(ce),ra=ze(Kn),ua={width:sa,height:ra},ha=Object(A.useMemo)(function(){if(un){var mt=new Date(un),St=mt.getHours(),Tt=mt.getMinutes(),Dt=mt.getSeconds();return St=St<10?"0"+St:St,Tt=Tt<10?"0"+Tt:Tt,Dt=Dt<10?"0"+Dt:Dt,"".concat(St,":").concat(Tt,":").concat(Dt)}return 0},[un]);function On(){window.sessionStorage.removeItem(bt),Ft(!1),tn(0)}function Ra(){Ft(!1),tn(0),Ye.setValue(window.sessionStorage.getItem(bt))}return k.a.createElement(A.Fragment,null,k.a.createElement("div",{className:"markdown-editor-wrapper",ref:at},k.a.createElement("div",{className:"markdown-editor-container ".concat(on," ").concat(Sn?"on-preview":""," ").concat(Qe?"mini":""," ").concat(nt?"full-screen":""),style:ua},k.a.createElement(Q,{insertTemp:lt,watch:Sn,fullScreen:nt,showNullButton:Mt,onActionCallback:ea,hidetoolBar:Jt}),k.a.createElement("div",{className:"markdown-editor-body"},k.a.createElement("div",{className:"codemirror-container"},k.a.createElement("textarea",{ref:dt,placeholder:wn})),Sn?k.a.createElement("div",{ref:zt,className:"preview-container"},kt==="stex"&&k.a.createElement(Ne,{value:Vt}),kt!=="stex"&&k.a.createElement(we.a,{value:Vt})):null))),Ot?k.a.createElement("a",{ref:gn,className:"editor-resize"}):null,k.a.createElement(P.a,null,Y[Nt]?k.a.createElement(Oe.a,{centered:!0,title:Y[Nt],visible:!0,onCancel:$n,footer:null},la):null))}},RxwV:function(ct,Ge,v){"use strict";var X=v("q1tI"),Oe=v("uciX"),xe=v("2W6z"),je=v.n(xe),Ce=v("4IlW"),ie=v("uK0f"),B=v.n(ie);function A(g,T){if(g===T)return!0;if(!g||!T)return!1;var b=g.length;if(T.length!==b)return!1;for(var L=0;L0;(ue||h.isLeaf===!1)&&(Me+=" ".concat(G,"-menu-item-expand"),h.loading||($e=X.createElement("span",{className:"".concat(G,"-menu-item-expand-icon")},te))),j==="hover"&&(ue||h.isLeaf===!1)&&(De={onMouseEnter:this.delayOnSelect.bind(this,Le),onMouseLeave:this.delayOnSelect.bind(this),onClick:Le}),this.isActiveOption(h,f)&&(Me+=" ".concat(G,"-menu-item-active"),De.ref=this.saveMenuItem(f)),h.disabled&&(Me+=" ".concat(G,"-menu-item-disabled"));var Te=null;h.loading&&(Me+=" ".concat(G,"-menu-item-loading"),Te=Ee||null);var Re="";return"title"in h?Re=h.title:typeof h[this.getFieldName("label")]=="string"&&(Re=h[this.getFieldName("label")]),X.createElement("li",Object.assign({key:h[this.getFieldName("value")],className:Me,title:Re},De,{role:"menuitem",onMouseDown:function(We){return We.preventDefault()}}),h[this.getFieldName("label")],$e,Te)}},{key:"getActiveOptions",value:function(h){var f=this,y=this.props.options,G=h||this.props.activeValue;return B()(y,function(j,te){return j[f.getFieldName("value")]===G[te]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var h=this,f=this.props.options,y=this.getActiveOptions().map(function(G){return G[h.getFieldName("children")]}).filter(function(G){return!!G});return y.unshift(f),y}},{key:"delayOnSelect",value:function(h){for(var f=this,y=arguments.length,G=new Array(y>1?y-1:0),j=1;j=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,L))continue;b[L]=g[L]}}return b}function _(g,T){if(g==null)return{};var b={},L=Object.keys(g),d,h;for(h=0;h=0)continue;b[d]=g[d]}return b}function Q(g){return V(g)||oe(g)||w(g)||P()}function P(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(g,T){if(!g)return;if(typeof g=="string")return S(g,T);var b=Object.prototype.toString.call(g).slice(8,-1);if(b==="Object"&&g.constructor&&(b=g.constructor.name),b==="Map"||b==="Set")return Array.from(g);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return S(g,T)}function oe(g){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(g))return Array.from(g)}function V(g){if(Array.isArray(g))return S(g)}function S(g,T){(T==null||T>g.length)&&(T=g.length);for(var b=0,L=new Array(T);b=Ee.length?0:Ie):(Ie-=1,Ie=Ie<0?Ee.length-1:Ie):Ie=0,j[te]=Ee[Ie][h.getFieldName("value")]}else if(y.keyCode===Ce.a.LEFT||y.keyCode===Ce.a.BACKSPACE)y.preventDefault(),j.splice(j.length-1,1);else if(y.keyCode===Ce.a.RIGHT)y.preventDefault(),Ee[Le]&&Ee[Le][h.getFieldName("children")]&&j.push(Ee[Le][h.getFieldName("children")][0][h.getFieldName("value")]);else if(y.keyCode===Ce.a.ESC||y.keyCode===Ce.a.TAB){h.setPopupVisible(!1);return}(!j||j.length===0)&&h.setPopupVisible(!1);var De=h.getActiveOptions(j),Me=De[De.length-1];h.handleMenuSelect(Me,De.length-1,y),h.props.onKeyDown&&h.props.onKeyDown(y)},h.saveTrigger=function(y){h.trigger=y};var f=[];return"value"in d?f=d.value||[]:"defaultValue"in d&&(f=d.defaultValue||[]),je()(!("filedNames"in d),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),h.state={popupVisible:d.popupVisible,activeValue:f,value:f,prevProps:d},h.defaultFieldNames={label:"label",value:"value",children:"children"},h}return K(L,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(h){var f=this.defaultFieldNames,y=this.props,G=y.fieldNames,j=y.filedNames;return"filedNames"in this.props?j[h]||f[h]:G[h]||f[h]}},{key:"getFieldNames",value:function(){var h=this.props,f=h.fieldNames,y=h.filedNames;return"filedNames"in this.props?y:f}},{key:"getCurrentLevelOptions",value:function(){var h=this,f=this.props.options,y=f===void 0?[]:f,G=this.state.activeValue,j=G===void 0?[]:G,te=B()(y,function(Ee,Le){return Ee[h.getFieldName("value")]===j[Le]},{childrenKeyName:this.getFieldName("children")});return te[te.length-2]?te[te.length-2][this.getFieldName("children")]:Q(y).filter(function(Ee){return!Ee.disabled})}},{key:"getActiveOptions",value:function(h){var f=this;return B()(this.props.options||[],function(y,G){return y[f.getFieldName("value")]===h[G]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var h=this.props,f=h.prefixCls,y=h.transitionName,G=h.popupClassName,j=h.options,te=j===void 0?[]:j,Ee=h.disabled,Le=h.builtinPlacements,Ie=h.popupPlacement,De=h.children,Me=h.dropdownRender,$e=se(h,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),ue=X.createElement("div",null),Te="";te&&te.length>0?ue=X.createElement(Ne,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Te=" ".concat(f,"-menus-empty");var Re=ue;return Me&&(Re=Me(ue)),X.createElement(Oe.a,Object.assign({ref:this.saveTrigger},$e,{popupPlacement:Ie,builtinPlacements:Le,popupTransitionName:y,action:Ee?[]:["click"],popupVisible:Ee?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(f,"-menus"),popupClassName:G+Te,popup:Re}),X.cloneElement(De,{onKeyDown:this.handleKeyDown,tabIndex:Ee?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(h,f){var y=f.prevProps,G=y===void 0?{}:y,j={prevProps:h};return"value"in h&&!A(G.value,h.value)&&(j.value=h.value||[],"loadData"in h||(j.activeValue=h.value||[])),"popupVisible"in h&&(j.popupVisible=h.popupVisible),j}}]),L}(X.Component);return g.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Z,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},g}(),pe=de,I=Ge.a=pe},SJMd:function(ct,Ge){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var v,X,Oe,xe=!1,je,Ce;window.PR_SHOULD_USE_CONTINUATION=!0;var ie,B;(function(){var A=window,k=["break,continue,do,else,for,if,return,while"],ne=[k,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],q=[ne,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],me=[q,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],Ae=[q,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],le=[q,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],U="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",M=[q,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],z="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",re=[k,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],ae=[k,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],we=[k,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],Ne=[me,le,Ae,M,z,re,ae,we],fe=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,Z="str",he="kwd",se="com",_="typ",Q="lit",P="pun",w="pln",oe="tag",V="dec",S="src",N="atn",J="atv",K="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function u(j){for(var te=0,Ee=!1,Le=!1,Ie=0,De=j.length;Ie122||(m<65||D>90||ze.push([Math.max(65,D)|32,Math.min(m,90)|32]),m<97||D>122||ze.push([Math.max(97,D)&~32,Math.min(m,122)&~32]))}}ze.sort(function(ce,ye){return ce[0]-ye[0]||ye[1]-ce[1]});for(var x=[],C=[],Ue=0;UeO[0]&&(O[1]+1>O[0]&&ke.push("-"),ke.push(Te(O[1])))}return ke.push("]"),ke.join("")}function Fe(Pe){for(var ve=Pe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ze=ve.length,He=[],ke=0,Ue=0;ke=2&&D==="["?ve[ke]=Re(Y):D!=="\\"&&(ve[ke]=Y.replace(/[a-zA-Z]/g,function(C){var O=C.charCodeAt(0);return"["+String.fromCharCode(O&~32,O|32)+"]"}))}return ve.join("")}for(var We=[],Ie=0,De=j.length;Ie=0;)Ee[We.charAt(Pe)]=Fe;var ve=Fe[1],ze=""+ve;ue.hasOwnProperty(ze)||($e.push(ve),ue[ze]=null)}$e.push(/[\0-\uffff]/),Le=u($e)})();var Ie=te.length,De=function(Me){for(var $e=Me.sourceCode,ue=Me.basePos,Te=Me.sourceNode,Re=[ue,w],Fe=0,We=$e.match(Le)||[],Pe={},ve=0,ze=We.length;ve=5&&ke.substring(0,5)==="lang-",Y&&!(Ue&&typeof Ue[1]=="string")&&(Y=!1,ke=S),Y||(Pe[He]=ke)}var m=Fe;if(Fe+=He.length,!Y)Re.push(ue+m,ke);else{var x=Ue[1],C=He.indexOf(x),O=C+x.length;Ue[2]&&(O=He.length-Ue[2].length,C=O-x.length);var ce=ke.substring(5);E(Te,ue+m,He.substring(0,C),De,Re),E(Te,ue+m+C,x,L(ce,x),Re),E(Te,ue+m+O,He.substring(O),De,Re)}}Me.decorations=Re};return De}function de(j){var te=[],Ee=[];j.tripleQuotedStrings?te.push([Z,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):j.multiLineStrings?te.push([Z,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):te.push([Z,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),j.verbatimStrings&&Ee.push([Z,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Le=j.hashComments;Le&&(j.cStyleComments?(Le>1?te.push([se,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):te.push([se,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ee.push([Z,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):te.push([se,/^#[^\r\n]*/,null,"#"])),j.cStyleComments&&(Ee.push([se,/^\/\/[^\r\n]*/,null]),Ee.push([se,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ie=j.regexLiterals;if(Ie){var De=Ie>1?"":`
\r`,Me=De?".":"[\\S\\s]",$e="/(?=[^/*"+De+"])(?:[^/\\x5B\\x5C"+De+"]|\\x5C"+Me+"|\\x5B(?:[^\\x5C\\x5D"+De+"]|\\x5C"+Me+")*(?:\\x5D|$))+/";Ee.push(["lang-regex",RegExp("^"+H+"("+$e+")")])}var ue=j.types;ue&&Ee.push([_,ue]);var Te=(""+j.keywords).replace(/^ | $/g,"");Te.length&&Ee.push([he,new RegExp("^(?:"+Te.replace(/[\s,]+/g,"|")+")\\b"),null]),te.push([w,/^\s+/,null,` \r
\xA0`]);var Re="^.[^\\s\\w.$@'\"`/\\\\]*";return j.regexLiterals&&(Re+="(?!s*/)"),Ee.push([Q,/^@[a-z_$][a-z_$@0-9]*/i,null],[_,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[w,/^[a-z_$][a-z_$@0-9]*/i,null],[Q,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[w,/^\\[\s\S]?/,null],[P,new RegExp(Re),null]),be(te,Ee)}var pe=de({keywords:Ne,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function I(j,te,Ee){for(var Le=/(?:^|\s)nocode(?:\s|$)/,Ie=/\r\n?|\n/,De=j.ownerDocument,Me=De.createElement("li");j.firstChild;)Me.appendChild(j.firstChild);var $e=[Me];function ue(ve){var ze=ve.nodeType;if(ze==1&&!Le.test(ve.className))if(ve.nodeName==="br")Te(ve),ve.parentNode&&ve.parentNode.removeChild(ve);else for(var He=ve.firstChild;He;He=He.nextSibling)ue(He);else if((ze==3||ze==4)&&Ee){var ke=ve.nodeValue,Ue=ke.match(Ie);if(Ue){var Y=ke.substring(0,Ue.index);ve.nodeValue=Y;var W=ke.substring(Ue.index+Ue[0].length);if(W){var D=ve.parentNode;D.insertBefore(De.createTextNode(W),ve.nextSibling)}Te(ve),Y||ve.parentNode.removeChild(ve)}}}function Te(ve){for(;!ve.nextSibling;)if(ve=ve.parentNode,!ve)return;function ze(Ue,Y){var W=Y?Ue.cloneNode(!1):Ue,D=Ue.parentNode;if(D){var m=ze(D,1),x=Ue.nextSibling;m.appendChild(W);for(var C=x;C;C=x)x=C.nextSibling,m.appendChild(C)}return W}for(var He=ze(ve.nextSibling,0),ke;(ke=He.parentNode)&&ke.nodeType===1;)He=ke;$e.push(He)}for(var Re=0;Re<$e.length;++Re)ue($e[Re]);te===(te|0)&&$e[0].setAttribute("value",te);var Fe=De.createElement("ol");Fe.className="linenums";for(var We=Math.max(0,te-1|0)||0,Re=0,Pe=$e.length;Re=D&&(ue+=2),De>=m&&(Fe+=2)}}finally{ke&&(ke.style.display=Ue)}}var T={};function b(j,te){for(var Ee=te.length;--Ee>=0;){var Le=te[Ee];T.hasOwnProperty(Le)?A.console&&console.warn("cannot override language handler %s",Le):T[Le]=j}}function L(j,te){return j&&T.hasOwnProperty(j)||(j=/^\s*]*(?:>|$)/],[se,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[P,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^