rich-af7aef50.js 590 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121
  1. import{c as ye,r as Ke,g as It,_ as R,R as kn,j as fi}from"./index-fe76da25.js";function Ot(s,O){for(var y=0;y<O.length;y++){const L=O[y];if(typeof L!="string"&&!Array.isArray(L)){for(const I in L)if(I!=="default"&&!(I in s)){const d=Object.getOwnPropertyDescriptor(L,I);d&&Object.defineProperty(s,I,d.get?d:{enumerable:!0,get:()=>L[I]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var ii=function(O){var y;return typeof O=="string"||!O||isNaN(O)?y=O:y="".concat(O,"px"),y},qe={},xt={},pi={exports:{}};(function(s,O){(function(){var y="ace",L=function(){return this}();!L&&typeof window<"u"&&(L=window);var I=function(t,i,r){if(typeof t!="string"){I.original?I.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(r=i),I.modules[t]||(I.payloads[t]=r,I.modules[t]=null)};I.modules={},I.payloads={};var d=function(t,i,r){if(typeof i=="string"){var e=a(t,i);if(e!=null)return r&&r(),e}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var n=[],o=0,l=i.length;o<l;++o){var h=a(t,i[o]);if(h==null&&_.original)return;n.push(h)}return r&&r.apply(null,n)||!0}},_=function(t,i){var r=d("",t,i);return r==null&&_.original?_.original.apply(this,arguments):r},p=function(t,i){if(i.indexOf("!")!==-1){var r=i.split("!");return p(t,r[0])+"!"+p(t,r[1])}if(i.charAt(0)=="."){var e=t.split("/").slice(0,-1).join("/");for(i=e+"/"+i;i.indexOf(".")!==-1&&n!=i;){var n=i;i=i.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},a=function(t,i){i=p(t,i);var r=I.modules[i];if(!r){if(r=I.payloads[i],typeof r=="function"){var e={},n={id:i,uri:"",exports:e,packaged:!0},o=function(h,u){return d(i,h,u)},l=r(o,e,n);e=l||n.exports,I.modules[i]=e,delete I.payloads[i]}r=I.modules[i]=e||r}return r};function c(t){var i=L;t&&(L[t]||(L[t]={}),i=L[t]),(!i.define||!i.define.packaged)&&(I.original=i.define,i.define=I,i.define.packaged=!0),(!i.require||!i.require.packaged)&&(_.original=i.require,i.require=_,i.require.packaged=!0)}c(y)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(y,L,I){function d(_,p,a){Object.defineProperty(_,p,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||d(String.prototype,"startsWith",function(_,p){return p=p||0,this.lastIndexOf(_,p)===p}),String.prototype.endsWith||d(String.prototype,"endsWith",function(_,p){var a=this;(p===void 0||p>a.length)&&(p=a.length),p-=_.length;var c=a.indexOf(_,p);return c!==-1&&c===p}),String.prototype.repeat||d(String.prototype,"repeat",function(_){for(var p="",a=this;_>0;)_&1&&(p+=a),(_>>=1)&&(a+=a);return p}),String.prototype.includes||d(String.prototype,"includes",function(_,p){return this.indexOf(_,p)!=-1}),Object.assign||(Object.assign=function(_){if(_==null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(_),a=1;a<arguments.length;a++){var c=arguments[a];c!=null&&Object.keys(c).forEach(function(t){p[t]=c[t]})}return p}),Object.values||(Object.values=function(_){return Object.keys(_).map(function(p){return _[p]})}),Array.prototype.find||d(Array.prototype,"find",function(_){for(var p=this.length,a=arguments[1],c=0;c<p;c++){var t=this[c];if(_.call(a,t,c,this))return t}}),Array.prototype.findIndex||d(Array.prototype,"findIndex",function(_){for(var p=this.length,a=arguments[1],c=0;c<p;c++){var t=this[c];if(_.call(a,t,c,this))return c}}),Array.prototype.includes||d(Array.prototype,"includes",function(_,p){return this.indexOf(_,p)!=-1}),Array.prototype.fill||d(Array.prototype,"fill",function(_){for(var p=this,a=p.length>>>0,c=arguments[1],t=c>>0,i=t<0?Math.max(a+t,0):Math.min(t,a),r=arguments[2],e=r===void 0?a:r>>0,n=e<0?Math.max(a+e,0):Math.min(e,a);i<n;)p[i]=_,i++;return p}),Array.of||d(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(y,L,I){y("./es6-shim")}),ace.define("ace/lib/lang",["require","exports","module"],function(y,L,I){L.last=function(p){return p[p.length-1]},L.stringReverse=function(p){return p.split("").reverse().join("")},L.stringRepeat=function(p,a){for(var c="";a>0;)a&1&&(c+=p),(a>>=1)&&(p+=p);return c};var d=/^\s\s*/,_=/\s\s*$/;L.stringTrimLeft=function(p){return p.replace(d,"")},L.stringTrimRight=function(p){return p.replace(_,"")},L.copyObject=function(p){var a={};for(var c in p)a[c]=p[c];return a},L.copyArray=function(p){for(var a=[],c=0,t=p.length;c<t;c++)p[c]&&typeof p[c]=="object"?a[c]=this.copyObject(p[c]):a[c]=p[c];return a},L.deepCopy=function p(a){if(typeof a!="object"||!a)return a;var c;if(Array.isArray(a)){c=[];for(var t=0;t<a.length;t++)c[t]=p(a[t]);return c}if(Object.prototype.toString.call(a)!=="[object Object]")return a;c={};for(var t in a)c[t]=p(a[t]);return c},L.arrayToMap=function(p){for(var a={},c=0;c<p.length;c++)a[p[c]]=1;return a},L.createMap=function(p){var a=Object.create(null);for(var c in p)a[c]=p[c];return a},L.arrayRemove=function(p,a){for(var c=0;c<=p.length;c++)a===p[c]&&p.splice(c,1)},L.escapeRegExp=function(p){return p.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},L.escapeHTML=function(p){return(""+p).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},L.getMatchOffsets=function(p,a){var c=[];return p.replace(a,function(t){c.push({offset:arguments[arguments.length-2],length:t.length})}),c},L.deferredCall=function(p){var a=null,c=function(){a=null,p()},t=function(i){return t.cancel(),a=setTimeout(c,i||0),t};return t.schedule=t,t.call=function(){return this.cancel(),p(),t},t.cancel=function(){return clearTimeout(a),a=null,t},t.isPending=function(){return a},t},L.delayedCall=function(p,a){var c=null,t=function(){c=null,p()},i=function(r){c==null&&(c=setTimeout(t,r||a))};return i.delay=function(r){c&&clearTimeout(c),c=setTimeout(t,r||a)},i.schedule=i,i.call=function(){this.cancel(),p()},i.cancel=function(){c&&clearTimeout(c),c=null},i.isPending=function(){return c},i}}),ace.define("ace/lib/useragent",["require","exports","module"],function(y,L,I){L.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},L.getOS=function(){return L.isMac?L.OS.MAC:L.isLinux?L.OS.LINUX:L.OS.WINDOWS};var d=typeof navigator=="object"?navigator:{},_=(/mac|win|linux/i.exec(d.platform)||["other"])[0].toLowerCase(),p=d.userAgent||"",a=d.appName||"";L.isWin=_=="win",L.isMac=_=="mac",L.isLinux=_=="linux",L.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((p.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((p.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),L.isOldIE=L.isIE&&L.isIE<9,L.isGecko=L.isMozilla=p.match(/ Gecko\/\d+/),L.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",L.isWebKit=parseFloat(p.split("WebKit/")[1])||void 0,L.isChrome=parseFloat(p.split(" Chrome/")[1])||void 0,L.isEdge=parseFloat(p.split(" Edge/")[1])||void 0,L.isAIR=p.indexOf("AdobeAIR")>=0,L.isAndroid=p.indexOf("Android")>=0,L.isChromeOS=p.indexOf(" CrOS ")>=0,L.isIOS=/iPad|iPhone|iPod/.test(p)&&!window.MSStream,L.isIOS&&(L.isMac=!0),L.isMobile=L.isIOS||L.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(y,L,I){var d=y("./useragent"),_="http://www.w3.org/1999/xhtml";L.buildDom=function r(e,n,o){if(typeof e=="string"&&e){var l=document.createTextNode(e);return n&&n.appendChild(l),l}if(!Array.isArray(e))return e&&e.appendChild&&n&&n.appendChild(e),e;if(typeof e[0]!="string"||!e[0]){for(var h=[],u=0;u<e.length;u++){var $=r(e[u],n,o);$&&h.push($)}return h}var w=document.createElement(e[0]),v=e[1],f=1;v&&typeof v=="object"&&!Array.isArray(v)&&(f=2);for(var u=f;u<e.length;u++)r(e[u],w,o);return f==2&&Object.keys(v).forEach(function(M){var S=v[M];M==="class"?w.className=Array.isArray(S)?S.join(" "):S:typeof S=="function"||M=="value"||M[0]=="$"?w[M]=S:M==="ref"?o&&(o[S]=w):M==="style"?typeof S=="string"&&(w.style.cssText=S):S!=null&&w.setAttribute(M,S)}),n&&n.appendChild(w),w},L.getDocumentHead=function(r){return r||(r=document),r.head||r.getElementsByTagName("head")[0]||r.documentElement},L.createElement=function(r,e){return document.createElementNS?document.createElementNS(e||_,r):document.createElement(r)},L.removeChildren=function(r){r.innerHTML=""},L.createTextNode=function(r,e){var n=e?e.ownerDocument:document;return n.createTextNode(r)},L.createFragment=function(r){var e=r?r.ownerDocument:document;return e.createDocumentFragment()},L.hasCssClass=function(r,e){var n=(r.className+"").split(/\s+/g);return n.indexOf(e)!==-1},L.addCssClass=function(r,e){L.hasCssClass(r,e)||(r.className+=" "+e)},L.removeCssClass=function(r,e){for(var n=r.className.split(/\s+/g);;){var o=n.indexOf(e);if(o==-1)break;n.splice(o,1)}r.className=n.join(" ")},L.toggleCssClass=function(r,e){for(var n=r.className.split(/\s+/g),o=!0;;){var l=n.indexOf(e);if(l==-1)break;o=!1,n.splice(l,1)}return o&&n.push(e),r.className=n.join(" "),o},L.setCssClass=function(r,e,n){n?L.addCssClass(r,e):L.removeCssClass(r,e)},L.hasCssString=function(r,e){var n=0,o;if(e=e||document,o=e.querySelectorAll("style")){for(;n<o.length;)if(o[n++].id===r)return!0}},L.removeElementById=function(r,e){e=e||document,e.getElementById(r)&&e.getElementById(r).remove()};var p,a=[];L.useStrictCSP=function(r){p=r,r==!1?c():a||(a=[])};function c(){var r=a;a=null,r&&r.forEach(function(e){t(e[0],e[1])})}function t(r,e,n){if(!(typeof document>"u")){if(a){if(n)c();else if(n===!1)return a.push([r,e])}if(!p){var o=n;!n||!n.getRootNode?o=document:(o=n.getRootNode(),(!o||o==n)&&(o=document));var l=o.ownerDocument||o;if(e&&L.hasCssString(e,o))return null;e&&(r+=`
  2. /*# sourceURL=ace/css/`+e+" */");var h=L.createElement("style");h.appendChild(l.createTextNode(r)),e&&(h.id=e),o==l&&(o=L.getDocumentHead(l)),o.insertBefore(h,o.firstChild)}}}if(L.importCssString=t,L.importCssStylsheet=function(r,e){L.buildDom(["link",{rel:"stylesheet",href:r}],L.getDocumentHead(e))},L.scrollbarWidth=function(r){var e=L.createElement("ace_inner");e.style.width="100%",e.style.minWidth="0px",e.style.height="200px",e.style.display="block";var n=L.createElement("ace_outer"),o=n.style;o.position="absolute",o.left="-10000px",o.overflow="hidden",o.width="200px",o.minWidth="0px",o.height="150px",o.display="block",n.appendChild(e);var l=r&&r.documentElement||document&&document.documentElement;if(!l)return 0;l.appendChild(n);var h=e.offsetWidth;o.overflow="scroll";var u=e.offsetWidth;return h===u&&(u=n.clientWidth),l.removeChild(n),h-u},L.computedStyle=function(r,e){return window.getComputedStyle(r,"")||{}},L.setStyle=function(r,e,n){r[e]!==n&&(r[e]=n)},L.HAS_CSS_ANIMATION=!1,L.HAS_CSS_TRANSFORMS=!1,L.HI_DPI=d.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,d.isChromeOS&&(L.HI_DPI=!1),typeof document<"u"){var i=document.createElement("div");L.HI_DPI&&i.style.transform!==void 0&&(L.HAS_CSS_TRANSFORMS=!0),!d.isEdge&&typeof i.style.animationName<"u"&&(L.HAS_CSS_ANIMATION=!0),i=null}L.HAS_CSS_TRANSFORMS?L.translate=function(r,e,n){r.style.transform="translate("+Math.round(e)+"px, "+Math.round(n)+"px)"}:L.translate=function(r,e,n){r.style.top=Math.round(n)+"px",r.style.left=Math.round(e)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(y,L,I){/*
  3. * based on code from:
  4. *
  5. * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
  6. * Available via the MIT or new BSD license.
  7. * see: http://github.com/jrburke/requirejs for details
  8. */var d=y("./dom");L.get=function(_,p){var a=new XMLHttpRequest;a.open("GET",_,!0),a.onreadystatechange=function(){a.readyState===4&&p(a.responseText)},a.send(null)},L.loadScript=function(_,p){var a=d.getDocumentHead(),c=document.createElement("script");c.src=_,a.appendChild(c),c.onload=c.onreadystatechange=function(t,i){(i||!c.readyState||c.readyState=="loaded"||c.readyState=="complete")&&(c=c.onload=c.onreadystatechange=null,i||p())}},L.qualifyURL=function(_){var p=document.createElement("a");return p.href=_,p.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(y,L,I){L.inherits=function(d,_){d.super_=_,d.prototype=Object.create(_.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}})},L.mixin=function(d,_){for(var p in _)d[p]=_[p];return d},L.implement=function(d,_){L.mixin(d,_)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(y,L,I){var d={},_=function(){this.propagationStopped=!0},p=function(){this.defaultPrevented=!0};d._emit=d._dispatchEvent=function(a,c){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var t=this._eventRegistry[a]||[],i=this._defaultHandlers[a];if(!(!t.length&&!i)){(typeof c!="object"||!c)&&(c={}),c.type||(c.type=a),c.stopPropagation||(c.stopPropagation=_),c.preventDefault||(c.preventDefault=p),t=t.slice();for(var r=0;r<t.length&&(t[r](c,this),!c.propagationStopped);r++);if(i&&!c.defaultPrevented)return i(c,this)}},d._signal=function(a,c){var t=(this._eventRegistry||{})[a];if(t){t=t.slice();for(var i=0;i<t.length;i++)t[i](c,this)}},d.once=function(a,c){var t=this;if(this.on(a,function i(){t.off(a,i),c.apply(null,arguments)}),!c)return new Promise(function(i){c=i})},d.setDefaultHandler=function(a,c){var t=this._defaultHandlers;if(t||(t=this._defaultHandlers={_disabled_:{}}),t[a]){var i=t[a],r=t._disabled_[a];r||(t._disabled_[a]=r=[]),r.push(i);var e=r.indexOf(c);e!=-1&&r.splice(e,1)}t[a]=c},d.removeDefaultHandler=function(a,c){var t=this._defaultHandlers;if(t){var i=t._disabled_[a];if(t[a]==c)i&&this.setDefaultHandler(a,i.pop());else if(i){var r=i.indexOf(c);r!=-1&&i.splice(r,1)}}},d.on=d.addEventListener=function(a,c,t){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[a];return i||(i=this._eventRegistry[a]=[]),i.indexOf(c)==-1&&i[t?"unshift":"push"](c),c},d.off=d.removeListener=d.removeEventListener=function(a,c){this._eventRegistry=this._eventRegistry||{};var t=this._eventRegistry[a];if(t){var i=t.indexOf(c);i!==-1&&t.splice(i,1)}},d.removeAllListeners=function(a){a||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[a]=void 0),this._defaultHandlers&&(this._defaultHandlers[a]=void 0)},L.EventEmitter=d}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(y,L,I){"no use strict";var d=y("./oop"),_=y("./event_emitter").EventEmitter,p={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 n=this.$options;r=Object.keys(n).filter(function(o){return!n[o].hidden})}return r.forEach(function(o){e[o]=this.getOption(o)},this),e},setOption:function(r,e){if(this["$"+r]!==e){var n=this.$options[r];if(!n)return a('misspelled option "'+r+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(r,e);n.handlesSet||(this["$"+r]=e),n&&n.set&&n.set.call(this,e)}},getOption:function(r){var e=this.$options[r];return e?e.forwardTo?this[e.forwardTo]&&this[e.forwardTo].getOption(r):e&&e.get?e.get.call(this):this["$"+r]:a('misspelled option "'+r+'"')}};function a(r){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}function c(r,e){var n=new Error(r);n.data=e,typeof console=="object"&&console.error&&console.error(n),setTimeout(function(){throw n})}var t,i=function(){function r(){this.$defaultOptions={}}return r.prototype.defineOptions=function(e,n,o){return e.$options||(this.$defaultOptions[n]=e.$options={}),Object.keys(o).forEach(function(l){var h=o[l];typeof h=="string"&&(h={forwardTo:h}),h.name||(h.name=l),e.$options[h.name]=h,"initialValue"in h&&(e["$"+h.name]=h.initialValue)}),d.implement(e,p),this},r.prototype.resetOptions=function(e){Object.keys(e.$options).forEach(function(n){var o=e.$options[n];"value"in o&&e.setOption(n,o.value)})},r.prototype.setDefaultValue=function(e,n,o){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][n])break;if(!this.$defaultOptions[e][n])return!1}var l=this.$defaultOptions[e]||(this.$defaultOptions[e]={});l[n]&&(l.forwardTo?this.setDefaultValue(l.forwardTo,n,o):l[n].value=o)},r.prototype.setDefaultValues=function(e,n){Object.keys(n).forEach(function(o){this.setDefaultValue(e,o,n[o])},this)},r.prototype.setMessages=function(e){t=e},r.prototype.nls=function(e,n){t&&!t[e]&&a("No message found for '"+e+"' in the provided messages, falling back to default English message.");var o=t&&t[e]||e;return n&&(o=o.replace(/\$(\$|[\d]+)/g,function(l,h){return h=="$"?"$":n[h]})),o},r}();i.prototype.warn=a,i.prototype.reportError=c,d.implement(i.prototype,_),L.AppConfig=i}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(y,L,I){I.exports=`.ace-tm .ace_gutter {
  9. background: #f0f0f0;
  10. color: #333;
  11. }
  12. .ace-tm .ace_print-margin {
  13. width: 1px;
  14. background: #e8e8e8;
  15. }
  16. .ace-tm .ace_fold {
  17. background-color: #6B72E6;
  18. }
  19. .ace-tm {
  20. background-color: #FFFFFF;
  21. color: black;
  22. }
  23. .ace-tm .ace_cursor {
  24. color: black;
  25. }
  26. .ace-tm .ace_invisible {
  27. color: rgb(191, 191, 191);
  28. }
  29. .ace-tm .ace_storage,
  30. .ace-tm .ace_keyword {
  31. color: blue;
  32. }
  33. .ace-tm .ace_constant {
  34. color: rgb(197, 6, 11);
  35. }
  36. .ace-tm .ace_constant.ace_buildin {
  37. color: rgb(88, 72, 246);
  38. }
  39. .ace-tm .ace_constant.ace_language {
  40. color: rgb(88, 92, 246);
  41. }
  42. .ace-tm .ace_constant.ace_library {
  43. color: rgb(6, 150, 14);
  44. }
  45. .ace-tm .ace_invalid {
  46. background-color: rgba(255, 0, 0, 0.1);
  47. color: red;
  48. }
  49. .ace-tm .ace_support.ace_function {
  50. color: rgb(60, 76, 114);
  51. }
  52. .ace-tm .ace_support.ace_constant {
  53. color: rgb(6, 150, 14);
  54. }
  55. .ace-tm .ace_support.ace_type,
  56. .ace-tm .ace_support.ace_class {
  57. color: rgb(109, 121, 222);
  58. }
  59. .ace-tm .ace_keyword.ace_operator {
  60. color: rgb(104, 118, 135);
  61. }
  62. .ace-tm .ace_string {
  63. color: rgb(3, 106, 7);
  64. }
  65. .ace-tm .ace_comment {
  66. color: rgb(76, 136, 107);
  67. }
  68. .ace-tm .ace_comment.ace_doc {
  69. color: rgb(0, 102, 255);
  70. }
  71. .ace-tm .ace_comment.ace_doc.ace_tag {
  72. color: rgb(128, 159, 191);
  73. }
  74. .ace-tm .ace_constant.ace_numeric {
  75. color: rgb(0, 0, 205);
  76. }
  77. .ace-tm .ace_variable {
  78. color: rgb(49, 132, 149);
  79. }
  80. .ace-tm .ace_xml-pe {
  81. color: rgb(104, 104, 91);
  82. }
  83. .ace-tm .ace_entity.ace_name.ace_function {
  84. color: #0000A2;
  85. }
  86. .ace-tm .ace_heading {
  87. color: rgb(12, 7, 255);
  88. }
  89. .ace-tm .ace_list {
  90. color:rgb(185, 6, 144);
  91. }
  92. .ace-tm .ace_meta.ace_tag {
  93. color:rgb(0, 22, 142);
  94. }
  95. .ace-tm .ace_string.ace_regex {
  96. color: rgb(255, 0, 0)
  97. }
  98. .ace-tm .ace_marker-layer .ace_selection {
  99. background: rgb(181, 213, 255);
  100. }
  101. .ace-tm.ace_multiselect .ace_selection.ace_start {
  102. box-shadow: 0 0 3px 0px white;
  103. }
  104. .ace-tm .ace_marker-layer .ace_step {
  105. background: rgb(252, 255, 0);
  106. }
  107. .ace-tm .ace_marker-layer .ace_stack {
  108. background: rgb(164, 229, 101);
  109. }
  110. .ace-tm .ace_marker-layer .ace_bracket {
  111. margin: -1px 0 0 -1px;
  112. border: 1px solid rgb(192, 192, 192);
  113. }
  114. .ace-tm .ace_marker-layer .ace_active-line {
  115. background: rgba(0, 0, 0, 0.07);
  116. }
  117. .ace-tm .ace_gutter-active-line {
  118. background-color : #dcdcdc;
  119. }
  120. .ace-tm .ace_marker-layer .ace_selected-word {
  121. background: rgb(250, 250, 255);
  122. border: 1px solid rgb(200, 200, 250);
  123. }
  124. .ace-tm .ace_indent-guide {
  125. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
  126. }
  127. .ace-tm .ace_indent-guide-active {
  128. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
  129. }
  130. `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(y,L,I){L.isDark=!1,L.cssClass="ace-tm",L.cssText=y("./textmate-css"),L.$id="ace/theme/textmate";var d=y("../lib/dom");d.importCssString(L.cssText,L.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(y,L,I){"no use strict";var d=y("./lib/lang"),_=y("./lib/net"),p=y("./lib/dom"),a=y("./lib/app_config").AppConfig;I.exports=L=new a;var c={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};L.get=function(e){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return c[e]},L.set=function(e,n){if(c.hasOwnProperty(e))c[e]=n;else if(this.setDefaultValue("",e,n)==!1)throw new Error("Unknown config key: "+e);e=="useStrictCSP"&&p.useStrictCSP(n)},L.all=function(){return d.copyObject(c)},L.$modes={},L.moduleUrl=function(e,n){if(c.$moduleUrls[e])return c.$moduleUrls[e];var o=e.split("/");n=n||o[o.length-2]||"";var l=n=="snippets"?"/":"-",h=o[o.length-1];if(n=="worker"&&l=="-"){var u=new RegExp("^"+n+"[\\-_]|[\\-_]"+n+"$","g");h=h.replace(u,"")}(!h||h==n)&&o.length>1&&(h=o[o.length-2]);var $=c[n+"Path"];return $==null?$=c.basePath:l=="/"&&(n=l=""),$&&$.slice(-1)!="/"&&($+="/"),$+n+l+h+this.get("suffix")},L.setModuleUrl=function(e,n){return c.$moduleUrls[e]=n};var t=function(e,n){if(e==="ace/theme/textmate"||e==="./theme/textmate")return n(null,y("./theme/textmate"));if(typeof I.require=="function")try{var o="require";return n(null,I[o](e))}catch{}if(i)return i(e,n);console.error("loader is not configured")},i;L.setLoader=function(e){i=e},L.dynamicModules=Object.create(null),L.$loading={},L.$loaded={},L.loadModule=function(e,n){var o;Array.isArray(e)&&(o=e[0],e=e[1]);var l=function(h){if(h&&!L.$loading[e])return n&&n(h);if(L.$loading[e]||(L.$loading[e]=[]),L.$loading[e].push(n),!(L.$loading[e].length>1)){var u=function(){t(e,function($,w){w&&(L.$loaded[e]=w),L._emit("load.module",{name:e,module:w});var v=L.$loading[e];L.$loading[e]=null,v.forEach(function(f){f&&f(w)})})};if(!L.get("packaged"))return u();_.loadScript(L.moduleUrl(e,o),u),r()}};L.dynamicModules[e]?L.dynamicModules[e]().then(function(h){h.default?l(h.default):l(h)}):l(L.$loaded[e])},L.setModuleLoader=function(e,n){L.dynamicModules[e]=n};var r=function(){!c.basePath&&!c.workerPath&&!c.modePath&&!c.themePath&&!Object.keys(c.$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(){})};L.version="1.23.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(y,L,I){y("./lib/fixoldbrowsers");var d=y("./config");d.setLoader(function(c,t){y([c],function(i){t(null,i)})});var _=function(){return this||typeof window<"u"&&window}();I.exports=function(c){d.init=p,c.require=y},p(!0);function p(c){if(!(!_||!_.document)){d.set("packaged",c||y.packaged||I.packaged||_.define&&(void 0).packaged);var t={},i="",r=document.currentScript||document._currentScript,e=r&&r.ownerDocument||document;r&&r.src&&(i=r.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var n=e.getElementsByTagName("script"),o=0;o<n.length;o++){var l=n[o],h=l.src||l.getAttribute("src");if(h){for(var u=l.attributes,$=0,w=u.length;$<w;$++){var v=u[$];v.name.indexOf("data-ace-")===0&&(t[a(v.name.replace(/^data-ace-/,""))]=v.value)}var f=h.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);f&&(i=f[1])}}i&&(t.base=t.base||i,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 M in t)typeof t[M]<"u"&&d.set(M,t[M])}}function a(c){return c.replace(/-(.)/g,function(t,i){return i.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(y,L,I){var d=function(p,a){return p.row-a.row||p.column-a.column},_=function(){function p(a,c,t,i){this.start={row:a,column:c},this.end={row:t,column:i}}return p.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},p.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},p.prototype.contains=function(a,c){return this.compare(a,c)==0},p.prototype.compareRange=function(a){var c,t=a.end,i=a.start;return c=this.compare(t.row,t.column),c==1?(c=this.compare(i.row,i.column),c==1?2:c==0?1:0):c==-1?-2:(c=this.compare(i.row,i.column),c==-1?-1:c==1?42:0)},p.prototype.comparePoint=function(a){return this.compare(a.row,a.column)},p.prototype.containsRange=function(a){return this.comparePoint(a.start)==0&&this.comparePoint(a.end)==0},p.prototype.intersects=function(a){var c=this.compareRange(a);return c==-1||c==0||c==1},p.prototype.isEnd=function(a,c){return this.end.row==a&&this.end.column==c},p.prototype.isStart=function(a,c){return this.start.row==a&&this.start.column==c},p.prototype.setStart=function(a,c){typeof a=="object"?(this.start.column=a.column,this.start.row=a.row):(this.start.row=a,this.start.column=c)},p.prototype.setEnd=function(a,c){typeof a=="object"?(this.end.column=a.column,this.end.row=a.row):(this.end.row=a,this.end.column=c)},p.prototype.inside=function(a,c){return this.compare(a,c)==0?!(this.isEnd(a,c)||this.isStart(a,c)):!1},p.prototype.insideStart=function(a,c){return this.compare(a,c)==0?!this.isEnd(a,c):!1},p.prototype.insideEnd=function(a,c){return this.compare(a,c)==0?!this.isStart(a,c):!1},p.prototype.compare=function(a,c){return!this.isMultiLine()&&a===this.start.row?c<this.start.column?-1:c>this.end.column?1:0:a<this.start.row?-1:a>this.end.row?1:this.start.row===a?c>=this.start.column?0:-1:this.end.row===a?c<=this.end.column?0:1:0},p.prototype.compareStart=function(a,c){return this.start.row==a&&this.start.column==c?-1:this.compare(a,c)},p.prototype.compareEnd=function(a,c){return this.end.row==a&&this.end.column==c?1:this.compare(a,c)},p.prototype.compareInside=function(a,c){return this.end.row==a&&this.end.column==c?1:this.start.row==a&&this.start.column==c?-1:this.compare(a,c)},p.prototype.clipRows=function(a,c){if(this.end.row>c)var t={row:c+1,column:0};else if(this.end.row<a)var t={row:a,column:0};if(this.start.row>c)var i={row:c+1,column:0};else if(this.start.row<a)var i={row:a,column:0};return p.fromPoints(i||this.start,t||this.end)},p.prototype.extend=function(a,c){var t=this.compare(a,c);if(t==0)return this;if(t==-1)var i={row:a,column:c};else var r={row:a,column:c};return p.fromPoints(i||this.start,r||this.end)},p.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},p.prototype.isMultiLine=function(){return this.start.row!==this.end.row},p.prototype.clone=function(){return p.fromPoints(this.start,this.end)},p.prototype.collapseRows=function(){return this.end.column==0?new p(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new p(this.start.row,0,this.end.row,0)},p.prototype.toScreenRange=function(a){var c=a.documentToScreenPosition(this.start),t=a.documentToScreenPosition(this.end);return new p(c.row,c.column,t.row,t.column)},p.prototype.moveBy=function(a,c){this.start.row+=a,this.start.column+=c,this.end.row+=a,this.end.column+=c},p}();_.fromPoints=function(p,a){return new _(p.row,p.column,a.row,a.column)},_.comparePoints=d,_.comparePoints=function(p,a){return p.row-a.row||p.column-a.column},L.Range=_}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(y,L,I){/*! @license
  131. ==========================================================================
  132. SproutCore -- JavaScript Application Framework
  133. copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
  134. Permission is hereby granted, free of charge, to any person obtaining a
  135. copy of this software and associated documentation files (the "Software"),
  136. to deal in the Software without restriction, including without limitation
  137. the rights to use, copy, modify, merge, publish, distribute, sublicense,
  138. and/or sell copies of the Software, and to permit persons to whom the
  139. Software is furnished to do so, subject to the following conditions:
  140. The above copyright notice and this permission notice shall be included in
  141. all copies or substantial portions of the Software.
  142. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  143. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  144. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  145. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  146. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  147. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  148. DEALINGS IN THE SOFTWARE.
  149. SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
  150. For more information about SproutCore, visit http://www.sproutcore.com
  151. ==========================================================================
  152. @license */var d=y("./oop"),_=function(){var p={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};p.PRINTABLE_KEYS[173]="-";var a,c;for(c in p.FUNCTION_KEYS)a=p.FUNCTION_KEYS[c].toLowerCase(),p[a]=parseInt(c,10);for(c in p.PRINTABLE_KEYS)a=p.PRINTABLE_KEYS[c].toLowerCase(),p[a]=parseInt(c,10);return d.mixin(p,p.MODIFIER_KEYS),d.mixin(p,p.PRINTABLE_KEYS),d.mixin(p,p.FUNCTION_KEYS),p.enter=p.return,p.escape=p.esc,p.del=p.delete,function(){for(var t=["cmd","ctrl","alt","shift"],i=Math.pow(2,t.length);i--;)p.KEY_MODS[i]=t.filter(function(r){return i&p.KEY_MODS[r]}).join("-")+"-"}(),p.KEY_MODS[0]="",p.KEY_MODS[-1]="input-",p}();d.mixin(L,_),L.default=L,L.keyCodeToString=function(p){var a=_[p];return typeof a!="string"&&(a=String.fromCharCode(p)),a.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(y,L,I){var d=y("./keys"),_=y("./useragent"),p=null,a=0,c;function t(){c=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){c={passive:!1}}})}catch{}}function i(){return c==null&&t(),c}function r($,w,v){this.elem=$,this.type=w,this.callback=v}r.prototype.destroy=function(){n(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var e=L.addListener=function($,w,v,f){$.addEventListener(w,v,i()),f&&f.$toDestroy.push(new r($,w,v))},n=L.removeListener=function($,w,v){$.removeEventListener(w,v,i())};L.stopEvent=function($){return L.stopPropagation($),L.preventDefault($),!1},L.stopPropagation=function($){$.stopPropagation&&$.stopPropagation()},L.preventDefault=function($){$.preventDefault&&$.preventDefault()},L.getButton=function($){return $.type=="dblclick"?0:$.type=="contextmenu"||_.isMac&&$.ctrlKey&&!$.altKey&&!$.shiftKey?2:$.button},L.capture=function($,w,v){var f=$&&$.ownerDocument||document;function M(S){w&&w(S),v&&v(S),n(f,"mousemove",w),n(f,"mouseup",M),n(f,"dragstart",M)}return e(f,"mousemove",w),e(f,"mouseup",M),e(f,"dragstart",M),M},L.addMouseWheelListener=function($,w,v){e($,"wheel",function(f){var M=.15,S=f.deltaX||0,A=f.deltaY||0;switch(f.deltaMode){case f.DOM_DELTA_PIXEL:f.wheelX=S*M,f.wheelY=A*M;break;case f.DOM_DELTA_LINE:var b=15;f.wheelX=S*b,f.wheelY=A*b;break;case f.DOM_DELTA_PAGE:var m=150;f.wheelX=S*m,f.wheelY=A*m;break}w(f)},v)},L.addMultiMouseDownListener=function($,w,v,f,M){var S=0,A,b,m,k={2:"dblclick",3:"tripleclick",4:"quadclick"};function E(g){if(L.getButton(g)!==0?S=0:g.detail>1?(S++,S>4&&(S=1)):S=1,_.isIE){var C=Math.abs(g.clientX-A)>5||Math.abs(g.clientY-b)>5;(!m||C)&&(S=1),m&&clearTimeout(m),m=setTimeout(function(){m=null},w[S-1]||600),S==1&&(A=g.clientX,b=g.clientY)}if(g._clicks=S,v[f]("mousedown",g),S>4)S=0;else if(S>1)return v[f](k[S],g)}Array.isArray($)||($=[$]),$.forEach(function(g){e(g,"mousedown",E,M)})};var o=function($){return 0|($.ctrlKey?1:0)|($.altKey?2:0)|($.shiftKey?4:0)|($.metaKey?8:0)};L.getModifierString=function($){return d.KEY_MODS[o($)]};function l($,w,v){var f=o(w);if(!_.isMac&&p){if(w.getModifierState&&(w.getModifierState("OS")||w.getModifierState("Win"))&&(f|=8),p.altGr)if((3&f)!=3)p.altGr=0;else return;if(v===18||v===17){var M="location"in w?w.location:w.keyLocation;if(v===17&&M===1)p[v]==1&&(a=w.timeStamp);else if(v===18&&f===3&&M===2){var S=w.timeStamp-a;S<50&&(p.altGr=!0)}}}if(v in d.MODIFIER_KEYS&&(v=-1),!f&&v===13){var M="location"in w?w.location:w.keyLocation;if(M===3&&($(w,f,-v),w.defaultPrevented))return}if(_.isChromeOS&&f&8){if($(w,f,v),w.defaultPrevented)return;f&=-9}return!f&&!(v in d.FUNCTION_KEYS)&&!(v in d.PRINTABLE_KEYS)?!1:$(w,f,v)}L.addCommandKeyListener=function($,w,v){if(_.isOldGecko||_.isOpera&&!("KeyboardEvent"in window)){var f=null;e($,"keydown",function(S){f=S.keyCode},v),e($,"keypress",function(S){return l(w,S,f)},v)}else{var M=null;e($,"keydown",function(S){p[S.keyCode]=(p[S.keyCode]||0)+1;var A=l(w,S,S.keyCode);return M=S.defaultPrevented,A},v),e($,"keypress",function(S){M&&(S.ctrlKey||S.altKey||S.shiftKey||S.metaKey)&&(L.stopEvent(S),M=null)},v),e($,"keyup",function(S){p[S.keyCode]=null},v),p||(h(),e(window,"focus",h))}};function h(){p=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!_.isOldIE){var u=1;L.nextTick=function($,w){w=w||window;var v="zero-timeout-message-"+u++,f=function(M){M.data==v&&(L.stopPropagation(M),n(w,"message",f),$())};e(w,"message",f),w.postMessage(v,"*")}}L.$idleBlocked=!1,L.onIdle=function($,w){return setTimeout(function v(){L.$idleBlocked?setTimeout(v,100):$()},w)},L.$idleBlockId=null,L.blockIdle=function($){L.$idleBlockId&&clearTimeout(L.$idleBlockId),L.$idleBlocked=!0,L.$idleBlockId=setTimeout(function(){L.$idleBlocked=!1},$||100)},L.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),L.nextFrame?L.nextFrame=L.nextFrame.bind(window):L.nextFrame=function($){setTimeout($,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(y,L,I){var d;I.exports={lineMode:!1,pasteCancelled:function(){return d&&d>Date.now()-50?!0:d=!1},cancel:function(){d=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(y,L,I){var d=y("../lib/event"),_=y("../config").nls,p=y("../lib/useragent"),a=y("../lib/dom"),c=y("../lib/lang"),t=y("../clipboard"),i=p.isChrome<18,r=p.isIE,e=p.isChrome>63,n=400,o=y("../lib/keys"),l=o.KEY_MODS,h=p.isIOS,u=h?/\s/:/\n/,$=p.isMobile,w=function(v,f){var M=a.createElement("textarea");M.className="ace_text-input",M.setAttribute("wrap","off"),M.setAttribute("autocorrect","off"),M.setAttribute("autocapitalize","off"),M.setAttribute("spellcheck",!1),M.style.opacity="0",v.insertBefore(M,v.firstChild);var S=!1,A=!1,b=!1,m=!1,k="";$||(M.style.fontSize="1px");var E=!1,g=!1,C="",T=0,x=0,D=0;try{var V=document.activeElement===M}catch{}this.setAriaOptions=function(j){j.activeDescendant?(M.setAttribute("aria-haspopup","true"),M.setAttribute("aria-autocomplete",j.inline?"both":"list"),M.setAttribute("aria-activedescendant",j.activeDescendant)):(M.setAttribute("aria-haspopup","false"),M.setAttribute("aria-autocomplete","both"),M.removeAttribute("aria-activedescendant")),j.role&&M.setAttribute("role",j.role)},this.setAriaLabel=function(){if(f.session&&f.renderer.enableKeyboardAccessibility){var j=f.session.selection.cursor.row;M.setAttribute("aria-roledescription",_("editor")),M.setAttribute("aria-label",_("Cursor at row $0",[j+1]))}else M.removeAttribute("aria-roledescription"),M.removeAttribute("aria-label")},this.setAriaOptions({role:"textbox"}),this.setAriaLabel(),d.addListener(M,"blur",function(j){g||(f.onBlur(j),V=!1,$&&!h&&document.removeEventListener("selectionchange",W))},f),d.addListener(M,"focus",function(j){if(!g){if(V=!0,p.isEdge)try{if(!document.hasFocus())return}catch{}f.onFocus(j),p.isEdge?setTimeout(F):F(),$&&!h&&document.addEventListener("selectionchange",W)}},f),this.$focusScroll=!1,this.focus=function(){if(this.setAriaLabel(),k||e||this.$focusScroll=="browser")return M.focus({preventScroll:!0});var j=M.style.top;M.style.position="fixed",M.style.top="0px";try{var J=M.getBoundingClientRect().top!=0}catch{return}var te=[];if(J)for(var oe=M.parentElement;oe&&oe.nodeType==1;)te.push(oe),oe.setAttribute("ace_nocontext",!0),!oe.parentElement&&oe.getRootNode?oe=oe.getRootNode().host:oe=oe.parentElement;M.focus({preventScroll:!0}),J&&te.forEach(function(se){se.removeAttribute("ace_nocontext")}),setTimeout(function(){M.style.position="",M.style.top=="0px"&&(M.style.top=j)},0)},this.blur=function(){M.blur()},this.isFocused=function(){return V},f.on("beforeEndOperation",function(){var j=f.curOp,J=j&&j.command&&j.command.name;if(J!="insertstring"){var te=J&&(j.docChanged||j.selectionChanged);b&&te&&(C=M.value="",fe()),F()}});var F=h?function(j){if(!(!V||S&&!j||m)){j||(j="");var J=`
  153. ab`+j+`cde fg
  154. `;J!=M.value&&(M.value=C=J);var te=4,oe=4+(j.length||(f.selection.isEmpty()?0:1));(T!=te||x!=oe)&&M.setSelectionRange(te,oe),T=te,x=oe}}:function(){if(!(b||m)&&!(!V&&!z)){b=!0;var j=0,J=0,te="";if(f.session){var oe=f.selection,se=oe.getRange(),ue=oe.cursor.row;if(j=se.start.column,J=se.end.column,te=f.session.getLine(ue),se.start.row!=ue){var me=f.session.getLine(ue-1);j=se.start.row<ue-1?0:j,J+=me.length+1,te=me+`
  155. `+te}else if(se.end.row!=ue){var le=f.session.getLine(ue+1);J=se.end.row>ue+1?le.length:J,J+=te.length+1,te=te+`
  156. `+le}else $&&ue>0&&(te=`
  157. `+te,J+=1,j+=1);te.length>n&&(j<n&&J<n?te=te.slice(0,n):(te=`
  158. `,j==J?j=J=0:(j=0,J=1)))}var de=te+`
  159. `;if(de!=C&&(M.value=C=de,T=x=de.length),z&&(T=M.selectionStart,x=M.selectionEnd),x!=J||T!=j||M.selectionEnd!=x)try{M.setSelectionRange(j,J),T=j,x=J}catch{}b=!1}};this.resetSelection=F,V&&f.onFocus();var N=function(j){return j.selectionStart===0&&j.selectionEnd>=C.length&&j.value===C&&C&&j.selectionEnd!==x},U=function(j){b||(S?S=!1:N(M)?(f.selectAll(),F()):$&&M.selectionStart!=T&&F())};function W(j){if((!M||!M.parentNode)&&document.removeEventListener("selectionchange",W),!b&&M.selectionStart===M.selectionEnd){var J=M.selectionStart-T,te=x-T;J>0?J=Math.max(J-te,1):J===0&&te&&(J=-1);for(var oe=Math.abs(J),se=J>0?o.right:o.left,ue=0;ue<oe;ue++)f.onCommandKey({},0,se)}}var B=null;this.setInputHandler=function(j){B=j},this.getInputHandler=function(){return B};var z=!1,G=function(j,J){if(z&&(z=!1),A)return F(),j&&f.onPaste(j),A=!1,"";for(var te=M.selectionStart,oe=M.selectionEnd,se=T,ue=C.length-x,me=j,le=j.length-te,de=j.length-oe,ce=0;se>0&&C[ce]==j[ce];)ce++,se--;for(me=me.slice(ce),ce=1;ue>0&&C.length-ce>T-1&&C[C.length-ce]==j[j.length-ce];)ce++,ue--;le-=ce-1,de-=ce-1;var Se=me.length-ce+1;if(Se<0&&(se=-Se,Se=0),me=me.slice(0,Se),!J&&!me&&!le&&!se&&!ue&&!de)return"";m=!0;var We=!1;return p.isAndroid&&me==". "&&(me=" ",We=!0),me&&!se&&!ue&&!le&&!de||E?f.onTextInput(me):f.onTextInput(me,{extendLeft:se,extendRight:ue,restoreStart:le,restoreEnd:de}),m=!1,C=j,T=te,x=oe,D=de,We?`
  160. `:me},X=function(j){if(b)return ge();if(j&&j.inputType){if(j.inputType=="historyUndo")return f.execCommand("undo");if(j.inputType=="historyRedo")return f.execCommand("redo")}var J=M.value,te=G(J,!0);(J.length>n+100||u.test(te)||$&&T<1&&T==x)&&F()},Y=function(j,J,te){var oe=j.clipboardData||window.clipboardData;if(!(!oe||i)){var se=r||te?"Text":"text/plain";try{return J?oe.setData(se,J)!==!1:oe.getData(se)}catch(ue){if(!te)return Y(ue,J,!0)}}},Q=function(j,J){var te=f.getCopyText();if(!te)return d.preventDefault(j);Y(j,te)?(h&&(F(te),S=te,setTimeout(function(){S=!1},10)),J?f.onCut():f.onCopy(),d.preventDefault(j)):(S=!0,M.value=te,M.select(),setTimeout(function(){S=!1,F(),J?f.onCut():f.onCopy()}))},q=function(j){Q(j,!0)},ne=function(j){Q(j,!1)},ae=function(j){var J=Y(j);t.pasteCancelled()||(typeof J=="string"?(J&&f.onPaste(J,j),p.isIE&&setTimeout(F),d.preventDefault(j)):(M.value="",A=!0))};d.addCommandKeyListener(M,f.onCommandKey.bind(f),f),d.addListener(M,"select",U,f),d.addListener(M,"input",X,f),d.addListener(M,"cut",q,f),d.addListener(M,"copy",ne,f),d.addListener(M,"paste",ae,f),(!("oncut"in M)||!("oncopy"in M)||!("onpaste"in M))&&d.addListener(v,"keydown",function(j){if(!(p.isMac&&!j.metaKey||!j.ctrlKey))switch(j.keyCode){case 67:ne(j);break;case 86:ae(j);break;case 88:q(j);break}},f);var Ee=function(j){if(!(b||!f.onCompositionStart||f.$readOnly)&&(b={},!E)){j.data&&(b.useTextareaForIME=!1),setTimeout(ge,0),f._signal("compositionStart"),f.on("mousedown",be);var J=f.getSelectionRange();J.end.row=J.start.row,J.end.column=J.start.column,b.markerRange=J,b.selectionStart=T,f.onCompositionStart(b),b.useTextareaForIME?(C=M.value="",T=0,x=0):(M.msGetInputContext&&(b.context=M.msGetInputContext()),M.getInputContext&&(b.context=M.getInputContext()))}},ge=function(){if(!(!b||!f.onCompositionUpdate||f.$readOnly)){if(E)return be();if(b.useTextareaForIME)f.onCompositionUpdate(M.value);else{var j=M.value;G(j),b.markerRange&&(b.context&&(b.markerRange.start.column=b.selectionStart=b.context.compositionStartOffset),b.markerRange.end.column=b.markerRange.start.column+x-b.selectionStart+D)}}},fe=function(j){!f.onCompositionEnd||f.$readOnly||(b=!1,f.onCompositionEnd(),f.off("mousedown",be),j&&X())};function be(){g=!0,M.blur(),M.focus(),g=!1}var Fe=c.delayedCall(ge,50).schedule.bind(null,null);function xe(j){j.keyCode==27&&M.value.length<M.selectionStart&&(b||(C=M.value),T=x=-1,F()),Fe()}d.addListener(M,"compositionstart",Ee,f),d.addListener(M,"compositionupdate",ge,f),d.addListener(M,"keyup",xe,f),d.addListener(M,"keydown",Fe,f),d.addListener(M,"compositionend",fe,f),this.getElement=function(){return M},this.setCommandMode=function(j){E=j,M.readOnly=!1},this.setReadOnly=function(j){E||(M.readOnly=j)},this.setCopyWithEmptySelection=function(j){},this.onContextMenu=function(j){z=!0,F(),f._emit("nativecontextmenu",{target:f,domEvent:j}),this.moveToMouse(j,!0)},this.moveToMouse=function(j,J){k||(k=M.style.cssText),M.style.cssText=(J?"z-index:100000;":"")+(p.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+x)*f.renderer.characterWidth*.5+"px;";var te=f.container.getBoundingClientRect(),oe=a.computedStyle(f.container),se=te.top+(parseInt(oe.borderTopWidth)||0),ue=te.left+(parseInt(te.borderLeftWidth)||0),me=te.bottom-se-M.clientHeight-2,le=function(de){a.translate(M,de.clientX-ue-2,Math.min(de.clientY-se-2,me))};le(j),j.type=="mousedown"&&(f.renderer.$isMousePressed=!0,clearTimeout(tt),p.isWin&&d.capture(f.container,le,Qe))},this.onContextMenuClose=Qe;var tt;function Qe(){clearTimeout(tt),tt=setTimeout(function(){k&&(M.style.cssText=k,k=""),f.renderer.$isMousePressed=!1,f.renderer.$keepTextAreaAtCursor&&f.renderer.$moveTextAreaToCursor()},0)}var it=function(j){f.textInput.onContextMenu(j),Qe()};d.addListener(M,"mouseup",it,f),d.addListener(M,"mousedown",function(j){j.preventDefault(),Qe()},f),d.addListener(f.renderer.scroller,"contextmenu",it,f),d.addListener(M,"contextmenu",it,f),h&&wt(v,f,M);function wt(j,J,te){var oe=null,se=!1;te.addEventListener("keydown",function(me){oe&&clearTimeout(oe),se=!0},!0),te.addEventListener("keyup",function(me){oe=setTimeout(function(){se=!1},100)},!0);var ue=function(me){if(document.activeElement===te&&!(se||b||J.$mouseHandler.isMousePressed)&&!S){var le=te.selectionStart,de=te.selectionEnd,ce=null,Se=0;if(le==0?ce=o.up:le==1?ce=o.home:de>x&&C[de]==`
  161. `?ce=o.end:le<T&&C[le-1]==" "?(ce=o.left,Se=l.option):le<T||le==T&&x!=T&&le==de?ce=o.left:de>x&&C.slice(0,de).split(`
  162. `).length>2?ce=o.down:de>x&&C[de-1]==" "?(ce=o.right,Se=l.option):(de>x||de==x&&x!=T&&le==de)&&(ce=o.right),le!==de&&(Se|=l.shift),ce){var We=J.onCommandKey({},Se,ce);if(!We&&J.commands){ce=o.keyCodeToString(ce);var Be=J.commands.findKeyCommand(Se,ce);Be&&J.execCommand(Be)}T=le,x=de,F("")}}};document.addEventListener("selectionchange",ue),J.on("destroy",function(){document.removeEventListener("selectionchange",ue)})}this.destroy=function(){M.parentElement&&M.parentElement.removeChild(M)}};L.TextInput=w,L.$setUserAgentForTests=function(v,f){$=v,h=f}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(y,L,I){var d=y("../lib/useragent"),_=0,p=550,a=function(){function i(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 n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach(function(o){r[o]=this[o]},this),r.selectByLines=this.extendSelectionBy.bind(r,"getLineRange"),r.selectByWords=this.extendSelectionBy.bind(r,"getWordRange")}return i.prototype.onMouseDown=function(r){var e=r.inSelection(),n=r.getDocumentPosition();this.mousedownEvent=r;var o=this.editor,l=r.getButton();if(l!==0){var h=o.getSelectionRange(),u=h.isEmpty();(u||l==1)&&o.selection.moveToPosition(n),l==2&&(o.textInput.onContextMenu(r.domEvent),d.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(n,r.domEvent._clicks>1),r.preventDefault()},i.prototype.startSelect=function(r,e){r=r||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(r):e||n.selection.moveToPosition(r),e||this.select(),n.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var r,e=this.editor,n=e.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var o=this.$clickSelection.comparePoint(n);if(o==-1)r=this.$clickSelection.end;else if(o==1)r=this.$clickSelection.start;else{var l=t(this.$clickSelection,n);n=l.cursor,r=l.anchor}e.selection.setSelectionAnchor(r.row,r.column)}e.selection.selectToPosition(n),e.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(r){var e,n=this.editor,o=n.renderer.screenToTextCoordinates(this.x,this.y),l=n.selection[r](o.row,o.column);if(this.$clickSelection){var h=this.$clickSelection.comparePoint(l.start),u=this.$clickSelection.comparePoint(l.end);if(h==-1&&u<=0)e=this.$clickSelection.end,(l.end.row!=o.row||l.end.column!=o.column)&&(o=l.start);else if(u==1&&h>=0)e=this.$clickSelection.start,(l.start.row!=o.row||l.start.column!=o.column)&&(o=l.end);else if(h==-1&&u==1)o=l.end,e=l.start;else{var $=t(this.$clickSelection,o);o=$.cursor,e=$.anchor}n.selection.setSelectionAnchor(e.row,e.column)}n.selection.selectToPosition(o),n.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},i.prototype.focusWait=function(){var r=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),e=Date.now();(r>_||e-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(r){var e=r.getDocumentPosition(),n=this.editor,o=n.session,l=o.getBracketRange(e);l?(l.isEmpty()&&(l.start.column--,l.end.column++),this.setState("select")):(l=n.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=l,this.select()},i.prototype.onTripleClick=function(r){var e=r.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var o=n.getSelectionRange();o.isMultiLine()&&o.contains(e.row,e.column)?(this.$clickSelection=n.selection.getLineRange(o.start.row),this.$clickSelection.end=n.selection.getLineRange(o.end.row).end):this.$clickSelection=n.selection.getLineRange(e.row),this.select()},i.prototype.onQuadClick=function(r){var e=this.editor;e.selectAll(),this.$clickSelection=e.getSelectionRange(),this.setState("selectAll")},i.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 n=this.$lastScroll,o=r.domEvent.timeStamp,l=o-n.t,h=l?r.wheelX/l:n.vx,u=l?r.wheelY/l:n.vy;l<p&&(h=(h+n.vx)/2,u=(u+n.vy)/2);var $=Math.abs(h/u),w=!1;if($>=1&&e.renderer.isScrollableBy(r.wheelX*r.speed,0)&&(w=!0),$<=1&&e.renderer.isScrollableBy(0,r.wheelY*r.speed)&&(w=!0),w)n.allowed=o;else if(o-n.allowed<p){var v=Math.abs(h)<=1.5*Math.abs(n.vx)&&Math.abs(u)<=1.5*Math.abs(n.vy);v?(w=!0,n.allowed=o):n.allowed=0}if(n.t=o,n.vx=h,n.vy=u,w)return e.renderer.scrollBy(r.wheelX*r.speed,r.wheelY*r.speed),r.stop()}},i}();a.prototype.selectEnd=a.prototype.selectByLinesEnd,a.prototype.selectAllEnd=a.prototype.selectByLinesEnd,a.prototype.selectByWordsEnd=a.prototype.selectByLinesEnd,L.DefaultHandlers=a;function c(i,r,e,n){return Math.sqrt(Math.pow(e-i,2)+Math.pow(n-r,2))}function t(i,r){if(i.start.row==i.end.row)var e=2*r.column-i.start.column-i.end.column;else if(i.start.row==i.end.row-1&&!i.start.column&&!i.end.column)var e=r.column-4;else var e=2*r.row-i.start.row-i.end.row;return e<0?{cursor:i.start,anchor:i.end}:{cursor:i.end,anchor:i.start}}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/range"],function(y,L,I){var d=this&&this.__extends||function(){var n=function(o,l){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var $ in u)Object.prototype.hasOwnProperty.call(u,$)&&(h[$]=u[$])},n(o,l)};return function(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");n(o,l);function h(){this.constructor=o}o.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}(),_=this&&this.__values||function(n){var o=typeof Symbol=="function"&&Symbol.iterator,l=o&&n[o],h=0;if(l)return l.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&h>=n.length&&(n=void 0),{value:n&&n[h++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},p=y("./lib/dom"),a=y("./range").Range,c="ace_tooltip",t=function(){function n(o){this.isOpen=!1,this.$element=null,this.$parentNode=o}return n.prototype.$init=function(){return this.$element=p.createElement("div"),this.$element.className=c,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},n.prototype.getElement=function(){return this.$element||this.$init()},n.prototype.setText=function(o){this.getElement().textContent=o},n.prototype.setHtml=function(o){this.getElement().innerHTML=o},n.prototype.setPosition=function(o,l){this.getElement().style.left=o+"px",this.getElement().style.top=l+"px"},n.prototype.setClassName=function(o){p.addCssClass(this.getElement(),o)},n.prototype.setTheme=function(o){this.$element.className=c+" "+(o.isDark?"ace_dark ":"")+(o.cssClass||"")},n.prototype.show=function(o,l,h){o!=null&&this.setText(o),l!=null&&h!=null&&this.setPosition(l,h),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},n.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=c,this.isOpen=!1)},n.prototype.getHeight=function(){return this.getElement().offsetHeight},n.prototype.getWidth=function(){return this.getElement().offsetWidth},n.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},n}(),i=function(){function n(){this.popups=[]}return n.prototype.addPopup=function(o){this.popups.push(o),this.updatePopups()},n.prototype.removePopup=function(o){var l=this.popups.indexOf(o);l!==-1&&(this.popups.splice(l,1),this.updatePopups())},n.prototype.updatePopups=function(){var o,l,h,u;this.popups.sort(function(m,k){return k.priority-m.priority});var $=[];try{for(var w=_(this.popups),v=w.next();!v.done;v=w.next()){var f=v.value,M=!0;try{for(var S=(h=void 0,_($)),A=S.next();!A.done;A=S.next()){var b=A.value;if(this.doPopupsOverlap(b,f)){M=!1;break}}}catch(m){h={error:m}}finally{try{A&&!A.done&&(u=S.return)&&u.call(S)}finally{if(h)throw h.error}}M?$.push(f):f.hide()}}catch(m){o={error:m}}finally{try{v&&!v.done&&(l=w.return)&&l.call(w)}finally{if(o)throw o.error}}},n.prototype.doPopupsOverlap=function(o,l){var h=o.getElement().getBoundingClientRect(),u=l.getElement().getBoundingClientRect();return h.left<u.right&&h.right>u.left&&h.top<u.bottom&&h.bottom>u.top},n}(),r=new i;L.popupManager=r,L.Tooltip=t;var e=function(n){d(o,n);function o(l){l===void 0&&(l=document.body);var h=n.call(this,l)||this;h.timeout=void 0,h.lastT=0,h.idleTime=350,h.lastEvent=void 0,h.onMouseOut=h.onMouseOut.bind(h),h.onMouseMove=h.onMouseMove.bind(h),h.waitForHover=h.waitForHover.bind(h),h.hide=h.hide.bind(h);var u=h.getElement();return u.style.whiteSpace="pre-wrap",u.style.pointerEvents="auto",u.addEventListener("mouseout",h.onMouseOut),u.tabIndex=-1,u.addEventListener("blur",function(){u.contains(document.activeElement)||this.hide()}.bind(h)),h}return o.prototype.addToEditor=function(l){l.on("mousemove",this.onMouseMove),l.on("mousedown",this.hide),l.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},o.prototype.removeFromEditor=function(l){l.off("mousemove",this.onMouseMove),l.off("mousedown",this.hide),l.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},o.prototype.onMouseMove=function(l,h){this.lastEvent=l,this.lastT=Date.now();var u=h.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||u||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||u||(this.lastEvent=l,this.timeout=setTimeout(this.waitForHover,this.idleTime))},o.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var l=Date.now()-this.lastT;if(this.idleTime-l>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-l);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},o.prototype.isOutsideOfText=function(l){var h=l.editor,u=l.getDocumentPosition(),$=h.session.getLine(u.row);if(u.column==$.length){var w=h.renderer.pixelToScreenCoordinates(l.clientX,l.clientY),v=h.session.documentToScreenPosition(u.row,u.column);if(v.column!=w.column||v.row!=w.row)return!0}return!1},o.prototype.setDataProvider=function(l){this.$gatherData=l},o.prototype.showForRange=function(l,h,u,$){if(!($&&$!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var w=l.renderer;this.isOpen||(r.addPopup(this),this.$registerCloseEvents(),this.setTheme(w.theme)),this.isOpen=!0,this.addMarker(h,l.session),this.range=a.fromPoints(h.start,h.end);var v=this.getElement();v.innerHTML="",v.appendChild(u),v.style.display="block";var f=w.textToScreenCoordinates(h.start.row,h.start.column),M=l.getCursorPosition(),S=v.clientHeight,A=w.scroller.getBoundingClientRect(),b=!0;this.row>M.row?b=!0:this.row<M.row&&(b=!1),f.pageY-S+w.lineHeight<A.top?b=!0:f.pageY+S>A.bottom&&(b=!1),b?f.pageY+=w.lineHeight:f.pageY-=S,v.style.maxWidth=A.width-(f.pageX-A.left)+"px",this.setPosition(f.pageX,f.pageY)}},o.prototype.addMarker=function(l,h){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=h,this.marker=h&&h.addMarker(l,"ace_highlight-marker","text")},o.prototype.hide=function(l){!l&&document.activeElement==this.getElement()||l&&l.target&&(l.type!="keydown"||l.ctrlKey||l.metaKey)&&this.$element.contains(l.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,r.removePopup(this)))},o.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},o.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},o.prototype.onMouseOut=function(l){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!l.relatedTarget||l.relatedTarget==this.getElement()||l&&l.currentTarget.contains(l.relatedTarget)||l.relatedTarget.classList.contains("ace_content")||this.hide())},o}(t);L.HoverTooltip=e}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(y,L,I){var d=this&&this.__extends||function(){var e=function(n,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var u in h)Object.prototype.hasOwnProperty.call(h,u)&&(l[u]=h[u])},e(n,o)};return function(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(n,o);function l(){this.constructor=n}n.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}}(),_=this&&this.__values||function(e){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&e[n],l=0;if(o)return o.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&l>=e.length&&(e=void 0),{value:e&&e[l++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},p=y("../lib/dom"),a=y("../lib/event"),c=y("../tooltip").Tooltip,t=y("../config").nls;function i(e){var n=e.editor,o=n.renderer.$gutterLayer,l=new r(n);e.editor.setDefaultHandler("guttermousedown",function(f){if(!(!n.isFocused()||f.getButton()!=0)){var M=o.getRegion(f);if(M!="foldWidgets"){var S=f.getDocumentPosition().row,A=n.session.selection;if(f.getShiftKey())A.selectTo(S,0);else{if(f.domEvent.detail==2)return n.selectAll(),f.preventDefault();e.$clickSelection=n.selection.getLineRange(S)}return e.setState("selectByLines"),e.captureMouse(f),f.preventDefault()}}});var h,u;function $(){var f=u.getDocumentPosition().row,M=n.session.getLength();if(f==M){var S=n.renderer.pixelToScreenCoordinates(0,u.y).row,A=u.$pos;if(S>n.session.documentToScreenRow(A.row,A.column))return w()}if(l.showTooltip(f),!!l.isOpen)if(n.on("mousewheel",w),e.$tooltipFollowsMouse)v(u);else{var b=o.$lines.cells[f].element.querySelector("[class*=ace_icon]"),m=b.getBoundingClientRect(),k=l.getElement().style;k.left=m.right+"px",k.top=m.bottom+"px"}}function w(){h&&(h=clearTimeout(h)),l.isOpen&&(l.hideTooltip(),n.off("mousewheel",w))}function v(f){l.setPosition(f.x,f.y)}e.editor.setDefaultHandler("guttermousemove",function(f){var M=f.domEvent.target||f.domEvent.srcElement;if(p.hasCssClass(M,"ace_fold-widget"))return w();l.isOpen&&e.$tooltipFollowsMouse&&v(f),u=f,!h&&(h=setTimeout(function(){h=null,u&&!e.isMousePressed?$():w()},50))}),a.addListener(n.renderer.$gutter,"mouseout",function(f){u=null,!(!l.isOpen||h)&&(h=setTimeout(function(){h=null,w()},50))},n),n.on("changeSession",w),n.on("input",w)}L.GutterHandler=i;var r=function(e){d(n,e);function n(o){var l=e.call(this,o.container)||this;return l.editor=o,l}return n.prototype.setPosition=function(o,l){var h=window.innerWidth||document.documentElement.clientWidth,u=window.innerHeight||document.documentElement.clientHeight,$=this.getWidth(),w=this.getHeight();o+=15,l+=15,o+$>h&&(o-=o+$-h),l+w>u&&(l-=20+w),c.prototype.setPosition.call(this,o,l)},Object.defineProperty(n,"annotationLabels",{get:function(){return{error:{singular:t("error"),plural:t("errors")},warning:{singular:t("warning"),plural:t("warnings")},info:{singular:t("information message"),plural:t("information messages")}}},enumerable:!1,configurable:!0}),n.prototype.showTooltip=function(o){var l=this.editor.renderer.$gutterLayer,h=l.$annotations[o],u;h?u={text:Array.from(h.text),type:Array.from(h.type)}:u={text:[],type:[]};var $=l.session.getFoldLine(o);if($&&l.$showFoldedAnnotations){for(var w={error:[],warning:[],info:[]},v,f=o+1;f<=$.end.row;f++)if(l.$annotations[f])for(var M=0;M<l.$annotations[f].text.length;M++){var S=l.$annotations[f].type[M];if(w[S].push(l.$annotations[f].text[M]),S==="error"){v="error_fold";continue}if(S==="warning"){v="warning_fold";continue}}if(v==="error_fold"||v==="warning_fold"){var A="".concat(n.annotationsToSummaryString(w)," in folded code.");u.text.push(A),u.type.push(v)}}if(u.text.length===0)return this.hide();for(var b={error:[],warning:[],info:[]},m=l.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",f=0;f<u.text.length;f++){var k="<span class='ace_".concat(u.type[f]," ").concat(m,"' aria-label='").concat(n.annotationLabels[u.type[f].replace("_fold","")].singular,"' role=img> </span> ").concat(u.text[f]);b[u.type[f].replace("_fold","")].push(k)}var E=[].concat(b.error,b.warning,b.info).join("<br>");this.setHtml(E),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},n.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},n.annotationsToSummaryString=function(o){var l,h,u=[],$=["error","warning","info"];try{for(var w=_($),v=w.next();!v.done;v=w.next()){var f=v.value;if(o[f].length){var M=o[f].length===1?n.annotationLabels[f].singular:n.annotationLabels[f].plural;u.push("".concat(o[f].length," ").concat(M))}}}catch(S){l={error:S}}finally{try{v&&!v.done&&(h=w.return)&&h.call(w)}finally{if(l)throw l.error}}return u.join(", ")},n}(c);L.GutterTooltip=r}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(y,L,I){var d=y("../lib/event"),_=y("../lib/useragent"),p=function(){function a(c,t){this.domEvent=c,this.editor=t,this.x=this.clientX=c.clientX,this.y=this.clientY=c.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return a.prototype.stopPropagation=function(){d.stopPropagation(this.domEvent),this.propagationStopped=!0},a.prototype.preventDefault=function(){d.preventDefault(this.domEvent),this.defaultPrevented=!0},a.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},a.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},a.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var c=this.editor,t=c.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=t.contains(i.row,i.column)}return this.$inSelection},a.prototype.getButton=function(){return d.getButton(this.domEvent)},a.prototype.getShiftKey=function(){return this.domEvent.shiftKey},a.prototype.getAccelKey=function(){return _.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},a}();L.MouseEvent=p}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(y,L,I){var d=y("../lib/dom"),_=y("../lib/event"),p=y("../lib/useragent"),a=200,c=200,t=5;function i(e){var n=e.editor,o=d.createElement("div");o.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",o.textContent=" ";var l=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];l.forEach(function(W){e[W]=this[W]},this),n.on("mousedown",this.onMouseDown.bind(e));var h=n.container,u,$,w,v,f,M,S=0,A,b,m,k,E;this.onDragStart=function(W){if(this.cancelDrag||!h.draggable){var B=this;return setTimeout(function(){B.startSelect(),B.captureMouse(W)},0),W.preventDefault()}f=n.getSelectionRange();var z=W.dataTransfer;z.effectAllowed=n.getReadOnly()?"copy":"copyMove",n.container.appendChild(o),z.setDragImage&&z.setDragImage(o,0,0),setTimeout(function(){n.container.removeChild(o)}),z.clearData(),z.setData("Text",n.session.getTextRange()),b=!0,this.setState("drag")},this.onDragEnd=function(W){if(h.draggable=!1,b=!1,this.setState(null),!n.getReadOnly()){var B=W.dataTransfer.dropEffect;!A&&B=="move"&&n.session.remove(n.getSelectionRange()),n.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(W){if(!(n.getReadOnly()||!N(W.dataTransfer)))return $=W.clientX,w=W.clientY,u||x(),S++,W.dataTransfer.dropEffect=A=U(W),_.preventDefault(W)},this.onDragOver=function(W){if(!(n.getReadOnly()||!N(W.dataTransfer)))return $=W.clientX,w=W.clientY,u||(x(),S++),V!==null&&(V=null),W.dataTransfer.dropEffect=A=U(W),_.preventDefault(W)},this.onDragLeave=function(W){if(S--,S<=0&&u)return D(),A=null,_.preventDefault(W)},this.onDrop=function(W){if(M){var B=W.dataTransfer;if(b)switch(A){case"move":f.contains(M.row,M.column)?f={start:M,end:M}:f=n.moveText(f,M);break;case"copy":f=n.moveText(f,M,!0);break}else{var z=B.getData("Text");f={start:M,end:n.session.insert(M,z)},n.focus(),A=null}return D(),_.preventDefault(W)}},_.addListener(h,"dragstart",this.onDragStart.bind(e),n),_.addListener(h,"dragend",this.onDragEnd.bind(e),n),_.addListener(h,"dragenter",this.onDragEnter.bind(e),n),_.addListener(h,"dragover",this.onDragOver.bind(e),n),_.addListener(h,"dragleave",this.onDragLeave.bind(e),n),_.addListener(h,"drop",this.onDrop.bind(e),n);function g(W,B){var z=Date.now(),G=!B||W.row!=B.row,X=!B||W.column!=B.column;if(!k||G||X)n.moveCursorToPosition(W),k=z,E={x:$,y:w};else{var Y=r(E.x,E.y,$,w);Y>t?k=null:z-k>=c&&(n.renderer.scrollCursorIntoView(),k=null)}}function C(W,B){var z=Date.now(),G=n.renderer.layerConfig.lineHeight,X=n.renderer.layerConfig.characterWidth,Y=n.renderer.scroller.getBoundingClientRect(),Q={x:{left:$-Y.left,right:Y.right-$},y:{top:w-Y.top,bottom:Y.bottom-w}},q=Math.min(Q.x.left,Q.x.right),ne=Math.min(Q.y.top,Q.y.bottom),ae={row:W.row,column:W.column};q/X<=2&&(ae.column+=Q.x.left<Q.x.right?-3:2),ne/G<=1&&(ae.row+=Q.y.top<Q.y.bottom?-1:1);var Ee=W.row!=ae.row,ge=W.column!=ae.column,fe=!B||W.row!=B.row;Ee||ge&&!fe?m?z-m>=a&&n.renderer.scrollCursorIntoView(ae):m=z:m=null}function T(){var W=M;M=n.renderer.screenToTextCoordinates($,w),g(M,W),C(M,W)}function x(){f=n.selection.toOrientedRange(),u=n.session.addMarker(f,"ace_selection",n.getSelectionStyle()),n.clearSelection(),n.isFocused()&&n.renderer.$cursorLayer.setBlinking(!1),clearInterval(v),T(),v=setInterval(T,20),S=0,_.addListener(document,"mousemove",F)}function D(){clearInterval(v),n.session.removeMarker(u),u=null,n.selection.fromOrientedRange(f),n.isFocused()&&!b&&n.$resetCursorStyle(),f=null,M=null,S=0,m=null,k=null,_.removeListener(document,"mousemove",F)}var V=null;function F(){V==null&&(V=setTimeout(function(){V!=null&&u&&D()},20))}function N(W){var B=W.types;return!B||Array.prototype.some.call(B,function(z){return z=="text/plain"||z=="Text"})}function U(W){var B=["copy","copymove","all","uninitialized"],z=["move","copymove","linkmove","all","uninitialized"],G=p.isMac?W.altKey:W.ctrlKey,X="uninitialized";try{X=W.dataTransfer.effectAllowed.toLowerCase()}catch{}var Y="none";return G&&B.indexOf(X)>=0?Y="copy":z.indexOf(X)>=0?Y="move":B.indexOf(X)>=0&&(Y="copy"),Y}}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,n=e.container;n.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var o=p.isWin?"default":"move";e.renderer.setCursorStyle(o),this.setState("dragReady")},this.onMouseDrag=function(e){var n=this.editor.container;if(p.isIE&&this.state=="dragReady"){var o=r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);o>3&&n.dragDrop()}if(this.state==="dragWait"){var o=r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);o>0&&(n.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var n=this.editor,o=e.inSelection(),l=e.getButton(),h=e.domEvent.detail||1;if(h===1&&l===0&&o){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var u=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in u&&(u.unselectable="on"),n.getDragDelay()){if(p.isWebKit){this.cancelDrag=!0;var $=n.container;$.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(i.prototype);function r(e,n,o,l){return Math.sqrt(Math.pow(o-e,2)+Math.pow(l-n,2))}L.DragdropHandler=i}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(y,L,I){var d=y("./mouse_event").MouseEvent,_=y("../lib/event"),p=y("../lib/dom");L.addTouchListeners=function(a,c){var t="scroll",i,r,e,n,o,l,h=0,u,$=0,w=0,v=0,f,M;function S(){var g=window.navigator&&window.navigator.clipboard,C=!1,T=function(){var D=c.getCopyText(),V=c.session.getUndoManager().hasUndo();M.replaceChild(p.buildDom(C?["span",!D&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],D&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],D&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],g&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),M.firstChild)},x=function(D){var V=D.target.getAttribute("action");if(V=="more"||!C)return C=!C,T();V=="paste"?g.readText().then(function(F){c.execCommand(V,F)}):V&&((V=="cut"||V=="copy")&&(g?g.writeText(c.getCopyText()):document.execCommand("copy")),c.execCommand(V)),M.firstChild.style.display="none",C=!1,V!="openCommandPallete"&&c.focus()};M=p.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(D){t="menu",D.stopPropagation(),D.preventDefault(),c.textInput.focus()},ontouchend:function(D){D.stopPropagation(),D.preventDefault(),x(D)},onclick:x},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],c.container)}function A(){M||S();var g=c.selection.cursor,C=c.renderer.textToScreenCoordinates(g.row,g.column),T=c.renderer.textToScreenCoordinates(0,0).pageX,x=c.renderer.scrollLeft,D=c.container.getBoundingClientRect();M.style.top=C.pageY-D.top-3+"px",C.pageX-D.left<D.width-70?(M.style.left="",M.style.right="10px"):(M.style.right="",M.style.left=T+x-D.left+"px"),M.style.display="",M.firstChild.style.display="none",c.on("input",b)}function b(g){M&&(M.style.display="none"),c.off("input",b)}function m(){o=null,clearTimeout(o);var g=c.selection.getRange(),C=g.contains(u.row,u.column);(g.isEmpty()||!C)&&(c.selection.moveToPosition(u),c.selection.selectWord()),t="wait",A()}function k(){o=null,clearTimeout(o),c.selection.moveToPosition(u);var g=$>=2?c.selection.getLineRange(u.row):c.session.getBracketRange(u);g&&!g.isEmpty()?c.selection.setRange(g):c.selection.selectWord(),t="wait"}_.addListener(a,"contextmenu",function(g){if(f){var C=c.textInput.getElement();C.focus()}},c),_.addListener(a,"touchstart",function(g){var C=g.touches;if(o||C.length>1){clearTimeout(o),o=null,e=-1,t="zoom";return}f=c.$mouseHandler.isMousePressed=!0;var T=c.renderer.layerConfig.lineHeight,x=c.renderer.layerConfig.lineHeight,D=g.timeStamp;n=D;var V=C[0],F=V.clientX,N=V.clientY;Math.abs(i-F)+Math.abs(r-N)>T&&(e=-1),i=g.clientX=F,r=g.clientY=N,w=v=0;var U=new d(g,c);if(u=U.getDocumentPosition(),D-e<500&&C.length==1&&!h)$++,g.preventDefault(),g.button=0,k();else{$=0;var W=c.selection.cursor,B=c.selection.isEmpty()?W:c.selection.anchor,z=c.renderer.$cursorLayer.getPixelPosition(W,!0),G=c.renderer.$cursorLayer.getPixelPosition(B,!0),X=c.renderer.scroller.getBoundingClientRect(),Y=c.renderer.layerConfig.offset,Q=c.renderer.scrollLeft,q=function(Ee,ge){return Ee=Ee/x,ge=ge/T-.75,Ee*Ee+ge*ge};if(g.clientX<X.left){t="zoom";return}var ne=q(g.clientX-X.left-z.left+Q,g.clientY-X.top-z.top+Y),ae=q(g.clientX-X.left-G.left+Q,g.clientY-X.top-G.top+Y);ne<3.5&&ae<3.5&&(t=ne>ae?"cursor":"anchor"),ae<3.5?t="anchor":ne<3.5?t="cursor":t="scroll",o=setTimeout(m,450)}e=D},c),_.addListener(a,"touchend",function(g){f=c.$mouseHandler.isMousePressed=!1,l&&clearInterval(l),t=="zoom"?(t="",h=0):o?(c.selection.moveToPosition(u),h=0,A()):t=="scroll"?(E(),b()):A(),clearTimeout(o),o=null},c),_.addListener(a,"touchmove",function(g){o&&(clearTimeout(o),o=null);var C=g.touches;if(!(C.length>1||t=="zoom")){var T=C[0],x=i-T.clientX,D=r-T.clientY;if(t=="wait")if(x*x+D*D>4)t="cursor";else return g.preventDefault();i=T.clientX,r=T.clientY,g.clientX=T.clientX,g.clientY=T.clientY;var V=g.timeStamp,F=V-n;if(n=V,t=="scroll"){var N=new d(g,c);N.speed=1,N.wheelX=x,N.wheelY=D,10*Math.abs(x)<Math.abs(D)&&(x=0),10*Math.abs(D)<Math.abs(x)&&(D=0),F!=0&&(w=x/F,v=D/F),c._emit("mousewheel",N),N.propagationStopped||(w=v=0)}else{var U=new d(g,c),W=U.getDocumentPosition();t=="cursor"?c.selection.moveCursorToPosition(W):t=="anchor"&&c.selection.setSelectionAnchor(W.row,W.column),c.renderer.scrollCursorIntoView(W),g.preventDefault()}}},c);function E(){h+=60,l=setInterval(function(){h--<=0&&(clearInterval(l),l=null),Math.abs(w)<.01&&(w=0),Math.abs(v)<.01&&(v=0),h<20&&(w=.9*w),h<20&&(v=.9*v);var g=c.session.getScrollTop();c.renderer.scrollBy(10*w,10*v),g==c.session.getScrollTop()&&(h=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(y,L,I){var d=y("../lib/event"),_=y("../lib/useragent"),p=y("./default_handlers").DefaultHandlers,a=y("./default_gutter_handler").GutterHandler,c=y("./mouse_event").MouseEvent,t=y("./dragdrop_handler").DragdropHandler,i=y("./touch_handler").addTouchListeners,r=y("../config"),e=function(){function n(o){var l=this;this.editor=o,new p(this),new a(this),new t(this);var h=function(w){var v=!document.hasFocus||!document.hasFocus()||!o.isFocused()&&document.activeElement==(o.textInput&&o.textInput.getElement());v&&window.focus(),o.focus(),setTimeout(function(){o.isFocused()||o.focus()})},u=o.renderer.getMouseEventTarget();d.addListener(u,"click",this.onMouseEvent.bind(this,"click"),o),d.addListener(u,"mousemove",this.onMouseMove.bind(this,"mousemove"),o),d.addMultiMouseDownListener([u,o.renderer.scrollBarV&&o.renderer.scrollBarV.inner,o.renderer.scrollBarH&&o.renderer.scrollBarH.inner,o.textInput&&o.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",o),d.addMouseWheelListener(o.container,this.onMouseWheel.bind(this,"mousewheel"),o),i(o.container,o);var $=o.renderer.$gutter;d.addListener($,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),o),d.addListener($,"click",this.onMouseEvent.bind(this,"gutterclick"),o),d.addListener($,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),o),d.addListener($,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),o),d.addListener(u,"mousedown",h,o),d.addListener($,"mousedown",h,o),_.isIE&&o.renderer.scrollBarV&&(d.addListener(o.renderer.scrollBarV.element,"mousedown",h,o),d.addListener(o.renderer.scrollBarH.element,"mousedown",h,o)),o.on("mousemove",function(w){if(!(l.state||l.$dragDelay||!l.$dragEnabled)){var v=o.renderer.screenToTextCoordinates(w.x,w.y),f=o.session.selection.getRange(),M=o.renderer;!f.isEmpty()&&f.insideStart(v.row,v.column)?M.setCursorStyle("default"):M.setCursorStyle("")}},o)}return n.prototype.onMouseEvent=function(o,l){this.editor.session&&this.editor._emit(o,new c(l,this.editor))},n.prototype.onMouseMove=function(o,l){var h=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!h||!h.length||this.editor._emit(o,new c(l,this.editor))},n.prototype.onMouseWheel=function(o,l){var h=new c(l,this.editor);h.speed=this.$scrollSpeed*2,h.wheelX=l.wheelX,h.wheelY=l.wheelY,this.editor._emit(o,h)},n.prototype.setState=function(o){this.state=o},n.prototype.captureMouse=function(o,l){this.x=o.x,this.y=o.y,this.isMousePressed=!0;var h=this.editor,u=this.editor.renderer;u.$isMousePressed=!0;var $=this,w=function(A){if(A){if(_.isWebKit&&!A.which&&$.releaseMouse)return $.releaseMouse();$.x=A.clientX,$.y=A.clientY,l&&l(A),$.mouseEvent=new c(A,$.editor),$.$mouseMoved=!0}},v=function(A){h.off("beforeEndOperation",M),clearInterval(S),h.session&&f(),$[$.state+"End"]&&$[$.state+"End"](A),$.state="",$.isMousePressed=u.$isMousePressed=!1,u.$keepTextAreaAtCursor&&u.$moveTextAreaToCursor(),$.$onCaptureMouseMove=$.releaseMouse=null,A&&$.onMouseEvent("mouseup",A),h.endOperation()},f=function(){$[$.state]&&$[$.state](),$.$mouseMoved=!1};if(_.isOldIE&&o.domEvent.type=="dblclick")return setTimeout(function(){v(o)});var M=function(A){$.releaseMouse&&h.curOp.command.name&&h.curOp.selectionChanged&&($[$.state+"End"]&&$[$.state+"End"](),$.state="",$.releaseMouse())};h.on("beforeEndOperation",M),h.startOperation({command:{name:"mouse"}}),$.$onCaptureMouseMove=w,$.releaseMouse=d.capture(this.editor.container,w,v);var S=setInterval(f,20)},n.prototype.cancelContextMenu=function(){var o=function(l){l&&l.domEvent&&l.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",o),l&&l.domEvent&&d.stopEvent(l.domEvent))}.bind(this);setTimeout(o,10),this.editor.on("nativecontextmenu",o)},n.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},n}();e.prototype.releaseMouse=null,r.defineOptions(e.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:_.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),L.MouseHandler=e}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(y,L,I){var d=y("../lib/dom"),_=function(){function p(a){a.on("click",function(c){var t=c.getDocumentPosition(),i=a.session,r=i.getFoldAt(t.row,t.column,1);r&&(c.getAccelKey()?i.removeFold(r):i.expandFold(r),c.stop());var e=c.domEvent&&c.domEvent.target;e&&d.hasCssClass(e,"ace_inline_button")&&d.hasCssClass(e,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),a.renderer.scrollCursorIntoView())}),a.on("gutterclick",function(c){var t=a.renderer.$gutterLayer.getRegion(c);if(t=="foldWidgets"){var i=c.getDocumentPosition().row,r=a.session;r.foldWidgets&&r.foldWidgets[i]&&a.session.onFoldWidgetClick(i,c),a.isFocused()||a.focus(),c.stop()}}),a.on("gutterdblclick",function(c){var t=a.renderer.$gutterLayer.getRegion(c);if(t=="foldWidgets"){var i=c.getDocumentPosition().row,r=a.session,e=r.getParentFoldRangeData(i,!0),n=e.range||e.firstRange;if(n){i=n.start.row;var o=r.getFoldAt(i,r.getLine(i).length,1);o?r.removeFold(o):(r.addFold("...",n),a.renderer.scrollCursorIntoView({row:n.start.row,column:0}))}c.stop()}})}return p}();L.FoldHandler=_}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(y,L,I){var d=y("../lib/keys"),_=y("../lib/event"),p=function(){function a(c){this.$editor=c,this.$data={editor:c},this.$handlers=[],this.setDefaultHandler(c.commands)}return a.prototype.setDefaultHandler=function(c){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=c,this.addKeyboardHandler(c,0)},a.prototype.setKeyboardHandler=function(c){var t=this.$handlers;if(t[t.length-1]!=c){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(c,1)}},a.prototype.addKeyboardHandler=function(c,t){if(c){typeof c=="function"&&!c.handleKeyboard&&(c.handleKeyboard=c);var i=this.$handlers.indexOf(c);i!=-1&&this.$handlers.splice(i,1),t==null?this.$handlers.push(c):this.$handlers.splice(t,0,c),i==-1&&c.attach&&c.attach(this.$editor)}},a.prototype.removeKeyboardHandler=function(c){var t=this.$handlers.indexOf(c);return t==-1?!1:(this.$handlers.splice(t,1),c.detach&&c.detach(this.$editor),!0)},a.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},a.prototype.getStatusText=function(){var c=this.$data,t=c.editor;return this.$handlers.map(function(i){return i.getStatusText&&i.getStatusText(t,c)||""}).filter(Boolean).join(" ")},a.prototype.$callKeyboardHandlers=function(c,t,i,r){for(var e,n=!1,o=this.$editor.commands,l=this.$handlers.length;l--&&(e=this.$handlers[l].handleKeyboard(this.$data,c,t,i,r),!(!(!e||!e.command)&&(e.command=="null"?n=!0:n=o.exec(e.command,this.$editor,e.args,r),n&&r&&c!=-1&&e.passEvent!=!0&&e.command.passEvent!=!0&&_.stopEvent(r),n))););return!n&&c==-1&&(e={command:"insertstring"},n=o.exec("insertstring",this.$editor,t)),n&&this.$editor._signal&&this.$editor._signal("keyboardActivity",e),n},a.prototype.onCommandKey=function(c,t,i){var r=d.keyCodeToString(i);return this.$callKeyboardHandlers(t,r,i,c)},a.prototype.onTextInput=function(c){return this.$callKeyboardHandlers(-1,c)},a}();L.KeyBinding=p}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(y,L,I){var d=0,_=0,p=!1,a=!1,c=!1,t=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],i=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],r=0,e=1,n=0,o=1,l=2,h=3,u=4,$=5,w=6,v=7,f=8,M=9,S=10,A=11,b=12,m=13,k=14,E=15,g=16,C=17,T=18,x=[T,T,T,T,T,T,T,T,T,w,$,w,f,$,T,T,T,T,T,T,T,T,T,T,T,T,T,T,$,$,$,w,f,u,u,A,A,A,u,u,u,u,u,S,M,S,M,M,l,l,l,l,l,l,l,l,l,l,M,u,u,u,u,u,u,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,u,u,u,u,u,u,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,u,u,u,u,T,T,T,T,T,T,$,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,M,u,A,A,A,A,u,u,u,u,n,u,u,T,u,u,A,A,l,l,u,n,u,u,u,l,n,u,u,u,u,u],D=[f,f,f,f,f,f,f,f,f,f,f,T,T,T,n,o,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,f,$,m,k,E,g,C,M,A,A,A,A,A,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,M,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,f];function V(W,B,z,G){var X=d?i:t,Y=null,Q=null,q=null,ne=0,ae=null,Ee=null,ge=-1,fe=null,be=null,Fe=[];if(!G)for(fe=0,G=[];fe<z;fe++)G[fe]=U(W[fe]);for(_=d,p=!1,a=!1,c=!1,be=0;be<z;be++){if(Y=ne,Fe[be]=Q=N(W,G,Fe,be),ne=X[Y][Q],ae=ne&240,ne&=15,B[be]=q=X[ne][5],ae>0)if(ae==16){for(fe=ge;fe<be;fe++)B[fe]=1;ge=-1}else ge=-1;if(Ee=X[ne][6],Ee)ge==-1&&(ge=be);else if(ge>-1){for(fe=ge;fe<be;fe++)B[fe]=q;ge=-1}G[be]==$&&(B[be]=0),_|=q}if(c){for(fe=0;fe<z;fe++)if(G[fe]==w){B[fe]=d;for(var xe=fe-1;xe>=0&&G[xe]==f;xe--)B[xe]=d}}}function F(W,B,z){if(!(_<W)){if(W==1&&d==e&&!a){z.reverse();return}for(var G=z.length,X=0,Y,Q,q,ne;X<G;){if(B[X]>=W){for(Y=X+1;Y<G&&B[Y]>=W;)Y++;for(Q=X,q=Y-1;Q<q;Q++,q--)ne=z[Q],z[Q]=z[q],z[q]=ne;X=Y}X++}}}function N(W,B,z,G){var X=B[G],Y,Q,q,ne;switch(X){case n:case o:p=!1;case u:case h:return X;case l:return p?h:l;case v:return p=!0,o;case f:return u;case M:return G<1||G+1>=B.length||(Y=z[G-1])!=l&&Y!=h||(Q=B[G+1])!=l&&Q!=h?u:(p&&(Q=h),Q==Y?Q:u);case S:return Y=G>0?z[G-1]:$,Y==l&&G+1<B.length&&B[G+1]==l?l:u;case A:if(G>0&&z[G-1]==l)return l;if(p)return u;for(ne=G+1,q=B.length;ne<q&&B[ne]==A;)ne++;return ne<q&&B[ne]==l?l:u;case b:for(q=B.length,ne=G+1;ne<q&&B[ne]==b;)ne++;if(ne<q){var ae=W[G],Ee=ae>=1425&&ae<=2303||ae==64286;if(Y=B[ne],Ee&&(Y==o||Y==v))return o}return G<1||(Y=B[G-1])==$?u:z[G-1];case $:return p=!1,a=!0,d;case w:return c=!0,u;case m:case k:case g:case C:case E:p=!1;case T:return u}}function U(W){var B=W.charCodeAt(0),z=B>>8;return z==0?B>191?n:x[B]:z==5?/[\u0591-\u05f4]/.test(W)?o:n:z==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(W)?b:/[\u0660-\u0669\u066b-\u066c]/.test(W)?h:B==1642?A:/[\u06f0-\u06f9]/.test(W)?l:v:z==32&&B<=8287?D[B&255]:z==254&&B>=65136?v:u}L.L=n,L.R=o,L.EN=l,L.ON_R=3,L.AN=4,L.R_H=5,L.B=6,L.RLE=7,L.DOT="·",L.doBidiReorder=function(W,B,z){if(W.length<2)return{};var G=W.split(""),X=new Array(G.length),Y=new Array(G.length),Q=[];d=z?e:r,V(G,Q,G.length,B);for(var q=0;q<X.length;X[q]=q,q++);F(2,Q,X),F(1,Q,X);for(var q=0;q<X.length-1;q++)B[q]===h?Q[q]=L.AN:Q[q]===o&&(B[q]>v&&B[q]<m||B[q]===u||B[q]===T)?Q[q]=L.ON_R:q>0&&G[q-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(G[q])&&(Q[q-1]=Q[q]=L.R_H,q++);G[G.length-1]===L.DOT&&(Q[G.length-1]=L.B),G[0]==="‫"&&(Q[0]=L.RLE);for(var q=0;q<X.length;q++)Y[q]=Q[X[q]];return{logicalFromVisual:X,bidiLevels:Y}},L.hasBidiCharacters=function(W,B){for(var z=!1,G=0;G<W.length;G++)B[G]=U(W.charAt(G)),!z&&(B[G]==o||B[G]==v||B[G]==h)&&(z=!0);return z},L.getVisualFromLogicalIdx=function(W,B){for(var z=0;z<B.logicalFromVisual.length;z++)if(B.logicalFromVisual[z]==W)return z;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(y,L,I){var d=y("./lib/bidiutil"),_=y("./lib/lang"),p=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,a=function(){function c(t){this.session=t,this.bidiMap={},this.currentRow=null,this.bidiUtil=d,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=p.test(t.getValue())}return c.prototype.isBidiRow=function(t,i,r){return this.seenBidi?(t!==this.currentRow&&(this.currentRow=t,this.updateRowLine(i,r),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},c.prototype.onChange=function(t){this.seenBidi?this.currentRow=null:t.action=="insert"&&p.test(t.lines.join(`
  163. `))&&(this.seenBidi=!0,this.currentRow=null)},c.prototype.getDocumentRow=function(){var t=0,i=this.session.$screenRowCache;if(i.length){var r=this.session.$getRowCacheIndex(i,this.currentRow);r>=0&&(t=this.session.$docRowCache[r])}return t},c.prototype.getSplitIndex=function(){var t=0,i=this.session.$screenRowCache;if(i.length)for(var r,e=this.session.$getRowCacheIndex(i,this.currentRow);this.currentRow-t>0&&(r=this.session.$getRowCacheIndex(i,this.currentRow-t-1),r===e);)e=r,t++;else t=this.currentRow;return t},c.prototype.updateRowLine=function(t,i){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 n=this.session.$wrapData[t];n&&(i===void 0&&(i=this.getSplitIndex()),i>0&&n.length?(this.wrapIndent=n.indent,this.wrapOffset=this.wrapIndent*this.charWidths[d.L],this.line=i<n.length?this.line.substring(n[i-1],n[i]):this.line.substring(n[n.length-1])):this.line=this.line.substring(0,n[i]),i==n.length&&(this.line+=this.showInvisibles?e:d.DOT))}else this.line+=this.showInvisibles?e:d.DOT;var o=this.session,l=0,h;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(u,$){return u===" "||o.isFullWidth(u.charCodeAt(0))?(h=u===" "?o.getScreenTabSize($+l):2,l+=h-1,_.stringRepeat(d.DOT,h)):u}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==d.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},c.prototype.updateBidiMap=function(){var t=[];d.hasBidiCharacters(this.line,t)||this.isRtlDir?this.bidiMap=d.doBidiReorder(this.line,t,this.isRtlDir):this.bidiMap={}},c.prototype.markAsDirty=function(){this.currentRow=null},c.prototype.updateCharacterWidths=function(t){if(this.characterWidth!==t.$characterSize.width){this.fontMetrics=t;var i=this.characterWidth=t.$characterSize.width,r=t.$measureCharWidth("ה");this.charWidths[d.L]=this.charWidths[d.EN]=this.charWidths[d.ON_R]=i,this.charWidths[d.R]=this.charWidths[d.AN]=r,this.charWidths[d.R_H]=r*.45,this.charWidths[d.B]=this.charWidths[d.RLE]=0,this.currentRow=null}},c.prototype.setShowInvisibles=function(t){this.showInvisibles=t,this.currentRow=null},c.prototype.setEolChar=function(t){this.EOL=t},c.prototype.setContentWidth=function(t){this.contentWidth=t},c.prototype.isRtlLine=function(t){return this.$isRtl?!0:t!=null?this.session.getLine(t).charAt(0)==this.RLE:this.isRtlDir},c.prototype.setRtlDirection=function(t,i){for(var r=t.getCursorPosition(),e=t.selection.getSelectionAnchor().row;e<=r.row;e++)!i&&t.session.getLine(e).charAt(0)===t.session.$bidiHandler.RLE?t.session.doc.removeInLine(e,0,1):i&&t.session.getLine(e).charAt(0)!==t.session.$bidiHandler.RLE&&t.session.doc.insert({column:0,row:e},t.session.$bidiHandler.RLE)},c.prototype.getPosLeft=function(t){t-=this.wrapIndent;var i=this.line.charAt(0)===this.RLE?1:0,r=t>i?this.session.getOverwrite()?t:t-1:i,e=d.getVisualFromLogicalIdx(r,this.bidiMap),n=this.bidiMap.bidiLevels,o=0;!this.session.getOverwrite()&&t<=i&&n[e]%2!==0&&e++;for(var l=0;l<e;l++)o+=this.charWidths[n[l]];return!this.session.getOverwrite()&&t>i&&n[e]%2===0&&(o+=this.charWidths[n[e]]),this.wrapIndent&&(o+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(o+=this.rtlLineOffset),o},c.prototype.getSelections=function(t,i){var r=this.bidiMap,e=r.bidiLevels,n,o=[],l=0,h=Math.min(t,i)-this.wrapIndent,u=Math.max(t,i)-this.wrapIndent,$=!1,w=!1,v=0;this.wrapIndent&&(l+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var f,M=0;M<e.length;M++)f=r.logicalFromVisual[M],n=e[M],$=f>=h&&f<u,$&&!w?v=l:!$&&w&&o.push({left:v,width:l-v}),l+=this.charWidths[n],w=$;if($&&M===e.length&&o.push({left:v,width:l-v}),this.isRtlDir)for(var S=0;S<o.length;S++)o[S].left+=this.rtlLineOffset;return o},c.prototype.offsetToCol=function(r){this.isRtlDir&&(r-=this.rtlLineOffset);var i=0,r=Math.max(r,0),e=0,n=0,o=this.bidiMap.bidiLevels,l=this.charWidths[o[n]];for(this.wrapIndent&&(r-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);r>e+l/2;){if(e+=l,n===o.length-1){l=0;break}l=this.charWidths[o[++n]]}return n>0&&o[n-1]%2!==0&&o[n]%2===0?(r<e&&n--,i=this.bidiMap.logicalFromVisual[n]):n>0&&o[n-1]%2===0&&o[n]%2!==0?i=1+(r>e?this.bidiMap.logicalFromVisual[n]:this.bidiMap.logicalFromVisual[n-1]):this.isRtlDir&&n===o.length-1&&l===0&&o[n-1]%2===0||!this.isRtlDir&&n===0&&o[n]%2!==0?i=1+this.bidiMap.logicalFromVisual[n]:(n>0&&o[n-1]%2!==0&&l!==0&&n--,i=this.bidiMap.logicalFromVisual[n]),i===0&&this.isRtlDir&&i++,i+this.wrapIndent},c}();L.BidiHandler=a}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(y,L,I){var d=y("./lib/oop"),_=y("./lib/lang"),p=y("./lib/event_emitter").EventEmitter,a=y("./range").Range,c=function(t){this.session=t,this.doc=t.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var i=this;this.cursor.on("change",function(r){i.$cursorChanged=!0,i.$silent||i._emit("changeCursor"),!i.$isEmpty&&!i.$silent&&i._emit("changeSelection"),!i.$keepDesiredColumnOnChange&&r.old.column!=r.value.column&&(i.$desiredColumn=null)}),this.anchor.on("change",function(){i.$anchorChanged=!0,!i.$isEmpty&&!i.$silent&&i._emit("changeSelection")})};(function(){d.implement(this,p),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setAnchor=function(t,i){this.$isEmpty=!1,this.anchor.setPosition(t,i)},this.setSelectionAnchor=this.setAnchor,this.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionAnchor=this.getAnchor,this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var t=this.anchor,i=this.lead;return t.row>i.row||t.row==i.row&&t.column>i.column},this.getRange=function(){var t=this.anchor,i=this.lead;return this.$isEmpty?a.fromPoints(i,i):this.isBackwards()?a.fromPoints(i,t):a.fromPoints(t,i)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(t,i){var r=i?t.end:t.start,e=i?t.start:t.end;this.$setSelection(r.row,r.column,e.row,e.column)},this.$setSelection=function(t,i,r,e){if(!this.$silent){var n=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(t,i),this.cursor.setPosition(r,e),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||n!=this.$isEmpty||o)&&this._emit("changeSelection")}},this.$moveSelection=function(t){var i=this.lead;this.$isEmpty&&this.setSelectionAnchor(i.row,i.column),t.call(this)},this.selectTo=function(t,i){this.$moveSelection(function(){this.moveCursorTo(t,i)})},this.selectToPosition=function(t){this.$moveSelection(function(){this.moveCursorToPosition(t)})},this.moveTo=function(t,i){this.clearSelection(),this.moveCursorTo(t,i)},this.moveToPosition=function(t){this.clearSelection(),this.moveCursorToPosition(t)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(t,i){if(typeof i>"u"){var r=t||this.lead;t=r.row,i=r.column}return this.session.getWordRange(t,i)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var t=this.getCursor(),i=this.session.getAWordRange(t.row,t.column);this.setSelectionRange(i)},this.getLineRange=function(t,i){var r=typeof t=="number"?t:this.lead.row,e,n=this.session.getFoldLine(r);return n?(r=n.start.row,e=n.end.row):e=r,i===!0?new a(r,0,e,this.session.getLine(e).length):new a(r,0,e+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(t,i,r){var e=t.column,n=t.column+i;return r<0&&(e=t.column-i,n=t.column),this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(e,n).split(" ").length-1==i},this.moveCursorLeft=function(){var t=this.lead.getPosition(),i;if(i=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(i.start.row,i.start.column);else if(t.column===0)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var r=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,r,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-r):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var t=this.lead.getPosition(),i;if(i=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(i.end.row,i.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var r=this.session.getTabSize(),t=this.lead;this.wouldMoveIntoSoftTab(t,r,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,r):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var t=this.lead.row,i=this.lead.column,r=this.session.documentToScreenRow(t,i),e=this.session.screenToDocumentPosition(r,0),n=this.session.getDisplayLine(t,null,e.row,e.column),o=n.match(/^\s*/);o[0].length!=i&&!this.session.$useEmacsStyleLineStart&&(e.column+=o[0].length),this.moveCursorToPosition(e)},this.moveCursorLineEnd=function(){var t=this.lead,i=this.session.getDocumentLastRowColumnPosition(t.row,t.column);if(this.lead.column==i.column){var r=this.session.getLine(i.row);if(i.column==r.length){var e=r.search(/\s+$/);e>0&&(i.column=e)}}this.moveCursorTo(i.row,i.column)},this.moveCursorFileEnd=function(){var t=this.doc.getLength()-1,i=this.doc.getLine(t).length;this.moveCursorTo(t,i)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var t=this.lead.row,i=this.lead.column,r=this.doc.getLine(t),e=r.substring(i);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var n=this.session.getFoldAt(t,i,1);if(n){this.moveCursorTo(n.end.row,n.end.column);return}if(this.session.nonTokenRe.exec(e)&&(i+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,e=r.substring(i)),i>=r.length){this.moveCursorTo(t,r.length),this.moveCursorRight(),t<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(e)&&(i+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,i)},this.moveCursorLongWordLeft=function(){var t=this.lead.row,i=this.lead.column,r;if(r=this.session.getFoldAt(t,i,-1)){this.moveCursorTo(r.start.row,r.start.column);return}var e=this.session.getFoldStringAt(t,i,-1);e==null&&(e=this.doc.getLine(t).substring(0,i));var n=_.stringReverse(e);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(n)&&(i-=this.session.nonTokenRe.lastIndex,n=n.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),i<=0){this.moveCursorTo(t,0),this.moveCursorLeft(),t>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(n)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,i)},this.$shortWordEndIndex=function(t){var i=0,r,e=/\s/,n=this.session.tokenRe;if(n.lastIndex=0,this.session.tokenRe.exec(t))i=this.session.tokenRe.lastIndex;else{for(;(r=t[i])&&e.test(r);)i++;if(i<1){for(n.lastIndex=0;(r=t[i])&&!n.test(r);)if(n.lastIndex=0,i++,e.test(r))if(i>2){i--;break}else{for(;(r=t[i])&&e.test(r);)i++;if(i>2)break}}}return n.lastIndex=0,i},this.moveCursorShortWordRight=function(){var t=this.lead.row,i=this.lead.column,r=this.doc.getLine(t),e=r.substring(i),n=this.session.getFoldAt(t,i,1);if(n)return this.moveCursorTo(n.end.row,n.end.column);if(i==r.length){var o=this.doc.getLength();do t++,e=this.doc.getLine(t);while(t<o&&/^\s*$/.test(e));/^\s+/.test(e)||(e=""),i=0}var l=this.$shortWordEndIndex(e);this.moveCursorTo(t,i+l)},this.moveCursorShortWordLeft=function(){var t=this.lead.row,i=this.lead.column,r;if(r=this.session.getFoldAt(t,i,-1))return this.moveCursorTo(r.start.row,r.start.column);var e=this.session.getLine(t).substring(0,i);if(i===0){do t--,e=this.doc.getLine(t);while(t>0&&/^\s*$/.test(e));i=e.length,/\s+$/.test(e)||(e="")}var n=_.stringReverse(e),o=this.$shortWordEndIndex(n);return this.moveCursorTo(t,i-o)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(t,i){var r=this.session.documentToScreenPosition(this.lead.row,this.lead.column),e;if(i===0&&(t!==0&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(e=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(e/this.session.$bidiHandler.charWidths[0])):e=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),t!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var n=this.session.lineWidgets[this.lead.row];t<0?t-=n.rowsAbove||0:t>0&&(t+=n.rowCount-(n.rowsAbove||0))}var o=this.session.screenToDocumentPosition(r.row+t,r.column,e);t!==0&&i===0&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+i,i===0)},this.moveCursorToPosition=function(t){this.moveCursorTo(t.row,t.column)},this.moveCursorTo=function(t,i,r){var e=this.session.getFoldAt(t,i,1);e&&(t=e.start.row,i=e.start.column),this.$keepDesiredColumnOnChange=!0;var n=this.session.getLine(t);/[\uDC00-\uDFFF]/.test(n.charAt(i))&&n.charAt(i-1)&&(this.lead.row==t&&this.lead.column==i+1?i=i-1:i=i+1),this.lead.setPosition(t,i),this.$keepDesiredColumnOnChange=!1,r||(this.$desiredColumn=null)},this.moveCursorToScreen=function(t,i,r){var e=this.session.screenToDocumentPosition(t,i);this.moveCursorTo(e.row,e.column,r)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(t){this.setSelectionRange(t,t.cursor==t.start),this.$desiredColumn=t.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(t){var i=this.getRange();return t?(t.start.column=i.start.column,t.start.row=i.start.row,t.end.column=i.end.column,t.end.row=i.end.row):t=i,t.cursor=this.isBackwards()?t.start:t.end,t.desiredColumn=this.$desiredColumn,t},this.getRangeOfMovements=function(t){var i=this.getCursor();try{t(this);var r=this.getCursor();return a.fromPoints(i,r)}catch{return a.fromPoints(i,i)}finally{this.moveCursorToPosition(i)}},this.toJSON=function(){if(this.rangeCount)var t=this.ranges.map(function(i){var r=i.clone();return r.isBackwards=i.cursor==i.start,r});else{var t=this.getRange();t.isBackwards=this.isBackwards()}return t},this.fromJSON=function(t){if(t.start==null)if(this.rangeList&&t.length>1){this.toSingleRange(t[0]);for(var i=t.length;i--;){var r=a.fromPoints(t[i].start,t[i].end);t[i].isBackwards&&(r.cursor=r.start),this.addRange(r,!0)}return}else t=t[0];this.rangeList&&this.toSingleRange(t),this.setSelectionRange(t,t.isBackwards)},this.isEqual=function(t){if((t.length||this.rangeCount)&&t.length!=this.rangeCount)return!1;if(!t.length||!this.ranges)return this.getRange().isEqual(t);for(var i=this.ranges.length;i--;)if(!this.ranges[i].isEqual(t[i]))return!1;return!0}}).call(c.prototype),L.Selection=c}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(y,L,I){var d=y("./config"),_=2e3,p=function(){function a(c){this.states=c,this.regExps={},this.matchMappings={};for(var t in this.states){for(var i=this.states[t],r=[],e=0,n=this.matchMappings[t]={defaultToken:"text"},o="g",l=[],h=0;h<i.length;h++){var u=i[h];if(u.defaultToken&&(n.defaultToken=u.defaultToken),u.caseInsensitive&&o.indexOf("i")===-1&&(o+="i"),u.unicode&&o.indexOf("u")===-1&&(o+="u"),u.regex!=null){u.regex instanceof RegExp&&(u.regex=u.regex.toString().slice(1,-1));var $=u.regex,w=new RegExp("(?:("+$+")|(.))").exec("a").length-2;Array.isArray(u.token)?u.token.length==1||w==1?u.token=u.token[0]:w-1!=u.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:u,groupCount:w-1}),u.token=u.token[0]):(u.tokenArray=u.token,u.token=null,u.onMatch=this.$arrayTokens):typeof u.token=="function"&&!u.onMatch&&(w>1?u.onMatch=this.$applyToken:u.onMatch=u.token),w>1&&(/\\\d/.test(u.regex)?$=u.regex.replace(/\\([0-9]+)/g,function(v,f){return"\\"+(parseInt(f,10)+e+1)}):(w=1,$=this.removeCapturingGroups(u.regex)),!u.splitRegex&&typeof u.token!="string"&&l.push(u)),n[e]=h,e+=w,r.push($),u.onMatch||(u.onMatch=null)}}r.length||(n[0]=0,r.push("$")),l.forEach(function(v){v.splitRegex=this.createSplitterRegexp(v.regex,o)},this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",o)}}return a.prototype.$setMaxTokenCount=function(c){_=c|0},a.prototype.$applyToken=function(c){var t=this.splitRegex.exec(c).slice(1),i=this.token.apply(this,t);if(typeof i=="string")return[{type:i,value:c}];for(var r=[],e=0,n=i.length;e<n;e++)t[e]&&(r[r.length]={type:i[e],value:t[e]});return r},a.prototype.$arrayTokens=function(c){if(!c)return[];var t=this.splitRegex.exec(c);if(!t)return"text";for(var i=[],r=this.tokenArray,e=0,n=r.length;e<n;e++)t[e+1]&&(i[i.length]={type:r[e],value:t[e+1]});return i},a.prototype.removeCapturingGroups=function(c){var t=c.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(i,r){return r?"(?:":i});return t},a.prototype.createSplitterRegexp=function(c,t){if(c.indexOf("(?=")!=-1){var i=0,r=!1,e={};c.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(n,o,l,h,u,$){return r?r=u!="]":u?r=!0:h?(i==e.stack&&(e.end=$+1,e.stack=-1),i--):l&&(i++,l.length!=1&&(e.stack=i,e.start=$)),n}),e.end!=null&&/^\)*$/.test(c.substr(e.end))&&(c=c.substring(0,e.start)+c.substr(e.end))}return c.charAt(0)!="^"&&(c="^"+c),c.charAt(c.length-1)!="$"&&(c+="$"),new RegExp(c,(t||"").replace("g",""))},a.prototype.getLineTokens=function(c,t){if(t&&typeof t!="string"){var i=t.slice(0);t=i[0],t==="#tmp"&&(i.shift(),t=i.shift())}else var i=[];var r=t||"start",e=this.states[r];e||(r="start",e=this.states[r]);var n=this.matchMappings[r],o=this.regExps[r];o.lastIndex=0;for(var l,h=[],u=0,$=0,w={type:null,value:""};l=o.exec(c);){var v=n.defaultToken,f=null,M=l[0],S=o.lastIndex;if(S-M.length>u){var A=c.substring(u,S-M.length);w.type==v?w.value+=A:(w.type&&h.push(w),w={type:v,value:A})}for(var b=0;b<l.length-2;b++)if(l[b+1]!==void 0){f=e[n[b]],f.onMatch?v=f.onMatch(M,r,i,c):v=f.token,f.next&&(typeof f.next=="string"?r=f.next:r=f.next(r,i),e=this.states[r],e||(this.reportError("state doesn't exist",r),r="start",e=this.states[r]),n=this.matchMappings[r],u=S,o=this.regExps[r],o.lastIndex=S),f.consumeLineEnd&&(u=S);break}if(M){if(typeof v=="string")(!f||f.merge!==!1)&&w.type===v?w.value+=M:(w.type&&h.push(w),w={type:v,value:M});else if(v){w.type&&h.push(w),w={type:null,value:""};for(var b=0;b<v.length;b++)h.push(v[b])}}if(u==c.length)break;if(u=S,$++>_){for($>2*c.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:c});u<c.length;)w.type&&h.push(w),w={value:c.substring(u,u+=500),type:"overflow"};r="start",i=[];break}}return w.type&&h.push(w),i.length>1&&i[0]!==r&&i.unshift("#tmp",r),{tokens:h,state:i.length?i:r}},a}();p.prototype.reportError=d.reportError,L.Tokenizer=p}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(y,L,I){var d=y("../lib/lang"),_=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(c,t){if(!t){for(var i in c)this.$rules[i]=c[i];return}for(var i in c){for(var r=c[i],e=0;e<r.length;e++){var n=r[e];(n.next||n.onMatch)&&(typeof n.next=="string"&&n.next.indexOf(t)!==0&&(n.next=t+n.next),n.nextState&&n.nextState.indexOf(t)!==0&&(n.nextState=t+n.nextState))}this.$rules[t+i]=r}},this.getRules=function(){return this.$rules},this.embedRules=function(c,t,i,r,e){var n=typeof c=="function"?new c().getRules():c;if(r)for(var o=0;o<r.length;o++)r[o]=t+r[o];else{r=[];for(var l in n)r.push(t+l)}if(this.addRules(n,t),i)for(var h=Array.prototype[e?"push":"unshift"],o=0;o<r.length;o++)h.apply(this.$rules[r[o]],d.deepCopy(i));this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var p=function(c,t){return(c!="start"||t.length)&&t.unshift(this.nextState,c),this.nextState},a=function(c,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var c=0,t=this.$rules;function i(r){var e=t[r];e.processed=!0;for(var n=0;n<e.length;n++){var o=e[n],l=null;Array.isArray(o)&&(l=o,o={}),!o.regex&&o.start&&(o.regex=o.start,o.next||(o.next=[]),o.next.push({defaultToken:o.token},{token:o.token+".end",regex:o.end||o.start,next:"pop"}),o.token=o.token+".start",o.push=!0);var h=o.next||o.push;if(h&&Array.isArray(h)){var u=o.stateName;u||(u=o.token,typeof u!="string"&&(u=u[0]||""),t[u]&&(u+=c++)),t[u]=h,o.next=u,i(u)}else h=="pop"&&(o.next=a);if(o.push&&(o.nextState=o.next||o.push,o.next=p,delete o.push),o.rules)for(var $ in o.rules)t[$]?t[$].push&&t[$].push.apply(t[$],o.rules[$]):t[$]=o.rules[$];var w=typeof o=="string"?o:o.include;if(w&&(w==="$self"&&(w="start"),Array.isArray(w)?l=w.map(function(f){return t[f]}):l=t[w]),l){var v=[n,1].concat(l);o.noEscape&&(v=v.filter(function(f){return!f.next})),e.splice.apply(e,v),n--}o.keywordMap&&(o.token=this.createKeywordMapper(o.keywordMap,o.defaultToken||"text",o.caseInsensitive),delete o.defaultToken)}}Object.keys(t).forEach(i,this)},this.createKeywordMapper=function(c,t,i,r){var e=Object.create(null);return this.$keywordList=[],Object.keys(c).forEach(function(n){for(var o=c[n],l=o.split(r||"|"),h=l.length;h--;){var u=l[h];this.$keywordList.push(u),i&&(u=u.toLowerCase()),e[u]=n}},this),c=null,i?function(n){return e[n.toLowerCase()]||t}:function(n){return e[n]||t}},this.getKeywords=function(){return this.$keywords}}).call(_.prototype),L.TextHighlightRules=_}),ace.define("ace/mode/behaviour",["require","exports","module"],function(y,L,I){var d=function(){this.$behaviours={}};(function(){this.add=function(_,p,a){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[_]:this.$behaviours[_]={}}this.$behaviours[_][p]=a},this.addBehaviours=function(_){for(var p in _)for(var a in _[p])this.add(p,a,_[p][a])},this.remove=function(_){this.$behaviours&&this.$behaviours[_]&&delete this.$behaviours[_]},this.inherit=function(_,p){if(typeof _=="function")var a=new _().getBehaviours(p);else var a=_.getBehaviours(p);this.addBehaviours(a)},this.getBehaviours=function(_){if(_){for(var p={},a=0;a<_.length;a++)this.$behaviours[_[a]]&&(p[_[a]]=this.$behaviours[_[a]]);return p}else return this.$behaviours}}).call(d.prototype),L.Behaviour=d}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(y,L,I){var d=y("./range").Range,_=function(){function p(a,c,t){this.$session=a,this.$row=c,this.$rowTokens=a.getTokens(c);var i=a.getTokenAt(c,t);this.$tokenIndex=i?i.index:-1}return p.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},p.prototype.stepForward=function(){this.$tokenIndex+=1;for(var a;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,a||(a=this.$session.getLength()),this.$row>=a)return this.$row=a-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},p.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},p.prototype.getCurrentTokenRow=function(){return this.$row},p.prototype.getCurrentTokenColumn=function(){var a=this.$rowTokens,c=this.$tokenIndex,t=a[c].start;if(t!==void 0)return t;for(t=0;c>0;)c-=1,t+=a[c].value.length;return t},p.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},p.prototype.getCurrentTokenRange=function(){var a=this.$rowTokens[this.$tokenIndex],c=this.getCurrentTokenColumn();return new d(this.$row,c,this.$row,c+a.value.length)},p}();L.TokenIterator=_}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(y,L,I){var d=y("../../lib/oop"),_=y("../behaviour").Behaviour,p=y("../../token_iterator").TokenIterator,a=y("../../lib/lang"),c=["text","paren.rparen","rparen","paren","punctuation.operator"],t=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i,r={},e={'"':'"',"'":"'"},n=function(h){var u=-1;if(h.multiSelect&&(u=h.selection.index,r.rangeCount!=h.multiSelect.rangeCount&&(r={rangeCount:h.multiSelect.rangeCount})),r[u])return i=r[u];i=r[u]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},o=function(h,u,$,w){var v=h.end.row-h.start.row;return{text:$+u+w,selection:[0,h.start.column+1,v,h.end.column+(v?0:1)]}},l=function(h){h=h||{},this.add("braces","insertion",function(u,$,w,v,f){var M=w.getCursorPosition(),S=v.doc.getLine(M.row);if(f=="{"){n(w);var A=w.getSelectionRange(),b=v.doc.getTextRange(A);if(b!==""&&b!=="{"&&w.getWrapBehavioursEnabled())return o(A,b,"{","}");if(l.isSaneInsertion(w,v))return/[\]\}\)]/.test(S[M.column])||w.inMultiSelectMode||h.braces?(l.recordAutoInsert(w,v,"}"),{text:"{}",selection:[1,1]}):(l.recordMaybeInsert(w,v,"{"),{text:"{",selection:[1,1]})}else if(f=="}"){n(w);var m=S.substring(M.column,M.column+1);if(m=="}"){var k=v.$findOpeningBracket("}",{column:M.column+1,row:M.row});if(k!==null&&l.isAutoInsertedClosing(M,S,f))return l.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(f==`
  164. `||f==`\r
  165. `){n(w);var E="";l.isMaybeInsertedClosing(M,S)&&(E=a.stringRepeat("}",i.maybeInsertedBrackets),l.clearMaybeInsertedClosing());var m=S.substring(M.column,M.column+1);if(m==="}"){var g=v.findMatchingBracket({row:M.row,column:M.column+1},"}");if(!g)return null;var C=this.$getIndent(v.getLine(g.row))}else if(E)var C=this.$getIndent(S);else{l.clearMaybeInsertedClosing();return}var T=C+v.getTabString();return{text:`
  166. `+T+`
  167. `+C+E,selection:[1,T.length,1,T.length]}}else l.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(u,$,w,v,f){var M=v.doc.getTextRange(f);if(!f.isMultiLine()&&M=="{"){n(w);var S=v.doc.getLine(f.start.row),A=S.substring(f.end.column,f.end.column+1);if(A=="}")return f.end.column++,f;i.maybeInsertedBrackets--}}),this.add("parens","insertion",function(u,$,w,v,f){if(f=="("){n(w);var M=w.getSelectionRange(),S=v.doc.getTextRange(M);if(S!==""&&w.getWrapBehavioursEnabled())return o(M,S,"(",")");if(l.isSaneInsertion(w,v))return l.recordAutoInsert(w,v,")"),{text:"()",selection:[1,1]}}else if(f==")"){n(w);var A=w.getCursorPosition(),b=v.doc.getLine(A.row),m=b.substring(A.column,A.column+1);if(m==")"){var k=v.$findOpeningBracket(")",{column:A.column+1,row:A.row});if(k!==null&&l.isAutoInsertedClosing(A,b,f))return l.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(u,$,w,v,f){var M=v.doc.getTextRange(f);if(!f.isMultiLine()&&M=="("){n(w);var S=v.doc.getLine(f.start.row),A=S.substring(f.start.column+1,f.start.column+2);if(A==")")return f.end.column++,f}}),this.add("brackets","insertion",function(u,$,w,v,f){if(f=="["){n(w);var M=w.getSelectionRange(),S=v.doc.getTextRange(M);if(S!==""&&w.getWrapBehavioursEnabled())return o(M,S,"[","]");if(l.isSaneInsertion(w,v))return l.recordAutoInsert(w,v,"]"),{text:"[]",selection:[1,1]}}else if(f=="]"){n(w);var A=w.getCursorPosition(),b=v.doc.getLine(A.row),m=b.substring(A.column,A.column+1);if(m=="]"){var k=v.$findOpeningBracket("]",{column:A.column+1,row:A.row});if(k!==null&&l.isAutoInsertedClosing(A,b,f))return l.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(u,$,w,v,f){var M=v.doc.getTextRange(f);if(!f.isMultiLine()&&M=="["){n(w);var S=v.doc.getLine(f.start.row),A=S.substring(f.start.column+1,f.start.column+2);if(A=="]")return f.end.column++,f}}),this.add("string_dquotes","insertion",function(u,$,w,v,f){var M=v.$mode.$quotes||e;if(f.length==1&&M[f]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(f)!=-1)return;n(w);var S=f,A=w.getSelectionRange(),b=v.doc.getTextRange(A);if(b!==""&&(b.length!=1||!M[b])&&w.getWrapBehavioursEnabled())return o(A,b,S,S);if(!b){var m=w.getCursorPosition(),k=v.doc.getLine(m.row),E=k.substring(m.column-1,m.column),g=k.substring(m.column,m.column+1),C=v.getTokenAt(m.row,m.column),T=v.getTokenAt(m.row,m.column+1);if(E=="\\"&&C&&/escape/.test(C.type))return null;var x=C&&/string|escape/.test(C.type),D=!T||/string|escape/.test(T.type),V;if(g==S)V=x!==D,V&&/string\.end/.test(T.type)&&(V=!1);else{if(x&&!D||x&&D)return null;var F=v.$mode.tokenRe;F.lastIndex=0;var N=F.test(E);F.lastIndex=0;var U=F.test(g),W=v.$mode.$pairQuotesAfter,B=W&&W[S]&&W[S].test(E);if(!B&&N||U||g&&!/[\s;,.})\]\\]/.test(g))return null;var z=k[m.column-2];if(E==S&&(z==S||F.test(z)))return null;V=!0}return{text:V?S+S:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(u,$,w,v,f){var M=v.$mode.$quotes||e,S=v.doc.getTextRange(f);if(!f.isMultiLine()&&M.hasOwnProperty(S)){n(w);var A=v.doc.getLine(f.start.row),b=A.substring(f.start.column+1,f.start.column+2);if(b==S)return f.end.column++,f}}),h.closeDocComment!==!1&&this.add("doc comment end","insertion",function(u,$,w,v,f){if(u==="doc-start"&&(f===`
  168. `||f===`\r
  169. `)&&w.selection.isEmpty()){var M=w.getCursorPosition(),S=v.doc.getLine(M.row),A=v.doc.getLine(M.row+1),b=this.$getIndent(S);if(/\s*\*/.test(A))return/^\s*\*/.test(S)?{text:f+b+"* ",selection:[1,3+b.length,1,3+b.length]}:{text:f+b+" * ",selection:[1,3+b.length,1,3+b.length]};if(/\/\*\*/.test(S.substring(0,M.column)))return{text:f+b+" * "+f+" "+b+"*/",selection:[1,4+b.length,1,4+b.length]}}})};l.isSaneInsertion=function(h,u){var $=h.getCursorPosition(),w=new p(u,$.row,$.column);if(!this.$matchTokenType(w.getCurrentToken()||"text",c)){if(/[)}\]]/.test(h.session.getLine($.row)[$.column]))return!0;var v=new p(u,$.row,$.column+1);if(!this.$matchTokenType(v.getCurrentToken()||"text",c))return!1}return w.stepForward(),w.getCurrentTokenRow()!==$.row||this.$matchTokenType(w.getCurrentToken()||"text",t)},l.$matchTokenType=function(h,u){return u.indexOf(h.type||h)>-1},l.recordAutoInsert=function(h,u,$){var w=h.getCursorPosition(),v=u.doc.getLine(w.row);this.isAutoInsertedClosing(w,v,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=w.row,i.autoInsertedLineEnd=$+v.substr(w.column),i.autoInsertedBrackets++},l.recordMaybeInsert=function(h,u,$){var w=h.getCursorPosition(),v=u.doc.getLine(w.row);this.isMaybeInsertedClosing(w,v)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=w.row,i.maybeInsertedLineStart=v.substr(0,w.column)+$,i.maybeInsertedLineEnd=v.substr(w.column),i.maybeInsertedBrackets++},l.isAutoInsertedClosing=function(h,u,$){return i.autoInsertedBrackets>0&&h.row===i.autoInsertedRow&&$===i.autoInsertedLineEnd[0]&&u.substr(h.column)===i.autoInsertedLineEnd},l.isMaybeInsertedClosing=function(h,u){return i.maybeInsertedBrackets>0&&h.row===i.maybeInsertedRow&&u.substr(h.column)===i.maybeInsertedLineEnd&&u.substr(0,h.column)==i.maybeInsertedLineStart},l.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},l.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},d.inherits(l,_),L.CstyleBehaviour=l}),ace.define("ace/unicode",["require","exports","module"],function(y,L,I){for(var d=[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],_=0,p=[],a=0;a<d.length;a+=2)p.push(_+=d[a]),d[a+1]&&p.push(45,_+=d[a+1]);L.wordChars=String.fromCharCode.apply(null,p)}),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(y,L,I){var d=y("../config"),_=y("../tokenizer").Tokenizer,p=y("./text_highlight_rules").TextHighlightRules,a=y("./behaviour/cstyle").CstyleBehaviour,c=y("../unicode"),t=y("../lib/lang"),i=y("../token_iterator").TokenIterator,r=y("../range").Range,e=function(){this.HighlightRules=p};(function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+c.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+c.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new _(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(n,o,l,h){var u=o.doc,$=!0,w=!0,v=1/0,f=o.getTabSize(),M=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var b=this.lineCommentStart.map(t.escapeRegExp).join("|"),S=this.lineCommentStart[0];else var b=t.escapeRegExp(this.lineCommentStart),S=this.lineCommentStart;b=new RegExp("^(\\s*)(?:"+b+") ?"),M=o.getUseSoftTabs();var E=function(U,W){var B=U.match(b);if(B){var z=B[1].length,G=B[0].length;!T(U,z,G)&&B[0][G-1]==" "&&G--,u.removeInLine(W,z,G)}},C=S+" ",k=function(U,W){(!$||/\S/.test(U))&&(T(U,v,v)?u.insertInLine({row:W,column:v},C):u.insertInLine({row:W,column:v},S))},g=function(U,W){return b.test(U)},T=function(U,W,B){for(var z=0;W--&&U.charAt(W)==" ";)z++;if(z%f!=0)return!1;for(var z=0;U.charAt(B++)==" ";)z++;return f>2?z%f!=f-1:z%f==0}}else{if(!this.blockComment)return!1;var S=this.blockComment.start,A=this.blockComment.end,b=new RegExp("^(\\s*)(?:"+t.escapeRegExp(S)+")"),m=new RegExp("(?:"+t.escapeRegExp(A)+")\\s*$"),k=function(V,F){g(V,F)||(!$||/\S/.test(V))&&(u.insertInLine({row:F,column:V.length},A),u.insertInLine({row:F,column:v},S))},E=function(V,F){var N;(N=V.match(m))&&u.removeInLine(F,V.length-N[0].length,V.length),(N=V.match(b))&&u.removeInLine(F,N[1].length,N[0].length)},g=function(V,F){if(b.test(V))return!0;for(var N=o.getTokens(F),U=0;U<N.length;U++)if(N[U].type==="comment")return!0}}function x(V){for(var F=l;F<=h;F++)V(u.getLine(F),F)}var D=1/0;x(function(V,F){var N=V.search(/\S/);N!==-1?(N<v&&(v=N),w&&!g(V,F)&&(w=!1)):D>V.length&&(D=V.length)}),v==1/0&&(v=D,$=!1,w=!1),M&&v%f!=0&&(v=Math.floor(v/f)*f),x(w?E:k)},this.toggleBlockComment=function(n,o,l,h){var u=this.blockComment;if(u){!u.start&&u[0]&&(u=u[0]);var $=new i(o,h.row,h.column),w=$.getCurrentToken();o.selection;var v=o.selection.toOrientedRange(),f,M;if(w&&/comment/.test(w.type)){for(var S,A;w&&/comment/.test(w.type);){var b=w.value.indexOf(u.start);if(b!=-1){var m=$.getCurrentTokenRow(),k=$.getCurrentTokenColumn()+b;S=new r(m,k,m,k+u.start.length);break}w=$.stepBackward()}for(var $=new i(o,h.row,h.column),w=$.getCurrentToken();w&&/comment/.test(w.type);){var b=w.value.indexOf(u.end);if(b!=-1){var m=$.getCurrentTokenRow(),k=$.getCurrentTokenColumn()+b;A=new r(m,k,m,k+u.end.length);break}w=$.stepForward()}A&&o.remove(A),S&&(o.remove(S),f=S.start.row,M=-u.start.length)}else M=u.start.length,f=l.start.row,o.insert(l.end,u.end),o.insert(l.start,u.start);v.start.row==f&&(v.start.column+=M),v.end.row==f&&(v.end.column+=M),o.selection.fromOrientedRange(v)}},this.getNextLineIndent=function(n,o,l){return this.$getIndent(o)},this.checkOutdent=function(n,o,l){return!1},this.autoOutdent=function(n,o,l){},this.$getIndent=function(n){return n.match(/^\s*/)[0]},this.createWorker=function(n){return null},this.createModeDelegates=function(n){this.$embeds=[],this.$modes={};for(var o in n)if(n[o]){var l=n[o],h=l.prototype.$id,u=d.$modes[h];u||(d.$modes[h]=u=new l),d.$modes[o]||(d.$modes[o]=u),this.$embeds.push(o),this.$modes[o]=u}for(var $=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],o=0;o<$.length;o++)(function(v){var f=$[o],M=v[f];v[$[o]]=function(){return this.$delegator(f,arguments,M)}})(this)},this.$delegator=function(n,o,l){var h=o[0]||"start";if(typeof h!="string"){if(Array.isArray(h[2])){var u=h[2][h[2].length-1],$=this.$modes[u];if($)return $[n].apply($,[h[1]].concat([].slice.call(o,1)))}h=h[0]||"start"}for(var w=0;w<this.$embeds.length;w++)if(this.$modes[this.$embeds[w]]){var v=h.split(this.$embeds[w]);if(!v[0]&&v[1]){o[0]=v[1];var $=this.$modes[this.$embeds[w]];return $[n].apply($,o)}}var f=l.apply(this,o);return l?f:void 0},this.transformAction=function(n,o,l,h,u){if(this.$behaviour){var $=this.$behaviour.getBehaviours();for(var w in $)if($[w][o]){var v=$[w][o].apply(this,arguments);if(v)return v}}},this.getKeywords=function(n){if(!this.completionKeywords){var o=this.$tokenizer.rules,l=[];for(var h in o)for(var u=o[h],$=0,w=u.length;$<w;$++)if(typeof u[$].token=="string")/keyword|support|storage/.test(u[$].token)&&l.push(u[$].regex);else if(typeof u[$].token=="object"){for(var v=0,f=u[$].token.length;v<f;v++)if(/keyword|support|storage/.test(u[$].token[v])){var h=u[$].regex.match(/\(.+?\)/g)[v];l.push(h.substr(1,h.length-2))}}this.completionKeywords=l}return n?l.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(n,o,l,h){var u=this.$keywordList||this.$createKeywordList();return u.map(function($){return{name:$,value:$,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(e.prototype),L.Mode=e}),ace.define("ace/apply_delta",["require","exports","module"],function(y,L,I){L.applyDelta=function(d,_,p){var a=_.start.row,c=_.start.column,t=d[a]||"";switch(_.action){case"insert":var i=_.lines;if(i.length===1)d[a]=t.substring(0,c)+_.lines[0]+t.substring(c);else{var r=[a,1].concat(_.lines);d.splice.apply(d,r),d[a]=t.substring(0,c)+d[a],d[a+_.lines.length-1]+=t.substring(c)}break;case"remove":var e=_.end.column,n=_.end.row;a===n?d[a]=t.substring(0,c)+t.substring(e):d.splice(a,n-a+1,t.substring(0,c)+d[n].substring(e));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(y,L,I){var d=y("./lib/oop"),_=y("./lib/event_emitter").EventEmitter,p=function(){function t(i,r,e){this.$onChange=this.onChange.bind(this),this.attach(i),typeof e>"u"?this.setPosition(r.row,r.column):this.setPosition(r,e)}return t.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},t.prototype.getDocument=function(){return this.document},t.prototype.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var r=c(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(r.row,r.column,!0)}},t.prototype.setPosition=function(i,r,e){var n;if(e?n={row:i,column:r}:n=this.$clipPositionToDocument(i,r),!(this.row==n.row&&this.column==n.column)){var o={row:this.row,column:this.column};this.row=n.row,this.column=n.column,this._signal("change",{old:o,value:n})}},t.prototype.detach=function(){this.document.off("change",this.$onChange)},t.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},t.prototype.$clipPositionToDocument=function(i,r){var e={};return i>=this.document.getLength()?(e.row=Math.max(0,this.document.getLength()-1),e.column=this.document.getLine(e.row).length):i<0?(e.row=0,e.column=0):(e.row=i,e.column=Math.min(this.document.getLine(e.row).length,Math.max(0,r))),r<0&&(e.column=0),e},t}();p.prototype.$insertRight=!1,d.implement(p.prototype,_);function a(t,i,r){var e=r?t.column<=i.column:t.column<i.column;return t.row<i.row||t.row==i.row&&e}function c(t,i,r){var e=t.action=="insert",n=(e?1:-1)*(t.end.row-t.start.row),o=(e?1:-1)*(t.end.column-t.start.column),l=t.start,h=e?l:t.end;return a(i,l,r)?{row:i.row,column:i.column}:a(h,i,!r)?{row:i.row+n,column:i.column+(i.row==h.row?o:0)}:{row:l.row,column:l.column}}L.Anchor=p}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(y,L,I){var d=y("./lib/oop"),_=y("./apply_delta").applyDelta,p=y("./lib/event_emitter").EventEmitter,a=y("./range").Range,c=y("./anchor").Anchor,t=function(){function i(r){this.$lines=[""],r.length===0?this.$lines=[""]:Array.isArray(r)?this.insertMergedLines({row:0,column:0},r):this.insert({row:0,column:0},r)}return i.prototype.setValue=function(r){var e=this.getLength()-1;this.remove(new a(0,0,e,this.getLine(e).length)),this.insert({row:0,column:0},r||"")},i.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},i.prototype.createAnchor=function(r,e){return new c(this,r,e)},i.prototype.$detectNewLine=function(r){var e=r.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[1]:`
  170. `,this._signal("changeNewLineMode")},i.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
  171. `;case"unix":return`
  172. `;default:return this.$autoNewLine||`
  173. `}},i.prototype.setNewLineMode=function(r){this.$newLineMode!==r&&(this.$newLineMode=r,this._signal("changeNewLineMode"))},i.prototype.getNewLineMode=function(){return this.$newLineMode},i.prototype.isNewLine=function(r){return r==`\r
  174. `||r=="\r"||r==`
  175. `},i.prototype.getLine=function(r){return this.$lines[r]||""},i.prototype.getLines=function(r,e){return this.$lines.slice(r,e+1)},i.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},i.prototype.getLength=function(){return this.$lines.length},i.prototype.getTextRange=function(r){return this.getLinesForRange(r).join(this.getNewLineCharacter())},i.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 n=e.length-1;r.end.row-r.start.row==n&&(e[n]=e[n].substring(0,r.end.column))}return e},i.prototype.insertLines=function(r,e){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(r,e)},i.prototype.removeLines=function(r,e){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(r,e)},i.prototype.insertNewLine=function(r){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(r,["",""])},i.prototype.insert=function(r,e){return this.getLength()<=1&&this.$detectNewLine(e),this.insertMergedLines(r,this.$split(e))},i.prototype.insertInLine=function(r,e){var n=this.clippedPos(r.row,r.column),o=this.pos(r.row,r.column+e.length);return this.applyDelta({start:n,end:o,action:"insert",lines:[e]},!0),this.clonePos(o)},i.prototype.clippedPos=function(r,e){var n=this.getLength();r===void 0?r=n:r<0?r=0:r>=n&&(r=n-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}},i.prototype.clonePos=function(r){return{row:r.row,column:r.column}},i.prototype.pos=function(r,e){return{row:r,column:e}},i.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},i.prototype.insertFullLines=function(r,e){r=Math.min(Math.max(r,0),this.getLength());var n=0;r<this.getLength()?(e=e.concat([""]),n=0):(e=[""].concat(e),r--,n=this.$lines[r].length),this.insertMergedLines({row:r,column:n},e)},i.prototype.insertMergedLines=function(r,e){var n=this.clippedPos(r.row,r.column),o={row:n.row+e.length-1,column:(e.length==1?n.column:0)+e[e.length-1].length};return this.applyDelta({start:n,end:o,action:"insert",lines:e}),this.clonePos(o)},i.prototype.remove=function(r){var e=this.clippedPos(r.start.row,r.start.column),n=this.clippedPos(r.end.row,r.end.column);return this.applyDelta({start:e,end:n,action:"remove",lines:this.getLinesForRange({start:e,end:n})}),this.clonePos(e)},i.prototype.removeInLine=function(r,e,n){var o=this.clippedPos(r,e),l=this.clippedPos(r,n);return this.applyDelta({start:o,end:l,action:"remove",lines:this.getLinesForRange({start:o,end:l})},!0),this.clonePos(o)},i.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 n=e==this.getLength()-1&&r>0,o=e<this.getLength()-1,l=n?r-1:r,h=n?this.getLine(l).length:0,u=o?e+1:e,$=o?0:this.getLine(u).length,w=new a(l,h,u,$),v=this.$lines.slice(r,e+1);return this.applyDelta({start:w.start,end:w.end,action:"remove",lines:this.getLinesForRange(w)}),v},i.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:["",""]})},i.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 n;return e?n=this.insert(r.start,e):n=r.start,n},i.prototype.applyDeltas=function(r){for(var e=0;e<r.length;e++)this.applyDelta(r[e])},i.prototype.revertDeltas=function(r){for(var e=r.length-1;e>=0;e--)this.revertDelta(r[e])},i.prototype.applyDelta=function(r,e){var n=r.action=="insert";(n?r.lines.length<=1&&!r.lines[0]:!a.comparePoints(r.start,r.end))||(n&&r.lines.length>2e4?this.$splitAndapplyLargeDelta(r,2e4):(_(this.$lines,r,e),this._signal("change",r)))},i.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)},i.prototype.$splitAndapplyLargeDelta=function(r,e){for(var n=r.lines,o=n.length-e+1,l=r.start.row,h=r.start.column,u=0,$=0;u<o;u=$){$+=e-1;var w=n.slice(u,$);w.push(""),this.applyDelta({start:this.pos(l+u,h),end:this.pos(l+$,h=0),action:r.action,lines:w},!0)}r.lines=n.slice(u),r.start.row=l+u,r.start.column=h,this.applyDelta(r,!0)},i.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()})},i.prototype.indexToPosition=function(r,e){for(var n=this.$lines||this.getAllLines(),o=this.getNewLineCharacter().length,l=e||0,h=n.length;l<h;l++)if(r-=n[l].length+o,r<0)return{row:l,column:r+n[l].length+o};return{row:h-1,column:r+n[h-1].length+o}},i.prototype.positionToIndex=function(r,e){for(var n=this.$lines||this.getAllLines(),o=this.getNewLineCharacter().length,l=0,h=Math.min(r.row,n.length),u=e||0;u<h;++u)l+=n[u].length+o;return l+r.column},i.prototype.$split=function(r){return r.split(/\r\n|\r|\n/)},i}();t.prototype.$autoNewLine="",t.prototype.$newLineMode="auto",d.implement(t.prototype,p),L.Document=t}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(y,L,I){var d=y("./lib/oop"),_=y("./lib/event_emitter").EventEmitter,p=function(){function a(c,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=c;var i=this;this.$worker=function(){if(i.running){for(var r=new Date,e=i.currentLine,n=-1,o=i.doc,l=e;i.lines[e];)e++;var h=o.getLength(),u=0;for(i.running=!1;e<h;){i.$tokenizeRow(e),n=e;do e++;while(i.lines[e]);if(u++,u%5===0&&new Date-r>20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=e,n==-1&&(n=e),l<=n&&i.fireUpdateEvent(l,n)}}}return a.prototype.setTokenizer=function(c){this.tokenizer=c,this.lines=[],this.states=[],this.start(0)},a.prototype.setDocument=function(c){this.doc=c,this.lines=[],this.states=[],this.stop()},a.prototype.fireUpdateEvent=function(c,t){var i={first:c,last:t};this._signal("update",{data:i})},a.prototype.start=function(c){this.currentLine=Math.min(c||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},a.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},a.prototype.$updateOnChange=function(c){var t=c.start.row,i=c.end.row-t;if(i===0)this.lines[t]=null;else if(c.action=="remove")this.lines.splice(t,i+1,null),this.states.splice(t,i+1,null);else{var r=Array(i+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},a.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},a.prototype.getTokens=function(c){return this.lines[c]||this.$tokenizeRow(c)},a.prototype.getState=function(c){return this.currentLine==c&&this.$tokenizeRow(c),this.states[c]||"start"},a.prototype.$tokenizeRow=function(c){var t=this.doc.getLine(c),i=this.states[c-1],r=this.tokenizer.getLineTokens(t,i,c);return this.states[c]+""!=r.state+""?(this.states[c]=r.state,this.lines[c+1]=null,this.currentLine>c+1&&(this.currentLine=c+1)):this.currentLine==c&&(this.currentLine=c+1),this.lines[c]=r.tokens},a.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},a}();d.implement(p.prototype,_),L.BackgroundTokenizer=p}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(y,L,I){var d=y("./lib/lang"),_=y("./range").Range,p=function(){function a(c,t,i){i===void 0&&(i="text"),this.setRegexp(c),this.clazz=t,this.type=i}return a.prototype.setRegexp=function(c){this.regExp+""!=c+""&&(this.regExp=c,this.cache=[])},a.prototype.update=function(c,t,i,r){if(this.regExp)for(var e=r.firstRow,n=r.lastRow,o={},l=e;l<=n;l++){var h=this.cache[l];h==null&&(h=d.getMatchOffsets(i.getLine(l),this.regExp),h.length>this.MAX_RANGES&&(h=h.slice(0,this.MAX_RANGES)),h=h.map(function(v){return new _(l,v.offset,l,v.offset+v.length)}),this.cache[l]=h.length?h:"");for(var u=h.length;u--;){var $=h[u].toScreenRange(i),w=$.toString();o[w]||(o[w]=!0,t.drawSingleLineMarker(c,$,this.clazz,r))}}},a}();p.prototype.MAX_RANGES=500,L.SearchHighlight=p}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(y,L,I){var d=y("../range").Range,_=function(){function p(a,c){this.foldData=a,Array.isArray(c)?this.folds=c:c=this.folds=[c];var t=c[c.length-1];this.range=new d(c[0].start.row,c[0].start.column,t.end.row,t.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(i){i.setFoldLine(this)},this)}return p.prototype.shiftRow=function(a){this.start.row+=a,this.end.row+=a,this.folds.forEach(function(c){c.start.row+=a,c.end.row+=a})},p.prototype.addFold=function(a){if(a.sameRow){if(a.start.row<this.startRow||a.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(a),this.folds.sort(function(c,t){return-c.range.compareEnd(t.start.row,t.start.column)}),this.range.compareEnd(a.start.row,a.start.column)>0?(this.end.row=a.end.row,this.end.column=a.end.column):this.range.compareStart(a.end.row,a.end.column)<0&&(this.start.row=a.start.row,this.start.column=a.start.column)}else if(a.start.row==this.end.row)this.folds.push(a),this.end.row=a.end.row,this.end.column=a.end.column;else if(a.end.row==this.start.row)this.folds.unshift(a),this.start.row=a.start.row,this.start.column=a.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");a.foldLine=this},p.prototype.containsRow=function(a){return a>=this.start.row&&a<=this.end.row},p.prototype.walk=function(a,c,t){var i=0,r=this.folds,e,n,o,l=!0;c==null&&(c=this.end.row,t=this.end.column);for(var h=0;h<r.length;h++){if(e=r[h],n=e.range.compareStart(c,t),n==-1){a(null,c,t,i,l);return}if(o=a(null,e.start.row,e.start.column,i,l),o=!o&&a(e.placeholder,e.start.row,e.start.column,i),o||n===0)return;l=!e.sameRow,i=e.end.column}a(null,c,t,i,l)},p.prototype.getNextFoldTo=function(a,c){for(var t,i,r=0;r<this.folds.length;r++){if(t=this.folds[r],i=t.range.compareEnd(a,c),i==-1)return{fold:t,kind:"after"};if(i===0)return{fold:t,kind:"inside"}}return null},p.prototype.addRemoveChars=function(a,c,t){var i=this.getNextFoldTo(a,c),r,e;if(i){if(r=i.fold,i.kind=="inside"&&r.start.column!=c&&r.start.row!=a)window.console&&window.console.log(a,c,r);else if(r.start.row==a){e=this.folds;var n=e.indexOf(r);for(n===0&&(this.start.column+=t),n;n<e.length;n++){if(r=e[n],r.start.column+=t,!r.sameRow)return;r.end.column+=t}this.end.column+=t}}},p.prototype.split=function(a,c){var t=this.getNextFoldTo(a,c);if(!t||t.kind=="inside")return null;var i=t.fold,r=this.folds,e=this.foldData,n=r.indexOf(i),o=r[n-1];this.end.row=o.end.row,this.end.column=o.end.column,r=r.splice(n,r.length-n);var l=new p(e,r);return e.splice(e.indexOf(this)+1,0,l),l},p.prototype.merge=function(a){for(var c=a.folds,t=0;t<c.length;t++)this.addFold(c[t]);var i=this.foldData;i.splice(i.indexOf(a),1)},p.prototype.toString=function(){var a=[this.range.toString()+": ["];return this.folds.forEach(function(c){a.push(" "+c.toString())}),a.push("]"),a.join(`
  176. `)},p.prototype.idxToPosition=function(a){for(var c=0,t=0;t<this.folds.length;t++){var i=this.folds[t];if(a-=i.start.column-c,a<0)return{row:i.start.row,column:i.start.column+a};if(a-=i.placeholder.length,a<0)return i.start;c=i.end.column}return{row:this.end.row,column:this.end.column+a}},p}();L.FoldLine=_}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(y,L,I){var d=y("./range").Range,_=d.comparePoints,p=function(){function a(){this.ranges=[],this.$bias=1}return a.prototype.pointIndex=function(c,t,i){for(var r=this.ranges,e=i||0;e<r.length;e++){var n=r[e],o=_(c,n.end);if(!(o>0)){var l=_(c,n.start);return o===0?t&&l!==0?-e-2:e:l>0||l===0&&!t?e:-e-1}}return-e-1},a.prototype.add=function(c){var t=!c.isEmpty(),i=this.pointIndex(c.start,t);i<0&&(i=-i-1);var r=this.pointIndex(c.end,t,i);return r<0?r=-r-1:r++,this.ranges.splice(i,r-i,c)},a.prototype.addList=function(c){for(var t=[],i=c.length;i--;)t.push.apply(t,this.add(c[i]));return t},a.prototype.substractPoint=function(c){var t=this.pointIndex(c);if(t>=0)return this.ranges.splice(t,1)},a.prototype.merge=function(){var c=[],t=this.ranges;t=t.sort(function(o,l){return _(o.start,l.start)});for(var i=t[0],r,e=1;e<t.length;e++){r=i,i=t[e];var n=_(r.end,i.start);n<0||n==0&&!r.isEmpty()&&!i.isEmpty()||(_(r.end,i.end)<0&&(r.end.row=i.end.row,r.end.column=i.end.column),t.splice(e,1),c.push(i),i=r,e--)}return this.ranges=t,c},a.prototype.contains=function(c,t){return this.pointIndex({row:c,column:t})>=0},a.prototype.containsPoint=function(c){return this.pointIndex(c)>=0},a.prototype.rangeAtPoint=function(c){var t=this.pointIndex(c);if(t>=0)return this.ranges[t]},a.prototype.clipRows=function(c,t){var i=this.ranges;if(i[0].start.row>t||i[i.length-1].start.row<c)return[];var r=this.pointIndex({row:c,column:0});r<0&&(r=-r-1);var e=this.pointIndex({row:t,column:0},r);e<0&&(e=-e-1);for(var n=[],o=r;o<e;o++)n.push(i[o]);return n},a.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},a.prototype.attach=function(c){this.session&&this.detach(),this.session=c,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(c){for(var t=c.start,i=c.end,r=t.row,e=i.row,n=this.ranges,o=0,l=n.length;o<l;o++){var h=n[o];if(h.end.row>=r)break}if(c.action=="insert")for(var u=e-r,$=-t.column+i.column;o<l;o++){var h=n[o];if(h.start.row>r)break;if(h.start.row==r&&h.start.column>=t.column&&(h.start.column==t.column&&this.$bias<=0||(h.start.column+=$,h.start.row+=u)),h.end.row==r&&h.end.column>=t.column){if(h.end.column==t.column&&this.$bias<0)continue;h.end.column==t.column&&$>0&&o<l-1&&h.end.column>h.start.column&&h.end.column==n[o+1].start.column&&(h.end.column-=$),h.end.column+=$,h.end.row+=u}}else for(var u=r-e,$=t.column-i.column;o<l;o++){var h=n[o];if(h.start.row>e)break;h.end.row<e&&(r<h.end.row||r==h.end.row&&t.column<h.end.column)?(h.end.row=r,h.end.column=t.column):h.end.row==e?h.end.column<=i.column?(u||h.end.column>t.column)&&(h.end.column=t.column,h.end.row=t.row):(h.end.column+=$,h.end.row+=u):h.end.row>e&&(h.end.row+=u),h.start.row<e&&(r<h.start.row||r==h.start.row&&t.column<h.start.column)?(h.start.row=r,h.start.column=t.column):h.start.row==e?h.start.column<=i.column?(u||h.start.column>t.column)&&(h.start.column=t.column,h.start.row=t.row):(h.start.column+=$,h.start.row+=u):h.start.row>e&&(h.start.row+=u)}if(u!=0&&o<l)for(;o<l;o++){var h=n[o];h.start.row+=u,h.end.row+=u}},a}();p.prototype.comparePoints=_,L.RangeList=p}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(y,L,I){var d=this&&this.__extends||function(){var r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(o[h]=l[h])},r(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),_=y("../range_list").RangeList,p=function(r){d(e,r);function e(n,o){var l=r.call(this)||this;return l.foldLine=null,l.placeholder=o,l.range=n,l.start=n.start,l.end=n.end,l.sameRow=n.start.row==n.end.row,l.subFolds=l.ranges=[],l}return e.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},e.prototype.setFoldLine=function(n){this.foldLine=n,this.subFolds.forEach(function(o){o.setFoldLine(n)})},e.prototype.clone=function(){var n=this.range.clone(),o=new e(n,this.placeholder);return this.subFolds.forEach(function(l){o.subFolds.push(l.clone())}),o.collapseChildren=this.collapseChildren,o},e.prototype.addSubFold=function(n){if(!this.range.isEqual(n)){c(n,this.start);for(var $=n.start.row,w=n.start.column,o=0,l=-1;o<this.subFolds.length&&(l=this.subFolds[o].range.compare($,w),l==1);o++);var h=this.subFolds[o],u=0;if(l==0){if(h.range.containsRange(n))return h.addSubFold(n);u=1}for(var $=n.range.end.row,w=n.range.end.column,v=o,l=-1;v<this.subFolds.length&&(l=this.subFolds[v].range.compare($,w),l==1);v++);l==0&&v++;for(var f=this.subFolds.splice(o,v-o,n),M=l==0?f.length-1:f.length,S=u;S<M;S++)n.addSubFold(f[S]);return n.setFoldLine(this.foldLine),n}},e.prototype.restoreRange=function(n){return i(n,this.start)},e}(_);function a(r,e){r.row-=e.row,r.row==0&&(r.column-=e.column)}function c(r,e){a(r.start,e),a(r.end,e)}function t(r,e){r.row==0&&(r.column+=e.column),r.row+=e.row}function i(r,e){t(r.start,e),t(r.end,e)}L.Fold=p}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(y,L,I){var d=y("../range").Range,_=y("./fold_line").FoldLine,p=y("./fold").Fold,a=y("../token_iterator").TokenIterator,c=y("../mouse/mouse_event").MouseEvent;function t(){this.getFoldAt=function(i,r,e){var n=this.getFoldLine(i);if(!n)return null;for(var o=n.folds,l=0;l<o.length;l++){var h=o[l].range;if(h.contains(i,r)){if(e==1&&h.isEnd(i,r)&&!h.isEmpty())continue;if(e==-1&&h.isStart(i,r)&&!h.isEmpty())continue;return o[l]}}},this.getFoldsInRange=function(i){var r=i.start,e=i.end,n=this.$foldData,o=[];r.column+=1,e.column-=1;for(var l=0;l<n.length;l++){var h=n[l].range.compareRange(i);if(h!=2){if(h==-2)break;for(var u=n[l].folds,$=0;$<u.length;$++){var w=u[$];if(h=w.range.compareRange(i),h==-2)break;if(h==2)continue;if(h==42)break;o.push(w)}}}return r.column-=1,e.column+=1,o},this.getFoldsInRangeList=function(i){if(Array.isArray(i)){var r=[];i.forEach(function(e){r=r.concat(this.getFoldsInRange(e))},this)}else var r=this.getFoldsInRange(i);return r},this.getAllFolds=function(){for(var i=[],r=this.$foldData,e=0;e<r.length;e++)for(var n=0;n<r[e].folds.length;n++)i.push(r[e].folds[n]);return i},this.getFoldStringAt=function(i,r,e,n){if(n=n||this.getFoldLine(i),!n)return null;for(var o={end:{column:0}},l,h,u=0;u<n.folds.length;u++){h=n.folds[u];var $=h.range.compareEnd(i,r);if($==-1){l=this.getLine(h.start.row).substring(o.end.column,h.start.column);break}else if($===0)return null;o=h}return l||(l=this.getLine(h.start.row).substring(o.end.column)),e==-1?l.substring(0,r-o.end.column):e==1?l.substring(r-o.end.column):l},this.getFoldLine=function(i,r){var e=this.$foldData,n=0;for(r&&(n=e.indexOf(r)),n==-1&&(n=0),n;n<e.length;n++){var o=e[n];if(o.start.row<=i&&o.end.row>=i)return o;if(o.end.row>i)return null}return null},this.getNextFoldLine=function(i,r){var e=this.$foldData,n=0;for(r&&(n=e.indexOf(r)),n==-1&&(n=0),n;n<e.length;n++){var o=e[n];if(o.end.row>=i)return o}return null},this.getFoldedRowCount=function(i,r){for(var e=this.$foldData,n=r-i+1,o=0;o<e.length;o++){var l=e[o],h=l.end.row,u=l.start.row;if(h>=r){u<r&&(u>=i?n-=r-u:n=0);break}else h>=i&&(u>=i?n-=h-u:n-=h-i+1)}return n},this.$addFoldLine=function(i){return this.$foldData.push(i),this.$foldData.sort(function(r,e){return r.start.row-e.start.row}),i},this.addFold=function(i,r){var e=this.$foldData,n=!1,o;i instanceof p?o=i:(o=new p(r,i),o.collapseChildren=r.collapseChildren),this.$clipRangeToDocument(o.range);var l=o.start.row,h=o.start.column,u=o.end.row,$=o.end.column,w=this.getFoldAt(l,h,1),v=this.getFoldAt(u,$,-1);if(w&&v==w)return w.addSubFold(o);w&&!w.range.isStart(l,h)&&this.removeFold(w),v&&!v.range.isEnd(u,$)&&this.removeFold(v);var f=this.getFoldsInRange(o.range);f.length>0&&(this.removeFolds(f),o.collapseChildren||f.forEach(function(b){o.addSubFold(b)}));for(var M=0;M<e.length;M++){var S=e[M];if(u==S.start.row){S.addFold(o),n=!0;break}else if(l==S.end.row){if(S.addFold(o),n=!0,!o.sameRow){var A=e[M+1];if(A&&A.start.row==u){S.merge(A);break}}break}else if(u<=S.start.row)break}return n||(S=this.$addFoldLine(new _(this.$foldData,o))),this.$useWrapMode?this.$updateWrapData(S.start.row,S.start.row):this.$updateRowLengthCache(S.start.row,S.start.row),this.$modified=!0,this._signal("changeFold",{data:o,action:"add"}),o},this.addFolds=function(i){i.forEach(function(r){this.addFold(r)},this)},this.removeFold=function(i){var r=i.foldLine,e=r.start.row,n=r.end.row,o=this.$foldData,l=r.folds;if(l.length==1)o.splice(o.indexOf(r),1);else if(r.range.isEnd(i.end.row,i.end.column))l.pop(),r.end.row=l[l.length-1].end.row,r.end.column=l[l.length-1].end.column;else if(r.range.isStart(i.start.row,i.start.column))l.shift(),r.start.row=l[0].start.row,r.start.column=l[0].start.column;else if(i.sameRow)l.splice(l.indexOf(i),1);else{var h=r.split(i.start.row,i.start.column);l=h.folds,l.shift(),h.start.row=l[0].start.row,h.start.column=l[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(e,n):this.$updateRowLengthCache(e,n)),this.$modified=!0,this._signal("changeFold",{data:i,action:"remove"})},this.removeFolds=function(i){for(var r=[],e=0;e<i.length;e++)r.push(i[e]);r.forEach(function(n){this.removeFold(n)},this),this.$modified=!0},this.expandFold=function(i){this.removeFold(i),i.subFolds.forEach(function(r){i.restoreRange(r),this.addFold(r)},this),i.collapseChildren>0&&this.foldAll(i.start.row+1,i.end.row,i.collapseChildren-1),i.subFolds=[]},this.expandFolds=function(i){i.forEach(function(r){this.expandFold(r)},this)},this.unfold=function(i,r){var e,n;if(i==null)e=new d(0,0,this.getLength(),0),r==null&&(r=!0);else if(typeof i=="number")e=new d(i,0,i,this.getLine(i).length);else if("row"in i)e=d.fromPoints(i,i);else{if(Array.isArray(i))return n=[],i.forEach(function(l){n=n.concat(this.unfold(l))},this),n;e=i}n=this.getFoldsInRangeList(e);for(var o=n;n.length==1&&d.comparePoints(n[0].start,e.start)<0&&d.comparePoints(n[0].end,e.end)>0;)this.expandFolds(n),n=this.getFoldsInRangeList(e);if(r!=!1?this.removeFolds(n):this.expandFolds(n),o.length)return o},this.isRowFolded=function(i,r){return!!this.getFoldLine(i,r)},this.getRowFoldEnd=function(i,r){var e=this.getFoldLine(i,r);return e?e.end.row:i},this.getRowFoldStart=function(i,r){var e=this.getFoldLine(i,r);return e?e.start.row:i},this.getFoldDisplayLine=function(i,r,e,n,o){n==null&&(n=i.start.row),o==null&&(o=0),r==null&&(r=i.end.row),e==null&&(e=this.getLine(r).length);var l=this.doc,h="";return i.walk(function(u,$,w,v){if(!($<n)){if($==n){if(w<o)return;v=Math.max(o,v)}u!=null?h+=u:h+=l.getLine($).substring(v,w)}},r,e),h},this.getDisplayLine=function(i,r,e,n){var o=this.getFoldLine(i);if(o)return this.getFoldDisplayLine(o,i,r,e,n);var l;return l=this.doc.getLine(i),l.substring(n||0,r||l.length)},this.$cloneFoldData=function(){var i=[];return i=this.$foldData.map(function(r){var e=r.folds.map(function(n){return n.clone()});return new _(i,e)}),i},this.toggleFold=function(i){var r=this.selection,e=r.getRange(),n,o;if(e.isEmpty()){var l=e.start;if(n=this.getFoldAt(l.row,l.column),n){this.expandFold(n);return}else(o=this.findMatchingBracket(l))?e.comparePoint(o)==1?e.end=o:(e.start=o,e.start.column++,e.end.column--):(o=this.findMatchingBracket({row:l.row,column:l.column+1}))?(e.comparePoint(o)==1?e.end=o:e.start=o,e.start.column++):e=this.getCommentFoldRange(l.row,l.column)||e}else{var h=this.getFoldsInRange(e);if(i&&h.length){this.expandFolds(h);return}else h.length==1&&(n=h[0])}if(n||(n=this.getFoldAt(e.start.row,e.start.column)),n&&n.range.toString()==e.toString()){this.expandFold(n);return}var u="...";if(!e.isMultiLine()){if(u=this.getTextRange(e),u.length<4)return;u=u.trim().substring(0,2)+".."}this.addFold(u,e)},this.getCommentFoldRange=function(i,r,e){var n=new a(this,i,r),o=n.getCurrentToken(),l=o&&o.type;if(o&&/^comment|string/.test(l)){l=l.match(/comment|string/)[0],l=="comment"&&(l+="|doc-start|\\.doc");var h=new RegExp(l),u=new d;if(e!=1){do o=n.stepBackward();while(o&&h.test(o.type)&&!/^comment.end/.test(o.type));o=n.stepForward()}if(u.start.row=n.getCurrentTokenRow(),u.start.column=n.getCurrentTokenColumn()+(/^comment.start/.test(o.type)?o.value.length:2),n=new a(this,i,r),e!=-1){var $=-1;do if(o=n.stepForward(),$==-1){var w=this.getState(n.$row);h.test(w)||($=n.$row)}else if(n.$row>$)break;while(o&&h.test(o.type)&&!/^comment.start/.test(o.type));o=n.stepBackward()}else o=n.getCurrentToken();return u.end.row=n.getCurrentTokenRow(),u.end.column=n.getCurrentTokenColumn(),/^comment.end/.test(o.type)||(u.end.column+=o.value.length-2),u}},this.foldAll=function(i,r,e,n){e==null&&(e=1e5);var o=this.foldWidgets;if(o){r=r||this.getLength(),i=i||0;for(var l=i;l<r;l++)if(o[l]==null&&(o[l]=this.getFoldWidget(l)),o[l]=="start"&&!(n&&!n(l))){var h=this.getFoldWidgetRange(l);h&&h.isMultiLine()&&h.end.row<=r&&h.start.row>=i&&(l=h.end.row,h.collapseChildren=e,this.addFold("...",h))}}},this.foldToLevel=function(i){for(this.foldAll();i-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var i=this;this.foldAll(null,null,null,function(r){for(var e=i.getTokens(r),n=0;n<e.length;n++){var o=e[n];if(!(o.type=="text"&&/^\s+$/.test(o.value)))return!!/comment/.test(o.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(i){if(!this.$foldStyles[i])throw new Error("invalid fold style: "+i+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=i){this.$foldStyle=i,i=="manual"&&this.unfold();var r=this.$foldMode;this.$setFolding(null),this.$setFolding(r)}},this.$setFolding=function(i){if(this.$foldMode!=i){if(this.$foldMode=i,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!i||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=i.getFoldWidget.bind(i,this,this.$foldStyle),this.getFoldWidgetRange=i.getFoldWidgetRange.bind(i,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(i,r){var e=this.foldWidgets;if(!e||r&&e[i])return{};for(var n=i-1,o;n>=0;){var l=e[n];if(l==null&&(l=e[n]=this.getFoldWidget(n)),l=="start"){var h=this.getFoldWidgetRange(n);if(o||(o=h),h&&h.end.row>=i)break}n--}return{range:n!==-1&&h,firstRange:o}},this.onFoldWidgetClick=function(i,r){r instanceof c&&(r=r.domEvent);var e={children:r.shiftKey,all:r.ctrlKey||r.metaKey,siblings:r.altKey},n=this.$toggleFoldWidget(i,e);if(!n){var o=r.target||r.srcElement;o&&/ace_fold-widget/.test(o.className)&&(o.className+=" ace_invalid")}},this.$toggleFoldWidget=function(i,r){if(this.getFoldWidget){var e=this.getFoldWidget(i),n=this.getLine(i),o=e==="end"?-1:1,l=this.getFoldAt(i,o===-1?0:n.length,o);if(l)return r.children||r.all?this.removeFold(l):this.expandFold(l),l;var h=this.getFoldWidgetRange(i,!0);if(h&&!h.isMultiLine()&&(l=this.getFoldAt(h.start.row,h.start.column,1),l&&h.isEqual(l.range)))return this.removeFold(l),l;if(r.siblings){var u=this.getParentFoldRangeData(i);if(u.range)var $=u.range.start.row+1,w=u.range.end.row;this.foldAll($,w,r.all?1e4:0)}else r.children?(w=h?h.end.row:this.getLength(),this.foldAll(i+1,w,r.all?1e4:0)):h&&(r.all&&(h.collapseChildren=1e4),this.addFold("...",h));return h}},this.toggleFoldWidget=function(i){var r=this.selection.getCursor().row;r=this.getRowFoldStart(r);var e=this.$toggleFoldWidget(r,{});if(!e){var n=this.getParentFoldRangeData(r,!0);if(e=n.range||n.firstRange,e){r=e.start.row;var o=this.getFoldAt(r,this.getLine(r).length,1);o?this.removeFold(o):this.addFold("...",e)}}},this.updateFoldWidgets=function(i){var r=i.start.row,e=i.end.row-r;if(e===0)this.foldWidgets[r]=null;else if(i.action=="remove")this.foldWidgets.splice(r,e+1,null);else{var n=Array(e+1);n.unshift(r,1),this.foldWidgets.splice.apply(this.foldWidgets,n)}},this.tokenizerUpdateFoldWidgets=function(i){var r=i.data;r.first!=r.last&&this.foldWidgets.length>r.first&&this.foldWidgets.splice(r.first,this.foldWidgets.length)}}L.Folding=t}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(y,L,I){var d=y("../token_iterator").TokenIterator,_=y("../range").Range;function p(){this.findMatchingBracket=function(a,c){if(a.column==0)return null;var t=c||this.getLine(a.row).charAt(a.column-1);if(t=="")return null;var i=t.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],a):this.$findOpeningBracket(i[2],a):null},this.getBracketRange=function(a){var c=this.getLine(a.row),t=!0,i,r=c.charAt(a.column-1),e=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(e||(r=c.charAt(a.column),a={row:a.row,column:a.column+1},e=r&&r.match(/([\(\[\{])|([\)\]\}])/),t=!1),!e)return null;if(e[1]){var n=this.$findClosingBracket(e[1],a);if(!n)return null;i=_.fromPoints(a,n),t||(i.end.column++,i.start.column--),i.cursor=i.end}else{var n=this.$findOpeningBracket(e[2],a);if(!n)return null;i=_.fromPoints(n,a),t||(i.start.column++,i.end.column--),i.cursor=i.start}return i},this.getMatchingBracketRanges=function(a,c){var t=this.getLine(a.row),i=/([\(\[\{])|([\)\]\}])/,r=!c&&t.charAt(a.column-1),e=r&&r.match(i);if(e||(r=(c===void 0||c)&&t.charAt(a.column),a={row:a.row,column:a.column+1},e=r&&r.match(i)),!e)return null;var n=new _(a.row,a.column-1,a.row,a.column),o=e[1]?this.$findClosingBracket(e[1],a):this.$findOpeningBracket(e[2],a);if(!o)return[n];var l=new _(o.row,o.column,o.row,o.column+1);return[n,l]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(a,c,t){var i=this.$brackets[a],r=1,e=new d(this,c.row,c.column),n=e.getCurrentToken();if(n||(n=e.stepForward()),!!n){t||(t=new RegExp("(\\.?"+n.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var o=c.column-e.getCurrentTokenColumn()-2,l=n.value;;){for(;o>=0;){var h=l.charAt(o);if(h==i){if(r-=1,r==0)return{row:e.getCurrentTokenRow(),column:o+e.getCurrentTokenColumn()}}else h==a&&(r+=1);o-=1}do n=e.stepBackward();while(n&&!t.test(n.type));if(n==null)break;l=n.value,o=l.length-1}return null}},this.$findClosingBracket=function(a,c,t){var i=this.$brackets[a],r=1,e=new d(this,c.row,c.column),n=e.getCurrentToken();if(n||(n=e.stepForward()),!!n){t||(t=new RegExp("(\\.?"+n.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var o=c.column-e.getCurrentTokenColumn();;){for(var l=n.value,h=l.length;o<h;){var u=l.charAt(o);if(u==i){if(r-=1,r==0)return{row:e.getCurrentTokenRow(),column:o+e.getCurrentTokenColumn()}}else u==a&&(r+=1);o+=1}do n=e.stepForward();while(n&&!t.test(n.type));if(n==null)break;o=0}return null}},this.getMatchingTags=function(a){var c=new d(this,a.row,a.column),t=this.$findTagName(c);if(t){var i=c.stepBackward();return i.value==="<"?this.$findClosingTag(c,t):this.$findOpeningTag(c,t)}},this.$findTagName=function(a){var c=a.getCurrentToken(),t=!1,i=!1;if(c&&c.type.indexOf("tag-name")===-1)do i?c=a.stepBackward():c=a.stepForward(),c&&(c.value==="/>"?i=!0:c.type.indexOf("tag-name")!==-1&&(t=!0));while(c&&!t);return c},this.$findClosingTag=function(a,c){var t,i=c.value,r=c.value,e=0,n=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);c=a.stepForward();var o=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+c.value.length),l=!1;do if(t=c,c=a.stepForward(),c){if(c.value===">"&&!l){var h=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);l=!0}if(c.type.indexOf("tag-name")!==-1){if(i=c.value,r===i){if(t.value==="<")e++;else if(t.value==="</"&&(e--,e<0)){a.stepBackward();var u=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2);c=a.stepForward();var $=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+c.value.length);if(c=a.stepForward(),c&&c.value===">")var w=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);else return}}}else if(r===i&&c.value==="/>"&&(e--,e<0))var u=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2),$=u,w=$,h=new _(o.end.row,o.end.column,o.end.row,o.end.column+1)}while(c&&e>=0);if(n&&h&&u&&w&&o&&$)return{openTag:new _(n.start.row,n.start.column,h.end.row,h.end.column),closeTag:new _(u.start.row,u.start.column,w.end.row,w.end.column),openTagName:o,closeTagName:$}},this.$findOpeningTag=function(a,c){var t=a.getCurrentToken(),i=c.value,r=0,e=a.getCurrentTokenRow(),n=a.getCurrentTokenColumn(),o=n+2,l=new _(e,n,e,o);a.stepForward();var h=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+c.value.length);if(c=a.stepForward(),!(!c||c.value!==">")){var u=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);a.stepBackward(),a.stepBackward();do if(c=t,e=a.getCurrentTokenRow(),n=a.getCurrentTokenColumn(),o=n+c.value.length,t=a.stepBackward(),c){if(c.type.indexOf("tag-name")!==-1){if(i===c.value)if(t.value==="<"){if(r++,r>0){var $=new _(e,n,e,o),w=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);do c=a.stepForward();while(c&&c.value!==">");var v=new _(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1)}}else t.value==="</"&&r--}else if(c.value==="/>"){for(var f=0,M=t;M;){if(M.type.indexOf("tag-name")!==-1&&M.value===i){r--;break}else if(M.value==="<")break;M=a.stepBackward(),f++}for(var S=0;S<f;S++)a.stepForward()}}while(t&&r<=0);if(w&&v&&l&&u&&$&&h)return{openTag:new _(w.start.row,w.start.column,v.end.row,v.end.column),closeTag:new _(l.start.row,l.start.column,u.end.row,u.end.column),openTagName:$,closeTagName:h}}}}L.BracketMatch=p}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],function(y,L,I){var d=y("./lib/oop"),_=y("./lib/lang"),p=y("./bidihandler").BidiHandler,a=y("./config"),c=y("./lib/event_emitter").EventEmitter,t=y("./selection").Selection,i=y("./mode/text").Mode,r=y("./range").Range,e=y("./document").Document,n=y("./background_tokenizer").BackgroundTokenizer,o=y("./search_highlight").SearchHighlight,l=function(){function b(m,k){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++b.$uid,this.$foldData.toString=function(){return this.join(`
  177. `)},this.bgTokenizer=new n(new i().getTokenizer(),this);var E=this;this.bgTokenizer.on("update",function(g){E._signal("tokenizerUpdate",g)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof m!="object"||!m.getLine)&&(m=new e(m)),this.setDocument(m),this.selection=new t(this),this.$bidiHandler=new p(this),a.resetOptions(this),this.setMode(k),a._signal("session",this),this.destroyed=!1}return b.prototype.setDocument=function(m){this.doc&&this.doc.off("change",this.$onChange),this.doc=m,m.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},b.prototype.getDocument=function(){return this.doc},b.prototype.$resetRowCache=function(m){if(!m){this.$docRowCache=[],this.$screenRowCache=[];return}var k=this.$docRowCache.length,E=this.$getRowCacheIndex(this.$docRowCache,m)+1;k>E&&(this.$docRowCache.splice(E,k),this.$screenRowCache.splice(E,k))},b.prototype.$getRowCacheIndex=function(m,k){for(var E=0,g=m.length-1;E<=g;){var C=E+g>>1,T=m[C];if(k>T)E=C+1;else if(k<T)g=C-1;else return C}return E-1},b.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},b.prototype.onChangeFold=function(m){var k=m.data;this.$resetRowCache(k.start.row)},b.prototype.onChange=function(m){this.$modified=!0,this.$bidiHandler.onChange(m),this.$resetRowCache(m.start.row);var k=this.$updateInternalDataOnChange(m);!this.$fromUndo&&this.$undoManager&&(k&&k.length&&(this.$undoManager.add({action:"removeFolds",folds:k},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(m,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(m),this._signal("change",m)},b.prototype.setValue=function(m){this.doc.setValue(m),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},b.prototype.toString=function(){return this.doc.getValue()},b.prototype.getSelection=function(){return this.selection},b.prototype.getState=function(m){return this.bgTokenizer.getState(m)},b.prototype.getTokens=function(m){return this.bgTokenizer.getTokens(m)},b.prototype.getTokenAt=function(m,k){var E=this.bgTokenizer.getTokens(m),g,C=0;if(k==null){var T=E.length-1;C=this.getLine(m).length}else for(var T=0;T<E.length&&(C+=E[T].value.length,!(C>=k));T++);return g=E[T],g?(g.index=T,g.start=C-g.value.length,g):null},b.prototype.setUndoManager=function(m){if(this.$undoManager=m,this.$informUndoManager&&this.$informUndoManager.cancel(),m){var k=this;m.addSession(this),this.$syncInformUndoManager=function(){k.$informUndoManager.cancel(),k.mergeUndoDeltas=!1},this.$informUndoManager=_.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},b.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},b.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},b.prototype.getTabString=function(){return this.getUseSoftTabs()?_.stringRepeat(" ",this.getTabSize()):" "},b.prototype.setUseSoftTabs=function(m){this.setOption("useSoftTabs",m)},b.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},b.prototype.setTabSize=function(m){this.setOption("tabSize",m)},b.prototype.getTabSize=function(){return this.$tabSize},b.prototype.isTabStop=function(m){return this.$useSoftTabs&&m.column%this.$tabSize===0},b.prototype.setNavigateWithinSoftTabs=function(m){this.setOption("navigateWithinSoftTabs",m)},b.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},b.prototype.setOverwrite=function(m){this.setOption("overwrite",m)},b.prototype.getOverwrite=function(){return this.$overwrite},b.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},b.prototype.addGutterDecoration=function(m,k){this.$decorations[m]||(this.$decorations[m]=""),this.$decorations[m]+=" "+k,this._signal("changeBreakpoint",{})},b.prototype.removeGutterDecoration=function(m,k){this.$decorations[m]=(this.$decorations[m]||"").replace(" "+k,""),this._signal("changeBreakpoint",{})},b.prototype.getBreakpoints=function(){return this.$breakpoints},b.prototype.setBreakpoints=function(m){this.$breakpoints=[];for(var k=0;k<m.length;k++)this.$breakpoints[m[k]]="ace_breakpoint";this._signal("changeBreakpoint",{})},b.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},b.prototype.setBreakpoint=function(m,k){k===void 0&&(k="ace_breakpoint"),k?this.$breakpoints[m]=k:delete this.$breakpoints[m],this._signal("changeBreakpoint",{})},b.prototype.clearBreakpoint=function(m){delete this.$breakpoints[m],this._signal("changeBreakpoint",{})},b.prototype.addMarker=function(m,k,E,g){var C=this.$markerId++,T={range:m,type:E||"line",renderer:typeof E=="function"?E:null,clazz:k,inFront:!!g,id:C};return g?(this.$frontMarkers[C]=T,this._signal("changeFrontMarker")):(this.$backMarkers[C]=T,this._signal("changeBackMarker")),C},b.prototype.addDynamicMarker=function(m,k){if(m.update){var E=this.$markerId++;return m.id=E,m.inFront=!!k,k?(this.$frontMarkers[E]=m,this._signal("changeFrontMarker")):(this.$backMarkers[E]=m,this._signal("changeBackMarker")),m}},b.prototype.removeMarker=function(m){var k=this.$frontMarkers[m]||this.$backMarkers[m];if(k){var E=k.inFront?this.$frontMarkers:this.$backMarkers;delete E[m],this._signal(k.inFront?"changeFrontMarker":"changeBackMarker")}},b.prototype.getMarkers=function(m){return m?this.$frontMarkers:this.$backMarkers},b.prototype.highlight=function(m){if(!this.$searchHighlight){var k=new o(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(k)}this.$searchHighlight.setRegexp(m)},b.prototype.highlightLines=function(m,k,E,g){typeof k!="number"&&(E=k,k=m),E||(E="ace_step");var C=new r(m,0,k,1/0);return C.id=this.addMarker(C,E,"fullLine",g),C},b.prototype.setAnnotations=function(m){this.$annotations=m,this._signal("changeAnnotation",{})},b.prototype.getAnnotations=function(){return this.$annotations||[]},b.prototype.clearAnnotations=function(){this.setAnnotations([])},b.prototype.$detectNewLine=function(m){var k=m.match(/^.*?(\r?\n)/m);k?this.$autoNewLine=k[1]:this.$autoNewLine=`
  178. `},b.prototype.getWordRange=function(m,k){var E=this.getLine(m),g=!1;if(k>0&&(g=!!E.charAt(k-1).match(this.tokenRe)),g||(g=!!E.charAt(k).match(this.tokenRe)),g)var C=this.tokenRe;else if(/^\s+$/.test(E.slice(k-1,k+1)))var C=/\s/;else var C=this.nonTokenRe;var T=k;if(T>0){do T--;while(T>=0&&E.charAt(T).match(C));T++}for(var x=k;x<E.length&&E.charAt(x).match(C);)x++;return new r(m,T,m,x)},b.prototype.getAWordRange=function(m,k){for(var E=this.getWordRange(m,k),g=this.getLine(E.end.row);g.charAt(E.end.column).match(/[ \t]/);)E.end.column+=1;return E},b.prototype.setNewLineMode=function(m){this.doc.setNewLineMode(m)},b.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},b.prototype.setUseWorker=function(m){this.setOption("useWorker",m)},b.prototype.getUseWorker=function(){return this.$useWorker},b.prototype.onReloadTokenizer=function(m){var k=m.data;this.bgTokenizer.start(k.first),this._signal("tokenizerUpdate",m)},b.prototype.setMode=function(m,k){if(m&&typeof m=="object"){if(m.getTokenizer)return this.$onChangeMode(m);var E=m,g=E.path}else g=m||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new i),this.$modes[g]&&!E){this.$onChangeMode(this.$modes[g]),k&&k();return}this.$modeId=g,a.loadModule(["mode",g],function(C){if(this.$modeId!==g)return k&&k();this.$modes[g]&&!E?this.$onChangeMode(this.$modes[g]):C&&C.Mode&&(C=new C.Mode(E),E||(this.$modes[g]=C,C.$id=g),this.$onChangeMode(C)),k&&k()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},b.prototype.$onChangeMode=function(m,k){if(k||(this.$modeId=m.$id),this.$mode!==m){var E=this.$mode;this.$mode=m,this.$stopWorker(),this.$useWorker&&this.$startWorker();var g=m.getTokenizer();if(g.on!==void 0){var C=this.onReloadTokenizer.bind(this);g.on("update",C)}this.bgTokenizer.setTokenizer(g),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=m.tokenRe,this.nonTokenRe=m.nonTokenRe,k||(m.attachToSession&&m.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(m.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:E,mode:m}))}},b.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},b.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(m){a.warn("Could not load worker",m),this.$worker=null}},b.prototype.getMode=function(){return this.$mode},b.prototype.setScrollTop=function(m){this.$scrollTop===m||isNaN(m)||(this.$scrollTop=m,this._signal("changeScrollTop",m))},b.prototype.getScrollTop=function(){return this.$scrollTop},b.prototype.setScrollLeft=function(m){this.$scrollLeft===m||isNaN(m)||(this.$scrollLeft=m,this._signal("changeScrollLeft",m))},b.prototype.getScrollLeft=function(){return this.$scrollLeft},b.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},b.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var m=0;return this.lineWidgets.forEach(function(k){k&&k.screenWidth>m&&(m=k.screenWidth)}),this.lineWidgetWidth=m},b.prototype.$computeWidth=function(m){if(this.$modified||m){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var k=this.doc.getAllLines(),E=this.$rowLengthCache,g=0,C=0,T=this.$foldData[C],x=T?T.start.row:1/0,D=k.length,V=0;V<D;V++){if(V>x){if(V=T.end.row+1,V>=D)break;T=this.$foldData[C++],x=T?T.start.row:1/0}E[V]==null&&(E[V]=this.$getStringScreenWidth(k[V])[0]),E[V]>g&&(g=E[V])}this.screenWidth=g}},b.prototype.getLine=function(m){return this.doc.getLine(m)},b.prototype.getLines=function(m,k){return this.doc.getLines(m,k)},b.prototype.getLength=function(){return this.doc.getLength()},b.prototype.getTextRange=function(m){return this.doc.getTextRange(m||this.selection.getRange())},b.prototype.insert=function(m,k){return this.doc.insert(m,k)},b.prototype.remove=function(m){return this.doc.remove(m)},b.prototype.removeFullLines=function(m,k){return this.doc.removeFullLines(m,k)},b.prototype.undoChanges=function(m,k){if(m.length){this.$fromUndo=!0;for(var E=m.length-1;E!=-1;E--){var g=m[E];g.action=="insert"||g.action=="remove"?this.doc.revertDelta(g):g.folds&&this.addFolds(g.folds)}!k&&this.$undoSelect&&(m.selectionBefore?this.selection.fromJSON(m.selectionBefore):this.selection.setRange(this.$getUndoSelection(m,!0))),this.$fromUndo=!1}},b.prototype.redoChanges=function(m,k){if(m.length){this.$fromUndo=!0;for(var E=0;E<m.length;E++){var g=m[E];(g.action=="insert"||g.action=="remove")&&this.doc.$safeApplyDelta(g)}!k&&this.$undoSelect&&(m.selectionAfter?this.selection.fromJSON(m.selectionAfter):this.selection.setRange(this.$getUndoSelection(m,!1))),this.$fromUndo=!1}},b.prototype.setUndoSelect=function(m){this.$undoSelect=m},b.prototype.$getUndoSelection=function(m,k){function E(D){return k?D.action!=="insert":D.action==="insert"}for(var g,C,T=0;T<m.length;T++){var x=m[T];if(x.start){if(!g){E(x)?g=r.fromPoints(x.start,x.end):g=r.fromPoints(x.start,x.start);continue}E(x)?(C=x.start,g.compare(C.row,C.column)==-1&&g.setStart(C),C=x.end,g.compare(C.row,C.column)==1&&g.setEnd(C)):(C=x.start,g.compare(C.row,C.column)==-1&&(g=r.fromPoints(x.start,x.start)))}}return g},b.prototype.replace=function(m,k){return this.doc.replace(m,k)},b.prototype.moveText=function(m,k,E){var g=this.getTextRange(m),C=this.getFoldsInRange(m),T=r.fromPoints(k,k);if(!E){this.remove(m);var x=m.start.row-m.end.row,D=x?-m.end.column:m.start.column-m.end.column;D&&(T.start.row==m.end.row&&T.start.column>m.end.column&&(T.start.column+=D),T.end.row==m.end.row&&T.end.column>m.end.column&&(T.end.column+=D)),x&&T.start.row>=m.end.row&&(T.start.row+=x,T.end.row+=x)}if(T.end=this.insert(T.start,g),C.length){var V=m.start,F=T.start,x=F.row-V.row,D=F.column-V.column;this.addFolds(C.map(function(W){return W=W.clone(),W.start.row==V.row&&(W.start.column+=D),W.end.row==V.row&&(W.end.column+=D),W.start.row+=x,W.end.row+=x,W}))}return T},b.prototype.indentRows=function(m,k,E){E=E.replace(/\t/g,this.getTabString());for(var g=m;g<=k;g++)this.doc.insertInLine({row:g,column:0},E)},b.prototype.outdentRows=function(m){for(var k=m.collapseRows(),E=new r(0,0,0,0),g=this.getTabSize(),C=k.start.row;C<=k.end.row;++C){var T=this.getLine(C);E.start.row=C,E.end.row=C;for(var x=0;x<g&&T.charAt(x)==" ";++x);x<g&&T.charAt(x)==" "?(E.start.column=x,E.end.column=x+1):(E.start.column=0,E.end.column=x),this.remove(E)}},b.prototype.$moveLines=function(m,k,E){if(m=this.getRowFoldStart(m),k=this.getRowFoldEnd(k),E<0){var g=this.getRowFoldStart(m+E);if(g<0)return 0;var C=g-m}else if(E>0){var g=this.getRowFoldEnd(k+E);if(g>this.doc.getLength()-1)return 0;var C=g-k}else{m=this.$clipRowToDocument(m),k=this.$clipRowToDocument(k);var C=k-m+1}var T=new r(m,0,k,Number.MAX_VALUE),x=this.getFoldsInRange(T).map(function(V){return V=V.clone(),V.start.row+=C,V.end.row+=C,V}),D=E==0?this.doc.getLines(m,k):this.doc.removeFullLines(m,k);return this.doc.insertFullLines(m+C,D),x.length&&this.addFolds(x),C},b.prototype.moveLinesUp=function(m,k){return this.$moveLines(m,k,-1)},b.prototype.moveLinesDown=function(m,k){return this.$moveLines(m,k,1)},b.prototype.duplicateLines=function(m,k){return this.$moveLines(m,k,0)},b.prototype.$clipRowToDocument=function(m){return Math.max(0,Math.min(m,this.doc.getLength()-1))},b.prototype.$clipColumnToRow=function(m,k){return k<0?0:Math.min(this.doc.getLine(m).length,k)},b.prototype.$clipPositionToDocument=function(m,k){if(k=Math.max(0,k),m<0)m=0,k=0;else{var E=this.doc.getLength();m>=E?(m=E-1,k=this.doc.getLine(E-1).length):k=Math.min(this.doc.getLine(m).length,k)}return{row:m,column:k}},b.prototype.$clipRangeToDocument=function(m){m.start.row<0?(m.start.row=0,m.start.column=0):m.start.column=this.$clipColumnToRow(m.start.row,m.start.column);var k=this.doc.getLength()-1;return m.end.row>k?(m.end.row=k,m.end.column=this.doc.getLine(k).length):m.end.column=this.$clipColumnToRow(m.end.row,m.end.column),m},b.prototype.setUseWrapMode=function(m){if(m!=this.$useWrapMode){if(this.$useWrapMode=m,this.$modified=!0,this.$resetRowCache(0),m){var k=this.getLength();this.$wrapData=Array(k),this.$updateWrapData(0,k-1)}this._signal("changeWrapMode")}},b.prototype.getUseWrapMode=function(){return this.$useWrapMode},b.prototype.setWrapLimitRange=function(m,k){(this.$wrapLimitRange.min!==m||this.$wrapLimitRange.max!==k)&&(this.$wrapLimitRange={min:m,max:k},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},b.prototype.adjustWrapLimit=function(m,k){var E=this.$wrapLimitRange;E.max<0&&(E={min:k,max:k});var g=this.$constrainWrapLimit(m,E.min,E.max);return g!=this.$wrapLimit&&g>1?(this.$wrapLimit=g,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},b.prototype.$constrainWrapLimit=function(m,k,E){return k&&(m=Math.max(k,m)),E&&(m=Math.min(E,m)),m},b.prototype.getWrapLimit=function(){return this.$wrapLimit},b.prototype.setWrapLimit=function(m){this.setWrapLimitRange(m,m)},b.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},b.prototype.$updateInternalDataOnChange=function(m){var k=this.$useWrapMode,E=m.action,g=m.start,C=m.end,T=g.row,x=C.row,D=x-T,V=null;if(this.$updating=!0,D!=0)if(E==="remove"){this[k?"$wrapData":"$rowLengthCache"].splice(T,D);var F=this.$foldData;V=this.getFoldsInRange(m),this.removeFolds(V);var N=this.getFoldLine(C.row),U=0;if(N){N.addRemoveChars(C.row,C.column,g.column-C.column),N.shiftRow(-D);var W=this.getFoldLine(T);W&&W!==N&&(W.merge(N),N=W),U=F.indexOf(N)+1}for(U;U<F.length;U++){var N=F[U];N.start.row>=C.row&&N.shiftRow(-D)}x=T}else{var B=Array(D);B.unshift(T,0);var z=k?this.$wrapData:this.$rowLengthCache;z.splice.apply(z,B);var F=this.$foldData,N=this.getFoldLine(T),U=0;if(N){var G=N.range.compareInside(g.row,g.column);G==0?(N=N.split(g.row,g.column),N&&(N.shiftRow(D),N.addRemoveChars(x,0,C.column-g.column))):G==-1&&(N.addRemoveChars(T,0,C.column-g.column),N.shiftRow(D)),U=F.indexOf(N)+1}for(U;U<F.length;U++){var N=F[U];N.start.row>=T&&N.shiftRow(D)}}else{D=Math.abs(m.start.column-m.end.column),E==="remove"&&(V=this.getFoldsInRange(m),this.removeFolds(V),D=-D);var N=this.getFoldLine(T);N&&N.addRemoveChars(T,g.column,D)}return k&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,k?this.$updateWrapData(T,x):this.$updateRowLengthCache(T,x),V},b.prototype.$updateRowLengthCache=function(m,k,E){this.$rowLengthCache[m]=null,this.$rowLengthCache[k]=null},b.prototype.$updateWrapData=function(m,k){var E=this.doc.getAllLines(),g=this.getTabSize(),C=this.$wrapData,T=this.$wrapLimit,x,D,V=m;for(k=Math.min(k,E.length-1);V<=k;)D=this.getFoldLine(V,D),D?(x=[],D.walk(function(F,N,U,W){var B;if(F!=null){B=this.$getDisplayTokens(F,x.length),B[0]=$;for(var z=1;z<B.length;z++)B[z]=w}else B=this.$getDisplayTokens(E[N].substring(W,U),x.length);x=x.concat(B)}.bind(this),D.end.row,E[D.end.row].length+1),C[D.start.row]=this.$computeWrapSplits(x,T,g),V=D.end.row+1):(x=this.$getDisplayTokens(E[V]),C[V]=this.$computeWrapSplits(x,T,g),V++)},b.prototype.$computeWrapSplits=function(m,k,E){if(m.length==0)return[];var g=[],C=m.length,T=0,x=0,D=this.$wrapAsCode,V=this.$indentedSoftWrap,F=k<=Math.max(2*E,8)||V===!1?0:Math.floor(k/2);function N(){var G=0;if(F===0)return G;if(V)for(var X=0;X<m.length;X++){var Y=m[X];if(Y==f)G+=1;else if(Y==M)G+=E;else{if(Y==S)continue;break}}return D&&V!==!1&&(G+=E),Math.min(G,F)}function U(G){for(var X=G-T,Y=T;Y<G;Y++){var Q=m[Y];(Q===12||Q===2)&&(X-=1)}g.length||(W=N(),g.indent=W),x+=X,g.push(x),T=G}for(var W=0;C-T>k-W;){var B=T+k-W;if(m[B-1]>=f&&m[B]>=f){U(B);continue}if(m[B]==$||m[B]==w){for(B;B!=T-1&&m[B]!=$;B--);if(B>T){U(B);continue}for(B=T+k,B;B<m.length&&m[B]==w;B++);if(B==m.length)break;U(B);continue}for(var z=Math.max(B-(k-(k>>2)),T-1);B>z&&m[B]<$;)B--;if(D){for(;B>z&&m[B]<$;)B--;for(;B>z&&m[B]==v;)B--}else for(;B>z&&m[B]<f;)B--;if(B>z){U(++B);continue}B=T+k,m[B]==u&&B--,U(B-W)}return g},b.prototype.$getDisplayTokens=function(m,k){var E=[],g;k=k||0;for(var C=0;C<m.length;C++){var T=m.charCodeAt(C);if(T==9){g=this.getScreenTabSize(E.length+k),E.push(M);for(var x=1;x<g;x++)E.push(S)}else T==32?E.push(f):T>39&&T<48||T>57&&T<64?E.push(v):T>=4352&&A(T)?E.push(h,u):E.push(h)}return E},b.prototype.$getStringScreenWidth=function(m,k,E){if(k==0)return[0,0];k==null&&(k=1/0),E=E||0;var g,C;for(C=0;C<m.length&&(g=m.charCodeAt(C),g==9?E+=this.getScreenTabSize(E):g>=4352&&A(g)?E+=2:E+=1,!(E>k));C++);return[E,C]},b.prototype.getRowLength=function(m){var k=1;return this.lineWidgets&&(k+=this.lineWidgets[m]&&this.lineWidgets[m].rowCount||0),!this.$useWrapMode||!this.$wrapData[m]?k:this.$wrapData[m].length+k},b.prototype.getRowLineCount=function(m){return!this.$useWrapMode||!this.$wrapData[m]?1:this.$wrapData[m].length+1},b.prototype.getRowWrapIndent=function(m){if(this.$useWrapMode){var k=this.screenToDocumentPosition(m,Number.MAX_VALUE),E=this.$wrapData[k.row];return E.length&&E[0]<k.column?E.indent:0}else return 0},b.prototype.getScreenLastRowColumn=function(m){var k=this.screenToDocumentPosition(m,Number.MAX_VALUE);return this.documentToScreenColumn(k.row,k.column)},b.prototype.getDocumentLastRowColumn=function(m,k){var E=this.documentToScreenRow(m,k);return this.getScreenLastRowColumn(E)},b.prototype.getDocumentLastRowColumnPosition=function(m,k){var E=this.documentToScreenRow(m,k);return this.screenToDocumentPosition(E,Number.MAX_VALUE/10)},b.prototype.getRowSplitData=function(m){if(this.$useWrapMode)return this.$wrapData[m]},b.prototype.getScreenTabSize=function(m){return this.$tabSize-(m%this.$tabSize|0)},b.prototype.screenToDocumentRow=function(m,k){return this.screenToDocumentPosition(m,k).row},b.prototype.screenToDocumentColumn=function(m,k){return this.screenToDocumentPosition(m,k).column},b.prototype.screenToDocumentPosition=function(m,k,E){if(m<0)return{row:0,column:0};var g,C=0,T=0,x,D=0,V=0,F=this.$screenRowCache,N=this.$getRowCacheIndex(F,m),U=F.length;if(U&&N>=0)var D=F[N],C=this.$docRowCache[N],W=m>F[U-1];else var W=!U;for(var B=this.getLength()-1,z=this.getNextFoldLine(C),G=z?z.start.row:1/0;D<=m&&(V=this.getRowLength(C),!(D+V>m||C>=B));)D+=V,C++,C>G&&(C=z.end.row+1,z=this.getNextFoldLine(C,z),G=z?z.start.row:1/0),W&&(this.$docRowCache.push(C),this.$screenRowCache.push(D));if(z&&z.start.row<=C)g=this.getFoldDisplayLine(z),C=z.start.row;else{if(D+V<=m||C>B)return{row:B,column:this.getLine(B).length};g=this.getLine(C),z=null}var X=0,Y=Math.floor(m-D);if(this.$useWrapMode){var Q=this.$wrapData[C];Q&&(x=Q[Y],Y>0&&Q.length&&(X=Q.indent,T=Q[Y-1]||Q[Q.length-1],g=g.substring(T)))}return E!==void 0&&this.$bidiHandler.isBidiRow(D+Y,C,Y)&&(k=this.$bidiHandler.offsetToCol(E)),T+=this.$getStringScreenWidth(g,k-X)[1],this.$useWrapMode&&T>=x&&(T=x-1),z?z.idxToPosition(T):{row:C,column:T}},b.prototype.documentToScreenPosition=function(m,k){if(typeof k>"u")var E=this.$clipPositionToDocument(m.row,m.column);else E=this.$clipPositionToDocument(m,k);m=E.row,k=E.column;var g=0,C=null,T=null;T=this.getFoldAt(m,k,1),T&&(m=T.start.row,k=T.start.column);var x,D=0,V=this.$docRowCache,F=this.$getRowCacheIndex(V,m),N=V.length;if(N&&F>=0)var D=V[F],g=this.$screenRowCache[F],U=m>V[N-1];else var U=!N;for(var W=this.getNextFoldLine(D),B=W?W.start.row:1/0;D<m;){if(D>=B){if(x=W.end.row+1,x>m)break;W=this.getNextFoldLine(x,W),B=W?W.start.row:1/0}else x=D+1;g+=this.getRowLength(D),D=x,U&&(this.$docRowCache.push(D),this.$screenRowCache.push(g))}var z="";W&&D>=B?(z=this.getFoldDisplayLine(W,m,k),C=W.start.row):(z=this.getLine(m).substring(0,k),C=m);var G=0;if(this.$useWrapMode){var X=this.$wrapData[C];if(X){for(var Y=0;z.length>=X[Y];)g++,Y++;z=z.substring(X[Y-1]||0,z.length),G=Y>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[D]&&this.lineWidgets[D].rowsAbove&&(g+=this.lineWidgets[D].rowsAbove),{row:g,column:G+this.$getStringScreenWidth(z)[0]}},b.prototype.documentToScreenColumn=function(m,k){return this.documentToScreenPosition(m,k).column},b.prototype.documentToScreenRow=function(m,k){return this.documentToScreenPosition(m,k).row},b.prototype.getScreenLength=function(){var m=0,k=null;if(this.$useWrapMode)for(var C=this.$wrapData.length,T=0,g=0,k=this.$foldData[g++],x=k?k.start.row:1/0;T<C;){var D=this.$wrapData[T];m+=D?D.length+1:1,T++,T>x&&(T=k.end.row+1,k=this.$foldData[g++],x=k?k.start.row:1/0)}else{m=this.getLength();for(var E=this.$foldData,g=0;g<E.length;g++)k=E[g],m-=k.end.row-k.start.row}return this.lineWidgets&&(m+=this.$getWidgetScreenLength()),m},b.prototype.$setFontMetrics=function(m){this.$enableVarChar&&(this.$getStringScreenWidth=function(k,E,g){if(E===0)return[0,0];E||(E=1/0),g=g||0;var C,T;for(T=0;T<k.length&&(C=k.charAt(T),C===" "?g+=this.getScreenTabSize(g):g+=m.getCharacterWidth(C),!(g>E));T++);return[g,T]})},b.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},b}();l.$uid=0,l.prototype.$modes=a.$modes,l.prototype.getValue=l.prototype.toString,l.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},l.prototype.$overwrite=!1,l.prototype.$mode=null,l.prototype.$modeId=null,l.prototype.$scrollTop=0,l.prototype.$scrollLeft=0,l.prototype.$wrapLimit=80,l.prototype.$useWrapMode=!1,l.prototype.$wrapLimitRange={min:null,max:null},l.prototype.lineWidgets=null,l.prototype.isFullWidth=A,d.implement(l.prototype,c);var h=1,u=2,$=3,w=4,v=9,f=10,M=11,S=12;function A(b){return b<4352?!1:b>=4352&&b<=4447||b>=4515&&b<=4519||b>=4602&&b<=4607||b>=9001&&b<=9002||b>=11904&&b<=11929||b>=11931&&b<=12019||b>=12032&&b<=12245||b>=12272&&b<=12283||b>=12288&&b<=12350||b>=12353&&b<=12438||b>=12441&&b<=12543||b>=12549&&b<=12589||b>=12593&&b<=12686||b>=12688&&b<=12730||b>=12736&&b<=12771||b>=12784&&b<=12830||b>=12832&&b<=12871||b>=12880&&b<=13054||b>=13056&&b<=19903||b>=19968&&b<=42124||b>=42128&&b<=42182||b>=43360&&b<=43388||b>=44032&&b<=55203||b>=55216&&b<=55238||b>=55243&&b<=55291||b>=63744&&b<=64255||b>=65040&&b<=65049||b>=65072&&b<=65106||b>=65108&&b<=65126||b>=65128&&b<=65131||b>=65281&&b<=65376||b>=65504&&b<=65510}y("./edit_session/folding").Folding.call(l.prototype),y("./edit_session/bracket_match").BracketMatch.call(l.prototype),a.defineOptions(l.prototype,"session",{wrap:{set:function(b){if(!b||b=="off"?b=!1:b=="free"?b=!0:b=="printMargin"?b=-1:typeof b=="string"&&(b=parseInt(b,10)||!1),this.$wrap!=b)if(this.$wrap=b,!b)this.setUseWrapMode(!1);else{var m=typeof b=="number"?b:null;this.setWrapLimitRange(m,m),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(b){b=b=="auto"?this.$mode.type!="text":b!="text",b!=this.$wrapAsCode&&(this.$wrapAsCode=b,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(b){this.$useWorker=b,this.$stopWorker(),b&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(b){b=parseInt(b),b>0&&this.$tabSize!==b&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=b,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(b){this.setFoldStyle(b)},handlesSet:!0},overwrite:{set:function(b){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(b){this.doc.setNewLineMode(b)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(b){this.setMode(b)},get:function(){return this.$modeId},handlesSet:!0}}),L.EditSession=l}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(y,L,I){var d=y("./lib/lang"),_=y("./lib/oop"),p=y("./range").Range,a=function(){function t(){this.$options={}}return t.prototype.set=function(i){return _.mixin(this.$options,i),this},t.prototype.getOptions=function(){return d.copyObject(this.$options)},t.prototype.setOptions=function(i){this.$options=i},t.prototype.find=function(i){var r=this.$options,e=this.$matchIterator(i,r);if(!e)return!1;var n=null;return e.forEach(function(o,l,h,u){return n=new p(o,l,h,u),l==u&&r.start&&r.start.start&&r.skipCurrent!=!1&&n.isEqual(r.start)?(n=null,!1):!0}),n},t.prototype.findAll=function(i){var r=this.$options;if(!r.needle)return[];this.$assembleRegExp(r);var e=r.range,n=e?i.getLines(e.start.row,e.end.row):i.doc.getAllLines(),o=[],l=r.re;if(r.$isMultiLine){var h=l.length,u=n.length-h,$;e:for(var w=l.offset||0;w<=u;w++){for(var v=0;v<h;v++)if(n[w+v].search(l[v])==-1)continue e;var f=n[w],M=n[w+h-1],S=f.length-f.match(l[0])[0].length,A=M.match(l[h-1])[0].length;$&&$.end.row===w&&$.end.column>S||(o.push($=new p(w,S,w+h-1,A)),h>2&&(w=w+h-2))}}else for(var b=0;b<n.length;b++)for(var m=d.getMatchOffsets(n[b],l),v=0;v<m.length;v++){var k=m[v];o.push(new p(b,k.offset,b,k.offset+k.length))}if(e){for(var E=e.start.column,g=e.end.column,b=0,v=o.length-1;b<v&&o[b].start.column<E&&o[b].start.row==0;)b++;for(var C=e.end.row-e.start.row;b<v&&o[v].end.column>g&&o[v].end.row==C;)v--;for(o=o.slice(b,v+1),b=0,v=o.length;b<v;b++)o[b].start.row+=e.start.row,o[b].end.row+=e.start.row}return o},t.prototype.replace=function(i,r){var e=this.$options,n=this.$assembleRegExp(e);if(e.$isMultiLine)return r;if(n){var o=n.exec(i);if(!o||o[0].length!=i.length)return null;if(r=i.replace(n,r),e.preserveCase){r=r.split("");for(var l=Math.min(i.length,i.length);l--;){var h=i[l];h&&h.toLowerCase()!=h?r[l]=r[l].toUpperCase():r[l]=r[l].toLowerCase()}r=r.join("")}return r}},t.prototype.$assembleRegExp=function(i,r){if(i.needle instanceof RegExp)return i.re=i.needle;var e=i.needle;if(!i.needle)return i.re=!1;i.regExp||(e=d.escapeRegExp(e)),i.wholeWord&&(e=c(e,i));var n=i.caseSensitive?"gm":"gmi";if(i.$isMultiLine=!r&&/[\n\r]/.test(e),i.$isMultiLine)return i.re=this.$assembleMultilineRegExp(e,n);try{var o=new RegExp(e,n)}catch{o=!1}return i.re=o},t.prototype.$assembleMultilineRegExp=function(i,r){for(var e=i.replace(/\r\n|\r|\n/g,`$
  179. ^`).split(`
  180. `),n=[],o=0;o<e.length;o++)try{n.push(new RegExp(e[o],r))}catch{return!1}return n},t.prototype.$matchIterator=function(i,r){var e=this.$assembleRegExp(r);if(!e)return!1;var n=r.backwards==!0,o=r.skipCurrent!=!1,l=r.range,h=r.start;h||(h=l?l[n?"end":"start"]:i.selection.getRange()),h.start&&(h=h[o!=n?"end":"start"]);var u=l?l.start.row:0,$=l?l.end.row:i.getLength()-1;if(n)var w=function(M){var S=h.row;if(!f(S,h.column,M)){for(S--;S>=u;S--)if(f(S,Number.MAX_VALUE,M))return;if(r.wrap!=!1){for(S=$,u=h.row;S>=u;S--)if(f(S,Number.MAX_VALUE,M))return}}};else var w=function(S){var A=h.row;if(!f(A,h.column,S)){for(A=A+1;A<=$;A++)if(f(A,0,S))return;if(r.wrap!=!1){for(A=u,$=h.row;A<=$;A++)if(f(A,0,S))return}}};if(r.$isMultiLine)var v=e.length,f=function(M,S,A){var b=n?M-v+1:M;if(!(b<0||b+v>i.getLength())){var m=i.getLine(b),k=m.search(e[0]);if(!(!n&&k<S||k===-1)){for(var E=1;E<v;E++)if(m=i.getLine(b+E),m.search(e[E])==-1)return;var g=m.match(e[v-1])[0].length;if(!(n&&g>S)&&A(b,k,b+v-1,g))return!0}}};else if(n)var f=function(S,A,b){var m=i.getLine(S),k=[],E,g=0;for(e.lastIndex=0;E=e.exec(m);){var C=E[0].length;if(g=E.index,!C){if(g>=m.length)break;e.lastIndex=g+=1}if(E.index+C>A)break;k.push(E.index,C)}for(var T=k.length-1;T>=0;T-=2){var x=k[T-1],C=k[T];if(b(S,x,S,x+C))return!0}};else var f=function(S,A,b){var m=i.getLine(S),k,E;for(e.lastIndex=A;E=e.exec(m);){var g=E[0].length;if(k=E.index,b(S,k,S,k+g))return!0;if(!g&&(e.lastIndex=k+=1,k>=m.length))return!1}};return{forEach:w}},t}();function c(t,i){function r(e){return/\w/.test(e)||i.regExp?"\\b":""}return r(t[0])+t+r(t[t.length-1])}L.Search=a}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(y,L,I){var d=this&&this.__extends||function(){var r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(o[h]=l[h])},r(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),_=y("../lib/keys"),p=y("../lib/useragent"),a=_.KEY_MODS,c=function(){function r(e,n){this.$init(e,n,!1)}return r.prototype.$init=function(e,n,o){this.platform=n||(p.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,n){var o=e&&(typeof e=="string"?e:e.name);e=this.commands[o],n||delete this.commands[o];var l=this.commandKeyBinding;for(var h in l){var u=l[h];if(u==e)delete l[h];else if(Array.isArray(u)){var $=u.indexOf(e);$!=-1&&(u.splice($,1),u.length==1&&(l[h]=u[0]))}}},r.prototype.bindKey=function(e,n,o){if(typeof e=="object"&&e&&(o==null&&(o=e.position),e=e[this.platform]),!!e){if(typeof n=="function")return this.addCommand({exec:n,bindKey:e,name:n.name||e});e.split("|").forEach(function(l){var h="";if(l.indexOf(" ")!=-1){var u=l.split(/\s+/);l=u.pop(),u.forEach(function(v){var f=this.parseKeys(v),M=a[f.hashId]+f.key;h+=(h?" ":"")+M,this._addCommandToBinding(h,"chainKeys")},this),h+=" "}var $=this.parseKeys(l),w=a[$.hashId]+$.key;this._addCommandToBinding(h+w,n,o)},this)}},r.prototype._addCommandToBinding=function(e,n,o){var l=this.commandKeyBinding,h;if(!n)delete l[e];else if(!l[e]||this.$singleCommand)l[e]=n;else{Array.isArray(l[e])?(h=l[e].indexOf(n))!=-1&&l[e].splice(h,1):l[e]=[l[e]],typeof o!="number"&&(o=t(n));var u=l[e];for(h=0;h<u.length;h++){var $=u[h],w=t($);if(w>o)break}u.splice(h,0,n)}},r.prototype.addCommands=function(e){e&&Object.keys(e).forEach(function(n){var o=e[n];if(o){if(typeof o=="string")return this.bindKey(o,n);typeof o=="function"&&(o={exec:o}),typeof o=="object"&&(o.name||(o.name=n),this.addCommand(o))}},this)},r.prototype.removeCommands=function(e){Object.keys(e).forEach(function(n){this.removeCommand(e[n])},this)},r.prototype.bindKeys=function(e){Object.keys(e).forEach(function(n){this.bindKey(n,e[n])},this)},r.prototype._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},r.prototype.parseKeys=function(e){var n=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(w){return w}),o=n.pop(),l=_[o];if(_.FUNCTION_KEYS[l])o=_.FUNCTION_KEYS[l].toLowerCase();else if(n.length){if(n.length==1&&n[0]=="shift")return{key:o.toUpperCase(),hashId:-1}}else return{key:o,hashId:-1};for(var h=0,u=n.length;u--;){var $=_.KEY_MODS[n[u]];if($==null)return typeof console<"u"&&console.error("invalid modifier "+n[u]+" in "+e),!1;h|=$}return{key:o,hashId:h}},r.prototype.findKeyCommand=function(e,n){var o=a[e]+n;return this.commandKeyBinding[o]},r.prototype.handleKeyboard=function(e,n,o,l){if(!(l<0)){var h=a[n]+o,u=this.commandKeyBinding[h];return e.$keyChain&&(e.$keyChain+=" "+h,u=this.commandKeyBinding[e.$keyChain]||u),u&&(u=="chainKeys"||u[u.length-1]=="chainKeys")?(e.$keyChain=e.$keyChain||h,{command:"null"}):(e.$keyChain&&((!n||n==4)&&o.length==1?e.$keyChain=e.$keyChain.slice(0,-h.length-1):(n==-1||l>0)&&(e.$keyChain="")),{command:u})}},r.prototype.getStatusText=function(e,n){return n.$keyChain||""},r}();function t(r){return typeof r=="object"&&r.bindKey&&r.bindKey.position||(r.isDefault?-100:0)}var i=function(r){d(e,r);function e(n,o){var l=r.call(this,n,o)||this;return l.$singleCommand=!0,l}return e}(c);i.call=function(r,e,n){c.prototype.$init.call(r,e,n,!0)},c.call=function(r,e,n){c.prototype.$init.call(r,e,n,!1)},L.HashHandler=i,L.MultiHashHandler=c}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(y,L,I){var d=this&&this.__extends||function(){var t=function(i,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},t(i,r)};return function(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(i,r);function e(){this.constructor=i}i.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),_=y("../lib/oop"),p=y("../keyboard/hash_handler").MultiHashHandler,a=y("../lib/event_emitter").EventEmitter,c=function(t){d(i,t);function i(r,e){var n=t.call(this,e,r)||this;return n.byName=n.commands,n.setDefaultHandler("exec",function(o){return o.args?o.command.exec(o.editor,o.args,o.event,!1):o.command.exec(o.editor,{},o.event,!0)}),n}return i.prototype.exec=function(r,e,n){if(Array.isArray(r)){for(var o=r.length;o--;)if(this.exec(r[o],e,n))return!0;return!1}if(typeof r=="string"&&(r=this.commands[r]),!r||e&&e.$readOnly&&!r.readOnly||this.$checkCommandState!=!1&&r.isAvailable&&!r.isAvailable(e))return!1;var l={editor:e,command:r,args:n};return l.returnValue=this._emit("exec",l),this._signal("afterExec",l),l.returnValue!==!1},i.prototype.toggleRecording=function(r){if(!this.$inReplay)return r&&r._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},i.prototype.replay=function(r){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(r);try{this.$inReplay=!0,this.macro.forEach(function(e){typeof e=="string"?this.exec(e,r):this.exec(e[0],r,e[1])},this)}finally{this.$inReplay=!1}}},i.prototype.trimMacro=function(r){return r.map(function(e){return typeof e[0]!="string"&&(e[0]=e[0].name),e[1]||(e=e[0]),e})},i}(p);_.implement(c.prototype,a),L.CommandManager=c}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(y,L,I){var d=y("../lib/lang"),_=y("../config"),p=y("../range").Range;function a(t,i){return{win:t,mac:i}}L.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(t){_.loadModule("ace/ext/settings_menu",function(i){i.init(t),t.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(t){_.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(t,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(t){_.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(t,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(t){t.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(t){t.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(t,i){typeof i=="number"&&!isNaN(i)&&t.gotoLine(i),t.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(t){t.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(t){t.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(t){t.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(t){t.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(t){t.session.foldAll(),t.session.unfold(t.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(t){t.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(t){t.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(t){t.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(t){_.loadModule("ace/ext/searchbox",function(i){i.Search(t)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(t){t.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(t){t.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(t){t.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(t){t.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(t,i){t.navigateUp(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(t){t.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(t){t.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(t){t.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(t,i){t.navigateDown(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(t){t.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(t){t.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(t){t.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(t){t.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(t,i){t.navigateLeft(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(t){t.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(t){t.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(t){t.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(t){t.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(t,i){t.navigateRight(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(t){t.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(t){t.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(t){t.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(t){t.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(t){t.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(t){t.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(t){t.renderer.scrollBy(0,-2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(t){t.renderer.scrollBy(0,2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(t){t.commands.toggleRecording(t)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(t){t.commands.replay(t)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(t){t.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(t){t.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(t){t.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(t){},readOnly:!0},{name:"cut",description:"Cut",exec:function(t){var i=t.$copyWithEmptySelection&&t.selection.isEmpty(),r=i?t.selection.getLineRange():t.selection.getRange();t._emit("cut",r),r.isEmpty()||t.session.remove(r),t.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(t,i){t.$handlePaste(i)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(t){t.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(t){t.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(t){t.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(t){t.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(t){t.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(t){t.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(t){t.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(t){_.loadModule("ace/ext/searchbox",function(i){i.Search(t,!0)})}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(t){t.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(t){t.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(t){t.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(t){t.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(t){t.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(t){t.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(t){t.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(t){t.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(t){if(t.selection.isEmpty())t.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(t){t.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(t){t.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(t){var i=t.selection.getRange();i.start.column=0,t.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(t){var i=t.selection.getRange();i.end.column=Number.MAX_VALUE,t.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(t){t.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(t){t.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(t){t.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(t){t.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(t){t.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(t){t.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(t,i){t.insert(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(t,i){t.insert(d.stringRepeat(i.text||"",i.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(t){t.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(t){t.transposeLetters()},multiSelectAction:function(t){t.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(t){t.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(t){t.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(t){t.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(t){var i=t.selection.getRange();i.start.column=i.end.column=0,i.end.row++,t.selection.setRange(i,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:a("Ctrl+F3","F3"),exec:function(t){t.openLink()}},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(t){for(var i=t.selection.isBackwards(),r=i?t.selection.getSelectionLead():t.selection.getSelectionAnchor(),e=i?t.selection.getSelectionAnchor():t.selection.getSelectionLead(),n=t.session.doc.getLine(r.row).length,o=t.session.doc.getTextRange(t.selection.getRange()),l=o.replace(/\n\s*/," ").length,h=t.session.doc.getLine(r.row),u=r.row+1;u<=e.row+1;u++){var $=d.stringTrimLeft(d.stringTrimRight(t.session.doc.getLine(u)));$.length!==0&&($=" "+$),h+=$}e.row+1<t.session.doc.getLength()-1&&(h+=t.session.doc.getNewLineCharacter()),t.clearSelection(),t.session.doc.replace(new p(r.row,0,e.row+2,0),h),l>0?(t.selection.moveCursorTo(r.row,r.column),t.selection.selectTo(r.row,r.column+l)):(n=t.session.doc.getLine(r.row).length>n?n+1:n,t.selection.moveCursorTo(r.row,n))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(t){var i=t.session.doc.getLength()-1,r=t.session.doc.getLine(i).length,e=t.selection.rangeList.ranges,n=[];e.length<1&&(e=[t.selection.getRange()]);for(var o=0;o<e.length;o++)o==e.length-1&&(e[o].end.row===i&&e[o].end.column===r||n.push(new p(e[o].end.row,e[o].end.column,i,r))),o===0?e[o].start.row===0&&e[o].start.column===0||n.push(new p(0,0,e[o].start.row,e[o].start.column)):n.push(new p(e[o-1].end.row,e[o-1].end.column,e[o].start.row,e[o].start.column));t.exitMultiSelectMode(),t.clearSelection();for(var o=0;o<n.length;o++)t.selection.addRange(n[o],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(t){t.selection.clearSelection(),t.navigateLineEnd(),t.insert(`
  181. `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(t){t.selection.clearSelection();var i=t.getCursorPosition();t.selection.moveTo(i.row-1,Number.MAX_VALUE),t.insert(`
  182. `),i.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 c=1;c<9;c++)L.commands.push({name:"foldToLevel"+c,description:"Fold To Level "+c,level:c,exec:function(t){t.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(y,L,I){var d=y("./lib/dom"),_=function(){function p(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 p.prototype.getRowLength=function(a){var c;return this.lineWidgets?c=this.lineWidgets[a]&&this.lineWidgets[a].rowCount||0:c=0,!this.$useWrapMode||!this.$wrapData[a]?1+c:this.$wrapData[a].length+1+c},p.prototype.$getWidgetScreenLength=function(){var a=0;return this.lineWidgets.forEach(function(c){c&&c.rowCount&&!c.hidden&&(a+=c.rowCount)}),a},p.prototype.$onChangeEditor=function(a){this.attach(a.editor)},p.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)))},p.prototype.detach=function(a){var c=this.editor;if(c){this.editor=null,c.widgetManager=null,c.renderer.off("beforeRender",this.measureWidgets),c.renderer.off("afterRender",this.renderWidgets);var t=this.session.lineWidgets;t&&t.forEach(function(i){i&&i.el&&i.el.parentNode&&(i._inDocument=!1,i.el.parentNode.removeChild(i.el))})}},p.prototype.updateOnFold=function(a,c){var t=c.lineWidgets;if(!(!t||!a.action)){for(var i=a.data,r=i.start.row,e=i.end.row,n=a.action=="add",o=r+1;o<e;o++)t[o]&&(t[o].hidden=n);t[e]&&(n?t[r]?t[e].hidden=n:t[r]=t[e]:(t[r]==t[e]&&(t[r]=void 0),t[e].hidden=n))}},p.prototype.updateOnChange=function(a){var c=this.session.lineWidgets;if(c){var t=a.start.row,i=a.end.row-t;if(i!==0)if(a.action=="remove"){var r=c.splice(t+1,i);!c[t]&&r[r.length-1]&&(c[t]=r.pop()),r.forEach(function(n){n&&this.removeLineWidget(n)},this),this.$updateRows()}else{var e=new Array(i);c[t]&&c[t].column!=null&&a.start.column>c[t].column&&t++,e.unshift(t,0),c.splice.apply(c,e),this.$updateRows()}}},p.prototype.$updateRows=function(){var a=this.session.lineWidgets;if(a){var c=!0;a.forEach(function(t,i){if(t)for(c=!1,t.row=i;t.$oldWidget;)t.$oldWidget.row=i,t=t.$oldWidget}),c&&(this.session.lineWidgets=null)}},p.prototype.$registerLineWidget=function(a){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var c=this.session.lineWidgets[a.row];return c&&(a.$oldWidget=c,c.el&&c.el.parentNode&&(c.el.parentNode.removeChild(c.el),c._inDocument=!1)),this.session.lineWidgets[a.row]=a,a},p.prototype.addLineWidget=function(a){if(this.$registerLineWidget(a),a.session=this.session,!this.editor)return a;var c=this.editor.renderer;a.html&&!a.el&&(a.el=d.createElement("div"),a.el.innerHTML=a.html),a.text&&!a.el&&(a.el=d.createElement("div"),a.el.textContent=a.text),a.el&&(d.addCssClass(a.el,"ace_lineWidgetContainer"),a.className&&d.addCssClass(a.el,a.className),a.el.style.position="absolute",a.el.style.zIndex=5,c.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/c.layerConfig.lineHeight);var t=this.session.getFoldAt(a.row,0);if(a.$fold=t,t){var i=this.session.lineWidgets;a.row==t.end.row&&!i[t.start.row]?i[t.start.row]=a:a.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows(),this.renderWidgets(null,c),this.onWidgetChanged(a),a},p.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 c=this.session.lineWidgets[a.row];if(c==a)this.session.lineWidgets[a.row]=a.$oldWidget,a.$oldWidget&&this.onWidgetChanged(a.$oldWidget);else for(;c;){if(c.$oldWidget==a){c.$oldWidget=a.$oldWidget;break}c=c.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows()},p.prototype.getWidgetsAtRow=function(a){for(var c=this.session.lineWidgets,t=c&&c[a],i=[];t;)i.push(t),t=t.$oldWidget;return i},p.prototype.onWidgetChanged=function(a){this.session._changedWidgets.push(a),this.editor&&this.editor.renderer.updateFull()},p.prototype.measureWidgets=function(a,c){var t=this.session._changedWidgets,i=c.layerConfig;if(!(!t||!t.length)){for(var r=1/0,e=0;e<t.length;e++){var n=t[e];if(!(!n||!n.el)&&n.session==this.session){if(!n._inDocument){if(this.session.lineWidgets[n.row]!=n)continue;n._inDocument=!0,c.container.appendChild(n.el)}n.h=n.el.offsetHeight,n.fixedWidth||(n.w=n.el.offsetWidth,n.screenWidth=Math.ceil(n.w/i.characterWidth));var o=n.h/i.lineHeight;n.coverLine&&(o-=this.session.getRowLineCount(n.row),o<0&&(o=0)),n.rowCount!=o&&(n.rowCount=o,n.row<r&&(r=n.row))}}r!=1/0&&(this.session._emit("changeFold",{data:{start:{row:r}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},p.prototype.renderWidgets=function(a,c){var t=c.layerConfig,i=this.session.lineWidgets;if(i){for(var r=Math.min(this.firstRow,t.firstRow),e=Math.max(this.lastRow,t.lastRow,i.length);r>0&&!i[r];)r--;this.firstRow=t.firstRow,this.lastRow=t.lastRow,c.$cursorLayer.config=t;for(var n=r;n<=e;n++){var o=i[n];if(!(!o||!o.el)){if(o.hidden){o.el.style.top=-100-(o.pixelHeight||0)+"px";continue}o._inDocument||(o._inDocument=!0,c.container.appendChild(o.el));var l=c.$cursorLayer.getPixelPosition({row:n,column:0},!0).top;o.coverLine||(l+=t.lineHeight*this.session.getRowLineCount(o.row)),o.el.style.top=l-t.offset+"px";var h=o.coverGutter?0:c.gutterWidth;o.fixedWidth||(h-=c.scrollLeft),o.el.style.left=h+"px",o.fullWidth&&o.screenWidth&&(o.el.style.minWidth=t.width+2*t.padding+"px"),o.fixedWidth?o.el.style.right=c.scrollBar.getWidth()+"px":o.el.style.right=""}}}},p}();L.LineWidgets=_}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(y,L,I){var d=y("../lib/keys"),_=y("../mouse/default_gutter_handler").GutterTooltip,p=function(){function c(t){this.editor=t,this.gutterLayer=t.renderer.$gutterLayer,this.element=t.renderer.$gutter,this.lines=t.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new _(this.editor)}return c.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},c.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},c.prototype.$onGutterKeyDown=function(t){if(this.annotationTooltip.isOpen){t.preventDefault(),t.keyCode===d.escape&&this.annotationTooltip.hideTooltip();return}if(t.target===this.element){if(t.keyCode!=d.enter)return;t.preventDefault();var i=this.editor.getCursorPosition().row;this.editor.isRowVisible(i)||this.editor.scrollToLine(i,!0,!0),setTimeout(function(){var r=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),e=this.$findNearestFoldWidget(r),n=this.$findNearestAnnotation(r);if(!(e===null&&n===null)){if(e===null&&n!==null){this.activeRowIndex=n,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(e!==null&&n===null){this.activeRowIndex=e,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(n-r)<Math.abs(e-r)){this.activeRowIndex=n,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=e,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}.bind(this),10);return}this.$handleGutterKeyboardInteraction(t),setTimeout(function(){this.editor._signal("gutterkeydown",new a(t,this))}.bind(this),10)},c.prototype.$handleGutterKeyboardInteraction=function(t){if(t.keyCode===d.tab){t.preventDefault();return}if(t.keyCode===d.escape){t.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(t.keyCode===d.up){switch(t.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(t.keyCode===d.down){switch(t.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(t.keyCode===d.left){t.preventDefault(),this.$switchLane("annotation");return}if(t.keyCode===d.right){t.preventDefault(),this.$switchLane("fold");return}if(t.keyCode===d.enter||t.keyCode===d.space){switch(t.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var i=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),t),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==i&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(i),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var r=this.lines.cells[this.activeRowIndex].element.childNodes[2],e=r.getBoundingClientRect(),n=this.annotationTooltip.getElement().style;n.left=e.right+"px",n.top=e.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},c.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},c.prototype.$isFoldWidgetVisible=function(t){var i=this.editor.isRowFullyVisible(this.$rowIndexToRow(t)),r=this.$getFoldWidget(t).style.display!=="none";return i&&r},c.prototype.$isAnnotationVisible=function(t){var i=this.editor.isRowFullyVisible(this.$rowIndexToRow(t)),r=this.$getAnnotation(t).style.display!=="none";return i&&r},c.prototype.$getFoldWidget=function(t){var i=this.lines.get(t),r=i.element;return r.childNodes[1]},c.prototype.$getAnnotation=function(t){var i=this.lines.get(t),r=i.element;return r.childNodes[2]},c.prototype.$findNearestFoldWidget=function(t){if(this.$isFoldWidgetVisible(t))return t;for(var i=0;t-i>0||t+i<this.lines.getLength()-1;){if(i++,t-i>=0&&this.$isFoldWidgetVisible(t-i))return t-i;if(t+i<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(t+i))return t+i}return null},c.prototype.$findNearestAnnotation=function(t){if(this.$isAnnotationVisible(t))return t;for(var i=0;t-i>0||t+i<this.lines.getLength()-1;){if(i++,t-i>=0&&this.$isAnnotationVisible(t-i))return t-i;if(t+i<=this.lines.getLength()-1&&this.$isAnnotationVisible(t+i))return t+i}return null},c.prototype.$focusFoldWidget=function(t){if(t!=null){var i=this.$getFoldWidget(t);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},c.prototype.$focusAnnotation=function(t){if(t!=null){var i=this.$getAnnotation(t);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},c.prototype.$blurFoldWidget=function(t){var i=this.$getFoldWidget(t);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},c.prototype.$blurAnnotation=function(t){var i=this.$getAnnotation(t);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},c.prototype.$moveFoldWidgetUp=function(){for(var t=this.activeRowIndex;t>0;)if(t--,this.$isFoldWidgetVisible(t)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=t,this.$focusFoldWidget(this.activeRowIndex);return}},c.prototype.$moveFoldWidgetDown=function(){for(var t=this.activeRowIndex;t<this.lines.getLength()-1;)if(t++,this.$isFoldWidgetVisible(t)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=t,this.$focusFoldWidget(this.activeRowIndex);return}},c.prototype.$moveAnnotationUp=function(){for(var t=this.activeRowIndex;t>0;)if(t--,this.$isAnnotationVisible(t)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=t,this.$focusAnnotation(this.activeRowIndex);return}},c.prototype.$moveAnnotationDown=function(){for(var t=this.activeRowIndex;t<this.lines.getLength()-1;)if(t++,this.$isAnnotationVisible(t)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=t,this.$focusAnnotation(this.activeRowIndex);return}},c.prototype.$switchLane=function(t){switch(t){case"annotation":if(this.activeLane==="annotation")break;var i=this.$findNearestAnnotation(this.activeRowIndex);if(i==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=i,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var r=this.$findNearestFoldWidget(this.activeRowIndex);if(r==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=r,this.$focusFoldWidget(this.activeRowIndex);break}},c.prototype.$rowIndexToRow=function(t){var i=this.lines.get(t);return i?i.row:null},c.prototype.$rowToRowIndex=function(t){for(var i=0;i<this.lines.getLength();i++){var r=this.lines.get(i);if(r.row==t)return i}return null},c}();L.GutterKeyboardHandler=p;var a=function(){function c(t,i){this.gutterKeyboardHandler=i,this.domEvent=t}return c.prototype.getKey=function(){return d.keyCodeToString(this.domEvent.keyCode)},c.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},c.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},c.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},c}();L.GutterKeyboardEvent=a}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(y,L,I){var d=this&&this.__values||function(E){var g=typeof Symbol=="function"&&Symbol.iterator,C=g&&E[g],T=0;if(C)return C.call(E);if(E&&typeof E.length=="number")return{next:function(){return E&&T>=E.length&&(E=void 0),{value:E&&E[T++],done:!E}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")},_=y("./lib/oop"),p=y("./lib/dom"),a=y("./lib/lang"),c=y("./lib/useragent"),t=y("./keyboard/textinput").TextInput,i=y("./mouse/mouse_handler").MouseHandler,r=y("./mouse/fold_handler").FoldHandler,e=y("./keyboard/keybinding").KeyBinding,n=y("./edit_session").EditSession,o=y("./search").Search,l=y("./range").Range,h=y("./lib/event_emitter").EventEmitter,u=y("./commands/command_manager").CommandManager,$=y("./commands/default_commands").commands,w=y("./config"),v=y("./token_iterator").TokenIterator,f=y("./line_widgets").LineWidgets,M=y("./keyboard/gutter_handler").GutterKeyboardHandler,S=y("./config").nls,A=y("./clipboard"),b=y("./lib/keys"),m=function(){function E(g,C,T){this.$toDestroy=[];var x=g.getContainerElement();this.container=x,this.renderer=g,this.id="editor"+ ++E.$uid,this.commands=new u(c.isMac?"mac":"win",$),typeof document=="object"&&(this.textInput=new t(g.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new i(this),new r(this)),this.keyBinding=new e(this),this.$search=new o().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=a.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(D,V){V._$emitInputEvent.schedule(31)}),this.setSession(C||T&&T.session||new n("")),w.resetOptions(this),T&&this.setOptions(T),w._signal("editor",this)}return E.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=a.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},E.prototype.startOperation=function(g){if(this.curOp){if(!g||this.curOp.command)return;this.prevOp=this.curOp}g||(this.previousCommand=null,g={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:g.command||{},args:g.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},E.prototype.endOperation=function(g){if(this.curOp&&this.session){if(g&&g.returnValue===!1||!this.session)return this.curOp=null;if(g==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var C=this.curOp.command,T=C&&C.scrollIntoView;if(T){switch(T){case"center-animate":T="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var x=this.selection.getRange(),D=this.renderer.layerConfig;(x.start.row>=D.lastRow||x.end.row<=D.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var V=this.selection.toJSON();this.curOp.selectionAfter=V,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(V),this.prevOp=this.curOp,this.curOp=null}},E.prototype.$historyTracker=function(g){if(this.$mergeUndoDeltas){var C=this.prevOp,T=this.$mergeableCommands,x=C.command&&g.command.name==C.command.name;if(g.command.name=="insertstring"){var D=g.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),x=x&&this.mergeNextCommand&&(!/\s/.test(D)||/\s/.test(C.args)),this.mergeNextCommand=!0}else x=x&&T.indexOf(g.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(x=!1),x?this.session.mergeUndoDeltas=!0:T.indexOf(g.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},E.prototype.setKeyboardHandler=function(g,C){if(g&&typeof g=="string"&&g!="ace"){this.$keybindingId=g;var T=this;w.loadModule(["keybinding",g],function(x){T.$keybindingId==g&&T.keyBinding.setKeyboardHandler(x&&x.handler),C&&C()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(g),C&&C()},E.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},E.prototype.setSession=function(g){if(this.session!=g){this.curOp&&this.endOperation(),this.curOp={};var C=this.session;if(C){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var T=this.session.getSelection();T.off("changeCursor",this.$onCursorChange),T.off("changeSelection",this.$onSelectionChange)}this.session=g,g?(this.$onDocumentChange=this.onDocumentChange.bind(this),g.on("change",this.$onDocumentChange),this.renderer.setSession(g),this.$onChangeMode=this.onChangeMode.bind(this),g.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),g.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),g.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),g.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),g.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),g.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=g.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(g)),this._signal("changeSession",{session:g,oldSession:C}),this.curOp=null,C&&C._signal("changeEditor",{oldEditor:this}),g&&g._signal("changeEditor",{editor:this}),g&&!g.destroyed&&g.bgTokenizer.scheduleStart()}},E.prototype.getSession=function(){return this.session},E.prototype.setValue=function(g,C){return this.session.doc.setValue(g),C?C==1?this.navigateFileEnd():C==-1&&this.navigateFileStart():this.selectAll(),g},E.prototype.getValue=function(){return this.session.getValue()},E.prototype.getSelection=function(){return this.selection},E.prototype.resize=function(g){this.renderer.onResize(g)},E.prototype.setTheme=function(g,C){this.renderer.setTheme(g,C)},E.prototype.getTheme=function(){return this.renderer.getTheme()},E.prototype.setStyle=function(g){this.renderer.setStyle(g)},E.prototype.unsetStyle=function(g){this.renderer.unsetStyle(g)},E.prototype.getFontSize=function(){return this.getOption("fontSize")||p.computedStyle(this.container).fontSize},E.prototype.setFontSize=function(g){this.setOption("fontSize",g)},E.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var g=this;this.$highlightPending=!0,setTimeout(function(){g.$highlightPending=!1;var C=g.session;if(!(!C||C.destroyed)){C.$bracketHighlight&&(C.$bracketHighlight.markerIds.forEach(function(B){C.removeMarker(B)}),C.$bracketHighlight=null);var T=g.getCursorPosition(),x=g.getKeyboardHandler(),D=x&&x.$getDirectionForHighlight&&x.$getDirectionForHighlight(g),V=C.getMatchingBracketRanges(T,D);if(!V){var F=new v(C,T.row,T.column),N=F.getCurrentToken();if(N&&/\b(?:tag-open|tag-name)/.test(N.type)){var U=C.getMatchingTags(T);U&&(V=[U.openTagName,U.closeTagName])}}if(!V&&C.$mode.getMatching&&(V=C.$mode.getMatching(g.session)),!V){g.getHighlightIndentGuides()&&g.renderer.$textLayer.$highlightIndentGuide();return}var W="ace_bracket";Array.isArray(V)?V.length==1&&(W="ace_error_bracket"):V=[V],V.length==2&&(l.comparePoints(V[0].end,V[1].start)==0?V=[l.fromPoints(V[0].start,V[1].end)]:l.comparePoints(V[0].start,V[1].end)==0&&(V=[l.fromPoints(V[1].start,V[0].end)])),C.$bracketHighlight={ranges:V,markerIds:V.map(function(B){return C.addMarker(B,W,"text")})},g.getHighlightIndentGuides()&&g.renderer.$textLayer.$highlightIndentGuide()}},50)}},E.prototype.focus=function(){this.textInput.focus()},E.prototype.isFocused=function(){return this.textInput.isFocused()},E.prototype.blur=function(){this.textInput.blur()},E.prototype.onFocus=function(g){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",g))},E.prototype.onBlur=function(g){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",g))},E.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},E.prototype.onDocumentChange=function(g){var C=this.session.$useWrapMode,T=g.start.row==g.end.row?g.end.row:1/0;this.renderer.updateLines(g.start.row,T,C),this._signal("change",g),this.$cursorChange()},E.prototype.onTokenizerUpdate=function(g){var C=g.data;this.renderer.updateLines(C.first,C.last)},E.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},E.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},E.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},E.prototype.$updateHighlightActiveLine=function(){var g=this.getSession(),C;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(C=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(C=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(C=!1)),g.$highlightLineMarker&&!C)g.removeMarker(g.$highlightLineMarker.id),g.$highlightLineMarker=null;else if(!g.$highlightLineMarker&&C){var T=new l(C.row,C.column,C.row,1/0);T.id=g.addMarker(T,"ace_active-line","screenLine"),g.$highlightLineMarker=T}else C&&(g.$highlightLineMarker.start.row=C.row,g.$highlightLineMarker.end.row=C.row,g.$highlightLineMarker.start.column=C.column,g._signal("changeBackMarker"))},E.prototype.onSelectionChange=function(g){var C=this.session;if(C.$selectionMarker&&C.removeMarker(C.$selectionMarker),C.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),x=this.getSelectionStyle();C.$selectionMarker=C.addMarker(T,"ace_selection",x)}var D=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(D),this._signal("changeSelection")},E.prototype.$getSelectionHighLightRegexp=function(){var g=this.session,C=this.getSelectionRange();if(!(C.isEmpty()||C.isMultiLine())){var T=C.start.column,x=C.end.column,D=g.getLine(C.start.row),V=D.substring(T,x);if(!(V.length>5e3||!/[\w\d]/.test(V))){var F=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:V}),N=D.substring(T-1,x+1);if(F.test(N))return F}}},E.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},E.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},E.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},E.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},E.prototype.onChangeMode=function(g){this.renderer.updateText(),this._emit("changeMode",g)},E.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},E.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},E.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},E.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},E.prototype.getCopyText=function(){var g=this.getSelectedText(),C=this.session.doc.getNewLineCharacter(),T=!1;if(!g&&this.$copyWithEmptySelection){T=!0;for(var x=this.selection.getAllRanges(),D=0;D<x.length;D++){var V=x[D];D&&x[D-1].start.row==V.start.row||(g+=this.session.getLine(V.start.row)+C)}}var F={text:g};return this._signal("copy",F),A.lineMode=T?F.text:!1,F.text},E.prototype.onCopy=function(){this.commands.exec("copy",this)},E.prototype.onCut=function(){this.commands.exec("cut",this)},E.prototype.onPaste=function(g,C){var T={text:g,event:C};this.commands.exec("paste",this,T)},E.prototype.$handlePaste=function(g){typeof g=="string"&&(g={text:g}),this._signal("paste",g);var C=g.text,T=C===A.lineMode,x=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)T?x.insert({row:this.selection.lead.row,column:0},C):this.insert(C);else if(T)this.selection.rangeList.ranges.forEach(function(W){x.insert({row:W.start.row,column:0},C)});else{var D=C.split(/\r\n|\r|\n/),V=this.selection.rangeList.ranges,F=D.length==2&&(!D[0]||!D[1]);if(D.length!=V.length||F)return this.commands.exec("insertstring",this,C);for(var N=V.length;N--;){var U=V[N];U.isEmpty()||x.remove(U),x.insert(U.start,D[N])}}},E.prototype.execCommand=function(g,C){return this.commands.exec(g,this,C)},E.prototype.insert=function(g,C){var T=this.session,x=T.getMode(),D=this.getCursorPosition();if(this.getBehavioursEnabled()&&!C){var V=x.transformAction(T.getState(D.row),"insertion",this,T,g);V&&(g!==V.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),g=V.text)}if(g==" "&&(g=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&g.indexOf(`
  183. `)==-1){var F=new l.fromPoints(D,D);F.end.column+=g.length,this.session.remove(F)}}else{var F=this.getSelectionRange();D=this.session.remove(F),this.clearSelection()}if(g==`
  184. `||g==`\r
  185. `){var B=T.getLine(D.row);if(D.column>B.search(/\S|$/)){var N=B.substr(D.column).search(/\S|$/);T.doc.removeInLine(D.row,D.column,D.column+N)}}this.clearSelection();var U=D.column,W=T.getState(D.row),B=T.getLine(D.row),z=x.checkOutdent(W,B,g);if(T.insert(D,g),V&&V.selection&&(V.selection.length==2?this.selection.setSelectionRange(new l(D.row,U+V.selection[0],D.row,U+V.selection[1])):this.selection.setSelectionRange(new l(D.row+V.selection[0],V.selection[1],D.row+V.selection[2],V.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine(g)){var G=x.getNextLineIndent(W,B.slice(0,D.column),T.getTabString());T.insert({row:D.row+1,column:0},G)}z&&x.autoOutdent(W,T,D.row)}},E.prototype.autoIndent=function(){var g=this.session,C=g.getMode(),T,x;if(this.selection.isEmpty())T=0,x=g.doc.getLength()-1;else{var D=this.getSelectionRange();T=D.start.row,x=D.end.row}for(var V="",F="",N="",U,W,B,z=g.getTabString(),G=T;G<=x;G++)G>0&&(V=g.getState(G-1),F=g.getLine(G-1),N=C.getNextLineIndent(V,F,z)),U=g.getLine(G),W=C.$getIndent(U),N!==W&&(W.length>0&&(B=new l(G,0,G,W.length),g.remove(B)),N.length>0&&g.insert({row:G,column:0},N)),C.autoOutdent(V,g,G)},E.prototype.onTextInput=function(g,C){if(!C)return this.keyBinding.onTextInput(g);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,g,C);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},E.prototype.applyComposition=function(g,C){if(C.extendLeft||C.extendRight){var T=this.selection.getRange();T.start.column-=C.extendLeft,T.end.column+=C.extendRight,T.start.column<0&&(T.start.row--,T.start.column+=this.session.getLine(T.start.row).length+1),this.selection.setRange(T),!g&&!T.isEmpty()&&this.remove()}if((g||!this.selection.isEmpty())&&this.insert(g,!0),C.restoreStart||C.restoreEnd){var T=this.selection.getRange();T.start.column-=C.restoreStart,T.end.column-=C.restoreEnd,this.selection.setRange(T)}},E.prototype.onCommandKey=function(g,C,T){return this.keyBinding.onCommandKey(g,C,T)},E.prototype.setOverwrite=function(g){this.session.setOverwrite(g)},E.prototype.getOverwrite=function(){return this.session.getOverwrite()},E.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},E.prototype.setScrollSpeed=function(g){this.setOption("scrollSpeed",g)},E.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},E.prototype.setDragDelay=function(g){this.setOption("dragDelay",g)},E.prototype.getDragDelay=function(){return this.getOption("dragDelay")},E.prototype.setSelectionStyle=function(g){this.setOption("selectionStyle",g)},E.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},E.prototype.setHighlightActiveLine=function(g){this.setOption("highlightActiveLine",g)},E.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},E.prototype.setHighlightGutterLine=function(g){this.setOption("highlightGutterLine",g)},E.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},E.prototype.setHighlightSelectedWord=function(g){this.setOption("highlightSelectedWord",g)},E.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},E.prototype.setAnimatedScroll=function(g){this.renderer.setAnimatedScroll(g)},E.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},E.prototype.setShowInvisibles=function(g){this.renderer.setShowInvisibles(g)},E.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},E.prototype.setDisplayIndentGuides=function(g){this.renderer.setDisplayIndentGuides(g)},E.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},E.prototype.setHighlightIndentGuides=function(g){this.renderer.setHighlightIndentGuides(g)},E.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},E.prototype.setShowPrintMargin=function(g){this.renderer.setShowPrintMargin(g)},E.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},E.prototype.setPrintMarginColumn=function(g){this.renderer.setPrintMarginColumn(g)},E.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},E.prototype.setReadOnly=function(g){this.setOption("readOnly",g)},E.prototype.getReadOnly=function(){return this.getOption("readOnly")},E.prototype.setBehavioursEnabled=function(g){this.setOption("behavioursEnabled",g)},E.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},E.prototype.setWrapBehavioursEnabled=function(g){this.setOption("wrapBehavioursEnabled",g)},E.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},E.prototype.setShowFoldWidgets=function(g){this.setOption("showFoldWidgets",g)},E.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},E.prototype.setFadeFoldWidgets=function(g){this.setOption("fadeFoldWidgets",g)},E.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},E.prototype.remove=function(g){this.selection.isEmpty()&&(g=="left"?this.selection.selectLeft():this.selection.selectRight());var C=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,x=T.getState(C.start.row),D=T.getMode().transformAction(x,"deletion",this,T,C);if(C.end.column===0){var V=T.getTextRange(C);if(V[V.length-1]==`
  186. `){var F=T.getLine(C.end.row);/^\s+$/.test(F)&&(C.end.column=F.length)}}D&&(C=D)}this.session.remove(C),this.clearSelection()},E.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},E.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},E.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},E.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var g=this.getSelectionRange();g.start.column==g.end.column&&g.start.row==g.end.row&&(g.end.column=0,g.end.row++),this.session.remove(g),this.clearSelection()},E.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var g=this.getCursorPosition();this.insert(`
  187. `),this.moveCursorToPosition(g)},E.prototype.setGhostText=function(g,C){this.session.widgetManager||(this.session.widgetManager=new f(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(g,C)},E.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},E.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var g=this.getCursorPosition(),C=g.column;if(C!==0){var T=this.session.getLine(g.row),x,D;C<T.length?(x=T.charAt(C)+T.charAt(C-1),D=new l(g.row,C-1,g.row,C+1)):(x=T.charAt(C-1)+T.charAt(C-2),D=new l(g.row,C-2,g.row,C)),this.session.replace(D,x),this.session.selection.moveToPosition(D.end)}}},E.prototype.toLowerCase=function(){var g=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var C=this.getSelectionRange(),T=this.session.getTextRange(C);this.session.replace(C,T.toLowerCase()),this.selection.setSelectionRange(g)},E.prototype.toUpperCase=function(){var g=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var C=this.getSelectionRange(),T=this.session.getTextRange(C);this.session.replace(C,T.toUpperCase()),this.selection.setSelectionRange(g)},E.prototype.indent=function(){var g=this.session,C=this.getSelectionRange();if(C.start.row<C.end.row){var T=this.$getSelectedRows();g.indentRows(T.first,T.last," ");return}else if(C.start.column<C.end.column){var x=g.getTextRange(C);if(!/^\s+$/.test(x)){var T=this.$getSelectedRows();g.indentRows(T.first,T.last," ");return}}var D=g.getLine(C.start.row),V=C.start,F=g.getTabSize(),N=g.documentToScreenColumn(V.row,V.column);if(this.session.getUseSoftTabs())var U=F-N%F,W=a.stringRepeat(" ",U);else{for(var U=N%F;D[C.start.column-1]==" "&&U;)C.start.column--,U--;this.selection.setSelectionRange(C),W=" "}return this.insert(W)},E.prototype.blockIndent=function(){var g=this.$getSelectedRows();this.session.indentRows(g.first,g.last," ")},E.prototype.blockOutdent=function(){var g=this.session.getSelection();this.session.outdentRows(g.getRange())},E.prototype.sortLines=function(){for(var g=this.$getSelectedRows(),C=this.session,T=[],x=g.first;x<=g.last;x++)T.push(C.getLine(x));T.sort(function(F,N){return F.toLowerCase()<N.toLowerCase()?-1:F.toLowerCase()>N.toLowerCase()?1:0});for(var D=new l(0,0,0,0),x=g.first;x<=g.last;x++){var V=C.getLine(x);D.start.row=x,D.end.row=x,D.end.column=V.length,C.replace(D,T[x-g.first])}},E.prototype.toggleCommentLines=function(){var g=this.session.getState(this.getCursorPosition().row),C=this.$getSelectedRows();this.session.getMode().toggleCommentLines(g,this.session,C.first,C.last)},E.prototype.toggleBlockComment=function(){var g=this.getCursorPosition(),C=this.session.getState(g.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(C,this.session,T,g)},E.prototype.getNumberAt=function(g,C){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var x=this.session.getLine(g);T.lastIndex<C;){var D=T.exec(x);if(D.index<=C&&D.index+D[0].length>=C){var V={value:D[0],start:D.index,end:D.index+D[0].length};return V}}return null},E.prototype.modifyNumber=function(g){var C=this.selection.getCursor().row,T=this.selection.getCursor().column,x=new l(C,T-1,C,T),D=this.session.getTextRange(x);if(!isNaN(parseFloat(D))&&isFinite(D)){var V=this.getNumberAt(C,T);if(V){var F=V.value.indexOf(".")>=0?V.start+V.value.indexOf(".")+1:V.end,N=V.start+V.value.length-F,U=parseFloat(V.value);U*=Math.pow(10,N),F!==V.end&&T<F?g*=Math.pow(10,V.end-T-1):g*=Math.pow(10,V.end-T),U+=g,U/=Math.pow(10,N);var W=U.toFixed(N),B=new l(C,V.start,C,V.end);this.session.replace(B,W),this.moveCursorTo(C,Math.max(V.start+1,T+W.length-V.value.length))}}else this.toggleWord()},E.prototype.toggleWord=function(){var g=this.selection.getCursor().row,C=this.selection.getCursor().column;this.selection.selectWord();var T=this.getSelectedText(),x=this.selection.getWordRange().start.column,D=T.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),V=C-x-1;V<0&&(V=0);var F=0,N=0,U=this;T.match(/[A-Za-z0-9_]+/)&&D.forEach(function(ne,ae){N=F+ne.length,V>=F&&V<=N&&(T=ne,U.selection.clearSelection(),U.moveCursorTo(g,F+x),U.selection.selectTo(g,N+x)),F=N});for(var W=this.$toggleWordPairs,B,z=0;z<W.length;z++)for(var G=W[z],X=0;X<=1;X++){var Y=+!X,Q=T.match(new RegExp("^\\s?_?("+a.escapeRegExp(G[X])+")\\s?$","i"));if(Q){var q=T.match(new RegExp("([_]|^|\\s)("+a.escapeRegExp(Q[1])+")($|\\s)","g"));q&&(B=T.replace(new RegExp(a.escapeRegExp(G[X]),"i"),function(ne){var ae=G[Y];return ne.toUpperCase()==ne?ae=ae.toUpperCase():ne.charAt(0).toUpperCase()==ne.charAt(0)&&(ae=ae.substr(0,0)+G[Y].charAt(0).toUpperCase()+ae.substr(1)),ae}),this.insert(B),B="")}}},E.prototype.findLinkAt=function(g,C){var T,x,D=this.session.getLine(g),V=D.split(/((?:https?|ftp):\/\/[\S]+)/),F=C;F<0&&(F=0);var N=0,U=0,W;try{for(var B=d(V),z=B.next();!z.done;z=B.next()){var G=z.value;if(U=N+G.length,F>=N&&F<=U&&G.match(/((?:https?|ftp):\/\/[\S]+)/)){W=G.replace(/[\s:.,'";}\]]+$/,"");break}N=U}}catch(X){T={error:X}}finally{try{z&&!z.done&&(x=B.return)&&x.call(B)}finally{if(T)throw T.error}}return W},E.prototype.openLink=function(){var g=this.selection.getCursor(),C=this.findLinkAt(g.row,g.column);return C&&window.open(C,"_blank"),C!=null},E.prototype.removeLines=function(){var g=this.$getSelectedRows();this.session.removeFullLines(g.first,g.last),this.clearSelection()},E.prototype.duplicateSelection=function(){var g=this.selection,C=this.session,T=g.getRange(),x=g.isBackwards();if(T.isEmpty()){var D=T.start.row;C.duplicateLines(D,D)}else{var V=x?T.start:T.end,F=C.insert(V,C.getTextRange(T),!1);T.start=V,T.end=F,g.setSelectionRange(T,x)}},E.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},E.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},E.prototype.moveText=function(g,C,T){return this.session.moveText(g,C,T)},E.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},E.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},E.prototype.$moveLines=function(g,C){var T,x,D=this.selection;if(!D.inMultiSelectMode||this.inVirtualSelectionMode){var V=D.toOrientedRange();T=this.$getSelectedRows(V),x=this.session.$moveLines(T.first,T.last,C?0:g),C&&g==-1&&(x=0),V.moveBy(x,0),D.fromOrientedRange(V)}else{var F=D.rangeList.ranges;D.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var N=0,U=0,W=F.length,B=0;B<W;B++){var z=B;F[B].moveBy(N,0),T=this.$getSelectedRows(F[B]);for(var G=T.first,X=T.last;++B<W;){U&&F[B].moveBy(U,0);var Y=this.$getSelectedRows(F[B]);if(C&&Y.first!=X)break;if(!C&&Y.first>X+1)break;X=Y.last}for(B--,N=this.session.$moveLines(G,X,C?0:g),C&&g==-1&&(z=B+1);z<=B;)F[z].moveBy(N,0),z++;C||(N=0),U+=N}D.fromOrientedRange(D.ranges[0]),D.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},E.prototype.$getSelectedRows=function(g){return g=(g||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(g.start.row),last:this.session.getRowFoldEnd(g.end.row)}},E.prototype.onCompositionStart=function(g){this.renderer.showComposition(g)},E.prototype.onCompositionUpdate=function(g){this.renderer.setCompositionText(g)},E.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},E.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},E.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},E.prototype.isRowVisible=function(g){return g>=this.getFirstVisibleRow()&&g<=this.getLastVisibleRow()},E.prototype.isRowFullyVisible=function(g){return g>=this.renderer.getFirstFullyVisibleRow()&&g<=this.renderer.getLastFullyVisibleRow()},E.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},E.prototype.$moveByPage=function(g,C){var T=this.renderer,x=this.renderer.layerConfig,D=g*Math.floor(x.height/x.lineHeight);C===!0?this.selection.$moveSelection(function(){this.moveCursorBy(D,0)}):C===!1&&(this.selection.moveCursorBy(D,0),this.selection.clearSelection());var V=T.scrollTop;T.scrollBy(0,D*x.lineHeight),C!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(V)},E.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},E.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},E.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},E.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},E.prototype.scrollPageDown=function(){this.$moveByPage(1)},E.prototype.scrollPageUp=function(){this.$moveByPage(-1)},E.prototype.scrollToRow=function(g){this.renderer.scrollToRow(g)},E.prototype.scrollToLine=function(g,C,T,x){this.renderer.scrollToLine(g,C,T,x)},E.prototype.centerSelection=function(){var g=this.getSelectionRange(),C={row:Math.floor(g.start.row+(g.end.row-g.start.row)/2),column:Math.floor(g.start.column+(g.end.column-g.start.column)/2)};this.renderer.alignCursor(C,.5)},E.prototype.getCursorPosition=function(){return this.selection.getCursor()},E.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},E.prototype.getSelectionRange=function(){return this.selection.getRange()},E.prototype.selectAll=function(){this.selection.selectAll()},E.prototype.clearSelection=function(){this.selection.clearSelection()},E.prototype.moveCursorTo=function(g,C){this.selection.moveCursorTo(g,C)},E.prototype.moveCursorToPosition=function(g){this.selection.moveCursorToPosition(g)},E.prototype.jumpToMatching=function(g,C){var T=this.getCursorPosition(),x=new v(this.session,T.row,T.column),D=x.getCurrentToken(),V=0;D&&D.type.indexOf("tag-name")!==-1&&(D=x.stepBackward());var F=D||x.stepForward();if(F){var N,U=!1,W={},B=T.column-F.start,z,G={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(F.value.match(/[{}()\[\]]/g)){for(;B<F.value.length&&!U;B++)if(G[F.value[B]])switch(z=G[F.value[B]]+"."+F.type.replace("rparen","lparen"),isNaN(W[z])&&(W[z]=0),F.value[B]){case"(":case"[":case"{":W[z]++;break;case")":case"]":case"}":W[z]--,W[z]===-1&&(N="bracket",U=!0);break}}else F.type.indexOf("tag-name")!==-1&&(isNaN(W[F.value])&&(W[F.value]=0),D.value==="<"&&V>1?W[F.value]++:D.value==="</"&&W[F.value]--,W[F.value]===-1&&(N="tag",U=!0));U||(D=F,V++,F=x.stepForward(),B=0)}while(F&&!U);if(N){var X,Y;if(N==="bracket")X=this.session.getBracketRange(T),X||(X=new l(x.getCurrentTokenRow(),x.getCurrentTokenColumn()+B-1,x.getCurrentTokenRow(),x.getCurrentTokenColumn()+B-1),Y=X.start,(C||Y.row===T.row&&Math.abs(Y.column-T.column)<2)&&(X=this.session.getBracketRange(Y)));else if(N==="tag"){if(!F||F.type.indexOf("tag-name")===-1)return;if(X=new l(x.getCurrentTokenRow(),x.getCurrentTokenColumn()-2,x.getCurrentTokenRow(),x.getCurrentTokenColumn()-2),X.compare(T.row,T.column)===0){var Q=this.session.getMatchingTags(T);Q&&(Q.openTag.contains(T.row,T.column)?(X=Q.closeTag,Y=X.start):(X=Q.openTag,Q.closeTag.start.row===T.row&&Q.closeTag.start.column===T.column?Y=X.end:Y=X.start))}Y=Y||X.start}Y=X&&X.cursor||Y,Y&&(g?X&&C?this.selection.setRange(X):X&&X.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Y.row,Y.column):this.selection.moveTo(Y.row,Y.column))}}},E.prototype.gotoLine=function(g,C,T){this.selection.clearSelection(),this.session.unfold({row:g-1,column:C||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(g-1,C||0),this.isRowFullyVisible(g-1)||this.scrollToLine(g-1,!0,T)},E.prototype.navigateTo=function(g,C){this.selection.moveTo(g,C)},E.prototype.navigateUp=function(g){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var C=this.selection.anchor.getPosition();return this.moveCursorToPosition(C)}this.selection.clearSelection(),this.selection.moveCursorBy(-g||-1,0)},E.prototype.navigateDown=function(g){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var C=this.selection.anchor.getPosition();return this.moveCursorToPosition(C)}this.selection.clearSelection(),this.selection.moveCursorBy(g||1,0)},E.prototype.navigateLeft=function(g){if(this.selection.isEmpty())for(g=g||1;g--;)this.selection.moveCursorLeft();else{var C=this.getSelectionRange().start;this.moveCursorToPosition(C)}this.clearSelection()},E.prototype.navigateRight=function(g){if(this.selection.isEmpty())for(g=g||1;g--;)this.selection.moveCursorRight();else{var C=this.getSelectionRange().end;this.moveCursorToPosition(C)}this.clearSelection()},E.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},E.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},E.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},E.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},E.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},E.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},E.prototype.replace=function(g,C){C&&this.$search.set(C);var T=this.$search.find(this.session),x=0;return T&&(this.$tryReplace(T,g)&&(x=1),this.selection.setSelectionRange(T),this.renderer.scrollSelectionIntoView(T.start,T.end)),x},E.prototype.replaceAll=function(g,C){C&&this.$search.set(C);var T=this.$search.findAll(this.session),x=0;if(!T.length)return x;var D=this.getSelectionRange();this.selection.moveTo(0,0);for(var V=T.length-1;V>=0;--V)this.$tryReplace(T[V],g)&&x++;return this.selection.setSelectionRange(D),x},E.prototype.$tryReplace=function(g,C){var T=this.session.getTextRange(g);return C=this.$search.replace(T,C),C!==null?(g.end=this.session.replace(g,C),g):null},E.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},E.prototype.find=function(g,C,T){C||(C={}),typeof g=="string"||g instanceof RegExp?C.needle=g:typeof g=="object"&&_.mixin(C,g);var x=this.selection.getRange();C.needle==null&&(g=this.session.getTextRange(x)||this.$search.$options.needle,g||(x=this.session.getWordRange(x.start.row,x.start.column),g=this.session.getTextRange(x)),this.$search.set({needle:g})),this.$search.set(C),C.start||this.$search.set({start:x});var D=this.$search.find(this.session);if(C.preventScroll)return D;if(D)return this.revealRange(D,T),D;C.backwards?x.start=x.end:x.end=x.start,this.selection.setRange(x)},E.prototype.findNext=function(g,C){this.find({skipCurrent:!0,backwards:!1},g,C)},E.prototype.findPrevious=function(g,C){this.find(g,{skipCurrent:!0,backwards:!0},C)},E.prototype.revealRange=function(g,C){this.session.unfold(g),this.selection.setSelectionRange(g);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(g.start,g.end,.5),C!==!1&&this.renderer.animateScrolling(T)},E.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},E.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},E.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(g){g.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},E.prototype.setAutoScrollEditorIntoView=function(g){if(g){var C,T=this,x=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var D=this.$scrollAnchor;D.style.cssText="position:absolute",this.container.insertBefore(D,this.container.firstChild);var V=this.on("changeSelection",function(){x=!0}),F=this.renderer.on("beforeRender",function(){x&&(C=T.renderer.container.getBoundingClientRect())}),N=this.renderer.on("afterRender",function(){if(x&&C&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var U=T.renderer,W=U.$cursorLayer.$pixelPos,B=U.layerConfig,z=W.top-B.offset;W.top>=0&&z+C.top<0?x=!0:W.top<B.height&&W.top+C.top+B.lineHeight>window.innerHeight?x=!1:x=null,x!=null&&(D.style.top=z+"px",D.style.left=W.left+"px",D.style.height=B.lineHeight+"px",D.scrollIntoView(x)),x=C=null}});this.setAutoScrollEditorIntoView=function(U){U||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",V),this.renderer.off("afterRender",N),this.renderer.off("beforeRender",F))}}},E.prototype.$resetCursorStyle=function(){var g=this.$cursorStyle||"ace",C=this.renderer.$cursorLayer;C&&(C.setSmoothBlinking(/smooth/.test(g)),C.isBlinking=!this.$readOnly&&g!="wide",p.setCssClass(C.element,"ace_slim-cursors",/slim/.test(g)))},E.prototype.prompt=function(g,C,T){var x=this;w.loadModule("ace/ext/prompt",function(D){D.prompt(x,g,C,T)})},E}();m.$uid=0,m.prototype.curOp=null,m.prototype.prevOp={},m.prototype.$mergeableCommands=["backspace","del","insertstring"],m.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],_.implement(m.prototype,h),w.defineOptions(m.prototype,"editor",{selectionStyle:{set:function(E){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:E})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(E){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(E){this.textInput.setReadOnly(E),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(E){this.textInput.setCopyWithEmptySelection(E)},initialValue:!1},cursorStyle:{set:function(E){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(E){this.setAutoScrollEditorIntoView(E)}},keyboardHandler:{set:function(E){this.setKeyboardHandler(E)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(E){this.session.setValue(E)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(E){this.setSession(E)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(E){this.renderer.$gutterLayer.setShowLineNumbers(E),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),E&&this.$relativeLineNumbers?k.attach(this):k.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(E){this.$showLineNumbers&&E?k.attach(this):k.detach(this)}},placeholder:{set:function(E){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var g=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(g&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),p.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!g&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),p.addCssClass(this.container,"ace_hasPlaceholder");var C=p.createElement("div");C.className="ace_placeholder",C.textContent=this.$placeholder||"",this.renderer.placeholderNode=C,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!g&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(E){var g={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(x){x.blur(),x.renderer.scroller.focus()},readOnly:!0},C=function(x){if(x.target==this.renderer.scroller&&x.keyCode===b.enter){x.preventDefault();var D=this.getCursorPosition().row;this.isRowVisible(D)||this.scrollToLine(D,!0,!0),this.focus()}},T;E?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",S("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",S("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",C.bind(this)),this.commands.addCommand(g),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",S("editor")),this.renderer.$gutter.setAttribute("aria-label",S("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),T||(T=new M(this)),T.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",C.bind(this)),this.commands.removeCommand(g),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),T&&T.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var k={getText:function(E,g){return(Math.abs(E.selection.lead.row-g)||g+1+(g<9?"·":""))+""},getWidth:function(E,g,C){return Math.max(g.toString().length,(C.lastRow+1).toString().length,2)*C.characterWidth},update:function(E,g){g.renderer.$loop.schedule(g.renderer.CHANGE_GUTTER)},attach:function(E){E.renderer.$gutterLayer.$renderer=this,E.on("changeSelection",this.update),this.update(null,E)},detach:function(E){E.renderer.$gutterLayer.$renderer==this&&(E.renderer.$gutterLayer.$renderer=null),E.off("changeSelection",this.update),this.update(null,E)}};L.Editor=m}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(y,L,I){var d=function(){function v(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return v.prototype.addSession=function(f){this.$session=f},v.prototype.add=function(f,M,S){if(!this.$fromUndo&&f!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),M===!1||!this.lastDeltas){this.lastDeltas=[];var A=this.$undoStack.length;A>this.$undoDepth-1&&this.$undoStack.splice(0,A-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),f.id=this.$rev=++this.$maxRev}(f.action=="remove"||f.action=="insert")&&(this.$lastDelta=f),this.lastDeltas.push(f)}},v.prototype.addSelection=function(f,M){this.selections.push({value:f,rev:M||this.$rev})},v.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},v.prototype.markIgnored=function(f,M){M==null&&(M=this.$rev+1);for(var S=this.$undoStack,A=S.length;A--;){var b=S[A][0];if(b.id<=f)break;b.id<M&&(b.ignore=!0)}this.lastDeltas=null},v.prototype.getSelection=function(f,M){for(var S=this.selections,A=S.length;A--;){var b=S[A];if(b.rev<f)return M&&(b=S[A+1]),b}},v.prototype.getRevision=function(){return this.$rev},v.prototype.getDeltas=function(f,M){M==null&&(M=this.$rev+1);for(var S=this.$undoStack,A=null,b=0,m=S.length;m--;){var k=S[m][0];if(k.id<M&&!A&&(A=m+1),k.id<=f){b=m+1;break}}return S.slice(b,A)},v.prototype.getChangedRanges=function(f,M){M==null&&(M=this.$rev+1)},v.prototype.getChangedLines=function(f,M){M==null&&(M=this.$rev+1)},v.prototype.undo=function(f,M){this.lastDeltas=null;var S=this.$undoStack;if(_(S,S.length)){f||(f=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var A=S.pop(),b=null;return A&&(b=f.undoChanges(A,M),this.$redoStack.push(A),this.$syncRev()),this.$fromUndo=!1,b}},v.prototype.redo=function(f,M){if(this.lastDeltas=null,f||(f=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var S=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);w(this.$redoStack,S),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(m){m[0].id=++this.$maxRev},this)}var A=this.$redoStack.pop(),b=null;return A&&(b=f.redoChanges(A,M),this.$undoStack.push(A),this.$syncRev()),this.$fromUndo=!1,b},v.prototype.$syncRev=function(){var f=this.$undoStack,M=f[f.length-1],S=M&&M[0].id||0;this.$redoStackBaseRev=S,this.$rev=S},v.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},v.prototype.canUndo=function(){return this.$undoStack.length>0},v.prototype.canRedo=function(){return this.$redoStack.length>0},v.prototype.bookmark=function(f){f==null&&(f=this.$rev),this.mark=f},v.prototype.isAtBookmark=function(){return this.$rev===this.mark},v.prototype.toJSON=function(){},v.prototype.fromJSON=function(){},v.prototype.$prettyPrint=function(f){return f?i(f):i(this.$undoStack)+`
  188. ---
  189. `+i(this.$redoStack)},v}();d.prototype.hasUndo=d.prototype.canUndo,d.prototype.hasRedo=d.prototype.canRedo,d.prototype.isClean=d.prototype.isAtBookmark,d.prototype.markClean=d.prototype.bookmark;function _(v,f){for(var M=f;M--;){var S=v[M];if(S&&!S[0].ignore){for(;M<f-1;){var A=n(v[M],v[M+1]);v[M]=A[0],v[M+1]=A[1],M++}return!0}}}var p=y("./range").Range,a=p.comparePoints;p.comparePoints;function c(v){return{row:v.row,column:v.column}}function t(v){return{start:c(v.start),end:c(v.end),action:v.action,lines:v.lines.slice()}}function i(v){if(v=v||this,Array.isArray(v))return v.map(i).join(`
  190. `);var f="";return v.action?(f=v.action=="insert"?"+":"-",f+="["+v.lines+"]"):v.value&&(Array.isArray(v.value)?f=v.value.map(r).join(`
  191. `):f=r(v.value)),v.start&&(f+=r(v)),(v.id||v.rev)&&(f+=" ("+(v.id||v.rev)+")"),f}function r(v){return v.start.row+":"+v.start.column+"=>"+v.end.row+":"+v.end.column}function e(v,f){var M=v.action=="insert",S=f.action=="insert";if(M&&S)if(a(f.start,v.end)>=0)l(f,v,-1);else if(a(f.start,v.start)<=0)l(v,f,1);else return null;else if(M&&!S)if(a(f.start,v.end)>=0)l(f,v,-1);else if(a(f.end,v.start)<=0)l(v,f,-1);else return null;else if(!M&&S)if(a(f.start,v.start)>=0)l(f,v,1);else if(a(f.start,v.start)<=0)l(v,f,1);else return null;else if(!M&&!S)if(a(f.start,v.start)>=0)l(f,v,1);else if(a(f.end,v.start)<=0)l(v,f,-1);else return null;return[f,v]}function n(v,f){for(var M=v.length;M--;)for(var S=0;S<f.length;S++)if(!e(v[M],f[S])){for(;M<v.length;){for(;S--;)e(f[S],v[M]);S=f.length,M++}return[v,f]}return v.selectionBefore=f.selectionBefore=v.selectionAfter=f.selectionAfter=null,[f,v]}function o(v,f){var M=v.action=="insert",S=f.action=="insert";if(M&&S)a(v.start,f.start)<0?l(f,v,1):l(v,f,1);else if(M&&!S)a(v.start,f.end)>=0?l(v,f,-1):(a(v.start,f.start)<=0||l(v,p.fromPoints(f.start,v.start),-1),l(f,v,1));else if(!M&&S)a(f.start,v.end)>=0?l(f,v,-1):(a(f.start,v.start)<=0||l(f,p.fromPoints(v.start,f.start),-1),l(v,f,1));else if(!M&&!S)if(a(f.start,v.end)>=0)l(f,v,-1);else if(a(f.end,v.start)<=0)l(v,f,-1);else{var A,b;return a(v.start,f.start)<0&&(A=v,v=u(v,f.start)),a(v.end,f.end)>0&&(b=u(v,f.end)),h(f.end,v.start,v.end,-1),b&&!A&&(v.lines=b.lines,v.start=b.start,v.end=b.end,b=v),[f,A,b].filter(Boolean)}return[f,v]}function l(v,f,M){h(v.start,f.start,f.end,M),h(v.end,f.start,f.end,M)}function h(v,f,M,S){v.row==(S==1?f:M).row&&(v.column+=S*(M.column-f.column)),v.row+=S*(M.row-f.row)}function u(v,f){var M=v.lines,S=v.end;v.end=c(f);var A=v.end.row-v.start.row,b=M.splice(A,M.length),m=A?f.column:f.column-v.start.column;M.push(b[0].substring(0,m)),b[0]=b[0].substr(m);var k={start:c(f),end:S,lines:b,action:v.action};return k}function $(v,f){f=t(f);for(var M=v.length;M--;){for(var S=v[M],A=0;A<S.length;A++){var b=S[A],m=o(b,f);f=m[0],m.length!=2&&(m[2]?(S.splice(A+1,1,m[1],m[2]),A++):m[1]||(S.splice(A,1),A--))}S.length||v.splice(M,1)}return v}function w(v,f){for(var M=0;M<f.length;M++)for(var S=f[M],A=0;A<S.length;A++)$(v,S[A])}L.UndoManager=d}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(y,L,I){var d=y("../lib/dom"),_=function(){function p(a,c){this.element=a,this.canvasHeight=c||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return p.prototype.moveContainer=function(a){d.translate(this.element,0,-(a.firstRowScreen*a.lineHeight%this.canvasHeight)-a.offset*this.$offsetCoefficient)},p.prototype.pageChanged=function(a,c){return Math.floor(a.firstRowScreen*a.lineHeight/this.canvasHeight)!==Math.floor(c.firstRowScreen*c.lineHeight/this.canvasHeight)},p.prototype.computeLineTop=function(a,c,t){var i=c.firstRowScreen*c.lineHeight,r=Math.floor(i/this.canvasHeight),e=t.documentToScreenRow(a,0)*c.lineHeight;return e-r*this.canvasHeight},p.prototype.computeLineHeight=function(a,c,t){return c.lineHeight*t.getRowLineCount(a)},p.prototype.getLength=function(){return this.cells.length},p.prototype.get=function(a){return this.cells[a]},p.prototype.shift=function(){this.$cacheCell(this.cells.shift())},p.prototype.pop=function(){this.$cacheCell(this.cells.pop())},p.prototype.push=function(a){if(Array.isArray(a)){this.cells.push.apply(this.cells,a);for(var c=d.createFragment(this.element),t=0;t<a.length;t++)c.appendChild(a[t].element);this.element.appendChild(c)}else this.cells.push(a),this.element.appendChild(a.element)},p.prototype.unshift=function(a){if(Array.isArray(a)){this.cells.unshift.apply(this.cells,a);for(var c=d.createFragment(this.element),t=0;t<a.length;t++)c.appendChild(a[t].element);this.element.firstChild?this.element.insertBefore(c,this.element.firstChild):this.element.appendChild(c)}else this.cells.unshift(a),this.element.insertAdjacentElement("afterbegin",a.element)},p.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},p.prototype.$cacheCell=function(a){a&&(a.element.remove(),this.cellCache.push(a))},p.prototype.createCell=function(a,c,t,i){var r=this.cellCache.pop();if(!r){var e=d.createElement("div");i&&i(e),this.element.appendChild(e),r={element:e,text:"",row:a}}return r.row=a,r},p}();L.Lines=_}),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(y,L,I){var d=y("../lib/dom"),_=y("../lib/oop"),p=y("../lib/lang"),a=y("../lib/event_emitter").EventEmitter,c=y("./lines").Lines,t=y("../config").nls,i=function(){function e(n){this.element=d.createElement("div"),this.element.className="ace_layer ace_gutter-layer",n.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new c(this.element),this.$lines.$offsetCoefficient=1}return e.prototype.setSession=function(n){this.session&&this.session.off("change",this.$updateAnnotations),this.session=n,n&&n.on("change",this.$updateAnnotations)},e.prototype.addGutterDecoration=function(n,o){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(n,o)},e.prototype.removeGutterDecoration=function(n,o){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(n,o)},e.prototype.setAnnotations=function(n){this.$annotations=[];for(var o=0;o<n.length;o++){var l=n[o],h=l.row,u=this.$annotations[h];u||(u=this.$annotations[h]={text:[],type:[]});var $=l.text,w=l.type;$=$?p.escapeHTML($):l.html||"",u.text.indexOf($)===-1&&(u.text.push($),u.type.push(w));var v=l.className;v?u.className=v:w=="error"?u.className=" ace_error":w=="warning"&&u.className!=" ace_error"?u.className=" ace_warning":w=="info"&&!u.className&&(u.className=" ace_info")}},e.prototype.$updateAnnotations=function(n){if(this.$annotations.length){var o=n.start.row,l=n.end.row-o;if(l!==0)if(n.action=="remove")this.$annotations.splice(o,l+1,null);else{var h=new Array(l+1);h.unshift(o,1),this.$annotations.splice.apply(this.$annotations,h)}}},e.prototype.update=function(n){this.config=n;var o=this.session,l=n.firstRow,h=Math.min(n.lastRow+n.gutterOffset,o.getLength()-1);this.oldLastRow=h,this.config=n,this.$lines.moveContainer(n),this.$updateCursorRow();for(var u=o.getNextFoldLine(l),$=u?u.start.row:1/0,w=null,v=-1,f=l;;){if(f>$&&(f=u.end.row+1,u=o.getNextFoldLine(f,u),$=u?u.start.row:1/0),f>h){for(;this.$lines.getLength()>v+1;)this.$lines.pop();break}w=this.$lines.get(++v),w?w.row=f:(w=this.$lines.createCell(f,n,this.session,r),this.$lines.push(w)),this.$renderCell(w,n,u,f),f++}this._signal("afterRender"),this.$updateGutterWidth(n)},e.prototype.$updateGutterWidth=function(n){var o=this.session,l=o.gutterRenderer||this.$renderer,h=o.$firstLineNumber,u=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||o.$useWrapMode)&&(u=o.getLength()+h-1);var $=l?l.getWidth(o,u,n):u.toString().length*n.characterWidth,w=this.$padding||this.$computePadding();$+=w.left+w.right,$!==this.gutterWidth&&!isNaN($)&&(this.gutterWidth=$,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",$))},e.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var n=this.session.selection.getCursor();this.$cursorRow!==n.row&&(this.$cursorRow=n.row)}},e.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var n=this.session.selection.cursor.row;if(this.$cursorRow=n,!(this.$cursorCell&&this.$cursorCell.row==n)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var o=this.$lines.cells;this.$cursorCell=null;for(var l=0;l<o.length;l++){var h=o[l];if(h.row>=this.$cursorRow){if(h.row>this.$cursorRow){var u=this.session.getFoldLine(this.$cursorRow);if(l>0&&u&&u.start.row==o[l-1].row)h=o[l-1];else break}h.element.className="ace_gutter-active-line "+h.element.className,this.$cursorCell=h;break}}}}},e.prototype.scrollLines=function(n){var o=this.config;if(this.config=n,this.$updateCursorRow(),this.$lines.pageChanged(o,n))return this.update(n);this.$lines.moveContainer(n);var l=Math.min(n.lastRow+n.gutterOffset,this.session.getLength()-1),h=this.oldLastRow;if(this.oldLastRow=l,!o||h<n.firstRow)return this.update(n);if(l<o.firstRow)return this.update(n);if(o.firstRow<n.firstRow)for(var u=this.session.getFoldedRowCount(o.firstRow,n.firstRow-1);u>0;u--)this.$lines.shift();if(h>l)for(var u=this.session.getFoldedRowCount(l+1,h);u>0;u--)this.$lines.pop();n.firstRow<o.firstRow&&this.$lines.unshift(this.$renderLines(n,n.firstRow,o.firstRow-1)),l>h&&this.$lines.push(this.$renderLines(n,h+1,l)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(n)},e.prototype.$renderLines=function(n,o,l){for(var h=[],u=o,$=this.session.getNextFoldLine(u),w=$?$.start.row:1/0;u>w&&(u=$.end.row+1,$=this.session.getNextFoldLine(u,$),w=$?$.start.row:1/0),!(u>l);){var v=this.$lines.createCell(u,n,this.session,r);this.$renderCell(v,n,$,u),h.push(v),u++}return h},e.prototype.$renderCell=function(n,o,l,h){var u=n.element,$=this.session,w=u.childNodes[0],v=u.childNodes[1],f=u.childNodes[2],M=f.firstChild,S=$.$firstLineNumber,A=$.$breakpoints,b=$.$decorations,m=$.gutterRenderer||this.$renderer,k=this.$showFoldWidgets&&$.foldWidgets,E=l?l.start.row:Number.MAX_VALUE,g=o.lineHeight+"px",C=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",x=(m?m.getText($,h):h+S).toString();if(this.$highlightGutterLine&&(h==this.$cursorRow||l&&h<this.$cursorRow&&h>=E&&this.$cursorRow<=l.end.row)&&(C+="ace_gutter-active-line ",this.$cursorCell!=n&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=n)),A[h]&&(C+=A[h]),b[h]&&(C+=b[h]),this.$annotations[h]&&h!==E&&(C+=this.$annotations[h].className),k){var D=k[h];D==null&&(D=k[h]=$.getFoldWidget(h))}if(D){var V="ace_fold-widget ace_"+D,F=D=="start"&&h==E&&h<l.end.row;if(F){V+=" ace_closed";for(var N="",U=!1,W=h+1;W<=l.end.row;W++)if(this.$annotations[W]){if(this.$annotations[W].className===" ace_error"){U=!0,N=" ace_error_fold";break}if(this.$annotations[W].className===" ace_warning"){U=!0,N=" ace_warning_fold";continue}}C+=N}else V+=" ace_open";v.className!=V&&(v.className=V),d.setStyle(v.style,"height",g),d.setStyle(v.style,"display","inline-block"),v.setAttribute("role","button"),v.setAttribute("tabindex","-1");var B=$.getFoldWidgetRange(h);B?v.setAttribute("aria-label",t("Toggle code folding, rows $0 through $1",[B.start.row+1,B.end.row+1])):l?v.setAttribute("aria-label",t("Toggle code folding, rows $0 through $1",[l.start.row+1,l.end.row+1])):v.setAttribute("aria-label",t("Toggle code folding, row $0",[h+1])),F?(v.setAttribute("aria-expanded","false"),v.setAttribute("title",t("Unfold code"))):(v.setAttribute("aria-expanded","true"),v.setAttribute("title",t("Fold code")))}else v&&(d.setStyle(v.style,"display","none"),v.setAttribute("tabindex","0"),v.removeAttribute("role"),v.removeAttribute("aria-label"));return U&&this.$showFoldedAnnotations?(f.className="ace_gutter_annotation",M.className=T,M.className+=N,d.setStyle(M.style,"height",g),d.setStyle(f.style,"display","block"),d.setStyle(f.style,"height",g),f.setAttribute("aria-label",t("Read annotations row $0",[x])),f.setAttribute("tabindex","-1"),f.setAttribute("role","button")):this.$annotations[h]?(f.className="ace_gutter_annotation",M.className=T,this.$useSvgGutterIcons?M.className+=this.$annotations[h].className:u.classList.add(this.$annotations[h].className.replace(" ","")),d.setStyle(M.style,"height",g),d.setStyle(f.style,"display","block"),d.setStyle(f.style,"height",g),f.setAttribute("aria-label",t("Read annotations row $0",[x])),f.setAttribute("tabindex","-1"),f.setAttribute("role","button")):(d.setStyle(f.style,"display","none"),f.removeAttribute("aria-label"),f.removeAttribute("role"),f.setAttribute("tabindex","0")),x!==w.data&&(w.data=x),u.className!=C&&(u.className=C),d.setStyle(n.element.style,"height",this.$lines.computeLineHeight(h,o,$)+"px"),d.setStyle(n.element.style,"top",this.$lines.computeLineTop(h,o,$)+"px"),n.text=x,f.style.display==="none"&&v.style.display==="none"?n.element.setAttribute("aria-hidden",!0):n.element.setAttribute("aria-hidden",!1),n},e.prototype.setHighlightGutterLine=function(n){this.$highlightGutterLine=n},e.prototype.setShowLineNumbers=function(n){this.$renderer=!n&&{getWidth:function(){return 0},getText:function(){return""}}},e.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},e.prototype.setShowFoldWidgets=function(n){n?d.addCssClass(this.element,"ace_folding-enabled"):d.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=n,this.$padding=null},e.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},e.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var n=d.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(n.borderLeftWidth)||0)+(parseInt(n.paddingLeft)||0)+1,this.$padding.right=(parseInt(n.borderRightWidth)||0)+(parseInt(n.paddingRight)||0),this.$padding},e.prototype.getRegion=function(n){var o=this.$padding||this.$computePadding(),l=this.element.getBoundingClientRect();if(n.x<o.left+l.left)return"markers";if(this.$showFoldWidgets&&n.x>l.right-o.right)return"foldWidgets"},e}();i.prototype.$fixedWidth=!1,i.prototype.$highlightGutterLine=!0,i.prototype.$renderer="",i.prototype.$showLineNumbers=!0,i.prototype.$showFoldWidgets=!0,_.implement(i.prototype,a);function r(e){var n=document.createTextNode("");e.appendChild(n);var o=d.createElement("span");e.appendChild(o);var l=d.createElement("span");e.appendChild(l);var h=d.createElement("span");return l.appendChild(h),e}L.Gutter=i}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(y,L,I){var d=y("../range").Range,_=y("../lib/dom"),p=function(){function c(t){this.element=_.createElement("div"),this.element.className="ace_layer ace_marker-layer",t.appendChild(this.element)}return c.prototype.setPadding=function(t){this.$padding=t},c.prototype.setSession=function(t){this.session=t},c.prototype.setMarkers=function(t){this.markers=t},c.prototype.elt=function(t,i){var r=this.i!=-1&&this.element.childNodes[this.i];r?this.i++:(r=document.createElement("div"),this.element.appendChild(r),this.i=-1),r.style.cssText=i,r.className=t},c.prototype.update=function(t){if(t){this.config=t,this.i=0;var i;for(var r in this.markers){var e=this.markers[r];if(!e.range){e.update(i,this,this.session,t);continue}var n=e.range.clipRows(t.firstRow,t.lastRow);if(!n.isEmpty())if(n=n.toScreenRange(this.session),e.renderer){var o=this.$getTop(n.start.row,t),l=this.$padding+n.start.column*t.characterWidth;e.renderer(i,n,l,o,t)}else e.type=="fullLine"?this.drawFullLineMarker(i,n,e.clazz,t):e.type=="screenLine"?this.drawScreenLineMarker(i,n,e.clazz,t):n.isMultiLine()?e.type=="text"?this.drawTextMarker(i,n,e.clazz,t):this.drawMultiLineMarker(i,n,e.clazz,t):this.drawSingleLineMarker(i,n,e.clazz+" ace_start ace_br15",t)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},c.prototype.$getTop=function(t,i){return(t-i.firstRowScreen)*i.lineHeight},c.prototype.drawTextMarker=function(t,i,r,e,n){for(var o=this.session,l=i.start.row,h=i.end.row,u=l,$=0,w=0,v=o.getScreenLastRowColumn(u),f=new d(u,i.start.column,u,w);u<=h;u++)f.start.row=f.end.row=u,f.start.column=u==l?i.start.column:o.getRowWrapIndent(u),f.end.column=v,$=w,w=v,v=u+1<h?o.getScreenLastRowColumn(u+1):u==h?0:i.end.column,this.drawSingleLineMarker(t,f,r+(u==l?" ace_start":"")+" ace_br"+a(u==l||u==l+1&&i.start.column,$<w,w>v,u==h),e,u==h?0:1,n)},c.prototype.drawMultiLineMarker=function(t,i,r,e,n){var o=this.$padding,l=e.lineHeight,h=this.$getTop(i.start.row,e),u=o+i.start.column*e.characterWidth;if(n=n||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var $=i.clone();$.end.row=$.start.row,$.end.column=this.session.getLine($.start.row).length,this.drawBidiSingleLineMarker(t,$,r+" ace_br1 ace_start",e,null,n)}else this.elt(r+" ace_br1 ace_start","height:"+l+"px;right:0;top:"+h+"px;left:"+u+"px;"+(n||""));if(this.session.$bidiHandler.isBidiRow(i.end.row)){var $=i.clone();$.start.row=$.end.row,$.start.column=0,this.drawBidiSingleLineMarker(t,$,r+" ace_br12",e,null,n)}else{h=this.$getTop(i.end.row,e);var w=i.end.column*e.characterWidth;this.elt(r+" ace_br12","height:"+l+"px;width:"+w+"px;top:"+h+"px;left:"+o+"px;"+(n||""))}if(l=(i.end.row-i.start.row-1)*e.lineHeight,!(l<=0)){h=this.$getTop(i.start.row+1,e);var v=(i.start.column?1:0)|(i.end.column?0:8);this.elt(r+(v?" ace_br"+v:""),"height:"+l+"px;right:0;top:"+h+"px;left:"+o+"px;"+(n||""))}},c.prototype.drawSingleLineMarker=function(t,i,r,e,n,o){if(this.session.$bidiHandler.isBidiRow(i.start.row))return this.drawBidiSingleLineMarker(t,i,r,e,n,o);var l=e.lineHeight,h=(i.end.column+(n||0)-i.start.column)*e.characterWidth,u=this.$getTop(i.start.row,e),$=this.$padding+i.start.column*e.characterWidth;this.elt(r,"height:"+l+"px;width:"+h+"px;top:"+u+"px;left:"+$+"px;"+(o||""))},c.prototype.drawBidiSingleLineMarker=function(t,i,r,e,n,o){var l=e.lineHeight,h=this.$getTop(i.start.row,e),u=this.$padding,$=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);$.forEach(function(w){this.elt(r,"height:"+l+"px;width:"+(w.width+(n||0))+"px;top:"+h+"px;left:"+(u+w.left)+"px;"+(o||""))},this)},c.prototype.drawFullLineMarker=function(t,i,r,e,n){var o=this.$getTop(i.start.row,e),l=e.lineHeight;i.start.row!=i.end.row&&(l+=this.$getTop(i.end.row,e)-o),this.elt(r,"height:"+l+"px;top:"+o+"px;left:0;right:0;"+(n||""))},c.prototype.drawScreenLineMarker=function(t,i,r,e,n){var o=this.$getTop(i.start.row,e),l=e.lineHeight;this.elt(r,"height:"+l+"px;top:"+o+"px;left:0;right:0;"+(n||""))},c}();p.prototype.$padding=0;function a(c,t,i,r){return(c?1:0)|(t?2:0)|(i?4:0)|(r?8:0)}L.Marker=p}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config"],function(y,L,I){var d=y("../lib/oop"),_=y("../lib/dom"),p=y("../lib/lang"),a=y("./lines").Lines,c=y("../lib/event_emitter").EventEmitter,t=y("../config").nls,i=function(){function r(e){this.dom=_,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)}return r.prototype.$updateEolChar=function(){var e=this.session.doc,n=e.getNewLineCharacter()==`
  192. `&&e.getNewLineMode()!="windows",o=n?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(n){this._signal("changeCharacterSize",n)}.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 n=this.$tabStrings=[0],o=1;o<e+1;o++)if(this.showTabs){var l=this.dom.createElement("span");l.className="ace_invisible ace_invisible_tab",l.textContent=p.stringRepeat(this.TAB_CHAR,o),n.push(l)}else n.push(this.dom.createTextNode(p.stringRepeat(" ",o),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var h="ace_indent-guide",u=this.showSpaces?" ace_invisible ace_invisible_space":"",$=this.showSpaces?p.stringRepeat(this.SPACE_CHAR,this.tabSize):p.stringRepeat(" ",this.tabSize),w=this.showTabs?" ace_invisible ace_invisible_tab":"",v=this.showTabs?p.stringRepeat(this.TAB_CHAR,this.tabSize):$,l=this.dom.createElement("span");l.className=h+u,l.textContent=$,this.$tabStrings[" "]=l;var l=this.dom.createElement("span");l.className=h+w,l.textContent=v,this.$tabStrings[" "]=l}},r.prototype.updateLines=function(e,n,o){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var l=Math.max(n,e.firstRow),h=Math.min(o,e.lastRow),u=this.element.childNodes,$=0,v=e.firstRow;v<l;v++){var f=this.session.getFoldLine(v);if(f)if(f.containsRow(l)){l=f.start.row;break}else v=f.end.row;$++}for(var w=!1,v=l,f=this.session.getNextFoldLine(v),M=f?f.start.row:1/0;v>M&&(v=f.end.row+1,f=this.session.getNextFoldLine(v,f),M=f?f.start.row:1/0),!(v>h);){var S=u[$++];if(S){this.dom.removeChildren(S),this.$renderLine(S,v,v==M?f:!1),w&&(S.style.top=this.$lines.computeLineTop(v,e,this.session)+"px");var A=e.lineHeight*this.session.getRowLength(v)+"px";S.style.height!=A&&(w=!0,S.style.height=A)}v++}if(w)for(;$<this.$lines.cells.length;){var b=this.$lines.cells[$++];b.element.style.top=this.$lines.computeLineTop(b.row,e,this.session)+"px"}},r.prototype.scrollLines=function(e){var n=this.config;if(this.config=e,this.$lines.pageChanged(n,e))return this.update(e);this.$lines.moveContainer(e);var o=e.lastRow,l=n?n.lastRow:-1;if(!n||l<e.firstRow)return this.update(e);if(o<n.firstRow)return this.update(e);if(!n||n.lastRow<e.firstRow)return this.update(e);if(e.lastRow<n.firstRow)return this.update(e);if(n.firstRow<e.firstRow)for(var h=this.session.getFoldedRowCount(n.firstRow,e.firstRow-1);h>0;h--)this.$lines.shift();if(n.lastRow>e.lastRow)for(var h=this.session.getFoldedRowCount(e.lastRow+1,n.lastRow);h>0;h--)this.$lines.pop();e.firstRow<n.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,n.firstRow-1)),e.lastRow>n.lastRow&&this.$lines.push(this.$renderLinesFragment(e,n.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},r.prototype.$renderLinesFragment=function(e,n,o){for(var l=[],h=n,u=this.session.getNextFoldLine(h),$=u?u.start.row:1/0;h>$&&(h=u.end.row+1,u=this.session.getNextFoldLine(h,u),$=u?u.start.row:1/0),!(h>o);){var w=this.$lines.createCell(h,e,this.session),v=w.element;this.dom.removeChildren(v),_.setStyle(v.style,"height",this.$lines.computeLineHeight(h,e,this.session)+"px"),_.setStyle(v.style,"top",this.$lines.computeLineTop(h,e,this.session)+"px"),this.$renderLine(v,h,h==$?u:!1),this.$useLineGroups()?v.className="ace_line_group":v.className="ace_line",l.push(w),h++}return l},r.prototype.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var n=e.firstRow,o=e.lastRow,l=this.$lines;l.getLength();)l.pop();l.push(this.$renderLinesFragment(e,n,o))},r.prototype.$renderToken=function(e,n,o,l){for(var h=this,u=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,$=this.dom.createFragment(this.element),w,v=0;w=u.exec(l);){var f=w[1],M=w[2],S=w[3],A=w[4],b=w[5];if(!(!h.showSpaces&&M)){var m=v!=w.index?l.slice(v,w.index):"";if(v=w.index+w[0].length,m&&$.appendChild(this.dom.createTextNode(m,this.element)),f){var k=h.session.getScreenTabSize(n+w.index);$.appendChild(h.$tabStrings[k].cloneNode(!0)),n+=k-1}else if(M)if(h.showSpaces){var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_space",E.textContent=p.stringRepeat(h.SPACE_CHAR,M.length),$.appendChild(E)}else $.appendChild(this.com.createTextNode(M,this.element));else if(S){var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_space ace_invalid",E.textContent=p.stringRepeat(h.SPACE_CHAR,S.length),$.appendChild(E)}else if(A){n+=1;var E=this.dom.createElement("span");E.style.width=h.config.characterWidth*2+"px",E.className=h.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",E.textContent=h.showSpaces?h.SPACE_CHAR:A,$.appendChild(E)}else if(b){n+=1;var E=this.dom.createElement("span");E.style.width=h.config.characterWidth*2+"px",E.className="ace_cjk",E.textContent=b,$.appendChild(E)}}}if($.appendChild(this.dom.createTextNode(v?l.slice(v):l,this.element)),this.$textToken[o.type])e.appendChild($);else{var g="ace_"+o.type.replace(/\./g," ace_"),E=this.dom.createElement("span");o.type=="fold"&&(E.style.width=o.value.length*this.config.characterWidth+"px",E.setAttribute("title",t("Unfold code"))),E.className=g,E.appendChild($),e.appendChild(E)}return n+l.length},r.prototype.renderIndentGuide=function(e,n,o){var l=n.search(this.$indentGuideRe);if(l<=0||l>=o)return n;if(n[0]==" "){l-=l%this.tabSize;for(var h=l/this.tabSize,u=0;u<h;u++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),n.substr(l)}else if(n[0]==" "){for(var u=0;u<l;u++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),n.substr(l)}return this.$highlightIndentGuide(),n},r.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var n=this.session.selection.getCursor(),o=/^\s*/.exec(this.session.doc.getLine(n.row))[0].length,l=Math.floor(o/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:l,start:n.row};var h=this.session.$bracketHighlight;if(h){for(var u=this.session.$bracketHighlight.ranges,$=0;$<u.length;$++)if(n.row!==u[$].start.row){this.$highlightIndentGuideMarker.end=u[$].start.row,n.row>u[$].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&e[n.row]!==""&&n.column===e[n.row].length){this.$highlightIndentGuideMarker.dir=1;for(var $=n.row+1;$<e.length;$++){var w=e[$],v=/^\s*/.exec(w)[0].length;if(w!==""&&(this.$highlightIndentGuideMarker.end=$,v<=o))break}}this.$renderHighlightIndentGuide()}}},r.prototype.$clearActiveIndentGuide=function(){for(var e=this.$lines.cells,n=0;n<e.length;n++){var o=e[n],l=o.element.childNodes;if(l.length>0){for(var h=0;h<l.length;h++)if(l[h].classList&&l[h].classList.contains("ace_indent-guide-active")){l[h].classList.remove("ace_indent-guide-active");break}}}},r.prototype.$setIndentGuideActive=function(e,n){var o=this.session.doc.getLine(e.row);if(o!==""){var l=e.element.childNodes;if(l){var h=l[n-1];h&&h.classList&&h.classList.contains("ace_indent-guide")&&h.classList.add("ace_indent-guide-active")}}},r.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells;this.$clearActiveIndentGuide();var n=this.$highlightIndentGuideMarker.indentLevel;if(n!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var o=0;o<e.length;o++){var l=e[o];if(this.$highlightIndentGuideMarker.end&&l.row>=this.$highlightIndentGuideMarker.start+1){if(l.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(l,n)}}else for(var o=e.length-1;o>=0;o--){var l=e[o];if(this.$highlightIndentGuideMarker.end&&l.row<this.$highlightIndentGuideMarker.start){if(l.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(l,n)}}}},r.prototype.$createLineElement=function(e){var n=this.dom.createElement("div");return n.className="ace_line",n.style.height=this.config.lineHeight+"px",n},r.prototype.$renderWrappedLine=function(e,n,o){var l=0,h=0,u=o[0],$=0,w=this.$createLineElement();e.appendChild(w);for(var v=0;v<n.length;v++){var f=n[v],M=f.value;if(v==0&&this.displayIndentGuides){if(l=M.length,M=this.renderIndentGuide(w,M,u),!M)continue;l-=M.length}if(l+M.length<u)$=this.$renderToken(w,$,f,M),l+=M.length;else{for(;l+M.length>=u;)$=this.$renderToken(w,$,f,M.substring(0,u-l)),M=M.substring(u-l),l=u,w=this.$createLineElement(),e.appendChild(w),w.appendChild(this.dom.createTextNode(p.stringRepeat(" ",o.indent),this.element)),h++,$=0,u=o[h]||Number.MAX_VALUE;M.length!=0&&(l+=M.length,$=this.$renderToken(w,$,f,M))}}o[o.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(w,$,null,"",!0)},r.prototype.$renderSimpleLine=function(e,n){for(var o=0,l=0;l<n.length;l++){var h=n[l],u=h.value;if(!(l==0&&this.displayIndentGuides&&(u=this.renderIndentGuide(e,u),!u))){if(o+u.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,o,h,u);o=this.$renderToken(e,o,h,u)}}},r.prototype.$renderOverflowMessage=function(e,n,o,l,h){o&&this.$renderToken(e,n,o,l.slice(0,this.MAX_LINE_LENGTH-n));var u=this.dom.createElement("span");u.className="ace_inline_button ace_keyword ace_toggle_wrap",u.textContent=h?"<hide>":"<click to see more...>",e.appendChild(u)},r.prototype.$renderLine=function(e,n,o){if(!o&&o!=!1&&(o=this.session.getFoldLine(n)),o)var l=this.$getFoldLineTokens(n,o);else var l=this.session.getTokens(n);var h=e;if(l.length){var u=this.session.getRowSplitData(n);if(u&&u.length){this.$renderWrappedLine(e,l,u);var h=e.lastChild}else{var h=e;this.$useLineGroups()&&(h=this.$createLineElement(),e.appendChild(h)),this.$renderSimpleLine(h,l)}}else this.$useLineGroups()&&(h=this.$createLineElement(),e.appendChild(h));if(this.showEOL&&h){o&&(n=o.end.row);var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_eol",$.textContent=n==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,h.appendChild($)}},r.prototype.$getFoldLineTokens=function(e,n){var o=this.session,l=[];function h($,w,v){for(var f=0,M=0;M+$[f].value.length<w;)if(M+=$[f].value.length,f++,f==$.length)return;if(M!=w){var S=$[f].value.substring(w-M);S.length>v-w&&(S=S.substring(0,v-w)),l.push({type:$[f].type,value:S}),M=w+S.length,f+=1}for(;M<v&&f<$.length;){var S=$[f].value;S.length+M>v?l.push({type:$[f].type,value:S.substring(0,v-M)}):l.push($[f]),M+=S.length,f+=1}}var u=o.getTokens(e);return n.walk(function($,w,v,f,M){$!=null?l.push({type:"fold",value:$}):(M&&(u=o.getTokens(w)),u.length&&h(u,f,v))},n.end.row,this.session.getLine(n.end.row).length),l},r.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},r}();i.prototype.$textToken={text:!0,rparen:!0,lparen:!0},i.prototype.EOF_CHAR="¶",i.prototype.EOL_CHAR_LF="¬",i.prototype.EOL_CHAR_CRLF="¤",i.prototype.EOL_CHAR=i.prototype.EOL_CHAR_LF,i.prototype.TAB_CHAR="—",i.prototype.SPACE_CHAR="·",i.prototype.$padding=0,i.prototype.MAX_LINE_LENGTH=1e4,i.prototype.showInvisibles=!1,i.prototype.showSpaces=!1,i.prototype.showTabs=!1,i.prototype.showEOL=!1,i.prototype.displayIndentGuides=!0,i.prototype.$highlightIndentGuides=!0,i.prototype.$tabStrings=[],i.prototype.destroy={},i.prototype.onChangeTabSize=i.prototype.$computeTabString,d.implement(i.prototype,c),L.Text=i}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(y,L,I){var d=y("../lib/dom"),_=function(){function p(a){this.element=d.createElement("div"),this.element.className="ace_layer ace_cursor-layer",a.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),d.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return p.prototype.$updateOpacity=function(a){for(var c=this.cursors,t=c.length;t--;)d.setStyle(c[t].style,"opacity",a?"":"0")},p.prototype.$startCssAnimation=function(){for(var a=this.cursors,c=a.length;c--;)a[c].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&d.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},p.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,d.removeCssClass(this.element,"ace_animate-blinking")},p.prototype.setPadding=function(a){this.$padding=a},p.prototype.setSession=function(a){this.session=a},p.prototype.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},p.prototype.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},p.prototype.setSmoothBlinking=function(a){a!=this.smoothBlinking&&(this.smoothBlinking=a,d.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.restartTimer())},p.prototype.addCursor=function(){var a=d.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},p.prototype.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},p.prototype.hideCursor=function(){this.isVisible=!1,d.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},p.prototype.showCursor=function(){this.isVisible=!0,d.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},p.prototype.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,d.removeCssClass(this.element,"ace_smooth-blinking")),a(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&d.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),d.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var c=function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){a(!0),c()},this.blinkInterval),c()}},p.prototype.getPixelPosition=function(a,c){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var t=this.session.documentToScreenPosition(a),i=this.$padding+(this.session.$bidiHandler.isBidiRow(t.row,a.row)?this.session.$bidiHandler.getPosLeft(t.column):t.column*this.config.characterWidth),r=(t.row-(c?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:r}},p.prototype.isCursorInView=function(a,c){return a.top>=0&&a.top<c.maxHeight},p.prototype.update=function(a){this.config=a;var c=this.session.$selectionMarkers,t=0,i=0;(c===void 0||c.length===0)&&(c=[{cursor:null}]);for(var t=0,r=c.length;t<r;t++){var e=this.getPixelPosition(c[t].cursor,!0);if(!((e.top>a.height+a.offset||e.top<0)&&t>1)){var n=this.cursors[i++]||this.addCursor(),o=n.style;this.drawCursor?this.drawCursor(n,e,a,c[t],this.session):this.isCursorInView(e,a)?(d.setStyle(o,"display","block"),d.translate(n,e.left,e.top),d.setStyle(o,"width",Math.round(a.characterWidth)+"px"),d.setStyle(o,"height",a.lineHeight+"px")):d.setStyle(o,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=e,this.restartTimer()},p.prototype.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?d.addCssClass(this.element,"ace_overwrite-cursors"):d.removeCssClass(this.element,"ace_overwrite-cursors"))},p.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},p}();_.prototype.$padding=0,_.prototype.drawCursor=null,L.Cursor=_}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(y,L,I){var d=this&&this.__extends||function(){var n=function(o,l){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var $ in u)Object.prototype.hasOwnProperty.call(u,$)&&(h[$]=u[$])},n(o,l)};return function(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");n(o,l);function h(){this.constructor=o}o.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}(),_=y("./lib/oop"),p=y("./lib/dom"),a=y("./lib/event"),c=y("./lib/event_emitter").EventEmitter,t=32768,i=function(){function n(o,l){this.element=p.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+l,this.inner=p.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),o.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addListener(this.element,"scroll",this.onScroll.bind(this)),a.addListener(this.element,"mousedown",a.preventDefault)}return n.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},n}();_.implement(i.prototype,c);var r=function(n){d(o,n);function o(l,h){var u=n.call(this,l,"-v")||this;return u.scrollTop=0,u.scrollHeight=0,h.$scrollbarWidth=u.width=p.scrollbarWidth(l.ownerDocument),u.inner.style.width=u.element.style.width=(u.width||15)+5+"px",u.$minWidth=0,u}return o.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var l=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-l)/(this.coeff-l)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(l){this.element.style.height=l+"px"},o.prototype.setScrollHeight=function(l){this.scrollHeight=l,l>t?(this.coeff=t/l,l=t):this.coeff!=1&&(this.coeff=1),this.inner.style.height=l+"px"},o.prototype.setScrollTop=function(l){this.scrollTop!=l&&(this.skipEvent=!0,this.scrollTop=l,this.element.scrollTop=l*this.coeff)},o}(i);r.prototype.setInnerHeight=r.prototype.setScrollHeight;var e=function(n){d(o,n);function o(l,h){var u=n.call(this,l,"-h")||this;return u.scrollLeft=0,u.height=h.$scrollbarWidth,u.inner.style.height=u.element.style.height=(u.height||15)+5+"px",u}return o.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.setWidth=function(l){this.element.style.width=l+"px"},o.prototype.setInnerWidth=function(l){this.inner.style.width=l+"px"},o.prototype.setScrollWidth=function(l){this.inner.style.width=l+"px"},o.prototype.setScrollLeft=function(l){this.scrollLeft!=l&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=l)},o}(i);L.ScrollBar=r,L.ScrollBarV=r,L.ScrollBarH=e,L.VScrollBar=r,L.HScrollBar=e}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(y,L,I){var d=this&&this.__extends||function(){var e=function(n,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var u in h)Object.prototype.hasOwnProperty.call(h,u)&&(l[u]=h[u])},e(n,o)};return function(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(n,o);function l(){this.constructor=n}n.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}}(),_=y("./lib/oop"),p=y("./lib/dom"),a=y("./lib/event"),c=y("./lib/event_emitter").EventEmitter;p.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
  193. position: absolute;
  194. background: rgba(128, 128, 128, 0.6);
  195. -moz-box-sizing: border-box;
  196. box-sizing: border-box;
  197. border: 1px solid #bbb;
  198. border-radius: 2px;
  199. z-index: 8;
  200. }
  201. .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
  202. position: absolute;
  203. z-index: 6;
  204. background: none;
  205. overflow: hidden!important;
  206. }
  207. .ace_editor>.ace_sb-v {
  208. z-index: 6;
  209. right: 0;
  210. top: 0;
  211. width: 12px;
  212. }
  213. .ace_editor>.ace_sb-v div {
  214. z-index: 8;
  215. right: 0;
  216. width: 100%;
  217. }
  218. .ace_editor>.ace_sb-h {
  219. bottom: 0;
  220. left: 0;
  221. height: 12px;
  222. }
  223. .ace_editor>.ace_sb-h div {
  224. bottom: 0;
  225. height: 100%;
  226. }
  227. .ace_editor>.ace_sb_grabbed {
  228. z-index: 8;
  229. background: #000;
  230. }`,"ace_scrollbar.css",!1);var t=function(){function e(n,o){this.element=p.createElement("div"),this.element.className="ace_sb"+o,this.inner=p.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,n.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return e.prototype.setVisible=function(n){this.element.style.display=n?"":"none",this.isVisible=n,this.coeff=1},e}();_.implement(t.prototype,c);var i=function(e){d(n,e);function n(o,l){var h=e.call(this,o,"-v")||this;return h.scrollTop=0,h.scrollHeight=0,h.parent=o,h.width=h.VScrollWidth,h.renderer=l,h.inner.style.width=h.element.style.width=(h.width||15)+"px",h.$minWidth=0,h}return n.prototype.onMouseDown=function(o,l){if(o==="mousedown"&&!(a.getButton(l)!==0||l.detail===2)){if(l.target===this.inner){var h=this,u=l.clientY,$=function(b){u=b.clientY},w=function(){clearInterval(S)},v=l.clientY,f=this.thumbTop,M=function(){if(u!==void 0){var b=h.scrollTopFromThumbTop(f+u-v);b!==h.scrollTop&&h._emit("scroll",{data:b})}};a.capture(this.inner,$,w);var S=setInterval(M,20);return a.preventDefault(l)}var A=l.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(A)}),a.preventDefault(l)}},n.prototype.getHeight=function(){return this.height},n.prototype.scrollTopFromThumbTop=function(o){var l=o*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return l=l>>0,l<0?l=0:l>this.pageHeight-this.viewHeight&&(l=this.pageHeight-this.viewHeight),l},n.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},n.prototype.setHeight=function(o){this.height=Math.max(0,o),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},n.prototype.setScrollHeight=function(o,l){this.pageHeight===o&&!l||(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})))},n.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"},n}(t);i.prototype.setInnerHeight=i.prototype.setScrollHeight;var r=function(e){d(n,e);function n(o,l){var h=e.call(this,o,"-h")||this;return h.scrollLeft=0,h.scrollWidth=0,h.height=h.HScrollHeight,h.inner.style.height=h.element.style.height=(h.height||12)+"px",h.renderer=l,h}return n.prototype.onMouseDown=function(o,l){if(o==="mousedown"&&!(a.getButton(l)!==0||l.detail===2)){if(l.target===this.inner){var h=this,u=l.clientX,$=function(b){u=b.clientX},w=function(){clearInterval(S)},v=l.clientX,f=this.thumbLeft,M=function(){if(u!==void 0){var b=h.scrollLeftFromThumbLeft(f+u-v);b!==h.scrollLeft&&h._emit("scroll",{data:b})}};a.capture(this.inner,$,w);var S=setInterval(M,20);return a.preventDefault(l)}var A=l.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(A)}),a.preventDefault(l)}},n.prototype.getHeight=function(){return this.isVisible?this.height:0},n.prototype.scrollLeftFromThumbLeft=function(o){var l=o*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return l=l>>0,l<0?l=0:l>this.pageWidth-this.viewWidth&&(l=this.pageWidth-this.viewWidth),l},n.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)},n.prototype.setScrollWidth=function(o,l){this.pageWidth===o&&!l||(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})))},n.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"},n}(t);r.prototype.setInnerWidth=r.prototype.setScrollWidth,L.ScrollBar=i,L.ScrollBarV=i,L.ScrollBarH=r,L.VScrollBar=i,L.HScrollBar=r}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(y,L,I){var d=y("./lib/event"),_=function(){function p(a,c){this.onRender=a,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=c||window;var t=this;this._flush=function(i){t.pending=!1;var r=t.changes;if(r&&(d.blockIdle(100),t.changes=0,t.onRender(r)),t.changes){if(t.$recursionLimit--<0)return;t.schedule()}else t.$recursionLimit=2}}return p.prototype.schedule=function(a){this.changes=this.changes|a,this.changes&&!this.pending&&(d.nextFrame(this._flush),this.pending=!0)},p.prototype.clear=function(a){var c=this.changes;return this.changes=0,c},p}();L.RenderLoop=_}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(y,L,I){var d=y("../lib/oop"),_=y("../lib/dom"),p=y("../lib/lang"),a=y("../lib/event"),c=y("../lib/useragent"),t=y("../lib/event_emitter").EventEmitter,i=512,r=typeof ResizeObserver=="function",e=200,n=function(){function o(l){this.el=_.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=_.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=_.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),l.appendChild(this.el),this.$measureNode.textContent=p.stringRepeat("X",i),this.$characterSize={width:0,height:0},r?this.$addObserver():this.checkForSizeChanges()}return o.prototype.$setMeasureNodeStyles=function(l,h){l.width=l.height="auto",l.left=l.top="0px",l.visibility="hidden",l.position="absolute",l.whiteSpace="pre",c.isIE<8?l["font-family"]="inherit":l.font="inherit",l.overflow=h?"hidden":"visible"},o.prototype.checkForSizeChanges=function(l){if(l===void 0&&(l=this.$measureSizes()),l&&(this.$characterSize.width!==l.width||this.$characterSize.height!==l.height)){this.$measureNode.style.fontWeight="bold";var h=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=l,this.charSizes=Object.create(null),this.allowBoldFonts=h&&h.width===l.width&&h.height===l.height,this._emit("changeCharacterSize",{data:l})}},o.prototype.$addObserver=function(){var l=this;this.$observer=new window.ResizeObserver(function(h){l.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},o.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var l=this;return this.$pollSizeChangesTimer=a.onIdle(function h(){l.checkForSizeChanges(),a.onIdle(h,500)},500)},o.prototype.setPolling=function(l){l?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},o.prototype.$measureSizes=function(l){var h={height:(l||this.$measureNode).clientHeight,width:(l||this.$measureNode).clientWidth/i};return h.width===0||h.height===0?null:h},o.prototype.$measureCharWidth=function(l){this.$main.textContent=p.stringRepeat(l,i);var h=this.$main.getBoundingClientRect();return h.width/i},o.prototype.getCharacterWidth=function(l){var h=this.charSizes[l];return h===void 0&&(h=this.charSizes[l]=this.$measureCharWidth(l)/this.$characterSize.width),h},o.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},o.prototype.$getZoom=function(l){return!l||!l.parentElement?1:(window.getComputedStyle(l).zoom||1)*this.$getZoom(l.parentElement)},o.prototype.$initTransformMeasureNodes=function(){var l=function(h,u){return["div",{style:"position: absolute;top:"+h+"px;left:"+u+"px;"}]};this.els=_.buildDom([l(0,0),l(e,0),l(0,e),l(e,e)],this.el)},o.prototype.transformCoordinates=function(l,h){if(l){var u=this.$getZoom(this.el);l=f(1/u,l)}function $(F,N,U){var W=F[1]*N[0]-F[0]*N[1];return[(-N[1]*U[0]+N[0]*U[1])/W,(+F[1]*U[0]-F[0]*U[1])/W]}function w(F,N){return[F[0]-N[0],F[1]-N[1]]}function v(F,N){return[F[0]+N[0],F[1]+N[1]]}function f(F,N){return[F*N[0],F*N[1]]}this.els||this.$initTransformMeasureNodes();function M(F){var N=F.getBoundingClientRect();return[N.left,N.top]}var S=M(this.els[0]),A=M(this.els[1]),b=M(this.els[2]),m=M(this.els[3]),k=$(w(m,A),w(m,b),w(v(A,b),v(m,S))),E=f(1+k[0],w(A,S)),g=f(1+k[1],w(b,S));if(h){var C=h,T=k[0]*C[0]/e+k[1]*C[1]/e+1,x=v(f(C[0],E),f(C[1],g));return v(f(1/T/e,x),S)}var D=w(l,S),V=$(w(E,f(k[0],D)),w(g,f(k[1],D)),D);return f(e,V)},o}();n.prototype.$characterSize={width:0,height:0},d.implement(n.prototype,t),L.FontMetrics=n}),ace.define("ace/css/editor-css",["require","exports","module"],function(y,L,I){I.exports=`
  231. .ace_br1 {border-top-left-radius : 3px;}
  232. .ace_br2 {border-top-right-radius : 3px;}
  233. .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
  234. .ace_br4 {border-bottom-right-radius: 3px;}
  235. .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
  236. .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
  237. .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
  238. .ace_br8 {border-bottom-left-radius : 3px;}
  239. .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
  240. .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
  241. .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
  242. .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
  243. .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
  244. .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
  245. .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
  246. .ace_editor {
  247. position: relative;
  248. overflow: hidden;
  249. padding: 0;
  250. font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
  251. direction: ltr;
  252. text-align: left;
  253. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  254. }
  255. .ace_scroller {
  256. position: absolute;
  257. overflow: hidden;
  258. top: 0;
  259. bottom: 0;
  260. background-color: inherit;
  261. -ms-user-select: none;
  262. -moz-user-select: none;
  263. -webkit-user-select: none;
  264. user-select: none;
  265. cursor: text;
  266. }
  267. .ace_content {
  268. position: absolute;
  269. box-sizing: border-box;
  270. min-width: 100%;
  271. contain: style size layout;
  272. font-variant-ligatures: no-common-ligatures;
  273. }
  274. .ace_keyboard-focus:focus {
  275. box-shadow: inset 0 0 0 2px #5E9ED6;
  276. outline: none;
  277. }
  278. .ace_dragging .ace_scroller:before{
  279. position: absolute;
  280. top: 0;
  281. left: 0;
  282. right: 0;
  283. bottom: 0;
  284. content: '';
  285. background: rgba(250, 250, 250, 0.01);
  286. z-index: 1000;
  287. }
  288. .ace_dragging.ace_dark .ace_scroller:before{
  289. background: rgba(0, 0, 0, 0.01);
  290. }
  291. .ace_gutter {
  292. position: absolute;
  293. overflow : hidden;
  294. width: auto;
  295. top: 0;
  296. bottom: 0;
  297. left: 0;
  298. cursor: default;
  299. z-index: 4;
  300. -ms-user-select: none;
  301. -moz-user-select: none;
  302. -webkit-user-select: none;
  303. user-select: none;
  304. contain: style size layout;
  305. }
  306. .ace_gutter-active-line {
  307. position: absolute;
  308. left: 0;
  309. right: 0;
  310. }
  311. .ace_scroller.ace_scroll-left:after {
  312. content: "";
  313. position: absolute;
  314. top: 0;
  315. right: 0;
  316. bottom: 0;
  317. left: 0;
  318. box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
  319. pointer-events: none;
  320. }
  321. .ace_gutter-cell, .ace_gutter-cell_svg-icons {
  322. position: absolute;
  323. top: 0;
  324. left: 0;
  325. right: 0;
  326. padding-left: 19px;
  327. padding-right: 6px;
  328. background-repeat: no-repeat;
  329. }
  330. .ace_gutter-cell_svg-icons .ace_gutter_annotation {
  331. margin-left: -14px;
  332. float: left;
  333. }
  334. .ace_gutter-cell .ace_gutter_annotation {
  335. margin-left: -19px;
  336. float: left;
  337. }
  338. .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
  339. 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==");
  340. background-repeat: no-repeat;
  341. background-position: 2px center;
  342. }
  343. .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
  344. 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==");
  345. background-repeat: no-repeat;
  346. background-position: 2px center;
  347. }
  348. .ace_gutter-cell.ace_info, .ace_icon.ace_info {
  349. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
  350. background-repeat: no-repeat;
  351. background-position: 2px center;
  352. }
  353. .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
  354. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
  355. }
  356. .ace_icon_svg.ace_error {
  357. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
  358. background-color: crimson;
  359. }
  360. .ace_icon_svg.ace_warning {
  361. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
  362. background-color: darkorange;
  363. }
  364. .ace_icon_svg.ace_info {
  365. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
  366. background-color: royalblue;
  367. }
  368. .ace_icon_svg.ace_error_fold {
  369. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
  370. background-color: crimson;
  371. }
  372. .ace_icon_svg.ace_warning_fold {
  373. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
  374. background-color: darkorange;
  375. }
  376. .ace_scrollbar {
  377. contain: strict;
  378. position: absolute;
  379. right: 0;
  380. bottom: 0;
  381. z-index: 6;
  382. }
  383. .ace_scrollbar-inner {
  384. position: absolute;
  385. cursor: text;
  386. left: 0;
  387. top: 0;
  388. }
  389. .ace_scrollbar-v{
  390. overflow-x: hidden;
  391. overflow-y: scroll;
  392. top: 0;
  393. }
  394. .ace_scrollbar-h {
  395. overflow-x: scroll;
  396. overflow-y: hidden;
  397. left: 0;
  398. }
  399. .ace_print-margin {
  400. position: absolute;
  401. height: 100%;
  402. }
  403. .ace_text-input {
  404. position: absolute;
  405. z-index: 0;
  406. width: 0.5em;
  407. height: 1em;
  408. opacity: 0;
  409. background: transparent;
  410. -moz-appearance: none;
  411. appearance: none;
  412. border: none;
  413. resize: none;
  414. outline: none;
  415. overflow: hidden;
  416. font: inherit;
  417. padding: 0 1px;
  418. margin: 0 -1px;
  419. contain: strict;
  420. -ms-user-select: text;
  421. -moz-user-select: text;
  422. -webkit-user-select: text;
  423. user-select: text;
  424. /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
  425. white-space: pre!important;
  426. }
  427. .ace_text-input.ace_composition {
  428. background: transparent;
  429. color: inherit;
  430. z-index: 1000;
  431. opacity: 1;
  432. }
  433. .ace_composition_placeholder { color: transparent }
  434. .ace_composition_marker {
  435. border-bottom: 1px solid;
  436. position: absolute;
  437. border-radius: 0;
  438. margin-top: 1px;
  439. }
  440. [ace_nocontext=true] {
  441. transform: none!important;
  442. filter: none!important;
  443. clip-path: none!important;
  444. mask : none!important;
  445. contain: none!important;
  446. perspective: none!important;
  447. mix-blend-mode: initial!important;
  448. z-index: auto;
  449. }
  450. .ace_layer {
  451. z-index: 1;
  452. position: absolute;
  453. overflow: hidden;
  454. /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
  455. word-wrap: normal;
  456. white-space: pre;
  457. height: 100%;
  458. width: 100%;
  459. box-sizing: border-box;
  460. /* setting pointer-events: auto; on node under the mouse, which changes
  461. during scroll, will break mouse wheel scrolling in Safari */
  462. pointer-events: none;
  463. }
  464. .ace_gutter-layer {
  465. position: relative;
  466. width: auto;
  467. text-align: right;
  468. pointer-events: auto;
  469. height: 1000000px;
  470. contain: style size layout;
  471. }
  472. .ace_text-layer {
  473. font: inherit !important;
  474. position: absolute;
  475. height: 1000000px;
  476. width: 1000000px;
  477. contain: style size layout;
  478. }
  479. .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
  480. contain: style size layout;
  481. position: absolute;
  482. top: 0;
  483. left: 0;
  484. right: 0;
  485. }
  486. .ace_hidpi .ace_text-layer,
  487. .ace_hidpi .ace_gutter-layer,
  488. .ace_hidpi .ace_content,
  489. .ace_hidpi .ace_gutter {
  490. contain: strict;
  491. }
  492. .ace_hidpi .ace_text-layer > .ace_line,
  493. .ace_hidpi .ace_text-layer > .ace_line_group {
  494. contain: strict;
  495. }
  496. .ace_cjk {
  497. display: inline-block;
  498. text-align: center;
  499. }
  500. .ace_cursor-layer {
  501. z-index: 4;
  502. }
  503. .ace_cursor {
  504. z-index: 4;
  505. position: absolute;
  506. box-sizing: border-box;
  507. border-left: 2px solid;
  508. /* workaround for smooth cursor repaintng whole screen in chrome */
  509. transform: translatez(0);
  510. }
  511. .ace_multiselect .ace_cursor {
  512. border-left-width: 1px;
  513. }
  514. .ace_slim-cursors .ace_cursor {
  515. border-left-width: 1px;
  516. }
  517. .ace_overwrite-cursors .ace_cursor {
  518. border-left-width: 0;
  519. border-bottom: 1px solid;
  520. }
  521. .ace_hidden-cursors .ace_cursor {
  522. opacity: 0.2;
  523. }
  524. .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
  525. opacity: 0;
  526. }
  527. .ace_smooth-blinking .ace_cursor {
  528. transition: opacity 0.18s;
  529. }
  530. .ace_animate-blinking .ace_cursor {
  531. animation-duration: 1000ms;
  532. animation-timing-function: step-end;
  533. animation-name: blink-ace-animate;
  534. animation-iteration-count: infinite;
  535. }
  536. .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
  537. animation-duration: 1000ms;
  538. animation-timing-function: ease-in-out;
  539. animation-name: blink-ace-animate-smooth;
  540. }
  541. @keyframes blink-ace-animate {
  542. from, to { opacity: 1; }
  543. 60% { opacity: 0; }
  544. }
  545. @keyframes blink-ace-animate-smooth {
  546. from, to { opacity: 1; }
  547. 45% { opacity: 1; }
  548. 60% { opacity: 0; }
  549. 85% { opacity: 0; }
  550. }
  551. .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
  552. position: absolute;
  553. z-index: 3;
  554. }
  555. .ace_marker-layer .ace_selection {
  556. position: absolute;
  557. z-index: 5;
  558. }
  559. .ace_marker-layer .ace_bracket {
  560. position: absolute;
  561. z-index: 6;
  562. }
  563. .ace_marker-layer .ace_error_bracket {
  564. position: absolute;
  565. border-bottom: 1px solid #DE5555;
  566. border-radius: 0;
  567. }
  568. .ace_marker-layer .ace_active-line {
  569. position: absolute;
  570. z-index: 2;
  571. }
  572. .ace_marker-layer .ace_selected-word {
  573. position: absolute;
  574. z-index: 4;
  575. box-sizing: border-box;
  576. }
  577. .ace_line .ace_fold {
  578. box-sizing: border-box;
  579. display: inline-block;
  580. height: 11px;
  581. margin-top: -2px;
  582. vertical-align: middle;
  583. background-image:
  584. url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
  585. url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
  586. background-repeat: no-repeat, repeat-x;
  587. background-position: center center, top left;
  588. color: transparent;
  589. border: 1px solid black;
  590. border-radius: 2px;
  591. cursor: pointer;
  592. pointer-events: auto;
  593. }
  594. .ace_dark .ace_fold {
  595. }
  596. .ace_fold:hover{
  597. background-image:
  598. url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
  599. url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
  600. }
  601. .ace_tooltip {
  602. background-color: #f5f5f5;
  603. border: 1px solid gray;
  604. border-radius: 1px;
  605. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  606. color: black;
  607. max-width: 100%;
  608. padding: 3px 4px;
  609. position: fixed;
  610. z-index: 999999;
  611. box-sizing: border-box;
  612. cursor: default;
  613. white-space: pre;
  614. word-wrap: break-word;
  615. line-height: normal;
  616. font-style: normal;
  617. font-weight: normal;
  618. letter-spacing: normal;
  619. pointer-events: none;
  620. }
  621. .ace_tooltip.ace_dark {
  622. background-color: #636363;
  623. color: #fff;
  624. }
  625. .ace_tooltip:focus {
  626. outline: 1px solid #5E9ED6;
  627. }
  628. .ace_icon {
  629. display: inline-block;
  630. width: 18px;
  631. vertical-align: top;
  632. }
  633. .ace_icon_svg {
  634. display: inline-block;
  635. width: 12px;
  636. vertical-align: top;
  637. -webkit-mask-repeat: no-repeat;
  638. -webkit-mask-size: 12px;
  639. -webkit-mask-position: center;
  640. }
  641. .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
  642. padding-right: 13px;
  643. }
  644. .ace_fold-widget {
  645. box-sizing: border-box;
  646. margin: 0 -12px 0 1px;
  647. display: none;
  648. width: 11px;
  649. vertical-align: top;
  650. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
  651. background-repeat: no-repeat;
  652. background-position: center;
  653. border-radius: 3px;
  654. border: 1px solid transparent;
  655. cursor: pointer;
  656. }
  657. .ace_folding-enabled .ace_fold-widget {
  658. display: inline-block;
  659. }
  660. .ace_fold-widget.ace_end {
  661. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
  662. }
  663. .ace_fold-widget.ace_closed {
  664. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
  665. }
  666. .ace_fold-widget:hover {
  667. border: 1px solid rgba(0, 0, 0, 0.3);
  668. background-color: rgba(255, 255, 255, 0.2);
  669. box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
  670. }
  671. .ace_fold-widget:active {
  672. border: 1px solid rgba(0, 0, 0, 0.4);
  673. background-color: rgba(0, 0, 0, 0.05);
  674. box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  675. }
  676. /**
  677. * Dark version for fold widgets
  678. */
  679. .ace_dark .ace_fold-widget {
  680. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
  681. }
  682. .ace_dark .ace_fold-widget.ace_end {
  683. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
  684. }
  685. .ace_dark .ace_fold-widget.ace_closed {
  686. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
  687. }
  688. .ace_dark .ace_fold-widget:hover {
  689. box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
  690. background-color: rgba(255, 255, 255, 0.1);
  691. }
  692. .ace_dark .ace_fold-widget:active {
  693. box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
  694. }
  695. .ace_inline_button {
  696. border: 1px solid lightgray;
  697. display: inline-block;
  698. margin: -1px 8px;
  699. padding: 0 5px;
  700. pointer-events: auto;
  701. cursor: pointer;
  702. }
  703. .ace_inline_button:hover {
  704. border-color: gray;
  705. background: rgba(200,200,200,0.2);
  706. display: inline-block;
  707. pointer-events: auto;
  708. }
  709. .ace_fold-widget.ace_invalid {
  710. background-color: #FFB4B4;
  711. border-color: #DE5555;
  712. }
  713. .ace_fade-fold-widgets .ace_fold-widget {
  714. transition: opacity 0.4s ease 0.05s;
  715. opacity: 0;
  716. }
  717. .ace_fade-fold-widgets:hover .ace_fold-widget {
  718. transition: opacity 0.05s ease 0.05s;
  719. opacity:1;
  720. }
  721. .ace_underline {
  722. text-decoration: underline;
  723. }
  724. .ace_bold {
  725. font-weight: bold;
  726. }
  727. .ace_nobold .ace_bold {
  728. font-weight: normal;
  729. }
  730. .ace_italic {
  731. font-style: italic;
  732. }
  733. .ace_error-marker {
  734. background-color: rgba(255, 0, 0,0.2);
  735. position: absolute;
  736. z-index: 9;
  737. }
  738. .ace_highlight-marker {
  739. background-color: rgba(255, 255, 0,0.2);
  740. position: absolute;
  741. z-index: 8;
  742. }
  743. .ace_mobile-menu {
  744. position: absolute;
  745. line-height: 1.5;
  746. border-radius: 4px;
  747. -ms-user-select: none;
  748. -moz-user-select: none;
  749. -webkit-user-select: none;
  750. user-select: none;
  751. background: white;
  752. box-shadow: 1px 3px 2px grey;
  753. border: 1px solid #dcdcdc;
  754. color: black;
  755. }
  756. .ace_dark > .ace_mobile-menu {
  757. background: #333;
  758. color: #ccc;
  759. box-shadow: 1px 3px 2px grey;
  760. border: 1px solid #444;
  761. }
  762. .ace_mobile-button {
  763. padding: 2px;
  764. cursor: pointer;
  765. overflow: hidden;
  766. }
  767. .ace_mobile-button:hover {
  768. background-color: #eee;
  769. opacity:1;
  770. }
  771. .ace_mobile-button:active {
  772. background-color: #ddd;
  773. }
  774. .ace_placeholder {
  775. font-family: arial;
  776. transform: scale(0.9);
  777. transform-origin: left;
  778. white-space: pre;
  779. opacity: 0.7;
  780. margin: 0 10px;
  781. }
  782. .ace_ghost_text {
  783. opacity: 0.5;
  784. font-style: italic;
  785. white-space: pre;
  786. }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(y,L,I){var d=y("../lib/dom"),_=y("../lib/oop"),p=y("../lib/event_emitter").EventEmitter,a=function(){function c(t,i){this.canvas=d.createElement("canvas"),this.renderer=i,this.pixelRatio=1,this.maxHeight=i.layerConfig.maxHeight,this.lineHeight=i.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 c.prototype.$updateDecorators=function(t){var i=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 n(m,k){return m.priority<k.priority?-1:m.priority>k.priority?1:0}var o=this.renderer.session.$annotations;if(e.clearRect(0,0,this.canvas.width,this.canvas.height),o){var l={info:1,warning:2,error:3};o.forEach(function(m){m.priority=l[m.type]||null}),o=o.sort(n);for(var h=this.renderer.session.$foldData,u=0;u<o.length;u++){var $=o[u].row,w=this.compensateFoldRows($,h),v=Math.round(($-w)*this.lineHeight*this.heightRatio),f=Math.round(($-w)*this.lineHeight*this.heightRatio),M=Math.round((($-w)*this.lineHeight+this.lineHeight)*this.heightRatio),S=M-f;if(S<this.minDecorationHeight){var A=(f+M)/2|0;A<this.halfMinDecorationHeight?A=this.halfMinDecorationHeight:A+this.halfMinDecorationHeight>this.canvasHeight&&(A=this.canvasHeight-this.halfMinDecorationHeight),f=Math.round(A-this.halfMinDecorationHeight),M=Math.round(A+this.halfMinDecorationHeight)}e.fillStyle=i[o[u].type]||null,e.fillRect(0,v,this.canvasWidth,M-f)}}var b=this.renderer.session.selection.getCursor();if(b){var w=this.compensateFoldRows(b.row,h),v=Math.round((b.row-w)*this.lineHeight*this.heightRatio);e.fillStyle="rgba(0, 0, 0, 0.5)",e.fillRect(0,v,this.canvasWidth,2)}},c.prototype.compensateFoldRows=function(t,i){var r=0;if(i&&i.length>0)for(var e=0;e<i.length;e++)t>i[e].start.row&&t<i[e].end.row?r+=t-i[e].start.row:t>=i[e].end.row&&(r+=i[e].end.row-i[e].start.row);return r},c}();_.implement(a.prototype,p),L.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(y,L,I){var d=y("./lib/oop"),_=y("./lib/dom"),p=y("./lib/lang"),a=y("./config"),c=y("./layer/gutter").Gutter,t=y("./layer/marker").Marker,i=y("./layer/text").Text,r=y("./layer/cursor").Cursor,e=y("./scrollbar").HScrollBar,n=y("./scrollbar").VScrollBar,o=y("./scrollbar_custom").HScrollBar,l=y("./scrollbar_custom").VScrollBar,h=y("./renderloop").RenderLoop,u=y("./layer/font_metrics").FontMetrics,$=y("./lib/event_emitter").EventEmitter,w=y("./css/editor-css"),v=y("./layer/decorators").Decorator,f=y("./lib/useragent");_.importCssString(w,"ace_editor.css",!1);var M=function(){function S(A,b){var m=this;this.container=A||_.createElement("div"),_.addCssClass(this.container,"ace_editor"),_.HI_DPI&&_.addCssClass(this.container,"ace_hidpi"),this.setTheme(b),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=_.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=_.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=_.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new c(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new t(this.content);var k=this.$textLayer=new i(this.content);this.canvas=k.element,this.$markerFront=new t(this.content),this.$cursorLayer=new r(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new n(this.container,this),this.scrollBarH=new e(this.container,this),this.scrollBarV.on("scroll",function(E){m.$scrollAnimation||m.session.setScrollTop(E.data-m.scrollMargin.top)}),this.scrollBarH.on("scroll",function(E){m.$scrollAnimation||m.session.setScrollLeft(E.data-m.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new u(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(E){m.updateCharacterSize(),m.onResize(!0,m.gutterWidth,m.$size.width,m.$size.height),m._signal("changeCharacterSize",E)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!f.isIOS,this.$loop=new h(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),a.resetOptions(this),a._signal("renderer",this)}return S.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),_.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},S.prototype.setSession=function(A){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=A,A&&this.scrollMargin.top&&A.getScrollTop()<=0&&A.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(A),this.$markerBack.setSession(A),this.$markerFront.setSession(A),this.$gutterLayer.setSession(A),this.$textLayer.setSession(A),A&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},S.prototype.updateLines=function(A,b,m){if(b===void 0&&(b=1/0),this.$changedLines?(this.$changedLines.firstRow>A&&(this.$changedLines.firstRow=A),this.$changedLines.lastRow<b&&(this.$changedLines.lastRow=b)):this.$changedLines={firstRow:A,lastRow:b},this.$changedLines.lastRow<this.layerConfig.firstRow)if(m)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},S.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},S.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},S.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},S.prototype.updateFull=function(A){A?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},S.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},S.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},S.prototype.onResize=function(A,b,m,k){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=A?1:0;var E=this.container;k||(k=E.clientHeight||E.scrollHeight),m||(m=E.clientWidth||E.scrollWidth);var g=this.$updateCachedSize(A,b,m,k);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!m&&!k)return this.resizing=0;A&&(this.$gutterLayer.$padding=null),A?this.$renderChanges(g|this.$changes,!0):this.$loop.schedule(g|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},S.prototype.$updateCachedSize=function(A,b,m,k){k-=this.$extraHeight||0;var E=0,g=this.$size,C={width:g.width,height:g.height,scrollerHeight:g.scrollerHeight,scrollerWidth:g.scrollerWidth};if(k&&(A||g.height!=k)&&(g.height=k,E|=this.CHANGE_SIZE,g.scrollerHeight=g.height,this.$horizScroll&&(g.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(g.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",E=E|this.CHANGE_SCROLL),m&&(A||g.width!=m)){E|=this.CHANGE_SIZE,g.width=m,b==null&&(b=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=b,_.setStyle(this.scrollBarH.element.style,"left",b+"px"),_.setStyle(this.scroller.style,"left",b+this.margin.left+"px"),g.scrollerWidth=Math.max(0,m-b-this.scrollBarV.getWidth()-this.margin.h),_.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";_.setStyle(this.scrollBarH.element.style,"right",T),_.setStyle(this.scroller.style,"right",T),_.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(g.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||A)&&(E|=this.CHANGE_FULL)}return g.$dirty=!m||!k,E&&this._signal("resize",C),E},S.prototype.onGutterResize=function(A){var b=this.$showGutter?A:0;b!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,b,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},S.prototype.adjustWrapLimit=function(){var A=this.$size.scrollerWidth-this.$padding*2,b=Math.floor(A/this.characterWidth);return this.session.adjustWrapLimit(b,this.$showPrintMargin&&this.$printMarginColumn)},S.prototype.setAnimatedScroll=function(A){this.setOption("animatedScroll",A)},S.prototype.getAnimatedScroll=function(){return this.$animatedScroll},S.prototype.setShowInvisibles=function(A){this.setOption("showInvisibles",A),this.session.$bidiHandler.setShowInvisibles(A)},S.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},S.prototype.getDisplayIndentGuide=function(){return this.getOption("displayIndentGuides")},S.prototype.setDisplayIndentGuides=function(A){this.setOption("displayIndentGuides",A)},S.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},S.prototype.setHighlightIndentGuides=function(A){this.setOption("highlightIndentGuides",A)},S.prototype.setShowPrintMargin=function(A){this.setOption("showPrintMargin",A)},S.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},S.prototype.setPrintMarginColumn=function(A){this.setOption("printMarginColumn",A)},S.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},S.prototype.getShowGutter=function(){return this.getOption("showGutter")},S.prototype.setShowGutter=function(A){return this.setOption("showGutter",A)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.setFadeFoldWidgets=function(A){this.setOption("fadeFoldWidgets",A)},S.prototype.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var A=_.createElement("div");A.className="ace_layer ace_print-margin-layer",this.$printMarginEl=_.createElement("div"),this.$printMarginEl.className="ace_print-margin",A.appendChild(this.$printMarginEl),this.content.insertBefore(A,this.content.firstChild)}var b=this.$printMarginEl.style;b.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",b.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},S.prototype.getContainerElement=function(){return this.container},S.prototype.getMouseEventTarget=function(){return this.scroller},S.prototype.getTextAreaContainer=function(){return this.container},S.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var A=this.textarea.style,b=this.$composition;if(!this.$keepTextAreaAtCursor&&!b){_.translate(this.textarea,-100,0);return}var m=this.$cursorLayer.$pixelPos;if(m){b&&b.markerRange&&(m=this.$cursorLayer.getPixelPosition(b.markerRange.start,!0));var k=this.layerConfig,E=m.top,g=m.left;E-=k.offset;var C=b&&b.useTextareaForIME||f.isMobile?this.lineHeight:1;if(E<0||E>k.height-C){_.translate(this.textarea,0,0);return}var T=1,x=this.$size.height-C;if(!b)E+=this.lineHeight;else if(b.useTextareaForIME){var D=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(D)[0]}else E+=this.lineHeight+2;g-=this.scrollLeft,g>this.$size.scrollerWidth-T&&(g=this.$size.scrollerWidth-T),g+=this.gutterWidth+this.margin.left,_.setStyle(A,"height",C+"px"),_.setStyle(A,"width",T+"px"),_.translate(this.textarea,Math.min(g,this.$size.scrollerWidth-T),Math.min(E,x))}}},S.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},S.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},S.prototype.getLastFullyVisibleRow=function(){var A=this.layerConfig,b=A.lastRow,m=this.session.documentToScreenRow(b,0)*A.lineHeight;return m-this.session.getScrollTop()>A.height-A.lineHeight?b-1:b},S.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},S.prototype.setPadding=function(A){this.$padding=A,this.$textLayer.setPadding(A),this.$cursorLayer.setPadding(A),this.$markerFront.setPadding(A),this.$markerBack.setPadding(A),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},S.prototype.setScrollMargin=function(A,b,m,k){var E=this.scrollMargin;E.top=A|0,E.bottom=b|0,E.right=k|0,E.left=m|0,E.v=E.top+E.bottom,E.h=E.left+E.right,E.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-E.top),this.updateFull()},S.prototype.setMargin=function(A,b,m,k){var E=this.margin;E.top=A|0,E.bottom=b|0,E.right=k|0,E.left=m|0,E.v=E.top+E.bottom,E.h=E.left+E.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},S.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},S.prototype.setHScrollBarAlwaysVisible=function(A){this.setOption("hScrollBarAlwaysVisible",A)},S.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},S.prototype.setVScrollBarAlwaysVisible=function(A){this.setOption("vScrollBarAlwaysVisible",A)},S.prototype.$updateScrollBarV=function(){var A=this.layerConfig.maxHeight,b=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(A-=(b-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>A-b&&(A=this.scrollTop+b,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(A+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},S.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},S.prototype.freeze=function(){this.$frozen=!0},S.prototype.unfreeze=function(){this.$frozen=!1},S.prototype.$renderChanges=function(A,b){if(this.$changes&&(A|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!A&&!b){this.$changes|=A;return}if(this.$size.$dirty)return this.$changes|=A,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",A),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var m=this.layerConfig;if(A&this.CHANGE_FULL||A&this.CHANGE_SIZE||A&this.CHANGE_TEXT||A&this.CHANGE_LINES||A&this.CHANGE_SCROLL||A&this.CHANGE_H_SCROLL){if(A|=this.$computeLayerConfig()|this.$loop.clear(),m.firstRow!=this.layerConfig.firstRow&&m.firstRowScreen==this.layerConfig.firstRowScreen){var k=this.scrollTop+(m.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;k>0&&(this.scrollTop=k,A=A|this.CHANGE_SCROLL,A|=this.$computeLayerConfig()|this.$loop.clear())}m=this.layerConfig,this.$updateScrollBarV(),A&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),_.translate(this.content,-this.scrollLeft,-m.offset);var E=m.width+2*this.$padding+"px",g=m.minHeight+"px";_.setStyle(this.content.style,"width",E),_.setStyle(this.content.style,"height",g)}if(A&this.CHANGE_H_SCROLL&&(_.translate(this.content,-this.scrollLeft,-m.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),A&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(m),this.$showGutter&&this.$gutterLayer.update(m),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(m),this.$markerBack.update(m),this.$markerFront.update(m),this.$cursorLayer.update(m),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}if(A&this.CHANGE_SCROLL){this.$changedLines=null,A&this.CHANGE_TEXT||A&this.CHANGE_LINES?this.$textLayer.update(m):this.$textLayer.scrollLines(m),this.$showGutter&&(A&this.CHANGE_GUTTER||A&this.CHANGE_LINES?this.$gutterLayer.update(m):this.$gutterLayer.scrollLines(m)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(m),this.$markerBack.update(m),this.$markerFront.update(m),this.$cursorLayer.update(m),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}A&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(m),this.$showGutter&&this.$gutterLayer.update(m),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(m)):A&this.CHANGE_LINES?((this.$updateLines()||A&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(m),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(m)):A&this.CHANGE_TEXT||A&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(m),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(m)):A&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(m),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(m)),A&this.CHANGE_CURSOR&&(this.$cursorLayer.update(m),this.$moveTextAreaToCursor()),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(m),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(m),this._signal("afterRender",A)},S.prototype.$autosize=function(){var A=this.session.getScreenLength()*this.lineHeight,b=this.$maxLines*this.lineHeight,m=Math.min(b,Math.max((this.$minLines||1)*this.lineHeight,A))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(m+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&m>this.$maxPixelHeight&&(m=this.$maxPixelHeight);var k=m<=2*this.lineHeight,E=!k&&A>b;if(m!=this.desiredHeight||this.$size.height!=this.desiredHeight||E!=this.$vScroll){E!=this.$vScroll&&(this.$vScroll=E,this.scrollBarV.setVisible(E));var g=this.container.clientWidth;this.container.style.height=m+"px",this.$updateCachedSize(!0,this.$gutterWidth,g,m),this.desiredHeight=m,this._signal("autosize")}},S.prototype.$computeLayerConfig=function(){var A=this.session,b=this.$size,m=b.height<=2*this.lineHeight,k=this.session.getScreenLength(),E=k*this.lineHeight,g=this.$getLongestLine(),C=!m&&(this.$hScrollBarAlwaysVisible||b.scrollerWidth-g-2*this.$padding<0),T=this.$horizScroll!==C;T&&(this.$horizScroll=C,this.scrollBarH.setVisible(C));var x=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var D=b.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(b.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;E+=V;var F=this.scrollMargin;this.session.setScrollTop(Math.max(-F.top,Math.min(this.scrollTop,E-b.scrollerHeight+F.bottom))),this.session.setScrollLeft(Math.max(-F.left,Math.min(this.scrollLeft,g+2*this.$padding-b.scrollerWidth+F.right)));var N=!m&&(this.$vScrollBarAlwaysVisible||b.scrollerHeight-E+V<0||this.scrollTop>F.top),U=x!==N;U&&(this.$vScroll=N,this.scrollBarV.setVisible(N));var W=this.scrollTop%this.lineHeight,B=Math.ceil(D/this.lineHeight)-1,z=Math.max(0,Math.round((this.scrollTop-W)/this.lineHeight)),G=z+B,X,Y,Q=this.lineHeight;z=A.screenToDocumentRow(z,0);var q=A.getFoldLine(z);q&&(z=q.start.row),X=A.documentToScreenRow(z,0),Y=A.getRowLength(z)*Q,G=Math.min(A.screenToDocumentRow(G,0),A.getLength()-1),D=b.scrollerHeight+A.getRowLength(G)*Q+Y,W=this.scrollTop-X*Q;var ne=0;return(this.layerConfig.width!=g||T)&&(ne=this.CHANGE_H_SCROLL),(T||U)&&(ne|=this.$updateCachedSize(!0,this.gutterWidth,b.width,b.height),this._signal("scrollbarVisibilityChanged"),U&&(g=this.$getLongestLine())),this.layerConfig={width:g,padding:this.$padding,firstRow:z,firstRowScreen:X,lastRow:G,lineHeight:Q,characterWidth:this.characterWidth,minHeight:D,maxHeight:E,offset:W,gutterOffset:Q?Math.max(0,Math.ceil((W+b.height-b.scrollerHeight)/Q)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(g-this.$padding),ne},S.prototype.$updateLines=function(){if(this.$changedLines){var A=this.$changedLines.firstRow,b=this.$changedLines.lastRow;this.$changedLines=null;var m=this.layerConfig;if(!(A>m.lastRow+1)&&!(b<m.firstRow)){if(b===1/0){this.$showGutter&&this.$gutterLayer.update(m),this.$textLayer.update(m);return}return this.$textLayer.updateLines(m,A,b),!0}}},S.prototype.$getLongestLine=function(){var A=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(A+=1),this.$textLayer&&A>this.$textLayer.MAX_LINE_LENGTH&&(A=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(A*this.characterWidth))},S.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},S.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},S.prototype.addGutterDecoration=function(A,b){this.$gutterLayer.addGutterDecoration(A,b)},S.prototype.removeGutterDecoration=function(A,b){this.$gutterLayer.removeGutterDecoration(A,b)},S.prototype.updateBreakpoints=function(A){this.$loop.schedule(this.CHANGE_GUTTER)},S.prototype.setAnnotations=function(A){this.$gutterLayer.setAnnotations(A),this.$loop.schedule(this.CHANGE_GUTTER)},S.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},S.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},S.prototype.showCursor=function(){this.$cursorLayer.showCursor()},S.prototype.scrollSelectionIntoView=function(A,b,m){this.scrollCursorIntoView(A,m),this.scrollCursorIntoView(b,m)},S.prototype.scrollCursorIntoView=function(A,b,m){if(this.$size.scrollerHeight!==0){var k=this.$cursorLayer.getPixelPosition(A),E=k.left,g=k.top,C=m&&m.top||0,T=m&&m.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var x=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;x+C>g?(b&&x+C>g+this.lineHeight&&(g-=b*this.$size.scrollerHeight),g===0&&(g=-this.scrollMargin.top),this.session.setScrollTop(g)):x+this.$size.scrollerHeight-T<g+this.lineHeight&&(b&&x+this.$size.scrollerHeight-T<g-this.lineHeight&&(g+=b*this.$size.scrollerHeight),this.session.setScrollTop(g+this.lineHeight+T-this.$size.scrollerHeight));var D=this.scrollLeft,V=2*this.layerConfig.characterWidth;E-V<D?(E-=V,E<this.$padding+V&&(E=-this.scrollMargin.left),this.session.setScrollLeft(E)):(E+=V,D+this.$size.scrollerWidth<E+this.characterWidth?this.session.setScrollLeft(Math.round(E+this.characterWidth-this.$size.scrollerWidth)):D<=this.$padding&&E-D<this.characterWidth&&this.session.setScrollLeft(0))}},S.prototype.getScrollTop=function(){return this.session.getScrollTop()},S.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},S.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},S.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},S.prototype.scrollToRow=function(A){this.session.setScrollTop(A*this.lineHeight)},S.prototype.alignCursor=function(A,b){typeof A=="number"&&(A={row:A,column:0});var m=this.$cursorLayer.getPixelPosition(A),k=this.$size.scrollerHeight-this.lineHeight,E=m.top-k*(b||0);return this.session.setScrollTop(E),E},S.prototype.$calcSteps=function(A,b){var m=0,k=this.STEPS,E=[],g=function(C,T,x){return x*(Math.pow(C-1,3)+1)+T};for(m=0;m<k;++m)E.push(g(m/this.STEPS,A,b-A));return E},S.prototype.scrollToLine=function(A,b,m,k){var E=this.$cursorLayer.getPixelPosition({row:A,column:0}),g=E.top;b&&(g-=this.$size.scrollerHeight/2);var C=this.scrollTop;this.session.setScrollTop(g),m!==!1&&this.animateScrolling(C,k)},S.prototype.animateScrolling=function(A,b){var m=this.scrollTop;if(!this.$animatedScroll)return;var k=this;if(A==m)return;if(this.$scrollAnimation){var E=this.$scrollAnimation.steps;if(E.length&&(A=E[0],A==m))return}var g=k.$calcSteps(A,m);this.$scrollAnimation={from:A,to:m,steps:g},clearInterval(this.$timer),k.session.setScrollTop(g.shift()),k.session.$scrollTop=m;function C(){k.$timer=clearInterval(k.$timer),k.$scrollAnimation=null,k.$stopAnimation=!1,b&&b()}this.$timer=setInterval(function(){if(k.$stopAnimation){C();return}if(!k.session)return clearInterval(k.$timer);g.length?(k.session.setScrollTop(g.shift()),k.session.$scrollTop=m):m!=null?(k.session.$scrollTop=-1,k.session.setScrollTop(m),m=null):C()},10)},S.prototype.scrollToY=function(A){this.scrollTop!==A&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=A)},S.prototype.scrollToX=function(A){this.scrollLeft!==A&&(this.scrollLeft=A),this.$loop.schedule(this.CHANGE_H_SCROLL)},S.prototype.scrollTo=function(A,b){this.session.setScrollTop(b),this.session.setScrollLeft(A)},S.prototype.scrollBy=function(A,b){b&&this.session.setScrollTop(this.session.getScrollTop()+b),A&&this.session.setScrollLeft(this.session.getScrollLeft()+A)},S.prototype.isScrollableBy=function(A,b){if(b<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||b>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||A<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||A>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},S.prototype.pixelToScreenCoordinates=function(A,b){var m;if(this.$hasCssTransforms){m={top:0,left:0};var k=this.$fontMetrics.transformCoordinates([A,b]);A=k[1]-this.gutterWidth-this.margin.left,b=k[0]}else m=this.scroller.getBoundingClientRect();var E=A+this.scrollLeft-m.left-this.$padding,g=E/this.characterWidth,C=Math.floor((b+this.scrollTop-m.top)/this.lineHeight),T=this.$blockCursor?Math.floor(g):Math.round(g);return{row:C,column:T,side:g-T>0?1:-1,offsetX:E}},S.prototype.screenToTextCoordinates=function(A,b){var m;if(this.$hasCssTransforms){m={top:0,left:0};var k=this.$fontMetrics.transformCoordinates([A,b]);A=k[1]-this.gutterWidth-this.margin.left,b=k[0]}else m=this.scroller.getBoundingClientRect();var E=A+this.scrollLeft-m.left-this.$padding,g=E/this.characterWidth,C=this.$blockCursor?Math.floor(g):Math.round(g),T=Math.floor((b+this.scrollTop-m.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(C,0),E)},S.prototype.textToScreenCoordinates=function(A,b){var m=this.scroller.getBoundingClientRect(),k=this.session.documentToScreenPosition(A,b),E=this.$padding+(this.session.$bidiHandler.isBidiRow(k.row,A)?this.session.$bidiHandler.getPosLeft(k.column):Math.round(k.column*this.characterWidth)),g=k.row*this.lineHeight;return{pageX:m.left+E-this.scrollLeft,pageY:m.top+g-this.scrollTop}},S.prototype.visualizeFocus=function(){_.addCssClass(this.container,"ace_focus")},S.prototype.visualizeBlur=function(){_.removeCssClass(this.container,"ace_focus")},S.prototype.showComposition=function(A){this.$composition=A,A.cssText||(A.cssText=this.textarea.style.cssText),A.useTextareaForIME==null&&(A.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(_.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):A.markerId=this.session.addMarker(A.markerRange,"ace_composition_marker","text")},S.prototype.setCompositionText=function(A){var b=this.session.selection.cursor;this.addToken(A,"composition_placeholder",b.row,b.column),this.$moveTextAreaToCursor()},S.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),_.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var A=this.session.selection.cursor;this.removeExtraToken(A.row,A.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},S.prototype.setGhostText=function(A,b){var m=this.session.selection.cursor,k=b||{row:m.row,column:m.column};this.removeGhostText();var E=A.split(`
  787. `);this.addToken(E[0],"ghost_text",k.row,k.column),this.$ghostText={text:A,position:{row:k.row,column:k.column}},E.length>1&&(this.$ghostTextWidget={text:E.slice(1).join(`
  788. `),row:k.row,column:k.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},S.prototype.removeGhostText=function(){if(this.$ghostText){var A=this.$ghostText.position;this.removeExtraToken(A.row,A.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},S.prototype.addToken=function(A,b,m,k){var E=this.session;E.bgTokenizer.lines[m]=null;var g={type:b,value:A},C=E.getTokens(m);if(k==null||!C.length)C.push(g);else for(var T=0,x=0;x<C.length;x++){var D=C[x];if(T+=D.value.length,k<=T){var V=D.value.length-(T-k),F=D.value.slice(0,V),N=D.value.slice(V);C.splice(x,1,{type:D.type,value:F},g,{type:D.type,value:N});break}}this.updateLines(m,m)},S.prototype.removeExtraToken=function(A,b){this.session.bgTokenizer.lines[A]=null,this.updateLines(A,A)},S.prototype.setTheme=function(A,b){var m=this;if(this.$themeId=A,m._dispatchEvent("themeChange",{theme:A}),!A||typeof A=="string"){var k=A||this.$options.theme.initialValue;a.loadModule(["theme",k],E)}else E(A);function E(g){if(m.$themeId!=A)return b&&b();if(!g||!g.cssClass)throw new Error("couldn't load module "+A+" or it didn't call define");g.$id&&(m.$themeId=g.$id),_.importCssString(g.cssText,g.cssClass,m.container),m.theme&&_.removeCssClass(m.container,m.theme.cssClass);var C="padding"in g?g.padding:"padding"in(m.theme||{})?4:m.$padding;m.$padding&&C!=m.$padding&&m.setPadding(C),m.$theme=g.cssClass,m.theme=g,_.addCssClass(m.container,g.cssClass),_.setCssClass(m.container,"ace_dark",g.isDark),m.$size&&(m.$size.width=0,m.$updateSizeAsync()),m._dispatchEvent("themeLoaded",{theme:g}),b&&b()}},S.prototype.getTheme=function(){return this.$themeId},S.prototype.setStyle=function(A,b){_.setCssClass(this.container,A,b!==!1)},S.prototype.unsetStyle=function(A){_.removeCssClass(this.container,A)},S.prototype.setCursorStyle=function(A){_.setStyle(this.scroller.style,"cursor",A)},S.prototype.setMouseCursor=function(A){_.setStyle(this.scroller.style,"cursor",A)},S.prototype.attachToShadowRoot=function(){_.importCssString(w,"ace_editor.css",this.container)},S.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},S.prototype.$updateCustomScrollbar=function(A){var b=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,A===!0?(this.scrollBarV=new l(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(m){b.$scrollAnimation||b.session.setScrollTop(m.data-b.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(m){b.$scrollAnimation||b.session.setScrollLeft(m.data-b.scrollMargin.left)}),this.$scrollDecorator=new v(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new n(this.container,this),this.scrollBarH=new e(this.container,this),this.scrollBarV.addEventListener("scroll",function(m){b.$scrollAnimation||b.session.setScrollTop(m.data-b.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(m){b.$scrollAnimation||b.session.setScrollLeft(m.data-b.scrollMargin.left)}))},S.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var A=this;this.$resizeTimer=p.delayedCall(function(){A.destroyed||A.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(b){var m=b[0].contentRect.width,k=b[0].contentRect.height;Math.abs(A.$size.width-m)>1||Math.abs(A.$size.height-k)>1?A.$resizeTimer.delay():A.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},S}();M.prototype.CHANGE_CURSOR=1,M.prototype.CHANGE_MARKER=2,M.prototype.CHANGE_GUTTER=4,M.prototype.CHANGE_SCROLL=8,M.prototype.CHANGE_LINES=16,M.prototype.CHANGE_TEXT=32,M.prototype.CHANGE_SIZE=64,M.prototype.CHANGE_MARKER_BACK=128,M.prototype.CHANGE_MARKER_FRONT=256,M.prototype.CHANGE_FULL=512,M.prototype.CHANGE_H_SCROLL=1024,M.prototype.$changes=0,M.prototype.$padding=null,M.prototype.$frozen=!1,M.prototype.STEPS=8,d.implement(M.prototype,$),a.defineOptions(M.prototype,"renderer",{useResizeObserver:{set:function(S){!S&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):S&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(S){this.$textLayer.setShowInvisibles(S)&&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(S){typeof S=="number"&&(this.$printMarginColumn=S),this.$showPrintMargin=!!S,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(S){this.$gutter.style.display=S?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(S){this.$gutterLayer.$useSvgGutterIcons=S},initialValue:!1},showFoldedAnnotations:{set:function(S){this.$gutterLayer.$showFoldedAnnotations=S},initialValue:!1},fadeFoldWidgets:{set:function(S){_.setCssClass(this.$gutter,"ace_fade-fold-widgets",S)},initialValue:!1},showFoldWidgets:{set:function(S){this.$gutterLayer.setShowFoldWidgets(S),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(S){this.$textLayer.setDisplayIndentGuides(S)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(S){this.$textLayer.setHighlightIndentGuides(S)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(S){this.$gutterLayer.setHighlightGutterLine(S),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(S){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(S){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(S){typeof S=="number"&&(S=S+"px"),this.container.style.fontSize=S,this.updateFontSize()},initialValue:12},fontFamily:{set:function(S){this.container.style.fontFamily=S,this.updateFontSize()}},maxLines:{set:function(S){this.updateFull()}},minLines:{set:function(S){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(S){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(S){S=+S||0,this.$scrollPastEnd!=S&&(this.$scrollPastEnd=S,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(S){this.$gutterLayer.$fixedWidth=!!S,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(S){this.$updateCustomScrollbar(S)},initialValue:!1},theme:{set:function(S){this.setTheme(S)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!f.isMobile&&!f.isIE}}),L.VirtualRenderer=M}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(y,L,I){var d=y("../lib/oop"),_=y("../lib/net"),p=y("../lib/event_emitter").EventEmitter,a=y("../config");function c(e){var n="importScripts('"+_.qualifyURL(e)+"');";try{return new Blob([n],{type:"application/javascript"})}catch{var o=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,l=new o;return l.append(n),l.getBlob("application/javascript")}}function t(e){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(a.get("loadWorkerFromBlob")){var n=c(e),o=window.URL||window.webkitURL,l=o.createObjectURL(n);return new Worker(l)}return new Worker(e)}var i=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){d.implement(this,p),this.$createWorkerFromOldConfig=function(e,n,o,l,h){if(y.nameToUrl&&!y.toUrl&&(y.toUrl=y.nameToUrl),a.get("packaged")||!y.toUrl)l=l||a.moduleUrl(n,"worker");else{var u=this.$normalizePath;l=l||u(y.toUrl("ace/worker/worker.js",null,"_"));var $={};e.forEach(function(w){$[w]=u(y.toUrl(w,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=t(l),h&&this.send("importScripts",h),this.$worker.postMessage({init:!0,tlns:$,module:n,classname:o}),this.$worker},this.onMessage=function(e){var n=e.data;switch(n.type){case"event":this._signal(n.name,{data:n.data});break;case"call":var o=this.callbacks[n.id];o&&(o(n.data),delete this.callbacks[n.id]);break;case"error":this.reportError(n.data);break;case"log":window.console&&console.log&&console.log.apply(console,n.data);break}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return _.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(e){e.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,n){this.$worker.postMessage({command:e,args:n})},this.call=function(e,n,o){if(o){var l=this.callbackId++;this.callbacks[l]=o,n.push(l)}this.send(e,n)},this.emit=function(e,n){try{n.data&&n.data.err&&(n.data.err={message:n.data.err.message,stack:n.data.err.stack,code:n.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:n.data}})}catch(o){console.error(o.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),e.action=="insert"?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(i.prototype);var r=function(e,n,o){var l=null,h=!1,u=Object.create(p),$=[],w=new i({messageBuffer:$,terminate:function(){},postMessage:function(f){$.push(f),l&&(h?setTimeout(v):v())}});w.setEmitSync=function(f){h=f};var v=function(){var f=$.shift();f.command?l[f.command].apply(l,f.args):f.event&&u._signal(f.event,f.data)};return u.postMessage=function(f){w.onMessage({data:f})},u.callback=function(f,M){this.postMessage({type:"call",id:M,data:f})},u.emit=function(f,M){this.postMessage({type:"event",name:f,data:M})},a.loadModule(["worker",n],function(f){for(l=new f[o](u);$.length;)v()}),w};L.UIWorkerClient=r,L.WorkerClient=i,L.createWorker=t}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(y,L,I){var d=y("./range").Range,_=y("./lib/event_emitter").EventEmitter,p=y("./lib/oop"),a=function(){function c(t,i,r,e,n,o){var l=this;this.length=i,this.session=t,this.doc=t.getDocument(),this.mainClass=n,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=e,this.$onCursorChange=function(){setTimeout(function(){l.onCursorChange()})},this.$pos=r;var h=t.getUndoManager().$undoStack||t.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=h.length,this.setup(),t.selection.on("changeCursor",this.$onCursorChange)}return c.prototype.setup=function(){var t=this,i=this.doc,r=this.session;this.selectionBefore=r.selection.toJSON(),r.selection.inMultiSelectMode&&r.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var e=this.pos;e.$insertRight=!0,e.detach(),e.markerId=r.addMarker(new d(e.row,e.column,e.row,e.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(n){var o=i.createAnchor(n.row,n.column);o.$insertRight=!0,o.detach(),t.others.push(o)}),r.setUndoSelect(!1)},c.prototype.showOtherMarkers=function(){if(!this.othersActive){var t=this.session,i=this;this.othersActive=!0,this.others.forEach(function(r){r.markerId=t.addMarker(new d(r.row,r.column,r.row,r.column+i.length),i.othersClass,null,!1)})}},c.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var t=0;t<this.others.length;t++)this.session.removeMarker(this.others[t].markerId)}},c.prototype.onUpdate=function(t){if(this.$updating)return this.updateAnchors(t);var i=t;if(i.start.row===i.end.row&&i.start.row===this.pos.row){this.$updating=!0;var r=t.action==="insert"?i.end.column-i.start.column:i.start.column-i.end.column,e=i.start.column>=this.pos.column&&i.start.column<=this.pos.column+this.length+1,n=i.start.column-this.pos.column;if(this.updateAnchors(t),e&&(this.length+=r),e&&!this.session.$fromUndo){if(t.action==="insert")for(var o=this.others.length-1;o>=0;o--){var l=this.others[o],h={row:l.row,column:l.column+n};this.doc.insertMergedLines(h,t.lines)}else if(t.action==="remove")for(var o=this.others.length-1;o>=0;o--){var l=this.others[o],h={row:l.row,column:l.column+n};this.doc.remove(new d(h.row,h.column,h.row,h.column-r))}}this.$updating=!1,this.updateMarkers()}},c.prototype.updateAnchors=function(t){this.pos.onChange(t);for(var i=this.others.length;i--;)this.others[i].onChange(t);this.updateMarkers()},c.prototype.updateMarkers=function(){if(!this.$updating){var t=this,i=this.session,r=function(n,o){i.removeMarker(n.markerId),n.markerId=i.addMarker(new d(n.row,n.column,n.row,n.column+t.length),o,null,!1)};r(this.pos,this.mainClass);for(var e=this.others.length;e--;)r(this.others[e],this.othersClass)}},c.prototype.onCursorChange=function(t){if(!(this.$updating||!this.session)){var i=this.session.selection.getCursor();i.row===this.pos.row&&i.column>=this.pos.column&&i.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",t)):(this.hideOtherMarkers(),this._emit("cursorLeave",t))}},c.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},c.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var t=this.session.getUndoManager(),i=(t.$undoStack||t.$undostack).length-this.$undoStackDepth,r=0;r<i;r++)t.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},c}();p.implement(a.prototype,_),L.PlaceHolder=a}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(y,L,I){var d=y("../lib/event"),_=y("../lib/useragent");function p(c,t){return c.row==t.row&&c.column==t.column}function a(c){var t=c.domEvent,i=t.altKey,r=t.shiftKey,e=t.ctrlKey,n=c.getAccelKey(),o=c.getButton();if(e&&_.isMac&&(o=t.button),c.editor.inMultiSelectMode&&o==2){c.editor.textInput.onContextMenu(c.domEvent);return}if(!e&&!i&&!n){o===0&&c.editor.inMultiSelectMode&&c.editor.exitMultiSelectMode();return}if(o===0){var l=c.editor,h=l.selection,u=l.inMultiSelectMode,$=c.getDocumentPosition(),w=h.getCursor(),v=c.inSelection()||h.isEmpty()&&p($,w),f=c.x,M=c.y,S=function(N){f=N.clientX,M=N.clientY},A=l.session,b=l.renderer.pixelToScreenCoordinates(f,M),m=b,k;if(l.$mouseHandler.$enableJumpToDef)e&&i||n&&i?k=r?"block":"add":i&&l.$blockSelectEnabled&&(k="block");else if(n&&!i){if(k="add",!u&&r)return}else i&&l.$blockSelectEnabled&&(k="block");if(k&&_.isMac&&t.ctrlKey&&l.$mouseHandler.cancelContextMenu(),k=="add"){if(!u&&v)return;if(!u){var E=h.toOrientedRange();l.addSelectionMarker(E)}var g=h.rangeList.rangeAtPoint($);l.inVirtualSelectionMode=!0,r&&(g=null,E=h.ranges[0]||E,l.removeSelectionMarker(E)),l.once("mouseup",function(){var N=h.toOrientedRange();g&&N.isEmpty()&&p(g.cursor,N.cursor)?h.substractPoint(N.cursor):(r?h.substractPoint(E.cursor):E&&(l.removeSelectionMarker(E),h.addRange(E)),h.addRange(N)),l.inVirtualSelectionMode=!1})}else if(k=="block"){c.stop(),l.inVirtualSelectionMode=!0;var C,T=[],x=function(){var N=l.renderer.pixelToScreenCoordinates(f,M),U=A.screenToDocumentPosition(N.row,N.column,N.offsetX);p(m,N)&&p(U,h.lead)||(m=N,l.selection.moveToPosition(U),l.renderer.scrollCursorIntoView(),l.removeSelectionMarkers(T),T=h.rectangularRangeBlock(m,b),l.$mouseHandler.$clickSelection&&T.length==1&&T[0].isEmpty()&&(T[0]=l.$mouseHandler.$clickSelection.clone()),T.forEach(l.addSelectionMarker,l),l.updateSelectionMarkers())};u&&!n?h.toSingleRange():!u&&n&&(C=h.toOrientedRange(),l.addSelectionMarker(C)),r?b=A.documentToScreenPosition(h.lead):h.moveToPosition($),m={row:-1,column:-1};var D=function(N){x(),clearInterval(F),l.removeSelectionMarkers(T),T.length||(T=[h.toOrientedRange()]),C&&(l.removeSelectionMarker(C),h.toSingleRange(C));for(var U=0;U<T.length;U++)h.addRange(T[U]);l.inVirtualSelectionMode=!1,l.$mouseHandler.$clickSelection=null},V=x;d.capture(l.container,S,D);var F=setInterval(function(){V()},20);return c.preventDefault()}}}L.onMouseDown=a}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(y,L,I){L.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(_){_.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(_){_.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(_){_.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(_){_.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(_){_.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(_){_.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(_){_.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(_){_.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(_){_.multiSelect.rangeCount>1?_.multiSelect.joinSelections():_.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(_){_.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(_){_.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(_){_.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],L.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(_){_.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(_){return _&&_.inMultiSelectMode}}];var d=y("../keyboard/hash_handler").HashHandler;L.keyboardHandler=new d(L.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(y,L,I){var d=y("./range_list").RangeList,_=y("./range").Range,p=y("./selection").Selection,a=y("./mouse/multi_select_handler").onMouseDown,c=y("./lib/event"),t=y("./lib/lang"),i=y("./commands/multi_select_commands");L.commands=i.defaultCommands.concat(i.multiSelectCommands);var r=y("./search").Search,e=new r;function n(w,v,f){return e.$options.wrap=!0,e.$options.needle=v,e.$options.backwards=f==-1,e.find(w)}var o=y("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(o.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(w,v){if(w){if(!this.inMultiSelectMode&&this.rangeCount===0){var f=this.toOrientedRange();if(this.rangeList.add(f),this.rangeList.add(w),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),v||this.fromOrientedRange(w);this.rangeList.removeAll(),this.rangeList.add(f),this.$onAddRange(f)}w.cursor||(w.cursor=w.end);var M=this.rangeList.add(w);return this.$onAddRange(w),M.length&&this.$onRemoveRange(M),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),v||this.fromOrientedRange(w)}},this.toSingleRange=function(w){w=w||this.ranges[0];var v=this.rangeList.removeAll();v.length&&this.$onRemoveRange(v),w&&this.fromOrientedRange(w)},this.substractPoint=function(w){var v=this.rangeList.substractPoint(w);if(v)return this.$onRemoveRange(v),v[0]},this.mergeOverlappingRanges=function(){var w=this.rangeList.merge();w.length&&this.$onRemoveRange(w)},this.$onAddRange=function(w){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(w),this._signal("addRange",{range:w})},this.$onRemoveRange=function(w){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var v=this.rangeList.ranges.pop();w.push(v),this.rangeCount=0}for(var f=w.length;f--;){var M=this.ranges.indexOf(w[f]);this.ranges.splice(M,1)}this._signal("removeRange",{ranges:w}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),v=v||this.ranges[0],v&&!v.isEqual(this.getRange())&&this.fromOrientedRange(v)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new d,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var w=this.ranges.length?this.ranges:[this.getRange()],v=[],f=0;f<w.length;f++){var M=w[f],S=M.start.row,A=M.end.row;if(S===A)v.push(M.clone());else{for(v.push(new _(S,M.start.column,S,this.session.getLine(S).length));++S<A;)v.push(this.getLineRange(S,!0));v.push(new _(A,0,A,M.end.column))}f==0&&!this.isBackwards()&&(v=v.reverse())}this.toSingleRange();for(var f=v.length;f--;)this.addRange(v[f])},this.joinSelections=function(){var w=this.rangeList.ranges,v=w[w.length-1],f=_.fromPoints(w[0].start,v.end);this.toSingleRange(),this.setSelectionRange(f,v.cursor==v.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var w=this.rangeList.ranges,v=w[w.length-1],f=_.fromPoints(w[0].start,v.end);this.toSingleRange(),this.setSelectionRange(f,v.cursor==v.start)}else{var M=this.session.documentToScreenPosition(this.cursor),S=this.session.documentToScreenPosition(this.anchor),A=this.rectangularRangeBlock(M,S);A.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(w,v,f){var M=[],S=w.column<v.column;if(S)var A=w.column,b=v.column,m=w.offsetX,k=v.offsetX;else var A=v.column,b=w.column,m=v.offsetX,k=w.offsetX;var E=w.row<v.row;if(E)var g=w.row,C=v.row;else var g=v.row,C=w.row;A<0&&(A=0),g<0&&(g=0),g==C&&(f=!0);for(var T,x=g;x<=C;x++){var D=_.fromPoints(this.session.screenToDocumentPosition(x,A,m),this.session.screenToDocumentPosition(x,b,k));if(D.isEmpty()){if(T&&h(D.end,T))break;T=D.end}D.cursor=S?D.start:D.end,M.push(D)}if(E&&M.reverse(),!f){for(var V=M.length-1;M[V].isEmpty()&&V>0;)V--;if(V>0)for(var F=0;M[F].isEmpty();)F++;for(var N=V;N>=F;N--)M[N].isEmpty()&&M.splice(N,1)}return M}}.call(p.prototype);var l=y("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(w){w.cursor||(w.cursor=w.end);var v=this.getSelectionStyle();return w.marker=this.session.addMarker(w,"ace_selection",v),this.session.$selectionMarkers.push(w),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,w},this.removeSelectionMarker=function(w){if(w.marker){this.session.removeMarker(w.marker);var v=this.session.$selectionMarkers.indexOf(w);v!=-1&&this.session.$selectionMarkers.splice(v,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(w){for(var v=this.session.$selectionMarkers,f=w.length;f--;){var M=w[f];if(M.marker){this.session.removeMarker(M.marker);var S=v.indexOf(M);S!=-1&&v.splice(S,1)}}this.session.selectionMarkerCount=v.length},this.$onAddRange=function(w){this.addSelectionMarker(w.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(w){this.removeSelectionMarkers(w.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(w){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(i.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(w){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(i.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(w){var v=w.command,f=w.editor;if(f.multiSelect){if(v.multiSelectAction)v.multiSelectAction=="forEach"?M=f.forEachSelection(v,w.args):v.multiSelectAction=="forEachLine"?M=f.forEachSelection(v,w.args,!0):v.multiSelectAction=="single"?(f.exitMultiSelectMode(),M=v.exec(f,w.args||{})):M=v.multiSelectAction(f,w.args||{});else{var M=v.exec(f,w.args||{});f.multiSelect.addRange(f.multiSelect.toOrientedRange()),f.multiSelect.mergeOverlappingRanges()}return M}},this.forEachSelection=function(w,v,f){if(!this.inVirtualSelectionMode){var M=f&&f.keepOrder,S=f==!0||f&&f.$byLines,A=this.session,b=this.selection,m=b.rangeList,k=(M?b:m).ranges,E;if(!k.length)return w.exec?w.exec(this,v||{}):w(this,v||{});var g=b._eventRegistry;b._eventRegistry={};var C=new p(A);this.inVirtualSelectionMode=!0;for(var T=k.length;T--;){if(S)for(;T>0&&k[T].start.row==k[T-1].end.row;)T--;C.fromOrientedRange(k[T]),C.index=T,this.selection=A.selection=C;var x=w.exec?w.exec(this,v||{}):w(this,v||{});!E&&x!==void 0&&(E=x),C.toOrientedRange(k[T])}C.detach(),this.selection=A.selection=b,this.inVirtualSelectionMode=!1,b._eventRegistry=g,b.mergeOverlappingRanges(),b.ranges[0]&&b.fromOrientedRange(b.ranges[0]);var D=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),D&&D.from==D.to&&this.renderer.animateScrolling(D.from),E}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var w="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var v=this.multiSelect.rangeList.ranges,f=[],M=0;M<v.length;M++)f.push(this.session.getTextRange(v[M]));var S=this.session.getDocument().getNewLineCharacter();w=f.join(S),w.length==(f.length-1)*S.length&&(w="")}else this.selection.isEmpty()||(w=this.session.getTextRange(this.getSelectionRange()));return w},this.$checkMultiselectChange=function(w,v){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var f=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&v==this.multiSelect.anchor)return;var M=v==this.multiSelect.anchor?f.cursor==f.start?f.end:f.start:f.cursor;M.row!=v.row||this.session.$clipPositionToDocument(M.row,M.column).column!=v.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(w,v,f){if(v=v||{},v.needle=w||v.needle,v.needle==null){var M=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();v.needle=this.session.getTextRange(M)}this.$search.set(v);var S=this.$search.findAll(this.session);if(!S.length)return 0;var A=this.multiSelect;f||A.toSingleRange(S[0]);for(var b=S.length;b--;)A.addRange(S[b],!0);return M&&A.rangeList.rangeAtPoint(M.start)&&A.addRange(M,!0),S.length},this.selectMoreLines=function(w,v){var f=this.selection.toOrientedRange(),M=f.cursor==f.end,S=this.session.documentToScreenPosition(f.cursor);this.selection.$desiredColumn&&(S.column=this.selection.$desiredColumn);var A=this.session.screenToDocumentPosition(S.row+w,S.column);if(f.isEmpty())var m=A;else var b=this.session.documentToScreenPosition(M?f.end:f.start),m=this.session.screenToDocumentPosition(b.row+w,b.column);if(M){var k=_.fromPoints(A,m);k.cursor=k.start}else{var k=_.fromPoints(m,A);k.cursor=k.end}if(k.desiredColumn=S.column,!this.selection.inMultiSelectMode)this.selection.addRange(f);else if(v)var E=f.cursor;this.selection.addRange(k),E&&this.selection.substractPoint(E)},this.transposeSelections=function(w){for(var v=this.session,f=v.multiSelect,M=f.ranges,S=M.length;S--;){var A=M[S];if(A.isEmpty()){var b=v.getWordRange(A.start.row,A.start.column);A.start.row=b.start.row,A.start.column=b.start.column,A.end.row=b.end.row,A.end.column=b.end.column}}f.mergeOverlappingRanges();for(var m=[],S=M.length;S--;){var A=M[S];m.unshift(v.getTextRange(A))}w<0?m.unshift(m.pop()):m.push(m.shift());for(var S=M.length;S--;){var A=M[S],b=A.clone();v.replace(A,m[S]),A.start.row=b.start.row,A.start.column=b.start.column}f.fromOrientedRange(f.ranges[0])},this.selectMore=function(w,v,f){var M=this.session,S=M.multiSelect,A=S.toOrientedRange();if(!(A.isEmpty()&&(A=M.getWordRange(A.start.row,A.start.column),A.cursor=w==-1?A.start:A.end,this.multiSelect.addRange(A),f))){var b=M.getTextRange(A),m=n(M,b,w);m&&(m.cursor=w==-1?m.start:m.end,this.session.unfold(m),this.multiSelect.addRange(m),this.renderer.scrollCursorIntoView(null,.5)),v&&this.multiSelect.substractPoint(A.cursor)}},this.alignCursors=function(){var w=this.session,v=w.multiSelect,f=v.ranges,M=-1,S=f.filter(function(V){if(V.cursor.row==M)return!0;M=V.cursor.row});if(!f.length||S.length==f.length-1){var A=this.selection.getRange(),b=A.start.row,m=A.end.row,k=b==m;if(k){var E=this.session.getLength(),g;do g=this.session.getLine(m);while(/[=:]/.test(g)&&++m<E);do g=this.session.getLine(b);while(/[=:]/.test(g)&&--b>0);b<0&&(b=0),m>=E&&(m=E-1)}var C=this.session.removeFullLines(b,m);C=this.$reAlignText(C,k),this.session.insert({row:b,column:0},C.join(`
  789. `)+`
  790. `),k||(A.start.column=0,A.end.column=C[C.length-1].length),this.selection.setRange(A)}else{S.forEach(function(V){v.substractPoint(V.cursor)});var T=0,x=1/0,D=f.map(function(V){var F=V.cursor,N=w.getLine(F.row),U=N.substr(F.column).search(/\S/g);return U==-1&&(U=0),F.column>T&&(T=F.column),U<x&&(x=U),U});f.forEach(function(V,F){var N=V.cursor,U=T-N.column,W=D[F]-x;U>W?w.insert(N,t.stringRepeat(" ",U-W)):w.remove(new _(N.row,N.column,N.row,N.column-U+W)),V.start.column=V.end.column=T,V.start.row=V.end.row=N.row,V.cursor=V.end}),v.fromOrientedRange(f[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(w,v){var f=!0,M=!0,S,A,b;return w.map(function(C){var T=C.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?S==null?(S=T[1].length,A=T[2].length,b=T[3].length,T):(S+A+b!=T[1].length+T[2].length+T[3].length&&(M=!1),S!=T[1].length&&(f=!1),S>T[1].length&&(S=T[1].length),A<T[2].length&&(A=T[2].length),b>T[3].length&&(b=T[3].length),T):[C]}).map(v?k:f?M?E:k:g);function m(C){return t.stringRepeat(" ",C)}function k(C){return C[2]?m(S)+C[2]+m(A-C[2].length+b)+C[4].replace(/^([=:])\s+/,"$1 "):C[0]}function E(C){return C[2]?m(S+A-C[2].length)+C[2]+m(b)+C[4].replace(/^([=:])\s+/,"$1 "):C[0]}function g(C){return C[2]?m(S)+C[2]+m(b)+C[4].replace(/^([=:])\s+/,"$1 "):C[0]}}}).call(l.prototype);function h(w,v){return w.row==v.row&&w.column==v.column}L.onSessionChange=function(w){var v=w.session;v&&!v.multiSelect&&(v.$selectionMarkers=[],v.selection.$initRangeList(),v.multiSelect=v.selection),this.multiSelect=v&&v.multiSelect;var f=w.oldSession;f&&(f.multiSelect.off("addRange",this.$onAddRange),f.multiSelect.off("removeRange",this.$onRemoveRange),f.multiSelect.off("multiSelect",this.$onMultiSelect),f.multiSelect.off("singleSelect",this.$onSingleSelect),f.multiSelect.lead.off("change",this.$checkMultiselectChange),f.multiSelect.anchor.off("change",this.$checkMultiselectChange)),v&&(v.multiSelect.on("addRange",this.$onAddRange),v.multiSelect.on("removeRange",this.$onRemoveRange),v.multiSelect.on("multiSelect",this.$onMultiSelect),v.multiSelect.on("singleSelect",this.$onSingleSelect),v.multiSelect.lead.on("change",this.$checkMultiselectChange),v.multiSelect.anchor.on("change",this.$checkMultiselectChange)),v&&this.inMultiSelectMode!=v.selection.inMultiSelectMode&&(v.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function u(w){w.$multiselectOnSessionChange||(w.$onAddRange=w.$onAddRange.bind(w),w.$onRemoveRange=w.$onRemoveRange.bind(w),w.$onMultiSelect=w.$onMultiSelect.bind(w),w.$onSingleSelect=w.$onSingleSelect.bind(w),w.$multiselectOnSessionChange=L.onSessionChange.bind(w),w.$checkMultiselectChange=w.$checkMultiselectChange.bind(w),w.$multiselectOnSessionChange(w),w.on("changeSession",w.$multiselectOnSessionChange),w.on("mousedown",a),w.commands.addCommands(i.defaultCommands),$(w))}function $(w){if(!w.textInput)return;var v=w.textInput.getElement(),f=!1;c.addListener(v,"keydown",function(S){var A=S.keyCode==18&&!(S.ctrlKey||S.shiftKey||S.metaKey);w.$blockSelectEnabled&&A?f||(w.renderer.setMouseCursor("crosshair"),f=!0):f&&M()},w),c.addListener(v,"keyup",M,w),c.addListener(v,"blur",M,w);function M(S){f&&(w.renderer.setMouseCursor(""),f=!1)}}L.MultiSelect=u,y("./config").defineOptions(l.prototype,"editor",{enableMultiselect:{set:function(w){u(this),w?this.on("mousedown",a):this.off("mousedown",a)},value:!0},enableBlockSelect:{set:function(w){this.$blockSelectEnabled=w},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(y,L,I){var d=y("../../range").Range,_=L.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(p,a,c){var t=p.getLine(c);return this.foldingStartMarker.test(t)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(t)?"end":""},this.getFoldWidgetRange=function(p,a,c){return null},this.indentationBlock=function(p,a,c){var t=/\S/,i=p.getLine(a),r=i.search(t);if(r!=-1){for(var e=c||i.length,n=p.getLength(),o=a,l=a;++a<n;){var h=p.getLine(a).search(t);if(h!=-1){if(h<=r){var u=p.getTokenAt(a,0);if(!u||u.type!=="string")break}l=a}}if(l>o){var $=p.getLine(l).length;return new d(o,e,l,$)}}},this.openingBracketBlock=function(p,a,c,t,i){var r={row:c,column:t+1},e=p.$findClosingBracket(a,r,i);if(e){var n=p.foldWidgets[e.row];return n==null&&(n=p.getFoldWidget(e.row)),n=="start"&&e.row>r.row&&(e.row--,e.column=p.getLine(e.row).length),d.fromPoints(r,e)}},this.closingBracketBlock=function(p,a,c,t,i){var r={row:c,column:t},e=p.$findOpeningBracket(a,r);if(e)return e.column++,r.column--,d.fromPoints(e,r)}}).call(_.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(y,L,I){var d=y("../line_widgets").LineWidgets,_=y("../lib/dom"),p=y("../range").Range,a=y("../config").nls;function c(i,r,e){for(var n=0,o=i.length-1;n<=o;){var l=n+o>>1,h=e(r,i[l]);if(h>0)n=l+1;else if(h<0)o=l-1;else return l}return-(n+1)}function t(i,r,e){var n=i.getAnnotations().sort(p.comparePoints);if(n.length){var o=c(n,{row:r,column:-1},p.comparePoints);o<0&&(o=-o-1),o>=n.length?o=e>0?0:n.length-1:o===0&&e<0&&(o=n.length-1);var l=n[o];if(!(!l||!e)){if(l.row===r){do l=n[o+=e];while(l&&l.row===r);if(!l)return n.slice()}var h=[];r=l.row;do h[e<0?"unshift":"push"](l),l=n[o+=e];while(l&&l.row==r);return h.length&&h}}}L.showErrorMarker=function(i,r){var e=i.session;e.widgetManager||(e.widgetManager=new d(e),e.widgetManager.attach(i));var n=i.getCursorPosition(),o=n.row,l=e.widgetManager.getWidgetsAtRow(o).filter(function(A){return A.type=="errorMarker"})[0];l?l.destroy():o-=r;var h=t(e,o,r),u;if(h){var $=h[0];n.column=($.pos&&typeof $.column!="number"?$.pos.sc:$.column)||0,n.row=$.row,u=i.renderer.$gutterLayer.$annotations[n.row]}else{if(l)return;u={text:[a("Looks good!")],className:"ace_ok"}}i.session.unfold(n.row),i.selection.moveToPosition(n);var w={row:n.row,fixedWidth:!0,coverGutter:!0,el:_.createElement("div"),type:"errorMarker"},v=w.el.appendChild(_.createElement("div")),f=w.el.appendChild(_.createElement("div"));f.className="error_widget_arrow "+u.className;var M=i.renderer.$cursorLayer.getPixelPosition(n).left;f.style.left=M+i.renderer.gutterWidth-5+"px",w.el.className="error_widget_wrapper",v.className="error_widget "+u.className,v.innerHTML=u.text.join("<br>"),v.appendChild(_.createElement("div"));var S=function(A,b,m){if(b===0&&(m==="esc"||m==="return"))return w.destroy(),{command:"null"}};w.destroy=function(){i.$mouseHandler.isMousePressed||(i.keyBinding.removeKeyboardHandler(S),e.widgetManager.removeLineWidget(w),i.off("changeSelection",w.destroy),i.off("changeSession",w.destroy),i.off("mouseup",w.destroy),i.off("change",w.destroy))},i.keyBinding.addKeyboardHandler(S),i.on("changeSelection",w.destroy),i.on("changeSession",w.destroy),i.on("mouseup",w.destroy),i.on("change",w.destroy),i.session.widgetManager.addLineWidget(w),w.el.onmousedown=i.focus.bind(i),i.renderer.scrollCursorIntoView(null,.5,{bottom:w.el.offsetHeight})},_.importCssString(`
  791. .error_widget_wrapper {
  792. background: inherit;
  793. color: inherit;
  794. border:none
  795. }
  796. .error_widget {
  797. border-top: solid 2px;
  798. border-bottom: solid 2px;
  799. margin: 5px 0;
  800. padding: 10px 40px;
  801. white-space: pre-wrap;
  802. }
  803. .error_widget.ace_error, .error_widget_arrow.ace_error{
  804. border-color: #ff5a5a
  805. }
  806. .error_widget.ace_warning, .error_widget_arrow.ace_warning{
  807. border-color: #F1D817
  808. }
  809. .error_widget.ace_info, .error_widget_arrow.ace_info{
  810. border-color: #5a5a5a
  811. }
  812. .error_widget.ace_ok, .error_widget_arrow.ace_ok{
  813. border-color: #5aaa5a
  814. }
  815. .error_widget_arrow {
  816. position: absolute;
  817. border: solid 5px;
  818. border-top-color: transparent!important;
  819. border-right-color: transparent!important;
  820. border-left-color: transparent!important;
  821. top: -5px;
  822. }
  823. `,"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(y,L,I){y("./loader_build")(L);var d=y("./lib/dom"),_=y("./range").Range,p=y("./editor").Editor,a=y("./edit_session").EditSession,c=y("./undomanager").UndoManager,t=y("./virtual_renderer").VirtualRenderer;y("./worker/worker_client"),y("./keyboard/hash_handler"),y("./placeholder"),y("./multi_select"),y("./mode/folding/fold_mode"),y("./theme/textmate"),y("./ext/error_marker"),L.config=y("./config"),L.edit=function(i,r){if(typeof i=="string"){var e=i;if(i=document.getElementById(e),!i)throw new Error("ace.edit can't find div #"+e)}if(i&&i.env&&i.env.editor instanceof p)return i.env.editor;var n="";if(i&&/input|textarea/i.test(i.tagName)){var o=i;n=o.value,i=d.createElement("pre"),o.parentNode.replaceChild(i,o)}else i&&(n=i.textContent,i.innerHTML="");var l=L.createEditSession(n),h=new p(new t(i),l,r),u={document:l,editor:h,onResize:h.resize.bind(h,null)};return o&&(u.textarea=o),h.on("destroy",function(){u.editor.container.env=null}),h.container.env=h.env=u,h},L.createEditSession=function(i,r){var e=new a(i,r);return e.setUndoManager(new c),e},L.Range=_,L.Editor=p,L.EditSession=a,L.UndoManager=c,L.VirtualRenderer=t,L.version=L.config.version}),function(){ace.require(["ace/ace"],function(y){y&&(y.config.init(!0),y.define=ace.define),window.ace||(window.ace=y);for(var L in y)y.hasOwnProperty(L)&&(window.ace[L]=y[L]);window.ace.default=window.ace,s&&(s.exports=window.ace)})}()})(pi);var gt=pi.exports,gi={exports:{}},In="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",On=In,xn=On;function mi(){}function vi(){}vi.resetWarningCache=mi;var Dn=function(){function s(L,I,d,_,p,a){if(a!==xn){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}s.isRequired=s;function O(){return s}var y={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:O,element:s,elementType:s,instanceOf:O,node:s,objectOf:O,oneOf:O,oneOfType:O,shape:O,exact:O,checkPropTypes:vi,resetWarningCache:mi};return y.PropTypes=y,y};gi.exports=Dn();var Dt=gi.exports,mt={exports:{}};mt.exports;(function(s,O){var y=200,L="__lodash_hash_undefined__",I=1,d=2,_=9007199254740991,p="[object Arguments]",a="[object Array]",c="[object AsyncFunction]",t="[object Boolean]",i="[object Date]",r="[object Error]",e="[object Function]",n="[object GeneratorFunction]",o="[object Map]",l="[object Number]",h="[object Null]",u="[object Object]",$="[object Promise]",w="[object Proxy]",v="[object RegExp]",f="[object Set]",M="[object String]",S="[object Symbol]",A="[object Undefined]",b="[object WeakMap]",m="[object ArrayBuffer]",k="[object DataView]",E="[object Float32Array]",g="[object Float64Array]",C="[object Int8Array]",T="[object Int16Array]",x="[object Int32Array]",D="[object Uint8Array]",V="[object Uint8ClampedArray]",F="[object Uint16Array]",N="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,z={};z[E]=z[g]=z[C]=z[T]=z[x]=z[D]=z[V]=z[F]=z[N]=!0,z[p]=z[a]=z[m]=z[t]=z[k]=z[i]=z[r]=z[e]=z[o]=z[l]=z[u]=z[v]=z[f]=z[M]=z[b]=!1;var G=typeof ye=="object"&&ye&&ye.Object===Object&&ye,X=typeof self=="object"&&self&&self.Object===Object&&self,Y=G||X||Function("return this")(),Q=O&&!O.nodeType&&O,q=Q&&!0&&s&&!s.nodeType&&s,ne=q&&q.exports===Q,ae=ne&&G.process,Ee=function(){try{return ae&&ae.binding&&ae.binding("util")}catch{}}(),ge=Ee&&Ee.isTypedArray;function fe(P,H){for(var K=-1,Z=P==null?0:P.length,pe=0,re=[];++K<Z;){var _e=P[K];H(_e,K,P)&&(re[pe++]=_e)}return re}function be(P,H){for(var K=-1,Z=H.length,pe=P.length;++K<Z;)P[pe+K]=H[K];return P}function Fe(P,H){for(var K=-1,Z=P==null?0:P.length;++K<Z;)if(H(P[K],K,P))return!0;return!1}function xe(P,H){for(var K=-1,Z=Array(P);++K<P;)Z[K]=H(K);return Z}function tt(P){return function(H){return P(H)}}function Qe(P,H){return P.has(H)}function it(P,H){return P==null?void 0:P[H]}function wt(P){var H=-1,K=Array(P.size);return P.forEach(function(Z,pe){K[++H]=[pe,Z]}),K}function j(P,H){return function(K){return P(H(K))}}function J(P){var H=-1,K=Array(P.size);return P.forEach(function(Z){K[++H]=Z}),K}var te=Array.prototype,oe=Function.prototype,se=Object.prototype,ue=Y["__core-js_shared__"],me=oe.toString,le=se.hasOwnProperty,de=function(){var P=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""}(),ce=se.toString,Se=RegExp("^"+me.call(le).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=ne?Y.Buffer:void 0,Be=Y.Symbol,Nt=Y.Uint8Array,zt=se.propertyIsEnumerable,Oi=te.splice,He=Be?Be.toStringTag:void 0,Ut=Object.getOwnPropertySymbols,xi=We?We.isBuffer:void 0,Di=j(Object.keys,Object),bt=Ze(Y,"DataView"),nt=Ze(Y,"Map"),Lt=Ze(Y,"Promise"),Et=Ze(Y,"Set"),At=Ze(Y,"WeakMap"),rt=Ze(Object,"create"),Pi=Ue(bt),Vi=Ue(nt),Fi=Ue(Lt),Wi=Ue(Et),Bi=Ue(At),Gt=Be?Be.prototype:void 0,$t=Gt?Gt.valueOf:void 0;function Ne(P){var H=-1,K=P==null?0:P.length;for(this.clear();++H<K;){var Z=P[H];this.set(Z[0],Z[1])}}function Hi(){this.__data__=rt?rt(null):{},this.size=0}function Ni(P){var H=this.has(P)&&delete this.__data__[P];return this.size-=H?1:0,H}function zi(P){var H=this.__data__;if(rt){var K=H[P];return K===L?void 0:K}return le.call(H,P)?H[P]:void 0}function Ui(P){var H=this.__data__;return rt?H[P]!==void 0:le.call(H,P)}function Gi(P,H){var K=this.__data__;return this.size+=this.has(P)?0:1,K[P]=rt&&H===void 0?L:H,this}Ne.prototype.clear=Hi,Ne.prototype.delete=Ni,Ne.prototype.get=zi,Ne.prototype.has=Ui,Ne.prototype.set=Gi;function ke(P){var H=-1,K=P==null?0:P.length;for(this.clear();++H<K;){var Z=P[H];this.set(Z[0],Z[1])}}function ji(){this.__data__=[],this.size=0}function Ki(P){var H=this.__data__,K=ct(H,P);if(K<0)return!1;var Z=H.length-1;return K==Z?H.pop():Oi.call(H,K,1),--this.size,!0}function Yi(P){var H=this.__data__,K=ct(H,P);return K<0?void 0:H[K][1]}function Xi(P){return ct(this.__data__,P)>-1}function Qi(P,H){var K=this.__data__,Z=ct(K,P);return Z<0?(++this.size,K.push([P,H])):K[Z][1]=H,this}ke.prototype.clear=ji,ke.prototype.delete=Ki,ke.prototype.get=Yi,ke.prototype.has=Xi,ke.prototype.set=Qi;function ze(P){var H=-1,K=P==null?0:P.length;for(this.clear();++H<K;){var Z=P[H];this.set(Z[0],Z[1])}}function Zi(){this.size=0,this.__data__={hash:new Ne,map:new(nt||ke),string:new Ne}}function Ji(P){var H=ht(this,P).delete(P);return this.size-=H?1:0,H}function qi(P){return ht(this,P).get(P)}function en(P){return ht(this,P).has(P)}function tn(P,H){var K=ht(this,P),Z=K.size;return K.set(P,H),this.size+=K.size==Z?0:1,this}ze.prototype.clear=Zi,ze.prototype.delete=Ji,ze.prototype.get=qi,ze.prototype.has=en,ze.prototype.set=tn;function lt(P){var H=-1,K=P==null?0:P.length;for(this.__data__=new ze;++H<K;)this.add(P[H])}function nn(P){return this.__data__.set(P,L),this}function rn(P){return this.__data__.has(P)}lt.prototype.add=lt.prototype.push=nn,lt.prototype.has=rn;function De(P){var H=this.__data__=new ke(P);this.size=H.size}function on(){this.__data__=new ke,this.size=0}function sn(P){var H=this.__data__,K=H.delete(P);return this.size=H.size,K}function an(P){return this.__data__.get(P)}function ln(P){return this.__data__.has(P)}function cn(P,H){var K=this.__data__;if(K instanceof ke){var Z=K.__data__;if(!nt||Z.length<y-1)return Z.push([P,H]),this.size=++K.size,this;K=this.__data__=new ze(Z)}return K.set(P,H),this.size=K.size,this}De.prototype.clear=on,De.prototype.delete=sn,De.prototype.get=an,De.prototype.has=ln,De.prototype.set=cn;function hn(P,H){var K=ut(P),Z=!K&&$n(P),pe=!K&&!Z&&St(P),re=!K&&!Z&&!pe&&ei(P),_e=K||Z||pe||re,we=_e?xe(P.length,String):[],Le=we.length;for(var ve in P)(H||le.call(P,ve))&&!(_e&&(ve=="length"||pe&&(ve=="offset"||ve=="parent")||re&&(ve=="buffer"||ve=="byteLength"||ve=="byteOffset")||wn(ve,Le)))&&we.push(ve);return we}function ct(P,H){for(var K=P.length;K--;)if(Qt(P[K][0],H))return K;return-1}function un(P,H,K){var Z=H(P);return ut(P)?Z:be(Z,K(P))}function ot(P){return P==null?P===void 0?A:h:He&&He in Object(P)?_n(P):An(P)}function jt(P){return st(P)&&ot(P)==p}function Kt(P,H,K,Z,pe){return P===H?!0:P==null||H==null||!st(P)&&!st(H)?P!==P&&H!==H:dn(P,H,K,Z,Kt,pe)}function dn(P,H,K,Z,pe,re){var _e=ut(P),we=ut(H),Le=_e?a:Pe(P),ve=we?a:Pe(H);Le=Le==p?u:Le,ve=ve==p?u:ve;var $e=Le==u,Te=ve==u,Ae=Le==ve;if(Ae&&St(P)){if(!St(H))return!1;_e=!0,$e=!1}if(Ae&&!$e)return re||(re=new De),_e||ei(P)?Yt(P,H,K,Z,pe,re):mn(P,H,Le,K,Z,pe,re);if(!(K&I)){var Me=$e&&le.call(P,"__wrapped__"),Ce=Te&&le.call(H,"__wrapped__");if(Me||Ce){var Ve=Me?P.value():P,Ie=Ce?H.value():H;return re||(re=new De),pe(Ve,Ie,K,Z,re)}}return Ae?(re||(re=new De),vn(P,H,K,Z,pe,re)):!1}function fn(P){if(!qt(P)||Ln(P))return!1;var H=Zt(P)?Se:W;return H.test(Ue(P))}function pn(P){return st(P)&&Jt(P.length)&&!!z[ot(P)]}function gn(P){if(!En(P))return Di(P);var H=[];for(var K in Object(P))le.call(P,K)&&K!="constructor"&&H.push(K);return H}function Yt(P,H,K,Z,pe,re){var _e=K&I,we=P.length,Le=H.length;if(we!=Le&&!(_e&&Le>we))return!1;var ve=re.get(P);if(ve&&re.get(H))return ve==H;var $e=-1,Te=!0,Ae=K&d?new lt:void 0;for(re.set(P,H),re.set(H,P);++$e<we;){var Me=P[$e],Ce=H[$e];if(Z)var Ve=_e?Z(Ce,Me,$e,H,P,re):Z(Me,Ce,$e,P,H,re);if(Ve!==void 0){if(Ve)continue;Te=!1;break}if(Ae){if(!Fe(H,function(Ie,Ge){if(!Qe(Ae,Ge)&&(Me===Ie||pe(Me,Ie,K,Z,re)))return Ae.push(Ge)})){Te=!1;break}}else if(!(Me===Ce||pe(Me,Ce,K,Z,re))){Te=!1;break}}return re.delete(P),re.delete(H),Te}function mn(P,H,K,Z,pe,re,_e){switch(K){case k:if(P.byteLength!=H.byteLength||P.byteOffset!=H.byteOffset)return!1;P=P.buffer,H=H.buffer;case m:return!(P.byteLength!=H.byteLength||!re(new Nt(P),new Nt(H)));case t:case i:case l:return Qt(+P,+H);case r:return P.name==H.name&&P.message==H.message;case v:case M:return P==H+"";case o:var we=wt;case f:var Le=Z&I;if(we||(we=J),P.size!=H.size&&!Le)return!1;var ve=_e.get(P);if(ve)return ve==H;Z|=d,_e.set(P,H);var $e=Yt(we(P),we(H),Z,pe,re,_e);return _e.delete(P),$e;case S:if($t)return $t.call(P)==$t.call(H)}return!1}function vn(P,H,K,Z,pe,re){var _e=K&I,we=Xt(P),Le=we.length,ve=Xt(H),$e=ve.length;if(Le!=$e&&!_e)return!1;for(var Te=Le;Te--;){var Ae=we[Te];if(!(_e?Ae in H:le.call(H,Ae)))return!1}var Me=re.get(P);if(Me&&re.get(H))return Me==H;var Ce=!0;re.set(P,H),re.set(H,P);for(var Ve=_e;++Te<Le;){Ae=we[Te];var Ie=P[Ae],Ge=H[Ae];if(Z)var ti=_e?Z(Ge,Ie,Ae,H,P,re):Z(Ie,Ge,Ae,P,H,re);if(!(ti===void 0?Ie===Ge||pe(Ie,Ge,K,Z,re):ti)){Ce=!1;break}Ve||(Ve=Ae=="constructor")}if(Ce&&!Ve){var dt=P.constructor,ft=H.constructor;dt!=ft&&"constructor"in P&&"constructor"in H&&!(typeof dt=="function"&&dt instanceof dt&&typeof ft=="function"&&ft instanceof ft)&&(Ce=!1)}return re.delete(P),re.delete(H),Ce}function Xt(P){return un(P,Cn,yn)}function ht(P,H){var K=P.__data__;return bn(H)?K[typeof H=="string"?"string":"hash"]:K.map}function Ze(P,H){var K=it(P,H);return fn(K)?K:void 0}function _n(P){var H=le.call(P,He),K=P[He];try{P[He]=void 0;var Z=!0}catch{}var pe=ce.call(P);return Z&&(H?P[He]=K:delete P[He]),pe}var yn=Ut?function(P){return P==null?[]:(P=Object(P),fe(Ut(P),function(H){return zt.call(P,H)}))}:Tn,Pe=ot;(bt&&Pe(new bt(new ArrayBuffer(1)))!=k||nt&&Pe(new nt)!=o||Lt&&Pe(Lt.resolve())!=$||Et&&Pe(new Et)!=f||At&&Pe(new At)!=b)&&(Pe=function(P){var H=ot(P),K=H==u?P.constructor:void 0,Z=K?Ue(K):"";if(Z)switch(Z){case Pi:return k;case Vi:return o;case Fi:return $;case Wi:return f;case Bi:return b}return H});function wn(P,H){return H=H??_,!!H&&(typeof P=="number"||B.test(P))&&P>-1&&P%1==0&&P<H}function bn(P){var H=typeof P;return H=="string"||H=="number"||H=="symbol"||H=="boolean"?P!=="__proto__":P===null}function Ln(P){return!!de&&de in P}function En(P){var H=P&&P.constructor,K=typeof H=="function"&&H.prototype||se;return P===K}function An(P){return ce.call(P)}function Ue(P){if(P!=null){try{return me.call(P)}catch{}try{return P+""}catch{}}return""}function Qt(P,H){return P===H||P!==P&&H!==H}var $n=jt(function(){return arguments}())?jt:function(P){return st(P)&&le.call(P,"callee")&&!zt.call(P,"callee")},ut=Array.isArray;function Sn(P){return P!=null&&Jt(P.length)&&!Zt(P)}var St=xi||Rn;function Mn(P,H){return Kt(P,H)}function Zt(P){if(!qt(P))return!1;var H=ot(P);return H==e||H==n||H==c||H==w}function Jt(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=_}function qt(P){var H=typeof P;return P!=null&&(H=="object"||H=="function")}function st(P){return P!=null&&typeof P=="object"}var ei=ge?tt(ge):pn;function Cn(P){return Sn(P)?hn(P):gn(P)}function Tn(){return[]}function Rn(){return!1}s.exports=Mn})(mt,mt.exports);var _i=mt.exports,Re={};Object.defineProperty(Re,"__esModule",{value:!0});Re.getAceInstance=Re.debounce=Re.editorEvents=Re.editorOptions=void 0;var Pn=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];Re.editorOptions=Pn;var Vn=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];Re.editorEvents=Vn;var Fn=function(){var s;return typeof window>"u"?(ye.window={},s=gt,delete ye.window):window.ace?(s=window.ace,s.acequire=window.ace.require||window.ace.acequire):s=gt,s};Re.getAceInstance=Fn;var Wn=function(s,O){var y=null;return function(){var L=this,I=arguments;clearTimeout(y),y=setTimeout(function(){s.apply(L,I)},O)}};Re.debounce=Wn;var Bn=ye&&ye.__extends||function(){var s=function(O,y){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,I){L.__proto__=I}||function(L,I){for(var d in I)Object.prototype.hasOwnProperty.call(I,d)&&(L[d]=I[d])},s(O,y)};return function(O,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");s(O,y);function L(){this.constructor=O}O.prototype=y===null?Object.create(y):(L.prototype=y.prototype,new L)}}(),Rt=ye&&ye.__assign||function(){return Rt=Object.assign||function(s){for(var O,y=1,L=arguments.length;y<L;y++){O=arguments[y];for(var I in O)Object.prototype.hasOwnProperty.call(O,I)&&(s[I]=O[I])}return s},Rt.apply(this,arguments)};Object.defineProperty(xt,"__esModule",{value:!0});var Hn=gt,ee=Dt,ni=Ke,pt=_i,Je=Re,ri=(0,Je.getAceInstance)(),Nn=function(s){Bn(O,s);function O(y){var L=s.call(this,y)||this;return Je.editorEvents.forEach(function(I){L[I]=L[I].bind(L)}),L.debounce=Je.debounce,L}return O.prototype.isInShadow=function(y){for(var L=y&&y.parentNode;L;){if(L.toString()==="[object ShadowRoot]")return!0;L=L.parentNode}return!1},O.prototype.componentDidMount=function(){var y=this,L=this.props,I=L.className,d=L.onBeforeLoad,_=L.onValidate,p=L.mode,a=L.focus,c=L.theme,t=L.fontSize,i=L.value,r=L.defaultValue,e=L.showGutter,n=L.wrapEnabled,o=L.showPrintMargin,l=L.scrollMargin,h=l===void 0?[0,0,0,0]:l,u=L.keyboardHandler,$=L.onLoad,w=L.commands,v=L.annotations,f=L.markers,M=L.placeholder;this.editor=ri.edit(this.refEditor),d&&d(ri);for(var S=Object.keys(this.props.editorProps),A=0;A<S.length;A++)this.editor[S[A]]=this.props.editorProps[S[A]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(h[0],h[1],h[2],h[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof p=="string"?"ace/mode/".concat(p):p),c&&c!==""&&this.editor.setTheme("ace/theme/".concat(c)),this.editor.setFontSize(typeof t=="number"?"".concat(t,"px"):t),this.editor.getSession().setValue(r||i||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(e),this.editor.getSession().setUseWrapMode(n),this.editor.setShowPrintMargin(o),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),M&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),_&&this.editor.getSession().on("changeAnnotation",function(){var m=y.editor.getSession().getAnnotations();y.props.onValidate(m)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(v||[]),f&&f.length>0&&this.handleMarkers(f);var b=this.editor.$options;Je.editorOptions.forEach(function(m){b.hasOwnProperty(m)?y.editor.setOption(m,y.props[m]):y.props[m]&&console.warn("ReactAce: editor option ".concat(m," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(w)&&w.forEach(function(m){typeof m.exec=="string"?y.editor.commands.bindKey(m.bindKey,m.exec):y.editor.commands.addCommand(m)}),u&&this.editor.setKeyboardHandler("ace/keyboard/"+u),I&&(this.refEditor.className+=" "+I),$&&$(this.editor),this.editor.resize(),a&&this.editor.focus()},O.prototype.componentDidUpdate=function(y){for(var L=y,I=this.props,d=0;d<Je.editorOptions.length;d++){var _=Je.editorOptions[d];I[_]!==L[_]&&this.editor.setOption(_,I[_])}if(I.className!==L.className){var p=this.refEditor.className,a=p.trim().split(" "),c=L.className.trim().split(" ");c.forEach(function(r){var e=a.indexOf(r);a.splice(e,1)}),this.refEditor.className=" "+I.className+" "+a.join(" ")}var t=this.editor&&I.value!=null&&this.editor.getValue()!==I.value;if(t){this.silent=!0;var i=this.editor.session.selection.toJSON();this.editor.setValue(I.value,I.cursorStart),this.editor.session.selection.fromJSON(i),this.silent=!1}I.placeholder!==L.placeholder&&this.updatePlaceholder(),I.mode!==L.mode&&this.editor.getSession().setMode(typeof I.mode=="string"?"ace/mode/".concat(I.mode):I.mode),I.theme!==L.theme&&this.editor.setTheme("ace/theme/"+I.theme),I.keyboardHandler!==L.keyboardHandler&&(I.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+I.keyboardHandler):this.editor.setKeyboardHandler(null)),I.fontSize!==L.fontSize&&this.editor.setFontSize(typeof I.fontSize=="number"?"".concat(I.fontSize,"px"):I.fontSize),I.wrapEnabled!==L.wrapEnabled&&this.editor.getSession().setUseWrapMode(I.wrapEnabled),I.showPrintMargin!==L.showPrintMargin&&this.editor.setShowPrintMargin(I.showPrintMargin),I.showGutter!==L.showGutter&&this.editor.renderer.setShowGutter(I.showGutter),pt(I.setOptions,L.setOptions)||this.handleOptions(I),(t||!pt(I.annotations,L.annotations))&&this.editor.getSession().setAnnotations(I.annotations||[]),!pt(I.markers,L.markers)&&Array.isArray(I.markers)&&this.handleMarkers(I.markers),pt(I.scrollMargin,L.scrollMargin)||this.handleScrollMargins(I.scrollMargin),(y.height!==this.props.height||y.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!y.focus&&this.editor.focus()},O.prototype.handleScrollMargins=function(y){y===void 0&&(y=[0,0,0,0]),this.editor.renderer.setScrollMargin(y[0],y[1],y[2],y[3])},O.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},O.prototype.onChange=function(y){if(this.props.onChange&&!this.silent){var L=this.editor.getValue();this.props.onChange(L,y)}},O.prototype.onSelectionChange=function(y){if(this.props.onSelectionChange){var L=this.editor.getSelection();this.props.onSelectionChange(L,y)}},O.prototype.onCursorChange=function(y){if(this.props.onCursorChange){var L=this.editor.getSelection();this.props.onCursorChange(L,y)}},O.prototype.onInput=function(y){this.props.onInput&&this.props.onInput(y),this.props.placeholder&&this.updatePlaceholder()},O.prototype.onFocus=function(y){this.props.onFocus&&this.props.onFocus(y,this.editor)},O.prototype.onBlur=function(y){this.props.onBlur&&this.props.onBlur(y,this.editor)},O.prototype.onCopy=function(y){var L=y.text;this.props.onCopy&&this.props.onCopy(L)},O.prototype.onPaste=function(y){var L=y.text;this.props.onPaste&&this.props.onPaste(L)},O.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},O.prototype.handleOptions=function(y){for(var L=Object.keys(y.setOptions),I=0;I<L.length;I++)this.editor.setOption(L[I],y.setOptions[L[I]])},O.prototype.handleMarkers=function(y){var L=this,I=this.editor.getSession().getMarkers(!0);for(var d in I)I.hasOwnProperty(d)&&this.editor.getSession().removeMarker(I[d].id);I=this.editor.getSession().getMarkers(!1);for(var d in I)I.hasOwnProperty(d)&&I[d].clazz!=="ace_active-line"&&I[d].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker(I[d].id);y.forEach(function(_){var p=_.startRow,a=_.startCol,c=_.endRow,t=_.endCol,i=_.className,r=_.type,e=_.inFront,n=e===void 0?!1:e,o=new Hn.Range(p,a,c,t);L.editor.getSession().addMarker(o,i,r,n)})},O.prototype.updatePlaceholder=function(){var y=this.editor,L=this.props.placeholder,I=!y.session.getValue().length,d=y.renderer.placeholderNode;!I&&d?(y.renderer.scroller.removeChild(y.renderer.placeholderNode),y.renderer.placeholderNode=null):I&&!d?(d=y.renderer.placeholderNode=document.createElement("div"),d.textContent=L||"",d.className="ace_comment ace_placeholder",d.style.padding="0 9px",d.style.position="absolute",d.style.zIndex="3",y.renderer.scroller.appendChild(d)):I&&d&&(d.textContent=L)},O.prototype.updateRef=function(y){this.refEditor=y},O.prototype.render=function(){var y=this.props,L=y.name,I=y.width,d=y.height,_=y.style,p=Rt({width:I,height:d},_);return ni.createElement("div",{ref:this.updateRef,id:L,style:p})},O.propTypes={mode:ee.oneOfType([ee.string,ee.object]),focus:ee.bool,theme:ee.string,name:ee.string,className:ee.string,height:ee.string,width:ee.string,fontSize:ee.oneOfType([ee.number,ee.string]),showGutter:ee.bool,onChange:ee.func,onCopy:ee.func,onPaste:ee.func,onFocus:ee.func,onInput:ee.func,onBlur:ee.func,onScroll:ee.func,value:ee.string,defaultValue:ee.string,onLoad:ee.func,onSelectionChange:ee.func,onCursorChange:ee.func,onBeforeLoad:ee.func,onValidate:ee.func,minLines:ee.number,maxLines:ee.number,readOnly:ee.bool,highlightActiveLine:ee.bool,tabSize:ee.number,showPrintMargin:ee.bool,cursorStart:ee.number,debounceChangePeriod:ee.number,editorProps:ee.object,setOptions:ee.object,style:ee.object,scrollMargin:ee.array,annotations:ee.array,markers:ee.array,keyboardHandler:ee.string,wrapEnabled:ee.bool,enableSnippets:ee.bool,enableBasicAutocompletion:ee.oneOfType([ee.bool,ee.array]),enableLiveAutocompletion:ee.oneOfType([ee.bool,ee.array]),navigateToFileEnd:ee.bool,commands:ee.array,placeholder:ee.string},O.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},O}(ni.Component);xt.default=Nn;var Pt={},vt={},yi={exports:{}};(function(s,O){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(y,L,I){var d=y("./lib/oop");y("./lib/lang");var _=y("./lib/event_emitter").EventEmitter,p=y("./editor").Editor,a=y("./virtual_renderer").VirtualRenderer,c=y("./edit_session").EditSession,t=function(i,r,e){this.BELOW=1,this.BESIDE=0,this.$container=i,this.$theme=r,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(e||1),this.$cEditor=this.$editors[0],this.on("focus",function(n){this.$cEditor=n}.bind(this))};(function(){d.implement(this,_),this.$createEditor=function(){var i=document.createElement("div");i.className=this.$editorCSS,i.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(i);var r=new p(new a(i,this.$theme));return r.on("focus",function(){this._emit("focus",r)}.bind(this)),this.$editors.push(r),r.setFontSize(this.$fontSize),r},this.setSplits=function(i){var r;if(i<1)throw"The number of splits have to be > 0!";if(i!=this.$splits){if(i>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<i;)r=this.$editors[this.$splits],this.$container.appendChild(r.container),r.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<i;)this.$createEditor(),this.$splits++}else for(;this.$splits>i;)r=this.$editors[this.$splits-1],this.$container.removeChild(r.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(i){return this.$editors[i]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(i){this.$editors.forEach(function(r){r.setTheme(i)})},this.setKeyboardHandler=function(i){this.$editors.forEach(function(r){r.setKeyboardHandler(i)})},this.forEach=function(i,r){this.$editors.forEach(i,r)},this.$fontSize="",this.setFontSize=function(i){this.$fontSize=i,this.forEach(function(r){r.setFontSize(i)})},this.$cloneSession=function(i){var r=new c(i.getDocument(),i.getMode()),e=i.getUndoManager();return r.setUndoManager(e),r.setTabSize(i.getTabSize()),r.setUseSoftTabs(i.getUseSoftTabs()),r.setOverwrite(i.getOverwrite()),r.setBreakpoints(i.getBreakpoints()),r.setUseWrapMode(i.getUseWrapMode()),r.setUseWorker(i.getUseWorker()),r.setWrapLimitRange(i.$wrapLimitRange.min,i.$wrapLimitRange.max),r.$foldData=i.$cloneFoldData(),r},this.setSession=function(i,r){var e;r==null?e=this.$cEditor:e=this.$editors[r];var n=this.$editors.some(function(o){return o.session===i});return n&&(i=this.$cloneSession(i)),e.setSession(i),i},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(i){this.$orientation!=i&&(this.$orientation=i,this.resize())},this.resize=function(){var i=this.$container.clientWidth,r=this.$container.clientHeight,e;if(this.$orientation==this.BESIDE)for(var n=i/this.$splits,o=0;o<this.$splits;o++)e=this.$editors[o],e.container.style.width=n+"px",e.container.style.top="0px",e.container.style.left=o*n+"px",e.container.style.height=r+"px",e.resize();else for(var l=r/this.$splits,o=0;o<this.$splits;o++)e=this.$editors[o],e.container.style.width=i+"px",e.container.style.top=o*l+"px",e.container.style.left="0px",e.container.style.height=l+"px",e.resize()}}).call(t.prototype),L.Split=t}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(y,L,I){I.exports=y("../split")}),function(){ace.require(["ace/ext/split"],function(y){s&&(s.exports=y)})}()})(yi);var Vt=yi.exports;const zn=It(Vt),Un=Ot({__proto__:null,default:zn},[Vt]);var Gn="Expected a function",wi="__lodash_hash_undefined__",bi=1/0,jn="[object Function]",Kn="[object GeneratorFunction]",Yn="[object Symbol]",Xn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qn=/^\w*$/,Zn=/^\./,Jn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qn=/[\\^$.*+?()[\]{}|]/g,er=/\\(\\)?/g,tr=/^\[object .+?Constructor\]$/,ir=typeof ye=="object"&&ye&&ye.Object===Object&&ye,nr=typeof self=="object"&&self&&self.Object===Object&&self,Ft=ir||nr||Function("return this")();function rr(s,O){return s==null?void 0:s[O]}function or(s){var O=!1;if(s!=null&&typeof s.toString!="function")try{O=!!(s+"")}catch{}return O}var sr=Array.prototype,ar=Function.prototype,Li=Object.prototype,Mt=Ft["__core-js_shared__"],oi=function(){var s=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Ei=ar.toString,Wt=Li.hasOwnProperty,Ai=Li.toString,lr=RegExp("^"+Ei.call(Wt).replace(qn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),si=Ft.Symbol,cr=sr.splice,hr=$i(Ft,"Map"),at=$i(Object,"create"),ai=si?si.prototype:void 0,li=ai?ai.toString:void 0;function Ye(s){var O=-1,y=s?s.length:0;for(this.clear();++O<y;){var L=s[O];this.set(L[0],L[1])}}function ur(){this.__data__=at?at(null):{}}function dr(s){return this.has(s)&&delete this.__data__[s]}function fr(s){var O=this.__data__;if(at){var y=O[s];return y===wi?void 0:y}return Wt.call(O,s)?O[s]:void 0}function pr(s){var O=this.__data__;return at?O[s]!==void 0:Wt.call(O,s)}function gr(s,O){var y=this.__data__;return y[s]=at&&O===void 0?wi:O,this}Ye.prototype.clear=ur;Ye.prototype.delete=dr;Ye.prototype.get=fr;Ye.prototype.has=pr;Ye.prototype.set=gr;function et(s){var O=-1,y=s?s.length:0;for(this.clear();++O<y;){var L=s[O];this.set(L[0],L[1])}}function mr(){this.__data__=[]}function vr(s){var O=this.__data__,y=_t(O,s);if(y<0)return!1;var L=O.length-1;return y==L?O.pop():cr.call(O,y,1),!0}function _r(s){var O=this.__data__,y=_t(O,s);return y<0?void 0:O[y][1]}function yr(s){return _t(this.__data__,s)>-1}function wr(s,O){var y=this.__data__,L=_t(y,s);return L<0?y.push([s,O]):y[L][1]=O,this}et.prototype.clear=mr;et.prototype.delete=vr;et.prototype.get=_r;et.prototype.has=yr;et.prototype.set=wr;function Xe(s){var O=-1,y=s?s.length:0;for(this.clear();++O<y;){var L=s[O];this.set(L[0],L[1])}}function br(){this.__data__={hash:new Ye,map:new(hr||et),string:new Ye}}function Lr(s){return yt(this,s).delete(s)}function Er(s){return yt(this,s).get(s)}function Ar(s){return yt(this,s).has(s)}function $r(s,O){return yt(this,s).set(s,O),this}Xe.prototype.clear=br;Xe.prototype.delete=Lr;Xe.prototype.get=Er;Xe.prototype.has=Ar;Xe.prototype.set=$r;function _t(s,O){for(var y=s.length;y--;)if(Pr(s[y][0],O))return y;return-1}function Sr(s,O){O=Rr(O,s)?[O]:Tr(O);for(var y=0,L=O.length;s!=null&&y<L;)s=s[xr(O[y++])];return y&&y==L?s:void 0}function Mr(s){if(!Mi(s)||Ir(s))return!1;var O=Vr(s)||or(s)?lr:tr;return O.test(Dr(s))}function Cr(s){if(typeof s=="string")return s;if(Ht(s))return li?li.call(s):"";var O=s+"";return O=="0"&&1/s==-bi?"-0":O}function Tr(s){return Si(s)?s:Or(s)}function yt(s,O){var y=s.__data__;return kr(O)?y[typeof O=="string"?"string":"hash"]:y.map}function $i(s,O){var y=rr(s,O);return Mr(y)?y:void 0}function Rr(s,O){if(Si(s))return!1;var y=typeof s;return y=="number"||y=="symbol"||y=="boolean"||s==null||Ht(s)?!0:Qn.test(s)||!Xn.test(s)||O!=null&&s in Object(O)}function kr(s){var O=typeof s;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?s!=="__proto__":s===null}function Ir(s){return!!oi&&oi in s}var Or=Bt(function(s){s=Wr(s);var O=[];return Zn.test(s)&&O.push(""),s.replace(Jn,function(y,L,I,d){O.push(I?d.replace(er,"$1"):L||y)}),O});function xr(s){if(typeof s=="string"||Ht(s))return s;var O=s+"";return O=="0"&&1/s==-bi?"-0":O}function Dr(s){if(s!=null){try{return Ei.call(s)}catch{}try{return s+""}catch{}}return""}function Bt(s,O){if(typeof s!="function"||O&&typeof O!="function")throw new TypeError(Gn);var y=function(){var L=arguments,I=O?O.apply(this,L):L[0],d=y.cache;if(d.has(I))return d.get(I);var _=s.apply(this,L);return y.cache=d.set(I,_),_};return y.cache=new(Bt.Cache||Xe),y}Bt.Cache=Xe;function Pr(s,O){return s===O||s!==s&&O!==O}var Si=Array.isArray;function Vr(s){var O=Mi(s)?Ai.call(s):"";return O==jn||O==Kn}function Mi(s){var O=typeof s;return!!s&&(O=="object"||O=="function")}function Fr(s){return!!s&&typeof s=="object"}function Ht(s){return typeof s=="symbol"||Fr(s)&&Ai.call(s)==Yn}function Wr(s){return s==null?"":Cr(s)}function Br(s,O,y){var L=s==null?void 0:Sr(s,O);return L===void 0?y:L}var Hr=Br,Nr=ye&&ye.__extends||function(){var s=function(O,y){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,I){L.__proto__=I}||function(L,I){for(var d in I)Object.prototype.hasOwnProperty.call(I,d)&&(L[d]=I[d])},s(O,y)};return function(O,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");s(O,y);function L(){this.constructor=O}O.prototype=y===null?Object.create(y):(L.prototype=y.prototype,new L)}}(),kt=ye&&ye.__assign||function(){return kt=Object.assign||function(s){for(var O,y=1,L=arguments.length;y<L;y++){O=arguments[y];for(var I in O)Object.prototype.hasOwnProperty.call(O,I)&&(s[I]=O[I])}return s},kt.apply(this,arguments)};Object.defineProperty(vt,"__esModule",{value:!0});var je=Re,Ct=(0,je.getAceInstance)(),zr=gt,Ur=Vt,ie=Dt,ci=Ke,Tt=_i,Oe=Hr,Gr=function(s){Nr(O,s);function O(y){var L=s.call(this,y)||this;return je.editorEvents.forEach(function(I){L[I]=L[I].bind(L)}),L.debounce=je.debounce,L}return O.prototype.isInShadow=function(y){for(var L=y&&y.parentNode;L;){if(L.toString()==="[object ShadowRoot]")return!0;L=L.parentNode}return!1},O.prototype.componentDidMount=function(){var y=this,L=this.props,I=L.className,d=L.onBeforeLoad,_=L.mode,p=L.focus,a=L.theme,c=L.fontSize,t=L.value,i=L.defaultValue,r=L.cursorStart,e=L.showGutter,n=L.wrapEnabled,o=L.showPrintMargin,l=L.scrollMargin,h=l===void 0?[0,0,0,0]:l,u=L.keyboardHandler,$=L.onLoad,w=L.commands,v=L.annotations,f=L.markers,M=L.splits;this.editor=Ct.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(a)),d&&d(Ct);var S=Object.keys(this.props.editorProps),A=new Ur.Split(this.editor.container,"ace/theme/".concat(a),M);this.editor.env.split=A,this.splitEditor=A.getEditor(0),this.split=A,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var b=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),A.forEach(function(k,E){for(var g=0;g<S.length;g++)k[S[g]]=y.props.editorProps[S[g]];var C=Oe(i,E),T=Oe(t,E,"");k.session.setUndoManager(new Ct.UndoManager),k.setTheme("ace/theme/".concat(a)),k.renderer.setScrollMargin(h[0],h[1],h[2],h[3]),k.getSession().setMode("ace/mode/".concat(_)),k.setFontSize(c),k.renderer.setShowGutter(e),k.getSession().setUseWrapMode(n),k.setShowPrintMargin(o),k.on("focus",y.onFocus),k.on("blur",y.onBlur),k.on("input",y.onInput),k.on("copy",y.onCopy),k.on("paste",y.onPaste),k.on("change",y.onChange),k.getSession().selection.on("changeSelection",y.onSelectionChange),k.getSession().selection.on("changeCursor",y.onCursorChange),k.session.on("changeScrollTop",y.onScroll),k.setValue(C===void 0?T:C,r);var x=Oe(v,E,[]),D=Oe(f,E,[]);k.getSession().setAnnotations(x),D&&D.length>0&&y.handleMarkers(D,k);for(var g=0;g<je.editorOptions.length;g++){var V=je.editorOptions[g];b.hasOwnProperty(V)?k.setOption(V,y.props[V]):y.props[V]&&console.warn("ReaceAce: editor option ".concat(V," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}y.handleOptions(y.props,k),Array.isArray(w)&&w.forEach(function(F){typeof F.exec=="string"?k.commands.bindKey(F.bindKey,F.exec):k.commands.addCommand(F)}),u&&k.setKeyboardHandler("ace/keyboard/"+u)}),I&&(this.refEditor.className+=" "+I),p&&this.splitEditor.focus();var m=this.editor.env.split;m.setOrientation(this.props.orientation==="below"?m.BELOW:m.BESIDE),m.resize(!0),$&&$(m)},O.prototype.componentDidUpdate=function(y){var L=this,I=y,d=this.props,_=this.editor.env.split;if(d.splits!==I.splits&&_.setSplits(d.splits),d.orientation!==I.orientation&&_.setOrientation(d.orientation==="below"?_.BELOW:_.BESIDE),_.forEach(function(t,i){d.mode!==I.mode&&t.getSession().setMode("ace/mode/"+d.mode),d.keyboardHandler!==I.keyboardHandler&&(d.keyboardHandler?t.setKeyboardHandler("ace/keyboard/"+d.keyboardHandler):t.setKeyboardHandler(null)),d.fontSize!==I.fontSize&&t.setFontSize(d.fontSize),d.wrapEnabled!==I.wrapEnabled&&t.getSession().setUseWrapMode(d.wrapEnabled),d.showPrintMargin!==I.showPrintMargin&&t.setShowPrintMargin(d.showPrintMargin),d.showGutter!==I.showGutter&&t.renderer.setShowGutter(d.showGutter);for(var r=0;r<je.editorOptions.length;r++){var e=je.editorOptions[r];d[e]!==I[e]&&t.setOption(e,d[e])}Tt(d.setOptions,I.setOptions)||L.handleOptions(d,t);var n=Oe(d.value,i,"");if(t.getValue()!==n){L.silent=!0;var o=t.session.selection.toJSON();t.setValue(n,d.cursorStart),t.session.selection.fromJSON(o),L.silent=!1}var l=Oe(d.annotations,i,[]),h=Oe(I.annotations,i,[]);Tt(l,h)||t.getSession().setAnnotations(l);var u=Oe(d.markers,i,[]),$=Oe(I.markers,i,[]);!Tt(u,$)&&Array.isArray(u)&&L.handleMarkers(u,t)}),d.className!==I.className){var p=this.refEditor.className,a=p.trim().split(" "),c=I.className.trim().split(" ");c.forEach(function(t){var i=a.indexOf(t);a.splice(i,1)}),this.refEditor.className=" "+d.className+" "+a.join(" ")}d.theme!==I.theme&&_.setTheme("ace/theme/"+d.theme),d.focus&&!I.focus&&this.splitEditor.focus(),(d.height!==this.props.height||d.width!==this.props.width)&&this.editor.resize()},O.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},O.prototype.onChange=function(y){if(this.props.onChange&&!this.silent){var L=[];this.editor.env.split.forEach(function(I){L.push(I.getValue())}),this.props.onChange(L,y)}},O.prototype.onSelectionChange=function(y){if(this.props.onSelectionChange){var L=[];this.editor.env.split.forEach(function(I){L.push(I.getSelection())}),this.props.onSelectionChange(L,y)}},O.prototype.onCursorChange=function(y){if(this.props.onCursorChange){var L=[];this.editor.env.split.forEach(function(I){L.push(I.getSelection())}),this.props.onCursorChange(L,y)}},O.prototype.onFocus=function(y){this.props.onFocus&&this.props.onFocus(y)},O.prototype.onInput=function(y){this.props.onInput&&this.props.onInput(y)},O.prototype.onBlur=function(y){this.props.onBlur&&this.props.onBlur(y)},O.prototype.onCopy=function(y){this.props.onCopy&&this.props.onCopy(y)},O.prototype.onPaste=function(y){this.props.onPaste&&this.props.onPaste(y)},O.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},O.prototype.handleOptions=function(y,L){for(var I=Object.keys(y.setOptions),d=0;d<I.length;d++)L.setOption(I[d],y.setOptions[I[d]])},O.prototype.handleMarkers=function(y,L){var I=L.getSession().getMarkers(!0);for(var d in I)I.hasOwnProperty(d)&&L.getSession().removeMarker(I[d].id);I=L.getSession().getMarkers(!1);for(var d in I)I.hasOwnProperty(d)&&L.getSession().removeMarker(I[d].id);y.forEach(function(_){var p=_.startRow,a=_.startCol,c=_.endRow,t=_.endCol,i=_.className,r=_.type,e=_.inFront,n=e===void 0?!1:e,o=new zr.Range(p,a,c,t);L.getSession().addMarker(o,i,r,n)})},O.prototype.updateRef=function(y){this.refEditor=y},O.prototype.render=function(){var y=this.props,L=y.name,I=y.width,d=y.height,_=y.style,p=kt({width:I,height:d},_);return ci.createElement("div",{ref:this.updateRef,id:L,style:p})},O.propTypes={className:ie.string,debounceChangePeriod:ie.number,defaultValue:ie.arrayOf(ie.string),focus:ie.bool,fontSize:ie.oneOfType([ie.number,ie.string]),height:ie.string,mode:ie.string,name:ie.string,onBlur:ie.func,onChange:ie.func,onCopy:ie.func,onFocus:ie.func,onInput:ie.func,onLoad:ie.func,onPaste:ie.func,onScroll:ie.func,orientation:ie.string,showGutter:ie.bool,splits:ie.number,theme:ie.string,value:ie.arrayOf(ie.string),width:ie.string,onSelectionChange:ie.func,onCursorChange:ie.func,onBeforeLoad:ie.func,minLines:ie.number,maxLines:ie.number,readOnly:ie.bool,highlightActiveLine:ie.bool,tabSize:ie.number,showPrintMargin:ie.bool,cursorStart:ie.number,editorProps:ie.object,setOptions:ie.object,style:ie.object,scrollMargin:ie.array,annotations:ie.array,markers:ie.array,keyboardHandler:ie.string,wrapEnabled:ie.bool,enableBasicAutocompletion:ie.oneOfType([ie.bool,ie.array]),enableLiveAutocompletion:ie.oneOfType([ie.bool,ie.array]),commands:ie.array},O.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},O}(ci.Component);vt.default=Gr;var Ci={exports:{}};(function(s){var O=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},y=-1,L=1,I=0;O.Diff=function(d,_){return[d,_]},O.prototype.diff_main=function(d,_,p,a){typeof a>"u"&&(this.Diff_Timeout<=0?a=Number.MAX_VALUE:a=new Date().getTime()+this.Diff_Timeout*1e3);var c=a;if(d==null||_==null)throw new Error("Null input. (diff_main)");if(d==_)return d?[new O.Diff(I,d)]:[];typeof p>"u"&&(p=!0);var t=p,i=this.diff_commonPrefix(d,_),r=d.substring(0,i);d=d.substring(i),_=_.substring(i),i=this.diff_commonSuffix(d,_);var e=d.substring(d.length-i);d=d.substring(0,d.length-i),_=_.substring(0,_.length-i);var n=this.diff_compute_(d,_,t,c);return r&&n.unshift(new O.Diff(I,r)),e&&n.push(new O.Diff(I,e)),this.diff_cleanupMerge(n),n},O.prototype.diff_compute_=function(d,_,p,a){var c;if(!d)return[new O.Diff(L,_)];if(!_)return[new O.Diff(y,d)];var t=d.length>_.length?d:_,i=d.length>_.length?_:d,r=t.indexOf(i);if(r!=-1)return c=[new O.Diff(L,t.substring(0,r)),new O.Diff(I,i),new O.Diff(L,t.substring(r+i.length))],d.length>_.length&&(c[0][0]=c[2][0]=y),c;if(i.length==1)return[new O.Diff(y,d),new O.Diff(L,_)];var e=this.diff_halfMatch_(d,_);if(e){var n=e[0],o=e[1],l=e[2],h=e[3],u=e[4],$=this.diff_main(n,l,p,a),w=this.diff_main(o,h,p,a);return $.concat([new O.Diff(I,u)],w)}return p&&d.length>100&&_.length>100?this.diff_lineMode_(d,_,a):this.diff_bisect_(d,_,a)},O.prototype.diff_lineMode_=function(d,_,p){var a=this.diff_linesToChars_(d,_);d=a.chars1,_=a.chars2;var c=a.lineArray,t=this.diff_main(d,_,!1,p);this.diff_charsToLines_(t,c),this.diff_cleanupSemantic(t),t.push(new O.Diff(I,""));for(var i=0,r=0,e=0,n="",o="";i<t.length;){switch(t[i][0]){case L:e++,o+=t[i][1];break;case y:r++,n+=t[i][1];break;case I:if(r>=1&&e>=1){t.splice(i-r-e,r+e),i=i-r-e;for(var l=this.diff_main(n,o,!1,p),h=l.length-1;h>=0;h--)t.splice(i,0,l[h]);i=i+l.length}e=0,r=0,n="",o="";break}i++}return t.pop(),t},O.prototype.diff_bisect_=function(d,_,p){for(var a=d.length,c=_.length,t=Math.ceil((a+c)/2),i=t,r=2*t,e=new Array(r),n=new Array(r),o=0;o<r;o++)e[o]=-1,n[o]=-1;e[i+1]=0,n[i+1]=0;for(var l=a-c,h=l%2!=0,u=0,$=0,w=0,v=0,f=0;f<t&&!(new Date().getTime()>p);f++){for(var M=-f+u;M<=f-$;M+=2){var S=i+M,A;M==-f||M!=f&&e[S-1]<e[S+1]?A=e[S+1]:A=e[S-1]+1;for(var b=A-M;A<a&&b<c&&d.charAt(A)==_.charAt(b);)A++,b++;if(e[S]=A,A>a)$+=2;else if(b>c)u+=2;else if(h){var m=i+l-M;if(m>=0&&m<r&&n[m]!=-1){var k=a-n[m];if(A>=k)return this.diff_bisectSplit_(d,_,A,b,p)}}}for(var E=-f+w;E<=f-v;E+=2){var m=i+E,k;E==-f||E!=f&&n[m-1]<n[m+1]?k=n[m+1]:k=n[m-1]+1;for(var g=k-E;k<a&&g<c&&d.charAt(a-k-1)==_.charAt(c-g-1);)k++,g++;if(n[m]=k,k>a)v+=2;else if(g>c)w+=2;else if(!h){var S=i+l-E;if(S>=0&&S<r&&e[S]!=-1){var A=e[S],b=i+A-S;if(k=a-k,A>=k)return this.diff_bisectSplit_(d,_,A,b,p)}}}}return[new O.Diff(y,d),new O.Diff(L,_)]},O.prototype.diff_bisectSplit_=function(d,_,p,a,c){var t=d.substring(0,p),i=_.substring(0,a),r=d.substring(p),e=_.substring(a),n=this.diff_main(t,i,!1,c),o=this.diff_main(r,e,!1,c);return n.concat(o)},O.prototype.diff_linesToChars_=function(d,_){var p=[],a={};p[0]="";function c(e){for(var n="",o=0,l=-1,h=p.length;l<e.length-1;){l=e.indexOf(`
  824. `,o),l==-1&&(l=e.length-1);var u=e.substring(o,l+1);(a.hasOwnProperty?a.hasOwnProperty(u):a[u]!==void 0)?n+=String.fromCharCode(a[u]):(h==t&&(u=e.substring(o),l=e.length),n+=String.fromCharCode(h),a[u]=h,p[h++]=u),o=l+1}return n}var t=4e4,i=c(d);t=65535;var r=c(_);return{chars1:i,chars2:r,lineArray:p}},O.prototype.diff_charsToLines_=function(d,_){for(var p=0;p<d.length;p++){for(var a=d[p][1],c=[],t=0;t<a.length;t++)c[t]=_[a.charCodeAt(t)];d[p][1]=c.join("")}},O.prototype.diff_commonPrefix=function(d,_){if(!d||!_||d.charAt(0)!=_.charAt(0))return 0;for(var p=0,a=Math.min(d.length,_.length),c=a,t=0;p<c;)d.substring(t,c)==_.substring(t,c)?(p=c,t=p):a=c,c=Math.floor((a-p)/2+p);return c},O.prototype.diff_commonSuffix=function(d,_){if(!d||!_||d.charAt(d.length-1)!=_.charAt(_.length-1))return 0;for(var p=0,a=Math.min(d.length,_.length),c=a,t=0;p<c;)d.substring(d.length-c,d.length-t)==_.substring(_.length-c,_.length-t)?(p=c,t=p):a=c,c=Math.floor((a-p)/2+p);return c},O.prototype.diff_commonOverlap_=function(d,_){var p=d.length,a=_.length;if(p==0||a==0)return 0;p>a?d=d.substring(p-a):p<a&&(_=_.substring(0,p));var c=Math.min(p,a);if(d==_)return c;for(var t=0,i=1;;){var r=d.substring(c-i),e=_.indexOf(r);if(e==-1)return t;i+=e,(e==0||d.substring(c-i)==_.substring(0,i))&&(t=i,i++)}},O.prototype.diff_halfMatch_=function(d,_){if(this.Diff_Timeout<=0)return null;var p=d.length>_.length?d:_,a=d.length>_.length?_:d;if(p.length<4||a.length*2<p.length)return null;var c=this;function t($,w,v){for(var f=$.substring(v,v+Math.floor($.length/4)),M=-1,S="",A,b,m,k;(M=w.indexOf(f,M+1))!=-1;){var E=c.diff_commonPrefix($.substring(v),w.substring(M)),g=c.diff_commonSuffix($.substring(0,v),w.substring(0,M));S.length<g+E&&(S=w.substring(M-g,M)+w.substring(M,M+E),A=$.substring(0,v-g),b=$.substring(v+E),m=w.substring(0,M-g),k=w.substring(M+E))}return S.length*2>=$.length?[A,b,m,k,S]:null}var i=t(p,a,Math.ceil(p.length/4)),r=t(p,a,Math.ceil(p.length/2)),e;if(!i&&!r)return null;r?i?e=i[4].length>r[4].length?i:r:e=r:e=i;var n,o,l,h;d.length>_.length?(n=e[0],o=e[1],l=e[2],h=e[3]):(l=e[0],h=e[1],n=e[2],o=e[3]);var u=e[4];return[n,o,l,h,u]},O.prototype.diff_cleanupSemantic=function(d){for(var _=!1,p=[],a=0,c=null,t=0,i=0,r=0,e=0,n=0;t<d.length;)d[t][0]==I?(p[a++]=t,i=e,r=n,e=0,n=0,c=d[t][1]):(d[t][0]==L?e+=d[t][1].length:n+=d[t][1].length,c&&c.length<=Math.max(i,r)&&c.length<=Math.max(e,n)&&(d.splice(p[a-1],0,new O.Diff(y,c)),d[p[a-1]+1][0]=L,a--,a--,t=a>0?p[a-1]:-1,i=0,r=0,e=0,n=0,c=null,_=!0)),t++;for(_&&this.diff_cleanupMerge(d),this.diff_cleanupSemanticLossless(d),t=1;t<d.length;){if(d[t-1][0]==y&&d[t][0]==L){var o=d[t-1][1],l=d[t][1],h=this.diff_commonOverlap_(o,l),u=this.diff_commonOverlap_(l,o);h>=u?(h>=o.length/2||h>=l.length/2)&&(d.splice(t,0,new O.Diff(I,l.substring(0,h))),d[t-1][1]=o.substring(0,o.length-h),d[t+1][1]=l.substring(h),t++):(u>=o.length/2||u>=l.length/2)&&(d.splice(t,0,new O.Diff(I,o.substring(0,u))),d[t-1][0]=L,d[t-1][1]=l.substring(0,l.length-u),d[t+1][0]=y,d[t+1][1]=o.substring(u),t++),t++}t++}},O.prototype.diff_cleanupSemanticLossless=function(d){function _(u,$){if(!u||!$)return 6;var w=u.charAt(u.length-1),v=$.charAt(0),f=w.match(O.nonAlphaNumericRegex_),M=v.match(O.nonAlphaNumericRegex_),S=f&&w.match(O.whitespaceRegex_),A=M&&v.match(O.whitespaceRegex_),b=S&&w.match(O.linebreakRegex_),m=A&&v.match(O.linebreakRegex_),k=b&&u.match(O.blanklineEndRegex_),E=m&&$.match(O.blanklineStartRegex_);return k||E?5:b||m?4:f&&!S&&A?3:S||A?2:f||M?1:0}for(var p=1;p<d.length-1;){if(d[p-1][0]==I&&d[p+1][0]==I){var a=d[p-1][1],c=d[p][1],t=d[p+1][1],i=this.diff_commonSuffix(a,c);if(i){var r=c.substring(c.length-i);a=a.substring(0,a.length-i),c=r+c.substring(0,c.length-i),t=r+t}for(var e=a,n=c,o=t,l=_(a,c)+_(c,t);c.charAt(0)===t.charAt(0);){a+=c.charAt(0),c=c.substring(1)+t.charAt(0),t=t.substring(1);var h=_(a,c)+_(c,t);h>=l&&(l=h,e=a,n=c,o=t)}d[p-1][1]!=e&&(e?d[p-1][1]=e:(d.splice(p-1,1),p--),d[p][1]=n,o?d[p+1][1]=o:(d.splice(p+1,1),p--))}p++}},O.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,O.whitespaceRegex_=/\s/,O.linebreakRegex_=/[\r\n]/,O.blanklineEndRegex_=/\n\r?\n$/,O.blanklineStartRegex_=/^\r?\n\r?\n/,O.prototype.diff_cleanupEfficiency=function(d){for(var _=!1,p=[],a=0,c=null,t=0,i=!1,r=!1,e=!1,n=!1;t<d.length;)d[t][0]==I?(d[t][1].length<this.Diff_EditCost&&(e||n)?(p[a++]=t,i=e,r=n,c=d[t][1]):(a=0,c=null),e=n=!1):(d[t][0]==y?n=!0:e=!0,c&&(i&&r&&e&&n||c.length<this.Diff_EditCost/2&&i+r+e+n==3)&&(d.splice(p[a-1],0,new O.Diff(y,c)),d[p[a-1]+1][0]=L,a--,c=null,i&&r?(e=n=!0,a=0):(a--,t=a>0?p[a-1]:-1,e=n=!1),_=!0)),t++;_&&this.diff_cleanupMerge(d)},O.prototype.diff_cleanupMerge=function(d){d.push(new O.Diff(I,""));for(var _=0,p=0,a=0,c="",t="",i;_<d.length;)switch(d[_][0]){case L:a++,t+=d[_][1],_++;break;case y:p++,c+=d[_][1],_++;break;case I:p+a>1?(p!==0&&a!==0&&(i=this.diff_commonPrefix(t,c),i!==0&&(_-p-a>0&&d[_-p-a-1][0]==I?d[_-p-a-1][1]+=t.substring(0,i):(d.splice(0,0,new O.Diff(I,t.substring(0,i))),_++),t=t.substring(i),c=c.substring(i)),i=this.diff_commonSuffix(t,c),i!==0&&(d[_][1]=t.substring(t.length-i)+d[_][1],t=t.substring(0,t.length-i),c=c.substring(0,c.length-i))),_-=p+a,d.splice(_,p+a),c.length&&(d.splice(_,0,new O.Diff(y,c)),_++),t.length&&(d.splice(_,0,new O.Diff(L,t)),_++),_++):_!==0&&d[_-1][0]==I?(d[_-1][1]+=d[_][1],d.splice(_,1)):_++,a=0,p=0,c="",t="";break}d[d.length-1][1]===""&&d.pop();var r=!1;for(_=1;_<d.length-1;)d[_-1][0]==I&&d[_+1][0]==I&&(d[_][1].substring(d[_][1].length-d[_-1][1].length)==d[_-1][1]?(d[_][1]=d[_-1][1]+d[_][1].substring(0,d[_][1].length-d[_-1][1].length),d[_+1][1]=d[_-1][1]+d[_+1][1],d.splice(_-1,1),r=!0):d[_][1].substring(0,d[_+1][1].length)==d[_+1][1]&&(d[_-1][1]+=d[_+1][1],d[_][1]=d[_][1].substring(d[_+1][1].length)+d[_+1][1],d.splice(_+1,1),r=!0)),_++;r&&this.diff_cleanupMerge(d)},O.prototype.diff_xIndex=function(d,_){var p=0,a=0,c=0,t=0,i;for(i=0;i<d.length&&(d[i][0]!==L&&(p+=d[i][1].length),d[i][0]!==y&&(a+=d[i][1].length),!(p>_));i++)c=p,t=a;return d.length!=i&&d[i][0]===y?t:t+(_-c)},O.prototype.diff_prettyHtml=function(d){for(var _=[],p=/&/g,a=/</g,c=/>/g,t=/\n/g,i=0;i<d.length;i++){var r=d[i][0],e=d[i][1],n=e.replace(p,"&amp;").replace(a,"&lt;").replace(c,"&gt;").replace(t,"&para;<br>");switch(r){case L:_[i]='<ins style="background:#e6ffe6;">'+n+"</ins>";break;case y:_[i]='<del style="background:#ffe6e6;">'+n+"</del>";break;case I:_[i]="<span>"+n+"</span>";break}}return _.join("")},O.prototype.diff_text1=function(d){for(var _=[],p=0;p<d.length;p++)d[p][0]!==L&&(_[p]=d[p][1]);return _.join("")},O.prototype.diff_text2=function(d){for(var _=[],p=0;p<d.length;p++)d[p][0]!==y&&(_[p]=d[p][1]);return _.join("")},O.prototype.diff_levenshtein=function(d){for(var _=0,p=0,a=0,c=0;c<d.length;c++){var t=d[c][0],i=d[c][1];switch(t){case L:p+=i.length;break;case y:a+=i.length;break;case I:_+=Math.max(p,a),p=0,a=0;break}}return _+=Math.max(p,a),_},O.prototype.diff_toDelta=function(d){for(var _=[],p=0;p<d.length;p++)switch(d[p][0]){case L:_[p]="+"+encodeURI(d[p][1]);break;case y:_[p]="-"+d[p][1].length;break;case I:_[p]="="+d[p][1].length;break}return _.join(" ").replace(/%20/g," ")},O.prototype.diff_fromDelta=function(d,_){for(var p=[],a=0,c=0,t=_.split(/\t/g),i=0;i<t.length;i++){var r=t[i].substring(1);switch(t[i].charAt(0)){case"+":try{p[a++]=new O.Diff(L,decodeURI(r))}catch{throw new Error("Illegal escape in diff_fromDelta: "+r)}break;case"-":case"=":var e=parseInt(r,10);if(isNaN(e)||e<0)throw new Error("Invalid number in diff_fromDelta: "+r);var n=d.substring(c,c+=e);t[i].charAt(0)=="="?p[a++]=new O.Diff(I,n):p[a++]=new O.Diff(y,n);break;default:if(t[i])throw new Error("Invalid diff operation in diff_fromDelta: "+t[i])}}if(c!=d.length)throw new Error("Delta length ("+c+") does not equal source text length ("+d.length+").");return p},O.prototype.match_main=function(d,_,p){if(d==null||_==null||p==null)throw new Error("Null input. (match_main)");return p=Math.max(0,Math.min(p,d.length)),d==_?0:d.length?d.substring(p,p+_.length)==_?p:this.match_bitap_(d,_,p):-1},O.prototype.match_bitap_=function(d,_,p){if(_.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var a=this.match_alphabet_(_),c=this;function t(A,b){var m=A/_.length,k=Math.abs(p-b);return c.Match_Distance?m+k/c.Match_Distance:k?1:m}var i=this.Match_Threshold,r=d.indexOf(_,p);r!=-1&&(i=Math.min(t(0,r),i),r=d.lastIndexOf(_,p+_.length),r!=-1&&(i=Math.min(t(0,r),i)));var e=1<<_.length-1;r=-1;for(var n,o,l=_.length+d.length,h,u=0;u<_.length;u++){for(n=0,o=l;n<o;)t(u,p+o)<=i?n=o:l=o,o=Math.floor((l-n)/2+n);l=o;var $=Math.max(1,p-o+1),w=Math.min(p+o,d.length)+_.length,v=Array(w+2);v[w+1]=(1<<u)-1;for(var f=w;f>=$;f--){var M=a[d.charAt(f-1)];if(u===0?v[f]=(v[f+1]<<1|1)&M:v[f]=(v[f+1]<<1|1)&M|((h[f+1]|h[f])<<1|1)|h[f+1],v[f]&e){var S=t(u,f-1);if(S<=i)if(i=S,r=f-1,r>p)$=Math.max(1,2*p-r);else break}}if(t(u+1,p)>i)break;h=v}return r},O.prototype.match_alphabet_=function(d){for(var _={},p=0;p<d.length;p++)_[d.charAt(p)]=0;for(var p=0;p<d.length;p++)_[d.charAt(p)]|=1<<d.length-p-1;return _},O.prototype.patch_addContext_=function(d,_){if(_.length!=0){if(d.start2===null)throw Error("patch not initialized");for(var p=_.substring(d.start2,d.start2+d.length1),a=0;_.indexOf(p)!=_.lastIndexOf(p)&&p.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)a+=this.Patch_Margin,p=_.substring(d.start2-a,d.start2+d.length1+a);a+=this.Patch_Margin;var c=_.substring(d.start2-a,d.start2);c&&d.diffs.unshift(new O.Diff(I,c));var t=_.substring(d.start2+d.length1,d.start2+d.length1+a);t&&d.diffs.push(new O.Diff(I,t)),d.start1-=c.length,d.start2-=c.length,d.length1+=c.length+t.length,d.length2+=c.length+t.length}},O.prototype.patch_make=function(d,_,p){var a,c;if(typeof d=="string"&&typeof _=="string"&&typeof p>"u")a=d,c=this.diff_main(a,_,!0),c.length>2&&(this.diff_cleanupSemantic(c),this.diff_cleanupEfficiency(c));else if(d&&typeof d=="object"&&typeof _>"u"&&typeof p>"u")c=d,a=this.diff_text1(c);else if(typeof d=="string"&&_&&typeof _=="object"&&typeof p>"u")a=d,c=_;else if(typeof d=="string"&&typeof _=="string"&&p&&typeof p=="object")a=d,c=p;else throw new Error("Unknown call format to patch_make.");if(c.length===0)return[];for(var t=[],i=new O.patch_obj,r=0,e=0,n=0,o=a,l=a,h=0;h<c.length;h++){var u=c[h][0],$=c[h][1];switch(!r&&u!==I&&(i.start1=e,i.start2=n),u){case L:i.diffs[r++]=c[h],i.length2+=$.length,l=l.substring(0,n)+$+l.substring(n);break;case y:i.length1+=$.length,i.diffs[r++]=c[h],l=l.substring(0,n)+l.substring(n+$.length);break;case I:$.length<=2*this.Patch_Margin&&r&&c.length!=h+1?(i.diffs[r++]=c[h],i.length1+=$.length,i.length2+=$.length):$.length>=2*this.Patch_Margin&&r&&(this.patch_addContext_(i,o),t.push(i),i=new O.patch_obj,r=0,o=l,e=n);break}u!==L&&(e+=$.length),u!==y&&(n+=$.length)}return r&&(this.patch_addContext_(i,o),t.push(i)),t},O.prototype.patch_deepCopy=function(d){for(var _=[],p=0;p<d.length;p++){var a=d[p],c=new O.patch_obj;c.diffs=[];for(var t=0;t<a.diffs.length;t++)c.diffs[t]=new O.Diff(a.diffs[t][0],a.diffs[t][1]);c.start1=a.start1,c.start2=a.start2,c.length1=a.length1,c.length2=a.length2,_[p]=c}return _},O.prototype.patch_apply=function(d,_){if(d.length==0)return[_,[]];d=this.patch_deepCopy(d);var p=this.patch_addPadding(d);_=p+_+p,this.patch_splitMax(d);for(var a=0,c=[],t=0;t<d.length;t++){var i=d[t].start2+a,r=this.diff_text1(d[t].diffs),e,n=-1;if(r.length>this.Match_MaxBits?(e=this.match_main(_,r.substring(0,this.Match_MaxBits),i),e!=-1&&(n=this.match_main(_,r.substring(r.length-this.Match_MaxBits),i+r.length-this.Match_MaxBits),(n==-1||e>=n)&&(e=-1))):e=this.match_main(_,r,i),e==-1)c[t]=!1,a-=d[t].length2-d[t].length1;else{c[t]=!0,a=e-i;var o;if(n==-1?o=_.substring(e,e+r.length):o=_.substring(e,n+this.Match_MaxBits),r==o)_=_.substring(0,e)+this.diff_text2(d[t].diffs)+_.substring(e+r.length);else{var l=this.diff_main(r,o,!1);if(r.length>this.Match_MaxBits&&this.diff_levenshtein(l)/r.length>this.Patch_DeleteThreshold)c[t]=!1;else{this.diff_cleanupSemanticLossless(l);for(var h=0,u,$=0;$<d[t].diffs.length;$++){var w=d[t].diffs[$];w[0]!==I&&(u=this.diff_xIndex(l,h)),w[0]===L?_=_.substring(0,e+u)+w[1]+_.substring(e+u):w[0]===y&&(_=_.substring(0,e+u)+_.substring(e+this.diff_xIndex(l,h+w[1].length))),w[0]!==y&&(h+=w[1].length)}}}}}return _=_.substring(p.length,_.length-p.length),[_,c]},O.prototype.patch_addPadding=function(d){for(var _=this.Patch_Margin,p="",a=1;a<=_;a++)p+=String.fromCharCode(a);for(var a=0;a<d.length;a++)d[a].start1+=_,d[a].start2+=_;var c=d[0],t=c.diffs;if(t.length==0||t[0][0]!=I)t.unshift(new O.Diff(I,p)),c.start1-=_,c.start2-=_,c.length1+=_,c.length2+=_;else if(_>t[0][1].length){var i=_-t[0][1].length;t[0][1]=p.substring(t[0][1].length)+t[0][1],c.start1-=i,c.start2-=i,c.length1+=i,c.length2+=i}if(c=d[d.length-1],t=c.diffs,t.length==0||t[t.length-1][0]!=I)t.push(new O.Diff(I,p)),c.length1+=_,c.length2+=_;else if(_>t[t.length-1][1].length){var i=_-t[t.length-1][1].length;t[t.length-1][1]+=p.substring(0,i),c.length1+=i,c.length2+=i}return p},O.prototype.patch_splitMax=function(d){for(var _=this.Match_MaxBits,p=0;p<d.length;p++)if(!(d[p].length1<=_)){var a=d[p];d.splice(p--,1);for(var c=a.start1,t=a.start2,i="";a.diffs.length!==0;){var r=new O.patch_obj,e=!0;for(r.start1=c-i.length,r.start2=t-i.length,i!==""&&(r.length1=r.length2=i.length,r.diffs.push(new O.Diff(I,i)));a.diffs.length!==0&&r.length1<_-this.Patch_Margin;){var n=a.diffs[0][0],o=a.diffs[0][1];n===L?(r.length2+=o.length,t+=o.length,r.diffs.push(a.diffs.shift()),e=!1):n===y&&r.diffs.length==1&&r.diffs[0][0]==I&&o.length>2*_?(r.length1+=o.length,c+=o.length,e=!1,r.diffs.push(new O.Diff(n,o)),a.diffs.shift()):(o=o.substring(0,_-r.length1-this.Patch_Margin),r.length1+=o.length,c+=o.length,n===I?(r.length2+=o.length,t+=o.length):e=!1,r.diffs.push(new O.Diff(n,o)),o==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(o.length))}i=this.diff_text2(r.diffs),i=i.substring(i.length-this.Patch_Margin);var l=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);l!==""&&(r.length1+=l.length,r.length2+=l.length,r.diffs.length!==0&&r.diffs[r.diffs.length-1][0]===I?r.diffs[r.diffs.length-1][1]+=l:r.diffs.push(new O.Diff(I,l))),e||d.splice(++p,0,r)}}},O.prototype.patch_toText=function(d){for(var _=[],p=0;p<d.length;p++)_[p]=d[p];return _.join("")},O.prototype.patch_fromText=function(d){var _=[];if(!d)return _;for(var p=d.split(`
  825. `),a=0,c=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;a<p.length;){var t=p[a].match(c);if(!t)throw new Error("Invalid patch string: "+p[a]);var i=new O.patch_obj;for(_.push(i),i.start1=parseInt(t[1],10),t[2]===""?(i.start1--,i.length1=1):t[2]=="0"?i.length1=0:(i.start1--,i.length1=parseInt(t[2],10)),i.start2=parseInt(t[3],10),t[4]===""?(i.start2--,i.length2=1):t[4]=="0"?i.length2=0:(i.start2--,i.length2=parseInt(t[4],10)),a++;a<p.length;){var r=p[a].charAt(0);try{var e=decodeURI(p[a].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+e)}if(r=="-")i.diffs.push(new O.Diff(y,e));else if(r=="+")i.diffs.push(new O.Diff(L,e));else if(r==" ")i.diffs.push(new O.Diff(I,e));else{if(r=="@")break;if(r!=="")throw new Error('Invalid patch mode "'+r+'" in: '+e)}a++}}return _},O.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},O.patch_obj.prototype.toString=function(){var d,_;this.length1===0?d=this.start1+",0":this.length1==1?d=this.start1+1:d=this.start1+1+","+this.length1,this.length2===0?_=this.start2+",0":this.length2==1?_=this.start2+1:_=this.start2+1+","+this.length2;for(var p=["@@ -"+d+" +"+_+` @@
  826. `],a,c=0;c<this.diffs.length;c++){switch(this.diffs[c][0]){case L:a="+";break;case y:a="-";break;case I:a=" ";break}p[c+1]=a+encodeURI(this.diffs[c][1])+`
  827. `}return p.join("").replace(/%20/g," ")},s.exports=O,s.exports.diff_match_patch=O,s.exports.DIFF_DELETE=y,s.exports.DIFF_INSERT=L,s.exports.DIFF_EQUAL=I})(Ci);var jr=Ci.exports,Kr=ye&&ye.__extends||function(){var s=function(O,y){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,I){L.__proto__=I}||function(L,I){for(var d in I)Object.prototype.hasOwnProperty.call(I,d)&&(L[d]=I[d])},s(O,y)};return function(O,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");s(O,y);function L(){this.constructor=O}O.prototype=y===null?Object.create(y):(L.prototype=y.prototype,new L)}}();Object.defineProperty(Pt,"__esModule",{value:!0});var he=Dt,hi=Ke,Yr=vt,Xr=jr,Qr=function(s){Kr(O,s);function O(y){var L=s.call(this,y)||this;return L.state={value:L.props.value},L.onChange=L.onChange.bind(L),L.diff=L.diff.bind(L),L}return O.prototype.componentDidUpdate=function(){var y=this.props.value;y!==this.state.value&&this.setState({value:y})},O.prototype.onChange=function(y){this.setState({value:y}),this.props.onChange&&this.props.onChange(y)},O.prototype.diff=function(){var y=new Xr,L=this.state.value[0],I=this.state.value[1];if(L.length===0&&I.length===0)return[];var d=y.diff_main(L,I);y.diff_cleanupSemantic(d);var _=this.generateDiffedLines(d),p=this.setCodeMarkers(_);return p},O.prototype.generateDiffedLines=function(y){var L={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1},I={left:[],right:[]},d={left:1,right:1};return y.forEach(function(_){var p=_[0],a=_[1],c=a.split(`
  828. `).length-1;if(a.length!==0){var t=a[0],i=a[a.length-1],r=0;switch(p){case L.DIFF_EQUAL:d.left+=c,d.right+=c;break;case L.DIFF_DELETE:t===`
  829. `&&(d.left++,c--),r=c,r===0&&I.right.push({startLine:d.right,endLine:d.right}),i===`
  830. `&&(r-=1),I.left.push({startLine:d.left,endLine:d.left+r}),d.left+=c;break;case L.DIFF_INSERT:t===`
  831. `&&(d.right++,c--),r=c,r===0&&I.left.push({startLine:d.left,endLine:d.left}),i===`
  832. `&&(r-=1),I.right.push({startLine:d.right,endLine:d.right+r}),d.right+=c;break;default:throw new Error("Diff type was not defined.")}}}),I},O.prototype.setCodeMarkers=function(y){y===void 0&&(y={left:[],right:[]});for(var L=[],I={left:[],right:[]},d=0;d<y.left.length;d++){var _={startRow:y.left[d].startLine-1,endRow:y.left[d].endLine,type:"text",className:"codeMarker"};I.left.push(_)}for(var d=0;d<y.right.length;d++){var _={startRow:y.right[d].startLine-1,endRow:y.right[d].endLine,type:"text",className:"codeMarker"};I.right.push(_)}return L[0]=I.left,L[1]=I.right,L},O.prototype.render=function(){var y=this.diff();return hi.createElement(Yr.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:y})},O.propTypes={cursorStart:he.number,editorProps:he.object,enableBasicAutocompletion:he.bool,enableLiveAutocompletion:he.bool,focus:he.bool,fontSize:he.number,height:he.string,highlightActiveLine:he.bool,maxLines:he.number,minLines:he.number,mode:he.string,name:he.string,className:he.string,onLoad:he.func,onPaste:he.func,onScroll:he.func,onChange:he.func,orientation:he.string,readOnly:he.bool,scrollMargin:he.array,setOptions:he.object,showGutter:he.bool,showPrintMargin:he.bool,splits:he.number,style:he.object,tabSize:he.number,theme:he.string,value:he.array,width:he.string,wrapEnabled:he.bool},O.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},O}(hi.Component);Pt.default=Qr;Object.defineProperty(qe,"__esModule",{value:!0});qe.diff=qe.split=void 0;var Zr=xt,Jr=Pt;qe.diff=Jr.default;var qr=vt;qe.split=qr.default;var eo=qe.default=Zr.default,Ti={exports:{}};(function(s,O){ace.define("ace/theme/chrome-css",["require","exports","module"],function(y,L,I){I.exports=`.ace-chrome .ace_gutter {
  833. background: #ebebeb;
  834. color: #333;
  835. overflow : hidden;
  836. }
  837. .ace-chrome .ace_print-margin {
  838. width: 1px;
  839. background: #e8e8e8;
  840. }
  841. .ace-chrome {
  842. background-color: #FFFFFF;
  843. color: black;
  844. }
  845. .ace-chrome .ace_cursor {
  846. color: black;
  847. }
  848. .ace-chrome .ace_invisible {
  849. color: rgb(191, 191, 191);
  850. }
  851. .ace-chrome .ace_constant.ace_buildin {
  852. color: rgb(88, 72, 246);
  853. }
  854. .ace-chrome .ace_constant.ace_language {
  855. color: rgb(88, 92, 246);
  856. }
  857. .ace-chrome .ace_constant.ace_library {
  858. color: rgb(6, 150, 14);
  859. }
  860. .ace-chrome .ace_invalid {
  861. background-color: rgb(153, 0, 0);
  862. color: white;
  863. }
  864. .ace-chrome .ace_fold {
  865. }
  866. .ace-chrome .ace_support.ace_function {
  867. color: rgb(60, 76, 114);
  868. }
  869. .ace-chrome .ace_support.ace_constant {
  870. color: rgb(6, 150, 14);
  871. }
  872. .ace-chrome .ace_support.ace_type,
  873. .ace-chrome .ace_support.ace_class
  874. .ace-chrome .ace_support.ace_other {
  875. color: rgb(109, 121, 222);
  876. }
  877. .ace-chrome .ace_variable.ace_parameter {
  878. font-style:italic;
  879. color:#FD971F;
  880. }
  881. .ace-chrome .ace_keyword.ace_operator {
  882. color: rgb(104, 118, 135);
  883. }
  884. .ace-chrome .ace_comment {
  885. color: #236e24;
  886. }
  887. .ace-chrome .ace_comment.ace_doc {
  888. color: #236e24;
  889. }
  890. .ace-chrome .ace_comment.ace_doc.ace_tag {
  891. color: #236e24;
  892. }
  893. .ace-chrome .ace_constant.ace_numeric {
  894. color: rgb(0, 0, 205);
  895. }
  896. .ace-chrome .ace_variable {
  897. color: rgb(49, 132, 149);
  898. }
  899. .ace-chrome .ace_xml-pe {
  900. color: rgb(104, 104, 91);
  901. }
  902. .ace-chrome .ace_entity.ace_name.ace_function {
  903. color: #0000A2;
  904. }
  905. .ace-chrome .ace_heading {
  906. color: rgb(12, 7, 255);
  907. }
  908. .ace-chrome .ace_list {
  909. color:rgb(185, 6, 144);
  910. }
  911. .ace-chrome .ace_marker-layer .ace_selection {
  912. background: rgb(181, 213, 255);
  913. }
  914. .ace-chrome .ace_marker-layer .ace_step {
  915. background: rgb(252, 255, 0);
  916. }
  917. .ace-chrome .ace_marker-layer .ace_stack {
  918. background: rgb(164, 229, 101);
  919. }
  920. .ace-chrome .ace_marker-layer .ace_bracket {
  921. margin: -1px 0 0 -1px;
  922. border: 1px solid rgb(192, 192, 192);
  923. }
  924. .ace-chrome .ace_marker-layer .ace_active-line {
  925. background: rgba(0, 0, 0, 0.07);
  926. }
  927. .ace-chrome .ace_gutter-active-line {
  928. background-color : #dcdcdc;
  929. }
  930. .ace-chrome .ace_marker-layer .ace_selected-word {
  931. background: rgb(250, 250, 255);
  932. border: 1px solid rgb(200, 200, 250);
  933. }
  934. .ace-chrome .ace_storage,
  935. .ace-chrome .ace_keyword,
  936. .ace-chrome .ace_meta.ace_tag {
  937. color: rgb(147, 15, 128);
  938. }
  939. .ace-chrome .ace_string.ace_regex {
  940. color: rgb(255, 0, 0)
  941. }
  942. .ace-chrome .ace_string {
  943. color: #1A1AA6;
  944. }
  945. .ace-chrome .ace_entity.ace_other.ace_attribute-name {
  946. color: #994409;
  947. }
  948. .ace-chrome .ace_indent-guide {
  949. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
  950. }
  951. .ace-chrome .ace_indent-guide-active {
  952. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
  953. }
  954. `}),ace.define("ace/theme/chrome",["require","exports","module","ace/theme/chrome-css","ace/lib/dom"],function(y,L,I){L.isDark=!1,L.cssClass="ace-chrome",L.cssText=y("./chrome-css");var d=y("../lib/dom");d.importCssString(L.cssText,L.cssClass,!1)}),function(){ace.require(["ace/theme/chrome"],function(y){s&&(s.exports=y)})}()})(Ti);var Ri=Ti.exports;const to=It(Ri),io=Ot({__proto__:null,default:to},[Ri]);var ki={exports:{}};(function(s,O){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,L,I){var d=y("../lib/oop"),_=y("./text_highlight_rules").TextHighlightRules,p=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};d.inherits(p,_),L.JsonHighlightRules=p}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(y,L,I){var d=y("../range").Range,_=function(){};(function(){this.checkOutdent=function(p,a){return/^\s+$/.test(p)?/^\s*\}/.test(a):!1},this.autoOutdent=function(p,a){var c=p.getLine(a),t=c.match(/^(\s*\})/);if(!t)return 0;var i=t[1].length,r=p.findMatchingBracket({row:a,column:i});if(!r||r.row==a)return 0;var e=this.$getIndent(p.getLine(r.row));p.replace(new d(a,0,a,i-1),e)},this.$getIndent=function(p){return p.match(/^\s*/)[0]}}).call(_.prototype),L.MatchingBraceOutdent=_}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(y,L,I){var d=y("../../lib/oop"),_=y("../../range").Range,p=y("./fold_mode").FoldMode,a=L.FoldMode=function(c){c&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+c.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+c.end)))};d.inherits(a,p),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(c,t,i){var r=c.getLine(i);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var e=this._getFoldWidgetBase(c,t,i);return!e&&this.startRegionRe.test(r)?"start":e},this.getFoldWidgetRange=function(c,t,i,r){var e=c.getLine(i);if(this.startRegionRe.test(e))return this.getCommentRegionBlock(c,e,i);var l=e.match(this.foldingStartMarker);if(l){var n=l.index;if(l[1])return this.openingBracketBlock(c,l[1],i,n);var o=c.getCommentFoldRange(i,n+l[0].length,1);return o&&!o.isMultiLine()&&(r?o=this.getSectionRange(c,i):t!="all"&&(o=null)),o}if(t!=="markbegin"){var l=e.match(this.foldingStopMarker);if(l){var n=l.index+l[0].length;return l[1]?this.closingBracketBlock(c,l[1],i,n):c.getCommentFoldRange(i,n,-1)}}},this.getSectionRange=function(c,t){var i=c.getLine(t),r=i.search(/\S/),e=t,n=i.length;t=t+1;for(var o=t,l=c.getLength();++t<l;){i=c.getLine(t);var h=i.search(/\S/);if(h!==-1){if(r>h)break;var u=this.getFoldWidgetRange(c,"all",t);if(u){if(u.start.row<=e)break;if(u.isMultiLine())t=u.end.row;else if(r==h)break}o=t}}return new _(e,n,o,c.getLine(o).length)},this.getCommentRegionBlock=function(c,t,i){for(var r=t.search(/\s*$/),e=c.getLength(),n=i,o=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++i<e;){t=c.getLine(i);var h=o.exec(t);if(h&&(h[1]?l--:l++,!l))break}var u=i;if(u>n)return new _(n,r,u,t.length)}}.call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(y,L,I){var d=y("../lib/oop"),_=y("./text").Mode,p=y("./json_highlight_rules").JsonHighlightRules,a=y("./matching_brace_outdent").MatchingBraceOutdent,c=y("./folding/cstyle").FoldMode,t=y("../worker/worker_client").WorkerClient,i=function(){this.HighlightRules=p,this.$outdent=new a,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new c};d.inherits(i,_),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(r,e,n){var o=this.$getIndent(e);if(r=="start"){var l=e.match(/^.*[\{\(\[]\s*$/);l&&(o+=n)}return o},this.checkOutdent=function(r,e,n){return this.$outdent.checkOutdent(e,n)},this.autoOutdent=function(r,e,n){this.$outdent.autoOutdent(e,n)},this.createWorker=function(r){var e=new t(["ace"],"ace/mode/json_worker","JsonWorker");return e.attachToDocument(r.getDocument()),e.on("annotate",function(n){r.setAnnotations(n.data)}),e.on("terminate",function(){r.clearAnnotations()}),e},this.$id="ace/mode/json"}.call(i.prototype),L.Mode=i}),function(){ace.require(["ace/mode/json"],function(y){s&&(s.exports=y)})}()})(ki);var Ii=ki.exports;const no=It(Ii),ro=Ot({__proto__:null,default:no},[Ii]);ace.config.setModuleLoader("ace/ext/beautify",()=>R(()=>import("./ext-beautify-3316ac92.js").then(s=>s.e),["assets/ext-beautify-3316ac92.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/code_lens",()=>R(()=>import("./ext-code_lens-7146a642.js").then(s=>s.e),["assets/ext-code_lens-7146a642.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/command_bar",()=>R(()=>import("./ext-command_bar-5179b8c2.js").then(s=>s.e),["assets/ext-command_bar-5179b8c2.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/elastic_tabstops_lite",()=>R(()=>import("./ext-elastic_tabstops_lite-390aadf1.js").then(s=>s.e),["assets/ext-elastic_tabstops_lite-390aadf1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/emmet",()=>R(()=>import("./ext-emmet-be66e1b6.js").then(s=>s.e),["assets/ext-emmet-be66e1b6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/error_marker",()=>R(()=>import("./ext-error_marker-de80b766.js").then(s=>s.e),["assets/ext-error_marker-de80b766.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/hardwrap",()=>R(()=>import("./ext-hardwrap-4fe6a8e5.js").then(s=>s.e),["assets/ext-hardwrap-4fe6a8e5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/inline_autocomplete",()=>R(()=>import("./ext-inline_autocomplete-d52f38d1.js").then(s=>s.e),["assets/ext-inline_autocomplete-d52f38d1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/keyboard_menu",()=>R(()=>import("./ext-keybinding_menu-86bcfaef.js").then(s=>s.e),["assets/ext-keybinding_menu-86bcfaef.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/language_tools",()=>R(()=>import("./ext-language_tools-4c4b83f9.js").then(s=>s.e),["assets/ext-language_tools-4c4b83f9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/linking",()=>R(()=>import("./ext-linking-a29f2534.js").then(s=>s.e),["assets/ext-linking-a29f2534.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/modelist",()=>R(()=>import("./ext-modelist-e9d53ed6.js").then(s=>s.e),["assets/ext-modelist-e9d53ed6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/options",()=>R(()=>import("./ext-options-4f1ac3d7.js").then(s=>s.e),["assets/ext-options-4f1ac3d7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/prompt",()=>R(()=>import("./ext-prompt-d92afddd.js").then(s=>s.e),["assets/ext-prompt-d92afddd.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/rtl",()=>R(()=>import("./ext-rtl-b1ef0e34.js").then(s=>s.e),["assets/ext-rtl-b1ef0e34.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/searchbox",()=>R(()=>import("./ext-searchbox-5a0a653a.js").then(s=>s.e),["assets/ext-searchbox-5a0a653a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/settings_menu",()=>R(()=>import("./ext-settings_menu-6833ce4b.js").then(s=>s.e),["assets/ext-settings_menu-6833ce4b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/spellcheck",()=>R(()=>import("./ext-spellcheck-c11c7ee6.js").then(s=>s.e),["assets/ext-spellcheck-c11c7ee6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/split",()=>R(()=>Promise.resolve().then(()=>Un),void 0));ace.config.setModuleLoader("ace/ext/static_highlight",()=>R(()=>import("./ext-static_highlight-259fa63c.js").then(s=>s.e),["assets/ext-static_highlight-259fa63c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/statusbar",()=>R(()=>import("./ext-statusbar-d6919dd2.js").then(s=>s.e),["assets/ext-statusbar-d6919dd2.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/textarea",()=>R(()=>import("./ext-textarea-9b50de2b.js").then(s=>s.e),["assets/ext-textarea-9b50de2b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/themelist",()=>R(()=>import("./ext-themelist-8424eecf.js").then(s=>s.e),["assets/ext-themelist-8424eecf.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/ext/whitespace",()=>R(()=>import("./ext-whitespace-b20fb25d.js").then(s=>s.e),["assets/ext-whitespace-b20fb25d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/keyboard/emacs",()=>R(()=>import("./keybinding-emacs-bb15d66b.js").then(s=>s.k),["assets/keybinding-emacs-bb15d66b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/keyboard/sublime",()=>R(()=>import("./keybinding-sublime-ac922ed6.js").then(s=>s.k),["assets/keybinding-sublime-ac922ed6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/keyboard/vim",()=>R(()=>import("./keybinding-vim-ae74cd82.js").then(s=>s.k),["assets/keybinding-vim-ae74cd82.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/keyboard/vscode",()=>R(()=>import("./keybinding-vscode-451feaf0.js").then(s=>s.k),["assets/keybinding-vscode-451feaf0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/abap",()=>R(()=>import("./mode-abap-13673b4a.js").then(s=>s.m),["assets/mode-abap-13673b4a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/abc",()=>R(()=>import("./mode-abc-569b3183.js").then(s=>s.m),["assets/mode-abc-569b3183.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/actionscript",()=>R(()=>import("./mode-actionscript-0c891640.js").then(s=>s.m),["assets/mode-actionscript-0c891640.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/ada",()=>R(()=>import("./mode-ada-4a31061f.js").then(s=>s.m),["assets/mode-ada-4a31061f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/alda",()=>R(()=>import("./mode-alda-6cf55b2c.js").then(s=>s.m),["assets/mode-alda-6cf55b2c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/apache_conf",()=>R(()=>import("./mode-apache_conf-1047ec7d.js").then(s=>s.m),["assets/mode-apache_conf-1047ec7d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/apex",()=>R(()=>import("./mode-apex-ab3fbede.js").then(s=>s.m),["assets/mode-apex-ab3fbede.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/applescript",()=>R(()=>import("./mode-applescript-e3069485.js").then(s=>s.m),["assets/mode-applescript-e3069485.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/aql",()=>R(()=>import("./mode-aql-7c3d2b4b.js").then(s=>s.m),["assets/mode-aql-7c3d2b4b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/asciidoc",()=>R(()=>import("./mode-asciidoc-4ccad8b0.js").then(s=>s.m),["assets/mode-asciidoc-4ccad8b0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/asl",()=>R(()=>import("./mode-asl-33f9477c.js").then(s=>s.m),["assets/mode-asl-33f9477c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/assembly_x86",()=>R(()=>import("./mode-assembly_x86-85936759.js").then(s=>s.m),["assets/mode-assembly_x86-85936759.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/autohotkey",()=>R(()=>import("./mode-autohotkey-be1bfde5.js").then(s=>s.m),["assets/mode-autohotkey-be1bfde5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/batchfile",()=>R(()=>import("./mode-batchfile-e2d9b272.js").then(s=>s.m),["assets/mode-batchfile-e2d9b272.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/bibtex",()=>R(()=>import("./mode-bibtex-887ee26c.js").then(s=>s.m),["assets/mode-bibtex-887ee26c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/c9search",()=>R(()=>import("./mode-c9search-c58bc239.js").then(s=>s.m),["assets/mode-c9search-c58bc239.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/c_cpp",()=>R(()=>import("./mode-c_cpp-bcb7cb80.js").then(s=>s.m),["assets/mode-c_cpp-bcb7cb80.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/cirru",()=>R(()=>import("./mode-cirru-3e3d95bb.js").then(s=>s.m),["assets/mode-cirru-3e3d95bb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/clojure",()=>R(()=>import("./mode-clojure-18247abf.js").then(s=>s.m),["assets/mode-clojure-18247abf.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/cobol",()=>R(()=>import("./mode-cobol-e9304f4e.js").then(s=>s.m),["assets/mode-cobol-e9304f4e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/coffee",()=>R(()=>import("./mode-coffee-fa3651f0.js").then(s=>s.m),["assets/mode-coffee-fa3651f0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/coldfusion",()=>R(()=>import("./mode-coldfusion-beec9ba4.js").then(s=>s.m),["assets/mode-coldfusion-beec9ba4.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/crystal",()=>R(()=>import("./mode-crystal-c3c470d0.js").then(s=>s.m),["assets/mode-crystal-c3c470d0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/csharp",()=>R(()=>import("./mode-csharp-291b9fca.js").then(s=>s.m),["assets/mode-csharp-291b9fca.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/csound_document",()=>R(()=>import("./mode-csound_document-111007a5.js").then(s=>s.m),["assets/mode-csound_document-111007a5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/csound_orchestra",()=>R(()=>import("./mode-csound_orchestra-f5d0d432.js").then(s=>s.m),["assets/mode-csound_orchestra-f5d0d432.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/csound_score",()=>R(()=>import("./mode-csound_score-2af7366b.js").then(s=>s.m),["assets/mode-csound_score-2af7366b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/csp",()=>R(()=>import("./mode-csp-2a31dbdd.js").then(s=>s.m),["assets/mode-csp-2a31dbdd.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/css",()=>R(()=>import("./mode-css-e918eaf2.js").then(s=>s.m),["assets/mode-css-e918eaf2.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/curly",()=>R(()=>import("./mode-curly-a7633177.js").then(s=>s.m),["assets/mode-curly-a7633177.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/d",()=>R(()=>import("./mode-d-c43f27f3.js").then(s=>s.m),["assets/mode-d-c43f27f3.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/dart",()=>R(()=>import("./mode-dart-c7e4e801.js").then(s=>s.m),["assets/mode-dart-c7e4e801.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/diff",()=>R(()=>import("./mode-diff-919b188e.js").then(s=>s.m),["assets/mode-diff-919b188e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/django",()=>R(()=>import("./mode-django-ff2574b3.js").then(s=>s.m),["assets/mode-django-ff2574b3.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/dockerfile",()=>R(()=>import("./mode-dockerfile-8d440133.js").then(s=>s.m),["assets/mode-dockerfile-8d440133.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/dot",()=>R(()=>import("./mode-dot-3120d933.js").then(s=>s.m),["assets/mode-dot-3120d933.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/drools",()=>R(()=>import("./mode-drools-46320b96.js").then(s=>s.m),["assets/mode-drools-46320b96.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/edifact",()=>R(()=>import("./mode-edifact-16c7072a.js").then(s=>s.m),["assets/mode-edifact-16c7072a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/eiffel",()=>R(()=>import("./mode-eiffel-8e8d4dae.js").then(s=>s.m),["assets/mode-eiffel-8e8d4dae.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/ejs",()=>R(()=>import("./mode-ejs-51b6254a.js").then(s=>s.m),["assets/mode-ejs-51b6254a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/elixir",()=>R(()=>import("./mode-elixir-18a7e8ba.js").then(s=>s.m),["assets/mode-elixir-18a7e8ba.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/elm",()=>R(()=>import("./mode-elm-230e9538.js").then(s=>s.m),["assets/mode-elm-230e9538.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/erlang",()=>R(()=>import("./mode-erlang-f193ea0e.js").then(s=>s.m),["assets/mode-erlang-f193ea0e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/forth",()=>R(()=>import("./mode-forth-eafe10e9.js").then(s=>s.m),["assets/mode-forth-eafe10e9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/fortran",()=>R(()=>import("./mode-fortran-6b38f171.js").then(s=>s.m),["assets/mode-fortran-6b38f171.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/fsharp",()=>R(()=>import("./mode-fsharp-f9db037f.js").then(s=>s.m),["assets/mode-fsharp-f9db037f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/fsl",()=>R(()=>import("./mode-fsl-534eeb23.js").then(s=>s.m),["assets/mode-fsl-534eeb23.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/ftl",()=>R(()=>import("./mode-ftl-309c3855.js").then(s=>s.m),["assets/mode-ftl-309c3855.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/gcode",()=>R(()=>import("./mode-gcode-2d3b4c04.js").then(s=>s.m),["assets/mode-gcode-2d3b4c04.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/gherkin",()=>R(()=>import("./mode-gherkin-dbd55b60.js").then(s=>s.m),["assets/mode-gherkin-dbd55b60.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/gitignore",()=>R(()=>import("./mode-gitignore-ff490a93.js").then(s=>s.m),["assets/mode-gitignore-ff490a93.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/glsl",()=>R(()=>import("./mode-glsl-a61965b3.js").then(s=>s.m),["assets/mode-glsl-a61965b3.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/gobstones",()=>R(()=>import("./mode-gobstones-3ae5d767.js").then(s=>s.m),["assets/mode-gobstones-3ae5d767.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/golang",()=>R(()=>import("./mode-golang-58ca3f8d.js").then(s=>s.m),["assets/mode-golang-58ca3f8d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/graphqlschema",()=>R(()=>import("./mode-graphqlschema-092daeaa.js").then(s=>s.m),["assets/mode-graphqlschema-092daeaa.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/groovy",()=>R(()=>import("./mode-groovy-5cf66cd8.js").then(s=>s.m),["assets/mode-groovy-5cf66cd8.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/haml",()=>R(()=>import("./mode-haml-117b10a6.js").then(s=>s.m),["assets/mode-haml-117b10a6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/handlebars",()=>R(()=>import("./mode-handlebars-3d12c56f.js").then(s=>s.m),["assets/mode-handlebars-3d12c56f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/haskell",()=>R(()=>import("./mode-haskell-226c3780.js").then(s=>s.m),["assets/mode-haskell-226c3780.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/haskell_cabal",()=>R(()=>import("./mode-haskell_cabal-9038d40f.js").then(s=>s.m),["assets/mode-haskell_cabal-9038d40f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/haxe",()=>R(()=>import("./mode-haxe-be5c817d.js").then(s=>s.m),["assets/mode-haxe-be5c817d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/hjson",()=>R(()=>import("./mode-hjson-133f2f6d.js").then(s=>s.m),["assets/mode-hjson-133f2f6d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/html",()=>R(()=>import("./mode-html-b3ae6eba.js").then(s=>s.m),["assets/mode-html-b3ae6eba.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/html_elixir",()=>R(()=>import("./mode-html_elixir-4ee36798.js").then(s=>s.m),["assets/mode-html_elixir-4ee36798.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/html_ruby",()=>R(()=>import("./mode-html_ruby-4d311cba.js").then(s=>s.m),["assets/mode-html_ruby-4d311cba.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/ini",()=>R(()=>import("./mode-ini-74af33d1.js").then(s=>s.m),["assets/mode-ini-74af33d1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/io",()=>R(()=>import("./mode-io-2dc4c5bb.js").then(s=>s.m),["assets/mode-io-2dc4c5bb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/ion",()=>R(()=>import("./mode-ion-b7e64bc0.js").then(s=>s.m),["assets/mode-ion-b7e64bc0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/jack",()=>R(()=>import("./mode-jack-6a0b562c.js").then(s=>s.m),["assets/mode-jack-6a0b562c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/jade",()=>R(()=>import("./mode-jade-bd29a5d8.js").then(s=>s.m),["assets/mode-jade-bd29a5d8.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/java",()=>R(()=>import("./mode-java-835bbe5a.js").then(s=>s.m),["assets/mode-java-835bbe5a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/javascript",()=>R(()=>import("./mode-javascript-4fe34437.js").then(s=>s.m),["assets/mode-javascript-4fe34437.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/jexl",()=>R(()=>import("./mode-jexl-28570cbd.js").then(s=>s.m),["assets/mode-jexl-28570cbd.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/json",()=>R(()=>Promise.resolve().then(()=>ro),void 0));ace.config.setModuleLoader("ace/mode/json5",()=>R(()=>import("./mode-json5-c52a6588.js").then(s=>s.m),["assets/mode-json5-c52a6588.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/jsoniq",()=>R(()=>import("./mode-jsoniq-4904f6ec.js").then(s=>s.m),["assets/mode-jsoniq-4904f6ec.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/jsp",()=>R(()=>import("./mode-jsp-040d72f6.js").then(s=>s.m),["assets/mode-jsp-040d72f6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/jssm",()=>R(()=>import("./mode-jssm-a36b0a70.js").then(s=>s.m),["assets/mode-jssm-a36b0a70.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/jsx",()=>R(()=>import("./mode-jsx-9a41e920.js").then(s=>s.m),["assets/mode-jsx-9a41e920.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/julia",()=>R(()=>import("./mode-julia-5dd8759c.js").then(s=>s.m),["assets/mode-julia-5dd8759c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/kotlin",()=>R(()=>import("./mode-kotlin-bafebe84.js").then(s=>s.m),["assets/mode-kotlin-bafebe84.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/latex",()=>R(()=>import("./mode-latex-d675fdfc.js").then(s=>s.m),["assets/mode-latex-d675fdfc.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/latte",()=>R(()=>import("./mode-latte-40e1ab41.js").then(s=>s.m),["assets/mode-latte-40e1ab41.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/less",()=>R(()=>import("./mode-less-6c0d7fbf.js").then(s=>s.m),["assets/mode-less-6c0d7fbf.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/liquid",()=>R(()=>import("./mode-liquid-0268675f.js").then(s=>s.m),["assets/mode-liquid-0268675f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/lisp",()=>R(()=>import("./mode-lisp-8cc5d5ba.js").then(s=>s.m),["assets/mode-lisp-8cc5d5ba.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/livescript",()=>R(()=>import("./mode-livescript-0cd80e6f.js").then(s=>s.m),["assets/mode-livescript-0cd80e6f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/logiql",()=>R(()=>import("./mode-logiql-d153f0fb.js").then(s=>s.m),["assets/mode-logiql-d153f0fb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/logtalk",()=>R(()=>import("./mode-logtalk-14ddd5d9.js").then(s=>s.m),["assets/mode-logtalk-14ddd5d9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/lsl",()=>R(()=>import("./mode-lsl-6dc7474b.js").then(s=>s.m),["assets/mode-lsl-6dc7474b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/lua",()=>R(()=>import("./mode-lua-4d77755d.js").then(s=>s.m),["assets/mode-lua-4d77755d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/luapage",()=>R(()=>import("./mode-luapage-f5f8405a.js").then(s=>s.m),["assets/mode-luapage-f5f8405a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/lucene",()=>R(()=>import("./mode-lucene-218c1758.js").then(s=>s.m),["assets/mode-lucene-218c1758.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/makefile",()=>R(()=>import("./mode-makefile-f456dd11.js").then(s=>s.m),["assets/mode-makefile-f456dd11.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/markdown",()=>R(()=>import("./mode-markdown-13ae2106.js").then(s=>s.m),["assets/mode-markdown-13ae2106.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/mask",()=>R(()=>import("./mode-mask-14e7798b.js").then(s=>s.m),["assets/mode-mask-14e7798b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/matlab",()=>R(()=>import("./mode-matlab-199efafb.js").then(s=>s.m),["assets/mode-matlab-199efafb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/maze",()=>R(()=>import("./mode-maze-10f76d0b.js").then(s=>s.m),["assets/mode-maze-10f76d0b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/mediawiki",()=>R(()=>import("./mode-mediawiki-1fe3b2f9.js").then(s=>s.m),["assets/mode-mediawiki-1fe3b2f9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/mel",()=>R(()=>import("./mode-mel-f17a8bd1.js").then(s=>s.m),["assets/mode-mel-f17a8bd1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/mips",()=>R(()=>import("./mode-mips-5637121f.js").then(s=>s.m),["assets/mode-mips-5637121f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/mixal",()=>R(()=>import("./mode-mixal-40051614.js").then(s=>s.m),["assets/mode-mixal-40051614.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/mushcode",()=>R(()=>import("./mode-mushcode-7e8792ae.js").then(s=>s.m),["assets/mode-mushcode-7e8792ae.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/mysql",()=>R(()=>import("./mode-mysql-0407be85.js").then(s=>s.m),["assets/mode-mysql-0407be85.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/nginx",()=>R(()=>import("./mode-nginx-fa3165d9.js").then(s=>s.m),["assets/mode-nginx-fa3165d9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/nim",()=>R(()=>import("./mode-nim-ac333a88.js").then(s=>s.m),["assets/mode-nim-ac333a88.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/nix",()=>R(()=>import("./mode-nix-b285a01a.js").then(s=>s.m),["assets/mode-nix-b285a01a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/nsis",()=>R(()=>import("./mode-nsis-2ee579cc.js").then(s=>s.m),["assets/mode-nsis-2ee579cc.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/nunjucks",()=>R(()=>import("./mode-nunjucks-76bd2f7e.js").then(s=>s.m),["assets/mode-nunjucks-76bd2f7e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/objectivec",()=>R(()=>import("./mode-objectivec-3f64945d.js").then(s=>s.m),["assets/mode-objectivec-3f64945d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/ocaml",()=>R(()=>import("./mode-ocaml-c4db155a.js").then(s=>s.m),["assets/mode-ocaml-c4db155a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/odin",()=>R(()=>import("./mode-odin-32bc182a.js").then(s=>s.m),["assets/mode-odin-32bc182a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/partiql",()=>R(()=>import("./mode-partiql-2a08ff02.js").then(s=>s.m),["assets/mode-partiql-2a08ff02.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/pascal",()=>R(()=>import("./mode-pascal-84d26c04.js").then(s=>s.m),["assets/mode-pascal-84d26c04.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/perl",()=>R(()=>import("./mode-perl-8ce2f3e5.js").then(s=>s.m),["assets/mode-perl-8ce2f3e5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/pgsql",()=>R(()=>import("./mode-pgsql-dcee15ad.js").then(s=>s.m),["assets/mode-pgsql-dcee15ad.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/php",()=>R(()=>import("./mode-php-fd70fcfc.js").then(s=>s.m),["assets/mode-php-fd70fcfc.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/php_laravel_blade",()=>R(()=>import("./mode-php_laravel_blade-7a99517d.js").then(s=>s.m),["assets/mode-php_laravel_blade-7a99517d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/pig",()=>R(()=>import("./mode-pig-78535a17.js").then(s=>s.m),["assets/mode-pig-78535a17.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/plain_text",()=>R(()=>import("./mode-plain_text-996dd1bd.js").then(s=>s.m),["assets/mode-plain_text-996dd1bd.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/plsql",()=>R(()=>import("./mode-plsql-139212fb.js").then(s=>s.m),["assets/mode-plsql-139212fb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/powershell",()=>R(()=>import("./mode-powershell-be7dd5f7.js").then(s=>s.m),["assets/mode-powershell-be7dd5f7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/praat",()=>R(()=>import("./mode-praat-63a5cd9e.js").then(s=>s.m),["assets/mode-praat-63a5cd9e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/prisma",()=>R(()=>import("./mode-prisma-9f0b6c90.js").then(s=>s.m),["assets/mode-prisma-9f0b6c90.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/prolog",()=>R(()=>import("./mode-prolog-7a548861.js").then(s=>s.m),["assets/mode-prolog-7a548861.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/properties",()=>R(()=>import("./mode-properties-c5ededfc.js").then(s=>s.m),["assets/mode-properties-c5ededfc.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/protobuf",()=>R(()=>import("./mode-protobuf-48f671cd.js").then(s=>s.m),["assets/mode-protobuf-48f671cd.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/puppet",()=>R(()=>import("./mode-puppet-93bd2d79.js").then(s=>s.m),["assets/mode-puppet-93bd2d79.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/python",()=>R(()=>import("./mode-python-2a08ce3b.js").then(s=>s.m),["assets/mode-python-2a08ce3b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/qml",()=>R(()=>import("./mode-qml-c04a554b.js").then(s=>s.m),["assets/mode-qml-c04a554b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/r",()=>R(()=>import("./mode-r-25ff4417.js").then(s=>s.m),["assets/mode-r-25ff4417.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/raku",()=>R(()=>import("./mode-raku-5f6e7e92.js").then(s=>s.m),["assets/mode-raku-5f6e7e92.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/razor",()=>R(()=>import("./mode-razor-fc7add10.js").then(s=>s.m),["assets/mode-razor-fc7add10.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/rdoc",()=>R(()=>import("./mode-rdoc-c811d1a7.js").then(s=>s.m),["assets/mode-rdoc-c811d1a7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/red",()=>R(()=>import("./mode-red-3341a41b.js").then(s=>s.m),["assets/mode-red-3341a41b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/redshift",()=>R(()=>import("./mode-redshift-be95cf5f.js").then(s=>s.m),["assets/mode-redshift-be95cf5f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/rhtml",()=>R(()=>import("./mode-rhtml-9e2abc9f.js").then(s=>s.m),["assets/mode-rhtml-9e2abc9f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/robot",()=>R(()=>import("./mode-robot-2b6830f4.js").then(s=>s.m),["assets/mode-robot-2b6830f4.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/rst",()=>R(()=>import("./mode-rst-a4283754.js").then(s=>s.m),["assets/mode-rst-a4283754.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/ruby",()=>R(()=>import("./mode-ruby-9785a3c3.js").then(s=>s.m),["assets/mode-ruby-9785a3c3.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/rust",()=>R(()=>import("./mode-rust-e3a1efa7.js").then(s=>s.m),["assets/mode-rust-e3a1efa7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/sac",()=>R(()=>import("./mode-sac-646d86d6.js").then(s=>s.m),["assets/mode-sac-646d86d6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/sass",()=>R(()=>import("./mode-sass-5ffd5b04.js").then(s=>s.m),["assets/mode-sass-5ffd5b04.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/scad",()=>R(()=>import("./mode-scad-9dd133dd.js").then(s=>s.m),["assets/mode-scad-9dd133dd.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/scala",()=>R(()=>import("./mode-scala-de298cfe.js").then(s=>s.m),["assets/mode-scala-de298cfe.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/scheme",()=>R(()=>import("./mode-scheme-5dba36b7.js").then(s=>s.m),["assets/mode-scheme-5dba36b7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/scrypt",()=>R(()=>import("./mode-scrypt-bb3230f7.js").then(s=>s.m),["assets/mode-scrypt-bb3230f7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/scss",()=>R(()=>import("./mode-scss-ace6d961.js").then(s=>s.m),["assets/mode-scss-ace6d961.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/sh",()=>R(()=>import("./mode-sh-8f87ee62.js").then(s=>s.m),["assets/mode-sh-8f87ee62.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/sjs",()=>R(()=>import("./mode-sjs-32383a38.js").then(s=>s.m),["assets/mode-sjs-32383a38.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/slim",()=>R(()=>import("./mode-slim-beff503e.js").then(s=>s.m),["assets/mode-slim-beff503e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/smarty",()=>R(()=>import("./mode-smarty-ee57b257.js").then(s=>s.m),["assets/mode-smarty-ee57b257.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/smithy",()=>R(()=>import("./mode-smithy-24cf963b.js").then(s=>s.m),["assets/mode-smithy-24cf963b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/snippets",()=>R(()=>import("./mode-snippets-0440f39e.js").then(s=>s.m),["assets/mode-snippets-0440f39e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/soy_template",()=>R(()=>import("./mode-soy_template-97b3b276.js").then(s=>s.m),["assets/mode-soy_template-97b3b276.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/space",()=>R(()=>import("./mode-space-2f3ad2b5.js").then(s=>s.m),["assets/mode-space-2f3ad2b5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/sparql",()=>R(()=>import("./mode-sparql-82eb4419.js").then(s=>s.m),["assets/mode-sparql-82eb4419.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/sql",()=>R(()=>import("./mode-sql-9004bd02.js").then(s=>s.m),["assets/mode-sql-9004bd02.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/sqlserver",()=>R(()=>import("./mode-sqlserver-fad14553.js").then(s=>s.m),["assets/mode-sqlserver-fad14553.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/stylus",()=>R(()=>import("./mode-stylus-49f88f79.js").then(s=>s.m),["assets/mode-stylus-49f88f79.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/svg",()=>R(()=>import("./mode-svg-51c8ce36.js").then(s=>s.m),["assets/mode-svg-51c8ce36.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/swift",()=>R(()=>import("./mode-swift-5bff32bb.js").then(s=>s.m),["assets/mode-swift-5bff32bb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/tcl",()=>R(()=>import("./mode-tcl-196199d0.js").then(s=>s.m),["assets/mode-tcl-196199d0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/terraform",()=>R(()=>import("./mode-terraform-80fd66bc.js").then(s=>s.m),["assets/mode-terraform-80fd66bc.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/tex",()=>R(()=>import("./mode-tex-ebcc34a3.js").then(s=>s.m),["assets/mode-tex-ebcc34a3.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/text",()=>R(()=>import("./mode-text-1468e897.js").then(s=>s.m),["assets/mode-text-1468e897.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/textile",()=>R(()=>import("./mode-textile-63d4a31e.js").then(s=>s.m),["assets/mode-textile-63d4a31e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/toml",()=>R(()=>import("./mode-toml-da3a3038.js").then(s=>s.m),["assets/mode-toml-da3a3038.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/tsx",()=>R(()=>import("./mode-tsx-c12673c5.js").then(s=>s.m),["assets/mode-tsx-c12673c5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/turtle",()=>R(()=>import("./mode-turtle-8030864c.js").then(s=>s.m),["assets/mode-turtle-8030864c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/twig",()=>R(()=>import("./mode-twig-0403e0ee.js").then(s=>s.m),["assets/mode-twig-0403e0ee.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/typescript",()=>R(()=>import("./mode-typescript-23dfe42b.js").then(s=>s.m),["assets/mode-typescript-23dfe42b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/vala",()=>R(()=>import("./mode-vala-dd7699d7.js").then(s=>s.m),["assets/mode-vala-dd7699d7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/vbscript",()=>R(()=>import("./mode-vbscript-e6d00162.js").then(s=>s.m),["assets/mode-vbscript-e6d00162.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/velocity",()=>R(()=>import("./mode-velocity-dcf679cf.js").then(s=>s.m),["assets/mode-velocity-dcf679cf.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/verilog",()=>R(()=>import("./mode-verilog-2e0fabaa.js").then(s=>s.m),["assets/mode-verilog-2e0fabaa.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/vhdl",()=>R(()=>import("./mode-vhdl-d3848ddc.js").then(s=>s.m),["assets/mode-vhdl-d3848ddc.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/visualforce",()=>R(()=>import("./mode-visualforce-6bd862ca.js").then(s=>s.m),["assets/mode-visualforce-6bd862ca.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/wollok",()=>R(()=>import("./mode-wollok-79aef941.js").then(s=>s.m),["assets/mode-wollok-79aef941.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/xml",()=>R(()=>import("./mode-xml-67327133.js").then(s=>s.m),["assets/mode-xml-67327133.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/xquery",()=>R(()=>import("./mode-xquery-b7916339.js").then(s=>s.m),["assets/mode-xquery-b7916339.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/yaml",()=>R(()=>import("./mode-yaml-a5296a15.js").then(s=>s.m),["assets/mode-yaml-a5296a15.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/zeek",()=>R(()=>import("./mode-zeek-3e1f7d38.js").then(s=>s.m),["assets/mode-zeek-3e1f7d38.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/ambiance-css",()=>R(()=>import("./theme-ambiance-css-996f9552.js").then(s=>s.t),["assets/theme-ambiance-css-996f9552.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/ambiance",()=>R(()=>import("./theme-ambiance-c6c872ad.js").then(s=>s.t),["assets/theme-ambiance-c6c872ad.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/chaos-css",()=>R(()=>import("./theme-chaos-css-33fcca13.js").then(s=>s.t),["assets/theme-chaos-css-33fcca13.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/chaos",()=>R(()=>import("./theme-chaos-f38ea275.js").then(s=>s.t),["assets/theme-chaos-f38ea275.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/chrome-css",()=>R(()=>import("./theme-chrome-css-10a8e559.js").then(s=>s.t),["assets/theme-chrome-css-10a8e559.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/chrome",()=>R(()=>Promise.resolve().then(()=>io),void 0));ace.config.setModuleLoader("ace/theme/cloud9_day-css",()=>R(()=>import("./theme-cloud9_day-css-9d0707c8.js").then(s=>s.t),["assets/theme-cloud9_day-css-9d0707c8.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/cloud9_day",()=>R(()=>import("./theme-cloud9_day-4220fc0e.js").then(s=>s.t),["assets/theme-cloud9_day-4220fc0e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/cloud9_night-css",()=>R(()=>import("./theme-cloud9_night-css-39001e7b.js").then(s=>s.t),["assets/theme-cloud9_night-css-39001e7b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/cloud9_night",()=>R(()=>import("./theme-cloud9_night-13509a1e.js").then(s=>s.t),["assets/theme-cloud9_night-13509a1e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/cloud9_night_low_color-css",()=>R(()=>import("./theme-cloud9_night_low_color-css-5ff2cfc9.js").then(s=>s.t),["assets/theme-cloud9_night_low_color-css-5ff2cfc9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/cloud9_night_low_color",()=>R(()=>import("./theme-cloud9_night_low_color-169c11a4.js").then(s=>s.t),["assets/theme-cloud9_night_low_color-169c11a4.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/clouds-css",()=>R(()=>import("./theme-clouds-css-0d5fb318.js").then(s=>s.t),["assets/theme-clouds-css-0d5fb318.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/clouds",()=>R(()=>import("./theme-clouds-2a7db4f9.js").then(s=>s.t),["assets/theme-clouds-2a7db4f9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/clouds_midnight-css",()=>R(()=>import("./theme-clouds_midnight-css-defab090.js").then(s=>s.t),["assets/theme-clouds_midnight-css-defab090.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/clouds_midnight",()=>R(()=>import("./theme-clouds_midnight-8f6bef1e.js").then(s=>s.t),["assets/theme-clouds_midnight-8f6bef1e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/cobalt-css",()=>R(()=>import("./theme-cobalt-css-83bfa1c3.js").then(s=>s.t),["assets/theme-cobalt-css-83bfa1c3.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/cobalt",()=>R(()=>import("./theme-cobalt-d14cfcb6.js").then(s=>s.t),["assets/theme-cobalt-d14cfcb6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/crimson_editor-css",()=>R(()=>import("./theme-crimson_editor-css-e85efa31.js").then(s=>s.t),["assets/theme-crimson_editor-css-e85efa31.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/crimson_editor",()=>R(()=>import("./theme-crimson_editor-25904266.js").then(s=>s.t),["assets/theme-crimson_editor-25904266.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/dawn-css",()=>R(()=>import("./theme-dawn-css-dc026071.js").then(s=>s.t),["assets/theme-dawn-css-dc026071.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/dawn",()=>R(()=>import("./theme-dawn-ab6e3b29.js").then(s=>s.t),["assets/theme-dawn-ab6e3b29.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/dracula-css",()=>R(()=>import("./theme-dracula-css-7b20c75a.js").then(s=>s.t),["assets/theme-dracula-css-7b20c75a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/dracula",()=>R(()=>import("./theme-dracula-f6aa0420.js").then(s=>s.t),["assets/theme-dracula-f6aa0420.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/dreamweaver-css",()=>R(()=>import("./theme-dreamweaver-css-6c493186.js").then(s=>s.t),["assets/theme-dreamweaver-css-6c493186.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/dreamweaver",()=>R(()=>import("./theme-dreamweaver-61172e77.js").then(s=>s.t),["assets/theme-dreamweaver-61172e77.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/eclipse-css",()=>R(()=>import("./theme-eclipse-css-4c11c895.js").then(s=>s.t),["assets/theme-eclipse-css-4c11c895.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/eclipse",()=>R(()=>import("./theme-eclipse-69afaba9.js").then(s=>s.t),["assets/theme-eclipse-69afaba9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/github-css",()=>R(()=>import("./theme-github-css-8652f59a.js").then(s=>s.t),["assets/theme-github-css-8652f59a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/github",()=>R(()=>import("./theme-github-78731a2b.js").then(s=>s.t),["assets/theme-github-78731a2b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/github_dark-css",()=>R(()=>import("./theme-github_dark-css-ac887251.js").then(s=>s.t),["assets/theme-github_dark-css-ac887251.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/github_dark",()=>R(()=>import("./theme-github_dark-1c35b476.js").then(s=>s.t),["assets/theme-github_dark-1c35b476.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/gob-css",()=>R(()=>import("./theme-gob-css-5f3dc186.js").then(s=>s.t),["assets/theme-gob-css-5f3dc186.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/gob",()=>R(()=>import("./theme-gob-55f24a1a.js").then(s=>s.t),["assets/theme-gob-55f24a1a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/gruvbox-css",()=>R(()=>import("./theme-gruvbox-css-bcf30540.js").then(s=>s.t),["assets/theme-gruvbox-css-bcf30540.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/gruvbox",()=>R(()=>import("./theme-gruvbox-bdcbbb6c.js").then(s=>s.t),["assets/theme-gruvbox-bdcbbb6c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/gruvbox_dark_hard-css",()=>R(()=>import("./theme-gruvbox_dark_hard-css-c614aede.js").then(s=>s.t),["assets/theme-gruvbox_dark_hard-css-c614aede.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/gruvbox_dark_hard",()=>R(()=>import("./theme-gruvbox_dark_hard-b338c970.js").then(s=>s.t),["assets/theme-gruvbox_dark_hard-b338c970.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/gruvbox_light_hard-css",()=>R(()=>import("./theme-gruvbox_light_hard-css-39604873.js").then(s=>s.t),["assets/theme-gruvbox_light_hard-css-39604873.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/gruvbox_light_hard",()=>R(()=>import("./theme-gruvbox_light_hard-45a0eee8.js").then(s=>s.t),["assets/theme-gruvbox_light_hard-45a0eee8.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/idle_fingers-css",()=>R(()=>import("./theme-idle_fingers-css-5e29e9b0.js").then(s=>s.t),["assets/theme-idle_fingers-css-5e29e9b0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/idle_fingers",()=>R(()=>import("./theme-idle_fingers-1da5da28.js").then(s=>s.t),["assets/theme-idle_fingers-1da5da28.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/iplastic-css",()=>R(()=>import("./theme-iplastic-css-7e1b1304.js").then(s=>s.t),["assets/theme-iplastic-css-7e1b1304.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/iplastic",()=>R(()=>import("./theme-iplastic-c4cb7e69.js").then(s=>s.t),["assets/theme-iplastic-c4cb7e69.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/katzenmilch-css",()=>R(()=>import("./theme-katzenmilch-css-e06413a5.js").then(s=>s.t),["assets/theme-katzenmilch-css-e06413a5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/katzenmilch",()=>R(()=>import("./theme-katzenmilch-7131874a.js").then(s=>s.t),["assets/theme-katzenmilch-7131874a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/kr_theme-css",()=>R(()=>import("./theme-kr_theme-css-d6a9c3d2.js").then(s=>s.t),["assets/theme-kr_theme-css-d6a9c3d2.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/kr_theme",()=>R(()=>import("./theme-kr_theme-8759da43.js").then(s=>s.t),["assets/theme-kr_theme-8759da43.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/kuroir-css",()=>R(()=>import("./theme-kuroir-css-b8308b08.js").then(s=>s.t),["assets/theme-kuroir-css-b8308b08.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/kuroir",()=>R(()=>import("./theme-kuroir-3d44772f.js").then(s=>s.t),["assets/theme-kuroir-3d44772f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/merbivore-css",()=>R(()=>import("./theme-merbivore-css-ab7c739d.js").then(s=>s.t),["assets/theme-merbivore-css-ab7c739d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/merbivore",()=>R(()=>import("./theme-merbivore-4398262b.js").then(s=>s.t),["assets/theme-merbivore-4398262b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/merbivore_soft-css",()=>R(()=>import("./theme-merbivore_soft-css-06338492.js").then(s=>s.t),["assets/theme-merbivore_soft-css-06338492.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/merbivore_soft",()=>R(()=>import("./theme-merbivore_soft-c3b02e7d.js").then(s=>s.t),["assets/theme-merbivore_soft-c3b02e7d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/mono_industrial-css",()=>R(()=>import("./theme-mono_industrial-css-2e74be38.js").then(s=>s.t),["assets/theme-mono_industrial-css-2e74be38.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/mono_industrial",()=>R(()=>import("./theme-mono_industrial-cf08d693.js").then(s=>s.t),["assets/theme-mono_industrial-cf08d693.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/monokai-css",()=>R(()=>import("./theme-monokai-css-4c4c9ff0.js").then(s=>s.t),["assets/theme-monokai-css-4c4c9ff0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/monokai",()=>R(()=>import("./theme-monokai-255094af.js").then(s=>s.t),["assets/theme-monokai-255094af.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/nord_dark-css",()=>R(()=>import("./theme-nord_dark-css-8dc1adff.js").then(s=>s.t),["assets/theme-nord_dark-css-8dc1adff.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/nord_dark",()=>R(()=>import("./theme-nord_dark-52f2bf8e.js").then(s=>s.t),["assets/theme-nord_dark-52f2bf8e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/one_dark-css",()=>R(()=>import("./theme-one_dark-css-bf73411e.js").then(s=>s.t),["assets/theme-one_dark-css-bf73411e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/one_dark",()=>R(()=>import("./theme-one_dark-1ddccd25.js").then(s=>s.t),["assets/theme-one_dark-1ddccd25.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/pastel_on_dark-css",()=>R(()=>import("./theme-pastel_on_dark-css-87ed6a99.js").then(s=>s.t),["assets/theme-pastel_on_dark-css-87ed6a99.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/pastel_on_dark",()=>R(()=>import("./theme-pastel_on_dark-3184fe2c.js").then(s=>s.t),["assets/theme-pastel_on_dark-3184fe2c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/solarized_dark-css",()=>R(()=>import("./theme-solarized_dark-css-0623b8cf.js").then(s=>s.t),["assets/theme-solarized_dark-css-0623b8cf.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/solarized_dark",()=>R(()=>import("./theme-solarized_dark-8d1ed0bc.js").then(s=>s.t),["assets/theme-solarized_dark-8d1ed0bc.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/solarized_light-css",()=>R(()=>import("./theme-solarized_light-css-85a233e9.js").then(s=>s.t),["assets/theme-solarized_light-css-85a233e9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/solarized_light",()=>R(()=>import("./theme-solarized_light-52719c94.js").then(s=>s.t),["assets/theme-solarized_light-52719c94.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/sqlserver-css",()=>R(()=>import("./theme-sqlserver-css-992f4ef1.js").then(s=>s.t),["assets/theme-sqlserver-css-992f4ef1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/sqlserver",()=>R(()=>import("./theme-sqlserver-13e88846.js").then(s=>s.t),["assets/theme-sqlserver-13e88846.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/terminal-css",()=>R(()=>import("./theme-terminal-css-25b190e8.js").then(s=>s.t),["assets/theme-terminal-css-25b190e8.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/terminal",()=>R(()=>import("./theme-terminal-118bcf54.js").then(s=>s.t),["assets/theme-terminal-118bcf54.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/textmate-css",()=>R(()=>import("./theme-textmate-css-06bfbd21.js").then(s=>s.t),["assets/theme-textmate-css-06bfbd21.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/textmate",()=>R(()=>import("./theme-textmate-b8c527b9.js").then(s=>s.t),["assets/theme-textmate-b8c527b9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/tomorrow-css",()=>R(()=>import("./theme-tomorrow-css-ff58ebd6.js").then(s=>s.t),["assets/theme-tomorrow-css-ff58ebd6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/tomorrow",()=>R(()=>import("./theme-tomorrow-da1c9bfb.js").then(s=>s.t),["assets/theme-tomorrow-da1c9bfb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/tomorrow_night-css",()=>R(()=>import("./theme-tomorrow_night-css-556f343c.js").then(s=>s.t),["assets/theme-tomorrow_night-css-556f343c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/tomorrow_night",()=>R(()=>import("./theme-tomorrow_night-168afb69.js").then(s=>s.t),["assets/theme-tomorrow_night-168afb69.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/tomorrow_night_blue-css",()=>R(()=>import("./theme-tomorrow_night_blue-css-a82f3d0a.js").then(s=>s.t),["assets/theme-tomorrow_night_blue-css-a82f3d0a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/tomorrow_night_blue",()=>R(()=>import("./theme-tomorrow_night_blue-11da2b65.js").then(s=>s.t),["assets/theme-tomorrow_night_blue-11da2b65.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/tomorrow_night_bright-css",()=>R(()=>import("./theme-tomorrow_night_bright-css-09f5720c.js").then(s=>s.t),["assets/theme-tomorrow_night_bright-css-09f5720c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/tomorrow_night_bright",()=>R(()=>import("./theme-tomorrow_night_bright-1c7925ba.js").then(s=>s.t),["assets/theme-tomorrow_night_bright-1c7925ba.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/tomorrow_night_eighties-css",()=>R(()=>import("./theme-tomorrow_night_eighties-css-3ab75e1f.js").then(s=>s.t),["assets/theme-tomorrow_night_eighties-css-3ab75e1f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/tomorrow_night_eighties",()=>R(()=>import("./theme-tomorrow_night_eighties-d63cf088.js").then(s=>s.t),["assets/theme-tomorrow_night_eighties-d63cf088.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/twilight-css",()=>R(()=>import("./theme-twilight-css-e14f94f6.js").then(s=>s.t),["assets/theme-twilight-css-e14f94f6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/twilight",()=>R(()=>import("./theme-twilight-883b5461.js").then(s=>s.t),["assets/theme-twilight-883b5461.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/vibrant_ink-css",()=>R(()=>import("./theme-vibrant_ink-css-bfdb964a.js").then(s=>s.t),["assets/theme-vibrant_ink-css-bfdb964a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/vibrant_ink",()=>R(()=>import("./theme-vibrant_ink-bc7fb666.js").then(s=>s.t),["assets/theme-vibrant_ink-bc7fb666.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/xcode-css",()=>R(()=>import("./theme-xcode-css-0061b1fb.js").then(s=>s.t),["assets/theme-xcode-css-0061b1fb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/theme/xcode",()=>R(()=>import("./theme-xcode-e4d39d60.js").then(s=>s.t),["assets/theme-xcode-e4d39d60.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/base_worker",()=>R(()=>import("./worker-base-b5c8d4e1.js").then(s=>s.w),["assets/worker-base-b5c8d4e1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/coffee_worker",()=>R(()=>import("./worker-coffee-3f59e30a.js").then(s=>s.w),["assets/worker-coffee-3f59e30a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/css_worker",()=>R(()=>import("./worker-css-816e8663.js").then(s=>s.w),["assets/worker-css-816e8663.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/html_worker",()=>R(()=>import("./worker-html-ecdbdc1f.js").then(s=>s.w),["assets/worker-html-ecdbdc1f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/javascript_worker",()=>R(()=>import("./worker-javascript-690e4b36.js").then(s=>s.w),["assets/worker-javascript-690e4b36.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/json_worker",()=>R(()=>import("./worker-json-6e1e0365.js").then(s=>s.w),["assets/worker-json-6e1e0365.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/lua_worker",()=>R(()=>import("./worker-lua-edec3391.js").then(s=>s.w),["assets/worker-lua-edec3391.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/php_worker",()=>R(()=>import("./worker-php-d77dc344.js").then(s=>s.w),["assets/worker-php-d77dc344.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/xml_worker",()=>R(()=>import("./worker-xml-542e2a85.js").then(s=>s.w),["assets/worker-xml-542e2a85.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/xquery_worker",()=>R(()=>import("./worker-xquery-0c637ec1.js").then(s=>s.w),["assets/worker-xquery-0c637ec1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/mode/yaml_worker",()=>R(()=>import("./worker-yaml-82790d65.js").then(s=>s.w),["assets/worker-yaml-82790d65.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/abap",()=>R(()=>import("./abap-ab265910.js").then(s=>s.a),["assets/abap-ab265910.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/abc",()=>R(()=>import("./abc-4ebbc8a1.js").then(s=>s.a),["assets/abc-4ebbc8a1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/actionscript",()=>R(()=>import("./actionscript-d28d5a67.js").then(s=>s.a),["assets/actionscript-d28d5a67.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/ada",()=>R(()=>import("./ada-f0c5e2f5.js").then(s=>s.a),["assets/ada-f0c5e2f5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/alda",()=>R(()=>import("./alda-d786c105.js").then(s=>s.a),["assets/alda-d786c105.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/apache_conf",()=>R(()=>import("./apache_conf-574ab1a0.js").then(s=>s.a),["assets/apache_conf-574ab1a0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/apex",()=>R(()=>import("./apex-25251118.js").then(s=>s.a),["assets/apex-25251118.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/applescript",()=>R(()=>import("./applescript-a7b5f4b0.js").then(s=>s.a),["assets/applescript-a7b5f4b0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/aql",()=>R(()=>import("./aql-2d18e4a3.js").then(s=>s.a),["assets/aql-2d18e4a3.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/asciidoc",()=>R(()=>import("./asciidoc-15d83382.js").then(s=>s.a),["assets/asciidoc-15d83382.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/asl",()=>R(()=>import("./asl-9258cf5c.js").then(s=>s.a),["assets/asl-9258cf5c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/assembly_x86",()=>R(()=>import("./assembly_x86-1f6b1418.js").then(s=>s.a),["assets/assembly_x86-1f6b1418.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/autohotkey",()=>R(()=>import("./autohotkey-17defc3f.js").then(s=>s.a),["assets/autohotkey-17defc3f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/batchfile",()=>R(()=>import("./batchfile-20396ffd.js").then(s=>s.b),["assets/batchfile-20396ffd.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/bibtex",()=>R(()=>import("./bibtex-0e9ef081.js").then(s=>s.b),["assets/bibtex-0e9ef081.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/c9search",()=>R(()=>import("./c9search-9bc41096.js").then(s=>s.c),["assets/c9search-9bc41096.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/c_cpp",()=>R(()=>import("./c_cpp-95ad2008.js").then(s=>s.c),["assets/c_cpp-95ad2008.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/cirru",()=>R(()=>import("./cirru-14ebd908.js").then(s=>s.c),["assets/cirru-14ebd908.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/clojure",()=>R(()=>import("./clojure-aaa6ba43.js").then(s=>s.c),["assets/clojure-aaa6ba43.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/cobol",()=>R(()=>import("./cobol-57ed4ada.js").then(s=>s.c),["assets/cobol-57ed4ada.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/coffee",()=>R(()=>import("./coffee-6ce55210.js").then(s=>s.c),["assets/coffee-6ce55210.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/coldfusion",()=>R(()=>import("./coldfusion-8315c88f.js").then(s=>s.c),["assets/coldfusion-8315c88f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/crystal",()=>R(()=>import("./crystal-f7d8c444.js").then(s=>s.c),["assets/crystal-f7d8c444.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/csharp",()=>R(()=>import("./csharp-98e7fa97.js").then(s=>s.c),["assets/csharp-98e7fa97.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/csound_document",()=>R(()=>import("./csound_document-1fd8d0b0.js").then(s=>s.c),["assets/csound_document-1fd8d0b0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/csound_orchestra",()=>R(()=>import("./csound_orchestra-bf8ade9e.js").then(s=>s.c),["assets/csound_orchestra-bf8ade9e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/csound_score",()=>R(()=>import("./csound_score-834457cb.js").then(s=>s.c),["assets/csound_score-834457cb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/csp",()=>R(()=>import("./csp-d7a7c13b.js").then(s=>s.c),["assets/csp-d7a7c13b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/css",()=>R(()=>import("./css-01393442.js").then(s=>s.c),["assets/css-01393442.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/curly",()=>R(()=>import("./curly-c85a6054.js").then(s=>s.c),["assets/curly-c85a6054.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/d",()=>R(()=>import("./d-e43d0873.js").then(s=>s.d),["assets/d-e43d0873.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/dart",()=>R(()=>import("./dart-e65307d5.js").then(s=>s.d),["assets/dart-e65307d5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/diff",()=>R(()=>import("./diff-a061ae6b.js").then(s=>s.d),["assets/diff-a061ae6b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/django",()=>R(()=>import("./django-387e4c8b.js").then(s=>s.d),["assets/django-387e4c8b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/dockerfile",()=>R(()=>import("./dockerfile-05338f5c.js").then(s=>s.d),["assets/dockerfile-05338f5c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/dot",()=>R(()=>import("./dot-0809201e.js").then(s=>s.d),["assets/dot-0809201e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/drools",()=>R(()=>import("./drools-a8b4e7f7.js").then(s=>s.d),["assets/drools-a8b4e7f7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/edifact",()=>R(()=>import("./edifact-2acf4839.js").then(s=>s.e),["assets/edifact-2acf4839.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/eiffel",()=>R(()=>import("./eiffel-0ca3c854.js").then(s=>s.e),["assets/eiffel-0ca3c854.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/ejs",()=>R(()=>import("./ejs-c80fd70b.js").then(s=>s.e),["assets/ejs-c80fd70b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/elixir",()=>R(()=>import("./elixir-95ab601e.js").then(s=>s.e),["assets/elixir-95ab601e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/elm",()=>R(()=>import("./elm-45b2c9e1.js").then(s=>s.e),["assets/elm-45b2c9e1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/erlang",()=>R(()=>import("./erlang-1cbe6f51.js").then(s=>s.e),["assets/erlang-1cbe6f51.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/forth",()=>R(()=>import("./forth-eb377826.js").then(s=>s.f),["assets/forth-eb377826.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/fortran",()=>R(()=>import("./fortran-366203ab.js").then(s=>s.f),["assets/fortran-366203ab.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/fsharp",()=>R(()=>import("./fsharp-b6af93af.js").then(s=>s.f),["assets/fsharp-b6af93af.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/fsl",()=>R(()=>import("./fsl-d6bc7509.js").then(s=>s.f),["assets/fsl-d6bc7509.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/ftl",()=>R(()=>import("./ftl-059b5e6c.js").then(s=>s.f),["assets/ftl-059b5e6c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/gcode",()=>R(()=>import("./gcode-d8f0c3dd.js").then(s=>s.g),["assets/gcode-d8f0c3dd.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/gherkin",()=>R(()=>import("./gherkin-df16baa5.js").then(s=>s.g),["assets/gherkin-df16baa5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/gitignore",()=>R(()=>import("./gitignore-80c71bbf.js").then(s=>s.g),["assets/gitignore-80c71bbf.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/glsl",()=>R(()=>import("./glsl-d0213cec.js").then(s=>s.g),["assets/glsl-d0213cec.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/gobstones",()=>R(()=>import("./gobstones-9f470c90.js").then(s=>s.g),["assets/gobstones-9f470c90.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/golang",()=>R(()=>import("./golang-74ef8841.js").then(s=>s.g),["assets/golang-74ef8841.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/graphqlschema",()=>R(()=>import("./graphqlschema-07a4eb5d.js").then(s=>s.g),["assets/graphqlschema-07a4eb5d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/groovy",()=>R(()=>import("./groovy-cea4d628.js").then(s=>s.g),["assets/groovy-cea4d628.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/haml",()=>R(()=>import("./haml-456523a9.js").then(s=>s.h),["assets/haml-456523a9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/handlebars",()=>R(()=>import("./handlebars-3c8bdd03.js").then(s=>s.h),["assets/handlebars-3c8bdd03.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/haskell",()=>R(()=>import("./haskell-40d3049f.js").then(s=>s.h),["assets/haskell-40d3049f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/haskell_cabal",()=>R(()=>import("./haskell_cabal-ada558c8.js").then(s=>s.h),["assets/haskell_cabal-ada558c8.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/haxe",()=>R(()=>import("./haxe-efb234a9.js").then(s=>s.h),["assets/haxe-efb234a9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/hjson",()=>R(()=>import("./hjson-91de515f.js").then(s=>s.h),["assets/hjson-91de515f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/html",()=>R(()=>import("./html-a1ac0007.js").then(s=>s.h),["assets/html-a1ac0007.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/html_elixir",()=>R(()=>import("./html_elixir-8d43fb8a.js").then(s=>s.h),["assets/html_elixir-8d43fb8a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/html_ruby",()=>R(()=>import("./html_ruby-dae1a01b.js").then(s=>s.h),["assets/html_ruby-dae1a01b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/ini",()=>R(()=>import("./ini-7420df00.js").then(s=>s.i),["assets/ini-7420df00.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/io",()=>R(()=>import("./io-537089be.js").then(s=>s.i),["assets/io-537089be.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/ion",()=>R(()=>import("./ion-9039ac30.js").then(s=>s.i),["assets/ion-9039ac30.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/jack",()=>R(()=>import("./jack-95445f6e.js").then(s=>s.j),["assets/jack-95445f6e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/jade",()=>R(()=>import("./jade-3b8a369c.js").then(s=>s.j),["assets/jade-3b8a369c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/java",()=>R(()=>import("./java-e0460539.js").then(s=>s.j),["assets/java-e0460539.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/javascript",()=>R(()=>import("./javascript-4ed1cfb3.js").then(s=>s.j),["assets/javascript-4ed1cfb3.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/jexl",()=>R(()=>import("./jexl-e98249d5.js").then(s=>s.j),["assets/jexl-e98249d5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/json",()=>R(()=>import("./json-55ea0ab6.js").then(s=>s.j),["assets/json-55ea0ab6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/json5",()=>R(()=>import("./json5-6ddcae15.js").then(s=>s.j),["assets/json5-6ddcae15.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/jsoniq",()=>R(()=>import("./jsoniq-26e46968.js").then(s=>s.j),["assets/jsoniq-26e46968.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/jsp",()=>R(()=>import("./jsp-6a1999cb.js").then(s=>s.j),["assets/jsp-6a1999cb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/jssm",()=>R(()=>import("./jssm-18b46a1b.js").then(s=>s.j),["assets/jssm-18b46a1b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/jsx",()=>R(()=>import("./jsx-43664fc4.js").then(s=>s.j),["assets/jsx-43664fc4.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/julia",()=>R(()=>import("./julia-3fa61aa1.js").then(s=>s.j),["assets/julia-3fa61aa1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/kotlin",()=>R(()=>import("./kotlin-cbf989fb.js").then(s=>s.k),["assets/kotlin-cbf989fb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/latex",()=>R(()=>import("./latex-a864fe23.js").then(s=>s.l),["assets/latex-a864fe23.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/latte",()=>R(()=>import("./latte-078a2ecb.js").then(s=>s.l),["assets/latte-078a2ecb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/less",()=>R(()=>import("./less-7bf468ff.js").then(s=>s.l),["assets/less-7bf468ff.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/liquid",()=>R(()=>import("./liquid-130699bf.js").then(s=>s.l),["assets/liquid-130699bf.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/lisp",()=>R(()=>import("./lisp-d7fac88b.js").then(s=>s.l),["assets/lisp-d7fac88b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/livescript",()=>R(()=>import("./livescript-94d0509c.js").then(s=>s.l),["assets/livescript-94d0509c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/logiql",()=>R(()=>import("./logiql-7fdacc1b.js").then(s=>s.l),["assets/logiql-7fdacc1b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/logtalk",()=>R(()=>import("./logtalk-0ef11a40.js").then(s=>s.l),["assets/logtalk-0ef11a40.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/lsl",()=>R(()=>import("./lsl-b8ea5382.js").then(s=>s.l),["assets/lsl-b8ea5382.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/lua",()=>R(()=>import("./lua-12a14952.js").then(s=>s.l),["assets/lua-12a14952.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/luapage",()=>R(()=>import("./luapage-7522d960.js").then(s=>s.l),["assets/luapage-7522d960.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/lucene",()=>R(()=>import("./lucene-8be6f7e8.js").then(s=>s.l),["assets/lucene-8be6f7e8.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/makefile",()=>R(()=>import("./makefile-e0e15799.js").then(s=>s.m),["assets/makefile-e0e15799.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/markdown",()=>R(()=>import("./markdown-3e72e837.js").then(s=>s.m),["assets/markdown-3e72e837.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/mask",()=>R(()=>import("./mask-2142bd7e.js").then(s=>s.m),["assets/mask-2142bd7e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/matlab",()=>R(()=>import("./matlab-3f651361.js").then(s=>s.m),["assets/matlab-3f651361.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/maze",()=>R(()=>import("./maze-33a6b3f5.js").then(s=>s.m),["assets/maze-33a6b3f5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/mediawiki",()=>R(()=>import("./mediawiki-f611e8cb.js").then(s=>s.m),["assets/mediawiki-f611e8cb.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/mel",()=>R(()=>import("./mel-ebd60541.js").then(s=>s.m),["assets/mel-ebd60541.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/mips",()=>R(()=>import("./mips-a4aff10d.js").then(s=>s.m),["assets/mips-a4aff10d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/mixal",()=>R(()=>import("./mixal-dc5ec43a.js").then(s=>s.m),["assets/mixal-dc5ec43a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/mushcode",()=>R(()=>import("./mushcode-e72e31a4.js").then(s=>s.m),["assets/mushcode-e72e31a4.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/mysql",()=>R(()=>import("./mysql-72596b50.js").then(s=>s.m),["assets/mysql-72596b50.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/nginx",()=>R(()=>import("./nginx-b144634c.js").then(s=>s.n),["assets/nginx-b144634c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/nim",()=>R(()=>import("./nim-3fc28eee.js").then(s=>s.n),["assets/nim-3fc28eee.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/nix",()=>R(()=>import("./nix-eb53c199.js").then(s=>s.n),["assets/nix-eb53c199.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/nsis",()=>R(()=>import("./nsis-86ef4890.js").then(s=>s.n),["assets/nsis-86ef4890.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/nunjucks",()=>R(()=>import("./nunjucks-292091f3.js").then(s=>s.n),["assets/nunjucks-292091f3.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/objectivec",()=>R(()=>import("./objectivec-cee9b889.js").then(s=>s.o),["assets/objectivec-cee9b889.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/ocaml",()=>R(()=>import("./ocaml-09c4567c.js").then(s=>s.o),["assets/ocaml-09c4567c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/odin",()=>R(()=>import("./odin-1aac6ff8.js").then(s=>s.o),["assets/odin-1aac6ff8.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/partiql",()=>R(()=>import("./partiql-56766f77.js").then(s=>s.p),["assets/partiql-56766f77.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/pascal",()=>R(()=>import("./pascal-b55e0781.js").then(s=>s.p),["assets/pascal-b55e0781.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/perl",()=>R(()=>import("./perl-93537a66.js").then(s=>s.p),["assets/perl-93537a66.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/pgsql",()=>R(()=>import("./pgsql-712d0b20.js").then(s=>s.p),["assets/pgsql-712d0b20.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/php",()=>R(()=>import("./php-853597b2.js").then(s=>s.p),["assets/php-853597b2.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/php_laravel_blade",()=>R(()=>import("./php_laravel_blade-5b826893.js").then(s=>s.p),["assets/php_laravel_blade-5b826893.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/pig",()=>R(()=>import("./pig-e758b840.js").then(s=>s.p),["assets/pig-e758b840.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/plain_text",()=>R(()=>import("./plain_text-976ee4d2.js").then(s=>s.p),["assets/plain_text-976ee4d2.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/plsql",()=>R(()=>import("./plsql-68a61cd6.js").then(s=>s.p),["assets/plsql-68a61cd6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/powershell",()=>R(()=>import("./powershell-c7d8bcc4.js").then(s=>s.p),["assets/powershell-c7d8bcc4.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/praat",()=>R(()=>import("./praat-183153cf.js").then(s=>s.p),["assets/praat-183153cf.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/prisma",()=>R(()=>import("./prisma-00a5b9d5.js").then(s=>s.p),["assets/prisma-00a5b9d5.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/prolog",()=>R(()=>import("./prolog-cb59f78e.js").then(s=>s.p),["assets/prolog-cb59f78e.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/properties",()=>R(()=>import("./properties-ebed4240.js").then(s=>s.p),["assets/properties-ebed4240.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/protobuf",()=>R(()=>import("./protobuf-d47e1d35.js").then(s=>s.p),["assets/protobuf-d47e1d35.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/puppet",()=>R(()=>import("./puppet-80a4a3d8.js").then(s=>s.p),["assets/puppet-80a4a3d8.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/python",()=>R(()=>import("./python-0634c087.js").then(s=>s.p),["assets/python-0634c087.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/qml",()=>R(()=>import("./qml-39a03c78.js").then(s=>s.q),["assets/qml-39a03c78.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/r",()=>R(()=>import("./r-443211ec.js").then(s=>s.r),["assets/r-443211ec.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/raku",()=>R(()=>import("./raku-2929d4f7.js").then(s=>s.r),["assets/raku-2929d4f7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/razor",()=>R(()=>import("./razor-a7b11dd7.js").then(s=>s.r),["assets/razor-a7b11dd7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/rdoc",()=>R(()=>import("./rdoc-477572e1.js").then(s=>s.r),["assets/rdoc-477572e1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/red",()=>R(()=>import("./red-6a0b6e76.js").then(s=>s.r),["assets/red-6a0b6e76.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/redshift",()=>R(()=>import("./redshift-2b7f0600.js").then(s=>s.r),["assets/redshift-2b7f0600.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/rhtml",()=>R(()=>import("./rhtml-ac0a515a.js").then(s=>s.r),["assets/rhtml-ac0a515a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/robot",()=>R(()=>import("./robot-3d52480a.js").then(s=>s.r),["assets/robot-3d52480a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/rst",()=>R(()=>import("./rst-7535ad56.js").then(s=>s.r),["assets/rst-7535ad56.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/ruby",()=>R(()=>import("./ruby-4b2850c0.js").then(s=>s.r),["assets/ruby-4b2850c0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/rust",()=>R(()=>import("./rust-19b62455.js").then(s=>s.r),["assets/rust-19b62455.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/sac",()=>R(()=>import("./sac-c2d19df4.js").then(s=>s.s),["assets/sac-c2d19df4.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/sass",()=>R(()=>import("./sass-a9e7ddcd.js").then(s=>s.s),["assets/sass-a9e7ddcd.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/scad",()=>R(()=>import("./scad-c6279dfe.js").then(s=>s.s),["assets/scad-c6279dfe.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/scala",()=>R(()=>import("./scala-f0c653a0.js").then(s=>s.s),["assets/scala-f0c653a0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/scheme",()=>R(()=>import("./scheme-49b36c57.js").then(s=>s.s),["assets/scheme-49b36c57.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/scrypt",()=>R(()=>import("./scrypt-56414b3b.js").then(s=>s.s),["assets/scrypt-56414b3b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/scss",()=>R(()=>import("./scss-a9d758c1.js").then(s=>s.s),["assets/scss-a9d758c1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/sh",()=>R(()=>import("./sh-658a852a.js").then(s=>s.s),["assets/sh-658a852a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/sjs",()=>R(()=>import("./sjs-0ec8b277.js").then(s=>s.s),["assets/sjs-0ec8b277.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/slim",()=>R(()=>import("./slim-bb07355c.js").then(s=>s.s),["assets/slim-bb07355c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/smarty",()=>R(()=>import("./smarty-255d8a26.js").then(s=>s.s),["assets/smarty-255d8a26.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/smithy",()=>R(()=>import("./smithy-1b1ff19b.js").then(s=>s.s),["assets/smithy-1b1ff19b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/snippets",()=>R(()=>import("./snippets-071ec3dd.js").then(s=>s.s),["assets/snippets-071ec3dd.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/soy_template",()=>R(()=>import("./soy_template-71264b1b.js").then(s=>s.s),["assets/soy_template-71264b1b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/space",()=>R(()=>import("./space-30caff15.js").then(s=>s.s),["assets/space-30caff15.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/sparql",()=>R(()=>import("./sparql-fb54e439.js").then(s=>s.s),["assets/sparql-fb54e439.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/sql",()=>R(()=>import("./sql-c6ad93f8.js").then(s=>s.s),["assets/sql-c6ad93f8.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/sqlserver",()=>R(()=>import("./sqlserver-bed2cd89.js").then(s=>s.s),["assets/sqlserver-bed2cd89.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/stylus",()=>R(()=>import("./stylus-57a6347f.js").then(s=>s.s),["assets/stylus-57a6347f.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/svg",()=>R(()=>import("./svg-807b2049.js").then(s=>s.s),["assets/svg-807b2049.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/swift",()=>R(()=>import("./swift-8ef4e55b.js").then(s=>s.s),["assets/swift-8ef4e55b.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/tcl",()=>R(()=>import("./tcl-a7187fdf.js").then(s=>s.t),["assets/tcl-a7187fdf.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/terraform",()=>R(()=>import("./terraform-86067e09.js").then(s=>s.t),["assets/terraform-86067e09.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/tex",()=>R(()=>import("./tex-70f59fbc.js").then(s=>s.t),["assets/tex-70f59fbc.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/text",()=>R(()=>import("./text-81d1faa7.js").then(s=>s.t),["assets/text-81d1faa7.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/textile",()=>R(()=>import("./textile-deccb22a.js").then(s=>s.t),["assets/textile-deccb22a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/toml",()=>R(()=>import("./toml-f3793841.js").then(s=>s.t),["assets/toml-f3793841.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/tsx",()=>R(()=>import("./tsx-914c46f9.js").then(s=>s.t),["assets/tsx-914c46f9.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/turtle",()=>R(()=>import("./turtle-2704b4e0.js").then(s=>s.t),["assets/turtle-2704b4e0.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/twig",()=>R(()=>import("./twig-32e18138.js").then(s=>s.t),["assets/twig-32e18138.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/typescript",()=>R(()=>import("./typescript-7bad16fe.js").then(s=>s.t),["assets/typescript-7bad16fe.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/vala",()=>R(()=>import("./vala-662f4145.js").then(s=>s.v),["assets/vala-662f4145.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/vbscript",()=>R(()=>import("./vbscript-2bd74410.js").then(s=>s.v),["assets/vbscript-2bd74410.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/velocity",()=>R(()=>import("./velocity-e90a9d3d.js").then(s=>s.v),["assets/velocity-e90a9d3d.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/verilog",()=>R(()=>import("./verilog-00e368e1.js").then(s=>s.v),["assets/verilog-00e368e1.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/vhdl",()=>R(()=>import("./vhdl-4b63538c.js").then(s=>s.v),["assets/vhdl-4b63538c.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/visualforce",()=>R(()=>import("./visualforce-8cb73dbc.js").then(s=>s.v),["assets/visualforce-8cb73dbc.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/wollok",()=>R(()=>import("./wollok-f8cbf7c6.js").then(s=>s.w),["assets/wollok-f8cbf7c6.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/xml",()=>R(()=>import("./xml-3cc48745.js").then(s=>s.x),["assets/xml-3cc48745.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/xquery",()=>R(()=>import("./xquery-3d17ab39.js").then(s=>s.x),["assets/xquery-3d17ab39.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/yaml",()=>R(()=>import("./yaml-7e7c442a.js").then(s=>s.y),["assets/yaml-7e7c442a.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));ace.config.setModuleLoader("ace/snippets/zeek",()=>R(()=>import("./zeek-2f24ef50.js").then(s=>s.z),["assets/zeek-2f24ef50.js","assets/index-fe76da25.js","assets/index-ad9b6d43.css"]));function ui(s,O){return lo(s)||ao(s,O)||so(s,O)||oo()}function oo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  955. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function so(s,O){if(s){if(typeof s=="string")return di(s,O);var y=Object.prototype.toString.call(s).slice(8,-1);if(y==="Object"&&s.constructor&&(y=s.constructor.name),y==="Map"||y==="Set")return Array.from(s);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return di(s,O)}}function di(s,O){(O==null||O>s.length)&&(O=s.length);for(var y=0,L=new Array(O);y<O;y++)L[y]=s[y];return L}function ao(s,O){var y=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(y!=null){var L,I,d,_,p=[],a=!0,c=!1;try{if(d=(y=y.call(s)).next,O===0){if(Object(y)!==y)return;a=!1}else for(;!(a=(L=d.call(y)).done)&&(p.push(L.value),p.length!==O);a=!0);}catch(t){c=!0,I=t}finally{try{if(!a&&y.return!=null&&(_=y.return(),Object(_)!==_))return}finally{if(c)throw I}}return p}}function lo(s){if(Array.isArray(s))return s}var co=function(O,y){return!y||!O.saveAsObj?y:O.mode==="json"?JSON.parse(y):O.mode==="yaml"||O.mode==="yml"?fi.load(y):y},ho=function(O,y){return typeof y=="string"||!y?y:O.mode==="json"?JSON.stringify(y,null,2):O.mode==="yaml"||O.mode==="yml"?fi.dump(y):y};const fo=function(s){var O=s.value,y=s.className,L=y===void 0?"":y,I=s.column,d=s.onChange,_=s.readonly,p=I,a=p.mode;a==="yml"?a="yaml":a||(a="json");var c=Ke.useState(),t=ui(c,2),i=t[0],r=t[1],e=Ke.useState(""),n=ui(e,2),o=n[0],l=n[1],h=Ke.useRef(),u=function(w){r(w);try{var v=co(p,w);h.current=v,d==null||d(v),l("")}catch{l("has-err")}};return Ke.useEffect(function(){if(!(h.current&&O===h.current))try{r(ho(p,O))}catch($){console.warn("fromObjData: ",$)}},[O]),kn.createElement(eo,{mode:a,value:i,showPrintMargin:p.printMargin,showGutter:!p.hiddenLines,highlightActiveLine:!0,theme:"chrome",height:ii(I.height||120),width:ii(I.width)||"80%",onChange:u,readOnly:!!I.disabled||_,setOptions:p.options,className:"rich-input json-input ".concat(L," ").concat(o),placeholder:p.placeholder})};export{fo as default,ho as fromObjData,co as toObjData};