(window.webpackJsonp=window.webpackJsonp||[]).push([[185,5,6,7,8,10,13],{"+NIl":function(N,$,P){(function(k){k(P("VrN/"))})(function(k){"use strict";k.defineMode("stex",function(u,C){"use strict";function R(m,w){m.cmdState.push(w)}function h(m){return m.cmdState.length>0?m.cmdState[m.cmdState.length-1]:null}function s(m){var w=m.cmdState.pop();w&&w.closeBracket()}function S(m){for(var w=m.cmdState,p=w.length-1;p>=0;p--){var d=w[p];if(d.name=="DEFAULT")continue;return d}return{styleIdentifier:function(){return null}}}function f(m,w,p){return function(){this.name=m,this.bracketNo=0,this.style=w,this.styles=p,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var a={};a.importmodule=f("importmodule","tag",["string","builtin"]),a.documentclass=f("documentclass","tag",["","atom"]),a.usepackage=f("usepackage","tag",["atom"]),a.begin=f("begin","tag",["atom"]),a.end=f("end","tag",["atom"]),a.label=f("label","tag",["atom"]),a.ref=f("ref","tag",["atom"]),a.eqref=f("eqref","tag",["atom"]),a.cite=f("cite","tag",["atom"]),a.bibitem=f("bibitem","tag",["atom"]),a.Bibitem=f("Bibitem","tag",["atom"]),a.RBibitem=f("RBibitem","tag",["atom"]),a.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function o(m,w){m.f=w}function r(m,w){var p;if(m.match(/^\\[a-zA-Z@]+/)){var d=m.current().slice(1);return p=a.hasOwnProperty(d)?a[d]:a.DEFAULT,p=new p,R(w,p),o(w,g),p.style}if(m.match(/^\\[$&%#{}_]/))return"tag";if(m.match(/^\\[,;!\/\\]/))return"tag";if(m.match("\\["))return o(w,function(l,c){return E(l,c,"\\]")}),"keyword";if(m.match("\\("))return o(w,function(l,c){return E(l,c,"\\)")}),"keyword";if(m.match("$$"))return o(w,function(l,c){return E(l,c,"$$")}),"keyword";if(m.match("$"))return o(w,function(l,c){return E(l,c,"$")}),"keyword";var n=m.next();if(n=="%")return m.skipToEnd(),"comment";if(n=="}"||n=="]"){if(p=h(w),p)p.closeBracket(n),o(w,g);else return"error";return"bracket"}else return n=="{"||n=="["?(p=a.DEFAULT,p=new p,R(w,p),"bracket"):/\d/.test(n)?(m.eatWhile(/[\w.%]/),"atom"):(m.eatWhile(/[\w\-_]/),p=S(w),p.name=="begin"&&(p.argument=m.current()),p.styleIdentifier())}function E(m,w,p){if(m.eatSpace())return null;if(p&&m.match(p))return o(w,r),"keyword";if(m.match(/^\\[a-zA-Z@]+/))return"tag";if(m.match(/^[a-zA-Z]+/))return"variable-2";if(m.match(/^\\[$&%#{}_]/))return"tag";if(m.match(/^\\[,;!\/]/))return"tag";if(m.match(/^[\^_&]/))return"tag";if(m.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(m.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var d=m.next();return d=="{"||d=="}"||d=="["||d=="]"||d=="("||d==")"?"bracket":d=="%"?(m.skipToEnd(),"comment"):"error"}function g(m,w){var p=m.peek(),d;return p=="{"||p=="["?(d=h(w),d.openBracket(p),m.eat(p),o(w,r),"bracket"):/[ \t\r]/.test(p)?(m.eat(p),null):(o(w,r),s(w),r(m,w))}return{startState:function(){var m=C.inMathMode?function(w,p){return E(w,p)}:r;return{cmdState:[],f:m}},copyState:function(m){return{cmdState:m.cmdState.slice(),f:m.f}},token:function(m,w){return w.f(m,w)},blankLine:function(m){m.f=r,m.cmdState.length=0},lineComment:"%"}}),k.defineMIME("text/x-stex","stex"),k.defineMIME("text/x-latex","stex")})},"19Vz":function(N,$,P){(function(k){k(P("VrN/"))})(function(k){k.defineOption("placeholder","",function(f,a,o){var r=o&&o!=k.Init;if(a&&!r)f.on("blur",h),f.on("change",s),f.on("swapDoc",s),k.on(f.getInputField(),"compositionupdate",f.state.placeholderCompose=function(){R(f)}),s(f);else if(!a&&r){f.off("blur",h),f.off("change",s),f.off("swapDoc",s),k.off(f.getInputField(),"compositionupdate",f.state.placeholderCompose),u(f);var E=f.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}a&&!f.hasFocus()&&h(f)});function u(f){f.state.placeholder&&(f.state.placeholder.parentNode.removeChild(f.state.placeholder),f.state.placeholder=null)}function C(f){u(f);var a=f.state.placeholder=document.createElement("pre");a.style.cssText="height: 0; overflow: visible",a.style.direction=f.getOption("direction"),a.className="CodeMirror-placeholder CodeMirror-line-like";var o=f.getOption("placeholder");typeof o=="string"&&(o=document.createTextNode(o)),a.appendChild(o),f.display.lineSpace.insertBefore(a,f.display.lineSpace.firstChild)}function R(f){setTimeout(function(){var a=!1,o=f.getInputField();o.nodeName=="TEXTAREA"?a=!o.value:f.lineCount()==1&&(a=!/[^\u200b]/.test(o.querySelector(".CodeMirror-line").textContent)),a?C(f):u(f)},20)}function h(f){S(f)&&C(f)}function s(f){var a=f.getWrapperElement(),o=S(f);a.className=a.className.replace(" CodeMirror-empty","")+(o?" CodeMirror-empty":""),o?C(f):u(f)}function S(f){return f.lineCount()===1&&f.getLine(0)===""}})},"1T2W":function(N,$,P){N.exports={"code-panel-container":"code-panel-container___1BMQ9","action-oj-bar":"action-oj-bar___1PRBr",active:"active___2710v"}},"1eCo":function(N,$,P){(function(k){k(P("VrN/"))})(function(k){"use strict";var u={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},C={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};k.defineMode("xml",function(R,h){var s=R.indentUnit,S={},f=h.htmlMode?u:C;for(var a in f)S[a]=f[a];for(var a in h)S[a]=h[a];var o,r;function E(_,I){function j(K){return I.tokenize=K,K(_,I)}var M=_.next();if(M=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?j(w("atom","]]>")):null:_.match("--")?j(w("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),j(p(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),I.tokenize=w("meta","?>"),"meta"):(o=_.eat("/")?"closeTag":"openTag",I.tokenize=g,"tag bracket");if(M=="&"){var G;return _.eat("#")?_.eat("x")?G=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):G=_.eatWhile(/[\d]/)&&_.eat(";"):G=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),G?"atom":"error"}else return _.eatWhile(/[^&<]/),null}E.isInText=!0;function g(_,I){var j=_.next();if(j==">"||j=="/"&&_.eat(">"))return I.tokenize=E,o=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return o="equals",null;if(j=="<"){I.tokenize=E,I.state=c,I.tagName=I.tagStart=null;var M=I.tokenize(_,I);return M?M+" tag error":"tag error"}else return/[\'\"]/.test(j)?(I.tokenize=m(j),I.stringStartCol=_.column(),I.tokenize(_,I)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function m(_){var I=function(j,M){for(;!j.eol();)if(j.next()==_){M.tokenize=g;break}return"string"};return I.isInAttribute=!0,I}function w(_,I){return function(j,M){for(;!j.eol();){if(j.match(I)){M.tokenize=E;break}j.next()}return _}}function p(_){return function(I,j){for(var M;(M=I.next())!=null;){if(M=="<")return j.tokenize=p(_+1),j.tokenize(I,j);if(M==">")if(_==1){j.tokenize=E;break}else return j.tokenize=p(_-1),j.tokenize(I,j)}return"meta"}}function d(_,I,j){this.prev=_.context,this.tagName=I,this.indent=_.indented,this.startOfLine=j,(S.doNotIndent.hasOwnProperty(I)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function n(_){_.context&&(_.context=_.context.prev)}function l(_,I){for(var j;;){if(!_.context)return;if(j=_.context.tagName,!S.contextGrabbers.hasOwnProperty(j)||!S.contextGrabbers[j].hasOwnProperty(I))return;n(_)}}function c(_,I,j){return _=="openTag"?(j.tagStart=I.column(),T):_=="closeTag"?v:c}function T(_,I,j){return _=="word"?(j.tagName=I.current(),r="tag",A):S.allowMissingTagName&&_=="endTag"?(r="tag bracket",A(_,I,j)):(r="error",T)}function v(_,I,j){if(_=="word"){var M=I.current();return j.context&&j.context.tagName!=M&&S.implicitlyClosed.hasOwnProperty(j.context.tagName)&&n(j),j.context&&j.context.tagName==M||S.matchClosing===!1?(r="tag",i):(r="tag error",L)}else return S.allowMissingTagName&&_=="endTag"?(r="tag bracket",i(_,I,j)):(r="error",L)}function i(_,I,j){return _!="endTag"?(r="error",i):(n(j),c)}function L(_,I,j){return r="error",i(_,I,j)}function A(_,I,j){if(_=="word")return r="attribute",b;if(_=="endTag"||_=="selfcloseTag"){var M=j.tagName,G=j.tagStart;return j.tagName=j.tagStart=null,_=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(M)?l(j,M):(l(j,M),j.context=new d(j,M,G==j.indented)),c}return r="error",A}function b(_,I,j){return _=="equals"?x:(S.allowMissing||(r="error"),A(_,I,j))}function x(_,I,j){return _=="string"?y:_=="word"&&S.allowUnquoted?(r="string",A):(r="error",A(_,I,j))}function y(_,I,j){return _=="string"?y:A(_,I,j)}return{startState:function(_){var I={tokenize:E,state:c,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(I.baseIndent=_),I},token:function(_,I){if(!I.tagName&&_.sol()&&(I.indented=_.indentation()),_.eatSpace())return null;o=null;var j=I.tokenize(_,I);return(j||o)&&j!="comment"&&(r=null,I.state=I.state(o||j,_,I),r&&(j=r=="error"?j+" error":r)),j},indent:function(_,I,j){var M=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+s;if(M&&M.noIndent)return k.Pass;if(_.tokenize!=g&&_.tokenize!=E)return j?j.match(/^(\s*)/)[0].length:0;if(_.tagName)return S.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+s*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/$/,blockCommentStart:"",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(_){_.state==x&&(_.state=A)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var I=[],j=_.context;j;j=j.prev)j.tagName&&I.push(j.tagName);return I.reverse()}}}),k.defineMIME("text/xml","xml"),k.defineMIME("application/xml","xml"),k.mimeModes.hasOwnProperty("text/html")||k.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1uat":function(N,$,P){(function(k,u,C){N.exports=$=u(P("Ib8C"),P("MlIO"))})(this,function(k){return function(){var u=k,C=u.lib,R=C.Hasher,h=u.x64,s=h.Word,S=h.WordArray,f=u.algo;function a(){return s.create.apply(s,arguments)}var o=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],r=[];(function(){for(var g=0;g<80;g++)r[g]=a()})();var E=f.SHA512=R.extend({_doReset:function(){this._hash=new S.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(g,m){for(var w=this._hash.words,p=w[0],d=w[1],n=w[2],l=w[3],c=w[4],T=w[5],v=w[6],i=w[7],L=p.high,A=p.low,b=d.high,x=d.low,y=n.high,_=n.low,I=l.high,j=l.low,M=c.high,G=c.low,K=T.high,H=T.low,z=v.high,B=v.low,W=i.high,F=i.low,J=L,ee=A,q=b,ye=x,pe=y,le=_,Oe=I,xe=j,ie=M,se=G,re=K,be=H,Z=z,te=B,Ee=W,ae=F,Y=0;Y<80;Y++){var X,Q,he=r[Y];if(Y<16)Q=he.high=g[m+Y*2]|0,X=he.low=g[m+Y*2+1]|0;else{var ce=r[Y-15],Se=ce.high,Ke=ce.low,Ge=(Se>>>1|Ke<<31)^(Se>>>8|Ke<<24)^Se>>>7,Ye=(Ke>>>1|Se<<31)^(Ke>>>8|Se<<24)^(Ke>>>7|Se<<25),Qe=r[Y-2],rt=Qe.high,qe=Qe.low,Le=(rt>>>19|qe<<13)^(rt<<3|qe>>>29)^rt>>>6,Ce=(qe>>>19|rt<<13)^(qe<<3|rt>>>29)^(qe>>>6|rt<<26),Ve=r[Y-7],tt=Ve.high,He=Ve.low,$e=r[Y-16],Me=$e.high,De=$e.low;X=Ye+He,Q=Ge+tt+(X>>>0>>0?1:0),X=X+Ce,Q=Q+Le+(X>>>0>>0?1:0),X=X+De,Q=Q+Me+(X>>>0>>0?1:0),he.high=Q,he.low=X}var Te=ie&re^~ie&Z,de=se&be^~se&te,ge=J&q^J&pe^q&pe,we=ee&ye^ee&le^ye&le,_e=(J>>>28|ee<<4)^(J<<30|ee>>>2)^(J<<25|ee>>>7),Ue=(ee>>>28|J<<4)^(ee<<30|J>>>2)^(ee<<25|J>>>7),Xe=(ie>>>14|se<<18)^(ie>>>18|se<<14)^(ie<<23|se>>>9),at=(se>>>14|ie<<18)^(se>>>18|ie<<14)^(se<<23|ie>>>9),ut=o[Y],mt=ut.high,ct=ut.low,_t=ae+at,At=Ee+Xe+(_t>>>0>>0?1:0),_t=_t+de,At=At+Te+(_t>>>0>>0?1:0),_t=_t+ct,At=At+mt+(_t>>>0>>0?1:0),_t=_t+X,At=At+Q+(_t>>>0>>0?1:0),Et=Ue+we,Qt=_e+ge+(Et>>>0>>0?1:0);Ee=Z,ae=te,Z=re,te=be,re=ie,be=se,se=xe+_t|0,ie=Oe+At+(se>>>0>>0?1:0)|0,Oe=pe,xe=le,pe=q,le=ye,q=J,ye=ee,ee=_t+Et|0,J=At+Qt+(ee>>>0<_t>>>0?1:0)|0}A=p.low=A+ee,p.high=L+J+(A>>>0>>0?1:0),x=d.low=x+ye,d.high=b+q+(x>>>0>>0?1:0),_=n.low=_+le,n.high=y+pe+(_>>>0>>0?1:0),j=l.low=j+xe,l.high=I+Oe+(j>>>0>>0?1:0),G=c.low=G+se,c.high=M+ie+(G>>>0>>0?1:0),H=T.low=H+be,T.high=K+re+(H>>>0>>0?1:0),B=v.low=B+te,v.high=z+Z+(B>>>0>>0?1:0),F=i.low=F+ae,i.high=W+Ee+(F>>>0>>0?1:0)},_doFinalize:function(){var g=this._data,m=g.words,w=this._nDataBytes*8,p=g.sigBytes*8;m[p>>>5]|=128<<24-p%32,m[(p+128>>>10<<5)+30]=Math.floor(w/4294967296),m[(p+128>>>10<<5)+31]=w,g.sigBytes=m.length*4,this._process();var d=this._hash.toX32();return d},clone:function(){var g=R.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});u.SHA512=R._createHelper(E),u.HmacSHA512=R._createHmacHelper(E)}(),k.SHA512})},"3y9D":function(N,$,P){(function(k,u){N.exports=$=u(P("Ib8C"))})(this,function(k){return function(){var u=k,C=u.lib,R=C.WordArray,h=C.Hasher,s=u.algo,S=[],f=s.SHA1=h.extend({_doReset:function(){this._hash=new R.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,o){for(var r=this._hash.words,E=r[0],g=r[1],m=r[2],w=r[3],p=r[4],d=0;d<80;d++){if(d<16)S[d]=a[o+d]|0;else{var n=S[d-3]^S[d-8]^S[d-14]^S[d-16];S[d]=n<<1|n>>>31}var l=(E<<5|E>>>27)+p+S[d];d<20?l+=(g&m|~g&w)+1518500249:d<40?l+=(g^m^w)+1859775393:d<60?l+=(g&m|g&w|m&w)-1894007588:l+=(g^m^w)-899497514,p=w,w=m,m=g<<30|g>>>2,g=E,E=l}r[0]=r[0]+E|0,r[1]=r[1]+g|0,r[2]=r[2]+m|0,r[3]=r[3]+w|0,r[4]=r[4]+p|0},_doFinalize:function(){var a=this._data,o=a.words,r=this._nDataBytes*8,E=a.sigBytes*8;return o[E>>>5]|=128<<24-E%32,o[(E+64>>>9<<4)+14]=Math.floor(r/4294967296),o[(E+64>>>9<<4)+15]=r,a.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var a=h.clone.call(this);return a._hash=this._hash.clone(),a}});u.SHA1=h._createHelper(f),u.HmacSHA1=h._createHmacHelper(f)}(),k.SHA1})},4:function(N,$){},"5hvy":function(N,$,P){(function(k,u,C){N.exports=$=u(P("Ib8C"),P("MlIO"))})(this,function(k){return function(u){var C=k,R=C.lib,h=R.WordArray,s=R.Hasher,S=C.x64,f=S.Word,a=C.algo,o=[],r=[],E=[];(function(){for(var w=1,p=0,d=0;d<24;d++){o[w+5*p]=(d+1)*(d+2)/2%64;var n=p%5,l=(2*w+3*p)%5;w=n,p=l}for(var w=0;w<5;w++)for(var p=0;p<5;p++)r[w+5*p]=p+(2*w+3*p)%5*5;for(var c=1,T=0;T<24;T++){for(var v=0,i=0,L=0;L<7;L++){if(c&1){var A=(1<>>24)&16711935|(c<<24|c>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var v=d[l];v.high^=T,v.low^=c}for(var i=0;i<24;i++){for(var L=0;L<5;L++){for(var A=0,b=0,x=0;x<5;x++){var v=d[L+5*x];A^=v.high,b^=v.low}var y=g[L];y.high=A,y.low=b}for(var L=0;L<5;L++)for(var _=g[(L+4)%5],I=g[(L+1)%5],j=I.high,M=I.low,A=_.high^(j<<1|M>>>31),b=_.low^(M<<1|j>>>31),x=0;x<5;x++){var v=d[L+5*x];v.high^=A,v.low^=b}for(var G=1;G<25;G++){var A,b,v=d[G],K=v.high,H=v.low,z=o[G];z<32?(A=K<>>32-z,b=H<>>32-z):(A=H<>>64-z,b=K<>>64-z);var B=g[r[G]];B.high=A,B.low=b}var W=g[0],F=d[0];W.high=F.high,W.low=F.low;for(var L=0;L<5;L++)for(var x=0;x<5;x++){var G=L+5*x,v=d[G],J=g[G],ee=g[(L+1)%5+5*x],q=g[(L+2)%5+5*x];v.high=J.high^~ee.high&q.high,v.low=J.low^~ee.low&q.low}var v=d[0],ye=E[i];v.high^=ye.high,v.low^=ye.low}},_doFinalize:function(){var w=this._data,p=w.words,d=this._nDataBytes*8,n=w.sigBytes*8,l=this.blockSize*32;p[n>>>5]|=1<<24-n%32,p[(u.ceil((n+1)/l)*l>>>5)-1]|=128,w.sigBytes=p.length*4,this._process();for(var c=this._state,T=this.cfg.outputLength/8,v=T/8,i=[],L=0;L>>24)&16711935|(b<<24|b>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,i.push(x),i.push(b)}return new h.init(i,T)},clone:function(){for(var w=s.clone.call(this),p=w._state=this._state.slice(0),d=0;d<25;d++)p[d]=p[d].clone();return w}});C.SHA3=s._createHelper(m),C.HmacSHA3=s._createHmacHelper(m)}(Math),k.SHA3})},"5nXd":function(N,$,P){var k=P("MFOe"),u=k.slice,C=k.pluck,R=k.each,h=k.bind,s=k.create,S=k.isList,f=k.isFunction,a=k.isObject;N.exports={createStore:E};var o={version:"2.0.12",enabled:!1,get:function(g,m){var w=this.storage.read(this._namespacePrefix+g);return this._deserialize(w,m)},set:function(g,m){return m===void 0?this.remove(g):(this.storage.write(this._namespacePrefix+g,this._serialize(m)),m)},remove:function(g){this.storage.remove(this._namespacePrefix+g)},each:function(g){var m=this;this.storage.each(function(w,p){g.call(m,m._deserialize(w),(p||"").replace(m._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(g){return this._namespacePrefix=="__storejs_"+g+"_"},createStore:function(){return E.apply(this,arguments)},addPlugin:function(g){this._addPlugin(g)},namespace:function(g){return E(this.storage,this.plugins,g)}};function r(){var g=typeof console=="undefined"?null:console;if(!g)return;var m=g.warn?g.warn:g.log;m.apply(g,arguments)}function E(g,m,w){w||(w=""),g&&!S(g)&&(g=[g]),m&&!S(m)&&(m=[m]);var p=w?"__storejs_"+w+"_":"",d=w?new RegExp("^"+p):null,n=/^[a-zA-Z0-9_\-]*$/;if(!n.test(w))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var l={_namespacePrefix:p,_namespaceRegexp:d,_testStorage:function(T){try{var v="__storejs__test__";T.write(v,v);var i=T.read(v)===v;return T.remove(v),i}catch(L){return!1}},_assignPluginFnProp:function(T,v){var i=this[v];this[v]=function(){var A=u(arguments,0),b=this;function x(){return i?(R(arguments,function(_,I){A[I]=_}),i.apply(b,A)):void 0}var y=[x].concat(A);return T.apply(b,y)}},_serialize:function(T){return JSON.stringify(T)},_deserialize:function(T,v){if(!T)return v;var i="";try{i=JSON.parse(T)}catch(L){i=T}return i!==void 0?i:v},_addStorage:function(T){if(this.enabled)return;this._testStorage(T)&&(this.storage=T,this.enabled=!0)},_addPlugin:function(T){var v=this;if(S(T)){R(T,function(A){v._addPlugin(A)});return}var i=C(this.plugins,function(A){return T===A});if(i)return;if(this.plugins.push(T),!f(T))throw new Error("Plugins must be function values that return objects");var L=T.call(this);if(!a(L))throw new Error("Plugins must return an object of function properties");R(L,function(A,b){if(!f(A))throw new Error("Bad plugin property: "+b+" from plugin "+T.name+". Plugins should only return functions.");v._assignPluginFnProp(A,b)})},addStorage:function(T){r("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(T)}},c=s(l,o,{plugins:[]});return c.raw={},R(c,function(T,v){f(T)&&(c.raw[v]=h(c,T))}),R(g,function(T){c._addStorage(T)}),R(m,function(T){c._addPlugin(T)}),c}},"6+eU":function(N,$,P){"use strict";P.d($,"a",function(){return i});var k=P("wx14"),u=P("rePB"),C=P("VTBJ"),R=P("1OyB"),h=P("vuIU"),s=P("Ji7U"),S=P("LK+K"),f=P("q1tI"),a=P.n(f),o=P("TSYQ"),r=P.n(o),E=function(A){var b,x="".concat(A.rootPrefixCls,"-item"),y=r()(x,"".concat(x,"-").concat(A.page),(b={},Object(u.a)(b,"".concat(x,"-active"),A.active),Object(u.a)(b,A.className,!!A.className),Object(u.a)(b,"".concat(x,"-disabled"),!A.page),b)),_=function(){A.onClick(A.page)},I=function(M){A.onKeyPress(M,A.onClick,A.page)};return a.a.createElement("li",{title:A.showTitle?A.page:null,className:y,onClick:_,onKeyPress:I,tabIndex:"0"},A.itemRender(A.page,"page",a.a.createElement("a",{rel:"nofollow"},A.page)))},g=E,m={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},w=function(L){Object(s.a)(b,L);var A=Object(S.a)(b);function b(){var x;Object(R.a)(this,b);for(var y=arguments.length,_=new Array(y),I=0;I=0||j.relatedTarget.className.indexOf("".concat(H,"-next"))>=0))return;x.setState({goInputText:""}),K(x.getValidValue())},x.go=function(j){var M=x.state.goInputText;if(M==="")return;(j.keyCode===m.ENTER||j.type==="click")&&(x.setState({goInputText:""}),x.props.quickGo(x.getValidValue()))},x}return Object(h.a)(b,[{key:"getValidValue",value:function(){var y=this.state,_=y.goInputText,I=y.current;return!_||isNaN(_)?I:Number(_)}},{key:"getPageSizeOptions",value:function(){var y=this.props,_=y.pageSize,I=y.pageSizeOptions;return I.some(function(j){return j.toString()===_.toString()})?I:I.concat([_.toString()]).sort(function(j,M){var G=isNaN(Number(j))?0:Number(j),K=isNaN(Number(M))?0:Number(M);return G-K})}},{key:"render",value:function(){var y=this,_=this.props,I=_.pageSize,j=_.locale,M=_.rootPrefixCls,G=_.changeSize,K=_.quickGo,H=_.goButton,z=_.selectComponentClass,B=_.buildOptionText,W=_.selectPrefixCls,F=_.disabled,J=this.state.goInputText,ee="".concat(M,"-options"),q=z,ye=null,pe=null,le=null;if(!G&&!K)return null;var Oe=this.getPageSizeOptions();if(G&&q){var xe=Oe.map(function(ie,se){return a.a.createElement(q.Option,{key:se,value:ie.toString()},(B||y.buildOptionText)(ie))});ye=a.a.createElement(q,{disabled:F,prefixCls:W,showSearch:!1,className:"".concat(ee,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(I||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(se){return se.parentNode}},xe)}return K&&(H&&(le=typeof H=="boolean"?a.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:F,className:"".concat(ee,"-quick-jumper-button")},j.jump_to_confirm):a.a.createElement("span",{onClick:this.go,onKeyUp:this.go},H)),pe=a.a.createElement("div",{className:"".concat(ee,"-quick-jumper")},j.jump_to,a.a.createElement("input",{disabled:F,type:"text",value:J,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),j.page,le)),a.a.createElement("li",{className:"".concat(ee)},ye,pe)}}]),b}(a.a.Component);w.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=w,d=P("N2Kk");function n(){}function l(L){return typeof L=="number"&&isFinite(L)&&Math.floor(L)===L}function c(L,A,b){return b}function T(L,A,b){var x=typeof L=="undefined"?A.pageSize:L;return Math.floor((b.total-1)/x)+1}var v=function(L){Object(s.a)(b,L);var A=Object(S.a)(b);function b(x){var y;Object(R.a)(this,b),y=A.call(this,x),y.getJumpPrevPage=function(){return Math.max(1,y.state.current-(y.props.showLessItems?3:5))},y.getJumpNextPage=function(){return Math.min(T(void 0,y.state,y.props),y.state.current+(y.props.showLessItems?3:5))},y.getItemIcon=function(G,K){var H=y.props.prefixCls,z=G||a.a.createElement("button",{type:"button","aria-label":K,className:"".concat(H,"-item-link")});return typeof G=="function"&&(z=a.a.createElement(G,Object(C.a)({},y.props))),z},y.savePaginationNode=function(G){y.paginationNode=G},y.isValid=function(G){return l(G)&&G!==y.state.current},y.shouldDisplayQuickJumper=function(){var G=y.props,K=G.showQuickJumper,H=G.pageSize,z=G.total;return z<=H?!1:K},y.handleKeyDown=function(G){(G.keyCode===m.ARROW_UP||G.keyCode===m.ARROW_DOWN)&&G.preventDefault()},y.handleKeyUp=function(G){var K=y.getValidValue(G),H=y.state.currentInputValue;K!==H&&y.setState({currentInputValue:K}),G.keyCode===m.ENTER?y.handleChange(K):G.keyCode===m.ARROW_UP?y.handleChange(K-1):G.keyCode===m.ARROW_DOWN&&y.handleChange(K+1)},y.changePageSize=function(G){var K=y.state.current,H=T(G,y.state,y.props);K=K>H?H:K,H===0&&(K=y.state.current),typeof G=="number"&&("pageSize"in y.props||y.setState({pageSize:G}),"current"in y.props||y.setState({current:K,currentInputValue:K})),y.props.onShowSizeChange(K,G),"onChange"in y.props&&y.props.onChange&&y.props.onChange(K,G)},y.handleChange=function(G){var K=y.props.disabled,H=G;if(y.isValid(H)&&!K){var z=T(void 0,y.state,y.props);H>z?H=z:H<1&&(H=1),"current"in y.props||y.setState({current:H,currentInputValue:H});var B=y.state.pageSize;return y.props.onChange(H,B),H}return y.state.current},y.prev=function(){y.hasPrev()&&y.handleChange(y.state.current-1)},y.next=function(){y.hasNext()&&y.handleChange(y.state.current+1)},y.jumpPrev=function(){y.handleChange(y.getJumpPrevPage())},y.jumpNext=function(){y.handleChange(y.getJumpNextPage())},y.hasPrev=function(){return y.state.current>1},y.hasNext=function(){return y.state.current2?H-2:0),B=2;B=I?M=I:M=Number(_),M}},{key:"getShowSizeChanger",value:function(){var y=this.props,_=y.showSizeChanger,I=y.total,j=y.totalBoundaryShowSizeChanger;return typeof _!="undefined"?_:I>j}},{key:"renderPrev",value:function(y){var _=this.props,I=_.prevIcon,j=_.itemRender,M=j(y,"prev",this.getItemIcon(I,"prev page")),G=!this.hasPrev();return Object(f.isValidElement)(M)?Object(f.cloneElement)(M,{disabled:G}):M}},{key:"renderNext",value:function(y){var _=this.props,I=_.nextIcon,j=_.itemRender,M=j(y,"next",this.getItemIcon(I,"next page")),G=!this.hasNext();return Object(f.isValidElement)(M)?Object(f.cloneElement)(M,{disabled:G}):M}},{key:"render",value:function(){var y=this,_=this.props,I=_.prefixCls,j=_.className,M=_.style,G=_.disabled,K=_.hideOnSinglePage,H=_.total,z=_.locale,B=_.showQuickJumper,W=_.showLessItems,F=_.showTitle,J=_.showTotal,ee=_.simple,q=_.itemRender,ye=_.showPrevNextJumpers,pe=_.jumpPrevIcon,le=_.jumpNextIcon,Oe=_.selectComponentClass,xe=_.selectPrefixCls,ie=_.pageSizeOptions,se=this.state,re=se.current,be=se.pageSize,Z=se.currentInputValue;if(K===!0&&H<=be)return null;var te=T(void 0,this.state,this.props),Ee=[],ae=null,Y=null,X=null,Q=null,he=null,ce=B&&B.goButton,Se=W?1:2,Ke=re-1>0?re-1:0,Ge=re+1=Se*2&&re!==1+2&&(Ee[0]=Object(f.cloneElement)(Ee[0],{className:"".concat(I,"-item-after-jump-prev")}),Ee.unshift(ae)),te-re>=Se*2&&re!==te-2&&(Ee[Ee.length-1]=Object(f.cloneElement)(Ee[Ee.length-1],{className:"".concat(I,"-item-before-jump-next")}),Ee.push(Y)),Ve!==1&&Ee.unshift(X),tt!==te&&Ee.push(Q)}var Me=null;J&&(Me=a.a.createElement("li",{className:"".concat(I,"-total-text")},J(H,[H===0?0:(re-1)*be+1,re*be>H?H:re*be])));var De=!this.hasPrev()||!te,Te=!this.hasNext()||!te;return a.a.createElement("ul",Object(k.a)({className:r()(I,j,Object(u.a)({},"".concat(I,"-disabled"),G)),style:M,unselectable:"unselectable",ref:this.savePaginationNode},Ye),Me,a.a.createElement("li",{title:F?z.prev_page:null,onClick:this.prev,tabIndex:De?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(I,"-prev"),Object(u.a)({},"".concat(I,"-disabled"),De)),"aria-disabled":De},this.renderPrev(Ke)),Ee,a.a.createElement("li",{title:F?z.next_page:null,onClick:this.next,tabIndex:Te?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(I,"-next"),Object(u.a)({},"".concat(I,"-disabled"),Te)),"aria-disabled":Te},this.renderNext(Ge)),a.a.createElement(p,{disabled:G,locale:z,rootPrefixCls:I,selectComponentClass:Oe,selectPrefixCls:xe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:re,pageSize:be,pageSizeOptions:ie,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ce}))}}],[{key:"getDerivedStateFromProps",value:function(y,_){var I={};if("current"in y&&(I.current=y.current,y.current!==_.current&&(I.currentInputValue=I.current)),"pageSize"in y&&y.pageSize!==_.pageSize){var j=_.current,M=T(y.pageSize,_,y);j=j>M?M:j,"current"in y||(I.current=j,I.currentInputValue=j),I.pageSize=y.pageSize}return I}}]),b}(a.a.Component);v.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:d.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var i=v},"6RRn":function(N,$,P){"use strict";var k=P("wCXF"),u=P("n6Qo");P.d($,"b",function(){return u.a});var C=P("IBYe"),R=P("6eGT"),h=P("hW8S");P.d($,"a",function(){return h.a}),$.c=k.b},"6eGT":function(N,$,P){"use strict";function k(u){return null}$.a=k},"7Cbv":function(N,$,P){"use strict";var k=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),u=new Uint8Array(16);function C(){if(!k)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k(u)}var R=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function h(g){return typeof g=="string"&&R.test(g)}for(var s=h,S=[],f=0;f<256;++f)S.push((f+256).toString(16).substr(1));function a(g){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=(S[g[m+0]]+S[g[m+1]]+S[g[m+2]]+S[g[m+3]]+"-"+S[g[m+4]]+S[g[m+5]]+"-"+S[g[m+6]]+S[g[m+7]]+"-"+S[g[m+8]]+S[g[m+9]]+"-"+S[g[m+10]]+S[g[m+11]]+S[g[m+12]]+S[g[m+13]]+S[g[m+14]]+S[g[m+15]]).toLowerCase();if(!s(w))throw TypeError("Stringified UUID is invalid");return w}var o=a;function r(g,m,w){g=g||{};var p=g.random||(g.rng||C)();if(p[6]=p[6]&15|64,p[8]=p[8]&63|128,m){w=w||0;for(var d=0;d<16;++d)m[w+d]=p[d];return m}return o(p)}var E=$.a=r},"7ahc":function(N,$,P){"use strict";P.d($,"a",function(){return T});var k=P("k1fw"),u=P("0Owb"),C=P("+L6B"),R=P("2/Rp"),h=P("y8nQ"),s=P("Vl3Y"),S=P("tJVT"),f=P("OaEy"),a=P("2fM7"),o=P("q1tI"),r=P.n(o),E=P("VrN/"),g=P.n(E),m=P("p77/"),w=P.n(m),p=P("c5Ni"),d=P.n(p),n=a.a.Option,l={labelCol:{span:4},wrapperCol:{span:20}},c={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"]};$.b=function(v){var i=v.callback,L=v.onCancel,A=Object(o.useState)("python"),b=Object(S.a)(A,2),x=b[0],y=b[1];function _(j){y(c[j][1])}function I(j){i(j)}return r.a.createElement(s.a,Object(u.a)({},l,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:I}),r.a.createElement(s.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},r.a.createElement(a.a,{onChange:_},Object.keys(c).map(function(j){return r.a.createElement(n,{key:j,value:j},c[j][0])}))),r.a.createElement(s.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},r.a.createElement(T,{mode:x})),r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(R.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),r.a.createElement(R.a,{type:"ghost",onClick:L},"\u53D6\u6D88")))};function T(v){var i=v.value,L=v.onChange,A=v.mode,b=v.options,x=b===void 0?{}:b,y=Object(o.useRef)(),_=Object(o.useState)(),I=Object(S.a)(_,2),j=I[0],M=I[1];return Object(o.useEffect)(function(){if(j){function G(K){var H=K.getValue();L&&L(H)}return j.on("change",G),function(){j.off("change",G)}}},[j,L]),Object(o.useEffect)(function(){j&&j.setOption("mode",A)},[j,A]),Object(o.useEffect)(function(){j&&((i!==j.getValue()||i==="")&&setTimeout(function(){j.setValue(i||" ")},300))},[j,i]),Object(o.useEffect)(function(){if(y.current&&!j){var G=g.a.fromTextArea(y.current,Object(k.a)({mode:A,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},x));M(G)}},[y.current,j]),r.a.createElement("div",{className:"my-codemirror-container"},r.a.createElement("textarea",{ref:y}))}},"815F":function(N,$,P){"use strict";P.d($,"e",function(){return S}),P.d($,"c",function(){return a}),P.d($,"d",function(){return o}),P.d($,"a",function(){return E}),P.d($,"f",function(){return g}),P.d($,"b",function(){return m});var k=P("KQm4"),u=P("VTBJ"),C=P("Ff2n"),R=P("Zm9Q"),h=P("Kwbf"),s=P("OZM5");function S(w,p){return w!=null?w:p}function f(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=new Map;function d(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(n||[]).forEach(function(c){var T=c.key,v=c.children;Object(h.a)(T!=null,"Tree node must have a certain key: [".concat(l).concat(T,"]"));var i=String(T);Object(h.a)(!p.has(i)||T===null||T===void 0,"Same 'key' exist in the Tree: ".concat(i)),p.set(i,!0),d(v,"".concat(l).concat(i," > "))})}d(w)}function a(w){function p(d){var n=Object(R.a)(d);return n.map(function(l){if(!Object(s.i)(l))return Object(h.a)(!l,"Tree/TreeNode can only accept TreeNode as children."),null;var c=l.key,T=l.props,v=T.children,i=Object(C.a)(T,["children"]),L=Object(u.a)({key:c},i),A=p(v);return A.length&&(L.children=A),L}).filter(function(l){return l})}return p(w)}function o(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=new Set(p===!0?[]:p),n=[];function l(c){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(v,i){var L=Object(s.h)(T?T.pos:"0",i),A=S(v.key,L),b=Object(u.a)(Object(u.a)({},v),{},{parent:T,pos:L,children:null,data:v,isStart:[].concat(Object(k.a)(T?T.isStart:[]),[i===0]),isEnd:[].concat(Object(k.a)(T?T.isEnd:[]),[i===c.length-1])});return n.push(b),p===!0||d.has(A)?b.children=l(v.children||[],b):b.children=[],b})}return l(w),n}function r(w,p,d){var n;d?typeof d=="string"?n=function(T){return T[d]}:typeof d=="function"&&(n=function(T){return d(T)}):n=function(T,v){return S(T.key,v)};function l(c,T,v){var i=c?c.children:w,L=c?Object(s.h)(v.pos,T):"0";if(c){var A=n(c,L),b={node:c,index:T,pos:L,key:A,parentPos:v.node?v.pos:null,level:v.level+1};p(b)}i&&i.forEach(function(x,y){l(x,y,{node:c,pos:L,level:v?v.level+1:-1})})}l(null)}function E(w){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=p.initWrapper,n=p.processEntity,l=p.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,T={},v={},i={posEntities:T,keyEntities:v};return d&&(i=d(i)||i),r(w,function(L){var A=L.node,b=L.index,x=L.pos,y=L.key,_=L.parentPos,I=L.level,j={node:A,index:b,key:y,pos:x,level:I},M=S(y,x);T[x]=j,v[M]=j,j.parent=T[_],j.parent&&(j.parent.children=j.parent.children||[],j.parent.children.push(j)),n&&n(j,i)},c),l&&l(i),i}function g(w,p){var d=p.expandedKeys,n=p.selectedKeys,l=p.loadedKeys,c=p.loadingKeys,T=p.checkedKeys,v=p.halfCheckedKeys,i=p.dragOverNodeKey,L=p.dropPosition,A=p.keyEntities,b=A[w],x={eventKey:w,expanded:d.indexOf(w)!==-1,selected:n.indexOf(w)!==-1,loaded:l.indexOf(w)!==-1,loading:c.indexOf(w)!==-1,checked:T.indexOf(w)!==-1,halfChecked:v.indexOf(w)!==-1,pos:String(b?b.pos:""),dragOver:i===w&&L===0,dragOverGapTop:i===w&&L===-1,dragOverGapBottom:i===w&&L===1};return x}function m(w){var p=w.data,d=w.expanded,n=w.selected,l=w.checked,c=w.loaded,T=w.loading,v=w.halfChecked,i=w.dragOver,L=w.dragOverGapTop,A=w.dragOverGapBottom,b=w.pos,x=w.active,y=Object(u.a)(Object(u.a)({},p),{},{expanded:d,selected:n,checked:l,loaded:c,loading:T,halfChecked:v,dragOver:i,dragOverGapTop:L,dragOverGapBottom:A,pos:b,active:x});return"props"in y||Object.defineProperty(y,"props",{get:function(){return Object(h.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),w}}),y}},"8EBN":function(N,$,P){(function(k){k(P("VrN/"))})(function(k){"use strict";k.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 u=0;u-1&&R.substring(S+1,R.length);if(f)return k.findModeByExtension(f)},k.findModeByName=function(R){R=R.toLowerCase();for(var h=0;h=q.length?ye.slice(q.length):ye}).join(`
`)}var o=[],r=[""],E=new S.a.Renderer,g=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function m(){o.length=0,r=[""]}var w={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function p(F,J,ee,q){if(J>=F.length||F[J].level<=ee)return J;var ye=F[J];q.push("- "+ye.text+""),J++;var pe=[];return J=p(F,J,ye.level,pe),pe.length>0&&(q.push("
"),pe.forEach(function(le){q.push(le)}),q.push("
")),q.push(" "),J=p(F,J,ee,q),J}function d(){return p(o,0,0,r),r.push("
"),r.join("")}var n={heading:function(J){var ee=g.exec(J);if(ee)return{type:"heading",raw:ee[0],depth:ee[1].length,text:ee[2]}},fences:function(J){var ee=this.rules.block.fences.exec(J);if(ee){var q=ee[0],ye=a(q,ee[3]||""),pe=ee[2]?ee[2].trim():ee[2];if(["latex","katex","math"].indexOf(pe)>=0){var le=T(),Oe=ye;ye=le,v[le]={type:"block",expression:Oe}}return{type:"code",raw:q,lang:pe,text:ye}}}},l=/(?:\${2})([^\n`]+?)(?:\${2})/gi,c=0,T=function(){return"__special_katext_id_".concat(c++,"__")},v={};function i(){return v}function L(){c=0,v={}}function A(F){return F=F.replace(l,function(J,ee){var q=T();return v[q]={type:"inline",expression:ee},q}),F}var b=E.listitem;E.listitem=function(F){return b(A(F))};var x=E.paragraph;E.paragraph=function(F){return x(A(F))};var y=E.tablecell;E.tablecell=function(F,J){return y(A(F),J)},E.code=function(F,J,ee){var q=(J||"").match(/\S*/)[0];return q?["latex","katex","math"].indexOf(q)>=0?"".concat(F,"
"):'
').concat(ee?F:Object(f.escape)(F,!0),`
`):''+(ee?F:Object(f.escape)(F,!0))+"
"},E.heading=function(F,J,ee){var q=this.options.headerPrefix+ee.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:q,level:J,text:F}),"'+F+""},S.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),S.a.use({tokenizer:n,renderer:E});var _=S.a,I=P("SJMd"),j=P("ulZh"),M=P.n(j),G=P("m3rI"),K=P("Oy/b"),H=P("p5ED"),z=/]*>/g;function B(F){var J=document.createElement("div");return J.innerHTML=F,J.childNodes.length===0?"":J.childNodes[0].nodeValue}var W=$.a=function(F){var J,ee=F.value,q=ee===void 0?"":ee,ye=F.className,pe=F.showTextOnly,le=F.showLines,Oe=F.style,xe=Oe===void 0?{}:Oe,ie=F.stylesPrev,se=ie===void 0?{}:ie,re=(J=String(q))===null||J===void 0?void 0:J.replace(/|<\/script>/gi,"").replace(/on\w+="[^"]*"/gi,""),be=Object(C.useState)(""),Z=Object(u.a)(be,2),te=Z[0],Ee=Z[1],ae=Object(C.useMemo)(function(){try{var he=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,ce=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Se=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;re=re.replace(he,"("+G.a.API_SERVER+"/api/attachments/").replace(ce,'"'+G.a.API_SERVER+"/api/attachments/").replace(Se,'"'+G.a.API_SERVER+"/files/uploads/").replace(/\r\n/g,`
`),re=re.replace(new RegExp("(?[TOC]
",d()),m()),Ke=Ke.replace(/(__special_katext_id_\d+__)/g,function(Qe,rt){var qe=Ge[rt],Le=qe.type,Ce=qe.expression;return Object(K.renderToString)(B(Ce)||"",{displayMode:Le==="block",throwOnError:!1,output:"html"})}),Ke=Ke.replace(/▁/g,"\u2581\u2581\u2581"),L(),pe){var Ye=document.createElement("div");return Ye.innerHTML=Ke,Ye.innerText}return setTimeout(function(){return Q()},500),Ke},[re]),Y=Object(C.useRef)();w.WebkitLineClamp=le,le&&(xe=Object(k.a)(Object(k.a)({},xe),w));function X(he){var ce=he.target;if(ce.tagName.toUpperCase()==="A"){var Se=ce.getAttribute("href");if(Se.indexOf("office")>-1)he.preventDefault(),Ee(Se);else if(Se.startsWith("#")){he.preventDefault();var Ke=document.getElementById(Se.replace("#",""));Ke&&Ke.scrollIntoView(!0)}}}var Q=function(){var ce,Se=(ce=Y.current)===null||ce===void 0?void 0:ce.querySelectorAll("video");Se==null||Se.forEach(function(Ke){if(Ke.oncontextmenu=function(){return!1},Ke.src.indexOf(".m3u8")>-1&&!Ke.canPlayType("application/vnd.apple.mpegurl")){if(M.a.isSupported()){var Ge=new M.a;Ge.loadSource(Ke.src),Ge.attachMedia(Ke)}}})};return Object(C.useEffect)(function(){if(Y.current&&ae&&(ae.match(z)&&window.PR.prettyPrint()),Y.current)return Y.current.addEventListener("click",X),function(){Y.current.removeEventListener("click",X),L(),m()}},[ae,Y.current,X]),R.a.createElement(R.a.Fragment,null,R.a.createElement("div",{ref:Y,style:Object(k.a)({},xe),className:"".concat(ye||""," markdown-body "),dangerouslySetInnerHTML:{__html:ae}}),R.a.createElement(H.a,{close:!0,data:te,type:te!=null&&te.length?"office":"",style:Object(k.a)({},se),onClose:function(){return Ee("")}}))}},"9OqN":function(N,$,P){(function(k,u,C){N.exports=$=u(P("Ib8C"),P("OLod"))})(this,function(k){return k.mode.CTR=function(){var u=k.lib.BlockCipherMode.extend(),C=u.Encryptor=u.extend({processBlock:function(R,h){var s=this._cipher,S=s.blockSize,f=this._iv,a=this._counter;f&&(a=this._counter=f.slice(0),this._iv=void 0);var o=a.slice(0);s.encryptBlock(o,0),a[S-1]=a[S-1]+1|0;for(var r=0;r-1?"."+Qe.split(".").pop():"");F===null&&(Le="testsets/".concat(qe).concat(Qe.indexOf(".")>-1?"."+Qe.split(".").pop():"")),Ye.multipartUpload(Le,new Blob([Ge.file],{type:Ge.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Qe+""},url:Oe==null?void 0:Oe.callback_url,host:Oe==null?void 0:Oe.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(b.e)(rt)}}).then(function(Ce){if(Ce.data.status===0){te.current=te.current+1;var Ve=Z.current.map(function(He){var $e,Me;if(He.name===(($e=Ce.data)===null||$e===void 0||((Me=$e.data)===null||Me===void 0)?void 0:Me.file_name)){var De,Te,de,ge=Object(S.a)({},He);if((De=Ce.data)!==null&&De!==void 0&&(Te=De.data)!==null&&Te!==void 0&&(de=Te.file_name)!==null&&de!==void 0&&de.includes(".in")){var we,_e,Ue,Xe,at,ut;ge.in_object_key=(we=Ce.data)===null||we===void 0||((_e=we.data)===null||_e===void 0)?void 0:_e.object,ge.in_object_size=(Ue=Ce.data)===null||Ue===void 0||((Xe=Ue.data)===null||Xe===void 0)?void 0:Xe.size,ge.input=(at=Ce.data)===null||at===void 0||((ut=at.data)===null||ut===void 0)?void 0:ut.file_name,ge.in_file=Ge}else{var mt,ct,_t,At,Et,Qt;ge.out_object_key=(mt=Ce.data)===null||mt===void 0||((ct=mt.data)===null||ct===void 0)?void 0:ct.object,ge.out_object_size=(_t=Ce.data)===null||_t===void 0||((At=_t.data)===null||At===void 0)?void 0:At.size,ge.output=(Et=Ce.data)===null||Et===void 0||((Qt=Et.data)===null||Qt===void 0)?void 0:Qt.file_name,ge.out_file=Ge}return ge}return He});if(Z.current=Object(E.a)(Ve),ye(Object(E.a)(Ve)),te.current>0&&te.current===q.length){be(!1);var tt=I(Ve);tt=tt.filter(function(He){var $e,Me;return!!(($e=He[0])!==null&&$e!==void 0&&$e.name&&(Me=He[1])!==null&&Me!==void 0&&Me.name)}),tt=tt.map(function(He){return Object(S.a)(Object(S.a)(Object(S.a)({},He[0]),He[1]),{},{is_file:!0})}),z(tt),H()}}})},he=function(){if(q.length===0){a.b.warn("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}be(!0);var Ge=I(q);if(Ge.some(function(Ye){var Qe,rt;return!((Qe=Ye[0])!==null&&Qe!==void 0&&Qe.name&&(rt=Ye[1])!==null&&rt!==void 0&&rt.name)})){s.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:function(){var Ye=Object(o.a)(p.a.mark(function rt(){return p.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:q.map(function(){var Ce=Object(o.a)(p.a.mark(function Ve(tt){return p.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:Q(tt);case 1:case"end":return $e.stop()}},Ve)}));return function(Ve){return Ce.apply(this,arguments)}}());case 1:case"end":return Le.stop()}},rt)}));function Qe(){return Ye.apply(this,arguments)}return Qe}(),onCancel:function(){be(!1)}});return}q.map(function(){var Ye=Object(o.a)(p.a.mark(function Qe(rt){return p.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:Q(rt);case 1:case"end":return Le.stop()}},Qe)}));return function(Qe){return Ye.apply(this,arguments)}}())},ce={name:"file",fileList:q,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:function(Ge){if(q!=null&&q.some(function(Qe){return Qe.name===Ge.name}))return a.b.info("".concat(Ge.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;if(Ge.size/1024/1024>100)return a.b.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(Ge.name))return a.b.warn("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;var Ye={name:Ge.name,uid:Ge.uid,file:Ge,percent:0};return q.push(Ye),Z.current=Object(E.a)(q),ye(Object(E.a)(q)),!1}},Se=I(q);return console.log(q,Se,"fileList"),n.a.createElement(s.a,{visible:B,wrapClassName:W,onOk:he,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:re},onCancel:Ee,width:"1000px",title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},n.a.createElement("div",{className:c.a.wrap},q.length?n.a.createElement("div",null,n.a.createElement(m.a,ce,n.a.createElement(R.a,{className:c.a.btnS},"\u4E0A\u4F20\u6587\u4EF6")),n.a.createElement(M,{data:Se,onRemove:X})):n.a.createElement("div",{className:c.a.noData},n.a.createElement("img",{src:v.a,alt:""}),n.a.createElement(m.a,ce,n.a.createElement(R.a,{className:c.a.btn},"\u4E0A\u4F20\u6587\u4EF6"))),n.a.createElement("div",{className:c.a.text},"\u4E0A\u4F20\u9650\u5236\uFF1A",n.a.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",n.a.createElement("br",null),"2\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",n.a.createElement("br",null),"3\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002")))},M=function(K){var H=K.data,z=H===void 0?[]:H,B=K.onRemove,W=K.width,F=W===void 0?"auto":W,J=K.showScore,ee=J===void 0?!1:J,q=K.disabled,ye=q===void 0?!1:q,pe=K.inputChange,le=function(se){var re=document.createElement("a");document.body.appendChild(re);var be=URL.createObjectURL(se.file);re.href=be,re.download=se.name,re.click(),URL.revokeObjectURL(be),document.body.removeChild(re)},Oe=function(se,re){Object(y.x)(se,re)},xe=function(se,re){s.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:function(){B(se,re)},onCancel:function(){}})};return z.length?n.a.createElement("div",{style:{width:F}},n.a.createElement("div",{className:c.a.head},n.a.createElement("div",{style:{width:"20%"}},"\u7528\u4F8B"),n.a.createElement("div",{style:{width:ee?"25%":"35%"}},"\u8F93\u5165"),n.a.createElement("div",{style:{width:ee?"25%":"35%"}},"\u8F93\u51FA"),ee&&n.a.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),n.a.createElement("div",{style:{width:"10%"}},"\u64CD\u4F5C")),z.map(function(ie,se){var re,be,Z,te;return n.a.createElement("div",{key:se,className:c.a.list},n.a.createElement("div",{style:{width:"20%"}},"\u6D4B\u8BD5\u7528\u4F8B",se+1),n.a.createElement("div",{className:c.a.info,style:{width:ee?"25%":"35%"}},n.a.createElement("span",{title:ie.input||((re=ie[0])===null||re===void 0?void 0:re.name),onClick:function(){ie.input?ie.input_file_url?Oe(ie.input_file_url,ie.input):le(ie.in_file):le(ie[0])}},ie.input||((be=ie[0])===null||be===void 0?void 0:be.name))),n.a.createElement("div",{className:c.a.info,style:{width:ee?"25%":"35%"}},n.a.createElement("span",{title:ie.output||((Z=ie[1])===null||Z===void 0?void 0:Z.name),onClick:function(){ie.input?ie.output_file_url?Oe(ie.output_file_url,ie.output):le(ie.out_file):le(ie[1])}},ie.output||((te=ie[1])===null||te===void 0?void 0:te.name))),ee&&n.a.createElement("div",{style:{width:"20%"}},n.a.createElement(u.a,{disabled:ye,style:{width:"70%"},onChange:function(ae){return pe(ae,se)},value:ie.score}),n.a.createElement("span",null,"\xA0%")),n.a.createElement("div",{onClick:function(){return xe(ie,se)},style:{width:"10%"}},n.a.createElement("span",{className:c.a.del},"\u5220\u9664")))})):n.a.createElement(n.a.Fragment,null)};$.b=j},BU3w:function(N,$,P){"use strict";P.d($,"a",function(){return s});var k=P("MNnm"),u="rc-util-key";function C(S){if(S.attachTo)return S.attachTo;var f=document.querySelector("head");return f||document.body}function R(S){var f,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(k.a)())return null;var o=document.createElement("style");if((f=a.csp)===null||f===void 0?void 0:f.nonce){var r;o.nonce=(r=a.csp)===null||r===void 0?void 0:r.nonce}o.innerHTML=S;var E=C(a),g=E.firstChild;return a.prepend&&E.prepend?E.prepend(o):a.prepend&&g?E.insertBefore(o,g):E.appendChild(o),o}var h=new Map;function s(S,f){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C(a);if(!h.has(o)){var r=R("",a),E=r.parentNode;h.set(o,E),E.removeChild(r)}var g=Array.from(h.get(o).children).find(function(n){return n.tagName==="STYLE"&&n[u]===f});if(g){var m,w;if(((m=a.csp)===null||m===void 0?void 0:m.nonce)&&g.nonce!==((w=a.csp)===null||w===void 0?void 0:w.nonce)){var p;g.nonce=(p=a.csp)===null||p===void 0?void 0:p.nonce}return g.innerHTML!==S&&(g.innerHTML=S),g}var d=R(S,a);return d[u]=f,d}},Bd2K:function(N,$,P){(function(k){k(P("VrN/"),P("osHv"))})(function(k){k.defineOption("autoCloseTags",!1,function(a,o,r){if(r!=k.Init&&r&&a.removeKeyMap("autoCloseTags"),!o)return;var E={name:"autoCloseTags"};(typeof o!="object"||o.whenClosing!==!1)&&(E["'/'"]=function(g){return s(g)}),(typeof o!="object"||o.whenOpening!==!1)&&(E["'>'"]=function(g){return R(g)}),a.addKeyMap(E)});var u=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],C=["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 R(a){if(a.getOption("disableInput"))return k.Pass;for(var o=a.listSelections(),r=[],E=a.getOption("autoCloseTags"),g=0;gm.ch&&(l=l.slice(0,l.length-w.end+m.ch));var i=l.toLowerCase();if(!l||w.type=="string"&&(w.end!=m.ch||!/[\"\']/.test(w.string.charAt(w.string.length-1))||w.string.length==1)||w.type=="tag"&&n.close||w.string.indexOf("/")==m.ch-w.start-1||T&&S(T,i)>-1||f(a,p.mode.xmlCurrentContext&&p.mode.xmlCurrentContext(d)||[],l,m,!0))return k.Pass;var L=typeof E=="object"&&E.emptyTags;if(L&&S(L,l)>-1){r[g]={text:"/>",newPos:k.Pos(m.line,m.ch+2)};continue}var A=v&&S(v,i)>-1;r[g]={indent:A,text:">"+(A?`
`:"")+""+l+">",newPos:A?k.Pos(m.line+1,0):k.Pos(m.line,m.ch+1)}}for(var b=typeof E=="object"&&E.dontIndentOnAutoClose,g=o.length-1;g>=0;g--){var x=r[g];a.replaceRange(x.text,o[g].head,o[g].anchor,"+insert");var y=a.listSelections().slice(0);y[g]={head:x.newPos,anchor:x.newPos},a.setSelections(y),!b&&x.indent&&(a.indentLine(x.newPos.line,null,!0),a.indentLine(x.newPos.line+1,null,!0))}}function h(a,o){for(var r=a.listSelections(),E=[],g=o?"/":"",m=a.getOption("autoCloseTags"),w=typeof m=="object"&&m.dontIndentOnSlash,p=0;p"&&(T+=">"),E[p]=T}if(a.replaceSelections(E),r=a.listSelections(),!w)for(var p=0;p=0&&o[d]==r;d--)++p;E=w.to;for(var d=1;d0){for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:"",o=[],r=0;r=0;o--){var r=C().key(o);a(R(r),r)}}function S(a){return C().removeItem(a)}function f(){return C().clear()}},DlQD:function(N,$,P){(function(k,u){N.exports=u()})(this,function(){"use strict";function k(Me,De){for(var Te=0;TeMe.length)&&(De=Me.length);for(var Te=0,de=new Array(De);Te=Me.length?{done:!0}:{done:!1,value:Me[de++]}}}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 Te=Me[Symbol.iterator](),Te.next.bind(Te)}function s(Me,De){return De={exports:{}},Me(De,De.exports),De.exports}var S=s(function(Me){function De(){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 Te(de){Me.exports.defaults=de}Me.exports={defaults:De(),getDefaults:De,changeDefaults:Te}}),f=S.defaults,a=S.getDefaults,o=S.changeDefaults,r=/[&<>"']/,E=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,m=/[<>"']|&(?!#?\w+;)/g,w={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(De){return w[De]};function d(Me,De){if(De){if(r.test(Me))return Me.replace(E,p)}else if(g.test(Me))return Me.replace(m,p);return Me}var n=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function l(Me){return Me.replace(n,function(De,Te){return Te=Te.toLowerCase(),Te==="colon"?":":Te.charAt(0)==="#"?Te.charAt(1)==="x"?String.fromCharCode(parseInt(Te.substring(2),16)):String.fromCharCode(+Te.substring(1)):""})}var c=/(^|[^\[])\^/g;function T(Me,De){Me=Me.source||Me,De=De||"";var Te={replace:function(ge,we){return we=we.source||we,we=we.replace(c,"$1"),Me=Me.replace(ge,we),Te},getRegex:function(){return new RegExp(Me,De)}};return Te}var v=/[^\w:]/g,i=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function L(Me,De,Te){if(Me){var de;try{de=decodeURIComponent(l(Te)).replace(v,"").toLowerCase()}catch(ge){return null}if(de.indexOf("javascript:")===0||de.indexOf("vbscript:")===0||de.indexOf("data:")===0)return null}De&&!i.test(Te)&&(Te=_(De,Te));try{Te=encodeURI(Te).replace(/%25/g,"%")}catch(ge){return null}return Te}var A={},b=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(Me,De){A[" "+Me]||(b.test(Me)?A[" "+Me]=Me+"/":A[" "+Me]=G(Me,"/",!0)),Me=A[" "+Me];var Te=Me.indexOf(":")===-1;return De.substring(0,2)==="//"?Te?De:Me.replace(x,"$1")+De:De.charAt(0)==="/"?Te?De:Me.replace(y,"$1")+De:Me+De}var I={exec:function(){}};function j(Me){for(var De=1,Te,de;De=0&&Ue[at]==="\\";)Xe=!Xe;return Xe?"|":" |"}),de=Te.split(/ \|/),ge=0;if(de.length>De)de.splice(De);else for(;de.length=de.length?ge.slice(de.length):ge}).join(`
`)}var pe=function(){function Me(Te){this.options=Te||B}var De=Me.prototype;return De.space=function(de){var ge=this.rules.block.newline.exec(de);if(ge)return ge[0].length>1?{type:"space",raw:ge[0]}:{raw:`
`}},De.code=function(de,ge){var we=this.rules.block.code.exec(de);if(we){var _e=ge[ge.length-1];if(_e&&_e.type==="paragraph")return{raw:we[0],text:we[0].trimRight()};var Ue=we[0].replace(/^ {4}/gm,"");return{type:"code",raw:we[0],codeBlockStyle:"indented",text:this.options.pedantic?Ue:W(Ue,`
`)}}},De.fences=function(de){var ge=this.rules.block.fences.exec(de);if(ge){var we=ge[0],_e=ye(we,ge[3]||"");return{type:"code",raw:we,lang:ge[2]?ge[2].trim():ge[2],text:_e}}},De.heading=function(de){var ge=this.rules.block.heading.exec(de);if(ge)return{type:"heading",raw:ge[0],depth:ge[1].length,text:ge[2]}},De.nptable=function(de){var ge=this.rules.block.nptable.exec(de);if(ge){var we={type:"table",header:F(ge[1].replace(/^ *| *\| *$/g,"")),align:ge[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ge[3]?ge[3].replace(/\n$/,"").split(`
`):[],raw:ge[0]};if(we.header.length===we.align.length){var _e=we.align.length,Ue;for(Ue=0;Ue<_e;Ue++)/^ *-+: *$/.test(we.align[Ue])?we.align[Ue]="right":/^ *:-+: *$/.test(we.align[Ue])?we.align[Ue]="center":/^ *:-+ *$/.test(we.align[Ue])?we.align[Ue]="left":we.align[Ue]=null;for(_e=we.cells.length,Ue=0;Ue<_e;Ue++)we.cells[Ue]=F(we.cells[Ue],we.header.length);return we}}},De.hr=function(de){var ge=this.rules.block.hr.exec(de);if(ge)return{type:"hr",raw:ge[0]}},De.blockquote=function(de){var ge=this.rules.block.blockquote.exec(de);if(ge){var we=ge[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ge[0],text:we}}},De.list=function(de){var ge=this.rules.block.list.exec(de);if(ge){for(var we=ge[0],_e=ge[2],Ue=_e.length>1,Xe=_e[_e.length-1]===")",at={type:"list",raw:we,ordered:Ue,start:Ue?+_e.slice(0,-1):"",loose:!1,items:[]},ut=ge[0].match(this.rules.block.item),mt=!1,ct,_t,At,Et,Qt,qt,Jt,mr=ut.length,Pt=0;Pt1||this.options.smartLists&&At!==_e)&&(Et=ut.slice(Pt+1).join(`
`),at.raw=at.raw.substring(0,at.raw.length-Et.length),Pt=mr-1)),Qt=mt||/\n\n(?!\s*$)/.test(ct),Pt!==mr-1&&(mt=ct.charAt(ct.length-1)===`
`,Qt||(Qt=mt)),Qt&&(at.loose=!0),qt=/^\[[ xX]\] /.test(ct),Jt=void 0,qt&&(Jt=ct[1]!==" ",ct=ct.replace(/^\[[ xX]\] +/,"")),at.items.push({type:"list_item",raw:we,task:qt,checked:Jt,loose:Qt,text:ct});return at}},De.html=function(de){var ge=this.rules.block.html.exec(de);if(ge)return{type:this.options.sanitize?"paragraph":"html",raw:ge[0],pre:!this.options.sanitizer&&(ge[1]==="pre"||ge[1]==="script"||ge[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ge[0]):J(ge[0]):ge[0]}},De.def=function(de){var ge=this.rules.block.def.exec(de);if(ge){ge[3]&&(ge[3]=ge[3].substring(1,ge[3].length-1));var we=ge[1].toLowerCase().replace(/\s+/g," ");return{tag:we,raw:ge[0],href:ge[2],title:ge[3]}}},De.table=function(de){var ge=this.rules.block.table.exec(de);if(ge){var we={type:"table",header:F(ge[1].replace(/^ *| *\| *$/g,"")),align:ge[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ge[3]?ge[3].replace(/\n$/,"").split(`
`):[]};if(we.header.length===we.align.length){we.raw=ge[0];var _e=we.align.length,Ue;for(Ue=0;Ue<_e;Ue++)/^ *-+: *$/.test(we.align[Ue])?we.align[Ue]="right":/^ *:-+: *$/.test(we.align[Ue])?we.align[Ue]="center":/^ *:-+ *$/.test(we.align[Ue])?we.align[Ue]="left":we.align[Ue]=null;for(_e=we.cells.length,Ue=0;Ue<_e;Ue++)we.cells[Ue]=F(we.cells[Ue].replace(/^ *\| *| *\| *$/g,""),we.header.length);return we}}},De.lheading=function(de){var ge=this.rules.block.lheading.exec(de);if(ge)return{type:"heading",raw:ge[0],depth:ge[2].charAt(0)==="="?1:2,text:ge[1]}},De.paragraph=function(de){var ge=this.rules.block.paragraph.exec(de);if(ge)return{type:"paragraph",raw:ge[0],text:ge[1].charAt(ge[1].length-1)===`
`?ge[1].slice(0,-1):ge[1]}},De.text=function(de,ge){var we=this.rules.block.text.exec(de);if(we){var _e=ge[ge.length-1];return _e&&_e.type==="text"?{raw:we[0],text:we[0]}:{type:"text",raw:we[0],text:we[0]}}},De.escape=function(de){var ge=this.rules.inline.escape.exec(de);if(ge)return{type:"escape",raw:ge[0],text:J(ge[1])}},De.tag=function(de,ge,we){var _e=this.rules.inline.tag.exec(de);if(_e)return!ge&&/^/i.test(_e[0])&&(ge=!1),!we&&/^<(pre|code|kbd|script)(\s|>)/i.test(_e[0])?we=!0:we&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(_e[0])&&(we=!1),{type:this.options.sanitize?"text":"html",raw:_e[0],inLink:ge,inRawBlock:we,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):J(_e[0]):_e[0]}},De.link=function(de){var ge=this.rules.inline.link.exec(de);if(ge){var we=ee(ge[2],"()");if(we>-1){var _e=ge[0].indexOf("!")===0?5:4,Ue=_e+ge[1].length+we;ge[2]=ge[2].substring(0,we),ge[0]=ge[0].substring(0,Ue).trim(),ge[3]=""}var Xe=ge[2],at="";if(this.options.pedantic){var ut=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Xe);ut?(Xe=ut[1],at=ut[3]):at=""}else at=ge[3]?ge[3].slice(1,-1):"";Xe=Xe.trim().replace(/^<([\s\S]*)>$/,"$1");var mt=q(ge,{href:Xe&&Xe.replace(this.rules.inline._escapes,"$1"),title:at&&at.replace(this.rules.inline._escapes,"$1")},ge[0]);return mt}},De.reflink=function(de,ge){var we;if((we=this.rules.inline.reflink.exec(de))||(we=this.rules.inline.nolink.exec(de))){var _e=(we[2]||we[1]).replace(/\s+/g," ");if(_e=ge[_e.toLowerCase()],!_e||!_e.href){var Ue=we[0].charAt(0);return{type:"text",raw:Ue,text:Ue}}var Xe=q(we,_e,we[0]);return Xe}},De.strong=function(de,ge,we){we===void 0&&(we="");var _e=this.rules.inline.strong.start.exec(de);if(_e&&(!_e[1]||_e[1]&&(we===""||this.rules.inline.punctuation.exec(we)))){ge=ge.slice(-1*de.length);var Ue=_e[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ue.lastIndex=0;for(var Xe;(_e=Ue.exec(ge))!=null;)if(Xe=this.rules.inline.strong.middle.exec(ge.slice(0,_e.index+3)),Xe)return{type:"strong",raw:de.slice(0,Xe[0].length),text:de.slice(2,Xe[0].length-2)}}},De.em=function(de,ge,we){we===void 0&&(we="");var _e=this.rules.inline.em.start.exec(de);if(_e&&(!_e[1]||_e[1]&&(we===""||this.rules.inline.punctuation.exec(we)))){ge=ge.slice(-1*de.length);var Ue=_e[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ue.lastIndex=0;for(var Xe;(_e=Ue.exec(ge))!=null;)if(Xe=this.rules.inline.em.middle.exec(ge.slice(0,_e.index+2)),Xe)return{type:"em",raw:de.slice(0,Xe[0].length),text:de.slice(1,Xe[0].length-1)}}},De.codespan=function(de){var ge=this.rules.inline.code.exec(de);if(ge){var we=ge[2].replace(/\n/g," "),_e=/[^ ]/.test(we),Ue=we.startsWith(" ")&&we.endsWith(" ");return _e&&Ue&&(we=we.substring(1,we.length-1)),we=J(we,!0),{type:"codespan",raw:ge[0],text:we}}},De.br=function(de){var ge=this.rules.inline.br.exec(de);if(ge)return{type:"br",raw:ge[0]}},De.del=function(de){var ge=this.rules.inline.del.exec(de);if(ge)return{type:"del",raw:ge[0],text:ge[1]}},De.autolink=function(de,ge){var we=this.rules.inline.autolink.exec(de);if(we){var _e,Ue;return we[2]==="@"?(_e=J(this.options.mangle?ge(we[1]):we[1]),Ue="mailto:"+_e):(_e=J(we[1]),Ue=_e),{type:"link",raw:we[0],text:_e,href:Ue,tokens:[{type:"text",raw:_e,text:_e}]}}},De.url=function(de,ge){var we;if(we=this.rules.inline.url.exec(de)){var _e,Ue;if(we[2]==="@")_e=J(this.options.mangle?ge(we[0]):we[0]),Ue="mailto:"+_e;else{var Xe;do Xe=we[0],we[0]=this.rules.inline._backpedal.exec(we[0])[0];while(Xe!==we[0]);_e=J(we[0]),we[1]==="www."?Ue="http://"+_e:Ue=_e}return{type:"link",raw:we[0],text:_e,href:Ue,tokens:[{type:"text",raw:_e,text:_e}]}}},De.inlineText=function(de,ge,we){var _e=this.rules.inline.text.exec(de);if(_e){var Ue;return ge?Ue=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):J(_e[0]):_e[0]:Ue=J(this.options.smartypants?we(_e[0]):_e[0]),{type:"text",raw:_e[0],text:Ue}}},Me}(),le=z.noopTest,Oe=z.edit,xe=z.merge,ie={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:le,table:le,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ie._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ie._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ie.def=Oe(ie.def).replace("label",ie._label).replace("title",ie._title).getRegex(),ie.bullet=/(?:[*+-]|\d{1,9}[.)])/,ie.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ie.item=Oe(ie.item,"gm").replace(/bull/g,ie.bullet).getRegex(),ie.list=Oe(ie.list).replace(/bull/g,ie.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ie.def.source+")").getRegex(),ie._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",ie._comment=//,ie.html=Oe(ie.html,"i").replace("comment",ie._comment).replace("tag",ie._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ie.paragraph=Oe(ie._paragraph).replace("hr",ie.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",ie._tag).getRegex(),ie.blockquote=Oe(ie.blockquote).replace("paragraph",ie.paragraph).getRegex(),ie.normal=xe({},ie),ie.gfm=xe({},ie.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*|$)"}),ie.gfm.nptable=Oe(ie.gfm.nptable).replace("hr",ie.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",ie._tag).getRegex(),ie.gfm.table=Oe(ie.gfm.table).replace("hr",ie.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",ie._tag).getRegex(),ie.pedantic=xe({},ie.normal,{html:Oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ie._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:le,paragraph:Oe(ie.normal._paragraph).replace("hr",ie.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ie.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var se={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:le,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:le,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",se.punctuation=Oe(se.punctuation).replace(/punctuation/g,se._punctuation).getRegex(),se._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",se._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",se.em.start=Oe(se.em.start).replace(/punctuation/g,se._punctuation).getRegex(),se.em.middle=Oe(se.em.middle).replace(/punctuation/g,se._punctuation).replace(/overlapSkip/g,se._overlapSkip).getRegex(),se.em.endAst=Oe(se.em.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.em.endUnd=Oe(se.em.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.start=Oe(se.strong.start).replace(/punctuation/g,se._punctuation).getRegex(),se.strong.middle=Oe(se.strong.middle).replace(/punctuation/g,se._punctuation).replace(/blockSkip/g,se._blockSkip).getRegex(),se.strong.endAst=Oe(se.strong.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.endUnd=Oe(se.strong.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.blockSkip=Oe(se._blockSkip,"g").getRegex(),se.overlapSkip=Oe(se._overlapSkip,"g").getRegex(),se._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,se._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,se._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])?)+(?![-_])/,se.autolink=Oe(se.autolink).replace("scheme",se._scheme).replace("email",se._email).getRegex(),se._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,se.tag=Oe(se.tag).replace("comment",ie._comment).replace("attribute",se._attribute).getRegex(),se._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,se._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,se._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,se.link=Oe(se.link).replace("label",se._label).replace("href",se._href).replace("title",se._title).getRegex(),se.reflink=Oe(se.reflink).replace("label",se._label).getRegex(),se.reflinkSearch=Oe(se.reflinkSearch,"g").replace("reflink",se.reflink).replace("nolink",se.nolink).getRegex(),se.normal=xe({},se),se.pedantic=xe({},se.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:Oe(/^!?\[(label)\]\((.*?)\)/).replace("label",se._label).getRegex(),reflink:Oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",se._label).getRegex()}),se.gfm=xe({},se.normal,{escape:Oe(se.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&&(de="x"+de.toString(16)),De+=""+de+";";return De}var Y=function(){function Me(Te){this.tokens=[],this.tokens.links=Object.create(null),this.options=Te||be,this.options.tokenizer=this.options.tokenizer||new pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var de={block:Z.normal,inline:te.normal};this.options.pedantic?(de.block=Z.pedantic,de.inline=te.pedantic):this.options.gfm&&(de.block=Z.gfm,this.options.breaks?de.inline=te.breaks:de.inline=te.gfm),this.tokenizer.rules=de}Me.lex=function(de,ge){var we=new Me(ge);return we.lex(de)};var De=Me.prototype;return De.lex=function(de){return de=de.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(de,this.tokens,!0),this.inline(this.tokens),this.tokens},De.blockTokens=function(de,ge,we){ge===void 0&&(ge=[]),we===void 0&&(we=!0),de=de.replace(/^ +$/gm,"");for(var _e,Ue,Xe,at;de;){if(_e=this.tokenizer.space(de)){de=de.substring(_e.raw.length),_e.type&&ge.push(_e);continue}if(_e=this.tokenizer.code(de,ge)){de=de.substring(_e.raw.length),_e.type?ge.push(_e):(at=ge[ge.length-1],at.raw+=`
`+_e.raw,at.text+=`
`+_e.text);continue}if(_e=this.tokenizer.fences(de)){de=de.substring(_e.raw.length),ge.push(_e);continue}if(_e=this.tokenizer.heading(de)){de=de.substring(_e.raw.length),ge.push(_e);continue}if(_e=this.tokenizer.nptable(de)){de=de.substring(_e.raw.length),ge.push(_e);continue}if(_e=this.tokenizer.hr(de)){de=de.substring(_e.raw.length),ge.push(_e);continue}if(_e=this.tokenizer.blockquote(de)){de=de.substring(_e.raw.length),_e.tokens=this.blockTokens(_e.text,[],we),ge.push(_e);continue}if(_e=this.tokenizer.list(de)){for(de=de.substring(_e.raw.length),Xe=_e.items.length,Ue=0;Ue0)for(;(ut=this.tokenizer.rules.inline.reflinkSearch.exec(at))!=null;)mt.includes(ut[0].slice(ut[0].lastIndexOf("[")+1,-1))&&(at=at.slice(0,ut.index)+"["+"a".repeat(ut[0].length-2)+"]"+at.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ut=this.tokenizer.rules.inline.blockSkip.exec(at))!=null;)at=at.slice(0,ut.index)+"["+"a".repeat(ut[0].length-2)+"]"+at.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;de;){if(Xe=this.tokenizer.escape(de)){de=de.substring(Xe.raw.length),ge.push(Xe);continue}if(Xe=this.tokenizer.tag(de,we,_e)){de=de.substring(Xe.raw.length),we=Xe.inLink,_e=Xe.inRawBlock,ge.push(Xe);continue}if(Xe=this.tokenizer.link(de)){de=de.substring(Xe.raw.length),Xe.type==="link"&&(Xe.tokens=this.inlineTokens(Xe.text,[],!0,_e)),ge.push(Xe);continue}if(Xe=this.tokenizer.reflink(de,this.tokens.links)){de=de.substring(Xe.raw.length),Xe.type==="link"&&(Xe.tokens=this.inlineTokens(Xe.text,[],!0,_e)),ge.push(Xe);continue}if(Xe=this.tokenizer.strong(de,at,Ue)){de=de.substring(Xe.raw.length),Xe.tokens=this.inlineTokens(Xe.text,[],we,_e),ge.push(Xe);continue}if(Xe=this.tokenizer.em(de,at,Ue)){de=de.substring(Xe.raw.length),Xe.tokens=this.inlineTokens(Xe.text,[],we,_e),ge.push(Xe);continue}if(Xe=this.tokenizer.codespan(de)){de=de.substring(Xe.raw.length),ge.push(Xe);continue}if(Xe=this.tokenizer.br(de)){de=de.substring(Xe.raw.length),ge.push(Xe);continue}if(Xe=this.tokenizer.del(de)){de=de.substring(Xe.raw.length),Xe.tokens=this.inlineTokens(Xe.text,[],we,_e),ge.push(Xe);continue}if(Xe=this.tokenizer.autolink(de,ae)){de=de.substring(Xe.raw.length),ge.push(Xe);continue}if(!we&&(Xe=this.tokenizer.url(de,ae))){de=de.substring(Xe.raw.length),ge.push(Xe);continue}if(Xe=this.tokenizer.inlineText(de,_e,Ee)){de=de.substring(Xe.raw.length),Ue=Xe.raw.slice(-1),ge.push(Xe);continue}if(de){var ct="Infinite loop on byte: "+de.charCodeAt(0);if(this.options.silent){console.error(ct);break}else throw new Error(ct)}}return ge},u(Me,null,[{key:"rules",get:function(){return{block:Z,inline:te}}}]),Me}(),X=S.defaults,Q=z.cleanUrl,he=z.escape,ce=function(){function Me(Te){this.options=Te||X}var De=Me.prototype;return De.code=function(de,ge,we){var _e=(ge||"").match(/\S*/)[0];if(this.options.highlight){var Ue=this.options.highlight(de,_e);Ue!=null&&Ue!==de&&(we=!0,de=Ue)}return _e?''+(we?de:he(de,!0))+`
`:""+(we?de:he(de,!0))+`
`},De.blockquote=function(de){return`
`+de+`
`},De.html=function(de){return de},De.heading=function(de,ge,we,_e){return this.options.headerIds?"
`:""+de+"
`},De.hr=function(){return this.options.xhtml?`
`:`
`},De.list=function(de,ge,we){var _e=ge?"ol":"ul",Ue=ge&&we!==1?' start="'+we+'"':"";return"<"+_e+Ue+`>
`+de+""+_e+`>
`},De.listitem=function(de){return""+de+`
`},De.checkbox=function(de){return" "},De.paragraph=function(de){return""+de+`
`},De.table=function(de,ge){return ge&&(ge=""+ge+""),`
`},De.tablerow=function(de){return`
`+de+`
`},De.tablecell=function(de,ge){var we=ge.header?"th":"td",_e=ge.align?"<"+we+' align="'+ge.align+'">':"<"+we+">";return _e+de+""+we+`>
`},De.strong=function(de){return""+de+""},De.em=function(de){return""+de+""},De.codespan=function(de){return""+de+""},De.br=function(){return this.options.xhtml?"
":"
"},De.del=function(de){return""+de+""},De.link=function(de,ge,we){if(de=Q(this.options.sanitize,this.options.baseUrl,de),de===null)return we;var _e='"+we+"",_e},De.image=function(de,ge,we){if(de=Q(this.options.sanitize,this.options.baseUrl,de),de===null)return we;var _e='
":">",_e},De.text=function(de){return de},Me}(),Se=function(){function Me(){}var De=Me.prototype;return De.strong=function(de){return de},De.em=function(de){return de},De.codespan=function(de){return de},De.del=function(de){return de},De.html=function(de){return de},De.text=function(de){return de},De.link=function(de,ge,we){return""+we},De.image=function(de,ge,we){return""+we},De.br=function(){return""},Me}(),Ke=function(){function Me(){this.seen={}}var De=Me.prototype;return De.slug=function(de){var ge=de.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ge)){var we=ge;do this.seen[we]++,ge=we+"-"+this.seen[we];while(this.seen.hasOwnProperty(ge))}return this.seen[ge]=0,ge},Me}(),Ge=S.defaults,Ye=z.unescape,Qe=function(){function Me(Te){this.options=Te||Ge,this.options.renderer=this.options.renderer||new ce,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Se,this.slugger=new Ke}Me.parse=function(de,ge){var we=new Me(ge);return we.parse(de)};var De=Me.prototype;return De.parse=function(de,ge){ge===void 0&&(ge=!0);var we="",_e,Ue,Xe,at,ut,mt,ct,_t,At,Et,Qt,qt,Jt,mr,Pt,cr,ir,Ht,$t=de.length;for(_e=0;_e<$t;_e++){Et=de[_e];switch(Et.type){case"space":continue;case"hr":{we+=this.renderer.hr();continue}case"heading":{we+=this.renderer.heading(this.parseInline(Et.tokens),Et.depth,Ye(this.parseInline(Et.tokens,this.textRenderer)),this.slugger);continue}case"code":{we+=this.renderer.code(Et.text,Et.lang,Et.escaped);continue}case"table":{for(_t="",ct="",at=Et.header.length,Ue=0;Ue0&&Pt.tokens[0].type==="text"?(Pt.tokens[0].text=Ht+" "+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=Ht+" "+Pt.tokens[0].tokens[0].text)):Pt.tokens.unshift({type:"text",text:Ht}):mr+=Ht),mr+=this.parse(Pt.tokens,Jt),At+=this.renderer.listitem(mr,ir,cr);we+=this.renderer.list(At,Qt,qt);continue}case"html":{we+=this.renderer.html(Et.text);continue}case"paragraph":{we+=this.renderer.paragraph(this.parseInline(Et.tokens));continue}case"text":{for(At=Et.tokens?this.parseInline(Et.tokens):Et.text;_e+1<$t&&de[_e+1].type==="text";)Et=de[++_e],At+=`
`+(Et.tokens?this.parseInline(Et.tokens):Et.text);we+=ge?this.renderer.paragraph(At):At;continue}default:{var Kr='Token with "'+Et.type+'" type was not found.';if(this.options.silent){console.error(Kr);return}else throw new Error(Kr)}}}return we},De.parseInline=function(de,ge){ge=ge||this.renderer;var we="",_e,Ue,Xe=de.length;for(_e=0;_eAn error occurred:
"+Le(Xe.message+"",!0)+"
";throw Xe}}He.options=He.setOptions=function(Me){return rt(He.defaults,Me),Ve(He.defaults),He},He.getDefaults=Ce,He.defaults=tt,He.use=function(Me){var De=rt({},Me);if(Me.renderer&&function(){var de=He.defaults.renderer||new ce,ge=function(Ue){var Xe=de[Ue];de[Ue]=function(){for(var at=arguments.length,ut=new Array(at),mt=0;mt=0;g--){if(!C(E[g]))continue;var m=E[g].split("="),w=unescape(m[0]),p=unescape(m[1]);r(p,w)}}function S(r,E){if(!r)return;R.cookie=escape(r)+"="+escape(E)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function f(r){if(!r||!o(r))return;R.cookie=escape(r)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function a(){s(function(r,E){f(E)})}function o(r){return new RegExp("(?:^|;\\s*)"+escape(r).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(R.cookie)}},E4JC:function(N,$,P){(function(k,u,C){N.exports=$=u(P("Ib8C"),P("ETIr"),P("cv67"),P("K3mO"),P("OLod"))})(this,function(k){return function(){var u=k,C=u.lib,R=C.StreamCipher,h=u.algo,s=[],S=[],f=[],a=h.Rabbit=R.extend({_doReset:function(){for(var r=this._key.words,E=this.cfg.iv,g=0;g<4;g++)r[g]=(r[g]<<8|r[g]>>>24)&16711935|(r[g]<<24|r[g]>>>8)&4278255360;var m=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],w=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var g=0;g<4;g++)o.call(this);for(var g=0;g<8;g++)w[g]^=m[g+4&7];if(E){var p=E.words,d=p[0],n=p[1],l=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,c=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,T=l>>>16|c&4294901760,v=c<<16|l&65535;w[0]^=l,w[1]^=T,w[2]^=c,w[3]^=v,w[4]^=l,w[5]^=T,w[6]^=c,w[7]^=v;for(var g=0;g<4;g++)o.call(this)}},_doProcessBlock:function(r,E){var g=this._X;o.call(this),s[0]=g[0]^g[5]>>>16^g[3]<<16,s[1]=g[2]^g[7]>>>16^g[5]<<16,s[2]=g[4]^g[1]>>>16^g[7]<<16,s[3]=g[6]^g[3]>>>16^g[1]<<16;for(var m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,r[E+m]^=s[m]},blockSize:128/32,ivSize:64/32});function o(){for(var r=this._X,E=this._C,g=0;g<8;g++)S[g]=E[g];E[0]=E[0]+1295307597+this._b|0,E[1]=E[1]+3545052371+(E[0]>>>0>>0?1:0)|0,E[2]=E[2]+886263092+(E[1]>>>0>>0?1:0)|0,E[3]=E[3]+1295307597+(E[2]>>>0>>0?1:0)|0,E[4]=E[4]+3545052371+(E[3]>>>0>>0?1:0)|0,E[5]=E[5]+886263092+(E[4]>>>0>>0?1:0)|0,E[6]=E[6]+1295307597+(E[5]>>>0>>0?1:0)|0,E[7]=E[7]+3545052371+(E[6]>>>0>>0?1:0)|0,this._b=E[7]>>>0>>0?1:0;for(var g=0;g<8;g++){var m=r[g]+E[g],w=m&65535,p=m>>>16,d=((w*w>>>17)+w*p>>>15)+p*p,n=((m&4294901760)*m|0)+((m&65535)*m|0);f[g]=d^n}r[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,r[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,r[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,r[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,r[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,r[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,r[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,r[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}u.Rabbit=R._createHelper(a)}(),k.Rabbit})},ELLl:function(N,$,P){(function(k){k(P("VrN/"))})(function(k){var u={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},C=k.Pos;k.defineOption("autoCloseBrackets",!1,function(w,p,d){d&&d!=k.Init&&(w.removeKeyMap(h),w.state.closeBrackets=null),p&&(s(R(p,"pairs")),w.state.closeBrackets=p,w.addKeyMap(h))});function R(w,p){return p=="pairs"&&typeof w=="string"?w:typeof w=="object"&&w[p]!=null?w[p]:u[p]}var h={Backspace:a,Enter:o};function s(w){for(var p=0;p=0;l--){var T=n[l].head;w.replaceRange("",C(T.line,T.ch-1),C(T.line,T.ch+1),"+delete")}}function o(w){var p=f(w),d=p&&R(p,"explode");if(!d||w.getOption("disableInput"))return k.Pass;for(var n=w.listSelections(),l=0;l0;return{anchor:new C(w.anchor.line,w.anchor.ch+(p?-1:1)),head:new C(w.head.line,w.head.ch+(p?1:-1))}}function E(w,p){var d=f(w);if(!d||w.getOption("disableInput"))return k.Pass;var n=R(d,"pairs"),l=n.indexOf(p);if(l==-1)return k.Pass;for(var c=R(d,"closeBefore"),T=R(d,"triples"),v=n.charAt(l+1)==p,i=w.listSelections(),L=l%2==0,A,b=0;b=0&&w.getRange(y,C(y.line,y.ch+3))==p+p+p?_="skipThree":_="skip";else if(v&&y.ch>1&&T.indexOf(p)>=0&&w.getRange(C(y.line,y.ch-2),y)==p+p){if(y.ch>2&&/\bstring/.test(w.getTokenTypeAt(C(y.line,y.ch-2))))return k.Pass;_="addFour"}else if(v){var j=y.ch==0?" ":w.getRange(C(y.line,y.ch-1),y);if(!k.isWordChar(I)&&j!=p&&!k.isWordChar(j))_="both";else return k.Pass}else if(L&&(I.length===0||/\s/.test(I)||c.indexOf(I)>-1))_="both";else return k.Pass;if(!A)A=_;else if(A!=_)return k.Pass}var M=l%2?n.charAt(l-1):p,G=l%2?p:n.charAt(l+1);w.operation(function(){if(A=="skip")w.execCommand("goCharRight");else if(A=="skipThree")for(var K=0;K<3;K++)w.execCommand("goCharRight");else if(A=="surround"){for(var H=w.getSelections(),K=0;K>>24)&16711935|(A<<24|A>>>8)&4278255360}var b=this._hash.words,x=E.words,y=g.words,_=f.words,I=a.words,j=o.words,M=r.words,G,K,H,z,B,W,F,J,ee,q;W=G=b[0],F=K=b[1],J=H=b[2],ee=z=b[3],q=B=b[4];for(var ye,i=0;i<80;i+=1)ye=G+T[v+_[i]]|0,i<16?ye+=w(K,H,z)+x[0]:i<32?ye+=p(K,H,z)+x[1]:i<48?ye+=d(K,H,z)+x[2]:i<64?ye+=n(K,H,z)+x[3]:ye+=l(K,H,z)+x[4],ye=ye|0,ye=c(ye,j[i]),ye=ye+B|0,G=B,B=z,z=c(H,10),H=K,K=ye,ye=W+T[v+I[i]]|0,i<16?ye+=l(F,J,ee)+y[0]:i<32?ye+=n(F,J,ee)+y[1]:i<48?ye+=d(F,J,ee)+y[2]:i<64?ye+=p(F,J,ee)+y[3]:ye+=w(F,J,ee)+y[4],ye=ye|0,ye=c(ye,M[i]),ye=ye+q|0,W=q,q=ee,ee=c(J,10),J=F,F=ye;ye=b[1]+H+ee|0,b[1]=b[2]+z+q|0,b[2]=b[3]+B+W|0,b[3]=b[4]+G+F|0,b[4]=b[0]+K+J|0,b[0]=ye},_doFinalize:function(){var T=this._data,v=T.words,i=this._nDataBytes*8,L=T.sigBytes*8;v[L>>>5]|=128<<24-L%32,v[(L+64>>>9<<4)+14]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,T.sigBytes=(v.length+1)*4,this._process();for(var A=this._hash,b=A.words,x=0;x<5;x++){var y=b[x];b[x]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}return A},clone:function(){var T=s.clone.call(this);return T._hash=this._hash.clone(),T}});function w(T,v,i){return T^v^i}function p(T,v,i){return T&v|~T&i}function d(T,v,i){return(T|~v)^i}function n(T,v,i){return T&i|v&~i}function l(T,v,i){return T^(v|~i)}function c(T,v){return T<>>32-v}C.RIPEMD160=s._createHelper(m),C.HmacRIPEMD160=s._createHmacHelper(m)}(Math),k.RIPEMD160})},ETIr:function(N,$,P){(function(k,u){N.exports=$=u(P("Ib8C"))})(this,function(k){return function(){var u=k,C=u.lib,R=C.WordArray,h=u.enc,s=h.Base64={stringify:function(f){var a=f.words,o=f.sigBytes,r=this._map;f.clamp();for(var E=[],g=0;g>>2]>>>24-g%4*8&255,w=a[g+1>>>2]>>>24-(g+1)%4*8&255,p=a[g+2>>>2]>>>24-(g+2)%4*8&255,d=m<<16|w<<8|p,n=0;n<4&&g+n*.75>>6*(3-n)&63));var l=r.charAt(64);if(l)for(;E.length%4;)E.push(l);return E.join("")},parse:function(f){var a=f.length,o=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var E=0;E>>6-g%4*2,p=m|w;r[E>>>2]|=p<<24-E%4*8,E++}return R.create(r,E)}}(),k.enc.Base64})},"F+F2":function(N,$,P){(function(k,u){N.exports=$=u(P("Ib8C"))})(this,function(k){return function(){if(typeof ArrayBuffer!="function")return;var u=k,C=u.lib,R=C.WordArray,h=R.init,s=R.init=function(S){if(S instanceof ArrayBuffer&&(S=new Uint8Array(S)),(S instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array)&&(S=new Uint8Array(S.buffer,S.byteOffset,S.byteLength)),S instanceof Uint8Array){for(var f=S.byteLength,a=[],o=0;o>>2]|=S[o]<<24-o%4*8;h.call(this,a,f)}else h.apply(this,arguments)};s.prototype=R}(),k.lib.WordArray})},GRuw:function(N,$,P){(function(k,u,C){N.exports=$=u(P("Ib8C"),P("lPiR"))})(this,function(k){return function(){var u=k,C=u.lib,R=C.WordArray,h=u.algo,s=h.SHA256,S=h.SHA224=s.extend({_doReset:function(){this._hash=new R.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var f=s._doFinalize.call(this);return f.sigBytes-=4,f}});u.SHA224=s._createHelper(S),u.HmacSHA224=s._createHmacHelper(S)}(),k.SHA224})},GfqC:function(N,$,P){"use strict";var k=P("q1tI"),u=P.n(k),C=P("TSYQ"),R=P.n(C);function h(z,B){var W="cannot "+z.method+" "+z.action+" "+B.status+"'",F=new Error(W);return F.status=B.status,F.method=z.method,F.url=z.action,F}function s(z){var B=z.responseText||z.response;if(!B)return B;try{return JSON.parse(B)}catch(W){return B}}function S(z){var B=new XMLHttpRequest;z.onProgress&&B.upload&&(B.upload.onprogress=function(ee){ee.total>0&&(ee.percent=ee.loaded/ee.total*100),z.onProgress(ee)});var W=new FormData;z.data&&Object.keys(z.data).forEach(function(J){var ee=z.data[J];if(Array.isArray(ee)){ee.forEach(function(q){W.append(J+"[]",q)});return}W.append(J,z.data[J])}),z.file instanceof Blob?W.append(z.filename,z.file,z.file.name):W.append(z.filename,z.file),B.onerror=function(ee){z.onError(ee)},B.onload=function(){return B.status<200||B.status>=300?z.onError(h(z,B),s(B)):z.onSuccess(s(B),B)},B.open(z.method,z.action,!0),z.withCredentials&&"withCredentials"in B&&(B.withCredentials=!0);var F=z.headers||{};return F["X-Requested-With"]!==null&&B.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(F).forEach(function(J){F[J]!==null&&B.setRequestHeader(J,F[J])}),B.send(W),{abort:function(){B.abort()}}}var f=+new Date,a=0;function o(){return"rc-upload-"+f+"-"+ ++a}function r(z,B){return z.indexOf(B,z.length-B.length)!==-1}var E=function(z,B){if(z&&B){var W=Array.isArray(B)?B:B.split(","),F=z.name||"",J=z.type||"",ee=J.replace(/\/.*$/,"");return W.some(function(q){var ye=q.trim();return ye.charAt(0)==="."?r(F.toLowerCase(),ye.toLowerCase()):/\/\*$/.test(ye)?ee===ye.replace(/\/.*$/,""):J===ye})}return!0};function g(z,B){var W=z.createReader(),F=[];function J(){W.readEntries(function(ee){var q=Array.prototype.slice.apply(ee);F=F.concat(q);var ye=!q.length;ye?B(F):J()})}J()}var m=function(B,W,F){var J=function ee(q,ye){ye=ye||"",q.isFile?q.file(function(pe){F(pe)&&(q.fullPath&&!pe.webkitRelativePath&&(Object.defineProperties(pe,{webkitRelativePath:{writable:!0}}),pe.webkitRelativePath=q.fullPath.replace(/^\//,""),Object.defineProperties(pe,{webkitRelativePath:{writable:!1}})),W([pe]))}):q.isDirectory&&g(q,function(pe){pe.forEach(function(le){ee(le,""+ye+q.name+"/")})})};B.forEach(function(ee){J(ee.webkitGetAsEntry())})},w=m,p=Object.assign||function(z){for(var B=1;B=0)continue;if(!Object.prototype.hasOwnProperty.call(z,F))continue;W[F]=z[F]}return W}function T(z,B){if(!(z instanceof B))throw new TypeError("Cannot call a class as a function")}function v(z,B){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:z}function i(z,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);z.prototype=Object.create(B&&B.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(z,B):z.__proto__=B)}var L=function(B){return Object.keys(B).reduce(function(W,F){return(F.substr(0,5)==="data-"||F.substr(0,5)==="aria-"||F==="role")&&(W[F]=B[F]),W},{})},A=function(z){i(B,z);function B(){var W,F,J,ee;T(this,B);for(var q=arguments.length,ye=Array(q),pe=0;pe>>2]>>>24-L%4*8&255;c[v+L>>>2]|=A<<24-(v+L)%4*8}else for(var b=0;b>>2]=T[b>>>2];return this.sigBytes+=i,this},clamp:function(){var l=this.words,c=this.sigBytes;l[c>>>2]&=4294967295<<32-c%4*8,l.length=C.ceil(c/4)},clone:function(){var l=o.clone.call(this);return l.words=this.words.slice(0),l},random:function(l){for(var c=[],T=0;T>>2]>>>24-i%4*8&255;v.push((L>>>4).toString(16)),v.push((L&15).toString(16))}return v.join("")},parse:function(l){for(var c=l.length,T=[],v=0;v>>3]|=parseInt(l.substr(v,2),16)<<24-v%8*4;return new r.init(T,c/2)}},m=E.Latin1={stringify:function(l){for(var c=l.words,T=l.sigBytes,v=[],i=0;i>>2]>>>24-i%4*8&255;v.push(String.fromCharCode(L))}return v.join("")},parse:function(l){for(var c=l.length,T=[],v=0;v>>2]|=(l.charCodeAt(v)&255)<<24-v%4*8;return new r.init(T,c)}},w=E.Utf8={stringify:function(l){try{return decodeURIComponent(escape(m.stringify(l)))}catch(c){throw new Error("Malformed UTF-8 data")}},parse:function(l){return m.parse(unescape(encodeURIComponent(l)))}},p=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(l){typeof l=="string"&&(l=w.parse(l)),this._data.concat(l),this._nDataBytes+=l.sigBytes},_process:function(l){var c,T=this._data,v=T.words,i=T.sigBytes,L=this.blockSize,A=L*4,b=i/A;l?b=C.ceil(b):b=C.max((b|0)-this._minBufferSize,0);var x=b*L,y=C.min(x*4,i);if(x){for(var _=0;_>>6)+a(128|G&63):a(224|G>>>12&15)+a(128|G>>>6&63)+a(128|G&63)}else{var G=65536+(M.charCodeAt(0)-55296)*1024+(M.charCodeAt(1)-56320);return a(240|G>>>18&7)+a(128|G>>>12&63)+a(128|G>>>6&63)+a(128|G&63)}},r=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,E=function(M){return M.replace(r,o)},g=function(M){var G=[0,2,1][M.length%3],K=M.charCodeAt(0)<<16|(M.length>1?M.charCodeAt(1):0)<<8|(M.length>2?M.charCodeAt(2):0),H=[S.charAt(K>>>18),S.charAt(K>>>12&63),G>=2?"=":S.charAt(K>>>6&63),G>=1?"=":S.charAt(K&63)];return H.join("")},m=R.btoa&&typeof R.btoa=="function"?function(M){return R.btoa(M)}:function(M){if(M.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return M.replace(/[\s\S]{1,3}/g,g)},w=function(M){return m(E(String(M)))},p=function(M){return M.replace(/[+\/]/g,function(G){return G=="+"?"-":"_"}).replace(/=/g,"")},d=function(M,G){return G?p(w(M)):w(M)},n=function(M){return d(M,!0)},l;R.Uint8Array&&(l=function(M,G){for(var K="",H=0,z=M.length;H>>18)+S.charAt(J>>>12&63)+(typeof W!="undefined"?S.charAt(J>>>6&63):"=")+(typeof F!="undefined"?S.charAt(J&63):"=")}return G?p(K):K});var c=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,T=function(M){switch(M.length){case 4:var G=(7&M.charCodeAt(0))<<18|(63&M.charCodeAt(1))<<12|(63&M.charCodeAt(2))<<6|63&M.charCodeAt(3),K=G-65536;return a((K>>>10)+55296)+a((K&1023)+56320);case 3:return a((15&M.charCodeAt(0))<<12|(63&M.charCodeAt(1))<<6|63&M.charCodeAt(2));default:return a((31&M.charCodeAt(0))<<6|63&M.charCodeAt(1))}},v=function(M){return M.replace(c,T)},i=function(M){var G=M.length,K=G%4,H=(G>0?f[M.charAt(0)]<<18:0)|(G>1?f[M.charAt(1)]<<12:0)|(G>2?f[M.charAt(2)]<<6:0)|(G>3?f[M.charAt(3)]:0),z=[a(H>>>16),a(H>>>8&255),a(H&255)];return z.length-=[0,0,2,1][K],z.join("")},L=R.atob&&typeof R.atob=="function"?function(M){return R.atob(M)}:function(M){return M.replace(/\S{1,4}/g,i)},A=function(M){return L(String(M).replace(/[^A-Za-z0-9\+\/]/g,""))},b=function(M){return v(L(M))},x=function(M){return String(M).replace(/[-_]/g,function(G){return G=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},y=function(M){return b(x(M))},_;R.Uint8Array&&(_=function(M){return Uint8Array.from(A(x(M)),function(G){return G.charCodeAt(0)})});var I=function(){var M=R.Base64;return R.Base64=h,M};if(R.Base64={VERSION:s,atob:A,btoa:m,fromBase64:y,toBase64:d,utob:E,encode:d,encodeURI:n,btou:v,decode:y,noConflict:I,fromUint8Array:l,toUint8Array:_},typeof Object.defineProperty=="function"){var j=function(M){return{value:M,enumerable:!1,writable:!0,configurable:!0}};R.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",j(function(){return y(this)})),Object.defineProperty(String.prototype,"toBase64",j(function(M){return d(this,M)})),Object.defineProperty(String.prototype,"toBase64URI",j(function(){return d(this,!0)}))}}return R.Meteor&&(Base64=R.Base64),N.exports?N.exports.Base64=R.Base64:!(u=[],C=function(){return R.Base64}.apply($,u),C!==void 0&&(N.exports=C)),{Base64:R.Base64}})}).call(this,P("IyRk"))},K3mO:function(N,$,P){(function(k,u,C){N.exports=$=u(P("Ib8C"),P("3y9D"),P("WYAk"))})(this,function(k){return function(){var u=k,C=u.lib,R=C.Base,h=C.WordArray,s=u.algo,S=s.MD5,f=s.EvpKDF=R.extend({cfg:R.extend({keySize:128/32,hasher:S,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,o){for(var r,E=this.cfg,g=E.hasher.create(),m=h.create(),w=m.words,p=E.keySize,d=E.iterations;w.lengthOe)){ie.next=7;break}return C.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Oe/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),ie.abrupt("return",!1);case 7:return K.push({name:le.name,file:le}),H(Object(R.a)(K)),j.onChange(K),ie.abrupt("return",!1);case 11:case"end":return ie.stop()}},pe)}));function ye(pe){return q.apply(this,arguments)}return ye}()},ee=function(){var q=Object(f.a)(E.a.mark(function ye(pe,le){var Oe,xe,ie,se,re,be,Z,te,Ee;return E.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return le.file_name=pe.name,Z=pe.name,Y.next=4,Object(w.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(te=Y.sent,te.data=JSON.parse(i(te.data)),!((te==null?void 0:te.status)!==0)){Y.next=12;break}return K[K.findIndex(function(X){return X.name===Z})].status="error",K[K.findIndex(function(X){return X.name===Z})].file.status="error",j.onChange(K),C.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Y.abrupt("return");case 12:return W=new T.a({endpoint:te==null||((Oe=te.data)===null||Oe===void 0)?void 0:Oe.end_point,region:te==null||((xe=te.data)===null||xe===void 0)?void 0:xe.region,accessKeyId:te==null||((ie=te.data)===null||ie===void 0)?void 0:ie.access_key_id,accessKeySecret:te==null||((se=te.data)===null||se===void 0)?void 0:se.access_key_secret,bucket:te==null||((re=te.data)===null||re===void 0)?void 0:re.bucket,stsToken:te==null||((be=te.data)===null||be===void 0)?void 0:be.security_token}),console.log(pe,"file"),F(W),Ee=Object(n.a)(),Y.abrupt("return",new Promise(function(X,Q){try{var he;W.multipartUpload("".concat(j.identifier,"/").concat(Ee).concat(Z.indexOf(".")>-1?"."+Z.split(".").pop():""),new Blob([pe.file],{type:pe.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(Se,Ke,Ge){try{console.log("\u8FDB\u5EA6",Se,Ke,Ge);var Ye=K.findIndex(function(Qe){return Qe.name===Z});K[Ye].file.percent=Se*100,K[Ye].tempCheckpoint=Ke,H(Object(R.a)(K))}catch(Qe){}},checkpoint:K[K.findIndex(function(ce){return ce.name===Z})].tempCheckpoint,callback:{customValue:{id:Z+""},url:te==null||((he=te.data)===null||he===void 0)?void 0:he.callback_url,host:te==null?void 0:te.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(w.e)(le)}}).then(function(ce){var Se,Ke=K.findIndex(function(qe){return qe.name===Z}),Ge="done";if(((Se=ce.data)===null||Se===void 0?void 0:Se.status)===0){var Ye;pe.response=(Ye=ce.data)===null||Ye===void 0?void 0:Ye.data;var Qe=K.findIndex(function(qe){return qe.name===Z});K[Qe].status="done",K[Qe].file.status="done"}else{var rt;C.b.warn((rt=ce.data)===null||rt===void 0?void 0:rt.message),Ge="error"}K[Ke].status=Ge,K[Ke].file.status=Ge,j.onChange(K),X(ce==null?void 0:ce.data)}).catch(function(ce){K[K.findIndex(function(Se){return Se.name===Z})].status="error",K[K.findIndex(function(Se){return Se.name===Z})].file.status="error",C.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),H(Object(R.a)(K)),j.onChange(K),Q(ce),console.log("err:",ce)})}catch(ce){}}));case 17:case"end":return Y.stop()}},ye)}));return function(pe,le){return q.apply(this,arguments)}}();return Object(g.useEffect)(function(){K.every(function(q){return q==="done"||q==="error"})&&j.onComplete(K)},[K]),Object(g.useEffect)(function(){if(I){var q;(q=W)===null||q===void 0||q.cancel()}},[I]),Object(g.useEffect)(function(){j.uploading&&K.map(function(){var q=Object(f.a)(E.a.mark(function ye(pe){var le,Oe;return E.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(!((!pe.status||pe.status==="error")&&!I)){ie.next=6;break}return pe.status="uploading",pe.file.status="uploading",ie.next=5,ee(pe,{login:_==null||((le=_.userInfo)===null||le===void 0)?void 0:le.login,container_type:j.container_type,container_id:j.container_id,description:j.description});case 5:Oe=ie.sent;case 6:case"end":return ie.stop()}},ye)}));return function(ye){return q.apply(this,arguments)}}())},[j.uploading]),m.a.createElement(v,Object(k.a)({},J,{height:j.height,className:j.className}),m.a.createElement("p",{className:"ant-upload-hint"},j.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};$.b=Object(l.a)(function(x){var y=x.loading,_=x.globalSetting,I=x.user;return{globalSetting:_,loading:y.models.competitions,user:I}})(b)},KmYQ:function(N,$,P){(function(k,u,C){N.exports=$=u(P("Ib8C"),P("OLod"))})(this,function(k){return k.pad.ZeroPadding={pad:function(u,C){var R=C*4;u.clamp(),u.sigBytes+=R-(u.sigBytes%R||R)},unpad:function(u){for(var C=u.words,R=u.sigBytes-1,R=u.sigBytes-1;R>=0;R--)if(C[R>>>2]>>>24-R%4*8&255){u.sigBytes=R+1;break}}},k.pad.ZeroPadding})},L9qf:function(N,$,P){N.exports={flex_box_center:"flex_box_center___3J7Qj",flex_space_between:"flex_space_between___3P3xx",flex_box_vertical_center:"flex_box_vertical_center___3QrMz",flex_box_center_end:"flex_box_center_end___37g4V",flex_box_column:"flex_box_column___2PxMN",wrap:"wrap___1xDeN",in:"in___364z1",btns:"btns___8vHXH",customModal:"customModal___2Vkln"}},LdHM:function(N,$,P){"use strict";P.d($,"b",function(){return c}),P.d($,"a",function(){return v});var k=P("1OyB"),u=P("vuIU"),C=P("Ji7U"),R=P("LK+K"),h=P("q1tI"),s=P("rePB"),S=P("Ff2n"),f=P("ODXe"),a=P("4IlW"),o=P("bX4T"),r=P("YrtM"),E=P("TSYQ"),g=P.n(E),m=P("+nKL"),w=P("8OUc"),p=function(F,J){var ee=F.prefixCls,q=F.id,ye=F.flattenOptions,pe=F.childrenAsData,le=F.values,Oe=F.searchValue,xe=F.multiple,ie=F.defaultActiveFirstOption,se=F.height,re=F.itemHeight,be=F.notFoundContent,Z=F.open,te=F.menuItemSelectedIcon,Ee=F.virtual,ae=F.onSelect,Y=F.onToggleOpen,X=F.onActiveValue,Q=F.onScroll,he=F.onMouseEnter,ce="".concat(ee,"-item"),Se=Object(r.a)(function(){return ye},[Z,ye],function($e,Me){return Me[0]&&$e[1]!==Me[1]}),Ke=h.useRef(null),Ge=function(Me){Me.preventDefault()},Ye=function(Me){Ke.current&&Ke.current.scrollTo({index:Me})},Qe=function(Me){for(var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Te=Se.length,de=0;de1&&arguments[1]!==void 0?arguments[1]:!1;return Object(L.a)(W).map(function(J,ee){if(!h.isValidElement(J)||!J.type)return null;var q=J.type.isSelectOptGroup,ye=J.key,pe=J.props,le=pe.children,Oe=Object(S.a)(pe,["children"]);return F||!q?A(J):Object(i.a)(Object(i.a)({key:"__RC_SELECT_GRP__".concat(ye===null?ee:ye,"__"),label:ye},Oe),{},{options:b(le)})}).filter(function(J){return J})}var x=P("2Qr1"),y=P("qNPg"),_=P("U8pU"),I=P("Kwbf"),j=P("WKfj");function M(W){var F=W.mode,J=W.options,ee=W.children,q=W.backfill,ye=W.allowClear,pe=W.placeholder,le=W.getInputElement,Oe=W.showSearch,xe=W.onSearch,ie=W.defaultOpen,se=W.autoFocus,re=W.labelInValue,be=W.value,Z=W.inputValue,te=W.optionLabelProp,Ee=F==="multiple"||F==="tags",ae=Oe!==void 0?Oe:Ee||F==="combobox",Y=J||b(ee);if(Object(I.a)(F!=="tags"||Y.every(function(ce){return!ce.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),F==="tags"||F==="combobox"){var X=Y.some(function(ce){return ce.options?ce.options.some(function(Se){return typeof("value"in Se?Se.value:Se.key)=="number"}):typeof("value"in ce?ce.value:ce.key)=="number"});Object(I.a)(!X,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(I.a)(F!=="combobox"||!te,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(I.a)(F==="combobox"||!q,"`backfill` only works with `combobox` mode."),Object(I.a)(F==="combobox"||!le,"`getInputElement` only work with `combobox` mode."),Object(I.b)(F!=="combobox"||!le||!ye||!pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xe&&!ae&&F!=="combobox"&&F!=="tags"&&Object(I.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(I.b)(!ie||se,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),be!=null){var Q=Object(j.d)(be);Object(I.a)(!re||Q.every(function(ce){return Object(_.a)(ce)==="object"&&("key"in ce||"value"in ce)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(I.a)(!Ee||Array.isArray(be),"`value` should be array when `mode` is `multiple` or `tags`")}if(ee){var he=null;Object(L.a)(ee).some(function(ce){if(!h.isValidElement(ce)||!ce.type)return!1;var Se=ce.type;if(Se.isSelectOption)return!1;if(Se.isSelectOptGroup){var Ke=Object(L.a)(ce.props.children).every(function(Ge){return!h.isValidElement(Ge)||!ce.type||Ge.type.isSelectOption?!0:(he=Ge.type,!1)});return!Ke}return he=Se,!0}),he&&Object(I.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(he.displayName||he.name||he,"`.")),Object(I.a)(Z===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var G=M,K=Object(y.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:b,flattenOptions:x.d,getLabeledValue:x.e,filterOptions:x.b,isValueDisabled:x.g,findValueOption:x.c,warningProps:G,fillOptionsWithMissingValue:x.a}),H=function(W){Object(C.a)(J,W);var F=Object(R.a)(J);function J(){var ee;return Object(k.a)(this,J),ee=F.apply(this,arguments),ee.selectRef=h.createRef(),ee.focus=function(){ee.selectRef.current.focus()},ee.blur=function(){ee.selectRef.current.blur()},ee}return Object(u.a)(J,[{key:"render",value:function(){return h.createElement(K,Object.assign({ref:this.selectRef},this.props))}}]),J}(h.Component);H.Option=c,H.OptGroup=v;var z=H,B=$.c=z},M8RZ:function(N,$,P){"use strict";P.d($,"a",function(){return a});var k=P("fWQN"),u=P("mtLc"),C=P("yKVA"),R=P("879j"),h=P("q1tI"),s=P.n(h),S=P("i8i4"),f=P.n(S),a=function(o){Object(C.a)(E,o);var r=Object(R.a)(E);function E(g){var m;Object(k.a)(this,E),m=r.call(this,g);var w=window.document;return m.node=w.createElement("div"),w.body.appendChild(m.node),m}return Object(u.a)(E,[{key:"render",value:function(){var m=this.props.children;return Object(S.createPortal)(m,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),E}(s.a.Component)},MFOe:function(N,$,P){(function(k){var u=s(),C=S(),R=f(),h=typeof window!="undefined"?window:k;N.exports={assign:u,create:C,trim:R,bind:a,slice:o,each:r,map:E,pluck:g,isList:m,isFunction:w,isObject:p,Global:h};function s(){return Object.assign?Object.assign:function(n,l,c,T){for(var v=1;v=0;p-=1){var d=f.get(p)||new Set;d.forEach(function(n){var l=n.parent,c=n.node;if(o(c)||!n.parent||w.has(n.parent.key))return;if(o(n.parent.node)){w.add(l.key);return}var T=!0,v=!1;(l.children||[]).filter(function(i){return!o(i.node)}).forEach(function(i){var L=i.key,A=r.has(L);T&&!A&&(T=!1),!v&&(A||E.has(L))&&(v=!0)}),T&&r.add(l.key),v&&E.add(l.key),w.add(l.key)})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(u(E,r))}}function h(S,f,a,o,r){for(var E=new Set(S),g=new Set(f),m=0;m<=o;m+=1){var w=a.get(m)||new Set;w.forEach(function(l){var c=l.key,T=l.node,v=l.children,i=v===void 0?[]:v;!E.has(c)&&!g.has(c)&&!r(T)&&i.filter(function(L){return!r(L.node)}).forEach(function(L){E.delete(L.key)})})}g=new Set;for(var p=new Set,d=o;d>=0;d-=1){var n=a.get(d)||new Set;n.forEach(function(l){var c=l.parent,T=l.node;if(r(T)||!l.parent||p.has(l.parent.key))return;if(r(l.parent.node)){p.add(c.key);return}var v=!0,i=!1;(c.children||[]).filter(function(L){return!r(L.node)}).forEach(function(L){var A=L.key,b=E.has(A);v&&!b&&(v=!1),!i&&(b||g.has(A))&&(i=!0)}),v||E.delete(c.key),i&&g.add(c.key),p.add(c.key)})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(u(g,E))}}function s(S,f,a,o){var r=[],E;o?E=o:E=C;var g=new Set(S.filter(function(d){var n=!!a[d];return n||r.push(d),n})),m=new Map,w=0;Object.keys(a).forEach(function(d){var n=a[d],l=n.level,c=m.get(l);c||(c=new Set,m.set(l,c)),c.add(n),w=Math.max(w,l)}),Object(k.a)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var p;return f===!0?p=R(g,m,w,E):p=h(g,f.halfCheckedKeys,m,w,E),p}},OLod:function(N,$,P){(function(k,u,C){N.exports=$=u(P("Ib8C"),P("K3mO"))})(this,function(k){k.lib.Cipher||function(u){var C=k,R=C.lib,h=R.Base,s=R.WordArray,S=R.BufferedBlockAlgorithm,f=C.enc,a=f.Utf8,o=f.Base64,r=C.algo,E=r.EvpKDF,g=R.Cipher=S.extend({cfg:h.extend(),createEncryptor:function(y,_){return this.create(this._ENC_XFORM_MODE,y,_)},createDecryptor:function(y,_){return this.create(this._DEC_XFORM_MODE,y,_)},init:function(y,_,I){this.cfg=this.cfg.extend(I),this._xformMode=y,this._key=_,this.reset()},reset:function(){S.reset.call(this),this._doReset()},process:function(y){return this._append(y),this._process()},finalize:function(y){y&&this._append(y);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function y(_){return typeof _=="string"?x:L}return function(_){return{encrypt:function(I,j,M){return y(j).encrypt(_,I,j,M)},decrypt:function(I,j,M){return y(j).decrypt(_,I,j,M)}}}}()}),m=R.StreamCipher=g.extend({_doFinalize:function(){var y=this._process(!0);return y},blockSize:1}),w=C.mode={},p=R.BlockCipherMode=h.extend({createEncryptor:function(y,_){return this.Encryptor.create(y,_)},createDecryptor:function(y,_){return this.Decryptor.create(y,_)},init:function(y,_){this._cipher=y,this._iv=_}}),d=w.CBC=function(){var y=p.extend();y.Encryptor=y.extend({processBlock:function(I,j){var M=this._cipher,G=M.blockSize;_.call(this,I,j,G),M.encryptBlock(I,j),this._prevBlock=I.slice(j,j+G)}}),y.Decryptor=y.extend({processBlock:function(I,j){var M=this._cipher,G=M.blockSize,K=I.slice(j,j+G);M.decryptBlock(I,j),_.call(this,I,j,G),this._prevBlock=K}});function _(I,j,M){var G,K=this._iv;K?(G=K,this._iv=u):G=this._prevBlock;for(var H=0;H>>2]&255;y.sigBytes-=_}},c=R.BlockCipher=g.extend({cfg:g.cfg.extend({mode:d,padding:l}),reset:function(){var y;g.reset.call(this);var _=this.cfg,I=_.iv,j=_.mode;this._xformMode==this._ENC_XFORM_MODE?y=j.createEncryptor:(y=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==y?this._mode.init(this,I&&I.words):(this._mode=y.call(j,this,I&&I.words),this._mode.__creator=y)},_doProcessBlock:function(y,_){this._mode.processBlock(y,_)},_doFinalize:function(){var y,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),y=this._process(!0)):(y=this._process(!0),_.unpad(y)),y},blockSize:128/32}),T=R.CipherParams=h.extend({init:function(y){this.mixIn(y)},toString:function(y){return(y||this.formatter).stringify(this)}}),v=C.format={},i=v.OpenSSL={stringify:function(y){var _,I=y.ciphertext,j=y.salt;return j?_=s.create([1398893684,1701076831]).concat(j).concat(I):_=I,_.toString(o)},parse:function(y){var _,I=o.parse(y),j=I.words;return j[0]==1398893684&&j[1]==1701076831&&(_=s.create(j.slice(2,4)),j.splice(0,4),I.sigBytes-=16),T.create({ciphertext:I,salt:_})}},L=R.SerializableCipher=h.extend({cfg:h.extend({format:i}),encrypt:function(y,_,I,j){j=this.cfg.extend(j);var M=y.createEncryptor(I,j),G=M.finalize(_),K=M.cfg;return T.create({ciphertext:G,key:I,iv:K.iv,algorithm:y,mode:K.mode,padding:K.padding,blockSize:y.blockSize,formatter:j.format})},decrypt:function(y,_,I,j){j=this.cfg.extend(j),_=this._parse(_,j.format);var M=y.createDecryptor(I,j).finalize(_.ciphertext);return M},_parse:function(y,_){return typeof y=="string"?_.parse(y,this):y}}),A=C.kdf={},b=A.OpenSSL={execute:function(y,_,I,j){j||(j=s.random(64/8));var M=E.create({keySize:_+I}).compute(y,j),G=s.create(M.words.slice(_),I*4);return M.sigBytes=_*4,T.create({key:M,iv:G,salt:j})}},x=R.PasswordBasedCipher=L.extend({cfg:L.cfg.extend({kdf:b}),encrypt:function(y,_,I,j){j=this.cfg.extend(j);var M=j.kdf.execute(I,y.keySize,y.ivSize);j.iv=M.iv;var G=L.encrypt.call(this,y,_,M.key,j);return G.mixIn(M),G},decrypt:function(y,_,I,j){j=this.cfg.extend(j),_=this._parse(_,j.format);var M=j.kdf.execute(I,y.keySize,y.ivSize,_.salt);j.iv=M.iv;var G=L.decrypt.call(this,y,_,M.key,j);return G}})}()})},OZM5:function(N,$,P){"use strict";P.d($,"b",function(){return o}),P.d($,"a",function(){return r}),P.d($,"k",function(){return E}),P.d($,"h",function(){return g}),P.d($,"i",function(){return m}),P.d($,"g",function(){return w}),P.d($,"c",function(){return p}),P.d($,"d",function(){return d}),P.d($,"j",function(){return c}),P.d($,"e",function(){return T}),P.d($,"f",function(){return v});var k=P("KQm4"),u=P("U8pU"),C=P("Ff2n"),R=P("q1tI"),h=P.n(R),s=P("Kwbf"),S=P("WaYH"),f=.25,a=2;function o(i,L){var A=i.slice(),b=A.indexOf(L);return b>=0&&A.splice(b,1),A}function r(i,L){var A=i.slice();return A.indexOf(L)===-1&&A.push(L),A}function E(i){return i.split("-")}function g(i,L){return"".concat(i,"-").concat(L)}function m(i){return i&&i.type&&i.type.isTreeNode}function w(i,L){var A=[i],b=L[i];function x(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];y.forEach(function(_){var I=_.key,j=_.children;A.push(I),x(j)})}return x(b.children),A}function p(i,L){var A=i.clientY,b=L.selectHandle.getBoundingClientRect(),x=b.top,y=b.bottom,_=b.height,I=Math.max(_*f,a);return A<=x+I?-1:A>=y-I?1:0}function d(i,L){if(!i)return;var A=L.multiple;return A?i.slice():i.length?[i[0]]:i}var n=function(L){return L};function l(i,L){if(!i)return[];var A=L||{},b=A.processProps,x=b===void 0?n:b,y=Array.isArray(i)?i:[i];return y.map(function(_){var I=_.children,j=Object(C.a)(_,["children"]),M=l(I,L);return h.a.createElement(S.a,Object.assign({},x(j)),M)})}function c(i){if(!i)return null;var L;if(Array.isArray(i))L={checkedKeys:i,halfCheckedKeys:void 0};else if(Object(u.a)(i)==="object")L={checkedKeys:i.checked||void 0,halfCheckedKeys:i.halfChecked||void 0};else return Object(s.a)(!1,"`checkedKeys` is not an array or an object"),null;return L}function T(i,L){var A=new Set;function b(x){if(A.has(x))return;var y=L[x];if(!y)return;A.add(x);var _=y.parent,I=y.node;if(I.disabled)return;_&&b(_.key)}return(i||[]).forEach(function(x){b(x)}),Object(k.a)(A)}function v(i){var L={};return Object.keys(i).forEach(function(A){(A.startsWith("data-")||A.startsWith("aria-"))&&(L[A]=i[A])}),L}},Ot1p:function(N,$,P){"use strict";var k=P("2qtc"),u=P("kLXV"),C=P("rAM+"),R=P("miYZ"),h=P("tsqr"),s=P("tJVT"),S=P("jrin"),f=P("q1tI"),a=P.n(f),o=P("VrN/"),r=P.n(o),E=P("bdgK"),g=P("p77/"),m=P("Bd2K"),w=P("ELLl"),p=P("19Vz"),d=P("lZu9"),n=P("+NIl"),l=P("kSUc"),c=P("9Bee"),T=function(Te){var de=Te.value,ge=de===void 0?"":de,we=Te.className,_e=Te.showTextOnly,Ue=Te.showLines,Xe=Te.style,at=Xe===void 0?{}:Xe,ut=Object(f.useMemo)(function(){return""},[ge]);return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},v=P("0Owb"),i=P("dejd"),L=P("C+DQ"),A=[{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 b(Te){var de=Te.onActionCallback,ge=Te.title,we=Te.icon,_e=Te.actionName,Ue=Te.className,Xe=Ue===void 0?"":Ue,at=Te.children;function ut(){de(_e)}return a.a.createElement("a",{title:ge,className:Xe,onClick:ut},a.a.createElement("i",{className:"md-iconfont ".concat(we)}),at)}var x=function(Te){var de=Te.watch,ge=Te.showNullButton,we=Te.onActionCallback,_e=Te.fullScreen,Ue=Te.insertTemp,Xe=Te.hidetoolBar,at=[].concat(A,[{title:"".concat(de?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(de?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return a.a.createElement("ul",{className:"markdown-toolbar-container"},!Xe&&at.map(function(ut,mt){return a.a.createElement("li",{key:mt},ut.actionName?a.a.createElement(b,Object(v.a)({},ut,{onActionCallback:we})):a.a.createElement("span",{className:"v-line"}))}),ge?a.a.createElement("li",null,a.a.createElement(b,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:we},a.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ue&&a.a.createElement("li",null,a.a.createElement(b,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Ue),onActionCallback:we},a.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),a.a.createElement("li",{className:"btn-full-screen"},a.a.createElement(b,{icon:"".concat(_e?"icon-shrink":"icon-enlarge"),title:_e?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:we})))},y=P("M8RZ"),_=P("+L6B"),I=P("2/Rp"),j=P("y8nQ"),M=P("Vl3Y"),G=P("5NDa"),K=P("5rEg"),H={labelCol:{span:4},wrapperCol:{span:20}},z=function(Te){var de=Te.callback,ge=Te.onCancel;function we(_e){de(_e)}return a.a.createElement(M.a,Object(v.a)({},H,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:we}),a.a.createElement(M.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},a.a.createElement(K.a,null)),a.a.createElement(M.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},a.a.createElement(K.a,null)),a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(I.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(I.a,{type:"ghost",onClick:ge},"\u53D6\u6D88")))},B=P("7ahc"),W=P("HmJG"),F=P("BjJ7"),J=M.a.useForm,ee={width:280,marginRight:10},q={labelCol:{span:5},wrapperCol:{span:19}},ye=function(Te){var de=Te.callback,ge=Te.onCancel,we=J(),_e=Object(s.a)(we,1),Ue=_e[0];function Xe(mt){de(mt)}function at(mt,ct){Ue.setFieldsValue({src:"/api/attachments/".concat(mt.id),type:ct.type})}function ut(mt){var ct=mt.target.files[0];le(ct,at)}return a.a.createElement(M.a,Object(v.a)({form:Ue},q,{className:"upload-image-panel",onFinish:Xe}),a.a.createElement(M.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},a.a.createElement("div",{className:"flex-container"},a.a.createElement(M.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},a.a.createElement(K.a,{style:ee})),a.a.createElement(pe,{onFileChange:ut}))),a.a.createElement(M.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},a.a.createElement(K.a,{style:{width:264}})),a.a.createElement(M.a.Item,{style:{textAlign:"right"}},a.a.createElement(I.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(I.a,{type:"ghost",onClick:ge},"\u53D6\u6D88")))};function pe(Te){var de=Te.onFileChange;return a.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",a.a.createElement("input",{type:"file",onChange:de}))}function le(Te,de){if(!Te)throw new String("\u6CA1\u6709\u6587\u4EF6");var ge=new FormData;ge.append("editormd-image-file",Te),ge.append("file_param_name","editormd-image-file"),ge.append("byxhr","true");var we=new window.XMLHttpRequest;we.withCredentials=!0,we.addEventListener("load",function(_e){de(JSON.parse(_e.target.responseText),Te)},!1),we.addEventListener("error",function(_e){console.error(_e)},!1),we.open("POST","".concat(F.a,"/api/attachments.json")),we.send(ge)}var Oe=P("giR+"),xe=P("fyUT"),ie=P("7Kak"),se=P("9yH6"),re=se.a.Group,be={margin:"0 8px"},Z=function(Te){var de=Te.callback,ge=Te.onCancel;function we(_e){de(_e)}return a.a.createElement(M.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:we},a.a.createElement("div",{className:"flex-container"},a.a.createElement("span",{style:be},"\u5355\u5143\u683C\u6570\uFF1A"),a.a.createElement("span",{style:be},"\u884C\u6570"),a.a.createElement(M.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},a.a.createElement(xe.a,null)),a.a.createElement("span",{style:be},"\u5217\u6570"),a.a.createElement(M.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},a.a.createElement(xe.a,null))),a.a.createElement("div",{className:"flex-container",style:{marginTop:12}},a.a.createElement("span",{style:be},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),a.a.createElement(M.a.Item,{name:"align"},a.a.createElement(re,null,a.a.createElement(se.a,{value:"default"},a.a.createElement("i",{className:"fa fa-align-justify"})),a.a.createElement(se.a,{value:"left"},a.a.createElement("i",{className:"fa fa-align-left"})),a.a.createElement(se.a,{value:"center"},a.a.createElement("i",{className:"fa fa-align-center"})),a.a.createElement(se.a,{value:"right"},a.a.createElement("i",{className:"fa fa-align-right"}))))),a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(I.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(I.a,{type:"ghost",onClick:ge},"\u53D6\u6D88")))},te=P("m3rI"),Ee=P("wMS7"),ae=P.n(Ee),Y="link",X="upload-image",Q="code-block",he="add-table",ce="------------",Se={default:ce,left:":".concat(ce),center:":".concat(ce,":"),right:"".concat(ce,":")},Ke=P("9VGf"),Ge,Ye;function Qe(){}var rt=0,qe=1e4,Le="\u2581",Ce=`
**\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 Ve(Te){return/^\d+$/.test(Te)?"".concat(Te,"px"):Te}var tt=navigator.platform.toUpperCase().indexOf("MAC")>=0,He=tt?"Cmd":"Ctrl",$e=(Ge={},Object(S.a)(Ge,He+"-B","bold"),Object(S.a)(Ge,He+"-I","italic"),Ge),Me=(Ye={},Object(S.a)(Ye,Y,"\u6DFB\u52A0\u94FE\u63A5"),Object(S.a)(Ye,Q,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(S.a)(Ye,X,"\u6DFB\u52A0\u56FE\u7247"),Object(S.a)(Ye,he,"\u6DFB\u52A0\u8868\u683C"),Ye),De=$.a=function(Te){var de=Te.defaultValue,ge=de===void 0?"":de,we=Te.onChange,_e=Te.width,Ue=_e===void 0?"100%":_e,Xe=Te.height,at=Xe===void 0?400:Xe,ut=Te.miniToolbar,mt=ut===void 0?!1:ut,ct=Te.isFocus,_t=ct===void 0?!1:ct,At=Te.watch,Et=Te.insertTemp,Qt=Te.mode,qt=Qt===void 0?"markdown":Qt,Jt=Te.id,mr=Jt===void 0?"markdown-editor-id":Jt,Pt=Te.showResizeBar,cr=Pt===void 0?!1:Pt,ir=Te.noStorage,Ht=ir===void 0?!1:ir,$t=Te.showNullButton,Kr=$t===void 0?!1:$t,En=Te.hidetoolBar,Nr=En===void 0?!1:En,Wn=Te.fullScreen,gt=Wn===void 0?!1:Wn,Ct=Te.onBlur,dt=Te.onCMBeforeChange,or=Te.onFullScreen,Mr=Te.className,jt=Mr===void 0?"":Mr,Rt=Te.disablePaste,Ar=Rt===void 0?!1:Rt,dn=Te.placeholder,Sr=dn===void 0?"":dn,st=Te.values,Ot=st===void 0?"":st,jr=Object(f.useState)(null),$r=Object(s.a)(jr,2),ft=$r[0],gn=$r[1],Zr=Object(f.useState)(ge),St=Object(s.a)(Zr,2),kr=St[0],Ur=St[1],Dr=Object(f.useState)(At),sr=Object(s.a)(Dr,2),wn=sr[0],Lt=sr[1],nt=Object(f.useState)(gt),wt=Object(s.a)(nt,2),Mt=wt[0],er=wt[1],dr=Object(f.useState)(""),en=Object(s.a)(dr,2),fr=en[0],tr=en[1],lr=Object(f.useState)(0),Rr=Object(s.a)(lr,2),zt=Rr[0],Ut=Rr[1],rr=Object(f.useState)(at),Cr=Object(s.a)(rr,2),zr=Cr[0],on=Cr[1],Ln=Object(f.useState)(!1),Va=Object(s.a)(Ln,2),ri=Va[0],Pa=Va[1],ea=Object(f.useRef)(),vn=Object(f.useRef)(),Ca=Object(f.useRef)(),Jr=Object(f.useRef)();Object(f.useEffect)(function(){Ur(Ot),ft==null||ft.setValue(Ot)},[Ot]),Object(f.useEffect)(function(){or==null||or(Mt)},[Mt]),Object(f.useEffect)(function(){if(ea.current){var Ft=r.a.fromTextArea(ea.current,{mode:qt,lineNumbers:!mt,lineWrapping:!0,value:ge,autoCloseTags:!0,autoCloseBrackets:!0});_t&&Ft.focus();function Kt(Gt,gr){if(Ar){gr.preventDefault();return}var Pr=gr.clipboardData;if(Pr){var Xr=Pr.types.toString(),Vr=Pr.items,yn=["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(Xr==="Files"||Pr.types.indexOf("Files")>-1){if(gr.preventDefault(),qt=="stex")return;try{var rn,xr=Vr[1];((rn=Vr[0])===null||rn===void 0?void 0:rn.kind)==="file"&&(xr=Vr[0]);var fn=xr.getAsFile(),fa=fn.name.split(".").pop();le(fn,function(hn){if(hn.id){var oa,sa,ba;(fn==null||((oa=fn.type)===null||oa===void 0)?void 0:oa.indexOf("image"))>-1?Ft.replaceSelection(".concat(hn.content_type,")")):(fn==null||((sa=fn.type)===null||sa===void 0)?void 0:sa.indexOf("video"))>-1?Ft.replaceSelection('')):(fn==null||((ba=fn.type)===null||ba===void 0)?void 0:ba.indexOf("pdf"))>-1?Ft.replaceSelection('').concat(fn.name,"")):yn.includes(fa)?Ft.replaceSelection('').concat(fn.name,"")):Ft.replaceSelection("[".concat(fn.name,"](").concat(te.a.API_SERVER,"/api/attachments/").concat(hn.id,"?type=").concat(hn.content_type,")"))}else(hn==null?void 0:hn.status)===401&&(document.location.href="/user/login")})}catch(hn){h.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Ft.on("paste",Kt),gn(Ft),function(){Ft.off("paste",Kt)}}},[]);var ta=Object(f.useCallback)(function(){if(vn.current)try{}catch(Ft){console.log(Ft,"---- to set md editor body height")}},[zr,vn,Mt]);Object(f.useEffect)(function(){function Ft(){var Gt=new E.default(function(gr){var Pr=Object(C.a)(gr),Xr;try{for(Pr.s();!(Xr=Pr.n()).done;){var Vr=Xr.value;(Vr.target.offsetHeight>0||Vr.target.offsetWidth>0)&&(ta(),ft.setSize("100%","100%"),ft.refresh())}}catch(yn){Pr.e(yn)}finally{Pr.f()}});return Gt.observe(ea.current.parentElement),Gt}if(ft){var Kt=Ft();return function(){Kt.unobserve(ea.current.parentElement)}}},[ft,ta]),Object(f.useEffect)(function(){if(ft){for(var Ft=[],Kt=function(){var Vr=gr[Gt];Pr=Object(s.a)(Vr,2);var yn=Pr[0],rn=Pr[1],xr=Object(S.a)({},yn,function(){Nn(rn)});Ft.push(xr),ft.addKeyMap(xr)},Gt=0,gr=Object.entries($e);Gt0){var Ft=new Date().getTime(),Kt=window.sessionStorage.getItem(mr);Ft>=zt+qe&&(!Kt||Kt!==kr)&&(window.sessionStorage.setItem(mr,kr),Pa(!0))}},qe),Object(f.useEffect)(function(){Lt(At)},[ft,At]),Object(f.useEffect)(function(){ft&&(_t&&ft.focus())},[ft,_t]),Object(f.useEffect)(function(){if(wn&&ft){var Ft=ft.getScrollerElement();function Kt(Gt){var gr=Gt.target;if(Jr.current){var Pr=gr.scrollTop/gr.scrollHeight;Jr.current.scrollTop=Jr.current.scrollHeight*Pr}}return Ft.addEventListener("scroll",Kt),function(){Ft.removeEventListener("scroll",Kt)}}},[ft,wn]),Object(f.useEffect)(function(){if(ft&&dt){function Ft(Kt,Gt){dt(Kt,Gt)}return ft.on("beforeChange",Ft),function(){ft.off("beforeChange",Ft)}}},[ft,dt]),Object(f.useEffect)(function(){if(ft&&Ct){function Ft(){Ct(ft.getValue())}return ft.on("blur",Ft),function(){ft.off("blur",Ft)}}},[ft,Ct]),Object(f.useEffect)(function(){if(ft){function Ft(Kt){var Gt=ae.a.sanitize(Kt.getValue());Ur(Gt),Ut(new Date().getTime()),Kt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&we(Gt)}return ft.on("change",Ft),function(){ft.off("change",Ft)}}},[ft,we]),Object(f.useEffect)(function(){ft&&(ge==null?(ft.setValue(""),Ur("")):ge!==ft.getValue()&&(ft.setValue(ge),Ur(ge),ft.setCursor(ft.lineCount(),0)))},[ft,ge]);var Nn=Object(f.useCallback)(function(Ft){var Kt=ft.getCursor(),Gt=ft.getSelection(),gr=Gt.split(`
`);switch(Ft){case"bold":return ft.replaceSelection("**"+Gt+"**"),Gt===""&&ft.setCursor(Kt.line,Kt.ch+2),ft.focus();case"italic":return ft.replaceSelection("*"+Gt+"*"),Gt===""&&ft.setCursor(Kt.line,Kt.ch+1),ft.focus();case"code":return ft.replaceSelection("`"+Gt+"`"),Gt===""&&ft.setCursor(Kt.line,Kt.ch+1),ft.focus();case"inline-latex":return ft.replaceSelection("`$$"+Gt+"$$`"),Gt===""&&ft.setCursor(Kt.line,Kt.ch+3),ft.focus();case"latex":return ft.replaceSelection("```latex\n"+Gt+"\n```"),ft.setCursor(Kt.line+1,Gt.length+1),ft.focus();case"line-break":return ft.replaceSelection(`
`),ft.focus();case"list-ul":return Gt===""?ft.replaceSelection("- "+Gt):ft.replaceSelection(gr.map(function(Pr){return Pr===""?"":"- ".concat(Pr)}).join(`
`)),ft.focus();case"list-ol":return Gt===""?ft.replaceSelection("1. "+Gt):ft.replaceSelection(gr.map(function(Pr,Xr){return Pr===""?"":"".concat(Xr+1,". ").concat(Pr)}).join(`
`)),ft.focus();case"add-null-ch":return Gt===""&&ft.setCursor(Kt.line,Kt.ch+1),ft.replaceSelection(Le),ft.focus();case"inster-template-1":return Gt===""&&ft.setCursor(Kt.line,Kt.ch),ft.replaceSelection(Ce),ft.focus();case"eraser":return ft.setValue(""),ft.focus();case"trigger-watch":return Lt(!wn),ft.focus();case"trigger-full-screen":return er(!Mt),ft.focus();case Y:tr(Y);return;case Q:tr(Q);return;case X:tr(X);return;case he:tr(he);return;default:throw new Error}},[ft,wn,Mt]),sn=Object(f.useCallback)(function(Ft){tr("");switch(fr){case Y:var Kt=Ft.title,Gt=Ft.link;return ft.replaceSelection("[".concat(Kt,"](").concat(Gt,")")),ft.focus();case Q:var gr=Ft.language,Pr=Ft.content;return ft.replaceSelection(["```"+gr,Pr,"```"].join(`
`)),ft.focus();case X:var Xr=Ft.src,Vr=Ft.alt;return ft.replaceSelection(".concat(Xr,' "').concat(Vr,'" )')),ft.focus();case he:for(var yn=Ft.row,rn=Ft.col,xr=Ft.align,fn=`
`,fa=0;fa300&&(yn=300);var rn=at+yn+"px";on(rn)}}return Ft.addEventListener("mousedown",gr),document.addEventListener("mousemove",Xr),document.addEventListener("mouseup",Pr),function(){Ft.removeEventListener("mousedown",gr),document.removeEventListener("mousemove",Xr),document.removeEventListener("mouseup",Pr)}}},[ft,Ca]),Object(f.useEffect)(function(){on(at)},[at]);var ya=Ve(Ue),ia=Ve(zr),Ba={width:ya,height:ia},Oa=Object(f.useMemo)(function(){if(zt){var Ft=new Date(zt),Kt=Ft.getHours(),Gt=Ft.getMinutes(),gr=Ft.getSeconds();return Kt=Kt<10?"0"+Kt:Kt,Gt=Gt<10?"0"+Gt:Gt,gr=gr<10?"0"+gr:gr,"".concat(Kt,":").concat(Gt,":").concat(gr)}return 0},[zt]);function ra(){window.sessionStorage.removeItem(mr),Pa(!1),Ut(0)}function Wa(){Pa(!1),Ut(0),ft.setValue(window.sessionStorage.getItem(mr))}return a.a.createElement(f.Fragment,null,a.a.createElement("div",{className:"markdown-editor-wrapper",ref:vn},a.a.createElement("div",{className:"markdown-editor-container ".concat(jt," ").concat(wn?"on-preview":""," ").concat(mt?"mini":""," ").concat(Mt?"full-screen":""),style:Ba},a.a.createElement(x,{insertTemp:Et,watch:wn,fullScreen:Mt,showNullButton:Kr,onActionCallback:Nn,hidetoolBar:Nr}),a.a.createElement("div",{className:"markdown-editor-body"},a.a.createElement("div",{className:"codemirror-container"},a.a.createElement("textarea",{ref:ea,placeholder:Sr})),wn?a.a.createElement("div",{ref:Jr,className:"preview-container"},qt==="stex"&&a.a.createElement(T,{value:kr}),qt!=="stex"&&a.a.createElement(c.a,{value:kr})):null))),cr?a.a.createElement("a",{ref:Ca,className:"editor-resize"}):null,a.a.createElement(y.a,null,Me[fr]?a.a.createElement(u.a,{centered:!0,title:Me[fr],visible:!0,onCancel:da,footer:null},Mn):null))}},PD8m:function(N,$){N.exports={name:"memoryStorage",read:k,write:u,each:C,remove:R,clearAll:h};var P={};function k(s){return P[s]}function u(s,S){P[s]=S}function C(s){for(var S in P)P.hasOwnProperty(S)&&s(P[S],S)}function R(s){delete P[s]}function h(s){P={}}},PVpz:function(N,$,P){(function(k,u,C){N.exports=$=u(P("Ib8C"),P("ETIr"),P("cv67"),P("K3mO"),P("OLod"))})(this,function(k){return function(){var u=k,C=u.lib,R=C.StreamCipher,h=u.algo,s=[],S=[],f=[],a=h.RabbitLegacy=R.extend({_doReset:function(){var r=this._key.words,E=this.cfg.iv,g=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],m=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var w=0;w<4;w++)o.call(this);for(var w=0;w<8;w++)m[w]^=g[w+4&7];if(E){var p=E.words,d=p[0],n=p[1],l=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,c=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,T=l>>>16|c&4294901760,v=c<<16|l&65535;m[0]^=l,m[1]^=T,m[2]^=c,m[3]^=v,m[4]^=l,m[5]^=T,m[6]^=c,m[7]^=v;for(var w=0;w<4;w++)o.call(this)}},_doProcessBlock:function(r,E){var g=this._X;o.call(this),s[0]=g[0]^g[5]>>>16^g[3]<<16,s[1]=g[2]^g[7]>>>16^g[5]<<16,s[2]=g[4]^g[1]>>>16^g[7]<<16,s[3]=g[6]^g[3]>>>16^g[1]<<16;for(var m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,r[E+m]^=s[m]},blockSize:128/32,ivSize:64/32});function o(){for(var r=this._X,E=this._C,g=0;g<8;g++)S[g]=E[g];E[0]=E[0]+1295307597+this._b|0,E[1]=E[1]+3545052371+(E[0]>>>0>>0?1:0)|0,E[2]=E[2]+886263092+(E[1]>>>0>>0?1:0)|0,E[3]=E[3]+1295307597+(E[2]>>>0>>0?1:0)|0,E[4]=E[4]+3545052371+(E[3]>>>0>>0?1:0)|0,E[5]=E[5]+886263092+(E[4]>>>0>>0?1:0)|0,E[6]=E[6]+1295307597+(E[5]>>>0>>0?1:0)|0,E[7]=E[7]+3545052371+(E[6]>>>0>>0?1:0)|0,this._b=E[7]>>>0>>0?1:0;for(var g=0;g<8;g++){var m=r[g]+E[g],w=m&65535,p=m>>>16,d=((w*w>>>17)+w*p>>>15)+p*p,n=((m&4294901760)*m|0)+((m&65535)*m|0);f[g]=d^n}r[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,r[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,r[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,r[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,r[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,r[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,r[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,r[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}u.RabbitLegacy=R._createHelper(a)}(),k.RabbitLegacy})},RELg:function(N,$,P){var k=P("MFOe"),u=k.Global;N.exports={name:"oldIE-userDataStorage",write:S,read:f,each:a,remove:o,clearAll:r};var C="storejs",R=u.document,h=m(),s=(u.navigator?u.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function S(w,p){if(s)return;var d=g(w);h(function(n){n.setAttribute(d,p),n.save(C)})}function f(w){if(s)return;var p=g(w),d=null;return h(function(n){d=n.getAttribute(p)}),d}function a(w){h(function(p){for(var d=p.XMLDocument.documentElement.attributes,n=d.length-1;n>=0;n--){var l=d[n];w(p.getAttribute(l.name),l.name)}})}function o(w){var p=g(w);h(function(d){d.removeAttribute(p),d.save(C)})}function r(){h(function(w){var p=w.XMLDocument.documentElement.attributes;w.load(C);for(var d=p.length-1;d>=0;d--)w.removeAttribute(p[d].name);w.save(C)})}var E=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function g(w){return w.replace(/^\d/,"___$&").replace(E,"___")}function m(){if(!R||!R.documentElement||!R.documentElement.addBehavior)return null;var w="script",p,d,n;try{d=new ActiveXObject("htmlfile"),d.open(),d.write("<"+w+">document.w=window"+w+'>'),d.close(),p=d.w.frames[0].document,n=p.createElement("div")}catch(l){n=R.createElement("div"),p=R.body}return function(l){var c=[].slice.call(arguments,0);c.unshift(n),p.appendChild(n),n.addBehavior("#default#userData"),n.load(C),l.apply(this,c),p.removeChild(n);return}}},S6kV:function(N,$,P){(function(k,u,C){N.exports=$=u(P("Ib8C"),P("OLod"))})(this,function(k){return k.mode.OFB=function(){var u=k.lib.BlockCipherMode.extend(),C=u.Encryptor=u.extend({processBlock:function(R,h){var s=this._cipher,S=s.blockSize,f=this._iv,a=this._keystream;f&&(a=this._keystream=f.slice(0),this._iv=void 0),s.encryptBlock(a,0);for(var o=0;o|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function B(ae){for(var Y=0,X=!1,Q=!1,he=0,ce=ae.length;he122||(de<65||Te>90||Ve.push([Math.max(65,Te)|32,Math.min(de,90)|32]),de<97||Te>122||Ve.push([Math.max(97,Te)&~32,Math.min(de,122)&~32]))}}Ve.sort(function(Ue,Xe){return Ue[0]-Xe[0]||Xe[1]-Ue[1]});for(var ge=[],we=[],$e=0;$e_e[0]&&(_e[1]+1>_e[0]&&He.push("-"),He.push(Ye(_e[1])))}return He.push("]"),He.join("")}function rt(Le){for(var Ce=Le.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")),Ve=Ce.length,tt=[],He=0,$e=0;He=2&&Te==="["?Ce[He]=Qe(Me):Te!=="\\"&&(Ce[He]=Me.replace(/[a-zA-Z]/g,function(we){var _e=we.charCodeAt(0);return"["+String.fromCharCode(_e&~32,_e|32)+"]"}))}return Ce.join("")}for(var qe=[],he=0,ce=ae.length;he=0;)X[qe.charAt(Le)]=rt;var Ce=rt[1],Ve=""+Ce;Ge.hasOwnProperty(Ve)||(Ke.push(Ce),Ge[Ve]=null)}Ke.push(/[\0-\uffff]/),Q=B(Ke)})();var he=Y.length,ce=function(Se){for(var Ke=Se.sourceCode,Ge=Se.basePos,Ye=Se.sourceNode,Qe=[Ge,_],rt=0,qe=Ke.match(Q)||[],Le={},Ce=0,Ve=qe.length;Ce=5&&He.substring(0,5)==="lang-",Me&&!($e&&typeof $e[1]=="string")&&(Me=!1,He=M),Me||(Le[tt]=He)}var de=rt;if(rt+=tt.length,!Me)Qe.push(Ge+de,He);else{var ge=$e[1],we=tt.indexOf(ge),_e=we+ge.length;$e[2]&&(_e=tt.length-$e[2].length,we=_e-ge.length);var Ue=He.substring(5);F(Ye,Ge+de,tt.substring(0,we),ce,Qe),F(Ye,Ge+de+we,ge,se(Ue,ge),Qe),F(Ye,Ge+de+_e,tt.substring(_e),ce,Qe)}}Se.decorations=Qe};return ce}function ye(ae){var Y=[],X=[];ae.tripleQuotedStrings?Y.push([i,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ae.multiLineStrings?Y.push([i,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Y.push([i,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ae.verbatimStrings&&X.push([i,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Q=ae.hashComments;Q&&(ae.cStyleComments?(Q>1?Y.push([A,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Y.push([A,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),X.push([i,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Y.push([A,/^#[^\r\n]*/,null,"#"])),ae.cStyleComments&&(X.push([A,/^\/\/[^\r\n]*/,null]),X.push([A,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var he=ae.regexLiterals;if(he){var ce=he>1?"":`
\r`,Se=ce?".":"[\\S\\s]",Ke="/(?=[^/*"+ce+"])(?:[^/\\x5B\\x5C"+ce+"]|\\x5C"+Se+"|\\x5B(?:[^\\x5C\\x5D"+ce+"]|\\x5C"+Se+")*(?:\\x5D|$))+/";X.push(["lang-regex",RegExp("^"+z+"("+Ke+")")])}var Ge=ae.types;Ge&&X.push([b,Ge]);var Ye=(""+ae.keywords).replace(/^ | $/g,"");Ye.length&&X.push([L,new RegExp("^(?:"+Ye.replace(/[\s,]+/g,"|")+")\\b"),null]),Y.push([_,/^\s+/,null,` \r
\xA0`]);var Qe="^.[^\\s\\w.$@'\"`/\\\\]*";return ae.regexLiterals&&(Qe+="(?!s*/)"),X.push([x,/^@[a-z_$][a-z_$@0-9]*/i,null],[b,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_,/^[a-z_$][a-z_$@0-9]*/i,null],[x,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_,/^\\[\s\S]?/,null],[y,new RegExp(Qe),null]),q(Y,X)}var pe=ye({keywords:T,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function le(ae,Y,X){for(var Q=/(?:^|\s)nocode(?:\s|$)/,he=/\r\n?|\n/,ce=ae.ownerDocument,Se=ce.createElement("li");ae.firstChild;)Se.appendChild(ae.firstChild);var Ke=[Se];function Ge(Ce){var Ve=Ce.nodeType;if(Ve==1&&!Q.test(Ce.className))if(Ce.nodeName==="br")Ye(Ce),Ce.parentNode&&Ce.parentNode.removeChild(Ce);else for(var tt=Ce.firstChild;tt;tt=tt.nextSibling)Ge(tt);else if((Ve==3||Ve==4)&&X){var He=Ce.nodeValue,$e=He.match(he);if($e){var Me=He.substring(0,$e.index);Ce.nodeValue=Me;var De=He.substring($e.index+$e[0].length);if(De){var Te=Ce.parentNode;Te.insertBefore(ce.createTextNode(De),Ce.nextSibling)}Ye(Ce),Me||Ce.parentNode.removeChild(Ce)}}}function Ye(Ce){for(;!Ce.nextSibling;)if(Ce=Ce.parentNode,!Ce)return;function Ve($e,Me){var De=Me?$e.cloneNode(!1):$e,Te=$e.parentNode;if(Te){var de=Ve(Te,1),ge=$e.nextSibling;de.appendChild(De);for(var we=ge;we;we=ge)ge=we.nextSibling,de.appendChild(we)}return De}for(var tt=Ve(Ce.nextSibling,0),He;(He=tt.parentNode)&&He.nodeType===1;)tt=He;Ke.push(tt)}for(var Qe=0;Qe=Te&&(Ge+=2),ce>=de&&(rt+=2)}}finally{He&&(He.style.display=$e)}}var xe={};function ie(ae,Y){for(var X=Y.length;--X>=0;){var Q=Y[X];xe.hasOwnProperty(Q)?f.console&&console.warn("cannot override language handler %s",Q):xe[Q]=ae}}function se(ae,Y){return ae&&xe.hasOwnProperty(ae)||(ae=/^\s*]*(?:>|$)/],[A,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[y,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^