🆙 Added fixed cms

This commit is contained in:
Remco committed 2026-01-07 19:32:43 +01:00
1 parent fdb0dc276d
commit 711fa2c29e
3992 files changed
+183381

No files matched your search

@@ -0,0 +1,960 @@
var Re=Object.create;var be=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var $e=(x,k)=>()=>(k||x((k={exports:{}}).exports,k),k.exports);var Oe=(x,k,H,R)=>{if(k&&typeof k=="object"||typeof k=="function")for(let M of Ee(k))!Ie.call(x,M)&&M!==H&&be(x,M,{get:()=>k[M],enumerable:!(R=Te(k,M))||R.enumerable});return x};var Ce=(x,k,H)=>(H=x!=null?Re(_e(x)):{},Oe(k||!x||!x.__esModule?be(H,"default",{value:x,enumerable:!0}):H,x));var Ae=$e((Se,ve)=>{(function(){var x="ace",k=function(){return this}();if(!k&&typeof window<"u"&&(k=window),!x&&typeof requirejs<"u")return;var H=function(t,n,r){if(typeof t!="string"){H.original?H.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(r=n),H.modules[t]||(H.payloads[t]=r,H.modules[t]=null)};H.modules={},H.payloads={};var R=function(t,n,r){if(typeof n=="string"){var e=a(t,n);if(e!=null)return r&&r(),e}else if(Object.prototype.toString.call(n)==="[object Array]"){for(var i=[],o=0,s=n.length;o<s;++o){var c=a(t,n[o]);if(c==null&&M.original)return;i.push(c)}return r&&r.apply(null,i)||!0}},M=function(t,n){var r=R("",t,n);return r==null&&M.original?M.original.apply(this,arguments):r},S=function(t,n){if(n.indexOf("!")!==-1){var r=n.split("!");return S(t,r[0])+"!"+S(t,r[1])}if(n.charAt(0)=="."){var e=t.split("/").slice(0,-1).join("/");for(n=e+"/"+n;n.indexOf(".")!==-1&&i!=n;){var i=n;n=n.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return n},a=function(t,n){n=S(t,n);var r=H.modules[n];if(!r){if(r=H.payloads[n],typeof r=="function"){var e={},i={id:n,uri:"",exports:e,packaged:!0},o=function(c,g){return R(n,c,g)},s=r(o,e,i);e=s||i.exports,H.modules[n]=e,delete H.payloads[n]}r=H.modules[n]=e||r}return r};function l(t){var n=k;t&&(k[t]||(k[t]={}),n=k[t]),(!n.define||!n.define.packaged)&&(H.original=n.define,n.define=H,n.define.packaged=!0),(!n.require||!n.require.packaged)&&(M.original=n.require,n.require=M,n.require.packaged=!0)}l(x)})();ace.define("ace/lib/es6-shim",["require","exports","module"],function(x,k,H){function R(M,S,a){Object.defineProperty(M,S,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||R(String.prototype,"startsWith",function(M,S){return S=S||0,this.lastIndexOf(M,S)===S}),String.prototype.endsWith||R(String.prototype,"endsWith",function(M,S){var a=this;(S===void 0||S>a.length)&&(S=a.length),S-=M.length;var l=a.indexOf(M,S);return l!==-1&&l===S}),String.prototype.repeat||R(String.prototype,"repeat",function(M){for(var S="",a=this;M>0;)M&1&&(S+=a),(M>>=1)&&(a+=a);return S}),String.prototype.includes||R(String.prototype,"includes",function(M,S){return this.indexOf(M,S)!=-1}),Object.assign||(Object.assign=function(M){if(M==null)throw new TypeError("Cannot convert undefined or null to object");for(var S=Object(M),a=1;a<arguments.length;a++){var l=arguments[a];l!=null&&Object.keys(l).forEach(function(t){S[t]=l[t]})}return S}),Object.values||(Object.values=function(M){return Object.keys(M).map(function(S){return M[S]})}),Array.prototype.find||R(Array.prototype,"find",function(M){for(var S=this.length,a=arguments[1],l=0;l<S;l++){var t=this[l];if(M.call(a,t,l,this))return t}}),Array.prototype.findIndex||R(Array.prototype,"findIndex",function(M){for(var S=this.length,a=arguments[1],l=0;l<S;l++){var t=this[l];if(M.call(a,t,l,this))return l}}),Array.prototype.includes||R(Array.prototype,"includes",function(M,S){return this.indexOf(M,S)!=-1}),Array.prototype.fill||R(Array.prototype,"fill",function(M){for(var S=this,a=S.length>>>0,l=arguments[1],t=l>>0,n=t<0?Math.max(a+t,0):Math.min(t,a),r=arguments[2],e=r===void 0?a:r>>0,i=e<0?Math.max(a+e,0):Math.min(e,a);n<i;)S[n]=M,n++;return S}),Array.of||R(Array,"of",function(){return Array.prototype.slice.call(arguments)})});ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(x,k,H){"use strict";x("./es6-shim")});ace.define("ace/lib/lang",["require","exports","module"],function(x,k,H){"use strict";k.last=function(S){return S[S.length-1]},k.stringReverse=function(S){return S.split("").reverse().join("")},k.stringRepeat=function(S,a){for(var l="";a>0;)a&1&&(l+=S),(a>>=1)&&(S+=S);return l};var R=/^\s\s*/,M=/\s\s*$/;k.stringTrimLeft=function(S){return S.replace(R,"")},k.stringTrimRight=function(S){return S.replace(M,"")},k.copyObject=function(S){var a={};for(var l in S)a[l]=S[l];return a},k.copyArray=function(S){for(var a=[],l=0,t=S.length;l<t;l++)S[l]&&typeof S[l]=="object"?a[l]=this.copyObject(S[l]):a[l]=S[l];return a},k.deepCopy=function S(a){if(typeof a!="object"||!a)return a;var l;if(Array.isArray(a)){l=[];for(var t=0;t<a.length;t++)l[t]=S(a[t]);return l}if(Object.prototype.toString.call(a)!=="[object Object]")return a;l={};for(var t in a)l[t]=S(a[t]);return l},k.arrayToMap=function(S){for(var a={},l=0;l<S.length;l++)a[S[l]]=1;return a},k.createMap=function(S)Line truncated
/*# sourceURL=ace/css/`+e+" */");var c=k.createElement("style");c.appendChild(s.createTextNode(r)),e&&(c.id=e),o==s&&(o=k.getDocumentHead(s)),o.insertBefore(c,o.firstChild)}}}if(k.importCssString=t,k.importCssStylsheet=function(r,e){k.buildDom(["link",{rel:"stylesheet",href:r}],k.getDocumentHead(e))},k.scrollbarWidth=function(r){var e=k.createElement("ace_inner");e.style.width="100%",e.style.minWidth="0px",e.style.height="200px",e.style.display="block";var i=k.createElement("ace_outer"),o=i.style;o.position="absolute",o.left="-10000px",o.overflow="hidden",o.width="200px",o.minWidth="0px",o.height="150px",o.display="block",i.appendChild(e);var s=r&&r.documentElement||document&&document.documentElement;if(!s)return 0;s.appendChild(i);var c=e.offsetWidth;o.overflow="scroll";var g=e.offsetWidth;return c===g&&(g=i.clientWidth),s.removeChild(i),c-g},k.computedStyle=function(r,e){return window.getComputedStyle(r,"")||{}},k.setStyle=function(r,e,i){r[e]!==i&&(r[e]=i)},k.HAS_CSS_ANIMATION=!1,k.HAS_CSS_TRANSFORMS=!1,k.HI_DPI=R.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,R.isChromeOS&&(k.HI_DPI=!1),typeof document<"u"){var n=document.createElement("div");k.HI_DPI&&n.style.transform!==void 0&&(k.HAS_CSS_TRANSFORMS=!0),!R.isEdge&&typeof n.style.animationName<"u"&&(k.HAS_CSS_ANIMATION=!0),n=null}k.HAS_CSS_TRANSFORMS?k.translate=function(r,e,i){r.style.transform="translate("+Math.round(e)+"px, "+Math.round(i)+"px)"}:k.translate=function(r,e,i){r.style.top=Math.round(i)+"px",r.style.left=Math.round(e)+"px"}});ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(x,k,H){"use strict";var R=x("./dom");k.get=function(M,S){var a=new XMLHttpRequest;a.open("GET",M,!0),a.onreadystatechange=function(){a.readyState===4&&S(a.responseText)},a.send(null)},k.loadScript=function(M,S){var a=R.getDocumentHead(),l=document.createElement("script");l.src=M,a.appendChild(l),l.onload=l.onreadystatechange=function(t,n){(n||!l.readyState||l.readyState=="loaded"||l.readyState=="complete")&&(l=l.onload=l.onreadystatechange=null,n||S())}},k.qualifyURL=function(M){var S=document.createElement("a");return S.href=M,S.href}});ace.define("ace/lib/oop",["require","exports","module"],function(x,k,H){"use strict";k.inherits=function(R,M){R.super_=M,R.prototype=Object.create(M.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}})},k.mixin=function(R,M){for(var S in M)R[S]=M[S];return R},k.implement=function(R,M){k.mixin(R,M)}});ace.define("ace/lib/event_emitter",["require","exports","module"],function(x,k,H){"use strict";var R={},M=function(){this.propagationStopped=!0},S=function(){this.defaultPrevented=!0};R._emit=R._dispatchEvent=function(a,l){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var t=this._eventRegistry[a]||[],n=this._defaultHandlers[a];if(!(!t.length&&!n)){(typeof l!="object"||!l)&&(l={}),l.type||(l.type=a),l.stopPropagation||(l.stopPropagation=M),l.preventDefault||(l.preventDefault=S),t=t.slice();for(var r=0;r<t.length&&(t[r](l,this),!l.propagationStopped);r++);if(n&&!l.defaultPrevented)return n(l,this)}},R._signal=function(a,l){var t=(this._eventRegistry||{})[a];if(t){t=t.slice();for(var n=0;n<t.length;n++)t[n](l,this)}},R.once=function(a,l){var t=this;if(this.on(a,function n(){t.off(a,n),l.apply(null,arguments)}),!l)return new Promise(function(n){l=n})},R.setDefaultHandler=function(a,l){var t=this._defaultHandlers;if(t||(t=this._defaultHandlers={_disabled_:{}}),t[a]){var n=t[a],r=t._disabled_[a];r||(t._disabled_[a]=r=[]),r.push(n);var e=r.indexOf(l);e!=-1&&r.splice(e,1)}t[a]=l},R.removeDefaultHandler=function(a,l){var t=this._defaultHandlers;if(t){var n=t._disabled_[a];if(t[a]==l)n&&this.setDefaultHandler(a,n.pop());else if(n){var r=n.indexOf(l);r!=-1&&n.splice(r,1)}}},R.on=R.addEventListener=function(a,l,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[a];return n||(n=this._eventRegistry[a]=[]),n.indexOf(l)==-1&&n[t?"unshift":"push"](l),l},R.off=R.removeListener=R.removeEventListener=function(a,l){this._eventRegistry=this._eventRegistry||{};var t=this._eventRegistry[a];if(t){var n=t.indexOf(l);n!==-1&&t.splice(n,1)}},R.removeAllListeners=function(a){a||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[a]=void 0),this._defaultHandlers&&(this._defaultHandlers[a]=void 0)},k.EventEmitter=R});ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(x,k,H){"no use strict";var R=x("./oop"),M=x("./event_emitter").EventEmitter,S={setOptions:function(r){Object.keys(r).forEach(function(e){this.setOption(e,r[e])},this)},getOptions:function(r){var e={};if(r)Array.isArray(r)||(e=r,r=Object.keys(e));else{var i=this.$options;r=Object.keys(i).filter(function(o){return!i[o].hidden})}return r.forEach(function(o){e[o]=this.getOption(o)},this),e},setOption:function(r,e){if(this["$"+r]!==e){var i=this.$options[r];if(!i)return a('missLine truncated
background: #f0f0f0;
color: #333;
}
.ace-tm .ace_print-margin {
width: 1px;
background: #e8e8e8;
}
.ace-tm .ace_fold {
background-color: #6B72E6;
}
.ace-tm {
background-color: #FFFFFF;
color: black;
}
.ace-tm .ace_cursor {
color: black;
}
.ace-tm .ace_invisible {
color: rgb(191, 191, 191);
}
.ace-tm .ace_storage,
.ace-tm .ace_keyword {
color: blue;
}
.ace-tm .ace_constant {
color: rgb(197, 6, 11);
}
.ace-tm .ace_constant.ace_buildin {
color: rgb(88, 72, 246);
}
.ace-tm .ace_constant.ace_language {
color: rgb(88, 92, 246);
}
.ace-tm .ace_constant.ace_library {
color: rgb(6, 150, 14);
}
.ace-tm .ace_invalid {
background-color: rgba(255, 0, 0, 0.1);
color: red;
}
.ace-tm .ace_support.ace_function {
color: rgb(60, 76, 114);
}
.ace-tm .ace_support.ace_constant {
color: rgb(6, 150, 14);
}
.ace-tm .ace_support.ace_type,
.ace-tm .ace_support.ace_class {
color: rgb(109, 121, 222);
}
.ace-tm .ace_keyword.ace_operator {
color: rgb(104, 118, 135);
}
.ace-tm .ace_string {
color: rgb(3, 106, 7);
}
.ace-tm .ace_comment {
color: rgb(76, 136, 107);
}
.ace-tm .ace_comment.ace_doc {
color: rgb(0, 102, 255);
}
.ace-tm .ace_comment.ace_doc.ace_tag {
color: rgb(128, 159, 191);
}
.ace-tm .ace_constant.ace_numeric {
color: rgb(0, 0, 205);
}
.ace-tm .ace_variable {
color: rgb(49, 132, 149);
}
.ace-tm .ace_xml-pe {
color: rgb(104, 104, 91);
}
.ace-tm .ace_entity.ace_name.ace_function {
color: #0000A2;
}
.ace-tm .ace_heading {
color: rgb(12, 7, 255);
}
.ace-tm .ace_list {
color:rgb(185, 6, 144);
}
.ace-tm .ace_meta.ace_tag {
color:rgb(0, 22, 142);
}
.ace-tm .ace_string.ace_regex {
color: rgb(255, 0, 0)
}
.ace-tm .ace_marker-layer .ace_selection {
background: rgb(181, 213, 255);
}
.ace-tm.ace_multiselect .ace_selection.ace_start {
box-shadow: 0 0 3px 0px white;
}
.ace-tm .ace_marker-layer .ace_step {
background: rgb(252, 255, 0);
}
.ace-tm .ace_marker-layer .ace_stack {
background: rgb(164, 229, 101);
}
.ace-tm .ace_marker-layer .ace_bracket {
margin: -1px 0 0 -1px;
border: 1px solid rgb(192, 192, 192);
}
.ace-tm .ace_marker-layer .ace_active-line {
background: rgba(0, 0, 0, 0.07);
}
.ace-tm .ace_gutter-active-line {
background-color : #dcdcdc;
}
.ace-tm .ace_marker-layer .ace_selected-word {
background: rgb(250, 250, 255);
border: 1px solid rgb(200, 200, 250);
}
.ace-tm .ace_indent-guide {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
}
.ace-tm .ace_indent-guide-active {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
}
`});ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(x,k,H){"use strict";k.isDark=!1,k.cssClass="ace-tm",k.cssText=x("./textmate-css"),k.$id="ace/theme/textmate";var R=x("../lib/dom");R.importCssString(k.cssText,k.cssClass,!1)});ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(x,k,H){"no use strict";var R=x("./lib/lang"),M=x("./lib/net"),S=x("./lib/dom"),a=x("./lib/app_config").AppConfig;H.exports=k=new a;var l={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};k.get=function(e){if(!l.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return l[e]},k.set=function(e,i){if(l.hasOwnProperty(e))l[e]=i;else if(this.setDefaultValue("",e,i)==!1)throw new Error("Unknown config key: "+e);e=="useStrictCSP"&&S.useStrictCSP(i)},k.all=function(){return R.copyObject(l)},k.$modes={},k.moduleUrl=function(e,i){if(l.$moduleUrls[e])return l.$moduleUrls[e];var o=e.split("/");i=i||o[o.length-2]||"";var s=i=="snippets"?"/":"-",c=o[o.length-1];if(i=="worker"&&s=="-"){var g=new RegExp("^"+i+"[\\-_]|[\\-_]"+i+"$","g");c=c.replace(g,"")}(!c||c==i)&&o.length>1&&(c=o[o.length-2]);var w=l[i+"Path"];return w==null?w=l.basePath:s=="/"&&(i=s=""),w&&w.slice(-1)!="/"&&(w+="/"),w+i+s+c+this.get("suffix")},k.setModuleUrl=function(e,i){return l.$moduleUrls[e]=i};var t=function(e,i){if(e==="ace/theme/textmate"||e==="./theme/textmate")return i(null,x("./theme/textmate"));if(n)return n(e,i);console.error("loader is not configured")},n;k.setLoader=function(e){n=e},k.dynamicModules=Object.create(null),k.$loading={},k.$loaded={},k.loadModule=function(e,i){var o,s;Array.isArray(e)&&(s=e[0],e=e[1]);var c=function(g){if(g&&!k.$loading[e])return i&&i(g);if(k.$loading[e]||(k.$loading[e]=[]),k.$loading[e].push(i),!(k.$loading[e].length>1)){var w=function(){t(e,function(p,b){b&&(k.$loaded[e]=b),k._emit("load.module",{name:e,module:b});var y=k.$loading[e];k.$loading[e]=null,y.forEach(function(d){d&&d(b)})})};if(!k.get("packaged"))return w();M.loadScript(k.moduleUrl(e,s),w),r()}};if(k.dynamicModules[e])k.dynamicModules[e]().then(function(g){g.default?c(g.default):c(g)});else{try{o=this.$require(e)}catch{}c(o||k.$loaded[e])}},k.$require=function(e){if(typeof H.require=="function"){var i="require";return H[i](e)}},k.setModuleLoader=function(e,i){k.dynamicModules[e]=i};var r=function(){!l.basePath&&!l.workerPath&&!l.modePath&&!l.themePath&&!Object.keys(l.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),r=function(){})};k.version="1.24.1"});ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(x,k,H){"use strict";x("./lib/fixoldbrowsers");var R=x("./config");R.setLoader(function(l,t){x([l],function(n){t(null,n)})});var M=function(){return this||typeof window<"u"&&window}();H.exports=function(l){R.init=S,R.$require=x,l.require=x,typeof define=="function"&&(l.define=define)},S(!0);function S(l){if(!(!M||!M.document)){R.set("packaged",l||x.packaged||H.packaged||M.define&&define.packaged);var t={},n="",r=document.currentScript||document._currentScript,e=r&&r.ownerDocument||document;r&&r.src&&(n=r.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var i=e.getElementsByTagName("script"),o=0;o<i.length;o++){var s=i[o],c=s.src||s.getAttribute("src");if(c){for(var g=s.attributes,w=0,p=g.length;w<p;w++){var b=g[w];b.name.indexOf("data-ace-")===0&&(t[a(b.name.replace(/^data-ace-/,""))]=b.value)}var y=c.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);y&&(n=y[1])}}n&&(t.base=t.base||n,t.packaged=!0),t.basePath=t.base,t.workerPath=t.workerPath||t.base,t.modePath=t.modePath||t.base,t.themePath=t.themePath||t.base,delete t.base;for(var d in t)typeof t[d]<"u"&&R.set(d,t[d])}}function a(l){return l.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}});ace.define("ace/range",["require","exports","module"],function(x,k,H){"use strict";var R=function(S,a){return S.row-a.row||S.column-a.column},M=function(){function S(a,l,t,n){this.start={row:a,column:l},this.end={row:t,column:n}}return S.prototype.isEqual=function(a){return this.start.row===a.start.row&&this.end.row===a.end.row&&this.start.column===a.start.column&&this.end.column===a.end.column},S.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},S.prototype.contains=function(a,l){return this.compare(a,l)==0},S.prototype.compareRange=function(a){var l,t=a.end,n=a.start;return l=this.compare(t.row,t.column),l==1?(l=this.compare(n.row,n.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(n.row,n.column),l==-1?-1:l==1?42:0)},S.prototype.comparePoint=function(a){ret Line truncated
ab`+N+`cde fg
`;j!=d.value&&(d.value=C=j);var X=4,Z=4+(N.length||(y.selection.isEmpty()?0:1));(L!=X||T!=Z)&&d.setSelectionRange(X,Z),L=X,T=Z}}:function(){if(!(f||u)&&!(!W&&!G)){f=!0;var N=0,j=0,X="";if(y.session){var Z=y.selection,te=Z.getRange(),oe=Z.cursor.row;oe===O+1?(_=O+1,O=_+2*I):oe===_-1?(O=_-1,_=O-2*I):(oe<_-1||oe>O+1)&&(_=oe>I?oe-I:0,O=oe>I?oe+I:2*I);for(var le=[],se=_;se<=O;se++)le.push(y.session.getLine(se));if(X=le.join(`
`),N=F(te.start.row,te.start.column),j=F(te.end.row,te.end.column),te.start.row<_){var re=y.session.getLine(_-1);N=te.start.row<_-1?0:N,j+=re.length+1,X=re+`
`+X}else if(te.end.row>O){var ie=y.session.getLine(O+1);j=te.end.row>O+1?ie.length:te.end.column,j+=X.length+1,X=X+`
`+ie}else w&&oe>0&&(X=`
`+X,j+=1,N+=1);X.length>i&&(N<i&&j<i?X=X.slice(0,i):(X=`
`,N==j?N=j=0:(N=0,j=1)));var he=X+`
`;he!=C&&(d.value=C=he,L=T=he.length)}if(G&&(L=d.selectionStart,T=d.selectionEnd),T!=j||L!=N||d.selectionEnd!=T)try{d.setSelectionRange(N,j),L=N,T=j}catch{}f=!1}};this.resetSelection=D,W&&y.onFocus();var B=function(N){return N.selectionStart===0&&N.selectionEnd>=C.length&&N.value===C&&C&&N.selectionEnd!==T},U=function(N){f||(v?v=!1:B(d)?(y.selectAll(),D()):w&&d.selectionStart!=L&&D())},P=null;this.setInputHandler=function(N){P=N},this.getInputHandler=function(){return P};var G=!1,z=function(N,j){if(G&&(G=!1),$)return D(),N&&y.onPaste(N),$=!1,"";for(var X=d.selectionStart,Z=d.selectionEnd,te=L,oe=C.length-T,le=N,se=N.length-X,re=N.length-Z,ie=0;te>0&&C[ie]==N[ie];)ie++,te--;for(le=le.slice(ie),ie=1;oe>0&&C.length-ie>L-1&&C[C.length-ie]==N[N.length-ie];)ie++,oe--;se-=ie-1,re-=ie-1;var he=le.length-ie+1;if(he<0&&(te=-he,he=0),le=le.slice(0,he),!j&&!le&&!se&&!te&&!oe&&!re)return"";u=!0;var me=!1;return S.isAndroid&&le==". "&&(le=" ",me=!0),le&&!te&&!oe&&!se&&!re||m?y.onTextInput(le):y.onTextInput(le,{extendLeft:te,extendRight:oe,restoreStart:se,restoreEnd:re}),u=!1,C=N,L=X,T=Z,E=re,me?`
`:le},K=function(N){if(f)return ne();if(N&&N.inputType){if(N.inputType=="historyUndo")return y.execCommand("undo");if(N.inputType=="historyRedo")return y.execCommand("redo")}var j=d.value,X=z(j,!0);(j.length>i+100||g.test(X)||w&&L<1&&L==T)&&D()},Y=function(N,j,X){var Z=N.clipboardData||window.clipboardData;if(!(!Z||n)){var te=r||X?"Text":"text/plain";try{return j?Z.setData(te,j)!==!1:Z.getData(te)}catch(oe){if(!X)return Y(oe,j,!0)}}},V=function(N,j){var X=y.getCopyText();if(!X)return R.preventDefault(N);Y(N,X)?(c&&(D(X),v=X,setTimeout(function(){v=!1},10)),j?y.onCut():y.onCopy(),R.preventDefault(N)):(v=!0,d.value=X,d.select(),setTimeout(function(){v=!1,D(),j?y.onCut():y.onCopy()}))},J=function(N){V(N,!0)},q=function(N){V(N,!1)},ee=function(N){var j=Y(N);t.pasteCancelled()||(typeof j=="string"?(j&&y.onPaste(j,N),S.isIE&&setTimeout(D),R.preventDefault(N)):(d.value="",$=!0))};R.addCommandKeyListener(d,y.onCommandKey.bind(y),y),R.addListener(d,"select",U,y),R.addListener(d,"input",K,y),R.addListener(d,"cut",J,y),R.addListener(d,"copy",q,y),R.addListener(d,"paste",ee,y),(!("oncut"in d)||!("oncopy"in d)||!("onpaste"in d))&&R.addListener(b,"keydown",function(N){if(!(S.isMac&&!N.metaKey||!N.ctrlKey))switch(N.keyCode){case 67:q(N);break;case 86:ee(N);break;case 88:J(N);break}},y);var Q=function(N){if(!(f||!y.onCompositionStart||y.$readOnly)&&(f={},!m)){N.data&&(f.useTextareaForIME=!1),setTimeout(ne,0),y._signal("compositionStart"),y.on("mousedown",fe);var j=y.getSelectionRange();j.end.row=j.start.row,j.end.column=j.start.column,f.markerRange=j,f.selectionStart=L,y.onCompositionStart(f),f.useTextareaForIME?(C=d.value="",L=0,T=0):(d.msGetInputContext&&(f.context=d.msGetInputContext()),d.getInputContext&&(f.context=d.getInputContext()))}},ne=function(){if(!(!f||!y.onCompositionUpdate||y.$readOnly)){if(m)return fe();if(f.useTextareaForIME)y.onCompositionUpdate(d.value);else{var N=d.value;z(N),f.markerRange&&(f.context&&(f.markerRange.start.column=f.selectionStart=f.context.compositionStartOffset),f.markerRange.end.column=f.markerRange.start.column+T-f.selectionStart+E)}}},de=function(N){!y.onCompositionEnd||y.$readOnly||(f=!1,y.onCompositionEnd(),y.off("mousedown",fe),N&&K())};function fe(){h=!0,d.blur(),d.focus(),h=!1}var ue=l.delayedCall(ne,50).schedule.bind(null,null);function ae(N){N.keyCode==27&&d.value.length<d.selectionStart&&(f||(C=d.value),L=T=-1,D()),ue()}R.addListener(d,"compositionstart",Q,y),R.addListener(d,"compositionupdate",ne,y),R.addListener(d,"keyup",ae,y),R.addListener(d,"keydown",ue,y),R.addListener(d,"compositionend",de,y),this.getElement=function(){return d},this.setCommandMode=function(N){m=N,d.readOnly=!1},this.setReadOnly=function(N){m||(d.readOnly=N)},this.setCopyWithEmptySelection=function(N){},this.onContextMenu=function(N){G=!0,D(),y._emit("nativecontextmenu",{target:y,domEvent:N}),this.moveToMouse(N,!0)},this.moveToMouse=function(N,j){A||(A=d.style.cssText),d.style.cssText=(j?"z-index:100000;":"")+(S.isIE?"opacity:0.1;":"")+"text-indent: -"+(L+T)*y.renderer.characterWidth*.5+"px;";var X=y.container.getBoundingClientRect(),Z=a.computedStyle(y.container),te=X.top+(parseInt(Z.borderTopWidth)||0),oe=X.left+(parseInt(X.borderLeftWidth)||0),le=X.bottom-te-d.clientHeight-2,se=function(re){a.translate(d,re.clientX-oe-2,Math.min(re.clientY-te-2,le))};se(N),N.type=="mousedown"&&(y.renderer.$isMousePressed=!0,clearTimeout(ce),S.isWin&&R.capture(y.container,se,pe))},this.onContextMenuClose=pe;var ce;function pe(){clearTimeout(ce),ce=setTimeout(function(){A&&(d.style.cssText=A,A=""),y.renderer.$isMousePressed=!1,y.renderer.$keepTextAreaAtCursor&&y.renderer.$moveTextAreaToCursor()},0)}var ge=function(N){y.textInput.onContextMenu(N),pe()};R.addListener(d,"mouseup",ge,y),R.addListener(d,"mousedown",function(N){N.preventDefault(),pe()},y),R.addListener(y.renderer.scroller,"contextmenu",ge,y),R.addListener(d,"contextmenu",ge,y),c&&xe(b,y,d);function xe(N,j,X){var Z=null,te=!1;X.addEventListener("keydown",function(le){Z&&clearTimeout(Z),te=!0},!0),X.addEventListener("keyup",function(le){Z=setTimeout(function(){te=!1},100)},!0);var oe=function(le){if(document.activeElement===X&&!(te||f||j.$mouseHandler.isMousePressed)&&!v){var se=X.selectionStart,re=X.selectionEnd,ie=null,he=0;if(se==0?ie=o.up:se==1?ie=o.home:re>T&&C[re]==`
`?ie=o.end:se<L&&C[se-1]==" "?(ie=o.left,he=s.option):se<L||se==L&&T!=L&&se==re?ie=o.left:re>T&&C.slice(0,re).split(`
`).length>2?ie=o.down:re>T&&C[re-1]==" "?(ie=o.right,he=s.option):(re>T||re==T&&T!=L&&se==re)&&(ie=o.right),se!==re&&(he|=s.shift),ie){var me=j.onCommandKey({},he,ie);if(!me&&j.commands){ie=o.keyCodeToString(ie);var we=j.commands.findKeyCommand(he,ie);we&&j.execCommand(we)}L=se,T=re,D("")}}};document.addEventListener("selectionchange",oe),j.on("destroy",function(){document.removeEventListener("selectionchange",oe)})}this.destroy=function(){d.parentElement&&d.parentElement.removeChild(d)}};k.TextInput=p,k.$setUserAgentForTests=function(b,y){w=b,c=y}});ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(x,k,H){"use strict";var R=x("../lib/useragent"),M=0,S=550,a=function(){function n(r){r.$clickSelection=null;var e=r.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(r)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(r)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(r)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(r)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(r));var i=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];i.forEach(function(o){r[o]=this[o]},this),r.selectByLines=this.extendSelectionBy.bind(r,"getLineRange"),r.selectByWords=this.extendSelectionBy.bind(r,"getWordRange")}return n.prototype.onMouseDown=function(r){var e=r.inSelection(),i=r.getDocumentPosition();this.mousedownEvent=r;var o=this.editor,s=r.getButton();if(s!==0){var c=o.getSelectionRange(),g=c.isEmpty();(g||s==1)&&o.selection.moveToPosition(i),s==2&&(o.textInput.onContextMenu(r.domEvent),R.isMozilla||r.preventDefault());return}if(this.mousedownEvent.time=Date.now(),e&&!o.isFocused()&&(o.focus(),this.$focusTimeout&&!this.$clickSelection&&!o.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(r);return}return this.captureMouse(r),this.startSelect(i,r.domEvent._clicks>1),r.preventDefault()},n.prototype.startSelect=function(r,e){r=r||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(r):e||i.selection.moveToPosition(r),e||this.select(),i.setStyle("ace_selecting"),this.setState("select"))},n.prototype.select=function(){var r,e=this.editor,i=e.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var o=this.$clickSelection.comparePoint(i);if(o==-1)r=this.$clickSelection.end;else if(o==1)r=this.$clickSelection.start;else{var s=t(this.$clickSelection,i);i=s.cursor,r=s.anchor}e.selection.setSelectionAnchor(r.row,r.column)}e.selection.selectToPosition(i),e.renderer.scrollCursorIntoView()},n.prototype.extendSelectionBy=function(r){var e,i=this.editor,o=i.renderer.screenToTextCoordinates(this.x,this.y),s=i.selection[r](o.row,o.column);if(this.$clickSelection){var c=this.$clickSelection.comparePoint(s.start),g=this.$clickSelection.comparePoint(s.end);if(c==-1&&g<=0)e=this.$clickSelection.end,(s.end.row!=o.row||s.end.column!=o.column)&&(o=s.start);else if(g==1&&c>=0)e=this.$clickSelection.start,(s.start.row!=o.row||s.start.column!=o.column)&&(o=s.end);else if(c==-1&&g==1)o=s.end,e=s.start;else{var w=t(this.$clickSelection,o);o=w.cursor,e=w.anchor}i.selection.setSelectionAnchor(e.row,e.column)}i.selection.selectToPosition(o),i.renderer.scrollCursorIntoView()},n.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},n.prototype.focusWait=function(){var r=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),e=Date.now();(r>M||e-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},n.prototype.onDoubleClick=function(r){var e=r.getDocumentPosition(),i=this.editor,o=i.session,s=o.getBracketRange(e);s?(s.isEmpty()&&(s.start.column--,s.end.column++),this.setState("select")):(s=i.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=s,this.select()},n.prototype.onTripleClick=function(r){var e=r.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var o=i.getSelectionRange();o.isMultiLine()&&o.contains(e.row,e.column)?(this.$clickSelection=i.selection.getLineRange(o.start.row),this.$clickSelection.end=i.selection.getLineRange(o.end.row).end):this.$clickSelection=i.selection.getLineRange(e.row),this.select()},n.prototype.onQuadClick=function(r){var e=this.editor;e.selectAll(),this.$clickSelection=e.getSelectionRange(),this.setState("selectAll")},n.prototype.onMouseWheel=function(r){if(!r.getAccelKey()){r.getShiftKey()&&r.wheelY&&!r.wheelX&&(r.wheelX=r.wheelY,r.wheelY=0);var e=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,o=r.domEvent.timeStamp,s=o-i.t,c=s?r.wheelX/s:i.vx,g=s?r.wheelY/s:i.vy;s<S&&(c=(c+i.vx)/2,g=(g+i.vy)/2);var w=Math.abs(c/g),p=!1;if(w>=1&&e.renderer.isScrollableBy(r.wheelX*r.speed,0)&&(p=!0),w<=1&&e.renderer.isScrol Line truncated
`))&&(this.seenBidi=!0,this.currentRow=null)},l.prototype.getDocumentRow=function(){var t=0,n=this.session.$screenRowCache;if(n.length){var r=this.session.$getRowCacheIndex(n,this.currentRow);r>=0&&(t=this.session.$docRowCache[r])}return t},l.prototype.getSplitIndex=function(){var t=0,n=this.session.$screenRowCache;if(n.length)for(var r,e=this.session.$getRowCacheIndex(n,this.currentRow);this.currentRow-t>0&&(r=this.session.$getRowCacheIndex(n,this.currentRow-t-1),r===e);)e=r,t++;else t=this.currentRow;return t},l.prototype.updateRowLine=function(t,n){t===void 0&&(t=this.getDocumentRow());var r=t===this.session.getLength()-1,e=r?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(t),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[t];i&&(n===void 0&&(n=this.getSplitIndex()),n>0&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[R.L],this.line=n<i.length?this.line.substring(i[n-1],i[n]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[n]),n==i.length&&(this.line+=this.showInvisibles?e:R.DOT))}else this.line+=this.showInvisibles?e:R.DOT;var o=this.session,s=0,c;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(g,w){return g===" "||o.isFullWidth(g.charCodeAt(0))?(c=g===" "?o.getScreenTabSize(w+s):2,s+=c-1,M.stringRepeat(R.DOT,c)):g}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==R.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},l.prototype.updateBidiMap=function(){var t=[];R.hasBidiCharacters(this.line,t)||this.isRtlDir?this.bidiMap=R.doBidiReorder(this.line,t,this.isRtlDir):this.bidiMap={}},l.prototype.markAsDirty=function(){this.currentRow=null},l.prototype.updateCharacterWidths=function(t){if(this.characterWidth!==t.$characterSize.width){this.fontMetrics=t;var n=this.characterWidth=t.$characterSize.width,r=t.$measureCharWidth("\u05D4");this.charWidths[R.L]=this.charWidths[R.EN]=this.charWidths[R.ON_R]=n,this.charWidths[R.R]=this.charWidths[R.AN]=r,this.charWidths[R.R_H]=r*.45,this.charWidths[R.B]=this.charWidths[R.RLE]=0,this.currentRow=null}},l.prototype.setShowInvisibles=function(t){this.showInvisibles=t,this.currentRow=null},l.prototype.setEolChar=function(t){this.EOL=t},l.prototype.setContentWidth=function(t){this.contentWidth=t},l.prototype.isRtlLine=function(t){return this.$isRtl?!0:t!=null?this.session.getLine(t).charAt(0)==this.RLE:this.isRtlDir},l.prototype.setRtlDirection=function(t,n){for(var r=t.getCursorPosition(),e=t.selection.getSelectionAnchor().row;e<=r.row;e++)!n&&t.session.getLine(e).charAt(0)===t.session.$bidiHandler.RLE?t.session.doc.removeInLine(e,0,1):n&&t.session.getLine(e).charAt(0)!==t.session.$bidiHandler.RLE&&t.session.doc.insert({column:0,row:e},t.session.$bidiHandler.RLE)},l.prototype.getPosLeft=function(t){t-=this.wrapIndent;var n=this.line.charAt(0)===this.RLE?1:0,r=t>n?this.session.getOverwrite()?t:t-1:n,e=R.getVisualFromLogicalIdx(r,this.bidiMap),i=this.bidiMap.bidiLevels,o=0;!this.session.getOverwrite()&&t<=n&&i[e]%2!==0&&e++;for(var s=0;s<e;s++)o+=this.charWidths[i[s]];return!this.session.getOverwrite()&&t>n&&i[e]%2===0&&(o+=this.charWidths[i[e]]),this.wrapIndent&&(o+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(o+=this.rtlLineOffset),o},l.prototype.getSelections=function(t,n){var r=this.bidiMap,e=r.bidiLevels,i,o=[],s=0,c=Math.min(t,n)-this.wrapIndent,g=Math.max(t,n)-this.wrapIndent,w=!1,p=!1,b=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var y,d=0;d<e.length;d++)y=r.logicalFromVisual[d],i=e[d],w=y>=c&&y<g,w&&!p?b=s:!w&&p&&o.push({left:b,width:s-b}),s+=this.charWidths[i],p=w;if(w&&d===e.length&&o.push({left:b,width:s-b}),this.isRtlDir)for(var v=0;v<o.length;v++)o[v].left+=this.rtlLineOffset;return o},l.prototype.offsetToCol=function(r){this.isRtlDir&&(r-=this.rtlLineOffset);var n=0,r=Math.max(r,0),e=0,i=0,o=this.bidiMap.bidiLevels,s=this.charWidths[o[i]];for(this.wrapIndent&&(r-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);r>e+s/2;){if(e+=s,i===o.length-1){s=0;break}s=this.charWidths[o[++i]]}return i>0&&o[i-1]%2!==0&&o[i]%2===0?(r<e&&i--,n=this.bidiMap.logicalFromVisual[i]):i>0&&o[i-1]%2===0&&o[i]%2!==0?n=1+(r>e?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===o.length-1&&s===0&&o[i-1]%2===0||!this.isRtlDir&&i===0&&o[i]%2!==0?n=1+this.bidiMap.logicalFromVisual[i]:(i>0&&o[i-1]%2!==0&&s!==0&&i--,n=this.bidiMap.logicalFromVisual[i]),n===0&&this.isRtlDir&&n++,n+this.wrapIndent},l}();k.BidiHandler=a});ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(x,k,H){"use strict";var R=x("./lib/oop"),M=x("./lib/lang"),S=x("./lib/event_emitter").EventEmitter,a=x("./range").Range,l=function(t){this.session=t,this. Line truncated
`||y==`\r
`){i(p);var m="";s.isMaybeInsertedClosing(d,v)&&(m=a.stringRepeat("}",n.maybeInsertedBrackets),s.clearMaybeInsertedClosing());var u=v.substring(d.column,d.column+1);if(u==="}"){var h=b.findMatchingBracket({row:d.row,column:d.column+1},"}");if(!h)return null;var C=this.$getIndent(b.getLine(h.row))}else if(m)var C=this.$getIndent(v);else{s.clearMaybeInsertedClosing();return}var L=C+b.getTabString();return{text:`
`+L+`
`+C+m,selection:[1,L.length,1,L.length]}}else s.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(g,w,p,b,y){var d=b.doc.getTextRange(y);if(!y.isMultiLine()&&d=="{"){i(p);var v=b.doc.getLine(y.start.row),$=v.substring(y.end.column,y.end.column+1);if($=="}")return y.end.column++,y;n.maybeInsertedBrackets--}}),this.add("parens","insertion",function(g,w,p,b,y){if(y=="("){i(p);var d=p.getSelectionRange(),v=b.doc.getTextRange(d);if(v!==""&&p.getWrapBehavioursEnabled())return o(d,v,"(",")");if(s.isSaneInsertion(p,b))return s.recordAutoInsert(p,b,")"),{text:"()",selection:[1,1]}}else if(y==")"){i(p);var $=p.getCursorPosition(),f=b.doc.getLine($.row),u=f.substring($.column,$.column+1);if(u==")"){var A=b.$findOpeningBracket(")",{column:$.column+1,row:$.row});if(A!==null&&s.isAutoInsertedClosing($,f,y))return s.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(g,w,p,b,y){var d=b.doc.getTextRange(y);if(!y.isMultiLine()&&d=="("){i(p);var v=b.doc.getLine(y.start.row),$=v.substring(y.start.column+1,y.start.column+2);if($==")")return y.end.column++,y}}),this.add("brackets","insertion",function(g,w,p,b,y){if(y=="["){i(p);var d=p.getSelectionRange(),v=b.doc.getTextRange(d);if(v!==""&&p.getWrapBehavioursEnabled())return o(d,v,"[","]");if(s.isSaneInsertion(p,b))return s.recordAutoInsert(p,b,"]"),{text:"[]",selection:[1,1]}}else if(y=="]"){i(p);var $=p.getCursorPosition(),f=b.doc.getLine($.row),u=f.substring($.column,$.column+1);if(u=="]"){var A=b.$findOpeningBracket("]",{column:$.column+1,row:$.row});if(A!==null&&s.isAutoInsertedClosing($,f,y))return s.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(g,w,p,b,y){var d=b.doc.getTextRange(y);if(!y.isMultiLine()&&d=="["){i(p);var v=b.doc.getLine(y.start.row),$=v.substring(y.start.column+1,y.start.column+2);if($=="]")return y.end.column++,y}}),this.add("string_dquotes","insertion",function(g,w,p,b,y){var d=b.$mode.$quotes||e;if(y.length==1&&d[y]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(y)!=-1)return;i(p);var v=y,$=p.getSelectionRange(),f=b.doc.getTextRange($);if(f!==""&&(f.length!=1||!d[f])&&p.getWrapBehavioursEnabled())return o($,f,v,v);if(!f){var u=p.getCursorPosition(),A=b.doc.getLine(u.row),m=A.substring(u.column-1,u.column),h=A.substring(u.column,u.column+1),C=b.getTokenAt(u.row,u.column),L=b.getTokenAt(u.row,u.column+1);if(m=="\\"&&C&&/escape/.test(C.type))return null;var T=C&&/string|escape/.test(C.type),E=!L||/string|escape/.test(L.type),_;if(h==v)_=T!==E,_&&/string\.end/.test(L.type)&&(_=!1);else{if(T&&!E||T&&E)return null;var O=b.$mode.tokenRe;O.lastIndex=0;var I=O.test(m);O.lastIndex=0;var W=O.test(h),F=b.$mode.$pairQuotesAfter,D=F&&F[v]&&F[v].test(m);if(!D&&I||W||h&&!/[\s;,.})\]\\]/.test(h))return null;var B=A[u.column-2];if(m==v&&(B==v||O.test(B)))return null;_=!0}return{text:_?v+v:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(g,w,p,b,y){var d=b.$mode.$quotes||e,v=b.doc.getTextRange(y);if(!y.isMultiLine()&&d.hasOwnProperty(v)){i(p);var $=b.doc.getLine(y.start.row),f=$.substring(y.start.column+1,y.start.column+2);if(f==v)return y.end.column++,y}}),c.closeDocComment!==!1&&this.add("doc comment end","insertion",function(g,w,p,b,y){if(g==="doc-start"&&(y===`
`||y===`\r
`)&&p.selection.isEmpty()){var d=p.getCursorPosition(),v=b.doc.getLine(d.row),$=b.doc.getLine(d.row+1),f=this.$getIndent(v);if(/\s*\*/.test($))return/^\s*\*/.test(v)?{text:y+f+"* ",selection:[1,3+f.length,1,3+f.length]}:{text:y+f+" * ",selection:[1,3+f.length,1,3+f.length]};if(/\/\*\*/.test(v.substring(0,d.column)))return{text:y+f+" * "+y+" "+f+"*/",selection:[1,4+f.length,1,4+f.length]}}})};s.isSaneInsertion=function(c,g){var w=c.getCursorPosition(),p=new S(g,w.row,w.column);if(!this.$matchTokenType(p.getCurrentToken()||"text",l)){if(/[)}\]]/.test(c.session.getLine(w.row)[w.column]))return!0;var b=new S(g,w.row,w.column+1);if(!this.$matchTokenType(b.getCurrentToken()||"text",l))return!1}return p.stepForward(),p.getCurrentTokenRow()!==w.row||this.$matchTokenType(p.getCurrentToken()||"text",t)},s.$matchTokenType=function(c,g){return g.indexOf(c.type||c)>-1},s.recordAutoInsert=function(c,g,w){var p=c.getCursorPosition(),b=g.doc.getLine(p.row);this.isAutoInsertedClosing(p,b,n.autoInsertedLineEnd[0])||(n.autoInsertedBrackets=0),n.autoInsertedRow=p.row,n.autoInsertedLineEnd=w+b.substr(p.column),n.autoInsertedBrackets++},s.recordMaybeInsert=function(c,g,w){var p=c.getCursorPosition(),b=g.doc.getLine(p.row);this.isMaybeInsertedClosing(p,b)||(n.maybeInsertedBrackets=0),n.maybeInsertedRow=p.row,n.maybeInsertedLineStart=b.substr(0,p.column)+w,n.maybeInsertedLineEnd=b.substr(p.column),n.maybeInsertedBrackets++},s.isAutoInsertedClosing=function(c,g,w){return n.autoInsertedBrackets>0&&c.row===n.autoInsertedRow&&w===n.autoInsertedLineEnd[0]&&g.substr(c.column)===n.autoInsertedLineEnd},s.isMaybeInsertedClosing=function(c,g){return n.maybeInsertedBrackets>0&&c.row===n.maybeInsertedRow&&g.substr(c.column)===n.maybeInsertedLineEnd&&g.substr(0,c.column)==n.maybeInsertedLineStart},s.popAutoInsertedClosing=function(){n.autoInsertedLineEnd=n.autoInsertedLineEnd.substr(1),n.autoInsertedBrackets--},s.clearMaybeInsertedClosing=function(){n&&(n.maybeInsertedBrackets=0,n.maybeInsertedRow=-1)},R.inherits(s,M),k.CstyleBehaviour=s});ace.define("ace/unicode",["require","exports","module"],function(x,k,H){"use strict";for(var R=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],M=0,S=[],a=0;a<R.length;a+=2)S.push(M+=R[a]),R[a+1]&&S.push(45,M+=R[a+1]);k.wordChars=String.fromCharCode.apply(null,S)});ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(x,k,H){"use strict";var R=x("../config"),M=x("../tokenizer").Tokenizer,S=x("./text_highlight_rules").TextHighlightRules,a=x("./behaviour/cstyle").CstyleBehaviour,l=x("../unicode"),t=x("../lib/lang"),n=x("../token_iterator").TokenIterator,r=x("../range").Range,e=function(){this.HighlightRules=S};(function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+l.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+l.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=t Line truncated
`,this._signal("changeNewLineMode")},n.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
`;case"unix":return`
`;default:return this.$autoNewLine||`
`}},n.prototype.setNewLineMode=function(r){this.$newLineMode!==r&&(this.$newLineMode=r,this._signal("changeNewLineMode"))},n.prototype.getNewLineMode=function(){return this.$newLineMode},n.prototype.isNewLine=function(r){return r==`\r
`||r=="\r"||r==`
`},n.prototype.getLine=function(r){return this.$lines[r]||""},n.prototype.getLines=function(r,e){return this.$lines.slice(r,e+1)},n.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},n.prototype.getLength=function(){return this.$lines.length},n.prototype.getTextRange=function(r){return this.getLinesForRange(r).join(this.getNewLineCharacter())},n.prototype.getLinesForRange=function(r){var e;if(r.start.row===r.end.row)e=[this.getLine(r.start.row).substring(r.start.column,r.end.column)];else{e=this.getLines(r.start.row,r.end.row),e[0]=(e[0]||"").substring(r.start.column);var i=e.length-1;r.end.row-r.start.row==i&&(e[i]=e[i].substring(0,r.end.column))}return e},n.prototype.insertLines=function(r,e){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(r,e)},n.prototype.removeLines=function(r,e){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(r,e)},n.prototype.insertNewLine=function(r){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(r,["",""])},n.prototype.insert=function(r,e){return this.getLength()<=1&&this.$detectNewLine(e),this.insertMergedLines(r,this.$split(e))},n.prototype.insertInLine=function(r,e){var i=this.clippedPos(r.row,r.column),o=this.pos(r.row,r.column+e.length);return this.applyDelta({start:i,end:o,action:"insert",lines:[e]},!0),this.clonePos(o)},n.prototype.clippedPos=function(r,e){var i=this.getLength();r===void 0?r=i:r<0?r=0:r>=i&&(r=i-1,e=void 0);var o=this.getLine(r);return e==null&&(e=o.length),e=Math.min(Math.max(e,0),o.length),{row:r,column:e}},n.prototype.clonePos=function(r){return{row:r.row,column:r.column}},n.prototype.pos=function(r,e){return{row:r,column:e}},n.prototype.$clipPosition=function(r){var e=this.getLength();return r.row>=e?(r.row=Math.max(0,e-1),r.column=this.getLine(e-1).length):(r.row=Math.max(0,r.row),r.column=Math.min(Math.max(r.column,0),this.getLine(r.row).length)),r},n.prototype.insertFullLines=function(r,e){r=Math.min(Math.max(r,0),this.getLength());var i=0;r<this.getLength()?(e=e.concat([""]),i=0):(e=[""].concat(e),r--,i=this.$lines[r].length),this.insertMergedLines({row:r,column:i},e)},n.prototype.insertMergedLines=function(r,e){var i=this.clippedPos(r.row,r.column),o={row:i.row+e.length-1,column:(e.length==1?i.column:0)+e[e.length-1].length};return this.applyDelta({start:i,end:o,action:"insert",lines:e}),this.clonePos(o)},n.prototype.remove=function(r){var e=this.clippedPos(r.start.row,r.start.column),i=this.clippedPos(r.end.row,r.end.column);return this.applyDelta({start:e,end:i,action:"remove",lines:this.getLinesForRange({start:e,end:i})}),this.clonePos(e)},n.prototype.removeInLine=function(r,e,i){var o=this.clippedPos(r,e),s=this.clippedPos(r,i);return this.applyDelta({start:o,end:s,action:"remove",lines:this.getLinesForRange({start:o,end:s})},!0),this.clonePos(o)},n.prototype.removeFullLines=function(r,e){r=Math.min(Math.max(0,r),this.getLength()-1),e=Math.min(Math.max(0,e),this.getLength()-1);var i=e==this.getLength()-1&&r>0,o=e<this.getLength()-1,s=i?r-1:r,c=i?this.getLine(s).length:0,g=o?e+1:e,w=o?0:this.getLine(g).length,p=new a(s,c,g,w),b=this.$lines.slice(r,e+1);return this.applyDelta({start:p.start,end:p.end,action:"remove",lines:this.getLinesForRange(p)}),b},n.prototype.removeNewLine=function(r){r<this.getLength()-1&&r>=0&&this.applyDelta({start:this.pos(r,this.getLine(r).length),end:this.pos(r+1,0),action:"remove",lines:["",""]})},n.prototype.replace=function(r,e){if(r instanceof a||(r=a.fromPoints(r.start,r.end)),e.length===0&&r.isEmpty())return r.start;if(e==this.getTextRange(r))return r.end;this.remove(r);var i;return e?i=this.insert(r.start,e):i=r.start,i},n.prototype.applyDeltas=function(r){for(var e=0;e<r.length;e++)this.applyDelta(r[e])},n.prototype.revertDeltas=function(r){for(var e=r.length-1;e>=0;e--)this.revertDelta(r[e])},n.prototype.applyDelta=function(r,e){var i=r.action=="insert";(i?r.lines.length<=1&&!r.lines[0]:!a.comparePoints(r.start,r.end))||(i&&r.lines.length>2e4?this.$splitAndapplyLargeDelta(r,2e4):(M(this.$lines,r,e),this._signal("change",r)))},n.prototype.$safeApplyDelta=function(r){var e=this.$lines.length;(r.action=="remove"&&r.start.row<e&&r.end.row<e||r.action=="insert"&&r.start.row<=e)&&this.applyDelta(r)},n.prototype.$splitAndapplyLargeDelta=function(r,e){for(var i=r.lines,o=i.length-e+1,s=r.start.row,c=r.start.column,g=0,w=0;g<o;g=w){w+=e-1;var p=i.slice(g,w);p.push(""),this.applyDelta({start:this.pos(s+g,c),end:this.pos(s+w,c=0),action:r.action,lines:p},!0)}r.lines=i.slice(g),r.start.row=s+g,r.start.column=c,this.applyDelta(r,!0)},n.prototype.revertDelta=function(r){this.$safeApplyDelta({start:this.clonePos(r.start),end:this.clonePos(r.end),action:r.action=="insert"?"remove":"insert",lines:r.lines.slice()})},n.prototype.indexToPosition=function(r,e) Line truncated
`)},S.prototype.idxToPosition=function(a){for(var l=0,t=0;t<this.folds.length;t++){var n=this.folds[t];if(a-=n.start.column-l,a<0)return{row:n.start.row,column:n.start.column+a};if(a-=n.placeholder.length,a<0)return n.start;l=n.end.column}return{row:this.end.row,column:this.end.column+a}},S}();k.FoldLine=M});ace.define("ace/range_list",["require","exports","module","ace/range"],function(x,k,H){"use strict";var R=x("./range").Range,M=R.comparePoints,S=function(){function a(){this.ranges=[],this.$bias=1}return a.prototype.pointIndex=function(l,t,n){for(var r=this.ranges,e=n||0;e<r.length;e++){var i=r[e],o=M(l,i.end);if(!(o>0)){var s=M(l,i.start);return o===0?t&&s!==0?-e-2:e:s>0||s===0&&!t?e:-e-1}}return-e-1},a.prototype.add=function(l){var t=!l.isEmpty(),n=this.pointIndex(l.start,t);n<0&&(n=-n-1);var r=this.pointIndex(l.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,l)},a.prototype.addList=function(l){for(var t=[],n=l.length;n--;)t.push.apply(t,this.add(l[n]));return t},a.prototype.substractPoint=function(l){var t=this.pointIndex(l);if(t>=0)return this.ranges.splice(t,1)},a.prototype.merge=function(){var l=[],t=this.ranges;t=t.sort(function(o,s){return M(o.start,s.start)});for(var n=t[0],r,e=1;e<t.length;e++){r=n,n=t[e];var i=M(r.end,n.start);i<0||i==0&&!r.isEmpty()&&!n.isEmpty()||(M(r.end,n.end)<0&&(r.end.row=n.end.row,r.end.column=n.end.column),t.splice(e,1),l.push(n),n=r,e--)}return this.ranges=t,l},a.prototype.contains=function(l,t){return this.pointIndex({row:l,column:t})>=0},a.prototype.containsPoint=function(l){return this.pointIndex(l)>=0},a.prototype.rangeAtPoint=function(l){var t=this.pointIndex(l);if(t>=0)return this.ranges[t]},a.prototype.clipRows=function(l,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<l)return[];var r=this.pointIndex({row:l,column:0});r<0&&(r=-r-1);var e=this.pointIndex({row:t,column:0},r);e<0&&(e=-e-1);for(var i=[],o=r;o<e;o++)i.push(n[o]);return i},a.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},a.prototype.attach=function(l){this.session&&this.detach(),this.session=l,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},a.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},a.prototype.$onChange=function(l){for(var t=l.start,n=l.end,r=t.row,e=n.row,i=this.ranges,o=0,s=i.length;o<s;o++){var c=i[o];if(c.end.row>=r)break}if(l.action=="insert")for(var g=e-r,w=-t.column+n.column;o<s;o++){var c=i[o];if(c.start.row>r)break;if(c.start.row==r&&c.start.column>=t.column&&(c.start.column==t.column&&this.$bias<=0||(c.start.column+=w,c.start.row+=g)),c.end.row==r&&c.end.column>=t.column){if(c.end.column==t.column&&this.$bias<0)continue;c.end.column==t.column&&w>0&&o<s-1&&c.end.column>c.start.column&&c.end.column==i[o+1].start.column&&(c.end.column-=w),c.end.column+=w,c.end.row+=g}}else for(var g=r-e,w=t.column-n.column;o<s;o++){var c=i[o];if(c.start.row>e)break;c.end.row<e&&(r<c.end.row||r==c.end.row&&t.column<c.end.column)?(c.end.row=r,c.end.column=t.column):c.end.row==e?c.end.column<=n.column?(g||c.end.column>t.column)&&(c.end.column=t.column,c.end.row=t.row):(c.end.column+=w,c.end.row+=g):c.end.row>e&&(c.end.row+=g),c.start.row<e&&(r<c.start.row||r==c.start.row&&t.column<c.start.column)?(c.start.row=r,c.start.column=t.column):c.start.row==e?c.start.column<=n.column?(g||c.start.column>t.column)&&(c.start.column=t.column,c.start.row=t.row):(c.start.column+=w,c.start.row+=g):c.start.row>e&&(c.start.row+=g)}if(g!=0&&o<s)for(;o<s;o++){var c=i[o];c.start.row+=g,c.end.row+=g}},a}();S.prototype.comparePoints=M,k.RangeList=S});ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(x,k,H){"use strict";var R=this&&this.__extends||function(){var r=function(e,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(o[c]=s[c])},r(e,i)};return function(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");r(e,i);function o(){this.constructor=e}e.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),M=x("../range_list").RangeList,S=function(r){R(e,r);function e(i,o){var s=r.call(this)||this;return s.foldLine=null,s.placeholder=o,s.range=i,s.start=i.start,s.end=i.end,s.sameRow=i.start.row==i.end.row,s.subFolds=s.ranges=[],s}return e.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},e.prototype.setFoldLine=function(i){this.foldLine=i,this.subFolds.forEach(function(o){o.setFoldLine(i)})},e.prototype.clone=function(){var i=this.range.clone(),o=new e(i,this.placeholder);return this.subFolds.forEach(function(s){o.subFolds.push(s.clone())}),o.collapseChildren=this.collapseChildren,o},e.prototype.addSubFold=function(i){if(!this.range.isEqual(i)){l(i,this.start);for(var w=i.start.row,p=i.star Line truncated
`)},this.bgTokenizer=new i(new n().getTokenizer(),this);var m=this;this.bgTokenizer.on("update",function(h){m._signal("tokenizerUpdate",h)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof u!="object"||!u.getLine)&&(u=new e(u)),this.setDocument(u),this.selection=new t(this),this.$bidiHandler=new S(this),a.resetOptions(this),this.setMode(A),a._signal("session",this),this.destroyed=!1}return f.prototype.setDocument=function(u){this.doc&&this.doc.off("change",this.$onChange),this.doc=u,u.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},f.prototype.getDocument=function(){return this.doc},f.prototype.$resetRowCache=function(u){if(!u){this.$docRowCache=[],this.$screenRowCache=[];return}var A=this.$docRowCache.length,m=this.$getRowCacheIndex(this.$docRowCache,u)+1;A>m&&(this.$docRowCache.splice(m,A),this.$screenRowCache.splice(m,A))},f.prototype.$getRowCacheIndex=function(u,A){for(var m=0,h=u.length-1;m<=h;){var C=m+h>>1,L=u[C];if(A>L)m=C+1;else if(A<L)h=C-1;else return C}return m-1},f.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},f.prototype.onChangeFold=function(u){var A=u.data;this.$resetRowCache(A.start.row)},f.prototype.onChange=function(u){this.$modified=!0,this.$bidiHandler.onChange(u),this.$resetRowCache(u.start.row);var A=this.$updateInternalDataOnChange(u);!this.$fromUndo&&this.$undoManager&&(A&&A.length&&(this.$undoManager.add({action:"removeFolds",folds:A},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(u,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(u),this._signal("change",u)},f.prototype.setValue=function(u){this.doc.setValue(u),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},f.prototype.toString=function(){return this.doc.getValue()},f.prototype.getSelection=function(){return this.selection},f.prototype.getState=function(u){return this.bgTokenizer.getState(u)},f.prototype.getTokens=function(u){return this.bgTokenizer.getTokens(u)},f.prototype.getTokenAt=function(u,A){var m=this.bgTokenizer.getTokens(u),h,C=0;if(A==null){var L=m.length-1;C=this.getLine(u).length}else for(var L=0;L<m.length&&(C+=m[L].value.length,!(C>=A));L++);return h=m[L],h?(h.index=L,h.start=C-h.value.length,h):null},f.prototype.setUndoManager=function(u){if(this.$undoManager=u,this.$informUndoManager&&this.$informUndoManager.cancel(),u){var A=this;u.addSession(this),this.$syncInformUndoManager=function(){A.$informUndoManager.cancel(),A.mergeUndoDeltas=!1},this.$informUndoManager=M.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},f.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},f.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},f.prototype.getTabString=function(){return this.getUseSoftTabs()?M.stringRepeat(" ",this.getTabSize()):" "},f.prototype.setUseSoftTabs=function(u){this.setOption("useSoftTabs",u)},f.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},f.prototype.setTabSize=function(u){this.setOption("tabSize",u)},f.prototype.getTabSize=function(){return this.$tabSize},f.prototype.isTabStop=function(u){return this.$useSoftTabs&&u.column%this.$tabSize===0},f.prototype.setNavigateWithinSoftTabs=function(u){this.setOption("navigateWithinSoftTabs",u)},f.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},f.prototype.setOverwrite=function(u){this.setOption("overwrite",u)},f.prototype.getOverwrite=function(){return this.$overwrite},f.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},f.prototype.addGutterDecoration=function(u,A){this.$decorations[u]||(this.$decorations[u]=""),this.$decorations[u]+=" "+A,this._signal("changeBreakpoint",{})},f.prototype.removeGutterDecoration=function(u,A){this.$decorations[u]=(this.$decorations[u]||"").replace(" "+A,""),this._signal("changeBreakpoint",{})},f.prototype.getBreakpoints=function(){return this.$breakpoints},f.prototype.setBreakpoints=function(u){this.$breakpoints=[];for(var A=0;A<u.length;A++)this.$breakpoints[u[A]]="ace_breakpoint";this._signal("changeBreakpoint",{})},f.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},f.prototype.setBreakpoint=function(u,A){A===void 0&&(A="ace_breakpoint"),A?this.$breakpoints[u]=A:delete this.$breakpoints[u],this._signal("changeBreakpoint",{})},f.prototype.clearBreakpoint=function(u){delete this.$breakpoints[u],this._signal("changeBreakpoint",{})},f.prototype.addMarker=function(u,A,m,h){var C=this.$markerId++,L={range:u,type:m||"line",renderer:typeof m=="function"?m:null,clazz:A,inFront:!!h,id:C};return h?(this.$frontMa Line truncated
`},f.prototype.getWordRange=function(u,A){var m=this.getLine(u),h=!1;if(A>0&&(h=!!m.charAt(A-1).match(this.tokenRe)),h||(h=!!m.charAt(A).match(this.tokenRe)),h)var C=this.tokenRe;else if(/^\s+$/.test(m.slice(A-1,A+1)))var C=/\s/;else var C=this.nonTokenRe;var L=A;if(L>0){do L--;while(L>=0&&m.charAt(L).match(C));L++}for(var T=A;T<m.length&&m.charAt(T).match(C);)T++;return new r(u,L,u,T)},f.prototype.getAWordRange=function(u,A){for(var m=this.getWordRange(u,A),h=this.getLine(m.end.row);h.charAt(m.end.column).match(/[ \t]/);)m.end.column+=1;return m},f.prototype.setNewLineMode=function(u){this.doc.setNewLineMode(u)},f.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},f.prototype.setUseWorker=function(u){this.setOption("useWorker",u)},f.prototype.getUseWorker=function(){return this.$useWorker},f.prototype.onReloadTokenizer=function(u){var A=u.data;this.bgTokenizer.start(A.first),this._signal("tokenizerUpdate",u)},f.prototype.setMode=function(u,A){if(u&&typeof u=="object"){if(u.getTokenizer)return this.$onChangeMode(u);var m=u,h=m.path}else h=u||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new n),this.$modes[h]&&!m){this.$onChangeMode(this.$modes[h]),A&&A();return}this.$modeId=h,a.loadModule(["mode",h],function(C){if(this.$modeId!==h)return A&&A();this.$modes[h]&&!m?this.$onChangeMode(this.$modes[h]):C&&C.Mode&&(C=new C.Mode(m),m||(this.$modes[h]=C,C.$id=h),this.$onChangeMode(C)),A&&A()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},f.prototype.$onChangeMode=function(u,A){if(A||(this.$modeId=u.$id),this.$mode!==u){var m=this.$mode;this.$mode=u,this.$stopWorker(),this.$useWorker&&this.$startWorker();var h=u.getTokenizer();if(h.on!==void 0){var C=this.onReloadTokenizer.bind(this);h.on("update",C)}this.bgTokenizer.setTokenizer(h),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=u.tokenRe,this.nonTokenRe=u.nonTokenRe,A||(u.attachToSession&&u.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(u.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:m,mode:u}))}},f.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},f.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(u){a.warn("Could not load worker",u),this.$worker=null}},f.prototype.getMode=function(){return this.$mode},f.prototype.setScrollTop=function(u){this.$scrollTop===u||isNaN(u)||(this.$scrollTop=u,this._signal("changeScrollTop",u))},f.prototype.getScrollTop=function(){return this.$scrollTop},f.prototype.setScrollLeft=function(u){this.$scrollLeft===u||isNaN(u)||(this.$scrollLeft=u,this._signal("changeScrollLeft",u))},f.prototype.getScrollLeft=function(){return this.$scrollLeft},f.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},f.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var u=0;return this.lineWidgets.forEach(function(A){A&&A.screenWidth>u&&(u=A.screenWidth)}),this.lineWidgetWidth=u},f.prototype.$computeWidth=function(u){if(this.$modified||u){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var A=this.doc.getAllLines(),m=this.$rowLengthCache,h=0,C=0,L=this.$foldData[C],T=L?L.start.row:1/0,E=A.length,_=0;_<E;_++){if(_>T){if(_=L.end.row+1,_>=E)break;L=this.$foldData[C++],T=L?L.start.row:1/0}m[_]==null&&(m[_]=this.$getStringScreenWidth(A[_])[0]),m[_]>h&&(h=m[_])}this.screenWidth=h}},f.prototype.getLine=function(u){return this.doc.getLine(u)},f.prototype.getLines=function(u,A){return this.doc.getLines(u,A)},f.prototype.getLength=function(){return this.doc.getLength()},f.prototype.getTextRange=function(u){return this.doc.getTextRange(u||this.selection.getRange())},f.prototype.insert=function(u,A){return this.doc.insert(u,A)},f.prototype.remove=function(u){return this.doc.remove(u)},f.prototype.removeFullLines=function(u,A){return this.doc.removeFullLines(u,A)},f.prototype.undoChanges=function(u,A){if(u.length){this.$fromUndo=!0;for(var m=u.length-1;m!=-1;m--){var h=u[m];h.action=="insert"||h.action=="remove"?this.doc.revertDelta(h):h.folds&&this.addFolds(h.folds)}!A&&this.$undoSelect&&(u.selectionBefore?this.selection.fromJSON(u.selectionBefore):this.selection.setRange(this.$getUndoSelection(u,!0))),this.$fromUndo=!1}},f.prototype.redoChanges=function(u,A){if(u.length){this.$fromUndo=!0;for(var m=0;m<u.length;m++){var h=u[m];(h.action=="insert"||h.action=="remove")&&this.doc.$safeApplyDelta(h)}!A&&this.$undoSelect&&(u.selectionAfter?this.selection.fromJSON(u.selectionAfter):this.selection.setRange(this.$getUndoSelection(u,!1))),this.$fromUndo=!1}},f.prototype.setUndoSelect=function(u){this.$undoSelect=u},f.prototype.$getUndoSelection=function(u,A){function m(E){return A?E.action!=="insert":E.action==="insert"}for(var h,C,L=0;L<u.l Line truncated
^`).split(`
`),i=[],o=0;o<e.length;o++)try{i.push(new RegExp(e[o],r))}catch{return!1}return i},t.prototype.$matchIterator=function(n,r){var e=this.$assembleRegExp(r);if(!e)return!1;var i=r.backwards==!0,o=r.skipCurrent!=!1,s=r.range,c=r.start;c||(c=s?s[i?"end":"start"]:n.selection.getRange()),c.start&&(c=c[o!=i?"end":"start"]);var g=s?s.start.row:0,w=s?s.end.row:n.getLength()-1;if(i)var p=function(d){var v=c.row;if(!y(v,c.column,d)){for(v--;v>=g;v--)if(y(v,Number.MAX_VALUE,d))return;if(r.wrap!=!1){for(v=w,g=c.row;v>=g;v--)if(y(v,Number.MAX_VALUE,d))return}}};else var p=function(v){var $=c.row;if(!y($,c.column,v)){for($=$+1;$<=w;$++)if(y($,0,v))return;if(r.wrap!=!1){for($=g,w=c.row;$<=w;$++)if(y($,0,v))return}}};if(r.$isMultiLine)var b=e.length,y=function(d,v,$){var f=i?d-b+1:d;if(!(f<0||f+b>n.getLength())){var u=n.getLine(f),A=u.search(e[0]);if(!(!i&&A<v||A===-1)){for(var m=1;m<b;m++)if(u=n.getLine(f+m),u.search(e[m])==-1)return;var h=u.match(e[b-1])[0].length;if(!(i&&h>v)&&$(f,A,f+b-1,h))return!0}}};else if(i)var y=function(v,$,f){var u=n.getLine(v),A=[],m,h=0;for(e.lastIndex=0;m=e.exec(u);){var C=m[0].length;if(h=m.index,!C){if(h>=u.length)break;e.lastIndex=h+=1}if(m.index+C>$)break;A.push(m.index,C)}for(var L=A.length-1;L>=0;L-=2){var T=A[L-1],C=A[L];if(f(v,T,v,T+C))return!0}};else var y=function(v,$,f){var u=n.getLine(v),A,m;for(e.lastIndex=$;m=e.exec(u);){var h=m[0].length;if(A=m.index,f(v,A,v,A+h))return!0;if(!h&&(e.lastIndex=A+=1,A>=u.length))return!1}};return{forEach:p}},t}();function l(t,n){var r=R.supportsLookbehind();function e(c,g){g===void 0&&(g=!0);var w=r&&n.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return w.test(c)||n.regExp?r&&n.$supportsUnicodeFlag?g?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var i=Array.from(t),o=i[0],s=i[i.length-1];return e(o)+t+e(s,!1)}k.Search=a});ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(x,k,H){"use strict";var R=this&&this.__extends||function(){var r=function(e,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(o[c]=s[c])},r(e,i)};return function(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");r(e,i);function o(){this.constructor=e}e.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),M=x("../lib/keys"),S=x("../lib/useragent"),a=M.KEY_MODS,l=function(){function r(e,i){this.$init(e,i,!1)}return r.prototype.$init=function(e,i,o){this.platform=i||(S.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=o},r.prototype.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},r.prototype.removeCommand=function(e,i){var o=e&&(typeof e=="string"?e:e.name);e=this.commands[o],i||delete this.commands[o];var s=this.commandKeyBinding;for(var c in s){var g=s[c];if(g==e)delete s[c];else if(Array.isArray(g)){var w=g.indexOf(e);w!=-1&&(g.splice(w,1),g.length==1&&(s[c]=g[0]))}}},r.prototype.bindKey=function(e,i,o){if(typeof e=="object"&&e&&(o==null&&(o=e.position),e=e[this.platform]),!!e){if(typeof i=="function")return this.addCommand({exec:i,bindKey:e,name:i.name||e});e.split("|").forEach(function(s){var c="";if(s.indexOf(" ")!=-1){var g=s.split(/\s+/);s=g.pop(),g.forEach(function(b){var y=this.parseKeys(b),d=a[y.hashId]+y.key;c+=(c?" ":"")+d,this._addCommandToBinding(c,"chainKeys")},this),c+=" "}var w=this.parseKeys(s),p=a[w.hashId]+w.key;this._addCommandToBinding(c+p,i,o)},this)}},r.prototype._addCommandToBinding=function(e,i,o){var s=this.commandKeyBinding,c;if(!i)delete s[e];else if(!s[e]||this.$singleCommand)s[e]=i;else{Array.isArray(s[e])?(c=s[e].indexOf(i))!=-1&&s[e].splice(c,1):s[e]=[s[e]],typeof o!="number"&&(o=t(i));var g=s[e];for(c=0;c<g.length;c++){var w=g[c],p=t(w);if(p>o)break}g.splice(c,0,i)}},r.prototype.addCommands=function(e){e&&Object.keys(e).forEach(function(i){var o=e[i];if(o){if(typeof o=="string")return this.bindKey(o,i);typeof o=="function"&&(o={exec:o}),typeof o=="object"&&(o.name||(o.name=i),this.addCommand(o))}},this)},r.prototype.removeCommands=function(e){Object.keys(e).forEach(function(i){this.removeCommand(e[i])},this)},r.prototype.bindKeys=function(e){Object.keys(e).forEach(function(i){this.bindKey(i,e[i])},this)},r.prototype._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},r.prototype.parseKeys=function(e){var i=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(p){return p}),o=i.pop(),s=M[o];if(M.FUNCTION_KEYS[s])o=M.FUNCTION_KEYS[s].toLowerCase();else if(i.length){if(i.length==1&&i[0]=="shift")return{key:o.toUpperCase(),hashId:-1}}else return{key:o,hashId:-1};for(var c=0,g=i.length;g--;){var w=M.KEY_MODS[i[g]];if(w==null)return typeof console<"u"&&console.error("invalid modifier "+i[g]+" in "+e),!1;c|=w}r Line truncated
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(t){t.selection.clearSelection();var n=t.getCursorPosition();t.selection.moveTo(n.row-1,Number.MAX_VALUE),t.insert(`
`),n.row===0&&t.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command palette",bindKey:a("F1","F1"),exec:function(t){t.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:a(null,null),exec:function(t){t.prompt({$type:"modes"})},readOnly:!0}];for(var l=1;l<9;l++)k.commands.push({name:"foldToLevel"+l,description:"Fold To Level "+l,level:l,exec:function(t){t.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})});ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(x,k,H){"use strict";var R=x("./lib/dom"),M=function(){function S(a){this.session=a,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return S.prototype.getRowLength=function(a){var l;return this.lineWidgets?l=this.lineWidgets[a]&&this.lineWidgets[a].rowCount||0:l=0,!this.$useWrapMode||!this.$wrapData[a]?1+l:this.$wrapData[a].length+1+l},S.prototype.$getWidgetScreenLength=function(){var a=0;return this.lineWidgets.forEach(function(l){l&&l.rowCount&&!l.hidden&&(a+=l.rowCount)}),a},S.prototype.$onChangeEditor=function(a){this.attach(a.editor)},S.prototype.attach=function(a){a&&a.widgetManager&&a.widgetManager!=this&&a.widgetManager.detach(),this.editor!=a&&(this.detach(),this.editor=a,a&&(a.widgetManager=this,a.renderer.on("beforeRender",this.measureWidgets),a.renderer.on("afterRender",this.renderWidgets)))},S.prototype.detach=function(a){var l=this.editor;if(l){this.editor=null,l.widgetManager=null,l.renderer.off("beforeRender",this.measureWidgets),l.renderer.off("afterRender",this.renderWidgets);var t=this.session.lineWidgets;t&&t.forEach(function(n){n&&n.el&&n.el.parentNode&&(n._inDocument=!1,n.el.parentNode.removeChild(n.el))})}},S.prototype.updateOnFold=function(a,l){var t=l.lineWidgets;if(!(!t||!a.action)){for(var n=a.data,r=n.start.row,e=n.end.row,i=a.action=="add",o=r+1;o<e;o++)t[o]&&(t[o].hidden=i);t[e]&&(i?t[r]?t[e].hidden=i:t[r]=t[e]:(t[r]==t[e]&&(t[r]=void 0),t[e].hidden=i))}},S.prototype.updateOnChange=function(a){var l=this.session.lineWidgets;if(l){var t=a.start.row,n=a.end.row-t;if(n!==0)if(a.action=="remove"){var r=l.splice(t+1,n);!l[t]&&r[r.length-1]&&(l[t]=r.pop()),r.forEach(function(i){i&&this.removeLineWidget(i)},this),this.$updateRows()}else{var e=new Array(n);l[t]&&l[t].column!=null&&a.start.column>l[t].column&&t++,e.unshift(t,0),l.splice.apply(l,e),this.$updateRows()}}},S.prototype.$updateRows=function(){var a=this.session.lineWidgets;if(a){var l=!0;a.forEach(function(t,n){if(t)for(l=!1,t.row=n;t.$oldWidget;)t.$oldWidget.row=n,t=t.$oldWidget}),l&&(this.session.lineWidgets=null)}},S.prototype.$registerLineWidget=function(a){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var l=this.session.lineWidgets[a.row];return l&&(a.$oldWidget=l,l.el&&l.el.parentNode&&(l.el.parentNode.removeChild(l.el),l._inDocument=!1)),this.session.lineWidgets[a.row]=a,a},S.prototype.addLineWidget=function(a){if(this.$registerLineWidget(a),a.session=this.session,!this.editor)return a;var l=this.editor.renderer;a.html&&!a.el&&(a.el=R.createElement("div"),a.el.innerHTML=a.html),a.text&&!a.el&&(a.el=R.createElement("div"),a.el.textContent=a.text),a.el&&(R.addCssClass(a.el,"ace_lineWidgetContainer"),a.className&&R.addCssClass(a.el,a.className),a.el.style.position="absolute",a.el.style.zIndex=5,l.container.appendChild(a.el),a._inDocument=!0,a.coverGutter||(a.el.style.zIndex=3),a.pixelHeight==null&&(a.pixelHeight=a.el.offsetHeight)),a.rowCount==null&&(a.rowCount=a.pixelHeight/l.layerConfig.lineHeight);var t=this.session.getFoldAt(a.row,0);if(a.$fold=t,t){var n=this.session.lineWidgets;a.row==t.end.row&&!n[t.start.row]?n[t.start.row]=a:a.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows(),this.renderWidgets(null,l),this.onWidgetChanged(a),a},S.prototype.removeLineWidget=function(a){if(a._inDocument=!1,a.session=null,a.el&&a.el.parentNode&&a.el.parentNode.removeChild(a.el),a.editor&&a.editor.destroy)try{a.editor.destroy()}catch{}if(this.session.lineWidgets){var l=this.session.lineWidgets[a.row];if(l==a)this.session.lineWidgets[a.row]=a.$oldWidget,a.$oldWidget&&this.onWidgetChanged(a.$oldWidget);else for(;l;){if(l.$oldWidget==a){l.$oldWidget=a.$oldWidget;break}l=l.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows()},S.prototype.getWidgetsAtRow=function(a){for(var l=this.session.lineWidgets,t=l&&l[a],n=[];t;)n.push Line truncated
`)==-1){var O=new s.fromPoints(E,E);O.end.column+=h.length,this.session.remove(O)}}else{var O=this.getSelectionRange();E=this.session.remove(O),this.clearSelection()}if(h==`
`||h==`\r
`){var D=L.getLine(E.row);if(E.column>D.search(/\S|$/)){var I=D.substr(E.column).search(/\S|$/);L.doc.removeInLine(E.row,E.column,E.column+I)}}this.clearSelection();var W=E.column,F=L.getState(E.row),D=L.getLine(E.row),B=T.checkOutdent(F,D,h);if(L.insert(E,h),_&&_.selection&&(_.selection.length==2?this.selection.setSelectionRange(new s(E.row,W+_.selection[0],E.row,W+_.selection[1])):this.selection.setSelectionRange(new s(E.row+_.selection[0],_.selection[1],E.row+_.selection[2],_.selection[3]))),this.$enableAutoIndent){if(L.getDocument().isNewLine(h)){var U=T.getNextLineIndent(F,D.slice(0,E.column),L.getTabString());L.insert({row:E.row+1,column:0},U)}B&&T.autoOutdent(F,L,E.row)}},m.prototype.autoIndent=function(){var h=this.session,C=h.getMode(),L,T;if(this.selection.isEmpty())L=0,T=h.doc.getLength()-1;else{var E=this.getSelectionRange();L=E.start.row,T=E.end.row}for(var _="",O="",I="",W,F,D,B=h.getTabString(),U=L;U<=T;U++)U>0&&(_=h.getState(U-1),O=h.getLine(U-1),I=C.getNextLineIndent(_,O,B)),W=h.getLine(U),F=C.$getIndent(W),I!==F&&(F.length>0&&(D=new s(U,0,U,F.length),h.remove(D)),I.length>0&&h.insert({row:U,column:0},I)),C.autoOutdent(_,h,U)},m.prototype.onTextInput=function(h,C){if(!C)return this.keyBinding.onTextInput(h);this.startOperation({command:{name:"insertstring"}});var L=this.applyComposition.bind(this,h,C);this.selection.rangeCount?this.forEachSelection(L):L(),this.endOperation()},m.prototype.applyComposition=function(h,C){if(C.extendLeft||C.extendRight){var L=this.selection.getRange();L.start.column-=C.extendLeft,L.end.column+=C.extendRight,L.start.column<0&&(L.start.row--,L.start.column+=this.session.getLine(L.start.row).length+1),this.selection.setRange(L),!h&&!L.isEmpty()&&this.remove()}if((h||!this.selection.isEmpty())&&this.insert(h,!0),C.restoreStart||C.restoreEnd){var L=this.selection.getRange();L.start.column-=C.restoreStart,L.end.column-=C.restoreEnd,this.selection.setRange(L)}},m.prototype.onCommandKey=function(h,C,L){return this.keyBinding.onCommandKey(h,C,L)},m.prototype.setOverwrite=function(h){this.session.setOverwrite(h)},m.prototype.getOverwrite=function(){return this.session.getOverwrite()},m.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},m.prototype.setScrollSpeed=function(h){this.setOption("scrollSpeed",h)},m.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},m.prototype.setDragDelay=function(h){this.setOption("dragDelay",h)},m.prototype.getDragDelay=function(){return this.getOption("dragDelay")},m.prototype.setSelectionStyle=function(h){this.setOption("selectionStyle",h)},m.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},m.prototype.setHighlightActiveLine=function(h){this.setOption("highlightActiveLine",h)},m.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},m.prototype.setHighlightGutterLine=function(h){this.setOption("highlightGutterLine",h)},m.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},m.prototype.setHighlightSelectedWord=function(h){this.setOption("highlightSelectedWord",h)},m.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},m.prototype.setAnimatedScroll=function(h){this.renderer.setAnimatedScroll(h)},m.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},m.prototype.setShowInvisibles=function(h){this.renderer.setShowInvisibles(h)},m.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},m.prototype.setDisplayIndentGuides=function(h){this.renderer.setDisplayIndentGuides(h)},m.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},m.prototype.setHighlightIndentGuides=function(h){this.renderer.setHighlightIndentGuides(h)},m.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},m.prototype.setShowPrintMargin=function(h){this.renderer.setShowPrintMargin(h)},m.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},m.prototype.setPrintMarginColumn=function(h){this.renderer.setPrintMarginColumn(h)},m.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},m.prototype.setReadOnly=function(h){this.setOption("readOnly",h)},m.prototype.getReadOnly=function(){return this.getOption("readOnly")},m.prototype.setBehavioursEnabled=function(h){this.setOption("behavioursEnabled",h)},m.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},m.prototype.setWrapBehavioursEnabled=function(h){this.setOption("wrapBehavioursEnabled",h)},m.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},m.prototype.setShowFoldWidgets=function(h){this.setOption("showFoldWidgets",h)},m.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},m.prototype.setFadeFoldWidgets=function(h){this.setOption("fadeFoldWidgets",h)},m.prototype.getF Line truncated
`){var O=L.getLine(C.end.row);/^\s+$/.test(O)&&(C.end.column=O.length)}}E&&(C=E)}this.session.remove(C),this.clearSelection()},m.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},m.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},m.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},m.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var h=this.getSelectionRange();h.start.column==h.end.column&&h.start.row==h.end.row&&(h.end.column=0,h.end.row++),this.session.remove(h),this.clearSelection()},m.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var h=this.getCursorPosition();this.insert(`
`),this.moveCursorToPosition(h)},m.prototype.setGhostText=function(h,C){this.session.widgetManager||(this.session.widgetManager=new y(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(h,C)},m.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},m.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var h=this.getCursorPosition(),C=h.column;if(C!==0){var L=this.session.getLine(h.row),T,E;C<L.length?(T=L.charAt(C)+L.charAt(C-1),E=new s(h.row,C-1,h.row,C+1)):(T=L.charAt(C-1)+L.charAt(C-2),E=new s(h.row,C-2,h.row,C)),this.session.replace(E,T),this.session.selection.moveToPosition(E.end)}}},m.prototype.toLowerCase=function(){var h=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var C=this.getSelectionRange(),L=this.session.getTextRange(C);this.session.replace(C,L.toLowerCase()),this.selection.setSelectionRange(h)},m.prototype.toUpperCase=function(){var h=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var C=this.getSelectionRange(),L=this.session.getTextRange(C);this.session.replace(C,L.toUpperCase()),this.selection.setSelectionRange(h)},m.prototype.indent=function(){var h=this.session,C=this.getSelectionRange();if(C.start.row<C.end.row){var L=this.$getSelectedRows();h.indentRows(L.first,L.last," ");return}else if(C.start.column<C.end.column){var T=h.getTextRange(C);if(!/^\s+$/.test(T)){var L=this.$getSelectedRows();h.indentRows(L.first,L.last," ");return}}var E=h.getLine(C.start.row),_=C.start,O=h.getTabSize(),I=h.documentToScreenColumn(_.row,_.column);if(this.session.getUseSoftTabs())var W=O-I%O,F=a.stringRepeat(" ",W);else{for(var W=I%O;E[C.start.column-1]==" "&&W;)C.start.column--,W--;this.selection.setSelectionRange(C),F=" "}return this.insert(F)},m.prototype.blockIndent=function(){var h=this.$getSelectedRows();this.session.indentRows(h.first,h.last," ")},m.prototype.blockOutdent=function(){var h=this.session.getSelection();this.session.outdentRows(h.getRange())},m.prototype.sortLines=function(){for(var h=this.$getSelectedRows(),C=this.session,L=[],T=h.first;T<=h.last;T++)L.push(C.getLine(T));L.sort(function(O,I){return O.toLowerCase()<I.toLowerCase()?-1:O.toLowerCase()>I.toLowerCase()?1:0});for(var E=new s(0,0,0,0),T=h.first;T<=h.last;T++){var _=C.getLine(T);E.start.row=T,E.end.row=T,E.end.column=_.length,C.replace(E,L[T-h.first])}},m.prototype.toggleCommentLines=function(){var h=this.session.getState(this.getCursorPosition().row),C=this.$getSelectedRows();this.session.getMode().toggleCommentLines(h,this.session,C.first,C.last)},m.prototype.toggleBlockComment=function(){var h=this.getCursorPosition(),C=this.session.getState(h.row),L=this.getSelectionRange();this.session.getMode().toggleBlockComment(C,this.session,L,h)},m.prototype.getNumberAt=function(h,C){var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g;L.lastIndex=0;for(var T=this.session.getLine(h);L.lastIndex<C;){var E=L.exec(T);if(E.index<=C&&E.index+E[0].length>=C){var _={value:E[0],start:E.index,end:E.index+E[0].length};return _}}return null},m.prototype.modifyNumber=function(h){var C=this.selection.getCursor().row,L=this.selection.getCursor().column,T=new s(C,L-1,C,L),E=this.session.getTextRange(T);if(!isNaN(parseFloat(E))&&isFinite(E)){var _=this.getNumberAt(C,L);if(_){var O=_.value.indexOf(".")>=0?_.start+_.value.indexOf(".")+1:_.end,I=_.start+_.value.length-O,W=parseFloat(_.value);W*=Math.pow(10,I),O!==_.end&&L<O?h*=Math.pow(10,_.end-L-1):h*=Math.pow(10,_.end-L),W+=h,W/=Math.pow(10,I);var F=W.toFixed(I),D=new s(C,_.start,C,_.end);this.session.replace(D,F),this.moveCursorTo(C,Math.max(_.start+1,L+F.length-_.value.length))}}else this.toggleWord()},m.prototype.toggleWord=function(){var h=this.selection.getCursor().row,C=this.selection.getCursor().column;this.selection.selectWord();var L=this.getSelectedText(),T=this.selection.getWordRange().start.column,E=L.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),_=C-T-1;_<0&&(_=0);var O=0,I=0,W=this;L.match(/[A-Za-z0-9_]+/)&&E.forEach(function(Y,V){I=O+Y.length,_>=O&&_<=I&&(L=Y,W.selection.clearSelection(),W.moveCursorTo(h,O+T),W.selection.selectTo(h,I+T)),O=I});for(var F=this.$toggleWordPairs,D,B=0;B<F.length;B++)for(var U=F[B],P=0;P<=1;P++){var G=+!P,z=L.match(new RegExp("^\\s?_?("+a.escapeRegExp(U[P])+")\\s?$","i"));if(z){var K=L.match(new RegExp("([_]|^|\\s)("+a.escapeRegExp(z[1])+")($|\\s)","g"));K&&(D=L.replace(new RegExp(a.escapeRegExp(U[P]),"i"),function(Y){var V=U[G];return Y.toUpperCase()==Y?V=V.toUpperCase():Y.charAt(0).toUpperCase()==Y.charAt(0)&&(V=V.substr(0,0)+U[G].charAt(0).toUpperCase()+V.substr(1)),V}),this.insert(D),D="")}}},m.prototype.findLinkAt=function(h,C){var L,T,E=this.session.getLine(h),_=E.split(/((?:https?|ftp):\/\/[\S]+)/),O=C;O<0&&(O=0);var I=0,W=0,F;try{for(var D=R(_),B=D.next();!B.done;B=D.next()){var U=B.value;if(W=I+U.length,O>=I&&O<=W&&U.match(/((?:https?|ftp):\/\/[\S]+)/)){F=U.replace(/[\s:.,'";}\]]+$/,"");break}I=W}}catch( Line truncated
---
`+e(this.$redoStack)},d}();R.prototype.hasUndo=R.prototype.canUndo,R.prototype.hasRedo=R.prototype.canRedo,R.prototype.isClean=R.prototype.isAtBookmark,R.prototype.markClean=R.prototype.bookmark;function M(d,v){for(var $=v;$--;){var f=d[$];if(f&&!f[0].ignore){for(;$<v-1;){var u=s(d[$],d[$+1]);d[$]=u[0],d[$+1]=u[1],$++}return!0}}}var S=x("./range").Range,a=S.comparePoints,l=S.comparePoints;function t(d){var v=d.action=="insert",$=d.start,f=d.end,u=(f.row-$.row)*(v?1:-1),A=(f.column-$.column)*(v?1:-1);v&&(f=$);for(var m in this.marks){var h=this.marks[m],C=l(h,$);if(!(C<0)){if(C===0&&v)if(h.bias==1)C=1;else{h.bias==-1;continue}var L=v?C:l(h,f);if(L>0){h.row+=u,h.column+=h.row==f.row?A:0;continue}!v&&L<=0&&(h.row=$.row,h.column=$.column,L===0&&(h.bias=1))}}}function n(d){return{row:d.row,column:d.column}}function r(d){return{start:n(d.start),end:n(d.end),action:d.action,lines:d.lines.slice()}}function e(d){if(d=d||this,Array.isArray(d))return d.map(e).join(`
`);var v="";return d.action?(v=d.action=="insert"?"+":"-",v+="["+d.lines+"]"):d.value&&(Array.isArray(d.value)?v=d.value.map(i).join(`
`):v=i(d.value)),d.start&&(v+=i(d)),(d.id||d.rev)&&(v+=" ("+(d.id||d.rev)+")"),v}function i(d){return d.start.row+":"+d.start.column+"=>"+d.end.row+":"+d.end.column}function o(d,v){var $=d.action=="insert",f=v.action=="insert";if($&&f)if(a(v.start,d.end)>=0)g(v,d,-1);else if(a(v.start,d.start)<=0)g(d,v,1);else return null;else if($&&!f)if(a(v.start,d.end)>=0)g(v,d,-1);else if(a(v.end,d.start)<=0)g(d,v,-1);else return null;else if(!$&&f)if(a(v.start,d.start)>=0)g(v,d,1);else if(a(v.start,d.start)<=0)g(d,v,1);else return null;else if(!$&&!f)if(a(v.start,d.start)>=0)g(v,d,1);else if(a(v.end,d.start)<=0)g(d,v,-1);else return null;return[v,d]}function s(d,v){for(var $=d.length;$--;)for(var f=0;f<v.length;f++)if(!o(d[$],v[f])){for(;$<d.length;){for(;f--;)o(v[f],d[$]);f=v.length,$++}return[d,v]}return d.selectionBefore=v.selectionBefore=d.selectionAfter=v.selectionAfter=null,[v,d]}function c(d,v){var $=d.action=="insert",f=v.action=="insert";if($&&f)a(d.start,v.start)<0?g(v,d,1):g(d,v,1);else if($&&!f)a(d.start,v.end)>=0?g(d,v,-1):(a(d.start,v.start)<=0||g(d,S.fromPoints(v.start,d.start),-1),g(v,d,1));else if(!$&&f)a(v.start,d.end)>=0?g(v,d,-1):(a(v.start,d.start)<=0||g(v,S.fromPoints(d.start,v.start),-1),g(d,v,1));else if(!$&&!f)if(a(v.start,d.end)>=0)g(v,d,-1);else if(a(v.end,d.start)<=0)g(d,v,-1);else{var u,A;return a(d.start,v.start)<0&&(u=d,d=p(d,v.start)),a(d.end,v.end)>0&&(A=p(d,v.end)),w(v.end,d.start,d.end,-1),A&&!u&&(d.lines=A.lines,d.start=A.start,d.end=A.end,A=d),[v,u,A].filter(Boolean)}return[v,d]}function g(d,v,$){w(d.start,v.start,v.end,$),w(d.end,v.start,v.end,$)}function w(d,v,$,f){d.row==(f==1?v:$).row&&(d.column+=f*($.column-v.column)),d.row+=f*($.row-v.row)}function p(d,v){var $=d.lines,f=d.end;d.end=n(v);var u=d.end.row-d.start.row,A=$.splice(u,$.length),m=u?v.column:v.column-d.start.column;$.push(A[0].substring(0,m)),A[0]=A[0].substr(m);var h={start:n(v),end:f,lines:A,action:d.action};return h}function b(d,v){v=r(v);for(var $=d.length;$--;){for(var f=d[$],u=0;u<f.length;u++){var A=f[u],m=c(A,v);v=m[0],m.length!=2&&(m[2]?(f.splice(u+1,1,m[1],m[2]),u++):m[1]||(f.splice(u,1),u--))}f.length||d.splice($,1)}return d}function y(d,v){for(var $=0;$<v.length;$++)for(var f=v[$],u=0;u<f.length;u++)b(d,f[u])}k.UndoManager=R});ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(x,k,H){"use strict";var R=x("../lib/dom"),M=function(){function S(a,l){this.element=a,this.canvasHeight=l||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return S.prototype.moveContainer=function(a){R.translate(this.element,0,-(a.firstRowScreen*a.lineHeight%this.canvasHeight)-a.offset*this.$offsetCoefficient)},S.prototype.pageChanged=function(a,l){return Math.floor(a.firstRowScreen*a.lineHeight/this.canvasHeight)!==Math.floor(l.firstRowScreen*l.lineHeight/this.canvasHeight)},S.prototype.computeLineTop=function(a,l,t){var n=l.firstRowScreen*l.lineHeight,r=Math.floor(n/this.canvasHeight),e=t.documentToScreenRow(a,0)*l.lineHeight;return e-r*this.canvasHeight},S.prototype.computeLineHeight=function(a,l,t){return l.lineHeight*t.getRowLineCount(a)},S.prototype.getLength=function(){return this.cells.length},S.prototype.get=function(a){return this.cells[a]},S.prototype.shift=function(){this.$cacheCell(this.cells.shift())},S.prototype.pop=function(){this.$cacheCell(this.cells.pop())},S.prototype.push=function(a){if(Array.isArray(a)){this.cells.push.apply(this.cells,a);for(var l=R.createFragment(this.element),t=0;t<a.length;t++)l.appendChild(a[t].element);this.element.appendChild(l)}else this.cells.push(a),this.element.appendChild(a.element)},S.prototype.unshift=function(a){if(Array.isArray(a)){this.cells.unshift.apply(this.cells,a);for(var l=R.createFragment(this.element),t=0;t<a.length;t++)l.appendChild(a[t].element);this.element.firstChild?this.element.insertBefore(l,this.element.firstChild):this.element.appendChild(l)}else this.cells.unshift(a),this.element.insertAdjacentElement("afterbegin",a.element)},S.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},S.prototype.$cacheCell=function(a){a&&(a.element.remove(),this.cellCache.push(a))},S.prototype.createCell=function(a,l,t,n){var r=this.cellCache.pop();if(!r){var e=R.createElement("div");n&&n(e),this.element.appendChild(e),r={element:e,text:"",row:a}}return r.row=a,r},S}();k.Lines=M});ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(x,k,H){"use strict";var R=x("../lib/dom"),M=x("../lib/oop"),S=x("../lib/lang"),a=x("../lib/event_emitter").EventEmitter,l=x("./lines").Lines,t=x("../config").nls,n=function(){function e(i){this.element=R.createElement("div"),this.element.className="ace_layer ace_gutter-layer",i.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotati Line truncated
`&&e.getNewLineMode()!="windows",o=i?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=o)return this.EOL_CHAR=o,!0},r.prototype.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},r.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},r.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},r.prototype.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(i){this._signal("changeCharacterSize",i)}.bind(this)),this.$pollSizeChanges()},r.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},r.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},r.prototype.setSession=function(e){this.session=e,e&&this.$computeTabString()},r.prototype.setShowInvisibles=function(e){return this.showInvisibles==e?!1:(this.showInvisibles=e,typeof e=="string"?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},r.prototype.setDisplayIndentGuides=function(e){return this.displayIndentGuides==e?!1:(this.displayIndentGuides=e,this.$computeTabString(),!0)},r.prototype.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides===e?!1:(this.$highlightIndentGuides=e,e)},r.prototype.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var i=this.$tabStrings=[0],o=1;o<e+1;o++)if(this.showTabs){var s=this.dom.createElement("span");s.className="ace_invisible ace_invisible_tab",s.textContent=S.stringRepeat(this.TAB_CHAR,o),i.push(s)}else i.push(this.dom.createTextNode(S.stringRepeat(" ",o),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var c="ace_indent-guide",g=this.showSpaces?" ace_invisible ace_invisible_space":"",w=this.showSpaces?S.stringRepeat(this.SPACE_CHAR,this.tabSize):S.stringRepeat(" ",this.tabSize),p=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?S.stringRepeat(this.TAB_CHAR,this.tabSize):w,s=this.dom.createElement("span");s.className=c+g,s.textContent=w,this.$tabStrings[" "]=s;var s=this.dom.createElement("span");s.className=c+p,s.textContent=b,this.$tabStrings[" "]=s}},r.prototype.updateLines=function(e,i,o){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var s=Math.max(i,e.firstRow),c=Math.min(o,e.lastRow),g=this.element.childNodes,w=0,b=e.firstRow;b<s;b++){var y=this.session.getFoldLine(b);if(y)if(y.containsRow(s)){s=y.start.row;break}else b=y.end.row;w++}for(var p=!1,b=s,y=this.session.getNextFoldLine(b),d=y?y.start.row:1/0;b>d&&(b=y.end.row+1,y=this.session.getNextFoldLine(b,y),d=y?y.start.row:1/0),!(b>c);){var v=g[w++];if(v){this.dom.removeChildren(v),this.$renderLine(v,b,b==d?y:!1),p&&(v.style.top=this.$lines.computeLineTop(b,e,this.session)+"px");var $=e.lineHeight*this.session.getRowLength(b)+"px";v.style.height!=$&&(p=!0,v.style.height=$)}b++}if(p)for(;w<this.$lines.cells.length;){var f=this.$lines.cells[w++];f.element.style.top=this.$lines.computeLineTop(f.row,e,this.session)+"px"}},r.prototype.scrollLines=function(e){var i=this.config;if(this.config=e,this.$lines.pageChanged(i,e))return this.update(e);this.$lines.moveContainer(e);var o=e.lastRow,s=i?i.lastRow:-1;if(!i||s<e.firstRow)return this.update(e);if(o<i.firstRow)return this.update(e);if(!i||i.lastRow<e.firstRow)return this.update(e);if(e.lastRow<i.firstRow)return this.update(e);if(i.firstRow<e.firstRow)for(var c=this.session.getFoldedRowCount(i.firstRow,e.firstRow-1);c>0;c--)this.$lines.shift();if(i.lastRow>e.lastRow)for(var c=this.session.getFoldedRowCount(e.lastRow+1,i.lastRow);c>0;c--)this.$lines.pop();e.firstRow<i.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,i.firstRow-1)),e.lastRow>i.lastRow&&this.$lines.push(this.$renderLinesFragment(e,i.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},r.prototype.$renderLinesFragment=function(e,i,o){for(var s=[],c=i,g=this.session.getNextFoldLine(c),w=g?g.start.row:1/0;c>w&&(c=g.end.row+1,g=this.session.getNextFoldLine(c,g),w=g?g.start.row:1/0),!(c>o);){var p=this.$lines.createCell(c,e,this.session),b=p.element;this.dom.removeChildren(b),M.setStyle(b.style,"height",this.$lines.computeLineHeight(c,e,this.session)+"px"),M.setStyle(b.style,"top",this.$lines.computeLineTop(c,e,this.session)+"px"),this.$renderLine(b,c,c==w?g:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",s.push(p),c++}return s},r.prototype.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var i=e.firstRow,o=e.lastRow,s=this.$lines;s.getLength();)s.pop();s.push(this.$renderLinesFragment(e,i,o))},r.prototype.$renderToken=function(e,i,o,s){for(var c=this,g=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\uLine truncated
position: absolute;
background: rgba(128, 128, 128, 0.6);
-moz-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #bbb;
border-radius: 2px;
z-index: 8;
}
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
position: absolute;
z-index: 6;
background: none;
overflow: hidden!important;
}
.ace_editor>.ace_sb-v {
z-index: 6;
right: 0;
top: 0;
width: 12px;
}
.ace_editor>.ace_sb-v div {
z-index: 8;
right: 0;
width: 100%;
}
.ace_editor>.ace_sb-h {
bottom: 0;
left: 0;
height: 12px;
}
.ace_editor>.ace_sb-h div {
bottom: 0;
height: 100%;
}
.ace_editor>.ace_sb_grabbed {
z-index: 8;
background: #000;
}`,"ace_scrollbar.css",!1);var t=function(){function e(i,o){this.element=S.createElement("div"),this.element.className="ace_sb"+o,this.inner=S.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,i.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return e.prototype.setVisible=function(i){this.element.style.display=i?"":"none",this.isVisible=i,this.coeff=1},e}();M.implement(t.prototype,l);var n=function(e){R(i,e);function i(o,s){var c=e.call(this,o,"-v")||this;return c.scrollTop=0,c.scrollHeight=0,c.parent=o,c.width=c.VScrollWidth,c.renderer=s,c.inner.style.width=c.element.style.width=(c.width||15)+"px",c.$minWidth=0,c}return i.prototype.onMouseDown=function(o,s){if(o==="mousedown"&&!(a.getButton(s)!==0||s.detail===2)){if(s.target===this.inner){var c=this,g=s.clientY,w=function(f){g=f.clientY},p=function(){clearInterval(v)},b=s.clientY,y=this.thumbTop,d=function(){if(g!==void 0){var f=c.scrollTopFromThumbTop(y+g-b);f!==c.scrollTop&&c._emit("scroll",{data:f})}};a.capture(this.inner,w,p);var v=setInterval(d,20);return a.preventDefault(s)}var $=s.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop($)}),a.preventDefault(s)}},i.prototype.getHeight=function(){return this.height},i.prototype.scrollTopFromThumbTop=function(o){var s=o*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return s=s>>0,s<0?s=0:s>this.pageHeight-this.viewHeight&&(s=this.pageHeight-this.viewHeight),s},i.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},i.prototype.setHeight=function(o){this.height=Math.max(0,o),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},i.prototype.setScrollHeight=function(o,s){this.pageHeight===o&&!s||(this.pageHeight=o,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},i.prototype.setScrollTop=function(o){this.scrollTop=o,o<0&&(o=0),this.thumbTop=o*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},i}(t);n.prototype.setInnerHeight=n.prototype.setScrollHeight;var r=function(e){R(i,e);function i(o,s){var c=e.call(this,o,"-h")||this;return c.scrollLeft=0,c.scrollWidth=0,c.height=c.HScrollHeight,c.inner.style.height=c.element.style.height=(c.height||12)+"px",c.renderer=s,c}return i.prototype.onMouseDown=function(o,s){if(o==="mousedown"&&!(a.getButton(s)!==0||s.detail===2)){if(s.target===this.inner){var c=this,g=s.clientX,w=function(f){g=f.clientX},p=function(){clearInterval(v)},b=s.clientX,y=this.thumbLeft,d=function(){if(g!==void 0){var f=c.scrollLeftFromThumbLeft(y+g-b);f!==c.scrollLeft&&c._emit("scroll",{data:f})}};a.capture(this.inner,w,p);var v=setInterval(d,20);return a.preventDefault(s)}var $=s.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft($)}),a.preventDefault(s)}},i.prototype.getHeight=function(){return this.isVisible?this.height:0},i.prototype.scrollLeftFromThumbLeft=function(o){var s=o*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return s=s>>0,s<0?s=0:s>this.pageWidth-this.viewWidth&&(s=this.pageWidth-this.viewWidth),s},i.prototype.setWidth=function(o){this.width=Math.max(0,o),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},i.prototype.setScrollWidth=function(o,s){this.pageWidth===o&&!s||(this.pageWidth=o,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},i.prototype.setScrollLeft=function(o){this.scrollLeft=o,o<0&&(o=0),this.thumbLeft=o*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},i}(t);r.prototype.setInnerWidth=r.prototype.setScrollWidth,k.ScrollBar=n,k.ScrollBarV=n,k.ScrollBarH=r,k.VScrollBar=n,k.HScrollBar=r});ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(x,k,H){"use strict";var R=x("./lib/event"),M=function(){function S(a,l){this.onRender=a,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=l||window;var t=this;th Line truncated
.ace_br1 {border-top-left-radius : 3px;}
.ace_br2 {border-top-right-radius : 3px;}
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
.ace_br4 {border-bottom-right-radius: 3px;}
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
.ace_br8 {border-bottom-left-radius : 3px;}
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_editor {
position: relative;
overflow: hidden;
padding: 0;
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
direction: ltr;
text-align: left;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.ace_scroller {
position: absolute;
overflow: hidden;
top: 0;
bottom: 0;
background-color: inherit;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
cursor: text;
}
.ace_content {
position: absolute;
box-sizing: border-box;
min-width: 100%;
contain: style size layout;
font-variant-ligatures: no-common-ligatures;
}
.ace_keyboard-focus:focus {
box-shadow: inset 0 0 0 2px #5E9ED6;
outline: none;
}
.ace_dragging .ace_scroller:before{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
content: '';
background: rgba(250, 250, 250, 0.01);
z-index: 1000;
}
.ace_dragging.ace_dark .ace_scroller:before{
background: rgba(0, 0, 0, 0.01);
}
.ace_gutter {
position: absolute;
overflow : hidden;
width: auto;
top: 0;
bottom: 0;
left: 0;
cursor: default;
z-index: 4;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
contain: style size layout;
}
.ace_gutter-active-line {
position: absolute;
left: 0;
right: 0;
}
.ace_scroller.ace_scroll-left:after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
pointer-events: none;
}
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
position: absolute;
top: 0;
left: 0;
right: 0;
padding-left: 19px;
padding-right: 6px;
background-repeat: no-repeat;
}
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
margin-left: -14px;
float: left;
}
.ace_gutter-cell .ace_gutter_annotation {
margin-left: -19px;
float: left;
}
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
background-repeat: no-repeat;
background-position: 2px center;
}
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
background-repeat: no-repeat;
background-position: 2px center;
}
.ace_gutter-cell.ace_info, .ace_icon.ace_info {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
background-repeat: no-repeat;
background-position: 2px center;
}
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
}
.ace_icon_svg.ace_error {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
background-color: crimson;
}
.ace_icon_svg.ace_warning {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
background-color: darkorange;
}
.ace_icon_svg.ace_info {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
background-color: royalblue;
}
.ace_icon_svg.ace_error_fold {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
background-color: crimson;
}
.ace_icon_svg.ace_warning_fold {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
background-color: darkorange;
}
.ace_scrollbar {
contain: strict;
position: absolute;
right: 0;
bottom: 0;
z-index: 6;
}
.ace_scrollbar-inner {
position: absolute;
cursor: text;
left: 0;
top: 0;
}
.ace_scrollbar-v{
overflow-x: hidden;
overflow-y: scroll;
top: 0;
}
.ace_scrollbar-h {
overflow-x: scroll;
overflow-y: hidden;
left: 0;
}
.ace_print-margin {
position: absolute;
height: 100%;
}
.ace_text-input {
position: absolute;
z-index: 0;
width: 0.5em;
height: 1em;
opacity: 0;
background: transparent;
-moz-appearance: none;
appearance: none;
border: none;
resize: none;
outline: none;
overflow: hidden;
font: inherit;
padding: 0 1px;
margin: 0 -1px;
contain: strict;
-ms-user-select: text;
-moz-user-select: text;
-webkit-user-select: text;
user-select: text;
/*with \`pre-line\` chrome inserts &nbsp; instead of space*/
white-space: pre!important;
}
.ace_text-input.ace_composition {
background: transparent;
color: inherit;
z-index: 1000;
opacity: 1;
}
.ace_composition_placeholder { color: transparent }
.ace_composition_marker {
border-bottom: 1px solid;
position: absolute;
border-radius: 0;
margin-top: 1px;
}
[ace_nocontext=true] {
transform: none!important;
filter: none!important;
clip-path: none!important;
mask : none!important;
contain: none!important;
perspective: none!important;
mix-blend-mode: initial!important;
z-index: auto;
}
.ace_layer {
z-index: 1;
position: absolute;
overflow: hidden;
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
word-wrap: normal;
white-space: pre;
height: 100%;
width: 100%;
box-sizing: border-box;
/* setting pointer-events: auto; on node under the mouse, which changes
during scroll, will break mouse wheel scrolling in Safari */
pointer-events: none;
}
.ace_gutter-layer {
position: relative;
width: auto;
text-align: right;
pointer-events: auto;
height: 1000000px;
contain: style size layout;
}
.ace_text-layer {
font: inherit !important;
position: absolute;
height: 1000000px;
width: 1000000px;
contain: style size layout;
}
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
contain: style size layout;
position: absolute;
top: 0;
left: 0;
right: 0;
}
.ace_hidpi .ace_text-layer,
.ace_hidpi .ace_gutter-layer,
.ace_hidpi .ace_content,
.ace_hidpi .ace_gutter {
contain: strict;
}
.ace_hidpi .ace_text-layer > .ace_line,
.ace_hidpi .ace_text-layer > .ace_line_group {
contain: strict;
}
.ace_cjk {
display: inline-block;
text-align: center;
}
.ace_cursor-layer {
z-index: 4;
}
.ace_cursor {
z-index: 4;
position: absolute;
box-sizing: border-box;
border-left: 2px solid;
/* workaround for smooth cursor repaintng whole screen in chrome */
transform: translatez(0);
}
.ace_multiselect .ace_cursor {
border-left-width: 1px;
}
.ace_slim-cursors .ace_cursor {
border-left-width: 1px;
}
.ace_overwrite-cursors .ace_cursor {
border-left-width: 0;
border-bottom: 1px solid;
}
.ace_hidden-cursors .ace_cursor {
opacity: 0.2;
}
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
opacity: 0;
}
.ace_smooth-blinking .ace_cursor {
transition: opacity 0.18s;
}
.ace_animate-blinking .ace_cursor {
animation-duration: 1000ms;
animation-timing-function: step-end;
animation-name: blink-ace-animate;
animation-iteration-count: infinite;
}
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
animation-duration: 1000ms;
animation-timing-function: ease-in-out;
animation-name: blink-ace-animate-smooth;
}
@keyframes blink-ace-animate {
from, to { opacity: 1; }
60% { opacity: 0; }
}
@keyframes blink-ace-animate-smooth {
from, to { opacity: 1; }
45% { opacity: 1; }
60% { opacity: 0; }
85% { opacity: 0; }
}
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
position: absolute;
z-index: 3;
}
.ace_marker-layer .ace_selection {
position: absolute;
z-index: 5;
}
.ace_marker-layer .ace_bracket {
position: absolute;
z-index: 6;
}
.ace_marker-layer .ace_error_bracket {
position: absolute;
border-bottom: 1px solid #DE5555;
border-radius: 0;
}
.ace_marker-layer .ace_active-line {
position: absolute;
z-index: 2;
}
.ace_marker-layer .ace_selected-word {
position: absolute;
z-index: 4;
box-sizing: border-box;
}
.ace_line .ace_fold {
box-sizing: border-box;
display: inline-block;
height: 11px;
margin-top: -2px;
vertical-align: middle;
background-image:
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
background-repeat: no-repeat, repeat-x;
background-position: center center, top left;
color: transparent;
border: 1px solid black;
border-radius: 2px;
cursor: pointer;
pointer-events: auto;
}
.ace_dark .ace_fold {
}
.ace_fold:hover{
background-image:
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
}
.ace_tooltip {
background-color: #f5f5f5;
border: 1px solid gray;
border-radius: 1px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
color: black;
max-width: 100%;
padding: 3px 4px;
position: fixed;
z-index: 999999;
box-sizing: border-box;
cursor: default;
white-space: pre;
word-wrap: break-word;
line-height: normal;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
pointer-events: none;
}
.ace_tooltip.ace_dark {
background-color: #636363;
color: #fff;
}
.ace_tooltip:focus {
outline: 1px solid #5E9ED6;
}
.ace_icon {
display: inline-block;
width: 18px;
vertical-align: top;
}
.ace_icon_svg {
display: inline-block;
width: 12px;
vertical-align: top;
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: 12px;
-webkit-mask-position: center;
}
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
padding-right: 13px;
}
.ace_fold-widget {
box-sizing: border-box;
margin: 0 -12px 0 1px;
display: none;
width: 11px;
vertical-align: top;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
background-repeat: no-repeat;
background-position: center;
border-radius: 3px;
border: 1px solid transparent;
cursor: pointer;
}
.ace_folding-enabled .ace_fold-widget {
display: inline-block;
}
.ace_fold-widget.ace_end {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
}
.ace_fold-widget.ace_closed {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
}
.ace_fold-widget:hover {
border: 1px solid rgba(0, 0, 0, 0.3);
background-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}
.ace_fold-widget:active {
border: 1px solid rgba(0, 0, 0, 0.4);
background-color: rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}
/**
* Dark version for fold widgets
*/
.ace_dark .ace_fold-widget {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
}
.ace_dark .ace_fold-widget.ace_end {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
}
.ace_dark .ace_fold-widget.ace_closed {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
}
.ace_dark .ace_fold-widget:hover {
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
background-color: rgba(255, 255, 255, 0.1);
}
.ace_dark .ace_fold-widget:active {
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}
.ace_inline_button {
border: 1px solid lightgray;
display: inline-block;
margin: -1px 8px;
padding: 0 5px;
pointer-events: auto;
cursor: pointer;
}
.ace_inline_button:hover {
border-color: gray;
background: rgba(200,200,200,0.2);
display: inline-block;
pointer-events: auto;
}
.ace_fold-widget.ace_invalid {
background-color: #FFB4B4;
border-color: #DE5555;
}
.ace_fade-fold-widgets .ace_fold-widget {
transition: opacity 0.4s ease 0.05s;
opacity: 0;
}
.ace_fade-fold-widgets:hover .ace_fold-widget {
transition: opacity 0.05s ease 0.05s;
opacity:1;
}
.ace_underline {
text-decoration: underline;
}
.ace_bold {
font-weight: bold;
}
.ace_nobold .ace_bold {
font-weight: normal;
}
.ace_italic {
font-style: italic;
}
.ace_error-marker {
background-color: rgba(255, 0, 0,0.2);
position: absolute;
z-index: 9;
}
.ace_highlight-marker {
background-color: rgba(255, 255, 0,0.2);
position: absolute;
z-index: 8;
}
.ace_mobile-menu {
position: absolute;
line-height: 1.5;
border-radius: 4px;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
background: white;
box-shadow: 1px 3px 2px grey;
border: 1px solid #dcdcdc;
color: black;
}
.ace_dark > .ace_mobile-menu {
background: #333;
color: #ccc;
box-shadow: 1px 3px 2px grey;
border: 1px solid #444;
}
.ace_mobile-button {
padding: 2px;
cursor: pointer;
overflow: hidden;
}
.ace_mobile-button:hover {
background-color: #eee;
opacity:1;
}
.ace_mobile-button:active {
background-color: #ddd;
}
.ace_placeholder {
font-family: arial;
transform: scale(0.9);
transform-origin: left;
white-space: pre;
opacity: 0.7;
margin: 0 10px;
}
.ace_ghost_text {
opacity: 0.5;
font-style: italic;
white-space: pre;
}`});ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(x,k,H){"use strict";var R=x("../lib/dom"),M=x("../lib/oop"),S=x("../lib/event_emitter").EventEmitter,a=function(){function l(t,n){this.canvas=R.createElement("canvas"),this.renderer=n,this.pixelRatio=1,this.maxHeight=n.layerConfig.maxHeight,this.lineHeight=n.layerConfig.lineHeight,this.canvasHeight=t.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=t.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},t.element.appendChild(this.canvas)}return l.prototype.$updateDecorators=function(t){var n=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(t){this.maxHeight=t.maxHeight,this.lineHeight=t.lineHeight,this.canvasHeight=t.height;var r=(t.lastRow+1)*this.lineHeight;r<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var e=this.canvas.getContext("2d");function i(u,A){return u.priority<A.priority?-1:u.priority>A.priority?1:0}var o=this.renderer.session.$annotations;if(e.clearRect(0,0,this.canvas.width,this.canvas.height),o){var s={info:1,warning:2,error:3};o.forEach(function(u){u.priority=s[u.type]||null}),o=o.sort(i);for(var c=this.renderer.session.$foldData,g=0;g<o.length;g++){var w=o[g].row,p=this.compensateFoldRows(w,c),b=Math.round((w-p)*this.lineHeight*this.heightRatio),y=Math.round((w-p)*this.lineHeight*this.heightRatio),d=Math.round(((w-p)*this.lineHeight+this.lineHeight)*this.heightRatio),v=d-y;if(v<this.minDecorationHeight){var $=(y+d)/2|0;$<this.halfMinDecorationHeight?$=this.halfMinDecorationHeight:$+this.halfMinDecorationHeight>this.canvasHeight&&($=this.canvasHeight-this.halfMinDecorationHeight),y=Math.round($-this.halfMinDecorationHeight),d=Math.round($+this.halfMinDecorationHeight)}e.fillStyle=n[o[g].type]||null,e.fillRect(0,b,this.canvasWidth,d-y)}}var f=this.renderer.session.selection.getCursor();if(f){var p=this.compensateFoldRows(f.row,c),b=Math.round((f.row-p)*this.lineHeight*this.heightRatio);e.fillStyle="rgba(0, 0, 0, 0.5)",e.fillRect(0,b,this.canvasWidth,2)}},l.prototype.compensateFoldRows=function(t,n){var r=0;if(n&&n.length>0)for(var e=0;e<n.length;e++)t>n[e].start.row&&t<n[e].end.row?r+=t-n[e].start.row:t>=n[e].end.row&&(r+=n[e].end.row-n[e].start.row);return r},l}();M.implement(a.prototype,S),k.Decorator=a});ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(x,k,H){"use strict";var R=x("./lib/oop"),M=x("./lib/dom"),S=x("./lib/lang"),a=x("./config"),l=x("./layer/gutter").Gutter,t=x("./layer/marker").Marker,n=x("./layer/text").Text,r=x("./layer/cursor").Cursor,e=x("./scrollbar").HScrollBar,i=x("./scrollbar").VScrollBar,o=x("./scrollbar_custom").HScrollBar,s=x("./scrollbar_custom").VScrollBar,c=x("./renderloop").RenderLoop,g=x("./layer/font_metrics").FontMetrics,w=x("./lib/event_emitter").EventEmitter,p=x("./css/editor-css"),b=x("./layer/decorators").Decorator,y=x("./lib/useragent");M.importCssString(p,"ace_editor.css",!1);var d=function(){function v($,f){var u=this;this.container=$||M.createElement("div"),M.addCssClass(this.container,"ace_editor"),M.HI_DPI&&M.addCssClass(this.container,"ace_hidpi"),this.setTheme(f),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=M.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=M.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=M.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new l(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new t(this.content);var A=this.$textLayer=new n(this.content);this.canvas=A.element,this.$markerFront=new t(this.content),this.$cursorLayer=new r(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new i(this.container,this),this.scrollBarH=new e(this.container,this),this.scrollBarV.on("scroll",function(m){u.$scrollAnimation||u.session.setScrollTop(m.data Line truncated
`);this.addToken(m[0],"ghost_text",A.row,A.column),this.$ghostText={text:$,position:{row:A.row,column:A.column}},m.length>1&&(this.$ghostTextWidget={text:m.slice(1).join(`
`),row:A.row,column:A.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},v.prototype.removeGhostText=function(){if(this.$ghostText){var $=this.$ghostText.position;this.removeExtraToken($.row,$.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},v.prototype.addToken=function($,f,u,A){var m=this.session;m.bgTokenizer.lines[u]=null;var h={type:f,value:$},C=m.getTokens(u);if(A==null||!C.length)C.push(h);else for(var L=0,T=0;T<C.length;T++){var E=C[T];if(L+=E.value.length,A<=L){var _=E.value.length-(L-A),O=E.value.slice(0,_),I=E.value.slice(_);C.splice(T,1,{type:E.type,value:O},h,{type:E.type,value:I});break}}this.updateLines(u,u)},v.prototype.removeExtraToken=function($,f){this.session.bgTokenizer.lines[$]=null,this.updateLines($,$)},v.prototype.setTheme=function($,f){var u=this;if(this.$themeId=$,u._dispatchEvent("themeChange",{theme:$}),!$||typeof $=="string"){var A=$||this.$options.theme.initialValue;a.loadModule(["theme",A],m)}else m($);function m(h){if(u.$themeId!=$)return f&&f();if(!h||!h.cssClass)throw new Error("couldn't load module "+$+" or it didn't call define");h.$id&&(u.$themeId=h.$id),M.importCssString(h.cssText,h.cssClass,u.container),u.theme&&M.removeCssClass(u.container,u.theme.cssClass);var C="padding"in h?h.padding:"padding"in(u.theme||{})?4:u.$padding;u.$padding&&C!=u.$padding&&u.setPadding(C),u.$theme=h.cssClass,u.theme=h,M.addCssClass(u.container,h.cssClass),M.setCssClass(u.container,"ace_dark",h.isDark),u.$size&&(u.$size.width=0,u.$updateSizeAsync()),u._dispatchEvent("themeLoaded",{theme:h}),f&&f()}},v.prototype.getTheme=function(){return this.$themeId},v.prototype.setStyle=function($,f){M.setCssClass(this.container,$,f!==!1)},v.prototype.unsetStyle=function($){M.removeCssClass(this.container,$)},v.prototype.setCursorStyle=function($){M.setStyle(this.scroller.style,"cursor",$)},v.prototype.setMouseCursor=function($){M.setStyle(this.scroller.style,"cursor",$)},v.prototype.attachToShadowRoot=function(){M.importCssString(p,"ace_editor.css",this.container)},v.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},v.prototype.$updateCustomScrollbar=function($){var f=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,$===!0?(this.scrollBarV=new s(this.container,this),this.scrollBarH=new o(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(u){f.$scrollAnimation||f.session.setScrollTop(u.data-f.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(u){f.$scrollAnimation||f.session.setScrollLeft(u.data-f.scrollMargin.left)}),this.$scrollDecorator=new b(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new i(this.container,this),this.scrollBarH=new e(this.container,this),this.scrollBarV.addEventListener("scroll",function(u){f.$scrollAnimation||f.session.setScrollTop(u.data-f.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(u){f.$scrollAnimation||f.session.setScrollLeft(u.data-f.scrollMargin.left)}))},v.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var $=this;this.$resizeTimer=S.delayedCall(function(){$.destroyed||$.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(f){var u=f[0].contentRect.width,A=f[0].contentRect.height;Math.abs($.$size.width-u)>1||Math.abs($.$size.height-A)>1?$.$resizeTimer.delay():$.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},v}();d.prototype.CHANGE_CURSOR=1,d.prototype.CHANGE_MARKER=2,d.prototype.CHANGE_GUTTER=4,d.prototype.CHANGE_SCROLL=8,d.prototype.CHANGE_LINES=16,d.prototype.CHANGE_TEXT=32,d.prototype.CHANGE_SIZE=64,d.prototype.CHANGE_MARKER_BACK=128,d.prototype.CHANGE_MARKER_FRONT=256,d.prototype.CHANGE_FULL=512,d.prototype.CHANGE_H_SCROLL=1024,d.prototype.$changes=0,d.prototype.$padding=null,d.prototype.$frozen=!1,d.prototype.STEPS=8,R.implement(d.prototype,w),a.defineOptions(d.prototype,"renderer",{useResizeObserver:{set:function(v){!v&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):v&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(v){this.$textLayer.setShowInvisibles(v)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(v){typeof v=="number"&&(this.$printMarginColumn=v Line truncated
`)+`
`),A||($.start.column=0,$.end.column=C[C.length-1].length),this.selection.setRange($)}else{v.forEach(function(_){b.substractPoint(_.cursor)});var L=0,T=1/0,E=y.map(function(_){var O=_.cursor,I=p.getLine(O.row),W=I.substr(O.column).search(/\S/g);return W==-1&&(W=0),O.column>L&&(L=O.column),W<T&&(T=W),W});y.forEach(function(_,O){var I=_.cursor,W=L-I.column,F=E[O]-T;W>F?p.insert(I,t.stringRepeat(" ",W-F)):p.remove(new M(I.row,I.column,I.row,I.column-W+F)),_.start.column=_.end.column=L,_.start.row=_.end.row=I.row,_.cursor=_.end}),b.fromOrientedRange(y[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(p,b){var y=!0,d=!0,v,$,f;return p.map(function(C){var L=C.match(/(\s*)(.*?)(\s*)([=:].*)/);return L?v==null?(v=L[1].length,$=L[2].length,f=L[3].length,L):(v+$+f!=L[1].length+L[2].length+L[3].length&&(d=!1),v!=L[1].length&&(y=!1),v>L[1].length&&(v=L[1].length),$<L[2].length&&($=L[2].length),f>L[3].length&&(f=L[3].length),L):[C]}).map(b?A:y?d?m:A:h);function u(C){return t.stringRepeat(" ",C)}function A(C){return C[2]?u(v)+C[2]+u($-C[2].length+f)+C[4].replace(/^([=:])\s+/,"$1 "):C[0]}function m(C){return C[2]?u(v+$-C[2].length)+C[2]+u(f)+C[4].replace(/^([=:])\s+/,"$1 "):C[0]}function h(C){return C[2]?u(v)+C[2]+u(f)+C[4].replace(/^([=:])\s+/,"$1 "):C[0]}}}).call(s.prototype);function c(p,b){return p.row==b.row&&p.column==b.column}k.onSessionChange=function(p){var b=p.session;b&&!b.multiSelect&&(b.$selectionMarkers=[],b.selection.$initRangeList(),b.multiSelect=b.selection),this.multiSelect=b&&b.multiSelect;var y=p.oldSession;y&&(y.multiSelect.off("addRange",this.$onAddRange),y.multiSelect.off("removeRange",this.$onRemoveRange),y.multiSelect.off("multiSelect",this.$onMultiSelect),y.multiSelect.off("singleSelect",this.$onSingleSelect),y.multiSelect.lead.off("change",this.$checkMultiselectChange),y.multiSelect.anchor.off("change",this.$checkMultiselectChange)),b&&(b.multiSelect.on("addRange",this.$onAddRange),b.multiSelect.on("removeRange",this.$onRemoveRange),b.multiSelect.on("multiSelect",this.$onMultiSelect),b.multiSelect.on("singleSelect",this.$onSingleSelect),b.multiSelect.lead.on("change",this.$checkMultiselectChange),b.multiSelect.anchor.on("change",this.$checkMultiselectChange)),b&&this.inMultiSelectMode!=b.selection.inMultiSelectMode&&(b.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function g(p){p.$multiselectOnSessionChange||(p.$onAddRange=p.$onAddRange.bind(p),p.$onRemoveRange=p.$onRemoveRange.bind(p),p.$onMultiSelect=p.$onMultiSelect.bind(p),p.$onSingleSelect=p.$onSingleSelect.bind(p),p.$multiselectOnSessionChange=k.onSessionChange.bind(p),p.$checkMultiselectChange=p.$checkMultiselectChange.bind(p),p.$multiselectOnSessionChange(p),p.on("changeSession",p.$multiselectOnSessionChange),p.on("mousedown",a),p.commands.addCommands(n.defaultCommands),w(p))}function w(p){if(!p.textInput)return;var b=p.textInput.getElement(),y=!1;l.addListener(b,"keydown",function(v){var $=v.keyCode==18&&!(v.ctrlKey||v.shiftKey||v.metaKey);p.$blockSelectEnabled&&$?y||(p.renderer.setMouseCursor("crosshair"),y=!0):y&&d()},p),l.addListener(b,"keyup",d,p),l.addListener(b,"blur",d,p);function d(v){y&&(p.renderer.setMouseCursor(""),y=!1)}}k.MultiSelect=g,x("./config").defineOptions(s.prototype,"editor",{enableMultiselect:{set:function(p){g(this),p?this.on("mousedown",a):this.off("mousedown",a)},value:!0},enableBlockSelect:{set:function(p){this.$blockSelectEnabled=p},value:!0}})});ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(x,k,H){"use strict";var R=x("../../range").Range,M=k.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(S,a,l){var t=S.getLine(l);return this.foldingStartMarker.test(t)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(t)?"end":""},this.getFoldWidgetRange=function(S,a,l){return null},this.indentationBlock=function(S,a,l){var t=/\S/,n=S.getLine(a),r=n.search(t);if(r!=-1){for(var e=l||n.length,i=S.getLength(),o=a,s=a;++a<i;){var c=S.getLine(a).search(t);if(c!=-1){if(c<=r){var g=S.getTokenAt(a,0);if(!g||g.type!=="string")break}s=a}}if(s>o){var w=S.getLine(s).length;return new R(o,e,s,w)}}},this.openingBracketBlock=function(S,a,l,t,n){var r={row:l,column:t+1},e=S.$findClosingBracket(a,r,n);if(e){var i=S.foldWidgets[e.row];return i==null&&(i=S.getFoldWidget(e.row)),i=="start"&&e.row>r.row&&(e.row--,e.column=S.getLine(e.row).length),R.fromPoints(r,e)}},this.closingBracketBlock=function(S,a,l,t,n){var r={row:l,column:t},e=S.$findOpeningBracket(a,r);if(e)return e.column++,r.column--,R.fromPoints(e,r)}}).call(M.prototype)});ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(x,k,H){"use strict";var R=x("../line_widgets").LineWidgets,M=x("../lib/dom"),S=x("../range").Range,a=x("../config").nls;function l(n,r,e){for(var i=0,o=n.length-1;i< Line truncated
.error_widget_wrapper {
background: inherit;
color: inherit;
border:none
}
.error_widget {
border-top: solid 2px;
border-bottom: solid 2px;
margin: 5px 0;
padding: 10px 40px;
white-space: pre-wrap;
}
.error_widget.ace_error, .error_widget_arrow.ace_error{
border-color: #ff5a5a
}
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
border-color: #F1D817
}
.error_widget.ace_info, .error_widget_arrow.ace_info{
border-color: #5a5a5a
}
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
border-color: #5aaa5a
}
.error_widget_arrow {
position: absolute;
border: solid 5px;
border-top-color: transparent!important;
border-right-color: transparent!important;
border-left-color: transparent!important;
top: -5px;
}
`,"error_marker.css",!1)});ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(x,k,H){"use strict";x("./loader_build")(k);var R=x("./lib/dom"),M=x("./range").Range,S=x("./editor").Editor,a=x("./edit_session").EditSession,l=x("./undomanager").UndoManager,t=x("./virtual_renderer").VirtualRenderer;x("./worker/worker_client"),x("./keyboard/hash_handler"),x("./placeholder"),x("./multi_select"),x("./mode/folding/fold_mode"),x("./theme/textmate"),x("./ext/error_marker"),k.config=x("./config"),k.edit=function(n,r){if(typeof n=="string"){var e=n;if(n=document.getElementById(e),!n)throw new Error("ace.edit can't find div #"+e)}if(n&&n.env&&n.env.editor instanceof S)return n.env.editor;var i="";if(n&&/input|textarea/i.test(n.tagName)){var o=n;i=o.value,n=R.createElement("pre"),o.parentNode.replaceChild(n,o)}else n&&(i=n.textContent,n.innerHTML="");var s=k.createEditSession(i),c=new S(new t(n),s,r),g={document:s,editor:c,onResize:c.resize.bind(c,null)};return o&&(g.textarea=o),c.on("destroy",function(){g.editor.container.env=null}),c.container.env=c.env=g,c},k.createEditSession=function(n,r){var e=new a(n,r);return e.setUndoManager(new l),e},k.Range=M,k.Editor=S,k.EditSession=a,k.UndoManager=l,k.VirtualRenderer=t,k.version=k.config.version});(function(){ace.require(["ace/ace"],function(x){x&&(x.config.init(!0),x.define=ace.define);var k=function(){return this}();!k&&typeof window<"u"&&(k=window),!k&&typeof self<"u"&&(k=self),k.ace||(k.ace=x);for(var H in x)x.hasOwnProperty(H)&&(k.ace[H]=x[H]);k.ace.default=k.ace,typeof ve=="object"&&typeof Se=="object"&&ve&&(ve.exports=k.ace)})})()});var ke=$e((Le,ye)=>{ace.define("ace/mode/ini_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(x,k,H){"use strict";var R=x("../lib/oop"),M=x("./text_highlight_rules").TextHighlightRules,S="\\\\(?:[\\\\0abtrn;#=:]|x[a-fA-F\\d]{4})",a=function(){this.$rules={start:[{token:"punctuation.definition.comment.ini",regex:"#.*",push_:[{token:"comment.line.number-sign.ini",regex:"$|^",next:"pop"},{defaultToken:"comment.line.number-sign.ini"}]},{token:"punctuation.definition.comment.ini",regex:";.*",push_:[{token:"comment.line.semicolon.ini",regex:"$|^",next:"pop"},{defaultToken:"comment.line.semicolon.ini"}]},{token:["keyword.other.definition.ini","text","punctuation.separator.key-value.ini"],regex:"\\b([a-zA-Z0-9_.-]+)\\b(\\s*)(=)"},{token:["punctuation.definition.entity.ini","constant.section.group-title.ini","punctuation.definition.entity.ini"],regex:"^(\\[)(.*?)(\\])"},{token:"punctuation.definition.string.begin.ini",regex:"'",push:[{token:"punctuation.definition.string.end.ini",regex:"'",next:"pop"},{token:"constant.language.escape",regex:S},{defaultToken:"string.quoted.single.ini"}]},{token:"punctuation.definition.string.begin.ini",regex:'"',push:[{token:"constant.language.escape",regex:S},{token:"punctuation.definition.string.end.ini",regex:'"',next:"pop"},{defaultToken:"string.quoted.double.ini"}]}]},this.normalizeRules()};a.metaData={fileTypes:["ini","conf"],keyEquivalent:"^~I",name:"Ini",scopeName:"source.ini"},R.inherits(a,M),k.IniHighlightRules=a});ace.define("ace/mode/folding/ini",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(x,k,H){"use strict";var R=x("../../lib/oop"),M=x("../../range").Range,S=x("./fold_mode").FoldMode,a=k.FoldMode=function(){};R.inherits(a,S),function(){this.foldingStartMarker=/^\s*\[([^\])]*)]\s*(?:$|[;#])/,this.getFoldWidgetRange=function(l,t,n){var r=this.foldingStartMarker,e=l.getLine(n),i=e.match(r);if(i){for(var o=i[1]+".",s=e.length,c=l.getLength(),g=n,w=n;++n<c;)if(e=l.getLine(n),!/^\s*$/.test(e)){if(i=e.match(r),i&&i[1].lastIndexOf(o,0)!==0)break;w=n}if(w>g){var p=l.getLine(w).length;return new M(g,s,w,p)}}}}.call(a.prototype)});ace.define("ace/mode/ini",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ini_highlight_rules","ace/mode/folding/ini"],function(x,k,H){"use strict";var R=x("../lib/oop"),M=x("./text").Mode,S=x("./ini_highlight_rules").IniHighlightRules,a=x("./folding/ini").FoldMode,l=function(){this.HighlightRules=S,this.foldingRules=new a,this.$behaviour=this.$defaultBehaviour};R.inherits(l,M),function(){this.lineCommentStart=";",this.blockComment=null,this.$id="ace/mode/ini"}.call(l.prototype),k.Mode=l});(function(){ace.require(["ace/mode/ini"],function(x){typeof ye=="object"&&typeof Le=="object"&&ye&&(ye.exports=x)})})()});var Me=Ce(Ae(),1),De=Ce(ke(),1),We=({maxLines:x,minLines:k,fontSize:H})=>({editor:null,init(){this.editor=Me.default.edit(this.$refs.editor,{mode:"ace/mode/ini",readOnly:!0,maxLines:x,minLines:k,fontSize:H}),window.addEventListener("logContentUpdated",R=>{t Line truncated
/*! Bundled license information:
ace-builds/src-noconflict/ace.js:
(*
* based on code from:
*
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*)
(*! @license
==========================================================================
SproutCore -- JavaScript Application Framework
copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
For more information about SproutCore, visit http://www.sproutcore.com
==========================================================================
@license *)
*/