You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
345 lines
774 KiB
345 lines
774 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[222,7,9,10,17],{"+NIl":function(Oe,Ae,h){(function(I){I(h("VrN/"))})(function(I){"use strict";I.defineMode("stex",function(de,re){"use strict";function X(q,K){q.cmdState.push(K)}function C(q){return q.cmdState.length>0?q.cmdState[q.cmdState.length-1]:null}function ne(q){var K=q.cmdState.pop();K&&K.closeBracket()}function w(q){for(var K=q.cmdState,D=K.length-1;D>=0;D--){var _=K[D];if(_.name=="DEFAULT")continue;return _}return{styleIdentifier:function(){return null}}}function R(q,K,D){return function(){this.name=q,this.bracketNo=0,this.style=K,this.styles=D,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var W={};W.importmodule=R("importmodule","tag",["string","builtin"]),W.documentclass=R("documentclass","tag",["","atom"]),W.usepackage=R("usepackage","tag",["atom"]),W.begin=R("begin","tag",["atom"]),W.end=R("end","tag",["atom"]),W.label=R("label","tag",["atom"]),W.ref=R("ref","tag",["atom"]),W.eqref=R("eqref","tag",["atom"]),W.cite=R("cite","tag",["atom"]),W.bibitem=R("bibitem","tag",["atom"]),W.Bibitem=R("Bibitem","tag",["atom"]),W.RBibitem=R("RBibitem","tag",["atom"]),W.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function V(q,K){q.f=K}function L(q,K){var D;if(q.match(/^\\[a-zA-Z@]+/)){var _=q.current().slice(1);return D=W.hasOwnProperty(_)?W[_]:W.DEFAULT,D=new D,X(K,D),V(K,se),D.style}if(q.match(/^\\[$&%#{}_]/))return"tag";if(q.match(/^\\[,;!\/\\]/))return"tag";if(q.match("\\["))return V(K,function(le,Me){return T(le,Me,"\\]")}),"keyword";if(q.match("\\("))return V(K,function(le,Me){return T(le,Me,"\\)")}),"keyword";if(q.match("$$"))return V(K,function(le,Me){return T(le,Me,"$$")}),"keyword";if(q.match("$"))return V(K,function(le,Me){return T(le,Me,"$")}),"keyword";var A=q.next();if(A=="%")return q.skipToEnd(),"comment";if(A=="}"||A=="]"){if(D=C(K),D)D.closeBracket(A),V(K,se);else return"error";return"bracket"}else return A=="{"||A=="["?(D=W.DEFAULT,D=new D,X(K,D),"bracket"):/\d/.test(A)?(q.eatWhile(/[\w.%]/),"atom"):(q.eatWhile(/[\w\-_]/),D=w(K),D.name=="begin"&&(D.argument=q.current()),D.styleIdentifier())}function T(q,K,D){if(q.eatSpace())return null;if(D&&q.match(D))return V(K,L),"keyword";if(q.match(/^\\[a-zA-Z@]+/))return"tag";if(q.match(/^[a-zA-Z]+/))return"variable-2";if(q.match(/^\\[$&%#{}_]/))return"tag";if(q.match(/^\\[,;!\/]/))return"tag";if(q.match(/^[\^_&]/))return"tag";if(q.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(q.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var _=q.next();return _=="{"||_=="}"||_=="["||_=="]"||_=="("||_==")"?"bracket":_=="%"?(q.skipToEnd(),"comment"):"error"}function se(q,K){var D=q.peek(),_;return D=="{"||D=="["?(_=C(K),_.openBracket(D),q.eat(D),V(K,L),"bracket"):/[ \t\r]/.test(D)?(q.eat(D),null):(V(K,L),ne(K),L(q,K))}return{startState:function(){var q=re.inMathMode?function(K,D){return T(K,D)}:L;return{cmdState:[],f:q}},copyState:function(q){return{cmdState:q.cmdState.slice(),f:q.f}},token:function(q,K){return K.f(q,K)},blankLine:function(q){q.f=L,q.cmdState.length=0},lineComment:"%"}}),I.defineMIME("text/x-stex","stex"),I.defineMIME("text/x-latex","stex")})},"/GNS":function(Oe,Ae,h){Oe.exports=h.p+"static/search1.c4136dd4.png"},"19Vz":function(Oe,Ae,h){(function(I){I(h("VrN/"))})(function(I){I.defineOption("placeholder","",function(R,W,V){var L=V&&V!=I.Init;if(W&&!L)R.on("blur",C),R.on("change",ne),R.on("swapDoc",ne),I.on(R.getInputField(),"compositionupdate",R.state.placeholderCompose=function(){X(R)}),ne(R);else if(!W&&L){R.off("blur",C),R.off("change",ne),R.off("swapDoc",ne),I.off(R.getInputField(),"compositionupdate",R.state.placeholderCompose),de(R);var T=R.getWrapperElement();T.className=T.className.replace(" CodeMirror-empty","")}W&&!R.hasFocus()&&C(R)});function de(R){R.state.placeholder&&(R.state.placeholder.parentNode.removeChild(R.state.placeholder),R.state.placeholder=null)}function re(R){de(R);var W=R.state.placeholder=document.createElement("pre");W.style.cssText="height: 0; overflow: visible",W.style.direction=R.getOption("direction"),W.className="CodeMirror-placeholder CodeMirror-line-like";var V=R.getOption("placeholder");typeof V=="string"&&(V=document.createTextNode(V)),W.appendChild(V),R.display.lineSpace.insertBefore(W,R.display.lineSpace.firstChild)}function X(R){setTimeout(function(){var W=!1,V=R.getInputField();V.nodeName=="TEXTAREA"?W=!V.value:R.lineCount()==1&&(W=!/[^\u200b]/.test(V.querySelector(".CodeMirror-line").textContent)),W?re(R):de(R)},20)}function C(R){w(R)&&re(R)}function ne(R){var W=R.getWrapperElement(),V=w(R);W.className=W.className.replace(" CodeMirror-empty","")+(V?" CodeMirror-empty":""),V?re(R):de(R)}function w(R){return R.lineCount()===1&&R.getLine(0)===""}})},"1eCo":function(Oe,Ae,h){(function(I){I(h("VrN/"))})(function(I){"use strict";var de={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},re={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};I.defineMode("xml",function(X,C){var ne=X.indentUnit,w={},R=C.htmlMode?de:re;for(var W in R)w[W]=R[W];for(var W in C)w[W]=C[W];var V,L;function T(B,xe){function me(ue){return xe.tokenize=ue,ue(B,xe)}var S=B.next();if(S=="<")return B.eat("!")?B.eat("[")?B.match("CDATA[")?me(K("atom","]]>")):null:B.match("--")?me(K("comment","-->")):B.match("DOCTYPE",!0,!0)?(B.eatWhile(/[\w\._\-]/),me(D(1))):null:B.eat("?")?(B.eatWhile(/[\w\._\-]/),xe.tokenize=K("meta","?>"),"meta"):(V=B.eat("/")?"closeTag":"openTag",xe.tokenize=se,"tag bracket");if(S=="&"){var Q;return B.eat("#")?B.eat("x")?Q=B.eatWhile(/[a-fA-F\d]/)&&B.eat(";"):Q=B.eatWhile(/[\d]/)&&B.eat(";"):Q=B.eatWhile(/[\w\.\-:]/)&&B.eat(";"),Q?"atom":"error"}else return B.eatWhile(/[^&<]/),null}T.isInText=!0;function se(B,xe){var me=B.next();if(me==">"||me=="/"&&B.eat(">"))return xe.tokenize=T,V=me==">"?"endTag":"selfcloseTag","tag bracket";if(me=="=")return V="equals",null;if(me=="<"){xe.tokenize=T,xe.state=Me,xe.tagName=xe.tagStart=null;var S=xe.tokenize(B,xe);return S?S+" tag error":"tag error"}else return/[\'\"]/.test(me)?(xe.tokenize=q(me),xe.stringStartCol=B.column(),xe.tokenize(B,xe)):(B.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function q(B){var xe=function(me,S){for(;!me.eol();)if(me.next()==B){S.tokenize=se;break}return"string"};return xe.isInAttribute=!0,xe}function K(B,xe){return function(me,S){for(;!me.eol();){if(me.match(xe)){S.tokenize=T;break}me.next()}return B}}function D(B){return function(xe,me){for(var S;(S=xe.next())!=null;){if(S=="<")return me.tokenize=D(B+1),me.tokenize(xe,me);if(S==">")if(B==1){me.tokenize=T;break}else return me.tokenize=D(B-1),me.tokenize(xe,me)}return"meta"}}function _(B,xe,me){this.prev=B.context,this.tagName=xe,this.indent=B.indented,this.startOfLine=me,(w.doNotIndent.hasOwnProperty(xe)||B.context&&B.context.noIndent)&&(this.noIndent=!0)}function A(B){B.context&&(B.context=B.context.prev)}function le(B,xe){for(var me;;){if(!B.context)return;if(me=B.context.tagName,!w.contextGrabbers.hasOwnProperty(me)||!w.contextGrabbers[me].hasOwnProperty(xe))return;A(B)}}function Me(B,xe,me){return B=="openTag"?(me.tagStart=xe.column(),Je):B=="closeTag"?we:Me}function Je(B,xe,me){return B=="word"?(me.tagName=xe.current(),L="tag",Ee):w.allowMissingTagName&&B=="endTag"?(L="tag bracket",Ee(B,xe,me)):(L="error",Je)}function we(B,xe,me){if(B=="word"){var S=xe.current();return me.context&&me.context.tagName!=S&&w.implicitlyClosed.hasOwnProperty(me.context.tagName)&&A(me),me.context&&me.context.tagName==S||w.matchClosing===!1?(L="tag",ke):(L="tag error",Ve)}else return w.allowMissingTagName&&B=="endTag"?(L="tag bracket",ke(B,xe,me)):(L="error",Ve)}function ke(B,xe,me){return B!="endTag"?(L="error",ke):(A(me),Me)}function Ve(B,xe,me){return L="error",ke(B,xe,me)}function Ee(B,xe,me){if(B=="word")return L="attribute",Ce;if(B=="endTag"||B=="selfcloseTag"){var S=me.tagName,Q=me.tagStart;return me.tagName=me.tagStart=null,B=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(S)?le(me,S):(le(me,S),me.context=new _(me,S,Q==me.indented)),Me}return L="error",Ee}function Ce(B,xe,me){return B=="equals"?Ne:(w.allowMissing||(L="error"),Ee(B,xe,me))}function Ne(B,xe,me){return B=="string"?be:B=="word"&&w.allowUnquoted?(L="string",Ee):(L="error",Ee(B,xe,me))}function be(B,xe,me){return B=="string"?be:Ee(B,xe,me)}return{startState:function(B){var xe={tokenize:T,state:Me,indented:B||0,tagName:null,tagStart:null,context:null};return B!=null&&(xe.baseIndent=B),xe},token:function(B,xe){if(!xe.tagName&&B.sol()&&(xe.indented=B.indentation()),B.eatSpace())return null;V=null;var me=xe.tokenize(B,xe);return(me||V)&&me!="comment"&&(L=null,xe.state=xe.state(V||me,B,xe),L&&(me=L=="error"?me+" error":L)),me},indent:function(B,xe,me){var S=B.context;if(B.tokenize.isInAttribute)return B.tagStart==B.indented?B.stringStartCol+1:B.indented+ne;if(S&&S.noIndent)return I.Pass;if(B.tokenize!=se&&B.tokenize!=T)return me?me.match(/^(\s*)/)[0].length:0;if(B.tagName)return w.multilineTagIndentPastTag!==!1?B.tagStart+B.tagName.length+2:B.tagStart+ne*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/<!\[CDATA\[/.test(xe))return 0;var Q=xe&&/^<(\/)?([\w_:\.-]*)/.exec(xe);if(Q&&Q[1])for(;S;)if(S.tagName==Q[2]){S=S.prev;break}else if(w.implicitlyClosed.hasOwnProperty(S.tagName))S=S.prev;else break;else if(Q)for(;S;){var ue=w.contextGrabbers[S.tagName];if(ue&&ue.hasOwnProperty(Q[2]))S=S.prev;else break}for(;S&&S.prev&&!S.startOfLine;)S=S.prev;return S?S.indent+ne:B.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(B){B.state==Ne&&(B.state=Ee)},xmlCurrentTag:function(B){return B.tagName?{name:B.tagName,close:B.type=="closeTag"}:null},xmlCurrentContext:function(B){for(var xe=[],me=B.context;me;me=me.prev)me.tagName&&xe.push(me.tagName);return xe.reverse()}}}),I.defineMIME("text/xml","xml"),I.defineMIME("application/xml","xml"),I.mimeModes.hasOwnProperty("text/html")||I.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"4qgm":function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+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6urq2MbPMoSuavieSt9b6zJyU7+OonXVygIjWKKUOxCGFhaA4cj0AF/KS7z8D4DmMfpTIGdcQOgtgldZaJlpss9auA/B1q/Kgrhjm+08B3JuEF/ediE44T2IikiOP1Uqp7/IYDePeElFvXhwAY2nTqJCXkTiZ1XgBcT9jmplHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"7Cbv":function(Oe,Ae,h){"use strict";var I=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),de=new Uint8Array(16);function re(){if(!I)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(de)}var X=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function C(se){return typeof se=="string"&&X.test(se)}for(var ne=C,w=[],R=0;R<256;++R)w.push((R+256).toString(16).substr(1));function W(se){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,K=(w[se[q+0]]+w[se[q+1]]+w[se[q+2]]+w[se[q+3]]+"-"+w[se[q+4]]+w[se[q+5]]+"-"+w[se[q+6]]+w[se[q+7]]+"-"+w[se[q+8]]+w[se[q+9]]+"-"+w[se[q+10]]+w[se[q+11]]+w[se[q+12]]+w[se[q+13]]+w[se[q+14]]+w[se[q+15]]).toLowerCase();if(!ne(K))throw TypeError("Stringified UUID is invalid");return K}var V=W;function L(se,q,K){se=se||{};var D=se.random||(se.rng||re)();if(D[6]=D[6]&15|64,D[8]=D[8]&63|128,q){K=K||0;for(var _=0;_<16;++_)q[K+_]=D[_];return q}return V(D)}var T=Ae.a=L},"7ZXX":function(Oe,Ae,h){Oe.exports=h.p+"static/err.6e7c5817.png"},"7ahc":function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return Je});var I=h("k1fw"),de=h("0Owb"),re=h("+L6B"),X=h("2/Rp"),C=h("y8nQ"),ne=h("Vl3Y"),w=h("tJVT"),R=h("OaEy"),W=h("2fM7"),V=h("q1tI"),L=h.n(V),T=h("VrN/"),se=h.n(T),q=h("p77/"),K=h.n(q),D=h("c5Ni"),_=h.n(D),A=W.a.Option,le={labelCol:{span:4},wrapperCol:{span:20}},Me={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"]};Ae.b=function(we){var ke=we.callback,Ve=we.onCancel,Ee=Object(V.useState)("python"),Ce=Object(w.a)(Ee,2),Ne=Ce[0],be=Ce[1];function B(me){be(Me[me][1])}function xe(me){ke(me)}return L.a.createElement(ne.a,Object(de.a)({},le,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:xe}),L.a.createElement(ne.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},L.a.createElement(W.a,{onChange:B},Object.keys(Me).map(function(me){return L.a.createElement(A,{key:me,value:me},Me[me][0])}))),L.a.createElement(ne.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},L.a.createElement(Je,{mode:Ne})),L.a.createElement("div",{className:"flex-container flex-end"},L.a.createElement(X.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),L.a.createElement(X.a,{type:"ghost",onClick:Ve},"\u53D6\u6D88")))};function Je(we){var ke=we.value,Ve=we.onChange,Ee=we.mode,Ce=we.options,Ne=Ce===void 0?{}:Ce,be=Object(V.useRef)(),B=Object(V.useState)(),xe=Object(w.a)(B,2),me=xe[0],S=xe[1];return Object(V.useEffect)(function(){if(me){function Q(ue){var G=ue.getValue();Ve&&Ve(G)}return me.on("change",Q),function(){me.off("change",Q)}}},[me,Ve]),Object(V.useEffect)(function(){me&&me.setOption("mode",Ee)},[me,Ee]),Object(V.useEffect)(function(){me&&((ke!==me.getValue()||ke==="")&&setTimeout(function(){me.setValue(ke||" ")},300))},[me,ke]),Object(V.useEffect)(function(){if(be.current&&!me){var Q=se.a.fromTextArea(be.current,Object(I.a)({mode:Ee,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ne));S(Q)}},[be.current,me]),L.a.createElement("div",{className:"my-codemirror-container"},L.a.createElement("textarea",{ref:be}))}},"7ixt":function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return re});var I={adjustX:1,adjustY:1},de=[0,0],re={left:{points:["cr","cl"],overflow:I,offset:[-4,0],targetOffset:de},right:{points:["cl","cr"],overflow:I,offset:[4,0],targetOffset:de},top:{points:["bc","tc"],overflow:I,offset:[0,-4],targetOffset:de},bottom:{points:["tc","bc"],overflow:I,offset:[0,4],targetOffset:de},topLeft:{points:["bl","tl"],overflow:I,offset:[0,-4],targetOffset:de},leftTop:{points:["tr","tl"],overflow:I,offset:[-4,0],targetOffset:de},topRight:{points:["br","tr"],overflow:I,offset:[0,-4],targetOffset:de},rightTop:{points:["tl","tr"],overflow:I,offset:[4,0],targetOffset:de},bottomRight:{points:["tr","br"],overflow:I,offset:[0,4],targetOffset:de},rightBottom:{points:["bl","br"],overflow:I,offset:[4,0],targetOffset:de},bottomLeft:{points:["tl","bl"],overflow:I,offset:[0,4],targetOffset:de},leftBottom:{points:["br","bl"],overflow:I,offset:[-4,0],targetOffset:de}},X=re},"7v3h":function(Oe,Ae,h){Oe.exports=h.p+"static/empty2.dd73f390.png"},"8/bI":function(Oe,Ae,h){Oe.exports=h.p+"static/empty.8918e228.png"},"8EBN":function(Oe,Ae,h){(function(I){I(h("VrN/"))})(function(I){"use strict";I.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 de=0;de<I.modeInfo.length;de++){var re=I.modeInfo[de];re.mimes&&(re.mime=re.mimes[0])}I.findModeByMIME=function(X){X=X.toLowerCase();for(var C=0;C<I.modeInfo.length;C++){var ne=I.modeInfo[C];if(ne.mime==X)return ne;if(ne.mimes){for(var w=0;w<ne.mimes.length;w++)if(ne.mimes[w]==X)return ne}}if(/\+xml$/.test(X))return I.findModeByMIME("application/xml");if(/\+json$/.test(X))return I.findModeByMIME("application/json")},I.findModeByExtension=function(X){X=X.toLowerCase();for(var C=0;C<I.modeInfo.length;C++){var ne=I.modeInfo[C];if(ne.ext){for(var w=0;w<ne.ext.length;w++)if(ne.ext[w]==X)return ne}}},I.findModeByFileName=function(X){for(var C=0;C<I.modeInfo.length;C++){var ne=I.modeInfo[C];if(ne.file&&ne.file.test(X))return ne}var w=X.lastIndexOf("."),R=w>-1&&X.substring(w+1,X.length);if(R)return I.findModeByExtension(R)},I.findModeByName=function(X){X=X.toLowerCase();for(var C=0;C<I.modeInfo.length;C++){var ne=I.modeInfo[C];if(ne.name.toLowerCase()==X)return ne;if(ne.alias){for(var w=0;w<ne.alias.length;w++)if(ne.alias[w].toLowerCase()==X)return ne}}}})},"8hTe":function(Oe,Ae,h){Oe.exports={button:"button___1wy9m"}},"9Bee":function(Oe,Ae,h){"use strict";var I=h("DYRE"),de=h("zeV3"),re=h("+L6B"),X=h("2/Rp"),C=h("k1fw"),ne=h("9og8"),w=h("tJVT"),R=h("WmNS"),W=h.n(R),V=h("q1tI"),L=h.n(V),T=h("vg9a"),se=h("DlQD"),q=h.n(se),K=h("rUJ1");function D(d,r){var a=d.match(/^(\s+)(?:```)/);if(a===null)return r;var u=a[1];return r.split(`
|
|
`).map(function(m){var c=m.match(/^\s+/);if(c===null)return m;var Y=Object(w.a)(c,1),Ge=Y[0];return Ge.length>=u.length?m.slice(u.length):m}).join(`
|
|
`)}var _=[],A=["<ul>"],le=new q.a.Renderer,Me=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){_.length=0,A=["<ul>"]}var we={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ke(d,r,a,u){if(r>=d.length||d[r].level<=a)return r;var m=d[r];u.push("<li><a href='#"+m.anchor+"'>"+m.text+"</a>"),r++;var c=[];return r=ke(d,r,m.level,c),c.length>0&&(u.push("<ul>"),c.forEach(function(Y){u.push(Y)}),u.push("</ul>")),u.push("</li>"),r=ke(d,r,a,u),r}function Ve(){return ke(_,0,0,A),A.push("</ul>"),A.join("")}var Ee={heading:function(r){var a=Me.exec(r);if(a)return{type:"heading",raw:a[0],depth:a[1].length,text:a[2]}},fences:function(r){var a=this.rules.block.fences.exec(r);if(a){var u=a[0],m=D(u,a[3]||""),c=a[2]?a[2].trim():a[2];if(["latex","katex","math"].indexOf(c)>=0){var Y=be(),Ge=m;m=Y,B[Y]={type:"block",expression:Ge}}return{type:"code",raw:u,lang:c,text:m}}}},Ce=/(?:\${2})([^\n`]+?)(?:\${2})/gi,Ne=0,be=function(){return"__special_katext_id_".concat(Ne++,"__")},B={};function xe(){return B}function me(){Ne=0,B={}}function S(d){return d=d.replace(Ce,function(r,a){var u=be();return B[u]={type:"inline",expression:a},u}),d}var Q=le.listitem;le.listitem=function(d){return Q(S(d))};var ue=le.paragraph;le.paragraph=function(d){return ue(S(d))};var G=le.tablecell;le.tablecell=function(d,r){return G(S(d),r)},le.code=function(d,r,a){var u=(r||"").match(/\S*/)[0];return u?["latex","katex","math"].indexOf(u)>=0?"<p class='editormd-tex'>".concat(d,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(r,'">').concat(a?d:Object(K.escape)(d,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(a?d:Object(K.escape)(d,!0))+"</code></pre>"},le.heading=function(d,r,a){var u=this.options.headerPrefix+a.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return _.push({anchor:u,level:r,text:d}),"<h"+r+' id="'+u+'">'+d+"</h"+r+">"},q.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),q.a.use({tokenizer:Ee,renderer:le});var De=q.a,M=h("SJMd"),v=h("ulZh"),ce=h.n(v),Ue=h("m3rI"),Re=h("Oy/b"),qe=h("p5ED"),dt=h("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 We=function(d,r){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var m in u)Object.prototype.hasOwnProperty.call(u,m)&&(a[m]=u[m])})(d,r)};function ze(d,r){function a(){this.constructor=d}We(d,r),d.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}function Pe(d,r,a,u){return new(a||(a=Promise))(function(m,c){function Y(Lt){try{ve(u.next(Lt))}catch(Qe){c(Qe)}}function Ge(Lt){try{ve(u.throw(Lt))}catch(Qe){c(Qe)}}function ve(Lt){var Qe;Lt.done?m(Lt.value):(Qe=Lt.value,Qe instanceof a?Qe:new a(function(Et){Et(Qe)})).then(Y,Ge)}ve((u=u.apply(d,r||[])).next())})}function Fe(d,r){var a,u,m,c,Y={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return c={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function Ge(ve){return function(Lt){return function(Qe){if(a)throw new TypeError("Generator is already executing.");for(;Y;)try{if(a=1,u&&(m=2&Qe[0]?u.return:Qe[0]?u.throw||((m=u.return)&&m.call(u),0):u.next)&&!(m=m.call(u,Qe[1])).done)return m;switch(u=0,m&&(Qe=[2&Qe[0],m.value]),Qe[0]){case 0:case 1:m=Qe;break;case 4:return Y.label++,{value:Qe[1],done:!1};case 5:Y.label++,u=Qe[1],Qe=[0];continue;case 7:Qe=Y.ops.pop(),Y.trys.pop();continue;default:if(!(m=Y.trys,(m=m.length>0&&m[m.length-1])||Qe[0]!==6&&Qe[0]!==2)){Y=0;continue}if(Qe[0]===3&&(!m||Qe[1]>m[0]&&Qe[1]<m[3])){Y.label=Qe[1];break}if(Qe[0]===6&&Y.label<m[1]){Y.label=m[1],m=Qe;break}if(m&&Y.label<m[2]){Y.label=m[2],Y.ops.push(Qe);break}m[2]&&Y.ops.pop(),Y.trys.pop();continue}Qe=r.call(d,Y)}catch(Et){Qe=[6,Et],u=0}finally{a=m=0}if(5&Qe[0])throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}([ve,Lt])}}}function he(){for(var d=0,r=0,a=arguments.length;r<a;r++)d+=arguments[r].length;var u=Array(d),m=0;for(r=0;r<a;r++)for(var c=arguments[r],Y=0,Ge=c.length;Y<Ge;Y++,m++)u[m]=c[Y];return u}var P=function(){function d(){}return d.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},d.setAttributes=function(r,a){for(var u=0,m=a;u<m.length;u++){var c=m[u],Y=c[0],Ge=c[1];r.setAttribute(Y,Ge)}},d.createRect=function(r,a,u){var m=document.createElementNS("http://www.w3.org/2000/svg","rect");return m.setAttribute("width",r.toString()),m.setAttribute("height",a.toString()),u&&d.setAttributes(m,u),m},d.createLine=function(r,a,u,m,c){var Y=document.createElementNS("http://www.w3.org/2000/svg","line");return Y.setAttribute("x1",r.toString()),Y.setAttribute("y1",a.toString()),Y.setAttribute("x2",u.toString()),Y.setAttribute("y2",m.toString()),c&&d.setAttributes(Y,c),Y},d.createPolygon=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg","polygon");return u.setAttribute("points",r),a&&d.setAttributes(u,a),u},d.createCircle=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg","circle");return u.setAttribute("cx",(r/2).toString()),u.setAttribute("cy",(r/2).toString()),u.setAttribute("r",r.toString()),a&&d.setAttributes(u,a),u},d.createEllipse=function(r,a,u){var m=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return m.setAttribute("cx",(r/2).toString()),m.setAttribute("cy",(a/2).toString()),m.setAttribute("rx",(r/2).toString()),m.setAttribute("ry",(a/2).toString()),u&&d.setAttributes(m,u),m},d.createGroup=function(r){var a=document.createElementNS("http://www.w3.org/2000/svg","g");return r&&d.setAttributes(a,r),a},d.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},d.createMarker=function(r,a,u,m,c,Y,Ge){var ve=document.createElementNS("http://www.w3.org/2000/svg","marker");return d.setAttributes(ve,[["id",r],["orient",a],["markerWidth",u.toString()],["markerHeight",m.toString()],["refX",c.toString()],["refY",Y.toString()]]),ve.appendChild(Ge),ve},d.createText=function(r){var a=document.createElementNS("http://www.w3.org/2000/svg","text");return a.setAttribute("x","0"),a.setAttribute("y","0"),r&&d.setAttributes(a,r),a},d.createTSpan=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg","tspan");return u.textContent=r,a&&d.setAttributes(u,a),u},d.createImage=function(r){var a=document.createElementNS("http://www.w3.org/2000/svg","image");return r&&d.setAttributes(a,r),a},d.createPoint=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return u.x=r,u.y=a,u},d.createPath=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg","path");return u.setAttribute("d",r),a&&d.setAttributes(u,a),u},d}(),nt=function(){function d(){}return d.addKey=function(r){d.key=r},Object.defineProperty(d,"isLicensed",{get:function(){return!!d.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(d.key)},enumerable:!1,configurable:!0}),d}(),Tt=function(){function d(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return d.prototype.rasterize=function(r,a,u){var m=this;return new Promise(function(c){var Y=u!==void 0?u:document.createElement("canvas");r===null&&(m.markersOnly=!0,m.naturalSize=!1);var Ge=document.createElementNS("http://www.w3.org/2000/svg","svg");Ge.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ge.setAttribute("width",a.width.baseVal.valueAsString),Ge.setAttribute("height",a.height.baseVal.valueAsString),Ge.setAttribute("viewBox","0 0 "+a.viewBox.baseVal.width.toString()+" "+a.viewBox.baseVal.height.toString()),Ge.innerHTML=a.innerHTML,m.naturalSize===!0?(Ge.width.baseVal.value=r.naturalWidth,Ge.height.baseVal.value=r.naturalHeight):m.width!==void 0&&m.height!==void 0&&(Ge.width.baseVal.value=m.width,Ge.height.baseVal.value=m.height),Y.width=Ge.width.baseVal.value,Y.height=Ge.height.baseVal.value;var ve=Ge.outerHTML,Lt=Y.getContext("2d");m.markersOnly!==!0&&Lt.drawImage(r,0,0,Y.width,Y.height);var Qe=window.URL,Et=new Image(Y.width,Y.height);Et.setAttribute("crossOrigin","anonymous");var At=new Blob([ve],{type:"image/svg+xml"}),kt=Qe.createObjectURL(At);Et.onload=function(){Lt.drawImage(Et,0,0),Qe.revokeObjectURL(kt);var nn=Y.toDataURL(m.imageType,m.imageQuality);c(nn)},Et.src=kt})},d}(),Ut=function(){},ft=function(){function d(r){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+r+"_"}return Object.defineProperty(d.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),d.prototype.addClass=function(r){return this.styleSheet===void 0&&this.addStyleSheet(),r.name=""+this.classNamePrefix+r.localName,this.classes.push(r),this.styleSheet.sheet.insertRule("."+r.name+" {"+r.style+"}",this.styleSheet.sheet.cssRules.length),r},d.prototype.addRule=function(r){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(r),this.styleSheet.sheet.insertRule(r.selector+" {"+r.style+"}",this.styleSheet.sheet.cssRules.length)},d.prototype.addStyleSheet=function(){var r;this.styleSheet=document.createElement("style"),((r=this.styleSheetRoot)!==null&&r!==void 0?r:document.head).appendChild(this.styleSheet),this.addRule(new wt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new wt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new wt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new He("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new He("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},d.prototype.removeStyleSheet=function(){var r;this.styleSheet&&(((r=this.styleSheetRoot)!==null&&r!==void 0?r:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},d}(),wt=function(d,r){this.selector=d,this.style=r},He=function(d,r){this.localName=d,this.style=r},rt=function(){function d(r,a,u,m,c){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=r,this.displayMode=a,this.markerItems=u,this.uiStyleSettings=m,this.styles=c,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return d.prototype.show=function(r){var a=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=r,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var u=document.createElement("div");u.className=this.toolbarBlockStyleClass.name,u.style.whiteSpace="nowrap",this.uiContainer.appendChild(u),this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"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(c){var Y=document.createElement("div");Y.className=""+a.toolbarButtonStyleClass.name,Y.setAttribute("data-type-name",c.typeName),Y.innerHTML=c.icon,Y.addEventListener("click",function(){a.markerToolbarButtonClicked(Y,c)}),a.buttons.push(Y),a.markerButtons.push(Y)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var m=document.createElement("div");m.className=this.toolbarBlockStyleClass.name,m.style.whiteSpace="nowrap",m.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(m),this.addActionButton(m,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(m,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},d.prototype.addButtonClickListener=function(r){this.buttonClickListeners.push(r)},d.prototype.removeButtonClickListener=function(r){this.buttonClickListeners.indexOf(r)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(r),1)},d.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},d.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var r=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var a=0;a<this.markerButtons.length;a++)a<r||a===r&&this.markerButtons.length-1===r?this.markerButtonBlock.appendChild(this.markerButtons[a]):(a===r&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[a]))}},d.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},d.prototype.resetButtonStyles=function(){var r=this;this.buttons.forEach(function(a){a.className=a.className.replace(r.uiStyleSettings.toolbarButtonStyleColorsClassName?r.uiStyleSettings.toolbarButtonStyleColorsClassName:r.toolbarButtonStyleColorsClass.name,"").trim(),a.className=a.className.replace(r.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?r.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:r.toolbarActiveButtonStyleColorsClass.name,"").trim(),a.className+=" "+(r.uiStyleSettings.toolbarButtonStyleColorsClassName?r.uiStyleSettings.toolbarButtonStyleColorsClassName:r.toolbarButtonStyleColorsClass.name)})},d.prototype.addActionButton=function(r,a,u){var m=this,c=document.createElement("div");switch(c.className=""+this.toolbarButtonStyleClass.name,c.innerHTML=a,c.setAttribute("data-action",u),c.addEventListener("click",function(){m.actionToolbarButtonClicked(c,u)}),u){case"select":c.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":c.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":c.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":c.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":c.style.fill=this.uiStyleSettings.closeButtonColor}r.appendChild(c),this.buttons.push(c)},d.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new He("toolbar",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new He("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new He("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new He("toolbar-overflow-block",`
|
|
position: absolute;
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
z-index: 10;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new He("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var r=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new He("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*r)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*r)+`px;
|
|
padding: `+r+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new He("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new He("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new wt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new wt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},d.prototype.markerToolbarButtonClicked=function(r,a){this.setActiveButton(r),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(u){return u("marker",a)}),this.markerButtonOverflowBlock.style.display="none"},d.prototype.actionToolbarButtonClicked=function(r,a){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(u){return u("action",a)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},d.prototype.setActiveButton=function(r){this.resetButtonStyles(),r.className=r.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),r.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},d.prototype.setActiveMarkerButton=function(r){var a=this.markerButtons.find(function(u){return u.getAttribute("data-type-name")===r});a&&this.setActiveButton(a)},d.prototype.setCurrentMarker=function(r){var a=this;this.currentMarker=r,this.buttons.filter(function(u){return/delete|notes/.test(u.getAttribute("data-action"))}).forEach(function(u){a.currentMarker===void 0?(u.style.fillOpacity="0.4",u.style.pointerEvents="none"):(u.style.fillOpacity="1",u.style.pointerEvents="all")})},d}(),pt=function(){function d(r,a,u,m){this.panels=[],this.panelButtons=[],this.markerjsContainer=r,this.displayMode=a,this.uiStyleSettings=u,this.styles=m,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return d.prototype.addStyles=function(){var r;this.toolboxStyleClass=this.styles.addClass(new He("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 He("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var a=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new He("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new He("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new He("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 He("toolbox-panel-row_colors",`
|
|
background-color: `+((r=this.uiStyleSettings.toolboxBackgroundColor)!==null&&r!==void 0?r:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new He("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*a)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*a)+`px;
|
|
padding: `+a+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new He("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new He("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new wt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new wt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},d.prototype.show=function(r){var a;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=r,this.uiContainer.className=this.toolboxStyleClass.name+" "+((a=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&a!==void 0?a:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},d.prototype.setPanelButtons=function(r){var a,u,m=this;this.panels=r,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((a=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&a!==void 0?a:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((u=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&u!==void 0?u:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(c){var Y;c.uiStyleSettings=m.uiStyleSettings;var Ge=document.createElement("div");Ge.className=m.toolboxButtonStyleClass.name+" "+((Y=m.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Y!==void 0?Y:m.toolboxButtonStyleColorsClass.name),Ge.innerHTML=c.icon,Ge.title=c.title,Ge.addEventListener("click",function(){m.panelButtonClick(c)}),m.panelButtons.push(Ge),m.buttonRow.appendChild(Ge)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},d.prototype.panelButtonClick=function(r){var a=this,u=-1;if(r!==this.activePanel){u=this.panels.indexOf(r),this.panelRow.innerHTML="";var m=r.getUi();m.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(m),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=r}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){a.displayMode==="inline"?a.panelRow.style.display="none":a.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(c,Y){var Ge,ve;c.className=a.toolboxButtonStyleClass.name+" "+(Y===u?""+((Ge=a.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:a.toolboxActiveButtonStyleColorsClass.name):""+((ve=a.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ve!==void 0?ve:a.toolboxButtonStyleColorsClass.name))})},d}(),gt=function(d,r){this.title=d,this.icon=r},$e=function(d){function r(a,u,m,c){var Y=d.call(this,a,c||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Y.colors=[],Y.addTransparent=!1,Y.colorBoxes=[],Y.colors=u,Y.currentColor=m,Y.setCurrentColor=Y.setCurrentColor.bind(Y),Y.getColorBox=Y.getColorBox.bind(Y),Y}return ze(r,d),r.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.overflow="hidden",u.style.whiteSpace="nowrap",this.colors.forEach(function(m){var c=a.getColorBox(m);u.appendChild(c),a.colorBoxes.push(c)}),u},r.prototype.getColorBox=function(a){var u=this,m=this.uiStyleSettings.toolbarHeight/4,c=this.uiStyleSettings.toolbarHeight-m,Y=document.createElement("div");Y.style.display="inline-block",Y.style.boxSizing="content-box",Y.style.width=c-2+"px",Y.style.height=c-2+"px",Y.style.padding="1px",Y.style.marginRight="2px",Y.style.marginBottom="2px",Y.style.borderWidth="2px",Y.style.borderStyle="solid",Y.style.borderRadius=(c+2)/2+"px",Y.style.borderColor=a===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Y.addEventListener("click",function(){u.setCurrentColor(a,Y)});var Ge=document.createElement("div");return Ge.style.display="inline-block",Ge.style.width=c-2+"px",Ge.style.height=c-2+"px",Ge.style.backgroundColor=a,Ge.style.borderRadius=c/2+"px",a==="transparent"&&(Ge.style.fill=this.uiStyleSettings.toolboxAccentColor,Ge.innerHTML=`<svg viewBox="0 0 24 24">
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
</svg>`),Y.appendChild(Ge),Y},r.prototype.setCurrentColor=function(a,u){var m=this;this.currentColor=a,this.colorBoxes.forEach(function(c){c.style.borderColor=c===u?m.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(a)},r}(gt),Ke=function(){function d(r,a,u){this._state="new",this._isSelected=!1,this._container=r,this._overlayContainer=a,this.globalSettings=u,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(d.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),d.prototype.ownsTarget=function(r){return!1},Object.defineProperty(d.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),d.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},d.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},d.prototype.pointerDown=function(r,a){},d.prototype.dblClick=function(r,a){},d.prototype.manipulate=function(r){},d.prototype.pointerUp=function(r){this.stateChanged()},d.prototype.dispose=function(){},d.prototype.addMarkerVisualToContainer=function(r){this.container.childNodes.length>0?this.container.insertBefore(r,this.container.childNodes[0]):this.container.appendChild(r)},d.prototype.getState=function(){return{typeName:d.typeName,state:this.state,notes:this.notes}},d.prototype.restoreState=function(r){this._state=r.state,this.notes=r.notes},d.prototype.scale=function(r,a){},d.prototype.colorChanged=function(r){this.onColorChanged&&this.onColorChanged(r),this.stateChanged()},d.prototype.fillColorChanged=function(r){this.onFillColorChanged&&this.onFillColorChanged(r),this.stateChanged()},d.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var r=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),r.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(r)&&this.onStateChanged(this)}},d.typeName="MarkerBase",d}(),ot=function(){function d(){this.findGripByVisual=this.findGripByVisual.bind(this)}return d.prototype.findGripByVisual=function(r){return this.topLeft.ownsTarget(r)?this.topLeft:this.topCenter.ownsTarget(r)?this.topCenter:this.topRight.ownsTarget(r)?this.topRight:this.centerLeft.ownsTarget(r)?this.centerLeft:this.centerRight.ownsTarget(r)?this.centerRight:this.bottomLeft.ownsTarget(r)?this.bottomLeft:this.bottomCenter.ownsTarget(r)?this.bottomCenter:this.bottomRight.ownsTarget(r)?this.bottomRight:void 0},d}(),Ft=function(){function d(){this.GRIP_SIZE=10,this.visual=P.createGroup(),this.visual.appendChild(P.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(P.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return d.prototype.ownsTarget=function(r){return r===this.visual||r===this.visual.childNodes[0]||r===this.visual.childNodes[1]},d}(),bt=function(){function d(){}return d.toITransformMatrix=function(r){return{a:r.a,b:r.b,c:r.c,d:r.d,e:r.e,f:r.f}},d.toSVGMatrix=function(r,a){return r.a=a.a,r.b=a.b,r.c=a.c,r.d=a.d,r.e=a.e,r.f=a.f,r},d}(),ut=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.left=0,c.top=0,c.width=0,c.height=0,c.defaultSize={x:50,y:20},c.offsetX=0,c.offsetY=0,c.rotationAngle=0,c.CB_DISTANCE=10,c._suppressMarkerCreateEvent=!1,c.container.transform.baseVal.appendItem(P.createTransform()),c.setupControlBox(),c}return ze(r,d),Object.defineProperty(r.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visual",{get:function(){return this._visual},set:function(a){this._visual=a;var u=P.createTransform();this._visual.transform.baseVal.appendItem(u)},enumerable:!1,configurable:!0}),r.prototype.ownsTarget=function(a){return!!d.prototype.ownsTarget.call(this,a)||!!(this.controlGrips.findGripByVisual(a)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(a))},r.prototype.pointerDown=function(a,u){d.prototype.pointerDown.call(this,a,u),this.state==="new"&&(this.left=a.x,this.top=a.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var m=this.unrotatePoint(a);if(this.manipulationStartX=m.x,this.manipulationStartY=m.y,this.offsetX=m.x-this.left,this.offsetY=m.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(u),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(u)){this.activeGrip=this.rotatorGrip;var c=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=c.x-this.width/2,this.top=c.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Y=this.container.transform.baseVal.getItem(0);Y.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Y,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},r.prototype.pointerUp=function(a){var u=this.state;d.prototype.pointerUp.call(this,a),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(a),this._state="select",u==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},r.prototype.moveVisual=function(a){this.visual.style.transform="translate("+a.x+"px, "+a.y+"px)"},r.prototype.manipulate=function(a){var u=this.unrotatePoint(a);this.state==="creating"?this.resize(a):this.state==="move"?(this.left=this.manipulationStartLeft+(u.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(u.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(u):this.state==="rotate"&&this.rotate(a)},r.prototype.resize=function(a){var u=this.manipulationStartLeft,m=this.manipulationStartWidth,c=this.manipulationStartTop,Y=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:u=this.manipulationStartLeft+a.x-this.manipulationStartX,m=this.manipulationStartWidth+this.manipulationStartLeft-u;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:m=this.manipulationStartWidth+a.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:c=this.manipulationStartTop+a.y-this.manipulationStartY,Y=this.manipulationStartHeight+this.manipulationStartTop-c;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Y=this.manipulationStartHeight+a.y-this.manipulationStartY}m>=0?(this.left=u,this.width=m):(this.left=u+m,this.width=-m),Y>=0?(this.top=c,this.height=Y):(this.top=c+Y,this.height=-Y),this.setSize()},r.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},r.prototype.rotate=function(a){if(Math.abs(a.x-this.centerX)>.1){var u=Math.sign(a.x-this.centerX);this.rotationAngle=180*Math.atan((a.y-this.centerY)/(a.x-this.centerX))/Math.PI+90*u,this.applyRotation()}},r.prototype.applyRotation=function(){var a=this.container.transform.baseVal.getItem(0);a.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(a,0)},r.prototype.rotatePoint=function(a){if(this.rotationAngle===0)return a;var u=this.container.getCTM(),m=P.createPoint(a.x,a.y);return{x:(m=m.matrixTransform(u)).x,y:m.y}},r.prototype.unrotatePoint=function(a){if(this.rotationAngle===0)return a;var u=this.container.getCTM();u=u.inverse();var m=P.createPoint(a.x,a.y);return{x:(m=m.matrixTransform(u)).x,y:m.y}},r.prototype.select=function(){d.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},r.prototype.deselect=function(){d.prototype.deselect.call(this),this.controlBox.style.display="none"},r.prototype.setupControlBox=function(){this.controlBox=P.createGroup();var a=P.createTransform();a.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(a),this.container.appendChild(this.controlBox),this.controlRect=P.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=P.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 ot,this.addControlGrips(),this.controlBox.style.display="none"},r.prototype.adjustControlBox=function(){var a=this.controlBox.transform.baseVal.getItem(0);a.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(a,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()},r.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()},r.prototype.createGrip=function(){var a=new Ft;return a.visual.transform.baseVal.appendItem(P.createTransform()),this.controlBox.appendChild(a.visual),a},r.prototype.positionGrips=function(){var a=this.controlGrips.topLeft.GRIP_SIZE,u=-a/2,m=u,c=(this.width+this.CB_DISTANCE)/2-a/2,Y=(this.height+this.CB_DISTANCE)/2-a/2,Ge=this.height+this.CB_DISTANCE-a/2,ve=this.width+this.CB_DISTANCE-a/2;this.positionGrip(this.controlGrips.topLeft.visual,u,m),this.positionGrip(this.controlGrips.topCenter.visual,c,m),this.positionGrip(this.controlGrips.topRight.visual,ve,m),this.positionGrip(this.controlGrips.centerLeft.visual,u,Y),this.positionGrip(this.controlGrips.centerRight.visual,ve,Y),this.positionGrip(this.controlGrips.bottomLeft.visual,u,Ge),this.positionGrip(this.controlGrips.bottomCenter.visual,c,Ge),this.positionGrip(this.controlGrips.bottomRight.visual,ve,Ge),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,c,m-3*this.CB_DISTANCE)},r.prototype.positionGrip=function(a,u,m){var c=a.transform.baseVal.getItem(0);c.setTranslate(u,m),a.transform.baseVal.replaceItem(c,0)},r.prototype.hideControlBox=function(){this.controlBox.style.display="none"},r.prototype.showControlBox=function(){this.controlBox.style.display=""},r.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:bt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:bt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},d.prototype.getState.call(this))},r.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a);var u=a;this.left=u.left,this.top=u.top,this.width=u.width,this.height=u.height,this.rotationAngle=u.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(bt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,u.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(bt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,u.containerTransformMatrix))},r.prototype.scale=function(a,u){d.prototype.scale.call(this,a,u);var m=this.rotatePoint({x:this.left,y:this.top}),c=this.unrotatePoint({x:m.x*a,y:m.y*u});this.left=c.x,this.top=c.y,this.width=this.width*a,this.height=this.height*u,this.adjustControlBox()},r}(Ke),st=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.fillColor="transparent",c.strokeColor="transparent",c.strokeWidth=0,c.strokeDasharray="",c.opacity=1,c.setStrokeColor=c.setStrokeColor.bind(c),c.setFillColor=c.setFillColor.bind(c),c.setStrokeWidth=c.setStrokeWidth.bind(c),c.setStrokeDasharray=c.setStrokeDasharray.bind(c),c.createVisual=c.createVisual.bind(c),c}return ze(r,d),r.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.visual)},r.prototype.createVisual=function(){this.visual=P.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)},r.prototype.pointerDown=function(a,u){d.prototype.pointerDown.call(this,a,u),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},r.prototype.manipulate=function(a){d.prototype.manipulate.call(this,a)},r.prototype.resize=function(a){d.prototype.resize.call(this,a),this.setSize()},r.prototype.setSize=function(){d.prototype.setSize.call(this),P.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},r.prototype.pointerUp=function(a){d.prototype.pointerUp.call(this,a),this.setSize()},r.prototype.setStrokeColor=function(a){this.strokeColor=a,this.visual&&P.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(a),this.stateChanged()},r.prototype.setFillColor=function(a){this.fillColor=a,this.visual&&P.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},r.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.visual&&P.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},r.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.visual&&P.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},r.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},d.prototype.getState.call(this))},r.prototype.restoreState=function(a){var u=a;this.fillColor=u.fillColor,this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.opacity=u.opacity,this.createVisual(),d.prototype.restoreState.call(this,a),this.setSize()},r.prototype.scale=function(a,u){d.prototype.scale.call(this,a,u),this.setSize()},r.title="Rectangle marker",r}(ut),St=function(d){function r(a,u,m,c){var Y=d.call(this,a,c||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Y.widths=[],Y.widthBoxes=[],Y.widths=u,Y.currentWidth=m,Y.setCurrentWidth=Y.setCurrentWidth.bind(Y),Y}return ze(r,d),r.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2",this.widths.forEach(function(m){var c=document.createElement("div");c.style.display="flex",c.style.flexGrow="2",c.style.alignItems="center",c.style.justifyContent="space-between",c.style.padding="5px",c.style.borderWidth="2px",c.style.borderStyle="solid",c.style.borderColor=m===a.currentWidth?a.uiStyleSettings.toolboxAccentColor:"transparent",c.addEventListener("click",function(){a.setCurrentWidth(m,c)}),u.appendChild(c);var Y=document.createElement("div");Y.innerText=m.toString(),Y.style.marginRight="5px",c.appendChild(Y);var Ge=document.createElement("div");Ge.style.minHeight="20px",Ge.style.flexGrow="2",Ge.style.display="flex",Ge.style.alignItems="center";var ve=document.createElement("hr");ve.style.minWidth="20px",ve.style.border="0px",ve.style.borderTop=m+"px solid "+a.uiStyleSettings.toolboxColor,ve.style.flexGrow="2",Ge.appendChild(ve),c.appendChild(Ge),a.widthBoxes.push(c)}),u},r.prototype.setCurrentWidth=function(a,u){var m=this;this.currentWidth=a,this.widthBoxes.forEach(function(c){c.style.borderColor=c===u?m.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},r}(gt),ct=function(d){function r(a,u,m,c){var Y=d.call(this,a,c||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Y.styles=[],Y.styleBoxes=[],Y.styles=u,Y.currentStyle=m,Y.setCurrentStyle=Y.setCurrentStyle.bind(Y),Y}return ze(r,d),r.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2",this.styles.forEach(function(m){var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",c.style.justifyContent="space-between",c.style.padding="5px",c.style.borderWidth="2px",c.style.borderStyle="solid",c.style.overflow="hidden",c.style.maxWidth=100/a.styles.length-5+"%",c.style.borderColor=m===a.currentStyle?a.uiStyleSettings.toolboxAccentColor:"transparent",c.addEventListener("click",function(){a.setCurrentStyle(m,c)}),u.appendChild(c);var Y=document.createElement("div");Y.style.minHeight="20px",Y.style.flexGrow="2",Y.style.overflow="hidden";var Ge=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+a.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(m!==""?'stroke-dasharray="'+m+'"':"")+` />
|
|
</svg>`;Y.innerHTML=Ge,c.appendChild(Y),a.styleBoxes.push(c)}),u},r.prototype.setCurrentStyle=function(a,u){var m=this;this.currentStyle=a,this.styleBoxes.forEach(function(c){c.style.borderColor=c===u?m.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},r}(gt),xt=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.strokeColor=m.defaultColor,c.strokeWidth=m.defaultStrokeWidth,c.strokeDasharray=m.defaultStrokeDasharray,c.strokePanel=new $e("Line color",m.defaultColorSet,m.defaultColor),c.strokePanel.onColorChanged=c.setStrokeColor,c.strokeWidthPanel=new St("Line width",m.defaultStrokeWidths,m.defaultStrokeWidth),c.strokeWidthPanel.onWidthChanged=c.setStrokeWidth,c.strokeStylePanel=new ct("Line style",m.defaultStrokeDasharrays,m.defaultStrokeDasharray),c.strokeStylePanel.onStyleChanged=c.setStrokeDasharray,c}return ze(r,d),Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=d.prototype.getState.call(this);return a.typeName=r.typeName,a},r.typeName="FrameMarker",r.title="Frame marker",r.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',r}(st),Te=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},Dt=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.x1=0,c.y1=0,c.x2=0,c.y2=0,c.defaultLength=50,c.manipulationStartX=0,c.manipulationStartY=0,c.manipulationStartX1=0,c.manipulationStartY1=0,c.manipulationStartX2=0,c.manipulationStartY2=0,c.setupControlBox(),c}return ze(r,d),r.prototype.ownsTarget=function(a){return!!d.prototype.ownsTarget.call(this,a)||!(!this.grip1.ownsTarget(a)&&!this.grip2.ownsTarget(a))},r.prototype.pointerDown=function(a,u){d.prototype.pointerDown.call(this,a,u),this.manipulationStartX=a.x,this.manipulationStartY=a.y,this.state==="new"&&(this.x1=a.x,this.y1=a.y,this.x2=a.x,this.y2=a.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(u)?this.activeGrip=this.grip1:this.grip2.ownsTarget(u)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},r.prototype.pointerUp=function(a){var u=this.state;d.prototype.pointerUp.call(this,a),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(a),this._state="select",u==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},r.prototype.adjustVisual=function(){},r.prototype.manipulate=function(a){this.state==="creating"?this.resize(a):this.state==="move"?(this.x1=this.manipulationStartX1+a.x-this.manipulationStartX,this.y1=this.manipulationStartY1+a.y-this.manipulationStartY,this.x2=this.manipulationStartX2+a.x-this.manipulationStartX,this.y2=this.manipulationStartY2+a.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(a)},r.prototype.resize=function(a){switch(this.activeGrip){case this.grip1:this.x1=a.x,this.y1=a.y;break;case this.grip2:case void 0:this.x2=a.x,this.y2=a.y}this.adjustVisual(),this.adjustControlBox()},r.prototype.select=function(){d.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},r.prototype.deselect=function(){d.prototype.deselect.call(this),this.controlBox.style.display="none"},r.prototype.setupControlBox=function(){this.controlBox=P.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},r.prototype.adjustControlBox=function(){this.positionGrips()},r.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},r.prototype.createGrip=function(){var a=new Ft;return a.visual.transform.baseVal.appendItem(P.createTransform()),this.controlBox.appendChild(a.visual),a},r.prototype.positionGrips=function(){var a=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-a/2,this.y1-a/2),this.positionGrip(this.grip2.visual,this.x2-a/2,this.y2-a/2)},r.prototype.positionGrip=function(a,u,m){var c=a.transform.baseVal.getItem(0);c.setTranslate(u,m),a.transform.baseVal.replaceItem(c,0)},r.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},d.prototype.getState.call(this))},r.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a);var u=a;this.x1=u.x1,this.y1=u.y1,this.x2=u.x2,this.y2=u.y2},r.prototype.scale=function(a,u){d.prototype.scale.call(this,a,u),this.x1=this.x1*a,this.y1=this.y1*u,this.x2=this.x2*a,this.y2=this.y2*u,this.adjustVisual(),this.adjustControlBox()},r}(Ke),ht=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.strokeColor="transparent",c.strokeWidth=0,c.strokeDasharray="",c.setStrokeColor=c.setStrokeColor.bind(c),c.setStrokeWidth=c.setStrokeWidth.bind(c),c.setStrokeDasharray=c.setStrokeDasharray.bind(c),c.strokeColor=m.defaultColor,c.strokeWidth=m.defaultStrokeWidth,c.strokeDasharray=m.defaultStrokeDasharray,c.strokePanel=new $e("Line color",m.defaultColorSet,m.defaultColor),c.strokePanel.onColorChanged=c.setStrokeColor,c.strokeWidthPanel=new St("Line width",m.defaultStrokeWidths,m.defaultStrokeWidth),c.strokeWidthPanel.onWidthChanged=c.setStrokeWidth,c.strokeStylePanel=new ct("Line style",m.defaultStrokeDasharrays,m.defaultStrokeDasharray),c.strokeStylePanel.onStyleChanged=c.setStrokeDasharray,c}return ze(r,d),r.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.visual&&a!==this.selectorLine&&a!==this.visibleLine)},r.prototype.createVisual=function(){this.visual=P.createGroup(),this.selectorLine=P.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=P.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)},r.prototype.pointerDown=function(a,u){d.prototype.pointerDown.call(this,a,u),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},r.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()),P.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),P.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),P.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},r.prototype.setStrokeColor=function(a){this.strokeColor=a,this.adjustVisual(),this.colorChanged(a)},r.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.adjustVisual()},r.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.adjustVisual(),this.stateChanged()},Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},d.prototype.getState.call(this));return a.typeName=r.typeName,a},r.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a);var u=a;this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.createVisual(),this.adjustVisual()},r.typeName="LineMarker",r.title="Line marker",r.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',r}(Dt),Le=function(d){function r(a,u,m,c){var Y=d.call(this,a,c||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Y.fonts=[],Y.fontBoxes=[],Y.fonts=u,Y.currentFont=m,Y.setCurrentFont=Y.setCurrentFont.bind(Y),Y}return ze(r,d),r.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.overflow="hidden",u.style.flexGrow="2",this.fonts.forEach(function(m){var c=document.createElement("div");c.style.display="inline-block",c.style.alignItems="center",c.style.justifyContent="space-between",c.style.padding="5px",c.style.borderWidth="2px",c.style.borderStyle="solid",c.style.overflow="hidden",c.style.maxWidth=100/a.fonts.length-5+"%",c.style.borderColor=m===a.currentFont?a.uiStyleSettings.toolboxAccentColor:"transparent",c.addEventListener("click",function(){a.setCurrentFont(m,c)}),u.appendChild(c);var Y=document.createElement("div");Y.style.display="flex",Y.style.minHeight="20px",Y.style.flexGrow="2",Y.style.fontFamily=m,Y.style.overflow="hidden";var Ge=document.createElement("div");Ge.style.whiteSpace="nowrap",Ge.style.overflow="hidden",Ge.style.textOverflow="ellipsis",Ge.innerHTML="The quick brown fox jumps over the lazy dog",Y.appendChild(Ge),c.appendChild(Y),a.fontBoxes.push(c)}),u},r.prototype.setCurrentFont=function(a,u){var m=this;this.currentFont=a,this.fontBoxes.forEach(function(c){c.style.borderColor=c===u?m.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},r}(gt),Xe=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.color="transparent",c.padding=5,c.DEFAULT_TEXT="your text here",c.text=c.DEFAULT_TEXT,c.isMoved=!1,c.color=m.defaultColor,c.fontFamily=m.defaultFontFamily,c.defaultSize={x:100,y:30},c.setColor=c.setColor.bind(c),c.setFont=c.setFont.bind(c),c.renderText=c.renderText.bind(c),c.sizeText=c.sizeText.bind(c),c.textEditDivClicked=c.textEditDivClicked.bind(c),c.showTextEditor=c.showTextEditor.bind(c),c.setSize=c.setSize.bind(c),c.positionTextEditor=c.positionTextEditor.bind(c),c.colorPanel=new $e("Color",m.defaultColorSet,m.defaultColor),c.colorPanel.onColorChanged=c.setColor,c.fontFamilyPanel=new Le("Font",m.defaultFontFamilies,m.defaultFontFamily),c.fontFamilyPanel.onFontChanged=c.setFont,c}return ze(r,d),r.prototype.ownsTarget=function(a){if(d.prototype.ownsTarget.call(this,a)||a===this.visual||a===this.textElement||a===this.bgRectangle)return!0;var u=!1;return this.textElement.childNodes.forEach(function(m){m===a&&(u=!0)}),u},r.prototype.createVisual=function(){this.visual=P.createGroup(),this.bgRectangle=P.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=P.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(P.createTransform()),this.textElement.transform.baseVal.appendItem(P.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},r.prototype.pointerDown=function(a,u){d.prototype.pointerDown.call(this,a,u),this.isMoved=!1,this.pointerDownPoint=a,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},r.prototype.renderText=function(){var a=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(u){a.textElement.appendChild(P.createTSpan(u.trim()===""?" ":u.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},r.prototype.getTextScale=function(){var a=this.textElement.getBBox(),u=1;if(a.width>0&&a.height>0){var m=(1*this.width-this.width*this.padding*2/100)/a.width,c=(1*this.height-this.height*this.padding*2/100)/a.height;u=Math.min(m,c)}return u},r.prototype.getTextPosition=function(a){var u=this.textElement.getBBox(),m=0,c=0;return u.width>0&&u.height>0&&(m=(this.width-u.width*a)/2,c=this.height/2-u.height*a/2),{x:m,y:c}},r.prototype.sizeText=function(){var a=this.textElement.getBBox(),u=this.getTextScale(),m=this.getTextPosition(u);m.y-=a.y*u,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+m.x+"px, "+m.y+"px) scale("+u+", "+u+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(m.x,m.y),this.textElement.transform.baseVal.getItem(1).setScale(u,u))},r.prototype.manipulate=function(a){d.prototype.manipulate.call(this,a),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(a.x-this.pointerDownPoint.x)>5||Math.abs(a.y-this.pointerDownPoint.y)>5)},r.prototype.resize=function(a){d.prototype.resize.call(this,a),this.isMoved=!0,this.setSize(),this.sizeText()},r.prototype.setSize=function(){d.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(P.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),P.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},r.prototype.pointerUp=function(a){var u=this.state;u==="creating"&&(this._suppressMarkerCreateEvent=!0),d.prototype.pointerUp.call(this,a),this.setSize(),(u==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},r.prototype.showTextEditor=function(){var a=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(u){u.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var u=Number.parseFloat(a.textEditor.style.fontSize);a.textEditor.clientWidth>=Number.parseInt(a.textEditor.style.maxWidth)&&u>.9;)u-=.1,a.textEditor.style.fontSize=Math.max(u,.9)+"em"}),this.textEditor.addEventListener("keyup",function(u){u.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(u){if(u.clipboardData){var m=u.clipboardData.getData("text"),c=window.getSelection();if(!c.rangeCount)return!1;c.deleteFromDocument(),c.getRangeAt(0).insertNode(document.createTextNode(m)),u.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){a.textEditDivClicked(a.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},r.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var a=this.getTextScale(),u=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),m=this.textElement.getBBox(),c={x:m.width*a,y:m.height*a};u.x-=c.x/2,u.y-=c.y/2,this.textEditor.style.top=u.y+"px",this.textEditor.style.left=u.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-u.x+"px",this.textEditor.style.fontSize=Math.max(16*a,12)+"px",this.textElement.style.display="none"}},r.prototype.textEditDivClicked=function(a){this.text=a.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},r.prototype.select=function(){d.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},r.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),d.prototype.deselect.call(this)},r.prototype.dblClick=function(a,u){d.prototype.dblClick.call(this,a,u),this.showTextEditor()},r.prototype.setColor=function(a){this.textElement&&P.setAttributes(this.textElement,[["fill",a]]),this.color=a,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(a)},r.prototype.setFont=function(a){this.textElement&&P.setAttributes(this.textElement,[["font-family",a]]),this.fontFamily=a,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},r.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},r.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},d.prototype.getState.call(this));return a.typeName=r.typeName,a},r.prototype.restoreState=function(a){var u=a;this.color=u.color,this.fontFamily=u.fontFamily,this.padding=u.padding,this.text=u.text,this.createVisual(),d.prototype.restoreState.call(this,a),this.setSize()},r.prototype.scale=function(a,u){d.prototype.scale.call(this,a,u),this.setSize(),this.sizeText(),this.positionTextEditor()},r.typeName="TextMarker",r.title="Text marker",r.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',r}(ut),ie=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.color="transparent",c.lineWidth=3,c.drawing=!1,c.pixelRatio=1,c.color=m.defaultColor,c.lineWidth=m.defaultStrokeWidth,c.pixelRatio=m.freehandPixelRatio,c.setColor=c.setColor.bind(c),c.addCanvas=c.addCanvas.bind(c),c.finishCreation=c.finishCreation.bind(c),c.setLineWidth=c.setLineWidth.bind(c),c.colorPanel=new $e("Color",m.defaultColorSet,m.defaultColor),c.colorPanel.onColorChanged=c.setColor,c.lineWidthPanel=new St("Line width",m.defaultStrokeWidths,m.defaultStrokeWidth),c.lineWidthPanel.onWidthChanged=c.setLineWidth,c}return ze(r,d),r.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.visual&&a!==this.drawingImage)},r.prototype.createVisual=function(){this.visual=P.createGroup(),this.drawingImage=P.createImage(),this.visual.appendChild(this.drawingImage);var a=P.createTransform();this.visual.transform.baseVal.appendItem(a),this.addMarkerVisualToContainer(this.visual)},r.prototype.pointerDown=function(a,u){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(a.x,a.y),this.drawing=!0):d.prototype.pointerDown.call(this,a,u)},r.prototype.manipulate=function(a){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(a.x,a.y),this.canvasContext.stroke()):d.prototype.manipulate.call(this,a)},r.prototype.resize=function(a){d.prototype.resize.call(this,a),P.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),P.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},r.prototype.pointerUp=function(a){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):d.prototype.pointerUp.call(this,a)},r.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)},r.prototype.select=function(){this.state==="creating"&&this.finishCreation(),d.prototype.select.call(this)},r.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),d.prototype.deselect.call(this)},r.prototype.finishCreation=function(){for(var a=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),u=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],m=u[0],c=u[1],Y=u[2],Ge=u[3],ve=!1,Lt=0;Lt<this.canvasElement.height;Lt++)for(var Qe=0;Qe<this.canvasElement.width;Qe++)a.data[Lt*this.canvasElement.width*4+4*Qe+3]>0&&(ve=!0,Lt<c&&(c=Lt),Qe<m&&(m=Qe),Lt>Ge&&(Ge=Lt),Qe>Y&&(Y=Qe));if(ve){this.left=m/this.pixelRatio,this.top=c/this.pixelRatio,this.width=(Y-m)/this.pixelRatio,this.height=(Ge-c)/this.pixelRatio;var Et=document.createElement("canvas");Et.width=Y-m,Et.height=Ge-c,Et.getContext("2d").putImageData(this.canvasContext.getImageData(m,c,Y-m,Ge-c),0,0),this.drawingImgUrl=Et.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},r.prototype.setDrawingImage=function(){P.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),P.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},r.prototype.setColor=function(a){this.color=a,this.colorChanged(a)},r.prototype.setLineWidth=function(a){this.lineWidth=a},Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=Object.assign({drawingImgUrl:this.drawingImgUrl},d.prototype.getState.call(this));return a.typeName=r.typeName,a},r.prototype.restoreState=function(a){this.createVisual(),d.prototype.restoreState.call(this,a),this.drawingImgUrl=a.drawingImgUrl,this.setDrawingImage()},r.prototype.scale=function(a,u){d.prototype.scale.call(this,a,u),this.setDrawingImage()},r.typeName="FreehandMarker",r.title="Freehand marker",r.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',r}(ut),Z=function(d){function r(a,u,m){var c=d.call(this,a,m||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return c.typeBoxes=[],c.currentType=u,c.setCurrentType=c.setCurrentType.bind(c),c}return ze(r,d),r.prototype.getUi=function(){var a=this,u=document.createElement("div");u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2";for(var m=function(Ge){var ve="both";switch(Ge){case 0:ve="both";break;case 1:ve="start";break;case 2:ve="end";break;case 3:ve="none"}var Lt=document.createElement("div");if(Lt.style.display="flex",Lt.style.flexGrow="2",Lt.style.alignItems="center",Lt.style.justifyContent="space-between",Lt.style.padding="5px",Lt.style.borderWidth="2px",Lt.style.borderStyle="solid",Lt.style.borderColor=ve===c.currentType?c.uiStyleSettings.toolboxAccentColor:"transparent",Lt.addEventListener("click",function(){a.setCurrentType(ve,Lt)}),u.appendChild(Lt),ve==="both"||ve==="start"){var Qe=document.createElement("div");Qe.style.display="flex",Qe.style.alignItems="center",Qe.style.minHeight="20px",Qe.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,5 10,0 10,10" fill="`+(c.uiStyleSettings!==void 0?c.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Qe.style.marginLeft="5px",Lt.appendChild(Qe)}var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.style.flexGrow="2";var At=document.createElement("hr");if(At.style.minWidth="20px",At.style.border="0px",At.style.borderTop="3px solid "+(c.uiStyleSettings!==void 0?c.uiStyleSettings.toolboxColor:"#eeeeee"),At.style.flexGrow="2",Et.appendChild(At),Lt.appendChild(Et),ve==="both"||ve==="end"){var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.minHeight="20px",kt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,0 10,5 0,10" fill="`+(c.uiStyleSettings!==void 0?c.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,kt.style.marginRight="5px",Lt.appendChild(kt)}c.typeBoxes.push(Lt)},c=this,Y=0;Y<4;Y++)m(Y);return u},r.prototype.setCurrentType=function(a,u){var m=this;this.currentType=a,this.typeBoxes.forEach(function(c){c.style.borderColor=c===u?m.uiStyleSettings!==void 0?m.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},r}(gt),ee=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.arrowType="end",c.arrowBaseHeight=10,c.arrowBaseWidth=10,c.getArrowPoints=c.getArrowPoints.bind(c),c.setArrowType=c.setArrowType.bind(c),c.arrowTypePanel=new Z("Arrow type","end"),c.arrowTypePanel.onArrowTypeChanged=c.setArrowType,c}return ze(r,d),r.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.arrow1&&a!==this.arrow2)},r.prototype.getArrowPoints=function(a,u){var m=this.arrowBaseWidth+2*this.strokeWidth,c=this.arrowBaseHeight+2*this.strokeWidth;return a-m/2+","+(u+c/2)+" "+a+","+(u-c/2)+" "+(a+m/2)+","+(u+c/2)},r.prototype.createTips=function(){this.arrow1=P.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(P.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=P.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(P.createTransform()),this.visual.appendChild(this.arrow2)},r.prototype.pointerDown=function(a,u){d.prototype.pointerDown.call(this,a,u),this.state==="creating"&&this.createTips()},r.prototype.adjustVisual=function(){if(d.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",P.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),P.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var a=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),u=this.arrow1.transform.baseVal.getItem(0);u.setRotate(a,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(u,0);var m=this.arrow2.transform.baseVal.getItem(0);m.setRotate(a+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(m,0)}},r.prototype.setArrowType=function(a){this.arrowType=a,this.adjustVisual(),this.stateChanged()},Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=Object.assign({arrowType:this.arrowType},d.prototype.getState.call(this));return a.typeName=r.typeName,a},r.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a);var u=a;this.arrowType=u.arrowType,this.createTips(),this.adjustVisual()},r.typeName="ArrowMarker",r.title="Arrow marker",r.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',r}(ht),E=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.fillColor=m.defaultFillColor,c.strokeWidth=0,c.fillPanel=new $e("Color",m.defaultColorSet,m.defaultFillColor),c.fillPanel.onColorChanged=c.setFillColor,c}return ze(r,d),Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=d.prototype.getState.call(this);return a.typeName=r.typeName,a},r.typeName="CoverMarker",r.title="Cover marker",r.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',r}(st),x=function(d){function r(a,u,m,c){var Y=d.call(this,a,c||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Y.opacities=[],Y.opacityBoxes=[],Y.opacities=u,Y.currentOpacity=m,Y.setCurrentOpacity=Y.setCurrentOpacity.bind(Y),Y}return ze(r,d),r.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2",u.style.justifyContent="space-between",this.opacities.forEach(function(m){var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",c.style.justifyContent="center",c.style.padding="5px",c.style.borderWidth="2px",c.style.borderStyle="solid",c.style.borderColor=m===a.currentOpacity?a.uiStyleSettings.toolboxAccentColor:"transparent",c.addEventListener("click",function(){a.setCurrentOpacity(m,c)}),u.appendChild(c);var Y=document.createElement("div");Y.innerText=100*m+"%",c.appendChild(Y),a.opacityBoxes.push(c)}),u},r.prototype.setCurrentOpacity=function(a,u){var m=this;this.currentOpacity=a,this.opacityBoxes.forEach(function(c){c.style.borderColor=c===u?m.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},r}(gt),O=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.setOpacity=c.setOpacity.bind(c),c.fillColor=m.defaultHighlightColor,c.strokeWidth=0,c.opacity=m.defaultHighlightOpacity,c.fillPanel=new $e("Color",m.defaultColorSet,c.fillColor),c.fillPanel.onColorChanged=c.setFillColor,c.opacityPanel=new x("Opacity",m.defaultOpacitySteps,c.opacity),c.opacityPanel.onOpacityChanged=c.setOpacity,c}return ze(r,d),r.prototype.setOpacity=function(a){this.opacity=a,this.visual&&P.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=d.prototype.getState.call(this);return a.typeName=r.typeName,a},r.typeName="HighlightMarker",r.title="Highlight marker",r.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',r}(E),j='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',ge=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.bgColor="transparent",c.tipPosition={x:0,y:0},c.tipBase1Position={x:0,y:0},c.tipBase2Position={x:0,y:0},c.tipMoving=!1,c.color=m.defaultStrokeColor,c.bgColor=m.defaultFillColor,c.fontFamily=m.defaultFontFamily,c.defaultSize={x:100,y:30},c.setBgColor=c.setBgColor.bind(c),c.getTipPoints=c.getTipPoints.bind(c),c.positionTip=c.positionTip.bind(c),c.setTipPoints=c.setTipPoints.bind(c),c.colorPanel=new $e("Text color",m.defaultColorSet,c.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),c.colorPanel.onColorChanged=c.setColor,c.bgColorPanel=new $e("Fill color",m.defaultColorSet,c.bgColor,j),c.bgColorPanel.onColorChanged=c.setBgColor,c.fontFamilyPanel=new Le("Font",m.defaultFontFamilies,m.defaultFontFamily),c.fontFamilyPanel.onFontChanged=c.setFont,c.tipGrip=new Ft,c.tipGrip.visual.transform.baseVal.appendItem(P.createTransform()),c.controlBox.appendChild(c.tipGrip.visual),c}return ze(r,d),r.prototype.ownsTarget=function(a){return d.prototype.ownsTarget.call(this,a)||this.tipGrip.ownsTarget(a)||this.tip===a},r.prototype.createTip=function(){P.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=P.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},r.prototype.pointerDown=function(a,u){this.state==="new"&&d.prototype.pointerDown.call(this,a,u),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(u)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):d.prototype.pointerDown.call(this,a,u)},r.prototype.pointerUp=function(a){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,d.prototype.pointerUp.call(this,a);else{var u=this.state==="creating";d.prototype.pointerUp.call(this,a),this.setTipPoints(u),this.positionTip()}},r.prototype.manipulate=function(a){if(this.tipMoving){var u=this.unrotatePoint(a);this.tipPosition={x:u.x-this.manipulationStartLeft,y:u.y-this.manipulationStartTop},this.positionTip()}else d.prototype.manipulate.call(this,a)},r.prototype.setBgColor=function(a){this.bgRectangle&&this.tip&&(P.setAttributes(this.bgRectangle,[["fill",a]]),P.setAttributes(this.tip,[["fill",a]])),this.bgColor=a,this.fillColorChanged(a)},r.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},r.prototype.setTipPoints=function(a){a===void 0&&(a=!1);var u=Math.min(this.height/2,15),m=this.height/5;a&&(this.tipPosition={x:u+m/2,y:this.height+20});var c=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?c<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(m=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:u,y:0},this.tipBase2Position={x:u+m,y:0}):(this.tipBase1Position={x:0,y:u},this.tipBase2Position={x:0,y:u+m}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?c<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(m=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-u-m,y:0},this.tipBase2Position={x:this.width-u,y:0}):(this.tipBase1Position={x:this.width,y:u},this.tipBase2Position={x:this.width,y:u+m}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?c<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(m=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-u-m,y:this.height},this.tipBase2Position={x:this.width-u,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-u-m},this.tipBase2Position={x:this.width,y:this.height-u}):c<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(m=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:u,y:this.height},this.tipBase2Position={x:u+m,y:this.height}):(this.tipBase1Position={x:0,y:this.height-u},this.tipBase2Position={x:0,y:this.height-u-m})},r.prototype.resize=function(a){d.prototype.resize.call(this,a),this.positionTip()},r.prototype.positionTip=function(){P.setAttributes(this.tip,[["points",this.getTipPoints()]]);var a=this.tipGrip.visual.transform.baseVal.getItem(0);a.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(a,0)},Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),r.prototype.select=function(){this.positionTip(),d.prototype.select.call(this)},r.prototype.getState=function(){var a=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},d.prototype.getState.call(this));return a.typeName=r.typeName,a},r.prototype.restoreState=function(a){var u=a;this.bgColor=u.bgColor,this.tipPosition=u.tipPosition,d.prototype.restoreState.call(this,a),this.createTip(),this.setTipPoints()},r.prototype.scale=function(a,u){d.prototype.scale.call(this,a,u),this.tipPosition={x:this.tipPosition.x*a,y:this.tipPosition.y*u},this.positionTip()},r.typeName="CalloutMarker",r.title="Callout marker",r.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',r}(Xe),Se=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.fillColor="transparent",c.strokeColor="transparent",c.strokeWidth=0,c.strokeDasharray="",c.opacity=1,c.strokeColor=m.defaultColor,c.strokeWidth=m.defaultStrokeWidth,c.strokeDasharray=m.defaultStrokeDasharray,c.fillColor=m.defaultFillColor,c.setStrokeColor=c.setStrokeColor.bind(c),c.setFillColor=c.setFillColor.bind(c),c.setStrokeWidth=c.setStrokeWidth.bind(c),c.setStrokeDasharray=c.setStrokeDasharray.bind(c),c.setOpacity=c.setOpacity.bind(c),c.createVisual=c.createVisual.bind(c),c.strokePanel=new $e("Line color",he(m.defaultColorSet,["transparent"]),m.defaultColor),c.strokePanel.onColorChanged=c.setStrokeColor,c.fillPanel=new $e("Fill color",he(m.defaultColorSet,["transparent"]),c.fillColor,j),c.fillPanel.onColorChanged=c.setFillColor,c.strokeWidthPanel=new St("Line width",m.defaultStrokeWidths,m.defaultStrokeWidth),c.strokeWidthPanel.onWidthChanged=c.setStrokeWidth,c.strokeStylePanel=new ct("Line style",m.defaultStrokeDasharrays,m.defaultStrokeDasharray),c.strokeStylePanel.onStyleChanged=c.setStrokeDasharray,c.opacityPanel=new x("Opacity",m.defaultOpacitySteps,c.opacity),c.opacityPanel.onOpacityChanged=c.setOpacity,c}return ze(r,d),r.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.visual)},r.prototype.createVisual=function(){this.visual=P.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)},r.prototype.pointerDown=function(a,u){d.prototype.pointerDown.call(this,a,u),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},r.prototype.manipulate=function(a){d.prototype.manipulate.call(this,a)},r.prototype.resize=function(a){d.prototype.resize.call(this,a),this.setSize()},r.prototype.setSize=function(){d.prototype.setSize.call(this),P.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},r.prototype.pointerUp=function(a){d.prototype.pointerUp.call(this,a),this.setSize()},r.prototype.setStrokeColor=function(a){this.strokeColor=a,this.visual&&P.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(a),this.stateChanged()},r.prototype.setFillColor=function(a){this.fillColor=a,this.visual&&P.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(a),this.stateChanged()},r.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.visual&&P.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},r.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.visual&&P.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},r.prototype.setOpacity=function(a){this.opacity=a,this.visual&&P.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},d.prototype.getState.call(this));return a.typeName=r.typeName,a},r.prototype.restoreState=function(a){var u=a;this.fillColor=u.fillColor,this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.opacity=u.opacity,this.createVisual(),d.prototype.restoreState.call(this,a),this.setSize()},r.prototype.scale=function(a,u){d.prototype.scale.call(this,a,u),this.setSize()},r.typeName="EllipseMarker",r.title="Ellipse marker",r.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',r}(ut),Ye=function(d){function r(a,u,m){return d.call(this,a,u,m)||this}return ze(r,d),Object.defineProperty(r.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),r.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.tip1&&a!==this.tip2)},r.prototype.createTips=function(){this.tip1=P.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(P.createTransform()),this.visual.appendChild(this.tip1),this.tip2=P.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(P.createTransform()),this.visual.appendChild(this.tip2)},r.prototype.pointerDown=function(a,u){d.prototype.pointerDown.call(this,a,u),this.state==="creating"&&this.createTips()},r.prototype.adjustVisual=function(){if(d.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(P.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()]]),P.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 a=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),u=this.tip1.transform.baseVal.getItem(0);u.setRotate(a,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(u,0);var m=this.tip2.transform.baseVal.getItem(0);m.setRotate(a+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(m,0)}},Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=d.prototype.getState.call(this);return a.typeName=r.typeName,a},r.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a),this.createTips(),this.adjustVisual()},r.typeName="MeasurementMarker",r.title="Measurement marker",r.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',r}(ht),_t=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.strokePanel.colors=m.defaultColorSet,c.fillColor="transparent",c}return ze(r,d),Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=d.prototype.getState.call(this);return a.typeName=r.typeName,a},r.typeName="EllipseFrameMarker",r.title="Ellipse frame marker",r.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',r}(Se),zt=function(){function d(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(d.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),d.prototype.addUndoStep=function(r){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(r)||(this.undoStack.push(r),JSON.stringify(this.lastRedoStep)!==JSON.stringify(r)&&this.redoStack.splice(0,this.redoStack.length))},d.prototype.replaceLastUndoStep=function(r){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=r)},d.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},d.prototype.undo=function(){if(this.undoStack.length>1){var r=this.undoStack.pop();return r!==void 0&&this.redoStack.push(r),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},d.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},d}(),_e=function(d){function r(a,u,m){var c=d.call(this,a,u,m)||this;return c.strokeColor="transparent",c.strokeWidth=0,c.strokeDasharray="",c.curveX=0,c.curveY=0,c.manipulationStartCurveX=0,c.manipulationStartCurveY=0,c.setStrokeColor=c.setStrokeColor.bind(c),c.setStrokeWidth=c.setStrokeWidth.bind(c),c.setStrokeDasharray=c.setStrokeDasharray.bind(c),c.positionGrips=c.positionGrips.bind(c),c.addControlGrips=c.addControlGrips.bind(c),c.adjustVisual=c.adjustVisual.bind(c),c.setupControlBox=c.setupControlBox.bind(c),c.resize=c.resize.bind(c),c.strokeColor=m.defaultColor,c.strokeWidth=m.defaultStrokeWidth,c.strokeDasharray=m.defaultStrokeDasharray,c.strokePanel=new $e("Line color",m.defaultColorSet,m.defaultColor),c.strokePanel.onColorChanged=c.setStrokeColor,c.strokeWidthPanel=new St("Line width",m.defaultStrokeWidths,m.defaultStrokeWidth),c.strokeWidthPanel.onWidthChanged=c.setStrokeWidth,c.strokeStylePanel=new ct("Line style",m.defaultStrokeDasharrays,m.defaultStrokeDasharray),c.strokeStylePanel.onStyleChanged=c.setStrokeDasharray,c}return ze(r,d),r.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.visual&&a!==this.selectorCurve&&a!==this.visibleCurve&&!this.curveGrip.ownsTarget(a))},r.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},r.prototype.createVisual=function(){this.visual=P.createGroup(),this.selectorCurve=P.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=P.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)},r.prototype.pointerDown=function(a,u){d.prototype.pointerDown.call(this,a,u),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=a.x,this.curveY=a.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(u)&&(this.activeGrip=this.curveGrip,this._state="resize")},r.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),P.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),P.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),P.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},r.prototype.setupControlBox=function(){d.prototype.setupControlBox.call(this),this.curveControlLine1=P.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=P.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)},r.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,d.prototype.addControlGrips.call(this)},r.prototype.positionGrips=function(){d.prototype.positionGrips.call(this);var a=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-a/2,this.curveY-a/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()))},r.prototype.manipulate=function(a){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+a.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+a.y-this.manipulationStartY),d.prototype.manipulate.call(this,a)},r.prototype.resize=function(a){this.activeGrip===this.curveGrip&&(this.curveX=a.x,this.curveY=a.y),d.prototype.resize.call(this,a),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},r.prototype.setStrokeColor=function(a){this.strokeColor=a,this.adjustVisual(),this.colorChanged(a)},r.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.adjustVisual()},r.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.adjustVisual()},r.prototype.scale=function(a,u){this.curveX=this.curveX*a,this.curveY=this.curveY*u,d.prototype.scale.call(this,a,u)},Object.defineProperty(r.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),r.prototype.getState=function(){var a=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},d.prototype.getState.call(this));return a.typeName=r.typeName,a},r.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a);var u=a;this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.curveX=u.curveX,this.curveY=u.curveY,this.createVisual(),this.adjustVisual()},r.typeName="CurveMarker",r.title="Curve marker",r.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',r}(Dt),Ot=function(){function d(r,a){a===void 0&&(a=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=r,this.cancelable=a}return Object.defineProperty(d.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),d.prototype.preventDefault=function(){this._defaultPrevented=!0},d}(),Ct=function(d){function r(a,u,m){var c=d.call(this,a,!1)||this;return c.dataUrl=u,c.state=m,c}return ze(r,d),r}(Ot),et=function(d){function r(a,u,m){m===void 0&&(m=!1);var c=d.call(this,a,m)||this;return c.marker=u,c}return ze(r,d),r}(Ot),Zt=function(){function d(){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 d.prototype.addEventListener=function(r,a){this[r].push(a)},d.prototype.removeEventListener=function(r,a){var u=this[r].indexOf(a);u>-1&&this[r].splice(u,1)},d}(),Kt=function(){function d(r){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Te,this._isOpen=!1,this.undoRedoManager=new zt,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 Zt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=d.instanceCounter++,this.styles=new ft(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=r,this.targetRoot=document.body,this.width=r.clientWidth,this.height=r.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(d.prototype,"ALL_MARKER_TYPES",{get:function(){return[xt,ie,ee,Xe,_t,Se,O,ge,Ye,E,ht,_e]},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[xt,ie,ee,Xe,Se,O,ge]},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"BASIC_MARKER_TYPES",{get:function(){return[xt,ie,ee,Xe,O]},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(r){var a=this;this._availableMarkerTypes.splice(0),r.forEach(function(u){if(typeof u=="string"){var m=a.ALL_MARKER_TYPES.find(function(c){return c.typeName===u});m!==void 0&&a._availableMarkerTypes.push(m)}else a._availableMarkerTypes.push(u)})},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(r){this._zoomLevel=r,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(d.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),d.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),nt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},d.prototype.show=function(){var r=this;this.styles.styleSheetRoot===void 0&&Ut.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ut.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(a){return a(new Ot(r))})},d.prototype.render=function(){return Pe(this,void 0,void 0,function(){var r;return Fe(this,function(a){switch(a.label){case 0:return this.setCurrentMarker(),(r=new Tt).naturalSize=this.renderAtNaturalSize,r.imageType=this.renderImageType,r.imageQuality=this.renderImageQuality,r.markersOnly=this.renderMarkersOnly,r.width=this.renderWidth,r.height=this.renderHeight,[4,r.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return a.sent(),[4,r.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,a.sent()]}})})},d.prototype.close=function(r){var a=this;if(r===void 0&&(r=!1),this.isOpen){var u=!1;r||this.eventListeners.beforeclose.forEach(function(m){var c=new Ot(a,!0);m(c),c.defaultPrevented&&(u=!0)}),u||(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(m){return m(new Ot(a))}),this.detachEvents(),this._isOpen=!1)}},d.prototype.addMarkersToToolbar=function(){for(var r,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];(r=this._availableMarkerTypes).push.apply(r,a)},d.prototype.addRenderEventListener=function(r){this.addEventListener("render",function(a){r(a.dataUrl,a.state)})},d.prototype.removeRenderEventListener=function(r){},d.prototype.addCloseEventListener=function(r){this.addEventListener("close",function(){r()})},d.prototype.removeCloseEventListener=function(r){},d.prototype.setupResizeObserver=function(){var r=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){r.resize(r.target.clientWidth,r.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return r.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},d.prototype.onPopupTargetResize=function(){var r=1*this.target.clientWidth/this.target.clientHeight,a=this.editorCanvas.clientWidth/r>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*r:this.editorCanvas.clientWidth,u=a<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/r;this.resize(a,u)},d.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},d.prototype.resize=function(r,a){this._isResizing=!0;var u=r/this.imageWidth,m=a/this.imageHeight;this.imageWidth=Math.round(r),this.imageHeight=Math.round(a),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(u,m),this._isResizing=!1},d.prototype.scaleMarkers=function(r,a){var u,m=this;this._currentMarker&&this._currentMarker instanceof Xe?this._currentMarker.scale(r,a):(u=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(c){c!==m._currentMarker&&c.scale(r,a)}),u!==void 0&&this.setCurrentMarker(u)},d.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},d.prototype.setTopLeft=function(){var r=this.editingTarget.getBoundingClientRect(),a=this.editorCanvas.getBoundingClientRect();this.left=r.left-a.left,this.top=r.top-a.top},d.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},d.prototype.addDefs=function(){for(var r,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];this.defs=P.createDefs(),this.addDefsToImage(),(r=this.defs).append.apply(r,a)},d.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},d.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},d.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},d.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},d.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},d.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},d.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},d.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var r=document.createElement("a");r.href="https://markerjs.com/",r.target="_blank",r.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',r.title="Powered by marker.js",r.style.display="grid",r.style.alignItems="center",r.style.justifyItems="center",r.style.padding="3px",r.style.width="20px",r.style.height="20px",this.logoUI.appendChild(r),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},d.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")},d.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"},d.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},d.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 r=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=r+"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 rt(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<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new pt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},d.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},d.prototype.removeMarker=function(r){this.markerImage.removeChild(r.container),this.markers.indexOf(r)>-1&&this.markers.splice(this.markers.indexOf(r),1),r.dispose()},d.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())},d.prototype.toolbarButtonClicked=function(r,a){if(r==="marker"&&a!==void 0)this.createNewMarker(a);else if(r==="action")switch(a){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()}},d.prototype.deleteSelectedMarker=function(){var r=this;if(this._currentMarker!==void 0){var a=!1;if(this.eventListeners.markerbeforedelete.forEach(function(m){var c=new et(r,r._currentMarker,!0);m(c),c.defaultPrevented&&(a=!0)}),!a){var u=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(m){return m(new et(r,u))})}}},d.prototype.clear=function(){var r=this,a=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Y){var Ge=new et(r,void 0,!0);Y(Ge),Ge.defaultPrevented&&(a=!0)}),!a)){this.setCurrentMarker();for(var u=function(Y){var Ge=m.markers[Y];m.setCurrentMarker(m.markers[Y]),m._currentMarker.dispose(),m.markerImage.removeChild(m._currentMarker.container),m.markers.splice(m.markers.indexOf(m._currentMarker),1),m.eventListeners.markerdelete.forEach(function(ve){return ve(new et(r,Ge))})},m=this,c=this.markers.length-1;c>=0;c--)u(c);this.addUndoStep()}},Object.defineProperty(d.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),d.prototype.showNotesEditor=function(){var r;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=(r=this._currentMarker.notes)!==null&&r!==void 0?r:"",this.overlayContainer.appendChild(this.notesArea))},d.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)},d.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},d.prototype.addUndoStep=function(){var r=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var a=this.getState(),u=this.undoRedoManager.getLastUndoStep();if(!u||u.width===a.width&&u.height===a.height){var m=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(a),m<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(c){return c(new Ot(r))})}else this.undoRedoManager.replaceLastUndoStep(a),this.eventListeners.statechange.forEach(function(c){return c(new Ot(r))})}},d.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},d.prototype.undoStep=function(){var r=this,a=this.undoRedoManager.undo();a!==void 0&&(this.restoreState(a),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(u){return u(new Ot(r))}))},d.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},d.prototype.redoStep=function(){var r=this,a=this.undoRedoManager.redo();a!==void 0&&(this.restoreState(a),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(u){return u(new Ot(r))}))},d.prototype.stepZoom=function(){var r=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=r<this.zoomSteps.length-1?this.zoomSteps[r+1]:this.zoomSteps[0]},d.prototype.panTo=function(r){this.contentDiv.scrollBy({left:this.prevPanPoint.x-r.x,top:this.prevPanPoint.y-r.y}),this.prevPanPoint=r},d.prototype.startRenderAndClose=function(){return Pe(this,void 0,void 0,function(){var r,a,u=this;return Fe(this,function(m){switch(m.label){case 0:return[4,this.render()];case 1:return r=m.sent(),a=this.getState(),this.eventListeners.render.forEach(function(c){return c(new Ct(u,r,a))}),this.close(!0),[2]}})})},d.prototype.getState=function(r){r===!0&&this.setCurrentMarker();var a={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(u){return a.markers.push(u.getState())}),a},d.prototype.restoreState=function(r){var a=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);r.markers.forEach(function(u){var m=a._availableMarkerTypes.find(function(Y){return Y.typeName===u.typeName});if(m!==void 0){var c=a.addNewMarker(m);c.restoreState(u),a.markers.push(c)}}),r.width&&r.height&&(r.width!==this.imageWidth||r.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/r.width,this.imageHeight/r.height),this.eventListeners.restorestate.forEach(function(u){return u(new Ot(a))})},d.prototype.addNewMarker=function(r){var a=P.createGroup();return this.markerImage.appendChild(a),new r(a,this.overlayContainer,this.settings)},d.prototype.createNewMarker=function(r){var a,u=this;(a=typeof r=="string"?this._availableMarkerTypes.find(function(m){return m.typeName===r}):r)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(a),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(a.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(m){return m(new et(u,u._currentMarker))}))},d.prototype.markerCreated=function(r){var a=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(r),this.setCurrentMarker(r),r instanceof ie&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ie):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(u){return u(new et(a,a._currentMarker))})},d.prototype.colorChanged=function(r){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=r,this.settings.defaultStrokeColor=r)},d.prototype.fillColorChanged=function(r){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=r)},d.prototype.markerStateChanged=function(r){var a=this;this.eventListeners.markerchange.forEach(function(u){return u(new et(a,r))})},d.prototype.setCurrentMarker=function(r){var a=this;this._currentMarker!==r&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(u){return u(new et(a,a._currentMarker))})),this._currentMarker=r,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(u){return u(new et(a,a._currentMarker))}))},d.prototype.onPointerDown=function(r){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||r.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var a=this.markers.find(function(u){return u.ownsTarget(r.target)});a!==void 0?(this.setCurrentMarker(a),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(r.clientX,r.clientY),r.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:r.clientX,y:r.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(r.clientX,r.clientY))},d.prototype.onDblClick=function(r){if(this._isFocused||this.focus(),this.mode==="select"){var a=this.markers.find(function(u){return u.ownsTarget(r.target)});a!==void 0&&a!==this._currentMarker&&this.setCurrentMarker(a),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(r.clientX,r.clientY),r.target):this.setCurrentMarker()}},d.prototype.onPointerMove=function(r){this.touchPoints!==1&&r.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||r.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(r.clientX,r.clientY)):this.zoomLevel>1&&this.panTo({x:r.clientX,y:r.clientY}))},d.prototype.onPointerUp=function(r){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(r.clientX,r.clientY)),this.isDragging=!1,this.addUndoStep()},d.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},d.prototype.onKeyUp=function(r){this._currentMarker===void 0||this.notesArea!==void 0||r.key!=="Delete"&&r.key!=="Backspace"||this.deleteSelectedMarker()},d.prototype.clientToLocalCoordinates=function(r,a){var u=this.markerImage.getBoundingClientRect();return{x:(r-u.left)/this.zoomLevel,y:(a-u.top)/this.zoomLevel}},d.prototype.onWindowResize=function(){this.positionUI()},d.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var r=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=r+"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()},d.prototype.addLicenseKey=function(r){nt.addKey(r)},d.prototype.addEventListener=function(r,a){this.eventListeners.addEventListener(r,a)},d.prototype.removeEventListener=function(r,a){this.eventListeners.removeEventListener(r,a)},d.prototype.renderState=function(r){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(r),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(d.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),d.prototype.focus=function(){var r=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(a){return a(new Ot(r))}))},d.prototype.blur=function(){var r=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(a){return a(new Ot(r))}))},d.instanceCounter=0,d}();/* **********************************
|
|
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 at=function(d,r){return(at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var m in u)Object.prototype.hasOwnProperty.call(u,m)&&(a[m]=u[m])})(d,r)};function un(d,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=d}at(d,r),d.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}function Wt(d,r,a,u){return new(a||(a=Promise))(function(m,c){function Y(Lt){try{ve(u.next(Lt))}catch(Qe){c(Qe)}}function Ge(Lt){try{ve(u.throw(Lt))}catch(Qe){c(Qe)}}function ve(Lt){var Qe;Lt.done?m(Lt.value):(Qe=Lt.value,Qe instanceof a?Qe:new a(function(Et){Et(Qe)})).then(Y,Ge)}ve((u=u.apply(d,r||[])).next())})}function Kn(d,r){var a,u,m,c,Y={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return c={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function Ge(ve){return function(Lt){return function(Qe){if(a)throw new TypeError("Generator is already executing.");for(;Y;)try{if(a=1,u&&(m=2&Qe[0]?u.return:Qe[0]?u.throw||((m=u.return)&&m.call(u),0):u.next)&&!(m=m.call(u,Qe[1])).done)return m;switch(u=0,m&&(Qe=[2&Qe[0],m.value]),Qe[0]){case 0:case 1:m=Qe;break;case 4:return Y.label++,{value:Qe[1],done:!1};case 5:Y.label++,u=Qe[1],Qe=[0];continue;case 7:Qe=Y.ops.pop(),Y.trys.pop();continue;default:if(!(m=Y.trys,(m=m.length>0&&m[m.length-1])||Qe[0]!==6&&Qe[0]!==2)){Y=0;continue}if(Qe[0]===3&&(!m||Qe[1]>m[0]&&Qe[1]<m[3])){Y.label=Qe[1];break}if(Qe[0]===6&&Y.label<m[1]){Y.label=m[1],m=Qe;break}if(m&&Y.label<m[2]){Y.label=m[2],Y.ops.push(Qe);break}m[2]&&Y.ops.pop(),Y.trys.pop();continue}Qe=r.call(d,Y)}catch(Et){Qe=[6,Et],u=0}finally{a=m=0}if(5&Qe[0])throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}([ve,Lt])}}}var In=function(){function d(){}return d.addKey=function(r){d.key=r},Object.defineProperty(d,"isLicensed",{get:function(){return!!d.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(d.key)},enumerable:!1,configurable:!0}),d}(),It=function(){function d(){}return d.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},d.setAttributes=function(r,a){for(var u=0,m=a;u<m.length;u++){var c=m[u],Y=c[0],Ge=c[1];r.setAttribute(Y,Ge)}},d.createRect=function(r,a,u){var m=document.createElementNS("http://www.w3.org/2000/svg","rect");return m.setAttribute("width",r.toString()),m.setAttribute("height",a.toString()),u&&d.setAttributes(m,u),m},d.createLine=function(r,a,u,m,c){var Y=document.createElementNS("http://www.w3.org/2000/svg","line");return Y.setAttribute("x1",r.toString()),Y.setAttribute("y1",a.toString()),Y.setAttribute("x2",u.toString()),Y.setAttribute("y2",m.toString()),c&&d.setAttributes(Y,c),Y},d.createPolygon=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg","polygon");return u.setAttribute("points",r),a&&d.setAttributes(u,a),u},d.createCircle=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg","circle");return u.setAttribute("cx",(r/2).toString()),u.setAttribute("cy",(r/2).toString()),u.setAttribute("r",r.toString()),a&&d.setAttributes(u,a),u},d.createEllipse=function(r,a,u){var m=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return m.setAttribute("cx",(r/2).toString()),m.setAttribute("cy",(a/2).toString()),m.setAttribute("rx",(r/2).toString()),m.setAttribute("ry",(a/2).toString()),u&&d.setAttributes(m,u),m},d.createGroup=function(r){var a=document.createElementNS("http://www.w3.org/2000/svg","g");return r&&d.setAttributes(a,r),a},d.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},d.createMarker=function(r,a,u,m,c,Y,Ge){var ve=document.createElementNS("http://www.w3.org/2000/svg","marker");return d.setAttributes(ve,[["id",r],["orient",a],["markerWidth",u.toString()],["markerHeight",m.toString()],["refX",c.toString()],["refY",Y.toString()]]),ve.appendChild(Ge),ve},d.createText=function(r){var a=document.createElementNS("http://www.w3.org/2000/svg","text");return a.setAttribute("x","0"),a.setAttribute("y","0"),r&&d.setAttributes(a,r),a},d.createTSpan=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg","tspan");return u.textContent=r,a&&d.setAttributes(u,a),u},d.createImage=function(r){var a=document.createElementNS("http://www.w3.org/2000/svg","image");return r&&d.setAttributes(a,r),a},d.createPoint=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return u.x=r,u.y=a,u},d.createPath=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg","path");return u.setAttribute("d",r),a&&d.setAttributes(u,a),u},d.createElement=function(r,a){var u=document.createElementNS("http://www.w3.org/2000/svg",r);return a&&d.setAttributes(u,a),u},d.getHollowRectanglePath=function(r,a,u,m,c,Y,Ge,ve){return"M"+r+","+a+"V"+(a+m)+"H"+(r+u)+"V"+a+"H"+c+"V"+Y+"H"+(c+Ge)+"V"+(Y+ve)+"H"+c+"V"+a+"Z"},d}(),vi=function(){function d(r){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+r+"_"}return Object.defineProperty(d.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),d.prototype.addClass=function(r){return this.styleSheet===void 0&&this.addStyleSheet(),r.name=""+this.classNamePrefix+r.localName,this.classes.push(r),this.styleSheet.sheet.insertRule("."+r.name+" {"+r.style+"}",this.styleSheet.sheet.cssRules.length),r},d.prototype.addRule=function(r){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(r),this.styleSheet.sheet.insertRule(r.selector+" {"+r.style+"}",this.styleSheet.sheet.cssRules.length)},d.prototype.addStyleSheet=function(){var r;this.styleSheet=document.createElement("style"),((r=this.styleSheetRoot)!==null&&r!==void 0?r:document.head).appendChild(this.styleSheet),this.addRule(new si("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new si("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new si("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new Qn("_fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new Qn("_fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},d.prototype.removeStyleSheet=function(){var r;this.styleSheet&&(((r=this.styleSheetRoot)!==null&&r!==void 0?r:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},d}(),si=function(d,r){this.selector=d,this.style=r},Qn=function(d,r){this.localName=d,this.style=r},oi=function(){function d(){this.blocks=[],this.display=""}return d.prototype.addButtonBlock=function(r){r.className=this.blockClassName,r.buttonClassName=this.buttonClassName,r.buttonColorsClassName=this.buttonColorsClassName,r.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(r)},d.prototype.addElementBlock=function(r){r.className===void 0&&(r.className=this.blockClassName),this.blocks.push(r)},d.prototype.getUI=function(){var r=document.createElement("div");return r.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,r.style.display=this.display,this.blocks.forEach(function(a){return r.appendChild(a.getUI())}),r},d}(),_i=function(){function d(){}return d.prototype.getUI=function(){var r=document.createElement("div");if(r.className=this.className,this.minWidth!==void 0&&(r.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":r.style.justifyContent="flex-start";break;case"center":r.style.justifyContent="center";break;case"end":r.style.justifyContent="flex-end"}return r.style.whiteSpace="nowrap",r},d}(),Di=function(d){function r(){var a=d!==null&&d.apply(this,arguments)||this;return a.buttons=[],a}return un(r,d),r.prototype.addButton=function(a){a.className=this.buttonClassName,a.colorsClassName=this.buttonColorsClassName,a.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(a)},r.prototype.getUI=function(){var a=d.prototype.getUI.call(this);return this.buttons.forEach(function(u){return a.appendChild(u.getUI())}),a},r}(_i),cn=function(){function d(r,a){this._isActive=!1,this._isHidden=!1,this._icon=r,this.title=a,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(d.prototype,"icon",{get:function(){return this._icon},set:function(r){this._icon=r,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isActive",{get:function(){return this._isActive},set:function(r){this._isActive=r,this.adjustClassName()},enumerable:!1,configurable:!0}),d.prototype.getUI=function(){var r=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return r.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},d.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},d.prototype.hide=function(){this._isHidden=!0},d}(),Rt=function(d){function r(){var a=d!==null&&d.apply(this,arguments)||this;return a.elements=[],a}return un(r,d),r.prototype.addElement=function(a){this.elements.push(a)},r.prototype.getUI=function(){var a=d.prototype.getUI.call(this);return this.elements.forEach(function(u){return a.appendChild(u)}),a},r}(_i),ji=function(){function d(r,a){this.horizontal=r,this.vertical=a}return Object.defineProperty(d.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),d.prototype.getVerticalLength=function(r){return r/this.ratio},d.prototype.getHorizontalLength=function(r){return r*this.ratio},d}(),Li=function(){function d(){}return d.getIcon=function(r,a){if(r>0&&a>0){var u=new ji(r,a),m=u.ratio>=1?20:u.getHorizontalLength(20),c=u.ratio<1?20:u.getVerticalLength(20),Y=document.createElementNS("http://www.w3.org/2000/svg","svg");Y.setAttribute("xmlns","http://www.w3.org/2000/svg"),Y.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Y);var Ge=It.createDefs();Y.appendChild(Ge);var ve=It.createElement("clipPath",[["id","text-bg-clip"]]);Ge.appendChild(ve);var Lt=It.createPath(It.getHollowRectanglePath((24-m)/2,(24-c)/2,m,c,(24-m)/2+2,(24-c)/2+2,m-4,c-4));Y.appendChild(Lt);var Qe=It.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Qe.appendChild(It.createTSpan(r+":"+a)),Y.appendChild(Qe);var Et=Qe.getBBox();It.setAttributes(Qe,[["x",((24-Et.width)/2).toString()],["y",((24-Et.height)/2-Et.y).toString()]]);var At=It.createPath(It.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Et.width))/2,(24-Math.ceil(Et.height))/2,Math.ceil(Et.width),Math.ceil(Et.height)));return ve.appendChild(At),It.setAttributes(Lt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Y),Y.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},d}(),Nn=function(d){function r(a,u,m){var c=d.call(this,a,u)||this;return c.isDropdownOpen=!1,c.onClick=c.dropdownButtonClicked,c.dropdownButtons=m,c}return un(r,d),r.prototype.setupDropdown=function(){var a=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(u){u.className=a.className,u.colorsClassName=a.colorsClassName,a.dropdownBlock.appendChild(u.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},r.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},r.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},r.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},r.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},r.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},r}(cn),Jt=function(){function d(r,a){this.GRIP_SIZE=10,this.color=r,this.fillColor=a,this.visual=It.createGroup(),this.visual.appendChild(It.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(It.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return d.prototype.ownsTarget=function(r){return r===this.visual||r===this.visual.childNodes[0]||r===this.visual.childNodes[1]},d.prototype.setCenter=function(r,a){this.visual.childNodes.forEach(function(u){return It.setAttributes(u,[["cx",r.toString()],["cy",a.toString()]])})},d}(),wn=function(){function d(r,a,u,m){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=r,this.canvasHeight=a,this.margin=u,this.container=m,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(d.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(r){this._aspectRatio=r,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(r){this._isGridVisible=r,this.gridContainer&&It.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(r){this._zoomFactor=r,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),d.prototype.open=function(){var r=this;this.cropShadeElement=It.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=It.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var a=0;a<this.numberOfGridLines;a++)this.horizontalGridLines.push(It.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(It.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(u){return r.gridContainer.appendChild(u)}),this.verticalGridLines.forEach(function(u){return r.gridContainer.appendChild(u)}),this.cropRectElement=It.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Jt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Jt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Jt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Jt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},d.prototype.setCropRectangle=function(r){this.cropRect=r;var a=Object.assign({},this.cropRect);this.zoomFactor!==1&&(a.width=this.cropRect.width*this.zoomFactor,a.height=this.cropRect.height*this.zoomFactor,a.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-a.width/2,a.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-a.height/2),It.setAttributes(this.cropRectElement,[["x",a.x.toString()],["y",a.y.toString()],["width",a.width.toString()],["height",a.height.toString()]]);var u=a.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(c,Y){var Ge=a.y+u*(Y+1);It.setAttributes(c,[["x1",""+a.x],["y1",""+Ge],["x2",""+(a.x+a.width)],["y2",""+Ge]])});var m=a.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(c,Y){var Ge=a.x+m*(Y+1);It.setAttributes(c,[["x1",""+Ge],["y1",""+a.y],["x2",""+Ge],["y2",""+(a.y+a.height)]])}),It.setAttributes(this.cropShadeElement,[["d",It.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,a.x,a.y,a.width,a.height)]]),this.topLeftGrip.setCenter(a.x,a.y),this.topRightGrip.setCenter(a.x+a.width,a.y),this.bottomLeftGrip.setCenter(a.x,a.y+a.height),this.bottomRightGrip.setCenter(a.x+a.width,a.y+a.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},d.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)},d.prototype.clientToLocalCoordinates=function(r,a){var u=this.container.getBoundingClientRect();return{x:r-u.left+this.margin,y:a-u.top+this.margin}},d.prototype.onPointerDown=function(r){this.container.setPointerCapture(r.pointerId),this.previousPoint=this.clientToLocalCoordinates(r.clientX,r.clientY),this.cropRectElement===r.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(r.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(r.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(r.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(r.target)&&(this.activeGrip=this.bottomRightGrip)},d.prototype.onPointerMove=function(r){if(this.isMoving)this.move(this.clientToLocalCoordinates(r.clientX,r.clientY));else if(this.activeGrip){var a=this.clientToLocalCoordinates(r.clientX,r.clientY);this.resize(a)}r.preventDefault()},d.prototype.onPointerUp=function(r){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(r.pointerId)},d.prototype.move=function(r){var a=r.x-this.previousPoint.x,u=r.y-this.previousPoint.y;this.zoomFactor!==1&&(a=-a/this.zoomFactor,u=-u/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+a),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+u),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=r},d.prototype.resize=function(r){var a=Object.assign({},this.cropRect),u=r.x-this.previousPoint.x,m=r.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:a.x+u<this.margin&&(u=this.margin-a.x),a.x+=u,a.width=this.cropRect.x+this.cropRect.width-a.x;break;case this.bottomRightGrip:case this.topRightGrip:a.width+u>this.canvasWidth*this.zoomFactor&&(u=this.canvasWidth*this.zoomFactor-a.width),a.width+=u}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(a.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(u),a.height=this.aspectRatio.getVerticalLength(a.width)):(a.y+=m,a.height=this.cropRect.y+this.cropRect.height-a.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?a.height=this.aspectRatio.getVerticalLength(a.width):a.height+=m}a.width<10&&(a.x=this.cropRect.x,a.width=10),a.height<10&&(a.y=this.cropRect.y,a.height=10),this.previousPoint=r,a.x>=this.margin&&a.y>=this.margin&&a.x-this.margin+a.width<=this.canvasWidth&&a.y-this.margin+a.height<=this.canvasHeight&&(this.cropRect=a,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},d.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var r=this.cropRect.x+this.cropRect.width/2,a=this.cropRect.y+this.cropRect.height/2,u=this.aspectRatio.getHorizontalLength(this.cropRect.height),m=this.aspectRatio.getVerticalLength(this.cropRect.width);u/this.canvasWidth<m/this.canvasHeight?this.cropRect.width=u:this.cropRect.height=m,this.cropRect.width>this.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=r-this.cropRect.width/2,this.cropRect.y=a-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)}},d.prototype.getRescaledRect=function(r,a,u,m,c,Y){var Ge=u/r,ve=m/a;return{x:(c.x-Y)*Ge+Y,y:(c.y-Y)*ve+Y,width:c.width*Ge,height:c.height*ve}},d.prototype.scaleCanvas=function(r,a){var u=this.getRescaledRect(this.canvasWidth,this.canvasHeight,r,a,this.cropRect,this.margin);this.canvasWidth=r,this.canvasHeight=a,this.onCropChange&&this.onCropChange(u),this.setCropRectangle(u)},d}(),en=function(){function d(r){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=r,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(d.prototype,"angle",{get:function(){return this._angle},set:function(r){this._angle=r,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),d.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},d.prototype.onPointerDown=function(r){this.controlContainer.setPointerCapture(r.pointerId),this.isDragging=!0,this.previousPoint={x:r.clientX,y:r.clientY}},d.prototype.onPointerMove=function(r){this.isDragging&&(this.onAngleChange&&this.onAngleChange((r.clientX-this.previousPoint.x)/5),this.previousPoint.x=r.clientX)},d.prototype.onPointerUp=function(r){this.isDragging&&this.onAngleChange&&this.onAngleChange((r.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(r.pointerId)},d.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var r=this.angleLabelText.getBBox();It.setAttributes(this.angleLabelElement,[["x",((this.width-r.width)/2).toString()],["y",(this.height/2).toString()]])}},d.prototype.positionScaleShape=function(){if(this.scaleShape){var r=this.scaleShape.transform.baseVal.getItem(0);r.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(r,0)}},d.prototype.getVisual=function(){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("width",this.width+"px"),r.setAttribute("height",this.height+"px"),r.setAttribute("viewBox","0 0 "+this.width+" "+this.height),r.style.flexShrink="0",document.body.appendChild(r);for(var a="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,u=1;u<=this.width/5+10;u++){var m=u%5==0?this.height/3:this.height/6;a+="h4v"+-m+"h1v"+m}a+="v1H0Z",this.scaleShape=It.createPath(a);var c=It.createTransform();this.scaleShape.transform.baseVal.appendItem(c),r.appendChild(this.scaleShape),this.angleLabelElement=It.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=It.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Y=It.createTSpan("");return Y.innerHTML="°",this.angleLabelElement.appendChild(Y),r.appendChild(this.angleLabelElement),document.body.removeChild(r),r},d}(),yn=function(){function d(){this.naturalSize=!1,this.imageType="image/png"}return d.prototype.rasterize=function(r,a,u,m,c,Y,Ge){var ve=this;return new Promise(function(Lt){var Qe=document.createElement("canvas");Qe.width=r.width.baseVal.value-2*m,Qe.height=r.height.baseVal.value-2*m;var Et=1,At=1;ve.naturalSize===!0?(Et=a.naturalWidth/(r.width.baseVal.value-2*m)/Y,At=a.naturalHeight/(r.height.baseVal.value-2*m)/Ge,Qe.width=a.naturalWidth/Y,Qe.height=a.naturalHeight/Ge):ve.width!==void 0&&ve.height!==void 0&&(Et=ve.width/u.width,At=ve.height/u.height,Qe.width*=Et,Qe.height*=At);var kt=Qe.getContext("2d");kt.translate(Qe.width/2,Qe.height/2),kt.rotate(c*Math.PI/180),kt.scale(Y,Ge),kt.translate(-Qe.width/2,-Qe.height/2),kt.drawImage(a,0,0,Qe.width,Qe.height);var nn=document.createElement("canvas");nn.width=u.width*Et,nn.height=u.height*At,nn.getContext("2d").putImageData(kt.getImageData((u.x-m)*Et,(u.y-m)*At,u.width*Et,u.height*At),0,0),Lt(nn.toDataURL(ve.imageType,ve.imageQuality))})},d}(),je=function(){function d(r){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=d.instanceCounter++,this.styles=new vi(this.instanceNo),this.target=r,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(d.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(r){this._zoomToCropEnabled=r,r?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(r){this._isGridVisible=r,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"gridLines",{get:function(){return this._gridLines},set:function(r){this._gridLines=r,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(r){this._rotationAngle=r,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"aspectRatio",{get:function(){var r;return(r=this._aspectRatio)!==null&&r!==void 0?r:this.aspectRatios[0]},set:function(r){this._aspectRatio=r},enumerable:!1,configurable:!0}),d.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},d.prototype.show=function(){this.showUI(),this.open()},d.prototype.close=function(r){r===void 0&&(r=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),r||this.closeEventListeners.forEach(function(a){return a()}),this._isOpen=!1)},d.prototype.addRenderEventListener=function(r){this.renderEventListeners.push(r)},d.prototype.removeRenderEventListener=function(r){this.renderEventListeners.indexOf(r)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(r),1)},d.prototype.addCloseEventListener=function(r){this.closeEventListeners.push(r)},d.prototype.removeCloseEventListener=function(r){this.closeEventListeners.indexOf(r)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(r),1)},d.prototype.setupResizeObserver=function(){var r=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){r.resize(r.target.clientWidth,r.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))},d.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var r=1*this.target.clientWidth/this.target.clientHeight,a=this.contentDiv.clientWidth/r>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*r:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,u=a+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/r;this.resize(a,u)}},d.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},d.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",It.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},d.prototype.resize=function(r,a){this.imageWidth=Math.round(r),this.imageHeight=Math.round(a),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},d.prototype.setEditingTarget=function(){var r=document.createElement("canvas");r.width=this.target.naturalWidth,r.height=this.target.naturalHeight,r.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var a=r.toDataURL();It.setAttributes(this.editingTarget,[["href",a]]),this.setEditingTargetSize()},d.prototype.setTopLeft=function(){var r=this.target.getBoundingClientRect(),a=this.editorCanvas.getBoundingClientRect();this.left=r.left-a.left-this.CANVAS_MARGIN,this.top=r.top-a.top-this.CANVAS_MARGIN},d.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=It.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=It.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=It.createGroup(),this.editingTargetRotationScaleContainer=It.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var r=It.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(r);var a=It.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(a),this.editingTargetContainer=It.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},d.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},d.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=It.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new wn(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},d.prototype.zoomToCrop=function(){if(this.cropRect){var r=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,a=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=r+"px "+a+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-r+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-a+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},d.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},d.prototype.cropRectChanged=function(r){this.cropRect=r,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},d.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},d.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"},d.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},d.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var r=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,a=this.target.offsetTop>r+this.CANVAS_MARGIN?this.target.offsetTop-(r+this.CANVAS_MARGIN):0;this.coverDiv.style.top=a+"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},d.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},d.prototype.addTopToolbar=function(){var r=this;this.topToolbar=new oi,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 a=new Di;a.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(a);var u=[];this.aspectRatios.forEach(function(At){var kt=new cn(Li.getIcon(At.horizontal,At.vertical),At.horizontal===0&&At.vertical===0?"FREE":At.horizontal+":"+At.vertical);kt.onClick=function(){return r.ratioButtonClicked(At)},u.push(kt)}),this.aspectRatioButton=new Nn(Li.getIcon(0,0),"Aspect ratio",u),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,a.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var m=new cn('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");m.isActive=this.isGridVisible,m.onClick=function(){r.isGridVisible=!r.isGridVisible,m.isActive=r.isGridVisible},a.addButton(m);var c=new cn('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(c.isActive=this.zoomToCropEnabled,c.onClick=function(){r.zoomToCropEnabled=!r.zoomToCropEnabled,c.isActive=r.zoomToCropEnabled},a.addButton(c),!In.isLicensed){var Y=new Rt;this.topToolbar.addElementBlock(Y);var Ge=document.createElement("div");Ge.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var ve=document.createElement("a");ve.style.color="currentColor",ve.href="https://markerjs.com/products/cropro",ve.target="_blank",ve.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',Ge.appendChild(ve),Y.addElement(Ge)}var Lt=new Di;Lt.minWidth=3*this.toolbarHeight+"px",Lt.contentAlign="end",this.topToolbar.addButtonBlock(Lt);var Qe=new cn('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");Qe.onClick=this.startRenderAndClose,Lt.addButton(Qe),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Qe.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Et=new cn('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");Et.onClick=this.close,Lt.addButton(Et),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Et.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},d.prototype.addBottomToolbar=function(){var r=this;this.bottomToolbar=new oi,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 a=new Di;a.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(a);var u=new cn('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");u.onClick=this.rotateLeftButtonClicked,a.addButton(u);var m=new cn('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");m.onClick=this.rotateRightButtonClicked,a.addButton(m);var c=new Rt;c.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(c),this.straightener=new en("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(Lt){r.rotateBy(Lt),r.straightener.angle=r.rotationAngle},c.addElement(this.straightener.getUI());var Y=new Di;Y.minWidth=2*this.toolbarHeight+"px",Y.contentAlign="end",this.bottomToolbar.addButtonBlock(Y);var Ge=new cn('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");Ge.onClick=this.flipHorizontallyButtonClicked,Y.addButton(Ge);var ve=new cn('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");ve.onClick=this.flipVerticallyButtonClicked,Y.addButton(ve)},d.prototype.ratioButtonClicked=function(r){this.aspectRatio=r,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},d.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Li.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},d.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new ji(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},d.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},d.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},d.prototype.restoreState=function(r){if(r){var a=this.cropLayer.getRescaledRect(r.width,r.height,this.imageWidth,this.imageHeight,r.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(a),this.cropRectChanged(a),this.flippedHorizontally=r.flippedHorizontally,this.flippedVertically=r.flippedVertically,this.applyFlip(),this.rotationAngle=r.rotationAngle,this.applyRotation()}},d.prototype.clientToLocalCoordinates=function(r,a){var u=this.cropImage.getBoundingClientRect();return{x:r-u.left,y:a-u.top}},d.prototype.onWindowResize=function(){this.positionUI()},d.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var r=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=r+"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()},d.prototype.rotateLeftButtonClicked=function(){var r=this.rotationAngle-90;this.rotationAngle%90!=0&&(r+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(r)},d.prototype.rotateRightButtonClicked=function(){var r=this.rotationAngle+90;this.rotationAngle%90!=0&&(r-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(r)},d.prototype.rotateTo=function(r){r=(r=r>180?r-360:r)<=-180?r+360:r,this.rotationAngle=r,this.applyRotation()},d.prototype.rotateBy=function(r){this.rotateTo((this.rotationAngle+r)%360)},d.prototype.applyRotation=function(){var r=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var a=this.editingTargetRotationContainer.transform.baseVal.getItem(0);a.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(a,0);var u=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/u.width,this.imageHeight/u.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=r},d.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},d.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},d.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},d.prototype.startRenderAndClose=function(){return Wt(this,void 0,void 0,function(){var r,a;return Kn(this,function(u){switch(u.label){case 0:return[4,this.render()];case 1:return r=u.sent(),a=this.getState(),this.renderEventListeners.forEach(function(m){return m(r,a)}),this.close(!0),[2]}})})},d.prototype.render=function(){return Wt(this,void 0,void 0,function(){var r;return Kn(this,function(a){switch(a.label){case 0:return(r=new yn).naturalSize=this.renderAtNaturalSize,r.imageType=this.renderImageType,r.imageQuality=this.renderImageQuality,r.width=this.renderWidth,r.height=this.renderHeight,this.unzoomFromCrop(),It.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,r.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 a.sent(),[4,r.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,a.sent()]}})})},d.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Qn("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 Qn("toolbar_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Qn("toolbar-block",`
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: content-box;
|
|
`));var r=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Qn("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.toolbarHeight-2*r)+`px;
|
|
height: `+(this.toolbarHeight-2*r)+`px;
|
|
padding: `+r+`px;
|
|
cursor: default;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Qn("toolbar_button_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Qn("toolbar_active_button",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
|
|
`)),this.styles.addRule(new si("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new si("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
|
|
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new Qn("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 Qn("toolbar_dropdown_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new Qn("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 Qn("toolbar_straightener",`
|
|
display: flex;
|
|
overflow: hidden;
|
|
justify-content: center;
|
|
height: `+(this.toolbarHeight-2*r)+`px;
|
|
padding: `+r+`px;
|
|
cursor: default;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new Qn("toolbar_straightener_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`))},d.instanceCounter=0,d}(),Nt=h("8hTe"),Jn=h.n(Nt),Yn=/<pre[^>]*>/g;function ao(d){var r=document.createElement("div");return r.innerHTML=d,r.childNodes.length===0?"":r.childNodes[0].nodeValue}var so=Ae.a=function(d){var r=d.value,a=r===void 0?"":r,u=d.edit,m=u===void 0?!1:u,c=d.className,Y=d.showTextOnly,Ge=d.showLines,ve=d.replaces,Lt=d.zoomImg,Qe=d.hasMask,Et=d.style,At=Et===void 0?{}:Et,kt=d.stylesPrev,nn=kt===void 0?{}:kt,mn=String(a),$t=Object(V.useRef)(),Bi=Object(V.useRef)(),hi=Object(V.useState)(""),wi=Object(w.a)(hi,2),Ii=wi[0],Ai=wi[1],lo=Object(V.useState)("office"),qi=Object(w.a)(lo,2),go=qi[0],$i=qi[1],lr=function(){var Mn=new je(Bi.current);Mn.displayMode="popup",Mn.addRenderEventListener(function(){var ri=Object(ne.a)(W.a.mark(function kn(yi){var Un;return W.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return $t.current.style.display="none",fi.next=3,Object(dt.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yi}});case 3:Un=fi.sent,Un!=null&&Un.id&&ve(Bi.current.getAttribute("src").replace(Ue.a.API_SERVER,""),"/api/attachments/".concat(Un==null?void 0:Un.id,"?type=").concat(Un.content_type));case 5:case"end":return fi.stop()}},kn)}));return function(kn){return ri.apply(this,arguments)}}()),Mn.show()},Qo=function(){var Mn=new Kt(Bi.current);Mn.settings.displayMode="popup",Mn.addEventListener("render",function(){var ri=Object(ne.a)(W.a.mark(function kn(yi){var Un;return W.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if($t.current.style.display="none",!Bi.current){fi.next=6;break}return fi.next=4,Object(dt.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yi.dataUrl}});case 4:Un=fi.sent,Un!=null&&Un.id&&ve(Bi.current.getAttribute("src").replace(Ue.a.API_SERVER,""),"/api/attachments/".concat(Un==null?void 0:Un.id,"?type=").concat(Un.content_type));case 6:case"end":return fi.stop()}},kn)}));return function(kn){return ri.apply(this,arguments)}}()),Mn.show(),window.markerArea=Mn},Vi=Object(V.useMemo)(function(){try{var ei=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Mn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ri=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;mn=mn.replace(ei,"("+Ue.a.API_SERVER+"/api/attachments/").replace(Mn,'"'+Ue.a.API_SERVER+"/api/attachments/").replace(ri,'"'+Ue.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,`
|
|
`),mn=mn.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
|
|
`)}catch(Co){}var kn=De(mn),yi=xe();if(mn.match(/\[TOC\]/)&&(kn=kn.replace("<p>[TOC]</p>",Ve()),Je()),kn=kn.replace(/(__special_katext_id_\d+__)/g,function(Co,fi){var ui=yi[fi],vo=ui.type,To=ui.expression;return Object(Re.renderToString)(ao(To)||"",{displayMode:vo==="block",throwOnError:!1,output:"html"})}),kn=kn.replace(/▁/g,"\u2581\u2581\u2581"),me(),Y){var Un=document.createElement("div");return Un.innerHTML=kn,Un.innerText}return setTimeout(function(){return Uo()},500),kn},[mn]),li=Object(V.useRef)();we.WebkitLineClamp=Ge,Ge&&(At=Object(C.a)(Object(C.a)({},At),we));function Oo(ei){var Mn=ei.target;if(Mn.tagName.toUpperCase()==="IMG"){if(Lt){var ri=Mn.getAttribute("src");Ai(ri),$i("image")}}else if(Mn.tagName.toUpperCase()==="A"){var kn=Mn.getAttribute("href");if(kn.indexOf("office")>-1)ei.preventDefault(),Ai(kn),$i("office");else if(kn.indexOf("application/pdf")>-1)ei.preventDefault(),Ai(kn),$i("pdf");else if(kn.indexOf("type=text")>-1)ei.preventDefault(),Ai(kn),$i("html");else if(kn.startsWith("#")){ei.preventDefault();var yi=document.getElementById(kn.replace("#",""));yi&&yi.scrollIntoView(!0)}}}var Uo=function(){var Mn,ri=(Mn=li.current)===null||Mn===void 0?void 0:Mn.querySelectorAll("video");ri==null||ri.forEach(function(kn){if(kn.oncontextmenu=function(){return!1},kn.src.indexOf(".m3u8")>-1&&!kn.canPlayType("application/vnd.apple.mpegurl")){if(ce.a.isSupported()){var yi=new ce.a;yi.loadSource(kn.src),yi.attachMedia(kn)}}})};Object(V.useEffect)(function(){if(li.current&&Vi&&(Vi.match(Yn)&&window.PR.prettyPrint()),li.current)return li.current.addEventListener("click",Oo),function(){li.current.removeEventListener("click",Oo),me(),Je()}},[Vi,li.current,Oo]);var Jo=function(Mn){if(!m)return;Mn.target.nodeName==="IMG"?($t.current.style.display="flex",$t.current.style.width=Mn.target.clientWidth+"px",$t.current.style.height=Mn.target.clientHeight+"px",$t.current.style.top=Mn.target.offsetTop+"px",$t.current.style.left=Mn.target.offsetLeft+"px",Bi.current.src=Mn.target.getAttribute("src")):$t.current.style.display="none"};return L.a.createElement("div",{style:{position:"relative"}},L.a.createElement("div",{ref:li,style:Object(C.a)({},At),className:"".concat(c||""," markdown-body ").concat(Jn.a.mdBody),onMouseOver:Jo,dangerouslySetInnerHTML:{__html:Vi}}),L.a.createElement("div",{ref:$t,className:Jn.a.button},L.a.createElement(de.a,null,L.a.createElement(X.a,{onClick:function(){return lr()}},"\u88C1\u526A"),L.a.createElement(X.a,{onClick:function(){return Qo()}},"\u7F16\u8F91"))),L.a.createElement("img",{ref:Bi,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),L.a.createElement(qe.a,{close:!0,data:Ii,hasMask:Qe,type:Ii!=null&&Ii.length?go:"",style:Object(C.a)({},nn),onClose:function(){return Ai("")}}))}},"9VGf":function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return re});var I=h("q1tI"),de=h.n(I);function re(X,C){var ne=Object(I.useRef)();Object(I.useEffect)(function(){ne.current=X}),Object(I.useEffect)(function(){function w(){ne.current()}if(C!==null){var R=setInterval(w,C);return function(){return clearInterval(R)}}},[C])}},"9ZNV":function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return V});var I=h("0Owb"),de=h("+L6B"),re=h("2/Rp"),X=h("q1tI"),C=h.n(X),ne=h("UUDw"),w=h.n(ne),R=h("TSYQ"),W=h.n(R),V=function(T){var se=T.cancelText,q=se===void 0?"\u53D6\u6D88":se,K=T.okText,D=K===void 0?"\u786E\u5B9A":K,_=T.loading,A=_===void 0?!1:_,le=T.hasOkBtn,Me=le===void 0?!0:le,Je=T.okButtonProps,we=Je===void 0?{}:Je,ke=T.onCancel,Ve=ke===void 0?function(){}:ke,Ee=T.onOk,Ce=Ee===void 0?function(){}:Ee,Ne=T.className,be=Ne===void 0?"":Ne;return C.a.createElement("div",{className:W()(w.a.buttonFixed,be)},C.a.createElement("div",{className:w.a.buttonWrap},C.a.createElement(re.a,{size:"large",className:"".concat(w.a.button," mr20"),onClick:Ve},q),Me&&C.a.createElement(re.a,Object(I.a)({size:"large",type:"primary",className:"".concat(w.a.button," mr20"),loading:A,onClick:Ce},we),D)))}},"A/g1":function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmN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3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},Bd2K:function(Oe,Ae,h){(function(I){I(h("VrN/"),h("osHv"))})(function(I){I.defineOption("autoCloseTags",!1,function(W,V,L){if(L!=I.Init&&L&&W.removeKeyMap("autoCloseTags"),!V)return;var T={name:"autoCloseTags"};(typeof V!="object"||V.whenClosing!==!1)&&(T["'/'"]=function(se){return ne(se)}),(typeof V!="object"||V.whenOpening!==!1)&&(T["'>'"]=function(se){return X(se)}),W.addKeyMap(T)});var de=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],re=["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 X(W){if(W.getOption("disableInput"))return I.Pass;for(var V=W.listSelections(),L=[],T=W.getOption("autoCloseTags"),se=0;se<V.length;se++){if(!V[se].empty())return I.Pass;var q=V[se].head,K=W.getTokenAt(q),D=I.innerMode(W.getMode(),K.state),_=D.state,A=D.mode.xmlCurrentTag&&D.mode.xmlCurrentTag(_),le=A&&A.name;if(!le)return I.Pass;var Me=D.mode.configuration=="html",Je=typeof T=="object"&&T.dontCloseTags||Me&&de,we=typeof T=="object"&&T.indentTags||Me&&re;K.end>q.ch&&(le=le.slice(0,le.length-K.end+q.ch));var ke=le.toLowerCase();if(!le||K.type=="string"&&(K.end!=q.ch||!/[\"\']/.test(K.string.charAt(K.string.length-1))||K.string.length==1)||K.type=="tag"&&A.close||K.string.indexOf("/")==q.ch-K.start-1||Je&&w(Je,ke)>-1||R(W,D.mode.xmlCurrentContext&&D.mode.xmlCurrentContext(_)||[],le,q,!0))return I.Pass;var Ve=typeof T=="object"&&T.emptyTags;if(Ve&&w(Ve,le)>-1){L[se]={text:"/>",newPos:I.Pos(q.line,q.ch+2)};continue}var Ee=we&&w(we,ke)>-1;L[se]={indent:Ee,text:">"+(Ee?`
|
|
|
|
`:"")+"</"+le+">",newPos:Ee?I.Pos(q.line+1,0):I.Pos(q.line,q.ch+1)}}for(var Ce=typeof T=="object"&&T.dontIndentOnAutoClose,se=V.length-1;se>=0;se--){var Ne=L[se];W.replaceRange(Ne.text,V[se].head,V[se].anchor,"+insert");var be=W.listSelections().slice(0);be[se]={head:Ne.newPos,anchor:Ne.newPos},W.setSelections(be),!Ce&&Ne.indent&&(W.indentLine(Ne.newPos.line,null,!0),W.indentLine(Ne.newPos.line+1,null,!0))}}function C(W,V){for(var L=W.listSelections(),T=[],se=V?"/":"</",q=W.getOption("autoCloseTags"),K=typeof q=="object"&&q.dontIndentOnSlash,D=0;D<L.length;D++){if(!L[D].empty())return I.Pass;var _=L[D].head,A=W.getTokenAt(_),le=I.innerMode(W.getMode(),A.state),Me=le.state;if(V&&(A.type=="string"||A.string.charAt(0)!="<"||A.start!=_.ch-1))return I.Pass;var Je,we=le.mode.name!="xml"&&W.getMode().name=="htmlmixed";if(we&&le.mode.name=="javascript")Je=se+"script";else if(we&&le.mode.name=="css")Je=se+"style";else{var ke=le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(Me);if(!ke||ke.length&&R(W,ke,ke[ke.length-1],_))return I.Pass;Je=se+ke[ke.length-1]}W.getLine(_.line).charAt(A.end)!=">"&&(Je+=">"),T[D]=Je}if(W.replaceSelections(T),L=W.listSelections(),!K)for(var D=0;D<L.length;D++)(D==L.length-1||L[D].head.line<L[D+1].head.line)&&W.indentLine(L[D].head.line)}function ne(W){return W.getOption("disableInput")?I.Pass:C(W,!0)}I.commands.closeTag=function(W){return C(W)};function w(W,V){if(W.indexOf)return W.indexOf(V);for(var L=0,T=W.length;L<T;++L)if(W[L]==V)return L;return-1}function R(W,V,L,T,se){if(!I.scanForClosingTag)return!1;var q=Math.min(W.lastLine()+1,T.line+500),K=I.scanForClosingTag(W,T,null,q);if(!K||K.tag!=L)return!1;for(var D=se?1:0,_=V.length-1;_>=0&&V[_]==L;_--)++D;T=K.to;for(var _=1;_<D;_++){var A=I.scanForClosingTag(W,T,null,q);if(!A||A.tag!=L)return!1;T=A.to}return!0}})},BjJ7:function(Oe,Ae,h){"use strict";h.d(Ae,"d",function(){return de}),h.d(Ae,"c",function(){return re}),h.d(Ae,"e",function(){return X}),h.d(Ae,"b",function(){return C}),h.d(Ae,"a",function(){return w});var I=h("m3rI");function de(R){var W=!0;if(R.length>0){for(var V=0;V<R.length;V++)if(R[V].compile_success==0||!R[V].compile_success){W=!1;break}}else W=!1;return W}function re(R){for(var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",V=[],L=0;L<R.length;L++){var T=R[L],se=W?"".concat(W,"/").concat(T.name):"".concat(T.name);V.push({title:T.name,isLeaf:!(T.type==="tree"),key:se})}return V}function X(R,W,V){for(var L=0;L<R.length;L++){var T=R[L];if(T.key===W){T.children=V;break}T.children&&X(T.children,W,V)}return R}function C(R,W,V){var L;return function(){var T=this,se=arguments,q=function(){L=null,V||R.apply(T,se)},K=V&&!L;clearTimeout(L),L=setTimeout(q,W),K&&R.apply(T,se)}}var ne=!0,w=I.a.API_SERVER},"C+DQ":function(Oe,Ae,h){},D1Df:function(Oe,Ae,h){"use strict";function I(S){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(ue){return typeof ue}:I=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},I(S)}function de(){return de=Object.assign||function(S){for(var Q=1;Q<arguments.length;Q++){var ue=arguments[Q];for(var G in ue)Object.prototype.hasOwnProperty.call(ue,G)&&(S[G]=ue[G])}return S},de.apply(this,arguments)}function re(S,Q){var ue=Object.keys(S);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(S);Q&&(G=G.filter(function(De){return Object.getOwnPropertyDescriptor(S,De).enumerable})),ue.push.apply(ue,G)}return ue}function X(S){for(var Q=1;Q<arguments.length;Q++){var ue=arguments[Q]!=null?arguments[Q]:{};Q%2?re(ue,!0).forEach(function(G){K(S,G,ue[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(ue)):re(ue).forEach(function(G){Object.defineProperty(S,G,Object.getOwnPropertyDescriptor(ue,G))})}return S}function C(S,Q){if(S==null)return{};var ue=ne(S,Q),G,De;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(S);for(De=0;De<M.length;De++){if(G=M[De],Q.indexOf(G)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(S,G))continue;ue[G]=S[G]}}return ue}function ne(S,Q){if(S==null)return{};var ue={},G=Object.keys(S),De,M;for(M=0;M<G.length;M++){if(De=G[M],Q.indexOf(De)>=0)continue;ue[De]=S[De]}return ue}function w(S,Q){if(!(S instanceof Q))throw new TypeError("Cannot call a class as a function")}function R(S,Q){for(var ue=0;ue<Q.length;ue++){var G=Q[ue];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(S,G.key,G)}}function W(S,Q,ue){return Q&&R(S.prototype,Q),ue&&R(S,ue),S}function V(S,Q){return Q&&(I(Q)==="object"||typeof Q=="function")?Q:T(S)}function L(S){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},L(S)}function T(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function se(S,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(Q&&Q.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Q&&q(S,Q)}function q(S,Q){return q=Object.setPrototypeOf||function(G,De){return G.__proto__=De,G},q(S,Q)}function K(S,Q,ue){return Q in S?Object.defineProperty(S,Q,{value:ue,enumerable:!0,configurable:!0,writable:!0}):S[Q]=ue,S}var D=h("q1tI"),_=h("17x9"),A=h("H38U"),le=h("aRTE");function Me(S){for(var Q="",ue=0;ue<S.length;ue++){var G=S.charCodeAt(ue);G<128?Q+=String.fromCharCode(G):G<2048?(Q+=String.fromCharCode(192|G>>6),Q+=String.fromCharCode(128|G&63)):G<55296||G>=57344?(Q+=String.fromCharCode(224|G>>12),Q+=String.fromCharCode(128|G>>6&63),Q+=String.fromCharCode(128|G&63)):(ue++,G=65536+((G&1023)<<10|S.charCodeAt(ue)&1023),Q+=String.fromCharCode(240|G>>18),Q+=String.fromCharCode(128|G>>12&63),Q+=String.fromCharCode(128|G>>6&63),Q+=String.fromCharCode(128|G&63))}return Q}var Je={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},we={},ke=4,Ve=.1;function Ee(S){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ue=[];return S.forEach(function(G,De){var M=null;G.forEach(function(v,ce){if(!v&&M!==null){ue.push("M".concat(M+Q," ").concat(De+Q,"h").concat(ce-M,"v1H").concat(M+Q,"z")),M=null;return}if(ce===G.length-1){if(!v)return;M===null?ue.push("M".concat(ce+Q,",").concat(De+Q," h1v1H").concat(ce+Q,"z")):ue.push("M".concat(M+Q,",").concat(De+Q," h").concat(ce+1-M,"v1H").concat(M+Q,"z"));return}v&&M===null&&(M=ce)})}),ue.join("")}function Ce(S,Q){return S.slice().map(function(ue,G){return G<Q.y||G>=Q.y+Q.h?ue:ue.map(function(De,M){return M<Q.x||M>=Q.x+Q.w?De:!1})})}function Ne(S,Q){var ue=S.imageSettings,G=S.size,De=S.includeMargin;if(ue==null)return null;var M=De?ke:0,v=Q.length+M*2,ce=Math.floor(G*Ve),Ue=v/G,Re=(ue.width||ce)*Ue,qe=(ue.height||ce)*Ue,dt=ue.x==null?Q.length/2-Re/2:ue.x*Ue,We=ue.y==null?Q.length/2-qe/2:ue.y*Ue,ze=null;if(ue.excavate){var Pe=Math.floor(dt),Fe=Math.floor(We),he=Math.ceil(Re+dt-Pe),P=Math.ceil(qe+We-Fe);ze={x:Pe,y:Fe,w:he,h:P}}return{x:dt,y:We,h:qe,w:Re,excavation:ze}}var be=function(){try{new Path2D().addPath(new Path2D)}catch(S){return!1}return!0}(),B=function(S){se(Q,S);function Q(){var ue,G;w(this,Q);for(var De=arguments.length,M=new Array(De),v=0;v<De;v++)M[v]=arguments[v];return G=V(this,(ue=L(Q)).call.apply(ue,[this].concat(M))),K(T(G),"_canvas",void 0),K(T(G),"_image",void 0),K(T(G),"state",{imgLoaded:!1}),K(T(G),"handleImageLoad",function(){G.setState({imgLoaded:!0})}),G}return W(Q,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var G=this.props,De=G.value,M=G.size,v=G.level,ce=G.bgColor,Ue=G.fgColor,Re=G.includeMargin,qe=G.imageSettings,dt=new A(-1,le[v]);if(dt.addData(Me(De)),dt.make(),this._canvas!=null){var We=this._canvas,ze=We.getContext("2d");if(!ze)return;var Pe=dt.modules;if(Pe===null)return;var Fe=Re?ke:0,he=Pe.length+Fe*2,P=Ne(this.props,Pe);qe!=null&&P!=null&&(P.excavation!=null&&(Pe=Ce(Pe,P.excavation)));var nt=window.devicePixelRatio||1;We.height=We.width=M*nt;var Tt=M/he*nt;ze.scale(Tt,Tt),ze.fillStyle=ce,ze.fillRect(0,0,he,he),ze.fillStyle=Ue,be?ze.fill(new Path2D(Ee(Pe,Fe))):Pe.forEach(function(Ut,ft){Ut.forEach(function(wt,He){wt&&ze.fillRect(He+Fe,ft+Fe,1,1)})}),this.state.imgLoaded&&this._image&&P!=null&&ze.drawImage(this._image,P.x+Fe,P.y+Fe,P.w,P.h)}}},{key:"render",value:function(){var G=this,De=this.props,M=De.value,v=De.size,ce=De.level,Ue=De.bgColor,Re=De.fgColor,qe=De.style,dt=De.includeMargin,We=De.imageSettings,ze=C(De,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),Pe=X({height:v,width:v},qe),Fe=null,he=We&&We.src;return We!=null&&he!=null&&(Fe=D.createElement("img",{src:he,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(nt){return G._image=nt}})),D.createElement(D.Fragment,null,D.createElement("canvas",de({style:Pe,height:v,width:v,ref:function(nt){return G._canvas=nt}},ze)),Fe)}}]),Q}(D.PureComponent);K(B,"defaultProps",Je);var xe=function(S){se(Q,S);function Q(){return w(this,Q),V(this,L(Q).apply(this,arguments))}return W(Q,[{key:"render",value:function(){var G=this.props,De=G.value,M=G.size,v=G.level,ce=G.bgColor,Ue=G.fgColor,Re=G.includeMargin,qe=G.imageSettings,dt=C(G,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),We=new A(-1,le[v]);We.addData(Me(De)),We.make();var ze=We.modules;if(ze===null)return null;var Pe=Re?ke:0,Fe=ze.length+Pe*2,he=Ne(this.props,ze),P=null;qe!=null&&he!=null&&(he.excavation!=null&&(ze=Ce(ze,he.excavation)),P=D.createElement("image",{xlinkHref:qe.src,height:he.h,width:he.w,x:he.x+Pe,y:he.y+Pe,preserveAspectRatio:"none"}));var nt=Ee(ze,Pe);return D.createElement("svg",de({shapeRendering:"crispEdges",height:M,width:M,viewBox:"0 0 ".concat(Fe," ").concat(Fe)},dt),D.createElement("path",{fill:ce,d:"M0,0 h".concat(Fe,"v").concat(Fe,"H0z")}),D.createElement("path",{fill:Ue,d:nt}),P)}}]),Q}(D.PureComponent);K(xe,"defaultProps",Je);var me=function(Q){var ue=Q.renderAs,G=C(Q,["renderAs"]),De=ue==="svg"?xe:B;return D.createElement(De,G)};me.defaultProps=X({renderAs:"canvas"},Je),Oe.exports=me},DlQD:function(Oe,Ae,h){(function(I,de){Oe.exports=de()})(this,function(){"use strict";function I(ie,Z){for(var ee=0;ee<Z.length;ee++){var E=Z[ee];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(ie,E.key,E)}}function de(ie,Z,ee){return Z&&I(ie.prototype,Z),ee&&I(ie,ee),ie}function re(ie,Z){if(!ie)return;if(typeof ie=="string")return X(ie,Z);var ee=Object.prototype.toString.call(ie).slice(8,-1);if(ee==="Object"&&ie.constructor&&(ee=ie.constructor.name),ee==="Map"||ee==="Set")return Array.from(ie);if(ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee))return X(ie,Z)}function X(ie,Z){(Z==null||Z>ie.length)&&(Z=ie.length);for(var ee=0,E=new Array(Z);ee<Z;ee++)E[ee]=ie[ee];return E}function C(ie,Z){var ee;if(typeof Symbol=="undefined"||ie[Symbol.iterator]==null){if(Array.isArray(ie)||(ee=re(ie))||Z&&ie&&typeof ie.length=="number"){ee&&(ie=ee);var E=0;return function(){return E>=ie.length?{done:!0}:{done:!1,value:ie[E++]}}}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 ee=ie[Symbol.iterator](),ee.next.bind(ee)}function ne(ie,Z){return Z={exports:{}},ie(Z,Z.exports),Z.exports}var w=ne(function(ie){function Z(){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 ee(E){ie.exports.defaults=E}ie.exports={defaults:Z(),getDefaults:Z,changeDefaults:ee}}),R=w.defaults,W=w.getDefaults,V=w.changeDefaults,L=/[&<>"']/,T=/[&<>"']/g,se=/[<>"']|&(?!#?\w+;)/,q=/[<>"']|&(?!#?\w+;)/g,K={"&":"&","<":"<",">":">",'"':""","'":"'"},D=function(Z){return K[Z]};function _(ie,Z){if(Z){if(L.test(ie))return ie.replace(T,D)}else if(se.test(ie))return ie.replace(q,D);return ie}var A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function le(ie){return ie.replace(A,function(Z,ee){return ee=ee.toLowerCase(),ee==="colon"?":":ee.charAt(0)==="#"?ee.charAt(1)==="x"?String.fromCharCode(parseInt(ee.substring(2),16)):String.fromCharCode(+ee.substring(1)):""})}var Me=/(^|[^\[])\^/g;function Je(ie,Z){ie=ie.source||ie,Z=Z||"";var ee={replace:function(x,O){return O=O.source||O,O=O.replace(Me,"$1"),ie=ie.replace(x,O),ee},getRegex:function(){return new RegExp(ie,Z)}};return ee}var we=/[^\w:]/g,ke=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ve(ie,Z,ee){if(ie){var E;try{E=decodeURIComponent(le(ee)).replace(we,"").toLowerCase()}catch(x){return null}if(E.indexOf("javascript:")===0||E.indexOf("vbscript:")===0||E.indexOf("data:")===0)return null}Z&&!ke.test(ee)&&(ee=B(Z,ee));try{ee=encodeURI(ee).replace(/%25/g,"%")}catch(x){return null}return ee}var Ee={},Ce=/^[^:]+:\/*[^/]*$/,Ne=/^([^:]+:)[\s\S]*$/,be=/^([^:]+:\/*[^/]*)[\s\S]*$/;function B(ie,Z){Ee[" "+ie]||(Ce.test(ie)?Ee[" "+ie]=ie+"/":Ee[" "+ie]=Q(ie,"/",!0)),ie=Ee[" "+ie];var ee=ie.indexOf(":")===-1;return Z.substring(0,2)==="//"?ee?Z:ie.replace(Ne,"$1")+Z:Z.charAt(0)==="/"?ee?Z:ie.replace(be,"$1")+Z:ie+Z}var xe={exec:function(){}};function me(ie){for(var Z=1,ee,E;Z<arguments.length;Z++){ee=arguments[Z];for(E in ee)Object.prototype.hasOwnProperty.call(ee,E)&&(ie[E]=ee[E])}return ie}function S(ie,Z){var ee=ie.replace(/\|/g,function(O,j,ge){for(var Se=!1,Ye=j;--Ye>=0&&ge[Ye]==="\\";)Se=!Se;return Se?"|":" |"}),E=ee.split(/ \|/),x=0;if(E.length>Z)E.splice(Z);else for(;E.length<Z;)E.push("");for(;x<E.length;x++)E[x]=E[x].trim().replace(/\\\|/g,"|");return E}function Q(ie,Z,ee){var E=ie.length;if(E===0)return"";for(var x=0;x<E;){var O=ie.charAt(E-x-1);if(O===Z&&!ee)x++;else if(O!==Z&&ee)x++;else break}return ie.substr(0,E-x)}function ue(ie,Z){if(ie.indexOf(Z[1])===-1)return-1;for(var ee=ie.length,E=0,x=0;x<ee;x++)if(ie[x]==="\\")x++;else if(ie[x]===Z[0])E++;else if(ie[x]===Z[1]&&(E--,E<0))return x;return-1}function G(ie){ie&&ie.sanitize&&!ie.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var De={escape:_,unescape:le,edit:Je,cleanUrl:Ve,resolveUrl:B,noopTest:xe,merge:me,splitCells:S,rtrim:Q,findClosingBracket:ue,checkSanitizeDeprecation:G},M=w.defaults,v=De.rtrim,ce=De.splitCells,Ue=De.escape,Re=De.findClosingBracket;function qe(ie,Z,ee){var E=Z.href,x=Z.title?Ue(Z.title):null,O=ie[1].replace(/\\([\[\]])/g,"$1");return ie[0].charAt(0)!=="!"?{type:"link",raw:ee,href:E,title:x,text:O}:{type:"image",raw:ee,href:E,title:x,text:Ue(O)}}function dt(ie,Z){var ee=ie.match(/^(\s+)(?:```)/);if(ee===null)return Z;var E=ee[1];return Z.split(`
|
|
`).map(function(x){var O=x.match(/^\s+/);if(O===null)return x;var j=O[0];return j.length>=E.length?x.slice(E.length):x}).join(`
|
|
`)}var We=function(){function ie(ee){this.options=ee||M}var Z=ie.prototype;return Z.space=function(E){var x=this.rules.block.newline.exec(E);if(x)return x[0].length>1?{type:"space",raw:x[0]}:{raw:`
|
|
`}},Z.code=function(E,x){var O=this.rules.block.code.exec(E);if(O){var j=x[x.length-1];if(j&&j.type==="paragraph")return{raw:O[0],text:O[0].trimRight()};var ge=O[0].replace(/^ {4}/gm,"");return{type:"code",raw:O[0],codeBlockStyle:"indented",text:this.options.pedantic?ge:v(ge,`
|
|
`)}}},Z.fences=function(E){var x=this.rules.block.fences.exec(E);if(x){var O=x[0],j=dt(O,x[3]||"");return{type:"code",raw:O,lang:x[2]?x[2].trim():x[2],text:j}}},Z.heading=function(E){var x=this.rules.block.heading.exec(E);if(x)return{type:"heading",raw:x[0],depth:x[1].length,text:x[2]}},Z.nptable=function(E){var x=this.rules.block.nptable.exec(E);if(x){var O={type:"table",header:ce(x[1].replace(/^ *| *\| *$/g,"")),align:x[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:x[3]?x[3].replace(/\n$/,"").split(`
|
|
`):[],raw:x[0]};if(O.header.length===O.align.length){var j=O.align.length,ge;for(ge=0;ge<j;ge++)/^ *-+: *$/.test(O.align[ge])?O.align[ge]="right":/^ *:-+: *$/.test(O.align[ge])?O.align[ge]="center":/^ *:-+ *$/.test(O.align[ge])?O.align[ge]="left":O.align[ge]=null;for(j=O.cells.length,ge=0;ge<j;ge++)O.cells[ge]=ce(O.cells[ge],O.header.length);return O}}},Z.hr=function(E){var x=this.rules.block.hr.exec(E);if(x)return{type:"hr",raw:x[0]}},Z.blockquote=function(E){var x=this.rules.block.blockquote.exec(E);if(x){var O=x[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:x[0],text:O}}},Z.list=function(E){var x=this.rules.block.list.exec(E);if(x){for(var O=x[0],j=x[2],ge=j.length>1,Se=j[j.length-1]===")",Ye={type:"list",raw:O,ordered:ge,start:ge?+j.slice(0,-1):"",loose:!1,items:[]},_t=x[0].match(this.rules.block.item),zt=!1,_e,Ot,Ct,et,Zt,Kt,at,un=_t.length,Wt=0;Wt<un;Wt++)_e=_t[Wt],O=_e,Ot=_e.length,_e=_e.replace(/^ *([*+-]|\d+[.)]) */,""),~_e.indexOf(`
|
|
`)&&(Ot-=_e.length,_e=this.options.pedantic?_e.replace(/^ {1,4}/gm,""):_e.replace(new RegExp("^ {1,"+Ot+"}","gm"),"")),Wt!==un-1&&(Ct=this.rules.block.bullet.exec(_t[Wt+1])[0],(ge?Ct.length===1||!Se&&Ct[Ct.length-1]===")":Ct.length>1||this.options.smartLists&&Ct!==j)&&(et=_t.slice(Wt+1).join(`
|
|
`),Ye.raw=Ye.raw.substring(0,Ye.raw.length-et.length),Wt=un-1)),Zt=zt||/\n\n(?!\s*$)/.test(_e),Wt!==un-1&&(zt=_e.charAt(_e.length-1)===`
|
|
`,Zt||(Zt=zt)),Zt&&(Ye.loose=!0),Kt=/^\[[ xX]\] /.test(_e),at=void 0,Kt&&(at=_e[1]!==" ",_e=_e.replace(/^\[[ xX]\] +/,"")),Ye.items.push({type:"list_item",raw:O,task:Kt,checked:at,loose:Zt,text:_e});return Ye}},Z.html=function(E){var x=this.rules.block.html.exec(E);if(x)return{type:this.options.sanitize?"paragraph":"html",raw:x[0],pre:!this.options.sanitizer&&(x[1]==="pre"||x[1]==="script"||x[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(x[0]):Ue(x[0]):x[0]}},Z.def=function(E){var x=this.rules.block.def.exec(E);if(x){x[3]&&(x[3]=x[3].substring(1,x[3].length-1));var O=x[1].toLowerCase().replace(/\s+/g," ");return{tag:O,raw:x[0],href:x[2],title:x[3]}}},Z.table=function(E){var x=this.rules.block.table.exec(E);if(x){var O={type:"table",header:ce(x[1].replace(/^ *| *\| *$/g,"")),align:x[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:x[3]?x[3].replace(/\n$/,"").split(`
|
|
`):[]};if(O.header.length===O.align.length){O.raw=x[0];var j=O.align.length,ge;for(ge=0;ge<j;ge++)/^ *-+: *$/.test(O.align[ge])?O.align[ge]="right":/^ *:-+: *$/.test(O.align[ge])?O.align[ge]="center":/^ *:-+ *$/.test(O.align[ge])?O.align[ge]="left":O.align[ge]=null;for(j=O.cells.length,ge=0;ge<j;ge++)O.cells[ge]=ce(O.cells[ge].replace(/^ *\| *| *\| *$/g,""),O.header.length);return O}}},Z.lheading=function(E){var x=this.rules.block.lheading.exec(E);if(x)return{type:"heading",raw:x[0],depth:x[2].charAt(0)==="="?1:2,text:x[1]}},Z.paragraph=function(E){var x=this.rules.block.paragraph.exec(E);if(x)return{type:"paragraph",raw:x[0],text:x[1].charAt(x[1].length-1)===`
|
|
`?x[1].slice(0,-1):x[1]}},Z.text=function(E,x){var O=this.rules.block.text.exec(E);if(O){var j=x[x.length-1];return j&&j.type==="text"?{raw:O[0],text:O[0]}:{type:"text",raw:O[0],text:O[0]}}},Z.escape=function(E){var x=this.rules.inline.escape.exec(E);if(x)return{type:"escape",raw:x[0],text:Ue(x[1])}},Z.tag=function(E,x,O){var j=this.rules.inline.tag.exec(E);if(j)return!x&&/^<a /i.test(j[0])?x=!0:x&&/^<\/a>/i.test(j[0])&&(x=!1),!O&&/^<(pre|code|kbd|script)(\s|>)/i.test(j[0])?O=!0:O&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(j[0])&&(O=!1),{type:this.options.sanitize?"text":"html",raw:j[0],inLink:x,inRawBlock:O,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(j[0]):Ue(j[0]):j[0]}},Z.link=function(E){var x=this.rules.inline.link.exec(E);if(x){var O=Re(x[2],"()");if(O>-1){var j=x[0].indexOf("!")===0?5:4,ge=j+x[1].length+O;x[2]=x[2].substring(0,O),x[0]=x[0].substring(0,ge).trim(),x[3]=""}var Se=x[2],Ye="";if(this.options.pedantic){var _t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Se);_t?(Se=_t[1],Ye=_t[3]):Ye=""}else Ye=x[3]?x[3].slice(1,-1):"";Se=Se.trim().replace(/^<([\s\S]*)>$/,"$1");var zt=qe(x,{href:Se&&Se.replace(this.rules.inline._escapes,"$1"),title:Ye&&Ye.replace(this.rules.inline._escapes,"$1")},x[0]);return zt}},Z.reflink=function(E,x){var O;if((O=this.rules.inline.reflink.exec(E))||(O=this.rules.inline.nolink.exec(E))){var j=(O[2]||O[1]).replace(/\s+/g," ");if(j=x[j.toLowerCase()],!j||!j.href){var ge=O[0].charAt(0);return{type:"text",raw:ge,text:ge}}var Se=qe(O,j,O[0]);return Se}},Z.strong=function(E,x,O){O===void 0&&(O="");var j=this.rules.inline.strong.start.exec(E);if(j&&(!j[1]||j[1]&&(O===""||this.rules.inline.punctuation.exec(O)))){x=x.slice(-1*E.length);var ge=j[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ge.lastIndex=0;for(var Se;(j=ge.exec(x))!=null;)if(Se=this.rules.inline.strong.middle.exec(x.slice(0,j.index+3)),Se)return{type:"strong",raw:E.slice(0,Se[0].length),text:E.slice(2,Se[0].length-2)}}},Z.em=function(E,x,O){O===void 0&&(O="");var j=this.rules.inline.em.start.exec(E);if(j&&(!j[1]||j[1]&&(O===""||this.rules.inline.punctuation.exec(O)))){x=x.slice(-1*E.length);var ge=j[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ge.lastIndex=0;for(var Se;(j=ge.exec(x))!=null;)if(Se=this.rules.inline.em.middle.exec(x.slice(0,j.index+2)),Se)return{type:"em",raw:E.slice(0,Se[0].length),text:E.slice(1,Se[0].length-1)}}},Z.codespan=function(E){var x=this.rules.inline.code.exec(E);if(x){var O=x[2].replace(/\n/g," "),j=/[^ ]/.test(O),ge=O.startsWith(" ")&&O.endsWith(" ");return j&&ge&&(O=O.substring(1,O.length-1)),O=Ue(O,!0),{type:"codespan",raw:x[0],text:O}}},Z.br=function(E){var x=this.rules.inline.br.exec(E);if(x)return{type:"br",raw:x[0]}},Z.del=function(E){var x=this.rules.inline.del.exec(E);if(x)return{type:"del",raw:x[0],text:x[1]}},Z.autolink=function(E,x){var O=this.rules.inline.autolink.exec(E);if(O){var j,ge;return O[2]==="@"?(j=Ue(this.options.mangle?x(O[1]):O[1]),ge="mailto:"+j):(j=Ue(O[1]),ge=j),{type:"link",raw:O[0],text:j,href:ge,tokens:[{type:"text",raw:j,text:j}]}}},Z.url=function(E,x){var O;if(O=this.rules.inline.url.exec(E)){var j,ge;if(O[2]==="@")j=Ue(this.options.mangle?x(O[0]):O[0]),ge="mailto:"+j;else{var Se;do Se=O[0],O[0]=this.rules.inline._backpedal.exec(O[0])[0];while(Se!==O[0]);j=Ue(O[0]),O[1]==="www."?ge="http://"+j:ge=j}return{type:"link",raw:O[0],text:j,href:ge,tokens:[{type:"text",raw:j,text:j}]}}},Z.inlineText=function(E,x,O){var j=this.rules.inline.text.exec(E);if(j){var ge;return x?ge=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(j[0]):Ue(j[0]):j[0]:ge=Ue(this.options.smartypants?O(j[0]):j[0]),{type:"text",raw:j[0],text:ge}}},ie}(),ze=De.noopTest,Pe=De.edit,Fe=De.merge,he={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*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\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:ze,table:ze,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};he._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,he._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,he.def=Pe(he.def).replace("label",he._label).replace("title",he._title).getRegex(),he.bullet=/(?:[*+-]|\d{1,9}[.)])/,he.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,he.item=Pe(he.item,"gm").replace(/bull/g,he.bullet).getRegex(),he.list=Pe(he.list).replace(/bull/g,he.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+he.def.source+")").getRegex(),he._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",he._comment=/<!--(?!-?>)[\s\S]*?-->/,he.html=Pe(he.html,"i").replace("comment",he._comment).replace("tag",he._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),he.paragraph=Pe(he._paragraph).replace("hr",he.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",he._tag).getRegex(),he.blockquote=Pe(he.blockquote).replace("paragraph",he.paragraph).getRegex(),he.normal=Fe({},he),he.gfm=Fe({},he.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*|$)"}),he.gfm.nptable=Pe(he.gfm.nptable).replace("hr",he.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",he._tag).getRegex(),he.gfm.table=Pe(he.gfm.table).replace("hr",he.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",he._tag).getRegex(),he.pedantic=Fe({},he.normal,{html:Pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",he._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:ze,paragraph:Pe(he.normal._paragraph).replace("hr",he.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",he.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var P={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ze,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\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:ze,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};P._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",P.punctuation=Pe(P.punctuation).replace(/punctuation/g,P._punctuation).getRegex(),P._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",P._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",P.em.start=Pe(P.em.start).replace(/punctuation/g,P._punctuation).getRegex(),P.em.middle=Pe(P.em.middle).replace(/punctuation/g,P._punctuation).replace(/overlapSkip/g,P._overlapSkip).getRegex(),P.em.endAst=Pe(P.em.endAst,"g").replace(/punctuation/g,P._punctuation).getRegex(),P.em.endUnd=Pe(P.em.endUnd,"g").replace(/punctuation/g,P._punctuation).getRegex(),P.strong.start=Pe(P.strong.start).replace(/punctuation/g,P._punctuation).getRegex(),P.strong.middle=Pe(P.strong.middle).replace(/punctuation/g,P._punctuation).replace(/blockSkip/g,P._blockSkip).getRegex(),P.strong.endAst=Pe(P.strong.endAst,"g").replace(/punctuation/g,P._punctuation).getRegex(),P.strong.endUnd=Pe(P.strong.endUnd,"g").replace(/punctuation/g,P._punctuation).getRegex(),P.blockSkip=Pe(P._blockSkip,"g").getRegex(),P.overlapSkip=Pe(P._overlapSkip,"g").getRegex(),P._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,P._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,P._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])?)+(?![-_])/,P.autolink=Pe(P.autolink).replace("scheme",P._scheme).replace("email",P._email).getRegex(),P._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,P.tag=Pe(P.tag).replace("comment",he._comment).replace("attribute",P._attribute).getRegex(),P._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,P._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,P._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,P.link=Pe(P.link).replace("label",P._label).replace("href",P._href).replace("title",P._title).getRegex(),P.reflink=Pe(P.reflink).replace("label",P._label).getRegex(),P.reflinkSearch=Pe(P.reflinkSearch,"g").replace("reflink",P.reflink).replace("nolink",P.nolink).getRegex(),P.normal=Fe({},P),P.pedantic=Fe({},P.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:Pe(/^!?\[(label)\]\((.*?)\)/).replace("label",P._label).getRegex(),reflink:Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",P._label).getRegex()}),P.gfm=Fe({},P.normal,{escape:Pe(P.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]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),P.gfm.url=Pe(P.gfm.url,"i").replace("email",P.gfm._extended_email).getRegex(),P.breaks=Fe({},P.gfm,{br:Pe(P.br).replace("{2,}","*").getRegex(),text:Pe(P.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var nt={block:he,inline:P},Tt=w.defaults,Ut=nt.block,ft=nt.inline;function wt(ie){return ie.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function He(ie){var Z="",ee,E,x=ie.length;for(ee=0;ee<x;ee++)E=ie.charCodeAt(ee),Math.random()>.5&&(E="x"+E.toString(16)),Z+="&#"+E+";";return Z}var rt=function(){function ie(ee){this.tokens=[],this.tokens.links=Object.create(null),this.options=ee||Tt,this.options.tokenizer=this.options.tokenizer||new We,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var E={block:Ut.normal,inline:ft.normal};this.options.pedantic?(E.block=Ut.pedantic,E.inline=ft.pedantic):this.options.gfm&&(E.block=Ut.gfm,this.options.breaks?E.inline=ft.breaks:E.inline=ft.gfm),this.tokenizer.rules=E}ie.lex=function(E,x){var O=new ie(x);return O.lex(E)};var Z=ie.prototype;return Z.lex=function(E){return E=E.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(E,this.tokens,!0),this.inline(this.tokens),this.tokens},Z.blockTokens=function(E,x,O){x===void 0&&(x=[]),O===void 0&&(O=!0),E=E.replace(/^ +$/gm,"");for(var j,ge,Se,Ye;E;){if(j=this.tokenizer.space(E)){E=E.substring(j.raw.length),j.type&&x.push(j);continue}if(j=this.tokenizer.code(E,x)){E=E.substring(j.raw.length),j.type?x.push(j):(Ye=x[x.length-1],Ye.raw+=`
|
|
`+j.raw,Ye.text+=`
|
|
`+j.text);continue}if(j=this.tokenizer.fences(E)){E=E.substring(j.raw.length),x.push(j);continue}if(j=this.tokenizer.heading(E)){E=E.substring(j.raw.length),x.push(j);continue}if(j=this.tokenizer.nptable(E)){E=E.substring(j.raw.length),x.push(j);continue}if(j=this.tokenizer.hr(E)){E=E.substring(j.raw.length),x.push(j);continue}if(j=this.tokenizer.blockquote(E)){E=E.substring(j.raw.length),j.tokens=this.blockTokens(j.text,[],O),x.push(j);continue}if(j=this.tokenizer.list(E)){for(E=E.substring(j.raw.length),Se=j.items.length,ge=0;ge<Se;ge++)j.items[ge].tokens=this.blockTokens(j.items[ge].text,[],!1);x.push(j);continue}if(j=this.tokenizer.html(E)){E=E.substring(j.raw.length),x.push(j);continue}if(O&&(j=this.tokenizer.def(E))){E=E.substring(j.raw.length),this.tokens.links[j.tag]||(this.tokens.links[j.tag]={href:j.href,title:j.title});continue}if(j=this.tokenizer.table(E)){E=E.substring(j.raw.length),x.push(j);continue}if(j=this.tokenizer.lheading(E)){E=E.substring(j.raw.length),x.push(j);continue}if(O&&(j=this.tokenizer.paragraph(E))){E=E.substring(j.raw.length),x.push(j);continue}if(j=this.tokenizer.text(E,x)){E=E.substring(j.raw.length),j.type?x.push(j):(Ye=x[x.length-1],Ye.raw+=`
|
|
`+j.raw,Ye.text+=`
|
|
`+j.text);continue}if(E){var _t="Infinite loop on byte: "+E.charCodeAt(0);if(this.options.silent){console.error(_t);break}else throw new Error(_t)}}return x},Z.inline=function(E){var x,O,j,ge,Se,Ye,_t=E.length;for(x=0;x<_t;x++){Ye=E[x];switch(Ye.type){case"paragraph":case"text":case"heading":{Ye.tokens=[],this.inlineTokens(Ye.text,Ye.tokens);break}case"table":{for(Ye.tokens={header:[],cells:[]},ge=Ye.header.length,O=0;O<ge;O++)Ye.tokens.header[O]=[],this.inlineTokens(Ye.header[O],Ye.tokens.header[O]);for(ge=Ye.cells.length,O=0;O<ge;O++)for(Se=Ye.cells[O],Ye.tokens.cells[O]=[],j=0;j<Se.length;j++)Ye.tokens.cells[O][j]=[],this.inlineTokens(Se[j],Ye.tokens.cells[O][j]);break}case"blockquote":{this.inline(Ye.tokens);break}case"list":{for(ge=Ye.items.length,O=0;O<ge;O++)this.inline(Ye.items[O].tokens);break}}}return E},Z.inlineTokens=function(E,x,O,j,ge){x===void 0&&(x=[]),O===void 0&&(O=!1),j===void 0&&(j=!1),ge===void 0&&(ge="");var Se,Ye=E,_t;if(this.tokens.links){var zt=Object.keys(this.tokens.links);if(zt.length>0)for(;(_t=this.tokenizer.rules.inline.reflinkSearch.exec(Ye))!=null;)zt.includes(_t[0].slice(_t[0].lastIndexOf("[")+1,-1))&&(Ye=Ye.slice(0,_t.index)+"["+"a".repeat(_t[0].length-2)+"]"+Ye.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(_t=this.tokenizer.rules.inline.blockSkip.exec(Ye))!=null;)Ye=Ye.slice(0,_t.index)+"["+"a".repeat(_t[0].length-2)+"]"+Ye.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;E;){if(Se=this.tokenizer.escape(E)){E=E.substring(Se.raw.length),x.push(Se);continue}if(Se=this.tokenizer.tag(E,O,j)){E=E.substring(Se.raw.length),O=Se.inLink,j=Se.inRawBlock,x.push(Se);continue}if(Se=this.tokenizer.link(E)){E=E.substring(Se.raw.length),Se.type==="link"&&(Se.tokens=this.inlineTokens(Se.text,[],!0,j)),x.push(Se);continue}if(Se=this.tokenizer.reflink(E,this.tokens.links)){E=E.substring(Se.raw.length),Se.type==="link"&&(Se.tokens=this.inlineTokens(Se.text,[],!0,j)),x.push(Se);continue}if(Se=this.tokenizer.strong(E,Ye,ge)){E=E.substring(Se.raw.length),Se.tokens=this.inlineTokens(Se.text,[],O,j),x.push(Se);continue}if(Se=this.tokenizer.em(E,Ye,ge)){E=E.substring(Se.raw.length),Se.tokens=this.inlineTokens(Se.text,[],O,j),x.push(Se);continue}if(Se=this.tokenizer.codespan(E)){E=E.substring(Se.raw.length),x.push(Se);continue}if(Se=this.tokenizer.br(E)){E=E.substring(Se.raw.length),x.push(Se);continue}if(Se=this.tokenizer.del(E)){E=E.substring(Se.raw.length),Se.tokens=this.inlineTokens(Se.text,[],O,j),x.push(Se);continue}if(Se=this.tokenizer.autolink(E,He)){E=E.substring(Se.raw.length),x.push(Se);continue}if(!O&&(Se=this.tokenizer.url(E,He))){E=E.substring(Se.raw.length),x.push(Se);continue}if(Se=this.tokenizer.inlineText(E,j,wt)){E=E.substring(Se.raw.length),ge=Se.raw.slice(-1),x.push(Se);continue}if(E){var _e="Infinite loop on byte: "+E.charCodeAt(0);if(this.options.silent){console.error(_e);break}else throw new Error(_e)}}return x},de(ie,null,[{key:"rules",get:function(){return{block:Ut,inline:ft}}}]),ie}(),pt=w.defaults,gt=De.cleanUrl,$e=De.escape,Ke=function(){function ie(ee){this.options=ee||pt}var Z=ie.prototype;return Z.code=function(E,x,O){var j=(x||"").match(/\S*/)[0];if(this.options.highlight){var ge=this.options.highlight(E,j);ge!=null&&ge!==E&&(O=!0,E=ge)}return j?'<pre><code class="'+this.options.langPrefix+$e(j,!0)+'">'+(O?E:$e(E,!0))+`</code></pre>
|
|
`:"<pre><code>"+(O?E:$e(E,!0))+`</code></pre>
|
|
`},Z.blockquote=function(E){return`<blockquote>
|
|
`+E+`</blockquote>
|
|
`},Z.html=function(E){return E},Z.heading=function(E,x,O,j){return this.options.headerIds?"<h"+x+' id="'+this.options.headerPrefix+j.slug(O)+'">'+E+"</h"+x+`>
|
|
`:"<h"+x+">"+E+"</h"+x+`>
|
|
`},Z.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},Z.list=function(E,x,O){var j=x?"ol":"ul",ge=x&&O!==1?' start="'+O+'"':"";return"<"+j+ge+`>
|
|
`+E+"</"+j+`>
|
|
`},Z.listitem=function(E){return"<li>"+E+`</li>
|
|
`},Z.checkbox=function(E){return"<input "+(E?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Z.paragraph=function(E){return"<p>"+E+`</p>
|
|
`},Z.table=function(E,x){return x&&(x="<tbody>"+x+"</tbody>"),`<table>
|
|
<thead>
|
|
`+E+`</thead>
|
|
`+x+`</table>
|
|
`},Z.tablerow=function(E){return`<tr>
|
|
`+E+`</tr>
|
|
`},Z.tablecell=function(E,x){var O=x.header?"th":"td",j=x.align?"<"+O+' align="'+x.align+'">':"<"+O+">";return j+E+"</"+O+`>
|
|
`},Z.strong=function(E){return"<strong>"+E+"</strong>"},Z.em=function(E){return"<em>"+E+"</em>"},Z.codespan=function(E){return"<code>"+E+"</code>"},Z.br=function(){return this.options.xhtml?"<br/>":"<br>"},Z.del=function(E){return"<del>"+E+"</del>"},Z.link=function(E,x,O){if(E=gt(this.options.sanitize,this.options.baseUrl,E),E===null)return O;var j='<a href="'+$e(E)+'"';return x&&(j+=' title="'+x+'"'),j+=">"+O+"</a>",j},Z.image=function(E,x,O){if(E=gt(this.options.sanitize,this.options.baseUrl,E),E===null)return O;var j='<img src="'+E+'" alt="'+O+'"';return x&&(j+=' title="'+x+'"'),j+=this.options.xhtml?"/>":">",j},Z.text=function(E){return E},ie}(),ot=function(){function ie(){}var Z=ie.prototype;return Z.strong=function(E){return E},Z.em=function(E){return E},Z.codespan=function(E){return E},Z.del=function(E){return E},Z.html=function(E){return E},Z.text=function(E){return E},Z.link=function(E,x,O){return""+O},Z.image=function(E,x,O){return""+O},Z.br=function(){return""},ie}(),Ft=function(){function ie(){this.seen={}}var Z=ie.prototype;return Z.slug=function(E){var x=E.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(x)){var O=x;do this.seen[O]++,x=O+"-"+this.seen[O];while(this.seen.hasOwnProperty(x))}return this.seen[x]=0,x},ie}(),bt=w.defaults,ut=De.unescape,st=function(){function ie(ee){this.options=ee||bt,this.options.renderer=this.options.renderer||new Ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ot,this.slugger=new Ft}ie.parse=function(E,x){var O=new ie(x);return O.parse(E)};var Z=ie.prototype;return Z.parse=function(E,x){x===void 0&&(x=!0);var O="",j,ge,Se,Ye,_t,zt,_e,Ot,Ct,et,Zt,Kt,at,un,Wt,Kn,In,It,vi=E.length;for(j=0;j<vi;j++){et=E[j];switch(et.type){case"space":continue;case"hr":{O+=this.renderer.hr();continue}case"heading":{O+=this.renderer.heading(this.parseInline(et.tokens),et.depth,ut(this.parseInline(et.tokens,this.textRenderer)),this.slugger);continue}case"code":{O+=this.renderer.code(et.text,et.lang,et.escaped);continue}case"table":{for(Ot="",_e="",Ye=et.header.length,ge=0;ge<Ye;ge++)_e+=this.renderer.tablecell(this.parseInline(et.tokens.header[ge]),{header:!0,align:et.align[ge]});for(Ot+=this.renderer.tablerow(_e),Ct="",Ye=et.cells.length,ge=0;ge<Ye;ge++){for(zt=et.tokens.cells[ge],_e="",_t=zt.length,Se=0;Se<_t;Se++)_e+=this.renderer.tablecell(this.parseInline(zt[Se]),{header:!1,align:et.align[Se]});Ct+=this.renderer.tablerow(_e)}O+=this.renderer.table(Ot,Ct);continue}case"blockquote":{Ct=this.parse(et.tokens),O+=this.renderer.blockquote(Ct);continue}case"list":{for(Zt=et.ordered,Kt=et.start,at=et.loose,Ye=et.items.length,Ct="",ge=0;ge<Ye;ge++)Wt=et.items[ge],Kn=Wt.checked,In=Wt.task,un="",Wt.task&&(It=this.renderer.checkbox(Kn),at?Wt.tokens.length>0&&Wt.tokens[0].type==="text"?(Wt.tokens[0].text=It+" "+Wt.tokens[0].text,Wt.tokens[0].tokens&&Wt.tokens[0].tokens.length>0&&Wt.tokens[0].tokens[0].type==="text"&&(Wt.tokens[0].tokens[0].text=It+" "+Wt.tokens[0].tokens[0].text)):Wt.tokens.unshift({type:"text",text:It}):un+=It),un+=this.parse(Wt.tokens,at),Ct+=this.renderer.listitem(un,In,Kn);O+=this.renderer.list(Ct,Zt,Kt);continue}case"html":{O+=this.renderer.html(et.text);continue}case"paragraph":{O+=this.renderer.paragraph(this.parseInline(et.tokens));continue}case"text":{for(Ct=et.tokens?this.parseInline(et.tokens):et.text;j+1<vi&&E[j+1].type==="text";)et=E[++j],Ct+=`
|
|
`+(et.tokens?this.parseInline(et.tokens):et.text);O+=x?this.renderer.paragraph(Ct):Ct;continue}default:{var si='Token with "'+et.type+'" type was not found.';if(this.options.silent){console.error(si);return}else throw new Error(si)}}}return O},Z.parseInline=function(E,x){x=x||this.renderer;var O="",j,ge,Se=E.length;for(j=0;j<Se;j++){ge=E[j];switch(ge.type){case"escape":{O+=x.text(ge.text);break}case"html":{O+=x.html(ge.text);break}case"link":{O+=x.link(ge.href,ge.title,this.parseInline(ge.tokens,x));break}case"image":{O+=x.image(ge.href,ge.title,ge.text);break}case"strong":{O+=x.strong(this.parseInline(ge.tokens,x));break}case"em":{O+=x.em(this.parseInline(ge.tokens,x));break}case"codespan":{O+=x.codespan(ge.text);break}case"br":{O+=x.br();break}case"del":{O+=x.del(this.parseInline(ge.tokens,x));break}case"text":{O+=x.text(ge.text);break}default:{var Ye='Token with "'+ge.type+'" type was not found.';if(this.options.silent){console.error(Ye);return}else throw new Error(Ye)}}}return O},ie}(),St=De.merge,ct=De.checkSanitizeDeprecation,xt=De.escape,Te=w.getDefaults,Dt=w.changeDefaults,ht=w.defaults;function Le(ie,Z,ee){if(typeof ie=="undefined"||ie===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ie!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ie)+", string expected");if(typeof Z=="function"&&(ee=Z,Z=null),Z=St({},Le.defaults,Z||{}),ct(Z),ee){var E=Z.highlight,x;try{x=rt.lex(ie,Z)}catch(Se){return ee(Se)}var O=function(Ye){var _t;if(!Ye)try{_t=st.parse(x,Z)}catch(zt){Ye=zt}return Z.highlight=E,Ye?ee(Ye):ee(null,_t)};if(!E||E.length<3)return O();if(delete Z.highlight,!x.length)return O();var j=0;Le.walkTokens(x,function(Se){Se.type==="code"&&(j++,setTimeout(function(){E(Se.text,Se.lang,function(Ye,_t){if(Ye)return O(Ye);_t!=null&&_t!==Se.text&&(Se.text=_t,Se.escaped=!0),j--,j===0&&O()})},0))}),j===0&&O();return}try{var ge=rt.lex(ie,Z);return Z.walkTokens&&Le.walkTokens(ge,Z.walkTokens),st.parse(ge,Z)}catch(Se){if(Se.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,Z.silent)return"<p>An error occurred:</p><pre>"+xt(Se.message+"",!0)+"</pre>";throw Se}}Le.options=Le.setOptions=function(ie){return St(Le.defaults,ie),Dt(Le.defaults),Le},Le.getDefaults=Te,Le.defaults=ht,Le.use=function(ie){var Z=St({},ie);if(ie.renderer&&function(){var E=Le.defaults.renderer||new Ke,x=function(ge){var Se=E[ge];E[ge]=function(){for(var Ye=arguments.length,_t=new Array(Ye),zt=0;zt<Ye;zt++)_t[zt]=arguments[zt];var _e=ie.renderer[ge].apply(E,_t);return _e===!1&&(_e=Se.apply(E,_t)),_e}};for(var O in ie.renderer)x(O);Z.renderer=E}(),ie.tokenizer&&function(){var E=Le.defaults.tokenizer||new We,x=function(ge){var Se=E[ge];E[ge]=function(){for(var Ye=arguments.length,_t=new Array(Ye),zt=0;zt<Ye;zt++)_t[zt]=arguments[zt];var _e=ie.tokenizer[ge].apply(E,_t);return _e===!1&&(_e=Se.apply(E,_t)),_e}};for(var O in ie.tokenizer)x(O);Z.tokenizer=E}(),ie.walkTokens){var ee=Le.defaults.walkTokens;Z.walkTokens=function(E){ie.walkTokens(E),ee&&ee(E)}}Le.setOptions(Z)},Le.walkTokens=function(ie,Z){for(var ee=C(ie),E;!(E=ee()).done;){var x=E.value;Z(x);switch(x.type){case"table":{for(var O=C(x.tokens.header),j;!(j=O()).done;){var ge=j.value;Le.walkTokens(ge,Z)}for(var Se=C(x.tokens.cells),Ye;!(Ye=Se()).done;)for(var _t=Ye.value,zt=C(_t),_e;!(_e=zt()).done;){var Ot=_e.value;Le.walkTokens(Ot,Z)}break}case"list":{Le.walkTokens(x.items,Z);break}default:x.tokens&&Le.walkTokens(x.tokens,Z)}}},Le.Parser=st,Le.parser=st.parse,Le.Renderer=Ke,Le.TextRenderer=ot,Le.Lexer=rt,Le.lexer=rt.lex,Le.Tokenizer=We,Le.Slugger=Ft,Le.parse=Le;var Xe=Le;return Xe})},E7E6:function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ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OE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},ELLl:function(Oe,Ae,h){(function(I){I(h("VrN/"))})(function(I){var de={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},re=I.Pos;I.defineOption("autoCloseBrackets",!1,function(K,D,_){_&&_!=I.Init&&(K.removeKeyMap(C),K.state.closeBrackets=null),D&&(ne(X(D,"pairs")),K.state.closeBrackets=D,K.addKeyMap(C))});function X(K,D){return D=="pairs"&&typeof K=="string"?K:typeof K=="object"&&K[D]!=null?K[D]:de[D]}var C={Backspace:W,Enter:V};function ne(K){for(var D=0;D<K.length;D++){var _=K.charAt(D),A="'"+_+"'";C[A]||(C[A]=w(_))}}ne(de.pairs+"`");function w(K){return function(D){return T(D,K)}}function R(K){var D=K.state.closeBrackets;if(!D||D.override)return D;var _=K.getModeAt(K.getCursor());return _.closeBrackets||D}function W(K){var D=R(K);if(!D||K.getOption("disableInput"))return I.Pass;for(var _=X(D,"pairs"),A=K.listSelections(),le=0;le<A.length;le++){if(!A[le].empty())return I.Pass;var Me=se(K,A[le].head);if(!Me||_.indexOf(Me)%2!=0)return I.Pass}for(var le=A.length-1;le>=0;le--){var Je=A[le].head;K.replaceRange("",re(Je.line,Je.ch-1),re(Je.line,Je.ch+1),"+delete")}}function V(K){var D=R(K),_=D&&X(D,"explode");if(!_||K.getOption("disableInput"))return I.Pass;for(var A=K.listSelections(),le=0;le<A.length;le++){if(!A[le].empty())return I.Pass;var Me=se(K,A[le].head);if(!Me||_.indexOf(Me)%2!=0)return I.Pass}K.operation(function(){var Je=K.lineSeparator()||`
|
|
`;K.replaceSelection(Je+Je,null),K.execCommand("goCharLeft"),A=K.listSelections();for(var we=0;we<A.length;we++){var ke=A[we].head.line;K.indentLine(ke,null,!0),K.indentLine(ke+1,null,!0)}})}function L(K){var D=I.cmpPos(K.anchor,K.head)>0;return{anchor:new re(K.anchor.line,K.anchor.ch+(D?-1:1)),head:new re(K.head.line,K.head.ch+(D?1:-1))}}function T(K,D){var _=R(K);if(!_||K.getOption("disableInput"))return I.Pass;var A=X(_,"pairs"),le=A.indexOf(D);if(le==-1)return I.Pass;for(var Me=X(_,"closeBefore"),Je=X(_,"triples"),we=A.charAt(le+1)==D,ke=K.listSelections(),Ve=le%2==0,Ee,Ce=0;Ce<ke.length;Ce++){var Ne=ke[Ce],be=Ne.head,B,xe=K.getRange(be,re(be.line,be.ch+1));if(Ve&&!Ne.empty())B="surround";else if((we||!Ve)&&xe==D)we&&q(K,be)?B="both":Je.indexOf(D)>=0&&K.getRange(be,re(be.line,be.ch+3))==D+D+D?B="skipThree":B="skip";else if(we&&be.ch>1&&Je.indexOf(D)>=0&&K.getRange(re(be.line,be.ch-2),be)==D+D){if(be.ch>2&&/\bstring/.test(K.getTokenTypeAt(re(be.line,be.ch-2))))return I.Pass;B="addFour"}else if(we){var me=be.ch==0?" ":K.getRange(re(be.line,be.ch-1),be);if(!I.isWordChar(xe)&&me!=D&&!I.isWordChar(me))B="both";else return I.Pass}else if(Ve&&(xe.length===0||/\s/.test(xe)||Me.indexOf(xe)>-1))B="both";else return I.Pass;if(!Ee)Ee=B;else if(Ee!=B)return I.Pass}var S=le%2?A.charAt(le-1):D,Q=le%2?D:A.charAt(le+1);K.operation(function(){if(Ee=="skip")K.execCommand("goCharRight");else if(Ee=="skipThree")for(var ue=0;ue<3;ue++)K.execCommand("goCharRight");else if(Ee=="surround"){for(var G=K.getSelections(),ue=0;ue<G.length;ue++)G[ue]=S+G[ue]+Q;K.replaceSelections(G,"around"),G=K.listSelections().slice();for(var ue=0;ue<G.length;ue++)G[ue]=L(G[ue]);K.setSelections(G)}else Ee=="both"?(K.replaceSelection(S+Q,null),K.triggerElectric(S+Q),K.execCommand("goCharLeft")):Ee=="addFour"&&(K.replaceSelection(S+S+S+S,"before"),K.execCommand("goCharRight"))})}function se(K,D){var _=K.getRange(re(D.line,D.ch-1),re(D.line,D.ch+1));return _.length==2?_:null}function q(K,D){var _=K.getTokenAt(re(D.line,D.ch+1));return/\bstring/.test(_.type)&&_.start==D.ch&&(D.ch==0||!/\bstring/.test(K.getTokenTypeAt(D)))}})},F8wB:function(Oe,Ae,h){Oe.exports={loading:"loading___1SIOG"}},FOrL:function(Oe,Ae,h){Oe.exports=h.p+"static/nodata.a6b3f948.png"},FPkq:function(Oe,Ae,h){Oe.exports=h.p+"static/qrCode.dd0fe9b2.png"},GABl:function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4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Q/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},Gytx:function(Oe,Ae){Oe.exports=function(I,de,re,X){var C=re?re.call(X,I,de):void 0;if(C!==void 0)return!!C;if(I===de)return!0;if(typeof I!="object"||!I||typeof de!="object"||!de)return!1;var ne=Object.keys(I),w=Object.keys(de);if(ne.length!==w.length)return!1;for(var R=Object.prototype.hasOwnProperty.bind(de),W=0;W<ne.length;W++){var V=ne[W];if(!R(V))return!1;var L=I[V],T=de[V];if(C=re?re.call(X,L,T,V):void 0,C===!1||C===void 0&&L!==T)return!1}return!0}},H38U:function(Oe,Ae,h){var I=h("f4xo"),de=h("rcnY"),re=h("wU8J"),X=h("Iq15"),C=h("dWSS");function ne(R,W){this.typeNumber=R,this.errorCorrectLevel=W,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var w=ne.prototype;w.addData=function(R){var W=new I(R);this.dataList.push(W),this.dataCache=null},w.isDark=function(R,W){if(R<0||this.moduleCount<=R||W<0||this.moduleCount<=W)throw new Error(R+","+W);return this.modules[R][W]},w.getModuleCount=function(){return this.moduleCount},w.make=function(){if(this.typeNumber<1){var R=1;for(R=1;R<40;R++){for(var W=de.getRSBlocks(R,this.errorCorrectLevel),V=new re,L=0,T=0;T<W.length;T++)L+=W[T].dataCount;for(var T=0;T<this.dataList.length;T++){var se=this.dataList[T];V.put(se.mode,4),V.put(se.getLength(),X.getLengthInBits(se.mode,R)),se.write(V)}if(V.getLengthInBits()<=L*8)break}this.typeNumber=R}this.makeImpl(!1,this.getBestMaskPattern())},w.makeImpl=function(R,W){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var V=0;V<this.moduleCount;V++){this.modules[V]=new Array(this.moduleCount);for(var L=0;L<this.moduleCount;L++)this.modules[V][L]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(R,W),this.typeNumber>=7&&this.setupTypeNumber(R),this.dataCache==null&&(this.dataCache=ne.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,W)},w.setupPositionProbePattern=function(R,W){for(var V=-1;V<=7;V++){if(R+V<=-1||this.moduleCount<=R+V)continue;for(var L=-1;L<=7;L++){if(W+L<=-1||this.moduleCount<=W+L)continue;0<=V&&V<=6&&(L==0||L==6)||0<=L&&L<=6&&(V==0||V==6)||2<=V&&V<=4&&2<=L&&L<=4?this.modules[R+V][W+L]=!0:this.modules[R+V][W+L]=!1}}},w.getBestMaskPattern=function(){for(var R=0,W=0,V=0;V<8;V++){this.makeImpl(!0,V);var L=X.getLostPoint(this);(V==0||R>L)&&(R=L,W=V)}return W},w.createMovieClip=function(R,W,V){var L=R.createEmptyMovieClip(W,V),T=1;this.make();for(var se=0;se<this.modules.length;se++)for(var q=se*T,K=0;K<this.modules[se].length;K++){var D=K*T,_=this.modules[se][K];_&&(L.beginFill(0,100),L.moveTo(D,q),L.lineTo(D+T,q),L.lineTo(D+T,q+T),L.lineTo(D,q+T),L.endFill())}return L},w.setupTimingPattern=function(){for(var R=8;R<this.moduleCount-8;R++){if(this.modules[R][6]!=null)continue;this.modules[R][6]=R%2==0}for(var W=8;W<this.moduleCount-8;W++){if(this.modules[6][W]!=null)continue;this.modules[6][W]=W%2==0}},w.setupPositionAdjustPattern=function(){for(var R=X.getPatternPosition(this.typeNumber),W=0;W<R.length;W++)for(var V=0;V<R.length;V++){var L=R[W],T=R[V];if(this.modules[L][T]!=null)continue;for(var se=-2;se<=2;se++)for(var q=-2;q<=2;q++)se==-2||se==2||q==-2||q==2||se==0&&q==0?this.modules[L+se][T+q]=!0:this.modules[L+se][T+q]=!1}},w.setupTypeNumber=function(R){for(var W=X.getBCHTypeNumber(this.typeNumber),V=0;V<18;V++){var L=!R&&(W>>V&1)==1;this.modules[Math.floor(V/3)][V%3+this.moduleCount-8-3]=L}for(var V=0;V<18;V++){var L=!R&&(W>>V&1)==1;this.modules[V%3+this.moduleCount-8-3][Math.floor(V/3)]=L}},w.setupTypeInfo=function(R,W){for(var V=this.errorCorrectLevel<<3|W,L=X.getBCHTypeInfo(V),T=0;T<15;T++){var se=!R&&(L>>T&1)==1;T<6?this.modules[T][8]=se:T<8?this.modules[T+1][8]=se:this.modules[this.moduleCount-15+T][8]=se}for(var T=0;T<15;T++){var se=!R&&(L>>T&1)==1;T<8?this.modules[8][this.moduleCount-T-1]=se:T<9?this.modules[8][15-T-1+1]=se:this.modules[8][15-T-1]=se}this.modules[this.moduleCount-8][8]=!R},w.mapData=function(R,W){for(var V=-1,L=this.moduleCount-1,T=7,se=0,q=this.moduleCount-1;q>0;q-=2)for(q==6&&q--;;){for(var K=0;K<2;K++)if(this.modules[L][q-K]==null){var D=!1;se<R.length&&(D=(R[se]>>>T&1)==1);var _=X.getMask(W,L,q-K);_&&(D=!D),this.modules[L][q-K]=D,T--,T==-1&&(se++,T=7)}if(L+=V,L<0||this.moduleCount<=L){L-=V,V=-V;break}}},ne.PAD0=236,ne.PAD1=17,ne.createData=function(R,W,V){for(var L=de.getRSBlocks(R,W),T=new re,se=0;se<V.length;se++){var q=V[se];T.put(q.mode,4),T.put(q.getLength(),X.getLengthInBits(q.mode,R)),q.write(T)}for(var K=0,se=0;se<L.length;se++)K+=L[se].dataCount;if(T.getLengthInBits()>K*8)throw new Error("code length overflow. ("+T.getLengthInBits()+">"+K*8+")");for(T.getLengthInBits()+4<=K*8&&T.put(0,4);T.getLengthInBits()%8!=0;)T.putBit(!1);for(;!(T.getLengthInBits()>=K*8);){if(T.put(ne.PAD0,8),T.getLengthInBits()>=K*8)break;T.put(ne.PAD1,8)}return ne.createBytes(T,L)},ne.createBytes=function(R,W){for(var V=0,L=0,T=0,se=new Array(W.length),q=new Array(W.length),K=0;K<W.length;K++){var D=W[K].dataCount,_=W[K].totalCount-D;L=Math.max(L,D),T=Math.max(T,_),se[K]=new Array(D);for(var A=0;A<se[K].length;A++)se[K][A]=255&R.buffer[A+V];V+=D;var le=X.getErrorCorrectPolynomial(_),Me=new C(se[K],le.getLength()-1),Je=Me.mod(le);q[K]=new Array(le.getLength()-1);for(var A=0;A<q[K].length;A++){var we=A+Je.getLength()-q[K].length;q[K][A]=we>=0?Je.get(we):0}}for(var ke=0,A=0;A<W.length;A++)ke+=W[A].totalCount;for(var Ve=new Array(ke),Ee=0,A=0;A<L;A++)for(var K=0;K<W.length;K++)A<se[K].length&&(Ve[Ee++]=se[K][A]);for(var A=0;A<T;A++)for(var K=0;K<W.length;K++)A<q[K].length&&(Ve[Ee++]=q[K][A]);return Ve},Oe.exports=ne},HmJG:function(Oe,Ae,h){},HpTS:function(Oe,Ae,h){Oe.exports=h.p+"static/small_program.f74069ec.png"},I8Z2:function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return X}),h.d(Ae,"b",function(){return se}),h.d(Ae,"c",function(){return K});var I=h("q1tI"),de=function(){var D=function(_,A){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,Me){le.__proto__=Me}||function(le,Me){for(var Je in Me)Me.hasOwnProperty(Je)&&(le[Je]=Me[Je])},D(_,A)};return function(_,A){D(_,A);function le(){this.constructor=_}_.prototype=A===null?Object.create(A):(le.prototype=A.prototype,new le)}}(),re=I.createContext(null),X=function(D){de(_,D);function _(){return D!==null&&D.apply(this,arguments)||this}return _.prototype.render=function(){return I.createElement(re.Provider,{value:this.props.store},this.props.children)},_}(I.Component),C=h("Gytx"),ne=h.n(C),w=h("2mql"),R=h.n(w),W=function(){var D=function(_,A){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,Me){le.__proto__=Me}||function(le,Me){for(var Je in Me)Me.hasOwnProperty(Je)&&(le[Je]=Me[Je])},D(_,A)};return function(_,A){D(_,A);function le(){this.constructor=_}_.prototype=A===null?Object.create(A):(le.prototype=A.prototype,new le)}}(),V=function(){return V=Object.assign||function(D){for(var _,A=1,le=arguments.length;A<le;A++){_=arguments[A];for(var Me in _)Object.prototype.hasOwnProperty.call(_,Me)&&(D[Me]=_[Me])}return D},V.apply(this,arguments)};function L(D){return D.displayName||D.name||"Component"}var T=function(){return{}};function se(D,_){_===void 0&&(_={});var A=!!D,le=D||T;return function(Je){var we=function(Ve){W(Ee,Ve);function Ee(Ce,Ne){var be=Ve.call(this,Ce,Ne)||this;return be.unsubscribe=null,be.handleChange=function(){if(!be.unsubscribe)return;var B=le(be.store.getState(),be.props);be.setState({subscribed:B})},be.store=be.context,be.state={subscribed:le(be.store.getState(),Ce),store:be.store,props:Ce},be}return Ee.getDerivedStateFromProps=function(Ce,Ne){return D&&D.length===2&&Ce!==Ne.props?{subscribed:le(Ne.store.getState(),Ce),props:Ce}:{props:Ce}},Ee.prototype.componentDidMount=function(){this.trySubscribe()},Ee.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},Ee.prototype.shouldComponentUpdate=function(Ce,Ne){return!ne()(this.props,Ce)||!ne()(this.state.subscribed,Ne.subscribed)},Ee.prototype.trySubscribe=function(){A&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},Ee.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},Ee.prototype.render=function(){var Ce=V(V(V({},this.props),this.state.subscribed),{store:this.store});return I.createElement(Je,V({},Ce,{ref:this.props.miniStoreForwardedRef}))},Ee.displayName="Connect("+L(Je)+")",Ee.contextType=re,Ee}(I.Component);if(_.forwardRef){var ke=I.forwardRef(function(Ve,Ee){return I.createElement(we,V({},Ve,{miniStoreForwardedRef:Ee}))});return R()(ke,Je)}return R()(we,Je)}}var q=function(){return q=Object.assign||function(D){for(var _,A=1,le=arguments.length;A<le;A++){_=arguments[A];for(var Me in _)Object.prototype.hasOwnProperty.call(_,Me)&&(D[Me]=_[Me])}return D},q.apply(this,arguments)};function K(D){var _=D,A=[];function le(we){_=q(q({},_),we);for(var ke=0;ke<A.length;ke++)A[ke]()}function Me(){return _}function Je(we){return A.push(we),function(){var Ve=A.indexOf(we);A.splice(Ve,1)}}return{setState:le,getState:Me,subscribe:Je}}},Iq15:function(Oe,Ae,h){var I=h("nVVt"),de=h("dWSS"),re=h("dQei"),X={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},C={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G18:1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,G15_MASK:1<<14|1<<12|1<<10|1<<4|1<<1,getBCHTypeInfo:function(ne){for(var w=ne<<10;C.getBCHDigit(w)-C.getBCHDigit(C.G15)>=0;)w^=C.G15<<C.getBCHDigit(w)-C.getBCHDigit(C.G15);return(ne<<10|w)^C.G15_MASK},getBCHTypeNumber:function(ne){for(var w=ne<<12;C.getBCHDigit(w)-C.getBCHDigit(C.G18)>=0;)w^=C.G18<<C.getBCHDigit(w)-C.getBCHDigit(C.G18);return ne<<12|w},getBCHDigit:function(ne){for(var w=0;ne!=0;)w++,ne>>>=1;return w},getPatternPosition:function(ne){return C.PATTERN_POSITION_TABLE[ne-1]},getMask:function(ne,w,R){switch(ne){case X.PATTERN000:return(w+R)%2==0;case X.PATTERN001:return w%2==0;case X.PATTERN010:return R%3==0;case X.PATTERN011:return(w+R)%3==0;case X.PATTERN100:return(Math.floor(w/2)+Math.floor(R/3))%2==0;case X.PATTERN101:return w*R%2+w*R%3==0;case X.PATTERN110:return(w*R%2+w*R%3)%2==0;case X.PATTERN111:return(w*R%3+(w+R)%2)%2==0;default:throw new Error("bad maskPattern:"+ne)}},getErrorCorrectPolynomial:function(ne){for(var w=new de([1],0),R=0;R<ne;R++)w=w.multiply(new de([1,re.gexp(R)],0));return w},getLengthInBits:function(ne,w){if(1<=w&&w<10)switch(ne){case I.MODE_NUMBER:return 10;case I.MODE_ALPHA_NUM:return 9;case I.MODE_8BIT_BYTE:return 8;case I.MODE_KANJI:return 8;default:throw new Error("mode:"+ne)}else if(w<27)switch(ne){case I.MODE_NUMBER:return 12;case I.MODE_ALPHA_NUM:return 11;case I.MODE_8BIT_BYTE:return 16;case I.MODE_KANJI:return 10;default:throw new Error("mode:"+ne)}else if(w<41)switch(ne){case I.MODE_NUMBER:return 14;case I.MODE_ALPHA_NUM:return 13;case I.MODE_8BIT_BYTE:return 16;case I.MODE_KANJI:return 12;default:throw new Error("mode:"+ne)}else throw new Error("type:"+w)},getLostPoint:function(ne){for(var w=ne.getModuleCount(),R=0,W=0;W<w;W++)for(var V=0;V<w;V++){for(var L=0,T=ne.isDark(W,V),se=-1;se<=1;se++){if(W+se<0||w<=W+se)continue;for(var q=-1;q<=1;q++){if(V+q<0||w<=V+q)continue;if(se==0&&q==0)continue;T==ne.isDark(W+se,V+q)&&L++}}L>5&&(R+=3+L-5)}for(var W=0;W<w-1;W++)for(var V=0;V<w-1;V++){var K=0;ne.isDark(W,V)&&K++,ne.isDark(W+1,V)&&K++,ne.isDark(W,V+1)&&K++,ne.isDark(W+1,V+1)&&K++,(K==0||K==4)&&(R+=3)}for(var W=0;W<w;W++)for(var V=0;V<w-6;V++)ne.isDark(W,V)&&!ne.isDark(W,V+1)&&ne.isDark(W,V+2)&&ne.isDark(W,V+3)&&ne.isDark(W,V+4)&&!ne.isDark(W,V+5)&&ne.isDark(W,V+6)&&(R+=40);for(var V=0;V<w;V++)for(var W=0;W<w-6;W++)ne.isDark(W,V)&&!ne.isDark(W+1,V)&&ne.isDark(W+2,V)&&ne.isDark(W+3,V)&&ne.isDark(W+4,V)&&!ne.isDark(W+5,V)&&ne.isDark(W+6,V)&&(R+=40);for(var D=0,V=0;V<w;V++)for(var W=0;W<w;W++)ne.isDark(W,V)&&D++;var _=Math.abs(100*D/w/w-50)/5;return R+=_*10,R}};Oe.exports=C},JWDV:function(Oe,Ae,h){Oe.exports=h.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWR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+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(Oe,Ae,h){Oe.exports=h.p+"static/qrcode.54870d9b.png"},LdHM:function(Oe,Ae,h){"use strict";h.d(Ae,"b",function(){return Me}),h.d(Ae,"a",function(){return we});var I=h("1OyB"),de=h("vuIU"),re=h("Ji7U"),X=h("LK+K"),C=h("q1tI"),ne=h("rePB"),w=h("Ff2n"),R=h("ODXe"),W=h("4IlW"),V=h("bX4T"),L=h("YrtM"),T=h("TSYQ"),se=h.n(T),q=h("+nKL"),K=h("8OUc"),D=function(ce,Ue){var Re=ce.prefixCls,qe=ce.id,dt=ce.flattenOptions,We=ce.childrenAsData,ze=ce.values,Pe=ce.searchValue,Fe=ce.multiple,he=ce.defaultActiveFirstOption,P=ce.height,nt=ce.itemHeight,Tt=ce.notFoundContent,Ut=ce.open,ft=ce.menuItemSelectedIcon,wt=ce.virtual,He=ce.onSelect,rt=ce.onToggleOpen,pt=ce.onActiveValue,gt=ce.onScroll,$e=ce.onMouseEnter,Ke="".concat(Re,"-item"),ot=Object(L.a)(function(){return dt},[Ut,dt],function(Xe,ie){return ie[0]&&Xe[1]!==ie[1]}),Ft=C.useRef(null),bt=function(ie){ie.preventDefault()},ut=function(ie){Ft.current&&Ft.current.scrollTo({index:ie})},st=function(ie){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ee=ot.length,E=0;E<ee;E+=1){var x=(ie+E*Z+ee)%ee,O=ot[x],j=O.group,ge=O.data;if(!j&&!ge.disabled)return x}return-1},St=C.useState(function(){return st(0)}),ct=Object(R.a)(St,2),xt=ct[0],Te=ct[1],Dt=function(ie){Te(ie);var Z=ot[ie];if(!Z){pt(null,-1);return}pt(Z.data.value,ie)};C.useEffect(function(){Dt(he!==!1?st(0):-1)},[ot.length,Pe]),C.useEffect(function(){var Xe=setTimeout(function(){if(!Fe&&Ut&&ze.size===1){var ie=Array.from(ze)[0],Z=ot.findIndex(function(ee){var E=ee.data;return E.value===ie});Dt(Z),ut(Z)}});return function(){return clearTimeout(Xe)}},[Ut]);var ht=function(ie){ie!==void 0&&He(ie,{selected:!ze.has(ie)}),Fe||rt(!1)};if(C.useImperativeHandle(Ue,function(){return{onKeyDown:function(ie){var Z=ie.which;switch(Z){case W.a.UP:case W.a.DOWN:{var ee=0;if(Z===W.a.UP?ee=-1:Z===W.a.DOWN&&(ee=1),ee!==0){var E=st(xt+ee,ee);ut(E),Dt(E)}break}case W.a.ENTER:{var x=ot[xt];x&&!x.data.disabled?ht(x.data.value):ht(void 0),Ut&&ie.preventDefault();break}case W.a.ESC:rt(!1)}},onKeyUp:function(){},scrollTo:function(ie){ut(ie)}}}),ot.length===0)return C.createElement("div",{role:"listbox",id:"".concat(qe,"_list"),className:"".concat(Ke,"-empty"),onMouseDown:bt},Tt);function Le(Xe){var ie=ot[Xe];if(!ie)return null;var Z=ie.data||{},ee=Z.value,E=Z.label,x=Z.children,O=Object(V.a)(Z,!0),j=We?x:E;return ie?C.createElement("div",Object.assign({"aria-label":typeof j=="string"?j:null},O,{key:Xe,role:"option",id:"".concat(qe,"_list_").concat(Xe),"aria-selected":ze.has(ee)}),ee):null}return C.createElement(C.Fragment,null,C.createElement("div",{role:"listbox",id:"".concat(qe,"_list"),style:{height:0,width:0,overflow:"hidden"}},Le(xt-1),Le(xt),Le(xt+1)),C.createElement(q.a,{itemKey:"key",ref:Ft,data:ot,height:P,itemHeight:nt,fullHeight:!1,onMouseDown:bt,onScroll:gt,virtual:wt,onMouseEnter:$e},function(Xe,ie){var Z,ee=Xe.group,E=Xe.groupOption,x=Xe.data,O=x.label,j=x.key;if(ee)return C.createElement("div",{className:se()(Ke,"".concat(Ke,"-group"))},O!==void 0?O:j);var ge=x.disabled,Se=x.value,Ye=x.title,_t=x.children,zt=x.style,_e=x.className,Ot=Object(w.a)(x,["disabled","value","title","children","style","className"]),Ct=ze.has(Se),et="".concat(Ke,"-option"),Zt=se()(Ke,et,_e,(Z={},Object(ne.a)(Z,"".concat(et,"-grouped"),E),Object(ne.a)(Z,"".concat(et,"-active"),xt===ie&&!ge),Object(ne.a)(Z,"".concat(et,"-disabled"),ge),Object(ne.a)(Z,"".concat(et,"-selected"),Ct),Z)),Kt=We?_t:O,at=!ft||typeof ft=="function"||Ct;return C.createElement("div",Object.assign({},Ot,{"aria-selected":Ct,className:Zt,title:Ye,onMouseMove:function(){if(xt===ie||ge)return;Dt(ie)},onClick:function(){ge||ht(Se)},style:zt}),C.createElement("div",{className:"".concat(et,"-content")},Kt||Se),C.isValidElement(ft)||Ct,at&&C.createElement(K.a,{className:"".concat(Ke,"-option-state"),customizeIcon:ft,customizeIconProps:{isSelected:Ct}},Ct?"\u2713":null))}))},_=C.forwardRef(D);_.displayName="OptionList";var A=_,le=function(){return null};le.isSelectOption=!0;var Me=le,Je=function(){return null};Je.isSelectOptGroup=!0;var we=Je,ke=h("VTBJ"),Ve=h("Zm9Q");function Ee(v){var ce=v.key,Ue=v.props,Re=Ue.children,qe=Ue.value,dt=Object(w.a)(Ue,["children","value"]);return Object(ke.a)({key:ce,value:qe!==void 0?qe:ce,children:Re},dt)}function Ce(v){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(Ve.a)(v).map(function(Ue,Re){if(!C.isValidElement(Ue)||!Ue.type)return null;var qe=Ue.type.isSelectOptGroup,dt=Ue.key,We=Ue.props,ze=We.children,Pe=Object(w.a)(We,["children"]);return ce||!qe?Ee(Ue):Object(ke.a)(Object(ke.a)({key:"__RC_SELECT_GRP__".concat(dt===null?Re:dt,"__"),label:dt},Pe),{},{options:Ce(ze)})}).filter(function(Ue){return Ue})}var Ne=h("2Qr1"),be=h("qNPg"),B=h("U8pU"),xe=h("Kwbf"),me=h("WKfj");function S(v){var ce=v.mode,Ue=v.options,Re=v.children,qe=v.backfill,dt=v.allowClear,We=v.placeholder,ze=v.getInputElement,Pe=v.showSearch,Fe=v.onSearch,he=v.defaultOpen,P=v.autoFocus,nt=v.labelInValue,Tt=v.value,Ut=v.inputValue,ft=v.optionLabelProp,wt=ce==="multiple"||ce==="tags",He=Pe!==void 0?Pe:wt||ce==="combobox",rt=Ue||Ce(Re);if(Object(xe.a)(ce!=="tags"||rt.every(function(Ke){return!Ke.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ce==="tags"||ce==="combobox"){var pt=rt.some(function(Ke){return Ke.options?Ke.options.some(function(ot){return typeof("value"in ot?ot.value:ot.key)=="number"}):typeof("value"in Ke?Ke.value:Ke.key)=="number"});Object(xe.a)(!pt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(xe.a)(ce!=="combobox"||!ft,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(xe.a)(ce==="combobox"||!qe,"`backfill` only works with `combobox` mode."),Object(xe.a)(ce==="combobox"||!ze,"`getInputElement` only work with `combobox` mode."),Object(xe.b)(ce!=="combobox"||!ze||!dt||!We,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Fe&&!He&&ce!=="combobox"&&ce!=="tags"&&Object(xe.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(xe.b)(!he||P,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Tt!=null){var gt=Object(me.d)(Tt);Object(xe.a)(!nt||gt.every(function(Ke){return Object(B.a)(Ke)==="object"&&("key"in Ke||"value"in Ke)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(xe.a)(!wt||Array.isArray(Tt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Re){var $e=null;Object(Ve.a)(Re).some(function(Ke){if(!C.isValidElement(Ke)||!Ke.type)return!1;var ot=Ke.type;if(ot.isSelectOption)return!1;if(ot.isSelectOptGroup){var Ft=Object(Ve.a)(Ke.props.children).every(function(bt){return!C.isValidElement(bt)||!Ke.type||bt.type.isSelectOption?!0:($e=bt.type,!1)});return!Ft}return $e=ot,!0}),$e&&Object(xe.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat($e.displayName||$e.name||$e,"`.")),Object(xe.a)(Ut===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Q=S,ue=Object(be.a)({prefixCls:"rc-select",components:{optionList:A},convertChildrenToData:Ce,flattenOptions:Ne.d,getLabeledValue:Ne.e,filterOptions:Ne.b,isValueDisabled:Ne.g,findValueOption:Ne.c,warningProps:Q,fillOptionsWithMissingValue:Ne.a}),G=function(v){Object(re.a)(Ue,v);var ce=Object(X.a)(Ue);function Ue(){var Re;return Object(I.a)(this,Ue),Re=ce.apply(this,arguments),Re.selectRef=C.createRef(),Re.focus=function(){Re.selectRef.current.focus()},Re.blur=function(){Re.selectRef.current.blur()},Re}return Object(de.a)(Ue,[{key:"render",value:function(){return C.createElement(ue,Object.assign({ref:this.selectRef},this.props))}}]),Ue}(C.Component);G.Option=Me,G.OptGroup=we;var De=G,M=Ae.c=De},M8RZ:function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return W});var I=h("fWQN"),de=h("mtLc"),re=h("yKVA"),X=h("879j"),C=h("q1tI"),ne=h.n(C),w=h("i8i4"),R=h.n(w),W=function(V){Object(re.a)(T,V);var L=Object(X.a)(T);function T(se){var q;Object(I.a)(this,T),q=L.call(this,se);var K=window.document;return q.node=K.createElement("div"),K.body.appendChild(q.node),q}return Object(de.a)(T,[{key:"render",value:function(){var q=this.props.children;return Object(w.createPortal)(q,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),T}(ne.a.Component)},Nmxd:function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA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GVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},OLES:function(Oe,Ae,h){"use strict";var I=h("U8pU"),de=h("VTBJ"),re=h("Ff2n"),X=h("q1tI"),C=h("uciX"),ne=h("7ixt"),w=function(se){var q=se.overlay,K=se.prefixCls,D=se.id,_=se.overlayInnerStyle;return X.createElement("div",{className:"".concat(K,"-inner"),id:D,role:"tooltip",style:_},typeof q=="function"?q():q)},R=w,W=function(se,q){var K=se.overlayClassName,D=se.trigger,_=D===void 0?["hover"]:D,A=se.mouseEnterDelay,le=A===void 0?0:A,Me=se.mouseLeaveDelay,Je=Me===void 0?.1:Me,we=se.overlayStyle,ke=se.prefixCls,Ve=ke===void 0?"rc-tooltip":ke,Ee=se.children,Ce=se.onVisibleChange,Ne=se.afterVisibleChange,be=se.transitionName,B=se.animation,xe=se.placement,me=xe===void 0?"right":xe,S=se.align,Q=S===void 0?{}:S,ue=se.destroyTooltipOnHide,G=ue===void 0?!1:ue,De=se.defaultVisible,M=se.getTooltipContainer,v=se.overlayInnerStyle,ce=Object(re.a)(se,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Ue=Object(X.useRef)(null);Object(X.useImperativeHandle)(q,function(){return Ue.current});var Re=Object(de.a)({},ce);"visible"in se&&(Re.popupVisible=se.visible);var qe=function(){var Fe=se.arrowContent,he=Fe===void 0?null:Fe,P=se.overlay,nt=se.id;return[X.createElement("div",{className:"".concat(Ve,"-arrow"),key:"arrow"},he),X.createElement(R,{key:"content",prefixCls:Ve,id:nt,overlay:P,overlayInnerStyle:v})]},dt=!1,We=!1;if(typeof G=="boolean")dt=G;else if(G&&Object(I.a)(G)==="object"){var ze=G.keepParent;dt=ze===!0,We=ze===!1}return X.createElement(C.a,Object.assign({popupClassName:K,prefixCls:Ve,popup:qe,action:_,builtinPlacements:ne.a,popupPlacement:me,ref:Ue,popupAlign:Q,getPopupContainer:M,onPopupVisibleChange:Ce,afterPopupVisibleChange:Ne,popupTransitionName:be,popupAnimation:B,defaultPopupVisible:De,destroyPopupOnHide:dt,autoDestroy:We,mouseLeaveDelay:Je,popupStyle:we,mouseEnterDelay:le},Re),Ee)},V=Object(X.forwardRef)(W),L=Ae.a=V},Ohmc:function(Oe,Ae,h){Oe.exports=h.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(Oe,Ae,h){"use strict";var I=h("2qtc"),de=h("kLXV"),re=h("rAM+"),X=h("miYZ"),C=h("tsqr"),ne=h("9og8"),w=h("tJVT"),R=h("jrin"),W=h("WmNS"),V=h.n(W),L=h("q1tI"),T=h.n(L),se=h("VrN/"),q=h.n(se),K=h("bdgK"),D=h("p77/"),_=h("Bd2K"),A=h("ELLl"),le=h("19Vz"),Me=h("lZu9"),Je=h("+NIl"),we=h("kSUc"),ke=h("9Bee"),Ve=function(_e){var Ot=_e.value,Ct=Ot===void 0?"":Ot,et=_e.className,Zt=_e.showTextOnly,Kt=_e.showLines,at=_e.style,un=at===void 0?{}:at,Wt=Object(L.useMemo)(function(){return""},[Ct]);return T.a.createElement(T.a.Fragment,null,T.a.createElement("div",{dangerouslySetInnerHTML:{__html:Wt}}))},Ee=h("Q9mQ"),Ce=h("diRs"),Ne=h("0Owb"),be=h("dejd"),B=h("C+DQ"),xe=h("D1Df"),me=h.n(xe),S=h("1vsH"),Q=h("m3rI"),ue=[{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 G(_e){var Ot=_e.onActionCallback,Ct=_e.title,et=_e.icon,Zt=_e.actionName,Kt=_e.className,at=Kt===void 0?"":Kt,un=_e.children;function Wt(){Ot(Zt)}return T.a.createElement("a",{title:Ct,className:at,onClick:Wt},T.a.createElement("i",{className:"md-iconfont ".concat(et)}),un)}var De=function(_e){var Ot=_e.watch,Ct=_e.showNullButton,et=_e.onActionCallback,Zt=_e.fullScreen,Kt=_e.insertTemp,at=_e.hidetoolBar,un=_e.uuid,Wt=_e.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(S.E)("_educoder_session_login"),"&_educoder_session=").concat(Object(S.E)("_educoder_session"),"&key=").concat(un,"&api=").concat(encodeURIComponent(Q.a.PROXY_SERVER)));var Kn=[].concat(ue,[{title:"".concat(Ot?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Ot?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return T.a.createElement("ul",{className:"markdown-toolbar-container"},!at&&Kn.map(function(In,It){return T.a.createElement("li",{key:It},In.actionName?T.a.createElement(G,Object(Ne.a)({},In,{onActionCallback:et})):T.a.createElement("span",{className:"v-line"}))}),Ct?T.a.createElement("li",null,T.a.createElement(G,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:et},T.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Kt&&T.a.createElement("li",null,T.a.createElement(G,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Kt),onActionCallback:et},T.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),T.a.createElement("li",null,T.a.createElement(Ce.a,{title:"\u6253\u5F00\u624B\u673A\u626B\u4E00\u626B",content:T.a.createElement("div",null,T.a.createElement(me.a,{size:150,fgColor:"#000",value:"https://test2.educoder.net/upload.html?_educoder_session_login=".concat(Object(S.E)("_educoder_session_login"),"&_educoder_session=").concat(Object(S.E)("_educoder_session"),"&key=").concat(un,"&api=").concat(encodeURIComponent(Q.a.PROXY_SERVER))}))},T.a.createElement("span",{className:"fill-tip",onMouseOver:function(){return Wt(!0)}},"\u624B\u673A\u4E0A\u4F20\u6587\u4EF6"))),T.a.createElement("li",{className:"btn-full-screen"},T.a.createElement(G,{icon:"".concat(Zt?"icon-shrink":"icon-enlarge"),title:Zt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:et})))},M=h("M8RZ"),v=h("+L6B"),ce=h("2/Rp"),Ue=h("y8nQ"),Re=h("Vl3Y"),qe=h("5NDa"),dt=h("5rEg"),We={labelCol:{span:4},wrapperCol:{span:20}},ze=function(_e){var Ot=_e.callback,Ct=_e.onCancel;function et(Zt){Ot(Zt)}return T.a.createElement(Re.a,Object(Ne.a)({},We,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:et}),T.a.createElement(Re.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},T.a.createElement(dt.a,null)),T.a.createElement(Re.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},T.a.createElement(dt.a,null)),T.a.createElement("div",{className:"flex-container flex-end"},T.a.createElement(ce.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),T.a.createElement(ce.a,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))},Pe=h("7ahc"),Fe=h("k1fw"),he=h("HmJG"),P=h("BjJ7"),nt=Re.a.useForm,Tt={width:280,marginRight:10},Ut={labelCol:{span:5},wrapperCol:{span:19}},ft=function(_e){var Ot=_e.callback,Ct=_e.onCancel,et=nt(),Zt=Object(w.a)(et,1),Kt=Zt[0],at=Object(L.useRef)();function un(In){Ot(Object(Fe.a)(Object(Fe.a)({},In),{},{name:at.current}))}function Wt(In,It){Kt.setFieldsValue({src:"/api/attachments/".concat(In.id,"?type=").concat(In.content_type),type:It.type})}function Kn(In){var It=In.target.files[0];at.current=It.name,He(It,Wt)}return T.a.createElement(Re.a,Object(Ne.a)({form:Kt},Ut,{className:"upload-image-panel",onFinish:un}),T.a.createElement(Re.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},T.a.createElement("div",{className:"flex-container"},T.a.createElement(Re.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},T.a.createElement(dt.a,{style:Tt})),T.a.createElement(wt,{onFileChange:Kn}))),T.a.createElement(Re.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},T.a.createElement(dt.a,{style:{width:264}})),T.a.createElement(Re.a.Item,{style:{textAlign:"right"}},T.a.createElement(ce.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),T.a.createElement(ce.a,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))};function wt(_e){var Ot=_e.onFileChange;return T.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",T.a.createElement("input",{type:"file",onChange:Ot}))}function He(_e,Ot){if(!_e)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ct=new FormData;Ct.append("editormd-image-file",_e),Ct.append("file_param_name","editormd-image-file"),Ct.append("byxhr","true");var et=new window.XMLHttpRequest;et.withCredentials=!0,et.addEventListener("load",function(Zt){Ot(JSON.parse(Zt.target.responseText),_e)},!1),et.addEventListener("error",function(Zt){console.error(Zt)},!1),et.open("POST","".concat(P.a,"/api/attachments.json")),et.send(Ct)}var rt=h("giR+"),pt=h("fyUT"),gt=h("7Kak"),$e=h("9yH6"),Ke=$e.a.Group,ot={margin:"0 8px"},Ft=function(_e){var Ot=_e.callback,Ct=_e.onCancel;function et(Zt){Ot(Zt)}return T.a.createElement(Re.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:et},T.a.createElement("div",{className:"flex-container"},T.a.createElement("span",{style:ot},"\u5355\u5143\u683C\u6570\uFF1A"),T.a.createElement("span",{style:ot},"\u884C\u6570"),T.a.createElement(Re.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},T.a.createElement(pt.a,null)),T.a.createElement("span",{style:ot},"\u5217\u6570"),T.a.createElement(Re.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},T.a.createElement(pt.a,null))),T.a.createElement("div",{className:"flex-container",style:{marginTop:12}},T.a.createElement("span",{style:ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),T.a.createElement(Re.a.Item,{name:"align"},T.a.createElement(Ke,null,T.a.createElement($e.a,{value:"default"},T.a.createElement("i",{className:"fa fa-align-justify"})),T.a.createElement($e.a,{value:"left"},T.a.createElement("i",{className:"fa fa-align-left"})),T.a.createElement($e.a,{value:"center"},T.a.createElement("i",{className:"fa fa-align-center"})),T.a.createElement($e.a,{value:"right"},T.a.createElement("i",{className:"fa fa-align-right"}))))),T.a.createElement("div",{className:"flex-container flex-end"},T.a.createElement(ce.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),T.a.createElement(ce.a,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))},bt=h("ErOA"),ut=h("7Cbv"),st="link",St="upload-image",ct="code-block",xt="add-table",Te="------------",Dt={default:Te,left:":".concat(Te),center:":".concat(Te,":"),right:"".concat(Te,":")},ht=h("9VGf"),Le,Xe;function ie(){}var Z=0,ee=1e4,E="\u2581",x=`
|
|
**\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 O(_e){return/^\d+$/.test(_e)?"".concat(_e,"px"):_e}var j=navigator.platform.toUpperCase().indexOf("MAC")>=0,ge=j?"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"],Ye=(Le={},Object(R.a)(Le,ge+"-B","bold"),Object(R.a)(Le,ge+"-I","italic"),Le),_t=(Xe={},Object(R.a)(Xe,st,"\u6DFB\u52A0\u94FE\u63A5"),Object(R.a)(Xe,ct,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(R.a)(Xe,St,"\u6DFB\u52A0\u6587\u4EF6"),Object(R.a)(Xe,xt,"\u6DFB\u52A0\u8868\u683C"),Xe),zt=Ae.a=function(_e){var Ot=_e.defaultValue,Ct=Ot===void 0?"":Ot,et=_e.onChange,Zt=_e.width,Kt=Zt===void 0?"100%":Zt,at=_e.height,un=at===void 0?400:at,Wt=_e.miniToolbar,Kn=Wt===void 0?!1:Wt,In=_e.isFocus,It=In===void 0?!1:In,vi=_e.watch,si=_e.insertTemp,Qn=_e.mode,oi=Qn===void 0?"markdown":Qn,_i=_e.id,Di=_i===void 0?"markdown-editor-id":_i,cn=_e.showResizeBar,Rt=cn===void 0?!1:cn,ji=_e.noStorage,Li=ji===void 0?!1:ji,Nn=_e.showNullButton,Jt=Nn===void 0?!1:Nn,wn=_e.hidetoolBar,en=wn===void 0?!1:wn,yn=_e.fullScreen,je=yn===void 0?!1:yn,Nt=_e.onBlur,Jn=_e.onCMBeforeChange,Yn=_e.onFullScreen,ao=_e.className,so=ao===void 0?"":ao,d=_e.disablePaste,r=d===void 0?!1:d,a=_e.placeholder,u=a===void 0?"":a,m=_e.values,c=m===void 0?"":m,Y=Object(L.useState)(null),Ge=Object(w.a)(Y,2),ve=Ge[0],Lt=Ge[1],Qe=Object(L.useState)(Ct),Et=Object(w.a)(Qe,2),At=Et[0],kt=Et[1],nn=Object(L.useState)(vi),mn=Object(w.a)(nn,2),$t=mn[0],Bi=mn[1],hi=Object(L.useState)(je),wi=Object(w.a)(hi,2),Ii=wi[0],Ai=wi[1],lo=Object(L.useState)(""),qi=Object(w.a)(lo,2),go=qi[0],$i=qi[1],lr=Object(L.useState)(0),Qo=Object(w.a)(lr,2),Vi=Qo[0],li=Qo[1],Oo=Object(L.useState)(un),Uo=Object(w.a)(Oo,2),Jo=Uo[0],ei=Uo[1],Mn=Object(L.useState)(!1),ri=Object(w.a)(Mn,2),kn=ri[0],yi=ri[1],Un=Object(L.useRef)(Object(ut.a)()),Co=Object(L.useRef)(!1),fi=Object(L.useRef)(),ui=Object(L.useRef)(),vo=Object(L.useRef)(),To=Object(L.useRef)(),uo=Object(L.useRef)(),Eo=function(){var jt=Object(ne.a)(V.a.mark(function qt(){var Ht,gn;return V.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,Object(bt.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Un.current}});case 2:gn=Dn.sent,gn!=null&&(Ht=gn.attachments)!==null&&Ht!==void 0&&Ht.length&&(console.log("cm:",ve,ui),gn.attachments.map(function(bn){bn.content_type.indexOf("image")>-1?ve.replaceSelection(".concat(bn.content_type,")")):bn.content_type.indexOf("video")>-1?ve.replaceSelection('<video width="100%" controls src="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):bn.content_type.indexOf("pdf")>-1?ve.replaceSelection('<a href="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(bn.id,"?type=").concat(bn.content_type,'&disposition=inline" target="_blank">').concat(bn.name,"</a>")):ve.replaceSelection("[".concat(bn.name,"](").concat(Q.a.API_SERVER,"/api/attachments/").concat(bn.id,"?type=").concat(bn.content_type,")"))}));case 4:case"end":return Dn.stop()}},qt)}));return function(){return jt.apply(this,arguments)}}();Object(L.useEffect)(function(){kt(c),ve==null||ve.setValue(c)},[c]),Object(L.useEffect)(function(){Yn==null||Yn(Ii)},[Ii]),Object(L.useEffect)(function(){if(ui.current){var jt=q.a.fromTextArea(ui.current,{mode:oi,lineNumbers:!Kn,lineWrapping:!0,value:Ct,autoCloseTags:!0,autoCloseBrackets:!0});It&&jt.focus();function qt(Ht,gn){if(r){gn.preventDefault();return}var An=gn.clipboardData;if(An){var Dn=An.types.toString(),bn=An.items;if(Dn==="Files"||An.types.indexOf("Files")>-1){if(gn.preventDefault(),oi=="stex")return;try{var Xn,bi=bn[1];((Xn=bn[0])===null||Xn===void 0?void 0:Xn.kind)==="file"&&(bi=bn[0]);var hn=bi.getAsFile(),xo=hn.name.split(".").pop();He(hn,function(Pn){if(Pn.id){var Ci,Tn,eo;(hn==null||((Ci=hn.type)===null||Ci===void 0)?void 0:Ci.indexOf("image"))>-1?jt.replaceSelection(".concat(Pn.content_type,")")):(hn==null||((Tn=hn.type)===null||Tn===void 0)?void 0:Tn.indexOf("video"))>-1?jt.replaceSelection('<video width="100%" controls src="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Pn.id,'"></video>')):(hn==null||((eo=hn.type)===null||eo===void 0)?void 0:eo.indexOf("pdf"))>-1?jt.replaceSelection('<a href="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Pn.id,"?type=").concat(hn.type,'&disposition=inline" target="_blank">').concat(hn.name,"</a>")):Se.includes(xo)?jt.replaceSelection('<a href="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Pn.id,'?type=office&disposition=inline" target="_blank">').concat(hn.name,"</a>")):jt.replaceSelection("[".concat(hn.name,"](").concat(Q.a.API_SERVER,"/api/attachments/").concat(Pn.id,"?type=").concat(Pn.content_type,")"))}else(Pn==null?void 0:Pn.status)===401&&(document.location.href="/user/login")})}catch(Pn){C.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return jt.on("paste",qt),jt.on("dragleave",function(Ht,gn){vo.current.classList.remove("mouse-hover-md")}),jt.on("dragover",function(Ht,gn){vo.current.classList.add("mouse-hover-md")}),jt.on("drop",function(Ht,gn){vo.current.classList.add("mouse-hover-md");var An;if(An=gn.dataTransfer.files,An.length>0){gn.preventDefault(),gn.stopPropagation();for(var Dn=function(bi){var hn=An[bi],xo=hn.name.split(".").pop();He(hn,function(Pn){if(Pn.id){var Ci,Tn,eo;(hn==null||((Ci=hn.type)===null||Ci===void 0)?void 0:Ci.indexOf("image"))>-1?jt.replaceSelection(".concat(Pn.content_type,")")):(hn==null||((Tn=hn.type)===null||Tn===void 0)?void 0:Tn.indexOf("video"))>-1?jt.replaceSelection('<video width="100%" controls src="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Pn.id,'"></video>')):(hn==null||((eo=hn.type)===null||eo===void 0)?void 0:eo.indexOf("pdf"))>-1?jt.replaceSelection('<a href="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Pn.id,"?type=").concat(hn.type,'&disposition=inline" target="_blank">').concat(hn.name,"</a>")):Se.includes(xo)?jt.replaceSelection('<a href="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Pn.id,'?type=office&disposition=inline" target="_blank">').concat(hn.name,"</a>")):jt.replaceSelection("[".concat(hn.name,"](").concat(Q.a.API_SERVER,"/api/attachments/").concat(Pn.id,"?type=").concat(Pn.content_type,")"))}else(Pn==null?void 0:Pn.status)===401&&(document.location.href="/user/login")})},bn=0;bn<An.length;bn++)Dn(bn)}}),Lt(jt),function(){jt.off("paste",qt)}}},[]);var Ki=Object(L.useCallback)(function(){if(vo.current)try{}catch(jt){console.log(jt,"---- to set md editor body height")}},[Jo,vo,Ii]);Object(L.useEffect)(function(){function jt(){var Ht=new K.default(function(gn){var An=Object(re.a)(gn),Dn;try{for(An.s();!(Dn=An.n()).done;){var bn=Dn.value;(bn.target.offsetHeight>0||bn.target.offsetWidth>0)&&(Ki(),ve.setSize("100%","100%"),ve.refresh())}}catch(Xn){An.e(Xn)}finally{An.f()}});return Ht.observe(ui.current.parentElement),Ht}if(ve){var qt=jt();return function(){qt.unobserve(ui.current.parentElement)}}},[ve,Ki]),Object(L.useEffect)(function(){if(ve){for(var jt=[],qt=function(){var bn=gn[Ht];An=Object(w.a)(bn,2);var Xn=An[0],bi=An[1],hn=Object(R.a)({},Xn,function(){Xo(bi)});jt.push(hn),ve.addKeyMap(hn)},Ht=0,gn=Object.entries(Ye);Ht<gn.length;Ht++){var An;qt()}return fi.current=setInterval(function(){Co.current&&Eo()},4e3),function(){clearInterval(fi.current);var Dn=Object(re.a)(jt),bn;try{for(Dn.s();!(bn=Dn.n()).done;){var Xn=bn.value;ve.removeKeyMap(Xn)}}catch(bi){Dn.e(bi)}finally{Dn.f()}}}},[ve]),Object(L.useEffect)(function(){je!==Ii&&Ai(je)},[je]),Object(ht.a)(function(){if(!Li&&Vi>0){var jt=new Date().getTime(),qt=window.sessionStorage.getItem(Di);jt>=Vi+ee&&(!qt||qt!==At)&&(window.sessionStorage.setItem(Di,At),yi(!0))}},ee),Object(L.useEffect)(function(){Bi(vi)},[ve,vi]),Object(L.useEffect)(function(){ve&&(It&&ve.focus())},[ve,It]),Object(L.useEffect)(function(){if($t&&ve){var jt=ve.getScrollerElement();function qt(Ht){var gn=Ht.target;if(uo.current){var An=gn.scrollTop/gn.scrollHeight;uo.current.scrollTop=uo.current.scrollHeight*An}}return jt.addEventListener("scroll",qt),function(){jt.removeEventListener("scroll",qt)}}},[ve,$t]),Object(L.useEffect)(function(){if(ve&&Jn){function jt(qt,Ht){Jn(qt,Ht)}return ve.on("beforeChange",jt),function(){ve.off("beforeChange",jt)}}},[ve,Jn]),Object(L.useEffect)(function(){if(ve&&Nt){function jt(){Nt(ve.getValue())}return ve.on("blur",jt),function(){ve.off("blur",jt)}}},[ve,Nt]),Object(L.useEffect)(function(){if(ve){function jt(qt){var Ht=qt.getValue();kt(Ht),li(new Date().getTime()),qt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),et&&et(Ht)}return ve.on("change",jt),function(){ve.off("change",jt)}}},[ve,et]),Object(L.useEffect)(function(){ve&&(Ct==null?(ve.setValue(""),kt("")):Ct!==ve.getValue()&&(ve.setValue(Ct),kt(Ct),ve.setCursor(ve.lineCount(),0)))},[ve,Ct]);var Xo=Object(L.useCallback)(function(jt){var qt=ve.getCursor(),Ht=ve.getSelection(),gn=Ht.split(`
|
|
`);switch(jt){case"bold":return ve.replaceSelection("**"+Ht+"**"),Ht===""&&ve.setCursor(qt.line,qt.ch+2),ve.focus();case"italic":return ve.replaceSelection("*"+Ht+"*"),Ht===""&&ve.setCursor(qt.line,qt.ch+1),ve.focus();case"code":return ve.replaceSelection("`"+Ht+"`"),Ht===""&&ve.setCursor(qt.line,qt.ch+1),ve.focus();case"inline-latex":return ve.replaceSelection("`$$"+Ht+"$$`"),Ht===""&&ve.setCursor(qt.line,qt.ch+3),ve.focus();case"latex":return ve.replaceSelection("```latex\n"+Ht+"\n```"),ve.setCursor(qt.line+1,Ht.length+1),ve.focus();case"line-break":return ve.replaceSelection(`<br/>
|
|
`),ve.focus();case"list-ul":return Ht===""?ve.replaceSelection("- "+Ht):ve.replaceSelection(gn.map(function(An){return An===""?"":"- ".concat(An)}).join(`
|
|
`)),ve.focus();case"list-ol":return Ht===""?ve.replaceSelection("1. "+Ht):ve.replaceSelection(gn.map(function(An,Dn){return An===""?"":"".concat(Dn+1,". ").concat(An)}).join(`
|
|
`)),ve.focus();case"add-null-ch":return Ht===""&&ve.setCursor(qt.line,qt.ch+1),ve.replaceSelection(E),ve.focus();case"inster-template-1":return Ht===""&&ve.setCursor(qt.line,qt.ch),ve.replaceSelection(x),ve.focus();case"eraser":return ve.setValue(""),ve.focus();case"trigger-watch":return Bi(!$t),ve.focus();case"trigger-full-screen":return Ai(!Ii),ve.focus();case st:$i(st);return;case ct:$i(ct);return;case St:$i(St);return;case xt:$i(xt);return;default:throw new Error}},[ve,$t,Ii]),Wi=Object(L.useCallback)(function(jt){$i("");switch(go){case st:var qt=jt.title,Ht=jt.link;return ve.replaceSelection("[".concat(qt,"](").concat(Ht,")")),ve.focus();case ct:var gn=jt.language,An=jt.content;return ve.replaceSelection(["```"+gn,An,"```"].join(`
|
|
`)),ve.focus();case St:var Dn=jt.src,bn=jt.alt,Xn=jt.name;return Dn.indexOf("type=image")>-1?ve.replaceSelection(".concat(Dn,' "').concat(bn||"",'" )')):Dn.indexOf("type=application/pdf")>-1?ve.replaceSelection('<a href="'.concat(Dn,'&disposition=inline" target="_blank">').concat(Xn,"</a>")):ve.replaceSelection('<a href="'.concat(Dn,'" target="_blank">').concat(Xn,"</a>")),ve.focus();case xt:for(var bi=jt.row,hn=jt.col,xo=jt.align,Pn=`
|
|
`,Ci=0;Ci<bi;Ci++){for(var Tn=[],eo=[],ur=0;ur<hn;ur++)Ci===1&&eo.push(Dt[xo]),Tn.push(" ");Ci===1&&(Pn+="| ".concat(eo.join(" | "),` |
|
|
`)),Pn+="| ".concat(Tn.join(hn===1?"":" | "),` |
|
|
`)}return ve.replaceSelection(Pn+`
|
|
`),ve.focus();default:throw new Error}},[ve,go]),Yo=Object(L.useMemo)(function(){switch(go){case st:return T.a.createElement(ze,{callback:Wi,onCancel:yo});case ct:return T.a.createElement(Pe.b,{callback:Wi,onCancel:yo});case St:return T.a.createElement(ft,{callback:Wi,onCancel:yo});case xt:return T.a.createElement(Ft,{callback:Wi,onCancel:yo});default:return null}},[go]);function yo(){$i("")}Object(L.useEffect)(function(){if(To.current){var jt=To.current,qt=!1,Ht=0;function gn(bn){qt=!0,Ht=bn.pageY}function An(){qt=!1}function Dn(bn){if(qt){var Xn=bn.pageY-Ht;Xn<0&&(Xn=0),Xn>300&&(Xn=300);var bi=un+Xn+"px";ei(bi)}}return jt.addEventListener("mousedown",gn),document.addEventListener("mousemove",Dn),document.addEventListener("mouseup",An),function(){jt.removeEventListener("mousedown",gn),document.removeEventListener("mousemove",Dn),document.removeEventListener("mouseup",An)}}},[ve,To]),Object(L.useEffect)(function(){ei(un)},[un]);var Ro=O(Kt),Wr=O(Jo),yr={width:Ro,height:Wr},ya=Object(L.useMemo)(function(){if(Vi){var jt=new Date(Vi),qt=jt.getHours(),Ht=jt.getMinutes(),gn=jt.getSeconds();return qt=qt<10?"0"+qt:qt,Ht=Ht<10?"0"+Ht:Ht,gn=gn<10?"0"+gn:gn,"".concat(qt,":").concat(Ht,":").concat(gn)}return 0},[Vi]);function br(){window.sessionStorage.removeItem(Di),yi(!1),li(0)}function zr(){yi(!1),li(0),ve.setValue(window.sessionStorage.getItem(Di))}function Cr(jt,qt){var Ht=ve.getValue();Ht=Ht.replace(jt,qt),kt(Ht),ve==null||ve.setValue(Ht)}return T.a.createElement(L.Fragment,null,T.a.createElement("div",{className:"markdown-editor-wrapper",ref:vo},T.a.createElement("div",{className:"markdown-editor-container ".concat(so," ").concat($t?"on-preview":""," ").concat(Kn?"mini":""," ").concat(Ii?"full-screen":""),style:yr},T.a.createElement(De,{insertTemp:si,watch:$t,fullScreen:Ii,showNullButton:Jt,onActionCallback:Xo,hidetoolBar:en,uuid:Un.current,setOpenPhones:function(){Co.current=!0}}),T.a.createElement("div",{className:"markdown-editor-body"},T.a.createElement("div",{className:"codemirror-container"},T.a.createElement("textarea",{ref:ui,placeholder:u})),$t?T.a.createElement("div",{ref:uo,className:"preview-container"},oi==="stex"&&T.a.createElement(Ve,{value:At}),oi!=="stex"&&T.a.createElement(ke.a,{edit:!0,value:At,replaces:Cr})):null))),Rt?T.a.createElement("a",{ref:To,className:"editor-resize"}):null,T.a.createElement(M.a,null,_t[go]?T.a.createElement(de.a,{centered:!0,title:_t[go],visible:!0,onCancel:yo,footer:null},Yo):null))}},RMFE:function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVEC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JMd:function(Oe,Ae){/**
|
|
* @license
|
|
* Copyright (C) 2006 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/var h,I,de,re=!1,X,C;window.PR_SHOULD_USE_CONTINUATION=!0;var ne,w;(function(){var R=window,W=["break,continue,do,else,for,if,return,while"],V=[W,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],L=[V,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],T=[L,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],se=[L,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],q=[L,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],K="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",D=[L,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],_="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",A=[W,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],le=[W,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],Me=[W,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],Je=[T,q,se,D,_,A,le,Me],we=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ke="str",Ve="kwd",Ee="com",Ce="typ",Ne="lit",be="pun",B="pln",xe="tag",me="dec",S="src",Q="atn",ue="atv",G="nocode",De="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function M(He){for(var rt=0,pt=!1,gt=!1,$e=0,Ke=He.length;$e<Ke;++$e){var ot=He[$e];if(ot.ignoreCase)gt=!0;else if(/[a-z]/i.test(ot.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){pt=!0,gt=!1;break}}var Ft={b:8,t:9,n:10,v:11,f:12,r:13};function bt(xt){var Te=xt.charCodeAt(0);if(Te!==92)return Te;var Dt=xt.charAt(1);return Te=Ft[Dt],Te||("0"<=Dt&&Dt<="7"?parseInt(xt.substring(1),8):Dt==="u"||Dt==="x"?parseInt(xt.substring(2),16):xt.charCodeAt(1))}function ut(xt){if(xt<32)return(xt<16?"\\x0":"\\x")+xt.toString(16);var Te=String.fromCharCode(xt);return Te==="\\"||Te==="-"||Te==="]"||Te==="^"?"\\"+Te:Te}function st(xt){var Te=xt.substring(1,xt.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),Dt=[],ht=Te[0]==="^",Le=["["];ht&&Le.push("^");for(var Xe=ht?1:0,ie=Te.length;Xe<ie;++Xe){var Z=Te[Xe];if(/\\[bdsw]/i.test(Z))Le.push(Z);else{var ee=bt(Z),E;Xe+2<ie&&Te[Xe+1]==="-"?(E=bt(Te[Xe+2]),Xe+=2):E=ee,Dt.push([ee,E]),E<65||ee>122||(E<65||ee>90||Dt.push([Math.max(65,ee)|32,Math.min(E,90)|32]),E<97||ee>122||Dt.push([Math.max(97,ee)&~32,Math.min(E,122)&~32]))}}Dt.sort(function(ge,Se){return ge[0]-Se[0]||Se[1]-ge[1]});for(var x=[],O=[],Xe=0;Xe<Dt.length;++Xe){var j=Dt[Xe];j[0]<=O[1]+1?O[1]=Math.max(O[1],j[1]):x.push(O=j)}for(var Xe=0;Xe<x.length;++Xe){var j=x[Xe];Le.push(ut(j[0])),j[1]>j[0]&&(j[1]+1>j[0]&&Le.push("-"),Le.push(ut(j[1])))}return Le.push("]"),Le.join("")}function St(xt){for(var Te=xt.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")),Dt=Te.length,ht=[],Le=0,Xe=0;Le<Dt;++Le){var ie=Te[Le];if(ie==="(")++Xe;else if(ie.charAt(0)==="\\"){var Z=+ie.substring(1);Z&&(Z<=Xe?ht[Z]=-1:Te[Le]=ut(Z))}}for(var Le=1;Le<ht.length;++Le)ht[Le]===-1&&(ht[Le]=++rt);for(var Le=0,Xe=0;Le<Dt;++Le){var ie=Te[Le];if(ie==="(")++Xe,ht[Xe]||(Te[Le]="(?:");else if(ie.charAt(0)==="\\"){var Z=+ie.substring(1);Z&&Z<=Xe&&(Te[Le]="\\"+ht[Z])}}for(var Le=0;Le<Dt;++Le)Te[Le]==="^"&&Te[Le+1]!=="^"&&(Te[Le]="");if(xt.ignoreCase&&pt)for(var Le=0;Le<Dt;++Le){var ie=Te[Le],ee=ie.charAt(0);ie.length>=2&&ee==="["?Te[Le]=st(ie):ee!=="\\"&&(Te[Le]=ie.replace(/[a-zA-Z]/g,function(O){var j=O.charCodeAt(0);return"["+String.fromCharCode(j&~32,j|32)+"]"}))}return Te.join("")}for(var ct=[],$e=0,Ke=He.length;$e<Ke;++$e){var ot=He[$e];if(ot.global||ot.multiline)throw new Error(""+ot);ct.push("(?:"+St(ot)+")")}return new RegExp(ct.join("|"),gt?"gi":"g")}function v(He,rt){var pt=/(?:^|\s)nocode(?:\s|$)/,gt=[],$e=0,Ke=[],ot=0;function Ft(bt){var ut=bt.nodeType;if(ut==1){if(pt.test(bt.className))return;for(var st=bt.firstChild;st;st=st.nextSibling)Ft(st);var St=bt.nodeName.toLowerCase();(St==="br"||St==="li")&&(gt[ot]=`
|
|
`,Ke[ot<<1]=$e++,Ke[ot++<<1|1]=bt)}else if(ut==3||ut==4){var ct=bt.nodeValue;ct.length&&(rt?ct=ct.replace(/\r\n?/g,`
|
|
`):ct=ct.replace(/[ \t\r\n]+/g," "),gt[ot]=ct,Ke[ot<<1]=$e,$e+=ct.length,Ke[ot++<<1|1]=bt)}}return Ft(He),{sourceCode:gt.join("").replace(/\n$/,""),spans:Ke}}function ce(He,rt,pt,gt,$e){if(!pt)return;var Ke={sourceNode:He,pre:1,langExtension:null,numberLines:null,sourceCode:pt,spans:null,basePos:rt,decorations:null};gt(Ke),$e.push.apply($e,Ke.decorations)}var Ue=/\S/;function Re(He){for(var rt=void 0,pt=He.firstChild;pt;pt=pt.nextSibling){var gt=pt.nodeType;rt=gt===1?rt?He:pt:gt===3&&Ue.test(pt.nodeValue)?He:rt}return rt===He?void 0:rt}function qe(He,rt){var pt={},gt;(function(){for(var ot=He.concat(rt),Ft=[],bt={},ut=0,st=ot.length;ut<st;++ut){var St=ot[ut],ct=St[3];if(ct)for(var xt=ct.length;--xt>=0;)pt[ct.charAt(xt)]=St;var Te=St[1],Dt=""+Te;bt.hasOwnProperty(Dt)||(Ft.push(Te),bt[Dt]=null)}Ft.push(/[\0-\uffff]/),gt=M(Ft)})();var $e=rt.length,Ke=function(ot){for(var Ft=ot.sourceCode,bt=ot.basePos,ut=ot.sourceNode,st=[bt,B],St=0,ct=Ft.match(gt)||[],xt={},Te=0,Dt=ct.length;Te<Dt;++Te){var ht=ct[Te],Le=xt[ht],Xe=void 0,ie;if(typeof Le=="string")ie=!1;else{var Z=pt[ht.charAt(0)];if(Z)Xe=ht.match(Z[1]),Le=Z[0];else{for(var ee=0;ee<$e;++ee)if(Z=rt[ee],Xe=ht.match(Z[1]),Xe){Le=Z[0];break}Xe||(Le=B)}ie=Le.length>=5&&Le.substring(0,5)==="lang-",ie&&!(Xe&&typeof Xe[1]=="string")&&(ie=!1,Le=S),ie||(xt[ht]=Le)}var E=St;if(St+=ht.length,!ie)st.push(bt+E,Le);else{var x=Xe[1],O=ht.indexOf(x),j=O+x.length;Xe[2]&&(j=ht.length-Xe[2].length,O=j-x.length);var ge=Le.substring(5);ce(ut,bt+E,ht.substring(0,O),Ke,st),ce(ut,bt+E+O,x,P(ge,x),st),ce(ut,bt+E+j,ht.substring(j),Ke,st)}}ot.decorations=st};return Ke}function dt(He){var rt=[],pt=[];He.tripleQuotedStrings?rt.push([ke,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):He.multiLineStrings?rt.push([ke,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):rt.push([ke,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),He.verbatimStrings&&pt.push([ke,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var gt=He.hashComments;gt&&(He.cStyleComments?(gt>1?rt.push([Ee,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):rt.push([Ee,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),pt.push([ke,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):rt.push([Ee,/^#[^\r\n]*/,null,"#"])),He.cStyleComments&&(pt.push([Ee,/^\/\/[^\r\n]*/,null]),pt.push([Ee,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var $e=He.regexLiterals;if($e){var Ke=$e>1?"":`
|
|
\r`,ot=Ke?".":"[\\S\\s]",Ft="/(?=[^/*"+Ke+"])(?:[^/\\x5B\\x5C"+Ke+"]|\\x5C"+ot+"|\\x5B(?:[^\\x5C\\x5D"+Ke+"]|\\x5C"+ot+")*(?:\\x5D|$))+/";pt.push(["lang-regex",RegExp("^"+De+"("+Ft+")")])}var bt=He.types;bt&&pt.push([Ce,bt]);var ut=(""+He.keywords).replace(/^ | $/g,"");ut.length&&pt.push([Ve,new RegExp("^(?:"+ut.replace(/[\s,]+/g,"|")+")\\b"),null]),rt.push([B,/^\s+/,null,` \r
|
|
\xA0`]);var st="^.[^\\s\\w.$@'\"`/\\\\]*";return He.regexLiterals&&(st+="(?!s*/)"),pt.push([Ne,/^@[a-z_$][a-z_$@0-9]*/i,null],[Ce,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[B,/^[a-z_$][a-z_$@0-9]*/i,null],[Ne,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[B,/^\\[\s\S]?/,null],[be,new RegExp(st),null]),qe(rt,pt)}var We=dt({keywords:Je,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ze(He,rt,pt){for(var gt=/(?:^|\s)nocode(?:\s|$)/,$e=/\r\n?|\n/,Ke=He.ownerDocument,ot=Ke.createElement("li");He.firstChild;)ot.appendChild(He.firstChild);var Ft=[ot];function bt(Te){var Dt=Te.nodeType;if(Dt==1&&!gt.test(Te.className))if(Te.nodeName==="br")ut(Te),Te.parentNode&&Te.parentNode.removeChild(Te);else for(var ht=Te.firstChild;ht;ht=ht.nextSibling)bt(ht);else if((Dt==3||Dt==4)&&pt){var Le=Te.nodeValue,Xe=Le.match($e);if(Xe){var ie=Le.substring(0,Xe.index);Te.nodeValue=ie;var Z=Le.substring(Xe.index+Xe[0].length);if(Z){var ee=Te.parentNode;ee.insertBefore(Ke.createTextNode(Z),Te.nextSibling)}ut(Te),ie||Te.parentNode.removeChild(Te)}}}function ut(Te){for(;!Te.nextSibling;)if(Te=Te.parentNode,!Te)return;function Dt(Xe,ie){var Z=ie?Xe.cloneNode(!1):Xe,ee=Xe.parentNode;if(ee){var E=Dt(ee,1),x=Xe.nextSibling;E.appendChild(Z);for(var O=x;O;O=x)x=O.nextSibling,E.appendChild(O)}return Z}for(var ht=Dt(Te.nextSibling,0),Le;(Le=ht.parentNode)&&Le.nodeType===1;)ht=Le;Ft.push(ht)}for(var st=0;st<Ft.length;++st)bt(Ft[st]);rt===(rt|0)&&Ft[0].setAttribute("value",rt);var St=Ke.createElement("ol");St.className="linenums";for(var ct=Math.max(0,rt-1|0)||0,st=0,xt=Ft.length;st<xt;++st)ot=Ft[st],ot.className="L"+(st+ct)%10,ot.firstChild||ot.appendChild(Ke.createTextNode("\xA0")),St.appendChild(ot);He.appendChild(St)}function Pe(He){var rt=/\bMSIE\s(\d+)/.exec(navigator.userAgent);rt=rt&&+rt[1]<=8;var pt=/\n/g,gt=He.sourceCode,$e=gt.length,Ke=0,ot=He.spans,Ft=ot.length,bt=0,ut=He.decorations,st=ut.length,St=0;ut[st]=$e;var ct,xt;for(xt=ct=0;xt<st;)ut[xt]!==ut[xt+2]?(ut[ct++]=ut[xt++],ut[ct++]=ut[xt++]):xt+=2;for(st=ct,xt=ct=0;xt<st;){for(var Te=ut[xt],Dt=ut[xt+1],ht=xt+2;ht+2<=st&&ut[ht+1]===Dt;)ht+=2;ut[ct++]=Te,ut[ct++]=Dt,xt=ht}st=ut.length=ct;var Le=He.sourceNode,Xe="";Le&&(Xe=Le.style.display,Le.style.display="none");try{for(var ie=null;bt<Ft;){var Z=ot[bt],ee=ot[bt+2]||$e,E=ut[St+2]||$e,ht=Math.min(ee,E),x=ot[bt+1],O;if(x.nodeType!==1&&(O=gt.substring(Ke,ht))){rt&&(O=O.replace(pt,"\r")),x.nodeValue=O;var j=x.ownerDocument,ge=j.createElement("span");ge.className=ut[St+1];var Se=x.parentNode;Se.replaceChild(ge,x),ge.appendChild(x),Ke<ee&&(ot[bt+1]=x=j.createTextNode(gt.substring(ht,ee)),Se.insertBefore(x,ge.nextSibling))}Ke=ht,Ke>=ee&&(bt+=2),Ke>=E&&(St+=2)}}finally{Le&&(Le.style.display=Xe)}}var Fe={};function he(He,rt){for(var pt=rt.length;--pt>=0;){var gt=rt[pt];Fe.hasOwnProperty(gt)?R.console&&console.warn("cannot override language handler %s",gt):Fe[gt]=He}}function P(He,rt){return He&&Fe.hasOwnProperty(He)||(He=/^\s*</.test(rt)?"default-markup":"default-code"),Fe[He]}he(We,["default-code"]),he(qe([],[[B,/^[^<?]+/],[me,/^<!\w[^>]*(?:>|$)/],[Ee,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[be,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),he(qe([[B,/^[\s]+/,null,` \r
|
|
`],[ue,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[xe,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[Q,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[be,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),he(qe([],[[ue,/^[\s\S]+/]]),["uq.val"]),he(dt({keywords:T,hashComments:!0,cStyleComments:!0,types:we}),["c","cc","cpp","cxx","cyc","m"]),he(dt({keywords:"null,true,false"}),["json"]),he(dt({keywords:q,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:we}),["cs"]),he(dt({keywords:se,cStyleComments:!0}),["java"]),he(dt({keywords:Me,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),he(dt({keywords:A,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),he(dt({keywords:_,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),he(dt({keywords:le,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),he(dt({keywords:D,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),he(dt({keywords:K,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),he(qe([],[[ke,/^[\s\S]+/]]),["regex"]);function nt(He){var rt=He.langExtension;try{var pt=v(He.sourceNode,He.pre),gt=pt.sourceCode;He.sourceCode=gt,He.spans=pt.spans,He.basePos=0,P(rt,gt)(He),Pe(He)}catch($e){R.console&&console.log($e&&$e.stack||$e)}}function Tt(He,rt,pt){var gt=pt||!1,$e=rt||null,Ke=document.createElement("div");Ke.innerHTML="<pre>"+He+"</pre>",Ke=Ke.firstChild,gt&&ze(Ke,gt,!0);var ot={langExtension:$e,numberLines:gt,sourceNode:Ke,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return nt(ot),Ke.innerHTML}function Ut(He,rt){var pt=rt||document.body,gt=pt.ownerDocument||document;function $e(Z){return pt.getElementsByTagName(Z)}for(var Ke=[$e("pre"),$e("code"),$e("xmp")],ot=[],Ft=0;Ft<Ke.length;++Ft)for(var bt=0,ut=Ke[Ft].length;bt<ut;++bt)ot.push(Ke[Ft][bt]);Ke=null;var st=Date;st.now||(st={now:function(){return+new Date}});var St=0,ct=/\blang(?:uage)?-([\w.]+)(?!\S)/,xt=/\bprettyprint\b/,Te=/\bprettyprinted\b/,Dt=/pre|xmp/i,ht=/^code$/i,Le=/^(?:pre|code|xmp)$/i,Xe={};function ie(){for(var Z=R.PR_SHOULD_USE_CONTINUATION?st.now()+250:Infinity;St<ot.length&&st.now()<Z;St++){for(var ee=ot[St],E=Xe,x=ee;x=x.previousSibling;){var O=x.nodeType,j=(O===7||O===8)&&x.nodeValue;if(j?!/^\??prettify\b/.test(j):O!==3||/\S/.test(x.nodeValue))break;if(j){E={},j.replace(/\b(\w+)=([\w:.%+-]+)/g,function(un,Wt,Kn){E[Wt]=Kn});break}}var ge=ee.className;if((E!==Xe||xt.test(ge))&&!Te.test(ge)){for(var Se=!1,Ye=ee.parentNode;Ye;Ye=Ye.parentNode){var _t=Ye.tagName;if(Le.test(_t)&&Ye.className&&xt.test(Ye.className)){Se=!0;break}}if(!Se){ee.className+=" prettyprinted";var zt=E.lang;if(!zt){zt=ge.match(ct);var _e;!zt&&(_e=Re(ee))&&ht.test(_e.tagName)&&(zt=_e.className.match(ct)),zt&&(zt=zt[1])}var Ot;if(Dt.test(ee.tagName))Ot=1;else{var Ct=ee.currentStyle,et=gt.defaultView,Zt=Ct?Ct.whiteSpace:et&&et.getComputedStyle?et.getComputedStyle(ee,null).getPropertyValue("white-space"):0;Ot=Zt&&Zt.substring(0,3)==="pre"}var Kt=E.linenums;(Kt=Kt==="true"||+Kt)||(Kt=ge.match(/\blinenums\b(?::(\d+))?/),Kt=Kt?Kt[1]&&Kt[1].length?+Kt[1]:!0:!1),Kt&&ze(ee,Kt,Ot);var at={langExtension:zt,sourceNode:ee,numberLines:Kt,pre:Ot,sourceCode:null,basePos:null,spans:null,decorations:null};nt(at)}}}St<ot.length?R.setTimeout(ie,250):typeof He=="function"&&He()}ie()}var ft=R.PR={createSimpleLexer:qe,registerLangHandler:he,sourceDecorator:dt,PR_ATTRIB_NAME:Q,PR_ATTRIB_VALUE:ue,PR_COMMENT:Ee,PR_DECLARATION:me,PR_KEYWORD:Ve,PR_LITERAL:Ne,PR_NOCODE:G,PR_PLAIN:B,PR_PUNCTUATION:be,PR_SOURCE:S,PR_STRING:ke,PR_TAG:xe,PR_TYPE:Ce,prettyPrintOne:re?R.prettyPrintOne=Tt:ne=Tt,prettyPrint:w=re?R.prettyPrint=Ut:w=Ut},wt=R.define;typeof wt=="function"&&wt.amd&&wt("google-code-prettify",[],function(){return ft})})()},SMhR:function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkCe1zZPaZgNk0zYbIJu2eRKQJwF5S9vcAPIkIJu2uQFk0zY32kbf6USSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnS+MmXa5t/WdtsgGza5psB+WRt8xQgN4DcaJtv1jYbIDfa5pO1jf5/J5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGTz4ckH9Z22yAbNpmA2TTNhsgm7bZANm0zQbIpm02QDZtswFyA8h/aZs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},UeE2:function(Oe,Ae,h){"use strict";h.r(Ae);var I=h("5NDa"),de=h("5rEg"),re=h("2qtc"),X=h("kLXV"),C=h("miYZ"),ne=h("tsqr"),w=h("9og8"),R=h("k1fw"),W=h("y8nQ"),V=h("Vl3Y"),L=h("tJVT"),T=h("PpiC"),se=h("Znn+"),q=h("ZTPi"),K=h("WmNS"),D=h.n(K),_=h("q1tI"),A=h.n(_),le=h("9kvl"),Me=h("Ot1p"),Je=h("9Bee"),we=h("HBuW"),ke=h("+L6B"),Ve=h("2/Rp"),Ee=h("14J3"),Ce=h("BMrR"),Ne=h("jCWc"),be=h("kPKH"),B=h("OaEy"),xe=h("2fM7"),me=h("7Kak"),S=h("9yH6"),Q=h("1vsH"),ue=h("uIXO"),G=h.n(ue),De=h("5Dmo"),M=h("3S7+"),v=h("oBTY"),ce=h("Ty5D"),Ue=h("V0Rq"),Re=h("muJo"),qe=h.n(Re),dt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],We=function($e,Ke){var ot=$e.problemset,Ft=$e.globalSetting,bt=$e.loading,ut=$e.dispatch,st=$e.onRef,St=st===void 0?function(){}:st,ct=$e.editData,xt=Object(T.a)($e,["problemset","globalSetting","loading","dispatch","onRef","editData"]),Te=Object(_.useState)([]),Dt=Object(L.a)(Te,2),ht=Dt[0],Le=Dt[1],Xe=Object(_.useState)(),ie=Object(L.a)(Xe,2),Z=ie[0],ee=ie[1],E=Object(_.useState)([]),x=Object(L.a)(E,2),O=x[0],j=x[1],ge=Object(_.useState)(""),Se=Object(L.a)(ge,2),Ye=Se[0],_t=Se[1],zt=Object(_.useState)(!1),_e=Object(L.a)(zt,2),Ot=_e[0],Ct=_e[1],et=Object(_.useState)(""),Zt=Object(L.a)(et,2),Kt=Zt[0],at=Zt[1],un=Object(_.useState)(5),Wt=Object(L.a)(un,2),Kn=Wt[0],In=Wt[1],It=Object(_.useState)(!1),vi=Object(L.a)(It,2),si=vi[0],Qn=vi[1],oi=Object(ce.i)();Object(_.useEffect)(function(){Le(["","","",""])},[]),Object(_.useEffect)(function(){console.log(ht,"questionChoiceList")},[ht]),Object(_.useEffect)(function(){var Nn,Jt;if(!(ct!=null&&ct.challenge_id)){Qn(!0);return}_t(ct==null?void 0:ct.subject),In(parseInt(ct==null?void 0:ct.question_score)),Le(ct==null||((Nn=ct.choose_contents)===null||Nn===void 0)?void 0:Nn.map(function(en){return en.option_name}));var wn=[];ct==null||((Jt=ct.standard_answer)===null||Jt===void 0)||Jt.split("").map(function(en,yn){wn.push(dt.indexOf(en))}),j(wn)},[ct]),Object(_.useImperativeHandle)(Ke,function(){return{onSave:cn,onReset:_i,isEdit:si}});var _i=function(){Le(["","","",""]),_t(""),j([])},Di=function(){for(var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],wn=Object(v.a)(Jt),en=wn.sort(),yn=0;yn<en.length-1;yn++)if(en[yn]==en[yn+1])return!0;return!1},cn=function(){var Nn=Object(w.a)(D.a.mark(function Jt(){var wn,en;return D.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(Ye){je.next=4;break}return document.getElementById("question-scroll").scrollTo(0,0),Ct(!0),je.abrupt("return",!1);case 4:if(wn=ht.findIndex(function(Nt){return!Nt}),!(wn>-1)){je.next=9;break}return document.getElementById("question-scroll").scrollTo(0,250),at("\u8BF7\u5148\u8F93\u5165 ".concat(dt[wn]," \u9009\u9879\u7684\u5185\u5BB9")),je.abrupt("return",!1);case 9:if(!Di(ht)){je.next=13;break}return document.getElementById("question-scroll").scrollTo(0,250),at("\u9009\u9879\u5DF2\u91CD\u590D"),je.abrupt("return",!1);case 13:if(O.length){je.next=17;break}return document.getElementById("question-scroll").scrollTo(0,250),at("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),je.abrupt("return",!1);case 17:return en=ht.map(function(Nt,Jn){return{choice_text:Nt,is_answer:!!O.includes(Jn)}}),je.abrupt("return",{subject:Ye,question:{cnt:en.map(function(Nt){return Nt.choice_text})},choice:{answer:en.map(function(Nt){return Nt.is_answer})}});case 19:case"end":return je.stop()}},Jt)}));return function(){return Nn.apply(this,arguments)}}(),Rt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],ji=function(){var Nn=Object(w.a)(D.a.mark(function Jt(wn){return D.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:yn.t0=wn.id,yn.next=yn.t0==="del"?3:yn.t0==="up"||yn.t0==="down"?5:yn.t0==="edit"?9:11;break;case 3:return X.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk:function(){return Object(w.a)(D.a.mark(function Nt(){return D.a.wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:return Yn.next=2,Object(Ue.m)({id:ct.question_id});case 2:ut({type:"exercise/editExercise",payload:Object(R.a)({},oi)});case 3:case"end":return Yn.stop()}},Nt)}))()}}),yn.abrupt("break",11);case 5:return yn.next=7,ut({type:"exercise/exeriseMoveUpDown",payload:{id:ct.question_id,opr:wn.id}});case 7:return ut({type:"exercise/editExercise",payload:Object(R.a)({},oi)}),yn.abrupt("break",11);case 9:return Qn(!0),yn.abrupt("break",11);case 11:case"end":return yn.stop()}},Jt)}));return function(wn){return Nn.apply(this,arguments)}}(),Li=function(){var Jt;return A.a.createElement("aside",null,A.a.createElement("p",{className:qe.a.titleWrap},A.a.createElement("span",{className:qe.a.required},"*"),A.a.createElement("span",{className:qe.a.title},"\u9898\u5E72\uFF1A")),A.a.createElement(Me.a,{id:"single-question-title",watch:!0,isFocus:!0,height:155,defaultValue:Ye,onChange:function(en){_t(en),Ct(!1)}}),Ot&&A.a.createElement("div",{className:qe.a.error},"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),A.a.createElement("p",{className:qe.a.titleWrap},A.a.createElement("span",{className:qe.a.required},"*"),A.a.createElement("span",{className:qe.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",A.a.createElement("span",{className:qe.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ht.map(function(wn,en){return A.a.createElement("div",{className:qe.a.choiceWrap,key:en},A.a.createElement(M.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},A.a.createElement("div",{className:"".concat(qe.a.answer," ").concat(O.includes(en)?qe.a.activeAnswer:""),onClick:function(){at(""),O.includes(en)?j(O.filter(function(je){return je!==en})):j([].concat(Object(v.a)(O),[en]))}},dt[en])),A.a.createElement("div",{className:qe.a.editorWrap},Z===en?A.a.createElement(Me.a,{id:"single-question-option-".concat(en),watch:!0,isFocus:!0,height:155,defaultValue:wn,onChange:function(je){at(""),ht[en]=je,Le(ht)}}):A.a.createElement("div",{className:qe.a.htmlWrap,onClick:function(){return ee(en)}},A.a.createElement(Je.a,{value:wn}))),en>1&&A.a.createElement(M.a,{title:"\u5220\u9664"},A.a.createElement("i",{className:"".concat(qe.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){Le(ht.filter(function(Jn,Yn){return Yn!==en}));var je=O.filter(function(Jn,Yn){return Jn!==en}),Nt=je.map(function(Jn){return Jn<en?Jn:Jn-1});j(Nt)}})),en<7&&en===ht.length-1&&A.a.createElement(M.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},A.a.createElement("i",{className:"".concat(qe.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Le([].concat(Object(v.a)(ht),[""]))}})))}),Kt&&A.a.createElement("div",{className:"".concat(qe.a.error," mt10")},Kt),A.a.createElement("div",{className:"mt10"},A.a.createElement("span",{className:"c-grey-999"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),A.a.createElement("p",null,"\u6807\u51C6\u7B54\u6848\uFF1A",A.a.createElement("span",{className:"c-light-primary"},O==null||((Jt=O.sort(function(wn,en){return wn-en}))===null||Jt===void 0)?void 0:Jt.map(function(wn){return dt[wn]})))))};return console.log(O,"activeAnswer"),A.a.createElement("section",{className:qe.a.wrap},Li())},ze=Object(le.a)(function(gt){var $e=gt.problemset,Ke=gt.loading,ot=gt.globalSetting;return{problemset:$e,globalSetting:ot,loading:Ke.effects}},null,null,{forwardRef:!0})(Object(_.forwardRef)(We)),Pe=function($e){var Ke=$e.visible,ot=Ke===void 0?!1:Ke,Ft=$e.is_published,bt=$e.match,ut=$e.editData,st=$e.onOk,St=$e.onCancel,ct=Object(_.useState)([10,20]),xt=Object(L.a)(ct,2),Te=xt[0],Dt=xt[1],ht=V.a.useForm(),Le=Object(L.a)(ht,1),Xe=Le[0],ie=Object(_.useState)({}),Z=Object(L.a)(ie,2),ee=Z[0],E=Z[1],x=Object(_.useRef)();Object(_.useEffect)(function(){return document.getElementById("modal-level-question").style.transform="none",function(){document.getElementById("modal-level-question").style.transform="translateX(0)"}},[]),Object(_.useEffect)(function(){ot&&ut&&(Xe.setFieldsValue(Object(R.a)({},ut)),Dt(O[ut.difficult]))},[ot]);var O={1:[10,20],2:[30,40,50,60],3:[70,80,90,100]},j=function(_e,Ot){E(Object(R.a)({},Ot)),"difficult"in _e&&Se(_e.difficult)},ge=function(){var zt=Object(w.a)(D.a.mark(function _e(){var Ot,Ct,et;return D.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Ct="",Kt.next=3,x.current.onSave();case 3:if(et=Kt.sent,et){Kt.next=6;break}return Kt.abrupt("return",!1);case 6:return(Ot=et.choice)===null||Ot===void 0||Ot.answer.map(function(at,un){at&&(Ct+=Q.m[un])}),Kt.abrupt("return",{challenge_choose:{subject:et.subject,answer:ee.task_pass,standard_answer:Ct,score:ee.score,difficult:ee.difficult},challenge_tag:ee.challenge_tag,question:et.question,choice:et.choice});case 8:case"end":return Kt.stop()}},_e)}));return function(){return zt.apply(this,arguments)}}(),Se=function(_e){var Ot=O[_e],Ct=Ot==null?void 0:Ot[0];Dt(Ot),Xe.setFieldsValue({score:Ct}),E(Object(R.a)(Object(R.a)({},Xe.getFieldsValue()),{score:Ct}))},Ye=function(){var zt=Object(w.a)(D.a.mark(function _e(Ot){var Ct,et,Zt;return D.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,ge();case 2:if(Ct=at.sent,Ct){at.next=5;break}return at.abrupt("return");case 5:if(!ut){at.next=25;break}return at.t0=we.Mb,at.t1=R.a,at.t2=R.a,at.t3=R.a,at.t4={},at.next=13,Ct;case 13:return at.t5=at.sent,at.t6=(0,at.t3)(at.t4,at.t5),at.t7=bt.params,at.t8=(0,at.t2)(at.t6,at.t7),at.t9={},at.t10={questionId:ut.choose_id},at.t11=(0,at.t1)(at.t8,at.t9,at.t10),at.next=22,(0,at.t0)(at.t11);case 22:return et=at.sent,et.challenge_choose_id&&(ne.b.success("\u64CD\u4F5C\u6210\u529F"),st()),at.abrupt("return");case 25:return at.t12=we.c,at.t13=R.a,at.t14=R.a,at.t15={},at.next=31,Ct;case 31:return at.t16=at.sent,at.t17=(0,at.t14)(at.t15,at.t16),at.t18=bt.params,at.t19=(0,at.t13)(at.t17,at.t18),at.next=37,(0,at.t12)(at.t19);case 37:Zt=at.sent,Zt.challenge_choose_id&&(ne.b.success("\u64CD\u4F5C\u6210\u529F"),st());case 39:case"end":return at.stop()}},_e)}));return function(Ot){return zt.apply(this,arguments)}}(),_t=function(){var zt=Object(w.a)(D.a.mark(function _e(){var Ot;return D.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.next=2,x.current.onSave();case 2:if(Ot=et.sent,Ot){et.next=5;break}return et.abrupt("return",!1);case 5:Xe.submit();case 6:case"end":return et.stop()}},_e)}));return function(){return zt.apply(this,arguments)}}();return A.a.createElement("div",{className:G.a.modal},A.a.createElement("div",{className:G.a.main},A.a.createElement("div",{className:G.a.title},A.a.createElement("span",{className:G.a.name},ut?"\u7F16\u8F91\u9898\u76EE":"\u6DFB\u52A0\u9898\u76EE"),A.a.createElement("span",{className:G.a.edit,onClick:St}," ",A.a.createElement("i",{className:"iconfont icon-guanbi1"})," ")),A.a.createElement("div",{className:G.a.body,id:"question-scroll"},A.a.createElement(V.a,{form:Xe,className:G.a.form,scrollToFirstError:!0,layout:"vertical",onValuesChange:j,onFinish:Ye,initialValues:{difficult:1,score:10}},A.a.createElement(ze,{ref:x,editData:ut}),A.a.createElement(V.a.Item,{name:"task_pass",label:"\u53C2\u8003\u7B54\u6848:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8003\u7B54\u6848"},{max:35e3,message:"\u53C2\u8003\u7B54\u6848\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},A.a.createElement(Me.a,{watch:!0,defaultValue:(ut==null?void 0:ut.answer)||""})),A.a.createElement(V.a.Item,{name:"difficult",label:"\u96BE\u5EA6\u7CFB\u6570:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6\u7CFB\u6570"}]},A.a.createElement(S.a.Group,{disabled:Ft},A.a.createElement(S.a,{value:1},"\u7B80\u5355"),A.a.createElement(S.a,{style:{marginLeft:80},value:2},"\u4E2D\u7B49"),A.a.createElement(S.a,{style:{marginLeft:80},className:"ml80",value:3},"\u56F0\u96BE"))),A.a.createElement(Ce.a,{className:"customAddItemSelect"},A.a.createElement(be.a,null,A.a.createElement(V.a.Item,{name:"score",label:"\u5956\u52B1\u91D1\u5E01:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5956\u52B1\u7ECF\u9A8C\u503C"}]},A.a.createElement(xe.a,{disabled:Ft,bordered:!1},Te.map(function(zt){return A.a.createElement(xe.a.Option,{key:zt,value:zt},zt)})))),A.a.createElement(be.a,{style:{paddingTop:65}},A.a.createElement("div",{className:"font12 c-light-black ml10 mt20"},"\u5B66\u5458\u6B63\u786E\u7B54\u9898\u65F6\u83B7\u5F97\u91D1\u5E01\uFF0C\u5E76\u4E14\u83B7\u5F97\u7B49\u91CF\u7684\u7ECF\u9A8C\u503C\u3002\u5982\uFF1A+100\u91D1\u5E01\u3001+100\u7ECF\u9A8C\u503C\u3002"))))),A.a.createElement("div",{className:G.a.btns},A.a.createElement(Ve.a,{size:"large",style:{marginRight:20},onClick:St},"\u53D6\u6D88"),A.a.createElement(Ve.a,{size:"large",type:"primary",onClick:_t},"\u4FDD\u5B58"))))},Fe=Pe,he=h("mepR"),P=h.n(he),nt=h("9ZNV"),Tt=h("nuEh"),Ut=h("UqFu"),ft=h("lzim"),wt=h("xKgJ"),He=q.a.TabPane,rt=function($e){var Ke,ot,Ft=$e.shixunsDetail,bt=$e.practiceSetting,ut=$e.dispatch,st=$e.match,St=$e.location,ct=Object(T.a)($e,["shixunsDetail","practiceSetting","dispatch","match","location"]),xt=V.a.useForm(),Te=Object(L.a)(xt,1),Dt=Te[0],ht=Object(_.useState)({}),Le=Object(L.a)(ht,2),Xe=Le[0],ie=Le[1],Z=Object(_.useState)([]),ee=Object(L.a)(Z,2),E=ee[0],x=ee[1],O=Object(_.useState)(!0),j=Object(L.a)(O,2),ge=j[0],Se=j[1],Ye=Object(_.useState)(!0),_t=Object(L.a)(Ye,2),zt=_t[0],_e=_t[1],Ot=Object(_.useState)(!1),Ct=Object(L.a)(Ot,2),et=Ct[0],Zt=Ct[1],Kt=Object(_.useState)(null),at=Object(L.a)(Kt,2),un=at[0],Wt=at[1],Kn=Object(_.useState)(null),In=Object(L.a)(Kn,2),It=In[0],vi=In[1],si=Object(_.useState)("1"),Qn=Object(L.a)(si,2),oi=Qn[0],_i=Qn[1],Di=Object(_.useState)(1),cn=Object(L.a)(Di,2),Rt=cn[0],ji=cn[1],Li=Object(_.useRef)({subject:"",task_pass:""}),Nn=Object(_.useRef)(null),Jt=bt.is_published,wn=bt.id,en=Ft.challengesEdit,yn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];Object(_.useEffect)(function(){var Et;return St!=null&&(Et=St.query)!==null&&Et!==void 0&&Et.tab&&_i(St.query.tab),Jn(),Yn(),function(){clearTimeout(Nn.current)}},[St.pathname]);var je=function(){clearTimeout(Nn.current),Nn.current=setTimeout(function(){var At=Dt.getFieldsValue(),kt=At.subject,nn=At.task_pass;Li.current.subject!==""&&(kt!==Li.current.subject||nn!==Li.current.task_pass?ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}))},500)},Nt=function(At,kt){ie(Object(R.a)({},kt)),je()},Jn=function(){var Et=Object(w.a)(D.a.mark(function At(){var kt;return D.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return _e(!0),mn.next=3,ut({type:"shixunsDetail/getChallengesEdit",payload:Object(R.a)({},st.params)});case 3:kt=mn.sent,vi(Object(R.a)({},kt)),Li.current={subject:kt.subject,task_pass:Object(Ut.a)(kt.task_pass),unity_3d_routes:kt.unity_3d_routes},ie(Object(R.a)({},Li.current)),Dt.setFieldsValue(Object(R.a)({},kt)),_e(!1);case 9:case"end":return mn.stop()}},At)}));return function(){return Et.apply(this,arguments)}}(),Yn=function(){var Et=Object(w.a)(D.a.mark(function At(){var kt;return D.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return Se(!0),mn.next=3,Object(we.ab)(Object(R.a)({},st.params));case 3:kt=mn.sent,x(kt.data),Se(!1);case 6:case"end":return mn.stop()}},At)}));return function(){return Et.apply(this,arguments)}}(),ao=function(){var Et=Object(w.a)(D.a.mark(function At(kt){var nn,mn,$t;return D.a.wrap(function(hi){for(;;)switch(hi.prev=hi.next){case 0:return nn=!(!kt.unity_3d_routes||kt.unity_3d_routes==""),mn=Object(R.a)(Object(R.a)(Object(R.a)({},kt),st.params),{},{unity_3d_routes:nn?kt.unity_3d_routes:null,unity_3d:nn}),hi.next=4,Object(we.Lb)(mn);case 4:$t=hi.sent,$t.status===0&&(ne.b.success($t.message),ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),ut({type:"practiceSetting/setUpdateIndex"}),_i("2"),Y());case 6:case"end":return hi.stop()}},At)}));return function(kt){return Et.apply(this,arguments)}}(),so=function(){return oi==="1"?null:A.a.createElement("span",{className:P.a.addBtn,onClick:function(){return Zt(!0)}},A.a.createElement("i",{className:"iconfont icon-tianjiatimu"}),"\u6DFB\u52A0\u9898\u76EE")},d=function(At){var kt,nn=function(){_i(At),Y(),ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};bt!=null&&(kt=bt.sideBar)!==null&&kt!==void 0&&kt.confirmLeave?X.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){nn()}}):nn()},r=function(At){var kt=function(){var nn=Object(w.a)(D.a.mark(function mn(){var $t;return D.a.wrap(function(hi){for(;;)switch(hi.prev=hi.next){case 0:return hi.next=2,Object(we.v)(Object(R.a)(Object(R.a)({},st.params),{},{questionId:At}));case 2:$t=hi.sent,$t.challenge_id&&(Yn(),ne.b.success("\u5220\u9664\u6210\u529F"));case 4:case"end":return hi.stop()}},mn)}));return function(){return nn.apply(this,arguments)}}();X.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u9898\u76EE!",centered:!0,onOk:kt})},a=function(){var Et=Object(w.a)(D.a.mark(function At(kt){var nn;return D.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return $t.next=2,Object(we.Hb)(Object(R.a)(Object(R.a)({},st.params),{},{questionId:kt}));case 2:nn=$t.sent,nn.status===0&&Yn();case 4:case"end":return $t.stop()}},At)}));return function(kt){return Et.apply(this,arguments)}}(),u=function(){var Et=Object(w.a)(D.a.mark(function At(kt){var nn;return D.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return $t.next=2,Object(we.B)(Object(R.a)(Object(R.a)({},st.params),{},{questionId:kt}));case 2:nn=$t.sent,nn.status===0&&Yn();case 4:case"end":return $t.stop()}},At)}));return function(kt){return Et.apply(this,arguments)}}(),m=function(){var Et=Object(w.a)(D.a.mark(function At(kt){var nn;return D.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return $t.next=2,Object(we.P)(Object(R.a)(Object(R.a)({},st.params),{},{questionId:kt}));case 2:nn=$t.sent,Wt(Object(R.a)(Object(R.a)({},nn),{},{choose_id:kt})),Zt(!0);case 5:case"end":return $t.stop()}},At)}));return function(kt){return Et.apply(this,arguments)}}(),c=function(){Ge()},Y=function(){ji(Rt+1),Jn()},Ge=function(){var At,kt=function(){le.d.push("/shixuns/".concat(wn,"/challenges")),ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};bt!=null&&(At=bt.sideBar)!==null&&At!==void 0&&At.confirmLeave?X.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){kt()}}):kt()},ve=function(){return E.map(function(At,kt){var nn=At.challenge_choose_id,mn=At.subject,$t=At.choose_contents,Bi=At.standard_answer,hi=At.answer,wi=At.score,Ii=At.category;return A.a.createElement("div",{key:nn,className:P.a.list},A.a.createElement("div",{className:P.a.top},A.a.createElement("div",{className:P.a.left},A.a.createElement("div",{className:P.a.title},A.a.createElement("div",{className:P.a.fs},kt+1,". "),A.a.createElement(Je.a,{value:mn})),$t.map(function(Ai,lo){return A.a.createElement("ul",{key:lo,className:Ai.right_key?P.a.qsActive:P.a.qs},A.a.createElement("li",null,yn[Ai.position]),A.a.createElement("li",null,A.a.createElement(Je.a,{value:Ai.option_name})))})),A.a.createElement("div",{className:P.a.right},A.a.createElement("i",{onClick:function(){return m(nn)},className:"iconfont icon-xiaoxiugai"}),A.a.createElement("i",{onClick:function(){return r(nn)},className:"iconfont icon-shanchu23"}),kt!==E.length-1&&A.a.createElement("i",{onClick:function(){return u(nn)},className:"iconfont icon-xiayi2"}),kt!==0&&A.a.createElement("i",{onClick:function(){return a(nn)},className:"iconfont icon-shangyi2"}))),A.a.createElement("div",{className:P.a.bt},"\u9898\u578B\uFF1A",Ii===1?"\u5355\u9009\u9898":"\u591A\u9009\u9898","\xA0\xA0\xA0\xA0\u5956\u52B1\u91D1\u5E01\uFF1A",wi),A.a.createElement("div",{className:P.a.answer},A.a.createElement("p",null,"\u6807\u51C6\u7B54\u6848\uFF1A",Bi),A.a.createElement("p",null,A.a.createElement("div",{className:P.a.fs},"\u53C2\u8003\u7B54\u6848\uFF1A"),A.a.createElement(Je.a,{value:hi}))))})},Lt=function(){Zt(!1),Wt(null),Yn()},Qe=function(){Zt(!1),Wt(null)};return A.a.createElement("section",{className:P.a.bg,style:{marginBottom:oi==="1"?67:0}},A.a.createElement(q.a,{activeKey:oi,onChange:d,tabBarExtraContent:so()},A.a.createElement(He,{tab:"\u672C\u5173\u4EFB\u52A1",key:"1"},A.a.createElement(V.a,{key:Rt,form:Dt,scrollToFirstError:!0,className:P.a.formWrap,layout:"vertical",onValuesChange:Nt,onFinish:ao},A.a.createElement("div",{className:P.a.fieldWrap},A.a.createElement(V.a.Item,{initialValue:"",name:"subject",label:"\u4EFB\u52A1\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},A.a.createElement(de.a,{bordered:!1,maxLength:60,suffix:"".concat(((Ke=Xe.subject)===null||Ke===void 0?void 0:Ke.length)||0,"/60"),placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),A.a.createElement("div",{className:P.a.mdWrap},A.a.createElement(V.a.Item,{name:"task_pass",label:"\u4EFB\u52A1\u8981\u6C42:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:35e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},A.a.createElement(Me.a,{key:st.params.challengesId||"3",watch:!0,defaultValue:en.task_pass}))),A.a.createElement(V.a.Item,{noStyle:!0},A.a.createElement(nt.a,{okButtonProps:{htmlType:"submit"},className:"customFixedButton",onCancel:c})),Object(wt.o)()&&A.a.createElement("div",{className:P.a.fieldWrap},A.a.createElement(V.a.Item,{initialValue:"",name:"unity_3d_routes",label:"\u5D4C\u5165\u7B2C\u4E09\u65B9\u5E73\u53F0:"},A.a.createElement(de.a,{bordered:!1,maxLength:60,suffix:"".concat(((ot=Xe.unity_3d_routes)===null||ot===void 0?void 0:ot.length)||0,"/60"),placeholder:"\u8BF7\u8F93\u5165\u7B2C\u4E09\u65B9\u5E73\u53F0\u5730\u5740"}))))),A.a.createElement(He,{tab:"\u9898\u76EE",key:"2"},!!E.length&&ve(),!E.length&&A.a.createElement("div",{className:P.a.empty},A.a.createElement("img",{src:ft.l,width:"258"}),A.a.createElement("span",{className:"c-grey-c"},"\u8BF7\u70B9\u51FB\u53F3\u4E0A\u89D2\u6DFB\u52A0\u9898\u76EE\u6309\u94AE\u8FDB\u884C\u9898\u76EE\u7684\u521B\u5EFA! ")))),et&&A.a.createElement(Fe,{is_published:Jt,visible:et,onCancel:Qe,onOk:Lt,match:st,editData:un}),A.a.createElement(Tt.a,{loading:zt}))},pt=Ae.default=Object(le.a)(function(gt){var $e=gt.shixunsDetail,Ke=gt.newCourse,ot=gt.globalSetting,Ft=gt.practiceSetting;return{shixunsDetail:$e,newCourse:Ke,globalSetting:ot,practiceSetting:Ft}})(rt)},UqFu:function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return I});var I=function(re){var X=document.createElement("textarea");return X.value=re,X.value}},"VrN/":function(Oe,Ae,h){(function(I,de){Oe.exports=de()})(this,function(){"use strict";var I=navigator.userAgent,de=navigator.platform,re=/gecko\/\d/i.test(I),X=/MSIE \d/.test(I),C=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),ne=/Edge\/(\d+)/.exec(I),w=X||C||ne,R=w&&(X?document.documentMode||6:+(ne||C)[1]),W=!ne&&/WebKit\//.test(I),V=W&&/Qt\/\d+\.\d+/.test(I),L=!ne&&/Chrome\//.test(I),T=/Opera\//.test(I),se=/Apple Computer/.test(navigator.vendor),q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),K=/PhantomJS/.test(I),D=!ne&&/AppleWebKit/.test(I)&&/Mobile\/\w+/.test(I),_=/Android/.test(I),A=D||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),le=D||/Mac/.test(de),Me=/\bCrOS\b/.test(I),Je=/win/i.test(de),we=T&&I.match(/Version\/(\d*\.\d*)/);we&&(we=Number(we[1])),we&&we>=15&&(T=!1,W=!0);var ke=le&&(V||T&&(we==null||we<12.11)),Ve=re||w&&R>=9;function Ee(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Ce=function(e,t){var i=e.className,n=Ee(t).exec(i);if(n){var o=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(o?n[1]+o:"")}};function Ne(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function be(e,t){return Ne(e).appendChild(t)}function B(e,t,i,n){var o=document.createElement(e);if(i&&(o.className=i),n&&(o.style.cssText=n),typeof t=="string")o.appendChild(document.createTextNode(t));else if(t)for(var s=0;s<t.length;++s)o.appendChild(t[s]);return o}function xe(e,t,i,n){var o=B(e,t,i,n);return o.setAttribute("role","presentation"),o}var me;document.createRange?me=function(e,t,i,n){var o=document.createRange();return o.setEnd(n||e,i),o.setStart(e,t),o}:me=function(e,t,i){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(o){return n}return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",t),n};function S(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function Q(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function ue(e,t){var i=e.className;Ee(t).test(i)||(e.className+=(i?" ":"")+t)}function G(e,t){for(var i=e.split(" "),n=0;n<i.length;n++)i[n]&&!Ee(i[n]).test(t)&&(t+=" "+i[n]);return t}var De=function(e){e.select()};D?De=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:w&&(De=function(e){try{e.select()}catch(t){}});function M(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function v(e,t,i){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(i!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function ce(e,t,i,n,o){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var s=n||0,l=o||0;;){var f=e.indexOf(" ",s);if(f<0||f>=t)return l+(t-s);l+=f-s,l+=i-l%i,s=f+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};Ue.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ue.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function Re(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var qe=50,dt={toString:function(){return"CodeMirror.Pass"}},We={scroll:!1},ze={origin:"*mouse"},Pe={origin:"+move"};function Fe(e,t,i){for(var n=0,o=0;;){var s=e.indexOf(" ",n);s==-1&&(s=e.length);var l=s-n;if(s==e.length||o+l>=t)return n+Math.min(l,t-o);if(o+=s-n,o+=i-o%i,n=s+1,o>=t)return n}}var he=[""];function P(e){for(;he.length<=e;)he.push(nt(he)+" ");return he[e]}function nt(e){return e[e.length-1]}function Tt(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=t(e[n],n);return i}function Ut(e,t,i){for(var n=0,o=i(t);n<e.length&&i(e[n])<=o;)n++;e.splice(n,0,t)}function ft(){}function wt(e,t){var i;return Object.create?i=Object.create(e):(ft.prototype=e,i=new ft),t&&v(t,i),i}var He=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||He.test(e))}function pt(e,t){return t?t.source.indexOf("\\w")>-1&&rt(e)?!0:t.test(e):rt(e)}function gt(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var $e=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ke(e){return e.charCodeAt(0)>=768&&$e.test(e)}function ot(e,t,i){for(;(i<0?t>0:t<e.length)&&Ke(e.charAt(t));)t+=i;return t}function Ft(e,t,i){for(var n=t>i?-1:1;;){if(t==i)return t;var o=(t+i)/2,s=n<0?Math.ceil(o):Math.floor(o);if(s==t)return e(s)?t:i;e(s)?i=s:t=s+n}}function bt(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var o=!1,s=0;s<e.length;++s){var l=e[s];(l.from<i&&l.to>t||t==i&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",s),o=!0)}o||n(t,i,"ltr")}var ut=null;function st(e,t,i){var n;ut=null;for(var o=0;o<e.length;++o){var s=e[o];if(s.from<t&&s.to>t)return o;s.to==t&&(s.from!=s.to&&i=="before"?n=o:ut=o),s.from==t&&(s.from!=s.to&&i!="before"?n=o:ut=o)}return n!=null?n:ut}var St=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(y){return y<=247?e.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?t.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,s=/[LRr]/,l=/[Lb1n]/,f=/[1n]/;function p(y,F,J){this.level=y,this.from=F,this.to=J}return function(y,F){var J=F=="ltr"?"L":"R";if(y.length==0||F=="ltr"&&!n.test(y))return!1;for(var ye=y.length,fe=[],Be=0;Be<ye;++Be)fe.push(i(y.charCodeAt(Be)));for(var Ze=0,lt=J;Ze<ye;++Ze){var vt=fe[Ze];vt=="m"?fe[Ze]=lt:lt=vt}for(var Mt=0,yt=J;Mt<ye;++Mt){var Pt=fe[Mt];Pt=="1"&&yt=="r"?fe[Mt]="n":s.test(Pt)&&(yt=Pt,Pt=="r"&&(fe[Mt]="R"))}for(var Yt=1,Vt=fe[0];Yt<ye-1;++Yt){var dn=fe[Yt];dn=="+"&&Vt=="1"&&fe[Yt+1]=="1"?fe[Yt]="1":dn==","&&Vt==fe[Yt+1]&&(Vt=="1"||Vt=="n")&&(fe[Yt]=Vt),Vt=dn}for(var Vn=0;Vn<ye;++Vn){var Ni=fe[Vn];if(Ni==",")fe[Vn]="N";else if(Ni=="%"){var ai=void 0;for(ai=Vn+1;ai<ye&&fe[ai]=="%";++ai);for(var ro=Vn&&fe[Vn-1]=="!"||ai<ye&&fe[ai]=="1"?"1":"N",no=Vn;no<ai;++no)fe[no]=ro;Vn=ai-1}}for(var Ei=0,io=J;Ei<ye;++Ei){var Fi=fe[Ei];io=="L"&&Fi=="1"?fe[Ei]="L":s.test(Fi)&&(io=Fi)}for(var Ri=0;Ri<ye;++Ri)if(o.test(fe[Ri])){var xi=void 0;for(xi=Ri+1;xi<ye&&o.test(fe[xi]);++xi);for(var di=(Ri?fe[Ri-1]:J)=="L",oo=(xi<ye?fe[xi]:J)=="L",Ur=di==oo?di?"L":"R":J,sr=Ri;sr<xi;++sr)fe[sr]=Ur;Ri=xi-1}for(var Gi=[],Bo,Pi=0;Pi<ye;)if(l.test(fe[Pi])){var ps=Pi;for(++Pi;Pi<ye&&l.test(fe[Pi]);++Pi);Gi.push(new p(0,ps,Pi))}else{var Ko=Pi,gr=Gi.length,vr=F=="rtl"?1:0;for(++Pi;Pi<ye&&fe[Pi]!="L";++Pi);for(var Zi=Ko;Zi<Pi;)if(f.test(fe[Zi])){Ko<Zi&&(Gi.splice(gr,0,new p(1,Ko,Zi)),gr+=vr);var Fr=Zi;for(++Zi;Zi<Pi&&f.test(fe[Zi]);++Zi);Gi.splice(gr,0,new p(2,Fr,Zi)),gr+=vr,Ko=Zi}else++Zi;Ko<Pi&&Gi.splice(gr,0,new p(1,Ko,Pi))}return F=="ltr"&&(Gi[0].level==1&&(Bo=y.match(/^\s+/))&&(Gi[0].from=Bo[0].length,Gi.unshift(new p(0,0,Bo[0].length))),nt(Gi).level==1&&(Bo=y.match(/\s+$/))&&(nt(Gi).to-=Bo[0].length,Gi.push(new p(0,ye-Bo[0].length,ye)))),F=="rtl"?Gi.reverse():Gi}}();function ct(e,t){var i=e.order;return i==null&&(i=e.order=St(e.text,t)),i}var xt=[],Te=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||xt).concat(i)}};function Dt(e,t){return e._handlers&&e._handlers[t]||xt}function ht(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var n=e._handlers,o=n&&n[t];if(o){var s=Re(o,i);s>-1&&(n[t]=o.slice(0,s).concat(o.slice(s+1)))}}}function Le(e,t){var i=Dt(e,t);if(!i.length)return;for(var n=Array.prototype.slice.call(arguments,2),o=0;o<i.length;++o)i[o].apply(null,n)}function Xe(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Le(e,i||t.type,e,t),O(t)||t.codemirrorIgnore}function ie(e){var t=e._handlers&&e._handlers.cursorActivity;if(!t)return;for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)Re(i,t[n])==-1&&i.push(t[n])}function Z(e,t){return Dt(e,t).length>0}function ee(e){e.prototype.on=function(t,i){Te(this,t,i)},e.prototype.off=function(t,i){ht(this,t,i)}}function E(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function x(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function O(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function j(e){E(e),x(e)}function ge(e){return e.target||e.srcElement}function Se(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),le&&e.ctrlKey&&t==1&&(t=3),t}var Ye=function(){if(w&&R<9)return!1;var e=B("div");return"draggable"in e||"dragDrop"in e}(),_t;function zt(e){if(_t==null){var t=B("span","\u200B");be(e,B("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(_t=t.offsetWidth<=1&&t.offsetHeight>2&&!(w&&R<8))}var i=_t?B("span","\u200B"):B("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var _e;function Ot(e){if(_e!=null)return _e;var t=be(e,document.createTextNode("A\u062EA")),i=me(t,0,1).getBoundingClientRect(),n=me(t,1,2).getBoundingClientRect();return Ne(e),!i||i.left==i.right?!1:_e=n.right-i.right<3}var Ct=`
|
|
|
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var o=e.indexOf(`
|
|
`,t);o==-1&&(o=e.length);var s=e.slice(t,e.charAt(o-1)=="\r"?o-1:o),l=s.indexOf("\r");l!=-1?(i.push(s.slice(0,l)),t+=l+1):(i.push(s),t=o+1)}return i}:function(e){return e.split(/\r\n?|\n/)},et=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Zt=function(){var e=B("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Kt=null;function at(e){if(Kt!=null)return Kt;var t=be(e,B("span","x")),i=t.getBoundingClientRect(),n=me(t,0,1).getBoundingClientRect();return Kt=Math.abs(i.left-n.left)>1}var un={},Wt={};function Kn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),un[e]=t}function In(e,t){Wt[e]=t}function It(e){if(typeof e=="string"&&Wt.hasOwnProperty(e))e=Wt[e];else if(e&&typeof e.name=="string"&&Wt.hasOwnProperty(e.name)){var t=Wt[e.name];typeof t=="string"&&(t={name:t}),e=wt(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return It("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return It("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function vi(e,t){t=It(t);var i=un[t.name];if(!i)return vi(e,"text/plain");var n=i(e,t);if(si.hasOwnProperty(t.name)){var o=si[t.name];for(var s in o){if(!o.hasOwnProperty(s))continue;n.hasOwnProperty(s)&&(n["_"+s]=n[s]),n[s]=o[s]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var si={};function Qn(e,t){var i=si.hasOwnProperty(e)?si[e]:si[e]={};v(t,i)}function oi(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var o=t[n];o instanceof Array&&(o=o.concat([])),i[n]=o}return i}function _i(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Di(e,t,i){return e.startState?e.startState(t,i):!0}var cn=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};cn.prototype.eol=function(){return this.pos>=this.string.length},cn.prototype.sol=function(){return this.pos==this.lineStart},cn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},cn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},cn.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},cn.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},cn.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},cn.prototype.skipToEnd=function(){this.pos=this.string.length},cn.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},cn.prototype.backUp=function(e){this.pos-=e},cn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ce(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ce(this.string,this.lineStart,this.tabSize):0)},cn.prototype.indentation=function(){return ce(this.string,null,this.tabSize)-(this.lineStart?ce(this.string,this.lineStart,this.tabSize):0)},cn.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(l){return i?l.toLowerCase():l},o=this.string.substr(this.pos,e.length);if(n(o)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}},cn.prototype.current=function(){return this.string.slice(this.start,this.pos)},cn.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},cn.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},cn.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Rt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var n=0;;++n){var o=i.children[n],s=o.chunkSize();if(t<s){i=o;break}t-=s}return i.lines[t]}function ji(e,t,i){var n=[],o=t.line;return e.iter(t.line,i.line+1,function(s){var l=s.text;o==i.line&&(l=l.slice(0,i.ch)),o==t.line&&(l=l.slice(t.ch)),n.push(l),++o}),n}function Li(e,t,i){var n=[];return e.iter(t,i,function(o){n.push(o.text)}),n}function Nn(e,t){var i=t-e.height;if(i)for(var n=e;n;n=n.parent)n.height+=i}function Jt(e){if(e.parent==null)return null;for(var t=e.parent,i=Re(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var o=0;!(n.children[o]==t);++o)i+=n.children[o].chunkSize();return i+t.first}function wn(e,t){var i=e.first;e:do{for(var n=0;n<e.children.length;++n){var o=e.children[n],s=o.height;if(t<s){e=o;continue e}t-=s,i+=o.chunkSize()}return i}while(!e.lines);for(var l=0;l<e.lines.length;++l){var f=e.lines[l],p=f.height;if(t<p)break;t-=p}return i+l}function en(e,t){return t>=e.first&&t<e.first+e.size}function yn(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function je(e,t,i){if(i===void 0&&(i=null),!(this instanceof je))return new je(e,t,i);this.line=e,this.ch=t,this.sticky=i}function Nt(e,t){return e.line-t.line||e.ch-t.ch}function Jn(e,t){return e.sticky==t.sticky&&Nt(e,t)==0}function Yn(e){return je(e.line,e.ch)}function ao(e,t){return Nt(e,t)<0?t:e}function so(e,t){return Nt(e,t)<0?e:t}function d(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function r(e,t){if(t.line<e.first)return je(e.first,0);var i=e.first+e.size-1;return t.line>i?je(i,Rt(e,i).text.length):a(t,Rt(e,t.line).text.length)}function a(e,t){var i=e.ch;return i==null||i>t?je(e.line,t):i<0?je(e.line,0):e}function u(e,t){for(var i=[],n=0;n<t.length;n++)i[n]=r(e,t[n]);return i}var m=function(e,t){this.state=e,this.lookAhead=t},c=function(e,t,i,n){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};c.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},c.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},c.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},c.fromSaved=function(e,t,i){return t instanceof m?new c(e,oi(e.mode,t.state),i,t.lookAhead):new c(e,oi(e.mode,t),i)},c.prototype.save=function(e){var t=e!==!1?oi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new m(t,this.maxLookAhead):t};function Y(e,t,i,n){var o=[e.state.modeGen],s={};mn(e,t.text,e.doc.mode,i,function(y,F){return o.push(y,F)},s,n);for(var l=i.state,f=function(y){i.baseTokens=o;var F=e.state.overlays[y],J=1,ye=0;i.state=!0,mn(e,t.text,F.mode,i,function(fe,Be){for(var Ze=J;ye<fe;){var lt=o[J];lt>fe&&o.splice(J,1,fe,o[J+1],lt),J+=2,ye=Math.min(fe,lt)}if(!Be)return;if(F.opaque)o.splice(Ze,J-Ze,fe,"overlay "+Be),J=Ze+2;else for(;Ze<J;Ze+=2){var vt=o[Ze+1];o[Ze+1]=(vt?vt+" ":"")+"overlay "+Be}},s),i.state=l,i.baseTokens=null,i.baseTokenPos=1},p=0;p<e.state.overlays.length;++p)f(p);return{styles:o,classes:s.bgClass||s.textClass?s:null}}function Ge(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=ve(e,Jt(t)),o=t.text.length>e.options.maxHighlightLength&&oi(e.doc.mode,n.state),s=Y(e,t,n);o&&(n.state=o),t.stateAfter=n.save(!o),t.styles=s.styles,s.classes?t.styleClasses=s.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ve(e,t,i){var n=e.doc,o=e.display;if(!n.mode.startState)return new c(n,!0,t);var s=$t(e,t,i),l=s>n.first&&Rt(n,s-1).stateAfter,f=l?c.fromSaved(n,l,s):new c(n,Di(n.mode),s);return n.iter(s,t,function(p){Lt(e,p.text,f);var y=f.line;p.stateAfter=y==t-1||y%5==0||y>=o.viewFrom&&y<o.viewTo?f.save():null,f.nextLine()}),i&&(n.modeFrontier=f.line),f}function Lt(e,t,i,n){var o=e.doc.mode,s=new cn(t,e.options.tabSize,i);for(s.start=s.pos=n||0,t==""&&Qe(o,i.state);!s.eol();)Et(o,s,i.state),s.start=s.pos}function Qe(e,t){if(e.blankLine)return e.blankLine(t);if(!e.innerMode)return;var i=_i(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}function Et(e,t,i,n){for(var o=0;o<10;o++){n&&(n[0]=_i(e,i).mode);var s=e.token(t,i);if(t.pos>t.start)return s}throw new Error("Mode "+e.name+" failed to advance stream.")}var At=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function kt(e,t,i,n){var o=e.doc,s=o.mode,l;t=r(o,t);var f=Rt(o,t.line),p=ve(e,t.line,i),y=new cn(f.text,e.options.tabSize,p),F;for(n&&(F=[]);(n||y.pos<t.ch)&&!y.eol();)y.start=y.pos,l=Et(s,y,p.state),n&&F.push(new At(y,l,oi(o.mode,p.state)));return n?F:new At(y,l,p.state)}function nn(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var n=i[1]?"bgClass":"textClass";t[n]==null?t[n]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+i[2])}return e}function mn(e,t,i,n,o,s,l){var f=i.flattenSpans;f==null&&(f=e.options.flattenSpans);var p=0,y=null,F=new cn(t,e.options.tabSize,n),J,ye=e.options.addModeClass&&[null];for(t==""&&nn(Qe(i,n.state),s);!F.eol();){if(F.pos>e.options.maxHighlightLength?(f=!1,l&&Lt(e,t,n,F.pos),F.pos=t.length,J=null):J=nn(Et(i,F,n.state,ye),s),ye){var fe=ye[0].name;fe&&(J="m-"+(J?fe+" "+J:fe))}if(!f||y!=J){for(;p<F.start;)p=Math.min(F.start,p+5e3),o(p,y);y=J}F.start=F.pos}for(;p<F.pos;){var Be=Math.min(F.pos,p+5e3);o(Be,y),p=Be}}function $t(e,t,i){for(var n,o,s=e.doc,l=i?-1:t-(e.doc.mode.innerMode?1e3:100),f=t;f>l;--f){if(f<=s.first)return s.first;var p=Rt(s,f-1),y=p.stateAfter;if(y&&(!i||f+(y instanceof m?y.lookAhead:0)<=s.modeFrontier))return f;var F=ce(p.text,null,e.options.tabSize);(o==null||n>F)&&(o=f-1,n=F)}return o}function Bi(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontier<t-10)return;for(var i=e.first,n=t-1;n>i;n--){var o=Rt(e,n).stateAfter;if(o&&(!(o instanceof m)||n+o.lookAhead<t)){i=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}var hi=!1,wi=!1;function Ii(){hi=!0}function Ai(){wi=!0}function lo(e,t,i){this.marker=e,this.from=t,this.to=i}function qi(e,t){if(e)for(var i=0;i<e.length;++i){var n=e[i];if(n.marker==t)return n}}function go(e,t){for(var i,n=0;n<e.length;++n)e[n]!=t&&(i||(i=[])).push(e[n]);return i}function $i(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function lr(e,t,i){var n;if(e)for(var o=0;o<e.length;++o){var s=e[o],l=s.marker,f=s.from==null||(l.inclusiveLeft?s.from<=t:s.from<t);if(f||s.from==t&&l.type=="bookmark"&&(!i||!s.marker.insertLeft)){var p=s.to==null||(l.inclusiveRight?s.to>=t:s.to>t);(n||(n=[])).push(new lo(l,s.from,p?null:s.to))}}return n}function Qo(e,t,i){var n;if(e)for(var o=0;o<e.length;++o){var s=e[o],l=s.marker,f=s.to==null||(l.inclusiveRight?s.to>=t:s.to>t);if(f||s.from==t&&l.type=="bookmark"&&(!i||s.marker.insertLeft)){var p=s.from==null||(l.inclusiveLeft?s.from<=t:s.from<t);(n||(n=[])).push(new lo(l,p?null:s.from-t,s.to==null?null:s.to-t))}}return n}function Vi(e,t){if(t.full)return null;var i=en(e,t.from.line)&&Rt(e,t.from.line).markedSpans,n=en(e,t.to.line)&&Rt(e,t.to.line).markedSpans;if(!i&&!n)return null;var o=t.from.ch,s=t.to.ch,l=Nt(t.from,t.to)==0,f=lr(i,o,l),p=Qo(n,s,l),y=t.text.length==1,F=nt(t.text).length+(y?o:0);if(f)for(var J=0;J<f.length;++J){var ye=f[J];if(ye.to==null){var fe=qi(p,ye.marker);fe?y&&(ye.to=fe.to==null?null:fe.to+F):ye.to=o}}if(p)for(var Be=0;Be<p.length;++Be){var Ze=p[Be];if(Ze.to!=null&&(Ze.to+=F),Ze.from==null){var lt=qi(f,Ze.marker);lt||(Ze.from=F,y&&(f||(f=[])).push(Ze))}else Ze.from+=F,y&&(f||(f=[])).push(Ze)}f&&(f=li(f)),p&&p!=f&&(p=li(p));var vt=[f];if(!y){var Mt=t.text.length-2,yt;if(Mt>0&&f)for(var Pt=0;Pt<f.length;++Pt)f[Pt].to==null&&(yt||(yt=[])).push(new lo(f[Pt].marker,null,null));for(var Yt=0;Yt<Mt;++Yt)vt.push(yt);vt.push(p)}return vt}function li(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Oo(e,t,i){var n=null;if(e.iter(t.line,i.line+1,function(fe){if(fe.markedSpans)for(var Be=0;Be<fe.markedSpans.length;++Be){var Ze=fe.markedSpans[Be].marker;Ze.readOnly&&(!n||Re(n,Ze)==-1)&&(n||(n=[])).push(Ze)}}),!n)return null;for(var o=[{from:t,to:i}],s=0;s<n.length;++s)for(var l=n[s],f=l.find(0),p=0;p<o.length;++p){var y=o[p];if(Nt(y.to,f.from)<0||Nt(y.from,f.to)>0)continue;var F=[p,1],J=Nt(y.from,f.from),ye=Nt(y.to,f.to);(J<0||!l.inclusiveLeft&&!J)&&F.push({from:y.from,to:f.from}),(ye>0||!l.inclusiveRight&&!ye)&&F.push({from:f.to,to:y.to}),o.splice.apply(o,F),p+=F.length-3}return o}function Uo(e){var t=e.markedSpans;if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}function Jo(e,t){if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}function ei(e){return e.inclusiveLeft?-1:0}function Mn(e){return e.inclusiveRight?1:0}function ri(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var n=e.find(),o=t.find(),s=Nt(n.from,o.from)||ei(e)-ei(t);if(s)return-s;var l=Nt(n.to,o.to)||Mn(e)-Mn(t);return l||t.id-e.id}function kn(e,t){var i=wi&&e.markedSpans,n;if(i)for(var o=void 0,s=0;s<i.length;++s)o=i[s],o.marker.collapsed&&(t?o.from:o.to)==null&&(!n||ri(n,o.marker)<0)&&(n=o.marker);return n}function yi(e){return kn(e,!0)}function Un(e){return kn(e,!1)}function Co(e,t){var i=wi&&e.markedSpans,n;if(i)for(var o=0;o<i.length;++o){var s=i[o];s.marker.collapsed&&(s.from==null||s.from<t)&&(s.to==null||s.to>t)&&(!n||ri(n,s.marker)<0)&&(n=s.marker)}return n}function fi(e,t,i,n,o){var s=Rt(e,t),l=wi&&s.markedSpans;if(l)for(var f=0;f<l.length;++f){var p=l[f];if(!p.marker.collapsed)continue;var y=p.marker.find(0),F=Nt(y.from,i)||ei(p.marker)-ei(o),J=Nt(y.to,n)||Mn(p.marker)-Mn(o);if(F>=0&&J<=0||F<=0&&J>=0)continue;if(F<=0&&(p.marker.inclusiveRight&&o.inclusiveLeft?Nt(y.to,i)>=0:Nt(y.to,i)>0)||F>=0&&(p.marker.inclusiveRight&&o.inclusiveLeft?Nt(y.from,n)<=0:Nt(y.from,n)<0))return!0}}function ui(e){for(var t;t=yi(e);)e=t.find(-1,!0).line;return e}function vo(e){for(var t;t=Un(e);)e=t.find(1,!0).line;return e}function To(e){for(var t,i;t=Un(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function uo(e,t){var i=Rt(e,t),n=ui(i);return i==n?t:Jt(n)}function Eo(e,t){if(t>e.lastLine())return t;var i=Rt(e,t),n;if(!Ki(e,i))return t;for(;n=Un(i);)i=n.find(1,!0).line;return Jt(i)+1}function Ki(e,t){var i=wi&&t.markedSpans;if(i)for(var n=void 0,o=0;o<i.length;++o){if(n=i[o],!n.marker.collapsed)continue;if(n.from==null)return!0;if(n.marker.widgetNode)continue;if(n.from==0&&n.marker.inclusiveLeft&&Xo(e,t,n))return!0}}function Xo(e,t,i){if(i.to==null){var n=i.marker.find(1,!0);return Xo(e,n.line,qi(n.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var o=void 0,s=0;s<t.markedSpans.length;++s)if(o=t.markedSpans[s],o.marker.collapsed&&!o.marker.widgetNode&&o.from==i.to&&(o.to==null||o.to!=i.from)&&(o.marker.inclusiveLeft||i.marker.inclusiveRight)&&Xo(e,t,o))return!0}function Wi(e){e=ui(e);for(var t=0,i=e.parent,n=0;n<i.lines.length;++n){var o=i.lines[n];if(o==e)break;t+=o.height}for(var s=i.parent;s;i=s,s=i.parent)for(var l=0;l<s.children.length;++l){var f=s.children[l];if(f==i)break;t+=f.height}return t}function Yo(e){if(e.height==0)return 0;for(var t=e.text.length,i,n=e;i=yi(n);){var o=i.find(0,!0);n=o.from.line,t+=o.from.ch-o.to.ch}for(n=e;i=Un(n);){var s=i.find(0,!0);t-=n.text.length-s.from.ch,n=s.to.line,t+=n.text.length-s.to.ch}return t}function yo(e){var t=e.display,i=e.doc;t.maxLine=Rt(i,i.first),t.maxLineLength=Yo(t.maxLine),t.maxLineChanged=!0,i.iter(function(n){var o=Yo(n);o>t.maxLineLength&&(t.maxLineLength=o,t.maxLine=n)})}var Ro=function(e,t,i){this.text=e,Jo(this,t),this.height=i?i(this):1};Ro.prototype.lineNo=function(){return Jt(this)},ee(Ro);function Wr(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Uo(e),Jo(e,i);var o=n?n(e):1;o!=e.height&&Nn(e,o)}function yr(e){e.parent=null,Uo(e)}var ya={},br={};function zr(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?br:ya;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Cr(e,t){var i=xe("span",null,null,W?"padding-right: .1px":null),n={pre:xe("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var s=o?t.rest[o-1]:t.line,l=void 0;n.pos=0,n.addToken=qt,Ot(e.display.measure)&&(l=ct(s,e.doc.direction))&&(n.addToken=gn(n.addToken,l)),n.map=[];var f=t!=e.display.externalMeasured&&Jt(s);Dn(s,n,Ge(e,s,f)),s.styleClasses&&(s.styleClasses.bgClass&&(n.bgClass=G(s.styleClasses.bgClass,n.bgClass||"")),s.styleClasses.textClass&&(n.textClass=G(s.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(zt(e.display.measure))),o==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(W){var p=n.content.lastChild;(/\bcm-tab\b/.test(p.className)||p.querySelector&&p.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Le(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=G(n.pre.className,n.textClass||"")),n}function jt(e){var t=B("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function qt(e,t,i,n,o,s,l){if(!t)return;var f=e.splitSpaces?Ht(t,e.trailingSpace):t,p=e.cm.state.specialChars,y=!1,F;if(!p.test(t))e.col+=t.length,F=document.createTextNode(f),e.map.push(e.pos,e.pos+t.length,F),w&&R<9&&(y=!0),e.pos+=t.length;else{F=document.createDocumentFragment();for(var J=0;;){p.lastIndex=J;var ye=p.exec(t),fe=ye?ye.index-J:t.length-J;if(fe){var Be=document.createTextNode(f.slice(J,J+fe));w&&R<9?F.appendChild(B("span",[Be])):F.appendChild(Be),e.map.push(e.pos,e.pos+fe,Be),e.col+=fe,e.pos+=fe}if(!ye)break;J+=fe+1;var Ze=void 0;if(ye[0]==" "){var lt=e.cm.options.tabSize,vt=lt-e.col%lt;Ze=F.appendChild(B("span",P(vt),"cm-tab")),Ze.setAttribute("role","presentation"),Ze.setAttribute("cm-text"," "),e.col+=vt}else ye[0]=="\r"||ye[0]==`
|
|
`?(Ze=F.appendChild(B("span",ye[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ze.setAttribute("cm-text",ye[0]),e.col+=1):(Ze=e.cm.options.specialCharPlaceholder(ye[0]),Ze.setAttribute("cm-text",ye[0]),w&&R<9?F.appendChild(B("span",[Ze])):F.appendChild(Ze),e.col+=1);e.map.push(e.pos,e.pos+1,Ze),e.pos++}}if(e.trailingSpace=f.charCodeAt(t.length-1)==32,i||n||o||y||s||l){var Mt=i||"";n&&(Mt+=n),o&&(Mt+=o);var yt=B("span",[F],Mt,s);if(l)for(var Pt in l)l.hasOwnProperty(Pt)&&Pt!="style"&&Pt!="class"&&yt.setAttribute(Pt,l[Pt]);return e.content.appendChild(yt)}e.content.appendChild(F)}function Ht(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",o=0;o<e.length;o++){var s=e.charAt(o);s==" "&&i&&(o==e.length-1||e.charCodeAt(o+1)==32)&&(s="\xA0"),n+=s,i=s==" "}return n}function gn(e,t){return function(i,n,o,s,l,f,p){o=o?o+" cm-force-border":"cm-force-border";for(var y=i.pos,F=y+n.length;;){for(var J=void 0,ye=0;ye<t.length&&!(J=t[ye],J.to>y&&J.from<=y);ye++);if(J.to>=F)return e(i,n,o,s,l,f,p);e(i,n.slice(0,J.to-y),o,s,null,f,p),s=null,n=n.slice(J.to-y),y=J.to}}}function An(e,t,i,n){var o=!n&&i.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!n&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",i.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function Dn(e,t,i){var n=e.markedSpans,o=e.text,s=0;if(!n){for(var l=1;l<i.length;l+=2)t.addToken(t,o.slice(s,s=i[l]),zr(i[l+1],t.cm.options));return}for(var f=o.length,p=0,y=1,F="",J,ye,fe=0,Be,Ze,lt,vt,Mt;;){if(fe==p){Be=Ze=lt=ye="",Mt=null,vt=null,fe=Infinity;for(var yt=[],Pt=void 0,Yt=0;Yt<n.length;++Yt){var Vt=n[Yt],dn=Vt.marker;if(dn.type=="bookmark"&&Vt.from==p&&dn.widgetNode)yt.push(dn);else if(Vt.from<=p&&(Vt.to==null||Vt.to>p||dn.collapsed&&Vt.to==p&&Vt.from==p)){if(Vt.to!=null&&Vt.to!=p&&fe>Vt.to&&(fe=Vt.to,Ze=""),dn.className&&(Be+=" "+dn.className),dn.css&&(ye=(ye?ye+";":"")+dn.css),dn.startStyle&&Vt.from==p&&(lt+=" "+dn.startStyle),dn.endStyle&&Vt.to==fe&&(Pt||(Pt=[])).push(dn.endStyle,Vt.to),dn.title&&((Mt||(Mt={})).title=dn.title),dn.attributes)for(var Vn in dn.attributes)(Mt||(Mt={}))[Vn]=dn.attributes[Vn];dn.collapsed&&(!vt||ri(vt.marker,dn)<0)&&(vt=Vt)}else Vt.from>p&&fe>Vt.from&&(fe=Vt.from)}if(Pt)for(var Ni=0;Ni<Pt.length;Ni+=2)Pt[Ni+1]==fe&&(Ze+=" "+Pt[Ni]);if(!vt||vt.from==p)for(var ai=0;ai<yt.length;++ai)An(t,0,yt[ai]);if(vt&&(vt.from||0)==p){if(An(t,(vt.to==null?f+1:vt.to)-p,vt.marker,vt.from==null),vt.to==null)return;vt.to==p&&(vt=!1)}}if(p>=f)break;for(var ro=Math.min(f,fe);;){if(F){var no=p+F.length;if(!vt){var Ei=no>ro?F.slice(0,ro-p):F;t.addToken(t,Ei,J?J+Be:Be,lt,p+Ei.length==fe?Ze:"",ye,Mt)}if(no>=ro){F=F.slice(ro-p),p=ro;break}p=no,lt=""}F=o.slice(s,s=i[y++]),J=zr(i[y++],t.cm.options)}}}function bn(e,t,i){this.line=t,this.rest=To(t),this.size=this.rest?Jt(nt(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Ki(e,t)}function Xn(e,t,i){for(var n=[],o,s=t;s<i;s=o){var l=new bn(e.doc,Rt(e.doc,s),s);o=s+l.size,n.push(l)}return n}var bi=null;function hn(e){bi?bi.ops.push(e):e.ownsGroup=bi={ops:[e],delayedCallbacks:[]}}function xo(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].call(null);for(var n=0;n<e.ops.length;n++){var o=e.ops[n];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(i<t.length)}function Pn(e,t){var i=e.ownsGroup;if(!i)return;try{xo(i)}finally{bi=null,t(i)}}var Ci=null;function Tn(e,t){var i=Dt(e,t);if(!i.length)return;var n=Array.prototype.slice.call(arguments,2),o;bi?o=bi.delayedCallbacks:Ci?o=Ci:(o=Ci=[],setTimeout(eo,0));for(var s=function(f){o.push(function(){return i[f].apply(null,n)})},l=0;l<i.length;++l)s(l)}function eo(){var e=Ci;Ci=null;for(var t=0;t<e.length;++t)e[t]()}function ur(e,t,i,n){for(var o=0;o<t.changes.length;o++){var s=t.changes[o];s=="text"?ba(e,t):s=="gutter"?Vr(e,t,i,n):s=="class"?Gr(e,t):s=="widget"&&Va(e,t,n)}t.changes=null}function cr(e){return e.node==e.text&&(e.node=B("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),w&&R<8&&(e.node.style.zIndex=2)),e.node}function Ga(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var n=cr(t);t.background=n.insertBefore(B("div",null,i),n.firstChild),e.display.input.setUneditable(t.background)}}function Hr(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Cr(e,t)}function ba(e,t){var i=t.text.className,n=Hr(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,Gr(e,t)):i&&(t.text.className=i)}function Gr(e,t){Ga(e,t),t.line.wrapClass?cr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function Vr(e,t,i,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=cr(t);t.gutterBackground=B("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var s=t.line.gutterMarkers;if(e.options.lineNumbers||s){var l=cr(t),f=t.gutter=B("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(f),l.insertBefore(f,t.text),t.line.gutterClass&&(f.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!s||!s["CodeMirror-linenumbers"])&&(t.lineNumber=f.appendChild(B("div",yn(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),s)for(var p=0;p<e.display.gutterSpecs.length;++p){var y=e.display.gutterSpecs[p].className,F=s.hasOwnProperty(y)&&s[y];F&&f.appendChild(B("div",[F],"CodeMirror-gutter-elt","left: "+n.gutterLeft[y]+"px; width: "+n.gutterWidth[y]+"px"))}}}function Va(e,t,i){t.alignable&&(t.alignable=null);for(var n=Ee("CodeMirror-linewidget"),o=t.node.firstChild,s=void 0;o;o=s)s=o.nextSibling,n.test(o.className)&&t.node.removeChild(o);Kr(e,t,i)}function Ca(e,t,i,n){var o=Hr(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),Gr(e,t),Vr(e,t,i,n),Kr(e,t,n),t.node}function Kr(e,t,i){if(Ea(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)Ea(e,t.rest[n],t,i,!1)}function Ea(e,t,i,n,o){if(!t.widgets)return;for(var s=cr(i),l=0,f=t.widgets;l<f.length;++l){var p=f[l],y=B("div",[p.node],"CodeMirror-linewidget"+(p.className?" "+p.className:""));p.handleMouseEvents||y.setAttribute("cm-ignore-events","true"),Ka(p,y,i,n),e.display.input.setUneditable(y),o&&p.above?s.insertBefore(y,i.gutter||i.text):s.appendChild(y),Tn(p,"redraw")}}function Ka(e,t,i,n){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var o=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(o-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function Zo(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!S(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),be(t.display.measure,B("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function wo(e,t){for(var i=ge(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function Qr(e){return e.lineSpace.offsetTop}function N(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function $(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=be(e.measure,B("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function oe(e){return qe-e.display.nativeBarWidth}function U(e){return e.display.scroller.clientWidth-oe(e)-e.display.barWidth}function g(e){return e.display.scroller.clientHeight-oe(e)-e.display.barHeight}function k(e,t,i){var n=e.options.lineWrapping,o=n&&U(e);if(!t.measure.heights||n&&t.measure.width!=o){var s=t.measure.heights=[];if(n){t.measure.width=o;for(var l=t.text.firstChild.getClientRects(),f=0;f<l.length-1;f++){var p=l[f],y=l[f+1];Math.abs(p.bottom-y.bottom)>2&&s.push((p.bottom+y.top)/2-i.top)}}s.push(i.bottom-i.top)}}function b(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var o=0;o<e.rest.length;o++)if(Jt(e.rest[o])>i)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function z(e,t){t=ui(t);var i=Jt(t),n=e.display.externalMeasured=new bn(e.doc,t,i);n.lineN=i;var o=n.built=Cr(e,n);return n.text=o.pre,be(e.display.lineMeasure,o.pre),n}function H(e,t,i,n){return pe(e,te(e,t),i,n)}function ae(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Gn(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function te(e,t){var i=Jt(t),n=ae(e,i);n&&!n.text?n=null:n&&n.changes&&(ur(e,n,i,ti(e)),e.curOp.forceUpdate=!0),n||(n=z(e,t));var o=b(n,t,i);return{line:t,view:n,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function pe(e,t,i,n,o){t.before&&(i=-1);var s=i+(n||""),l;return t.cache.hasOwnProperty(s)?l=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(k(e,t.view,t.rect),t.hasHeights=!0),l=mt(e,t,i,n),l.bogus||(t.cache[s]=l)),{left:l.left,right:l.right,top:o?l.rtop:l.top,bottom:o?l.rbottom:l.bottom}}var Ie={left:0,right:0,top:0,bottom:0};function it(e,t,i){for(var n,o,s,l,f,p,y=0;y<e.length;y+=3)if(f=e[y],p=e[y+1],t<f?(o=0,s=1,l="left"):t<p?(o=t-f,s=o+1):(y==e.length-3||t==p&&e[y+3]>t)&&(s=p-f,o=s-1,t>=p&&(l="right")),o!=null){if(n=e[y+2],f==p&&i==(n.insertLeft?"left":"right")&&(l=i),i=="left"&&o==0)for(;y&&e[y-2]==e[y-3]&&e[y-1].insertLeft;)n=e[(y-=3)+2],l="left";if(i=="right"&&o==p-f)for(;y<e.length-3&&e[y+3]==e[y+4]&&!e[y+5].insertLeft;)n=e[(y+=3)+2],l="right";break}return{node:n,start:o,end:s,collapse:l,coverStart:f,coverEnd:p}}function tt(e,t){var i=Ie;if(t=="left")for(var n=0;n<e.length&&!((i=e[n]).left!=i.right);n++);else for(var o=e.length-1;o>=0&&!((i=e[o]).left!=i.right);o--);return i}function mt(e,t,i,n){var o=it(t.map,i,n),s=o.node,l=o.start,f=o.end,p=o.collapse,y;if(s.nodeType==3){for(var F=0;F<4;F++){for(;l&&Ke(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+f<o.coverEnd&&Ke(t.line.text.charAt(o.coverStart+f));)++f;if(w&&R<9&&l==0&&f==o.coverEnd-o.coverStart?y=s.parentNode.getBoundingClientRect():y=tt(me(s,l,f).getClientRects(),n),y.left||y.right||l==0)break;f=l,l=l-1,p="right"}w&&R<11&&(y=Xt(e.display.measure,y))}else{l>0&&(p=n="right");var J;e.options.lineWrapping&&(J=s.getClientRects()).length>1?y=J[n=="right"?J.length-1:0]:y=s.getBoundingClientRect()}if(w&&R<9&&!l&&(!y||!y.left&&!y.right)){var ye=s.parentNode.getClientRects()[0];ye?y={left:ye.left,right:ye.left+Si(e.display),top:ye.top,bottom:ye.bottom}:y=Ie}for(var fe=y.top-t.rect.top,Be=y.bottom-t.rect.top,Ze=(fe+Be)/2,lt=t.view.measure.heights,vt=0;vt<lt.length-1&&!(Ze<lt[vt]);vt++);var Mt=vt?lt[vt-1]:0,yt=lt[vt],Pt={left:(p=="right"?y.right:y.left)-t.rect.left,right:(p=="left"?y.left:y.right)-t.rect.left,top:Mt,bottom:yt};return!y.left&&!y.right&&(Pt.bogus=!0),e.options.singleCursorHeightPerLine||(Pt.rtop=fe,Pt.rbottom=Be),Pt}function Xt(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!at(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*n,bottom:t.bottom*n}}function sn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function tn(e){e.display.externalMeasure=null,Ne(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)sn(e.display.view[t])}function on(e){tn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ln(){return L&&_?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function an(){return L&&_?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function rn(e){var t=0;if(e.widgets)for(var i=0;i<e.widgets.length;++i)e.widgets[i].above&&(t+=Zo(e.widgets[i]));return t}function En(e,t,i,n,o){if(!o){var s=rn(t);i.top+=s,i.bottom+=s}if(n=="line")return i;n||(n="local");var l=Wi(t);if(n=="local"?l+=Qr(e.display):l-=e.display.viewOffset,n=="page"||n=="window"){var f=e.display.lineSpace.getBoundingClientRect();l+=f.top+(n=="window"?0:an());var p=f.left+(n=="window"?0:ln());i.left+=p,i.right+=p}return i.top+=l,i.bottom+=l,i}function fn(e,t,i){if(i=="div")return t;var n=t.left,o=t.top;if(i=="page")n-=ln(),o-=an();else if(i=="local"||!i){var s=e.display.sizer.getBoundingClientRect();n+=s.left,o+=s.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:n-l.left,top:o-l.top}}function Zn(e,t,i,n,o){return n||(n=Rt(e.doc,t.line)),En(e,n,H(e,n,t.ch,o),i)}function pn(e,t,i,n,o,s){n=n||Rt(e.doc,t.line),o||(o=te(e,n));function l(Be,Ze){var lt=pe(e,o,Be,Ze?"right":"left",s);return Ze?lt.left=lt.right:lt.right=lt.left,En(e,n,lt,i)}var f=ct(n,e.doc.direction),p=t.ch,y=t.sticky;if(p>=n.text.length?(p=n.text.length,y="before"):p<=0&&(p=0,y="after"),!f)return l(y=="before"?p-1:p,y=="before");function F(Be,Ze,lt){var vt=f[Ze],Mt=vt.level==1;return l(lt?Be-1:Be,Mt!=lt)}var J=st(f,p,y),ye=ut,fe=F(p,J,y=="before");return ye!=null&&(fe.other=F(p,ye,y!="before")),fe}function Qt(e,t){var i=0;t=r(e.doc,t),e.options.lineWrapping||(i=Si(e.display)*t.ch);var n=Rt(e.doc,t.line),o=Wi(n)+Qr(e.display);return{left:i,right:i,top:o,bottom:o+n.height}}function Gt(e,t,i,n,o){var s=je(e,t,i);return s.xRel=o,n&&(s.outside=n),s}function vn(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return Gt(n.first,0,null,-1,-1);var o=wn(n,i),s=n.first+n.size-1;if(o>s)return Gt(n.first+n.size-1,Rt(n,s).text.length,null,1,1);t<0&&(t=0);for(var l=Rt(n,o);;){var f=qn(e,l,o,t,i),p=Co(l,f.ch+(f.xRel>0||f.outside>0?1:0));if(!p)return f;var y=p.find(1);if(y.line==o)return y;l=Rt(n,o=y.line)}}function xn(e,t,i,n){n-=rn(t);var o=t.text.length,s=Ft(function(l){return pe(e,i,l-1).bottom<=n},o,0);return o=Ft(function(l){return pe(e,i,l).top>n},s,o),{begin:s,end:o}}function Bt(e,t,i,n){i||(i=te(e,t));var o=En(e,t,pe(e,i,n),"line").top;return xn(e,t,i,o)}function Sn(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function qn(e,t,i,n,o){o-=Wi(t);var s=te(e,t),l=rn(t),f=0,p=t.text.length,y=!0,F=ct(t,e.doc.direction);if(F){var J=(e.options.lineWrapping?Fn:On)(e,t,i,s,F,n,o);y=J.level!=1,f=y?J.from:J.to-1,p=y?J.to:J.from-1}var ye=null,fe=null,Be=Ft(function(Yt){var Vt=pe(e,s,Yt);return Vt.top+=l,Vt.bottom+=l,Sn(Vt,n,o,!1)?(Vt.top<=o&&Vt.left<=n&&(ye=Yt,fe=Vt),!0):!1},f,p),Ze,lt,vt=!1;if(fe){var Mt=n-fe.left<fe.right-n,yt=Mt==y;Be=ye+(yt?0:1),lt=yt?"after":"before",Ze=Mt?fe.left:fe.right}else{!y&&(Be==p||Be==f)&&Be++,lt=Be==0?"after":Be==t.text.length?"before":pe(e,s,Be-(y?1:0)).bottom+l<=o==y?"after":"before";var Pt=pn(e,je(i,Be,lt),"line",t,s);Ze=Pt.left,vt=o<Pt.top?-1:o>=Pt.bottom?1:0}return Be=ot(t.text,Be,1),Gt(i,Be,lt,vt,n-Ze)}function On(e,t,i,n,o,s,l){var f=Ft(function(J){var ye=o[J],fe=ye.level!=1;return Sn(pn(e,je(i,fe?ye.to:ye.from,fe?"before":"after"),"line",t,n),s,l,!0)},0,o.length-1),p=o[f];if(f>0){var y=p.level!=1,F=pn(e,je(i,y?p.from:p.to,y?"after":"before"),"line",t,n);Sn(F,s,l,!0)&&F.top>l&&(p=o[f-1])}return p}function Fn(e,t,i,n,o,s,l){var f=xn(e,t,n,l),p=f.begin,y=f.end;/\s/.test(t.text.charAt(y-1))&&y--;for(var F=null,J=null,ye=0;ye<o.length;ye++){var fe=o[ye];if(fe.from>=y||fe.to<=p)continue;var Be=fe.level!=1,Ze=pe(e,n,Be?Math.min(y,fe.to)-1:Math.max(p,fe.from)).right,lt=Ze<s?s-Ze+1e9:Ze-s;(!F||J>lt)&&(F=fe,J=lt)}return F||(F=o[o.length-1]),F.from<p&&(F={from:p,to:F.to,level:F.level}),F.to>y&&(F={from:F.from,to:y,level:F.level}),F}var jn;function ci(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(jn==null){jn=B("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)jn.appendChild(document.createTextNode("x")),jn.appendChild(B("br"));jn.appendChild(document.createTextNode("x"))}be(e.measure,jn);var i=jn.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Ne(e.measure),i||1}function Si(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=B("span","xxxxxxxxxx"),i=B("pre",[t],"CodeMirror-line-like");be(e.measure,i);var n=t.getBoundingClientRect(),o=(n.right-n.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function ti(e){for(var t=e.display,i={},n={},o=t.gutters.clientLeft,s=t.gutters.firstChild,l=0;s;s=s.nextSibling,++l){var f=e.display.gutterSpecs[l].className;i[f]=s.offsetLeft+s.clientLeft+o,n[f]=s.clientWidth}return{fixedPos:zi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function zi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function co(e){var t=ci(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Si(e.display)-3);return function(o){if(Ki(e.doc,o))return 0;var s=0;if(o.widgets)for(var l=0;l<o.widgets.length;l++)o.widgets[l].height&&(s+=o.widgets[l].height);return i?s+(Math.ceil(o.text.length/n)||1)*t:s+t}}function Qi(e){var t=e.doc,i=co(e);t.iter(function(n){var o=i(n);o!=n.height&&Nn(n,o)})}function ki(e,t,i,n){var o=e.display;if(!i&&ge(t).getAttribute("cm-not-content")=="true")return null;var s,l,f=o.lineSpace.getBoundingClientRect();try{s=t.clientX-f.left,l=t.clientY-f.top}catch(J){return null}var p=vn(e,s,l),y;if(n&&p.xRel>0&&(y=Rt(e.doc,p.line).text).length==p.ch){var F=ce(y,y.length,e.options.tabSize)-y.length;p=je(p.line,Math.max(0,Math.round((s-$(e.display).left)/Si(e.display))-F))}return p}function Gn(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,n=0;n<i.length;n++)if(t-=i[n].size,t<0)return n}function Wn(e,t,i,n){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),n||(n=0);var o=e.display;if(n&&i<o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)wi&&uo(e.doc,t)<o.viewTo&&$n(e);else if(i<=o.viewFrom)wi&&Eo(e.doc,i+n)>o.viewFrom?$n(e):(o.viewFrom+=n,o.viewTo+=n);else if(t<=o.viewFrom&&i>=o.viewTo)$n(e);else if(t<=o.viewFrom){var s=ho(e,i,i+n,1);s?(o.view=o.view.slice(s.index),o.viewFrom=s.lineN,o.viewTo+=n):$n(e)}else if(i>=o.viewTo){var l=ho(e,t,t,-1);l?(o.view=o.view.slice(0,l.index),o.viewTo=l.lineN):$n(e)}else{var f=ho(e,t,t,-1),p=ho(e,i,i+n,1);f&&p?(o.view=o.view.slice(0,f.index).concat(Xn(e,f.lineN,p.lineN)).concat(o.view.slice(p.index)),o.viewTo+=n):$n(e)}var y=o.externalMeasured;y&&(i<y.lineN?y.lineN+=n:t<y.lineN+y.size&&(o.externalMeasured=null))}function ni(e,t,i){e.curOp.viewChanged=!0;var n=e.display,o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size&&(n.externalMeasured=null),t<n.viewFrom||t>=n.viewTo)return;var s=n.view[Gn(e,t)];if(s.node==null)return;var l=s.changes||(s.changes=[]);Re(l,i)==-1&&l.push(i)}function $n(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ho(e,t,i,n){var o=Gn(e,t),s,l=e.display.view;if(!wi||i==e.doc.first+e.doc.size)return{index:o,lineN:i};for(var f=e.display.viewFrom,p=0;p<o;p++)f+=l[p].size;if(f!=t){if(n>0){if(o==l.length-1)return null;s=f+l[o].size-t,o++}else s=f-t;t+=s,i+=s}for(;uo(e.doc,i)!=i;){if(o==(n<0?0:l.length-1))return null;i+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:i}}function Do(e,t,i){var n=e.display,o=n.view;o.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=Xn(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=Xn(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Gn(e,t))),n.viewFrom=t,n.viewTo<i?n.view=n.view.concat(Xn(e,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,Gn(e,i)))),n.viewTo=i}function Lo(e){for(var t=e.display.view,i=0,n=0;n<t.length;n++){var o=t[n];!o.hidden&&(!o.node||o.changes)&&++i}return i}function Bn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function bo(e,t){t===void 0&&(t=!0);for(var i=e.doc,n={},o=n.cursors=document.createDocumentFragment(),s=n.selection=document.createDocumentFragment(),l=0;l<i.sel.ranges.length;l++){if(!t&&l==i.sel.primIndex)continue;var f=i.sel.ranges[l];if(f.from().line>=e.display.viewTo||f.to().line<e.display.viewFrom)continue;var p=f.empty();(p||e.options.showCursorWhenSelecting)&&Io(e,f.head,o),p||_n(e,f,s)}return n}function Io(e,t,i){var n=pn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=i.appendChild(B("div","\xA0","CodeMirror-cursor"));if(o.style.left=n.left+"px",o.style.top=n.top+"px",o.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var s=i.appendChild(B("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=n.other.left+"px",s.style.top=n.other.top+"px",s.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function Hn(e,t){return e.top-t.top||e.left-t.left}function _n(e,t,i){var n=e.display,o=e.doc,s=document.createDocumentFragment(),l=$(e.display),f=l.left,p=Math.max(n.sizerWidth,U(e)-n.sizer.offsetLeft)-l.right,y=o.direction=="ltr";function F(yt,Pt,Yt,Vt){Pt<0&&(Pt=0),Pt=Math.round(Pt),Vt=Math.round(Vt),s.appendChild(B("div",null,"CodeMirror-selected","position: absolute; left: "+yt+`px;
|
|
top: `+Pt+"px; width: "+(Yt==null?p-yt:Yt)+`px;
|
|
height: `+(Vt-Pt)+"px"))}function J(yt,Pt,Yt){var Vt=Rt(o,yt),dn=Vt.text.length,Vn,Ni;function ai(Ei,io){return Zn(e,je(yt,Ei),"div",Vt,io)}function ro(Ei,io,Fi){var Ri=Bt(e,Vt,null,Ei),xi=io=="ltr"==(Fi=="after")?"left":"right",di=Fi=="after"?Ri.begin:Ri.end-(/\s/.test(Vt.text.charAt(Ri.end-1))?2:1);return ai(di,xi)[xi]}var no=ct(Vt,o.direction);return bt(no,Pt||0,Yt==null?dn:Yt,function(Ei,io,Fi,Ri){var xi=Fi=="ltr",di=ai(Ei,xi?"left":"right"),oo=ai(io-1,xi?"right":"left"),Ur=Pt==null&&Ei==0,sr=Yt==null&&io==dn,Gi=Ri==0,Bo=!no||Ri==no.length-1;if(oo.top-di.top<=3){var Pi=(y?Ur:sr)&&Gi,ps=(y?sr:Ur)&&Bo,Ko=Pi?f:(xi?di:oo).left,gr=ps?p:(xi?oo:di).right;F(Ko,di.top,gr-Ko,di.bottom)}else{var vr,Zi,Fr,ms;xi?(vr=y&&Ur&&Gi?f:di.left,Zi=y?p:ro(Ei,Fi,"before"),Fr=y?f:ro(io,Fi,"after"),ms=y&&sr&&Bo?p:oo.right):(vr=y?ro(Ei,Fi,"before"):f,Zi=!y&&Ur&&Gi?p:di.right,Fr=!y&&sr&&Bo?f:oo.left,ms=y?ro(io,Fi,"after"):p),F(vr,di.top,Zi-vr,di.bottom),di.bottom<oo.top&&F(f,di.bottom,null,oo.top),F(Fr,oo.top,ms-Fr,oo.bottom)}(!Vn||Hn(di,Vn)<0)&&(Vn=di),Hn(oo,Vn)<0&&(Vn=oo),(!Ni||Hn(di,Ni)<0)&&(Ni=di),Hn(oo,Ni)<0&&(Ni=oo)}),{start:Vn,end:Ni}}var ye=t.from(),fe=t.to();if(ye.line==fe.line)J(ye.line,ye.ch,fe.ch);else{var Be=Rt(o,ye.line),Ze=Rt(o,fe.line),lt=ui(Be)==ui(Ze),vt=J(ye.line,ye.ch,lt?Be.text.length+1:null).end,Mt=J(fe.line,lt?0:null,fe.ch).start;lt&&(vt.top<Mt.top-2?(F(vt.right,vt.top,null,vt.bottom),F(f,Mt.top,Mt.left,Mt.bottom)):F(vt.right,vt.top,Mt.left-vt.right,vt.bottom)),vt.bottom<Mt.top&&F(f,vt.bottom,null,Mt.top)}i.appendChild(s)}function Mi(e){if(!e.state.focused)return;var t=e.display;clearInterval(t.blinker);var i=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||qo(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function xa(e){e.state.focused||(e.display.input.focus(),No(e))}function Jr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,qo(e))},100)}function No(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Le(e,"focus",e,t),e.state.focused=!0,ue(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),W&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Mi(e)}function qo(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(Le(e,"blur",e,t),e.state.focused=!1,Ce(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Er(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var o=t.view[n],s=e.options.lineWrapping,l=void 0,f=0;if(o.hidden)continue;if(w&&R<8){var p=o.node.offsetTop+o.node.offsetHeight;l=p-i,i=p}else{var y=o.node.getBoundingClientRect();l=y.bottom-y.top,!s&&o.text.firstChild&&(f=o.text.firstChild.getBoundingClientRect().right-y.left-1)}var F=o.line.height-l;if((F>.005||F<-.005)&&(Nn(o.line,l),Xr(o.line),o.rest))for(var J=0;J<o.rest.length;J++)Xr(o.rest[J]);if(f>e.display.sizerWidth){var ye=Math.ceil(f/Si(e.display));ye>e.display.maxLineLength&&(e.display.maxLineLength=ye,e.display.maxLine=o.line,e.display.maxLineChanged=!0)}}}function Xr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var i=e.widgets[t],n=i.node.parentNode;n&&(i.height=n.offsetHeight)}}function xr(e,t,i){var n=i&&i.top!=null?Math.max(0,i.top):e.scroller.scrollTop;n=Math.floor(n-Qr(e));var o=i&&i.bottom!=null?i.bottom:n+e.wrapper.clientHeight,s=wn(t,n),l=wn(t,o);if(i&&i.ensure){var f=i.ensure.from.line,p=i.ensure.to.line;f<s?(s=f,l=wn(t,Wi(Rt(t,f))+e.wrapper.clientHeight)):Math.min(p,t.lastLine())>=l&&(s=wn(t,Wi(Rt(t,p))-e.wrapper.clientHeight),l=p)}return{from:s,to:Math.max(l,s+1)}}function Qa(e,t){if(Xe(e,"scrollCursorIntoView"))return;var i=e.display,n=i.sizer.getBoundingClientRect(),o=null;if(t.top+n.top<0?o=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),o!=null&&!K){var s=B("div","\u200B",null,`position: absolute;
|
|
top: `+(t.top-i.viewOffset-Qr(e.display))+`px;
|
|
height: `+(t.bottom-t.top+oe(e)+i.barHeight)+`px;
|
|
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(s),s.scrollIntoView(o),e.display.lineSpace.removeChild(s)}}function Ja(e,t,i,n){n==null&&(n=0);var o;!e.options.lineWrapping&&t==i&&(t=t.ch?je(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?je(t.line,t.ch+1,"before"):t);for(var s=0;s<5;s++){var l=!1,f=pn(e,t),p=!i||i==t?f:pn(e,i);o={left:Math.min(f.left,p.left),top:Math.min(f.top,p.top)-n,right:Math.max(f.left,p.left),bottom:Math.max(f.bottom,p.bottom)+n};var y=Yr(e,o),F=e.doc.scrollTop,J=e.doc.scrollLeft;if(y.scrollTop!=null&&(tr(e,y.scrollTop),Math.abs(e.doc.scrollTop-F)>1&&(l=!0)),y.scrollLeft!=null&&(fo(e,y.scrollLeft),Math.abs(e.doc.scrollLeft-J)>1&&(l=!0)),!l)break}return o}function wa(e,t){var i=Yr(e,t);i.scrollTop!=null&&tr(e,i.scrollTop),i.scrollLeft!=null&&fo(e,i.scrollLeft)}function Yr(e,t){var i=e.display,n=ci(e.display);t.top<0&&(t.top=0);var o=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,s=g(e),l={};t.bottom-t.top>s&&(t.bottom=t.top+s);var f=e.doc.height+N(i),p=t.top<n,y=t.bottom>f-n;if(t.top<o)l.scrollTop=p?0:t.top;else if(t.bottom>o+s){var F=Math.min(t.top,(y?f:t.bottom)-s);F!=o&&(l.scrollTop=F)}var J=e.options.fixedGutter?0:i.gutters.offsetWidth,ye=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-J,fe=U(e)-i.gutters.offsetWidth,Be=t.right-t.left>fe;return Be&&(t.right=t.left+fe),t.left<10?l.scrollLeft=0:t.left<ye?l.scrollLeft=Math.max(0,t.left+J-(Be?0:10)):t.right>fe+ye-3&&(l.scrollLeft=t.right+(Be?0:10)-fe),l}function Zr(e,t){if(t==null)return;wr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function $o(e){wr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function er(e,t,i){(t!=null||i!=null)&&wr(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Xa(e,t){wr(e),e.curOp.scrollToPos=t}function wr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Qt(e,t.from),n=Qt(e,t.to);dr(e,i,n,t.margin)}}function dr(e,t,i,n){var o=Yr(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});er(e,o.scrollLeft,o.scrollTop)}function tr(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;re||pr(e,{top:t}),nr(e,t,!0),re&&pr(e),fr(e,100)}function nr(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function fo(e,t,i,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Cn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function Fo(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+N(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:n,scrollHeight:n+oe(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var Po=function(e,t,i){this.cm=i;var n=this.vert=B("div",[B("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=B("div",[B("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=o.tabIndex=-1,e(n),e(o),Te(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Te(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,w&&R<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Po.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var o=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var s=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+s)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},Po.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Po.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Po.prototype.zeroWidthHack=function(){var e=le&&!q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ue,this.disableVert=new Ue},Po.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var o=e.getBoundingClientRect(),s=i=="vert"?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1);s!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Po.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var hr=function(){};hr.prototype.update=function(){return{bottom:0,right:0}},hr.prototype.setScrollLeft=function(){},hr.prototype.setScrollTop=function(){},hr.prototype.clear=function(){};function Wo(e,t){t||(t=Fo(e));var i=e.display.barWidth,n=e.display.barHeight;Ar(e,t);for(var o=0;o<4&&i!=e.display.barWidth||n!=e.display.barHeight;o++)i!=e.display.barWidth&&e.options.lineWrapping&&Er(e),Ar(e,Fo(e)),i=e.display.barWidth,n=e.display.barHeight}function Ar(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var qr={native:Po,null:hr};function Sr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Ce(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new qr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Te(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?fo(e,t):tr(e,t)},e),e.display.scrollbars.addClass&&ue(e.display.wrapper,e.display.scrollbars.addClass)}var $r=0;function _o(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++$r},hn(e.curOp)}function zo(e){var t=e.curOp;t&&Pn(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;Aa(i)})}function Aa(e){for(var t=e.ops,i=0;i<t.length;i++)Ya(t[i]);for(var n=0;n<t.length;n++)Za(t[n]);for(var o=0;o<t.length;o++)qa(t[o]);for(var s=0;s<t.length;s++)ea(t[s]);for(var l=0;l<t.length;l++)$a(t[l])}function Ya(e){var t=e.cm,i=t.display;Sa(t),e.updateMaxLine&&yo(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new po(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Za(e){e.updatedDisplay=e.mustUpdate&&Ho(e.cm,e.update)}function qa(e){var t=e.cm,i=t.display;e.updatedDisplay&&Er(t),e.barMeasure=Fo(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=H(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+oe(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-U(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function ea(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&fo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==Q();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Wo(t,e.barMeasure),e.updatedDisplay&&Ln(t,e.barMeasure),e.selectionChanged&&Mi(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&xa(e.cm)}function $a(e){var t=e.cm,i=t.display,n=t.doc;if(e.updatedDisplay&&kr(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&nr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&fo(t,e.scrollLeft,!0,!0),e.scrollToPos){var o=Ja(t,r(n,e.scrollToPos.from),r(n,e.scrollToPos.to),e.scrollToPos.margin);Qa(t,o)}var s=e.maybeHiddenMarkers,l=e.maybeUnhiddenMarkers;if(s)for(var f=0;f<s.length;++f)s[f].lines.length||Le(s[f],"hide");if(l)for(var p=0;p<l.length;++p)l[p].lines.length&&Le(l[p],"unhide");i.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Le(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ji(e,t){if(e.curOp)return t();_o(e);try{return t()}finally{zo(e)}}function pi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);_o(e);try{return t.apply(e,arguments)}finally{zo(e)}}}function Ui(e){return function(){if(this.curOp)return e.apply(this,arguments);_o(this);try{return e.apply(this,arguments)}finally{zo(this)}}}function mi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);_o(t);try{return e.apply(this,arguments)}finally{zo(t)}}}function fr(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,M(es,e))}function es(e){var t=e.doc;if(t.highlightFrontier>=e.display.viewTo)return;var i=+new Date+e.options.workTime,n=ve(e,t.highlightFrontier),o=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(s){if(n.line>=e.display.viewFrom){var l=s.styles,f=s.text.length>e.options.maxHighlightLength?oi(t.mode,n.state):null,p=Y(e,s,n,!0);f&&(n.state=f),s.styles=p.styles;var y=s.styleClasses,F=p.classes;F?s.styleClasses=F:y&&(s.styleClasses=null);for(var J=!l||l.length!=s.styles.length||y!=F&&(!y||!F||y.bgClass!=F.bgClass||y.textClass!=F.textClass),ye=0;!J&&ye<l.length;++ye)J=l[ye]!=s.styles[ye];J&&o.push(n.line),s.stateAfter=n.save(),n.nextLine()}else s.text.length<=e.options.maxHighlightLength&&Lt(e,s.text,n),s.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return fr(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),o.length&&Ji(e,function(){for(var s=0;s<o.length;s++)ni(e,o[s],"text")})}var po=function(e,t,i){var n=e.display;this.viewport=t,this.visible=xr(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=U(e),this.force=i,this.dims=ti(e),this.events=[]};po.prototype.signal=function(e,t){Z(e,t)&&this.events.push(arguments)},po.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Le.apply(null,this.events[e])};function Sa(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=oe(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=oe(e)+"px",t.scrollbarsClipped=!0)}function ka(e){if(e.hasFocus())return null;var t=Q();if(!t||!S(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&S(e.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}function Ma(e){if(!e||!e.activeElt||e.activeElt==Q())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&S(document.body,e.anchorNode)&&S(document.body,e.focusNode)){var t=window.getSelection(),i=document.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),t.removeAllRanges(),t.addRange(i),t.extend(e.focusNode,e.focusOffset)}}function Ho(e,t){var i=e.display,n=e.doc;if(t.editorIsHidden)return $n(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Lo(e)==0)return!1;Oi(e)&&($n(e),t.dims=ti(e));var o=n.first+n.size,s=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(o,t.visible.to+e.options.viewportMargin);i.viewFrom<s&&s-i.viewFrom<20&&(s=Math.max(n.first,i.viewFrom)),i.viewTo>l&&i.viewTo-l<20&&(l=Math.min(o,i.viewTo)),wi&&(s=uo(e.doc,s),l=Eo(e.doc,l));var f=s!=i.viewFrom||l!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Do(e,s,l),i.viewOffset=Wi(Rt(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var p=Lo(e);if(!f&&p==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var y=ka(e);return p>4&&(i.lineDiv.style.display="none"),Oa(e,i.updateLineNumbers,t.dims),p>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,Ma(y),Ne(i.cursorDiv),Ne(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,f&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,fr(e,400)),i.updateLineNumbers=null,!0}function kr(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==U(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+N(e.display)-g(e),i.top)}),t.visible=xr(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=xr(e.display,e.doc,i));if(!Ho(e,t))break;Er(e);var o=Fo(e);Bn(e),Wo(e,o),Ln(e,o),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function pr(e,t){var i=new po(e,t);if(Ho(e,i)){Er(e),kr(e,i);var n=Fo(e);Bn(e),Wo(e,n),Ln(e,n),i.finish()}}function Oa(e,t,i){var n=e.display,o=e.options.lineNumbers,s=n.lineDiv,l=s.firstChild;function f(Be){var Ze=Be.nextSibling;return W&&le&&e.display.currentWheelTarget==Be?Be.style.display="none":Be.parentNode.removeChild(Be),Ze}for(var p=n.view,y=n.viewFrom,F=0;F<p.length;F++){var J=p[F];if(!J.hidden)if(!J.node||J.node.parentNode!=s){var ye=Ca(e,J,y,i);s.insertBefore(ye,l)}else{for(;l!=J.node;)l=f(l);var fe=o&&t!=null&&t<=y&&J.lineNumber;J.changes&&(Re(J.changes,"gutter")>-1&&(fe=!1),ur(e,J,y,i)),fe&&(Ne(J.lineNumber),J.lineNumber.appendChild(document.createTextNode(yn(e.options,y)))),l=J.node.nextSibling}y+=J.size}for(;l;)l=f(l)}function Mr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ln(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+oe(e)+"px"}function Cn(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=zi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,s=n+"px",l=0;l<i.length;l++)if(!i[l].hidden){e.options.fixedGutter&&(i[l].gutter&&(i[l].gutter.style.left=s),i[l].gutterBackground&&(i[l].gutterBackground.style.left=s));var f=i[l].alignable;if(f)for(var p=0;p<f.length;p++)f[p].style.left=s}e.options.fixedGutter&&(t.gutters.style.left=n+o+"px")}function Oi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=yn(e.options,t.first+t.size-1),n=e.display;if(i.length!=n.lineNumChars){var o=n.measure.appendChild(B("div",[B("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),s=o.firstChild.offsetWidth,l=o.offsetWidth-s;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(s,n.lineGutter.offsetWidth-l)+1,n.lineNumWidth=n.lineNumInnerWidth+l,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Mr(e.display),!0}return!1}function Xi(e,t){for(var i=[],n=!1,o=0;o<e.length;o++){var s=e[o],l=null;if(typeof s!="string"&&(l=s.style,s=s.className),s=="CodeMirror-linenumbers")if(t)n=!0;else continue;i.push({className:s,style:l})}return t&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function ir(e){var t=e.gutters,i=e.gutterSpecs;Ne(t),e.lineGutter=null;for(var n=0;n<i.length;++n){var o=i[n],s=o.className,l=o.style,f=t.appendChild(B("div",null,"CodeMirror-gutter "+s));l&&(f.style.cssText=l),s=="CodeMirror-linenumbers"&&(e.lineGutter=f,f.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",Mr(e)}function Ao(e){ir(e.display),Wn(e),Cn(e)}function mr(e,t,i,n){var o=this;this.input=i,o.scrollbarFiller=B("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=B("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=xe("div",null,"CodeMirror-code"),o.selectionDiv=B("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=B("div",null,"CodeMirror-cursors"),o.measure=B("div",null,"CodeMirror-measure"),o.lineMeasure=B("div",null,"CodeMirror-measure"),o.lineSpace=xe("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var s=xe("div",[o.lineSpace],"CodeMirror-lines");o.mover=B("div",[s],null,"position: relative"),o.sizer=B("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=B("div",null,null,"position: absolute; height: "+qe+"px; width: 1px;"),o.gutters=B("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=B("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=B("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),w&&R<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),!W&&!(re&&A)&&(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Xi(n.gutters,n.lineNumbers),ir(o),i.init(o)}var jo=0,Ti=null;w?Ti=-.53:re?Ti=15:L?Ti=-.7:se&&(Ti=-1/3);function Or(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function ta(e){var t=Or(e);return t.x*=Ti,t.y*=Ti,t}function na(e,t){var i=Or(t),n=i.x,o=i.y,s=e.display,l=s.scroller,f=l.scrollWidth>l.clientWidth,p=l.scrollHeight>l.clientHeight;if(!(n&&f||o&&p))return;if(o&&le&&W){e:for(var y=t.target,F=s.view;y!=l;y=y.parentNode)for(var J=0;J<F.length;J++)if(F[J].node==y){e.display.currentWheelTarget=y;break e}}if(n&&!re&&!T&&Ti!=null){o&&p&&tr(e,Math.max(0,l.scrollTop+o*Ti)),fo(e,Math.max(0,l.scrollLeft+n*Ti)),(!o||o&&p)&&E(t),s.wheelStartX=null;return}if(o&&Ti!=null){var ye=o*Ti,fe=e.doc.scrollTop,Be=fe+s.wrapper.clientHeight;ye<0?fe=Math.max(0,fe+ye-50):Be=Math.min(e.doc.height,Be+ye+50),pr(e,{top:fe,bottom:Be})}jo<20&&(s.wheelStartX==null?(s.wheelStartX=l.scrollLeft,s.wheelStartY=l.scrollTop,s.wheelDX=n,s.wheelDY=o,setTimeout(function(){if(s.wheelStartX==null)return;var Ze=l.scrollLeft-s.wheelStartX,lt=l.scrollTop-s.wheelStartY,vt=lt&&s.wheelDY&</s.wheelDY||Ze&&s.wheelDX&&Ze/s.wheelDX;if(s.wheelStartX=s.wheelStartY=null,!vt)return;Ti=(Ti*jo+vt)/(jo+1),++jo},200)):(s.wheelDX+=n,s.wheelDY+=o))}var Yi=function(e,t){this.ranges=e,this.primIndex=t};Yi.prototype.primary=function(){return this.ranges[this.primIndex]},Yi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var i=this.ranges[t],n=e.ranges[t];if(!Jn(i.anchor,n.anchor)||!Jn(i.head,n.head))return!1}return!0},Yi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Rn(Yn(this.ranges[t].anchor),Yn(this.ranges[t].head));return new Yi(e,this.primIndex)},Yi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Yi.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var n=this.ranges[i];if(Nt(t,n.from())>=0&&Nt(e,n.to())<=0)return i}return-1};var Rn=function(e,t){this.anchor=e,this.head=t};Rn.prototype.from=function(){return so(this.anchor,this.head)},Rn.prototype.to=function(){return ao(this.anchor,this.head)},Rn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function mo(e,t,i){var n=e&&e.options.selectionsMayTouch,o=t[i];t.sort(function(ye,fe){return Nt(ye.from(),fe.from())}),i=Re(t,o);for(var s=1;s<t.length;s++){var l=t[s],f=t[s-1],p=Nt(f.to(),l.from());if(n&&!l.empty()?p>0:p>=0){var y=so(f.from(),l.from()),F=ao(f.to(),l.to()),J=f.empty()?l.from()==l.head:f.from()==f.head;s<=i&&--i,t.splice(--s,2,new Rn(J?F:y,J?y:F))}}return new Yi(t,i)}function So(e,t){return new Yi([new Rn(e,t||e)],0)}function ko(e){return e.text?je(e.from.line+e.text.length-1,nt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ia(e,t){if(Nt(e,t.from)<0)return e;if(Nt(e,t.to)<=0)return ko(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=ko(t).ch-t.to.ch),je(i,n)}function Tr(e,t){for(var i=[],n=0;n<e.sel.ranges.length;n++){var o=e.sel.ranges[n];i.push(new Rn(ia(o.anchor,t),ia(o.head,t)))}return mo(e.cm,i,e.sel.primIndex)}function Ta(e,t,i){return e.line==t.line?je(i.line,e.ch-t.ch+i.ch):je(i.line+(e.line-t.line),e.ch)}function Ra(e,t,i){for(var n=[],o=je(e.first,0),s=o,l=0;l<t.length;l++){var f=t[l],p=Ta(f.from,o,s),y=Ta(ko(f),o,s);if(o=f.to,s=y,i=="around"){var F=e.sel.ranges[l],J=Nt(F.head,F.anchor)<0;n[l]=new Rn(J?y:p,J?p:y)}else n[l]=new Rn(p,p)}return new Yi(n,e.sel.primIndex)}function Go(e){e.doc.mode=vi(e.options,e.doc.modeOption),oa(e)}function oa(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,fr(e,100),e.state.modeGen++,e.curOp&&Wn(e)}function gs(e,t){return t.from.ch==0&&t.to.ch==0&&nt(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ts(e,t,i,n){function o(Mt){return i?i[Mt]:null}function s(Mt,yt,Pt){Wr(Mt,yt,Pt,n),Tn(Mt,"change",Mt,t)}function l(Mt,yt){for(var Pt=[],Yt=Mt;Yt<yt;++Yt)Pt.push(new Ro(y[Yt],o(Yt),n));return Pt}var f=t.from,p=t.to,y=t.text,F=Rt(e,f.line),J=Rt(e,p.line),ye=nt(y),fe=o(y.length-1),Be=p.line-f.line;if(t.full)e.insert(0,l(0,y.length)),e.remove(y.length,e.size-y.length);else if(gs(e,t)){var Ze=l(0,y.length-1);s(J,J.text,fe),Be&&e.remove(f.line,Be),Ze.length&&e.insert(f.line,Ze)}else if(F==J)if(y.length==1)s(F,F.text.slice(0,f.ch)+ye+F.text.slice(p.ch),fe);else{var lt=l(1,y.length-1);lt.push(new Ro(ye+F.text.slice(p.ch),fe,n)),s(F,F.text.slice(0,f.ch)+y[0],o(0)),e.insert(f.line+1,lt)}else if(y.length==1)s(F,F.text.slice(0,f.ch)+y[0]+J.text.slice(p.ch),o(0)),e.remove(f.line+1,Be);else{s(F,F.text.slice(0,f.ch)+y[0],o(0)),s(J,ye+J.text.slice(p.ch),fe);var vt=l(1,y.length-1);Be>1&&e.remove(f.line+1,Be-1),e.insert(f.line+1,vt)}Tn(e,"change",e,t)}function or(e,t,i){function n(o,s,l){if(o.linked)for(var f=0;f<o.linked.length;++f){var p=o.linked[f];if(p.doc==s)continue;var y=l&&p.sharedHist;if(i&&!y)continue;t(p.doc,y),n(p.doc,o,y)}}n(e,null,!0)}function vs(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Qi(e),Go(e),ys(e),e.options.lineWrapping||yo(e),e.options.mode=t.modeOption,Wn(e)}function ys(e){(e.doc.direction=="rtl"?ue:Ce)(e.display.lineDiv,"CodeMirror-rtl")}function fl(e){Ji(e,function(){ys(e),Wn(e)})}function Da(e){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function ns(e,t){var i={from:Yn(t.from),to:ko(t),text:ji(e,t.from,t.to)};return Es(e,i,t.from.line,t.to.line+1),or(e,function(n){return Es(n,i,t.from.line,t.to.line+1)},!0),i}function bs(e){for(;e.length;){var t=nt(e);if(t.ranges)e.pop();else break}}function pl(e,t){if(t)return bs(e.done),nt(e.done);if(e.done.length&&!nt(e.done).ranges)return nt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),nt(e.done)}function Cs(e,t,i,n){var o=e.history;o.undone.length=0;var s=+new Date,l,f;if((o.lastOp==n||o.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=pl(o,o.lastOp==n)))f=nt(l.changes),Nt(t.from,t.to)==0&&Nt(t.from,f.to)==0?f.to=ko(t):l.changes.push(ns(e,t));else{var p=nt(o.done);for((!p||!p.ranges)&&La(e.sel,o.done),l={changes:[ns(e,t)],generation:o.generation},o.done.push(l);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(i),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=n,o.lastOrigin=o.lastSelOrigin=t.origin,f||Le(e,"historyAdded")}function ml(e,t,i,n){var o=t.charAt(0);return o=="*"||o=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,n){var o=e.history,s=n&&n.origin;i==o.lastSelOp||s&&o.lastSelOrigin==s&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==s||ml(e,s,nt(o.done),t))?o.done[o.done.length-1]=t:La(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=s,o.lastSelOp=i,n&&n.clearRedo!==!1&&bs(o.undone)}function La(e,t){var i=nt(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Es(e,t,i,n){var o=t["spans_"+e.id],s=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(l){l.markedSpans&&((o||(o=t["spans_"+e.id]={}))[s]=l.markedSpans),++s})}function vl(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function yl(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var n=[],o=0;o<t.text.length;++o)n.push(vl(i[o]));return n}function xs(e,t){var i=yl(e,t),n=Vi(e,t);if(!i)return n;if(!n)return i;for(var o=0;o<i.length;++o){var s=i[o],l=n[o];if(s&&l){e:for(var f=0;f<l.length;++f){for(var p=l[f],y=0;y<s.length;++y)if(s[y].marker==p.marker)continue e;s.push(p)}}else l&&(i[o]=l)}return i}function Rr(e,t,i){for(var n=[],o=0;o<e.length;++o){var s=e[o];if(s.ranges){n.push(i?Yi.prototype.deepCopy.call(s):s);continue}var l=s.changes,f=[];n.push({changes:f});for(var p=0;p<l.length;++p){var y=l[p],F=void 0;if(f.push({from:y.from,to:y.to,text:y.text}),t)for(var J in y)(F=J.match(/^spans_(\d+)$/))&&(Re(t,Number(F[1]))>-1&&(nt(f)[J]=y[J],delete y[J]))}}return n}function is(e,t,i,n){if(n){var o=e.anchor;if(i){var s=Nt(t,o)<0;s!=Nt(i,o)<0?(o=t,t=i):s!=Nt(t,i)<0&&(t=i)}return new Rn(o,t)}else return new Rn(i||t,t)}function Ia(e,t,i,n,o){o==null&&(o=e.cm&&(e.cm.display.shift||e.extend)),Hi(e,new Yi([is(e.sel.primary(),t,i,o)],0),n)}function ws(e,t,i){for(var n=[],o=e.cm&&(e.cm.display.shift||e.extend),s=0;s<e.sel.ranges.length;s++)n[s]=is(e.sel.ranges[s],t[s],null,o);var l=mo(e.cm,n,e.sel.primIndex);Hi(e,l,i)}function os(e,t,i,n){var o=e.sel.ranges.slice(0);o[t]=i,Hi(e,mo(e.cm,o,e.sel.primIndex),n)}function As(e,t,i,n){Hi(e,So(t,i),n)}function bl(e,t,i){var n={ranges:t.ranges,update:function(o){this.ranges=[];for(var s=0;s<o.length;s++)this.ranges[s]=new Rn(r(e,o[s].anchor),r(e,o[s].head))},origin:i&&i.origin};return Le(e,"beforeSelectionChange",e,n),e.cm&&Le(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?mo(e.cm,n.ranges,n.ranges.length-1):t}function Ss(e,t,i){var n=e.history.done,o=nt(n);o&&o.ranges?(n[n.length-1]=t,Na(e,t,i)):Hi(e,t,i)}function Hi(e,t,i){Na(e,t,i),gl(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function Na(e,t,i){(Z(e,"beforeSelectionChange")||e.cm&&Z(e.cm,"beforeSelectionChange"))&&(t=bl(e,t,i));var n=i&&i.bias||(Nt(t.primary().head,e.sel.primary().head)<0?-1:1);ks(e,Os(e,t,n,!0)),!(i&&i.scroll===!1)&&e.cm&&$o(e.cm)}function ks(e,t){if(t.equals(e.sel))return;e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ie(e.cm)),Tn(e,"cursorActivity",e)}function Ms(e){ks(e,Os(e,e.sel,null,!1))}function Os(e,t,i,n){for(var o,s=0;s<t.ranges.length;s++){var l=t.ranges[s],f=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[s],p=Pa(e,l.anchor,f&&f.anchor,i,n),y=Pa(e,l.head,f&&f.head,i,n);(o||p!=l.anchor||y!=l.head)&&(o||(o=t.ranges.slice(0,s)),o[s]=new Rn(p,y))}return o?mo(e.cm,o,t.primIndex):t}function Dr(e,t,i,n,o){var s=Rt(e,t.line);if(s.markedSpans)for(var l=0;l<s.markedSpans.length;++l){var f=s.markedSpans[l],p=f.marker,y="selectLeft"in p?!p.selectLeft:p.inclusiveLeft,F="selectRight"in p?!p.selectRight:p.inclusiveRight;if((f.from==null||(y?f.from<=t.ch:f.from<t.ch))&&(f.to==null||(F?f.to>=t.ch:f.to>t.ch))){if(o&&(Le(p,"beforeCursorEnter"),p.explicitlyCleared))if(s.markedSpans){--l;continue}else break;if(!p.atomic)continue;if(i){var J=p.find(n<0?1:-1),ye=void 0;if((n<0?F:y)&&(J=Ts(e,J,-n,J&&J.line==t.line?s:null)),J&&J.line==t.line&&(ye=Nt(J,i))&&(n<0?ye<0:ye>0))return Dr(e,J,t,n,o)}var fe=p.find(n<0?-1:1);return(n<0?y:F)&&(fe=Ts(e,fe,n,fe.line==t.line?s:null)),fe?Dr(e,fe,t,n,o):null}}return t}function Pa(e,t,i,n,o){var s=n||1,l=Dr(e,t,i,s,o)||!o&&Dr(e,t,i,s,!0)||Dr(e,t,i,-s,o)||!o&&Dr(e,t,i,-s,!0);return l||(e.cantEdit=!0,je(e.first,0))}function Ts(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?r(e,je(t.line-1)):null:i>0&&t.ch==(n||Rt(e,t.line)).text.length?t.line<e.first+e.size-1?je(t.line+1,0):null:new je(t.line,t.ch+i)}function Rs(e){e.setSelection(je(e.firstLine(),0),je(e.lastLine()),We)}function Ds(e,t,i){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return i&&(n.update=function(o,s,l,f){o&&(n.from=r(e,o)),s&&(n.to=r(e,s)),l&&(n.text=l),f!==void 0&&(n.origin=f)}),Le(e,"beforeChange",e,n),e.cm&&Le(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Lr(e,t,i){if(e.cm){if(!e.cm.curOp)return pi(e.cm,Lr)(e,t,i);if(e.cm.state.suppressEdits)return}if((Z(e,"beforeChange")||e.cm&&Z(e.cm,"beforeChange"))&&(t=Ds(e,t,!0),!t))return;var n=hi&&!i&&Oo(e,t.from,t.to);if(n)for(var o=n.length-1;o>=0;--o)Ls(e,{from:n[o].from,to:n[o].to,text:o?[""]:t.text,origin:t.origin});else Ls(e,t)}function Ls(e,t){if(t.text.length==1&&t.text[0]==""&&Nt(t.from,t.to)==0)return;var i=Tr(e,t);Cs(e,t,i,e.cm?e.cm.curOp.id:NaN),ra(e,t,i,Vi(e,t));var n=[];or(e,function(o,s){!s&&Re(n,o.history)==-1&&(_s(o.history,t),n.push(o.history)),ra(o,t,null,Vi(o,t))})}function _a(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!i)return;for(var o=e.history,s,l=e.sel,f=t=="undo"?o.done:o.undone,p=t=="undo"?o.undone:o.done,y=0;y<f.length&&!(s=f[y],i?s.ranges&&!s.equals(e.sel):!s.ranges);y++);if(y==f.length)return;for(o.lastOrigin=o.lastSelOrigin=null;;)if(s=f.pop(),s.ranges){if(La(s,p),i&&!s.equals(e.sel)){Hi(e,s,{clearRedo:!1});return}l=s}else if(n){f.push(s);return}else break;var F=[];La(l,p),p.push({changes:F,generation:o.generation}),o.generation=s.generation||++o.maxGeneration;for(var J=Z(e,"beforeChange")||e.cm&&Z(e.cm,"beforeChange"),ye=function(Ze){var lt=s.changes[Ze];if(lt.origin=t,J&&!Ds(e,lt,!1))return f.length=0,{};F.push(ns(e,lt));var vt=Ze?Tr(e,lt):nt(f);ra(e,lt,vt,xs(e,lt)),!Ze&&e.cm&&e.cm.scrollIntoView({from:lt.from,to:ko(lt)});var Mt=[];or(e,function(yt,Pt){!Pt&&Re(Mt,yt.history)==-1&&(_s(yt.history,lt),Mt.push(yt.history)),ra(yt,lt,null,xs(yt,lt))})},fe=s.changes.length-1;fe>=0;--fe){var Be=ye(fe);if(Be)return Be.v}}function Is(e,t){if(t==0)return;if(e.first+=t,e.sel=new Yi(Tt(e.sel.ranges,function(o){return new Rn(je(o.anchor.line+t,o.anchor.ch),je(o.head.line+t,o.head.ch))}),e.sel.primIndex),e.cm){Wn(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;n<i.viewTo;n++)ni(e.cm,n,"gutter")}}function ra(e,t,i,n){if(e.cm&&!e.cm.curOp)return pi(e.cm,ra)(e,t,i,n);if(t.to.line<e.first){Is(e,t.text.length-1-(t.to.line-t.from.line));return}if(t.from.line>e.lastLine())return;if(t.from.line<e.first){var o=t.text.length-1-(e.first-t.from.line);Is(e,o),t={from:je(e.first,0),to:je(t.to.line+o,t.to.ch),text:[nt(t.text)],origin:t.origin}}var s=e.lastLine();t.to.line>s&&(t={from:t.from,to:je(s,Rt(e,s).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ji(e,t.from,t.to),i||(i=Tr(e,t)),e.cm?Cl(e.cm,t,n):ts(e,t,n),Na(e,i,We),e.cantEdit&&Pa(e,je(e.firstLine(),0))&&(e.cantEdit=!1)}function Cl(e,t,i){var n=e.doc,o=e.display,s=t.from,l=t.to,f=!1,p=s.line;e.options.lineWrapping||(p=Jt(ui(Rt(n,s.line))),n.iter(p,l.line+1,function(fe){if(fe==o.maxLine)return f=!0,!0})),n.sel.contains(t.from,t.to)>-1&&ie(e),ts(n,t,i,co(e)),e.options.lineWrapping||(n.iter(p,s.line+t.text.length,function(fe){var Be=Yo(fe);Be>o.maxLineLength&&(o.maxLine=fe,o.maxLineLength=Be,o.maxLineChanged=!0,f=!1)}),f&&(e.curOp.updateMaxLine=!0)),Bi(n,s.line),fr(e,400);var y=t.text.length-(l.line-s.line)-1;t.full?Wn(e):s.line==l.line&&t.text.length==1&&!gs(e.doc,t)?ni(e,s.line,"text"):Wn(e,s.line,l.line+1,y);var F=Z(e,"changes"),J=Z(e,"change");if(J||F){var ye={from:s,to:l,text:t.text,removed:t.removed,origin:t.origin};J&&Tn(e,"change",e,ye),F&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(ye)}e.display.selForContextMenu=null}function Ir(e,t,i,n,o){var s;n||(n=i),Nt(n,i)<0&&(s=[n,i],i=s[0],n=s[1]),typeof t=="string"&&(t=e.splitLines(t)),Lr(e,{from:i,to:n,text:t,origin:o})}function Ns(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Ps(e,t,i,n){for(var o=0;o<e.length;++o){var s=e[o],l=!0;if(s.ranges){s.copied||(s=e[o]=s.deepCopy(),s.copied=!0);for(var f=0;f<s.ranges.length;f++)Ns(s.ranges[f].anchor,t,i,n),Ns(s.ranges[f].head,t,i,n);continue}for(var p=0;p<s.changes.length;++p){var y=s.changes[p];if(i<y.from.line)y.from=je(y.from.line+n,y.from.ch),y.to=je(y.to.line+n,y.to.ch);else if(t<=y.to.line){l=!1;break}}l||(e.splice(0,o+1),o=0)}}function _s(e,t){var i=t.from.line,n=t.to.line,o=t.text.length-(n-i)-1;Ps(e.done,i,n,o),Ps(e.undone,i,n,o)}function aa(e,t,i,n){var o=t,s=t;return typeof t=="number"?s=Rt(e,d(e,t)):o=Jt(t),o==null?null:(n(s,o)&&e.cm&&ni(e.cm,o,i),s)}function sa(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}sa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,n=e+t;i<n;++i){var o=this.lines[i];this.height-=o.height,yr(o),Tn(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,i){for(var n=e+t;e<n;++e)if(i(this.lines[e]))return!0}};function la(e){this.children=e;for(var t=0,i=0,n=0;n<e.length;++n){var o=e[n];t+=o.chunkSize(),i+=o.height,o.parent=this}this.size=t,this.height=i,this.parent=null}la.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var n=this.children[i],o=n.chunkSize();if(e<o){var s=Math.min(t,o-e),l=n.height;if(n.removeInner(e,s),this.height-=l-n.height,o==s&&(this.children.splice(i--,1),n.parent=null),(t-=s)==0)break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof sa))){var f=[];this.collapse(f),this.children=[new sa(f)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,i){this.size+=t.length,this.height+=i;for(var n=0;n<this.children.length;++n){var o=this.children[n],s=o.chunkSize();if(e<=s){if(o.insertInner(e,t,i),o.lines&&o.lines.length>50){for(var l=o.lines.length%25+25,f=l;f<o.lines.length;){var p=new sa(o.lines.slice(f,f+=25));o.height-=p.height,this.children.splice(++n,0,p),p.parent=this}o.lines=o.lines.slice(0,l),this.maybeSpill()}break}e-=s}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new la(t);if(e.parent){e.size-=i.size,e.height-=i.height;var o=Re(e.parent.children,e);e.parent.children.splice(o+1,0,i)}else{var n=new la(e.children);n.parent=e,e.children=[n,i],e=n}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var n=0;n<this.children.length;++n){var o=this.children[n],s=o.chunkSize();if(e<s){var l=Math.min(t,s-e);if(o.iterN(e,l,i))return!0;if((t-=l)==0)break;e=0}else e-=s}}};var ua=function(e,t,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=e,this.node=t};ua.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,n=Jt(i);if(n==null||!t)return;for(var o=0;o<t.length;++o)t[o]==this&&t.splice(o--,1);t.length||(i.widgets=null);var s=Zo(this);Nn(i,Math.max(0,i.height-s)),e&&(Ji(e,function(){js(e,i,-s),ni(e,n,"widget")}),Tn(e,"lineWidgetCleared",e,this,n))},ua.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,n=this.line;this.height=null;var o=Zo(this)-t;if(!o)return;Ki(this.doc,n)||Nn(n,n.height+o),i&&Ji(i,function(){i.curOp.forceUpdate=!0,js(i,n,o),Tn(i,"lineWidgetChanged",i,e,Jt(n))})},ee(ua);function js(e,t,i){Wi(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Zr(e,i)}function El(e,t,i,n){var o=new ua(e,i,n),s=e.cm;return s&&o.noHScroll&&(s.display.alignWidgets=!0),aa(e,t,"widget",function(l){var f=l.widgets||(l.widgets=[]);if(o.insertAt==null?f.push(o):f.splice(Math.min(f.length-1,Math.max(0,o.insertAt)),0,o),o.line=l,s&&!Ki(e,l)){var p=Wi(l)<e.scrollTop;Nn(l,l.height+Zo(o)),p&&Zr(s,o.height),s.curOp.forceUpdate=!0}return!0}),s&&Tn(s,"lineWidgetAdded",s,o,typeof t=="number"?t:Jt(t)),o}var Bs=0,rr=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Bs};rr.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&_o(e),Z(this,"clear")){var i=this.find();i&&Tn(this,"clear",i.from,i.to)}for(var n=null,o=null,s=0;s<this.lines.length;++s){var l=this.lines[s],f=qi(l.markedSpans,this);e&&!this.collapsed?ni(e,Jt(l),"text"):e&&(f.to!=null&&(o=Jt(l)),f.from!=null&&(n=Jt(l))),l.markedSpans=go(l.markedSpans,f),f.from==null&&this.collapsed&&!Ki(this.doc,l)&&e&&Nn(l,ci(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var p=0;p<this.lines.length;++p){var y=ui(this.lines[p]),F=Yo(y);F>e.display.maxLineLength&&(e.display.maxLine=y,e.display.maxLineLength=F,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Wn(e,n,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ms(e.doc)),e&&Tn(e,"markerCleared",e,this,n,o),t&&zo(e),this.parent&&this.parent.clear()},rr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,o=0;o<this.lines.length;++o){var s=this.lines[o],l=qi(s.markedSpans,this);if(l.from!=null&&(i=je(t?s:Jt(s),l.from),e==-1))return i;if(l.to!=null&&(n=je(t?s:Jt(s),l.to),e==1))return n}return i&&{from:i,to:n}},rr.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,n=this.doc.cm;if(!t||!n)return;Ji(n,function(){var o=t.line,s=Jt(t.line),l=ae(n,s);if(l&&(sn(l),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Ki(i.doc,o)&&i.height!=null){var f=i.height;i.height=null;var p=Zo(i)-f;p&&Nn(o,o.height+p)}Tn(n,"markerChanged",n,e)})},rr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||Re(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},rr.prototype.detachLine=function(e){if(this.lines.splice(Re(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ee(rr);function Nr(e,t,i,n,o){if(n&&n.shared)return xl(e,t,i,n,o);if(e.cm&&!e.cm.curOp)return pi(e.cm,Nr)(e,t,i,n,o);var s=new rr(e,o),l=Nt(t,i);if(n&&v(n,s,!1),l>0||l==0&&s.clearWhenEmpty!==!1)return s;if(s.replacedWith&&(s.collapsed=!0,s.widgetNode=xe("span",[s.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||s.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(s.widgetNode.insertLeft=!0)),s.collapsed){if(fi(e,t.line,t,i,s)||t.line!=i.line&&fi(e,i.line,t,i,s))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ai()}s.addToHistory&&Cs(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var f=t.line,p=e.cm,y;if(e.iter(f,i.line+1,function(J){p&&s.collapsed&&!p.options.lineWrapping&&ui(J)==p.display.maxLine&&(y=!0),s.collapsed&&f!=t.line&&Nn(J,0),$i(J,new lo(s,f==t.line?t.ch:null,f==i.line?i.ch:null)),++f}),s.collapsed&&e.iter(t.line,i.line+1,function(J){Ki(e,J)&&Nn(J,0)}),s.clearOnEnter&&Te(s,"beforeCursorEnter",function(){return s.clear()}),s.readOnly&&(Ii(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),s.collapsed&&(s.id=++Bs,s.atomic=!0),p){if(y&&(p.curOp.updateMaxLine=!0),s.collapsed)Wn(p,t.line,i.line+1);else if(s.className||s.startStyle||s.endStyle||s.css||s.attributes||s.title)for(var F=t.line;F<=i.line;F++)ni(p,F,"text");s.atomic&&Ms(p.doc),Tn(p,"markerAdded",p,s)}return s}var ca=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};ca.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Tn(this,"clear")},ca.prototype.find=function(e,t){return this.primary.find(e,t)},ee(ca);function xl(e,t,i,n,o){n=v(n),n.shared=!1;var s=[Nr(e,t,i,n,o)],l=s[0],f=n.widgetNode;return or(e,function(p){f&&(n.widgetNode=f.cloneNode(!0)),s.push(Nr(p,r(p,t),r(p,i),n,o));for(var y=0;y<p.linked.length;++y)if(p.linked[y].isParent)return;l=nt(s)}),new ca(s,l)}function Us(e){return e.findMarks(je(e.first,0),e.clipPos(je(e.lastLine())),function(t){return t.parent})}function wl(e,t){for(var i=0;i<t.length;i++){var n=t[i],o=n.find(),s=e.clipPos(o.from),l=e.clipPos(o.to);if(Nt(s,l)){var f=Nr(e,s,l,n.primary,n.primary.type);n.markers.push(f),f.parent=n}}}function Al(e){for(var t=function(n){var o=e[n],s=[o.primary.doc];or(o.primary.doc,function(p){return s.push(p)});for(var l=0;l<o.markers.length;l++){var f=o.markers[l];Re(s,f.doc)==-1&&(f.parent=null,o.markers.splice(l--,1))}},i=0;i<e.length;i++)t(i)}var Sl=0,to=function(e,t,i,n,o){if(!(this instanceof to))return new to(e,t,i,n,o);i==null&&(i=0),la.call(this,[new sa([new Ro("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var s=je(i,0);this.sel=So(s),this.history=new Da(null),this.id=++Sl,this.modeOption=t,this.lineSep=n,this.direction=o=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ts(this,{from:s,to:s,text:e}),Hi(this,So(s),We)};to.prototype=wt(la.prototype,{constructor:to,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,n=0;n<t.length;++n)i+=t[n].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Li(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:mi(function(e){var t=je(this.first,0),i=this.first+this.size-1;Lr(this,{from:t,to:je(i,Rt(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&er(this.cm,0,0),Hi(this,So(t),We)}),replaceRange:function(e,t,i,n){t=r(this,t),i=i?r(this,i):t,Ir(this,e,t,i,n)},getRange:function(e,t,i){var n=ji(this,r(this,e),r(this,t));return i===!1?n:n.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(en(this,e))return Rt(this,e)},getLineNumber:function(e){return Jt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Rt(this,e)),ui(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return r(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:mi(function(e,t,i){As(this,r(this,typeof e=="number"?je(e,t||0):e),null,i)}),setSelection:mi(function(e,t,i){As(this,r(this,e),r(this,t||e),i)}),extendSelection:mi(function(e,t,i){Ia(this,r(this,e),t&&r(this,t),i)}),extendSelections:mi(function(e,t){ws(this,u(this,e),t)}),extendSelectionsBy:mi(function(e,t){var i=Tt(this.sel.ranges,e);ws(this,u(this,i),t)}),setSelections:mi(function(e,t,i){if(!e.length)return;for(var n=[],o=0;o<e.length;o++)n[o]=new Rn(r(this,e[o].anchor),r(this,e[o].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Hi(this,mo(this.cm,n,t),i)}),addSelection:mi(function(e,t,i){var n=this.sel.ranges.slice(0);n.push(new Rn(r(this,e),r(this,t||e))),Hi(this,mo(this.cm,n,n.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,n=0;n<t.length;n++){var o=ji(this,t[n].from(),t[n].to());i=i?i.concat(o):o}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,n=0;n<i.length;n++){var o=ji(this,i[n].from(),i[n].to());e!==!1&&(o=o.join(e||this.lineSeparator())),t[n]=o}return t},replaceSelection:function(e,t,i){for(var n=[],o=0;o<this.sel.ranges.length;o++)n[o]=e;this.replaceSelections(n,t,i||"+input")},replaceSelections:mi(function(e,t,i){for(var n=[],o=this.sel,s=0;s<o.ranges.length;s++){var l=o.ranges[s];n[s]={from:l.from(),to:l.to(),text:this.splitLines(e[s]),origin:i}}for(var f=t&&t!="end"&&Ra(this,n,t),p=n.length-1;p>=0;p--)Lr(this,n[p]);f?Ss(this,f):this.cm&&$o(this.cm)}),undo:mi(function(){_a(this,"undo")}),redo:mi(function(){_a(this,"redo")}),undoSelection:mi(function(){_a(this,"undo",!0)}),redoSelection:mi(function(){_a(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var o=0;o<e.undone.length;o++)e.undone[o].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new Da(this.history.maxGeneration),or(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Rr(this.history.done),undone:Rr(this.history.undone)}},setHistory:function(e){var t=this.history=new Da(this.history.maxGeneration);t.done=Rr(e.done.slice(0),null,!0),t.undone=Rr(e.undone.slice(0),null,!0)},setGutterMarker:mi(function(e,t,i){return aa(this,e,"gutter",function(n){var o=n.gutterMarkers||(n.gutterMarkers={});return o[t]=i,!i&>(o)&&(n.gutterMarkers=null),!0})}),clearGutter:mi(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&aa(t,i,"gutter",function(){return i.gutterMarkers[e]=null,gt(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!en(this,e))return null;if(t=e,e=Rt(this,e),!e)return null}else if(t=Jt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:mi(function(e,t,i){return aa(this,e,t=="gutter"?"gutter":"class",function(n){var o=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[o])n[o]=i;else{if(Ee(i).test(n[o]))return!1;n[o]+=" "+i}return!0})}),removeLineClass:mi(function(e,t,i){return aa(this,e,t=="gutter"?"gutter":"class",function(n){var o=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",s=n[o];if(s)if(i==null)n[o]=null;else{var l=s.match(Ee(i));if(!l)return!1;var f=l.index+l[0].length;n[o]=s.slice(0,l.index)+(!l.index||f==s.length?"":" ")+s.slice(f)||null}else return!1;return!0})}),addLineWidget:mi(function(e,t,i){return El(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Nr(this,r(this,e),r(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=r(this,e),Nr(this,e,e,i,"bookmark")},findMarksAt:function(e){e=r(this,e);var t=[],i=Rt(this,e.line).markedSpans;if(i)for(var n=0;n<i.length;++n){var o=i[n];(o.from==null||o.from<=e.ch)&&(o.to==null||o.to>=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,i){e=r(this,e),t=r(this,t);var n=[],o=e.line;return this.iter(e.line,t.line+1,function(s){var l=s.markedSpans;if(l)for(var f=0;f<l.length;f++){var p=l[f];!(p.to!=null&&o==e.line&&e.ch>=p.to||p.from==null&&o!=e.line||p.from!=null&&o==t.line&&p.from>=t.ch)&&(!i||i(p.marker))&&n.push(p.marker.parent||p.marker)}++o}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;n<i.length;++n)i[n].from!=null&&e.push(i[n].marker)}),e},posFromIndex:function(e){var t,i=this.first,n=this.lineSeparator().length;return this.iter(function(o){var s=o.text.length+n;if(s>e)return t=e,!0;e-=s,++i}),r(this,je(i,t))},indexFromPos:function(e){e=r(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+i}),t},copy:function(e){var t=new to(Li(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var n=new to(Li(this,t,i),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],wl(n,Us(this)),n},unlinkDoc:function(e){if(e instanceof ii&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc!=e)continue;this.linked.splice(t,1),e.unlinkDoc(this),Al(Us(this));break}if(e.history==this.history){var n=[e.id];or(e,function(o){return n.push(o.id)},!0),e.history=new Da(null),e.history.done=Rr(this.history.done,n),e.history.undone=Rr(this.history.undone,n)}},iterLinkedDocs:function(e){or(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ct(e)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:mi(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&fl(this.cm)})}),to.prototype.eachLine=to.prototype.iter;var Fs=0;function kl(e){var t=this;if(Ws(t),Xe(t,e)||wo(t.display,e))return;E(e),w&&(Fs=+new Date);var i=ki(t,e,!0),n=e.dataTransfer.files;if(!i||t.isReadOnly())return;if(n&&n.length&&window.FileReader&&window.File)for(var o=n.length,s=Array(o),l=0,f=function(){++l==o&&pi(t,function(){i=r(t.doc,i);var fe={from:i,to:i,text:t.doc.splitLines(s.filter(function(Be){return Be!=null}).join(t.doc.lineSeparator())),origin:"paste"};Lr(t.doc,fe),Ss(t.doc,So(r(t.doc,i),r(t.doc,ko(fe))))})()},p=function(fe,Be){if(t.options.allowDropFileTypes&&Re(t.options.allowDropFileTypes,fe.type)==-1){f();return}var Ze=new FileReader;Ze.onerror=function(){return f()},Ze.onload=function(){var lt=Ze.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(lt)){f();return}s[Be]=lt,f()},Ze.readAsText(fe)},y=0;y<n.length;y++)p(n[y],y);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var F=e.dataTransfer.getData("Text");if(F){var J;if(t.state.draggingText&&!t.state.draggingText.copy&&(J=t.listSelections()),Na(t.doc,So(i,i)),J)for(var ye=0;ye<J.length;++ye)Ir(t.doc,"",J[ye].anchor,J[ye].head,"drag");t.replaceSelection(F,"around","paste"),t.display.input.focus()}}catch(fe){}}}function Ml(e,t){if(w&&(!e.state.draggingText||+new Date-Fs<100)){j(t);return}if(Xe(e,t)||wo(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!se){var i=B("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",T&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),T&&i.parentNode.removeChild(i)}}function Ol(e,t){var i=ki(e,t);if(!i)return;var n=document.createDocumentFragment();Io(e,i,n),e.display.dragCursor||(e.display.dragCursor=B("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),be(e.display.dragCursor,n)}function Ws(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function zs(e){if(!document.getElementsByClassName)return;for(var t=document.getElementsByClassName("CodeMirror"),i=[],n=0;n<t.length;n++){var o=t[n].CodeMirror;o&&i.push(o)}i.length&&i[0].operation(function(){for(var s=0;s<i.length;s++)e(i[s])})}var Hs=!1;function Tl(){if(Hs)return;Rl(),Hs=!0}function Rl(){var e;Te(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,zs(Dl)},100))}),Te(window,"blur",function(){return zs(qo)})}function Dl(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var ar={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},da=0;da<10;da++)ar[da+48]=ar[da+96]=String(da);for(var ja=65;ja<=90;ja++)ar[ja]=String.fromCharCode(ja);for(var ha=1;ha<=12;ha++)ar[ha+111]=ar[ha+63235]="F"+ha;var Vo={};Vo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Vo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Vo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Vo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Vo.default=le?Vo.macDefault:Vo.pcDefault;function Ll(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,n,o,s,l=0;l<t.length-1;l++){var f=t[l];if(/^(cmd|meta|m)$/i.test(f))s=!0;else if(/^a(lt)?$/i.test(f))i=!0;else if(/^(c|ctrl|control)$/i.test(f))n=!0;else if(/^s(hift)?$/i.test(f))o=!0;else throw new Error("Unrecognized modifier name: "+f)}return i&&(e="Alt-"+e),n&&(e="Ctrl-"+e),s&&(e="Cmd-"+e),o&&(e="Shift-"+e),e}function Il(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(n=="..."){delete e[i];continue}for(var o=Tt(i.split(" "),Ll),s=0;s<o.length;s++){var l=void 0,f=void 0;s==o.length-1?(f=o.join(" "),l=n):(f=o.slice(0,s+1).join(" "),l="...");var p=t[f];if(!p)t[f]=l;else if(p!=l)throw new Error("Inconsistent bindings for "+f)}delete e[i]}for(var y in t)e[y]=t[y];return e}function Pr(e,t,i,n){t=Ba(t);var o=t.call?t.call(e,n):t[e];if(o===!1)return"nothing";if(o==="...")return"multi";if(o!=null&&i(o))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Pr(e,t.fallthrough,i,n);for(var s=0;s<t.fallthrough.length;s++){var l=Pr(e,t.fallthrough[s],i,n);if(l)return l}}}function Gs(e){var t=typeof e=="string"?e:ar[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Vs(e,t,i){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(ke?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(ke?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function Ks(e,t){if(T&&e.keyCode==34&&e.char)return!1;var i=ar[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),Vs(i,e,t))}function Ba(e){return typeof e=="string"?Vo[e]:e}function _r(e,t){for(var i=e.doc.sel.ranges,n=[],o=0;o<i.length;o++){for(var s=t(i[o]);n.length&&Nt(s.from,nt(n).to)<=0;){var l=n.pop();if(Nt(l.from,s.from)<0){s.from=l.from;break}}n.push(s)}Ji(e,function(){for(var f=n.length-1;f>=0;f--)Ir(e.doc,"",n[f].from,n[f].to,"+delete");$o(e)})}function rs(e,t,i){var n=ot(e.text,t+i,i);return n<0||n>e.text.length?null:n}function as(e,t,i){var n=rs(e,t.ch,i);return n==null?null:new je(t.line,n,i<0?"after":"before")}function ss(e,t,i,n,o){if(e){t.doc.direction=="rtl"&&(o=-o);var s=ct(i,t.doc.direction);if(s){var l=o<0?nt(s):s[0],f=o<0==(l.level==1),p=f?"after":"before",y;if(l.level>0||t.doc.direction=="rtl"){var F=te(t,i);y=o<0?i.text.length-1:0;var J=pe(t,F,y).top;y=Ft(function(ye){return pe(t,F,ye).top==J},o<0==(l.level==1)?l.from:l.to-1,y),p=="before"&&(y=rs(i,y,1))}else y=o<0?l.to:l.from;return new je(n,y,p)}}return new je(n,o<0?i.text.length:0,o<0?"before":"after")}function Nl(e,t,i,n){var o=ct(t,e.doc.direction);if(!o)return as(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var s=st(o,i.ch,i.sticky),l=o[s];if(e.doc.direction=="ltr"&&l.level%2==0&&(n>0?l.to>i.ch:l.from<i.ch))return as(t,i,n);var f=function(vt,Mt){return rs(t,vt instanceof je?vt.ch:vt,Mt)},p,y=function(vt){return e.options.lineWrapping?(p=p||te(e,t),Bt(e,t,p,vt)):{begin:0,end:t.text.length}},F=y(i.sticky=="before"?f(i,-1):i.ch);if(e.doc.direction=="rtl"||l.level==1){var J=l.level==1==n<0,ye=f(i,J?1:-1);if(ye!=null&&(J?ye<=l.to&&ye<=F.end:ye>=l.from&&ye>=F.begin)){var fe=J?"before":"after";return new je(i.line,ye,fe)}}var Be=function(vt,Mt,yt){for(var Pt=function(Vn,Ni){return Ni?new je(i.line,f(Vn,1),"before"):new je(i.line,Vn,"after")};vt>=0&&vt<o.length;vt+=Mt){var Yt=o[vt],Vt=Mt>0==(Yt.level!=1),dn=Vt?yt.begin:f(yt.end,-1);if(Yt.from<=dn&&dn<Yt.to)return Pt(dn,Vt);if(dn=Vt?Yt.from:f(Yt.to,-1),yt.begin<=dn&&dn<yt.end)return Pt(dn,Vt)}},Ze=Be(s+n,n,F);if(Ze)return Ze;var lt=n>0?F.end:f(F.begin,-1);return lt!=null&&!(n>0&<==t.text.length)&&(Ze=Be(n>0?0:o.length-1,n,y(lt)),Ze)?Ze:null}var fa={selectAll:Rs,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),We)},killLine:function(e){return _r(e,function(t){if(t.empty()){var i=Rt(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:je(t.head.line+1,0)}:{from:t.head,to:je(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return _r(e,function(t){return{from:je(t.from().line,0),to:r(e.doc,je(t.to().line+1,0))}})},delLineLeft:function(e){return _r(e,function(t){return{from:je(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return _r(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return _r(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(je(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(je(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Qs(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Js(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Pl(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},Pe)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},Pe)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return n.ch<e.getLine(n.line).search(/\S/)?Js(e,t.head):n},Pe)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],i=e.listSelections(),n=e.options.tabSize,o=0;o<i.length;o++){var s=i[o].from(),l=ce(e.getLine(s.line),s.ch,n);t.push(P(n-l%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ji(e,function(){for(var t=e.listSelections(),i=[],n=0;n<t.length;n++){if(!t[n].empty())continue;var o=t[n].head,s=Rt(e.doc,o.line).text;if(s){if(o.ch==s.length&&(o=new je(o.line,o.ch-1)),o.ch>0)o=new je(o.line,o.ch+1),e.replaceRange(s.charAt(o.ch-1)+s.charAt(o.ch-2),je(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var l=Rt(e.doc,o.line-1).text;l&&(o=new je(o.line,1),e.replaceRange(s.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),je(o.line-1,l.length-1),o,"+transpose"))}}i.push(new Rn(o,o))}e.setSelections(i)})},newlineAndIndent:function(e){return Ji(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);$o(e)})},openLine:function(e){return e.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Qs(e,t){var i=Rt(e.doc,t),n=ui(i);return n!=i&&(t=Jt(n)),ss(!0,e,n,t,1)}function Pl(e,t){var i=Rt(e.doc,t),n=vo(i);return n!=i&&(t=Jt(n)),ss(!0,e,i,t,-1)}function Js(e,t){var i=Qs(e,t.line),n=Rt(e.doc,i.line),o=ct(n,e.doc.direction);if(!o||o[0].level==0){var s=Math.max(i.ch,n.text.search(/\S/)),l=t.line==i.line&&t.ch<=s&&t.ch;return je(i.line,l?0:s,i.sticky)}return i}function Ua(e,t,i){if(typeof t=="string"&&(t=fa[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),o=t(e)!=dt}finally{e.display.shift=n,e.state.suppressEdits=!1}return o}function _l(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var o=Pr(t,e.state.keyMaps[n],i,e);if(o)return o}return e.options.extraKeys&&Pr(t,e.options.extraKeys,i,e)||Pr(t,e.options.keyMap,i,e)}var jl=new Ue;function pa(e,t,i,n){var o=e.state.keySeq;if(o){if(Gs(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:jl.set(50,function(){e.state.keySeq==o&&(e.state.keySeq=null,e.display.input.reset())}),Xs(e,o+" "+t,i,n))return!0}return Xs(e,t,i,n)}function Xs(e,t,i,n){var o=_l(e,t,n);return o=="multi"&&(e.state.keySeq=t),o=="handled"&&Tn(e,"keyHandled",e,t,i),(o=="handled"||o=="multi")&&(E(i),Mi(e)),!!o}function Ys(e,t){var i=Ks(t,!0);return i?t.shiftKey&&!e.state.keySeq?pa(e,"Shift-"+i,t,function(n){return Ua(e,n,!0)})||pa(e,i,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return Ua(e,n)}):pa(e,i,t,function(n){return Ua(e,n)}):!1}function Bl(e,t,i){return pa(e,"'"+i+"'",t,function(n){return Ua(e,n,!0)})}var ls=null;function Zs(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(t.curOp.focus=Q(),Xe(t,e))return;w&&R<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var n=Ys(t,e);T&&(ls=n?i:null,!n&&i==88&&!Zt&&(le?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),re&&!le&&!n&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Ul(t)}function Ul(e){var t=e.display.lineDiv;ue(t,"CodeMirror-crosshair");function i(n){(n.keyCode==18||!n.altKey)&&(Ce(t,"CodeMirror-crosshair"),ht(document,"keyup",i),ht(document,"mouseover",i))}Te(document,"keyup",i),Te(document,"mouseover",i)}function qs(e){e.keyCode==16&&(this.doc.sel.shift=!1),Xe(this,e)}function $s(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(wo(t.display,e)||Xe(t,e)||e.ctrlKey&&!e.altKey||le&&e.metaKey)return;var i=e.keyCode,n=e.charCode;if(T&&i==ls){ls=null,E(e);return}if(T&&(!e.which||e.which<10)&&Ys(t,e))return;var o=String.fromCharCode(n==null?i:n);if(o=="\b")return;if(Bl(t,e,o))return;t.display.input.onKeyPress(e)}var Fl=400,us=function(e,t,i){this.time=e,this.pos=t,this.button=i};us.prototype.compare=function(e,t,i){return this.time+Fl>e&&Nt(t,this.pos)==0&&i==this.button};var ma,ga;function Wl(e,t){var i=+new Date;return ga&&ga.compare(i,e,t)?(ma=ga=null,"triple"):ma&&ma.compare(i,e,t)?(ga=new us(i,e,t),ma=null,"double"):(ma=new us(i,e,t),ga=null,"single")}function el(e){var t=this,i=t.display;if(Xe(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,wo(i,e)){W||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(cs(t,e))return;var n=ki(t,e),o=Se(e),s=n?Wl(n,o):"single";if(window.focus(),o==1&&t.state.selectingText&&t.state.selectingText(e),n&&zl(t,o,n,s,e))return;o==1?n?Gl(t,n,s,e):ge(e)==i.scroller&&E(e):o==2?(n&&Ia(t.doc,n),setTimeout(function(){return i.input.focus()},20)):o==3&&(Ve?t.display.input.onContextMenu(e):Jr(t))}function zl(e,t,i,n,o){var s="Click";return n=="double"?s="Double"+s:n=="triple"&&(s="Triple"+s),s=(t==1?"Left":t==2?"Middle":"Right")+s,pa(e,Vs(s,o),o,function(l){if(typeof l=="string"&&(l=fa[l]),!l)return!1;var f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),f=l(e,i)!=dt}finally{e.state.suppressEdits=!1}return f})}function Hl(e,t,i){var n=e.getOption("configureMouse"),o=n?n(e,t,i):{};if(o.unit==null){var s=Me?i.shiftKey&&i.metaKey:i.altKey;o.unit=s?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(o.extend==null||e.doc.extend)&&(o.extend=e.doc.extend||i.shiftKey),o.addNew==null&&(o.addNew=le?i.metaKey:i.ctrlKey),o.moveOnDrag==null&&(o.moveOnDrag=!(le?i.altKey:i.ctrlKey)),o}function Gl(e,t,i,n){w?setTimeout(M(xa,e),0):e.curOp.focus=Q();var o=Hl(e,i,n),s=e.doc.sel,l;e.options.dragDrop&&Ye&&!e.isReadOnly()&&i=="single"&&(l=s.contains(t))>-1&&(Nt((l=s.ranges[l]).from(),t)<0||t.xRel>0)&&(Nt(l.to(),t)>0||t.xRel<0)?Vl(e,n,t,o):Kl(e,n,t,o)}function Vl(e,t,i,n){var o=e.display,s=!1,l=pi(e,function(y){W&&(o.scroller.draggable=!1),e.state.draggingText=!1,ht(o.wrapper.ownerDocument,"mouseup",l),ht(o.wrapper.ownerDocument,"mousemove",f),ht(o.scroller,"dragstart",p),ht(o.scroller,"drop",l),s||(E(y),n.addNew||Ia(e.doc,i,null,null,n.extend),W&&!se||w&&R==9?setTimeout(function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()},20):o.input.focus())}),f=function(y){s=s||Math.abs(t.clientX-y.clientX)+Math.abs(t.clientY-y.clientY)>=10},p=function(){return s=!0};W&&(o.scroller.draggable=!0),e.state.draggingText=l,l.copy=!n.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),Te(o.wrapper.ownerDocument,"mouseup",l),Te(o.wrapper.ownerDocument,"mousemove",f),Te(o.scroller,"dragstart",p),Te(o.scroller,"drop",l),Jr(e),setTimeout(function(){return o.input.focus()},20)}function tl(e,t,i){if(i=="char")return new Rn(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Rn(je(t.line,0),r(e.doc,je(t.line+1,0)));var n=i(e,t);return new Rn(n.from,n.to)}function Kl(e,t,i,n){var o=e.display,s=e.doc;E(t);var l,f,p=s.sel,y=p.ranges;if(n.addNew&&!n.extend?(f=s.sel.contains(i),f>-1?l=y[f]:l=new Rn(i,i)):(l=s.sel.primary(),f=s.sel.primIndex),n.unit=="rectangle")n.addNew||(l=new Rn(i,i)),i=ki(e,t,!0,!0),f=-1;else{var F=tl(e,i,n.unit);n.extend?l=is(l,F.anchor,F.head,n.extend):l=F}n.addNew?f==-1?(f=y.length,Hi(s,mo(e,y.concat([l]),f),{scroll:!1,origin:"*mouse"})):y.length>1&&y[f].empty()&&n.unit=="char"&&!n.extend?(Hi(s,mo(e,y.slice(0,f).concat(y.slice(f+1)),0),{scroll:!1,origin:"*mouse"}),p=s.sel):os(s,f,l,ze):(f=0,Hi(s,new Yi([l],0),ze),p=s.sel);var J=i;function ye(yt){if(Nt(J,yt)==0)return;if(J=yt,n.unit=="rectangle"){for(var Pt=[],Yt=e.options.tabSize,Vt=ce(Rt(s,i.line).text,i.ch,Yt),dn=ce(Rt(s,yt.line).text,yt.ch,Yt),Vn=Math.min(Vt,dn),Ni=Math.max(Vt,dn),ai=Math.min(i.line,yt.line),ro=Math.min(e.lastLine(),Math.max(i.line,yt.line));ai<=ro;ai++){var no=Rt(s,ai).text,Ei=Fe(no,Vn,Yt);Vn==Ni?Pt.push(new Rn(je(ai,Ei),je(ai,Ei))):no.length>Ei&&Pt.push(new Rn(je(ai,Ei),je(ai,Fe(no,Ni,Yt))))}Pt.length||Pt.push(new Rn(i,i)),Hi(s,mo(e,p.ranges.slice(0,f).concat(Pt),f),{origin:"*mouse",scroll:!1}),e.scrollIntoView(yt)}else{var io=l,Fi=tl(e,yt,n.unit),Ri=io.anchor,xi;Nt(Fi.anchor,Ri)>0?(xi=Fi.head,Ri=so(io.from(),Fi.anchor)):(xi=Fi.anchor,Ri=ao(io.to(),Fi.head));var di=p.ranges.slice(0);di[f]=Ql(e,new Rn(r(s,Ri),xi)),Hi(s,mo(e,di,f),ze)}}var fe=o.wrapper.getBoundingClientRect(),Be=0;function Ze(yt){var Pt=++Be,Yt=ki(e,yt,!0,n.unit=="rectangle");if(!Yt)return;if(Nt(Yt,J)!=0){e.curOp.focus=Q(),ye(Yt);var Vt=xr(o,s);(Yt.line>=Vt.to||Yt.line<Vt.from)&&setTimeout(pi(e,function(){Be==Pt&&Ze(yt)}),150)}else{var dn=yt.clientY<fe.top?-20:yt.clientY>fe.bottom?20:0;dn&&setTimeout(pi(e,function(){if(Be!=Pt)return;o.scroller.scrollTop+=dn,Ze(yt)}),50)}}function lt(yt){e.state.selectingText=!1,Be=Infinity,yt&&(E(yt),o.input.focus()),ht(o.wrapper.ownerDocument,"mousemove",vt),ht(o.wrapper.ownerDocument,"mouseup",Mt),s.history.lastSelOrigin=null}var vt=pi(e,function(yt){yt.buttons===0||!Se(yt)?lt(yt):Ze(yt)}),Mt=pi(e,lt);e.state.selectingText=Mt,Te(o.wrapper.ownerDocument,"mousemove",vt),Te(o.wrapper.ownerDocument,"mouseup",Mt)}function Ql(e,t){var i=t.anchor,n=t.head,o=Rt(e.doc,i.line);if(Nt(i,n)==0&&i.sticky==n.sticky)return t;var s=ct(o);if(!s)return t;var l=st(s,i.ch,i.sticky),f=s[l];if(f.from!=i.ch&&f.to!=i.ch)return t;var p=l+(f.from==i.ch==(f.level!=1)?0:1);if(p==0||p==s.length)return t;var y;if(n.line!=i.line)y=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var F=st(s,n.ch,n.sticky),J=F-l||(n.ch-i.ch)*(f.level==1?-1:1);F==p-1||F==p?y=J<0:y=J>0}var ye=s[p+(y?-1:0)],fe=y==(ye.level==1),Be=fe?ye.from:ye.to,Ze=fe?"after":"before";return i.ch==Be&&i.sticky==Ze?t:new Rn(new je(i.line,Be,Ze),n)}function nl(e,t,i,n){var o,s;if(t.touches)o=t.touches[0].clientX,s=t.touches[0].clientY;else try{o=t.clientX,s=t.clientY}catch(ye){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&E(t);var l=e.display,f=l.lineDiv.getBoundingClientRect();if(s>f.bottom||!Z(e,i))return O(t);s-=f.top-l.viewOffset;for(var p=0;p<e.display.gutterSpecs.length;++p){var y=l.gutters.childNodes[p];if(y&&y.getBoundingClientRect().right>=o){var F=wn(e.doc,s),J=e.display.gutterSpecs[p];return Le(e,i,e,F,J.className,t),O(t)}}}function cs(e,t){return nl(e,t,"gutterClick",!0)}function il(e,t){if(wo(e.display,t)||Jl(e,t))return;if(Xe(e,t,"contextmenu"))return;Ve||e.display.input.onContextMenu(t)}function Jl(e,t){return Z(e,"gutterContextMenu")?nl(e,t,"gutterContextMenu",!1):!1}function ol(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),on(e)}var jr={toString:function(){return"CodeMirror.Init"}},rl={},Fa={};function Xl(e){var t=e.optionHandlers;function i(n,o,s,l){e.defaults[n]=o,s&&(t[n]=l?function(f,p,y){y!=jr&&s(f,p,y)}:s)}e.defineOption=i,e.Init=jr,i("value","",function(n,o){return n.setValue(o)},!0),i("mode",null,function(n,o){n.doc.modeOption=o,Go(n)},!0),i("indentUnit",2,Go,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){oa(n),on(n),Wn(n)},!0),i("lineSeparator",null,function(n,o){if(n.doc.lineSep=o,!o)return;var s=[],l=n.doc.first;n.doc.iter(function(p){for(var y=0;;){var F=p.text.indexOf(o,y);if(F==-1)break;y=F+o.length,s.push(je(l,F))}l++});for(var f=s.length-1;f>=0;f--)Ir(n.doc,o,s[f],je(s[f].line,s[f].ch+o.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,o,s){n.state.specialChars=new RegExp(o.source+(o.test(" ")?"":"| "),"g"),s!=jr&&n.refresh()}),i("specialCharPlaceholder",jt,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,o){return n.getInputField().spellcheck=o},!0),i("autocorrect",!1,function(n,o){return n.getInputField().autocorrect=o},!0),i("autocapitalize",!1,function(n,o){return n.getInputField().autocapitalize=o},!0),i("rtlMoveVisually",!Je),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){ol(n),Ao(n)},!0),i("keyMap","default",function(n,o,s){var l=Ba(o),f=s!=jr&&Ba(s);f&&f.detach&&f.detach(n,l),l.attach&&l.attach(n,f||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(n,o){n.display.gutterSpecs=Xi(o,n.options.lineNumbers),Ao(n)},!0),i("fixedGutter",!0,function(n,o){n.display.gutters.style.left=o?zi(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return Wo(n)},!0),i("scrollbarStyle","native",function(n){Sr(n),Wo(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,o){n.display.gutterSpecs=Xi(n.options.gutters,o),Ao(n)},!0),i("firstLineNumber",1,Ao,!0),i("lineNumberFormatter",function(n){return n},Ao,!0),i("showCursorWhenSelecting",!1,Bn,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,o){o=="nocursor"&&(qo(n),n.display.input.blur()),n.display.input.readOnlyChanged(o)}),i("screenReaderLabel",null,function(n,o){o=o===""?null:o,n.display.input.screenReaderLabelChanged(o)}),i("disableInput",!1,function(n,o){o||n.display.input.reset()},!0),i("dragDrop",!0,Yl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Bn,!0),i("singleCursorHeightPerLine",!0,Bn,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,oa,!0),i("addModeClass",!1,oa,!0),i("pollInterval",100),i("undoDepth",200,function(n,o){return n.doc.history.undoDepth=o}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,oa,!0),i("moveInputWithCursor",!0,function(n,o){o||n.display.input.resetPosition()}),i("tabindex",null,function(n,o){return n.display.input.getField().tabIndex=o||""}),i("autofocus",null),i("direction","ltr",function(n,o){return n.doc.setDirection(o)},!0),i("phrases",null)}function Yl(e,t,i){var n=i&&i!=jr;if(!t!=!n){var o=e.display.dragFunctions,s=t?Te:ht;s(e.display.scroller,"dragstart",o.start),s(e.display.scroller,"dragenter",o.enter),s(e.display.scroller,"dragover",o.over),s(e.display.scroller,"dragleave",o.leave),s(e.display.scroller,"drop",o.drop)}}function Zl(e){e.options.lineWrapping?(ue(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Ce(e.display.wrapper,"CodeMirror-wrap"),yo(e)),Qi(e),Wn(e),on(e),setTimeout(function(){return Wo(e)},100)}function ii(e,t){var i=this;if(!(this instanceof ii))return new ii(e,t);this.options=t=t?v(t):{},v(rl,t,!1);var n=t.value;typeof n=="string"?n=new to(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var o=new ii.inputStyles[t.inputStyle](this),s=this.display=new mr(e,n,o,t);s.wrapper.CodeMirror=this,ol(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Sr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ue,keySeq:null,specialChars:null},t.autofocus&&!A&&s.input.focus(),w&&R<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Tl(),_o(this),this.curOp.forceUpdate=!0,vs(this,n),t.autofocus&&!A||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&No(i)},20):qo(this);for(var l in Fa)Fa.hasOwnProperty(l)&&Fa[l](this,t[l],jr);Oi(this),t.finishInit&&t.finishInit(this);for(var f=0;f<ds.length;++f)ds[f](this);zo(this),W&&t.lineWrapping&&getComputedStyle(s.lineDiv).textRendering=="optimizelegibility"&&(s.lineDiv.style.textRendering="auto")}ii.defaults=rl,ii.optionHandlers=Fa;function ql(e){var t=e.display;Te(t.scroller,"mousedown",pi(e,el)),w&&R<11?Te(t.scroller,"dblclick",pi(e,function(p){if(Xe(e,p))return;var y=ki(e,p);if(!y||cs(e,p)||wo(e.display,p))return;E(p);var F=e.findWordAt(y);Ia(e.doc,F.anchor,F.head)})):Te(t.scroller,"dblclick",function(p){return Xe(e,p)||E(p)}),Te(t.scroller,"contextmenu",function(p){return il(e,p)}),Te(t.input.getField(),"contextmenu",function(p){t.scroller.contains(p.target)||il(e,p)});var i,n={end:0};function o(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function s(p){if(p.touches.length!=1)return!1;var y=p.touches[0];return y.radiusX<=1&&y.radiusY<=1}function l(p,y){if(y.left==null)return!0;var F=y.left-p.left,J=y.top-p.top;return F*F+J*J>20*20}Te(t.scroller,"touchstart",function(p){if(!Xe(e,p)&&!s(p)&&!cs(e,p)){t.input.ensurePolled(),clearTimeout(i);var y=+new Date;t.activeTouch={start:y,moved:!1,prev:y-n.end<=300?n:null},p.touches.length==1&&(t.activeTouch.left=p.touches[0].pageX,t.activeTouch.top=p.touches[0].pageY)}}),Te(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Te(t.scroller,"touchend",function(p){var y=t.activeTouch;if(y&&!wo(t,p)&&y.left!=null&&!y.moved&&new Date-y.start<300){var F=e.coordsChar(t.activeTouch,"page"),J;!y.prev||l(y,y.prev)?J=new Rn(F,F):!y.prev.prev||l(y,y.prev.prev)?J=e.findWordAt(F):J=new Rn(je(F.line,0),r(e.doc,je(F.line+1,0))),e.setSelection(J.anchor,J.head),e.focus(),E(p)}o()}),Te(t.scroller,"touchcancel",o),Te(t.scroller,"scroll",function(){t.scroller.clientHeight&&(tr(e,t.scroller.scrollTop),fo(e,t.scroller.scrollLeft,!0),Le(e,"scroll",e))}),Te(t.scroller,"mousewheel",function(p){return na(e,p)}),Te(t.scroller,"DOMMouseScroll",function(p){return na(e,p)}),Te(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(p){Xe(e,p)||j(p)},over:function(p){Xe(e,p)||(Ol(e,p),j(p))},start:function(p){return Ml(e,p)},drop:pi(e,kl),leave:function(p){Xe(e,p)||Ws(e)}};var f=t.input.getField();Te(f,"keyup",function(p){return qs.call(e,p)}),Te(f,"keydown",pi(e,Zs)),Te(f,"keypress",pi(e,$s)),Te(f,"focus",function(p){return No(e,p)}),Te(f,"blur",function(p){return qo(e,p)})}var ds=[];ii.defineInitHook=function(e){return ds.push(e)};function va(e,t,i,n){var o=e.doc,s;i==null&&(i="add"),i=="smart"&&(o.mode.indent?s=ve(e,t).state:i="prev");var l=e.options.tabSize,f=Rt(o,t),p=ce(f.text,null,l);f.stateAfter&&(f.stateAfter=null);var y=f.text.match(/^\s*/)[0],F;if(!n&&!/\S/.test(f.text))F=0,i="not";else if(i=="smart"&&(F=o.mode.indent(s,f.text.slice(y.length),f.text),F==dt||F>150)){if(!n)return;i="prev"}i=="prev"?t>o.first?F=ce(Rt(o,t-1).text,null,l):F=0:i=="add"?F=p+e.options.indentUnit:i=="subtract"?F=p-e.options.indentUnit:typeof i=="number"&&(F=p+i),F=Math.max(0,F);var J="",ye=0;if(e.options.indentWithTabs)for(var fe=Math.floor(F/l);fe;--fe)ye+=l,J+=" ";if(ye<F&&(J+=P(F-ye)),J!=y)return Ir(o,J,je(t,0),je(t,y.length),"+input"),f.stateAfter=null,!0;for(var Be=0;Be<o.sel.ranges.length;Be++){var Ze=o.sel.ranges[Be];if(Ze.head.line==t&&Ze.head.ch<y.length){var lt=je(t,y.length);os(o,Be,new Rn(lt,lt));break}}}var Mo=null;function Wa(e){Mo=e}function hs(e,t,i,n,o){var s=e.doc;e.display.shift=!1,n||(n=s.sel);var l=+new Date-200,f=o=="paste"||e.state.pasteIncoming>l,p=Ct(t),y=null;if(f&&n.ranges.length>1)if(Mo&&Mo.text.join(`
|
|
`)==t){if(n.ranges.length%Mo.text.length==0){y=[];for(var F=0;F<Mo.text.length;F++)y.push(s.splitLines(Mo.text[F]))}}else p.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(y=Tt(p,function(vt){return[vt]}));for(var J=e.curOp.updateInput,ye=n.ranges.length-1;ye>=0;ye--){var fe=n.ranges[ye],Be=fe.from(),Ze=fe.to();fe.empty()&&(i&&i>0?Be=je(Be.line,Be.ch-i):e.state.overwrite&&!f?Ze=je(Ze.line,Math.min(Rt(s,Ze.line).text.length,Ze.ch+nt(p).length)):f&&Mo&&Mo.lineWise&&Mo.text.join(`
|
|
`)==p.join(`
|
|
`)&&(Be=Ze=je(Be.line,0)));var lt={from:Be,to:Ze,text:y?y[ye%y.length]:p,origin:o||(f?"paste":e.state.cutIncoming>l?"cut":"+input")};Lr(e.doc,lt),Tn(e,"inputRead",e,lt)}t&&!f&&sl(e,t),$o(e),e.curOp.updateInput<2&&(e.curOp.updateInput=J),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function al(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ji(t,function(){return hs(t,i,0,null,"paste")}),!0}function sl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var o=i.ranges[n];if(o.head.ch>100||n&&i.ranges[n-1].head.line==o.head.line)continue;var s=e.getModeAt(o.head),l=!1;if(s.electricChars){for(var f=0;f<s.electricChars.length;f++)if(t.indexOf(s.electricChars.charAt(f))>-1){l=va(e,o.head.line,"smart");break}}else s.electricInput&&(s.electricInput.test(Rt(e.doc,o.head.line).text.slice(0,o.head.ch))&&(l=va(e,o.head.line,"smart")));l&&Tn(e,"electricInput",e,o.head.line)}}function ll(e){for(var t=[],i=[],n=0;n<e.doc.sel.ranges.length;n++){var o=e.doc.sel.ranges[n].head.line,s={anchor:je(o,0),head:je(o+1,0)};i.push(s),t.push(e.getRange(s.anchor,s.head))}return{text:t,ranges:i}}function ul(e,t,i,n){e.setAttribute("autocorrect",i?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function cl(){var e=B("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=B("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return W?e.style.width="1000px":e.setAttribute("wrap","off"),D&&(e.style.border="1px solid black"),ul(e),t}function $l(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,o){var s=this.options,l=s[n];if(s[n]==o&&n!="mode")return;s[n]=o,t.hasOwnProperty(n)&&pi(this,t[n])(this,o,l),Le(this,"optionChange",this,n)},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,o){this.state.keyMaps[o?"push":"unshift"](Ba(n))},removeKeyMap:function(n){for(var o=this.state.keyMaps,s=0;s<o.length;++s)if(o[s]==n||o[s].name==n)return o.splice(s,1),!0},addOverlay:Ui(function(n,o){var s=n.token?n:e.getMode(this.options,n);if(s.startState)throw new Error("Overlays may not be stateful.");Ut(this.state.overlays,{mode:s,modeSpec:n,opaque:o&&o.opaque,priority:o&&o.priority||0},function(l){return l.priority}),this.state.modeGen++,Wn(this)}),removeOverlay:Ui(function(n){for(var o=this.state.overlays,s=0;s<o.length;++s){var l=o[s].modeSpec;if(l==n||typeof n=="string"&&l.name==n){o.splice(s,1),this.state.modeGen++,Wn(this);return}}}),indentLine:Ui(function(n,o,s){typeof o!="string"&&typeof o!="number"&&(o==null?o=this.options.smartIndent?"smart":"prev":o=o?"add":"subtract"),en(this.doc,n)&&va(this,n,o,s)}),indentSelection:Ui(function(n){for(var o=this.doc.sel.ranges,s=-1,l=0;l<o.length;l++){var f=o[l];if(f.empty())f.head.line>s&&(va(this,f.head.line,n,!0),s=f.head.line,l==this.doc.sel.primIndex&&$o(this));else{var p=f.from(),y=f.to(),F=Math.max(s,p.line);s=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(var J=F;J<s;++J)va(this,J,n);var ye=this.doc.sel.ranges;p.ch==0&&o.length==ye.length&&ye[l].from().ch>0&&os(this.doc,l,new Rn(p,ye[l].to()),We)}}}),getTokenAt:function(n,o){return kt(this,n,o)},getLineTokens:function(n,o){return kt(this,je(n),o,!0)},getTokenTypeAt:function(n){n=r(this.doc,n);var o=Ge(this,Rt(this.doc,n.line)),s=0,l=(o.length-1)/2,f=n.ch,p;if(f==0)p=o[2];else for(;;){var y=s+l>>1;if((y?o[y*2-1]:0)>=f)l=y;else if(o[y*2+1]<f)s=y+1;else{p=o[y*2+2];break}}var F=p?p.indexOf("overlay "):-1;return F<0?p:F==0?null:p.slice(0,F-1)},getModeAt:function(n){var o=this.doc.mode;return o.innerMode?e.innerMode(o,this.getTokenAt(n).state).mode:o},getHelper:function(n,o){return this.getHelpers(n,o)[0]},getHelpers:function(n,o){var s=[];if(!i.hasOwnProperty(o))return s;var l=i[o],f=this.getModeAt(n);if(typeof f[o]=="string")l[f[o]]&&s.push(l[f[o]]);else if(f[o])for(var p=0;p<f[o].length;p++){var y=l[f[o][p]];y&&s.push(y)}else f.helperType&&l[f.helperType]?s.push(l[f.helperType]):l[f.name]&&s.push(l[f.name]);for(var F=0;F<l._global.length;F++){var J=l._global[F];J.pred(f,this)&&Re(s,J.val)==-1&&s.push(J.val)}return s},getStateAfter:function(n,o){var s=this.doc;return n=d(s,n==null?s.first+s.size-1:n),ve(this,n+1,o).state},cursorCoords:function(n,o){var s,l=this.doc.sel.primary();return n==null?s=l.head:typeof n=="object"?s=r(this.doc,n):s=n?l.from():l.to(),pn(this,s,o||"page")},charCoords:function(n,o){return Zn(this,r(this.doc,n),o||"page")},coordsChar:function(n,o){return n=fn(this,n,o||"page"),vn(this,n.left,n.top)},lineAtHeight:function(n,o){return n=fn(this,{top:n,left:0},o||"page").top,wn(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,o,s){var l=!1,f;if(typeof n=="number"){var p=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>p&&(n=p,l=!0),f=Rt(this.doc,n)}else f=n;return En(this,f,{top:0,left:0},o||"page",s||l).top+(l?this.doc.height-Wi(f):0)},defaultTextHeight:function(){return ci(this.display)},defaultCharWidth:function(){return Si(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,o,s,l,f){var p=this.display;n=pn(this,r(this.doc,n));var y=n.bottom,F=n.left;if(o.style.position="absolute",o.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(o),p.sizer.appendChild(o),l=="over")y=n.top;else if(l=="above"||l=="near"){var J=Math.max(p.wrapper.clientHeight,this.doc.height),ye=Math.max(p.sizer.clientWidth,p.lineSpace.clientWidth);(l=="above"||n.bottom+o.offsetHeight>J)&&n.top>o.offsetHeight?y=n.top-o.offsetHeight:n.bottom+o.offsetHeight<=J&&(y=n.bottom),F+o.offsetWidth>ye&&(F=ye-o.offsetWidth)}o.style.top=y+"px",o.style.left=o.style.right="",f=="right"?(F=p.sizer.clientWidth-o.offsetWidth,o.style.right="0px"):(f=="left"?F=0:f=="middle"&&(F=(p.sizer.clientWidth-o.offsetWidth)/2),o.style.left=F+"px"),s&&wa(this,{left:F,top:y,right:F+o.offsetWidth,bottom:y+o.offsetHeight})},triggerOnKeyDown:Ui(Zs),triggerOnKeyPress:Ui($s),triggerOnKeyUp:qs,triggerOnMouseDown:Ui(el),execCommand:function(n){if(fa.hasOwnProperty(n))return fa[n].call(null,this)},triggerElectric:Ui(function(n){sl(this,n)}),findPosH:function(n,o,s,l){var f=1;o<0&&(f=-1,o=-o);for(var p=r(this.doc,n),y=0;y<o&&!(p=fs(this.doc,p,f,s,l),p.hitSide);++y);return p},moveH:Ui(function(n,o){var s=this;this.extendSelectionsBy(function(l){return s.display.shift||s.doc.extend||l.empty()?fs(s.doc,l.head,n,o,s.options.rtlMoveVisually):n<0?l.from():l.to()},Pe)}),deleteH:Ui(function(n,o){var s=this.doc.sel,l=this.doc;s.somethingSelected()?l.replaceSelection("",null,"+delete"):_r(this,function(f){var p=fs(l,f.head,n,o,!1);return n<0?{from:p,to:f.head}:{from:f.head,to:p}})}),findPosV:function(n,o,s,l){var f=1,p=l;o<0&&(f=-1,o=-o);for(var y=r(this.doc,n),F=0;F<o;++F){var J=pn(this,y,"div");if(p==null?p=J.left:J.left=p,y=dl(this,J,f,s),y.hitSide)break}return y},moveV:Ui(function(n,o){var s=this,l=this.doc,f=[],p=!this.display.shift&&!l.extend&&l.sel.somethingSelected();if(l.extendSelectionsBy(function(F){if(p)return n<0?F.from():F.to();var J=pn(s,F.head,"div");F.goalColumn!=null&&(J.left=F.goalColumn),f.push(J.left);var ye=dl(s,J,n,o);return o=="page"&&F==l.sel.primary()&&Zr(s,Zn(s,ye,"div").top-J.top),ye},Pe),f.length)for(var y=0;y<l.sel.ranges.length;y++)l.sel.ranges[y].goalColumn=f[y]}),findWordAt:function(n){var o=this.doc,s=Rt(o,n.line).text,l=n.ch,f=n.ch;if(s){var p=this.getHelper(n,"wordChars");(n.sticky=="before"||f==s.length)&&l?--l:++f;for(var y=s.charAt(l),F=pt(y,p)?function(J){return pt(J,p)}:/\s/.test(y)?function(J){return/\s/.test(J)}:function(J){return!/\s/.test(J)&&!pt(J)};l>0&&F(s.charAt(l-1));)--l;for(;f<s.length&&F(s.charAt(f));)++f}return new Rn(je(n.line,l),je(n.line,f))},toggleOverwrite:function(n){if(n!=null&&n==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):Ce(this.display.cursorDiv,"CodeMirror-overwrite"),Le(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==Q()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ui(function(n,o){er(this,n,o)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-oe(this)-this.display.barHeight,width:n.scrollWidth-oe(this)-this.display.barWidth,clientHeight:g(this),clientWidth:U(this)}},scrollIntoView:Ui(function(n,o){n==null?(n={from:this.doc.sel.primary().head,to:null},o==null&&(o=this.options.cursorScrollMargin)):typeof n=="number"?n={from:je(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=o||0,n.from.line!=null?Xa(this,n):dr(this,n.from,n.to,n.margin)}),setSize:Ui(function(n,o){var s=this,l=function(p){return typeof p=="number"||/^\d+$/.test(String(p))?p+"px":p};n!=null&&(this.display.wrapper.style.width=l(n)),o!=null&&(this.display.wrapper.style.height=l(o)),this.options.lineWrapping&&tn(this);var f=this.display.viewFrom;this.doc.iter(f,this.display.viewTo,function(p){if(p.widgets){for(var y=0;y<p.widgets.length;y++)if(p.widgets[y].noHScroll){ni(s,f,"widget");break}}++f}),this.curOp.forceUpdate=!0,Le(this,"refresh",this)}),operation:function(n){return Ji(this,n)},startOperation:function(){return _o(this)},endOperation:function(){return zo(this)},refresh:Ui(function(){var n=this.display.cachedTextHeight;Wn(this),this.curOp.forceUpdate=!0,on(this),er(this,this.doc.scrollLeft,this.doc.scrollTop),Mr(this.display),(n==null||Math.abs(n-ci(this.display))>.5||this.options.lineWrapping)&&Qi(this),Le(this,"refresh",this)}),swapDoc:Ui(function(n){var o=this.doc;return o.cm=null,this.state.selectingText&&this.state.selectingText(),vs(this,n),on(this),this.display.input.reset(),er(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,Tn(this,"swapDoc",this,o),o}),phrase:function(n){var o=this.options.phrases;return o&&Object.prototype.hasOwnProperty.call(o,n)?o[n]:n},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ee(e),e.registerHelper=function(n,o,s){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][o]=s},e.registerGlobalHelper=function(n,o,s,l){e.registerHelper(n,o,l),i[n]._global.push({pred:s,val:l})}}function fs(e,t,i,n,o){var s=t,l=i,f=Rt(e,t.line),p=o&&e.direction=="rtl"?-i:i;function y(){var Mt=t.line+p;return Mt<e.first||Mt>=e.first+e.size?!1:(t=new je(Mt,t.ch,t.sticky),f=Rt(e,Mt))}function F(Mt){var yt;if(n=="codepoint"){var Pt=f.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(Pt)?yt=null:yt=new je(t.line,Math.max(0,Math.min(f.text.length,t.ch+i*(Pt>=55296&&Pt<56320?2:1))),-i)}else o?yt=Nl(e.cm,f,t,i):yt=as(f,t,i);if(yt==null)if(!Mt&&y())t=ss(o,e.cm,f,t.line,p);else return!1;else t=yt;return!0}if(n=="char"||n=="codepoint")F();else if(n=="column")F(!0);else if(n=="word"||n=="group")for(var J=null,ye=n=="group",fe=e.cm&&e.cm.getHelper(t,"wordChars"),Be=!0;!(i<0&&!F(!Be));Be=!1){var Ze=f.text.charAt(t.ch)||`
|
|
`,lt=pt(Ze,fe)?"w":ye&&Ze==`
|
|
`?"n":!ye||/\s/.test(Ze)?null:"p";if(ye&&!Be&&!lt&&(lt="s"),J&&J!=lt){i<0&&(i=1,F(),t.sticky="after");break}if(lt&&(J=lt),i>0&&!F(!Be))break}var vt=Pa(e,t,s,l,!0);return Jn(s,vt)&&(vt.hitSide=!0),vt}function dl(e,t,i,n){var o=e.doc,s=t.left,l;if(n=="page"){var f=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),p=Math.max(f-.5*ci(e.display),3);l=(i>0?t.bottom:t.top)+i*p}else n=="line"&&(l=i>0?t.bottom+3:t.top-3);for(var y;!(y=vn(e,s,l),!y.outside);){if(i<0?l<=0:l>=o.height){y.hitSide=!0;break}l+=i*5}return y}var zn=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zn.prototype.init=function(e){var t=this,i=this,n=i.cm,o=i.div=e.lineDiv;ul(o,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function s(f){for(var p=f.target;p;p=p.parentNode){if(p==o)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(p.className))break}return!1}Te(o,"paste",function(f){if(!s(f)||Xe(n,f)||al(f,n))return;R<=11&&setTimeout(pi(n,function(){return t.updateFromDOM()}),20)}),Te(o,"compositionstart",function(f){t.composing={data:f.data,done:!1}}),Te(o,"compositionupdate",function(f){t.composing||(t.composing={data:f.data,done:!1})}),Te(o,"compositionend",function(f){t.composing&&(f.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Te(o,"touchstart",function(){return i.forceCompositionEnd()}),Te(o,"input",function(){t.composing||t.readFromDOMSoon()});function l(f){if(!s(f)||Xe(n,f))return;if(n.somethingSelected())Wa({lineWise:!1,text:n.getSelections()}),f.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var p=ll(n);Wa({lineWise:!0,text:p.text}),f.type=="cut"&&n.operation(function(){n.setSelections(p.ranges,0,We),n.replaceSelection("",null,"cut")})}else return;if(f.clipboardData){f.clipboardData.clearData();var y=Mo.text.join(`
|
|
`);if(f.clipboardData.setData("Text",y),f.clipboardData.getData("Text")==y){f.preventDefault();return}}var F=cl(),J=F.firstChild;n.display.lineSpace.insertBefore(F,n.display.lineSpace.firstChild),J.value=Mo.text.join(`
|
|
`);var ye=document.activeElement;De(J),setTimeout(function(){n.display.lineSpace.removeChild(F),ye.focus(),ye==o&&i.showPrimarySelection()},50)}Te(o,"copy",l),Te(o,"cut",l)},zn.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zn.prototype.prepareSelection=function(){var e=bo(this.cm,!1);return e.focus=document.activeElement==this.div,e},zn.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},zn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zn.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),o=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||o.line<t.display.viewFrom){e.removeAllRanges();return}var s=za(t,e.anchorNode,e.anchorOffset),l=za(t,e.focusNode,e.focusOffset);if(s&&!s.bad&&l&&!l.bad&&Nt(so(s,l),n)==0&&Nt(ao(s,l),o)==0)return;var f=t.display.view,p=n.line>=t.display.viewFrom&&hl(t,n)||{node:f[0].measure.map[2],offset:0},y=o.line<t.display.viewTo&&hl(t,o);if(!y){var F=f[f.length-1].measure,J=F.maps?F.maps[F.maps.length-1]:F.map;y={node:J[J.length-1],offset:J[J.length-2]-J[J.length-3]}}if(!p||!y){e.removeAllRanges();return}var ye=e.rangeCount&&e.getRangeAt(0),fe;try{fe=me(p.node,p.offset,y.offset,y.node)}catch(Be){}fe&&(!re&&t.state.focused?(e.collapse(p.node,p.offset),fe.collapsed||(e.removeAllRanges(),e.addRange(fe))):(e.removeAllRanges(),e.addRange(fe)),ye&&e.anchorNode==null?e.addRange(ye):re&&this.startGracePeriod()),this.rememberSelection()},zn.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},zn.prototype.showMultipleSelections=function(e){be(this.cm.display.cursorDiv,e.cursors),be(this.cm.display.selectionDiv,e.selection)},zn.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},zn.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return S(this.div,t)},zn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},zn.prototype.blur=function(){this.div.blur()},zn.prototype.getField=function(){return this.div},zn.prototype.supportsTouch=function(){return!0},zn.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ji(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},zn.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},zn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),t=this.cm;if(_&&L&&this.cm.display.gutterSpecs.length&&eu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var i=za(t,e.anchorNode,e.anchorOffset),n=za(t,e.focusNode,e.focusOffset);i&&n&&Ji(t,function(){Hi(t.doc,So(i,n),We),(i.bad||n.bad)&&(t.curOp.selectionChanged=!0)})},zn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,i=e.doc.sel.primary(),n=i.from(),o=i.to();if(n.ch==0&&n.line>e.firstLine()&&(n=je(n.line-1,Rt(e.doc,n.line-1).length)),o.ch==Rt(e.doc,o.line).text.length&&o.line<e.lastLine()&&(o=je(o.line+1,0)),n.line<t.viewFrom||o.line>t.viewTo-1)return!1;var s,l,f;n.line==t.viewFrom||(s=Gn(e,n.line))==0?(l=Jt(t.view[0].line),f=t.view[0].node):(l=Jt(t.view[s].line),f=t.view[s-1].node.nextSibling);var p=Gn(e,o.line),y,F;if(p==t.view.length-1?(y=t.viewTo-1,F=t.lineDiv.lastChild):(y=Jt(t.view[p+1].line)-1,F=t.view[p+1].node.previousSibling),!f)return!1;for(var J=e.doc.splitLines(tu(e,f,F,l,y)),ye=ji(e.doc,je(l,0),je(y,Rt(e.doc,y).text.length));J.length>1&&ye.length>1;)if(nt(J)==nt(ye))J.pop(),ye.pop(),y--;else if(J[0]==ye[0])J.shift(),ye.shift(),l++;else break;for(var fe=0,Be=0,Ze=J[0],lt=ye[0],vt=Math.min(Ze.length,lt.length);fe<vt&&Ze.charCodeAt(fe)==lt.charCodeAt(fe);)++fe;for(var Mt=nt(J),yt=nt(ye),Pt=Math.min(Mt.length-(J.length==1?fe:0),yt.length-(ye.length==1?fe:0));Be<Pt&&Mt.charCodeAt(Mt.length-Be-1)==yt.charCodeAt(yt.length-Be-1);)++Be;if(J.length==1&&ye.length==1&&l==n.line)for(;fe&&fe>n.ch&&Mt.charCodeAt(Mt.length-Be-1)==yt.charCodeAt(yt.length-Be-1);)fe--,Be++;J[J.length-1]=Mt.slice(0,Mt.length-Be).replace(/^\u200b+/,""),J[0]=J[0].slice(fe).replace(/\u200b+$/,"");var Yt=je(l,fe),Vt=je(y,ye.length?nt(ye).length-Be:0);if(J.length>1||J[0]||Nt(Yt,Vt))return Ir(e.doc,J,Yt,Vt,"+input"),!0},zn.prototype.ensurePolled=function(){this.forceCompositionEnd()},zn.prototype.reset=function(){this.forceCompositionEnd()},zn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},zn.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},zn.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ji(this.cm,function(){return Wn(e.cm)})},zn.prototype.setUneditable=function(e){e.contentEditable="false"},zn.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pi(this.cm,hs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},zn.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zn.prototype.onContextMenu=function(){},zn.prototype.resetPosition=function(){},zn.prototype.needsContentAttribute=!0;function hl(e,t){var i=ae(e,t.line);if(!i||i.hidden)return null;var n=Rt(e.doc,t.line),o=b(i,n,t.line),s=ct(n,e.doc.direction),l="left";if(s){var f=st(s,t.ch);l=f%2?"right":"left"}var p=it(o.map,t.ch,l);return p.offset=p.collapse=="right"?p.end:p.start,p}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Br(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,n,o){var s="",l=!1,f=e.doc.lineSeparator(),p=!1;function y(fe){return function(Be){return Be.id==fe}}function F(){l&&(s+=f,p&&(s+=f),l=p=!1)}function J(fe){fe&&(F(),s+=fe)}function ye(fe){if(fe.nodeType==1){var Be=fe.getAttribute("cm-text");if(Be){J(Be);return}var Ze=fe.getAttribute("cm-marker"),lt;if(Ze){var vt=e.findMarks(je(n,0),je(o+1,0),y(+Ze));vt.length&&(lt=vt[0].find(0))&&J(ji(e.doc,lt.from,lt.to).join(f));return}if(fe.getAttribute("contenteditable")=="false")return;var Mt=/^(pre|div|p|li|table|br)$/i.test(fe.nodeName);if(!/^br$/i.test(fe.nodeName)&&fe.textContent.length==0)return;Mt&&F();for(var yt=0;yt<fe.childNodes.length;yt++)ye(fe.childNodes[yt]);/^(pre|p)$/i.test(fe.nodeName)&&(p=!0),Mt&&(l=!0)}else fe.nodeType==3&&J(fe.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(ye(t),t==i);)t=t.nextSibling,p=!1;return s}function za(e,t,i){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[i],!n)return Br(e.clipPos(je(e.display.viewTo-1)),!0);t=null,i=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var o=0;o<e.display.view.length;o++){var s=e.display.view[o];if(s.node==n)return nu(s,t,i)}}function nu(e,t,i){var n=e.text.firstChild,o=!1;if(!t||!S(n,t))return Br(je(Jt(e.line),0),!0);if(t==n&&(o=!0,t=n.childNodes[i],i=0,!t)){var s=e.rest?nt(e.rest):e.line;return Br(je(Jt(s),s.text.length),o)}var l=t.nodeType==3?t:null,f=t;for(!l&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(l=t.firstChild,i&&(i=l.nodeValue.length));f.parentNode!=n;)f=f.parentNode;var p=e.measure,y=p.maps;function F(lt,vt,Mt){for(var yt=-1;yt<(y?y.length:0);yt++)for(var Pt=yt<0?p.map:y[yt],Yt=0;Yt<Pt.length;Yt+=3){var Vt=Pt[Yt+2];if(Vt==lt||Vt==vt){var dn=Jt(yt<0?e.line:e.rest[yt]),Vn=Pt[Yt]+Mt;return(Mt<0||Vt!=lt)&&(Vn=Pt[Yt+(Mt?1:0)]),je(dn,Vn)}}}var J=F(l,f,i);if(J)return Br(J,o);for(var ye=f.nextSibling,fe=l?l.nodeValue.length-i:0;ye;ye=ye.nextSibling){if(J=F(ye,ye.firstChild,0),J)return Br(je(J.line,J.ch-fe),o);fe+=ye.textContent.length}for(var Be=f.previousSibling,Ze=i;Be;Be=Be.previousSibling){if(J=F(Be,Be.firstChild,-1),J)return Br(je(J.line,J.ch+Ze),o);Ze+=Be.textContent.length}}var gi=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ue,this.hasSelection=!1,this.composing=null};gi.prototype.init=function(e){var t=this,i=this,n=this.cm;this.createField(e);var o=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),D&&(o.style.width="0px"),Te(o,"input",function(){w&&R>=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Te(o,"paste",function(l){if(Xe(n,l)||al(l,n))return;n.state.pasteIncoming=+new Date,i.fastPoll()});function s(l){if(Xe(n,l))return;if(n.somethingSelected())Wa({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var f=ll(n);Wa({lineWise:!0,text:f.text}),l.type=="cut"?n.setSelections(f.ranges,null,We):(i.prevInput="",o.value=f.text.join(`
|
|
`),De(o))}else return;l.type=="cut"&&(n.state.cutIncoming=+new Date)}Te(o,"cut",s),Te(o,"copy",s),Te(e.scroller,"paste",function(l){if(wo(e,l)||Xe(n,l))return;if(!o.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var f=new Event("paste");f.clipboardData=l.clipboardData,o.dispatchEvent(f)}),Te(e.lineSpace,"selectstart",function(l){wo(e,l)||E(l)}),Te(o,"compositionstart",function(){var l=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:l,range:n.markText(l,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Te(o,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},gi.prototype.createField=function(e){this.wrapper=cl(),this.textarea=this.wrapper.firstChild},gi.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},gi.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,n=bo(e);if(e.options.moveInputWithCursor){var o=pn(e,i.sel.primary().head,"div"),s=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+l.top-s.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+l.left-s.left))}return n},gi.prototype.showSelection=function(e){var t=this.cm,i=t.display;be(i.cursorDiv,e.cursors),be(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},gi.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&De(this.textarea),w&&R>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",w&&R>=9&&(this.hasSelection=null))},gi.prototype.getField=function(){return this.textarea},gi.prototype.supportsTouch=function(){return!1},gi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||Q()!=this.textarea))try{this.textarea.focus()}catch(e){}},gi.prototype.blur=function(){this.textarea.blur()},gi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gi.prototype.receivedFocus=function(){this.slowPoll()},gi.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},gi.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},gi.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||et(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=i.value;if(o==n&&!t.somethingSelected())return!1;if(w&&R>=9&&this.hasSelection===o||le&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var s=o.charCodeAt(0);if(s==8203&&!n&&(n="\u200B"),s==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,f=Math.min(n.length,o.length);l<f&&n.charCodeAt(l)==o.charCodeAt(l);)++l;return Ji(t,function(){hs(t,o.slice(l),n.length-l,null,e.composing?"*compose":null),o.length>1e3||o.indexOf(`
|
|
`)>-1?i.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gi.prototype.onKeyPress=function(){w&&R>=9&&(this.hasSelection=null),this.fastPoll()},gi.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var s=ki(i,e),l=n.scroller.scrollTop;if(!s||T)return;var f=i.options.resetSelectionOnContextMenu;f&&i.doc.sel.contains(s)==-1&&pi(i,Hi)(i.doc,So(s),We);var p=o.style.cssText,y=t.wrapper.style.cssText,F=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",o.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(e.clientY-F.top-5)+"px; left: "+(e.clientX-F.left-5)+`px;
|
|
z-index: 1000; background: `+(w?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var J;W&&(J=window.scrollY),n.input.focus(),W&&window.scrollTo(null,J),n.input.reset(),i.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=fe,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function ye(){if(o.selectionStart!=null){var Ze=i.somethingSelected(),lt="\u200B"+(Ze?o.value:"");o.value="\u21DA",o.value=lt,t.prevInput=Ze?"":"\u200B",o.selectionStart=1,o.selectionEnd=lt.length,n.selForContextMenu=i.doc.sel}}function fe(){if(t.contextMenuPending!=fe)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=y,o.style.cssText=p,w&&R<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=l),o.selectionStart!=null){(!w||w&&R<9)&&ye();var Ze=0,lt=function(){n.selForContextMenu==i.doc.sel&&o.selectionStart==0&&o.selectionEnd>0&&t.prevInput=="\u200B"?pi(i,Rs)(i):Ze++<10?n.detectingSelectAll=setTimeout(lt,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(lt,200)}}if(w&&R>=9&&ye(),Ve){j(e);var Be=function(){ht(window,"mouseup",Be),setTimeout(fe,20)};Te(window,"mouseup",Be)}else setTimeout(fe,50)},gi.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},gi.prototype.setUneditable=function(){},gi.prototype.needsContentAttribute=!1;function iu(e,t){if(t=t?v(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=Q();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=f.getValue()}var o;if(e.form&&(Te(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var s=e.form;o=s.submit;try{var l=s.submit=function(){n(),s.submit=o,s.submit(),s.submit=l}}catch(p){}}t.finishInit=function(p){p.save=n,p.getTextArea=function(){return e},p.toTextArea=function(){p.toTextArea=isNaN,n(),e.parentNode.removeChild(p.getWrapperElement()),e.style.display="",e.form&&(ht(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=o))}},e.style.display="none";var f=ii(function(p){return e.parentNode.insertBefore(p,e.nextSibling)},t);return f}function ou(e){e.off=ht,e.on=Te,e.wheelEventPixels=ta,e.Doc=to,e.splitLines=Ct,e.countColumn=ce,e.findColumn=Fe,e.isWordChar=rt,e.Pass=dt,e.signal=Le,e.Line=Ro,e.changeEnd=ko,e.scrollbarModel=qr,e.Pos=je,e.cmpPos=Nt,e.modes=un,e.mimeModes=Wt,e.resolveMode=It,e.getMode=vi,e.modeExtensions=si,e.extendMode=Qn,e.copyState=oi,e.startState=Di,e.innerMode=_i,e.commands=fa,e.keyMap=Vo,e.keyName=Ks,e.isModifierKey=Gs,e.lookupKey=Pr,e.normalizeKeyMap=Il,e.StringStream=cn,e.SharedTextMarker=ca,e.TextMarker=rr,e.LineWidget=ua,e.e_preventDefault=E,e.e_stopPropagation=x,e.e_stop=j,e.addClass=ue,e.contains=S,e.rmClass=Ce,e.keyNames=ar}Xl(ii),$l(ii);var ru="iter insert remove copy getEditor constructor".split(" ");for(var Ha in to.prototype)to.prototype.hasOwnProperty(Ha)&&Re(ru,Ha)<0&&(ii.prototype[Ha]=function(e){return function(){return e.apply(this.doc,arguments)}}(to.prototype[Ha]));return ee(to),ii.inputStyles={textarea:gi,contenteditable:zn},ii.defineMode=function(e){!ii.defaults.mode&&e!="null"&&(ii.defaults.mode=e),Kn.apply(this,arguments)},ii.defineMIME=In,ii.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ii.defineMIME("text/plain","null"),ii.defineExtension=function(e,t){ii.prototype[e]=t},ii.defineDocExtension=function(e,t){to.prototype[e]=t},ii.fromTextArea=iu,ou(ii),ii.version="5.58.2",ii})},W6BS:function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQ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/8CAe3hZpCQX/4AAAAASUVORK5CYII="},Xsq0:function(Oe,Ae,h){Oe.exports=h.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(Oe,Ae,h){"use strict";h.r(Ae),h.d(Ae,"ResizableTextArea",function(){return Re});var I=h("wx14"),de=h("1OyB"),re=h("vuIU"),X=h("Ji7U"),C=h("LK+K"),ne=h("q1tI"),w=h("VTBJ"),R=h("rePB"),W=h("Zm9Q"),V=h("Kwbf"),L=h("c+Xe"),T=h("m+aA"),se=h("bdgK"),q=new Map;function K(We){We.forEach(function(ze){var Pe,Fe=ze.target;(Pe=q.get(Fe))===null||Pe===void 0||Pe.forEach(function(he){return he(Fe)})})}var D=new se.default(K),_=null,A=null;function le(We,ze){q.has(We)||(q.set(We,new Set),D.observe(We)),q.get(We).add(ze)}function Me(We,ze){q.has(We)&&(q.get(We).delete(ze),q.get(We).size||(D.unobserve(We),q.delete(We)))}var Je=function(We){Object(X.a)(Pe,We);var ze=Object(C.a)(Pe);function Pe(){return Object(de.a)(this,Pe),ze.apply(this,arguments)}return Object(re.a)(Pe,[{key:"render",value:function(){return this.props.children}}]),Pe}(ne.Component),we=ne.createContext(null);function ke(We){var ze=We.children,Pe=We.onBatchResize,Fe=ne.useRef(0),he=ne.useRef([]),P=ne.useContext(we),nt=ne.useCallback(function(Tt,Ut,ft){Fe.current+=1;var wt=Fe.current;he.current.push({size:Tt,element:Ut,data:ft}),Promise.resolve().then(function(){wt===Fe.current&&(Pe==null||Pe(he.current),he.current=[])}),P==null||P(Tt,Ut,ft)},[Pe,P]);return ne.createElement(we.Provider,{value:nt},ze)}function Ve(We){var ze=We.children,Pe=We.disabled,Fe=ne.useRef(null),he=ne.useRef(null),P=ne.useContext(we),nt=ne.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Tt=ne.isValidElement(ze)&&Object(L.c)(ze),Ut=Tt?ze.ref:null,ft=ne.useMemo(function(){return Object(L.a)(Ut,Fe)},[Ut,Fe]),wt=ne.useRef(We);wt.current=We;var He=ne.useCallback(function(rt){var pt=wt.current,gt=pt.onResize,$e=pt.data,Ke=rt.getBoundingClientRect(),ot=Ke.width,Ft=Ke.height,bt=rt.offsetWidth,ut=rt.offsetHeight,st=Math.floor(ot),St=Math.floor(Ft);if(nt.current.width!==st||nt.current.height!==St||nt.current.offsetWidth!==bt||nt.current.offsetHeight!==ut){var ct={width:st,height:St,offsetWidth:bt,offsetHeight:ut};nt.current=ct;var xt=bt===Math.round(ot)?ot:bt,Te=ut===Math.round(Ft)?Ft:ut,Dt=Object(w.a)(Object(w.a)({},ct),{},{offsetWidth:xt,offsetHeight:Te});P==null||P(Dt,rt,$e),gt&&Promise.resolve().then(function(){gt(Dt,rt)})}},[]);return ne.useEffect(function(){var rt=Object(T.a)(Fe.current)||Object(T.a)(he.current);return rt&&!Pe&&le(rt,He),function(){return Me(rt,He)}},[Fe.current,Pe]),ne.createElement(Je,{ref:he},Tt?ne.cloneElement(ze,{ref:ft}):ze)}var Ee="rc-observer-key";function Ce(We){var ze=We.children,Pe=Object(W.a)(ze);return Pe.map(function(Fe,he){var P=(Fe==null?void 0:Fe.key)||"".concat(Ee,"-").concat(he);return ne.createElement(Ve,Object(I.a)({},We,{key:P}),Fe)})}Ce.Collection=ke;var Ne=Ce,be=h("bT9E"),B=h("TSYQ"),xe=h.n(B),me=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important
|
|
`,S=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Q={},ue;function G(We){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=We.getAttribute("id")||We.getAttribute("data-reactid")||We.getAttribute("name");if(ze&&Q[Pe])return Q[Pe];var Fe=window.getComputedStyle(We),he=Fe.getPropertyValue("box-sizing")||Fe.getPropertyValue("-moz-box-sizing")||Fe.getPropertyValue("-webkit-box-sizing"),P=parseFloat(Fe.getPropertyValue("padding-bottom"))+parseFloat(Fe.getPropertyValue("padding-top")),nt=parseFloat(Fe.getPropertyValue("border-bottom-width"))+parseFloat(Fe.getPropertyValue("border-top-width")),Tt=S.map(function(ft){return"".concat(ft,":").concat(Fe.getPropertyValue(ft))}).join(";"),Ut={sizingStyle:Tt,paddingSize:P,borderSize:nt,boxSizing:he};return ze&&Pe&&(Q[Pe]=Ut),Ut}function De(We){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ue||(ue=document.createElement("textarea"),ue.setAttribute("tab-index","-1"),ue.setAttribute("aria-hidden","true"),document.body.appendChild(ue)),We.getAttribute("wrap")?ue.setAttribute("wrap",We.getAttribute("wrap")):ue.removeAttribute("wrap");var he=G(We,ze),P=he.paddingSize,nt=he.borderSize,Tt=he.boxSizing,Ut=he.sizingStyle;ue.setAttribute("style","".concat(Ut,";").concat(me)),ue.value=We.value||We.placeholder||"";var ft=Number.MIN_SAFE_INTEGER,wt=Number.MAX_SAFE_INTEGER,He=ue.scrollHeight,rt;if(Tt==="border-box"?He+=nt:Tt==="content-box"&&(He-=P),Pe!==null||Fe!==null){ue.value=" ";var pt=ue.scrollHeight-P;Pe!==null&&(ft=pt*Pe,Tt==="border-box"&&(ft=ft+P+nt),He=Math.max(ft,He)),Fe!==null&&(wt=pt*Fe,Tt==="border-box"&&(wt=wt+P+nt),rt=He>wt?"":"hidden",He=Math.min(wt,He))}return{height:He,minHeight:ft,maxHeight:wt,overflowY:rt,resize:"none"}}var M=h("Gytx"),v=h.n(M),ce;(function(We){We[We.NONE=0]="NONE",We[We.RESIZING=1]="RESIZING",We[We.RESIZED=2]="RESIZED"})(ce||(ce={}));var Ue=function(We){Object(X.a)(Pe,We);var ze=Object(C.a)(Pe);function Pe(Fe){var he;return Object(de.a)(this,Pe),he=ze.call(this,Fe),he.nextFrameActionId=void 0,he.resizeFrameId=void 0,he.textArea=void 0,he.saveTextArea=function(P){he.textArea=P},he.handleResize=function(P){var nt=he.state.resizeStatus,Tt=he.props,Ut=Tt.autoSize,ft=Tt.onResize;if(nt!==ce.NONE)return;typeof ft=="function"&&ft(P),Ut&&he.resizeOnNextFrame()},he.resizeOnNextFrame=function(){cancelAnimationFrame(he.nextFrameActionId),he.nextFrameActionId=requestAnimationFrame(he.resizeTextarea)},he.resizeTextarea=function(){var P=he.props.autoSize;if(!P||!he.textArea)return;var nt=P.minRows,Tt=P.maxRows,Ut=De(he.textArea,!1,nt,Tt);he.setState({textareaStyles:Ut,resizeStatus:ce.RESIZING},function(){cancelAnimationFrame(he.resizeFrameId),he.resizeFrameId=requestAnimationFrame(function(){he.setState({resizeStatus:ce.RESIZED},function(){he.resizeFrameId=requestAnimationFrame(function(){he.setState({resizeStatus:ce.NONE}),he.fixFirefoxAutoScroll()})})})})},he.renderTextArea=function(){var P=he.props,nt=P.prefixCls,Tt=nt===void 0?"rc-textarea":nt,Ut=P.autoSize,ft=P.onResize,wt=P.className,He=P.disabled,rt=he.state,pt=rt.textareaStyles,gt=rt.resizeStatus,$e=Object(be.a)(he.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ke=xe()(Tt,wt,Object(R.a)({},"".concat(Tt,"-disabled"),He));"value"in $e&&($e.value=$e.value||"");var ot=Object(w.a)(Object(w.a)(Object(w.a)({},he.props.style),pt),gt===ce.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return ne.createElement(Ne,{onResize:he.handleResize,disabled:!(Ut||ft)},ne.createElement("textarea",Object(I.a)({},$e,{className:Ke,style:ot,ref:he.saveTextArea})))},he.state={textareaStyles:{},resizeStatus:ce.NONE},he}return Object(re.a)(Pe,[{key:"componentDidUpdate",value:function(he){(he.value!==this.props.value||!v()(he.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var he=this.textArea.selectionStart,P=this.textArea.selectionEnd;this.textArea.setSelectionRange(he,P)}}catch(nt){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Pe}(ne.Component),Re=Ue,qe=function(We){Object(X.a)(Pe,We);var ze=Object(C.a)(Pe);function Pe(Fe){var he;Object(de.a)(this,Pe),he=ze.call(this,Fe),he.resizableTextArea=void 0,he.focus=function(){he.resizableTextArea.textArea.focus()},he.saveTextArea=function(nt){he.resizableTextArea=nt},he.handleChange=function(nt){var Tt=he.props.onChange;he.setValue(nt.target.value,function(){he.resizableTextArea.resizeTextarea()}),Tt&&Tt(nt)},he.handleKeyDown=function(nt){var Tt=he.props,Ut=Tt.onPressEnter,ft=Tt.onKeyDown;nt.keyCode===13&&Ut&&Ut(nt),ft&&ft(nt)};var P=typeof Fe.value=="undefined"||Fe.value===null?Fe.defaultValue:Fe.value;return he.state={value:P},he}return Object(re.a)(Pe,[{key:"setValue",value:function(he,P){"value"in this.props||this.setState({value:he},P)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return ne.createElement(Re,Object(I.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(he){return"value"in he?{value:he.value}:null}}]),Pe}(ne.Component),dt=Ae.default=qe},ZW9T:function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return Je});var I=h("k1fw"),de=h("miYZ"),re=h("tsqr"),X=h("rAM+"),C=h("tJVT"),ne=h("PpiC"),w=h("q1tI"),R=h.n(w),W=h("bdgK");function V(we,ke,Ve,Ee,Ce){var Ne=ke.getWordUntilPosition(Ve),be={startLineNumber:Ve.lineNumber,endLineNumber:Ve.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},B=Ee.map(function(xe){return{label:xe,kind:we.languages.CompletionItemKind.Keyword,insertText:xe,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}});return Ce.map(function(xe){B.push(Object(I.a)(Object(I.a)({},xe),{},{range:be}))}),B}var L=function(we){var ke={label:"ifelse",kind:we.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`),insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet},Ve=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];we.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(be,B){var xe=V(we,be,B,Ve,[ke]);return{suggestions:xe}}});var Ee=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];we.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(be,B){var xe=[{label:"print",kind:we.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
|
|
`),insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet}],me=V(we,be,B,Ee,xe);return{suggestions:me}}});var Ce=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];we.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(be,B){var xe=[ke,{label:"main",kind:we.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`),insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:we.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
|
|
`),insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet}],me=V(we,be,B,Ce,xe);return{suggestions:me}}})},T="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",se=h("LvDl");function q(we){return/^\d+$/.test(we)?"".concat(we,"px"):we}function K(){}var D=!1,_={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function A(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ke=we;if(Array.isArray(we)){for(var Ve=0;Ve<we.length;Ve++){var Ee=_[we[Ve]];if(Ee)return Ee}return ke[0]}return _[ke]||ke}var le=null,Me=Ae.b=function(we){var ke=we.width,Ve=ke===void 0?"100%":ke,Ee=we.height,Ce=Ee===void 0?"100%":Ee,Ne=we.value,be=we.language,B=be===void 0?"javascript":be,xe=we.style,me=xe===void 0?{}:xe,S=we.options,Q=S===void 0?{}:S,ue=we.overrideServices,G=ue===void 0?{}:ue,De=we.theme,M=De===void 0?"vs-dark":De,v=we.onEditBlur,ce=we.onSave,Ue=we.autoHeight,Re=Ue===void 0?!1:Ue,qe=we.forbidCopy,dt=qe===void 0?!1:qe,We=we.onChange,ze=We===void 0?K:We,Pe=we.editorDidMount,Fe=Pe===void 0?K:Pe,he=we.onFocus,P=he===void 0?K:he,nt=we.filename,Tt=nt===void 0?"educoder.txt":nt,Ut=Object(ne.a)(we,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),ft=Object(w.useRef)(),wt=Object(w.useRef)({}),He=Object(w.useRef)(),rt=Object(w.useRef)(!1),pt=Object(w.useRef)(),gt=Object(w.useState)(!1),$e=Object(C.a)(gt,2),Ke=$e[0],ot=$e[1];function Ft(){var O;return ft.current&&(O=new W.default(function(j){var ge=Object(X.a)(j),Se;try{for(ge.s();!(Se=ge.n()).done;){var Ye=Se.value;(Ye.target.offsetHeight>0||Ye.target.offsetWidth>0)&&wt.current.instance.layout()}}catch(_t){ge.e(_t)}finally{ge.f()}}),O.observe(ft.current)),O}function bt(){re.b.warn(decodeURIComponent(T))}var ut=function(){var j=wt.current.instance;if(Ne!=null&&j&&Ke){var ge=j.getModel();ge&&Ne!==ge.getValue()&&(D=!0,ge.setValue(Ne),j.layout(),D=!1)}};Object(w.useEffect)(function(){He.current&&clearTimeout(He.current),He.current=setTimeout(function(){ut()},500)},[Ne,Ke,wt.current]);function st(){var O=wt.current.instance;if(O){var j=O.getSelection(),ge=wt.current.pastePos||{},Se=new le.Range(ge.startLineNumber||j.endLineNumber,ge.startColumn||j.endColumn,ge.endLineNumber||j.endLineNumber,ge.endColumn||j.endColumn);setTimeout(function(){O.executeEdits("",[{range:Se,text:""}])},300)}}function St(O){(window.navigator.platform.match("Mac")?O.metaKey:O.ctrlKey)&&O.keyCode==83&&(O.preventDefault(),ce())}var ct=function(){if(Re&&wt.current.instance){var j=wt.current.instance.getContentHeight();E(j<Ce?Ce:j)}else E(Ce)};function xt(O){var j=document.createEvent("MouseEvents");j.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),O.dispatchEvent(j)}function Te(O,j){var ge=window.URL||window.webkitURL||window,Se=new Blob([j]),Ye=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ye.href=ge.createObjectURL(Se),Ye.download=O,xt(Ye)}Object(w.useEffect)(function(){ct()},[ct]),Object(w.useEffect)(function(){ft.current&&!Ke&&h.e(27).then(h.t.bind(null,"M/lh",7)).then(function(O){try{le=O,wt.current.instance=le.editor.create(ft.current,{value:Ne,language:A(B),theme:M,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},G);var j=wt.current.instance;if(Fe(j,le),setTimeout(function(){ct(),wt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Te(Tt||"educoder.txt",j.getValue())}})},500),wt.current.subscription=j.onDidChangeModelContent(function(Se){rt.current?clearTimeout(pt.current):(ct(),ze(j.getValue(),Se)),pt.current=setTimeout(function(){rt.current=!1},500)}),window.Monaco||L(le),dt&&(j.addCommand(le.KeyMod.CtrlCmd|le.KeyMod.Shift|le.KeyCode.KEY_V,function(){return bt(),null}),j.addCommand(le.KeyMod.CtrlCmd|le.KeyCode.KEY_C,function(){return bt(),null})),window.Monaco=le,v&&j.onDidBlurEditorWidget(function(){v(j.getValue())}),P&&j.onDidFocusEditorText(function(){P(j.getValue())}),dt){j.addCommand(le.KeyMod.CtrlCmd|le.KeyCode.KEY_V,function(){return bt(),null}),j.onDidPaste(function(Se){wt.current.pastePos=Se});try{window.addEventListener("paste",st)}catch(Se){}}var ge=Ft();return ot(!0),function(){var Se=wt.current.instance;Se.dispose();var Ye=Se.getModel();Ye&&Ye.dispose(),wt.current.subscription&&wt.current.subscription.dispose(),dt&&window.removeEventListener("paste",st),ge.unobserve(ft.current)}}catch(Se){}})},[]),Object(w.useEffect)(function(){var O=wt.current.instance;if(O&&Ke)return document.addEventListener("keydown",St,!1),function(){document.removeEventListener("keydown",St)}},[ce,Ke]),Object(w.useEffect)(function(){var O=wt.current.instance;if(O&&Ke){var j=A(B);le.editor.setModelLanguage(O.getModel(),j),console.log("language:",B,O.getModel(),j)}},[B,Ke]),Object(w.useEffect)(function(){var O=wt.current.instance;O&&Ke&&le.editor.setTheme(M)},[M,Ke]),Object(w.useEffect)(function(){var O=wt.current.instance;O&&Ke&&(O.updateOptions(Object(I.a)({},Q)),setTimeout(function(){O.getModel().updateOptions(Object(I.a)({},Q))},200))},[JSON.stringify(Q),Ke]),Object(w.useEffect)(function(){var O=wt.current.instance;O&&Ke&&O.layout()},[Ve,Ce,Ke]);var Dt=Object(w.useState)(q(Ve)),ht=Object(C.a)(Dt,2),Le=ht[0],Xe=ht[1],ie=Object(w.useState)(q(Ce)),Z=Object(C.a)(ie,2),ee=Z[0],E=Z[1],x=Object(I.a)(Object(I.a)({},me),{},{width:Le,height:ee});return R.a.createElement("div",{className:"my-monaco-editor",ref:ft,style:x})};function Je(we){var ke=we.width,Ve=ke===void 0?"100%":ke,Ee=we.height,Ce=Ee===void 0?"100%":Ee,Ne=we.original,be=we.modified,B=we.language,xe=we.options,me=xe===void 0?{}:xe,S=Object(w.useRef)(),Q=Object(w.useState)(null),ue=Object(C.a)(Q,2),G=ue[0],De=ue[1];function M(Re){var qe;return S.current&&(qe=new W.default(function(dt){var We=Object(X.a)(dt),ze;try{for(We.s();!(ze=We.n()).done;){var Pe=ze.value;(Pe.target.offsetHeight>0||Pe.target.offsetWidth>0)&&Re.layout()}}catch(Fe){We.e(Fe)}finally{We.f()}}),qe.observe(S.current)),qe}Object(w.useEffect)(function(){S.current&&h.e(27).then(h.t.bind(null,"M/lh",7)).then(function(Re){le=Re;var qe=le.editor.createDiffEditor(S.current,Object(I.a)(Object(I.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},me),{},{wordWrap:!0}));De(qe);var dt=M(qe);return function(){qe.dispose();var We=qe.getModel();We&&We.dispose(),dt.unobserve(S.current)}})},[]),Object(w.useEffect)(function(){G&&G.setModel({original:le.editor.createModel(Ne,B),modified:le.editor.createModel(be,B)})},[Ne,be,B,G]);var v=q(Ve),ce=q(Ce),Ue={width:v,height:ce};return R.a.createElement("div",{className:"my-diff-editor",ref:S,style:Ue})}},ZpRC:function(Oe,Ae,h){"use strict";function I(L){return typeof L=="object"&&L!=null&&L.nodeType===1}function de(L,T){return(!T||L!=="hidden")&&L!=="visible"&&L!=="clip"}function re(L,T){if(L.clientHeight<L.scrollHeight||L.clientWidth<L.scrollWidth){var se=getComputedStyle(L,null);return de(se.overflowY,T)||de(se.overflowX,T)||function(q){var K=function(D){if(!D.ownerDocument||!D.ownerDocument.defaultView)return null;try{return D.ownerDocument.defaultView.frameElement}catch(_){return null}}(q);return!!K&&(K.clientHeight<q.scrollHeight||K.clientWidth<q.scrollWidth)}(L)}return!1}function X(L,T,se,q,K,D,_,A){return D<L&&_>T||D>L&&_<T?0:D<=L&&A<=se||_>=T&&A>=se?D-L-q:_>T&&A<se||D<L&&A>se?_-T+K:0}var C=function(L,T){var se=window,q=T.scrollMode,K=T.block,D=T.inline,_=T.boundary,A=T.skipOverflowHiddenElements,le=typeof _=="function"?_:function(pt){return pt!==_};if(!I(L))throw new TypeError("Invalid target");for(var Me=document.scrollingElement||document.documentElement,Je=[],we=L;I(we)&&le(we);){if((we=we.parentElement)===Me){Je.push(we);break}we!=null&&we===document.body&&re(we)&&!re(document.documentElement)||we!=null&&re(we,A)&&Je.push(we)}for(var ke=se.visualViewport?se.visualViewport.width:innerWidth,Ve=se.visualViewport?se.visualViewport.height:innerHeight,Ee=window.scrollX||pageXOffset,Ce=window.scrollY||pageYOffset,Ne=L.getBoundingClientRect(),be=Ne.height,B=Ne.width,xe=Ne.top,me=Ne.right,S=Ne.bottom,Q=Ne.left,ue=K==="start"||K==="nearest"?xe:K==="end"?S:xe+be/2,G=D==="center"?Q+B/2:D==="end"?me:Q,De=[],M=0;M<Je.length;M++){var v=Je[M],ce=v.getBoundingClientRect(),Ue=ce.height,Re=ce.width,qe=ce.top,dt=ce.right,We=ce.bottom,ze=ce.left;if(q==="if-needed"&&xe>=0&&Q>=0&&S<=Ve&&me<=ke&&xe>=qe&&S<=We&&Q>=ze&&me<=dt)return De;var Pe=getComputedStyle(v),Fe=parseInt(Pe.borderLeftWidth,10),he=parseInt(Pe.borderTopWidth,10),P=parseInt(Pe.borderRightWidth,10),nt=parseInt(Pe.borderBottomWidth,10),Tt=0,Ut=0,ft="offsetWidth"in v?v.offsetWidth-v.clientWidth-Fe-P:0,wt="offsetHeight"in v?v.offsetHeight-v.clientHeight-he-nt:0;if(Me===v)Tt=K==="start"?ue:K==="end"?ue-Ve:K==="nearest"?X(Ce,Ce+Ve,Ve,he,nt,Ce+ue,Ce+ue+be,be):ue-Ve/2,Ut=D==="start"?G:D==="center"?G-ke/2:D==="end"?G-ke:X(Ee,Ee+ke,ke,Fe,P,Ee+G,Ee+G+B,B),Tt=Math.max(0,Tt+Ce),Ut=Math.max(0,Ut+Ee);else{Tt=K==="start"?ue-qe-he:K==="end"?ue-We+nt+wt:K==="nearest"?X(qe,We,Ue,he,nt+wt,ue,ue+be,be):ue-(qe+Ue/2)+wt/2,Ut=D==="start"?G-ze-Fe:D==="center"?G-(ze+Re/2)+ft/2:D==="end"?G-dt+P+ft:X(ze,dt,Re,Fe,P+ft,G,G+B,B);var He=v.scrollLeft,rt=v.scrollTop;ue+=rt-(Tt=Math.max(0,Math.min(rt+Tt,v.scrollHeight-Ue+wt))),G+=He-(Ut=Math.max(0,Math.min(He+Ut,v.scrollWidth-Re+ft)))}De.push({el:v,top:Tt,left:Ut})}return De};function ne(L){return L===Object(L)&&Object.keys(L).length!==0}function w(L,T){T===void 0&&(T="auto");var se="scrollBehavior"in document.body.style;L.forEach(function(q){var K=q.el,D=q.top,_=q.left;K.scroll&&se?K.scroll({top:D,left:_,behavior:T}):(K.scrollTop=D,K.scrollLeft=_)})}function R(L){return L===!1?{block:"end",inline:"nearest"}:ne(L)?L:{block:"start",inline:"nearest"}}function W(L,T){var se=!L.ownerDocument.documentElement.contains(L);if(ne(T)&&typeof T.behavior=="function")return T.behavior(se?[]:C(L,T));if(se)return;var q=R(T);return w(C(L,q),q.behavior)}var V=Ae.a=W},aRTE:function(Oe,Ae){Oe.exports={L:1,M:0,Q:3,H:2}},bT9E:function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return de});var I=h("VTBJ");function de(re,X){var C=Object(I.a)({},re);return Array.isArray(X)&&X.forEach(function(ne){delete C[ne]}),C}},c5Ni:function(Oe,Ae,h){},cRFk:function(Oe,Ae,h){Oe.exports=h.p+"static/RepositoryNoneData.828085a8.png"},csWT:function(Oe,Ae,h){Oe.exports=h.p+"static/choose.4ad1045f.svg"},dQei:function(Oe,Ae){for(var h={glog:function(de){if(de<1)throw new Error("glog("+de+")");return h.LOG_TABLE[de]},gexp:function(de){for(;de<0;)de+=255;for(;de>=256;)de-=255;return h.EXP_TABLE[de]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},I=0;I<8;I++)h.EXP_TABLE[I]=1<<I;for(var I=8;I<256;I++)h.EXP_TABLE[I]=h.EXP_TABLE[I-4]^h.EXP_TABLE[I-5]^h.EXP_TABLE[I-6]^h.EXP_TABLE[I-8];for(var I=0;I<255;I++)h.LOG_TABLE[h.EXP_TABLE[I]]=I;Oe.exports=h},dWSS:function(Oe,Ae,h){var I=h("dQei");function de(re,X){if(re.length==null)throw new Error(re.length+"/"+X);for(var C=0;C<re.length&&re[C]==0;)C++;this.num=new Array(re.length-C+X);for(var ne=0;ne<re.length-C;ne++)this.num[ne]=re[ne+C]}de.prototype={get:function(re){return this.num[re]},getLength:function(){return this.num.length},multiply:function(re){for(var X=new Array(this.getLength()+re.getLength()-1),C=0;C<this.getLength();C++)for(var ne=0;ne<re.getLength();ne++)X[C+ne]^=I.gexp(I.glog(this.get(C))+I.glog(re.get(ne)));return new de(X,0)},mod:function(re){if(this.getLength()-re.getLength()<0)return this;for(var X=I.glog(this.get(0))-I.glog(re.get(0)),C=new Array(this.getLength()),ne=0;ne<this.getLength();ne++)C[ne]=this.get(ne);for(var ne=0;ne<re.getLength();ne++)C[ne]^=I.gexp(I.glog(re.get(ne))+X);return new de(C,0).mod(re)}},Oe.exports=de},dejd:function(Oe,Ae,h){},djh8:function(Oe,Ae,h){Oe.exports=h.p+"static/qrCode.42927872.png"},dmUQ:function(Oe,Ae,h){"use strict";var I=h("Ff2n"),de=h("rePB"),re=h("1OyB"),X=h("vuIU"),C=h("Ji7U"),ne=h("md7G"),w=h("foSv"),R=h("q1tI"),W=h.n(R),V=h("TSYQ"),L=h.n(V),T=h("4IlW");function se(be,B){var xe=Object.keys(be);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(be);B&&(me=me.filter(function(S){return Object.getOwnPropertyDescriptor(be,S).enumerable})),xe.push.apply(xe,me)}return xe}function q(be){for(var B=1;B<arguments.length;B++){var xe=arguments[B]!=null?arguments[B]:{};B%2?se(Object(xe),!0).forEach(function(me){Object(de.a)(be,me,xe[me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(be,Object.getOwnPropertyDescriptors(xe)):se(Object(xe)).forEach(function(me){Object.defineProperty(be,me,Object.getOwnPropertyDescriptor(xe,me))})}return be}function K(be){var B=D();return function(){var me=Object(w.a)(be),S;if(B){var Q=Object(w.a)(this).constructor;S=Reflect.construct(me,arguments,Q)}else S=me.apply(this,arguments);return Object(ne.a)(this,S)}}function D(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(be){return!1}}function _(){}function A(be){be.preventDefault()}var le=function(B){return B.replace(/[^\w.-]+/g,"")},Me=200,Je=600,we=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,ke=function(B){return B!=null},Ve=function(B,xe){return xe===B||typeof xe=="number"&&typeof B=="number"&&isNaN(xe)&&isNaN(B)},Ee=function(be){Object(C.a)(xe,be);var B=K(xe);function xe(me){var S;Object(re.a)(this,xe),S=B.call(this,me),S.onKeyDown=function(G){var De=S.props,M=De.onKeyDown,v=De.onPressEnter;if(G.keyCode===T.a.UP){var ce=S.getRatio(G);S.up(G,ce,null),S.stop()}else if(G.keyCode===T.a.DOWN){var Ue=S.getRatio(G);S.down(G,Ue,null),S.stop()}else G.keyCode===T.a.ENTER&&v&&v(G);if(S.recordCursorPosition(),S.lastKeyCode=G.keyCode,M){for(var Re=arguments.length,qe=new Array(Re>1?Re-1:0),dt=1;dt<Re;dt++)qe[dt-1]=arguments[dt];M.apply(void 0,[G].concat(qe))}},S.onKeyUp=function(G){var De=S.props.onKeyUp;if(S.stop(),S.recordCursorPosition(),De){for(var M=arguments.length,v=new Array(M>1?M-1:0),ce=1;ce<M;ce++)v[ce-1]=arguments[ce];De.apply(void 0,[G].concat(v))}},S.onChange=function(G){var De=S.props.onChange;S.state.focused&&(S.inputting=!0),S.rawInput=S.props.parser(S.getValueFromEvent(G)),S.setState({inputValue:S.rawInput}),De(S.toNumber(S.rawInput))},S.onMouseUp=function(){var G=S.props.onMouseUp;S.recordCursorPosition(),G&&G.apply(void 0,arguments)},S.onFocus=function(){var G;S.setState({focused:!0}),(G=S.props).onFocus.apply(G,arguments)},S.onBlur=function(){var G=S.props.onBlur;S.inputting=!1,S.setState({focused:!1});var De=S.getCurrentValidValue(S.state.inputValue),M=S.setValue(De,_);if(G){var v=S.input.value,ce=S.getInputDisplayValue({focus:!1,value:M});S.input.value=ce&&Number(ce),G.apply(void 0,arguments),S.input.value=v}},S.getRatio=function(G){var De=1;return G.metaKey||G.ctrlKey?De=.1:G.shiftKey&&(De=10),De},S.getFullNum=function(G){return isNaN(G)?G:/e/i.test(String(G))?Number(G).toFixed(18).replace(/\.?0+$/,""):G},S.getPrecision=function(G){if(ke(S.props.precision))return S.props.precision;var De=String(G);if(De.indexOf("e-")>=0)return parseInt(De.slice(De.indexOf("e-")+2),10);var M=0;return De.indexOf(".")>=0&&(M=De.length-De.indexOf(".")-1),M},S.getInputDisplayValue=function(G){var De=G||S.state,M=De.focused,v=De.inputValue,ce=De.value,Ue;M?Ue=v:Ue=S.toPrecisionAsStep(ce),Ue==null&&(Ue="");var Re=S.formatWrapper(Ue);return ke(S.props.decimalSeparator)&&(Re=Re.toString().replace(".",S.props.decimalSeparator)),Re},S.recordCursorPosition=function(){try{S.cursorStart=S.input.selectionStart,S.cursorEnd=S.input.selectionEnd,S.currentValue=S.input.value,S.cursorBefore=S.input.value.substring(0,S.cursorStart),S.cursorAfter=S.input.value.substring(S.cursorEnd)}catch(G){}},S.restoreByAfter=function(G){if(G===void 0)return!1;var De=S.input.value,M=De.lastIndexOf(G);if(M===-1)return!1;var v=S.cursorBefore.length;return S.lastKeyCode===T.a.DELETE&&S.cursorBefore.charAt(v-1)===G[0]?(S.fixCaret(v,v),!0):M+G.length===De.length?(S.fixCaret(M,M),!0):!1},S.partRestoreByAfter=function(G){return G===void 0?!1:Array.prototype.some.call(G,function(De,M){var v=G.substring(M);return S.restoreByAfter(v)})},S.isNotCompleteNumber=function(G){return isNaN(G)||G===""||G===null||G&&G.toString().indexOf(".")===G.toString().length-1},S.stop=function(){S.autoStepTimer&&clearTimeout(S.autoStepTimer)},S.down=function(G,De,M){S.pressingUpOrDown=!0,S.step("down",G,De,M)},S.up=function(G,De,M){S.pressingUpOrDown=!0,S.step("up",G,De,M)},S.saveInput=function(G){S.input=G};var Q=me.value;Q===void 0&&(Q=me.defaultValue),S.state={focused:me.autoFocus};var ue=S.getValidValue(S.toNumber(Q));return S.state=q(q({},S.state),{},{inputValue:S.toPrecisionAsStep(ue),value:ue}),S}return Object(X.a)(xe,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(S){var Q=this.props,ue=Q.value,G=Q.onChange,De=Q.max,M=Q.min,v=this.state.focused;if(S){if(!Ve(S.value,ue)||!Ve(S.max,De)||!Ve(S.min,M)){var ce=v?ue:this.getValidValue(ue),Ue;this.pressingUpOrDown?Ue=ce:this.inputting?Ue=this.rawInput:Ue=this.toPrecisionAsStep(ce),this.setState({value:ce,inputValue:Ue})}var Re="value"in this.props?ue:this.state.value;"max"in this.props&&S.max!==De&&typeof Re=="number"&&Re>De&&G&&G(De),"min"in this.props&&S.min!==M&&typeof Re=="number"&&Re<M&&G&&G(M)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var qe=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===T.a.BACKSPACE?qe=this.cursorStart-1:this.lastKeyCode===T.a.DELETE&&(qe=this.cursorStart):qe=this.input.value.length,this.fixCaret(qe,qe)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case T.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case T.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(dt){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(S){var Q=S;return Q===""?Q="":this.isNotCompleteNumber(parseFloat(Q))?Q=this.state.value:Q=this.getValidValue(Q),this.toNumber(Q)}},{key:"getValueFromEvent",value:function(S){var Q=S.target.value.trim().replace(/。/g,".");return ke(this.props.decimalSeparator)&&(Q=Q.replace(this.props.decimalSeparator,".")),Q}},{key:"getValidValue",value:function(S){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,G=parseFloat(S);return isNaN(G)?S:(G<Q&&(G=Q),G>ue&&(G=ue),G)}},{key:"setValue",value:function(S,Q){var ue=this.props.precision,G=this.isNotCompleteNumber(parseFloat(S))?null:parseFloat(S),De=this.state.value,M=De===void 0?null:De,v=this.state.inputValue,ce=v===void 0?null:v,Ue=typeof G=="number"?G.toFixed(ue):"".concat(G),Re=G!==M||Ue!=="".concat(ce);return"value"in this.props?(ce=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:ce},Q)):this.setState({value:G,inputValue:this.toPrecisionAsStep(S)},Q),Re&&this.props.onChange(G),G}},{key:"getMaxPrecision",value:function(S){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=this.props,G=ue.precision,De=ue.step;if(ke(G))return G;var M=this.getPrecision(Q),v=this.getPrecision(De),ce=this.getPrecision(S);return S?Math.max(ce,M+v):M+v}},{key:"getPrecisionFactor",value:function(S){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=this.getMaxPrecision(S,Q);return Math.pow(10,ue)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(S){return this.props.formatter?this.props.formatter(S):S}},{key:"toPrecisionAsStep",value:function(S){if(this.isNotCompleteNumber(S)||S==="")return S;var Q=Math.abs(this.getMaxPrecision(S));return isNaN(Q)?S.toString():Number(S).toFixed(Q)}},{key:"toNumber",value:function(S){var Q=this.props.precision,ue=this.state.focused,G=S&&S.length>16&&ue;return this.isNotCompleteNumber(S)||G?S:ke(Q)?Math.round(S*Math.pow(10,Q))/Math.pow(10,Q):Number(S)}},{key:"upStep",value:function(S,Q){var ue=this.props.step,G=this.getPrecisionFactor(S,Q),De=Math.abs(this.getMaxPrecision(S,Q)),M=((G*S+G*ue*Q)/G).toFixed(De);return this.toNumber(M)}},{key:"downStep",value:function(S,Q){var ue=this.props.step,G=this.getPrecisionFactor(S,Q),De=Math.abs(this.getMaxPrecision(S,Q)),M=((G*S-G*ue*Q)/G).toFixed(De);return this.toNumber(M)}},{key:"step",value:function(S,Q){var ue=this,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,De=arguments.length>3?arguments[3]:void 0;this.stop(),Q&&(Q.persist(),Q.preventDefault());var M=this.props;if(M.disabled)return;var v=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(v))return;var ce=this["".concat(S,"Step")](v,G),Ue=ce>M.max||ce<M.min;if(ce>M.max?ce=M.max:ce<M.min&&(ce=M.min),this.setValue(ce,null),this.setState({focused:!0},function(){ue.pressingUpOrDown=!1}),Ue)return;this.autoStepTimer=setTimeout(function(){ue[S](Q,G,!0)},De?Me:Je)}},{key:"fixCaret",value:function(S,Q){if(S===void 0||Q===void 0||!this.input||!this.input.value)return;try{var ue=this.input.selectionStart,G=this.input.selectionEnd;(S!==ue||Q!==G)&&this.input.setSelectionRange(S,Q)}catch(De){}}},{key:"render",value:function(){var S,Q=this.props,ue=Q.prefixCls,G=Q.disabled,De=Q.readOnly,M=Q.useTouch,v=Q.autoComplete,ce=Q.upHandler,Ue=Q.downHandler,Re=Q.className,qe=Q.max,dt=Q.min,We=Q.style,ze=Q.title,Pe=Q.onMouseEnter,Fe=Q.onMouseLeave,he=Q.onMouseOver,P=Q.onMouseOut,nt=Q.required,Tt=Q.onClick,Ut=Q.tabIndex,ft=Q.type,wt=Q.placeholder,He=Q.id,rt=Q.inputMode,pt=Q.pattern,gt=Q.step,$e=Q.maxLength,Ke=Q.autoFocus,ot=Q.name,Ft=Q.onPaste,bt=Q.onInput,ut=Object(I.a)(Q,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),st=this.state,St=st.value,ct=st.focused,xt=L()(ue,(S={},Object(de.a)(S,Re,!!Re),Object(de.a)(S,"".concat(ue,"-disabled"),G),Object(de.a)(S,"".concat(ue,"-focused"),ct),S)),Te={};Object.keys(ut).forEach(function(j){(j.substr(0,5)==="data-"||j.substr(0,5)==="aria-"||j==="role")&&(Te[j]=ut[j])});var Dt=!De&&!G,ht=this.getInputDisplayValue(null),Le=(St||St===0)&&(isNaN(St)||Number(St)>=qe),Xe=(St||St===0)&&(isNaN(St)||Number(St)<=dt),ie=Le||G||De,Z=Xe||G||De,ee=L()("".concat(ue,"-handler"),"".concat(ue,"-handler-up"),Object(de.a)({},"".concat(ue,"-handler-up-disabled"),ie)),E=L()("".concat(ue,"-handler"),"".concat(ue,"-handler-down"),Object(de.a)({},"".concat(ue,"-handler-down-disabled"),Z)),x=M?{onTouchStart:ie?_:this.up,onTouchEnd:this.stop}:{onMouseDown:ie?_:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},O=M?{onTouchStart:Z?_:this.down,onTouchEnd:this.stop}:{onMouseDown:Z?_:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return W.a.createElement("div",{className:xt,style:We,title:ze,onMouseEnter:Pe,onMouseLeave:Fe,onMouseOver:he,onMouseOut:P,onFocus:function(){return null},onBlur:function(){return null}},W.a.createElement("div",{className:"".concat(ue,"-handler-wrap")},W.a.createElement("span",Object.assign({unselectable:"on"},x,{role:"button","aria-label":"Increase Value","aria-disabled":ie,className:ee}),ce||W.a.createElement("span",{unselectable:"on",className:"".concat(ue,"-handler-up-inner"),onClick:A})),W.a.createElement("span",Object.assign({unselectable:"on"},O,{role:"button","aria-label":"Decrease Value","aria-disabled":Z,className:E}),Ue||W.a.createElement("span",{unselectable:"on",className:"".concat(ue,"-handler-down-inner"),onClick:A}))),W.a.createElement("div",{className:"".concat(ue,"-input-wrap")},W.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":dt,"aria-valuemax":qe,"aria-valuenow":St,required:nt,type:ft,placeholder:wt,onPaste:Ft,onClick:Tt,onMouseUp:this.onMouseUp,className:"".concat(ue,"-input"),tabIndex:Ut,autoComplete:v,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Dt?this.onKeyDown:_,onKeyUp:Dt?this.onKeyUp:_,autoFocus:Ke,maxLength:$e,readOnly:De,disabled:G,max:qe,min:dt,step:gt,name:ot,title:ze,id:He,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ht),pattern:pt,inputMode:rt,onInput:bt},Te))))}}]),xe}(W.a.Component);Ee.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:we,min:-we,step:1,style:{},onChange:_,onKeyDown:_,onPressEnter:_,onFocus:_,onBlur:_,parser:le,required:!1,autoComplete:"off"};var Ce=Ee,Ne=Ae.a=Ce},f4xo:function(Oe,Ae,h){var I=h("nVVt");function de(re){this.mode=I.MODE_8BIT_BYTE,this.data=re}de.prototype={getLength:function(re){return this.data.length},write:function(re){for(var X=0;X<this.data.length;X++)re.put(this.data.charCodeAt(X),8)}},Oe.exports=de},ji0R:function(Oe,Ae,h){Oe.exports=h.p+"static/douyu.3e6df9ee.jpg"},k3GJ:function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return Ca});var I=h("rePB"),de=h("ODXe"),re=h("Ff2n"),X=h("VTBJ"),C=h("q1tI"),ne=h("TSYQ"),w=h.n(ne),R=h("Zm9Q"),W=h("6cGi"),V=h("KQm4"),L=h("xEkU"),T=h.n(L),se=h("t23M");function q(N){var $=Object(C.useRef)(),oe=Object(C.useRef)(!1);function U(){for(var g=arguments.length,k=new Array(g),b=0;b<g;b++)k[b]=arguments[b];oe.current||(T.a.cancel($.current),$.current=T()(function(){N.apply(void 0,k)}))}return Object(C.useEffect)(function(){return function(){oe.current=!0,T.a.cancel($.current)}},[]),U}function K(N){var $=Object(C.useRef)([]),oe=Object(C.useState)({}),U=Object(de.a)(oe,2),g=U[1],k=Object(C.useRef)(typeof N=="function"?N():N),b=q(function(){var H=k.current;$.current.forEach(function(ae){H=ae(H)}),$.current=[],k.current=H,g({})});function z(H){$.current.push(H),b()}return[k.current,z]}var D=h("4IlW");function _(N,$){var oe,U=N.prefixCls,g=N.id,k=N.active,b=N.rtl,z=N.tab,H=z.key,ae=z.tab,te=z.disabled,pe=z.closeIcon,Ie=N.tabBarGutter,it=N.tabPosition,tt=N.closable,mt=N.renderWrapper,Xt=N.removeAriaLabel,sn=N.editable,tn=N.onClick,on=N.onRemove,ln=N.onFocus,an="".concat(U,"-tab");C.useEffect(function(){return on},[]);var rn={};it==="top"||it==="bottom"?rn[b?"marginLeft":"marginRight"]=Ie:rn.marginBottom=Ie;var En=sn&&tt!==!1&&!te;function fn(Qt){if(te)return;tn(Qt)}function Zn(Qt){Qt.preventDefault(),Qt.stopPropagation(),sn.onEdit("remove",{key:H,event:Qt})}var pn=C.createElement("div",{key:H,ref:$,className:w()(an,(oe={},Object(I.a)(oe,"".concat(an,"-with-remove"),En),Object(I.a)(oe,"".concat(an,"-active"),k),Object(I.a)(oe,"".concat(an,"-disabled"),te),oe)),style:rn,onClick:fn},C.createElement("div",{role:"tab","aria-selected":k,id:g&&"".concat(g,"-tab-").concat(H),className:"".concat(an,"-btn"),"aria-controls":g&&"".concat(g,"-panel-").concat(H),"aria-disabled":te,tabIndex:te?null:0,onClick:function(Gt){Gt.stopPropagation(),fn(Gt)},onKeyDown:function(Gt){[D.a.SPACE,D.a.ENTER].includes(Gt.which)&&(Gt.preventDefault(),fn(Gt))},onFocus:ln},ae),En&&C.createElement("button",{type:"button","aria-label":Xt||"remove",tabIndex:0,className:"".concat(an,"-remove"),onClick:function(Gt){Gt.stopPropagation(),Zn(Gt)}},pe||sn.removeIcon||"\xD7"));return mt&&(pn=mt(pn)),pn}var A=C.forwardRef(_),le={width:0,height:0,left:0,top:0};function Me(N,$,oe){return Object(C.useMemo)(function(){for(var U,g=new Map,k=$.get((U=N[0])===null||U===void 0?void 0:U.key)||le,b=k.left+k.width,z=0;z<N.length;z+=1){var H=N[z].key,ae=$.get(H);if(!ae){var te;ae=$.get((te=N[z-1])===null||te===void 0?void 0:te.key)||le}var pe=g.get(H)||Object(X.a)({},ae);pe.right=b-pe.left-pe.width,g.set(H,pe)}return g},[N.map(function(U){return U.key}).join("_"),$,oe])}var Je={width:0,height:0,left:0,top:0,right:0};function we(N,$,oe,U,g){var k=g.tabs,b=g.tabPosition,z=g.rtl,H,ae,te;["top","bottom"].includes(b)?(H="width",ae=z?"right":"left",te=Math.abs($.left)):(H="height",ae="top",te=-$.top);var pe=$[H],Ie=oe[H],it=U[H],tt=pe;return Ie+it>pe&&(tt=pe-it),Object(C.useMemo)(function(){if(!k.length)return[0,0];for(var mt=k.length,Xt=mt,sn=0;sn<mt;sn+=1){var tn=N.get(k[sn].key)||Je;if(tn[ae]+tn[H]>te+tt){Xt=sn-1;break}}for(var on=0,ln=mt-1;ln>=0;ln-=1){var an=N.get(k[ln].key)||Je;if(an[ae]<te){on=ln+1;break}}return[on,Xt]},[N,te,tt,b,k.map(function(mt){return mt.key}).join("_"),z])}var ke=h("wx14"),Ve=h("1OyB"),Ee=h("vuIU"),Ce=h("JX7q"),Ne=h("Ji7U"),be=h("LK+K"),B=h("I8Z2"),xe=h("bT9E"),me=h("2GS6"),S=h("Gytx"),Q=h.n(S),ue=h("U8pU"),G=/iPhone/i,De=/iPod/i,M=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,ce=/Android/i,Ue=/\bAndroid(?:.+)SD4930UR\b/i,Re=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,qe=/Windows Phone/i,dt=/\bWindows(?:.+)ARM\b/i,We=/BlackBerry/i,ze=/BB10/i,Pe=/Opera Mini/i,Fe=/\b(CriOS|Chrome)(?:.+)Mobile/i,he=/Mobile(?:.+)Firefox\b/i;function P(N,$){return N.test($)}function nt(N){var $=N||(typeof navigator!="undefined"?navigator.userAgent:""),oe=($||"").split("[FBAN");if(typeof oe[1]!="undefined"){var U=oe,g=Object(de.a)(U,1);$=g[0]}if(oe=$.split("Twitter"),typeof oe[1]!="undefined"){var k=oe,b=Object(de.a)(k,1);$=b[0]}var z={apple:{phone:P(G,$)&&!P(qe,$),ipod:P(De,$),tablet:!P(G,$)&&P(M,$)&&!P(qe,$),device:(P(G,$)||P(De,$)||P(M,$))&&!P(qe,$)},amazon:{phone:P(Ue,$),tablet:!P(Ue,$)&&P(Re,$),device:P(Ue,$)||P(Re,$)},android:{phone:!P(qe,$)&&P(Ue,$)||!P(qe,$)&&P(v,$),tablet:!P(qe,$)&&!P(Ue,$)&&!P(v,$)&&(P(Re,$)||P(ce,$)),device:!P(qe,$)&&(P(Ue,$)||P(Re,$)||P(v,$)||P(ce,$))||P(/\bokhttp\b/i,$)},windows:{phone:P(qe,$),tablet:P(dt,$),device:P(qe,$)||P(dt,$)},other:{blackberry:P(We,$),blackberry10:P(ze,$),opera:P(Pe,$),firefox:P(he,$),chrome:P(Fe,$),device:P(We,$)||P(ze,$)||P(Pe,$)||P(he,$)||P(Fe,$)},any:null,phone:null,tablet:null};return z.any=z.apple.device||z.android.device||z.windows.device||z.other.device,z.phone=z.apple.phone||z.android.phone||z.windows.phone,z.tablet=z.apple.tablet||z.android.tablet||z.windows.tablet,z}var Tt=Object(X.a)(Object(X.a)({},nt()),{},{isMobile:nt}),Ut=Tt;function ft(){}function wt(N,$,oe){var U=$||"";return N.key||"".concat(U,"item_").concat(oe)}function He(N){return"".concat(N,"-menu-")}function rt(N,$){var oe=-1;C.Children.forEach(N,function(U){oe+=1,U&&U.type&&U.type.isMenuItemGroup?C.Children.forEach(U.props.children,function(g){oe+=1,$(g,oe)}):$(U,oe)})}function pt(N,$,oe){if(!N||oe.find)return;C.Children.forEach(N,function(U){if(U){var g=U.type;if(!g||!(g.isSubMenu||g.isMenuItem||g.isMenuItemGroup))return;$.indexOf(U.key)!==-1?oe.find=!0:U.props.children&&pt(U.props.children,$,oe)}})}var gt=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],$e=function($){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=$&&typeof $.getBoundingClientRect=="function"&&$.getBoundingClientRect().width;if(U){if(oe){var g=getComputedStyle($),k=g.marginLeft,b=g.marginRight;U+=+k.replace("px","")+ +b.replace("px","")}U=+U.toFixed(6)}return U||0},Ke=function($,oe,U){$&&Object(ue.a)($.style)==="object"&&($.style[oe]=U)},ot=function(){return Ut.any},Ft=h("bdgK"),bt=h("i8i4"),ut=h.n(bt),st=h("wgJM"),St=h("l4aY"),ct=h("m+aA"),xt=h("c+Xe"),Te=h("zT1h"),Dt=h("QC+M");function ht(N,$,oe){return oe?N[0]===$[0]:N[0]===$[0]&&N[1]===$[1]}function Le(N,$,oe){var U=N[$]||{};return Object(X.a)(Object(X.a)({},U),oe)}function Xe(N,$,oe,U){for(var g=oe.points,k=Object.keys(N),b=0;b<k.length;b+=1){var z=k[b];if(ht(N[z].points,g,U))return"".concat($,"-placement-").concat(z)}return""}var ie=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var N=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(N)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(N==null?void 0:N.substr(0,4)))},Z=h("MNnm");function ee(N,$){var oe={};return oe[N.toLowerCase()]=$.toLowerCase(),oe["Webkit".concat(N)]="webkit".concat($),oe["Moz".concat(N)]="moz".concat($),oe["ms".concat(N)]="MS".concat($),oe["O".concat(N)]="o".concat($.toLowerCase()),oe}function E(N,$){var oe={animationend:ee("Animation","AnimationEnd"),transitionend:ee("Transition","TransitionEnd")};return N&&("AnimationEvent"in $||delete oe.animationend.animation,"TransitionEvent"in $||delete oe.transitionend.transition),oe}var x=E(Object(Z.a)(),typeof window!="undefined"?window:{}),O={};if(Object(Z.a)()){var j=document.createElement("div");O=j.style}var ge={};function Se(N){if(ge[N])return ge[N];var $=x[N];if($)for(var oe=Object.keys($),U=oe.length,g=0;g<U;g+=1){var k=oe[g];if(Object.prototype.hasOwnProperty.call($,k)&&k in O)return ge[N]=$[k],ge[N]}return""}var Ye=Se("animationend"),_t=Se("transitionend"),zt=!!(Ye&&_t),_e=Ye||"animationend",Ot=_t||"transitionend";function Ct(N,$){if(!N)return null;if(Object(ue.a)(N)==="object"){var oe=$.replace(/-\w/g,function(U){return U[1].toUpperCase()});return N[oe]}return"".concat(N,"-").concat($)}var et="none",Zt="appear",Kt="enter",at="leave",un="none",Wt="prepare",Kn="start",In="active",It="end";function vi(N){var $=Object(C.useRef)(!1),oe=Object(C.useState)(N),U=Object(de.a)(oe,2),g=U[0],k=U[1];function b(z){$.current||k(z)}return Object(C.useEffect)(function(){return function(){$.current=!0}},[]),[g,b]}var si=Object(Z.a)()?C.useLayoutEffect:C.useEffect,Qn=si,oi=function(){var N=C.useRef(null);function $(){st.a.cancel(N.current)}function oe(U){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;$();var k=Object(st.a)(function(){g<=1?U({isCanceled:function(){return k!==N.current}}):oe(U,g-1)});N.current=k}return C.useEffect(function(){return function(){$()}},[]),[oe,$]},_i=[Wt,Kn,In,It],Di=!1,cn=!0;function Rt(N){return N===In||N===It}var ji=function(N,$){var oe=C.useState(un),U=Object(de.a)(oe,2),g=U[0],k=U[1],b=oi(),z=Object(de.a)(b,2),H=z[0],ae=z[1];function te(){k(Wt)}return Qn(function(){if(g!==un&&g!==It){var pe=_i.indexOf(g),Ie=_i[pe+1],it=$(g);it===Di?k(Ie):H(function(tt){function mt(){if(tt.isCanceled())return;k(Ie)}it===!0?mt():Promise.resolve(it).then(mt)})}},[N,g]),C.useEffect(function(){return function(){ae()}},[]),[te,g]},Li=function(N){var $=Object(C.useRef)(),oe=Object(C.useRef)(N);oe.current=N;var U=C.useCallback(function(b){oe.current(b)},[]);function g(b){b&&(b.removeEventListener(Ot,U),b.removeEventListener(_e,U))}function k(b){$.current&&$.current!==b&&g($.current),b&&b!==$.current&&(b.addEventListener(Ot,U),b.addEventListener(_e,U),$.current=b)}return C.useEffect(function(){return function(){g($.current)}},[]),[k,g]};function Nn(N,$,oe,U){var g=U.motionEnter,k=g===void 0?!0:g,b=U.motionAppear,z=b===void 0?!0:b,H=U.motionLeave,ae=H===void 0?!0:H,te=U.motionDeadline,pe=U.motionLeaveImmediately,Ie=U.onAppearPrepare,it=U.onEnterPrepare,tt=U.onLeavePrepare,mt=U.onAppearStart,Xt=U.onEnterStart,sn=U.onLeaveStart,tn=U.onAppearActive,on=U.onEnterActive,ln=U.onLeaveActive,an=U.onAppearEnd,rn=U.onEnterEnd,En=U.onLeaveEnd,fn=U.onVisibleChanged,Zn=vi(),pn=Object(de.a)(Zn,2),Qt=pn[0],Gt=pn[1],vn=vi(et),xn=Object(de.a)(vn,2),Bt=xn[0],Sn=xn[1],qn=vi(null),On=Object(de.a)(qn,2),Fn=On[0],jn=On[1],ci=Object(C.useRef)(!1),Si=Object(C.useRef)(null),ti=Object(C.useRef)(!1),zi=Object(C.useRef)(null);function co(){var Hn=oe();return Hn||zi.current}var Qi=Object(C.useRef)(!1);function ki(Hn){var _n=co();if(Hn&&!Hn.deadline&&Hn.target!==_n)return;var Mi;Bt===Zt&&Qi.current?Mi=an==null?void 0:an(_n,Hn):Bt===Kt&&Qi.current?Mi=rn==null?void 0:rn(_n,Hn):Bt===at&&Qi.current&&(Mi=En==null?void 0:En(_n,Hn)),Mi!==!1&&!ti.current&&(Sn(et),jn(null))}var Gn=Li(ki),Wn=Object(de.a)(Gn,1),ni=Wn[0],$n=C.useMemo(function(){var Hn,_n,Mi;switch(Bt){case"appear":return Hn={},Object(I.a)(Hn,Wt,Ie),Object(I.a)(Hn,Kn,mt),Object(I.a)(Hn,In,tn),Hn;case"enter":return _n={},Object(I.a)(_n,Wt,it),Object(I.a)(_n,Kn,Xt),Object(I.a)(_n,In,on),_n;case"leave":return Mi={},Object(I.a)(Mi,Wt,tt),Object(I.a)(Mi,Kn,sn),Object(I.a)(Mi,In,ln),Mi;default:return{}}},[Bt]),ho=ji(Bt,function(Hn){if(Hn===Wt){var _n=$n[Wt];return _n?_n(co()):Di}if(Bn in $n){var Mi;jn(((Mi=$n[Bn])===null||Mi===void 0?void 0:Mi.call($n,co(),null))||null)}return Bn===In&&(ni(co()),te>0&&(clearTimeout(Si.current),Si.current=setTimeout(function(){ki({deadline:!0})},te))),cn}),Do=Object(de.a)(ho,2),Lo=Do[0],Bn=Do[1],bo=Rt(Bn);Qi.current=bo,Qn(function(){Gt($);var Hn=ci.current;if(ci.current=!0,!N)return;var _n;!Hn&&$&&z&&(_n=Zt),Hn&&$&&k&&(_n=Kt),(Hn&&!$&&ae||!Hn&&pe&&!$&&ae)&&(_n=at),_n&&(Sn(_n),Lo())},[$]),Object(C.useEffect)(function(){(Bt===Zt&&!z||Bt===Kt&&!k||Bt===at&&!ae)&&Sn(et)},[z,k,ae]),Object(C.useEffect)(function(){return function(){clearTimeout(Si.current),ti.current=!0}},[]),Object(C.useEffect)(function(){Qt!==void 0&&Bt===et&&(fn==null||fn(Qt))},[Qt,Bt]);var Io=Fn;return $n[Wt]&&Bn===Kn&&(Io=Object(X.a)({transition:"none"},Io)),[Bt,Bn,Io,Qt!=null?Qt:$]}var Jt=function(N){Object(Ne.a)(oe,N);var $=Object(be.a)(oe);function oe(){return Object(Ve.a)(this,oe),$.apply(this,arguments)}return Object(Ee.a)(oe,[{key:"render",value:function(){return this.props.children}}]),oe}(C.Component),wn=Jt;function en(N){var $=N;Object(ue.a)(N)==="object"&&($=N.transitionSupport);function oe(g){return!!(g.motionName&&$)}var U=C.forwardRef(function(g,k){var b=g.visible,z=b===void 0?!0:b,H=g.removeOnLeave,ae=H===void 0?!0:H,te=g.forceRender,pe=g.children,Ie=g.motionName,it=g.leavedClassName,tt=g.eventProps,mt=oe(g),Xt=Object(C.useRef)(),sn=Object(C.useRef)();function tn(){try{return Object(ct.a)(Xt.current||sn.current)}catch(Sn){return null}}var on=Nn(mt,z,tn,g),ln=Object(de.a)(on,4),an=ln[0],rn=ln[1],En=ln[2],fn=ln[3],Zn=C.useRef(fn);fn&&(Zn.current=!0);var pn=Object(C.useRef)(k);pn.current=k;var Qt=C.useCallback(function(Sn){Xt.current=Sn,Object(xt.b)(pn.current,Sn)},[]),Gt,vn=Object(X.a)(Object(X.a)({},tt),{},{visible:z});if(!pe)Gt=null;else if(an===et||!oe(g))fn?Gt=pe(Object(X.a)({},vn),Qt):!ae&&Zn.current?Gt=pe(Object(X.a)(Object(X.a)({},vn),{},{className:it}),Qt):te?Gt=pe(Object(X.a)(Object(X.a)({},vn),{},{style:{display:"none"}}),Qt):Gt=null;else{var xn,Bt;rn===Wt?Bt="prepare":Rt(rn)?Bt="active":rn===Kn&&(Bt="start"),Gt=pe(Object(X.a)(Object(X.a)({},vn),{},{className:w()(Ct(Ie,an),(xn={},Object(I.a)(xn,Ct(Ie,"".concat(an,"-").concat(Bt)),Bt),Object(I.a)(xn,Ie,typeof Ie=="string"),xn)),style:En}),Qt)}return C.createElement(wn,{ref:sn},Gt)});return U.displayName="CSSMotion",U}var yn=en(zt),je="add",Nt="keep",Jn="remove",Yn="removed";function ao(N){var $;return N&&Object(ue.a)(N)==="object"&&"key"in N?$=N:$={key:N},Object(X.a)(Object(X.a)({},$),{},{key:String($.key)})}function so(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return N.map(ao)}function d(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],oe=[],U=0,g=$.length,k=so(N),b=so($);k.forEach(function(ae){for(var te=!1,pe=U;pe<g;pe+=1){var Ie=b[pe];if(Ie.key===ae.key){U<pe&&(oe=oe.concat(b.slice(U,pe).map(function(it){return Object(X.a)(Object(X.a)({},it),{},{status:je})})),U=pe),oe.push(Object(X.a)(Object(X.a)({},Ie),{},{status:Nt})),U+=1,te=!0;break}}te||oe.push(Object(X.a)(Object(X.a)({},ae),{},{status:Jn}))}),U<g&&(oe=oe.concat(b.slice(U).map(function(ae){return Object(X.a)(Object(X.a)({},ae),{},{status:je})})));var z={};oe.forEach(function(ae){var te=ae.key;z[te]=(z[te]||0)+1});var H=Object.keys(z).filter(function(ae){return z[ae]>1});return H.forEach(function(ae){oe=oe.filter(function(te){var pe=te.key,Ie=te.status;return pe!==ae||Ie!==Jn}),oe.forEach(function(te){te.key===ae&&(te.status=Nt)})}),oe}var r=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function a(N){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yn,oe=function(U){Object(Ne.a)(k,U);var g=Object(be.a)(k);function k(){var b;return Object(Ve.a)(this,k),b=g.apply(this,arguments),b.state={keyEntities:[]},b.removeKey=function(z){b.setState(function(H){var ae=H.keyEntities;return{keyEntities:ae.map(function(te){return te.key!==z?te:Object(X.a)(Object(X.a)({},te),{},{status:Yn})})}})},b}return Object(Ee.a)(k,[{key:"render",value:function(){var z=this,H=this.state.keyEntities,ae=this.props,te=ae.component,pe=ae.children,Ie=ae.onVisibleChanged,it=Object(re.a)(ae,["component","children","onVisibleChanged"]),tt=te||C.Fragment,mt={};return r.forEach(function(Xt){mt[Xt]=it[Xt],delete it[Xt]}),delete it.keys,C.createElement(tt,it,H.map(function(Xt){var sn=Xt.status,tn=Object(re.a)(Xt,["status"]),on=sn===je||sn===Nt;return C.createElement($,Object(ke.a)({},mt,{key:tn.key,visible:on,eventProps:tn,onVisibleChanged:function(an){Ie==null||Ie(an,{key:tn.key}),an||z.removeKey(tn.key)}}),pe)}))}}],[{key:"getDerivedStateFromProps",value:function(z,H){var ae=z.keys,te=H.keyEntities,pe=so(ae),Ie=d(te,pe);return{keyEntities:Ie.filter(function(it){var tt=te.find(function(mt){var Xt=mt.key;return it.key===Xt});return!(tt&&tt.status===Yn&&it.status===Jn)})}}}]),k}(C.Component);return oe.defaultProps={component:"div"},oe}var u=a(zt),m=yn;function c(N){var $=N.prefixCls,oe=N.motion,U=N.animation,g=N.transitionName;return oe||(U?{motionName:"".concat($,"-").concat(U)}:g?{motionName:g}:null)}function Y(N){var $=N.prefixCls,oe=N.visible,U=N.zIndex,g=N.mask,k=N.maskMotion,b=N.maskAnimation,z=N.maskTransitionName;if(!g)return null;var H={};return(k||z||b)&&(H=Object(X.a)({motionAppear:!0},c({motion:k,prefixCls:$,transitionName:z,animation:b}))),C.createElement(m,Object(ke.a)({},H,{visible:oe,removeOnLeave:!0}),function(ae){var te=ae.className;return C.createElement("div",{style:{zIndex:U},className:w()("".concat($,"-mask"),te)})})}var Ge=h("9mu1"),ve=h("o0o1"),Lt=h.n(ve),Qe=h("HaE+"),Et=["measure","align",null,"motion"],At=function(N,$){var oe=Object(C.useState)(null),U=Object(de.a)(oe,2),g=U[0],k=U[1],b=Object(C.useRef)(),z=Object(C.useRef)(!1);function H(pe){z.current||k(pe)}function ae(){st.a.cancel(b.current)}function te(pe){ae(),b.current=Object(st.a)(function(){H(function(Ie){switch(g){case"align":return"motion";case"motion":return"stable";default:}return Ie}),pe==null||pe()})}return Object(C.useEffect)(function(){H("measure")},[N]),Object(C.useEffect)(function(){switch(g){case"measure":$();break;default:}g&&(b.current=Object(st.a)(Object(Qe.a)(Lt.a.mark(function pe(){var Ie,it;return Lt.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:Ie=Et.indexOf(g),it=Et[Ie+1],it&&Ie!==-1&&H(it);case 3:case"end":return mt.stop()}},pe)}))))},[g]),Object(C.useEffect)(function(){return function(){z.current=!0,ae()}},[]),[g,te]},kt=function(N){var $=C.useState({width:0,height:0}),oe=Object(de.a)($,2),U=oe[0],g=oe[1];function k(z){g({width:z.offsetWidth,height:z.offsetHeight})}var b=C.useMemo(function(){var z={};if(N){var H=U.width,ae=U.height;N.indexOf("height")!==-1&&ae?z.height=ae:N.indexOf("minHeight")!==-1&&ae&&(z.minHeight=ae),N.indexOf("width")!==-1&&H?z.width=H:N.indexOf("minWidth")!==-1&&H&&(z.minWidth=H)}return z},[N,U]);return[b,k]},nn=C.forwardRef(function(N,$){var oe=N.visible,U=N.prefixCls,g=N.className,k=N.style,b=N.children,z=N.zIndex,H=N.stretch,ae=N.destroyPopupOnHide,te=N.forceRender,pe=N.align,Ie=N.point,it=N.getRootDomNode,tt=N.getClassNameFromAlign,mt=N.onAlign,Xt=N.onMouseEnter,sn=N.onMouseLeave,tn=N.onMouseDown,on=N.onTouchStart,ln=Object(C.useRef)(),an=Object(C.useRef)(),rn=Object(C.useState)(),En=Object(de.a)(rn,2),fn=En[0],Zn=En[1],pn=kt(H),Qt=Object(de.a)(pn,2),Gt=Qt[0],vn=Qt[1];function xn(){H&&vn(it())}var Bt=At(oe,xn),Sn=Object(de.a)(Bt,2),qn=Sn[0],On=Sn[1],Fn=Object(C.useRef)();function jn(){return Ie||it}function ci(){var Gn;(Gn=ln.current)===null||Gn===void 0||Gn.forceAlign()}function Si(Gn,Wn){var ni=tt(Wn);fn!==ni&&Zn(ni),qn==="align"&&(fn!==ni?Promise.resolve().then(function(){ci()}):On(function(){var $n;($n=Fn.current)===null||$n===void 0||$n.call(Fn)}),mt==null||mt(Gn,Wn))}var ti=Object(X.a)({},c(N));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Gn){var Wn=ti[Gn];ti[Gn]=function(ni,$n){return On(),Wn==null?void 0:Wn(ni,$n)}});function zi(){return new Promise(function(Gn){Fn.current=Gn})}C.useEffect(function(){!ti.motionName&&qn==="motion"&&On()},[ti.motionName,qn]),C.useImperativeHandle($,function(){return{forceAlign:ci,getElement:function(){return an.current}}});var co=Object(X.a)(Object(X.a)({},Gt),{},{zIndex:z,opacity:qn==="motion"||qn==="stable"||!oe?void 0:0,pointerEvents:qn==="stable"?void 0:"none"},k),Qi=!0;(pe==null?void 0:pe.points)&&(qn==="align"||qn==="stable")&&(Qi=!1);var ki=b;return C.Children.count(b)>1&&(ki=C.createElement("div",{className:"".concat(U,"-content")},b)),C.createElement(m,Object(ke.a)({visible:oe,ref:an,leavedClassName:"".concat(U,"-hidden")},ti,{onAppearPrepare:zi,onEnterPrepare:zi,removeOnLeave:ae,forceRender:te}),function(Gn,Wn){var ni=Gn.className,$n=Gn.style,ho=w()(U,g,fn,ni);return C.createElement(Ge.a,{target:jn(),key:"popup",ref:ln,monitorWindowResize:!0,disabled:Qi,align:pe,onAlign:Si},C.createElement("div",{ref:Wn,className:ho,onMouseEnter:Xt,onMouseLeave:sn,onMouseDownCapture:tn,onTouchStartCapture:on,style:Object(X.a)(Object(X.a)({},$n),co)},ki))})});nn.displayName="PopupInner";var mn=nn,$t=C.forwardRef(function(N,$){var oe=N.prefixCls,U=N.visible,g=N.zIndex,k=N.children,b=N.mobile;b=b===void 0?{}:b;var z=b.popupClassName,H=b.popupStyle,ae=b.popupMotion,te=ae===void 0?{}:ae,pe=b.popupRender,Ie=C.useRef();C.useImperativeHandle($,function(){return{forceAlign:function(){},getElement:function(){return Ie.current}}});var it=Object(X.a)({zIndex:g},H),tt=k;return C.Children.count(k)>1&&(tt=C.createElement("div",{className:"".concat(oe,"-content")},k)),pe&&(tt=pe(tt)),C.createElement(m,Object(ke.a)({visible:U,ref:Ie,removeOnLeave:!0},te),function(mt,Xt){var sn=mt.className,tn=mt.style,on=w()(oe,z,sn);return C.createElement("div",{ref:Xt,className:on,style:Object(X.a)(Object(X.a)({},tn),it)},tt)})});$t.displayName="MobilePopupInner";var Bi=$t,hi=["visible","mobile"],wi=C.forwardRef(function(N,$){var oe=N.visible,U=N.mobile,g=Object(re.a)(N,hi),k=Object(C.useState)(oe),b=Object(de.a)(k,2),z=b[0],H=b[1],ae=Object(C.useState)(!1),te=Object(de.a)(ae,2),pe=te[0],Ie=te[1],it=Object(X.a)(Object(X.a)({},g),{},{visible:z});Object(C.useEffect)(function(){H(oe),oe&&U&&Ie(ie())},[oe,U]);var tt=pe?C.createElement(Bi,Object(ke.a)({},it,{mobile:U,ref:$})):C.createElement(mn,Object(ke.a)({},it,{ref:$}));return C.createElement("div",null,C.createElement(Y,it),tt)});wi.displayName="Popup";var Ii=wi,Ai=C.createContext(null),lo=Ai;function qi(){}function go(){return""}function $i(N){return N?N.ownerDocument:window.document}var lr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Qo(N){var $=function(oe){Object(Ne.a)(g,oe);var U=Object(be.a)(g);function g(k){var b;Object(Ve.a)(this,g),b=U.call(this,k),b.popupRef=C.createRef(),b.triggerRef=C.createRef(),b.attachId=void 0,b.clickOutsideHandler=void 0,b.touchOutsideHandler=void 0,b.contextMenuOutsideHandler1=void 0,b.contextMenuOutsideHandler2=void 0,b.mouseDownTimeout=void 0,b.focusTime=void 0,b.preClickTime=void 0,b.preTouchTime=void 0,b.delayTimer=void 0,b.hasPopupMouseDown=void 0,b.onMouseEnter=function(H){var ae=b.props.mouseEnterDelay;b.fireEvents("onMouseEnter",H),b.delaySetPopupVisible(!0,ae,ae?null:H)},b.onMouseMove=function(H){b.fireEvents("onMouseMove",H),b.setPoint(H)},b.onMouseLeave=function(H){b.fireEvents("onMouseLeave",H),b.delaySetPopupVisible(!1,b.props.mouseLeaveDelay)},b.onPopupMouseEnter=function(){b.clearDelayTimer()},b.onPopupMouseLeave=function(H){var ae;if(H.relatedTarget&&!H.relatedTarget.setTimeout&&Object(St.a)((ae=b.popupRef.current)===null||ae===void 0?void 0:ae.getElement(),H.relatedTarget))return;b.delaySetPopupVisible(!1,b.props.mouseLeaveDelay)},b.onFocus=function(H){b.fireEvents("onFocus",H),b.clearDelayTimer(),b.isFocusToShow()&&(b.focusTime=Date.now(),b.delaySetPopupVisible(!0,b.props.focusDelay))},b.onMouseDown=function(H){b.fireEvents("onMouseDown",H),b.preClickTime=Date.now()},b.onTouchStart=function(H){b.fireEvents("onTouchStart",H),b.preTouchTime=Date.now()},b.onBlur=function(H){b.fireEvents("onBlur",H),b.clearDelayTimer(),b.isBlurToHide()&&b.delaySetPopupVisible(!1,b.props.blurDelay)},b.onContextMenu=function(H){H.preventDefault(),b.fireEvents("onContextMenu",H),b.setPopupVisible(!0,H)},b.onContextMenuClose=function(){b.isContextMenuToShow()&&b.close()},b.onClick=function(H){if(b.fireEvents("onClick",H),b.focusTime){var ae;if(b.preClickTime&&b.preTouchTime?ae=Math.min(b.preClickTime,b.preTouchTime):b.preClickTime?ae=b.preClickTime:b.preTouchTime&&(ae=b.preTouchTime),Math.abs(ae-b.focusTime)<20)return;b.focusTime=0}b.preClickTime=0,b.preTouchTime=0,b.isClickToShow()&&(b.isClickToHide()||b.isBlurToHide())&&H&&H.preventDefault&&H.preventDefault();var te=!b.state.popupVisible;(b.isClickToHide()&&!te||te&&b.isClickToShow())&&b.setPopupVisible(!b.state.popupVisible,H)},b.onPopupMouseDown=function(){if(b.hasPopupMouseDown=!0,clearTimeout(b.mouseDownTimeout),b.mouseDownTimeout=window.setTimeout(function(){b.hasPopupMouseDown=!1},0),b.context){var H;(H=b.context).onPopupMouseDown.apply(H,arguments)}},b.onDocumentClick=function(H){if(b.props.mask&&!b.props.maskClosable)return;var ae=H.target,te=b.getRootDomNode(),pe=b.getPopupDomNode();(!Object(St.a)(te,ae)||b.isContextMenuOnly())&&!Object(St.a)(pe,ae)&&!b.hasPopupMouseDown&&b.close()},b.getRootDomNode=function(){var H=b.props.getTriggerDOMNode;if(H)return H(b.triggerRef.current);try{var ae=Object(ct.a)(b.triggerRef.current);if(ae)return ae}catch(te){}return ut.a.findDOMNode(Object(Ce.a)(b))},b.getPopupClassNameFromAlign=function(H){var ae=[],te=b.props,pe=te.popupPlacement,Ie=te.builtinPlacements,it=te.prefixCls,tt=te.alignPoint,mt=te.getPopupClassNameFromAlign;return pe&&Ie&&ae.push(Xe(Ie,it,H,tt)),mt&&ae.push(mt(H)),ae.join(" ")},b.getComponent=function(){var H=b.props,ae=H.prefixCls,te=H.destroyPopupOnHide,pe=H.popupClassName,Ie=H.onPopupAlign,it=H.popupMotion,tt=H.popupAnimation,mt=H.popupTransitionName,Xt=H.popupStyle,sn=H.mask,tn=H.maskAnimation,on=H.maskTransitionName,ln=H.maskMotion,an=H.zIndex,rn=H.popup,En=H.stretch,fn=H.alignPoint,Zn=H.mobile,pn=H.forceRender,Qt=b.state,Gt=Qt.popupVisible,vn=Qt.point,xn=b.getPopupAlign(),Bt={};return b.isMouseEnterToShow()&&(Bt.onMouseEnter=b.onPopupMouseEnter),b.isMouseLeaveToHide()&&(Bt.onMouseLeave=b.onPopupMouseLeave),Bt.onMouseDown=b.onPopupMouseDown,Bt.onTouchStart=b.onPopupMouseDown,C.createElement(Ii,Object(ke.a)({prefixCls:ae,destroyPopupOnHide:te,visible:Gt,point:fn&&vn,className:pe,align:xn,onAlign:Ie,animation:tt,getClassNameFromAlign:b.getPopupClassNameFromAlign},Bt,{stretch:En,getRootDomNode:b.getRootDomNode,style:Xt,mask:sn,zIndex:an,transitionName:mt,maskAnimation:tn,maskTransitionName:on,maskMotion:ln,ref:b.popupRef,motion:it,mobile:Zn,forceRender:pn}),typeof rn=="function"?rn():rn)},b.attachParent=function(H){st.a.cancel(b.attachId);var ae=b.props,te=ae.getPopupContainer,pe=ae.getDocument,Ie=b.getRootDomNode(),it;te?(Ie||te.length===0)&&(it=te(Ie)):it=pe(b.getRootDomNode()).body,it?it.appendChild(H):b.attachId=Object(st.a)(function(){b.attachParent(H)})},b.getContainer=function(){var H=b.props.getDocument,ae=H(b.getRootDomNode()).createElement("div");return ae.style.position="absolute",ae.style.top="0",ae.style.left="0",ae.style.width="100%",b.attachParent(ae),ae},b.setPoint=function(H){var ae=b.props.alignPoint;if(!ae||!H)return;b.setState({point:{pageX:H.pageX,pageY:H.pageY}})},b.handlePortalUpdate=function(){b.state.prevPopupVisible!==b.state.popupVisible&&b.props.afterPopupVisibleChange(b.state.popupVisible)},b.triggerContextValue={onPopupMouseDown:b.onPopupMouseDown};var z;return"popupVisible"in k?z=!!k.popupVisible:z=!!k.defaultPopupVisible,b.state={prevPopupVisible:z,popupVisible:z},lr.forEach(function(H){b["fire".concat(H)]=function(ae){b.fireEvents(H,ae)}}),b}return Object(Ee.a)(g,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var b=this.props,z=this.state;if(z.popupVisible){var H;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(H=b.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Te.a)(H,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(H=H||b.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Te.a)(H,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(H=H||b.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Te.a)(H,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Te.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),st.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var b;return((b=this.popupRef.current)===null||b===void 0?void 0:b.getElement())||null}},{key:"getPopupAlign",value:function(){var b=this.props,z=b.popupPlacement,H=b.popupAlign,ae=b.builtinPlacements;return z&&ae?Le(ae,z,H):H}},{key:"setPopupVisible",value:function(b,z){var H=this.props.alignPoint,ae=this.state.popupVisible;this.clearDelayTimer(),ae!==b&&("popupVisible"in this.props||this.setState({popupVisible:b,prevPopupVisible:ae}),this.props.onPopupVisibleChange(b)),H&&z&&b&&this.setPoint(z)}},{key:"delaySetPopupVisible",value:function(b,z,H){var ae=this,te=z*1e3;if(this.clearDelayTimer(),te){var pe=H?{pageX:H.pageX,pageY:H.pageY}:null;this.delayTimer=window.setTimeout(function(){ae.setPopupVisible(b,pe),ae.clearDelayTimer()},te)}else this.setPopupVisible(b,H)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(b){var z=this.props.children.props,H=this.props;return z[b]&&H[b]?this["fire".concat(b)]:z[b]||H[b]}},{key:"isClickToShow",value:function(){var b=this.props,z=b.action,H=b.showAction;return z.indexOf("click")!==-1||H.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var b=this.props.action;return b==="contextMenu"||b.length===1&&b[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var b=this.props,z=b.action,H=b.showAction;return z.indexOf("contextMenu")!==-1||H.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var b=this.props,z=b.action,H=b.hideAction;return z.indexOf("click")!==-1||H.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var b=this.props,z=b.action,H=b.showAction;return z.indexOf("hover")!==-1||H.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var b=this.props,z=b.action,H=b.hideAction;return z.indexOf("hover")!==-1||H.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var b=this.props,z=b.action,H=b.showAction;return z.indexOf("focus")!==-1||H.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var b=this.props,z=b.action,H=b.hideAction;return z.indexOf("focus")!==-1||H.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var b;(b=this.popupRef.current)===null||b===void 0||b.forceAlign()}}},{key:"fireEvents",value:function(b,z){var H=this.props.children.props[b];H&&H(z);var ae=this.props[b];ae&&ae(z)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var b=this.state.popupVisible,z=this.props,H=z.children,ae=z.forceRender,te=z.alignPoint,pe=z.className,Ie=z.autoDestroy,it=C.Children.only(H),tt={key:"trigger"};this.isContextMenuToShow()?tt.onContextMenu=this.onContextMenu:tt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(tt.onClick=this.onClick,tt.onMouseDown=this.onMouseDown,tt.onTouchStart=this.onTouchStart):(tt.onClick=this.createTwoChains("onClick"),tt.onMouseDown=this.createTwoChains("onMouseDown"),tt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(tt.onMouseEnter=this.onMouseEnter,te&&(tt.onMouseMove=this.onMouseMove)):tt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?tt.onMouseLeave=this.onMouseLeave:tt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(tt.onFocus=this.onFocus,tt.onBlur=this.onBlur):(tt.onFocus=this.createTwoChains("onFocus"),tt.onBlur=this.createTwoChains("onBlur"));var mt=w()(it&&it.props&&it.props.className,pe);mt&&(tt.className=mt);var Xt=Object(X.a)({},tt);Object(xt.c)(it)&&(Xt.ref=Object(xt.a)(this.triggerRef,it.ref));var sn=C.cloneElement(it,Xt),tn;return(b||this.popupRef.current||ae)&&(tn=C.createElement(N,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!b&&Ie&&(tn=null),C.createElement(lo.Provider,{value:this.triggerContextValue},sn,tn)}}],[{key:"getDerivedStateFromProps",value:function(b,z){var H=b.popupVisible,ae={};return H!==void 0&&z.popupVisible!==H&&(ae.popupVisible=H,ae.prevPopupVisible=z.popupVisible),ae}}]),g}(C.Component);return $.contextType=lo,$.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:go,getDocument:$i,onPopupVisibleChange:qi,afterPopupVisibleChange:qi,onPopupAlign:qi,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},$}var Vi=Qo(Dt.a),li={adjustX:1,adjustY:1},Oo={topLeft:{points:["bl","tl"],overflow:li,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:li,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:li,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:li,offset:[4,0]}},Uo={topLeft:{points:["bl","tl"],overflow:li,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:li,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:li,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:li,offset:[4,0]}},Jo=Oo,ei=0,Mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ri=function($,oe,U){var g=He(oe),k=$.getState();$.setState({defaultActiveFirst:Object(X.a)(Object(X.a)({},k.defaultActiveFirst),{},Object(I.a)({},g,U))})},kn=function(N){Object(Ne.a)(oe,N);var $=Object(be.a)(oe);function oe(U){var g;Object(Ve.a)(this,oe),g=$.call(this,U),g.onDestroy=function(te){g.props.onDestroy(te)},g.onKeyDown=function(te){var pe=te.keyCode,Ie=g.menuInstance,it=g.props.store,tt=g.getVisible();if(pe===D.a.ENTER)return g.onTitleClick(te),ri(it,g.props.eventKey,!0),!0;if(pe===D.a.RIGHT)return tt?Ie.onKeyDown(te):(g.triggerOpenChange(!0),ri(it,g.props.eventKey,!0)),!0;if(pe===D.a.LEFT){var mt;if(tt)mt=Ie.onKeyDown(te);else return;return mt||(g.triggerOpenChange(!1),mt=!0),mt}return tt&&(pe===D.a.UP||pe===D.a.DOWN)?Ie.onKeyDown(te):void 0},g.onOpenChange=function(te){g.props.onOpenChange(te)},g.onPopupVisibleChange=function(te){g.triggerOpenChange(te,te?"mouseenter":"mouseleave")},g.onMouseEnter=function(te){var pe=g.props,Ie=pe.eventKey,it=pe.onMouseEnter,tt=pe.store;ri(tt,g.props.eventKey,!1),it({key:Ie,domEvent:te})},g.onMouseLeave=function(te){var pe=g.props,Ie=pe.parentMenu,it=pe.eventKey,tt=pe.onMouseLeave;Ie.subMenuInstance=Object(Ce.a)(g),tt({key:it,domEvent:te})},g.onTitleMouseEnter=function(te){var pe=g.props,Ie=pe.eventKey,it=pe.onItemHover,tt=pe.onTitleMouseEnter;it({key:Ie,hover:!0}),tt({key:Ie,domEvent:te})},g.onTitleMouseLeave=function(te){var pe=g.props,Ie=pe.parentMenu,it=pe.eventKey,tt=pe.onItemHover,mt=pe.onTitleMouseLeave;Ie.subMenuInstance=Object(Ce.a)(g),tt({key:it,hover:!1}),mt({key:it,domEvent:te})},g.onTitleClick=function(te){var pe=Object(Ce.a)(g),Ie=pe.props;if(Ie.onTitleClick({key:Ie.eventKey,domEvent:te}),Ie.triggerSubMenuAction==="hover")return;g.triggerOpenChange(!g.getVisible(),"click"),ri(Ie.store,g.props.eventKey,!1)},g.onSubMenuClick=function(te){typeof g.props.onClick=="function"&&g.props.onClick(g.addKeyPath(te))},g.onSelect=function(te){g.props.onSelect(te)},g.onDeselect=function(te){g.props.onDeselect(te)},g.getPrefixCls=function(){return"".concat(g.props.rootPrefixCls,"-submenu")},g.getActiveClassName=function(){return"".concat(g.getPrefixCls(),"-active")},g.getDisabledClassName=function(){return"".concat(g.getPrefixCls(),"-disabled")},g.getSelectedClassName=function(){return"".concat(g.getPrefixCls(),"-selected")},g.getOpenClassName=function(){return"".concat(g.props.rootPrefixCls,"-submenu-open")},g.getVisible=function(){return g.state.isOpen},g.getMode=function(){return g.state.mode},g.saveMenuInstance=function(te){g.menuInstance=te},g.addKeyPath=function(te){return Object(X.a)(Object(X.a)({},te),{},{keyPath:(te.keyPath||[]).concat(g.props.eventKey)})},g.triggerOpenChange=function(te,pe){var Ie=g.props.eventKey,it=function(){g.onOpenChange({key:Ie,item:Object(Ce.a)(g),trigger:pe,open:te})};pe==="mouseenter"?g.mouseenterTimeout=setTimeout(function(){it()},0):it()},g.isChildrenSelected=function(){var te={find:!1};return pt(g.props.children,g.props.selectedKeys,te),te.find},g.isInlineMode=function(){return g.getMode()==="inline"},g.adjustWidth=function(){if(!g.subMenuTitle||!g.menuInstance)return;var te=bt.findDOMNode(g.menuInstance);if(te.offsetWidth>=g.subMenuTitle.offsetWidth)return;te.style.minWidth="".concat(g.subMenuTitle.offsetWidth,"px")},g.saveSubMenuTitle=function(te){g.subMenuTitle=te},g.getBaseProps=function(){var te=Object(Ce.a)(g),pe=te.props,Ie=g.getMode();return{mode:Ie==="horizontal"?"vertical":Ie,visible:g.getVisible(),level:pe.level+1,inlineIndent:pe.inlineIndent,focusable:!1,onClick:g.onSubMenuClick,onSelect:g.onSelect,onDeselect:g.onDeselect,onDestroy:g.onDestroy,selectedKeys:pe.selectedKeys,eventKey:"".concat(pe.eventKey,"-menu-"),openKeys:pe.openKeys,motion:pe.motion,onOpenChange:g.onOpenChange,subMenuOpenDelay:pe.subMenuOpenDelay,parentMenu:Object(Ce.a)(g),subMenuCloseDelay:pe.subMenuCloseDelay,forceSubMenuRender:pe.forceSubMenuRender,triggerSubMenuAction:pe.triggerSubMenuAction,builtinPlacements:pe.builtinPlacements,defaultActiveFirst:pe.store.getState().defaultActiveFirst[He(pe.eventKey)],multiple:pe.multiple,prefixCls:pe.rootPrefixCls,id:g.internalMenuId,manualRef:g.saveMenuInstance,itemIcon:pe.itemIcon,expandIcon:pe.expandIcon,direction:pe.direction}},g.getMotion=function(te,pe){var Ie=Object(Ce.a)(g),it=Ie.haveRendered,tt=g.props,mt=tt.motion,Xt=tt.rootPrefixCls,sn=Object(X.a)(Object(X.a)({},mt),{},{leavedClassName:"".concat(Xt,"-hidden"),removeOnLeave:!1,motionAppear:it||!pe||te!=="inline"});return sn};var k=U.store,b=U.eventKey,z=k.getState(),H=z.defaultActiveFirst;g.isRootMenu=!1;var ae=!1;return H&&(ae=H[b]),ri(k,b,ae),g.state={mode:U.mode,isOpen:U.isOpen},g}return Object(Ee.a)(oe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var g=this,k=this.props,b=k.mode,z=k.parentMenu,H=k.manualRef,ae=k.isOpen,te=function(){g.setState({mode:b,isOpen:ae})},pe=ae!==this.state.isOpen,Ie=b!==this.state.mode;if((Ie||pe)&&(st.a.cancel(this.updateStateRaf),Ie?this.updateStateRaf=Object(st.a)(te):te()),H&&H(this),b!=="horizontal"||!(z==null?void 0:z.isRootMenu)||!ae)return;this.minWidthTimeout=setTimeout(function(){return g.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var g=this.props,k=g.onDestroy,b=g.eventKey;k&&k(b),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),st.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(g,k){var b=this.getBaseProps();return C.createElement(yo,Object(ke.a)({},b,{id:this.internalMenuId,className:g,style:k}),this.props.children)}},{key:"renderChildren",value:function(){var g=this,k=this.getBaseProps(),b=k.mode,z=k.visible,H=k.forceSubMenuRender,ae=k.direction,te=this.getMotion(b,z);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||z||H,!this.haveOpened)return C.createElement("div",null);var pe=w()("".concat(k.prefixCls,"-sub"),Object(I.a)({},"".concat(k.prefixCls,"-rtl"),ae==="rtl"));return this.isInlineMode()?C.createElement(m,Object(ke.a)({visible:k.visible,forceRender:H},te),function(Ie){var it=Ie.className,tt=Ie.style,mt=w()(pe,it);return g.renderPopupMenu(mt,tt)}):this.renderPopupMenu(pe)}},{key:"render",value:function(){var g,k,b,z=Object(X.a)({},this.props),H=this.getVisible(),ae=this.getPrefixCls(),te=this.isInlineMode(),pe=this.getMode(),Ie=w()(ae,"".concat(ae,"-").concat(pe),(g={},Object(I.a)(g,z.className,!!z.className),Object(I.a)(g,this.getOpenClassName(),H),Object(I.a)(g,this.getActiveClassName(),z.active||H&&!te),Object(I.a)(g,this.getDisabledClassName(),z.disabled),Object(I.a)(g,this.getSelectedClassName(),this.isChildrenSelected()),g));this.internalMenuId||(z.eventKey?this.internalMenuId="".concat(z.eventKey,"$Menu"):(ei+=1,this.internalMenuId="$__$".concat(ei,"$Menu")));var it={},tt={},mt={};z.disabled||(it={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},tt={onClick:this.onTitleClick},mt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Xt={},sn=z.direction,tn=sn==="rtl";te&&(tn?Xt.paddingRight=z.inlineIndent*z.level:Xt.paddingLeft=z.inlineIndent*z.level);var on={};this.getVisible()&&(on={"aria-owns":this.internalMenuId});var ln=null;pe!=="horizontal"&&(ln=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ln=C.createElement(this.props.expandIcon,Object(X.a)({},this.props))));var an=C.createElement("div",Object(ke.a)({ref:this.saveSubMenuTitle,style:Xt,className:"".concat(ae,"-title"),role:"button"},mt,tt,{"aria-expanded":H},on,{"aria-haspopup":"true",title:typeof z.title=="string"?z.title:void 0}),z.title,ln||C.createElement("i",{className:"".concat(ae,"-arrow")})),rn=this.renderChildren(),En=((k=z.parentMenu)===null||k===void 0?void 0:k.isRootMenu)?z.parentMenu.props.getPopupContainer:function(jn){return jn.parentNode},fn=Mn[pe],Zn=z.popupOffset?{offset:z.popupOffset}:{},pn=w()((b={},Object(I.a)(b,z.popupClassName,z.popupClassName&&!te),Object(I.a)(b,"".concat(ae,"-rtl"),tn),b)),Qt=z.disabled,Gt=z.triggerSubMenuAction,vn=z.subMenuOpenDelay,xn=z.forceSubMenuRender,Bt=z.subMenuCloseDelay,Sn=z.builtinPlacements;gt.forEach(function(jn){return delete z[jn]}),delete z.onClick;var qn=tn?Object(X.a)(Object(X.a)({},Uo),Sn):Object(X.a)(Object(X.a)({},Oo),Sn);delete z.direction;var On=this.getBaseProps(),Fn=te?null:this.getMotion(On.mode,On.visible);return C.createElement("li",Object(ke.a)({},z,it,{className:Ie,role:"menuitem"}),C.createElement(Vi,{prefixCls:ae,popupClassName:w()("".concat(ae,"-popup"),pn),getPopupContainer:En,builtinPlacements:qn,popupPlacement:fn,popupVisible:te?!1:H,popupAlign:Zn,popup:te?null:rn,action:Qt||te?[]:[Gt],mouseEnterDelay:vn,mouseLeaveDelay:Bt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:xn,popupMotion:Fn},an),te?rn:null)}}]),oe}(C.Component);kn.defaultProps={onMouseEnter:ft,onMouseLeave:ft,onTitleMouseEnter:ft,onTitleMouseLeave:ft,onTitleClick:ft,manualRef:ft,mode:"vertical",title:""};var yi=Object(B.b)(function(N,$){var oe=N.openKeys,U=N.activeKey,g=N.selectedKeys,k=$.eventKey,b=$.subMenuKey;return{isOpen:oe.indexOf(k)>-1,active:U[b]===k,selectedKeys:g}})(kn);yi.isSubMenu=!0;var Un=yi,Co="menuitem-overflowed",fi=.5,ui=function(N){Object(Ne.a)(oe,N);var $=Object(be.a)(oe);function oe(){var U;return Object(Ve.a)(this,oe),U=$.apply(this,arguments),U.resizeObserver=null,U.mutationObserver=null,U.originalTotalWidth=0,U.overflowedItems=[],U.menuItemSizes=[],U.cancelFrameId=null,U.state={lastVisibleIndex:void 0},U.childRef=C.createRef(),U.getMenuItemNodes=function(){var g=U.props.prefixCls,k=U.childRef.current;return k?[].slice.call(k.children).filter(function(b){return b.className.split(" ").indexOf("".concat(g,"-overflowed-submenu"))<0}):[]},U.getOverflowedSubMenuItem=function(g,k,b){var z=U.props,H=z.overflowedIndicator,ae=z.level,te=z.mode,pe=z.prefixCls,Ie=z.theme;if(ae!==1||te!=="horizontal")return null;var it=U.props.children[0],tt=it.props,mt=tt.children,Xt=tt.title,sn=tt.style,tn=Object(re.a)(tt,["children","title","style"]),on=Object(X.a)({},sn),ln="".concat(g,"-overflowed-indicator"),an="".concat(g,"-overflowed-indicator");k.length===0&&b!==!0?on=Object(X.a)(Object(X.a)({},on),{},{display:"none"}):b&&(on=Object(X.a)(Object(X.a)({},on),{},{visibility:"hidden",position:"absolute"}),ln="".concat(ln,"-placeholder"),an="".concat(an,"-placeholder"));var rn=Ie?"".concat(pe,"-").concat(Ie):"",En={};return gt.forEach(function(fn){tn[fn]!==void 0&&(En[fn]=tn[fn])}),C.createElement(Un,Object(ke.a)({title:H,className:"".concat(pe,"-overflowed-submenu"),popupClassName:rn},En,{key:ln,eventKey:an,disabled:!1,style:on}),k)},U.setChildrenWidthAndResize=function(){if(U.props.mode!=="horizontal")return;var g=U.childRef.current;if(!g)return;var k=g.children;if(!k||k.length===0)return;var b=g.children[k.length-1];Ke(b,"display","inline-block");var z=U.getMenuItemNodes(),H=z.filter(function(ae){return ae.className.split(" ").indexOf(Co)>=0});H.forEach(function(ae){Ke(ae,"display","inline-block")}),U.menuItemSizes=z.map(function(ae){return $e(ae,!0)}),H.forEach(function(ae){Ke(ae,"display","none")}),U.overflowedIndicatorWidth=$e(g.children[g.children.length-1],!0),U.originalTotalWidth=U.menuItemSizes.reduce(function(ae,te){return ae+te},0),U.handleResize(),Ke(b,"display","none")},U.handleResize=function(){if(U.props.mode!=="horizontal")return;var g=U.childRef.current;if(!g)return;var k=$e(g);U.overflowedItems=[];var b=0,z;U.originalTotalWidth>k+fi&&(z=-1,U.menuItemSizes.forEach(function(H){b+=H,b+U.overflowedIndicatorWidth<=k&&(z+=1)})),U.setState({lastVisibleIndex:z})},U}return Object(Ee.a)(oe,[{key:"componentDidMount",value:function(){var g=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var k=this.childRef.current;if(!k)return;this.resizeObserver=new Ft.default(function(b){b.forEach(function(){var z=g.cancelFrameId;cancelAnimationFrame(z),g.cancelFrameId=requestAnimationFrame(g.setChildrenWidthAndResize)})}),[].slice.call(k.children).concat(k).forEach(function(b){g.resizeObserver.observe(b)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){g.resizeObserver.disconnect(),[].slice.call(k.children).concat(k).forEach(function(b){g.resizeObserver.observe(b)}),g.setChildrenWidthAndResize()}),this.mutationObserver.observe(k,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(g){var k=this,b=this.state.lastVisibleIndex;return(g||[]).reduce(function(z,H,ae){var te=H;if(k.props.mode==="horizontal"){var pe=k.getOverflowedSubMenuItem(H.props.eventKey,[]);b!==void 0&&k.props.className.indexOf("".concat(k.props.prefixCls,"-root"))!==-1&&(ae>b&&(te=C.cloneElement(H,{style:{display:"none"},eventKey:"".concat(H.props.eventKey,"-hidden"),className:"".concat(Co)})),ae===b+1&&(k.overflowedItems=g.slice(b+1).map(function(it){return C.cloneElement(it,{key:it.props.eventKey,mode:"vertical-left"})}),pe=k.getOverflowedSubMenuItem(H.props.eventKey,k.overflowedItems)));var Ie=[].concat(Object(V.a)(z),[pe,te]);return ae===g.length-1&&Ie.push(k.getOverflowedSubMenuItem(H.props.eventKey,[],!0)),Ie}return[].concat(Object(V.a)(z),[te])},[])}},{key:"render",value:function(){var g=this.props,k=g.visible,b=g.prefixCls,z=g.overflowedIndicator,H=g.mode,ae=g.level,te=g.tag,pe=g.children,Ie=g.theme,it=Object(re.a)(g,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),tt=te;return C.createElement(tt,Object(ke.a)({ref:this.childRef},it),this.renderChildren(pe))}}]),oe}(C.Component);ui.defaultProps={tag:"div",className:""};var vo=ui;function To(N){return N.length?N.every(function($){return!!$.props.disabled}):!0}function uo(N,$,oe){var U=N.getState();N.setState({activeKey:Object(X.a)(Object(X.a)({},U.activeKey),{},Object(I.a)({},$,oe))})}function Eo(N){return N.eventKey||"0-menu-"}function Ki(N,$){var oe=$,U=N.children,g=N.eventKey;if(oe){var k;if(rt(U,function(b,z){b&&b.props&&!b.props.disabled&&oe===wt(b,g,z)&&(k=!0)}),k)return oe}return oe=null,N.defaultActiveFirst&&rt(U,function(b,z){!oe&&b&&!b.props.disabled&&(oe=wt(b,g,z))}),oe}function Xo(N){if(!N)return;var $=this.instanceArray.indexOf(N);$!==-1?this.instanceArray[$]=N:this.instanceArray.push(N)}var Wi=function(N){Object(Ne.a)(oe,N);var $=Object(be.a)(oe);function oe(U){var g;return Object(Ve.a)(this,oe),g=$.call(this,U),g.onKeyDown=function(k,b){var z=k.keyCode,H;if(g.getFlatInstanceArray().forEach(function(te){te&&te.props.active&&te.onKeyDown&&(H=te.onKeyDown(k))}),H)return 1;var ae=null;return(z===D.a.UP||z===D.a.DOWN)&&(ae=g.step(z===D.a.UP?-1:1)),ae?(k.preventDefault(),uo(g.props.store,Eo(g.props),ae.props.eventKey),typeof b=="function"&&b(ae),1):void 0},g.onItemHover=function(k){var b=k.key,z=k.hover;uo(g.props.store,Eo(g.props),z?b:null)},g.onDeselect=function(k){g.props.onDeselect(k)},g.onSelect=function(k){g.props.onSelect(k)},g.onClick=function(k){g.props.onClick(k)},g.onOpenChange=function(k){g.props.onOpenChange(k)},g.onDestroy=function(k){g.props.onDestroy(k)},g.getFlatInstanceArray=function(){return g.instanceArray},g.step=function(k){var b=g.getFlatInstanceArray(),z=g.props.store.getState().activeKey[Eo(g.props)],H=b.length;if(!H)return null;k<0&&(b=b.concat().reverse());var ae=-1;if(b.every(function(it,tt){return it&&it.props.eventKey===z?(ae=tt,!1):!0}),!g.props.defaultActiveFirst&&ae!==-1&&To(b.slice(ae,H-1)))return;var te=(ae+1)%H,pe=te;do{var Ie=b[pe];if(!Ie||Ie.props.disabled)pe=(pe+1)%H;else return Ie}while(pe!==te);return null},g.renderCommonMenuItem=function(k,b,z){var H=g.props.store.getState(),ae=Object(Ce.a)(g),te=ae.props,pe=wt(k,te.eventKey,b),Ie=k.props;if(!Ie||typeof k.type=="string")return k;var it=pe===H.activeKey,tt=Object(X.a)(Object(X.a)({mode:Ie.mode||te.mode,level:te.level,inlineIndent:te.inlineIndent,renderMenuItem:g.renderMenuItem,rootPrefixCls:te.prefixCls,index:b,parentMenu:te.parentMenu,manualRef:Ie.disabled?void 0:Object(me.a)(k.ref,Xo.bind(Object(Ce.a)(g))),eventKey:pe,active:!Ie.disabled&&it,multiple:te.multiple,onClick:function(Xt){(Ie.onClick||ft)(Xt),g.onClick(Xt)},onItemHover:g.onItemHover,motion:te.motion,subMenuOpenDelay:te.subMenuOpenDelay,subMenuCloseDelay:te.subMenuCloseDelay,forceSubMenuRender:te.forceSubMenuRender,onOpenChange:g.onOpenChange,onDeselect:g.onDeselect,onSelect:g.onSelect,builtinPlacements:te.builtinPlacements,itemIcon:Ie.itemIcon||g.props.itemIcon,expandIcon:Ie.expandIcon||g.props.expandIcon},z),{},{direction:te.direction});return(te.mode==="inline"||ot())&&(tt.triggerSubMenuAction="click"),C.cloneElement(k,Object(X.a)(Object(X.a)({},tt),{},{key:pe||b}))},g.renderMenuItem=function(k,b,z){if(!k)return null;var H=g.props.store.getState(),ae={openKeys:H.openKeys,selectedKeys:H.selectedKeys,triggerSubMenuAction:g.props.triggerSubMenuAction,subMenuKey:z};return g.renderCommonMenuItem(k,b,ae)},U.store.setState({activeKey:Object(X.a)(Object(X.a)({},U.store.getState().activeKey),{},Object(I.a)({},U.eventKey,Ki(U,U.activeKey)))}),g.instanceArray=[],g}return Object(Ee.a)(oe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(g){return this.props.visible||g.visible||this.props.className!==g.className||!Q()(this.props.style,g.style)}},{key:"componentDidUpdate",value:function(g){var k=this.props,b="activeKey"in k?k.activeKey:k.store.getState().activeKey[Eo(k)],z=Ki(k,b);if(z!==b)uo(k.store,Eo(k),z);else if("activeKey"in g){var H=Ki(g,g.activeKey);z!==H&&uo(k.store,Eo(k),z)}}},{key:"render",value:function(){var g=this,k=Object(ke.a)({},this.props);this.instanceArray=[];var b=w()(k.prefixCls,k.className,"".concat(k.prefixCls,"-").concat(k.mode)),z={className:b,role:k.role||"menu"};k.id&&(z.id=k.id),k.focusable&&(z.tabIndex=0,z.onKeyDown=this.onKeyDown);var H=k.prefixCls,ae=k.eventKey,te=k.visible,pe=k.level,Ie=k.mode,it=k.overflowedIndicator,tt=k.theme;return gt.forEach(function(mt){return delete k[mt]}),delete k.onClick,C.createElement(vo,Object(ke.a)({},k,{prefixCls:H,mode:Ie,tag:"ul",level:pe,theme:tt,visible:te,overflowedIndicator:it},z),Object(R.a)(k.children).map(function(mt,Xt){return g.renderMenuItem(mt,Xt,ae||"0-menu-")}))}}]),oe}(C.Component);Wi.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ft};var Yo=Object(B.b)()(Wi),yo=Yo,Ro=h("Kwbf");function Wr(N,$,oe){var U=N.prefixCls,g=N.motion,k=N.defaultMotions,b=k===void 0?{}:k,z=N.openAnimation,H=N.openTransitionName,ae=$.switchingModeFromInline;if(g)return g;if(Object(ue.a)(z)==="object"&&z)Object(Ro.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof z=="string")return{motionName:"".concat(U,"-open-").concat(z)};if(H)return{motionName:H};var te=b[oe];return te||(ae?null:b.other)}var yr=function(N){Object(Ne.a)(oe,N);var $=Object(be.a)(oe);function oe(U){var g;Object(Ve.a)(this,oe),g=$.call(this,U),g.onSelect=function(z){var H=Object(Ce.a)(g),ae=H.props;if(ae.selectable){var te=g.store.getState(),pe=te.selectedKeys,Ie=z.key;ae.multiple?pe=pe.concat([Ie]):pe=[Ie],"selectedKeys"in ae||g.store.setState({selectedKeys:pe}),ae.onSelect(Object(X.a)(Object(X.a)({},z),{},{selectedKeys:pe}))}},g.onClick=function(z){var H=g.getRealMenuMode(),ae=Object(Ce.a)(g),te=ae.store,pe=ae.props.onOpenChange;H!=="inline"&&!("openKeys"in g.props)&&(te.setState({openKeys:[]}),pe([])),g.props.onClick(z)},g.onKeyDown=function(z,H){g.innerMenu.getWrappedInstance().onKeyDown(z,H)},g.onOpenChange=function(z){var H=Object(Ce.a)(g),ae=H.props,te=g.store.getState().openKeys.concat(),pe=!1,Ie=function(tt){var mt=!1;if(tt.open)mt=te.indexOf(tt.key)===-1,mt&&te.push(tt.key);else{var Xt=te.indexOf(tt.key);mt=Xt!==-1,mt&&te.splice(Xt,1)}pe=pe||mt};Array.isArray(z)?z.forEach(Ie):Ie(z),pe&&("openKeys"in g.props||g.store.setState({openKeys:te}),ae.onOpenChange(te))},g.onDeselect=function(z){var H=Object(Ce.a)(g),ae=H.props;if(ae.selectable){var te=g.store.getState().selectedKeys.concat(),pe=z.key,Ie=te.indexOf(pe);Ie!==-1&&te.splice(Ie,1),"selectedKeys"in ae||g.store.setState({selectedKeys:te}),ae.onDeselect(Object(X.a)(Object(X.a)({},z),{},{selectedKeys:te}))}},g.onMouseEnter=function(z){g.restoreModeVerticalFromInline();var H=g.props.onMouseEnter;H&&H(z)},g.onTransitionEnd=function(z){var H=z.propertyName==="width"&&z.target===z.currentTarget,ae=z.target.className,te=Object.prototype.toString.call(ae)==="[object SVGAnimatedString]"?ae.animVal:ae,pe=z.propertyName==="font-size"&&te.indexOf("anticon")>=0;(H||pe)&&g.restoreModeVerticalFromInline()},g.setInnerMenu=function(z){g.innerMenu=z},g.isRootMenu=!0;var k=U.defaultSelectedKeys,b=U.defaultOpenKeys;return"selectedKeys"in U&&(k=U.selectedKeys||[]),"openKeys"in U&&(b=U.openKeys||[]),g.store=Object(B.c)({selectedKeys:k,openKeys:b,activeKey:{"0-menu-":Ki(U,U.activeKey)}}),g.state={switchingModeFromInline:!1,prevProps:U,inlineOpenKeys:[],store:g.store},g}return Object(Ee.a)(oe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(g){var k=this.props,b=k.siderCollapsed,z=k.inlineCollapsed,H=k.onOpenChange;(!g.inlineCollapsed&&z||!g.siderCollapsed&&b)&&H([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var g=this.props.collapsedWidth,k=this.store,b=this.prevOpenKeys,z=this.getInlineCollapsed()&&(g===0||g==="0"||g==="0px");z?(this.prevOpenKeys=k.getState().openKeys.concat(),this.store.setState({openKeys:[]})):b&&(this.store.setState({openKeys:b}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var g=this.props.mode,k=this.state.switchingModeFromInline,b=this.getInlineCollapsed();return k&&b?"inline":b?"vertical":g}},{key:"getInlineCollapsed",value:function(){var g=this.props,k=g.inlineCollapsed,b=g.siderCollapsed;return b!==void 0?b:k}},{key:"restoreModeVerticalFromInline",value:function(){var g=this.state.switchingModeFromInline;g&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var g=Object(X.a)({},Object(xe.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),k=this.getRealMenuMode();return g.className+=" ".concat(g.prefixCls,"-root"),g.direction==="rtl"&&(g.className+=" ".concat(g.prefixCls,"-rtl")),g=Object(X.a)(Object(X.a)({},g),{},{mode:k,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Wr(this.props,this.state,k)}),delete g.openAnimation,delete g.openTransitionName,C.createElement(B.a,{store:this.store},C.createElement(yo,Object(ke.a)({},g,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(g,k){var b=k.prevProps,z=k.store,H=z.getState(),ae={},te={prevProps:g};return b.mode==="inline"&&g.mode!=="inline"&&(te.switchingModeFromInline=!0),"openKeys"in g?ae.openKeys=g.openKeys||[]:((g.inlineCollapsed&&!b.inlineCollapsed||g.siderCollapsed&&!b.siderCollapsed)&&(te.switchingModeFromInline=!0,te.inlineOpenKeys=H.openKeys,ae.openKeys=[]),(!g.inlineCollapsed&&b.inlineCollapsed||!g.siderCollapsed&&b.siderCollapsed)&&(ae.openKeys=k.inlineOpenKeys,te.inlineOpenKeys=[])),Object.keys(ae).length&&z.setState(ae),te}}]),oe}(C.Component);yr.defaultProps={selectable:!0,onClick:ft,onSelect:ft,onOpenChange:ft,onDeselect:ft,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:C.createElement("span",null,"\xB7\xB7\xB7")};var ya=yr,br=function(N){Object(Ne.a)(oe,N);var $=Object(be.a)(oe);function oe(){var U;return Object(Ve.a)(this,oe),U=$.apply(this,arguments),U.onKeyDown=function(g){var k=g.keyCode;return k===D.a.ENTER?(U.onClick(g),!0):void 0},U.onMouseLeave=function(g){var k=U.props,b=k.eventKey,z=k.onItemHover,H=k.onMouseLeave;z({key:b,hover:!1}),H({key:b,domEvent:g})},U.onMouseEnter=function(g){var k=U.props,b=k.eventKey,z=k.onItemHover,H=k.onMouseEnter;z({key:b,hover:!0}),H({key:b,domEvent:g})},U.onClick=function(g){var k=U.props,b=k.eventKey,z=k.multiple,H=k.onClick,ae=k.onSelect,te=k.onDeselect,pe=k.isSelected,Ie={key:b,keyPath:[b],item:Object(Ce.a)(U),domEvent:g};H(Ie),z?pe?te(Ie):ae(Ie):pe||ae(Ie)},U.saveNode=function(g){U.node=g},U}return Object(Ee.a)(oe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var g=this.props;g.onDestroy&&g.onDestroy(g.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var g,k=Object(X.a)({},this.props),b=w()(this.getPrefixCls(),k.className,(g={},Object(I.a)(g,this.getActiveClassName(),!k.disabled&&k.active),Object(I.a)(g,this.getSelectedClassName(),k.isSelected),Object(I.a)(g,this.getDisabledClassName(),k.disabled),g)),z=Object(X.a)(Object(X.a)({},k.attribute),{},{title:typeof k.title=="string"?k.title:void 0,className:b,role:k.role||"menuitem","aria-disabled":k.disabled});k.role==="option"?z=Object(X.a)(Object(X.a)({},z),{},{role:"option","aria-selected":k.isSelected}):(k.role===null||k.role==="none")&&(z.role="none");var H={onClick:k.disabled?null:this.onClick,onMouseLeave:k.disabled?null:this.onMouseLeave,onMouseEnter:k.disabled?null:this.onMouseEnter},ae=Object(X.a)({},k.style);k.mode==="inline"&&(k.direction==="rtl"?ae.paddingRight=k.inlineIndent*k.level:ae.paddingLeft=k.inlineIndent*k.level),gt.forEach(function(pe){return delete k[pe]}),delete k.direction;var te=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(te=C.createElement(this.props.itemIcon,this.props)),C.createElement("li",Object(ke.a)({},Object(xe.a)(k,["onClick","onMouseEnter","onMouseLeave","onSelect"]),z,H,{style:ae,ref:this.saveNode}),k.children,te)}}]),oe}(C.Component);br.isMenuItem=!0,br.defaultProps={onSelect:ft,onMouseEnter:ft,onMouseLeave:ft,manualRef:ft};var zr=Object(B.b)(function(N,$){var oe=N.activeKey,U=N.selectedKeys,g=$.eventKey,k=$.subMenuKey;return{active:oe[k]===g,isSelected:Array.isArray(U)?U.indexOf(g)!==-1:U===g}})(br),Cr=zr,jt=function(N){Object(Ne.a)(oe,N);var $=Object(be.a)(oe);function oe(){var U;return Object(Ve.a)(this,oe),U=$.apply(this,arguments),U.renderInnerMenuItem=function(g){var k=U.props,b=k.renderMenuItem,z=k.index;return b(g,z,U.props.subMenuKey)},U}return Object(Ee.a)(oe,[{key:"render",value:function(){var g=Object(ke.a)({},this.props),k=g.className,b=k===void 0?"":k,z=g.rootPrefixCls,H="".concat(z,"-item-group-title"),ae="".concat(z,"-item-group-list"),te=g.title,pe=g.children;return gt.forEach(function(Ie){return delete g[Ie]}),delete g.direction,C.createElement("li",Object(ke.a)({},g,{onClick:function(it){return it.stopPropagation()},className:"".concat(b," ").concat(z,"-item-group")}),C.createElement("div",{className:H,title:typeof te=="string"?te:void 0},te),C.createElement("ul",{className:ae},C.Children.map(pe,this.renderInnerMenuItem)))}}]),oe}(C.Component);jt.isMenuItemGroup=!0,jt.defaultProps={disabled:!0};var qt=jt,Ht=function($){var oe=$.className,U=$.rootPrefixCls,g=$.style;return C.createElement("li",{className:"".concat(oe," ").concat(U,"-item-divider"),style:g})};Ht.defaultProps={disabled:!0,className:"",style:{}};var gn=Ht,An=ya,Dn=h("eDIo");function bn(N,$){var oe=N.prefixCls,U=N.editable,g=N.locale,k=N.style;return!U||U.showAdd===!1?null:C.createElement("button",{ref:$,type:"button",className:"".concat(oe,"-nav-add"),style:k,"aria-label":(g==null?void 0:g.addAriaLabel)||"Add tab",onClick:function(z){U.onEdit("add",{event:z})}},U.addIcon||"+")}var Xn=C.forwardRef(bn);function bi(N,$){var oe=N.prefixCls,U=N.id,g=N.tabs,k=N.locale,b=N.mobile,z=N.moreIcon,H=z===void 0?"More":z,ae=N.moreTransitionName,te=N.style,pe=N.className,Ie=N.editable,it=N.tabBarGutter,tt=N.rtl,mt=N.onTabClick,Xt=Object(C.useState)(!1),sn=Object(de.a)(Xt,2),tn=sn[0],on=sn[1],ln=Object(C.useState)(null),an=Object(de.a)(ln,2),rn=an[0],En=an[1],fn="".concat(U,"-more-popup"),Zn="".concat(oe,"-dropdown"),pn=rn!==null?"".concat(fn,"-").concat(rn):null,Qt=k==null?void 0:k.dropdownAriaLabel,Gt=C.createElement(An,{onClick:function(Fn){var jn=Fn.key,ci=Fn.domEvent;mt(jn,ci),on(!1)},id:fn,tabIndex:-1,role:"listbox","aria-activedescendant":pn,selectedKeys:[rn],"aria-label":Qt!==void 0?Qt:"expanded dropdown"},g.map(function(On){return C.createElement(Cr,{key:On.key,id:"".concat(fn,"-").concat(On.key),role:"option","aria-controls":U&&"".concat(U,"-panel-").concat(On.key),disabled:On.disabled},On.tab)}));function vn(On){for(var Fn=g.filter(function(zi){return!zi.disabled}),jn=Fn.findIndex(function(zi){return zi.key===rn})||0,ci=Fn.length,Si=0;Si<ci;Si+=1){jn=(jn+On+ci)%ci;var ti=Fn[jn];if(!ti.disabled){En(ti.key);return}}}function xn(On){var Fn=On.which;if(!tn){[D.a.DOWN,D.a.SPACE,D.a.ENTER].includes(Fn)&&(on(!0),On.preventDefault());return}switch(Fn){case D.a.UP:vn(-1),On.preventDefault();break;case D.a.DOWN:vn(1),On.preventDefault();break;case D.a.ESC:on(!1);break;case D.a.SPACE:case D.a.ENTER:rn!==null&&mt(rn,On);break}}Object(C.useEffect)(function(){var On=document.getElementById(pn);On&&On.scrollIntoView&&On.scrollIntoView(!1)},[rn]),Object(C.useEffect)(function(){tn||En(null)},[tn]);var Bt=Object(I.a)({},tt?"marginLeft":"marginRight",it);g.length||(Bt.visibility="hidden",Bt.order=1);var Sn=w()(Object(I.a)({},"".concat(Zn,"-rtl"),tt)),qn=b?null:C.createElement(Dn.a,{prefixCls:Zn,overlay:Gt,trigger:["hover"],visible:tn,transitionName:ae,onVisibleChange:on,overlayClassName:Sn,mouseEnterDelay:.1,mouseLeaveDelay:.1},C.createElement("button",{type:"button",className:"".concat(oe,"-nav-more"),style:Bt,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":fn,id:"".concat(U,"-more"),"aria-expanded":tn,onKeyDown:xn},H));return C.createElement("div",{className:w()("".concat(oe,"-nav-operations"),pe),style:te,ref:$},qn,C.createElement(Xn,{prefixCls:oe,locale:k,editable:Ie}))}var hn=C.forwardRef(bi),xo=Object(C.createContext)(null),Pn=.1,Ci=.01,Tn=20,eo=Math.pow(.995,Tn);function ur(){var N=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(N)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(N.substr(0,4)))}function cr(N,$){var oe=Object(C.useState)(),U=Object(de.a)(oe,2),g=U[0],k=U[1],b=Object(C.useState)(0),z=Object(de.a)(b,2),H=z[0],ae=z[1],te=Object(C.useState)(0),pe=Object(de.a)(te,2),Ie=pe[0],it=pe[1],tt=Object(C.useState)(),mt=Object(de.a)(tt,2),Xt=mt[0],sn=mt[1],tn=Object(C.useRef)();function on(Qt){var Gt=Qt.touches[0],vn=Gt.screenX,xn=Gt.screenY;k({x:vn,y:xn}),window.clearInterval(tn.current)}function ln(Qt){if(!g)return;Qt.preventDefault();var Gt=Qt.touches[0],vn=Gt.screenX,xn=Gt.screenY;k({x:vn,y:xn});var Bt=vn-g.x,Sn=xn-g.y;$(Bt,Sn);var qn=Date.now();ae(qn),it(qn-H),sn({x:Bt,y:Sn})}function an(){if(!g)return;if(k(null),sn(null),Xt){var Qt=Xt.x/Ie,Gt=Xt.y/Ie,vn=Math.abs(Qt),xn=Math.abs(Gt);if(Math.max(vn,xn)<Pn)return;var Bt=Qt,Sn=Gt;tn.current=window.setInterval(function(){if(Math.abs(Bt)<Ci&&Math.abs(Sn)<Ci){window.clearInterval(tn.current);return}Bt*=eo,Sn*=eo,$(Bt*Tn,Sn*Tn)},Tn)}}var rn=Object(C.useRef)(0),En=Object(C.useRef)(!1),fn=Object(C.useRef)();function Zn(Qt){var Gt=Qt.deltaX,vn=Qt.deltaY,xn=0,Bt=Math.abs(Gt),Sn=Math.abs(vn);Bt===Sn?xn=fn.current==="x"?Gt:vn:Bt>Sn?(xn=Gt,fn.current="x"):(xn=vn,fn.current="y");var qn=Date.now();qn-rn.current>100&&(En.current=!1),($(-xn,-xn)||En.current)&&(Qt.preventDefault(),En.current=!0),rn.current=qn}var pn=Object(C.useRef)(null);pn.current={onTouchStart:on,onTouchMove:ln,onTouchEnd:an,onWheel:Zn},C.useEffect(function(){function Qt(Bt){pn.current.onTouchStart(Bt)}function Gt(Bt){pn.current.onTouchMove(Bt)}function vn(Bt){pn.current.onTouchEnd(Bt)}function xn(Bt){pn.current.onWheel(Bt)}return document.addEventListener("touchmove",Gt,{passive:!1}),document.addEventListener("touchend",vn,{passive:!1}),N.current.addEventListener("touchstart",Qt,{passive:!1}),N.current.addEventListener("wheel",xn),function(){document.removeEventListener("touchmove",Gt),document.removeEventListener("touchend",vn)}},[])}function Ga(){var N=Object(C.useRef)(new Map);function $(U){return N.current.has(U)||N.current.set(U,C.createRef()),N.current.get(U)}function oe(U){N.current.delete(U)}return[$,oe]}function Hr(N,$){var oe=C.useRef(N),U=C.useState({}),g=Object(de.a)(U,2),k=g[1];function b(z){var H=typeof z=="function"?z(oe.current):z;H!==oe.current&&$(H,oe.current),oe.current=H,k({})}return[oe.current,b]}var ba=function($){var oe=$.position,U=$.prefixCls,g=$.extra;if(!g)return null;var k,b=g;return oe==="right"&&(k=b.right||!b.left&&b||null),oe==="left"&&(k=b.left||null),k?C.createElement("div",{className:"".concat(U,"-extra-content")},k):null};function Gr(N,$){var oe,U=C.useContext(xo),g=U.prefixCls,k=U.tabs,b=N.className,z=N.style,H=N.id,ae=N.animated,te=N.activeKey,pe=N.rtl,Ie=N.extra,it=N.editable,tt=N.locale,mt=N.tabPosition,Xt=N.tabBarGutter,sn=N.children,tn=N.onTabClick,on=N.onTabScroll,ln=Object(C.useRef)(),an=Object(C.useRef)(),rn=Object(C.useRef)(),En=Object(C.useRef)(),fn=Ga(),Zn=Object(de.a)(fn,2),pn=Zn[0],Qt=Zn[1],Gt=mt==="top"||mt==="bottom",vn=Hr(0,function(Ln,Cn){Gt&&on&&on({direction:Ln>Cn?"left":"right"})}),xn=Object(de.a)(vn,2),Bt=xn[0],Sn=xn[1],qn=Hr(0,function(Ln,Cn){!Gt&&on&&on({direction:Ln>Cn?"top":"bottom"})}),On=Object(de.a)(qn,2),Fn=On[0],jn=On[1],ci=Object(C.useState)(0),Si=Object(de.a)(ci,2),ti=Si[0],zi=Si[1],co=Object(C.useState)(0),Qi=Object(de.a)(co,2),ki=Qi[0],Gn=Qi[1],Wn=Object(C.useState)(0),ni=Object(de.a)(Wn,2),$n=ni[0],ho=ni[1],Do=Object(C.useState)(0),Lo=Object(de.a)(Do,2),Bn=Lo[0],bo=Lo[1],Io=Object(C.useState)(null),Hn=Object(de.a)(Io,2),_n=Hn[0],Mi=Hn[1],xa=Object(C.useState)(null),Jr=Object(de.a)(xa,2),No=Jr[0],qo=Jr[1],Er=Object(C.useState)(0),Xr=Object(de.a)(Er,2),xr=Xr[0],Qa=Xr[1],Ja=Object(C.useState)(0),wa=Object(de.a)(Ja,2),Yr=wa[0],Zr=wa[1],$o=K(new Map),er=Object(de.a)($o,2),Xa=er[0],wr=er[1],dr=Me(k,Xa,ti),tr="".concat(g,"-nav-operations-hidden"),nr=0,fo=0;Gt?pe?(nr=0,fo=Math.max(0,ti-_n)):(nr=Math.min(0,_n-ti),fo=0):(nr=Math.min(0,No-ki),fo=0);function Fo(Ln){return Ln<nr?[nr,!1]:Ln>fo?[fo,!1]:[Ln,!0]}var Po=Object(C.useRef)(),hr=Object(C.useState)(),Wo=Object(de.a)(hr,2),Ar=Wo[0],qr=Wo[1];function Sr(){qr(Date.now())}function $r(){window.clearTimeout(Po.current)}cr(ln,function(Ln,Cn){var Oi=!1;function Xi(ir,Ao){ir(function(mr){var jo=Fo(mr+Ao),Ti=Object(de.a)(jo,2),Or=Ti[0],ta=Ti[1];return Oi=ta,Or})}if(Gt){if(_n>=ti)return Oi;Xi(Sn,Ln)}else{if(No>=ki)return Oi;Xi(jn,Cn)}return $r(),Sr(),Oi}),Object(C.useEffect)(function(){return $r(),Ar&&(Po.current=window.setTimeout(function(){qr(0)},100)),$r},[Ar]);function _o(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:te,Cn=dr.get(Ln);if(!Cn)return;if(Gt){var Oi=Bt;pe?Cn.right<Bt?Oi=Cn.right:Cn.right+Cn.width>Bt+_n&&(Oi=Cn.right+Cn.width-_n):Cn.left<-Bt?Oi=-Cn.left:Cn.left+Cn.width>-Bt+_n&&(Oi=-(Cn.left+Cn.width-_n)),jn(0),Sn(Fo(Oi)[0])}else{var Xi=Fn;Cn.top<-Fn?Xi=-Cn.top:Cn.top+Cn.height>-Fn+No&&(Xi=-(Cn.top+Cn.height-No)),Sn(0),jn(Fo(Xi)[0])}}var zo=we(dr,{width:_n,height:No,left:Bt,top:Fn},{width:$n,height:Bn},{width:xr,height:Yr},Object(X.a)(Object(X.a)({},N),{},{tabs:k})),Aa=Object(de.a)(zo,2),Ya=Aa[0],Za=Aa[1],qa=k.map(function(Ln){var Cn=Ln.key;return C.createElement(A,{id:H,prefixCls:g,key:Cn,rtl:pe,tab:Ln,closable:Ln.closable,editable:it,active:Cn===te,tabPosition:mt,tabBarGutter:Xt,renderWrapper:sn,removeAriaLabel:tt==null?void 0:tt.removeAriaLabel,ref:pn(Cn),onClick:function(Xi){tn(Cn,Xi)},onRemove:function(){Qt(Cn)},onFocus:function(){_o(Cn),Sr(),pe||(ln.current.scrollLeft=0),ln.current.scrollTop=0}})}),ea=q(function(){var Ln,Cn,Oi,Xi,ir,Ao,mr,jo,Ti,Or=((Ln=ln.current)===null||Ln===void 0?void 0:Ln.offsetWidth)||0,ta=((Cn=ln.current)===null||Cn===void 0?void 0:Cn.offsetHeight)||0,na=((Oi=En.current)===null||Oi===void 0?void 0:Oi.offsetWidth)||0,Yi=((Xi=En.current)===null||Xi===void 0?void 0:Xi.offsetHeight)||0,Rn=((ir=rn.current)===null||ir===void 0?void 0:ir.offsetWidth)||0,mo=((Ao=rn.current)===null||Ao===void 0?void 0:Ao.offsetHeight)||0;Mi(Or),qo(ta),Qa(na),Zr(Yi);var So=(((mr=an.current)===null||mr===void 0?void 0:mr.offsetWidth)||0)-na,ko=(((jo=an.current)===null||jo===void 0?void 0:jo.offsetHeight)||0)-Yi;zi(So),Gn(ko);var ia=(Ti=rn.current)===null||Ti===void 0?void 0:Ti.className.includes(tr);ho(So-(ia?0:Rn)),bo(ko-(ia?0:mo)),wr(function(){var Tr=new Map;return k.forEach(function(Ta){var Ra=Ta.key,Go=pn(Ra).current;Go&&Tr.set(Ra,{width:Go.offsetWidth,height:Go.offsetHeight,left:Go.offsetLeft,top:Go.offsetTop})}),Tr})}),$a=k.slice(0,Ya),Ji=k.slice(Za+1),pi=[].concat(Object(V.a)($a),Object(V.a)(Ji)),Ui=Object(C.useState)(),mi=Object(de.a)(Ui,2),fr=mi[0],es=mi[1],po=dr.get(te),Sa=Object(C.useRef)();function ka(){T.a.cancel(Sa.current)}Object(C.useEffect)(function(){var Ln={};return po&&(Gt?(pe?Ln.right=po.right:Ln.left=po.left,Ln.width=po.width):(Ln.top=po.top,Ln.height=po.height)),ka(),Sa.current=T()(function(){es(Ln)}),ka},[po,Gt,pe]),Object(C.useEffect)(function(){_o()},[te,po,dr,Gt]),Object(C.useEffect)(function(){ea()},[pe,Xt,te,k.map(function(Ln){return Ln.key}).join("_")]);var Ma=!!pi.length,Ho="".concat(g,"-nav-wrap"),kr,pr,Oa,Mr;return Gt?pe?(pr=Bt>0,kr=Bt+_n<ti):(kr=Bt<0,pr=-Bt+_n<ti):(Oa=Fn<0,Mr=-Fn+No<ki),C.createElement("div",{ref:$,role:"tablist",className:w()("".concat(g,"-nav"),b),style:z,onKeyDown:function(){Sr()}},C.createElement(ba,{position:"left",extra:Ie,prefixCls:g}),C.createElement(se.a,{onResize:ea},C.createElement("div",{className:w()(Ho,(oe={},Object(I.a)(oe,"".concat(Ho,"-ping-left"),kr),Object(I.a)(oe,"".concat(Ho,"-ping-right"),pr),Object(I.a)(oe,"".concat(Ho,"-ping-top"),Oa),Object(I.a)(oe,"".concat(Ho,"-ping-bottom"),Mr),oe)),ref:ln},C.createElement(se.a,{onResize:ea},C.createElement("div",{ref:an,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(Bt,"px, ").concat(Fn,"px)"),transition:Ar?"none":void 0}},qa,C.createElement(Xn,{ref:En,prefixCls:g,locale:tt,editable:it,style:{visibility:Ma?"hidden":null}}),C.createElement("div",{className:w()("".concat(g,"-ink-bar"),Object(I.a)({},"".concat(g,"-ink-bar-animated"),ae.inkBar)),style:fr}))))),C.createElement(hn,Object.assign({},N,{ref:rn,prefixCls:g,tabs:pi,className:!Ma&&tr})),C.createElement(ba,{position:"right",extra:Ie,prefixCls:g}))}var Vr=C.forwardRef(Gr);function Va(N){var $=N.id,oe=N.activeKey,U=N.animated,g=N.tabPosition,k=N.rtl,b=N.destroyInactiveTabPane,z=C.useContext(xo),H=z.prefixCls,ae=z.tabs,te=U.tabPane,pe=ae.findIndex(function(Ie){return Ie.key===oe});return C.createElement("div",{className:w()("".concat(H,"-content-holder"))},C.createElement("div",{className:w()("".concat(H,"-content"),"".concat(H,"-content-").concat(g),Object(I.a)({},"".concat(H,"-content-animated"),te)),style:pe&&te?Object(I.a)({},k?"marginRight":"marginLeft","-".concat(pe,"00%")):null},ae.map(function(Ie){return C.cloneElement(Ie.node,{key:Ie.key,prefixCls:H,tabKey:Ie.key,id:$,animated:te,active:Ie.key===oe,destroyInactiveTabPane:b})})))}function Ca(N){var $=N.prefixCls,oe=N.forceRender,U=N.className,g=N.style,k=N.id,b=N.active,z=N.animated,H=N.destroyInactiveTabPane,ae=N.tabKey,te=N.children,pe=C.useState(oe),Ie=Object(de.a)(pe,2),it=Ie[0],tt=Ie[1];C.useEffect(function(){b?tt(!0):H&&tt(!1)},[b,H]);var mt={};return b||(z?(mt.visibility="hidden",mt.height=0,mt.overflowY="hidden"):mt.display="none"),C.createElement("div",{id:k&&"".concat(k,"-panel-").concat(ae),role:"tabpanel",tabIndex:b?0:-1,"aria-labelledby":k&&"".concat(k,"-tab-").concat(ae),"aria-hidden":!b,style:Object(X.a)(Object(X.a)({},mt),g),className:w()("".concat($,"-tabpane"),b&&"".concat($,"-tabpane-active"),U)},(b||it||oe)&&te)}var Kr=0;function Ea(N){return Object(R.a)(N).map(function($){if(C.isValidElement($)){var oe=$.key!==void 0?String($.key):void 0;return Object(X.a)(Object(X.a)({key:oe},$.props),{},{node:$})}return null}).filter(function($){return $})}function Ka(N,$){var oe,U=N.id,g=N.prefixCls,k=g===void 0?"rc-tabs":g,b=N.className,z=N.children,H=N.direction,ae=N.activeKey,te=N.defaultActiveKey,pe=N.editable,Ie=N.animated,it=N.tabPosition,tt=it===void 0?"top":it,mt=N.tabBarGutter,Xt=N.tabBarStyle,sn=N.tabBarExtraContent,tn=N.locale,on=N.moreIcon,ln=N.moreTransitionName,an=N.destroyInactiveTabPane,rn=N.renderTabBar,En=N.onChange,fn=N.onTabClick,Zn=N.onTabScroll,pn=Object(re.a)(N,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Qt=Ea(z),Gt=H==="rtl",vn;Ie===!1?vn={inkBar:!1,tabPane:!1}:vn=Object(X.a)({inkBar:!0,tabPane:!1},Ie!==!0?Ie:null);var xn=Object(C.useState)(!1),Bt=Object(de.a)(xn,2),Sn=Bt[0],qn=Bt[1];Object(C.useEffect)(function(){qn(ur())},[]);var On=Object(W.a)(function(){var Bn;return(Bn=Qt[0])===null||Bn===void 0?void 0:Bn.key},{value:ae,defaultValue:te}),Fn=Object(de.a)(On,2),jn=Fn[0],ci=Fn[1],Si=Object(C.useState)(function(){return Qt.findIndex(function(Bn){return Bn.key===jn})}),ti=Object(de.a)(Si,2),zi=ti[0],co=ti[1];Object(C.useEffect)(function(){var Bn=Qt.findIndex(function(Io){return Io.key===jn});if(Bn===-1){var bo;Bn=Math.max(0,Math.min(zi,Qt.length-1)),ci((bo=Qt[Bn])===null||bo===void 0?void 0:bo.key)}co(Bn)},[Qt.map(function(Bn){return Bn.key}).join("_"),jn,zi]);var Qi=Object(W.a)(null,{value:U}),ki=Object(de.a)(Qi,2),Gn=ki[0],Wn=ki[1],ni=tt;Sn&&!["left","right"].includes(tt)&&(ni="top"),Object(C.useEffect)(function(){U||(Wn("rc-tabs-".concat(Kr)),Kr+=1)},[]);function $n(Bn,bo){fn==null||fn(Bn,bo),ci(Bn),En==null||En(Bn)}var ho={id:Gn,activeKey:jn,animated:vn,tabPosition:ni,rtl:Gt,mobile:Sn},Do,Lo=Object(X.a)(Object(X.a)({},ho),{},{editable:pe,locale:tn,moreIcon:on,moreTransitionName:ln,tabBarGutter:mt,onTabClick:$n,onTabScroll:Zn,extra:sn,style:Xt,panes:z});return rn?Do=rn(Lo,Vr):Do=C.createElement(Vr,Object.assign({},Lo)),C.createElement(xo.Provider,{value:{tabs:Qt,prefixCls:k}},C.createElement("div",Object.assign({ref:$,id:U,className:w()(k,"".concat(k,"-").concat(ni),(oe={},Object(I.a)(oe,"".concat(k,"-mobile"),Sn),Object(I.a)(oe,"".concat(k,"-editable"),pe),Object(I.a)(oe,"".concat(k,"-rtl"),Gt),oe),b)},pn),Do,C.createElement(Va,Object.assign({destroyInactiveTabPane:an},ho,{animated:vn}))))}var Zo=C.forwardRef(Ka);Zo.TabPane=Ca;var wo=Zo,Qr=Ae.b=wo},kPWJ:function(Oe,Ae,h){Oe.exports=h.p+"static/question.cb52bef9.gif"},kPYp:function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCA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lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(Oe,Ae,h){},l2Kq:function(Oe,Ae,h){Oe.exports=h.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(Oe,Ae,h){(function(I){I(h("VrN/"),h("1eCo"),h("8EBN"))})(function(I){"use strict";I.defineMode("markdown",function(de,re){var X=I.getMode(de,"text/html"),C=X.name=="null";function ne(M){if(I.findModeByName){var v=I.findModeByName(M);v&&(M=v.mime||v.mimes[0])}var ce=I.getMode(de,M);return ce.name=="null"?null:ce}re.highlightFormatting===void 0&&(re.highlightFormatting=!1),re.maxBlockquoteDepth===void 0&&(re.maxBlockquoteDepth=0),re.taskLists===void 0&&(re.taskLists=!1),re.strikethrough===void 0&&(re.strikethrough=!1),re.emoji===void 0&&(re.emoji=!1),re.fencedCodeBlockHighlighting===void 0&&(re.fencedCodeBlockHighlighting=!0),re.fencedCodeBlockDefaultMode===void 0&&(re.fencedCodeBlockDefaultMode="text/plain"),re.xml===void 0&&(re.xml=!0),re.tokenTypeOverrides===void 0&&(re.tokenTypeOverrides={});var w={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var R in w)w.hasOwnProperty(R)&&re.tokenTypeOverrides[R]&&(w[R]=re.tokenTypeOverrides[R]);var W=/^([*\-_])(?:\s*\1){2,}\s*$/,V=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,L=/^\[(x| )\](?=\s)/i,T=re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,se=/^ {0,3}(?:\={1,}|-{2,})\s*$/,q=/^[^#!\[\]*_\\<>` "'(~:]+/,K=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,D=/^\s*\[[^\]]+?\]:.*$/,_=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,A=" ";function le(M,v,ce){return v.f=v.inline=ce,ce(M,v)}function Me(M,v,ce){return v.f=v.block=ce,ce(M,v)}function Je(M){return!M||!/\S/.test(M.string)}function we(M){if(M.linkTitle=!1,M.linkHref=!1,M.linkText=!1,M.em=!1,M.strong=!1,M.strikethrough=!1,M.quote=0,M.indentedCode=!1,M.f==Ve){var v=C;if(!v){var ce=I.innerMode(X,M.htmlState);v=ce.mode.name=="xml"&&ce.state.tagStart===null&&!ce.state.context&&ce.state.tokenize.isInText}v&&(M.f=be,M.block=ke,M.htmlState=null)}return M.trailingSpace=0,M.trailingSpaceNewLine=!1,M.prevLine=M.thisLine,M.thisLine={stream:null},null}function ke(M,v){var ce=M.column()===v.indentation,Ue=Je(v.prevLine.stream),Re=v.indentedCode,qe=v.prevLine.hr,dt=v.list!==!1,We=(v.listStack[v.listStack.length-1]||0)+3;v.indentedCode=!1;var ze=v.indentation;if(v.indentationDiff===null&&(v.indentationDiff=v.indentation,dt)){for(v.list=null;ze<v.listStack[v.listStack.length-1];)v.listStack.pop(),v.listStack.length?v.indentation=v.listStack[v.listStack.length-1]:v.list=!1;v.list!==!1&&(v.indentationDiff=ze-v.listStack[v.listStack.length-1])}var Pe=!Ue&&!qe&&!v.prevLine.header&&(!dt||!Re)&&!v.prevLine.fencedCodeEnd,Fe=(v.list===!1||qe||Ue)&&v.indentation<=We&&M.match(W),he=null;if(v.indentationDiff>=4&&(Re||v.prevLine.fencedCodeEnd||v.prevLine.header||Ue))return M.skipToEnd(),v.indentedCode=!0,w.code;if(M.eatSpace())return null;if(ce&&v.indentation<=We&&(he=M.match(T))&&he[1].length<=6)return v.quote=0,v.header=he[1].length,v.thisLine.header=!0,re.highlightFormatting&&(v.formatting="header"),v.f=v.inline,Ce(v);if(v.indentation<=We&&M.eat(">"))return v.quote=ce?1:v.quote+1,re.highlightFormatting&&(v.formatting="quote"),M.eatSpace(),Ce(v);if(!Fe&&!v.setext&&ce&&v.indentation<=We&&(he=M.match(V))){var P=he[1]?"ol":"ul";return v.indentation=ze+M.current().length,v.list=!0,v.quote=0,v.listStack.push(v.indentation),v.em=!1,v.strong=!1,v.code=!1,v.strikethrough=!1,re.taskLists&&M.match(L,!1)&&(v.taskList=!0),v.f=v.inline,re.highlightFormatting&&(v.formatting=["list","list-"+P]),Ce(v)}else{if(ce&&v.indentation<=We&&(he=M.match(K,!0)))return v.quote=0,v.fencedEndRE=new RegExp(he[1]+"+ *$"),v.localMode=re.fencedCodeBlockHighlighting&&ne(he[2]||re.fencedCodeBlockDefaultMode),v.localMode&&(v.localState=I.startState(v.localMode)),v.f=v.block=Ee,re.highlightFormatting&&(v.formatting="code-block"),v.code=-1,Ce(v);if(v.setext||(!Pe||!dt)&&!v.quote&&v.list===!1&&!v.code&&!Fe&&!D.test(M.string)&&(he=M.lookAhead(1))&&(he=he.match(se)))return v.setext?(v.header=v.setext,v.setext=0,M.skipToEnd(),re.highlightFormatting&&(v.formatting="header")):(v.header=he[0].charAt(0)=="="?1:2,v.setext=v.header),v.thisLine.header=!0,v.f=v.inline,Ce(v);if(Fe)return M.skipToEnd(),v.hr=!0,v.thisLine.hr=!0,w.hr;if(M.peek()==="[")return le(M,v,Q)}return le(M,v,v.inline)}function Ve(M,v){var ce=X.token(M,v.htmlState);if(!C){var Ue=I.innerMode(X,v.htmlState);(Ue.mode.name=="xml"&&Ue.state.tagStart===null&&!Ue.state.context&&Ue.state.tokenize.isInText||v.md_inside&&M.current().indexOf(">")>-1)&&(v.f=be,v.block=ke,v.htmlState=null)}return ce}function Ee(M,v){var ce=v.listStack[v.listStack.length-1]||0,Ue=v.indentation<ce,Re=ce+3;if(v.fencedEndRE&&v.indentation<=Re&&(Ue||M.match(v.fencedEndRE))){re.highlightFormatting&&(v.formatting="code-block");var qe;return Ue||(qe=Ce(v)),v.localMode=v.localState=null,v.block=ke,v.f=be,v.fencedEndRE=null,v.code=0,v.thisLine.fencedCodeEnd=!0,Ue?Me(M,v,v.block):qe}else return v.localMode?v.localMode.token(M,v.localState):(M.skipToEnd(),w.code)}function Ce(M){var v=[];if(M.formatting){v.push(w.formatting),typeof M.formatting=="string"&&(M.formatting=[M.formatting]);for(var ce=0;ce<M.formatting.length;ce++)v.push(w.formatting+"-"+M.formatting[ce]),M.formatting[ce]==="header"&&v.push(w.formatting+"-"+M.formatting[ce]+"-"+M.header),M.formatting[ce]==="quote"&&(!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=M.quote?v.push(w.formatting+"-"+M.formatting[ce]+"-"+M.quote):v.push("error"))}if(M.taskOpen)return v.push("meta"),v.length?v.join(" "):null;if(M.taskClosed)return v.push("property"),v.length?v.join(" "):null;if(M.linkHref?v.push(w.linkHref,"url"):(M.strong&&v.push(w.strong),M.em&&v.push(w.em),M.strikethrough&&v.push(w.strikethrough),M.emoji&&v.push(w.emoji),M.linkText&&v.push(w.linkText),M.code&&v.push(w.code),M.image&&v.push(w.image),M.imageAltText&&v.push(w.imageAltText,"link"),M.imageMarker&&v.push(w.imageMarker)),M.header&&v.push(w.header,w.header+"-"+M.header),M.quote&&(v.push(w.quote),!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=M.quote?v.push(w.quote+"-"+M.quote):v.push(w.quote+"-"+re.maxBlockquoteDepth)),M.list!==!1){var Ue=(M.listStack.length-1)%3;Ue?Ue===1?v.push(w.list2):v.push(w.list3):v.push(w.list1)}return M.trailingSpaceNewLine?v.push("trailing-space-new-line"):M.trailingSpace&&v.push("trailing-space-"+(M.trailingSpace%2?"a":"b")),v.length?v.join(" "):null}function Ne(M,v){return M.match(q,!0)?Ce(v):void 0}function be(M,v){var ce=v.text(M,v);if(typeof ce!="undefined")return ce;if(v.list)return v.list=null,Ce(v);if(v.taskList){var Ue=M.match(L,!0)[1]===" ";return Ue?v.taskOpen=!0:v.taskClosed=!0,re.highlightFormatting&&(v.formatting="task"),v.taskList=!1,Ce(v)}if(v.taskOpen=!1,v.taskClosed=!1,v.header&&M.match(/^#+$/,!0))return re.highlightFormatting&&(v.formatting="header"),Ce(v);var Re=M.next();if(v.linkTitle){v.linkTitle=!1;var qe=Re;Re==="("&&(qe=")"),qe=(qe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var dt="^\\s*(?:[^"+qe+"\\\\]+|\\\\\\\\|\\\\.)"+qe;if(M.match(new RegExp(dt),!0))return w.linkHref}if(Re==="`"){var We=v.formatting;re.highlightFormatting&&(v.formatting="code"),M.eatWhile("`");var ze=M.current().length;if(v.code==0&&(!v.quote||ze==1))return v.code=ze,Ce(v);if(ze==v.code){var Pe=Ce(v);return v.code=0,Pe}else return v.formatting=We,Ce(v)}else if(v.code)return Ce(v);if(Re==="\\"&&(M.next(),re.highlightFormatting)){var Fe=Ce(v),he=w.formatting+"-escape";return Fe?Fe+" "+he:he}if(Re==="!"&&M.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return v.imageMarker=!0,v.image=!0,re.highlightFormatting&&(v.formatting="image"),Ce(v);if(Re==="["&&v.imageMarker&&M.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return v.imageMarker=!1,v.imageAltText=!0,re.highlightFormatting&&(v.formatting="image"),Ce(v);if(Re==="]"&&v.imageAltText){re.highlightFormatting&&(v.formatting="image");var Fe=Ce(v);return v.imageAltText=!1,v.image=!1,v.inline=v.f=xe,Fe}if(Re==="["&&!v.image)return v.linkText&&M.match(/^.*?\]/)||(v.linkText=!0,re.highlightFormatting&&(v.formatting="link")),Ce(v);if(Re==="]"&&v.linkText){re.highlightFormatting&&(v.formatting="link");var Fe=Ce(v);return v.linkText=!1,v.inline=v.f=M.match(/\(.*?\)| ?\[.*?\]/,!1)?xe:be,Fe}if(Re==="<"&&M.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){v.f=v.inline=B,re.highlightFormatting&&(v.formatting="link");var Fe=Ce(v);return Fe?Fe+=" ":Fe="",Fe+w.linkInline}if(Re==="<"&&M.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){v.f=v.inline=B,re.highlightFormatting&&(v.formatting="link");var Fe=Ce(v);return Fe?Fe+=" ":Fe="",Fe+w.linkEmail}if(re.xml&&Re==="<"&&M.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var P=M.string.indexOf(">",M.pos);if(P!=-1){var nt=M.string.substring(M.start,P);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(nt)&&(v.md_inside=!0)}return M.backUp(1),v.htmlState=I.startState(X),Me(M,v,Ve)}if(re.xml&&Re==="<"&&M.match(/^\/\w*?>/))return v.md_inside=!1,"tag";if(Re==="*"||Re==="_"){for(var Tt=1,Ut=M.pos==1?" ":M.string.charAt(M.pos-2);Tt<3&&M.eat(Re);)Tt++;var ft=M.peek()||" ",wt=!/\s/.test(ft)&&(!_.test(ft)||/\s/.test(Ut)||_.test(Ut)),He=!/\s/.test(Ut)&&(!_.test(Ut)||/\s/.test(ft)||_.test(ft)),rt=null,pt=null;if(Tt%2&&(!v.em&&wt&&(Re==="*"||!He||_.test(Ut))?rt=!0:v.em==Re&&He&&(Re==="*"||!wt||_.test(ft))&&(rt=!1)),Tt>1&&(!v.strong&&wt&&(Re==="*"||!He||_.test(Ut))?pt=!0:v.strong==Re&&He&&(Re==="*"||!wt||_.test(ft))&&(pt=!1)),pt!=null||rt!=null){re.highlightFormatting&&(v.formatting=rt==null?"strong":pt==null?"em":"strong em"),rt===!0&&(v.em=Re),pt===!0&&(v.strong=Re);var Pe=Ce(v);return rt===!1&&(v.em=!1),pt===!1&&(v.strong=!1),Pe}}else if(Re===" "&&(M.eat("*")||M.eat("_"))){if(M.peek()===" ")return Ce(v);M.backUp(1)}if(re.strikethrough){if(Re==="~"&&M.eatWhile(Re)){if(v.strikethrough){re.highlightFormatting&&(v.formatting="strikethrough");var Pe=Ce(v);return v.strikethrough=!1,Pe}else if(M.match(/^[^\s]/,!1))return v.strikethrough=!0,re.highlightFormatting&&(v.formatting="strikethrough"),Ce(v)}else if(Re===" "&&M.match(/^~~/,!0)){if(M.peek()===" ")return Ce(v);M.backUp(2)}}if(re.emoji&&Re===":"&&M.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){v.emoji=!0,re.highlightFormatting&&(v.formatting="emoji");var gt=Ce(v);return v.emoji=!1,gt}return Re===" "&&(M.match(/^ +$/,!1)?v.trailingSpace++:v.trailingSpace&&(v.trailingSpaceNewLine=!0)),Ce(v)}function B(M,v){var ce=M.next();if(ce===">"){v.f=v.inline=be,re.highlightFormatting&&(v.formatting="link");var Ue=Ce(v);return Ue?Ue+=" ":Ue="",Ue+w.linkInline}return M.match(/^[^>]+/,!0),w.linkInline}function xe(M,v){if(M.eatSpace())return null;var ce=M.next();return ce==="("||ce==="["?(v.f=v.inline=S(ce==="("?")":"]"),re.highlightFormatting&&(v.formatting="link-string"),v.linkHref=!0,Ce(v)):"error"}var me={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function S(M){return function(v,ce){var Ue=v.next();if(Ue===M){ce.f=ce.inline=be,re.highlightFormatting&&(ce.formatting="link-string");var Re=Ce(ce);return ce.linkHref=!1,Re}return v.match(me[M]),ce.linkHref=!0,Ce(ce)}}function Q(M,v){return M.match(/^([^\]\\]|\\.)*\]:/,!1)?(v.f=ue,M.next(),re.highlightFormatting&&(v.formatting="link"),v.linkText=!0,Ce(v)):le(M,v,be)}function ue(M,v){if(M.match(/^\]:/,!0)){v.f=v.inline=G,re.highlightFormatting&&(v.formatting="link");var ce=Ce(v);return v.linkText=!1,ce}return M.match(/^([^\]\\]|\\.)+/,!0),w.linkText}function G(M,v){return M.eatSpace()?null:(M.match(/^[^\s]+/,!0),M.peek()===void 0?v.linkTitle=!0:M.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),v.f=v.inline=be,w.linkHref+" url")}var De={startState:function(){return{f:ke,prevLine:{stream:null},thisLine:{stream:null},block:ke,htmlState:null,indentation:0,inline:be,text:Ne,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(M){return{f:M.f,prevLine:M.prevLine,thisLine:M.thisLine,block:M.block,htmlState:M.htmlState&&I.copyState(X,M.htmlState),indentation:M.indentation,localMode:M.localMode,localState:M.localMode?I.copyState(M.localMode,M.localState):null,inline:M.inline,text:M.text,formatting:!1,linkText:M.linkText,linkTitle:M.linkTitle,linkHref:M.linkHref,code:M.code,em:M.em,strong:M.strong,strikethrough:M.strikethrough,emoji:M.emoji,header:M.header,setext:M.setext,hr:M.hr,taskList:M.taskList,list:M.list,listStack:M.listStack.slice(0),quote:M.quote,indentedCode:M.indentedCode,trailingSpace:M.trailingSpace,trailingSpaceNewLine:M.trailingSpaceNewLine,md_inside:M.md_inside,fencedEndRE:M.fencedEndRE}},token:function(M,v){if(v.formatting=!1,M!=v.thisLine.stream){if(v.header=0,v.hr=!1,M.match(/^\s*$/,!0))return we(v),null;if(v.prevLine=v.thisLine,v.thisLine={stream:M},v.taskList=!1,v.trailingSpace=0,v.trailingSpaceNewLine=!1,!v.localState&&(v.f=v.block,v.f!=Ve)){var ce=M.match(/^\s*/,!0)[0].replace(/\t/g,A).length;if(v.indentation=ce,v.indentationDiff=null,ce>0)return null}}return v.f(M,v)},innerMode:function(M){return M.block==Ve?{state:M.htmlState,mode:X}:M.localState?{state:M.localState,mode:M.localMode}:{state:M,mode:De}},indent:function(M,v,ce){return M.block==Ve&&X.indent?X.indent(M.htmlState,v,ce):M.localState&&M.localMode.indent?M.localMode.indent(M.localState,v,ce):I.Pass},blankLine:we,getType:Ce,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return De},"xml"),I.defineMIME("text/markdown","markdown"),I.defineMIME("text/x-markdown","markdown")})},lzim:function(Oe,Ae,h){"use strict";var I=h("E7E6"),de=h.n(I);h.d(Ae,"B",function(){return de.a});var re=h("/GNS"),X=h.n(re);h.d(Ae,"A",function(){return X.a});var C=h("FOrL"),ne=h.n(C);h.d(Ae,"u",function(){return ne.a});var w=h("HpTS"),R=h.n(w);h.d(Ae,"C",function(){return R.a});var W=h("tWlo"),V=h.n(W);h.d(Ae,"b",function(){return V.a});var L=h("7ZXX"),T=h.n(L);h.d(Ae,"n",function(){return T.a});var se=h("GABl"),q=h.n(se);h.d(Ae,"g",function(){return q.a});var K=h("onxn"),D=h.n(K);h.d(Ae,"p",function(){return D.a});var _=h("nKGa"),A=h.n(_);h.d(Ae,"o",function(){return A.a});var le=h("4qgm"),Me=h.n(le);h.d(Ae,"E",function(){return Me.a});var Je=h("JeFH"),we=h.n(Je);h.d(Ae,"c",function(){return we.a});var ke=h("ji0R"),Ve=h.n(ke);h.d(Ae,"k",function(){return Ve.a});var Ee=h("W6BS"),Ce=h.n(Ee);h.d(Ae,"F",function(){return Ce.a});var Ne=h("kPYp"),be=h.n(Ne);h.d(Ae,"G",function(){return be.a});var B=h("nukY"),xe=h.n(B),me=h("4u4S"),S=h.n(me),Q=h("yslc"),ue=h.n(Q),G=h("l2Kq"),De=h.n(G);h.d(Ae,"t",function(){return De.a});var M=h("RMFE"),v=h.n(M);h.d(Ae,"q",function(){return v.a});var ce=h("TGq3"),Ue=h.n(ce);h.d(Ae,"r",function(){return Ue.a});var Re=h("SMhR"),qe=h.n(Re);h.d(Ae,"D",function(){return qe.a});var dt=h("8/bI"),We=h.n(dt);h.d(Ae,"l",function(){return We.a});var ze=h("JWDV"),Pe=h.n(ze);h.d(Ae,"e",function(){return Pe.a});var Fe=h("Xsq0"),he=h.n(Fe);h.d(Ae,"s",function(){return he.a});var P=h("Ohmc"),nt=h.n(P);h.d(Ae,"d",function(){return nt.a});var Tt=h("csWT"),Ut=h.n(Tt);h.d(Ae,"f",function(){return Ut.a});var ft=h("7v3h"),wt=h.n(ft);h.d(Ae,"m",function(){return wt.a});var He=h("cRFk"),rt=h.n(He);h.d(Ae,"z",function(){return rt.a});var pt=h("kPWJ"),gt=h.n(pt);h.d(Ae,"y",function(){return gt.a});var $e=h("qgvg"),Ke=h.n($e);h.d(Ae,"v",function(){return Ke.a});var ot=h("FPkq"),Ft=h.n(ot);h.d(Ae,"x",function(){return Ft.a});var bt=h("A/g1"),ut=h.n(bt);h.d(Ae,"h",function(){return ut.a});var st=h("Nmxd"),St=h.n(st);h.d(Ae,"i",function(){return St.a});var ct=h("5D2P"),xt=h.n(ct);h.d(Ae,"j",function(){return xt.a});var Te=h("djh8"),Dt=h.n(Te);h.d(Ae,"w",function(){return Dt.a});var ht=h("Jq4h"),Le=h.n(ht);h.d(Ae,"a",function(){return Le.a})},mepR:function(Oe,Ae,h){Oe.exports={flex_box_center:"flex_box_center___3PiSf",flex_space_between:"flex_space_between___3wd5O",flex_box_vertical_center:"flex_box_vertical_center___3qKIW",flex_box_center_end:"flex_box_center_end___2PBRG",flex_box_column:"flex_box_column___39GGe",bg:"bg___3lEyf",formWrap:"formWrap___1e8Z1",empty:"empty___2jgvs",list:"list___3m2Ed",fs:"fs___2PURZ",top:"top___2EfKX",left:"left___3Bk5W",title:"title___1hcE1",qs:"qs___KHjhf",qsActive:"qsActive___2FXkO",right:"right___2XWtX",bt:"bt___2mIBt",answer:"answer___1TBgK",addBtn:"addBtn___NMPyJ"}},muJo:function(Oe,Ae,h){Oe.exports={flex_box_center:"flex_box_center___1GzcK",flex_space_between:"flex_space_between___4Rl0j",flex_box_vertical_center:"flex_box_vertical_center___1-qMw",flex_box_center_end:"flex_box_center_end___pqqwK",flex_box_column:"flex_box_column___zVFuu",wrap:"wrap___YGogw",modal:"modal___1QSEy",titleWrap:"titleWrap___3EOlz",required:"required___1x65S",title:"title___3ujkw",colorGray:"colorGray___jarKl",choiceWrap:"choiceWrap___38GG9",answer:"answer___1L3jg",activeAnswer:"activeAnswer___2rQWC",deleteIcon:"deleteIcon___QdOVW",addIcon:"addIcon___3FfXv",editorWrap:"editorWrap___QTfGw",htmlWrap:"htmlWrap___1jgO0",radio:"radio___3VIqN",error:"error___ojNkY",color333:"color333___2XFbv",color999:"color999___1xmOg",questionType:"questionType___ttkA1",questionChoices:"questionChoices___I-cIa"}},nKGa:function(Oe,Ae,h){Oe.exports=h.p+"static/export_exercise-template.f7655c19.png"},nVVt:function(Oe,Ae){Oe.exports={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3}},nuEh:function(Oe,Ae,h){"use strict";var I=h("T2oS"),de=h("W9HT"),re=h("q1tI"),X=h.n(re),C=h("F8wB"),ne=h.n(C),w=function(W){var V=W.loading;return V?X.a.createElement("div",{className:ne.a.loading},X.a.createElement(de.a,null)):X.a.createElement(X.a.Fragment,null)};Ae.a=w},nukY:function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog0Zs41WN0UWcAS96K9vI6J3mHl+inTXqmTIAq5Ahz1yudxHDcN4k5mbM2QfrWpKLOAa9CLsB4ioLSW6azUyZAFPoBdh/w4RvZYhG2lVU2ABz6AXYf8FEb2cAv21ChmxgC/Qu7q6moeHh/9KRB/JiJ20mnVuAV+gQ+fu7u4FQ0ND/yGiLXVuAy1+BizgG/Ri2HEjEZ1k5kUZsJVWsY4tEAh06N3e3v7B8fHxt4hoWh3bIRbRm5qaaHx83NOzDcMg/DCz+RNlamhoMKtXSkX5mJrUHRh0SCml/CIzn8D+mJpInYKHNDY20p49e2hoaIguX75MIyMjrrRatWoVLVu2jJ48eUJnzpxxVcZPpunTp9POnTvNot3d3TQ8POynmsSUCQ1MIcSrzPx6YjSrIMiSJUvM3jCK9PTpU3r48KHrqhcvXkxr166lQ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4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(Oe,Ae,h){(function(I){I(h("VrN/"))})(function(I){"use strict";var de=I.Pos;function re(_,A){return _.line-A.line||_.ch-A.ch}var X="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",C=X+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ne=new RegExp("<(/?)(["+X+"]["+C+"]*)","g");function w(_,A,le,Me){this.line=A,this.ch=le,this.cm=_,this.text=_.getLine(A),this.min=Me?Math.max(Me.from,_.firstLine()):_.firstLine(),this.max=Me?Math.min(Me.to-1,_.lastLine()):_.lastLine()}function R(_,A){var le=_.cm.getTokenTypeAt(de(_.line,A));return le&&/\btag\b/.test(le)}function W(_){return _.line>=_.max?void 0:(_.ch=0,_.text=_.cm.getLine(++_.line),!0)}function V(_){return _.line<=_.min?void 0:(_.text=_.cm.getLine(--_.line),_.ch=_.text.length,!0)}function L(_){for(;;){var A=_.text.indexOf(">",_.ch);if(A==-1){if(W(_))continue;return}if(!R(_,A+1)){_.ch=A+1;continue}var le=_.text.lastIndexOf("/",A),Me=le>-1&&!/\S/.test(_.text.slice(le+1,A));return _.ch=A+1,Me?"selfClose":"regular"}}function T(_){for(;;){var A=_.ch?_.text.lastIndexOf("<",_.ch-1):-1;if(A==-1){if(V(_))continue;return}if(!R(_,A+1)){_.ch=A;continue}ne.lastIndex=A,_.ch=A;var le=ne.exec(_.text);if(le&&le.index==A)return le}}function se(_){for(;;){ne.lastIndex=_.ch;var A=ne.exec(_.text);if(!A){if(W(_))continue;return}if(!R(_,A.index+1)){_.ch=A.index+1;continue}return _.ch=A.index+A[0].length,A}}function q(_){for(;;){var A=_.ch?_.text.lastIndexOf(">",_.ch-1):-1;if(A==-1){if(V(_))continue;return}if(!R(_,A+1)){_.ch=A;continue}var le=_.text.lastIndexOf("/",A),Me=le>-1&&!/\S/.test(_.text.slice(le+1,A));return _.ch=A+1,Me?"selfClose":"regular"}}function K(_,A){for(var le=[];;){var Me=se(_),Je,we=_.line,ke=_.ch-(Me?Me[0].length:0);if(!Me||!(Je=L(_)))return;if(Je=="selfClose")continue;if(Me[1]){for(var Ve=le.length-1;Ve>=0;--Ve)if(le[Ve]==Me[2]){le.length=Ve;break}if(Ve<0&&(!A||A==Me[2]))return{tag:Me[2],from:de(we,ke),to:de(_.line,_.ch)}}else le.push(Me[2])}}function D(_,A){for(var le=[];;){var Me=q(_);if(!Me)return;if(Me=="selfClose"){T(_);continue}var Je=_.line,we=_.ch,ke=T(_);if(!ke)return;if(ke[1])le.push(ke[2]);else{for(var Ve=le.length-1;Ve>=0;--Ve)if(le[Ve]==ke[2]){le.length=Ve;break}if(Ve<0&&(!A||A==ke[2]))return{tag:ke[2],from:de(_.line,_.ch),to:de(Je,we)}}}}I.registerHelper("fold","xml",function(_,A){for(var le=new w(_,A.line,0);;){var Me=se(le);if(!Me||le.line!=A.line)return;var Je=L(le);if(!Je)return;if(!Me[1]&&Je!="selfClose"){var we=de(le.line,le.ch),ke=K(le,Me[2]);return ke&&re(ke.from,we)>0?{from:we,to:ke.from}:null}}}),I.findMatchingTag=function(_,A,le){var Me=new w(_,A.line,A.ch,le);if(Me.text.indexOf(">")==-1&&Me.text.indexOf("<")==-1)return;var Je=L(Me),we=Je&&de(Me.line,Me.ch),ke=Je&&T(Me);if(!Je||!ke||re(Me,A)>0)return;var Ve={from:de(Me.line,Me.ch),to:we,tag:ke[2]};return Je=="selfClose"?{open:Ve,close:null,at:"open"}:ke[1]?{open:D(Me,ke[2]),close:Ve,at:"close"}:(Me=new w(_,we.line,we.ch,le),{open:Ve,close:K(Me,ke[2]),at:"open"})},I.findEnclosingTag=function(_,A,le,Me){for(var Je=new w(_,A.line,A.ch,le);;){var we=D(Je,Me);if(!we)break;var ke=new w(_,A.line,A.ch,le),Ve=K(ke,we.tag);if(Ve)return{open:we,close:Ve}}},I.scanForClosingTag=function(_,A,le,Me){var Je=new w(_,A.line,A.ch,Me?{from:0,to:Me}:null);return K(Je,le)}})},p5ED:function(Oe,Ae,h){"use strict";var I=h("+L6B"),de=h("2/Rp"),re=h("5Dmo"),X=h("3S7+"),C=h("k1fw"),ne=h("tJVT"),w=h("q1tI"),R=h.n(w),W=h("vHTk"),V=h.n(W),L=h("yEEn"),T=h("ZW9T"),se=h("1vsH");Ae.a=function(q){var K=q.name,D=q.data,_=q.theme,A=q.type,le=q.filename,Me=q.monacoEditor,Je=q.className,we=q.style,ke=q.close,Ve=q.onClose,Ee=q.hasMask,Ce=Object(w.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ne=Object(ne.a)(Ce,2),be=Ne[0],B=Ne[1],xe=Object(w.useState)(""),me=Object(ne.a)(xe,2),S=me[0],Q=me[1],ue=Object(w.useRef)();le&&(Me.filename=le),Object(w.useEffect)(function(){var M,v,ce=(M=document.cookie)===null||M===void 0||((v=M.replace(/\s/g,""))===null||v===void 0)?void 0:v.split(";");ce==null||ce.map(function(Ue){var Re=Ue.split("=");Re[0]==="_educoder_session"&&Q(Re[1])})},[]);var G=function(){if(D.startsWith("http")||D.startsWith("/")){De();return}Object(se.x)(le||"educoder",D,le)},De=function(){Object(se.v)(le||K,D)};return console.log("data:",D,"fileanme:",le," name:",K),R.a.createElement("div",{style:Object(C.a)({},we||{}),className:"".concat(Ee&&V.a.bgBlack," ").concat(A?V.a.wrp:"hide")},ke&&R.a.createElement("div",{className:V.a.close,ref:ue},R.a.createElement(X.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return ue.current}},R.a.createElement("span",{onClick:De},R.a.createElement("i",{className:"icon-quxiaozhiding"}))),R.a.createElement(X.a,{title:"\u5173\u95ED",getPopupContainer:function(){return ue.current}},R.a.createElement("span",{className:"",onClick:Ve},R.a.createElement("i",{className:"icon-guanbi1"})))),R.a.createElement("div",{className:"".concat(V.a[Je]," ").concat(Je," ").concat(V.a.monaco," ").concat(A==="txt"?"show":"hide")},A==="txt"&&R.a.createElement(T.b,Me)),A==="audio"&&R.a.createElement("audio",{src:"".concat(D!=null&&D.startsWith("/")||(D==null?void 0:D.indexOf("https://"))>-1?D:"data:audio/mp3;base64,").concat(D),autoPlay:!0}),A==="video"&&R.a.createElement(R.a.Fragment,null,D!=null&&D.startsWith("/")?R.a.createElement("video",{controls:!0,src:"".concat(D),autoPlay:!0}):R.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(D),autoPlay:!0})),A==="html"&&R.a.createElement("iframe",{src:D+"&disposition=inline"}),A==="pdf"&&R.a.createElement("embed",{className:V.a.embed,src:D}),A==="image"&&R.a.createElement(R.a.Fragment,null,R.a.createElement("img",{src:"".concat(D!=null&&D.startsWith("/")||(D==null?void 0:D.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(D)})),A==="other"&&R.a.createElement("div",null,R.a.createElement(de.a,{type:"primary",size:"large",onClick:G},R.a.createElement(L.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(A==="download"||A==="office")&&R.a.createElement(de.a,{type:"primary",size:"large",onClick:G},R.a.createElement(L.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Oe,Ae,h){},qgvg:function(Oe,Ae){Oe.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1ze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8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},"rAM+":function(Oe,Ae,h){"use strict";h.d(Ae,"a",function(){return de});var I=h("Qw5x");function de(re,X){var C;if(typeof Symbol=="undefined"||re[Symbol.iterator]==null){if(Array.isArray(re)||(C=Object(I.a)(re))||X&&re&&typeof re.length=="number"){C&&(re=C);var ne=0,w=function(){};return{s:w,n:function(){return ne>=re.length?{done:!0}:{done:!1,value:re[ne++]}},e:function(T){throw T},f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R=!0,W=!1,V;return{s:function(){C=re[Symbol.iterator]()},n:function(){var T=C.next();return R=T.done,T},e:function(T){W=!0,V=T},f:function(){try{!R&&C.return!=null&&C.return()}finally{if(W)throw V}}}}},rUJ1:function(Oe,Ae){const h=/[&<>"']/,I=/[&<>"']/g,de=/[<>"']|&(?!#?\w+;)/,re=/[<>"']|&(?!#?\w+;)/g,X={"&":"&","<":"<",">":">",'"':""","'":"'"},C=Ee=>X[Ee];function ne(Ee,Ce){if(Ce){if(h.test(Ee))return Ee.replace(I,C)}else if(de.test(Ee))return Ee.replace(re,C);return Ee}const w=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function R(Ee){return Ee.replace(w,(Ce,Ne)=>(Ne=Ne.toLowerCase(),Ne==="colon"?":":Ne.charAt(0)==="#"?Ne.charAt(1)==="x"?String.fromCharCode(parseInt(Ne.substring(2),16)):String.fromCharCode(+Ne.substring(1)):""))}const W=/(^|[^\[])\^/g;function V(Ee,Ce){Ee=Ee.source||Ee,Ce=Ce||"";const Ne={replace:(be,B)=>(B=B.source||B,B=B.replace(W,"$1"),Ee=Ee.replace(be,B),Ne),getRegex:()=>new RegExp(Ee,Ce)};return Ne}const L=/[^\w:]/g,T=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function se(Ee,Ce,Ne){if(Ee){let be;try{be=decodeURIComponent(R(Ne)).replace(L,"").toLowerCase()}catch(B){return null}if(be.indexOf("javascript:")===0||be.indexOf("vbscript:")===0||be.indexOf("data:")===0)return null}Ce&&!T.test(Ne)&&(Ne=A(Ce,Ne));try{Ne=encodeURI(Ne).replace(/%25/g,"%")}catch(be){return null}return Ne}const q={},K=/^[^:]+:\/*[^/]*$/,D=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function A(Ee,Ce){q[" "+Ee]||(K.test(Ee)?q[" "+Ee]=Ee+"/":q[" "+Ee]=we(Ee,"/",!0)),Ee=q[" "+Ee];const Ne=Ee.indexOf(":")===-1;return Ce.substring(0,2)==="//"?Ne?Ce:Ee.replace(D,"$1")+Ce:Ce.charAt(0)==="/"?Ne?Ce:Ee.replace(_,"$1")+Ce:Ee+Ce}const le={exec:function(){}};function Me(Ee){let Ce=1,Ne,be;for(;Ce<arguments.length;Ce++){Ne=arguments[Ce];for(be in Ne)Object.prototype.hasOwnProperty.call(Ne,be)&&(Ee[be]=Ne[be])}return Ee}function Je(Ee,Ce){const Ne=Ee.replace(/\|/g,(xe,me,S)=>{let Q=!1,ue=me;for(;--ue>=0&&S[ue]==="\\";)Q=!Q;return Q?"|":" |"}),be=Ne.split(/ \|/);let B=0;if(be.length>Ce)be.splice(Ce);else for(;be.length<Ce;)be.push("");for(;B<be.length;B++)be[B]=be[B].trim().replace(/\\\|/g,"|");return be}function we(Ee,Ce,Ne){const be=Ee.length;if(be===0)return"";let B=0;for(;B<be;){const xe=Ee.charAt(be-B-1);if(xe===Ce&&!Ne)B++;else if(xe!==Ce&&Ne)B++;else break}return Ee.substr(0,be-B)}function ke(Ee,Ce){if(Ee.indexOf(Ce[1])===-1)return-1;const Ne=Ee.length;let be=0,B=0;for(;B<Ne;B++)if(Ee[B]==="\\")B++;else if(Ee[B]===Ce[0])be++;else if(Ee[B]===Ce[1]&&(be--,be<0))return B;return-1}function Ve(Ee){Ee&&Ee.sanitize&&!Ee.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}Oe.exports={escape:ne,unescape:R,edit:V,cleanUrl:se,resolveUrl:A,noopTest:le,merge:Me,splitCells:Je,rtrim:we,findClosingBracket:ke,checkSanitizeDeprecation:Ve}},rcnY:function(Oe,Ae,h){var I=h("aRTE");function de(re,X){this.totalCount=re,this.dataCount=X}de.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],de.getRSBlocks=function(re,X){var C=de.getRsBlockTable(re,X);if(C==null)throw new Error("bad rs block @ typeNumber:"+re+"/errorCorrectLevel:"+X);for(var ne=C.length/3,w=new Array,R=0;R<ne;R++)for(var W=C[R*3+0],V=C[R*3+1],L=C[R*3+2],T=0;T<W;T++)w.push(new de(V,L));return w},de.getRsBlockTable=function(re,X){switch(X){case I.L:return de.RS_BLOCK_TABLE[(re-1)*4+0];case I.M:return de.RS_BLOCK_TABLE[(re-1)*4+1];case I.Q:return de.RS_BLOCK_TABLE[(re-1)*4+2];case I.H:return de.RS_BLOCK_TABLE[(re-1)*4+3];default:return}},Oe.exports=de},t23M:function(Oe,Ae,h){"use strict";var I=h("VTBJ"),de=h("1OyB"),re=h("vuIU"),X=h("Ji7U"),C=h("LK+K"),ne=h("q1tI"),w=h.n(ne),R=h("m+aA"),W=h("Zm9Q"),V=h("Kwbf"),L=h("c+Xe"),T=h("bdgK"),se="rc-observer-key",q=function(K){Object(X.a)(_,K);var D=Object(C.a)(_);function _(){var A;return Object(de.a)(this,_),A=D.apply(this,arguments),A.resizeObserver=null,A.childNode=null,A.currentElement=null,A.state={width:0,height:0,offsetHeight:0,offsetWidth:0},A.onResize=function(le){var Me=A.props.onResize,Je=le[0].target,we=Je.getBoundingClientRect(),ke=we.width,Ve=we.height,Ee=Je.offsetWidth,Ce=Je.offsetHeight,Ne=Math.floor(ke),be=Math.floor(Ve);if(A.state.width!==Ne||A.state.height!==be||A.state.offsetWidth!==Ee||A.state.offsetHeight!==Ce){var B={width:Ne,height:be,offsetWidth:Ee,offsetHeight:Ce};A.setState(B),Me&&Promise.resolve().then(function(){Me(Object(I.a)(Object(I.a)({},B),{},{offsetWidth:Ee,offsetHeight:Ce}))})}},A.setChildNode=function(le){A.childNode=le},A}return Object(re.a)(_,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var le=this.props.disabled;if(le){this.destroyObserver();return}var Me=Object(R.a)(this.childNode||this),Je=Me!==this.currentElement;Je&&(this.destroyObserver(),this.currentElement=Me),!this.resizeObserver&&Me&&(this.resizeObserver=new T.default(this.onResize),this.resizeObserver.observe(Me))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var le=this.props.children,Me=Object(W.a)(le);if(Me.length>1)Object(V.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Me.length===0)return Object(V.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Je=Me[0];if(ne.isValidElement(Je)&&Object(L.c)(Je)){var we=Je.ref;Me[0]=ne.cloneElement(Je,{ref:Object(L.a)(we,this.setChildNode)})}return Me.length===1?Me[0]:Me.map(function(ke,Ve){return!ne.isValidElement(ke)||"key"in ke&&ke.key!==null?ke:ne.cloneElement(ke,{key:"".concat(se,"-").concat(Ve)})})}}]),_}(ne.Component);q.displayName="ResizeObserver",Ae.a=q},tWlo:function(Oe,Ae){Oe.exports="data:image/png;base64,i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,Ae,h){Oe.exports={flex_box_center:"flex_box_center___1HoSW",flex_space_between:"flex_space_between___1NTlm",flex_box_vertical_center:"flex_box_vertical_center___1RREG",flex_box_center_end:"flex_box_center_end___-OJaq",flex_box_column:"flex_box_column___11ry4",modal:"modal___32KcS",main:"main___3HP_p",title:"title___1Kjif",name:"name___3ysu_",body:"body___33mTT",form:"form___2fckF",btns:"btns___3SmLH"}},vHTk:function(Oe,Ae,h){Oe.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wU8J:function(Oe,Ae){function h(){this.buffer=new Array,this.length=0}h.prototype={get:function(I){var de=Math.floor(I/8);return(this.buffer[de]>>>7-I%8&1)==1},put:function(I,de){for(var re=0;re<de;re++)this.putBit((I>>>de-re-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(I){var de=Math.floor(this.length/8);this.buffer.length<=de&&this.buffer.push(0),I&&(this.buffer[de]|=128>>>this.length%8),this.length++}},Oe.exports=h},yslc:function(Oe,Ae){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6ML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