|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[222,7,9,10],{"+NIl":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/codemirror/mode/stex/stex.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){!function(t){"use strict";t.defineMode("stex",(function(t,e){function i(t,e){t.cmdState.push(e)}function n(t){return t.cmdState.length>0?t.cmdState[t.cmdState.length-1]:null}function r(t,e,i){return function(){this.name=t,this.bracketNo=0,this.style=e,this.styles=i,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var o={};function a(t,e){t.f=e}function s(t,e){var r;if(t.match(/^\\[a-zA-Z@]+/)){var s=t.current().slice(1);return i(e,r=new(r=o.hasOwnProperty(s)?o[s]:o.DEFAULT)),a(e,c),r.style}if(t.match(/^\\[$&%#{}_]/))return"tag";if(t.match(/^\\[,;!\/\\]/))return"tag";if(t.match("\\["))return a(e,(function(t,e){return l(t,e,"\\]")})),"keyword";if(t.match("\\("))return a(e,(function(t,e){return l(t,e,"\\)")})),"keyword";if(t.match("$$"))return a(e,(function(t,e){return l(t,e,"$$")})),"keyword";if(t.match("$"))return a(e,(function(t,e){return l(t,e,"$")})),"keyword";var u=t.next();return"%"==u?(t.skipToEnd(),"comment"):"}"==u||"]"==u?(r=n(e))?(r.closeBracket(u),a(e,c),"bracket"):"error":"{"==u||"["==u?(i(e,r=new(r=o.DEFAULT)),"bracket"):/\d/.test(u)?(t.eatWhile(/[\w.%]/),"atom"):(t.eatWhile(/[\w\-_]/),"begin"==(r=function(t){for(var e=t.cmdState,i=e.length-1;i>=0;i--){var n=e[i];if("DEFAULT"!=n.name)return n}return{styleIdentifier:function(){return null}}}(e)).name&&(r.argument=t.current()),r.styleIdentifier())}function l(t,e,i){if(t.eatSpace())return null;if(i&&t.match(i))return a(e,s),"keyword";if(t.match(/^\\[a-zA-Z@]+/))return"tag";if(t.match(/^[a-zA-Z]+/))return"variable-2";if(t.match(/^\\[$&%#{}_]/))return"tag";if(t.match(/^\\[,;!\/]/))return"tag";if(t.match(/^[\^_&]/))return"tag";if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var n=t.next();return"{"==n||"}"==n||"["==n||"]"==n||"("==n||")"==n?"bracket":"%"==n?(t.skipToEnd(),"comment"):"error"}function c(t,e){var i=t.peek();return"{"==i||"["==i?(n(e).openBracket(i),t.eat(i),a(e,s),"bracket"):/[ \t\r]/.test(i)?(t.eat(i),null):(a(e,s),function(t){var e=t.cmdState.pop();e&&e.closeBracket()}(e),s(t,e))}return o.importmodule=r("importmodule","tag",["string","builtin"]),o.documentclass=r("documentclass","tag",["","atom"]),o.usepackage=r("usepackage","tag",["atom"]),o.begin=r("begin","tag",["atom"]),o.end=r("end","tag",["atom"]),o.label=r("label","tag",["atom"]),o.ref=r("ref","tag",["atom"]),o.eqref=r("eqref","tag",["atom"]),o.cite=r("cite","tag",["atom"]),o.bibitem=r("bibitem","tag",["atom"]),o.Bibitem=r("Bibitem","tag",["atom"]),o.RBibitem=r("RBibitem","tag",["atom"]),o.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:e.inMathMode?function(t,e){return l(t,e)}:s}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=s,t.cmdState.length=0},lineComment:"%"}})),t.defineMIME("text/x-stex","stex"),t.defineMIME("text/x-latex","stex")}(i(/*! ../../lib/codemirror */"VrN/"))},"/GNS":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/search1.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/search1.c4136dd4.png"},"19Vz":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/codemirror/addon/display/placeholder.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){!function(t){function e(t){t.state.placeholder&&(t.state.placeholder.parentNode.removeChild(t.state.placeholder),t.state.placeholder=null)}function i(t){e(t);var i=t.state.placeholder=document.createElement("pre");i.style.cssText="height: 0; overflow: visible",i.style.direction=t.getOption("direction"),i.className="CodeMirror-placeholder CodeMirror-line-like";var n=t.getOption("placeholder");"string"==typeof n&&(n=document.createTextNode(n)),i.appendChild(n),t.display.lineSpace.insertBefore(i,t.display.lineSpace.firstChild)}function n(t){o(t)&&i(t)}function r(t){var n=t.getWrapperElement(),r=o(t);n.className=n.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?i(t):e(t)}function o(t){return 1===t.lineCount()&&""===t.getLine(0)}t.defineOption("placeholder","",(function(o,a,s){var l=s&&s!=t.Init;if(a&&!l)o.on("blur",n),o.on("change",r),o.on("swapDoc",r),t.on(o.getInputField(),"compositionupdate",o.state.placeholderCompose=function(){!function(t){setTimeout((function(){var n=!1,r=t.getInputField();"TEXTAREA"==r.nodeName?n=!r.value:1==t.lineCount()&&(n=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),n?i(t):e(t)}),20)}(o)}),r(o);else if(!a&&l){o.off("blur",n),o.off("change",r),o.off("swapDoc",r),t.off(o.getInputField(),"compositionupdate",o.state.placeholderCompose),e(o);var c=o.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!o.hasFocus()&&n(o)}))}(i(/*! ../../lib/codemirror */"VrN/"))},"1eCo":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/codemirror/mode/xml/xml.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){!function(t){"use strict";var e={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},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(n,r){var o,a,s=n.indentUnit,l={},c=r.htmlMode?e:i;for(var u in c)l[u]=c[u];for(var u in r)l[u]=r[u];function h(t,e){function i(i){return e.tokenize=i,i(t,e)}var n=t.next();return"<"==n?t.eat("!")?t.eat("[")?t.match("CDATA[")?i(d("atom","]]>")):null:t.match("--")?i(d("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),i(function t(e){return function(i,n){for(var r;null!=(r=i.next());){if("<"==r)return n.tokenize=t(e+1),n.tokenize(i,n);if(">"==r){if(1==e){n.tokenize=h;break}return n.tokenize=t(e-1),n.tokenize(i,n)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=d("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=p,"tag bracket"):"&"==n?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function p(t,e){var i,n,r=t.next();if(">"==r||"/"==r&&t.eat(">"))return e.tokenize=h,o=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return o="equals",null;if("<"==r){e.tokenize=h,e.state=v,e.tagName=e.tagStart=null;var a=e.tokenize(t,e);return a?a+" tag error":"tag error"}return/[\'\"]/.test(r)?(e.tokenize=(i=r,(n=function(t,e){for(;!t.eol();)if(t.next()==i){e.tokenize=p;break}return"string"}).isInAttribute=!0,n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(t,e){return function(i,n){for(;!i.eol();){if(i.match(e)){n.tokenize=h;break}i.next()}return t}}function f(t,e,i){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=i,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function m(t){t.context&&(t.context=t.context.prev)}function g(t,e){for(var i;;){if(!t.context)return;if(i=t.context.tagName,!l.contextGrabbers.hasOwnProperty(i)||!l.contextGrabbers[i].hasOwnProperty(e))return;m(t)}}function v(t,e,i){return"openTag"==t?(i.tagStart=e.column(),y):"closeTag"==t?b:v}function y(t,e,i){return"word"==t?(i.tagName=e.current(),a="tag",k):l.allowMissingTagName&&"endTag"==t?(a="tag bracket",k(t,0,i)):(a="error",y)}function b(t,e,i){if("word"==t){var n=e.current();return i.context&&i.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(i.context.tagName)&&m(i),i.context&&i.context.tagName==n||!1===l.matchClosing?(a="tag",C):(a="tag error",x)}return l.allowMissingTagName&&"endTag"==t?(a="tag bracket",C(t,0,i)):(a="error",x)}function C(t,e,i){return"endTag"!=t?(a="error",C):(m(i),v)}function x(t,e,i){return a="error",C(t,0,i)}function k(t,e,i){if("word"==t)return a="attribute",w;if("endTag"==t||"selfcloseTag"==t){var n=i.tagName,r=i.tagStart;return i.tagName=i.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(n)?g(i,n):(g(i,n),i.context=new f(i,n,r==i.indented)),v}return a="error",k}function w(t,e,i){return"equals"==t?S:(l.allowMissing||(a="error"),k(t,0,i))}function S(t,e,i){return"string"==t?A:"word"==t&&l.allowUnquoted?(a="string",k):(a="error",k(t,0,i))}function A(t,e,i){return"string"==t?A:k(t,0,i)}return h.isInText=!0,{startState:function(t){var e={tokenize:h,state:v,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;o=null;var i=e.tokenize(t,e);return(i||o)&&"comment"!=i&&(a=null,e.state=e.state(o||i,t,e),a&&(i="error"==a?i+" error":a)),i},indent:function(e,i,n){var r=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(r&&r.noIndent)return t.Pass;if(e.tokenize!=p&&e.tokenize!=h)return n?n.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(i))return 0;var o=i&&/^<(\/)?([\w_:\.-]*)/.exec(i);if(o&&o[1])for(;r;){if(r.tagName==o[2]){r=r.prev;break}if(!l.implicitlyClosed.hasOwnProperty(r.tagName))break;r=r.prev}else if(o)for(;r;){var a=l.contextGrabbers[r.tagName];if(!a||!a.hasOwnProperty(o[2]))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+s:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==S&&(t.state=k)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],i=t.context;i;i=i.prev)i.tagName&&e.push(i.tagName);return e.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}(i(/*! ../../lib/codemirror */"VrN/"))},"4qgm":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/tx-live.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk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Y2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/groups2.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfle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NfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"5D2P":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/icons/done3.png ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3nPPrbp169aHUEAzxsxl5gcB3AdgAREtkH8AXSH87wBOMfMp+QfwFREd0Vr/k9c8ZQUwxixi5mWe5y1l5qUAyimxqkQ0XqvVxonoE631Nyn1p8VTO7B///75Fy5c2MzMWwB0ZDHaQmeSiPbMmTNnb3d39+k0mKkcMMZsBiC/W9IYSSH7K4C9Wuu9rjpODoyMjNxQq9VGADzuCpxT7gPP83p7e3v/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yo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"7Cbv":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/uuid/dist/esm-browser/v4.js + 4 modules ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(t,e,i){"use strict";var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),r=new Uint8Array(16);function o(){if(!n)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)}var a=/^(?:[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;for(var s=function(t){return"string"==typeof t&&a.test(t)},l=[],c=0;c<256;++c)l.push((c+256).toString(16).substr(1));var u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]).toLowerCase();if(!s(i))throw TypeError("Stringified UUID is invalid");return i};e.a=function(t,e,i){var n=(t=t||{}).random||(t.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){i=i||0;for(var r=0;r<16;++r)e[i+r]=n[r];return e}return u(n)}},"7ZXX":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./src/assets/images/classrooms/err.png ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/err.6e7c5817.png"},"7ahc":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./src/components/markdown-editor/code-block/index.tsx ***!
|
|
|
\*************************************************************/
|
|
|
/*! exports provided: default, MyCodeMirror */
|
|
|
/*! exports used: MyCodeMirror, default */function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var n=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2 */"k1fw"),r=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/extends */"0Owb"),o=(i(/*! antd/es/button/style */"+L6B"),i(/*! antd/es/button */"2/Rp")),a=(i(/*! antd/es/form/style */"y8nQ"),i(/*! antd/es/form */"Vl3Y")),s=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),l=(i(/*! antd/es/select/style */"OaEy"),i(/*! antd/es/select */"2fM7")),c=i(/*! react */"q1tI"),u=i.n(c),h=i(/*! codemirror */"VrN/"),p=i.n(h),d=(i(/*! codemirror/lib/codemirror.css */"p77/"),i(/*! codemirror/theme/blackboard.css */"c5Ni"),l.a.Option),f={labelCol:{span:4},wrapperCol:{span:20}},m={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"]};function g(t){var e=t.value,i=t.onChange,r=t.mode,o=t.options,a=void 0===o?{}:o,l=Object(c.useRef)(),h=Object(c.useState)(),d=Object(s.a)(h,2),f=d[0],m=d[1];return Object(c.useEffect)((function(){if(f){function t(t){var e=t.getValue();i&&i(e)}return f.on("change",t),function(){f.off("change",t)}}}),[f,i]),Object(c.useEffect)((function(){f&&f.setOption("mode",r)}),[f,r]),Object(c.useEffect)((function(){f&&(e===f.getValue()&&""!==e||setTimeout((function(){f.setValue(e||" ")}),300))}),[f,e]),Object(c.useEffect)((function(){if(l.current&&!f){var t=p.a.fromTextArea(l.current,Object(n.a)({mode:r,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},a));m(t)}}),[l.current,f]),u.a.createElement("div",{className:"my-codemirror-container"},u.a.createElement("textarea",{ref:l}))}e.b=function(t){var e=t.callback,i=t.onCancel,n=Object(c.useState)("python"),h=Object(s.a)(n,2),p=h[0],v=h[1];return u.a.createElement(a.a,Object(r.a)({},f,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(t){e(t)}}),u.a.createElement(a.a.Item,{label:"代码语言",name:"language"},u.a.createElement(l.a,{onChange:function(t){v(m[t][1])}},Object.keys(m).map((function(t){return u.a.createElement(d,{key:t,value:t},m[t][0])})))),u.a.createElement(a.a.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}]},u.a.createElement(g,{mode:p})),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(o.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"确定"),u.a.createElement(o.a,{type:"ghost",onClick:i},"取消")))}},"7ixt":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/es/placements.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: placements, default */
|
|
|
/*! exports used: placements */function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}}},"7v3h":
|
|
|
/*!**************************************!*\
|
|
|
!*** ./src/assets/images/empty2.png ***!
|
|
|
\**************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/empty2.dd73f390.png"},"8/bI":
|
|
|
/*!*************************************!*\
|
|
|
!*** ./src/assets/images/empty.png ***!
|
|
|
\*************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/empty.8918e228.png"},"8EBN":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/codemirror/mode/meta.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){!function(t){"use strict";t.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 e=0;e<t.modeInfo.length;e++){var i=t.modeInfo[e];i.mimes&&(i.mime=i.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var i=0;i<t.modeInfo.length;i++){var n=t.modeInfo[i];if(n.mime==e)return n;if(n.mimes)for(var r=0;r<n.mimes.length;r++)if(n.mimes[r]==e)return n}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){e=e.toLowerCase();for(var i=0;i<t.modeInfo.length;i++){var n=t.modeInfo[i];if(n.ext)for(var r=0;r<n.ext.length;r++)if(n.ext[r]==e)return n}},t.findModeByFileName=function(e){for(var i=0;i<t.modeInfo.length;i++){var n=t.modeInfo[i];if(n.file&&n.file.test(e))return n}var r=e.lastIndexOf("."),o=r>-1&&e.substring(r+1,e.length);if(o)return t.findModeByExtension(o)},t.findModeByName=function(e){e=e.toLowerCase();for(var i=0;i<t.modeInfo.length;i++){var n=t.modeInfo[i];if(n.name.toLowerCase()==e)return n;if(n.alias)for(var r=0;r<n.alias.length;r++)if(n.alias[r].toLowerCase()==e)return n}}}(i(/*! ../lib/codemirror */"VrN/"))},"8hTe":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./src/components/RenderHtml/index.less?modules ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports={button:"button___1wy9m"}},"9Bee":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./src/components/RenderHtml/index.tsx + 3 modules ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/RenderHtml/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/PreviewAll/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/fetch.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/space/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/space/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/hls.js/dist/hls.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/katex/dist/katex.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/marked/lib/marked.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/marked/src/helpers.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(t,e,i){"use strict";i("DYRE");var n=i("zeV3"),r=(i("+L6B"),i("2/Rp")),o=i("k1fw"),a=i("9og8"),s=i("tJVT"),l=i("WmNS"),c=i.n(l),u=i("q1tI"),h=i.n(u),p=(i("vg9a"),i("DlQD")),d=i.n(p),f=i("rUJ1");var m=[],g=["<ul>"],v=new d.a.Renderer,y=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){m.length=0,g=["<ul>"]}var C={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function x(){return function t(e,i,n,r){if(i>=e.length||e[i].level<=n)return i;var o=e[i];r.push("<li><a href='#"+o.anchor+"'>"+o.text+"</a>");var a=[];return i=t(e,++i,o.level,a),a.length>0&&(r.push("<ul>"),a.forEach((function(t){r.push(t)})),r.push("</ul>")),r.push("</li>"),i=t(e,i,n,r)}(m,0,0,g),g.push("</ul>"),g.join("")}var k={heading:function(t){var e=y.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[1].length,text:e[2]}},fences:function(t){var e=this.rules.block.fences.exec(t);if(e){var i=e[0],n=function(t,e){var i=t.match(/^(\s+)(?:```)/);if(null===i)return e;var n=i[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:Object(s.a)(e,1)[0].length>=n.length?t.slice(n.length):t})).join("\n")}(i,e[3]||""),r=e[2]?e[2].trim():e[2];if(["latex","katex","math"].indexOf(r)>=0){var o=A(),a=n;n=o,E[o]={type:"block",expression:a}}return{type:"code",raw:i,lang:r,text:n}}}},w=/(?:\${2})([^\n`]+?)(?:\${2})/gi,S=0,A=function(){return"__special_katext_id_".concat(S++,"__")},E={};function O(){S=0,E={}}function M(t){return t=t.replace(w,(function(t,e){var i=A();return E[i]={type:"inline",expression:e},i}))}var I=v.listitem;v.listitem=function(t){return I(M(t))};var T=v.paragraph;v.paragraph=function(t){return T(M(t))};var N=v.tablecell;v.tablecell=function(t,e){return N(M(t),e)},v.code=function(t,e,i){var n=(e||"").match(/\S*/)[0];return n?["latex","katex","math"].indexOf(n)>=0?"<p class='editormd-tex'>".concat(t,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(e,'">').concat(i?t:Object(f.escape)(t,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(i?t:Object(f.escape)(t,!0))+"</code></pre>"},v.heading=function(t,e,i){var n=this.options.headerPrefix+i.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return m.push({anchor:n,level:e,text:t}),"<h"+e+' id="'+n+'">'+t+"</h"+e+">"},d.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),d.a.use({tokenizer:k,renderer:v});var R=d.a,B=(i("SJMd"),i("ulZh")),D=i.n(B),L=i("m3rI"),j=i("Oy/b"),P=i("p5ED"),z=i("ErOA"),F=function(t,e){return(F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function W(t,e){function i(){this.constructor=t}F(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function V(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))}function H(t,e){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function G(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)n[r]=o[a];return n}var U=function(){function t(){}return t.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},t.setAttributes=function(t,e){for(var i=0,n=e;i<n.length;i++){var r=n[i],o=r[0],a=r[1];t.setAttribute(o,a)}},t.createRect=function(e,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","rect");return r.setAttribute("width",e.toString()),r.setAttribute("height",i.toString()),n&&t.setAttributes(r,n),r},t.createLine=function(e,i,n,r,o){var a=document.createElementNS("http://www.w3.org/2000/svg","line");return a.setAttribute("x1",e.toString()),a.setAttribute("y1",i.toString()),a.setAttribute("x2",n.toString()),a.setAttribute("y2",r.toString()),o&&t.setAttributes(a,o),a},t.createPolygon=function(e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","polygon");return n.setAttribute("points",e),i&&t.setAttributes(n,i),n},t.createCircle=function(e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","circle");return n.setAttribute("cx",(e/2).toString()),n.setAttribute("cy",(e/2).toString()),n.setAttribute("r",e.toString()),i&&t.setAttributes(n,i),n},t.createEllipse=function(e,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return r.setAttribute("cx",(e/2).toString()),r.setAttribute("cy",(i/2).toString()),r.setAttribute("rx",(e/2).toString()),r.setAttribute("ry",(i/2).toString()),n&&t.setAttributes(r,n),r},t.createGroup=function(e){var i=document.createElementNS("http://www.w3.org/2000/svg","g");return e&&t.setAttributes(i,e),i},t.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},t.createMarker=function(e,i,n,r,o,a,s){var l=document.createElementNS("http://www.w3.org/2000/svg","marker");return t.setAttributes(l,[["id",e],["orient",i],["markerWidth",n.toString()],["markerHeight",r.toString()],["refX",o.toString()],["refY",a.toString()]]),l.appendChild(s),l},t.createText=function(e){var i=document.createElementNS("http://www.w3.org/2000/svg","text");return i.setAttribute("x","0"),i.setAttribute("y","0"),e&&t.setAttributes(i,e),i},t.createTSpan=function(e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","tspan");return n.textContent=e,i&&t.setAttributes(n,i),n},t.createImage=function(e){var i=document.createElementNS("http://www.w3.org/2000/svg","image");return e&&t.setAttributes(i,e),i},t.createPoint=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return i.x=t,i.y=e,i},t.createPath=function(e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",e),i&&t.setAttributes(n,i),n},t}(),Q=function(){function t(){}return t.addKey=function(e){t.key=e},Object.defineProperty(t,"isLicensed",{get:function(){return!!t.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(t.key)},enumerable:!1,configurable:!0}),t}(),J=function(){function t(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return t.prototype.rasterize=function(t,e,i){var n=this;return new Promise((function(r){var o=void 0!==i?i:document.createElement("canvas");null===t&&(n.markersOnly=!0,n.naturalSize=!1);var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("width",e.width.baseVal.valueAsString),a.setAttribute("height",e.height.baseVal.valueAsString),a.setAttribute("viewBox","0 0 "+e.viewBox.baseVal.width.toString()+" "+e.viewBox.baseVal.height.toString()),a.innerHTML=e.innerHTML,!0===n.naturalSize?(a.width.baseVal.value=t.naturalWidth,a.height.baseVal.value=t.naturalHeight):void 0!==n.width&&void 0!==n.height&&(a.width.baseVal.value=n.width,a.height.baseVal.value=n.height),o.width=a.width.baseVal.value,o.height=a.height.baseVal.value;var s=a.outerHTML,l=o.getContext("2d");!0!==n.markersOnly&&l.drawImage(t,0,0,o.width,o.height);var c=window.URL,u=new Image(o.width,o.height);u.setAttribute("crossOrigin","anonymous");var h=new Blob([s],{type:"image/svg+xml"}),p=c.createObjectURL(h);u.onload=function(){l.drawImage(u,0,0),c.revokeObjectURL(p);var t=o.toDataURL(n.imageType,n.imageQuality);r(t)},u.src=p}))},t}(),K=function(){},Z=function(){function t(t){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+t+"_"}return Object.defineProperty(t.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(t.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(t.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),t.prototype.addClass=function(t){return void 0===this.styleSheet&&this.addStyleSheet(),t.name=""+this.classNamePrefix+t.localName,this.classes.push(t),this.styleSheet.sheet.insertRule("."+t.name+" {"+t.style+"}",this.styleSheet.sheet.cssRules.length),t},t.prototype.addRule=function(t){void 0===this.styleSheet&&this.addStyleSheet(),this.rules.push(t),this.styleSheet.sheet.insertRule(t.selector+" {"+t.style+"}",this.styleSheet.sheet.cssRules.length)},t.prototype.addStyleSheet=function(){var t;this.styleSheet=document.createElement("style"),(null!==(t=this.styleSheetRoot)&&void 0!==t?t:document.head).appendChild(this.styleSheet),this.addRule(new Y("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Y("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames","\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n ")),this.addRule(new Y("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames","\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n ")),this.addClass(new q("fade_in","\n animation-duration: 0.3s;\n animation-name: "+this.classNamePrefix+"_fade_in_animation_frames;\n ")),this.addClass(new q("fade_out","\n animation-duration: 0.3s;\n animation-name: "+this.classNamePrefix+"_fade_out_animation_frames;\n "))},t.prototype.removeStyleSheet=function(){var t;this.styleSheet&&((null!==(t=this.styleSheetRoot)&&void 0!==t?t:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},t}(),Y=function(t,e){this.selector=t,this.style=e},q=function(t,e){this.localName=t,this.style=e},X=function(){function t(t,e,i,n,r){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=t,this.displayMode=e,this.markerItems=i,this.uiStyleSettings=n,this.styles=r,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return t.prototype.show=function(t){var e=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=t,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var i=document.createElement("div");i.className=this.toolbarBlockStyleClass.name,i.style.whiteSpace="nowrap",this.uiContainer.appendChild(i),this.addActionButton(i,'<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(i,'<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(i,'<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(i,'<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(i,'<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(i,'<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(i,'<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(i,'<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(t){var i=document.createElement("div");i.className=""+e.toolbarButtonStyleClass.name,i.setAttribute("data-type-name",t.typeName),i.innerHTML=t.icon,i.addEventListener("click",(function(){e.markerToolbarButtonClicked(i,t)})),e.buttons.push(i),e.markerButtons.push(i)})),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 n=document.createElement("div");n.className=this.toolbarBlockStyleClass.name,n.style.whiteSpace="nowrap",n.style.display=!1!==this.uiStyleSettings.resultButtonBlockVisible?"":"none",this.uiContainer.appendChild(n),this.addActionButton(n,'<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(n,'<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()},t.prototype.addButtonClickListener=function(t){this.buttonClickListeners.push(t)},t.prototype.removeButtonClickListener=function(t){this.buttonClickListeners.indexOf(t)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(t),1)},t.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},t.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var t=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var e=0;e<this.markerButtons.length;e++)e<t||e===t&&this.markerButtons.length-1===t?this.markerButtonBlock.appendChild(this.markerButtons[e]):(e===t&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[e]))}},t.prototype.overflowButtonClicked=function(){"none"!==this.markerButtonOverflowBlock.style.display?(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")},t.prototype.resetButtonStyles=function(){var t=this;this.buttons.forEach((function(e){e.className=e.className.replace(t.uiStyleSettings.toolbarButtonStyleColorsClassName?t.uiStyleSettings.toolbarButtonStyleColorsClassName:t.toolbarButtonStyleColorsClass.name,"").trim(),e.className=e.className.replace(t.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?t.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:t.toolbarActiveButtonStyleColorsClass.name,"").trim(),e.className+=" "+(t.uiStyleSettings.toolbarButtonStyleColorsClassName?t.uiStyleSettings.toolbarButtonStyleColorsClassName:t.toolbarButtonStyleColorsClass.name)}))},t.prototype.addActionButton=function(t,e,i){var n=this,r=document.createElement("div");switch(r.className=""+this.toolbarButtonStyleClass.name,r.innerHTML=e,r.setAttribute("data-action",i),r.addEventListener("click",(function(){n.actionToolbarButtonClicked(r,i)})),i){case"select":r.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":r.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":r.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":r.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":r.style.fill=this.uiStyleSettings.closeButtonColor}t.appendChild(r),this.buttons.push(r)},t.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new q("toolbar","\n width: 100%;\n flex-shrink: 0;\n display: flex;\n flex-direction: row;\n justify-content: space-between; \n height: "+this.uiStyleSettings.toolbarHeight+"px;\n box-sizing: content-box;\n "+("inline"===this.displayMode?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n "+("inline"===this.displayMode?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n overflow: hidden;\n ")),this.toolbarStyleColorsClass=this.styles.addClass(new q("toolbar_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n box-shadow: 0px 3px rgba(33, 33, 33, 0.1);\n ")),this.toolbarBlockStyleClass=this.styles.addClass(new q("toolbar-block","\n display: inline-block;\n box-sizing: content-box;\n ")),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new q("toolbar-overflow-block","\n position: absolute;\n top: "+this.uiStyleSettings.toolbarHeight+"px;\n max-width: "+2*this.uiStyleSettings.toolbarHeight+"px;\n z-index: 10;\n box-sizing: content-box;\n ")),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new q("toolbar-overflow-block_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n "));var t=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new q("toolbar_button","\n display: inline-block;\n width: "+(this.uiStyleSettings.toolbarHeight-2*t)+"px;\n height: "+(this.uiStyleSettings.toolbarHeight-2*t)+"px;\n padding: "+t+"px;\n box-sizing: content-box;\n ")),this.toolbarButtonStyleColorsClass=this.styles.addClass(new q("toolbar_button_colors","\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new q("toolbar_active_button","\n fill: "+this.uiStyleSettings.toolbarColor+";\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n ")),this.styles.addRule(new Y("."+this.toolbarButtonStyleClass.name+" svg","\n height: "+this.uiStyleSettings.toolbarHeight/2+"px;\n ")),this.styles.addRule(new Y("."+this.toolbarButtonStyleColorsClass.name+":hover","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n "))},t.prototype.markerToolbarButtonClicked=function(t,e){this.setActiveButton(t),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach((function(t){return t("marker",e)})),this.markerButtonOverflowBlock.style.display="none"},t.prototype.actionToolbarButtonClicked=function(t,e){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach((function(t){return t("action",e)})),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},t.prototype.setActiveButton=function(t){this.resetButtonStyles(),t.className=t.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),t.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},t.prototype.setActiveMarkerButton=function(t){var e=this.markerButtons.find((function(e){return e.getAttribute("data-type-name")===t}));e&&this.setActiveButton(e)},t.prototype.setCurrentMarker=function(t){var e=this;this.currentMarker=t,this.buttons.filter((function(t){return/delete|notes/.test(t.getAttribute("data-action"))})).forEach((function(t){void 0===e.currentMarker?(t.style.fillOpacity="0.4",t.style.pointerEvents="none"):(t.style.fillOpacity="1",t.style.pointerEvents="all")}))},t}(),_=function(){function t(t,e,i,n){this.panels=[],this.panelButtons=[],this.markerjsContainer=t,this.displayMode=e,this.uiStyleSettings=i,this.styles=n,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return t.prototype.addStyles=function(){var t;this.toolboxStyleClass=this.styles.addClass(new q("toolbox","\n width: 100%;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n font-family: sans-serif;\n "+("popup"===this.displayMode?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+"\n box-sizing: content-box;\n "+("popup"===this.displayMode?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+"\n "+("inline"===this.displayMode?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n "+("inline"===this.displayMode?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n overflow: hidden;\n ")),this.toolboxStyleColorsClass=this.styles.addClass(new q("toolbox_colors","\n color: "+this.uiStyleSettings.toolboxColor+";\n "));var e=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new q("toolbox-button-row","\n display: flex;\n cursor: default;\n box-sizing: content-box;\n ")),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new q("toolbox-button-row_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n ")),this.toolboxPanelRowStyleClass=this.styles.addClass(new q("toolbox-panel-row","\n display: flex;\n "+("inline"===this.displayMode?"position: absolute;":"")+"\n "+("inline"===this.displayMode?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+"\n cursor: default;\n height: "+1.5*this.uiStyleSettings.toolbarHeight+"px;\n "+("inline"===this.displayMode?"width: 100%;":"")+"\n box-sizing: content-box;\n ")),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new q("toolbox-panel-row_colors","\n background-color: "+(null!==(t=this.uiStyleSettings.toolboxBackgroundColor)&&void 0!==t?t:this.uiStyleSettings.toolbarBackgroundHoverColor)+";\n ")),this.toolboxButtonStyleClass=this.styles.addClass(new q("toolbox_button","\n display: inline-block;\n width: "+(this.uiStyleSettings.toolbarHeight-2*e)+"px;\n height: "+(this.uiStyleSettings.toolbarHeight-2*e)+"px;\n padding: "+e+"px;\n box-sizing: content-box;\n ")),this.toolboxButtonStyleColorsClass=this.styles.addClass(new q("toolbox-button_colors","\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new q("toolbox-active-button_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+";\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.styles.addRule(new Y("."+this.toolboxButtonStyleColorsClass.name+":hover","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n ")),this.styles.addRule(new Y("."+this.toolboxButtonStyleClass.name+" svg","\n height: "+this.uiStyleSettings.toolbarHeight/2+"px;\n "))},t.prototype.show=function(t){var e;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=t,this.uiContainer.className=this.toolboxStyleClass.name+" "+(null!==(e=this.uiStyleSettings.toolboxStyleColorsClassName)&&void 0!==e?e:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},t.prototype.setPanelButtons=function(t){var e,i,n=this;this.panels=t,void 0!==this.uiContainer&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+(null!==(e=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)&&void 0!==e?e:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+(null!==(i=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)&&void 0!==i?i:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach((function(t){var e;t.uiStyleSettings=n.uiStyleSettings;var i=document.createElement("div");i.className=n.toolboxButtonStyleClass.name+" "+(null!==(e=n.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==e?e:n.toolboxButtonStyleColorsClass.name),i.innerHTML=t.icon,i.title=t.title,i.addEventListener("click",(function(){n.panelButtonClick(t)})),n.panelButtons.push(i),n.buttonRow.appendChild(i)})),"inline"===this.displayMode?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},t.prototype.panelButtonClick=function(t){var e=this,i=-1;if(t!==this.activePanel){i=this.panels.indexOf(t),this.panelRow.innerHTML="";var n=t.getUi();n.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(n),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=t}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout((function(){"inline"===e.displayMode?e.panelRow.style.display="none":e.panelRow.style.visibility="hidden"}),200);this.panelButtons.forEach((function(t,n){var r,o;t.className=e.toolboxButtonStyleClass.name+" "+(n===i?""+(null!==(r=e.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)&&void 0!==r?r:e.toolboxActiveButtonStyleColorsClass.name):""+(null!==(o=e.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==o?o:e.toolboxButtonStyleColorsClass.name))}))},t}(),$=function(t,e){this.title=t,this.icon=e},tt=function(t){function e(e,i,n,r){var o=t.call(this,e,r||'<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 o.colors=[],o.addTransparent=!1,o.colorBoxes=[],o.colors=i,o.currentColor=n,o.setCurrentColor=o.setCurrentColor.bind(o),o.getColorBox=o.getColorBox.bind(o),o}return W(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.overflow="hidden",e.style.whiteSpace="nowrap",this.colors.forEach((function(i){var n=t.getColorBox(i);e.appendChild(n),t.colorBoxes.push(n)})),e},e.prototype.getColorBox=function(t){var e=this,i=this.uiStyleSettings.toolbarHeight/4,n=this.uiStyleSettings.toolbarHeight-i,r=document.createElement("div");r.style.display="inline-block",r.style.boxSizing="content-box",r.style.width=n-2+"px",r.style.height=n-2+"px",r.style.padding="1px",r.style.marginRight="2px",r.style.marginBottom="2px",r.style.borderWidth="2px",r.style.borderStyle="solid",r.style.borderRadius=(n+2)/2+"px",r.style.borderColor=t===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",r.addEventListener("click",(function(){e.setCurrentColor(t,r)}));var o=document.createElement("div");return o.style.display="inline-block",o.style.width=n-2+"px",o.style.height=n-2+"px",o.style.backgroundColor=t,o.style.borderRadius=n/2+"px","transparent"===t&&(o.style.fill=this.uiStyleSettings.toolboxAccentColor,o.innerHTML='<svg viewBox="0 0 24 24">\n <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" />\n </svg>'),r.appendChild(o),r},e.prototype.setCurrentColor=function(t,e){var i=this;this.currentColor=t,this.colorBoxes.forEach((function(t){t.style.borderColor=t===e?i.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onColorChanged&&this.onColorChanged(t)},e}($),et=function(){function t(t,e,i){this._state="new",this._isSelected=!1,this._container=t,this._overlayContainer=e,this.globalSettings=i,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(t.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.ownsTarget=function(t){return!1},Object.defineProperty(t.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),t.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},t.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},t.prototype.pointerDown=function(t,e){},t.prototype.dblClick=function(t,e){},t.prototype.manipulate=function(t){},t.prototype.pointerUp=function(t){this.stateChanged()},t.prototype.dispose=function(){},t.prototype.addMarkerVisualToContainer=function(t){this.container.childNodes.length>0?this.container.insertBefore(t,this.container.childNodes[0]):this.container.appendChild(t)},t.prototype.getState=function(){return{typeName:t.typeName,state:this.state,notes:this.notes}},t.prototype.restoreState=function(t){this._state=t.state,this.notes=t.notes},t.prototype.scale=function(t,e){},t.prototype.colorChanged=function(t){this.onColorChanged&&this.onColorChanged(t),this.stateChanged()},t.prototype.fillColorChanged=function(t){this.onFillColorChanged&&this.onFillColorChanged(t),this.stateChanged()},t.prototype.stateChanged=function(){if(this.onStateChanged&&"creating"!==this.state&&"new"!==this.state){var t=this.getState();void 0!==this.manipulationStartState&&(this.manipulationStartState.state="select"),t.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(t)&&this.onStateChanged(this)}},t.typeName="MarkerBase",t}(),it=function(){function t(){this.findGripByVisual=this.findGripByVisual.bind(this)}return t.prototype.findGripByVisual=function(t){return this.topLeft.ownsTarget(t)?this.topLeft:this.topCenter.ownsTarget(t)?this.topCenter:this.topRight.ownsTarget(t)?this.topRight:this.centerLeft.ownsTarget(t)?this.centerLeft:this.centerRight.ownsTarget(t)?this.centerRight:this.bottomLeft.ownsTarget(t)?this.bottomLeft:this.bottomCenter.ownsTarget(t)?this.bottomCenter:this.bottomRight.ownsTarget(t)?this.bottomRight:void 0},t}(),nt=function(){function t(){this.GRIP_SIZE=10,this.visual=U.createGroup(),this.visual.appendChild(U.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(U.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return t.prototype.ownsTarget=function(t){return t===this.visual||t===this.visual.childNodes[0]||t===this.visual.childNodes[1]},t}(),rt=function(){function t(){}return t.toITransformMatrix=function(t){return{a:t.a,b:t.b,c:t.c,d:t.d,e:t.e,f:t.f}},t.toSVGMatrix=function(t,e){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t.e=e.e,t.f=e.f,t},t}(),ot=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.left=0,r.top=0,r.width=0,r.height=0,r.defaultSize={x:50,y:20},r.offsetX=0,r.offsetY=0,r.rotationAngle=0,r.CB_DISTANCE=10,r._suppressMarkerCreateEvent=!1,r.container.transform.baseVal.appendItem(U.createTransform()),r.setupControlBox(),r}return W(e,t),Object.defineProperty(e.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visual",{get:function(){return this._visual},set:function(t){this._visual=t;var e=U.createTransform();this._visual.transform.baseVal.appendItem(e)},enumerable:!1,configurable:!0}),e.prototype.ownsTarget=function(e){return!!t.prototype.ownsTarget.call(this,e)||!!(void 0!==this.controlGrips.findGripByVisual(e)||void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(e))},e.prototype.pointerDown=function(e,i){t.prototype.pointerDown.call(this,e,i),"new"===this.state&&(this.left=e.x,this.top=e.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var n=this.unrotatePoint(e);if(this.manipulationStartX=n.x,this.manipulationStartY=n.y,this.offsetX=n.x-this.left,this.offsetY=n.y-this.top,"new"!==this.state)if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(i),void 0!==this.activeGrip)this._state="resize";else if(void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(i)){this.activeGrip=this.rotatorGrip;var r=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=r.x-this.width/2,this.top=r.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var o=this.container.transform.baseVal.getItem(0);o.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(o,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},e.prototype.pointerUp=function(e){var i=this.state;t.prototype.pointerUp.call(this,e),"creating"===this.state&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(e),this._state="select","creating"===i&&this.onMarkerCreated&&!1===this._suppressMarkerCreateEvent&&this.onMarkerCreated(this)},e.prototype.moveVisual=function(t){this.visual.style.transform="translate("+t.x+"px, "+t.y+"px)"},e.prototype.manipulate=function(t){var e=this.unrotatePoint(t);"creating"===this.state?this.resize(t):"move"===this.state?(this.left=this.manipulationStartLeft+(e.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(e.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):"resize"===this.state?this.resize(e):"rotate"===this.state&&this.rotate(t)},e.prototype.resize=function(t){var e=this.manipulationStartLeft,i=this.manipulationStartWidth,n=this.manipulationStartTop,r=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:e=this.manipulationStartLeft+t.x-this.manipulationStartX,i=this.manipulationStartWidth+this.manipulationStartLeft-e;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:i=this.manipulationStartWidth+t.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:n=this.manipulationStartTop+t.y-this.manipulationStartY,r=this.manipulationStartHeight+this.manipulationStartTop-n;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:r=this.manipulationStartHeight+t.y-this.manipulationStartY}i>=0?(this.left=e,this.width=i):(this.left=e+i,this.width=-i),r>=0?(this.top=n,this.height=r):(this.top=n+r,this.height=-r),this.setSize()},e.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},e.prototype.rotate=function(t){if(Math.abs(t.x-this.centerX)>.1){var e=Math.sign(t.x-this.centerX);this.rotationAngle=180*Math.atan((t.y-this.centerY)/(t.x-this.centerX))/Math.PI+90*e,this.applyRotation()}},e.prototype.applyRotation=function(){var t=this.container.transform.baseVal.getItem(0);t.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(t,0)},e.prototype.rotatePoint=function(t){if(0===this.rotationAngle)return t;var e=this.container.getCTM(),i=U.createPoint(t.x,t.y);return{x:(i=i.matrixTransform(e)).x,y:i.y}},e.prototype.unrotatePoint=function(t){if(0===this.rotationAngle)return t;var e=this.container.getCTM();e=e.inverse();var i=U.createPoint(t.x,t.y);return{x:(i=i.matrixTransform(e)).x,y:i.y}},e.prototype.select=function(){t.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},e.prototype.deselect=function(){t.prototype.deselect.call(this),this.controlBox.style.display="none"},e.prototype.setupControlBox=function(){this.controlBox=U.createGroup();var t=U.createTransform();t.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(t),this.container.appendChild(this.controlBox),this.controlRect=U.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),!0!==this.globalSettings.disableRotation&&(this.rotatorGripLine=U.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 it,this.addControlGrips(),this.controlBox.style.display="none"},e.prototype.adjustControlBox=function(){var t=this.controlBox.transform.baseVal.getItem(0);t.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(t,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),void 0!==this.rotatorGripLine&&(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()},e.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(),!0!==this.globalSettings.disableRotation&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},e.prototype.createGrip=function(){var t=new nt;return t.visual.transform.baseVal.appendItem(U.createTransform()),this.controlBox.appendChild(t.visual),t},e.prototype.positionGrips=function(){var t=this.controlGrips.topLeft.GRIP_SIZE,e=-t/2,i=e,n=(this.width+this.CB_DISTANCE)/2-t/2,r=(this.height+this.CB_DISTANCE)/2-t/2,o=this.height+this.CB_DISTANCE-t/2,a=this.width+this.CB_DISTANCE-t/2;this.positionGrip(this.controlGrips.topLeft.visual,e,i),this.positionGrip(this.controlGrips.topCenter.visual,n,i),this.positionGrip(this.controlGrips.topRight.visual,a,i),this.positionGrip(this.controlGrips.centerLeft.visual,e,r),this.positionGrip(this.controlGrips.centerRight.visual,a,r),this.positionGrip(this.controlGrips.bottomLeft.visual,e,o),this.positionGrip(this.controlGrips.bottomCenter.visual,n,o),this.positionGrip(this.controlGrips.bottomRight.visual,a,o),void 0!==this.rotatorGrip&&this.positionGrip(this.rotatorGrip.visual,n,i-3*this.CB_DISTANCE)},e.prototype.positionGrip=function(t,e,i){var n=t.transform.baseVal.getItem(0);n.setTranslate(e,i),t.transform.baseVal.replaceItem(n,0)},e.prototype.hideControlBox=function(){this.controlBox.style.display="none"},e.prototype.showControlBox=function(){this.controlBox.style.display=""},e.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:rt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:rt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},t.prototype.getState.call(this))},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var i=e;this.left=i.left,this.top=i.top,this.width=i.width,this.height=i.height,this.rotationAngle=i.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(rt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,i.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(rt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,i.containerTransformMatrix))},e.prototype.scale=function(e,i){t.prototype.scale.call(this,e,i);var n=this.rotatePoint({x:this.left,y:this.top}),r=this.unrotatePoint({x:n.x*e,y:n.y*i});this.left=r.x,this.top=r.y,this.width=this.width*e,this.height=this.height*i,this.adjustControlBox()},e}(et),at=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.opacity=1,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.createVisual=r.createVisual.bind(r),r}return W(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual)},e.prototype.createVisual=function(){this.visual=U.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)},e.prototype.pointerDown=function(e,i){t.prototype.pointerDown.call(this,e,i),"new"===this.state&&(this.createVisual(),this.moveVisual(e),this._state="creating")},e.prototype.manipulate=function(e){t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.setSize()},e.prototype.setSize=function(){t.prototype.setSize.call(this),U.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},e.prototype.pointerUp=function(e){t.prototype.pointerUp.call(this,e),this.setSize()},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.visual&&U.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(t),this.stateChanged()},e.prototype.setFillColor=function(t){this.fillColor=t,this.visual&&U.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.visual&&U.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.visual&&U.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},e.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},t.prototype.getState.call(this))},e.prototype.restoreState=function(e){var i=e;this.fillColor=i.fillColor,this.strokeColor=i.strokeColor,this.strokeWidth=i.strokeWidth,this.strokeDasharray=i.strokeDasharray,this.opacity=i.opacity,this.createVisual(),t.prototype.restoreState.call(this,e),this.setSize()},e.prototype.scale=function(e,i){t.prototype.scale.call(this,e,i),this.setSize()},e.title="Rectangle marker",e}(ot),st=function(t){function e(e,i,n,r){var o=t.call(this,e,r||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return o.widths=[],o.widthBoxes=[],o.widths=i,o.currentWidth=n,o.setCurrentWidth=o.setCurrentWidth.bind(o),o}return W(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2",this.widths.forEach((function(i){var n=document.createElement("div");n.style.display="flex",n.style.flexGrow="2",n.style.alignItems="center",n.style.justifyContent="space-between",n.style.padding="5px",n.style.borderWidth="2px",n.style.borderStyle="solid",n.style.borderColor=i===t.currentWidth?t.uiStyleSettings.toolboxAccentColor:"transparent",n.addEventListener("click",(function(){t.setCurrentWidth(i,n)})),e.appendChild(n);var r=document.createElement("div");r.innerText=i.toString(),r.style.marginRight="5px",n.appendChild(r);var o=document.createElement("div");o.style.minHeight="20px",o.style.flexGrow="2",o.style.display="flex",o.style.alignItems="center";var a=document.createElement("hr");a.style.minWidth="20px",a.style.border="0px",a.style.borderTop=i+"px solid "+t.uiStyleSettings.toolboxColor,a.style.flexGrow="2",o.appendChild(a),n.appendChild(o),t.widthBoxes.push(n)})),e},e.prototype.setCurrentWidth=function(t,e){var i=this;this.currentWidth=t,this.widthBoxes.forEach((function(t){t.style.borderColor=t===e?i.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},e}($),lt=function(t){function e(e,i,n,r){var o=t.call(this,e,r||'<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 o.styles=[],o.styleBoxes=[],o.styles=i,o.currentStyle=n,o.setCurrentStyle=o.setCurrentStyle.bind(o),o}return W(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2",this.styles.forEach((function(i){var n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="space-between",n.style.padding="5px",n.style.borderWidth="2px",n.style.borderStyle="solid",n.style.overflow="hidden",n.style.maxWidth=100/t.styles.length-5+"%",n.style.borderColor=i===t.currentStyle?t.uiStyleSettings.toolboxAccentColor:"transparent",n.addEventListener("click",(function(){t.setCurrentStyle(i,n)})),e.appendChild(n);var r=document.createElement("div");r.style.minHeight="20px",r.style.flexGrow="2",r.style.overflow="hidden";var o='<svg width="100" height="20">\n <line x1="0" y1="10" x2="100" y2="10" stroke="'+t.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(""!==i?'stroke-dasharray="'+i+'"':"")+" />\n </svg>";r.innerHTML=o,n.appendChild(r),t.styleBoxes.push(n)})),e},e.prototype.setCurrentStyle=function(t,e){var i=this;this.currentStyle=t,this.styleBoxes.forEach((function(t){t.style.borderColor=t===e?i.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},e}($),ct=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.strokeColor=n.defaultColor,r.strokeWidth=n.defaultStrokeWidth,r.strokeDasharray=n.defaultStrokeDasharray,r.strokePanel=new tt("Line color",n.defaultColorSet,n.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new st("Line width",n.defaultStrokeWidths,n.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new lt("Line style",n.defaultStrokeDasharrays,n.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return W(e,t),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=t.prototype.getState.call(this);return i.typeName=e.typeName,i},e.typeName="FrameMarker",e.title="Frame marker",e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',e}(at),ut=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},ht=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.x1=0,r.y1=0,r.x2=0,r.y2=0,r.defaultLength=50,r.manipulationStartX=0,r.manipulationStartY=0,r.manipulationStartX1=0,r.manipulationStartY1=0,r.manipulationStartX2=0,r.manipulationStartY2=0,r.setupControlBox(),r}return W(e,t),e.prototype.ownsTarget=function(e){return!!t.prototype.ownsTarget.call(this,e)||!(!this.grip1.ownsTarget(e)&&!this.grip2.ownsTarget(e))},e.prototype.pointerDown=function(e,i){t.prototype.pointerDown.call(this,e,i),this.manipulationStartX=e.x,this.manipulationStartY=e.y,"new"===this.state&&(this.x1=e.x,this.y1=e.y,this.x2=e.x,this.y2=e.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,"new"!==this.state&&(this.select(),this.grip1.ownsTarget(i)?this.activeGrip=this.grip1:this.grip2.ownsTarget(i)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},e.prototype.pointerUp=function(e){var i=this.state;t.prototype.pointerUp.call(this,e),"creating"===this.state&&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(e),this._state="select","creating"===i&&this.onMarkerCreated&&this.onMarkerCreated(this)},e.prototype.adjustVisual=function(){},e.prototype.manipulate=function(t){"creating"===this.state?this.resize(t):"move"===this.state?(this.x1=this.manipulationStartX1+t.x-this.manipulationStartX,this.y1=this.manipulationStartY1+t.y-this.manipulationStartY,this.x2=this.manipulationStartX2+t.x-this.manipulationStartX,this.y2=this.manipulationStartY2+t.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):"resize"===this.state&&this.resize(t)},e.prototype.resize=function(t){switch(this.activeGrip){case this.grip1:this.x1=t.x,this.y1=t.y;break;case this.grip2:case void 0:this.x2=t.x,this.y2=t.y}this.adjustVisual(),this.adjustControlBox()},e.prototype.select=function(){t.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},e.prototype.deselect=function(){t.prototype.deselect.call(this),this.controlBox.style.display="none"},e.prototype.setupControlBox=function(){this.controlBox=U.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},e.prototype.adjustControlBox=function(){this.positionGrips()},e.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},e.prototype.createGrip=function(){var t=new nt;return t.visual.transform.baseVal.appendItem(U.createTransform()),this.controlBox.appendChild(t.visual),t},e.prototype.positionGrips=function(){var t=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-t/2,this.y1-t/2),this.positionGrip(this.grip2.visual,this.x2-t/2,this.y2-t/2)},e.prototype.positionGrip=function(t,e,i){var n=t.transform.baseVal.getItem(0);n.setTranslate(e,i),t.transform.baseVal.replaceItem(n,0)},e.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},t.prototype.getState.call(this))},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var i=e;this.x1=i.x1,this.y1=i.y1,this.x2=i.x2,this.y2=i.y2},e.prototype.scale=function(e,i){t.prototype.scale.call(this,e,i),this.x1=this.x1*e,this.y1=this.y1*i,this.x2=this.x2*e,this.y2=this.y2*i,this.adjustVisual(),this.adjustControlBox()},e}(et),pt=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.setStrokeColor=r.setStrokeColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.strokeColor=n.defaultColor,r.strokeWidth=n.defaultStrokeWidth,r.strokeDasharray=n.defaultStrokeDasharray,r.strokePanel=new tt("Line color",n.defaultColorSet,n.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new st("Line width",n.defaultStrokeWidths,n.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new lt("Line style",n.defaultStrokeDasharrays,n.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return W(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.selectorLine&&e!==this.visibleLine)},e.prototype.createVisual=function(){this.visual=U.createGroup(),this.selectorLine=U.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=U.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)},e.prototype.pointerDown=function(e,i){t.prototype.pointerDown.call(this,e,i),"new"===this.state&&(this.createVisual(),this.adjustVisual(),this._state="creating")},e.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()),U.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),U.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),U.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.adjustVisual(),this.colorChanged(t)},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.adjustVisual()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.adjustVisual(),this.stateChanged()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},t.prototype.getState.call(this));return i.typeName=e.typeName,i},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var i=e;this.strokeColor=i.strokeColor,this.strokeWidth=i.strokeWidth,this.strokeDasharray=i.strokeDasharray,this.createVisual(),this.adjustVisual()},e.typeName="LineMarker",e.title="Line marker",e.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',e}(ht),dt=function(t){function e(e,i,n,r){var o=t.call(this,e,r||'<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 o.fonts=[],o.fontBoxes=[],o.fonts=i,o.currentFont=n,o.setCurrentFont=o.setCurrentFont.bind(o),o}return W(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.overflow="hidden",e.style.flexGrow="2",this.fonts.forEach((function(i){var n=document.createElement("div");n.style.display="inline-block",n.style.alignItems="center",n.style.justifyContent="space-between",n.style.padding="5px",n.style.borderWidth="2px",n.style.borderStyle="solid",n.style.overflow="hidden",n.style.maxWidth=100/t.fonts.length-5+"%",n.style.borderColor=i===t.currentFont?t.uiStyleSettings.toolboxAccentColor:"transparent",n.addEventListener("click",(function(){t.setCurrentFont(i,n)})),e.appendChild(n);var r=document.createElement("div");r.style.display="flex",r.style.minHeight="20px",r.style.flexGrow="2",r.style.fontFamily=i,r.style.overflow="hidden";var o=document.createElement("div");o.style.whiteSpace="nowrap",o.style.overflow="hidden",o.style.textOverflow="ellipsis",o.innerHTML="The quick brown fox jumps over the lazy dog",r.appendChild(o),n.appendChild(r),t.fontBoxes.push(n)})),e},e.prototype.setCurrentFont=function(t,e){var i=this;this.currentFont=t,this.fontBoxes.forEach((function(t){t.style.borderColor=t===e?i.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onFontChanged&&this.onFontChanged(this.currentFont)},e}($),ft=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.color="transparent",r.padding=5,r.DEFAULT_TEXT="your text here",r.text=r.DEFAULT_TEXT,r.isMoved=!1,r.color=n.defaultColor,r.fontFamily=n.defaultFontFamily,r.defaultSize={x:100,y:30},r.setColor=r.setColor.bind(r),r.setFont=r.setFont.bind(r),r.renderText=r.renderText.bind(r),r.sizeText=r.sizeText.bind(r),r.textEditDivClicked=r.textEditDivClicked.bind(r),r.showTextEditor=r.showTextEditor.bind(r),r.setSize=r.setSize.bind(r),r.positionTextEditor=r.positionTextEditor.bind(r),r.colorPanel=new tt("Color",n.defaultColorSet,n.defaultColor),r.colorPanel.onColorChanged=r.setColor,r.fontFamilyPanel=new dt("Font",n.defaultFontFamilies,n.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r}return W(e,t),e.prototype.ownsTarget=function(e){if(t.prototype.ownsTarget.call(this,e)||e===this.visual||e===this.textElement||e===this.bgRectangle)return!0;var i=!1;return this.textElement.childNodes.forEach((function(t){t===e&&(i=!0)})),i},e.prototype.createVisual=function(){this.visual=U.createGroup(),this.bgRectangle=U.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=U.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(U.createTransform()),this.textElement.transform.baseVal.appendItem(U.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},e.prototype.pointerDown=function(e,i){t.prototype.pointerDown.call(this,e,i),this.isMoved=!1,this.pointerDownPoint=e,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(e),this._state="creating")},e.prototype.renderText=function(){var t=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(e){t.textElement.appendChild(U.createTSpan(""===e.trim()?" ":e.trim(),[["x","0"],["dy","1.2em"]]))})),setTimeout(this.sizeText,10)}},e.prototype.getTextScale=function(){var t=this.textElement.getBBox(),e=1;if(t.width>0&&t.height>0){var i=(1*this.width-this.width*this.padding*2/100)/t.width,n=(1*this.height-this.height*this.padding*2/100)/t.height;e=Math.min(i,n)}return e},e.prototype.getTextPosition=function(t){var e=this.textElement.getBBox(),i=0,n=0;return e.width>0&&e.height>0&&(i=(this.width-e.width*t)/2,n=this.height/2-e.height*t/2),{x:i,y:n}},e.prototype.sizeText=function(){var t=this.textElement.getBBox(),e=this.getTextScale(),i=this.getTextPosition(e);i.y-=t.y*e,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+i.x+"px, "+i.y+"px) scale("+e+", "+e+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(i.x,i.y),this.textElement.transform.baseVal.getItem(1).setScale(e,e))},e.prototype.manipulate=function(e){t.prototype.manipulate.call(this,e),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(e.x-this.pointerDownPoint.x)>5||Math.abs(e.y-this.pointerDownPoint.y)>5)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.isMoved=!0,this.setSize(),this.sizeText()},e.prototype.setSize=function(){t.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(U.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),U.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},e.prototype.pointerUp=function(e){var i=this.state;"creating"===i&&(this._suppressMarkerCreateEvent=!0),t.prototype.pointerUp.call(this,e),this.setSize(),("creating"===i||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},e.prototype.showTextEditor=function(){var t=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(t){t.stopPropagation()})),this.textEditor.addEventListener("input",(function(){for(var e=Number.parseFloat(t.textEditor.style.fontSize);t.textEditor.clientWidth>=Number.parseInt(t.textEditor.style.maxWidth)&&e>.9;)e-=.1,t.textEditor.style.fontSize=Math.max(e,.9)+"em"})),this.textEditor.addEventListener("keyup",(function(t){t.cancelBubble=!0})),this.textEditor.addEventListener("paste",(function(t){if(t.clipboardData){var e=t.clipboardData.getData("text"),i=window.getSelection();if(!i.rangeCount)return!1;i.deleteFromDocument(),i.getRangeAt(0).insertNode(document.createTextNode(e)),t.preventDefault()}})),this.textEditDiv.addEventListener("pointerup",(function(){t.textEditDivClicked(t.textEditor.innerText)})),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},e.prototype.positionTextEditor=function(){if("edit"===this.state)if(void 0===this.textEditor)this.showTextEditor();else{this.textElement.style.display="";var t=this.getTextScale(),e=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),i=this.textElement.getBBox(),n={x:i.width*t,y:i.height*t};e.x-=n.x/2,e.y-=n.y/2,this.textEditor.style.top=e.y+"px",this.textEditor.style.left=e.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-e.x+"px",this.textEditor.style.fontSize=Math.max(16*t,12)+"px",this.textElement.style.display="none"}},e.prototype.textEditDivClicked=function(t){this.text=t.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},e.prototype.select=function(){t.prototype.select.call(this),"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText)},e.prototype.deselect=function(){"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText),t.prototype.deselect.call(this)},e.prototype.dblClick=function(e,i){t.prototype.dblClick.call(this,e,i),this.showTextEditor()},e.prototype.setColor=function(t){this.textElement&&U.setAttributes(this.textElement,[["fill",t]]),this.color=t,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(t)},e.prototype.setFont=function(t){this.textElement&&U.setAttributes(this.textElement,[["font-family",t]]),this.fontFamily=t,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},e.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},e.prototype.showVisual=function(){"edit"===this.state&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},t.prototype.getState.call(this));return i.typeName=e.typeName,i},e.prototype.restoreState=function(e){var i=e;this.color=i.color,this.fontFamily=i.fontFamily,this.padding=i.padding,this.text=i.text,this.createVisual(),t.prototype.restoreState.call(this,e),this.setSize()},e.prototype.scale=function(e,i){t.prototype.scale.call(this,e,i),this.setSize(),this.sizeText(),this.positionTextEditor()},e.typeName="TextMarker",e.title="Text marker",e.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>',e}(ot),mt=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.color="transparent",r.lineWidth=3,r.drawing=!1,r.pixelRatio=1,r.color=n.defaultColor,r.lineWidth=n.defaultStrokeWidth,r.pixelRatio=n.freehandPixelRatio,r.setColor=r.setColor.bind(r),r.addCanvas=r.addCanvas.bind(r),r.finishCreation=r.finishCreation.bind(r),r.setLineWidth=r.setLineWidth.bind(r),r.colorPanel=new tt("Color",n.defaultColorSet,n.defaultColor),r.colorPanel.onColorChanged=r.setColor,r.lineWidthPanel=new st("Line width",n.defaultStrokeWidths,n.defaultStrokeWidth),r.lineWidthPanel.onWidthChanged=r.setLineWidth,r}return W(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.drawingImage)},e.prototype.createVisual=function(){this.visual=U.createGroup(),this.drawingImage=U.createImage(),this.visual.appendChild(this.drawingImage);var t=U.createTransform();this.visual.transform.baseVal.appendItem(t),this.addMarkerVisualToContainer(this.visual)},e.prototype.pointerDown=function(e,i){"new"===this.state&&(this.addCanvas(),this.createVisual(),this._state="creating"),"creating"===this.state?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(e.x,e.y),this.drawing=!0):t.prototype.pointerDown.call(this,e,i)},e.prototype.manipulate=function(e){"creating"===this.state?this.drawing&&(this.canvasContext.lineTo(e.x,e.y),this.canvasContext.stroke()):t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),U.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),U.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},e.prototype.pointerUp=function(e){"creating"===this._state?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):t.prototype.pointerUp.call(this,e)},e.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)},e.prototype.select=function(){"creating"===this.state&&this.finishCreation(),t.prototype.select.call(this)},e.prototype.deselect=function(){"creating"===this.state&&this.finishCreation(),t.prototype.deselect.call(this)},e.prototype.finishCreation=function(){for(var t=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),e=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],i=e[0],n=e[1],r=e[2],o=e[3],a=!1,s=0;s<this.canvasElement.height;s++)for(var l=0;l<this.canvasElement.width;l++)t.data[s*this.canvasElement.width*4+4*l+3]>0&&(a=!0,s<n&&(n=s),l<i&&(i=l),s>o&&(o=s),l>r&&(r=l));if(a){this.left=i/this.pixelRatio,this.top=n/this.pixelRatio,this.width=(r-i)/this.pixelRatio,this.height=(o-n)/this.pixelRatio;var c=document.createElement("canvas");c.width=r-i,c.height=o-n,c.getContext("2d").putImageData(this.canvasContext.getImageData(i,n,r-i,o-n),0,0),this.drawingImgUrl=c.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},e.prototype.setDrawingImage=function(){U.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),U.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},e.prototype.setColor=function(t){this.color=t,this.colorChanged(t)},e.prototype.setLineWidth=function(t){this.lineWidth=t},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return"new"===this.state||"creating"===this.state?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=Object.assign({drawingImgUrl:this.drawingImgUrl},t.prototype.getState.call(this));return i.typeName=e.typeName,i},e.prototype.restoreState=function(e){this.createVisual(),t.prototype.restoreState.call(this,e),this.drawingImgUrl=e.drawingImgUrl,this.setDrawingImage()},e.prototype.scale=function(e,i){t.prototype.scale.call(this,e,i),this.setDrawingImage()},e.typeName="FreehandMarker",e.title="Freehand marker",e.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>',e}(ot),gt=function(t){function e(e,i,n){var r=t.call(this,e,n||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return r.typeBoxes=[],r.currentType=i,r.setCurrentType=r.setCurrentType.bind(r),r}return W(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2";for(var i=function(i){var r="both";switch(i){case 0:r="both";break;case 1:r="start";break;case 2:r="end";break;case 3:r="none"}var o=document.createElement("div");if(o.style.display="flex",o.style.flexGrow="2",o.style.alignItems="center",o.style.justifyContent="space-between",o.style.padding="5px",o.style.borderWidth="2px",o.style.borderStyle="solid",o.style.borderColor=r===n.currentType?n.uiStyleSettings.toolboxAccentColor:"transparent",o.addEventListener("click",(function(){t.setCurrentType(r,o)})),e.appendChild(o),"both"===r||"start"===r){var a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.minHeight="20px",a.innerHTML='<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">\n <polygon points="0,5 10,0 10,10" fill="'+(void 0!==n.uiStyleSettings?n.uiStyleSettings.toolboxColor:"#eeeeee")+'" />\n </svg>',a.style.marginLeft="5px",o.appendChild(a)}var s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.minHeight="20px",s.style.flexGrow="2";var l=document.createElement("hr");if(l.style.minWidth="20px",l.style.border="0px",l.style.borderTop="3px solid "+(void 0!==n.uiStyleSettings?n.uiStyleSettings.toolboxColor:"#eeeeee"),l.style.flexGrow="2",s.appendChild(l),o.appendChild(s),"both"===r||"end"===r){var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",c.style.minHeight="20px",c.innerHTML='<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">\n <polygon points="0,0 10,5 0,10" fill="'+(void 0!==n.uiStyleSettings?n.uiStyleSettings.toolboxColor:"#eeeeee")+'" />\n </svg>',c.style.marginRight="5px",o.appendChild(c)}n.typeBoxes.push(o)},n=this,r=0;r<4;r++)i(r);return e},e.prototype.setCurrentType=function(t,e){var i=this;this.currentType=t,this.typeBoxes.forEach((function(t){t.style.borderColor=t===e?void 0!==i.uiStyleSettings?i.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"})),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},e}($),vt=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.arrowType="end",r.arrowBaseHeight=10,r.arrowBaseWidth=10,r.getArrowPoints=r.getArrowPoints.bind(r),r.setArrowType=r.setArrowType.bind(r),r.arrowTypePanel=new gt("Arrow type","end"),r.arrowTypePanel.onArrowTypeChanged=r.setArrowType,r}return W(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.arrow1&&e!==this.arrow2)},e.prototype.getArrowPoints=function(t,e){var i=this.arrowBaseWidth+2*this.strokeWidth,n=this.arrowBaseHeight+2*this.strokeWidth;return t-i/2+","+(e+n/2)+" "+t+","+(e-n/2)+" "+(t+i/2)+","+(e+n/2)},e.prototype.createTips=function(){this.arrow1=U.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(U.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=U.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(U.createTransform()),this.visual.appendChild(this.arrow2)},e.prototype.pointerDown=function(e,i){t.prototype.pointerDown.call(this,e,i),"creating"===this.state&&this.createTips()},e.prototype.adjustVisual=function(){if(t.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display="both"===this.arrowType||"start"===this.arrowType?"":"none",this.arrow2.style.display="both"===this.arrowType||"end"===this.arrowType?"":"none",U.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),U.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var e=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),i=this.arrow1.transform.baseVal.getItem(0);i.setRotate(e,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(i,0);var n=this.arrow2.transform.baseVal.getItem(0);n.setRotate(e+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(n,0)}},e.prototype.setArrowType=function(t){this.arrowType=t,this.adjustVisual(),this.stateChanged()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=Object.assign({arrowType:this.arrowType},t.prototype.getState.call(this));return i.typeName=e.typeName,i},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var i=e;this.arrowType=i.arrowType,this.createTips(),this.adjustVisual()},e.typeName="ArrowMarker",e.title="Arrow marker",e.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',e}(pt),yt=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.fillColor=n.defaultFillColor,r.strokeWidth=0,r.fillPanel=new tt("Color",n.defaultColorSet,n.defaultFillColor),r.fillPanel.onColorChanged=r.setFillColor,r}return W(e,t),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=t.prototype.getState.call(this);return i.typeName=e.typeName,i},e.typeName="CoverMarker",e.title="Cover marker",e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',e}(at),bt=function(t){function e(e,i,n,r){var o=t.call(this,e,r||'<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 o.opacities=[],o.opacityBoxes=[],o.opacities=i,o.currentOpacity=n,o.setCurrentOpacity=o.setCurrentOpacity.bind(o),o}return W(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2",e.style.justifyContent="space-between",this.opacities.forEach((function(i){var n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.padding="5px",n.style.borderWidth="2px",n.style.borderStyle="solid",n.style.borderColor=i===t.currentOpacity?t.uiStyleSettings.toolboxAccentColor:"transparent",n.addEventListener("click",(function(){t.setCurrentOpacity(i,n)})),e.appendChild(n);var r=document.createElement("div");r.innerText=100*i+"%",n.appendChild(r),t.opacityBoxes.push(n)})),e},e.prototype.setCurrentOpacity=function(t,e){var i=this;this.currentOpacity=t,this.opacityBoxes.forEach((function(t){t.style.borderColor=t===e?i.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},e}($),Ct=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.setOpacity=r.setOpacity.bind(r),r.fillColor=n.defaultHighlightColor,r.strokeWidth=0,r.opacity=n.defaultHighlightOpacity,r.fillPanel=new tt("Color",n.defaultColorSet,r.fillColor),r.fillPanel.onColorChanged=r.setFillColor,r.opacityPanel=new bt("Opacity",n.defaultOpacitySteps,r.opacity),r.opacityPanel.onOpacityChanged=r.setOpacity,r}return W(e,t),e.prototype.setOpacity=function(t){this.opacity=t,this.visual&&U.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=t.prototype.getState.call(this);return i.typeName=e.typeName,i},e.typeName="HighlightMarker",e.title="Highlight marker",e.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>',e}(yt),xt='<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>',kt=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.bgColor="transparent",r.tipPosition={x:0,y:0},r.tipBase1Position={x:0,y:0},r.tipBase2Position={x:0,y:0},r.tipMoving=!1,r.color=n.defaultStrokeColor,r.bgColor=n.defaultFillColor,r.fontFamily=n.defaultFontFamily,r.defaultSize={x:100,y:30},r.setBgColor=r.setBgColor.bind(r),r.getTipPoints=r.getTipPoints.bind(r),r.positionTip=r.positionTip.bind(r),r.setTipPoints=r.setTipPoints.bind(r),r.colorPanel=new tt("Text color",n.defaultColorSet,r.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>'),r.colorPanel.onColorChanged=r.setColor,r.bgColorPanel=new tt("Fill color",n.defaultColorSet,r.bgColor,xt),r.bgColorPanel.onColorChanged=r.setBgColor,r.fontFamilyPanel=new dt("Font",n.defaultFontFamilies,n.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r.tipGrip=new nt,r.tipGrip.visual.transform.baseVal.appendItem(U.createTransform()),r.controlBox.appendChild(r.tipGrip.visual),r}return W(e,t),e.prototype.ownsTarget=function(e){return t.prototype.ownsTarget.call(this,e)||this.tipGrip.ownsTarget(e)||this.tip===e},e.prototype.createTip=function(){U.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=U.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},e.prototype.pointerDown=function(e,i){"new"===this.state&&t.prototype.pointerDown.call(this,e,i),"creating"===this.state?this.createTip():this.tipGrip.ownsTarget(i)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):t.prototype.pointerDown.call(this,e,i)},e.prototype.pointerUp=function(e){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,t.prototype.pointerUp.call(this,e);else{var i="creating"===this.state;t.prototype.pointerUp.call(this,e),this.setTipPoints(i),this.positionTip()}},e.prototype.manipulate=function(e){if(this.tipMoving){var i=this.unrotatePoint(e);this.tipPosition={x:i.x-this.manipulationStartLeft,y:i.y-this.manipulationStartTop},this.positionTip()}else t.prototype.manipulate.call(this,e)},e.prototype.setBgColor=function(t){this.bgRectangle&&this.tip&&(U.setAttributes(this.bgRectangle,[["fill",t]]),U.setAttributes(this.tip,[["fill",t]])),this.bgColor=t,this.fillColorChanged(t)},e.prototype.getTipPoints=function(){return this.setTipPoints("creating"===this.state),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},e.prototype.setTipPoints=function(t){void 0===t&&(t=!1);var e=Math.min(this.height/2,15),i=this.height/5;t&&(this.tipPosition={x:e+i/2,y:this.height+20});var n=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?n<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(i=this.width/5,e=Math.min(this.width/2,15),this.tipBase1Position={x:e,y:0},this.tipBase2Position={x:e+i,y:0}):(this.tipBase1Position={x:0,y:e},this.tipBase2Position={x:0,y:e+i}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?n<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(i=this.width/5,e=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-e-i,y:0},this.tipBase2Position={x:this.width-e,y:0}):(this.tipBase1Position={x:this.width,y:e},this.tipBase2Position={x:this.width,y:e+i}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?n<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(i=this.width/5,e=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-e-i,y:this.height},this.tipBase2Position={x:this.width-e,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-e-i},this.tipBase2Position={x:this.width,y:this.height-e}):n<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(i=this.width/5,e=Math.min(this.width/2,15),this.tipBase1Position={x:e,y:this.height},this.tipBase2Position={x:e+i,y:this.height}):(this.tipBase1Position={x:0,y:this.height-e},this.tipBase2Position={x:0,y:this.height-e-i})},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.positionTip()},e.prototype.positionTip=function(){U.setAttributes(this.tip,[["points",this.getTipPoints()]]);var t=this.tipGrip.visual.transform.baseVal.getItem(0);t.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(t,0)},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),e.prototype.select=function(){this.positionTip(),t.prototype.select.call(this)},e.prototype.getState=function(){var i=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},t.prototype.getState.call(this));return i.typeName=e.typeName,i},e.prototype.restoreState=function(e){var i=e;this.bgColor=i.bgColor,this.tipPosition=i.tipPosition,t.prototype.restoreState.call(this,e),this.createTip(),this.setTipPoints()},e.prototype.scale=function(e,i){t.prototype.scale.call(this,e,i),this.tipPosition={x:this.tipPosition.x*e,y:this.tipPosition.y*i},this.positionTip()},e.typeName="CalloutMarker",e.title="Callout marker",e.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>',e}(ft),wt=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.opacity=1,r.strokeColor=n.defaultColor,r.strokeWidth=n.defaultStrokeWidth,r.strokeDasharray=n.defaultStrokeDasharray,r.fillColor=n.defaultFillColor,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.setOpacity=r.setOpacity.bind(r),r.createVisual=r.createVisual.bind(r),r.strokePanel=new tt("Line color",G(n.defaultColorSet,["transparent"]),n.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.fillPanel=new tt("Fill color",G(n.defaultColorSet,["transparent"]),r.fillColor,xt),r.fillPanel.onColorChanged=r.setFillColor,r.strokeWidthPanel=new st("Line width",n.defaultStrokeWidths,n.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new lt("Line style",n.defaultStrokeDasharrays,n.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r.opacityPanel=new bt("Opacity",n.defaultOpacitySteps,r.opacity),r.opacityPanel.onOpacityChanged=r.setOpacity,r}return W(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual)},e.prototype.createVisual=function(){this.visual=U.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)},e.prototype.pointerDown=function(e,i){t.prototype.pointerDown.call(this,e,i),"new"===this.state&&(this.createVisual(),this.moveVisual(e),this._state="creating")},e.prototype.manipulate=function(e){t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.setSize()},e.prototype.setSize=function(){t.prototype.setSize.call(this),U.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},e.prototype.pointerUp=function(e){t.prototype.pointerUp.call(this,e),this.setSize()},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.visual&&U.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(t),this.stateChanged()},e.prototype.setFillColor=function(t){this.fillColor=t,this.visual&&U.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(t),this.stateChanged()},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.visual&&U.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.visual&&U.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},e.prototype.setOpacity=function(t){this.opacity=t,this.visual&&U.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},t.prototype.getState.call(this));return i.typeName=e.typeName,i},e.prototype.restoreState=function(e){var i=e;this.fillColor=i.fillColor,this.strokeColor=i.strokeColor,this.strokeWidth=i.strokeWidth,this.strokeDasharray=i.strokeDasharray,this.opacity=i.opacity,this.createVisual(),t.prototype.restoreState.call(this,e),this.setSize()},e.prototype.scale=function(e,i){t.prototype.scale.call(this,e,i),this.setSize()},e.typeName="EllipseMarker",e.title="Ellipse marker",e.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>',e}(ot),St=function(t){function e(e,i,n){return t.call(this,e,i,n)||this}return W(e,t),Object.defineProperty(e.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.tip1&&e!==this.tip2)},e.prototype.createTips=function(){this.tip1=U.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(U.createTransform()),this.visual.appendChild(this.tip1),this.tip2=U.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(U.createTransform()),this.visual.appendChild(this.tip2)},e.prototype.pointerDown=function(e,i){t.prototype.pointerDown.call(this,e,i),"creating"===this.state&&this.createTips()},e.prototype.adjustVisual=function(){if(t.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(U.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()]]),U.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 e=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),i=this.tip1.transform.baseVal.getItem(0);i.setRotate(e,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(i,0);var n=this.tip2.transform.baseVal.getItem(0);n.setRotate(e+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(n,0)}},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=t.prototype.getState.call(this);return i.typeName=e.typeName,i},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e),this.createTips(),this.adjustVisual()},e.typeName="MeasurementMarker",e.title="Measurement marker",e.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>',e}(pt),At=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.strokePanel.colors=n.defaultColorSet,r.fillColor="transparent",r}return W(e,t),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=t.prototype.getState.call(this);return i.typeName=e.typeName,i},e.typeName="EllipseFrameMarker",e.title="Ellipse frame marker",e.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>',e}(wt),Et=function(){function t(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(t.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),t.prototype.addUndoStep=function(t){0!==this.undoStack.length&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(t)||(this.undoStack.push(t),JSON.stringify(this.lastRedoStep)!==JSON.stringify(t)&&this.redoStack.splice(0,this.redoStack.length))},t.prototype.replaceLastUndoStep=function(t){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=t)},t.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},t.prototype.undo=function(){if(this.undoStack.length>1){var t=this.undoStack.pop();return void 0!==t&&this.redoStack.push(t),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},t.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},t}(),Ot=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.curveX=0,r.curveY=0,r.manipulationStartCurveX=0,r.manipulationStartCurveY=0,r.setStrokeColor=r.setStrokeColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.positionGrips=r.positionGrips.bind(r),r.addControlGrips=r.addControlGrips.bind(r),r.adjustVisual=r.adjustVisual.bind(r),r.setupControlBox=r.setupControlBox.bind(r),r.resize=r.resize.bind(r),r.strokeColor=n.defaultColor,r.strokeWidth=n.defaultStrokeWidth,r.strokeDasharray=n.defaultStrokeDasharray,r.strokePanel=new tt("Line color",n.defaultColorSet,n.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new st("Line width",n.defaultStrokeWidths,n.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new lt("Line style",n.defaultStrokeDasharrays,n.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return W(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.selectorCurve&&e!==this.visibleCurve&&!this.curveGrip.ownsTarget(e))},e.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},e.prototype.createVisual=function(){this.visual=U.createGroup(),this.selectorCurve=U.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=U.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)},e.prototype.pointerDown=function(e,i){t.prototype.pointerDown.call(this,e,i),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,"new"===this.state&&(this.curveX=e.x,this.curveY=e.y),"new"===this.state?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(i)&&(this.activeGrip=this.curveGrip,this._state="resize")},e.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),U.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),U.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),U.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},e.prototype.setupControlBox=function(){t.prototype.setupControlBox.call(this),this.curveControlLine1=U.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=U.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)},e.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,t.prototype.addControlGrips.call(this)},e.prototype.positionGrips=function(){t.prototype.positionGrips.call(this);var e=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-e/2,this.curveY-e/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()))},e.prototype.manipulate=function(e){"move"===this.state&&(this.curveX=this.manipulationStartCurveX+e.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+e.y-this.manipulationStartY),t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){this.activeGrip===this.curveGrip&&(this.curveX=e.x,this.curveY=e.y),t.prototype.resize.call(this,e),"creating"===this.state&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.adjustVisual(),this.colorChanged(t)},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.adjustVisual()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.adjustVisual()},e.prototype.scale=function(e,i){this.curveX=this.curveX*e,this.curveY=this.curveY*i,t.prototype.scale.call(this,e,i)},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var i=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},t.prototype.getState.call(this));return i.typeName=e.typeName,i},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var i=e;this.strokeColor=i.strokeColor,this.strokeWidth=i.strokeWidth,this.strokeDasharray=i.strokeDasharray,this.curveX=i.curveX,this.curveY=i.curveY,this.createVisual(),this.adjustVisual()},e.typeName="CurveMarker",e.title="Curve marker",e.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>',e}(ht),Mt=function(){function t(t,e){void 0===e&&(e=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=t,this.cancelable=e}return Object.defineProperty(t.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this._defaultPrevented=!0},t}(),It=function(t){function e(e,i,n){var r=t.call(this,e,!1)||this;return r.dataUrl=i,r.state=n,r}return W(e,t),e}(Mt),Tt=function(t){function e(e,i,n){void 0===n&&(n=!1);var r=t.call(this,e,n)||this;return r.marker=i,r}return W(e,t),e}(Mt),Nt=function(){function t(){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 t.prototype.addEventListener=function(t,e){this[t].push(e)},t.prototype.removeEventListener=function(t,e){var i=this[t].indexOf(e);i>-1&&this[t].splice(i,1)},t}(),Rt=function(){function t(e){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ut,this._isOpen=!1,this.undoRedoManager=new Et,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 Nt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=t.instanceCounter++,this.styles=new Z(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=e,this.targetRoot=document.body,this.width=e.clientWidth,this.height=e.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(t.prototype,"ALL_MARKER_TYPES",{get:function(){return[ct,mt,vt,ft,At,wt,Ct,kt,St,yt,pt,Ot]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ct,mt,vt,ft,wt,Ct,kt]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ct,mt,vt,ft,Ct]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(t){var e=this;this._availableMarkerTypes.splice(0),t.forEach((function(t){if("string"==typeof t){var i=e.ALL_MARKER_TYPES.find((function(e){return e.typeName===t}));void 0!==i&&e._availableMarkerTypes.push(i)}else e._availableMarkerTypes.push(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(t){this._zoomLevel=t,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(t.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),t.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),"popup"===this.settings.displayMode&&this.onPopupTargetResize(),Q.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},t.prototype.show=function(){var t=this;void 0===this.styles.styleSheetRoot&&void 0!==K.styleSheetRoot&&(this.styles.styleSheetRoot=K.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach((function(e){return e(new Mt(t))}))},t.prototype.render=function(){return V(this,void 0,void 0,(function(){var t;return H(this,(function(e){switch(e.label){case 0:return this.setCurrentMarker(),(t=new J).naturalSize=this.renderAtNaturalSize,t.imageType=this.renderImageType,t.imageQuality=this.renderImageQuality,t.markersOnly=this.renderMarkersOnly,t.width=this.renderWidth,t.height=this.renderHeight,[4,t.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return e.sent(),[4,t.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,e.sent()]}}))}))},t.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),this.isOpen){var i=!1;t||this.eventListeners.beforeclose.forEach((function(t){var n=new Mt(e,!0);t(n),n.defaultPrevented&&(i=!0)})),i||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),"popup"===this.settings.displayMode&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach((function(t){return t(new Mt(e))})),this.detachEvents(),this._isOpen=!1)}},t.prototype.addMarkersToToolbar=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];(t=this._availableMarkerTypes).push.apply(t,e)},t.prototype.addRenderEventListener=function(t){this.addEventListener("render",(function(e){t(e.dataUrl,e.state)}))},t.prototype.removeRenderEventListener=function(t){},t.prototype.addCloseEventListener=function(t){this.addEventListener("close",(function(){t()}))},t.prototype.removeCloseEventListener=function(t){},t.prototype.setupResizeObserver=function(){var t=this;"inline"===this.settings.displayMode?window.ResizeObserver&&(this.targetObserver=new ResizeObserver((function(){t.resize(t.target.clientWidth,t.target.clientHeight)})),this.targetObserver.observe(this.target)):"popup"===this.settings.displayMode&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver((function(){return t.onPopupTargetResize()})),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},t.prototype.onPopupTargetResize=function(){var t=1*this.target.clientWidth/this.target.clientHeight,e=this.editorCanvas.clientWidth/t>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*t:this.editorCanvas.clientWidth,i=e<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/t;this.resize(e,i)},t.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},t.prototype.resize=function(t,e){this._isResizing=!0;var i=t/this.imageWidth,n=e/this.imageHeight;this.imageWidth=Math.round(t),this.imageHeight=Math.round(e),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","popup"!==this.settings.displayMode?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),void 0!==this.toolbar&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(i,n),this._isResizing=!1},t.prototype.scaleMarkers=function(t,e){var i,n=this;this._currentMarker&&this._currentMarker instanceof ft?this._currentMarker.scale(t,e):(i=this._currentMarker,this.setCurrentMarker()),this.markers.forEach((function(i){i!==n._currentMarker&&i.scale(t,e)})),void 0!==i&&this.setCurrentMarker(i)},t.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"},t.prototype.setTopLeft=function(){var t=this.editingTarget.getBoundingClientRect(),e=this.editorCanvas.getBoundingClientRect();this.left=t.left-e.left,this.top=t.top-e.top},t.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)},t.prototype.addDefs=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];this.defs=U.createDefs(),this.addDefsToImage(),(t=this.defs).append.apply(t,e)},t.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},t.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)},t.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},t.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},t.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)},t.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},t.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)},t.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 t=document.createElement("a");t.href="https://markerjs.com/",t.target="_blank",t.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>',t.title="Powered by marker.js",t.style.display="grid",t.style.alignItems="center",t.style.justifyItems="center",t.style.padding="3px",t.style.width="20px",t.style.height="20px",this.logoUI.appendChild(t),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},t.prototype.positionLogo=function(){this.logoUI&&("right"!==this.uiStyleSettings.logoPosition?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")},t.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"},t.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},t.prototype.showUI=function(){switch("popup"===this.settings.displayMode&&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 t=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=t+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=void 0!==this.uiStyleSettings.zIndex?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=void 0!==this.uiStyleSettings.zIndex?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="popup"===this.settings.displayMode?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new X(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","popup"===this.settings.displayMode&&(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","popup"===this.settings.displayMode&&(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 _(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},t.prototype.closeUI=function(){"popup"===this.settings.displayMode&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},t.prototype.removeMarker=function(t){this.markerImage.removeChild(t.container),this.markers.indexOf(t)>-1&&this.markers.splice(this.markers.indexOf(t),1),t.dispose()},t.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),void 0!==this._currentMarker&&("new"!==this._currentMarker.state?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},t.prototype.toolbarButtonClicked=function(t,e){if("marker"===t&&void 0!==e)this.createNewMarker(e);else if("action"===t)switch(e){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":void 0===this.notesArea?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},t.prototype.deleteSelectedMarker=function(){var t=this;if(void 0!==this._currentMarker){var e=!1;if(this.eventListeners.markerbeforedelete.forEach((function(i){var n=new Tt(t,t._currentMarker,!0);i(n),n.defaultPrevented&&(e=!0)})),!e){var i=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(e){return e(new Tt(t,i))}))}}},t.prototype.clear=function(){var t=this,e=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach((function(i){var n=new Tt(t,void 0,!0);i(n),n.defaultPrevented&&(e=!0)})),!e)){this.setCurrentMarker();for(var i=function(e){var i=n.markers[e];n.setCurrentMarker(n.markers[e]),n._currentMarker.dispose(),n.markerImage.removeChild(n._currentMarker.container),n.markers.splice(n.markers.indexOf(n._currentMarker),1),n.eventListeners.markerdelete.forEach((function(e){return e(new Tt(t,i))}))},n=this,r=this.markers.length-1;r>=0;r--)i(r);this.addUndoStep()}},Object.defineProperty(t.prototype,"isNotesAreaOpen",{get:function(){return void 0!==this.notesArea},enumerable:!1,configurable:!0}),t.prototype.showNotesEditor=function(){var t;void 0!==this._currentMarker&&(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=null!==(t=this._currentMarker.notes)&&void 0!==t?t:"",this.overlayContainer.appendChild(this.notesArea))},t.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(void 0!==this._currentMarker&&(this._currentMarker.notes=""!==this.notesArea.value.trim()?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},t.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},t.prototype.addUndoStep=function(){var t=this;if(void 0===this._currentMarker||"edit"!==this._currentMarker.state){var e=this.getState(),i=this.undoRedoManager.getLastUndoStep();if(!i||i.width===e.width&&i.height===e.height){var n=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(e),n<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach((function(e){return e(new Mt(t))}))}else this.undoRedoManager.replaceLastUndoStep(e),this.eventListeners.statechange.forEach((function(e){return e(new Mt(t))}))}},t.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},t.prototype.undoStep=function(){var t=this,e=this.undoRedoManager.undo();void 0!==e&&(this.restoreState(e),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach((function(e){return e(new Mt(t))})))},t.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},t.prototype.redoStep=function(){var t=this,e=this.undoRedoManager.redo();void 0!==e&&(this.restoreState(e),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach((function(e){return e(new Mt(t))})))},t.prototype.stepZoom=function(){var t=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=t<this.zoomSteps.length-1?this.zoomSteps[t+1]:this.zoomSteps[0]},t.prototype.panTo=function(t){this.contentDiv.scrollBy({left:this.prevPanPoint.x-t.x,top:this.prevPanPoint.y-t.y}),this.prevPanPoint=t},t.prototype.startRenderAndClose=function(){return V(this,void 0,void 0,(function(){var t,e,i=this;return H(this,(function(n){switch(n.label){case 0:return[4,this.render()];case 1:return t=n.sent(),e=this.getState(),this.eventListeners.render.forEach((function(n){return n(new It(i,t,e))})),this.close(!0),[2]}}))}))},t.prototype.getState=function(t){!0===t&&this.setCurrentMarker();var e={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach((function(t){return e.markers.push(t.getState())})),e},t.prototype.restoreState=function(t){var e=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);t.markers.forEach((function(t){var i=e._availableMarkerTypes.find((function(e){return e.typeName===t.typeName}));if(void 0!==i){var n=e.addNewMarker(i);n.restoreState(t),e.markers.push(n)}})),t.width&&t.height&&(t.width!==this.imageWidth||t.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/t.width,this.imageHeight/t.height),this.eventListeners.restorestate.forEach((function(t){return t(new Mt(e))}))},t.prototype.addNewMarker=function(t){var e=U.createGroup();return this.markerImage.appendChild(e),new t(e,this.overlayContainer,this.settings)},t.prototype.createNewMarker=function(t){var e,i=this;(e="string"==typeof t?this._availableMarkerTypes.find((function(e){return e.typeName===t})):t)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(e),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(e.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach((function(t){return t(new Tt(i,i._currentMarker))})))},t.prototype.markerCreated=function(t){var e=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(t),this.setCurrentMarker(t),t instanceof mt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(mt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach((function(t){return t(new Tt(e,e._currentMarker))}))},t.prototype.colorChanged=function(t){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=t,this.settings.defaultStrokeColor=t)},t.prototype.fillColorChanged=function(t){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=t)},t.prototype.markerStateChanged=function(t){var e=this;this.eventListeners.markerchange.forEach((function(i){return i(new Tt(e,t))}))},t.prototype.setCurrentMarker=function(t){var e=this;this._currentMarker!==t&&void 0!==this._currentMarker&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach((function(t){return t(new Tt(e,e._currentMarker))}))),this._currentMarker=t,void 0===this._currentMarker||this._currentMarker.isSelected||("new"!==this._currentMarker.state&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach((function(t){return t(new Tt(e,e._currentMarker))})))},t.prototype.onPointerDown=function(t){if(this._isFocused||this.focus(),this.touchPoints++,1===this.touchPoints||"touch"!==t.pointerType)if(void 0===this._currentMarker||"new"!==this._currentMarker.state&&"creating"!==this._currentMarker.state){if("select"===this.mode){var e=this.markers.find((function(e){return e.ownsTarget(t.target)}));void 0!==e?(this.setCurrentMarker(e),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(t.clientX,t.clientY),t.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:t.clientX,y:t.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(t.clientX,t.clientY))},t.prototype.onDblClick=function(t){if(this._isFocused||this.focus(),"select"===this.mode){var e=this.markers.find((function(e){return e.ownsTarget(t.target)}));void 0!==e&&e!==this._currentMarker&&this.setCurrentMarker(e),void 0!==this._currentMarker?this._currentMarker.dblClick(this.clientToLocalCoordinates(t.clientX,t.clientY),t.target):this.setCurrentMarker()}},t.prototype.onPointerMove=function(t){1!==this.touchPoints&&"touch"===t.pointerType||(void 0!==this._currentMarker||this.isDragging)&&(void 0!==this._currentMarker&&"edit"===this._currentMarker.state||t.preventDefault(),void 0!==this._currentMarker?this._currentMarker.manipulate(this.clientToLocalCoordinates(t.clientX,t.clientY)):this.zoomLevel>1&&this.panTo({x:t.clientX,y:t.clientY}))},t.prototype.onPointerUp=function(t){this.touchPoints>0&&this.touchPoints--,0===this.touchPoints&&this.isDragging&&void 0!==this._currentMarker&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(t.clientX,t.clientY)),this.isDragging=!1,this.addUndoStep()},t.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},t.prototype.onKeyUp=function(t){void 0===this._currentMarker||void 0!==this.notesArea||"Delete"!==t.key&&"Backspace"!==t.key||this.deleteSelectedMarker()},t.prototype.clientToLocalCoordinates=function(t,e){var i=this.markerImage.getBoundingClientRect();return{x:(t-i.left)/this.zoomLevel,y:(e-i.top)/this.zoomLevel}},t.prototype.onWindowResize=function(){this.positionUI()},t.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var t=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=t+"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()},t.prototype.addLicenseKey=function(t){Q.addKey(t)},t.prototype.addEventListener=function(t,e){this.eventListeners.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventListeners.removeEventListener(t,e)},t.prototype.renderState=function(t){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(t),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),t.prototype.focus=function(){var t=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,void 0!==this._previousCurrentMarker&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach((function(e){return e(new Mt(t))})))},t.prototype.blur=function(){var t=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach((function(e){return e(new Mt(t))})))},t.instanceCounter=0,t}(),Bt=function(t,e){return(Bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};
|
|
|
/* **********************************
|
|
|
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.
|
|
|
***************************************************************************** */function Dt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Bt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function Lt(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))}function jt(t,e){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var Pt=function(){function t(){}return t.addKey=function(e){t.key=e},Object.defineProperty(t,"isLicensed",{get:function(){return!!t.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(t.key)},enumerable:!1,configurable:!0}),t}(),zt=function(){function t(){}return t.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},t.setAttributes=function(t,e){for(var i=0,n=e;i<n.length;i++){var r=n[i],o=r[0],a=r[1];t.setAttribute(o,a)}},t.createRect=function(e,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","rect");return r.setAttribute("width",e.toString()),r.setAttribute("height",i.toString()),n&&t.setAttributes(r,n),r},t.createLine=function(e,i,n,r,o){var a=document.createElementNS("http://www.w3.org/2000/svg","line");return a.setAttribute("x1",e.toString()),a.setAttribute("y1",i.toString()),a.setAttribute("x2",n.toString()),a.setAttribute("y2",r.toString()),o&&t.setAttributes(a,o),a},t.createPolygon=function(e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","polygon");return n.setAttribute("points",e),i&&t.setAttributes(n,i),n},t.createCircle=function(e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","circle");return n.setAttribute("cx",(e/2).toString()),n.setAttribute("cy",(e/2).toString()),n.setAttribute("r",e.toString()),i&&t.setAttributes(n,i),n},t.createEllipse=function(e,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return r.setAttribute("cx",(e/2).toString()),r.setAttribute("cy",(i/2).toString()),r.setAttribute("rx",(e/2).toString()),r.setAttribute("ry",(i/2).toString()),n&&t.setAttributes(r,n),r},t.createGroup=function(e){var i=document.createElementNS("http://www.w3.org/2000/svg","g");return e&&t.setAttributes(i,e),i},t.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},t.createMarker=function(e,i,n,r,o,a,s){var l=document.createElementNS("http://www.w3.org/2000/svg","marker");return t.setAttributes(l,[["id",e],["orient",i],["markerWidth",n.toString()],["markerHeight",r.toString()],["refX",o.toString()],["refY",a.toString()]]),l.appendChild(s),l},t.createText=function(e){var i=document.createElementNS("http://www.w3.org/2000/svg","text");return i.setAttribute("x","0"),i.setAttribute("y","0"),e&&t.setAttributes(i,e),i},t.createTSpan=function(e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","tspan");return n.textContent=e,i&&t.setAttributes(n,i),n},t.createImage=function(e){var i=document.createElementNS("http://www.w3.org/2000/svg","image");return e&&t.setAttributes(i,e),i},t.createPoint=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return i.x=t,i.y=e,i},t.createPath=function(e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",e),i&&t.setAttributes(n,i),n},t.createElement=function(e,i){var n=document.createElementNS("http://www.w3.org/2000/svg",e);return i&&t.setAttributes(n,i),n},t.getHollowRectanglePath=function(t,e,i,n,r,o,a,s){return"M"+t+","+e+"V"+(e+n)+"H"+(t+i)+"V"+e+"H"+r+"V"+o+"H"+(r+a)+"V"+(o+s)+"H"+r+"V"+e+"Z"},t}(),Ft=function(){function t(t){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+t+"_"}return Object.defineProperty(t.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(t.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(t.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),t.prototype.addClass=function(t){return void 0===this.styleSheet&&this.addStyleSheet(),t.name=""+this.classNamePrefix+t.localName,this.classes.push(t),this.styleSheet.sheet.insertRule("."+t.name+" {"+t.style+"}",this.styleSheet.sheet.cssRules.length),t},t.prototype.addRule=function(t){void 0===this.styleSheet&&this.addStyleSheet(),this.rules.push(t),this.styleSheet.sheet.insertRule(t.selector+" {"+t.style+"}",this.styleSheet.sheet.cssRules.length)},t.prototype.addStyleSheet=function(){var t;this.styleSheet=document.createElement("style"),(null!==(t=this.styleSheetRoot)&&void 0!==t?t:document.head).appendChild(this.styleSheet),this.addRule(new Wt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Wt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames","\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n ")),this.addRule(new Wt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames","\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n ")),this.addClass(new Vt("_fade_in","\n animation-duration: 0.3s;\n animation-name: "+this.classNamePrefix+"_fade_in_animation_frames;\n ")),this.addClass(new Vt("_fade_out","\n animation-duration: 0.3s;\n animation-name: "+this.classNamePrefix+"_fade_out_animation_frames;\n "))},t.prototype.removeStyleSheet=function(){var t;this.styleSheet&&((null!==(t=this.styleSheetRoot)&&void 0!==t?t:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},t}(),Wt=function(t,e){this.selector=t,this.style=e},Vt=function(t,e){this.localName=t,this.style=e},Ht=function(){function t(){this.blocks=[],this.display=""}return t.prototype.addButtonBlock=function(t){t.className=this.blockClassName,t.buttonClassName=this.buttonClassName,t.buttonColorsClassName=this.buttonColorsClassName,t.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(t)},t.prototype.addElementBlock=function(t){void 0===t.className&&(t.className=this.blockClassName),this.blocks.push(t)},t.prototype.getUI=function(){var t=document.createElement("div");return t.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,t.style.display=this.display,this.blocks.forEach((function(e){return t.appendChild(e.getUI())})),t},t}(),Gt=function(){function t(){}return t.prototype.getUI=function(){var t=document.createElement("div");if(t.className=this.className,void 0!==this.minWidth&&(t.style.minWidth=this.minWidth),void 0!==this.contentAlign)switch(this.contentAlign){case"start":t.style.justifyContent="flex-start";break;case"center":t.style.justifyContent="center";break;case"end":t.style.justifyContent="flex-end"}return t.style.whiteSpace="nowrap",t},t}(),Ut=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttons=[],e}return Dt(e,t),e.prototype.addButton=function(t){t.className=this.buttonClassName,t.colorsClassName=this.buttonColorsClassName,t.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(t)},e.prototype.getUI=function(){var e=t.prototype.getUI.call(this);return this.buttons.forEach((function(t){return e.appendChild(t.getUI())})),e},e}(Gt),Qt=function(){function t(t,e){this._isActive=!1,this._isHidden=!1,this._icon=t,this.title=e,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(t){this._icon=t,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},set:function(t){this._isActive=t,this.adjustClassName()},enumerable:!1,configurable:!0}),t.prototype.getUI=function(){var t=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 t.onClick()})),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},t.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,"")))},t.prototype.hide=function(){this._isHidden=!0},t}(),Jt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.elements=[],e}return Dt(e,t),e.prototype.addElement=function(t){this.elements.push(t)},e.prototype.getUI=function(){var e=t.prototype.getUI.call(this);return this.elements.forEach((function(t){return e.appendChild(t)})),e},e}(Gt),Kt=function(){function t(t,e){this.horizontal=t,this.vertical=e}return Object.defineProperty(t.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),t.prototype.getVerticalLength=function(t){return t/this.ratio},t.prototype.getHorizontalLength=function(t){return t*this.ratio},t}(),Zt=function(){function t(){}return t.getIcon=function(t,e){if(t>0&&e>0){var i=new Kt(t,e),n=i.ratio>=1?20:i.getHorizontalLength(20),r=i.ratio<1?20:i.getVerticalLength(20),o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(o);var a=zt.createDefs();o.appendChild(a);var s=zt.createElement("clipPath",[["id","text-bg-clip"]]);a.appendChild(s);var l=zt.createPath(zt.getHollowRectanglePath((24-n)/2,(24-r)/2,n,r,(24-n)/2+2,(24-r)/2+2,n-4,r-4));o.appendChild(l);var c=zt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);c.appendChild(zt.createTSpan(t+":"+e)),o.appendChild(c);var u=c.getBBox();zt.setAttributes(c,[["x",((24-u.width)/2).toString()],["y",((24-u.height)/2-u.y).toString()]]);var h=zt.createPath(zt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(u.width))/2,(24-Math.ceil(u.height))/2,Math.ceil(u.width),Math.ceil(u.height)));return s.appendChild(h),zt.setAttributes(l,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(o),o.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>'},t}(),Yt=function(t){function e(e,i,n){var r=t.call(this,e,i)||this;return r.isDropdownOpen=!1,r.onClick=r.dropdownButtonClicked,r.dropdownButtons=n,r}return Dt(e,t),e.prototype.setupDropdown=function(){var t=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach((function(e){e.className=t.className,e.colorsClassName=t.colorsClassName,t.dropdownBlock.appendChild(e.getUI())})),this.uiContainer.appendChild(this.dropdownBlock)},e.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},e.prototype.dropdownButtonClicked=function(){void 0===this.dropdownBlock&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},e.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},e.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},e.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},e}(Qt),qt=function(){function t(t,e){this.GRIP_SIZE=10,this.color=t,this.fillColor=e,this.visual=zt.createGroup(),this.visual.appendChild(zt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(zt.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return t.prototype.ownsTarget=function(t){return t===this.visual||t===this.visual.childNodes[0]||t===this.visual.childNodes[1]},t.prototype.setCenter=function(t,e){this.visual.childNodes.forEach((function(i){return zt.setAttributes(i,[["cx",t.toString()],["cy",e.toString()]])}))},t}(),Xt=function(){function t(t,e,i,n){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=t,this.canvasHeight=e,this.margin=i,this.container=n,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(t.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(t){this._aspectRatio=t,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(t){this._isGridVisible=t,this.gridContainer&&zt.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(t){this._zoomFactor=t,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),t.prototype.open=function(){var t=this;this.cropShadeElement=zt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=zt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var e=0;e<this.numberOfGridLines;e++)this.horizontalGridLines.push(zt.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(zt.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach((function(e){return t.gridContainer.appendChild(e)})),this.verticalGridLines.forEach((function(e){return t.gridContainer.appendChild(e)})),this.cropRectElement=zt.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new qt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new qt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new qt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new qt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},t.prototype.setCropRectangle=function(t){this.cropRect=t;var e=Object.assign({},this.cropRect);1!==this.zoomFactor&&(e.width=this.cropRect.width*this.zoomFactor,e.height=this.cropRect.height*this.zoomFactor,e.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-e.width/2,e.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-e.height/2),zt.setAttributes(this.cropRectElement,[["x",e.x.toString()],["y",e.y.toString()],["width",e.width.toString()],["height",e.height.toString()]]);var i=e.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach((function(t,n){var r=e.y+i*(n+1);zt.setAttributes(t,[["x1",""+e.x],["y1",""+r],["x2",""+(e.x+e.width)],["y2",""+r]])}));var n=e.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach((function(t,i){var r=e.x+n*(i+1);zt.setAttributes(t,[["x1",""+r],["y1",""+e.y],["x2",""+r],["y2",""+(e.y+e.height)]])})),zt.setAttributes(this.cropShadeElement,[["d",zt.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,e.x,e.y,e.width,e.height)]]),this.topLeftGrip.setCenter(e.x,e.y),this.topRightGrip.setCenter(e.x+e.width,e.y),this.bottomLeftGrip.setCenter(e.x,e.y+e.height),this.bottomRightGrip.setCenter(e.x+e.width,e.y+e.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},t.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)},t.prototype.clientToLocalCoordinates=function(t,e){var i=this.container.getBoundingClientRect();return{x:t-i.left+this.margin,y:e-i.top+this.margin}},t.prototype.onPointerDown=function(t){this.container.setPointerCapture(t.pointerId),this.previousPoint=this.clientToLocalCoordinates(t.clientX,t.clientY),this.cropRectElement===t.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(t.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(t.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(t.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(t.target)&&(this.activeGrip=this.bottomRightGrip)},t.prototype.onPointerMove=function(t){if(this.isMoving)this.move(this.clientToLocalCoordinates(t.clientX,t.clientY));else if(this.activeGrip){var e=this.clientToLocalCoordinates(t.clientX,t.clientY);this.resize(e)}t.preventDefault()},t.prototype.onPointerUp=function(t){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(t.pointerId)},t.prototype.move=function(t){var e=t.x-this.previousPoint.x,i=t.y-this.previousPoint.y;1!==this.zoomFactor&&(e=-e/this.zoomFactor,i=-i/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+e),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+i),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=t},t.prototype.resize=function(t){var e=Object.assign({},this.cropRect),i=t.x-this.previousPoint.x,n=t.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:e.x+i<this.margin&&(i=this.margin-e.x),e.x+=i,e.width=this.cropRect.x+this.cropRect.width-e.x;break;case this.bottomRightGrip:case this.topRightGrip:e.width+i>this.canvasWidth*this.zoomFactor&&(i=this.canvasWidth*this.zoomFactor-e.width),e.width+=i}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(e.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(i),e.height=this.aspectRatio.getVerticalLength(e.width)):(e.y+=n,e.height=this.cropRect.y+this.cropRect.height-e.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?e.height=this.aspectRatio.getVerticalLength(e.width):e.height+=n}e.width<10&&(e.x=this.cropRect.x,e.width=10),e.height<10&&(e.y=this.cropRect.y,e.height=10),this.previousPoint=t,e.x>=this.margin&&e.y>=this.margin&&e.x-this.margin+e.width<=this.canvasWidth&&e.y-this.margin+e.height<=this.canvasHeight&&(this.cropRect=e,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},t.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var t=this.cropRect.x+this.cropRect.width/2,e=this.cropRect.y+this.cropRect.height/2,i=this.aspectRatio.getHorizontalLength(this.cropRect.height),n=this.aspectRatio.getVerticalLength(this.cropRect.width);i/this.canvasWidth<n/this.canvasHeight?this.cropRect.width=i:this.cropRect.height=n,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=t-this.cropRect.width/2,this.cropRect.y=e-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)}},t.prototype.getRescaledRect=function(t,e,i,n,r,o){var a=i/t,s=n/e;return{x:(r.x-o)*a+o,y:(r.y-o)*s+o,width:r.width*a,height:r.height*s}},t.prototype.scaleCanvas=function(t,e){var i=this.getRescaledRect(this.canvasWidth,this.canvasHeight,t,e,this.cropRect,this.margin);this.canvasWidth=t,this.canvasHeight=e,this.onCropChange&&this.onCropChange(i),this.setCropRectangle(i)},t}(),_t=function(){function t(t){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=t,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(t.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),t.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},t.prototype.onPointerDown=function(t){this.controlContainer.setPointerCapture(t.pointerId),this.isDragging=!0,this.previousPoint={x:t.clientX,y:t.clientY}},t.prototype.onPointerMove=function(t){this.isDragging&&(this.onAngleChange&&this.onAngleChange((t.clientX-this.previousPoint.x)/5),this.previousPoint.x=t.clientX)},t.prototype.onPointerUp=function(t){this.isDragging&&this.onAngleChange&&this.onAngleChange((t.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(t.pointerId)},t.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var t=this.angleLabelText.getBBox();zt.setAttributes(this.angleLabelElement,[["x",((this.width-t.width)/2).toString()],["y",(this.height/2).toString()]])}},t.prototype.positionScaleShape=function(){if(this.scaleShape){var t=this.scaleShape.transform.baseVal.getItem(0);t.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(t,0)}},t.prototype.getVisual=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("width",this.width+"px"),t.setAttribute("height",this.height+"px"),t.setAttribute("viewBox","0 0 "+this.width+" "+this.height),t.style.flexShrink="0",document.body.appendChild(t);for(var e="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,i=1;i<=this.width/5+10;i++){var n=i%5==0?this.height/3:this.height/6;e+="h4v"+-n+"h1v"+n}e+="v1H0Z",this.scaleShape=zt.createPath(e);var r=zt.createTransform();this.scaleShape.transform.baseVal.appendItem(r),t.appendChild(this.scaleShape),this.angleLabelElement=zt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=zt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var o=zt.createTSpan("");return o.innerHTML="°",this.angleLabelElement.appendChild(o),t.appendChild(this.angleLabelElement),document.body.removeChild(t),t},t}(),$t=function(){function t(){this.naturalSize=!1,this.imageType="image/png"}return t.prototype.rasterize=function(t,e,i,n,r,o,a){var s=this;return new Promise((function(l){var c=document.createElement("canvas");c.width=t.width.baseVal.value-2*n,c.height=t.height.baseVal.value-2*n;var u=1,h=1;!0===s.naturalSize?(u=e.naturalWidth/(t.width.baseVal.value-2*n)/o,h=e.naturalHeight/(t.height.baseVal.value-2*n)/a,c.width=e.naturalWidth/o,c.height=e.naturalHeight/a):void 0!==s.width&&void 0!==s.height&&(u=s.width/i.width,h=s.height/i.height,c.width*=u,c.height*=h);var p=c.getContext("2d");p.translate(c.width/2,c.height/2),p.rotate(r*Math.PI/180),p.scale(o,a),p.translate(-c.width/2,-c.height/2),p.drawImage(e,0,0,c.width,c.height);var d=document.createElement("canvas");d.width=i.width*u,d.height=i.height*h,d.getContext("2d").putImageData(p.getImageData((i.x-n)*u,(i.y-n)*h,i.width*u,i.height*h),0,0),l(d.toDataURL(s.imageType,s.imageQuality))}))},t}(),te=function(){function t(e){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=t.instanceCounter++,this.styles=new Ft(this.instanceNo),this.target=e,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(t.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(t){this._zoomToCropEnabled=t,t?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(t){this._isGridVisible=t,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gridLines",{get:function(){return this._gridLines},set:function(t){this._gridLines=t,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(t){this._rotationAngle=t,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"aspectRatio",{get:function(){var t;return null!==(t=this._aspectRatio)&&void 0!==t?t:this.aspectRatios[0]},set:function(t){this._aspectRatio=t},enumerable:!1,configurable:!0}),t.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(),"popup"===this.displayMode&&this.onPopupResize(),this._isOpen=!0},t.prototype.show=function(){this.showUI(),this.open()},t.prototype.close=function(t){void 0===t&&(t=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),"popup"===this.displayMode&&window.removeEventListener("resize",this.setWindowHeight),t||this.closeEventListeners.forEach((function(t){return t()})),this._isOpen=!1)},t.prototype.addRenderEventListener=function(t){this.renderEventListeners.push(t)},t.prototype.removeRenderEventListener=function(t){this.renderEventListeners.indexOf(t)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(t),1)},t.prototype.addCloseEventListener=function(t){this.closeEventListeners.push(t)},t.prototype.removeCloseEventListener=function(t){this.closeEventListeners.indexOf(t)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(t),1)},t.prototype.setupResizeObserver=function(){var t=this;"inline"===this.displayMode?window.ResizeObserver&&(this.targetObserver=new ResizeObserver((function(){t.resize(t.target.clientWidth,t.target.clientHeight)})),this.targetObserver.observe(this.target)):"popup"===this.displayMode&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},t.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var t=1*this.target.clientWidth/this.target.clientHeight,e=this.contentDiv.clientWidth/t>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*t:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,i=e+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/t;this.resize(e,i)}},t.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},t.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",zt.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},t.prototype.resize=function(t,e){this.imageWidth=Math.round(t),this.imageHeight=Math.round(e),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","popup"!==this.displayMode?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},t.prototype.setEditingTarget=function(){var t=document.createElement("canvas");t.width=this.target.naturalWidth,t.height=this.target.naturalHeight,t.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var e=t.toDataURL();zt.setAttributes(this.editingTarget,[["href",e]]),this.setEditingTargetSize()},t.prototype.setTopLeft=function(){var t=this.target.getBoundingClientRect(),e=this.editorCanvas.getBoundingClientRect();this.left=t.left-e.left-this.CANVAS_MARGIN,this.top=t.top-e.top-this.CANVAS_MARGIN},t.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=zt.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=zt.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=zt.createGroup(),this.editingTargetRotationScaleContainer=zt.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var t=zt.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(t);var e=zt.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(e),this.editingTargetContainer=zt.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)},t.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},t.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=zt.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new Xt(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()},t.prototype.zoomToCrop=function(){if(this.cropRect){var t=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,e=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=t+"px "+e+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-t+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-e+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},t.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)},t.prototype.cropRectChanged=function(t){this.cropRect=t,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},t.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},t.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"},t.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},t.prototype.showUI=function(){switch(this.addStyles(),"popup"===this.displayMode&&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 t=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,e=this.target.offsetTop>t+this.CANVAS_MARGIN?this.target.offsetTop-(t+this.CANVAS_MARGIN):0;this.coverDiv.style.top=e+"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=void 0!==this.styles.settings.zIndex?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=void 0!==this.styles.settings.zIndex?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="popup"===this.displayMode?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,"popup"===this.displayMode&&(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","popup"===this.displayMode&&(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},t.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},t.prototype.addTopToolbar=function(){var t=this;this.topToolbar=new Ht,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 e=new Ut;e.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(e);var i=[];this.aspectRatios.forEach((function(e){var n=new Qt(Zt.getIcon(e.horizontal,e.vertical),0===e.horizontal&&0===e.vertical?"FREE":e.horizontal+":"+e.vertical);n.onClick=function(){return t.ratioButtonClicked(e)},i.push(n)})),this.aspectRatioButton=new Yt(Zt.getIcon(0,0),"Aspect ratio",i),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,e.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var n=new Qt('<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");n.isActive=this.isGridVisible,n.onClick=function(){t.isGridVisible=!t.isGridVisible,n.isActive=t.isGridVisible},e.addButton(n);var r=new Qt('<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(r.isActive=this.zoomToCropEnabled,r.onClick=function(){t.zoomToCropEnabled=!t.zoomToCropEnabled,r.isActive=t.zoomToCropEnabled},e.addButton(r),!Pt.isLicensed){var o=new Jt;this.topToolbar.addElementBlock(o);var a=document.createElement("div");a.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var s=document.createElement("a");s.style.color="currentColor",s.href="https://markerjs.com/products/cropro",s.target="_blank",s.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>',a.appendChild(s),o.addElement(a)}var l=new Ut;l.minWidth=3*this.toolbarHeight+"px",l.contentAlign="end",this.topToolbar.addButtonBlock(l);var c=new Qt('<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");c.onClick=this.startRenderAndClose,l.addButton(c),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(c.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var u=new Qt('<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");u.onClick=this.close,l.addButton(u),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(u.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},t.prototype.addBottomToolbar=function(){var t=this;this.bottomToolbar=new Ht,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 e=new Ut;e.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(e);var i=new Qt('<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");i.onClick=this.rotateLeftButtonClicked,e.addButton(i);var n=new Qt('<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");n.onClick=this.rotateRightButtonClicked,e.addButton(n);var r=new Jt;r.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(r),this.straightener=new _t("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(e){t.rotateBy(e),t.straightener.angle=t.rotationAngle},r.addElement(this.straightener.getUI());var o=new Ut;o.minWidth=2*this.toolbarHeight+"px",o.contentAlign="end",this.bottomToolbar.addButtonBlock(o);var a=new Qt('<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");a.onClick=this.flipHorizontallyButtonClicked,o.addButton(a);var s=new Qt('<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");s.onClick=this.flipVerticallyButtonClicked,o.addButton(s)},t.prototype.ratioButtonClicked=function(t){this.aspectRatio=t,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},t.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Zt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},t.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&0!==this.aspectRatio.horizontal&&0!==this.aspectRatio.vertical?this.cropLayer.aspectRatio=new Kt(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},t.prototype.closeUI=function(){"popup"===this.displayMode&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},t.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},t.prototype.restoreState=function(t){if(t){var e=this.cropLayer.getRescaledRect(t.width,t.height,this.imageWidth,this.imageHeight,t.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(e),this.cropRectChanged(e),this.flippedHorizontally=t.flippedHorizontally,this.flippedVertically=t.flippedVertically,this.applyFlip(),this.rotationAngle=t.rotationAngle,this.applyRotation()}},t.prototype.clientToLocalCoordinates=function(t,e){var i=this.cropImage.getBoundingClientRect();return{x:t-i.left,y:e-i.top}},t.prototype.onWindowResize=function(){this.positionUI()},t.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var t=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=t+"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()},t.prototype.rotateLeftButtonClicked=function(){var t=this.rotationAngle-90;this.rotationAngle%90!=0&&(t+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(t)},t.prototype.rotateRightButtonClicked=function(){var t=this.rotationAngle+90;this.rotationAngle%90!=0&&(t-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(t)},t.prototype.rotateTo=function(t){t=(t=t>180?t-360:t)<=-180?t+360:t,this.rotationAngle=t,this.applyRotation()},t.prototype.rotateBy=function(t){this.rotateTo((this.rotationAngle+t)%360)},t.prototype.applyRotation=function(){var t=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var e=this.editingTargetRotationContainer.transform.baseVal.getItem(0);e.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(e,0);var i=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/i.width,this.imageHeight/i.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=t},t.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},t.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},t.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},t.prototype.startRenderAndClose=function(){return Lt(this,void 0,void 0,(function(){var t,e;return jt(this,(function(i){switch(i.label){case 0:return[4,this.render()];case 1:return t=i.sent(),e=this.getState(),this.renderEventListeners.forEach((function(i){return i(t,e)})),this.close(!0),[2]}}))}))},t.prototype.render=function(){return Lt(this,void 0,void 0,(function(){var t;return jt(this,(function(e){switch(e.label){case 0:return(t=new $t).naturalSize=this.renderAtNaturalSize,t.imageType=this.renderImageType,t.imageQuality=this.renderImageQuality,t.width=this.renderWidth,t.height=this.renderHeight,this.unzoomFromCrop(),zt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,t.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 e.sent(),[4,t.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,e.sent()]}}))}))},t.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Vt("toolbar","\n width: "+("inline"===this.displayMode?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+";\n flex-shrink: 0;\n display: flex;\n flex-direction: row;\n justify-content: space-between; \n height: "+this.toolbarHeight+"px;\n box-sizing: content-box;\n overflow: hidden;\n line-height: 0px;\n ")),this.toolbarStyleColorsClass=this.styles.addClass(new Vt("toolbar_colors","\n background-color: "+this.styles.settings.toolbarBackgroundColor+";\n ")),this.toolbarBlockStyleClass=this.styles.addClass(new Vt("toolbar-block","\n display: flex;\n align-items: center;\n box-sizing: content-box;\n "));var t=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Vt("toolbar_button","\n display: inline-block;\n width: "+(this.toolbarHeight-2*t)+"px;\n height: "+(this.toolbarHeight-2*t)+"px;\n padding: "+t+"px;\n cursor: default;\n user-select: none;\n box-sizing: content-box;\n ")),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Vt("toolbar_button_colors","\n color: "+this.styles.settings.toolbarColor+";\n fill: currentColor;\n ")),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Vt("toolbar_active_button","\n color: "+this.styles.settings.toolbarColor+";\n fill: currentColor;\n background-color: "+this.styles.settings.toolbarBackgroundActiveColor+"\n ")),this.styles.addRule(new Wt("."+this.toolbarButtonStyleClass.name+" svg","\n height: "+this.toolbarHeight/2+"px;\n ")),this.styles.addRule(new Wt("."+this.toolbarButtonStyleColorsClass.name+":hover","\n background-color: "+this.styles.settings.toolbarBackgroundHoverColor+"\n ")),this.toolbarDropdownStyleClass=this.styles.addClass(new Vt("toolbar_dropdown","\n position: absolute;\n max-width: "+4*this.toolbarHeight+"px;\n z-index: 20;\n white-space: normal;\n box-sizing: content-box;\n box-shadow: 3px 3px rgba(33, 33, 33, 0.1);\n margin: "+("inline"===this.displayMode?"0":this.popupMargin)+"px;\n line-height: 0px;\n ")),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new Vt("toolbar_dropdown_colors","\n background-color: "+this.styles.settings.toolbarBackgroundColor+";\n ")),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new Vt("toolbar_straightener_block","\n display: flex;\n overflow: hidden;\n justify-content: center;\n -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%);\n ")),this.toolbarStraightenerStyleClass=this.styles.addClass(new Vt("toolbar_straightener","\n display: flex;\n overflow: hidden;\n justify-content: center;\n height: "+(this.toolbarHeight-2*t)+"px;\n padding: "+t+"px;\n cursor: default;\n user-select: none;\n box-sizing: content-box;\n ")),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new Vt("toolbar_straightener_colors","\n color: "+this.styles.settings.toolbarColor+";\n fill: currentColor;\n "))},t.instanceCounter=0,t}(),ee=i("8hTe"),ie=i.n(ee),ne=/<pre[^>]*>/g;e.a=function(t){var e=t.value,i=void 0===e?"":e,l=t.edit,p=void 0!==l&&l,d=t.className,f=t.showTextOnly,m=t.showLines,g=t.replaces,v=t.zoomImg,y=t.hasMask,k=t.style,w=void 0===k?{}:k,S=t.stylesPrev,A=void 0===S?{}:S,M=String(i),I=Object(u.useRef)(),T=Object(u.useRef)(),N=Object(u.useState)(""),B=Object(s.a)(N,2),F=B[0],W=B[1],V=Object(u.useState)("office"),H=Object(s.a)(V,2),G=H[0],U=H[1],Q=Object(u.useMemo)((function(){try{M=(M=M.replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,"("+L.a.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+L.a.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+L.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,"\n")).replace(new RegExp("(?<!\\n)\\n(?!\\n)","g")," \n")}catch(t){}var t=R(M),e=E;if(M.match(/\[TOC\]/)&&(t=t.replace("<p>[TOC]</p>",x()),b()),t=(t=t.replace(/(__special_katext_id_\d+__)/g,(function(t,i){var n=e[i],r=n.type,o=n.expression;return Object(j.renderToString)(function(t){var e=document.createElement("div");return e.innerHTML=t,0===e.childNodes.length?"":e.childNodes[0].nodeValue}(o)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})}))).replace(/▁/g,"▁▁▁"),O(),f){var i=document.createElement("div");return i.innerHTML=t,i.innerText}return setTimeout((function(){return Z()}),500),t}),[M]),J=Object(u.useRef)();function K(t){var e=t.target;if("IMG"===e.tagName.toUpperCase()){if(v){var i=e.getAttribute("src");W(i),U("image")}}else if("A"===e.tagName.toUpperCase()){var n=e.getAttribute("href");if(n.indexOf("office")>-1)t.preventDefault(),W(n),U("office");else if(n.indexOf("application/pdf")>-1)t.preventDefault(),W(n),U("pdf");else if(n.indexOf("type=text")>-1)t.preventDefault(),W(n),U("html");else if(n.startsWith("#")){t.preventDefault();var r=document.getElementById(n.replace("#",""));r&&r.scrollIntoView(!0)}}}C.WebkitLineClamp=m,m&&(w=Object(o.a)(Object(o.a)({},w),C));var Z=function(){var t,e=null===(t=J.current)||void 0===t?void 0:t.querySelectorAll("video");null==e||e.forEach((function(t){if(t.oncontextmenu=function(){return!1},t.src.indexOf(".m3u8")>-1)if(t.canPlayType("application/vnd.apple.mpegurl"));else if(D.a.isSupported()){var e=new D.a;e.loadSource(t.src),e.attachMedia(t)}}))};Object(u.useEffect)((function(){if(J.current&&Q&&Q.match(ne)&&window.PR.prettyPrint(),J.current)return J.current.addEventListener("click",K),function(){J.current.removeEventListener("click",K),O(),b()}}),[Q,J.current,K]);return h.a.createElement("div",{style:{position:"relative"}},h.a.createElement("div",{ref:J,style:Object(o.a)({},w),className:"".concat(d||""," markdown-body ").concat(ie.a.mdBody),onMouseOver:function(t){p&&("IMG"===t.target.nodeName?(I.current.style.display="flex",I.current.style.width=t.target.clientWidth+"px",I.current.style.height=t.target.clientHeight+"px",I.current.style.top=t.target.offsetTop+"px",I.current.style.left=t.target.offsetLeft+"px",T.current.src=t.target.getAttribute("src")):I.current.style.display="none")},dangerouslySetInnerHTML:{__html:Q}}),h.a.createElement("div",{ref:I,className:ie.a.button},h.a.createElement(n.a,null,h.a.createElement(r.a,{onClick:function(){return(t=new te(T.current)).displayMode="popup",t.addRenderEventListener(function(){var t=Object(a.a)(c.a.mark((function t(e){var i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return I.current.style.display="none",t.next=3,Object(z.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:e}});case 3:null!=(i=t.sent)&&i.id&&g(T.current.getAttribute("src").replace(L.a.API_SERVER,""),"/api/attachments/".concat(null==i?void 0:i.id,"?type=").concat(i.content_type));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),void t.show();var t}},"裁剪"),h.a.createElement(r.a,{onClick:function(){return(t=new Rt(T.current)).settings.displayMode="popup",t.addEventListener("render",function(){var t=Object(a.a)(c.a.mark((function t(e){var i;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(I.current.style.display="none",!T.current){t.next=6;break}return t.next=4,Object(z.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:e.dataUrl}});case 4:null!=(i=t.sent)&&i.id&&g(T.current.getAttribute("src").replace(L.a.API_SERVER,""),"/api/attachments/".concat(null==i?void 0:i.id,"?type=").concat(i.content_type));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t.show(),void(window.markerArea=t);var t}},"编辑"))),h.a.createElement("img",{ref:T,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),h.a.createElement(P.a,{close:!0,data:F,hasMask:y,type:null!=F&&F.length?G:"",style:Object(o.a)({},A),onClose:function(){return W("")}}))}},"9VGf":
|
|
|
/*!****************************************!*\
|
|
|
!*** ./src/components/useInterval.tsx ***!
|
|
|
\****************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(/*! react */"q1tI");function r(t,e){var i=Object(n.useRef)();Object(n.useEffect)((function(){i.current=t})),Object(n.useEffect)((function(){if(null!==e){var t=setInterval((function(){i.current()}),e);return function(){return clearInterval(t)}}}),[e])}},"9ZNV":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./src/components/FixedButton/index.tsx ***!
|
|
|
\**********************************************/
|
|
|
/*! exports provided: FixedButton */
|
|
|
/*! exports used: FixedButton */function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/extends */"0Owb"),r=(i(/*! antd/es/button/style */"+L6B"),i(/*! antd/es/button */"2/Rp")),o=i(/*! react */"q1tI"),a=i.n(o),s=i(/*! ./index.less?modules */"UUDw"),l=i.n(s),c=i(/*! classnames */"TSYQ"),u=i.n(c),h=function(t){var e=t.cancelText,i=void 0===e?"取消":e,o=t.okText,s=void 0===o?"确定":o,c=t.loading,h=void 0!==c&&c,p=t.hasOkBtn,d=void 0===p||p,f=t.okButtonProps,m=void 0===f?{}:f,g=t.onCancel,v=void 0===g?function(){}:g,y=t.onOk,b=void 0===y?function(){}:y,C=t.className,x=void 0===C?"":C;return a.a.createElement("div",{className:u()(l.a.buttonFixed,x)},a.a.createElement("div",{className:l.a.buttonWrap},a.a.createElement(r.a,{size:"large",className:"".concat(l.a.button," mr20"),onClick:v},i),d&&a.a.createElement(r.a,Object(n.a)({size:"large",type:"primary",className:"".concat(l.a.button," mr20"),loading:h,onClick:b},m),s)))}},"A/g1":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/icons/done1.png ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ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3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},Bd2K:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/codemirror/addon/edit/closetag.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){!function(t){t.defineOption("autoCloseTags",!1,(function(a,s,l){if(l!=t.Init&&l&&a.removeKeyMap("autoCloseTags"),s){var c={name:"autoCloseTags"};"object"==typeof s&&!1===s.whenClosing||(c["'/'"]=function(e){return function(e){return e.getOption("disableInput")?t.Pass:n(e,!0)}(e)}),"object"==typeof s&&!1===s.whenOpening||(c["'>'"]=function(n){return function(n){if(n.getOption("disableInput"))return t.Pass;for(var a=n.listSelections(),s=[],l=n.getOption("autoCloseTags"),c=0;c<a.length;c++){if(!a[c].empty())return t.Pass;var u=a[c].head,h=n.getTokenAt(u),p=t.innerMode(n.getMode(),h.state),d=p.state,f=p.mode.xmlCurrentTag&&p.mode.xmlCurrentTag(d),m=f&&f.name;if(!m)return t.Pass;var g="html"==p.mode.configuration,v="object"==typeof l&&l.dontCloseTags||g&&e,y="object"==typeof l&&l.indentTags||g&&i;h.end>u.ch&&(m=m.slice(0,m.length-h.end+u.ch));var b=m.toLowerCase();if(!m||"string"==h.type&&(h.end!=u.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||1==h.string.length)||"tag"==h.type&&f.close||h.string.indexOf("/")==u.ch-h.start-1||v&&r(v,b)>-1||o(n,p.mode.xmlCurrentContext&&p.mode.xmlCurrentContext(d)||[],m,u,!0))return t.Pass;var C="object"==typeof l&&l.emptyTags;if(C&&r(C,m)>-1)s[c]={text:"/>",newPos:t.Pos(u.line,u.ch+2)};else{var x=y&&r(y,b)>-1;s[c]={indent:x,text:">"+(x?"\n\n":"")+"</"+m+">",newPos:x?t.Pos(u.line+1,0):t.Pos(u.line,u.ch+1)}}}var k="object"==typeof l&&l.dontIndentOnAutoClose;for(c=a.length-1;c>=0;c--){var w=s[c];n.replaceRange(w.text,a[c].head,a[c].anchor,"+insert");var S=n.listSelections().slice(0);S[c]={head:w.newPos,anchor:w.newPos},n.setSelections(S),!k&&w.indent&&(n.indentLine(w.newPos.line,null,!0),n.indentLine(w.newPos.line+1,null,!0))}}(n)}),a.addKeyMap(c)}}));var e=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],i=["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 n(e,i){for(var n=e.listSelections(),r=[],a=i?"/":"</",s=e.getOption("autoCloseTags"),l="object"==typeof s&&s.dontIndentOnSlash,c=0;c<n.length;c++){if(!n[c].empty())return t.Pass;var u=n[c].head,h=e.getTokenAt(u),p=t.innerMode(e.getMode(),h.state),d=p.state;if(i&&("string"==h.type||"<"!=h.string.charAt(0)||h.start!=u.ch-1))return t.Pass;var f,m="xml"!=p.mode.name&&"htmlmixed"==e.getMode().name;if(m&&"javascript"==p.mode.name)f=a+"script";else if(m&&"css"==p.mode.name)f=a+"style";else{var g=p.mode.xmlCurrentContext&&p.mode.xmlCurrentContext(d);if(!g||g.length&&o(e,g,g[g.length-1],u))return t.Pass;f=a+g[g.length-1]}">"!=e.getLine(u.line).charAt(h.end)&&(f+=">"),r[c]=f}if(e.replaceSelections(r),n=e.listSelections(),!l)for(c=0;c<n.length;c++)(c==n.length-1||n[c].head.line<n[c+1].head.line)&&e.indentLine(n[c].head.line)}function r(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;++i)if(t[i]==e)return i;return-1}function o(e,i,n,r,o){if(!t.scanForClosingTag)return!1;var a=Math.min(e.lastLine()+1,r.line+500),s=t.scanForClosingTag(e,r,null,a);if(!s||s.tag!=n)return!1;for(var l=o?1:0,c=i.length-1;c>=0&&i[c]==n;c--)++l;for(r=s.to,c=1;c<l;c++){var u=t.scanForClosingTag(e,r,null,a);if(!u||u.tag!=n)return!1;r=u.to}return!0}t.commands.closeTag=function(t){return n(t)}}(i(/*! ../../lib/codemirror */"VrN/"),i(/*! ../fold/xml-fold */"osHv"))},BjJ7:
|
|
|
/*!*********************************!*\
|
|
|
!*** ./src/pages/tasks/util.js ***!
|
|
|
\*********************************/
|
|
|
/*! exports provided: isCompileOk, getTreeData, processTreeData, debounce, isProd, apiPref */
|
|
|
/*! exports used: apiPref, debounce, getTreeData, isCompileOk, processTreeData */function(t,e,i){"use strict";function n(t){var e=!0;if(t.length>0){for(var i=0;i<t.length;i++)if(0==t[i].compile_success||!t[i].compile_success){e=!1;break}}else e=!1;return e}function r(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[],n=0;n<t.length;n++){var r=t[n],o=e?"".concat(e,"/").concat(r.name):"".concat(r.name);i.push({title:r.name,isLeaf:"tree"!==r.type,key:o})}return i}function o(t,e,i){for(var n=0;n<t.length;n++){var r=t[n];if(r.key===e){r.children=i;break}r.children&&o(r.children,e,i)}return t}function a(t,e,i){var n;return function(){var r=this,o=arguments,a=function(){n=null,i||t.apply(r,o)},s=i&&!n;clearTimeout(n),n=setTimeout(a,e),s&&t.apply(r,o)}}i.d(e,"d",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"e",(function(){return o})),i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return s}));var s=i(/*! @/utils/env */"m3rI").a.API_SERVER},"C+DQ":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./src/components/markdown-editor/css/iconfont.css ***!
|
|
|
\*********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){},DlQD:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/marked/lib/marked.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=function(){"use strict";function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function i(t,i){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,i){if(t){if("string"==typeof t)return e(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}var n=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){function e(){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}}t.exports={defaults:{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},getDefaults:e,changeDefaults:function(e){t.exports.defaults=e}}})),r=(n.defaults,n.getDefaults,n.changeDefaults,/[&<>"']/),o=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(t){return l[t]},u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(t){return t.replace(u,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var p=/(^|[^\[])\^/g,d=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,m={},g=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(t,e){m[" "+t]||(g.test(t)?m[" "+t]=t+"/":m[" "+t]=C(t,"/",!0));var i=-1===(t=m[" "+t]).indexOf(":");return"//"===e.substring(0,2)?i?e:t.replace(v,"$1")+e:"/"===e.charAt(0)?i?e:t.replace(y,"$1")+e:t+e}function C(t,e,i){var n=t.length;if(0===n)return"";for(var r=0;r<n;){var o=t.charAt(n-r-1);if(o!==e||i){if(o===e||!i)break;r++}else r++}return t.substr(0,n-r)}var x=function(t,e){if(e){if(r.test(t))return t.replace(o,c)}else if(a.test(t))return t.replace(s,c);return t},k=h,w=function(t,e){t=t.source||t,e=e||"";var i={replace:function(e,n){return n=(n=n.source||n).replace(p,"$1"),t=t.replace(e,n),i},getRegex:function(){return new RegExp(t,e)}};return i},S=function(t,e,i){if(t){var n;try{n=decodeURIComponent(h(i)).replace(d,"").toLowerCase()}catch(t){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}e&&!f.test(i)&&(i=b(e,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(t){return null}return i},A={exec:function(){}},E=function(t){for(var e,i,n=1;n<arguments.length;n++)for(i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},O=function(t,e){var i=t.replace(/\|/g,(function(t,e,i){for(var n=!1,r=e;--r>=0&&"\\"===i[r];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i},M=C,I=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var i=t.length,n=0,r=0;r<i;r++)if("\\"===t[r])r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&--n<0)return r;return-1},T=function(t){t&&t.sanitize&&!t.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")},N=n.defaults,R=M,B=O,D=x,L=I;function j(t,e,i){var n=e.href,r=e.title?D(e.title):null,o=t[1].replace(/\\([\[\]])/g,"$1");return"!"!==t[0].charAt(0)?{type:"link",raw:i,href:n,title:r,text:o}:{type:"image",raw:i,href:n,title:r,text:D(o)}}var P=function(){function t(t){this.options=t||N}var e=t.prototype;return e.space=function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var i=this.rules.block.code.exec(t);if(i){var n=e[e.length-1];if(n&&"paragraph"===n.type)return{raw:i[0],text:i[0].trimRight()};var r=i[0].replace(/^ {4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?r:R(r,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var i=e[0],n=function(t,e){var i=t.match(/^(\s+)(?:```)/);if(null===i)return e;var n=i[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=n.length?t.slice(n.length):t})).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim():e[2],text:n}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[1].length,text:e[2]}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var i={type:"table",header:B(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(i.header.length===i.align.length){var n,r=i.align.length;for(n=0;n<r;n++)/^ *-+: *$/.test(i.align[n])?i.align[n]="right":/^ *:-+: *$/.test(i.align[n])?i.align[n]="center":/^ *:-+ *$/.test(i.align[n])?i.align[n]="left":i.align[n]=null;for(r=i.cells.length,n=0;n<r;n++)i.cells[n]=B(i.cells[n],i.header.length);return i}}},e.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},e.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var i=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],text:i}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){for(var i,n,r,o,a,s,l,c=e[0],u=e[2],h=u.length>1,p=")"===u[u.length-1],d={type:"list",raw:c,ordered:h,start:h?+u.slice(0,-1):"",loose:!1,items:[]},f=e[0].match(this.rules.block.item),m=!1,g=f.length,v=0;v<g;v++)c=i=f[v],n=i.length,~(i=i.replace(/^ *([*+-]|\d+[.)]) */,"")).indexOf("\n ")&&(n-=i.length,i=this.options.pedantic?i.replace(/^ {1,4}/gm,""):i.replace(new RegExp("^ {1,"+n+"}","gm"),"")),v!==g-1&&(r=this.rules.block.bullet.exec(f[v+1])[0],(h?1===r.length||!p&&")"===r[r.length-1]:r.length>1||this.options.smartLists&&r!==u)&&(o=f.slice(v+1).join("\n"),d.raw=d.raw.substring(0,d.raw.length-o.length),v=g-1)),a=m||/\n\n(?!\s*$)/.test(i),v!==g-1&&(m="\n"===i.charAt(i.length-1),a||(a=m)),a&&(d.loose=!0),l=void 0,(s=/^\[[ xX]\] /.test(i))&&(l=" "!==i[1],i=i.replace(/^\[[ xX]\] +/,"")),d.items.push({type:"list_item",raw:c,task:s,checked:l,loose:a,text:i});return d}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):D(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var i={type:"table",header:B(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];var n,r=i.align.length;for(n=0;n<r;n++)/^ *-+: *$/.test(i.align[n])?i.align[n]="right":/^ *:-+: *$/.test(i.align[n])?i.align[n]="center":/^ *:-+ *$/.test(i.align[n])?i.align[n]="left":i.align[n]=null;for(r=i.cells.length,n=0;n<r;n++)i.cells[n]=B(i.cells[n].replace(/^ *\| *| *\| *$/g,""),i.header.length);return i}}},e.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},e.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e)return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},e.text=function(t,e){var i=this.rules.block.text.exec(t);if(i){var n=e[e.length-1];return n&&"text"===n.type?{raw:i[0],text:i[0]}:{type:"text",raw:i[0],text:i[0]}}},e.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:D(e[1])}},e.tag=function(t,e,i){var n=this.rules.inline.tag.exec(t);if(n)return!e&&/^<a /i.test(n[0])?e=!0:e&&/^<\/a>/i.test(n[0])&&(e=!1),!i&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?i=!0:i&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(i=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:e,inRawBlock:i,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):D(n[0]):n[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var i=L(e[2],"()");if(i>-1){var n=(0===e[0].indexOf("!")?5:4)+e[1].length+i;e[2]=e[2].substring(0,i),e[0]=e[0].substring(0,n).trim(),e[3]=""}var r=e[2],o="";if(this.options.pedantic){var a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);a?(r=a[1],o=a[3]):o=""}else o=e[3]?e[3].slice(1,-1):"";return j(e,{href:(r=r.trim().replace(/^<([\s\S]*)>$/,"$1"))?r.replace(this.rules.inline._escapes,"$1"):r,title:o?o.replace(this.rules.inline._escapes,"$1"):o},e[0])}},e.reflink=function(t,e){var i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=e[n.toLowerCase()])||!n.href){var r=i[0].charAt(0);return{type:"text",raw:r,text:r}}return j(i,n,i[0])}},e.strong=function(t,e,i){void 0===i&&(i="");var n=this.rules.inline.strong.start.exec(t);if(n&&(!n[1]||n[1]&&(""===i||this.rules.inline.punctuation.exec(i)))){e=e.slice(-1*t.length);var r,o="**"===n[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(o.lastIndex=0;null!=(n=o.exec(e));)if(r=this.rules.inline.strong.middle.exec(e.slice(0,n.index+3)))return{type:"strong",raw:t.slice(0,r[0].length),text:t.slice(2,r[0].length-2)}}},e.em=function(t,e,i){void 0===i&&(i="");var n=this.rules.inline.em.start.exec(t);if(n&&(!n[1]||n[1]&&(""===i||this.rules.inline.punctuation.exec(i)))){e=e.slice(-1*t.length);var r,o="*"===n[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(o.lastIndex=0;null!=(n=o.exec(e));)if(r=this.rules.inline.em.middle.exec(e.slice(0,n.index+2)))return{type:"em",raw:t.slice(0,r[0].length),text:t.slice(1,r[0].length-1)}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var i=e[2].replace(/\n/g," "),n=/[^ ]/.test(i),r=i.startsWith(" ")&&i.endsWith(" ");return n&&r&&(i=i.substring(1,i.length-1)),i=D(i,!0),{type:"codespan",raw:e[0],text:i}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[1]}},e.autolink=function(t,e){var i,n,r=this.rules.inline.autolink.exec(t);if(r)return n="@"===r[2]?"mailto:"+(i=D(this.options.mangle?e(r[1]):r[1])):i=D(r[1]),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},e.url=function(t,e){var i;if(i=this.rules.inline.url.exec(t)){var n,r;if("@"===i[2])r="mailto:"+(n=D(this.options.mangle?e(i[0]):i[0]));else{var o;do{o=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(o!==i[0]);n=D(i[0]),r="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},e.inlineText=function(t,e,i){var n,r=this.rules.inline.text.exec(t);if(r)return n=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):D(r[0]):r[0]:D(this.options.smartypants?i(r[0]):r[0]),{type:"text",raw:r[0],text:n}},t}(),z=A,F=w,W=E,V={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:z,table:z,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};V.def=F(V.def).replace("label",V._label).replace("title",V._title).getRegex(),V.bullet=/(?:[*+-]|\d{1,9}[.)])/,V.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,V.item=F(V.item,"gm").replace(/bull/g,V.bullet).getRegex(),V.list=F(V.list).replace(/bull/g,V.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+V.def.source+")").getRegex(),V._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",V._comment=/<!--(?!-?>)[\s\S]*?-->/,V.html=F(V.html,"i").replace("comment",V._comment).replace("tag",V._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),V.paragraph=F(V._paragraph).replace("hr",V.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",V._tag).getRegex(),V.blockquote=F(V.blockquote).replace("paragraph",V.paragraph).getRegex(),V.normal=W({},V),V.gfm=W({},V.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*|$)"}),V.gfm.nptable=F(V.gfm.nptable).replace("hr",V.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",V._tag).getRegex(),V.gfm.table=F(V.gfm.table).replace("hr",V.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",V._tag).getRegex(),V.pedantic=W({},V.normal,{html:F("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",V._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:z,paragraph:F(V.normal._paragraph).replace("hr",V.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",V.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var H={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:z,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:z,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};H.punctuation=F(H.punctuation).replace(/punctuation/g,H._punctuation).getRegex(),H._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",H._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",H.em.start=F(H.em.start).replace(/punctuation/g,H._punctuation).getRegex(),H.em.middle=F(H.em.middle).replace(/punctuation/g,H._punctuation).replace(/overlapSkip/g,H._overlapSkip).getRegex(),H.em.endAst=F(H.em.endAst,"g").replace(/punctuation/g,H._punctuation).getRegex(),H.em.endUnd=F(H.em.endUnd,"g").replace(/punctuation/g,H._punctuation).getRegex(),H.strong.start=F(H.strong.start).replace(/punctuation/g,H._punctuation).getRegex(),H.strong.middle=F(H.strong.middle).replace(/punctuation/g,H._punctuation).replace(/blockSkip/g,H._blockSkip).getRegex(),H.strong.endAst=F(H.strong.endAst,"g").replace(/punctuation/g,H._punctuation).getRegex(),H.strong.endUnd=F(H.strong.endUnd,"g").replace(/punctuation/g,H._punctuation).getRegex(),H.blockSkip=F(H._blockSkip,"g").getRegex(),H.overlapSkip=F(H._overlapSkip,"g").getRegex(),H._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,H._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,H._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])?)+(?![-_])/,H.autolink=F(H.autolink).replace("scheme",H._scheme).replace("email",H._email).getRegex(),H._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,H.tag=F(H.tag).replace("comment",V._comment).replace("attribute",H._attribute).getRegex(),H._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,H._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,H._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,H.link=F(H.link).replace("label",H._label).replace("href",H._href).replace("title",H._title).getRegex(),H.reflink=F(H.reflink).replace("label",H._label).getRegex(),H.reflinkSearch=F(H.reflinkSearch,"g").replace("reflink",H.reflink).replace("nolink",H.nolink).getRegex(),H.normal=W({},H),H.pedantic=W({},H.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:F(/^!?\[(label)\]\((.*?)\)/).replace("label",H._label).getRegex(),reflink:F(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",H._label).getRegex()}),H.gfm=W({},H.normal,{escape:F(H.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),H.gfm.url=F(H.gfm.url,"i").replace("email",H.gfm._extended_email).getRegex(),H.breaks=W({},H.gfm,{br:F(H.br).replace("{2,}","*").getRegex(),text:F(H.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var G={block:V,inline:H},U=n.defaults,Q=G.block,J=G.inline;function K(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Z(t){var e,i,n="",r=t.length;for(e=0;e<r;e++)i=t.charCodeAt(e),Math.random()>.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}var Y=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||U,this.options.tokenizer=this.options.tokenizer||new P,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:Q.normal,inline:J.normal};this.options.pedantic?(e.block=Q.pedantic,e.inline=J.pedantic):this.options.gfm&&(e.block=Q.gfm,this.options.breaks?e.inline=J.breaks:e.inline=J.gfm),this.tokenizer.rules=e}e.lex=function(t,i){return new e(i).lex(t)};var i,n,r,o=e.prototype;return o.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},o.blockTokens=function(t,e,i){var n,r,o,a;for(void 0===e&&(e=[]),void 0===i&&(i=!0),t=t.replace(/^ +$/gm,"");t;)if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),n.type&&e.push(n);else if(n=this.tokenizer.code(t,e))t=t.substring(n.raw.length),n.type?e.push(n):((a=e[e.length-1]).raw+="\n"+n.raw,a.text+="\n"+n.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.nptable(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),n.tokens=this.blockTokens(n.text,[],i),e.push(n);else if(n=this.tokenizer.list(t)){for(t=t.substring(n.raw.length),o=n.items.length,r=0;r<o;r++)n.items[r].tokens=this.blockTokens(n.items[r].text,[],!1);e.push(n)}else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(i&&(n=this.tokenizer.def(t)))t=t.substring(n.raw.length),this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else if(i&&(n=this.tokenizer.paragraph(t)))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.text(t,e))t=t.substring(n.raw.length),n.type?e.push(n):((a=e[e.length-1]).raw+="\n"+n.raw,a.text+="\n"+n.text);else if(t){var s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return e},o.inline=function(t){var e,i,n,r,o,a,s=t.length;for(e=0;e<s;e++)switch((a=t[e]).type){case"paragraph":case"text":case"heading":a.tokens=[],this.inlineTokens(a.text,a.tokens);break;case"table":for(a.tokens={header:[],cells:[]},r=a.header.length,i=0;i<r;i++)a.tokens.header[i]=[],this.inlineTokens(a.header[i],a.tokens.header[i]);for(r=a.cells.length,i=0;i<r;i++)for(o=a.cells[i],a.tokens.cells[i]=[],n=0;n<o.length;n++)a.tokens.cells[i][n]=[],this.inlineTokens(o[n],a.tokens.cells[i][n]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(r=a.items.length,i=0;i<r;i++)this.inline(a.items[i].tokens)}return t},o.inlineTokens=function(t,e,i,n,r){var o;void 0===e&&(e=[]),void 0===i&&(i=!1),void 0===n&&(n=!1),void 0===r&&(r="");var a,s=t;if(this.tokens.links){var l=Object.keys(this.tokens.links);if(l.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)l.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;t;)if(o=this.tokenizer.escape(t))t=t.substring(o.raw.length),e.push(o);else if(o=this.tokenizer.tag(t,i,n))t=t.substring(o.raw.length),i=o.inLink,n=o.inRawBlock,e.push(o);else if(o=this.tokenizer.link(t))t=t.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,n)),e.push(o);else if(o=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,n)),e.push(o);else if(o=this.tokenizer.strong(t,s,r))t=t.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],i,n),e.push(o);else if(o=this.tokenizer.em(t,s,r))t=t.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],i,n),e.push(o);else if(o=this.tokenizer.codespan(t))t=t.substring(o.raw.length),e.push(o);else if(o=this.tokenizer.br(t))t=t.substring(o.raw.length),e.push(o);else if(o=this.tokenizer.del(t))t=t.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],i,n),e.push(o);else if(o=this.tokenizer.autolink(t,Z))t=t.substring(o.raw.length),e.push(o);else if(i||!(o=this.tokenizer.url(t,Z))){if(o=this.tokenizer.inlineText(t,n,K))t=t.substring(o.raw.length),r=o.raw.slice(-1),e.push(o);else if(t){var c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else t=t.substring(o.raw.length),e.push(o);return e},i=e,r=[{key:"rules",get:function(){return{block:Q,inline:J}}}],(n=null)&&t(i.prototype,n),r&&t(i,r),e}(),q=n.defaults,X=S,_=x,$=function(){function t(t){this.options=t||q}var e=t.prototype;return e.code=function(t,e,i){var n=(e||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(t,n);null!=r&&r!==t&&(i=!0,t=r)}return n?'<pre><code class="'+this.options.langPrefix+_(n,!0)+'">'+(i?t:_(t,!0))+"</code></pre>\n":"<pre><code>"+(i?t:_(t,!0))+"</code></pre>\n"},e.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},e.html=function(t){return t},e.heading=function(t,e,i,n){return this.options.headerIds?"<h"+e+' id="'+this.options.headerPrefix+n.slug(i)+'">'+t+"</h"+e+">\n":"<h"+e+">"+t+"</h"+e+">\n"},e.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},e.list=function(t,e,i){var n=e?"ol":"ul";return"<"+n+(e&&1!==i?' start="'+i+'"':"")+">\n"+t+"</"+n+">\n"},e.listitem=function(t){return"<li>"+t+"</li>\n"},e.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},e.paragraph=function(t){return"<p>"+t+"</p>\n"},e.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},e.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},e.tablecell=function(t,e){var i=e.header?"th":"td";return(e.align?"<"+i+' align="'+e.align+'">':"<"+i+">")+t+"</"+i+">\n"},e.strong=function(t){return"<strong>"+t+"</strong>"},e.em=function(t){return"<em>"+t+"</em>"},e.codespan=function(t){return"<code>"+t+"</code>"},e.br=function(){return this.options.xhtml?"<br/>":"<br>"},e.del=function(t){return"<del>"+t+"</del>"},e.link=function(t,e,i){if(null===(t=X(this.options.sanitize,this.options.baseUrl,t)))return i;var n='<a href="'+_(t)+'"';return e&&(n+=' title="'+e+'"'),n+=">"+i+"</a>"},e.image=function(t,e,i){if(null===(t=X(this.options.sanitize,this.options.baseUrl,t)))return i;var n='<img src="'+t+'" alt="'+i+'"';return e&&(n+=' title="'+e+'"'),n+=this.options.xhtml?"/>":">"},e.text=function(t){return t},t}(),tt=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,i){return""+i},e.image=function(t,e,i){return""+i},e.br=function(){return""},t}(),et=function(){function t(){this.seen={}}return t.prototype.slug=function(t){var e=t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(e)){var i=e;do{this.seen[i]++,e=i+"-"+this.seen[i]}while(this.seen.hasOwnProperty(e))}return this.seen[e]=0,e},t}(),it=n.defaults,nt=k,rt=function(){function t(t){this.options=t||it,this.options.renderer=this.options.renderer||new $,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new tt,this.slugger=new et}t.parse=function(e,i){return new t(i).parse(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var i,n,r,o,a,s,l,c,u,h,p,d,f,m,g,v,y,b,C="",x=t.length;for(i=0;i<x;i++)switch((h=t[i]).type){case"space":continue;case"hr":C+=this.renderer.hr();continue;case"heading":C+=this.renderer.heading(this.parseInline(h.tokens),h.depth,nt(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":C+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(c="",l="",o=h.header.length,n=0;n<o;n++)l+=this.renderer.tablecell(this.parseInline(h.tokens.header[n]),{header:!0,align:h.align[n]});for(c+=this.renderer.tablerow(l),u="",o=h.cells.length,n=0;n<o;n++){for(l="",a=(s=h.tokens.cells[n]).length,r=0;r<a;r++)l+=this.renderer.tablecell(this.parseInline(s[r]),{header:!1,align:h.align[r]});u+=this.renderer.tablerow(l)}C+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(h.tokens),C+=this.renderer.blockquote(u);continue;case"list":for(p=h.ordered,d=h.start,f=h.loose,o=h.items.length,u="",n=0;n<o;n++)v=(g=h.items[n]).checked,y=g.task,m="",g.task&&(b=this.renderer.checkbox(v),f?g.tokens.length>0&&"text"===g.tokens[0].type?(g.tokens[0].text=b+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=b+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(g.tokens,f),u+=this.renderer.listitem(m,y,v);C+=this.renderer.list(u,p,d);continue;case"html":C+=this.renderer.html(h.text);continue;case"paragraph":C+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(u=h.tokens?this.parseInline(h.tokens):h.text;i+1<x&&"text"===t[i+1].type;)u+="\n"+((h=t[++i]).tokens?this.parseInline(h.tokens):h.text);C+=e?this.renderer.paragraph(u):u;continue;default:var k='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw new Error(k)}return C},e.parseInline=function(t,e){e=e||this.renderer;var i,n,r="",o=t.length;for(i=0;i<o;i++)switch((n=t[i]).type){case"escape":r+=e.text(n.text);break;case"html":r+=e.html(n.text);break;case"link":r+=e.link(n.href,n.title,this.parseInline(n.tokens,e));break;case"image":r+=e.image(n.href,n.title,n.text);break;case"strong":r+=e.strong(this.parseInline(n.tokens,e));break;case"em":r+=e.em(this.parseInline(n.tokens,e));break;case"codespan":r+=e.codespan(n.text);break;case"br":r+=e.br();break;case"del":r+=e.del(this.parseInline(n.tokens,e));break;case"text":r+=e.text(n.text);break;default:var a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}return r},t}(),ot=E,at=T,st=x,lt=n.getDefaults,ct=n.changeDefaults,ut=n.defaults;function ht(t,e,i){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof e&&(i=e,e=null),e=ot({},ht.defaults,e||{}),at(e),i){var n,r=e.highlight;try{n=Y.lex(t,e)}catch(t){return i(t)}var o=function(t){var o;if(!t)try{o=rt.parse(n,e)}catch(e){t=e}return e.highlight=r,t?i(t):i(null,o)};if(!r||r.length<3)return o();if(delete e.highlight,!n.length)return o();var a=0;return ht.walkTokens(n,(function(t){"code"===t.type&&(a++,setTimeout((function(){r(t.text,t.lang,(function(e,i){if(e)return o(e);null!=i&&i!==t.text&&(t.text=i,t.escaped=!0),0==--a&&o()}))}),0))})),void(0===a&&o())}try{var s=Y.lex(t,e);return e.walkTokens&&ht.walkTokens(s,e.walkTokens),rt.parse(s,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+st(t.message+"",!0)+"</pre>";throw t}}return ht.options=ht.setOptions=function(t){return ot(ht.defaults,t),ct(ht.defaults),ht},ht.getDefaults=lt,ht.defaults=ut,ht.use=function(t){var e=ot({},t);if(t.renderer&&function(){var i=ht.defaults.renderer||new $,n=function(e){var n=i[e];i[e]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=t.renderer[e].apply(i,o);return!1===s&&(s=n.apply(i,o)),s}};for(var r in t.renderer)n(r);e.renderer=i}(),t.tokenizer&&function(){var i=ht.defaults.tokenizer||new P,n=function(e){var n=i[e];i[e]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=t.tokenizer[e].apply(i,o);return!1===s&&(s=n.apply(i,o)),s}};for(var r in t.tokenizer)n(r);e.tokenizer=i}(),t.walkTokens){var i=ht.defaults.walkTokens;e.walkTokens=function(e){t.walkTokens(e),i&&i(e)}}ht.setOptions(e)},ht.walkTokens=function(t,e){for(var n,r=i(t);!(n=r()).done;){var o=n.value;switch(e(o),o.type){case"table":for(var a,s=i(o.tokens.header);!(a=s()).done;){var l=a.value;ht.walkTokens(l,e)}for(var c,u=i(o.tokens.cells);!(c=u()).done;)for(var h,p=i(c.value);!(h=p()).done;){var d=h.value;ht.walkTokens(d,e)}break;case"list":ht.walkTokens(o.items,e);break;default:o.tokens&&ht.walkTokens(o.tokens,e)}}},ht.Parser=rt,ht.parser=rt.parse,ht.Renderer=$,ht.TextRenderer=tt,ht.Lexer=Y,ht.lexer=Y.lex,ht.Tokenizer=P,ht.Slugger=et,ht.parse=ht,ht}()},E7E6:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/search.png ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4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9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},ELLl:
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/codemirror/addon/edit/closebrackets.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){!function(t){var e={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},i=t.Pos;function n(t,i){return"pairs"==i&&"string"==typeof t?t:"object"==typeof t&&null!=t[i]?t[i]:e[i]}t.defineOption("autoCloseBrackets",!1,(function(e,i,a){a&&a!=t.Init&&(e.removeKeyMap(r),e.state.closeBrackets=null),i&&(o(n(i,"pairs")),e.state.closeBrackets=i,e.addKeyMap(r))}));var r={Backspace:function(e){var r=s(e);if(!r||e.getOption("disableInput"))return t.Pass;for(var o=n(r,"pairs"),a=e.listSelections(),c=0;c<a.length;c++){if(!a[c].empty())return t.Pass;var u=l(e,a[c].head);if(!u||o.indexOf(u)%2!=0)return t.Pass}for(c=a.length-1;c>=0;c--){var h=a[c].head;e.replaceRange("",i(h.line,h.ch-1),i(h.line,h.ch+1),"+delete")}},Enter:function(e){var i=s(e),r=i&&n(i,"explode");if(!r||e.getOption("disableInput"))return t.Pass;for(var o=e.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return t.Pass;var c=l(e,o[a].head);if(!c||r.indexOf(c)%2!=0)return t.Pass}e.operation((function(){var t=e.lineSeparator()||"\n";e.replaceSelection(t+t,null),e.execCommand("goCharLeft"),o=e.listSelections();for(var i=0;i<o.length;i++){var n=o[i].head.line;e.indentLine(n,null,!0),e.indentLine(n+1,null,!0)}}))}};function o(t){for(var e=0;e<t.length;e++){var i=t.charAt(e),n="'"+i+"'";r[n]||(r[n]=a(i))}}function a(e){return function(r){return function(e,r){var o=s(e);if(!o||e.getOption("disableInput"))return t.Pass;var a=n(o,"pairs"),l=a.indexOf(r);if(-1==l)return t.Pass;for(var u,h=n(o,"closeBefore"),p=n(o,"triples"),d=a.charAt(l+1)==r,f=e.listSelections(),m=l%2==0,g=0;g<f.length;g++){var v,y=f[g],b=y.head,C=e.getRange(b,i(b.line,b.ch+1));if(m&&!y.empty())v="surround";else if(!d&&m||C!=r)if(d&&b.ch>1&&p.indexOf(r)>=0&&e.getRange(i(b.line,b.ch-2),b)==r+r){if(b.ch>2&&/\bstring/.test(e.getTokenTypeAt(i(b.line,b.ch-2))))return t.Pass;v="addFour"}else if(d){var x=0==b.ch?" ":e.getRange(i(b.line,b.ch-1),b);if(t.isWordChar(C)||x==r||t.isWordChar(x))return t.Pass;v="both"}else{if(!m||!(0===C.length||/\s/.test(C)||h.indexOf(C)>-1))return t.Pass;v="both"}else v=d&&c(e,b)?"both":p.indexOf(r)>=0&&e.getRange(b,i(b.line,b.ch+3))==r+r+r?"skipThree":"skip";if(u){if(u!=v)return t.Pass}else u=v}var k=l%2?a.charAt(l-1):r,w=l%2?r:a.charAt(l+1);e.operation((function(){if("skip"==u)e.execCommand("goCharRight");else if("skipThree"==u)for(var n=0;n<3;n++)e.execCommand("goCharRight");else if("surround"==u){var r=e.getSelections();for(n=0;n<r.length;n++)r[n]=k+r[n]+w;for(e.replaceSelections(r,"around"),r=e.listSelections().slice(),n=0;n<r.length;n++)r[n]=(o=r[n],a=void 0,a=t.cmpPos(o.anchor,o.head)>0,{anchor:new i(o.anchor.line,o.anchor.ch+(a?-1:1)),head:new i(o.head.line,o.head.ch+(a?1:-1))});e.setSelections(r)}else"both"==u?(e.replaceSelection(k+w,null),e.triggerElectric(k+w),e.execCommand("goCharLeft")):"addFour"==u&&(e.replaceSelection(k+k+k+k,"before"),e.execCommand("goCharRight"));var o,a}))}(r,e)}}function s(t){var e=t.state.closeBrackets;return!e||e.override?e:t.getModeAt(t.getCursor()).closeBrackets||e}function l(t,e){var n=t.getRange(i(e.line,e.ch-1),i(e.line,e.ch+1));return 2==n.length?n:null}function c(t,e){var n=t.getTokenAt(i(e.line,e.ch+1));return/\bstring/.test(n.type)&&n.start==e.ch&&(0==e.ch||!/\bstring/.test(t.getTokenTypeAt(e)))}o(e.pairs+"`")}(i(/*! ../../lib/codemirror */"VrN/"))},F8wB:
|
|
|
/*!********************************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Edit/body/Level/Challenges/components/Loading/index.less?modules ***!
|
|
|
\********************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports={loading:"loading___1SIOG"}},FOrL:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/nodata.png ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/nodata.a6b3f948.png"},FPkq:
|
|
|
/*!**************************************!*\
|
|
|
!*** ./src/assets/images/qrCode.png ***!
|
|
|
\**************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/qrCode.dd0fe9b2.png"},GABl:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/chrome.png ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqR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7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},Gytx:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/shallowequal/index.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports=function(t,e,i,n){var r=i?i.call(n,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=t[c],h=e[c];if(!1===(r=i?i.call(n,u,h,c):void 0)||void 0===r&&u!==h)return!1}return!0}},HmJG:
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./src/components/markdown-editor/upload-image/index.less ***!
|
|
|
\****************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){},HpTS:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./src/assets/images/classrooms/small_program.png ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/small_program.f74069ec.png"},I8Z2:
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/mini-store/esm/index.js + 3 modules ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: Provider, connect, create */
|
|
|
/*! exports used: Provider, connect, create */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return m})),i.d(e,"c",(function(){return v}));var n,r=i("q1tI"),o=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=r.createContext(null),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){return r.createElement(a.Provider,{value:this.props.store},this.props.children)},e}(r.Component),l=i("Gytx"),c=i.n(l),u=i("2mql"),h=i.n(u),p=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),d=function(){return(d=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};var f=function(){return{}};function m(t,e){void 0===e&&(e={});var i=!!t,n=t||f;return function(o){var s=function(e){function s(t,i){var r=e.call(this,t,i)||this;return r.unsubscribe=null,r.handleChange=function(){if(r.unsubscribe){var t=n(r.store.getState(),r.props);r.setState({subscribed:t})}},r.store=r.context,r.state={subscribed:n(r.store.getState(),t),store:r.store,props:t},r}return p(s,e),s.getDerivedStateFromProps=function(e,i){return t&&2===t.length&&e!==i.props?{subscribed:n(i.store.getState(),e),props:e}:{props:e}},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},s.prototype.shouldComponentUpdate=function(t,e){return!c()(this.props,t)||!c()(this.state.subscribed,e.subscribed)},s.prototype.trySubscribe=function(){i&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.render=function(){var t=d(d(d({},this.props),this.state.subscribed),{store:this.store});return r.createElement(o,d({},t,{ref:this.props.miniStoreForwardedRef}))},s.displayName="Connect("+function(t){return t.displayName||t.name||"Component"}(o)+")",s.contextType=a,s}(r.Component);if(e.forwardRef){var l=r.forwardRef((function(t,e){return r.createElement(s,d({},t,{miniStoreForwardedRef:e}))}));return h()(l,o)}return h()(s,o)}}var g=function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function v(t){var e=t,i=[];return{setState:function(t){e=g(g({},e),t);for(var n=0;n<i.length;n++)i[n]()},getState:function(){return e},subscribe:function(t){return i.push(t),function(){var e=i.indexOf(t);i.splice(e,1)}}}}},JWDV:
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./src/assets/images/icons/charpter-white.svg ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/charpter-white.5fa14f93.svg"},JeFH:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/blibli.png ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvW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v5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/user/qrcode.png ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/qrcode.54870d9b.png"},LdHM:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/index.js + 6 modules ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: Option, OptGroup, default */
|
|
|
/*! exports used: OptGroup, Option, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/TransBtn.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/generate.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/commonUtil.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/valueUtil.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMemo.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/pickAttrs.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-virtual-list/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(t,e,i){"use strict";i.d(e,"b",(function(){return x})),i.d(e,"a",(function(){return w}));var n=i("1OyB"),r=i("vuIU"),o=i("Ji7U"),a=i("LK+K"),s=i("q1tI"),l=i("rePB"),c=i("Ff2n"),u=i("ODXe"),h=i("4IlW"),p=i("bX4T"),d=i("YrtM"),f=i("TSYQ"),m=i.n(f),g=i("+nKL"),v=i("8OUc"),y=s.forwardRef((function(t,e){var i=t.prefixCls,n=t.id,r=t.flattenOptions,o=t.childrenAsData,a=t.values,f=t.searchValue,y=t.multiple,b=t.defaultActiveFirstOption,C=t.height,x=t.itemHeight,k=t.notFoundContent,w=t.open,S=t.menuItemSelectedIcon,A=t.virtual,E=t.onSelect,O=t.onToggleOpen,M=t.onActiveValue,I=t.onScroll,T=t.onMouseEnter,N="".concat(i,"-item"),R=Object(d.a)((function(){return r}),[w,r],(function(t,e){return e[0]&&t[1]!==e[1]})),B=s.useRef(null),D=function(t){t.preventDefault()},L=function(t){B.current&&B.current.scrollTo({index:t})},j=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=R.length,n=0;n<i;n+=1){var r=(t+n*e+i)%i,o=R[r],a=o.group,s=o.data;if(!a&&!s.disabled)return r}return-1},P=s.useState((function(){return j(0)})),z=Object(u.a)(P,2),F=z[0],W=z[1],V=function(t){W(t);var e=R[t];e?M(e.data.value,t):M(null,-1)};s.useEffect((function(){V(!1!==b?j(0):-1)}),[R.length,f]),s.useEffect((function(){var t=setTimeout((function(){if(!y&&w&&1===a.size){var t=Array.from(a)[0],e=R.findIndex((function(e){return e.data.value===t}));V(e),L(e)}}));return function(){return clearTimeout(t)}}),[w]);var H=function(t){void 0!==t&&E(t,{selected:!a.has(t)}),y||O(!1)};if(s.useImperativeHandle(e,(function(){return{onKeyDown:function(t){var e=t.which;switch(e){case h.a.UP:case h.a.DOWN:var i=0;if(e===h.a.UP?i=-1:e===h.a.DOWN&&(i=1),0!==i){var n=j(F+i,i);L(n),V(n)}break;case h.a.ENTER:var r=R[F];r&&!r.data.disabled?H(r.data.value):H(void 0),w&&t.preventDefault();break;case h.a.ESC:O(!1)}},onKeyUp:function(){},scrollTo:function(t){L(t)}}})),0===R.length)return s.createElement("div",{role:"listbox",id:"".concat(n,"_list"),className:"".concat(N,"-empty"),onMouseDown:D},k);function G(t){var e=R[t];if(!e)return null;var i=e.data||{},r=i.value,l=i.label,c=i.children,u=Object(p.a)(i,!0),h=o?c:l;return e?s.createElement("div",Object.assign({"aria-label":"string"==typeof h?h:null},u,{key:t,role:"option",id:"".concat(n,"_list_").concat(t),"aria-selected":a.has(r)}),r):null}return s.createElement(s.Fragment,null,s.createElement("div",{role:"listbox",id:"".concat(n,"_list"),style:{height:0,width:0,overflow:"hidden"}},G(F-1),G(F),G(F+1)),s.createElement(g.a,{itemKey:"key",ref:B,data:R,height:C,itemHeight:x,fullHeight:!1,onMouseDown:D,onScroll:I,virtual:A,onMouseEnter:T},(function(t,e){var i,n=t.group,r=t.groupOption,u=t.data,h=u.label,p=u.key;if(n)return s.createElement("div",{className:m()(N,"".concat(N,"-group"))},void 0!==h?h:p);var d=u.disabled,f=u.value,g=u.title,y=u.children,b=u.style,C=u.className,x=Object(c.a)(u,["disabled","value","title","children","style","className"]),k=a.has(f),w="".concat(N,"-option"),A=m()(N,w,C,(i={},Object(l.a)(i,"".concat(w,"-grouped"),r),Object(l.a)(i,"".concat(w,"-active"),F===e&&!d),Object(l.a)(i,"".concat(w,"-disabled"),d),Object(l.a)(i,"".concat(w,"-selected"),k),i)),E=o?y:h,O=!S||"function"==typeof S||k;return s.createElement("div",Object.assign({},x,{"aria-selected":k,className:A,title:g,onMouseMove:function(){F===e||d||V(e)},onClick:function(){d||H(f)},style:b}),s.createElement("div",{className:"".concat(w,"-content")},E||f),s.isValidElement(S)||k,O&&s.createElement(v.a,{className:"".concat(N,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:k}},k?"✓":null))})))}));y.displayName="OptionList";var b=y,C=function(){return null};C.isSelectOption=!0;var x=C,k=function(){return null};k.isSelectOptGroup=!0;var w=k,S=i("VTBJ"),A=i("Zm9Q");function E(t){var e=t.key,i=t.props,n=i.children,r=i.value,o=Object(c.a)(i,["children","value"]);return Object(S.a)({key:e,value:void 0!==r?r:e,children:n},o)}function O(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(A.a)(t).map((function(t,i){if(!s.isValidElement(t)||!t.type)return null;var n=t.type.isSelectOptGroup,r=t.key,o=t.props,a=o.children,l=Object(c.a)(o,["children"]);return e||!n?E(t):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(null===r?i:r,"__"),label:r},l),{},{options:O(a)})})).filter((function(t){return t}))}var M=i("2Qr1"),I=i("qNPg"),T=i("U8pU"),N=i("Kwbf"),R=i("WKfj");var B=function(t){var e=t.mode,i=t.options,n=t.children,r=t.backfill,o=t.allowClear,a=t.placeholder,l=t.getInputElement,c=t.showSearch,u=t.onSearch,h=t.defaultOpen,p=t.autoFocus,d=t.labelInValue,f=t.value,m=t.inputValue,g=t.optionLabelProp,v="multiple"===e||"tags"===e,y=void 0!==c?c:v||"combobox"===e,b=i||O(n);if(Object(N.a)("tags"!==e||b.every((function(t){return!t.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===e||"combobox"===e){var C=b.some((function(t){return t.options?t.options.some((function(t){return"number"==typeof("value"in t?t.value:t.key)})):"number"==typeof("value"in t?t.value:t.key)}));Object(N.a)(!C,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(N.a)("combobox"!==e||!g,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(N.a)("combobox"===e||!r,"`backfill` only works with `combobox` mode."),Object(N.a)("combobox"===e||!l,"`getInputElement` only work with `combobox` mode."),Object(N.b)("combobox"!==e||!l||!o||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!y&&"combobox"!==e&&"tags"!==e&&Object(N.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(N.b)(!h||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=f){var x=Object(R.d)(f);Object(N.a)(!d||x.every((function(t){return"object"===Object(T.a)(t)&&("key"in t||"value"in t)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(N.a)(!v||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(n){var k=null;Object(A.a)(n).some((function(t){if(!s.isValidElement(t)||!t.type)return!1;var e=t.type;return!e.isSelectOption&&(e.isSelectOptGroup?!Object(A.a)(t.props.children).every((function(e){return!(s.isValidElement(e)&&t.type&&!e.type.isSelectOption)||(k=e.type,!1)})):(k=e,!0))})),k&&Object(N.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(k.displayName||k.name||k,"`.")),Object(N.a)(void 0===m,"`inputValue` is deprecated, please use `searchValue` instead.")}},D=Object(I.a)({prefixCls:"rc-select",components:{optionList:b},convertChildrenToData:O,flattenOptions:M.d,getLabeledValue:M.e,filterOptions:M.b,isValueDisabled:M.g,findValueOption:M.c,warningProps:B,fillOptionsWithMissingValue:M.a}),L=function(t){Object(o.a)(i,t);var e=Object(a.a)(i);function i(){var t;return Object(n.a)(this,i),(t=e.apply(this,arguments)).selectRef=s.createRef(),t.focus=function(){t.selectRef.current.focus()},t.blur=function(){t.selectRef.current.blur()},t}return Object(r.a)(i,[{key:"render",value:function(){return s.createElement(D,Object.assign({ref:this.selectRef},this.props))}}]),i}(s.Component);L.Option=x,L.OptGroup=w;var j=L;e.c=j},M8RZ:
|
|
|
/*!**********************************!*\
|
|
|
!*** ./src/components/modal.tsx ***!
|
|
|
\**********************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/classCallCheck */"fWQN"),r=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createClass */"mtLc"),o=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/inherits */"yKVA"),a=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createSuper */"879j"),s=i(/*! react */"q1tI"),l=i.n(s),c=i(/*! react-dom */"i8i4"),u=function(t){Object(o.a)(i,t);var e=Object(a.a)(i);function i(t){var r;Object(n.a)(this,i),r=e.call(this,t);var o=window.document;return r.node=o.createElement("div"),o.body.appendChild(r.node),r}return Object(r.a)(i,[{key:"render",value:function(){var t=this.props.children;return Object(c.createPortal)(t,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),i}(l.a.Component)},Nmxd:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/icons/done2.png ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZk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TK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},OLES:
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/es/index.js + 2 modules ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tooltip/es/placements.js because of ./node_modules/antd/es/tooltip/placements.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-trigger/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(t,e,i){"use strict";var n=i("U8pU"),r=i("VTBJ"),o=i("Ff2n"),a=i("q1tI"),s=i("uciX"),l=i("7ixt"),c=function(t){var e=t.overlay,i=t.prefixCls,n=t.id,r=t.overlayInnerStyle;return a.createElement("div",{className:"".concat(i,"-inner"),id:n,role:"tooltip",style:r},"function"==typeof e?e():e)},u=Object(a.forwardRef)((function(t,e){var i=t.overlayClassName,u=t.trigger,h=void 0===u?["hover"]:u,p=t.mouseEnterDelay,d=void 0===p?0:p,f=t.mouseLeaveDelay,m=void 0===f?.1:f,g=t.overlayStyle,v=t.prefixCls,y=void 0===v?"rc-tooltip":v,b=t.children,C=t.onVisibleChange,x=t.afterVisibleChange,k=t.transitionName,w=t.animation,S=t.placement,A=void 0===S?"right":S,E=t.align,O=void 0===E?{}:E,M=t.destroyTooltipOnHide,I=void 0!==M&&M,T=t.defaultVisible,N=t.getTooltipContainer,R=t.overlayInnerStyle,B=Object(o.a)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),D=Object(a.useRef)(null);Object(a.useImperativeHandle)(e,(function(){return D.current}));var L=Object(r.a)({},B);"visible"in t&&(L.popupVisible=t.visible);var j=!1,P=!1;if("boolean"==typeof I)j=I;else if(I&&"object"===Object(n.a)(I)){var z=I.keepParent;j=!0===z,P=!1===z}return a.createElement(s.a,Object.assign({popupClassName:i,prefixCls:y,popup:function(){var e=t.arrowContent,i=void 0===e?null:e,n=t.overlay,r=t.id;return[a.createElement("div",{className:"".concat(y,"-arrow"),key:"arrow"},i),a.createElement(c,{key:"content",prefixCls:y,id:r,overlay:n,overlayInnerStyle:R})]},action:h,builtinPlacements:l.a,popupPlacement:A,ref:D,popupAlign:O,getPopupContainer:N,onPopupVisibleChange:C,afterPopupVisibleChange:x,popupTransitionName:k,popupAnimation:w,defaultPopupVisible:T,destroyPopupOnHide:j,autoDestroy:P,mouseLeaveDelay:m,popupStyle:g,mouseEnterDelay:d},L),b)}));e.a=u},Ohmc:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/certificate.jpg ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/certificate.fc32dc1b.jpg"},Ot1p:
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./src/components/markdown-editor/index.tsx + 6 modules ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/RenderHtml/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/markdown-editor/code-block/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/modal.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/useInterval.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/tasks/util.js because of ./src/pages/tasks/index.jsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/fetch.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input-number/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input-number/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/codemirror/lib/codemirror.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/uuid/dist/esm-browser/v4.js */function(t,e,i){"use strict";i("2qtc");var n=i("kLXV"),r=i("rAM+"),o=(i("miYZ"),i("tsqr")),a=i("9og8"),s=i("tJVT"),l=i("jrin"),c=i("WmNS"),u=i.n(c),h=i("q1tI"),p=i.n(h),d=i("VrN/"),f=i.n(d),m=i("bdgK"),g=(i("p77/"),i("Bd2K"),i("ELLl"),i("19Vz"),i("lZu9"),i("+NIl"),i("kSUc"),i("9Bee")),v=function(t){var e=t.value,i=void 0===e?"":e,n=(t.className,t.showTextOnly,t.showLines,t.style,Object(h.useMemo)((function(){return""}),[i]));return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{dangerouslySetInnerHTML:{__html:n}}))},y=i("0Owb"),b=(i("dejd"),i("C+DQ"),i("1vsH")),C=i("m3rI"),x=[{title:"粗体",icon:"icon-bold",actionName:"bold"},{title:"斜体",icon:"icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"icon-file-code",actionName:"code-block"},{title:"链接",icon:"icon-link",actionName:"link"},"|",{title:"行内公式",icon:"icon-sum",actionName:"inline-latex"},{title:"多行公式",icon:"icon-formula",actionName:"latex"},"|",{title:"添加图片",icon:"icon-picture",actionName:"upload-image"},{title:"表格",icon:"icon-table",actionName:"add-table"},"|",{title:"换行",icon:"icon-minus",actionName:"line-break"},{title:"清空",icon:"icon-eraser",actionName:"eraser"}];function k(t){var e=t.onActionCallback,i=t.title,n=t.icon,r=t.actionName,o=t.className,a=void 0===o?"":o,s=t.children;return p.a.createElement("a",{title:i,className:a,onClick:function(){e(r)}},p.a.createElement("i",{className:"md-iconfont ".concat(n)}),s)}var w=function(t){var e=t.watch,i=t.showNullButton,n=t.onActionCallback,r=t.fullScreen,o=t.insertTemp,a=t.hidetoolBar,s=t.uuid;t.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(b.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(b.D)("_educoder_session"),"&key=").concat(s,"&api=").concat(encodeURIComponent(C.a.PROXY_SERVER)));var l=[].concat(x,[{title:"".concat(e?"关闭实时预览":"开启实时预览"),icon:"".concat(e?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return p.a.createElement("ul",{className:"markdown-toolbar-container"},!a&&l.map((function(t,e){return p.a.createElement("li",{key:e},t.actionName?p.a.createElement(k,Object(y.a)({},t,{onActionCallback:n})):p.a.createElement("span",{className:"v-line"}))})),i?p.a.createElement("li",null,p.a.createElement(k,{icon:"icon-edit",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:n},p.a.createElement("span",{className:"fill-tip"},"点击插入\b填空项"))):null,o&&p.a.createElement("li",null,p.a.createElement(k,{icon:"icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(o),onActionCallback:n},p.a.createElement("span",{className:"fill-tip"},"插入模板"))),p.a.createElement("li",{className:"btn-full-screen"},p.a.createElement(k,{icon:"".concat(r?"icon-shrink":"icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:n})))},S=i("M8RZ"),A=(i("+L6B"),i("2/Rp")),E=(i("y8nQ"),i("Vl3Y")),O=(i("5NDa"),i("5rEg")),M={labelCol:{span:4},wrapperCol:{span:20}},I=function(t){var e=t.callback,i=t.onCancel;return p.a.createElement(E.a,Object(y.a)({},M,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(t){e(t)}}),p.a.createElement(E.a.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}]},p.a.createElement(O.a,null)),p.a.createElement(E.a.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}]},p.a.createElement(O.a,null)),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(A.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"确定"),p.a.createElement(A.a,{type:"ghost",onClick:i},"取消")))},T=i("7ahc"),N=i("k1fw"),R=(i("HmJG"),i("BjJ7")),B=E.a.useForm,D={width:280,marginRight:10},L={labelCol:{span:5},wrapperCol:{span:19}},j=function(t){var e=t.callback,i=t.onCancel,n=B(),r=Object(s.a)(n,1)[0],o=Object(h.useRef)();function a(t,e){r.setFieldsValue({src:"/api/attachments/".concat(t.id,"?type=").concat(t.content_type),type:e.type})}return p.a.createElement(E.a,Object(y.a)({form:r},L,{className:"upload-image-panel",onFinish:function(t){e(Object(N.a)(Object(N.a)({},t),{},{name:o.current}))}}),p.a.createElement(E.a.Item,{label:"文件地址",required:!0},p.a.createElement("div",{className:"flex-container"},p.a.createElement(E.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入文件地址"}]},p.a.createElement(O.a,{style:D})),p.a.createElement(P,{onFileChange:function(t){var e=t.target.files[0];o.current=e.name,z(e,a)}}))),p.a.createElement(E.a.Item,{label:"文件描述",name:"alt"},p.a.createElement(O.a,{style:{width:264}})),p.a.createElement(E.a.Item,{style:{textAlign:"right"}},p.a.createElement(A.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"确定"),p.a.createElement(A.a,{type:"ghost",onClick:i},"取消")))};function P(t){var e=t.onFileChange;return p.a.createElement("a",{className:"upload-button"},"本地上传",p.a.createElement("input",{type:"file",onChange:e}))}function z(t,e){if(!t)throw new String("没有文件");var i=new FormData;i.append("editormd-image-file",t),i.append("file_param_name","editormd-image-file"),i.append("byxhr","true");var n=new window.XMLHttpRequest;n.withCredentials=!0,n.addEventListener("load",(function(i){e(JSON.parse(i.target.responseText),t)}),!1),n.addEventListener("error",(function(t){console.error(t)}),!1),n.open("POST","".concat(R.a,"/api/attachments.json")),n.send(i)}i("giR+");var F,W,V=i("fyUT"),H=(i("7Kak"),i("9yH6")),G=H.a.Group,U={margin:"0 8px"},Q=function(t){var e=t.callback,i=t.onCancel;return p.a.createElement(E.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(t){e(t)}},p.a.createElement("div",{className:"flex-container"},p.a.createElement("span",{style:U},"单元格数:"),p.a.createElement("span",{style:U},"行数"),p.a.createElement(E.a.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}]},p.a.createElement(V.a,null)),p.a.createElement("span",{style:U},"列数"),p.a.createElement(E.a.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}]},p.a.createElement(V.a,null))),p.a.createElement("div",{className:"flex-container",style:{marginTop:12}},p.a.createElement("span",{style:U},"对齐方式:"),p.a.createElement(E.a.Item,{name:"align"},p.a.createElement(G,null,p.a.createElement(H.a,{value:"default"},p.a.createElement("i",{className:"fa fa-align-justify"})),p.a.createElement(H.a,{value:"left"},p.a.createElement("i",{className:"fa fa-align-left"})),p.a.createElement(H.a,{value:"center"},p.a.createElement("i",{className:"fa fa-align-center"})),p.a.createElement(H.a,{value:"right"},p.a.createElement("i",{className:"fa fa-align-right"}))))),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(A.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"确定"),p.a.createElement(A.a,{type:"ghost",onClick:i},"取消")))},J=i("ErOA"),K=i("7Cbv"),Z="------------",Y={default:Z,left:":".concat(Z),center:":".concat(Z,":"),right:"".concat(Z,":")},q=i("9VGf");function X(t){return/^\d+$/.test(t)?"".concat(t,"px"):t}var _=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",$=["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"],tt=(F={},Object(l.a)(F,_+"-B","bold"),Object(l.a)(F,_+"-I","italic"),F),et=(W={},Object(l.a)(W,"link","添加链接"),Object(l.a)(W,"code-block","添加代码块"),Object(l.a)(W,"upload-image","添加文件"),Object(l.a)(W,"add-table","添加表格"),W);e.a=function(t){var e=t.defaultValue,i=void 0===e?"":e,c=t.onChange,d=t.width,y=void 0===d?"100%":d,b=t.height,x=void 0===b?400:b,k=t.miniToolbar,A=void 0!==k&&k,E=t.isFocus,O=void 0!==E&&E,M=t.watch,N=t.insertTemp,R=t.mode,B=void 0===R?"markdown":R,D=t.id,L=void 0===D?"markdown-editor-id":D,P=t.showResizeBar,F=void 0!==P&&P,W=t.noStorage,V=void 0!==W&&W,H=t.showNullButton,G=void 0!==H&&H,U=t.hidetoolBar,Z=void 0!==U&&U,_=t.fullScreen,it=void 0!==_&&_,nt=t.onBlur,rt=t.onCMBeforeChange,ot=t.onFullScreen,at=t.className,st=void 0===at?"":at,lt=t.disablePaste,ct=void 0!==lt&<,ut=t.placeholder,ht=void 0===ut?"":ut,pt=t.values,dt=void 0===pt?"":pt,ft=Object(h.useState)(null),mt=Object(s.a)(ft,2),gt=mt[0],vt=mt[1],yt=Object(h.useState)(i),bt=Object(s.a)(yt,2),Ct=bt[0],xt=bt[1],kt=Object(h.useState)(M),wt=Object(s.a)(kt,2),St=wt[0],At=wt[1],Et=Object(h.useState)(it),Ot=Object(s.a)(Et,2),Mt=Ot[0],It=Ot[1],Tt=Object(h.useState)(""),Nt=Object(s.a)(Tt,2),Rt=Nt[0],Bt=Nt[1],Dt=Object(h.useState)(0),Lt=Object(s.a)(Dt,2),jt=Lt[0],Pt=Lt[1],zt=Object(h.useState)(x),Ft=Object(s.a)(zt,2),Wt=Ft[0],Vt=Ft[1],Ht=Object(h.useState)(!1),Gt=Object(s.a)(Ht,2),Ut=(Gt[0],Gt[1]),Qt=Object(h.useRef)(Object(K.a)()),Jt=Object(h.useRef)(!1),Kt=Object(h.useRef)(),Zt=Object(h.useRef)(),Yt=Object(h.useRef)(),qt=Object(h.useRef)(),Xt=Object(h.useRef)(),_t=function(){var t=Object(a.a)(u.a.mark((function t(){var e,i;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(J.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Qt.current}});case 2:null!=(i=t.sent)&&null!==(e=i.attachments)&&void 0!==e&&e.length&&(console.log("cm:",gt,Zt),i.attachments.map((function(t){t.content_type.indexOf("image")>-1?gt.replaceSelection(".concat(t.content_type,")")):t.content_type.indexOf("video")>-1?gt.replaceSelection('<video width="100%" controls src="'.concat(C.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):t.content_type.indexOf("pdf")>-1?gt.replaceSelection('<a href="'.concat(C.a.API_SERVER,"/api/attachments/").concat(t.id,"?type=").concat(t.content_type,'&disposition=inline" target="_blank">').concat(t.name,"</a>")):gt.replaceSelection("[".concat(t.name,"](").concat(C.a.API_SERVER,"/api/attachments/").concat(t.id,"?type=").concat(t.content_type,")"))})));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();Object(h.useEffect)((function(){xt(dt),null==gt||gt.setValue(dt)}),[dt]),Object(h.useEffect)((function(){null==ot||ot(Mt)}),[Mt]),Object(h.useEffect)((function(){if(Zt.current){var t=f.a.fromTextArea(Zt.current,{mode:B,lineNumbers:!A,lineWrapping:!0,value:i,autoCloseTags:!0,autoCloseBrackets:!0});function e(e,i){if(!ct){var n=i.clipboardData;if(n){var r=n.types.toString(),a=n.items;if("Files"===r||n.types.indexOf("Files")>-1){if(i.preventDefault(),"stex"==B)return;try{var s,l=a[1];"file"===(null===(s=a[0])||void 0===s?void 0:s.kind)&&(l=a[0]);var c=l.getAsFile(),u=c.name.split(".").pop();z(c,(function(e){var i,n,r;e.id?(null==c||null===(i=c.type)||void 0===i?void 0:i.indexOf("image"))>-1?t.replaceSelection(".concat(e.content_type,")")):(null==c||null===(n=c.type)||void 0===n?void 0:n.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="'.concat(C.a.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==c||null===(r=c.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?t.replaceSelection('<a href="'.concat(C.a.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(c.type,'&disposition=inline" target="_blank">').concat(c.name,"</a>")):$.includes(u)?t.replaceSelection('<a href="'.concat(C.a.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(c.name,"</a>")):t.replaceSelection("[".concat(c.name,"](").concat(C.a.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(i){o.b.warn("请使用chrome浏览器粘贴")}return!0}return!0}return!0}i.preventDefault()}return O&&t.focus(),t.on("paste",e),t.on("dragleave",(function(t,e){Yt.current.classList.remove("mouse-hover-md")})),t.on("dragover",(function(t,e){Yt.current.classList.add("mouse-hover-md")})),t.on("drop",(function(e,i){var n;if(Yt.current.classList.add("mouse-hover-md"),(n=i.dataTransfer.files).length>0){i.preventDefault(),i.stopPropagation();for(var r=function(e){var i=n[e],r=i.name.split(".").pop();z(i,(function(e){var n,o,a;e.id?(null==i||null===(n=i.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection(".concat(e.content_type,")")):(null==i||null===(o=i.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="'.concat(C.a.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==i||null===(a=i.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?t.replaceSelection('<a href="'.concat(C.a.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(i.type,'&disposition=inline" target="_blank">').concat(i.name,"</a>")):$.includes(r)?t.replaceSelection('<a href="'.concat(C.a.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(i.name,"</a>")):t.replaceSelection("[".concat(i.name,"](").concat(C.a.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))},o=0;o<n.length;o++)r(o)}})),vt(t),function(){t.off("paste",e)}}}),[]);var $t=Object(h.useCallback)((function(){Yt.current}),[Wt,Yt,Mt]);Object(h.useEffect)((function(){if(gt){var t=function(){var t=new m.default((function(t){var e,i=Object(r.a)(t);try{for(i.s();!(e=i.n()).done;){var n=e.value;(n.target.offsetHeight>0||n.target.offsetWidth>0)&&($t(),gt.setSize("100%","100%"),gt.refresh())}}catch(t){i.e(t)}finally{i.f()}}));return t.observe(Zt.current.parentElement),t}();return function(){t.unobserve(Zt.current.parentElement)}}}),[gt,$t]),Object(h.useEffect)((function(){if(gt){for(var t=[],e=function(){var e=n[i],r=(o=Object(s.a)(e,2))[0],a=o[1],c=Object(l.a)({},r,(function(){te(a)}));t.push(c),gt.addKeyMap(c)},i=0,n=Object.entries(tt);i<n.length;i++){var o;e()}return Kt.current=setInterval((function(){Jt.current&&_t()}),4e3),function(){clearInterval(Kt.current);var e,i=Object(r.a)(t);try{for(i.s();!(e=i.n()).done;){var n=e.value;gt.removeKeyMap(n)}}catch(t){i.e(t)}finally{i.f()}}}}),[gt]),Object(h.useEffect)((function(){it!==Mt&&It(it)}),[it]),Object(q.a)((function(){if(!V&&jt>0){var t=(new Date).getTime(),e=window.sessionStorage.getItem(L);t>=jt+1e4&&(!e||e!==Ct)&&(window.sessionStorage.setItem(L,Ct),Ut(!0))}}),1e4),Object(h.useEffect)((function(){At(M)}),[gt,M]),Object(h.useEffect)((function(){gt&&O&>.focus()}),[gt,O]),Object(h.useEffect)((function(){if(St&>){var t=gt.getScrollerElement();function e(t){var e=t.target;if(Xt.current){var i=e.scrollTop/e.scrollHeight;Xt.current.scrollTop=Xt.current.scrollHeight*i}}return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[gt,St]),Object(h.useEffect)((function(){if(gt&&rt){function t(t,e){rt(t,e)}return gt.on("beforeChange",t),function(){gt.off("beforeChange",t)}}}),[gt,rt]),Object(h.useEffect)((function(){if(gt&&nt){function t(){nt(gt.getValue())}return gt.on("blur",t),function(){gt.off("blur",t)}}}),[gt,nt]),Object(h.useEffect)((function(){if(gt){function t(t){var e=t.getValue();xt(e),Pt((new Date).getTime()),t.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),c&&c(e)}return gt.on("change",t),function(){gt.off("change",t)}}}),[gt,c]),Object(h.useEffect)((function(){gt&&(null==i?(gt.setValue(""),xt("")):i!==gt.getValue()&&(gt.setValue(i),xt(i),gt.setCursor(gt.lineCount(),0)))}),[gt,i]);var te=Object(h.useCallback)((function(t){var e=gt.getCursor(),i=gt.getSelection(),n=i.split("\n");switch(t){case"bold":return gt.replaceSelection("**"+i+"**"),""===i&>.setCursor(e.line,e.ch+2),gt.focus();case"italic":return gt.replaceSelection("*"+i+"*"),""===i&>.setCursor(e.line,e.ch+1),gt.focus();case"code":return gt.replaceSelection("`"+i+"`"),""===i&>.setCursor(e.line,e.ch+1),gt.focus();case"inline-latex":return gt.replaceSelection("`$$"+i+"$$`"),""===i&>.setCursor(e.line,e.ch+3),gt.focus();case"latex":return gt.replaceSelection("```latex\n"+i+"\n```"),gt.setCursor(e.line+1,i.length+1),gt.focus();case"line-break":return gt.replaceSelection("<br/>\n"),gt.focus();case"list-ul":return""===i?gt.replaceSelection("- "+i):gt.replaceSelection(n.map((function(t){return""===t?"":"- ".concat(t)})).join("\n")),gt.focus();case"list-ol":return""===i?gt.replaceSelection("1. "+i):gt.replaceSelection(n.map((function(t,e){return""===t?"":"".concat(e+1,". ").concat(t)})).join("\n")),gt.focus();case"add-null-ch":return""===i&>.setCursor(e.line,e.ch+1),gt.replaceSelection("▁"),gt.focus();case"inster-template-1":return""===i&>.setCursor(e.line,e.ch),gt.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),gt.focus();case"eraser":return gt.setValue(""),gt.focus();case"trigger-watch":return At(!St),gt.focus();case"trigger-full-screen":return It(!Mt),gt.focus();case"link":return void Bt("link");case"code-block":return void Bt("code-block");case"upload-image":return void Bt("upload-image");case"add-table":return void Bt("add-table");default:throw new Error}}),[gt,St,Mt]),ee=Object(h.useCallback)((function(t){switch(Bt(""),Rt){case"link":var e=t.title,i=t.link;return gt.replaceSelection("[".concat(e,"](").concat(i,")")),gt.focus();case"code-block":var n=t.language,r=t.content;return gt.replaceSelection(["```"+n,r,"```"].join("\n")),gt.focus();case"upload-image":var o=t.src,a=t.alt,s=t.name;return o.indexOf("type=image")>-1?gt.replaceSelection(".concat(o,' "').concat(a||"",'" )')):o.indexOf("type=application/pdf")>-1?gt.replaceSelection('<a href="'.concat(o,'&disposition=inline" target="_blank">').concat(s,"</a>")):gt.replaceSelection('<a href="'.concat(o,'" target="_blank">').concat(s,"</a>")),gt.focus();case"add-table":for(var l=t.row,c=t.col,u=t.align,h="\n",p=0;p<l;p++){for(var d=[],f=[],m=0;m<c;m++)1===p&&f.push(Y[u]),d.push(" ");1===p&&(h+="| ".concat(f.join(" | ")," |\n")),h+="| ".concat(d.join(1===c?"":" | ")," |\n")}return gt.replaceSelection(h+"\n"),gt.focus();default:throw new Error}}),[gt,Rt]),ie=Object(h.useMemo)((function(){switch(Rt){case"link":return p.a.createElement(I,{callback:ee,onCancel:ne});case"code-block":return p.a.createElement(T.b,{callback:ee,onCancel:ne});case"upload-image":return p.a.createElement(j,{callback:ee,onCancel:ne});case"add-table":return p.a.createElement(Q,{callback:ee,onCancel:ne});default:return null}}),[Rt]);function ne(){Bt("")}Object(h.useEffect)((function(){if(qt.current){var t=qt.current,e=!1,i=0;function n(t){e=!0,i=t.pageY}function r(){e=!1}function o(t){if(e){var n=t.pageY-i;n<0&&(n=0),n>300&&(n=300),Vt(x+n+"px")}}return t.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r),function(){t.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)}}}),[gt,qt]),Object(h.useEffect)((function(){Vt(x)}),[x]);var re={width:X(y),height:X(Wt)};Object(h.useMemo)((function(){if(jt){var t=new Date(jt),e=t.getHours(),i=t.getMinutes(),n=t.getSeconds();return i=i<10?"0"+i:i,n=n<10?"0"+n:n,"".concat(e=e<10?"0"+e:e,":").concat(i,":").concat(n)}return 0}),[jt]);return p.a.createElement(h.Fragment,null,p.a.createElement("div",{className:"markdown-editor-wrapper",ref:Yt},p.a.createElement("div",{className:"markdown-editor-container ".concat(st," ").concat(St?"on-preview":""," ").concat(A?"mini":""," ").concat(Mt?"full-screen":""),style:re},p.a.createElement(w,{insertTemp:N,watch:St,fullScreen:Mt,showNullButton:G,onActionCallback:te,hidetoolBar:Z,uuid:Qt.current,setOpenPhones:function(){Jt.current=!0}}),p.a.createElement("div",{className:"markdown-editor-body"},p.a.createElement("div",{className:"codemirror-container"},p.a.createElement("textarea",{ref:Zt,placeholder:ht})),St?p.a.createElement("div",{ref:Xt,className:"preview-container"},"stex"===B&&p.a.createElement(v,{value:Ct}),"stex"!==B&&p.a.createElement(g.a,{edit:!0,value:Ct,replaces:function(t,e){var i=gt.getValue();i=i.replace(t,e),xt(i),null==gt||gt.setValue(i)}})):null))),F?p.a.createElement("a",{ref:qt,className:"editor-resize"}):null,p.a.createElement(S.a,null,et[Rt]?p.a.createElement(n.a,{centered:!0,title:et[Rt],visible:!0,onCancel:ne,footer:null},ie):null))}},RMFE:
|
|
|
/*!**********************************!*\
|
|
|
!*** ./src/assets/images/hb.png ***!
|
|
|
\**********************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICA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6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},SJMd:
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/code-prettify/src/prettify.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){window.PR_SHOULD_USE_CONTINUATION=!0,function(){var t=window,e=["break,continue,do,else,for,if,return,while"],i=[[e,"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"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],n=[i,"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"],r=[i,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],o=[i,"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"],a=[i,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="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",l=[e,"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"],c=[e,"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"],u=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],h=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/;function p(t,e,i,n,r){if(i){var o={sourceNode:t,pre:1,langExtension:null,numberLines:null,sourceCode:i,spans:null,basePos:e,decorations:null};n(o),r.push.apply(r,o.decorations)}}var d=/\S/;function f(t){for(var e=void 0,i=t.firstChild;i;i=i.nextSibling){var n=i.nodeType;e=1===n?e?t:i:3===n&&d.test(i.nodeValue)?t:e}return e===t?void 0:e}function m(t,e){var i,n={};!function(){for(var r=t.concat(e),o=[],a={},s=0,l=r.length;s<l;++s){var c=r[s],u=c[3];if(u)for(var h=u.length;--h>=0;)n[u.charAt(h)]=c;var p=c[1],d=""+p;a.hasOwnProperty(d)||(o.push(p),a[d]=null)}o.push(/[\0-\uffff]/),i=function(t){for(var e=0,i=!1,n=!1,r=0,o=t.length;r<o;++r){if((p=t[r]).ignoreCase)n=!0;else if(/[a-z]/i.test(p.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){i=!0,n=!1;break}}var a={b:8,t:9,n:10,v:11,f:12,r:13};function s(t){var e=t.charCodeAt(0);if(92!==e)return e;var i=t.charAt(1);return(e=a[i])||("0"<=i&&i<="7"?parseInt(t.substring(1),8):"u"===i||"x"===i?parseInt(t.substring(2),16):t.charCodeAt(1))}function l(t){if(t<32)return(t<16?"\\x0":"\\x")+t.toString(16);var e=String.fromCharCode(t);return"\\"===e||"-"===e||"]"===e||"^"===e?"\\"+e:e}function c(t){var e=t.substring(1,t.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")),i=[],n="^"===e[0],r=["["];n&&r.push("^");for(var o=n?1:0,a=e.length;o<a;++o){var c=e[o];if(/\\[bdsw]/i.test(c))r.push(c);else{var u,h=s(c);o+2<a&&"-"===e[o+1]?(u=s(e[o+2]),o+=2):u=h,i.push([h,u]),u<65||h>122||(u<65||h>90||i.push([32|Math.max(65,h),32|Math.min(u,90)]),u<97||h>122||i.push([-33&Math.max(97,h),-33&Math.min(u,122)]))}}i.sort((function(t,e){return t[0]-e[0]||e[1]-t[1]}));var p=[],d=[];for(o=0;o<i.length;++o){(f=i[o])[0]<=d[1]+1?d[1]=Math.max(d[1],f[1]):p.push(d=f)}for(o=0;o<p.length;++o){var f=p[o];r.push(l(f[0])),f[1]>f[0]&&(f[1]+1>f[0]&&r.push("-"),r.push(l(f[1])))}return r.push("]"),r.join("")}function u(t){for(var n=t.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")),r=n.length,o=[],a=0,s=0;a<r;++a){if("("===(h=n[a]))++s;else if("\\"===h.charAt(0)){(u=+h.substring(1))&&(u<=s?o[u]=-1:n[a]=l(u))}}for(a=1;a<o.length;++a)-1===o[a]&&(o[a]=++e);for(a=0,s=0;a<r;++a){if("("===(h=n[a]))o[++s]||(n[a]="(?:");else if("\\"===h.charAt(0)){var u;(u=+h.substring(1))&&u<=s&&(n[a]="\\"+o[u])}}for(a=0;a<r;++a)"^"===n[a]&&"^"!==n[a+1]&&(n[a]="");if(t.ignoreCase&&i)for(a=0;a<r;++a){var h,p=(h=n[a]).charAt(0);h.length>=2&&"["===p?n[a]=c(h):"\\"!==p&&(n[a]=h.replace(/[a-zA-Z]/g,(function(t){var e=t.charCodeAt(0);return"["+String.fromCharCode(-33&e,32|e)+"]"})))}return n.join("")}var h=[];for(r=0,o=t.length;r<o;++r){var p;if((p=t[r]).global||p.multiline)throw new Error(""+p);h.push("(?:"+u(p)+")")}return new RegExp(h.join("|"),n?"gi":"g")}(o)}();var r=e.length,o=function(t){for(var a=t.sourceCode,s=t.basePos,l=t.sourceNode,c=[s,"pln"],u=0,h=a.match(i)||[],d={},f=0,m=h.length;f<m;++f){var g,v=h[f],y=d[v],b=void 0;if("string"==typeof y)g=!1;else{var C=n[v.charAt(0)];if(C)b=v.match(C[1]),y=C[0];else{for(var k=0;k<r;++k)if(C=e[k],b=v.match(C[1])){y=C[0];break}b||(y="pln")}!(g=y.length>=5&&"lang-"===y.substring(0,5))||b&&"string"==typeof b[1]||(g=!1,y="src"),g||(d[v]=y)}var w=u;if(u+=v.length,g){var S=b[1],A=v.indexOf(S),E=A+S.length;b[2]&&(A=(E=v.length-b[2].length)-S.length);var O=y.substring(5);p(l,s+w,v.substring(0,A),o,c),p(l,s+w+A,S,x(O,S),c),p(l,s+w+E,v.substring(E),o,c)}else c.push(s+w,y)}t.decorations=c};return o}function g(t){var e=[],i=[];t.tripleQuotedStrings?e.push(["str",/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):t.multiLineStrings?e.push(["str",/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):e.push(["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),t.verbatimStrings&&i.push(["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var n=t.hashComments;n&&(t.cStyleComments?(n>1?e.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):e.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),i.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):e.push(["com",/^#[^\r\n]*/,null,"#"])),t.cStyleComments&&(i.push(["com",/^\/\/[^\r\n]*/,null]),i.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var r=t.regexLiterals;if(r){var o=r>1?"":"\n\r",a=o?".":"[\\S\\s]",s="/(?=[^/*"+o+"])(?:[^/\\x5B\\x5C"+o+"]|\\x5C"+a+"|\\x5B(?:[^\\x5C\\x5D"+o+"]|\\x5C"+a+")*(?:\\x5D|$))+/";i.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+s+")")])}var l=t.types;l&&i.push(["typ",l]);var c=(""+t.keywords).replace(/^ | $/g,"");c.length&&i.push(["kwd",new RegExp("^(?:"+c.replace(/[\s,]+/g,"|")+")\\b"),null]),e.push(["pln",/^\s+/,null," \r\n\t "]);var u="^.[^\\s\\w.$@'\"`/\\\\]*";return t.regexLiterals&&(u+="(?!s*/)"),i.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i,null],["lit",new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(u),null]),m(e,i)}var v=g({keywords:[n,o,r,a,s,l,c,u],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function y(t,e,i){for(var n=/(?:^|\s)nocode(?:\s|$)/,r=/\r\n?|\n/,o=t.ownerDocument,a=o.createElement("li");t.firstChild;)a.appendChild(t.firstChild);var s=[a];function l(t){var e=t.nodeType;if(1!=e||n.test(t.className)){if((3==e||4==e)&&i){var a=t.nodeValue,s=a.match(r);if(s){var u=a.substring(0,s.index);t.nodeValue=u;var h=a.substring(s.index+s[0].length);if(h)t.parentNode.insertBefore(o.createTextNode(h),t.nextSibling);c(t),u||t.parentNode.removeChild(t)}}}else if("br"===t.nodeName)c(t),t.parentNode&&t.parentNode.removeChild(t);else for(var p=t.firstChild;p;p=p.nextSibling)l(p)}function c(t){for(;!t.nextSibling;)if(!(t=t.parentNode))return;for(var e,i=function t(e,i){var n=i?e.cloneNode(!1):e,r=e.parentNode;if(r){var o=t(r,1),a=e.nextSibling;o.appendChild(n);for(var s=a;s;s=a)a=s.nextSibling,o.appendChild(s)}return n}(t.nextSibling,0);(e=i.parentNode)&&1===e.nodeType;)i=e;s.push(i)}for(var u=0;u<s.length;++u)l(s[u]);e===(0|e)&&s[0].setAttribute("value",e);var h=o.createElement("ol");h.className="linenums";for(var p=Math.max(0,e-1|0)||0,d=(u=0,s.length);u<d;++u)(a=s[u]).className="L"+(u+p)%10,a.firstChild||a.appendChild(o.createTextNode(" ")),h.appendChild(a);t.appendChild(h)}var b={};function C(e,i){for(var n=i.length;--n>=0;){var r=i[n];b.hasOwnProperty(r)?t.console&&console.warn("cannot override language handler %s",r):b[r]=e}}function x(t,e){return t&&b.hasOwnProperty(t)||(t=/^\s*</.test(e)?"default-markup":"default-code"),b[t]}function k(e){var i,n,r,o,a,s,l,c=e.langExtension;try{var u=(i=e.sourceNode,n=e.pre,r=/(?:^|\s)nocode(?:\s|$)/,o=[],a=0,s=[],l=0,function t(e){var i=e.nodeType;if(1==i){if(r.test(e.className))return;for(var c=e.firstChild;c;c=c.nextSibling)t(c);var u=e.nodeName.toLowerCase();"br"!==u&&"li"!==u||(o[l]="\n",s[l<<1]=a++,s[l++<<1|1]=e)}else if(3==i||4==i){var h=e.nodeValue;h.length&&(h=n?h.replace(/\r\n?/g,"\n"):h.replace(/[ \t\r\n]+/g," "),o[l]=h,s[l<<1]=a,a+=h.length,s[l++<<1|1]=e)}}(i),{sourceCode:o.join("").replace(/\n$/,""),spans:s}),h=u.sourceCode;e.sourceCode=h,e.spans=u.spans,e.basePos=0,x(c,h)(e),function(t){var e=/\bMSIE\s(\d+)/.exec(navigator.userAgent);e=e&&+e[1]<=8;var i,n,r=/\n/g,o=t.sourceCode,a=o.length,s=0,l=t.spans,c=l.length,u=0,h=t.decorations,p=h.length,d=0;for(h[p]=a,n=i=0;n<p;)h[n]!==h[n+2]?(h[i++]=h[n++],h[i++]=h[n++]):n+=2;for(p=i,n=i=0;n<p;){for(var f=h[n],m=h[n+1],g=n+2;g+2<=p&&h[g+1]===m;)g+=2;h[i++]=f,h[i++]=m,n=g}p=h.length=i;var v=t.sourceNode,y="";v&&(y=v.style.display,v.style.display="none");try{for(;u<c;){l[u];var b,C=l[u+2]||a,x=h[d+2]||a,k=(g=Math.min(C,x),l[u+1]);if(1!==k.nodeType&&(b=o.substring(s,g))){e&&(b=b.replace(r,"\r")),k.nodeValue=b;var w=k.ownerDocument,S=w.createElement("span");S.className=h[d+1];var A=k.parentNode;A.replaceChild(S,k),S.appendChild(k),s<C&&(l[u+1]=k=w.createTextNode(o.substring(g,C)),A.insertBefore(k,S.nextSibling))}(s=g)>=C&&(u+=2),s>=x&&(d+=2)}}finally{v&&(v.style.display=y)}}(e)}catch(e){t.console&&console.log(e&&e.stack||e)}}function w(t,e,i){var n=i||!1,r=e||null,o=document.createElement("div");return o.innerHTML="<pre>"+t+"</pre>",o=o.firstChild,n&&y(o,n,!0),k({langExtension:r,numberLines:n,sourceNode:o,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null}),o.innerHTML}function S(e,i){var n=i||document.body,r=n.ownerDocument||document;function o(t){return n.getElementsByTagName(t)}for(var a=[o("pre"),o("code"),o("xmp")],s=[],l=0;l<a.length;++l)for(var c=0,u=a[l].length;c<u;++c)s.push(a[l][c]);a=null;var h=Date;h.now||(h={now:function(){return+new Date}});var p=0,d=/\blang(?:uage)?-([\w.]+)(?!\S)/,m=/\bprettyprint\b/,g=/\bprettyprinted\b/,v=/pre|xmp/i,b=/^code$/i,C=/^(?:pre|code|xmp)$/i,x={};!function i(){for(var n=t.PR_SHOULD_USE_CONTINUATION?h.now()+250:1/0;p<s.length&&h.now()<n;p++){for(var o=s[p],a=x,l=o;l=l.previousSibling;){var c=l.nodeType,u=(7===c||8===c)&&l.nodeValue;if(u?!/^\??prettify\b/.test(u):3!==c||/\S/.test(l.nodeValue))break;if(u){a={},u.replace(/\b(\w+)=([\w:.%+-]+)/g,(function(t,e,i){a[e]=i}));break}}var w=o.className;if((a!==x||m.test(w))&&!g.test(w)){for(var S=!1,A=o.parentNode;A;A=A.parentNode){var E=A.tagName;if(C.test(E)&&A.className&&m.test(A.className)){S=!0;break}}if(!S){o.className+=" prettyprinted";var O,M,I=a.lang;if(!I)!(I=w.match(d))&&(O=f(o))&&b.test(O.tagName)&&(I=O.className.match(d)),I&&(I=I[1]);if(v.test(o.tagName))M=1;else{var T=o.currentStyle,N=r.defaultView,R=T?T.whiteSpace:N&&N.getComputedStyle?N.getComputedStyle(o,null).getPropertyValue("white-space"):0;M=R&&"pre"===R.substring(0,3)}var B=a.linenums;(B="true"===B||+B)||(B=!!(B=w.match(/\blinenums\b(?::(\d+))?/))&&(!B[1]||!B[1].length||+B[1])),B&&y(o,B,M),k({langExtension:I,sourceNode:o,numberLines:B,pre:M,sourceCode:null,basePos:null,spans:null,decorations:null})}}}p<s.length?t.setTimeout(i,250):"function"==typeof e&&e()}()}C(v,["default-code"]),C(m([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["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"]),C(m([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["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"]),C(m([],[["atv",/^[\s\S]+/]]),["uq.val"]),C(g({keywords:n,hashComments:!0,cStyleComments:!0,types:h}),["c","cc","cpp","cxx","cyc","m"]),C(g({keywords:"null,true,false"}),["json"]),C(g({keywords:o,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:h}),["cs"]),C(g({keywords:r,cStyleComments:!0}),["java"]),C(g({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),C(g({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),C(g({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),C(g({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),C(g({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),C(g({keywords:"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",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),C(m([],[["str",/^[\s\S]+/]]),["regex"]);var A=t.PR={createSimpleLexer:m,registerLangHandler:C,sourceDecorator:g,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:w,prettyPrint:S},E=t.define;"function"==typeof E&&E.amd&&E("google-code-prettify",[],(function(){return A}))}()},SMhR:
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./src/assets/images/teacherQQ.png ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkm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0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},TGq3:
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./src/assets/images/icons/lockclose.svg ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/lockclose.365036e8.svg"},UUDw:
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./src/components/FixedButton/index.less?modules ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},UeE2:
|
|
|
/*!*****************************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Edit/body/Level/Challenges/EditQuestion/index.tsx + 2 modules ***!
|
|
|
\*****************************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Shixuns/Edit/body/Level/Challenges/EditQuestion/components/AddQuestion/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Shixuns/Edit/body/Level/Challenges/EditQuestion/components/MultipleEditor/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Shixuns/Edit/body/Level/Challenges/EditQuestion/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/FixedButton/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/ImagesIcon/index.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/RenderHtml/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/markdown-editor/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Shixuns/Edit/body/Level/Challenges/components/Loading/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Shixuns/Edit/utils/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/exercise.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/shixuns.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/authority.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/select/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/select/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(t,e,i){"use strict";i.r(e);i("5NDa");var n=i("5rEg"),r=(i("2qtc"),i("kLXV")),o=(i("miYZ"),i("tsqr")),a=i("9og8"),s=i("k1fw"),l=(i("y8nQ"),i("Vl3Y")),c=i("tJVT"),u=i("PpiC"),h=(i("Znn+"),i("ZTPi")),p=i("WmNS"),d=i.n(p),f=i("q1tI"),m=i.n(f),g=i("9kvl"),v=i("Ot1p"),y=i("9Bee"),b=i("HBuW"),C=(i("+L6B"),i("2/Rp")),x=(i("14J3"),i("BMrR")),k=(i("jCWc"),i("kPKH")),w=(i("OaEy"),i("2fM7")),S=(i("7Kak"),i("9yH6")),A=i("1vsH"),E=i("uIXO"),O=i.n(E),M=(i("5Dmo"),i("3S7+")),I=i("oBTY"),T=i("Ty5D"),N=(i("V0Rq"),i("muJo")),R=i.n(N),B=["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"],D=function(t,e){t.problemset,t.globalSetting,t.loading,t.dispatch,t.onRef;var i=t.editData,n=(Object(u.a)(t,["problemset","globalSetting","loading","dispatch","onRef","editData"]),Object(f.useState)([])),r=Object(c.a)(n,2),o=r[0],s=r[1],l=Object(f.useState)(),h=Object(c.a)(l,2),p=h[0],g=h[1],b=Object(f.useState)([]),C=Object(c.a)(b,2),x=C[0],k=C[1],w=Object(f.useState)(""),S=Object(c.a)(w,2),A=S[0],E=S[1],O=Object(f.useState)(!1),N=Object(c.a)(O,2),D=N[0],L=N[1],j=Object(f.useState)(""),P=Object(c.a)(j,2),z=P[0],F=P[1],W=Object(f.useState)(5),V=Object(c.a)(W,2),H=(V[0],V[1]),G=Object(f.useState)(!1),U=Object(c.a)(G,2),Q=U[0],J=U[1];Object(T.i)();Object(f.useEffect)((function(){s(["","","",""])}),[]),Object(f.useEffect)((function(){console.log(o,"questionChoiceList")}),[o]),Object(f.useEffect)((function(){var t,e;if(null!=i&&i.challenge_id){E(null==i?void 0:i.subject),H(parseInt(null==i?void 0:i.question_score)),s(null==i||null===(t=i.choose_contents)||void 0===t?void 0:t.map((function(t){return t.option_name})));var n=[];null==i||null===(e=i.standard_answer)||void 0===e||e.split("").map((function(t,e){n.push(B.indexOf(t))})),k(n)}else J(!0)}),[i]),Object(f.useImperativeHandle)(e,(function(){return{onSave:q,onReset:Z,isEdit:Q}}));var K,Z=function(){s(["","","",""]),E(""),k([])},Y=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=Object(I.a)(t),i=e.sort(),n=0;n<i.length-1;n++)if(i[n]==i[n+1])return!0;return!1},q=function(){var t=Object(a.a)(d.a.mark((function t(){var e,i;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(A){t.next=4;break}return document.getElementById("question-scroll").scrollTo(0,0),L(!0),t.abrupt("return",!1);case 4:if(!((e=o.findIndex((function(t){return!t})))>-1)){t.next=9;break}return document.getElementById("question-scroll").scrollTo(0,250),F("请先输入 ".concat(B[e]," 选项的内容")),t.abrupt("return",!1);case 9:if(!Y(o)){t.next=13;break}return document.getElementById("question-scroll").scrollTo(0,250),F("选项已重复"),t.abrupt("return",!1);case 13:if(x.length){t.next=17;break}return document.getElementById("question-scroll").scrollTo(0,250),F("请设置本题的正确答案,点击选项A/B...即可完成设置"),t.abrupt("return",!1);case 17:return i=o.map((function(t,e){return{choice_text:t,is_answer:!!x.includes(e)}})),t.abrupt("return",{subject:A,question:{cnt:i.map((function(t){return t.choice_text}))},choice:{answer:i.map((function(t){return t.is_answer}))}});case 19:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return console.log(x,"activeAnswer"),m.a.createElement("section",{className:R.a.wrap},m.a.createElement("aside",null,m.a.createElement("p",{className:R.a.titleWrap},m.a.createElement("span",{className:R.a.required},"*"),m.a.createElement("span",{className:R.a.title},"题干:")),m.a.createElement(v.a,{id:"single-question-title",watch:!0,isFocus:!0,height:155,defaultValue:A,onChange:function(t){E(t),L(!1)}}),D&&m.a.createElement("div",{className:R.a.error},"请您输入题目"),m.a.createElement("p",{className:R.a.titleWrap},m.a.createElement("span",{className:R.a.required},"*"),m.a.createElement("span",{className:R.a.title},"答案选项:",m.a.createElement("span",{className:R.a.colorGray},"点击选项可设置正确答案"))),o.map((function(t,e){return m.a.createElement("div",{className:R.a.choiceWrap,key:e},m.a.createElement(M.a,{title:"点击设置为标准答案",placement:"left"},m.a.createElement("div",{className:"".concat(R.a.answer," ").concat(x.includes(e)?R.a.activeAnswer:""),onClick:function(){F(""),x.includes(e)?k(x.filter((function(t){return t!==e}))):k([].concat(Object(I.a)(x),[e]))}},B[e])),m.a.createElement("div",{className:R.a.editorWrap},p===e?m.a.createElement(v.a,{id:"single-question-option-".concat(e),watch:!0,isFocus:!0,height:155,defaultValue:t,onChange:function(t){F(""),o[e]=t,s(o)}}):m.a.createElement("div",{className:R.a.htmlWrap,onClick:function(){return g(e)}},m.a.createElement(y.a,{value:t}))),e>1&&m.a.createElement(M.a,{title:"删除"},m.a.createElement("i",{className:"".concat(R.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){s(o.filter((function(t,i){return i!==e})));var t=x.filter((function(t,i){return t!==e})).map((function(t){return t<e?t:t-1}));k(t)}})),e<7&&e===o.length-1&&m.a.createElement(M.a,{title:"新增参考答案"},m.a.createElement("i",{className:"".concat(R.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return s([].concat(Object(I.a)(o),[""]))}})))})),z&&m.a.createElement("div",{className:"".concat(R.a.error," mt10")},z),m.a.createElement("div",{className:"mt10"},m.a.createElement("span",{className:"c-grey-999"},"温馨提示:点击选项输入框可设置答案;选中的选项即为正确答案,选择多个答案即为多选题"),m.a.createElement("p",null,"标准答案:",m.a.createElement("span",{className:"c-light-primary"},null==x||null===(K=x.sort((function(t,e){return t-e})))||void 0===K?void 0:K.map((function(t){return B[t]})))))))},L=Object(g.a)((function(t){var e=t.problemset,i=t.loading;return{problemset:e,globalSetting:t.globalSetting,loading:i.effects}}),null,null,{forwardRef:!0})(Object(f.forwardRef)(D)),j=function(t){var e=t.visible,i=void 0!==e&&e,n=t.is_published,r=t.match,u=t.editData,h=t.onOk,p=t.onCancel,g=Object(f.useState)([10,20]),y=Object(c.a)(g,2),E=y[0],M=y[1],I=l.a.useForm(),T=Object(c.a)(I,1)[0],N=Object(f.useState)({}),R=Object(c.a)(N,2),B=R[0],D=R[1],j=Object(f.useRef)();Object(f.useEffect)((function(){return document.getElementById("modal-level-question").style.transform="none",function(){document.getElementById("modal-level-question").style.transform="translateX(0)"}}),[]),Object(f.useEffect)((function(){i&&u&&(T.setFieldsValue(Object(s.a)({},u)),M(P[u.difficult]))}),[i]);var P={1:[10,20],2:[30,40,50,60],3:[70,80,90,100]},z=function(){var t=Object(a.a)(d.a.mark((function t(){var e,i,n;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="",t.next=3,j.current.onSave();case 3:if(n=t.sent){t.next=6;break}return t.abrupt("return",!1);case 6:return null===(e=n.choice)||void 0===e||e.answer.map((function(t,e){t&&(i+=A.m[e])})),t.abrupt("return",{challenge_choose:{subject:n.subject,answer:B.task_pass,standard_answer:i,score:B.score,difficult:B.difficult},challenge_tag:B.challenge_tag,question:n.question,choice:n.choice});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),F=function(t){var e=P[t],i=null==e?void 0:e[0];M(e),T.setFieldsValue({score:i}),D(Object(s.a)(Object(s.a)({},T.getFieldsValue()),{score:i}))},W=function(){var t=Object(a.a)(d.a.mark((function t(e){var i;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,z();case 2:if(i=t.sent){t.next=5;break}return t.abrupt("return");case 5:if(!u){t.next=25;break}return t.t0=b.Mb,t.t1=s.a,t.t2=s.a,t.t3=s.a,t.t4={},t.next=13,i;case 13:return t.t5=t.sent,t.t6=(0,t.t3)(t.t4,t.t5),t.t7=r.params,t.t8=(0,t.t2)(t.t6,t.t7),t.t9={},t.t10={questionId:u.choose_id},t.t11=(0,t.t1)(t.t8,t.t9,t.t10),t.next=22,(0,t.t0)(t.t11);case 22:return t.sent.challenge_choose_id&&(o.b.success("操作成功"),h()),t.abrupt("return");case 25:return t.t12=b.c,t.t13=s.a,t.t14=s.a,t.t15={},t.next=31,i;case 31:return t.t16=t.sent,t.t17=(0,t.t14)(t.t15,t.t16),t.t18=r.params,t.t19=(0,t.t13)(t.t17,t.t18),t.next=37,(0,t.t12)(t.t19);case 37:t.sent.challenge_choose_id&&(o.b.success("操作成功"),h());case 39:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),V=function(){var t=Object(a.a)(d.a.mark((function t(){return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j.current.onSave();case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:T.submit();case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return m.a.createElement("div",{className:O.a.modal},m.a.createElement("div",{className:O.a.main},m.a.createElement("div",{className:O.a.title},m.a.createElement("span",{className:O.a.name},u?"编辑题目":"添加题目"),m.a.createElement("span",{className:O.a.edit,onClick:p}," ",m.a.createElement("i",{className:"iconfont icon-guanbi1"})," ")),m.a.createElement("div",{className:O.a.body,id:"question-scroll"},m.a.createElement(l.a,{form:T,className:O.a.form,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(t,e){D(Object(s.a)({},e)),"difficult"in t&&F(t.difficult)},onFinish:W,initialValues:{difficult:1,score:10}},m.a.createElement(L,{ref:j,editData:u}),m.a.createElement(l.a.Item,{name:"task_pass",label:"参考答案:",rules:[{required:!0,message:"请输入参考答案"},{max:35e3,message:"参考答案最大限制5000个字符"}]},m.a.createElement(v.a,{watch:!0,defaultValue:(null==u?void 0:u.answer)||""})),m.a.createElement(l.a.Item,{name:"difficult",label:"难度系数:",rules:[{required:!0,message:"请选择难度系数"}]},m.a.createElement(S.a.Group,{disabled:n},m.a.createElement(S.a,{value:1},"简单"),m.a.createElement(S.a,{style:{marginLeft:80},value:2},"中等"),m.a.createElement(S.a,{style:{marginLeft:80},className:"ml80",value:3},"困难"))),m.a.createElement(x.a,{className:"customAddItemSelect"},m.a.createElement(k.a,null,m.a.createElement(l.a.Item,{name:"score",label:"奖励金币:",rules:[{required:!0,message:"请选择奖励经验值"}]},m.a.createElement(w.a,{disabled:n,bordered:!1},E.map((function(t){return m.a.createElement(w.a.Option,{key:t,value:t},t)}))))),m.a.createElement(k.a,{style:{paddingTop:65}},m.a.createElement("div",{className:"font12 c-light-black ml10 mt20"},"学员正确答题时获得金币,并且获得等量的经验值。如:+100金币、+100经验值。"))))),m.a.createElement("div",{className:O.a.btns},m.a.createElement(C.a,{size:"large",style:{marginRight:20},onClick:p},"取消"),m.a.createElement(C.a,{size:"large",type:"primary",onClick:V},"保存"))))},P=i("mepR"),z=i.n(P),F=i("9ZNV"),W=i("nuEh"),V=i("UqFu"),H=i("lzim"),G=i("xKgJ"),U=h.a.TabPane;e.default=Object(g.a)((function(t){return{shixunsDetail:t.shixunsDetail,newCourse:t.newCourse,globalSetting:t.globalSetting,practiceSetting:t.practiceSetting}}))((function(t){var e,i,p=t.shixunsDetail,C=t.practiceSetting,x=t.dispatch,k=t.match,w=t.location,S=(Object(u.a)(t,["shixunsDetail","practiceSetting","dispatch","match","location"]),l.a.useForm()),A=Object(c.a)(S,1)[0],E=Object(f.useState)({}),O=Object(c.a)(E,2),M=O[0],I=O[1],T=Object(f.useState)([]),N=Object(c.a)(T,2),R=N[0],B=N[1],D=Object(f.useState)(!0),L=Object(c.a)(D,2),P=(L[0],L[1]),Q=Object(f.useState)(!0),J=Object(c.a)(Q,2),K=J[0],Z=J[1],Y=Object(f.useState)(!1),q=Object(c.a)(Y,2),X=q[0],_=q[1],$=Object(f.useState)(null),tt=Object(c.a)($,2),et=tt[0],it=tt[1],nt=Object(f.useState)(null),rt=Object(c.a)(nt,2),ot=(rt[0],rt[1]),at=Object(f.useState)("1"),st=Object(c.a)(at,2),lt=st[0],ct=st[1],ut=Object(f.useState)(1),ht=Object(c.a)(ut,2),pt=ht[0],dt=ht[1],ft=Object(f.useRef)({subject:"",task_pass:""}),mt=Object(f.useRef)(null),gt=C.is_published,vt=C.id,yt=p.challengesEdit,bt=["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(f.useEffect)((function(){var t;return null!=w&&null!==(t=w.query)&&void 0!==t&&t.tab&&ct(w.query.tab),Ct(),xt(),function(){clearTimeout(mt.current)}}),[w.pathname]);var Ct=function(){var t=Object(a.a)(d.a.mark((function t(){var e;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Z(!0),t.next=3,x({type:"shixunsDetail/getChallengesEdit",payload:Object(s.a)({},k.params)});case 3:e=t.sent,ot(Object(s.a)({},e)),ft.current={subject:e.subject,task_pass:Object(V.a)(e.task_pass),unity_3d_routes:e.unity_3d_routes},I(Object(s.a)({},ft.current)),A.setFieldsValue(Object(s.a)({},e)),Z(!1);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),xt=function(){var t=Object(a.a)(d.a.mark((function t(){var e;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return P(!0),t.next=3,Object(b.ab)(Object(s.a)({},k.params));case 3:e=t.sent,B(e.data),P(!1);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),kt=function(){var t=Object(a.a)(d.a.mark((function t(e){var i,n,r;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=!(!e.unity_3d_routes||""==e.unity_3d_routes),n=Object(s.a)(Object(s.a)(Object(s.a)({},e),k.params),{},{unity_3d_routes:i?e.unity_3d_routes:null,unity_3d:i}),t.next=4,Object(b.Lb)(n);case 4:0===(r=t.sent).status&&(o.b.success(r.message),x({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),x({type:"practiceSetting/setUpdateIndex"}),ct("2"),Et());case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),wt=function(){var t=Object(a.a)(d.a.mark((function t(e){return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(b.Hb)(Object(s.a)(Object(s.a)({},k.params),{},{questionId:e}));case 2:0===t.sent.status&&xt();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),St=function(){var t=Object(a.a)(d.a.mark((function t(e){return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(b.B)(Object(s.a)(Object(s.a)({},k.params),{},{questionId:e}));case 2:0===t.sent.status&&xt();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),At=function(){var t=Object(a.a)(d.a.mark((function t(e){var i;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(b.P)(Object(s.a)(Object(s.a)({},k.params),{},{questionId:e}));case 2:i=t.sent,it(Object(s.a)(Object(s.a)({},i),{},{choose_id:e})),_(!0);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Et=function(){dt(pt+1),Ct()},Ot=function(){var t,e=function(){g.d.push("/shixuns/".concat(vt,"/challenges")),x({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};null!=C&&null!==(t=C.sideBar)&&void 0!==t&&t.confirmLeave?r.a.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){e()}}):e()};return m.a.createElement("section",{className:z.a.bg,style:{marginBottom:"1"===lt?67:0}},m.a.createElement(h.a,{activeKey:lt,onChange:function(t){var e,i=function(){ct(t),Et(),x({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};null!=C&&null!==(e=C.sideBar)&&void 0!==e&&e.confirmLeave?r.a.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){i()}}):i()},tabBarExtraContent:"1"===lt?null:m.a.createElement("span",{className:z.a.addBtn,onClick:function(){return _(!0)}},m.a.createElement("i",{className:"iconfont icon-tianjiatimu"}),"添加题目")},m.a.createElement(U,{tab:"本关任务",key:"1"},m.a.createElement(l.a,{key:pt,form:A,scrollToFirstError:!0,className:z.a.formWrap,layout:"vertical",onValuesChange:function(t,e){I(Object(s.a)({},e)),clearTimeout(mt.current),mt.current=setTimeout((function(){var t=A.getFieldsValue(),e=t.subject,i=t.task_pass;""!==ft.current.subject&&(e!==ft.current.subject||i!==ft.current.task_pass?x({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):x({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}))}),500)},onFinish:kt},m.a.createElement("div",{className:z.a.fieldWrap},m.a.createElement(l.a.Item,{initialValue:"",name:"subject",label:"任务名称:",rules:[{required:!0,message:"请输入任务名称"}]},m.a.createElement(n.a,{bordered:!1,maxLength:60,suffix:"".concat((null===(e=M.subject)||void 0===e?void 0:e.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"}))),m.a.createElement("div",{className:z.a.mdWrap},m.a.createElement(l.a.Item,{name:"task_pass",label:"任务要求:",rules:[{required:!0,message:"请输入作业的简介"},{max:35e3,message:"作业简介最大限制5000个字符"}]},m.a.createElement(v.a,{key:k.params.challengesId||"3",watch:!0,defaultValue:yt.task_pass}))),m.a.createElement(l.a.Item,{noStyle:!0},m.a.createElement(F.a,{okButtonProps:{htmlType:"submit"},className:"customFixedButton",onCancel:function(){Ot()}})),Object(G.p)()&&m.a.createElement("div",{className:z.a.fieldWrap},m.a.createElement(l.a.Item,{initialValue:"",name:"unity_3d_routes",label:"嵌入第三方平台:"},m.a.createElement(n.a,{bordered:!1,maxLength:60,suffix:"".concat((null===(i=M.unity_3d_routes)||void 0===i?void 0:i.length)||0,"/60"),placeholder:"请输入第三方平台地址"}))))),m.a.createElement(U,{tab:"题目",key:"2"},!!R.length&&R.map((function(t,e){var i=t.challenge_choose_id,n=t.subject,l=t.choose_contents,c=t.standard_answer,u=t.answer,h=t.score,p=t.category;return m.a.createElement("div",{key:i,className:z.a.list},m.a.createElement("div",{className:z.a.top},m.a.createElement("div",{className:z.a.left},m.a.createElement("div",{className:z.a.title},m.a.createElement("div",{className:z.a.fs},e+1,". "),m.a.createElement(y.a,{value:n})),l.map((function(t,e){return m.a.createElement("ul",{key:e,className:t.right_key?z.a.qsActive:z.a.qs},m.a.createElement("li",null,bt[t.position]),m.a.createElement("li",null,m.a.createElement(y.a,{value:t.option_name})))}))),m.a.createElement("div",{className:z.a.right},m.a.createElement("i",{onClick:function(){return At(i)},className:"iconfont icon-xiaoxiugai"}),m.a.createElement("i",{onClick:function(){return t=i,e=function(){var e=Object(a.a)(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.v)(Object(s.a)(Object(s.a)({},k.params),{},{questionId:t}));case 2:e.sent.challenge_id&&(xt(),o.b.success("删除成功"));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),void r.a.confirm({title:"提示",content:"是否删除题目!",centered:!0,onOk:e});var t,e},className:"iconfont icon-shanchu23"}),e!==R.length-1&&m.a.createElement("i",{onClick:function(){return St(i)},className:"iconfont icon-xiayi2"}),0!==e&&m.a.createElement("i",{onClick:function(){return wt(i)},className:"iconfont icon-shangyi2"}))),m.a.createElement("div",{className:z.a.bt},"题型:",1===p?"单选题":"多选题"," 奖励金币:",h),m.a.createElement("div",{className:z.a.answer},m.a.createElement("p",null,"标准答案:",c),m.a.createElement("p",null,m.a.createElement("div",{className:z.a.fs},"参考答案:"),m.a.createElement(y.a,{value:u}))))})),!R.length&&m.a.createElement("div",{className:z.a.empty},m.a.createElement("img",{src:H.l,width:"258"}),m.a.createElement("span",{className:"c-grey-c"},"请点击右上角添加题目按钮进行题目的创建! ")))),X&&m.a.createElement(j,{is_published:gt,visible:X,onCancel:function(){_(!1),it(null)},onOk:function(){_(!1),it(null),xt()},match:k,editData:et}),m.a.createElement(W.a,{loading:K}))}))},UqFu:
|
|
|
/*!************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Edit/utils/index.tsx ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: formatCodemirrorValue */
|
|
|
/*! exports used: formatCodemirrorValue */function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=function(t){var e=document.createElement("textarea");return e.value=t,e.value}},"VrN/":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/codemirror/lib/codemirror.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,i=/gecko\/\d/i.test(t),n=/MSIE \d/.test(t),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=n||r||o,s=a&&(n?document.documentMode||6:+(o||r)[1]),l=!o&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!o&&/Chrome\//.test(t),h=/Opera\//.test(t),p=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),f=/PhantomJS/.test(t),m=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),g=/Android/.test(t),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=m||/Mac/.test(e),b=/\bCrOS\b/.test(t),C=/win/i.test(e),x=h&&t.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(h=!1,l=!0);var k=y&&(c||h&&(null==x||x<12.11)),w=i||a&&s>=9;function S(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var A,E=function(t,e){var i=t.className,n=S(e).exec(i);if(n){var r=i.slice(n.index+n[0].length);t.className=i.slice(0,n.index)+(r?n[1]+r:"")}};function O(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function M(t,e){return O(t).appendChild(e)}function I(t,e,i,n){var r=document.createElement(t);if(i&&(r.className=i),n&&(r.style.cssText=n),"string"==typeof e)r.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)r.appendChild(e[o]);return r}function T(t,e,i,n){var r=I(t,e,i,n);return r.setAttribute("role","presentation"),r}function N(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function R(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function B(t,e){var i=t.className;S(e).test(i)||(t.className+=(i?" ":"")+e)}function D(t,e){for(var i=t.split(" "),n=0;n<i.length;n++)i[n]&&!S(i[n]).test(e)&&(e+=" "+i[n]);return e}A=document.createRange?function(t,e,i,n){var r=document.createRange();return r.setEnd(n||t,i),r.setStart(t,e),r}:function(t,e,i){var n=document.body.createTextRange();try{n.moveToElementText(t.parentNode)}catch(t){return n}return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",e),n};var L=function(t){t.select()};function j(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function P(t,e,i){for(var n in e||(e={}),t)!t.hasOwnProperty(n)||!1===i&&e.hasOwnProperty(n)||(e[n]=t[n]);return e}function z(t,e,i,n,r){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=n||0,a=r||0;;){var s=t.indexOf("\t",o);if(s<0||s>=e)return a+(e-o);a+=s-o,a+=i-a%i,o=s+1}}m?L=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(L=function(t){try{t.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};function W(t,e){for(var i=0;i<t.length;++i)if(t[i]==e)return i;return-1}F.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},F.prototype.set=function(t,e){this.f=e;var i=+new Date+t;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=i)};var V={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},G={origin:"*mouse"},U={origin:"+move"};function Q(t,e,i){for(var n=0,r=0;;){var o=t.indexOf("\t",n);-1==o&&(o=t.length);var a=o-n;if(o==t.length||r+a>=e)return n+Math.min(a,e-r);if(r+=o-n,n=o+1,(r+=i-r%i)>=e)return n}}var J=[""];function K(t){for(;J.length<=t;)J.push(Z(J)+" ");return J[t]}function Z(t){return t[t.length-1]}function Y(t,e){for(var i=[],n=0;n<t.length;n++)i[n]=e(t[n],n);return i}function q(){}function X(t,e){var i;return Object.create?i=Object.create(t):(q.prototype=t,i=new q),e&&P(e,i),i}var _=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function $(t){return/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||_.test(t))}function tt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&$(t))||e.test(t):$(t)}function et(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var it=/[\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 nt(t){return t.charCodeAt(0)>=768&&it.test(t)}function rt(t,e,i){for(;(i<0?e>0:e<t.length)&&nt(t.charAt(e));)e+=i;return e}function ot(t,e,i){for(var n=e>i?-1:1;;){if(e==i)return e;var r=(e+i)/2,o=n<0?Math.ceil(r):Math.floor(r);if(o==e)return t(o)?e:i;t(o)?i=o:e=o+n}}var at=null;function st(t,e,i){var n;at=null;for(var r=0;r<t.length;++r){var o=t[r];if(o.from<e&&o.to>e)return r;o.to==e&&(o.from!=o.to&&"before"==i?n=r:at=r),o.from==e&&(o.from!=o.to&&"before"!=i?n=r:at=r)}return null!=n?n:at}var lt=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,i=/[LRr]/,n=/[Lb1n]/,r=/[1n]/;function o(t,e,i){this.level=t,this.from=e,this.to=i}return function(a,s){var l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!t.test(a))return!1;for(var c,u=a.length,h=[],p=0;p<u;++p)h.push((c=a.charCodeAt(p))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":8204==c?"b":"L");for(var d=0,f=l;d<u;++d){var m=h[d];"m"==m?h[d]=f:f=m}for(var g=0,v=l;g<u;++g){var y=h[g];"1"==y&&"r"==v?h[g]="n":i.test(y)&&(v=y,"r"==y&&(h[g]="R"))}for(var b=1,C=h[0];b<u-1;++b){var x=h[b];"+"==x&&"1"==C&&"1"==h[b+1]?h[b]="1":","!=x||C!=h[b+1]||"1"!=C&&"n"!=C||(h[b]=C),C=x}for(var k=0;k<u;++k){var w=h[k];if(","==w)h[k]="N";else if("%"==w){var S=void 0;for(S=k+1;S<u&&"%"==h[S];++S);for(var A=k&&"!"==h[k-1]||S<u&&"1"==h[S]?"1":"N",E=k;E<S;++E)h[E]=A;k=S-1}}for(var O=0,M=l;O<u;++O){var I=h[O];"L"==M&&"1"==I?h[O]="L":i.test(I)&&(M=I)}for(var T=0;T<u;++T)if(e.test(h[T])){var N=void 0;for(N=T+1;N<u&&e.test(h[N]);++N);for(var R="L"==(T?h[T-1]:l),B=R==("L"==(N<u?h[N]:l))?R?"L":"R":l,D=T;D<N;++D)h[D]=B;T=N-1}for(var L,j=[],P=0;P<u;)if(n.test(h[P])){var z=P;for(++P;P<u&&n.test(h[P]);++P);j.push(new o(0,z,P))}else{var F=P,W=j.length,V="rtl"==s?1:0;for(++P;P<u&&"L"!=h[P];++P);for(var H=F;H<P;)if(r.test(h[H])){F<H&&(j.splice(W,0,new o(1,F,H)),W+=V);var G=H;for(++H;H<P&&r.test(h[H]);++H);j.splice(W,0,new o(2,G,H)),W+=V,F=H}else++H;F<P&&j.splice(W,0,new o(1,F,P))}return"ltr"==s&&(1==j[0].level&&(L=a.match(/^\s+/))&&(j[0].from=L[0].length,j.unshift(new o(0,0,L[0].length))),1==Z(j).level&&(L=a.match(/\s+$/))&&(Z(j).to-=L[0].length,j.push(new o(0,u-L[0].length,u)))),"rtl"==s?j.reverse():j}}();function ct(t,e){var i=t.order;return null==i&&(i=t.order=lt(t.text,e)),i}var ut=[],ht=function(t,e,i){if(t.addEventListener)t.addEventListener(e,i,!1);else if(t.attachEvent)t.attachEvent("on"+e,i);else{var n=t._handlers||(t._handlers={});n[e]=(n[e]||ut).concat(i)}};function pt(t,e){return t._handlers&&t._handlers[e]||ut}function dt(t,e,i){if(t.removeEventListener)t.removeEventListener(e,i,!1);else if(t.detachEvent)t.detachEvent("on"+e,i);else{var n=t._handlers,r=n&&n[e];if(r){var o=W(r,i);o>-1&&(n[e]=r.slice(0,o).concat(r.slice(o+1)))}}}function ft(t,e){var i=pt(t,e);if(i.length)for(var n=Array.prototype.slice.call(arguments,2),r=0;r<i.length;++r)i[r].apply(null,n)}function mt(t,e,i){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),ft(t,i||e.type,t,e),xt(e)||e.codemirrorIgnore}function gt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var i=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),n=0;n<e.length;++n)-1==W(i,e[n])&&i.push(e[n])}function vt(t,e){return pt(t,e).length>0}function yt(t){t.prototype.on=function(t,e){ht(this,t,e)},t.prototype.off=function(t,e){dt(this,t,e)}}function bt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ct(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function xt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function kt(t){bt(t),Ct(t)}function wt(t){return t.target||t.srcElement}function St(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var At,Et,Ot=function(){if(a&&s<9)return!1;var t=I("div");return"draggable"in t||"dragDrop"in t}();function Mt(t){if(null==At){var e=I("span","");M(t,I("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(At=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var i=At?I("span",""):I("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function It(t){if(null!=Et)return Et;var e=M(t,document.createTextNode("AخA")),i=A(e,0,1).getBoundingClientRect(),n=A(e,1,2).getBoundingClientRect();return O(t),!(!i||i.left==i.right)&&(Et=n.right-i.right<3)}var Tt,Nt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,i=[],n=t.length;e<=n;){var r=t.indexOf("\n",e);-1==r&&(r=t.length);var o=t.slice(e,"\r"==t.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(i.push(o.slice(0,a)),e+=a+1):(i.push(o),e=r+1)}return i}:function(t){return t.split(/\r\n?|\n/)},Rt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Bt="oncopy"in(Tt=I("div"))||(Tt.setAttribute("oncopy","return;"),"function"==typeof Tt.oncopy),Dt=null,Lt={},jt={};function Pt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Lt[t]=e}function zt(t){if("string"==typeof t&&jt.hasOwnProperty(t))t=jt[t];else if(t&&"string"==typeof t.name&&jt.hasOwnProperty(t.name)){var e=jt[t.name];"string"==typeof e&&(e={name:e}),(t=X(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return zt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return zt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ft(t,e){e=zt(e);var i=Lt[e.name];if(!i)return Ft(t,"text/plain");var n=i(t,e);if(Wt.hasOwnProperty(e.name)){var r=Wt[e.name];for(var o in r)r.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=r[o])}if(n.name=e.name,e.helperType&&(n.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)n[a]=e.modeProps[a];return n}var Wt={};function Vt(t,e){P(e,Wt.hasOwnProperty(t)?Wt[t]:Wt[t]={})}function Ht(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var i={};for(var n in e){var r=e[n];r instanceof Array&&(r=r.concat([])),i[n]=r}return i}function Gt(t,e){for(var i;t.innerMode&&(i=t.innerMode(e))&&i.mode!=t;)e=i.state,t=i.mode;return i||{mode:t,state:e}}function Ut(t,e,i){return!t.startState||t.startState(e,i)}var Qt=function(t,e,i){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};function Jt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var i=t;!i.lines;)for(var n=0;;++n){var r=i.children[n],o=r.chunkSize();if(e<o){i=r;break}e-=o}return i.lines[e]}function Kt(t,e,i){var n=[],r=e.line;return t.iter(e.line,i.line+1,(function(t){var o=t.text;r==i.line&&(o=o.slice(0,i.ch)),r==e.line&&(o=o.slice(e.ch)),n.push(o),++r})),n}function Zt(t,e,i){var n=[];return t.iter(e,i,(function(t){n.push(t.text)})),n}function Yt(t,e){var i=e-t.height;if(i)for(var n=t;n;n=n.parent)n.height+=i}function qt(t){if(null==t.parent)return null;for(var e=t.parent,i=W(e.lines,t),n=e.parent;n;e=n,n=n.parent)for(var r=0;n.children[r]!=e;++r)i+=n.children[r].chunkSize();return i+e.first}function Xt(t,e){var i=t.first;t:do{for(var n=0;n<t.children.length;++n){var r=t.children[n],o=r.height;if(e<o){t=r;continue t}e-=o,i+=r.chunkSize()}return i}while(!t.lines);for(var a=0;a<t.lines.length;++a){var s=t.lines[a].height;if(e<s)break;e-=s}return i+a}function _t(t,e){return e>=t.first&&e<t.first+t.size}function $t(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function te(t,e,i){if(void 0===i&&(i=null),!(this instanceof te))return new te(t,e,i);this.line=t,this.ch=e,this.sticky=i}function ee(t,e){return t.line-e.line||t.ch-e.ch}function ie(t,e){return t.sticky==e.sticky&&0==ee(t,e)}function ne(t){return te(t.line,t.ch)}function re(t,e){return ee(t,e)<0?e:t}function oe(t,e){return ee(t,e)<0?t:e}function ae(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function se(t,e){if(e.line<t.first)return te(t.first,0);var i=t.first+t.size-1;return e.line>i?te(i,Jt(t,i).text.length):function(t,e){var i=t.ch;return null==i||i>e?te(t.line,e):i<0?te(t.line,0):t}(e,Jt(t,e.line).text.length)}function le(t,e){for(var i=[],n=0;n<e.length;n++)i[n]=se(t,e[n]);return i}Qt.prototype.eol=function(){return this.pos>=this.string.length},Qt.prototype.sol=function(){return this.pos==this.lineStart},Qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Qt.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},Qt.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},Qt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Qt.prototype.skipToEnd=function(){this.pos=this.string.length},Qt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Qt.prototype.backUp=function(t){this.pos-=t},Qt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Qt.prototype.indentation=function(){return z(this.string,null,this.tabSize)-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Qt.prototype.match=function(t,e,i){if("string"!=typeof t){var n=this.string.slice(this.pos).match(t);return n&&n.index>0?null:(n&&!1!==e&&(this.pos+=n[0].length),n)}var r=function(t){return i?t.toLowerCase():t};if(r(this.string.substr(this.pos,t.length))==r(t))return!1!==e&&(this.pos+=t.length),!0},Qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Qt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Qt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ce=function(t,e){this.state=t,this.lookAhead=e},ue=function(t,e,i,n){this.state=e,this.doc=t,this.line=i,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function he(t,e,i,n){var r=[t.state.modeGen],o={};Ce(t,e.text,t.doc.mode,i,(function(t,e){return r.push(t,e)}),o,n);for(var a=i.state,s=function(n){i.baseTokens=r;var s=t.state.overlays[n],l=1,c=0;i.state=!0,Ce(t,e.text,s.mode,i,(function(t,e){for(var i=l;c<t;){var n=r[l];n>t&&r.splice(l,1,t,r[l+1],n),l+=2,c=Math.min(t,n)}if(e)if(s.opaque)r.splice(i,l-i,t,"overlay "+e),l=i+2;else for(;i<l;i+=2){var o=r[i+1];r[i+1]=(o?o+" ":"")+"overlay "+e}}),o),i.state=a,i.baseTokens=null,i.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)s(l);return{styles:r,classes:o.bgClass||o.textClass?o:null}}function pe(t,e,i){if(!e.styles||e.styles[0]!=t.state.modeGen){var n=de(t,qt(e)),r=e.text.length>t.options.maxHighlightLength&&Ht(t.doc.mode,n.state),o=he(t,e,n);r&&(n.state=r),e.stateAfter=n.save(!r),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),i===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function de(t,e,i){var n=t.doc,r=t.display;if(!n.mode.startState)return new ue(n,!0,e);var o=function(t,e,i){for(var n,r,o=t.doc,a=i?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=o.first)return o.first;var l=Jt(o,s-1),c=l.stateAfter;if(c&&(!i||s+(c instanceof ce?c.lookAhead:0)<=o.modeFrontier))return s;var u=z(l.text,null,t.options.tabSize);(null==r||n>u)&&(r=s-1,n=u)}return r}(t,e,i),a=o>n.first&&Jt(n,o-1).stateAfter,s=a?ue.fromSaved(n,a,o):new ue(n,Ut(n.mode),o);return n.iter(o,e,(function(i){fe(t,i.text,s);var n=s.line;i.stateAfter=n==e-1||n%5==0||n>=r.viewFrom&&n<r.viewTo?s.save():null,s.nextLine()})),i&&(n.modeFrontier=s.line),s}function fe(t,e,i,n){var r=t.doc.mode,o=new Qt(e,t.options.tabSize,i);for(o.start=o.pos=n||0,""==e&&me(r,i.state);!o.eol();)ge(r,o,i.state),o.start=o.pos}function me(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var i=Gt(t,e);return i.mode.blankLine?i.mode.blankLine(i.state):void 0}}function ge(t,e,i,n){for(var r=0;r<10;r++){n&&(n[0]=Gt(t,i).mode);var o=t.token(e,i);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}ue.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ue.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ue.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ue.fromSaved=function(t,e,i){return e instanceof ce?new ue(t,Ht(t.mode,e.state),i,e.lookAhead):new ue(t,Ht(t.mode,e),i)},ue.prototype.save=function(t){var e=!1!==t?Ht(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ce(e,this.maxLookAhead):e};var ve=function(t,e,i){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=i};function ye(t,e,i,n){var r,o,a=t.doc,s=a.mode,l=Jt(a,(e=se(a,e)).line),c=de(t,e.line,i),u=new Qt(l.text,t.options.tabSize,c);for(n&&(o=[]);(n||u.pos<e.ch)&&!u.eol();)u.start=u.pos,r=ge(s,u,c.state),n&&o.push(new ve(u,r,Ht(a.mode,c.state)));return n?o:new ve(u,r,c.state)}function be(t,e){if(t)for(;;){var i=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;t=t.slice(0,i.index)+t.slice(i.index+i[0].length);var n=i[1]?"bgClass":"textClass";null==e[n]?e[n]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(e[n])||(e[n]+=" "+i[2])}return t}function Ce(t,e,i,n,r,o,a){var s=i.flattenSpans;null==s&&(s=t.options.flattenSpans);var l,c=0,u=null,h=new Qt(e,t.options.tabSize,n),p=t.options.addModeClass&&[null];for(""==e&&be(me(i,n.state),o);!h.eol();){if(h.pos>t.options.maxHighlightLength?(s=!1,a&&fe(t,e,n,h.pos),h.pos=e.length,l=null):l=be(ge(i,h,n.state,p),o),p){var d=p[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!s||u!=l){for(;c<h.start;)r(c=Math.min(h.start,c+5e3),u);u=l}h.start=h.pos}for(;c<h.pos;){var f=Math.min(h.pos,c+5e3);r(f,u),c=f}}var xe=!1,ke=!1;function we(t,e,i){this.marker=t,this.from=e,this.to=i}function Se(t,e){if(t)for(var i=0;i<t.length;++i){var n=t[i];if(n.marker==e)return n}}function Ae(t,e){for(var i,n=0;n<t.length;++n)t[n]!=e&&(i||(i=[])).push(t[n]);return i}function Ee(t,e){if(e.full)return null;var i=_t(t,e.from.line)&&Jt(t,e.from.line).markedSpans,n=_t(t,e.to.line)&&Jt(t,e.to.line).markedSpans;if(!i&&!n)return null;var r=e.from.ch,o=e.to.ch,a=0==ee(e.from,e.to),s=function(t,e,i){var n;if(t)for(var r=0;r<t.length;++r){var o=t[r],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e)||o.from==e&&"bookmark"==a.type&&(!i||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=e:o.to>e);(n||(n=[])).push(new we(a,o.from,s?null:o.to))}}return n}(i,r,a),l=function(t,e,i){var n;if(t)for(var r=0;r<t.length;++r){var o=t[r],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=e:o.to>e)||o.from==e&&"bookmark"==a.type&&(!i||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e);(n||(n=[])).push(new we(a,s?null:o.from-e,null==o.to?null:o.to-e))}}return n}(n,o,a),c=1==e.text.length,u=Z(e.text).length+(c?r:0);if(s)for(var h=0;h<s.length;++h){var p=s[h];if(null==p.to){var d=Se(l,p.marker);d?c&&(p.to=null==d.to?null:d.to+u):p.to=r}}if(l)for(var f=0;f<l.length;++f){var m=l[f];null!=m.to&&(m.to+=u),null==m.from?Se(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m)):(m.from+=u,c&&(s||(s=[])).push(m))}s&&(s=Oe(s)),l&&l!=s&&(l=Oe(l));var g=[s];if(!c){var v,y=e.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new we(s[b].marker,null,null));for(var C=0;C<y;++C)g.push(v);g.push(l)}return g}function Oe(t){for(var e=0;e<t.length;++e){var i=t[e];null!=i.from&&i.from==i.to&&!1!==i.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Me(t){var e=t.markedSpans;if(e){for(var i=0;i<e.length;++i)e[i].marker.detachLine(t);t.markedSpans=null}}function Ie(t,e){if(e){for(var i=0;i<e.length;++i)e[i].marker.attachLine(t);t.markedSpans=e}}function Te(t){return t.inclusiveLeft?-1:0}function Ne(t){return t.inclusiveRight?1:0}function Re(t,e){var i=t.lines.length-e.lines.length;if(0!=i)return i;var n=t.find(),r=e.find(),o=ee(n.from,r.from)||Te(t)-Te(e);if(o)return-o;var a=ee(n.to,r.to)||Ne(t)-Ne(e);return a||e.id-t.id}function Be(t,e){var i,n=ke&&t.markedSpans;if(n)for(var r=void 0,o=0;o<n.length;++o)(r=n[o]).marker.collapsed&&null==(e?r.from:r.to)&&(!i||Re(i,r.marker)<0)&&(i=r.marker);return i}function De(t){return Be(t,!0)}function Le(t){return Be(t,!1)}function je(t,e){var i,n=ke&&t.markedSpans;if(n)for(var r=0;r<n.length;++r){var o=n[r];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!i||Re(i,o.marker)<0)&&(i=o.marker)}return i}function Pe(t,e,i,n,r){var o=Jt(t,e),a=ke&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=ee(c.from,i)||Te(l.marker)-Te(r),h=ee(c.to,n)||Ne(l.marker)-Ne(r);if(!(u>=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ee(c.to,i)>=0:ee(c.to,i)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ee(c.from,n)<=0:ee(c.from,n)<0)))return!0}}}function ze(t){for(var e;e=De(t);)t=e.find(-1,!0).line;return t}function Fe(t,e){var i=Jt(t,e),n=ze(i);return i==n?e:qt(n)}function We(t,e){if(e>t.lastLine())return e;var i,n=Jt(t,e);if(!Ve(t,n))return e;for(;i=Le(n);)n=i.find(1,!0).line;return qt(n)+1}function Ve(t,e){var i=ke&&e.markedSpans;if(i)for(var n=void 0,r=0;r<i.length;++r)if((n=i[r]).marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&He(t,e,n))return!0}}function He(t,e,i){if(null==i.to){var n=i.marker.find(1,!0);return He(t,n.line,Se(n.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==e.text.length)return!0;for(var r=void 0,o=0;o<e.markedSpans.length;++o)if((r=e.markedSpans[o]).marker.collapsed&&!r.marker.widgetNode&&r.from==i.to&&(null==r.to||r.to!=i.from)&&(r.marker.inclusiveLeft||i.marker.inclusiveRight)&&He(t,e,r))return!0}function Ge(t){for(var e=0,i=(t=ze(t)).parent,n=0;n<i.lines.length;++n){var r=i.lines[n];if(r==t)break;e+=r.height}for(var o=i.parent;o;o=(i=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==i)break;e+=s.height}return e}function Ue(t){if(0==t.height)return 0;for(var e,i=t.text.length,n=t;e=De(n);){var r=e.find(0,!0);n=r.from.line,i+=r.from.ch-r.to.ch}for(n=t;e=Le(n);){var o=e.find(0,!0);i-=n.text.length-o.from.ch,i+=(n=o.to.line).text.length-o.to.ch}return i}function Qe(t){var e=t.display,i=t.doc;e.maxLine=Jt(i,i.first),e.maxLineLength=Ue(e.maxLine),e.maxLineChanged=!0,i.iter((function(t){var i=Ue(t);i>e.maxLineLength&&(e.maxLineLength=i,e.maxLine=t)}))}var Je=function(t,e,i){this.text=t,Ie(this,e),this.height=i?i(this):1};function Ke(t){t.parent=null,Me(t)}Je.prototype.lineNo=function(){return qt(this)},yt(Je);var Ze={},Ye={};function qe(t,e){if(!t||/^\s*$/.test(t))return null;var i=e.addModeClass?Ye:Ze;return i[t]||(i[t]=t.replace(/\S+/g,"cm-$&"))}function Xe(t,e){var i=T("span",null,null,l?"padding-right: .1px":null),n={pre:T("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var r=0;r<=(e.rest?e.rest.length:0);r++){var o=r?e.rest[r-1]:e.line,a=void 0;n.pos=0,n.addToken=$e,It(t.display.measure)&&(a=ct(o,t.doc.direction))&&(n.addToken=ti(n.addToken,a)),n.map=[],ii(o,n,pe(t,o,e!=t.display.externalMeasured&&qt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=D(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=D(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Mt(t.display.measure))),0==r?(e.measure.map=n.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(n.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return ft(t,"renderLine",t,e.line,n.pre),n.pre.className&&(n.textClass=D(n.pre.className,n.textClass||"")),n}function _e(t){var e=I("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function $e(t,e,i,n,r,o,l){if(e){var c,u=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var i=e,n="",r=0;r<t.length;r++){var o=t.charAt(r);" "!=o||!i||r!=t.length-1&&32!=t.charCodeAt(r+1)||(o=" "),n+=o,i=" "==o}return n}(e,t.trailingSpace):e,h=t.cm.state.specialChars,p=!1;if(h.test(e)){c=document.createDocumentFragment();for(var d=0;;){h.lastIndex=d;var f=h.exec(e),m=f?f.index-d:e.length-d;if(m){var g=document.createTextNode(u.slice(d,d+m));a&&s<9?c.appendChild(I("span",[g])):c.appendChild(g),t.map.push(t.pos,t.pos+m,g),t.col+=m,t.pos+=m}if(!f)break;d+=m+1;var v=void 0;if("\t"==f[0]){var y=t.cm.options.tabSize,b=y-t.col%y;(v=c.appendChild(I("span",K(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),t.col+=b}else"\r"==f[0]||"\n"==f[0]?((v=c.appendChild(I("span","\r"==f[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",f[0]),t.col+=1):((v=t.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),a&&s<9?c.appendChild(I("span",[v])):c.appendChild(v),t.col+=1);t.map.push(t.pos,t.pos+1,v),t.pos++}}else t.col+=e.length,c=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,c),a&&s<9&&(p=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),i||n||r||p||o||l){var C=i||"";n&&(C+=n),r&&(C+=r);var x=I("span",[c],C,o);if(l)for(var k in l)l.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&x.setAttribute(k,l[k]);return t.content.appendChild(x)}t.content.appendChild(c)}}function ti(t,e){return function(i,n,r,o,a,s,l){r=r?r+" cm-force-border":"cm-force-border";for(var c=i.pos,u=c+n.length;;){for(var h=void 0,p=0;p<e.length&&!((h=e[p]).to>c&&h.from<=c);p++);if(h.to>=u)return t(i,n,r,o,a,s,l);t(i,n.slice(0,h.to-c),r,o,null,s,l),o=null,n=n.slice(h.to-c),c=h.to}}}function ei(t,e,i,n){var r=!n&&i.widgetNode;r&&t.map.push(t.pos,t.pos+e,r),!n&&t.cm.display.input.needsContentAttribute&&(r||(r=t.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",i.id)),r&&(t.cm.display.input.setUneditable(r),t.content.appendChild(r)),t.pos+=e,t.trailingSpace=!1}function ii(t,e,i){var n=t.markedSpans,r=t.text,o=0;if(n)for(var a,s,l,c,u,h,p,d=r.length,f=0,m=1,g="",v=0;;){if(v==f){l=c=u=s="",p=null,h=null,v=1/0;for(var y=[],b=void 0,C=0;C<n.length;++C){var x=n[C],k=x.marker;if("bookmark"==k.type&&x.from==f&&k.widgetNode)y.push(k);else if(x.from<=f&&(null==x.to||x.to>f||k.collapsed&&x.to==f&&x.from==f)){if(null!=x.to&&x.to!=f&&v>x.to&&(v=x.to,c=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&x.from==f&&(u+=" "+k.startStyle),k.endStyle&&x.to==v&&(b||(b=[])).push(k.endStyle,x.to),k.title&&((p||(p={})).title=k.title),k.attributes)for(var w in k.attributes)(p||(p={}))[w]=k.attributes[w];k.collapsed&&(!h||Re(h.marker,k)<0)&&(h=x)}else x.from>f&&v>x.from&&(v=x.from)}if(b)for(var S=0;S<b.length;S+=2)b[S+1]==v&&(c+=" "+b[S]);if(!h||h.from==f)for(var A=0;A<y.length;++A)ei(e,0,y[A]);if(h&&(h.from||0)==f){if(ei(e,(null==h.to?d+1:h.to)-f,h.marker,null==h.from),null==h.to)return;h.to==f&&(h=!1)}}if(f>=d)break;for(var E=Math.min(d,v);;){if(g){var O=f+g.length;if(!h){var M=O>E?g.slice(0,E-f):g;e.addToken(e,M,a?a+l:l,u,f+M.length==v?c:"",s,p)}if(O>=E){g=g.slice(E-f),f=E;break}f=O,u=""}g=r.slice(o,o=i[m++]),a=qe(i[m++],e.cm.options)}}else for(var I=1;I<i.length;I+=2)e.addToken(e,r.slice(o,o=i[I]),qe(i[I+1],e.cm.options))}function ni(t,e,i){this.line=e,this.rest=function(t){for(var e,i;e=Le(t);)t=e.find(1,!0).line,(i||(i=[])).push(t);return i}(e),this.size=this.rest?qt(Z(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Ve(t,e)}function ri(t,e,i){for(var n,r=[],o=e;o<i;o=n){var a=new ni(t.doc,Jt(t.doc,o),o);n=o+a.size,r.push(a)}return r}var oi=null,ai=null;function si(t,e){var i=pt(t,e);if(i.length){var n,r=Array.prototype.slice.call(arguments,2);oi?n=oi.delayedCallbacks:ai?n=ai:(n=ai=[],setTimeout(li,0));for(var o=function(t){n.push((function(){return i[t].apply(null,r)}))},a=0;a<i.length;++a)o(a)}}function li(){var t=ai;ai=null;for(var e=0;e<t.length;++e)t[e]()}function ci(t,e,i,n){for(var r=0;r<e.changes.length;r++){var o=e.changes[r];"text"==o?pi(t,e):"gutter"==o?fi(t,e,i,n):"class"==o?di(t,e):"widget"==o&&mi(t,e,n)}e.changes=null}function ui(t){return t.node==t.text&&(t.node=I("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),a&&s<8&&(t.node.style.zIndex=2)),t.node}function hi(t,e){var i=t.display.externalMeasured;return i&&i.line==e.line?(t.display.externalMeasured=null,e.measure=i.measure,i.built):Xe(t,e)}function pi(t,e){var i=e.text.className,n=hi(t,e);e.text==e.node&&(e.node=n.pre),e.text.parentNode.replaceChild(n.pre,e.text),e.text=n.pre,n.bgClass!=e.bgClass||n.textClass!=e.textClass?(e.bgClass=n.bgClass,e.textClass=n.textClass,di(t,e)):i&&(e.text.className=i)}function di(t,e){!function(t,e){var i=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),e.background)i?e.background.className=i:(e.background.parentNode.removeChild(e.background),e.background=null);else if(i){var n=ui(e);e.background=n.insertBefore(I("div",null,i),n.firstChild),t.display.input.setUneditable(e.background)}}(t,e),e.line.wrapClass?ui(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var i=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=i||""}function fi(t,e,i,n){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var r=ui(e);e.gutterBackground=I("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),r.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var a=ui(e),s=e.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(t.display.input.setUneditable(s),a.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(I("div",$t(t.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<t.display.gutterSpecs.length;++l){var c=t.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(I("div",[u],"CodeMirror-gutter-elt","left: "+n.gutterLeft[c]+"px; width: "+n.gutterWidth[c]+"px"))}}}function mi(t,e,i){e.alignable&&(e.alignable=null);for(var n=S("CodeMirror-linewidget"),r=e.node.firstChild,o=void 0;r;r=o)o=r.nextSibling,n.test(r.className)&&e.node.removeChild(r);vi(t,e,i)}function gi(t,e,i,n){var r=hi(t,e);return e.text=e.node=r.pre,r.bgClass&&(e.bgClass=r.bgClass),r.textClass&&(e.textClass=r.textClass),di(t,e),fi(t,e,i,n),vi(t,e,n),e.node}function vi(t,e,i){if(yi(t,e.line,e,i,!0),e.rest)for(var n=0;n<e.rest.length;n++)yi(t,e.rest[n],e,i,!1)}function yi(t,e,i,n,r){if(e.widgets)for(var o=ui(i),a=0,s=e.widgets;a<s.length;++a){var l=s[a],c=I("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),bi(l,c,i,n),t.display.input.setUneditable(c),r&&l.above?o.insertBefore(c,i.gutter||i.text):o.appendChild(c),si(l,"redraw")}}function bi(t,e,i,n){if(t.noHScroll){(i.alignable||(i.alignable=[])).push(e);var r=n.wrapperWidth;e.style.left=n.fixedPos+"px",t.coverGutter||(r-=n.gutterTotalWidth,e.style.paddingLeft=n.gutterTotalWidth+"px"),e.style.width=r+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-n.gutterTotalWidth+"px"))}function Ci(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!N(document.body,t.node)){var i="position: relative;";t.coverGutter&&(i+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(i+="width: "+e.display.wrapper.clientWidth+"px;"),M(e.display.measure,I("div",[t.node],null,i))}return t.height=t.node.parentNode.offsetHeight}function xi(t,e){for(var i=wt(e);i!=t.wrapper;i=i.parentNode)if(!i||1==i.nodeType&&"true"==i.getAttribute("cm-ignore-events")||i.parentNode==t.sizer&&i!=t.mover)return!0}function ki(t){return t.lineSpace.offsetTop}function wi(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Si(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=M(t.measure,I("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,n={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(n.left)||isNaN(n.right)||(t.cachedPaddingH=n),n}function Ai(t){return 50-t.display.nativeBarWidth}function Ei(t){return t.display.scroller.clientWidth-Ai(t)-t.display.barWidth}function Oi(t){return t.display.scroller.clientHeight-Ai(t)-t.display.barHeight}function Mi(t,e,i){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var n=0;n<t.rest.length;n++)if(t.rest[n]==e)return{map:t.measure.maps[n],cache:t.measure.caches[n]};for(var r=0;r<t.rest.length;r++)if(qt(t.rest[r])>i)return{map:t.measure.maps[r],cache:t.measure.caches[r],before:!0}}function Ii(t,e,i,n){return Ri(t,Ni(t,e),i,n)}function Ti(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[un(t,e)];var i=t.display.externalMeasured;return i&&e>=i.lineN&&e<i.lineN+i.size?i:void 0}function Ni(t,e){var i=qt(e),n=Ti(t,i);n&&!n.text?n=null:n&&n.changes&&(ci(t,n,i,on(t)),t.curOp.forceUpdate=!0),n||(n=function(t,e){var i=qt(e=ze(e)),n=t.display.externalMeasured=new ni(t.doc,e,i);n.lineN=i;var r=n.built=Xe(t,n);return n.text=r.pre,M(t.display.lineMeasure,r.pre),n}(t,e));var r=Mi(n,e,i);return{line:e,view:n,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function Ri(t,e,i,n,r){e.before&&(i=-1);var o,l=i+(n||"");return e.cache.hasOwnProperty(l)?o=e.cache[l]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,i){var n=t.options.lineWrapping,r=n&&Ei(t);if(!e.measure.heights||n&&e.measure.width!=r){var o=e.measure.heights=[];if(n){e.measure.width=r;for(var a=e.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-i.top)}}o.push(i.bottom-i.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,i,n){var r,o=Li(e.map,i,n),l=o.node,c=o.start,u=o.end,h=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;c&&nt(e.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&nt(e.line.text.charAt(o.coverStart+u));)++u;if((r=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():ji(A(l,c,u).getClientRects(),n)).left||r.right||0==c)break;u=c,c-=1,h="right"}a&&s<11&&(r=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=Dt)return Dt;var e=M(t,I("span","x")),i=e.getBoundingClientRect(),n=A(e,0,1).getBoundingClientRect();return Dt=Math.abs(i.left-n.left)>1}(t))return e;var i=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*i,right:e.right*i,top:e.top*n,bottom:e.bottom*n}}(t.display.measure,r))}else{var d;c>0&&(h=n="right"),r=t.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==n?d.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!r||!r.left&&!r.right)){var f=l.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+rn(t.display),top:f.top,bottom:f.bottom}:Di}for(var m=r.top-e.rect.top,g=r.bottom-e.rect.top,v=(m+g)/2,y=e.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var C=b?y[b-1]:0,x=y[b],k={left:("right"==h?r.right:r.left)-e.rect.left,right:("left"==h?r.left:r.right)-e.rect.left,top:C,bottom:x};return r.left||r.right||(k.bogus=!0),t.options.singleCursorHeightPerLine||(k.rtop=m,k.rbottom=g),k}(t,e,i,n)).bogus||(e.cache[l]=o)),{left:o.left,right:o.right,top:r?o.rtop:o.top,bottom:r?o.rbottom:o.bottom}}var Bi,Di={left:0,right:0,top:0,bottom:0};function Li(t,e,i){for(var n,r,o,a,s,l,c=0;c<t.length;c+=3)if(s=t[c],l=t[c+1],e<s?(r=0,o=1,a="left"):e<l?o=1+(r=e-s):(c==t.length-3||e==l&&t[c+3]>e)&&(r=(o=l-s)-1,e>=l&&(a="right")),null!=r){if(n=t[c+2],s==l&&i==(n.insertLeft?"left":"right")&&(a=i),"left"==i&&0==r)for(;c&&t[c-2]==t[c-3]&&t[c-1].insertLeft;)n=t[2+(c-=3)],a="left";if("right"==i&&r==l-s)for(;c<t.length-3&&t[c+3]==t[c+4]&&!t[c+5].insertLeft;)n=t[(c+=3)+2],a="right";break}return{node:n,start:r,end:o,collapse:a,coverStart:s,coverEnd:l}}function ji(t,e){var i=Di;if("left"==e)for(var n=0;n<t.length&&(i=t[n]).left==i.right;n++);else for(var r=t.length-1;r>=0&&(i=t[r]).left==i.right;r--);return i}function Pi(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function zi(t){t.display.externalMeasure=null,O(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Pi(t.display.view[e])}function Fi(t){zi(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Wi(){return u&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Vi(){return u&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Hi(t){var e=0;if(t.widgets)for(var i=0;i<t.widgets.length;++i)t.widgets[i].above&&(e+=Ci(t.widgets[i]));return e}function Gi(t,e,i,n,r){if(!r){var o=Hi(e);i.top+=o,i.bottom+=o}if("line"==n)return i;n||(n="local");var a=Ge(e);if("local"==n?a+=ki(t.display):a-=t.display.viewOffset,"page"==n||"window"==n){var s=t.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==n?0:Vi());var l=s.left+("window"==n?0:Wi());i.left+=l,i.right+=l}return i.top+=a,i.bottom+=a,i}function Ui(t,e,i){if("div"==i)return e;var n=e.left,r=e.top;if("page"==i)n-=Wi(),r-=Vi();else if("local"==i||!i){var o=t.display.sizer.getBoundingClientRect();n+=o.left,r+=o.top}var a=t.display.lineSpace.getBoundingClientRect();return{left:n-a.left,top:r-a.top}}function Qi(t,e,i,n,r){return n||(n=Jt(t.doc,e.line)),Gi(t,n,Ii(t,n,e.ch,r),i)}function Ji(t,e,i,n,r,o){function a(e,a){var s=Ri(t,r,e,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Gi(t,n,s,i)}n=n||Jt(t.doc,e.line),r||(r=Ni(t,n));var s=ct(n,t.doc.direction),l=e.ch,c=e.sticky;if(l>=n.text.length?(l=n.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(t,e,i){return a(i?t-1:t,1==s[e].level!=i)}var h=st(s,l,c),p=at,d=u(l,h,"before"==c);return null!=p&&(d.other=u(l,p,"before"!=c)),d}function Ki(t,e){var i=0;e=se(t.doc,e),t.options.lineWrapping||(i=rn(t.display)*e.ch);var n=Jt(t.doc,e.line),r=Ge(n)+ki(t.display);return{left:i,right:i,top:r,bottom:r+n.height}}function Zi(t,e,i,n,r){var o=te(t,e,i);return o.xRel=r,n&&(o.outside=n),o}function Yi(t,e,i){var n=t.doc;if((i+=t.display.viewOffset)<0)return Zi(n.first,0,null,-1,-1);var r=Xt(n,i),o=n.first+n.size-1;if(r>o)return Zi(n.first+n.size-1,Jt(n,o).text.length,null,1,1);e<0&&(e=0);for(var a=Jt(n,r);;){var s=$i(t,a,r,e,i),l=je(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==r)return c;a=Jt(n,r=c.line)}}function qi(t,e,i,n){n-=Hi(e);var r=e.text.length,o=ot((function(e){return Ri(t,i,e-1).bottom<=n}),r,0);return{begin:o,end:r=ot((function(e){return Ri(t,i,e).top>n}),o,r)}}function Xi(t,e,i,n){return i||(i=Ni(t,e)),qi(t,e,i,Gi(t,e,Ri(t,i,n),"line").top)}function _i(t,e,i,n){return!(t.bottom<=i)&&(t.top>i||(n?t.left:t.right)>e)}function $i(t,e,i,n,r){r-=Ge(e);var o=Ni(t,e),a=Hi(e),s=0,l=e.text.length,c=!0,u=ct(e,t.doc.direction);if(u){var h=(t.options.lineWrapping?en:tn)(t,e,i,o,u,n,r);s=(c=1!=h.level)?h.from:h.to-1,l=c?h.to:h.from-1}var p,d,f=null,m=null,g=ot((function(e){var i=Ri(t,o,e);return i.top+=a,i.bottom+=a,!!_i(i,n,r,!1)&&(i.top<=r&&i.left<=n&&(f=e,m=i),!0)}),s,l),v=!1;if(m){var y=n-m.left<m.right-n,b=y==c;g=f+(b?0:1),d=b?"after":"before",p=y?m.left:m.right}else{c||g!=l&&g!=s||g++,d=0==g?"after":g==e.text.length?"before":Ri(t,o,g-(c?1:0)).bottom+a<=r==c?"after":"before";var C=Ji(t,te(i,g,d),"line",e,o);p=C.left,v=r<C.top?-1:r>=C.bottom?1:0}return Zi(i,g=rt(e.text,g,1),d,v,n-p)}function tn(t,e,i,n,r,o,a){var s=ot((function(s){var l=r[s],c=1!=l.level;return _i(Ji(t,te(i,c?l.to:l.from,c?"before":"after"),"line",e,n),o,a,!0)}),0,r.length-1),l=r[s];if(s>0){var c=1!=l.level,u=Ji(t,te(i,c?l.from:l.to,c?"after":"before"),"line",e,n);_i(u,o,a,!0)&&u.top>a&&(l=r[s-1])}return l}function en(t,e,i,n,r,o,a){var s=qi(t,e,n,a),l=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,h=null,p=0;p<r.length;p++){var d=r[p];if(!(d.from>=c||d.to<=l)){var f=Ri(t,n,1!=d.level?Math.min(c,d.to)-1:Math.max(l,d.from)).right,m=f<o?o-f+1e9:f-o;(!u||h>m)&&(u=d,h=m)}}return u||(u=r[r.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function nn(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Bi){Bi=I("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Bi.appendChild(document.createTextNode("x")),Bi.appendChild(I("br"));Bi.appendChild(document.createTextNode("x"))}M(t.measure,Bi);var i=Bi.offsetHeight/50;return i>3&&(t.cachedTextHeight=i),O(t.measure),i||1}function rn(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=I("span","xxxxxxxxxx"),i=I("pre",[e],"CodeMirror-line-like");M(t.measure,i);var n=e.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(t.cachedCharWidth=r),r||10}function on(t){for(var e=t.display,i={},n={},r=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;i[s]=o.offsetLeft+o.clientLeft+r,n[s]=o.clientWidth}return{fixedPos:an(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:e.wrapper.clientWidth}}function an(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function sn(t){var e=nn(t.display),i=t.options.lineWrapping,n=i&&Math.max(5,t.display.scroller.clientWidth/rn(t.display)-3);return function(r){if(Ve(t.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a<r.widgets.length;a++)r.widgets[a].height&&(o+=r.widgets[a].height);return i?o+(Math.ceil(r.text.length/n)||1)*e:o+e}}function ln(t){var e=t.doc,i=sn(t);e.iter((function(t){var e=i(t);e!=t.height&&Yt(t,e)}))}function cn(t,e,i,n){var r=t.display;if(!i&&"true"==wt(e).getAttribute("cm-not-content"))return null;var o,a,s=r.lineSpace.getBoundingClientRect();try{o=e.clientX-s.left,a=e.clientY-s.top}catch(t){return null}var l,c=Yi(t,o,a);if(n&&c.xRel>0&&(l=Jt(t.doc,c.line).text).length==c.ch){var u=z(l,l.length,t.options.tabSize)-l.length;c=te(c.line,Math.max(0,Math.round((o-Si(t.display).left)/rn(t.display))-u))}return c}function un(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var i=t.display.view,n=0;n<i.length;n++)if((e-=i[n].size)<0)return n}function hn(t,e,i,n){null==e&&(e=t.doc.first),null==i&&(i=t.doc.first+t.doc.size),n||(n=0);var r=t.display;if(n&&i<r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>e)&&(r.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=r.viewTo)ke&&Fe(t.doc,e)<r.viewTo&&dn(t);else if(i<=r.viewFrom)ke&&We(t.doc,i+n)>r.viewFrom?dn(t):(r.viewFrom+=n,r.viewTo+=n);else if(e<=r.viewFrom&&i>=r.viewTo)dn(t);else if(e<=r.viewFrom){var o=fn(t,i,i+n,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=n):dn(t)}else if(i>=r.viewTo){var a=fn(t,e,e,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):dn(t)}else{var s=fn(t,e,e,-1),l=fn(t,i,i+n,1);s&&l?(r.view=r.view.slice(0,s.index).concat(ri(t,s.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=n):dn(t)}var c=r.externalMeasured;c&&(i<c.lineN?c.lineN+=n:e<c.lineN+c.size&&(r.externalMeasured=null))}function pn(t,e,i){t.curOp.viewChanged=!0;var n=t.display,r=t.display.externalMeasured;if(r&&e>=r.lineN&&e<r.lineN+r.size&&(n.externalMeasured=null),!(e<n.viewFrom||e>=n.viewTo)){var o=n.view[un(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,i)&&a.push(i)}}}function dn(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function fn(t,e,i,n){var r,o=un(t,e),a=t.display.view;if(!ke||i==t.doc.first+t.doc.size)return{index:o,lineN:i};for(var s=t.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=e){if(n>0){if(o==a.length-1)return null;r=s+a[o].size-e,o++}else r=s-e;e+=r,i+=r}for(;Fe(t.doc,i)!=i;){if(o==(n<0?0:a.length-1))return null;i+=n*a[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:i}}function mn(t){for(var e=t.display.view,i=0,n=0;n<e.length;n++){var r=e[n];r.hidden||r.node&&!r.changes||++i}return i}function gn(t){t.display.input.showSelection(t.display.input.prepareSelection())}function vn(t,e){void 0===e&&(e=!0);for(var i=t.doc,n={},r=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),a=0;a<i.sel.ranges.length;a++)if(e||a!=i.sel.primIndex){var s=i.sel.ranges[a];if(!(s.from().line>=t.display.viewTo||s.to().line<t.display.viewFrom)){var l=s.empty();(l||t.options.showCursorWhenSelecting)&&yn(t,s.head,r),l||Cn(t,s,o)}}return n}function yn(t,e,i){var n=Ji(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),r=i.appendChild(I("div"," ","CodeMirror-cursor"));if(r.style.left=n.left+"px",r.style.top=n.top+"px",r.style.height=Math.max(0,n.bottom-n.top)*t.options.cursorHeight+"px",n.other){var o=i.appendChild(I("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=n.other.left+"px",o.style.top=n.other.top+"px",o.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function bn(t,e){return t.top-e.top||t.left-e.left}function Cn(t,e,i){var n=t.display,r=t.doc,o=document.createDocumentFragment(),a=Si(t.display),s=a.left,l=Math.max(n.sizerWidth,Ei(t)-n.sizer.offsetLeft)-a.right,c="ltr"==r.direction;function u(t,e,i,n){e<0&&(e=0),e=Math.round(e),n=Math.round(n),o.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==i?l-t:i)+"px;\n height: "+(n-e)+"px"))}function h(e,i,n){var o,a,h=Jt(r,e),p=h.text.length;function d(i,n){return Qi(t,te(e,i),"div",h,n)}function f(e,i,n){var r=Xi(t,h,null,e),o="ltr"==i==("after"==n)?"left":"right";return d("after"==n?r.begin:r.end-(/\s/.test(h.text.charAt(r.end-1))?2:1),o)[o]}var m=ct(h,r.direction);return function(t,e,i,n){if(!t)return n(e,i,"ltr",0);for(var r=!1,o=0;o<t.length;++o){var a=t[o];(a.from<i&&a.to>e||e==i&&a.to==e)&&(n(Math.max(a.from,e),Math.min(a.to,i),1==a.level?"rtl":"ltr",o),r=!0)}r||n(e,i,"ltr")}(m,i||0,null==n?p:n,(function(t,e,r,h){var g="ltr"==r,v=d(t,g?"left":"right"),y=d(e-1,g?"right":"left"),b=null==i&&0==t,C=null==n&&e==p,x=0==h,k=!m||h==m.length-1;if(y.top-v.top<=3){var w=(c?C:b)&&k,S=(c?b:C)&&x?s:(g?v:y).left,A=w?l:(g?y:v).right;u(S,v.top,A-S,v.bottom)}else{var E,O,M,I;g?(E=c&&b&&x?s:v.left,O=c?l:f(t,r,"before"),M=c?s:f(e,r,"after"),I=c&&C&&k?l:y.right):(E=c?f(t,r,"before"):s,O=!c&&b&&x?l:v.right,M=!c&&C&&k?s:y.left,I=c?f(e,r,"after"):l),u(E,v.top,O-E,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(M,y.top,I-M,y.bottom)}(!o||bn(v,o)<0)&&(o=v),bn(y,o)<0&&(o=y),(!a||bn(v,a)<0)&&(a=v),bn(y,a)<0&&(a=y)})),{start:o,end:a}}var p=e.from(),d=e.to();if(p.line==d.line)h(p.line,p.ch,d.ch);else{var f=Jt(r,p.line),m=Jt(r,d.line),g=ze(f)==ze(m),v=h(p.line,p.ch,g?f.text.length+1:null).end,y=h(d.line,g?0:null,d.ch).start;g&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}i.appendChild(o)}function xn(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var i=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||An(t),e.cursorDiv.style.visibility=(i=!i)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function kn(t){t.state.focused||(t.display.input.focus(),Sn(t))}function wn(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,An(t))}),100)}function Sn(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(ft(t,"focus",t,e),t.state.focused=!0,B(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),xn(t))}function An(t,e){t.state.delayingBlurEvent||(t.state.focused&&(ft(t,"blur",t,e),t.state.focused=!1,E(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function En(t){for(var e=t.display,i=e.lineDiv.offsetTop,n=0;n<e.view.length;n++){var r=e.view[n],o=t.options.lineWrapping,l=void 0,c=0;if(!r.hidden){if(a&&s<8){var u=r.node.offsetTop+r.node.offsetHeight;l=u-i,i=u}else{var h=r.node.getBoundingClientRect();l=h.bottom-h.top,!o&&r.text.firstChild&&(c=r.text.firstChild.getBoundingClientRect().right-h.left-1)}var p=r.line.height-l;if((p>.005||p<-.005)&&(Yt(r.line,l),On(r.line),r.rest))for(var d=0;d<r.rest.length;d++)On(r.rest[d]);if(c>t.display.sizerWidth){var f=Math.ceil(c/rn(t.display));f>t.display.maxLineLength&&(t.display.maxLineLength=f,t.display.maxLine=r.line,t.display.maxLineChanged=!0)}}}}function On(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var i=t.widgets[e],n=i.node.parentNode;n&&(i.height=n.offsetHeight)}}function Mn(t,e,i){var n=i&&null!=i.top?Math.max(0,i.top):t.scroller.scrollTop;n=Math.floor(n-ki(t));var r=i&&null!=i.bottom?i.bottom:n+t.wrapper.clientHeight,o=Xt(e,n),a=Xt(e,r);if(i&&i.ensure){var s=i.ensure.from.line,l=i.ensure.to.line;s<o?(o=s,a=Xt(e,Ge(Jt(e,s))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=a&&(o=Xt(e,Ge(Jt(e,l))-t.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function In(t,e){var i=t.display,n=nn(t.display);e.top<0&&(e.top=0);var r=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:i.scroller.scrollTop,o=Oi(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+wi(i),l=e.top<n,c=e.bottom>s-n;if(e.top<r)a.scrollTop=l?0:e.top;else if(e.bottom>r+o){var u=Math.min(e.top,(c?s:e.bottom)-o);u!=r&&(a.scrollTop=u)}var h=t.options.fixedGutter?0:i.gutters.offsetWidth,p=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:i.scroller.scrollLeft-h,d=Ei(t)-i.gutters.offsetWidth,f=e.right-e.left>d;return f&&(e.right=e.left+d),e.left<10?a.scrollLeft=0:e.left<p?a.scrollLeft=Math.max(0,e.left+h-(f?0:10)):e.right>d+p-3&&(a.scrollLeft=e.right+(f?0:10)-d),a}function Tn(t,e){null!=e&&(Bn(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Nn(t){Bn(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Rn(t,e,i){null==e&&null==i||Bn(t),null!=e&&(t.curOp.scrollLeft=e),null!=i&&(t.curOp.scrollTop=i)}function Bn(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Dn(t,Ki(t,e.from),Ki(t,e.to),e.margin))}function Dn(t,e,i,n){var r=In(t,{left:Math.min(e.left,i.left),top:Math.min(e.top,i.top)-n,right:Math.max(e.right,i.right),bottom:Math.max(e.bottom,i.bottom)+n});Rn(t,r.scrollLeft,r.scrollTop)}function Ln(t,e){Math.abs(t.doc.scrollTop-e)<2||(i||lr(t,{top:e}),jn(t,e,!0),i&&lr(t),nr(t,100))}function jn(t,e,i){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||i)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Pn(t,e,i,n){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(i?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!n||(t.doc.scrollLeft=e,hr(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function zn(t){var e=t.display,i=e.gutters.offsetWidth,n=Math.round(t.doc.height+wi(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?i:0,docHeight:n,scrollHeight:n+Ai(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:i}}var Fn=function(t,e,i){this.cm=i;var n=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=r.tabIndex=-1,t(n),t(r),ht(n,"scroll",(function(){n.clientHeight&&e(n.scrollTop,"vertical")})),ht(r,"scroll",(function(){r.clientWidth&&e(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Fn.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,i=t.scrollHeight>t.clientHeight+1,n=t.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=e?n+"px":"0";var r=t.viewHeight-(e?n:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:e?n:0}},Fn.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Fn.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Fn.prototype.zeroWidthHack=function(){var t=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},Fn.prototype.enableZeroWidthBar=function(t,e,i){t.style.pointerEvents="auto",e.set(1e3,(function n(){var r=t.getBoundingClientRect();("vert"==i?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,n)}))},Fn.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Wn=function(){};function Vn(t,e){e||(e=zn(t));var i=t.display.barWidth,n=t.display.barHeight;Hn(t,e);for(var r=0;r<4&&i!=t.display.barWidth||n!=t.display.barHeight;r++)i!=t.display.barWidth&&t.options.lineWrapping&&En(t),Hn(t,zn(t)),i=t.display.barWidth,n=t.display.barHeight}function Hn(t,e){var i=t.display,n=i.scrollbars.update(e);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&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=e.gutterWidth+"px"):i.gutterFiller.style.display=""}Wn.prototype.update=function(){return{bottom:0,right:0}},Wn.prototype.setScrollLeft=function(){},Wn.prototype.setScrollTop=function(){},Wn.prototype.clear=function(){};var Gn={native:Fn,null:Wn};function Un(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&E(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Gn[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ht(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,i){"horizontal"==i?Pn(t,e):Ln(t,e)}),t),t.display.scrollbars.addClass&&B(t.display.wrapper,t.display.scrollbars.addClass)}var Qn=0;function Jn(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++Qn},e=t.curOp,oi?oi.ops.push(e):e.ownsGroup=oi={ops:[e],delayedCallbacks:[]}}function Kn(t){var e=t.curOp;e&&function(t,e){var i=t.ownsGroup;if(i)try{!function(t){var e=t.delayedCallbacks,i=0;do{for(;i<e.length;i++)e[i].call(null);for(var n=0;n<t.ops.length;n++){var r=t.ops[n];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(i<e.length)}(i)}finally{oi=null,e(i)}}(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,i=0;i<e.length;i++)Zn(e[i]);for(var n=0;n<e.length;n++)Yn(e[n]);for(var r=0;r<e.length;r++)qn(e[r]);for(var o=0;o<e.length;o++)Xn(e[o]);for(var a=0;a<e.length;a++)_n(e[a])}(t)}))}function Zn(t){var e=t.cm,i=e.display;!function(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=Ai(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=Ai(t)+"px",e.scrollbarsClipped=!0)}(e),t.updateMaxLine&&Qe(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<i.viewFrom||t.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new or(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Yn(t){t.updatedDisplay=t.mustUpdate&&ar(t.cm,t.update)}function qn(t){var e=t.cm,i=e.display;t.updatedDisplay&&En(e),t.barMeasure=zn(e),i.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Ii(e,i.maxLine,i.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+t.adjustWidthTo+Ai(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+t.adjustWidthTo-Ei(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=i.input.prepareSelection())}function Xn(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Pn(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var i=t.focus&&t.focus==R();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,i),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Vn(e,t.barMeasure),t.updatedDisplay&&ur(e,t.barMeasure),t.selectionChanged&&xn(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),i&&kn(t.cm)}function _n(t){var e=t.cm,i=e.display,n=e.doc;t.updatedDisplay&&sr(e,t.update),null==i.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(i.wheelStartX=i.wheelStartY=null),null!=t.scrollTop&&jn(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Pn(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!mt(t,"scrollCursorIntoView")){var i=t.display,n=i.sizer.getBoundingClientRect(),r=null;if(e.top+n.top<0?r=!0:e.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!f){var o=I("div","",null,"position: absolute;\n top: "+(e.top-i.viewOffset-ki(t.display))+"px;\n height: "+(e.bottom-e.top+Ai(t)+i.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(r),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,i,n){var r;null==n&&(n=0),t.options.lineWrapping||e!=i||(i="before"==(e=e.ch?te(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?te(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var a=!1,s=Ji(t,e),l=i&&i!=e?Ji(t,i):s,c=In(t,r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-n,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+n}),u=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=c.scrollTop&&(Ln(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Pn(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(a=!0)),!a)break}return r}(e,se(n,t.scrollToPos.from),se(n,t.scrollToPos.to),t.scrollToPos.margin));var r=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(r)for(var a=0;a<r.length;++a)r[a].lines.length||ft(r[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ft(o[s],"unhide");i.wrapper.offsetHeight&&(n.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&ft(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function $n(t,e){if(t.curOp)return e();Jn(t);try{return e()}finally{Kn(t)}}function tr(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Jn(t);try{return e.apply(t,arguments)}finally{Kn(t)}}}function er(t){return function(){if(this.curOp)return t.apply(this,arguments);Jn(this);try{return t.apply(this,arguments)}finally{Kn(this)}}}function ir(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Jn(e);try{return t.apply(this,arguments)}finally{Kn(e)}}}function nr(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,j(rr,t))}function rr(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var i=+new Date+t.options.workTime,n=de(t,e.highlightFrontier),r=[];e.iter(n.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(n.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?Ht(e.mode,n.state):null,l=he(t,o,n,!0);s&&(n.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var h=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),p=0;!h&&p<a.length;++p)h=a[p]!=o.styles[p];h&&r.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=t.options.maxHighlightLength&&fe(t,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return nr(t,t.options.workDelay),!0})),e.highlightFrontier=n.line,e.modeFrontier=Math.max(e.modeFrontier,n.line),r.length&&$n(t,(function(){for(var e=0;e<r.length;e++)pn(t,r[e],"text")}))}}var or=function(t,e,i){var n=t.display;this.viewport=e,this.visible=Mn(n,t.doc,e),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Ei(t),this.force=i,this.dims=on(t),this.events=[]};function ar(t,e){var i=t.display,n=t.doc;if(e.editorIsHidden)return dn(t),!1;if(!e.force&&e.visible.from>=i.viewFrom&&e.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==mn(t))return!1;pr(t)&&(dn(t),e.dims=on(t));var r=n.first+n.size,o=Math.max(e.visible.from-t.options.viewportMargin,n.first),a=Math.min(r,e.visible.to+t.options.viewportMargin);i.viewFrom<o&&o-i.viewFrom<20&&(o=Math.max(n.first,i.viewFrom)),i.viewTo>a&&i.viewTo-a<20&&(a=Math.min(r,i.viewTo)),ke&&(o=Fe(t.doc,o),a=We(t.doc,a));var s=o!=i.viewFrom||a!=i.viewTo||i.lastWrapHeight!=e.wrapperHeight||i.lastWrapWidth!=e.wrapperWidth;!function(t,e,i){var n=t.display;0==n.view.length||e>=n.viewTo||i<=n.viewFrom?(n.view=ri(t,e,i),n.viewFrom=e):(n.viewFrom>e?n.view=ri(t,e,n.viewFrom).concat(n.view):n.viewFrom<e&&(n.view=n.view.slice(un(t,e))),n.viewFrom=e,n.viewTo<i?n.view=n.view.concat(ri(t,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,un(t,i)))),n.viewTo=i}(t,o,a),i.viewOffset=Ge(Jt(t.doc,i.viewFrom)),t.display.mover.style.top=i.viewOffset+"px";var c=mn(t);if(!s&&0==c&&!e.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))return!1;var u=function(t){if(t.hasFocus())return null;var e=R();if(!e||!N(t.display.lineDiv,e))return null;var i={activeElt:e};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&N(t.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}(t);return c>4&&(i.lineDiv.style.display="none"),function(t,e,i){var n=t.display,r=t.options.lineNumbers,o=n.lineDiv,a=o.firstChild;function s(e){var i=e.nextSibling;return l&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),i}for(var c=n.view,u=n.viewFrom,h=0;h<c.length;h++){var p=c[h];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var d=r&&null!=e&&e<=u&&p.lineNumber;p.changes&&(W(p.changes,"gutter")>-1&&(d=!1),ci(t,p,u,i)),d&&(O(p.lineNumber),p.lineNumber.appendChild(document.createTextNode($t(t.options,u)))),a=p.node.nextSibling}else{var f=gi(t,p,u,i);o.insertBefore(f,a)}u+=p.size}for(;a;)a=s(a)}(t,i.updateLineNumbers,e.dims),c>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,function(t){if(t&&t.activeElt&&t.activeElt!=R()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&N(document.body,t.anchorNode)&&N(document.body,t.focusNode))){var e=window.getSelection(),i=document.createRange();i.setEnd(t.anchorNode,t.anchorOffset),i.collapse(!1),e.removeAllRanges(),e.addRange(i),e.extend(t.focusNode,t.focusOffset)}}(u),O(i.cursorDiv),O(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,s&&(i.lastWrapHeight=e.wrapperHeight,i.lastWrapWidth=e.wrapperWidth,nr(t,400)),i.updateLineNumbers=null,!0}function sr(t,e){for(var i=e.viewport,n=!0;;n=!1){if(n&&t.options.lineWrapping&&e.oldDisplayWidth!=Ei(t))n&&(e.visible=Mn(t.display,t.doc,i));else if(i&&null!=i.top&&(i={top:Math.min(t.doc.height+wi(t.display)-Oi(t),i.top)}),e.visible=Mn(t.display,t.doc,i),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!ar(t,e))break;En(t);var r=zn(t);gn(t),Vn(t,r),ur(t,r),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function lr(t,e){var i=new or(t,e);if(ar(t,i)){En(t),sr(t,i);var n=zn(t);gn(t),Vn(t,n),ur(t,n),i.finish()}}function cr(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function ur(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Ai(t)+"px"}function hr(t){var e=t.display,i=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var n=an(e)-e.scroller.scrollLeft+t.doc.scrollLeft,r=e.gutters.offsetWidth,o=n+"px",a=0;a<i.length;a++)if(!i[a].hidden){t.options.fixedGutter&&(i[a].gutter&&(i[a].gutter.style.left=o),i[a].gutterBackground&&(i[a].gutterBackground.style.left=o));var s=i[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=n+r+"px")}}function pr(t){if(!t.options.lineNumbers)return!1;var e=t.doc,i=$t(t.options,e.first+e.size-1),n=t.display;if(i.length!=n.lineNumChars){var r=n.measure.appendChild(I("div",[I("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=r.firstChild.offsetWidth,a=r.offsetWidth-o;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(o,n.lineGutter.offsetWidth-a)+1,n.lineNumWidth=n.lineNumInnerWidth+a,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",cr(t.display),!0}return!1}function dr(t,e){for(var i=[],n=!1,r=0;r<t.length;r++){var o=t[r],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!e)continue;n=!0}i.push({className:o,style:a})}return e&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function fr(t){var e=t.gutters,i=t.gutterSpecs;O(e),t.lineGutter=null;for(var n=0;n<i.length;++n){var r=i[n],o=r.className,a=r.style,s=e.appendChild(I("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=i.length?"":"none",cr(t)}function mr(t){fr(t.display),hn(t),hr(t)}function gr(t,e,n,r){var o=this;this.input=n,o.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=T("div",null,"CodeMirror-code"),o.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=I("div",null,"CodeMirror-cursors"),o.measure=I("div",null,"CodeMirror-measure"),o.lineMeasure=I("div",null,"CodeMirror-measure"),o.lineSpace=T("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=T("div",[o.lineSpace],"CodeMirror-lines");o.mover=I("div",[c],null,"position: relative"),o.sizer=I("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=I("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=I("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=I("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=I("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||i&&v||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.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=dr(r.gutters,r.lineNumbers),fr(o),n.init(o)}or.prototype.signal=function(t,e){vt(t,e)&&this.events.push(arguments)},or.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ft.apply(null,this.events[t])};var vr=0,yr=null;function br(t){var e=t.wheelDeltaX,i=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==i&&t.detail&&t.axis==t.VERTICAL_AXIS?i=t.detail:null==i&&(i=t.wheelDelta),{x:e,y:i}}function Cr(t){var e=br(t);return e.x*=yr,e.y*=yr,e}function xr(t,e){var n=br(e),r=n.x,o=n.y,a=t.display,s=a.scroller,c=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(r&&c||o&&u){if(o&&y&&l)t:for(var p=e.target,d=a.view;p!=s;p=p.parentNode)for(var f=0;f<d.length;f++)if(d[f].node==p){t.display.currentWheelTarget=p;break t}if(r&&!i&&!h&&null!=yr)return o&&u&&Ln(t,Math.max(0,s.scrollTop+o*yr)),Pn(t,Math.max(0,s.scrollLeft+r*yr)),(!o||o&&u)&&bt(e),void(a.wheelStartX=null);if(o&&null!=yr){var m=o*yr,g=t.doc.scrollTop,v=g+a.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):v=Math.min(t.doc.height,v+m+50),lr(t,{top:g,bottom:v})}vr<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=r,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var t=s.scrollLeft-a.wheelStartX,e=s.scrollTop-a.wheelStartY,i=e&&a.wheelDY&&e/a.wheelDY||t&&a.wheelDX&&t/a.wheelDX;a.wheelStartX=a.wheelStartY=null,i&&(yr=(yr*vr+i)/(vr+1),++vr)}}),200)):(a.wheelDX+=r,a.wheelDY+=o))}}a?yr=-.53:i?yr=15:u?yr=-.7:p&&(yr=-1/3);var kr=function(t,e){this.ranges=t,this.primIndex=e};kr.prototype.primary=function(){return this.ranges[this.primIndex]},kr.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var i=this.ranges[e],n=t.ranges[e];if(!ie(i.anchor,n.anchor)||!ie(i.head,n.head))return!1}return!0},kr.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new wr(ne(this.ranges[e].anchor),ne(this.ranges[e].head));return new kr(t,this.primIndex)},kr.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},kr.prototype.contains=function(t,e){e||(e=t);for(var i=0;i<this.ranges.length;i++){var n=this.ranges[i];if(ee(e,n.from())>=0&&ee(t,n.to())<=0)return i}return-1};var wr=function(t,e){this.anchor=t,this.head=e};function Sr(t,e,i){var n=t&&t.options.selectionsMayTouch,r=e[i];e.sort((function(t,e){return ee(t.from(),e.from())})),i=W(e,r);for(var o=1;o<e.length;o++){var a=e[o],s=e[o-1],l=ee(s.to(),a.from());if(n&&!a.empty()?l>0:l>=0){var c=oe(s.from(),a.from()),u=re(s.to(),a.to()),h=s.empty()?a.from()==a.head:s.from()==s.head;o<=i&&--i,e.splice(--o,2,new wr(h?u:c,h?c:u))}}return new kr(e,i)}function Ar(t,e){return new kr([new wr(t,e||t)],0)}function Er(t){return t.text?te(t.from.line+t.text.length-1,Z(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Or(t,e){if(ee(t,e.from)<0)return t;if(ee(t,e.to)<=0)return Er(e);var i=t.line+e.text.length-(e.to.line-e.from.line)-1,n=t.ch;return t.line==e.to.line&&(n+=Er(e).ch-e.to.ch),te(i,n)}function Mr(t,e){for(var i=[],n=0;n<t.sel.ranges.length;n++){var r=t.sel.ranges[n];i.push(new wr(Or(r.anchor,e),Or(r.head,e)))}return Sr(t.cm,i,t.sel.primIndex)}function Ir(t,e,i){return t.line==e.line?te(i.line,t.ch-e.ch+i.ch):te(i.line+(t.line-e.line),t.ch)}function Tr(t){t.doc.mode=Ft(t.options,t.doc.modeOption),Nr(t)}function Nr(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,nr(t,100),t.state.modeGen++,t.curOp&&hn(t)}function Rr(t,e){return 0==e.from.ch&&0==e.to.ch&&""==Z(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Br(t,e,i,n){function r(t){return i?i[t]:null}function o(t,i,r){!function(t,e,i,n){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Me(t),Ie(t,i);var r=n?n(t):1;r!=t.height&&Yt(t,r)}(t,i,r,n),si(t,"change",t,e)}function a(t,e){for(var i=[],o=t;o<e;++o)i.push(new Je(c[o],r(o),n));return i}var s=e.from,l=e.to,c=e.text,u=Jt(t,s.line),h=Jt(t,l.line),p=Z(c),d=r(c.length-1),f=l.line-s.line;if(e.full)t.insert(0,a(0,c.length)),t.remove(c.length,t.size-c.length);else if(Rr(t,e)){var m=a(0,c.length-1);o(h,h.text,d),f&&t.remove(s.line,f),m.length&&t.insert(s.line,m)}else if(u==h)if(1==c.length)o(u,u.text.slice(0,s.ch)+p+u.text.slice(l.ch),d);else{var g=a(1,c.length-1);g.push(new Je(p+u.text.slice(l.ch),d,n)),o(u,u.text.slice(0,s.ch)+c[0],r(0)),t.insert(s.line+1,g)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+h.text.slice(l.ch),r(0)),t.remove(s.line+1,f);else{o(u,u.text.slice(0,s.ch)+c[0],r(0)),o(h,p+h.text.slice(l.ch),d);var v=a(1,c.length-1);f>1&&t.remove(s.line+1,f-1),t.insert(s.line+1,v)}si(t,"change",t,e)}function Dr(t,e,i){!function t(n,r,o){if(n.linked)for(var a=0;a<n.linked.length;++a){var s=n.linked[a];if(s.doc!=r){var l=o&&s.sharedHist;i&&!l||(e(s.doc,l),t(s.doc,n,l))}}}(t,null,!0)}function Lr(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,ln(t),Tr(t),jr(t),t.options.lineWrapping||Qe(t),t.options.mode=e.modeOption,hn(t)}function jr(t){("rtl"==t.doc.direction?B:E)(t.display.lineDiv,"CodeMirror-rtl")}function Pr(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function zr(t,e){var i={from:ne(e.from),to:Er(e),text:Kt(t,e.from,e.to)};return Gr(t,i,e.from.line,e.to.line+1),Dr(t,(function(t){return Gr(t,i,e.from.line,e.to.line+1)}),!0),i}function Fr(t){for(;t.length&&Z(t).ranges;)t.pop()}function Wr(t,e,i,n){var r=t.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==n||r.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&r.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(Fr(t.done),Z(t.done)):t.done.length&&!Z(t.done).ranges?Z(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),Z(t.done)):void 0}(r,r.lastOp==n)))a=Z(o.changes),0==ee(e.from,e.to)&&0==ee(e.from,a.to)?a.to=Er(e):o.changes.push(zr(t,e));else{var l=Z(r.done);for(l&&l.ranges||Hr(t.sel,r.done),o={changes:[zr(t,e)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(i),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=e.origin,a||ft(t,"historyAdded")}function Vr(t,e,i,n){var r=t.history,o=n&&n.origin;i==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||function(t,e,i,n){var r=e.charAt(0);return"*"==r||"+"==r&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,Z(r.done),e))?r.done[r.done.length-1]=e:Hr(e,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=i,n&&!1!==n.clearRedo&&Fr(r.undone)}function Hr(t,e){var i=Z(e);i&&i.ranges&&i.equals(t)||e.push(t)}function Gr(t,e,i,n){var r=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,i),Math.min(t.first+t.size,n),(function(i){i.markedSpans&&((r||(r=e["spans_"+t.id]={}))[o]=i.markedSpans),++o}))}function Ur(t){if(!t)return null;for(var e,i=0;i<t.length;++i)t[i].marker.explicitlyCleared?e||(e=t.slice(0,i)):e&&e.push(t[i]);return e?e.length?e:null:t}function Qr(t,e){var i=function(t,e){var i=e["spans_"+t.id];if(!i)return null;for(var n=[],r=0;r<e.text.length;++r)n.push(Ur(i[r]));return n}(t,e),n=Ee(t,e);if(!i)return n;if(!n)return i;for(var r=0;r<i.length;++r){var o=i[r],a=n[r];if(o&&a)t:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue t;o.push(l)}else a&&(i[r]=a)}return i}function Jr(t,e,i){for(var n=[],r=0;r<t.length;++r){var o=t[r];if(o.ranges)n.push(i?kr.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];n.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),e)for(var h in c)(u=h.match(/^spans_(\d+)$/))&&W(e,Number(u[1]))>-1&&(Z(s)[h]=c[h],delete c[h])}}}return n}function Kr(t,e,i,n){if(n){var r=t.anchor;if(i){var o=ee(e,r)<0;o!=ee(i,r)<0?(r=e,e=i):o!=ee(e,i)<0&&(e=i)}return new wr(r,e)}return new wr(i||e,e)}function Zr(t,e,i,n,r){null==r&&(r=t.cm&&(t.cm.display.shift||t.extend)),$r(t,new kr([Kr(t.sel.primary(),e,i,r)],0),n)}function Yr(t,e,i){for(var n=[],r=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)n[o]=Kr(t.sel.ranges[o],e[o],null,r);$r(t,Sr(t.cm,n,t.sel.primIndex),i)}function qr(t,e,i,n){var r=t.sel.ranges.slice(0);r[e]=i,$r(t,Sr(t.cm,r,t.sel.primIndex),n)}function Xr(t,e,i,n){$r(t,Ar(e,i),n)}function _r(t,e,i){var n=t.history.done,r=Z(n);r&&r.ranges?(n[n.length-1]=e,to(t,e,i)):$r(t,e,i)}function $r(t,e,i){to(t,e,i),Vr(t,t.sel,t.cm?t.cm.curOp.id:NaN,i)}function to(t,e,i){(vt(t,"beforeSelectionChange")||t.cm&&vt(t.cm,"beforeSelectionChange"))&&(e=function(t,e,i){var n={ranges:e.ranges,update:function(e){this.ranges=[];for(var i=0;i<e.length;i++)this.ranges[i]=new wr(se(t,e[i].anchor),se(t,e[i].head))},origin:i&&i.origin};return ft(t,"beforeSelectionChange",t,n),t.cm&&ft(t.cm,"beforeSelectionChange",t.cm,n),n.ranges!=e.ranges?Sr(t.cm,n.ranges,n.ranges.length-1):e}(t,e,i));var n=i&&i.bias||(ee(e.primary().head,t.sel.primary().head)<0?-1:1);eo(t,no(t,e,n,!0)),i&&!1===i.scroll||!t.cm||Nn(t.cm)}function eo(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,gt(t.cm)),si(t,"cursorActivity",t))}function io(t){eo(t,no(t,t.sel,null,!1))}function no(t,e,i,n){for(var r,o=0;o<e.ranges.length;o++){var a=e.ranges[o],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=oo(t,a.anchor,s&&s.anchor,i,n),c=oo(t,a.head,s&&s.head,i,n);(r||l!=a.anchor||c!=a.head)&&(r||(r=e.ranges.slice(0,o)),r[o]=new wr(l,c))}return r?Sr(t.cm,r,e.primIndex):e}function ro(t,e,i,n,r){var o=Jt(t,e.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(u?s.to>=e.ch:s.to>e.ch))){if(r&&(ft(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(i){var h=l.find(n<0?1:-1),p=void 0;if((n<0?u:c)&&(h=ao(t,h,-n,h&&h.line==e.line?o:null)),h&&h.line==e.line&&(p=ee(h,i))&&(n<0?p<0:p>0))return ro(t,h,e,n,r)}var d=l.find(n<0?-1:1);return(n<0?c:u)&&(d=ao(t,d,n,d.line==e.line?o:null)),d?ro(t,d,e,n,r):null}}return e}function oo(t,e,i,n,r){var o=n||1,a=ro(t,e,i,o,r)||!r&&ro(t,e,i,o,!0)||ro(t,e,i,-o,r)||!r&&ro(t,e,i,-o,!0);return a||(t.cantEdit=!0,te(t.first,0))}function ao(t,e,i,n){return i<0&&0==e.ch?e.line>t.first?se(t,te(e.line-1)):null:i>0&&e.ch==(n||Jt(t,e.line)).text.length?e.line<t.first+t.size-1?te(e.line+1,0):null:new te(e.line,e.ch+i)}function so(t){t.setSelection(te(t.firstLine(),0),te(t.lastLine()),H)}function lo(t,e,i){var n={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return n.canceled=!0}};return i&&(n.update=function(e,i,r,o){e&&(n.from=se(t,e)),i&&(n.to=se(t,i)),r&&(n.text=r),void 0!==o&&(n.origin=o)}),ft(t,"beforeChange",t,n),t.cm&&ft(t.cm,"beforeChange",t.cm,n),n.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function co(t,e,i){if(t.cm){if(!t.cm.curOp)return tr(t.cm,co)(t,e,i);if(t.cm.state.suppressEdits)return}if(!(vt(t,"beforeChange")||t.cm&&vt(t.cm,"beforeChange"))||(e=lo(t,e,!0))){var n=xe&&!i&&function(t,e,i){var n=null;if(t.iter(e.line,i.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var i=t.markedSpans[e].marker;!i.readOnly||n&&-1!=W(n,i)||(n||(n=[])).push(i)}})),!n)return null;for(var r=[{from:e,to:i}],o=0;o<n.length;++o)for(var a=n[o],s=a.find(0),l=0;l<r.length;++l){var c=r[l];if(!(ee(c.to,s.from)<0||ee(c.from,s.to)>0)){var u=[l,1],h=ee(c.from,s.from),p=ee(c.to,s.to);(h<0||!a.inclusiveLeft&&!h)&&u.push({from:c.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&u.push({from:s.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}(t,e.from,e.to);if(n)for(var r=n.length-1;r>=0;--r)uo(t,{from:n[r].from,to:n[r].to,text:r?[""]:e.text,origin:e.origin});else uo(t,e)}}function uo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ee(e.from,e.to)){var i=Mr(t,e);Wr(t,e,i,t.cm?t.cm.curOp.id:NaN),fo(t,e,i,Ee(t,e));var n=[];Dr(t,(function(t,i){i||-1!=W(n,t.history)||(yo(t.history,e),n.push(t.history)),fo(t,e,null,Ee(t,e))}))}}function ho(t,e,i){var n=t.cm&&t.cm.state.suppressEdits;if(!n||i){for(var r,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,c=0;c<s.length&&(r=s[c],i?!r.ranges||r.equals(t.sel):r.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(r=s.pop()).ranges){if(n)return void s.push(r);break}if(Hr(r,l),i&&!r.equals(t.sel))return void $r(t,r,{clearRedo:!1});a=r}var u=[];Hr(a,l),l.push({changes:u,generation:o.generation}),o.generation=r.generation||++o.maxGeneration;for(var h=vt(t,"beforeChange")||t.cm&&vt(t.cm,"beforeChange"),p=function(i){var n=r.changes[i];if(n.origin=e,h&&!lo(t,n,!1))return s.length=0,{};u.push(zr(t,n));var o=i?Mr(t,n):Z(s);fo(t,n,o,Qr(t,n)),!i&&t.cm&&t.cm.scrollIntoView({from:n.from,to:Er(n)});var a=[];Dr(t,(function(t,e){e||-1!=W(a,t.history)||(yo(t.history,n),a.push(t.history)),fo(t,n,null,Qr(t,n))}))},d=r.changes.length-1;d>=0;--d){var f=p(d);if(f)return f.v}}}}function po(t,e){if(0!=e&&(t.first+=e,t.sel=new kr(Y(t.sel.ranges,(function(t){return new wr(te(t.anchor.line+e,t.anchor.ch),te(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){hn(t.cm,t.first,t.first-e,e);for(var i=t.cm.display,n=i.viewFrom;n<i.viewTo;n++)pn(t.cm,n,"gutter")}}function fo(t,e,i,n){if(t.cm&&!t.cm.curOp)return tr(t.cm,fo)(t,e,i,n);if(e.to.line<t.first)po(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var r=e.text.length-1-(t.first-e.from.line);po(t,r),e={from:te(t.first,0),to:te(e.to.line+r,e.to.ch),text:[Z(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:te(o,Jt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Kt(t,e.from,e.to),i||(i=Mr(t,e)),t.cm?function(t,e,i){var n=t.doc,r=t.display,o=e.from,a=e.to,s=!1,l=o.line;t.options.lineWrapping||(l=qt(ze(Jt(n,o.line))),n.iter(l,a.line+1,(function(t){if(t==r.maxLine)return s=!0,!0}))),n.sel.contains(e.from,e.to)>-1&>(t),Br(n,e,i,sn(t)),t.options.lineWrapping||(n.iter(l,o.line+e.text.length,(function(t){var e=Ue(t);e>r.maxLineLength&&(r.maxLine=t,r.maxLineLength=e,r.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var i=t.first,n=e-1;n>i;n--){var r=Jt(t,n).stateAfter;if(r&&(!(r instanceof ce)||n+r.lookAhead<e)){i=n+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,i)}}(n,o.line),nr(t,400);var c=e.text.length-(a.line-o.line)-1;e.full?hn(t):o.line!=a.line||1!=e.text.length||Rr(t.doc,e)?hn(t,o.line,a.line+1,c):pn(t,o.line,"text");var u=vt(t,"changes"),h=vt(t,"change");if(h||u){var p={from:o,to:a,text:e.text,removed:e.removed,origin:e.origin};h&&si(t,"change",t,p),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(p)}t.display.selForContextMenu=null}(t.cm,e,n):Br(t,e,n),to(t,i,H),t.cantEdit&&oo(t,te(t.firstLine(),0))&&(t.cantEdit=!1)}}function mo(t,e,i,n,r){var o;n||(n=i),ee(n,i)<0&&(i=(o=[n,i])[0],n=o[1]),"string"==typeof e&&(e=t.splitLines(e)),co(t,{from:i,to:n,text:e,origin:r})}function go(t,e,i,n){i<t.line?t.line+=n:e<t.line&&(t.line=e,t.ch=0)}function vo(t,e,i,n){for(var r=0;r<t.length;++r){var o=t[r],a=!0;if(o.ranges){o.copied||((o=t[r]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)go(o.ranges[s].anchor,e,i,n),go(o.ranges[s].head,e,i,n)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(i<c.from.line)c.from=te(c.from.line+n,c.from.ch),c.to=te(c.to.line+n,c.to.ch);else if(e<=c.to.line){a=!1;break}}a||(t.splice(0,r+1),r=0)}}}function yo(t,e){var i=e.from.line,n=e.to.line,r=e.text.length-(n-i)-1;vo(t.done,i,n,r),vo(t.undone,i,n,r)}function bo(t,e,i,n){var r=e,o=e;return"number"==typeof e?o=Jt(t,ae(t,e)):r=qt(e),null==r?null:(n(o,r)&&t.cm&&pn(t.cm,r,i),o)}function Co(t){this.lines=t,this.parent=null;for(var e=0,i=0;i<t.length;++i)t[i].parent=this,e+=t[i].height;this.height=e}function xo(t){this.children=t;for(var e=0,i=0,n=0;n<t.length;++n){var r=t[n];e+=r.chunkSize(),i+=r.height,r.parent=this}this.size=e,this.height=i,this.parent=null}wr.prototype.from=function(){return oe(this.anchor,this.head)},wr.prototype.to=function(){return re(this.anchor,this.head)},wr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Co.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var i=t,n=t+e;i<n;++i){var r=this.lines[i];this.height-=r.height,Ke(r),si(r,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,i){this.height+=i,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var n=0;n<e.length;++n)e[n].parent=this},iterN:function(t,e,i){for(var n=t+e;t<n;++t)if(i(this.lines[t]))return!0}},xo.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var i=0;i<this.children.length;++i){var n=this.children[i],r=n.chunkSize();if(t<r){var o=Math.min(e,r-t),a=n.height;if(n.removeInner(t,o),this.height-=a-n.height,r==o&&(this.children.splice(i--,1),n.parent=null),0==(e-=o))break;t=0}else t-=r}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof Co))){var s=[];this.collapse(s),this.children=[new Co(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,i){this.size+=e.length,this.height+=i;for(var n=0;n<this.children.length;++n){var r=this.children[n],o=r.chunkSize();if(t<=o){if(r.insertInner(t,e,i),r.lines&&r.lines.length>50){for(var a=r.lines.length%25+25,s=a;s<r.lines.length;){var l=new Co(r.lines.slice(s,s+=25));r.height-=l.height,this.children.splice(++n,0,l),l.parent=this}r.lines=r.lines.slice(0,a),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new xo(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var i=W(t.parent.children,t);t.parent.children.splice(i+1,0,e)}else{var n=new xo(t.children);n.parent=t,t.children=[n,e],t=n}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,i){for(var n=0;n<this.children.length;++n){var r=this.children[n],o=r.chunkSize();if(t<o){var a=Math.min(e,o-t);if(r.iterN(t,a,i))return!0;if(0==(e-=a))break;t=0}else t-=o}}};var ko=function(t,e,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=t,this.node=e};function wo(t,e,i){Ge(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Tn(t,i)}ko.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,i=this.line,n=qt(i);if(null!=n&&e){for(var r=0;r<e.length;++r)e[r]==this&&e.splice(r--,1);e.length||(i.widgets=null);var o=Ci(this);Yt(i,Math.max(0,i.height-o)),t&&($n(t,(function(){wo(t,i,-o),pn(t,n,"widget")})),si(t,"lineWidgetCleared",t,this,n))}},ko.prototype.changed=function(){var t=this,e=this.height,i=this.doc.cm,n=this.line;this.height=null;var r=Ci(this)-e;r&&(Ve(this.doc,n)||Yt(n,n.height+r),i&&$n(i,(function(){i.curOp.forceUpdate=!0,wo(i,n,r),si(i,"lineWidgetChanged",i,t,qt(n))})))},yt(ko);var So=0,Ao=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++So};function Eo(t,e,i,n,r){if(n&&n.shared)return function(t,e,i,n,r){(n=P(n)).shared=!1;var o=[Eo(t,e,i,n,r)],a=o[0],s=n.widgetNode;return Dr(t,(function(t){s&&(n.widgetNode=s.cloneNode(!0)),o.push(Eo(t,se(t,e),se(t,i),n,r));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;a=Z(o)})),new Oo(o,a)}(t,e,i,n,r);if(t.cm&&!t.cm.curOp)return tr(t.cm,Eo)(t,e,i,n,r);var o=new Ao(t,r),a=ee(e,i);if(n&&P(n,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=T("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Pe(t,e.line,e,i,o)||e.line!=i.line&&Pe(t,i.line,e,i,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");ke=!0}o.addToHistory&&Wr(t,{from:e,to:i,origin:"markText"},t.sel,NaN);var s,l=e.line,c=t.cm;if(t.iter(l,i.line+1,(function(t){c&&o.collapsed&&!c.options.lineWrapping&&ze(t)==c.display.maxLine&&(s=!0),o.collapsed&&l!=e.line&&Yt(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new we(o,l==e.line?e.ch:null,l==i.line?i.ch:null)),++l})),o.collapsed&&t.iter(e.line,i.line+1,(function(e){Ve(t,e)&&Yt(e,0)})),o.clearOnEnter&&ht(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(xe=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++So,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)hn(c,e.line,i.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=e.line;u<=i.line;u++)pn(c,u,"text");o.atomic&&io(c.doc),si(c,"markerAdded",c,o)}return o}Ao.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Jn(t),vt(this,"clear")){var i=this.find();i&&si(this,"clear",i.from,i.to)}for(var n=null,r=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Se(a.markedSpans,this);t&&!this.collapsed?pn(t,qt(a),"text"):t&&(null!=s.to&&(r=qt(a)),null!=s.from&&(n=qt(a))),a.markedSpans=Ae(a.markedSpans,s),null==s.from&&this.collapsed&&!Ve(this.doc,a)&&t&&Yt(a,nn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=ze(this.lines[l]),u=Ue(c);u>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=n&&t&&this.collapsed&&hn(t,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&io(t.doc)),t&&si(t,"markerCleared",t,this,n,r),e&&Kn(t),this.parent&&this.parent.clear()}},Ao.prototype.find=function(t,e){var i,n;null==t&&"bookmark"==this.type&&(t=1);for(var r=0;r<this.lines.length;++r){var o=this.lines[r],a=Se(o.markedSpans,this);if(null!=a.from&&(i=te(e?o:qt(o),a.from),-1==t))return i;if(null!=a.to&&(n=te(e?o:qt(o),a.to),1==t))return n}return i&&{from:i,to:n}},Ao.prototype.changed=function(){var t=this,e=this.find(-1,!0),i=this,n=this.doc.cm;e&&n&&$n(n,(function(){var r=e.line,o=qt(e.line),a=Ti(n,o);if(a&&(Pi(a),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Ve(i.doc,r)&&null!=i.height){var s=i.height;i.height=null;var l=Ci(i)-s;l&&Yt(r,r.height+l)}si(n,"markerChanged",n,t)}))},Ao.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=W(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Ao.prototype.detachLine=function(t){if(this.lines.splice(W(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},yt(Ao);var Oo=function(t,e){this.markers=t,this.primary=e;for(var i=0;i<t.length;++i)t[i].parent=this};function Mo(t){return t.findMarks(te(t.first,0),t.clipPos(te(t.lastLine())),(function(t){return t.parent}))}function Io(t){for(var e=function(e){var i=t[e],n=[i.primary.doc];Dr(i.primary.doc,(function(t){return n.push(t)}));for(var r=0;r<i.markers.length;r++){var o=i.markers[r];-1==W(n,o.doc)&&(o.parent=null,i.markers.splice(r--,1))}},i=0;i<t.length;i++)e(i)}Oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();si(this,"clear")}},Oo.prototype.find=function(t,e){return this.primary.find(t,e)},yt(Oo);var To=0,No=function(t,e,i,n,r){if(!(this instanceof No))return new No(t,e,i,n,r);null==i&&(i=0),xo.call(this,[new Co([new Je("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var o=te(i,0);this.sel=Ar(o),this.history=new Pr(null),this.id=++To,this.modeOption=e,this.lineSep=n,this.direction="rtl"==r?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Br(this,{from:o,to:o,text:t}),$r(this,Ar(o),H)};No.prototype=X(xo.prototype,{constructor:No,iter:function(t,e,i){i?this.iterN(t-this.first,e-t,i):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var i=0,n=0;n<e.length;++n)i+=e[n].height;this.insertInner(t-this.first,e,i)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Zt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:ir((function(t){var e=te(this.first,0),i=this.first+this.size-1;co(this,{from:e,to:te(i,Jt(this,i).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Rn(this.cm,0,0),$r(this,Ar(e),H)})),replaceRange:function(t,e,i,n){mo(this,t,e=se(this,e),i=i?se(this,i):e,n)},getRange:function(t,e,i){var n=Kt(this,se(this,t),se(this,e));return!1===i?n:n.join(i||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(_t(this,t))return Jt(this,t)},getLineNumber:function(t){return qt(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=Jt(this,t)),ze(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return se(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ir((function(t,e,i){Xr(this,se(this,"number"==typeof t?te(t,e||0):t),null,i)})),setSelection:ir((function(t,e,i){Xr(this,se(this,t),se(this,e||t),i)})),extendSelection:ir((function(t,e,i){Zr(this,se(this,t),e&&se(this,e),i)})),extendSelections:ir((function(t,e){Yr(this,le(this,t),e)})),extendSelectionsBy:ir((function(t,e){Yr(this,le(this,Y(this.sel.ranges,t)),e)})),setSelections:ir((function(t,e,i){if(t.length){for(var n=[],r=0;r<t.length;r++)n[r]=new wr(se(this,t[r].anchor),se(this,t[r].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),$r(this,Sr(this.cm,n,e),i)}})),addSelection:ir((function(t,e,i){var n=this.sel.ranges.slice(0);n.push(new wr(se(this,t),se(this,e||t))),$r(this,Sr(this.cm,n,n.length-1),i)})),getSelection:function(t){for(var e,i=this.sel.ranges,n=0;n<i.length;n++){var r=Kt(this,i[n].from(),i[n].to());e=e?e.concat(r):r}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],i=this.sel.ranges,n=0;n<i.length;n++){var r=Kt(this,i[n].from(),i[n].to());!1!==t&&(r=r.join(t||this.lineSeparator())),e[n]=r}return e},replaceSelection:function(t,e,i){for(var n=[],r=0;r<this.sel.ranges.length;r++)n[r]=t;this.replaceSelections(n,e,i||"+input")},replaceSelections:ir((function(t,e,i){for(var n=[],r=this.sel,o=0;o<r.ranges.length;o++){var a=r.ranges[o];n[o]={from:a.from(),to:a.to(),text:this.splitLines(t[o]),origin:i}}for(var s=e&&"end"!=e&&function(t,e,i){for(var n=[],r=te(t.first,0),o=r,a=0;a<e.length;a++){var s=e[a],l=Ir(s.from,r,o),c=Ir(Er(s),r,o);if(r=s.to,o=c,"around"==i){var u=t.sel.ranges[a],h=ee(u.head,u.anchor)<0;n[a]=new wr(h?c:l,h?l:c)}else n[a]=new wr(l,l)}return new kr(n,t.sel.primIndex)}(this,n,e),l=n.length-1;l>=0;l--)co(this,n[l]);s?_r(this,s):this.cm&&Nn(this.cm)})),undo:ir((function(){ho(this,"undo")})),redo:ir((function(){ho(this,"redo")})),undoSelection:ir((function(){ho(this,"undo",!0)})),redoSelection:ir((function(){ho(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,i=0,n=0;n<t.done.length;n++)t.done[n].ranges||++e;for(var r=0;r<t.undone.length;r++)t.undone[r].ranges||++i;return{undo:e,redo:i}},clearHistory:function(){var t=this;this.history=new Pr(this.history.maxGeneration),Dr(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Jr(this.history.done),undone:Jr(this.history.undone)}},setHistory:function(t){var e=this.history=new Pr(this.history.maxGeneration);e.done=Jr(t.done.slice(0),null,!0),e.undone=Jr(t.undone.slice(0),null,!0)},setGutterMarker:ir((function(t,e,i){return bo(this,t,"gutter",(function(t){var n=t.gutterMarkers||(t.gutterMarkers={});return n[e]=i,!i&&et(n)&&(t.gutterMarkers=null),!0}))})),clearGutter:ir((function(t){var e=this;this.iter((function(i){i.gutterMarkers&&i.gutterMarkers[t]&&bo(e,i,"gutter",(function(){return i.gutterMarkers[t]=null,et(i.gutterMarkers)&&(i.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!_t(this,t))return null;if(e=t,!(t=Jt(this,t)))return null}else if(null==(e=qt(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:ir((function(t,e,i){return bo(this,t,"gutter"==e?"gutter":"class",(function(t){var n="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[n]){if(S(i).test(t[n]))return!1;t[n]+=" "+i}else t[n]=i;return!0}))})),removeLineClass:ir((function(t,e,i){return bo(this,t,"gutter"==e?"gutter":"class",(function(t){var n="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",r=t[n];if(!r)return!1;if(null==i)t[n]=null;else{var o=r.match(S(i));if(!o)return!1;var a=o.index+o[0].length;t[n]=r.slice(0,o.index)+(o.index&&a!=r.length?" ":"")+r.slice(a)||null}return!0}))})),addLineWidget:ir((function(t,e,i){return function(t,e,i,n){var r=new ko(t,i,n),o=t.cm;return o&&r.noHScroll&&(o.display.alignWidgets=!0),bo(t,e,"widget",(function(e){var i=e.widgets||(e.widgets=[]);if(null==r.insertAt?i.push(r):i.splice(Math.min(i.length-1,Math.max(0,r.insertAt)),0,r),r.line=e,o&&!Ve(t,e)){var n=Ge(e)<t.scrollTop;Yt(e,e.height+Ci(r)),n&&Tn(o,r.height),o.curOp.forceUpdate=!0}return!0})),o&&si(o,"lineWidgetAdded",o,r,"number"==typeof e?e:qt(e)),r}(this,t,e,i)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,i){return Eo(this,se(this,t),se(this,e),i,i&&i.type||"range")},setBookmark:function(t,e){var i={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return Eo(this,t=se(this,t),t,i,"bookmark")},findMarksAt:function(t){var e=[],i=Jt(this,(t=se(this,t)).line).markedSpans;if(i)for(var n=0;n<i.length;++n){var r=i[n];(null==r.from||r.from<=t.ch)&&(null==r.to||r.to>=t.ch)&&e.push(r.marker.parent||r.marker)}return e},findMarks:function(t,e,i){t=se(this,t),e=se(this,e);var n=[],r=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&r==t.line&&t.ch>=l.to||null==l.from&&r!=t.line||null!=l.from&&r==e.line&&l.from>=e.ch||i&&!i(l.marker)||n.push(l.marker.parent||l.marker)}++r})),n},getAllMarks:function(){var t=[];return this.iter((function(e){var i=e.markedSpans;if(i)for(var n=0;n<i.length;++n)null!=i[n].from&&t.push(i[n].marker)})),t},posFromIndex:function(t){var e,i=this.first,n=this.lineSeparator().length;return this.iter((function(r){var o=r.text.length+n;if(o>t)return e=t,!0;t-=o,++i})),se(this,te(i,e))},indexFromPos:function(t){var e=(t=se(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+i})),e},copy:function(t){var e=new No(Zt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,i=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<i&&(i=t.to);var n=new No(Zt(this,e,i),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:t.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var i=0;i<e.length;i++){var n=e[i],r=n.find(),o=t.clipPos(r.from),a=t.clipPos(r.to);if(ee(o,a)){var s=Eo(t,o,a,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}(n,Mo(this)),n},unlinkDoc:function(t){if(t instanceof Oa&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Io(Mo(this));break}if(t.history==this.history){var i=[t.id];Dr(t,(function(t){return i.push(t.id)}),!0),t.history=new Pr(null),t.history.done=Jr(this.history.done,i),t.history.undone=Jr(this.history.undone,i)}},iterLinkedDocs:function(t){Dr(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Nt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ir((function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&$n(e=this.cm,(function(){jr(e),hn(e)})))}))}),No.prototype.eachLine=No.prototype.iter;var Ro=0;function Bo(t){var e=this;if(Do(e),!mt(e,t)&&!xi(e.display,t)){bt(t),a&&(Ro=+new Date);var i=cn(e,t,!0),n=t.dataTransfer.files;if(i&&!e.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var r=n.length,o=Array(r),s=0,l=function(){++s==r&&tr(e,(function(){var t={from:i=se(e.doc,i),to:i,text:e.doc.splitLines(o.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};co(e.doc,t),_r(e.doc,Ar(se(e.doc,i),se(e.doc,Er(t))))}))()},c=function(t,i){if(e.options.allowDropFileTypes&&-1==W(e.options.allowDropFileTypes,t.type))l();else{var n=new FileReader;n.onerror=function(){return l()},n.onload=function(){var t=n.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(o[i]=t),l()},n.readAsText(t)}},u=0;u<n.length;u++)c(n[u],u);else{if(e.state.draggingText&&e.doc.sel.contains(i)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var h=t.dataTransfer.getData("Text");if(h){var p;if(e.state.draggingText&&!e.state.draggingText.copy&&(p=e.listSelections()),to(e.doc,Ar(i,i)),p)for(var d=0;d<p.length;++d)mo(e.doc,"",p[d].anchor,p[d].head,"drag");e.replaceSelection(h,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Do(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Lo(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),i=[],n=0;n<e.length;n++){var r=e[n].CodeMirror;r&&i.push(r)}i.length&&i[0].operation((function(){for(var e=0;e<i.length;e++)t(i[e])}))}}var jo=!1;function Po(){var t;jo||(ht(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Lo(zo)}),100))})),ht(window,"blur",(function(){return Lo(An)})),jo=!0)}function zo(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Fo={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"},Wo=0;Wo<10;Wo++)Fo[Wo+48]=Fo[Wo+96]=String(Wo);for(var Vo=65;Vo<=90;Vo++)Fo[Vo]=String.fromCharCode(Vo);for(var Ho=1;Ho<=12;Ho++)Fo[Ho+111]=Fo[Ho+63235]="F"+Ho;var Go={};function Uo(t){var e,i,n,r,o=t.split(/-(?!$)/);t=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))r=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))i=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);n=!0}}return e&&(t="Alt-"+t),i&&(t="Ctrl-"+t),r&&(t="Cmd-"+t),n&&(t="Shift-"+t),t}function Qo(t){var e={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if("..."==n){delete t[i];continue}for(var r=Y(i.split(" "),Uo),o=0;o<r.length;o++){var a=void 0,s=void 0;o==r.length-1?(s=r.join(" "),a=n):(s=r.slice(0,o+1).join(" "),a="...");var l=e[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else e[s]=a}delete t[i]}for(var c in e)t[c]=e[c];return t}function Jo(t,e,i,n){var r=(e=qo(e)).call?e.call(t,n):e[t];if(!1===r)return"nothing";if("..."===r)return"multi";if(null!=r&&i(r))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Jo(t,e.fallthrough,i,n);for(var o=0;o<e.fallthrough.length;o++){var a=Jo(t,e.fallthrough[o],i,n);if(a)return a}}}function Ko(t){var e="string"==typeof t?t:Fo[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Zo(t,e,i){var n=t;return e.altKey&&"Alt"!=n&&(t="Alt-"+t),(k?e.metaKey:e.ctrlKey)&&"Ctrl"!=n&&(t="Ctrl-"+t),(k?e.ctrlKey:e.metaKey)&&"Mod"!=n&&(t="Cmd-"+t),!i&&e.shiftKey&&"Shift"!=n&&(t="Shift-"+t),t}function Yo(t,e){if(h&&34==t.keyCode&&t.char)return!1;var i=Fo[t.keyCode];return null!=i&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(i=t.code),Zo(i,t,e))}function qo(t){return"string"==typeof t?Go[t]:t}function Xo(t,e){for(var i=t.doc.sel.ranges,n=[],r=0;r<i.length;r++){for(var o=e(i[r]);n.length&&ee(o.from,Z(n).to)<=0;){var a=n.pop();if(ee(a.from,o.from)<0){o.from=a.from;break}}n.push(o)}$n(t,(function(){for(var e=n.length-1;e>=0;e--)mo(t.doc,"",n[e].from,n[e].to,"+delete");Nn(t)}))}function _o(t,e,i){var n=rt(t.text,e+i,i);return n<0||n>t.text.length?null:n}function $o(t,e,i){var n=_o(t,e.ch,i);return null==n?null:new te(e.line,n,i<0?"after":"before")}function ta(t,e,i,n,r){if(t){"rtl"==e.doc.direction&&(r=-r);var o=ct(i,e.doc.direction);if(o){var a,s=r<0?Z(o):o[0],l=r<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var c=Ni(e,i);a=r<0?i.text.length-1:0;var u=Ri(e,c,a).top;a=ot((function(t){return Ri(e,c,t).top==u}),r<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=_o(i,a,1))}else a=r<0?s.to:s.from;return new te(n,a,l)}}return new te(n,r<0?i.text.length:0,r<0?"before":"after")}Go.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"},Go.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"},Go.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"},Go.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"]},Go.default=y?Go.macDefault:Go.pcDefault;var ea={selectAll:so,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),H)},killLine:function(t){return Xo(t,(function(e){if(e.empty()){var i=Jt(t.doc,e.head.line).text.length;return e.head.ch==i&&e.head.line<t.lastLine()?{from:e.head,to:te(e.head.line+1,0)}:{from:e.head,to:te(e.head.line,i)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return Xo(t,(function(e){return{from:te(e.from().line,0),to:se(t.doc,te(e.to().line+1,0))}}))},delLineLeft:function(t){return Xo(t,(function(t){return{from:te(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return Xo(t,(function(e){var i=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:i},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return Xo(t,(function(e){var i=t.charCoords(e.head,"div").top+5,n=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:i},"div");return{from:e.from(),to:n}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(te(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(te(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return ia(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return na(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return function(t,e){var i=Jt(t.doc,e),n=function(t){for(var e;e=Le(t);)t=e.find(1,!0).line;return t}(i);return n!=i&&(e=qt(n)),ta(!0,t,i,e,-1)}(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var i=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:i},"div")}),U)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var i=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:i},"div")}),U)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var i=t.cursorCoords(e.head,"div").top+5,n=t.coordsChar({left:0,top:i},"div");return n.ch<t.getLine(n.line).search(/\S/)?na(t,e.head):n}),U)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],i=t.listSelections(),n=t.options.tabSize,r=0;r<i.length;r++){var o=i[r].from(),a=z(t.getLine(o.line),o.ch,n);e.push(K(n-a%n))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return $n(t,(function(){for(var e=t.listSelections(),i=[],n=0;n<e.length;n++)if(e[n].empty()){var r=e[n].head,o=Jt(t.doc,r.line).text;if(o)if(r.ch==o.length&&(r=new te(r.line,r.ch-1)),r.ch>0)r=new te(r.line,r.ch+1),t.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),te(r.line,r.ch-2),r,"+transpose");else if(r.line>t.doc.first){var a=Jt(t.doc,r.line-1).text;a&&(r=new te(r.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),te(r.line-1,a.length-1),r,"+transpose"))}i.push(new wr(r,r))}t.setSelections(i)}))},newlineAndIndent:function(t){return $n(t,(function(){for(var e=t.listSelections(),i=e.length-1;i>=0;i--)t.replaceRange(t.doc.lineSeparator(),e[i].anchor,e[i].head,"+input");e=t.listSelections();for(var n=0;n<e.length;n++)t.indentLine(e[n].from().line,null,!0);Nn(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function ia(t,e){var i=Jt(t.doc,e),n=ze(i);return n!=i&&(e=qt(n)),ta(!0,t,n,e,1)}function na(t,e){var i=ia(t,e.line),n=Jt(t.doc,i.line),r=ct(n,t.doc.direction);if(!r||0==r[0].level){var o=Math.max(i.ch,n.text.search(/\S/)),a=e.line==i.line&&e.ch<=o&&e.ch;return te(i.line,a?0:o,i.sticky)}return i}function ra(t,e,i){if("string"==typeof e&&!(e=ea[e]))return!1;t.display.input.ensurePolled();var n=t.display.shift,r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),i&&(t.display.shift=!1),r=e(t)!=V}finally{t.display.shift=n,t.state.suppressEdits=!1}return r}var oa=new F;function aa(t,e,i,n){var r=t.state.keySeq;if(r){if(Ko(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:oa.set(50,(function(){t.state.keySeq==r&&(t.state.keySeq=null,t.display.input.reset())})),sa(t,r+" "+e,i,n))return!0}return sa(t,e,i,n)}function sa(t,e,i,n){var r=function(t,e,i){for(var n=0;n<t.state.keyMaps.length;n++){var r=Jo(e,t.state.keyMaps[n],i,t);if(r)return r}return t.options.extraKeys&&Jo(e,t.options.extraKeys,i,t)||Jo(e,t.options.keyMap,i,t)}(t,e,n);return"multi"==r&&(t.state.keySeq=e),"handled"==r&&si(t,"keyHandled",t,e,i),"handled"!=r&&"multi"!=r||(bt(i),xn(t)),!!r}function la(t,e){var i=Yo(e,!0);return!!i&&(e.shiftKey&&!t.state.keySeq?aa(t,"Shift-"+i,e,(function(e){return ra(t,e,!0)}))||aa(t,i,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return ra(t,e)})):aa(t,i,e,(function(e){return ra(t,e)})))}var ca=null;function ua(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=R(),mt(e,t)))){a&&s<11&&27==t.keyCode&&(t.returnValue=!1);var n=t.keyCode;e.display.shift=16==n||t.shiftKey;var r=la(e,t);h&&(ca=r?n:null,r||88!=n||Bt||!(y?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),i&&!y&&!r&&46==n&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=n||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function i(t){18!=t.keyCode&&t.altKey||(E(e,"CodeMirror-crosshair"),dt(document,"keyup",i),dt(document,"mouseover",i))}B(e,"CodeMirror-crosshair"),ht(document,"keyup",i),ht(document,"mouseover",i)}(e)}}function ha(t){16==t.keyCode&&(this.doc.sel.shift=!1),mt(this,t)}function pa(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||xi(e.display,t)||mt(e,t)||t.ctrlKey&&!t.altKey||y&&t.metaKey)){var i=t.keyCode,n=t.charCode;if(h&&i==ca)return ca=null,void bt(t);if(!h||t.which&&!(t.which<10)||!la(e,t)){var r=String.fromCharCode(null==n?i:n);"\b"!=r&&(function(t,e,i){return aa(t,"'"+i+"'",e,(function(e){return ra(t,e,!0)}))}(e,t,r)||e.display.input.onKeyPress(t))}}}var da,fa,ma=function(t,e,i){this.time=t,this.pos=e,this.button=i};function ga(t){var e=this,i=e.display;if(!(mt(e,t)||i.activeTouch&&i.input.supportsTouch()))if(i.input.ensurePolled(),i.shift=t.shiftKey,xi(i,t))l||(i.scroller.draggable=!1,setTimeout((function(){return i.scroller.draggable=!0}),100));else if(!ba(e,t)){var n=cn(e,t),r=St(t),o=n?function(t,e){var i=+new Date;return fa&&fa.compare(i,t,e)?(da=fa=null,"triple"):da&&da.compare(i,t,e)?(fa=new ma(i,t,e),da=null,"double"):(da=new ma(i,t,e),fa=null,"single")}(n,r):"single";window.focus(),1==r&&e.state.selectingText&&e.state.selectingText(t),n&&function(t,e,i,n,r){var o="Click";return"double"==n?o="Double"+o:"triple"==n&&(o="Triple"+o),aa(t,Zo(o=(1==e?"Left":2==e?"Middle":"Right")+o,r),r,(function(e){if("string"==typeof e&&(e=ea[e]),!e)return!1;var n=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n=e(t,i)!=V}finally{t.state.suppressEdits=!1}return n}))}(e,r,n,o,t)||(1==r?n?function(t,e,i,n){a?setTimeout(j(kn,t),0):t.curOp.focus=R();var r,o=function(t,e,i){var n=t.getOption("configureMouse"),r=n?n(t,e,i):{};if(null==r.unit){var o=b?i.shiftKey&&i.metaKey:i.altKey;r.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==r.extend||t.doc.extend)&&(r.extend=t.doc.extend||i.shiftKey),null==r.addNew&&(r.addNew=y?i.metaKey:i.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(y?i.altKey:i.ctrlKey)),r}(t,i,n),c=t.doc.sel;t.options.dragDrop&&Ot&&!t.isReadOnly()&&"single"==i&&(r=c.contains(e))>-1&&(ee((r=c.ranges[r]).from(),e)<0||e.xRel>0)&&(ee(r.to(),e)>0||e.xRel<0)?function(t,e,i,n){var r=t.display,o=!1,c=tr(t,(function(e){l&&(r.scroller.draggable=!1),t.state.draggingText=!1,dt(r.wrapper.ownerDocument,"mouseup",c),dt(r.wrapper.ownerDocument,"mousemove",u),dt(r.scroller,"dragstart",h),dt(r.scroller,"drop",c),o||(bt(e),n.addNew||Zr(t.doc,i,null,null,n.extend),l&&!p||a&&9==s?setTimeout((function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()}),20):r.input.focus())})),u=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return o=!0};l&&(r.scroller.draggable=!0),t.state.draggingText=c,c.copy=!n.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),ht(r.wrapper.ownerDocument,"mouseup",c),ht(r.wrapper.ownerDocument,"mousemove",u),ht(r.scroller,"dragstart",h),ht(r.scroller,"drop",c),wn(t),setTimeout((function(){return r.input.focus()}),20)}(t,n,e,o):function(t,e,i,n){var r=t.display,o=t.doc;bt(e);var a,s,l=o.sel,c=l.ranges;if(n.addNew&&!n.extend?(s=o.sel.contains(i),a=s>-1?c[s]:new wr(i,i)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==n.unit)n.addNew||(a=new wr(i,i)),i=cn(t,e,!0,!0),s=-1;else{var u=va(t,i,n.unit);a=n.extend?Kr(a,u.anchor,u.head,n.extend):u}n.addNew?-1==s?(s=c.length,$r(o,Sr(t,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==n.unit&&!n.extend?($r(o,Sr(t,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):qr(o,s,a,G):(s=0,$r(o,new kr([a],0),G),l=o.sel);var h=i;function p(e){if(0!=ee(h,e))if(h=e,"rectangle"==n.unit){for(var r=[],c=t.options.tabSize,u=z(Jt(o,i.line).text,i.ch,c),p=z(Jt(o,e.line).text,e.ch,c),d=Math.min(u,p),f=Math.max(u,p),m=Math.min(i.line,e.line),g=Math.min(t.lastLine(),Math.max(i.line,e.line));m<=g;m++){var v=Jt(o,m).text,y=Q(v,d,c);d==f?r.push(new wr(te(m,y),te(m,y))):v.length>y&&r.push(new wr(te(m,y),te(m,Q(v,f,c))))}r.length||r.push(new wr(i,i)),$r(o,Sr(t,l.ranges.slice(0,s).concat(r),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,C=a,x=va(t,e,n.unit),k=C.anchor;ee(x.anchor,k)>0?(b=x.head,k=oe(C.from(),x.anchor)):(b=x.anchor,k=re(C.to(),x.head));var w=l.ranges.slice(0);w[s]=function(t,e){var i=e.anchor,n=e.head,r=Jt(t.doc,i.line);if(0==ee(i,n)&&i.sticky==n.sticky)return e;var o=ct(r);if(!o)return e;var a=st(o,i.ch,i.sticky),s=o[a];if(s.from!=i.ch&&s.to!=i.ch)return e;var l,c=a+(s.from==i.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return e;if(n.line!=i.line)l=(n.line-i.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=st(o,n.ch,n.sticky),h=u-a||(n.ch-i.ch)*(1==s.level?-1:1);l=u==c-1||u==c?h<0:h>0}var p=o[c+(l?-1:0)],d=l==(1==p.level),f=d?p.from:p.to,m=d?"after":"before";return i.ch==f&&i.sticky==m?e:new wr(new te(i.line,f,m),n)}(t,new wr(se(o,k),b)),$r(o,Sr(t,w,s),G)}}var d=r.wrapper.getBoundingClientRect(),f=0;function m(e){t.state.selectingText=!1,f=1/0,e&&(bt(e),r.input.focus()),dt(r.wrapper.ownerDocument,"mousemove",g),dt(r.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var g=tr(t,(function(e){0!==e.buttons&&St(e)?function e(i){var a=++f,s=cn(t,i,!0,"rectangle"==n.unit);if(s)if(0!=ee(s,h)){t.curOp.focus=R(),p(s);var l=Mn(r,o);(s.line>=l.to||s.line<l.from)&&setTimeout(tr(t,(function(){f==a&&e(i)})),150)}else{var c=i.clientY<d.top?-20:i.clientY>d.bottom?20:0;c&&setTimeout(tr(t,(function(){f==a&&(r.scroller.scrollTop+=c,e(i))})),50)}}(e):m(e)})),v=tr(t,m);t.state.selectingText=v,ht(r.wrapper.ownerDocument,"mousemove",g),ht(r.wrapper.ownerDocument,"mouseup",v)}(t,n,e,o)}(e,n,o,t):wt(t)==i.scroller&&bt(t):2==r?(n&&Zr(e.doc,n),setTimeout((function(){return i.input.focus()}),20)):3==r&&(w?e.display.input.onContextMenu(t):wn(e)))}}function va(t,e,i){if("char"==i)return new wr(e,e);if("word"==i)return t.findWordAt(e);if("line"==i)return new wr(te(e.line,0),se(t.doc,te(e.line+1,0)));var n=i(t,e);return new wr(n.from,n.to)}function ya(t,e,i,n){var r,o;if(e.touches)r=e.touches[0].clientX,o=e.touches[0].clientY;else try{r=e.clientX,o=e.clientY}catch(t){return!1}if(r>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;n&&bt(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!vt(t,i))return xt(e);o-=s.top-a.viewOffset;for(var l=0;l<t.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=r)return ft(t,i,t,Xt(t.doc,o),t.display.gutterSpecs[l].className,e),xt(e)}}function ba(t,e){return ya(t,e,"gutterClick",!0)}function Ca(t,e){xi(t.display,e)||function(t,e){return!!vt(t,"gutterContextMenu")&&ya(t,e,"gutterContextMenu",!1)}(t,e)||mt(t,e,"contextmenu")||w||t.display.input.onContextMenu(e)}function xa(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Fi(t)}ma.prototype.compare=function(t,e,i){return this.time+400>t&&0==ee(e,this.pos)&&i==this.button};var ka={toString:function(){return"CodeMirror.Init"}},wa={},Sa={};function Aa(t,e,i){if(!e!=!(i&&i!=ka)){var n=t.display.dragFunctions,r=e?ht:dt;r(t.display.scroller,"dragstart",n.start),r(t.display.scroller,"dragenter",n.enter),r(t.display.scroller,"dragover",n.over),r(t.display.scroller,"dragleave",n.leave),r(t.display.scroller,"drop",n.drop)}}function Ea(t){t.options.lineWrapping?(B(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(E(t.display.wrapper,"CodeMirror-wrap"),Qe(t)),ln(t),hn(t),Fi(t),setTimeout((function(){return Vn(t)}),100)}function Oa(t,e){var i=this;if(!(this instanceof Oa))return new Oa(t,e);this.options=e=e?P(e):{},P(wa,e,!1);var n=e.value;"string"==typeof n?n=new No(n,e.mode,null,e.lineSeparator,e.direction):e.mode&&(n.modeOption=e.mode),this.doc=n;var r=new Oa.inputStyles[e.inputStyle](this),o=this.display=new gr(t,n,r,e);for(var c in o.wrapper.CodeMirror=this,xa(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Un(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 F,keySeq:null,specialChars:null},e.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return i.display.input.reset(!0)}),20),function(t){var e=t.display;ht(e.scroller,"mousedown",tr(t,ga)),ht(e.scroller,"dblclick",a&&s<11?tr(t,(function(e){if(!mt(t,e)){var i=cn(t,e);if(i&&!ba(t,e)&&!xi(t.display,e)){bt(e);var n=t.findWordAt(i);Zr(t.doc,n.anchor,n.head)}}})):function(e){return mt(t,e)||bt(e)}),ht(e.scroller,"contextmenu",(function(e){return Ca(t,e)})),ht(e.input.getField(),"contextmenu",(function(i){e.scroller.contains(i.target)||Ca(t,i)}));var i,n={end:0};function r(){e.activeTouch&&(i=setTimeout((function(){return e.activeTouch=null}),1e3),(n=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var i=e.left-t.left,n=e.top-t.top;return i*i+n*n>400}ht(e.scroller,"touchstart",(function(r){if(!mt(t,r)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(r)&&!ba(t,r)){e.input.ensurePolled(),clearTimeout(i);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==r.touches.length&&(e.activeTouch.left=r.touches[0].pageX,e.activeTouch.top=r.touches[0].pageY)}})),ht(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),ht(e.scroller,"touchend",(function(i){var n=e.activeTouch;if(n&&!xi(e,i)&&null!=n.left&&!n.moved&&new Date-n.start<300){var a,s=t.coordsChar(e.activeTouch,"page");a=!n.prev||o(n,n.prev)?new wr(s,s):!n.prev.prev||o(n,n.prev.prev)?t.findWordAt(s):new wr(te(s.line,0),se(t.doc,te(s.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),bt(i)}r()})),ht(e.scroller,"touchcancel",r),ht(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Ln(t,e.scroller.scrollTop),Pn(t,e.scroller.scrollLeft,!0),ft(t,"scroll",t))})),ht(e.scroller,"mousewheel",(function(e){return xr(t,e)})),ht(e.scroller,"DOMMouseScroll",(function(e){return xr(t,e)})),ht(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){mt(t,e)||kt(e)},over:function(e){mt(t,e)||(function(t,e){var i=cn(t,e);if(i){var n=document.createDocumentFragment();yn(t,i,n),t.display.dragCursor||(t.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),M(t.display.dragCursor,n)}}(t,e),kt(e))},start:function(e){return function(t,e){if(a&&(!t.state.draggingText||+new Date-Ro<100))kt(e);else if(!mt(t,e)&&!xi(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!p)){var i=I("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(i.width=i.height=1,t.display.wrapper.appendChild(i),i._top=i.offsetTop),e.dataTransfer.setDragImage(i,0,0),h&&i.parentNode.removeChild(i)}}(t,e)},drop:tr(t,Bo),leave:function(e){mt(t,e)||Do(t)}};var l=e.input.getField();ht(l,"keyup",(function(e){return ha.call(t,e)})),ht(l,"keydown",tr(t,ua)),ht(l,"keypress",tr(t,pa)),ht(l,"focus",(function(e){return Sn(t,e)})),ht(l,"blur",(function(e){return An(t,e)}))}(this),Po(),Jn(this),this.curOp.forceUpdate=!0,Lr(this,n),e.autofocus&&!v||this.hasFocus()?setTimeout((function(){i.hasFocus()&&!i.state.focused&&Sn(i)}),20):An(this),Sa)Sa.hasOwnProperty(c)&&Sa[c](this,e[c],ka);pr(this),e.finishInit&&e.finishInit(this);for(var u=0;u<Ma.length;++u)Ma[u](this);Kn(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Oa.defaults=wa,Oa.optionHandlers=Sa;var Ma=[];function Ia(t,e,i,n){var r,o=t.doc;null==i&&(i="add"),"smart"==i&&(o.mode.indent?r=de(t,e).state:i="prev");var a=t.options.tabSize,s=Jt(o,e),l=z(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==i&&((c=o.mode.indent(r,s.text.slice(u.length),s.text))==V||c>150)){if(!n)return;i="prev"}}else c=0,i="not";"prev"==i?c=e>o.first?z(Jt(o,e-1).text,null,a):0:"add"==i?c=l+t.options.indentUnit:"subtract"==i?c=l-t.options.indentUnit:"number"==typeof i&&(c=l+i),c=Math.max(0,c);var h="",p=0;if(t.options.indentWithTabs)for(var d=Math.floor(c/a);d;--d)p+=a,h+="\t";if(p<c&&(h+=K(c-p)),h!=u)return mo(o,h,te(e,0),te(e,u.length),"+input"),s.stateAfter=null,!0;for(var f=0;f<o.sel.ranges.length;f++){var m=o.sel.ranges[f];if(m.head.line==e&&m.head.ch<u.length){var g=te(e,u.length);qr(o,f,new wr(g,g));break}}}Oa.defineInitHook=function(t){return Ma.push(t)};var Ta=null;function Na(t){Ta=t}function Ra(t,e,i,n,r){var o=t.doc;t.display.shift=!1,n||(n=o.sel);var a=+new Date-200,s="paste"==r||t.state.pasteIncoming>a,l=Nt(e),c=null;if(s&&n.ranges.length>1)if(Ta&&Ta.text.join("\n")==e){if(n.ranges.length%Ta.text.length==0){c=[];for(var u=0;u<Ta.text.length;u++)c.push(o.splitLines(Ta.text[u]))}}else l.length==n.ranges.length&&t.options.pasteLinesPerSelection&&(c=Y(l,(function(t){return[t]})));for(var h=t.curOp.updateInput,p=n.ranges.length-1;p>=0;p--){var d=n.ranges[p],f=d.from(),m=d.to();d.empty()&&(i&&i>0?f=te(f.line,f.ch-i):t.state.overwrite&&!s?m=te(m.line,Math.min(Jt(o,m.line).text.length,m.ch+Z(l).length)):s&&Ta&&Ta.lineWise&&Ta.text.join("\n")==l.join("\n")&&(f=m=te(f.line,0)));var g={from:f,to:m,text:c?c[p%c.length]:l,origin:r||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};co(t.doc,g),si(t,"inputRead",t,g)}e&&!s&&Da(t,e),Nn(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ba(t,e){var i=t.clipboardData&&t.clipboardData.getData("Text");if(i)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||$n(e,(function(){return Ra(e,i,0,null,"paste")})),!0}function Da(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var i=t.doc.sel,n=i.ranges.length-1;n>=0;n--){var r=i.ranges[n];if(!(r.head.ch>100||n&&i.ranges[n-1].head.line==r.head.line)){var o=t.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(e.indexOf(o.electricChars.charAt(s))>-1){a=Ia(t,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Jt(t.doc,r.head.line).text.slice(0,r.head.ch))&&(a=Ia(t,r.head.line,"smart"));a&&si(t,"electricInput",t,r.head.line)}}}function La(t){for(var e=[],i=[],n=0;n<t.doc.sel.ranges.length;n++){var r=t.doc.sel.ranges[n].head.line,o={anchor:te(r,0),head:te(r+1,0)};i.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:i}}function ja(t,e,i,n){t.setAttribute("autocorrect",i?"":"off"),t.setAttribute("autocapitalize",n?"":"off"),t.setAttribute("spellcheck",!!e)}function Pa(){var t=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=I("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),m&&(t.style.border="1px solid black"),ja(t),e}function za(t,e,i,n,r){var o=e,a=i,s=Jt(t,e.line),l=r&&"rtl"==t.direction?-i:i;function c(o){var a,c;if("codepoint"==n){var u=s.text.charCodeAt(e.ch+(n>0?0:-1));a=isNaN(u)?null:new te(e.line,Math.max(0,Math.min(s.text.length,e.ch+i*(u>=55296&&u<56320?2:1))),-i)}else a=r?function(t,e,i,n){var r=ct(e,t.doc.direction);if(!r)return $o(e,i,n);i.ch>=e.text.length?(i.ch=e.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var o=st(r,i.ch,i.sticky),a=r[o];if("ltr"==t.doc.direction&&a.level%2==0&&(n>0?a.to>i.ch:a.from<i.ch))return $o(e,i,n);var s,l=function(t,i){return _o(e,t instanceof te?t.ch:t,i)},c=function(i){return t.options.lineWrapping?(s=s||Ni(t,e),Xi(t,e,s,i)):{begin:0,end:e.text.length}},u=c("before"==i.sticky?l(i,-1):i.ch);if("rtl"==t.doc.direction||1==a.level){var h=1==a.level==n<0,p=l(i,h?1:-1);if(null!=p&&(h?p<=a.to&&p<=u.end:p>=a.from&&p>=u.begin)){var d=h?"before":"after";return new te(i.line,p,d)}}var f=function(t,e,n){for(var o=function(t,e){return e?new te(i.line,l(t,1),"before"):new te(i.line,t,"after")};t>=0&&t<r.length;t+=e){var a=r[t],s=e>0==(1!=a.level),c=s?n.begin:l(n.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),n.begin<=c&&c<n.end)return o(c,s)}},m=f(o+n,n,u);if(m)return m;var g=n>0?u.end:l(u.begin,-1);return null==g||n>0&&g==e.text.length||!(m=f(n>0?0:r.length-1,n,c(g)))?null:m}(t.cm,s,e,i):$o(s,e,i);if(null==a){if(o||(c=e.line+l)<t.first||c>=t.first+t.size||(e=new te(c,e.ch,e.sticky),!(s=Jt(t,c))))return!1;e=ta(r,t.cm,s,e.line,l)}else e=a;return!0}if("char"==n||"codepoint"==n)c();else if("column"==n)c(!0);else if("word"==n||"group"==n)for(var u=null,h="group"==n,p=t.cm&&t.cm.getHelper(e,"wordChars"),d=!0;!(i<0)||c(!d);d=!1){var f=s.text.charAt(e.ch)||"\n",m=tt(f,p)?"w":h&&"\n"==f?"n":!h||/\s/.test(f)?null:"p";if(!h||d||m||(m="s"),u&&u!=m){i<0&&(i=1,c(),e.sticky="after");break}if(m&&(u=m),i>0&&!c(!d))break}var g=oo(t,e,o,a,!0);return ie(o,g)&&(g.hitSide=!0),g}function Fa(t,e,i,n){var r,o,a=t.doc,s=e.left;if("page"==n){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*nn(t.display),3);r=(i>0?e.bottom:e.top)+i*c}else"line"==n&&(r=i>0?e.bottom+3:e.top-3);for(;(o=Yi(t,s,r)).outside;){if(i<0?r<=0:r>=a.height){o.hitSide=!0;break}r+=5*i}return o}var Wa=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Va(t,e){var i=Ti(t,e.line);if(!i||i.hidden)return null;var n=Jt(t.doc,e.line),r=Mi(i,n,e.line),o=ct(n,t.doc.direction),a="left";o&&(a=st(o,e.ch)%2?"right":"left");var s=Li(r.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ha(t,e){return e&&(t.bad=!0),t}function Ga(t,e,i){var n;if(e==t.display.lineDiv){if(!(n=t.display.lineDiv.childNodes[i]))return Ha(t.clipPos(te(t.display.viewTo-1)),!0);e=null,i=0}else for(n=e;;n=n.parentNode){if(!n||n==t.display.lineDiv)return null;if(n.parentNode&&n.parentNode==t.display.lineDiv)break}for(var r=0;r<t.display.view.length;r++){var o=t.display.view[r];if(o.node==n)return Ua(o,e,i)}}function Ua(t,e,i){var n=t.text.firstChild,r=!1;if(!e||!N(n,e))return Ha(te(qt(t.line),0),!0);if(e==n&&(r=!0,e=n.childNodes[i],i=0,!e)){var o=t.rest?Z(t.rest):t.line;return Ha(te(qt(o),o.text.length),r)}var a=3==e.nodeType?e:null,s=e;for(a||1!=e.childNodes.length||3!=e.firstChild.nodeType||(a=e.firstChild,i&&(i=a.nodeValue.length));s.parentNode!=n;)s=s.parentNode;var l=t.measure,c=l.maps;function u(e,i,n){for(var r=-1;r<(c?c.length:0);r++)for(var o=r<0?l.map:c[r],a=0;a<o.length;a+=3){var s=o[a+2];if(s==e||s==i){var u=qt(r<0?t.line:t.rest[r]),h=o[a]+n;return(n<0||s!=e)&&(h=o[a+(n?1:0)]),te(u,h)}}}var h=u(a,s,i);if(h)return Ha(h,r);for(var p=s.nextSibling,d=a?a.nodeValue.length-i:0;p;p=p.nextSibling){if(h=u(p,p.firstChild,0))return Ha(te(h.line,h.ch-d),r);d+=p.textContent.length}for(var f=s.previousSibling,m=i;f;f=f.previousSibling){if(h=u(f,f.firstChild,-1))return Ha(te(h.line,h.ch+m),r);m+=f.textContent.length}}Wa.prototype.init=function(t){var e=this,i=this,n=i.cm,r=i.div=t.lineDiv;function o(t){for(var e=t.target;e;e=e.parentNode){if(e==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function a(t){if(o(t)&&!mt(n,t)){if(n.somethingSelected())Na({lineWise:!1,text:n.getSelections()}),"cut"==t.type&&n.replaceSelection("",null,"cut");else{if(!n.options.lineWiseCopyCut)return;var e=La(n);Na({lineWise:!0,text:e.text}),"cut"==t.type&&n.operation((function(){n.setSelections(e.ranges,0,H),n.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var a=Ta.text.join("\n");if(t.clipboardData.setData("Text",a),t.clipboardData.getData("Text")==a)return void t.preventDefault()}var s=Pa(),l=s.firstChild;n.display.lineSpace.insertBefore(s,n.display.lineSpace.firstChild),l.value=Ta.text.join("\n");var c=document.activeElement;L(l),setTimeout((function(){n.display.lineSpace.removeChild(s),c.focus(),c==r&&i.showPrimarySelection()}),50)}}ja(r,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize),ht(r,"paste",(function(t){!o(t)||mt(n,t)||Ba(t,n)||s<=11&&setTimeout(tr(n,(function(){return e.updateFromDOM()})),20)})),ht(r,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),ht(r,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),ht(r,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),ht(r,"touchstart",(function(){return i.forceCompositionEnd()})),ht(r,"input",(function(){e.composing||e.readFromDOMSoon()})),ht(r,"copy",a),ht(r,"cut",a)},Wa.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Wa.prototype.prepareSelection=function(){var t=vn(this.cm,!1);return t.focus=document.activeElement==this.div,t},Wa.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Wa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wa.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,n=e.doc.sel.primary(),r=n.from(),o=n.to();if(e.display.viewTo==e.display.viewFrom||r.line>=e.display.viewTo||o.line<e.display.viewFrom)t.removeAllRanges();else{var a=Ga(e,t.anchorNode,t.anchorOffset),s=Ga(e,t.focusNode,t.focusOffset);if(!a||a.bad||!s||s.bad||0!=ee(oe(a,s),r)||0!=ee(re(a,s),o)){var l=e.display.view,c=r.line>=e.display.viewFrom&&Va(e,r)||{node:l[0].measure.map[2],offset:0},u=o.line<e.display.viewTo&&Va(e,o);if(!u){var h=l[l.length-1].measure,p=h.maps?h.maps[h.maps.length-1]:h.map;u={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(c&&u){var d,f=t.rangeCount&&t.getRangeAt(0);try{d=A(c.node,c.offset,u.offset,u.node)}catch(t){}d&&(!i&&e.state.focused?(t.collapse(c.node,c.offset),d.collapsed||(t.removeAllRanges(),t.addRange(d))):(t.removeAllRanges(),t.addRange(d)),f&&null==t.anchorNode?t.addRange(f):i&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Wa.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Wa.prototype.showMultipleSelections=function(t){M(this.cm.display.cursorDiv,t.cursors),M(this.cm.display.selectionDiv,t.selection)},Wa.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Wa.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return N(this.div,e)},Wa.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Wa.prototype.blur=function(){this.div.blur()},Wa.prototype.getField=function(){return this.div},Wa.prototype.supportsTouch=function(){return!0},Wa.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():$n(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},Wa.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Wa.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(g&&u&&this.cm.display.gutterSpecs.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var i=Ga(e,t.anchorNode,t.anchorOffset),n=Ga(e,t.focusNode,t.focusOffset);i&&n&&$n(e,(function(){$r(e.doc,Ar(i,n),H),(i.bad||n.bad)&&(e.curOp.selectionChanged=!0)}))}}},Wa.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,i,n=this.cm,r=n.display,o=n.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>n.firstLine()&&(a=te(a.line-1,Jt(n.doc,a.line-1).length)),s.ch==Jt(n.doc,s.line).text.length&&s.line<n.lastLine()&&(s=te(s.line+1,0)),a.line<r.viewFrom||s.line>r.viewTo-1)return!1;a.line==r.viewFrom||0==(t=un(n,a.line))?(e=qt(r.view[0].line),i=r.view[0].node):(e=qt(r.view[t].line),i=r.view[t-1].node.nextSibling);var l,c,u=un(n,s.line);if(u==r.view.length-1?(l=r.viewTo-1,c=r.lineDiv.lastChild):(l=qt(r.view[u+1].line)-1,c=r.view[u+1].node.previousSibling),!i)return!1;for(var h=n.doc.splitLines(function(t,e,i,n,r){var o="",a=!1,s=t.doc.lineSeparator(),l=!1;function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function u(t){t&&(c(),o+=t)}function h(e){if(1==e.nodeType){var i=e.getAttribute("cm-text");if(i)return void u(i);var o,p=e.getAttribute("cm-marker");if(p){var d=t.findMarks(te(n,0),te(r+1,0),(g=+p,function(t){return t.id==g}));return void(d.length&&(o=d[0].find(0))&&u(Kt(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;f&&c();for(var m=0;m<e.childNodes.length;m++)h(e.childNodes[m]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),f&&(a=!0)}else 3==e.nodeType&&u(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;h(e),e!=i;)e=e.nextSibling,l=!1;return o}(n,i,c,e,l)),p=Kt(n.doc,te(e,0),te(l,Jt(n.doc,l).text.length));h.length>1&&p.length>1;)if(Z(h)==Z(p))h.pop(),p.pop(),l--;else{if(h[0]!=p[0])break;h.shift(),p.shift(),e++}for(var d=0,f=0,m=h[0],g=p[0],v=Math.min(m.length,g.length);d<v&&m.charCodeAt(d)==g.charCodeAt(d);)++d;for(var y=Z(h),b=Z(p),C=Math.min(y.length-(1==h.length?d:0),b.length-(1==p.length?d:0));f<C&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1);)++f;if(1==h.length&&1==p.length&&e==a.line)for(;d&&d>a.ch&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1);)d--,f++;h[h.length-1]=y.slice(0,y.length-f).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var x=te(e,d),k=te(l,p.length?Z(p).length-f:0);return h.length>1||h[0]||ee(x,k)?(mo(n.doc,h,x,k,"+input"),!0):void 0},Wa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Wa.prototype.reset=function(){this.forceCompositionEnd()},Wa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Wa.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Wa.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||$n(this.cm,(function(){return hn(t.cm)}))},Wa.prototype.setUneditable=function(t){t.contentEditable="false"},Wa.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||tr(this.cm,Ra)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Wa.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Wa.prototype.onContextMenu=function(){},Wa.prototype.resetPosition=function(){},Wa.prototype.needsContentAttribute=!0;var Qa=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};Qa.prototype.init=function(t){var e=this,i=this,n=this.cm;this.createField(t);var r=this.textarea;function o(t){if(!mt(n,t)){if(n.somethingSelected())Na({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var e=La(n);Na({lineWise:!0,text:e.text}),"cut"==t.type?n.setSelections(e.ranges,null,H):(i.prevInput="",r.value=e.text.join("\n"),L(r))}"cut"==t.type&&(n.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(r.style.width="0px"),ht(r,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),i.poll()})),ht(r,"paste",(function(t){mt(n,t)||Ba(t,n)||(n.state.pasteIncoming=+new Date,i.fastPoll())})),ht(r,"cut",o),ht(r,"copy",o),ht(t.scroller,"paste",(function(e){if(!xi(t,e)&&!mt(n,e)){if(!r.dispatchEvent)return n.state.pasteIncoming=+new Date,void i.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,r.dispatchEvent(o)}})),ht(t.lineSpace,"selectstart",(function(e){xi(t,e)||bt(e)})),ht(r,"compositionstart",(function(){var t=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:t,range:n.markText(t,n.getCursor("to"),{className:"CodeMirror-composing"})}})),ht(r,"compositionend",(function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)}))},Qa.prototype.createField=function(t){this.wrapper=Pa(),this.textarea=this.wrapper.firstChild},Qa.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Qa.prototype.prepareSelection=function(){var t=this.cm,e=t.display,i=t.doc,n=vn(t);if(t.options.moveInputWithCursor){var r=Ji(t,i.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,r.top+a.top-o.top)),n.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,r.left+a.left-o.left))}return n},Qa.prototype.showSelection=function(t){var e=this.cm.display;M(e.cursorDiv,t.cursors),M(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Qa.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var i=e.getSelection();this.textarea.value=i,e.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=i)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Qa.prototype.getField=function(){return this.textarea},Qa.prototype.supportsTouch=function(){return!1},Qa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||R()!=this.textarea))try{this.textarea.focus()}catch(t){}},Qa.prototype.blur=function(){this.textarea.blur()},Qa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qa.prototype.receivedFocus=function(){this.slowPoll()},Qa.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Qa.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function i(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,i))}))},Qa.prototype.poll=function(){var t=this,e=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!e.state.focused||Rt(i)&&!n&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=i.value;if(r==n&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===r||y&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||n||(n=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(n.length,r.length);l<c&&n.charCodeAt(l)==r.charCodeAt(l);)++l;return $n(e,(function(){Ra(e,r.slice(l),n.length-l,null,t.composing?"*compose":null),r.length>1e3||r.indexOf("\n")>-1?i.value=t.prevInput="":t.prevInput=r,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Qa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Qa.prototype.onContextMenu=function(t){var e=this,i=e.cm,n=i.display,r=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=cn(i,t),c=n.scroller.scrollTop;if(o&&!h){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(o)&&tr(i,$r)(i.doc,Ar(o),H);var u,p=r.style.cssText,d=e.wrapper.style.cssText,f=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-f.top-5)+"px; left: "+(t.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),n.input.focus(),l&&window.scrollTo(null,u),n.input.reset(),i.somethingSelected()||(r.value=e.prevInput=" "),e.contextMenuPending=v,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll),a&&s>=9&&g(),w){kt(t);var m=function(){dt(window,"mouseup",m),setTimeout(v,20)};ht(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=r.selectionStart){var t=i.somethingSelected(),o=""+(t?r.value:"");r.value="⇚",r.value=o,e.prevInput=t?"":"",r.selectionStart=1,r.selectionEnd=o.length,n.selForContextMenu=i.doc.sel}}function v(){if(e.contextMenuPending==v&&(e.contextMenuPending=!1,e.wrapper.style.cssText=d,r.style.cssText=p,a&&s<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=c),null!=r.selectionStart)){(!a||a&&s<9)&&g();var t=0,o=function(){n.selForContextMenu==i.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&""==e.prevInput?tr(i,so)(i):t++<10?n.detectingSelectAll=setTimeout(o,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(o,200)}}},Qa.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},Qa.prototype.setUneditable=function(){},Qa.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function i(i,n,r,o){t.defaults[i]=n,r&&(e[i]=o?function(t,e,i){i!=ka&&r(t,e,i)}:r)}t.defineOption=i,t.Init=ka,i("value","",(function(t,e){return t.setValue(e)}),!0),i("mode",null,(function(t,e){t.doc.modeOption=e,Tr(t)}),!0),i("indentUnit",2,Tr,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,(function(t){Nr(t),Fi(t),hn(t)}),!0),i("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var i=[],n=t.doc.first;t.doc.iter((function(t){for(var r=0;;){var o=t.text.indexOf(e,r);if(-1==o)break;r=o+e.length,i.push(te(n,o))}n++}));for(var r=i.length-1;r>=0;r--)mo(t.doc,e,i[r],te(i[r].line,i[r].ch+e.length))}})),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,i){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),i!=ka&&t.refresh()})),i("specialCharPlaceholder",_e,(function(t){return t.refresh()}),!0),i("electricChars",!0),i("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),i("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),i("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),i("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),i("rtlMoveVisually",!C),i("wholeLineUpdateBefore",!0),i("theme","default",(function(t){xa(t),mr(t)}),!0),i("keyMap","default",(function(t,e,i){var n=qo(e),r=i!=ka&&qo(i);r&&r.detach&&r.detach(t,n),n.attach&&n.attach(t,r||null)})),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Ea,!0),i("gutters",[],(function(t,e){t.display.gutterSpecs=dr(e,t.options.lineNumbers),mr(t)}),!0),i("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?an(t.display)+"px":"0",t.refresh()}),!0),i("coverGutterNextToScrollbar",!1,(function(t){return Vn(t)}),!0),i("scrollbarStyle","native",(function(t){Un(t),Vn(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),i("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=dr(t.options.gutters,e),mr(t)}),!0),i("firstLineNumber",1,mr,!0),i("lineNumberFormatter",(function(t){return t}),mr,!0),i("showCursorWhenSelecting",!1,gn,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,(function(t,e){"nocursor"==e&&(An(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),i("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),i("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),i("dragDrop",!0,Aa),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,gn,!0),i("singleCursorHeightPerLine",!0,gn,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Nr,!0),i("addModeClass",!1,Nr,!0),i("pollInterval",100),i("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),i("historyEventDelay",1250),i("viewportMargin",10,(function(t){return t.refresh()}),!0),i("maxHighlightLength",1e4,Nr,!0),i("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),i("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),i("autofocus",null),i("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),i("phrases",null)}(Oa),function(t){var e=t.optionHandlers,i=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,i){var n=this.options,r=n[t];n[t]==i&&"mode"!=t||(n[t]=i,e.hasOwnProperty(t)&&tr(this,e[t])(this,i,r),ft(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](qo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,i=0;i<e.length;++i)if(e[i]==t||e[i].name==t)return e.splice(i,1),!0},addOverlay:er((function(e,i){var n=e.token?e:t.getMode(this.options,e);if(n.startState)throw new Error("Overlays may not be stateful.");!function(t,e,i){for(var n=0,r=i(e);n<t.length&&i(t[n])<=r;)n++;t.splice(n,0,e)}(this.state.overlays,{mode:n,modeSpec:e,opaque:i&&i.opaque,priority:i&&i.priority||0},(function(t){return t.priority})),this.state.modeGen++,hn(this)})),removeOverlay:er((function(t){for(var e=this.state.overlays,i=0;i<e.length;++i){var n=e[i].modeSpec;if(n==t||"string"==typeof t&&n.name==t)return e.splice(i,1),this.state.modeGen++,void hn(this)}})),indentLine:er((function(t,e,i){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),_t(this.doc,t)&&Ia(this,t,e,i)})),indentSelection:er((function(t){for(var e=this.doc.sel.ranges,i=-1,n=0;n<e.length;n++){var r=e[n];if(r.empty())r.head.line>i&&(Ia(this,r.head.line,t,!0),i=r.head.line,n==this.doc.sel.primIndex&&Nn(this));else{var o=r.from(),a=r.to(),s=Math.max(i,o.line);i=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<i;++l)Ia(this,l,t);var c=this.doc.sel.ranges;0==o.ch&&e.length==c.length&&c[n].from().ch>0&&qr(this.doc,n,new wr(o,c[n].to()),H)}}})),getTokenAt:function(t,e){return ye(this,t,e)},getLineTokens:function(t,e){return ye(this,te(t),e,!0)},getTokenTypeAt:function(t){t=se(this.doc,t);var e,i=pe(this,Jt(this.doc,t.line)),n=0,r=(i.length-1)/2,o=t.ch;if(0==o)e=i[2];else for(;;){var a=n+r>>1;if((a?i[2*a-1]:0)>=o)r=a;else{if(!(i[2*a+1]<o)){e=i[2*a+2];break}n=a+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var i=this.doc.mode;return i.innerMode?t.innerMode(i,this.getTokenAt(e).state).mode:i},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var n=[];if(!i.hasOwnProperty(e))return n;var r=i[e],o=this.getModeAt(t);if("string"==typeof o[e])r[o[e]]&&n.push(r[o[e]]);else if(o[e])for(var a=0;a<o[e].length;a++){var s=r[o[e][a]];s&&n.push(s)}else o.helperType&&r[o.helperType]?n.push(r[o.helperType]):r[o.name]&&n.push(r[o.name]);for(var l=0;l<r._global.length;l++){var c=r._global[l];c.pred(o,this)&&-1==W(n,c.val)&&n.push(c.val)}return n},getStateAfter:function(t,e){var i=this.doc;return de(this,(t=ae(i,null==t?i.first+i.size-1:t))+1,e).state},cursorCoords:function(t,e){var i=this.doc.sel.primary();return Ji(this,null==t?i.head:"object"==typeof t?se(this.doc,t):t?i.from():i.to(),e||"page")},charCoords:function(t,e){return Qi(this,se(this.doc,t),e||"page")},coordsChar:function(t,e){return Yi(this,(t=Ui(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=Ui(this,{top:t,left:0},e||"page").top,Xt(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,i){var n,r=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,r=!0),n=Jt(this.doc,t)}else n=t;return Gi(this,n,{top:0,left:0},e||"page",i||r).top+(r?this.doc.height-Ge(n):0)},defaultTextHeight:function(){return nn(this.display)},defaultCharWidth:function(){return rn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,i,n,r){var o,a,s,l=this.display,c=(t=Ji(this,se(this.doc,t))).bottom,u=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==n)c=t.top;else if("above"==n||"near"==n){var h=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==n||t.bottom+e.offsetHeight>h)&&t.top>e.offsetHeight?c=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=h&&(c=t.bottom),u+e.offsetWidth>p&&(u=p-e.offsetWidth)}e.style.top=c+"px",e.style.left=e.style.right="","right"==r?(u=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==r?u=0:"middle"==r&&(u=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=u+"px"),i&&(o=this,a={left:u,top:c,right:u+e.offsetWidth,bottom:c+e.offsetHeight},null!=(s=In(o,a)).scrollTop&&Ln(o,s.scrollTop),null!=s.scrollLeft&&Pn(o,s.scrollLeft))},triggerOnKeyDown:er(ua),triggerOnKeyPress:er(pa),triggerOnKeyUp:ha,triggerOnMouseDown:er(ga),execCommand:function(t){if(ea.hasOwnProperty(t))return ea[t].call(null,this)},triggerElectric:er((function(t){Da(this,t)})),findPosH:function(t,e,i,n){var r=1;e<0&&(r=-1,e=-e);for(var o=se(this.doc,t),a=0;a<e&&!(o=za(this.doc,o,r,i,n)).hitSide;++a);return o},moveH:er((function(t,e){var i=this;this.extendSelectionsBy((function(n){return i.display.shift||i.doc.extend||n.empty()?za(i.doc,n.head,t,e,i.options.rtlMoveVisually):t<0?n.from():n.to()}),U)})),deleteH:er((function(t,e){var i=this.doc.sel,n=this.doc;i.somethingSelected()?n.replaceSelection("",null,"+delete"):Xo(this,(function(i){var r=za(n,i.head,t,e,!1);return t<0?{from:r,to:i.head}:{from:i.head,to:r}}))})),findPosV:function(t,e,i,n){var r=1,o=n;e<0&&(r=-1,e=-e);for(var a=se(this.doc,t),s=0;s<e;++s){var l=Ji(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Fa(this,l,r,i)).hitSide)break}return a},moveV:er((function(t,e){var i=this,n=this.doc,r=[],o=!this.display.shift&&!n.extend&&n.sel.somethingSelected();if(n.extendSelectionsBy((function(a){if(o)return t<0?a.from():a.to();var s=Ji(i,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),r.push(s.left);var l=Fa(i,s,t,e);return"page"==e&&a==n.sel.primary()&&Tn(i,Qi(i,l,"div").top-s.top),l}),U),r.length)for(var a=0;a<n.sel.ranges.length;a++)n.sel.ranges[a].goalColumn=r[a]})),findWordAt:function(t){var e=Jt(this.doc,t.line).text,i=t.ch,n=t.ch;if(e){var r=this.getHelper(t,"wordChars");"before"!=t.sticky&&n!=e.length||!i?++n:--i;for(var o=e.charAt(i),a=tt(o,r)?function(t){return tt(t,r)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!tt(t)};i>0&&a(e.charAt(i-1));)--i;for(;n<e.length&&a(e.charAt(n));)++n}return new wr(te(t.line,i),te(t.line,n))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?B(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),ft(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==R()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:er((function(t,e){Rn(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Ai(this)-this.display.barHeight,width:t.scrollWidth-Ai(this)-this.display.barWidth,clientHeight:Oi(this),clientWidth:Ei(this)}},scrollIntoView:er((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:te(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?function(t,e){Bn(t),t.curOp.scrollToPos=e}(this,t):Dn(this,t.from,t.to,t.margin)})),setSize:er((function(t,e){var i=this,n=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=n(t)),null!=e&&(this.display.wrapper.style.height=n(e)),this.options.lineWrapping&&zi(this);var r=this.display.viewFrom;this.doc.iter(r,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){pn(i,r,"widget");break}++r})),this.curOp.forceUpdate=!0,ft(this,"refresh",this)})),operation:function(t){return $n(this,t)},startOperation:function(){return Jn(this)},endOperation:function(){return Kn(this)},refresh:er((function(){var t=this.display.cachedTextHeight;hn(this),this.curOp.forceUpdate=!0,Fi(this),Rn(this,this.doc.scrollLeft,this.doc.scrollTop),cr(this.display),(null==t||Math.abs(t-nn(this.display))>.5||this.options.lineWrapping)&&ln(this),ft(this,"refresh",this)})),swapDoc:er((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Lr(this,t),Fi(this),this.display.input.reset(),Rn(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,si(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},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}},yt(t),t.registerHelper=function(e,n,r){i.hasOwnProperty(e)||(i[e]=t[e]={_global:[]}),i[e][n]=r},t.registerGlobalHelper=function(e,n,r,o){t.registerHelper(e,n,o),i[e]._global.push({pred:r,val:o})}}(Oa);var Ja="iter insert remove copy getEditor constructor".split(" ");for(var Ka in No.prototype)No.prototype.hasOwnProperty(Ka)&&W(Ja,Ka)<0&&(Oa.prototype[Ka]=function(t){return function(){return t.apply(this.doc,arguments)}}(No.prototype[Ka]));return yt(No),Oa.inputStyles={textarea:Qa,contenteditable:Wa},Oa.defineMode=function(t){Oa.defaults.mode||"null"==t||(Oa.defaults.mode=t),Pt.apply(this,arguments)},Oa.defineMIME=function(t,e){jt[t]=e},Oa.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Oa.defineMIME("text/plain","null"),Oa.defineExtension=function(t,e){Oa.prototype[t]=e},Oa.defineDocExtension=function(t,e){No.prototype[t]=e},Oa.fromTextArea=function(t,e){if((e=e?P(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var i=R();e.autofocus=i==t||null!=t.getAttribute("autofocus")&&i==document.body}function n(){t.value=s.getValue()}var r;if(t.form&&(ht(t.form,"submit",n),!e.leaveSubmitMethodAlone)){var o=t.form;r=o.submit;try{var a=o.submit=function(){n(),o.submit=r,o.submit(),o.submit=a}}catch(t){}}e.finishInit=function(i){i.save=n,i.getTextArea=function(){return t},i.toTextArea=function(){i.toTextArea=isNaN,n(),t.parentNode.removeChild(i.getWrapperElement()),t.style.display="",t.form&&(dt(t.form,"submit",n),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=r))}},t.style.display="none";var s=Oa((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=dt,t.on=ht,t.wheelEventPixels=Cr,t.Doc=No,t.splitLines=Nt,t.countColumn=z,t.findColumn=Q,t.isWordChar=$,t.Pass=V,t.signal=ft,t.Line=Je,t.changeEnd=Er,t.scrollbarModel=Gn,t.Pos=te,t.cmpPos=ee,t.modes=Lt,t.mimeModes=jt,t.resolveMode=zt,t.getMode=Ft,t.modeExtensions=Wt,t.extendMode=Vt,t.copyState=Ht,t.startState=Ut,t.innerMode=Gt,t.commands=ea,t.keyMap=Go,t.keyName=Yo,t.isModifierKey=Ko,t.lookupKey=Jo,t.normalizeKeyMap=Qo,t.StringStream=Qt,t.SharedTextMarker=Oo,t.TextMarker=Ao,t.LineWidget=ko,t.e_preventDefault=bt,t.e_stopPropagation=Ct,t.e_stop=kt,t.addClass=B,t.contains=N,t.rmClass=E,t.keyNames=Fo}(Oa),Oa.version="5.58.2",Oa}()},W6BS:
|
|
|
/*!************************************************!*\
|
|
|
!*** ./src/assets/images/icons/weibaitong.png ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.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/NDwJZlXiqBKlc7AEjg1aI2iVD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aMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},Xsq0:
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./src/assets/images/banner/mainbanner.jpg ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/mainbanner.0a951716.jpg"},Y1PL:
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-textarea/es/index.js + 7 modules ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: ResizableTextArea, default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(t,e,i){"use strict";i.r(e),i.d(e,"ResizableTextArea",(function(){return B}));var n=i("wx14"),r=i("1OyB"),o=i("vuIU"),a=i("Ji7U"),s=i("LK+K"),l=i("q1tI"),c=i("VTBJ"),u=i("rePB"),h=i("Zm9Q"),p=(i("Kwbf"),i("c+Xe")),d=i("m+aA"),f=i("bdgK"),m=new Map;var g=new f.default((function(t){t.forEach((function(t){var e,i=t.target;null===(e=m.get(i))||void 0===e||e.forEach((function(t){return t(i)}))}))}));var v=function(t){Object(a.a)(i,t);var e=Object(s.a)(i);function i(){return Object(r.a)(this,i),e.apply(this,arguments)}return Object(o.a)(i,[{key:"render",value:function(){return this.props.children}}]),i}(l.Component),y=l.createContext(null);function b(t){var e=t.children,i=t.disabled,n=l.useRef(null),r=l.useRef(null),o=l.useContext(y),a=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=l.isValidElement(e)&&Object(p.c)(e),u=s?e.ref:null,h=l.useMemo((function(){return Object(p.a)(u,n)}),[u,n]),f=l.useRef(t);f.current=t;var b=l.useCallback((function(t){var e=f.current,i=e.onResize,n=e.data,r=t.getBoundingClientRect(),s=r.width,l=r.height,u=t.offsetWidth,h=t.offsetHeight,p=Math.floor(s),d=Math.floor(l);if(a.current.width!==p||a.current.height!==d||a.current.offsetWidth!==u||a.current.offsetHeight!==h){var m={width:p,height:d,offsetWidth:u,offsetHeight:h};a.current=m;var g=u===Math.round(s)?s:u,v=h===Math.round(l)?l:h,y=Object(c.a)(Object(c.a)({},m),{},{offsetWidth:g,offsetHeight:v});null==o||o(y,t,n),i&&Promise.resolve().then((function(){i(y,t)}))}}),[]);return l.useEffect((function(){var t,e,o=Object(d.a)(n.current)||Object(d.a)(r.current);return o&&!i&&(t=o,e=b,m.has(t)||(m.set(t,new Set),g.observe(t)),m.get(t).add(e)),function(){return function(t,e){m.has(t)&&(m.get(t).delete(e),m.get(t).size||(g.unobserve(t),m.delete(t)))}(o,b)}}),[n.current,i]),l.createElement(v,{ref:r},s?l.cloneElement(e,{ref:h}):e)}function C(t){var e=t.children;return Object(h.a)(e).map((function(e,i){var r=(null==e?void 0:e.key)||"".concat("rc-observer-key","-").concat(i);return l.createElement(b,Object(n.a)({},t,{key:r}),e)}))}C.Collection=function(t){var e=t.children,i=t.onBatchResize,n=l.useRef(0),r=l.useRef([]),o=l.useContext(y),a=l.useCallback((function(t,e,a){n.current+=1;var s=n.current;r.current.push({size:t,element:e,data:a}),Promise.resolve().then((function(){s===n.current&&(null==i||i(r.current),r.current=[])})),null==o||o(t,e,a)}),[i,o]);return l.createElement(y.Provider,{value:a},e)};var x,k=C,w=i("bT9E"),S=i("TSYQ"),A=i.n(S),E="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",O=["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"],M={};function I(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&M[i])return M[i];var n=window.getComputedStyle(t),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=O.map((function(t){return"".concat(t,":").concat(n.getPropertyValue(t))})).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:r};return e&&i&&(M[i]=l),l}var T,N=i("Gytx"),R=i.n(N);!function(t){t[t.NONE=0]="NONE",t[t.RESIZING=1]="RESIZING",t[t.RESIZED=2]="RESIZED"}(T||(T={}));var B=function(t){Object(a.a)(i,t);var e=Object(s.a)(i);function i(t){var o;return Object(r.a)(this,i),(o=e.call(this,t)).nextFrameActionId=void 0,o.resizeFrameId=void 0,o.textArea=void 0,o.saveTextArea=function(t){o.textArea=t},o.handleResize=function(t){var e=o.state.resizeStatus,i=o.props,n=i.autoSize,r=i.onResize;e===T.NONE&&("function"==typeof r&&r(t),n&&o.resizeOnNextFrame())},o.resizeOnNextFrame=function(){cancelAnimationFrame(o.nextFrameActionId),o.nextFrameActionId=requestAnimationFrame(o.resizeTextarea)},o.resizeTextarea=function(){var t=o.props.autoSize;if(t&&o.textArea){var e=t.minRows,i=t.maxRows,n=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;x||((x=document.createElement("textarea")).setAttribute("tab-index","-1"),x.setAttribute("aria-hidden","true"),document.body.appendChild(x)),t.getAttribute("wrap")?x.setAttribute("wrap",t.getAttribute("wrap")):x.removeAttribute("wrap");var r=I(t,e),o=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;x.setAttribute("style","".concat(l,";").concat(E)),x.value=t.value||t.placeholder||"";var c,u=Number.MIN_SAFE_INTEGER,h=Number.MAX_SAFE_INTEGER,p=x.scrollHeight;if("border-box"===s?p+=a:"content-box"===s&&(p-=o),null!==i||null!==n){x.value=" ";var d=x.scrollHeight-o;null!==i&&(u=d*i,"border-box"===s&&(u=u+o+a),p=Math.max(u,p)),null!==n&&(h=d*n,"border-box"===s&&(h=h+o+a),c=p>h?"":"hidden",p=Math.min(h,p))}return{height:p,minHeight:u,maxHeight:h,overflowY:c,resize:"none"}}(o.textArea,!1,e,i);o.setState({textareaStyles:n,resizeStatus:T.RESIZING},(function(){cancelAnimationFrame(o.resizeFrameId),o.resizeFrameId=requestAnimationFrame((function(){o.setState({resizeStatus:T.RESIZED},(function(){o.resizeFrameId=requestAnimationFrame((function(){o.setState({resizeStatus:T.NONE}),o.fixFirefoxAutoScroll()}))}))}))}))}},o.renderTextArea=function(){var t=o.props,e=t.prefixCls,i=void 0===e?"rc-textarea":e,r=t.autoSize,a=t.onResize,s=t.className,h=t.disabled,p=o.state,d=p.textareaStyles,f=p.resizeStatus,m=Object(w.a)(o.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),g=A()(i,s,Object(u.a)({},"".concat(i,"-disabled"),h));"value"in m&&(m.value=m.value||"");var v=Object(c.a)(Object(c.a)(Object(c.a)({},o.props.style),d),f===T.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return l.createElement(k,{onResize:o.handleResize,disabled:!(r||a)},l.createElement("textarea",Object(n.a)({},m,{className:g,style:v,ref:o.saveTextArea})))},o.state={textareaStyles:{},resizeStatus:T.NONE},o}return Object(o.a)(i,[{key:"componentDidUpdate",value:function(t){t.value===this.props.value&&R()(t.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 t=this.textArea.selectionStart,e=this.textArea.selectionEnd;this.textArea.setSelectionRange(t,e)}}catch(t){}}},{key:"render",value:function(){return this.renderTextArea()}}]),i}(l.Component),D=function(t){Object(a.a)(i,t);var e=Object(s.a)(i);function i(t){var n;Object(r.a)(this,i),(n=e.call(this,t)).resizableTextArea=void 0,n.focus=function(){n.resizableTextArea.textArea.focus()},n.saveTextArea=function(t){n.resizableTextArea=t},n.handleChange=function(t){var e=n.props.onChange;n.setValue(t.target.value,(function(){n.resizableTextArea.resizeTextarea()})),e&&e(t)},n.handleKeyDown=function(t){var e=n.props,i=e.onPressEnter,r=e.onKeyDown;13===t.keyCode&&i&&i(t),r&&r(t)};var o=void 0===t.value||null===t.value?t.defaultValue:t.value;return n.state={value:o},n}return Object(o.a)(i,[{key:"setValue",value:function(t,e){"value"in this.props||this.setState({value:t},e)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return l.createElement(B,Object(n.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(t){return"value"in t?{value:t.value}:null}}]),i}(l.Component);e.default=D},ZW9T:
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./src/components/monaco-editor/index.jsx + 1 modules ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: getLanguageByMirrorName, default, DiffEditor */
|
|
|
/*! exports used: DiffEditor, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */function(t,e,i){"use strict";i.d(e,"a",(function(){return v}));var n=i("k1fw"),r=(i("miYZ"),i("tsqr")),o=i("rAM+"),a=i("tJVT"),s=i("PpiC"),l=i("q1tI"),c=i.n(l),u=i("bdgK");function h(t,e,i,r,o){var a=e.getWordUntilPosition(i),s={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:a.startColumn,endColumn:a.endColumn},l=r.map((function(e){return{label:e,kind:t.languages.CompletionItemKind.Keyword,insertText:e,insertTextRules:t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:s}}));return o.map((function(t){l.push(Object(n.a)(Object(n.a)({},t),{},{range:s}))})),l}i("LvDl");function p(t){return/^\d+$/.test(t)?"".concat(t,"px"):t}function d(){}var f={"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 m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t;if(Array.isArray(t)){for(var i=0;i<t.length;i++){var n=f[t[i]];if(n)return n}return e[0]}return f[e]||e}var g=null;e.b=function(t){var e=t.width,f=void 0===e?"100%":e,v=t.height,y=void 0===v?"100%":v,b=t.value,C=t.language,x=void 0===C?"javascript":C,k=t.style,w=void 0===k?{}:k,S=t.options,A=void 0===S?{}:S,E=t.overrideServices,O=void 0===E?{}:E,M=t.theme,I=void 0===M?"vs-dark":M,T=t.onEditBlur,N=t.onSave,R=t.autoHeight,B=void 0!==R&&R,D=t.forbidCopy,L=void 0!==D&&D,j=t.onChange,P=void 0===j?d:j,z=t.editorDidMount,F=void 0===z?d:z,W=t.onFocus,V=void 0===W?d:W,H=t.filename,G=void 0===H?"educoder.txt":H,U=(Object(s.a)(t,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),Object(l.useRef)()),Q=Object(l.useRef)({}),J=Object(l.useRef)(),K=Object(l.useRef)(!1),Z=Object(l.useRef)(),Y=Object(l.useState)(!1),q=Object(a.a)(Y,2),X=q[0],_=q[1];function $(){r.b.warn(decodeURIComponent("该任务关卡设置了禁止复制粘贴,请手动输入代码。"))}function tt(){var t=Q.current.instance;if(t){var e=t.getSelection(),i=Q.current.pastePos||{},n=new g.Range(i.startLineNumber||e.endLineNumber,i.startColumn||e.endColumn,i.endLineNumber||e.endLineNumber,i.endColumn||e.endColumn);setTimeout((function(){t.executeEdits("",[{range:n,text:""}])}),300)}}function et(t){(window.navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)&&83==t.keyCode&&(t.preventDefault(),N())}Object(l.useEffect)((function(){J.current&&clearTimeout(J.current),J.current=setTimeout((function(){!function(){var t=Q.current.instance;if(null!=b&&t&&X){var e=t.getModel();e&&b!==e.getValue()&&(!0,e.setValue(b),t.layout(),!1)}}()}),500)}),[b,X,Q.current]);var it=function(){if(B&&Q.current.instance){var t=Q.current.instance.getContentHeight();ut(t<y?y:t)}else ut(y)};function nt(t,e){var i,n,r=window.URL||window.webkitURL||window,o=new Blob([e]),a=document.createElementNS("http://www.w3.org/1999/xhtml","a");a.href=r.createObjectURL(o),a.download=t,i=a,(n=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(n)}Object(l.useEffect)((function(){it()}),[it]),Object(l.useEffect)((function(){U.current&&!X&&i.e(/*! import() | monaco-editor */27).then(i.t.bind(null,/*! monaco-editor/esm/vs/editor/editor.api.js */"M/lh",7)).then((function(t){try{g=t,Q.current.instance=g.editor.create(U.current,{value:b,language:m(x),theme:I,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},O);var e=Q.current.instance;if(F(e,g),setTimeout((function(){it(),Q.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){nt(G||"educoder.txt",e.getValue())}})}),500),Q.current.subscription=e.onDidChangeModelContent((function(t){K.current?clearTimeout(Z.current):(it(),P(e.getValue(),t)),Z.current=setTimeout((function(){K.current=!1}),500)})),window.Monaco||function(t){var e={label:"ifelse",kind:t.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n"),insertTextRules:t.languages.CompletionItemInsertTextRule.InsertAsSnippet},i=["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"];t.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(n,r){return{suggestions:h(t,n,r,i,[e])}}});var n=["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"];t.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(e,i){var r=[{label:"print",kind:t.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join("\n"),insertTextRules:t.languages.CompletionItemInsertTextRule.InsertAsSnippet}];return{suggestions:h(t,e,i,n,r)}}});var r=["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"];t.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(i,n){var o=[e,{label:"main",kind:t.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {","\t$0","}"].join("\n"),insertTextRules:t.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:t.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join("\n"),insertTextRules:t.languages.CompletionItemInsertTextRule.InsertAsSnippet}];return{suggestions:h(t,i,n,r,o)}}})}(g),L&&(e.addCommand(g.KeyMod.CtrlCmd|g.KeyMod.Shift|g.KeyCode.KEY_V,(function(){return $(),null})),e.addCommand(g.KeyMod.CtrlCmd|g.KeyCode.KEY_C,(function(){return $(),null}))),window.Monaco=g,T&&e.onDidBlurEditorWidget((function(){T(e.getValue())})),V&&e.onDidFocusEditorText((function(){V(e.getValue())})),L){e.addCommand(g.KeyMod.CtrlCmd|g.KeyCode.KEY_V,(function(){return $(),null})),e.onDidPaste((function(t){Q.current.pastePos=t}));try{window.addEventListener("paste",tt)}catch(t){}}var i=function(){var t;return U.current&&(t=new u.default((function(t){var e,i=Object(o.a)(t);try{for(i.s();!(e=i.n()).done;){var n=e.value;(n.target.offsetHeight>0||n.target.offsetWidth>0)&&Q.current.instance.layout()}}catch(t){i.e(t)}finally{i.f()}}))).observe(U.current),t}();return _(!0),function(){var t=Q.current.instance;t.dispose();var e=t.getModel();e&&e.dispose(),Q.current.subscription&&Q.current.subscription.dispose(),L&&window.removeEventListener("paste",tt),i.unobserve(U.current)}}catch(t){}}))}),[]),Object(l.useEffect)((function(){if(Q.current.instance&&X)return document.addEventListener("keydown",et,!1),function(){document.removeEventListener("keydown",et)}}),[N,X]),Object(l.useEffect)((function(){var t=Q.current.instance;if(t&&X){var e=m(x);g.editor.setModelLanguage(t.getModel(),e),console.log("language:",x,t.getModel(),e)}}),[x,X]),Object(l.useEffect)((function(){Q.current.instance&&X&&g.editor.setTheme(I)}),[I,X]),Object(l.useEffect)((function(){var t=Q.current.instance;t&&X&&(t.updateOptions(Object(n.a)({},A)),setTimeout((function(){t.getModel().updateOptions(Object(n.a)({},A))}),200))}),[JSON.stringify(A),X]),Object(l.useEffect)((function(){var t=Q.current.instance;t&&X&&t.layout()}),[f,y,X]);var rt=Object(l.useState)(p(f)),ot=Object(a.a)(rt,2),at=ot[0],st=(ot[1],Object(l.useState)(p(y))),lt=Object(a.a)(st,2),ct=lt[0],ut=lt[1],ht=Object(n.a)(Object(n.a)({},w),{},{width:at,height:ct});return c.a.createElement("div",{className:"my-monaco-editor",ref:U,style:ht})};function v(t){var e=t.width,r=void 0===e?"100%":e,s=t.height,h=void 0===s?"100%":s,d=t.original,f=t.modified,m=t.language,v=t.options,y=void 0===v?{}:v,b=Object(l.useRef)(),C=Object(l.useState)(null),x=Object(a.a)(C,2),k=x[0],w=x[1];Object(l.useEffect)((function(){b.current&&i.e(/*! import() | monaco-editor */27).then(i.t.bind(null,/*! monaco-editor/esm/vs/editor/editor.api.js */"M/lh",7)).then((function(t){var e=(g=t).editor.createDiffEditor(b.current,Object(n.a)(Object(n.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},y),{},{wordWrap:!0}));w(e);var i=function(t){var e;return b.current&&(e=new u.default((function(e){var i,n=Object(o.a)(e);try{for(n.s();!(i=n.n()).done;){var r=i.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&t.layout()}}catch(t){n.e(t)}finally{n.f()}}))).observe(b.current),e}(e);return function(){e.dispose();var t=e.getModel();t&&t.dispose(),i.unobserve(b.current)}}))}),[]),Object(l.useEffect)((function(){k&&k.setModel({original:g.editor.createModel(d,m),modified:g.editor.createModel(f,m)})}),[d,f,m,k]);var S={width:p(r),height:p(h)};return c.a.createElement("div",{className:"my-diff-editor",ref:b,style:S})}},ZpRC:
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/scroll-into-view-if-needed/es/index.js + 1 modules ***!
|
|
|
\*************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(t,e,i){"use strict";function n(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function r(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function o(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var i=getComputedStyle(t,null);return r(i.overflowY,e)||r(i.overflowX,e)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function a(t,e,i,n,r,o,a,s){return o<t&&a>e||o>t&&a<e?0:o<=t&&s<=i||a>=e&&s>=i?o-t-n:a>e&&s<i||o<t&&s>i?a-e+r:0}var s=function(t,e){var i=window,r=e.scrollMode,s=e.block,l=e.inline,c=e.boundary,u=e.skipOverflowHiddenElements,h="function"==typeof c?c:function(t){return t!==c};if(!n(t))throw new TypeError("Invalid target");for(var p=document.scrollingElement||document.documentElement,d=[],f=t;n(f)&&h(f);){if((f=f.parentElement)===p){d.push(f);break}null!=f&&f===document.body&&o(f)&&!o(document.documentElement)||null!=f&&o(f,u)&&d.push(f)}for(var m=i.visualViewport?i.visualViewport.width:innerWidth,g=i.visualViewport?i.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=t.getBoundingClientRect(),C=b.height,x=b.width,k=b.top,w=b.right,S=b.bottom,A=b.left,E="start"===s||"nearest"===s?k:"end"===s?S:k+C/2,O="center"===l?A+x/2:"end"===l?w:A,M=[],I=0;I<d.length;I++){var T=d[I],N=T.getBoundingClientRect(),R=N.height,B=N.width,D=N.top,L=N.right,j=N.bottom,P=N.left;if("if-needed"===r&&k>=0&&A>=0&&S<=g&&w<=m&&k>=D&&S<=j&&A>=P&&w<=L)return M;var z=getComputedStyle(T),F=parseInt(z.borderLeftWidth,10),W=parseInt(z.borderTopWidth,10),V=parseInt(z.borderRightWidth,10),H=parseInt(z.borderBottomWidth,10),G=0,U=0,Q="offsetWidth"in T?T.offsetWidth-T.clientWidth-F-V:0,J="offsetHeight"in T?T.offsetHeight-T.clientHeight-W-H:0;if(p===T)G="start"===s?E:"end"===s?E-g:"nearest"===s?a(y,y+g,g,W,H,y+E,y+E+C,C):E-g/2,U="start"===l?O:"center"===l?O-m/2:"end"===l?O-m:a(v,v+m,m,F,V,v+O,v+O+x,x),G=Math.max(0,G+y),U=Math.max(0,U+v);else{G="start"===s?E-D-W:"end"===s?E-j+H+J:"nearest"===s?a(D,j,R,W,H+J,E,E+C,C):E-(D+R/2)+J/2,U="start"===l?O-P-F:"center"===l?O-(P+B/2)+Q/2:"end"===l?O-L+V+Q:a(P,L,B,F,V+Q,O,O+x,x);var K=T.scrollLeft,Z=T.scrollTop;E+=Z-(G=Math.max(0,Math.min(Z+G,T.scrollHeight-R+J))),O+=K-(U=Math.max(0,Math.min(K+U,T.scrollWidth-B+Q)))}M.push({el:T,top:G,left:U})}return M};function l(t){return t===Object(t)&&0!==Object.keys(t).length}e.a=function(t,e){var i=!t.ownerDocument.documentElement.contains(t);if(l(e)&&"function"==typeof e.behavior)return e.behavior(i?[]:s(t,e));if(!i){var n=function(t){return!1===t?{block:"end",inline:"nearest"}:l(t)?t:{block:"start",inline:"nearest"}}(e);return function(t,e){void 0===e&&(e="auto");var i="scrollBehavior"in document.body.style;t.forEach((function(t){var n=t.el,r=t.top,o=t.left;n.scroll&&i?n.scroll({top:r,left:o,behavior:e}):(n.scrollTop=r,n.scrollLeft=o)}))}(s(t,n),n.behavior)}}},bT9E:
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/omit.js ***!
|
|
|
\*****************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ");function r(t,e){var i=Object(n.a)({},t);return Array.isArray(e)&&e.forEach((function(t){delete i[t]})),i}},c5Ni:
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/codemirror/theme/blackboard.css ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){},cRFk:
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./src/assets/images/RepositoryNoneData.png ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/RepositoryNoneData.828085a8.png"},csWT:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/choose.svg ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/choose.4ad1045f.svg"},dejd:
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./src/components/markdown-editor/toolbar/index.less ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){},djh8:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/qrCode.png ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/qrCode.42927872.png"},dmUQ:
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/rc-input-number/es/index.js + 1 modules ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(t,e,i){"use strict";var n=i("Ff2n"),r=i("rePB"),o=i("1OyB"),a=i("vuIU"),s=i("Ji7U"),l=i("md7G"),c=i("foSv"),u=i("q1tI"),h=i.n(u),p=i("TSYQ"),d=i.n(p),f=i("4IlW");function m(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function g(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?m(Object(i),!0).forEach((function(e){Object(r.a)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=Object(c.a)(t);if(e){var r=Object(c.a)(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return Object(l.a)(this,i)}}function y(){}function b(t){t.preventDefault()}var C=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,x=function(t){return null!=t},k=function(t,e){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},w=function(t){Object(s.a)(i,t);var e=v(i);function i(t){var n;Object(o.a)(this,i),(n=e.call(this,t)).onKeyDown=function(t){var e=n.props,i=e.onKeyDown,r=e.onPressEnter;if(t.keyCode===f.a.UP){var o=n.getRatio(t);n.up(t,o,null),n.stop()}else if(t.keyCode===f.a.DOWN){var a=n.getRatio(t);n.down(t,a,null),n.stop()}else t.keyCode===f.a.ENTER&&r&&r(t);if(n.recordCursorPosition(),n.lastKeyCode=t.keyCode,i){for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];i.apply(void 0,[t].concat(l))}},n.onKeyUp=function(t){var e=n.props.onKeyUp;if(n.stop(),n.recordCursorPosition(),e){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];e.apply(void 0,[t].concat(r))}},n.onChange=function(t){var e=n.props.onChange;n.state.focused&&(n.inputting=!0),n.rawInput=n.props.parser(n.getValueFromEvent(t)),n.setState({inputValue:n.rawInput}),e(n.toNumber(n.rawInput))},n.onMouseUp=function(){var t=n.props.onMouseUp;n.recordCursorPosition(),t&&t.apply(void 0,arguments)},n.onFocus=function(){var t;n.setState({focused:!0}),(t=n.props).onFocus.apply(t,arguments)},n.onBlur=function(){var t=n.props.onBlur;n.inputting=!1,n.setState({focused:!1});var e=n.getCurrentValidValue(n.state.inputValue),i=n.setValue(e,y);if(t){var r=n.input.value,o=n.getInputDisplayValue({focus:!1,value:i});n.input.value=o?Number(o):o,t.apply(void 0,arguments),n.input.value=r}},n.getRatio=function(t){var e=1;return t.metaKey||t.ctrlKey?e=.1:t.shiftKey&&(e=10),e},n.getFullNum=function(t){return isNaN(t)?t:/e/i.test(String(t))?Number(t).toFixed(18).replace(/\.?0+$/,""):t},n.getPrecision=function(t){if(x(n.props.precision))return n.props.precision;var e=String(t);if(e.indexOf("e-")>=0)return parseInt(e.slice(e.indexOf("e-")+2),10);var i=0;return e.indexOf(".")>=0&&(i=e.length-e.indexOf(".")-1),i},n.getInputDisplayValue=function(t){var e,i=t||n.state,r=i.focused,o=i.inputValue,a=i.value;null==(e=r?o:n.toPrecisionAsStep(a))&&(e="");var s=n.formatWrapper(e);return x(n.props.decimalSeparator)&&(s=s.toString().replace(".",n.props.decimalSeparator)),s},n.recordCursorPosition=function(){try{n.cursorStart=n.input.selectionStart,n.cursorEnd=n.input.selectionEnd,n.currentValue=n.input.value,n.cursorBefore=n.input.value.substring(0,n.cursorStart),n.cursorAfter=n.input.value.substring(n.cursorEnd)}catch(t){}},n.restoreByAfter=function(t){if(void 0===t)return!1;var e=n.input.value,i=e.lastIndexOf(t);if(-1===i)return!1;var r=n.cursorBefore.length;return n.lastKeyCode===f.a.DELETE&&n.cursorBefore.charAt(r-1)===t[0]?(n.fixCaret(r,r),!0):i+t.length===e.length&&(n.fixCaret(i,i),!0)},n.partRestoreByAfter=function(t){return void 0!==t&&Array.prototype.some.call(t,(function(e,i){var r=t.substring(i);return n.restoreByAfter(r)}))},n.isNotCompleteNumber=function(t){return isNaN(t)||""===t||null===t||t&&t.toString().indexOf(".")===t.toString().length-1},n.stop=function(){n.autoStepTimer&&clearTimeout(n.autoStepTimer)},n.down=function(t,e,i){n.pressingUpOrDown=!0,n.step("down",t,e,i)},n.up=function(t,e,i){n.pressingUpOrDown=!0,n.step("up",t,e,i)},n.saveInput=function(t){n.input=t};var r=t.value;void 0===r&&(r=t.defaultValue),n.state={focused:t.autoFocus};var a=n.getValidValue(n.toNumber(r));return n.state=g(g({},n.state),{},{inputValue:n.toPrecisionAsStep(a),value:a}),n}return Object(a.a)(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(t){var e=this.props,i=e.value,n=e.onChange,r=e.max,o=e.min,a=this.state.focused;if(t){if(!k(t.value,i)||!k(t.max,r)||!k(t.min,o)){var s,l=a?i:this.getValidValue(i);s=this.pressingUpOrDown?l:this.inputting?this.rawInput:this.toPrecisionAsStep(l),this.setState({value:l,inputValue:s})}var c="value"in this.props?i:this.state.value;"max"in this.props&&t.max!==r&&"number"==typeof c&&c>r&&n&&n(r),"min"in this.props&&t.min!==o&&"number"==typeof c&&c<o&&n&&n(o)}try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case f.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case f.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var u=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===f.a.BACKSPACE?u=this.cursorStart-1:this.lastKeyCode===f.a.DELETE&&(u=this.cursorStart):u=this.input.value.length,this.fixCaret(u,u)}}catch(t){}this.lastKeyCode=null,this.pressingUpOrDown&&this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus()}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(t){var e=t;return e=""===e?"":this.isNotCompleteNumber(parseFloat(e))?this.state.value:this.getValidValue(e),this.toNumber(e)}},{key:"getValueFromEvent",value:function(t){var e=t.target.value.trim().replace(/。/g,".");return x(this.props.decimalSeparator)&&(e=e.replace(this.props.decimalSeparator,".")),e}},{key:"getValidValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.min,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.max,n=parseFloat(t);return isNaN(n)?t:(n<e&&(n=e),n>i&&(n=i),n)}},{key:"setValue",value:function(t,e){var i=this.props.precision,n=this.isNotCompleteNumber(parseFloat(t))?null:parseFloat(t),r=this.state.value,o=void 0===r?null:r,a=this.state.inputValue,s=void 0===a?null:a,l="number"==typeof n?n.toFixed(i):"".concat(n),c=n!==o||l!=="".concat(s);return"value"in this.props?(s=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:s},e)):this.setState({value:n,inputValue:this.toPrecisionAsStep(t)},e),c&&this.props.onChange(n),n}},{key:"getMaxPrecision",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.props,n=i.precision,r=i.step;if(x(n))return n;var o=this.getPrecision(e),a=this.getPrecision(r),s=this.getPrecision(t);return t?Math.max(s,o+a):o+a}},{key:"getPrecisionFactor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.getMaxPrecision(t,e);return Math.pow(10,i)}},{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(t){return this.props.formatter?this.props.formatter(t):t}},{key:"toPrecisionAsStep",value:function(t){if(this.isNotCompleteNumber(t)||""===t)return t;var e=Math.abs(this.getMaxPrecision(t));return isNaN(e)?t.toString():Number(t).toFixed(e)}},{key:"toNumber",value:function(t){var e=this.props.precision,i=this.state.focused,n=t&&t.length>16&&i;return this.isNotCompleteNumber(t)||n?t:x(e)?Math.round(t*Math.pow(10,e))/Math.pow(10,e):Number(t)}},{key:"upStep",value:function(t,e){var i=this.props.step,n=this.getPrecisionFactor(t,e),r=Math.abs(this.getMaxPrecision(t,e)),o=((n*t+n*i*e)/n).toFixed(r);return this.toNumber(o)}},{key:"downStep",value:function(t,e){var i=this.props.step,n=this.getPrecisionFactor(t,e),r=Math.abs(this.getMaxPrecision(t,e)),o=((n*t-n*i*e)/n).toFixed(r);return this.toNumber(o)}},{key:"step",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0;this.stop(),e&&(e.persist(),e.preventDefault());var o=this.props;if(!o.disabled){var a=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(a)){var s=this["".concat(t,"Step")](a,n),l=s>o.max||s<o.min;s>o.max?s=o.max:s<o.min&&(s=o.min),this.setValue(s,null),this.setState({focused:!0},(function(){i.pressingUpOrDown=!1})),l||(this.autoStepTimer=setTimeout((function(){i[t](e,n,!0)}),r?200:600))}}}},{key:"fixCaret",value:function(t,e){if(void 0!==t&&void 0!==e&&this.input&&this.input.value)try{var i=this.input.selectionStart,n=this.input.selectionEnd;t===i&&e===n||this.input.setSelectionRange(t,e)}catch(t){}}},{key:"render",value:function(){var t,e=this.props,i=e.prefixCls,o=e.disabled,a=e.readOnly,s=e.useTouch,l=e.autoComplete,c=e.upHandler,u=e.downHandler,p=e.className,f=e.max,m=e.min,g=e.style,v=e.title,C=e.onMouseEnter,x=e.onMouseLeave,k=e.onMouseOver,w=e.onMouseOut,S=e.required,A=e.onClick,E=e.tabIndex,O=e.type,M=e.placeholder,I=e.id,T=e.inputMode,N=e.pattern,R=e.step,B=e.maxLength,D=e.autoFocus,L=e.name,j=e.onPaste,P=e.onInput,z=Object(n.a)(e,["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"]),F=this.state,W=F.value,V=F.focused,H=d()(i,(t={},Object(r.a)(t,p,!!p),Object(r.a)(t,"".concat(i,"-disabled"),o),Object(r.a)(t,"".concat(i,"-focused"),V),t)),G={};Object.keys(z).forEach((function(t){"data-"!==t.substr(0,5)&&"aria-"!==t.substr(0,5)&&"role"!==t||(G[t]=z[t])}));var U=!a&&!o,Q=this.getInputDisplayValue(null),J=(W||0===W)&&(isNaN(W)||Number(W)>=f)||o||a,K=(W||0===W)&&(isNaN(W)||Number(W)<=m)||o||a,Z=d()("".concat(i,"-handler"),"".concat(i,"-handler-up"),Object(r.a)({},"".concat(i,"-handler-up-disabled"),J)),Y=d()("".concat(i,"-handler"),"".concat(i,"-handler-down"),Object(r.a)({},"".concat(i,"-handler-down-disabled"),K)),q=s?{onTouchStart:J?y:this.up,onTouchEnd:this.stop}:{onMouseDown:J?y:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},X=s?{onTouchStart:K?y:this.down,onTouchEnd:this.stop}:{onMouseDown:K?y:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return h.a.createElement("div",{className:H,style:g,title:v,onMouseEnter:C,onMouseLeave:x,onMouseOver:k,onMouseOut:w,onFocus:function(){return null},onBlur:function(){return null}},h.a.createElement("div",{className:"".concat(i,"-handler-wrap")},h.a.createElement("span",Object.assign({unselectable:"on"},q,{role:"button","aria-label":"Increase Value","aria-disabled":J,className:Z}),c||h.a.createElement("span",{unselectable:"on",className:"".concat(i,"-handler-up-inner"),onClick:b})),h.a.createElement("span",Object.assign({unselectable:"on"},X,{role:"button","aria-label":"Decrease Value","aria-disabled":K,className:Y}),u||h.a.createElement("span",{unselectable:"on",className:"".concat(i,"-handler-down-inner"),onClick:b}))),h.a.createElement("div",{className:"".concat(i,"-input-wrap")},h.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":m,"aria-valuemax":f,"aria-valuenow":W,required:S,type:O,placeholder:M,onPaste:j,onClick:A,onMouseUp:this.onMouseUp,className:"".concat(i,"-input"),tabIndex:E,autoComplete:l,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:U?this.onKeyDown:y,onKeyUp:U?this.onKeyUp:y,autoFocus:D,maxLength:B,readOnly:a,disabled:o,max:f,min:m,step:R,name:L,title:v,id:I,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Q),pattern:N,inputMode:T,onInput:P},G))))}}]),i}(h.a.Component);w.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:C,min:-C,step:1,style:{},onChange:y,onKeyDown:y,onPressEnter:y,onFocus:y,onBlur:y,parser:function(t){return t.replace(/[^\w.-]+/g,"")},required:!1,autoComplete:"off"};var S=w;e.a=S},ji0R:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/icons/douyu.jpg ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/douyu.3e6df9ee.jpg"},k3GJ:
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-tabs/es/index.js + 50 modules ***!
|
|
|
\*******************************************************/
|
|
|
/*! exports provided: TabPane, default */
|
|
|
/*! exports used: TabPane, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/mini-store/esm/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/raf/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-align/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-dropdown/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-resize-observer/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/addEventListener.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/canUseDom.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/contains.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Portal.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/createChainedFunction.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMergedState.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/raf.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-dom/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(t,e,i){"use strict";i.d(e,"a",(function(){return Qe}));var n=i("rePB"),r=i("ODXe"),o=i("Ff2n"),a=i("VTBJ"),s=i("q1tI"),l=i("TSYQ"),c=i.n(l),u=i("Zm9Q"),h=i("6cGi"),p=i("KQm4"),d=i("xEkU"),f=i.n(d),m=i("t23M");function g(t){var e=Object(s.useRef)(),i=Object(s.useRef)(!1);return Object(s.useEffect)((function(){return function(){i.current=!0,f.a.cancel(e.current)}}),[]),function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];i.current||(f.a.cancel(e.current),e.current=f()((function(){t.apply(void 0,r)})))}}var v=i("4IlW");var y=s.forwardRef((function(t,e){var i,r=t.prefixCls,o=t.id,a=t.active,l=t.rtl,u=t.tab,h=u.key,p=u.tab,d=u.disabled,f=u.closeIcon,m=t.tabBarGutter,g=t.tabPosition,y=t.closable,b=t.renderWrapper,C=t.removeAriaLabel,x=t.editable,k=t.onClick,w=t.onRemove,S=t.onFocus,A="".concat(r,"-tab");s.useEffect((function(){return w}),[]);var E={};"top"===g||"bottom"===g?E[l?"marginLeft":"marginRight"]=m:E.marginBottom=m;var O=x&&!1!==y&&!d;function M(t){d||k(t)}var I=s.createElement("div",{key:h,ref:e,className:c()(A,(i={},Object(n.a)(i,"".concat(A,"-with-remove"),O),Object(n.a)(i,"".concat(A,"-active"),a),Object(n.a)(i,"".concat(A,"-disabled"),d),i)),style:E,onClick:M},s.createElement("div",{role:"tab","aria-selected":a,id:o&&"".concat(o,"-tab-").concat(h),className:"".concat(A,"-btn"),"aria-controls":o&&"".concat(o,"-panel-").concat(h),"aria-disabled":d,tabIndex:d?null:0,onClick:function(t){t.stopPropagation(),M(t)},onKeyDown:function(t){[v.a.SPACE,v.a.ENTER].includes(t.which)&&(t.preventDefault(),M(t))},onFocus:S},p),O&&s.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:"".concat(A,"-remove"),onClick:function(t){var e;t.stopPropagation(),(e=t).preventDefault(),e.stopPropagation(),x.onEdit("remove",{key:h,event:e})}},f||x.removeIcon||"×"));return b&&(I=b(I)),I})),b={width:0,height:0,left:0,top:0};var C={width:0,height:0,left:0,top:0,right:0};var x=i("wx14"),k=i("1OyB"),w=i("vuIU"),S=i("JX7q"),A=i("Ji7U"),E=i("LK+K"),O=i("I8Z2"),M=i("bT9E"),I=i("2GS6"),T=i("Gytx"),N=i.n(T),R=i("U8pU"),B=/iPhone/i,D=/iPod/i,L=/iPad/i,j=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,z=/\bAndroid(?:.+)SD4930UR\b/i,F=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,W=/Windows Phone/i,V=/\bWindows(?:.+)ARM\b/i,H=/BlackBerry/i,G=/BB10/i,U=/Opera Mini/i,Q=/\b(CriOS|Chrome)(?:.+)Mobile/i,J=/Mobile(?:.+)Firefox\b/i;function K(t,e){return t.test(e)}function Z(t){var e=t||("undefined"!=typeof navigator?navigator.userAgent:""),i=(e||"").split("[FBAN");if(void 0!==i[1]){var n=i;e=Object(r.a)(n,1)[0]}if(void 0!==(i=e.split("Twitter"))[1]){var o=i;e=Object(r.a)(o,1)[0]}var a={apple:{phone:K(B,e)&&!K(W,e),ipod:K(D,e),tablet:!K(B,e)&&K(L,e)&&!K(W,e),device:(K(B,e)||K(D,e)||K(L,e))&&!K(W,e)},amazon:{phone:K(z,e),tablet:!K(z,e)&&K(F,e),device:K(z,e)||K(F,e)},android:{phone:!K(W,e)&&K(z,e)||!K(W,e)&&K(j,e),tablet:!K(W,e)&&!K(z,e)&&!K(j,e)&&(K(F,e)||K(P,e)),device:!K(W,e)&&(K(z,e)||K(F,e)||K(j,e)||K(P,e))||K(/\bokhttp\b/i,e)},windows:{phone:K(W,e),tablet:K(V,e),device:K(W,e)||K(V,e)},other:{blackberry:K(H,e),blackberry10:K(G,e),opera:K(U,e),firefox:K(J,e),chrome:K(Q,e),device:K(H,e)||K(G,e)||K(U,e)||K(J,e)||K(Q,e)},any:null,phone:null,tablet:null};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}var Y=Object(a.a)(Object(a.a)({},Z()),{},{isMobile:Z});function q(){}function X(t,e,i){var n=e||"";return t.key||"".concat(n,"item_").concat(i)}function _(t){return"".concat(t,"-menu-")}function $(t,e){var i=-1;s.Children.forEach(t,(function(t){i+=1,t&&t.type&&t.type.isMenuItemGroup?s.Children.forEach(t.props.children,(function(t){e(t,i+=1)})):e(t,i)}))}var tt=["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"],et=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t&&"function"==typeof t.getBoundingClientRect&&t.getBoundingClientRect().width;if(i){if(e){var n=getComputedStyle(t),r=n.marginLeft,o=n.marginRight;i+=+r.replace("px","")+ +o.replace("px","")}i=+i.toFixed(6)}return i||0},it=function(t,e,i){t&&"object"===Object(R.a)(t.style)&&(t.style[e]=i)},nt=i("bdgK"),rt=i("i8i4"),ot=i.n(rt),at=i("wgJM"),st=i("l4aY"),lt=i("m+aA"),ct=i("c+Xe"),ut=i("zT1h"),ht=i("QC+M");function pt(t,e,i){return i?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}var dt=i("MNnm");function ft(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit".concat(t)]="webkit".concat(e),i["Moz".concat(t)]="moz".concat(e),i["ms".concat(t)]="MS".concat(e),i["O".concat(t)]="o".concat(e.toLowerCase()),i}var mt,gt,vt,yt=(mt=Object(dt.a)(),gt="undefined"!=typeof window?window:{},vt={animationend:ft("Animation","AnimationEnd"),transitionend:ft("Transition","TransitionEnd")},mt&&("AnimationEvent"in gt||delete vt.animationend.animation,"TransitionEvent"in gt||delete vt.transitionend.transition),vt),bt={};if(Object(dt.a)()){var Ct=document.createElement("div");bt=Ct.style}var xt={};function kt(t){if(xt[t])return xt[t];var e=yt[t];if(e)for(var i=Object.keys(e),n=i.length,r=0;r<n;r+=1){var o=i[r];if(Object.prototype.hasOwnProperty.call(e,o)&&o in bt)return xt[t]=e[o],xt[t]}return""}var wt=kt("animationend"),St=kt("transitionend"),At=!(!wt||!St),Et=wt||"animationend",Ot=St||"transitionend";function Mt(t,e){return t?"object"===Object(R.a)(t)?t[e.replace(/-\w/g,(function(t){return t[1].toUpperCase()}))]:"".concat(t,"-").concat(e):null}function It(t){var e=Object(s.useRef)(!1),i=Object(s.useState)(t),n=Object(r.a)(i,2),o=n[0],a=n[1];return Object(s.useEffect)((function(){return function(){e.current=!0}}),[]),[o,function(t){e.current||a(t)}]}var Tt=Object(dt.a)()?s.useLayoutEffect:s.useEffect,Nt=["prepare","start","active","end"];function Rt(t){return"active"===t||"end"===t}var Bt=function(t,e){var i=s.useState("none"),n=Object(r.a)(i,2),o=n[0],a=n[1],l=function(){var t=s.useRef(null);function e(){at.a.cancel(t.current)}return s.useEffect((function(){return function(){e()}}),[]),[function i(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;e();var o=Object(at.a)((function(){r<=1?n({isCanceled:function(){return o!==t.current}}):i(n,r-1)}));t.current=o},e]}(),c=Object(r.a)(l,2),u=c[0],h=c[1];return Tt((function(){if("none"!==o&&"end"!==o){var t=Nt.indexOf(o),i=Nt[t+1],n=e(o);!1===n?a(i):u((function(t){function e(){t.isCanceled()||a(i)}!0===n?e():Promise.resolve(n).then(e)}))}}),[t,o]),s.useEffect((function(){return function(){h()}}),[]),[function(){a("prepare")},o]};function Dt(t,e,i,o){var l=o.motionEnter,c=void 0===l||l,u=o.motionAppear,h=void 0===u||u,p=o.motionLeave,d=void 0===p||p,f=o.motionDeadline,m=o.motionLeaveImmediately,g=o.onAppearPrepare,v=o.onEnterPrepare,y=o.onLeavePrepare,b=o.onAppearStart,C=o.onEnterStart,x=o.onLeaveStart,k=o.onAppearActive,w=o.onEnterActive,S=o.onLeaveActive,A=o.onAppearEnd,E=o.onEnterEnd,O=o.onLeaveEnd,M=o.onVisibleChanged,I=It(),T=Object(r.a)(I,2),N=T[0],R=T[1],B=It("none"),D=Object(r.a)(B,2),L=D[0],j=D[1],P=It(null),z=Object(r.a)(P,2),F=z[0],W=z[1],V=Object(s.useRef)(!1),H=Object(s.useRef)(null),G=Object(s.useRef)(!1),U=Object(s.useRef)(null);function Q(){return i()||U.current}var J=Object(s.useRef)(!1);function K(t){var e,i=Q();t&&!t.deadline&&t.target!==i||("appear"===L&&J.current?e=null==A?void 0:A(i,t):"enter"===L&&J.current?e=null==E?void 0:E(i,t):"leave"===L&&J.current&&(e=null==O?void 0:O(i,t)),!1===e||G.current||(j("none"),W(null)))}var Z=function(t){var e=Object(s.useRef)(),i=Object(s.useRef)(t);i.current=t;var n=s.useCallback((function(t){i.current(t)}),[]);function r(t){t&&(t.removeEventListener(Ot,n),t.removeEventListener(Et,n))}return s.useEffect((function(){return function(){r(e.current)}}),[]),[function(t){e.current&&e.current!==t&&r(e.current),t&&t!==e.current&&(t.addEventListener(Ot,n),t.addEventListener(Et,n),e.current=t)},r]}(K),Y=Object(r.a)(Z,1)[0],q=s.useMemo((function(){var t,e,i;switch(L){case"appear":return t={},Object(n.a)(t,"prepare",g),Object(n.a)(t,"start",b),Object(n.a)(t,"active",k),t;case"enter":return e={},Object(n.a)(e,"prepare",v),Object(n.a)(e,"start",C),Object(n.a)(e,"active",w),e;case"leave":return i={},Object(n.a)(i,"prepare",y),Object(n.a)(i,"start",x),Object(n.a)(i,"active",S),i;default:return{}}}),[L]),X=Bt(L,(function(t){if("prepare"===t){var e=q.prepare;return!!e&&e(Q())}var i;tt in q&&W((null===(i=q[tt])||void 0===i?void 0:i.call(q,Q(),null))||null);return"active"===tt&&(Y(Q()),f>0&&(clearTimeout(H.current),H.current=setTimeout((function(){K({deadline:!0})}),f))),!0})),_=Object(r.a)(X,2),$=_[0],tt=_[1],et=Rt(tt);J.current=et,Tt((function(){R(e);var i,n=V.current;(V.current=!0,t)&&(!n&&e&&h&&(i="appear"),n&&e&&c&&(i="enter"),(n&&!e&&d||!n&&m&&!e&&d)&&(i="leave"),i&&(j(i),$()))}),[e]),Object(s.useEffect)((function(){("appear"===L&&!h||"enter"===L&&!c||"leave"===L&&!d)&&j("none")}),[h,c,d]),Object(s.useEffect)((function(){return function(){clearTimeout(H.current),G.current=!0}}),[]),Object(s.useEffect)((function(){void 0!==N&&"none"===L&&(null==M||M(N))}),[N,L]);var it=F;return q.prepare&&"start"===tt&&(it=Object(a.a)({transition:"none"},it)),[L,tt,it,null!=N?N:e]}var Lt=function(t){Object(A.a)(i,t);var e=Object(E.a)(i);function i(){return Object(k.a)(this,i),e.apply(this,arguments)}return Object(w.a)(i,[{key:"render",value:function(){return this.props.children}}]),i}(s.Component);var jt=function(t){var e=t;function i(t){return!(!t.motionName||!e)}"object"===Object(R.a)(t)&&(e=t.transitionSupport);var o=s.forwardRef((function(t,e){var o=t.visible,l=void 0===o||o,u=t.removeOnLeave,h=void 0===u||u,p=t.forceRender,d=t.children,f=t.motionName,m=t.leavedClassName,g=t.eventProps,v=i(t),y=Object(s.useRef)(),b=Object(s.useRef)();var C=Dt(v,l,(function(){try{return Object(lt.a)(y.current||b.current)}catch(t){return null}}),t),x=Object(r.a)(C,4),k=x[0],w=x[1],S=x[2],A=x[3],E=s.useRef(A);A&&(E.current=!0);var O=Object(s.useRef)(e);O.current=e;var M,I=s.useCallback((function(t){y.current=t,Object(ct.b)(O.current,t)}),[]),T=Object(a.a)(Object(a.a)({},g),{},{visible:l});if(d)if("none"!==k&&i(t)){var N,R;"prepare"===w?R="prepare":Rt(w)?R="active":"start"===w&&(R="start"),M=d(Object(a.a)(Object(a.a)({},T),{},{className:c()(Mt(f,k),(N={},Object(n.a)(N,Mt(f,"".concat(k,"-").concat(R)),R),Object(n.a)(N,f,"string"==typeof f),N)),style:S}),I)}else M=A?d(Object(a.a)({},T),I):!h&&E.current?d(Object(a.a)(Object(a.a)({},T),{},{className:m}),I):p?d(Object(a.a)(Object(a.a)({},T),{},{style:{display:"none"}}),I):null;else M=null;return s.createElement(Lt,{ref:b},M)}));return o.displayName="CSSMotion",o}(At);function Pt(t){var e;return e=t&&"object"===Object(R.a)(t)&&"key"in t?t:{key:t},Object(a.a)(Object(a.a)({},e),{},{key:String(e.key)})}function zt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map(Pt)}function Ft(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=[],n=0,r=e.length,o=zt(t),s=zt(e);o.forEach((function(t){for(var e=!1,o=n;o<r;o+=1){var l=s[o];if(l.key===t.key){n<o&&(i=i.concat(s.slice(n,o).map((function(t){return Object(a.a)(Object(a.a)({},t),{},{status:"add"})}))),n=o),i.push(Object(a.a)(Object(a.a)({},l),{},{status:"keep"})),n+=1,e=!0;break}}e||i.push(Object(a.a)(Object(a.a)({},t),{},{status:"remove"}))})),n<r&&(i=i.concat(s.slice(n).map((function(t){return Object(a.a)(Object(a.a)({},t),{},{status:"add"})}))));var l={};i.forEach((function(t){var e=t.key;l[e]=(l[e]||0)+1}));var c=Object.keys(l).filter((function(t){return l[t]>1}));return c.forEach((function(t){(i=i.filter((function(e){var i=e.key,n=e.status;return i!==t||"remove"!==n}))).forEach((function(e){e.key===t&&(e.status="keep")}))})),i}var Wt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt,i=function(t){Object(A.a)(n,t);var i=Object(E.a)(n);function n(){var t;return Object(k.a)(this,n),(t=i.apply(this,arguments)).state={keyEntities:[]},t.removeKey=function(e){t.setState((function(t){return{keyEntities:t.keyEntities.map((function(t){return t.key!==e?t:Object(a.a)(Object(a.a)({},t),{},{status:"removed"})}))}}))},t}return Object(w.a)(n,[{key:"render",value:function(){var t=this,i=this.state.keyEntities,n=this.props,r=n.component,a=n.children,l=n.onVisibleChanged,c=Object(o.a)(n,["component","children","onVisibleChanged"]),u=r||s.Fragment,h={};return Wt.forEach((function(t){h[t]=c[t],delete c[t]})),delete c.keys,s.createElement(u,c,i.map((function(i){var n=i.status,r=Object(o.a)(i,["status"]),c="add"===n||"keep"===n;return s.createElement(e,Object(x.a)({},h,{key:r.key,visible:c,eventProps:r,onVisibleChanged:function(e){null==l||l(e,{key:r.key}),e||t.removeKey(r.key)}}),a)})))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var i=t.keys,n=e.keyEntities,r=zt(i);return{keyEntities:Ft(n,r).filter((function(t){var e=n.find((function(e){var i=e.key;return t.key===i}));return!e||"removed"!==e.status||"remove"!==t.status}))}}}]),n}(s.Component);i.defaultProps={component:"div"}}(At);var Vt=jt;function Ht(t){var e=t.prefixCls,i=t.motion,n=t.animation,r=t.transitionName;return i||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Gt(t){var e=t.prefixCls,i=t.visible,n=t.zIndex,r=t.mask,o=t.maskMotion,l=t.maskAnimation,u=t.maskTransitionName;if(!r)return null;var h={};return(o||u||l)&&(h=Object(a.a)({motionAppear:!0},Ht({motion:o,prefixCls:e,transitionName:u,animation:l}))),s.createElement(Vt,Object(x.a)({},h,{visible:i,removeOnLeave:!0}),(function(t){var i=t.className;return s.createElement("div",{style:{zIndex:n},className:c()("".concat(e,"-mask"),i)})}))}var Ut=i("9mu1"),Qt=i("o0o1"),Jt=i.n(Qt),Kt=i("HaE+"),Zt=["measure","align",null,"motion"],Yt=s.forwardRef((function(t,e){var i=t.visible,n=t.prefixCls,o=t.className,l=t.style,u=t.children,h=t.zIndex,p=t.stretch,d=t.destroyPopupOnHide,f=t.forceRender,m=t.align,g=t.point,v=t.getRootDomNode,y=t.getClassNameFromAlign,b=t.onAlign,C=t.onMouseEnter,k=t.onMouseLeave,w=t.onMouseDown,S=t.onTouchStart,A=Object(s.useRef)(),E=Object(s.useRef)(),O=Object(s.useState)(),M=Object(r.a)(O,2),I=M[0],T=M[1],N=function(t){var e=s.useState({width:0,height:0}),i=Object(r.a)(e,2),n=i[0],o=i[1];return[s.useMemo((function(){var e={};if(t){var i=n.width,r=n.height;-1!==t.indexOf("height")&&r?e.height=r:-1!==t.indexOf("minHeight")&&r&&(e.minHeight=r),-1!==t.indexOf("width")&&i?e.width=i:-1!==t.indexOf("minWidth")&&i&&(e.minWidth=i)}return e}),[t,n]),function(t){o({width:t.offsetWidth,height:t.offsetHeight})}]}(p),R=Object(r.a)(N,2),B=R[0],D=R[1];var L=function(t,e){var i=Object(s.useState)(null),n=Object(r.a)(i,2),o=n[0],a=n[1],l=Object(s.useRef)(),c=Object(s.useRef)(!1);function u(t){c.current||a(t)}function h(){at.a.cancel(l.current)}return Object(s.useEffect)((function(){u("measure")}),[t]),Object(s.useEffect)((function(){switch(o){case"measure":e()}o&&(l.current=Object(at.a)(Object(Kt.a)(Jt.a.mark((function t(){var e,i;return Jt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Zt.indexOf(o),(i=Zt[e+1])&&-1!==e&&u(i);case 3:case"end":return t.stop()}}),t)})))))}),[o]),Object(s.useEffect)((function(){return function(){c.current=!0,h()}}),[]),[o,function(t){h(),l.current=Object(at.a)((function(){u((function(t){switch(o){case"align":return"motion";case"motion":return"stable"}return t})),null==t||t()}))}]}(i,(function(){p&&D(v())})),j=Object(r.a)(L,2),P=j[0],z=j[1],F=Object(s.useRef)();function W(){var t;null===(t=A.current)||void 0===t||t.forceAlign()}function V(t,e){var i=y(e);I!==i&&T(i),"align"===P&&(I!==i?Promise.resolve().then((function(){W()})):z((function(){var t;null===(t=F.current)||void 0===t||t.call(F)})),null==b||b(t,e))}var H=Object(a.a)({},Ht(t));function G(){return new Promise((function(t){F.current=t}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(t){var e=H[t];H[t]=function(t,i){return z(),null==e?void 0:e(t,i)}})),s.useEffect((function(){H.motionName||"motion"!==P||z()}),[H.motionName,P]),s.useImperativeHandle(e,(function(){return{forceAlign:W,getElement:function(){return E.current}}}));var U=Object(a.a)(Object(a.a)({},B),{},{zIndex:h,opacity:"motion"!==P&&"stable"!==P&&i?0:void 0,pointerEvents:"stable"===P?void 0:"none"},l),Q=!0;!(null==m?void 0:m.points)||"align"!==P&&"stable"!==P||(Q=!1);var J=u;return s.Children.count(u)>1&&(J=s.createElement("div",{className:"".concat(n,"-content")},u)),s.createElement(Vt,Object(x.a)({visible:i,ref:E,leavedClassName:"".concat(n,"-hidden")},H,{onAppearPrepare:G,onEnterPrepare:G,removeOnLeave:d,forceRender:f}),(function(t,e){var i=t.className,r=t.style,l=c()(n,o,I,i);return s.createElement(Ut.a,{target:g||v,key:"popup",ref:A,monitorWindowResize:!0,disabled:Q,align:m,onAlign:V},s.createElement("div",{ref:e,className:l,onMouseEnter:C,onMouseLeave:k,onMouseDownCapture:w,onTouchStartCapture:S,style:Object(a.a)(Object(a.a)({},r),U)},J))}))}));Yt.displayName="PopupInner";var qt=Yt,Xt=s.forwardRef((function(t,e){var i=t.prefixCls,n=t.visible,r=t.zIndex,o=t.children,l=t.mobile,u=(l=void 0===l?{}:l).popupClassName,h=l.popupStyle,p=l.popupMotion,d=void 0===p?{}:p,f=l.popupRender,m=s.useRef();s.useImperativeHandle(e,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var g=Object(a.a)({zIndex:r},h),v=o;return s.Children.count(o)>1&&(v=s.createElement("div",{className:"".concat(i,"-content")},o)),f&&(v=f(v)),s.createElement(Vt,Object(x.a)({visible:n,ref:m,removeOnLeave:!0},d),(function(t,e){var n=t.className,r=t.style,o=c()(i,u,n);return s.createElement("div",{ref:e,className:o,style:Object(a.a)(Object(a.a)({},r),g)},v)}))}));Xt.displayName="MobilePopupInner";var _t=Xt,$t=["visible","mobile"],te=s.forwardRef((function(t,e){var i=t.visible,n=t.mobile,l=Object(o.a)(t,$t),c=Object(s.useState)(i),u=Object(r.a)(c,2),h=u[0],p=u[1],d=Object(s.useState)(!1),f=Object(r.a)(d,2),m=f[0],g=f[1],v=Object(a.a)(Object(a.a)({},l),{},{visible:h});Object(s.useEffect)((function(){p(i),i&&n&&g(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)&&!/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(null==t?void 0:t.substr(0,4)))}())}),[i,n]);var y=m?s.createElement(_t,Object(x.a)({},v,{mobile:n,ref:e})):s.createElement(qt,Object(x.a)({},v,{ref:e}));return s.createElement("div",null,s.createElement(Gt,v),y)}));te.displayName="Popup";var ee=te,ie=s.createContext(null);function ne(){}function re(){return""}function oe(t){return t?t.ownerDocument:window.document}var ae=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var se,le,ce=(se=ht.a,(le=function(t){Object(A.a)(i,t);var e=Object(E.a)(i);function i(t){var n,r;return Object(k.a)(this,i),(n=e.call(this,t)).popupRef=s.createRef(),n.triggerRef=s.createRef(),n.attachId=void 0,n.clickOutsideHandler=void 0,n.touchOutsideHandler=void 0,n.contextMenuOutsideHandler1=void 0,n.contextMenuOutsideHandler2=void 0,n.mouseDownTimeout=void 0,n.focusTime=void 0,n.preClickTime=void 0,n.preTouchTime=void 0,n.delayTimer=void 0,n.hasPopupMouseDown=void 0,n.onMouseEnter=function(t){var e=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",t),n.delaySetPopupVisible(!0,e,e?null:t)},n.onMouseMove=function(t){n.fireEvents("onMouseMove",t),n.setPoint(t)},n.onMouseLeave=function(t){n.fireEvents("onMouseLeave",t),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(t){var e;t.relatedTarget&&!t.relatedTarget.setTimeout&&Object(st.a)(null===(e=n.popupRef.current)||void 0===e?void 0:e.getElement(),t.relatedTarget)||n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(t){n.fireEvents("onFocus",t),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(t){n.fireEvents("onMouseDown",t),n.preClickTime=Date.now()},n.onTouchStart=function(t){n.fireEvents("onTouchStart",t),n.preTouchTime=Date.now()},n.onBlur=function(t){n.fireEvents("onBlur",t),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(t){t.preventDefault(),n.fireEvents("onContextMenu",t),n.setPopupVisible(!0,t)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(t){if(n.fireEvents("onClick",t),n.focusTime){var e;if(n.preClickTime&&n.preTouchTime?e=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?e=n.preClickTime:n.preTouchTime&&(e=n.preTouchTime),Math.abs(e-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var i=!n.state.popupVisible;(n.isClickToHide()&&!i||i&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,t)},n.onPopupMouseDown=function(){var t;n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout((function(){n.hasPopupMouseDown=!1}),0),n.context&&(t=n.context).onPopupMouseDown.apply(t,arguments)},n.onDocumentClick=function(t){if(!n.props.mask||n.props.maskClosable){var e=t.target,i=n.getRootDomNode(),r=n.getPopupDomNode();Object(st.a)(i,e)&&!n.isContextMenuOnly()||Object(st.a)(r,e)||n.hasPopupMouseDown||n.close()}},n.getRootDomNode=function(){var t=n.props.getTriggerDOMNode;if(t)return t(n.triggerRef.current);try{var e=Object(lt.a)(n.triggerRef.current);if(e)return e}catch(t){}return ot.a.findDOMNode(Object(S.a)(n))},n.getPopupClassNameFromAlign=function(t){var e=[],i=n.props,r=i.popupPlacement,o=i.builtinPlacements,a=i.prefixCls,s=i.alignPoint,l=i.getPopupClassNameFromAlign;return r&&o&&e.push(function(t,e,i,n){for(var r=i.points,o=Object.keys(t),a=0;a<o.length;a+=1){var s=o[a];if(pt(t[s].points,r,n))return"".concat(e,"-placement-").concat(s)}return""}(o,a,t,s)),l&&e.push(l(t)),e.join(" ")},n.getComponent=function(){var t=n.props,e=t.prefixCls,i=t.destroyPopupOnHide,r=t.popupClassName,o=t.onPopupAlign,a=t.popupMotion,l=t.popupAnimation,c=t.popupTransitionName,u=t.popupStyle,h=t.mask,p=t.maskAnimation,d=t.maskTransitionName,f=t.maskMotion,m=t.zIndex,g=t.popup,v=t.stretch,y=t.alignPoint,b=t.mobile,C=t.forceRender,k=n.state,w=k.popupVisible,S=k.point,A=n.getPopupAlign(),E={};return n.isMouseEnterToShow()&&(E.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(E.onMouseLeave=n.onPopupMouseLeave),E.onMouseDown=n.onPopupMouseDown,E.onTouchStart=n.onPopupMouseDown,s.createElement(ee,Object(x.a)({prefixCls:e,destroyPopupOnHide:i,visible:w,point:y&&S,className:r,align:A,onAlign:o,animation:l,getClassNameFromAlign:n.getPopupClassNameFromAlign},E,{stretch:v,getRootDomNode:n.getRootDomNode,style:u,mask:h,zIndex:m,transitionName:c,maskAnimation:p,maskTransitionName:d,maskMotion:f,ref:n.popupRef,motion:a,mobile:b,forceRender:C}),"function"==typeof g?g():g)},n.attachParent=function(t){at.a.cancel(n.attachId);var e,i=n.props,r=i.getPopupContainer,o=i.getDocument,a=n.getRootDomNode();r?(a||0===r.length)&&(e=r(a)):e=o(n.getRootDomNode()).body,e?e.appendChild(t):n.attachId=Object(at.a)((function(){n.attachParent(t)}))},n.getContainer=function(){var t=(0,n.props.getDocument)(n.getRootDomNode()).createElement("div");return t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",n.attachParent(t),t},n.setPoint=function(t){n.props.alignPoint&&t&&n.setState({point:{pageX:t.pageX,pageY:t.pageY}})},n.handlePortalUpdate=function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)},n.triggerContextValue={onPopupMouseDown:n.onPopupMouseDown},r="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,n.state={prevPopupVisible:r,popupVisible:r},ae.forEach((function(t){n["fire".concat(t)]=function(e){n.fireEvents(t,e)}})),n}return Object(w.a)(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t,e=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ut.a)(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ut.a)(t,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ut.a)(t,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ut.a)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),at.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return(null===(t=this.popupRef.current)||void 0===t?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,e=t.popupPlacement,i=t.popupAlign,n=t.builtinPlacements;return e&&n?function(t,e,i){var n=t[e]||{};return Object(a.a)(Object(a.a)({},n),i)}(n,e,i):i}},{key:"setPopupVisible",value:function(t,e){var i=this.props.alignPoint,n=this.state.popupVisible;this.clearDelayTimer(),n!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:n}),this.props.onPopupVisibleChange(t)),i&&e&&t&&this.setPoint(e)}},{key:"delaySetPopupVisible",value:function(t,e,i){var n=this,r=1e3*e;if(this.clearDelayTimer(),r){var o=i?{pageX:i.pageX,pageY:i.pageY}:null;this.delayTimer=window.setTimeout((function(){n.setPopupVisible(t,o),n.clearDelayTimer()}),r)}else this.setPopupVisible(t,i)}},{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(t){var e=this.props.children.props,i=this.props;return e[t]&&i[t]?this["fire".concat(t)]:e[t]||i[t]}},{key:"isClickToShow",value:function(){var t=this.props,e=t.action,i=t.showAction;return-1!==e.indexOf("click")||-1!==i.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return"contextMenu"===t||1===t.length&&"contextMenu"===t[0]}},{key:"isContextMenuToShow",value:function(){var t=this.props,e=t.action,i=t.showAction;return-1!==e.indexOf("contextMenu")||-1!==i.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var t=this.props,e=t.action,i=t.hideAction;return-1!==e.indexOf("click")||-1!==i.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var t=this.props,e=t.action,i=t.showAction;return-1!==e.indexOf("hover")||-1!==i.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,e=t.action,i=t.hideAction;return-1!==e.indexOf("hover")||-1!==i.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var t=this.props,e=t.action,i=t.showAction;return-1!==e.indexOf("focus")||-1!==i.indexOf("focus")}},{key:"isBlurToHide",value:function(){var t=this.props,e=t.action,i=t.hideAction;return-1!==e.indexOf("focus")||-1!==i.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var t;this.state.popupVisible&&(null===(t=this.popupRef.current)||void 0===t||t.forceAlign())}},{key:"fireEvents",value:function(t,e){var i=this.props.children.props[t];i&&i(e);var n=this.props[t];n&&n(e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,e=this.props,i=e.children,n=e.forceRender,r=e.alignPoint,o=e.className,l=e.autoDestroy,u=s.Children.only(i),h={key:"trigger"};this.isContextMenuToShow()?h.onContextMenu=this.onContextMenu:h.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(h.onClick=this.onClick,h.onMouseDown=this.onMouseDown,h.onTouchStart=this.onTouchStart):(h.onClick=this.createTwoChains("onClick"),h.onMouseDown=this.createTwoChains("onMouseDown"),h.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(h.onMouseEnter=this.onMouseEnter,r&&(h.onMouseMove=this.onMouseMove)):h.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?h.onMouseLeave=this.onMouseLeave:h.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(h.onFocus=this.onFocus,h.onBlur=this.onBlur):(h.onFocus=this.createTwoChains("onFocus"),h.onBlur=this.createTwoChains("onBlur"));var p=c()(u&&u.props&&u.props.className,o);p&&(h.className=p);var d=Object(a.a)({},h);Object(ct.c)(u)&&(d.ref=Object(ct.a)(this.triggerRef,u.ref));var f,m=s.cloneElement(u,d);return(t||this.popupRef.current||n)&&(f=s.createElement(se,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&l&&(f=null),s.createElement(ie.Provider,{value:this.triggerContextValue},m,f)}}],[{key:"getDerivedStateFromProps",value:function(t,e){var i=t.popupVisible,n={};return void 0!==i&&e.popupVisible!==i&&(n.popupVisible=i,n.prevPopupVisible=e.popupVisible),n}}]),i}(s.Component)).contextType=ie,le.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:re,getDocument:oe,onPopupVisibleChange:ne,afterPopupVisibleChange:ne,onPopupAlign:ne,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},le),ue={adjustX:1,adjustY:1},he={topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ue,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ue,offset:[4,0]}},pe={topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ue,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ue,offset:[4,0]}},de=0,fe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},me=function(t,e,i){var r=_(e),o=t.getState();t.setState({defaultActiveFirst:Object(a.a)(Object(a.a)({},o.defaultActiveFirst),{},Object(n.a)({},r,i))})},ge=function(t){Object(A.a)(i,t);var e=Object(E.a)(i);function i(t){var n;Object(k.a)(this,i),(n=e.call(this,t)).onDestroy=function(t){n.props.onDestroy(t)},n.onKeyDown=function(t){var e=t.keyCode,i=n.menuInstance,r=n.props.store,o=n.getVisible();if(e===v.a.ENTER)return n.onTitleClick(t),me(r,n.props.eventKey,!0),!0;if(e===v.a.RIGHT)return o?i.onKeyDown(t):(n.triggerOpenChange(!0),me(r,n.props.eventKey,!0)),!0;if(e===v.a.LEFT){var a;if(!o)return;return(a=i.onKeyDown(t))||(n.triggerOpenChange(!1),a=!0),a}return!o||e!==v.a.UP&&e!==v.a.DOWN?void 0:i.onKeyDown(t)},n.onOpenChange=function(t){n.props.onOpenChange(t)},n.onPopupVisibleChange=function(t){n.triggerOpenChange(t,t?"mouseenter":"mouseleave")},n.onMouseEnter=function(t){var e=n.props,i=e.eventKey,r=e.onMouseEnter,o=e.store;me(o,n.props.eventKey,!1),r({key:i,domEvent:t})},n.onMouseLeave=function(t){var e=n.props,i=e.parentMenu,r=e.eventKey,o=e.onMouseLeave;i.subMenuInstance=Object(S.a)(n),o({key:r,domEvent:t})},n.onTitleMouseEnter=function(t){var e=n.props,i=e.eventKey,r=e.onItemHover,o=e.onTitleMouseEnter;r({key:i,hover:!0}),o({key:i,domEvent:t})},n.onTitleMouseLeave=function(t){var e=n.props,i=e.parentMenu,r=e.eventKey,o=e.onItemHover,a=e.onTitleMouseLeave;i.subMenuInstance=Object(S.a)(n),o({key:r,hover:!1}),a({key:r,domEvent:t})},n.onTitleClick=function(t){var e=Object(S.a)(n).props;e.onTitleClick({key:e.eventKey,domEvent:t}),"hover"!==e.triggerSubMenuAction&&(n.triggerOpenChange(!n.getVisible(),"click"),me(e.store,n.props.eventKey,!1))},n.onSubMenuClick=function(t){"function"==typeof n.props.onClick&&n.props.onClick(n.addKeyPath(t))},n.onSelect=function(t){n.props.onSelect(t)},n.onDeselect=function(t){n.props.onDeselect(t)},n.getPrefixCls=function(){return"".concat(n.props.rootPrefixCls,"-submenu")},n.getActiveClassName=function(){return"".concat(n.getPrefixCls(),"-active")},n.getDisabledClassName=function(){return"".concat(n.getPrefixCls(),"-disabled")},n.getSelectedClassName=function(){return"".concat(n.getPrefixCls(),"-selected")},n.getOpenClassName=function(){return"".concat(n.props.rootPrefixCls,"-submenu-open")},n.getVisible=function(){return n.state.isOpen},n.getMode=function(){return n.state.mode},n.saveMenuInstance=function(t){n.menuInstance=t},n.addKeyPath=function(t){return Object(a.a)(Object(a.a)({},t),{},{keyPath:(t.keyPath||[]).concat(n.props.eventKey)})},n.triggerOpenChange=function(t,e){var i=n.props.eventKey,r=function(){n.onOpenChange({key:i,item:Object(S.a)(n),trigger:e,open:t})};"mouseenter"===e?n.mouseenterTimeout=setTimeout((function(){r()}),0):r()},n.isChildrenSelected=function(){var t={find:!1};return function t(e,i,n){e&&!n.find&&s.Children.forEach(e,(function(e){if(e){var r=e.type;if(!r||!(r.isSubMenu||r.isMenuItem||r.isMenuItemGroup))return;-1!==i.indexOf(e.key)?n.find=!0:e.props.children&&t(e.props.children,i,n)}}))}(n.props.children,n.props.selectedKeys,t),t.find},n.isInlineMode=function(){return"inline"===n.getMode()},n.adjustWidth=function(){if(n.subMenuTitle&&n.menuInstance){var t=rt.findDOMNode(n.menuInstance);t.offsetWidth>=n.subMenuTitle.offsetWidth||(t.style.minWidth="".concat(n.subMenuTitle.offsetWidth,"px"))}},n.saveSubMenuTitle=function(t){n.subMenuTitle=t},n.getBaseProps=function(){var t=Object(S.a)(n).props,e=n.getMode();return{mode:"horizontal"===e?"vertical":e,visible:n.getVisible(),level:t.level+1,inlineIndent:t.inlineIndent,focusable:!1,onClick:n.onSubMenuClick,onSelect:n.onSelect,onDeselect:n.onDeselect,onDestroy:n.onDestroy,selectedKeys:t.selectedKeys,eventKey:"".concat(t.eventKey,"-menu-"),openKeys:t.openKeys,motion:t.motion,onOpenChange:n.onOpenChange,subMenuOpenDelay:t.subMenuOpenDelay,parentMenu:Object(S.a)(n),subMenuCloseDelay:t.subMenuCloseDelay,forceSubMenuRender:t.forceSubMenuRender,triggerSubMenuAction:t.triggerSubMenuAction,builtinPlacements:t.builtinPlacements,defaultActiveFirst:t.store.getState().defaultActiveFirst[_(t.eventKey)],multiple:t.multiple,prefixCls:t.rootPrefixCls,id:n.internalMenuId,manualRef:n.saveMenuInstance,itemIcon:t.itemIcon,expandIcon:t.expandIcon,direction:t.direction}},n.getMotion=function(t,e){var i=Object(S.a)(n).haveRendered,r=n.props,o=r.motion,s=r.rootPrefixCls;return Object(a.a)(Object(a.a)({},o),{},{leavedClassName:"".concat(s,"-hidden"),removeOnLeave:!1,motionAppear:i||!e||"inline"!==t})};var r=t.store,o=t.eventKey,l=r.getState().defaultActiveFirst;n.isRootMenu=!1;var c=!1;return l&&(c=l[o]),me(r,o,c),n.state={mode:t.mode,isOpen:t.isOpen},n}return Object(w.a)(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this,e=this.props,i=e.mode,n=e.parentMenu,r=e.manualRef,o=e.isOpen,a=function(){t.setState({mode:i,isOpen:o})},s=o!==this.state.isOpen,l=i!==this.state.mode;(l||s)&&(at.a.cancel(this.updateStateRaf),l?this.updateStateRaf=Object(at.a)(a):a()),r&&r(this),"horizontal"===i&&(null==n?void 0:n.isRootMenu)&&o&&(this.minWidthTimeout=setTimeout((function(){return t.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.onDestroy,i=t.eventKey;e&&e(i),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),at.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(t,e){var i=this.getBaseProps();return s.createElement(Ee,Object(x.a)({},i,{id:this.internalMenuId,className:t,style:e}),this.props.children)}},{key:"renderChildren",value:function(){var t=this,e=this.getBaseProps(),i=e.mode,r=e.visible,o=e.forceSubMenuRender,a=e.direction,l=this.getMotion(i,r);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||r||o,!this.haveOpened)return s.createElement("div",null);var u=c()("".concat(e.prefixCls,"-sub"),Object(n.a)({},"".concat(e.prefixCls,"-rtl"),"rtl"===a));return this.isInlineMode()?s.createElement(Vt,Object(x.a)({visible:e.visible,forceRender:o},l),(function(e){var i=e.className,n=e.style,r=c()(u,i);return t.renderPopupMenu(r,n)})):this.renderPopupMenu(u)}},{key:"render",value:function(){var t,e,i,r=Object(a.a)({},this.props),o=this.getVisible(),l=this.getPrefixCls(),u=this.isInlineMode(),h=this.getMode(),p=c()(l,"".concat(l,"-").concat(h),(t={},Object(n.a)(t,r.className,!!r.className),Object(n.a)(t,this.getOpenClassName(),o),Object(n.a)(t,this.getActiveClassName(),r.active||o&&!u),Object(n.a)(t,this.getDisabledClassName(),r.disabled),Object(n.a)(t,this.getSelectedClassName(),this.isChildrenSelected()),t));this.internalMenuId||(r.eventKey?this.internalMenuId="".concat(r.eventKey,"$Menu"):(de+=1,this.internalMenuId="$__$".concat(de,"$Menu")));var d={},f={},m={};r.disabled||(d={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},f={onClick:this.onTitleClick},m={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var g={},v="rtl"===r.direction;u&&(v?g.paddingRight=r.inlineIndent*r.level:g.paddingLeft=r.inlineIndent*r.level);var y={};this.getVisible()&&(y={"aria-owns":this.internalMenuId});var b=null;"horizontal"!==h&&(b=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(b=s.createElement(this.props.expandIcon,Object(a.a)({},this.props))));var C=s.createElement("div",Object(x.a)({ref:this.saveSubMenuTitle,style:g,className:"".concat(l,"-title"),role:"button"},m,f,{"aria-expanded":o},y,{"aria-haspopup":"true",title:"string"==typeof r.title?r.title:void 0}),r.title,b||s.createElement("i",{className:"".concat(l,"-arrow")})),k=this.renderChildren(),w=(null===(e=r.parentMenu)||void 0===e?void 0:e.isRootMenu)?r.parentMenu.props.getPopupContainer:function(t){return t.parentNode},S=fe[h],A=r.popupOffset?{offset:r.popupOffset}:{},E=c()((i={},Object(n.a)(i,r.popupClassName,r.popupClassName&&!u),Object(n.a)(i,"".concat(l,"-rtl"),v),i)),O=r.disabled,M=r.triggerSubMenuAction,I=r.subMenuOpenDelay,T=r.forceSubMenuRender,N=r.subMenuCloseDelay,R=r.builtinPlacements;tt.forEach((function(t){return delete r[t]})),delete r.onClick;var B=v?Object(a.a)(Object(a.a)({},pe),R):Object(a.a)(Object(a.a)({},he),R);delete r.direction;var D=this.getBaseProps(),L=u?null:this.getMotion(D.mode,D.visible);return s.createElement("li",Object(x.a)({},r,d,{className:p,role:"menuitem"}),s.createElement(ce,{prefixCls:l,popupClassName:c()("".concat(l,"-popup"),E),getPopupContainer:w,builtinPlacements:B,popupPlacement:S,popupVisible:!u&&o,popupAlign:A,popup:u?null:k,action:O||u?[]:[M],mouseEnterDelay:I,mouseLeaveDelay:N,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:T,popupMotion:L},C),u?k:null)}}]),i}(s.Component);ge.defaultProps={onMouseEnter:q,onMouseLeave:q,onTitleMouseEnter:q,onTitleMouseLeave:q,onTitleClick:q,manualRef:q,mode:"vertical",title:""};var ve=Object(O.b)((function(t,e){var i=t.openKeys,n=t.activeKey,r=t.selectedKeys,o=e.eventKey,a=e.subMenuKey;return{isOpen:i.indexOf(o)>-1,active:n[a]===o,selectedKeys:r}}))(ge);ve.isSubMenu=!0;var ye=ve,be=function(t){Object(A.a)(i,t);var e=Object(E.a)(i);function i(){var t;return Object(k.a)(this,i),(t=e.apply(this,arguments)).resizeObserver=null,t.mutationObserver=null,t.originalTotalWidth=0,t.overflowedItems=[],t.menuItemSizes=[],t.cancelFrameId=null,t.state={lastVisibleIndex:void 0},t.childRef=s.createRef(),t.getMenuItemNodes=function(){var e=t.props.prefixCls,i=t.childRef.current;return i?[].slice.call(i.children).filter((function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0})):[]},t.getOverflowedSubMenuItem=function(e,i,n){var r=t.props,l=r.overflowedIndicator,c=r.level,u=r.mode,h=r.prefixCls,p=r.theme;if(1!==c||"horizontal"!==u)return null;var d=t.props.children[0].props,f=(d.children,d.title,d.style),m=Object(o.a)(d,["children","title","style"]),g=Object(a.a)({},f),v="".concat(e,"-overflowed-indicator"),y="".concat(e,"-overflowed-indicator");0===i.length&&!0!==n?g=Object(a.a)(Object(a.a)({},g),{},{display:"none"}):n&&(g=Object(a.a)(Object(a.a)({},g),{},{visibility:"hidden",position:"absolute"}),v="".concat(v,"-placeholder"),y="".concat(y,"-placeholder"));var b=p?"".concat(h,"-").concat(p):"",C={};return tt.forEach((function(t){void 0!==m[t]&&(C[t]=m[t])})),s.createElement(ye,Object(x.a)({title:l,className:"".concat(h,"-overflowed-submenu"),popupClassName:b},C,{key:v,eventKey:y,disabled:!1,style:g}),i)},t.setChildrenWidthAndResize=function(){if("horizontal"===t.props.mode){var e=t.childRef.current;if(e){var i=e.children;if(i&&0!==i.length){var n=e.children[i.length-1];it(n,"display","inline-block");var r=t.getMenuItemNodes(),o=r.filter((function(t){return t.className.split(" ").indexOf("menuitem-overflowed")>=0}));o.forEach((function(t){it(t,"display","inline-block")})),t.menuItemSizes=r.map((function(t){return et(t,!0)})),o.forEach((function(t){it(t,"display","none")})),t.overflowedIndicatorWidth=et(e.children[e.children.length-1],!0),t.originalTotalWidth=t.menuItemSizes.reduce((function(t,e){return t+e}),0),t.handleResize(),it(n,"display","none")}}}},t.handleResize=function(){if("horizontal"===t.props.mode){var e=t.childRef.current;if(e){var i=et(e);t.overflowedItems=[];var n,r=0;t.originalTotalWidth>i+.5&&(n=-1,t.menuItemSizes.forEach((function(e){(r+=e)+t.overflowedIndicatorWidth<=i&&(n+=1)}))),t.setState({lastVisibleIndex:n})}}},t}return Object(w.a)(i,[{key:"componentDidMount",value:function(){var t=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var e=this.childRef.current;if(!e)return;this.resizeObserver=new nt.default((function(e){e.forEach((function(){var e=t.cancelFrameId;cancelAnimationFrame(e),t.cancelFrameId=requestAnimationFrame(t.setChildrenWidthAndResize)}))})),[].slice.call(e.children).concat(e).forEach((function(e){t.resizeObserver.observe(e)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){t.resizeObserver.disconnect(),[].slice.call(e.children).concat(e).forEach((function(e){t.resizeObserver.observe(e)})),t.setChildrenWidthAndResize()})),this.mutationObserver.observe(e,{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(t){var e=this,i=this.state.lastVisibleIndex;return(t||[]).reduce((function(n,r,o){var a=r;if("horizontal"===e.props.mode){var l=e.getOverflowedSubMenuItem(r.props.eventKey,[]);void 0!==i&&-1!==e.props.className.indexOf("".concat(e.props.prefixCls,"-root"))&&(o>i&&(a=s.cloneElement(r,{style:{display:"none"},eventKey:"".concat(r.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),o===i+1&&(e.overflowedItems=t.slice(i+1).map((function(t){return s.cloneElement(t,{key:t.props.eventKey,mode:"vertical-left"})})),l=e.getOverflowedSubMenuItem(r.props.eventKey,e.overflowedItems)));var c=[].concat(Object(p.a)(n),[l,a]);return o===t.length-1&&c.push(e.getOverflowedSubMenuItem(r.props.eventKey,[],!0)),c}return[].concat(Object(p.a)(n),[a])}),[])}},{key:"render",value:function(){var t=this.props,e=(t.visible,t.prefixCls,t.overflowedIndicator,t.mode,t.level,t.tag),i=t.children,n=(t.theme,Object(o.a)(t,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),r=e;return s.createElement(r,Object(x.a)({ref:this.childRef},n),this.renderChildren(i))}}]),i}(s.Component);be.defaultProps={tag:"div",className:""};var Ce=be;function xe(t,e,i){var r=t.getState();t.setState({activeKey:Object(a.a)(Object(a.a)({},r.activeKey),{},Object(n.a)({},e,i))})}function ke(t){return t.eventKey||"0-menu-"}function we(t,e){var i,n=e,r=t.children,o=t.eventKey;if(n&&($(r,(function(t,e){t&&t.props&&!t.props.disabled&&n===X(t,o,e)&&(i=!0)})),i))return n;return n=null,t.defaultActiveFirst?($(r,(function(t,e){n||!t||t.props.disabled||(n=X(t,o,e))})),n):n}function Se(t){if(t){var e=this.instanceArray.indexOf(t);-1!==e?this.instanceArray[e]=t:this.instanceArray.push(t)}}var Ae=function(t){Object(A.a)(i,t);var e=Object(E.a)(i);function i(t){var r;return Object(k.a)(this,i),(r=e.call(this,t)).onKeyDown=function(t,e){var i,n=t.keyCode;if(r.getFlatInstanceArray().forEach((function(e){e&&e.props.active&&e.onKeyDown&&(i=e.onKeyDown(t))})),i)return 1;var o=null;return n!==v.a.UP&&n!==v.a.DOWN||(o=r.step(n===v.a.UP?-1:1)),o?(t.preventDefault(),xe(r.props.store,ke(r.props),o.props.eventKey),"function"==typeof e&&e(o),1):void 0},r.onItemHover=function(t){var e=t.key,i=t.hover;xe(r.props.store,ke(r.props),i?e:null)},r.onDeselect=function(t){r.props.onDeselect(t)},r.onSelect=function(t){r.props.onSelect(t)},r.onClick=function(t){r.props.onClick(t)},r.onOpenChange=function(t){r.props.onOpenChange(t)},r.onDestroy=function(t){r.props.onDestroy(t)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(t){var e=r.getFlatInstanceArray(),i=r.props.store.getState().activeKey[ke(r.props)],n=e.length;if(!n)return null;t<0&&(e=e.concat().reverse());var o=-1;if(e.every((function(t,e){return!t||t.props.eventKey!==i||(o=e,!1)})),r.props.defaultActiveFirst||-1===o||(a=e.slice(o,n-1)).length&&!a.every((function(t){return!!t.props.disabled}))){var a,s=(o+1)%n,l=s;do{var c=e[l];if(c&&!c.props.disabled)return c;l=(l+1)%n}while(l!==s);return null}},r.renderCommonMenuItem=function(t,e,i){var n=r.props.store.getState(),o=Object(S.a)(r).props,l=X(t,o.eventKey,e),c=t.props;if(!c||"string"==typeof t.type)return t;var u=l===n.activeKey,h=Object(a.a)(Object(a.a)({mode:c.mode||o.mode,level:o.level,inlineIndent:o.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:o.prefixCls,index:e,parentMenu:o.parentMenu,manualRef:c.disabled?void 0:Object(I.a)(t.ref,Se.bind(Object(S.a)(r))),eventKey:l,active:!c.disabled&&u,multiple:o.multiple,onClick:function(t){(c.onClick||q)(t),r.onClick(t)},onItemHover:r.onItemHover,motion:o.motion,subMenuOpenDelay:o.subMenuOpenDelay,subMenuCloseDelay:o.subMenuCloseDelay,forceSubMenuRender:o.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:o.builtinPlacements,itemIcon:c.itemIcon||r.props.itemIcon,expandIcon:c.expandIcon||r.props.expandIcon},i),{},{direction:o.direction});return("inline"===o.mode||Y.any)&&(h.triggerSubMenuAction="click"),s.cloneElement(t,Object(a.a)(Object(a.a)({},h),{},{key:l||e}))},r.renderMenuItem=function(t,e,i){if(!t)return null;var n=r.props.store.getState(),o={openKeys:n.openKeys,selectedKeys:n.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:i};return r.renderCommonMenuItem(t,e,o)},t.store.setState({activeKey:Object(a.a)(Object(a.a)({},t.store.getState().activeKey),{},Object(n.a)({},t.eventKey,we(t,t.activeKey)))}),r.instanceArray=[],r}return Object(w.a)(i,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(t){return this.props.visible||t.visible||this.props.className!==t.className||!N()(this.props.style,t.style)}},{key:"componentDidUpdate",value:function(t){var e=this.props,i="activeKey"in e?e.activeKey:e.store.getState().activeKey[ke(e)],n=we(e,i);if(n!==i)xe(e.store,ke(e),n);else if("activeKey"in t){n!==we(t,t.activeKey)&&xe(e.store,ke(e),n)}}},{key:"render",value:function(){var t=this,e=Object(x.a)({},this.props);this.instanceArray=[];var i={className:c()(e.prefixCls,e.className,"".concat(e.prefixCls,"-").concat(e.mode)),role:e.role||"menu"};e.id&&(i.id=e.id),e.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var n=e.prefixCls,r=e.eventKey,o=e.visible,a=e.level,l=e.mode,h=e.overflowedIndicator,p=e.theme;return tt.forEach((function(t){return delete e[t]})),delete e.onClick,s.createElement(Ce,Object(x.a)({},e,{prefixCls:n,mode:l,tag:"ul",level:a,theme:p,visible:o,overflowedIndicator:h},i),Object(u.a)(e.children).map((function(e,i){return t.renderMenuItem(e,i,r||"0-menu-")})))}}]),i}(s.Component);Ae.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:q};var Ee=Object(O.b)()(Ae),Oe=i("Kwbf");function Me(t,e,i){var n=t.prefixCls,r=t.motion,o=t.defaultMotions,a=void 0===o?{}:o,s=t.openAnimation,l=t.openTransitionName,c=e.switchingModeFromInline;if(r)return r;if("object"===Object(R.a)(s)&&s)Object(Oe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof s)return{motionName:"".concat(n,"-open-").concat(s)};if(l)return{motionName:l};var u=a[i];return u||(c?null:a.other)}var Ie=function(t){Object(A.a)(i,t);var e=Object(E.a)(i);function i(t){var n;Object(k.a)(this,i),(n=e.call(this,t)).onSelect=function(t){var e=Object(S.a)(n).props;if(e.selectable){var i=n.store.getState().selectedKeys,r=t.key;i=e.multiple?i.concat([r]):[r],"selectedKeys"in e||n.store.setState({selectedKeys:i}),e.onSelect(Object(a.a)(Object(a.a)({},t),{},{selectedKeys:i}))}},n.onClick=function(t){var e=n.getRealMenuMode(),i=Object(S.a)(n),r=i.store,o=i.props.onOpenChange;"inline"===e||"openKeys"in n.props||(r.setState({openKeys:[]}),o([])),n.props.onClick(t)},n.onKeyDown=function(t,e){n.innerMenu.getWrappedInstance().onKeyDown(t,e)},n.onOpenChange=function(t){var e=Object(S.a)(n).props,i=n.store.getState().openKeys.concat(),r=!1,o=function(t){var e=!1;if(t.open)(e=-1===i.indexOf(t.key))&&i.push(t.key);else{var n=i.indexOf(t.key);(e=-1!==n)&&i.splice(n,1)}r=r||e};Array.isArray(t)?t.forEach(o):o(t),r&&("openKeys"in n.props||n.store.setState({openKeys:i}),e.onOpenChange(i))},n.onDeselect=function(t){var e=Object(S.a)(n).props;if(e.selectable){var i=n.store.getState().selectedKeys.concat(),r=t.key,o=i.indexOf(r);-1!==o&&i.splice(o,1),"selectedKeys"in e||n.store.setState({selectedKeys:i}),e.onDeselect(Object(a.a)(Object(a.a)({},t),{},{selectedKeys:i}))}},n.onMouseEnter=function(t){n.restoreModeVerticalFromInline();var e=n.props.onMouseEnter;e&&e(t)},n.onTransitionEnd=function(t){var e="width"===t.propertyName&&t.target===t.currentTarget,i=t.target.className,r="[object SVGAnimatedString]"===Object.prototype.toString.call(i)?i.animVal:i,o="font-size"===t.propertyName&&r.indexOf("anticon")>=0;(e||o)&&n.restoreModeVerticalFromInline()},n.setInnerMenu=function(t){n.innerMenu=t},n.isRootMenu=!0;var r=t.defaultSelectedKeys,o=t.defaultOpenKeys;return"selectedKeys"in t&&(r=t.selectedKeys||[]),"openKeys"in t&&(o=t.openKeys||[]),n.store=Object(O.c)({selectedKeys:r,openKeys:o,activeKey:{"0-menu-":we(t,t.activeKey)}}),n.state={switchingModeFromInline:!1,prevProps:t,inlineOpenKeys:[],store:n.store},n}return Object(w.a)(i,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(t){var e=this.props,i=e.siderCollapsed,n=e.inlineCollapsed,r=e.onOpenChange;(!t.inlineCollapsed&&n||!t.siderCollapsed&&i)&&r([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var t=this.props.collapsedWidth,e=this.store,i=this.prevOpenKeys;this.getInlineCollapsed()&&(0===t||"0"===t||"0px"===t)?(this.prevOpenKeys=e.getState().openKeys.concat(),this.store.setState({openKeys:[]})):i&&(this.store.setState({openKeys:i}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var t=this.props.mode,e=this.state.switchingModeFromInline,i=this.getInlineCollapsed();return e&&i?"inline":i?"vertical":t}},{key:"getInlineCollapsed",value:function(){var t=this.props,e=t.inlineCollapsed,i=t.siderCollapsed;return void 0!==i?i:e}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&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 t=Object(a.a)({},Object(M.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),e=this.getRealMenuMode();return t.className+=" ".concat(t.prefixCls,"-root"),"rtl"===t.direction&&(t.className+=" ".concat(t.prefixCls,"-rtl")),delete(t=Object(a.a)(Object(a.a)({},t),{},{mode:e,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Me(this.props,this.state,e)})).openAnimation,delete t.openTransitionName,s.createElement(O.a,{store:this.store},s.createElement(Ee,Object(x.a)({},t,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var i=e.prevProps,n=e.store,r=n.getState(),o={},a={prevProps:t};return"inline"===i.mode&&"inline"!==t.mode&&(a.switchingModeFromInline=!0),"openKeys"in t?o.openKeys=t.openKeys||[]:((t.inlineCollapsed&&!i.inlineCollapsed||t.siderCollapsed&&!i.siderCollapsed)&&(a.switchingModeFromInline=!0,a.inlineOpenKeys=r.openKeys,o.openKeys=[]),(!t.inlineCollapsed&&i.inlineCollapsed||!t.siderCollapsed&&i.siderCollapsed)&&(o.openKeys=e.inlineOpenKeys,a.inlineOpenKeys=[])),Object.keys(o).length&&n.setState(o),a}}]),i}(s.Component);Ie.defaultProps={selectable:!0,onClick:q,onSelect:q,onOpenChange:q,onDeselect:q,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:s.createElement("span",null,"···")};var Te=Ie,Ne=function(t){Object(A.a)(i,t);var e=Object(E.a)(i);function i(){var t;return Object(k.a)(this,i),(t=e.apply(this,arguments)).onKeyDown=function(e){if(e.keyCode===v.a.ENTER)return t.onClick(e),!0},t.onMouseLeave=function(e){var i=t.props,n=i.eventKey,r=i.onItemHover,o=i.onMouseLeave;r({key:n,hover:!1}),o({key:n,domEvent:e})},t.onMouseEnter=function(e){var i=t.props,n=i.eventKey,r=i.onItemHover,o=i.onMouseEnter;r({key:n,hover:!0}),o({key:n,domEvent:e})},t.onClick=function(e){var i=t.props,n=i.eventKey,r=i.multiple,o=i.onClick,a=i.onSelect,s=i.onDeselect,l=i.isSelected,c={key:n,keyPath:[n],item:Object(S.a)(t),domEvent:e};o(c),r?l?s(c):a(c):l||a(c)},t.saveNode=function(e){t.node=e},t}return Object(w.a)(i,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var t=this.props;t.onDestroy&&t.onDestroy(t.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 t,e=Object(a.a)({},this.props),i=c()(this.getPrefixCls(),e.className,(t={},Object(n.a)(t,this.getActiveClassName(),!e.disabled&&e.active),Object(n.a)(t,this.getSelectedClassName(),e.isSelected),Object(n.a)(t,this.getDisabledClassName(),e.disabled),t)),r=Object(a.a)(Object(a.a)({},e.attribute),{},{title:"string"==typeof e.title?e.title:void 0,className:i,role:e.role||"menuitem","aria-disabled":e.disabled});"option"===e.role?r=Object(a.a)(Object(a.a)({},r),{},{role:"option","aria-selected":e.isSelected}):null!==e.role&&"none"!==e.role||(r.role="none");var o={onClick:e.disabled?null:this.onClick,onMouseLeave:e.disabled?null:this.onMouseLeave,onMouseEnter:e.disabled?null:this.onMouseEnter},l=Object(a.a)({},e.style);"inline"===e.mode&&("rtl"===e.direction?l.paddingRight=e.inlineIndent*e.level:l.paddingLeft=e.inlineIndent*e.level),tt.forEach((function(t){return delete e[t]})),delete e.direction;var u=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(u=s.createElement(this.props.itemIcon,this.props)),s.createElement("li",Object(x.a)({},Object(M.a)(e,["onClick","onMouseEnter","onMouseLeave","onSelect"]),r,o,{style:l,ref:this.saveNode}),e.children,u)}}]),i}(s.Component);Ne.isMenuItem=!0,Ne.defaultProps={onSelect:q,onMouseEnter:q,onMouseLeave:q,manualRef:q};var Re=Object(O.b)((function(t,e){var i=t.activeKey,n=t.selectedKeys,r=e.eventKey;return{active:i[e.subMenuKey]===r,isSelected:Array.isArray(n)?-1!==n.indexOf(r):n===r}}))(Ne),Be=function(t){Object(A.a)(i,t);var e=Object(E.a)(i);function i(){var t;return Object(k.a)(this,i),(t=e.apply(this,arguments)).renderInnerMenuItem=function(e){var i=t.props;return(0,i.renderMenuItem)(e,i.index,t.props.subMenuKey)},t}return Object(w.a)(i,[{key:"render",value:function(){var t=Object(x.a)({},this.props),e=t.className,i=void 0===e?"":e,n=t.rootPrefixCls,r="".concat(n,"-item-group-title"),o="".concat(n,"-item-group-list"),a=t.title,l=t.children;return tt.forEach((function(e){return delete t[e]})),delete t.direction,s.createElement("li",Object(x.a)({},t,{onClick:function(t){return t.stopPropagation()},className:"".concat(i," ").concat(n,"-item-group")}),s.createElement("div",{className:r,title:"string"==typeof a?a:void 0},a),s.createElement("ul",{className:o},s.Children.map(l,this.renderInnerMenuItem)))}}]),i}(s.Component);Be.isMenuItemGroup=!0,Be.defaultProps={disabled:!0};var De=function(t){var e=t.className,i=t.rootPrefixCls,n=t.style;return s.createElement("li",{className:"".concat(e," ").concat(i,"-item-divider"),style:n})};De.defaultProps={disabled:!0,className:"",style:{}};var Le=Te,je=i("eDIo");var Pe=s.forwardRef((function(t,e){var i=t.prefixCls,n=t.editable,r=t.locale,o=t.style;return n&&!1!==n.showAdd?s.createElement("button",{ref:e,type:"button",className:"".concat(i,"-nav-add"),style:o,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(t){n.onEdit("add",{event:t})}},n.addIcon||"+"):null}));var ze=s.forwardRef((function(t,e){var i=t.prefixCls,o=t.id,a=t.tabs,l=t.locale,u=t.mobile,h=t.moreIcon,p=void 0===h?"More":h,d=t.moreTransitionName,f=t.style,m=t.className,g=t.editable,y=t.tabBarGutter,b=t.rtl,C=t.onTabClick,x=Object(s.useState)(!1),k=Object(r.a)(x,2),w=k[0],S=k[1],A=Object(s.useState)(null),E=Object(r.a)(A,2),O=E[0],M=E[1],I="".concat(o,"-more-popup"),T="".concat(i,"-dropdown"),N=null!==O?"".concat(I,"-").concat(O):null,R=null==l?void 0:l.dropdownAriaLabel,B=s.createElement(Le,{onClick:function(t){var e=t.key,i=t.domEvent;C(e,i),S(!1)},id:I,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[O],"aria-label":void 0!==R?R:"expanded dropdown"},a.map((function(t){return s.createElement(Re,{key:t.key,id:"".concat(I,"-").concat(t.key),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(t.key),disabled:t.disabled},t.tab)})));function D(t){for(var e=a.filter((function(t){return!t.disabled})),i=e.findIndex((function(t){return t.key===O}))||0,n=e.length,r=0;r<n;r+=1){var o=e[i=(i+t+n)%n];if(!o.disabled)return void M(o.key)}}Object(s.useEffect)((function(){var t=document.getElementById(N);t&&t.scrollIntoView&&t.scrollIntoView(!1)}),[O]),Object(s.useEffect)((function(){w||M(null)}),[w]);var L=Object(n.a)({},b?"marginLeft":"marginRight",y);a.length||(L.visibility="hidden",L.order=1);var j=c()(Object(n.a)({},"".concat(T,"-rtl"),b)),P=u?null:s.createElement(je.a,{prefixCls:T,overlay:B,trigger:["hover"],visible:w,transitionName:d,onVisibleChange:S,overlayClassName:j,mouseEnterDelay:.1,mouseLeaveDelay:.1},s.createElement("button",{type:"button",className:"".concat(i,"-nav-more"),style:L,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":I,id:"".concat(o,"-more"),"aria-expanded":w,onKeyDown:function(t){var e=t.which;if(w)switch(e){case v.a.UP:D(-1),t.preventDefault();break;case v.a.DOWN:D(1),t.preventDefault();break;case v.a.ESC:S(!1);break;case v.a.SPACE:case v.a.ENTER:null!==O&&C(O,t)}else[v.a.DOWN,v.a.SPACE,v.a.ENTER].includes(e)&&(S(!0),t.preventDefault())}},p));return s.createElement("div",{className:c()("".concat(i,"-nav-operations"),m),style:f,ref:e},P,s.createElement(Pe,{prefixCls:i,locale:l,editable:g}))})),Fe=Object(s.createContext)(null),We=Math.pow(.995,20);function Ve(t,e){var i=s.useRef(t),n=s.useState({}),o=Object(r.a)(n,2)[1];return[i.current,function(t){var n="function"==typeof t?t(i.current):t;n!==i.current&&e(n,i.current),i.current=n,o({})}]}var He=function(t){var e,i=t.position,n=t.prefixCls,r=t.extra;if(!r)return null;var o=r;return"right"===i&&(e=o.right||!o.left&&o||null),"left"===i&&(e=o.left||null),e?s.createElement("div",{className:"".concat(n,"-extra-content")},e):null};var Ge=s.forwardRef((function(t,e){var i,o,l=s.useContext(Fe),u=l.prefixCls,h=l.tabs,d=t.className,v=t.style,x=t.id,k=t.animated,w=t.activeKey,S=t.rtl,A=t.extra,E=t.editable,O=t.locale,M=t.tabPosition,I=t.tabBarGutter,T=t.children,N=t.onTabClick,R=t.onTabScroll,B=Object(s.useRef)(),D=Object(s.useRef)(),L=Object(s.useRef)(),j=Object(s.useRef)(),P=(o=Object(s.useRef)(new Map),[function(t){return o.current.has(t)||o.current.set(t,s.createRef()),o.current.get(t)},function(t){o.current.delete(t)}]),z=Object(r.a)(P,2),F=z[0],W=z[1],V="top"===M||"bottom"===M,H=Ve(0,(function(t,e){V&&R&&R({direction:t>e?"left":"right"})})),G=Object(r.a)(H,2),U=G[0],Q=G[1],J=Ve(0,(function(t,e){!V&&R&&R({direction:t>e?"top":"bottom"})})),K=Object(r.a)(J,2),Z=K[0],Y=K[1],q=Object(s.useState)(0),X=Object(r.a)(q,2),_=X[0],$=X[1],tt=Object(s.useState)(0),et=Object(r.a)(tt,2),it=et[0],nt=et[1],rt=Object(s.useState)(0),ot=Object(r.a)(rt,2),at=ot[0],st=ot[1],lt=Object(s.useState)(0),ct=Object(r.a)(lt,2),ut=ct[0],ht=ct[1],pt=Object(s.useState)(null),dt=Object(r.a)(pt,2),ft=dt[0],mt=dt[1],gt=Object(s.useState)(null),vt=Object(r.a)(gt,2),yt=vt[0],bt=vt[1],Ct=Object(s.useState)(0),xt=Object(r.a)(Ct,2),kt=xt[0],wt=xt[1],St=Object(s.useState)(0),At=Object(r.a)(St,2),Et=At[0],Ot=At[1],Mt=function(t){var e=Object(s.useRef)([]),i=Object(s.useState)({}),n=Object(r.a)(i,2)[1],o=Object(s.useRef)("function"==typeof t?t():t),a=g((function(){var t=o.current;e.current.forEach((function(e){t=e(t)})),e.current=[],o.current=t,n({})}));return[o.current,function(t){e.current.push(t),a()}]}(new Map),It=Object(r.a)(Mt,2),Tt=It[0],Nt=It[1],Rt=function(t,e,i){return Object(s.useMemo)((function(){for(var i,n=new Map,r=e.get(null===(i=t[0])||void 0===i?void 0:i.key)||b,o=r.left+r.width,s=0;s<t.length;s+=1){var l,c=t[s].key,u=e.get(c);if(!u)u=e.get(null===(l=t[s-1])||void 0===l?void 0:l.key)||b;var h=n.get(c)||Object(a.a)({},u);h.right=o-h.left-h.width,n.set(c,h)}return n}),[t.map((function(t){return t.key})).join("_"),e,i])}(h,Tt,_),Bt="".concat(u,"-nav-operations-hidden"),Dt=0,Lt=0;function jt(t){return t<Dt?[Dt,!1]:t>Lt?[Lt,!1]:[t,!0]}V?S?(Dt=0,Lt=Math.max(0,_-ft)):(Dt=Math.min(0,ft-_),Lt=0):(Dt=Math.min(0,yt-it),Lt=0);var Pt=Object(s.useRef)(),zt=Object(s.useState)(),Ft=Object(r.a)(zt,2),Wt=Ft[0],Vt=Ft[1];function Ht(){Vt(Date.now())}function Gt(){window.clearTimeout(Pt.current)}function Ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,e=Rt.get(t);if(e)if(V){var i=U;S?e.right<U?i=e.right:e.right+e.width>U+ft&&(i=e.right+e.width-ft):e.left<-U?i=-e.left:e.left+e.width>-U+ft&&(i=-(e.left+e.width-ft)),Y(0),Q(jt(i)[0])}else{var n=Z;e.top<-Z?n=-e.top:e.top+e.height>-Z+yt&&(n=-(e.top+e.height-yt)),Q(0),Y(jt(n)[0])}}!function(t,e){var i=Object(s.useState)(),n=Object(r.a)(i,2),o=n[0],a=n[1],l=Object(s.useState)(0),c=Object(r.a)(l,2),u=c[0],h=c[1],p=Object(s.useState)(0),d=Object(r.a)(p,2),f=d[0],m=d[1],g=Object(s.useState)(),v=Object(r.a)(g,2),y=v[0],b=v[1],C=Object(s.useRef)(),x=Object(s.useRef)(0),k=Object(s.useRef)(!1),w=Object(s.useRef)(),S=Object(s.useRef)(null);S.current={onTouchStart:function(t){var e=t.touches[0],i=e.screenX,n=e.screenY;a({x:i,y:n}),window.clearInterval(C.current)},onTouchMove:function(t){if(o){t.preventDefault();var i=t.touches[0],n=i.screenX,r=i.screenY;a({x:n,y:r});var s=n-o.x,l=r-o.y;e(s,l);var c=Date.now();h(c),m(c-u),b({x:s,y:l})}},onTouchEnd:function(){if(o&&(a(null),b(null),y)){var t=y.x/f,i=y.y/f,n=Math.abs(t),r=Math.abs(i);if(Math.max(n,r)<.1)return;var s=t,l=i;C.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(C.current):e(20*(s*=We),20*(l*=We))}),20)}},onWheel:function(t){var i=t.deltaX,n=t.deltaY,r=0,o=Math.abs(i),a=Math.abs(n);o===a?r="x"===w.current?i:n:o>a?(r=i,w.current="x"):(r=n,w.current="y");var s=Date.now();s-x.current>100&&(k.current=!1),(e(-r,-r)||k.current)&&(t.preventDefault(),k.current=!0),x.current=s}},s.useEffect((function(){function e(t){S.current.onTouchMove(t)}function i(t){S.current.onTouchEnd(t)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",i,{passive:!1}),t.current.addEventListener("touchstart",(function(t){S.current.onTouchStart(t)}),{passive:!1}),t.current.addEventListener("wheel",(function(t){S.current.onWheel(t)})),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",i)}}),[])}(B,(function(t,e){var i=!1;function n(t,e){t((function(t){var n=jt(t+e),o=Object(r.a)(n,2),a=o[0],s=o[1];return i=s,a}))}if(V){if(ft>=_)return i;n(Q,t)}else{if(yt>=it)return i;n(Y,e)}return Gt(),Ht(),i})),Object(s.useEffect)((function(){return Gt(),Wt&&(Pt.current=window.setTimeout((function(){Vt(0)}),100)),Gt}),[Wt]);var Qt=function(t,e,i,n,r){var o,a,l,c=r.tabs,u=r.tabPosition,h=r.rtl;["top","bottom"].includes(u)?(o="width",a=h?"right":"left",l=Math.abs(e.left)):(o="height",a="top",l=-e.top);var p=e[o],d=i[o],f=n[o],m=p;return d+f>p&&(m=p-f),Object(s.useMemo)((function(){if(!c.length)return[0,0];for(var e=c.length,i=e,n=0;n<e;n+=1){var r=t.get(c[n].key)||C;if(r[a]+r[o]>l+m){i=n-1;break}}for(var s=0,u=e-1;u>=0;u-=1){if((t.get(c[u].key)||C)[a]<l){s=u+1;break}}return[s,i]}),[t,l,m,u,c.map((function(t){return t.key})).join("_"),h])}(Rt,{width:ft,height:yt,left:U,top:Z},{width:at,height:ut},{width:kt,height:Et},Object(a.a)(Object(a.a)({},t),{},{tabs:h})),Jt=Object(r.a)(Qt,2),Kt=Jt[0],Zt=Jt[1],Yt=h.map((function(t){var e=t.key;return s.createElement(y,{id:x,prefixCls:u,key:e,rtl:S,tab:t,closable:t.closable,editable:E,active:e===w,tabPosition:M,tabBarGutter:I,renderWrapper:T,removeAriaLabel:null==O?void 0:O.removeAriaLabel,ref:F(e),onClick:function(t){N(e,t)},onRemove:function(){W(e)},onFocus:function(){Ut(e),Ht(),S||(B.current.scrollLeft=0),B.current.scrollTop=0}})})),qt=g((function(){var t,e,i,n,r,o,a,s,l,c=(null===(t=B.current)||void 0===t?void 0:t.offsetWidth)||0,u=(null===(e=B.current)||void 0===e?void 0:e.offsetHeight)||0,p=(null===(i=j.current)||void 0===i?void 0:i.offsetWidth)||0,d=(null===(n=j.current)||void 0===n?void 0:n.offsetHeight)||0,f=(null===(r=L.current)||void 0===r?void 0:r.offsetWidth)||0,m=(null===(o=L.current)||void 0===o?void 0:o.offsetHeight)||0;mt(c),bt(u),wt(p),Ot(d);var g=((null===(a=D.current)||void 0===a?void 0:a.offsetWidth)||0)-p,v=((null===(s=D.current)||void 0===s?void 0:s.offsetHeight)||0)-d;$(g),nt(v);var y=null===(l=L.current)||void 0===l?void 0:l.className.includes(Bt);st(g-(y?0:f)),ht(v-(y?0:m)),Nt((function(){var t=new Map;return h.forEach((function(e){var i=e.key,n=F(i).current;n&&t.set(i,{width:n.offsetWidth,height:n.offsetHeight,left:n.offsetLeft,top:n.offsetTop})})),t}))})),Xt=h.slice(0,Kt),_t=h.slice(Zt+1),$t=[].concat(Object(p.a)(Xt),Object(p.a)(_t)),te=Object(s.useState)(),ee=Object(r.a)(te,2),ie=ee[0],ne=ee[1],re=Rt.get(w),oe=Object(s.useRef)();function ae(){f.a.cancel(oe.current)}Object(s.useEffect)((function(){var t={};return re&&(V?(S?t.right=re.right:t.left=re.left,t.width=re.width):(t.top=re.top,t.height=re.height)),ae(),oe.current=f()((function(){ne(t)})),ae}),[re,V,S]),Object(s.useEffect)((function(){Ut()}),[w,re,Rt,V]),Object(s.useEffect)((function(){qt()}),[S,I,w,h.map((function(t){return t.key})).join("_")]);var se,le,ce,ue,he=!!$t.length,pe="".concat(u,"-nav-wrap");return V?S?(le=U>0,se=U+ft<_):(se=U<0,le=-U+ft<_):(ce=Z<0,ue=-Z+yt<it),s.createElement("div",{ref:e,role:"tablist",className:c()("".concat(u,"-nav"),d),style:v,onKeyDown:function(){Ht()}},s.createElement(He,{position:"left",extra:A,prefixCls:u}),s.createElement(m.a,{onResize:qt},s.createElement("div",{className:c()(pe,(i={},Object(n.a)(i,"".concat(pe,"-ping-left"),se),Object(n.a)(i,"".concat(pe,"-ping-right"),le),Object(n.a)(i,"".concat(pe,"-ping-top"),ce),Object(n.a)(i,"".concat(pe,"-ping-bottom"),ue),i)),ref:B},s.createElement(m.a,{onResize:qt},s.createElement("div",{ref:D,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat(U,"px, ").concat(Z,"px)"),transition:Wt?"none":void 0}},Yt,s.createElement(Pe,{ref:j,prefixCls:u,locale:O,editable:E,style:{visibility:he?"hidden":null}}),s.createElement("div",{className:c()("".concat(u,"-ink-bar"),Object(n.a)({},"".concat(u,"-ink-bar-animated"),k.inkBar)),style:ie}))))),s.createElement(ze,Object.assign({},t,{ref:L,prefixCls:u,tabs:$t,className:!he&&Bt})),s.createElement(He,{position:"right",extra:A,prefixCls:u}))}));function Ue(t){var e=t.id,i=t.activeKey,r=t.animated,o=t.tabPosition,a=t.rtl,l=t.destroyInactiveTabPane,u=s.useContext(Fe),h=u.prefixCls,p=u.tabs,d=r.tabPane,f=p.findIndex((function(t){return t.key===i}));return s.createElement("div",{className:c()("".concat(h,"-content-holder"))},s.createElement("div",{className:c()("".concat(h,"-content"),"".concat(h,"-content-").concat(o),Object(n.a)({},"".concat(h,"-content-animated"),d)),style:f&&d?Object(n.a)({},a?"marginRight":"marginLeft","-".concat(f,"00%")):null},p.map((function(t){return s.cloneElement(t.node,{key:t.key,prefixCls:h,tabKey:t.key,id:e,animated:d,active:t.key===i,destroyInactiveTabPane:l})}))))}function Qe(t){var e=t.prefixCls,i=t.forceRender,n=t.className,o=t.style,l=t.id,u=t.active,h=t.animated,p=t.destroyInactiveTabPane,d=t.tabKey,f=t.children,m=s.useState(i),g=Object(r.a)(m,2),v=g[0],y=g[1];s.useEffect((function(){u?y(!0):p&&y(!1)}),[u,p]);var b={};return u||(h?(b.visibility="hidden",b.height=0,b.overflowY="hidden"):b.display="none"),s.createElement("div",{id:l&&"".concat(l,"-panel-").concat(d),role:"tabpanel",tabIndex:u?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(d),"aria-hidden":!u,style:Object(a.a)(Object(a.a)({},b),o),className:c()("".concat(e,"-tabpane"),u&&"".concat(e,"-tabpane-active"),n)},(u||v||i)&&f)}var Je=0;var Ke=s.forwardRef((function(t,e){var i,l,p=t.id,d=t.prefixCls,f=void 0===d?"rc-tabs":d,m=t.className,g=t.children,v=t.direction,y=t.activeKey,b=t.defaultActiveKey,C=t.editable,x=t.animated,k=t.tabPosition,w=void 0===k?"top":k,S=t.tabBarGutter,A=t.tabBarStyle,E=t.tabBarExtraContent,O=t.locale,M=t.moreIcon,I=t.moreTransitionName,T=t.destroyInactiveTabPane,N=t.renderTabBar,R=t.onChange,B=t.onTabClick,D=t.onTabScroll,L=Object(o.a)(t,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),j=function(t){return Object(u.a)(t).map((function(t){if(s.isValidElement(t)){var e=void 0!==t.key?String(t.key):void 0;return Object(a.a)(Object(a.a)({key:e},t.props),{},{node:t})}return null})).filter((function(t){return t}))}(g),P="rtl"===v;l=!1===x?{inkBar:!1,tabPane:!1}:Object(a.a)({inkBar:!0,tabPane:!1},!0!==x?x:null);var z=Object(s.useState)(!1),F=Object(r.a)(z,2),W=F[0],V=F[1];Object(s.useEffect)((function(){var t;V((t=navigator.userAgent||navigator.vendor||window.opera,!(!/(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(t)&&!/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(t.substr(0,4)))))}),[]);var H=Object(h.a)((function(){var t;return null===(t=j[0])||void 0===t?void 0:t.key}),{value:y,defaultValue:b}),G=Object(r.a)(H,2),U=G[0],Q=G[1],J=Object(s.useState)((function(){return j.findIndex((function(t){return t.key===U}))})),K=Object(r.a)(J,2),Z=K[0],Y=K[1];Object(s.useEffect)((function(){var t,e=j.findIndex((function(t){return t.key===U}));-1===e&&(e=Math.max(0,Math.min(Z,j.length-1)),Q(null===(t=j[e])||void 0===t?void 0:t.key));Y(e)}),[j.map((function(t){return t.key})).join("_"),U,Z]);var q=Object(h.a)(null,{value:p}),X=Object(r.a)(q,2),_=X[0],$=X[1],tt=w;W&&!["left","right"].includes(w)&&(tt="top"),Object(s.useEffect)((function(){p||($("rc-tabs-".concat(Je)),Je+=1)}),[]);var et,it={id:_,activeKey:U,animated:l,tabPosition:tt,rtl:P,mobile:W},nt=Object(a.a)(Object(a.a)({},it),{},{editable:C,locale:O,moreIcon:M,moreTransitionName:I,tabBarGutter:S,onTabClick:function(t,e){null==B||B(t,e),Q(t),null==R||R(t)},onTabScroll:D,extra:E,style:A,panes:g});return et=N?N(nt,Ge):s.createElement(Ge,Object.assign({},nt)),s.createElement(Fe.Provider,{value:{tabs:j,prefixCls:f}},s.createElement("div",Object.assign({ref:e,id:p,className:c()(f,"".concat(f,"-").concat(tt),(i={},Object(n.a)(i,"".concat(f,"-mobile"),W),Object(n.a)(i,"".concat(f,"-editable"),C),Object(n.a)(i,"".concat(f,"-rtl"),P),i),m)},L),et,s.createElement(Ue,Object.assign({destroyInactiveTabPane:T},it,{animated:l}))))}));Ke.TabPane=Qe;var Ze=Ke;e.b=Ze},kPWJ:
|
|
|
/*!****************************************!*\
|
|
|
!*** ./src/assets/images/question.gif ***!
|
|
|
\****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/question.cb52bef9.gif"},kPYp:
|
|
|
/*!******************************************!*\
|
|
|
!*** ./src/assets/images/icons/zoom.png ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZT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4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./src/components/markdown-editor/index.less ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){},l2Kq:
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./src/assets/images/forums/match_ad.jpg ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/match_ad.24dc22fd.jpg"},lZu9:
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/codemirror/mode/markdown/markdown.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){!function(t){"use strict";t.defineMode("markdown",(function(e,i){var n=t.getMode(e,"text/html"),r="null"==n.name;void 0===i.highlightFormatting&&(i.highlightFormatting=!1),void 0===i.maxBlockquoteDepth&&(i.maxBlockquoteDepth=0),void 0===i.taskLists&&(i.taskLists=!1),void 0===i.strikethrough&&(i.strikethrough=!1),void 0===i.emoji&&(i.emoji=!1),void 0===i.fencedCodeBlockHighlighting&&(i.fencedCodeBlockHighlighting=!0),void 0===i.fencedCodeBlockDefaultMode&&(i.fencedCodeBlockDefaultMode="text/plain"),void 0===i.xml&&(i.xml=!0),void 0===i.tokenTypeOverrides&&(i.tokenTypeOverrides={});var o={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 a in o)o.hasOwnProperty(a)&&i.tokenTypeOverrides[a]&&(o[a]=i.tokenTypeOverrides[a]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,c=/^\[(x| )\](?=\s)/i,u=i.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,p=/^[^#!\[\]*_\\<>` "'(~:]+/,d=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/;function g(t,e,i){return e.f=e.inline=i,i(t,e)}function v(t,e,i){return e.f=e.block=i,i(t,e)}function y(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==C){var i=r;if(!i){var o=t.innerMode(n,e.htmlState);i="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}i&&(e.f=S,e.block=b,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function b(n,r){var a,p=n.column()===r.indentation,m=!(a=r.prevLine.stream)||!/\S/.test(a.string),v=r.indentedCode,y=r.prevLine.hr,b=!1!==r.list,C=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,b)){for(r.list=null;w<r.listStack[r.listStack.length-1];)r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=w-r.listStack[r.listStack.length-1])}var S=!(m||y||r.prevLine.header||b&&v||r.prevLine.fencedCodeEnd),A=(!1===r.list||y||m)&&r.indentation<=C&&n.match(s),E=null;if(r.indentationDiff>=4&&(v||r.prevLine.fencedCodeEnd||r.prevLine.header||m))return n.skipToEnd(),r.indentedCode=!0,o.code;if(n.eatSpace())return null;if(p&&r.indentation<=C&&(E=n.match(u))&&E[1].length<=6)return r.quote=0,r.header=E[1].length,r.thisLine.header=!0,i.highlightFormatting&&(r.formatting="header"),r.f=r.inline,k(r);if(r.indentation<=C&&n.eat(">"))return r.quote=p?1:r.quote+1,i.highlightFormatting&&(r.formatting="quote"),n.eatSpace(),k(r);if(!A&&!r.setext&&p&&r.indentation<=C&&(E=n.match(l))){var O=E[1]?"ol":"ul";return r.indentation=w+n.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,i.taskLists&&n.match(c,!1)&&(r.taskList=!0),r.f=r.inline,i.highlightFormatting&&(r.formatting=["list","list-"+O]),k(r)}return p&&r.indentation<=C&&(E=n.match(d,!0))?(r.quote=0,r.fencedEndRE=new RegExp(E[1]+"+ *$"),r.localMode=i.fencedCodeBlockHighlighting&&function(i){if(t.findModeByName){var n=t.findModeByName(i);n&&(i=n.mime||n.mimes[0])}var r=t.getMode(e,i);return"null"==r.name?null:r}(E[2]||i.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=t.startState(r.localMode)),r.f=r.block=x,i.highlightFormatting&&(r.formatting="code-block"),r.code=-1,k(r)):r.setext||!(S&&b||r.quote||!1!==r.list||r.code||A||f.test(n.string))&&(E=n.lookAhead(1))&&(E=E.match(h))?(r.setext?(r.header=r.setext,r.setext=0,n.skipToEnd(),i.highlightFormatting&&(r.formatting="header")):(r.header="="==E[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,k(r)):A?(n.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,o.hr):"["===n.peek()?g(n,r,M):g(n,r,r.inline)}function C(e,i){var o=n.token(e,i.htmlState);if(!r){var a=t.innerMode(n,i.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||i.md_inside&&e.current().indexOf(">")>-1)&&(i.f=S,i.block=b,i.htmlState=null)}return o}function x(t,e){var n,r=e.listStack[e.listStack.length-1]||0,a=e.indentation<r,s=r+3;return e.fencedEndRE&&e.indentation<=s&&(a||t.match(e.fencedEndRE))?(i.highlightFormatting&&(e.formatting="code-block"),a||(n=k(e)),e.localMode=e.localState=null,e.block=b,e.f=S,e.fencedEndRE=null,e.code=0,e.thisLine.fencedCodeEnd=!0,a?v(t,e,e.block):n):e.localMode?e.localMode.token(t,e.localState):(t.skipToEnd(),o.code)}function k(t){var e=[];if(t.formatting){e.push(o.formatting),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var n=0;n<t.formatting.length;n++)e.push(o.formatting+"-"+t.formatting[n]),"header"===t.formatting[n]&&e.push(o.formatting+"-"+t.formatting[n]+"-"+t.header),"quote"===t.formatting[n]&&(!i.maxBlockquoteDepth||i.maxBlockquoteDepth>=t.quote?e.push(o.formatting+"-"+t.formatting[n]+"-"+t.quote):e.push("error"))}if(t.taskOpen)return e.push("meta"),e.length?e.join(" "):null;if(t.taskClosed)return e.push("property"),e.length?e.join(" "):null;if(t.linkHref?e.push(o.linkHref,"url"):(t.strong&&e.push(o.strong),t.em&&e.push(o.em),t.strikethrough&&e.push(o.strikethrough),t.emoji&&e.push(o.emoji),t.linkText&&e.push(o.linkText),t.code&&e.push(o.code),t.image&&e.push(o.image),t.imageAltText&&e.push(o.imageAltText,"link"),t.imageMarker&&e.push(o.imageMarker)),t.header&&e.push(o.header,o.header+"-"+t.header),t.quote&&(e.push(o.quote),!i.maxBlockquoteDepth||i.maxBlockquoteDepth>=t.quote?e.push(o.quote+"-"+t.quote):e.push(o.quote+"-"+i.maxBlockquoteDepth)),!1!==t.list){var r=(t.listStack.length-1)%3;r?1===r?e.push(o.list2):e.push(o.list3):e.push(o.list1)}return t.trailingSpaceNewLine?e.push("trailing-space-new-line"):t.trailingSpace&&e.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),e.length?e.join(" "):null}function w(t,e){if(t.match(p,!0))return k(e)}function S(e,r){var a=r.text(e,r);if(void 0!==a)return a;if(r.list)return r.list=null,k(r);if(r.taskList)return" "===e.match(c,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,i.highlightFormatting&&(r.formatting="task"),r.taskList=!1,k(r);if(r.taskOpen=!1,r.taskClosed=!1,r.header&&e.match(/^#+$/,!0))return i.highlightFormatting&&(r.formatting="header"),k(r);var s=e.next();if(r.linkTitle){r.linkTitle=!1;var l=s;"("===s&&(l=")");var u="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(e.match(new RegExp(u),!0))return o.linkHref}if("`"===s){var h=r.formatting;i.highlightFormatting&&(r.formatting="code"),e.eatWhile("`");var p=e.current().length;if(0!=r.code||r.quote&&1!=p){if(p==r.code){var d=k(r);return r.code=0,d}return r.formatting=h,k(r)}return r.code=p,k(r)}if(r.code)return k(r);if("\\"===s&&(e.next(),i.highlightFormatting)){var f=k(r),g=o.formatting+"-escape";return f?f+" "+g:g}if("!"===s&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,i.highlightFormatting&&(r.formatting="image"),k(r);if("["===s&&r.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,i.highlightFormatting&&(r.formatting="image"),k(r);if("]"===s&&r.imageAltText){i.highlightFormatting&&(r.formatting="image");var f=k(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=E,f}if("["===s&&!r.image)return r.linkText&&e.match(/^.*?\]/)||(r.linkText=!0,i.highlightFormatting&&(r.formatting="link")),k(r);if("]"===s&&r.linkText){i.highlightFormatting&&(r.formatting="link");var f=k(r);return r.linkText=!1,r.inline=r.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?E:S,f}if("<"===s&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=A,i.highlightFormatting&&(r.formatting="link"),(f=k(r))?f+=" ":f="",f+o.linkInline;if("<"===s&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=A,i.highlightFormatting&&(r.formatting="link"),(f=k(r))?f+=" ":f="",f+o.linkEmail;if(i.xml&&"<"===s&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=e.string.indexOf(">",e.pos);if(-1!=y){var b=e.string.substring(e.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(r.md_inside=!0)}return e.backUp(1),r.htmlState=t.startState(n),v(e,r,C)}if(i.xml&&"<"===s&&e.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===s||"_"===s){for(var x=1,w=1==e.pos?" ":e.string.charAt(e.pos-2);x<3&&e.eat(s);)x++;var O=e.peek()||" ",M=!/\s/.test(O)&&(!m.test(O)||/\s/.test(w)||m.test(w)),I=!/\s/.test(w)&&(!m.test(w)||/\s/.test(O)||m.test(O)),T=null,N=null;if(x%2&&(r.em||!M||"*"!==s&&I&&!m.test(w)?r.em!=s||!I||"*"!==s&&M&&!m.test(O)||(T=!1):T=!0),x>1&&(r.strong||!M||"*"!==s&&I&&!m.test(w)?r.strong!=s||!I||"*"!==s&&M&&!m.test(O)||(N=!1):N=!0),null!=N||null!=T)return i.highlightFormatting&&(r.formatting=null==T?"strong":null==N?"em":"strong em"),!0===T&&(r.em=s),!0===N&&(r.strong=s),d=k(r),!1===T&&(r.em=!1),!1===N&&(r.strong=!1),d}else if(" "===s&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return k(r);e.backUp(1)}if(i.strikethrough)if("~"===s&&e.eatWhile(s)){if(r.strikethrough)return i.highlightFormatting&&(r.formatting="strikethrough"),d=k(r),r.strikethrough=!1,d;if(e.match(/^[^\s]/,!1))return r.strikethrough=!0,i.highlightFormatting&&(r.formatting="strikethrough"),k(r)}else if(" "===s&&e.match(/^~~/,!0)){if(" "===e.peek())return k(r);e.backUp(2)}if(i.emoji&&":"===s&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){r.emoji=!0,i.highlightFormatting&&(r.formatting="emoji");var R=k(r);return r.emoji=!1,R}return" "===s&&(e.match(/^ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),k(r)}function A(t,e){if(">"===t.next()){e.f=e.inline=S,i.highlightFormatting&&(e.formatting="link");var n=k(e);return n?n+=" ":n="",n+o.linkInline}return t.match(/^[^>]+/,!0),o.linkInline}function E(t,e){if(t.eatSpace())return null;var n,r=t.next();return"("===r||"["===r?(e.f=e.inline=(n="("===r?")":"]",function(t,e){if(t.next()===n){e.f=e.inline=S,i.highlightFormatting&&(e.formatting="link-string");var r=k(e);return e.linkHref=!1,r}return t.match(O[n]),e.linkHref=!0,k(e)}),i.highlightFormatting&&(e.formatting="link-string"),e.linkHref=!0,k(e)):"error"}var O={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function M(t,e){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(e.f=I,t.next(),i.highlightFormatting&&(e.formatting="link"),e.linkText=!0,k(e)):g(t,e,S)}function I(t,e){if(t.match(/^\]:/,!0)){e.f=e.inline=T,i.highlightFormatting&&(e.formatting="link");var n=k(e);return e.linkText=!1,n}return t.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function T(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),e.f=e.inline=S,o.linkHref+" url")}var N={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:S,text:w,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(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&t.copyState(n,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?t.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return y(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=C)){var i=t.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(e.indentation=i,e.indentationDiff=null,i>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==C?{state:t.htmlState,mode:n}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:N}},indent:function(e,i,r){return e.block==C&&n.indent?n.indent(e.htmlState,i,r):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,i,r):t.Pass},blankLine:y,getType:k,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return N}),"xml"),t.defineMIME("text/markdown","markdown"),t.defineMIME("text/x-markdown","markdown")}(i(/*! ../../lib/codemirror */"VrN/"),i(/*! ../xml/xml */"1eCo"),i(/*! ../meta */"8EBN"))},lzim:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/components/ImagesIcon/index.ts ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: qrCode, searchIcon, search1Icon, noDataIcon, smallProgramIcon, anonyIcon, errIcon, chromeIcon, firefoxIcon, exportExerciseTemplate, txLiveIcon, blibliIcon, douyuIcon, weibaitongIcon, zoomIcon, groups1Icon, groups2Icon, groups3Icon, matchAdIcon, hbIcon, lockcloseIcon, teacherQQIcon, emptyIcon, charpterWhiteIcon, mainbannerBg, certificateIcon, chooseIcon, emptyIcon2, repositoryNoneDataIcon, questionIcon, noticeIcon, qrCodeIcon, done1Icon, done2Icon, done3Icon, UserQrCode */
|
|
|
/*! exports used: UserQrCode, anonyIcon, blibliIcon, certificateIcon, charpterWhiteIcon, chooseIcon, chromeIcon, done1Icon, done2Icon, done3Icon, douyuIcon, emptyIcon, emptyIcon2, errIcon, exportExerciseTemplate, firefoxIcon, hbIcon, lockcloseIcon, mainbannerBg, noDataIcon, noticeIcon, qrCode, qrCodeIcon, questionIcon, repositoryNoneDataIcon, search1Icon, searchIcon, smallProgramIcon, teacherQQIcon, txLiveIcon, weibaitongIcon, zoomIcon */function(t,e,i){"use strict";var n=i(/*! @/assets/images/icons/search.png */"E7E6"),r=i.n(n);i.d(e,"A",(function(){return r.a}));var o=i(/*! @/assets/images/icons/search1.png */"/GNS"),a=i.n(o);i.d(e,"z",(function(){return a.a}));var s=i(/*! @/assets/images/icons/nodata.png */"FOrL"),l=i.n(s);i.d(e,"t",(function(){return l.a}));var c=i(/*! @/assets/images/classrooms/small_program.png */"HpTS"),u=i.n(c);i.d(e,"B",(function(){return u.a}));var h=i(/*! @/assets/images/icons/anony.png */"tWlo"),p=i.n(h);i.d(e,"b",(function(){return p.a}));var d=i(/*! @/assets/images/classrooms/err.png */"7ZXX"),f=i.n(d);i.d(e,"n",(function(){return f.a}));var m=i(/*! @/assets/images/icons/chrome.png */"GABl"),g=i.n(m);i.d(e,"g",(function(){return g.a}));var v=i(/*! @/assets/images/icons/firefox.png */"onxn"),y=i.n(v);i.d(e,"p",(function(){return y.a}));var b=i(/*! @/assets/images/classrooms/export_exercise-template.png */"nKGa"),C=i.n(b);i.d(e,"o",(function(){return C.a}));var x=i(/*! @/assets/images/icons/tx-live.png */"4qgm"),k=i.n(x);i.d(e,"D",(function(){return k.a}));var w=i(/*! @/assets/images/icons/blibli.png */"JeFH"),S=i.n(w);i.d(e,"c",(function(){return S.a}));var A=i(/*! @/assets/images/icons/douyu.jpg */"ji0R"),E=i.n(A);i.d(e,"k",(function(){return E.a}));var O=i(/*! @/assets/images/icons/weibaitong.png */"W6BS"),M=i.n(O);i.d(e,"E",(function(){return M.a}));var I=i(/*! @/assets/images/icons/zoom.png */"kPYp"),T=i.n(I);i.d(e,"F",(function(){return T.a}));i(/*! @/assets/images/icons/groups1.png */"nukY"),i(/*! @/assets/images/icons/groups2.png */"4u4S"),i(/*! @/assets/images/icons/groups3.png */"yslc"),i(/*! @/assets/images/forums/match_ad.jpg */"l2Kq");var N=i(/*! @/assets/images/hb.png */"RMFE"),R=i.n(N);i.d(e,"q",(function(){return R.a}));var B=i(/*! @/assets/images/icons/lockclose.svg */"TGq3"),D=i.n(B);i.d(e,"r",(function(){return D.a}));var L=i(/*! @/assets/images/teacherQQ.png */"SMhR"),j=i.n(L);i.d(e,"C",(function(){return j.a}));var P=i(/*! @/assets/images/empty.png */"8/bI"),z=i.n(P);i.d(e,"l",(function(){return z.a}));var F=i(/*! @/assets/images/icons/charpter-white.svg */"JWDV"),W=i.n(F);i.d(e,"e",(function(){return W.a}));var V=i(/*! @/assets/images/banner/mainbanner.jpg */"Xsq0"),H=i.n(V);i.d(e,"s",(function(){return H.a}));var G=i(/*! @/assets/images/certificate.jpg */"Ohmc"),U=i.n(G);i.d(e,"d",(function(){return U.a}));var Q=i(/*! @/assets/images/icons/choose.svg */"csWT"),J=i.n(Q);i.d(e,"f",(function(){return J.a}));var K=i(/*! @/assets/images/empty2.png */"7v3h"),Z=i.n(K);i.d(e,"m",(function(){return Z.a}));var Y=i(/*! @/assets/images/RepositoryNoneData.png */"cRFk"),q=i.n(Y);i.d(e,"y",(function(){return q.a}));var X=i(/*! @/assets/images/question.gif */"kPWJ"),_=i.n(X);i.d(e,"x",(function(){return _.a}));var $=i(/*! @/assets/images/notice.gif */"qgvg"),tt=i.n($);i.d(e,"u",(function(){return tt.a}));var et=i(/*! @/assets/images/qrCode.png */"FPkq"),it=i.n(et);i.d(e,"w",(function(){return it.a}));var nt=i(/*! @/assets/images/icons/done1.png */"A/g1"),rt=i.n(nt);i.d(e,"h",(function(){return rt.a}));var ot=i(/*! @/assets/images/icons/done2.png */"Nmxd"),at=i.n(ot);i.d(e,"i",(function(){return at.a}));var st=i(/*! @/assets/images/icons/done3.png */"5D2P"),lt=i.n(st);i.d(e,"j",(function(){return lt.a}));var ct=i(/*! @/assets/images/icons/qrCode.png */"djh8"),ut=i.n(ct);i.d(e,"v",(function(){return ut.a}));var ht=i(/*! @/assets/images/user/qrcode.png */"Jq4h"),pt=i.n(ht);i.d(e,"a",(function(){return pt.a}))},mepR:
|
|
|
/*!**************************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Edit/body/Level/Challenges/EditQuestion/index.less?modules ***!
|
|
|
\**************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.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:
|
|
|
/*!****************************************************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Edit/body/Level/Challenges/EditQuestion/components/MultipleEditor/index.less?modules ***!
|
|
|
\****************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.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:
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./src/assets/images/classrooms/export_exercise-template.png ***!
|
|
|
\*******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports=i.p+"static/export_exercise-template.f7655c19.png"},nuEh:
|
|
|
/*!***********************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Edit/body/Level/Challenges/components/Loading/index.tsx ***!
|
|
|
\***********************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(t,e,i){"use strict";i(/*! antd/es/spin/style */"T2oS");var n=i(/*! antd/es/spin */"W9HT"),r=i(/*! react */"q1tI"),o=i.n(r),a=i(/*! ./index.less?modules */"F8wB"),s=i.n(a);e.a=function(t){return t.loading?o.a.createElement("div",{className:s.a.loading},o.a.createElement(n.a,null)):o.a.createElement(o.a.Fragment,null)}},nukY:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/groups1.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog0Zs41WN0UWcAS96K9vI6J3mHl+inTXqmTIAq5Ahz1yudxHDcN4k5mbM2QfrWpKLOAa9CLsB4ioLSW6azUyZAFPoBdh/w4RvZYhG2lVU2ABz6AXYf8FEb2cAv21ChmxgC/Qu7q6moeHh/9KRB/JiJ20mnVuAV+gQ+fu7u4FQ0ND/yGiLXVuAy1+BizgG/Ri2HEjEZ1k5kUZsJVWsY4tEAh06N3e3v7B8fHxt4hoWh3bIRbRm5qaaHx83NOzDcMg/DCz+RN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zYtab1ZwAS9s7Nz6cjICK50ju0jWvVmOC1vfVnAKF7pjPsRP1RfomtptQXcWwB7y3+slDrkvojOqS1QfxZw3AJQfyppibNkgWPHjrGDvsowjMMa9CxRkUJdHUAfNwzjQGtr6wkNegobP0sq2YD+1DCMz7e2tv4B9tCgZ4mKFOpaBfTBxsbGTx85cuRvlsoa9BQ2fpZUqgD6w4aGhhdbWlpwS8VE0qBniYoU6loKumEYdxobG184fPhwR7mqGvQUNn6WVCoB/VpDQ8PzLS0tZyvpr0HPEhUp1LUI+gUi+vjRo0cvV1NRg57Cxs+SSsePH+9qamr6xKFDh27a6a1BzxIVKdS1ra1t4cGDB/udVPs/YIoD4AHLutsAAAAASUVORK5CYII="},onxn:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/firefox.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIEiAIBk8L9uwN7ooLgt9H54QBUUqJo3zHrZTgSVDkfx+jY8lcaqgDJ0awl5S6KGXWezYu+W9CCJ2IjQkByvzXnZNlRXoPlM4dywghBJRhwBACkNPRp1nRpqX/p6CqJq2Cqqr+XSdFgVGg2DRlG85FE7Y6i/Bs6NqvZdZwc9uz1zUnCi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MKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/codemirror/addon/fold/xml-fold.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){!function(t){"use strict";var e=t.Pos;function i(t,e){return t.line-e.line||t.ch-e.ch}var n="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",r=new RegExp("<(/?)(["+n+"]["+n+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(t,e,i,n){this.line=e,this.ch=i,this.cm=t,this.text=t.getLine(e),this.min=n?Math.max(n.from,t.firstLine()):t.firstLine(),this.max=n?Math.min(n.to-1,t.lastLine()):t.lastLine()}function a(t,i){var n=t.cm.getTokenTypeAt(e(t.line,i));return n&&/\btag\b/.test(n)}function s(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function l(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function c(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(s(t))continue;return}if(a(t,e+1)){var i=t.text.lastIndexOf("/",e),n=i>-1&&!/\S/.test(t.text.slice(i+1,e));return t.ch=e+1,n?"selfClose":"regular"}t.ch=e+1}}function u(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(l(t))continue;return}if(a(t,e+1)){r.lastIndex=e,t.ch=e;var i=r.exec(t.text);if(i&&i.index==e)return i}else t.ch=e}}function h(t){for(;;){r.lastIndex=t.ch;var e=r.exec(t.text);if(!e){if(s(t))continue;return}if(a(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function p(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(l(t))continue;return}if(a(t,e+1)){var i=t.text.lastIndexOf("/",e),n=i>-1&&!/\S/.test(t.text.slice(i+1,e));return t.ch=e+1,n?"selfClose":"regular"}t.ch=e}}function d(t,i){for(var n=[];;){var r,o=h(t),a=t.line,s=t.ch-(o?o[0].length:0);if(!o||!(r=c(t)))return;if("selfClose"!=r)if(o[1]){for(var l=n.length-1;l>=0;--l)if(n[l]==o[2]){n.length=l;break}if(l<0&&(!i||i==o[2]))return{tag:o[2],from:e(a,s),to:e(t.line,t.ch)}}else n.push(o[2])}}function f(t,i){for(var n=[];;){var r=p(t);if(!r)return;if("selfClose"!=r){var o=t.line,a=t.ch,s=u(t);if(!s)return;if(s[1])n.push(s[2]);else{for(var l=n.length-1;l>=0;--l)if(n[l]==s[2]){n.length=l;break}if(l<0&&(!i||i==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(o,a)}}}else u(t)}}t.registerHelper("fold","xml",(function(t,n){for(var r=new o(t,n.line,0);;){var a=h(r);if(!a||r.line!=n.line)return;var s=c(r);if(!s)return;if(!a[1]&&"selfClose"!=s){var l=e(r.line,r.ch),u=d(r,a[2]);return u&&i(u.from,l)>0?{from:l,to:u.from}:null}}})),t.findMatchingTag=function(t,n,r){var a=new o(t,n.line,n.ch,r);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var s=c(a),l=s&&e(a.line,a.ch),h=s&&u(a);if(s&&h&&!(i(a,n)>0)){var p={from:e(a.line,a.ch),to:l,tag:h[2]};return"selfClose"==s?{open:p,close:null,at:"open"}:h[1]?{open:f(a,h[2]),close:p,at:"close"}:{open:p,close:d(a=new o(t,l.line,l.ch,r),h[2]),at:"open"}}}},t.findEnclosingTag=function(t,e,i,n){for(var r=new o(t,e.line,e.ch,i);;){var a=f(r,n);if(!a)break;var s=d(new o(t,e.line,e.ch,i),a.tag);if(s)return{open:a,close:s}}},t.scanForClosingTag=function(t,e,i,n){return d(new o(t,e.line,e.ch,n?{from:0,to:n}:null),i)}}(i(/*! ../../lib/codemirror */"VrN/"))},p5ED:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/components/PreviewAll/index.tsx ***!
|
|
|
\*********************************************/
|
|
|
/*! exports provided: PreviewAll, default */
|
|
|
/*! exports used: default */function(t,e,i){"use strict";i(/*! antd/es/button/style */"+L6B");var n=i(/*! antd/es/button */"2/Rp"),r=(i(/*! antd/es/tooltip/style */"5Dmo"),i(/*! antd/es/tooltip */"3S7+")),o=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2 */"k1fw"),a=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),s=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),l=i(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),c=i.n(l),u=i(/*! react */"q1tI"),h=i.n(u),p=i(/*! ./index.less?modules */"vHTk"),d=i.n(p),f=i(/*! @ant-design/icons */"yEEn"),m=i(/*! @/components/monaco-editor */"ZW9T"),g=i(/*! @/utils/util */"1vsH"),v=i(/*! @/service/exercise */"V0Rq"),y=i(/*! @/utils/env */"m3rI");e.a=function(t){t.name;var e=t.data,i=(t.theme,t.type),l=t.filename,p=t.monacoEditor,b=t.className,C=t.style,x=t.close,k=t.onClose,w=t.hasMask,S=t.otherData,A=void 0===S?{}:S,E=Object(u.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),O=Object(s.a)(E,2),M=(O[0],O[1],Object(u.useState)("")),I=Object(s.a)(M,2),T=(I[0],I[1]),N=Object(u.useState)(),R=Object(s.a)(N,2),B=R[0],D=R[1],L="build"===window.ENV?"/react/build/office.html":"/office.html",j=Object(u.useRef)();"office"===i&&Object(g.P)(e).filesize>10485760&&(i="other"),l&&(p.filename=l),Object(u.useEffect)((function(){var t,e,i=null===(t=document.cookie)||void 0===t||null===(e=t.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==i||i.map((function(t){var e=t.split("=");"_educoder_session"===e[0]&&T(e[1])}))}),[]),Object(u.useEffect)((function(){"office"===i&&P()}),[i]);var P=function(){var t=Object(a.a)(c.a.mark((function t(){var i,n,r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("data:",e),i=e,e.startsWith("http")||(i=location.origin+i),n=new URL(i).pathname.split("/").pop(),t.next=6,Object(v.U)({attachment_id:n});case 6:r=t.sent,D(r);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),z=function(){e.startsWith("http")||e.startsWith("blob:")?F():Object(g.x)(l||"educoder",e,l)},F=function(){Object(g.v)(l||"educoder",decodeURIComponent(e))};return h.a.createElement("div",{style:Object(o.a)({},C||{}),className:"".concat(w&&d.a.bgBlack," ").concat(i?d.a.wrp:"hide")},x&&h.a.createElement("div",{className:d.a.close,ref:j},h.a.createElement(r.a,{title:"点击下载此文件",getPopupContainer:function(){return j.current}},h.a.createElement("span",{onClick:F},h.a.createElement("i",{className:"icon-quxiaozhiding"}))),h.a.createElement(r.a,{title:"关闭",getPopupContainer:function(){return j.current}},h.a.createElement("span",{className:"",onClick:function(){k(),D(null)}},h.a.createElement("i",{className:"icon-guanbi1"})))),h.a.createElement("div",{className:"".concat(d.a[b]," ").concat(b," ").concat(d.a.monaco," ").concat("txt"===i?"show":"hide")},"txt"===i&&h.a.createElement(m.b,p)),"audio"===i&&h.a.createElement("audio",{src:"".concat((null==e?void 0:e.indexOf("http://"))>-1||(null==e?void 0:e.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(e),autoPlay:!0}),"video"===i&&h.a.createElement(h.a.Fragment,null,(null==e?void 0:e.indexOf("/api"))>-1?h.a.createElement("video",{controls:!0,src:"".concat(e),autoPlay:!0}):h.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(e),autoPlay:!0})),"office"===i&&B&&h.a.createElement("iframe",{src:"".concat(L,"?key=").concat(B.key,"&url=").concat(y.a.API_SERVER+B.url,"&callbackUrl=").concat(y.a.API_SERVER+B.callbackUrl,"&fileType=").concat(B.fileType,"&title=").concat(B.title,"&model=view")}),("xlsx"===i||"doc"===i||"pptx"===i||"docx"===i)&&h.a.createElement("iframe",{src:"".concat(L,"?key=").concat(A.key,"&url=").concat(y.a.API_SERVER+A.url,"&callbackUrl=").concat(y.a.API_SERVER+A.callbackUrl,"&fileType=").concat(A.fileType,"&title=").concat(A.title,"&model=").concat(A.model)}),"html"===i&&h.a.createElement("iframe",{src:e+"&disposition=inline"}),"pdf"===i&&h.a.createElement("embed",{className:d.a.embed,src:e,type:"application/pdf"}),"image"===i&&h.a.createElement("img",{src:"".concat((null==e?void 0:e.indexOf("http://"))>-1||(null==e?void 0:e.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(e)}),"other"===i&&h.a.createElement("div",null,h.a.createElement(n.a,{type:"primary",size:"large",onClick:z},h.a.createElement(f.a,null),"点击下载")),"download"===i&&h.a.createElement(n.a,{type:"primary",size:"large",onClick:z},h.a.createElement(f.a,null),"点击下载"))}},"p77/":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/codemirror/lib/codemirror.css ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){},qgvg:
|
|
|
/*!**************************************!*\
|
|
|
!*** ./src/assets/images/notice.gif ***!
|
|
|
\**************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAA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UVBQjNDMUNCNjkwRUU4NkMwNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3RTc3OTU2RTlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},"rAM+":
|
|
|
/*!*******************************************************************************************************************!*\
|
|
|
!*** ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js ***!
|
|
|
\*******************************************************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(/*! @babel/runtime/helpers/esm/unsupportedIterableToArray */"Qw5x");function r(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=Object(n.a)(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}},rUJ1:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/marked/src/helpers.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: escape */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){const i=/[&<>"']/,n=/[&<>"']/g,r=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,a={"&":"&","<":"<",">":">",'"':""","'":"'"},s=t=>a[t];const l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function c(t){return t.replace(l,(t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const u=/(^|[^\[])\^/g;const h=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const d={},f=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(t,e){d[" "+t]||(f.test(t)?d[" "+t]=t+"/":d[" "+t]=y(t,"/",!0));const i=-1===(t=d[" "+t]).indexOf(":");return"//"===e.substring(0,2)?i?e:t.replace(m,"$1")+e:"/"===e.charAt(0)?i?e:t.replace(g,"$1")+e:t+e}function y(t,e,i){const n=t.length;if(0===n)return"";let r=0;for(;r<n;){const o=t.charAt(n-r-1);if(o!==e||i){if(o===e||!i)break;r++}else r++}return t.substr(0,n-r)}t.exports={escape:function(t,e){if(e){if(i.test(t))return t.replace(n,s)}else if(r.test(t))return t.replace(o,s);return t},unescape:c,edit:function(t,e){t=t.source||t,e=e||"";const i={replace:(e,n)=>(n=(n=n.source||n).replace(u,"$1"),t=t.replace(e,n),i),getRegex:()=>new RegExp(t,e)};return i},cleanUrl:function(t,e,i){if(t){let t;try{t=decodeURIComponent(c(i)).replace(h,"").toLowerCase()}catch(t){return null}if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))return null}e&&!p.test(i)&&(i=v(e,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(t){return null}return i},resolveUrl:v,noopTest:{exec:function(){}},merge:function(t){let e,i,n=1;for(;n<arguments.length;n++)for(i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},splitCells:function(t,e){const i=t.replace(/\|/g,(t,e,i)=>{let n=!1,r=e;for(;--r>=0&&"\\"===i[r];)n=!n;return n?"|":" |"}).split(/ \|/);let n=0;if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i},rtrim:y,findClosingBracket:function(t,e){if(-1===t.indexOf(e[1]))return-1;const i=t.length;let n=0,r=0;for(;r<i;r++)if("\\"===t[r])r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return-1},checkSanitizeDeprecation:function(t){t&&t.sanitize&&!t.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")}}},t23M:
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-resize-observer/es/index.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(t,e,i){"use strict";var n=i(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ"),r=i(/*! @babel/runtime/helpers/esm/classCallCheck */"1OyB"),o=i(/*! @babel/runtime/helpers/esm/createClass */"vuIU"),a=i(/*! @babel/runtime/helpers/esm/inherits */"Ji7U"),s=i(/*! @babel/runtime/helpers/esm/createSuper */"LK+K"),l=i(/*! react */"q1tI"),c=i(/*! rc-util/es/Dom/findDOMNode */"m+aA"),u=i(/*! rc-util/es/Children/toArray */"Zm9Q"),h=i(/*! rc-util/es/warning */"Kwbf"),p=i(/*! rc-util/es/ref */"c+Xe"),d=i(/*! resize-observer-polyfill */"bdgK"),f=function(t){Object(a.a)(i,t);var e=Object(s.a)(i);function i(){var t;return Object(r.a)(this,i),(t=e.apply(this,arguments)).resizeObserver=null,t.childNode=null,t.currentElement=null,t.state={width:0,height:0,offsetHeight:0,offsetWidth:0},t.onResize=function(e){var i=t.props.onResize,r=e[0].target,o=r.getBoundingClientRect(),a=o.width,s=o.height,l=r.offsetWidth,c=r.offsetHeight,u=Math.floor(a),h=Math.floor(s);if(t.state.width!==u||t.state.height!==h||t.state.offsetWidth!==l||t.state.offsetHeight!==c){var p={width:u,height:h,offsetWidth:l,offsetHeight:c};t.setState(p),i&&Promise.resolve().then((function(){i(Object(n.a)(Object(n.a)({},p),{},{offsetWidth:l,offsetHeight:c}))}))}},t.setChildNode=function(e){t.childNode=e},t}return Object(o.a)(i,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var t=Object(c.a)(this.childNode||this);t!==this.currentElement&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new d.default(this.onResize),this.resizeObserver.observe(t))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var t=this.props.children,e=Object(u.a)(t);if(e.length>1)Object(h.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===e.length)return Object(h.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var i=e[0];if(l.isValidElement(i)&&Object(p.c)(i)){var n=i.ref;e[0]=l.cloneElement(i,{ref:Object(p.a)(n,this.setChildNode)})}return 1===e.length?e[0]:e.map((function(t,e){return!l.isValidElement(t)||"key"in t&&null!==t.key?t:l.cloneElement(t,{key:"".concat("rc-observer-key","-").concat(e)})}))}}]),i}(l.Component);f.displayName="ResizeObserver",e.a=f},tWlo:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/icons/anony.png ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvd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DsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},uIXO:
|
|
|
/*!*************************************************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Edit/body/Level/Challenges/EditQuestion/components/AddQuestion/index.less?modules ***!
|
|
|
\*************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports={flex_box_center:"flex_box_center___1HoSW",flex_space_between:"flex_space_between___1NTlm",flex_box_vertical_center:"flex_box_vertical_center___1RREG",flex_box_center_end:"flex_box_center_end___-OJaq",flex_box_column:"flex_box_column___11ry4",modal:"modal___32KcS",main:"main___3HP_p",title:"title___1Kjif",name:"name___3ysu_",body:"body___33mTT",form:"form___2fckF",btns:"btns___3SmLH"}},vHTk:
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./src/components/PreviewAll/index.less?modules ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,i){t.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},yslc:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/groups3.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45f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