(window.webpackJsonp=window.webpackJsonp||[]).push([[118,5,6,7,8,10,16],{"+NIl":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";L.defineMode("stex",function(g,T){"use strict";function P(o,h){o.cmdState.push(h)}function p(o){return o.cmdState.length>0?o.cmdState[o.cmdState.length-1]:null}function v(o){var h=o.cmdState.pop();h&&h.closeBracket()}function S(o){for(var h=o.cmdState,m=h.length-1;m>=0;m--){var s=h[m];if(s.name=="DEFAULT")continue;return s}return{styleIdentifier:function(){return null}}}function b(o,h,m){return function(){this.name=o,this.bracketNo=0,this.style=h,this.styles=m,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var d={};d.importmodule=b("importmodule","tag",["string","builtin"]),d.documentclass=b("documentclass","tag",["","atom"]),d.usepackage=b("usepackage","tag",["atom"]),d.begin=b("begin","tag",["atom"]),d.end=b("end","tag",["atom"]),d.label=b("label","tag",["atom"]),d.ref=b("ref","tag",["atom"]),d.eqref=b("eqref","tag",["atom"]),d.cite=b("cite","tag",["atom"]),d.bibitem=b("bibitem","tag",["atom"]),d.Bibitem=b("Bibitem","tag",["atom"]),d.RBibitem=b("RBibitem","tag",["atom"]),d.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function l(o,h){o.f=h}function n(o,h){var m;if(o.match(/^\\[a-zA-Z@]+/)){var s=o.current().slice(1);return m=d.hasOwnProperty(s)?d[s]:d.DEFAULT,m=new m,P(h,m),l(h,u),m.style}if(o.match(/^\\[$&%#{}_]/))return"tag";if(o.match(/^\\[,;!\/\\]/))return"tag";if(o.match("\\["))return l(h,function(a,t){return c(a,t,"\\]")}),"keyword";if(o.match("\\("))return l(h,function(a,t){return c(a,t,"\\)")}),"keyword";if(o.match("$$"))return l(h,function(a,t){return c(a,t,"$$")}),"keyword";if(o.match("$"))return l(h,function(a,t){return c(a,t,"$")}),"keyword";var r=o.next();if(r=="%")return o.skipToEnd(),"comment";if(r=="}"||r=="]"){if(m=p(h),m)m.closeBracket(r),l(h,u);else return"error";return"bracket"}else return r=="{"||r=="["?(m=d.DEFAULT,m=new m,P(h,m),"bracket"):/\d/.test(r)?(o.eatWhile(/[\w.%]/),"atom"):(o.eatWhile(/[\w\-_]/),m=S(h),m.name=="begin"&&(m.argument=o.current()),m.styleIdentifier())}function c(o,h,m){if(o.eatSpace())return null;if(m&&o.match(m))return l(h,n),"keyword";if(o.match(/^\\[a-zA-Z@]+/))return"tag";if(o.match(/^[a-zA-Z]+/))return"variable-2";if(o.match(/^\\[$&%#{}_]/))return"tag";if(o.match(/^\\[,;!\/]/))return"tag";if(o.match(/^[\^_&]/))return"tag";if(o.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(o.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var s=o.next();return s=="{"||s=="}"||s=="["||s=="]"||s=="("||s==")"?"bracket":s=="%"?(o.skipToEnd(),"comment"):"error"}function u(o,h){var m=o.peek(),s;return m=="{"||m=="["?(s=p(h),s.openBracket(m),o.eat(m),l(h,n),"bracket"):/[ \t\r]/.test(m)?(o.eat(m),null):(l(h,n),v(h),n(o,h))}return{startState:function(){var o=T.inMathMode?function(h,m){return c(h,m)}:n;return{cmdState:[],f:o}},copyState:function(o){return{cmdState:o.cmdState.slice(),f:o.f}},token:function(o,h){return h.f(o,h)},blankLine:function(o){o.f=n,o.cmdState.length=0},lineComment:"%"}}),L.defineMIME("text/x-stex","stex"),L.defineMIME("text/x-latex","stex")})},"+ua5":function(j,Y,D){},"/cxE":function(j,Y,D){"use strict";D.d(Y,"e",function(){return T}),D.d(Y,"f",function(){return P}),D.d(Y,"g",function(){return p}),D.d(Y,"d",function(){return S}),D.d(Y,"a",function(){return b}),D.d(Y,"b",function(){return d}),D.d(Y,"c",function(){return l});var L=function(){function n(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(function(){throw c.stack?new Error(c.message+`
`+c.stack):c},0)}}return n.prototype.emit=function(c){this.listeners.forEach(function(u){u(c)})},n.prototype.onUnexpectedError=function(c){this.unexpectedErrorHandler(c),this.emit(c)},n.prototype.onUnexpectedExternalError=function(c){this.unexpectedErrorHandler(c)},n}(),g=new L;function T(n){S(n)||g.onUnexpectedError(n);return}function P(n){S(n)||g.onUnexpectedExternalError(n);return}function p(n){if(n instanceof Error){var c=n.name,u=n.message,o=n.stacktrace||n.stack;return{$isError:!0,name:c,message:u,stack:o}}return n}var v="Canceled";function S(n){return n instanceof Error&&n.name===v&&n.message===v}function b(){var n=new Error(v);return n.name=n.message,n}function d(n){return n?new Error("Illegal argument: "+n):new Error("Illegal argument")}function l(n){return n?new Error("Illegal state: "+n):new Error("Illegal state")}},"19Vz":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){L.defineOption("placeholder","",function(b,d,l){var n=l&&l!=L.Init;if(d&&!n)b.on("blur",p),b.on("change",v),b.on("swapDoc",v),L.on(b.getInputField(),"compositionupdate",b.state.placeholderCompose=function(){P(b)}),v(b);else if(!d&&n){b.off("blur",p),b.off("change",v),b.off("swapDoc",v),L.off(b.getInputField(),"compositionupdate",b.state.placeholderCompose),g(b);var c=b.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}d&&!b.hasFocus()&&p(b)});function g(b){b.state.placeholder&&(b.state.placeholder.parentNode.removeChild(b.state.placeholder),b.state.placeholder=null)}function T(b){g(b);var d=b.state.placeholder=document.createElement("pre");d.style.cssText="height: 0; overflow: visible",d.style.direction=b.getOption("direction"),d.className="CodeMirror-placeholder CodeMirror-line-like";var l=b.getOption("placeholder");typeof l=="string"&&(l=document.createTextNode(l)),d.appendChild(l),b.display.lineSpace.insertBefore(d,b.display.lineSpace.firstChild)}function P(b){setTimeout(function(){var d=!1,l=b.getInputField();l.nodeName=="TEXTAREA"?d=!l.value:b.lineCount()==1&&(d=!/[^\u200b]/.test(l.querySelector(".CodeMirror-line").textContent)),d?T(b):g(b)},20)}function p(b){S(b)&&T(b)}function v(b){var d=b.getWrapperElement(),l=S(b);d.className=d.className.replace(" CodeMirror-empty","")+(l?" CodeMirror-empty":""),l?T(b):g(b)}function S(b){return b.lineCount()===1&&b.getLine(0)===""}})},"1ZF9":function(j,Y,D){j.exports=D.p+"static/Authorize.cc9c212f.png"},"1eCo":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";var g={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},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};L.defineMode("xml",function(P,p){var v=P.indentUnit,S={},b=p.htmlMode?g:T;for(var d in b)S[d]=b[d];for(var d in p)S[d]=p[d];var l,n;function c(_,M){function I(H){return M.tokenize=H,H(_,M)}var N=_.next();if(N=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?I(h("atom","]]>")):null:_.match("--")?I(h("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),I(m(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),M.tokenize=h("meta","?>"),"meta"):(l=_.eat("/")?"closeTag":"openTag",M.tokenize=u,"tag bracket");if(N=="&"){var G;return _.eat("#")?_.eat("x")?G=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):G=_.eatWhile(/[\d]/)&&_.eat(";"):G=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),G?"atom":"error"}else return _.eatWhile(/[^&<]/),null}c.isInText=!0;function u(_,M){var I=_.next();if(I==">"||I=="/"&&_.eat(">"))return M.tokenize=c,l=I==">"?"endTag":"selfcloseTag","tag bracket";if(I=="=")return l="equals",null;if(I=="<"){M.tokenize=c,M.state=t,M.tagName=M.tagStart=null;var N=M.tokenize(_,M);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(I)?(M.tokenize=o(I),M.stringStartCol=_.column(),M.tokenize(_,M)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function o(_){var M=function(I,N){for(;!I.eol();)if(I.next()==_){N.tokenize=u;break}return"string"};return M.isInAttribute=!0,M}function h(_,M){return function(I,N){for(;!I.eol();){if(I.match(M)){N.tokenize=c;break}I.next()}return _}}function m(_){return function(M,I){for(var N;(N=M.next())!=null;){if(N=="<")return I.tokenize=m(_+1),I.tokenize(M,I);if(N==">")if(_==1){I.tokenize=c;break}else return I.tokenize=m(_-1),I.tokenize(M,I)}return"meta"}}function s(_,M,I){this.prev=_.context,this.tagName=M,this.indent=_.indented,this.startOfLine=I,(S.doNotIndent.hasOwnProperty(M)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function r(_){_.context&&(_.context=_.context.prev)}function a(_,M){for(var I;;){if(!_.context)return;if(I=_.context.tagName,!S.contextGrabbers.hasOwnProperty(I)||!S.contextGrabbers[I].hasOwnProperty(M))return;r(_)}}function t(_,M,I){return _=="openTag"?(I.tagStart=M.column(),w):_=="closeTag"?E:t}function w(_,M,I){return _=="word"?(I.tagName=M.current(),n="tag",O):S.allowMissingTagName&&_=="endTag"?(n="tag bracket",O(_,M,I)):(n="error",w)}function E(_,M,I){if(_=="word"){var N=M.current();return I.context&&I.context.tagName!=N&&S.implicitlyClosed.hasOwnProperty(I.context.tagName)&&r(I),I.context&&I.context.tagName==N||S.matchClosing===!1?(n="tag",f):(n="tag error",k)}else return S.allowMissingTagName&&_=="endTag"?(n="tag bracket",f(_,M,I)):(n="error",k)}function f(_,M,I){return _!="endTag"?(n="error",f):(r(I),t)}function k(_,M,I){return n="error",f(_,M,I)}function O(_,M,I){if(_=="word")return n="attribute",C;if(_=="endTag"||_=="selfcloseTag"){var N=I.tagName,G=I.tagStart;return I.tagName=I.tagStart=null,_=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(N)?a(I,N):(a(I,N),I.context=new s(I,N,G==I.indented)),t}return n="error",O}function C(_,M,I){return _=="equals"?x:(S.allowMissing||(n="error"),O(_,M,I))}function x(_,M,I){return _=="string"?y:_=="word"&&S.allowUnquoted?(n="string",O):(n="error",O(_,M,I))}function y(_,M,I){return _=="string"?y:O(_,M,I)}return{startState:function(_){var M={tokenize:c,state:t,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(M.baseIndent=_),M},token:function(_,M){if(!M.tagName&&_.sol()&&(M.indented=_.indentation()),_.eatSpace())return null;l=null;var I=M.tokenize(_,M);return(I||l)&&I!="comment"&&(n=null,M.state=M.state(l||I,_,M),n&&(I=n=="error"?I+" error":n)),I},indent:function(_,M,I){var N=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+v;if(N&&N.noIndent)return L.Pass;if(_.tokenize!=u&&_.tokenize!=c)return I?I.match(/^(\s*)/)[0].length:0;if(_.tagName)return S.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+v*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/$/,blockCommentStart:"",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(_){_.state==x&&(_.state=O)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var M=[],I=_.context;I;I=I.prev)I.tagName&&M.push(I.tagName);return M.reverse()}}}),L.defineMIME("text/xml","xml"),L.defineMIME("application/xml","xml"),L.mimeModes.hasOwnProperty("text/html")||L.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1uat":function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("MlIO"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.Hasher,p=g.x64,v=p.Word,S=p.WordArray,b=g.algo;function d(){return v.create.apply(v,arguments)}var l=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],n=[];(function(){for(var u=0;u<80;u++)n[u]=d()})();var c=b.SHA512=P.extend({_doReset:function(){this._hash=new S.init([new v.init(1779033703,4089235720),new v.init(3144134277,2227873595),new v.init(1013904242,4271175723),new v.init(2773480762,1595750129),new v.init(1359893119,2917565137),new v.init(2600822924,725511199),new v.init(528734635,4215389547),new v.init(1541459225,327033209)])},_doProcessBlock:function(u,o){for(var h=this._hash.words,m=h[0],s=h[1],r=h[2],a=h[3],t=h[4],w=h[5],E=h[6],f=h[7],k=m.high,O=m.low,C=s.high,x=s.low,y=r.high,_=r.low,M=a.high,I=a.low,N=t.high,G=t.low,H=w.high,B=w.low,K=E.high,U=E.low,W=f.high,X=f.low,ne=k,fe=O,me=C,Ae=x,De=y,ye=_,Oe=M,xe=I,ue=N,le=G,re=H,pe=B,ee=K,te=U,ce=W,q=X,Q=0;Q<80;Q++){var V,Z,be=n[Q];if(Q<16)Z=be.high=u[o+Q*2]|0,V=be.low=u[o+Q*2+1]|0;else{var ge=n[Q-15],Te=ge.high,Je=ge.low,rt=(Te>>>1|Je<<31)^(Te>>>8|Je<<24)^Te>>>7,nt=(Je>>>1|Te<<31)^(Je>>>8|Te<<24)^(Je>>>7|Te<<25),at=n[Q-2],ct=at.high,ht=at.low,He=(ct>>>19|ht<<13)^(ct<<3|ht>>>29)^ct>>>6,Re=(ht>>>19|ct<<13)^(ht<<3|ct>>>29)^(ht>>>6|ct<<26),tt=n[Q-7],ft=tt.high,Qe=tt.low,lt=n[Q-16],Ue=lt.high,Le=lt.low;V=nt+Qe,Z=rt+ft+(V>>>0>>0?1:0),V=V+Re,Z=Z+He+(V>>>0>>0?1:0),V=V+Le,Z=Z+Ue+(V>>>0>>0?1:0),be.high=Z,be.low=V}var Ie=ue&re^~ue&ee,Ce=le&pe^~le&te,Se=ne&me^ne&De^me&De,ke=fe&Ae^fe&ye^Ae&ye,Ne=(ne>>>28|fe<<4)^(ne<<30|fe>>>2)^(ne<<25|fe>>>7),et=(fe>>>28|ne<<4)^(fe<<30|ne>>>2)^(fe<<25|ne>>>7),$e=(ue>>>14|le<<18)^(ue>>>18|le<<14)^(ue<<23|le>>>9),bt=(le>>>14|ue<<18)^(le>>>18|ue<<14)^(le<<23|ue>>>9),gt=l[Q],Ut=gt.high,Nt=gt.low,hr=q+bt,mr=ce+$e+(hr>>>0>>0?1:0),hr=hr+Ce,mr=mr+Ie+(hr>>>0>>0?1:0),hr=hr+Nt,mr=mr+Ut+(hr>>>0>>0?1:0),hr=hr+V,mr=mr+Z+(hr>>>0>>0?1:0),St=et+ke,Yr=Ne+Se+(St>>>0>>0?1:0);ce=ee,q=te,ee=re,te=pe,re=ue,pe=le,le=xe+hr|0,ue=Oe+mr+(le>>>0>>0?1:0)|0,Oe=De,xe=ye,De=me,ye=Ae,me=ne,Ae=fe,fe=hr+St|0,ne=mr+Yr+(fe>>>0
>>0?1:0)|0}O=m.low=O+fe,m.high=k+ne+(O>>>0>>0?1:0),x=s.low=x+Ae,s.high=C+me+(x>>>0>>0?1:0),_=r.low=_+ye,r.high=y+De+(_>>>0>>0?1:0),I=a.low=I+xe,a.high=M+Oe+(I>>>0>>0?1:0),G=t.low=G+le,t.high=N+ue+(G>>>0>>0?1:0),B=w.low=B+pe,w.high=H+re+(B>>>0>>0?1:0),U=E.low=U+te,E.high=K+ee+(U>>>0>>0?1:0),X=f.low=X+q,f.high=W+ce+(X>>>0>>0?1:0)},_doFinalize:function(){var u=this._data,o=u.words,h=this._nDataBytes*8,m=u.sigBytes*8;o[m>>>5]|=128<<24-m%32,o[(m+128>>>10<<5)+30]=Math.floor(h/4294967296),o[(m+128>>>10<<5)+31]=h,u.sigBytes=o.length*4,this._process();var s=this._hash.toX32();return s},clone:function(){var u=P.clone.call(this);return u._hash=this._hash.clone(),u},blockSize:1024/32});g.SHA512=P._createHelper(c),g.HmacSHA512=P._createHmacHelper(c)}(),L.SHA512})},"24hK":function(j,Y,D){"use strict";D.d(Y,"a",function(){return T});var L=D("JYp7"),g=function(){function P(p){this.element=p,this.next=P.Undefined,this.prev=P.Undefined}return P.Undefined=new P(void 0),P}(),T=function(){function P(){this._first=g.Undefined,this._last=g.Undefined,this._size=0}return Object.defineProperty(P.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),P.prototype.isEmpty=function(){return this._first===g.Undefined},P.prototype.clear=function(){this._first=g.Undefined,this._last=g.Undefined,this._size=0},P.prototype.unshift=function(p){return this._insert(p,!1)},P.prototype.push=function(p){return this._insert(p,!0)},P.prototype._insert=function(p,v){var S=this,b=new g(p);if(this._first===g.Undefined)this._first=b,this._last=b;else if(v){var d=this._last;this._last=b,b.prev=d,d.next=b}else{var l=this._first;this._first=b,b.next=l,l.prev=b}this._size+=1;var n=!1;return function(){n||(n=!0,S._remove(b))}},P.prototype.shift=function(){if(this._first===g.Undefined)return;var p=this._first.element;return this._remove(this._first),p},P.prototype.pop=function(){if(this._last===g.Undefined)return;var p=this._last.element;return this._remove(this._last),p},P.prototype._remove=function(p){if(p.prev!==g.Undefined&&p.next!==g.Undefined){var v=p.prev;v.next=p.next,p.next.prev=v}else p.prev===g.Undefined&&p.next===g.Undefined?(this._first=g.Undefined,this._last=g.Undefined):p.next===g.Undefined?(this._last=this._last.prev,this._last.next=g.Undefined):p.prev===g.Undefined&&(this._first=this._first.next,this._first.prev=g.Undefined);this._size-=1},P.prototype.iterator=function(){var p,v=this._first;return{next:function(){return v===g.Undefined?L.c:(p?p.value=v.element:p={done:!1,value:v.element},v=v.next,p)}}},P.prototype.toArray=function(){for(var p=[],v=this._first;v!==g.Undefined;v=v.next)p.push(v.element);return p},P}()},"3y9D":function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=T.Hasher,v=g.algo,S=[],b=v.SHA1=p.extend({_doReset:function(){this._hash=new P.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,l){for(var n=this._hash.words,c=n[0],u=n[1],o=n[2],h=n[3],m=n[4],s=0;s<80;s++){if(s<16)S[s]=d[l+s]|0;else{var r=S[s-3]^S[s-8]^S[s-14]^S[s-16];S[s]=r<<1|r>>>31}var a=(c<<5|c>>>27)+m+S[s];s<20?a+=(u&o|~u&h)+1518500249:s<40?a+=(u^o^h)+1859775393:s<60?a+=(u&o|u&h|o&h)-1894007588:a+=(u^o^h)-899497514,m=h,h=o,o=u<<30|u>>>2,u=c,c=a}n[0]=n[0]+c|0,n[1]=n[1]+u|0,n[2]=n[2]+o|0,n[3]=n[3]+h|0,n[4]=n[4]+m|0},_doFinalize:function(){var d=this._data,l=d.words,n=this._nDataBytes*8,c=d.sigBytes*8;return l[c>>>5]|=128<<24-c%32,l[(c+64>>>9<<4)+14]=Math.floor(n/4294967296),l[(c+64>>>9<<4)+15]=n,d.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var d=p.clone.call(this);return d._hash=this._hash.clone(),d}});g.SHA1=p._createHelper(b),g.HmacSHA1=p._createHmacHelper(b)}(),L.SHA1})},4:function(j,Y){},"55Ip":function(j,Y,D){"use strict";D.d(Y,"a",function(){return a}),D.d(Y,"b",function(){return O});var L=D("Ty5D"),g=D("dI71"),T=D("q1tI"),P=D.n(T),p=D("YS25"),v=D("17x9"),S=D.n(v),b=D("wx14"),d=D("zLVn"),l=D("9R94"),n=function(x){Object(g.a)(y,x);function y(){for(var M,I=arguments.length,N=new Array(I),G=0;G>>24)&16711935|(t<<24|t>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var E=s[a];E.high^=w,E.low^=t}for(var f=0;f<24;f++){for(var k=0;k<5;k++){for(var O=0,C=0,x=0;x<5;x++){var E=s[k+5*x];O^=E.high,C^=E.low}var y=u[k];y.high=O,y.low=C}for(var k=0;k<5;k++)for(var _=u[(k+4)%5],M=u[(k+1)%5],I=M.high,N=M.low,O=_.high^(I<<1|N>>>31),C=_.low^(N<<1|I>>>31),x=0;x<5;x++){var E=s[k+5*x];E.high^=O,E.low^=C}for(var G=1;G<25;G++){var O,C,E=s[G],H=E.high,B=E.low,K=l[G];K<32?(O=H<>>32-K,C=B<>>32-K):(O=B<>>64-K,C=H<>>64-K);var U=u[n[G]];U.high=O,U.low=C}var W=u[0],X=s[0];W.high=X.high,W.low=X.low;for(var k=0;k<5;k++)for(var x=0;x<5;x++){var G=k+5*x,E=s[G],ne=u[G],fe=u[(k+1)%5+5*x],me=u[(k+2)%5+5*x];E.high=ne.high^~fe.high&me.high,E.low=ne.low^~fe.low&me.low}var E=s[0],Ae=c[f];E.high^=Ae.high,E.low^=Ae.low}},_doFinalize:function(){var h=this._data,m=h.words,s=this._nDataBytes*8,r=h.sigBytes*8,a=this.blockSize*32;m[r>>>5]|=1<<24-r%32,m[(g.ceil((r+1)/a)*a>>>5)-1]|=128,h.sigBytes=m.length*4,this._process();for(var t=this._state,w=this.cfg.outputLength/8,E=w/8,f=[],k=0;k>>24)&16711935|(C<<24|C>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,f.push(x),f.push(C)}return new p.init(f,w)},clone:function(){for(var h=v.clone.call(this),m=h._state=this._state.slice(0),s=0;s<25;s++)m[s]=m[s].clone();return h}});T.SHA3=v._createHelper(o),T.HmacSHA3=v._createHmacHelper(o)}(Math),L.SHA3})},"6+eU":function(j,Y,D){"use strict";D.d(Y,"a",function(){return f});var L=D("wx14"),g=D("rePB"),T=D("VTBJ"),P=D("1OyB"),p=D("vuIU"),v=D("Ji7U"),S=D("LK+K"),b=D("q1tI"),d=D.n(b),l=D("TSYQ"),n=D.n(l),c=function(O){var C,x="".concat(O.rootPrefixCls,"-item"),y=n()(x,"".concat(x,"-").concat(O.page),(C={},Object(g.a)(C,"".concat(x,"-active"),O.active),Object(g.a)(C,O.className,!!O.className),Object(g.a)(C,"".concat(x,"-disabled"),!O.page),C)),_=function(){O.onClick(O.page)},M=function(N){O.onKeyPress(N,O.onClick,O.page)};return d.a.createElement("li",{title:O.showTitle?O.page:null,className:y,onClick:_,onKeyPress:M,tabIndex:"0"},O.itemRender(O.page,"page",d.a.createElement("a",{rel:"nofollow"},O.page)))},u=c,o={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},h=function(k){Object(v.a)(C,k);var O=Object(S.a)(C);function C(){var x;Object(P.a)(this,C);for(var y=arguments.length,_=new Array(y),M=0;M=0||I.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;x.setState({goInputText:""}),H(x.getValidValue())},x.go=function(I){var N=x.state.goInputText;if(N==="")return;(I.keyCode===o.ENTER||I.type==="click")&&(x.setState({goInputText:""}),x.props.quickGo(x.getValidValue()))},x}return Object(p.a)(C,[{key:"getValidValue",value:function(){var y=this.state,_=y.goInputText,M=y.current;return!_||isNaN(_)?M:Number(_)}},{key:"getPageSizeOptions",value:function(){var y=this.props,_=y.pageSize,M=y.pageSizeOptions;return M.some(function(I){return I.toString()===_.toString()})?M:M.concat([_.toString()]).sort(function(I,N){var G=isNaN(Number(I))?0:Number(I),H=isNaN(Number(N))?0:Number(N);return G-H})}},{key:"render",value:function(){var y=this,_=this.props,M=_.pageSize,I=_.locale,N=_.rootPrefixCls,G=_.changeSize,H=_.quickGo,B=_.goButton,K=_.selectComponentClass,U=_.buildOptionText,W=_.selectPrefixCls,X=_.disabled,ne=this.state.goInputText,fe="".concat(N,"-options"),me=K,Ae=null,De=null,ye=null;if(!G&&!H)return null;var Oe=this.getPageSizeOptions();if(G&&me){var xe=Oe.map(function(ue,le){return d.a.createElement(me.Option,{key:le,value:ue.toString()},(U||y.buildOptionText)(ue))});Ae=d.a.createElement(me,{disabled:X,prefixCls:W,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(M||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},xe)}return H&&(B&&(ye=typeof B=="boolean"?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:X,className:"".concat(fe,"-quick-jumper-button")},I.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),De=d.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},I.jump_to,d.a.createElement("input",{disabled:X,type:"text",value:ne,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),I.page,ye)),d.a.createElement("li",{className:"".concat(fe)},Ae,De)}}]),C}(d.a.Component);h.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=h,s=D("N2Kk");function r(){}function a(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k}function t(k,O,C){return C}function w(k,O,C){var x=typeof k=="undefined"?O.pageSize:k;return Math.floor((C.total-1)/x)+1}var E=function(k){Object(v.a)(C,k);var O=Object(S.a)(C);function C(x){var y;Object(P.a)(this,C),y=O.call(this,x),y.getJumpPrevPage=function(){return Math.max(1,y.state.current-(y.props.showLessItems?3:5))},y.getJumpNextPage=function(){return Math.min(w(void 0,y.state,y.props),y.state.current+(y.props.showLessItems?3:5))},y.getItemIcon=function(G,H){var B=y.props.prefixCls,K=G||d.a.createElement("button",{type:"button","aria-label":H,className:"".concat(B,"-item-link")});return typeof G=="function"&&(K=d.a.createElement(G,Object(T.a)({},y.props))),K},y.savePaginationNode=function(G){y.paginationNode=G},y.isValid=function(G){return a(G)&&G!==y.state.current},y.shouldDisplayQuickJumper=function(){var G=y.props,H=G.showQuickJumper,B=G.pageSize,K=G.total;return K<=B?!1:H},y.handleKeyDown=function(G){(G.keyCode===o.ARROW_UP||G.keyCode===o.ARROW_DOWN)&&G.preventDefault()},y.handleKeyUp=function(G){var H=y.getValidValue(G),B=y.state.currentInputValue;H!==B&&y.setState({currentInputValue:H}),G.keyCode===o.ENTER?y.handleChange(H):G.keyCode===o.ARROW_UP?y.handleChange(H-1):G.keyCode===o.ARROW_DOWN&&y.handleChange(H+1)},y.changePageSize=function(G){var H=y.state.current,B=w(G,y.state,y.props);H=H>B?B:H,B===0&&(H=y.state.current),typeof G=="number"&&("pageSize"in y.props||y.setState({pageSize:G}),"current"in y.props||y.setState({current:H,currentInputValue:H})),y.props.onShowSizeChange(H,G),"onChange"in y.props&&y.props.onChange&&y.props.onChange(H,G)},y.handleChange=function(G){var H=y.props.disabled,B=G;if(y.isValid(B)&&!H){var K=w(void 0,y.state,y.props);B>K?B=K:B<1&&(B=1),"current"in y.props||y.setState({current:B,currentInputValue:B});var U=y.state.pageSize;return y.props.onChange(B,U),B}return y.state.current},y.prev=function(){y.hasPrev()&&y.handleChange(y.state.current-1)},y.next=function(){y.hasNext()&&y.handleChange(y.state.current+1)},y.jumpPrev=function(){y.handleChange(y.getJumpPrevPage())},y.jumpNext=function(){y.handleChange(y.getJumpNextPage())},y.hasPrev=function(){return y.state.current>1},y.hasNext=function(){return y.state.current2?B-2:0),U=2;U=M?N=M:N=Number(_),N}},{key:"getShowSizeChanger",value:function(){var y=this.props,_=y.showSizeChanger,M=y.total,I=y.totalBoundaryShowSizeChanger;return typeof _!="undefined"?_:M>I}},{key:"renderPrev",value:function(y){var _=this.props,M=_.prevIcon,I=_.itemRender,N=I(y,"prev",this.getItemIcon(M,"prev page")),G=!this.hasPrev();return Object(b.isValidElement)(N)?Object(b.cloneElement)(N,{disabled:G}):N}},{key:"renderNext",value:function(y){var _=this.props,M=_.nextIcon,I=_.itemRender,N=I(y,"next",this.getItemIcon(M,"next page")),G=!this.hasNext();return Object(b.isValidElement)(N)?Object(b.cloneElement)(N,{disabled:G}):N}},{key:"render",value:function(){var y=this,_=this.props,M=_.prefixCls,I=_.className,N=_.style,G=_.disabled,H=_.hideOnSinglePage,B=_.total,K=_.locale,U=_.showQuickJumper,W=_.showLessItems,X=_.showTitle,ne=_.showTotal,fe=_.simple,me=_.itemRender,Ae=_.showPrevNextJumpers,De=_.jumpPrevIcon,ye=_.jumpNextIcon,Oe=_.selectComponentClass,xe=_.selectPrefixCls,ue=_.pageSizeOptions,le=this.state,re=le.current,pe=le.pageSize,ee=le.currentInputValue;if(H===!0&&B<=pe)return null;var te=w(void 0,this.state,this.props),ce=[],q=null,Q=null,V=null,Z=null,be=null,ge=U&&U.goButton,Te=W?1:2,Je=re-1>0?re-1:0,rt=re+1=Te*2&&re!==1+2&&(ce[0]=Object(b.cloneElement)(ce[0],{className:"".concat(M,"-item-after-jump-prev")}),ce.unshift(q)),te-re>=Te*2&&re!==te-2&&(ce[ce.length-1]=Object(b.cloneElement)(ce[ce.length-1],{className:"".concat(M,"-item-before-jump-next")}),ce.push(Q)),tt!==1&&ce.unshift(V),ft!==te&&ce.push(Z)}var Ue=null;ne&&(Ue=d.a.createElement("li",{className:"".concat(M,"-total-text")},ne(B,[B===0?0:(re-1)*pe+1,re*pe>B?B:re*pe])));var Le=!this.hasPrev()||!te,Ie=!this.hasNext()||!te;return d.a.createElement("ul",Object(L.a)({className:n()(M,I,Object(g.a)({},"".concat(M,"-disabled"),G)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},nt),Ue,d.a.createElement("li",{title:X?K.prev_page:null,onClick:this.prev,tabIndex:Le?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(M,"-prev"),Object(g.a)({},"".concat(M,"-disabled"),Le)),"aria-disabled":Le},this.renderPrev(Je)),ce,d.a.createElement("li",{title:X?K.next_page:null,onClick:this.next,tabIndex:Ie?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(M,"-next"),Object(g.a)({},"".concat(M,"-disabled"),Ie)),"aria-disabled":Ie},this.renderNext(rt)),d.a.createElement(m,{disabled:G,locale:K,rootPrefixCls:M,selectComponentClass:Oe,selectPrefixCls:xe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:re,pageSize:pe,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ge}))}}],[{key:"getDerivedStateFromProps",value:function(y,_){var M={};if("current"in y&&(M.current=y.current,y.current!==_.current&&(M.currentInputValue=M.current)),"pageSize"in y&&y.pageSize!==_.pageSize){var I=_.current,N=w(y.pageSize,_,y);I=I>N?N:I,"current"in y||(M.current=I,M.currentInputValue=I),M.pageSize=y.pageSize}return M}}]),C}(d.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:s.a,style:{},itemRender:t,totalBoundaryShowSizeChanger:50};var f=E},"6RRn":function(j,Y,D){"use strict";var L=D("wCXF"),g=D("n6Qo");D.d(Y,"b",function(){return g.a});var T=D("IBYe"),P=D("6eGT"),p=D("hW8S");D.d(Y,"a",function(){return p.a}),Y.c=L.b},"6eGT":function(j,Y,D){"use strict";function L(g){return null}Y.a=L},"746U":function(j,Y,D){"use strict";D.d(Y,"d",function(){return g}),D.d(Y,"j",function(){return T}),D.d(Y,"i",function(){return P}),D.d(Y,"h",function(){return p}),D.d(Y,"e",function(){return v}),D.d(Y,"k",function(){return S}),D.d(Y,"l",function(){return b}),D.d(Y,"a",function(){return d}),D.d(Y,"f",function(){return n}),D.d(Y,"g",function(){return c}),D.d(Y,"m",function(){return u}),D.d(Y,"c",function(){return m}),D.d(Y,"b",function(){return s}),D.d(Y,"n",function(){return r}),D.d(Y,"o",function(){return a});var L={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function g(t){return Array.isArray?Array.isArray(t):!!(t&&typeof t.length===L.number&&t.constructor===Array)}function T(t){return typeof t===L.string||t instanceof String}function P(t){return typeof t===L.object&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function p(t){return(typeof t===L.number||t instanceof Number)&&!isNaN(t)}function v(t){return t===!0||t===!1}function S(t){return typeof t===L.undefined}function b(t){return S(t)||t===null}function d(t,w){if(!t)throw new Error(w?"Unexpected type, expected '"+w+"'":"Unexpected type")}var l=Object.prototype.hasOwnProperty;function n(t){if(!P(t))return!1;for(var w in t)if(l.call(t,w))return!1;return!0}function c(t){return typeof t===L.function}function u(t,w){for(var E=Math.min(t.length,w.length),f=0;f1&&arguments[1]!==void 0?arguments[1]:0,h=(S[u[o+0]]+S[u[o+1]]+S[u[o+2]]+S[u[o+3]]+"-"+S[u[o+4]]+S[u[o+5]]+"-"+S[u[o+6]]+S[u[o+7]]+"-"+S[u[o+8]]+S[u[o+9]]+"-"+S[u[o+10]]+S[u[o+11]]+S[u[o+12]]+S[u[o+13]]+S[u[o+14]]+S[u[o+15]]).toLowerCase();if(!v(h))throw TypeError("Stringified UUID is invalid");return h}var l=d;function n(u,o,h){u=u||{};var m=u.random||(u.rng||T)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,o){h=h||0;for(var s=0;s<16;++s)o[h+s]=m[s];return o}return l(m)}var c=Y.a=n},"7ahc":function(j,Y,D){"use strict";D.d(Y,"a",function(){return w});var L=D("k1fw"),g=D("0Owb"),T=D("+L6B"),P=D("2/Rp"),p=D("y8nQ"),v=D("Vl3Y"),S=D("tJVT"),b=D("OaEy"),d=D("2fM7"),l=D("q1tI"),n=D.n(l),c=D("VrN/"),u=D.n(c),o=D("p77/"),h=D.n(o),m=D("c5Ni"),s=D.n(m),r=d.a.Option,a={labelCol:{span:4},wrapperCol:{span:20}},t={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"]};Y.b=function(E){var f=E.callback,k=E.onCancel,O=Object(l.useState)("python"),C=Object(S.a)(O,2),x=C[0],y=C[1];function _(I){y(t[I][1])}function M(I){f(I)}return n.a.createElement(v.a,Object(g.a)({},a,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:M}),n.a.createElement(v.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},n.a.createElement(d.a,{onChange:_},Object.keys(t).map(function(I){return n.a.createElement(r,{key:I,value:I},t[I][0])}))),n.a.createElement(v.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},n.a.createElement(w,{mode:x})),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(P.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(P.a,{type:"ghost",onClick:k},"\u53D6\u6D88")))};function w(E){var f=E.value,k=E.onChange,O=E.mode,C=E.options,x=C===void 0?{}:C,y=Object(l.useRef)(),_=Object(l.useState)(),M=Object(S.a)(_,2),I=M[0],N=M[1];return Object(l.useEffect)(function(){if(I){function G(H){var B=H.getValue();k&&k(B)}return I.on("change",G),function(){I.off("change",G)}}},[I,k]),Object(l.useEffect)(function(){I&&I.setOption("mode",O)},[I,O]),Object(l.useEffect)(function(){I&&((f!==I.getValue()||f==="")&&setTimeout(function(){I.setValue(f||" ")},300))},[I,f]),Object(l.useEffect)(function(){if(y.current&&!I){var G=u.a.fromTextArea(y.current,Object(L.a)({mode:O,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},x));N(G)}},[y.current,I]),n.a.createElement("div",{className:"my-codemirror-container"},n.a.createElement("textarea",{ref:y}))}},"815F":function(j,Y,D){"use strict";D.d(Y,"e",function(){return S}),D.d(Y,"c",function(){return d}),D.d(Y,"d",function(){return l}),D.d(Y,"a",function(){return c}),D.d(Y,"f",function(){return u}),D.d(Y,"b",function(){return o});var L=D("KQm4"),g=D("VTBJ"),T=D("Ff2n"),P=D("Zm9Q"),p=D("Kwbf"),v=D("OZM5");function S(h,m){return h!=null?h:m}function b(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function s(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(t){var w=t.key,E=t.children;Object(p.a)(w!=null,"Tree node must have a certain key: [".concat(a).concat(w,"]"));var f=String(w);Object(p.a)(!m.has(f)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(f)),m.set(f,!0),s(E,"".concat(a).concat(f," > "))})}s(h)}function d(h){function m(s){var r=Object(P.a)(s);return r.map(function(a){if(!Object(v.i)(a))return Object(p.a)(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var t=a.key,w=a.props,E=w.children,f=Object(T.a)(w,["children"]),k=Object(g.a)({key:t},f),O=m(E);return O.length&&(k.children=O),k}).filter(function(a){return a})}return m(h)}function l(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=new Set(m===!0?[]:m),r=[];function a(t){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return t.map(function(E,f){var k=Object(v.h)(w?w.pos:"0",f),O=S(E.key,k),C=Object(g.a)(Object(g.a)({},E),{},{parent:w,pos:k,children:null,data:E,isStart:[].concat(Object(L.a)(w?w.isStart:[]),[f===0]),isEnd:[].concat(Object(L.a)(w?w.isEnd:[]),[f===t.length-1])});return r.push(C),m===!0||s.has(O)?C.children=a(E.children||[],C):C.children=[],C})}return a(h),r}function n(h,m,s){var r;s?typeof s=="string"?r=function(w){return w[s]}:typeof s=="function"&&(r=function(w){return s(w)}):r=function(w,E){return S(w.key,E)};function a(t,w,E){var f=t?t.children:h,k=t?Object(v.h)(E.pos,w):"0";if(t){var O=r(t,k),C={node:t,index:w,pos:k,key:O,parentPos:E.node?E.pos:null,level:E.level+1};m(C)}f&&f.forEach(function(x,y){a(x,y,{node:t,pos:k,level:E?E.level+1:-1})})}a(null)}function c(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=m.initWrapper,r=m.processEntity,a=m.onProcessFinished,t=arguments.length>2?arguments[2]:void 0,w={},E={},f={posEntities:w,keyEntities:E};return s&&(f=s(f)||f),n(h,function(k){var O=k.node,C=k.index,x=k.pos,y=k.key,_=k.parentPos,M=k.level,I={node:O,index:C,key:y,pos:x,level:M},N=S(y,x);w[x]=I,E[N]=I,I.parent=w[_],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),r&&r(I,f)},t),a&&a(f),f}function u(h,m){var s=m.expandedKeys,r=m.selectedKeys,a=m.loadedKeys,t=m.loadingKeys,w=m.checkedKeys,E=m.halfCheckedKeys,f=m.dragOverNodeKey,k=m.dropPosition,O=m.keyEntities,C=O[h],x={eventKey:h,expanded:s.indexOf(h)!==-1,selected:r.indexOf(h)!==-1,loaded:a.indexOf(h)!==-1,loading:t.indexOf(h)!==-1,checked:w.indexOf(h)!==-1,halfChecked:E.indexOf(h)!==-1,pos:String(C?C.pos:""),dragOver:f===h&&k===0,dragOverGapTop:f===h&&k===-1,dragOverGapBottom:f===h&&k===1};return x}function o(h){var m=h.data,s=h.expanded,r=h.selected,a=h.checked,t=h.loaded,w=h.loading,E=h.halfChecked,f=h.dragOver,k=h.dragOverGapTop,O=h.dragOverGapBottom,C=h.pos,x=h.active,y=Object(g.a)(Object(g.a)({},m),{},{expanded:s,selected:r,checked:a,loaded:t,loading:w,halfChecked:E,dragOver:f,dragOverGapTop:k,dragOverGapBottom:O,pos:C,active:x});return"props"in y||Object.defineProperty(y,"props",{get:function(){return Object(p.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),h}}),y}},"8EBN":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";L.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 g=0;g-1&&P.substring(S+1,P.length);if(b)return L.findModeByExtension(b)},L.findModeByName=function(P){P=P.toLowerCase();for(var p=0;p0&&u[u.length-1])&&(s[0]===6||s[0]===2)){l=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]=ie.length?de.slice(ie.length):de}).join(`
`)}var s=[],r=[""],a=new o.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function w(){s.length=0,r=[""]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function f(ae,z,$,ie){if(z>=ae.length||ae[z].level<=$)return z;var de=ae[z];ie.push("- "+de.text+""),z++;var se=[];return z=f(ae,z,de.level,se),se.length>0&&(ie.push("
"),se.forEach(function(Ke){ie.push(Ke)}),ie.push("
")),ie.push(" "),z=f(ae,z,$,ie),z}function k(){return f(s,0,0,r),r.push("
"),r.join("")}var O={heading:function(z){var $=t.exec(z);if($)return{type:"heading",raw:$[0],depth:$[1].length,text:$[2]}},fences:function(z){var $=this.rules.block.fences.exec(z);if($){var ie=$[0],de=m(ie,$[3]||""),se=$[2]?$[2].trim():$[2];if(["latex","katex","math"].indexOf(se)>=0){var Ke=y(),Rt=de;de=Ke,_[Ke]={type:"block",expression:Rt}}return{type:"code",raw:ie,lang:se,text:de}}}},C=/(?:\${2})([^\n`]+?)(?:\${2})/gi,x=0,y=function(){return"__special_katext_id_".concat(x++,"__")},_={};function M(){return _}function I(){x=0,_={}}function N(ae){return ae=ae.replace(C,function(z,$){var ie=y();return _[ie]={type:"inline",expression:$},ie}),ae}var G=a.listitem;a.listitem=function(ae){return G(N(ae))};var H=a.paragraph;a.paragraph=function(ae){return H(N(ae))};var B=a.tablecell;a.tablecell=function(ae,z){return B(N(ae),z)},a.code=function(ae,z,$){var ie=(z||"").match(/\S*/)[0];return ie?["latex","katex","math"].indexOf(ie)>=0?"".concat(ae,"
"):'
').concat($?ae:Object(h.escape)(ae,!0),`
`):''+($?ae:Object(h.escape)(ae,!0))+"
"},a.heading=function(ae,z,$){var ie=this.options.headerPrefix+$.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:ie,level:z,text:ae}),"'+ae+""},o.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),o.a.use({tokenizer:O,renderer:a});var K=o.a,U=D("SJMd"),W=D("ulZh"),X=D.n(W),ne=D("m3rI"),fe=D("Oy/b"),me=D("p5ED"),Ae=D("ErOA");/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var De=function(ae,z){return(De=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ie){$.__proto__=ie}||function($,ie){for(var de in ie)Object.prototype.hasOwnProperty.call(ie,de)&&($[de]=ie[de])})(ae,z)};function ye(ae,z){function $(){this.constructor=ae}De(ae,z),ae.prototype=z===null?Object.create(z):($.prototype=z.prototype,new $)}function Oe(ae,z,$,ie){return new($||($=Promise))(function(de,se){function Ke(Er){try{Vt(ie.next(Er))}catch(Lt){se(Lt)}}function Rt(Er){try{Vt(ie.throw(Er))}catch(Lt){se(Lt)}}function Vt(Er){var Lt;Er.done?de(Er.value):(Lt=Er.value,Lt instanceof $?Lt:new $(function(zr){zr(Lt)})).then(Ke,Rt)}Vt((ie=ie.apply(ae,z||[])).next())})}function xe(ae,z){var $,ie,de,se,Ke={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return se={next:Rt(0),throw:Rt(1),return:Rt(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function Rt(Vt){return function(Er){return function(Lt){if($)throw new TypeError("Generator is already executing.");for(;Ke;)try{if($=1,ie&&(de=2&Lt[0]?ie.return:Lt[0]?ie.throw||((de=ie.return)&&de.call(ie),0):ie.next)&&!(de=de.call(ie,Lt[1])).done)return de;switch(ie=0,de&&(Lt=[2&Lt[0],de.value]),Lt[0]){case 0:case 1:de=Lt;break;case 4:return Ke.label++,{value:Lt[1],done:!1};case 5:Ke.label++,ie=Lt[1],Lt=[0];continue;case 7:Lt=Ke.ops.pop(),Ke.trys.pop();continue;default:if(!(de=Ke.trys,(de=de.length>0&&de[de.length-1])||Lt[0]!==6&&Lt[0]!==2)){Ke=0;continue}if(Lt[0]===3&&(!de||Lt[1]>de[0]&&Lt[1]',"select"),this.addActionButton(ie,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ie,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ie,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ie,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ie,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ie,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ie,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(se){var Ke=document.createElement("div");Ke.className=""+$.toolbarButtonStyleClass.name,Ke.setAttribute("data-type-name",se.typeName),Ke.innerHTML=se.icon,Ke.addEventListener("click",function(){$.markerToolbarButtonClicked(Ke,se)}),$.buttons.push(Ke),$.markerButtons.push(Ke)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",de.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(de),this.addActionButton(de,'',"render"),this.addActionButton(de,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(z){this.buttonClickListeners.push(z)},ae.prototype.removeButtonClickListener=function(z){this.buttonClickListeners.indexOf(z)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(z),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var z=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var $=0;$0&&this.buttonClickListeners.forEach(function(ie){return ie("marker",$)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(z,$){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("action",$)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(z){this.resetButtonStyles(),z.className=z.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),z.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(z){var $=this.markerButtons.find(function(ie){return ie.getAttribute("data-type-name")===z});$&&this.setActiveButton($)},ae.prototype.setCurrentMarker=function(z){var $=this;this.currentMarker=z,this.buttons.filter(function(ie){return/delete|notes/.test(ie.getAttribute("data-action"))}).forEach(function(ie){$.currentMarker===void 0?(ie.style.fillOpacity="0.4",ie.style.pointerEvents="none"):(ie.style.fillOpacity="1",ie.style.pointerEvents="all")})},ae}(),V=function(){function ae(z,$,ie,de){this.panels=[],this.panelButtons=[],this.markerjsContainer=z,this.displayMode=$,this.uiStyleSettings=ie,this.styles=de,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var z;this.toolboxStyleClass=this.styles.addClass(new q("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new q("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var $=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new q("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new q("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new q("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new q("toolbox-panel-row_colors",`
background-color: `+((z=this.uiStyleSettings.toolboxBackgroundColor)!==null&&z!==void 0?z:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new q("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*$)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*$)+`px;
padding: `+$+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new q("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new q("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ce("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ce("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ae.prototype.show=function(z){var $;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolboxStyleClass.name+" "+(($=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&$!==void 0?$:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(z){var $,ie,de=this;this.panels=z,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+(($=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&$!==void 0?$:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(se){var Ke;se.uiStyleSettings=de.uiStyleSettings;var Rt=document.createElement("div");Rt.className=de.toolboxButtonStyleClass.name+" "+((Ke=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ke!==void 0?Ke:de.toolboxButtonStyleColorsClass.name),Rt.innerHTML=se.icon,Rt.title=se.title,Rt.addEventListener("click",function(){de.panelButtonClick(se)}),de.panelButtons.push(Rt),de.buttonRow.appendChild(Rt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(z){var $=this,ie=-1;if(z!==this.activePanel){ie=this.panels.indexOf(z),this.panelRow.innerHTML="";var de=z.getUi();de.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(de),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=z}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){$.displayMode==="inline"?$.panelRow.style.display="none":$.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(se,Ke){var Rt,Vt;se.className=$.toolboxButtonStyleClass.name+" "+(Ke===ie?""+((Rt=$.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Rt!==void 0?Rt:$.toolboxActiveButtonStyleColorsClass.name):""+((Vt=$.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Vt!==void 0?Vt:$.toolboxButtonStyleColorsClass.name))})},ae}(),Z=function(ae,z){this.title=ae,this.icon=z},be=function(ae){function z($,ie,de,se){var Ke=ae.call(this,$,se||'')||this;return Ke.colors=[],Ke.addTransparent=!1,Ke.colorBoxes=[],Ke.colors=ie,Ke.currentColor=de,Ke.setCurrentColor=Ke.setCurrentColor.bind(Ke),Ke.getColorBox=Ke.getColorBox.bind(Ke),Ke}return ye(z,ae),z.prototype.getUi=function(){var $=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.whiteSpace="nowrap",this.colors.forEach(function(de){var se=$.getColorBox(de);ie.appendChild(se),$.colorBoxes.push(se)}),ie},z.prototype.getColorBox=function($){var ie=this,de=this.uiStyleSettings.toolbarHeight/4,se=this.uiStyleSettings.toolbarHeight-de,Ke=document.createElement("div");Ke.style.display="inline-block",Ke.style.boxSizing="content-box",Ke.style.width=se-2+"px",Ke.style.height=se-2+"px",Ke.style.padding="1px",Ke.style.marginRight="2px",Ke.style.marginBottom="2px",Ke.style.borderWidth="2px",Ke.style.borderStyle="solid",Ke.style.borderRadius=(se+2)/2+"px",Ke.style.borderColor=$===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ke.addEventListener("click",function(){ie.setCurrentColor($,Ke)});var Rt=document.createElement("div");return Rt.style.display="inline-block",Rt.style.width=se-2+"px",Rt.style.height=se-2+"px",Rt.style.backgroundColor=$,Rt.style.borderRadius=se/2+"px",$==="transparent"&&(Rt.style.fill=this.uiStyleSettings.toolboxAccentColor,Rt.innerHTML=``),Ke.appendChild(Rt),Ke},z.prototype.setCurrentColor=function($,ie){var de=this;this.currentColor=$,this.colorBoxes.forEach(function(se){se.style.borderColor=se===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged($)},z}(Z),ge=function(){function ae(z,$,ie){this._state="new",this._isSelected=!1,this._container=z,this._overlayContainer=$,this.globalSettings=ie,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(z){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(z,$){},ae.prototype.dblClick=function(z,$){},ae.prototype.manipulate=function(z){},ae.prototype.pointerUp=function(z){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(z){this.container.childNodes.length>0?this.container.insertBefore(z,this.container.childNodes[0]):this.container.appendChild(z)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(z){this._state=z.state,this.notes=z.notes},ae.prototype.scale=function(z,$){},ae.prototype.colorChanged=function(z){this.onColorChanged&&this.onColorChanged(z),this.stateChanged()},ae.prototype.fillColorChanged=function(z){this.onFillColorChanged&&this.onFillColorChanged(z),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var z=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),z.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(z)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),Te=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(z){return this.topLeft.ownsTarget(z)?this.topLeft:this.topCenter.ownsTarget(z)?this.topCenter:this.topRight.ownsTarget(z)?this.topRight:this.centerLeft.ownsTarget(z)?this.centerLeft:this.centerRight.ownsTarget(z)?this.centerRight:this.bottomLeft.ownsTarget(z)?this.bottomLeft:this.bottomCenter.ownsTarget(z)?this.bottomCenter:this.bottomRight.ownsTarget(z)?this.bottomRight:void 0},ae}(),Je=function(){function ae(){this.GRIP_SIZE=10,this.visual=le.createGroup(),this.visual.appendChild(le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(le.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},ae}(),rt=function(){function ae(){}return ae.toITransformMatrix=function(z){return{a:z.a,b:z.b,c:z.c,d:z.d,e:z.e,f:z.f}},ae.toSVGMatrix=function(z,$){return z.a=$.a,z.b=$.b,z.c=$.c,z.d=$.d,z.e=$.e,z.f=$.f,z},ae}(),nt=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.left=0,se.top=0,se.width=0,se.height=0,se.defaultSize={x:50,y:20},se.offsetX=0,se.offsetY=0,se.rotationAngle=0,se.CB_DISTANCE=10,se._suppressMarkerCreateEvent=!1,se.container.transform.baseVal.appendItem(le.createTransform()),se.setupControlBox(),se}return ye(z,ae),Object.defineProperty(z.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"visual",{get:function(){return this._visual},set:function($){this._visual=$;var ie=le.createTransform();this._visual.transform.baseVal.appendItem(ie)},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function($){return!!ae.prototype.ownsTarget.call(this,$)||!!(this.controlGrips.findGripByVisual($)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget($))},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.state==="new"&&(this.left=$.x,this.top=$.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var de=this.unrotatePoint($);if(this.manipulationStartX=de.x,this.manipulationStartY=de.y,this.offsetX=de.x-this.left,this.offsetY=de.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie)){this.activeGrip=this.rotatorGrip;var se=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=se.x-this.width/2,this.top=se.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ke=this.container.transform.baseVal.getItem(0);Ke.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ke,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},z.prototype.pointerUp=function($){var ie=this.state;ae.prototype.pointerUp.call(this,$),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate($),this._state="select",ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},z.prototype.moveVisual=function($){this.visual.style.transform="translate("+$.x+"px, "+$.y+"px)"},z.prototype.manipulate=function($){var ie=this.unrotatePoint($);this.state==="creating"?this.resize($):this.state==="move"?(this.left=this.manipulationStartLeft+(ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ie):this.state==="rotate"&&this.rotate($)},z.prototype.resize=function($){var ie=this.manipulationStartLeft,de=this.manipulationStartWidth,se=this.manipulationStartTop,Ke=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ie=this.manipulationStartLeft+$.x-this.manipulationStartX,de=this.manipulationStartWidth+this.manipulationStartLeft-ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:de=this.manipulationStartWidth+$.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:se=this.manipulationStartTop+$.y-this.manipulationStartY,Ke=this.manipulationStartHeight+this.manipulationStartTop-se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ke=this.manipulationStartHeight+$.y-this.manipulationStartY}de>=0?(this.left=ie,this.width=de):(this.left=ie+de,this.width=-de),Ke>=0?(this.top=se,this.height=Ke):(this.top=se+Ke,this.height=-Ke),this.setSize()},z.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},z.prototype.rotate=function($){if(Math.abs($.x-this.centerX)>.1){var ie=Math.sign($.x-this.centerX);this.rotationAngle=180*Math.atan(($.y-this.centerY)/($.x-this.centerX))/Math.PI+90*ie,this.applyRotation()}},z.prototype.applyRotation=function(){var $=this.container.transform.baseVal.getItem(0);$.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem($,0)},z.prototype.rotatePoint=function($){if(this.rotationAngle===0)return $;var ie=this.container.getCTM(),de=le.createPoint($.x,$.y);return{x:(de=de.matrixTransform(ie)).x,y:de.y}},z.prototype.unrotatePoint=function($){if(this.rotationAngle===0)return $;var ie=this.container.getCTM();ie=ie.inverse();var de=le.createPoint($.x,$.y);return{x:(de=de.matrixTransform(ie)).x,y:de.y}},z.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=le.createGroup();var $=le.createTransform();$.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem($),this.container.appendChild(this.controlBox),this.controlRect=le.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=le.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Te,this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){var $=this.controlBox.transform.baseVal.getItem(0);$.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem($,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},z.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},z.prototype.createGrip=function(){var $=new Je;return $.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild($.visual),$},z.prototype.positionGrips=function(){var $=this.controlGrips.topLeft.GRIP_SIZE,ie=-$/2,de=ie,se=(this.width+this.CB_DISTANCE)/2-$/2,Ke=(this.height+this.CB_DISTANCE)/2-$/2,Rt=this.height+this.CB_DISTANCE-$/2,Vt=this.width+this.CB_DISTANCE-$/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,de),this.positionGrip(this.controlGrips.topCenter.visual,se,de),this.positionGrip(this.controlGrips.topRight.visual,Vt,de),this.positionGrip(this.controlGrips.centerLeft.visual,ie,Ke),this.positionGrip(this.controlGrips.centerRight.visual,Vt,Ke),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,Rt),this.positionGrip(this.controlGrips.bottomCenter.visual,se,Rt),this.positionGrip(this.controlGrips.bottomRight.visual,Vt,Rt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,se,de-3*this.CB_DISTANCE)},z.prototype.positionGrip=function($,ie,de){var se=$.transform.baseVal.getItem(0);se.setTranslate(ie,de),$.transform.baseVal.replaceItem(se,0)},z.prototype.hideControlBox=function(){this.controlBox.style.display="none"},z.prototype.showControlBox=function(){this.controlBox.style.display=""},z.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:rt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:rt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$);var ie=$;this.left=ie.left,this.top=ie.top,this.width=ie.width,this.height=ie.height,this.rotationAngle=ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(rt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(rt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},z.prototype.scale=function($,ie){ae.prototype.scale.call(this,$,ie);var de=this.rotatePoint({x:this.left,y:this.top}),se=this.unrotatePoint({x:de.x*$,y:de.y*ie});this.left=se.x,this.top=se.y,this.width=this.width*$,this.height=this.height*ie,this.adjustControlBox()},z}(ge),at=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se}return ye(z,ae),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.visual)},z.prototype.createVisual=function(){this.visual=le.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.state==="new"&&(this.createVisual(),this.moveVisual($),this._state="creating")},z.prototype.manipulate=function($){ae.prototype.manipulate.call(this,$)},z.prototype.resize=function($){ae.prototype.resize.call(this,$),this.setSize()},z.prototype.setSize=function(){ae.prototype.setSize.call(this),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function($){ae.prototype.pointerUp.call(this,$),this.setSize()},z.prototype.setStrokeColor=function($){this.strokeColor=$,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged($),this.stateChanged()},z.prototype.setFillColor=function($){this.fillColor=$,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},z.prototype.setStrokeWidth=function($){this.strokeWidth=$,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function($){this.strokeDasharray=$,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},z.prototype.restoreState=function($){var ie=$;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,$),this.setSize()},z.prototype.scale=function($,ie){ae.prototype.scale.call(this,$,ie),this.setSize()},z.title="Rectangle marker",z}(nt),ct=function(ae){function z($,ie,de,se){var Ke=ae.call(this,$,se||'')||this;return Ke.widths=[],Ke.widthBoxes=[],Ke.widths=ie,Ke.currentWidth=de,Ke.setCurrentWidth=Ke.setCurrentWidth.bind(Ke),Ke}return ye(z,ae),z.prototype.getUi=function(){var $=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.widths.forEach(function(de){var se=document.createElement("div");se.style.display="flex",se.style.flexGrow="2",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=de===$.currentWidth?$.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){$.setCurrentWidth(de,se)}),ie.appendChild(se);var Ke=document.createElement("div");Ke.innerText=de.toString(),Ke.style.marginRight="5px",se.appendChild(Ke);var Rt=document.createElement("div");Rt.style.minHeight="20px",Rt.style.flexGrow="2",Rt.style.display="flex",Rt.style.alignItems="center";var Vt=document.createElement("hr");Vt.style.minWidth="20px",Vt.style.border="0px",Vt.style.borderTop=de+"px solid "+$.uiStyleSettings.toolboxColor,Vt.style.flexGrow="2",Rt.appendChild(Vt),se.appendChild(Rt),$.widthBoxes.push(se)}),ie},z.prototype.setCurrentWidth=function($,ie){var de=this;this.currentWidth=$,this.widthBoxes.forEach(function(se){se.style.borderColor=se===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},z}(Z),ht=function(ae){function z($,ie,de,se){var Ke=ae.call(this,$,se||'')||this;return Ke.styles=[],Ke.styleBoxes=[],Ke.styles=ie,Ke.currentStyle=de,Ke.setCurrentStyle=Ke.setCurrentStyle.bind(Ke),Ke}return ye(z,ae),z.prototype.getUi=function(){var $=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.styles.forEach(function(de){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/$.styles.length-5+"%",se.style.borderColor=de===$.currentStyle?$.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){$.setCurrentStyle(de,se)}),ie.appendChild(se);var Ke=document.createElement("div");Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.overflow="hidden";var Rt=``;Ke.innerHTML=Rt,se.appendChild(Ke),$.styleBoxes.push(se)}),ie},z.prototype.setCurrentStyle=function($,ie){var de=this;this.currentStyle=$,this.styleBoxes.forEach(function(se){se.style.borderColor=se===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},z}(Z),He=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.strokeColor=de.defaultColor,se.strokeWidth=de.defaultStrokeWidth,se.strokeDasharray=de.defaultStrokeDasharray,se.strokePanel=new be("Line color",de.defaultColorSet,de.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new ct("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ht("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ye(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.typeName="FrameMarker",z.title="Frame marker",z.icon='',z}(at),Re=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},tt=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.x1=0,se.y1=0,se.x2=0,se.y2=0,se.defaultLength=50,se.manipulationStartX=0,se.manipulationStartY=0,se.manipulationStartX1=0,se.manipulationStartY1=0,se.manipulationStartX2=0,se.manipulationStartY2=0,se.setupControlBox(),se}return ye(z,ae),z.prototype.ownsTarget=function($){return!!ae.prototype.ownsTarget.call(this,$)||!(!this.grip1.ownsTarget($)&&!this.grip2.ownsTarget($))},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.manipulationStartX=$.x,this.manipulationStartY=$.y,this.state==="new"&&(this.x1=$.x,this.y1=$.y,this.x2=$.x,this.y2=$.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},z.prototype.pointerUp=function($){var ie=this.state;ae.prototype.pointerUp.call(this,$),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate($),this._state="select",ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},z.prototype.adjustVisual=function(){},z.prototype.manipulate=function($){this.state==="creating"?this.resize($):this.state==="move"?(this.x1=this.manipulationStartX1+$.x-this.manipulationStartX,this.y1=this.manipulationStartY1+$.y-this.manipulationStartY,this.x2=this.manipulationStartX2+$.x-this.manipulationStartX,this.y2=this.manipulationStartY2+$.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize($)},z.prototype.resize=function($){switch(this.activeGrip){case this.grip1:this.x1=$.x,this.y1=$.y;break;case this.grip2:case void 0:this.x2=$.x,this.y2=$.y}this.adjustVisual(),this.adjustControlBox()},z.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=le.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){this.positionGrips()},z.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},z.prototype.createGrip=function(){var $=new Je;return $.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild($.visual),$},z.prototype.positionGrips=function(){var $=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-$/2,this.y1-$/2),this.positionGrip(this.grip2.visual,this.x2-$/2,this.y2-$/2)},z.prototype.positionGrip=function($,ie,de){var se=$.transform.baseVal.getItem(0);se.setTranslate(ie,de),$.transform.baseVal.replaceItem(se,0)},z.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$);var ie=$;this.x1=ie.x1,this.y1=ie.y1,this.x2=ie.x2,this.y2=ie.y2},z.prototype.scale=function($,ie){ae.prototype.scale.call(this,$,ie),this.x1=this.x1*$,this.y1=this.y1*ie,this.x2=this.x2*$,this.y2=this.y2*ie,this.adjustVisual(),this.adjustControlBox()},z}(ge),ft=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.strokeColor=de.defaultColor,se.strokeWidth=de.defaultStrokeWidth,se.strokeDasharray=de.defaultStrokeDasharray,se.strokePanel=new be("Line color",de.defaultColorSet,de.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new ct("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ht("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ye(z,ae),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.visual&&$!==this.selectorLine&&$!==this.visibleLine)},z.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},z.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setStrokeColor=function($){this.strokeColor=$,this.adjustVisual(),this.colorChanged($)},z.prototype.setStrokeWidth=function($){this.strokeWidth=$,this.adjustVisual()},z.prototype.setStrokeDasharray=function($){this.strokeDasharray=$,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return $.typeName=z.typeName,$},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$);var ie=$;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.createVisual(),this.adjustVisual()},z.typeName="LineMarker",z.title="Line marker",z.icon='',z}(tt),Qe=function(ae){function z($,ie,de,se){var Ke=ae.call(this,$,se||'')||this;return Ke.fonts=[],Ke.fontBoxes=[],Ke.fonts=ie,Ke.currentFont=de,Ke.setCurrentFont=Ke.setCurrentFont.bind(Ke),Ke}return ye(z,ae),z.prototype.getUi=function(){var $=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.flexGrow="2",this.fonts.forEach(function(de){var se=document.createElement("div");se.style.display="inline-block",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/$.fonts.length-5+"%",se.style.borderColor=de===$.currentFont?$.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){$.setCurrentFont(de,se)}),ie.appendChild(se);var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.fontFamily=de,Ke.style.overflow="hidden";var Rt=document.createElement("div");Rt.style.whiteSpace="nowrap",Rt.style.overflow="hidden",Rt.style.textOverflow="ellipsis",Rt.innerHTML="The quick brown fox jumps over the lazy dog",Ke.appendChild(Rt),se.appendChild(Ke),$.fontBoxes.push(se)}),ie},z.prototype.setCurrentFont=function($,ie){var de=this;this.currentFont=$,this.fontBoxes.forEach(function(se){se.style.borderColor=se===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},z}(Z),lt=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.color="transparent",se.padding=5,se.DEFAULT_TEXT="your text here",se.text=se.DEFAULT_TEXT,se.isMoved=!1,se.color=de.defaultColor,se.fontFamily=de.defaultFontFamily,se.defaultSize={x:100,y:30},se.setColor=se.setColor.bind(se),se.setFont=se.setFont.bind(se),se.renderText=se.renderText.bind(se),se.sizeText=se.sizeText.bind(se),se.textEditDivClicked=se.textEditDivClicked.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.setSize=se.setSize.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.colorPanel=new be("Color",de.defaultColorSet,de.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.fontFamilyPanel=new Qe("Font",de.defaultFontFamilies,de.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se}return ye(z,ae),z.prototype.ownsTarget=function($){if(ae.prototype.ownsTarget.call(this,$)||$===this.visual||$===this.textElement||$===this.bgRectangle)return!0;var ie=!1;return this.textElement.childNodes.forEach(function(de){de===$&&(ie=!0)}),ie},z.prototype.createVisual=function(){this.visual=le.createGroup(),this.bgRectangle=le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.isMoved=!1,this.pointerDownPoint=$,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual($),this._state="creating")},z.prototype.renderText=function(){var $=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ie){$.textElement.appendChild(le.createTSpan(ie.trim()===""?" ":ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},z.prototype.getTextScale=function(){var $=this.textElement.getBBox(),ie=1;if($.width>0&&$.height>0){var de=(1*this.width-this.width*this.padding*2/100)/$.width,se=(1*this.height-this.height*this.padding*2/100)/$.height;ie=Math.min(de,se)}return ie},z.prototype.getTextPosition=function($){var ie=this.textElement.getBBox(),de=0,se=0;return ie.width>0&&ie.height>0&&(de=(this.width-ie.width*$)/2,se=this.height/2-ie.height*$/2),{x:de,y:se}},z.prototype.sizeText=function(){var $=this.textElement.getBBox(),ie=this.getTextScale(),de=this.getTextPosition(ie);de.y-=$.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+de.x+"px, "+de.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(de.x,de.y),this.textElement.transform.baseVal.getItem(1).setScale(ie,ie))},z.prototype.manipulate=function($){ae.prototype.manipulate.call(this,$),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs($.x-this.pointerDownPoint.x)>5||Math.abs($.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function($){ae.prototype.resize.call(this,$),this.isMoved=!0,this.setSize(),this.sizeText()},z.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},z.prototype.pointerUp=function($){var ie=this.state;ie==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,$),this.setSize(),(ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.showTextEditor=function(){var $=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ie){ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ie=Number.parseFloat($.textEditor.style.fontSize);$.textEditor.clientWidth>=Number.parseInt($.textEditor.style.maxWidth)&&ie>.9;)ie-=.1,$.textEditor.style.fontSize=Math.max(ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ie){if(ie.clipboardData){var de=ie.clipboardData.getData("text"),se=window.getSelection();if(!se.rangeCount)return!1;se.deleteFromDocument(),se.getRangeAt(0).insertNode(document.createTextNode(de)),ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){$.textEditDivClicked($.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},z.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var $=this.getTextScale(),ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),de=this.textElement.getBBox(),se={x:de.width*$,y:de.height*$};ie.x-=se.x/2,ie.y-=se.y/2,this.textEditor.style.top=ie.y+"px",this.textEditor.style.left=ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ie.x+"px",this.textEditor.style.fontSize=Math.max(16*$,12)+"px",this.textElement.style.display="none"}},z.prototype.textEditDivClicked=function($){this.text=$.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},z.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},z.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},z.prototype.dblClick=function($,ie){ae.prototype.dblClick.call(this,$,ie),this.showTextEditor()},z.prototype.setColor=function($){this.textElement&&le.setAttributes(this.textElement,[["fill",$]]),this.color=$,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged($)},z.prototype.setFont=function($){this.textElement&&le.setAttributes(this.textElement,[["font-family",$]]),this.fontFamily=$,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},z.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},z.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return $.typeName=z.typeName,$},z.prototype.restoreState=function($){var ie=$;this.color=ie.color,this.fontFamily=ie.fontFamily,this.padding=ie.padding,this.text=ie.text,this.createVisual(),ae.prototype.restoreState.call(this,$),this.setSize()},z.prototype.scale=function($,ie){ae.prototype.scale.call(this,$,ie),this.setSize(),this.sizeText(),this.positionTextEditor()},z.typeName="TextMarker",z.title="Text marker",z.icon='',z}(nt),Ue=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.color="transparent",se.lineWidth=3,se.drawing=!1,se.pixelRatio=1,se.color=de.defaultColor,se.lineWidth=de.defaultStrokeWidth,se.pixelRatio=de.freehandPixelRatio,se.setColor=se.setColor.bind(se),se.addCanvas=se.addCanvas.bind(se),se.finishCreation=se.finishCreation.bind(se),se.setLineWidth=se.setLineWidth.bind(se),se.colorPanel=new be("Color",de.defaultColorSet,de.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.lineWidthPanel=new ct("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.lineWidthPanel.onWidthChanged=se.setLineWidth,se}return ye(z,ae),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.visual&&$!==this.drawingImage)},z.prototype.createVisual=function(){this.visual=le.createGroup(),this.drawingImage=le.createImage(),this.visual.appendChild(this.drawingImage);var $=le.createTransform();this.visual.transform.baseVal.appendItem($),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function($,ie){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo($.x,$.y),this.drawing=!0):ae.prototype.pointerDown.call(this,$,ie)},z.prototype.manipulate=function($){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo($.x,$.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,$)},z.prototype.resize=function($){ae.prototype.resize.call(this,$),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function($){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,$)},z.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},z.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},z.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},z.prototype.finishCreation=function(){for(var $=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],de=ie[0],se=ie[1],Ke=ie[2],Rt=ie[3],Vt=!1,Er=0;Er0&&(Vt=!0,ErRt&&(Rt=Er),Lt>Ke&&(Ke=Lt));if(Vt){this.left=de/this.pixelRatio,this.top=se/this.pixelRatio,this.width=(Ke-de)/this.pixelRatio,this.height=(Rt-se)/this.pixelRatio;var zr=document.createElement("canvas");zr.width=Ke-de,zr.height=Rt-se,zr.getContext("2d").putImageData(this.canvasContext.getImageData(de,se,Ke-de,Rt-se),0,0),this.drawingImgUrl=zr.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},z.prototype.setDrawingImage=function(){le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},z.prototype.setColor=function($){this.color=$,this.colorChanged($)},z.prototype.setLineWidth=function($){this.lineWidth=$},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return $.typeName=z.typeName,$},z.prototype.restoreState=function($){this.createVisual(),ae.prototype.restoreState.call(this,$),this.drawingImgUrl=$.drawingImgUrl,this.setDrawingImage()},z.prototype.scale=function($,ie){ae.prototype.scale.call(this,$,ie),this.setDrawingImage()},z.typeName="FreehandMarker",z.title="Freehand marker",z.icon='',z}(nt),Le=function(ae){function z($,ie,de){var se=ae.call(this,$,de||'')||this;return se.typeBoxes=[],se.currentType=ie,se.setCurrentType=se.setCurrentType.bind(se),se}return ye(z,ae),z.prototype.getUi=function(){var $=this,ie=document.createElement("div");ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2";for(var de=function(Rt){var Vt="both";switch(Rt){case 0:Vt="both";break;case 1:Vt="start";break;case 2:Vt="end";break;case 3:Vt="none"}var Er=document.createElement("div");if(Er.style.display="flex",Er.style.flexGrow="2",Er.style.alignItems="center",Er.style.justifyContent="space-between",Er.style.padding="5px",Er.style.borderWidth="2px",Er.style.borderStyle="solid",Er.style.borderColor=Vt===se.currentType?se.uiStyleSettings.toolboxAccentColor:"transparent",Er.addEventListener("click",function(){$.setCurrentType(Vt,Er)}),ie.appendChild(Er),Vt==="both"||Vt==="start"){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.minHeight="20px",Lt.innerHTML=``,Lt.style.marginLeft="5px",Er.appendChild(Lt)}var zr=document.createElement("div");zr.style.display="flex",zr.style.alignItems="center",zr.style.minHeight="20px",zr.style.flexGrow="2";var Br=document.createElement("hr");if(Br.style.minWidth="20px",Br.style.border="0px",Br.style.borderTop="3px solid "+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee"),Br.style.flexGrow="2",zr.appendChild(Br),Er.appendChild(zr),Vt==="both"||Vt==="end"){var En=document.createElement("div");En.style.display="flex",En.style.alignItems="center",En.style.minHeight="20px",En.innerHTML=``,En.style.marginRight="5px",Er.appendChild(En)}se.typeBoxes.push(Er)},se=this,Ke=0;Ke<4;Ke++)de(Ke);return ie},z.prototype.setCurrentType=function($,ie){var de=this;this.currentType=$,this.typeBoxes.forEach(function(se){se.style.borderColor=se===ie?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(Z),Ie=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.arrowType="end",se.arrowBaseHeight=10,se.arrowBaseWidth=10,se.getArrowPoints=se.getArrowPoints.bind(se),se.setArrowType=se.setArrowType.bind(se),se.arrowTypePanel=new Le("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return ye(z,ae),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.arrow1&&$!==this.arrow2)},z.prototype.getArrowPoints=function($,ie){var de=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return $-de/2+","+(ie+se/2)+" "+$+","+(ie-se/2)+" "+($+de/2)+","+(ie+se/2)},z.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var $=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate($,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate($+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},z.prototype.setArrowType=function($){this.arrowType=$,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return $.typeName=z.typeName,$},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$);var ie=$;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='',z}(ft),Ce=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.fillColor=de.defaultFillColor,se.strokeWidth=0,se.fillPanel=new be("Color",de.defaultColorSet,de.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return ye(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.typeName="CoverMarker",z.title="Cover marker",z.icon='',z}(at),Se=function(ae){function z($,ie,de,se){var Ke=ae.call(this,$,se||'')||this;return Ke.opacities=[],Ke.opacityBoxes=[],Ke.opacities=ie,Ke.currentOpacity=de,Ke.setCurrentOpacity=Ke.setCurrentOpacity.bind(Ke),Ke}return ye(z,ae),z.prototype.getUi=function(){var $=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(de){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="center",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=de===$.currentOpacity?$.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){$.setCurrentOpacity(de,se)}),ie.appendChild(se);var Ke=document.createElement("div");Ke.innerText=100*de+"%",se.appendChild(Ke),$.opacityBoxes.push(se)}),ie},z.prototype.setCurrentOpacity=function($,ie){var de=this;this.currentOpacity=$,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(Z),ke=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=de.defaultHighlightColor,se.strokeWidth=0,se.opacity=de.defaultHighlightOpacity,se.fillPanel=new be("Color",de.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new Se("Opacity",de.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return ye(z,ae),z.prototype.setOpacity=function($){this.opacity=$,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='',z}(Ce),Ne='',et=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.bgColor="transparent",se.tipPosition={x:0,y:0},se.tipBase1Position={x:0,y:0},se.tipBase2Position={x:0,y:0},se.tipMoving=!1,se.color=de.defaultStrokeColor,se.bgColor=de.defaultFillColor,se.fontFamily=de.defaultFontFamily,se.defaultSize={x:100,y:30},se.setBgColor=se.setBgColor.bind(se),se.getTipPoints=se.getTipPoints.bind(se),se.positionTip=se.positionTip.bind(se),se.setTipPoints=se.setTipPoints.bind(se),se.colorPanel=new be("Text color",de.defaultColorSet,se.color,''),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new be("Fill color",de.defaultColorSet,se.bgColor,Ne),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Qe("Font",de.defaultFontFamilies,de.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new Je,se.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return ye(z,ae),z.prototype.ownsTarget=function($){return ae.prototype.ownsTarget.call(this,$)||this.tipGrip.ownsTarget($)||this.tip===$},z.prototype.createTip=function(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function($,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,$,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,$,ie)},z.prototype.pointerUp=function($){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,$);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,$),this.setTipPoints(ie),this.positionTip()}},z.prototype.manipulate=function($){if(this.tipMoving){var ie=this.unrotatePoint($);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,$)},z.prototype.setBgColor=function($){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",$]]),le.setAttributes(this.tip,[["fill",$]])),this.bgColor=$,this.fillColorChanged($)},z.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},z.prototype.setTipPoints=function($){$===void 0&&($=!1);var ie=Math.min(this.height/2,15),de=this.height/5;$&&(this.tipPosition={x:ie+de/2,y:this.height+20});var se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?se',z}(lt),$e=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.strokeColor=de.defaultColor,se.strokeWidth=de.defaultStrokeWidth,se.strokeDasharray=de.defaultStrokeDasharray,se.fillColor=de.defaultFillColor,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.setOpacity=se.setOpacity.bind(se),se.createVisual=se.createVisual.bind(se),se.strokePanel=new be("Line color",ue(de.defaultColorSet,["transparent"]),de.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new be("Fill color",ue(de.defaultColorSet,["transparent"]),se.fillColor,Ne),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new ct("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ht("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.opacityPanel=new Se("Opacity",de.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return ye(z,ae),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.visual)},z.prototype.createVisual=function(){this.visual=le.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.state==="new"&&(this.createVisual(),this.moveVisual($),this._state="creating")},z.prototype.manipulate=function($){ae.prototype.manipulate.call(this,$)},z.prototype.resize=function($){ae.prototype.resize.call(this,$),this.setSize()},z.prototype.setSize=function(){ae.prototype.setSize.call(this),le.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},z.prototype.pointerUp=function($){ae.prototype.pointerUp.call(this,$),this.setSize()},z.prototype.setStrokeColor=function($){this.strokeColor=$,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged($),this.stateChanged()},z.prototype.setFillColor=function($){this.fillColor=$,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged($),this.stateChanged()},z.prototype.setStrokeWidth=function($){this.strokeWidth=$,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function($){this.strokeDasharray=$,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.setOpacity=function($){this.opacity=$,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return $.typeName=z.typeName,$},z.prototype.restoreState=function($){var ie=$;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,$),this.setSize()},z.prototype.scale=function($,ie){ae.prototype.scale.call(this,$,ie),this.setSize()},z.typeName="EllipseMarker",z.title="Ellipse marker",z.icon='',z}(nt),bt=function(ae){function z($,ie,de){return ae.call(this,$,ie,de)||this}return ye(z,ae),Object.defineProperty(z.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.tip1&&$!==this.tip2)},z.prototype.createTips=function(){this.tip1=le.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.tip1),this.tip2=le.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.tip2)},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(le.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var $=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate($,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate($+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='',z}(ft),gt=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.strokePanel.colors=de.defaultColorSet,se.fillColor="transparent",se}return ye(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='',z}($e),Ut=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Nt=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.curveX=0,se.curveY=0,se.manipulationStartCurveX=0,se.manipulationStartCurveY=0,se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.positionGrips=se.positionGrips.bind(se),se.addControlGrips=se.addControlGrips.bind(se),se.adjustVisual=se.adjustVisual.bind(se),se.setupControlBox=se.setupControlBox.bind(se),se.resize=se.resize.bind(se),se.strokeColor=de.defaultColor,se.strokeWidth=de.defaultStrokeWidth,se.strokeDasharray=de.defaultStrokeDasharray,se.strokePanel=new be("Line color",de.defaultColorSet,de.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new ct("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ht("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ye(z,ae),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.visual&&$!==this.selectorCurve&&$!==this.visibleCurve&&!this.curveGrip.ownsTarget($))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=$.x,this.curveY=$.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},z.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var $=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-$/2,this.curveY-$/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},z.prototype.manipulate=function($){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+$.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+$.y-this.manipulationStartY),ae.prototype.manipulate.call(this,$)},z.prototype.resize=function($){this.activeGrip===this.curveGrip&&(this.curveX=$.x,this.curveY=$.y),ae.prototype.resize.call(this,$),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},z.prototype.setStrokeColor=function($){this.strokeColor=$,this.adjustVisual(),this.colorChanged($)},z.prototype.setStrokeWidth=function($){this.strokeWidth=$,this.adjustVisual()},z.prototype.setStrokeDasharray=function($){this.strokeDasharray=$,this.adjustVisual()},z.prototype.scale=function($,ie){this.curveX=this.curveX*$,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,$,ie)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return $.typeName=z.typeName,$},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$);var ie=$;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='',z}(tt),hr=function(){function ae(z,$){$===void 0&&($=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,this.cancelable=$}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),mr=function(ae){function z($,ie,de){var se=ae.call(this,$,!1)||this;return se.dataUrl=ie,se.state=de,se}return ye(z,ae),z}(hr),St=function(ae){function z($,ie,de){de===void 0&&(de=!1);var se=ae.call(this,$,de)||this;return se.marker=ie,se}return ye(z,ae),z}(hr),Yr=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(z,$){this[z].push($)},ae.prototype.removeEventListener=function(z,$){var ie=this[z].indexOf($);ie>-1&&this[z].splice(ie,1)},ae}(),Jr=function(){function ae(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Re,this._isOpen=!1,this.undoRedoManager=new Ut,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Yr,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[He,Ue,Ie,lt,gt,$e,ke,et,bt,Ce,ft,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[He,Ue,Ie,lt,$e,ke,et]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[He,Ue,Ie,lt,ke]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var $=this;this._availableMarkerTypes.splice(0),z.forEach(function(ie){if(typeof ie=="string"){var de=$.ALL_MARKER_TYPES.find(function(se){return se.typeName===ie});de!==void 0&&$._availableMarkerTypes.push(de)}else $._availableMarkerTypes.push(ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(z){this._zoomLevel=z,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),re.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var z=this;this.styles.styleSheetRoot===void 0&&ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function($){return $(new hr(z))})},ae.prototype.render=function(){return Oe(this,void 0,void 0,function(){var z;return xe(this,function($){switch($.label){case 0:return this.setCurrentMarker(),(z=new pe).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return $.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,$.sent()]}})})},ae.prototype.close=function(z){var $=this;if(z===void 0&&(z=!1),this.isOpen){var ie=!1;z||this.eventListeners.beforeclose.forEach(function(de){var se=new hr($,!0);de(se),se.defaultPrevented&&(ie=!0)}),ie||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(de){return de(new hr($))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var z,$=[],ie=0;iethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,ie=$',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Q(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(z),1),z.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(z,$){if(z==="marker"&&$!==void 0)this.createNewMarker($);else if(z==="action")switch($){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var $=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var se=new St(z,z._currentMarker,!0);de(se),se.defaultPrevented&&($=!0)}),!$){var ie=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(de){return de(new St(z,ie))})}}},ae.prototype.clear=function(){var z=this,$=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ke){var Rt=new St(z,void 0,!0);Ke(Rt),Rt.defaultPrevented&&($=!0)}),!$)){this.setCurrentMarker();for(var ie=function(Ke){var Rt=de.markers[Ke];de.setCurrentMarker(de.markers[Ke]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(Vt){return Vt(new St(z,Rt))})},de=this,se=this.markers.length-1;se>=0;se--)ie(se);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var z;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var $=this.getState(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===$.width&&ie.height===$.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep($),de1&&this.panTo({x:z.clientX,y:z.clientY}))},ae.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(z,$){var ie=this.markerImage.getBoundingClientRect();return{x:(z-ie.left)/this.zoomLevel,y:($-ie.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(z){re.addKey(z)},ae.prototype.addEventListener=function(z,$){this.eventListeners.addEventListener(z,$)},ae.prototype.removeEventListener=function(z,$){this.eventListeners.removeEventListener(z,$)},ae.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function($){return $(new hr(z))}))},ae.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function($){return $(new hr(z))}))},ae.instanceCounter=0,ae}();/* **********************************
cropro version 1.2.0
@license SEE LICENSE IN LICENSE
copyright Alan Mendelevich
see README and LICENSE for details
********************************** *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Hr=function(ae,z){return(Hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ie){$.__proto__=ie}||function($,ie){for(var de in ie)Object.prototype.hasOwnProperty.call(ie,de)&&($[de]=ie[de])})(ae,z)};function un(ae,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");function $(){this.constructor=ae}Hr(ae,z),ae.prototype=z===null?Object.create(z):($.prototype=z.prototype,new $)}function Ar(ae,z,$,ie){return new($||($=Promise))(function(de,se){function Ke(Er){try{Vt(ie.next(Er))}catch(Lt){se(Lt)}}function Rt(Er){try{Vt(ie.throw(Er))}catch(Lt){se(Lt)}}function Vt(Er){var Lt;Er.done?de(Er.value):(Lt=Er.value,Lt instanceof $?Lt:new $(function(zr){zr(Lt)})).then(Ke,Rt)}Vt((ie=ie.apply(ae,z||[])).next())})}function vn(ae,z){var $,ie,de,se,Ke={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return se={next:Rt(0),throw:Rt(1),return:Rt(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function Rt(Vt){return function(Er){return function(Lt){if($)throw new TypeError("Generator is already executing.");for(;Ke;)try{if($=1,ie&&(de=2&Lt[0]?ie.return:Lt[0]?ie.throw||((de=ie.return)&&de.call(ie),0):ie.next)&&!(de=de.call(ie,Lt[1])).done)return de;switch(ie=0,de&&(Lt=[2&Lt[0],de.value]),Lt[0]){case 0:case 1:de=Lt;break;case 4:return Ke.label++,{value:Lt[1],done:!1};case 5:Ke.label++,ie=Lt[1],Lt=[0];continue;case 7:Lt=Ke.ops.pop(),Ke.trys.pop();continue;default:if(!(de=Ke.trys,(de=de.length>0&&de[de.length-1])||Lt[0]!==6&&Lt[0]!==2)){Ke=0;continue}if(Lt[0]===3&&(!de||Lt[1]>de[0]&&Lt[1]0&&$>0){var ie=new Xn(z,$),de=ie.ratio>=1?20:ie.getHorizontalLength(20),se=ie.ratio<1?20:ie.getVerticalLength(20),Ke=document.createElementNS("http://www.w3.org/2000/svg","svg");Ke.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ke.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Ke);var Rt=Kt.createDefs();Ke.appendChild(Rt);var Vt=Kt.createElement("clipPath",[["id","text-bg-clip"]]);Rt.appendChild(Vt);var Er=Kt.createPath(Kt.getHollowRectanglePath((24-de)/2,(24-se)/2,de,se,(24-de)/2+2,(24-se)/2+2,de-4,se-4));Ke.appendChild(Er);var Lt=Kt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Lt.appendChild(Kt.createTSpan(z+":"+$)),Ke.appendChild(Lt);var zr=Lt.getBBox();Kt.setAttributes(Lt,[["x",((24-zr.width)/2).toString()],["y",((24-zr.height)/2-zr.y).toString()]]);var Br=Kt.createPath(Kt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(zr.width))/2,(24-Math.ceil(zr.height))/2,Math.ceil(zr.width),Math.ceil(zr.height)));return Vt.appendChild(Br),Kt.setAttributes(Er,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Ke),Ke.outerHTML}return''},ae}(),$n=function(ae){function z($,ie,de){var se=ae.call(this,$,ie)||this;return se.isDropdownOpen=!1,se.onClick=se.dropdownButtonClicked,se.dropdownButtons=de,se}return un(z,ae),z.prototype.setupDropdown=function(){var $=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ie){ie.className=$.className,ie.colorsClassName=$.colorsClassName,$.dropdownBlock.appendChild(ie.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},z.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},z.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},z.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},z.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},z.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},z}(tn),Zr=function(){function ae(z,$){this.GRIP_SIZE=10,this.color=z,this.fillColor=$,this.visual=Kt.createGroup(),this.visual.appendChild(Kt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Kt.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},ae.prototype.setCenter=function(z,$){this.visual.childNodes.forEach(function(ie){return Kt.setAttributes(ie,[["cx",z.toString()],["cy",$.toString()]])})},ae}(),Bn=function(){function ae(z,$,ie,de){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=z,this.canvasHeight=$,this.margin=ie,this.container=de,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(ae.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(z){this._aspectRatio=z,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(z){this._isGridVisible=z,this.gridContainer&&Kt.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(z){this._zoomFactor=z,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),ae.prototype.open=function(){var z=this;this.cropShadeElement=Kt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Kt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var $=0;$this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-$.height/2),Kt.setAttributes(this.cropRectElement,[["x",$.x.toString()],["y",$.y.toString()],["width",$.width.toString()],["height",$.height.toString()]]);var ie=$.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(se,Ke){var Rt=$.y+ie*(Ke+1);Kt.setAttributes(se,[["x1",""+$.x],["y1",""+Rt],["x2",""+($.x+$.width)],["y2",""+Rt]])});var de=$.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(se,Ke){var Rt=$.x+de*(Ke+1);Kt.setAttributes(se,[["x1",""+Rt],["y1",""+$.y],["x2",""+Rt],["y2",""+($.y+$.height)]])}),Kt.setAttributes(this.cropShadeElement,[["d",Kt.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,$.x,$.y,$.width,$.height)]]),this.topLeftGrip.setCenter($.x,$.y),this.topRightGrip.setCenter($.x+$.width,$.y),this.bottomLeftGrip.setCenter($.x,$.y+$.height),this.bottomRightGrip.setCenter($.x+$.width,$.y+$.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},ae.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},ae.prototype.clientToLocalCoordinates=function(z,$){var ie=this.container.getBoundingClientRect();return{x:z-ie.left+this.margin,y:$-ie.top+this.margin}},ae.prototype.onPointerDown=function(z){this.container.setPointerCapture(z.pointerId),this.previousPoint=this.clientToLocalCoordinates(z.clientX,z.clientY),this.cropRectElement===z.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(z.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(z.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(z.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(z.target)&&(this.activeGrip=this.bottomRightGrip)},ae.prototype.onPointerMove=function(z){if(this.isMoving)this.move(this.clientToLocalCoordinates(z.clientX,z.clientY));else if(this.activeGrip){var $=this.clientToLocalCoordinates(z.clientX,z.clientY);this.resize($)}z.preventDefault()},ae.prototype.onPointerUp=function(z){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(z.pointerId)},ae.prototype.move=function(z){var $=z.x-this.previousPoint.x,ie=z.y-this.previousPoint.y;this.zoomFactor!==1&&($=-$/this.zoomFactor,ie=-ie/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+$),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ie),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=z},ae.prototype.resize=function(z){var $=Object.assign({},this.cropRect),ie=z.x-this.previousPoint.x,de=z.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:$.x+iethis.canvasWidth*this.zoomFactor&&(ie=this.canvasWidth*this.zoomFactor-$.width),$.width+=ie}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?($.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ie),$.height=this.aspectRatio.getVerticalLength($.width)):($.y+=de,$.height=this.cropRect.y+this.cropRect.height-$.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?$.height=this.aspectRatio.getVerticalLength($.width):$.height+=de}$.width<10&&($.x=this.cropRect.x,$.width=10),$.height<10&&($.y=this.cropRect.y,$.height=10),this.previousPoint=z,$.x>=this.margin&&$.y>=this.margin&&$.x-this.margin+$.width<=this.canvasWidth&&$.y-this.margin+$.height<=this.canvasHeight&&(this.cropRect=$,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},ae.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var z=this.cropRect.x+this.cropRect.width/2,$=this.cropRect.y+this.cropRect.height/2,ie=this.aspectRatio.getHorizontalLength(this.cropRect.height),de=this.aspectRatio.getVerticalLength(this.cropRect.width);ie/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=z-this.cropRect.width/2,this.cropRect.y=$-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},ae.prototype.getRescaledRect=function(z,$,ie,de,se,Ke){var Rt=ie/z,Vt=de/$;return{x:(se.x-Ke)*Rt+Ke,y:(se.y-Ke)*Vt+Ke,width:se.width*Rt,height:se.height*Vt}},ae.prototype.scaleCanvas=function(z,$){var ie=this.getRescaledRect(this.canvasWidth,this.canvasHeight,z,$,this.cropRect,this.margin);this.canvasWidth=z,this.canvasHeight=$,this.onCropChange&&this.onCropChange(ie),this.setCropRectangle(ie)},ae}(),si=function(){function ae(z){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=z,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(ae.prototype,"angle",{get:function(){return this._angle},set:function(z){this._angle=z,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),ae.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},ae.prototype.onPointerDown=function(z){this.controlContainer.setPointerCapture(z.pointerId),this.isDragging=!0,this.previousPoint={x:z.clientX,y:z.clientY}},ae.prototype.onPointerMove=function(z){this.isDragging&&(this.onAngleChange&&this.onAngleChange((z.clientX-this.previousPoint.x)/5),this.previousPoint.x=z.clientX)},ae.prototype.onPointerUp=function(z){this.isDragging&&this.onAngleChange&&this.onAngleChange((z.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(z.pointerId)},ae.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var z=this.angleLabelText.getBBox();Kt.setAttributes(this.angleLabelElement,[["x",((this.width-z.width)/2).toString()],["y",(this.height/2).toString()]])}},ae.prototype.positionScaleShape=function(){if(this.scaleShape){var z=this.scaleShape.transform.baseVal.getItem(0);z.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(z,0)}},ae.prototype.getVisual=function(){var z=document.createElementNS("http://www.w3.org/2000/svg","svg");z.setAttribute("xmlns","http://www.w3.org/2000/svg"),z.setAttribute("width",this.width+"px"),z.setAttribute("height",this.height+"px"),z.setAttribute("viewBox","0 0 "+this.width+" "+this.height),z.style.flexShrink="0",document.body.appendChild(z);for(var $="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ie=1;ie<=this.width/5+10;ie++){var de=ie%5==0?this.height/3:this.height/6;$+="h4v"+-de+"h1v"+de}$+="v1H0Z",this.scaleShape=Kt.createPath($);var se=Kt.createTransform();this.scaleShape.transform.baseVal.appendItem(se),z.appendChild(this.scaleShape),this.angleLabelElement=Kt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Kt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Ke=Kt.createTSpan("");return Ke.innerHTML="°",this.angleLabelElement.appendChild(Ke),z.appendChild(this.angleLabelElement),document.body.removeChild(z),z},ae}(),li=function(){function ae(){this.naturalSize=!1,this.imageType="image/png"}return ae.prototype.rasterize=function(z,$,ie,de,se,Ke,Rt){var Vt=this;return new Promise(function(Er){var Lt=document.createElement("canvas");Lt.width=z.width.baseVal.value-2*de,Lt.height=z.height.baseVal.value-2*de;var zr=1,Br=1;Vt.naturalSize===!0?(zr=$.naturalWidth/(z.width.baseVal.value-2*de)/Ke,Br=$.naturalHeight/(z.height.baseVal.value-2*de)/Rt,Lt.width=$.naturalWidth/Ke,Lt.height=$.naturalHeight/Rt):Vt.width!==void 0&&Vt.height!==void 0&&(zr=Vt.width/ie.width,Br=Vt.height/ie.height,Lt.width*=zr,Lt.height*=Br);var En=Lt.getContext("2d");En.translate(Lt.width/2,Lt.height/2),En.rotate(se*Math.PI/180),En.scale(Ke,Rt),En.translate(-Lt.width/2,-Lt.height/2),En.drawImage($,0,0,Lt.width,Lt.height);var ui=document.createElement("canvas");ui.width=ie.width*zr,ui.height=ie.height*Br,ui.getContext("2d").putImageData(En.getImageData((ie.x-de)*zr,(ie.y-de)*Br,ie.width*zr,ie.height*Br),0,0),Er(ui.toDataURL(Vt.imageType,Vt.imageQuality))})},ae}(),wt=function(){function ae(z){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=ae.instanceCounter++,this.styles=new or(this.instanceNo),this.target=z,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(z){this._zoomToCropEnabled=z,z?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(z){this._isGridVisible=z,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"gridLines",{get:function(){return this._gridLines},set:function(z){this._gridLines=z,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(z){this._rotationAngle=z,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"aspectRatio",{get:function(){var z;return(z=this._aspectRatio)!==null&&z!==void 0?z:this.aspectRatios[0]},set:function(z){this._aspectRatio=z},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},ae.prototype.show=function(){this.showUI(),this.open()},ae.prototype.close=function(z){z===void 0&&(z=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),z||this.closeEventListeners.forEach(function($){return $()}),this._isOpen=!1)},ae.prototype.addRenderEventListener=function(z){this.renderEventListeners.push(z)},ae.prototype.removeRenderEventListener=function(z){this.renderEventListeners.indexOf(z)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(z),1)},ae.prototype.addCloseEventListener=function(z){this.closeEventListeners.push(z)},ae.prototype.removeCloseEventListener=function(z){this.closeEventListeners.indexOf(z)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(z),1)},ae.prototype.setupResizeObserver=function(){var z=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var z=1*this.target.clientWidth/this.target.clientHeight,$=this.contentDiv.clientWidth/z>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*z:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ie=$+2*this.CANVAS_MARGINz+this.CANVAS_MARGIN?this.target.offsetTop-(z+this.CANVAS_MARGIN):0;this.coverDiv.style.top=$+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},ae.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},ae.prototype.addTopToolbar=function(){var z=this;this.topToolbar=new Xr,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var $=new Ln;$.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock($);var ie=[];this.aspectRatios.forEach(function(Br){var En=new tn(hi.getIcon(Br.horizontal,Br.vertical),Br.horizontal===0&&Br.vertical===0?"FREE":Br.horizontal+":"+Br.vertical);En.onClick=function(){return z.ratioButtonClicked(Br)},ie.push(En)}),this.aspectRatioButton=new $n(hi.getIcon(0,0),"Aspect ratio",ie),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,$.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var de=new tn('',"Toggle grid");de.isActive=this.isGridVisible,de.onClick=function(){z.isGridVisible=!z.isGridVisible,de.isActive=z.isGridVisible},$.addButton(de);var se=new tn('',"Zoom to selection");if(se.isActive=this.zoomToCropEnabled,se.onClick=function(){z.zoomToCropEnabled=!z.zoomToCropEnabled,se.isActive=z.zoomToCropEnabled},$.addButton(se),!mn.isLicensed){var Ke=new ur;this.topToolbar.addElementBlock(Ke);var Rt=document.createElement("div");Rt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Vt=document.createElement("a");Vt.style.color="currentColor",Vt.href="https://markerjs.com/products/cropro",Vt.target="_blank",Vt.innerHTML='',Rt.appendChild(Vt),Ke.addElement(Rt)}var Er=new Ln;Er.minWidth=3*this.toolbarHeight+"px",Er.contentAlign="end",this.topToolbar.addButtonBlock(Er);var Lt=new tn('',"OK");Lt.onClick=this.startRenderAndClose,Er.addButton(Lt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Lt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var zr=new tn('',"Close");zr.onClick=this.close,Er.addButton(zr),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(zr.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},ae.prototype.addBottomToolbar=function(){var z=this;this.bottomToolbar=new Xr,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var $=new Ln;$.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock($);var ie=new tn('',"Rotate left");ie.onClick=this.rotateLeftButtonClicked,$.addButton(ie);var de=new tn('',"Rotate right");de.onClick=this.rotateRightButtonClicked,$.addButton(de);var se=new ur;se.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(se),this.straightener=new si("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Er){z.rotateBy(Er),z.straightener.angle=z.rotationAngle},se.addElement(this.straightener.getUI());var Ke=new Ln;Ke.minWidth=2*this.toolbarHeight+"px",Ke.contentAlign="end",this.bottomToolbar.addButtonBlock(Ke);var Rt=new tn('',"Flip horizontal");Rt.onClick=this.flipHorizontallyButtonClicked,Ke.addButton(Rt);var Vt=new tn('',"Flip vertical");Vt.onClick=this.flipVerticallyButtonClicked,Ke.addButton(Vt)},ae.prototype.ratioButtonClicked=function(z){this.aspectRatio=z,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},ae.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=hi.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},ae.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Xn(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},ae.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},ae.prototype.restoreState=function(z){if(z){var $=this.cropLayer.getRescaledRect(z.width,z.height,this.imageWidth,this.imageHeight,z.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle($),this.cropRectChanged($),this.flippedHorizontally=z.flippedHorizontally,this.flippedVertically=z.flippedVertically,this.applyFlip(),this.rotationAngle=z.rotationAngle,this.applyRotation()}},ae.prototype.clientToLocalCoordinates=function(z,$){var ie=this.cropImage.getBoundingClientRect();return{x:z-ie.left,y:$-ie.top}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var z=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},ae.prototype.rotateLeftButtonClicked=function(){var z=this.rotationAngle-90;this.rotationAngle%90!=0&&(z+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(z)},ae.prototype.rotateRightButtonClicked=function(){var z=this.rotationAngle+90;this.rotationAngle%90!=0&&(z-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(z)},ae.prototype.rotateTo=function(z){z=(z=z>180?z-360:z)<=-180?z+360:z,this.rotationAngle=z,this.applyRotation()},ae.prototype.rotateBy=function(z){this.rotateTo((this.rotationAngle+z)%360)},ae.prototype.applyRotation=function(){var z=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var $=this.editingTargetRotationContainer.transform.baseVal.getItem(0);$.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem($,0);var ie=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ie.width,this.imageHeight/ie.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=z},ae.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},ae.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},ae.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},ae.prototype.startRenderAndClose=function(){return Ar(this,void 0,void 0,function(){var z,$;return vn(this,function(ie){switch(ie.label){case 0:return[4,this.render()];case 1:return z=ie.sent(),$=this.getState(),this.renderEventListeners.forEach(function(de){return de(z,$)}),this.close(!0),[2]}})})},ae.prototype.render=function(){return Ar(this,void 0,void 0,function(){var z;return vn(this,function($){switch($.label){case 0:return(z=new li).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.width=this.renderWidth,z.height=this.renderHeight,this.unzoomFromCrop(),Kt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,z.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return $.sent(),[4,z.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,$.sent()]}})})},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new gr("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new gr("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new gr("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var z=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new gr("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*z)+`px;
height: `+(this.toolbarHeight-2*z)+`px;
padding: `+z+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new gr("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new gr("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new Xt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new Xt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new gr("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new gr("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new gr("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new gr("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*z)+`px;
padding: `+z+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new gr("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},ae.instanceCounter=0,ae}(),$t=D("8hTe"),en=D.n($t),Cn=/]*>/g;function _n(ae){var z=document.createElement("div");return z.innerHTML=ae,z.childNodes.length===0?"":z.childNodes[0].nodeValue}var On=Y.a=function(ae){var z=ae.value,$=z===void 0?"":z,ie=ae.edit,de=ie===void 0?!1:ie,se=ae.className,Ke=ae.showTextOnly,Rt=ae.showLines,Vt=ae.replaces,Er=ae.zoomImg,Lt=ae.hasMask,zr=ae.style,Br=zr===void 0?{}:zr,En=ae.stylesPrev,ui=En===void 0?{}:En,Ei=String($),In=Object(l.useRef)(),Li=Object(l.useRef)(),qi=Object(l.useState)(""),ni=Object(S.a)(qi,2),Ti=ni[0],xi=ni[1],Fi=Object(l.useState)("office"),Ci=Object(S.a)(Fi,2),Gi=Ci[0],Mi=Ci[1],oa=function(){var mt=new wt(Li.current);mt.displayMode="popup",mt.addRenderEventListener(function(){var Ct=Object(v.a)(d.a.mark(function It(Pt){var Ht;return d.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return In.current.style.display="none",dt.next=3,Object(Ae.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Pt}});case 3:Ht=dt.sent,Ht!=null&&Ht.id&&Vt(Li.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(Ht==null?void 0:Ht.id,"?type=").concat(Ht.content_type));case 5:case"end":return dt.stop()}},It)}));return function(It){return Ct.apply(this,arguments)}}()),mt.show()},sa=function(){var mt=new Jr(Li.current);mt.settings.displayMode="popup",mt.addEventListener("render",function(){var Ct=Object(v.a)(d.a.mark(function It(Pt){var Ht;return d.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(In.current.style.display="none",!Li.current){dt.next=6;break}return dt.next=4,Object(Ae.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Pt.dataUrl}});case 4:Ht=dt.sent,Ht!=null&&Ht.id&&Vt(Li.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(Ht==null?void 0:Ht.id,"?type=").concat(Ht.content_type));case 6:case"end":return dt.stop()}},It)}));return function(It){return Ct.apply(this,arguments)}}()),mt.show(),window.markerArea=mt},Ii=Object(l.useMemo)(function(){try{var it=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,mt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ct=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ei=Ei.replace(it,"("+ne.a.API_SERVER+"/api/attachments/").replace(mt,'"'+ne.a.API_SERVER+"/api/attachments/").replace(Ct,'"'+ne.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,`
`),Ei=Ei.replace(new RegExp("(?[TOC]
",k()),w()),It=It.replace(/(__special_katext_id_\d+__)/g,function(Wt,dt){var At=Pt[dt],Dt=At.type,yr=At.expression;return Object(fe.renderToString)(_n(yr)||"",{displayMode:Dt==="block",throwOnError:!1,output:"html"})}),It=It.replace(/▁/g,"\u2581\u2581\u2581"),I(),Ke){var Ht=document.createElement("div");return Ht.innerHTML=It,Ht.innerText}return setTimeout(function(){return ta()},500),It},[Ei]),qn=Object(l.useRef)();E.WebkitLineClamp=Rt,Rt&&(Br=Object(p.a)(Object(p.a)({},Br),E));function Vi(it){var mt=it.target;if(mt.tagName.toUpperCase()==="IMG"){if(Er){var Ct=mt.getAttribute("src");xi(Ct),Mi("image")}}else if(mt.tagName.toUpperCase()==="A"){var It=mt.getAttribute("href");if(It.indexOf("office")>-1)it.preventDefault(),xi(It),Mi("office");else if(It.indexOf("application/pdf")>-1)it.preventDefault(),xi(It),Mi("pdf");else if(It.indexOf("type=text")>-1)it.preventDefault(),xi(It),Mi("html");else if(It.startsWith("#")){it.preventDefault();var Pt=document.getElementById(It.replace("#",""));Pt&&Pt.scrollIntoView(!0)}}}var ta=function(){var mt,Ct=(mt=qn.current)===null||mt===void 0?void 0:mt.querySelectorAll("video");Ct==null||Ct.forEach(function(It){if(It.oncontextmenu=function(){return!1},It.src.indexOf(".m3u8")>-1&&!It.canPlayType("application/vnd.apple.mpegurl")){if(X.a.isSupported()){var Pt=new X.a;Pt.loadSource(It.src),Pt.attachMedia(It)}}})};Object(l.useEffect)(function(){if(qn.current&&Ii&&(Ii.match(Cn)&&window.PR.prettyPrint()),qn.current)return qn.current.addEventListener("click",Vi),function(){qn.current.removeEventListener("click",Vi),I(),w()}},[Ii,qn.current,Vi]);var Tt=function(mt){if(!de)return;mt.target.nodeName==="IMG"?(In.current.style.display="flex",In.current.style.width=mt.target.clientWidth+"px",In.current.style.height=mt.target.clientHeight+"px",In.current.style.top=mt.target.offsetTop+"px",In.current.style.left=mt.target.offsetLeft+"px",Li.current.src=mt.target.getAttribute("src")):In.current.style.display="none"};return n.a.createElement("div",{style:{position:"relative"}},n.a.createElement("div",{ref:qn,style:Object(p.a)({},Br),className:"".concat(se||""," markdown-body ").concat(en.a.mdBody),onMouseOver:Tt,dangerouslySetInnerHTML:{__html:Ii}}),n.a.createElement("div",{ref:In,className:en.a.button},n.a.createElement(g.a,null,n.a.createElement(P.a,{onClick:function(){return oa()}},"\u88C1\u526A"),n.a.createElement(P.a,{onClick:function(){return sa()}},"\u7F16\u8F91"))),n.a.createElement("img",{ref:Li,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),n.a.createElement(me.a,{close:!0,data:Ti,hasMask:Lt,type:Ti!=null&&Ti.length?Gi:"",style:Object(p.a)({},ui),onClose:function(){return xi("")}}))}},"9OqN":function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.mode.CTR=function(){var g=L.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(P,p){var v=this._cipher,S=v.blockSize,b=this._iv,d=this._counter;b&&(d=this._counter=b.slice(0),this._iv=void 0);var l=d.slice(0);v.encryptBlock(l,0),d[S-1]=d[S-1]+1|0;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var l=document.createElement("style");if((b=d.csp)===null||b===void 0?void 0:b.nonce){var n;l.nonce=(n=d.csp)===null||n===void 0?void 0:n.nonce}l.innerHTML=S;var c=T(d),u=c.firstChild;return d.prepend&&c.prepend?c.prepend(l):d.prepend&&u?c.insertBefore(l,u):c.appendChild(l),l}var p=new Map;function v(S,b){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=T(d);if(!p.has(l)){var n=P("",d),c=n.parentNode;p.set(l,c),c.removeChild(n)}var u=Array.from(p.get(l).children).find(function(r){return r.tagName==="STYLE"&&r[g]===b});if(u){var o,h;if(((o=d.csp)===null||o===void 0?void 0:o.nonce)&&u.nonce!==((h=d.csp)===null||h===void 0?void 0:h.nonce)){var m;u.nonce=(m=d.csp)===null||m===void 0?void 0:m.nonce}return u.innerHTML!==S&&(u.innerHTML=S),u}var s=P(S,d);return s[g]=b,s}},Bd2K:function(j,Y,D){(function(L){L(D("VrN/"),D("osHv"))})(function(L){L.defineOption("autoCloseTags",!1,function(d,l,n){if(n!=L.Init&&n&&d.removeKeyMap("autoCloseTags"),!l)return;var c={name:"autoCloseTags"};(typeof l!="object"||l.whenClosing!==!1)&&(c["'/'"]=function(u){return v(u)}),(typeof l!="object"||l.whenOpening!==!1)&&(c["'>'"]=function(u){return P(u)}),d.addKeyMap(c)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["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 P(d){if(d.getOption("disableInput"))return L.Pass;for(var l=d.listSelections(),n=[],c=d.getOption("autoCloseTags"),u=0;uo.ch&&(a=a.slice(0,a.length-h.end+o.ch));var f=a.toLowerCase();if(!a||h.type=="string"&&(h.end!=o.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||h.string.length==1)||h.type=="tag"&&r.close||h.string.indexOf("/")==o.ch-h.start-1||w&&S(w,f)>-1||b(d,m.mode.xmlCurrentContext&&m.mode.xmlCurrentContext(s)||[],a,o,!0))return L.Pass;var k=typeof c=="object"&&c.emptyTags;if(k&&S(k,a)>-1){n[u]={text:"/>",newPos:L.Pos(o.line,o.ch+2)};continue}var O=E&&S(E,f)>-1;n[u]={indent:O,text:">"+(O?`
`:"")+""+a+">",newPos:O?L.Pos(o.line+1,0):L.Pos(o.line,o.ch+1)}}for(var C=typeof c=="object"&&c.dontIndentOnAutoClose,u=l.length-1;u>=0;u--){var x=n[u];d.replaceRange(x.text,l[u].head,l[u].anchor,"+insert");var y=d.listSelections().slice(0);y[u]={head:x.newPos,anchor:x.newPos},d.setSelections(y),!C&&x.indent&&(d.indentLine(x.newPos.line,null,!0),d.indentLine(x.newPos.line+1,null,!0))}}function p(d,l){for(var n=d.listSelections(),c=[],u=l?"/":"",o=d.getOption("autoCloseTags"),h=typeof o=="object"&&o.dontIndentOnSlash,m=0;m"&&(w+=">"),c[m]=w}if(d.replaceSelections(c),n=d.listSelections(),!h)for(var m=0;m=0&&l[s]==n;s--)++m;c=h.to;for(var s=1;s0){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:"",l=[],n=0;nUe.length)&&(Le=Ue.length);for(var Ie=0,Ce=new Array(Le);Ie=Ue.length?{done:!0}:{done:!1,value:Ue[Ce++]}}}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 Ie=Ue[Symbol.iterator](),Ie.next.bind(Ie)}function v(Ue,Le){return Le={exports:{}},Ue(Le,Le.exports),Le.exports}var S=v(function(Ue){function Le(){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 Ie(Ce){Ue.exports.defaults=Ce}Ue.exports={defaults:Le(),getDefaults:Le,changeDefaults:Ie}}),b=S.defaults,d=S.getDefaults,l=S.changeDefaults,n=/[&<>"']/,c=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(Le){return h[Le]};function s(Ue,Le){if(Le){if(n.test(Ue))return Ue.replace(c,m)}else if(u.test(Ue))return Ue.replace(o,m);return Ue}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function a(Ue){return Ue.replace(r,function(Le,Ie){return Ie=Ie.toLowerCase(),Ie==="colon"?":":Ie.charAt(0)==="#"?Ie.charAt(1)==="x"?String.fromCharCode(parseInt(Ie.substring(2),16)):String.fromCharCode(+Ie.substring(1)):""})}var t=/(^|[^\[])\^/g;function w(Ue,Le){Ue=Ue.source||Ue,Le=Le||"";var Ie={replace:function(Se,ke){return ke=ke.source||ke,ke=ke.replace(t,"$1"),Ue=Ue.replace(Se,ke),Ie},getRegex:function(){return new RegExp(Ue,Le)}};return Ie}var E=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function k(Ue,Le,Ie){if(Ue){var Ce;try{Ce=decodeURIComponent(a(Ie)).replace(E,"").toLowerCase()}catch(Se){return null}if(Ce.indexOf("javascript:")===0||Ce.indexOf("vbscript:")===0||Ce.indexOf("data:")===0)return null}Le&&!f.test(Ie)&&(Ie=_(Le,Ie));try{Ie=encodeURI(Ie).replace(/%25/g,"%")}catch(Se){return null}return Ie}var O={},C=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(Ue,Le){O[" "+Ue]||(C.test(Ue)?O[" "+Ue]=Ue+"/":O[" "+Ue]=G(Ue,"/",!0)),Ue=O[" "+Ue];var Ie=Ue.indexOf(":")===-1;return Le.substring(0,2)==="//"?Ie?Le:Ue.replace(x,"$1")+Le:Le.charAt(0)==="/"?Ie?Le:Ue.replace(y,"$1")+Le:Ue+Le}var M={exec:function(){}};function I(Ue){for(var Le=1,Ie,Ce;Le=0&&et[bt]==="\\";)$e=!$e;return $e?"|":" |"}),Ce=Ie.split(/ \|/),Se=0;if(Ce.length>Le)Ce.splice(Le);else for(;Ce.length=Ce.length?Se.slice(Ce.length):Se}).join(`
`)}var De=function(){function Ue(Ie){this.options=Ie||U}var Le=Ue.prototype;return Le.space=function(Ce){var Se=this.rules.block.newline.exec(Ce);if(Se)return Se[0].length>1?{type:"space",raw:Se[0]}:{raw:`
`}},Le.code=function(Ce,Se){var ke=this.rules.block.code.exec(Ce);if(ke){var Ne=Se[Se.length-1];if(Ne&&Ne.type==="paragraph")return{raw:ke[0],text:ke[0].trimRight()};var et=ke[0].replace(/^ {4}/gm,"");return{type:"code",raw:ke[0],codeBlockStyle:"indented",text:this.options.pedantic?et:W(et,`
`)}}},Le.fences=function(Ce){var Se=this.rules.block.fences.exec(Ce);if(Se){var ke=Se[0],Ne=Ae(ke,Se[3]||"");return{type:"code",raw:ke,lang:Se[2]?Se[2].trim():Se[2],text:Ne}}},Le.heading=function(Ce){var Se=this.rules.block.heading.exec(Ce);if(Se)return{type:"heading",raw:Se[0],depth:Se[1].length,text:Se[2]}},Le.nptable=function(Ce){var Se=this.rules.block.nptable.exec(Ce);if(Se){var ke={type:"table",header:X(Se[1].replace(/^ *| *\| *$/g,"")),align:Se[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Se[3]?Se[3].replace(/\n$/,"").split(`
`):[],raw:Se[0]};if(ke.header.length===ke.align.length){var Ne=ke.align.length,et;for(et=0;et ?/gm,"");return{type:"blockquote",raw:Se[0],text:ke}}},Le.list=function(Ce){var Se=this.rules.block.list.exec(Ce);if(Se){for(var ke=Se[0],Ne=Se[2],et=Ne.length>1,$e=Ne[Ne.length-1]===")",bt={type:"list",raw:ke,ordered:et,start:et?+Ne.slice(0,-1):"",loose:!1,items:[]},gt=Se[0].match(this.rules.block.item),Ut=!1,Nt,hr,mr,St,Yr,Jr,Hr,un=gt.length,Ar=0;Ar1||this.options.smartLists&&mr!==Ne)&&(St=gt.slice(Ar+1).join(`
`),bt.raw=bt.raw.substring(0,bt.raw.length-St.length),Ar=un-1)),Yr=Ut||/\n\n(?!\s*$)/.test(Nt),Ar!==un-1&&(Ut=Nt.charAt(Nt.length-1)===`
`,Yr||(Yr=Ut)),Yr&&(bt.loose=!0),Jr=/^\[[ xX]\] /.test(Nt),Hr=void 0,Jr&&(Hr=Nt[1]!==" ",Nt=Nt.replace(/^\[[ xX]\] +/,"")),bt.items.push({type:"list_item",raw:ke,task:Jr,checked:Hr,loose:Yr,text:Nt});return bt}},Le.html=function(Ce){var Se=this.rules.block.html.exec(Ce);if(Se)return{type:this.options.sanitize?"paragraph":"html",raw:Se[0],pre:!this.options.sanitizer&&(Se[1]==="pre"||Se[1]==="script"||Se[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Se[0]):ne(Se[0]):Se[0]}},Le.def=function(Ce){var Se=this.rules.block.def.exec(Ce);if(Se){Se[3]&&(Se[3]=Se[3].substring(1,Se[3].length-1));var ke=Se[1].toLowerCase().replace(/\s+/g," ");return{tag:ke,raw:Se[0],href:Se[2],title:Se[3]}}},Le.table=function(Ce){var Se=this.rules.block.table.exec(Ce);if(Se){var ke={type:"table",header:X(Se[1].replace(/^ *| *\| *$/g,"")),align:Se[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Se[3]?Se[3].replace(/\n$/,"").split(`
`):[]};if(ke.header.length===ke.align.length){ke.raw=Se[0];var Ne=ke.align.length,et;for(et=0;et/i.test(Ne[0])&&(Se=!1),!ke&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ne[0])?ke=!0:ke&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ne[0])&&(ke=!1),{type:this.options.sanitize?"text":"html",raw:Ne[0],inLink:Se,inRawBlock:ke,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ne[0]):ne(Ne[0]):Ne[0]}},Le.link=function(Ce){var Se=this.rules.inline.link.exec(Ce);if(Se){var ke=fe(Se[2],"()");if(ke>-1){var Ne=Se[0].indexOf("!")===0?5:4,et=Ne+Se[1].length+ke;Se[2]=Se[2].substring(0,ke),Se[0]=Se[0].substring(0,et).trim(),Se[3]=""}var $e=Se[2],bt="";if(this.options.pedantic){var gt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec($e);gt?($e=gt[1],bt=gt[3]):bt=""}else bt=Se[3]?Se[3].slice(1,-1):"";$e=$e.trim().replace(/^<([\s\S]*)>$/,"$1");var Ut=me(Se,{href:$e&&$e.replace(this.rules.inline._escapes,"$1"),title:bt&&bt.replace(this.rules.inline._escapes,"$1")},Se[0]);return Ut}},Le.reflink=function(Ce,Se){var ke;if((ke=this.rules.inline.reflink.exec(Ce))||(ke=this.rules.inline.nolink.exec(Ce))){var Ne=(ke[2]||ke[1]).replace(/\s+/g," ");if(Ne=Se[Ne.toLowerCase()],!Ne||!Ne.href){var et=ke[0].charAt(0);return{type:"text",raw:et,text:et}}var $e=me(ke,Ne,ke[0]);return $e}},Le.strong=function(Ce,Se,ke){ke===void 0&&(ke="");var Ne=this.rules.inline.strong.start.exec(Ce);if(Ne&&(!Ne[1]||Ne[1]&&(ke===""||this.rules.inline.punctuation.exec(ke)))){Se=Se.slice(-1*Ce.length);var et=Ne[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;et.lastIndex=0;for(var $e;(Ne=et.exec(Se))!=null;)if($e=this.rules.inline.strong.middle.exec(Se.slice(0,Ne.index+3)),$e)return{type:"strong",raw:Ce.slice(0,$e[0].length),text:Ce.slice(2,$e[0].length-2)}}},Le.em=function(Ce,Se,ke){ke===void 0&&(ke="");var Ne=this.rules.inline.em.start.exec(Ce);if(Ne&&(!Ne[1]||Ne[1]&&(ke===""||this.rules.inline.punctuation.exec(ke)))){Se=Se.slice(-1*Ce.length);var et=Ne[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;et.lastIndex=0;for(var $e;(Ne=et.exec(Se))!=null;)if($e=this.rules.inline.em.middle.exec(Se.slice(0,Ne.index+2)),$e)return{type:"em",raw:Ce.slice(0,$e[0].length),text:Ce.slice(1,$e[0].length-1)}}},Le.codespan=function(Ce){var Se=this.rules.inline.code.exec(Ce);if(Se){var ke=Se[2].replace(/\n/g," "),Ne=/[^ ]/.test(ke),et=ke.startsWith(" ")&&ke.endsWith(" ");return Ne&&et&&(ke=ke.substring(1,ke.length-1)),ke=ne(ke,!0),{type:"codespan",raw:Se[0],text:ke}}},Le.br=function(Ce){var Se=this.rules.inline.br.exec(Ce);if(Se)return{type:"br",raw:Se[0]}},Le.del=function(Ce){var Se=this.rules.inline.del.exec(Ce);if(Se)return{type:"del",raw:Se[0],text:Se[1]}},Le.autolink=function(Ce,Se){var ke=this.rules.inline.autolink.exec(Ce);if(ke){var Ne,et;return ke[2]==="@"?(Ne=ne(this.options.mangle?Se(ke[1]):ke[1]),et="mailto:"+Ne):(Ne=ne(ke[1]),et=Ne),{type:"link",raw:ke[0],text:Ne,href:et,tokens:[{type:"text",raw:Ne,text:Ne}]}}},Le.url=function(Ce,Se){var ke;if(ke=this.rules.inline.url.exec(Ce)){var Ne,et;if(ke[2]==="@")Ne=ne(this.options.mangle?Se(ke[0]):ke[0]),et="mailto:"+Ne;else{var $e;do $e=ke[0],ke[0]=this.rules.inline._backpedal.exec(ke[0])[0];while($e!==ke[0]);Ne=ne(ke[0]),ke[1]==="www."?et="http://"+Ne:et=Ne}return{type:"link",raw:ke[0],text:Ne,href:et,tokens:[{type:"text",raw:Ne,text:Ne}]}}},Le.inlineText=function(Ce,Se,ke){var Ne=this.rules.inline.text.exec(Ce);if(Ne){var et;return Se?et=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ne[0]):ne(Ne[0]):Ne[0]:et=ne(this.options.smartypants?ke(Ne[0]):Ne[0]),{type:"text",raw:Ne[0],text:et}}},Ue}(),ye=K.noopTest,Oe=K.edit,xe=K.merge,ue={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:ye,table:ye,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ue._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ue._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ue.def=Oe(ue.def).replace("label",ue._label).replace("title",ue._title).getRegex(),ue.bullet=/(?:[*+-]|\d{1,9}[.)])/,ue.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ue.item=Oe(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=Oe(ue.list).replace(/bull/g,ue.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ue.def.source+")").getRegex(),ue._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",ue._comment=//,ue.html=Oe(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=Oe(ue._paragraph).replace("hr",ue.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",ue._tag).getRegex(),ue.blockquote=Oe(ue.blockquote).replace("paragraph",ue.paragraph).getRegex(),ue.normal=xe({},ue),ue.gfm=xe({},ue.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*|$)"}),ue.gfm.nptable=Oe(ue.gfm.nptable).replace("hr",ue.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",ue._tag).getRegex(),ue.gfm.table=Oe(ue.gfm.table).replace("hr",ue.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",ue._tag).getRegex(),ue.pedantic=xe({},ue.normal,{html:Oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ue._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:ye,paragraph:Oe(ue.normal._paragraph).replace("hr",ue.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ue.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var le={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ye,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:ye,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",le.punctuation=Oe(le.punctuation).replace(/punctuation/g,le._punctuation).getRegex(),le._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",le._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",le.em.start=Oe(le.em.start).replace(/punctuation/g,le._punctuation).getRegex(),le.em.middle=Oe(le.em.middle).replace(/punctuation/g,le._punctuation).replace(/overlapSkip/g,le._overlapSkip).getRegex(),le.em.endAst=Oe(le.em.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.em.endUnd=Oe(le.em.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.start=Oe(le.strong.start).replace(/punctuation/g,le._punctuation).getRegex(),le.strong.middle=Oe(le.strong.middle).replace(/punctuation/g,le._punctuation).replace(/blockSkip/g,le._blockSkip).getRegex(),le.strong.endAst=Oe(le.strong.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.endUnd=Oe(le.strong.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.blockSkip=Oe(le._blockSkip,"g").getRegex(),le.overlapSkip=Oe(le._overlapSkip,"g").getRegex(),le._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,le._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,le._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])?)+(?![-_])/,le.autolink=Oe(le.autolink).replace("scheme",le._scheme).replace("email",le._email).getRegex(),le._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,le.tag=Oe(le.tag).replace("comment",ue._comment).replace("attribute",le._attribute).getRegex(),le._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,le._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,le._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,le.link=Oe(le.link).replace("label",le._label).replace("href",le._href).replace("title",le._title).getRegex(),le.reflink=Oe(le.reflink).replace("label",le._label).getRegex(),le.reflinkSearch=Oe(le.reflinkSearch,"g").replace("reflink",le.reflink).replace("nolink",le.nolink).getRegex(),le.normal=xe({},le),le.pedantic=xe({},le.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Oe(/^!?\[(label)\]\((.*?)\)/).replace("label",le._label).getRegex(),reflink:Oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",le._label).getRegex()}),le.gfm=xe({},le.normal,{escape:Oe(le.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&&(Ce="x"+Ce.toString(16)),Le+=""+Ce+";";return Le}var Q=function(){function Ue(Ie){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ie||pe,this.options.tokenizer=this.options.tokenizer||new De,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ce={block:ee.normal,inline:te.normal};this.options.pedantic?(Ce.block=ee.pedantic,Ce.inline=te.pedantic):this.options.gfm&&(Ce.block=ee.gfm,this.options.breaks?Ce.inline=te.breaks:Ce.inline=te.gfm),this.tokenizer.rules=Ce}Ue.lex=function(Ce,Se){var ke=new Ue(Se);return ke.lex(Ce)};var Le=Ue.prototype;return Le.lex=function(Ce){return Ce=Ce.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ce,this.tokens,!0),this.inline(this.tokens),this.tokens},Le.blockTokens=function(Ce,Se,ke){Se===void 0&&(Se=[]),ke===void 0&&(ke=!0),Ce=Ce.replace(/^ +$/gm,"");for(var Ne,et,$e,bt;Ce;){if(Ne=this.tokenizer.space(Ce)){Ce=Ce.substring(Ne.raw.length),Ne.type&&Se.push(Ne);continue}if(Ne=this.tokenizer.code(Ce,Se)){Ce=Ce.substring(Ne.raw.length),Ne.type?Se.push(Ne):(bt=Se[Se.length-1],bt.raw+=`
`+Ne.raw,bt.text+=`
`+Ne.text);continue}if(Ne=this.tokenizer.fences(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.heading(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.nptable(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.hr(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.blockquote(Ce)){Ce=Ce.substring(Ne.raw.length),Ne.tokens=this.blockTokens(Ne.text,[],ke),Se.push(Ne);continue}if(Ne=this.tokenizer.list(Ce)){for(Ce=Ce.substring(Ne.raw.length),$e=Ne.items.length,et=0;et<$e;et++)Ne.items[et].tokens=this.blockTokens(Ne.items[et].text,[],!1);Se.push(Ne);continue}if(Ne=this.tokenizer.html(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(ke&&(Ne=this.tokenizer.def(Ce))){Ce=Ce.substring(Ne.raw.length),this.tokens.links[Ne.tag]||(this.tokens.links[Ne.tag]={href:Ne.href,title:Ne.title});continue}if(Ne=this.tokenizer.table(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.lheading(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(ke&&(Ne=this.tokenizer.paragraph(Ce))){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.text(Ce,Se)){Ce=Ce.substring(Ne.raw.length),Ne.type?Se.push(Ne):(bt=Se[Se.length-1],bt.raw+=`
`+Ne.raw,bt.text+=`
`+Ne.text);continue}if(Ce){var gt="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(gt);break}else throw new Error(gt)}}return Se},Le.inline=function(Ce){var Se,ke,Ne,et,$e,bt,gt=Ce.length;for(Se=0;Se0)for(;(gt=this.tokenizer.rules.inline.reflinkSearch.exec(bt))!=null;)Ut.includes(gt[0].slice(gt[0].lastIndexOf("[")+1,-1))&&(bt=bt.slice(0,gt.index)+"["+"a".repeat(gt[0].length-2)+"]"+bt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(gt=this.tokenizer.rules.inline.blockSkip.exec(bt))!=null;)bt=bt.slice(0,gt.index)+"["+"a".repeat(gt[0].length-2)+"]"+bt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ce;){if($e=this.tokenizer.escape(Ce)){Ce=Ce.substring($e.raw.length),Se.push($e);continue}if($e=this.tokenizer.tag(Ce,ke,Ne)){Ce=Ce.substring($e.raw.length),ke=$e.inLink,Ne=$e.inRawBlock,Se.push($e);continue}if($e=this.tokenizer.link(Ce)){Ce=Ce.substring($e.raw.length),$e.type==="link"&&($e.tokens=this.inlineTokens($e.text,[],!0,Ne)),Se.push($e);continue}if($e=this.tokenizer.reflink(Ce,this.tokens.links)){Ce=Ce.substring($e.raw.length),$e.type==="link"&&($e.tokens=this.inlineTokens($e.text,[],!0,Ne)),Se.push($e);continue}if($e=this.tokenizer.strong(Ce,bt,et)){Ce=Ce.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],ke,Ne),Se.push($e);continue}if($e=this.tokenizer.em(Ce,bt,et)){Ce=Ce.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],ke,Ne),Se.push($e);continue}if($e=this.tokenizer.codespan(Ce)){Ce=Ce.substring($e.raw.length),Se.push($e);continue}if($e=this.tokenizer.br(Ce)){Ce=Ce.substring($e.raw.length),Se.push($e);continue}if($e=this.tokenizer.del(Ce)){Ce=Ce.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],ke,Ne),Se.push($e);continue}if($e=this.tokenizer.autolink(Ce,q)){Ce=Ce.substring($e.raw.length),Se.push($e);continue}if(!ke&&($e=this.tokenizer.url(Ce,q))){Ce=Ce.substring($e.raw.length),Se.push($e);continue}if($e=this.tokenizer.inlineText(Ce,Ne,ce)){Ce=Ce.substring($e.raw.length),et=$e.raw.slice(-1),Se.push($e);continue}if(Ce){var Nt="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(Nt);break}else throw new Error(Nt)}}return Se},g(Ue,null,[{key:"rules",get:function(){return{block:ee,inline:te}}}]),Ue}(),V=S.defaults,Z=K.cleanUrl,be=K.escape,ge=function(){function Ue(Ie){this.options=Ie||V}var Le=Ue.prototype;return Le.code=function(Ce,Se,ke){var Ne=(Se||"").match(/\S*/)[0];if(this.options.highlight){var et=this.options.highlight(Ce,Ne);et!=null&&et!==Ce&&(ke=!0,Ce=et)}return Ne?''+(ke?Ce:be(Ce,!0))+`
`:""+(ke?Ce:be(Ce,!0))+`
`},Le.blockquote=function(Ce){return`
`+Ce+`
`},Le.html=function(Ce){return Ce},Le.heading=function(Ce,Se,ke,Ne){return this.options.headerIds?"
`:""+Ce+"
`},Le.hr=function(){return this.options.xhtml?`
`:`
`},Le.list=function(Ce,Se,ke){var Ne=Se?"ol":"ul",et=Se&&ke!==1?' start="'+ke+'"':"";return"<"+Ne+et+`>
`+Ce+""+Ne+`>
`},Le.listitem=function(Ce){return""+Ce+`
`},Le.checkbox=function(Ce){return" "},Le.paragraph=function(Ce){return""+Ce+`
`},Le.table=function(Ce,Se){return Se&&(Se=""+Se+""),`
`},Le.tablerow=function(Ce){return`
`+Ce+`
`},Le.tablecell=function(Ce,Se){var ke=Se.header?"th":"td",Ne=Se.align?"<"+ke+' align="'+Se.align+'">':"<"+ke+">";return Ne+Ce+""+ke+`>
`},Le.strong=function(Ce){return""+Ce+""},Le.em=function(Ce){return""+Ce+""},Le.codespan=function(Ce){return""+Ce+""},Le.br=function(){return this.options.xhtml?"
":"
"},Le.del=function(Ce){return""+Ce+""},Le.link=function(Ce,Se,ke){if(Ce=Z(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return ke;var Ne='"+ke+"",Ne},Le.image=function(Ce,Se,ke){if(Ce=Z(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return ke;var Ne='
":">",Ne},Le.text=function(Ce){return Ce},Ue}(),Te=function(){function Ue(){}var Le=Ue.prototype;return Le.strong=function(Ce){return Ce},Le.em=function(Ce){return Ce},Le.codespan=function(Ce){return Ce},Le.del=function(Ce){return Ce},Le.html=function(Ce){return Ce},Le.text=function(Ce){return Ce},Le.link=function(Ce,Se,ke){return""+ke},Le.image=function(Ce,Se,ke){return""+ke},Le.br=function(){return""},Ue}(),Je=function(){function Ue(){this.seen={}}var Le=Ue.prototype;return Le.slug=function(Ce){var Se=Ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Se)){var ke=Se;do this.seen[ke]++,Se=ke+"-"+this.seen[ke];while(this.seen.hasOwnProperty(Se))}return this.seen[Se]=0,Se},Ue}(),rt=S.defaults,nt=K.unescape,at=function(){function Ue(Ie){this.options=Ie||rt,this.options.renderer=this.options.renderer||new ge,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Te,this.slugger=new Je}Ue.parse=function(Ce,Se){var ke=new Ue(Se);return ke.parse(Ce)};var Le=Ue.prototype;return Le.parse=function(Ce,Se){Se===void 0&&(Se=!0);var ke="",Ne,et,$e,bt,gt,Ut,Nt,hr,mr,St,Yr,Jr,Hr,un,Ar,vn,mn,Kt,or=Ce.length;for(Ne=0;Ne0&&Ar.tokens[0].type==="text"?(Ar.tokens[0].text=Kt+" "+Ar.tokens[0].text,Ar.tokens[0].tokens&&Ar.tokens[0].tokens.length>0&&Ar.tokens[0].tokens[0].type==="text"&&(Ar.tokens[0].tokens[0].text=Kt+" "+Ar.tokens[0].tokens[0].text)):Ar.tokens.unshift({type:"text",text:Kt}):un+=Kt),un+=this.parse(Ar.tokens,Hr),mr+=this.renderer.listitem(un,mn,vn);ke+=this.renderer.list(mr,Yr,Jr);continue}case"html":{ke+=this.renderer.html(St.text);continue}case"paragraph":{ke+=this.renderer.paragraph(this.parseInline(St.tokens));continue}case"text":{for(mr=St.tokens?this.parseInline(St.tokens):St.text;Ne+1An error occurred:"+He($e.message+"",!0)+"
";throw $e}}Qe.options=Qe.setOptions=function(Ue){return ct(Qe.defaults,Ue),tt(Qe.defaults),Qe},Qe.getDefaults=Re,Qe.defaults=ft,Qe.use=function(Ue){var Le=ct({},Ue);if(Ue.renderer&&function(){var Ce=Qe.defaults.renderer||new ge,Se=function(et){var $e=Ce[et];Ce[et]=function(){for(var bt=arguments.length,gt=new Array(bt),Ut=0;Ut>>24)&16711935|(n[u]<<24|n[u]>>>8)&4278255360;var o=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],h=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var u=0;u<4;u++)l.call(this);for(var u=0;u<8;u++)h[u]^=o[u+4&7];if(c){var m=c.words,s=m[0],r=m[1],a=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,t=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,w=a>>>16|t&4294901760,E=t<<16|a&65535;h[0]^=a,h[1]^=w,h[2]^=t,h[3]^=E,h[4]^=a,h[5]^=w,h[6]^=t,h[7]^=E;for(var u=0;u<4;u++)l.call(this)}},_doProcessBlock:function(n,c){var u=this._X;l.call(this),v[0]=u[0]^u[5]>>>16^u[3]<<16,v[1]=u[2]^u[7]>>>16^u[5]<<16,v[2]=u[4]^u[1]>>>16^u[7]<<16,v[3]=u[6]^u[3]>>>16^u[1]<<16;for(var o=0;o<4;o++)v[o]=(v[o]<<8|v[o]>>>24)&16711935|(v[o]<<24|v[o]>>>8)&4278255360,n[c+o]^=v[o]},blockSize:128/32,ivSize:64/32});function l(){for(var n=this._X,c=this._C,u=0;u<8;u++)S[u]=c[u];c[0]=c[0]+1295307597+this._b|0,c[1]=c[1]+3545052371+(c[0]>>>0>>0?1:0)|0,c[2]=c[2]+886263092+(c[1]>>>0>>0?1:0)|0,c[3]=c[3]+1295307597+(c[2]>>>0>>0?1:0)|0,c[4]=c[4]+3545052371+(c[3]>>>0>>0?1:0)|0,c[5]=c[5]+886263092+(c[4]>>>0>>0?1:0)|0,c[6]=c[6]+1295307597+(c[5]>>>0>>0?1:0)|0,c[7]=c[7]+3545052371+(c[6]>>>0>>0?1:0)|0,this._b=c[7]>>>0>>0?1:0;for(var u=0;u<8;u++){var o=n[u]+c[u],h=o&65535,m=o>>>16,s=((h*h>>>17)+h*m>>>15)+m*m,r=((o&4294901760)*o|0)+((o&65535)*o|0);b[u]=s^r}n[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,n[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,n[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,n[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,n[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,n[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,n[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,n[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}g.Rabbit=P._createHelper(d)}(),L.Rabbit})},ELLl:function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){var g={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},T=L.Pos;L.defineOption("autoCloseBrackets",!1,function(h,m,s){s&&s!=L.Init&&(h.removeKeyMap(p),h.state.closeBrackets=null),m&&(v(P(m,"pairs")),h.state.closeBrackets=m,h.addKeyMap(p))});function P(h,m){return m=="pairs"&&typeof h=="string"?h:typeof h=="object"&&h[m]!=null?h[m]:g[m]}var p={Backspace:d,Enter:l};function v(h){for(var m=0;m=0;a--){var w=r[a].head;h.replaceRange("",T(w.line,w.ch-1),T(w.line,w.ch+1),"+delete")}}function l(h){var m=b(h),s=m&&P(m,"explode");if(!s||h.getOption("disableInput"))return L.Pass;for(var r=h.listSelections(),a=0;a0;return{anchor:new T(h.anchor.line,h.anchor.ch+(m?-1:1)),head:new T(h.head.line,h.head.ch+(m?1:-1))}}function c(h,m){var s=b(h);if(!s||h.getOption("disableInput"))return L.Pass;var r=P(s,"pairs"),a=r.indexOf(m);if(a==-1)return L.Pass;for(var t=P(s,"closeBefore"),w=P(s,"triples"),E=r.charAt(a+1)==m,f=h.listSelections(),k=a%2==0,O,C=0;C=0&&h.getRange(y,T(y.line,y.ch+3))==m+m+m?_="skipThree":_="skip";else if(E&&y.ch>1&&w.indexOf(m)>=0&&h.getRange(T(y.line,y.ch-2),y)==m+m){if(y.ch>2&&/\bstring/.test(h.getTokenTypeAt(T(y.line,y.ch-2))))return L.Pass;_="addFour"}else if(E){var I=y.ch==0?" ":h.getRange(T(y.line,y.ch-1),y);if(!L.isWordChar(M)&&I!=m&&!L.isWordChar(I))_="both";else return L.Pass}else if(k&&(M.length===0||/\s/.test(M)||t.indexOf(M)>-1))_="both";else return L.Pass;if(!O)O=_;else if(O!=_)return L.Pass}var N=a%2?r.charAt(a-1):m,G=a%2?m:r.charAt(a+1);h.operation(function(){if(O=="skip")h.execCommand("goCharRight");else if(O=="skipThree")for(var H=0;H<3;H++)h.execCommand("goCharRight");else if(O=="surround"){for(var B=h.getSelections(),H=0;H>>24)&16711935|(O<<24|O>>>8)&4278255360}var C=this._hash.words,x=c.words,y=u.words,_=b.words,M=d.words,I=l.words,N=n.words,G,H,B,K,U,W,X,ne,fe,me;W=G=C[0],X=H=C[1],ne=B=C[2],fe=K=C[3],me=U=C[4];for(var Ae,f=0;f<80;f+=1)Ae=G+w[E+_[f]]|0,f<16?Ae+=h(H,B,K)+x[0]:f<32?Ae+=m(H,B,K)+x[1]:f<48?Ae+=s(H,B,K)+x[2]:f<64?Ae+=r(H,B,K)+x[3]:Ae+=a(H,B,K)+x[4],Ae=Ae|0,Ae=t(Ae,I[f]),Ae=Ae+U|0,G=U,U=K,K=t(B,10),B=H,H=Ae,Ae=W+w[E+M[f]]|0,f<16?Ae+=a(X,ne,fe)+y[0]:f<32?Ae+=r(X,ne,fe)+y[1]:f<48?Ae+=s(X,ne,fe)+y[2]:f<64?Ae+=m(X,ne,fe)+y[3]:Ae+=h(X,ne,fe)+y[4],Ae=Ae|0,Ae=t(Ae,N[f]),Ae=Ae+me|0,W=me,me=fe,fe=t(ne,10),ne=X,X=Ae;Ae=C[1]+B+fe|0,C[1]=C[2]+K+me|0,C[2]=C[3]+U+W|0,C[3]=C[4]+G+X|0,C[4]=C[0]+H+ne|0,C[0]=Ae},_doFinalize:function(){var w=this._data,E=w.words,f=this._nDataBytes*8,k=w.sigBytes*8;E[k>>>5]|=128<<24-k%32,E[(k+64>>>9<<4)+14]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var O=this._hash,C=O.words,x=0;x<5;x++){var y=C[x];C[x]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}return O},clone:function(){var w=v.clone.call(this);return w._hash=this._hash.clone(),w}});function h(w,E,f){return w^E^f}function m(w,E,f){return w&E|~w&f}function s(w,E,f){return(w|~E)^f}function r(w,E,f){return w&f|E&~f}function a(w,E,f){return w^(E|~f)}function t(w,E){return w<>>32-E}T.RIPEMD160=v._createHelper(o),T.HmacRIPEMD160=v._createHmacHelper(o)}(Math),L.RIPEMD160})},ETIr:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=g.enc,v=p.Base64={stringify:function(b){var d=b.words,l=b.sigBytes,n=this._map;b.clamp();for(var c=[],u=0;u>>2]>>>24-u%4*8&255,h=d[u+1>>>2]>>>24-(u+1)%4*8&255,m=d[u+2>>>2]>>>24-(u+2)%4*8&255,s=o<<16|h<<8|m,r=0;r<4&&u+r*.75>>6*(3-r)&63));var a=n.charAt(64);if(a)for(;c.length%4;)c.push(a);return c.join("")},parse:function(b){var d=b.length,l=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var c=0;c>>6-u%4*2,m=o|h;n[c>>>2]|=m<<24-c%4*8,c++}return P.create(n,c)}}(),L.enc.Base64})},"F+F2":function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){if(typeof ArrayBuffer!="function")return;var g=L,T=g.lib,P=T.WordArray,p=P.init,v=P.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,d=[],l=0;l>>2]|=S[l]<<24-l%4*8;p.call(this,d,b)}else p.apply(this,arguments)};v.prototype=P}(),L.lib.WordArray})},GRO8:function(j,Y,D){"use strict";D.r(Y);var L=D("k1fw"),g=D("2qtc"),T=D("kLXV"),P=D("lUTK"),p=D("BvKs"),v=D("+L6B"),S=D("2/Rp"),b=D("T2oS"),d=D("W9HT"),l=D("sPJy"),n=D("bE4q"),c=D("miYZ"),u=D("tsqr"),o=D("9og8"),h=D("tJVT"),m=D("PpiC"),s=D("WmNS"),r=D.n(s),a=D("q1tI"),t=D.n(a),w=D("Ty5D"),E=D("55Ip"),f=D("9kvl"),k=D("KeDT"),O=D.n(k),C=D("zrhs"),x=D("DZo9"),y=D("8z0m"),_=D("LtfV"),M=D("KhGG"),I=y.a.Dragger,N=function(it){var mt=it.user,Ct=it.dispatch,It=it.classroomList,Pt=it.shixunsDetail,Ht=it.getResults,Wt=Object(w.i)(),dt=Object(a.useState)(),At=Object(h.a)(dt,2),Dt=At[0],yr=At[1],tr=Object(a.useState)([]),qt=Object(h.a)(tr,2),Gt=qt[0],nr=qt[1],cr=Object(a.useState)(!1),st=Object(h.a)(cr,2),Lr=st[0],Fr=st[1],Cr={onRemove:function(){nr([])},beforeUpload:function(Et){if(console.log(Et),(Et==null?void 0:Et.size)>1024*1024*500)return u.b.info("\u6587\u4EF6\u8D85\u8FC7500M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var _t=[];return _t.push(Et),nr([].concat(_t)),!1},fileList:Gt};return t.a.createElement(T.a,{title:"\u63D0\u4EA4\u6587\u4EF6",visible:Pt.actionTabs.key==="md-tab",confirmLoading:Lr,onOk:Object(o.a)(r.a.mark(function rr(){var Et,_t,xt;return r.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(!((Gt==null?void 0:Gt.length)<=0)){pr.next=3;break}return u.b.info("\u8BF7\u5148\u9009\u62E9\u6587\u4EF6"),pr.abrupt("return");case 3:return Fr(!0),pr.next=6,Object(M.c)(Gt[0],{login:(Et=mt.userInfo)===null||Et===void 0?void 0:Et.login,container_type:"Competition",container_id:Pt.actionTabs.params.id,stage_type:Pt.actionTabs.params.value,file_name:(_t=Gt[0])===null||_t===void 0?void 0:_t.name});case 6:xt=pr.sent,(xt==null?void 0:xt.status)===0?(u.b.info("\u63D0\u4EA4\u6210\u529F"),Ct({type:"shixunsDetail/setActionTabs",payload:{key:""}}),Fr(!1),nr([]),Ht(Pt.actionTabs.params.value)):(Fr(!1),u.b.info("\u63D0\u4EA4\u5931\u8D25"));case 8:case"end":return pr.stop()}},rr)})),onCancel:function(){nr([]),Ct({type:"shixunsDetail/setActionTabs",payload:{key:""}})}},t.a.createElement(I,Cr,t.a.createElement("p",{className:"ant-upload-drag-icon"},t.a.createElement(_.a,null)),t.a.createElement("p",{className:"ant-upload-hint"},"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20")))},G=Object(f.a)(function(Tt){var it=Tt.user,mt=Tt.classroomList,Ct=Tt.shixunsDetail;return{user:it,classroomList:mt,shixunsDetail:Ct}})(N),H=D("14J3"),B=D("BMrR"),K=D("5NDa"),U=D("5rEg"),W=D("9Bee"),X=D("m3rI"),ne=D("ErOA"),fe=D("NLgs"),me=D("fV52"),Ae=D("3I+P"),De=D("OaEy"),ye=D("2fM7"),Oe=D("5bA4"),xe=D("UESt"),ue=ye.a.Option;function le(Tt){var it=Tt.rewarddata,mt=Tt.getlistdatas,Ct=Tt.is_signed,It=Tt.dispatch,Pt=Tt.userlist,Ht=Object(a.useRef)(null),Wt=Object(a.useState)(!1),dt=Object(h.a)(Wt,2),At=dt[0],Dt=dt[1],yr=Object(a.useState)(void 0),tr=Object(h.a)(yr,2),qt=tr[0],Gt=tr[1],nr=Object(a.useState)(""),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(void 0),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],_t=Object(a.useState)(void 0),xt=Object(h.a)(_t,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(void 0),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1];function qe(xr){return sr.apply(this,arguments)}function sr(){return sr=Object(o.a)(r.a.mark(function xr(br){var Pr;return r.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(!br.user_received){Zt.next=3;break}return window.open(br.click_info),Zt.abrupt("return");case 3:if(Object(fe.f)(It)){Zt.next=5;break}return Zt.abrupt("return");case 5:if(!(Ct===!1)){Zt.next=8;break}return u.b.info("\u60A8\u5C1A\u672A\u62A5\u540D\u53C2\u8D5B\uFF0C\u8BF7\u62A5\u540D\u53C2\u8D5B\u540E\u9886\u53D6"),Zt.abrupt("return");case 8:if(!(br.click_event==="Pop")){Zt.next=14;break}return Lr(br.id),Dt(!0),Zt.abrupt("return");case 14:Gt(void 0);case 15:return Zt.next=17,It({type:"competitions/Reward",payload:{competition_module_setting_id:br.id}});case 17:Pr=Zt.sent,Pr&&Pr.status===0&&(mt(),br.click_event==="Link"?(u.b.info("\u9886\u53D6\u6210\u529F"),window.open(br.click_info)):u.b.info(br.click_info));case 19:case"end":return Zt.stop()}},xr)})),sr.apply(this,arguments)}function Nr(){return rn.apply(this,arguments)}function rn(){return rn=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(!(Pt&&!Pt.real_name)){Ft.next=4;break}if(rr){Ft.next=4;break}return u.b.info("\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 4:if(!(Pt&&!Pt.email)){Ft.next=8;break}if(Jt){Ft.next=8;break}return u.b.info("\u90AE\u7BB1\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 8:if(!(Pt&&!Pt.phone)){Ft.next=12;break}if(Dr){Ft.next=12;break}return u.b.info("\u624B\u673A\u53F7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 12:if(qt){Ft.next=15;break}return u.b.info("\u8BF7\u9009\u62E9\u4F60\u7684\u5E74\u7EA7"),Ft.abrupt("return");case 15:return Ft.next=17,It({type:"competitions/Reward",payload:{competition_module_setting_id:st,className:qt,name:rr,mail:Jt,phone:Dr}});case 17:br=Ft.sent,br&&br.status===0&&(Dt(!1),mt(),u.b.info("HCIA\u8BA4\u8BC1\u8003\u8BD5\u4EE3\u91D1\u52B5\u5C06\u7531Educoder\u5E73\u53F0\u7EDF\u4E00\u53D1\u653E\uFF0C\u8BF7\u53CA\u65F6\u5173\u6CE8\u90AE\u7BB1\u6216\u7AD9\u5185\u77ED\u4FE1\u67E5\u6536"));case 19:case"end":return Ft.stop()}},xr)})),rn.apply(this,arguments)}return t.a.createElement("div",null,t.a.createElement(T.a,{visible:At,title:"\u5B8C\u5584\u4FE1\u606F",onCancel:function(){return Dt(!1)},onOk:function(){Nr()}},t.a.createElement("p",null,"\u60A8\u7684\u59D3\u540D\uFF1A",t.a.createElement(U.a,{className:Pt&&Pt.real_name?"":O.a.bkfff,style:{width:"300px",marginLeft:"14px",background:Pt&&Pt.phone?"":"#ffffff!important"},value:Pt&&Pt.real_name||rr,disabled:Pt&&Pt.real_name||!1,onChange:function(br){return Et(br.target.value)}})),t.a.createElement("p",{style:{marginTop:"1em"}},"\u60A8\u7684\u90AE\u7BB1\uFF1A",t.a.createElement(U.a,{className:Pt&&Pt.email?"":"bkfff",style:{width:"300px",marginLeft:"14px",background:Pt&&Pt.phone?"":"#ffffff!important"},value:Pt&&Pt.email||Jt,disabled:Pt&&Pt.email||!1,onChange:function(br){return pr(br.target.value)}})),t.a.createElement("p",{style:{marginTop:"1em"}},"\u60A8\u7684\u624B\u673A\u53F7\uFF1A",t.a.createElement(U.a,{style:{width:"300px"},className:Pt&&Pt.phone?"":"bkfff",value:Pt&&Pt.phone||Dr,disabled:Pt&&Pt.phone||!1,onChange:function(br){return an(br.target.value)}})),"\u60A8\u7684\u5E74\u7EA7\uFF1A",t.a.createElement(ye.a,{style:{width:"300px",marginTop:"1em",marginLeft:"14px"},onChange:function(br){Gt(br)}},t.a.createElement(ue,{value:"\u5927\u4E00"},"\u5927\u4E00"),t.a.createElement(ue,{value:"\u5927\u4E8C"},"\u5927\u4E8C"),t.a.createElement(ue,{value:"\u5927\u4E09"},"\u5927\u4E09"),t.a.createElement(ue,{value:"\u5927\u56DB"},"\u5927\u56DB"),t.a.createElement(ue,{value:"\u5927\u4E94"},"\u5927\u4E94"),t.a.createElement(ue,{value:"\u7855\u4E00"},"\u7855\u4E00"),t.a.createElement(ue,{value:"\u7855\u4E8C"},"\u7855\u4E8C"),t.a.createElement(ue,{value:"\u7855\u4E09"},"\u7855\u4E09"),t.a.createElement(ue,{value:"\u535A\u4E00"},"\u535A\u4E00"),t.a.createElement(ue,{value:"\u535A\u4E8C"},"\u535A\u4E8C"),t.a.createElement(ue,{value:"\u535A\u4E09"},"\u535A\u4E09"),t.a.createElement(ue,{value:"\u535A\u56DB"},"\u535A\u56DB"),t.a.createElement(ue,{value:"\u535A\u4E94"},"\u535A\u4E94")),t.a.createElement("p",{style:{marginTop:"1em"}},"\u63D0\u9192\uFF1A\u5982\u65E0\u534E\u4E3A\u4E91\u8D26\u53F7\uFF0C\u8BF7\u5C3D\u5FEB\u6CE8\u518C\u534E\u4E3A\u4E91\uFF01")),it&&it.length>3?t.a.createElement("div",{style:{position:"relative",marginBottom:"10px",marginTop:"10px"}},t.a.createElement("span",{className:O.a.spanprev,onClick:function(){Ht.current.prev()}},t.a.createElement(Oe.a,{style:{color:"#fff",fontSize:"20px",marginLeft:"15px"}})),t.a.createElement(Ae.a,{ref:Ht,className:O.a.divwidth,slidesToShow:3,slidesToScroll:1},it&&it.map(function(xr,br){return t.a.createElement("div",{style:{textAlign:"center",position:"relative"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/".concat(xr.image_url)}),xr.user_received===!1||xr.click_event==="Link"?t.a.createElement("p",{className:O.a.receiveclick,onClick:function(){return qe(xr)}},"\u70B9\u51FB\u9886\u53D6"):t.a.createElement("p",{className:O.a.receivealready},"\u5DF2\u7ECF\u9886\u53D6"))})),t.a.createElement("span",{className:O.a.spannext,onClick:function(){Ht.current.next()}},t.a.createElement(xe.a,{style:{color:"#fff",fontSize:"20px",marginLeft:"5px"}}))):t.a.createElement("div",{className:O.a.divwidth,style:{justifyContent:"space-around",marginBottom:"10px",marginTop:"10px"}},it&&it.map(function(xr,br){return t.a.createElement("div",{style:{textAlign:"center",position:"relative"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/".concat(xr.image_url)}),xr.user_received===!1||xr.click_event==="Link"?t.a.createElement("p",{className:O.a.receiveclick,onClick:function(){return qe(xr)}},"\u70B9\u51FB\u9886\u53D6"):t.a.createElement("p",{className:O.a.receivealready},"\u5DF2\u7ECF\u9886\u53D6"))})))}var re=le,pe=function(it,mt){var Ct=it.StaffDetail,It=it.HeaderDetail,Pt=it.ItemData,Ht=it.setIssee,Wt=it.ModelType,dt=it.dispatch,At=it.userinfo,Dt=it.Editable,yr=Object(a.useState)(!1),tr=Object(h.a)(yr,2),qt=tr[0],Gt=tr[1],nr=Object(a.useState)([]),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(""),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],_t=Object(a.useState)(""),xt=Object(h.a)(_t,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(!1),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1],qe=Object(w.i)(),sr=qe.identifier,Nr=Object(a.useRef)(null),rn=Object(a.useRef)(null);Nr.current=Ct==null?void 0:Ct.enrolled,Object(a.useEffect)(function(){var Ft;return(Ft=rn.current)===null||Ft===void 0||Ft.addEventListener("click",xr),function(){var Zt;(Zt=rn.current)===null||Zt===void 0||Zt.removeEventListener("click",xr)}},[]);var xr=function(Zt){var wr;if((Zt==null||((wr=Zt.target)===null||wr===void 0)?void 0:wr.id)==="modal-upload"){if(!Object(fe.e)(dt))return;if(!Nr.current){T.a.info({title:"\u63D0\u793A",centered:!0,okText:"\u6211\u77E5\u9053\u4E86",content:"\u8BF7\u5148\u62A5\u540D\uFF0C\u518D\u63D0\u4EA4\u4F5C\u54C1"});return}Gt(!0)}};Object(a.useEffect)(function(){if(It!=null&&It.upload_file){var Ft,Zt,wr;Lr([{name:It==null||((Ft=It.upload_file)===null||Ft===void 0)?void 0:Ft.title,status:"done",uid:"123456789"}]),pr(It==null?void 0:It.upload_file_url),Et(It==null||((Zt=It.upload_file)===null||Zt===void 0||((wr=Zt.url)===null||wr===void 0))?void 0:wr.split("/")[3])}},[It==null?void 0:It.upload_file]);var br={name:"file",multiple:!1,withCredentials:!0,action:X.a.API_SERVER+"/api/attachments.json",showUploadList:{showRemoveIcon:!1},fileList:st,onChange:function(Zt){var wr=Zt.file.status,er=[Object(L.a)({},Zt.file)];if(Lr(er),Zt.file.status==="uploading"&&an(!0),wr==="done"){var vt,yt;Et((vt=er[0])===null||vt===void 0||((yt=vt.response)===null||yt===void 0)?void 0:yt.id),an(!1)}wr==="error"&&(Lr([]),an(!1))},beforeUpload:function(Zt){var wr=Zt.size/1024/1024<1e3;return wr?Promise.resolve():(u.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E1000MB"),Promise.reject())}},Pr=function(){Gt(!0)};return Object(a.useImperativeHandle)(mt,function(){return{handleVisible:Pr}}),t.a.createElement("div",{ref:rn},Wt==="reward"?t.a.createElement(re,{userlist:At,dispatch:dt,rewarddata:Pt.reward_setting,is_signed:Pt.is_signed}):null,t.a.createElement("div",{style:{textAlign:"right"}},((At==null?void 0:At.admin)||(At==null?void 0:At.business)||Dt)&&t.a.createElement(S.a,{onClick:function(){return Ht(!1)}},"\u7F16\u8F91")),t.a.createElement(W.a,{value:Pt.md_content}),Pt&&Pt.attachments&&Pt.attachments.map(function(Ft,Zt){return t.a.createElement("div",null,t.a.createElement("a",{href:(X.a===null||X.a===void 0?void 0:X.a.API_SERVER)+Ft.url,target:"_self",download:Ft.title},t.a.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),t.a.createElement("span",{style:{color:"#000000"}},Ft.title),t.a.createElement("span",{style:{color:"#000000",marginLeft:"10px"}},Ft.filesize)))}),t.a.createElement(T.a,{centered:!0,title:"\u4E0A\u4F20\u4F5C\u54C1",visible:qt,okText:"\u63D0\u4EA4\u4F5C\u54C1",cancelText:"\u53D6\u6D88",confirmLoading:Dr,onCancel:function(){return Gt(!1)},onOk:Object(o.a)(r.a.mark(function Ft(){var Zt;return r.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(!(!rr&&!Jt)){er.next=3;break}return Gt(!1),er.abrupt("return");case 3:return an(!0),er.next=6,Object(ne.a)("/api/competitions/".concat(sr,"/upload_file.json"),{method:"post",body:{attachment_id:rr,upload_file_url:Jt}});case 6:Zt=er.sent,Zt.status===0&&(Gt(!1),an(!1));case 8:case"end":return er.stop()}},Ft)}))},t.a.createElement("div",null,t.a.createElement(B.a,{align:"middle",className:"mb20"},t.a.createElement("span",null,"\u4F5C\u54C1\u94FE\u63A5\uFF1A"),t.a.createElement(U.a,{style:{width:416},value:Jt,onChange:function(Zt){var wr;return pr((wr=Zt.target)===null||wr===void 0?void 0:wr.value)}})),t.a.createElement(B.a,{align:"top"},t.a.createElement("span",{style:{lineHeight:"28px"}},"\u4F5C\u54C1\u6587\u4EF6\uFF1A"),t.a.createElement(y.a,br,t.a.createElement(S.a,{type:"primary",className:"mb10"},"\u4E0A\u4F20\u4F5C\u54C1"))))))},ee=Object(a.forwardRef)(pe),te=D("Ot1p"),ce=D("hJwl");function q(Tt){var it=Tt.ItemData,mt=Tt.setIssee,Ct=Tt.MenuItem,It=Tt.dispatch,Pt=Tt.identifier,Ht=Tt.ModelType,Wt=Tt.userinfo,dt=Tt.getrightdatas,At=Object(a.useState)([]),Dt=Object(h.a)(At,2),yr=Dt[0],tr=Dt[1],qt=Object(a.useState)(it.md_content),Gt=Object(h.a)(qt,2),nr=Gt[0],cr=Gt[1];Object(a.useEffect)(function(){var Et,_t=[];it==null||((Et=it.attachments)===null||Et===void 0)||Et.map(function(xt){var Jt={uid:xt.id,name:xt.title,response:{id:xt.id}};_t.push(Jt)}),tr(_t)},[it==null?void 0:it.attachments]);function st(){var Et,_t=[];return it==null||((Et=it.attachments)===null||Et===void 0)||Et.map(function(xt){var Jt={uid:xt==null?void 0:xt.id,name:xt.title,response:{id:xt.id}};_t.push(Jt)}),_t}var Lr={name:"file",multiple:!0,withCredentials:!0,action:X.a.API_SERVER+"/api/attachments.json",defaultFileList:st(),onRemove:function(_t){Object(ce.t)({id:_t.uid})},onChange:function(_t){var xt=_t.file.status;xt!=="uploading",xt==="removed"&&tr(_t.fileList),xt==="done"?(tr(_t.fileList),u.b.success("".concat(_t.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))):xt==="error"&&u.b.error("".concat(_t.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(_t){var xt=_t.size/1024/1024<150;return xt||u.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),xt}};console.log(Lr);function Fr(){return Cr.apply(this,arguments)}function Cr(){return Cr=Object(o.a)(r.a.mark(function Et(){var _t;return r.a.wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return Jt.next=2,It({type:"competitions/updateMdContent",payload:{attachment_ids:rr(yr),competition_module_id:it.id,md_content_id:it.md_id,content:nr,identifier:Pt}});case 2:_t=Jt.sent,_t&&(u.b.info("\u63D0\u4EA4\u6210\u529F"),mt(!0),dt(Ct));case 4:case"end":return Jt.stop()}},Et)})),Cr.apply(this,arguments)}function rr(Et){var _t=[];return Et&&Et.map(function(xt){_t.push(xt.response.id)}),_t}return t.a.createElement("div",null,Ht==="reward"?t.a.createElement(re,{userlist:Wt,dispatch:It,rewarddata:it.reward_setting,is_signed:it.is_signed}):null,t.a.createElement(te.a,{defaultValue:nr,onChange:function(_t){return cr(_t)}}),t.a.createElement(y.a,Lr,t.a.createElement(S.a,{className:"uploadBtn"},"\u4E0A\u4F20\u9644\u4EF6"),"(\u5355\u4E2A\u6587\u4EF6150M\u4EE5\u5185)"),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(S.a,{style:{width:"90px"},type:"primary",onClick:function(){return Fr()}},"\u63D0\u4EA4"),t.a.createElement(S.a,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return mt(!0)}},"\u53D6\u6D88")))}var Q=q,V=D("g9YV"),Z=D("wCAj"),be=D("Znn+"),ge=D("ZTPi");function Te(){return t.a.createElement("div",null,t.a.createElement("p",{style:{fontSize:"24px",color:"#05101a"}},"\u603B\u6392\u884C"),t.a.createElement("div",{style:{textAlign:"center"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/educoder/competitions/trophy.png"}),t.a.createElement("p",null,"\u8981\u6293\u4F4F\u4E00\u5207\u673A\u4F1A\uFF0C\u5411\u6240\u6709\u4EBA\u8BC1\u660E\u81EA\u5DF1\uFF0C\u8BC1\u660E\u4F60\u80FD\u591F\u8FCE\u63A5\u8363\u8000")))}var Je=Te,rt=D("5Dmo"),nt=D("3S7+"),at=D("jCWc"),ct=D("kPKH"),ht=D("IzEo"),He=D("bx4M");function Re(Tt){var it=Tt.oneItem,mt=Tt.towItem,Ct=Tt.threeItem;return t.a.createElement("div",{style:{textAlign:"center"}},t.a.createElement(B.a,{gutter:16,style:{justifyContent:"center"}},t.a.createElement(ct.a,{span:6,style:{marginTop:"30px",marginRight:"20px"}},t.a.createElement(He.a,{title:t.a.createElement("div",{className:O.a.towtop},t.a.createElement("img",{style:{marginTop:"20px"},src:X.a.IMG_SERVER+"/images/educoder/huangguan-two.png"}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(E.a,{to:"/users/".concat(mt==null?void 0:mt.user_login,"/classrooms")},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(mt==null?void 0:mt.user_image)}),(mt==null?void 0:mt.competition_prize)&&t.a.createElement("p",{className:O.a.prize},mt==null?void 0:mt.competition_prize),t.a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},mt==null?void 0:mt.record_user_name)))),className:O.a.towdiv,bordered:!1},t.a.createElement("p",{style:{fontSize:"14px"}},mt==null?void 0:mt.school_name),t.a.createElement("p",{style:{fontSize:"18px"}},mt==null?void 0:mt.spend_time),t.a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(mt==null?void 0:mt.extra_score)+parseFloat(mt==null?void 0:mt.score),"\u5206"))),t.a.createElement(ct.a,{span:6},t.a.createElement(He.a,{title:t.a.createElement("div",{className:O.a.onetop},t.a.createElement("img",{style:{marginTop:"20px"},src:X.a.IMG_SERVER+"/images/educoder/huangguan.png"}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(E.a,{to:"/users/".concat(it==null?void 0:it.user_login,"/classrooms")},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(it==null?void 0:it.user_image)}),(it==null?void 0:it.competition_prize)&&t.a.createElement("p",{className:O.a.prize},it==null?void 0:it.competition_prize),t.a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},it==null?void 0:it.record_user_name)))),className:O.a.onediv,bordered:!1},t.a.createElement("p",{style:{fontSize:"14px"}},it==null?void 0:it.school_name),t.a.createElement("p",{style:{fontSize:"18px"}},it==null?void 0:it.spend_time),t.a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(it==null?void 0:it.extra_score)+parseFloat(it==null?void 0:it.score),"\u5206"))),t.a.createElement(ct.a,{span:6,style:{marginTop:"40px",marginLeft:"20px"}},t.a.createElement(He.a,{title:t.a.createElement("div",{className:O.a.threetop},t.a.createElement("img",{style:{marginTop:"20px"},src:X.a.IMG_SERVER+"/images/educoder/huangguan-three.png"}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(E.a,{to:"/users/".concat(Ct==null?void 0:Ct.user_login,"/classrooms")},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(Ct==null?void 0:Ct.user_image)}),(Ct==null?void 0:Ct.competition_prize)&&t.a.createElement("p",{className:O.a.prize},Ct==null?void 0:Ct.competition_prize),t.a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},Ct==null?void 0:Ct.record_user_name)))),className:O.a.threediv,bordered:!1},t.a.createElement("p",{style:{fontSize:"14px"}},Ct==null?void 0:Ct.school_name),t.a.createElement("p",{style:{fontSize:"18px"}},Ct==null?void 0:Ct.spend_time),t.a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(Ct==null?void 0:Ct.extra_score)+parseFloat(Ct==null?void 0:Ct.score),"\u5206")))))}var tt=Re;function ft(Tt){var it,mt,Ct,It,Pt,Ht,Wt,dt,At,Dt,yr,tr,qt,Gt,nr,cr,st,Lr,Fr,Cr,rr,Et,_t,xt,Jt,pr,dr,fr,Dr,an,qe=Tt.ItemData;return t.a.createElement("div",null,t.a.createElement("p",{style:{fontSize:"24px",color:"#05101a"}},"\u603B\u6392\u884C"),t.a.createElement(tt,{oneItem:qe==null?void 0:qe.teams[0],towItem:qe==null?void 0:qe.teams[1],threeItem:qe==null?void 0:qe.teams[2]}),(qe==null||((it=qe.user_ranks)===null||it===void 0)?void 0:it.length)>0&&t.a.createElement("div",{className:O.a.myTeam},(qe==null||((mt=qe.user_ranks)===null||mt===void 0||((Ct=mt[0])===null||Ct===void 0))?void 0:Ct.success)===!1?t.a.createElement("span",{style:{marginRight:"70px",padding:"10px"}},t.a.createElement("p",{style:{marginBottom:"0px"}}," \u662F\u5426\u664B\u7EA7\uFF1A",t.a.createElement("span",{style:{color:(qe==null||((It=qe.user_ranks)===null||It===void 0||((Pt=It[0])===null||Pt===void 0))?void 0:Pt.success)===!1?"red":"green"}},(qe==null||((Ht=qe.user_ranks)===null||Ht===void 0||((Wt=Ht[0])===null||Wt===void 0))?void 0:Wt.success)===!1?"\u5426":qe!=null&&(dt=qe.user_ranks)!==null&&dt!==void 0&&(At=dt[0])!==null&&At!==void 0&&At.success?"\u662F":"")),(qe==null||((Dt=qe.user_ranks)===null||Dt===void 0||((yr=Dt[0])===null||yr===void 0))?void 0:yr.awards)&&t.a.createElement("p",{style:{marginBottom:"0px"}}," \u662F\u5426\u83B7\u5956\uFF1A",t.a.createElement("span",null,(qe==null||((tr=qe.user_ranks)===null||tr===void 0||((qt=tr[0])===null||qt===void 0))?void 0:qt.awards)==="percent_20"?"\u4E8C\u7B49\u5956":(qe==null||((Gt=qe.user_ranks)===null||Gt===void 0||((nr=Gt[0])===null||nr===void 0))?void 0:nr.awards)==="percent_30"?"\u4E09\u7B49\u5956":"\u6CA1\u6709\u83B7\u5F97\u5956\u9879"))):t.a.createElement("span",{style:{marginRight:"70px"}},"\u6211\u7684\u6392\u540D\uFF1A",qe==null||((cr=qe.user_ranks)===null||cr===void 0||((st=cr[0])===null||st===void 0))?void 0:st.rank),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6218\u961F\u540D"},qe==null||((Lr=qe.user_ranks)===null||Lr===void 0||((Fr=Lr[0])===null||Fr===void 0))?void 0:Fr.team_name)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u65F6\u95F4"},qe==null||((Cr=qe.user_ranks)===null||Cr===void 0||((rr=Cr[0])===null||rr===void 0))?void 0:rr.cost_time)),t.a.createElement("span",{style:{flex:1,textAlign:"center"}},t.a.createElement(nt.a,{title:"\u8D4B\u80FD\u8D5B\u52A0\u5206"},qe==null||((Et=qe.user_ranks)===null||Et===void 0||((_t=Et[0])===null||_t===void 0))?void 0:_t.extra_score)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6BD4\u8D5B\u6210\u7EE9"},qe==null||((xt=qe.user_ranks)===null||xt===void 0||((Jt=xt[0])===null||Jt===void 0))?void 0:Jt.score)),t.a.createElement("span",null,t.a.createElement(nt.a,{title:"\u603B\u5206"},parseFloat(qe==null||((pr=qe.user_ranks)===null||pr===void 0||((dr=pr[0])===null||dr===void 0))?void 0:dr.extra_score)+parseFloat(qe==null||((fr=qe.user_ranks)===null||fr===void 0||((Dr=fr[0])===null||Dr===void 0))?void 0:Dr.score)||0))),qe==null||((an=qe.teams)===null||an===void 0)?void 0:an.map(function(sr,Nr){return t.a.createElement("div",{className:O.a.bottomItem},t.a.createElement("span",{style:{color:"#0152d9",marginRight:"20px"}},Nr+1),t.a.createElement(E.a,{to:"/users/".concat(sr==null?void 0:sr.user_login,"/classrooms"),style:{marginRight:"80px",position:"relative"}},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(sr==null?void 0:sr.user_image)}),(sr==null?void 0:sr.competition_prize)&&t.a.createElement("span",{className:O.a.spanrightradius},sr==null?void 0:sr.competition_prize)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6218\u961F\u540D"},sr==null?void 0:sr.team_name)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u5355\u4F4D/\u5B66\u6821\u540D"},sr.school_name)),t.a.createElement("span",{style:{flex:1,textAlign:"center"}},t.a.createElement(nt.a,{title:"\u8D4B\u80FD\u8D5B\u52A0\u5206"},sr.extra_score)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6BD4\u8D5B\u6210\u7EE9"},sr.score)),t.a.createElement("span",{style:{color:"#0152d9"}},t.a.createElement(nt.a,{title:"\u603B\u5206"},parseFloat(sr.extra_score)+parseFloat(sr.score))))}))}var Qe=ft,lt=ge.a.TabPane;function Ue(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.ChartRules,dt=Tt.ItemData,At=Tt.getCharts,Dt=Tt.Selectkey,yr=Tt.getChartRules,tr=Tt.userinfo,qt=Tt.Editable,Gt=Tt.HeaderDetail,nr=Object(a.useState)(!1),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(""),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],_t=Object(a.useState)(!0),xt=Object(h.a)(_t,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1],qe=Object(a.useState)(),sr=Object(h.a)(qe,2),Nr=sr[0],rn=sr[1],xr=Object(w.i)(),br=xr.identifier;Object(a.useEffect)(function(){if(Jt){var wr,er=Wt==null||((wr=Wt.stages)===null||wr===void 0)?void 0:wr[0];if(an(er),er!=null&&er.id){var vt,yt,zt;((Gt==null?void 0:Gt.task)==="mAP"||(Gt==null?void 0:Gt.task)==="dog")&&At(er==null?void 0:er.id),Et(((vt=Wt.rule_contents)===null||vt===void 0||((yt=vt.filter(function(fn){return parseInt(fn.competition_stage_id)===parseInt(er==null?void 0:er.id)}))===null||yt===void 0||((zt=yt[0])===null||zt===void 0))?void 0:zt.content)||"")}else{var Mt,Mr,cn;(Gt==null?void 0:Gt.task)==="mAP"||(Gt==null?void 0:Gt.task)==="dog",Et(((Mt=Wt.rule_contents)===null||Mt===void 0||((Mr=Mt.filter(function(fn){return parseInt(fn.competition_stage_id)===0}))===null||Mr===void 0||((cn=Mr[0])===null||cn===void 0))?void 0:cn.content)||"")}}},[Wt]);function Pr(){return Ft.apply(this,arguments)}function Ft(){return Ft=Object(o.a)(r.a.mark(function wr(){var er,vt,yt,zt,Mt,Mr,cn,fn,kr;return r.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:if(rr){Ur.next=3;break}return u.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ur.abrupt("return");case 3:if(pr(!1),er=Dr==null?void 0:Dr.id,!er){Ur.next=12;break}return Ur.next=8,Object(ne.a)("/api/competitions/".concat(br,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:rr,md_content_id:(vt=Wt.rule_contents)===null||vt===void 0||((yt=vt.filter(function(gn){return parseInt(gn.competition_stage_id)===parseInt(er)}))===null||yt===void 0||((zt=yt[0])===null||zt===void 0))?void 0:zt.id,stage_id:Dr==null?void 0:Dr.id}});case 8:Mt=Ur.sent,Mt.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Lr(!1),yr()),Ur.next=16;break;case 12:return Ur.next=14,Object(ne.a)("/api/competitions/".concat(br,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:rr,md_content_id:(Mr=Wt.rule_contents)===null||Mr===void 0||((cn=Mr.filter(function(gn){return parseInt(gn.competition_stage_id)===0}))===null||cn===void 0||((fn=cn[0])===null||fn===void 0))?void 0:fn.id,stage_id:Dr==null?void 0:Dr.id}});case 14:kr=Ur.sent,kr.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Lr(!1),yr());case 16:case"end":return Ur.stop()}},wr)})),Ft.apply(this,arguments)}var Zt=[{title:"\u6392\u540D",dataIndex:"name",align:"center",key:"name",render:function(er,vt,yt){return t.a.createElement("span",null,yt+1)}},{title:"\u5934\u50CF",dataIndex:"user_image",align:"center",key:"user_image",render:function(er){return t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(er)})}},{title:"\u6218\u961F\u540D\u79F0",dataIndex:"team_name",key:"team_name",render:function(er){return t.a.createElement("span",{title:er},er&&(er==null?void 0:er.length)>=15?(er==null?void 0:er.substr(0,15))+"...":er||"--")}},{title:"\u5355\u4F4D",dataIndex:"school_name",key:"school_name",align:"center",render:function(er){return t.a.createElement("span",null,er||"--")}},{title:(Gt==null?void 0:Gt.task)==="mAP"?"mAP\u6307\u6807":(Gt==null?void 0:Gt.task)==="Jittor-3"?"\u603B\u5206":"top1\u6307\u6807",dataIndex:"score",key:"score",render:function(er){return t.a.createElement("span",null,er||"--")}}];return t.a.createElement("div",null,(Wt==null||((it=Wt.stages)===null||it===void 0)?void 0:it.length)>0?null:t.a.createElement(Je,null),(Wt==null||((mt=Wt.stages)===null||mt===void 0)?void 0:mt.length)>0&&t.a.createElement(ge.a,{animated:!0,tabBarExtraContent:((tr==null?void 0:tr.admin)||(tr==null?void 0:tr.business)||qt)&&t.a.createElement(S.a,{onClick:function(){Lr(!0)}},"\u7F16\u8F91"),onChange:function(er){var vt,yt,zt,Mt,Mr;Lr(!1);var cn=Wt==null||((vt=Wt.stages)===null||vt===void 0)?void 0:vt.filter(function(kr){return parseInt(er)===parseInt(kr==null?void 0:kr.id)})[0];an(cn);var fn=cn==null||((yt=cn.children)===null||yt===void 0)?void 0:yt[0];rn(fn),Et(((zt=Wt.rule_contents)===null||zt===void 0||((Mt=zt.filter(function(kr){return parseInt(kr.competition_stage_id)===parseInt(cn==null?void 0:cn.id)}))===null||Mt===void 0||((Mr=Mt[0])===null||Mr===void 0))?void 0:Mr.content)||""),At((fn==null?void 0:fn.id)||er)}},Wt&&Wt.stages.map(function(wr,er){return t.a.createElement(lt,{tab:wr.name,key:wr.id===null?0:wr.id},st===!1&&Wt&&Wt.rule_contents.map(function(vt,yt){if(wr.id===vt.competition_stage_id)return t.a.createElement(W.a,{key:yt,value:vt.content===void 0||vt.content===null?"":vt.content});if(wr.id===null&&vt.competition_stage_id===0)return t.a.createElement(W.a,{key:yt,value:vt.content===void 0||vt.content===null?"":vt.content})}))})),(Dr==null||((Ct=Dr.children)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{activeKey:(Nr==null?void 0:Nr.id)+"",onChange:function(er){var vt,yt=Dr==null||((vt=Dr.children)===null||vt===void 0)?void 0:vt.filter(function(zt){return parseInt(er)===parseInt(zt==null?void 0:zt.id)})[0];rn(yt),At(er)}},Dr==null||((It=Dr.children)===null||It===void 0)?void 0:It.map(function(wr,er){return t.a.createElement(lt,{tab:wr.name,key:wr.id===null?0:wr.id})})),st&&t.a.createElement("div",null,t.a.createElement(te.a,{defaultValue:rr,onChange:function(er){Et(er)}}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(S.a,{style:{width:"90px"},type:"primary",onClick:function(){return Pr()}},"\u63D0\u4EA4"),t.a.createElement(S.a,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return Lr(!1)}},"\u53D6\u6D88"))),(dt==null||((Pt=dt.teams)===null||Pt===void 0)?void 0:Pt.length)>0&&((Gt==null?void 0:Gt.task)==="mAP"||(Gt==null?void 0:Gt.task)==="dog"||(Gt==null?void 0:Gt.task)==="Jittor-3")?t.a.createElement(Z.a,{dataSource:dt==null?void 0:dt.teams,columns:Zt,pagination:!1}):(dt==null||((Ht=dt.teams)===null||Ht===void 0)?void 0:Ht.length)>0&&t.a.createElement(Qe,{ItemData:dt}))}var Le=Ue,Ie=D("/zsF"),Ce=D("PArb");function Se(Tt){var it,mt,Ct,It,Pt,Ht,Wt,dt=Tt.Prize,At=Object(w.i)(),Dt=Object(a.useState)([{type:1,name:"\u56E2\u4F53\u5956\u8BC1\u4E66"},{type:2,name:"\u4E2A\u4EBA\u5956\u8BC1\u4E66"},{type:3,name:"\u4F18\u79C0\u6307\u5BFC\u6559\u5E08\u8BC1\u4E66"}]),yr=Object(h.a)(Dt,2),tr=yr[0],qt=yr[1],Gt=function(){var nr=Object(o.a)(r.a.mark(function cr(st){var Lr;return r.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return Cr.next=2,Object(ce.u)({type:st.type,id:At.identifier});case 2:Lr=Cr.sent,(Lr==null?void 0:Lr.status)===0&&(location.href="/competitions/exports?id=".concat(At.identifier,"&type=").concat(st.type));case 4:case"end":return Cr.stop()}},cr)}));return function(st){return nr.apply(this,arguments)}}();return t.a.createElement("div",null,t.a.createElement("p",{className:O.a.downloadpdf},"\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u7684\u4E2A\u4EBA\u4FE1\u606F\u7ECF\u5BA1\u6279\u540E\uFF0C\u5C06\u63D0\u4F9B\u4E2A\u4EBA\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D\uFF1B\u56E2\u961F\u961F\u5458\u4FE1\u606F\u5168\u90E8\u5BA1\u6279\u540E\uFF0C\u5C06\u63D0\u4F9B\u56E2\u961F\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D\u3002"),t.a.createElement("p",{style:{marginTop:"30px",fontSize:"16px",color:"#000"}},"\u8BC1\u4E66\u60C5\u51B5"),(dt==null||((it=dt.personal_certifications)===null||it===void 0)?void 0:it.length)>0?t.a.createElement("p",null,t.a.createElement("span",null,"\u4E2A\u4EBA\u8BC1\u4E66\uFF1A"),t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/educoder/pdfs.png"}),t.a.createElement("a",{style:{marginLeft:"5px"},href:X.a.API_SERVER+"".concat(dt==null||((mt=dt.personal_certifications[0])===null||mt===void 0)?void 0:mt.url)},"\u7ACB\u5373\u4E0B\u8F7D")):t.a.createElement("p",null,t.a.createElement("span",null,"\u4E2A\u4EBA\u8BC1\u4E66\uFF1A")," ",t.a.createElement("span",{style:{color:"#000"}},"\u6682\u672A\u751F\u6210"),t.a.createElement("span",{style:{marginLeft:"20px"}},"\u539F\u56E0\uFF1A")," ",t.a.createElement("span",{style:{color:"#000"}},"\u7EC4\u59D4\u4F1A\u672A\u5B8C\u6210\u8BC1\u4E66\u5BA1\u6279\uFF0C\u8BF7\u7A0D\u540E")),(dt==null||((Ct=dt.team_certifications)===null||Ct===void 0)?void 0:Ct.length)>0?t.a.createElement("p",null,t.a.createElement("span",null,"\u56E2\u961F\u8BC1\u4E66\uFF1A"),t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/educoder/pdfs.png"}),t.a.createElement("a",{style:{marginLeft:"5px"},href:X.a.API_SERVER+"".concat(dt==null||((It=dt.team_certifications[0])===null||It===void 0)?void 0:It.url)},"\u7ACB\u5373\u4E0B\u8F7D")):t.a.createElement("p",null,t.a.createElement("span",null,"\u56E2\u961F\u8BC1\u4E66\uFF1A")," ",t.a.createElement("span",{style:{color:"#000"}},"\u6682\u672A\u751F\u6210")),t.a.createElement(Ce.a,null),(dt==null||((Pt=dt.teams)===null||Pt===void 0)?void 0:Pt.length)>0?t.a.createElement("div",null,t.a.createElement("p",null,(dt==null?void 0:dt.teams)&&(dt==null||((Ht=dt.teams[0])===null||Ht===void 0)?void 0:Ht.name),"\u6218\u961F\u4FE1\u606F\u586B\u62A5\u6982\u51B5"),t.a.createElement("p",{style:{display:"flex",height:"50px",background:"#f5f5f5",alignItems:"center",justifyContent:"space-around"}},t.a.createElement("span",{style:{width:"5%"}},"\u89D2\u8272"),t.a.createElement("span",{style:{width:"5%"}},"\u59D3\u540D"),t.a.createElement("span",{style:{width:"10%"}},"\u5B9E\u540D\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},"\u804C\u4E1A\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},"\u624B\u673A\u7ED1\u5B9A"),t.a.createElement("span",{style:{width:"10%"}},"\u90AE\u7BB1\u7ED1\u5B9A"),t.a.createElement("span",{style:{width:"50%",textAlign:"center"}},"\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7\u4FE1\u606F\uFF08\u961F\u957F\u586B\u5199\uFF09")),(dt==null?void 0:dt.teams)&&(dt==null||((Wt=dt.teams[0])===null||Wt===void 0)?void 0:Wt.team_members.map(function(nr,cr){var st,Lr,Fr,Cr,rr,Et;return t.a.createElement("p",{className:O.a.teamItem},t.a.createElement("span",{style:{width:"5%"}},nr==null?void 0:nr.role),t.a.createElement("span",{style:{width:"5%"}},nr==null?void 0:nr.name),t.a.createElement("span",{style:{width:"10%"}},(nr==null?void 0:nr.real_name_auth)==="authed"?"\u5DF2\u8BA4\u8BC1":(nr==null?void 0:nr.real_name_auth)==="authing"?"\u5F85\u5BA1\u6838":"\u672A\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},(nr==null?void 0:nr.professional_auth)==="authed"?"\u5DF2\u8BA4\u8BC1":(nr==null?void 0:nr.professional_auth)==="authing"?"\u5F85\u5BA1\u6838":"\u672A\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},nr!=null&&nr.phone_binded?"\u5DF2\u7ED1\u5B9A":"\u672A\u7ED1\u5B9A"),t.a.createElement("span",{style:{width:"10%"}},nr!=null&&nr.email_binded?"\u5DF2\u7ED1\u5B9A":"\u672A\u7ED1\u5B9A"),(nr==null?void 0:nr.role)==="\u961F\u957F"?t.a.createElement("span",{style:{width:"50%",textAlign:"center"}},(dt==null?void 0:dt.teams)&&(dt==null||((st=dt.teams[0])===null||st===void 0||((Lr=st.bank_account)===null||Lr===void 0))?void 0:Lr.bank),(dt==null?void 0:dt.teams)&&(dt==null||((Fr=dt.teams[0])===null||Fr===void 0||((Cr=Fr.bank_account)===null||Cr===void 0))?void 0:Cr.second_bank),(dt==null?void 0:dt.teams)&&(dt==null||((rr=dt.teams[0])===null||rr===void 0||((Et=rr.bank_account)===null||Et===void 0))?void 0:Et.card_no)):t.a.createElement("span",{style:{width:"50%"}}))}))):null,t.a.createElement(B.a,{gutter:[20,20]},tr.map(function(nr,cr){return t.a.createElement(ct.a,{key:cr},t.a.createElement(S.a,{type:"primary",onClick:function(){return Gt(nr)}},nr.name))})))}var ke=Se,Ne=D("0Owb"),et=D("7Kak"),$e=D("9yH6"),bt=D("y8nQ"),gt=D("Vl3Y"),Ut=D("1vsH"),Nt=D("Dgm7"),hr=D.n(Nt),mr=D("NnUe"),St=D.n(mr),Yr=y.a.Dragger,Jr=10,Hr=function(it){var mt=it.user,Ct=it.account,It=it.globalSetting,Pt=it.loading,Ht=it.dispatch,Wt=Object(m.a)(it,["user","account","globalSetting","loading","dispatch"]),dt=gt.a.useForm(),At=Object(h.a)(dt,1),Dt=At[0],yr=Object(a.useState)({}),tr=Object(h.a)(yr,2),qt=tr[0],Gt=tr[1],nr=Object(a.useState)(!0),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],_t=Object(a.useState)(),xt=Object(h.a)(_t,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1],qe=Object(a.useState)(),sr=Object(h.a)(qe,2),Nr=sr[0],rn=sr[1];Object(a.useEffect)(function(){if(!Ct.basicInfo)return;var er=Ct.basicInfo,vt={name:er.show_realname?er.name:Object(Ut.E)(er.name),gender:er.gender};Et(er.name),Lr(er.show_realname),Dt.setFieldsValue(vt),Gt(vt)},[Ct.basicInfo]);var xr=function(vt){if(vt.file.status==="uploading"){rn(!0);return}if(vt.file.status==="done"){var yt;console.log(vt.file,vt.file.response),an((yt=vt.file.response)===null||yt===void 0?void 0:yt.id),Object(Ut.B)(vt.file.originFileObj,function(zt){pr(zt),rn(!1)})}},br=function(vt){Gt(Object(L.a)({},Dt.getFieldsValue())),"name"in vt&&Et(vt.name)},Pr=function(){var vt=!st;Lr(vt);var yt=vt?rr:Object(Ut.E)(rr);Dt.setFieldsValue({name:yt})},Ft=function(){var er=Object(o.a)(r.a.mark(function vt(yt){var zt,Mt,Mr,cn,fn,kr,on,Ur;return r.a.wrap(function(Vr){for(;;)switch(Vr.prev=Vr.next){case 0:if(Mr=yt||{},cn=Mr.name,fn=Mr.gender,kr=Mr.idNumber,Jt){Vr.next=4;break}return u.b.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01"),Vr.abrupt("return");case 4:return Vr.next=6,Ht({type:"account/applyRealNameAuth",payload:{id:((zt=Ct.basicInfo)===null||zt===void 0?void 0:zt.id)||((Mt=mt.userInfo)===null||Mt===void 0?void 0:Mt.login),name:cn,gender:fn,id_number:kr,show_realname:st,attachment_ids:[Dr]}});case 6:on=Vr.sent,Zt(),on&&(u.b.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Ht({type:"account/getBasicInfo",payload:{login:(Ur=mt.userInfo)===null||Ur===void 0?void 0:Ur.login}}));case 9:case"end":return Vr.stop()}},vt)}));return function(yt){return er.apply(this,arguments)}}(),Zt=function(){Ht({type:"account/setActionTabs",payload:{}})},wr={data:{type:"real_name"},multiple:!0,showUploadList:!1,action:"".concat(X.a.API_SERVER,"/api/attachments.json"),className:St.a.uploader,onChange:xr,beforeUpload:function(vt){var yt=vt.type==="image/jpeg"||vt.type==="image/png"||vt.type==="image/jpg"||vt.type==="image/bmp";return yt||u.b.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),yt}};return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Ct.actionTabs.key==="Account-RealNameAuth",title:"\u4FEE\u6539\u5B9E\u540D\u4FE1\u606F",width:"600px",footer:null},t.a.createElement(d.a,{spinning:!!Nr},t.a.createElement(gt.a,{className:St.a.formWrap,form:Dt,layout:"horizontal",onValuesChange:br,onFinish:Ft},t.a.createElement(gt.a.Item,{label:"\u59D3\u540D",name:"name",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(Jr,"\u4E2A\u5B57\u7B26")},{validator:Ut.H}],extra:t.a.createElement("span",null,st?"\uFF08\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09":"\uFF08\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0\uFF09")},t.a.createElement(U.a,{disabled:!st,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(Jr,"\u4E2A\u5B57\u7B26"),maxLength:Jr,addonAfter:t.a.createElement("i",{className:"iconfont ".concat(st?"icon-xianshi":"icon-yincang"," font18 ").concat(St.a.color0152d9),onClick:Pr})})),t.a.createElement(gt.a.Item,{label:"\u6027\u522B\uFF1A",name:"gender",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},t.a.createElement($e.a.Group,null,t.a.createElement($e.a,{value:0},"\u7537"),t.a.createElement($e.a,{value:1},"\u5973"))),t.a.createElement(gt.a.Item,{label:"\u8BC1\u4EF6\u53F7\uFF1A",labelCol:{span:3},name:"idNumber",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"}]},t.a.createElement(U.a,{placeholder:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"})),t.a.createElement(gt.a.Item,{label:"\u8EAB\u4EFD\u8BC1\u4E0A\u4F20",labelCol:{span:3}},t.a.createElement("div",{className:St.a.flexRow},t.a.createElement("div",{className:"".concat(St.a.flexColumn," ").concat(St.a.example)},t.a.createElement("span",{className:St.a.exampleImg},t.a.createElement("img",{src:hr.a})),t.a.createElement("span",{className:"tc"},t.a.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),t.a.createElement("p",{className:"".concat(St.a.colorOrange," font12")},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),t.a.createElement("div",{className:St.a.flexColumn},t.a.createElement(Yr,Object(Ne.a)({},wr,{accept:".png,.jpg,.bmp,.jpeg"}),Jt?t.a.createElement("img",{src:Jt,className:St.a.uploadImg}):t.a.createElement("div",{className:St.a.imageTip},t.a.createElement("p",null,t.a.createElement("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(St.a.uploadTipIcon)})),t.a.createElement("p",{className:St.a.uploadTip},t.a.createElement("a",{className:St.a.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),t.a.createElement("span",{className:"tc"},t.a.createElement("p",{className:St.a.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),t.a.createElement("div",{className:St.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(S.a,{className:"mr5",size:"large",onClick:Zt},"\u53D6\u6D88"),t.a.createElement(S.a,{size:"large",type:"primary",htmlType:"submit",loading:Pt["account/applyRealNameAuth"]},"\u4FDD\u5B58"))),t.a.createElement("div",{className:St.a.note},t.a.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),t.a.createElement("p",null,"1.\u4F60\u9700\u8981\u51C6\u5907\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u6B63\u9762\uFF08\u4EBA\u50CF\u9762\uFF09\u7684\u8BC1\u4EF6\u7167\u7167\u7247\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u7247\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),t.a.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),t.a.createElement("p",null,"3.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B"),t.a.createElement("p",null,"4.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),t.a.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),t.a.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u8BC1\u4EF6\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u5B9E\u540D\u8BA4\u8BC1\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3EduCoder\u8D26\u53F7\u3002"),t.a.createElement("p",null,"7.\u63D0\u4EA4\u5B9E\u540D\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))))},un=Object(f.a)(function(Tt){var it=Tt.user,mt=Tt.account,Ct=Tt.loading,It=Tt.globalSetting;return{user:it,account:mt,globalSetting:It,loading:Ct.effects}})(Hr),Ar=D("O3gP"),vn=D("lrIw"),mn=D("KXlV"),Kt=D.n(mn),or=D("Sjjz"),Xt=D.n(or),gr=U.a.TextArea,Xr=function(it){var mt=it.account,Ct=it.globalSetting,It=it.loading,Pt=it.dispatch,Ht=it.schoolName,Wt=it.departmentName,dt=it.visible,At=it.onClose,Dt=At===void 0?function(){}:At,yr=it.onSuccess,tr=yr===void 0?function(){}:yr,qt=Object(m.a)(it,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]),Gt=gt.a.useForm(),nr=Object(h.a)(Gt,1),cr=nr[0],st=Object(a.useRef)();Object(a.useEffect)(function(){st.current=qt.schoolId},[qt.schoolId]),Object(a.useEffect)(function(){cr.setFieldsValue({department:Wt})},[Wt]);var Lr=function(){var Fr=Object(o.a)(r.a.mark(function Cr(rr){var Et,_t,xt,Jt;return r.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return Et=rr||{},_t=Et.department,xt=Et.remarks,dr.next=3,Pt({type:"account/appplyDepartment",payload:{school_id:st.current,name:_t,remarks:xt}});case 3:Jt=dr.sent,Dt(),Jt&&(u.b.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),tr(_t));case 6:case"end":return dr.stop()}},Cr)}));return function(rr){return Fr.apply(this,arguments)}}();return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:dt,title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},t.a.createElement(gt.a,{className:Xt.a.formWrap,form:cr,labelCol:{span:4},wrapperCol:{span:20},onFinish:Lr},t.a.createElement(gt.a.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},Ht),t.a.createElement(gt.a.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},t.a.createElement(U.a,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),t.a.createElement(gt.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},t.a.createElement(gr,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),t.a.createElement("div",{className:Xt.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(S.a,{className:"mr5",size:"large",onClick:function(){Dt()}},"\u53D6\u6D88"),t.a.createElement(S.a,{size:"large",type:"primary",htmlType:"submit",loading:It["account/appplyDepartment"]},"\u4FDD\u5B58")))))},kn=Object(f.a)(function(Tt){var it=Tt.account,mt=Tt.loading,Ct=Tt.globalSetting;return{account:it,globalSetting:Ct,loading:mt.effects}})(Xr),Ln=D("6UJt"),tn=D("DFOY"),ur=D("jO45"),Xn=D("jN4g"),hi=D("gJ3r"),$n=D("jwmR"),Zr=D.n($n),Bn=function(it,mt){return mt.some(function(Ct){return Ct.label.toLowerCase().indexOf(it.toLowerCase())>-1})},si=U.a.TextArea,li=function(it){var mt=it.account,Ct=it.globalSetting,It=it.loading,Pt=it.dispatch,Ht=it.schoolName,Wt=it.visible,dt=it.onClose,At=dt===void 0?function(){}:dt,Dt=it.onSuccess,yr=Dt===void 0?function(){}:Dt,tr=Object(m.a)(it,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]),qt=gt.a.useForm(),Gt=Object(h.a)(qt,1),nr=Gt[0];Object(a.useEffect)(function(){nr.setFieldsValue({name:Ht})},[Ht]);var cr=function(){var st=Object(o.a)(r.a.mark(function Lr(Fr){var Cr,rr,Et,_t,xt,Jt,pr;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return Cr=Fr||{},rr=Cr.name,Et=Cr.city,_t=Et===void 0?[]:Et,xt=Cr.address,Jt=Cr.remarks,fr.next=3,Pt({type:"account/appplySchool",payload:{name:rr,province:_t[0],city:_t[1],address:xt,remarks:Jt}});case 3:pr=fr.sent,At(),pr&&(u.b.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),yr(rr));case 6:case"end":return fr.stop()}},Lr)}));return function(Fr){return st.apply(this,arguments)}}();return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Wt,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},t.a.createElement(gt.a,{className:Zr.a.formWrap,form:nr,labelCol:{span:4},wrapperCol:{span:20},onFinish:cr},t.a.createElement(gt.a.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},t.a.createElement(U.a,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),t.a.createElement("div",{className:"".concat(Zr.a.flexRow," ").concat(Zr.a.example)},t.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),t.a.createElement("div",{className:Zr.a.flexColumn},t.a.createElement("div",null,t.a.createElement(ur.a,{style:{color:"rgb(82, 196, 26)"}}),t.a.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),t.a.createElement("div",null,t.a.createElement(Xn.a,{style:{color:"red"}}),t.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),t.a.createElement(gt.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},t.a.createElement(tn.a,{allowClear:!0,size:"large",options:hi.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:Bn}})),t.a.createElement(gt.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},t.a.createElement(U.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),t.a.createElement(gt.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},t.a.createElement(si,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),t.a.createElement("div",{className:Zr.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(S.a,{className:"mr5",size:"large",onClick:function(){At()}},"\u53D6\u6D88"),t.a.createElement(S.a,{size:"large",type:"primary",htmlType:"submit",loading:It["account/appplySchool"]},"\u4FDD\u5B58")))))},wt=Object(f.a)(function(Tt){var it=Tt.account,mt=Tt.loading,Ct=Tt.globalSetting;return{account:it,globalSetting:Ct,loading:mt.effects}})(li),$t=ye.a.Option,en=y.a.Dragger,Cn=function(it){var mt,Ct,It=it.user,Pt=it.account,Ht=it.globalSetting,Wt=it.loading,dt=it.dispatch,At=it.Scoid,Dt=Object(m.a)(it,["user","account","globalSetting","loading","dispatch","Scoid"]),yr=gt.a.useForm(),tr=Object(h.a)(yr,1),qt=tr[0],Gt=Object(a.useState)({}),nr=Object(h.a)(Gt,2),cr=nr[0],st=nr[1],Lr=Object(a.useState)([]),Fr=Object(h.a)(Lr,2),Cr=Fr[0],rr=Fr[1],Et=Object(a.useState)([]),_t=Object(h.a)(Et,2),xt=_t[0],Jt=_t[1],pr=Object(a.useState)([]),dr=Object(h.a)(pr,2),fr=dr[0],Dr=dr[1],an=Object(a.useState)([]),qe=Object(h.a)(an,2),sr=qe[0],Nr=qe[1],rn=Object(a.useState)(),xr=Object(h.a)(rn,2),br=xr[0],Pr=xr[1],Ft=Object(a.useState)(),Zt=Object(h.a)(Ft,2),wr=Zt[0],er=Zt[1],vt=Object(a.useState)(),yt=Object(h.a)(vt,2),zt=yt[0],Mt=yt[1],Mr=Object(a.useState)(),cn=Object(h.a)(Mr,2),fn=cn[0],kr=cn[1],on=Object(a.useState)(),Ur=Object(h.a)(on,2),gn=Ur[0],Vr=Ur[1];Object(a.useEffect)(function(){yn()},[]),Object(a.useEffect)(function(){Object(o.a)(r.a.mark(function Ve(){var We;return r.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(At){pt.next=2;break}return pt.abrupt("return");case 2:return pt.next=4,ei(At);case 4:We=pt.sent,Dr(We==null?void 0:We.departments);case 6:case"end":return pt.stop()}},Ve)}))()},[At]);var yn=function(){var Ve=Object(o.a)(r.a.mark(function We(){var Ze;return r.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return kt.next=2,dt({type:"account/getSchoolOption"});case 2:Ze=kt.sent,rr(Ze==null?void 0:Ze.schools);case 4:case"end":return kt.stop()}},We)}));return function(){return Ve.apply(this,arguments)}}(),ei=function(We){return dt({type:"account/getDepartmentOption",payload:{id:We}})};Object(a.useEffect)(function(){if(!Pt.basicInfo)return;var Ve=Pt.basicInfo,We={identity:Ve.identity,school:Ve.school_name,department:Ve.department_name,studentNo:Ve.student_id,jobTitle:Ve.identity=="teacher"?Ve.technical_title:"\u6559\u6388",manager:Ve.identity=="professional"?Ve.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};qt.setFieldsValue(We),st(We)},[Pt.basicInfo]);var Me=function(){kr(!0)},Ge=function(){if(!Cr.find(function(We){return We.name===cr.school})){u.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}Vr(!0)},Ye=function(We){if(st(Object(L.a)({},qt.getFieldsValue())),"school"in We){Jt(Cr.filter(function(pt){return pt.name.includes(We.school)}));var Ze=(Cr.find(function(pt){return pt.name===We.school})||{}).id;Ze?Fe(We.school):(qt.setFieldsValue({department:""}),st(Object(L.a)(Object(L.a)({},cr),{school:We.school,department:""})))}},Fe=function(){var Ve=Object(o.a)(r.a.mark(function We(Ze,pt){var kt,jt,Yt,Ir,Qr,$r;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Ir=(kt=Cr.find(function(sn){return sn.name===Ze}))===null||kt===void 0?void 0:kt.id,Kr.next=3,ei(Ir);case 3:if(Kr.t0=Kr.sent,Kr.t0){Kr.next=6;break}Kr.t0={};case 6:Qr=Kr.t0,Dr(Qr==null?void 0:Qr.departments),$r=pt||(Qr==null||((jt=Qr.departments)===null||jt===void 0||((Yt=jt[0])===null||Yt===void 0))?void 0:Yt.name),qt.setFieldsValue({department:$r}),st(Object(L.a)(Object(L.a)({},cr),{school:Ze,department:$r}));case 11:case"end":return Kr.stop()}},We)}));return function(Ze,pt){return Ve.apply(this,arguments)}}(),Ee=function(){var Ve=Object(o.a)(r.a.mark(function We(Ze){return r.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return kt.next=2,yn();case 2:qt.setFieldsValue({school:Ze,department:""}),st(Object(L.a)(Object(L.a)({},cr),{school:Ze,department:""}));case 4:case"end":return kt.stop()}},We)}));return function(Ze){return Ve.apply(this,arguments)}}(),Pe=function(We){if(We.file.status==="uploading"){Mt(!0);return}if(We.file.status==="done"){var Ze;console.log(We.file,We.file.response),er((Ze=We.file.response)===null||Ze===void 0?void 0:Ze.id),Object(Ut.B)(We.file.originFileObj,function(pt){Pr(pt),Mt(!1)})}},_e=function(){var Ve=Object(o.a)(r.a.mark(function We(Ze){var pt,kt,jt,Yt,Ir,Qr,$r,nn,Kr,sn,ln,xn,hn,jn,pn,jr;return r.a.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:if(Ir=Ze||{},Qr=Ir.school,$r=Ir.department,nn=Ir.identity,Kr=Ir.studentNo,sn=Ir.jobTitle,ln=Ir.manager,br){dn.next=4;break}return u.b.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01"),dn.abrupt("return");case 4:return xn=(pt=Cr.find(function(bn){return bn.name===Qr}))===null||pt===void 0?void 0:pt.id,hn=(kt=fr.find(function(bn){return bn.name===$r}))===null||kt===void 0?void 0:kt.id,nn==="student"?jn=Kr:nn==="teacher"?jn=sn:jn=ln,dn.next=9,dt({type:"account/applyProfessionalAuth",payload:{id:((jt=Pt.basicInfo)===null||jt===void 0?void 0:jt.id)||((Yt=It.userInfo)===null||Yt===void 0?void 0:Yt.login),school_id:xn,department_id:hn,identity:nn,extra:jn,attachment_ids:[wr]}});case 9:pn=dn.sent,je(),pn&&(u.b.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),dt({type:"account/getBasicInfo",payload:{login:(jr=It.userInfo)===null||jr===void 0?void 0:jr.login}}));case 12:case"end":return dn.stop()}},We)}));return function(Ze){return Ve.apply(this,arguments)}}(),je=function(){dt({type:"account/setActionTabs",payload:{}})},ze={data:{type:"professional"},multiple:!0,showUploadList:!1,action:"".concat(X.a.API_SERVER,"/api/attachments.json"),className:St.a.uploader,onChange:Pe,beforeUpload:function(We){var Ze=We.type==="image/jpeg"||We.type==="image/png"||We.type==="image/jpg"||We.type==="image/bmp";return Ze||u.b.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),Ze}};return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:St.a.modal,visible:Pt.actionTabs.key==="Account-ProfessionalAuth",title:t.a.createElement("div",null,t.a.createElement("i",{className:"iconfont icon-zhiyerenzheng font18 mr5 ".concat(St.a.colorBlue)}),"\u804C\u4E1A\u8BA4\u8BC1"),width:"660px",footer:null},t.a.createElement(d.a,{spinning:!!zt},t.a.createElement(gt.a,{className:St.a.formWrap,form:qt,layout:"horizontal",onValuesChange:Ye,onFinish:_e},t.a.createElement(B.a,{gutter:[10,0]},t.a.createElement(ct.a,{flex:"300px"},t.a.createElement(gt.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},t.a.createElement(ye.a,null,t.a.createElement($t,{value:"teacher"},"\u6559\u5E08"),t.a.createElement($t,{value:"student"},"\u5B66\u751F"),t.a.createElement($t,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),cr.identity==="student"&&t.a.createElement(ct.a,{flex:"200px"},t.a.createElement(gt.a.Item,{initialValue:cr.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},t.a.createElement(U.a,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),cr.identity==="teacher"&&t.a.createElement(ct.a,{flex:"200px"},t.a.createElement(gt.a.Item,{initialValue:cr.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},t.a.createElement(ye.a,null,t.a.createElement($t,{value:"\u6559\u6388"},"\u6559\u6388"),t.a.createElement($t,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),t.a.createElement($t,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),t.a.createElement($t,{value:"\u52A9\u6559"},"\u52A9\u6559")))),cr.identity==="professional"&&t.a.createElement(ct.a,{flex:"200px"},t.a.createElement(gt.a.Item,{initialValue:cr.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},t.a.createElement(ye.a,null,t.a.createElement($t,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),t.a.createElement($t,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),t.a.createElement($t,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),t.a.createElement($t,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),t.a.createElement($t,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),t.a.createElement(gt.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:cr.school&&!(Cr!=null&&Cr.find(function(Ve){return Ve.name===cr.school}))&&t.a.createElement("div",{className:St.a.schoolHintWrap},t.a.createElement("span",{className:St.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",cr.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),t.a.createElement("span",{className:"".concat(St.a.color0152d9," current"),onClick:Me},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},t.a.createElement(vn.a,{showSearch:!0,options:xt==null?void 0:xt.map(function(Ve){return{value:Ve.name}})})),t.a.createElement(gt.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:cr.department&&!(fr!=null&&fr.find(function(Ve){return Ve.name===cr.department}))&&t.a.createElement("div",{className:St.a.schoolHintWrap},t.a.createElement("span",{className:St.a.colorCDCDCD},cr.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(cr.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),t.a.createElement("span",{className:"".concat(St.a.color0152d9," current"),onClick:Ge},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},t.a.createElement(vn.a,{showSearch:!0,onChange:function(We){return Nr(fr.filter(function(Ze){return Ze.name.includes(We)}))},options:sr==null?void 0:sr.map(function(Ve){return{value:Ve.name}})})),t.a.createElement(gt.a.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},t.a.createElement("div",{className:St.a.flexRow},t.a.createElement("div",{className:"".concat(St.a.flexColumn," ").concat(St.a.example)},t.a.createElement("span",{className:St.a.exampleImg},t.a.createElement("img",{src:Kt.a})),t.a.createElement("span",{className:"tc"},t.a.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),t.a.createElement("p",{className:"".concat(St.a.colorOrange," font12")},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),t.a.createElement("div",{className:St.a.flexColumn},t.a.createElement(en,Object(Ne.a)({},ze,{accept:".png,.jpg,.bmp,.jpeg"}),br?t.a.createElement("img",{src:br,className:St.a.uploadImg}):t.a.createElement("div",{className:St.a.imageTip},t.a.createElement("p",null,t.a.createElement("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(St.a.uploadTipIcon)})),t.a.createElement("p",{className:St.a.uploadTip},t.a.createElement("a",{className:St.a.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),t.a.createElement("span",{className:"tc"},t.a.createElement("p",{className:St.a.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),t.a.createElement("div",{className:St.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(S.a,{className:"mr5",size:"large",onClick:je},"\u53D6\u6D88"),t.a.createElement(S.a,{size:"large",type:"primary",htmlType:"submit",loading:Wt["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),t.a.createElement("div",{className:St.a.note},t.a.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),t.a.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),t.a.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),t.a.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),t.a.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),t.a.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),t.a.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!(Ht!=null&&(mt=Ht.setting)!==null&&mt!==void 0&&mt.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),t.a.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),t.a.createElement(wt,{visible:fn,onClose:function(){return kr(!1)},schoolName:cr.school,onSuccess:Ee}),t.a.createElement(kn,{visible:gn,onClose:function(){return Vr(!1)},schoolId:(Ct=Cr.find(function(Ve){return Ve.name===cr.school}))===null||Ct===void 0?void 0:Ct.id,schoolName:cr.school,departmentName:cr.department,onSuccess:function(We){return Fe(cr.school,We)}}))},_n=Object(f.a)(function(Tt){var it=Tt.user,mt=Tt.account,Ct=Tt.loading,It=Tt.globalSetting;return{user:it,account:mt,globalSetting:It,loading:Ct.effects}})(Cn),On=D("aCH8"),ae=D.n(On);function z(Tt){var it=Tt.type,mt=Tt.dispatch,Ct=Tt.userid,It=Tt.isshow,Pt=Tt.setPhoneshow,Ht=Tt.setEmailshow,Wt="79e33abd4b6588941ab7622aed1e67e8",dt=Object(a.useState)(""),At=Object(h.a)(dt,2),Dt=At[0],yr=At[1],tr=Object(a.useState)("\u83B7\u53D6\u9A8C\u8BC1\u7801"),qt=Object(h.a)(tr,2),Gt=qt[0],nr=qt[1],cr=Object(a.useState)(60),st=Object(h.a)(cr,2),Lr=st[0],Fr=st[1],Cr=Object(a.useState)(!1),rr=Object(h.a)(Cr,2),Et=rr[0],_t=rr[1],xt=Object(a.useState)(""),Jt=Object(h.a)(xt,2),pr=Jt[0],dr=Jt[1];function fr(){return Dr.apply(this,arguments)}function Dr(){return Dr=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(Dt){Ft.next=3;break}return it===3?u.b.info("\u624B\u673A\u53F7\u4E0D\u80FD\u4E3A\u7A7A"):u.b.info("\u90AE\u7BB1\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 3:return Ft.next=5,mt({type:"competitions/getVerification",payload:{type:it,login:Dt,smscode:ae()(Wt+Dt)}});case 5:br=Ft.sent,br.status===1&&(u.b.info("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F"),an(),_t(!0));case 7:case"end":return Ft.stop()}},xr)})),Dr.apply(this,arguments)}function an(){Fr(60);var xr=setInterval(function(){--Lr,Lr>-1?Fr(Lr):(clearInterval(xr),_t(!1))},1e3)}function qe(){return sr.apply(this,arguments)}function sr(){return sr=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,mt({type:"competitions/PhoneBind",payload:{userid:Ct,code:pr,phone:Dt}});case 2:br=Ft.sent,br.status===0&&(u.b.info("\u7ED1\u5B9A\u6210\u529F"),Pt("none"));case 4:case"end":return Ft.stop()}},xr)})),sr.apply(this,arguments)}function Nr(){return rn.apply(this,arguments)}function rn(){return rn=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,mt({type:"competitions/EmailBind",payload:{userid:Ct,code:pr,email:Dt}});case 2:br=Ft.sent,br.status===0&&(u.b.info("\u7ED1\u5B9A\u6210\u529F"),Ht("none"));case 4:case"end":return Ft.stop()}},xr)})),rn.apply(this,arguments)}return t.a.createElement("div",{style:{display:It}},t.a.createElement("p",null,t.a.createElement(U.a,{value:Dt,onChange:function(br){return yr(br.target.value)},placeholder:it===3?"\u8BF7\u8F93\u5165\u624B\u673A\u53F7":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740",style:{width:"370px"}})),t.a.createElement("span",null,t.a.createElement(U.a,{value:pr,onChange:function(br){return dr(br.target.value)},placeholder:it===3?"\u8BF7\u8F93\u5165\u624B\u673A\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801",style:{width:"250px"}}))," ",t.a.createElement(S.a,{disabled:Et,onClick:function(){return fr()},type:"primary",style:{marginLeft:"20px",width:"100px"}},Et?"\u91CD\u65B0\u53D1\u9001".concat(Lr,"s"):Gt),t.a.createElement("p",{style:{marginTop:"30px",width:"370px",textAlign:"center"}},t.a.createElement(S.a,{type:"primary",style:{marginRight:"15px"},onClick:function(){if(!pr){u.b.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}it===3?qe():Nr()}},"\u786E\u8BA4"),t.a.createElement(S.a,{style:{marginLeft:"20px"},onClick:function(){it===3?Pt("none"):Ht("none")}},"\u53D6\u6D88")))}var $=z;function ie(Tt){var it=Tt.dispatch,mt=Tt.userid,Ct={wrapperCol:{offset:3,span:21}},It=gt.a.useForm(),Pt=Object(h.a)(It,1),Ht=Pt[0],Wt=Object(w.i)(),dt=Wt.identifier;return t.a.createElement("div",{style:{width:"500px"}},t.a.createElement(gt.a,{form:Ht,name:"basic"},t.a.createElement(gt.a.Item,Object(Ne.a)({},Ct,{label:t.a.createElement("div",{style:{width:"30px"}},"\u5F00\u6237\u884C"),name:"bank",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F00\u6237\u884C"}]}),t.a.createElement(U.a,null)),t.a.createElement(gt.a.Item,Object(Ne.a)({},Ct,{label:t.a.createElement("div",{style:{width:"30px"}},"\u652F\u884C"),name:"second_bank",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u652F\u884C"}]}),t.a.createElement(U.a,null)),t.a.createElement(gt.a.Item,Object(Ne.a)({},Ct,{label:t.a.createElement("div",{style:{width:"30px"}},"\u8D26\u53F7"),name:"card_no",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D26\u53F7"}]}),t.a.createElement(U.a,null)),t.a.createElement(gt.a.Item,null,t.a.createElement(S.a,{type:"primary",htmlType:"submit",onClick:Object(o.a)(r.a.mark(function At(){return r.a.wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:Ht.validateFields().then(function(){var tr=Object(o.a)(r.a.mark(function qt(Gt){var nr;return r.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,it({type:"competitions/setleader",payload:Object(L.a)({identifier:dt,user_id:mt},Gt)});case 2:nr=st.sent,nr.status===0&&u.b.info("\u63D0\u4EA4\u6210\u529F");case 4:case"end":return st.stop()}},qt)}));return function(qt){return tr.apply(this,arguments)}}());case 1:case"end":return yr.stop()}},At)}))},"\u63D0\u4EA4"))))}var de=ie,se={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"};function Ke(Tt){var it,mt,Ct,It,Pt,Ht,Wt,dt,At=Tt.Prize,Dt=Tt.Accounts,yr=Tt.dispatch,tr=Tt.userid,qt=Object(a.useState)("none"),Gt=Object(h.a)(qt,2),nr=Gt[0],cr=Gt[1],st=Object(a.useState)("none"),Lr=Object(h.a)(st,2),Fr=Lr[0],Cr=Lr[1];function rr(_t){return Et.apply(this,arguments)}function Et(){return Et=Object(o.a)(r.a.mark(function _t(xt){var Jt;return r.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:if(!(xt==="1")){dr.next=6;break}return dr.next=3,yr({type:"competitions/Authentication"});case 3:Jt=dr.sent,dr.next=9;break;case 6:return dr.next=8,yr({type:"competitions/Professional"});case 8:Jt=dr.sent;case 9:Jt.status===0&&u.b.info("\u64A4\u9500\u6210\u529F");case 10:case"end":return dr.stop()}},_t)})),Et.apply(this,arguments)}return t.a.createElement("div",null,t.a.createElement("p",null,t.a.createElement("span",{style:{color:"red"}},"*"),t.a.createElement("span",{style:{fontSize:"16px"}},"\u5B9E\u540D\u4FE1\u606F"),(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px"}},"\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"):null,(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px",color:"#0152d9",cursor:"pointer"},onClick:function(){yr({type:"account/setActionTabs",payload:{key:"Account-RealNameAuth"}})}},"\u7ACB\u5373\u8BA4\u8BC1"):null),t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",null,"\u59D3\u540D\uFF1A",t.a.createElement("span",null,Dt==null?void 0:Dt.name),(Dt==null?void 0:Dt.authentication)==="uncertified"?null:(Dt==null?void 0:Dt.authentication)==="applying"?t.a.createElement("span",null,t.a.createElement("span",null,"\u5F85\u5BA1\u6838"),t.a.createElement(S.a,{type:"primary",onClick:function(){return rr("1")},ghost:!0,style:{marginLeft:"20px"}},"\u64A4\u9500\u8BA4\u8BC1")):t.a.createElement("span",{style:{color:"#6ec76e"}},t.a.createElement("span",{className:"iconfont icon-wancheng font-14 ml20"})," \u5DF2\u8BA4\u8BC1")),t.a.createElement("p",null,"\u6027\u522B\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.gender)===0?"\u7537":"\u5973"))),t.a.createElement("p",null,t.a.createElement("span",{style:{color:"red"}},"*"),t.a.createElement("span",{style:{fontSize:"16px"}},"\u804C\u4E1A\u4FE1\u606F"),(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px"}},"\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"):null,(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px",color:"#0152d9"},onClick:function(){yr({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})}},"\u7ACB\u5373\u8BA4\u8BC1"):null),t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",null,"\u804C\u4E1A\uFF1A",t.a.createElement("span",null,Dt&&Dt.identity&&se[Dt.identity]),(Dt==null?void 0:Dt.authentication)==="uncertified"?null:(Dt==null?void 0:Dt.authentication)==="applying"?t.a.createElement("span",null,t.a.createElement("span",null,"\u5F85\u5BA1\u6838"),t.a.createElement(S.a,{type:"primary",onClick:function(){return rr("2")},ghost:!0,style:{marginLeft:"20px"}},"\u64A4\u9500\u8BA4\u8BC1")):t.a.createElement("span",{style:{color:"#6ec76e"}},t.a.createElement("span",{className:"iconfont icon-wancheng font-12 ml20"}),t.a.createElement("span",null,"\u5DF2\u8BA4\u8BC1"),t.a.createElement(S.a,{type:"primary",onClick:function(){yr({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},ghost:!0,style:{marginLeft:"20px"}},"\u91CD\u65B0\u8BA4\u8BC1"))),t.a.createElement("p",null,"\u5B66\u53F7\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.student_id)||"--")),t.a.createElement("p",null,"\u5B66\u6821\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.school_name)||"--")),t.a.createElement("p",null,"\u9662\u7CFB\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.department_name)||"--"))),t.a.createElement("p",null,t.a.createElement("span",{style:{color:"red"}},"*"),t.a.createElement("span",{style:{fontSize:"16px"}},"\u8054\u7CFB\u65B9\u5F0F")),t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u624B\u673A\u53F7\uFF1A"),t.a.createElement("span",{style:{width:"150px"}},(Dt==null?void 0:Dt.phone)||"--"),nr==="none"?t.a.createElement("span",{style:{color:"#0152d9",marginLeft:"20px",cursor:"pointer"},onClick:function(){cr("block")}},"\u66F4\u6362"):null),t.a.createElement($,{type:3,dispatch:yr,userid:Dt==null?void 0:Dt.id,isshow:nr,setPhoneshow:cr,setEmailshow:Cr}),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"Email\uFF1A"),t.a.createElement("span",{style:{width:"150px"}},(Dt==null?void 0:Dt.mail)||"--"),Fr==="none"?t.a.createElement("span",{style:{color:"#0152d9",marginLeft:"20px",cursor:"pointer"},onClick:function(){Cr("block")}},"\u66F4\u6362"):null),t.a.createElement($,{type:4,dispatch:yr,userid:Dt==null?void 0:Dt.id,isshow:Fr,setEmailshow:Cr,setPhoneshow:cr})),At!=null&&At.leader&&At!==null&&At!==void 0&&At.teams&&At!==null&&At!==void 0&&(it=At.teams[0])!==null&&it!==void 0&&(mt=it.bank_account)!==null&&mt!==void 0&&mt.bank?t.a.createElement("p",null,t.a.createElement("span",{style:{fontSize:"16px"}},"\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"),t.a.createElement("span",{style:{fontSize:"12px",marginLeft:"20px"}},"\u4E3A\u4FDD\u969C\u5956\u91D1\u7684\u53CA\u65F6\u53D1\u653E\uFF0C\u8BF7\u961F\u957F\u5982\u5B9E\u586B\u5199\u4F60\u540D\u4E0B\u7684\u94F6\u884C\u5361\u4FE1\u606F")):t.a.createElement("div",null,t.a.createElement("p",null,t.a.createElement("span",{style:{fontSize:"16px"}},"\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"),t.a.createElement("span",{style:{fontSize:"12px",marginLeft:"20px"}},"\u4E3A\u4FDD\u969C\u5956\u91D1\u7684\u53CA\u65F6\u53D1\u653E\uFF0C\u8BF7\u961F\u957F\u5982\u5B9E\u586B\u5199\u4F60\u540D\u4E0B\u7684\u94F6\u884C\u5361\u4FE1\u606F")),t.a.createElement(de,{dispatch:yr,userid:tr})),At!=null&&At.leader?t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u5F00\u6237\u884C\uFF1A"),t.a.createElement("span",null,(At==null?void 0:At.teams)&&(At==null||((Ct=At.teams[0])===null||Ct===void 0||((It=Ct.bank_account)===null||It===void 0))?void 0:It.bank)||"--")),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u652F\u884C\uFF1A"),t.a.createElement("span",null,(At==null?void 0:At.teams)&&(At==null||((Pt=At.teams[0])===null||Pt===void 0||((Ht=Pt.bank_account)===null||Ht===void 0))?void 0:Ht.second_bank)||"--")),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u8D26\u53F7\uFF1A"),t.a.createElement("span",null,(At==null?void 0:At.teams)&&(At==null||((Wt=At.teams[0])===null||Wt===void 0||((dt=Wt.bank_account)===null||dt===void 0))?void 0:dt.card_no)||"--"))):null,t.a.createElement(_n,{Scoid:Dt==null?void 0:Dt.school_id}),t.a.createElement(un,null))}var Rt=Ke,Vt=ge.a.TabPane;function Er(Tt){var it=Tt.Prize,mt=Tt.Accounts,Ct=Tt.getAccounts,It=Tt.dispatch,Pt=Tt.userid;return t.a.createElement("div",{className:"fr"},t.a.createElement("div",{className:"mb100 "},t.a.createElement(ge.a,{defaultActiveKey:"1",onChange:function(Wt){Wt==="2"&&Ct()}},t.a.createElement(Vt,{tab:"\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D",key:"1"},t.a.createElement(ke,{Prize:it})),t.a.createElement(Vt,{tab:"\u5B8C\u5584\u4E2A\u4EBA\u4FE1\u606F",key:"2"},t.a.createElement(Rt,{userid:Pt,dispatch:It,Prize:it,Accounts:mt})))))}var Lt=Er,zr=D("xKgJ"),Br=D("wd/R"),En=D.n(Br),ui=ge.a.TabPane;function Ei(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.ChartRules,dt=Tt.ItemData,At=Tt.getCharts,Dt=Tt.Selectkey,yr=Tt.HeaderDetail,tr=Tt.getChartRules,qt=Tt.userinfo,Gt=Tt.Editable,nr=Tt.dispatch,cr=Tt.StaffDetail,st=Object(a.useState)(!1),Lr=Object(h.a)(st,2),Fr=Lr[0],Cr=Lr[1],rr=Object(a.useState)(""),Et=Object(h.a)(rr,2),_t=Et[0],xt=Et[1],Jt=Object(a.useState)(!0),pr=Object(h.a)(Jt,2),dr=pr[0],fr=pr[1],Dr=Object(a.useState)(),an=Object(h.a)(Dr,2),qe=an[0],sr=an[1],Nr=Object(a.useState)(),rn=Object(h.a)(Nr,2),xr=rn[0],br=rn[1],Pr=Object(w.i)(),Ft=Pr.identifier;Object(a.useEffect)(function(){if(dr){var vt,yt,zt,Mt,Mr=Wt==null||((vt=Wt.stages)===null||vt===void 0)?void 0:vt[0];sr(Mr);var cn=Wt==null||((yt=Wt.stages)===null||yt===void 0||((zt=yt[0])===null||zt===void 0||((Mt=zt.children)===null||Mt===void 0)))?void 0:Mt[0];if(br(cn),Mr!=null&&Mr.id){var fn,kr,on;At(Mr==null?void 0:Mr.id),xt(((fn=Wt.rule_contents)===null||fn===void 0||((kr=fn.filter(function(yn){return parseInt(yn.competition_stage_id)===parseInt(Mr==null?void 0:Mr.id)}))===null||kr===void 0||((on=kr[0])===null||on===void 0))?void 0:on.content)||"")}else{var Ur,gn,Vr;At(0),xt(((Ur=Wt.rule_contents)===null||Ur===void 0||((gn=Ur.filter(function(yn){return parseInt(yn.competition_stage_id)===0}))===null||gn===void 0||((Vr=gn[0])===null||Vr===void 0))?void 0:Vr.content)||"")}}},[Wt]);function Zt(){return wr.apply(this,arguments)}function wr(){return wr=Object(o.a)(r.a.mark(function vt(){var yt,zt,Mt,Mr,cn,fn,kr,on,Ur;return r.a.wrap(function(Vr){for(;;)switch(Vr.prev=Vr.next){case 0:if(_t){Vr.next=3;break}return u.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Vr.abrupt("return");case 3:if(fr(!1),yt=qe==null?void 0:qe.id,!yt){Vr.next=12;break}return Vr.next=8,Object(ne.a)("/api/competitions/".concat(Ft,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:_t,md_content_id:(zt=Wt.rule_contents)===null||zt===void 0||((Mt=zt.filter(function(yn){return parseInt(yn.competition_stage_id)===parseInt(yt)}))===null||Mt===void 0||((Mr=Mt[0])===null||Mr===void 0))?void 0:Mr.id,stage_id:qe==null?void 0:qe.id}});case 8:cn=Vr.sent,cn.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Cr(!1),tr()),Vr.next=16;break;case 12:return Vr.next=14,Object(ne.a)("/api/competitions/".concat(Ft,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:_t,md_content_id:(fn=Wt.rule_contents)===null||fn===void 0||((kr=fn.filter(function(yn){return parseInt(yn.competition_stage_id)===0}))===null||kr===void 0||((on=kr[0])===null||on===void 0))?void 0:on.id,stage_id:qe==null?void 0:qe.id}});case 14:Ur=Vr.sent,Ur.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Cr(!1),tr());case 16:case"end":return Vr.stop()}},vt)})),wr.apply(this,arguments)}var er=[{title:"request_id",dataIndex:"request_id",width:120,align:"center",key:"name",render:function(yt,zt,Mt){return t.a.createElement("span",null,yt)}},{title:"\u9644\u4EF6",dataIndex:"file_name",align:"center",width:150,key:"file_name",render:function(yt){return t.a.createElement(nt.a,{title:yt},t.a.createElement("span",{title:yt},yt&&(yt==null?void 0:yt.length)>=10?(yt==null?void 0:yt.substr(0,10))+"...":yt||"--"))}},{title:"\u63D0\u4EA4\u4EBA",dataIndex:"user_name",key:"user_name",width:100,render:function(yt){return t.a.createElement("span",{title:yt},yt&&(yt==null?void 0:yt.length)>=6?(yt==null?void 0:yt.substr(0,6))+"...":yt||"--")}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"center"},{title:"\u72B6\u6001",dataIndex:"status",key:"status",width:50,render:function(yt){return t.a.createElement("span",null,yt===1?"\u8BA1\u7B97\u4E2D":yt===2?"\u5B8C\u6210":yt===0?"\u5F85\u8BA1\u7B97":yt===3&&"\u9519\u8BEF")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name)==="\u8BA1\u56FE\u6311\u6218\u70ED\u8EAB\u8D5B"&&{title:"\u6570\u636E\u6307\u68071",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:function(yt){return t.a.createElement("span",null,yt||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name)==="\u8BA1\u56FE\u6311\u6218\u70ED\u8EAB\u8D5B"&&{title:"\u6570\u636E\u6307\u68072",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){return(yt==null?void 0:yt.length)>0?yt==null?void 0:yt.map(function(zt,Mt){return t.a.createElement("span",null,zt==null?void 0:zt.name,"\uFF1A",zt==null?void 0:zt.value," ",t.a.createElement("br",null))}):t.a.createElement("span",null,"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"mask accuary",dataIndex:"data_ranking",key:"data_ranking",align:"left",render:function(yt){return t.a.createElement("span",null,yt||"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"\u7F8E\u5B66\u8BC4\u5206",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="score"}))===null||zt===void 0)?void 0:zt.value)||"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"FID",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="fid"}))===null||zt===void 0)?void 0:zt.value)||"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"\u603B\u5206",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="total_score"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Car",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:function(yt){return t.a.createElement("span",null,yt||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Coffee",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Coffee"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Easyship",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Easyship"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Scar",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Scar"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Scarf",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Scarf"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"\u603B\u5206",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Total"}))===null||zt===void 0)?void 0:zt.value)||"--")}},{title:"\u64CD\u4F5C",dataIndex:"result_url",width:50,key:"result_url",render:function(yt){return t.a.createElement("a",{href:yt,target:"_blank",download:"\u9644\u4EF6"},"\u4E0B\u8F7D")}}].filter(function(vt){return!!vt});return t.a.createElement("div",null,(Wt==null||((it=Wt.stages)===null||it===void 0)?void 0:it.length)>0?null:t.a.createElement(Je,null),(Wt==null||((mt=Wt.stages)===null||mt===void 0)?void 0:mt.length)>0&&t.a.createElement(ge.a,{animated:!0,tabBarExtraContent:qt!=null&&qt.admin||qt!=null&&qt.business||Gt?t.a.createElement(S.a,{onClick:function(){Cr(!0)}},"\u7F16\u8F91"):cr.enrolled&&(qe==null?void 0:qe.start_time)&&(qe==null?void 0:qe.end_time)&&t.a.createElement("span",null,"\u63D0\u4EA4\u65F6\u95F4\uFF1A",En()(qe==null?void 0:qe.start_time).format("YYYY-MM-DD HH:mm:ss"),"\u81F3",En()(qe==null?void 0:qe.end_time).format("YYYY-MM-DD HH:mm:ss"),t.a.createElement(S.a,{style:{marginLeft:"20px"},disabled:En()(qe==null?void 0:qe.start_time).unix()>En()(En()().format("YYYY-MM-DD HH:mm:s")).unix()||En()(En()().format("YYYY-MM-DD HH:mm:s")).unix()>En()(qe==null?void 0:qe.end_time).unix(),onClick:function(){nr({type:"shixunsDetail/setActionTabs",payload:{key:"md-tab",params:{value:(xr==null?void 0:xr.id)||(qe==null?void 0:qe.id),id:yr==null?void 0:yr.id}}})}},"\u63D0\u4EA4\u7ED3\u679C")),onChange:function(yt){var zt,Mt,Mr,cn,fn;Cr(!1);var kr=Wt==null||((zt=Wt.stages)===null||zt===void 0)?void 0:zt.filter(function(Ur){return parseInt(yt)===parseInt(Ur==null?void 0:Ur.id)})[0],on=kr==null||((Mt=kr.children)===null||Mt===void 0)?void 0:Mt[0];br(on),sr(kr),xt(((Mr=Wt.rule_contents)===null||Mr===void 0||((cn=Mr.filter(function(Ur){return parseInt(Ur.competition_stage_id)===parseInt(kr==null?void 0:kr.id)}))===null||cn===void 0||((fn=cn[0])===null||fn===void 0))?void 0:fn.content)||""),At((on==null?void 0:on.id)||yt)}},Wt&&Wt.stages.map(function(vt,yt){return t.a.createElement(ui,{tab:vt.name,key:vt.id===null?0:vt.id},Fr===!1&&Wt&&Wt.rule_contents.map(function(zt,Mt){if(vt.id===zt.competition_stage_id)return t.a.createElement(W.a,{key:Mt,value:zt.content===void 0||zt.content===null?"":zt.content});if(vt.id===null&&zt.competition_stage_id===0)return t.a.createElement(W.a,{key:Mt,value:zt.content===void 0||zt.content===null?"":zt.content})}))})),(qe==null||((Ct=qe.children)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{activeKey:(xr==null?void 0:xr.id)+"",onChange:function(yt){var zt,Mt=qe==null||((zt=qe.children)===null||zt===void 0)?void 0:zt.filter(function(Mr){return parseInt(yt)===parseInt(Mr==null?void 0:Mr.id)})[0];br(Mt),At(yt)}},qe==null||((It=qe.children)===null||It===void 0)?void 0:It.map(function(vt,yt){return t.a.createElement(ui,{tab:vt.name,key:vt.id===null?0:vt.id})})),Fr&&t.a.createElement("div",null,t.a.createElement(te.a,{defaultValue:_t,onChange:function(yt){xt(yt)}}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(S.a,{style:{width:"90px"},type:"primary",onClick:function(){return Zt()}},"\u63D0\u4EA4"),t.a.createElement(S.a,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return Cr(!1)}},"\u53D6\u6D88"))),((Pt=yr.competition_modules.filter(function(vt){return vt.id===Dt}))===null||Pt===void 0||((Ht=Pt[0])===null||Ht===void 0)?void 0:Ht.show_leaderboard)&&t.a.createElement(Z.a,{dataSource:dt==null?void 0:dt.results,columns:er}))}var In=Ei,Li=D("DjyN"),qi=D("NUBc"),ni=ge.a.TabPane;function Ti(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.loading,dt=Tt.ChartRules,At=Tt.ItemData,Dt=Tt.getCharts,yr=Tt.Selectkey,tr=Tt.HeaderDetail,qt=Tt.getChartRules,Gt=Tt.userinfo,nr=Tt.Editable,cr=Tt.dispatch,st=Tt.StaffDetail,Lr=Object(a.useState)(!1),Fr=Object(h.a)(Lr,2),Cr=Fr[0],rr=Fr[1],Et=Object(a.useState)(""),_t=Object(h.a)(Et,2),xt=_t[0],Jt=_t[1],pr=Object(a.useState)(!0),dr=Object(h.a)(pr,2),fr=dr[0],Dr=dr[1],an=Object(a.useState)(),qe=Object(h.a)(an,2),sr=qe[0],Nr=qe[1],rn=Object(a.useState)(),xr=Object(h.a)(rn,2),br=xr[0],Pr=xr[1],Ft=Object(w.i)(),Zt=Ft.identifier,wr=Object(a.useState)({page:1,limit:10,sort:"desc"}),er=Object(h.a)(wr,2),vt=er[0],yt=er[1];Object(a.useEffect)(function(){var Mt;fr&&dt!==null&&dt!==void 0&&(Mt=dt.stages)!==null&&Mt!==void 0&&Mt[0]&&zt()},[dt==null||((it=dt.stages)===null||it===void 0)?void 0:it[0]]);var zt=function(){var Mt=Object(o.a)(r.a.mark(function Mr(){var cn,fn,kr,on,Ur,gn;return r.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return Ur=dt==null||((cn=dt.stages)===null||cn===void 0)?void 0:cn[0],Nr(Ur),gn=dt==null||((fn=dt.stages)===null||fn===void 0||((kr=fn[0])===null||kr===void 0||((on=kr.children)===null||on===void 0)))?void 0:on[0],Pr(gn),vt.id=(gn==null?void 0:gn.id)||(Ur==null?void 0:Ur.id),yt(Object(L.a)({},vt)),yn.next=7,Dt(Object(L.a)(Object(L.a)({},vt),{},{stage_id:vt.id}));case 7:case"end":return yn.stop()}},Mr)}));return function(){return Mt.apply(this,arguments)}}();return t.a.createElement("div",null,(dt==null||((mt=dt.stages)===null||mt===void 0)?void 0:mt.length)>0?null:t.a.createElement(Je,null),(dt==null||((Ct=dt.stages)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:function(){var Mt=Object(o.a)(r.a.mark(function Mr(cn){var fn,kr,on,Ur,gn,Vr,yn;return r.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return rr(!1),Vr=dt==null||((fn=dt.stages)===null||fn===void 0)?void 0:fn.filter(function(Ge){return parseInt(cn)===parseInt(Ge==null?void 0:Ge.id)})[0],yn=Vr==null||((kr=Vr.children)===null||kr===void 0)?void 0:kr[0],Pr(yn),Nr(Vr),Jt(((on=dt.rule_contents)===null||on===void 0||((Ur=on.filter(function(Ge){return parseInt(Ge.competition_stage_id)===parseInt(Vr==null?void 0:Vr.id)}))===null||Ur===void 0||((gn=Ur[0])===null||gn===void 0))?void 0:gn.content)||""),vt.page=1,vt.limit=10,vt.id=(yn==null?void 0:yn.id)||cn,yt(Object(L.a)({},vt)),Me.next=9,Dt(Object(L.a)({},vt));case 9:case"end":return Me.stop()}},Mr)}));return function(Mr){return Mt.apply(this,arguments)}}()},dt&&dt.stages.map(function(Mt,Mr){return t.a.createElement(ni,{tab:Mt.name,key:Mt.id===null?0:Mt.id})})),(sr==null||((It=sr.children)===null||It===void 0)?void 0:It.length)>0&&t.a.createElement(ge.a,{activeKey:(br==null?void 0:br.id)+"",onChange:function(){var Mt=Object(o.a)(r.a.mark(function Mr(cn){var fn,kr;return r.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:return kr=sr==null||((fn=sr.children)===null||fn===void 0)?void 0:fn.filter(function(gn){return parseInt(cn)===parseInt(gn==null?void 0:gn.id)})[0],Pr(kr),vt.page=1,vt.limit=10,vt.id=cn,yt(Object(L.a)({},vt)),Ur.next=5,Dt(Object(L.a)({},vt));case 5:case"end":return Ur.stop()}},Mr)}));return function(Mr){return Mt.apply(this,arguments)}}()},sr==null||((Pt=sr.children)===null||Pt===void 0)?void 0:Pt.map(function(Mt,Mr){return t.a.createElement(ni,{tab:Mt.name,key:Mt.id===null?0:Mt.id})})),t.a.createElement("div",{style:{height:10,background:"#F5F5F5"}}),t.a.createElement("div",{style:{padding:"20px 30px"}},t.a.createElement("span",{style:{cursor:"pointer",marginRight:20},onClick:function(){vt.page=1,vt.sort=vt.sort==="desc"?"asc":"desc",yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))}},"\u6309\u63D0\u4EA4\u65F6\u95F4",vt.sort==="asc"?"\u6B63":"\u5012","\u5E8F\u6392\u5E8F ",t.a.createElement("i",{className:"iconfont font14 ".concat(vt.sort==="asc"?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")}))," ",t.a.createElement(U.a.Search,{onSearch:function(Mr){vt.page=1,vt.search=Mr,yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))},style:{width:"82%"},placeholder:"\u8F93\u5165\u4EBA\u5458/\u6218\u961F\u540D\u79F0\u8FDB\u884C\u641C\u7D22"}),t.a.createElement(d.a,{spinning:Wt},At==null||((Ht=At.results)===null||Ht===void 0)?void 0:Ht.map(function(Mt,Mr){return t.a.createElement("div",{style:{border:"1px solid #E3EFFC",height:100,borderRadius:"2px 2px 0px 0px",marginTop:Mr===0?14:30}},t.a.createElement("div",{style:{height:60,padding:10,display:"flex",alignItems:"center"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/"+(Mt==null?void 0:Mt.image_url),style:{width:40,height:40,borderRadius:"50%"}}),t.a.createElement("div",{style:{marginLeft:10}},t.a.createElement("span",{style:{color:"#333333",fontWeight:500,fontSize:"16px"}},Mt==null?void 0:Mt.user_name),t.a.createElement("span",{style:{color:"#999999",fontWeight:400,fontSize:"14px",marginLeft:60}},"\u6240\u5C5E\u6218\u961F",t.a.createElement("span",{style:{marginLeft:10,color:"#333"}},(Mt==null?void 0:Mt.team_name)||"- -")),t.a.createElement("span",{style:{color:"#333333",fontWeight:400,fontSize:"14px",marginLeft:40}},"\u5B66\u6821 ",t.a.createElement("span",{style:{marginLeft:10,color:"#333"}},(Mt==null?void 0:Mt.school_name)||"- -")))),t.a.createElement("div",{style:{background:"#EEF2F8",height:40,borderRadius:"0px 0px 2px 2px",paddingLeft:60,paddingRight:40,display:"flex",alignItems:"center",justifyContent:"space-between"}},t.a.createElement("div",null,t.a.createElement("span",{style:{color:"#666666",fontSize:"12px"}},"\u63D0\u4EA4\u65F6\u95F4\uFF1A",Mt==null?void 0:Mt.created_at),t.a.createElement("span",{style:{color:"#666666",fontSize:"12px",margin:"0px 40px"}},"\u6D88\u8017\u5185\u5B58\uFF1A",(Mt==null?void 0:Mt.ts_mem)||"- -","MB"),t.a.createElement("span",{style:{color:"#666666",fontSize:"12px"}},"\u4EE3\u7801\u6267\u884C\u65F6\u95F4\uFF1A",(Mt==null?void 0:Mt.ts_time)||"- -","\u79D2")),t.a.createElement("a",{style:{display:"flex",alignItems:"center"},href:"/tasks/".concat(Mt==null?void 0:Mt.game_identifier),target:"_blank"},t.a.createElement("i",{className:"iconfont icon-chakandaima",style:{marginRight:4}}),t.a.createElement("span",{style:{lineHeight:"14px"}},"\u67E5\u770B\u4EE3\u7801"))))})),t.a.createElement(qi.a,{total:At==null?void 0:At.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:vt.page,onChange:function(Mr,cn){vt.page=Mr,yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))}})))}var xi=Ti,Fi=function(it){var mt=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Ct=["","\u5341","\u767E","\u5343","\u4E07"];it=parseInt(it);var It=function(dt){for(var At=dt.toString().split("").reverse(),Dt="",yr=0;yr0&&At[yr]==0&&At[yr-1]==0?"":mt[At[yr]]+(At[yr]==0?Ct[0]:Ct[yr]))+Dt;return Dt},Pt=Math.floor(it/1e4),Ht=it%1e4;return Ht.toString().length<4&&(Ht="0"+Ht),Pt?It(Pt)+"\u4E07"+It(Ht):It(it)};function Ci(Tt){var it,mt=Tt.item,Ct=Tt.index,It=Tt.StaffDetail,Pt=Object(a.useState)(!0),Ht=Object(h.a)(Pt,2),Wt=Ht[0],dt=Ht[1],At=Object(a.useState)(!0),Dt=Object(h.a)(At,2),yr=Dt[0],tr=Dt[1],qt=Object(a.useRef)();return t.a.createElement("div",{style:{border:"1px solid #E3EFFC",borderRadius:"2px",marginTop:20}},t.a.createElement("div",{style:{padding:10,display:"flex",position:"relative"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/"+(mt==null?void 0:mt.pic),style:{width:220,height:130,borderRadius:"4px"}}),t.a.createElement("div",{style:{marginLeft:20,width:"75%"}},t.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},t.a.createElement("span",{style:{color:"#333333",fontWeight:500,fontSize:"16px"}},"\u4EFB\u52A1",Fi(Ct+1),"\uFF1A",t.a.createElement("span",{style:{color:"#333",fontWeight:"400"}},mt==null?void 0:mt.name)),t.a.createElement("span",{style:{color:"#9096A3"}},"\u5173\u5361",t.a.createElement("span",{style:{color:"#333333",marginLeft:5}},mt==null?void 0:mt.challenges_count)," ")),t.a.createElement("div",{ref:qt},t.a.createElement(W.a,{style:{maxHeight:Wt&&100},value:mt==null?void 0:mt.description})),t.a.createElement("div",{style:{textAlign:"center",color:"#145DFF",cursor:"pointer"},onClick:function(){dt(!Wt)}},Wt?"\u9605\u8BFB\u5168\u6587 ":"\u6536\u8D77\u5168\u6587 ",t.a.createElement("i",{className:"iconfont font14 ".concat(Wt?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")})),t.a.createElement("div",{style:{marginTop:14,maxHeight:yr&&58,overflow:"hidden"}},mt==null||((it=mt.challenges)===null||it===void 0)?void 0:it.map(function(Gt,nr){return t.a.createElement("div",{style:{marginTop:nr===0?0:12}},t.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}),t.a.createElement("span",{style:{marginLeft:10}},"\u7B2C",nr+1,"\u5173",Gt==null?void 0:Gt.name))})),t.a.createElement("div",{style:{position:"absolute",bottom:14,right:10,color:"#145DFF",cursor:"pointer"}},t.a.createElement("span",{onClick:function(){tr(!yr)}},yr?"\u5C55\u5F00":"\u6536\u8D77"," ",t.a.createElement("i",{className:"iconfont font14 ".concat(yr?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")}))," ",(It==null?void 0:It.enrolled)&&t.a.createElement(S.a,{onClick:function(){window.open("/shixuns/".concat(mt==null?void 0:mt.identifier,"/challenges"))},style:{marginLeft:30},type:"primary"},"\u5F00\u542F\u6311\u6218")))))}var Gi=Ci,Mi=ge.a.TabPane;function oa(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.loading,dt=Tt.ChartRules,At=Tt.ItemData,Dt=Tt.getCharts,yr=Tt.Selectkey,tr=Tt.HeaderDetail,qt=Tt.getChartRules,Gt=Tt.userinfo,nr=Tt.Editable,cr=Tt.dispatch,st=Tt.StaffDetail,Lr=Object(a.useState)(!1),Fr=Object(h.a)(Lr,2),Cr=Fr[0],rr=Fr[1],Et=Object(a.useState)(""),_t=Object(h.a)(Et,2),xt=_t[0],Jt=_t[1],pr=Object(a.useState)(!0),dr=Object(h.a)(pr,2),fr=dr[0],Dr=dr[1],an=Object(a.useState)(),qe=Object(h.a)(an,2),sr=qe[0],Nr=qe[1],rn=Object(a.useState)(),xr=Object(h.a)(rn,2),br=xr[0],Pr=xr[1],Ft=Object(w.i)(),Zt=Ft.identifier,wr=Object(a.useState)({page:1,limit:10}),er=Object(h.a)(wr,2),vt=er[0],yt=er[1],zt=Object(a.useState)(),Mt=Object(h.a)(zt,2),Mr=Mt[0],cn=Mt[1];Object(a.useEffect)(function(){var kr;fr&&dt!==null&&dt!==void 0&&(kr=dt.stages)!==null&&kr!==void 0&&kr[0]&&fn()},[dt==null||((it=dt.stages)===null||it===void 0)?void 0:it[0]]);var fn=function(){var kr=Object(o.a)(r.a.mark(function on(){var Ur,gn,Vr,yn,ei,Me;return r.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return ei=dt==null||((Ur=dt.stages)===null||Ur===void 0)?void 0:Ur[0],Nr(ei),Me=dt==null||((gn=dt.stages)===null||gn===void 0||((Vr=gn[0])===null||Vr===void 0||((yn=Vr.children)===null||yn===void 0)))?void 0:yn[0],Pr(Me),vt.id=(Me==null?void 0:Me.id)||(ei==null?void 0:ei.id),yt(Object(L.a)({},vt)),Ye.next=7,Dt(Object(L.a)(Object(L.a)({},vt),{},{stage_id:vt.id}));case 7:case"end":return Ye.stop()}},on)}));return function(){return kr.apply(this,arguments)}}();return t.a.createElement("div",null,(dt==null||((mt=dt.stages)===null||mt===void 0)?void 0:mt.length)>0?null:t.a.createElement(Je,null),(dt==null||((Ct=dt.stages)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:function(){var kr=Object(o.a)(r.a.mark(function on(Ur){var gn,Vr,yn,ei,Me,Ge,Ye;return r.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return rr(!1),Ge=dt==null||((gn=dt.stages)===null||gn===void 0)?void 0:gn.filter(function(Pe){return parseInt(Ur)===parseInt(Pe==null?void 0:Pe.id)})[0],Ye=Ge==null||((Vr=Ge.children)===null||Vr===void 0)?void 0:Vr[0],Pr(Ye),Nr(Ge),Jt(((yn=dt.rule_contents)===null||yn===void 0||((ei=yn.filter(function(Pe){return parseInt(Pe.competition_stage_id)===parseInt(Ge==null?void 0:Ge.id)}))===null||ei===void 0||((Me=ei[0])===null||Me===void 0))?void 0:Me.content)||""),vt.page=1,vt.limit=10,vt.id=(Ye==null?void 0:Ye.id)||Ur,yt(Object(L.a)({},vt)),Ee.next=9,Dt(Object(L.a)({},vt));case 9:case"end":return Ee.stop()}},on)}));return function(on){return kr.apply(this,arguments)}}()},dt&&dt.stages.map(function(kr,on){return t.a.createElement(Mi,{tab:kr.name,key:kr.id===null?0:kr.id})})),(sr==null||((It=sr.children)===null||It===void 0)?void 0:It.length)>0&&t.a.createElement(ge.a,{activeKey:(br==null?void 0:br.id)+"",tabBarStyle:{height:65,marginLeft:35,marginRight:30},onChange:function(){var kr=Object(o.a)(r.a.mark(function on(Ur){var gn,Vr;return r.a.wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return Vr=sr==null||((gn=sr.children)===null||gn===void 0)?void 0:gn.filter(function(Me){return parseInt(Ur)===parseInt(Me==null?void 0:Me.id)})[0],Pr(Vr),vt.page=1,vt.limit=10,vt.id=Ur,yt(Object(L.a)({},vt)),ei.next=5,Dt(Object(L.a)({},vt));case 5:case"end":return ei.stop()}},on)}));return function(on){return kr.apply(this,arguments)}}()},sr==null||((Pt=sr.children)===null||Pt===void 0)?void 0:Pt.map(function(kr,on){return t.a.createElement(Mi,{tab:kr.name,key:kr.id===null?0:kr.id})})),t.a.createElement("div",{style:{height:10,background:"#F5F5F5"}}),t.a.createElement("div",{style:{padding:"20px 30px"}},t.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},t.a.createElement("span",{style:{color:"#9096A3"}},"\u4F5C\u54C1\u63D0\u4EA4\u65F6\u95F4",t.a.createElement("span",{style:{color:"#333333",marginLeft:5}},At==null?void 0:At.start_time,"~",At==null?void 0:At.end_time)),t.a.createElement("span",{style:{color:"#9096A3"}},"\u6210\u7EE9\u6765\u6E90",t.a.createElement("span",{style:{color:"#333333",marginLeft:5}},(At==null?void 0:At.score_source)===0?"\u7ECF\u9A8C\u503C":"\u9884\u6D4B\u51C6\u786E\u7387")," ")),t.a.createElement(d.a,{spinning:Wt},At==null||((Ht=At.results)===null||Ht===void 0)?void 0:Ht.map(function(kr,on){return t.a.createElement(Gi,{StaffDetail:st,item:kr,index:on})})),t.a.createElement(qi.a,{total:At==null?void 0:At.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:vt.page,onChange:function(on,Ur){vt.page=on,yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))}})))}var sa=oa,Ii=D("UfjD"),qn=D("qHvr"),Vi=function(it){var mt,Ct,It,Pt,Ht,Wt,dt,At,Dt=it.globalSetting,yr=it.loading,tr=it.dispatch,qt=it.user,Gt=Object(m.a)(it,["globalSetting","loading","dispatch","user"]),nr=Object(a.useState)({avatar_url:""}),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)([]),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],_t=Object(w.i)(),xt=_t.identifier,Jt=Object(a.useState)([]),pr=Object(h.a)(Jt,2),dr=pr[0],fr=pr[1],Dr=Object(a.useState)(!0),an=Object(h.a)(Dr,2),qe=an[0],sr=an[1],Nr=Object(a.useState)([]),rn=Object(h.a)(Nr,2),xr=rn[0],br=rn[1],Pr=Object(a.useState)([]),Ft=Object(h.a)(Pr,2),Zt=Ft[0],wr=Ft[1],er=Object(a.useState)(!1),vt=Object(h.a)(er,2),yt=vt[0],zt=vt[1],Mt=Object(a.useState)(!1),Mr=Object(h.a)(Mt,2),cn=Mr[0],fn=Mr[1],kr=Object(a.useState)(!1),on=Object(h.a)(kr,2),Ur=on[0],gn=on[1],Vr=Object(a.useState)([]),yn=Object(h.a)(Vr,2),ei=yn[0],Me=yn[1],Ge=Object(a.useState)([]),Ye=Object(h.a)(Ge,2),Fe=Ye[0],Ee=Ye[1],Pe=Object(a.useState)([]),_e=Object(h.a)(Pe,2),je=_e[0],ze=_e[1],Ve=Object(a.useState)(!1),We=Object(h.a)(Ve,2),Ze=We[0],pt=We[1],kt=Object(a.useState)([]),jt=Object(h.a)(kt,2),Yt=jt[0],Ir=jt[1],Qr=Object(a.useState)(),$r=Object(h.a)(Qr,2),nn=$r[0],Kr=$r[1],sn=Object(a.useState)(!0),ln=Object(h.a)(sn,2),xn=ln[0],hn=ln[1],jn=Object(a.useState)(!1),pn=Object(h.a)(jn,2),jr=pn[0],Wr=pn[1],dn=Object(a.useState)(!1),bn=Object(h.a)(dn,2),Tr=bn[0],Sn=bn[1],Yn=Object(a.useState)(!1),Rn=Object(h.a)(Yn,2),Wn=Rn[0],Dn=Rn[1],ti=Object(a.useState)(!1),ci=Object(h.a)(ti,2),Jn=ci[0],gi=ci[1],Xi=Object(a.useState)(!1),Oi=Object(h.a)(Xi,2),di=Oi[0],Hn=Oi[1],zn=Object(a.useState)(!0),Qn=Object(h.a)(zn,2),Vn=Qn[0],ii=Qn[1],Di=Object(w.h)(),ra=Object(a.useRef)(null);Object(a.useEffect)(function(){xt&&Mn(),Object(Ut.T)("\u7ADE\u8D5B")},[xt]);function Mn(){return Ui.apply(this,arguments)}function Ui(){return Ui=Object(o.a)(r.a.mark(function Sr(){var Or;return r.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.t0=Et,Tn.next=3,tr({type:"competitions/getStaff",payload:{identifier:xt}});case 3:return Tn.t1=Tn.sent,(0,Tn.t0)(Tn.t1),Tn.next=7,tr({type:"competitions/getHeader",payload:{identifier:xt}});case 7:Or=Tn.sent,Lr(Or),Object(Ut.T)((Or==null?void 0:Or.name)||"\u7ADE\u8D5B");case 10:case"end":return Tn.stop()}},Sr)})),Ui.apply(this,arguments)}Object(a.useEffect)(function(){var Sr;Kr(parseInt(Di==null||((Sr=Di.query)===null||Sr===void 0)?void 0:Sr.type)===1)},[Di]),Object(a.useEffect)(function(){var Sr;if((st==null||((Sr=st.competition_modules)===null||Sr===void 0)?void 0:Sr.length)>0){var Or,lr;if((Di==null||((Or=Di.query)===null||Or===void 0)?void 0:Or.active)==="\u8D5B\u9898\u53D1\u5E03"){var Tn,vr=st==null||((Tn=st.competition_modules)===null||Tn===void 0)?void 0:Tn.find(function(pa){return pa.name==="\u8D5B\u9898\u53D1\u5E03"});if(vr){Bi(vr);return}}Bi(st==null||((lr=st.competition_modules)===null||lr===void 0)?void 0:lr[0])}},[st]);function Bi(Sr){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:if(ze(Or.id),je=Or.id,br(Or),!(Or.module_type==="entrance")){vr.next=9;break}return vr.next=6,tr({type:"competitions/getItem",payload:{url:Or.module_url,module_type:"entrance"}});case 6:lr=vr.sent,vr.next=12;break;case 9:return vr.next=11,tr({type:"competitions/getItem",payload:{url:Or.module_url}});case 11:lr=vr.sent;case 12:zt(!1),gn(!1),pt(!1),fr(lr),Wr(!1),Sn(!1),wr(Or.module_type),Or.module_type==="chart"?(zt(!0),sr(!1),Ba()):Or.module_type==="certificate"?(gn(!0),zt(!1),sr(!1),ba()):Or.module_type==="md_tab"?(pt(!0),sr(!1),localStorage.setItem("issee","2"),zt(!1),gn(!1),ca()):Or.module_type==="md_shixun"?(Wr(!0),sr(!1),ca()):Or.module_type==="entrance"?(Sn(!0),sr(!1),ca()):(sr(!0),localStorage.setItem("issee","1"));case 20:case"end":return vr.stop()}},Sr)})),Fn.apply(this,arguments)}function Pn(Sr,Or,lr){return ai.apply(this,arguments)}function ai(){return ai=Object(o.a)(r.a.mark(function Sr(Or,lr,Tn){var vr,pa;return r.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(Or.stopPropagation(),Object(fe.e)(tr)){Kn.next=3;break}return Kn.abrupt("return");case 3:if(!(st!=null&&st.is_authentication&&!(qt!=null&&(vr=qt.userInfo)!==null&&vr!==void 0&&vr.authentication))){Kn.next=6;break}return tr({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),Kn.abrupt("return");case 6:if(!(st!=null&&st.enroll_url)){Kn.next=9;break}return Object(Ut.O)(st==null?void 0:st.enroll_url),Kn.abrupt("return");case 9:if(!(Tn==="ismodel")){Kn.next=23;break}if(!(lr.member_of_course===!0)){Kn.next=14;break}Object(Ut.O)("/classrooms/".concat(lr.course_id)),Kn.next=21;break;case 14:if(lr.invite_code){Kn.next=17;break}return u.b.info("\u672C\u7ADE\u8D5B\u53EA\u9762\u5411\u90E8\u5206\u5B66\u6821/\u5355\u4F4D\u5F00\u653E\uFF0C\u4F60\u6682\u65F6\u6CA1\u6709\u53C2\u8D5B\u8D44\u683C"),Kn.abrupt("return");case 17:return Kn.next=19,tr({type:"competitions/addApplytojoincourse",payload:{invite_code:lr.invite_code,student:1}});case 19:pa=Kn.sent,pa.status===0&&Object(Ut.O)("/classrooms/".concat(lr.course_id));case 21:Kn.next=27;break;case 23:if(!(rr.enrolled===!0)){Kn.next=26;break}return Object(Ut.O)(Tn),Kn.abrupt("return");case 26:Dn(!0);case 27:case"end":return Kn.stop()}},Sr)})),ai.apply(this,arguments)}function Ba(){return wa.apply(this,arguments)}function wa(){return wa=Object(o.a)(r.a.mark(function Sr(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.t0=fn,lr.next=3,tr({type:"competitions/ChartRules",payload:{identifier:xt}});case 3:return lr.t1=lr.sent,lr.next=6,(0,lr.t0)(lr.t1);case 6:case"end":return lr.stop()}},Sr)})),wa.apply(this,arguments)}function la(Sr){return ua.apply(this,arguments)}function ua(){return ua=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Charts",payload:{identifier:xt,stage_id:Or}});case 2:lr=vr.sent,fr(lr);case 4:case"end":return vr.stop()}},Sr)})),ua.apply(this,arguments)}function ka(Sr){return _a.apply(this,arguments)}function _a(){return _a=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return hn(!0),vr.next=3,tr({type:"competitions/Results",payload:Object(L.a)({identifier:xt,stage_id:Or==null?void 0:Or.id},Or)});case 3:lr=vr.sent,fr(lr),hn(!1);case 6:case"end":return vr.stop()}},Sr)})),_a.apply(this,arguments)}function La(Sr){return Wa.apply(this,arguments)}function Wa(){return Wa=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return hn(!0),vr.next=3,tr({type:"competitions/Results",payload:Object(L.a)({identifier:xt,stage_id:Or==null?void 0:Or.id,module_type:"entrance"},Or)});case 3:lr=vr.sent,fr(lr),hn(!1);case 6:case"end":return vr.stop()}},Sr)})),Wa.apply(this,arguments)}function Xa(Sr){return Ma.apply(this,arguments)}function Ma(){return Ma=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Results",payload:{identifier:xt,stage_id:Or}});case 2:if(lr=vr.sent,!(localStorage.getItem("issee")==="1")){vr.next=5;break}return vr.abrupt("return");case 5:fr(lr);case 6:case"end":return vr.stop()}},Sr)})),Ma.apply(this,arguments)}function ca(){return Sa.apply(this,arguments)}function Sa(){return Sa=Object(o.a)(r.a.mark(function Sr(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.t0=Ir,lr.next=3,tr({type:"competitions/TabResults",payload:{identifier:xt,competition_module_id:je}});case 3:lr.t1=lr.sent,(0,lr.t0)(lr.t1);case 5:case"end":return lr.stop()}},Sr)})),Sa.apply(this,arguments)}function ba(){return da.apply(this,arguments)}function da(){return da=Object(o.a)(r.a.mark(function Sr(){var Or,lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Prize",payload:{identifier:xt,user_id:qt==null||((Or=qt.userInfo)===null||Or===void 0)?void 0:Or.user_id}});case 2:lr=vr.sent,Me(lr);case 4:case"end":return vr.stop()}},Sr)})),da.apply(this,arguments)}function co(){return Ea.apply(this,arguments)}function Ea(){return Ea=Object(o.a)(r.a.mark(function Sr(){var Or,lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Accounts",payload:{id:qt==null||((Or=qt.userInfo)===null||Or===void 0)?void 0:Or.user_id}});case 2:lr=vr.sent,Ee(lr);case 4:case"end":return vr.stop()}},Sr)})),Ea.apply(this,arguments)}function Ta(Sr){return fa.apply(this,arguments)}function fa(){return fa=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:if(Vn){vr.next=2;break}return vr.abrupt("return");case 2:if(ii(!1),!ha()){vr.next=5;break}return vr.abrupt("return");case 5:return vr.next=7,tr({type:"competitions/AddTeam",payload:{identifier:xt,name:Or}});case 7:lr=vr.sent,lr&&lr.status===0?(u.b.info("\u521B\u5EFA\u6218\u961F\u6210\u529F"),Mn(),gi(!1)):ii(!0);case 9:case"end":return vr.stop()}},Sr)})),fa.apply(this,arguments)}function ha(){var Sr,Or;if(qt!=null&&(Sr=qt.userInfo)!==null&&Sr!==void 0&&Sr.is_teacher){var lr;if(rr!=null&&(lr=rr.teacher_staff)!==null&&lr!==void 0&&lr.mutiple_limited&&(rr!=null&&rr.enrolled))return u.b.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),ii(!0),!0}else{var Tn;if(rr!=null&&(Tn=rr.member_staff)!==null&&Tn!==void 0&&Tn.mutiple_limited&&(rr!=null&&rr.enrolled))return u.b.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),ii(!0),!0}if(rr!=null&&rr.enroll_ended)return u.b.info("\u62A5\u540D\u5DF2\u622A\u6B62\uFF0C\u65E0\u9700\u62A5\u540D"),ii(!0),!0;if(qt!=null&&(Or=qt.userInfo)!==null&&Or!==void 0&&Or.is_teacher){if(!rr.teacher_staff)return u.b.info("\u5DF2\u7981\u6B62\u8001\u5E08\u62A5\u540D"),ii(!0),!0}else if(!(rr!=null&&rr.member_staff))return u.b.info("\u5DF2\u7981\u6B62\u5B66\u751F\u62A5\u540D"),ii(!0),!0}function $i(Sr){return na.apply(this,arguments)}function na(){return na=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:if(Vn){vr.next=2;break}return vr.abrupt("return");case 2:if(!ha()){vr.next=4;break}return vr.abrupt("return");case 4:return ii(!1),vr.next=7,tr({type:"competitions/JoinTeam",payload:{identifier:xt,invite_code:Or}});case 7:lr=vr.sent,lr&&lr.status===0?(u.b.info("\u52A0\u5165\u6218\u961F\u6210\u529F"),Hn(!1),ii(!0),Mn()):ii(!0);case 9:case"end":return vr.stop()}},Sr)})),na.apply(this,arguments)}return t.a.createElement("div",{className:"edu-container minH500"},t.a.createElement(n.a,{className:"mt10",separator:">"},t.a.createElement(n.a.Item,null,t.a.createElement(E.a,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),t.a.createElement(n.a.Item,null,st.name,st.sub_title?"-"+st.sub_title:null)),t.a.createElement("div",{className:"mt10",style:{display:"flex",background:"#fff",position:"relative",padding:"20px 12px"}},t.a.createElement(d.a,{spinning:yr.effects["competitions/getHeader"]},t.a.createElement("div",{style:{height:"355px",width:"800px"}},(st==null?void 0:st.avatar_url)&&(st==null?void 0:st.avatar_url)!==null&&t.a.createElement("img",{style:{height:"355px",width:"800px"},src:X.a.IMG_SERVER+"/"+(st==null?void 0:st.avatar_url)}),!(st!=null&&st.avatar_url)&&(st==null?void 0:st.avatar_url)==null&&t.a.createElement("img",{style:{height:"355px",width:"800px"},src:X.a.IMG_SERVER+"/images/educoder/competitions/mainbanner.jpg"}))),t.a.createElement("div",{style:{marginLeft:"20px",width:"400px"}},t.a.createElement("p",{className:"".concat(O.a.titlesize)},st.name,st.sub_title?"-"+st.sub_title:null),t.a.createElement("p",{style:{display:"flex",justifyContent:"space-between",marginRight:18}},t.a.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},t.a.createElement("span",null,"\u5956\u91D1"),st!=null&&st.bonus?t.a.createElement("span",{style:{fontSize:"24px"}},"\xA5",parseInt(st&&st.bonus).toLocaleString()):t.a.createElement("span",{style:{fontSize:"24px"}},"\u6682\u65E0")),t.a.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},t.a.createElement("span",null,"\u6D4F\u89C8"),t.a.createElement("span",{style:{fontSize:"24px"}},parseInt(st&&st.visits_count).toLocaleString())),t.a.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},t.a.createElement("span",null,"\u62A5\u540D"),t.a.createElement("span",{style:{fontSize:"24px"}},parseInt(st&&st.member_count).toLocaleString()))),t.a.createElement("p",{className:O.a.timesize,style:{marginTop:30}},t.a.createElement("span",{style:{color:"#9b9b9b",marginTop:"30px"}},"\u7ADE\u8D5B\u65F6\u95F4\uFF1A"),st.start_time,"~",st.end_time),t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u62A5\u540D\u622A\u6B62\uFF1A"),st.enroll_end_time),st.competition_status==="ended"?t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u5DF2\u7ED3\u675F"):null,st.competition_status==="nearly_published"?t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u672A\u53D1\u5E03"):null,st.competition_status==="progressing"?t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u8FDB\u884C\u4E2D"):null,t.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},(st==null?void 0:st.mode)<=2&&rr.enrolled&&t.a.createElement(S.a,{onClick:function(Or){if((st==null?void 0:st.mode)===1){var lr;Bi((lr=st.competition_modules)===null||lr===void 0?void 0:lr.find(function(Tn){return Tn.module_type==="entrance"}))}else Pn(Or,st,"ismodel")},style:{background:"#07C160",color:"#fff",border:"1px solid #07C160",marginRight:20,display:(st==null?void 0:st.mode)===2||(st==null?void 0:st.mode)===1&&((mt=st.competition_modules)===null||mt===void 0||((Ct=mt.filter(function(Sr){return Sr.module_type==="entrance"}))===null||Ct===void 0)?void 0:Ct.length)>0?"":"none"},className:O.a.buttonsize},(st==null?void 0:st.mode)===1&&"\u8D5B\u9898\u5165\u53E3",(st==null?void 0:st.mode)===2&&"\u8FDB\u5165\u8BFE\u5802"),st.competition_status==="ended"?t.a.createElement(S.a,{type:"primary",className:O.a.buttonsize,disabled:!0},"\u5DF2\u7ED3\u675F"):null,st.competition_status==="nearly_published"?t.a.createElement(S.a,{type:"primary",className:O.a.buttonsize,disabled:!0},"\u672A\u53D1\u5E03"):null,st.competition_status!=="nearly_published"&&st.enroll_end&&st.competition_status!=="ended"?t.a.createElement(S.a,{type:"primary",className:O.a.buttonsize,disabled:!0},"\u62A5\u540D\u622A\u6B62"):null,st.competition_status==="progressing"&&st.enroll_end!=!0?t.a.createElement(S.a,{type:"primary",disabled:rr.enrolled&&!st.need_attachment,className:O.a.buttonsize,onClick:function(Or){if(rr.enrolled&&st.need_attachment){var lr;(lr=ra.current)===null||lr===void 0||lr.handleVisible();return}Pn(Or,st,st.mode===2?"ismodel":st.personal?"personal":"/competitions/index/".concat(st.identifier,"/enroll"))}},rr.enrolled?st.need_attachment?"\u4E0A\u4F20\u4F5C\u54C1":"\u5DF2\u62A5\u540D":st!=null&&st.enroll_url?"\u524D\u5F80\u5927\u8D5B\u5B98\u7F51\u62A5\u540D":"\u7ACB\u5373\u62A5\u540D"):null),qt.userInfo.real_name!="\u6E38\u5BA2"&&!(st!=null&&st.enroll_url)&&t.a.createElement("span",{onClick:function(Or){return Pn(Or,st,st.mode===2?"ismodel":st.personal?"personal":"/competitions/index/".concat(st.identifier,"/enroll"))},className:O.a.myteam},Object(zr.u)()?"\u53C2\u8D5B\u6218\u961F>>":"\u6211\u7684\u6218\u961F>>"))),t.a.createElement("div",{className:O.a.bootmdetail},t.a.createElement("div",{className:O.a.flex1},t.a.createElement(p.a,{selectedKeys:["".concat(je)]},st&&st.competition_modules&&st.competition_modules.map(function(Sr,Or){if(Sr.module_type!="enroll")return t.a.createElement(p.a.Item,{className:O.a.menuItem,onClick:function(){if(Sr!=null&&Sr.is_authentication){if(!Object(fe.e)(tr))return;u.b.info("\u52A0\u5165\u6218\u961F\u624D\u80FD\u67E5\u770B");return}Bi(Sr)},key:Sr.id},Sr.name)}))),t.a.createElement("div",{className:O.a.flex6,style:{padding:(jr||Tr)&&0}},Ur?t.a.createElement(Lt,{dispatch:tr,userid:qt==null||((It=qt.userInfo)===null||It===void 0)?void 0:It.user_id,Prize:ei,Accounts:Fe,getAccounts:co}):null,yt?t.a.createElement(Le,{HeaderDetail:st,userinfo:qt.userInfo,Editable:st==null||((Pt=st.permission)===null||Pt===void 0)?void 0:Pt.editable,getCharts:la,getChartRules:Ba,Selectkey:je,ChartRules:cn,ItemData:dr}):null,qe?t.a.createElement(ee,{ref:ra,StaffDetail:rr,HeaderDetail:st,userinfo:qt.userInfo,Editable:st==null||((Ht=st.permission)===null||Ht===void 0)?void 0:Ht.editable,ItemData:dr,setIssee:sr,ModelType:Zt,dispatch:tr}):null,!qe&&!jr&&!Tr&&!yt&&!Ur&&!Ze?t.a.createElement(Q,{userinfo:qt.userInfo,ModelType:Zt,getrightdatas:Bi,dispatch:tr,MenuItem:xr,setIssee:sr,identifier:xt,ItemData:dr}):null,Ze&&t.a.createElement(In,{dispatch:tr,StaffDetail:rr,userinfo:qt.userInfo,HeaderDetail:st,Editable:st==null||((Wt=st.permission)===null||Wt===void 0)?void 0:Wt.editable,getCharts:Xa,getChartRules:ca,Selectkey:je,ChartRules:Yt,ItemData:dr}),jr&&t.a.createElement(xi,{loading:xn,dispatch:tr,StaffDetail:rr,userinfo:qt.userInfo,HeaderDetail:st,Editable:st==null||((dt=st.permission)===null||dt===void 0)?void 0:dt.editable,getCharts:ka,getChartRules:ca,Selectkey:je,ChartRules:Yt,ItemData:dr}),Tr&&t.a.createElement(sa,{loading:xn,dispatch:tr,StaffDetail:rr,userinfo:qt.userInfo,HeaderDetail:st,Editable:st==null||((At=st.permission)===null||At===void 0)?void 0:At.editable,getCharts:La,getChartRules:ca,Selectkey:je,ChartRules:Yt,ItemData:dr}))),t.a.createElement(C.a,null),t.a.createElement(G,{getResults:Xa}),t.a.createElement(T.a,{visible:nn,footer:null,width:720,title:"\u63D0\u793A",centered:!0,onCancel:function(){return Kr(!1)}},t.a.createElement("div",{className:O.a.modal},t.a.createElement("div",null,"\u534E\u4E3A\u6A21\u578B\u738B\u8005\u6311\u6218\u8D5B\u9EC4\u91D1\u8D5B\u6B63\u5F0F\u5F00\u542F\u5566"),t.a.createElement("div",null,"\u672C\u8D5B\u6BB5\u603B\u5956\u91D1\u9AD8\u8FBE",t.a.createElement("span",{style:{color:"#FF8C29"}},"300,000"),"\u5143"),t.a.createElement("div",null,"1\u3001\u7B26\u5408\u8D5B\u9898\u8981\u6C42\u7684\u961F\u4F0D\uFF08\u517125\u652F\uFF09\u53EF\u83B7\u5F97\u5956\u91D1\uFF1A12000RMB/\u961F \uFF1B"),t.a.createElement("div",null,"2\u3001\u53C2\u4E0E\u83B7\u5F97\u201C\u8363\u8000\u6BBF\u5802\u201D\u699C\u4E3B\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1\uFF1B"),t.a.createElement("div",null,"3\u3001\u5404\u8D5B\u9898\u7CBE\u5EA6\u6700\u9AD8\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1+\u8363\u8A89\u8BC1\u4E66\uFF1B"),t.a.createElement("div",null,"\u5FC3\u52A8\u5427\uFF0C\u90A3\u5C31\u5FEB\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u62A5\u540D\u53C2\u8D5B"),t.a.createElement(S.a,{type:"primary",onClick:function(){return Object(Ut.O)("https://competition.huaweicloud.com/information/1000041485/introduction")}},"\u524D\u5F80\u62A5\u540D\u53C2\u8D5B"))),t.a.createElement(T.a,{title:"\u9009\u62E9\u53C2\u8D5B\u65B9\u5F0F",visible:Wn,onCancel:function(){Dn(!1)},footer:!1},t.a.createElement("div",{style:{display:"flex",justifyContent:"space-around",height:100,alignItems:"center"}},t.a.createElement(S.a,{type:"primary",style:{height:40},onClick:function(){Hn(!0),Dn(!1)}},"\u52A0\u5165\u6218\u961F\u53C2\u8D5B"),t.a.createElement(S.a,{style:{height:40},onClick:function(){gi(!0),Dn(!1)}},"\u53BB\u521B\u5EFA\u6218\u961F\u53C2\u8D5B"))),di?t.a.createElement(Ii.a,{isjoin:di,setJoin:Hn,JoinTeams:$i}):null,Jn?t.a.createElement(qn.a,{isAddmodle:Jn,setIsAdd:gi,createTeam:Ta}):null)},ta=Y.default=Object(f.a)(function(Tt){var it=Tt.loading,mt=Tt.globalSetting,Ct=Tt.user;return{globalSetting:mt,loading:it,user:Ct}})(Vi)},GRuw:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("lPiR"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=g.algo,v=p.SHA256,S=p.SHA224=v.extend({_doReset:function(){this._hash=new P.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var b=v._doFinalize.call(this);return b.sigBytes-=4,b}});g.SHA224=v._createHelper(S),g.HmacSHA224=v._createHmacHelper(S)}(),L.SHA224})},GfqC:function(j,Y,D){"use strict";var L=D("q1tI"),g=D.n(L),T=D("TSYQ"),P=D.n(T);function p(K,U){var W="cannot "+K.method+" "+K.action+" "+U.status+"'",X=new Error(W);return X.status=U.status,X.method=K.method,X.url=K.action,X}function v(K){var U=K.responseText||K.response;if(!U)return U;try{return JSON.parse(U)}catch(W){return U}}function S(K){var U=new XMLHttpRequest;K.onProgress&&U.upload&&(U.upload.onprogress=function(fe){fe.total>0&&(fe.percent=fe.loaded/fe.total*100),K.onProgress(fe)});var W=new FormData;K.data&&Object.keys(K.data).forEach(function(ne){var fe=K.data[ne];if(Array.isArray(fe)){fe.forEach(function(me){W.append(ne+"[]",me)});return}W.append(ne,K.data[ne])}),K.file instanceof Blob?W.append(K.filename,K.file,K.file.name):W.append(K.filename,K.file),U.onerror=function(fe){K.onError(fe)},U.onload=function(){return U.status<200||U.status>=300?K.onError(p(K,U),v(U)):K.onSuccess(v(U),U)},U.open(K.method,K.action,!0),K.withCredentials&&"withCredentials"in U&&(U.withCredentials=!0);var X=K.headers||{};return X["X-Requested-With"]!==null&&U.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(X).forEach(function(ne){X[ne]!==null&&U.setRequestHeader(ne,X[ne])}),U.send(W),{abort:function(){U.abort()}}}var b=+new Date,d=0;function l(){return"rc-upload-"+b+"-"+ ++d}function n(K,U){return K.indexOf(U,K.length-U.length)!==-1}var c=function(K,U){if(K&&U){var W=Array.isArray(U)?U:U.split(","),X=K.name||"",ne=K.type||"",fe=ne.replace(/\/.*$/,"");return W.some(function(me){var Ae=me.trim();return Ae.charAt(0)==="."?n(X.toLowerCase(),Ae.toLowerCase()):/\/\*$/.test(Ae)?fe===Ae.replace(/\/.*$/,""):ne===Ae})}return!0};function u(K,U){var W=K.createReader(),X=[];function ne(){W.readEntries(function(fe){var me=Array.prototype.slice.apply(fe);X=X.concat(me);var Ae=!me.length;Ae?U(X):ne()})}ne()}var o=function(U,W,X){var ne=function fe(me,Ae){Ae=Ae||"",me.isFile?me.file(function(De){X(De)&&(me.fullPath&&!De.webkitRelativePath&&(Object.defineProperties(De,{webkitRelativePath:{writable:!0}}),De.webkitRelativePath=me.fullPath.replace(/^\//,""),Object.defineProperties(De,{webkitRelativePath:{writable:!1}})),W([De]))}):me.isDirectory&&u(me,function(De){De.forEach(function(ye){fe(ye,""+Ae+me.name+"/")})})};U.forEach(function(fe){ne(fe.webkitGetAsEntry())})},h=o,m=Object.assign||function(K){for(var U=1;U=0)continue;if(!Object.prototype.hasOwnProperty.call(K,X))continue;W[X]=K[X]}return W}function w(K,U){if(!(K instanceof U))throw new TypeError("Cannot call a class as a function")}function E(K,U){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:K}function f(K,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);K.prototype=Object.create(U&&U.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(K,U):K.__proto__=U)}var k=function(U){return Object.keys(U).reduce(function(W,X){return(X.substr(0,5)==="data-"||X.substr(0,5)==="aria-"||X==="role")&&(W[X]=U[X]),W},{})},O=function(K){f(U,K);function U(){var W,X,ne,fe;w(this,U);for(var me=arguments.length,Ae=Array(me),De=0;De>>2]>>>24-k%4*8&255;t[E+k>>>2]|=O<<24-(E+k)%4*8}else for(var C=0;C>>2]=w[C>>>2];return this.sigBytes+=f,this},clamp:function(){var a=this.words,t=this.sigBytes;a[t>>>2]&=4294967295<<32-t%4*8,a.length=T.ceil(t/4)},clone:function(){var a=l.clone.call(this);return a.words=this.words.slice(0),a},random:function(a){for(var t=[],w=0;w>>2]>>>24-f%4*8&255;E.push((k>>>4).toString(16)),E.push((k&15).toString(16))}return E.join("")},parse:function(a){for(var t=a.length,w=[],E=0;E>>3]|=parseInt(a.substr(E,2),16)<<24-E%8*4;return new n.init(w,t/2)}},o=c.Latin1={stringify:function(a){for(var t=a.words,w=a.sigBytes,E=[],f=0;f>>2]>>>24-f%4*8&255;E.push(String.fromCharCode(k))}return E.join("")},parse:function(a){for(var t=a.length,w=[],E=0;E>>2]|=(a.charCodeAt(E)&255)<<24-E%4*8;return new n.init(w,t)}},h=c.Utf8={stringify:function(a){try{return decodeURIComponent(escape(o.stringify(a)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(a){return o.parse(unescape(encodeURIComponent(a)))}},m=d.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new n.init,this._nDataBytes=0},_append:function(a){typeof a=="string"&&(a=h.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(a){var t,w=this._data,E=w.words,f=w.sigBytes,k=this.blockSize,O=k*4,C=f/O;a?C=T.ceil(C):C=T.max((C|0)-this._minBufferSize,0);var x=C*k,y=T.min(x*4,f);if(x){for(var _=0;_=k?g:{done:!1,value:E[f++]}}}}d.fromArray=u;function o(E){return{next:function(){var f=E.next();return f.done?g:{done:!1,value:f.value}}}}d.fromNativeIterator=o;function h(E){return E?Array.isArray(E)?d.fromArray(E):E:d.empty()}d.from=h;function m(E,f){return{next:function(){var k=E.next();return k.done?g:{done:!1,value:f(k.value)}}}}d.map=m;function s(E,f){return{next:function(){for(;;){var k=E.next();if(k.done)return g;if(f(k.value))return{done:!1,value:k.value}}}}}d.filter=s;function r(E,f){for(var k=E.next();!k.done;k=E.next())f(k.value)}d.forEach=r;function a(E,f){f===void 0&&(f=Number.POSITIVE_INFINITY);var k=[];if(f===0)return k;for(var O=0,C=E.next();!C.done&&!(k.push(C.value),++O>=f);C=E.next());return k}d.collect=a;function t(){for(var E=[],f=0;f=E.length)return g;var O=E[k],C=O.next();return C.done?(k++,this.next()):C}}}d.concat=t;function w(E){return new P(E)}d.chain=w})(T||(T={}));var P=function(){function d(l){this.it=l}return d.prototype.next=function(){return this.it.next()},d}();function p(d){return Array.isArray(d)?T.fromArray(d):d||T.empty()}var v=function(){function d(l,n,c,u){n===void 0&&(n=0),c===void 0&&(c=l.length),u===void 0&&(u=n-1),this.items=l,this.start=n,this.end=c,this.index=u}return d.prototype.first=function(){return this.index=this.start,this.current()},d.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},d.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},d}(),S=function(d){L(l,d);function l(n,c,u,o){return c===void 0&&(c=0),u===void 0&&(u=n.length),o===void 0&&(o=c-1),d.call(this,n,c,u,o)||this}return l.prototype.current=function(){return d.prototype.current.call(this)},l.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},l.prototype.first=function(){return this.index=this.start,this.current()},l.prototype.last=function(){return this.index=this.end-1,this.current()},l.prototype.parent=function(){return null},l}(v),b=function(){function d(l,n){this.iterator=l,this.fn=n}return d.prototype.next=function(){return this.fn(this.iterator.next())},d}()},K3mO:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("3y9D"),D("WYAk"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.Base,p=T.WordArray,v=g.algo,S=v.MD5,b=v.EvpKDF=P.extend({cfg:P.extend({keySize:128/32,hasher:S,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,l){for(var n,c=this.cfg,u=c.hasher.create(),o=p.create(),h=o.words,m=c.keySize,s=c.iterations;h.lengthOe)){ue.next=7;break}return T.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Oe/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),ue.abrupt("return",!1);case 7:return H.push({name:ye.name,file:ye}),B(Object(P.a)(H)),I.onChange(H),ue.abrupt("return",!1);case 11:case"end":return ue.stop()}},De)}));function Ae(De){return me.apply(this,arguments)}return Ae}()},fe=function(){var me=Object(b.a)(c.a.mark(function Ae(De,ye){var Oe,xe,ue,le,re,pe,ee,te,ce;return c.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return ye.file_name=De.name,ee=De.name,Q.next=4,Object(h.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(te=Q.sent,te.data=JSON.parse(f(te.data)),!((te==null?void 0:te.status)!==0)){Q.next=12;break}return H[H.findIndex(function(V){return V.name===ee})].status="error",H[H.findIndex(function(V){return V.name===ee})].file.status="error",I.onChange(H),T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Q.abrupt("return");case 12:return W=new w.a({endpoint:te==null||((Oe=te.data)===null||Oe===void 0)?void 0:Oe.end_point,region:te==null||((xe=te.data)===null||xe===void 0)?void 0:xe.region,accessKeyId:te==null||((ue=te.data)===null||ue===void 0)?void 0:ue.access_key_id,accessKeySecret:te==null||((le=te.data)===null||le===void 0)?void 0:le.access_key_secret,bucket:te==null||((re=te.data)===null||re===void 0)?void 0:re.bucket,stsToken:te==null||((pe=te.data)===null||pe===void 0)?void 0:pe.security_token}),console.log(De,"file"),X(W),ce=Object(r.a)(),Q.abrupt("return",new Promise(function(V,Z){try{var be;W.multipartUpload("".concat(I.identifier,"/").concat(ce).concat(ee.indexOf(".")>-1?"."+ee.split(".").pop():""),new Blob([De.file],{type:De.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(Te,Je,rt){try{console.log("\u8FDB\u5EA6",Te,Je,rt);var nt=H.findIndex(function(at){return at.name===ee});H[nt].file.percent=Te*100,H[nt].tempCheckpoint=Je,B(Object(P.a)(H))}catch(at){}},checkpoint:H[H.findIndex(function(ge){return ge.name===ee})].tempCheckpoint,callback:{customValue:{id:ee+""},url:te==null||((be=te.data)===null||be===void 0)?void 0:be.callback_url,host:te==null?void 0:te.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(h.e)(ye)}}).then(function(ge){var Te,Je=H.findIndex(function(ht){return ht.name===ee}),rt="done";if(((Te=ge.data)===null||Te===void 0?void 0:Te.status)===0){var nt;De.response=(nt=ge.data)===null||nt===void 0?void 0:nt.data;var at=H.findIndex(function(ht){return ht.name===ee});H[at].status="done",H[at].file.status="done"}else{var ct;T.b.warn((ct=ge.data)===null||ct===void 0?void 0:ct.message),rt="error"}H[Je].status=rt,H[Je].file.status=rt,I.onChange(H),V(ge==null?void 0:ge.data)}).catch(function(ge){H[H.findIndex(function(Te){return Te.name===ee})].status="error",H[H.findIndex(function(Te){return Te.name===ee})].file.status="error",T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),B(Object(P.a)(H)),I.onChange(H),Z(ge),console.log("err:",ge)})}catch(ge){}}));case 17:case"end":return Q.stop()}},Ae)}));return function(De,ye){return me.apply(this,arguments)}}();return Object(u.useEffect)(function(){H.every(function(me){return me==="done"||me==="error"})&&I.onComplete(H)},[H]),Object(u.useEffect)(function(){if(M){var me;(me=W)===null||me===void 0||me.cancel()}},[M]),Object(u.useEffect)(function(){I.uploading&&H.map(function(){var me=Object(b.a)(c.a.mark(function Ae(De){var ye,Oe;return c.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(!((!De.status||De.status==="error")&&!M)){ue.next=6;break}return De.status="uploading",De.file.status="uploading",ue.next=5,fe(De,{login:_==null||((ye=_.userInfo)===null||ye===void 0)?void 0:ye.login,container_type:I.container_type,container_id:I.container_id,description:I.description});case 5:Oe=ue.sent;case 6:case"end":return ue.stop()}},Ae)}));return function(Ae){return me.apply(this,arguments)}}())},[I.uploading]),o.a.createElement(E,Object(L.a)({},ne,{height:I.height,className:I.className}),o.a.createElement("p",{className:"ant-upload-hint"},I.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Y.b=Object(a.a)(function(x){var y=x.loading,_=x.globalSetting,M=x.user;return{globalSetting:_,loading:y.models.competitions,user:M}})(C)},KmYQ:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.pad.ZeroPadding={pad:function(g,T){var P=T*4;g.clamp(),g.sigBytes+=P-(g.sigBytes%P||P)},unpad:function(g){for(var T=g.words,P=g.sigBytes-1,P=g.sigBytes-1;P>=0;P--)if(T[P>>>2]>>>24-P%4*8&255){g.sigBytes=P+1;break}}},L.pad.ZeroPadding})},LdHM:function(j,Y,D){"use strict";D.d(Y,"b",function(){return t}),D.d(Y,"a",function(){return E});var L=D("1OyB"),g=D("vuIU"),T=D("Ji7U"),P=D("LK+K"),p=D("q1tI"),v=D("rePB"),S=D("Ff2n"),b=D("ODXe"),d=D("4IlW"),l=D("bX4T"),n=D("YrtM"),c=D("TSYQ"),u=D.n(c),o=D("+nKL"),h=D("8OUc"),m=function(X,ne){var fe=X.prefixCls,me=X.id,Ae=X.flattenOptions,De=X.childrenAsData,ye=X.values,Oe=X.searchValue,xe=X.multiple,ue=X.defaultActiveFirstOption,le=X.height,re=X.itemHeight,pe=X.notFoundContent,ee=X.open,te=X.menuItemSelectedIcon,ce=X.virtual,q=X.onSelect,Q=X.onToggleOpen,V=X.onActiveValue,Z=X.onScroll,be=X.onMouseEnter,ge="".concat(fe,"-item"),Te=Object(n.a)(function(){return Ae},[ee,Ae],function(lt,Ue){return Ue[0]&<[1]!==Ue[1]}),Je=p.useRef(null),rt=function(Ue){Ue.preventDefault()},nt=function(Ue){Je.current&&Je.current.scrollTo({index:Ue})},at=function(Ue){for(var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ie=Te.length,Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:!1;return Object(k.a)(W).map(function(ne,fe){if(!p.isValidElement(ne)||!ne.type)return null;var me=ne.type.isSelectOptGroup,Ae=ne.key,De=ne.props,ye=De.children,Oe=Object(S.a)(De,["children"]);return X||!me?O(ne):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(Ae===null?fe:Ae,"__"),label:Ae},Oe),{},{options:C(ye)})}).filter(function(ne){return ne})}var x=D("2Qr1"),y=D("qNPg"),_=D("U8pU"),M=D("Kwbf"),I=D("WKfj");function N(W){var X=W.mode,ne=W.options,fe=W.children,me=W.backfill,Ae=W.allowClear,De=W.placeholder,ye=W.getInputElement,Oe=W.showSearch,xe=W.onSearch,ue=W.defaultOpen,le=W.autoFocus,re=W.labelInValue,pe=W.value,ee=W.inputValue,te=W.optionLabelProp,ce=X==="multiple"||X==="tags",q=Oe!==void 0?Oe:ce||X==="combobox",Q=ne||C(fe);if(Object(M.a)(X!=="tags"||Q.every(function(ge){return!ge.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),X==="tags"||X==="combobox"){var V=Q.some(function(ge){return ge.options?ge.options.some(function(Te){return typeof("value"in Te?Te.value:Te.key)=="number"}):typeof("value"in ge?ge.value:ge.key)=="number"});Object(M.a)(!V,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)(X!=="combobox"||!te,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)(X==="combobox"||!me,"`backfill` only works with `combobox` mode."),Object(M.a)(X==="combobox"||!ye,"`getInputElement` only work with `combobox` mode."),Object(M.b)(X!=="combobox"||!ye||!Ae||!De,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xe&&!q&&X!=="combobox"&&X!=="tags"&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!ue||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),pe!=null){var Z=Object(I.d)(pe);Object(M.a)(!re||Z.every(function(ge){return Object(_.a)(ge)==="object"&&("key"in ge||"value"in ge)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!ce||Array.isArray(pe),"`value` should be array when `mode` is `multiple` or `tags`")}if(fe){var be=null;Object(k.a)(fe).some(function(ge){if(!p.isValidElement(ge)||!ge.type)return!1;var Te=ge.type;if(Te.isSelectOption)return!1;if(Te.isSelectOptGroup){var Je=Object(k.a)(ge.props.children).every(function(rt){return!p.isValidElement(rt)||!ge.type||rt.type.isSelectOption?!0:(be=rt.type,!1)});return!Je}return be=Te,!0}),be&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(be.displayName||be.name||be,"`.")),Object(M.a)(ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var G=N,H=Object(y.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:C,flattenOptions:x.d,getLabeledValue:x.e,filterOptions:x.b,isValueDisabled:x.g,findValueOption:x.c,warningProps:G,fillOptionsWithMissingValue:x.a}),B=function(W){Object(T.a)(ne,W);var X=Object(P.a)(ne);function ne(){var fe;return Object(L.a)(this,ne),fe=X.apply(this,arguments),fe.selectRef=p.createRef(),fe.focus=function(){fe.selectRef.current.focus()},fe.blur=function(){fe.selectRef.current.blur()},fe}return Object(g.a)(ne,[{key:"render",value:function(){return p.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),ne}(p.Component);B.Option=t,B.OptGroup=E;var K=B,U=Y.c=K},M8RZ:function(j,Y,D){"use strict";D.d(Y,"a",function(){return d});var L=D("fWQN"),g=D("mtLc"),T=D("yKVA"),P=D("879j"),p=D("q1tI"),v=D.n(p),S=D("i8i4"),b=D.n(S),d=function(l){Object(T.a)(c,l);var n=Object(P.a)(c);function c(u){var o;Object(L.a)(this,c),o=n.call(this,u);var h=window.document;return o.node=h.createElement("div"),h.body.appendChild(o.node),o}return Object(g.a)(c,[{key:"render",value:function(){var o=this.props.children;return Object(S.createPortal)(o,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),c}(v.a.Component)},MI8n:function(j,Y,D){"use strict";D.d(Y,"b",function(){return v}),D.d(Y,"a",function(){return d}),D.d(Y,"e",function(){return l}),D.d(Y,"d",function(){return n}),D.d(Y,"c",function(){return c}),D.d(Y,"f",function(){return u});var L=D("/cxE"),g=D("C/vA"),T=D("pmY6"),P=D("24hK"),p=function(){var o=function(h,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var a in r)r.hasOwnProperty(a)&&(s[a]=r[a])},o(h,m)};return function(h,m){o(h,m);function s(){this.constructor=h}h.prototype=m===null?Object.create(m):(s.prototype=m.prototype,new s)}}(),v;(function(o){o.None=function(){return T.a.None};function h(G){return function(H,B,K){B===void 0&&(B=null);var U=!1,W;return W=G(function(X){return U?void 0:(W?W.dispose():U=!0,H.call(B,X))},null,K),U&&W.dispose(),W}}o.once=h;function m(G,H){return E(function(B,K,U){return K===void 0&&(K=null),G(function(W){return B.call(K,H(W))},null,U)})}o.map=m;function s(G,H){return E(function(B,K,U){return K===void 0&&(K=null),G(function(W){H(W),B.call(K,W)},null,U)})}o.forEach=s;function r(G,H){return E(function(B,K,U){return K===void 0&&(K=null),G(function(W){return H(W)&&B.call(K,W)},null,U)})}o.filter=r;function a(G){return G}o.signal=a;function t(){for(var G=[],H=0;H1)&&me.fire(De),fe=0},B)})},onLastListenerRemove:function(){W.dispose()}});return me.event}o.debounce=f;function k(G){var H=new Date().getTime();return m(h(G),function(B){return new Date().getTime()-H})}o.stopwatch=k;function O(G){var H=!0,B;return r(G,function(K){var U=H||K!==B;return H=!1,B=K,U})}o.latch=O;function C(G,H,B){H===void 0&&(H=!1),B===void 0&&(B=[]);var K=B.slice(),U=G(function(ne){K?K.push(ne):X.fire(ne)}),W=function(){K&&K.forEach(function(ne){return X.fire(ne)}),K=null},X=new d({onFirstListenerAdd:function(){U||(U=G(function(ne){return X.fire(ne)}))},onFirstListenerDidAdd:function(){K&&(H?setTimeout(W):W())},onLastListenerRemove:function(){U&&U.dispose(),U=null}});return X.event}o.buffer=C;var x=function(){function G(H){this.event=H}return G.prototype.map=function(H){return new G(m(this.event,H))},G.prototype.forEach=function(H){return new G(s(this.event,H))},G.prototype.filter=function(H){return new G(r(this.event,H))},G.prototype.reduce=function(H,B){return new G(w(this.event,H,B))},G.prototype.latch=function(){return new G(O(this.event))},G.prototype.debounce=function(H,B,K,U){return B===void 0&&(B=100),K===void 0&&(K=!1),new G(f(this.event,H,B,K,U))},G.prototype.on=function(H,B,K){return this.event(H,B,K)},G.prototype.once=function(H,B,K){return h(this.event)(H,B,K)},G}();function y(G){return new x(G)}o.chain=y;function _(G,H,B){B===void 0&&(B=function(ne){return ne});var K=function(){for(var ne=[],fe=0;fe0?new b(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(o.prototype,"event",{get:function(){var h=this;return this._event||(this._event=function(m,s,r){h._listeners||(h._listeners=new P.a);var a=h._listeners.isEmpty();a&&h._options&&h._options.onFirstListenerAdd&&h._options.onFirstListenerAdd(h);var t=h._listeners.push(s?[m,s]:m);a&&h._options&&h._options.onFirstListenerDidAdd&&h._options.onFirstListenerDidAdd(h),h._options&&h._options.onListenerDidAdd&&h._options.onListenerDidAdd(h,m,s);var w;h._leakageMon&&(w=h._leakageMon.check(h._listeners.size));var E;return E={dispose:function(){if(w&&w(),E.dispose=o._noop,!h._disposed&&(t(),h._options&&h._options.onLastListenerRemove)){var f=h._listeners&&!h._listeners.isEmpty();f||h._options.onLastListenerRemove(h)}}},r instanceof T.b?r.add(E):Array.isArray(r)&&r.push(E),E}),this._event},enumerable:!0,configurable:!0}),o.prototype.fire=function(h){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new P.a);for(var m=this._listeners.iterator(),s=m.next();!s.done;s=m.next())this._deliveryQueue.push([s.value,h]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),a=r[0],t=r[1];try{typeof a=="function"?a.call(void 0,t):a[0].call(a[1],t)}catch(w){Object(L.e)(w)}}}},o.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},o._noop=function(){},o}(),l=function(o){p(h,o);function h(m){var s=o.call(this,m)||this;return s._isPaused=0,s._eventQueue=new P.a,s._mergeFn=m&&m.merge,s}return h.prototype.pause=function(){this._isPaused++},h.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var m=this._eventQueue.toArray();this._eventQueue.clear(),o.prototype.fire.call(this,this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)o.prototype.fire.call(this,this._eventQueue.shift())},h.prototype.fire=function(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):o.prototype.fire.call(this,m))},h}(d),n=function(){function o(){var h=this;this.hasListeners=!1,this.events=[],this.emitter=new d({onFirstListenerAdd:function(){return h.onFirstListenerAdd()},onLastListenerRemove:function(){return h.onLastListenerRemove()}})}return Object.defineProperty(o.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),o.prototype.add=function(h){var m=this,s={event:h,listener:null};this.events.push(s),this.hasListeners&&this.hook(s);var r=function(){m.hasListeners&&m.unhook(s);var a=m.events.indexOf(s);m.events.splice(a,1)};return Object(T.h)(Object(g.a)(r))},o.prototype.onFirstListenerAdd=function(){var h=this;this.hasListeners=!0,this.events.forEach(function(m){return h.hook(m)})},o.prototype.onLastListenerRemove=function(){var h=this;this.hasListeners=!1,this.events.forEach(function(m){return h.unhook(m)})},o.prototype.hook=function(h){var m=this;h.listener=h.event(function(s){return m.emitter.fire(s)})},o.prototype.unhook=function(h){h.listener&&h.listener.dispose(),h.listener=null},o.prototype.dispose=function(){this.emitter.dispose()},o}(),c=function(){function o(){this.buffers=[]}return o.prototype.wrapEvent=function(h){var m=this;return function(s,r,a){return h(function(t){var w=m.buffers[m.buffers.length-1];w?w.push(function(){return s.call(r,t)}):s.call(r,t)},void 0,a)}},o.prototype.bufferEvents=function(h){var m=[];this.buffers.push(m);var s=h();return this.buffers.pop(),m.forEach(function(r){return r()}),s},o}(),u=function(){function o(){var h=this;this.listening=!1,this.inputEvent=v.None,this.inputEventListener=T.a.None,this.emitter=new d({onFirstListenerDidAdd:function(){h.listening=!0,h.inputEventListener=h.inputEvent(h.emitter.fire,h.emitter)},onLastListenerRemove:function(){h.listening=!1,h.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(o.prototype,"input",{set:function(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),o.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},o}()},MlIO:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(g){var T=L,P=T.lib,p=P.Base,v=P.WordArray,S=T.x64={},b=S.Word=p.extend({init:function(l,n){this.high=l,this.low=n}}),d=S.WordArray=p.extend({init:function(l,n){l=this.words=l||[],n!=g?this.sigBytes=n:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,n=l.length,c=[],u=0;u=q.length?V:q[be]})}function p(ce){return ce.replace(/[<>&]/g,function(q){switch(q){case"<":return"<";case">":return">";case"&":return"&";default:return q}})}function v(ce){return ce.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function S(ce,q){q===void 0&&(q=" ");var Q=b(ce,q);return d(Q,q)}function b(ce,q){if(!ce||!q)return ce;var Q=q.length;if(Q===0||ce.length===0)return ce;for(var V=0;ce.indexOf(q,V)===V;)V=V+Q;return ce.substring(V)}function d(ce,q){if(!ce||!q)return ce;var Q=q.length,V=ce.length;if(Q===0||V===0)return ce;for(var Z=V,be=-1;!(be=ce.lastIndexOf(q,Z-1),be===-1||be+Q!==Z);){if(be===0)return"";Z=be}return ce.substring(0,Z)}function l(ce){return ce.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function n(ce,q){if(ce.length0?ce.indexOf(q,Q)===Q:Q===0?ce===q:!1}function u(ce,q,Q){if(Q===void 0&&(Q={}),!ce)throw new Error("Cannot create regex from empty string");q||(ce=v(ce)),Q.wholeWord&&(/\B/.test(ce.charAt(0))||(ce="\\b"+ce),/\B/.test(ce.charAt(ce.length-1))||(ce=ce+"\\b"));var V="";return Q.global&&(V+="g"),Q.matchCase||(V+="i"),Q.multiline&&(V+="m"),Q.unicode&&(V+="u"),new RegExp(ce,V)}function o(ce){if(ce.source==="^"||ce.source==="^$"||ce.source==="$"||ce.source==="^\\s*$")return!1;var q=ce.exec("");return!!(q&&ce.lastIndex===0)}function h(ce){return(ce.global?"g":"")+(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")}function m(ce){for(var q=0,Q=ce.length;q=0;Q--){var V=ce.charCodeAt(Q);if(V!==32&&V!==9)return Q}return-1}function a(ce,q){return ceq?1:0}function t(ce,q){for(var Q=Math.min(ce.length,q.length),V=0;Vq.length?1:0}function w(ce){return ce>=97&&ce<=122}function E(ce){return ce>=65&&ce<=90}function f(ce){return w(ce)||E(ce)}function k(ce,q){return ce.length===q.length&&O(ce,q)}function O(ce,q,Q){Q===void 0&&(Q=ce.length);for(var V=0;Vce.length?!1:O(ce,q,Q)}function x(ce,q){var Q,V=Math.min(ce.length,q.length);for(Q=0;Q1){var V=ce.charCodeAt(q-2);if(_(V))return(V-55296<<10)+(Q-56320)+65536}return Q}function G(ce,q){var Q=ee.getInstance(),V=q,Z=ce.length,be=I(ce,Z,q);q+=be>=65536?2:1;for(var ge=Q.getGraphemeBreakType(be);q=65536?2:1,ge=Je}return q-V}function H(ce,q){var Q=ee.getInstance(),V=q,Z=N(ce,q);q-=Z>=65536?2:1;for(var be=Q.getGraphemeBreakType(Z);q>0;){var ge=N(ce,q),Te=Q.getGraphemeBreakType(ge);if(pe(Te,be))break;q-=ge>=65536?2:1,be=Te}return V-q}var B=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function K(ce){return B.test(ce)}var U=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function W(ce){return U.test(ce)}var X=/^[\t\n\r\x20-\x7E]*$/;function ne(ce){return X.test(ce)}function fe(ce){for(var q=0,Q=ce.length;q=11904&&ce<=55215||ce>=63744&&ce<=64255||ce>=65281&&ce<=65374}function Ae(ce){return ce>=127462&&ce<=127487||ce>=9728&&ce<=10175||ce>=127744&&ce<=128591||ce>=128640&&ce<=128764||ce>=128992&&ce<=129003||ce>=129280&&ce<=129535||ce>=129648&&ce<=129651||ce>=129656&&ce<=129666||ce>=129680&&ce<=129685}var De=String.fromCharCode(65279);function ye(ce){return!!(ce&&ce.length>0&&ce.charCodeAt(0)===65279)}function Oe(ce){return btoa(encodeURIComponent(ce))}function xe(ce,q){for(var Q="",V=0;VQ[3*Z+1])Z=2*Z+1;else return Q[3*Z+2];return 0},ce._INSTANCE=null,ce}();function te(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NFKh:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("MlIO"),D("F+F2"),D("qM6L"),D("ETIr"),D("wbyO"),D("cv67"),D("3y9D"),D("lPiR"),D("GRuw"),D("1uat"),D("uGsb"),D("5hvy"),D("ELcG"),D("WYAk"),D("e7zE"),D("K3mO"),D("OLod"),D("ALsQ"),D("9OqN"),D("qu8F"),D("S6kV"),D("gb/T"),D("qBft"),D("oRuE"),D("jO9C"),D("KmYQ"),D("uGxW"),D("bQjk"),D("wZgz"),D("pA7S"),D("w7YG"),D("E4JC"),D("PVpz"))})(this,function(L){return L})},NLgs:function(j,Y,D){"use strict";D.d(Y,"e",function(){return w}),D.d(Y,"f",function(){return E}),D.d(Y,"d",function(){return k}),D.d(Y,"c",function(){return O}),D.d(Y,"a",function(){return C}),D.d(Y,"b",function(){return x});var L=D("miYZ"),g=D("tsqr"),T=D("9og8"),P=D("2qtc"),p=D("kLXV"),v=D("WmNS"),S=D.n(v),b=D("q1tI"),d=D.n(b),l=D("9kvl"),n=D("xKgJ"),c=D("1vsH"),u=D("RCxd"),o=D("mOS8"),h=D.n(o),m=D("1ZF9"),s=D.n(m),r=D("WdTA"),a=D.n(r),t=D("m3rI"),w=function(_){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(E(_)&&f(M))},E=function(_){return Object(n.p)()?!0:(_({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},f=function(){var _,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,I=Object(l.c)()._store.getState(),N=I.user;return(_=N.userInfo)!==null&&_!==void 0&&_.profile_completed?!0:(p.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:M?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){l.d.push("/account/profile/edit")}}),!1)},k=function(){var _,M=Object(l.c)()._store.getState(),I=M.user;return(_=I.userInfo)!==null&&_!==void 0&&_.professional_certification?!0:(p.a.confirm({title:"\u63D0\u793A",centered:!0,content:d.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(c.O)("/account/certification")}}),!1)},O=function(){return Object(n.a)()?!0:(p.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:d.a.createElement("div",{className:"tc",style:{marginLeft:-38}},d.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),d.a.createElement("img",{src:Object(n.t)()?a.a:"".concat(t.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},C=function(_,M){return _?!0:(p.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:d.a.createElement("div",null,d.a.createElement("p",null,M||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),d.a.createElement("div",{style:{marginLeft:"110px"}},d.a.createElement("img",{src:s.a,width:200}),d.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(c.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},x=function(_){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",I=Object(l.c)()._store.getState(),N=I.shixunsDetail.detail;return(N==null?void 0:N.public)===2||(N==null?void 0:N.public)===1||(N==null?void 0:N.shixun_status)===3?(p.a.info({centered:!0,icon:d.a.createElement(u.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:d.a.createElement("div",{className:"tc",style:{marginLeft:-38}},d.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},d.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(N==null?void 0:N.public)===2?"\u5DF2\u516C\u5F00":(N==null?void 0:N.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",M,"\u3002"),d.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),d.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:h.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(N==null?void 0:N.shixun_status)===2?(p.a.confirm({centered:!0,icon:d.a.createElement(u.a,null),title:"\u63D0\u793A",content:d.a.createElement("div",null,d.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",M,"\u3002"),d.a.createElement("br",null),d.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){p.a.confirm({width:440,centered:!0,icon:d.a.createElement(u.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var H=Object(T.a)(S.a.mark(function K(){var U;return S.a.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,_({type:"shixunsDetail/cancelRelease",payload:{id:N==null?void 0:N.identifier}});case 2:U=X.sent,U.status!==401&&(g.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),_({type:"shixunsDetail/getShixunsDetail",payload:{id:N==null?void 0:N.identifier}}),_({type:"practiceSetting/getCommonData",payload:{id:N==null?void 0:N.identifier}}));case 4:case"end":return X.stop()}},K)}));function B(){return H.apply(this,arguments)}return B}()})}}),!0):!1}},NnUe:function(j,Y,D){j.exports={modal:"modal___sZeHv",colorBlue:"colorBlue___3FmfG",formWrap:"formWrap___3YEqH",flexRow:"flexRow___37Sa0",flexColumn:"flexColumn___1ykGy",example:"example___7mYRk",exampleImg:"exampleImg___UGH9Y",colorOrange:"colorOrange___1IJLa",uploader:"uploader___3f2Sm",uploadImg:"uploadImg___3WCoA",imageTip:"imageTip___FhklW",uploadTipIcon:"uploadTipIcon___2YZJx",uploadTip:"uploadTip___1eikX",color05101a:"color05101a___1Nuwt",viewLargerImg:"viewLargerImg___Ek8jW",footerWrap:"footerWrap___F9F0q",note:"note___1U6xc",schoolHintWrap:"schoolHintWrap___31S22",colorCDCDCD:"colorCDCDCD___1KqvR",color0152d9:"color0152d9___1YXxu"}},NvD2:function(j,Y,D){"use strict";D.d(Y,"a",function(){return v});var L=D("Kwbf");function g(S,b){var d=new Set;return S.forEach(function(l){b.has(l)||d.add(l)}),d}function T(S){var b=S||{},d=b.disabled,l=b.disableCheckbox,n=b.checkable;return!!(d||l)||n===!1}function P(S,b,d,l){for(var n=new Set(S),c=new Set,u=0;u<=d;u+=1){var o=b.get(u)||new Set;o.forEach(function(r){var a=r.key,t=r.node,w=r.children,E=w===void 0?[]:w;n.has(a)&&!l(t)&&E.filter(function(f){return!l(f.node)}).forEach(function(f){n.add(f.key)})})}for(var h=new Set,m=d;m>=0;m-=1){var s=b.get(m)||new Set;s.forEach(function(r){var a=r.parent,t=r.node;if(l(t)||!r.parent||h.has(r.parent.key))return;if(l(r.parent.node)){h.add(a.key);return}var w=!0,E=!1;(a.children||[]).filter(function(f){return!l(f.node)}).forEach(function(f){var k=f.key,O=n.has(k);w&&!O&&(w=!1),!E&&(O||c.has(k))&&(E=!0)}),w&&n.add(a.key),E&&c.add(a.key),h.add(a.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(g(c,n))}}function p(S,b,d,l,n){for(var c=new Set(S),u=new Set(b),o=0;o<=l;o+=1){var h=d.get(o)||new Set;h.forEach(function(a){var t=a.key,w=a.node,E=a.children,f=E===void 0?[]:E;!c.has(t)&&!u.has(t)&&!n(w)&&f.filter(function(k){return!n(k.node)}).forEach(function(k){c.delete(k.key)})})}u=new Set;for(var m=new Set,s=l;s>=0;s-=1){var r=d.get(s)||new Set;r.forEach(function(a){var t=a.parent,w=a.node;if(n(w)||!a.parent||m.has(a.parent.key))return;if(n(a.parent.node)){m.add(t.key);return}var E=!0,f=!1;(t.children||[]).filter(function(k){return!n(k.node)}).forEach(function(k){var O=k.key,C=c.has(O);E&&!C&&(E=!1),!f&&(C||u.has(O))&&(f=!0)}),E||c.delete(t.key),f&&u.add(t.key),m.add(t.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(g(u,c))}}function v(S,b,d,l){var n=[],c;l?c=l:c=T;var u=new Set(S.filter(function(s){var r=!!d[s];return r||n.push(s),r})),o=new Map,h=0;Object.keys(d).forEach(function(s){var r=d[s],a=r.level,t=o.get(a);t||(t=new Set,o.set(a,t)),t.add(r),h=Math.max(h,a)}),Object(L.a)(!n.length,"Tree missing follow keys: ".concat(n.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var m;return b===!0?m=P(u,o,h,c):m=p(u,b.halfCheckedKeys,o,h,c),m}},OLod:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("K3mO"))})(this,function(L){L.lib.Cipher||function(g){var T=L,P=T.lib,p=P.Base,v=P.WordArray,S=P.BufferedBlockAlgorithm,b=T.enc,d=b.Utf8,l=b.Base64,n=T.algo,c=n.EvpKDF,u=P.Cipher=S.extend({cfg:p.extend(),createEncryptor:function(y,_){return this.create(this._ENC_XFORM_MODE,y,_)},createDecryptor:function(y,_){return this.create(this._DEC_XFORM_MODE,y,_)},init:function(y,_,M){this.cfg=this.cfg.extend(M),this._xformMode=y,this._key=_,this.reset()},reset:function(){S.reset.call(this),this._doReset()},process:function(y){return this._append(y),this._process()},finalize:function(y){y&&this._append(y);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function y(_){return typeof _=="string"?x:k}return function(_){return{encrypt:function(M,I,N){return y(I).encrypt(_,M,I,N)},decrypt:function(M,I,N){return y(I).decrypt(_,M,I,N)}}}}()}),o=P.StreamCipher=u.extend({_doFinalize:function(){var y=this._process(!0);return y},blockSize:1}),h=T.mode={},m=P.BlockCipherMode=p.extend({createEncryptor:function(y,_){return this.Encryptor.create(y,_)},createDecryptor:function(y,_){return this.Decryptor.create(y,_)},init:function(y,_){this._cipher=y,this._iv=_}}),s=h.CBC=function(){var y=m.extend();y.Encryptor=y.extend({processBlock:function(M,I){var N=this._cipher,G=N.blockSize;_.call(this,M,I,G),N.encryptBlock(M,I),this._prevBlock=M.slice(I,I+G)}}),y.Decryptor=y.extend({processBlock:function(M,I){var N=this._cipher,G=N.blockSize,H=M.slice(I,I+G);N.decryptBlock(M,I),_.call(this,M,I,G),this._prevBlock=H}});function _(M,I,N){var G,H=this._iv;H?(G=H,this._iv=g):G=this._prevBlock;for(var B=0;B>>2]&255;y.sigBytes-=_}},t=P.BlockCipher=u.extend({cfg:u.cfg.extend({mode:s,padding:a}),reset:function(){var y;u.reset.call(this);var _=this.cfg,M=_.iv,I=_.mode;this._xformMode==this._ENC_XFORM_MODE?y=I.createEncryptor:(y=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==y?this._mode.init(this,M&&M.words):(this._mode=y.call(I,this,M&&M.words),this._mode.__creator=y)},_doProcessBlock:function(y,_){this._mode.processBlock(y,_)},_doFinalize:function(){var y,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),y=this._process(!0)):(y=this._process(!0),_.unpad(y)),y},blockSize:128/32}),w=P.CipherParams=p.extend({init:function(y){this.mixIn(y)},toString:function(y){return(y||this.formatter).stringify(this)}}),E=T.format={},f=E.OpenSSL={stringify:function(y){var _,M=y.ciphertext,I=y.salt;return I?_=v.create([1398893684,1701076831]).concat(I).concat(M):_=M,_.toString(l)},parse:function(y){var _,M=l.parse(y),I=M.words;return I[0]==1398893684&&I[1]==1701076831&&(_=v.create(I.slice(2,4)),I.splice(0,4),M.sigBytes-=16),w.create({ciphertext:M,salt:_})}},k=P.SerializableCipher=p.extend({cfg:p.extend({format:f}),encrypt:function(y,_,M,I){I=this.cfg.extend(I);var N=y.createEncryptor(M,I),G=N.finalize(_),H=N.cfg;return w.create({ciphertext:G,key:M,iv:H.iv,algorithm:y,mode:H.mode,padding:H.padding,blockSize:y.blockSize,formatter:I.format})},decrypt:function(y,_,M,I){I=this.cfg.extend(I),_=this._parse(_,I.format);var N=y.createDecryptor(M,I).finalize(_.ciphertext);return N},_parse:function(y,_){return typeof y=="string"?_.parse(y,this):y}}),O=T.kdf={},C=O.OpenSSL={execute:function(y,_,M,I){I||(I=v.random(64/8));var N=c.create({keySize:_+M}).compute(y,I),G=v.create(N.words.slice(_),M*4);return N.sigBytes=_*4,w.create({key:N,iv:G,salt:I})}},x=P.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:C}),encrypt:function(y,_,M,I){I=this.cfg.extend(I);var N=I.kdf.execute(M,y.keySize,y.ivSize);I.iv=N.iv;var G=k.encrypt.call(this,y,_,N.key,I);return G.mixIn(N),G},decrypt:function(y,_,M,I){I=this.cfg.extend(I),_=this._parse(_,I.format);var N=I.kdf.execute(M,y.keySize,y.ivSize,_.salt);I.iv=N.iv;var G=k.decrypt.call(this,y,_,N.key,I);return G}})}()})},OZM5:function(j,Y,D){"use strict";D.d(Y,"b",function(){return l}),D.d(Y,"a",function(){return n}),D.d(Y,"k",function(){return c}),D.d(Y,"h",function(){return u}),D.d(Y,"i",function(){return o}),D.d(Y,"g",function(){return h}),D.d(Y,"c",function(){return m}),D.d(Y,"d",function(){return s}),D.d(Y,"j",function(){return t}),D.d(Y,"e",function(){return w}),D.d(Y,"f",function(){return E});var L=D("KQm4"),g=D("U8pU"),T=D("Ff2n"),P=D("q1tI"),p=D.n(P),v=D("Kwbf"),S=D("WaYH"),b=.25,d=2;function l(f,k){var O=f.slice(),C=O.indexOf(k);return C>=0&&O.splice(C,1),O}function n(f,k){var O=f.slice();return O.indexOf(k)===-1&&O.push(k),O}function c(f){return f.split("-")}function u(f,k){return"".concat(f,"-").concat(k)}function o(f){return f&&f.type&&f.type.isTreeNode}function h(f,k){var O=[f],C=k[f];function x(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];y.forEach(function(_){var M=_.key,I=_.children;O.push(M),x(I)})}return x(C.children),O}function m(f,k){var O=f.clientY,C=k.selectHandle.getBoundingClientRect(),x=C.top,y=C.bottom,_=C.height,M=Math.max(_*b,d);return O<=x+M?-1:O>=y-M?1:0}function s(f,k){if(!f)return;var O=k.multiple;return O?f.slice():f.length?[f[0]]:f}var r=function(k){return k};function a(f,k){if(!f)return[];var O=k||{},C=O.processProps,x=C===void 0?r:C,y=Array.isArray(f)?f:[f];return y.map(function(_){var M=_.children,I=Object(T.a)(_,["children"]),N=a(M,k);return p.a.createElement(S.a,Object.assign({},x(I)),N)})}function t(f){if(!f)return null;var k;if(Array.isArray(f))k={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(g.a)(f)==="object")k={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(v.a)(!1,"`checkedKeys` is not an array or an object"),null;return k}function w(f,k){var O=new Set;function C(x){if(O.has(x))return;var y=k[x];if(!y)return;O.add(x);var _=y.parent,M=y.node;if(M.disabled)return;_&&C(_.key)}return(f||[]).forEach(function(x){C(x)}),Object(L.a)(O)}function E(f){var k={};return Object.keys(f).forEach(function(O){(O.startsWith("data-")||O.startsWith("aria-"))&&(k[O]=f[O])}),k}},Ot1p:function(j,Y,D){"use strict";var L=D("2qtc"),g=D("kLXV"),T=D("rAM+"),P=D("miYZ"),p=D("tsqr"),v=D("9og8"),S=D("tJVT"),b=D("jrin"),d=D("WmNS"),l=D.n(d),n=D("q1tI"),c=D.n(n),u=D("VrN/"),o=D.n(u),h=D("bdgK"),m=D("p77/"),s=D("Bd2K"),r=D("ELLl"),a=D("19Vz"),t=D("lZu9"),w=D("+NIl"),E=D("kSUc"),f=D("9Bee"),k=function($e){var bt=$e.value,gt=bt===void 0?"":bt,Ut=$e.className,Nt=$e.showTextOnly,hr=$e.showLines,mr=$e.style,St=mr===void 0?{}:mr,Yr=Object(n.useMemo)(function(){return""},[gt]);return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{dangerouslySetInnerHTML:{__html:Yr}}))},O=D("0Owb"),C=D("dejd"),x=D("C+DQ"),y=D("1vsH"),_=D("m3rI"),M=[{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 I($e){var bt=$e.onActionCallback,gt=$e.title,Ut=$e.icon,Nt=$e.actionName,hr=$e.className,mr=hr===void 0?"":hr,St=$e.children;function Yr(){bt(Nt)}return c.a.createElement("a",{title:gt,className:mr,onClick:Yr},c.a.createElement("i",{className:"md-iconfont ".concat(Ut)}),St)}var N=function($e){var bt=$e.watch,gt=$e.showNullButton,Ut=$e.onActionCallback,Nt=$e.fullScreen,hr=$e.insertTemp,mr=$e.hidetoolBar,St=$e.uuid,Yr=$e.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(y.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(y.D)("_educoder_session"),"&key=").concat(St,"&api=").concat(encodeURIComponent(_.a.PROXY_SERVER)));var Jr=[].concat(M,[{title:"".concat(bt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(bt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return c.a.createElement("ul",{className:"markdown-toolbar-container"},!mr&&Jr.map(function(Hr,un){return c.a.createElement("li",{key:un},Hr.actionName?c.a.createElement(I,Object(O.a)({},Hr,{onActionCallback:Ut})):c.a.createElement("span",{className:"v-line"}))}),gt?c.a.createElement("li",null,c.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ut},c.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,hr&&c.a.createElement("li",null,c.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(hr),onActionCallback:Ut},c.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),c.a.createElement("li",{className:"btn-full-screen"},c.a.createElement(I,{icon:"".concat(Nt?"icon-shrink":"icon-enlarge"),title:Nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ut})))},G=D("M8RZ"),H=D("+L6B"),B=D("2/Rp"),K=D("y8nQ"),U=D("Vl3Y"),W=D("5NDa"),X=D("5rEg"),ne={labelCol:{span:4},wrapperCol:{span:20}},fe=function($e){var bt=$e.callback,gt=$e.onCancel;function Ut(Nt){bt(Nt)}return c.a.createElement(U.a,Object(O.a)({},ne,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ut}),c.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},c.a.createElement(X.a,null)),c.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},c.a.createElement(X.a,null)),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(B.a,{type:"ghost",onClick:gt},"\u53D6\u6D88")))},me=D("7ahc"),Ae=D("k1fw"),De=D("HmJG"),ye=D("BjJ7"),Oe=U.a.useForm,xe={width:280,marginRight:10},ue={labelCol:{span:5},wrapperCol:{span:19}},le=function($e){var bt=$e.callback,gt=$e.onCancel,Ut=Oe(),Nt=Object(S.a)(Ut,1),hr=Nt[0],mr=Object(n.useRef)();function St(Hr){bt(Object(Ae.a)(Object(Ae.a)({},Hr),{},{name:mr.current}))}function Yr(Hr,un){hr.setFieldsValue({src:"/api/attachments/".concat(Hr.id,"?type=").concat(Hr.content_type),type:un.type})}function Jr(Hr){var un=Hr.target.files[0];mr.current=un.name,pe(un,Yr)}return c.a.createElement(U.a,Object(O.a)({form:hr},ue,{className:"upload-image-panel",onFinish:St}),c.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},c.a.createElement("div",{className:"flex-container"},c.a.createElement(U.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},c.a.createElement(X.a,{style:xe})),c.a.createElement(re,{onFileChange:Jr}))),c.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},c.a.createElement(X.a,{style:{width:264}})),c.a.createElement(U.a.Item,{style:{textAlign:"right"}},c.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(B.a,{type:"ghost",onClick:gt},"\u53D6\u6D88")))};function re($e){var bt=$e.onFileChange;return c.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",c.a.createElement("input",{type:"file",onChange:bt}))}function pe($e,bt){if(!$e)throw new String("\u6CA1\u6709\u6587\u4EF6");var gt=new FormData;gt.append("editormd-image-file",$e),gt.append("file_param_name","editormd-image-file"),gt.append("byxhr","true");var Ut=new window.XMLHttpRequest;Ut.withCredentials=!0,Ut.addEventListener("load",function(Nt){bt(JSON.parse(Nt.target.responseText),$e)},!1),Ut.addEventListener("error",function(Nt){console.error(Nt)},!1),Ut.open("POST","".concat(ye.a,"/api/attachments.json")),Ut.send(gt)}var ee=D("giR+"),te=D("fyUT"),ce=D("7Kak"),q=D("9yH6"),Q=q.a.Group,V={margin:"0 8px"},Z=function($e){var bt=$e.callback,gt=$e.onCancel;function Ut(Nt){bt(Nt)}return c.a.createElement(U.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ut},c.a.createElement("div",{className:"flex-container"},c.a.createElement("span",{style:V},"\u5355\u5143\u683C\u6570\uFF1A"),c.a.createElement("span",{style:V},"\u884C\u6570"),c.a.createElement(U.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},c.a.createElement(te.a,null)),c.a.createElement("span",{style:V},"\u5217\u6570"),c.a.createElement(U.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},c.a.createElement(te.a,null))),c.a.createElement("div",{className:"flex-container",style:{marginTop:12}},c.a.createElement("span",{style:V},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),c.a.createElement(U.a.Item,{name:"align"},c.a.createElement(Q,null,c.a.createElement(q.a,{value:"default"},c.a.createElement("i",{className:"fa fa-align-justify"})),c.a.createElement(q.a,{value:"left"},c.a.createElement("i",{className:"fa fa-align-left"})),c.a.createElement(q.a,{value:"center"},c.a.createElement("i",{className:"fa fa-align-center"})),c.a.createElement(q.a,{value:"right"},c.a.createElement("i",{className:"fa fa-align-right"}))))),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(B.a,{type:"ghost",onClick:gt},"\u53D6\u6D88")))},be=D("ErOA"),ge=D("7Cbv"),Te="link",Je="upload-image",rt="code-block",nt="add-table",at="------------",ct={default:at,left:":".concat(at),center:":".concat(at,":"),right:"".concat(at,":")},ht=D("9VGf"),He,Re;function tt(){}var ft=0,Qe=1e4,lt="\u2581",Ue=`
**\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 Le($e){return/^\d+$/.test($e)?"".concat($e,"px"):$e}var Ie=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ce=Ie?"Cmd":"Ctrl",Se=["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"],ke=(He={},Object(b.a)(He,Ce+"-B","bold"),Object(b.a)(He,Ce+"-I","italic"),He),Ne=(Re={},Object(b.a)(Re,Te,"\u6DFB\u52A0\u94FE\u63A5"),Object(b.a)(Re,rt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(b.a)(Re,Je,"\u6DFB\u52A0\u6587\u4EF6"),Object(b.a)(Re,nt,"\u6DFB\u52A0\u8868\u683C"),Re),et=Y.a=function($e){var bt=$e.defaultValue,gt=bt===void 0?"":bt,Ut=$e.onChange,Nt=$e.width,hr=Nt===void 0?"100%":Nt,mr=$e.height,St=mr===void 0?400:mr,Yr=$e.miniToolbar,Jr=Yr===void 0?!1:Yr,Hr=$e.isFocus,un=Hr===void 0?!1:Hr,Ar=$e.watch,vn=$e.insertTemp,mn=$e.mode,Kt=mn===void 0?"markdown":mn,or=$e.id,Xt=or===void 0?"markdown-editor-id":or,gr=$e.showResizeBar,Xr=gr===void 0?!1:gr,kn=$e.noStorage,Ln=kn===void 0?!1:kn,tn=$e.showNullButton,ur=tn===void 0?!1:tn,Xn=$e.hidetoolBar,hi=Xn===void 0?!1:Xn,$n=$e.fullScreen,Zr=$n===void 0?!1:$n,Bn=$e.onBlur,si=$e.onCMBeforeChange,li=$e.onFullScreen,wt=$e.className,$t=wt===void 0?"":wt,en=$e.disablePaste,Cn=en===void 0?!1:en,_n=$e.placeholder,On=_n===void 0?"":_n,ae=$e.values,z=ae===void 0?"":ae,$=Object(n.useState)(null),ie=Object(S.a)($,2),de=ie[0],se=ie[1],Ke=Object(n.useState)(gt),Rt=Object(S.a)(Ke,2),Vt=Rt[0],Er=Rt[1],Lt=Object(n.useState)(Ar),zr=Object(S.a)(Lt,2),Br=zr[0],En=zr[1],ui=Object(n.useState)(Zr),Ei=Object(S.a)(ui,2),In=Ei[0],Li=Ei[1],qi=Object(n.useState)(""),ni=Object(S.a)(qi,2),Ti=ni[0],xi=ni[1],Fi=Object(n.useState)(0),Ci=Object(S.a)(Fi,2),Gi=Ci[0],Mi=Ci[1],oa=Object(n.useState)(St),sa=Object(S.a)(oa,2),Ii=sa[0],qn=sa[1],Vi=Object(n.useState)(!1),ta=Object(S.a)(Vi,2),Tt=ta[0],it=ta[1],mt=Object(n.useRef)(Object(ge.a)()),Ct=Object(n.useRef)(!1),It=Object(n.useRef)(),Pt=Object(n.useRef)(),Ht=Object(n.useRef)(),Wt=Object(n.useRef)(),dt=Object(n.useRef)(),At=function(){var Et=Object(v.a)(l.a.mark(function _t(){var xt,Jt;return l.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(be.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:mt.current}});case 2:Jt=dr.sent,Jt!=null&&(xt=Jt.attachments)!==null&&xt!==void 0&&xt.length&&(console.log("cm:",de,Pt),Jt.attachments.map(function(fr){fr.content_type.indexOf("image")>-1?de.replaceSelection(".concat(fr.content_type,")")):fr.content_type.indexOf("video")>-1?de.replaceSelection('')):fr.content_type.indexOf("pdf")>-1?de.replaceSelection('').concat(fr.name,"")):de.replaceSelection("[".concat(fr.name,"](").concat(_.a.API_SERVER,"/api/attachments/").concat(fr.id,"?type=").concat(fr.content_type,")"))}));case 4:case"end":return dr.stop()}},_t)}));return function(){return Et.apply(this,arguments)}}();Object(n.useEffect)(function(){Er(z),de==null||de.setValue(z)},[z]),Object(n.useEffect)(function(){li==null||li(In)},[In]),Object(n.useEffect)(function(){if(Pt.current){var Et=o.a.fromTextArea(Pt.current,{mode:Kt,lineNumbers:!Jr,lineWrapping:!0,value:gt,autoCloseTags:!0,autoCloseBrackets:!0});un&&Et.focus();function _t(xt,Jt){if(Cn){Jt.preventDefault();return}var pr=Jt.clipboardData;if(pr){var dr=pr.types.toString(),fr=pr.items;if(dr==="Files"||pr.types.indexOf("Files")>-1){if(Jt.preventDefault(),Kt=="stex")return;try{var Dr,an=fr[1];((Dr=fr[0])===null||Dr===void 0?void 0:Dr.kind)==="file"&&(an=fr[0]);var qe=an.getAsFile(),sr=qe.name.split(".").pop();pe(qe,function(Nr){if(Nr.id){var rn,xr,br;(qe==null||((rn=qe.type)===null||rn===void 0)?void 0:rn.indexOf("image"))>-1?Et.replaceSelection(".concat(Nr.content_type,")")):(qe==null||((xr=qe.type)===null||xr===void 0)?void 0:xr.indexOf("video"))>-1?Et.replaceSelection('')):(qe==null||((br=qe.type)===null||br===void 0)?void 0:br.indexOf("pdf"))>-1?Et.replaceSelection('').concat(qe.name,"")):Se.includes(sr)?Et.replaceSelection('').concat(qe.name,"")):Et.replaceSelection("[".concat(qe.name,"](").concat(_.a.API_SERVER,"/api/attachments/").concat(Nr.id,"?type=").concat(Nr.content_type,")"))}else(Nr==null?void 0:Nr.status)===401&&(document.location.href="/user/login")})}catch(Nr){p.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Et.on("paste",_t),Et.on("dragleave",function(xt,Jt){Ht.current.classList.remove("mouse-hover-md")}),Et.on("dragover",function(xt,Jt){Ht.current.classList.add("mouse-hover-md")}),Et.on("drop",function(xt,Jt){Ht.current.classList.add("mouse-hover-md");var pr;if(pr=Jt.dataTransfer.files,pr.length>0){Jt.preventDefault(),Jt.stopPropagation();for(var dr=function(an){var qe=pr[an],sr=qe.name.split(".").pop();pe(qe,function(Nr){if(Nr.id){var rn,xr,br;(qe==null||((rn=qe.type)===null||rn===void 0)?void 0:rn.indexOf("image"))>-1?Et.replaceSelection(".concat(Nr.content_type,")")):(qe==null||((xr=qe.type)===null||xr===void 0)?void 0:xr.indexOf("video"))>-1?Et.replaceSelection('')):(qe==null||((br=qe.type)===null||br===void 0)?void 0:br.indexOf("pdf"))>-1?Et.replaceSelection('').concat(qe.name,"")):Se.includes(sr)?Et.replaceSelection('').concat(qe.name,"")):Et.replaceSelection("[".concat(qe.name,"](").concat(_.a.API_SERVER,"/api/attachments/").concat(Nr.id,"?type=").concat(Nr.content_type,")"))}else(Nr==null?void 0:Nr.status)===401&&(document.location.href="/user/login")})},fr=0;fr0||fr.target.offsetWidth>0)&&(Dt(),de.setSize("100%","100%"),de.refresh())}}catch(Dr){pr.e(Dr)}finally{pr.f()}});return xt.observe(Pt.current.parentElement),xt}if(de){var _t=Et();return function(){_t.unobserve(Pt.current.parentElement)}}},[de,Dt]),Object(n.useEffect)(function(){if(de){for(var Et=[],_t=function(){var fr=Jt[xt];pr=Object(S.a)(fr,2);var Dr=pr[0],an=pr[1],qe=Object(b.a)({},Dr,function(){yr(an)});Et.push(qe),de.addKeyMap(qe)},xt=0,Jt=Object.entries(ke);xt0){var Et=new Date().getTime(),_t=window.sessionStorage.getItem(Xt);Et>=Gi+Qe&&(!_t||_t!==Vt)&&(window.sessionStorage.setItem(Xt,Vt),it(!0))}},Qe),Object(n.useEffect)(function(){En(Ar)},[de,Ar]),Object(n.useEffect)(function(){de&&(un&&de.focus())},[de,un]),Object(n.useEffect)(function(){if(Br&&de){var Et=de.getScrollerElement();function _t(xt){var Jt=xt.target;if(dt.current){var pr=Jt.scrollTop/Jt.scrollHeight;dt.current.scrollTop=dt.current.scrollHeight*pr}}return Et.addEventListener("scroll",_t),function(){Et.removeEventListener("scroll",_t)}}},[de,Br]),Object(n.useEffect)(function(){if(de&&si){function Et(_t,xt){si(_t,xt)}return de.on("beforeChange",Et),function(){de.off("beforeChange",Et)}}},[de,si]),Object(n.useEffect)(function(){if(de&&Bn){function Et(){Bn(de.getValue())}return de.on("blur",Et),function(){de.off("blur",Et)}}},[de,Bn]),Object(n.useEffect)(function(){if(de){function Et(_t){var xt=_t.getValue();Er(xt),Mi(new Date().getTime()),_t.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ut&&Ut(xt)}return de.on("change",Et),function(){de.off("change",Et)}}},[de,Ut]),Object(n.useEffect)(function(){de&&(gt==null?(de.setValue(""),Er("")):gt!==de.getValue()&&(de.setValue(gt),Er(gt),de.setCursor(de.lineCount(),0)))},[de,gt]);var yr=Object(n.useCallback)(function(Et){var _t=de.getCursor(),xt=de.getSelection(),Jt=xt.split(`
`);switch(Et){case"bold":return de.replaceSelection("**"+xt+"**"),xt===""&&de.setCursor(_t.line,_t.ch+2),de.focus();case"italic":return de.replaceSelection("*"+xt+"*"),xt===""&&de.setCursor(_t.line,_t.ch+1),de.focus();case"code":return de.replaceSelection("`"+xt+"`"),xt===""&&de.setCursor(_t.line,_t.ch+1),de.focus();case"inline-latex":return de.replaceSelection("`$$"+xt+"$$`"),xt===""&&de.setCursor(_t.line,_t.ch+3),de.focus();case"latex":return de.replaceSelection("```latex\n"+xt+"\n```"),de.setCursor(_t.line+1,xt.length+1),de.focus();case"line-break":return de.replaceSelection(`
`),de.focus();case"list-ul":return xt===""?de.replaceSelection("- "+xt):de.replaceSelection(Jt.map(function(pr){return pr===""?"":"- ".concat(pr)}).join(`
`)),de.focus();case"list-ol":return xt===""?de.replaceSelection("1. "+xt):de.replaceSelection(Jt.map(function(pr,dr){return pr===""?"":"".concat(dr+1,". ").concat(pr)}).join(`
`)),de.focus();case"add-null-ch":return xt===""&&de.setCursor(_t.line,_t.ch+1),de.replaceSelection(lt),de.focus();case"inster-template-1":return xt===""&&de.setCursor(_t.line,_t.ch),de.replaceSelection(Ue),de.focus();case"eraser":return de.setValue(""),de.focus();case"trigger-watch":return En(!Br),de.focus();case"trigger-full-screen":return Li(!In),de.focus();case Te:xi(Te);return;case rt:xi(rt);return;case Je:xi(Je);return;case nt:xi(nt);return;default:throw new Error}},[de,Br,In]),tr=Object(n.useCallback)(function(Et){xi("");switch(Ti){case Te:var _t=Et.title,xt=Et.link;return de.replaceSelection("[".concat(_t,"](").concat(xt,")")),de.focus();case rt:var Jt=Et.language,pr=Et.content;return de.replaceSelection(["```"+Jt,pr,"```"].join(`
`)),de.focus();case Je:var dr=Et.src,fr=Et.alt,Dr=Et.name;return dr.indexOf("type=image")>-1?de.replaceSelection(".concat(dr,' "').concat(fr||"",'" )')):dr.indexOf("type=application/pdf")>-1?de.replaceSelection('').concat(Dr,"")):de.replaceSelection('').concat(Dr,"")),de.focus();case nt:for(var an=Et.row,qe=Et.col,sr=Et.align,Nr=`
`,rn=0;rn300&&(Dr=300);var an=St+Dr+"px";qn(an)}}return Et.addEventListener("mousedown",Jt),document.addEventListener("mousemove",dr),document.addEventListener("mouseup",pr),function(){Et.removeEventListener("mousedown",Jt),document.removeEventListener("mousemove",dr),document.removeEventListener("mouseup",pr)}}},[de,Wt]),Object(n.useEffect)(function(){qn(St)},[St]);var nr=Le(hr),cr=Le(Ii),st={width:nr,height:cr},Lr=Object(n.useMemo)(function(){if(Gi){var Et=new Date(Gi),_t=Et.getHours(),xt=Et.getMinutes(),Jt=Et.getSeconds();return _t=_t<10?"0"+_t:_t,xt=xt<10?"0"+xt:xt,Jt=Jt<10?"0"+Jt:Jt,"".concat(_t,":").concat(xt,":").concat(Jt)}return 0},[Gi]);function Fr(){window.sessionStorage.removeItem(Xt),it(!1),Mi(0)}function Cr(){it(!1),Mi(0),de.setValue(window.sessionStorage.getItem(Xt))}function rr(Et,_t){var xt=de.getValue();xt=xt.replace(Et,_t),Er(xt),de==null||de.setValue(xt)}return c.a.createElement(n.Fragment,null,c.a.createElement("div",{className:"markdown-editor-wrapper",ref:Ht},c.a.createElement("div",{className:"markdown-editor-container ".concat($t," ").concat(Br?"on-preview":""," ").concat(Jr?"mini":""," ").concat(In?"full-screen":""),style:st},c.a.createElement(N,{insertTemp:vn,watch:Br,fullScreen:In,showNullButton:ur,onActionCallback:yr,hidetoolBar:hi,uuid:mt.current,setOpenPhones:function(){Ct.current=!0}}),c.a.createElement("div",{className:"markdown-editor-body"},c.a.createElement("div",{className:"codemirror-container"},c.a.createElement("textarea",{ref:Pt,placeholder:On})),Br?c.a.createElement("div",{ref:dt,className:"preview-container"},Kt==="stex"&&c.a.createElement(k,{value:Vt}),Kt!=="stex"&&c.a.createElement(f.a,{edit:!0,value:Vt,replaces:rr})):null))),Xr?c.a.createElement("a",{ref:Wt,className:"editor-resize"}):null,c.a.createElement(G.a,null,Ne[Ti]?c.a.createElement(g.a,{centered:!0,title:Ne[Ti],visible:!0,onCancel:Gt,footer:null},qt):null))}},PVpz:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("ETIr"),D("cv67"),D("K3mO"),D("OLod"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.StreamCipher,p=g.algo,v=[],S=[],b=[],d=p.RabbitLegacy=P.extend({_doReset:function(){var n=this._key.words,c=this.cfg.iv,u=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],o=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var h=0;h<4;h++)l.call(this);for(var h=0;h<8;h++)o[h]^=u[h+4&7];if(c){var m=c.words,s=m[0],r=m[1],a=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,t=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,w=a>>>16|t&4294901760,E=t<<16|a&65535;o[0]^=a,o[1]^=w,o[2]^=t,o[3]^=E,o[4]^=a,o[5]^=w,o[6]^=t,o[7]^=E;for(var h=0;h<4;h++)l.call(this)}},_doProcessBlock:function(n,c){var u=this._X;l.call(this),v[0]=u[0]^u[5]>>>16^u[3]<<16,v[1]=u[2]^u[7]>>>16^u[5]<<16,v[2]=u[4]^u[1]>>>16^u[7]<<16,v[3]=u[6]^u[3]>>>16^u[1]<<16;for(var o=0;o<4;o++)v[o]=(v[o]<<8|v[o]>>>24)&16711935|(v[o]<<24|v[o]>>>8)&4278255360,n[c+o]^=v[o]},blockSize:128/32,ivSize:64/32});function l(){for(var n=this._X,c=this._C,u=0;u<8;u++)S[u]=c[u];c[0]=c[0]+1295307597+this._b|0,c[1]=c[1]+3545052371+(c[0]>>>0>>0?1:0)|0,c[2]=c[2]+886263092+(c[1]>>>0>>0?1:0)|0,c[3]=c[3]+1295307597+(c[2]>>>0>>0?1:0)|0,c[4]=c[4]+3545052371+(c[3]>>>0>>0?1:0)|0,c[5]=c[5]+886263092+(c[4]>>>0>>0?1:0)|0,c[6]=c[6]+1295307597+(c[5]>>>0>>0?1:0)|0,c[7]=c[7]+3545052371+(c[6]>>>0>>0?1:0)|0,this._b=c[7]>>>0>>0?1:0;for(var u=0;u<8;u++){var o=n[u]+c[u],h=o&65535,m=o>>>16,s=((h*h>>>17)+h*m>>>15)+m*m,r=((o&4294901760)*o|0)+((o&65535)*o|0);b[u]=s^r}n[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,n[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,n[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,n[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,n[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,n[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,n[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,n[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}g.RabbitLegacy=P._createHelper(d)}(),L.RabbitLegacy})},QDVR:function(j,Y,D){"use strict";D.d(Y,"e",function(){return g}),D.d(Y,"d",function(){return T}),D.d(Y,"c",function(){return S}),D.d(Y,"b",function(){return b}),D.d(Y,"a",function(){return l});var L=function(){var n=function(c,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,h){o.__proto__=h}||function(o,h){for(var m in h)h.hasOwnProperty(m)&&(o[m]=h[m])},n(c,u)};return function(c,u){n(c,u);function o(){this.constructor=c}c.prototype=u===null?Object.create(u):(o.prototype=u.prototype,new o)}}();function g(n){var c=[];return n.forEach(function(u){return c.push(u)}),c}function T(n){var c=[];return n.forEach(function(u,o){return c.push(o)}),c}var P=function(){function n(){this._value="",this._pos=0}return n.prototype.reset=function(c){return this._value=c,this._pos=0,this},n.prototype.next=function(){return this._pos+=1,this},n.prototype.hasNext=function(){return this._pos0)h.left||(h.left=new v,h.left.segment=o.value()),h=h.left;else if(m<0)h.right||(h.right=new v,h.right.segment=o.value()),h=h.right;else if(o.hasNext())o.next(),h.mid||(h.mid=new v,h.mid.segment=o.value()),h=h.mid;else break}var s=h.value;return h.value=u,h.key=c,s},n.prototype.get=function(c){for(var u=this._iter.reset(c),o=this._root;o;){var h=u.cmp(o.segment);if(h>0)o=o.left;else if(h<0)o=o.right;else if(u.hasNext())u.next(),o=o.mid;else break}return o?o.value:void 0},n.prototype.findSubstr=function(c){for(var u=this._iter.reset(c),o=this._root,h=void 0;o;){var m=u.cmp(o.segment);if(m>0)o=o.left;else if(m<0)o=o.right;else if(u.hasNext())u.next(),h=o.value||h,o=o.mid;else break}return o&&o.value||h},n.prototype.forEach=function(c){this._forEach(this._root,c)},n.prototype._forEach=function(c,u){c&&(this._forEach(c.left,u),c.value&&u(c.value,c.key),this._forEach(c.mid,u),this._forEach(c.right,u))},n}(),b=function(){function n(){this.map=new Map,this.ignoreCase=!1}return n.prototype.set=function(c,u){this.map.set(this.toKey(c),u)},n.prototype.get=function(c){return this.map.get(this.toKey(c))},n.prototype.toKey=function(c){var u=c.toString();return this.ignoreCase&&(u=u.toLowerCase()),u},n}(),d=function(){function n(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return n.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),n.prototype.get=function(c,u){u===void 0&&(u=0);var o=this._map.get(c);return o?(u!==0&&this.touch(o,u),o.value):void 0},n.prototype.set=function(c,u,o){o===void 0&&(o=0);var h=this._map.get(c);if(h)h.value=u,o!==0&&this.touch(h,o);else{h={key:c,value:u,next:void 0,previous:void 0};switch(o){case 0:this.addItemLast(h);break;case 1:this.addItemFirst(h);break;case 2:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(c,h),this._size++}},n.prototype.delete=function(c){return!!this.remove(c)},n.prototype.remove=function(c){var u=this._map.get(c);return u?(this._map.delete(c),this.removeItem(u),this._size--,u.value):void 0},n.prototype.forEach=function(c,u){for(var o=this._head;o;)u?c.bind(u)(o.value,o.key,this):c(o.value,o.key,this),o=o.next},n.prototype.trimOld=function(c){if(c>=this.size)return;if(c===0){this.clear();return}for(var u=this._head,o=this.size;u&&o>c;)this._map.delete(u.key),u=u.next,o--;this._head=u,this._size=o,u&&(u.previous=void 0)},n.prototype.addItemFirst=function(c){if(!this._head&&!this._tail)this._tail=c;else if(this._head)c.next=this._head,this._head.previous=c;else throw new Error("Invalid list");this._head=c},n.prototype.addItemLast=function(c){if(!this._head&&!this._tail)this._head=c;else if(this._tail)c.previous=this._tail,this._tail.next=c;else throw new Error("Invalid list");this._tail=c},n.prototype.removeItem=function(c){if(c===this._head&&c===this._tail)this._head=void 0,this._tail=void 0;else if(c===this._head){if(!c.next)throw new Error("Invalid list");c.next.previous=void 0,this._head=c.next}else if(c===this._tail){if(!c.previous)throw new Error("Invalid list");c.previous.next=void 0,this._tail=c.previous}else{var u=c.next,o=c.previous;if(!u||!o)throw new Error("Invalid list");u.previous=o,o.next=u}c.next=void 0,c.previous=void 0},n.prototype.touch=function(c,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(u!==1&&u!==2)return;if(u===1){if(c===this._head)return;var o=c.next,h=c.previous;c===this._tail?(h.next=void 0,this._tail=h):(o.previous=h,h.next=o),c.previous=void 0,c.next=this._head,this._head.previous=c,this._head=c}else if(u===2){if(c===this._tail)return;var o=c.next,h=c.previous;c===this._head?(o.previous=void 0,this._head=o):(o.previous=h,h.next=o),c.next=void 0,c.previous=this._tail,this._tail.next=c,this._tail=c}},n.prototype.toJSON=function(){var c=[];return this.forEach(function(u,o){c.push([o,u])}),c},n}(),l=function(n){L(c,n);function c(u,o){o===void 0&&(o=1);var h=n.call(this)||this;return h._limit=u,h._ratio=Math.min(Math.max(0,o),1),h}return c.prototype.get=function(u){return n.prototype.get.call(this,u,2)},c.prototype.peek=function(u){return n.prototype.get.call(this,u,0)},c.prototype.set=function(u,o){n.prototype.set.call(this,u,o,2),this.checkTrim()},c.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},c}(d)},RxwV:function(j,Y,D){"use strict";var L=D("q1tI"),g=D("uciX"),T=D("2W6z"),P=D.n(T),p=D("4IlW"),v=D("uK0f"),S=D.n(v);function b(Oe,xe){if(Oe===xe)return!0;if(!Oe||!xe)return!1;var ue=Oe.length;if(xe.length!==ue)return!1;for(var le=0;le0;(rt||pe.isLeaf===!1)&&(Te+=" ".concat(ce,"-menu-item-expand"),pe.loading||(Je=L.createElement("span",{className:"".concat(ce,"-menu-item-expand-icon")},Q))),q==="hover"&&(rt||pe.isLeaf===!1)&&(ge={onMouseEnter:this.delayOnSelect.bind(this,Z),onMouseLeave:this.delayOnSelect.bind(this),onClick:Z}),this.isActiveOption(pe,ee)&&(Te+=" ".concat(ce,"-menu-item-active"),ge.ref=this.saveMenuItem(ee)),pe.disabled&&(Te+=" ".concat(ce,"-menu-item-disabled"));var nt=null;pe.loading&&(Te+=" ".concat(ce,"-menu-item-loading"),nt=V||null);var at="";return"title"in pe?at=pe.title:typeof pe[this.getFieldName("label")]=="string"&&(at=pe[this.getFieldName("label")]),L.createElement("li",Object.assign({key:pe[this.getFieldName("value")],className:Te,title:at},ge,{role:"menuitem",onMouseDown:function(ht){return ht.preventDefault()}}),pe[this.getFieldName("label")],Je,nt)}},{key:"getActiveOptions",value:function(pe){var ee=this,te=this.props.options,ce=pe||this.props.activeValue;return S()(te,function(q,Q){return q[ee.getFieldName("value")]===ce[Q]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var pe=this,ee=this.props.options,te=this.getActiveOptions().map(function(ce){return ce[pe.getFieldName("children")]}).filter(function(ce){return!!ce});return te.unshift(ee),te}},{key:"delayOnSelect",value:function(pe){for(var ee=this,te=arguments.length,ce=new Array(te>1?te-1:0),q=1;q=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Oe,le))continue;ue[le]=Oe[le]}}return ue}function C(Oe,xe){if(Oe==null)return{};var ue={},le=Object.keys(Oe),re,pe;for(pe=0;pe=0)continue;ue[re]=Oe[re]}return ue}function x(Oe){return I(Oe)||M(Oe)||_(Oe)||y()}function y(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(Oe,xe){if(!Oe)return;if(typeof Oe=="string")return N(Oe,xe);var ue=Object.prototype.toString.call(Oe).slice(8,-1);if(ue==="Object"&&Oe.constructor&&(ue=Oe.constructor.name),ue==="Map"||ue==="Set")return Array.from(Oe);if(ue==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue))return N(Oe,xe)}function M(Oe){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Oe))return Array.from(Oe)}function I(Oe){if(Array.isArray(Oe))return N(Oe)}function N(Oe,xe){(xe==null||xe>Oe.length)&&(xe=Oe.length);for(var ue=0,le=new Array(xe);ue=V.length?0:be):(be-=1,be=be<0?V.length-1:be):be=0,q[Q]=V[be][pe.getFieldName("value")]}else if(te.keyCode===p.a.LEFT||te.keyCode===p.a.BACKSPACE)te.preventDefault(),q.splice(q.length-1,1);else if(te.keyCode===p.a.RIGHT)te.preventDefault(),V[Z]&&V[Z][pe.getFieldName("children")]&&q.push(V[Z][pe.getFieldName("children")][0][pe.getFieldName("value")]);else if(te.keyCode===p.a.ESC||te.keyCode===p.a.TAB){pe.setPopupVisible(!1);return}(!q||q.length===0)&&pe.setPopupVisible(!1);var ge=pe.getActiveOptions(q),Te=ge[ge.length-1];pe.handleMenuSelect(Te,ge.length-1,te),pe.props.onKeyDown&&pe.props.onKeyDown(te)},pe.saveTrigger=function(te){pe.trigger=te};var ee=[];return"value"in re?ee=re.value||[]:"defaultValue"in re&&(ee=re.defaultValue||[]),P()(!("filedNames"in re),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),pe.state={popupVisible:re.popupVisible,activeValue:ee,value:ee,prevProps:re},pe.defaultFieldNames={label:"label",value:"value",children:"children"},pe}return B(le,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(pe){var ee=this.defaultFieldNames,te=this.props,ce=te.fieldNames,q=te.filedNames;return"filedNames"in this.props?q[pe]||ee[pe]:ce[pe]||ee[pe]}},{key:"getFieldNames",value:function(){var pe=this.props,ee=pe.fieldNames,te=pe.filedNames;return"filedNames"in this.props?te:ee}},{key:"getCurrentLevelOptions",value:function(){var pe=this,ee=this.props.options,te=ee===void 0?[]:ee,ce=this.state.activeValue,q=ce===void 0?[]:ce,Q=S()(te,function(V,Z){return V[pe.getFieldName("value")]===q[Z]},{childrenKeyName:this.getFieldName("children")});return Q[Q.length-2]?Q[Q.length-2][this.getFieldName("children")]:x(te).filter(function(V){return!V.disabled})}},{key:"getActiveOptions",value:function(pe){var ee=this;return S()(this.props.options||[],function(te,ce){return te[ee.getFieldName("value")]===pe[ce]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var pe=this.props,ee=pe.prefixCls,te=pe.transitionName,ce=pe.popupClassName,q=pe.options,Q=q===void 0?[]:q,V=pe.disabled,Z=pe.builtinPlacements,be=pe.popupPlacement,ge=pe.children,Te=pe.dropdownRender,Je=O(pe,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),rt=L.createElement("div",null),nt="";Q&&Q.length>0?rt=L.createElement(w,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):nt=" ".concat(ee,"-menus-empty");var at=rt;return Te&&(at=Te(rt)),L.createElement(g.a,Object.assign({ref:this.saveTrigger},Je,{popupPlacement:be,builtinPlacements:Z,popupTransitionName:te,action:V?[]:["click"],popupVisible:V?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(ee,"-menus"),popupClassName:ce+nt,popup:at}),L.cloneElement(ge,{onKeyDown:this.handleKeyDown,tabIndex:V?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(pe,ee){var te=ee.prevProps,ce=te===void 0?{}:te,q={prevProps:pe};return"value"in pe&&!b(ce.value,pe.value)&&(q.value=pe.value||[],"loadData"in pe||(q.activeValue=pe.value||[])),"popupVisible"in pe&&(q.popupVisible=pe.popupVisible),q}}]),le}(L.Component);return Oe.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:f,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Oe}(),De=Ae,ye=Y.a=De},S6kV:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.mode.OFB=function(){var g=L.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(P,p){var v=this._cipher,S=v.blockSize,b=this._iv,d=this._keystream;b&&(d=this._keystream=b.slice(0),this._iv=void 0),v.encryptBlock(d,0);for(var l=0;l|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(q){for(var Q=0,V=!1,Z=!1,be=0,ge=q.length;be122||(Ce<65||Ie>90||tt.push([Math.max(65,Ie)|32,Math.min(Ce,90)|32]),Ce<97||Ie>122||tt.push([Math.max(97,Ie)&~32,Math.min(Ce,122)&~32]))}}tt.sort(function(et,$e){return et[0]-$e[0]||$e[1]-et[1]});for(var Se=[],ke=[],lt=0;ltNe[0]&&(Ne[1]+1>Ne[0]&&Qe.push("-"),Qe.push(nt(Ne[1])))}return Qe.push("]"),Qe.join("")}function ct(He){for(var Re=He.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")),tt=Re.length,ft=[],Qe=0,lt=0;Qe=2&&Ie==="["?Re[Qe]=at(Ue):Ie!=="\\"&&(Re[Qe]=Ue.replace(/[a-zA-Z]/g,function(ke){var Ne=ke.charCodeAt(0);return"["+String.fromCharCode(Ne&~32,Ne|32)+"]"}))}return Re.join("")}for(var ht=[],be=0,ge=q.length;be=0;)V[ht.charAt(He)]=ct;var Re=ct[1],tt=""+Re;rt.hasOwnProperty(tt)||(Je.push(Re),rt[tt]=null)}Je.push(/[\0-\uffff]/),Z=U(Je)})();var be=Q.length,ge=function(Te){for(var Je=Te.sourceCode,rt=Te.basePos,nt=Te.sourceNode,at=[rt,_],ct=0,ht=Je.match(Z)||[],He={},Re=0,tt=ht.length;Re=5&&Qe.substring(0,5)==="lang-",Ue&&!(lt&&typeof lt[1]=="string")&&(Ue=!1,Qe=N),Ue||(He[ft]=Qe)}var Ce=ct;if(ct+=ft.length,!Ue)at.push(rt+Ce,Qe);else{var Se=lt[1],ke=ft.indexOf(Se),Ne=ke+Se.length;lt[2]&&(Ne=ft.length-lt[2].length,ke=Ne-Se.length);var et=Qe.substring(5);X(nt,rt+Ce,ft.substring(0,ke),ge,at),X(nt,rt+Ce+ke,Se,le(et,Se),at),X(nt,rt+Ce+Ne,ft.substring(Ne),ge,at)}}Te.decorations=at};return ge}function Ae(q){var Q=[],V=[];q.tripleQuotedStrings?Q.push([f,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):q.multiLineStrings?Q.push([f,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Q.push([f,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),q.verbatimStrings&&V.push([f,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Z=q.hashComments;Z&&(q.cStyleComments?(Z>1?Q.push([O,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Q.push([O,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),V.push([f,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Q.push([O,/^#[^\r\n]*/,null,"#"])),q.cStyleComments&&(V.push([O,/^\/\/[^\r\n]*/,null]),V.push([O,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var be=q.regexLiterals;if(be){var ge=be>1?"":`
\r`,Te=ge?".":"[\\S\\s]",Je="/(?=[^/*"+ge+"])(?:[^/\\x5B\\x5C"+ge+"]|\\x5C"+Te+"|\\x5B(?:[^\\x5C\\x5D"+ge+"]|\\x5C"+Te+")*(?:\\x5D|$))+/";V.push(["lang-regex",RegExp("^"+K+"("+Je+")")])}var rt=q.types;rt&&V.push([C,rt]);var nt=(""+q.keywords).replace(/^ | $/g,"");nt.length&&V.push([k,new RegExp("^(?:"+nt.replace(/[\s,]+/g,"|")+")\\b"),null]),Q.push([_,/^\s+/,null,` \r
\xA0`]);var at="^.[^\\s\\w.$@'\"`/\\\\]*";return q.regexLiterals&&(at+="(?!s*/)"),V.push([x,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_,/^[a-z_$][a-z_$@0-9]*/i,null],[x,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_,/^\\[\s\S]?/,null],[y,new RegExp(at),null]),me(Q,V)}var De=Ae({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ye(q,Q,V){for(var Z=/(?:^|\s)nocode(?:\s|$)/,be=/\r\n?|\n/,ge=q.ownerDocument,Te=ge.createElement("li");q.firstChild;)Te.appendChild(q.firstChild);var Je=[Te];function rt(Re){var tt=Re.nodeType;if(tt==1&&!Z.test(Re.className))if(Re.nodeName==="br")nt(Re),Re.parentNode&&Re.parentNode.removeChild(Re);else for(var ft=Re.firstChild;ft;ft=ft.nextSibling)rt(ft);else if((tt==3||tt==4)&&V){var Qe=Re.nodeValue,lt=Qe.match(be);if(lt){var Ue=Qe.substring(0,lt.index);Re.nodeValue=Ue;var Le=Qe.substring(lt.index+lt[0].length);if(Le){var Ie=Re.parentNode;Ie.insertBefore(ge.createTextNode(Le),Re.nextSibling)}nt(Re),Ue||Re.parentNode.removeChild(Re)}}}function nt(Re){for(;!Re.nextSibling;)if(Re=Re.parentNode,!Re)return;function tt(lt,Ue){var Le=Ue?lt.cloneNode(!1):lt,Ie=lt.parentNode;if(Ie){var Ce=tt(Ie,1),Se=lt.nextSibling;Ce.appendChild(Le);for(var ke=Se;ke;ke=Se)Se=ke.nextSibling,Ce.appendChild(ke)}return Le}for(var ft=tt(Re.nextSibling,0),Qe;(Qe=ft.parentNode)&&Qe.nodeType===1;)ft=Qe;Je.push(ft)}for(var at=0;at=Ie&&(rt+=2),ge>=Ce&&(ct+=2)}}finally{Qe&&(Qe.style.display=lt)}}var xe={};function ue(q,Q){for(var V=Q.length;--V>=0;){var Z=Q[V];xe.hasOwnProperty(Z)?b.console&&console.warn("cannot override language handler %s",Z):xe[Z]=q}}function le(q,Q){return q&&xe.hasOwnProperty(q)||(q=/^\s*]*(?:>|$)/],[O,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[y,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^