functionsimpleUpload(e,l,n){functiona(e){if(1==u(e)){varn=null;if(null!=b){if(void0==b[e]||null==b[e])returnvoidK(e,{name:"InternalError",message:"There was an error uploading the file"});n=b[e]}elseif(""==l.value)returnvoidK(e,{name:"InternalError",message:"There was an error uploading the file"});returnj.length>0&&!c(j,n)?voidK(e,{name:"InvalidFileExtensionError",message:"That file format is not allowed"}):k.length>0&&!v(k,n)?voidK(e,{name:"InvalidFileTypeError",message:"That file format is not allowed"}):x>0&&!h(x,n)?voidK(e,{name:"MaxFileSizeError",message:"That file is too big"}):void(null!=S&&null!=z?o(e):i(e))}}functiono(e){if(null!=b&&void0!=b[e]&&null!=b[e]&&window.Worker){varl=b[e];if(void0!=l.size&&null!=l.size&&""!=l.size&&y(l.size)&&(l.slice||l.webkitSlice||l.mozSlice))try{varn=newWorker(S);n.addEventListener("error",function(){n.terminate(),R[e].hashWorker=null,i(e)},!1),n.addEventListener("message",function(l){if(l.data.result){vart=l.data.result;n.terminate(),R[e].hashWorker=null,r(e,t)}},!1);vart,a,o,s,p,f;returnf=function(e){n.postMessage({message:e.target.result,block:a})},p=function(){a.end!==l.size&&(a.start+=t,a.end+=t,a.end>l.size&&(a.end=l.size),o=newFileReader,o.onload=f,l.slice?s=l.slice(a.start,a.end):l.webkitSlice?s=l.webkitSlice(a.start,a.end):l.mozSlice&&(s=l.mozSlice(a.start,a.end)),o.readAsArrayBuffer(s))},t=1048576,a={file_size:l.size,start:0},a.end=t>l.size?l.size:t,n.addEventListener("message",p,!1),o=newFileReader,o.onload=f,l.slice?s=l.slice(a.start,a.end):l.webkitSlice?s=l.webkitSlice(a.start,a.end):l.mozSlice&&(s=l.mozSlice(a.start,a.end)),o.readAsArrayBuffer(s),void(R[e].hashWorker=n)}catch(u){}}i(e)}functionr(e,l){if(1==u(e)){varn=!1,t=function(l){return1==u(e)&&(!n&&(n=!0,Y(e,100),G(e,l),!0))},a=function(){return1==u(e)&&(!n&&(n=!0,i(e),!0))},o=function(l){return1==u(e)&&(!n&&(n=!0,K(e,{name:"HashError",message:l}),!0))};z.call(A[e],l,{success:t,proceed:a,error:o})}}functioni(n){if(1==u(n)){if(null!=b){if(void0==b[n]||null==b[n])returnvoidK(n,{name:"InternalError",message:"There was an error uploading the file"});if(window.FormData){vart=$.ajaxSettings.xhr();if(t.upload){vara=b[n],o=newFormData;f(o,F),o.append(C,a);varr={url:e,data:o,type:"post",cache:!1,xhrFields:T,beforeSend:function(e){R[n].xhr=e},xhr:function(){returnt.upload.addEventListener("progress",function(e){e.lengthComputable&&Y(n,e.loaded/e.total*100)},!1),t},error:function(){R[n].xhr=null,K(n,{name:"RequestError",message:"Could not get response from server"})},success:function(e){R[n].xhr=null,Y(n,100),G(n,e)},contentType:!1,processData:!1};return"auto"!=E&&(r.dataType=E),void$.ajax(r)}}}"object"==typeofl&&null!==l?s(n):K(n,{name:"UnsupportedError",message:"Your browser does not support this upload method"})}}functions(l){if(0==l){varn=simpleUpload.queueIframe({origin:g(e),expect:E,complete:function(e){1==u(l)&&(R[l].iframe=null,simpleUpload.dequeueIframe(n),Y(l,100),G(l,e))},error:function(e){1==u(l)&&(R[l].iframe=null,simpleUpload.dequeueIframe(n),K(l,{name:"RequestError",message:e}))}});R[l].iframe=n;vart=p(F);J.attr("action",e+(-1==e.lastIndexOf("?")?"?":"&")+"_iframeUpload="+n+"&_="+(newDate).getTime()).attr("target","simpleUpload_iframe_"+n).prepend(t).submit()}elseK(l,{name:"UnsupportedError",message:"Multiple file uploads not supported"})}functionp(e,l){(void0===l||null===l||""===l)&&(l=null);varn="";for(vartine)void0===e[t]||null===e[t]?n+=$("<div>").append($('<input type="hidden">').attr("name",null==l?t+"":l+"["+t+"]").val("")).html():"object"==typeofe[t]?n+=p(e[t],null==l?t+"":l+"["+t+"]"):"boolean"==typeofe[t]?n+=$("<div>").append($('<input type="hidden">').attr("name",null==l?t+"":l+"["+t+"]").val(e[t]?"true":"false")).html():"number"==typeofe[t]?n+=$("<div>").append($('<input type="hidden">').attr("name",null==l?t+"":l+"["+t+"]").val(e[t]+"")).html():"string"==typeofe[t]&&(n+=$("<div>").append($('<input type="hidden">').attr("name",null==l?t+"":l+"["+t+"]").val(e[t])).html());returnn}functionf(e,l,n){(void0===n||null===n||""===n)&&(n=null);fo
returnnull},G.prototype._scope=function(e){if(e.indexOf(".")>-1){vart=e.split("."),i=t[0];return{name:t[1],scope:i}}returnnull};varJ=function(){functione(e){this.msg="[vee-validate]: "+e}returne.prototype.toString=function(){returnthis.msg},e}(),Y=function(e,t){returne.getAttribute("data-vv-"+t)},Z=function(e){vart=Y(e,"scope");return!t&&e.form&&(t=Y(e.form,"scope")),t},W=function(e,t,i){void0===t&&(t=0);varr;return0==t?e:function(){for(varn=[],o=arguments.length;o--;)n[o]=arguments[o];vara=function(){r=null,i||e.apply(void0,n)},s=i&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e(n)}},K=function(e){console&&console.warn("[vee-validate]: "+e)},H=function(e){returnnull!==e&&e&&"object"==typeofe&&!Array.isArray(e)},Q=function(e){return"function"==typeofe},X=function(e,t){returne.classList?e.classList.contains(t):!!e.className.match(newRegExp("(\\s|^)"+t+"(\\s|$)"))},ee=function(e,t){returne.classList?voide.classList.add(t):void(X(e,t)||(e.className+=" "+t))},te=function(e,t){if(e.classList)returnvoide.classList.remove(t);if(X(e,t)){vari=newRegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(i," ")}},ie=function(e){if(Array.from)returnArray.from(e);for(vart=[],i=e.length,r=0;r<i;r++)t.push(e[r]);returnt},re=function(e){for(vart=[],i=arguments.length-1;i-->0;)t[i]=arguments[i+1];if(Object.assign)returnObject.assign.apply(Object,[e].concat(t));if(null==e)thrownewTypeError("Cannot convert undefined or null to object");varr=Object(e);returnt.forEach(function(e){null!=e&&Object.keys(e).forEach(function(t){r[t]=e[t]})}),r},ne=function(e,t){if(e.find)returne.find(t);vari;returne.some(function(e){return!!t(e)&&(i=e,!0)}),i},oe=function(e,t,i){returne?"string"==typeoft?t:~["string","object"].indexOf(typeoft.rules)?t.rules:t:Y(i,"rules")},ae=function(e){void0===e&&(e={}),this.dictionary={},this.merge(e)};ae.prototype.hasLocale=function(e){return!!this.dictionary[e]},ae.prototype.getMessage=function(e,t,i){returnthis.hasMessage(e,t)?this.dictionary[e].messages[t]:i||this._getDefaultMessage(e)},ae.prototype._getDefaultMessage=function(e){returnthis.hasMessage(e,"_default")?this.dictionary[e].messages._default:this.dictionary.en.messages._default},ae.prototype.getAttribute=function(e,t,i){returnvoid0===i&&(i=""),this.hasAttribute(e,t)?this.dictionary[e].attributes[t]:i},ae.prototype.hasMessage=function(e,t){return!!(this.hasLocale(e)&&this.dictionary[e].messages&&this.dictionary[e].messages[t])},ae.prototype.hasAttribute=function(e,t){return!!(this.hasLocale(e)&&this.dictionary[e].attributes&&this.dictionary[e].attributes[t])},ae.prototype.merge=function(e){this._merge(this.dictionary,e)},ae.prototype.setMessage=function(e,t,i){this.hasLocale(e)||(this.dictionary[e]={messages:{},attributes:{}}),this.dictionary[e].messages[t]=i},ae.prototype.setAttribute=function(e,t,i){this.hasLocale(e)||(this.dictionary[e]={messages:{},attributes:{}}),this.dictionary[e].attributes[t]=i},ae.prototype._merge=function(e,t){vari=this;returnH(e)&&H(t)?(Object.keys(t).forEach(function(r){if(H(t[r])){if(!e[r]){re(e,(n={},n[r]={},n));varn}returnvoidi._merge(e[r],t[r])}re(e,(o={},o[r]=t[r],o));varo}),e):e};varse={_default:function(e){return"The "+e+" value is not valid."},alpha_dash:function(e){return"The "+e+" field may contain alpha-numeric characters as well as dashes and underscores."},alpha_num:function(e){return"The "+e+" field may only contain alpha-numeric characters."},alpha_spaces:function(e){return"The "+e+" field may only contain alphabetic characters as well as spaces."},alpha:function(e){return"The "+e+" field may only contain alphabetic characters."},between:function(e,t){return"The "+e+" field must be between "+t[0]+" and "+t[1]+"."},confirmed:function(e){return"The "+e+" confirmation does not match."},credit_card:function(e){return"The "+e+" field is invalid."},decimal:function(e,t){void0===t&&(t=["*"]);vari=t[0];return"The "+e+" field must be numeric and may contain "+("*"===i?"":i)+" decimal points."},digits:function(e,t){return"The "+e+" field must be numeric and exactly contain "+
"function"==typeofe.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeofe.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){l&&(l.abort(),f(e),l=null)}),void0===p&&(p=null),l.send(p)})}},function(e,t,n){"use strict";varr=n(9);e.exports=function(e,t,n){varo=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n)):e(n)}},function(e,t,n){"use strict";varr=n(10);e.exports=function(e,t,n,o){returnr(newError(e),t,n,o)}},function(e,t){"use strict";e.exports=function(e,t,n,r){returne.config=t,n&&(e.code=n),e.response=r,e}},function(e,t,n){"use strict";functionr(e){returnencodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}varo=n(2);e.exports=function(e,t,n){if(!t)returne;vars;if(n)s=n(t);elseif(o.isURLSearchParams(t))s=t.toString();else{vari=[];o.forEach(t,function(e,t){null!==e&&void0!==e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),s=i.join("&")}returns&&(e+=(e.indexOf("?")===-1?"?":"&")+s),e}},function(e,t,n){"use strict";varr=n(2);e.exports=function(e){vart,n,o,s={};returne?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(s[t]=s[t]?s[t]+", "+n:n)}),s):s}},function(e,t,n){"use strict";varr=n(2);e.exports=r.isStandardBrowserEnv()?function(){functione(e){vart=e;returnn&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}vart,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");returnt=e(window.location.href),function(n){varo=r.isString(n)?e(n):n;returno.protocol===t.protocol&&o.host===t.host}}():function(){returnfunction(){return!0}}()},function(e,t){"use strict";functionn(){this.message="String contains an invalid character"}functionr(e){for(vart,r,s=String(e),i="",a=0,u=o;s.charAt(0|a)||(u="=",a%1);i+=u.charAt(63&t>>8-a%1*8)){if((r=s.charCodeAt(a+=.75))>255)thrownewn;t=t<<8|r}returni}varo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=newError,n.prototype.code=5,n.prototype.name="InvalidCharacterError",e.exports=r},function(e,t,n){"use strict";varr=n(2);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,s,i){vara=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+newDate(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){vart=document.cookie.match(newRegExp("(^|;\\s*)("+e+")=([^;]*)"));returnt?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){returnnull},remove:function(){}}}()},function(e,t,n){"use strict";functionr(){this.handlers=[]}varo=n(2);r.prototype.use=function(e,t){returnthis.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";functionr(e){e.cancelToken&&e.cancelToken.throwIfRequested()}varo=n(2),s=n(18),i=n(19),a=n(5);e.exports=function(e){returnr(e),e.headers=e.headers||{},e.data=s(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){deletee.headers[t]}),(e.adapter||a.adapter)(e)
!n.hasTypes&&e.support.eventSelectstart&&c.on("selectstart.disableTextSelect",f.abortevent)}),n.$node||n.$menu.css("display","none").addClass("context-menu-root"),n.$menu.appendTo(n.appendTo||document.body)},resize:function(t,n){vara;t.css({position:"absolute",display:"block"}),t.data("width",(a=t.get(0)).getBoundingClientRect?Math.ceil(a.getBoundingClientRect().width):t.outerWidth()+1),t.css({position:"static",minWidth:"0px",maxWidth:"100000px"}),t.find("> li > ul").each(function(){h.resize(e(this),!0)}),n||t.find("ul").addBack().css({position:"",display:"",minWidth:"",maxWidth:""}).outerWidth(function(){returne(this).data("width")})},update:function(t,n){vara=this;void0===n&&(n=t,h.resize(t.$menu)),t.$menu.children().each(function(){varo,i=e(this),s=i.data("contextMenuKey"),c=t.items[s],r=e.isFunction(c.disabled)&&c.disabled.call(a,s,n)||c.disabled===!0;if(o=e.isFunction(c.visible)?c.visible.call(a,s,n):void0===c.visible||c.visible===!0,i[o?"show":"hide"](),i[r?"addClass":"removeClass"](n.classNames.disabled),e.isFunction(c.icon)&&(i.removeClass(c._icon),c._icon=c.icon.call(this,a,i,s,c),i.addClass(c._icon)),c.type)switch(i.find("input, select, textarea").prop("disabled",r),c.type){case"text":case"textarea":c.$input.val(c.value||"");break;case"checkbox":case"radio":c.$input.val(c.value||"").prop("checked",!!c.selected);break;case"select":c.$input.val(c.selected||"")}c.$menu&&h.update.call(a,c,n)})},layer:function(t,n){vara=t.$layer=e('<div id="context-menu-layer"></div>').css({height:s.height(),width:s.width(),display:"block",position:"fixed","z-index":n,top:0,left:0,opacity:0,filter:"alpha(opacity=0)","background-color":"#000"}).data("contextMenuRoot",t).insertBefore(this).on("contextmenu",f.abortevent).on("mousedown",f.layerClick);returnvoid0===document.body.style.maxWidth&&a.css({position:"absolute",height:e(document).height()}),a},processPromises:function(e,t,n){functiona(e,t,n){void0===n&&o(void0),i(e,t,n)}functiono(e,t,n){void0===n?(n={error:{name:"No items and no error item",icon:"context-menu-icon context-menu-icon-quit"}},window.console&&(console.error||console.log).call(console,'When you reject a promise, provide an "items" object, equal to normal sub-menu items')):"string"==typeofn&&(n={error:{name:n}}),i(e,t,n)}functioni(e,t,n){void0!==t.$menu&&t.$menu.is(":visible")&&(e.$node.removeClass(t.classNames.iconLoadingClass),e.items=n,h.create(e,t,!0),h.update(e,t),t.positionSubmenu.call(e.$node,e.$menu))}e.$node.addClass(t.classNames.iconLoadingClass),n.then(a.bind(this,e,t),o.bind(this,e,t))}};e.fn.contextMenu=function(t){varn=this,a=t;if(this.length>0)if(void0===t)this.first().trigger("contextmenu");elseif(void0!==t.x&&void0!==t.y)this.first().trigger(e.Event("contextmenu",{pageX:t.x,pageY:t.y,mouseButton:t.button}));elseif("hide"===t){varo=this.first().data("contextMenu")?this.first().data("contextMenu").$menu:null;o&&o.trigger("contextmenu:hide")}else"destroy"===t?e.contextMenu("destroy",{context:this}):e.isPlainObject(t)?(t.context=this,e.contextMenu("create",t)):t?this.removeClass("context-menu-disabled"):t||this.addClass("context-menu-disabled");elsee.each(l,function(){this.selector===n.selector&&(a.data=this,e.extend(a.data,{trigger:"demand"}))}),f.contextmenu.call(a.target,a);returnthis},e.contextMenu=function(t,n){"string"!=typeoft&&(n=t,t="create"),"string"==typeofn?n={selector:n}:void0===n&&(n={});vara=e.extend(!0,{},d,n||{}),o=e(document),s=o,u=!1;switch(a.context&&a.context.length?(s=e(a.context).first(),a.context=s.get(0),u=!e(a.context).is(document)):a.context=document,t){case"create":if(!a.selector)thrownewError("No selector specified");if(a.selector.match(/.context-menu-(list|item|input)($|\s)/))thrownewError('Cannot bind to selector "'+a.selector+'" as it contains a reserved className');if(!a.build&&(!a.items||e.isEmptyObject(a.items)))thrownewError("No Items specified");if(c++,a.ns=".contextMenu"+c,u||(r[a.selector]=a.ns),l[a.ns]=a,a.trigger||(a.trigger="right"),!i){varm="click"===a.itemClickEvent?"click.contextMenu":"mouseup.contextMenu",p={"contextmenu:
this[t+1]=255&e):H(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){returne=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):W(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){returne=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return_(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return_(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){returnF(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){returnF(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&n>r&&(r=n),r===n)return0;if(0===e.length||0===this.length)return0;if(0>t)thrownewRangeError("targetStart out of bounds");if(0>n||n>=this.length)thrownewRangeError("sourceStart out of bounds");if(0>r)thrownewRangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);vari,o=r-n;if(this===e&&t>n&&r>t)for(i=o-1;i>=0;i--)e[i+t]=this[i+n];elseif(1e3>o||!a.TYPED_ARRAY_SUPPORT)for(i=0;o>i;i++)e[i+t]=this[i+n];elseUint8Array.prototype.set.call(e,this.subarray(n,n+o),t);returno},a.prototype.fill=function(e,t,n,r){if("string"==typeofe){if("string"==typeoft?(r=t,t=0,n=this.length):"string"==typeofn&&(r=n,n=this.length),1===e.length){vari=e.charCodeAt(0);256>i&&(e=i)}if(void0!==r&&"string"!=typeofr)thrownewTypeError("encoding must be a string");if("string"==typeofr&&!a.isEncoding(r))thrownewTypeError("Unknown encoding: "+r)}else"number"==typeofe&&(e&=255);if(0>t||this.length<t||this.length<n)thrownewRangeError("Out of range index");if(t>=n)returnthis;t>>>=0,n=void0===n?this.length:n>>>0,e||(e=0);varo;if("number"==typeofe)for(o=t;n>o;o++)this[o]=e;else{varl=a.isBuffer(e)?e:q(newa(e,r).toString()),s=l.length;for(o=0;n-t>o;o++)this[o+t]=l[o%s]}returnthis};varee=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"base64-js":1,ieee754:15,isarray:16}],4:[function(e,t,n){"use strict";functionr(e){returne=e||{},"function"!=typeofe.codeMirrorInstance||"function"!=typeofe.codeMirrorInstance.defineMode?voidconsole.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`"):(String.prototype.includes||(String.prototype.includes=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),voide.codeMirrorInstance.defineMode("spell-checker",function(t){if(!r.aff_loading){r.aff_loading=!0;varn=newXMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),n.onload=function(){4===n.readyState&&200===n.status&&(r.aff_data=n.responseText,2==++r.num_loaded&&(r.typo=newi("en_US",r.aff_data,r.dic_data,{platform:"any"})))},n.send(null)}if(!r.dic_loading){r.dic_loading=!0;varo=newXMLHttpRequest;o.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),o.onload=function(){4===o.readyState&&200===o.status&&(r.dic_data=o.responseText,2==++r.num_loaded&&(r.typo=newi("en_US",r.aff_data,r.dic_data,{platform:"any"})))},o.send(null)}vara='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',l={token:function(e){vart=e.peek(),n="";if(a.includes(t))returne.next(),null;for(;null!=(t=e.peek())&&!a.includes(t);)n+=t,e.next();returnr.typo&&!r.typo.check(n)?"spell-error":null}},s=e.codeMirrorInstance.getMode(t,t.backdrop||"text/plain");returne.codeMirrorInstance.overlayMode(s,l,!0)}))}vari=e("typo-js");r.num_loaded=0,r.aff_loading=!1,r.dic_loading=!1,r.aff_data="",r.dic_data="",r.typo,t.exports=r},{"typo-js":18}],5:[function(t,n,r){!function(i){"object"==typeofr&&"object"==typeofn?i(t("../../lib/codemirror")):"function"==typeofe&&e.amd?e(["../../lib/codemirror"],i):i(CodeMirror)}(function(e){"use strict";functiont(e){vart=e.getWrapperElement
if(e.widgets)for(vart=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Ht(r,i,"widget");break}++i}),r.curOp.forceUpdate=!0,Pa(r,"refresh",this)}),operation:function(e){returnAt(this,e)},refresh:Ot(function(){vare=this.display.cachedTextHeight;Dt(this),this.curOp.forceUpdate=!0,lt(this),this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop),u(this),(null==e||Math.abs(e-yt(this.display))>.5)&&a(this),Pa(this,"refresh",this)}),swapDoc:Ot(function(e){vart=this.doc;returnt.cm=null,Xr(this,e),lt(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Ci(this,"swapDoc",this,t),t}),getInputField:function(){returnthis.display.input.getField()},getWrapperElement:function(){returnthis.display.wrapper},getScrollerElement:function(){returnthis.display.scroller},getGutterElement:function(){returnthis.display.gutters}},Ai(e);varea=e.defaults={},ta=e.optionHandlers={},na=e.Init={toString:function(){return"CodeMirror.Init"}};Gn("value","",function(e,t){e.setValue(t)},!0),Gn("mode",null,function(e,t){e.doc.modeOption=t,n(e)},!0),Gn("indentUnit",2,n,!0),Gn("indentWithTabs",!1),Gn("smartIndent",!0),Gn("tabSize",4,function(e){r(e),lt(e),Dt(e)},!0),Gn("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){varn=[],r=e.doc.first;e.doc.iter(function(e){for(vari=0;;){varo=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(Bo(r,o))}r++});for(vari=n.length-1;i>=0;i--)In(e.doc,t,n[i],Bo(n[i].line,n[i].ch+t.length))}}),Gn("specialChars",/[\u0000-\u001f\u007f\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,n,r){t.state.specialChars=newRegExp(n.source+(n.test("\t")?"":"|\t"),"g"),r!=e.Init&&t.refresh()}),Gn("specialCharPlaceholder",_r,function(e){e.refresh()},!0),Gn("electricChars",!0),Gn("inputStyle",Ao?"contenteditable":"textarea",function(){thrownewError("inputStyle can not (yet) be changed in a running editor")},!0),Gn("rtlMoveVisually",!Io),Gn("wholeLineUpdateBefore",!0),Gn("theme","default",function(e){l(e),s(e)},!0),Gn("keyMap","default",function(t,n,r){vari=$n(n),o=r!=e.Init&&$n(r);o&&o.detach&&o.detach(t,i),i.attach&&i.attach(t,o||null)}),Gn("extraKeys",null),Gn("lineWrapping",!1,i,!0),Gn("gutters",[],function(e){d(e.options),s(e)},!0),Gn("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?C(e.display)+"px":"0",e.refresh()},!0),Gn("coverGutterNextToScrollbar",!1,function(e){y(e)},!0),Gn("scrollbarStyle","native",function(e){v(e),y(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),Gn("lineNumbers",!1,function(e){d(e.options),s(e)},!0),Gn("firstLineNumber",1,s,!0),Gn("lineNumberFormatter",function(e){returne},s,!0),Gn("showCursorWhenSelecting",!1,Re,!0),Gn("resetSelectionOnContextMenu",!0),Gn("lineWiseCopyCut",!0),Gn("readOnly",!1,function(e,t){"nocursor"==t?(yn(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),Gn("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),Gn("dragDrop",!0,Ut),Gn("allowDropFileTypes",null),Gn("cursorBlinkRate",530),Gn("cursorScrollMargin",0),Gn("cursorHeight",1,Re,!0),Gn("singleCursorHeightPerLine",!0,Re,!0),Gn("workTime",100),Gn("workDelay",100),Gn("flattenSpans",!0,r,!0),Gn("addModeClass",!1,r,!0),Gn("pollInterval",100),Gn("undoDepth",200,function(e,t){e.doc.history.undoDepth=t}),Gn("historyEventDelay",1250),Gn("viewportMargin",10,function(e){e.refresh()},!0),Gn("maxHighlightLength",1e4,r,!0),Gn("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),Gn("tabindex",null,function(e,t){e.display.input.getField().tabIndex=t||""}),Gn("autofocus",null);varra=e.modes={},ia=e.mimeModes={};e.defineMode=function(t,n){e.defaults.mode||"null"==t||(e.defaults.mode=t),arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),ra[t]=n},e.defineMIME=function(e,t){ia[e]=t},e.resolveMode=function(t){if("string"==typeoft&&ia.hasOwnProperty(t))t=ia[t];elseif(t&&"string"==typeoft.name&&ia.hasOwnProperty(t.name)){varn=ia[t.name];"string"==typeofn&&(n={name:n}),t=Hi(n,t),t.name=n.name}
varr=e.modeInfo[n];if(r.name.toLowerCase()==t)returnr;if(r.alias)for(vari=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)returnr}}})},{"../lib/codemirror":10}],14:[function(t,n,r){!function(i){"object"==typeofr&&"object"==typeofn?i(t("../../lib/codemirror")):"function"==typeofe&&e.amd?e(["../../lib/codemirror"],i):i(CodeMirror)}(function(e){"use strict";vart={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},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};e.defineMode("xml",function(r,i){functiono(e,t){functionn(n){returnt.tokenize=n,n(e,t)}varr=e.next();if("<"==r)returne.eat("!")?e.eat("[")?e.match("CDATA[")?n(s("atom","]]>")):null:e.match("--")?n(s("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=s("meta","?>"),"meta"):(T=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){vari;returni=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),i?"atom":"error"}returne.eatWhile(/[^&<]/),null}functiona(e,t){varn=e.next();if(">"==n||"/"==n&&e.eat(">"))returnt.tokenize=o,T=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)returnT="equals",null;if("<"==n){t.tokenize=o,t.state=d,t.tagName=t.tagStart=null;varr=t.tokenize(e,t);returnr?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=l(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}functionl(e){vart=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};returnt.isInAttribute=!0,t}functions(e,t){returnfunction(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=o;break}n.next()}returne}}functionc(e){returnfunction(t,n){for(varr;null!=(r=t.next());){if("<"==r)returnn.tokenize=c(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=o;break}returnn.tokenize=c(e-1),n.tokenize(t,n)}}return"meta"}}functionu(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(S.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}functionf(e){e.context&&(e.context=e.context.prev)}functionh(e,t){for(varn;;){if(!e.context)return;if(n=e.context.tagName,!S.contextGrabbers.hasOwnProperty(n)||!S.contextGrabbers[n].hasOwnProperty(t))return;f(e)}}functiond(e,t,n){return"openTag"==e?(n.tagStart=t.column(),p):"closeTag"==e?m:d}functionp(e,t,n){return"word"==e?(n.tagName=t.current(),M="tag",y):(M="error",p)}functionm(e,t,n){if("word"==e){varr=t.current();returnn.context&&n.context.tagName!=r&&S.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==r||S.matchClosing===!1?(M="tag",g):(M="tag error",v)}returnM="error",v}functiong(e,t,n){return"endTag"!=e?(M="error",g):(f(n),d)}functionv(e,t,n){returnM="error",g(e,t,n)}functiony(e,t,n){if("word"==e)returnM="attribute",x;if("endTag"==e||"selfcloseTag"==e){varr=n.tagName,i=n.tagStart;returnn.tagName=n.tagStart=null,"selfcloseTag"==e||S.autoSelfClosers.hasOwnProperty(r)?h(n,r):(h(n,r),n.context=newu(n,r,i==n.indented)),d}returnM="error",y}functionx(e,t,n){return"equals"==e?b:(S.allowMissing||(M="error"),y(e,t,n))}function
;vari=t.getWrapperElement().nextSibling;/editor-preview-active-side/.test(i.className)&&N(e)}functionc(e){P(e,"bold",e.options.blockStyles.bold)}functionu(e){P(e,"italic",e.options.blockStyles.italic)}functionf(e){P(e,"strikethrough","~~")}functionh(e){functiont(e){if("object"!=typeofe)throw"fencing_line() takes a 'line' object (not a line number, or line text). Got: "+typeofe+": "+e;returne.styles&&e.styles[2]&&-1!==e.styles[2].indexOf("formatting-code-block")}functionn(e){returne.state.base.base||e.state.base}functionr(e,r,i,o,a){i=i||e.getLineHandle(r),o=o||e.getTokenAt({line:r,ch:1}),a=a||!!i.text&&e.getTokenAt({line:r,ch:i.text.length-1});varl=o.type?o.type.split(" "):[];returna&&n(a).indentedCode?"indented":-1!==l.indexOf("comment")&&(n(o).fencedChars||n(a).fencedChars||t(i)?"fenced":"single")}varo,a,l,s=e.options.blockStyles.code,c=e.codemirror,u=c.getCursor("start"),f=c.getCursor("end"),h=c.getTokenAt({line:u.line,ch:u.ch||1}),d=c.getLineHandle(u.line),p=r(c,u.line,d,h);if("single"===p){varm=d.text.slice(0,u.ch).replace("`",""),g=d.text.slice(u.ch).replace("`","");c.replaceRange(m+g,{line:u.line,ch:0},{line:u.line,ch:99999999999999}),u.ch--,u!==f&&f.ch--,c.setSelection(u,f),c.focus()}elseif("fenced"===p)if(u.line!==f.line||u.ch!==f.ch){for(o=u.line;o>=0&&(d=c.getLineHandle(o),!t(d));o--);varv,y,x,b,w=c.getTokenAt({line:o,ch:1}),k=n(w).fencedChars;t(c.getLineHandle(u.line))?(v="",y=u.line):t(c.getLineHandle(u.line-1))?(v="",y=u.line-1):(v=k+"\n",y=u.line),t(c.getLineHandle(f.line))?(x="",b=f.line,0===f.ch&&(b+=1)):0!==f.ch&&t(c.getLineHandle(f.line+1))?(x="",b=f.line+1):(x=k+"\n",b=f.line+1),0===f.ch&&(b-=1),c.operation(function(){c.replaceRange(x,{line:b,ch:0},{line:b+(x?0:1),ch:0}),c.replaceRange(v,{line:y,ch:0},{line:y+(v?0:1),ch:0})}),c.setSelection({line:y+(v?1:0),ch:0},{line:b+(v?1:-1),ch:0}),c.focus()}else{varS=u.line;if(t(c.getLineHandle(u.line))&&("fenced"===r(c,u.line+1)?(o=u.line,S=u.line+1):(a=u.line,S=u.line-1)),void0===o)for(o=S;o>=0&&(d=c.getLineHandle(o),!t(d));o--);if(void0===a)for(l=c.lineCount(),a=S;l>a&&(d=c.getLineHandle(a),!t(d));a++);c.operation(function(){c.replaceRange("",{line:o,ch:0},{line:o+1,ch:0}),c.replaceRange("",{line:a-1,ch:0},{line:a,ch:0})}),c.focus()}elseif("indented"===p){if(u.line!==f.line||u.ch!==f.ch)o=u.line,a=f.line,0===f.ch&&a--;else{for(o=u.line;o>=0;o--)if(d=c.getLineHandle(o),!d.text.match(/^\s*$/)&&"indented"!==r(c,o,d)){o+=1;break}for(l=c.lineCount(),a=u.line;l>a;a++)if(d=c.getLineHandle(a),!d.text.match(/^\s*$/)&&"indented"!==r(c,a,d)){a-=1;break}}varC=c.getLineHandle(a+1),L=C&&c.getTokenAt({line:a+1,ch:C.text.length-1}),T=L&&n(L).indentedCode;T&&c.replaceRange("\n",{line:a+1,ch:0});for(varM=o;a>=M;M++)c.indentLine(M,"subtract");c.focus()}else{varN=u.line===f.line&&u.ch===f.ch&&0===u.ch,A=u.line!==f.line;N||A?function(e,t,n,r){vari=t.line+1,o=n.line+1,a=t.line!==n.line,l=r+"\n",s="\n"+r;a&&o++,a&&0===n.ch&&(s=r+"\n",o--),E(e,!1,[l,s]),e.setSelection({line:i,ch:0},{line:o,ch:0})}(c,u,f,s):E(c,!1,["`","`"])}}functiond(e){I(e.codemirror,"quote")}functionp(e){O(e.codemirror,"smaller")}functionm(e){O(e.codemirror,"bigger")}functiong(e){O(e.codemirror,void0,1)}functionv(e){O(e.codemirror,void0,2)}functiony(e){O(e.codemirror,void0,3)}functionx(e){I(e.codemirror,"unordered-list")}functionb(e){I(e.codemirror,"ordered-list")}functionw(e){R(e.codemirror)}functionk(e){vart=e.codemirror,n=l(t),r=e.options,i="http://";return!(r.promptURLs&&!(i=prompt(r.promptTexts.link)))&&voidE(t,n.link,r.insertTexts.link,i)}functionS(e){vart=e.codemirror,n=l(t),r=e.options,i="http://";return!(r.promptURLs&&!(i=prompt(r.promptTexts.image)))&&voidE(t,n.image,r.insertTexts.image,i)}functionC(e){vart=e.codemirror,n=l(t),r=e.options;E(t,n.table,r.insertTexts.table)}functionL(e){vart=e.codemirror,n=l(t),r=e.options;E(t,n.image,r.insertTexts.horizontalRule)}functionT(e){vart=e.codemirror;t.undo(),t.focus()}functionM(e){vart=e.codemirror;t.redo(),t.focus()}functionN(e){vart=e.codemirror,n=t.getWrapperElement(),r=n.nextSibling,i=e.toolbarElements[
;if("[object Function]"!=a(t))thrownewTypeError(t+" is not a function");for(varf=0;f<i;f++)finr&&(o=r[f],t.call(u,o,f,n)&&s.push(o));returns}),Array.prototype.every||(Array.prototype.every=function(t){varn=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=r.length>>>0,s=arguments[1];if("[object Function]"!=a(t))thrownewTypeError(t+" is not a function");for(varo=0;o<i;o++)if(oinr&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){varn=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=r.length>>>0,s=arguments[1];if("[object Function]"!=a(t))thrownewTypeError(t+" is not a function");for(varo=0;o<i;o++)if(oinr&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){varn=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=r.length>>>0;if("[object Function]"!=a(t))thrownewTypeError(t+" is not a function");if(!i&&1==arguments.length)thrownewTypeError("reduce of empty array with no initial value");varo,s=0;if(arguments.length>=2)o=arguments[1];elsefor(;;){if(sinr){o=r[s++];break}if(++s>=i)thrownewTypeError("reduce of empty array with no initial value")}for(;s<i;s++)sinr&&(o=t.call(void0,o,r[s],s,n));returno}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){varn=F(this),r=g&&"[object String]"==a(this)?this.split(""):n,i=r.length>>>0;if("[object Function]"!=a(t))thrownewTypeError(t+" is not a function");if(!i&&1==arguments.length)thrownewTypeError("reduceRight of empty array with no initial value");vars,o=i-1;if(arguments.length>=2)s=arguments[1];elsefor(;;){if(oinr){s=r[o--];break}if(--o<0)thrownewTypeError("reduceRight of empty array with no initial value")}do{ointhis&&(s=t.call(void0,s,r[o],o,n))}while(o--);returns}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(t){varn=g&&"[object String]"==a(this)?this.split(""):F(this),r=n.length>>>0;if(!r)return-1;vari=0;for(arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);i<r;i++)if(iinn&&n[i]===t)returni;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(t){varn=g&&"[object String]"==a(this)?this.split(""):F(this),r=n.length>>>0;if(!r)return-1;vari=r-1;for(arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);i>=0;i--)if(iinn&&t===n[i])returni;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(t){returnt.__proto__||(t.constructor?t.constructor.prototype:o)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(t,n){if("object"!=typeoft&&"function"!=typeoft||null===t)thrownewTypeError("Object.getOwnPropertyDescriptor called on a non-object: "+t);if(f(t,n)){varr,i,s;if(r={enumerable:!0,configurable:!0},d){varu=t.__proto__;t.__proto__=o;vari=h(t,n),s=p(t,n);if(t.__proto__=u,i||s)returni&&(r.get=i),s&&(r.set=s),r}returnr.value=t[n],r}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){returnObject.keys(t)}),!Object.create){varb;b=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){vare={};for(vartine)e[t]=null;returne.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){varr;if(null===t)r=b();else{if("object"!=typeoft)thrownewTypeError("typeof prototype["+typeoft+"] != 'object'");vari=function(){};i.prototype=t,r=newi,r.__proto__=t}returnvoid0!==n&&Object.defineProperties(r,n),r}}if(Object.defineProperty){varE=w({}),S="undefined"==typeofdocument||w(document.createElement("div"));if(!E||!S)varx=Object.defineProperty}if(!Object.defineProperty||x){Object.defineProperty=function(t,n,r){if("object"!=typeoft&&"function"!=typeoft||null===t)thrownewTypeError("Object.defineProperty called on non-object: "+t);if("object"!=typeofr&&"function"!=typeofr||null===r)thrownewTypeError("Property description must be an object: "+r);if(x)try{returnx.call(Object,t,n,r)}cat
;varr=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,s=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;varn=this;this.$worker=function(){if(n.running){for(vare=newDate,t=n.currentLine,r=-1,i=n.doc,s=t;n.lines[t];)t++;varo=i.getLength(),u=0;for(n.running=!1;t<o;){n.$tokenizeRow(t),r=t;do{t++}while(n.lines[t]);if(++u%5==0&&newDate-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,s<=r&&n.fireUpdateEvent(s,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){varn={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){vart=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;elseif("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{varr=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){returnthis.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){returnthis.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){vart=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);returnthis.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(s.prototype),t.BackgroundTokenizer=s}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,n){"use strict";varr=e("./lib/lang"),s=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,i){if(this.regExp)for(varo=i.firstRow,u=i.lastRow,a=o;a<=u;a++){varf=this.cache[a];null==f&&(f=r.getMatchOffsets(n.getLine(a),this.regExp),f.length>this.MAX_RANGES&&(f=f.slice(0,this.MAX_RANGES)),f=f.map(function(e){returnnews(a,e.offset,a,e.offset+e.length)}),this.cache[a]=f.length?f:"");for(varl=f.length;l--;)t.drawSingleLineMarker(e,f[l].toScreenRange(n),this.clazz,i)}}}).call(o.prototype),t.SearchHighlight=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,n){"use strict";functioni(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];varn=t[t.length-1];this.range=newr(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}varr=e("../range").Range;(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)thrownewError("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}elseif(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{
;if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=newa),this.$modes[r]&&!n)returnthis.$onChangeMode(this.$modes[r]),void(t&&t());this.$modeId=r,s.loadModule(["mode",r],function(e){if(this.$modeId!==r)returnt&&t();this.$modes[r]&&!n?this.$onChangeMode(this.$modes[r]):e&&e.Mode&&(e=newe.Mode(n),n||(this.$modes[r]=e,e.$id=r),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();varn=e.getTokenizer();if(void0!==n.addEventListener){varr=this.onReloadTokenizer.bind(this);n.addEventListener("update",r)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=newc(n);vari=this;this.bgTokenizer.addEventListener("update",function(e){i._signal("tokenizerUpdate",e)})}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){returnthis.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){returnthis.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){returnthis.$scrollLeft},this.getScreenWidth=function(){returnthis.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)returnthis.lineWidgetsWidth;vare=0;returnthis.lineWidgets.forEach(function(t){t&&t.screenWidth>e&&(e=t.screenWidth)}),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)returnthis.screenWidth=this.$wrapLimit;for(vart=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,s=this.$foldData[i],o=s?s.start.row:1/0,u=t.length,a=0;a<u;a++){if(a>o){if((a=s.end.row+1)>=u)break;s=this.$foldData[i++],o=s?s.start.row:1/0}null==n[a]&&(n[a]=this.$getStringScreenWidth(t[a])[0]),n[a]>r&&(r=n[a])}this.screenWidth=r}},this.getLine=function(e){returnthis.doc.getLine(e)},this.getLines=function(e,t){returnthis.doc.getLines(e,t)},this.getLength=function(){returnthis.doc.getLength()},this.getTextRange=function(e){returnthis.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){returnthis.doc.insert(e,t)},this.remove=function(e){returnthis.doc.remove(e)},this.removeFullLines=function(e,t){returnthis.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(varn=null,r=e.length-1;r!=-1;r--){vari=e[r];"doc"==i.group?(this.doc.revertDeltas(i.deltas),n=this.$getUndoSelection(i.deltas,!0,n)):i.deltas.forEach(function(e){this.addFolds(e.folds)},this)}returnthis.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(varn=null,r=0;r<e.length;r++){vari=e[r];"doc"==i.group&&(this.doc.applyDeltas(i.deltas),n=this.$getUndoSelection(i.deltas,!1,n))}returnthis.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,n){functionr(e){returnt?"insert"!==e.action:"insert"===e.action}vars,o,i=e[0];s=r(i)?f.fromPoints(i.start,i.end):f.fromPoints(i.start,i.start);for(vara=1;a<e.length;a++)i=e[a],r(i)?(o=i.start,s.compare(o.row,o.column)==-1&&s.setStart(o),o=i.end,1==s.compare(o.row,o.column)&&s.setEnd(o),!0