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
808 KiB
345 lines
808 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[225,7,9,10,17],{"+NIl":function(Oe,xe,h){(function(I){I(h("VrN/"))})(function(I){"use strict";I.defineMode("stex",function(de,re){"use strict";function X(q,G){q.cmdState.push(G)}function E(q){return q.cmdState.length>0?q.cmdState[q.cmdState.length-1]:null}function ie(q){var G=q.cmdState.pop();G&&G.closeBracket()}function A(q){for(var G=q.cmdState,D=G.length-1;D>=0;D--){var j=G[D];if(j.name=="DEFAULT")continue;return j}return{styleIdentifier:function(){return null}}}function R(q,G,D){return function(){this.name=q,this.bracketNo=0,this.style=G,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 F={};F.importmodule=R("importmodule","tag",["string","builtin"]),F.documentclass=R("documentclass","tag",["","atom"]),F.usepackage=R("usepackage","tag",["atom"]),F.begin=R("begin","tag",["atom"]),F.end=R("end","tag",["atom"]),F.label=R("label","tag",["atom"]),F.ref=R("ref","tag",["atom"]),F.eqref=R("eqref","tag",["atom"]),F.cite=R("cite","tag",["atom"]),F.bibitem=R("bibitem","tag",["atom"]),F.Bibitem=R("Bibitem","tag",["atom"]),F.RBibitem=R("RBibitem","tag",["atom"]),F.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function K(q,G){q.f=G}function L(q,G){var D;if(q.match(/^\\[a-zA-Z@]+/)){var j=q.current().slice(1);return D=F.hasOwnProperty(j)?F[j]:F.DEFAULT,D=new D,X(G,D),K(G,se),D.style}if(q.match(/^\\[$&%#{}_]/))return"tag";if(q.match(/^\\[,;!\/\\]/))return"tag";if(q.match("\\["))return K(G,function(le,Me){return T(le,Me,"\\]")}),"keyword";if(q.match("\\("))return K(G,function(le,Me){return T(le,Me,"\\)")}),"keyword";if(q.match("$$"))return K(G,function(le,Me){return T(le,Me,"$$")}),"keyword";if(q.match("$"))return K(G,function(le,Me){return T(le,Me,"$")}),"keyword";var w=q.next();if(w=="%")return q.skipToEnd(),"comment";if(w=="}"||w=="]"){if(D=E(G),D)D.closeBracket(w),K(G,se);else return"error";return"bracket"}else return w=="{"||w=="["?(D=F.DEFAULT,D=new D,X(G,D),"bracket"):/\d/.test(w)?(q.eatWhile(/[\w.%]/),"atom"):(q.eatWhile(/[\w\-_]/),D=A(G),D.name=="begin"&&(D.argument=q.current()),D.styleIdentifier())}function T(q,G,D){if(q.eatSpace())return null;if(D&&q.match(D))return K(G,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 j=q.next();return j=="{"||j=="}"||j=="["||j=="]"||j=="("||j==")"?"bracket":j=="%"?(q.skipToEnd(),"comment"):"error"}function se(q,G){var D=q.peek(),j;return D=="{"||D=="["?(j=E(G),j.openBracket(D),q.eat(D),K(G,L),"bracket"):/[ \t\r]/.test(D)?(q.eat(D),null):(K(G,L),ie(G),L(q,G))}return{startState:function(){var q=re.inMathMode?function(G,D){return T(G,D)}:L;return{cmdState:[],f:q}},copyState:function(q){return{cmdState:q.cmdState.slice(),f:q.f}},token:function(q,G){return G.f(q,G)},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,xe,h){Oe.exports=h.p+"static/search1.c4136dd4.png"},"19Vz":function(Oe,xe,h){(function(I){I(h("VrN/"))})(function(I){I.defineOption("placeholder","",function(R,F,K){var L=K&&K!=I.Init;if(F&&!L)R.on("blur",E),R.on("change",ie),R.on("swapDoc",ie),I.on(R.getInputField(),"compositionupdate",R.state.placeholderCompose=function(){X(R)}),ie(R);else if(!F&&L){R.off("blur",E),R.off("change",ie),R.off("swapDoc",ie),I.off(R.getInputField(),"compositionupdate",R.state.placeholderCompose),de(R);var T=R.getWrapperElement();T.className=T.className.replace(" CodeMirror-empty","")}F&&!R.hasFocus()&&E(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 F=R.state.placeholder=document.createElement("pre");F.style.cssText="height: 0; overflow: visible",F.style.direction=R.getOption("direction"),F.className="CodeMirror-placeholder CodeMirror-line-like";var K=R.getOption("placeholder");typeof K=="string"&&(K=document.createTextNode(K)),F.appendChild(K),R.display.lineSpace.insertBefore(F,R.display.lineSpace.firstChild)}function X(R){setTimeout(function(){var F=!1,K=R.getInputField();K.nodeName=="TEXTAREA"?F=!K.value:R.lineCount()==1&&(F=!/[^\u200b]/.test(K.querySelector(".CodeMirror-line").textContent)),F?re(R):de(R)},20)}function E(R){A(R)&&re(R)}function ie(R){var F=R.getWrapperElement(),K=A(R);F.className=F.className.replace(" CodeMirror-empty","")+(K?" CodeMirror-empty":""),K?re(R):de(R)}function A(R){return R.lineCount()===1&&R.getLine(0)===""}})},"1eCo":function(Oe,xe,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,E){var ie=X.indentUnit,A={},R=E.htmlMode?de:re;for(var F in R)A[F]=R[F];for(var F in E)A[F]=E[F];var K,L;function T(_,Ae){function me(ue){return Ae.tokenize=ue,ue(_,Ae)}var S=_.next();if(S=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?me(G("atom","]]>")):null:_.match("--")?me(G("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),me(D(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),Ae.tokenize=G("meta","?>"),"meta"):(K=_.eat("/")?"closeTag":"openTag",Ae.tokenize=se,"tag bracket");if(S=="&"){var Q;return _.eat("#")?_.eat("x")?Q=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):Q=_.eatWhile(/[\d]/)&&_.eat(";"):Q=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),Q?"atom":"error"}else return _.eatWhile(/[^&<]/),null}T.isInText=!0;function se(_,Ae){var me=_.next();if(me==">"||me=="/"&&_.eat(">"))return Ae.tokenize=T,K=me==">"?"endTag":"selfcloseTag","tag bracket";if(me=="=")return K="equals",null;if(me=="<"){Ae.tokenize=T,Ae.state=Me,Ae.tagName=Ae.tagStart=null;var S=Ae.tokenize(_,Ae);return S?S+" tag error":"tag error"}else return/[\'\"]/.test(me)?(Ae.tokenize=q(me),Ae.stringStartCol=_.column(),Ae.tokenize(_,Ae)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function q(_){var Ae=function(me,S){for(;!me.eol();)if(me.next()==_){S.tokenize=se;break}return"string"};return Ae.isInAttribute=!0,Ae}function G(_,Ae){return function(me,S){for(;!me.eol();){if(me.match(Ae)){S.tokenize=T;break}me.next()}return _}}function D(_){return function(Ae,me){for(var S;(S=Ae.next())!=null;){if(S=="<")return me.tokenize=D(_+1),me.tokenize(Ae,me);if(S==">")if(_==1){me.tokenize=T;break}else return me.tokenize=D(_-1),me.tokenize(Ae,me)}return"meta"}}function j(_,Ae,me){this.prev=_.context,this.tagName=Ae,this.indent=_.indented,this.startOfLine=me,(A.doNotIndent.hasOwnProperty(Ae)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function w(_){_.context&&(_.context=_.context.prev)}function le(_,Ae){for(var me;;){if(!_.context)return;if(me=_.context.tagName,!A.contextGrabbers.hasOwnProperty(me)||!A.contextGrabbers[me].hasOwnProperty(Ae))return;w(_)}}function Me(_,Ae,me){return _=="openTag"?(me.tagStart=Ae.column(),Je):_=="closeTag"?we:Me}function Je(_,Ae,me){return _=="word"?(me.tagName=Ae.current(),L="tag",Ee):A.allowMissingTagName&&_=="endTag"?(L="tag bracket",Ee(_,Ae,me)):(L="error",Je)}function we(_,Ae,me){if(_=="word"){var S=Ae.current();return me.context&&me.context.tagName!=S&&A.implicitlyClosed.hasOwnProperty(me.context.tagName)&&w(me),me.context&&me.context.tagName==S||A.matchClosing===!1?(L="tag",ke):(L="tag error",Ke)}else return A.allowMissingTagName&&_=="endTag"?(L="tag bracket",ke(_,Ae,me)):(L="error",Ke)}function ke(_,Ae,me){return _!="endTag"?(L="error",ke):(w(me),Me)}function Ke(_,Ae,me){return L="error",ke(_,Ae,me)}function Ee(_,Ae,me){if(_=="word")return L="attribute",Ce;if(_=="endTag"||_=="selfcloseTag"){var S=me.tagName,Q=me.tagStart;return me.tagName=me.tagStart=null,_=="selfcloseTag"||A.autoSelfClosers.hasOwnProperty(S)?le(me,S):(le(me,S),me.context=new j(me,S,Q==me.indented)),Me}return L="error",Ee}function Ce(_,Ae,me){return _=="equals"?Pe:(A.allowMissing||(L="error"),Ee(_,Ae,me))}function Pe(_,Ae,me){return _=="string"?be:_=="word"&&A.allowUnquoted?(L="string",Ee):(L="error",Ee(_,Ae,me))}function be(_,Ae,me){return _=="string"?be:Ee(_,Ae,me)}return{startState:function(_){var Ae={tokenize:T,state:Me,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(Ae.baseIndent=_),Ae},token:function(_,Ae){if(!Ae.tagName&&_.sol()&&(Ae.indented=_.indentation()),_.eatSpace())return null;K=null;var me=Ae.tokenize(_,Ae);return(me||K)&&me!="comment"&&(L=null,Ae.state=Ae.state(K||me,_,Ae),L&&(me=L=="error"?me+" error":L)),me},indent:function(_,Ae,me){var S=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+ie;if(S&&S.noIndent)return I.Pass;if(_.tokenize!=se&&_.tokenize!=T)return me?me.match(/^(\s*)/)[0].length:0;if(_.tagName)return A.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+ie*(A.multilineTagIndentFactor||1);if(A.alignCDATA&&/<!\[CDATA\[/.test(Ae))return 0;var Q=Ae&&/^<(\/)?([\w_:\.-]*)/.exec(Ae);if(Q&&Q[1])for(;S;)if(S.tagName==Q[2]){S=S.prev;break}else if(A.implicitlyClosed.hasOwnProperty(S.tagName))S=S.prev;else break;else if(Q)for(;S;){var ue=A.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+ie:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:A.htmlMode?"html":"xml",helperType:A.htmlMode?"html":"xml",skipAttribute:function(_){_.state==Pe&&(_.state=Ee)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var Ae=[],me=_.context;me;me=me.prev)me.tagName&&Ae.push(me.tagName);return Ae.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,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2t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RceAEgDsdlKfTVph2rwMgC4mk37gWSz5L3DcZ+1EckAw0L44FM4/4vq+aZfr7+zu6urq2MbPMoSuavieSt9b6zJyU7+OonXVygIjWKKUOxCGFhaA4cj0AF/KS7z8D4DmMfpTIGdcQOgtgldZaJlpss9auA/B1q/Kgrhjm+08B3JuEF/ediE44T2IikiOP1Uqp7/IYDePeElFvXhwAY2nTqJCXkTiZ1XgBcT9jmplHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"7Cbv":function(Oe,xe,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 E(se){return typeof se=="string"&&X.test(se)}for(var ie=E,A=[],R=0;R<256;++R)A.push((R+256).toString(16).substr(1));function F(se){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,G=(A[se[q+0]]+A[se[q+1]]+A[se[q+2]]+A[se[q+3]]+"-"+A[se[q+4]]+A[se[q+5]]+"-"+A[se[q+6]]+A[se[q+7]]+"-"+A[se[q+8]]+A[se[q+9]]+"-"+A[se[q+10]]+A[se[q+11]]+A[se[q+12]]+A[se[q+13]]+A[se[q+14]]+A[se[q+15]]).toLowerCase();if(!ie(G))throw TypeError("Stringified UUID is invalid");return G}var K=F;function L(se,q,G){se=se||{};var D=se.random||(se.rng||re)();if(D[6]=D[6]&15|64,D[8]=D[8]&63|128,q){G=G||0;for(var j=0;j<16;++j)q[G+j]=D[j];return q}return K(D)}var T=xe.a=L},"7ZXX":function(Oe,xe,h){Oe.exports=h.p+"static/err.6e7c5817.png"},"7ahc":function(Oe,xe,h){"use strict";h.d(xe,"a",function(){return Je});var I=h("k1fw"),de=h("0Owb"),re=h("+L6B"),X=h("2/Rp"),E=h("y8nQ"),ie=h("Vl3Y"),A=h("tJVT"),R=h("OaEy"),F=h("2fM7"),K=h("q1tI"),L=h.n(K),T=h("VrN/"),se=h.n(T),q=h("p77/"),G=h.n(q),D=h("c5Ni"),j=h.n(D),w=F.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"]};xe.b=function(we){var ke=we.callback,Ke=we.onCancel,Ee=Object(K.useState)("python"),Ce=Object(A.a)(Ee,2),Pe=Ce[0],be=Ce[1];function _(me){be(Me[me][1])}function Ae(me){ke(me)}return L.a.createElement(ie.a,Object(de.a)({},le,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ae}),L.a.createElement(ie.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},L.a.createElement(F.a,{onChange:_},Object.keys(Me).map(function(me){return L.a.createElement(w,{key:me,value:me},Me[me][0])}))),L.a.createElement(ie.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:Pe})),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:Ke},"\u53D6\u6D88")))};function Je(we){var ke=we.value,Ke=we.onChange,Ee=we.mode,Ce=we.options,Pe=Ce===void 0?{}:Ce,be=Object(K.useRef)(),_=Object(K.useState)(),Ae=Object(A.a)(_,2),me=Ae[0],S=Ae[1];return Object(K.useEffect)(function(){if(me){function Q(ue){var V=ue.getValue();Ke&&Ke(V)}return me.on("change",Q),function(){me.off("change",Q)}}},[me,Ke]),Object(K.useEffect)(function(){me&&me.setOption("mode",Ee)},[me,Ee]),Object(K.useEffect)(function(){me&&((ke!==me.getValue()||ke==="")&&setTimeout(function(){me.setValue(ke||" ")},300))},[me,ke]),Object(K.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},Pe));S(Q)}},[be.current,me]),L.a.createElement("div",{className:"my-codemirror-container"},L.a.createElement("textarea",{ref:be}))}},"7ixt":function(Oe,xe,h){"use strict";h.d(xe,"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,xe,h){Oe.exports=h.p+"static/empty2.dd73f390.png"},"8/bI":function(Oe,xe,h){Oe.exports=h.p+"static/empty.8918e228.png"},"8EBN":function(Oe,xe,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 E=0;E<I.modeInfo.length;E++){var ie=I.modeInfo[E];if(ie.mime==X)return ie;if(ie.mimes){for(var A=0;A<ie.mimes.length;A++)if(ie.mimes[A]==X)return ie}}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 E=0;E<I.modeInfo.length;E++){var ie=I.modeInfo[E];if(ie.ext){for(var A=0;A<ie.ext.length;A++)if(ie.ext[A]==X)return ie}}},I.findModeByFileName=function(X){for(var E=0;E<I.modeInfo.length;E++){var ie=I.modeInfo[E];if(ie.file&&ie.file.test(X))return ie}var A=X.lastIndexOf("."),R=A>-1&&X.substring(A+1,X.length);if(R)return I.findModeByExtension(R)},I.findModeByName=function(X){X=X.toLowerCase();for(var E=0;E<I.modeInfo.length;E++){var ie=I.modeInfo[E];if(ie.name.toLowerCase()==X)return ie;if(ie.alias){for(var A=0;A<ie.alias.length;A++)if(ie.alias[A].toLowerCase()==X)return ie}}}})},"8hTe":function(Oe,xe,h){Oe.exports={button:"button___1wy9m"}},"9Bee":function(Oe,xe,h){"use strict";var I=h("DYRE"),de=h("zeV3"),re=h("+L6B"),X=h("2/Rp"),E=h("k1fw"),ie=h("9og8"),A=h("tJVT"),R=h("WmNS"),F=h.n(R),K=h("q1tI"),L=h.n(K),T=h("vg9a"),se=h("DlQD"),q=h.n(se),G=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(A.a)(c,1),Ve=Y[0];return Ve.length>=u.length?m.slice(u.length):m}).join(`
|
|
`)}var j=[],w=["<ul>"],le=new q.a.Renderer,Me=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){j.length=0,w=["<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 Ke(){return ke(j,0,0,w),w.push("</ul>"),w.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(),Ve=m;m=Y,_[Y]={type:"block",expression:Ve}}return{type:"code",raw:u,lang:c,text:m}}}},Ce=/(?:\${2})([^\n`]+?)(?:\${2})/gi,Pe=0,be=function(){return"__special_katext_id_".concat(Pe++,"__")},_={};function Ae(){return _}function me(){Pe=0,_={}}function S(d){return d=d.replace(Ce,function(r,a){var u=be();return _[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 V=le.tablecell;le.tablecell=function(d,r){return V(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(G.escape)(d,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(a?d:Object(G.escape)(d,!0))+"</code></pre>"},le.heading=function(d,r,a){var u=this.options.headerPrefix+a.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return j.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 Fe=function(d,r){return(Fe=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}Fe(d,r),d.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}function Ne(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 Ve(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,Ve)}ve((u=u.apply(d,r||[])).next())})}function We(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:Ve(0),throw:Ve(1),return:Ve(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function Ve(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,Ve=c.length;Y<Ve;Y++,m++)u[m]=c[Y];return u}var N=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],Ve=c[1];r.setAttribute(Y,Ve)}},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,Ve){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(Ve),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 Ve=document.createElementNS("http://www.w3.org/2000/svg","svg");Ve.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ve.setAttribute("width",a.width.baseVal.valueAsString),Ve.setAttribute("height",a.height.baseVal.valueAsString),Ve.setAttribute("viewBox","0 0 "+a.viewBox.baseVal.width.toString()+" "+a.viewBox.baseVal.height.toString()),Ve.innerHTML=a.innerHTML,m.naturalSize===!0?(Ve.width.baseVal.value=r.naturalWidth,Ve.height.baseVal.value=r.naturalHeight):m.width!==void 0&&m.height!==void 0&&(Ve.width.baseVal.value=m.width,Ve.height.baseVal.value=m.height),Y.width=Ve.width.baseVal.value,Y.height=Ve.height.baseVal.value;var ve=Ve.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 wt=new Blob([ve],{type:"image/svg+xml"}),kt=Qe.createObjectURL(wt);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 At("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new At("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new At("@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}(),At=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 At("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new At("."+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 At("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new At("."+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 Ve=document.createElement("div");Ve.className=m.toolboxButtonStyleClass.name+" "+((Y=m.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Y!==void 0?Y:m.toolboxButtonStyleColorsClass.name),Ve.innerHTML=c.icon,Ve.title=c.title,Ve.addEventListener("click",function(){m.panelButtonClick(c)}),m.panelButtons.push(Ve),m.buttonRow.appendChild(Ve)}),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 Ve,ve;c.className=a.toolboxButtonStyleClass.name+" "+(Y===u?""+((Ve=a.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ve!==void 0?Ve: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 Ve=document.createElement("div");return Ve.style.display="inline-block",Ve.style.width=c-2+"px",Ve.style.height=c-2+"px",Ve.style.backgroundColor=a,Ve.style.borderRadius=c/2+"px",a==="transparent"&&(Ve.style.fill=this.uiStyleSettings.toolboxAccentColor,Ve.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(Ve),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),Ge=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}(),Wt=function(){function d(){this.GRIP_SIZE=10,this.visual=N.createGroup(),this.visual.appendChild(N.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(N.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(N.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=N.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=N.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=N.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=N.createGroup();var a=N.createTransform();a.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(a),this.container.appendChild(this.controlBox),this.controlRect=N.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=N.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 Wt;return a.visual.transform.baseVal.appendItem(N.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,Ve=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,Ve),this.positionGrip(this.controlGrips.bottomCenter.visual,c,Ve),this.positionGrip(this.controlGrips.bottomRight.visual,ve,Ve),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}(Ge),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=N.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),N.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&&N.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(a),this.stateChanged()},r.prototype.setFillColor=function(a){this.fillColor=a,this.visual&&N.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},r.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.visual&&N.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},r.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.visual&&N.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 Ve=document.createElement("div");Ve.style.minHeight="20px",Ve.style.flexGrow="2",Ve.style.display="flex",Ve.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",Ve.appendChild(ve),c.appendChild(Ve),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 Ve=`<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=Ve,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=N.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 Wt;return a.visual.transform.baseVal.appendItem(N.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}(Ge),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=N.createGroup(),this.selectorLine=N.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=N.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()),N.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),N.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),N.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 Ve=document.createElement("div");Ve.style.whiteSpace="nowrap",Ve.style.overflow="hidden",Ve.style.textOverflow="ellipsis",Ve.innerHTML="The quick brown fox jumps over the lazy dog",Y.appendChild(Ve),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=N.createGroup(),this.bgRectangle=N.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=N.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(N.createTransform()),this.textElement.transform.baseVal.appendItem(N.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(N.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&&(N.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),N.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&&N.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&&N.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),ne=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=N.createGroup(),this.drawingImage=N.createImage(),this.visual.appendChild(this.drawingImage);var a=N.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),N.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),N.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],Ve=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>Ve&&(Ve=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=(Ve-c)/this.pixelRatio;var Et=document.createElement("canvas");Et.width=Y-m,Et.height=Ve-c,Et.getContext("2d").putImageData(this.canvasContext.getImageData(m,c,Y-m,Ve-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(){N.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),N.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(Ve){var ve="both";switch(Ve){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 wt=document.createElement("hr");if(wt.style.minWidth="20px",wt.style.border="0px",wt.style.borderTop="3px solid "+(c.uiStyleSettings!==void 0?c.uiStyleSettings.toolboxColor:"#eeeeee"),wt.style.flexGrow="2",Et.appendChild(wt),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),$=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=N.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(N.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=N.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(N.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",N.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),N.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),C=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&&N.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}(C),B='<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,B),c.bgColorPanel.onColorChanged=c.setBgColor,c.fontFamilyPanel=new Le("Font",m.defaultFontFamilies,m.defaultFontFamily),c.fontFamilyPanel.onFontChanged=c.setFont,c.tipGrip=new Wt,c.tipGrip.visual.transform.baseVal.appendItem(N.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(){N.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=N.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&&(N.setAttributes(this.bgRectangle,[["fill",a]]),N.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(){N.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,B),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=N.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),N.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&&N.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(a),this.stateChanged()},r.prototype.setFillColor=function(a){this.fillColor=a,this.visual&&N.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(a),this.stateChanged()},r.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.visual&&N.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},r.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.visual&&N.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},r.prototype.setOpacity=function(a){this.opacity=a,this.visual&&N.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=N.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(N.createTransform()),this.visual.appendChild(this.tip1),this.tip2=N.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(N.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&&(N.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()]]),N.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),jt=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}(),je=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=N.createGroup(),this.selectorCurve=N.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=N.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()),N.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),N.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),N.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},r.prototype.setupControlBox=function(){d.prototype.setupControlBox.call(this),this.curveControlLine1=N.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=N.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}(),Gt=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,ne,$,Xe,jt,Se,O,ge,Ye,C,ht,je]},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[xt,ne,$,Xe,Se,O,ge]},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"BASIC_MARKER_TYPES",{get:function(){return[xt,ne,$,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 Ne(this,void 0,void 0,function(){var r;return We(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=N.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 Ve=new et(r,void 0,!0);Y(Ve),Ve.defaultPrevented&&(a=!0)}),!a)){this.setCurrentMarker();for(var u=function(Y){var Ve=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,Ve))})},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 Ne(this,void 0,void 0,function(){var r,a,u=this;return We(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=N.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 ne&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ne):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 Ft(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 Ve(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,Ve)}ve((u=u.apply(d,r||[])).next())})}function Gn(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:Ve(0),throw:Ve(1),return:Ve(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function Ve(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],Ve=c[1];r.setAttribute(Y,Ve)}},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,Ve){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(Ve),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,Ve,ve){return"M"+r+","+a+"V"+(a+m)+"H"+(r+u)+"V"+a+"H"+c+"V"+Y+"H"+(c+Ve)+"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}(),ji=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}(ji),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}(ji),Bi=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 Bi(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 Ve=It.createDefs();Y.appendChild(Ve);var ve=It.createElement("clipPath",[["id","text-bg-clip"]]);Ve.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 wt=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(wt),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}(),Pn=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}(),An=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 Ve=a.y+u*(Y+1);It.setAttributes(c,[["x1",""+a.x],["y1",""+Ve],["x2",""+(a.x+a.width)],["y2",""+Ve]])});var m=a.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(c,Y){var Ve=a.x+m*(Y+1);It.setAttributes(c,[["x1",""+Ve],["y1",""+a.y],["x2",""+Ve],["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 Ve=u/r,ve=m/a;return{x:(c.x-Y)*Ve+Y,y:(c.y-Y)*ve+Y,width:c.width*Ve,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,Ve){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,wt=1;ve.naturalSize===!0?(Et=a.naturalWidth/(r.width.baseVal.value-2*m)/Y,wt=a.naturalHeight/(r.height.baseVal.value-2*m)/Ve,Qe.width=a.naturalWidth/Y,Qe.height=a.naturalHeight/Ve):ve.width!==void 0&&ve.height!==void 0&&(Et=ve.width/u.width,wt=ve.height/u.height,Qe.width*=Et,Qe.height*=wt);var kt=Qe.getContext("2d");kt.translate(Qe.width/2,Qe.height/2),kt.rotate(c*Math.PI/180),kt.scale(Y,Ve),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*wt,nn.getContext("2d").putImageData(kt.getImageData((u.x-m)*Et,(u.y-m)*wt,u.width*Et,u.height*wt),0,0),Lt(nn.toDataURL(ve.imageType,ve.imageQuality))})},d}(),Be=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 An(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(wt){var kt=new cn(Li.getIcon(wt.horizontal,wt.vertical),wt.horizontal===0&&wt.vertical===0?"FREE":wt.horizontal+":"+wt.vertical);kt.onClick=function(){return r.ratioButtonClicked(wt)},u.push(kt)}),this.aspectRatioButton=new Pn(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 Ve=document.createElement("div");Ve.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>',Ve.appendChild(ve),Y.addElement(Ve)}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 Ve=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");Ve.onClick=this.flipHorizontallyButtonClicked,Y.addButton(Ve);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 Bi(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 Ft(this,void 0,void 0,function(){var r,a;return Gn(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 Ft(this,void 0,void 0,function(){var r;return Gn(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}(),Pt=h("8hTe"),Jn=h.n(Pt),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=xe.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,Ve=d.showLines,ve=d.replaces,Lt=d.zoomImg,Qe=d.hasMask,Et=d.style,wt=Et===void 0?{}:Et,kt=d.stylesPrev,nn=kt===void 0?{}:kt,mn=String(a),$t=Object(K.useRef)(),_i=Object(K.useRef)(),hi=Object(K.useState)(""),Ai=Object(A.a)(hi,2),Ii=Ai[0],wi=Ai[1],lo=Object(K.useState)("office"),qi=Object(A.a)(lo,2),go=qi[0],$i=qi[1],lr=function(){var Mn=new Be(_i.current);Mn.displayMode="popup",Mn.addRenderEventListener(function(){var ri=Object(ie.a)(F.a.mark(function kn(yi){var Un;return F.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(_i.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 Gt(_i.current);Mn.settings.displayMode="popup",Mn.addEventListener("render",function(){var ri=Object(ie.a)(F.a.mark(function kn(yi){var Un;return F.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if($t.current.style.display="none",!_i.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(_i.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},Ki=Object(K.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=Ae();if(mn.match(/\[TOC\]/)&&(kn=kn.replace("<p>[TOC]</p>",Ke()),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(K.useRef)();we.WebkitLineClamp=Ve,Ve&&(wt=Object(E.a)(Object(E.a)({},wt),we));function Oo(ei){var Mn=ei.target;if(Mn.tagName.toUpperCase()==="IMG"){if(Lt){var ri=Mn.getAttribute("src");wi(ri),$i("image")}}else if(Mn.tagName.toUpperCase()==="A"){var kn=Mn.getAttribute("href");if(kn.indexOf("office")>-1)ei.preventDefault(),wi(kn),$i("office");else if(kn.indexOf("application/pdf")>-1)ei.preventDefault(),wi(kn),$i("pdf");else if(kn.indexOf("type=text")>-1)ei.preventDefault(),wi(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(K.useEffect)(function(){if(li.current&&Ki&&(Ki.match(Yn)&&window.PR.prettyPrint()),li.current)return li.current.addEventListener("click",Oo),function(){li.current.removeEventListener("click",Oo),me(),Je()}},[Ki,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",_i.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(E.a)({},wt),className:"".concat(c||""," markdown-body ").concat(Jn.a.mdBody),onMouseOver:Jo,dangerouslySetInnerHTML:{__html:Ki}}),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:_i,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(E.a)({},nn),onClose:function(){return wi("")}}))}},"9VGf":function(Oe,xe,h){"use strict";h.d(xe,"a",function(){return re});var I=h("q1tI"),de=h.n(I);function re(X,E){var ie=Object(I.useRef)();Object(I.useEffect)(function(){ie.current=X}),Object(I.useEffect)(function(){function A(){ie.current()}if(E!==null){var R=setInterval(A,E);return function(){return clearInterval(R)}}},[E])}},"9ZNV":function(Oe,xe,h){"use strict";h.d(xe,"a",function(){return K});var I=h("0Owb"),de=h("+L6B"),re=h("2/Rp"),X=h("q1tI"),E=h.n(X),ie=h("UUDw"),A=h.n(ie),R=h("TSYQ"),F=h.n(R),K=function(T){var se=T.cancelText,q=se===void 0?"\u53D6\u6D88":se,G=T.okText,D=G===void 0?"\u786E\u5B9A":G,j=T.loading,w=j===void 0?!1:j,le=T.hasOkBtn,Me=le===void 0?!0:le,Je=T.okButtonProps,we=Je===void 0?{}:Je,ke=T.onCancel,Ke=ke===void 0?function(){}:ke,Ee=T.onOk,Ce=Ee===void 0?function(){}:Ee,Pe=T.className,be=Pe===void 0?"":Pe;return E.a.createElement("div",{className:F()(A.a.buttonFixed,be)},E.a.createElement("div",{className:A.a.buttonWrap},E.a.createElement(re.a,{size:"large",className:"".concat(A.a.button," mr20"),onClick:Ke},q),Me&&E.a.createElement(re.a,Object(I.a)({size:"large",type:"primary",className:"".concat(A.a.button," mr20"),loading:w,onClick:Ce},we),D)))}},"A/g1":function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3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KDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},Bd2K:function(Oe,xe,h){(function(I){I(h("VrN/"),h("osHv"))})(function(I){I.defineOption("autoCloseTags",!1,function(F,K,L){if(L!=I.Init&&L&&F.removeKeyMap("autoCloseTags"),!K)return;var T={name:"autoCloseTags"};(typeof K!="object"||K.whenClosing!==!1)&&(T["'/'"]=function(se){return ie(se)}),(typeof K!="object"||K.whenOpening!==!1)&&(T["'>'"]=function(se){return X(se)}),F.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(F){if(F.getOption("disableInput"))return I.Pass;for(var K=F.listSelections(),L=[],T=F.getOption("autoCloseTags"),se=0;se<K.length;se++){if(!K[se].empty())return I.Pass;var q=K[se].head,G=F.getTokenAt(q),D=I.innerMode(F.getMode(),G.state),j=D.state,w=D.mode.xmlCurrentTag&&D.mode.xmlCurrentTag(j),le=w&&w.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;G.end>q.ch&&(le=le.slice(0,le.length-G.end+q.ch));var ke=le.toLowerCase();if(!le||G.type=="string"&&(G.end!=q.ch||!/[\"\']/.test(G.string.charAt(G.string.length-1))||G.string.length==1)||G.type=="tag"&&w.close||G.string.indexOf("/")==q.ch-G.start-1||Je&&A(Je,ke)>-1||R(F,D.mode.xmlCurrentContext&&D.mode.xmlCurrentContext(j)||[],le,q,!0))return I.Pass;var Ke=typeof T=="object"&&T.emptyTags;if(Ke&&A(Ke,le)>-1){L[se]={text:"/>",newPos:I.Pos(q.line,q.ch+2)};continue}var Ee=we&&A(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=K.length-1;se>=0;se--){var Pe=L[se];F.replaceRange(Pe.text,K[se].head,K[se].anchor,"+insert");var be=F.listSelections().slice(0);be[se]={head:Pe.newPos,anchor:Pe.newPos},F.setSelections(be),!Ce&&Pe.indent&&(F.indentLine(Pe.newPos.line,null,!0),F.indentLine(Pe.newPos.line+1,null,!0))}}function E(F,K){for(var L=F.listSelections(),T=[],se=K?"/":"</",q=F.getOption("autoCloseTags"),G=typeof q=="object"&&q.dontIndentOnSlash,D=0;D<L.length;D++){if(!L[D].empty())return I.Pass;var j=L[D].head,w=F.getTokenAt(j),le=I.innerMode(F.getMode(),w.state),Me=le.state;if(K&&(w.type=="string"||w.string.charAt(0)!="<"||w.start!=j.ch-1))return I.Pass;var Je,we=le.mode.name!="xml"&&F.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(F,ke,ke[ke.length-1],j))return I.Pass;Je=se+ke[ke.length-1]}F.getLine(j.line).charAt(w.end)!=">"&&(Je+=">"),T[D]=Je}if(F.replaceSelections(T),L=F.listSelections(),!G)for(var D=0;D<L.length;D++)(D==L.length-1||L[D].head.line<L[D+1].head.line)&&F.indentLine(L[D].head.line)}function ie(F){return F.getOption("disableInput")?I.Pass:E(F,!0)}I.commands.closeTag=function(F){return E(F)};function A(F,K){if(F.indexOf)return F.indexOf(K);for(var L=0,T=F.length;L<T;++L)if(F[L]==K)return L;return-1}function R(F,K,L,T,se){if(!I.scanForClosingTag)return!1;var q=Math.min(F.lastLine()+1,T.line+500),G=I.scanForClosingTag(F,T,null,q);if(!G||G.tag!=L)return!1;for(var D=se?1:0,j=K.length-1;j>=0&&K[j]==L;j--)++D;T=G.to;for(var j=1;j<D;j++){var w=I.scanForClosingTag(F,T,null,q);if(!w||w.tag!=L)return!1;T=w.to}return!0}})},BjJ7:function(Oe,xe,h){"use strict";h.d(xe,"d",function(){return de}),h.d(xe,"c",function(){return re}),h.d(xe,"e",function(){return X}),h.d(xe,"b",function(){return E}),h.d(xe,"a",function(){return A});var I=h("m3rI");function de(R){var F=!0;if(R.length>0){for(var K=0;K<R.length;K++)if(R[K].compile_success==0||!R[K].compile_success){F=!1;break}}else F=!1;return F}function re(R){for(var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",K=[],L=0;L<R.length;L++){var T=R[L],se=F?"".concat(F,"/").concat(T.name):"".concat(T.name);K.push({title:T.name,isLeaf:!(T.type==="tree"),key:se})}return K}function X(R,F,K){for(var L=0;L<R.length;L++){var T=R[L];if(T.key===F){T.children=K;break}T.children&&X(T.children,F,K)}return R}function E(R,F,K){var L;return function(){var T=this,se=arguments,q=function(){L=null,K||R.apply(T,se)},G=K&&!L;clearTimeout(L),L=setTimeout(q,F),G&&R.apply(T,se)}}var ie=!0,A=I.a.API_SERVER},"C+DQ":function(Oe,xe,h){},C6hP:function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAS4AAAA+CAYAAACV4fZsAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4lMUWPVuzISwETUKPNEFCF+lI710EpHekSO+d0HvvKIKIiCCCRvEBAgGpSpGSIFLEAIoJhMASsmy2vO9c3q4JBIIoCY/M/T6+Dcn+/86cf+bMvefemdUgGXO5XJrk3qP+rhBQCCgE/k0ENBqN63H3S5KUkiKr8ePHJ/nesLAwRWz/5hNT91IIpAEEChUqlCQxjRs37qHfJ0ViD5FOQtIiWbmJKSoqSt5rsVjk1Wq1KsJKAwNMdVEh8CwRMJlMQlRms1le/f395ZXElpDEHiSvROTjJi03YZGsSFQkqcDAQE1cXJzm3r17co3NZlPE9SyfqLq3QiANIGA0GoWovLy8XN7e3q6IiAgXyYxERhJLSGAJyctDPg+S1sWLF7UkLH9/f63FYuHPWl9fX43dbpd/aQBT1UWFgEIgBRDQ6/Uu/ouJiSFpOc1mszMqKspJAsuTJ48zKfISAkqKtAICArSRkZE6s9lM4tJZrVadj4+PxuFwaJxOp7ymQJ/URygEFAIvMAI6nc6l1WpdfI2NjSVxOcxms8NisTgDAgIckZGRzqTIKxFxtWjRQktPy01aer1eHxsb62116DoCruYACgCa9C8wjqprCgGFQKog4LoD4Cyg2WjSOVb7+PjE2e12e0Ly2rBhg5NNY8joIS7qWqGhodqoqCityWQiZ+ktVmtOmw2fAiiSKn1RH6oQUAikRQROGY1oZTaZLpO8rFar3d/f31mlShUnBftExOX2tsxmsw6A/vr16z5Wh26HIq20OG5UnxUCqY7AKZPOUdPPzy8WgN1isTgYMtLrEuJy61skrvDwcB29LQCGW3ftPQBMS/XmqwYoBBQCaRWB4RnT6ZcBiKfXFRQU5PCEiyQud5jo7e2ti4iIMAAw3nPqtgOakmkVMdVvhYBCILURcB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dtfcA8Nfh36nTcvWpCgGFQNpFYHjGdPplAOKtVqs9KCjIsWHDBifh4NFQ3A+nIXFdvHhRazab+XXO+uvXr/tYHbodAP762pO0C6DquUJAIZCyCJwy6Rw1/fz8eJ623WKxOPLkyeMkcWk0GpeHuJhZZLgYFRWlpddFs1itOW028PvMFXml7ENTn6YQSMsInDIa0cpsMl222+12elv+/v5OT5iYkLjc4SK9roCAAG1kZKSO5BUbG+ttdeg6Aq7mPOBUCfZpeTypvisEnhUCLn77y1lAs9Gkc6z28fGJI2kFBAQjAAKYAAABW0lEQVQ4IiMjnW5vS8LEB4mLXldYWJgmIXmZzWatxWLRWa1WnY+Pj8bhcGicTqe8PqsuqPsqBBQCaQMBnU7n0mq1Lr7Gxsa6TCaTw2w2OywWizMhaRUqVMjFbGIi4nLrXHxNSF5Wq1Xj7+9P4tJarVatr6+vxm63y7+0AavqpUJAIfCsEdDr9S7+i4mJIXE5zWazMyoqymkymVz0tB4kLY84724YRfqE5BUVFaWxWCwaElhgYKAmLi5Oc+/ePXmPzWZT5PWsn6i6v0LgBUfAaDSKF+Xl5eXy9vZ2RUREkLxcZrPZ5e/v70qKtB4iroSeV0IC488kMb6SyPhKMnvBMVXdUwgoBJ4xAiQpfgSJiq8kK74mJCx3eJiwKUmSj9vzSvhGhpBJ9YGa2DPum7q9QkAh8IIhQGJKqktuHSsRSWk0D703WdJJisReMAxVdxQCCoHnDAFmDh/XpP8CGmr69Rx3DAoAAAAASUVORK5CYII="},D1Df:function(Oe,xe,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 V in ue)Object.prototype.hasOwnProperty.call(ue,V)&&(S[V]=ue[V])}return S},de.apply(this,arguments)}function re(S,Q){var ue=Object.keys(S);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(S);Q&&(V=V.filter(function(De){return Object.getOwnPropertyDescriptor(S,De).enumerable})),ue.push.apply(ue,V)}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(V){G(S,V,ue[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(ue)):re(ue).forEach(function(V){Object.defineProperty(S,V,Object.getOwnPropertyDescriptor(ue,V))})}return S}function E(S,Q){if(S==null)return{};var ue=ie(S,Q),V,De;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(S);for(De=0;De<M.length;De++){if(V=M[De],Q.indexOf(V)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(S,V))continue;ue[V]=S[V]}}return ue}function ie(S,Q){if(S==null)return{};var ue={},V=Object.keys(S),De,M;for(M=0;M<V.length;M++){if(De=V[M],Q.indexOf(De)>=0)continue;ue[De]=S[De]}return ue}function A(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 V=Q[ue];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(S,V.key,V)}}function F(S,Q,ue){return Q&&R(S.prototype,Q),ue&&R(S,ue),S}function K(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(V,De){return V.__proto__=De,V},q(S,Q)}function G(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"),j=h("17x9"),w=h("H38U"),le=h("aRTE");function Me(S){for(var Q="",ue=0;ue<S.length;ue++){var V=S.charCodeAt(ue);V<128?Q+=String.fromCharCode(V):V<2048?(Q+=String.fromCharCode(192|V>>6),Q+=String.fromCharCode(128|V&63)):V<55296||V>=57344?(Q+=String.fromCharCode(224|V>>12),Q+=String.fromCharCode(128|V>>6&63),Q+=String.fromCharCode(128|V&63)):(ue++,V=65536+((V&1023)<<10|S.charCodeAt(ue)&1023),Q+=String.fromCharCode(240|V>>18),Q+=String.fromCharCode(128|V>>12&63),Q+=String.fromCharCode(128|V>>6&63),Q+=String.fromCharCode(128|V&63))}return Q}var Je={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},we={},ke=4,Ke=.1;function Ee(S){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ue=[];return S.forEach(function(V,De){var M=null;V.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===V.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,V){return V<Q.y||V>=Q.y+Q.h?ue:ue.map(function(De,M){return M<Q.x||M>=Q.x+Q.w?De:!1})})}function Pe(S,Q){var ue=S.imageSettings,V=S.size,De=S.includeMargin;if(ue==null)return null;var M=De?ke:0,v=Q.length+M*2,ce=Math.floor(V*Ke),Ue=v/V,Re=(ue.width||ce)*Ue,qe=(ue.height||ce)*Ue,dt=ue.x==null?Q.length/2-Re/2:ue.x*Ue,Fe=ue.y==null?Q.length/2-qe/2:ue.y*Ue,ze=null;if(ue.excavate){var Ne=Math.floor(dt),We=Math.floor(Fe),he=Math.ceil(Re+dt-Ne),N=Math.ceil(qe+Fe-We);ze={x:Ne,y:We,w:he,h:N}}return{x:dt,y:Fe,h:qe,w:Re,excavation:ze}}var be=function(){try{new Path2D().addPath(new Path2D)}catch(S){return!1}return!0}(),_=function(S){se(Q,S);function Q(){var ue,V;A(this,Q);for(var De=arguments.length,M=new Array(De),v=0;v<De;v++)M[v]=arguments[v];return V=K(this,(ue=L(Q)).call.apply(ue,[this].concat(M))),G(T(V),"_canvas",void 0),G(T(V),"_image",void 0),G(T(V),"state",{imgLoaded:!1}),G(T(V),"handleImageLoad",function(){V.setState({imgLoaded:!0})}),V}return F(Q,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var V=this.props,De=V.value,M=V.size,v=V.level,ce=V.bgColor,Ue=V.fgColor,Re=V.includeMargin,qe=V.imageSettings,dt=new w(-1,le[v]);if(dt.addData(Me(De)),dt.make(),this._canvas!=null){var Fe=this._canvas,ze=Fe.getContext("2d");if(!ze)return;var Ne=dt.modules;if(Ne===null)return;var We=Re?ke:0,he=Ne.length+We*2,N=Pe(this.props,Ne);qe!=null&&N!=null&&(N.excavation!=null&&(Ne=Ce(Ne,N.excavation)));var nt=window.devicePixelRatio||1;Fe.height=Fe.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(Ne,We))):Ne.forEach(function(Ut,ft){Ut.forEach(function(At,He){At&&ze.fillRect(He+We,ft+We,1,1)})}),this.state.imgLoaded&&this._image&&N!=null&&ze.drawImage(this._image,N.x+We,N.y+We,N.w,N.h)}}},{key:"render",value:function(){var V=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,Fe=De.imageSettings,ze=E(De,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),Ne=X({height:v,width:v},qe),We=null,he=Fe&&Fe.src;return Fe!=null&&he!=null&&(We=D.createElement("img",{src:he,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(nt){return V._image=nt}})),D.createElement(D.Fragment,null,D.createElement("canvas",de({style:Ne,height:v,width:v,ref:function(nt){return V._canvas=nt}},ze)),We)}}]),Q}(D.PureComponent);G(_,"defaultProps",Je);var Ae=function(S){se(Q,S);function Q(){return A(this,Q),K(this,L(Q).apply(this,arguments))}return F(Q,[{key:"render",value:function(){var V=this.props,De=V.value,M=V.size,v=V.level,ce=V.bgColor,Ue=V.fgColor,Re=V.includeMargin,qe=V.imageSettings,dt=E(V,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),Fe=new w(-1,le[v]);Fe.addData(Me(De)),Fe.make();var ze=Fe.modules;if(ze===null)return null;var Ne=Re?ke:0,We=ze.length+Ne*2,he=Pe(this.props,ze),N=null;qe!=null&&he!=null&&(he.excavation!=null&&(ze=Ce(ze,he.excavation)),N=D.createElement("image",{xlinkHref:qe.src,height:he.h,width:he.w,x:he.x+Ne,y:he.y+Ne,preserveAspectRatio:"none"}));var nt=Ee(ze,Ne);return D.createElement("svg",de({shapeRendering:"crispEdges",height:M,width:M,viewBox:"0 0 ".concat(We," ").concat(We)},dt),D.createElement("path",{fill:ce,d:"M0,0 h".concat(We,"v").concat(We,"H0z")}),D.createElement("path",{fill:Ue,d:nt}),N)}}]),Q}(D.PureComponent);G(Ae,"defaultProps",Je);var me=function(Q){var ue=Q.renderAs,V=E(Q,["renderAs"]),De=ue==="svg"?Ae:_;return D.createElement(De,V)};me.defaultProps=X({renderAs:"canvas"},Je),Oe.exports=me},DlQD:function(Oe,xe,h){(function(I,de){Oe.exports=de()})(this,function(){"use strict";function I(ne,Z){for(var $=0;$<Z.length;$++){var C=Z[$];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(ne,C.key,C)}}function de(ne,Z,$){return Z&&I(ne.prototype,Z),$&&I(ne,$),ne}function re(ne,Z){if(!ne)return;if(typeof ne=="string")return X(ne,Z);var $=Object.prototype.toString.call(ne).slice(8,-1);if($==="Object"&&ne.constructor&&($=ne.constructor.name),$==="Map"||$==="Set")return Array.from(ne);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return X(ne,Z)}function X(ne,Z){(Z==null||Z>ne.length)&&(Z=ne.length);for(var $=0,C=new Array(Z);$<Z;$++)C[$]=ne[$];return C}function E(ne,Z){var $;if(typeof Symbol=="undefined"||ne[Symbol.iterator]==null){if(Array.isArray(ne)||($=re(ne))||Z&&ne&&typeof ne.length=="number"){$&&(ne=$);var C=0;return function(){return C>=ne.length?{done:!0}:{done:!1,value:ne[C++]}}}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 $=ne[Symbol.iterator](),$.next.bind($)}function ie(ne,Z){return Z={exports:{}},ne(Z,Z.exports),Z.exports}var A=ie(function(ne){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 $(C){ne.exports.defaults=C}ne.exports={defaults:Z(),getDefaults:Z,changeDefaults:$}}),R=A.defaults,F=A.getDefaults,K=A.changeDefaults,L=/[&<>"']/,T=/[&<>"']/g,se=/[<>"']|&(?!#?\w+;)/,q=/[<>"']|&(?!#?\w+;)/g,G={"&":"&","<":"<",">":">",'"':""","'":"'"},D=function(Z){return G[Z]};function j(ne,Z){if(Z){if(L.test(ne))return ne.replace(T,D)}else if(se.test(ne))return ne.replace(q,D);return ne}var w=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function le(ne){return ne.replace(w,function(Z,$){return $=$.toLowerCase(),$==="colon"?":":$.charAt(0)==="#"?$.charAt(1)==="x"?String.fromCharCode(parseInt($.substring(2),16)):String.fromCharCode(+$.substring(1)):""})}var Me=/(^|[^\[])\^/g;function Je(ne,Z){ne=ne.source||ne,Z=Z||"";var $={replace:function(x,O){return O=O.source||O,O=O.replace(Me,"$1"),ne=ne.replace(x,O),$},getRegex:function(){return new RegExp(ne,Z)}};return $}var we=/[^\w:]/g,ke=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ke(ne,Z,$){if(ne){var C;try{C=decodeURIComponent(le($)).replace(we,"").toLowerCase()}catch(x){return null}if(C.indexOf("javascript:")===0||C.indexOf("vbscript:")===0||C.indexOf("data:")===0)return null}Z&&!ke.test($)&&($=_(Z,$));try{$=encodeURI($).replace(/%25/g,"%")}catch(x){return null}return $}var Ee={},Ce=/^[^:]+:\/*[^/]*$/,Pe=/^([^:]+:)[\s\S]*$/,be=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(ne,Z){Ee[" "+ne]||(Ce.test(ne)?Ee[" "+ne]=ne+"/":Ee[" "+ne]=Q(ne,"/",!0)),ne=Ee[" "+ne];var $=ne.indexOf(":")===-1;return Z.substring(0,2)==="//"?$?Z:ne.replace(Pe,"$1")+Z:Z.charAt(0)==="/"?$?Z:ne.replace(be,"$1")+Z:ne+Z}var Ae={exec:function(){}};function me(ne){for(var Z=1,$,C;Z<arguments.length;Z++){$=arguments[Z];for(C in $)Object.prototype.hasOwnProperty.call($,C)&&(ne[C]=$[C])}return ne}function S(ne,Z){var $=ne.replace(/\|/g,function(O,B,ge){for(var Se=!1,Ye=B;--Ye>=0&&ge[Ye]==="\\";)Se=!Se;return Se?"|":" |"}),C=$.split(/ \|/),x=0;if(C.length>Z)C.splice(Z);else for(;C.length<Z;)C.push("");for(;x<C.length;x++)C[x]=C[x].trim().replace(/\\\|/g,"|");return C}function Q(ne,Z,$){var C=ne.length;if(C===0)return"";for(var x=0;x<C;){var O=ne.charAt(C-x-1);if(O===Z&&!$)x++;else if(O!==Z&&$)x++;else break}return ne.substr(0,C-x)}function ue(ne,Z){if(ne.indexOf(Z[1])===-1)return-1;for(var $=ne.length,C=0,x=0;x<$;x++)if(ne[x]==="\\")x++;else if(ne[x]===Z[0])C++;else if(ne[x]===Z[1]&&(C--,C<0))return x;return-1}function V(ne){ne&&ne.sanitize&&!ne.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:j,unescape:le,edit:Je,cleanUrl:Ke,resolveUrl:_,noopTest:Ae,merge:me,splitCells:S,rtrim:Q,findClosingBracket:ue,checkSanitizeDeprecation:V},M=A.defaults,v=De.rtrim,ce=De.splitCells,Ue=De.escape,Re=De.findClosingBracket;function qe(ne,Z,$){var C=Z.href,x=Z.title?Ue(Z.title):null,O=ne[1].replace(/\\([\[\]])/g,"$1");return ne[0].charAt(0)!=="!"?{type:"link",raw:$,href:C,title:x,text:O}:{type:"image",raw:$,href:C,title:x,text:Ue(O)}}function dt(ne,Z){var $=ne.match(/^(\s+)(?:```)/);if($===null)return Z;var C=$[1];return Z.split(`
|
|
`).map(function(x){var O=x.match(/^\s+/);if(O===null)return x;var B=O[0];return B.length>=C.length?x.slice(C.length):x}).join(`
|
|
`)}var Fe=function(){function ne($){this.options=$||M}var Z=ne.prototype;return Z.space=function(C){var x=this.rules.block.newline.exec(C);if(x)return x[0].length>1?{type:"space",raw:x[0]}:{raw:`
|
|
`}},Z.code=function(C,x){var O=this.rules.block.code.exec(C);if(O){var B=x[x.length-1];if(B&&B.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(C){var x=this.rules.block.fences.exec(C);if(x){var O=x[0],B=dt(O,x[3]||"");return{type:"code",raw:O,lang:x[2]?x[2].trim():x[2],text:B}}},Z.heading=function(C){var x=this.rules.block.heading.exec(C);if(x)return{type:"heading",raw:x[0],depth:x[1].length,text:x[2]}},Z.nptable=function(C){var x=this.rules.block.nptable.exec(C);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 B=O.align.length,ge;for(ge=0;ge<B;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(B=O.cells.length,ge=0;ge<B;ge++)O.cells[ge]=ce(O.cells[ge],O.header.length);return O}}},Z.hr=function(C){var x=this.rules.block.hr.exec(C);if(x)return{type:"hr",raw:x[0]}},Z.blockquote=function(C){var x=this.rules.block.blockquote.exec(C);if(x){var O=x[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:x[0],text:O}}},Z.list=function(C){var x=this.rules.block.list.exec(C);if(x){for(var O=x[0],B=x[2],ge=B.length>1,Se=B[B.length-1]===")",Ye={type:"list",raw:O,ordered:ge,start:ge?+B.slice(0,-1):"",loose:!1,items:[]},jt=x[0].match(this.rules.block.item),zt=!1,je,Ot,Ct,et,Zt,Gt,at,un=jt.length,Ft=0;Ft<un;Ft++)je=jt[Ft],O=je,Ot=je.length,je=je.replace(/^ *([*+-]|\d+[.)]) */,""),~je.indexOf(`
|
|
`)&&(Ot-=je.length,je=this.options.pedantic?je.replace(/^ {1,4}/gm,""):je.replace(new RegExp("^ {1,"+Ot+"}","gm"),"")),Ft!==un-1&&(Ct=this.rules.block.bullet.exec(jt[Ft+1])[0],(ge?Ct.length===1||!Se&&Ct[Ct.length-1]===")":Ct.length>1||this.options.smartLists&&Ct!==B)&&(et=jt.slice(Ft+1).join(`
|
|
`),Ye.raw=Ye.raw.substring(0,Ye.raw.length-et.length),Ft=un-1)),Zt=zt||/\n\n(?!\s*$)/.test(je),Ft!==un-1&&(zt=je.charAt(je.length-1)===`
|
|
`,Zt||(Zt=zt)),Zt&&(Ye.loose=!0),Gt=/^\[[ xX]\] /.test(je),at=void 0,Gt&&(at=je[1]!==" ",je=je.replace(/^\[[ xX]\] +/,"")),Ye.items.push({type:"list_item",raw:O,task:Gt,checked:at,loose:Zt,text:je});return Ye}},Z.html=function(C){var x=this.rules.block.html.exec(C);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(C){var x=this.rules.block.def.exec(C);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(C){var x=this.rules.block.table.exec(C);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 B=O.align.length,ge;for(ge=0;ge<B;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(B=O.cells.length,ge=0;ge<B;ge++)O.cells[ge]=ce(O.cells[ge].replace(/^ *\| *| *\| *$/g,""),O.header.length);return O}}},Z.lheading=function(C){var x=this.rules.block.lheading.exec(C);if(x)return{type:"heading",raw:x[0],depth:x[2].charAt(0)==="="?1:2,text:x[1]}},Z.paragraph=function(C){var x=this.rules.block.paragraph.exec(C);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(C,x){var O=this.rules.block.text.exec(C);if(O){var B=x[x.length-1];return B&&B.type==="text"?{raw:O[0],text:O[0]}:{type:"text",raw:O[0],text:O[0]}}},Z.escape=function(C){var x=this.rules.inline.escape.exec(C);if(x)return{type:"escape",raw:x[0],text:Ue(x[1])}},Z.tag=function(C,x,O){var B=this.rules.inline.tag.exec(C);if(B)return!x&&/^<a /i.test(B[0])?x=!0:x&&/^<\/a>/i.test(B[0])&&(x=!1),!O&&/^<(pre|code|kbd|script)(\s|>)/i.test(B[0])?O=!0:O&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(B[0])&&(O=!1),{type:this.options.sanitize?"text":"html",raw:B[0],inLink:x,inRawBlock:O,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(B[0]):Ue(B[0]):B[0]}},Z.link=function(C){var x=this.rules.inline.link.exec(C);if(x){var O=Re(x[2],"()");if(O>-1){var B=x[0].indexOf("!")===0?5:4,ge=B+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 jt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Se);jt?(Se=jt[1],Ye=jt[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(C,x){var O;if((O=this.rules.inline.reflink.exec(C))||(O=this.rules.inline.nolink.exec(C))){var B=(O[2]||O[1]).replace(/\s+/g," ");if(B=x[B.toLowerCase()],!B||!B.href){var ge=O[0].charAt(0);return{type:"text",raw:ge,text:ge}}var Se=qe(O,B,O[0]);return Se}},Z.strong=function(C,x,O){O===void 0&&(O="");var B=this.rules.inline.strong.start.exec(C);if(B&&(!B[1]||B[1]&&(O===""||this.rules.inline.punctuation.exec(O)))){x=x.slice(-1*C.length);var ge=B[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ge.lastIndex=0;for(var Se;(B=ge.exec(x))!=null;)if(Se=this.rules.inline.strong.middle.exec(x.slice(0,B.index+3)),Se)return{type:"strong",raw:C.slice(0,Se[0].length),text:C.slice(2,Se[0].length-2)}}},Z.em=function(C,x,O){O===void 0&&(O="");var B=this.rules.inline.em.start.exec(C);if(B&&(!B[1]||B[1]&&(O===""||this.rules.inline.punctuation.exec(O)))){x=x.slice(-1*C.length);var ge=B[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ge.lastIndex=0;for(var Se;(B=ge.exec(x))!=null;)if(Se=this.rules.inline.em.middle.exec(x.slice(0,B.index+2)),Se)return{type:"em",raw:C.slice(0,Se[0].length),text:C.slice(1,Se[0].length-1)}}},Z.codespan=function(C){var x=this.rules.inline.code.exec(C);if(x){var O=x[2].replace(/\n/g," "),B=/[^ ]/.test(O),ge=O.startsWith(" ")&&O.endsWith(" ");return B&&ge&&(O=O.substring(1,O.length-1)),O=Ue(O,!0),{type:"codespan",raw:x[0],text:O}}},Z.br=function(C){var x=this.rules.inline.br.exec(C);if(x)return{type:"br",raw:x[0]}},Z.del=function(C){var x=this.rules.inline.del.exec(C);if(x)return{type:"del",raw:x[0],text:x[1]}},Z.autolink=function(C,x){var O=this.rules.inline.autolink.exec(C);if(O){var B,ge;return O[2]==="@"?(B=Ue(this.options.mangle?x(O[1]):O[1]),ge="mailto:"+B):(B=Ue(O[1]),ge=B),{type:"link",raw:O[0],text:B,href:ge,tokens:[{type:"text",raw:B,text:B}]}}},Z.url=function(C,x){var O;if(O=this.rules.inline.url.exec(C)){var B,ge;if(O[2]==="@")B=Ue(this.options.mangle?x(O[0]):O[0]),ge="mailto:"+B;else{var Se;do Se=O[0],O[0]=this.rules.inline._backpedal.exec(O[0])[0];while(Se!==O[0]);B=Ue(O[0]),O[1]==="www."?ge="http://"+B:ge=B}return{type:"link",raw:O[0],text:B,href:ge,tokens:[{type:"text",raw:B,text:B}]}}},Z.inlineText=function(C,x,O){var B=this.rules.inline.text.exec(C);if(B){var ge;return x?ge=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(B[0]):Ue(B[0]):B[0]:ge=Ue(this.options.smartypants?O(B[0]):B[0]),{type:"text",raw:B[0],text:ge}}},ne}(),ze=De.noopTest,Ne=De.edit,We=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=Ne(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=Ne(he.item,"gm").replace(/bull/g,he.bullet).getRegex(),he.list=Ne(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=Ne(he.html,"i").replace("comment",he._comment).replace("tag",he._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),he.paragraph=Ne(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=Ne(he.blockquote).replace("paragraph",he.paragraph).getRegex(),he.normal=We({},he),he.gfm=We({},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=Ne(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=Ne(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=We({},he.normal,{html:Ne(`^ *(?: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:Ne(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 N={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])/};N._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",N.punctuation=Ne(N.punctuation).replace(/punctuation/g,N._punctuation).getRegex(),N._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",N._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",N.em.start=Ne(N.em.start).replace(/punctuation/g,N._punctuation).getRegex(),N.em.middle=Ne(N.em.middle).replace(/punctuation/g,N._punctuation).replace(/overlapSkip/g,N._overlapSkip).getRegex(),N.em.endAst=Ne(N.em.endAst,"g").replace(/punctuation/g,N._punctuation).getRegex(),N.em.endUnd=Ne(N.em.endUnd,"g").replace(/punctuation/g,N._punctuation).getRegex(),N.strong.start=Ne(N.strong.start).replace(/punctuation/g,N._punctuation).getRegex(),N.strong.middle=Ne(N.strong.middle).replace(/punctuation/g,N._punctuation).replace(/blockSkip/g,N._blockSkip).getRegex(),N.strong.endAst=Ne(N.strong.endAst,"g").replace(/punctuation/g,N._punctuation).getRegex(),N.strong.endUnd=Ne(N.strong.endUnd,"g").replace(/punctuation/g,N._punctuation).getRegex(),N.blockSkip=Ne(N._blockSkip,"g").getRegex(),N.overlapSkip=Ne(N._overlapSkip,"g").getRegex(),N._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,N._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,N._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])?)+(?![-_])/,N.autolink=Ne(N.autolink).replace("scheme",N._scheme).replace("email",N._email).getRegex(),N._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,N.tag=Ne(N.tag).replace("comment",he._comment).replace("attribute",N._attribute).getRegex(),N._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,N._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,N._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,N.link=Ne(N.link).replace("label",N._label).replace("href",N._href).replace("title",N._title).getRegex(),N.reflink=Ne(N.reflink).replace("label",N._label).getRegex(),N.reflinkSearch=Ne(N.reflinkSearch,"g").replace("reflink",N.reflink).replace("nolink",N.nolink).getRegex(),N.normal=We({},N),N.pedantic=We({},N.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:Ne(/^!?\[(label)\]\((.*?)\)/).replace("label",N._label).getRegex(),reflink:Ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",N._label).getRegex()}),N.gfm=We({},N.normal,{escape:Ne(N.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),N.gfm.url=Ne(N.gfm.url,"i").replace("email",N.gfm._extended_email).getRegex(),N.breaks=We({},N.gfm,{br:Ne(N.br).replace("{2,}","*").getRegex(),text:Ne(N.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var nt={block:he,inline:N},Tt=A.defaults,Ut=nt.block,ft=nt.inline;function At(ne){return ne.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(ne){var Z="",$,C,x=ne.length;for($=0;$<x;$++)C=ne.charCodeAt($),Math.random()>.5&&(C="x"+C.toString(16)),Z+="&#"+C+";";return Z}var rt=function(){function ne($){this.tokens=[],this.tokens.links=Object.create(null),this.options=$||Tt,this.options.tokenizer=this.options.tokenizer||new Fe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var C={block:Ut.normal,inline:ft.normal};this.options.pedantic?(C.block=Ut.pedantic,C.inline=ft.pedantic):this.options.gfm&&(C.block=Ut.gfm,this.options.breaks?C.inline=ft.breaks:C.inline=ft.gfm),this.tokenizer.rules=C}ne.lex=function(C,x){var O=new ne(x);return O.lex(C)};var Z=ne.prototype;return Z.lex=function(C){return C=C.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(C,this.tokens,!0),this.inline(this.tokens),this.tokens},Z.blockTokens=function(C,x,O){x===void 0&&(x=[]),O===void 0&&(O=!0),C=C.replace(/^ +$/gm,"");for(var B,ge,Se,Ye;C;){if(B=this.tokenizer.space(C)){C=C.substring(B.raw.length),B.type&&x.push(B);continue}if(B=this.tokenizer.code(C,x)){C=C.substring(B.raw.length),B.type?x.push(B):(Ye=x[x.length-1],Ye.raw+=`
|
|
`+B.raw,Ye.text+=`
|
|
`+B.text);continue}if(B=this.tokenizer.fences(C)){C=C.substring(B.raw.length),x.push(B);continue}if(B=this.tokenizer.heading(C)){C=C.substring(B.raw.length),x.push(B);continue}if(B=this.tokenizer.nptable(C)){C=C.substring(B.raw.length),x.push(B);continue}if(B=this.tokenizer.hr(C)){C=C.substring(B.raw.length),x.push(B);continue}if(B=this.tokenizer.blockquote(C)){C=C.substring(B.raw.length),B.tokens=this.blockTokens(B.text,[],O),x.push(B);continue}if(B=this.tokenizer.list(C)){for(C=C.substring(B.raw.length),Se=B.items.length,ge=0;ge<Se;ge++)B.items[ge].tokens=this.blockTokens(B.items[ge].text,[],!1);x.push(B);continue}if(B=this.tokenizer.html(C)){C=C.substring(B.raw.length),x.push(B);continue}if(O&&(B=this.tokenizer.def(C))){C=C.substring(B.raw.length),this.tokens.links[B.tag]||(this.tokens.links[B.tag]={href:B.href,title:B.title});continue}if(B=this.tokenizer.table(C)){C=C.substring(B.raw.length),x.push(B);continue}if(B=this.tokenizer.lheading(C)){C=C.substring(B.raw.length),x.push(B);continue}if(O&&(B=this.tokenizer.paragraph(C))){C=C.substring(B.raw.length),x.push(B);continue}if(B=this.tokenizer.text(C,x)){C=C.substring(B.raw.length),B.type?x.push(B):(Ye=x[x.length-1],Ye.raw+=`
|
|
`+B.raw,Ye.text+=`
|
|
`+B.text);continue}if(C){var jt="Infinite loop on byte: "+C.charCodeAt(0);if(this.options.silent){console.error(jt);break}else throw new Error(jt)}}return x},Z.inline=function(C){var x,O,B,ge,Se,Ye,jt=C.length;for(x=0;x<jt;x++){Ye=C[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]=[],B=0;B<Se.length;B++)Ye.tokens.cells[O][B]=[],this.inlineTokens(Se[B],Ye.tokens.cells[O][B]);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 C},Z.inlineTokens=function(C,x,O,B,ge){x===void 0&&(x=[]),O===void 0&&(O=!1),B===void 0&&(B=!1),ge===void 0&&(ge="");var Se,Ye=C,jt;if(this.tokens.links){var zt=Object.keys(this.tokens.links);if(zt.length>0)for(;(jt=this.tokenizer.rules.inline.reflinkSearch.exec(Ye))!=null;)zt.includes(jt[0].slice(jt[0].lastIndexOf("[")+1,-1))&&(Ye=Ye.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+Ye.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(jt=this.tokenizer.rules.inline.blockSkip.exec(Ye))!=null;)Ye=Ye.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+Ye.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;C;){if(Se=this.tokenizer.escape(C)){C=C.substring(Se.raw.length),x.push(Se);continue}if(Se=this.tokenizer.tag(C,O,B)){C=C.substring(Se.raw.length),O=Se.inLink,B=Se.inRawBlock,x.push(Se);continue}if(Se=this.tokenizer.link(C)){C=C.substring(Se.raw.length),Se.type==="link"&&(Se.tokens=this.inlineTokens(Se.text,[],!0,B)),x.push(Se);continue}if(Se=this.tokenizer.reflink(C,this.tokens.links)){C=C.substring(Se.raw.length),Se.type==="link"&&(Se.tokens=this.inlineTokens(Se.text,[],!0,B)),x.push(Se);continue}if(Se=this.tokenizer.strong(C,Ye,ge)){C=C.substring(Se.raw.length),Se.tokens=this.inlineTokens(Se.text,[],O,B),x.push(Se);continue}if(Se=this.tokenizer.em(C,Ye,ge)){C=C.substring(Se.raw.length),Se.tokens=this.inlineTokens(Se.text,[],O,B),x.push(Se);continue}if(Se=this.tokenizer.codespan(C)){C=C.substring(Se.raw.length),x.push(Se);continue}if(Se=this.tokenizer.br(C)){C=C.substring(Se.raw.length),x.push(Se);continue}if(Se=this.tokenizer.del(C)){C=C.substring(Se.raw.length),Se.tokens=this.inlineTokens(Se.text,[],O,B),x.push(Se);continue}if(Se=this.tokenizer.autolink(C,He)){C=C.substring(Se.raw.length),x.push(Se);continue}if(!O&&(Se=this.tokenizer.url(C,He))){C=C.substring(Se.raw.length),x.push(Se);continue}if(Se=this.tokenizer.inlineText(C,B,At)){C=C.substring(Se.raw.length),ge=Se.raw.slice(-1),x.push(Se);continue}if(C){var je="Infinite loop on byte: "+C.charCodeAt(0);if(this.options.silent){console.error(je);break}else throw new Error(je)}}return x},de(ne,null,[{key:"rules",get:function(){return{block:Ut,inline:ft}}}]),ne}(),pt=A.defaults,gt=De.cleanUrl,$e=De.escape,Ge=function(){function ne($){this.options=$||pt}var Z=ne.prototype;return Z.code=function(C,x,O){var B=(x||"").match(/\S*/)[0];if(this.options.highlight){var ge=this.options.highlight(C,B);ge!=null&&ge!==C&&(O=!0,C=ge)}return B?'<pre><code class="'+this.options.langPrefix+$e(B,!0)+'">'+(O?C:$e(C,!0))+`</code></pre>
|
|
`:"<pre><code>"+(O?C:$e(C,!0))+`</code></pre>
|
|
`},Z.blockquote=function(C){return`<blockquote>
|
|
`+C+`</blockquote>
|
|
`},Z.html=function(C){return C},Z.heading=function(C,x,O,B){return this.options.headerIds?"<h"+x+' id="'+this.options.headerPrefix+B.slug(O)+'">'+C+"</h"+x+`>
|
|
`:"<h"+x+">"+C+"</h"+x+`>
|
|
`},Z.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},Z.list=function(C,x,O){var B=x?"ol":"ul",ge=x&&O!==1?' start="'+O+'"':"";return"<"+B+ge+`>
|
|
`+C+"</"+B+`>
|
|
`},Z.listitem=function(C){return"<li>"+C+`</li>
|
|
`},Z.checkbox=function(C){return"<input "+(C?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Z.paragraph=function(C){return"<p>"+C+`</p>
|
|
`},Z.table=function(C,x){return x&&(x="<tbody>"+x+"</tbody>"),`<table>
|
|
<thead>
|
|
`+C+`</thead>
|
|
`+x+`</table>
|
|
`},Z.tablerow=function(C){return`<tr>
|
|
`+C+`</tr>
|
|
`},Z.tablecell=function(C,x){var O=x.header?"th":"td",B=x.align?"<"+O+' align="'+x.align+'">':"<"+O+">";return B+C+"</"+O+`>
|
|
`},Z.strong=function(C){return"<strong>"+C+"</strong>"},Z.em=function(C){return"<em>"+C+"</em>"},Z.codespan=function(C){return"<code>"+C+"</code>"},Z.br=function(){return this.options.xhtml?"<br/>":"<br>"},Z.del=function(C){return"<del>"+C+"</del>"},Z.link=function(C,x,O){if(C=gt(this.options.sanitize,this.options.baseUrl,C),C===null)return O;var B='<a href="'+$e(C)+'"';return x&&(B+=' title="'+x+'"'),B+=">"+O+"</a>",B},Z.image=function(C,x,O){if(C=gt(this.options.sanitize,this.options.baseUrl,C),C===null)return O;var B='<img src="'+C+'" alt="'+O+'"';return x&&(B+=' title="'+x+'"'),B+=this.options.xhtml?"/>":">",B},Z.text=function(C){return C},ne}(),ot=function(){function ne(){}var Z=ne.prototype;return Z.strong=function(C){return C},Z.em=function(C){return C},Z.codespan=function(C){return C},Z.del=function(C){return C},Z.html=function(C){return C},Z.text=function(C){return C},Z.link=function(C,x,O){return""+O},Z.image=function(C,x,O){return""+O},Z.br=function(){return""},ne}(),Wt=function(){function ne(){this.seen={}}var Z=ne.prototype;return Z.slug=function(C){var x=C.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},ne}(),bt=A.defaults,ut=De.unescape,st=function(){function ne($){this.options=$||bt,this.options.renderer=this.options.renderer||new Ge,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ot,this.slugger=new Wt}ne.parse=function(C,x){var O=new ne(x);return O.parse(C)};var Z=ne.prototype;return Z.parse=function(C,x){x===void 0&&(x=!0);var O="",B,ge,Se,Ye,jt,zt,je,Ot,Ct,et,Zt,Gt,at,un,Ft,Gn,In,It,vi=C.length;for(B=0;B<vi;B++){et=C[B];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="",je="",Ye=et.header.length,ge=0;ge<Ye;ge++)je+=this.renderer.tablecell(this.parseInline(et.tokens.header[ge]),{header:!0,align:et.align[ge]});for(Ot+=this.renderer.tablerow(je),Ct="",Ye=et.cells.length,ge=0;ge<Ye;ge++){for(zt=et.tokens.cells[ge],je="",jt=zt.length,Se=0;Se<jt;Se++)je+=this.renderer.tablecell(this.parseInline(zt[Se]),{header:!1,align:et.align[Se]});Ct+=this.renderer.tablerow(je)}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,Gt=et.start,at=et.loose,Ye=et.items.length,Ct="",ge=0;ge<Ye;ge++)Ft=et.items[ge],Gn=Ft.checked,In=Ft.task,un="",Ft.task&&(It=this.renderer.checkbox(Gn),at?Ft.tokens.length>0&&Ft.tokens[0].type==="text"?(Ft.tokens[0].text=It+" "+Ft.tokens[0].text,Ft.tokens[0].tokens&&Ft.tokens[0].tokens.length>0&&Ft.tokens[0].tokens[0].type==="text"&&(Ft.tokens[0].tokens[0].text=It+" "+Ft.tokens[0].tokens[0].text)):Ft.tokens.unshift({type:"text",text:It}):un+=It),un+=this.parse(Ft.tokens,at),Ct+=this.renderer.listitem(un,In,Gn);O+=this.renderer.list(Ct,Zt,Gt);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;B+1<vi&&C[B+1].type==="text";)et=C[++B],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(C,x){x=x||this.renderer;var O="",B,ge,Se=C.length;for(B=0;B<Se;B++){ge=C[B];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},ne}(),St=De.merge,ct=De.checkSanitizeDeprecation,xt=De.escape,Te=A.getDefaults,Dt=A.changeDefaults,ht=A.defaults;function Le(ne,Z,$){if(typeof ne=="undefined"||ne===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ne!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ne)+", string expected");if(typeof Z=="function"&&($=Z,Z=null),Z=St({},Le.defaults,Z||{}),ct(Z),$){var C=Z.highlight,x;try{x=rt.lex(ne,Z)}catch(Se){return $(Se)}var O=function(Ye){var jt;if(!Ye)try{jt=st.parse(x,Z)}catch(zt){Ye=zt}return Z.highlight=C,Ye?$(Ye):$(null,jt)};if(!C||C.length<3)return O();if(delete Z.highlight,!x.length)return O();var B=0;Le.walkTokens(x,function(Se){Se.type==="code"&&(B++,setTimeout(function(){C(Se.text,Se.lang,function(Ye,jt){if(Ye)return O(Ye);jt!=null&&jt!==Se.text&&(Se.text=jt,Se.escaped=!0),B--,B===0&&O()})},0))}),B===0&&O();return}try{var ge=rt.lex(ne,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(ne){return St(Le.defaults,ne),Dt(Le.defaults),Le},Le.getDefaults=Te,Le.defaults=ht,Le.use=function(ne){var Z=St({},ne);if(ne.renderer&&function(){var C=Le.defaults.renderer||new Ge,x=function(ge){var Se=C[ge];C[ge]=function(){for(var Ye=arguments.length,jt=new Array(Ye),zt=0;zt<Ye;zt++)jt[zt]=arguments[zt];var je=ne.renderer[ge].apply(C,jt);return je===!1&&(je=Se.apply(C,jt)),je}};for(var O in ne.renderer)x(O);Z.renderer=C}(),ne.tokenizer&&function(){var C=Le.defaults.tokenizer||new Fe,x=function(ge){var Se=C[ge];C[ge]=function(){for(var Ye=arguments.length,jt=new Array(Ye),zt=0;zt<Ye;zt++)jt[zt]=arguments[zt];var je=ne.tokenizer[ge].apply(C,jt);return je===!1&&(je=Se.apply(C,jt)),je}};for(var O in ne.tokenizer)x(O);Z.tokenizer=C}(),ne.walkTokens){var $=Le.defaults.walkTokens;Z.walkTokens=function(C){ne.walkTokens(C),$&&$(C)}}Le.setOptions(Z)},Le.walkTokens=function(ne,Z){for(var $=E(ne),C;!(C=$()).done;){var x=C.value;Z(x);switch(x.type){case"table":{for(var O=E(x.tokens.header),B;!(B=O()).done;){var ge=B.value;Le.walkTokens(ge,Z)}for(var Se=E(x.tokens.cells),Ye;!(Ye=Se()).done;)for(var jt=Ye.value,zt=E(jt),je;!(je=zt()).done;){var Ot=je.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=Ge,Le.TextRenderer=ot,Le.Lexer=rt,Le.lexer=rt.lex,Le.Tokenizer=Fe,Le.Slugger=Wt,Le.parse=Le;var Xe=Le;return Xe})},E7E6:function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnE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JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},ELLl:function(Oe,xe,h){(function(I){I(h("VrN/"))})(function(I){var de={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},re=I.Pos;I.defineOption("autoCloseBrackets",!1,function(G,D,j){j&&j!=I.Init&&(G.removeKeyMap(E),G.state.closeBrackets=null),D&&(ie(X(D,"pairs")),G.state.closeBrackets=D,G.addKeyMap(E))});function X(G,D){return D=="pairs"&&typeof G=="string"?G:typeof G=="object"&&G[D]!=null?G[D]:de[D]}var E={Backspace:F,Enter:K};function ie(G){for(var D=0;D<G.length;D++){var j=G.charAt(D),w="'"+j+"'";E[w]||(E[w]=A(j))}}ie(de.pairs+"`");function A(G){return function(D){return T(D,G)}}function R(G){var D=G.state.closeBrackets;if(!D||D.override)return D;var j=G.getModeAt(G.getCursor());return j.closeBrackets||D}function F(G){var D=R(G);if(!D||G.getOption("disableInput"))return I.Pass;for(var j=X(D,"pairs"),w=G.listSelections(),le=0;le<w.length;le++){if(!w[le].empty())return I.Pass;var Me=se(G,w[le].head);if(!Me||j.indexOf(Me)%2!=0)return I.Pass}for(var le=w.length-1;le>=0;le--){var Je=w[le].head;G.replaceRange("",re(Je.line,Je.ch-1),re(Je.line,Je.ch+1),"+delete")}}function K(G){var D=R(G),j=D&&X(D,"explode");if(!j||G.getOption("disableInput"))return I.Pass;for(var w=G.listSelections(),le=0;le<w.length;le++){if(!w[le].empty())return I.Pass;var Me=se(G,w[le].head);if(!Me||j.indexOf(Me)%2!=0)return I.Pass}G.operation(function(){var Je=G.lineSeparator()||`
|
|
`;G.replaceSelection(Je+Je,null),G.execCommand("goCharLeft"),w=G.listSelections();for(var we=0;we<w.length;we++){var ke=w[we].head.line;G.indentLine(ke,null,!0),G.indentLine(ke+1,null,!0)}})}function L(G){var D=I.cmpPos(G.anchor,G.head)>0;return{anchor:new re(G.anchor.line,G.anchor.ch+(D?-1:1)),head:new re(G.head.line,G.head.ch+(D?1:-1))}}function T(G,D){var j=R(G);if(!j||G.getOption("disableInput"))return I.Pass;var w=X(j,"pairs"),le=w.indexOf(D);if(le==-1)return I.Pass;for(var Me=X(j,"closeBefore"),Je=X(j,"triples"),we=w.charAt(le+1)==D,ke=G.listSelections(),Ke=le%2==0,Ee,Ce=0;Ce<ke.length;Ce++){var Pe=ke[Ce],be=Pe.head,_,Ae=G.getRange(be,re(be.line,be.ch+1));if(Ke&&!Pe.empty())_="surround";else if((we||!Ke)&&Ae==D)we&&q(G,be)?_="both":Je.indexOf(D)>=0&&G.getRange(be,re(be.line,be.ch+3))==D+D+D?_="skipThree":_="skip";else if(we&&be.ch>1&&Je.indexOf(D)>=0&&G.getRange(re(be.line,be.ch-2),be)==D+D){if(be.ch>2&&/\bstring/.test(G.getTokenTypeAt(re(be.line,be.ch-2))))return I.Pass;_="addFour"}else if(we){var me=be.ch==0?" ":G.getRange(re(be.line,be.ch-1),be);if(!I.isWordChar(Ae)&&me!=D&&!I.isWordChar(me))_="both";else return I.Pass}else if(Ke&&(Ae.length===0||/\s/.test(Ae)||Me.indexOf(Ae)>-1))_="both";else return I.Pass;if(!Ee)Ee=_;else if(Ee!=_)return I.Pass}var S=le%2?w.charAt(le-1):D,Q=le%2?D:w.charAt(le+1);G.operation(function(){if(Ee=="skip")G.execCommand("goCharRight");else if(Ee=="skipThree")for(var ue=0;ue<3;ue++)G.execCommand("goCharRight");else if(Ee=="surround"){for(var V=G.getSelections(),ue=0;ue<V.length;ue++)V[ue]=S+V[ue]+Q;G.replaceSelections(V,"around"),V=G.listSelections().slice();for(var ue=0;ue<V.length;ue++)V[ue]=L(V[ue]);G.setSelections(V)}else Ee=="both"?(G.replaceSelection(S+Q,null),G.triggerElectric(S+Q),G.execCommand("goCharLeft")):Ee=="addFour"&&(G.replaceSelection(S+S+S+S,"before"),G.execCommand("goCharRight"))})}function se(G,D){var j=G.getRange(re(D.line,D.ch-1),re(D.line,D.ch+1));return j.length==2?j:null}function q(G,D){var j=G.getTokenAt(re(D.line,D.ch+1));return/\bstring/.test(j.type)&&j.start==D.ch&&(D.ch==0||!/\bstring/.test(G.getTokenTypeAt(D)))}})},F8wB:function(Oe,xe,h){Oe.exports={loading:"loading___1SIOG"}},FOrL:function(Oe,xe,h){Oe.exports=h.p+"static/nodata.a6b3f948.png"},FPkq:function(Oe,xe,h){Oe.exports=h.p+"static/qrCode.dd0fe9b2.png"},GABl:function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l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e43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},Gytx:function(Oe,xe){Oe.exports=function(I,de,re,X){var E=re?re.call(X,I,de):void 0;if(E!==void 0)return!!E;if(I===de)return!0;if(typeof I!="object"||!I||typeof de!="object"||!de)return!1;var ie=Object.keys(I),A=Object.keys(de);if(ie.length!==A.length)return!1;for(var R=Object.prototype.hasOwnProperty.bind(de),F=0;F<ie.length;F++){var K=ie[F];if(!R(K))return!1;var L=I[K],T=de[K];if(E=re?re.call(X,L,T,K):void 0,E===!1||E===void 0&&L!==T)return!1}return!0}},H38U:function(Oe,xe,h){var I=h("f4xo"),de=h("rcnY"),re=h("wU8J"),X=h("Iq15"),E=h("dWSS");function ie(R,F){this.typeNumber=R,this.errorCorrectLevel=F,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var A=ie.prototype;A.addData=function(R){var F=new I(R);this.dataList.push(F),this.dataCache=null},A.isDark=function(R,F){if(R<0||this.moduleCount<=R||F<0||this.moduleCount<=F)throw new Error(R+","+F);return this.modules[R][F]},A.getModuleCount=function(){return this.moduleCount},A.make=function(){if(this.typeNumber<1){var R=1;for(R=1;R<40;R++){for(var F=de.getRSBlocks(R,this.errorCorrectLevel),K=new re,L=0,T=0;T<F.length;T++)L+=F[T].dataCount;for(var T=0;T<this.dataList.length;T++){var se=this.dataList[T];K.put(se.mode,4),K.put(se.getLength(),X.getLengthInBits(se.mode,R)),se.write(K)}if(K.getLengthInBits()<=L*8)break}this.typeNumber=R}this.makeImpl(!1,this.getBestMaskPattern())},A.makeImpl=function(R,F){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var K=0;K<this.moduleCount;K++){this.modules[K]=new Array(this.moduleCount);for(var L=0;L<this.moduleCount;L++)this.modules[K][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,F),this.typeNumber>=7&&this.setupTypeNumber(R),this.dataCache==null&&(this.dataCache=ie.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,F)},A.setupPositionProbePattern=function(R,F){for(var K=-1;K<=7;K++){if(R+K<=-1||this.moduleCount<=R+K)continue;for(var L=-1;L<=7;L++){if(F+L<=-1||this.moduleCount<=F+L)continue;0<=K&&K<=6&&(L==0||L==6)||0<=L&&L<=6&&(K==0||K==6)||2<=K&&K<=4&&2<=L&&L<=4?this.modules[R+K][F+L]=!0:this.modules[R+K][F+L]=!1}}},A.getBestMaskPattern=function(){for(var R=0,F=0,K=0;K<8;K++){this.makeImpl(!0,K);var L=X.getLostPoint(this);(K==0||R>L)&&(R=L,F=K)}return F},A.createMovieClip=function(R,F,K){var L=R.createEmptyMovieClip(F,K),T=1;this.make();for(var se=0;se<this.modules.length;se++)for(var q=se*T,G=0;G<this.modules[se].length;G++){var D=G*T,j=this.modules[se][G];j&&(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},A.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 F=8;F<this.moduleCount-8;F++){if(this.modules[6][F]!=null)continue;this.modules[6][F]=F%2==0}},A.setupPositionAdjustPattern=function(){for(var R=X.getPatternPosition(this.typeNumber),F=0;F<R.length;F++)for(var K=0;K<R.length;K++){var L=R[F],T=R[K];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}},A.setupTypeNumber=function(R){for(var F=X.getBCHTypeNumber(this.typeNumber),K=0;K<18;K++){var L=!R&&(F>>K&1)==1;this.modules[Math.floor(K/3)][K%3+this.moduleCount-8-3]=L}for(var K=0;K<18;K++){var L=!R&&(F>>K&1)==1;this.modules[K%3+this.moduleCount-8-3][Math.floor(K/3)]=L}},A.setupTypeInfo=function(R,F){for(var K=this.errorCorrectLevel<<3|F,L=X.getBCHTypeInfo(K),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},A.mapData=function(R,F){for(var K=-1,L=this.moduleCount-1,T=7,se=0,q=this.moduleCount-1;q>0;q-=2)for(q==6&&q--;;){for(var G=0;G<2;G++)if(this.modules[L][q-G]==null){var D=!1;se<R.length&&(D=(R[se]>>>T&1)==1);var j=X.getMask(F,L,q-G);j&&(D=!D),this.modules[L][q-G]=D,T--,T==-1&&(se++,T=7)}if(L+=K,L<0||this.moduleCount<=L){L-=K,K=-K;break}}},ie.PAD0=236,ie.PAD1=17,ie.createData=function(R,F,K){for(var L=de.getRSBlocks(R,F),T=new re,se=0;se<K.length;se++){var q=K[se];T.put(q.mode,4),T.put(q.getLength(),X.getLengthInBits(q.mode,R)),q.write(T)}for(var G=0,se=0;se<L.length;se++)G+=L[se].dataCount;if(T.getLengthInBits()>G*8)throw new Error("code length overflow. ("+T.getLengthInBits()+">"+G*8+")");for(T.getLengthInBits()+4<=G*8&&T.put(0,4);T.getLengthInBits()%8!=0;)T.putBit(!1);for(;!(T.getLengthInBits()>=G*8);){if(T.put(ie.PAD0,8),T.getLengthInBits()>=G*8)break;T.put(ie.PAD1,8)}return ie.createBytes(T,L)},ie.createBytes=function(R,F){for(var K=0,L=0,T=0,se=new Array(F.length),q=new Array(F.length),G=0;G<F.length;G++){var D=F[G].dataCount,j=F[G].totalCount-D;L=Math.max(L,D),T=Math.max(T,j),se[G]=new Array(D);for(var w=0;w<se[G].length;w++)se[G][w]=255&R.buffer[w+K];K+=D;var le=X.getErrorCorrectPolynomial(j),Me=new E(se[G],le.getLength()-1),Je=Me.mod(le);q[G]=new Array(le.getLength()-1);for(var w=0;w<q[G].length;w++){var we=w+Je.getLength()-q[G].length;q[G][w]=we>=0?Je.get(we):0}}for(var ke=0,w=0;w<F.length;w++)ke+=F[w].totalCount;for(var Ke=new Array(ke),Ee=0,w=0;w<L;w++)for(var G=0;G<F.length;G++)w<se[G].length&&(Ke[Ee++]=se[G][w]);for(var w=0;w<T;w++)for(var G=0;G<F.length;G++)w<q[G].length&&(Ke[Ee++]=q[G][w]);return Ke},Oe.exports=ie},HmJG:function(Oe,xe,h){},HpTS:function(Oe,xe,h){Oe.exports=h.p+"static/small_program.f74069ec.png"},I8Z2:function(Oe,xe,h){"use strict";h.d(xe,"a",function(){return X}),h.d(xe,"b",function(){return se}),h.d(xe,"c",function(){return G});var I=h("q1tI"),de=function(){var D=function(j,w){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(j,w)};return function(j,w){D(j,w);function le(){this.constructor=j}j.prototype=w===null?Object.create(w):(le.prototype=w.prototype,new le)}}(),re=I.createContext(null),X=function(D){de(j,D);function j(){return D!==null&&D.apply(this,arguments)||this}return j.prototype.render=function(){return I.createElement(re.Provider,{value:this.props.store},this.props.children)},j}(I.Component),E=h("Gytx"),ie=h.n(E),A=h("2mql"),R=h.n(A),F=function(){var D=function(j,w){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(j,w)};return function(j,w){D(j,w);function le(){this.constructor=j}j.prototype=w===null?Object.create(w):(le.prototype=w.prototype,new le)}}(),K=function(){return K=Object.assign||function(D){for(var j,w=1,le=arguments.length;w<le;w++){j=arguments[w];for(var Me in j)Object.prototype.hasOwnProperty.call(j,Me)&&(D[Me]=j[Me])}return D},K.apply(this,arguments)};function L(D){return D.displayName||D.name||"Component"}var T=function(){return{}};function se(D,j){j===void 0&&(j={});var w=!!D,le=D||T;return function(Je){var we=function(Ke){F(Ee,Ke);function Ee(Ce,Pe){var be=Ke.call(this,Ce,Pe)||this;return be.unsubscribe=null,be.handleChange=function(){if(!be.unsubscribe)return;var _=le(be.store.getState(),be.props);be.setState({subscribed:_})},be.store=be.context,be.state={subscribed:le(be.store.getState(),Ce),store:be.store,props:Ce},be}return Ee.getDerivedStateFromProps=function(Ce,Pe){return D&&D.length===2&&Ce!==Pe.props?{subscribed:le(Pe.store.getState(),Ce),props:Ce}:{props:Ce}},Ee.prototype.componentDidMount=function(){this.trySubscribe()},Ee.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},Ee.prototype.shouldComponentUpdate=function(Ce,Pe){return!ie()(this.props,Ce)||!ie()(this.state.subscribed,Pe.subscribed)},Ee.prototype.trySubscribe=function(){w&&(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=K(K(K({},this.props),this.state.subscribed),{store:this.store});return I.createElement(Je,K({},Ce,{ref:this.props.miniStoreForwardedRef}))},Ee.displayName="Connect("+L(Je)+")",Ee.contextType=re,Ee}(I.Component);if(j.forwardRef){var ke=I.forwardRef(function(Ke,Ee){return I.createElement(we,K({},Ke,{miniStoreForwardedRef:Ee}))});return R()(ke,Je)}return R()(we,Je)}}var q=function(){return q=Object.assign||function(D){for(var j,w=1,le=arguments.length;w<le;w++){j=arguments[w];for(var Me in j)Object.prototype.hasOwnProperty.call(j,Me)&&(D[Me]=j[Me])}return D},q.apply(this,arguments)};function G(D){var j=D,w=[];function le(we){j=q(q({},j),we);for(var ke=0;ke<w.length;ke++)w[ke]()}function Me(){return j}function Je(we){return w.push(we),function(){var Ke=w.indexOf(we);w.splice(Ke,1)}}return{setState:le,getState:Me,subscribe:Je}}},Iq15:function(Oe,xe,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},E={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(ie){for(var A=ie<<10;E.getBCHDigit(A)-E.getBCHDigit(E.G15)>=0;)A^=E.G15<<E.getBCHDigit(A)-E.getBCHDigit(E.G15);return(ie<<10|A)^E.G15_MASK},getBCHTypeNumber:function(ie){for(var A=ie<<12;E.getBCHDigit(A)-E.getBCHDigit(E.G18)>=0;)A^=E.G18<<E.getBCHDigit(A)-E.getBCHDigit(E.G18);return ie<<12|A},getBCHDigit:function(ie){for(var A=0;ie!=0;)A++,ie>>>=1;return A},getPatternPosition:function(ie){return E.PATTERN_POSITION_TABLE[ie-1]},getMask:function(ie,A,R){switch(ie){case X.PATTERN000:return(A+R)%2==0;case X.PATTERN001:return A%2==0;case X.PATTERN010:return R%3==0;case X.PATTERN011:return(A+R)%3==0;case X.PATTERN100:return(Math.floor(A/2)+Math.floor(R/3))%2==0;case X.PATTERN101:return A*R%2+A*R%3==0;case X.PATTERN110:return(A*R%2+A*R%3)%2==0;case X.PATTERN111:return(A*R%3+(A+R)%2)%2==0;default:throw new Error("bad maskPattern:"+ie)}},getErrorCorrectPolynomial:function(ie){for(var A=new de([1],0),R=0;R<ie;R++)A=A.multiply(new de([1,re.gexp(R)],0));return A},getLengthInBits:function(ie,A){if(1<=A&&A<10)switch(ie){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:"+ie)}else if(A<27)switch(ie){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:"+ie)}else if(A<41)switch(ie){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:"+ie)}else throw new Error("type:"+A)},getLostPoint:function(ie){for(var A=ie.getModuleCount(),R=0,F=0;F<A;F++)for(var K=0;K<A;K++){for(var L=0,T=ie.isDark(F,K),se=-1;se<=1;se++){if(F+se<0||A<=F+se)continue;for(var q=-1;q<=1;q++){if(K+q<0||A<=K+q)continue;if(se==0&&q==0)continue;T==ie.isDark(F+se,K+q)&&L++}}L>5&&(R+=3+L-5)}for(var F=0;F<A-1;F++)for(var K=0;K<A-1;K++){var G=0;ie.isDark(F,K)&&G++,ie.isDark(F+1,K)&&G++,ie.isDark(F,K+1)&&G++,ie.isDark(F+1,K+1)&&G++,(G==0||G==4)&&(R+=3)}for(var F=0;F<A;F++)for(var K=0;K<A-6;K++)ie.isDark(F,K)&&!ie.isDark(F,K+1)&&ie.isDark(F,K+2)&&ie.isDark(F,K+3)&&ie.isDark(F,K+4)&&!ie.isDark(F,K+5)&&ie.isDark(F,K+6)&&(R+=40);for(var K=0;K<A;K++)for(var F=0;F<A-6;F++)ie.isDark(F,K)&&!ie.isDark(F+1,K)&&ie.isDark(F+2,K)&&ie.isDark(F+3,K)&&ie.isDark(F+4,K)&&!ie.isDark(F+5,K)&&ie.isDark(F+6,K)&&(R+=40);for(var D=0,K=0;K<A;K++)for(var F=0;F<A;F++)ie.isDark(F,K)&&D++;var j=Math.abs(100*D/A/A-50)/5;return R+=j*10,R}};Oe.exports=E},JWDV:function(Oe,xe,h){Oe.exports=h.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5N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zI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(Oe,xe,h){Oe.exports=h.p+"static/qrcode.54870d9b.png"},LdHM:function(Oe,xe,h){"use strict";h.d(xe,"b",function(){return Me}),h.d(xe,"a",function(){return we});var I=h("1OyB"),de=h("vuIU"),re=h("Ji7U"),X=h("LK+K"),E=h("q1tI"),ie=h("rePB"),A=h("Ff2n"),R=h("ODXe"),F=h("4IlW"),K=h("bX4T"),L=h("YrtM"),T=h("TSYQ"),se=h.n(T),q=h("+nKL"),G=h("8OUc"),D=function(ce,Ue){var Re=ce.prefixCls,qe=ce.id,dt=ce.flattenOptions,Fe=ce.childrenAsData,ze=ce.values,Ne=ce.searchValue,We=ce.multiple,he=ce.defaultActiveFirstOption,N=ce.height,nt=ce.itemHeight,Tt=ce.notFoundContent,Ut=ce.open,ft=ce.menuItemSelectedIcon,At=ce.virtual,He=ce.onSelect,rt=ce.onToggleOpen,pt=ce.onActiveValue,gt=ce.onScroll,$e=ce.onMouseEnter,Ge="".concat(Re,"-item"),ot=Object(L.a)(function(){return dt},[Ut,dt],function(Xe,ne){return ne[0]&&Xe[1]!==ne[1]}),Wt=E.useRef(null),bt=function(ne){ne.preventDefault()},ut=function(ne){Wt.current&&Wt.current.scrollTo({index:ne})},st=function(ne){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,$=ot.length,C=0;C<$;C+=1){var x=(ne+C*Z+$)%$,O=ot[x],B=O.group,ge=O.data;if(!B&&!ge.disabled)return x}return-1},St=E.useState(function(){return st(0)}),ct=Object(R.a)(St,2),xt=ct[0],Te=ct[1],Dt=function(ne){Te(ne);var Z=ot[ne];if(!Z){pt(null,-1);return}pt(Z.data.value,ne)};E.useEffect(function(){Dt(he!==!1?st(0):-1)},[ot.length,Ne]),E.useEffect(function(){var Xe=setTimeout(function(){if(!We&&Ut&&ze.size===1){var ne=Array.from(ze)[0],Z=ot.findIndex(function($){var C=$.data;return C.value===ne});Dt(Z),ut(Z)}});return function(){return clearTimeout(Xe)}},[Ut]);var ht=function(ne){ne!==void 0&&He(ne,{selected:!ze.has(ne)}),We||rt(!1)};if(E.useImperativeHandle(Ue,function(){return{onKeyDown:function(ne){var Z=ne.which;switch(Z){case F.a.UP:case F.a.DOWN:{var $=0;if(Z===F.a.UP?$=-1:Z===F.a.DOWN&&($=1),$!==0){var C=st(xt+$,$);ut(C),Dt(C)}break}case F.a.ENTER:{var x=ot[xt];x&&!x.data.disabled?ht(x.data.value):ht(void 0),Ut&&ne.preventDefault();break}case F.a.ESC:rt(!1)}},onKeyUp:function(){},scrollTo:function(ne){ut(ne)}}}),ot.length===0)return E.createElement("div",{role:"listbox",id:"".concat(qe,"_list"),className:"".concat(Ge,"-empty"),onMouseDown:bt},Tt);function Le(Xe){var ne=ot[Xe];if(!ne)return null;var Z=ne.data||{},$=Z.value,C=Z.label,x=Z.children,O=Object(K.a)(Z,!0),B=Fe?x:C;return ne?E.createElement("div",Object.assign({"aria-label":typeof B=="string"?B:null},O,{key:Xe,role:"option",id:"".concat(qe,"_list_").concat(Xe),"aria-selected":ze.has($)}),$):null}return E.createElement(E.Fragment,null,E.createElement("div",{role:"listbox",id:"".concat(qe,"_list"),style:{height:0,width:0,overflow:"hidden"}},Le(xt-1),Le(xt),Le(xt+1)),E.createElement(q.a,{itemKey:"key",ref:Wt,data:ot,height:N,itemHeight:nt,fullHeight:!1,onMouseDown:bt,onScroll:gt,virtual:At,onMouseEnter:$e},function(Xe,ne){var Z,$=Xe.group,C=Xe.groupOption,x=Xe.data,O=x.label,B=x.key;if($)return E.createElement("div",{className:se()(Ge,"".concat(Ge,"-group"))},O!==void 0?O:B);var ge=x.disabled,Se=x.value,Ye=x.title,jt=x.children,zt=x.style,je=x.className,Ot=Object(A.a)(x,["disabled","value","title","children","style","className"]),Ct=ze.has(Se),et="".concat(Ge,"-option"),Zt=se()(Ge,et,je,(Z={},Object(ie.a)(Z,"".concat(et,"-grouped"),C),Object(ie.a)(Z,"".concat(et,"-active"),xt===ne&&!ge),Object(ie.a)(Z,"".concat(et,"-disabled"),ge),Object(ie.a)(Z,"".concat(et,"-selected"),Ct),Z)),Gt=Fe?jt:O,at=!ft||typeof ft=="function"||Ct;return E.createElement("div",Object.assign({},Ot,{"aria-selected":Ct,className:Zt,title:Ye,onMouseMove:function(){if(xt===ne||ge)return;Dt(ne)},onClick:function(){ge||ht(Se)},style:zt}),E.createElement("div",{className:"".concat(et,"-content")},Gt||Se),E.isValidElement(ft)||Ct,at&&E.createElement(G.a,{className:"".concat(Ge,"-option-state"),customizeIcon:ft,customizeIconProps:{isSelected:Ct}},Ct?"\u2713":null))}))},j=E.forwardRef(D);j.displayName="OptionList";var w=j,le=function(){return null};le.isSelectOption=!0;var Me=le,Je=function(){return null};Je.isSelectOptGroup=!0;var we=Je,ke=h("VTBJ"),Ke=h("Zm9Q");function Ee(v){var ce=v.key,Ue=v.props,Re=Ue.children,qe=Ue.value,dt=Object(A.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(Ke.a)(v).map(function(Ue,Re){if(!E.isValidElement(Ue)||!Ue.type)return null;var qe=Ue.type.isSelectOptGroup,dt=Ue.key,Fe=Ue.props,ze=Fe.children,Ne=Object(A.a)(Fe,["children"]);return ce||!qe?Ee(Ue):Object(ke.a)(Object(ke.a)({key:"__RC_SELECT_GRP__".concat(dt===null?Re:dt,"__"),label:dt},Ne),{},{options:Ce(ze)})}).filter(function(Ue){return Ue})}var Pe=h("2Qr1"),be=h("qNPg"),_=h("U8pU"),Ae=h("Kwbf"),me=h("WKfj");function S(v){var ce=v.mode,Ue=v.options,Re=v.children,qe=v.backfill,dt=v.allowClear,Fe=v.placeholder,ze=v.getInputElement,Ne=v.showSearch,We=v.onSearch,he=v.defaultOpen,N=v.autoFocus,nt=v.labelInValue,Tt=v.value,Ut=v.inputValue,ft=v.optionLabelProp,At=ce==="multiple"||ce==="tags",He=Ne!==void 0?Ne:At||ce==="combobox",rt=Ue||Ce(Re);if(Object(Ae.a)(ce!=="tags"||rt.every(function(Ge){return!Ge.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(Ge){return Ge.options?Ge.options.some(function(ot){return typeof("value"in ot?ot.value:ot.key)=="number"}):typeof("value"in Ge?Ge.value:Ge.key)=="number"});Object(Ae.a)(!pt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(Ae.a)(ce!=="combobox"||!ft,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(Ae.a)(ce==="combobox"||!qe,"`backfill` only works with `combobox` mode."),Object(Ae.a)(ce==="combobox"||!ze,"`getInputElement` only work with `combobox` mode."),Object(Ae.b)(ce!=="combobox"||!ze||!dt||!Fe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),We&&!He&&ce!=="combobox"&&ce!=="tags"&&Object(Ae.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(Ae.b)(!he||N,"`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(Ae.a)(!nt||gt.every(function(Ge){return Object(_.a)(Ge)==="object"&&("key"in Ge||"value"in Ge)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(Ae.a)(!At||Array.isArray(Tt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Re){var $e=null;Object(Ke.a)(Re).some(function(Ge){if(!E.isValidElement(Ge)||!Ge.type)return!1;var ot=Ge.type;if(ot.isSelectOption)return!1;if(ot.isSelectOptGroup){var Wt=Object(Ke.a)(Ge.props.children).every(function(bt){return!E.isValidElement(bt)||!Ge.type||bt.type.isSelectOption?!0:($e=bt.type,!1)});return!Wt}return $e=ot,!0}),$e&&Object(Ae.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat($e.displayName||$e.name||$e,"`.")),Object(Ae.a)(Ut===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Q=S,ue=Object(be.a)({prefixCls:"rc-select",components:{optionList:w},convertChildrenToData:Ce,flattenOptions:Pe.d,getLabeledValue:Pe.e,filterOptions:Pe.b,isValueDisabled:Pe.g,findValueOption:Pe.c,warningProps:Q,fillOptionsWithMissingValue:Pe.a}),V=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=E.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 E.createElement(ue,Object.assign({ref:this.selectRef},this.props))}}]),Ue}(E.Component);V.Option=Me,V.OptGroup=we;var De=V,M=xe.c=De},M8RZ:function(Oe,xe,h){"use strict";h.d(xe,"a",function(){return F});var I=h("fWQN"),de=h("mtLc"),re=h("yKVA"),X=h("879j"),E=h("q1tI"),ie=h.n(E),A=h("i8i4"),R=h.n(A),F=function(K){Object(re.a)(T,K);var L=Object(X.a)(T);function T(se){var q;Object(I.a)(this,T),q=L.call(this,se);var G=window.document;return q.node=G.createElement("div"),G.body.appendChild(q.node),q}return Object(de.a)(T,[{key:"render",value:function(){var q=this.props.children;return Object(A.createPortal)(q,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),T}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UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},OLES:function(Oe,xe,h){"use strict";var I=h("U8pU"),de=h("VTBJ"),re=h("Ff2n"),X=h("q1tI"),E=h("uciX"),ie=h("7ixt"),A=function(se){var q=se.overlay,G=se.prefixCls,D=se.id,j=se.overlayInnerStyle;return X.createElement("div",{className:"".concat(G,"-inner"),id:D,role:"tooltip",style:j},typeof q=="function"?q():q)},R=A,F=function(se,q){var G=se.overlayClassName,D=se.trigger,j=D===void 0?["hover"]:D,w=se.mouseEnterDelay,le=w===void 0?0:w,Me=se.mouseLeaveDelay,Je=Me===void 0?.1:Me,we=se.overlayStyle,ke=se.prefixCls,Ke=ke===void 0?"rc-tooltip":ke,Ee=se.children,Ce=se.onVisibleChange,Pe=se.afterVisibleChange,be=se.transitionName,_=se.animation,Ae=se.placement,me=Ae===void 0?"right":Ae,S=se.align,Q=S===void 0?{}:S,ue=se.destroyTooltipOnHide,V=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 We=se.arrowContent,he=We===void 0?null:We,N=se.overlay,nt=se.id;return[X.createElement("div",{className:"".concat(Ke,"-arrow"),key:"arrow"},he),X.createElement(R,{key:"content",prefixCls:Ke,id:nt,overlay:N,overlayInnerStyle:v})]},dt=!1,Fe=!1;if(typeof V=="boolean")dt=V;else if(V&&Object(I.a)(V)==="object"){var ze=V.keepParent;dt=ze===!0,Fe=ze===!1}return X.createElement(E.a,Object.assign({popupClassName:G,prefixCls:Ke,popup:qe,action:j,builtinPlacements:ie.a,popupPlacement:me,ref:Ue,popupAlign:Q,getPopupContainer:M,onPopupVisibleChange:Ce,afterPopupVisibleChange:Pe,popupTransitionName:be,popupAnimation:_,defaultPopupVisible:De,destroyPopupOnHide:dt,autoDestroy:Fe,mouseLeaveDelay:Je,popupStyle:we,mouseEnterDelay:le},Re),Ee)},K=Object(X.forwardRef)(F),L=xe.a=K},Ohmc:function(Oe,xe,h){Oe.exports=h.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(Oe,xe,h){"use strict";var I=h("2qtc"),de=h("kLXV"),re=h("rAM+"),X=h("miYZ"),E=h("tsqr"),ie=h("9og8"),A=h("tJVT"),R=h("jrin"),F=h("WmNS"),K=h.n(F),L=h("q1tI"),T=h.n(L),se=h("VrN/"),q=h.n(se),G=h("bdgK"),D=h("p77/"),j=h("Bd2K"),w=h("ELLl"),le=h("19Vz"),Me=h("lZu9"),Je=h("+NIl"),we=h("kSUc"),ke=h("9Bee"),Ke=function(je){var Ot=je.value,Ct=Ot===void 0?"":Ot,et=je.className,Zt=je.showTextOnly,Gt=je.showLines,at=je.style,un=at===void 0?{}:at,Ft=Object(L.useMemo)(function(){return""},[Ct]);return T.a.createElement(T.a.Fragment,null,T.a.createElement("div",{dangerouslySetInnerHTML:{__html:Ft}}))},Ee=h("Q9mQ"),Ce=h("diRs"),Pe=h("0Owb"),be=h("dejd"),_=h("C+DQ"),Ae=h("D1Df"),me=h.n(Ae),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 V(je){var Ot=je.onActionCallback,Ct=je.title,et=je.icon,Zt=je.actionName,Gt=je.className,at=Gt===void 0?"":Gt,un=je.children;function Ft(){Ot(Zt)}return T.a.createElement("a",{title:Ct,className:at,onClick:Ft},T.a.createElement("i",{className:"md-iconfont ".concat(et)}),un)}var De=function(je){var Ot=je.watch,Ct=je.showNullButton,et=je.onActionCallback,Zt=je.fullScreen,Gt=je.insertTemp,at=je.hidetoolBar,un=je.uuid,Ft=je.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 Gn=[].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&&Gn.map(function(In,It){return T.a.createElement("li",{key:It},In.actionName?T.a.createElement(V,Object(Pe.a)({},In,{onActionCallback:et})):T.a.createElement("span",{className:"v-line"}))}),Ct?T.a.createElement("li",null,T.a.createElement(V,{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,Gt&&T.a.createElement("li",null,T.a.createElement(V,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Gt),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 Ft(!0)}},"\u624B\u673A\u4E0A\u4F20\u6587\u4EF6"))),T.a.createElement("li",{className:"btn-full-screen"},T.a.createElement(V,{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"),Fe={labelCol:{span:4},wrapperCol:{span:20}},ze=function(je){var Ot=je.callback,Ct=je.onCancel;function et(Zt){Ot(Zt)}return T.a.createElement(Re.a,Object(Pe.a)({},Fe,{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")))},Ne=h("7ahc"),We=h("k1fw"),he=h("HmJG"),N=h("BjJ7"),nt=Re.a.useForm,Tt={width:280,marginRight:10},Ut={labelCol:{span:5},wrapperCol:{span:19}},ft=function(je){var Ot=je.callback,Ct=je.onCancel,et=nt(),Zt=Object(A.a)(et,1),Gt=Zt[0],at=Object(L.useRef)();function un(In){Ot(Object(We.a)(Object(We.a)({},In),{},{name:at.current}))}function Ft(In,It){Gt.setFieldsValue({src:"/api/attachments/".concat(In.id,"?type=").concat(In.content_type),type:It.type})}function Gn(In){var It=In.target.files[0];at.current=It.name,He(It,Ft)}return T.a.createElement(Re.a,Object(Pe.a)({form:Gt},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(At,{onFileChange:Gn}))),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 At(je){var Ot=je.onFileChange;return T.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",T.a.createElement("input",{type:"file",onChange:Ot}))}function He(je,Ot){if(!je)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ct=new FormData;Ct.append("editormd-image-file",je),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),je)},!1),et.addEventListener("error",function(Zt){console.error(Zt)},!1),et.open("POST","".concat(N.a,"/api/attachments.json")),et.send(Ct)}var rt=h("giR+"),pt=h("fyUT"),gt=h("7Kak"),$e=h("9yH6"),Ge=$e.a.Group,ot={margin:"0 8px"},Wt=function(je){var Ot=je.callback,Ct=je.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(Ge,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 ne(){}var Z=0,$=1e4,C="\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(je){return/^\d+$/.test(je)?"".concat(je,"px"):je}var B=navigator.platform.toUpperCase().indexOf("MAC")>=0,ge=B?"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),jt=(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=xe.a=function(je){var Ot=je.defaultValue,Ct=Ot===void 0?"":Ot,et=je.onChange,Zt=je.width,Gt=Zt===void 0?"100%":Zt,at=je.height,un=at===void 0?400:at,Ft=je.miniToolbar,Gn=Ft===void 0?!1:Ft,In=je.isFocus,It=In===void 0?!1:In,vi=je.watch,si=je.insertTemp,Qn=je.mode,oi=Qn===void 0?"markdown":Qn,ji=je.id,Di=ji===void 0?"markdown-editor-id":ji,cn=je.showResizeBar,Rt=cn===void 0?!1:cn,Bi=je.noStorage,Li=Bi===void 0?!1:Bi,Pn=je.showNullButton,Jt=Pn===void 0?!1:Pn,An=je.hidetoolBar,en=An===void 0?!1:An,yn=je.fullScreen,Be=yn===void 0?!1:yn,Pt=je.onBlur,Jn=je.onCMBeforeChange,Yn=je.onFullScreen,ao=je.className,so=ao===void 0?"":ao,d=je.disablePaste,r=d===void 0?!1:d,a=je.placeholder,u=a===void 0?"":a,m=je.values,c=m===void 0?"":m,Y=Object(L.useState)(null),Ve=Object(A.a)(Y,2),ve=Ve[0],Lt=Ve[1],Qe=Object(L.useState)(Ct),Et=Object(A.a)(Qe,2),wt=Et[0],kt=Et[1],nn=Object(L.useState)(vi),mn=Object(A.a)(nn,2),$t=mn[0],_i=mn[1],hi=Object(L.useState)(Be),Ai=Object(A.a)(hi,2),Ii=Ai[0],wi=Ai[1],lo=Object(L.useState)(""),qi=Object(A.a)(lo,2),go=qi[0],$i=qi[1],lr=Object(L.useState)(0),Qo=Object(A.a)(lr,2),Ki=Qo[0],li=Qo[1],Oo=Object(L.useState)(un),Uo=Object(A.a)(Oo,2),Jo=Uo[0],ei=Uo[1],Mn=Object(L.useState)(!1),ri=Object(A.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 Bt=Object(ie.a)(K.a.mark(function qt(){var Ht,gn;return K.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 Bt.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 Bt=q.a.fromTextArea(ui.current,{mode:oi,lineNumbers:!Gn,lineWrapping:!0,value:Ct,autoCloseTags:!0,autoCloseBrackets:!0});It&&Bt.focus();function qt(Ht,gn){if(r){gn.preventDefault();return}var wn=gn.clipboardData;if(wn){var Dn=wn.types.toString(),bn=wn.items;if(Dn==="Files"||wn.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(Nn){if(Nn.id){var Ci,Tn,eo;(hn==null||((Ci=hn.type)===null||Ci===void 0)?void 0:Ci.indexOf("image"))>-1?Bt.replaceSelection(".concat(Nn.content_type,")")):(hn==null||((Tn=hn.type)===null||Tn===void 0)?void 0:Tn.indexOf("video"))>-1?Bt.replaceSelection('<video width="100%" controls src="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Nn.id,'"></video>')):(hn==null||((eo=hn.type)===null||eo===void 0)?void 0:eo.indexOf("pdf"))>-1?Bt.replaceSelection('<a href="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Nn.id,"?type=").concat(hn.type,'&disposition=inline" target="_blank">').concat(hn.name,"</a>")):Se.includes(xo)?Bt.replaceSelection('<a href="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Nn.id,'?type=office&disposition=inline" target="_blank">').concat(hn.name,"</a>")):Bt.replaceSelection("[".concat(hn.name,"](").concat(Q.a.API_SERVER,"/api/attachments/").concat(Nn.id,"?type=").concat(Nn.content_type,")"))}else(Nn==null?void 0:Nn.status)===401&&(document.location.href="/user/login")})}catch(Nn){E.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Bt.on("paste",qt),Bt.on("dragleave",function(Ht,gn){vo.current.classList.remove("mouse-hover-md")}),Bt.on("dragover",function(Ht,gn){vo.current.classList.add("mouse-hover-md")}),Bt.on("drop",function(Ht,gn){vo.current.classList.add("mouse-hover-md");var wn;if(wn=gn.dataTransfer.files,wn.length>0){gn.preventDefault(),gn.stopPropagation();for(var Dn=function(bi){var hn=wn[bi],xo=hn.name.split(".").pop();He(hn,function(Nn){if(Nn.id){var Ci,Tn,eo;(hn==null||((Ci=hn.type)===null||Ci===void 0)?void 0:Ci.indexOf("image"))>-1?Bt.replaceSelection(".concat(Nn.content_type,")")):(hn==null||((Tn=hn.type)===null||Tn===void 0)?void 0:Tn.indexOf("video"))>-1?Bt.replaceSelection('<video width="100%" controls src="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Nn.id,'"></video>')):(hn==null||((eo=hn.type)===null||eo===void 0)?void 0:eo.indexOf("pdf"))>-1?Bt.replaceSelection('<a href="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Nn.id,"?type=").concat(hn.type,'&disposition=inline" target="_blank">').concat(hn.name,"</a>")):Se.includes(xo)?Bt.replaceSelection('<a href="'.concat(Q.a.API_SERVER,"/api/attachments/").concat(Nn.id,'?type=office&disposition=inline" target="_blank">').concat(hn.name,"</a>")):Bt.replaceSelection("[".concat(hn.name,"](").concat(Q.a.API_SERVER,"/api/attachments/").concat(Nn.id,"?type=").concat(Nn.content_type,")"))}else(Nn==null?void 0:Nn.status)===401&&(document.location.href="/user/login")})},bn=0;bn<wn.length;bn++)Dn(bn)}}),Lt(Bt),function(){Bt.off("paste",qt)}}},[]);var Gi=Object(L.useCallback)(function(){if(vo.current)try{}catch(Bt){console.log(Bt,"---- to set md editor body height")}},[Jo,vo,Ii]);Object(L.useEffect)(function(){function Bt(){var Ht=new G.default(function(gn){var wn=Object(re.a)(gn),Dn;try{for(wn.s();!(Dn=wn.n()).done;){var bn=Dn.value;(bn.target.offsetHeight>0||bn.target.offsetWidth>0)&&(Gi(),ve.setSize("100%","100%"),ve.refresh())}}catch(Xn){wn.e(Xn)}finally{wn.f()}});return Ht.observe(ui.current.parentElement),Ht}if(ve){var qt=Bt();return function(){qt.unobserve(ui.current.parentElement)}}},[ve,Gi]),Object(L.useEffect)(function(){if(ve){for(var Bt=[],qt=function(){var bn=gn[Ht];wn=Object(A.a)(bn,2);var Xn=wn[0],bi=wn[1],hn=Object(R.a)({},Xn,function(){Xo(bi)});Bt.push(hn),ve.addKeyMap(hn)},Ht=0,gn=Object.entries(Ye);Ht<gn.length;Ht++){var wn;qt()}return fi.current=setInterval(function(){Co.current&&Eo()},4e3),function(){clearInterval(fi.current);var Dn=Object(re.a)(Bt),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(){Be!==Ii&&wi(Be)},[Be]),Object(ht.a)(function(){if(!Li&&Ki>0){var Bt=new Date().getTime(),qt=window.sessionStorage.getItem(Di);Bt>=Ki+$&&(!qt||qt!==wt)&&(window.sessionStorage.setItem(Di,wt),yi(!0))}},$),Object(L.useEffect)(function(){_i(vi)},[ve,vi]),Object(L.useEffect)(function(){ve&&(It&&ve.focus())},[ve,It]),Object(L.useEffect)(function(){if($t&&ve){var Bt=ve.getScrollerElement();function qt(Ht){var gn=Ht.target;if(uo.current){var wn=gn.scrollTop/gn.scrollHeight;uo.current.scrollTop=uo.current.scrollHeight*wn}}return Bt.addEventListener("scroll",qt),function(){Bt.removeEventListener("scroll",qt)}}},[ve,$t]),Object(L.useEffect)(function(){if(ve&&Jn){function Bt(qt,Ht){Jn(qt,Ht)}return ve.on("beforeChange",Bt),function(){ve.off("beforeChange",Bt)}}},[ve,Jn]),Object(L.useEffect)(function(){if(ve&&Pt){function Bt(){Pt(ve.getValue())}return ve.on("blur",Bt),function(){ve.off("blur",Bt)}}},[ve,Pt]),Object(L.useEffect)(function(){if(ve){function Bt(qt){var Ht=qt.getValue();kt(Ht),li(new Date().getTime()),qt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),et&&et(Ht)}return ve.on("change",Bt),function(){ve.off("change",Bt)}}},[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(Bt){var qt=ve.getCursor(),Ht=ve.getSelection(),gn=Ht.split(`
|
|
`);switch(Bt){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(wn){return wn===""?"":"- ".concat(wn)}).join(`
|
|
`)),ve.focus();case"list-ol":return Ht===""?ve.replaceSelection("1. "+Ht):ve.replaceSelection(gn.map(function(wn,Dn){return wn===""?"":"".concat(Dn+1,". ").concat(wn)}).join(`
|
|
`)),ve.focus();case"add-null-ch":return Ht===""&&ve.setCursor(qt.line,qt.ch+1),ve.replaceSelection(C),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 _i(!$t),ve.focus();case"trigger-full-screen":return wi(!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]),Fi=Object(L.useCallback)(function(Bt){$i("");switch(go){case st:var qt=Bt.title,Ht=Bt.link;return ve.replaceSelection("[".concat(qt,"](").concat(Ht,")")),ve.focus();case ct:var gn=Bt.language,wn=Bt.content;return ve.replaceSelection(["```"+gn,wn,"```"].join(`
|
|
`)),ve.focus();case St:var Dn=Bt.src,bn=Bt.alt,Xn=Bt.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=Bt.row,hn=Bt.col,xo=Bt.align,Nn=`
|
|
`,Ci=0;Ci<bi;Ci++){for(var Tn=[],eo=[],ur=0;ur<hn;ur++)Ci===1&&eo.push(Dt[xo]),Tn.push(" ");Ci===1&&(Nn+="| ".concat(eo.join(" | "),` |
|
|
`)),Nn+="| ".concat(Tn.join(hn===1?"":" | "),` |
|
|
`)}return ve.replaceSelection(Nn+`
|
|
`),ve.focus();default:throw new Error}},[ve,go]),Yo=Object(L.useMemo)(function(){switch(go){case st:return T.a.createElement(ze,{callback:Fi,onCancel:yo});case ct:return T.a.createElement(Ne.b,{callback:Fi,onCancel:yo});case St:return T.a.createElement(ft,{callback:Fi,onCancel:yo});case xt:return T.a.createElement(Wt,{callback:Fi,onCancel:yo});default:return null}},[go]);function yo(){$i("")}Object(L.useEffect)(function(){if(To.current){var Bt=To.current,qt=!1,Ht=0;function gn(bn){qt=!0,Ht=bn.pageY}function wn(){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 Bt.addEventListener("mousedown",gn),document.addEventListener("mousemove",Dn),document.addEventListener("mouseup",wn),function(){Bt.removeEventListener("mousedown",gn),document.removeEventListener("mousemove",Dn),document.removeEventListener("mouseup",wn)}}},[ve,To]),Object(L.useEffect)(function(){ei(un)},[un]);var Ro=O(Gt),Fr=O(Jo),yr={width:Ro,height:Fr},ya=Object(L.useMemo)(function(){if(Ki){var Bt=new Date(Ki),qt=Bt.getHours(),Ht=Bt.getMinutes(),gn=Bt.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},[Ki]);function br(){window.sessionStorage.removeItem(Di),yi(!1),li(0)}function zr(){yi(!1),li(0),ve.setValue(window.sessionStorage.getItem(Di))}function Cr(Bt,qt){var Ht=ve.getValue();Ht=Ht.replace(Bt,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(Gn?"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(Ke,{value:wt}),oi!=="stex"&&T.a.createElement(ke.a,{edit:!0,value:wt,replaces:Cr})):null))),Rt?T.a.createElement("a",{ref:To,className:"editor-resize"}):null,T.a.createElement(M.a,null,jt[go]?T.a.createElement(de.a,{centered:!0,title:jt[go],visible:!0,onCancel:yo,footer:null},Yo):null))}},RMFE:function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0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DREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},SJMd:function(Oe,xe){/**
|
|
* @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,E;window.PR_SHOULD_USE_CONTINUATION=!0;var ie,A;(function(){var R=window,F=["break,continue,do,else,for,if,return,while"],K=[F,"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=[K,"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"],G="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"],j="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",w=[F,"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=[F,"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=[F,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],Je=[T,q,se,D,j,w,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",Ke="kwd",Ee="com",Ce="typ",Pe="lit",be="pun",_="pln",Ae="tag",me="dec",S="src",Q="atn",ue="atv",V="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,Ge=He.length;$e<Ge;++$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 Wt={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=Wt[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,ne=Te.length;Xe<ne;++Xe){var Z=Te[Xe];if(/\\[bdsw]/i.test(Z))Le.push(Z);else{var $=bt(Z),C;Xe+2<ne&&Te[Xe+1]==="-"?(C=bt(Te[Xe+2]),Xe+=2):C=$,Dt.push([$,C]),C<65||$>122||(C<65||$>90||Dt.push([Math.max(65,$)|32,Math.min(C,90)|32]),C<97||$>122||Dt.push([Math.max(97,$)&~32,Math.min(C,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 B=Dt[Xe];B[0]<=O[1]+1?O[1]=Math.max(O[1],B[1]):x.push(O=B)}for(var Xe=0;Xe<x.length;++Xe){var B=x[Xe];Le.push(ut(B[0])),B[1]>B[0]&&(B[1]+1>B[0]&&Le.push("-"),Le.push(ut(B[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 ne=Te[Le];if(ne==="(")++Xe;else if(ne.charAt(0)==="\\"){var Z=+ne.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 ne=Te[Le];if(ne==="(")++Xe,ht[Xe]||(Te[Le]="(?:");else if(ne.charAt(0)==="\\"){var Z=+ne.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 ne=Te[Le],$=ne.charAt(0);ne.length>=2&&$==="["?Te[Le]=st(ne):$!=="\\"&&(Te[Le]=ne.replace(/[a-zA-Z]/g,function(O){var B=O.charCodeAt(0);return"["+String.fromCharCode(B&~32,B|32)+"]"}))}return Te.join("")}for(var ct=[],$e=0,Ge=He.length;$e<Ge;++$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,Ge=[],ot=0;function Wt(bt){var ut=bt.nodeType;if(ut==1){if(pt.test(bt.className))return;for(var st=bt.firstChild;st;st=st.nextSibling)Wt(st);var St=bt.nodeName.toLowerCase();(St==="br"||St==="li")&&(gt[ot]=`
|
|
`,Ge[ot<<1]=$e++,Ge[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,Ge[ot<<1]=$e,$e+=ct.length,Ge[ot++<<1|1]=bt)}}return Wt(He),{sourceCode:gt.join("").replace(/\n$/,""),spans:Ge}}function ce(He,rt,pt,gt,$e){if(!pt)return;var Ge={sourceNode:He,pre:1,langExtension:null,numberLines:null,sourceCode:pt,spans:null,basePos:rt,decorations:null};gt(Ge),$e.push.apply($e,Ge.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),Wt=[],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)||(Wt.push(Te),bt[Dt]=null)}Wt.push(/[\0-\uffff]/),gt=M(Wt)})();var $e=rt.length,Ge=function(ot){for(var Wt=ot.sourceCode,bt=ot.basePos,ut=ot.sourceNode,st=[bt,_],St=0,ct=Wt.match(gt)||[],xt={},Te=0,Dt=ct.length;Te<Dt;++Te){var ht=ct[Te],Le=xt[ht],Xe=void 0,ne;if(typeof Le=="string")ne=!1;else{var Z=pt[ht.charAt(0)];if(Z)Xe=ht.match(Z[1]),Le=Z[0];else{for(var $=0;$<$e;++$)if(Z=rt[$],Xe=ht.match(Z[1]),Xe){Le=Z[0];break}Xe||(Le=_)}ne=Le.length>=5&&Le.substring(0,5)==="lang-",ne&&!(Xe&&typeof Xe[1]=="string")&&(ne=!1,Le=S),ne||(xt[ht]=Le)}var C=St;if(St+=ht.length,!ne)st.push(bt+C,Le);else{var x=Xe[1],O=ht.indexOf(x),B=O+x.length;Xe[2]&&(B=ht.length-Xe[2].length,O=B-x.length);var ge=Le.substring(5);ce(ut,bt+C,ht.substring(0,O),Ge,st),ce(ut,bt+C+O,x,N(ge,x),st),ce(ut,bt+C+B,ht.substring(B),Ge,st)}}ot.decorations=st};return Ge}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 Ge=$e>1?"":`
|
|
\r`,ot=Ge?".":"[\\S\\s]",Wt="/(?=[^/*"+Ge+"])(?:[^/\\x5B\\x5C"+Ge+"]|\\x5C"+ot+"|\\x5B(?:[^\\x5C\\x5D"+Ge+"]|\\x5C"+ot+")*(?:\\x5D|$))+/";pt.push(["lang-regex",RegExp("^"+De+"("+Wt+")")])}var bt=He.types;bt&&pt.push([Ce,bt]);var ut=(""+He.keywords).replace(/^ | $/g,"");ut.length&&pt.push([Ke,new RegExp("^(?:"+ut.replace(/[\s,]+/g,"|")+")\\b"),null]),rt.push([_,/^\s+/,null,` \r
|
|
\xA0`]);var st="^.[^\\s\\w.$@'\"`/\\\\]*";return He.regexLiterals&&(st+="(?!s*/)"),pt.push([Pe,/^@[a-z_$][a-z_$@0-9]*/i,null],[Ce,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_,/^[a-z_$][a-z_$@0-9]*/i,null],[Pe,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_,/^\\[\s\S]?/,null],[be,new RegExp(st),null]),qe(rt,pt)}var Fe=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/,Ge=He.ownerDocument,ot=Ge.createElement("li");He.firstChild;)ot.appendChild(He.firstChild);var Wt=[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 ne=Le.substring(0,Xe.index);Te.nodeValue=ne;var Z=Le.substring(Xe.index+Xe[0].length);if(Z){var $=Te.parentNode;$.insertBefore(Ge.createTextNode(Z),Te.nextSibling)}ut(Te),ne||Te.parentNode.removeChild(Te)}}}function ut(Te){for(;!Te.nextSibling;)if(Te=Te.parentNode,!Te)return;function Dt(Xe,ne){var Z=ne?Xe.cloneNode(!1):Xe,$=Xe.parentNode;if($){var C=Dt($,1),x=Xe.nextSibling;C.appendChild(Z);for(var O=x;O;O=x)x=O.nextSibling,C.appendChild(O)}return Z}for(var ht=Dt(Te.nextSibling,0),Le;(Le=ht.parentNode)&&Le.nodeType===1;)ht=Le;Wt.push(ht)}for(var st=0;st<Wt.length;++st)bt(Wt[st]);rt===(rt|0)&&Wt[0].setAttribute("value",rt);var St=Ge.createElement("ol");St.className="linenums";for(var ct=Math.max(0,rt-1|0)||0,st=0,xt=Wt.length;st<xt;++st)ot=Wt[st],ot.className="L"+(st+ct)%10,ot.firstChild||ot.appendChild(Ge.createTextNode("\xA0")),St.appendChild(ot);He.appendChild(St)}function Ne(He){var rt=/\bMSIE\s(\d+)/.exec(navigator.userAgent);rt=rt&&+rt[1]<=8;var pt=/\n/g,gt=He.sourceCode,$e=gt.length,Ge=0,ot=He.spans,Wt=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 ne=null;bt<Wt;){var Z=ot[bt],$=ot[bt+2]||$e,C=ut[St+2]||$e,ht=Math.min($,C),x=ot[bt+1],O;if(x.nodeType!==1&&(O=gt.substring(Ge,ht))){rt&&(O=O.replace(pt,"\r")),x.nodeValue=O;var B=x.ownerDocument,ge=B.createElement("span");ge.className=ut[St+1];var Se=x.parentNode;Se.replaceChild(ge,x),ge.appendChild(x),Ge<$&&(ot[bt+1]=x=B.createTextNode(gt.substring(ht,$)),Se.insertBefore(x,ge.nextSibling))}Ge=ht,Ge>=$&&(bt+=2),Ge>=C&&(St+=2)}}finally{Le&&(Le.style.display=Xe)}}var We={};function he(He,rt){for(var pt=rt.length;--pt>=0;){var gt=rt[pt];We.hasOwnProperty(gt)?R.console&&console.warn("cannot override language handler %s",gt):We[gt]=He}}function N(He,rt){return He&&We.hasOwnProperty(He)||(He=/^\s*</.test(rt)?"default-markup":"default-code"),We[He]}he(Fe,["default-code"]),he(qe([],[[_,/^[^<?]+/],[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([[_,/^[\s]+/,null,` \r
|
|
`],[ue,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Ae,/^^<\/?[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:w,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),he(dt({keywords:j,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:G,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,N(rt,gt)(He),Ne(He)}catch($e){R.console&&console.log($e&&$e.stack||$e)}}function Tt(He,rt,pt){var gt=pt||!1,$e=rt||null,Ge=document.createElement("div");Ge.innerHTML="<pre>"+He+"</pre>",Ge=Ge.firstChild,gt&&ze(Ge,gt,!0);var ot={langExtension:$e,numberLines:gt,sourceNode:Ge,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return nt(ot),Ge.innerHTML}function Ut(He,rt){var pt=rt||document.body,gt=pt.ownerDocument||document;function $e(Z){return pt.getElementsByTagName(Z)}for(var Ge=[$e("pre"),$e("code"),$e("xmp")],ot=[],Wt=0;Wt<Ge.length;++Wt)for(var bt=0,ut=Ge[Wt].length;bt<ut;++bt)ot.push(Ge[Wt][bt]);Ge=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 ne(){for(var Z=R.PR_SHOULD_USE_CONTINUATION?st.now()+250:Infinity;St<ot.length&&st.now()<Z;St++){for(var $=ot[St],C=Xe,x=$;x=x.previousSibling;){var O=x.nodeType,B=(O===7||O===8)&&x.nodeValue;if(B?!/^\??prettify\b/.test(B):O!==3||/\S/.test(x.nodeValue))break;if(B){C={},B.replace(/\b(\w+)=([\w:.%+-]+)/g,function(un,Ft,Gn){C[Ft]=Gn});break}}var ge=$.className;if((C!==Xe||xt.test(ge))&&!Te.test(ge)){for(var Se=!1,Ye=$.parentNode;Ye;Ye=Ye.parentNode){var jt=Ye.tagName;if(Le.test(jt)&&Ye.className&&xt.test(Ye.className)){Se=!0;break}}if(!Se){$.className+=" prettyprinted";var zt=C.lang;if(!zt){zt=ge.match(ct);var je;!zt&&(je=Re($))&&ht.test(je.tagName)&&(zt=je.className.match(ct)),zt&&(zt=zt[1])}var Ot;if(Dt.test($.tagName))Ot=1;else{var Ct=$.currentStyle,et=gt.defaultView,Zt=Ct?Ct.whiteSpace:et&&et.getComputedStyle?et.getComputedStyle($,null).getPropertyValue("white-space"):0;Ot=Zt&&Zt.substring(0,3)==="pre"}var Gt=C.linenums;(Gt=Gt==="true"||+Gt)||(Gt=ge.match(/\blinenums\b(?::(\d+))?/),Gt=Gt?Gt[1]&&Gt[1].length?+Gt[1]:!0:!1),Gt&&ze($,Gt,Ot);var at={langExtension:zt,sourceNode:$,numberLines:Gt,pre:Ot,sourceCode:null,basePos:null,spans:null,decorations:null};nt(at)}}}St<ot.length?R.setTimeout(ne,250):typeof He=="function"&&He()}ne()}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:Ke,PR_LITERAL:Pe,PR_NOCODE:V,PR_PLAIN:_,PR_PUNCTUATION:be,PR_SOURCE:S,PR_STRING:ke,PR_TAG:Ae,PR_TYPE:Ce,prettyPrintOne:re?R.prettyPrintOne=Tt:ie=Tt,prettyPrint:A=re?R.prettyPrint=Ut:A=Ut},At=R.define;typeof At=="function"&&At.amd&&At("google-code-prettify",[],function(){return ft})})()},SMhR:function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+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kCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},TGq3:function(Oe,xe,h){Oe.exports=h.p+"static/lockclose.365036e8.svg"},UUDw:function(Oe,xe,h){Oe.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},UeE2:function(Oe,xe,h){"use strict";h.r(xe);var I=h("5NDa"),de=h("5rEg"),re=h("2qtc"),X=h("kLXV"),E=h("miYZ"),ie=h("tsqr"),A=h("9og8"),R=h("k1fw"),F=h("y8nQ"),K=h("Vl3Y"),L=h("tJVT"),T=h("PpiC"),se=h("Znn+"),q=h("ZTPi"),G=h("WmNS"),D=h.n(G),j=h("q1tI"),w=h.n(j),le=h("9kvl"),Me=h("Ot1p"),Je=h("9Bee"),we=h("HBuW"),ke=h("+L6B"),Ke=h("2/Rp"),Ee=h("14J3"),Ce=h("BMrR"),Pe=h("jCWc"),be=h("kPKH"),_=h("OaEy"),Ae=h("2fM7"),me=h("7Kak"),S=h("9yH6"),Q=h("1vsH"),ue=h("uIXO"),V=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"],Fe=function($e,Ge){var ot=$e.problemset,Wt=$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(j.useState)([]),Dt=Object(L.a)(Te,2),ht=Dt[0],Le=Dt[1],Xe=Object(j.useState)(),ne=Object(L.a)(Xe,2),Z=ne[0],$=ne[1],C=Object(j.useState)([]),x=Object(L.a)(C,2),O=x[0],B=x[1],ge=Object(j.useState)(""),Se=Object(L.a)(ge,2),Ye=Se[0],jt=Se[1],zt=Object(j.useState)(!1),je=Object(L.a)(zt,2),Ot=je[0],Ct=je[1],et=Object(j.useState)(""),Zt=Object(L.a)(et,2),Gt=Zt[0],at=Zt[1],un=Object(j.useState)(5),Ft=Object(L.a)(un,2),Gn=Ft[0],In=Ft[1],It=Object(j.useState)(!1),vi=Object(L.a)(It,2),si=vi[0],Qn=vi[1],oi=Object(ce.i)();Object(j.useEffect)(function(){Le(["","","",""])},[]),Object(j.useEffect)(function(){console.log(ht,"questionChoiceList")},[ht]),Object(j.useEffect)(function(){var Pn,Jt;if(!(ct!=null&&ct.challenge_id)){Qn(!0);return}jt(ct==null?void 0:ct.subject),In(parseInt(ct==null?void 0:ct.question_score)),Le(ct==null||((Pn=ct.choose_contents)===null||Pn===void 0)?void 0:Pn.map(function(en){return en.option_name}));var An=[];ct==null||((Jt=ct.standard_answer)===null||Jt===void 0)||Jt.split("").map(function(en,yn){An.push(dt.indexOf(en))}),B(An)},[ct]),Object(j.useImperativeHandle)(Ge,function(){return{onSave:cn,onReset:ji,isEdit:si}});var ji=function(){Le(["","","",""]),jt(""),B([])},Di=function(){for(var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],An=Object(v.a)(Jt),en=An.sort(),yn=0;yn<en.length-1;yn++)if(en[yn]==en[yn+1])return!0;return!1},cn=function(){var Pn=Object(A.a)(D.a.mark(function Jt(){var An,en;return D.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(Ye){Be.next=4;break}return document.getElementById("question-scroll").scrollTo(0,0),Ct(!0),Be.abrupt("return",!1);case 4:if(An=ht.findIndex(function(Pt){return!Pt}),!(An>-1)){Be.next=9;break}return document.getElementById("question-scroll").scrollTo(0,250),at("\u8BF7\u5148\u8F93\u5165 ".concat(dt[An]," \u9009\u9879\u7684\u5185\u5BB9")),Be.abrupt("return",!1);case 9:if(!Di(ht)){Be.next=13;break}return document.getElementById("question-scroll").scrollTo(0,250),at("\u9009\u9879\u5DF2\u91CD\u590D"),Be.abrupt("return",!1);case 13:if(O.length){Be.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"),Be.abrupt("return",!1);case 17:return en=ht.map(function(Pt,Jn){return{choice_text:Pt,is_answer:!!O.includes(Jn)}}),Be.abrupt("return",{subject:Ye,question:{cnt:en.map(function(Pt){return Pt.choice_text})},choice:{answer:en.map(function(Pt){return Pt.is_answer})}});case 19:case"end":return Be.stop()}},Jt)}));return function(){return Pn.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"}],Bi=function(){var Pn=Object(A.a)(D.a.mark(function Jt(An){return D.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:yn.t0=An.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(A.a)(D.a.mark(function Pt(){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()}},Pt)}))()}}),yn.abrupt("break",11);case 5:return yn.next=7,ut({type:"exercise/exeriseMoveUpDown",payload:{id:ct.question_id,opr:An.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(An){return Pn.apply(this,arguments)}}(),Li=function(){var Jt;return w.a.createElement("aside",null,w.a.createElement("p",{className:qe.a.titleWrap},w.a.createElement("span",{className:qe.a.required},"*"),w.a.createElement("span",{className:qe.a.title},"\u9898\u5E72\uFF1A")),w.a.createElement(Me.a,{id:"single-question-title",watch:!0,isFocus:!0,height:155,defaultValue:Ye,onChange:function(en){jt(en),Ct(!1)}}),Ot&&w.a.createElement("div",{className:qe.a.error},"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),w.a.createElement("p",{className:qe.a.titleWrap},w.a.createElement("span",{className:qe.a.required},"*"),w.a.createElement("span",{className:qe.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",w.a.createElement("span",{className:qe.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ht.map(function(An,en){return w.a.createElement("div",{className:qe.a.choiceWrap,key:en},w.a.createElement(M.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},w.a.createElement("div",{className:"".concat(qe.a.answer," ").concat(O.includes(en)?qe.a.activeAnswer:""),onClick:function(){at(""),O.includes(en)?B(O.filter(function(Be){return Be!==en})):B([].concat(Object(v.a)(O),[en]))}},dt[en])),w.a.createElement("div",{className:qe.a.editorWrap},Z===en?w.a.createElement(Me.a,{id:"single-question-option-".concat(en),watch:!0,isFocus:!0,height:155,defaultValue:An,onChange:function(Be){at(""),ht[en]=Be,Le(ht)}}):w.a.createElement("div",{className:qe.a.htmlWrap,onClick:function(){return $(en)}},w.a.createElement(Je.a,{value:An}))),en>1&&w.a.createElement(M.a,{title:"\u5220\u9664"},w.a.createElement("i",{className:"".concat(qe.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){Le(ht.filter(function(Jn,Yn){return Yn!==en}));var Be=O.filter(function(Jn,Yn){return Jn!==en}),Pt=Be.map(function(Jn){return Jn<en?Jn:Jn-1});B(Pt)}})),en<7&&en===ht.length-1&&w.a.createElement(M.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},w.a.createElement("i",{className:"".concat(qe.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Le([].concat(Object(v.a)(ht),[""]))}})))}),Gt&&w.a.createElement("div",{className:"".concat(qe.a.error," mt10")},Gt),w.a.createElement("div",{className:"mt10"},w.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"),w.a.createElement("p",null,"\u6807\u51C6\u7B54\u6848\uFF1A",w.a.createElement("span",{className:"c-light-primary"},O==null||((Jt=O.sort(function(An,en){return An-en}))===null||Jt===void 0)?void 0:Jt.map(function(An){return dt[An]})))))};return console.log(O,"activeAnswer"),w.a.createElement("section",{className:qe.a.wrap},Li())},ze=Object(le.a)(function(gt){var $e=gt.problemset,Ge=gt.loading,ot=gt.globalSetting;return{problemset:$e,globalSetting:ot,loading:Ge.effects}},null,null,{forwardRef:!0})(Object(j.forwardRef)(Fe)),Ne=function($e){var Ge=$e.visible,ot=Ge===void 0?!1:Ge,Wt=$e.is_published,bt=$e.match,ut=$e.editData,st=$e.onOk,St=$e.onCancel,ct=Object(j.useState)([10,20]),xt=Object(L.a)(ct,2),Te=xt[0],Dt=xt[1],ht=K.a.useForm(),Le=Object(L.a)(ht,1),Xe=Le[0],ne=Object(j.useState)({}),Z=Object(L.a)(ne,2),$=Z[0],C=Z[1],x=Object(j.useRef)();Object(j.useEffect)(function(){return document.getElementById("modal-level-question").style.transform="none",function(){document.getElementById("modal-level-question").style.transform="translateX(0)"}},[]),Object(j.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]},B=function(je,Ot){C(Object(R.a)({},Ot)),"difficult"in je&&Se(je.difficult)},ge=function(){var zt=Object(A.a)(D.a.mark(function je(){var Ot,Ct,et;return D.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Ct="",Gt.next=3,x.current.onSave();case 3:if(et=Gt.sent,et){Gt.next=6;break}return Gt.abrupt("return",!1);case 6:return(Ot=et.choice)===null||Ot===void 0||Ot.answer.map(function(at,un){at&&(Ct+=Q.m[un])}),Gt.abrupt("return",{challenge_choose:{subject:et.subject,answer:$.task_pass,standard_answer:Ct,score:$.score,difficult:$.difficult},challenge_tag:$.challenge_tag,question:et.question,choice:et.choice});case 8:case"end":return Gt.stop()}},je)}));return function(){return zt.apply(this,arguments)}}(),Se=function(je){var Ot=O[je],Ct=Ot==null?void 0:Ot[0];Dt(Ot),Xe.setFieldsValue({score:Ct}),C(Object(R.a)(Object(R.a)({},Xe.getFieldsValue()),{score:Ct}))},Ye=function(){var zt=Object(A.a)(D.a.mark(function je(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&&(ie.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&&(ie.b.success("\u64CD\u4F5C\u6210\u529F"),st());case 39:case"end":return at.stop()}},je)}));return function(Ot){return zt.apply(this,arguments)}}(),jt=function(){var zt=Object(A.a)(D.a.mark(function je(){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()}},je)}));return function(){return zt.apply(this,arguments)}}();return w.a.createElement("div",{className:V.a.modal},w.a.createElement("div",{className:V.a.main},w.a.createElement("div",{className:V.a.title},w.a.createElement("span",{className:V.a.name},ut?"\u7F16\u8F91\u9898\u76EE":"\u6DFB\u52A0\u9898\u76EE"),w.a.createElement("span",{className:V.a.edit,onClick:St}," ",w.a.createElement("i",{className:"iconfont icon-guanbi1"})," ")),w.a.createElement("div",{className:V.a.body,id:"question-scroll"},w.a.createElement(K.a,{form:Xe,className:V.a.form,scrollToFirstError:!0,layout:"vertical",onValuesChange:B,onFinish:Ye,initialValues:{difficult:1,score:10}},w.a.createElement(ze,{ref:x,editData:ut}),w.a.createElement(K.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"}]},w.a.createElement(Me.a,{watch:!0,defaultValue:(ut==null?void 0:ut.answer)||""})),w.a.createElement(K.a.Item,{name:"difficult",label:"\u96BE\u5EA6\u7CFB\u6570:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6\u7CFB\u6570"}]},w.a.createElement(S.a.Group,{disabled:Wt},w.a.createElement(S.a,{value:1},"\u7B80\u5355"),w.a.createElement(S.a,{style:{marginLeft:80},value:2},"\u4E2D\u7B49"),w.a.createElement(S.a,{style:{marginLeft:80},className:"ml80",value:3},"\u56F0\u96BE"))),w.a.createElement(Ce.a,{className:"customAddItemSelect"},w.a.createElement(be.a,null,w.a.createElement(K.a.Item,{name:"score",label:"\u5956\u52B1\u91D1\u5E01:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5956\u52B1\u7ECF\u9A8C\u503C"}]},w.a.createElement(Ae.a,{disabled:Wt,bordered:!1},Te.map(function(zt){return w.a.createElement(Ae.a.Option,{key:zt,value:zt},zt)})))),w.a.createElement(be.a,{style:{paddingTop:65}},w.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"))))),w.a.createElement("div",{className:V.a.btns},w.a.createElement(Ke.a,{size:"large",style:{marginRight:20},onClick:St},"\u53D6\u6D88"),w.a.createElement(Ke.a,{size:"large",type:"primary",onClick:jt},"\u4FDD\u5B58"))))},We=Ne,he=h("mepR"),N=h.n(he),nt=h("9ZNV"),Tt=h("nuEh"),Ut=h("UqFu"),ft=h("lzim"),At=h("xKgJ"),He=q.a.TabPane,rt=function($e){var Ge,ot,Wt=$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=K.a.useForm(),Te=Object(L.a)(xt,1),Dt=Te[0],ht=Object(j.useState)({}),Le=Object(L.a)(ht,2),Xe=Le[0],ne=Le[1],Z=Object(j.useState)([]),$=Object(L.a)(Z,2),C=$[0],x=$[1],O=Object(j.useState)(!0),B=Object(L.a)(O,2),ge=B[0],Se=B[1],Ye=Object(j.useState)(!0),jt=Object(L.a)(Ye,2),zt=jt[0],je=jt[1],Ot=Object(j.useState)(!1),Ct=Object(L.a)(Ot,2),et=Ct[0],Zt=Ct[1],Gt=Object(j.useState)(null),at=Object(L.a)(Gt,2),un=at[0],Ft=at[1],Gn=Object(j.useState)(null),In=Object(L.a)(Gn,2),It=In[0],vi=In[1],si=Object(j.useState)("1"),Qn=Object(L.a)(si,2),oi=Qn[0],ji=Qn[1],Di=Object(j.useState)(1),cn=Object(L.a)(Di,2),Rt=cn[0],Bi=cn[1],Li=Object(j.useRef)({subject:"",task_pass:""}),Pn=Object(j.useRef)(null),Jt=bt.is_published,An=bt.id,en=Wt.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(j.useEffect)(function(){var Et;return St!=null&&(Et=St.query)!==null&&Et!==void 0&&Et.tab&&ji(St.query.tab),Jn(),Yn(),function(){clearTimeout(Pn.current)}},[St.pathname]);var Be=function(){clearTimeout(Pn.current),Pn.current=setTimeout(function(){var wt=Dt.getFieldsValue(),kt=wt.subject,nn=wt.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)},Pt=function(wt,kt){ne(Object(R.a)({},kt)),Be()},Jn=function(){var Et=Object(A.a)(D.a.mark(function wt(){var kt;return D.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return je(!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},ne(Object(R.a)({},Li.current)),Dt.setFieldsValue(Object(R.a)({},kt)),je(!1);case 9:case"end":return mn.stop()}},wt)}));return function(){return Et.apply(this,arguments)}}(),Yn=function(){var Et=Object(A.a)(D.a.mark(function wt(){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()}},wt)}));return function(){return Et.apply(this,arguments)}}(),ao=function(){var Et=Object(A.a)(D.a.mark(function wt(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&&(ie.b.success($t.message),ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),ut({type:"practiceSetting/setUpdateIndex"}),ji("2"),Y());case 6:case"end":return hi.stop()}},wt)}));return function(kt){return Et.apply(this,arguments)}}(),so=function(){return oi==="1"?null:w.a.createElement("span",{className:N.a.addBtn,onClick:function(){return Zt(!0)}},w.a.createElement("i",{className:"iconfont icon-tianjiatimu"}),"\u6DFB\u52A0\u9898\u76EE")},d=function(wt){var kt,nn=function(){ji(wt),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(wt){var kt=function(){var nn=Object(A.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:wt}));case 2:$t=hi.sent,$t.challenge_id&&(Yn(),ie.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(A.a)(D.a.mark(function wt(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()}},wt)}));return function(kt){return Et.apply(this,arguments)}}(),u=function(){var Et=Object(A.a)(D.a.mark(function wt(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()}},wt)}));return function(kt){return Et.apply(this,arguments)}}(),m=function(){var Et=Object(A.a)(D.a.mark(function wt(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,Ft(Object(R.a)(Object(R.a)({},nn),{},{choose_id:kt})),Zt(!0);case 5:case"end":return $t.stop()}},wt)}));return function(kt){return Et.apply(this,arguments)}}(),c=function(){Ve()},Y=function(){Bi(Rt+1),Jn()},Ve=function(){var wt,kt=function(){le.d.push("/shixuns/".concat(An,"/challenges")),ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};bt!=null&&(wt=bt.sideBar)!==null&&wt!==void 0&&wt.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 C.map(function(wt,kt){var nn=wt.challenge_choose_id,mn=wt.subject,$t=wt.choose_contents,_i=wt.standard_answer,hi=wt.answer,Ai=wt.score,Ii=wt.category;return w.a.createElement("div",{key:nn,className:N.a.list},w.a.createElement("div",{className:N.a.top},w.a.createElement("div",{className:N.a.left},w.a.createElement("div",{className:N.a.title},w.a.createElement("div",{className:N.a.fs},kt+1,". "),w.a.createElement(Je.a,{value:mn})),$t.map(function(wi,lo){return w.a.createElement("ul",{key:lo,className:wi.right_key?N.a.qsActive:N.a.qs},w.a.createElement("li",null,yn[wi.position]),w.a.createElement("li",null,w.a.createElement(Je.a,{value:wi.option_name})))})),w.a.createElement("div",{className:N.a.right},w.a.createElement("i",{onClick:function(){return m(nn)},className:"iconfont icon-xiaoxiugai"}),w.a.createElement("i",{onClick:function(){return r(nn)},className:"iconfont icon-shanchu23"}),kt!==C.length-1&&w.a.createElement("i",{onClick:function(){return u(nn)},className:"iconfont icon-xiayi2"}),kt!==0&&w.a.createElement("i",{onClick:function(){return a(nn)},className:"iconfont icon-shangyi2"}))),w.a.createElement("div",{className:N.a.bt},"\u9898\u578B\uFF1A",Ii===1?"\u5355\u9009\u9898":"\u591A\u9009\u9898","\xA0\xA0\xA0\xA0\u5956\u52B1\u91D1\u5E01\uFF1A",Ai),w.a.createElement("div",{className:N.a.answer},w.a.createElement("p",null,"\u6807\u51C6\u7B54\u6848\uFF1A",_i),w.a.createElement("p",null,w.a.createElement("div",{className:N.a.fs},"\u53C2\u8003\u7B54\u6848\uFF1A"),w.a.createElement(Je.a,{value:hi}))))})},Lt=function(){Zt(!1),Ft(null),Yn()},Qe=function(){Zt(!1),Ft(null)};return w.a.createElement("section",{className:N.a.bg,style:{marginBottom:oi==="1"?67:0}},w.a.createElement(q.a,{activeKey:oi,onChange:d,tabBarExtraContent:so()},w.a.createElement(He,{tab:"\u672C\u5173\u4EFB\u52A1",key:"1"},w.a.createElement(K.a,{key:Rt,form:Dt,scrollToFirstError:!0,className:N.a.formWrap,layout:"vertical",onValuesChange:Pt,onFinish:ao},w.a.createElement("div",{className:N.a.fieldWrap},w.a.createElement(K.a.Item,{initialValue:"",name:"subject",label:"\u4EFB\u52A1\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},w.a.createElement(de.a,{bordered:!1,maxLength:60,suffix:"".concat(((Ge=Xe.subject)===null||Ge===void 0?void 0:Ge.length)||0,"/60"),placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),w.a.createElement("div",{className:N.a.mdWrap},w.a.createElement(K.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"}]},w.a.createElement(Me.a,{key:st.params.challengesId||"3",watch:!0,defaultValue:en.task_pass}))),w.a.createElement(K.a.Item,{noStyle:!0},w.a.createElement(nt.a,{okButtonProps:{htmlType:"submit"},className:"customFixedButton",onCancel:c})),Object(At.o)()&&w.a.createElement("div",{className:N.a.fieldWrap},w.a.createElement(K.a.Item,{initialValue:"",name:"unity_3d_routes",label:"\u5D4C\u5165\u7B2C\u4E09\u65B9\u5E73\u53F0:"},w.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"}))))),w.a.createElement(He,{tab:"\u9898\u76EE",key:"2"},!!C.length&&ve(),!C.length&&w.a.createElement("div",{className:N.a.empty},w.a.createElement("img",{src:ft.m,width:"258"}),w.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&&w.a.createElement(We,{is_published:Jt,visible:et,onCancel:Qe,onOk:Lt,match:st,editData:un}),w.a.createElement(Tt.a,{loading:zt}))},pt=xe.default=Object(le.a)(function(gt){var $e=gt.shixunsDetail,Ge=gt.newCourse,ot=gt.globalSetting,Wt=gt.practiceSetting;return{shixunsDetail:$e,newCourse:Ge,globalSetting:ot,practiceSetting:Wt}})(rt)},UqFu:function(Oe,xe,h){"use strict";h.d(xe,"a",function(){return I});var I=function(re){var X=document.createElement("textarea");return X.value=re,X.value}},"VrN/":function(Oe,xe,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),E=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),ie=/Edge\/(\d+)/.exec(I),A=X||E||ie,R=A&&(X?document.documentMode||6:+(ie||E)[1]),F=!ie&&/WebKit\//.test(I),K=F&&/Qt\/\d+\.\d+/.test(I),L=!ie&&/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),G=/PhantomJS/.test(I),D=!ie&&/AppleWebKit/.test(I)&&/Mobile\/\w+/.test(I),j=/Android/.test(I),w=D||j||/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,F=!0);var ke=le&&(K||T&&(we==null||we<12.11)),Ke=re||A&&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 Pe(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function be(e,t){return Pe(e).appendChild(t)}function _(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 Ae(e,t,i,n){var o=_(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 V(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}:A&&(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"}},Fe={scroll:!1},ze={origin:"*mouse"},Ne={origin:"+move"};function We(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 N(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 At(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 Ge(e){return e.charCodeAt(0)>=768&&$e.test(e)}function ot(e,t,i){for(;(i<0?t>0:t<e.length)&&Ge(e.charAt(t));)t+=i;return t}function Wt(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,W,J){this.level=y,this.from=W,this.to=J}return function(y,W){var J=W=="ltr"?"L":"R";if(y.length==0||W=="ltr"&&!n.test(y))return!1;for(var ye=y.length,fe=[],_e=0;_e<ye;++_e)fe.push(i(y.charCodeAt(_e)));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 Nt=fe[Mt];Nt=="1"&&yt=="r"?fe[Mt]="n":s.test(Nt)&&(yt=Nt,Nt=="r"&&(fe[Mt]="R"))}for(var Yt=1,Kt=fe[0];Yt<ye-1;++Yt){var dn=fe[Yt];dn=="+"&&Kt=="1"&&fe[Yt+1]=="1"?fe[Yt]="1":dn==","&&Kt==fe[Yt+1]&&(Kt=="1"||Kt=="n")&&(fe[Yt]=Kt),Kt=dn}for(var Kn=0;Kn<ye;++Kn){var Pi=fe[Kn];if(Pi==",")fe[Kn]="N";else if(Pi=="%"){var ai=void 0;for(ai=Kn+1;ai<ye&&fe[ai]=="%";++ai);for(var ro=Kn&&fe[Kn-1]=="!"||ai<ye&&fe[ai]=="1"?"1":"N",no=Kn;no<ai;++no)fe[no]=ro;Kn=ai-1}}for(var Ei=0,io=J;Ei<ye;++Ei){var Wi=fe[Ei];io=="L"&&Wi=="1"?fe[Ei]="L":s.test(Wi)&&(io=Wi)}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 Vi=[],_o,Ni=0;Ni<ye;)if(l.test(fe[Ni])){var ps=Ni;for(++Ni;Ni<ye&&l.test(fe[Ni]);++Ni);Vi.push(new p(0,ps,Ni))}else{var Go=Ni,gr=Vi.length,vr=W=="rtl"?1:0;for(++Ni;Ni<ye&&fe[Ni]!="L";++Ni);for(var Zi=Go;Zi<Ni;)if(f.test(fe[Zi])){Go<Zi&&(Vi.splice(gr,0,new p(1,Go,Zi)),gr+=vr);var Wr=Zi;for(++Zi;Zi<Ni&&f.test(fe[Zi]);++Zi);Vi.splice(gr,0,new p(2,Wr,Zi)),gr+=vr,Go=Zi}else++Zi;Go<Ni&&Vi.splice(gr,0,new p(1,Go,Ni))}return W=="ltr"&&(Vi[0].level==1&&(_o=y.match(/^\s+/))&&(Vi[0].from=_o[0].length,Vi.unshift(new p(0,0,_o[0].length))),nt(Vi).level==1&&(_o=y.match(/\s+$/))&&(nt(Vi).to-=_o[0].length,Vi.push(new p(0,ye-_o[0].length,ye)))),W=="rtl"?Vi.reverse():Vi}}();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 ne(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 $(e){e.prototype.on=function(t,i){Te(this,t,i)},e.prototype.off=function(t,i){ht(this,t,i)}}function C(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 B(e){C(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(A&&R<9)return!1;var e=_("div");return"draggable"in e||"dragDrop"in e}(),jt;function zt(e){if(jt==null){var t=_("span","\u200B");be(e,_("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(jt=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&R<8))}var i=jt?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var je;function Ot(e){if(je!=null)return je;var t=be(e,document.createTextNode("A\u062EA")),i=me(t,0,1).getBoundingClientRect(),n=me(t,1,2).getBoundingClientRect();return Pe(e),!i||i.left==i.right?!1:je=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=_("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Gt=null;function at(e){if(Gt!=null)return Gt;var t=be(e,_("span","x")),i=t.getBoundingClientRect(),n=me(t,0,1).getBoundingClientRect();return Gt=Math.abs(i.left-n.left)>1}var un={},Ft={};function Gn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),un[e]=t}function In(e,t){Ft[e]=t}function It(e){if(typeof e=="string"&&Ft.hasOwnProperty(e))e=Ft[e];else if(e&&typeof e.name=="string"&&Ft.hasOwnProperty(e.name)){var t=Ft[e.name];typeof t=="string"&&(t={name:t}),e=At(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 ji(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 Bi(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 Pn(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 An(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 Be(e,t,i){if(i===void 0&&(i=null),!(this instanceof Be))return new Be(e,t,i);this.line=e,this.ch=t,this.sticky=i}function Pt(e,t){return e.line-t.line||e.ch-t.ch}function Jn(e,t){return e.sticky==t.sticky&&Pt(e,t)==0}function Yn(e){return Be(e.line,e.ch)}function ao(e,t){return Pt(e,t)<0?t:e}function so(e,t){return Pt(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 Be(e.first,0);var i=e.first+e.size-1;return t.line>i?Be(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?Be(e.line,t):i<0?Be(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,W){return o.push(y,W)},s,n);for(var l=i.state,f=function(y){i.baseTokens=o;var W=e.state.overlays[y],J=1,ye=0;i.state=!0,mn(e,t.text,W.mode,i,function(fe,_e){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(!_e)return;if(W.opaque)o.splice(Ze,J-Ze,fe,"overlay "+_e),J=Ze+2;else for(;Ze<J;Ze+=2){var vt=o[Ze+1];o[Ze+1]=(vt?vt+" ":"")+"overlay "+_e}},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 Ve(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=ji(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]=ji(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 wt=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),W;for(n&&(W=[]);(n||y.pos<t.ch)&&!y.eol();)y.start=y.pos,l=Et(s,y,p.state),n&&W.push(new wt(y,l,oi(o.mode,p.state)));return n?W:new wt(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,W=new cn(t,e.options.tabSize,n),J,ye=e.options.addModeClass&&[null];for(t==""&&nn(Qe(i,n.state),s);!W.eol();){if(W.pos>e.options.maxHighlightLength?(f=!1,l&&Lt(e,t,n,W.pos),W.pos=t.length,J=null):J=nn(Et(i,W,n.state,ye),s),ye){var fe=ye[0].name;fe&&(J="m-"+(J?fe+" "+J:fe))}if(!f||y!=J){for(;p<W.start;)p=Math.min(W.start,p+5e3),o(p,y);y=J}W.start=W.pos}for(;p<W.pos;){var _e=Math.min(W.pos,p+5e3);o(_e,y),p=_e}}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 W=ce(p.text,null,e.options.tabSize);(o==null||n>W)&&(o=f-1,n=W)}return o}function _i(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,Ai=!1;function Ii(){hi=!0}function wi(){Ai=!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 Ki(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=Pt(t.from,t.to)==0,f=lr(i,o,l),p=Qo(n,s,l),y=t.text.length==1,W=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+W):ye.to=o}}if(p)for(var _e=0;_e<p.length;++_e){var Ze=p[_e];if(Ze.to!=null&&(Ze.to+=W),Ze.from==null){var lt=qi(f,Ze.marker);lt||(Ze.from=W,y&&(f||(f=[])).push(Ze))}else Ze.from+=W,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 Nt=0;Nt<f.length;++Nt)f[Nt].to==null&&(yt||(yt=[])).push(new lo(f[Nt].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 _e=0;_e<fe.markedSpans.length;++_e){var Ze=fe.markedSpans[_e].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(Pt(y.to,f.from)<0||Pt(y.from,f.to)>0)continue;var W=[p,1],J=Pt(y.from,f.from),ye=Pt(y.to,f.to);(J<0||!l.inclusiveLeft&&!J)&&W.push({from:y.from,to:f.from}),(ye>0||!l.inclusiveRight&&!ye)&&W.push({from:f.to,to:y.to}),o.splice.apply(o,W),p+=W.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=Pt(n.from,o.from)||ei(e)-ei(t);if(s)return-s;var l=Pt(n.to,o.to)||Mn(e)-Mn(t);return l||t.id-e.id}function kn(e,t){var i=Ai&&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=Ai&&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=Ai&&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),W=Pt(y.from,i)||ei(p.marker)-ei(o),J=Pt(y.to,n)||Mn(p.marker)-Mn(o);if(W>=0&&J<=0||W<=0&&J>=0)continue;if(W<=0&&(p.marker.inclusiveRight&&o.inclusiveLeft?Pt(y.to,i)>=0:Pt(y.to,i)>0)||W>=0&&(p.marker.inclusiveRight&&o.inclusiveLeft?Pt(y.from,n)<=0:Pt(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(!Gi(e,i))return t;for(;n=Un(i);)i=n.find(1,!0).line;return Jt(i)+1}function Gi(e,t){var i=Ai&&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 Fi(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)},$(Ro);function Fr(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&&Pn(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=Ae("span",null,null,F?"padding-right: .1px":null),n={pre:Ae("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,Ve(e,s,f)),s.styleClasses&&(s.styleClasses.bgClass&&(n.bgClass=V(s.styleClasses.bgClass,n.bgClass||"")),s.styleClasses.textClass&&(n.textClass=V(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(F){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=V(n.pre.className,n.textClass||"")),n}function Bt(e){var t=_("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,W;if(!p.test(t))e.col+=t.length,W=document.createTextNode(f),e.map.push(e.pos,e.pos+t.length,W),A&&R<9&&(y=!0),e.pos+=t.length;else{W=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 _e=document.createTextNode(f.slice(J,J+fe));A&&R<9?W.appendChild(_("span",[_e])):W.appendChild(_e),e.map.push(e.pos,e.pos+fe,_e),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=W.appendChild(_("span",N(vt),"cm-tab")),Ze.setAttribute("role","presentation"),Ze.setAttribute("cm-text"," "),e.col+=vt}else ye[0]=="\r"||ye[0]==`
|
|
`?(Ze=W.appendChild(_("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]),A&&R<9?W.appendChild(_("span",[Ze])):W.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=_("span",[W],Mt,s);if(l)for(var Nt in l)l.hasOwnProperty(Nt)&&Nt!="style"&&Nt!="class"&&yt.setAttribute(Nt,l[Nt]);return e.content.appendChild(yt)}e.content.appendChild(W)}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,W=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>=W)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 wn(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,W="",J,ye,fe=0,_e,Ze,lt,vt,Mt;;){if(fe==p){_e=Ze=lt=ye="",Mt=null,vt=null,fe=Infinity;for(var yt=[],Nt=void 0,Yt=0;Yt<n.length;++Yt){var Kt=n[Yt],dn=Kt.marker;if(dn.type=="bookmark"&&Kt.from==p&&dn.widgetNode)yt.push(dn);else if(Kt.from<=p&&(Kt.to==null||Kt.to>p||dn.collapsed&&Kt.to==p&&Kt.from==p)){if(Kt.to!=null&&Kt.to!=p&&fe>Kt.to&&(fe=Kt.to,Ze=""),dn.className&&(_e+=" "+dn.className),dn.css&&(ye=(ye?ye+";":"")+dn.css),dn.startStyle&&Kt.from==p&&(lt+=" "+dn.startStyle),dn.endStyle&&Kt.to==fe&&(Nt||(Nt=[])).push(dn.endStyle,Kt.to),dn.title&&((Mt||(Mt={})).title=dn.title),dn.attributes)for(var Kn in dn.attributes)(Mt||(Mt={}))[Kn]=dn.attributes[Kn];dn.collapsed&&(!vt||ri(vt.marker,dn)<0)&&(vt=Kt)}else Kt.from>p&&fe>Kt.from&&(fe=Kt.from)}if(Nt)for(var Pi=0;Pi<Nt.length;Pi+=2)Nt[Pi+1]==fe&&(Ze+=" "+Nt[Pi]);if(!vt||vt.from==p)for(var ai=0;ai<yt.length;++ai)wn(t,0,yt[ai]);if(vt&&(vt.from||0)==p){if(wn(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(W){var no=p+W.length;if(!vt){var Ei=no>ro?W.slice(0,ro-p):W;t.addToken(t,Ei,J?J+_e:_e,lt,p+Ei.length==fe?Ze:"",ye,Mt)}if(no>=ro){W=W.slice(ro-p),p=ro;break}p=no,lt=""}W=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=Gi(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 Nn(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"?Kr(e,t,i,n):s=="class"?Vr(e,t):s=="widget"&&Ka(e,t,n)}t.changes=null}function cr(e){return e.node==e.text&&(e.node=_("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),A&&R<8&&(e.node.style.zIndex=2)),e.node}function Va(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(_("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,Vr(e,t)):i&&(t.text.className=i)}function Vr(e,t){Va(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 Kr(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=_("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=_("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(_("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,W=s.hasOwnProperty(y)&&s[y];W&&f.appendChild(_("div",[W],"CodeMirror-gutter-elt","left: "+n.gutterLeft[y]+"px; width: "+n.gutterWidth[y]+"px"))}}}function Ka(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);Gr(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),Vr(e,t),Kr(e,t,i,n),Gr(e,t,n),t.node}function Gr(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=_("div",[p.node],"CodeMirror-linewidget"+(p.className?" "+p.className:""));p.handleMouseEvents||y.setAttribute("cm-ignore-events","true"),Ga(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 Ga(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,_("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Ao(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 P(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ee(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=be(e.measure,_("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[Vn(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 W=0;W<4;W++){for(;l&&Ge(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+f<o.coverEnd&&Ge(t.line.text.charAt(o.coverStart+f));)++f;if(A&&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"}A&&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(A&&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,_e=y.bottom-t.rect.top,Ze=(fe+_e)/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],Nt={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&&(Nt.bogus=!0),e.options.singleCursorHeightPerLine||(Nt.rtop=fe,Nt.rbottom=_e),Nt}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,Pe(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&&j?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function an(){return L&&j?-(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=Fi(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(_e,Ze){var lt=pe(e,o,_e,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 W(_e,Ze,lt){var vt=f[Ze],Mt=vt.level==1;return l(lt?_e-1:_e,Mt!=lt)}var J=st(f,p,y),ye=ut,fe=W(p,J,y=="before");return ye!=null&&(fe.other=W(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=Fi(n)+Qr(e.display);return{left:i,right:i,top:o,bottom:o+n.height}}function Vt(e,t,i,n,o){var s=Be(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 Vt(n.first,0,null,-1,-1);var o=An(n,i),s=n.first+n.size-1;if(o>s)return Vt(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=Wt(function(l){return pe(e,i,l-1).bottom<=n},o,0);return o=Wt(function(l){return pe(e,i,l).top>n},s,o),{begin:s,end:o}}function _t(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-=Fi(t);var s=te(e,t),l=rn(t),f=0,p=t.text.length,y=!0,W=ct(t,e.doc.direction);if(W){var J=(e.options.lineWrapping?Wn:On)(e,t,i,s,W,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,_e=Wt(function(Yt){var Kt=pe(e,s,Yt);return Kt.top+=l,Kt.bottom+=l,Sn(Kt,n,o,!1)?(Kt.top<=o&&Kt.left<=n&&(ye=Yt,fe=Kt),!0):!1},f,p),Ze,lt,vt=!1;if(fe){var Mt=n-fe.left<fe.right-n,yt=Mt==y;_e=ye+(yt?0:1),lt=yt?"after":"before",Ze=Mt?fe.left:fe.right}else{!y&&(_e==p||_e==f)&&_e++,lt=_e==0?"after":_e==t.text.length?"before":pe(e,s,_e-(y?1:0)).bottom+l<=o==y?"after":"before";var Nt=pn(e,Be(i,_e,lt),"line",t,s);Ze=Nt.left,vt=o<Nt.top?-1:o>=Nt.bottom?1:0}return _e=ot(t.text,_e,1),Vt(i,_e,lt,vt,n-Ze)}function On(e,t,i,n,o,s,l){var f=Wt(function(J){var ye=o[J],fe=ye.level!=1;return Sn(pn(e,Be(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,W=pn(e,Be(i,y?p.from:p.to,y?"after":"before"),"line",t,n);Sn(W,s,l,!0)&&W.top>l&&(p=o[f-1])}return p}function Wn(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 W=null,J=null,ye=0;ye<o.length;ye++){var fe=o[ye];if(fe.from>=y||fe.to<=p)continue;var _e=fe.level!=1,Ze=pe(e,n,_e?Math.min(y,fe.to)-1:Math.max(p,fe.from)).right,lt=Ze<s?s-Ze+1e9:Ze-s;(!W||J>lt)&&(W=fe,J=lt)}return W||(W=o[o.length-1]),W.from<p&&(W={from:p,to:W.to,level:W.level}),W.to>y&&(W={from:W.from,to:y,level:W.level}),W}var Bn;function ci(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Bn==null){Bn=_("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Bn.appendChild(document.createTextNode("x")),Bn.appendChild(_("br"));Bn.appendChild(document.createTextNode("x"))}be(e.measure,Bn);var i=Bn.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Pe(e.measure),i||1}function Si(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=_("span","xxxxxxxxxx"),i=_("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(Gi(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&&Pn(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 W=ce(y,y.length,e.options.tabSize)-y.length;p=Be(p.line,Math.max(0,Math.round((s-ee(e.display).left)/Si(e.display))-W))}return p}function Vn(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 Fn(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)Ai&&uo(e.doc,t)<o.viewTo&&$n(e);else if(i<=o.viewFrom)Ai&&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[Vn(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=Vn(e,t),s,l=e.display.view;if(!Ai||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(Vn(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,Vn(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 _n(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||jn(e,f,s)}return n}function Io(e,t,i){var n=pn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=i.appendChild(_("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(_("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 jn(e,t,i){var n=e.display,o=e.doc,s=document.createDocumentFragment(),l=ee(e.display),f=l.left,p=Math.max(n.sizerWidth,U(e)-n.sizer.offsetLeft)-l.right,y=o.direction=="ltr";function W(yt,Nt,Yt,Kt){Nt<0&&(Nt=0),Nt=Math.round(Nt),Kt=Math.round(Kt),s.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+yt+`px;
|
|
top: `+Nt+"px; width: "+(Yt==null?p-yt:Yt)+`px;
|
|
height: `+(Kt-Nt)+"px"))}function J(yt,Nt,Yt){var Kt=Rt(o,yt),dn=Kt.text.length,Kn,Pi;function ai(Ei,io){return Zn(e,Be(yt,Ei),"div",Kt,io)}function ro(Ei,io,Wi){var Ri=_t(e,Kt,null,Ei),xi=io=="ltr"==(Wi=="after")?"left":"right",di=Wi=="after"?Ri.begin:Ri.end-(/\s/.test(Kt.text.charAt(Ri.end-1))?2:1);return ai(di,xi)[xi]}var no=ct(Kt,o.direction);return bt(no,Nt||0,Yt==null?dn:Yt,function(Ei,io,Wi,Ri){var xi=Wi=="ltr",di=ai(Ei,xi?"left":"right"),oo=ai(io-1,xi?"right":"left"),Ur=Nt==null&&Ei==0,sr=Yt==null&&io==dn,Vi=Ri==0,_o=!no||Ri==no.length-1;if(oo.top-di.top<=3){var Ni=(y?Ur:sr)&&Vi,ps=(y?sr:Ur)&&_o,Go=Ni?f:(xi?di:oo).left,gr=ps?p:(xi?oo:di).right;W(Go,di.top,gr-Go,di.bottom)}else{var vr,Zi,Wr,ms;xi?(vr=y&&Ur&&Vi?f:di.left,Zi=y?p:ro(Ei,Wi,"before"),Wr=y?f:ro(io,Wi,"after"),ms=y&&sr&&_o?p:oo.right):(vr=y?ro(Ei,Wi,"before"):f,Zi=!y&&Ur&&Vi?p:di.right,Wr=!y&&sr&&_o?f:oo.left,ms=y?ro(io,Wi,"after"):p),W(vr,di.top,Zi-vr,di.bottom),di.bottom<oo.top&&W(f,di.bottom,null,oo.top),W(Wr,oo.top,ms-Wr,oo.bottom)}(!Kn||Hn(di,Kn)<0)&&(Kn=di),Hn(oo,Kn)<0&&(Kn=oo),(!Pi||Hn(di,Pi)<0)&&(Pi=di),Hn(oo,Pi)<0&&(Pi=oo)}),{start:Kn,end:Pi}}var ye=t.from(),fe=t.to();if(ye.line==fe.line)J(ye.line,ye.ch,fe.ch);else{var _e=Rt(o,ye.line),Ze=Rt(o,fe.line),lt=ui(_e)==ui(Ze),vt=J(ye.line,ye.ch,lt?_e.text.length+1:null).end,Mt=J(fe.line,lt?0:null,fe.ch).start;lt&&(vt.top<Mt.top-2?(W(vt.right,vt.top,null,vt.bottom),W(f,Mt.top,Mt.left,Mt.bottom)):W(vt.right,vt.top,Mt.left-vt.right,vt.bottom)),vt.bottom<Mt.top&&W(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(),Po(e))}function Jr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,qo(e))},100)}function Po(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(),F&&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(A&&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 W=o.line.height-l;if((W>.005||W<-.005)&&(Pn(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=An(t,n),l=An(t,o);if(i&&i.ensure){var f=i.ensure.from.line,p=i.ensure.to.line;f<s?(s=f,l=An(t,Fi(Rt(t,f))+e.wrapper.clientHeight)):Math.min(p,t.lastLine())>=l&&(s=An(t,Fi(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&&!G){var s=_("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?Be(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?Be(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),W=e.doc.scrollTop,J=e.doc.scrollLeft;if(y.scrollTop!=null&&(tr(e,y.scrollTop),Math.abs(e.doc.scrollTop-W)>1&&(l=!0)),y.scrollLeft!=null&&(fo(e,y.scrollLeft),Math.abs(e.doc.scrollLeft-J)>1&&(l=!0)),!l)break}return o}function Aa(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+P(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 W=Math.min(t.top,(y?f:t.bottom)-s);W!=o&&(l.scrollTop=W)}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,_e=t.right-t.left>fe;return _e&&(t.right=t.left+fe),t.left<10?l.scrollLeft=0:t.left<ye?l.scrollLeft=Math.max(0,t.left+J-(_e?0:10)):t.right>fe+ye-3&&(l.scrollLeft=t.right+(_e?0:10)-fe),l}function Zr(e,t){if(t==null)return;Ar(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function $o(e){Ar(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)&&Ar(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Xa(e,t){Ar(e),e.curOp.scrollToPos=t}function Ar(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 Wo(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+P(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 No=function(e,t,i){this.cm=i;var n=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=_("div",[_("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,A&&R<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};No.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}},No.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},No.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},No.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},No.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)},No.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 Fo(e,t){t||(t=Wo(e));var i=e.display.barWidth,n=e.display.barHeight;wr(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),wr(e,Wo(e)),i=e.display.barWidth,n=e.display.barHeight}function wr(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:No,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 jo(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&&Nn(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;wa(i)})}function wa(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=Wo(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)&&Fo(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();jo(e);try{return t()}finally{zo(e)}}function pi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);jo(e);try{return t.apply(e,arguments)}finally{zo(e)}}}function Ui(e){return function(){if(this.curOp)return e.apply(this,arguments);jo(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);jo(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,W=p.classes;W?s.styleClasses=W:y&&(s.styleClasses=null);for(var J=!l||l.length!=s.styles.length||y!=W&&(!y||!W||y.bgClass!=W.bgClass||y.textClass!=W.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)),Ai&&(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=Fi(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),Pe(i.cursorDiv),Pe(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+P(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=Wo(e);_n(e),Fo(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=Wo(e);_n(e),Fo(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(_e){var Ze=_e.nextSibling;return F&&le&&e.display.currentWheelTarget==_e?_e.style.display="none":_e.parentNode.removeChild(_e),Ze}for(var p=n.view,y=n.viewFrom,W=0;W<p.length;W++){var J=p[W];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&&(Pe(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(_("div",[_("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;Pe(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(_("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 wo(e){ir(e.display),Fn(e),Cn(e)}function mr(e,t,i,n){var o=this;this.input=i,o.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=Ae("div",null,"CodeMirror-code"),o.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=_("div",null,"CodeMirror-cursors"),o.measure=_("div",null,"CodeMirror-measure"),o.lineMeasure=_("div",null,"CodeMirror-measure"),o.lineSpace=Ae("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var s=Ae("div",[o.lineSpace],"CodeMirror-lines");o.mover=_("div",[s],null,"position: relative"),o.sizer=_("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=_("div",null,null,"position: absolute; height: "+qe+"px; width: 1px;"),o.gutters=_("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=_("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=_("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),A&&R<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),!F&&!(re&&w)&&(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 Bo=0,Ti=null;A?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&&F){e:for(var y=t.target,W=s.view;y!=l;y=y.parentNode)for(var J=0;J<W.length;J++)if(W[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)&&C(t),s.wheelStartX=null;return}if(o&&Ti!=null){var ye=o*Ti,fe=e.doc.scrollTop,_e=fe+s.wrapper.clientHeight;ye<0?fe=Math.max(0,fe+ye-50):_e=Math.min(e.doc.height,_e+ye+50),pr(e,{top:fe,bottom:_e})}Bo<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*Bo+vt)/(Bo+1),++Bo},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(Pt(t,n.from())>=0&&Pt(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 Pt(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=Pt(f.to(),l.from());if(n&&!l.empty()?p>0:p>=0){var y=so(f.from(),l.from()),W=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?W:y,J?y:W))}}return new Yi(t,i)}function So(e,t){return new Yi([new Rn(e,t||e)],0)}function ko(e){return e.text?Be(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(Pt(e,t.from)<0)return e;if(Pt(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),Be(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?Be(i.line,e.ch-t.ch+i.ch):Be(i.line+(e.line-t.line),e.ch)}function Ra(e,t,i){for(var n=[],o=Be(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 W=e.sel.ranges[l],J=Pt(W.head,W.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 Vo(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&&Fn(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,Nt){Fr(Mt,yt,Nt,n),Tn(Mt,"change",Mt,t)}function l(Mt,yt){for(var Nt=[],Yt=Mt;Yt<yt;++Yt)Nt.push(new Ro(y[Yt],o(Yt),n));return Nt}var f=t.from,p=t.to,y=t.text,W=Rt(e,f.line),J=Rt(e,p.line),ye=nt(y),fe=o(y.length-1),_e=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),_e&&e.remove(f.line,_e),Ze.length&&e.insert(f.line,Ze)}else if(W==J)if(y.length==1)s(W,W.text.slice(0,f.ch)+ye+W.text.slice(p.ch),fe);else{var lt=l(1,y.length-1);lt.push(new Ro(ye+W.text.slice(p.ch),fe,n)),s(W,W.text.slice(0,f.ch)+y[0],o(0)),e.insert(f.line+1,lt)}else if(y.length==1)s(W,W.text.slice(0,f.ch)+y[0]+J.text.slice(p.ch),o(0)),e.remove(f.line+1,_e);else{s(W,W.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);_e>1&&e.remove(f.line+1,_e-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),Vo(e),ys(e),e.options.lineWrapping||yo(e),e.options.mode=t.modeOption,Fn(e)}function ys(e){(e.doc.direction=="rtl"?ue:Ce)(e.display.lineDiv,"CodeMirror-rtl")}function fl(e){Ji(e,function(){ys(e),Fn(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:Bi(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),Pt(t.from,t.to)==0&&Pt(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=Ki(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],W=void 0;if(f.push({from:y.from,to:y.to,text:y.text}),t)for(var J in y)(W=J.match(/^spans_(\d+)$/))&&(Re(t,Number(W[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=Pt(t,o)<0;s!=Pt(i,o)<0?(o=t,t=i):s!=Pt(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 As(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 ws(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,Pa(e,t,i)):Hi(e,t,i)}function Hi(e,t,i){Pa(e,t,i),gl(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function Pa(e,t,i){(Z(e,"beforeSelectionChange")||e.cm&&Z(e.cm,"beforeSelectionChange"))&&(t=bl(e,t,i));var n=i&&i.bias||(Pt(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,ne(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=Na(e,l.anchor,f&&f.anchor,i,n),y=Na(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,W="selectRight"in p?!p.selectRight:p.inclusiveRight;if((f.from==null||(y?f.from<=t.ch:f.from<t.ch))&&(f.to==null||(W?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?W:y)&&(J=Ts(e,J,-n,J&&J.line==t.line?s:null)),J&&J.line==t.line&&(ye=Pt(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:W)&&(fe=Ts(e,fe,n,fe.line==t.line?s:null)),fe?Dr(e,fe,t,n,o):null}}return t}function Na(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,Be(e.first,0))}function Ts(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?r(e,Be(t.line-1)):null:i>0&&t.ch==(n||Rt(e,t.line)).text.length?t.line<e.first+e.size-1?Be(t.line+1,0):null:new Be(t.line,t.ch+i)}function Rs(e){e.setSelection(Be(e.firstLine(),0),Be(e.lastLine()),Fe)}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]==""&&Pt(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,Ki(e,t));var n=[];or(e,function(o,s){!s&&Re(n,o.history)==-1&&(js(o.history,t),n.push(o.history)),ra(o,t,null,Ki(o,t))})}function ja(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 W=[];La(l,p),p.push({changes:W,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,{};W.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,Nt){!Nt&&Re(Mt,yt.history)==-1&&(js(yt.history,lt),Mt.push(yt.history)),ra(yt,lt,null,xs(yt,lt))})},fe=s.changes.length-1;fe>=0;--fe){var _e=ye(fe);if(_e)return _e.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(Be(o.anchor.line+t,o.anchor.ch),Be(o.head.line+t,o.head.ch))}),e.sel.primIndex),e.cm){Fn(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:Be(e.first,0),to:Be(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:Be(s,Rt(e,s).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Bi(e,t.from,t.to),i||(i=Tr(e,t)),e.cm?Cl(e.cm,t,n):ts(e,t,n),Pa(e,i,Fe),e.cantEdit&&Na(e,Be(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&&ne(e),ts(n,t,i,co(e)),e.options.lineWrapping||(n.iter(p,s.line+t.text.length,function(fe){var _e=Yo(fe);_e>o.maxLineLength&&(o.maxLine=fe,o.maxLineLength=_e,o.maxLineChanged=!0,f=!1)}),f&&(e.curOp.updateMaxLine=!0)),_i(n,s.line),fr(e,400);var y=t.text.length-(l.line-s.line)-1;t.full?Fn(e):s.line==l.line&&t.text.length==1&&!gs(e.doc,t)?ni(e,s.line,"text"):Fn(e,s.line,l.line+1,y);var W=Z(e,"changes"),J=Z(e,"change");if(J||W){var ye={from:s,to:l,text:t.text,removed:t.removed,origin:t.origin};J&&Tn(e,"change",e,ye),W&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(ye)}e.display.selForContextMenu=null}function Ir(e,t,i,n,o){var s;n||(n=i),Pt(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 Ps(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Ns(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++)Ps(s.ranges[f].anchor,t,i,n),Ps(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=Be(y.from.line+n,y.from.ch),y.to=Be(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 js(e,t){var i=t.from.line,n=t.to.line,o=t.text.length-(n-i)-1;Ns(e.done,i,n,o),Ns(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);Pn(i,Math.max(0,i.height-s)),e&&(Ji(e,function(){Bs(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;Gi(this.doc,n)||Pn(n,n.height+o),i&&Ji(i,function(){i.curOp.forceUpdate=!0,Bs(i,n,o),Tn(i,"lineWidgetChanged",i,e,Jt(n))})},$(ua);function Bs(e,t,i){Fi(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&&!Gi(e,l)){var p=Fi(l)<e.scrollTop;Pn(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 _s=0,rr=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++_s};rr.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&jo(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&&!Gi(this.doc,l)&&e&&Pn(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]),W=Yo(y);W>e.display.maxLineLength&&(e.display.maxLine=y,e.display.maxLineLength=W,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Fn(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=Be(t?s:Jt(s),l.from),e==-1))return i;if(l.to!=null&&(n=Be(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,!Gi(i.doc,o)&&i.height!=null){var f=i.height;i.height=null;var p=Zo(i)-f;p&&Pn(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)}},$(rr);function Pr(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,Pr)(e,t,i,n,o);var s=new rr(e,o),l=Pt(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=Ae("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");wi()}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&&Pn(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){Gi(e,J)&&Pn(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=++_s,s.atomic=!0),p){if(y&&(p.curOp.updateMaxLine=!0),s.collapsed)Fn(p,t.line,i.line+1);else if(s.className||s.startStyle||s.endStyle||s.css||s.attributes||s.title)for(var W=t.line;W<=i.line;W++)ni(p,W,"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)},$(ca);function xl(e,t,i,n,o){n=v(n),n.shared=!1;var s=[Pr(e,t,i,n,o)],l=s[0],f=n.widgetNode;return or(e,function(p){f&&(n.widgetNode=f.cloneNode(!0)),s.push(Pr(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(Be(e.first,0),e.clipPos(Be(e.lastLine())),function(t){return t.parent})}function Al(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(Pt(s,l)){var f=Pr(e,s,l,n.primary,n.primary.type);n.markers.push(f),f.parent=n}}}function wl(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=Be(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),Fe)};to.prototype=At(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=Be(this.first,0),i=this.first+this.size-1;Lr(this,{from:t,to:Be(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),Fe)}),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=Bi(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){ws(this,r(this,typeof e=="number"?Be(e,t||0):e),null,i)}),setSelection:mi(function(e,t,i){ws(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){As(this,u(this,e),t)}),extendSelectionsBy:mi(function(e,t){var i=Tt(this.sel.ranges,e);As(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=Bi(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=Bi(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(){ja(this,"undo")}),redo:mi(function(){ja(this,"redo")}),undoSelection:mi(function(){ja(this,"undo",!0)}),redoSelection:mi(function(){ja(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 Pr(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),Pr(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,Be(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}],Al(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),wl(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 Ws=0;function kl(e){var t=this;if(Fs(t),Xe(t,e)||Ao(t.display,e))return;C(e),A&&(Ws=+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(_e){return _e!=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,_e){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[_e]=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 W=e.dataTransfer.getData("Text");if(W){var J;if(t.state.draggingText&&!t.state.draggingText.copy&&(J=t.listSelections()),Pa(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(W,"around","paste"),t.display.input.focus()}}catch(fe){}}}function Ml(e,t){if(A&&(!e.state.draggingText||+new Date-Ws<100)){B(t);return}if(Xe(e,t)||Ao(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!se){var i=_("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=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),be(e.display.dragCursor,n)}function Fs(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 Ba=65;Ba<=90;Ba++)ar[Ba]=String.fromCharCode(Ba);for(var ha=1;ha<=12;ha++)ar[ha+111]=ar[ha+63235]="F"+ha;var Ko={};Ko.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"},Ko.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"},Ko.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"},Ko.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"]},Ko.default=le?Ko.macDefault:Ko.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 Nr(e,t,i,n){t=_a(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 Nr(e,t.fallthrough,i,n);for(var s=0;s<t.fallthrough.length;s++){var l=Nr(e,t.fallthrough[s],i,n);if(l)return l}}}function Vs(e){var t=typeof e=="string"?e:ar[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Ks(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 Gs(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),Ks(i,e,t))}function _a(e){return typeof e=="string"?Ko[e]:e}function jr(e,t){for(var i=e.doc.sel.ranges,n=[],o=0;o<i.length;o++){for(var s=t(i[o]);n.length&&Pt(s.from,nt(n).to)<=0;){var l=n.pop();if(Pt(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 Be(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 W=te(t,i);y=o<0?i.text.length-1:0;var J=pe(t,W,y).top;y=Wt(function(ye){return pe(t,W,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 Be(n,y,p)}}return new Be(n,o<0?i.text.length:0,o<0?"before":"after")}function Pl(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 Be?vt.ch:vt,Mt)},p,y=function(vt){return e.options.lineWrapping?(p=p||te(e,t),_t(e,t,p,vt)):{begin:0,end:t.text.length}},W=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<=W.end:ye>=l.from&&ye>=W.begin)){var fe=J?"before":"after";return new Be(i.line,ye,fe)}}var _e=function(vt,Mt,yt){for(var Nt=function(Kn,Pi){return Pi?new Be(i.line,f(Kn,1),"before"):new Be(i.line,Kn,"after")};vt>=0&&vt<o.length;vt+=Mt){var Yt=o[vt],Kt=Mt>0==(Yt.level!=1),dn=Kt?yt.begin:f(yt.end,-1);if(Yt.from<=dn&&dn<Yt.to)return Nt(dn,Kt);if(dn=Kt?Yt.from:f(Yt.to,-1),yt.begin<=dn&&dn<yt.end)return Nt(dn,Kt)}},Ze=_e(s+n,n,W);if(Ze)return Ze;var lt=n>0?W.end:f(W.begin,-1);return lt!=null&&!(n>0&<==t.text.length)&&(Ze=_e(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"),Fe)},killLine:function(e){return jr(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:Be(t.head.line+1,0)}:{from:t.head,to:Be(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return jr(e,function(t){return{from:Be(t.from().line,0),to:r(e.doc,Be(t.to().line+1,0))}})},delLineLeft:function(e){return jr(e,function(t){return{from:Be(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return jr(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 jr(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(Be(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(Be(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 Nl(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")},Ne)},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")},Ne)},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},Ne)},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(N(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 Be(o.line,o.ch-1)),o.ch>0)o=new Be(o.line,o.ch+1),e.replaceRange(s.charAt(o.ch-1)+s.charAt(o.ch-2),Be(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 Be(o.line,1),e.replaceRange(s.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),Be(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 Nl(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 Be(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 jl(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var o=Nr(t,e.state.keyMaps[n],i,e);if(o)return o}return e.options.extraKeys&&Nr(t,e.options.extraKeys,i,e)||Nr(t,e.options.keyMap,i,e)}var Bl=new Ue;function pa(e,t,i,n){var o=e.state.keySeq;if(o){if(Vs(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Bl.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=jl(e,t,n);return o=="multi"&&(e.state.keySeq=t),o=="handled"&&Tn(e,"keyHandled",e,t,i),(o=="handled"||o=="multi")&&(C(i),Mi(e)),!!o}function Ys(e,t){var i=Gs(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 _l(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;A&&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(Ao(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,C(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(_l(t,e,o))return;t.display.input.onKeyPress(e)}var Wl=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+Wl>e&&Pt(t,this.pos)==0&&i==this.button};var ma,ga;function Fl(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,Ao(i,e)){F||(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?Fl(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?Vl(t,n,s,e):ge(e)==i.scroller&&C(e):o==2?(n&&Ia(t.doc,n),setTimeout(function(){return i.input.focus()},20)):o==3&&(Ke?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,Ks(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 Vl(e,t,i,n){A?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&&(Pt((l=s.ranges[l]).from(),t)<0||t.xRel>0)&&(Pt(l.to(),t)>0||t.xRel<0)?Kl(e,n,t,o):Gl(e,n,t,o)}function Kl(e,t,i,n){var o=e.display,s=!1,l=pi(e,function(y){F&&(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||(C(y),n.addNew||Ia(e.doc,i,null,null,n.extend),F&&!se||A&&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};F&&(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(Be(t.line,0),r(e.doc,Be(t.line+1,0)));var n=i(e,t);return new Rn(n.from,n.to)}function Gl(e,t,i,n){var o=e.display,s=e.doc;C(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 W=tl(e,i,n.unit);n.extend?l=is(l,W.anchor,W.head,n.extend):l=W}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(Pt(J,yt)==0)return;if(J=yt,n.unit=="rectangle"){for(var Nt=[],Yt=e.options.tabSize,Kt=ce(Rt(s,i.line).text,i.ch,Yt),dn=ce(Rt(s,yt.line).text,yt.ch,Yt),Kn=Math.min(Kt,dn),Pi=Math.max(Kt,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=We(no,Kn,Yt);Kn==Pi?Nt.push(new Rn(Be(ai,Ei),Be(ai,Ei))):no.length>Ei&&Nt.push(new Rn(Be(ai,Ei),Be(ai,We(no,Pi,Yt))))}Nt.length||Nt.push(new Rn(i,i)),Hi(s,mo(e,p.ranges.slice(0,f).concat(Nt),f),{origin:"*mouse",scroll:!1}),e.scrollIntoView(yt)}else{var io=l,Wi=tl(e,yt,n.unit),Ri=io.anchor,xi;Pt(Wi.anchor,Ri)>0?(xi=Wi.head,Ri=so(io.from(),Wi.anchor)):(xi=Wi.anchor,Ri=ao(io.to(),Wi.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(),_e=0;function Ze(yt){var Nt=++_e,Yt=ki(e,yt,!0,n.unit=="rectangle");if(!Yt)return;if(Pt(Yt,J)!=0){e.curOp.focus=Q(),ye(Yt);var Kt=xr(o,s);(Yt.line>=Kt.to||Yt.line<Kt.from)&&setTimeout(pi(e,function(){_e==Nt&&Ze(yt)}),150)}else{var dn=yt.clientY<fe.top?-20:yt.clientY>fe.bottom?20:0;dn&&setTimeout(pi(e,function(){if(_e!=Nt)return;o.scroller.scrollTop+=dn,Ze(yt)}),50)}}function lt(yt){e.state.selectingText=!1,_e=Infinity,yt&&(C(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(Pt(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 W=st(s,n.ch,n.sticky),J=W-l||(n.ch-i.ch)*(f.level==1?-1:1);W==p-1||W==p?y=J<0:y=J>0}var ye=s[p+(y?-1:0)],fe=y==(ye.level==1),_e=fe?ye.from:ye.to,Ze=fe?"after":"before";return i.ch==_e&&i.sticky==Ze?t:new Rn(new Be(i.line,_e,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&&C(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 W=An(e.doc,s),J=e.display.gutterSpecs[p];return Le(e,i,e,W,J.className,t),O(t)}}}function cs(e,t){return nl(e,t,"gutterClick",!0)}function il(e,t){if(Ao(e.display,t)||Jl(e,t))return;if(Xe(e,t,"contextmenu"))return;Ke||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 Br={toString:function(){return"CodeMirror.Init"}},rl={},Wa={};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!=Br&&s(f,p,y)}:s)}e.defineOption=i,e.Init=Br,i("value","",function(n,o){return n.setValue(o)},!0),i("mode",null,function(n,o){n.doc.modeOption=o,Vo(n)},!0),i("indentUnit",2,Vo,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){oa(n),on(n),Fn(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 W=p.text.indexOf(o,y);if(W==-1)break;y=W+o.length,s.push(Be(l,W))}l++});for(var f=s.length-1;f>=0;f--)Ir(n.doc,o,s[f],Be(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!=Br&&n.refresh()}),i("specialCharPlaceholder",Bt,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",w?"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),wo(n)},!0),i("keyMap","default",function(n,o,s){var l=_a(o),f=s!=Br&&_a(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),wo(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 Fo(n)},!0),i("scrollbarStyle","native",function(n){Sr(n),Fo(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),wo(n)},!0),i("firstLineNumber",1,wo,!0),i("lineNumberFormatter",function(n){return n},wo,!0),i("showCursorWhenSelecting",!1,_n,!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,_n,!0),i("singleCursorHeightPerLine",!0,_n,!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!=Br;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),Fn(e),on(e),setTimeout(function(){return Fo(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&&!w&&s.input.focus(),A&&R<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Tl(),jo(this),this.curOp.forceUpdate=!0,vs(this,n),t.autofocus&&!w||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Po(i)},20):qo(this);for(var l in Wa)Wa.hasOwnProperty(l)&&Wa[l](this,t[l],Br);Oi(this),t.finishInit&&t.finishInit(this);for(var f=0;f<ds.length;++f)ds[f](this);zo(this),F&&t.lineWrapping&&getComputedStyle(s.lineDiv).textRendering=="optimizelegibility"&&(s.lineDiv.style.textRendering="auto")}ii.defaults=rl,ii.optionHandlers=Wa;function ql(e){var t=e.display;Te(t.scroller,"mousedown",pi(e,el)),A&&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)||Ao(e.display,p))return;C(p);var W=e.findWordAt(y);Ia(e.doc,W.anchor,W.head)})):Te(t.scroller,"dblclick",function(p){return Xe(e,p)||C(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 W=y.left-p.left,J=y.top-p.top;return W*W+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&&!Ao(t,p)&&y.left!=null&&!y.moved&&new Date-y.start<300){var W=e.coordsChar(t.activeTouch,"page"),J;!y.prev||l(y,y.prev)?J=new Rn(W,W):!y.prev.prev||l(y,y.prev.prev)?J=e.findWordAt(W):J=new Rn(Be(W.line,0),r(e.doc,Be(W.line+1,0))),e.setSelection(J.anchor,J.head),e.focus(),C(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)||B(p)},over:function(p){Xe(e,p)||(Ol(e,p),B(p))},start:function(p){return Ml(e,p)},drop:pi(e,kl),leave:function(p){Xe(e,p)||Fs(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 Po(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],W;if(!n&&!/\S/.test(f.text))W=0,i="not";else if(i=="smart"&&(W=o.mode.indent(s,f.text.slice(y.length),f.text),W==dt||W>150)){if(!n)return;i="prev"}i=="prev"?t>o.first?W=ce(Rt(o,t-1).text,null,l):W=0:i=="add"?W=p+e.options.indentUnit:i=="subtract"?W=p-e.options.indentUnit:typeof i=="number"&&(W=p+i),W=Math.max(0,W);var J="",ye=0;if(e.options.indentWithTabs)for(var fe=Math.floor(W/l);fe;--fe)ye+=l,J+=" ";if(ye<W&&(J+=N(W-ye)),J!=y)return Ir(o,J,Be(t,0),Be(t,y.length),"+input"),f.stateAfter=null,!0;for(var _e=0;_e<o.sel.ranges.length;_e++){var Ze=o.sel.ranges[_e];if(Ze.head.line==t&&Ze.head.ch<y.length){var lt=Be(t,y.length);os(o,_e,new Rn(lt,lt));break}}}var Mo=null;function Fa(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 W=0;W<Mo.text.length;W++)y.push(s.splitLines(Mo.text[W]))}}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],_e=fe.from(),Ze=fe.to();fe.empty()&&(i&&i>0?_e=Be(_e.line,_e.ch-i):e.state.overwrite&&!f?Ze=Be(Ze.line,Math.min(Rt(s,Ze.line).text.length,Ze.ch+nt(p).length)):f&&Mo&&Mo.lineWise&&Mo.text.join(`
|
|
`)==p.join(`
|
|
`)&&(_e=Ze=Be(_e.line,0)));var lt={from:_e,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:Be(o,0),head:Be(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=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=_("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return F?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"](_a(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++,Fn(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++,Fn(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(),W=Math.max(s,p.line);s=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(var J=W;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()),Fe)}}}),getTokenAt:function(n,o){return kt(this,n,o)},getLineTokens:function(n,o){return kt(this,Be(n),o,!0)},getTokenTypeAt:function(n){n=r(this.doc,n);var o=Ve(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 W=p?p.indexOf("overlay "):-1;return W<0?p:W==0?null:p.slice(0,W-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 W=0;W<l._global.length;W++){var J=l._global[W];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,An(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-Fi(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,W=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),W+o.offsetWidth>ye&&(W=ye-o.offsetWidth)}o.style.top=y+"px",o.style.left=o.style.right="",f=="right"?(W=p.sizer.clientWidth-o.offsetWidth,o.style.right="0px"):(f=="left"?W=0:f=="middle"&&(W=(p.sizer.clientWidth-o.offsetWidth)/2),o.style.left=W+"px"),s&&Aa(this,{left:W,top:y,right:W+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()},Ne)}),deleteH:Ui(function(n,o){var s=this.doc.sel,l=this.doc;s.somethingSelected()?l.replaceSelection("",null,"+delete"):jr(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),W=0;W<o;++W){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(W){if(p)return n<0?W.from():W.to();var J=pn(s,W.head,"div");W.goalColumn!=null&&(J.left=W.goalColumn),f.push(J.left);var ye=dl(s,J,n,o);return o=="page"&&W==l.sel.primary()&&Zr(s,Zn(s,ye,"div").top-J.top),ye},Ne),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),W=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&&W(s.charAt(l-1));)--l;for(;f<s.length&&W(s.charAt(f));)++f}return new Rn(Be(n.line,l),Be(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:Be(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 jo(this)},endOperation:function(){return zo(this)},refresh:Ui(function(){var n=this.display.cachedTextHeight;Fn(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}},$(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 Be(Mt,t.ch,t.sticky),f=Rt(e,Mt))}function W(Mt){var yt;if(n=="codepoint"){var Nt=f.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(Nt)?yt=null:yt=new Be(t.line,Math.max(0,Math.min(f.text.length,t.ch+i*(Nt>=55296&&Nt<56320?2:1))),-i)}else o?yt=Pl(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")W();else if(n=="column")W(!0);else if(n=="word"||n=="group")for(var J=null,ye=n=="group",fe=e.cm&&e.cm.getHelper(t,"wordChars"),_e=!0;!(i<0&&!W(!_e));_e=!1){var Ze=f.text.charAt(t.ch)||`
|
|
`,lt=pt(Ze,fe)?"w":ye&&Ze==`
|
|
`?"n":!ye||/\s/.test(Ze)?null:"p";if(ye&&!_e&&!lt&&(lt="s"),J&&J!=lt){i<0&&(i=1,W(),t.sticky="after");break}if(lt&&(J=lt),i>0&&!W(!_e))break}var vt=Na(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())Fa({lineWise:!1,text:n.getSelections()}),f.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var p=ll(n);Fa({lineWise:!0,text:p.text}),f.type=="cut"&&n.operation(function(){n.setSelections(p.ranges,0,Fe),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 W=cl(),J=W.firstChild;n.display.lineSpace.insertBefore(W,n.display.lineSpace.firstChild),J.value=Mo.text.join(`
|
|
`);var ye=document.activeElement;De(J),setTimeout(function(){n.display.lineSpace.removeChild(W),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&&Pt(so(s,l),n)==0&&Pt(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 W=f[f.length-1].measure,J=W.maps?W.maps[W.maps.length-1]:W.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(_e){}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(j&&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),Fe),(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=Be(n.line-1,Rt(e.doc,n.line-1).length)),o.ch==Rt(e.doc,o.line).text.length&&o.line<e.lastLine()&&(o=Be(o.line+1,0)),n.line<t.viewFrom||o.line>t.viewTo-1)return!1;var s,l,f;n.line==t.viewFrom||(s=Vn(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=Vn(e,o.line),y,W;if(p==t.view.length-1?(y=t.viewTo-1,W=t.lineDiv.lastChild):(y=Jt(t.view[p+1].line)-1,W=t.view[p+1].node.previousSibling),!f)return!1;for(var J=e.doc.splitLines(tu(e,f,W,l,y)),ye=Bi(e.doc,Be(l,0),Be(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,_e=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),Nt=Math.min(Mt.length-(J.length==1?fe:0),yt.length-(ye.length==1?fe:0));_e<Nt&&Mt.charCodeAt(Mt.length-_e-1)==yt.charCodeAt(yt.length-_e-1);)++_e;if(J.length==1&&ye.length==1&&l==n.line)for(;fe&&fe>n.ch&&Mt.charCodeAt(Mt.length-_e-1)==yt.charCodeAt(yt.length-_e-1);)fe--,_e++;J[J.length-1]=Mt.slice(0,Mt.length-_e).replace(/^\u200b+/,""),J[0]=J[0].slice(fe).replace(/\u200b+$/,"");var Yt=Be(l,fe),Kt=Be(y,ye.length?nt(ye).length-_e:0);if(J.length>1||J[0]||Pt(Yt,Kt))return Ir(e.doc,J,Yt,Kt,"+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 Fn(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 _r(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(_e){return _e.id==fe}}function W(){l&&(s+=f,p&&(s+=f),l=p=!1)}function J(fe){fe&&(W(),s+=fe)}function ye(fe){if(fe.nodeType==1){var _e=fe.getAttribute("cm-text");if(_e){J(_e);return}var Ze=fe.getAttribute("cm-marker"),lt;if(Ze){var vt=e.findMarks(Be(n,0),Be(o+1,0),y(+Ze));vt.length&&(lt=vt[0].find(0))&&J(Bi(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&&W();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 _r(e.clipPos(Be(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 _r(Be(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 _r(Be(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 W(lt,vt,Mt){for(var yt=-1;yt<(y?y.length:0);yt++)for(var Nt=yt<0?p.map:y[yt],Yt=0;Yt<Nt.length;Yt+=3){var Kt=Nt[Yt+2];if(Kt==lt||Kt==vt){var dn=Jt(yt<0?e.line:e.rest[yt]),Kn=Nt[Yt]+Mt;return(Mt<0||Kt!=lt)&&(Kn=Nt[Yt+(Mt?1:0)]),Be(dn,Kn)}}}var J=W(l,f,i);if(J)return _r(J,o);for(var ye=f.nextSibling,fe=l?l.nodeValue.length-i:0;ye;ye=ye.nextSibling){if(J=W(ye,ye.firstChild,0),J)return _r(Be(J.line,J.ch-fe),o);fe+=ye.textContent.length}for(var _e=f.previousSibling,Ze=i;_e;_e=_e.previousSibling){if(J=W(_e,_e.firstChild,-1),J)return _r(Be(J.line,J.ch+Ze),o);Ze+=_e.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(){A&&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())Fa({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var f=ll(n);Fa({lineWise:!0,text:f.text}),l.type=="cut"?n.setSelections(f.ranges,null,Fe):(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(Ao(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){Ao(e,l)||C(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),A&&R>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",A&&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"&&(!w||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(A&&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(){A&&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),Fe);var p=o.style.cssText,y=t.wrapper.style.cssText,W=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",o.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(e.clientY-W.top-5)+"px; left: "+(e.clientX-W.left-5)+`px;
|
|
z-index: 1000; background: `+(A?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var J;F&&(J=window.scrollY),n.input.focus(),F&&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,A&&R<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=l),o.selectionStart!=null){(!A||A&&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(A&&R>=9&&ye(),Ke){B(e);var _e=function(){ht(window,"mouseup",_e),setTimeout(fe,20)};Te(window,"mouseup",_e)}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=We,e.isWordChar=rt,e.Pass=dt,e.signal=Le,e.Line=Ro,e.changeEnd=ko,e.scrollbarModel=qr,e.Pos=Be,e.cmpPos=Pt,e.modes=un,e.mimeModes=Ft,e.resolveMode=It,e.getMode=vi,e.modeExtensions=si,e.extendMode=Qn,e.copyState=oi,e.startState=Di,e.innerMode=ji,e.commands=fa,e.keyMap=Ko,e.keyName=Gs,e.isModifierKey=Vs,e.lookupKey=Nr,e.normalizeKeyMap=Il,e.StringStream=cn,e.SharedTextMarker=ca,e.TextMarker=rr,e.LineWidget=ua,e.e_preventDefault=C,e.e_stopPropagation=x,e.e_stop=B,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 $(to),ii.inputStyles={textarea:gi,contenteditable:zn},ii.defineMode=function(e){!ii.defaults.mode&&e!="null"&&(ii.defaults.mode=e),Gn.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,xe){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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sRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},Xsq0:function(Oe,xe,h){Oe.exports=h.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(Oe,xe,h){"use strict";h.r(xe),h.d(xe,"ResizableTextArea",function(){return Re});var I=h("wx14"),de=h("1OyB"),re=h("vuIU"),X=h("Ji7U"),E=h("LK+K"),ie=h("q1tI"),A=h("VTBJ"),R=h("rePB"),F=h("Zm9Q"),K=h("Kwbf"),L=h("c+Xe"),T=h("m+aA"),se=h("bdgK"),q=new Map;function G(Fe){Fe.forEach(function(ze){var Ne,We=ze.target;(Ne=q.get(We))===null||Ne===void 0||Ne.forEach(function(he){return he(We)})})}var D=new se.default(G),j=null,w=null;function le(Fe,ze){q.has(Fe)||(q.set(Fe,new Set),D.observe(Fe)),q.get(Fe).add(ze)}function Me(Fe,ze){q.has(Fe)&&(q.get(Fe).delete(ze),q.get(Fe).size||(D.unobserve(Fe),q.delete(Fe)))}var Je=function(Fe){Object(X.a)(Ne,Fe);var ze=Object(E.a)(Ne);function Ne(){return Object(de.a)(this,Ne),ze.apply(this,arguments)}return Object(re.a)(Ne,[{key:"render",value:function(){return this.props.children}}]),Ne}(ie.Component),we=ie.createContext(null);function ke(Fe){var ze=Fe.children,Ne=Fe.onBatchResize,We=ie.useRef(0),he=ie.useRef([]),N=ie.useContext(we),nt=ie.useCallback(function(Tt,Ut,ft){We.current+=1;var At=We.current;he.current.push({size:Tt,element:Ut,data:ft}),Promise.resolve().then(function(){At===We.current&&(Ne==null||Ne(he.current),he.current=[])}),N==null||N(Tt,Ut,ft)},[Ne,N]);return ie.createElement(we.Provider,{value:nt},ze)}function Ke(Fe){var ze=Fe.children,Ne=Fe.disabled,We=ie.useRef(null),he=ie.useRef(null),N=ie.useContext(we),nt=ie.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Tt=ie.isValidElement(ze)&&Object(L.c)(ze),Ut=Tt?ze.ref:null,ft=ie.useMemo(function(){return Object(L.a)(Ut,We)},[Ut,We]),At=ie.useRef(Fe);At.current=Fe;var He=ie.useCallback(function(rt){var pt=At.current,gt=pt.onResize,$e=pt.data,Ge=rt.getBoundingClientRect(),ot=Ge.width,Wt=Ge.height,bt=rt.offsetWidth,ut=rt.offsetHeight,st=Math.floor(ot),St=Math.floor(Wt);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(Wt)?Wt:ut,Dt=Object(A.a)(Object(A.a)({},ct),{},{offsetWidth:xt,offsetHeight:Te});N==null||N(Dt,rt,$e),gt&&Promise.resolve().then(function(){gt(Dt,rt)})}},[]);return ie.useEffect(function(){var rt=Object(T.a)(We.current)||Object(T.a)(he.current);return rt&&!Ne&&le(rt,He),function(){return Me(rt,He)}},[We.current,Ne]),ie.createElement(Je,{ref:he},Tt?ie.cloneElement(ze,{ref:ft}):ze)}var Ee="rc-observer-key";function Ce(Fe){var ze=Fe.children,Ne=Object(F.a)(ze);return Ne.map(function(We,he){var N=(We==null?void 0:We.key)||"".concat(Ee,"-").concat(he);return ie.createElement(Ke,Object(I.a)({},Fe,{key:N}),We)})}Ce.Collection=ke;var Pe=Ce,be=h("bT9E"),_=h("TSYQ"),Ae=h.n(_),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 V(Fe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ne=Fe.getAttribute("id")||Fe.getAttribute("data-reactid")||Fe.getAttribute("name");if(ze&&Q[Ne])return Q[Ne];var We=window.getComputedStyle(Fe),he=We.getPropertyValue("box-sizing")||We.getPropertyValue("-moz-box-sizing")||We.getPropertyValue("-webkit-box-sizing"),N=parseFloat(We.getPropertyValue("padding-bottom"))+parseFloat(We.getPropertyValue("padding-top")),nt=parseFloat(We.getPropertyValue("border-bottom-width"))+parseFloat(We.getPropertyValue("border-top-width")),Tt=S.map(function(ft){return"".concat(ft,":").concat(We.getPropertyValue(ft))}).join(";"),Ut={sizingStyle:Tt,paddingSize:N,borderSize:nt,boxSizing:he};return ze&&Ne&&(Q[Ne]=Ut),Ut}function De(Fe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,We=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)),Fe.getAttribute("wrap")?ue.setAttribute("wrap",Fe.getAttribute("wrap")):ue.removeAttribute("wrap");var he=V(Fe,ze),N=he.paddingSize,nt=he.borderSize,Tt=he.boxSizing,Ut=he.sizingStyle;ue.setAttribute("style","".concat(Ut,";").concat(me)),ue.value=Fe.value||Fe.placeholder||"";var ft=Number.MIN_SAFE_INTEGER,At=Number.MAX_SAFE_INTEGER,He=ue.scrollHeight,rt;if(Tt==="border-box"?He+=nt:Tt==="content-box"&&(He-=N),Ne!==null||We!==null){ue.value=" ";var pt=ue.scrollHeight-N;Ne!==null&&(ft=pt*Ne,Tt==="border-box"&&(ft=ft+N+nt),He=Math.max(ft,He)),We!==null&&(At=pt*We,Tt==="border-box"&&(At=At+N+nt),rt=He>At?"":"hidden",He=Math.min(At,He))}return{height:He,minHeight:ft,maxHeight:At,overflowY:rt,resize:"none"}}var M=h("Gytx"),v=h.n(M),ce;(function(Fe){Fe[Fe.NONE=0]="NONE",Fe[Fe.RESIZING=1]="RESIZING",Fe[Fe.RESIZED=2]="RESIZED"})(ce||(ce={}));var Ue=function(Fe){Object(X.a)(Ne,Fe);var ze=Object(E.a)(Ne);function Ne(We){var he;return Object(de.a)(this,Ne),he=ze.call(this,We),he.nextFrameActionId=void 0,he.resizeFrameId=void 0,he.textArea=void 0,he.saveTextArea=function(N){he.textArea=N},he.handleResize=function(N){var nt=he.state.resizeStatus,Tt=he.props,Ut=Tt.autoSize,ft=Tt.onResize;if(nt!==ce.NONE)return;typeof ft=="function"&&ft(N),Ut&&he.resizeOnNextFrame()},he.resizeOnNextFrame=function(){cancelAnimationFrame(he.nextFrameActionId),he.nextFrameActionId=requestAnimationFrame(he.resizeTextarea)},he.resizeTextarea=function(){var N=he.props.autoSize;if(!N||!he.textArea)return;var nt=N.minRows,Tt=N.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 N=he.props,nt=N.prefixCls,Tt=nt===void 0?"rc-textarea":nt,Ut=N.autoSize,ft=N.onResize,At=N.className,He=N.disabled,rt=he.state,pt=rt.textareaStyles,gt=rt.resizeStatus,$e=Object(be.a)(he.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ge=Ae()(Tt,At,Object(R.a)({},"".concat(Tt,"-disabled"),He));"value"in $e&&($e.value=$e.value||"");var ot=Object(A.a)(Object(A.a)(Object(A.a)({},he.props.style),pt),gt===ce.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return ie.createElement(Pe,{onResize:he.handleResize,disabled:!(Ut||ft)},ie.createElement("textarea",Object(I.a)({},$e,{className:Ge,style:ot,ref:he.saveTextArea})))},he.state={textareaStyles:{},resizeStatus:ce.NONE},he}return Object(re.a)(Ne,[{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,N=this.textArea.selectionEnd;this.textArea.setSelectionRange(he,N)}}catch(nt){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ne}(ie.Component),Re=Ue,qe=function(Fe){Object(X.a)(Ne,Fe);var ze=Object(E.a)(Ne);function Ne(We){var he;Object(de.a)(this,Ne),he=ze.call(this,We),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 N=typeof We.value=="undefined"||We.value===null?We.defaultValue:We.value;return he.state={value:N},he}return Object(re.a)(Ne,[{key:"setValue",value:function(he,N){"value"in this.props||this.setState({value:he},N)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return ie.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}}]),Ne}(ie.Component),dt=xe.default=qe},ZW9T:function(Oe,xe,h){"use strict";h.d(xe,"a",function(){return Je});var I=h("k1fw"),de=h("miYZ"),re=h("tsqr"),X=h("rAM+"),E=h("tJVT"),ie=h("PpiC"),A=h("q1tI"),R=h.n(A),F=h("bdgK");function K(we,ke,Ke,Ee,Ce){var Pe=ke.getWordUntilPosition(Ke),be={startLineNumber:Ke.lineNumber,endLineNumber:Ke.lineNumber,startColumn:Pe.startColumn,endColumn:Pe.endColumn},_=Ee.map(function(Ae){return{label:Ae,kind:we.languages.CompletionItemKind.Keyword,insertText:Ae,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}});return Ce.map(function(Ae){_.push(Object(I.a)(Object(I.a)({},Ae),{},{range:be}))}),_}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},Ke=["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,_){var Ae=K(we,be,_,Ke,[ke]);return{suggestions:Ae}}});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,_){var Ae=[{label:"print",kind:we.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
|
|
`),insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet}],me=K(we,be,_,Ee,Ae);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,_){var Ae=[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=K(we,be,_,Ce,Ae);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 G(){}var D=!1,j={"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 w(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ke=we;if(Array.isArray(we)){for(var Ke=0;Ke<we.length;Ke++){var Ee=j[we[Ke]];if(Ee)return Ee}return ke[0]}return j[ke]||ke}var le=null,Me=xe.b=function(we){var ke=we.width,Ke=ke===void 0?"100%":ke,Ee=we.height,Ce=Ee===void 0?"100%":Ee,Pe=we.value,be=we.language,_=be===void 0?"javascript":be,Ae=we.style,me=Ae===void 0?{}:Ae,S=we.options,Q=S===void 0?{}:S,ue=we.overrideServices,V=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,Fe=we.onChange,ze=Fe===void 0?G:Fe,Ne=we.editorDidMount,We=Ne===void 0?G:Ne,he=we.onFocus,N=he===void 0?G:he,nt=we.filename,Tt=nt===void 0?"educoder.txt":nt,Ut=Object(ie.a)(we,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),ft=Object(A.useRef)(),At=Object(A.useRef)({}),He=Object(A.useRef)(),rt=Object(A.useRef)(!1),pt=Object(A.useRef)(),gt=Object(A.useState)(!1),$e=Object(E.a)(gt,2),Ge=$e[0],ot=$e[1];function Wt(){var O;return ft.current&&(O=new F.default(function(B){var ge=Object(X.a)(B),Se;try{for(ge.s();!(Se=ge.n()).done;){var Ye=Se.value;(Ye.target.offsetHeight>0||Ye.target.offsetWidth>0)&&At.current.instance.layout()}}catch(jt){ge.e(jt)}finally{ge.f()}}),O.observe(ft.current)),O}function bt(){re.b.warn(decodeURIComponent(T))}var ut=function(){var B=At.current.instance;if(Pe!=null&&B&&Ge){var ge=B.getModel();ge&&Pe!==ge.getValue()&&(D=!0,ge.setValue(Pe),B.layout(),D=!1)}};Object(A.useEffect)(function(){He.current&&clearTimeout(He.current),He.current=setTimeout(function(){ut()},500)},[Pe,Ge,At.current]);function st(){var O=At.current.instance;if(O){var B=O.getSelection(),ge=At.current.pastePos||{},Se=new le.Range(ge.startLineNumber||B.endLineNumber,ge.startColumn||B.endColumn,ge.endLineNumber||B.endLineNumber,ge.endColumn||B.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&&At.current.instance){var B=At.current.instance.getContentHeight();C(B<Ce?Ce:B)}else C(Ce)};function xt(O){var B=document.createEvent("MouseEvents");B.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),O.dispatchEvent(B)}function Te(O,B){var ge=window.URL||window.webkitURL||window,Se=new Blob([B]),Ye=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ye.href=ge.createObjectURL(Se),Ye.download=O,xt(Ye)}Object(A.useEffect)(function(){ct()},[ct]),Object(A.useEffect)(function(){ft.current&&!Ge&&h.e(27).then(h.t.bind(null,"M/lh",7)).then(function(O){try{le=O,At.current.instance=le.editor.create(ft.current,{value:Pe,language:w(_),theme:M,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},V);var B=At.current.instance;if(We(B,le),setTimeout(function(){ct(),At.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Te(Tt||"educoder.txt",B.getValue())}})},500),At.current.subscription=B.onDidChangeModelContent(function(Se){rt.current?clearTimeout(pt.current):(ct(),ze(B.getValue(),Se)),pt.current=setTimeout(function(){rt.current=!1},500)}),window.Monaco||L(le),dt&&(B.addCommand(le.KeyMod.CtrlCmd|le.KeyMod.Shift|le.KeyCode.KEY_V,function(){return bt(),null}),B.addCommand(le.KeyMod.CtrlCmd|le.KeyCode.KEY_C,function(){return bt(),null})),window.Monaco=le,v&&B.onDidBlurEditorWidget(function(){v(B.getValue())}),N&&B.onDidFocusEditorText(function(){N(B.getValue())}),dt){B.addCommand(le.KeyMod.CtrlCmd|le.KeyCode.KEY_V,function(){return bt(),null}),B.onDidPaste(function(Se){At.current.pastePos=Se});try{window.addEventListener("paste",st)}catch(Se){}}var ge=Wt();return ot(!0),function(){var Se=At.current.instance;Se.dispose();var Ye=Se.getModel();Ye&&Ye.dispose(),At.current.subscription&&At.current.subscription.dispose(),dt&&window.removeEventListener("paste",st),ge.unobserve(ft.current)}}catch(Se){}})},[]),Object(A.useEffect)(function(){var O=At.current.instance;if(O&&Ge)return document.addEventListener("keydown",St,!1),function(){document.removeEventListener("keydown",St)}},[ce,Ge]),Object(A.useEffect)(function(){var O=At.current.instance;if(O&&Ge){var B=w(_);le.editor.setModelLanguage(O.getModel(),B),console.log("language:",_,O.getModel(),B)}},[_,Ge]),Object(A.useEffect)(function(){var O=At.current.instance;O&&Ge&&le.editor.setTheme(M)},[M,Ge]),Object(A.useEffect)(function(){var O=At.current.instance;O&&Ge&&(O.updateOptions(Object(I.a)({},Q)),setTimeout(function(){O.getModel().updateOptions(Object(I.a)({},Q))},200))},[JSON.stringify(Q),Ge]),Object(A.useEffect)(function(){var O=At.current.instance;O&&Ge&&O.layout()},[Ke,Ce,Ge]);var Dt=Object(A.useState)(q(Ke)),ht=Object(E.a)(Dt,2),Le=ht[0],Xe=ht[1],ne=Object(A.useState)(q(Ce)),Z=Object(E.a)(ne,2),$=Z[0],C=Z[1],x=Object(I.a)(Object(I.a)({},me),{},{width:Le,height:$});return R.a.createElement("div",{className:"my-monaco-editor",ref:ft,style:x})};function Je(we){var ke=we.width,Ke=ke===void 0?"100%":ke,Ee=we.height,Ce=Ee===void 0?"100%":Ee,Pe=we.original,be=we.modified,_=we.language,Ae=we.options,me=Ae===void 0?{}:Ae,S=Object(A.useRef)(),Q=Object(A.useState)(null),ue=Object(E.a)(Q,2),V=ue[0],De=ue[1];function M(Re){var qe;return S.current&&(qe=new F.default(function(dt){var Fe=Object(X.a)(dt),ze;try{for(Fe.s();!(ze=Fe.n()).done;){var Ne=ze.value;(Ne.target.offsetHeight>0||Ne.target.offsetWidth>0)&&Re.layout()}}catch(We){Fe.e(We)}finally{Fe.f()}}),qe.observe(S.current)),qe}Object(A.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 Fe=qe.getModel();Fe&&Fe.dispose(),dt.unobserve(S.current)}})},[]),Object(A.useEffect)(function(){V&&V.setModel({original:le.editor.createModel(Pe,_),modified:le.editor.createModel(be,_)})},[Pe,be,_,V]);var v=q(Ke),ce=q(Ce),Ue={width:v,height:ce};return R.a.createElement("div",{className:"my-diff-editor",ref:S,style:Ue})}},ZpRC:function(Oe,xe,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 G=function(D){if(!D.ownerDocument||!D.ownerDocument.defaultView)return null;try{return D.ownerDocument.defaultView.frameElement}catch(j){return null}}(q);return!!G&&(G.clientHeight<q.scrollHeight||G.clientWidth<q.scrollWidth)}(L)}return!1}function X(L,T,se,q,G,D,j,w){return D<L&&j>T||D>L&&j<T?0:D<=L&&w<=se||j>=T&&w>=se?D-L-q:j>T&&w<se||D<L&&w>se?j-T+G:0}var E=function(L,T){var se=window,q=T.scrollMode,G=T.block,D=T.inline,j=T.boundary,w=T.skipOverflowHiddenElements,le=typeof j=="function"?j:function(pt){return pt!==j};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,w)&&Je.push(we)}for(var ke=se.visualViewport?se.visualViewport.width:innerWidth,Ke=se.visualViewport?se.visualViewport.height:innerHeight,Ee=window.scrollX||pageXOffset,Ce=window.scrollY||pageYOffset,Pe=L.getBoundingClientRect(),be=Pe.height,_=Pe.width,Ae=Pe.top,me=Pe.right,S=Pe.bottom,Q=Pe.left,ue=G==="start"||G==="nearest"?Ae:G==="end"?S:Ae+be/2,V=D==="center"?Q+_/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,Fe=ce.bottom,ze=ce.left;if(q==="if-needed"&&Ae>=0&&Q>=0&&S<=Ke&&me<=ke&&Ae>=qe&&S<=Fe&&Q>=ze&&me<=dt)return De;var Ne=getComputedStyle(v),We=parseInt(Ne.borderLeftWidth,10),he=parseInt(Ne.borderTopWidth,10),N=parseInt(Ne.borderRightWidth,10),nt=parseInt(Ne.borderBottomWidth,10),Tt=0,Ut=0,ft="offsetWidth"in v?v.offsetWidth-v.clientWidth-We-N:0,At="offsetHeight"in v?v.offsetHeight-v.clientHeight-he-nt:0;if(Me===v)Tt=G==="start"?ue:G==="end"?ue-Ke:G==="nearest"?X(Ce,Ce+Ke,Ke,he,nt,Ce+ue,Ce+ue+be,be):ue-Ke/2,Ut=D==="start"?V:D==="center"?V-ke/2:D==="end"?V-ke:X(Ee,Ee+ke,ke,We,N,Ee+V,Ee+V+_,_),Tt=Math.max(0,Tt+Ce),Ut=Math.max(0,Ut+Ee);else{Tt=G==="start"?ue-qe-he:G==="end"?ue-Fe+nt+At:G==="nearest"?X(qe,Fe,Ue,he,nt+At,ue,ue+be,be):ue-(qe+Ue/2)+At/2,Ut=D==="start"?V-ze-We:D==="center"?V-(ze+Re/2)+ft/2:D==="end"?V-dt+N+ft:X(ze,dt,Re,We,N+ft,V,V+_,_);var He=v.scrollLeft,rt=v.scrollTop;ue+=rt-(Tt=Math.max(0,Math.min(rt+Tt,v.scrollHeight-Ue+At))),V+=He-(Ut=Math.max(0,Math.min(He+Ut,v.scrollWidth-Re+ft)))}De.push({el:v,top:Tt,left:Ut})}return De};function ie(L){return L===Object(L)&&Object.keys(L).length!==0}function A(L,T){T===void 0&&(T="auto");var se="scrollBehavior"in document.body.style;L.forEach(function(q){var G=q.el,D=q.top,j=q.left;G.scroll&&se?G.scroll({top:D,left:j,behavior:T}):(G.scrollTop=D,G.scrollLeft=j)})}function R(L){return L===!1?{block:"end",inline:"nearest"}:ie(L)?L:{block:"start",inline:"nearest"}}function F(L,T){var se=!L.ownerDocument.documentElement.contains(L);if(ie(T)&&typeof T.behavior=="function")return T.behavior(se?[]:E(L,T));if(se)return;var q=R(T);return A(E(L,q),q.behavior)}var K=xe.a=F},aRTE:function(Oe,xe){Oe.exports={L:1,M:0,Q:3,H:2}},bT9E:function(Oe,xe,h){"use strict";h.d(xe,"a",function(){return de});var I=h("VTBJ");function de(re,X){var E=Object(I.a)({},re);return Array.isArray(X)&&X.forEach(function(ie){delete E[ie]}),E}},c5Ni:function(Oe,xe,h){},cRFk:function(Oe,xe,h){Oe.exports=h.p+"static/RepositoryNoneData.828085a8.png"},csWT:function(Oe,xe,h){Oe.exports=h.p+"static/choose.4ad1045f.svg"},dQei:function(Oe,xe){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,xe,h){var I=h("dQei");function de(re,X){if(re.length==null)throw new Error(re.length+"/"+X);for(var E=0;E<re.length&&re[E]==0;)E++;this.num=new Array(re.length-E+X);for(var ie=0;ie<re.length-E;ie++)this.num[ie]=re[ie+E]}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),E=0;E<this.getLength();E++)for(var ie=0;ie<re.getLength();ie++)X[E+ie]^=I.gexp(I.glog(this.get(E))+I.glog(re.get(ie)));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)),E=new Array(this.getLength()),ie=0;ie<this.getLength();ie++)E[ie]=this.get(ie);for(var ie=0;ie<re.getLength();ie++)E[ie]^=I.gexp(I.glog(re.get(ie))+X);return new de(E,0).mod(re)}},Oe.exports=de},dejd:function(Oe,xe,h){},djh8:function(Oe,xe,h){Oe.exports=h.p+"static/qrCode.42927872.png"},dmUQ:function(Oe,xe,h){"use strict";var I=h("Ff2n"),de=h("rePB"),re=h("1OyB"),X=h("vuIU"),E=h("Ji7U"),ie=h("md7G"),A=h("foSv"),R=h("q1tI"),F=h.n(R),K=h("TSYQ"),L=h.n(K),T=h("4IlW");function se(be,_){var Ae=Object.keys(be);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(be);_&&(me=me.filter(function(S){return Object.getOwnPropertyDescriptor(be,S).enumerable})),Ae.push.apply(Ae,me)}return Ae}function q(be){for(var _=1;_<arguments.length;_++){var Ae=arguments[_]!=null?arguments[_]:{};_%2?se(Object(Ae),!0).forEach(function(me){Object(de.a)(be,me,Ae[me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(be,Object.getOwnPropertyDescriptors(Ae)):se(Object(Ae)).forEach(function(me){Object.defineProperty(be,me,Object.getOwnPropertyDescriptor(Ae,me))})}return be}function G(be){var _=D();return function(){var me=Object(A.a)(be),S;if(_){var Q=Object(A.a)(this).constructor;S=Reflect.construct(me,arguments,Q)}else S=me.apply(this,arguments);return Object(ie.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 j(){}function w(be){be.preventDefault()}var le=function(_){return _.replace(/[^\w.-]+/g,"")},Me=200,Je=600,we=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,ke=function(_){return _!=null},Ke=function(_,Ae){return Ae===_||typeof Ae=="number"&&typeof _=="number"&&isNaN(Ae)&&isNaN(_)},Ee=function(be){Object(E.a)(Ae,be);var _=G(Ae);function Ae(me){var S;Object(re.a)(this,Ae),S=_.call(this,me),S.onKeyDown=function(V){var De=S.props,M=De.onKeyDown,v=De.onPressEnter;if(V.keyCode===T.a.UP){var ce=S.getRatio(V);S.up(V,ce,null),S.stop()}else if(V.keyCode===T.a.DOWN){var Ue=S.getRatio(V);S.down(V,Ue,null),S.stop()}else V.keyCode===T.a.ENTER&&v&&v(V);if(S.recordCursorPosition(),S.lastKeyCode=V.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,[V].concat(qe))}},S.onKeyUp=function(V){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,[V].concat(v))}},S.onChange=function(V){var De=S.props.onChange;S.state.focused&&(S.inputting=!0),S.rawInput=S.props.parser(S.getValueFromEvent(V)),S.setState({inputValue:S.rawInput}),De(S.toNumber(S.rawInput))},S.onMouseUp=function(){var V=S.props.onMouseUp;S.recordCursorPosition(),V&&V.apply(void 0,arguments)},S.onFocus=function(){var V;S.setState({focused:!0}),(V=S.props).onFocus.apply(V,arguments)},S.onBlur=function(){var V=S.props.onBlur;S.inputting=!1,S.setState({focused:!1});var De=S.getCurrentValidValue(S.state.inputValue),M=S.setValue(De,j);if(V){var v=S.input.value,ce=S.getInputDisplayValue({focus:!1,value:M});S.input.value=ce&&Number(ce),V.apply(void 0,arguments),S.input.value=v}},S.getRatio=function(V){var De=1;return V.metaKey||V.ctrlKey?De=.1:V.shiftKey&&(De=10),De},S.getFullNum=function(V){return isNaN(V)?V:/e/i.test(String(V))?Number(V).toFixed(18).replace(/\.?0+$/,""):V},S.getPrecision=function(V){if(ke(S.props.precision))return S.props.precision;var De=String(V);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(V){var De=V||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(V){}},S.restoreByAfter=function(V){if(V===void 0)return!1;var De=S.input.value,M=De.lastIndexOf(V);if(M===-1)return!1;var v=S.cursorBefore.length;return S.lastKeyCode===T.a.DELETE&&S.cursorBefore.charAt(v-1)===V[0]?(S.fixCaret(v,v),!0):M+V.length===De.length?(S.fixCaret(M,M),!0):!1},S.partRestoreByAfter=function(V){return V===void 0?!1:Array.prototype.some.call(V,function(De,M){var v=V.substring(M);return S.restoreByAfter(v)})},S.isNotCompleteNumber=function(V){return isNaN(V)||V===""||V===null||V&&V.toString().indexOf(".")===V.toString().length-1},S.stop=function(){S.autoStepTimer&&clearTimeout(S.autoStepTimer)},S.down=function(V,De,M){S.pressingUpOrDown=!0,S.step("down",V,De,M)},S.up=function(V,De,M){S.pressingUpOrDown=!0,S.step("up",V,De,M)},S.saveInput=function(V){S.input=V};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)(Ae,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(S){var Q=this.props,ue=Q.value,V=Q.onChange,De=Q.max,M=Q.min,v=this.state.focused;if(S){if(!Ke(S.value,ue)||!Ke(S.max,De)||!Ke(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&&V&&V(De),"min"in this.props&&S.min!==M&&typeof Re=="number"&&Re<M&&V&&V(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,V=parseFloat(S);return isNaN(V)?S:(V<Q&&(V=Q),V>ue&&(V=ue),V)}},{key:"setValue",value:function(S,Q){var ue=this.props.precision,V=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 V=="number"?V.toFixed(ue):"".concat(V),Re=V!==M||Ue!=="".concat(ce);return"value"in this.props?(ce=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:ce},Q)):this.setState({value:V,inputValue:this.toPrecisionAsStep(S)},Q),Re&&this.props.onChange(V),V}},{key:"getMaxPrecision",value:function(S){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=this.props,V=ue.precision,De=ue.step;if(ke(V))return V;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,V=S&&S.length>16&&ue;return this.isNotCompleteNumber(S)||V?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,V=this.getPrecisionFactor(S,Q),De=Math.abs(this.getMaxPrecision(S,Q)),M=((V*S+V*ue*Q)/V).toFixed(De);return this.toNumber(M)}},{key:"downStep",value:function(S,Q){var ue=this.props.step,V=this.getPrecisionFactor(S,Q),De=Math.abs(this.getMaxPrecision(S,Q)),M=((V*S-V*ue*Q)/V).toFixed(De);return this.toNumber(M)}},{key:"step",value:function(S,Q){var ue=this,V=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,V),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,V,!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,V=this.input.selectionEnd;(S!==ue||Q!==V)&&this.input.setSelectionRange(S,Q)}catch(De){}}},{key:"render",value:function(){var S,Q=this.props,ue=Q.prefixCls,V=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,Fe=Q.style,ze=Q.title,Ne=Q.onMouseEnter,We=Q.onMouseLeave,he=Q.onMouseOver,N=Q.onMouseOut,nt=Q.required,Tt=Q.onClick,Ut=Q.tabIndex,ft=Q.type,At=Q.placeholder,He=Q.id,rt=Q.inputMode,pt=Q.pattern,gt=Q.step,$e=Q.maxLength,Ge=Q.autoFocus,ot=Q.name,Wt=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"),V),Object(de.a)(S,"".concat(ue,"-focused"),ct),S)),Te={};Object.keys(ut).forEach(function(B){(B.substr(0,5)==="data-"||B.substr(0,5)==="aria-"||B==="role")&&(Te[B]=ut[B])});var Dt=!De&&!V,ht=this.getInputDisplayValue(null),Le=(St||St===0)&&(isNaN(St)||Number(St)>=qe),Xe=(St||St===0)&&(isNaN(St)||Number(St)<=dt),ne=Le||V||De,Z=Xe||V||De,$=L()("".concat(ue,"-handler"),"".concat(ue,"-handler-up"),Object(de.a)({},"".concat(ue,"-handler-up-disabled"),ne)),C=L()("".concat(ue,"-handler"),"".concat(ue,"-handler-down"),Object(de.a)({},"".concat(ue,"-handler-down-disabled"),Z)),x=M?{onTouchStart:ne?j:this.up,onTouchEnd:this.stop}:{onMouseDown:ne?j:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},O=M?{onTouchStart:Z?j:this.down,onTouchEnd:this.stop}:{onMouseDown:Z?j:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return F.a.createElement("div",{className:xt,style:Fe,title:ze,onMouseEnter:Ne,onMouseLeave:We,onMouseOver:he,onMouseOut:N,onFocus:function(){return null},onBlur:function(){return null}},F.a.createElement("div",{className:"".concat(ue,"-handler-wrap")},F.a.createElement("span",Object.assign({unselectable:"on"},x,{role:"button","aria-label":"Increase Value","aria-disabled":ne,className:$}),ce||F.a.createElement("span",{unselectable:"on",className:"".concat(ue,"-handler-up-inner"),onClick:w})),F.a.createElement("span",Object.assign({unselectable:"on"},O,{role:"button","aria-label":"Decrease Value","aria-disabled":Z,className:C}),Ue||F.a.createElement("span",{unselectable:"on",className:"".concat(ue,"-handler-down-inner"),onClick:w}))),F.a.createElement("div",{className:"".concat(ue,"-input-wrap")},F.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":dt,"aria-valuemax":qe,"aria-valuenow":St,required:nt,type:ft,placeholder:At,onPaste:Wt,onClick:Tt,onMouseUp:this.onMouseUp,className:"".concat(ue,"-input"),tabIndex:Ut,autoComplete:v,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Dt?this.onKeyDown:j,onKeyUp:Dt?this.onKeyUp:j,autoFocus:Ge,maxLength:$e,readOnly:De,disabled:V,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))))}}]),Ae}(F.a.Component);Ee.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:we,min:-we,step:1,style:{},onChange:j,onKeyDown:j,onPressEnter:j,onFocus:j,onBlur:j,parser:le,required:!1,autoComplete:"off"};var Ce=Ee,Pe=xe.a=Ce},f4xo:function(Oe,xe,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,xe,h){Oe.exports=h.p+"static/douyu.3e6df9ee.jpg"},k3GJ:function(Oe,xe,h){"use strict";h.d(xe,"a",function(){return Ca});var I=h("rePB"),de=h("ODXe"),re=h("Ff2n"),X=h("VTBJ"),E=h("q1tI"),ie=h("TSYQ"),A=h.n(ie),R=h("Zm9Q"),F=h("6cGi"),K=h("KQm4"),L=h("xEkU"),T=h.n(L),se=h("t23M");function q(P){var ee=Object(E.useRef)(),oe=Object(E.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(ee.current),ee.current=T()(function(){P.apply(void 0,k)}))}return Object(E.useEffect)(function(){return function(){oe.current=!0,T.a.cancel(ee.current)}},[]),U}function G(P){var ee=Object(E.useRef)([]),oe=Object(E.useState)({}),U=Object(de.a)(oe,2),g=U[1],k=Object(E.useRef)(typeof P=="function"?P():P),b=q(function(){var H=k.current;ee.current.forEach(function(ae){H=ae(H)}),ee.current=[],k.current=H,g({})});function z(H){ee.current.push(H),b()}return[k.current,z]}var D=h("4IlW");function j(P,ee){var oe,U=P.prefixCls,g=P.id,k=P.active,b=P.rtl,z=P.tab,H=z.key,ae=z.tab,te=z.disabled,pe=z.closeIcon,Ie=P.tabBarGutter,it=P.tabPosition,tt=P.closable,mt=P.renderWrapper,Xt=P.removeAriaLabel,sn=P.editable,tn=P.onClick,on=P.onRemove,ln=P.onFocus,an="".concat(U,"-tab");E.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=E.createElement("div",{key:H,ref:ee,className:A()(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},E.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(Vt){Vt.stopPropagation(),fn(Vt)},onKeyDown:function(Vt){[D.a.SPACE,D.a.ENTER].includes(Vt.which)&&(Vt.preventDefault(),fn(Vt))},onFocus:ln},ae),En&&E.createElement("button",{type:"button","aria-label":Xt||"remove",tabIndex:0,className:"".concat(an,"-remove"),onClick:function(Vt){Vt.stopPropagation(),Zn(Vt)}},pe||sn.removeIcon||"\xD7"));return mt&&(pn=mt(pn)),pn}var w=E.forwardRef(j),le={width:0,height:0,left:0,top:0};function Me(P,ee,oe){return Object(E.useMemo)(function(){for(var U,g=new Map,k=ee.get((U=P[0])===null||U===void 0?void 0:U.key)||le,b=k.left+k.width,z=0;z<P.length;z+=1){var H=P[z].key,ae=ee.get(H);if(!ae){var te;ae=ee.get((te=P[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},[P.map(function(U){return U.key}).join("_"),ee,oe])}var Je={width:0,height:0,left:0,top:0,right:0};function we(P,ee,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(ee.left)):(H="height",ae="top",te=-ee.top);var pe=ee[H],Ie=oe[H],it=U[H],tt=pe;return Ie+it>pe&&(tt=pe-it),Object(E.useMemo)(function(){if(!k.length)return[0,0];for(var mt=k.length,Xt=mt,sn=0;sn<mt;sn+=1){var tn=P.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=P.get(k[ln].key)||Je;if(an[ae]<te){on=ln+1;break}}return[on,Xt]},[P,te,tt,b,k.map(function(mt){return mt.key}).join("_"),z])}var ke=h("wx14"),Ke=h("1OyB"),Ee=h("vuIU"),Ce=h("JX7q"),Pe=h("Ji7U"),be=h("LK+K"),_=h("I8Z2"),Ae=h("bT9E"),me=h("2GS6"),S=h("Gytx"),Q=h.n(S),ue=h("U8pU"),V=/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,Fe=/BlackBerry/i,ze=/BB10/i,Ne=/Opera Mini/i,We=/\b(CriOS|Chrome)(?:.+)Mobile/i,he=/Mobile(?:.+)Firefox\b/i;function N(P,ee){return P.test(ee)}function nt(P){var ee=P||(typeof navigator!="undefined"?navigator.userAgent:""),oe=(ee||"").split("[FBAN");if(typeof oe[1]!="undefined"){var U=oe,g=Object(de.a)(U,1);ee=g[0]}if(oe=ee.split("Twitter"),typeof oe[1]!="undefined"){var k=oe,b=Object(de.a)(k,1);ee=b[0]}var z={apple:{phone:N(V,ee)&&!N(qe,ee),ipod:N(De,ee),tablet:!N(V,ee)&&N(M,ee)&&!N(qe,ee),device:(N(V,ee)||N(De,ee)||N(M,ee))&&!N(qe,ee)},amazon:{phone:N(Ue,ee),tablet:!N(Ue,ee)&&N(Re,ee),device:N(Ue,ee)||N(Re,ee)},android:{phone:!N(qe,ee)&&N(Ue,ee)||!N(qe,ee)&&N(v,ee),tablet:!N(qe,ee)&&!N(Ue,ee)&&!N(v,ee)&&(N(Re,ee)||N(ce,ee)),device:!N(qe,ee)&&(N(Ue,ee)||N(Re,ee)||N(v,ee)||N(ce,ee))||N(/\bokhttp\b/i,ee)},windows:{phone:N(qe,ee),tablet:N(dt,ee),device:N(qe,ee)||N(dt,ee)},other:{blackberry:N(Fe,ee),blackberry10:N(ze,ee),opera:N(Ne,ee),firefox:N(he,ee),chrome:N(We,ee),device:N(Fe,ee)||N(ze,ee)||N(Ne,ee)||N(he,ee)||N(We,ee)},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 At(P,ee,oe){var U=ee||"";return P.key||"".concat(U,"item_").concat(oe)}function He(P){return"".concat(P,"-menu-")}function rt(P,ee){var oe=-1;E.Children.forEach(P,function(U){oe+=1,U&&U.type&&U.type.isMenuItemGroup?E.Children.forEach(U.props.children,function(g){oe+=1,ee(g,oe)}):ee(U,oe)})}function pt(P,ee,oe){if(!P||oe.find)return;E.Children.forEach(P,function(U){if(U){var g=U.type;if(!g||!(g.isSubMenu||g.isMenuItem||g.isMenuItemGroup))return;ee.indexOf(U.key)!==-1?oe.find=!0:U.props.children&&pt(U.props.children,ee,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(ee){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=ee&&typeof ee.getBoundingClientRect=="function"&&ee.getBoundingClientRect().width;if(U){if(oe){var g=getComputedStyle(ee),k=g.marginLeft,b=g.marginRight;U+=+k.replace("px","")+ +b.replace("px","")}U=+U.toFixed(6)}return U||0},Ge=function(ee,oe,U){ee&&Object(ue.a)(ee.style)==="object"&&(ee.style[oe]=U)},ot=function(){return Ut.any},Wt=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(P,ee,oe){return oe?P[0]===ee[0]:P[0]===ee[0]&&P[1]===ee[1]}function Le(P,ee,oe){var U=P[ee]||{};return Object(X.a)(Object(X.a)({},U),oe)}function Xe(P,ee,oe,U){for(var g=oe.points,k=Object.keys(P),b=0;b<k.length;b+=1){var z=k[b];if(ht(P[z].points,g,U))return"".concat(ee,"-placement-").concat(z)}return""}var ne=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var P=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(P)||/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(P==null?void 0:P.substr(0,4)))},Z=h("MNnm");function $(P,ee){var oe={};return oe[P.toLowerCase()]=ee.toLowerCase(),oe["Webkit".concat(P)]="webkit".concat(ee),oe["Moz".concat(P)]="moz".concat(ee),oe["ms".concat(P)]="MS".concat(ee),oe["O".concat(P)]="o".concat(ee.toLowerCase()),oe}function C(P,ee){var oe={animationend:$("Animation","AnimationEnd"),transitionend:$("Transition","TransitionEnd")};return P&&("AnimationEvent"in ee||delete oe.animationend.animation,"TransitionEvent"in ee||delete oe.transitionend.transition),oe}var x=C(Object(Z.a)(),typeof window!="undefined"?window:{}),O={};if(Object(Z.a)()){var B=document.createElement("div");O=B.style}var ge={};function Se(P){if(ge[P])return ge[P];var ee=x[P];if(ee)for(var oe=Object.keys(ee),U=oe.length,g=0;g<U;g+=1){var k=oe[g];if(Object.prototype.hasOwnProperty.call(ee,k)&&k in O)return ge[P]=ee[k],ge[P]}return""}var Ye=Se("animationend"),jt=Se("transitionend"),zt=!!(Ye&&jt),je=Ye||"animationend",Ot=jt||"transitionend";function Ct(P,ee){if(!P)return null;if(Object(ue.a)(P)==="object"){var oe=ee.replace(/-\w/g,function(U){return U[1].toUpperCase()});return P[oe]}return"".concat(P,"-").concat(ee)}var et="none",Zt="appear",Gt="enter",at="leave",un="none",Ft="prepare",Gn="start",In="active",It="end";function vi(P){var ee=Object(E.useRef)(!1),oe=Object(E.useState)(P),U=Object(de.a)(oe,2),g=U[0],k=U[1];function b(z){ee.current||k(z)}return Object(E.useEffect)(function(){return function(){ee.current=!0}},[]),[g,b]}var si=Object(Z.a)()?E.useLayoutEffect:E.useEffect,Qn=si,oi=function(){var P=E.useRef(null);function ee(){st.a.cancel(P.current)}function oe(U){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;ee();var k=Object(st.a)(function(){g<=1?U({isCanceled:function(){return k!==P.current}}):oe(U,g-1)});P.current=k}return E.useEffect(function(){return function(){ee()}},[]),[oe,ee]},ji=[Ft,Gn,In,It],Di=!1,cn=!0;function Rt(P){return P===In||P===It}var Bi=function(P,ee){var oe=E.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(Ft)}return Qn(function(){if(g!==un&&g!==It){var pe=ji.indexOf(g),Ie=ji[pe+1],it=ee(g);it===Di?k(Ie):H(function(tt){function mt(){if(tt.isCanceled())return;k(Ie)}it===!0?mt():Promise.resolve(it).then(mt)})}},[P,g]),E.useEffect(function(){return function(){ae()}},[]),[te,g]},Li=function(P){var ee=Object(E.useRef)(),oe=Object(E.useRef)(P);oe.current=P;var U=E.useCallback(function(b){oe.current(b)},[]);function g(b){b&&(b.removeEventListener(Ot,U),b.removeEventListener(je,U))}function k(b){ee.current&&ee.current!==b&&g(ee.current),b&&b!==ee.current&&(b.addEventListener(Ot,U),b.addEventListener(je,U),ee.current=b)}return E.useEffect(function(){return function(){g(ee.current)}},[]),[k,g]};function Pn(P,ee,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],Vt=pn[1],vn=vi(et),xn=Object(de.a)(vn,2),_t=xn[0],Sn=xn[1],qn=vi(null),On=Object(de.a)(qn,2),Wn=On[0],Bn=On[1],ci=Object(E.useRef)(!1),Si=Object(E.useRef)(null),ti=Object(E.useRef)(!1),zi=Object(E.useRef)(null);function co(){var Hn=oe();return Hn||zi.current}var Qi=Object(E.useRef)(!1);function ki(Hn){var jn=co();if(Hn&&!Hn.deadline&&Hn.target!==jn)return;var Mi;_t===Zt&&Qi.current?Mi=an==null?void 0:an(jn,Hn):_t===Gt&&Qi.current?Mi=rn==null?void 0:rn(jn,Hn):_t===at&&Qi.current&&(Mi=En==null?void 0:En(jn,Hn)),Mi!==!1&&!ti.current&&(Sn(et),Bn(null))}var Vn=Li(ki),Fn=Object(de.a)(Vn,1),ni=Fn[0],$n=E.useMemo(function(){var Hn,jn,Mi;switch(_t){case"appear":return Hn={},Object(I.a)(Hn,Ft,Ie),Object(I.a)(Hn,Gn,mt),Object(I.a)(Hn,In,tn),Hn;case"enter":return jn={},Object(I.a)(jn,Ft,it),Object(I.a)(jn,Gn,Xt),Object(I.a)(jn,In,on),jn;case"leave":return Mi={},Object(I.a)(Mi,Ft,tt),Object(I.a)(Mi,Gn,sn),Object(I.a)(Mi,In,ln),Mi;default:return{}}},[_t]),ho=Bi(_t,function(Hn){if(Hn===Ft){var jn=$n[Ft];return jn?jn(co()):Di}if(_n in $n){var Mi;Bn(((Mi=$n[_n])===null||Mi===void 0?void 0:Mi.call($n,co(),null))||null)}return _n===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],_n=Do[1],bo=Rt(_n);Qi.current=bo,Qn(function(){Vt(ee);var Hn=ci.current;if(ci.current=!0,!P)return;var jn;!Hn&&ee&&z&&(jn=Zt),Hn&&ee&&k&&(jn=Gt),(Hn&&!ee&&ae||!Hn&&pe&&!ee&&ae)&&(jn=at),jn&&(Sn(jn),Lo())},[ee]),Object(E.useEffect)(function(){(_t===Zt&&!z||_t===Gt&&!k||_t===at&&!ae)&&Sn(et)},[z,k,ae]),Object(E.useEffect)(function(){return function(){clearTimeout(Si.current),ti.current=!0}},[]),Object(E.useEffect)(function(){Qt!==void 0&&_t===et&&(fn==null||fn(Qt))},[Qt,_t]);var Io=Wn;return $n[Ft]&&_n===Gn&&(Io=Object(X.a)({transition:"none"},Io)),[_t,_n,Io,Qt!=null?Qt:ee]}var Jt=function(P){Object(Pe.a)(oe,P);var ee=Object(be.a)(oe);function oe(){return Object(Ke.a)(this,oe),ee.apply(this,arguments)}return Object(Ee.a)(oe,[{key:"render",value:function(){return this.props.children}}]),oe}(E.Component),An=Jt;function en(P){var ee=P;Object(ue.a)(P)==="object"&&(ee=P.transitionSupport);function oe(g){return!!(g.motionName&&ee)}var U=E.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(E.useRef)(),sn=Object(E.useRef)();function tn(){try{return Object(ct.a)(Xt.current||sn.current)}catch(Sn){return null}}var on=Pn(mt,z,tn,g),ln=Object(de.a)(on,4),an=ln[0],rn=ln[1],En=ln[2],fn=ln[3],Zn=E.useRef(fn);fn&&(Zn.current=!0);var pn=Object(E.useRef)(k);pn.current=k;var Qt=E.useCallback(function(Sn){Xt.current=Sn,Object(xt.b)(pn.current,Sn)},[]),Vt,vn=Object(X.a)(Object(X.a)({},tt),{},{visible:z});if(!pe)Vt=null;else if(an===et||!oe(g))fn?Vt=pe(Object(X.a)({},vn),Qt):!ae&&Zn.current?Vt=pe(Object(X.a)(Object(X.a)({},vn),{},{className:it}),Qt):te?Vt=pe(Object(X.a)(Object(X.a)({},vn),{},{style:{display:"none"}}),Qt):Vt=null;else{var xn,_t;rn===Ft?_t="prepare":Rt(rn)?_t="active":rn===Gn&&(_t="start"),Vt=pe(Object(X.a)(Object(X.a)({},vn),{},{className:A()(Ct(Ie,an),(xn={},Object(I.a)(xn,Ct(Ie,"".concat(an,"-").concat(_t)),_t),Object(I.a)(xn,Ie,typeof Ie=="string"),xn)),style:En}),Qt)}return E.createElement(An,{ref:sn},Vt)});return U.displayName="CSSMotion",U}var yn=en(zt),Be="add",Pt="keep",Jn="remove",Yn="removed";function ao(P){var ee;return P&&Object(ue.a)(P)==="object"&&"key"in P?ee=P:ee={key:P},Object(X.a)(Object(X.a)({},ee),{},{key:String(ee.key)})}function so(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return P.map(ao)}function d(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],oe=[],U=0,g=ee.length,k=so(P),b=so(ee);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:Be})})),U=pe),oe.push(Object(X.a)(Object(X.a)({},Ie),{},{status:Pt})),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:Be})})));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=Pt)})}),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(P){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yn,oe=function(U){Object(Pe.a)(k,U);var g=Object(be.a)(k);function k(){var b;return Object(Ke.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||E.Fragment,mt={};return r.forEach(function(Xt){mt[Xt]=it[Xt],delete it[Xt]}),delete it.keys,E.createElement(tt,it,H.map(function(Xt){var sn=Xt.status,tn=Object(re.a)(Xt,["status"]),on=sn===Be||sn===Pt;return E.createElement(ee,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}(E.Component);return oe.defaultProps={component:"div"},oe}var u=a(zt),m=yn;function c(P){var ee=P.prefixCls,oe=P.motion,U=P.animation,g=P.transitionName;return oe||(U?{motionName:"".concat(ee,"-").concat(U)}:g?{motionName:g}:null)}function Y(P){var ee=P.prefixCls,oe=P.visible,U=P.zIndex,g=P.mask,k=P.maskMotion,b=P.maskAnimation,z=P.maskTransitionName;if(!g)return null;var H={};return(k||z||b)&&(H=Object(X.a)({motionAppear:!0},c({motion:k,prefixCls:ee,transitionName:z,animation:b}))),E.createElement(m,Object(ke.a)({},H,{visible:oe,removeOnLeave:!0}),function(ae){var te=ae.className;return E.createElement("div",{style:{zIndex:U},className:A()("".concat(ee,"-mask"),te)})})}var Ve=h("9mu1"),ve=h("o0o1"),Lt=h.n(ve),Qe=h("HaE+"),Et=["measure","align",null,"motion"],wt=function(P,ee){var oe=Object(E.useState)(null),U=Object(de.a)(oe,2),g=U[0],k=U[1],b=Object(E.useRef)(),z=Object(E.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(E.useEffect)(function(){H("measure")},[P]),Object(E.useEffect)(function(){switch(g){case"measure":ee();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(E.useEffect)(function(){return function(){z.current=!0,ae()}},[]),[g,te]},kt=function(P){var ee=E.useState({width:0,height:0}),oe=Object(de.a)(ee,2),U=oe[0],g=oe[1];function k(z){g({width:z.offsetWidth,height:z.offsetHeight})}var b=E.useMemo(function(){var z={};if(P){var H=U.width,ae=U.height;P.indexOf("height")!==-1&&ae?z.height=ae:P.indexOf("minHeight")!==-1&&ae&&(z.minHeight=ae),P.indexOf("width")!==-1&&H?z.width=H:P.indexOf("minWidth")!==-1&&H&&(z.minWidth=H)}return z},[P,U]);return[b,k]},nn=E.forwardRef(function(P,ee){var oe=P.visible,U=P.prefixCls,g=P.className,k=P.style,b=P.children,z=P.zIndex,H=P.stretch,ae=P.destroyPopupOnHide,te=P.forceRender,pe=P.align,Ie=P.point,it=P.getRootDomNode,tt=P.getClassNameFromAlign,mt=P.onAlign,Xt=P.onMouseEnter,sn=P.onMouseLeave,tn=P.onMouseDown,on=P.onTouchStart,ln=Object(E.useRef)(),an=Object(E.useRef)(),rn=Object(E.useState)(),En=Object(de.a)(rn,2),fn=En[0],Zn=En[1],pn=kt(H),Qt=Object(de.a)(pn,2),Vt=Qt[0],vn=Qt[1];function xn(){H&&vn(it())}var _t=wt(oe,xn),Sn=Object(de.a)(_t,2),qn=Sn[0],On=Sn[1],Wn=Object(E.useRef)();function Bn(){return Ie||it}function ci(){var Vn;(Vn=ln.current)===null||Vn===void 0||Vn.forceAlign()}function Si(Vn,Fn){var ni=tt(Fn);fn!==ni&&Zn(ni),qn==="align"&&(fn!==ni?Promise.resolve().then(function(){ci()}):On(function(){var $n;($n=Wn.current)===null||$n===void 0||$n.call(Wn)}),mt==null||mt(Vn,Fn))}var ti=Object(X.a)({},c(P));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Vn){var Fn=ti[Vn];ti[Vn]=function(ni,$n){return On(),Fn==null?void 0:Fn(ni,$n)}});function zi(){return new Promise(function(Vn){Wn.current=Vn})}E.useEffect(function(){!ti.motionName&&qn==="motion"&&On()},[ti.motionName,qn]),E.useImperativeHandle(ee,function(){return{forceAlign:ci,getElement:function(){return an.current}}});var co=Object(X.a)(Object(X.a)({},Vt),{},{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 E.Children.count(b)>1&&(ki=E.createElement("div",{className:"".concat(U,"-content")},b)),E.createElement(m,Object(ke.a)({visible:oe,ref:an,leavedClassName:"".concat(U,"-hidden")},ti,{onAppearPrepare:zi,onEnterPrepare:zi,removeOnLeave:ae,forceRender:te}),function(Vn,Fn){var ni=Vn.className,$n=Vn.style,ho=A()(U,g,fn,ni);return E.createElement(Ve.a,{target:Bn(),key:"popup",ref:ln,monitorWindowResize:!0,disabled:Qi,align:pe,onAlign:Si},E.createElement("div",{ref:Fn,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=E.forwardRef(function(P,ee){var oe=P.prefixCls,U=P.visible,g=P.zIndex,k=P.children,b=P.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=E.useRef();E.useImperativeHandle(ee,function(){return{forceAlign:function(){},getElement:function(){return Ie.current}}});var it=Object(X.a)({zIndex:g},H),tt=k;return E.Children.count(k)>1&&(tt=E.createElement("div",{className:"".concat(oe,"-content")},k)),pe&&(tt=pe(tt)),E.createElement(m,Object(ke.a)({visible:U,ref:Ie,removeOnLeave:!0},te),function(mt,Xt){var sn=mt.className,tn=mt.style,on=A()(oe,z,sn);return E.createElement("div",{ref:Xt,className:on,style:Object(X.a)(Object(X.a)({},tn),it)},tt)})});$t.displayName="MobilePopupInner";var _i=$t,hi=["visible","mobile"],Ai=E.forwardRef(function(P,ee){var oe=P.visible,U=P.mobile,g=Object(re.a)(P,hi),k=Object(E.useState)(oe),b=Object(de.a)(k,2),z=b[0],H=b[1],ae=Object(E.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(E.useEffect)(function(){H(oe),oe&&U&&Ie(ne())},[oe,U]);var tt=pe?E.createElement(_i,Object(ke.a)({},it,{mobile:U,ref:ee})):E.createElement(mn,Object(ke.a)({},it,{ref:ee}));return E.createElement("div",null,E.createElement(Y,it),tt)});Ai.displayName="Popup";var Ii=Ai,wi=E.createContext(null),lo=wi;function qi(){}function go(){return""}function $i(P){return P?P.ownerDocument:window.document}var lr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Qo(P){var ee=function(oe){Object(Pe.a)(g,oe);var U=Object(be.a)(g);function g(k){var b;Object(Ke.a)(this,g),b=U.call(this,k),b.popupRef=E.createRef(),b.triggerRef=E.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,Vt=Qt.popupVisible,vn=Qt.point,xn=b.getPopupAlign(),_t={};return b.isMouseEnterToShow()&&(_t.onMouseEnter=b.onPopupMouseEnter),b.isMouseLeaveToHide()&&(_t.onMouseLeave=b.onPopupMouseLeave),_t.onMouseDown=b.onPopupMouseDown,_t.onTouchStart=b.onPopupMouseDown,E.createElement(Ii,Object(ke.a)({prefixCls:ae,destroyPopupOnHide:te,visible:Vt,point:fn&&vn,className:pe,align:xn,onAlign:Ie,animation:tt,getClassNameFromAlign:b.getPopupClassNameFromAlign},_t,{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=E.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=A()(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=E.cloneElement(it,Xt),tn;return(b||this.popupRef.current||ae)&&(tn=E.createElement(P,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!b&&Ie&&(tn=null),E.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}(E.Component);return ee.contextType=lo,ee.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},ee}var Ki=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(ee,oe,U){var g=He(oe),k=ee.getState();ee.setState({defaultActiveFirst:Object(X.a)(Object(X.a)({},k.defaultActiveFirst),{},Object(I.a)({},g,U))})},kn=function(P){Object(Pe.a)(oe,P);var ee=Object(be.a)(oe);function oe(U){var g;Object(Ke.a)(this,oe),g=ee.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 E.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 E.createElement("div",null);var pe=A()("".concat(k.prefixCls,"-sub"),Object(I.a)({},"".concat(k.prefixCls,"-rtl"),ae==="rtl"));return this.isInlineMode()?E.createElement(m,Object(ke.a)({visible:k.visible,forceRender:H},te),function(Ie){var it=Ie.className,tt=Ie.style,mt=A()(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=A()(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=E.createElement(this.props.expandIcon,Object(X.a)({},this.props))));var an=E.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||E.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(Bn){return Bn.parentNode},fn=Mn[pe],Zn=z.popupOffset?{offset:z.popupOffset}:{},pn=A()((b={},Object(I.a)(b,z.popupClassName,z.popupClassName&&!te),Object(I.a)(b,"".concat(ae,"-rtl"),tn),b)),Qt=z.disabled,Vt=z.triggerSubMenuAction,vn=z.subMenuOpenDelay,xn=z.forceSubMenuRender,_t=z.subMenuCloseDelay,Sn=z.builtinPlacements;gt.forEach(function(Bn){return delete z[Bn]}),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(),Wn=te?null:this.getMotion(On.mode,On.visible);return E.createElement("li",Object(ke.a)({},z,it,{className:Ie,role:"menuitem"}),E.createElement(Ki,{prefixCls:ae,popupClassName:A()("".concat(ae,"-popup"),pn),getPopupContainer:En,builtinPlacements:qn,popupPlacement:fn,popupVisible:te?!1:H,popupAlign:Zn,popup:te?null:rn,action:Qt||te?[]:[Vt],mouseEnterDelay:vn,mouseLeaveDelay:_t,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:xn,popupMotion:Wn},an),te?rn:null)}}]),oe}(E.Component);kn.defaultProps={onMouseEnter:ft,onMouseLeave:ft,onTitleMouseEnter:ft,onTitleMouseLeave:ft,onTitleClick:ft,manualRef:ft,mode:"vertical",title:""};var yi=Object(_.b)(function(P,ee){var oe=P.openKeys,U=P.activeKey,g=P.selectedKeys,k=ee.eventKey,b=ee.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(P){Object(Pe.a)(oe,P);var ee=Object(be.a)(oe);function oe(){var U;return Object(Ke.a)(this,oe),U=ee.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=E.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])}),E.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];Ge(b,"display","inline-block");var z=U.getMenuItemNodes(),H=z.filter(function(ae){return ae.className.split(" ").indexOf(Co)>=0});H.forEach(function(ae){Ge(ae,"display","inline-block")}),U.menuItemSizes=z.map(function(ae){return $e(ae,!0)}),H.forEach(function(ae){Ge(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(),Ge(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 Wt.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=E.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 E.cloneElement(it,{key:it.props.eventKey,mode:"vertical-left"})}),pe=k.getOverflowedSubMenuItem(H.props.eventKey,k.overflowedItems)));var Ie=[].concat(Object(K.a)(z),[pe,te]);return ae===g.length-1&&Ie.push(k.getOverflowedSubMenuItem(H.props.eventKey,[],!0)),Ie}return[].concat(Object(K.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 E.createElement(tt,Object(ke.a)({ref:this.childRef},it),this.renderChildren(pe))}}]),oe}(E.Component);ui.defaultProps={tag:"div",className:""};var vo=ui;function To(P){return P.length?P.every(function(ee){return!!ee.props.disabled}):!0}function uo(P,ee,oe){var U=P.getState();P.setState({activeKey:Object(X.a)(Object(X.a)({},U.activeKey),{},Object(I.a)({},ee,oe))})}function Eo(P){return P.eventKey||"0-menu-"}function Gi(P,ee){var oe=ee,U=P.children,g=P.eventKey;if(oe){var k;if(rt(U,function(b,z){b&&b.props&&!b.props.disabled&&oe===At(b,g,z)&&(k=!0)}),k)return oe}return oe=null,P.defaultActiveFirst&&rt(U,function(b,z){!oe&&b&&!b.props.disabled&&(oe=At(b,g,z))}),oe}function Xo(P){if(!P)return;var ee=this.instanceArray.indexOf(P);ee!==-1?this.instanceArray[ee]=P:this.instanceArray.push(P)}var Fi=function(P){Object(Pe.a)(oe,P);var ee=Object(be.a)(oe);function oe(U){var g;return Object(Ke.a)(this,oe),g=ee.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=At(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"),E.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,Gi(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=Gi(k,b);if(z!==b)uo(k.store,Eo(k),z);else if("activeKey"in g){var H=Gi(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=A()(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,E.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}(E.Component);Fi.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ft};var Yo=Object(_.b)()(Fi),yo=Yo,Ro=h("Kwbf");function Fr(P,ee,oe){var U=P.prefixCls,g=P.motion,k=P.defaultMotions,b=k===void 0?{}:k,z=P.openAnimation,H=P.openTransitionName,ae=ee.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(P){Object(Pe.a)(oe,P);var ee=Object(be.a)(oe);function oe(U){var g;Object(Ke.a)(this,oe),g=ee.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(_.c)({selectedKeys:k,openKeys:b,activeKey:{"0-menu-":Gi(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(Ae.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:Fr(this.props,this.state,k)}),delete g.openAnimation,delete g.openTransitionName,E.createElement(_.a,{store:this.store},E.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}(E.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:E.createElement("span",null,"\xB7\xB7\xB7")};var ya=yr,br=function(P){Object(Pe.a)(oe,P);var ee=Object(be.a)(oe);function oe(){var U;return Object(Ke.a)(this,oe),U=ee.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=A()(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=E.createElement(this.props.itemIcon,this.props)),E.createElement("li",Object(ke.a)({},Object(Ae.a)(k,["onClick","onMouseEnter","onMouseLeave","onSelect"]),z,H,{style:ae,ref:this.saveNode}),k.children,te)}}]),oe}(E.Component);br.isMenuItem=!0,br.defaultProps={onSelect:ft,onMouseEnter:ft,onMouseLeave:ft,manualRef:ft};var zr=Object(_.b)(function(P,ee){var oe=P.activeKey,U=P.selectedKeys,g=ee.eventKey,k=ee.subMenuKey;return{active:oe[k]===g,isSelected:Array.isArray(U)?U.indexOf(g)!==-1:U===g}})(br),Cr=zr,Bt=function(P){Object(Pe.a)(oe,P);var ee=Object(be.a)(oe);function oe(){var U;return Object(Ke.a)(this,oe),U=ee.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,E.createElement("li",Object(ke.a)({},g,{onClick:function(it){return it.stopPropagation()},className:"".concat(b," ").concat(z,"-item-group")}),E.createElement("div",{className:H,title:typeof te=="string"?te:void 0},te),E.createElement("ul",{className:ae},E.Children.map(pe,this.renderInnerMenuItem)))}}]),oe}(E.Component);Bt.isMenuItemGroup=!0,Bt.defaultProps={disabled:!0};var qt=Bt,Ht=function(ee){var oe=ee.className,U=ee.rootPrefixCls,g=ee.style;return E.createElement("li",{className:"".concat(oe," ").concat(U,"-item-divider"),style:g})};Ht.defaultProps={disabled:!0,className:"",style:{}};var gn=Ht,wn=ya,Dn=h("eDIo");function bn(P,ee){var oe=P.prefixCls,U=P.editable,g=P.locale,k=P.style;return!U||U.showAdd===!1?null:E.createElement("button",{ref:ee,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=E.forwardRef(bn);function bi(P,ee){var oe=P.prefixCls,U=P.id,g=P.tabs,k=P.locale,b=P.mobile,z=P.moreIcon,H=z===void 0?"More":z,ae=P.moreTransitionName,te=P.style,pe=P.className,Ie=P.editable,it=P.tabBarGutter,tt=P.rtl,mt=P.onTabClick,Xt=Object(E.useState)(!1),sn=Object(de.a)(Xt,2),tn=sn[0],on=sn[1],ln=Object(E.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,Vt=E.createElement(wn,{onClick:function(Wn){var Bn=Wn.key,ci=Wn.domEvent;mt(Bn,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 E.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 Wn=g.filter(function(zi){return!zi.disabled}),Bn=Wn.findIndex(function(zi){return zi.key===rn})||0,ci=Wn.length,Si=0;Si<ci;Si+=1){Bn=(Bn+On+ci)%ci;var ti=Wn[Bn];if(!ti.disabled){En(ti.key);return}}}function xn(On){var Wn=On.which;if(!tn){[D.a.DOWN,D.a.SPACE,D.a.ENTER].includes(Wn)&&(on(!0),On.preventDefault());return}switch(Wn){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(E.useEffect)(function(){var On=document.getElementById(pn);On&&On.scrollIntoView&&On.scrollIntoView(!1)},[rn]),Object(E.useEffect)(function(){tn||En(null)},[tn]);var _t=Object(I.a)({},tt?"marginLeft":"marginRight",it);g.length||(_t.visibility="hidden",_t.order=1);var Sn=A()(Object(I.a)({},"".concat(Zn,"-rtl"),tt)),qn=b?null:E.createElement(Dn.a,{prefixCls:Zn,overlay:Vt,trigger:["hover"],visible:tn,transitionName:ae,onVisibleChange:on,overlayClassName:Sn,mouseEnterDelay:.1,mouseLeaveDelay:.1},E.createElement("button",{type:"button",className:"".concat(oe,"-nav-more"),style:_t,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":fn,id:"".concat(U,"-more"),"aria-expanded":tn,onKeyDown:xn},H));return E.createElement("div",{className:A()("".concat(oe,"-nav-operations"),pe),style:te,ref:ee},qn,E.createElement(Xn,{prefixCls:oe,locale:k,editable:Ie}))}var hn=E.forwardRef(bi),xo=Object(E.createContext)(null),Nn=.1,Ci=.01,Tn=20,eo=Math.pow(.995,Tn);function ur(){var P=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(P)||/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(P.substr(0,4)))}function cr(P,ee){var oe=Object(E.useState)(),U=Object(de.a)(oe,2),g=U[0],k=U[1],b=Object(E.useState)(0),z=Object(de.a)(b,2),H=z[0],ae=z[1],te=Object(E.useState)(0),pe=Object(de.a)(te,2),Ie=pe[0],it=pe[1],tt=Object(E.useState)(),mt=Object(de.a)(tt,2),Xt=mt[0],sn=mt[1],tn=Object(E.useRef)();function on(Qt){var Vt=Qt.touches[0],vn=Vt.screenX,xn=Vt.screenY;k({x:vn,y:xn}),window.clearInterval(tn.current)}function ln(Qt){if(!g)return;Qt.preventDefault();var Vt=Qt.touches[0],vn=Vt.screenX,xn=Vt.screenY;k({x:vn,y:xn});var _t=vn-g.x,Sn=xn-g.y;ee(_t,Sn);var qn=Date.now();ae(qn),it(qn-H),sn({x:_t,y:Sn})}function an(){if(!g)return;if(k(null),sn(null),Xt){var Qt=Xt.x/Ie,Vt=Xt.y/Ie,vn=Math.abs(Qt),xn=Math.abs(Vt);if(Math.max(vn,xn)<Nn)return;var _t=Qt,Sn=Vt;tn.current=window.setInterval(function(){if(Math.abs(_t)<Ci&&Math.abs(Sn)<Ci){window.clearInterval(tn.current);return}_t*=eo,Sn*=eo,ee(_t*Tn,Sn*Tn)},Tn)}}var rn=Object(E.useRef)(0),En=Object(E.useRef)(!1),fn=Object(E.useRef)();function Zn(Qt){var Vt=Qt.deltaX,vn=Qt.deltaY,xn=0,_t=Math.abs(Vt),Sn=Math.abs(vn);_t===Sn?xn=fn.current==="x"?Vt:vn:_t>Sn?(xn=Vt,fn.current="x"):(xn=vn,fn.current="y");var qn=Date.now();qn-rn.current>100&&(En.current=!1),(ee(-xn,-xn)||En.current)&&(Qt.preventDefault(),En.current=!0),rn.current=qn}var pn=Object(E.useRef)(null);pn.current={onTouchStart:on,onTouchMove:ln,onTouchEnd:an,onWheel:Zn},E.useEffect(function(){function Qt(_t){pn.current.onTouchStart(_t)}function Vt(_t){pn.current.onTouchMove(_t)}function vn(_t){pn.current.onTouchEnd(_t)}function xn(_t){pn.current.onWheel(_t)}return document.addEventListener("touchmove",Vt,{passive:!1}),document.addEventListener("touchend",vn,{passive:!1}),P.current.addEventListener("touchstart",Qt,{passive:!1}),P.current.addEventListener("wheel",xn),function(){document.removeEventListener("touchmove",Vt),document.removeEventListener("touchend",vn)}},[])}function Va(){var P=Object(E.useRef)(new Map);function ee(U){return P.current.has(U)||P.current.set(U,E.createRef()),P.current.get(U)}function oe(U){P.current.delete(U)}return[ee,oe]}function Hr(P,ee){var oe=E.useRef(P),U=E.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&&ee(H,oe.current),oe.current=H,k({})}return[oe.current,b]}var ba=function(ee){var oe=ee.position,U=ee.prefixCls,g=ee.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?E.createElement("div",{className:"".concat(U,"-extra-content")},k):null};function Vr(P,ee){var oe,U=E.useContext(xo),g=U.prefixCls,k=U.tabs,b=P.className,z=P.style,H=P.id,ae=P.animated,te=P.activeKey,pe=P.rtl,Ie=P.extra,it=P.editable,tt=P.locale,mt=P.tabPosition,Xt=P.tabBarGutter,sn=P.children,tn=P.onTabClick,on=P.onTabScroll,ln=Object(E.useRef)(),an=Object(E.useRef)(),rn=Object(E.useRef)(),En=Object(E.useRef)(),fn=Va(),Zn=Object(de.a)(fn,2),pn=Zn[0],Qt=Zn[1],Vt=mt==="top"||mt==="bottom",vn=Hr(0,function(Ln,Cn){Vt&&on&&on({direction:Ln>Cn?"left":"right"})}),xn=Object(de.a)(vn,2),_t=xn[0],Sn=xn[1],qn=Hr(0,function(Ln,Cn){!Vt&&on&&on({direction:Ln>Cn?"top":"bottom"})}),On=Object(de.a)(qn,2),Wn=On[0],Bn=On[1],ci=Object(E.useState)(0),Si=Object(de.a)(ci,2),ti=Si[0],zi=Si[1],co=Object(E.useState)(0),Qi=Object(de.a)(co,2),ki=Qi[0],Vn=Qi[1],Fn=Object(E.useState)(0),ni=Object(de.a)(Fn,2),$n=ni[0],ho=ni[1],Do=Object(E.useState)(0),Lo=Object(de.a)(Do,2),_n=Lo[0],bo=Lo[1],Io=Object(E.useState)(null),Hn=Object(de.a)(Io,2),jn=Hn[0],Mi=Hn[1],xa=Object(E.useState)(null),Jr=Object(de.a)(xa,2),Po=Jr[0],qo=Jr[1],Er=Object(E.useState)(0),Xr=Object(de.a)(Er,2),xr=Xr[0],Qa=Xr[1],Ja=Object(E.useState)(0),Aa=Object(de.a)(Ja,2),Yr=Aa[0],Zr=Aa[1],$o=G(new Map),er=Object(de.a)($o,2),Xa=er[0],Ar=er[1],dr=Me(k,Xa,ti),tr="".concat(g,"-nav-operations-hidden"),nr=0,fo=0;Vt?pe?(nr=0,fo=Math.max(0,ti-jn)):(nr=Math.min(0,jn-ti),fo=0):(nr=Math.min(0,Po-ki),fo=0);function Wo(Ln){return Ln<nr?[nr,!1]:Ln>fo?[fo,!1]:[Ln,!0]}var No=Object(E.useRef)(),hr=Object(E.useState)(),Fo=Object(de.a)(hr,2),wr=Fo[0],qr=Fo[1];function Sr(){qr(Date.now())}function $r(){window.clearTimeout(No.current)}cr(ln,function(Ln,Cn){var Oi=!1;function Xi(ir,wo){ir(function(mr){var Bo=Wo(mr+wo),Ti=Object(de.a)(Bo,2),Or=Ti[0],ta=Ti[1];return Oi=ta,Or})}if(Vt){if(jn>=ti)return Oi;Xi(Sn,Ln)}else{if(Po>=ki)return Oi;Xi(Bn,Cn)}return $r(),Sr(),Oi}),Object(E.useEffect)(function(){return $r(),wr&&(No.current=window.setTimeout(function(){qr(0)},100)),$r},[wr]);function jo(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:te,Cn=dr.get(Ln);if(!Cn)return;if(Vt){var Oi=_t;pe?Cn.right<_t?Oi=Cn.right:Cn.right+Cn.width>_t+jn&&(Oi=Cn.right+Cn.width-jn):Cn.left<-_t?Oi=-Cn.left:Cn.left+Cn.width>-_t+jn&&(Oi=-(Cn.left+Cn.width-jn)),Bn(0),Sn(Wo(Oi)[0])}else{var Xi=Wn;Cn.top<-Wn?Xi=-Cn.top:Cn.top+Cn.height>-Wn+Po&&(Xi=-(Cn.top+Cn.height-Po)),Sn(0),Bn(Wo(Xi)[0])}}var zo=we(dr,{width:jn,height:Po,left:_t,top:Wn},{width:$n,height:_n},{width:xr,height:Yr},Object(X.a)(Object(X.a)({},P),{},{tabs:k})),wa=Object(de.a)(zo,2),Ya=wa[0],Za=wa[1],qa=k.map(function(Ln){var Cn=Ln.key;return E.createElement(w,{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(){jo(Cn),Sr(),pe||(ln.current.scrollLeft=0),ln.current.scrollTop=0}})}),ea=q(function(){var Ln,Cn,Oi,Xi,ir,wo,mr,Bo,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=((wo=rn.current)===null||wo===void 0?void 0:wo.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=(((Bo=an.current)===null||Bo===void 0?void 0:Bo.offsetHeight)||0)-Yi;zi(So),Vn(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)),Ar(function(){var Tr=new Map;return k.forEach(function(Ta){var Ra=Ta.key,Vo=pn(Ra).current;Vo&&Tr.set(Ra,{width:Vo.offsetWidth,height:Vo.offsetHeight,left:Vo.offsetLeft,top:Vo.offsetTop})}),Tr})}),$a=k.slice(0,Ya),Ji=k.slice(Za+1),pi=[].concat(Object(K.a)($a),Object(K.a)(Ji)),Ui=Object(E.useState)(),mi=Object(de.a)(Ui,2),fr=mi[0],es=mi[1],po=dr.get(te),Sa=Object(E.useRef)();function ka(){T.a.cancel(Sa.current)}Object(E.useEffect)(function(){var Ln={};return po&&(Vt?(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,Vt,pe]),Object(E.useEffect)(function(){jo()},[te,po,dr,Vt]),Object(E.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 Vt?pe?(pr=_t>0,kr=_t+jn<ti):(kr=_t<0,pr=-_t+jn<ti):(Oa=Wn<0,Mr=-Wn+Po<ki),E.createElement("div",{ref:ee,role:"tablist",className:A()("".concat(g,"-nav"),b),style:z,onKeyDown:function(){Sr()}},E.createElement(ba,{position:"left",extra:Ie,prefixCls:g}),E.createElement(se.a,{onResize:ea},E.createElement("div",{className:A()(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},E.createElement(se.a,{onResize:ea},E.createElement("div",{ref:an,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(_t,"px, ").concat(Wn,"px)"),transition:wr?"none":void 0}},qa,E.createElement(Xn,{ref:En,prefixCls:g,locale:tt,editable:it,style:{visibility:Ma?"hidden":null}}),E.createElement("div",{className:A()("".concat(g,"-ink-bar"),Object(I.a)({},"".concat(g,"-ink-bar-animated"),ae.inkBar)),style:fr}))))),E.createElement(hn,Object.assign({},P,{ref:rn,prefixCls:g,tabs:pi,className:!Ma&&tr})),E.createElement(ba,{position:"right",extra:Ie,prefixCls:g}))}var Kr=E.forwardRef(Vr);function Ka(P){var ee=P.id,oe=P.activeKey,U=P.animated,g=P.tabPosition,k=P.rtl,b=P.destroyInactiveTabPane,z=E.useContext(xo),H=z.prefixCls,ae=z.tabs,te=U.tabPane,pe=ae.findIndex(function(Ie){return Ie.key===oe});return E.createElement("div",{className:A()("".concat(H,"-content-holder"))},E.createElement("div",{className:A()("".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 E.cloneElement(Ie.node,{key:Ie.key,prefixCls:H,tabKey:Ie.key,id:ee,animated:te,active:Ie.key===oe,destroyInactiveTabPane:b})})))}function Ca(P){var ee=P.prefixCls,oe=P.forceRender,U=P.className,g=P.style,k=P.id,b=P.active,z=P.animated,H=P.destroyInactiveTabPane,ae=P.tabKey,te=P.children,pe=E.useState(oe),Ie=Object(de.a)(pe,2),it=Ie[0],tt=Ie[1];E.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"),E.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:A()("".concat(ee,"-tabpane"),b&&"".concat(ee,"-tabpane-active"),U)},(b||it||oe)&&te)}var Gr=0;function Ea(P){return Object(R.a)(P).map(function(ee){if(E.isValidElement(ee)){var oe=ee.key!==void 0?String(ee.key):void 0;return Object(X.a)(Object(X.a)({key:oe},ee.props),{},{node:ee})}return null}).filter(function(ee){return ee})}function Ga(P,ee){var oe,U=P.id,g=P.prefixCls,k=g===void 0?"rc-tabs":g,b=P.className,z=P.children,H=P.direction,ae=P.activeKey,te=P.defaultActiveKey,pe=P.editable,Ie=P.animated,it=P.tabPosition,tt=it===void 0?"top":it,mt=P.tabBarGutter,Xt=P.tabBarStyle,sn=P.tabBarExtraContent,tn=P.locale,on=P.moreIcon,ln=P.moreTransitionName,an=P.destroyInactiveTabPane,rn=P.renderTabBar,En=P.onChange,fn=P.onTabClick,Zn=P.onTabScroll,pn=Object(re.a)(P,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Qt=Ea(z),Vt=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(E.useState)(!1),_t=Object(de.a)(xn,2),Sn=_t[0],qn=_t[1];Object(E.useEffect)(function(){qn(ur())},[]);var On=Object(F.a)(function(){var _n;return(_n=Qt[0])===null||_n===void 0?void 0:_n.key},{value:ae,defaultValue:te}),Wn=Object(de.a)(On,2),Bn=Wn[0],ci=Wn[1],Si=Object(E.useState)(function(){return Qt.findIndex(function(_n){return _n.key===Bn})}),ti=Object(de.a)(Si,2),zi=ti[0],co=ti[1];Object(E.useEffect)(function(){var _n=Qt.findIndex(function(Io){return Io.key===Bn});if(_n===-1){var bo;_n=Math.max(0,Math.min(zi,Qt.length-1)),ci((bo=Qt[_n])===null||bo===void 0?void 0:bo.key)}co(_n)},[Qt.map(function(_n){return _n.key}).join("_"),Bn,zi]);var Qi=Object(F.a)(null,{value:U}),ki=Object(de.a)(Qi,2),Vn=ki[0],Fn=ki[1],ni=tt;Sn&&!["left","right"].includes(tt)&&(ni="top"),Object(E.useEffect)(function(){U||(Fn("rc-tabs-".concat(Gr)),Gr+=1)},[]);function $n(_n,bo){fn==null||fn(_n,bo),ci(_n),En==null||En(_n)}var ho={id:Vn,activeKey:Bn,animated:vn,tabPosition:ni,rtl:Vt,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,Kr):Do=E.createElement(Kr,Object.assign({},Lo)),E.createElement(xo.Provider,{value:{tabs:Qt,prefixCls:k}},E.createElement("div",Object.assign({ref:ee,id:U,className:A()(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"),Vt),oe),b)},pn),Do,E.createElement(Ka,Object.assign({destroyInactiveTabPane:an},ho,{animated:vn}))))}var Zo=E.forwardRef(Ga);Zo.TabPane=Ca;var Ao=Zo,Qr=xe.b=Ao},kPWJ:function(Oe,xe,h){Oe.exports=h.p+"static/question.cb52bef9.gif"},kPYp:function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJ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8EBN"))})(function(I){"use strict";I.defineMode("markdown",function(de,re){var X=I.getMode(de,"text/html"),E=X.name=="null";function ie(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 A={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 A)A.hasOwnProperty(R)&&re.tokenTypeOverrides[R]&&(A[R]=re.tokenTypeOverrides[R]);var F=/^([*\-_])(?:\s*\1){2,}\s*$/,K=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,L=/^\[(x| )\](?=\s)/i,T=re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,se=/^ {0,3}(?:\={1,}|-{2,})\s*$/,q=/^[^#!\[\]*_\\<>` "'(~:]+/,G=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,D=/^\s*\[[^\]]+?\]:.*$/,j=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,w=" ";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==Ke){var v=E;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,Fe=(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 Ne=!Ue&&!qe&&!v.prevLine.header&&(!dt||!Re)&&!v.prevLine.fencedCodeEnd,We=(v.list===!1||qe||Ue)&&v.indentation<=Fe&&M.match(F),he=null;if(v.indentationDiff>=4&&(Re||v.prevLine.fencedCodeEnd||v.prevLine.header||Ue))return M.skipToEnd(),v.indentedCode=!0,A.code;if(M.eatSpace())return null;if(ce&&v.indentation<=Fe&&(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<=Fe&&M.eat(">"))return v.quote=ce?1:v.quote+1,re.highlightFormatting&&(v.formatting="quote"),M.eatSpace(),Ce(v);if(!We&&!v.setext&&ce&&v.indentation<=Fe&&(he=M.match(K))){var N=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-"+N]),Ce(v)}else{if(ce&&v.indentation<=Fe&&(he=M.match(G,!0)))return v.quote=0,v.fencedEndRE=new RegExp(he[1]+"+ *$"),v.localMode=re.fencedCodeBlockHighlighting&&ie(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||(!Ne||!dt)&&!v.quote&&v.list===!1&&!v.code&&!We&&!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(We)return M.skipToEnd(),v.hr=!0,v.thisLine.hr=!0,A.hr;if(M.peek()==="[")return le(M,v,Q)}return le(M,v,v.inline)}function Ke(M,v){var ce=X.token(M,v.htmlState);if(!E){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(),A.code)}function Ce(M){var v=[];if(M.formatting){v.push(A.formatting),typeof M.formatting=="string"&&(M.formatting=[M.formatting]);for(var ce=0;ce<M.formatting.length;ce++)v.push(A.formatting+"-"+M.formatting[ce]),M.formatting[ce]==="header"&&v.push(A.formatting+"-"+M.formatting[ce]+"-"+M.header),M.formatting[ce]==="quote"&&(!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=M.quote?v.push(A.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(A.linkHref,"url"):(M.strong&&v.push(A.strong),M.em&&v.push(A.em),M.strikethrough&&v.push(A.strikethrough),M.emoji&&v.push(A.emoji),M.linkText&&v.push(A.linkText),M.code&&v.push(A.code),M.image&&v.push(A.image),M.imageAltText&&v.push(A.imageAltText,"link"),M.imageMarker&&v.push(A.imageMarker)),M.header&&v.push(A.header,A.header+"-"+M.header),M.quote&&(v.push(A.quote),!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=M.quote?v.push(A.quote+"-"+M.quote):v.push(A.quote+"-"+re.maxBlockquoteDepth)),M.list!==!1){var Ue=(M.listStack.length-1)%3;Ue?Ue===1?v.push(A.list2):v.push(A.list3):v.push(A.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 Pe(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 A.linkHref}if(Re==="`"){var Fe=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 Ne=Ce(v);return v.code=0,Ne}else return v.formatting=Fe,Ce(v)}else if(v.code)return Ce(v);if(Re==="\\"&&(M.next(),re.highlightFormatting)){var We=Ce(v),he=A.formatting+"-escape";return We?We+" "+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 We=Ce(v);return v.imageAltText=!1,v.image=!1,v.inline=v.f=Ae,We}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 We=Ce(v);return v.linkText=!1,v.inline=v.f=M.match(/\(.*?\)| ?\[.*?\]/,!1)?Ae:be,We}if(Re==="<"&&M.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){v.f=v.inline=_,re.highlightFormatting&&(v.formatting="link");var We=Ce(v);return We?We+=" ":We="",We+A.linkInline}if(Re==="<"&&M.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){v.f=v.inline=_,re.highlightFormatting&&(v.formatting="link");var We=Ce(v);return We?We+=" ":We="",We+A.linkEmail}if(re.xml&&Re==="<"&&M.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var N=M.string.indexOf(">",M.pos);if(N!=-1){var nt=M.string.substring(M.start,N);/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,Ke)}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()||" ",At=!/\s/.test(ft)&&(!j.test(ft)||/\s/.test(Ut)||j.test(Ut)),He=!/\s/.test(Ut)&&(!j.test(Ut)||/\s/.test(ft)||j.test(ft)),rt=null,pt=null;if(Tt%2&&(!v.em&&At&&(Re==="*"||!He||j.test(Ut))?rt=!0:v.em==Re&&He&&(Re==="*"||!At||j.test(ft))&&(rt=!1)),Tt>1&&(!v.strong&&At&&(Re==="*"||!He||j.test(Ut))?pt=!0:v.strong==Re&&He&&(Re==="*"||!At||j.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 Ne=Ce(v);return rt===!1&&(v.em=!1),pt===!1&&(v.strong=!1),Ne}}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 Ne=Ce(v);return v.strikethrough=!1,Ne}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 _(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+A.linkInline}return M.match(/^[^>]+/,!0),A.linkInline}function Ae(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=V,re.highlightFormatting&&(v.formatting="link");var ce=Ce(v);return v.linkText=!1,ce}return M.match(/^([^\]\\]|\\.)+/,!0),A.linkText}function V(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,A.linkHref+" url")}var De={startState:function(){return{f:ke,prevLine:{stream:null},thisLine:{stream:null},block:ke,htmlState:null,indentation:0,inline:be,text:Pe,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!=Ke)){var ce=M.match(/^\s*/,!0)[0].replace(/\t/g,w).length;if(v.indentation=ce,v.indentationDiff=null,ce>0)return null}}return v.f(M,v)},innerMode:function(M){return M.block==Ke?{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==Ke&&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,xe,h){"use strict";var I=h("E7E6"),de=h.n(I);h.d(xe,"C",function(){return de.a});var re=h("/GNS"),X=h.n(re);h.d(xe,"B",function(){return X.a});var E=h("FOrL"),ie=h.n(E);h.d(xe,"v",function(){return ie.a});var A=h("HpTS"),R=h.n(A);h.d(xe,"D",function(){return R.a});var F=h("tWlo"),K=h.n(F);h.d(xe,"b",function(){return K.a});var L=h("7ZXX"),T=h.n(L);h.d(xe,"o",function(){return T.a});var se=h("GABl"),q=h.n(se);h.d(xe,"g",function(){return q.a});var G=h("onxn"),D=h.n(G);h.d(xe,"q",function(){return D.a});var j=h("nKGa"),w=h.n(j);h.d(xe,"p",function(){return w.a});var le=h("4qgm"),Me=h.n(le);h.d(xe,"H",function(){return Me.a});var Je=h("JeFH"),we=h.n(Je);h.d(xe,"c",function(){return we.a});var ke=h("ji0R"),Ke=h.n(ke);h.d(xe,"l",function(){return Ke.a});var Ee=h("W6BS"),Ce=h.n(Ee);h.d(xe,"I",function(){return Ce.a});var Pe=h("kPYp"),be=h.n(Pe);h.d(xe,"J",function(){return be.a});var _=h("nukY"),Ae=h.n(_),me=h("4u4S"),S=h.n(me),Q=h("yslc"),ue=h.n(Q),V=h("l2Kq"),De=h.n(V);h.d(xe,"u",function(){return De.a});var M=h("RMFE"),v=h.n(M);h.d(xe,"r",function(){return v.a});var ce=h("TGq3"),Ue=h.n(ce);h.d(xe,"s",function(){return Ue.a});var Re=h("SMhR"),qe=h.n(Re);h.d(xe,"G",function(){return qe.a});var dt=h("8/bI"),Fe=h.n(dt);h.d(xe,"m",function(){return Fe.a});var ze=h("JWDV"),Ne=h.n(ze);h.d(xe,"e",function(){return Ne.a});var We=h("Xsq0"),he=h.n(We);h.d(xe,"t",function(){return he.a});var N=h("Ohmc"),nt=h.n(N);h.d(xe,"d",function(){return nt.a});var Tt=h("csWT"),Ut=h.n(Tt);h.d(xe,"f",function(){return Ut.a});var ft=h("7v3h"),At=h.n(ft);h.d(xe,"n",function(){return At.a});var He=h("cRFk"),rt=h.n(He);h.d(xe,"A",function(){return rt.a});var pt=h("kPWJ"),gt=h.n(pt);h.d(xe,"z",function(){return gt.a});var $e=h("qgvg"),Ge=h.n($e);h.d(xe,"w",function(){return Ge.a});var ot=h("FPkq"),Wt=h.n(ot);h.d(xe,"y",function(){return Wt.a});var bt=h("A/g1"),ut=h.n(bt);h.d(xe,"i",function(){return ut.a});var st=h("Nmxd"),St=h.n(st);h.d(xe,"j",function(){return St.a});var ct=h("5D2P"),xt=h.n(ct);h.d(xe,"k",function(){return xt.a});var Te=h("djh8"),Dt=h.n(Te);h.d(xe,"x",function(){return Dt.a});var ht=h("Jq4h"),Le=h.n(ht);h.d(xe,"a",function(){return Le.a});var Xe=h("NhNJ"),ne=h.n(Xe);h.d(xe,"E",function(){return ne.a});var Z=h("C6hP"),$=h.n(Z);h.d(xe,"F",function(){return $.a});var C=h("uM6B"),x=h.n(C);h.d(xe,"h",function(){return x.a})},mepR:function(Oe,xe,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,xe,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,xe,h){Oe.exports=h.p+"static/export_exercise-template.f7655c19.png"},nVVt:function(Oe,xe){Oe.exports={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3}},nuEh:function(Oe,xe,h){"use strict";var I=h("T2oS"),de=h("W9HT"),re=h("q1tI"),X=h.n(re),E=h("F8wB"),ie=h.n(E),A=function(F){var K=F.loading;return K?X.a.createElement("div",{className:ie.a.loading},X.a.createElement(de.a,null)):X.a.createElement(X.a.Fragment,null)};xe.a=A},nukY:function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgW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yzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(Oe,xe,h){(function(I){I(h("VrN/"))})(function(I){"use strict";var de=I.Pos;function re(j,w){return j.line-w.line||j.ch-w.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",E=X+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ie=new RegExp("<(/?)(["+X+"]["+E+"]*)","g");function A(j,w,le,Me){this.line=w,this.ch=le,this.cm=j,this.text=j.getLine(w),this.min=Me?Math.max(Me.from,j.firstLine()):j.firstLine(),this.max=Me?Math.min(Me.to-1,j.lastLine()):j.lastLine()}function R(j,w){var le=j.cm.getTokenTypeAt(de(j.line,w));return le&&/\btag\b/.test(le)}function F(j){return j.line>=j.max?void 0:(j.ch=0,j.text=j.cm.getLine(++j.line),!0)}function K(j){return j.line<=j.min?void 0:(j.text=j.cm.getLine(--j.line),j.ch=j.text.length,!0)}function L(j){for(;;){var w=j.text.indexOf(">",j.ch);if(w==-1){if(F(j))continue;return}if(!R(j,w+1)){j.ch=w+1;continue}var le=j.text.lastIndexOf("/",w),Me=le>-1&&!/\S/.test(j.text.slice(le+1,w));return j.ch=w+1,Me?"selfClose":"regular"}}function T(j){for(;;){var w=j.ch?j.text.lastIndexOf("<",j.ch-1):-1;if(w==-1){if(K(j))continue;return}if(!R(j,w+1)){j.ch=w;continue}ie.lastIndex=w,j.ch=w;var le=ie.exec(j.text);if(le&&le.index==w)return le}}function se(j){for(;;){ie.lastIndex=j.ch;var w=ie.exec(j.text);if(!w){if(F(j))continue;return}if(!R(j,w.index+1)){j.ch=w.index+1;continue}return j.ch=w.index+w[0].length,w}}function q(j){for(;;){var w=j.ch?j.text.lastIndexOf(">",j.ch-1):-1;if(w==-1){if(K(j))continue;return}if(!R(j,w+1)){j.ch=w;continue}var le=j.text.lastIndexOf("/",w),Me=le>-1&&!/\S/.test(j.text.slice(le+1,w));return j.ch=w+1,Me?"selfClose":"regular"}}function G(j,w){for(var le=[];;){var Me=se(j),Je,we=j.line,ke=j.ch-(Me?Me[0].length:0);if(!Me||!(Je=L(j)))return;if(Je=="selfClose")continue;if(Me[1]){for(var Ke=le.length-1;Ke>=0;--Ke)if(le[Ke]==Me[2]){le.length=Ke;break}if(Ke<0&&(!w||w==Me[2]))return{tag:Me[2],from:de(we,ke),to:de(j.line,j.ch)}}else le.push(Me[2])}}function D(j,w){for(var le=[];;){var Me=q(j);if(!Me)return;if(Me=="selfClose"){T(j);continue}var Je=j.line,we=j.ch,ke=T(j);if(!ke)return;if(ke[1])le.push(ke[2]);else{for(var Ke=le.length-1;Ke>=0;--Ke)if(le[Ke]==ke[2]){le.length=Ke;break}if(Ke<0&&(!w||w==ke[2]))return{tag:ke[2],from:de(j.line,j.ch),to:de(Je,we)}}}}I.registerHelper("fold","xml",function(j,w){for(var le=new A(j,w.line,0);;){var Me=se(le);if(!Me||le.line!=w.line)return;var Je=L(le);if(!Je)return;if(!Me[1]&&Je!="selfClose"){var we=de(le.line,le.ch),ke=G(le,Me[2]);return ke&&re(ke.from,we)>0?{from:we,to:ke.from}:null}}}),I.findMatchingTag=function(j,w,le){var Me=new A(j,w.line,w.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,w)>0)return;var Ke={from:de(Me.line,Me.ch),to:we,tag:ke[2]};return Je=="selfClose"?{open:Ke,close:null,at:"open"}:ke[1]?{open:D(Me,ke[2]),close:Ke,at:"close"}:(Me=new A(j,we.line,we.ch,le),{open:Ke,close:G(Me,ke[2]),at:"open"})},I.findEnclosingTag=function(j,w,le,Me){for(var Je=new A(j,w.line,w.ch,le);;){var we=D(Je,Me);if(!we)break;var ke=new A(j,w.line,w.ch,le),Ke=G(ke,we.tag);if(Ke)return{open:we,close:Ke}}},I.scanForClosingTag=function(j,w,le,Me){var Je=new A(j,w.line,w.ch,Me?{from:0,to:Me}:null);return G(Je,le)}})},p5ED:function(Oe,xe,h){"use strict";var I=h("+L6B"),de=h("2/Rp"),re=h("5Dmo"),X=h("3S7+"),E=h("k1fw"),ie=h("tJVT"),A=h("q1tI"),R=h.n(A),F=h("vHTk"),K=h.n(F),L=h("yEEn"),T=h("ZW9T"),se=h("1vsH");xe.a=function(q){var G=q.name,D=q.data,j=q.theme,w=q.type,le=q.filename,Me=q.monacoEditor,Je=q.className,we=q.style,ke=q.close,Ke=q.onClose,Ee=q.hasMask,Ce=Object(A.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Pe=Object(ie.a)(Ce,2),be=Pe[0],_=Pe[1],Ae=Object(A.useState)(""),me=Object(ie.a)(Ae,2),S=me[0],Q=me[1],ue=Object(A.useRef)();le&&(Me.filename=le),Object(A.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 V=function(){if(D.startsWith("http")||D.startsWith("/")){De();return}Object(se.x)(le||"educoder",D,le)},De=function(){Object(se.v)(le||G,D)};return console.log("data:",D,"fileanme:",le," name:",G),R.a.createElement("div",{style:Object(E.a)({},we||{}),className:"".concat(Ee&&K.a.bgBlack," ").concat(w?K.a.wrp:"hide")},ke&&R.a.createElement("div",{className:K.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:Ke},R.a.createElement("i",{className:"icon-guanbi1"})))),R.a.createElement("div",{className:"".concat(K.a[Je]," ").concat(Je," ").concat(K.a.monaco," ").concat(w==="txt"?"show":"hide")},w==="txt"&&R.a.createElement(T.b,Me)),w==="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}),w==="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})),w==="html"&&R.a.createElement("iframe",{src:D+"&disposition=inline"}),w==="pdf"&&R.a.createElement("embed",{className:K.a.embed,src:D}),w==="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)})),w==="other"&&R.a.createElement("div",null,R.a.createElement(de.a,{type:"primary",size:"large",onClick:V},R.a.createElement(L.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(w==="download"||w==="office")&&R.a.createElement(de.a,{type:"primary",size:"large",onClick:V},R.a.createElement(L.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Oe,xe,h){},qgvg:function(Oe,xe){Oe.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZna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ExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},"rAM+":function(Oe,xe,h){"use strict";h.d(xe,"a",function(){return de});var I=h("Qw5x");function de(re,X){var E;if(typeof Symbol=="undefined"||re[Symbol.iterator]==null){if(Array.isArray(re)||(E=Object(I.a)(re))||X&&re&&typeof re.length=="number"){E&&(re=E);var ie=0,A=function(){};return{s:A,n:function(){return ie>=re.length?{done:!0}:{done:!1,value:re[ie++]}},e:function(T){throw T},f:A}}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,F=!1,K;return{s:function(){E=re[Symbol.iterator]()},n:function(){var T=E.next();return R=T.done,T},e:function(T){F=!0,K=T},f:function(){try{!R&&E.return!=null&&E.return()}finally{if(F)throw K}}}}},rUJ1:function(Oe,xe){const h=/[&<>"']/,I=/[&<>"']/g,de=/[<>"']|&(?!#?\w+;)/,re=/[<>"']|&(?!#?\w+;)/g,X={"&":"&","<":"<",">":">",'"':""","'":"'"},E=Ee=>X[Ee];function ie(Ee,Ce){if(Ce){if(h.test(Ee))return Ee.replace(I,E)}else if(de.test(Ee))return Ee.replace(re,E);return Ee}const A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function R(Ee){return Ee.replace(A,(Ce,Pe)=>(Pe=Pe.toLowerCase(),Pe==="colon"?":":Pe.charAt(0)==="#"?Pe.charAt(1)==="x"?String.fromCharCode(parseInt(Pe.substring(2),16)):String.fromCharCode(+Pe.substring(1)):""))}const F=/(^|[^\[])\^/g;function K(Ee,Ce){Ee=Ee.source||Ee,Ce=Ce||"";const Pe={replace:(be,_)=>(_=_.source||_,_=_.replace(F,"$1"),Ee=Ee.replace(be,_),Pe),getRegex:()=>new RegExp(Ee,Ce)};return Pe}const L=/[^\w:]/g,T=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function se(Ee,Ce,Pe){if(Ee){let be;try{be=decodeURIComponent(R(Pe)).replace(L,"").toLowerCase()}catch(_){return null}if(be.indexOf("javascript:")===0||be.indexOf("vbscript:")===0||be.indexOf("data:")===0)return null}Ce&&!T.test(Pe)&&(Pe=w(Ce,Pe));try{Pe=encodeURI(Pe).replace(/%25/g,"%")}catch(be){return null}return Pe}const q={},G=/^[^:]+:\/*[^/]*$/,D=/^([^:]+:)[\s\S]*$/,j=/^([^:]+:\/*[^/]*)[\s\S]*$/;function w(Ee,Ce){q[" "+Ee]||(G.test(Ee)?q[" "+Ee]=Ee+"/":q[" "+Ee]=we(Ee,"/",!0)),Ee=q[" "+Ee];const Pe=Ee.indexOf(":")===-1;return Ce.substring(0,2)==="//"?Pe?Ce:Ee.replace(D,"$1")+Ce:Ce.charAt(0)==="/"?Pe?Ce:Ee.replace(j,"$1")+Ce:Ee+Ce}const le={exec:function(){}};function Me(Ee){let Ce=1,Pe,be;for(;Ce<arguments.length;Ce++){Pe=arguments[Ce];for(be in Pe)Object.prototype.hasOwnProperty.call(Pe,be)&&(Ee[be]=Pe[be])}return Ee}function Je(Ee,Ce){const Pe=Ee.replace(/\|/g,(Ae,me,S)=>{let Q=!1,ue=me;for(;--ue>=0&&S[ue]==="\\";)Q=!Q;return Q?"|":" |"}),be=Pe.split(/ \|/);let _=0;if(be.length>Ce)be.splice(Ce);else for(;be.length<Ce;)be.push("");for(;_<be.length;_++)be[_]=be[_].trim().replace(/\\\|/g,"|");return be}function we(Ee,Ce,Pe){const be=Ee.length;if(be===0)return"";let _=0;for(;_<be;){const Ae=Ee.charAt(be-_-1);if(Ae===Ce&&!Pe)_++;else if(Ae!==Ce&&Pe)_++;else break}return Ee.substr(0,be-_)}function ke(Ee,Ce){if(Ee.indexOf(Ce[1])===-1)return-1;const Pe=Ee.length;let be=0,_=0;for(;_<Pe;_++)if(Ee[_]==="\\")_++;else if(Ee[_]===Ce[0])be++;else if(Ee[_]===Ce[1]&&(be--,be<0))return _;return-1}function Ke(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:ie,unescape:R,edit:K,cleanUrl:se,resolveUrl:w,noopTest:le,merge:Me,splitCells:Je,rtrim:we,findClosingBracket:ke,checkSanitizeDeprecation:Ke}},rcnY:function(Oe,xe,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 E=de.getRsBlockTable(re,X);if(E==null)throw new Error("bad rs block @ typeNumber:"+re+"/errorCorrectLevel:"+X);for(var ie=E.length/3,A=new Array,R=0;R<ie;R++)for(var F=E[R*3+0],K=E[R*3+1],L=E[R*3+2],T=0;T<F;T++)A.push(new de(K,L));return A},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,xe,h){"use strict";var I=h("VTBJ"),de=h("1OyB"),re=h("vuIU"),X=h("Ji7U"),E=h("LK+K"),ie=h("q1tI"),A=h.n(ie),R=h("m+aA"),F=h("Zm9Q"),K=h("Kwbf"),L=h("c+Xe"),T=h("bdgK"),se="rc-observer-key",q=function(G){Object(X.a)(j,G);var D=Object(E.a)(j);function j(){var w;return Object(de.a)(this,j),w=D.apply(this,arguments),w.resizeObserver=null,w.childNode=null,w.currentElement=null,w.state={width:0,height:0,offsetHeight:0,offsetWidth:0},w.onResize=function(le){var Me=w.props.onResize,Je=le[0].target,we=Je.getBoundingClientRect(),ke=we.width,Ke=we.height,Ee=Je.offsetWidth,Ce=Je.offsetHeight,Pe=Math.floor(ke),be=Math.floor(Ke);if(w.state.width!==Pe||w.state.height!==be||w.state.offsetWidth!==Ee||w.state.offsetHeight!==Ce){var _={width:Pe,height:be,offsetWidth:Ee,offsetHeight:Ce};w.setState(_),Me&&Promise.resolve().then(function(){Me(Object(I.a)(Object(I.a)({},_),{},{offsetWidth:Ee,offsetHeight:Ce}))})}},w.setChildNode=function(le){w.childNode=le},w}return Object(re.a)(j,[{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(F.a)(le);if(Me.length>1)Object(K.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Me.length===0)return Object(K.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Je=Me[0];if(ie.isValidElement(Je)&&Object(L.c)(Je)){var we=Je.ref;Me[0]=ie.cloneElement(Je,{ref:Object(L.a)(we,this.setChildNode)})}return Me.length===1?Me[0]:Me.map(function(ke,Ke){return!ie.isValidElement(ke)||"key"in ke&&ke.key!==null?ke:ie.cloneElement(ke,{key:"".concat(se,"-").concat(Ke)})})}}]),j}(ie.Component);q.displayName="ResizeObserver",xe.a=q},tWlo:function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlI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oCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},uIXO:function(Oe,xe,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"}},uM6B:function(Oe,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAS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h0Zm8TCaTTKfTgbjkJpNJ7u3tLbNarfzTiLEQTRNrjQBAAAAA3ElEQVQICASaEAJKpdKBn5KSEhCXXavV2vV6vd3V1dUBpXU2adUk56U+IknvTF56vV5mMBhkILDg4GCZ0WiUVVVV8TFms1mQVxP6cIimCgQaIwJqtZpVlIuLi0Oj0ThycnJAXg6tVuvQ6XSO2kjrHOJyVl7OBIbnIDE8gsjwCDJrjECINgkEBAJNBwGQFFoLosIjyAqPzoQl2UPnXtVKPpLycj4QFrI2OJATazowiZYKBAQCjQEBEFNt7ZDyWGeQlEx2zrH1kk5tJNYYOi7aIBAQCFy7CGDm8Hy9+z+xhIMEHZbTJwAAAABJRU5ErkJggg=="},vHTk:function(Oe,xe,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,xe){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,xe){Oe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZg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