(window.webpackJsonp=window.webpackJsonp||[]).push([[211,5,6,7,8,13],{"+NIl":function(F,$,j){(function(N){N(j("VrN/"))})(function(N){"use strict";N.defineMode("stex",function(v,O){"use strict";function M(i,o){i.cmdState.push(o)}function y(i){return i.cmdState.length>0?i.cmdState[i.cmdState.length-1]:null}function m(i){var o=i.cmdState.pop();o&&o.closeBracket()}function S(i){for(var o=i.cmdState,s=o.length-1;s>=0;s--){var u=o[s];if(u.name=="DEFAULT")continue;return u}return{styleIdentifier:function(){return null}}}function b(i,o,s){return function(){this.name=i,this.bracketNo=0,this.style=o,this.styles=s,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var p={};p.importmodule=b("importmodule","tag",["string","builtin"]),p.documentclass=b("documentclass","tag",["","atom"]),p.usepackage=b("usepackage","tag",["atom"]),p.begin=b("begin","tag",["atom"]),p.end=b("end","tag",["atom"]),p.label=b("label","tag",["atom"]),p.ref=b("ref","tag",["atom"]),p.eqref=b("eqref","tag",["atom"]),p.cite=b("cite","tag",["atom"]),p.bibitem=b("bibitem","tag",["atom"]),p.Bibitem=b("Bibitem","tag",["atom"]),p.RBibitem=b("RBibitem","tag",["atom"]),p.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function d(i,o){i.f=o}function t(i,o){var s;if(i.match(/^\\[a-zA-Z@]+/)){var u=i.current().slice(1);return s=p.hasOwnProperty(u)?p[u]:p.DEFAULT,s=new s,M(o,s),d(o,r),s.style}if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/\\]/))return"tag";if(i.match("\\["))return d(o,function(c,f){return l(c,f,"\\]")}),"keyword";if(i.match("\\("))return d(o,function(c,f){return l(c,f,"\\)")}),"keyword";if(i.match("$$"))return d(o,function(c,f){return l(c,f,"$$")}),"keyword";if(i.match("$"))return d(o,function(c,f){return l(c,f,"$")}),"keyword";var a=i.next();if(a=="%")return i.skipToEnd(),"comment";if(a=="}"||a=="]"){if(s=y(o),s)s.closeBracket(a),d(o,r);else return"error";return"bracket"}else return a=="{"||a=="["?(s=p.DEFAULT,s=new s,M(o,s),"bracket"):/\d/.test(a)?(i.eatWhile(/[\w.%]/),"atom"):(i.eatWhile(/[\w\-_]/),s=S(o),s.name=="begin"&&(s.argument=i.current()),s.styleIdentifier())}function l(i,o,s){if(i.eatSpace())return null;if(s&&i.match(s))return d(o,t),"keyword";if(i.match(/^\\[a-zA-Z@]+/))return"tag";if(i.match(/^[a-zA-Z]+/))return"variable-2";if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/]/))return"tag";if(i.match(/^[\^_&]/))return"tag";if(i.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(i.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var u=i.next();return u=="{"||u=="}"||u=="["||u=="]"||u=="("||u==")"?"bracket":u=="%"?(i.skipToEnd(),"comment"):"error"}function r(i,o){var s=i.peek(),u;return s=="{"||s=="["?(u=y(o),u.openBracket(s),i.eat(s),d(o,t),"bracket"):/[ \t\r]/.test(s)?(i.eat(s),null):(d(o,t),m(o),t(i,o))}return{startState:function(){var i=O.inMathMode?function(o,s){return l(o,s)}:t;return{cmdState:[],f:i}},copyState:function(i){return{cmdState:i.cmdState.slice(),f:i.f}},token:function(i,o){return o.f(i,o)},blankLine:function(i){i.f=t,i.cmdState.length=0},lineComment:"%"}}),N.defineMIME("text/x-stex","stex"),N.defineMIME("text/x-latex","stex")})},"+ua5":function(F,$,j){},"19Vz":function(F,$,j){(function(N){N(j("VrN/"))})(function(N){N.defineOption("placeholder","",function(b,p,d){var t=d&&d!=N.Init;if(p&&!t)b.on("blur",y),b.on("change",m),b.on("swapDoc",m),N.on(b.getInputField(),"compositionupdate",b.state.placeholderCompose=function(){M(b)}),m(b);else if(!p&&t){b.off("blur",y),b.off("change",m),b.off("swapDoc",m),N.off(b.getInputField(),"compositionupdate",b.state.placeholderCompose),v(b);var l=b.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}p&&!b.hasFocus()&&y(b)});function v(b){b.state.placeholder&&(b.state.placeholder.parentNode.removeChild(b.state.placeholder),b.state.placeholder=null)}function O(b){v(b);var p=b.state.placeholder=document.createElement("pre");p.style.cssText="height: 0; overflow: visible",p.style.direction=b.getOption("direction"),p.className="CodeMirror-placeholder CodeMirror-line-like";var d=b.getOption("placeholder");typeof d=="string"&&(d=document.createTextNode(d)),p.appendChild(d),b.display.lineSpace.insertBefore(p,b.display.lineSpace.firstChild)}function M(b){setTimeout(function(){var p=!1,d=b.getInputField();d.nodeName=="TEXTAREA"?p=!d.value:b.lineCount()==1&&(p=!/[^\u200b]/.test(d.querySelector(".CodeMirror-line").textContent)),p?O(b):v(b)},20)}function y(b){S(b)&&O(b)}function m(b){var p=b.getWrapperElement(),d=S(b);p.className=p.className.replace(" CodeMirror-empty","")+(d?" CodeMirror-empty":""),d?O(b):v(b)}function S(b){return b.lineCount()===1&&b.getLine(0)===""}})},"1T2W":function(F,$,j){F.exports={"code-panel-container":"code-panel-container___1BMQ9","action-oj-bar":"action-oj-bar___1PRBr",active:"active___2710v"}},"1eCo":function(F,$,j){(function(N){N(j("VrN/"))})(function(N){"use strict";var v={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},O={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};N.defineMode("xml",function(M,y){var m=M.indentUnit,S={},b=y.htmlMode?v:O;for(var p in b)S[p]=b[p];for(var p in y)S[p]=y[p];var d,t;function l(T,k){function L(K){return k.tokenize=K,K(T,k)}var A=T.next();if(A=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?L(o("atom","]]>")):null:T.match("--")?L(o("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),L(s(1))):null:T.eat("?")?(T.eatWhile(/[\w\._\-]/),k.tokenize=o("meta","?>"),"meta"):(d=T.eat("/")?"closeTag":"openTag",k.tokenize=r,"tag bracket");if(A=="&"){var G;return T.eat("#")?T.eat("x")?G=T.eatWhile(/[a-fA-F\d]/)&&T.eat(";"):G=T.eatWhile(/[\d]/)&&T.eat(";"):G=T.eatWhile(/[\w\.\-:]/)&&T.eat(";"),G?"atom":"error"}else return T.eatWhile(/[^&<]/),null}l.isInText=!0;function r(T,k){var L=T.next();if(L==">"||L=="/"&&T.eat(">"))return k.tokenize=l,d=L==">"?"endTag":"selfcloseTag","tag bracket";if(L=="=")return d="equals",null;if(L=="<"){k.tokenize=l,k.state=f,k.tagName=k.tagStart=null;var A=k.tokenize(T,k);return A?A+" tag error":"tag error"}else return/[\'\"]/.test(L)?(k.tokenize=i(L),k.stringStartCol=T.column(),k.tokenize(T,k)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function i(T){var k=function(L,A){for(;!L.eol();)if(L.next()==T){A.tokenize=r;break}return"string"};return k.isInAttribute=!0,k}function o(T,k){return function(L,A){for(;!L.eol();){if(L.match(k)){A.tokenize=l;break}L.next()}return T}}function s(T){return function(k,L){for(var A;(A=k.next())!=null;){if(A=="<")return L.tokenize=s(T+1),L.tokenize(k,L);if(A==">")if(T==1){L.tokenize=l;break}else return L.tokenize=s(T-1),L.tokenize(k,L)}return"meta"}}function u(T,k,L){this.prev=T.context,this.tagName=k,this.indent=T.indented,this.startOfLine=L,(S.doNotIndent.hasOwnProperty(k)||T.context&&T.context.noIndent)&&(this.noIndent=!0)}function a(T){T.context&&(T.context=T.context.prev)}function c(T,k){for(var L;;){if(!T.context)return;if(L=T.context.tagName,!S.contextGrabbers.hasOwnProperty(L)||!S.contextGrabbers[L].hasOwnProperty(k))return;a(T)}}function f(T,k,L){return T=="openTag"?(L.tagStart=k.column(),w):T=="closeTag"?_:f}function w(T,k,L){return T=="word"?(L.tagName=k.current(),t="tag",C):S.allowMissingTagName&&T=="endTag"?(t="tag bracket",C(T,k,L)):(t="error",w)}function _(T,k,L){if(T=="word"){var A=k.current();return L.context&&L.context.tagName!=A&&S.implicitlyClosed.hasOwnProperty(L.context.tagName)&&a(L),L.context&&L.context.tagName==A||S.matchClosing===!1?(t="tag",h):(t="tag error",R)}else return S.allowMissingTagName&&T=="endTag"?(t="tag bracket",h(T,k,L)):(t="error",R)}function h(T,k,L){return T!="endTag"?(t="error",h):(a(L),f)}function R(T,k,L){return t="error",h(T,k,L)}function C(T,k,L){if(T=="word")return t="attribute",g;if(T=="endTag"||T=="selfcloseTag"){var A=L.tagName,G=L.tagStart;return L.tagName=L.tagStart=null,T=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(A)?c(L,A):(c(L,A),L.context=new u(L,A,G==L.indented)),f}return t="error",C}function g(T,k,L){return T=="equals"?x:(S.allowMissing||(t="error"),C(T,k,L))}function x(T,k,L){return T=="string"?E:T=="word"&&S.allowUnquoted?(t="string",C):(t="error",C(T,k,L))}function E(T,k,L){return T=="string"?E:C(T,k,L)}return{startState:function(T){var k={tokenize:l,state:f,indented:T||0,tagName:null,tagStart:null,context:null};return T!=null&&(k.baseIndent=T),k},token:function(T,k){if(!k.tagName&&T.sol()&&(k.indented=T.indentation()),T.eatSpace())return null;d=null;var L=k.tokenize(T,k);return(L||d)&&L!="comment"&&(t=null,k.state=k.state(d||L,T,k),t&&(L=t=="error"?L+" error":t)),L},indent:function(T,k,L){var A=T.context;if(T.tokenize.isInAttribute)return T.tagStart==T.indented?T.stringStartCol+1:T.indented+m;if(A&&A.noIndent)return N.Pass;if(T.tokenize!=r&&T.tokenize!=l)return L?L.match(/^(\s*)/)[0].length:0;if(T.tagName)return S.multilineTagIndentPastTag!==!1?T.tagStart+T.tagName.length+2:T.tagStart+m*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/$/,blockCommentStart:"",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(T){T.state==x&&(T.state=C)},xmlCurrentTag:function(T){return T.tagName?{name:T.tagName,close:T.type=="closeTag"}:null},xmlCurrentContext:function(T){for(var k=[],L=T.context;L;L=L.prev)L.tagName&&k.push(L.tagName);return k.reverse()}}}),N.defineMIME("text/xml","xml"),N.defineMIME("application/xml","xml"),N.mimeModes.hasOwnProperty("text/html")||N.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1uat":function(F,$,j){(function(N,v,O){F.exports=$=v(j("Ib8C"),j("MlIO"))})(this,function(N){return function(){var v=N,O=v.lib,M=O.Hasher,y=v.x64,m=y.Word,S=y.WordArray,b=v.algo;function p(){return m.create.apply(m,arguments)}var d=[p(1116352408,3609767458),p(1899447441,602891725),p(3049323471,3964484399),p(3921009573,2173295548),p(961987163,4081628472),p(1508970993,3053834265),p(2453635748,2937671579),p(2870763221,3664609560),p(3624381080,2734883394),p(310598401,1164996542),p(607225278,1323610764),p(1426881987,3590304994),p(1925078388,4068182383),p(2162078206,991336113),p(2614888103,633803317),p(3248222580,3479774868),p(3835390401,2666613458),p(4022224774,944711139),p(264347078,2341262773),p(604807628,2007800933),p(770255983,1495990901),p(1249150122,1856431235),p(1555081692,3175218132),p(1996064986,2198950837),p(2554220882,3999719339),p(2821834349,766784016),p(2952996808,2566594879),p(3210313671,3203337956),p(3336571891,1034457026),p(3584528711,2466948901),p(113926993,3758326383),p(338241895,168717936),p(666307205,1188179964),p(773529912,1546045734),p(1294757372,1522805485),p(1396182291,2643833823),p(1695183700,2343527390),p(1986661051,1014477480),p(2177026350,1206759142),p(2456956037,344077627),p(2730485921,1290863460),p(2820302411,3158454273),p(3259730800,3505952657),p(3345764771,106217008),p(3516065817,3606008344),p(3600352804,1432725776),p(4094571909,1467031594),p(275423344,851169720),p(430227734,3100823752),p(506948616,1363258195),p(659060556,3750685593),p(883997877,3785050280),p(958139571,3318307427),p(1322822218,3812723403),p(1537002063,2003034995),p(1747873779,3602036899),p(1955562222,1575990012),p(2024104815,1125592928),p(2227730452,2716904306),p(2361852424,442776044),p(2428436474,593698344),p(2756734187,3733110249),p(3204031479,2999351573),p(3329325298,3815920427),p(3391569614,3928383900),p(3515267271,566280711),p(3940187606,3454069534),p(4118630271,4000239992),p(116418474,1914138554),p(174292421,2731055270),p(289380356,3203993006),p(460393269,320620315),p(685471733,587496836),p(852142971,1086792851),p(1017036298,365543100),p(1126000580,2618297676),p(1288033470,3409855158),p(1501505948,4234509866),p(1607167915,987167468),p(1816402316,1246189591)],t=[];(function(){for(var r=0;r<80;r++)t[r]=p()})();var l=b.SHA512=M.extend({_doReset:function(){this._hash=new S.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(r,i){for(var o=this._hash.words,s=o[0],u=o[1],a=o[2],c=o[3],f=o[4],w=o[5],_=o[6],h=o[7],R=s.high,C=s.low,g=u.high,x=u.low,E=a.high,T=a.low,k=c.high,L=c.low,A=f.high,G=f.low,K=w.high,W=w.low,z=_.high,U=_.low,P=h.high,H=h.low,V=R,q=C,Z=g,ce=x,he=E,ae=T,xe=k,ge=L,oe=A,se=G,te=K,be=W,ee=z,ie=U,Ee=P,ne=H,J=0;J<80;J++){var X,Q,me=t[J];if(J<16)Q=me.high=r[i+J*2]|0,X=me.low=r[i+J*2+1]|0;else{var fe=t[J-15],Te=fe.high,ze=fe.low,Je=(Te>>>1|ze<<31)^(Te>>>8|ze<<24)^Te>>>7,qe=(ze>>>1|Te<<31)^(ze>>>8|Te<<24)^(ze>>>7|Te<<25),Xe=t[J-2],et=Xe.high,rt=Xe.low,Le=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,Oe=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),Ve=t[J-7],Ze=Ve.high,Ne=Ve.low,Ge=t[J-16],De=Ge.high,we=Ge.low;X=qe+Ne,Q=Je+Ze+(X>>>0>>0?1:0),X=X+Oe,Q=Q+Le+(X>>>0>>0?1:0),X=X+we,Q=Q+De+(X>>>0>>0?1:0),me.high=Q,me.low=X}var Ae=oe&te^~oe&ee,de=se&be^~se&ie,_e=V&Z^V&he^Z&he,Se=q&ce^q&ae^ce&ae,Ie=(V>>>28|q<<4)^(V<<30|q>>>2)^(V<<25|q>>>7),ke=(q>>>28|V<<4)^(q<<30|V>>>2)^(q<<25|V>>>7),Ye=(oe>>>14|se<<18)^(oe>>>18|se<<14)^(oe<<23|se>>>9),nt=(se>>>14|oe<<18)^(se>>>18|oe<<14)^(se<<23|oe>>>9),lt=d[J],at=lt.high,ot=lt.low,Ct=ne+nt,bt=Ee+Ye+(Ct>>>0>>0?1:0),Ct=Ct+de,bt=bt+Ae+(Ct>>>0>>0?1:0),Ct=Ct+ot,bt=bt+at+(Ct>>>0>>0?1:0),Ct=Ct+X,bt=bt+Q+(Ct>>>0>>0?1:0),ft=ke+Se,jt=Ie+_e+(ft>>>0>>0?1:0);Ee=ee,ne=ie,ee=te,ie=be,te=oe,be=se,se=ge+Ct|0,oe=xe+bt+(se>>>0>>0?1:0)|0,xe=he,ge=ae,he=Z,ae=ce,Z=V,ce=q,q=Ct+ft|0,V=bt+jt+(q>>>0>>0?1:0)|0}C=s.low=C+q,s.high=R+V+(C>>>0>>0?1:0),x=u.low=x+ce,u.high=g+Z+(x>>>0>>0?1:0),T=a.low=T+ae,a.high=E+he+(T>>>0>>0?1:0),L=c.low=L+ge,c.high=k+xe+(L>>>0>>0?1:0),G=f.low=G+se,f.high=A+oe+(G>>>0>>0?1:0),W=w.low=W+be,w.high=K+te+(W>>>0>>0?1:0),U=_.low=U+ie,_.high=z+ee+(U>>>0>>0?1:0),H=h.low=H+ne,h.high=P+Ee+(H>>>0>>0?1:0)},_doFinalize:function(){var r=this._data,i=r.words,o=this._nDataBytes*8,s=r.sigBytes*8;i[s>>>5]|=128<<24-s%32,i[(s+128>>>10<<5)+30]=Math.floor(o/4294967296),i[(s+128>>>10<<5)+31]=o,r.sigBytes=i.length*4,this._process();var u=this._hash.toX32();return u},clone:function(){var r=M.clone.call(this);return r._hash=this._hash.clone(),r},blockSize:1024/32});v.SHA512=M._createHelper(l),v.HmacSHA512=M._createHmacHelper(l)}(),N.SHA512})},"3y9D":function(F,$,j){(function(N,v){F.exports=$=v(j("Ib8C"))})(this,function(N){return function(){var v=N,O=v.lib,M=O.WordArray,y=O.Hasher,m=v.algo,S=[],b=m.SHA1=y.extend({_doReset:function(){this._hash=new M.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(p,d){for(var t=this._hash.words,l=t[0],r=t[1],i=t[2],o=t[3],s=t[4],u=0;u<80;u++){if(u<16)S[u]=p[d+u]|0;else{var a=S[u-3]^S[u-8]^S[u-14]^S[u-16];S[u]=a<<1|a>>>31}var c=(l<<5|l>>>27)+s+S[u];u<20?c+=(r&i|~r&o)+1518500249:u<40?c+=(r^i^o)+1859775393:u<60?c+=(r&i|r&o|i&o)-1894007588:c+=(r^i^o)-899497514,s=o,o=i,i=r<<30|r>>>2,r=l,l=c}t[0]=t[0]+l|0,t[1]=t[1]+r|0,t[2]=t[2]+i|0,t[3]=t[3]+o|0,t[4]=t[4]+s|0},_doFinalize:function(){var p=this._data,d=p.words,t=this._nDataBytes*8,l=p.sigBytes*8;return d[l>>>5]|=128<<24-l%32,d[(l+64>>>9<<4)+14]=Math.floor(t/4294967296),d[(l+64>>>9<<4)+15]=t,p.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var p=y.clone.call(this);return p._hash=this._hash.clone(),p}});v.SHA1=y._createHelper(b),v.HmacSHA1=y._createHmacHelper(b)}(),N.SHA1})},4:function(F,$){},"5VLF":function(F,$,j){"use strict";var N,v;function O(M,y,m){var S=function(b,p){return M.js_beautify(b,p)};return S.js=M.js_beautify,S.css=y.css_beautify,S.html=m.html_beautify,S.js_beautify=M.js_beautify,S.css_beautify=y.css_beautify,S.html_beautify=m.html_beautify,S}!(N=[j("6UM0"),j("TXwP"),j("psGv")],v=function(M,y,m){return O(M,y,m)}.apply($,N),v!==void 0&&(F.exports=v))},"5hvy":function(F,$,j){(function(N,v,O){F.exports=$=v(j("Ib8C"),j("MlIO"))})(this,function(N){return function(v){var O=N,M=O.lib,y=M.WordArray,m=M.Hasher,S=O.x64,b=S.Word,p=O.algo,d=[],t=[],l=[];(function(){for(var o=1,s=0,u=0;u<24;u++){d[o+5*s]=(u+1)*(u+2)/2%64;var a=s%5,c=(2*o+3*s)%5;o=a,s=c}for(var o=0;o<5;o++)for(var s=0;s<5;s++)t[o+5*s]=s+(2*o+3*s)%5*5;for(var f=1,w=0;w<24;w++){for(var _=0,h=0,R=0;R<7;R++){if(f&1){var C=(1<>>24)&16711935|(f<<24|f>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var _=u[c];_.high^=w,_.low^=f}for(var h=0;h<24;h++){for(var R=0;R<5;R++){for(var C=0,g=0,x=0;x<5;x++){var _=u[R+5*x];C^=_.high,g^=_.low}var E=r[R];E.high=C,E.low=g}for(var R=0;R<5;R++)for(var T=r[(R+4)%5],k=r[(R+1)%5],L=k.high,A=k.low,C=T.high^(L<<1|A>>>31),g=T.low^(A<<1|L>>>31),x=0;x<5;x++){var _=u[R+5*x];_.high^=C,_.low^=g}for(var G=1;G<25;G++){var C,g,_=u[G],K=_.high,W=_.low,z=d[G];z<32?(C=K<>>32-z,g=W<>>32-z):(C=W<>>64-z,g=K<>>64-z);var U=r[t[G]];U.high=C,U.low=g}var P=r[0],H=u[0];P.high=H.high,P.low=H.low;for(var R=0;R<5;R++)for(var x=0;x<5;x++){var G=R+5*x,_=u[G],V=r[G],q=r[(R+1)%5+5*x],Z=r[(R+2)%5+5*x];_.high=V.high^~q.high&Z.high,_.low=V.low^~q.low&Z.low}var _=u[0],ce=l[h];_.high^=ce.high,_.low^=ce.low}},_doFinalize:function(){var o=this._data,s=o.words,u=this._nDataBytes*8,a=o.sigBytes*8,c=this.blockSize*32;s[a>>>5]|=1<<24-a%32,s[(v.ceil((a+1)/c)*c>>>5)-1]|=128,o.sigBytes=s.length*4,this._process();for(var f=this._state,w=this.cfg.outputLength/8,_=w/8,h=[],R=0;R<_;R++){var C=f[R],g=C.high,x=C.low;g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,h.push(x),h.push(g)}return new y.init(h,w)},clone:function(){for(var o=m.clone.call(this),s=o._state=this._state.slice(0),u=0;u<25;u++)s[u]=s[u].clone();return o}});O.SHA3=m._createHelper(i),O.HmacSHA3=m._createHmacHelper(i)}(Math),N.SHA3})},"5nXd":function(F,$,j){var N=j("MFOe"),v=N.slice,O=N.pluck,M=N.each,y=N.bind,m=N.create,S=N.isList,b=N.isFunction,p=N.isObject;F.exports={createStore:l};var d={version:"2.0.12",enabled:!1,get:function(r,i){var o=this.storage.read(this._namespacePrefix+r);return this._deserialize(o,i)},set:function(r,i){return i===void 0?this.remove(r):(this.storage.write(this._namespacePrefix+r,this._serialize(i)),i)},remove:function(r){this.storage.remove(this._namespacePrefix+r)},each:function(r){var i=this;this.storage.each(function(o,s){r.call(i,i._deserialize(o),(s||"").replace(i._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(r){return this._namespacePrefix=="__storejs_"+r+"_"},createStore:function(){return l.apply(this,arguments)},addPlugin:function(r){this._addPlugin(r)},namespace:function(r){return l(this.storage,this.plugins,r)}};function t(){var r=typeof console=="undefined"?null:console;if(!r)return;var i=r.warn?r.warn:r.log;i.apply(r,arguments)}function l(r,i,o){o||(o=""),r&&!S(r)&&(r=[r]),i&&!S(i)&&(i=[i]);var s=o?"__storejs_"+o+"_":"",u=o?new RegExp("^"+s):null,a=/^[a-zA-Z0-9_\-]*$/;if(!a.test(o))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var c={_namespacePrefix:s,_namespaceRegexp:u,_testStorage:function(w){try{var _="__storejs__test__";w.write(_,_);var h=w.read(_)===_;return w.remove(_),h}catch(R){return!1}},_assignPluginFnProp:function(w,_){var h=this[_];this[_]=function(){var C=v(arguments,0),g=this;function x(){return h?(M(arguments,function(T,k){C[k]=T}),h.apply(g,C)):void 0}var E=[x].concat(C);return w.apply(g,E)}},_serialize:function(w){return JSON.stringify(w)},_deserialize:function(w,_){if(!w)return _;var h="";try{h=JSON.parse(w)}catch(R){h=w}return h!==void 0?h:_},_addStorage:function(w){if(this.enabled)return;this._testStorage(w)&&(this.storage=w,this.enabled=!0)},_addPlugin:function(w){var _=this;if(S(w)){M(w,function(C){_._addPlugin(C)});return}var h=O(this.plugins,function(C){return w===C});if(h)return;if(this.plugins.push(w),!b(w))throw new Error("Plugins must be function values that return objects");var R=w.call(this);if(!p(R))throw new Error("Plugins must return an object of function properties");M(R,function(C,g){if(!b(C))throw new Error("Bad plugin property: "+g+" from plugin "+w.name+". Plugins should only return functions.");_._assignPluginFnProp(C,g)})},addStorage:function(w){t("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(w)}},f=m(c,d,{plugins:[]});return f.raw={},M(f,function(w,_){b(w)&&(f.raw[_]=y(f,w))}),M(r,function(w){f._addStorage(w)}),M(i,function(w){f._addPlugin(w)}),f}},"6+eU":function(F,$,j){"use strict";j.d($,"a",function(){return h});var N=j("wx14"),v=j("rePB"),O=j("VTBJ"),M=j("1OyB"),y=j("vuIU"),m=j("Ji7U"),S=j("LK+K"),b=j("cDcd"),p=j.n(b),d=j("TSYQ"),t=j.n(d),l=function(C){var g,x="".concat(C.rootPrefixCls,"-item"),E=t()(x,"".concat(x,"-").concat(C.page),(g={},Object(v.a)(g,"".concat(x,"-active"),C.active),Object(v.a)(g,C.className,!!C.className),Object(v.a)(g,"".concat(x,"-disabled"),!C.page),g)),T=function(){C.onClick(C.page)},k=function(A){C.onKeyPress(A,C.onClick,C.page)};return p.a.createElement("li",{title:C.showTitle?C.page:null,className:E,onClick:T,onKeyPress:k,tabIndex:"0"},C.itemRender(C.page,"page",p.a.createElement("a",{rel:"nofollow"},C.page)))},r=l,i={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},o=function(R){Object(m.a)(g,R);var C=Object(S.a)(g);function g(){var x;Object(M.a)(this,g);for(var E=arguments.length,T=new Array(E),k=0;k=0||L.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;x.setState({goInputText:""}),K(x.getValidValue())},x.go=function(L){var A=x.state.goInputText;if(A==="")return;(L.keyCode===i.ENTER||L.type==="click")&&(x.setState({goInputText:""}),x.props.quickGo(x.getValidValue()))},x}return Object(y.a)(g,[{key:"getValidValue",value:function(){var E=this.state,T=E.goInputText,k=E.current;return!T||isNaN(T)?k:Number(T)}},{key:"getPageSizeOptions",value:function(){var E=this.props,T=E.pageSize,k=E.pageSizeOptions;return k.some(function(L){return L.toString()===T.toString()})?k:k.concat([T.toString()]).sort(function(L,A){var G=isNaN(Number(L))?0:Number(L),K=isNaN(Number(A))?0:Number(A);return G-K})}},{key:"render",value:function(){var E=this,T=this.props,k=T.pageSize,L=T.locale,A=T.rootPrefixCls,G=T.changeSize,K=T.quickGo,W=T.goButton,z=T.selectComponentClass,U=T.buildOptionText,P=T.selectPrefixCls,H=T.disabled,V=this.state.goInputText,q="".concat(A,"-options"),Z=z,ce=null,he=null,ae=null;if(!G&&!K)return null;var xe=this.getPageSizeOptions();if(G&&Z){var ge=xe.map(function(oe,se){return p.a.createElement(Z.Option,{key:se,value:oe.toString()},(U||E.buildOptionText)(oe))});ce=p.a.createElement(Z,{disabled:H,prefixCls:P,showSearch:!1,className:"".concat(q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(k||xe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(se){return se.parentNode}},ge)}return K&&(W&&(ae=typeof W=="boolean"?p.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:H,className:"".concat(q,"-quick-jumper-button")},L.jump_to_confirm):p.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),he=p.a.createElement("div",{className:"".concat(q,"-quick-jumper")},L.jump_to,p.a.createElement("input",{disabled:H,type:"text",value:V,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),L.page,ae)),p.a.createElement("li",{className:"".concat(q)},ce,he)}}]),g}(p.a.Component);o.defaultProps={pageSizeOptions:["10","20","50","100"]};var s=o,u=j("N2Kk");function a(){}function c(R){return typeof R=="number"&&isFinite(R)&&Math.floor(R)===R}function f(R,C,g){return g}function w(R,C,g){var x=typeof R=="undefined"?C.pageSize:R;return Math.floor((g.total-1)/x)+1}var _=function(R){Object(m.a)(g,R);var C=Object(S.a)(g);function g(x){var E;Object(M.a)(this,g),E=C.call(this,x),E.getJumpPrevPage=function(){return Math.max(1,E.state.current-(E.props.showLessItems?3:5))},E.getJumpNextPage=function(){return Math.min(w(void 0,E.state,E.props),E.state.current+(E.props.showLessItems?3:5))},E.getItemIcon=function(G,K){var W=E.props.prefixCls,z=G||p.a.createElement("button",{type:"button","aria-label":K,className:"".concat(W,"-item-link")});return typeof G=="function"&&(z=p.a.createElement(G,Object(O.a)({},E.props))),z},E.savePaginationNode=function(G){E.paginationNode=G},E.isValid=function(G){return c(G)&&G!==E.state.current},E.shouldDisplayQuickJumper=function(){var G=E.props,K=G.showQuickJumper,W=G.pageSize,z=G.total;return z<=W?!1:K},E.handleKeyDown=function(G){(G.keyCode===i.ARROW_UP||G.keyCode===i.ARROW_DOWN)&&G.preventDefault()},E.handleKeyUp=function(G){var K=E.getValidValue(G),W=E.state.currentInputValue;K!==W&&E.setState({currentInputValue:K}),G.keyCode===i.ENTER?E.handleChange(K):G.keyCode===i.ARROW_UP?E.handleChange(K-1):G.keyCode===i.ARROW_DOWN&&E.handleChange(K+1)},E.changePageSize=function(G){var K=E.state.current,W=w(G,E.state,E.props);K=K>W?W:K,W===0&&(K=E.state.current),typeof G=="number"&&("pageSize"in E.props||E.setState({pageSize:G}),"current"in E.props||E.setState({current:K,currentInputValue:K})),E.props.onShowSizeChange(K,G),"onChange"in E.props&&E.props.onChange&&E.props.onChange(K,G)},E.handleChange=function(G){var K=E.props.disabled,W=G;if(E.isValid(W)&&!K){var z=w(void 0,E.state,E.props);W>z?W=z:W<1&&(W=1),"current"in E.props||E.setState({current:W,currentInputValue:W});var U=E.state.pageSize;return E.props.onChange(W,U),W}return E.state.current},E.prev=function(){E.hasPrev()&&E.handleChange(E.state.current-1)},E.next=function(){E.hasNext()&&E.handleChange(E.state.current+1)},E.jumpPrev=function(){E.handleChange(E.getJumpPrevPage())},E.jumpNext=function(){E.handleChange(E.getJumpNextPage())},E.hasPrev=function(){return E.state.current>1},E.hasNext=function(){return E.state.current2?W-2:0),U=2;U=k?A=k:A=Number(T),A}},{key:"getShowSizeChanger",value:function(){var E=this.props,T=E.showSizeChanger,k=E.total,L=E.totalBoundaryShowSizeChanger;return typeof T!="undefined"?T:k>L}},{key:"renderPrev",value:function(E){var T=this.props,k=T.prevIcon,L=T.itemRender,A=L(E,"prev",this.getItemIcon(k,"prev page")),G=!this.hasPrev();return Object(b.isValidElement)(A)?Object(b.cloneElement)(A,{disabled:G}):A}},{key:"renderNext",value:function(E){var T=this.props,k=T.nextIcon,L=T.itemRender,A=L(E,"next",this.getItemIcon(k,"next page")),G=!this.hasNext();return Object(b.isValidElement)(A)?Object(b.cloneElement)(A,{disabled:G}):A}},{key:"render",value:function(){var E=this,T=this.props,k=T.prefixCls,L=T.className,A=T.style,G=T.disabled,K=T.hideOnSinglePage,W=T.total,z=T.locale,U=T.showQuickJumper,P=T.showLessItems,H=T.showTitle,V=T.showTotal,q=T.simple,Z=T.itemRender,ce=T.showPrevNextJumpers,he=T.jumpPrevIcon,ae=T.jumpNextIcon,xe=T.selectComponentClass,ge=T.selectPrefixCls,oe=T.pageSizeOptions,se=this.state,te=se.current,be=se.pageSize,ee=se.currentInputValue;if(K===!0&&W<=be)return null;var ie=w(void 0,this.state,this.props),Ee=[],ne=null,J=null,X=null,Q=null,me=null,fe=U&&U.goButton,Te=P?1:2,ze=te-1>0?te-1:0,Je=te+1=Te*2&&te!==1+2&&(Ee[0]=Object(b.cloneElement)(Ee[0],{className:"".concat(k,"-item-after-jump-prev")}),Ee.unshift(ne)),ie-te>=Te*2&&te!==ie-2&&(Ee[Ee.length-1]=Object(b.cloneElement)(Ee[Ee.length-1],{className:"".concat(k,"-item-before-jump-next")}),Ee.push(J)),Ve!==1&&Ee.unshift(X),Ze!==ie&&Ee.push(Q)}var De=null;V&&(De=p.a.createElement("li",{className:"".concat(k,"-total-text")},V(W,[W===0?0:(te-1)*be+1,te*be>W?W:te*be])));var we=!this.hasPrev()||!ie,Ae=!this.hasNext()||!ie;return p.a.createElement("ul",Object(N.a)({className:t()(k,L,Object(v.a)({},"".concat(k,"-disabled"),G)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},qe),De,p.a.createElement("li",{title:H?z.prev_page:null,onClick:this.prev,tabIndex:we?null:0,onKeyPress:this.runIfEnterPrev,className:t()("".concat(k,"-prev"),Object(v.a)({},"".concat(k,"-disabled"),we)),"aria-disabled":we},this.renderPrev(ze)),Ee,p.a.createElement("li",{title:H?z.next_page:null,onClick:this.next,tabIndex:Ae?null:0,onKeyPress:this.runIfEnterNext,className:t()("".concat(k,"-next"),Object(v.a)({},"".concat(k,"-disabled"),Ae)),"aria-disabled":Ae},this.renderNext(Je)),p.a.createElement(s,{disabled:G,locale:z,rootPrefixCls:k,selectComponentClass:xe,selectPrefixCls:ge,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:te,pageSize:be,pageSizeOptions:oe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:fe}))}}],[{key:"getDerivedStateFromProps",value:function(E,T){var k={};if("current"in E&&(k.current=E.current,E.current!==T.current&&(k.currentInputValue=k.current)),"pageSize"in E&&E.pageSize!==T.pageSize){var L=T.current,A=w(E.pageSize,T,E);L=L>A?A:L,"current"in E||(k.current=L,k.currentInputValue=L),k.pageSize=E.pageSize}return k}}]),g}(p.a.Component);_.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:a,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:a,locale:u.a,style:{},itemRender:f,totalBoundaryShowSizeChanger:50};var h=_},"6RRn":function(F,$,j){"use strict";var N=j("wCXF"),v=j("n6Qo");j.d($,"b",function(){return v.a});var O=j("IBYe"),M=j("6eGT"),y=j("hW8S");j.d($,"a",function(){return y.a}),$.c=N.b},"6UM0":function(F,$,j){var N,v;(function(){var O;(function(){"use strict";var y=[function(p,d,t){var l=t(1).Beautifier,r=t(5).Options;function i(o,s){var u=new l(o,s);return u.beautify()}p.exports=i,p.exports.defaultOptions=function(){return new r}},function(p,d,t){var l=t(2).Output,r=t(3).Token,i=t(4),o=t(5).Options,s=t(7).Tokenizer,u=t(7).line_starters,a=t(7).positionable_operators,c=t(7).TOKEN;function f(P,H){return H.indexOf(P)!==-1}function w(P){return P.replace(/^\s+/g,"")}function _(P){for(var H={},V=0;VV&&(V=P.line_indent_level));var q={mode:H,parent:P,last_token:P?P.last_token:new r(c.START_BLOCK,""),last_word:P?P.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:V,alignment:0,line_indent_level:P?P.line_indent_level:V,start_line_index:this._output.get_line_number(),ternary_depth:0};return q},z.prototype._reset=function(P){var H=P.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new l(this._options,H),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(T.BlockStatement);var V=new s(P,this._options);return this._tokens=V.tokenize(),P},z.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P,H=this._reset(this._source_text),V=this._options.eol;this._options.eol==="auto"&&(V=`
`,H&&i.lineBreak.test(H||"")&&(V=H.match(i.lineBreak)[0]));for(var q=this._tokens.next();q;)this.handle_token(q),this._last_last_text=this._flags.last_token.text,this._flags.last_token=q,q=this._tokens.next();return P=this._output.get_code(V),P},z.prototype.handle_token=function(P,H){P.type===c.START_EXPR?this.handle_start_expr(P):P.type===c.END_EXPR?this.handle_end_expr(P):P.type===c.START_BLOCK?this.handle_start_block(P):P.type===c.END_BLOCK?this.handle_end_block(P):P.type===c.WORD?this.handle_word(P):P.type===c.RESERVED?this.handle_word(P):P.type===c.SEMICOLON?this.handle_semicolon(P):P.type===c.STRING?this.handle_string(P):P.type===c.EQUALS?this.handle_equals(P):P.type===c.OPERATOR?this.handle_operator(P):P.type===c.COMMA?this.handle_comma(P):P.type===c.BLOCK_COMMENT?this.handle_block_comment(P,H):P.type===c.COMMENT?this.handle_comment(P,H):P.type===c.DOT?this.handle_dot(P):P.type===c.EOF?this.handle_eof(P):P.type===c.UNKNOWN?this.handle_unknown(P,H):this.handle_unknown(P,H)},z.prototype.handle_whitespace_and_comments=function(P,H){var V=P.newlines,q=this._options.keep_array_indentation&&A(this._flags.mode);if(P.comments_before)for(var Z=P.comments_before.next();Z;)this.handle_whitespace_and_comments(Z,H),this.handle_token(Z,H),Z=P.comments_before.next();if(q)for(var ce=0;ce0,H);else if(this._options.max_preserve_newlines&&V>this._options.max_preserve_newlines&&(V=this._options.max_preserve_newlines),this._options.preserve_newlines&&V>1){this.print_newline(!1,H);for(var he=1;he0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},z.prototype.set_mode=function(P){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,P),this._flags=this.create_flags(this._previous_flags,P),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},z.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===T.Statement&&k(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},z.prototype.start_of_object_property=function(){return this._flags.parent.mode===T.ObjectLiteral&&this._flags.mode===T.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||R(this._flags.last_token,["get","set"]))},z.prototype.start_of_statement=function(P){var H=!1;return H=H||R(this._flags.last_token,["var","let","const"])&&P.type===c.WORD,H=H||h(this._flags.last_token,"do"),H=H||!(this._flags.parent.mode===T.ObjectLiteral&&this._flags.mode===T.Statement)&&R(this._flags.last_token,U)&&!P.newlines,H=H||h(this._flags.last_token,"else")&&!(h(P,"if")&&!P.comments_before),H=H||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===T.ForInitializer||this._previous_flags.mode===T.Conditional),H=H||this._flags.last_token.type===c.WORD&&this._flags.mode===T.BlockStatement&&!this._flags.in_case&&!(P.text==="--"||P.text==="++")&&this._last_last_text!=="function"&&P.type!==c.WORD&&P.type!==c.RESERVED,H=H||this._flags.mode===T.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||R(this._flags.last_token,["get","set"])),H?(this.set_mode(T.Statement),this.indent(),this.handle_whitespace_and_comments(P,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P,R(P,["do","for","if","while"])),!0):!1},z.prototype.handle_start_expr=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P);var H=T.Expression;if(P.text==="["){if(this._flags.last_token.type===c.WORD||this._flags.last_token.text===")"){R(this._flags.last_token,u)&&(this._output.space_before_token=!0),this.print_token(P),this.set_mode(H),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}H=T.ArrayLiteral,A(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),f(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR,c.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,H=T.ForInitializer):f(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,H=T.Conditional):f(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&P.whitespace_before===""?this._output.space_before_token=!1:(f(this._flags.last_token.text,u)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var V=this._tokens.peek(-3);if(this._options.space_after_named_function&&V){var q=this._tokens.peek(-4);R(V,["async","function"])||V.text==="*"&&R(q,["async","function"])?this._output.space_before_token=!0:this._flags.mode===T.ObjectLiteral?(V.text==="{"||V.text===","||V.text==="*"&&(q.text==="{"||q.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(P);(this._flags.last_token.type===c.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(f(this._last_last_text,["function","yield"])||this._flags.mode===T.ObjectLiteral&&f(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===c.START_BLOCK?this.print_newline():(this._flags.last_token.type===c.END_EXPR||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===c.COMMA)&&this.allow_wrap_or_preserved_newline(P,P.newlines),this.print_token(P),this.set_mode(H),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},z.prototype.handle_end_expr=function(P){for(;this._flags.mode===T.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(P,P.text==="]"&&A(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===c.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(P),this.restore_mode(),k(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===T.Conditional&&(this._previous_flags.mode=T.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},z.prototype.handle_start_block=function(P){this.handle_whitespace_and_comments(P);var H=this._tokens.peek(),V=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(T.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(T.BlockStatement):V&&(f(V.text,[":",","])&&f(H.type,[c.STRING,c.WORD,c.RESERVED])||f(H.text,["get","set","..."])&&f(V.type,[c.WORD,c.RESERVED]))?f(this._last_last_text,["class","interface"])&&!f(V.text,[":",","])?this.set_mode(T.BlockStatement):this.set_mode(T.ObjectLiteral):this._flags.last_token.type===c.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(T.BlockStatement):f(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||R(this._flags.last_token,["return","throw","import","default"])?this.set_mode(T.ObjectLiteral):this.set_mode(T.BlockStatement),this._flags.last_token&&(R(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var q=!H.comments_before&&H.text==="}",Z=q&&this._flags.last_word==="function"&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var ce=0,he=null;this._flags.inline_frame=!0;do if(ce+=1,he=this._tokens.peek(ce-1),he.newlines){this._flags.inline_frame=!1;break}while(he.type!==c.EOF&&!(he.type===c.END_BLOCK&&he.opened===P))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(Z||this._flags.last_token.type===c.EQUALS||R(this._flags.last_token,C)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(A(this._previous_flags.mode)&&(this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.COMMA)&&((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(P),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(this._flags.last_token.type===c.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(P),this.indent(),!q&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},z.prototype.handle_end_block=function(P){for(this.handle_whitespace_and_comments(P);this._flags.mode===T.Statement;)this.restore_mode();var H=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!H?this._output.space_before_token=!0:this._options.brace_style==="expand"?H||this.print_newline():H||(A(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(P)},z.prototype.handle_word=function(P){if(P.type===c.RESERVED){if(f(P.text,["set","get"])&&this._flags.mode!==T.ObjectLiteral)P.type=c.WORD;else if(P.text==="import"&&f(this._tokens.peek().text,["(","."]))P.type=c.WORD;else if(f(P.text,["as","from"])&&!this._flags.import_block)P.type=c.WORD;else if(this._flags.mode===T.ObjectLiteral){var H=this._tokens.peek();H.text===":"&&(P.type=c.WORD)}}if(this.start_of_statement(P)?R(this._flags.last_token,["var","let","const"])&&P.type===c.WORD&&(this._flags.declaration_statement=!0):P.newlines&&!G(this._flags.mode)&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==c.EQUALS&&(this._options.preserve_newlines||!R(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(P),this.print_newline()):this.handle_whitespace_and_comments(P),this._flags.do_block&&!this._flags.do_while)if(h(P,"while")){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&h(P,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===T.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&R(P,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(P),this._flags.in_case=!0;return}if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P)),h(P,"function")){(f(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(f(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===c.OPERATOR))&&(!this._output.just_added_blankline()&&!P.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?R(this._flags.last_token,["get","set","new","export"])||R(this._flags.last_token,U)?this._output.space_before_token=!0:h(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(G(this._flags.mode)||A(this._flags.mode))||this.print_newline(),this.print_token(P),this._flags.last_word=P.text;return}var V="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?V="SPACE":R(P,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines?V="NEWLINE":(V="SPACE",this._output.space_before_token=!0):V="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===T.BlockStatement?V="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&G(this._flags.mode)?V="SPACE":this._flags.last_token.type===c.STRING?V="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.last_token.text==="*"&&(f(this._last_last_text,["function","yield"])||this._flags.mode===T.ObjectLiteral&&f(this._last_last_text,["{",","]))?V="SPACE":this._flags.last_token.type===c.START_BLOCK?this._flags.inline_frame?V="SPACE":V="NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,V="NEWLINE"),R(P,u)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?V="SPACE":V="NEWLINE"),R(P,["else","catch","finally"]))if((!(this._flags.last_token.type===c.END_BLOCK&&this._previous_flags.mode===T.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var q=this._output.current_line;q.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else V==="NEWLINE"?R(this._flags.last_token,C)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&R(P,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?(this._flags.last_token.type!==c.START_EXPR||!R(P,["var","let","const"]))&&this._flags.last_token.text!==":"&&(h(P,"if")&&h(P.previous,"else")?this._output.space_before_token=!0:this.print_newline()):R(P,u)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&A(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():V==="SPACE"&&(this._output.space_before_token=!0);P.previous&&(P.previous.type===c.WORD||P.previous.type===c.RESERVED)&&(this._output.space_before_token=!0),this.print_token(P),this._flags.last_word=P.text,P.type===c.RESERVED&&(P.text==="do"?this._flags.do_block=!0:P.text==="if"?this._flags.if_block=!0:P.text==="import"?this._flags.import_block=!0:this._flags.import_block&&h(P,"from")&&(this._flags.import_block=!1))},z.prototype.handle_semicolon=function(P){this.start_of_statement(P)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(P);for(var H=this._tokens.peek();this._flags.mode===T.Statement&&!(this._flags.if_block&&h(H,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(P)},z.prototype.handle_string=function(P){P.text.startsWith("`")&&P.newlines===0&&P.whitespace_before===""&&(P.previous.text===")"||this._flags.last_token.type===c.WORD)||(this.start_of_statement(P)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(P),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P):P.text.startsWith("`")&&this._flags.last_token.type===c.END_EXPR&&(P.previous.text==="]"||P.previous.text===")")&&P.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(P)},z.prototype.handle_equals=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0},z.prototype.handle_comma=function(P){this.handle_whitespace_and_comments(P,!0),this.print_token(P),this._output.space_before_token=!0,this._flags.declaration_statement?(G(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)):this._flags.mode===T.ObjectLiteral||this._flags.mode===T.Statement&&this._flags.parent.mode===T.ObjectLiteral?(this._flags.mode===T.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)},z.prototype.handle_operator=function(P){var H=P.text==="*"&&(R(this._flags.last_token,["function","yield"])||f(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),V=f(P.text,["-","+"])&&(f(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||f(this._flags.last_token.text,u)||this._flags.last_token.text===",");if(!this.start_of_statement(P)){var q=!H;this.handle_whitespace_and_comments(P,q)}if(P.text==="*"&&this._flags.last_token.type===c.DOT){this.print_token(P);return}if(P.text==="::"){this.print_token(P);return}if(this._flags.last_token.type===c.OPERATOR&&f(this._options.operator_position,E)&&this.allow_wrap_or_preserved_newline(P),P.text===":"&&this._flags.in_case){this.print_token(P),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var Z=!0,ce=!0,he=!1;if(P.text===":"?this._flags.ternary_depth===0?Z=!1:(this._flags.ternary_depth-=1,he=!0):P.text==="?"&&(this._flags.ternary_depth+=1),!V&&!H&&this._options.preserve_newlines&&f(P.text,a)){var ae=P.text===":",xe=ae&&he,ge=ae&&!he;switch(this._options.operator_position){case x.before_newline:this._output.space_before_token=!ge,this.print_token(P),(!ae||xe)&&this.allow_wrap_or_preserved_newline(P),this._output.space_before_token=!0;return;case x.after_newline:this._output.space_before_token=!0,!ae||xe?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(P):this._output.space_before_token=!1,this.print_token(P),this._output.space_before_token=!0;return;case x.preserve_newline:ge||this.allow_wrap_or_preserved_newline(P),Z=!(this._output.just_added_newline()||ge),this._output.space_before_token=Z,this.print_token(P),this._output.space_before_token=!0;return}}if(H){this.allow_wrap_or_preserved_newline(P),Z=!1;var oe=this._tokens.peek();ce=oe&&f(oe.type,[c.WORD,c.RESERVED])}else if(P.text==="...")this.allow_wrap_or_preserved_newline(P),Z=this._flags.last_token.type===c.START_BLOCK,ce=!1;else if(f(P.text,["--","++","!","~"])||V){if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR)&&this.allow_wrap_or_preserved_newline(P),Z=!1,ce=!1,P.newlines&&(P.text==="--"||P.text==="++"||P.text==="~")){var se=R(this._flags.last_token,C)&&P.newlines;se&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(se,!0)}this._flags.last_token.text===";"&&G(this._flags.mode)&&(Z=!0),this._flags.last_token.type===c.RESERVED?Z=!0:this._flags.last_token.type===c.END_EXPR?Z=!(this._flags.last_token.text==="]"&&(P.text==="--"||P.text==="++")):this._flags.last_token.type===c.OPERATOR&&(Z=f(P.text,["--","-","++","+"])&&f(this._flags.last_token.text,["--","-","++","+"]),f(P.text,["+","-"])&&f(this._flags.last_token.text,["--","++"])&&(ce=!0)),(this._flags.mode===T.BlockStatement&&!this._flags.inline_frame||this._flags.mode===T.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Z,this.print_token(P),this._output.space_before_token=ce},z.prototype.handle_block_comment=function(P,H){if(this._output.raw){this._output.add_raw_token(P),P.directives&&P.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(P.directives){this.print_newline(!1,H),this.print_token(P),P.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!i.newline.test(P.text)&&!P.newlines){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0;return}else this.print_block_commment(P,H)},z.prototype.print_block_commment=function(P,H){var V=L(P.text),q,Z=!1,ce=!1,he=P.whitespace_before,ae=he.length;if(this.print_newline(!1,H),this.print_token_line_indentation(P),this._output.add_token(V[0]),this.print_newline(!1,H),V.length>1){for(V=V.slice(1),Z=K(V,"*"),ce=W(V,he),Z&&(this._flags.alignment=1),q=0;q=0;i--)if(this.__items[i].match(r))return!0;return!1},d.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},d.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},d.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},d.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},d.prototype.is_empty=function(){return this.__items.length===0},d.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},d.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(`
`);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},d.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},d.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},d.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},d.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},d.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function t(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}t.prototype.get_indent_size=function(r,i){var o=this.__base_string_length;return i=i||0,r<0&&(o=0),o+=r*this.__indent_size,o+=i,o},t.prototype.get_indent_string=function(r,i){var o=this.__base_string;return i=i||0,r<0&&(r=0,o=""),i+=r*this.__indent_size,this.__ensure_cache(i),o+=this.__cache[i],o},t.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var r=this.__cache.length,i=0,o="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,o=new Array(i+1).join(this.__indent_string)),r&&(o+=new Array(r+1).join(" ")),this.__cache.push(o)};function l(r,i){this.__indent_cache=new t(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new d(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(r,i){return this.__indent_cache.get_indent_string(r,i)},l.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(r){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
`);return r!==`
`&&(o=o.replace(/[\n]/g,r)),o},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(r,i){return r=r||0,i=i||0,this.next_line.set_indent(r,i),this.__lines.length>1?(this.current_line.set_indent(r,i),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(r){for(var i=0;i1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(r,i){for(var o=this.__lines.length-2;o>=0;){var s=this.__lines[o];if(s.is_empty())break;if(s.item(0).indexOf(r)!==0&&s.item(-1)!==i){this.__lines.splice(o+1,0,new d(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},p.exports.Output=l},function(p){function d(t,l,r,i){this.type=t,this.text=l,this.comments_before=null,this.newlines=r||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}p.exports.Token=d},function(p,d){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",l="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="(?:\\\\u[0-9a-fA-F]{4}|["+t+r+"])",s="(?:\\\\u[0-9a-fA-F]{4}|["+l+r+i+"])*";d.identifier=new RegExp(o+s,"g"),d.identifierStart=new RegExp(o),d.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+l+r+i+"])+");var u=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;d.newline=/[\n\r\u2028\u2029]/,d.lineBreak=new RegExp(`\r
|`+d.newline.source),d.allLineBreaks=new RegExp(d.lineBreak.source,"g")},function(p,d,t){var l=t(6).Options,r=["before-newline","after-newline","preserve-newline"];function i(o){l.call(this,o,"js");var s=this.raw_options.brace_style||null;s==="expand-strict"?this.raw_options.brace_style="expand":s==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var u=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var a=0;a>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),g=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";g=g.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),g="\\?\\.(?!\\d) "+g,g=g.replace(/ /g,"|");var x=new RegExp(g),E="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),T=E.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),k=new RegExp("^(?:"+T.join("|")+")$"),L,A=function(K,W){r.call(this,K,W),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var z=new u(this._input),U=new a(this._input).read_options(this._options);this.__patterns={template:U,identifier:U.starting_with(s.identifier).matching(s.identifierMatch),number:z.matching(_),punct:z.matching(x),comment:z.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:z.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:z.matching(//),include:z.starting_with(/#include/).until_after(s.lineBreak),shebang:z.starting_with(/#!/).until_after(s.lineBreak),xml:z.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:U.until(/['\\\n\r\u2028\u2029]/),double_quote:U.until(/["\\\n\r\u2028\u2029]/),template_text:U.until(/[`\\$]/),template_expression:U.until(/[`}\\]/)}};A.prototype=new r,A.prototype._is_comment=function(K){return K.type===f.COMMENT||K.type===f.BLOCK_COMMENT||K.type===f.UNKNOWN},A.prototype._is_opening=function(K){return K.type===f.START_BLOCK||K.type===f.START_EXPR},A.prototype._is_closing=function(K,W){return(K.type===f.END_BLOCK||K.type===f.END_EXPR)&&W&&(K.text==="]"&&W.text==="["||K.text===")"&&W.text==="("||K.text==="}"&&W.text==="{")},A.prototype._reset=function(){L=!1},A.prototype._get_next_token=function(K,W){var z=null;this._readWhitespace();var U=this._input.peek();return U===null?this._create_token(f.EOF,""):(z=z||this._read_non_javascript(U),z=z||this._read_string(U),z=z||this._read_word(K),z=z||this._read_singles(U),z=z||this._read_comment(U),z=z||this._read_regexp(U,K),z=z||this._read_xml(U,K),z=z||this._read_punctuation(),z=z||this._create_token(f.UNKNOWN,this._input.next()),z)},A.prototype._read_word=function(K){var W;if(W=this.__patterns.identifier.read(),W!=="")return W=W.replace(s.allLineBreaks,`
`),!(K.type===f.DOT||K.type===f.RESERVED&&(K.text==="set"||K.text==="get"))&&k.test(W)?(W==="in"||W==="of")&&(K.type===f.WORD||K.type===f.STRING)?this._create_token(f.OPERATOR,W):this._create_token(f.RESERVED,W):this._create_token(f.WORD,W);if(W=this.__patterns.number.read(),W!=="")return this._create_token(f.WORD,W)},A.prototype._read_singles=function(K){var W=null;return K==="("||K==="["?W=this._create_token(f.START_EXPR,K):K===")"||K==="]"?W=this._create_token(f.END_EXPR,K):K==="{"?W=this._create_token(f.START_BLOCK,K):K==="}"?W=this._create_token(f.END_BLOCK,K):K===";"?W=this._create_token(f.SEMICOLON,K):K==="."&&R.test(this._input.peek(1))?W=this._create_token(f.DOT,K):K===","&&(W=this._create_token(f.COMMA,K)),W&&this._input.next(),W},A.prototype._read_punctuation=function(){var K=this.__patterns.punct.read();if(K!=="")return K==="="?this._create_token(f.EQUALS,K):K==="?."?this._create_token(f.DOT,K):this._create_token(f.OPERATOR,K)},A.prototype._read_non_javascript=function(K){var W="";if(K==="#"){if(this._is_first_token()&&(W=this.__patterns.shebang.read(),W))return this._create_token(f.UNKNOWN,W.trim()+`
`);if(W=this.__patterns.include.read(),W)return this._create_token(f.UNKNOWN,W.trim()+`
`);K=this._input.next();var z="#";if(this._input.hasNext()&&this._input.testChar(h)){do K=this._input.next(),z+=K;while(this._input.hasNext()&&K!=="#"&&K!=="=");return K==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(z+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(z+="{}",this._input.next(),this._input.next())),this._create_token(f.WORD,z)}this._input.back()}else if(K==="<"&&this._is_first_token()){if(W=this.__patterns.html_comment_start.read(),W){for(;this._input.hasNext()&&!this._input.testChar(s.newline);)W+=this._input.next();return L=!0,this._create_token(f.COMMENT,W)}}else if(L&&K==="-"&&(W=this.__patterns.html_comment_end.read(),W))return L=!1,this._create_token(f.COMMENT,W);return null},A.prototype._read_comment=function(K){var W=null;if(K==="/"){var z="";if(this._input.peek(1)==="*"){z=this.__patterns.block_comment.read();var U=w.get_directives(z);U&&U.ignore==="start"&&(z+=w.readIgnored(this._input)),z=z.replace(s.allLineBreaks,`
`),W=this._create_token(f.BLOCK_COMMENT,z),W.directives=U}else this._input.peek(1)==="/"&&(z=this.__patterns.comment.read(),W=this._create_token(f.COMMENT,z))}return W},A.prototype._read_string=function(K){if(K==="`"||K==="'"||K==='"'){var W=this._input.next();return this.has_char_escapes=!1,K==="`"?W+=this._read_string_recursive("`",!0,"${"):W+=this._read_string_recursive(K),this.has_char_escapes&&this._options.unescape_strings&&(W=G(W)),this._input.peek()===K&&(W+=this._input.next()),W=W.replace(s.allLineBreaks,`
`),this._create_token(f.STRING,W)}return null},A.prototype._allow_regexp_or_xml=function(K){return K.type===f.RESERVED&&c(K.text,["return","case","throw","else","do","typeof","yield"])||K.type===f.END_EXPR&&K.text===")"&&K.opened.previous.type===f.RESERVED&&c(K.opened.previous.text,["if","while","for"])||c(K.type,[f.COMMENT,f.START_EXPR,f.START_BLOCK,f.START,f.END_BLOCK,f.OPERATOR,f.EQUALS,f.EOF,f.SEMICOLON,f.COMMA])},A.prototype._read_regexp=function(K,W){if(K==="/"&&this._allow_regexp_or_xml(W)){for(var z=this._input.next(),U=!1,P=!1;this._input.hasNext()&&(U||P||this._input.peek()!==K)&&!this._input.testChar(s.newline);)z+=this._input.peek(),U?U=!1:(U=this._input.peek()==="\\",this._input.peek()==="["?P=!0:this._input.peek()==="]"&&(P=!1)),this._input.next();return this._input.peek()===K&&(z+=this._input.next(),z+=this._input.read(s.identifier)),this._create_token(f.STRING,z)}return null},A.prototype._read_xml=function(K,W){if(this._options.e4x&&K==="<"&&this._allow_regexp_or_xml(W)){var z="",U=this.__patterns.xml.read_match();if(U){for(var P=U[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),H=P.indexOf("{")===0,V=0;U;){var q=!!U[1],Z=U[2],ce=!!U[U.length-1]||Z.slice(0,8)==="![CDATA[";if(!ce&&(Z===P||H&&Z.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(q?--V:++V),z+=U[0],V<=0)break;U=this.__patterns.xml.read_match()}return U||(z+=this._input.match(/[\s\S]*/g)[0]),z=z.replace(s.allLineBreaks,`
`),this._create_token(f.STRING,z)}}return null};function G(K){for(var W="",z=0,U=new l(K),P=null;U.hasNext();)if(P=U.match(/([\s]|[^\\]|\\\\)+/g),P&&(W+=P[0]),U.peek()==="\\"){if(U.next(),U.peek()==="x")P=U.match(/x([0-9A-Fa-f]{2})/g);else if(U.peek()==="u")P=U.match(/u([0-9A-Fa-f]{4})/g);else{W+="\\",U.hasNext()&&(W+=U.next());continue}if(!P)return K;if(z=parseInt(P[1],16),z>126&&z<=255&&P[0].indexOf("x")===0)return K;if(z>=0&&z<32){W+="\\"+P[0];continue}else z===34||z===39||z===92?W+="\\"+String.fromCharCode(z):W+=String.fromCharCode(z)}return W}A.prototype._read_string_recursive=function(K,W,z){var U,P;K==="'"?P=this.__patterns.single_quote:K==='"'?P=this.__patterns.double_quote:K==="`"?P=this.__patterns.template_text:K==="}"&&(P=this.__patterns.template_expression);for(var H=P.read(),V="";this._input.hasNext();){if(V=this._input.next(),V===K||!W&&s.newline.test(V)){this._input.back();break}else V==="\\"&&this._input.hasNext()?(U=this._input.peek(),U==="x"||U==="u"?this.has_char_escapes=!0:U==="\r"&&this._input.peek(1)===`
`&&this._input.next(),V+=this._input.next()):z&&(z==="${"&&V==="$"&&this._input.peek()==="{"&&(V+=this._input.next()),z===V&&(K==="`"?V+=this._read_string_recursive("}",W,"`"):V+=this._read_string_recursive("`",W,"${"),this._input.hasNext()&&(V+=this._input.next())));V+=P.read(),H+=V}return H},p.exports.Tokenizer=A,p.exports.TOKEN=f,p.exports.positionable_operators=C.slice(),p.exports.line_starters=E.slice()},function(p){var d=RegExp.prototype.hasOwnProperty("sticky");function t(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position=0&&l=0&&r=l.length&&this.__input.substring(r-l.length,r).toLowerCase()===l},p.exports.InputScanner=t},function(p,d,t){var l=t(8).InputScanner,r=t(3).Token,i=t(10).TokenStream,o=t(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},u=function(a,c){this._input=new l(a),this._options=c||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};u.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var a,c=new r(s.START,""),f=null,w=[],_=new i;c.type!==s.EOF;){for(a=this._get_next_token(c,f);this._is_comment(a);)_.add(a),a=this._get_next_token(c,f);_.isEmpty()||(a.comments_before=_,_=new i),a.parent=f,this._is_opening(a)?(w.push(f),f=a):f&&this._is_closing(a,f)&&(a.opened=f,f.closed=a,f=w.pop(),a.parent=f),a.previous=c,c.next=a,this.__tokens.add(a),c=a}return this.__tokens},u.prototype._is_first_token=function(){return this.__tokens.isEmpty()},u.prototype._reset=function(){},u.prototype._get_next_token=function(a,c){this._readWhitespace();var f=this._input.read(/.+/g);return f?this._create_token(s.RAW,f):this._create_token(s.EOF,"")},u.prototype._is_comment=function(a){return!1},u.prototype._is_opening=function(a){return!1},u.prototype._is_closing=function(a,c){return!1},u.prototype._create_token=function(a,c){var f=new r(a,c,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return f},u.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},p.exports.Tokenizer=u,p.exports.TOKEN=s},function(p){function d(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}d.prototype.restart=function(){this.__position=0},d.prototype.isEmpty=function(){return this.__tokens_length===0},d.prototype.hasNext=function(){return this.__position=0&&t/),erb:u.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:u.starting_with(/{%/).until_after(/%}/),django_value:u.starting_with(/{{/).until_after(/}}/),django_comment:u.starting_with(/{#/).until_after(/#}/),smarty:u.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:u.starting_with(/{\*/).until_after(/\*}/),smarty_literal:u.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new l,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(o){var s=this._create();return s._disabled[o]=!0,s._update(),s},i.prototype.read_options=function(o){var s=this._create();for(var u in r)s._disabled[u]=o.templating.indexOf(u)===-1;return s._update(),s},i.prototype.exclude=function(o){var s=this._create();return s._excluded[o]=!0,s._update(),s},i.prototype.read=function(){var o="";this._match_pattern?o=this._input.read(this._starting_pattern):o=this._input.read(this._starting_pattern,this.__template_pattern);for(var s=this._read_template();s;)this._match_pattern?s+=this._input.read(this._match_pattern):s+=this._input.readUntil(this.__template_pattern),o+=s,s=this._read_template();return this._until_after&&(o+=this._input.readUntilAfter(this._until_pattern)),o},i.prototype.__set_templated_pattern=function(){var o=[];this._disabled.php||o.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||o.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||o.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(o.push(this.__patterns.django._starting_pattern.source),o.push(this.__patterns.django_value._starting_pattern.source),o.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||o.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&o.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+o.join("|")+")")},i.prototype._read_template=function(){var o="",s=this._input.peek();if(s==="<"){var u=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&u==="?"&&(o=o||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&u==="%"&&(o=o||this.__patterns.erb.read())}else s==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(o=o||this.__patterns.handlebars_comment.read(),o=o||this.__patterns.handlebars_unescaped.read(),o=o||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(o=o||this.__patterns.django_value.read()),this._excluded.django||(o=o||this.__patterns.django_comment.read(),o=o||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(o=o||this.__patterns.smarty_comment.read(),o=o||this.__patterns.smarty_literal.read(),o=o||this.__patterns.smarty.read()));return o},p.exports.TemplatablePattern=i}],m={};function S(p){var d=m[p];if(d!==void 0)return d.exports;var t=m[p]={exports:{}};return y[p](t,t.exports,S),t.exports}var b=S(0);O=b})();var M=O;!(N=[],v=function(){return{js_beautify:M}}.apply($,N),v!==void 0&&(F.exports=v))})()},"6eGT":function(F,$,j){"use strict";function N(v){return null}$.a=N},"7Cbv":function(F,$,j){"use strict";var N=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),v=new Uint8Array(16);function O(){if(!N)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return N(v)}var M=/^(?:[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 y(r){return typeof r=="string"&&M.test(r)}for(var m=y,S=[],b=0;b<256;++b)S.push((b+256).toString(16).substr(1));function p(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=(S[r[i+0]]+S[r[i+1]]+S[r[i+2]]+S[r[i+3]]+"-"+S[r[i+4]]+S[r[i+5]]+"-"+S[r[i+6]]+S[r[i+7]]+"-"+S[r[i+8]]+S[r[i+9]]+"-"+S[r[i+10]]+S[r[i+11]]+S[r[i+12]]+S[r[i+13]]+S[r[i+14]]+S[r[i+15]]).toLowerCase();if(!m(o))throw TypeError("Stringified UUID is invalid");return o}var d=p;function t(r,i,o){r=r||{};var s=r.random||(r.rng||O)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,i){o=o||0;for(var u=0;u<16;++u)i[o+u]=s[u];return i}return d(s)}var l=$.a=t},"7ahc":function(F,$,j){"use strict";j.d($,"a",function(){return w});var N=j("k1fw"),v=j("0Owb"),O=j("+L6B"),M=j("2/Rp"),y=j("y8nQ"),m=j("Vl3Y"),S=j("tJVT"),b=j("OaEy"),p=j("2fM7"),d=j("cDcd"),t=j.n(d),l=j("VrN/"),r=j.n(l),i=j("p77/"),o=j.n(i),s=j("c5Ni"),u=j.n(s),a=p.a.Option,c={labelCol:{span:4},wrapperCol:{span:20}},f={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(_){var h=_.callback,R=_.onCancel,C=Object(d.useState)("python"),g=Object(S.a)(C,2),x=g[0],E=g[1];function T(L){E(f[L][1])}function k(L){h(L)}return t.a.createElement(m.a,Object(v.a)({},c,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:k}),t.a.createElement(m.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},t.a.createElement(p.a,{onChange:T},Object.keys(f).map(function(L){return t.a.createElement(a,{key:L,value:L},f[L][0])}))),t.a.createElement(m.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},t.a.createElement(w,{mode:x})),t.a.createElement("div",{className:"flex-container flex-end"},t.a.createElement(M.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(M.a,{type:"ghost",onClick:R},"\u53D6\u6D88")))};function w(_){var h=_.value,R=_.onChange,C=_.mode,g=_.options,x=g===void 0?{}:g,E=Object(d.useRef)(),T=Object(d.useState)(),k=Object(S.a)(T,2),L=k[0],A=k[1];return Object(d.useEffect)(function(){if(L){function G(K){var W=K.getValue();R&&R(W)}return L.on("change",G),function(){L.off("change",G)}}},[L,R]),Object(d.useEffect)(function(){L&&L.setOption("mode",C)},[L,C]),Object(d.useEffect)(function(){L&&((h!==L.getValue()||h==="")&&setTimeout(function(){L.setValue(h||" ")},300))},[L,h]),Object(d.useEffect)(function(){if(E.current&&!L){var G=r.a.fromTextArea(E.current,Object(N.a)({mode:C,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},x));A(G)}},[E.current,L]),t.a.createElement("div",{className:"my-codemirror-container"},t.a.createElement("textarea",{ref:E}))}},"815F":function(F,$,j){"use strict";j.d($,"e",function(){return S}),j.d($,"c",function(){return p}),j.d($,"d",function(){return d}),j.d($,"a",function(){return l}),j.d($,"f",function(){return r}),j.d($,"b",function(){return i});var N=j("KQm4"),v=j("VTBJ"),O=j("Ff2n"),M=j("Zm9Q"),y=j("Kwbf"),m=j("OZM5");function S(o,s){return o!=null?o:s}function b(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function u(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(a||[]).forEach(function(f){var w=f.key,_=f.children;Object(y.a)(w!=null,"Tree node must have a certain key: [".concat(c).concat(w,"]"));var h=String(w);Object(y.a)(!s.has(h)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(h)),s.set(h,!0),u(_,"".concat(c).concat(h," > "))})}u(o)}function p(o){function s(u){var a=Object(M.a)(u);return a.map(function(c){if(!Object(m.i)(c))return Object(y.a)(!c,"Tree/TreeNode can only accept TreeNode as children."),null;var f=c.key,w=c.props,_=w.children,h=Object(O.a)(w,["children"]),R=Object(v.a)({key:f},h),C=s(_);return C.length&&(R.children=C),R}).filter(function(c){return c})}return s(o)}function d(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=new Set(s===!0?[]:s),a=[];function c(f){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map(function(_,h){var R=Object(m.h)(w?w.pos:"0",h),C=S(_.key,R),g=Object(v.a)(Object(v.a)({},_),{},{parent:w,pos:R,children:null,data:_,isStart:[].concat(Object(N.a)(w?w.isStart:[]),[h===0]),isEnd:[].concat(Object(N.a)(w?w.isEnd:[]),[h===f.length-1])});return a.push(g),s===!0||u.has(C)?g.children=c(_.children||[],g):g.children=[],g})}return c(o),a}function t(o,s,u){var a;u?typeof u=="string"?a=function(w){return w[u]}:typeof u=="function"&&(a=function(w){return u(w)}):a=function(w,_){return S(w.key,_)};function c(f,w,_){var h=f?f.children:o,R=f?Object(m.h)(_.pos,w):"0";if(f){var C=a(f,R),g={node:f,index:w,pos:R,key:C,parentPos:_.node?_.pos:null,level:_.level+1};s(g)}h&&h.forEach(function(x,E){c(x,E,{node:f,pos:R,level:_?_.level+1:-1})})}c(null)}function l(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.initWrapper,a=s.processEntity,c=s.onProcessFinished,f=arguments.length>2?arguments[2]:void 0,w={},_={},h={posEntities:w,keyEntities:_};return u&&(h=u(h)||h),t(o,function(R){var C=R.node,g=R.index,x=R.pos,E=R.key,T=R.parentPos,k=R.level,L={node:C,index:g,key:E,pos:x,level:k},A=S(E,x);w[x]=L,_[A]=L,L.parent=w[T],L.parent&&(L.parent.children=L.parent.children||[],L.parent.children.push(L)),a&&a(L,h)},f),c&&c(h),h}function r(o,s){var u=s.expandedKeys,a=s.selectedKeys,c=s.loadedKeys,f=s.loadingKeys,w=s.checkedKeys,_=s.halfCheckedKeys,h=s.dragOverNodeKey,R=s.dropPosition,C=s.keyEntities,g=C[o],x={eventKey:o,expanded:u.indexOf(o)!==-1,selected:a.indexOf(o)!==-1,loaded:c.indexOf(o)!==-1,loading:f.indexOf(o)!==-1,checked:w.indexOf(o)!==-1,halfChecked:_.indexOf(o)!==-1,pos:String(g?g.pos:""),dragOver:h===o&&R===0,dragOverGapTop:h===o&&R===-1,dragOverGapBottom:h===o&&R===1};return x}function i(o){var s=o.data,u=o.expanded,a=o.selected,c=o.checked,f=o.loaded,w=o.loading,_=o.halfChecked,h=o.dragOver,R=o.dragOverGapTop,C=o.dragOverGapBottom,g=o.pos,x=o.active,E=Object(v.a)(Object(v.a)({},s),{},{expanded:u,selected:a,checked:c,loaded:f,loading:w,halfChecked:_,dragOver:h,dragOverGapTop:R,dragOverGapBottom:C,pos:g,active:x});return"props"in E||Object.defineProperty(E,"props",{get:function(){return Object(y.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),o}}),E}},"8EBN":function(F,$,j){(function(N){N(j("VrN/"))})(function(N){"use strict";N.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 v=0;v-1&&M.substring(S+1,M.length);if(b)return N.findModeByExtension(b)},N.findModeByName=function(M){M=M.toLowerCase();for(var y=0;y=oe.length?se.slice(oe.length):se}).join(`
`)}var i=[],o=[""],s=new t.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function a(){i.length=0,o=[""]}var c={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function f(ae,xe,ge,oe){if(xe>=ae.length||ae[xe].level<=ge)return xe;var se=ae[xe];oe.push("- "+se.text+""),xe++;var te=[];return xe=f(ae,xe,se.level,te),te.length>0&&(oe.push("
"),te.forEach(function(be){oe.push(be)}),oe.push("
")),oe.push(" "),xe=f(ae,xe,ge,oe),xe}function w(){return f(i,0,0,o),o.push("
"),o.join("")}var _={heading:function(xe){var ge=u.exec(xe);if(ge)return{type:"heading",raw:ge[0],depth:ge[1].length,text:ge[2]}},fences:function(xe){var ge=this.rules.block.fences.exec(xe);if(ge){var oe=ge[0],se=r(oe,ge[3]||""),te=ge[2]?ge[2].trim():ge[2];if(["latex","katex","math"].indexOf(te)>=0){var be=C(),ee=se;se=be,g[be]={type:"block",expression:ee}}return{type:"code",raw:oe,lang:te,text:se}}}},h=/(?:\${2})([^\n`]+?)(?:\${2})/gi,R=0,C=function(){return"__special_katext_id_".concat(R++,"__")},g={};function x(){return g}function E(){R=0,g={}}function T(ae){return ae=ae.replace(h,function(xe,ge){var oe=C();return g[oe]={type:"inline",expression:ge},oe}),ae}var k=s.listitem;s.listitem=function(ae){return k(T(ae))};var L=s.paragraph;s.paragraph=function(ae){return L(T(ae))};var A=s.tablecell;s.tablecell=function(ae,xe){return A(T(ae),xe)},s.code=function(ae,xe,ge){var oe=(xe||"").match(/\S*/)[0];return oe?["latex","katex","math"].indexOf(oe)>=0?"".concat(ae,"
"):'
').concat(ge?ae:Object(l.escape)(ae,!0),`
`):''+(ge?ae:Object(l.escape)(ae,!0))+"
"},s.heading=function(ae,xe,ge){var oe=this.options.headerPrefix+ge.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return i.push({anchor:oe,level:xe,text:ae}),"'+ae+""},t.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),t.a.use({tokenizer:_,renderer:s});var G=t.a,K=j("SJMd"),W=j("ulZh"),z=j.n(W),U=j("m3rI"),P=j("Oy/b"),H=j("p5ED"),V=j("8hTe"),q=j.n(V),Z=/]*>/g;function ce(ae){var xe=document.createElement("div");return xe.innerHTML=ae,xe.childNodes.length===0?"":xe.childNodes[0].nodeValue}var he=$.a=function(ae){var xe=ae.value,ge=xe===void 0?"":xe,oe=ae.edit,se=oe===void 0?!1:oe,te=ae.className,be=ae.showTextOnly,ee=ae.showLines,ie=ae.replaces,Ee=ae.zoomImg,ne=ae.hasMask,J=ae.style,X=J===void 0?{}:J,Q=ae.stylesPrev,me=Q===void 0?{}:Q,fe=String(ge),Te=Object(S.useRef)(),ze=Object(S.useRef)(),Je=Object(S.useState)(""),qe=Object(m.a)(Je,2),Xe=qe[0],et=qe[1],rt=Object(S.useState)("office"),Le=Object(m.a)(rt,2),Oe=Le[0],Ve=Le[1],Ze=Object(S.useMemo)(function(){try{var Ae=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,de=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_e=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;fe=fe.replace(Ae,"("+U.a.API_SERVER+"/api/attachments/").replace(de,'"'+U.a.API_SERVER+"/api/attachments/").replace(_e,'"'+U.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Ye){}var Se=G(fe),Ie=x();if(fe.match(/\[TOC\]/)&&(Se=Se.replace("[TOC]
",w()),a()),Se=Se.replace(/(__special_katext_id_\d+__)/g,function(Ye,nt){var lt=Ie[nt],at=lt.type,ot=lt.expression;return Object(P.renderToString)(ce(ot)||"",{displayMode:at==="block",throwOnError:!1,output:"html"})}),Se=Se.replace(/▁/g,"\u2581\u2581\u2581"),E(),be){var ke=document.createElement("div");return ke.innerHTML=Se,ke.innerText}return setTimeout(function(){return De()},500),Se},[fe]),Ne=Object(S.useRef)();c.WebkitLineClamp=ee,ee&&(X=Object(y.a)(Object(y.a)({},X),c));function Ge(Ae){var de=Ae.target;if(de.tagName.toUpperCase()==="IMG"){if(Ee){var _e=de.getAttribute("src");et(_e),Ve("image")}}else if(de.tagName.toUpperCase()==="A"){var Se=de.getAttribute("href");if(Se.indexOf("office")>-1)Ae.preventDefault(),et(Se),Ve("office");else if(Se.indexOf("application/pdf")>-1)Ae.preventDefault(),et(Se),Ve("pdf");else if(Se.indexOf("text/html")>-1)Ae.preventDefault(),et(Se),Ve("html");else if(Se.startsWith("#")){Ae.preventDefault();var Ie=document.getElementById(Se.replace("#",""));Ie&&Ie.scrollIntoView(!0)}}}var De=function(){var de,_e=(de=Ne.current)===null||de===void 0?void 0:de.querySelectorAll("video");_e==null||_e.forEach(function(Se){if(Se.oncontextmenu=function(){return!1},Se.src.indexOf(".m3u8")>-1&&!Se.canPlayType("application/vnd.apple.mpegurl")){if(z.a.isSupported()){var Ie=new z.a;Ie.loadSource(Se.src),Ie.attachMedia(Se)}}})};Object(S.useEffect)(function(){if(Ne.current&&Ze&&(Ze.match(Z)&&window.PR.prettyPrint()),Ne.current)return Ne.current.addEventListener("click",Ge),function(){Ne.current.removeEventListener("click",Ge),E(),a()}},[Ze,Ne.current,Ge]);var we=function(de){if(!se)return;de.target.nodeName==="IMG"?(Te.current.style.display="flex",Te.current.style.width=de.target.clientWidth+"px",Te.current.style.height=de.target.clientHeight+"px",Te.current.style.top=de.target.offsetTop+"px",Te.current.style.left=de.target.offsetLeft+"px",ze.current.src=de.target.getAttribute("src")):Te.current.style.display="none"};return b.a.createElement("div",{style:{position:"relative"}},b.a.createElement("div",{ref:Ne,style:Object(y.a)({},X),className:"".concat(te||""," markdown-body ").concat(q.a.mdBody),onMouseOver:we,dangerouslySetInnerHTML:{__html:Ze}}),b.a.createElement("div",{ref:Te,className:q.a.button},b.a.createElement(v.a,null,b.a.createElement(M.a,{onClick:function(){return openCrop()}},"\u88C1\u526A"),b.a.createElement(M.a,{onClick:function(){return openEditor()}},"\u7F16\u8F91"))),b.a.createElement("img",{ref:ze,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),b.a.createElement(H.a,{close:!0,data:Xe,type:Xe!=null&&Xe.length?Oe:"",style:Object(y.a)({},me),onClose:function(){return et("")}}))}},"9OqN":function(F,$,j){(function(N,v,O){F.exports=$=v(j("Ib8C"),j("OLod"))})(this,function(N){return N.mode.CTR=function(){var v=N.lib.BlockCipherMode.extend(),O=v.Encryptor=v.extend({processBlock:function(M,y){var m=this._cipher,S=m.blockSize,b=this._iv,p=this._counter;b&&(p=this._counter=b.slice(0),this._iv=void 0);var d=p.slice(0);m.encryptBlock(d,0),p[S-1]=p[S-1]+1|0;for(var t=0;t0&&De.current===ne.length){qe(!1);var pt=H(Vt);pt=pt.filter(function(dt){var At,Mt;return!!((At=dt[0])!==null&&At!==void 0&&At.name&&(Mt=dt[1])!==null&&Mt!==void 0&&Mt.name)}),pt=pt.map(function(dt){return Object(u.a)(Object(u.a)(Object(u.a)({},dt[0]),dt[1]),{},{is_file:!1})}),ae(pt),he()}}else qe(!1),he()});return}if(Ze){var bt=new FormData;bt.append("file",at.file);var ft=Object(K.a)("/api/attachments.json",{method:"post",body:bt},!0);ft.then(function(Et){if(Et.filename){De.current=De.current+1;var Vt=Ge.current.map(function(dt){if(dt.name===(Et==null?void 0:Et.filename)){var At,Mt=Object(u.a)(Object(u.a)({},dt),{},{is_oss:!Ze});return Et!=null&&(At=Et.filename)!==null&&At!==void 0&&At.includes(".in")?(Mt.in_object_key=Et==null?void 0:Et.object,Mt.in_object_size=Et==null?void 0:Et.size,Mt.input=Et==null?void 0:Et.filename,Mt.in_file=at):(Mt.out_object_key=Et==null?void 0:Et.object,Mt.out_object_size=Et==null?void 0:Et.size,Mt.output=Et==null?void 0:Et.filename,Mt.out_file=at),Mt}return dt});if(Ge.current=Object(f.a)(Vt),J(Object(f.a)(Vt)),De.current>0&&De.current===ne.length){qe(!1);var pt=H(Vt);pt=pt.filter(function(dt){var At,Mt;return!!((At=dt[0])!==null&&At!==void 0&&At.name&&(Mt=dt[1])!==null&&Mt!==void 0&&Mt.name)}),pt=pt.map(function(dt){return Object(u.a)(Object(u.a)(Object(u.a)({},dt[0]),dt[1]),{},{is_file:!0})}),ae(pt),he()}}else qe(!1),he()});return}var jt=new A.a({endpoint:me.end_point,region:me.region,accessKeyId:me.access_key_id,accessKeySecret:me.access_key_secret,bucket:me.bucket,stsToken:me.security_token}),Pt=at.name,Xt={container_type:"TestSet",file_name:Pt},Qt=Object(W.a)(),kt="testsets/".concat(oe,"/").concat(Qt).concat(Pt.indexOf(".")>-1?"."+Pt.split(".").pop():"");oe===null&&(kt="testsets/".concat(Qt).concat(Pt.indexOf(".")>-1?"."+Pt.split(".").pop():"")),jt.multipartUpload(kt,new Blob([at.file],{type:at.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Pt+""},url:me==null?void 0:me.callback_url,host:me==null?void 0:me.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(K.e)(Xt)}}).then(function(Et){if(Et.data.status===0){De.current=De.current+1;var Vt=Ge.current.map(function(dt){var At,Mt;if(dt.name===((At=Et.data)===null||At===void 0||((Mt=At.data)===null||Mt===void 0)?void 0:Mt.file_name)){var rr,Fn,yt,St=Object(u.a)(Object(u.a)({},dt),{},{is_oss:!Ze});if((rr=Et.data)!==null&&rr!==void 0&&(Fn=rr.data)!==null&&Fn!==void 0&&(yt=Fn.file_name)!==null&&yt!==void 0&&yt.includes(".in")){var vt,yr,Tr,Bt,Rt,br;St.in_object_key=(vt=Et.data)===null||vt===void 0||((yr=vt.data)===null||yr===void 0)?void 0:yr.object,St.in_object_size=(Tr=Et.data)===null||Tr===void 0||((Bt=Tr.data)===null||Bt===void 0)?void 0:Bt.size,St.input=(Rt=Et.data)===null||Rt===void 0||((br=Rt.data)===null||br===void 0)?void 0:br.file_name,St.in_file=at}else{var $r,Cr,ut,It,Br,Vr;St.out_object_key=($r=Et.data)===null||$r===void 0||((Cr=$r.data)===null||Cr===void 0)?void 0:Cr.object,St.out_object_size=(ut=Et.data)===null||ut===void 0||((It=ut.data)===null||It===void 0)?void 0:It.size,St.output=(Br=Et.data)===null||Br===void 0||((Vr=Br.data)===null||Vr===void 0)?void 0:Vr.file_name,St.out_file=at}return St}return dt});if(Ge.current=Object(f.a)(Vt),J(Object(f.a)(Vt)),De.current>0&&De.current===ne.length){qe(!1);var pt=H(Vt);pt=pt.filter(function(dt){var At,Mt;return!!((At=dt[0])!==null&&At!==void 0&&At.name&&(Mt=dt[1])!==null&&Mt!==void 0&&Mt.name)}),pt=pt.map(function(dt){return Object(u.a)(Object(u.a)(Object(u.a)({},dt[0]),dt[1]),{},{is_file:!0})}),ae(pt),he()}}})},Ie=function(at){return new Promise(function(ot,Ct){for(var bt=0,ft=[],jt=function(Qt){at[Qt].file.slice(0,1).arrayBuffer().then(function(){bt++,bt===at.length&&(ft.length?(s.b.warn("".concat(ft.join("\uFF0C"),"\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01")),Ct()):ot(at))}).catch(function(kt){console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",kt),bt++,ft.push(at[Qt].name),bt===at.length&&(ft.length?(s.b.warn("".concat(ft.join("\uFF0C"),"\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01")),Ct()):ot(at))})},Pt=0;Pt100)return s.b.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(at.name))return s.b.warn("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;var ot={name:at.name,uid:at.uid,file:at,percent:0};return ne.push(ot),Ge.current=Object(f.a)(ne),J(Object(f.a)(ne)),!1}},nt=H(ne);return console.log(ne,nt,"fileList"),g.a.createElement(i.a,{visible:xe,wrapClassName:ge,onOk:ke,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:Je},onCancel:we,width:"1000px",title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},g.a.createElement("div",{className:E.a.wrap},ne.length?g.a.createElement("div",null,g.a.createElement(b.a,{justify:"space-between",align:"middle",className:"mb20"},g.a.createElement("div",{style:{visibility:te?"visible":"hidden"}},"\u6D4B\u8BD5\u7528\u4F8B\u7C7B\u578B\uFF1A",g.a.createElement(d.a.Group,{className:"ml10",value:rt,onChange:function(at){return Le(at.target.value)}},g.a.createElement(d.a,{value:!1},"\u6587\u672C"),g.a.createElement(d.a,{value:!0},"\u6587\u4EF6"))),g.a.createElement(_.a,Ye,g.a.createElement(l.a,{className:E.a.btnS},"\u4E0A\u4F20\u6587\u4EF6"))),g.a.createElement(q,{data:nt,onRemove:_e})):g.a.createElement("div",{className:E.a.noData},g.a.createElement("img",{src:k.a,alt:""}),g.a.createElement(_.a,Ye,g.a.createElement(l.a,{className:E.a.btn},"\u4E0A\u4F20\u6587\u4EF6"))),g.a.createElement("div",{className:E.a.text},"\u4E0A\u4F20\u9650\u5236\uFF1A",g.a.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",g.a.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",g.a.createElement("br",null),"3\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",g.a.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",g.a.createElement("br",null))))},q=function(ce){var he=ce.data,ae=he===void 0?[]:he,xe=ce.onRemove,ge=ce.width,oe=ge===void 0?"auto":ge,se=ce.showScore,te=se===void 0?!1:se,be=ce.disabled,ee=be===void 0?!1:be,ie=ce.inputChange,Ee=ce.onEvaluatingChange,ne=ce.showEvaluatingSetting,J=ne===void 0?!1:ne,X={value:"",filename:"",dataUrl:""},Q=Object(C.useState)(Object(u.a)({},X)),me=Object(c.a)(Q,2),fe=me[0],Te=me[1],ze=function(et){var rt=document.createElement("a");document.body.appendChild(rt);var Le=URL.createObjectURL(et.file);rt.href=Le,rt.download=et.name,rt.click(),URL.revokeObjectURL(Le),document.body.removeChild(rt)},Je=function(et,rt){Object(z.y)(et,rt)},qe=function(et,rt){i.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:g.a.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:function(){xe(et,rt)},onCancel:function(){}})};return ae.length?g.a.createElement("div",{style:{width:oe}},g.a.createElement("div",{className:E.a.head},J&&g.a.createElement("div",{style:{width:"10%"}},"\u9690\u85CF",g.a.createElement(m.a,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},g.a.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),g.a.createElement("div",{style:{width:"20%"}},"\u7528\u4F8B"),g.a.createElement("div",{style:{width:te?"25%":"35%",padding:"0 12px"}},"\u8F93\u5165"),g.a.createElement("div",{style:{width:te?"25%":"35%",padding:"0 12px"}},"\u8F93\u51FA"),te&&g.a.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),J&&g.a.createElement("div",{style:{width:"20%"}},"\u9884\u671F\u8F93\u51FA",g.a.createElement(m.a,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},g.a.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),J&&g.a.createElement("div",{style:{width:"20%"}},"\u7279\u6B8A\u5224\u5B9A",g.a.createElement(m.a,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},g.a.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),g.a.createElement("div",{style:{width:"10%"}},"\u64CD\u4F5C")),ae.map(function(Xe,et){var rt,Le,Oe,Ve;return g.a.createElement("div",{key:et,className:E.a.list},J&&g.a.createElement("div",{style:{width:"10%"}},g.a.createElement(M.a,{checked:!!Xe.hidden,onChange:function(Ne){Ee(Ne.target.checked?1:0,et,"hidden")}})),g.a.createElement("div",{style:{width:"20%"}},"\u6D4B\u8BD5\u7528\u4F8B",et+1),g.a.createElement("div",{className:E.a.info,style:{width:te?"25%":"35%"}},g.a.createElement("span",{title:Xe.input||((rt=Xe[0])===null||rt===void 0?void 0:rt.name),onClick:Object(a.a)(R.a.mark(function Ze(){var Ne,Ge;return R.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(Xe.input?Xe.input_file_url?Ne=Xe.input_file_url:Ne=Xe.in_file:Ne=Xe[0],!(typeof Ne=="string")){we.next=14;break}return we.next=4,fetch(Ne,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 4:return Ge=we.sent,we.t0=Te,we.next=8,Ge.text();case 8:we.t1=we.sent,we.t2=Ne,we.t3={value:we.t1,filename:"",dataUrl:we.t2},(0,we.t0)(we.t3),we.next=18;break;case 14:return we.next=16,Object(z.H)(Ne.file);case 16:Ge=we.sent,Te({value:Ge.text,filename:Ne.name,dataUrl:Ge.link});case 18:case"end":return we.stop()}},Ze)}))},Xe.input||((Le=Xe[0])===null||Le===void 0?void 0:Le.name))),g.a.createElement("div",{className:E.a.info,style:{width:te?"25%":"35%"}},g.a.createElement("span",{title:Xe.output||((Oe=Xe[1])===null||Oe===void 0?void 0:Oe.name),onClick:Object(a.a)(R.a.mark(function Ze(){var Ne,Ge;return R.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(Xe.input?Xe.output_file_url?Ne=Xe.output_file_url:Ne=Xe.out_file:Ne=Xe[1],!(typeof Ne=="string")){we.next=14;break}return we.next=4,fetch(Ne,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 4:return Ge=we.sent,we.t0=Te,we.next=8,Ge.text();case 8:we.t1=we.sent,we.t2=Ne,we.t3={value:we.t1,filename:"",dataUrl:we.t2},(0,we.t0)(we.t3),we.next=18;break;case 14:return we.next=16,Object(z.H)(Ne.file);case 16:Ge=we.sent,Te({value:Ge.text,filename:Ne.name,dataUrl:Ge.link});case 18:case"end":return we.stop()}},Ze)}))},Xe.output||((Ve=Xe[1])===null||Ve===void 0?void 0:Ve.name))),te&&g.a.createElement("div",{style:{width:"20%"}},g.a.createElement(v.a,{disabled:ee,style:{width:"70%"},onChange:function(Ne){return ie(Ne,et)},value:Xe.score}),g.a.createElement("span",null,"\xA0%")),J&&g.a.createElement("div",{style:{width:"20%"}},g.a.createElement(M.a,{checked:Xe.is_invisible||!1,onChange:function(Ne){Ee(Ne.target.checked,et,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),J&&g.a.createElement("div",{style:{width:"20%"}},g.a.createElement(M.a,{checked:Xe.last_match_rule||!1,onChange:function(Ne){Ee(Ne.target.checked,et,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),g.a.createElement("div",{onClick:function(){return qe(Xe,et)},style:{width:"10%"}},g.a.createElement("span",{className:E.a.del},"\u5220\u9664")))}),g.a.createElement(U.a,{close:!0,data:fe.dataUrl,filename:fe.filename,type:fe.dataUrl.length?"txt":"",onClose:function(){return Te(Object(u.a)({},X))},monacoEditor:{value:fe.value,language:"txt",onChange:function(){},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):g.a.createElement(g.a.Fragment,null)};$.b=V},BU3w:function(F,$,j){"use strict";j.d($,"a",function(){return m});var N=j("MNnm"),v="rc-util-key";function O(S){if(S.attachTo)return S.attachTo;var b=document.querySelector("head");return b||document.body}function M(S){var b,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(N.a)())return null;var d=document.createElement("style");if((b=p.csp)===null||b===void 0?void 0:b.nonce){var t;d.nonce=(t=p.csp)===null||t===void 0?void 0:t.nonce}d.innerHTML=S;var l=O(p),r=l.firstChild;return p.prepend&&l.prepend?l.prepend(d):p.prepend&&r?l.insertBefore(d,r):l.appendChild(d),d}var y=new Map;function m(S,b){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=O(p);if(!y.has(d)){var t=M("",p),l=t.parentNode;y.set(d,l),l.removeChild(t)}var r=Array.from(y.get(d).children).find(function(a){return a.tagName==="STYLE"&&a[v]===b});if(r){var i,o;if(((i=p.csp)===null||i===void 0?void 0:i.nonce)&&r.nonce!==((o=p.csp)===null||o===void 0?void 0:o.nonce)){var s;r.nonce=(s=p.csp)===null||s===void 0?void 0:s.nonce}return r.innerHTML!==S&&(r.innerHTML=S),r}var u=M(S,p);return u[v]=b,u}},Bd2K:function(F,$,j){(function(N){N(j("VrN/"),j("osHv"))})(function(N){N.defineOption("autoCloseTags",!1,function(p,d,t){if(t!=N.Init&&t&&p.removeKeyMap("autoCloseTags"),!d)return;var l={name:"autoCloseTags"};(typeof d!="object"||d.whenClosing!==!1)&&(l["'/'"]=function(r){return m(r)}),(typeof d!="object"||d.whenOpening!==!1)&&(l["'>'"]=function(r){return M(r)}),p.addKeyMap(l)});var v=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],O=["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 M(p){if(p.getOption("disableInput"))return N.Pass;for(var d=p.listSelections(),t=[],l=p.getOption("autoCloseTags"),r=0;ri.ch&&(c=c.slice(0,c.length-o.end+i.ch));var h=c.toLowerCase();if(!c||o.type=="string"&&(o.end!=i.ch||!/[\"\']/.test(o.string.charAt(o.string.length-1))||o.string.length==1)||o.type=="tag"&&a.close||o.string.indexOf("/")==i.ch-o.start-1||w&&S(w,h)>-1||b(p,s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(u)||[],c,i,!0))return N.Pass;var R=typeof l=="object"&&l.emptyTags;if(R&&S(R,c)>-1){t[r]={text:"/>",newPos:N.Pos(i.line,i.ch+2)};continue}var C=_&&S(_,h)>-1;t[r]={indent:C,text:">"+(C?`
`:"")+""+c+">",newPos:C?N.Pos(i.line+1,0):N.Pos(i.line,i.ch+1)}}for(var g=typeof l=="object"&&l.dontIndentOnAutoClose,r=d.length-1;r>=0;r--){var x=t[r];p.replaceRange(x.text,d[r].head,d[r].anchor,"+insert");var E=p.listSelections().slice(0);E[r]={head:x.newPos,anchor:x.newPos},p.setSelections(E),!g&&x.indent&&(p.indentLine(x.newPos.line,null,!0),p.indentLine(x.newPos.line+1,null,!0))}}function y(p,d){for(var t=p.listSelections(),l=[],r=d?"/":"",i=p.getOption("autoCloseTags"),o=typeof i=="object"&&i.dontIndentOnSlash,s=0;s"&&(w+=">"),l[s]=w}if(p.replaceSelections(l),t=p.listSelections(),!o)for(var s=0;s=0&&d[u]==t;u--)++s;l=o.to;for(var u=1;u0){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:"",d=[],t=0;t=0;d--){var t=O().key(d);p(M(t),t)}}function S(p){return O().removeItem(p)}function b(){return O().clear()}},DlQD:function(F,$,j){(function(N,v){F.exports=v()})(this,function(){"use strict";function N(De,we){for(var Ae=0;AeDe.length)&&(we=De.length);for(var Ae=0,de=new Array(we);Ae=De.length?{done:!0}:{done:!1,value:De[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 Ae=De[Symbol.iterator](),Ae.next.bind(Ae)}function m(De,we){return we={exports:{}},De(we,we.exports),we.exports}var S=m(function(De){function we(){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 Ae(de){De.exports.defaults=de}De.exports={defaults:we(),getDefaults:we,changeDefaults:Ae}}),b=S.defaults,p=S.getDefaults,d=S.changeDefaults,t=/[&<>"']/,l=/[&<>"']/g,r=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,o={"&":"&","<":"<",">":">",'"':""","'":"'"},s=function(we){return o[we]};function u(De,we){if(we){if(t.test(De))return De.replace(l,s)}else if(r.test(De))return De.replace(i,s);return De}var a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(De){return De.replace(a,function(we,Ae){return Ae=Ae.toLowerCase(),Ae==="colon"?":":Ae.charAt(0)==="#"?Ae.charAt(1)==="x"?String.fromCharCode(parseInt(Ae.substring(2),16)):String.fromCharCode(+Ae.substring(1)):""})}var f=/(^|[^\[])\^/g;function w(De,we){De=De.source||De,we=we||"";var Ae={replace:function(_e,Se){return Se=Se.source||Se,Se=Se.replace(f,"$1"),De=De.replace(_e,Se),Ae},getRegex:function(){return new RegExp(De,we)}};return Ae}var _=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function R(De,we,Ae){if(De){var de;try{de=decodeURIComponent(c(Ae)).replace(_,"").toLowerCase()}catch(_e){return null}if(de.indexOf("javascript:")===0||de.indexOf("vbscript:")===0||de.indexOf("data:")===0)return null}we&&!h.test(Ae)&&(Ae=T(we,Ae));try{Ae=encodeURI(Ae).replace(/%25/g,"%")}catch(_e){return null}return Ae}var C={},g=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,E=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(De,we){C[" "+De]||(g.test(De)?C[" "+De]=De+"/":C[" "+De]=G(De,"/",!0)),De=C[" "+De];var Ae=De.indexOf(":")===-1;return we.substring(0,2)==="//"?Ae?we:De.replace(x,"$1")+we:we.charAt(0)==="/"?Ae?we:De.replace(E,"$1")+we:De+we}var k={exec:function(){}};function L(De){for(var we=1,Ae,de;we=0&&ke[nt]==="\\";)Ye=!Ye;return Ye?"|":" |"}),de=Ae.split(/ \|/),_e=0;if(de.length>we)de.splice(we);else for(;de.length=de.length?_e.slice(de.length):_e}).join(`
`)}var he=function(){function De(Ae){this.options=Ae||U}var we=De.prototype;return we.space=function(de){var _e=this.rules.block.newline.exec(de);if(_e)return _e[0].length>1?{type:"space",raw:_e[0]}:{raw:`
`}},we.code=function(de,_e){var Se=this.rules.block.code.exec(de);if(Se){var Ie=_e[_e.length-1];if(Ie&&Ie.type==="paragraph")return{raw:Se[0],text:Se[0].trimRight()};var ke=Se[0].replace(/^ {4}/gm,"");return{type:"code",raw:Se[0],codeBlockStyle:"indented",text:this.options.pedantic?ke:P(ke,`
`)}}},we.fences=function(de){var _e=this.rules.block.fences.exec(de);if(_e){var Se=_e[0],Ie=ce(Se,_e[3]||"");return{type:"code",raw:Se,lang:_e[2]?_e[2].trim():_e[2],text:Ie}}},we.heading=function(de){var _e=this.rules.block.heading.exec(de);if(_e)return{type:"heading",raw:_e[0],depth:_e[1].length,text:_e[2]}},we.nptable=function(de){var _e=this.rules.block.nptable.exec(de);if(_e){var Se={type:"table",header:H(_e[1].replace(/^ *| *\| *$/g,"")),align:_e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:_e[3]?_e[3].replace(/\n$/,"").split(`
`):[],raw:_e[0]};if(Se.header.length===Se.align.length){var Ie=Se.align.length,ke;for(ke=0;ke ?/gm,"");return{type:"blockquote",raw:_e[0],text:Se}}},we.list=function(de){var _e=this.rules.block.list.exec(de);if(_e){for(var Se=_e[0],Ie=_e[2],ke=Ie.length>1,Ye=Ie[Ie.length-1]===")",nt={type:"list",raw:Se,ordered:ke,start:ke?+Ie.slice(0,-1):"",loose:!1,items:[]},lt=_e[0].match(this.rules.block.item),at=!1,ot,Ct,bt,ft,jt,Pt,Xt,Qt=lt.length,kt=0;kt1||this.options.smartLists&&bt!==Ie)&&(ft=lt.slice(kt+1).join(`
`),nt.raw=nt.raw.substring(0,nt.raw.length-ft.length),kt=Qt-1)),jt=at||/\n\n(?!\s*$)/.test(ot),kt!==Qt-1&&(at=ot.charAt(ot.length-1)===`
`,jt||(jt=at)),jt&&(nt.loose=!0),Pt=/^\[[ xX]\] /.test(ot),Xt=void 0,Pt&&(Xt=ot[1]!==" ",ot=ot.replace(/^\[[ xX]\] +/,"")),nt.items.push({type:"list_item",raw:Se,task:Pt,checked:Xt,loose:jt,text:ot});return nt}},we.html=function(de){var _e=this.rules.block.html.exec(de);if(_e)return{type:this.options.sanitize?"paragraph":"html",raw:_e[0],pre:!this.options.sanitizer&&(_e[1]==="pre"||_e[1]==="script"||_e[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):V(_e[0]):_e[0]}},we.def=function(de){var _e=this.rules.block.def.exec(de);if(_e){_e[3]&&(_e[3]=_e[3].substring(1,_e[3].length-1));var Se=_e[1].toLowerCase().replace(/\s+/g," ");return{tag:Se,raw:_e[0],href:_e[2],title:_e[3]}}},we.table=function(de){var _e=this.rules.block.table.exec(de);if(_e){var Se={type:"table",header:H(_e[1].replace(/^ *| *\| *$/g,"")),align:_e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:_e[3]?_e[3].replace(/\n$/,"").split(`
`):[]};if(Se.header.length===Se.align.length){Se.raw=_e[0];var Ie=Se.align.length,ke;for(ke=0;ke/i.test(Ie[0])&&(_e=!1),!Se&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ie[0])?Se=!0:Se&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ie[0])&&(Se=!1),{type:this.options.sanitize?"text":"html",raw:Ie[0],inLink:_e,inRawBlock:Se,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ie[0]):V(Ie[0]):Ie[0]}},we.link=function(de){var _e=this.rules.inline.link.exec(de);if(_e){var Se=q(_e[2],"()");if(Se>-1){var Ie=_e[0].indexOf("!")===0?5:4,ke=Ie+_e[1].length+Se;_e[2]=_e[2].substring(0,Se),_e[0]=_e[0].substring(0,ke).trim(),_e[3]=""}var Ye=_e[2],nt="";if(this.options.pedantic){var lt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ye);lt?(Ye=lt[1],nt=lt[3]):nt=""}else nt=_e[3]?_e[3].slice(1,-1):"";Ye=Ye.trim().replace(/^<([\s\S]*)>$/,"$1");var at=Z(_e,{href:Ye&&Ye.replace(this.rules.inline._escapes,"$1"),title:nt&&nt.replace(this.rules.inline._escapes,"$1")},_e[0]);return at}},we.reflink=function(de,_e){var Se;if((Se=this.rules.inline.reflink.exec(de))||(Se=this.rules.inline.nolink.exec(de))){var Ie=(Se[2]||Se[1]).replace(/\s+/g," ");if(Ie=_e[Ie.toLowerCase()],!Ie||!Ie.href){var ke=Se[0].charAt(0);return{type:"text",raw:ke,text:ke}}var Ye=Z(Se,Ie,Se[0]);return Ye}},we.strong=function(de,_e,Se){Se===void 0&&(Se="");var Ie=this.rules.inline.strong.start.exec(de);if(Ie&&(!Ie[1]||Ie[1]&&(Se===""||this.rules.inline.punctuation.exec(Se)))){_e=_e.slice(-1*de.length);var ke=Ie[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ke.lastIndex=0;for(var Ye;(Ie=ke.exec(_e))!=null;)if(Ye=this.rules.inline.strong.middle.exec(_e.slice(0,Ie.index+3)),Ye)return{type:"strong",raw:de.slice(0,Ye[0].length),text:de.slice(2,Ye[0].length-2)}}},we.em=function(de,_e,Se){Se===void 0&&(Se="");var Ie=this.rules.inline.em.start.exec(de);if(Ie&&(!Ie[1]||Ie[1]&&(Se===""||this.rules.inline.punctuation.exec(Se)))){_e=_e.slice(-1*de.length);var ke=Ie[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ke.lastIndex=0;for(var Ye;(Ie=ke.exec(_e))!=null;)if(Ye=this.rules.inline.em.middle.exec(_e.slice(0,Ie.index+2)),Ye)return{type:"em",raw:de.slice(0,Ye[0].length),text:de.slice(1,Ye[0].length-1)}}},we.codespan=function(de){var _e=this.rules.inline.code.exec(de);if(_e){var Se=_e[2].replace(/\n/g," "),Ie=/[^ ]/.test(Se),ke=Se.startsWith(" ")&&Se.endsWith(" ");return Ie&&ke&&(Se=Se.substring(1,Se.length-1)),Se=V(Se,!0),{type:"codespan",raw:_e[0],text:Se}}},we.br=function(de){var _e=this.rules.inline.br.exec(de);if(_e)return{type:"br",raw:_e[0]}},we.del=function(de){var _e=this.rules.inline.del.exec(de);if(_e)return{type:"del",raw:_e[0],text:_e[1]}},we.autolink=function(de,_e){var Se=this.rules.inline.autolink.exec(de);if(Se){var Ie,ke;return Se[2]==="@"?(Ie=V(this.options.mangle?_e(Se[1]):Se[1]),ke="mailto:"+Ie):(Ie=V(Se[1]),ke=Ie),{type:"link",raw:Se[0],text:Ie,href:ke,tokens:[{type:"text",raw:Ie,text:Ie}]}}},we.url=function(de,_e){var Se;if(Se=this.rules.inline.url.exec(de)){var Ie,ke;if(Se[2]==="@")Ie=V(this.options.mangle?_e(Se[0]):Se[0]),ke="mailto:"+Ie;else{var Ye;do Ye=Se[0],Se[0]=this.rules.inline._backpedal.exec(Se[0])[0];while(Ye!==Se[0]);Ie=V(Se[0]),Se[1]==="www."?ke="http://"+Ie:ke=Ie}return{type:"link",raw:Se[0],text:Ie,href:ke,tokens:[{type:"text",raw:Ie,text:Ie}]}}},we.inlineText=function(de,_e,Se){var Ie=this.rules.inline.text.exec(de);if(Ie){var ke;return _e?ke=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ie[0]):V(Ie[0]):Ie[0]:ke=V(this.options.smartypants?Se(Ie[0]):Ie[0]),{type:"text",raw:Ie[0],text:ke}}},De}(),ae=z.noopTest,xe=z.edit,ge=z.merge,oe={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:ae,table:ae,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};oe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,oe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,oe.def=xe(oe.def).replace("label",oe._label).replace("title",oe._title).getRegex(),oe.bullet=/(?:[*+-]|\d{1,9}[.)])/,oe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,oe.item=xe(oe.item,"gm").replace(/bull/g,oe.bullet).getRegex(),oe.list=xe(oe.list).replace(/bull/g,oe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+oe.def.source+")").getRegex(),oe._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",oe._comment=//,oe.html=xe(oe.html,"i").replace("comment",oe._comment).replace("tag",oe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),oe.paragraph=xe(oe._paragraph).replace("hr",oe.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",oe._tag).getRegex(),oe.blockquote=xe(oe.blockquote).replace("paragraph",oe.paragraph).getRegex(),oe.normal=ge({},oe),oe.gfm=ge({},oe.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*|$)"}),oe.gfm.nptable=xe(oe.gfm.nptable).replace("hr",oe.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",oe._tag).getRegex(),oe.gfm.table=xe(oe.gfm.table).replace("hr",oe.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",oe._tag).getRegex(),oe.pedantic=ge({},oe.normal,{html:xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",oe._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:ae,paragraph:xe(oe.normal._paragraph).replace("hr",oe.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",oe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var se={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ae,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:ae,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",se.punctuation=xe(se.punctuation).replace(/punctuation/g,se._punctuation).getRegex(),se._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",se._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",se.em.start=xe(se.em.start).replace(/punctuation/g,se._punctuation).getRegex(),se.em.middle=xe(se.em.middle).replace(/punctuation/g,se._punctuation).replace(/overlapSkip/g,se._overlapSkip).getRegex(),se.em.endAst=xe(se.em.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.em.endUnd=xe(se.em.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.start=xe(se.strong.start).replace(/punctuation/g,se._punctuation).getRegex(),se.strong.middle=xe(se.strong.middle).replace(/punctuation/g,se._punctuation).replace(/blockSkip/g,se._blockSkip).getRegex(),se.strong.endAst=xe(se.strong.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.endUnd=xe(se.strong.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.blockSkip=xe(se._blockSkip,"g").getRegex(),se.overlapSkip=xe(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=xe(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=xe(se.tag).replace("comment",oe._comment).replace("attribute",se._attribute).getRegex(),se._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,se._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,se._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,se.link=xe(se.link).replace("label",se._label).replace("href",se._href).replace("title",se._title).getRegex(),se.reflink=xe(se.reflink).replace("label",se._label).getRegex(),se.reflinkSearch=xe(se.reflinkSearch,"g").replace("reflink",se.reflink).replace("nolink",se.nolink).getRegex(),se.normal=ge({},se),se.pedantic=ge({},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:xe(/^!?\[(label)\]\((.*?)\)/).replace("label",se._label).getRegex(),reflink:xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",se._label).getRegex()}),se.gfm=ge({},se.normal,{escape:xe(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)),we+=""+de+";";return we}var J=function(){function De(Ae){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ae||be,this.options.tokenizer=this.options.tokenizer||new he,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var de={block:ee.normal,inline:ie.normal};this.options.pedantic?(de.block=ee.pedantic,de.inline=ie.pedantic):this.options.gfm&&(de.block=ee.gfm,this.options.breaks?de.inline=ie.breaks:de.inline=ie.gfm),this.tokenizer.rules=de}De.lex=function(de,_e){var Se=new De(_e);return Se.lex(de)};var we=De.prototype;return we.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},we.blockTokens=function(de,_e,Se){_e===void 0&&(_e=[]),Se===void 0&&(Se=!0),de=de.replace(/^ +$/gm,"");for(var Ie,ke,Ye,nt;de;){if(Ie=this.tokenizer.space(de)){de=de.substring(Ie.raw.length),Ie.type&&_e.push(Ie);continue}if(Ie=this.tokenizer.code(de,_e)){de=de.substring(Ie.raw.length),Ie.type?_e.push(Ie):(nt=_e[_e.length-1],nt.raw+=`
`+Ie.raw,nt.text+=`
`+Ie.text);continue}if(Ie=this.tokenizer.fences(de)){de=de.substring(Ie.raw.length),_e.push(Ie);continue}if(Ie=this.tokenizer.heading(de)){de=de.substring(Ie.raw.length),_e.push(Ie);continue}if(Ie=this.tokenizer.nptable(de)){de=de.substring(Ie.raw.length),_e.push(Ie);continue}if(Ie=this.tokenizer.hr(de)){de=de.substring(Ie.raw.length),_e.push(Ie);continue}if(Ie=this.tokenizer.blockquote(de)){de=de.substring(Ie.raw.length),Ie.tokens=this.blockTokens(Ie.text,[],Se),_e.push(Ie);continue}if(Ie=this.tokenizer.list(de)){for(de=de.substring(Ie.raw.length),Ye=Ie.items.length,ke=0;ke0)for(;(lt=this.tokenizer.rules.inline.reflinkSearch.exec(nt))!=null;)at.includes(lt[0].slice(lt[0].lastIndexOf("[")+1,-1))&&(nt=nt.slice(0,lt.index)+"["+"a".repeat(lt[0].length-2)+"]"+nt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(lt=this.tokenizer.rules.inline.blockSkip.exec(nt))!=null;)nt=nt.slice(0,lt.index)+"["+"a".repeat(lt[0].length-2)+"]"+nt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;de;){if(Ye=this.tokenizer.escape(de)){de=de.substring(Ye.raw.length),_e.push(Ye);continue}if(Ye=this.tokenizer.tag(de,Se,Ie)){de=de.substring(Ye.raw.length),Se=Ye.inLink,Ie=Ye.inRawBlock,_e.push(Ye);continue}if(Ye=this.tokenizer.link(de)){de=de.substring(Ye.raw.length),Ye.type==="link"&&(Ye.tokens=this.inlineTokens(Ye.text,[],!0,Ie)),_e.push(Ye);continue}if(Ye=this.tokenizer.reflink(de,this.tokens.links)){de=de.substring(Ye.raw.length),Ye.type==="link"&&(Ye.tokens=this.inlineTokens(Ye.text,[],!0,Ie)),_e.push(Ye);continue}if(Ye=this.tokenizer.strong(de,nt,ke)){de=de.substring(Ye.raw.length),Ye.tokens=this.inlineTokens(Ye.text,[],Se,Ie),_e.push(Ye);continue}if(Ye=this.tokenizer.em(de,nt,ke)){de=de.substring(Ye.raw.length),Ye.tokens=this.inlineTokens(Ye.text,[],Se,Ie),_e.push(Ye);continue}if(Ye=this.tokenizer.codespan(de)){de=de.substring(Ye.raw.length),_e.push(Ye);continue}if(Ye=this.tokenizer.br(de)){de=de.substring(Ye.raw.length),_e.push(Ye);continue}if(Ye=this.tokenizer.del(de)){de=de.substring(Ye.raw.length),Ye.tokens=this.inlineTokens(Ye.text,[],Se,Ie),_e.push(Ye);continue}if(Ye=this.tokenizer.autolink(de,ne)){de=de.substring(Ye.raw.length),_e.push(Ye);continue}if(!Se&&(Ye=this.tokenizer.url(de,ne))){de=de.substring(Ye.raw.length),_e.push(Ye);continue}if(Ye=this.tokenizer.inlineText(de,Ie,Ee)){de=de.substring(Ye.raw.length),ke=Ye.raw.slice(-1),_e.push(Ye);continue}if(de){var ot="Infinite loop on byte: "+de.charCodeAt(0);if(this.options.silent){console.error(ot);break}else throw new Error(ot)}}return _e},v(De,null,[{key:"rules",get:function(){return{block:ee,inline:ie}}}]),De}(),X=S.defaults,Q=z.cleanUrl,me=z.escape,fe=function(){function De(Ae){this.options=Ae||X}var we=De.prototype;return we.code=function(de,_e,Se){var Ie=(_e||"").match(/\S*/)[0];if(this.options.highlight){var ke=this.options.highlight(de,Ie);ke!=null&&ke!==de&&(Se=!0,de=ke)}return Ie?''+(Se?de:me(de,!0))+`
`:""+(Se?de:me(de,!0))+`
`},we.blockquote=function(de){return`
`+de+`
`},we.html=function(de){return de},we.heading=function(de,_e,Se,Ie){return this.options.headerIds?"
`:""+de+"
`},we.hr=function(){return this.options.xhtml?`
`:`
`},we.list=function(de,_e,Se){var Ie=_e?"ol":"ul",ke=_e&&Se!==1?' start="'+Se+'"':"";return"<"+Ie+ke+`>
`+de+""+Ie+`>
`},we.listitem=function(de){return""+de+`
`},we.checkbox=function(de){return" "},we.paragraph=function(de){return""+de+`
`},we.table=function(de,_e){return _e&&(_e=""+_e+""),`
`},we.tablerow=function(de){return`
`+de+`
`},we.tablecell=function(de,_e){var Se=_e.header?"th":"td",Ie=_e.align?"<"+Se+' align="'+_e.align+'">':"<"+Se+">";return Ie+de+""+Se+`>
`},we.strong=function(de){return""+de+""},we.em=function(de){return""+de+""},we.codespan=function(de){return""+de+""},we.br=function(){return this.options.xhtml?"
":"
"},we.del=function(de){return""+de+""},we.link=function(de,_e,Se){if(de=Q(this.options.sanitize,this.options.baseUrl,de),de===null)return Se;var Ie='"+Se+"",Ie},we.image=function(de,_e,Se){if(de=Q(this.options.sanitize,this.options.baseUrl,de),de===null)return Se;var Ie='
":">",Ie},we.text=function(de){return de},De}(),Te=function(){function De(){}var we=De.prototype;return we.strong=function(de){return de},we.em=function(de){return de},we.codespan=function(de){return de},we.del=function(de){return de},we.html=function(de){return de},we.text=function(de){return de},we.link=function(de,_e,Se){return""+Se},we.image=function(de,_e,Se){return""+Se},we.br=function(){return""},De}(),ze=function(){function De(){this.seen={}}var we=De.prototype;return we.slug=function(de){var _e=de.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(_e)){var Se=_e;do this.seen[Se]++,_e=Se+"-"+this.seen[Se];while(this.seen.hasOwnProperty(_e))}return this.seen[_e]=0,_e},De}(),Je=S.defaults,qe=z.unescape,Xe=function(){function De(Ae){this.options=Ae||Je,this.options.renderer=this.options.renderer||new fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Te,this.slugger=new ze}De.parse=function(de,_e){var Se=new De(_e);return Se.parse(de)};var we=De.prototype;return we.parse=function(de,_e){_e===void 0&&(_e=!0);var Se="",Ie,ke,Ye,nt,lt,at,ot,Ct,bt,ft,jt,Pt,Xt,Qt,kt,Et,Vt,pt,dt=de.length;for(Ie=0;Ie0&&kt.tokens[0].type==="text"?(kt.tokens[0].text=pt+" "+kt.tokens[0].text,kt.tokens[0].tokens&&kt.tokens[0].tokens.length>0&&kt.tokens[0].tokens[0].type==="text"&&(kt.tokens[0].tokens[0].text=pt+" "+kt.tokens[0].tokens[0].text)):kt.tokens.unshift({type:"text",text:pt}):Qt+=pt),Qt+=this.parse(kt.tokens,Xt),bt+=this.renderer.listitem(Qt,Vt,Et);Se+=this.renderer.list(bt,jt,Pt);continue}case"html":{Se+=this.renderer.html(ft.text);continue}case"paragraph":{Se+=this.renderer.paragraph(this.parseInline(ft.tokens));continue}case"text":{for(bt=ft.tokens?this.parseInline(ft.tokens):ft.text;Ie+1An error occurred:
"+Le(Ye.message+"",!0)+"
";throw Ye}}Ne.options=Ne.setOptions=function(De){return et(Ne.defaults,De),Ve(Ne.defaults),Ne},Ne.getDefaults=Oe,Ne.defaults=Ze,Ne.use=function(De){var we=et({},De);if(De.renderer&&function(){var de=Ne.defaults.renderer||new fe,_e=function(ke){var Ye=de[ke];de[ke]=function(){for(var nt=arguments.length,lt=new Array(nt),at=0;at=0;r--){if(!O(l[r]))continue;var i=l[r].split("="),o=unescape(i[0]),s=unescape(i[1]);t(s,o)}}function S(t,l){if(!t)return;M.cookie=escape(t)+"="+escape(l)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function b(t){if(!t||!d(t))return;M.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function p(){m(function(t,l){b(l)})}function d(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(M.cookie)}},E4JC:function(F,$,j){(function(N,v,O){F.exports=$=v(j("Ib8C"),j("ETIr"),j("cv67"),j("K3mO"),j("OLod"))})(this,function(N){return function(){var v=N,O=v.lib,M=O.StreamCipher,y=v.algo,m=[],S=[],b=[],p=y.Rabbit=M.extend({_doReset:function(){for(var t=this._key.words,l=this.cfg.iv,r=0;r<4;r++)t[r]=(t[r]<<8|t[r]>>>24)&16711935|(t[r]<<24|t[r]>>>8)&4278255360;var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,t[0]&4294901760|t[1]&65535,t[3]<<16|t[3]>>>16,t[1]&4294901760|t[2]&65535,t[0]<<16|t[0]>>>16,t[2]&4294901760|t[3]&65535,t[1]<<16|t[1]>>>16,t[3]&4294901760|t[0]&65535];this._b=0;for(var r=0;r<4;r++)d.call(this);for(var r=0;r<8;r++)o[r]^=i[r+4&7];if(l){var s=l.words,u=s[0],a=s[1],c=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,f=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,w=c>>>16|f&4294901760,_=f<<16|c&65535;o[0]^=c,o[1]^=w,o[2]^=f,o[3]^=_,o[4]^=c,o[5]^=w,o[6]^=f,o[7]^=_;for(var r=0;r<4;r++)d.call(this)}},_doProcessBlock:function(t,l){var r=this._X;d.call(this),m[0]=r[0]^r[5]>>>16^r[3]<<16,m[1]=r[2]^r[7]>>>16^r[5]<<16,m[2]=r[4]^r[1]>>>16^r[7]<<16,m[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)m[i]=(m[i]<<8|m[i]>>>24)&16711935|(m[i]<<24|m[i]>>>8)&4278255360,t[l+i]^=m[i]},blockSize:128/32,ivSize:64/32});function d(){for(var t=this._X,l=this._C,r=0;r<8;r++)S[r]=l[r];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0>>0?1:0)|0,this._b=l[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+l[r],o=i&65535,s=i>>>16,u=((o*o>>>17)+o*s>>>15)+s*s,a=((i&4294901760)*i|0)+((i&65535)*i|0);b[r]=u^a}t[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,t[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,t[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,t[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,t[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,t[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,t[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,t[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}v.Rabbit=M._createHelper(p)}(),N.Rabbit})},ELLl:function(F,$,j){(function(N){N(j("VrN/"))})(function(N){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},O=N.Pos;N.defineOption("autoCloseBrackets",!1,function(o,s,u){u&&u!=N.Init&&(o.removeKeyMap(y),o.state.closeBrackets=null),s&&(m(M(s,"pairs")),o.state.closeBrackets=s,o.addKeyMap(y))});function M(o,s){return s=="pairs"&&typeof o=="string"?o:typeof o=="object"&&o[s]!=null?o[s]:v[s]}var y={Backspace:p,Enter:d};function m(o){for(var s=0;s=0;c--){var w=a[c].head;o.replaceRange("",O(w.line,w.ch-1),O(w.line,w.ch+1),"+delete")}}function d(o){var s=b(o),u=s&&M(s,"explode");if(!u||o.getOption("disableInput"))return N.Pass;for(var a=o.listSelections(),c=0;c0;return{anchor:new O(o.anchor.line,o.anchor.ch+(s?-1:1)),head:new O(o.head.line,o.head.ch+(s?1:-1))}}function l(o,s){var u=b(o);if(!u||o.getOption("disableInput"))return N.Pass;var a=M(u,"pairs"),c=a.indexOf(s);if(c==-1)return N.Pass;for(var f=M(u,"closeBefore"),w=M(u,"triples"),_=a.charAt(c+1)==s,h=o.listSelections(),R=c%2==0,C,g=0;g=0&&o.getRange(E,O(E.line,E.ch+3))==s+s+s?T="skipThree":T="skip";else if(_&&E.ch>1&&w.indexOf(s)>=0&&o.getRange(O(E.line,E.ch-2),E)==s+s){if(E.ch>2&&/\bstring/.test(o.getTokenTypeAt(O(E.line,E.ch-2))))return N.Pass;T="addFour"}else if(_){var L=E.ch==0?" ":o.getRange(O(E.line,E.ch-1),E);if(!N.isWordChar(k)&&L!=s&&!N.isWordChar(L))T="both";else return N.Pass}else if(R&&(k.length===0||/\s/.test(k)||f.indexOf(k)>-1))T="both";else return N.Pass;if(!C)C=T;else if(C!=T)return N.Pass}var A=c%2?a.charAt(c-1):s,G=c%2?s:a.charAt(c+1);o.operation(function(){if(C=="skip")o.execCommand("goCharRight");else if(C=="skipThree")for(var K=0;K<3;K++)o.execCommand("goCharRight");else if(C=="surround"){for(var W=o.getSelections(),K=0;K>>24)&16711935|(C<<24|C>>>8)&4278255360}var g=this._hash.words,x=l.words,E=r.words,T=b.words,k=p.words,L=d.words,A=t.words,G,K,W,z,U,P,H,V,q,Z;P=G=g[0],H=K=g[1],V=W=g[2],q=z=g[3],Z=U=g[4];for(var ce,h=0;h<80;h+=1)ce=G+w[_+T[h]]|0,h<16?ce+=o(K,W,z)+x[0]:h<32?ce+=s(K,W,z)+x[1]:h<48?ce+=u(K,W,z)+x[2]:h<64?ce+=a(K,W,z)+x[3]:ce+=c(K,W,z)+x[4],ce=ce|0,ce=f(ce,L[h]),ce=ce+U|0,G=U,U=z,z=f(W,10),W=K,K=ce,ce=P+w[_+k[h]]|0,h<16?ce+=c(H,V,q)+E[0]:h<32?ce+=a(H,V,q)+E[1]:h<48?ce+=u(H,V,q)+E[2]:h<64?ce+=s(H,V,q)+E[3]:ce+=o(H,V,q)+E[4],ce=ce|0,ce=f(ce,A[h]),ce=ce+Z|0,P=Z,Z=q,q=f(V,10),V=H,H=ce;ce=g[1]+W+q|0,g[1]=g[2]+z+Z|0,g[2]=g[3]+U+P|0,g[3]=g[4]+G+H|0,g[4]=g[0]+K+V|0,g[0]=ce},_doFinalize:function(){var w=this._data,_=w.words,h=this._nDataBytes*8,R=w.sigBytes*8;_[R>>>5]|=128<<24-R%32,_[(R+64>>>9<<4)+14]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,w.sigBytes=(_.length+1)*4,this._process();for(var C=this._hash,g=C.words,x=0;x<5;x++){var E=g[x];g[x]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return C},clone:function(){var w=m.clone.call(this);return w._hash=this._hash.clone(),w}});function o(w,_,h){return w^_^h}function s(w,_,h){return w&_|~w&h}function u(w,_,h){return(w|~_)^h}function a(w,_,h){return w&h|_&~h}function c(w,_,h){return w^(_|~h)}function f(w,_){return w<<_|w>>>32-_}O.RIPEMD160=m._createHelper(i),O.HmacRIPEMD160=m._createHmacHelper(i)}(Math),N.RIPEMD160})},ETIr:function(F,$,j){(function(N,v){F.exports=$=v(j("Ib8C"))})(this,function(N){return function(){var v=N,O=v.lib,M=O.WordArray,y=v.enc,m=y.Base64={stringify:function(b){var p=b.words,d=b.sigBytes,t=this._map;b.clamp();for(var l=[],r=0;r>>2]>>>24-r%4*8&255,o=p[r+1>>>2]>>>24-(r+1)%4*8&255,s=p[r+2>>>2]>>>24-(r+2)%4*8&255,u=i<<16|o<<8|s,a=0;a<4&&r+a*.75>>6*(3-a)&63));var c=t.charAt(64);if(c)for(;l.length%4;)l.push(c);return l.join("")},parse:function(b){var p=b.length,d=this._map,t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var l=0;l>>6-r%4*2,s=i|o;t[l>>>2]|=s<<24-l%4*8,l++}return M.create(t,l)}}(),N.enc.Base64})},"F+F2":function(F,$,j){(function(N,v){F.exports=$=v(j("Ib8C"))})(this,function(N){return function(){if(typeof ArrayBuffer!="function")return;var v=N,O=v.lib,M=O.WordArray,y=M.init,m=M.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 b=S.byteLength,p=[],d=0;d>>2]|=S[d]<<24-d%4*8;y.call(this,p,b)}else y.apply(this,arguments)};m.prototype=M}(),N.lib.WordArray})},GRuw:function(F,$,j){(function(N,v,O){F.exports=$=v(j("Ib8C"),j("lPiR"))})(this,function(N){return function(){var v=N,O=v.lib,M=O.WordArray,y=v.algo,m=y.SHA256,S=y.SHA224=m.extend({_doReset:function(){this._hash=new M.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var b=m._doFinalize.call(this);return b.sigBytes-=4,b}});v.SHA224=m._createHelper(S),v.HmacSHA224=m._createHmacHelper(S)}(),N.SHA224})},GfqC:function(F,$,j){"use strict";var N=j("cDcd"),v=j.n(N),O=j("TSYQ"),M=j.n(O);function y(z,U){var P="cannot "+z.method+" "+z.action+" "+U.status+"'",H=new Error(P);return H.status=U.status,H.method=z.method,H.url=z.action,H}function m(z){var U=z.responseText||z.response;if(!U)return U;try{return JSON.parse(U)}catch(P){return U}}function S(z){var U=new XMLHttpRequest;z.onProgress&&U.upload&&(U.upload.onprogress=function(q){q.total>0&&(q.percent=q.loaded/q.total*100),z.onProgress(q)});var P=new FormData;z.data&&Object.keys(z.data).forEach(function(V){var q=z.data[V];if(Array.isArray(q)){q.forEach(function(Z){P.append(V+"[]",Z)});return}P.append(V,z.data[V])}),z.file instanceof Blob?P.append(z.filename,z.file,z.file.name):P.append(z.filename,z.file),U.onerror=function(q){z.onError(q)},U.onload=function(){return U.status<200||U.status>=300?z.onError(y(z,U),m(U)):z.onSuccess(m(U),U)},U.open(z.method,z.action,!0),z.withCredentials&&"withCredentials"in U&&(U.withCredentials=!0);var H=z.headers||{};return H["X-Requested-With"]!==null&&U.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(H).forEach(function(V){H[V]!==null&&U.setRequestHeader(V,H[V])}),U.send(P),{abort:function(){U.abort()}}}var b=+new Date,p=0;function d(){return"rc-upload-"+b+"-"+ ++p}function t(z,U){return z.indexOf(U,z.length-U.length)!==-1}var l=function(z,U){if(z&&U){var P=Array.isArray(U)?U:U.split(","),H=z.name||"",V=z.type||"",q=V.replace(/\/.*$/,"");return P.some(function(Z){var ce=Z.trim();return ce.charAt(0)==="."?t(H.toLowerCase(),ce.toLowerCase()):/\/\*$/.test(ce)?q===ce.replace(/\/.*$/,""):V===ce})}return!0};function r(z,U){var P=z.createReader(),H=[];function V(){P.readEntries(function(q){var Z=Array.prototype.slice.apply(q);H=H.concat(Z);var ce=!Z.length;ce?U(H):V()})}V()}var i=function(U,P,H){var V=function q(Z,ce){ce=ce||"",Z.isFile?Z.file(function(he){H(he)&&(Z.fullPath&&!he.webkitRelativePath&&(Object.defineProperties(he,{webkitRelativePath:{writable:!0}}),he.webkitRelativePath=Z.fullPath.replace(/^\//,""),Object.defineProperties(he,{webkitRelativePath:{writable:!1}})),P([he]))}):Z.isDirectory&&r(Z,function(he){he.forEach(function(ae){q(ae,""+ce+Z.name+"/")})})};U.forEach(function(q){V(q.webkitGetAsEntry())})},o=i,s=Object.assign||function(z){for(var U=1;U=0)continue;if(!Object.prototype.hasOwnProperty.call(z,H))continue;P[H]=z[H]}return P}function w(z,U){if(!(z instanceof U))throw new TypeError("Cannot call a class as a function")}function _(z,U){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:z}function h(z,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);z.prototype=Object.create(U&&U.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(z,U):z.__proto__=U)}var R=function(U){return Object.keys(U).reduce(function(P,H){return(H.substr(0,5)==="data-"||H.substr(0,5)==="aria-"||H==="role")&&(P[H]=U[H]),P},{})},C=function(z){h(U,z);function U(){var P,H,V,q;w(this,U);for(var Z=arguments.length,ce=Array(Z),he=0;he>>2]>>>24-R%4*8&255;f[_+R>>>2]|=C<<24-(_+R)%4*8}else for(var g=0;g>>2]=w[g>>>2];return this.sigBytes+=h,this},clamp:function(){var c=this.words,f=this.sigBytes;c[f>>>2]&=4294967295<<32-f%4*8,c.length=O.ceil(f/4)},clone:function(){var c=d.clone.call(this);return c.words=this.words.slice(0),c},random:function(c){for(var f=[],w=0;w>>2]>>>24-h%4*8&255;_.push((R>>>4).toString(16)),_.push((R&15).toString(16))}return _.join("")},parse:function(c){for(var f=c.length,w=[],_=0;_>>3]|=parseInt(c.substr(_,2),16)<<24-_%8*4;return new t.init(w,f/2)}},i=l.Latin1={stringify:function(c){for(var f=c.words,w=c.sigBytes,_=[],h=0;h>>2]>>>24-h%4*8&255;_.push(String.fromCharCode(R))}return _.join("")},parse:function(c){for(var f=c.length,w=[],_=0;_>>2]|=(c.charCodeAt(_)&255)<<24-_%4*8;return new t.init(w,f)}},o=l.Utf8={stringify:function(c){try{return decodeURIComponent(escape(i.stringify(c)))}catch(f){throw new Error("Malformed UTF-8 data")}},parse:function(c){return i.parse(unescape(encodeURIComponent(c)))}},s=p.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(c){typeof c=="string"&&(c=o.parse(c)),this._data.concat(c),this._nDataBytes+=c.sigBytes},_process:function(c){var f,w=this._data,_=w.words,h=w.sigBytes,R=this.blockSize,C=R*4,g=h/C;c?g=O.ceil(g):g=O.max((g|0)-this._minBufferSize,0);var x=g*R,E=O.min(x*4,h);if(x){for(var T=0;T>>6)+p(128|G&63):p(224|G>>>12&15)+p(128|G>>>6&63)+p(128|G&63)}else{var G=65536+(A.charCodeAt(0)-55296)*1024+(A.charCodeAt(1)-56320);return p(240|G>>>18&7)+p(128|G>>>12&63)+p(128|G>>>6&63)+p(128|G&63)}},t=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,l=function(A){return A.replace(t,d)},r=function(A){var G=[0,2,1][A.length%3],K=A.charCodeAt(0)<<16|(A.length>1?A.charCodeAt(1):0)<<8|(A.length>2?A.charCodeAt(2):0),W=[S.charAt(K>>>18),S.charAt(K>>>12&63),G>=2?"=":S.charAt(K>>>6&63),G>=1?"=":S.charAt(K&63)];return W.join("")},i=M.btoa&&typeof M.btoa=="function"?function(A){return M.btoa(A)}:function(A){if(A.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return A.replace(/[\s\S]{1,3}/g,r)},o=function(A){return i(l(String(A)))},s=function(A){return A.replace(/[+\/]/g,function(G){return G=="+"?"-":"_"}).replace(/=/g,"")},u=function(A,G){return G?s(o(A)):o(A)},a=function(A){return u(A,!0)},c;M.Uint8Array&&(c=function(A,G){for(var K="",W=0,z=A.length;W>>18)+S.charAt(V>>>12&63)+(typeof P!="undefined"?S.charAt(V>>>6&63):"=")+(typeof H!="undefined"?S.charAt(V&63):"=")}return G?s(K):K});var f=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=function(A){switch(A.length){case 4:var G=(7&A.charCodeAt(0))<<18|(63&A.charCodeAt(1))<<12|(63&A.charCodeAt(2))<<6|63&A.charCodeAt(3),K=G-65536;return p((K>>>10)+55296)+p((K&1023)+56320);case 3:return p((15&A.charCodeAt(0))<<12|(63&A.charCodeAt(1))<<6|63&A.charCodeAt(2));default:return p((31&A.charCodeAt(0))<<6|63&A.charCodeAt(1))}},_=function(A){return A.replace(f,w)},h=function(A){var G=A.length,K=G%4,W=(G>0?b[A.charAt(0)]<<18:0)|(G>1?b[A.charAt(1)]<<12:0)|(G>2?b[A.charAt(2)]<<6:0)|(G>3?b[A.charAt(3)]:0),z=[p(W>>>16),p(W>>>8&255),p(W&255)];return z.length-=[0,0,2,1][K],z.join("")},R=M.atob&&typeof M.atob=="function"?function(A){return M.atob(A)}:function(A){return A.replace(/\S{1,4}/g,h)},C=function(A){return R(String(A).replace(/[^A-Za-z0-9\+\/]/g,""))},g=function(A){return _(R(A))},x=function(A){return String(A).replace(/[-_]/g,function(G){return G=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},E=function(A){return g(x(A))},T;M.Uint8Array&&(T=function(A){return Uint8Array.from(C(x(A)),function(G){return G.charCodeAt(0)})});var k=function(){var A=M.Base64;return M.Base64=y,A};if(M.Base64={VERSION:m,atob:C,btoa:i,fromBase64:E,toBase64:u,utob:l,encode:u,encodeURI:a,btou:_,decode:E,noConflict:k,fromUint8Array:c,toUint8Array:T},typeof Object.defineProperty=="function"){var L=function(A){return{value:A,enumerable:!1,writable:!0,configurable:!0}};M.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",L(function(){return E(this)})),Object.defineProperty(String.prototype,"toBase64",L(function(A){return u(this,A)})),Object.defineProperty(String.prototype,"toBase64URI",L(function(){return u(this,!0)}))}}return M.Meteor&&(Base64=M.Base64),F.exports?F.exports.Base64=M.Base64:!(v=[],O=function(){return M.Base64}.apply($,v),O!==void 0&&(F.exports=O)),{Base64:M.Base64}})}).call(this,j("IyRk"))},K3mO:function(F,$,j){(function(N,v,O){F.exports=$=v(j("Ib8C"),j("3y9D"),j("WYAk"))})(this,function(N){return function(){var v=N,O=v.lib,M=O.Base,y=O.WordArray,m=v.algo,S=m.MD5,b=m.EvpKDF=M.extend({cfg:M.extend({keySize:128/32,hasher:S,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,d){for(var t,l=this.cfg,r=l.hasher.create(),i=y.create(),o=i.words,s=l.keySize,u=l.iterations;o.lengthge)){se.next=7;break}return O.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(ge/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),se.abrupt("return",!1);case 7:return W.push({name:xe.name,file:xe}),z(Object(M.a)(W)),A.onChange(W),se.abrupt("return",!1);case 11:case"end":return se.stop()}},ae)}));function he(ae){return ce.apply(this,arguments)}return he}()},Z=function(){var ce=Object(b.a)(l.a.mark(function he(ae,xe){var ge,oe,se,te,be,ee,ie,Ee,ne,J;return l.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return xe.file_name=ae.name,ie=ae.name,Q.next=4,Object(o.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(Ee=Q.sent,Ee.data=JSON.parse(h(Ee.data)),!((Ee==null?void 0:Ee.status)!==0)){Q.next=12;break}return W[W.findIndex(function(me){return me.name===ie})].status="error",W[W.findIndex(function(me){return me.name===ie})].file.status="error",A.onChange(W),O.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Q.abrupt("return");case 12:return H=new w.a({endpoint:Ee==null||((ge=Ee.data)===null||ge===void 0)?void 0:ge.end_point,region:Ee==null||((oe=Ee.data)===null||oe===void 0)?void 0:oe.region,accessKeyId:Ee==null||((se=Ee.data)===null||se===void 0)?void 0:se.access_key_id,accessKeySecret:Ee==null||((te=Ee.data)===null||te===void 0)?void 0:te.access_key_secret,bucket:Ee==null||((be=Ee.data)===null||be===void 0)?void 0:be.bucket,stsToken:Ee==null||((ee=Ee.data)===null||ee===void 0)?void 0:ee.security_token}),console.log(ae,"file"),V(H),ne=ae.name.split("."),ne.pop(),J=xe.realFileName?ne:Object(a.a)(),Q.abrupt("return",new Promise(function(me,fe){try{var Te;H.multipartUpload("".concat(A.identifier,"/").concat(J).concat(ie.indexOf(".")>-1?"."+ie.split(".").pop():""),new Blob([ae.file],{type:ae.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(Je,qe,Xe){try{console.log("\u8FDB\u5EA6",Je,qe,Xe);var et=W.findIndex(function(rt){return rt.name===ie});W[et].file.percent=Je*100,W[et].tempCheckpoint=qe,z(Object(M.a)(W))}catch(rt){}},checkpoint:W[W.findIndex(function(ze){return ze.name===ie})].tempCheckpoint,callback:{customValue:{id:ie+""},url:Ee==null||((Te=Ee.data)===null||Te===void 0)?void 0:Te.callback_url,host:Ee==null?void 0:Ee.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(o.e)(xe)}}).then(function(ze){var Je,qe=W.findIndex(function(Oe){return Oe.name===ie}),Xe="done";if(((Je=ze.data)===null||Je===void 0?void 0:Je.status)===0){var et;ae.response=(et=ze.data)===null||et===void 0?void 0:et.data;var rt=W.findIndex(function(Oe){return Oe.name===ie});W[rt].status="done",W[rt].file.status="done"}else{var Le;O.b.warn((Le=ze.data)===null||Le===void 0?void 0:Le.message),Xe="error"}W[qe].status=Xe,W[qe].file.status=Xe,A.onChange(W),me(ze==null?void 0:ze.data)}).catch(function(ze){W[W.findIndex(function(Je){return Je.name===ie})].status="error",W[W.findIndex(function(Je){return Je.name===ie})].file.status="error",O.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),z(Object(M.a)(W)),A.onChange(W),fe(ze),console.log("err:",ze)})}catch(ze){}}));case 19:case"end":return Q.stop()}},he)}));return function(ae,xe){return ce.apply(this,arguments)}}();return Object(r.useEffect)(function(){W.every(function(ce){return ce==="done"||ce==="error"})&&A.onComplete(W)},[W]),Object(r.useEffect)(function(){if(L){var ce;(ce=H)===null||ce===void 0||ce.cancel()}},[L]),Object(r.useEffect)(function(){A.uploading&&W.map(function(){var ce=Object(b.a)(l.a.mark(function he(ae){var xe,ge;return l.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!((!ae.status||ae.status==="error")&&!L)){se.next=6;break}return ae.status="uploading",ae.file.status="uploading",se.next=5,Z(ae,{login:k==null||((xe=k.userInfo)===null||xe===void 0)?void 0:xe.login,container_type:A.container_type,container_id:A.container_id,description:A.description,realFileName:A.realFileName});case 5:ge=se.sent;case 6:case"end":return se.stop()}},he)}));return function(he){return ce.apply(this,arguments)}}())},[A.uploading]),i.a.createElement(_,Object(N.a)({},q,{height:A.height,className:A.className}),i.a.createElement("p",{className:"ant-upload-hint"},A.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};$.b=Object(c.a)(function(E){var T=E.loading,k=E.globalSetting,L=E.user;return{globalSetting:k,loading:T.models.competitions,user:L}})(x)},KmYQ:function(F,$,j){(function(N,v,O){F.exports=$=v(j("Ib8C"),j("OLod"))})(this,function(N){return N.pad.ZeroPadding={pad:function(v,O){var M=O*4;v.clamp(),v.sigBytes+=M-(v.sigBytes%M||M)},unpad:function(v){for(var O=v.words,M=v.sigBytes-1,M=v.sigBytes-1;M>=0;M--)if(O[M>>>2]>>>24-M%4*8&255){v.sigBytes=M+1;break}}},N.pad.ZeroPadding})},L9qf:function(F,$,j){F.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(F,$,j){"use strict";j.d($,"b",function(){return f}),j.d($,"a",function(){return _});var N=j("1OyB"),v=j("vuIU"),O=j("Ji7U"),M=j("LK+K"),y=j("cDcd"),m=j("rePB"),S=j("Ff2n"),b=j("ODXe"),p=j("4IlW"),d=j("bX4T"),t=j("YrtM"),l=j("TSYQ"),r=j.n(l),i=j("+nKL"),o=j("8OUc"),s=function(H,V){var q=H.prefixCls,Z=H.id,ce=H.flattenOptions,he=H.childrenAsData,ae=H.values,xe=H.searchValue,ge=H.multiple,oe=H.defaultActiveFirstOption,se=H.height,te=H.itemHeight,be=H.notFoundContent,ee=H.open,ie=H.menuItemSelectedIcon,Ee=H.virtual,ne=H.onSelect,J=H.onToggleOpen,X=H.onActiveValue,Q=H.onScroll,me=H.onMouseEnter,fe="".concat(q,"-item"),Te=Object(t.a)(function(){return ce},[ee,ce],function(Ge,De){return De[0]&&Ge[1]!==De[1]}),ze=y.useRef(null),Je=function(De){De.preventDefault()},qe=function(De){ze.current&&ze.current.scrollTo({index:De})},Xe=function(De){for(var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ae=Te.length,de=0;de1&&arguments[1]!==void 0?arguments[1]:!1;return Object(R.a)(P).map(function(V,q){if(!y.isValidElement(V)||!V.type)return null;var Z=V.type.isSelectOptGroup,ce=V.key,he=V.props,ae=he.children,xe=Object(S.a)(he,["children"]);return H||!Z?C(V):Object(h.a)(Object(h.a)({key:"__RC_SELECT_GRP__".concat(ce===null?q:ce,"__"),label:ce},xe),{},{options:g(ae)})}).filter(function(V){return V})}var x=j("2Qr1"),E=j("qNPg"),T=j("U8pU"),k=j("Kwbf"),L=j("WKfj");function A(P){var H=P.mode,V=P.options,q=P.children,Z=P.backfill,ce=P.allowClear,he=P.placeholder,ae=P.getInputElement,xe=P.showSearch,ge=P.onSearch,oe=P.defaultOpen,se=P.autoFocus,te=P.labelInValue,be=P.value,ee=P.inputValue,ie=P.optionLabelProp,Ee=H==="multiple"||H==="tags",ne=xe!==void 0?xe:Ee||H==="combobox",J=V||g(q);if(Object(k.a)(H!=="tags"||J.every(function(fe){return!fe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),H==="tags"||H==="combobox"){var X=J.some(function(fe){return fe.options?fe.options.some(function(Te){return typeof("value"in Te?Te.value:Te.key)=="number"}):typeof("value"in fe?fe.value:fe.key)=="number"});Object(k.a)(!X,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(k.a)(H!=="combobox"||!ie,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(k.a)(H==="combobox"||!Z,"`backfill` only works with `combobox` mode."),Object(k.a)(H==="combobox"||!ae,"`getInputElement` only work with `combobox` mode."),Object(k.b)(H!=="combobox"||!ae||!ce||!he,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ge&&!ne&&H!=="combobox"&&H!=="tags"&&Object(k.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(k.b)(!oe||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(L.d)(be);Object(k.a)(!te||Q.every(function(fe){return Object(T.a)(fe)==="object"&&("key"in fe||"value"in fe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(k.a)(!Ee||Array.isArray(be),"`value` should be array when `mode` is `multiple` or `tags`")}if(q){var me=null;Object(R.a)(q).some(function(fe){if(!y.isValidElement(fe)||!fe.type)return!1;var Te=fe.type;if(Te.isSelectOption)return!1;if(Te.isSelectOptGroup){var ze=Object(R.a)(fe.props.children).every(function(Je){return!y.isValidElement(Je)||!fe.type||Je.type.isSelectOption?!0:(me=Je.type,!1)});return!ze}return me=Te,!0}),me&&Object(k.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(me.displayName||me.name||me,"`.")),Object(k.a)(ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var G=A,K=Object(E.a)({prefixCls:"rc-select",components:{optionList:a},convertChildrenToData:g,flattenOptions:x.d,getLabeledValue:x.e,filterOptions:x.b,isValueDisabled:x.g,findValueOption:x.c,warningProps:G,fillOptionsWithMissingValue:x.a}),W=function(P){Object(O.a)(V,P);var H=Object(M.a)(V);function V(){var q;return Object(N.a)(this,V),q=H.apply(this,arguments),q.selectRef=y.createRef(),q.focus=function(){q.selectRef.current.focus()},q.blur=function(){q.selectRef.current.blur()},q}return Object(v.a)(V,[{key:"render",value:function(){return y.createElement(K,Object.assign({ref:this.selectRef},this.props))}}]),V}(y.Component);W.Option=f,W.OptGroup=_;var z=W,U=$.c=z},M8RZ:function(F,$,j){"use strict";j.d($,"a",function(){return p});var N=j("fWQN"),v=j("mtLc"),O=j("yKVA"),M=j("879j"),y=j("cDcd"),m=j.n(y),S=j("faye"),b=j.n(S),p=function(d){Object(O.a)(l,d);var t=Object(M.a)(l);function l(r){var i;Object(N.a)(this,l),i=t.call(this,r);var o=window.document;return i.node=o.createElement("div"),o.body.appendChild(i.node),i}return Object(v.a)(l,[{key:"render",value:function(){var i=this.props.children;return Object(S.createPortal)(i,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),l}(m.a.Component)},MFOe:function(F,$,j){(function(N){var v=m(),O=S(),M=b(),y=typeof window!="undefined"?window:N;F.exports={assign:v,create:O,trim:M,bind:p,slice:d,each:t,map:l,pluck:r,isList:i,isFunction:o,isObject:s,Global:y};function m(){return Object.assign?Object.assign:function(a,c,f,w){for(var _=1;_=0;s-=1){var u=b.get(s)||new Set;u.forEach(function(a){var c=a.parent,f=a.node;if(d(f)||!a.parent||o.has(a.parent.key))return;if(d(a.parent.node)){o.add(c.key);return}var w=!0,_=!1;(c.children||[]).filter(function(h){return!d(h.node)}).forEach(function(h){var R=h.key,C=t.has(R);w&&!C&&(w=!1),!_&&(C||l.has(R))&&(_=!0)}),w&&t.add(c.key),_&&l.add(c.key),o.add(c.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(v(l,t))}}function y(S,b,p,d,t){for(var l=new Set(S),r=new Set(b),i=0;i<=d;i+=1){var o=p.get(i)||new Set;o.forEach(function(c){var f=c.key,w=c.node,_=c.children,h=_===void 0?[]:_;!l.has(f)&&!r.has(f)&&!t(w)&&h.filter(function(R){return!t(R.node)}).forEach(function(R){l.delete(R.key)})})}r=new Set;for(var s=new Set,u=d;u>=0;u-=1){var a=p.get(u)||new Set;a.forEach(function(c){var f=c.parent,w=c.node;if(t(w)||!c.parent||s.has(c.parent.key))return;if(t(c.parent.node)){s.add(f.key);return}var _=!0,h=!1;(f.children||[]).filter(function(R){return!t(R.node)}).forEach(function(R){var C=R.key,g=l.has(C);_&&!g&&(_=!1),!h&&(g||r.has(C))&&(h=!0)}),_||l.delete(f.key),h&&r.add(f.key),s.add(f.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(v(r,l))}}function m(S,b,p,d){var t=[],l;d?l=d:l=O;var r=new Set(S.filter(function(u){var a=!!p[u];return a||t.push(u),a})),i=new Map,o=0;Object.keys(p).forEach(function(u){var a=p[u],c=a.level,f=i.get(c);f||(f=new Set,i.set(c,f)),f.add(a),o=Math.max(o,c)}),Object(N.a)(!t.length,"Tree missing follow keys: ".concat(t.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var s;return b===!0?s=M(r,i,o,l):s=y(r,b.halfCheckedKeys,i,o,l),s}},OLod:function(F,$,j){(function(N,v,O){F.exports=$=v(j("Ib8C"),j("K3mO"))})(this,function(N){N.lib.Cipher||function(v){var O=N,M=O.lib,y=M.Base,m=M.WordArray,S=M.BufferedBlockAlgorithm,b=O.enc,p=b.Utf8,d=b.Base64,t=O.algo,l=t.EvpKDF,r=M.Cipher=S.extend({cfg:y.extend(),createEncryptor:function(E,T){return this.create(this._ENC_XFORM_MODE,E,T)},createDecryptor:function(E,T){return this.create(this._DEC_XFORM_MODE,E,T)},init:function(E,T,k){this.cfg=this.cfg.extend(k),this._xformMode=E,this._key=T,this.reset()},reset:function(){S.reset.call(this),this._doReset()},process:function(E){return this._append(E),this._process()},finalize:function(E){E&&this._append(E);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function E(T){return typeof T=="string"?x:R}return function(T){return{encrypt:function(k,L,A){return E(L).encrypt(T,k,L,A)},decrypt:function(k,L,A){return E(L).decrypt(T,k,L,A)}}}}()}),i=M.StreamCipher=r.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1}),o=O.mode={},s=M.BlockCipherMode=y.extend({createEncryptor:function(E,T){return this.Encryptor.create(E,T)},createDecryptor:function(E,T){return this.Decryptor.create(E,T)},init:function(E,T){this._cipher=E,this._iv=T}}),u=o.CBC=function(){var E=s.extend();E.Encryptor=E.extend({processBlock:function(k,L){var A=this._cipher,G=A.blockSize;T.call(this,k,L,G),A.encryptBlock(k,L),this._prevBlock=k.slice(L,L+G)}}),E.Decryptor=E.extend({processBlock:function(k,L){var A=this._cipher,G=A.blockSize,K=k.slice(L,L+G);A.decryptBlock(k,L),T.call(this,k,L,G),this._prevBlock=K}});function T(k,L,A){var G,K=this._iv;K?(G=K,this._iv=v):G=this._prevBlock;for(var W=0;W>>2]&255;E.sigBytes-=T}},f=M.BlockCipher=r.extend({cfg:r.cfg.extend({mode:u,padding:c}),reset:function(){var E;r.reset.call(this);var T=this.cfg,k=T.iv,L=T.mode;this._xformMode==this._ENC_XFORM_MODE?E=L.createEncryptor:(E=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,k&&k.words):(this._mode=E.call(L,this,k&&k.words),this._mode.__creator=E)},_doProcessBlock:function(E,T){this._mode.processBlock(E,T)},_doFinalize:function(){var E,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),T.unpad(E)),E},blockSize:128/32}),w=M.CipherParams=y.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),_=O.format={},h=_.OpenSSL={stringify:function(E){var T,k=E.ciphertext,L=E.salt;return L?T=m.create([1398893684,1701076831]).concat(L).concat(k):T=k,T.toString(d)},parse:function(E){var T,k=d.parse(E),L=k.words;return L[0]==1398893684&&L[1]==1701076831&&(T=m.create(L.slice(2,4)),L.splice(0,4),k.sigBytes-=16),w.create({ciphertext:k,salt:T})}},R=M.SerializableCipher=y.extend({cfg:y.extend({format:h}),encrypt:function(E,T,k,L){L=this.cfg.extend(L);var A=E.createEncryptor(k,L),G=A.finalize(T),K=A.cfg;return w.create({ciphertext:G,key:k,iv:K.iv,algorithm:E,mode:K.mode,padding:K.padding,blockSize:E.blockSize,formatter:L.format})},decrypt:function(E,T,k,L){L=this.cfg.extend(L),T=this._parse(T,L.format);var A=E.createDecryptor(k,L).finalize(T.ciphertext);return A},_parse:function(E,T){return typeof E=="string"?T.parse(E,this):E}}),C=O.kdf={},g=C.OpenSSL={execute:function(E,T,k,L){L||(L=m.random(64/8));var A=l.create({keySize:T+k}).compute(E,L),G=m.create(A.words.slice(T),k*4);return A.sigBytes=T*4,w.create({key:A,iv:G,salt:L})}},x=M.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:g}),encrypt:function(E,T,k,L){L=this.cfg.extend(L);var A=L.kdf.execute(k,E.keySize,E.ivSize);L.iv=A.iv;var G=R.encrypt.call(this,E,T,A.key,L);return G.mixIn(A),G},decrypt:function(E,T,k,L){L=this.cfg.extend(L),T=this._parse(T,L.format);var A=L.kdf.execute(k,E.keySize,E.ivSize,T.salt);L.iv=A.iv;var G=R.decrypt.call(this,E,T,A.key,L);return G}})}()})},OZM5:function(F,$,j){"use strict";j.d($,"b",function(){return d}),j.d($,"a",function(){return t}),j.d($,"k",function(){return l}),j.d($,"h",function(){return r}),j.d($,"i",function(){return i}),j.d($,"g",function(){return o}),j.d($,"c",function(){return s}),j.d($,"d",function(){return u}),j.d($,"j",function(){return f}),j.d($,"e",function(){return w}),j.d($,"f",function(){return _});var N=j("KQm4"),v=j("U8pU"),O=j("Ff2n"),M=j("cDcd"),y=j.n(M),m=j("Kwbf"),S=j("WaYH"),b=.25,p=2;function d(h,R){var C=h.slice(),g=C.indexOf(R);return g>=0&&C.splice(g,1),C}function t(h,R){var C=h.slice();return C.indexOf(R)===-1&&C.push(R),C}function l(h){return h.split("-")}function r(h,R){return"".concat(h,"-").concat(R)}function i(h){return h&&h.type&&h.type.isTreeNode}function o(h,R){var C=[h],g=R[h];function x(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];E.forEach(function(T){var k=T.key,L=T.children;C.push(k),x(L)})}return x(g.children),C}function s(h,R){var C=h.clientY,g=R.selectHandle.getBoundingClientRect(),x=g.top,E=g.bottom,T=g.height,k=Math.max(T*b,p);return C<=x+k?-1:C>=E-k?1:0}function u(h,R){if(!h)return;var C=R.multiple;return C?h.slice():h.length?[h[0]]:h}var a=function(R){return R};function c(h,R){if(!h)return[];var C=R||{},g=C.processProps,x=g===void 0?a:g,E=Array.isArray(h)?h:[h];return E.map(function(T){var k=T.children,L=Object(O.a)(T,["children"]),A=c(k,R);return y.a.createElement(S.a,Object.assign({},x(L)),A)})}function f(h){if(!h)return null;var R;if(Array.isArray(h))R={checkedKeys:h,halfCheckedKeys:void 0};else if(Object(v.a)(h)==="object")R={checkedKeys:h.checked||void 0,halfCheckedKeys:h.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return R}function w(h,R){var C=new Set;function g(x){if(C.has(x))return;var E=R[x];if(!E)return;C.add(x);var T=E.parent,k=E.node;if(k.disabled)return;T&&g(T.key)}return(h||[]).forEach(function(x){g(x)}),Object(N.a)(C)}function _(h){var R={};return Object.keys(h).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(R[C]=h[C])}),R}},Ot1p:function(F,$,j){"use strict";var N=j("2qtc"),v=j("kLXV"),O=j("rAM+"),M=j("miYZ"),y=j("tsqr"),m=j("9og8"),S=j("tJVT"),b=j("jrin"),p=j("WmNS"),d=j.n(p),t=j("cDcd"),l=j.n(t),r=j("VrN/"),i=j.n(r),o=j("bdgK"),s=j("p77/"),u=j("Bd2K"),a=j("ELLl"),c=j("19Vz"),f=j("lZu9"),w=j("+NIl"),_=j("kSUc"),h=j("9Bee"),R=function(ke){var Ye=ke.value,nt=Ye===void 0?"":Ye,lt=ke.className,at=ke.showTextOnly,ot=ke.showLines,Ct=ke.style,bt=Ct===void 0?{}:Ct,ft=Object(t.useMemo)(function(){return""},[nt]);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{dangerouslySetInnerHTML:{__html:ft}}))},C=j("0Owb"),g=j("dejd"),x=j("C+DQ"),E=j("1vsH"),T=j("m3rI"),k=[{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 L(ke){var Ye=ke.onActionCallback,nt=ke.title,lt=ke.icon,at=ke.actionName,ot=ke.className,Ct=ot===void 0?"":ot,bt=ke.children;function ft(){Ye(at)}return l.a.createElement("a",{title:nt,className:Ct,onClick:ft},l.a.createElement("i",{className:"md-iconfont ".concat(lt)}),bt)}var A=function(ke){var Ye=ke.watch,nt=ke.showNullButton,lt=ke.onActionCallback,at=ke.fullScreen,ot=ke.insertTemp,Ct=ke.hidetoolBar,bt=ke.uuid,ft=ke.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(E.G)("_educoder_session_login"),"&_educoder_session=").concat(Object(E.G)("_educoder_session"),"&key=").concat(bt,"&api=").concat(encodeURIComponent(T.a.PROXY_SERVER)));var jt=[].concat(k,[{title:"".concat(Ye?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Ye?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return l.a.createElement("ul",{className:"markdown-toolbar-container"},!Ct&&jt.map(function(Pt,Xt){return l.a.createElement("li",{key:Xt},Pt.actionName?l.a.createElement(L,Object(C.a)({},Pt,{onActionCallback:lt})):l.a.createElement("span",{className:"v-line"}))}),nt?l.a.createElement("li",null,l.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:lt},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ot&&l.a.createElement("li",null,l.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ot),onActionCallback:lt},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(L,{icon:"".concat(at?"icon-shrink":"icon-enlarge"),title:at?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:lt})))},G=j("M8RZ"),K=j("+L6B"),W=j("2/Rp"),z=j("y8nQ"),U=j("Vl3Y"),P=j("5NDa"),H=j("5rEg"),V={labelCol:{span:4},wrapperCol:{span:20}},q=function(ke){var Ye=ke.callback,nt=ke.onCancel;function lt(at){Ye(at)}return l.a.createElement(U.a,Object(C.a)({},V,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:lt}),l.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},l.a.createElement(H.a,null)),l.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},l.a.createElement(H.a,null)),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(W.a,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},Z=j("7ahc"),ce=j("HmJG"),he=j("BjJ7"),ae=U.a.useForm,xe={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}},oe=function(ke){var Ye=ke.callback,nt=ke.onCancel,lt=ae(),at=Object(S.a)(lt,1),ot=at[0];function Ct(jt){Ye(jt)}function bt(jt,Pt){if(jt.status===-1){y.b.error(jt.message);return}ot.setFieldsValue({src:"/api/attachments/".concat(jt.id),type:Pt.type})}function ft(jt){var Pt=jt.target.files[0];te(Pt,bt)}return l.a.createElement(U.a,Object(C.a)({form:ot},ge,{className:"upload-image-panel",onFinish:Ct}),l.a.createElement(U.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},l.a.createElement("div",{className:"flex-container"},l.a.createElement(U.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},l.a.createElement(H.a,{style:xe})),l.a.createElement(se,{onFileChange:ft}))),l.a.createElement(U.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},l.a.createElement(H.a,{style:{width:264}})),l.a.createElement(U.a.Item,{style:{textAlign:"right"}},l.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(W.a,{type:"ghost",onClick:nt},"\u53D6\u6D88")))};function se(ke){var Ye=ke.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",onChange:Ye}))}function te(ke,Ye){if(!ke)throw new String("\u6CA1\u6709\u6587\u4EF6");var nt=new FormData;nt.append("editormd-image-file",ke),nt.append("file_param_name","editormd-image-file"),nt.append("byxhr","true");var lt=new window.XMLHttpRequest;lt.withCredentials=!0,lt.addEventListener("load",function(at){Ye(JSON.parse(at.target.responseText),ke)},!1),lt.addEventListener("error",function(at){console.error(at)},!1),lt.open("POST","".concat(he.a,"/api/attachments.json")),lt.send(nt)}var be=j("giR+"),ee=j("fyUT"),ie=j("7Kak"),Ee=j("9yH6"),ne=Ee.a.Group,J={margin:"0 8px"},X=function(ke){var Ye=ke.callback,nt=ke.onCancel;function lt(at){Ye(at)}return l.a.createElement(U.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:lt},l.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},l.a.createElement("span",{style:J},"\u5355\u5143\u683C\u6570\uFF1A"),l.a.createElement("span",{style:J},"\u884C\u6570"),l.a.createElement(U.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},l.a.createElement(ee.a,null)),l.a.createElement("span",{style:J},"\u5217\u6570"),l.a.createElement(U.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},l.a.createElement(ee.a,null))),l.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},l.a.createElement("span",{style:J},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),l.a.createElement(U.a.Item,{name:"align"},l.a.createElement(ne,null,l.a.createElement(Ee.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(Ee.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(Ee.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(Ee.a,{value:"right"},l.a.createElement("i",{className:"fa fa-align-right"}))))),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(W.a,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},Q=j("ErOA"),me=j("7Cbv"),fe="link",Te="upload-image",ze="code-block",Je="add-table",qe="------------",Xe={default:qe,left:":".concat(qe),center:":".concat(qe,":"),right:"".concat(qe,":")},et=j("9VGf"),rt,Le;function Oe(){}var Ve=0,Ze=1e4,Ne="\u2581",Ge=`
**\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 De(ke){return/^\d+$/.test(ke)?"".concat(ke,"px"):ke}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ae=we?"Cmd":"Ctrl",de=["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"],_e=(rt={},Object(b.a)(rt,Ae+"-B","bold"),Object(b.a)(rt,Ae+"-I","italic"),rt),Se=(Le={},Object(b.a)(Le,fe,"\u6DFB\u52A0\u94FE\u63A5"),Object(b.a)(Le,ze,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(b.a)(Le,Te,"\u6DFB\u52A0\u6587\u4EF6"),Object(b.a)(Le,Je,"\u6DFB\u52A0\u8868\u683C"),Le),Ie=$.a=function(ke){var Ye=ke.defaultValue,nt=Ye===void 0?"":Ye,lt=ke.onChange,at=ke.width,ot=at===void 0?"100%":at,Ct=ke.height,bt=Ct===void 0?400:Ct,ft=ke.miniToolbar,jt=ft===void 0?!1:ft,Pt=ke.isFocus,Xt=Pt===void 0?!1:Pt,Qt=ke.watch,kt=ke.insertTemp,Et=ke.mode,Vt=Et===void 0?"markdown":Et,pt=ke.id,dt=pt===void 0?"markdown-editor-id":pt,At=ke.showResizeBar,Mt=At===void 0?!1:At,rr=ke.noStorage,Fn=rr===void 0?!1:rr,yt=ke.showNullButton,St=yt===void 0?!1:yt,vt=ke.hidetoolBar,yr=vt===void 0?!1:vt,Tr=ke.fullScreen,Bt=Tr===void 0?!1:Tr,Rt=ke.onBlur,br=ke.onCMBeforeChange,$r=ke.onFullScreen,Cr=ke.className,ut=Cr===void 0?"":Cr,It=ke.disablePaste,Br=It===void 0?!1:It,Vr=ke.placeholder,An=Vr===void 0?"":Vr,fn=ke.values,zr=fn===void 0?"":fn,Dt=Object(t.useState)(null),dn=Object(S.a)(Dt,2),ct=dn[0],kr=dn[1],mr=Object(t.useState)(nt),ei=Object(S.a)(mr,2),Tn=ei[0],bn=ei[1],di=Object(t.useState)(Qt),ti=Object(S.a)(di,2),sn=ti[0],Hr=ti[1],fi=Object(t.useState)(Bt),hn=Object(S.a)(fi,2),Wr=hn[0],lr=hn[1],nn=Object(t.useState)(""),qt=Object(S.a)(nn,2),Kt=qt[0],er=qt[1],Sr=Object(t.useState)(0),jr=Object(S.a)(Sr,2),Gr=jr[0],_n=jr[1],la=Object(t.useState)(bt),Yi=Object(S.a)(la,2),$i=Yi[0],Oi=Yi[1],pn=Object(t.useState)(!1),Ki=Object(S.a)(pn,2),Zr=Ki[0],ri=Ki[1],Mn=Object(t.useRef)(Object(me.a)()),ln=Object(t.useRef)(!1),Sn=Object(t.useRef)(),hi=Object(t.useRef)(),Kn=Object(t.useRef)(),zn=Object(t.useRef)(),Li=Object(t.useRef)(),Mi=function(){var Nt=Object(m.a)(d.a.mark(function Yt(){var Ut,nr;return d.a.wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:return Rr.next=2,Object(Q.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Mn.current}});case 2:nr=Rr.sent,nr!=null&&(Ut=nr.attachments)!==null&&Ut!==void 0&&Ut.length&&(console.log("cm:",ct,hi),nr.attachments.map(function(dr){dr.content_type.indexOf("image")>-1?ct.replaceSelection(".concat(dr.content_type,")")):dr.content_type.indexOf("video")>-1?ct.replaceSelection('')):dr.content_type.indexOf("pdf")>-1?ct.replaceSelection('').concat(dr.name,"")):ct.replaceSelection("[".concat(dr.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(dr.id,"?type=").concat(dr.content_type,")"))}));case 4:case"end":return Rr.stop()}},Yt)}));return function(){return Nt.apply(this,arguments)}}();Object(t.useEffect)(function(){bn(zr),ct==null||ct.setValue(zr)},[zr]),Object(t.useEffect)(function(){$r==null||$r(Wr)},[Wr]),Object(t.useEffect)(function(){if(hi.current){var Nt=i.a.fromTextArea(hi.current,{mode:Vt,lineNumbers:!jt,lineWrapping:!0,value:nt,autoCloseTags:!0,autoCloseBrackets:!0});Xt&&Nt.focus();function Yt(Ut,nr){if(Br){nr.preventDefault();return}var gr=nr.clipboardData;if(gr){var Rr=gr.types.toString(),dr=gr.items;if(Rr==="Files"||gr.types.indexOf("Files")>-1){if(nr.preventDefault(),Vt=="stex")return;try{var qr,Un=dr[1];((qr=dr[0])===null||qr===void 0?void 0:qr.kind)==="file"&&(Un=dr[0]);var sr=Un.getAsFile(),vi=sr.name.split(".").pop();te(sr,function(Ir){if(Ir.id){var On,Rn,li;(sr==null||((On=sr.type)===null||On===void 0)?void 0:On.indexOf("image"))>-1?Nt.replaceSelection(".concat(Ir.content_type,")")):(sr==null||((Rn=sr.type)===null||Rn===void 0)?void 0:Rn.indexOf("video"))>-1?Nt.replaceSelection('')):(sr==null||((li=sr.type)===null||li===void 0)?void 0:li.indexOf("pdf"))>-1?Nt.replaceSelection('').concat(sr.name,"")):de.includes(vi)?Nt.replaceSelection('').concat(sr.name,"")):Nt.replaceSelection("[".concat(sr.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(Ir.id,"?type=").concat(Ir.content_type,")"))}else(Ir==null?void 0:Ir.status)===401&&(document.location.href="/user/login")})}catch(Ir){y.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Nt.on("paste",Yt),Nt.on("dragleave",function(Ut,nr){Kn.current.classList.remove("mouse-hover-md")}),Nt.on("dragover",function(Ut,nr){Kn.current.classList.add("mouse-hover-md")}),Nt.on("drop",function(Ut,nr){Kn.current.classList.add("mouse-hover-md");var gr;if(gr=nr.dataTransfer.files,gr.length>0){nr.preventDefault(),nr.stopPropagation();for(var Rr=function(Un){var sr=gr[Un],vi=sr.name.split(".").pop();te(sr,function(Ir){if(Ir.id){var On,Rn,li;(sr==null||((On=sr.type)===null||On===void 0)?void 0:On.indexOf("image"))>-1?Nt.replaceSelection(".concat(Ir.content_type,")")):(sr==null||((Rn=sr.type)===null||Rn===void 0)?void 0:Rn.indexOf("video"))>-1?Nt.replaceSelection('')):(sr==null||((li=sr.type)===null||li===void 0)?void 0:li.indexOf("pdf"))>-1?Nt.replaceSelection('').concat(sr.name,"")):de.includes(vi)?Nt.replaceSelection('').concat(sr.name,"")):Nt.replaceSelection("[".concat(sr.name,"](").concat(T.a.API_SERVER,"/api/attachments/").concat(Ir.id,"?type=").concat(Ir.content_type,")"))}else(Ir==null?void 0:Ir.status)===401&&(document.location.href="/user/login")})},dr=0;dr0||dr.target.offsetWidth>0)&&(Gn(),ct.setSize("100%","100%"),ct.refresh())}}catch(qr){gr.e(qr)}finally{gr.f()}});return Ut.observe(hi.current.parentElement),Ut}if(ct){var Yt=Nt();return function(){Yt.unobserve(hi.current.parentElement)}}},[ct,Gn]),Object(t.useEffect)(function(){if(ct){for(var Nt=[],Yt=function(){var dr=nr[Ut];gr=Object(S.a)(dr,2);var qr=gr[0],Un=gr[1],sr=Object(b.a)({},qr,function(){Ni(Un)});Nt.push(sr),ct.addKeyMap(sr)},Ut=0,nr=Object.entries(_e);Ut0){var Nt=new Date().getTime(),Yt=window.sessionStorage.getItem(dt);Nt>=Gr+Ze&&(!Yt||Yt!==Tn)&&(window.sessionStorage.setItem(dt,Tn),ri(!0))}},Ze),Object(t.useEffect)(function(){Hr(Qt)},[ct,Qt]),Object(t.useEffect)(function(){ct&&(Xt&&ct.focus())},[ct,Xt]),Object(t.useEffect)(function(){if(sn&&ct){var Nt=ct.getScrollerElement();function Yt(Ut){var nr=Ut.target;if(Li.current){var gr=nr.scrollTop/nr.scrollHeight;Li.current.scrollTop=Li.current.scrollHeight*gr}}return Nt.addEventListener("scroll",Yt),function(){Nt.removeEventListener("scroll",Yt)}}},[ct,sn]),Object(t.useEffect)(function(){if(ct&&br){function Nt(Yt,Ut){br(Yt,Ut)}return ct.on("beforeChange",Nt),function(){ct.off("beforeChange",Nt)}}},[ct,br]),Object(t.useEffect)(function(){if(ct&&Rt){function Nt(){Rt(ct.getValue())}return ct.on("blur",Nt),function(){ct.off("blur",Nt)}}},[ct,Rt]),Object(t.useEffect)(function(){if(ct){function Nt(Yt){var Ut=Yt.getValue();bn(Ut),_n(new Date().getTime()),Yt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),lt&<(Ut)}return ct.on("change",Nt),function(){ct.off("change",Nt)}}},[ct,lt]),Object(t.useEffect)(function(){ct&&(nt==null?(ct.setValue(""),bn("")):nt!==ct.getValue()&&(ct.setValue(nt),bn(nt),ct.setCursor(ct.lineCount(),0)))},[ct,nt]);var Ni=Object(t.useCallback)(function(Nt){var Yt=ct.getCursor(),Ut=ct.getSelection(),nr=Ut.split(`
`);switch(Nt){case"bold":return ct.replaceSelection("**"+Ut+"**"),Ut===""&&ct.setCursor(Yt.line,Yt.ch+2),ct.focus();case"italic":return ct.replaceSelection("*"+Ut+"*"),Ut===""&&ct.setCursor(Yt.line,Yt.ch+1),ct.focus();case"code":return ct.replaceSelection("`"+Ut+"`"),Ut===""&&ct.setCursor(Yt.line,Yt.ch+1),ct.focus();case"inline-latex":return ct.replaceSelection("`$$"+Ut+"$$`"),Ut===""&&ct.setCursor(Yt.line,Yt.ch+3),ct.focus();case"latex":return ct.replaceSelection("```latex\n"+Ut+"\n```"),ct.setCursor(Yt.line+1,Ut.length+1),ct.focus();case"line-break":return ct.replaceSelection(`
`),ct.focus();case"list-ul":return Ut===""?ct.replaceSelection("- "+Ut):ct.replaceSelection(nr.map(function(gr){return gr===""?"":"- ".concat(gr)}).join(`
`)),ct.focus();case"list-ol":return Ut===""?ct.replaceSelection("1. "+Ut):ct.replaceSelection(nr.map(function(gr,Rr){return gr===""?"":"".concat(Rr+1,". ").concat(gr)}).join(`
`)),ct.focus();case"add-null-ch":return Ut===""&&ct.setCursor(Yt.line,Yt.ch+1),ct.replaceSelection(Ne),ct.focus();case"inster-template-1":return Ut===""&&ct.setCursor(Yt.line,Yt.ch),ct.replaceSelection(Ge),ct.focus();case"eraser":return ct.setValue(""),ct.focus();case"trigger-watch":return Hr(!sn),ct.focus();case"trigger-full-screen":return lr(!Wr),ct.focus();case fe:er(fe);return;case ze:er(ze);return;case Te:er(Te);return;case Je:er(Je);return;default:throw new Error}},[ct,sn,Wr]),pi=Object(t.useCallback)(function(Nt){er("");switch(Kt){case fe:var Yt=Nt.title,Ut=Nt.link;return ct.replaceSelection("[".concat(Yt,"](").concat(Ut,")")),ct.focus();case ze:var nr=Nt.language,gr=Nt.content;return ct.replaceSelection(["```"+nr,gr,"```"].join(`
`)),ct.focus();case Te:var Rr=Nt.src,dr=Nt.alt;return dr?ct.replaceSelection(".concat(Rr,' "').concat(dr,'" )')):ct.replaceSelection("")),ct.focus();case Je:for(var qr=Nt.row,Un=Nt.col,sr=Nt.align,vi=`
`,Ir=0;Ir300&&(qr=300);var Un=bt+qr+"px";Oi(Un)}}return Nt.addEventListener("mousedown",nr),document.addEventListener("mousemove",Rr),document.addEventListener("mouseup",gr),function(){Nt.removeEventListener("mousedown",nr),document.removeEventListener("mousemove",Rr),document.removeEventListener("mouseup",gr)}}},[ct,zn]),Object(t.useEffect)(function(){Oi(bt)},[bt]);var Vn=De(ot),ki=De($i),ni={width:Vn,height:ki},gi=Object(t.useMemo)(function(){if(Gr){var Nt=new Date(Gr),Yt=Nt.getHours(),Ut=Nt.getMinutes(),nr=Nt.getSeconds();return Yt=Yt<10?"0"+Yt:Yt,Ut=Ut<10?"0"+Ut:Ut,nr=nr<10?"0"+nr:nr,"".concat(Yt,":").concat(Ut,":").concat(nr)}return 0},[Gr]);function ji(){window.sessionStorage.removeItem(dt),ri(!1),_n(0)}function ii(){ri(!1),_n(0),ct.setValue(window.sessionStorage.getItem(dt))}function Pr(Nt,Yt){var Ut=ct.getValue();Ut=Ut.replace(Nt,Yt),bn(Ut),ct==null||ct.setValue(Ut)}return l.a.createElement(t.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:Kn},l.a.createElement("div",{className:"markdown-editor-container ".concat(ut," ").concat(sn?"on-preview":""," ").concat(jt?"mini":""," ").concat(Wr?"full-screen":""),style:ni},l.a.createElement(A,{insertTemp:kt,watch:sn,fullScreen:Wr,showNullButton:St,onActionCallback:Ni,hidetoolBar:yr,uuid:Mn.current,setOpenPhones:function(){ln.current=!0}}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:hi,placeholder:An})),sn?l.a.createElement("div",{ref:Li,className:"preview-container"},Vt==="stex"&&l.a.createElement(R,{value:Tn}),Vt!=="stex"&&l.a.createElement(h.a,{edit:!0,value:Tn,replaces:Pr})):null))),Mt?l.a.createElement("a",{ref:zn,className:"editor-resize"}):null,l.a.createElement(G.a,null,Se[Kt]?l.a.createElement(v.a,{centered:!0,title:Se[Kt],visible:!0,onCancel:Xn,footer:null,className:"markdown-popup-form"},mi):null))}},PD8m:function(F,$){F.exports={name:"memoryStorage",read:N,write:v,each:O,remove:M,clearAll:y};var j={};function N(m){return j[m]}function v(m,S){j[m]=S}function O(m){for(var S in j)j.hasOwnProperty(S)&&m(j[S],S)}function M(m){delete j[m]}function y(m){j={}}},PVpz:function(F,$,j){(function(N,v,O){F.exports=$=v(j("Ib8C"),j("ETIr"),j("cv67"),j("K3mO"),j("OLod"))})(this,function(N){return function(){var v=N,O=v.lib,M=O.StreamCipher,y=v.algo,m=[],S=[],b=[],p=y.RabbitLegacy=M.extend({_doReset:function(){var t=this._key.words,l=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,t[0]&4294901760|t[1]&65535,t[3]<<16|t[3]>>>16,t[1]&4294901760|t[2]&65535,t[0]<<16|t[0]>>>16,t[2]&4294901760|t[3]&65535,t[1]<<16|t[1]>>>16,t[3]&4294901760|t[0]&65535];this._b=0;for(var o=0;o<4;o++)d.call(this);for(var o=0;o<8;o++)i[o]^=r[o+4&7];if(l){var s=l.words,u=s[0],a=s[1],c=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,f=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,w=c>>>16|f&4294901760,_=f<<16|c&65535;i[0]^=c,i[1]^=w,i[2]^=f,i[3]^=_,i[4]^=c,i[5]^=w,i[6]^=f,i[7]^=_;for(var o=0;o<4;o++)d.call(this)}},_doProcessBlock:function(t,l){var r=this._X;d.call(this),m[0]=r[0]^r[5]>>>16^r[3]<<16,m[1]=r[2]^r[7]>>>16^r[5]<<16,m[2]=r[4]^r[1]>>>16^r[7]<<16,m[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)m[i]=(m[i]<<8|m[i]>>>24)&16711935|(m[i]<<24|m[i]>>>8)&4278255360,t[l+i]^=m[i]},blockSize:128/32,ivSize:64/32});function d(){for(var t=this._X,l=this._C,r=0;r<8;r++)S[r]=l[r];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0>>0?1:0)|0,this._b=l[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+l[r],o=i&65535,s=i>>>16,u=((o*o>>>17)+o*s>>>15)+s*s,a=((i&4294901760)*i|0)+((i&65535)*i|0);b[r]=u^a}t[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,t[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,t[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,t[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,t[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,t[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,t[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,t[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}v.RabbitLegacy=M._createHelper(p)}(),N.RabbitLegacy})},RELg:function(F,$,j){var N=j("MFOe"),v=N.Global;F.exports={name:"oldIE-userDataStorage",write:S,read:b,each:p,remove:d,clearAll:t};var O="storejs",M=v.document,y=i(),m=(v.navigator?v.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function S(o,s){if(m)return;var u=r(o);y(function(a){a.setAttribute(u,s),a.save(O)})}function b(o){if(m)return;var s=r(o),u=null;return y(function(a){u=a.getAttribute(s)}),u}function p(o){y(function(s){for(var u=s.XMLDocument.documentElement.attributes,a=u.length-1;a>=0;a--){var c=u[a];o(s.getAttribute(c.name),c.name)}})}function d(o){var s=r(o);y(function(u){u.removeAttribute(s),u.save(O)})}function t(){y(function(o){var s=o.XMLDocument.documentElement.attributes;o.load(O);for(var u=s.length-1;u>=0;u--)o.removeAttribute(s[u].name);o.save(O)})}var l=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function r(o){return o.replace(/^\d/,"___$&").replace(l,"___")}function i(){if(!M||!M.documentElement||!M.documentElement.addBehavior)return null;var o="script",s,u,a;try{u=new ActiveXObject("htmlfile"),u.open(),u.write("<"+o+">document.w=window"+o+'>'),u.close(),s=u.w.frames[0].document,a=s.createElement("div")}catch(c){a=M.createElement("div"),s=M.body}return function(c){var f=[].slice.call(arguments,0);f.unshift(a),s.appendChild(a),a.addBehavior("#default#userData"),a.load(O),c.apply(this,f),s.removeChild(a);return}}},S6kV:function(F,$,j){(function(N,v,O){F.exports=$=v(j("Ib8C"),j("OLod"))})(this,function(N){return N.mode.OFB=function(){var v=N.lib.BlockCipherMode.extend(),O=v.Encryptor=v.extend({processBlock:function(M,y){var m=this._cipher,S=m.blockSize,b=this._iv,p=this._keystream;b&&(p=this._keystream=b.slice(0),this._iv=void 0),m.encryptBlock(p,0);for(var d=0;d|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(ne){for(var J=0,X=!1,Q=!1,me=0,fe=ne.length;me122||(de<65||Ae>90||Ve.push([Math.max(65,Ae)|32,Math.min(de,90)|32]),de<97||Ae>122||Ve.push([Math.max(97,Ae)&~32,Math.min(de,122)&~32]))}}Ve.sort(function(ke,Ye){return ke[0]-Ye[0]||Ye[1]-ke[1]});for(var _e=[],Se=[],Ge=0;GeIe[0]&&(Ie[1]+1>Ie[0]&&Ne.push("-"),Ne.push(qe(Ie[1])))}return Ne.push("]"),Ne.join("")}function et(Le){for(var Oe=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=Oe.length,Ze=[],Ne=0,Ge=0;Ne=2&&Ae==="["?Oe[Ne]=Xe(De):Ae!=="\\"&&(Oe[Ne]=De.replace(/[a-zA-Z]/g,function(Se){var Ie=Se.charCodeAt(0);return"["+String.fromCharCode(Ie&~32,Ie|32)+"]"}))}return Oe.join("")}for(var rt=[],me=0,fe=ne.length;me=0;)X[rt.charAt(Le)]=et;var Oe=et[1],Ve=""+Oe;Je.hasOwnProperty(Ve)||(ze.push(Oe),Je[Ve]=null)}ze.push(/[\0-\uffff]/),Q=U(ze)})();var me=J.length,fe=function(Te){for(var ze=Te.sourceCode,Je=Te.basePos,qe=Te.sourceNode,Xe=[Je,T],et=0,rt=ze.match(Q)||[],Le={},Oe=0,Ve=rt.length;Oe=5&&Ne.substring(0,5)==="lang-",De&&!(Ge&&typeof Ge[1]=="string")&&(De=!1,Ne=A),De||(Le[Ze]=Ne)}var de=et;if(et+=Ze.length,!De)Xe.push(Je+de,Ne);else{var _e=Ge[1],Se=Ze.indexOf(_e),Ie=Se+_e.length;Ge[2]&&(Ie=Ze.length-Ge[2].length,Se=Ie-_e.length);var ke=Ne.substring(5);H(qe,Je+de,Ze.substring(0,Se),fe,Xe),H(qe,Je+de+Se,_e,se(ke,_e),Xe),H(qe,Je+de+Ie,Ze.substring(Ie),fe,Xe)}}Te.decorations=Xe};return fe}function ce(ne){var J=[],X=[];ne.tripleQuotedStrings?J.push([h,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ne.multiLineStrings?J.push([h,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):J.push([h,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ne.verbatimStrings&&X.push([h,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Q=ne.hashComments;Q&&(ne.cStyleComments?(Q>1?J.push([C,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):J.push([C,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),X.push([h,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):J.push([C,/^#[^\r\n]*/,null,"#"])),ne.cStyleComments&&(X.push([C,/^\/\/[^\r\n]*/,null]),X.push([C,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var me=ne.regexLiterals;if(me){var fe=me>1?"":`
\r`,Te=fe?".":"[\\S\\s]",ze="/(?=[^/*"+fe+"])(?:[^/\\x5B\\x5C"+fe+"]|\\x5C"+Te+"|\\x5B(?:[^\\x5C\\x5D"+fe+"]|\\x5C"+Te+")*(?:\\x5D|$))+/";X.push(["lang-regex",RegExp("^"+z+"("+ze+")")])}var Je=ne.types;Je&&X.push([g,Je]);var qe=(""+ne.keywords).replace(/^ | $/g,"");qe.length&&X.push([R,new RegExp("^(?:"+qe.replace(/[\s,]+/g,"|")+")\\b"),null]),J.push([T,/^\s+/,null,` \r
\xA0`]);var Xe="^.[^\\s\\w.$@'\"`/\\\\]*";return ne.regexLiterals&&(Xe+="(?!s*/)"),X.push([x,/^@[a-z_$][a-z_$@0-9]*/i,null],[g,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[T,/^[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"],[T,/^\\[\s\S]?/,null],[E,new RegExp(Xe),null]),Z(J,X)}var he=ce({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ae(ne,J,X){for(var Q=/(?:^|\s)nocode(?:\s|$)/,me=/\r\n?|\n/,fe=ne.ownerDocument,Te=fe.createElement("li");ne.firstChild;)Te.appendChild(ne.firstChild);var ze=[Te];function Je(Oe){var Ve=Oe.nodeType;if(Ve==1&&!Q.test(Oe.className))if(Oe.nodeName==="br")qe(Oe),Oe.parentNode&&Oe.parentNode.removeChild(Oe);else for(var Ze=Oe.firstChild;Ze;Ze=Ze.nextSibling)Je(Ze);else if((Ve==3||Ve==4)&&X){var Ne=Oe.nodeValue,Ge=Ne.match(me);if(Ge){var De=Ne.substring(0,Ge.index);Oe.nodeValue=De;var we=Ne.substring(Ge.index+Ge[0].length);if(we){var Ae=Oe.parentNode;Ae.insertBefore(fe.createTextNode(we),Oe.nextSibling)}qe(Oe),De||Oe.parentNode.removeChild(Oe)}}}function qe(Oe){for(;!Oe.nextSibling;)if(Oe=Oe.parentNode,!Oe)return;function Ve(Ge,De){var we=De?Ge.cloneNode(!1):Ge,Ae=Ge.parentNode;if(Ae){var de=Ve(Ae,1),_e=Ge.nextSibling;de.appendChild(we);for(var Se=_e;Se;Se=_e)_e=Se.nextSibling,de.appendChild(Se)}return we}for(var Ze=Ve(Oe.nextSibling,0),Ne;(Ne=Ze.parentNode)&&Ne.nodeType===1;)Ze=Ne;ze.push(Ze)}for(var Xe=0;Xe=Ae&&(Je+=2),fe>=de&&(et+=2)}}finally{Ne&&(Ne.style.display=Ge)}}var ge={};function oe(ne,J){for(var X=J.length;--X>=0;){var Q=J[X];ge.hasOwnProperty(Q)?b.console&&console.warn("cannot override language handler %s",Q):ge[Q]=ne}}function se(ne,J){return ne&&ge.hasOwnProperty(ne)||(ne=/^\s*]*(?:>|$)/],[C,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[E,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^