diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index d287a84..ce278e1 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -239,22 +239,6 @@ License: "Apache-2.0" limitations under the License. --------------------------------------------------------------------------------- -Package: tslib -License: "0BSD" - -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------------- Package: @angular/common License: "MIT" @@ -271,7 +255,7 @@ License: "MIT" The MIT License -Copyright (c) 2010-2023 Google LLC. https://angular.io/license +Copyright (c) 2010-2024 Google LLC. https://angular.io/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/browser/index.html b/browser/index.html index 386eda0..a81a1fc 100644 --- a/browser/index.html +++ b/browser/index.html @@ -62,7 +62,7 @@ - diff --git a/browser/main.js b/browser/main.js index 0d5366f..bbf8ea9 100644 --- a/browser/main.js +++ b/browser/main.js @@ -1,15 +1,15 @@ -var au=Object.create;var Xr=Object.defineProperty,lu=Object.defineProperties,cu=Object.getOwnPropertyDescriptor,uu=Object.getOwnPropertyDescriptors,du=Object.getOwnPropertyNames,ys=Object.getOwnPropertySymbols,fu=Object.getPrototypeOf,ws=Object.prototype.hasOwnProperty,hu=Object.prototype.propertyIsEnumerable;var bs=(e,t,r)=>t in e?Xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xe=(e,t)=>{for(var r in t||={})ws.call(t,r)&&bs(e,r,t[r]);if(ys)for(var r of ys(t))hu.call(t,r)&&bs(e,r,t[r]);return e},pt=(e,t)=>lu(e,uu(t));var Es=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var pu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of du(t))!ws.call(e,s)&&s!==r&&Xr(e,s,{get:()=>t[s],enumerable:!(n=cu(t,s))||n.enumerable});return e};var Jr=(e,t,r)=>(r=e!=null?au(fu(e)):{},pu(t||!e||!e.__esModule?Xr(r,"default",{value:e,enumerable:!0}):r,e));var Zr=Es((Zb,Jc)=>{(function(){var e="ace",t=function(){return this}();if(!t&&typeof window<"u"&&(t=window),!e&&typeof acequirejs<"u")return;var r=function(i,o,d){if(typeof i!="string"){r.original?r.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(d=o),r.modules[i]||(r.payloads[i]=d,r.modules[i]=null)};r.modules={},r.payloads={};var n=function(i,o,d){if(typeof o=="string"){var u=l(i,o);if(u!=null)return d&&d(),u}else if(Object.prototype.toString.call(o)==="[object Array]"){for(var f=[],h=0,g=o.length;h1&&a(o,"")>-1&&(u=RegExp(this.source,n.replace.call(l(this),"g","")),n.replace.call(i.slice(o.index),u,function(){for(var h=1;ho.index&&this.lastIndex--}return o},c||(RegExp.prototype.test=function(i){var o=n.exec.call(this,i);return o&&this.global&&!o[0].length&&this.lastIndex>o.index&&this.lastIndex--,!!o});function l(i){return(i.global?"g":"")+(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":"")}function a(i,o,d){if(Array.prototype.indexOf)return i.indexOf(o,d);for(var u=d||0;u0?M>j&&(M=j):M==null?M=0:M<0&&(M=Math.max(j+M,0)),M+Iq)for(V=Z;V--;)this[K+V]=this[q+V];if(L&&M===X)this.length=X,this.push.apply(this,U);else for(this.length=X+L,V=0;V>>0;if(i(I)!="[object Function]")throw new TypeError;for(;++L>>0,L=Array(U),P=arguments[1];if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var q=0;q>>0,L=[],P,q=arguments[1];if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var K=0;K>>0,L=arguments[1];if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var P=0;P>>0,L=arguments[1];if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var P=0;P>>0;if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");if(!U&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var L=0,P;if(arguments.length>=2)P=arguments[1];else do{if(L in $){P=$[L++];break}if(++L>=U)throw new TypeError("reduce of empty array with no initial value")}while(!0);for(;L>>0;if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");if(!U&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var L,P=U-1;if(arguments.length>=2)L=arguments[1];else do{if(P in $){L=$[P--];break}if(--P<0)throw new TypeError("reduceRight of empty array with no initial value")}while(!0);do P in this&&(L=I.call(void 0,L,$[P],P,j));while(P--);return L}),(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)&&(Array.prototype.indexOf=function(I){var j=A&&i(this)=="[object String]"?this.split(""):O(this),$=j.length>>>0;if(!$)return-1;var U=0;for(arguments.length>1&&(U=H(arguments[1])),U=U>=0?U:Math.max(0,$+U);U<$;U++)if(U in j&&j[U]===I)return U;return-1}),(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)&&(Array.prototype.lastIndexOf=function(I){var j=A&&i(this)=="[object String]"?this.split(""):O(this),$=j.length>>>0;if(!$)return-1;var U=$-1;for(arguments.length>1&&(U=Math.min(U,H(arguments[1]))),U=U>=0?U:$-Math.abs(U);U>=0;U--)if(U in j&&I===j[U])return U;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(I){return I.__proto__||(I.constructor?I.constructor.prototype:l)}),!Object.getOwnPropertyDescriptor){var v="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(I,j){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError(v+I);if(o(I,j)){var $,U,L;if($={enumerable:!0,configurable:!0},g){var P=I.__proto__;I.__proto__=l;var U=f(I,j),L=h(I,j);if(I.__proto__=P,U||L)return U&&($.get=U),L&&($.set=L),$}return $.value=I[j],$}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(I){return Object.keys(I)}),!Object.create){var w;Object.prototype.__proto__===null?w=function(){return{__proto__:null}}:w=function(){var M={};for(var I in M)M[I]=null;return M.constructor=M.hasOwnProperty=M.propertyIsEnumerable=M.isPrototypeOf=M.toLocaleString=M.toString=M.valueOf=M.__proto__=null,M},Object.create=function(I,j){var $;if(I===null)$=w();else{if(typeof I!="object")throw new TypeError("typeof prototype["+typeof I+"] != 'object'");var U=function(){};U.prototype=I,$=new U,$.__proto__=I}return j!==void 0&&Object.defineProperties($,j),$}}function p(M){try{return Object.defineProperty(M,"sentinel",{}),"sentinel"in M}catch{}}if(Object.defineProperty){var y=p({}),C=typeof document>"u"||p(document.createElement("div"));if(!y||!C)var D=Object.defineProperty}if(!Object.defineProperty||D){var m="Property description must be an object: ",E="Object.defineProperty called on non-object: ",k="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(I,j,$){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError(E+I);if(typeof $!="object"&&typeof $!="function"||$===null)throw new TypeError(m+$);if(D)try{return D.call(Object,I,j,$)}catch{}if(o($,"value"))if(g&&(f(I,j)||h(I,j))){var U=I.__proto__;I.__proto__=l,delete I[j],I[j]=$.value,I.__proto__=U}else I[j]=$.value;else{if(!g)throw new TypeError(k);o($,"get")&&d(I,j,$.get),o($,"set")&&u(I,j,$.set)}return I}}Object.defineProperties||(Object.defineProperties=function(I,j){for(var $ in j)o(j,$)&&Object.defineProperty(I,$,j[$]);return I}),Object.seal||(Object.seal=function(I){return I}),Object.freeze||(Object.freeze=function(I){return I});try{Object.freeze(function(){})}catch{Object.freeze=function(j){return function(U){return typeof U=="function"?U:j(U)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(I){return I}),Object.isSealed||(Object.isSealed=function(I){return!1}),Object.isFrozen||(Object.isFrozen=function(I){return!1}),Object.isExtensible||(Object.isExtensible=function(I){if(Object(I)===I)throw new TypeError;for(var j="";o(I,j);)j+="?";I[j]=!0;var $=o(I,j);return delete I[j],$}),!Object.keys){var S=!0,F=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],_=F.length;for(var T in{toString:null})S=!1;Object.keys=function(I){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError("Object.keys called on a non-object");var j=[];for(var $ in I)o(I,$)&&j.push($);if(S)for(var U=0,L=_;U0||-1)*Math.floor(Math.abs(M))),M}function R(M){var I=typeof M;return M===null||I==="undefined"||I==="boolean"||I==="number"||I==="string"}function z(M){var I,j,$;if(R(M))return M;if(j=M.valueOf,typeof j=="function"&&(I=j.call(M),R(I))||($=M.toString,typeof $=="function"&&(I=$.call(M),R(I))))return I;throw new TypeError}var O=function(M){if(M==null)throw new TypeError("can't convert "+M+" to object");return Object(M)}});ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(e,t,r){"use strict";e("./regexp"),e("./es5-shim")});ace.define("ace/lib/dom",["require","exports","module"],function(e,t,r){"use strict";var n="http://www.w3.org/1999/xhtml";if(t.getDocumentHead=function(s){return s||(s=document),s.head||s.getElementsByTagName("head")[0]||s.documentElement},t.createElement=function(s,c){return document.createElementNS?document.createElementNS(c||n,s):document.createElement(s)},t.hasCssClass=function(s,c){var l=(s.className+"").split(/\s+/g);return l.indexOf(c)!==-1},t.addCssClass=function(s,c){t.hasCssClass(s,c)||(s.className+=" "+c)},t.removeCssClass=function(s,c){for(var l=s.className.split(/\s+/g);;){var a=l.indexOf(c);if(a==-1)break;l.splice(a,1)}s.className=l.join(" ")},t.toggleCssClass=function(s,c){for(var l=s.className.split(/\s+/g),a=!0;;){var i=l.indexOf(c);if(i==-1)break;a=!1,l.splice(i,1)}return a&&l.push(c),s.className=l.join(" "),a},t.setCssClass=function(s,c,l){l?t.addCssClass(s,c):t.removeCssClass(s,c)},t.hasCssString=function(s,c){var l=0,a;if(c=c||document,c.createStyleSheet&&(a=c.styleSheets)){for(;l"u"){t.importCssString=function(){};return}window.pageYOffset!==void 0?(t.getPageScrollTop=function(){return window.pageYOffset},t.getPageScrollLeft=function(){return window.pageXOffset}):(t.getPageScrollTop=function(){return document.body.scrollTop},t.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?t.computedStyle=function(s,c){return c?(window.getComputedStyle(s,"")||{})[c]||"":window.getComputedStyle(s,"")||{}}:t.computedStyle=function(s,c){return c?s.currentStyle[c]:s.currentStyle},t.setInnerHtml=function(s,c){var l=s.cloneNode(!1);return l.innerHTML=c,s.parentNode.replaceChild(l,s),l},"textContent"in document.documentElement?(t.setInnerText=function(s,c){s.textContent=c},t.getInnerText=function(s){return s.textContent}):(t.setInnerText=function(s,c){s.innerText=c},t.getInnerText=function(s){return s.innerText}),t.getParentWindow=function(s){return s.defaultView||s.parentWindow}});ace.define("ace/lib/oop",["require","exports","module"],function(e,t,r){"use strict";t.inherits=function(n,s){n.super_=s,n.prototype=Object.create(s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,s){for(var c in s)n[c]=s[c];return n},t.implement=function(n,s){t.mixin(n,s)}});ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],function(e,t,r){"use strict";e("./fixoldbrowsers");var n=e("./oop"),s=function(){var c={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},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:"*"}},l,a;for(a in c.FUNCTION_KEYS)l=c.FUNCTION_KEYS[a].toLowerCase(),c[l]=parseInt(a,10);for(a in c.PRINTABLE_KEYS)l=c.PRINTABLE_KEYS[a].toLowerCase(),c[l]=parseInt(a,10);return n.mixin(c,c.MODIFIER_KEYS),n.mixin(c,c.PRINTABLE_KEYS),n.mixin(c,c.FUNCTION_KEYS),c.enter=c.return,c.escape=c.esc,c.del=c.delete,c[173]="-",function(){for(var i=["cmd","ctrl","alt","shift"],o=Math.pow(2,i.length);o--;)c.KEY_MODS[o]=i.filter(function(d){return o&c.KEY_MODS[d]}).join("-")+"-"}(),c.KEY_MODS[0]="",c.KEY_MODS[-1]="input-",c}();n.mixin(t,s),t.keyCodeToString=function(c){var l=s[c];return typeof l!="string"&&(l=String.fromCharCode(c)),l.toLowerCase()}});ace.define("ace/lib/useragent",["require","exports","module"],function(e,t,r){"use strict";if(t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS},typeof navigator=="object"){var n=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),s=navigator.userAgent;t.isWin=n=="win",t.isMac=n=="mac",t.isLinux=n=="linux",t.isIE=navigator.appName=="Microsoft Internet Explorer"||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((s.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((s.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&window.navigator.product==="Gecko",t.isOldGecko=t.isGecko&&parseInt((s.match(/rv:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&Object.prototype.toString.call(window.opera)=="[object Opera]",t.isWebKit=parseFloat(s.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(s.split(" Chrome/")[1])||void 0,t.isAIR=s.indexOf("AdobeAIR")>=0,t.isIPad=s.indexOf("iPad")>=0,t.isChromeOS=s.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(s)&&!window.MSStream,t.isIOS&&(t.isMac=!0)}});ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,r){"use strict";var n=e("./keys"),s=e("./useragent"),c=null,l=0;t.addListener=function(u,f,h){if(u.addEventListener)return u.addEventListener(f,h,!1);if(u.attachEvent){var g=function(){h.call(u,window.event)};h._wrapper=g,u.attachEvent("on"+f,g)}},t.removeListener=function(u,f,h){if(u.removeEventListener)return u.removeEventListener(f,h,!1);u.detachEvent&&u.detachEvent("on"+f,h._wrapper||h)},t.stopEvent=function(u){return t.stopPropagation(u),t.preventDefault(u),!1},t.stopPropagation=function(u){u.stopPropagation?u.stopPropagation():u.cancelBubble=!0},t.preventDefault=function(u){u.preventDefault?u.preventDefault():u.returnValue=!1},t.getButton=function(u){return u.type=="dblclick"?0:u.type=="contextmenu"||s.isMac&&u.ctrlKey&&!u.altKey&&!u.shiftKey?2:u.preventDefault?u.button:{1:0,2:2,4:1}[u.button]},t.capture=function(u,f,h){function g(b){f&&f(b),h&&h(b),t.removeListener(document,"mousemove",f,!0),t.removeListener(document,"mouseup",g,!0),t.removeListener(document,"dragstart",g,!0)}return t.addListener(document,"mousemove",f,!0),t.addListener(document,"mouseup",g,!0),t.addListener(document,"dragstart",g,!0),g},t.addTouchMoveListener=function(u,f){var h,g;t.addListener(u,"touchstart",function(b){var x=b.touches,A=x[0];h=A.clientX,g=A.clientY}),t.addListener(u,"touchmove",function(b){var x=b.touches;if(!(x.length>1)){var A=x[0];b.wheelX=h-A.clientX,b.wheelY=g-A.clientY,h=A.clientX,g=A.clientY,f(b)}})},t.addMouseWheelListener=function(u,f){"onmousewheel"in u?t.addListener(u,"mousewheel",function(h){var g=8;h.wheelDeltaX!==void 0?(h.wheelX=-h.wheelDeltaX/g,h.wheelY=-h.wheelDeltaY/g):(h.wheelX=0,h.wheelY=-h.wheelDelta/g),f(h)}):"onwheel"in u?t.addListener(u,"wheel",function(h){var g=.35;switch(h.deltaMode){case h.DOM_DELTA_PIXEL:h.wheelX=h.deltaX*g||0,h.wheelY=h.deltaY*g||0;break;case h.DOM_DELTA_LINE:case h.DOM_DELTA_PAGE:h.wheelX=(h.deltaX||0)*5,h.wheelY=(h.deltaY||0)*5;break}f(h)}):t.addListener(u,"DOMMouseScroll",function(h){h.axis&&h.axis==h.HORIZONTAL_AXIS?(h.wheelX=(h.detail||0)*5,h.wheelY=0):(h.wheelX=0,h.wheelY=(h.detail||0)*5),f(h)})},t.addMultiMouseDownListener=function(u,f,h,g){var b=0,x,A,v,w={2:"dblclick",3:"tripleclick",4:"quadclick"};function p(C){if(t.getButton(C)!==0?b=0:C.detail>1?(b++,b>4&&(b=1)):b=1,s.isIE){var D=Math.abs(C.clientX-x)>5||Math.abs(C.clientY-A)>5;(!v||D)&&(b=1),v&&clearTimeout(v),v=setTimeout(function(){v=null},f[b-1]||600),b==1&&(x=C.clientX,A=C.clientY)}if(C._clicks=b,h[g]("mousedown",C),b>4)b=0;else if(b>1)return h[g](w[b],C)}function y(C){b=2,v&&clearTimeout(v),v=setTimeout(function(){v=null},f[b-1]||600),h[g]("mousedown",C),h[g](w[b],C)}Array.isArray(u)||(u=[u]),u.forEach(function(C){t.addListener(C,"mousedown",p),s.isOldIE&&t.addListener(C,"dblclick",y)})};var a=s.isMac&&s.isOpera&&!("KeyboardEvent"in window)?function(u){return 0|(u.metaKey?1:0)|(u.altKey?2:0)|(u.shiftKey?4:0)|(u.ctrlKey?8:0)}:function(u){return 0|(u.ctrlKey?1:0)|(u.altKey?2:0)|(u.shiftKey?4:0)|(u.metaKey?8:0)};t.getModifierString=function(u){return n.KEY_MODS[a(u)]};function i(u,f,h){var g=a(f);if(!s.isMac&&c){if(f.getModifierState&&(f.getModifierState("OS")||f.getModifierState("Win"))&&(g|=8),c.altGr)if((3&g)!=3)c.altGr=0;else return;if(h===18||h===17){var b="location"in f?f.location:f.keyLocation;if(h===17&&b===1)c[h]==1&&(l=f.timeStamp);else if(h===18&&g===3&&b===2){var x=f.timeStamp-l;x<50&&(c.altGr=!0)}}}if(h in n.MODIFIER_KEYS&&(h=-1),g&8&&h>=91&&h<=93&&(h=-1),!g&&h===13){var b="location"in f?f.location:f.keyLocation;if(b===3&&(u(f,g,-h),f.defaultPrevented))return}if(s.isChromeOS&&g&8){if(u(f,g,h),f.defaultPrevented)return;g&=-9}return!g&&!(h in n.FUNCTION_KEYS)&&!(h in n.PRINTABLE_KEYS)?!1:u(f,g,h)}t.addCommandKeyListener=function(u,f){var h=t.addListener;if(s.isOldGecko||s.isOpera&&!("KeyboardEvent"in window)){var g=null;h(u,"keydown",function(x){g=x.keyCode}),h(u,"keypress",function(x){return i(f,x,g)})}else{var b=null;h(u,"keydown",function(x){c[x.keyCode]=(c[x.keyCode]||0)+1;var A=i(f,x,x.keyCode);return b=x.defaultPrevented,A}),h(u,"keypress",function(x){b&&(x.ctrlKey||x.altKey||x.shiftKey||x.metaKey)&&(t.stopEvent(x),b=null)}),h(u,"keyup",function(x){c[x.keyCode]=null}),c||(o(),h(window,"focus",o))}};function o(){c=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!s.isOldIE){var d=1;t.nextTick=function(u,f){f=f||window;var h="zero-timeout-message-"+d;t.addListener(f,"message",function g(b){b.data==h&&(t.stopPropagation(b),t.removeListener(f,"message",g),u())}),f.postMessage(h,"*")}}t.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(u){setTimeout(u,17)}});ace.define("ace/lib/lang",["require","exports","module"],function(e,t,r){"use strict";t.last=function(c){return c[c.length-1]},t.stringReverse=function(c){return c.split("").reverse().join("")},t.stringRepeat=function(c,l){for(var a="";l>0;)l&1&&(a+=c),(l>>=1)&&(c+=c);return a};var n=/^\s\s*/,s=/\s\s*$/;t.stringTrimLeft=function(c){return c.replace(n,"")},t.stringTrimRight=function(c){return c.replace(s,"")},t.copyObject=function(c){var l={};for(var a in c)l[a]=c[a];return l},t.copyArray=function(c){for(var l=[],a=0,i=c.length;at in e?_r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qe=(e,t)=>{for(var r in t||={})ns.call(t,r)&&ts(e,r,t[r]);if(es)for(var r of es(t))Wc.call(t,r)&&ts(e,r,t[r]);return e},dt=(e,t)=>Bc(e,Pc(t));var rs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Hc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of jc(t))!ns.call(e,s)&&s!==r&&_r(e,s,{get:()=>t[s],enumerable:!(n=$c(t,s))||n.enumerable});return e};var Tr=(e,t,r)=>(r=e!=null?Oc(Vc(e)):{},Hc(t||!e||!e.__esModule?_r(r,"default",{value:e,enumerable:!0}):r,e));var Fr=rs((uv,Fc)=>{(function(){var e="ace",t=function(){return this}();if(!t&&typeof window<"u"&&(t=window),!e&&typeof acequirejs<"u")return;var r=function(i,o,d){if(typeof i!="string"){r.original?r.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(d=o),r.modules[i]||(r.payloads[i]=d,r.modules[i]=null)};r.modules={},r.payloads={};var n=function(i,o,d){if(typeof o=="string"){var u=l(i,o);if(u!=null)return d&&d(),u}else if(Object.prototype.toString.call(o)==="[object Array]"){for(var h=[],f=0,g=o.length;f1&&a(o,"")>-1&&(u=RegExp(this.source,n.replace.call(l(this),"g","")),n.replace.call(i.slice(o.index),u,function(){for(var f=1;fo.index&&this.lastIndex--}return o},c||(RegExp.prototype.test=function(i){var o=n.exec.call(this,i);return o&&this.global&&!o[0].length&&this.lastIndex>o.index&&this.lastIndex--,!!o});function l(i){return(i.global?"g":"")+(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":"")}function a(i,o,d){if(Array.prototype.indexOf)return i.indexOf(o,d);for(var u=d||0;u0?M>j&&(M=j):M==null?M=0:M<0&&(M=Math.max(j+M,0)),M+IK)for(V=Z;V--;)this[q+V]=this[K+V];if(L&&M===X)this.length=X,this.push.apply(this,U);else for(this.length=X+L,V=0;V>>0;if(i(I)!="[object Function]")throw new TypeError;for(;++L>>0,L=Array(U),P=arguments[1];if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var K=0;K>>0,L=[],P,K=arguments[1];if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var q=0;q>>0,L=arguments[1];if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var P=0;P>>0,L=arguments[1];if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var P=0;P>>0;if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");if(!U&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var L=0,P;if(arguments.length>=2)P=arguments[1];else do{if(L in $){P=$[L++];break}if(++L>=U)throw new TypeError("reduce of empty array with no initial value")}while(!0);for(;L>>0;if(i(I)!="[object Function]")throw new TypeError(I+" is not a function");if(!U&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var L,P=U-1;if(arguments.length>=2)L=arguments[1];else do{if(P in $){L=$[P--];break}if(--P<0)throw new TypeError("reduceRight of empty array with no initial value")}while(!0);do P in this&&(L=I.call(void 0,L,$[P],P,j));while(P--);return L}),(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)&&(Array.prototype.indexOf=function(I){var j=A&&i(this)=="[object String]"?this.split(""):N(this),$=j.length>>>0;if(!$)return-1;var U=0;for(arguments.length>1&&(U=H(arguments[1])),U=U>=0?U:Math.max(0,$+U);U<$;U++)if(U in j&&j[U]===I)return U;return-1}),(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)&&(Array.prototype.lastIndexOf=function(I){var j=A&&i(this)=="[object String]"?this.split(""):N(this),$=j.length>>>0;if(!$)return-1;var U=$-1;for(arguments.length>1&&(U=Math.min(U,H(arguments[1]))),U=U>=0?U:$-Math.abs(U);U>=0;U--)if(U in j&&I===j[U])return U;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(I){return I.__proto__||(I.constructor?I.constructor.prototype:l)}),!Object.getOwnPropertyDescriptor){var v="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(I,j){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError(v+I);if(o(I,j)){var $,U,L;if($={enumerable:!0,configurable:!0},g){var P=I.__proto__;I.__proto__=l;var U=h(I,j),L=f(I,j);if(I.__proto__=P,U||L)return U&&($.get=U),L&&($.set=L),$}return $.value=I[j],$}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(I){return Object.keys(I)}),!Object.create){var w;Object.prototype.__proto__===null?w=function(){return{__proto__:null}}:w=function(){var M={};for(var I in M)M[I]=null;return M.constructor=M.hasOwnProperty=M.propertyIsEnumerable=M.isPrototypeOf=M.toLocaleString=M.toString=M.valueOf=M.__proto__=null,M},Object.create=function(I,j){var $;if(I===null)$=w();else{if(typeof I!="object")throw new TypeError("typeof prototype["+typeof I+"] != 'object'");var U=function(){};U.prototype=I,$=new U,$.__proto__=I}return j!==void 0&&Object.defineProperties($,j),$}}function p(M){try{return Object.defineProperty(M,"sentinel",{}),"sentinel"in M}catch{}}if(Object.defineProperty){var y=p({}),C=typeof document>"u"||p(document.createElement("div"));if(!y||!C)var D=Object.defineProperty}if(!Object.defineProperty||D){var m="Property description must be an object: ",E="Object.defineProperty called on non-object: ",k="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(I,j,$){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError(E+I);if(typeof $!="object"&&typeof $!="function"||$===null)throw new TypeError(m+$);if(D)try{return D.call(Object,I,j,$)}catch{}if(o($,"value"))if(g&&(h(I,j)||f(I,j))){var U=I.__proto__;I.__proto__=l,delete I[j],I[j]=$.value,I.__proto__=U}else I[j]=$.value;else{if(!g)throw new TypeError(k);o($,"get")&&d(I,j,$.get),o($,"set")&&u(I,j,$.set)}return I}}Object.defineProperties||(Object.defineProperties=function(I,j){for(var $ in j)o(j,$)&&Object.defineProperty(I,$,j[$]);return I}),Object.seal||(Object.seal=function(I){return I}),Object.freeze||(Object.freeze=function(I){return I});try{Object.freeze(function(){})}catch{Object.freeze=function(j){return function(U){return typeof U=="function"?U:j(U)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(I){return I}),Object.isSealed||(Object.isSealed=function(I){return!1}),Object.isFrozen||(Object.isFrozen=function(I){return!1}),Object.isExtensible||(Object.isExtensible=function(I){if(Object(I)===I)throw new TypeError;for(var j="";o(I,j);)j+="?";I[j]=!0;var $=o(I,j);return delete I[j],$}),!Object.keys){var S=!0,F=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],_=F.length;for(var T in{toString:null})S=!1;Object.keys=function(I){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError("Object.keys called on a non-object");var j=[];for(var $ in I)o(I,$)&&j.push($);if(S)for(var U=0,L=_;U0||-1)*Math.floor(Math.abs(M))),M}function R(M){var I=typeof M;return M===null||I==="undefined"||I==="boolean"||I==="number"||I==="string"}function z(M){var I,j,$;if(R(M))return M;if(j=M.valueOf,typeof j=="function"&&(I=j.call(M),R(I))||($=M.toString,typeof $=="function"&&(I=$.call(M),R(I))))return I;throw new TypeError}var N=function(M){if(M==null)throw new TypeError("can't convert "+M+" to object");return Object(M)}});ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(e,t,r){"use strict";e("./regexp"),e("./es5-shim")});ace.define("ace/lib/dom",["require","exports","module"],function(e,t,r){"use strict";var n="http://www.w3.org/1999/xhtml";if(t.getDocumentHead=function(s){return s||(s=document),s.head||s.getElementsByTagName("head")[0]||s.documentElement},t.createElement=function(s,c){return document.createElementNS?document.createElementNS(c||n,s):document.createElement(s)},t.hasCssClass=function(s,c){var l=(s.className+"").split(/\s+/g);return l.indexOf(c)!==-1},t.addCssClass=function(s,c){t.hasCssClass(s,c)||(s.className+=" "+c)},t.removeCssClass=function(s,c){for(var l=s.className.split(/\s+/g);;){var a=l.indexOf(c);if(a==-1)break;l.splice(a,1)}s.className=l.join(" ")},t.toggleCssClass=function(s,c){for(var l=s.className.split(/\s+/g),a=!0;;){var i=l.indexOf(c);if(i==-1)break;a=!1,l.splice(i,1)}return a&&l.push(c),s.className=l.join(" "),a},t.setCssClass=function(s,c,l){l?t.addCssClass(s,c):t.removeCssClass(s,c)},t.hasCssString=function(s,c){var l=0,a;if(c=c||document,c.createStyleSheet&&(a=c.styleSheets)){for(;l"u"){t.importCssString=function(){};return}window.pageYOffset!==void 0?(t.getPageScrollTop=function(){return window.pageYOffset},t.getPageScrollLeft=function(){return window.pageXOffset}):(t.getPageScrollTop=function(){return document.body.scrollTop},t.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?t.computedStyle=function(s,c){return c?(window.getComputedStyle(s,"")||{})[c]||"":window.getComputedStyle(s,"")||{}}:t.computedStyle=function(s,c){return c?s.currentStyle[c]:s.currentStyle},t.setInnerHtml=function(s,c){var l=s.cloneNode(!1);return l.innerHTML=c,s.parentNode.replaceChild(l,s),l},"textContent"in document.documentElement?(t.setInnerText=function(s,c){s.textContent=c},t.getInnerText=function(s){return s.textContent}):(t.setInnerText=function(s,c){s.innerText=c},t.getInnerText=function(s){return s.innerText}),t.getParentWindow=function(s){return s.defaultView||s.parentWindow}});ace.define("ace/lib/oop",["require","exports","module"],function(e,t,r){"use strict";t.inherits=function(n,s){n.super_=s,n.prototype=Object.create(s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,s){for(var c in s)n[c]=s[c];return n},t.implement=function(n,s){t.mixin(n,s)}});ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],function(e,t,r){"use strict";e("./fixoldbrowsers");var n=e("./oop"),s=function(){var c={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},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:"*"}},l,a;for(a in c.FUNCTION_KEYS)l=c.FUNCTION_KEYS[a].toLowerCase(),c[l]=parseInt(a,10);for(a in c.PRINTABLE_KEYS)l=c.PRINTABLE_KEYS[a].toLowerCase(),c[l]=parseInt(a,10);return n.mixin(c,c.MODIFIER_KEYS),n.mixin(c,c.PRINTABLE_KEYS),n.mixin(c,c.FUNCTION_KEYS),c.enter=c.return,c.escape=c.esc,c.del=c.delete,c[173]="-",function(){for(var i=["cmd","ctrl","alt","shift"],o=Math.pow(2,i.length);o--;)c.KEY_MODS[o]=i.filter(function(d){return o&c.KEY_MODS[d]}).join("-")+"-"}(),c.KEY_MODS[0]="",c.KEY_MODS[-1]="input-",c}();n.mixin(t,s),t.keyCodeToString=function(c){var l=s[c];return typeof l!="string"&&(l=String.fromCharCode(c)),l.toLowerCase()}});ace.define("ace/lib/useragent",["require","exports","module"],function(e,t,r){"use strict";if(t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS},typeof navigator=="object"){var n=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),s=navigator.userAgent;t.isWin=n=="win",t.isMac=n=="mac",t.isLinux=n=="linux",t.isIE=navigator.appName=="Microsoft Internet Explorer"||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((s.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((s.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&window.navigator.product==="Gecko",t.isOldGecko=t.isGecko&&parseInt((s.match(/rv:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&Object.prototype.toString.call(window.opera)=="[object Opera]",t.isWebKit=parseFloat(s.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(s.split(" Chrome/")[1])||void 0,t.isAIR=s.indexOf("AdobeAIR")>=0,t.isIPad=s.indexOf("iPad")>=0,t.isChromeOS=s.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(s)&&!window.MSStream,t.isIOS&&(t.isMac=!0)}});ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,r){"use strict";var n=e("./keys"),s=e("./useragent"),c=null,l=0;t.addListener=function(u,h,f){if(u.addEventListener)return u.addEventListener(h,f,!1);if(u.attachEvent){var g=function(){f.call(u,window.event)};f._wrapper=g,u.attachEvent("on"+h,g)}},t.removeListener=function(u,h,f){if(u.removeEventListener)return u.removeEventListener(h,f,!1);u.detachEvent&&u.detachEvent("on"+h,f._wrapper||f)},t.stopEvent=function(u){return t.stopPropagation(u),t.preventDefault(u),!1},t.stopPropagation=function(u){u.stopPropagation?u.stopPropagation():u.cancelBubble=!0},t.preventDefault=function(u){u.preventDefault?u.preventDefault():u.returnValue=!1},t.getButton=function(u){return u.type=="dblclick"?0:u.type=="contextmenu"||s.isMac&&u.ctrlKey&&!u.altKey&&!u.shiftKey?2:u.preventDefault?u.button:{1:0,2:2,4:1}[u.button]},t.capture=function(u,h,f){function g(b){h&&h(b),f&&f(b),t.removeListener(document,"mousemove",h,!0),t.removeListener(document,"mouseup",g,!0),t.removeListener(document,"dragstart",g,!0)}return t.addListener(document,"mousemove",h,!0),t.addListener(document,"mouseup",g,!0),t.addListener(document,"dragstart",g,!0),g},t.addTouchMoveListener=function(u,h){var f,g;t.addListener(u,"touchstart",function(b){var x=b.touches,A=x[0];f=A.clientX,g=A.clientY}),t.addListener(u,"touchmove",function(b){var x=b.touches;if(!(x.length>1)){var A=x[0];b.wheelX=f-A.clientX,b.wheelY=g-A.clientY,f=A.clientX,g=A.clientY,h(b)}})},t.addMouseWheelListener=function(u,h){"onmousewheel"in u?t.addListener(u,"mousewheel",function(f){var g=8;f.wheelDeltaX!==void 0?(f.wheelX=-f.wheelDeltaX/g,f.wheelY=-f.wheelDeltaY/g):(f.wheelX=0,f.wheelY=-f.wheelDelta/g),h(f)}):"onwheel"in u?t.addListener(u,"wheel",function(f){var g=.35;switch(f.deltaMode){case f.DOM_DELTA_PIXEL:f.wheelX=f.deltaX*g||0,f.wheelY=f.deltaY*g||0;break;case f.DOM_DELTA_LINE:case f.DOM_DELTA_PAGE:f.wheelX=(f.deltaX||0)*5,f.wheelY=(f.deltaY||0)*5;break}h(f)}):t.addListener(u,"DOMMouseScroll",function(f){f.axis&&f.axis==f.HORIZONTAL_AXIS?(f.wheelX=(f.detail||0)*5,f.wheelY=0):(f.wheelX=0,f.wheelY=(f.detail||0)*5),h(f)})},t.addMultiMouseDownListener=function(u,h,f,g){var b=0,x,A,v,w={2:"dblclick",3:"tripleclick",4:"quadclick"};function p(C){if(t.getButton(C)!==0?b=0:C.detail>1?(b++,b>4&&(b=1)):b=1,s.isIE){var D=Math.abs(C.clientX-x)>5||Math.abs(C.clientY-A)>5;(!v||D)&&(b=1),v&&clearTimeout(v),v=setTimeout(function(){v=null},h[b-1]||600),b==1&&(x=C.clientX,A=C.clientY)}if(C._clicks=b,f[g]("mousedown",C),b>4)b=0;else if(b>1)return f[g](w[b],C)}function y(C){b=2,v&&clearTimeout(v),v=setTimeout(function(){v=null},h[b-1]||600),f[g]("mousedown",C),f[g](w[b],C)}Array.isArray(u)||(u=[u]),u.forEach(function(C){t.addListener(C,"mousedown",p),s.isOldIE&&t.addListener(C,"dblclick",y)})};var a=s.isMac&&s.isOpera&&!("KeyboardEvent"in window)?function(u){return 0|(u.metaKey?1:0)|(u.altKey?2:0)|(u.shiftKey?4:0)|(u.ctrlKey?8:0)}:function(u){return 0|(u.ctrlKey?1:0)|(u.altKey?2:0)|(u.shiftKey?4:0)|(u.metaKey?8:0)};t.getModifierString=function(u){return n.KEY_MODS[a(u)]};function i(u,h,f){var g=a(h);if(!s.isMac&&c){if(h.getModifierState&&(h.getModifierState("OS")||h.getModifierState("Win"))&&(g|=8),c.altGr)if((3&g)!=3)c.altGr=0;else return;if(f===18||f===17){var b="location"in h?h.location:h.keyLocation;if(f===17&&b===1)c[f]==1&&(l=h.timeStamp);else if(f===18&&g===3&&b===2){var x=h.timeStamp-l;x<50&&(c.altGr=!0)}}}if(f in n.MODIFIER_KEYS&&(f=-1),g&8&&f>=91&&f<=93&&(f=-1),!g&&f===13){var b="location"in h?h.location:h.keyLocation;if(b===3&&(u(h,g,-f),h.defaultPrevented))return}if(s.isChromeOS&&g&8){if(u(h,g,f),h.defaultPrevented)return;g&=-9}return!g&&!(f in n.FUNCTION_KEYS)&&!(f in n.PRINTABLE_KEYS)?!1:u(h,g,f)}t.addCommandKeyListener=function(u,h){var f=t.addListener;if(s.isOldGecko||s.isOpera&&!("KeyboardEvent"in window)){var g=null;f(u,"keydown",function(x){g=x.keyCode}),f(u,"keypress",function(x){return i(h,x,g)})}else{var b=null;f(u,"keydown",function(x){c[x.keyCode]=(c[x.keyCode]||0)+1;var A=i(h,x,x.keyCode);return b=x.defaultPrevented,A}),f(u,"keypress",function(x){b&&(x.ctrlKey||x.altKey||x.shiftKey||x.metaKey)&&(t.stopEvent(x),b=null)}),f(u,"keyup",function(x){c[x.keyCode]=null}),c||(o(),f(window,"focus",o))}};function o(){c=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!s.isOldIE){var d=1;t.nextTick=function(u,h){h=h||window;var f="zero-timeout-message-"+d;t.addListener(h,"message",function g(b){b.data==f&&(t.stopPropagation(b),t.removeListener(h,"message",g),u())}),h.postMessage(f,"*")}}t.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(u){setTimeout(u,17)}});ace.define("ace/lib/lang",["require","exports","module"],function(e,t,r){"use strict";t.last=function(c){return c[c.length-1]},t.stringReverse=function(c){return c.split("").reverse().join("")},t.stringRepeat=function(c,l){for(var a="";l>0;)l&1&&(a+=c),(l>>=1)&&(c+=c);return a};var n=/^\s\s*/,s=/\s\s*$/;t.stringTrimLeft=function(c){return c.replace(n,"")},t.stringTrimRight=function(c){return c.replace(s,"")},t.copyObject=function(c){var l={};for(var a in c)l[a]=c[a];return l},t.copyArray=function(c){for(var l=[],a=0,i=c.length;ax.length?V=V.substr(9):V.substr(0,4)==x.substr(0,4)?V=V.substr(4,V.length-x.length+1):V.charAt(V.length-1)==x.charAt(0)&&(V=V.slice(0,-1)),V==x.charAt(0)||V.charAt(V.length-1)==x.charAt(0)&&(V=V.slice(0,-1)),V&&h.onTextInput(V)),A&&(A=!1),B&&(B=!1))},W=function(V){if(!p){var G=b.value;N(G),S()}},H=function(V,G,Y){var ye=V.clipboardData||window.clipboardData;if(!(!ye||o)){var Ee=d||Y?"Text":"text/plain";try{return G?ye.setData(Ee,G)!==!1:ye.getData(Ee)}catch(ge){if(!Y)return H(ge,G,!0)}}},R=function(V,G){var Y=h.getCopyText();if(!Y)return n.preventDefault(V);H(V,Y)?(s.isIOS&&(v=G,b.value=` +`,A=!1,v=!1,w=!1,p=!1,y="",C=!0;try{var D=document.activeElement===b}catch{}n.addListener(b,"blur",function(V){f.onBlur(V),D=!1}),n.addListener(b,"focus",function(V){D=!0,f.onFocus(V),k()}),this.focus=function(){if(y)return b.focus();b.style.position="fixed",b.focus()},this.blur=function(){b.blur()},this.isFocused=function(){return D};var m=l.delayedCall(function(){D&&k(C)}),E=l.delayedCall(function(){p||(b.value=x,D&&k())});function k(V){if(!p){if(p=!0,T)G=0,Y=V?0:b.value.length-1;else var G=4,Y=5;try{b.setSelectionRange(G,Y)}catch{}p=!1}}function S(){p||(b.value=x,s.isWebKit&&E.schedule())}s.isWebKit||f.addEventListener("changeSelection",function(){f.selection.isEmpty()!=C&&(C=!C,m.schedule())}),S(),D&&f.onFocus();var F=function(V){return V.selectionStart===0&&V.selectionEnd===V.value.length},_=function(V){F(b)?(f.selectAll(),k()):T&&k(f.selection.isEmpty())},T=null;this.setInputHandler=function(V){T=V},this.getInputHandler=function(){return T};var O=!1,B=function(V){b.selectionStart===4&&b.selectionEnd===5||(T&&(V=T(V),T=null),w?(k(),V&&f.onPaste(V),w=!1):V==x.substr(0)&&b.selectionStart===4?O?f.execCommand("del",{source:"ace"}):f.execCommand("backspace",{source:"ace"}):A||(V.substring(0,9)==x&&V.length>x.length?V=V.substr(9):V.substr(0,4)==x.substr(0,4)?V=V.substr(4,V.length-x.length+1):V.charAt(V.length-1)==x.charAt(0)&&(V=V.slice(0,-1)),V==x.charAt(0)||V.charAt(V.length-1)==x.charAt(0)&&(V=V.slice(0,-1)),V&&f.onTextInput(V)),A&&(A=!1),O&&(O=!1))},W=function(V){if(!p){var G=b.value;B(G),S()}},H=function(V,G,Y){var ye=V.clipboardData||window.clipboardData;if(!(!ye||o)){var be=d||Y?"Text":"text/plain";try{return G?ye.setData(be,G)!==!1:ye.getData(be)}catch(pe){if(!Y)return H(pe,G,!0)}}},R=function(V,G){var Y=f.getCopyText();if(!Y)return n.preventDefault(V);H(V,Y)?(s.isIOS&&(v=G,b.value=` aa`+Y+`a a -`,b.setSelectionRange(4,4+Y.length),A={value:Y}),G?h.onCut():h.onCopy(),s.isIOS||n.preventDefault(V)):(A=!0,b.value=Y,b.select(),setTimeout(function(){A=!1,S(),k(),G?h.onCut():h.onCopy()}))},z=function(V){R(V,!0)},O=function(V){R(V,!1)},M=function(V){var G=H(V);typeof G=="string"?(G&&h.onPaste(G,V),s.isIE&&setTimeout(k),n.preventDefault(V)):(b.value="",w=!0)};n.addCommandKeyListener(b,h.onCommandKey.bind(h)),n.addListener(b,"select",_),n.addListener(b,"input",W),n.addListener(b,"cut",z),n.addListener(b,"copy",O),n.addListener(b,"paste",M);var I=function(V){p||!h.onCompositionStart||h.$readOnly||(p={},p.canUndo=h.session.$undoManager,h.onCompositionStart(),setTimeout(j,0),h.on("mousedown",$),p.canUndo&&!h.selection.isEmpty()&&(h.insert(""),h.session.markUndoGroup(),h.selection.clearSelection()),h.session.markUndoGroup())},j=function(){if(!(!p||!h.onCompositionUpdate||h.$readOnly)){var V=b.value.replace(/\x01/g,"");if(p.lastValue!==V&&(h.onCompositionUpdate(V),p.lastValue&&h.undo(),p.canUndo&&(p.lastValue=V),p.lastValue)){var G=h.selection.getRange();h.insert(p.lastValue),h.session.markUndoGroup(),p.range=h.selection.getRange(),h.selection.setRange(G),h.selection.clearSelection()}}},$=function(V){if(!(!h.onCompositionEnd||h.$readOnly)){var G=p;p=!1;var Y=setTimeout(function(){Y=null;var Ee=b.value.replace(/\x01/g,"");p||(Ee==G.lastValue?S():!G.lastValue&&Ee&&(S(),N(Ee)))});T=function(ge){return Y&&clearTimeout(Y),ge=ge.replace(/\x01/g,""),ge==G.lastValue?"":(G.lastValue&&Y&&h.undo(),ge)},h.onCompositionEnd(),h.removeListener("mousedown",$),V.type=="compositionend"&&G.range&&h.selection.setRange(G.range);var ye=!!s.isChrome&&s.isChrome>=53||!!s.isWebKit&&s.isWebKit>=603;ye&&W()}},U=l.delayedCall(j,50);n.addListener(b,"compositionstart",I),s.isGecko?n.addListener(b,"text",function(){U.schedule()}):(n.addListener(b,"keyup",function(){U.schedule()}),n.addListener(b,"keydown",function(){U.schedule()})),n.addListener(b,"compositionend",$),this.getElement=function(){return b},this.setReadOnly=function(V){b.readOnly=V},this.onContextMenu=function(V){B=!0,k(h.selection.isEmpty()),h._emit("nativecontextmenu",{target:h,domEvent:V}),this.moveToMouse(V,!0)},this.moveToMouse=function(V,G){y||(y=b.style.cssText),b.style.cssText=(G?"z-index:100000;":"")+"height:"+b.style.height+";"+(s.isIE?"opacity:0.1;":"");var Y=h.container.getBoundingClientRect(),ye=c.computedStyle(h.container),Ee=Y.top+(parseInt(ye.borderTopWidth)||0),ge=Y.left+(parseInt(Y.borderLeftWidth)||0),ce=Y.bottom-Ee-b.clientHeight-2,Ae=function(en){b.style.left=en.clientX-ge-2+"px",b.style.top=Math.min(en.clientY-Ee-2,ce)+"px"};Ae(V),V.type=="mousedown"&&(h.renderer.$keepTextAreaAtCursor&&(h.renderer.$keepTextAreaAtCursor=null),clearTimeout(L),s.isWin&&n.capture(h.container,Ae,P))},this.onContextMenuClose=P;var L;function P(){clearTimeout(L),L=setTimeout(function(){y&&(b.style.cssText=y,y=""),h.renderer.$keepTextAreaAtCursor==null&&(h.renderer.$keepTextAreaAtCursor=!0,h.renderer.$moveTextAreaToCursor())},0)}var q=function(V){h.textInput.onContextMenu(V),P()};if(n.addListener(b,"mouseup",q),n.addListener(b,"mousedown",function(V){V.preventDefault(),P()}),n.addListener(h.renderer.scroller,"contextmenu",q),n.addListener(b,"contextmenu",q),s.isIOS){var K=null,Z=!1;f.addEventListener("keydown",function(V){K&&clearTimeout(K),Z=!0}),f.addEventListener("keyup",function(V){K=setTimeout(function(){Z=!1},100)});var X=function(V){if(document.activeElement===b&&!Z){if(v)return setTimeout(function(){v=!1},100);var G=b.selectionStart,Y=b.selectionEnd;if(b.setSelectionRange(4,5),G==Y)switch(G){case 0:h.onCommandKey(null,0,a.up);break;case 1:h.onCommandKey(null,0,a.home);break;case 2:h.onCommandKey(null,i.option,a.left);break;case 4:h.onCommandKey(null,0,a.left);break;case 5:h.onCommandKey(null,0,a.right);break;case 7:h.onCommandKey(null,i.option,a.right);break;case 8:h.onCommandKey(null,0,a.end);break;case 9:h.onCommandKey(null,0,a.down);break}else{switch(Y){case 6:h.onCommandKey(null,i.shift,a.right);break;case 7:h.onCommandKey(null,i.shift|i.option,a.right);break;case 8:h.onCommandKey(null,i.shift,a.end);break;case 9:h.onCommandKey(null,i.shift,a.down);break}switch(G){case 0:h.onCommandKey(null,i.shift,a.up);break;case 1:h.onCommandKey(null,i.shift,a.home);break;case 2:h.onCommandKey(null,i.shift|i.option,a.left);break;case 3:h.onCommandKey(null,i.shift,a.left);break}}}};document.addEventListener("selectionchange",X),h.on("destroy",function(){document.removeEventListener("selectionchange",X)})}};t.TextInput=u});ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],function(e,t,r){"use strict";var n=e("../lib/event"),s=e("../lib/useragent"),c=e("../lib/dom"),l=e("../lib/lang"),a=s.isChrome<18,i=s.isIE,o=e("./textinput_ios").TextInput,d=function(u,f){if(s.isIOS)return o.call(this,u,f);var h=c.createElement("textarea");h.className="ace_text-input",h.setAttribute("wrap","off"),h.setAttribute("autocorrect","off"),h.setAttribute("autocapitalize","off"),h.setAttribute("spellcheck",!1),h.style.opacity="0",u.insertBefore(h,u.firstChild);var g="\u2028\u2028",b=!1,x=!1,A=!1,v="",w=!0;try{var p=document.activeElement===h}catch{}n.addListener(h,"blur",function(L){f.onBlur(L),p=!1}),n.addListener(h,"focus",function(L){p=!0,f.onFocus(L),D()}),this.focus=function(){if(v)return h.focus();var L=h.style.top;h.style.position="fixed",h.style.top="0px",h.focus(),setTimeout(function(){h.style.position="",h.style.top=="0px"&&(h.style.top=L)},0)},this.blur=function(){h.blur()},this.isFocused=function(){return p};var y=l.delayedCall(function(){p&&D(w)}),C=l.delayedCall(function(){A||(h.value=g,p&&D())});function D(L){if(!A){if(A=!0,S)var P=0,q=L?0:h.value.length-1;else var P=L?2:1,q=2;try{h.setSelectionRange(P,q)}catch{}A=!1}}function m(){A||(h.value=g,s.isWebKit&&C.schedule())}s.isWebKit||f.addEventListener("changeSelection",function(){f.selection.isEmpty()!=w&&(w=!w,y.schedule())}),m(),p&&f.onFocus();var E=function(L){return L.selectionStart===0&&L.selectionEnd===L.value.length},k=function(L){b?b=!1:E(h)?(f.selectAll(),D()):S&&D(f.selection.isEmpty())},S=null;this.setInputHandler=function(L){S=L},this.getInputHandler=function(){return S};var F=!1,_=function(L){S&&(L=S(L),S=null),x?(D(),L&&f.onPaste(L),x=!1):L==g.charAt(0)?F?f.execCommand("del",{source:"ace"}):f.execCommand("backspace",{source:"ace"}):(L.substring(0,2)==g?L=L.substr(2):L.charAt(0)==g.charAt(0)?L=L.substr(1):L.charAt(L.length-1)==g.charAt(0)&&(L=L.slice(0,-1)),L.charAt(L.length-1)==g.charAt(0)&&(L=L.slice(0,-1)),L&&f.onTextInput(L)),F&&(F=!1)},T=function(L){if(!A){var P=h.value;_(P),m()}},B=function(L,P,q){var K=L.clipboardData||window.clipboardData;if(!(!K||a)){var Z=i||q?"Text":"text/plain";try{return P?K.setData(Z,P)!==!1:K.getData(Z)}catch(X){if(!q)return B(X,P,!0)}}},N=function(L,P){var q=f.getCopyText();if(!q)return n.preventDefault(L);B(L,q)?(P?f.onCut():f.onCopy(),n.preventDefault(L)):(b=!0,h.value=q,h.select(),setTimeout(function(){b=!1,m(),D(),P?f.onCut():f.onCopy()}))},W=function(L){N(L,!0)},H=function(L){N(L,!1)},R=function(L){var P=B(L);typeof P=="string"?(P&&f.onPaste(P,L),s.isIE&&setTimeout(D),n.preventDefault(L)):(h.value="",x=!0)};n.addCommandKeyListener(h,f.onCommandKey.bind(f)),n.addListener(h,"select",k),n.addListener(h,"input",T),n.addListener(h,"cut",W),n.addListener(h,"copy",H),n.addListener(h,"paste",R),(!("oncut"in h)||!("oncopy"in h)||!("onpaste"in h))&&n.addListener(u,"keydown",function(L){if(!(s.isMac&&!L.metaKey||!L.ctrlKey))switch(L.keyCode){case 67:H(L);break;case 86:R(L);break;case 88:W(L);break}});var z=function(L){A||!f.onCompositionStart||f.$readOnly||(A={},A.canUndo=f.session.$undoManager,f.onCompositionStart(),setTimeout(O,0),f.on("mousedown",M),A.canUndo&&!f.selection.isEmpty()&&(f.insert(""),f.session.markUndoGroup(),f.selection.clearSelection()),f.session.markUndoGroup())},O=function(){if(!(!A||!f.onCompositionUpdate||f.$readOnly)){var L=h.value.replace(/\u2028/g,"");if(A.lastValue!==L&&(f.onCompositionUpdate(L),A.lastValue&&f.undo(),A.canUndo&&(A.lastValue=L),A.lastValue)){var P=f.selection.getRange();f.insert(A.lastValue),f.session.markUndoGroup(),A.range=f.selection.getRange(),f.selection.setRange(P),f.selection.clearSelection()}}},M=function(L){if(!(!f.onCompositionEnd||f.$readOnly)){var P=A;A=!1;var q=setTimeout(function(){q=null;var Z=h.value.replace(/\u2028/g,"");A||(Z==P.lastValue?m():!P.lastValue&&Z&&(m(),_(Z)))});S=function(X){return q&&clearTimeout(q),X=X.replace(/\u2028/g,""),X==P.lastValue?"":(P.lastValue&&q&&f.undo(),X)},f.onCompositionEnd(),f.removeListener("mousedown",M),L.type=="compositionend"&&P.range&&f.selection.setRange(P.range);var K=!!s.isChrome&&s.isChrome>=53||!!s.isWebKit&&s.isWebKit>=603;K&&T()}},I=l.delayedCall(O,50);n.addListener(h,"compositionstart",z),s.isGecko?n.addListener(h,"text",function(){I.schedule()}):(n.addListener(h,"keyup",function(){I.schedule()}),n.addListener(h,"keydown",function(){I.schedule()})),n.addListener(h,"compositionend",M),this.getElement=function(){return h},this.setReadOnly=function(L){h.readOnly=L},this.onContextMenu=function(L){F=!0,D(f.selection.isEmpty()),f._emit("nativecontextmenu",{target:f,domEvent:L}),this.moveToMouse(L,!0)},this.moveToMouse=function(L,P){v||(v=h.style.cssText),h.style.cssText=(P?"z-index:100000;":"")+"height:"+h.style.height+";"+(s.isIE?"opacity:0.1;":"");var q=f.container.getBoundingClientRect(),K=c.computedStyle(f.container),Z=q.top+(parseInt(K.borderTopWidth)||0),X=q.left+(parseInt(q.borderLeftWidth)||0),V=q.bottom-Z-h.clientHeight-2,G=function(Y){h.style.left=Y.clientX-X-2+"px",h.style.top=Math.min(Y.clientY-Z-2,V)+"px"};G(L),L.type=="mousedown"&&(f.renderer.$keepTextAreaAtCursor&&(f.renderer.$keepTextAreaAtCursor=null),clearTimeout(j),s.isWin&&n.capture(f.container,G,$))},this.onContextMenuClose=$;var j;function $(){clearTimeout(j),j=setTimeout(function(){v&&(h.style.cssText=v,v=""),f.renderer.$keepTextAreaAtCursor==null&&(f.renderer.$keepTextAreaAtCursor=!0,f.renderer.$moveTextAreaToCursor())},0)}var U=function(L){f.textInput.onContextMenu(L),$()};n.addListener(h,"mouseup",U),n.addListener(h,"mousedown",function(L){L.preventDefault(),$()}),n.addListener(f.renderer.scroller,"contextmenu",U),n.addListener(h,"contextmenu",U)};t.TextInput=d});ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,r){"use strict";var n=e("../lib/dom"),s=e("../lib/event"),c=e("../lib/useragent"),l=0,a=250;function i(u){u.$clickSelection=null;var f=u.editor;f.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),f.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),f.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),f.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),f.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u)),f.setDefaultHandler("touchmove",this.onTouchMove.bind(u));var h=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];h.forEach(function(g){u[g]=this[g]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}(function(){this.onMouseDown=function(u){var f=u.inSelection(),h=u.getDocumentPosition();this.mousedownEvent=u;var g=this.editor,b=u.getButton();if(b!==0){var x=g.getSelectionRange(),A=x.isEmpty();g.$blockScrolling++,(A||b==1)&&g.selection.moveToPosition(h),g.$blockScrolling--,b==2&&(g.textInput.onContextMenu(u.domEvent),c.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),f&&!g.isFocused()&&(g.focus(),this.$focusTimout&&!this.$clickSelection&&!g.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(h,u.domEvent._clicks>1),u.preventDefault()},this.startSelect=function(u,f){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var h=this.editor;h.$blockScrolling++,this.mousedownEvent.getShiftKey()?h.selection.selectToPosition(u):f||h.selection.moveToPosition(u),f||this.select(),h.renderer.scroller.setCapture&&h.renderer.scroller.setCapture(),h.setStyle("ace_selecting"),this.setState("select"),h.$blockScrolling--},this.select=function(){var u,f=this.editor,h=f.renderer.screenToTextCoordinates(this.x,this.y);if(f.$blockScrolling++,this.$clickSelection){var g=this.$clickSelection.comparePoint(h);if(g==-1)u=this.$clickSelection.end;else if(g==1)u=this.$clickSelection.start;else{var b=d(this.$clickSelection,h);h=b.cursor,u=b.anchor}f.selection.setSelectionAnchor(u.row,u.column)}f.selection.selectToPosition(h),f.$blockScrolling--,f.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(u){var f,h=this.editor,g=h.renderer.screenToTextCoordinates(this.x,this.y),b=h.selection[u](g.row,g.column);if(h.$blockScrolling++,this.$clickSelection){var x=this.$clickSelection.comparePoint(b.start),A=this.$clickSelection.comparePoint(b.end);if(x==-1&&A<=0)f=this.$clickSelection.end,(b.end.row!=g.row||b.end.column!=g.column)&&(g=b.start);else if(A==1&&x>=0)f=this.$clickSelection.start,(b.start.row!=g.row||b.start.column!=g.column)&&(g=b.end);else if(x==-1&&A==1)g=b.end,f=b.start;else{var v=d(this.$clickSelection,g);g=v.cursor,f=v.anchor}h.selection.setSelectionAnchor(f.row,f.column)}h.selection.selectToPosition(g),h.$blockScrolling--,h.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var u=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),f=Date.now();(u>l||f-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(u){var f=u.getDocumentPosition(),h=this.editor,g=h.session,b=g.getBracketRange(f);b?(b.isEmpty()&&(b.start.column--,b.end.column++),this.setState("select")):(b=h.selection.getWordRange(f.row,f.column),this.setState("selectByWords")),this.$clickSelection=b,this.select()},this.onTripleClick=function(u){var f=u.getDocumentPosition(),h=this.editor;this.setState("selectByLines");var g=h.getSelectionRange();g.isMultiLine()&&g.contains(f.row,f.column)?(this.$clickSelection=h.selection.getLineRange(g.start.row),this.$clickSelection.end=h.selection.getLineRange(g.end.row).end):this.$clickSelection=h.selection.getLineRange(f.row),this.select()},this.onQuadClick=function(u){var f=this.editor;f.selectAll(),this.$clickSelection=f.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var f=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var h=this.$lastScroll,g=u.domEvent.timeStamp,b=g-h.t,x=u.wheelX/b,A=u.wheelY/b;b=1&&f.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(w=!0),v<=1&&f.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(w=!0),w)h.allowed=g;else if(g-h.allowedd.session.documentToScreenRow(D.row,D.column))return A()}if(b!=p)if(b=p.text.join("
"),f.setHtml(b),f.show(),d._signal("showGutterTooltip",f),d.on("mousewheel",A),o.$tooltipFollowsMouse)v(g);else{var m=g.domEvent.target,E=m.getBoundingClientRect(),k=f.getElement().style;k.left=E.right+"px",k.top=E.bottom+"px"}}function A(){h&&(h=clearTimeout(h)),b&&(f.hide(),b=null,d._signal("hideGutterTooltip",f),d.removeEventListener("mousewheel",A))}function v(w){f.setPosition(w.x,w.y)}o.editor.setDefaultHandler("guttermousemove",function(w){var p=w.domEvent.target||w.domEvent.srcElement;if(n.hasCssClass(p,"ace_fold-widget"))return A();b&&o.$tooltipFollowsMouse&&v(w),g=w,!h&&(h=setTimeout(function(){h=null,g&&!o.isMousePressed?x():A()},50))}),c.addListener(d.renderer.$gutter,"mouseout",function(w){g=null,!(!b||h)&&(h=setTimeout(function(){h=null,A()},50))}),d.on("changeSession",A)}function i(o){l.call(this,o)}s.inherits(i,l),(function(){this.setPosition=function(o,d){var u=window.innerWidth||document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight,h=this.getWidth(),g=this.getHeight();o+=15,d+=15,o+h>u&&(o-=o+h-u),d+g>f&&(d-=20+g),l.prototype.setPosition.call(this,o,d)}}).call(i.prototype),t.GutterHandler=a});ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,r){"use strict";var n=e("../lib/event"),s=e("../lib/useragent"),c=t.MouseEvent=function(l,a){this.domEvent=l,this.editor=a,this.x=this.clientX=l.clientX,this.y=this.clientY=l.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var l=this.editor,a=l.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=a.contains(i.row,i.column)}return this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=s.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(c.prototype)});ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,r){"use strict";var n=e("../lib/dom"),s=e("../lib/event"),c=e("../lib/useragent"),l=200,a=200,i=5;function o(u){var f=u.editor,h=n.createElement("img");h.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",c.isOpera&&(h.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");var g=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];g.forEach(function(O){u[O]=this[O]},this),f.addEventListener("mousedown",this.onMouseDown.bind(u));var b=f.container,x,A,v,w,p,y,C=0,D,m,E,k,S;this.onDragStart=function(O){if(this.cancelDrag||!b.draggable){var M=this;return setTimeout(function(){M.startSelect(),M.captureMouse(O)},0),O.preventDefault()}p=f.getSelectionRange();var I=O.dataTransfer;I.effectAllowed=f.getReadOnly()?"copy":"copyMove",c.isOpera&&(f.container.appendChild(h),h.scrollTop=0),I.setDragImage&&I.setDragImage(h,0,0),c.isOpera&&f.container.removeChild(h),I.clearData(),I.setData("Text",f.session.getTextRange()),m=!0,this.setState("drag")},this.onDragEnd=function(O){if(b.draggable=!1,m=!1,this.setState(null),!f.getReadOnly()){var M=O.dataTransfer.dropEffect;!D&&M=="move"&&f.session.remove(f.getSelectionRange()),f.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(O){if(!(f.getReadOnly()||!R(O.dataTransfer)))return A=O.clientX,v=O.clientY,x||B(),C++,O.dataTransfer.dropEffect=D=z(O),s.preventDefault(O)},this.onDragOver=function(O){if(!(f.getReadOnly()||!R(O.dataTransfer)))return A=O.clientX,v=O.clientY,x||(B(),C++),W!==null&&(W=null),O.dataTransfer.dropEffect=D=z(O),s.preventDefault(O)},this.onDragLeave=function(O){if(C--,C<=0&&x)return N(),D=null,s.preventDefault(O)},this.onDrop=function(O){if(y){var M=O.dataTransfer;if(m)switch(D){case"move":p.contains(y.row,y.column)?p={start:y,end:y}:p=f.moveText(p,y);break;case"copy":p=f.moveText(p,y,!0);break}else{var I=M.getData("Text");p={start:y,end:f.session.insert(y,I)},f.focus(),D=null}return N(),s.preventDefault(O)}},s.addListener(b,"dragstart",this.onDragStart.bind(u)),s.addListener(b,"dragend",this.onDragEnd.bind(u)),s.addListener(b,"dragenter",this.onDragEnter.bind(u)),s.addListener(b,"dragover",this.onDragOver.bind(u)),s.addListener(b,"dragleave",this.onDragLeave.bind(u)),s.addListener(b,"drop",this.onDrop.bind(u));function F(O,M){var I=Date.now(),j=!M||O.row!=M.row,$=!M||O.column!=M.column;if(!k||j||$)f.$blockScrolling+=1,f.moveCursorToPosition(O),f.$blockScrolling-=1,k=I,S={x:A,y:v};else{var U=d(S.x,S.y,A,v);U>i?k=null:I-k>=a&&(f.renderer.scrollCursorIntoView(),k=null)}}function _(O,M){var I=Date.now(),j=f.renderer.layerConfig.lineHeight,$=f.renderer.layerConfig.characterWidth,U=f.renderer.scroller.getBoundingClientRect(),L={x:{left:A-U.left,right:U.right-A},y:{top:v-U.top,bottom:U.bottom-v}},P=Math.min(L.x.left,L.x.right),q=Math.min(L.y.top,L.y.bottom),K={row:O.row,column:O.column};P/$<=2&&(K.column+=L.x.left=l&&f.renderer.scrollCursorIntoView(K):E=I:E=null}function T(){var O=y;y=f.renderer.screenToTextCoordinates(A,v),F(y,O),_(y,O)}function B(){p=f.selection.toOrientedRange(),x=f.session.addMarker(p,"ace_selection",f.getSelectionStyle()),f.clearSelection(),f.isFocused()&&f.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),T(),w=setInterval(T,20),C=0,s.addListener(document,"mousemove",H)}function N(){clearInterval(w),f.session.removeMarker(x),x=null,f.$blockScrolling+=1,f.selection.fromOrientedRange(p),f.$blockScrolling-=1,f.isFocused()&&!m&&f.renderer.$cursorLayer.setBlinking(!f.getReadOnly()),p=null,y=null,C=0,E=null,k=null,s.removeListener(document,"mousemove",H)}var W=null;function H(){W==null&&(W=setTimeout(function(){W!=null&&x&&N()},20))}function R(O){var M=O.types;return!M||Array.prototype.some.call(M,function(I){return I=="text/plain"||I=="Text"})}function z(O){var M=["copy","copymove","all","uninitialized"],I=["move","copymove","linkmove","all","uninitialized"],j=c.isMac?O.altKey:O.ctrlKey,$="uninitialized";try{$=O.dataTransfer.effectAllowed.toLowerCase()}catch{}var U="none";return j&&M.indexOf($)>=0?U="copy":I.indexOf($)>=0?U="move":M.indexOf($)>=0&&(U="copy"),U}}(function(){this.dragWait=function(){var u=Date.now()-this.mousedownEvent.time;u>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var u=this.editor.container;u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,f=u.container;f.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging");var h=c.isWin?"default":"move";u.renderer.setCursorStyle(h),this.setState("dragReady")},this.onMouseDrag=function(u){var f=this.editor.container;if(c.isIE&&this.state=="dragReady"){var h=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);h>3&&f.dragDrop()}if(this.state==="dragWait"){var h=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);h>0&&(f.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var f=this.editor,h=u.inSelection(),g=u.getButton(),b=u.domEvent.detail||1;if(b===1&&g===0&&h){if(u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=u.domEvent.target||u.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),f.getDragDelay()){if(c.isWebKit){this.cancelDrag=!0;var A=f.container;A.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0}}}}).call(o.prototype);function d(u,f,h,g){return Math.sqrt(Math.pow(h-u,2)+Math.pow(g-f,2))}t.DragdropHandler=o});ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,r){"use strict";var n=e("./dom");t.get=function(s,c){var l=new XMLHttpRequest;l.open("GET",s,!0),l.onreadystatechange=function(){l.readyState===4&&c(l.responseText)},l.send(null)},t.loadScript=function(s,c){var l=n.getDocumentHead(),a=document.createElement("script");a.src=s,l.appendChild(a),a.onload=a.onreadystatechange=function(i,o){(o||!a.readyState||a.readyState=="loaded"||a.readyState=="complete")&&(a=a.onload=a.onreadystatechange=null,o||c())}},t.qualifyURL=function(s){var c=document.createElement("a");return c.href=s,c.href}});ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t,r){"use strict";var n={},s=function(){this.propagationStopped=!0},c=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(l,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[l]||[],o=this._defaultHandlers[l];if(!(!i.length&&!o)){(typeof a!="object"||!a)&&(a={}),a.type||(a.type=l),a.stopPropagation||(a.stopPropagation=s),a.preventDefault||(a.preventDefault=c),i=i.slice();for(var d=0;d1&&(b=h[h.length-2]);var A=i[f+"Path"];return A==null?A=i.basePath:g=="/"&&(f=g=""),A&&A.slice(-1)!="/"&&(A+="/"),A+f+g+b+this.get("suffix")},t.setModuleUrl=function(u,f){return i.$moduleUrls[u]=f},t.$loading={},t.loadModule=function(u,f){var h,g;Array.isArray(u)&&(g=u[0],u=u[1]);try{h=e(u)}catch{}if(h&&!t.$loading[u])return f&&f(h);if(t.$loading[u]||(t.$loading[u]=[]),t.$loading[u].push(f),!(t.$loading[u].length>1)){var b=function(){e([u],function(x){t._emit("load.module",{name:u,module:x});var A=t.$loading[u];t.$loading[u]=null,A.forEach(function(v){v&&v(x)})})};if(!t.get("packaged"))return b();c.loadScript(t.moduleUrl(u,g),b)}},o(!0);function o(u){if(!(!a||!a.document)){i.packaged=u||e.packaged||r.packaged||a.define&&define.packaged;for(var f={},h="",g=document.currentScript||document._currentScript,b=g&&g.ownerDocument||document,x=b.getElementsByTagName("script"),A=0;A0)if(ye==16){for(ce=ge;ce-1){for(ce=ge;ce=0&&K[On]==E;On--)P[On]=c}}}function I(L,P,q){if(!(l=L){for(X=Z+1;X=L;)X++;for(V=Z,G=X-1;V=P.length||(X=q[K-1])!=w&&X!=p||(V=P[K+1])!=w&&V!=p?y:(a&&(V=p),V==X?V:y);case S:return X=K>0?q[K-1]:C,X==w&&K+10&&q[K-1]==w)return w;if(a)return y;for(Y=K+1,G=P.length;Y=1425&&ye<=2303||ye==64286;if(X=P[Y],Ee&&(X==v||X==m))return v}return K<1||(X=P[K-1])==C?y:q[K-1];case C:return a=!1,o=!0,c;case D:return d=!0,y;case T:case B:case W:case H:case N:a=!1;case R:return y}}function $(L){var P=L.charCodeAt(0),q=P>>8;return q==0?P>191?A:z[P]:q==5?/[\u0591-\u05f4]/.test(L)?v:A:q==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(L)?_:/[\u0660-\u0669\u066b-\u066c]/.test(L)?p:P==1642?F:/[\u06f0-\u06f9]/.test(L)?w:m:q==32&&P<=8287?O[P&255]:q==254&&P>=65136?m:y}function U(L){return L>="\u064B"&&L<="\u0655"}t.L=A,t.R=v,t.EN=w,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.DOT="\xB7",t.doBidiReorder=function(L,P,q){if(L.length<2)return{};var K=L.split(""),Z=new Array(K.length),X=new Array(K.length),V=[];c=q?x:b,M(K,V,K.length,P);for(var G=0;Gm&&P[G]0&&K[G-1]==="\u0644"&&/\u0622|\u0623|\u0625|\u0627/.test(K[G])&&(V[G-1]=V[G]=t.R_H,G++);K[K.length-1]===t.DOT&&(V[K.length-1]=t.B);for(var G=0;G=0&&(i=this.session.$docRowCache[d])}return i},this.getSplitIndex=function(){var i=0,o=this.session.$screenRowCache;if(o.length)for(var d,u=this.session.$getRowCacheIndex(o,this.currentRow);this.currentRow-i>0&&(d=this.session.$getRowCacheIndex(o,this.currentRow-i-1),d===u);)u=d,i++;return i},this.updateRowLine=function(i,o){if(i===void 0&&(i=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=i===this.session.getLength()-1,this.line=this.session.getLine(i),this.session.$useWrapMode){var d=this.session.$wrapData[i];d&&(o===void 0&&(o=this.getSplitIndex()),o>0&&d.length?(this.wrapIndent=d.indent,this.line=o0?i-1:0,this.bidiMap),d=this.bidiMap.bidiLevels,u=0;i===0&&d[o]%2!==0&&o++;for(var f=0;f=b&&pu+g/2;){if(u+=g,f===h.length-1){g=0;break}g=this.charWidths[h[++f]]}return f>0&&h[f-1]%2!==0&&h[f]%2===0?(d0&&h[f-1]%2===0&&h[f]%2!==0?o=1+(d>u?this.bidiMap.logicalFromVisual[f]:this.bidiMap.logicalFromVisual[f-1]):this.isRtlDir&&f===h.length-1&&g===0&&h[f-1]%2===0||!this.isRtlDir&&f===0&&h[f]%2!==0?o=1+this.bidiMap.logicalFromVisual[f]:(f>0&&h[f-1]%2!==0&&g!==0&&f--,o=this.bidiMap.logicalFromVisual[f]),o+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a});ace.define("ace/range",["require","exports","module"],function(e,t,r){"use strict";var n=function(c,l){return c.row-l.row||c.column-l.column},s=function(c,l,a,i){this.start={row:c,column:l},this.end={row:a,column:i}};(function(){this.isEqual=function(c){return this.start.row===c.start.row&&this.end.row===c.end.row&&this.start.column===c.start.column&&this.end.column===c.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(c,l){return this.compare(c,l)==0},this.compareRange=function(c){var l,a=c.end,i=c.start;return l=this.compare(a.row,a.column),l==1?(l=this.compare(i.row,i.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(i.row,i.column),l==-1?-1:l==1?42:0)},this.comparePoint=function(c){return this.compare(c.row,c.column)},this.containsRange=function(c){return this.comparePoint(c.start)==0&&this.comparePoint(c.end)==0},this.intersects=function(c){var l=this.compareRange(c);return l==-1||l==0||l==1},this.isEnd=function(c,l){return this.end.row==c&&this.end.column==l},this.isStart=function(c,l){return this.start.row==c&&this.start.column==l},this.setStart=function(c,l){typeof c=="object"?(this.start.column=c.column,this.start.row=c.row):(this.start.row=c,this.start.column=l)},this.setEnd=function(c,l){typeof c=="object"?(this.end.column=c.column,this.end.row=c.row):(this.end.row=c,this.end.column=l)},this.inside=function(c,l){return this.compare(c,l)==0?!(this.isEnd(c,l)||this.isStart(c,l)):!1},this.insideStart=function(c,l){return this.compare(c,l)==0?!this.isEnd(c,l):!1},this.insideEnd=function(c,l){return this.compare(c,l)==0?!this.isStart(c,l):!1},this.compare=function(c,l){return!this.isMultiLine()&&c===this.start.row?lthis.end.column?1:0:cthis.end.row?1:this.start.row===c?l>=this.start.column?0:-1:this.end.row===c?l<=this.end.column?0:1:0},this.compareStart=function(c,l){return this.start.row==c&&this.start.column==l?-1:this.compare(c,l)},this.compareEnd=function(c,l){return this.end.row==c&&this.end.column==l?1:this.compare(c,l)},this.compareInside=function(c,l){return this.end.row==c&&this.end.column==l?1:this.start.row==c&&this.start.column==l?-1:this.compare(c,l)},this.clipRows=function(c,l){if(this.end.row>l)var a={row:l+1,column:0};else if(this.end.rowl)var i={row:l+1,column:0};else if(this.start.rowo.row||i.row==o.row&&i.column>o.column},this.getRange=function(){var i=this.anchor,o=this.lead;return this.isEmpty()?l.fromPoints(o,o):this.isBackwards()?l.fromPoints(o,i):l.fromPoints(i,o)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var i=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(i,this.doc.getLine(i).length)},this.setRange=this.setSelectionRange=function(i,o){o?(this.setSelectionAnchor(i.end.row,i.end.column),this.selectTo(i.start.row,i.start.column)):(this.setSelectionAnchor(i.start.row,i.start.column),this.selectTo(i.end.row,i.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(i){var o=this.lead;this.$isEmpty&&this.setSelectionAnchor(o.row,o.column),i.call(this)},this.selectTo=function(i,o){this.$moveSelection(function(){this.moveCursorTo(i,o)})},this.selectToPosition=function(i){this.$moveSelection(function(){this.moveCursorToPosition(i)})},this.moveTo=function(i,o){this.clearSelection(),this.moveCursorTo(i,o)},this.moveToPosition=function(i){this.clearSelection(),this.moveCursorToPosition(i)},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(i,o){if(typeof o>"u"){var d=i||this.lead;i=d.row,o=d.column}return this.session.getWordRange(i,o)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var i=this.getCursor(),o=this.session.getAWordRange(i.row,i.column);this.setSelectionRange(o)},this.getLineRange=function(i,o){var d=typeof i=="number"?i:this.lead.row,u,f=this.session.getFoldLine(d);return f?(d=f.start.row,u=f.end.row):u=d,o===!0?new l(d,0,u,this.session.getLine(u).length):new l(d,0,u+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(i,o,d){var u=i.column,f=i.column+o;return d<0&&(u=i.column-o,f=i.column),this.session.isTabStop(i)&&this.doc.getLine(i.row).slice(u,f).split(" ").length-1==o},this.moveCursorLeft=function(){var i=this.lead.getPosition(),o;if(o=this.session.getFoldAt(i.row,i.column,-1))this.moveCursorTo(o.start.row,o.start.column);else if(i.column===0)i.row>0&&this.moveCursorTo(i.row-1,this.doc.getLine(i.row-1).length);else{var d=this.session.getTabSize();this.wouldMoveIntoSoftTab(i,d,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-d):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var i=this.lead.getPosition(),o;if(o=this.session.getFoldAt(i.row,i.column,1))this.moveCursorTo(o.end.row,o.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(o.column=u)}}this.moveCursorTo(o.row,o.column)},this.moveCursorFileEnd=function(){var i=this.doc.getLength()-1,o=this.doc.getLine(i).length;this.moveCursorTo(i,o)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var i=this.lead.row,o=this.lead.column,d=this.doc.getLine(i),u=d.substring(o),f;this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var h=this.session.getFoldAt(i,o,1);if(h){this.moveCursorTo(h.end.row,h.end.column);return}if((f=this.session.nonTokenRe.exec(u))&&(o+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,u=d.substring(o)),o>=d.length){this.moveCursorTo(i,d.length),this.moveCursorRight(),i0&&this.moveCursorWordLeft();return}(h=this.session.tokenRe.exec(f))&&(o-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,o)},this.$shortWordEndIndex=function(i){var o,d=0,u,f=/\s/,h=this.session.tokenRe;if(h.lastIndex=0,o=this.session.tokenRe.exec(i))d=this.session.tokenRe.lastIndex;else{for(;(u=i[d])&&f.test(u);)d++;if(d<1){for(h.lastIndex=0;(u=i[d])&&!h.test(u);)if(h.lastIndex=0,d++,f.test(u))if(d>2){d--;break}else{for(;(u=i[d])&&f.test(u);)d++;if(d>2)break}}}return h.lastIndex=0,d},this.moveCursorShortWordRight=function(){var i=this.lead.row,o=this.lead.column,d=this.doc.getLine(i),u=d.substring(o),f=this.session.getFoldAt(i,o,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(o==d.length){var h=this.doc.getLength();do i++,u=this.doc.getLine(i);while(i0&&/^\s*$/.test(u));o=u.length,/\s+$/.test(u)||(u="")}var f=s.stringReverse(u),h=this.$shortWordEndIndex(f);return this.moveCursorTo(i,o-h)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(i,o){var d=this.session.documentToScreenPosition(this.lead.row,this.lead.column),u;o===0&&(i!==0&&(this.session.$bidiHandler.isBidiRow(d.row,this.lead.row)?(u=this.session.$bidiHandler.getPosLeft(d.column),d.column=Math.round(u/this.session.$bidiHandler.charWidths[0])):u=d.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?d.column=this.$desiredColumn:this.$desiredColumn=d.column);var f=this.session.screenToDocumentPosition(d.row+i,d.column,u);i!==0&&o===0&&f.row===this.lead.row&&f.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[f.row]&&(f.row>0||i>0)&&f.row++,this.moveCursorTo(f.row,f.column+o,o===0)},this.moveCursorToPosition=function(i){this.moveCursorTo(i.row,i.column)},this.moveCursorTo=function(i,o,d){var u=this.session.getFoldAt(i,o,1);u&&(i=u.start.row,o=u.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(i);/[\uDC00-\uDFFF]/.test(f.charAt(o))&&f.charAt(o-1)&&(this.lead.row==i&&this.lead.column==o+1?o=o-1:o=o+1),this.lead.setPosition(i,o),this.$keepDesiredColumnOnChange=!1,d||(this.$desiredColumn=null)},this.moveCursorToScreen=function(i,o,d){var u=this.session.screenToDocumentPosition(i,o);this.moveCursorTo(u.row,u.column,d)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(i){this.setSelectionRange(i,i.cursor==i.start),this.$desiredColumn=i.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(i){var o=this.getRange();return i?(i.start.column=o.start.column,i.start.row=o.start.row,i.end.column=o.end.column,i.end.row=o.end.row):i=o,i.cursor=this.isBackwards()?i.start:i.end,i.desiredColumn=this.$desiredColumn,i},this.getRangeOfMovements=function(i){var o=this.getCursor();try{i(this);var d=this.getCursor();return l.fromPoints(o,d)}catch{return l.fromPoints(o,o)}finally{this.moveCursorToPosition(o)}},this.toJSON=function(){if(this.rangeCount)var i=this.ranges.map(function(o){var d=o.clone();return d.isBackwards=o.cursor==o.start,d});else{var i=this.getRange();i.isBackwards=this.isBackwards()}return i},this.fromJSON=function(i){if(i.start==null)if(this.rangeList){this.toSingleRange(i[0]);for(var o=i.length;o--;){var d=l.fromPoints(i[o].start,i[o].end);i[o].isBackwards&&(d.cursor=d.start),this.addRange(d,!0)}return}else i=i[0];this.rangeList&&this.toSingleRange(i),this.setSelectionRange(i,i.isBackwards)},this.isEqual=function(i){if((i.length||this.rangeCount)&&i.length!=this.rangeCount)return!1;if(!i.length||!this.ranges)return this.getRange().isEqual(i);for(var o=this.ranges.length;o--;)if(!this.ranges[o].isEqual(i[o]))return!1;return!0}}).call(a.prototype),t.Selection=a});ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(e,t,r){"use strict";var n=e("./config"),s=2e3,c=function(l){this.states=l,this.regExps={},this.matchMappings={};for(var a in this.states){for(var i=this.states[a],o=[],d=0,u=this.matchMappings[a]={defaultToken:"text"},f="g",h=[],g=0;g1?b.onMatch=this.$applyToken:b.onMatch=b.token),A>1&&(/\\\d/.test(b.regex)?x=b.regex.replace(/\\([0-9]+)/g,function(v,w){return"\\"+(parseInt(w,10)+d+1)}):(A=1,x=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&h.push(b)),u[d]=g,d+=A,o.push(x),b.onMatch||(b.onMatch=null)}}o.length||(u[0]=0,o.push("$")),h.forEach(function(v){v.splitRegex=this.createSplitterRegexp(v.regex,f)},this),this.regExps[a]=new RegExp("("+o.join(")|(")+")|($)",f)}};(function(){this.$setMaxTokenCount=function(l){s=l|0},this.$applyToken=function(l){var a=this.splitRegex.exec(l).slice(1),i=this.token.apply(this,a);if(typeof i=="string")return[{type:i,value:l}];for(var o=[],d=0,u=i.length;db){var C=l.substring(b,y-p.length);A.type==v?A.value+=C:(A.type&&g.push(A),A={type:v,value:C})}for(var D=0;Ds){for(x>2*l.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:l});b1&&i[0]!==o&&i.unshift("#tmp",o),{tokens:g,state:i.length?i:o}},this.reportError=n.reportError}).call(c.prototype),t.Tokenizer=c});ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t,r){"use strict";var n=e("../lib/lang"),s=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(a,i){if(!i){for(var o in a)this.$rules[o]=a[o];return}for(var o in a){for(var d=a[o],u=0;u=this.$rowTokens.length;){if(this.$row+=1,c||(c=this.$session.getLength()),this.$row>=c)return this.$row=c-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var c=this.$rowTokens,l=this.$tokenIndex,a=c[l].start;if(a!==void 0)return a;for(a=0;l>0;)l-=1,a+=c[l].value.length;return a},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var c=this.$rowTokens[this.$tokenIndex],l=this.getCurrentTokenColumn();return new n(this.$row,l,this.$row,l+c.value.length)}}).call(s.prototype),t.TokenIterator=s});ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,r){"use strict";var n=e("../../lib/oop"),s=e("../behaviour").Behaviour,c=e("../../token_iterator").TokenIterator,l=e("../../lib/lang"),a=["text","paren.rparen","punctuation.operator"],i=["text","paren.rparen","punctuation.operator","comment"],o,d={},u={'"':'"',"'":"'"},f=function(b){var x=-1;if(b.multiSelect&&(x=b.selection.index,d.rangeCount!=b.multiSelect.rangeCount&&(d={rangeCount:b.multiSelect.rangeCount})),d[x])return o=d[x];o=d[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},h=function(b,x,A,v){var w=b.end.row-b.start.row;return{text:A+x+v,selection:[0,b.start.column+1,w,b.end.column+(w?0:1)]}},g=function(b){this.add("braces","insertion",function(x,A,v,w,p){var y=v.getCursorPosition(),C=w.doc.getLine(y.row);if(p=="{"){f(v);var D=v.getSelectionRange(),m=w.doc.getTextRange(D);if(m!==""&&m!=="{"&&v.getWrapBehavioursEnabled())return h(D,m,"{","}");if(g.isSaneInsertion(v,w))return/[\]\}\)]/.test(C[y.column])||v.inMultiSelectMode||b&&b.braces?(g.recordAutoInsert(v,w,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(v,w,"{"),{text:"{",selection:[1,1]})}else if(p=="}"){f(v);var E=C.substring(y.column,y.column+1);if(E=="}"){var k=w.$findOpeningBracket("}",{column:y.column+1,row:y.row});if(k!==null&&g.isAutoInsertedClosing(y,C,p))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(p==` +`,b.setSelectionRange(4,4+Y.length),A={value:Y}),G?f.onCut():f.onCopy(),s.isIOS||n.preventDefault(V)):(A=!0,b.value=Y,b.select(),setTimeout(function(){A=!1,S(),k(),G?f.onCut():f.onCopy()}))},z=function(V){R(V,!0)},N=function(V){R(V,!1)},M=function(V){var G=H(V);typeof G=="string"?(G&&f.onPaste(G,V),s.isIE&&setTimeout(k),n.preventDefault(V)):(b.value="",w=!0)};n.addCommandKeyListener(b,f.onCommandKey.bind(f)),n.addListener(b,"select",_),n.addListener(b,"input",W),n.addListener(b,"cut",z),n.addListener(b,"copy",N),n.addListener(b,"paste",M);var I=function(V){p||!f.onCompositionStart||f.$readOnly||(p={},p.canUndo=f.session.$undoManager,f.onCompositionStart(),setTimeout(j,0),f.on("mousedown",$),p.canUndo&&!f.selection.isEmpty()&&(f.insert(""),f.session.markUndoGroup(),f.selection.clearSelection()),f.session.markUndoGroup())},j=function(){if(!(!p||!f.onCompositionUpdate||f.$readOnly)){var V=b.value.replace(/\x01/g,"");if(p.lastValue!==V&&(f.onCompositionUpdate(V),p.lastValue&&f.undo(),p.canUndo&&(p.lastValue=V),p.lastValue)){var G=f.selection.getRange();f.insert(p.lastValue),f.session.markUndoGroup(),p.range=f.selection.getRange(),f.selection.setRange(G),f.selection.clearSelection()}}},$=function(V){if(!(!f.onCompositionEnd||f.$readOnly)){var G=p;p=!1;var Y=setTimeout(function(){Y=null;var be=b.value.replace(/\x01/g,"");p||(be==G.lastValue?S():!G.lastValue&&be&&(S(),B(be)))});T=function(pe){return Y&&clearTimeout(Y),pe=pe.replace(/\x01/g,""),pe==G.lastValue?"":(G.lastValue&&Y&&f.undo(),pe)},f.onCompositionEnd(),f.removeListener("mousedown",$),V.type=="compositionend"&&G.range&&f.selection.setRange(G.range);var ye=!!s.isChrome&&s.isChrome>=53||!!s.isWebKit&&s.isWebKit>=603;ye&&W()}},U=l.delayedCall(j,50);n.addListener(b,"compositionstart",I),s.isGecko?n.addListener(b,"text",function(){U.schedule()}):(n.addListener(b,"keyup",function(){U.schedule()}),n.addListener(b,"keydown",function(){U.schedule()})),n.addListener(b,"compositionend",$),this.getElement=function(){return b},this.setReadOnly=function(V){b.readOnly=V},this.onContextMenu=function(V){O=!0,k(f.selection.isEmpty()),f._emit("nativecontextmenu",{target:f,domEvent:V}),this.moveToMouse(V,!0)},this.moveToMouse=function(V,G){y||(y=b.style.cssText),b.style.cssText=(G?"z-index:100000;":"")+"height:"+b.style.height+";"+(s.isIE?"opacity:0.1;":"");var Y=f.container.getBoundingClientRect(),ye=c.computedStyle(f.container),be=Y.top+(parseInt(ye.borderTopWidth)||0),pe=Y.left+(parseInt(Y.borderLeftWidth)||0),ue=Y.bottom-be-b.clientHeight-2,Ee=function(Kt){b.style.left=Kt.clientX-pe-2+"px",b.style.top=Math.min(Kt.clientY-be-2,ue)+"px"};Ee(V),V.type=="mousedown"&&(f.renderer.$keepTextAreaAtCursor&&(f.renderer.$keepTextAreaAtCursor=null),clearTimeout(L),s.isWin&&n.capture(f.container,Ee,P))},this.onContextMenuClose=P;var L;function P(){clearTimeout(L),L=setTimeout(function(){y&&(b.style.cssText=y,y=""),f.renderer.$keepTextAreaAtCursor==null&&(f.renderer.$keepTextAreaAtCursor=!0,f.renderer.$moveTextAreaToCursor())},0)}var K=function(V){f.textInput.onContextMenu(V),P()};if(n.addListener(b,"mouseup",K),n.addListener(b,"mousedown",function(V){V.preventDefault(),P()}),n.addListener(f.renderer.scroller,"contextmenu",K),n.addListener(b,"contextmenu",K),s.isIOS){var q=null,Z=!1;h.addEventListener("keydown",function(V){q&&clearTimeout(q),Z=!0}),h.addEventListener("keyup",function(V){q=setTimeout(function(){Z=!1},100)});var X=function(V){if(document.activeElement===b&&!Z){if(v)return setTimeout(function(){v=!1},100);var G=b.selectionStart,Y=b.selectionEnd;if(b.setSelectionRange(4,5),G==Y)switch(G){case 0:f.onCommandKey(null,0,a.up);break;case 1:f.onCommandKey(null,0,a.home);break;case 2:f.onCommandKey(null,i.option,a.left);break;case 4:f.onCommandKey(null,0,a.left);break;case 5:f.onCommandKey(null,0,a.right);break;case 7:f.onCommandKey(null,i.option,a.right);break;case 8:f.onCommandKey(null,0,a.end);break;case 9:f.onCommandKey(null,0,a.down);break}else{switch(Y){case 6:f.onCommandKey(null,i.shift,a.right);break;case 7:f.onCommandKey(null,i.shift|i.option,a.right);break;case 8:f.onCommandKey(null,i.shift,a.end);break;case 9:f.onCommandKey(null,i.shift,a.down);break}switch(G){case 0:f.onCommandKey(null,i.shift,a.up);break;case 1:f.onCommandKey(null,i.shift,a.home);break;case 2:f.onCommandKey(null,i.shift|i.option,a.left);break;case 3:f.onCommandKey(null,i.shift,a.left);break}}}};document.addEventListener("selectionchange",X),f.on("destroy",function(){document.removeEventListener("selectionchange",X)})}};t.TextInput=u});ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],function(e,t,r){"use strict";var n=e("../lib/event"),s=e("../lib/useragent"),c=e("../lib/dom"),l=e("../lib/lang"),a=s.isChrome<18,i=s.isIE,o=e("./textinput_ios").TextInput,d=function(u,h){if(s.isIOS)return o.call(this,u,h);var f=c.createElement("textarea");f.className="ace_text-input",f.setAttribute("wrap","off"),f.setAttribute("autocorrect","off"),f.setAttribute("autocapitalize","off"),f.setAttribute("spellcheck",!1),f.style.opacity="0",u.insertBefore(f,u.firstChild);var g="\u2028\u2028",b=!1,x=!1,A=!1,v="",w=!0;try{var p=document.activeElement===f}catch{}n.addListener(f,"blur",function(L){h.onBlur(L),p=!1}),n.addListener(f,"focus",function(L){p=!0,h.onFocus(L),D()}),this.focus=function(){if(v)return f.focus();var L=f.style.top;f.style.position="fixed",f.style.top="0px",f.focus(),setTimeout(function(){f.style.position="",f.style.top=="0px"&&(f.style.top=L)},0)},this.blur=function(){f.blur()},this.isFocused=function(){return p};var y=l.delayedCall(function(){p&&D(w)}),C=l.delayedCall(function(){A||(f.value=g,p&&D())});function D(L){if(!A){if(A=!0,S)var P=0,K=L?0:f.value.length-1;else var P=L?2:1,K=2;try{f.setSelectionRange(P,K)}catch{}A=!1}}function m(){A||(f.value=g,s.isWebKit&&C.schedule())}s.isWebKit||h.addEventListener("changeSelection",function(){h.selection.isEmpty()!=w&&(w=!w,y.schedule())}),m(),p&&h.onFocus();var E=function(L){return L.selectionStart===0&&L.selectionEnd===L.value.length},k=function(L){b?b=!1:E(f)?(h.selectAll(),D()):S&&D(h.selection.isEmpty())},S=null;this.setInputHandler=function(L){S=L},this.getInputHandler=function(){return S};var F=!1,_=function(L){S&&(L=S(L),S=null),x?(D(),L&&h.onPaste(L),x=!1):L==g.charAt(0)?F?h.execCommand("del",{source:"ace"}):h.execCommand("backspace",{source:"ace"}):(L.substring(0,2)==g?L=L.substr(2):L.charAt(0)==g.charAt(0)?L=L.substr(1):L.charAt(L.length-1)==g.charAt(0)&&(L=L.slice(0,-1)),L.charAt(L.length-1)==g.charAt(0)&&(L=L.slice(0,-1)),L&&h.onTextInput(L)),F&&(F=!1)},T=function(L){if(!A){var P=f.value;_(P),m()}},O=function(L,P,K){var q=L.clipboardData||window.clipboardData;if(!(!q||a)){var Z=i||K?"Text":"text/plain";try{return P?q.setData(Z,P)!==!1:q.getData(Z)}catch(X){if(!K)return O(X,P,!0)}}},B=function(L,P){var K=h.getCopyText();if(!K)return n.preventDefault(L);O(L,K)?(P?h.onCut():h.onCopy(),n.preventDefault(L)):(b=!0,f.value=K,f.select(),setTimeout(function(){b=!1,m(),D(),P?h.onCut():h.onCopy()}))},W=function(L){B(L,!0)},H=function(L){B(L,!1)},R=function(L){var P=O(L);typeof P=="string"?(P&&h.onPaste(P,L),s.isIE&&setTimeout(D),n.preventDefault(L)):(f.value="",x=!0)};n.addCommandKeyListener(f,h.onCommandKey.bind(h)),n.addListener(f,"select",k),n.addListener(f,"input",T),n.addListener(f,"cut",W),n.addListener(f,"copy",H),n.addListener(f,"paste",R),(!("oncut"in f)||!("oncopy"in f)||!("onpaste"in f))&&n.addListener(u,"keydown",function(L){if(!(s.isMac&&!L.metaKey||!L.ctrlKey))switch(L.keyCode){case 67:H(L);break;case 86:R(L);break;case 88:W(L);break}});var z=function(L){A||!h.onCompositionStart||h.$readOnly||(A={},A.canUndo=h.session.$undoManager,h.onCompositionStart(),setTimeout(N,0),h.on("mousedown",M),A.canUndo&&!h.selection.isEmpty()&&(h.insert(""),h.session.markUndoGroup(),h.selection.clearSelection()),h.session.markUndoGroup())},N=function(){if(!(!A||!h.onCompositionUpdate||h.$readOnly)){var L=f.value.replace(/\u2028/g,"");if(A.lastValue!==L&&(h.onCompositionUpdate(L),A.lastValue&&h.undo(),A.canUndo&&(A.lastValue=L),A.lastValue)){var P=h.selection.getRange();h.insert(A.lastValue),h.session.markUndoGroup(),A.range=h.selection.getRange(),h.selection.setRange(P),h.selection.clearSelection()}}},M=function(L){if(!(!h.onCompositionEnd||h.$readOnly)){var P=A;A=!1;var K=setTimeout(function(){K=null;var Z=f.value.replace(/\u2028/g,"");A||(Z==P.lastValue?m():!P.lastValue&&Z&&(m(),_(Z)))});S=function(X){return K&&clearTimeout(K),X=X.replace(/\u2028/g,""),X==P.lastValue?"":(P.lastValue&&K&&h.undo(),X)},h.onCompositionEnd(),h.removeListener("mousedown",M),L.type=="compositionend"&&P.range&&h.selection.setRange(P.range);var q=!!s.isChrome&&s.isChrome>=53||!!s.isWebKit&&s.isWebKit>=603;q&&T()}},I=l.delayedCall(N,50);n.addListener(f,"compositionstart",z),s.isGecko?n.addListener(f,"text",function(){I.schedule()}):(n.addListener(f,"keyup",function(){I.schedule()}),n.addListener(f,"keydown",function(){I.schedule()})),n.addListener(f,"compositionend",M),this.getElement=function(){return f},this.setReadOnly=function(L){f.readOnly=L},this.onContextMenu=function(L){F=!0,D(h.selection.isEmpty()),h._emit("nativecontextmenu",{target:h,domEvent:L}),this.moveToMouse(L,!0)},this.moveToMouse=function(L,P){v||(v=f.style.cssText),f.style.cssText=(P?"z-index:100000;":"")+"height:"+f.style.height+";"+(s.isIE?"opacity:0.1;":"");var K=h.container.getBoundingClientRect(),q=c.computedStyle(h.container),Z=K.top+(parseInt(q.borderTopWidth)||0),X=K.left+(parseInt(K.borderLeftWidth)||0),V=K.bottom-Z-f.clientHeight-2,G=function(Y){f.style.left=Y.clientX-X-2+"px",f.style.top=Math.min(Y.clientY-Z-2,V)+"px"};G(L),L.type=="mousedown"&&(h.renderer.$keepTextAreaAtCursor&&(h.renderer.$keepTextAreaAtCursor=null),clearTimeout(j),s.isWin&&n.capture(h.container,G,$))},this.onContextMenuClose=$;var j;function $(){clearTimeout(j),j=setTimeout(function(){v&&(f.style.cssText=v,v=""),h.renderer.$keepTextAreaAtCursor==null&&(h.renderer.$keepTextAreaAtCursor=!0,h.renderer.$moveTextAreaToCursor())},0)}var U=function(L){h.textInput.onContextMenu(L),$()};n.addListener(f,"mouseup",U),n.addListener(f,"mousedown",function(L){L.preventDefault(),$()}),n.addListener(h.renderer.scroller,"contextmenu",U),n.addListener(f,"contextmenu",U)};t.TextInput=d});ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,r){"use strict";var n=e("../lib/dom"),s=e("../lib/event"),c=e("../lib/useragent"),l=0,a=250;function i(u){u.$clickSelection=null;var h=u.editor;h.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),h.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),h.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),h.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),h.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u)),h.setDefaultHandler("touchmove",this.onTouchMove.bind(u));var f=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];f.forEach(function(g){u[g]=this[g]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}(function(){this.onMouseDown=function(u){var h=u.inSelection(),f=u.getDocumentPosition();this.mousedownEvent=u;var g=this.editor,b=u.getButton();if(b!==0){var x=g.getSelectionRange(),A=x.isEmpty();g.$blockScrolling++,(A||b==1)&&g.selection.moveToPosition(f),g.$blockScrolling--,b==2&&(g.textInput.onContextMenu(u.domEvent),c.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),h&&!g.isFocused()&&(g.focus(),this.$focusTimout&&!this.$clickSelection&&!g.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(f,u.domEvent._clicks>1),u.preventDefault()},this.startSelect=function(u,h){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var f=this.editor;f.$blockScrolling++,this.mousedownEvent.getShiftKey()?f.selection.selectToPosition(u):h||f.selection.moveToPosition(u),h||this.select(),f.renderer.scroller.setCapture&&f.renderer.scroller.setCapture(),f.setStyle("ace_selecting"),this.setState("select"),f.$blockScrolling--},this.select=function(){var u,h=this.editor,f=h.renderer.screenToTextCoordinates(this.x,this.y);if(h.$blockScrolling++,this.$clickSelection){var g=this.$clickSelection.comparePoint(f);if(g==-1)u=this.$clickSelection.end;else if(g==1)u=this.$clickSelection.start;else{var b=d(this.$clickSelection,f);f=b.cursor,u=b.anchor}h.selection.setSelectionAnchor(u.row,u.column)}h.selection.selectToPosition(f),h.$blockScrolling--,h.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(u){var h,f=this.editor,g=f.renderer.screenToTextCoordinates(this.x,this.y),b=f.selection[u](g.row,g.column);if(f.$blockScrolling++,this.$clickSelection){var x=this.$clickSelection.comparePoint(b.start),A=this.$clickSelection.comparePoint(b.end);if(x==-1&&A<=0)h=this.$clickSelection.end,(b.end.row!=g.row||b.end.column!=g.column)&&(g=b.start);else if(A==1&&x>=0)h=this.$clickSelection.start,(b.start.row!=g.row||b.start.column!=g.column)&&(g=b.end);else if(x==-1&&A==1)g=b.end,h=b.start;else{var v=d(this.$clickSelection,g);g=v.cursor,h=v.anchor}f.selection.setSelectionAnchor(h.row,h.column)}f.selection.selectToPosition(g),f.$blockScrolling--,f.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var u=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),h=Date.now();(u>l||h-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(u){var h=u.getDocumentPosition(),f=this.editor,g=f.session,b=g.getBracketRange(h);b?(b.isEmpty()&&(b.start.column--,b.end.column++),this.setState("select")):(b=f.selection.getWordRange(h.row,h.column),this.setState("selectByWords")),this.$clickSelection=b,this.select()},this.onTripleClick=function(u){var h=u.getDocumentPosition(),f=this.editor;this.setState("selectByLines");var g=f.getSelectionRange();g.isMultiLine()&&g.contains(h.row,h.column)?(this.$clickSelection=f.selection.getLineRange(g.start.row),this.$clickSelection.end=f.selection.getLineRange(g.end.row).end):this.$clickSelection=f.selection.getLineRange(h.row),this.select()},this.onQuadClick=function(u){var h=this.editor;h.selectAll(),this.$clickSelection=h.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var h=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var f=this.$lastScroll,g=u.domEvent.timeStamp,b=g-f.t,x=u.wheelX/b,A=u.wheelY/b;b=1&&h.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(w=!0),v<=1&&h.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(w=!0),w)f.allowed=g;else if(g-f.allowedd.session.documentToScreenRow(D.row,D.column))return A()}if(b!=p)if(b=p.text.join("
"),h.setHtml(b),h.show(),d._signal("showGutterTooltip",h),d.on("mousewheel",A),o.$tooltipFollowsMouse)v(g);else{var m=g.domEvent.target,E=m.getBoundingClientRect(),k=h.getElement().style;k.left=E.right+"px",k.top=E.bottom+"px"}}function A(){f&&(f=clearTimeout(f)),b&&(h.hide(),b=null,d._signal("hideGutterTooltip",h),d.removeEventListener("mousewheel",A))}function v(w){h.setPosition(w.x,w.y)}o.editor.setDefaultHandler("guttermousemove",function(w){var p=w.domEvent.target||w.domEvent.srcElement;if(n.hasCssClass(p,"ace_fold-widget"))return A();b&&o.$tooltipFollowsMouse&&v(w),g=w,!f&&(f=setTimeout(function(){f=null,g&&!o.isMousePressed?x():A()},50))}),c.addListener(d.renderer.$gutter,"mouseout",function(w){g=null,!(!b||f)&&(f=setTimeout(function(){f=null,A()},50))}),d.on("changeSession",A)}function i(o){l.call(this,o)}s.inherits(i,l),(function(){this.setPosition=function(o,d){var u=window.innerWidth||document.documentElement.clientWidth,h=window.innerHeight||document.documentElement.clientHeight,f=this.getWidth(),g=this.getHeight();o+=15,d+=15,o+f>u&&(o-=o+f-u),d+g>h&&(d-=20+g),l.prototype.setPosition.call(this,o,d)}}).call(i.prototype),t.GutterHandler=a});ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,r){"use strict";var n=e("../lib/event"),s=e("../lib/useragent"),c=t.MouseEvent=function(l,a){this.domEvent=l,this.editor=a,this.x=this.clientX=l.clientX,this.y=this.clientY=l.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var l=this.editor,a=l.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=a.contains(i.row,i.column)}return this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=s.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(c.prototype)});ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,r){"use strict";var n=e("../lib/dom"),s=e("../lib/event"),c=e("../lib/useragent"),l=200,a=200,i=5;function o(u){var h=u.editor,f=n.createElement("img");f.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",c.isOpera&&(f.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");var g=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];g.forEach(function(N){u[N]=this[N]},this),h.addEventListener("mousedown",this.onMouseDown.bind(u));var b=h.container,x,A,v,w,p,y,C=0,D,m,E,k,S;this.onDragStart=function(N){if(this.cancelDrag||!b.draggable){var M=this;return setTimeout(function(){M.startSelect(),M.captureMouse(N)},0),N.preventDefault()}p=h.getSelectionRange();var I=N.dataTransfer;I.effectAllowed=h.getReadOnly()?"copy":"copyMove",c.isOpera&&(h.container.appendChild(f),f.scrollTop=0),I.setDragImage&&I.setDragImage(f,0,0),c.isOpera&&h.container.removeChild(f),I.clearData(),I.setData("Text",h.session.getTextRange()),m=!0,this.setState("drag")},this.onDragEnd=function(N){if(b.draggable=!1,m=!1,this.setState(null),!h.getReadOnly()){var M=N.dataTransfer.dropEffect;!D&&M=="move"&&h.session.remove(h.getSelectionRange()),h.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(N){if(!(h.getReadOnly()||!R(N.dataTransfer)))return A=N.clientX,v=N.clientY,x||O(),C++,N.dataTransfer.dropEffect=D=z(N),s.preventDefault(N)},this.onDragOver=function(N){if(!(h.getReadOnly()||!R(N.dataTransfer)))return A=N.clientX,v=N.clientY,x||(O(),C++),W!==null&&(W=null),N.dataTransfer.dropEffect=D=z(N),s.preventDefault(N)},this.onDragLeave=function(N){if(C--,C<=0&&x)return B(),D=null,s.preventDefault(N)},this.onDrop=function(N){if(y){var M=N.dataTransfer;if(m)switch(D){case"move":p.contains(y.row,y.column)?p={start:y,end:y}:p=h.moveText(p,y);break;case"copy":p=h.moveText(p,y,!0);break}else{var I=M.getData("Text");p={start:y,end:h.session.insert(y,I)},h.focus(),D=null}return B(),s.preventDefault(N)}},s.addListener(b,"dragstart",this.onDragStart.bind(u)),s.addListener(b,"dragend",this.onDragEnd.bind(u)),s.addListener(b,"dragenter",this.onDragEnter.bind(u)),s.addListener(b,"dragover",this.onDragOver.bind(u)),s.addListener(b,"dragleave",this.onDragLeave.bind(u)),s.addListener(b,"drop",this.onDrop.bind(u));function F(N,M){var I=Date.now(),j=!M||N.row!=M.row,$=!M||N.column!=M.column;if(!k||j||$)h.$blockScrolling+=1,h.moveCursorToPosition(N),h.$blockScrolling-=1,k=I,S={x:A,y:v};else{var U=d(S.x,S.y,A,v);U>i?k=null:I-k>=a&&(h.renderer.scrollCursorIntoView(),k=null)}}function _(N,M){var I=Date.now(),j=h.renderer.layerConfig.lineHeight,$=h.renderer.layerConfig.characterWidth,U=h.renderer.scroller.getBoundingClientRect(),L={x:{left:A-U.left,right:U.right-A},y:{top:v-U.top,bottom:U.bottom-v}},P=Math.min(L.x.left,L.x.right),K=Math.min(L.y.top,L.y.bottom),q={row:N.row,column:N.column};P/$<=2&&(q.column+=L.x.left=l&&h.renderer.scrollCursorIntoView(q):E=I:E=null}function T(){var N=y;y=h.renderer.screenToTextCoordinates(A,v),F(y,N),_(y,N)}function O(){p=h.selection.toOrientedRange(),x=h.session.addMarker(p,"ace_selection",h.getSelectionStyle()),h.clearSelection(),h.isFocused()&&h.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),T(),w=setInterval(T,20),C=0,s.addListener(document,"mousemove",H)}function B(){clearInterval(w),h.session.removeMarker(x),x=null,h.$blockScrolling+=1,h.selection.fromOrientedRange(p),h.$blockScrolling-=1,h.isFocused()&&!m&&h.renderer.$cursorLayer.setBlinking(!h.getReadOnly()),p=null,y=null,C=0,E=null,k=null,s.removeListener(document,"mousemove",H)}var W=null;function H(){W==null&&(W=setTimeout(function(){W!=null&&x&&B()},20))}function R(N){var M=N.types;return!M||Array.prototype.some.call(M,function(I){return I=="text/plain"||I=="Text"})}function z(N){var M=["copy","copymove","all","uninitialized"],I=["move","copymove","linkmove","all","uninitialized"],j=c.isMac?N.altKey:N.ctrlKey,$="uninitialized";try{$=N.dataTransfer.effectAllowed.toLowerCase()}catch{}var U="none";return j&&M.indexOf($)>=0?U="copy":I.indexOf($)>=0?U="move":M.indexOf($)>=0&&(U="copy"),U}}(function(){this.dragWait=function(){var u=Date.now()-this.mousedownEvent.time;u>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var u=this.editor.container;u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,h=u.container;h.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging");var f=c.isWin?"default":"move";u.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(u){var h=this.editor.container;if(c.isIE&&this.state=="dragReady"){var f=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&h.dragDrop()}if(this.state==="dragWait"){var f=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(h.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var h=this.editor,f=u.inSelection(),g=u.getButton(),b=u.domEvent.detail||1;if(b===1&&g===0&&f){if(u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=u.domEvent.target||u.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),h.getDragDelay()){if(c.isWebKit){this.cancelDrag=!0;var A=h.container;A.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0}}}}).call(o.prototype);function d(u,h,f,g){return Math.sqrt(Math.pow(f-u,2)+Math.pow(g-h,2))}t.DragdropHandler=o});ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,r){"use strict";var n=e("./dom");t.get=function(s,c){var l=new XMLHttpRequest;l.open("GET",s,!0),l.onreadystatechange=function(){l.readyState===4&&c(l.responseText)},l.send(null)},t.loadScript=function(s,c){var l=n.getDocumentHead(),a=document.createElement("script");a.src=s,l.appendChild(a),a.onload=a.onreadystatechange=function(i,o){(o||!a.readyState||a.readyState=="loaded"||a.readyState=="complete")&&(a=a.onload=a.onreadystatechange=null,o||c())}},t.qualifyURL=function(s){var c=document.createElement("a");return c.href=s,c.href}});ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t,r){"use strict";var n={},s=function(){this.propagationStopped=!0},c=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(l,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[l]||[],o=this._defaultHandlers[l];if(!(!i.length&&!o)){(typeof a!="object"||!a)&&(a={}),a.type||(a.type=l),a.stopPropagation||(a.stopPropagation=s),a.preventDefault||(a.preventDefault=c),i=i.slice();for(var d=0;d1&&(b=f[f.length-2]);var A=i[h+"Path"];return A==null?A=i.basePath:g=="/"&&(h=g=""),A&&A.slice(-1)!="/"&&(A+="/"),A+h+g+b+this.get("suffix")},t.setModuleUrl=function(u,h){return i.$moduleUrls[u]=h},t.$loading={},t.loadModule=function(u,h){var f,g;Array.isArray(u)&&(g=u[0],u=u[1]);try{f=e(u)}catch{}if(f&&!t.$loading[u])return h&&h(f);if(t.$loading[u]||(t.$loading[u]=[]),t.$loading[u].push(h),!(t.$loading[u].length>1)){var b=function(){e([u],function(x){t._emit("load.module",{name:u,module:x});var A=t.$loading[u];t.$loading[u]=null,A.forEach(function(v){v&&v(x)})})};if(!t.get("packaged"))return b();c.loadScript(t.moduleUrl(u,g),b)}},o(!0);function o(u){if(!(!a||!a.document)){i.packaged=u||e.packaged||r.packaged||a.define&&define.packaged;for(var h={},f="",g=document.currentScript||document._currentScript,b=g&&g.ownerDocument||document,x=b.getElementsByTagName("script"),A=0;A0)if(ye==16){for(ue=pe;ue-1){for(ue=pe;ue=0&&q[Fn]==E;Fn--)P[Fn]=c}}}function I(L,P,K){if(!(l=L){for(X=Z+1;X=L;)X++;for(V=Z,G=X-1;V=P.length||(X=K[q-1])!=w&&X!=p||(V=P[q+1])!=w&&V!=p?y:(a&&(V=p),V==X?V:y);case S:return X=q>0?K[q-1]:C,X==w&&q+10&&K[q-1]==w)return w;if(a)return y;for(Y=q+1,G=P.length;Y=1425&&ye<=2303||ye==64286;if(X=P[Y],be&&(X==v||X==m))return v}return q<1||(X=P[q-1])==C?y:K[q-1];case C:return a=!1,o=!0,c;case D:return d=!0,y;case T:case O:case W:case H:case B:a=!1;case R:return y}}function $(L){var P=L.charCodeAt(0),K=P>>8;return K==0?P>191?A:z[P]:K==5?/[\u0591-\u05f4]/.test(L)?v:A:K==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(L)?_:/[\u0660-\u0669\u066b-\u066c]/.test(L)?p:P==1642?F:/[\u06f0-\u06f9]/.test(L)?w:m:K==32&&P<=8287?N[P&255]:K==254&&P>=65136?m:y}function U(L){return L>="\u064B"&&L<="\u0655"}t.L=A,t.R=v,t.EN=w,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.DOT="\xB7",t.doBidiReorder=function(L,P,K){if(L.length<2)return{};var q=L.split(""),Z=new Array(q.length),X=new Array(q.length),V=[];c=K?x:b,M(q,V,q.length,P);for(var G=0;Gm&&P[G]0&&q[G-1]==="\u0644"&&/\u0622|\u0623|\u0625|\u0627/.test(q[G])&&(V[G-1]=V[G]=t.R_H,G++);q[q.length-1]===t.DOT&&(V[q.length-1]=t.B);for(var G=0;G=0&&(i=this.session.$docRowCache[d])}return i},this.getSplitIndex=function(){var i=0,o=this.session.$screenRowCache;if(o.length)for(var d,u=this.session.$getRowCacheIndex(o,this.currentRow);this.currentRow-i>0&&(d=this.session.$getRowCacheIndex(o,this.currentRow-i-1),d===u);)u=d,i++;return i},this.updateRowLine=function(i,o){if(i===void 0&&(i=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=i===this.session.getLength()-1,this.line=this.session.getLine(i),this.session.$useWrapMode){var d=this.session.$wrapData[i];d&&(o===void 0&&(o=this.getSplitIndex()),o>0&&d.length?(this.wrapIndent=d.indent,this.line=o0?i-1:0,this.bidiMap),d=this.bidiMap.bidiLevels,u=0;i===0&&d[o]%2!==0&&o++;for(var h=0;h=b&&pu+g/2;){if(u+=g,h===f.length-1){g=0;break}g=this.charWidths[f[++h]]}return h>0&&f[h-1]%2!==0&&f[h]%2===0?(d0&&f[h-1]%2===0&&f[h]%2!==0?o=1+(d>u?this.bidiMap.logicalFromVisual[h]:this.bidiMap.logicalFromVisual[h-1]):this.isRtlDir&&h===f.length-1&&g===0&&f[h-1]%2===0||!this.isRtlDir&&h===0&&f[h]%2!==0?o=1+this.bidiMap.logicalFromVisual[h]:(h>0&&f[h-1]%2!==0&&g!==0&&h--,o=this.bidiMap.logicalFromVisual[h]),o+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a});ace.define("ace/range",["require","exports","module"],function(e,t,r){"use strict";var n=function(c,l){return c.row-l.row||c.column-l.column},s=function(c,l,a,i){this.start={row:c,column:l},this.end={row:a,column:i}};(function(){this.isEqual=function(c){return this.start.row===c.start.row&&this.end.row===c.end.row&&this.start.column===c.start.column&&this.end.column===c.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(c,l){return this.compare(c,l)==0},this.compareRange=function(c){var l,a=c.end,i=c.start;return l=this.compare(a.row,a.column),l==1?(l=this.compare(i.row,i.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(i.row,i.column),l==-1?-1:l==1?42:0)},this.comparePoint=function(c){return this.compare(c.row,c.column)},this.containsRange=function(c){return this.comparePoint(c.start)==0&&this.comparePoint(c.end)==0},this.intersects=function(c){var l=this.compareRange(c);return l==-1||l==0||l==1},this.isEnd=function(c,l){return this.end.row==c&&this.end.column==l},this.isStart=function(c,l){return this.start.row==c&&this.start.column==l},this.setStart=function(c,l){typeof c=="object"?(this.start.column=c.column,this.start.row=c.row):(this.start.row=c,this.start.column=l)},this.setEnd=function(c,l){typeof c=="object"?(this.end.column=c.column,this.end.row=c.row):(this.end.row=c,this.end.column=l)},this.inside=function(c,l){return this.compare(c,l)==0?!(this.isEnd(c,l)||this.isStart(c,l)):!1},this.insideStart=function(c,l){return this.compare(c,l)==0?!this.isEnd(c,l):!1},this.insideEnd=function(c,l){return this.compare(c,l)==0?!this.isStart(c,l):!1},this.compare=function(c,l){return!this.isMultiLine()&&c===this.start.row?lthis.end.column?1:0:cthis.end.row?1:this.start.row===c?l>=this.start.column?0:-1:this.end.row===c?l<=this.end.column?0:1:0},this.compareStart=function(c,l){return this.start.row==c&&this.start.column==l?-1:this.compare(c,l)},this.compareEnd=function(c,l){return this.end.row==c&&this.end.column==l?1:this.compare(c,l)},this.compareInside=function(c,l){return this.end.row==c&&this.end.column==l?1:this.start.row==c&&this.start.column==l?-1:this.compare(c,l)},this.clipRows=function(c,l){if(this.end.row>l)var a={row:l+1,column:0};else if(this.end.rowl)var i={row:l+1,column:0};else if(this.start.rowo.row||i.row==o.row&&i.column>o.column},this.getRange=function(){var i=this.anchor,o=this.lead;return this.isEmpty()?l.fromPoints(o,o):this.isBackwards()?l.fromPoints(o,i):l.fromPoints(i,o)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var i=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(i,this.doc.getLine(i).length)},this.setRange=this.setSelectionRange=function(i,o){o?(this.setSelectionAnchor(i.end.row,i.end.column),this.selectTo(i.start.row,i.start.column)):(this.setSelectionAnchor(i.start.row,i.start.column),this.selectTo(i.end.row,i.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(i){var o=this.lead;this.$isEmpty&&this.setSelectionAnchor(o.row,o.column),i.call(this)},this.selectTo=function(i,o){this.$moveSelection(function(){this.moveCursorTo(i,o)})},this.selectToPosition=function(i){this.$moveSelection(function(){this.moveCursorToPosition(i)})},this.moveTo=function(i,o){this.clearSelection(),this.moveCursorTo(i,o)},this.moveToPosition=function(i){this.clearSelection(),this.moveCursorToPosition(i)},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(i,o){if(typeof o>"u"){var d=i||this.lead;i=d.row,o=d.column}return this.session.getWordRange(i,o)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var i=this.getCursor(),o=this.session.getAWordRange(i.row,i.column);this.setSelectionRange(o)},this.getLineRange=function(i,o){var d=typeof i=="number"?i:this.lead.row,u,h=this.session.getFoldLine(d);return h?(d=h.start.row,u=h.end.row):u=d,o===!0?new l(d,0,u,this.session.getLine(u).length):new l(d,0,u+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(i,o,d){var u=i.column,h=i.column+o;return d<0&&(u=i.column-o,h=i.column),this.session.isTabStop(i)&&this.doc.getLine(i.row).slice(u,h).split(" ").length-1==o},this.moveCursorLeft=function(){var i=this.lead.getPosition(),o;if(o=this.session.getFoldAt(i.row,i.column,-1))this.moveCursorTo(o.start.row,o.start.column);else if(i.column===0)i.row>0&&this.moveCursorTo(i.row-1,this.doc.getLine(i.row-1).length);else{var d=this.session.getTabSize();this.wouldMoveIntoSoftTab(i,d,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-d):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var i=this.lead.getPosition(),o;if(o=this.session.getFoldAt(i.row,i.column,1))this.moveCursorTo(o.end.row,o.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(o.column=u)}}this.moveCursorTo(o.row,o.column)},this.moveCursorFileEnd=function(){var i=this.doc.getLength()-1,o=this.doc.getLine(i).length;this.moveCursorTo(i,o)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var i=this.lead.row,o=this.lead.column,d=this.doc.getLine(i),u=d.substring(o),h;this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(i,o,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if((h=this.session.nonTokenRe.exec(u))&&(o+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,u=d.substring(o)),o>=d.length){this.moveCursorTo(i,d.length),this.moveCursorRight(),i0&&this.moveCursorWordLeft();return}(f=this.session.tokenRe.exec(h))&&(o-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,o)},this.$shortWordEndIndex=function(i){var o,d=0,u,h=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,o=this.session.tokenRe.exec(i))d=this.session.tokenRe.lastIndex;else{for(;(u=i[d])&&h.test(u);)d++;if(d<1){for(f.lastIndex=0;(u=i[d])&&!f.test(u);)if(f.lastIndex=0,d++,h.test(u))if(d>2){d--;break}else{for(;(u=i[d])&&h.test(u);)d++;if(d>2)break}}}return f.lastIndex=0,d},this.moveCursorShortWordRight=function(){var i=this.lead.row,o=this.lead.column,d=this.doc.getLine(i),u=d.substring(o),h=this.session.getFoldAt(i,o,1);if(h)return this.moveCursorTo(h.end.row,h.end.column);if(o==d.length){var f=this.doc.getLength();do i++,u=this.doc.getLine(i);while(i0&&/^\s*$/.test(u));o=u.length,/\s+$/.test(u)||(u="")}var h=s.stringReverse(u),f=this.$shortWordEndIndex(h);return this.moveCursorTo(i,o-f)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(i,o){var d=this.session.documentToScreenPosition(this.lead.row,this.lead.column),u;o===0&&(i!==0&&(this.session.$bidiHandler.isBidiRow(d.row,this.lead.row)?(u=this.session.$bidiHandler.getPosLeft(d.column),d.column=Math.round(u/this.session.$bidiHandler.charWidths[0])):u=d.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?d.column=this.$desiredColumn:this.$desiredColumn=d.column);var h=this.session.screenToDocumentPosition(d.row+i,d.column,u);i!==0&&o===0&&h.row===this.lead.row&&h.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[h.row]&&(h.row>0||i>0)&&h.row++,this.moveCursorTo(h.row,h.column+o,o===0)},this.moveCursorToPosition=function(i){this.moveCursorTo(i.row,i.column)},this.moveCursorTo=function(i,o,d){var u=this.session.getFoldAt(i,o,1);u&&(i=u.start.row,o=u.start.column),this.$keepDesiredColumnOnChange=!0;var h=this.session.getLine(i);/[\uDC00-\uDFFF]/.test(h.charAt(o))&&h.charAt(o-1)&&(this.lead.row==i&&this.lead.column==o+1?o=o-1:o=o+1),this.lead.setPosition(i,o),this.$keepDesiredColumnOnChange=!1,d||(this.$desiredColumn=null)},this.moveCursorToScreen=function(i,o,d){var u=this.session.screenToDocumentPosition(i,o);this.moveCursorTo(u.row,u.column,d)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(i){this.setSelectionRange(i,i.cursor==i.start),this.$desiredColumn=i.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(i){var o=this.getRange();return i?(i.start.column=o.start.column,i.start.row=o.start.row,i.end.column=o.end.column,i.end.row=o.end.row):i=o,i.cursor=this.isBackwards()?i.start:i.end,i.desiredColumn=this.$desiredColumn,i},this.getRangeOfMovements=function(i){var o=this.getCursor();try{i(this);var d=this.getCursor();return l.fromPoints(o,d)}catch{return l.fromPoints(o,o)}finally{this.moveCursorToPosition(o)}},this.toJSON=function(){if(this.rangeCount)var i=this.ranges.map(function(o){var d=o.clone();return d.isBackwards=o.cursor==o.start,d});else{var i=this.getRange();i.isBackwards=this.isBackwards()}return i},this.fromJSON=function(i){if(i.start==null)if(this.rangeList){this.toSingleRange(i[0]);for(var o=i.length;o--;){var d=l.fromPoints(i[o].start,i[o].end);i[o].isBackwards&&(d.cursor=d.start),this.addRange(d,!0)}return}else i=i[0];this.rangeList&&this.toSingleRange(i),this.setSelectionRange(i,i.isBackwards)},this.isEqual=function(i){if((i.length||this.rangeCount)&&i.length!=this.rangeCount)return!1;if(!i.length||!this.ranges)return this.getRange().isEqual(i);for(var o=this.ranges.length;o--;)if(!this.ranges[o].isEqual(i[o]))return!1;return!0}}).call(a.prototype),t.Selection=a});ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(e,t,r){"use strict";var n=e("./config"),s=2e3,c=function(l){this.states=l,this.regExps={},this.matchMappings={};for(var a in this.states){for(var i=this.states[a],o=[],d=0,u=this.matchMappings[a]={defaultToken:"text"},h="g",f=[],g=0;g1?b.onMatch=this.$applyToken:b.onMatch=b.token),A>1&&(/\\\d/.test(b.regex)?x=b.regex.replace(/\\([0-9]+)/g,function(v,w){return"\\"+(parseInt(w,10)+d+1)}):(A=1,x=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&f.push(b)),u[d]=g,d+=A,o.push(x),b.onMatch||(b.onMatch=null)}}o.length||(u[0]=0,o.push("$")),f.forEach(function(v){v.splitRegex=this.createSplitterRegexp(v.regex,h)},this),this.regExps[a]=new RegExp("("+o.join(")|(")+")|($)",h)}};(function(){this.$setMaxTokenCount=function(l){s=l|0},this.$applyToken=function(l){var a=this.splitRegex.exec(l).slice(1),i=this.token.apply(this,a);if(typeof i=="string")return[{type:i,value:l}];for(var o=[],d=0,u=i.length;db){var C=l.substring(b,y-p.length);A.type==v?A.value+=C:(A.type&&g.push(A),A={type:v,value:C})}for(var D=0;Ds){for(x>2*l.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:l});b1&&i[0]!==o&&i.unshift("#tmp",o),{tokens:g,state:i.length?i:o}},this.reportError=n.reportError}).call(c.prototype),t.Tokenizer=c});ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t,r){"use strict";var n=e("../lib/lang"),s=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(a,i){if(!i){for(var o in a)this.$rules[o]=a[o];return}for(var o in a){for(var d=a[o],u=0;u=this.$rowTokens.length;){if(this.$row+=1,c||(c=this.$session.getLength()),this.$row>=c)return this.$row=c-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var c=this.$rowTokens,l=this.$tokenIndex,a=c[l].start;if(a!==void 0)return a;for(a=0;l>0;)l-=1,a+=c[l].value.length;return a},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var c=this.$rowTokens[this.$tokenIndex],l=this.getCurrentTokenColumn();return new n(this.$row,l,this.$row,l+c.value.length)}}).call(s.prototype),t.TokenIterator=s});ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,r){"use strict";var n=e("../../lib/oop"),s=e("../behaviour").Behaviour,c=e("../../token_iterator").TokenIterator,l=e("../../lib/lang"),a=["text","paren.rparen","punctuation.operator"],i=["text","paren.rparen","punctuation.operator","comment"],o,d={},u={'"':'"',"'":"'"},h=function(b){var x=-1;if(b.multiSelect&&(x=b.selection.index,d.rangeCount!=b.multiSelect.rangeCount&&(d={rangeCount:b.multiSelect.rangeCount})),d[x])return o=d[x];o=d[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(b,x,A,v){var w=b.end.row-b.start.row;return{text:A+x+v,selection:[0,b.start.column+1,w,b.end.column+(w?0:1)]}},g=function(b){this.add("braces","insertion",function(x,A,v,w,p){var y=v.getCursorPosition(),C=w.doc.getLine(y.row);if(p=="{"){h(v);var D=v.getSelectionRange(),m=w.doc.getTextRange(D);if(m!==""&&m!=="{"&&v.getWrapBehavioursEnabled())return f(D,m,"{","}");if(g.isSaneInsertion(v,w))return/[\]\}\)]/.test(C[y.column])||v.inMultiSelectMode||b&&b.braces?(g.recordAutoInsert(v,w,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(v,w,"{"),{text:"{",selection:[1,1]})}else if(p=="}"){h(v);var E=C.substring(y.column,y.column+1);if(E=="}"){var k=w.$findOpeningBracket("}",{column:y.column+1,row:y.row});if(k!==null&&g.isAutoInsertedClosing(y,C,p))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(p==` `||p==`\r -`){f(v);var S="";g.isMaybeInsertedClosing(y,C)&&(S=l.stringRepeat("}",o.maybeInsertedBrackets),g.clearMaybeInsertedClosing());var E=C.substring(y.column,y.column+1);if(E==="}"){var F=w.findMatchingBracket({row:y.row,column:y.column+1},"}");if(!F)return null;var _=this.$getIndent(w.getLine(F.row))}else if(S)var _=this.$getIndent(C);else{g.clearMaybeInsertedClosing();return}var T=_+w.getTabString();return{text:` +`){h(v);var S="";g.isMaybeInsertedClosing(y,C)&&(S=l.stringRepeat("}",o.maybeInsertedBrackets),g.clearMaybeInsertedClosing());var E=C.substring(y.column,y.column+1);if(E==="}"){var F=w.findMatchingBracket({row:y.row,column:y.column+1},"}");if(!F)return null;var _=this.$getIndent(w.getLine(F.row))}else if(S)var _=this.$getIndent(C);else{g.clearMaybeInsertedClosing();return}var T=_+w.getTabString();return{text:` `+T+` -`+_+S,selection:[1,T.length,1,T.length]}}else g.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,A,v,w,p){var y=w.doc.getTextRange(p);if(!p.isMultiLine()&&y=="{"){f(v);var C=w.doc.getLine(p.start.row),D=C.substring(p.end.column,p.end.column+1);if(D=="}")return p.end.column++,p;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,A,v,w,p){if(p=="("){f(v);var y=v.getSelectionRange(),C=w.doc.getTextRange(y);if(C!==""&&v.getWrapBehavioursEnabled())return h(y,C,"(",")");if(g.isSaneInsertion(v,w))return g.recordAutoInsert(v,w,")"),{text:"()",selection:[1,1]}}else if(p==")"){f(v);var D=v.getCursorPosition(),m=w.doc.getLine(D.row),E=m.substring(D.column,D.column+1);if(E==")"){var k=w.$findOpeningBracket(")",{column:D.column+1,row:D.row});if(k!==null&&g.isAutoInsertedClosing(D,m,p))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,A,v,w,p){var y=w.doc.getTextRange(p);if(!p.isMultiLine()&&y=="("){f(v);var C=w.doc.getLine(p.start.row),D=C.substring(p.start.column+1,p.start.column+2);if(D==")")return p.end.column++,p}}),this.add("brackets","insertion",function(x,A,v,w,p){if(p=="["){f(v);var y=v.getSelectionRange(),C=w.doc.getTextRange(y);if(C!==""&&v.getWrapBehavioursEnabled())return h(y,C,"[","]");if(g.isSaneInsertion(v,w))return g.recordAutoInsert(v,w,"]"),{text:"[]",selection:[1,1]}}else if(p=="]"){f(v);var D=v.getCursorPosition(),m=w.doc.getLine(D.row),E=m.substring(D.column,D.column+1);if(E=="]"){var k=w.$findOpeningBracket("]",{column:D.column+1,row:D.row});if(k!==null&&g.isAutoInsertedClosing(D,m,p))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,A,v,w,p){var y=w.doc.getTextRange(p);if(!p.isMultiLine()&&y=="["){f(v);var C=w.doc.getLine(p.start.row),D=C.substring(p.start.column+1,p.start.column+2);if(D=="]")return p.end.column++,p}}),this.add("string_dquotes","insertion",function(x,A,v,w,p){var y=w.$mode.$quotes||u;if(p.length==1&&y[p]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(p)!=-1)return;f(v);var C=p,D=v.getSelectionRange(),m=w.doc.getTextRange(D);if(m!==""&&(m.length!=1||!y[m])&&v.getWrapBehavioursEnabled())return h(D,m,C,C);if(!m){var E=v.getCursorPosition(),k=w.doc.getLine(E.row),S=k.substring(E.column-1,E.column),F=k.substring(E.column,E.column+1),_=w.getTokenAt(E.row,E.column),T=w.getTokenAt(E.row,E.column+1);if(S=="\\"&&_&&/escape/.test(_.type))return null;var B=_&&/string|escape/.test(_.type),N=!T||/string|escape/.test(T.type),W;if(F==C)W=B!==N,W&&/string\.end/.test(T.type)&&(W=!1);else{if(B&&!N||B&&N)return null;var H=w.$mode.tokenRe;H.lastIndex=0;var R=H.test(S);H.lastIndex=0;var z=H.test(S);if(R||z||F&&!/[\s;,.})\]\\]/.test(F))return null;W=!0}return{text:W?C+C:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,A,v,w,p){var y=w.doc.getTextRange(p);if(!p.isMultiLine()&&(y=='"'||y=="'")){f(v);var C=w.doc.getLine(p.start.row),D=C.substring(p.start.column+1,p.start.column+2);if(D==y)return p.end.column++,p}})};g.isSaneInsertion=function(b,x){var A=b.getCursorPosition(),v=new c(x,A.row,A.column);if(!this.$matchTokenType(v.getCurrentToken()||"text",a)){var w=new c(x,A.row,A.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",a))return!1}return v.stepForward(),v.getCurrentTokenRow()!==A.row||this.$matchTokenType(v.getCurrentToken()||"text",i)},g.$matchTokenType=function(b,x){return x.indexOf(b.type||b)>-1},g.recordAutoInsert=function(b,x,A){var v=b.getCursorPosition(),w=x.doc.getLine(v.row);this.isAutoInsertedClosing(v,w,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=v.row,o.autoInsertedLineEnd=A+w.substr(v.column),o.autoInsertedBrackets++},g.recordMaybeInsert=function(b,x,A){var v=b.getCursorPosition(),w=x.doc.getLine(v.row);this.isMaybeInsertedClosing(v,w)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=v.row,o.maybeInsertedLineStart=w.substr(0,v.column)+A,o.maybeInsertedLineEnd=w.substr(v.column),o.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(b,x,A){return o.autoInsertedBrackets>0&&b.row===o.autoInsertedRow&&A===o.autoInsertedLineEnd[0]&&x.substr(b.column)===o.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(b,x){return o.maybeInsertedBrackets>0&&b.row===o.maybeInsertedRow&&x.substr(b.column)===o.maybeInsertedLineEnd&&x.substr(0,b.column)==o.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},n.inherits(g,s),t.CstyleBehaviour=g});ace.define("ace/unicode",["require","exports","module"],function(e,t,r){"use strict";t.packages={},n({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"});function n(s){var c=/\w{4}/g;for(var l in s)t.packages[l]=s[l].replace(c,"\\u$&")}});ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,t,r){"use strict";var n=e("../tokenizer").Tokenizer,s=e("./text_highlight_rules").TextHighlightRules,c=e("./behaviour/cstyle").CstyleBehaviour,l=e("../unicode"),a=e("../lib/lang"),i=e("../token_iterator").TokenIterator,o=e("../range").Range,d=function(){this.HighlightRules=s};(function(){this.$defaultBehaviour=new c,this.tokenRe=new RegExp("^["+l.packages.L+l.packages.Mn+l.packages.Mc+l.packages.Nd+l.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+l.packages.L+l.packages.Mn+l.packages.Mc+l.packages.Nd+l.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new n(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(u,f,h,g){var b=f.doc,x=!0,A=!0,v=1/0,w=f.getTabSize(),p=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var D=this.lineCommentStart.map(a.escapeRegExp).join("|"),y=this.lineCommentStart[0];else var D=a.escapeRegExp(this.lineCommentStart),y=this.lineCommentStart;D=new RegExp("^(\\s*)(?:"+D+") ?"),p=f.getUseSoftTabs();var k=function(R,z){var O=R.match(D);if(O){var M=O[1].length,I=O[0].length;!_(R,M,I)&&O[0][I-1]==" "&&I--,b.removeInLine(z,M,I)}},F=y+" ",E=function(R,z){(!x||/\S/.test(R))&&(_(R,v,v)?b.insertInLine({row:z,column:v},F):b.insertInLine({row:z,column:v},y))},S=function(R,z){return D.test(R)},_=function(R,z,O){for(var M=0;z--&&R.charAt(z)==" ";)M++;if(M%w!=0)return!1;for(var M=0;R.charAt(O++)==" ";)M++;return w>2?M%w!=w-1:M%w==0}}else{if(!this.blockComment)return!1;var y=this.blockComment.start,C=this.blockComment.end,D=new RegExp("^(\\s*)(?:"+a.escapeRegExp(y)+")"),m=new RegExp("(?:"+a.escapeRegExp(C)+")\\s*$"),E=function(N,W){S(N,W)||(!x||/\S/.test(N))&&(b.insertInLine({row:W,column:N.length},C),b.insertInLine({row:W,column:v},y))},k=function(N,W){var H;(H=N.match(m))&&b.removeInLine(W,N.length-H[0].length,N.length),(H=N.match(D))&&b.removeInLine(W,H[1].length,H[0].length)},S=function(N,W){if(D.test(N))return!0;for(var H=f.getTokens(W),R=0;RN.length&&(B=N.length)}),v==1/0&&(v=B,x=!1,A=!1),p&&v%w!=0&&(v=Math.floor(v/w)*w),T(A?k:E)},this.toggleBlockComment=function(u,f,h,g){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var x=new i(f,g.row,g.column),A=x.getCurrentToken(),v=f.selection,w=f.selection.toOrientedRange(),p,y;if(A&&/comment/.test(A.type)){for(var C,D;A&&/comment/.test(A.type);){var m=A.value.indexOf(b.start);if(m!=-1){var E=x.getCurrentTokenRow(),k=x.getCurrentTokenColumn()+m;C=new o(E,k,E,k+b.start.length);break}A=x.stepBackward()}for(var x=new i(f,g.row,g.column),A=x.getCurrentToken();A&&/comment/.test(A.type);){var m=A.value.indexOf(b.end);if(m!=-1){var E=x.getCurrentTokenRow(),k=x.getCurrentTokenColumn()+m;D=new o(E,k,E,k+b.end.length);break}A=x.stepForward()}D&&f.remove(D),C&&(f.remove(C),p=C.start.row,y=-b.start.length)}else y=b.start.length,p=h.start.row,f.insert(h.end,b.end),f.insert(h.start,b.start);w.start.row==p&&(w.start.column+=y),w.end.row==p&&(w.end.column+=y),f.selection.fromOrientedRange(w)}},this.getNextLineIndent=function(u,f,h){return this.$getIndent(f)},this.checkOutdent=function(u,f,h){return!1},this.autoOutdent=function(u,f,h){},this.$getIndent=function(u){return u.match(/^\s*/)[0]},this.createWorker=function(u){return null},this.createModeDelegates=function(u){this.$embeds=[],this.$modes={};for(var f in u)u[f]&&(this.$embeds.push(f),this.$modes[f]=new u[f]);for(var h=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],f=0;f=0&&a.row=0&&a.column<=l[a.row].length}function c(l,a){a.action!="insert"&&a.action!="remove"&&n(a,"delta.action must be 'insert' or 'remove'"),a.lines instanceof Array||n(a,"delta.lines must be an Array"),(!a.start||!a.end)&&n(a,"delta.start/end must be an present");var i=a.start;s(l,a.start)||n(a,"delta.start must be contained in document");var o=a.end;a.action=="remove"&&!s(l,o)&&n(a,"delta.end must contained in document for 'remove' actions");var d=o.row-i.row,u=o.column-(d==0?i.column:0);(d!=a.lines.length-1||a.lines[d].length!=u)&&n(a,"delta.range must match delta lines")}t.applyDelta=function(l,a,i){var o=a.start.row,d=a.start.column,u=l[o]||"";switch(a.action){case"insert":var f=a.lines;if(f.length===1)l[o]=u.substring(0,d)+a.lines[0]+u.substring(d);else{var h=[o,1].concat(a.lines);l.splice.apply(l,h),l[o]=u.substring(0,d)+l[o],l[o+a.lines.length-1]+=u.substring(d)}break;case"remove":var g=a.end.column,b=a.end.row;o===b?l[o]=u.substring(0,d)+u.substring(g):l.splice(o,b-o+1,u.substring(0,d)+l[b].substring(g));break}}});ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,r){"use strict";var n=e("./lib/oop"),s=e("./lib/event_emitter").EventEmitter,c=t.Anchor=function(l,a,i){this.$onChange=this.onChange.bind(this),this.attach(l),typeof i>"u"?this.setPosition(a.row,a.column):this.setPosition(a,i)};(function(){n.implement(this,s),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var o=a(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(o.row,o.column,!0)}};function l(i,o,d){var u=d?i.column<=o.column:i.column=this.document.getLength()?(d.row=Math.max(0,this.document.getLength()-1),d.column=this.document.getLine(d.row).length):i<0?(d.row=0,d.column=0):(d.row=i,d.column=Math.min(this.document.getLine(d.row).length,Math.max(0,o))),o<0&&(d.column=0),d}}).call(c.prototype)});ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,r){"use strict";var n=e("./lib/oop"),s=e("./apply_delta").applyDelta,c=e("./lib/event_emitter").EventEmitter,l=e("./range").Range,a=e("./anchor").Anchor,i=function(o){this.$lines=[""],o.length===0?this.$lines=[""]:Array.isArray(o)?this.insertMergedLines({row:0,column:0},o):this.insert({row:0,column:0},o)};(function(){n.implement(this,c),this.setValue=function(o){var d=this.getLength()-1;this.remove(new l(0,0,d,this.getLine(d).length)),this.insert({row:0,column:0},o)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(o,d){return new a(this,o,d)},"aaa".split(/a/).length===0?this.$split=function(o){return o.replace(/\r\n|\r/g,` +`+_+S,selection:[1,T.length,1,T.length]}}else g.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,A,v,w,p){var y=w.doc.getTextRange(p);if(!p.isMultiLine()&&y=="{"){h(v);var C=w.doc.getLine(p.start.row),D=C.substring(p.end.column,p.end.column+1);if(D=="}")return p.end.column++,p;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,A,v,w,p){if(p=="("){h(v);var y=v.getSelectionRange(),C=w.doc.getTextRange(y);if(C!==""&&v.getWrapBehavioursEnabled())return f(y,C,"(",")");if(g.isSaneInsertion(v,w))return g.recordAutoInsert(v,w,")"),{text:"()",selection:[1,1]}}else if(p==")"){h(v);var D=v.getCursorPosition(),m=w.doc.getLine(D.row),E=m.substring(D.column,D.column+1);if(E==")"){var k=w.$findOpeningBracket(")",{column:D.column+1,row:D.row});if(k!==null&&g.isAutoInsertedClosing(D,m,p))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,A,v,w,p){var y=w.doc.getTextRange(p);if(!p.isMultiLine()&&y=="("){h(v);var C=w.doc.getLine(p.start.row),D=C.substring(p.start.column+1,p.start.column+2);if(D==")")return p.end.column++,p}}),this.add("brackets","insertion",function(x,A,v,w,p){if(p=="["){h(v);var y=v.getSelectionRange(),C=w.doc.getTextRange(y);if(C!==""&&v.getWrapBehavioursEnabled())return f(y,C,"[","]");if(g.isSaneInsertion(v,w))return g.recordAutoInsert(v,w,"]"),{text:"[]",selection:[1,1]}}else if(p=="]"){h(v);var D=v.getCursorPosition(),m=w.doc.getLine(D.row),E=m.substring(D.column,D.column+1);if(E=="]"){var k=w.$findOpeningBracket("]",{column:D.column+1,row:D.row});if(k!==null&&g.isAutoInsertedClosing(D,m,p))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,A,v,w,p){var y=w.doc.getTextRange(p);if(!p.isMultiLine()&&y=="["){h(v);var C=w.doc.getLine(p.start.row),D=C.substring(p.start.column+1,p.start.column+2);if(D=="]")return p.end.column++,p}}),this.add("string_dquotes","insertion",function(x,A,v,w,p){var y=w.$mode.$quotes||u;if(p.length==1&&y[p]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(p)!=-1)return;h(v);var C=p,D=v.getSelectionRange(),m=w.doc.getTextRange(D);if(m!==""&&(m.length!=1||!y[m])&&v.getWrapBehavioursEnabled())return f(D,m,C,C);if(!m){var E=v.getCursorPosition(),k=w.doc.getLine(E.row),S=k.substring(E.column-1,E.column),F=k.substring(E.column,E.column+1),_=w.getTokenAt(E.row,E.column),T=w.getTokenAt(E.row,E.column+1);if(S=="\\"&&_&&/escape/.test(_.type))return null;var O=_&&/string|escape/.test(_.type),B=!T||/string|escape/.test(T.type),W;if(F==C)W=O!==B,W&&/string\.end/.test(T.type)&&(W=!1);else{if(O&&!B||O&&B)return null;var H=w.$mode.tokenRe;H.lastIndex=0;var R=H.test(S);H.lastIndex=0;var z=H.test(S);if(R||z||F&&!/[\s;,.})\]\\]/.test(F))return null;W=!0}return{text:W?C+C:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,A,v,w,p){var y=w.doc.getTextRange(p);if(!p.isMultiLine()&&(y=='"'||y=="'")){h(v);var C=w.doc.getLine(p.start.row),D=C.substring(p.start.column+1,p.start.column+2);if(D==y)return p.end.column++,p}})};g.isSaneInsertion=function(b,x){var A=b.getCursorPosition(),v=new c(x,A.row,A.column);if(!this.$matchTokenType(v.getCurrentToken()||"text",a)){var w=new c(x,A.row,A.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",a))return!1}return v.stepForward(),v.getCurrentTokenRow()!==A.row||this.$matchTokenType(v.getCurrentToken()||"text",i)},g.$matchTokenType=function(b,x){return x.indexOf(b.type||b)>-1},g.recordAutoInsert=function(b,x,A){var v=b.getCursorPosition(),w=x.doc.getLine(v.row);this.isAutoInsertedClosing(v,w,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=v.row,o.autoInsertedLineEnd=A+w.substr(v.column),o.autoInsertedBrackets++},g.recordMaybeInsert=function(b,x,A){var v=b.getCursorPosition(),w=x.doc.getLine(v.row);this.isMaybeInsertedClosing(v,w)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=v.row,o.maybeInsertedLineStart=w.substr(0,v.column)+A,o.maybeInsertedLineEnd=w.substr(v.column),o.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(b,x,A){return o.autoInsertedBrackets>0&&b.row===o.autoInsertedRow&&A===o.autoInsertedLineEnd[0]&&x.substr(b.column)===o.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(b,x){return o.maybeInsertedBrackets>0&&b.row===o.maybeInsertedRow&&x.substr(b.column)===o.maybeInsertedLineEnd&&x.substr(0,b.column)==o.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},n.inherits(g,s),t.CstyleBehaviour=g});ace.define("ace/unicode",["require","exports","module"],function(e,t,r){"use strict";t.packages={},n({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"});function n(s){var c=/\w{4}/g;for(var l in s)t.packages[l]=s[l].replace(c,"\\u$&")}});ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,t,r){"use strict";var n=e("../tokenizer").Tokenizer,s=e("./text_highlight_rules").TextHighlightRules,c=e("./behaviour/cstyle").CstyleBehaviour,l=e("../unicode"),a=e("../lib/lang"),i=e("../token_iterator").TokenIterator,o=e("../range").Range,d=function(){this.HighlightRules=s};(function(){this.$defaultBehaviour=new c,this.tokenRe=new RegExp("^["+l.packages.L+l.packages.Mn+l.packages.Mc+l.packages.Nd+l.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+l.packages.L+l.packages.Mn+l.packages.Mc+l.packages.Nd+l.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new n(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(u,h,f,g){var b=h.doc,x=!0,A=!0,v=1/0,w=h.getTabSize(),p=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var D=this.lineCommentStart.map(a.escapeRegExp).join("|"),y=this.lineCommentStart[0];else var D=a.escapeRegExp(this.lineCommentStart),y=this.lineCommentStart;D=new RegExp("^(\\s*)(?:"+D+") ?"),p=h.getUseSoftTabs();var k=function(R,z){var N=R.match(D);if(N){var M=N[1].length,I=N[0].length;!_(R,M,I)&&N[0][I-1]==" "&&I--,b.removeInLine(z,M,I)}},F=y+" ",E=function(R,z){(!x||/\S/.test(R))&&(_(R,v,v)?b.insertInLine({row:z,column:v},F):b.insertInLine({row:z,column:v},y))},S=function(R,z){return D.test(R)},_=function(R,z,N){for(var M=0;z--&&R.charAt(z)==" ";)M++;if(M%w!=0)return!1;for(var M=0;R.charAt(N++)==" ";)M++;return w>2?M%w!=w-1:M%w==0}}else{if(!this.blockComment)return!1;var y=this.blockComment.start,C=this.blockComment.end,D=new RegExp("^(\\s*)(?:"+a.escapeRegExp(y)+")"),m=new RegExp("(?:"+a.escapeRegExp(C)+")\\s*$"),E=function(B,W){S(B,W)||(!x||/\S/.test(B))&&(b.insertInLine({row:W,column:B.length},C),b.insertInLine({row:W,column:v},y))},k=function(B,W){var H;(H=B.match(m))&&b.removeInLine(W,B.length-H[0].length,B.length),(H=B.match(D))&&b.removeInLine(W,H[1].length,H[0].length)},S=function(B,W){if(D.test(B))return!0;for(var H=h.getTokens(W),R=0;RB.length&&(O=B.length)}),v==1/0&&(v=O,x=!1,A=!1),p&&v%w!=0&&(v=Math.floor(v/w)*w),T(A?k:E)},this.toggleBlockComment=function(u,h,f,g){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var x=new i(h,g.row,g.column),A=x.getCurrentToken(),v=h.selection,w=h.selection.toOrientedRange(),p,y;if(A&&/comment/.test(A.type)){for(var C,D;A&&/comment/.test(A.type);){var m=A.value.indexOf(b.start);if(m!=-1){var E=x.getCurrentTokenRow(),k=x.getCurrentTokenColumn()+m;C=new o(E,k,E,k+b.start.length);break}A=x.stepBackward()}for(var x=new i(h,g.row,g.column),A=x.getCurrentToken();A&&/comment/.test(A.type);){var m=A.value.indexOf(b.end);if(m!=-1){var E=x.getCurrentTokenRow(),k=x.getCurrentTokenColumn()+m;D=new o(E,k,E,k+b.end.length);break}A=x.stepForward()}D&&h.remove(D),C&&(h.remove(C),p=C.start.row,y=-b.start.length)}else y=b.start.length,p=f.start.row,h.insert(f.end,b.end),h.insert(f.start,b.start);w.start.row==p&&(w.start.column+=y),w.end.row==p&&(w.end.column+=y),h.selection.fromOrientedRange(w)}},this.getNextLineIndent=function(u,h,f){return this.$getIndent(h)},this.checkOutdent=function(u,h,f){return!1},this.autoOutdent=function(u,h,f){},this.$getIndent=function(u){return u.match(/^\s*/)[0]},this.createWorker=function(u){return null},this.createModeDelegates=function(u){this.$embeds=[],this.$modes={};for(var h in u)u[h]&&(this.$embeds.push(h),this.$modes[h]=new u[h]);for(var f=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],h=0;h=0&&a.row=0&&a.column<=l[a.row].length}function c(l,a){a.action!="insert"&&a.action!="remove"&&n(a,"delta.action must be 'insert' or 'remove'"),a.lines instanceof Array||n(a,"delta.lines must be an Array"),(!a.start||!a.end)&&n(a,"delta.start/end must be an present");var i=a.start;s(l,a.start)||n(a,"delta.start must be contained in document");var o=a.end;a.action=="remove"&&!s(l,o)&&n(a,"delta.end must contained in document for 'remove' actions");var d=o.row-i.row,u=o.column-(d==0?i.column:0);(d!=a.lines.length-1||a.lines[d].length!=u)&&n(a,"delta.range must match delta lines")}t.applyDelta=function(l,a,i){var o=a.start.row,d=a.start.column,u=l[o]||"";switch(a.action){case"insert":var h=a.lines;if(h.length===1)l[o]=u.substring(0,d)+a.lines[0]+u.substring(d);else{var f=[o,1].concat(a.lines);l.splice.apply(l,f),l[o]=u.substring(0,d)+l[o],l[o+a.lines.length-1]+=u.substring(d)}break;case"remove":var g=a.end.column,b=a.end.row;o===b?l[o]=u.substring(0,d)+u.substring(g):l.splice(o,b-o+1,u.substring(0,d)+l[b].substring(g));break}}});ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,r){"use strict";var n=e("./lib/oop"),s=e("./lib/event_emitter").EventEmitter,c=t.Anchor=function(l,a,i){this.$onChange=this.onChange.bind(this),this.attach(l),typeof i>"u"?this.setPosition(a.row,a.column):this.setPosition(a,i)};(function(){n.implement(this,s),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var o=a(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(o.row,o.column,!0)}};function l(i,o,d){var u=d?i.column<=o.column:i.column=this.document.getLength()?(d.row=Math.max(0,this.document.getLength()-1),d.column=this.document.getLine(d.row).length):i<0?(d.row=0,d.column=0):(d.row=i,d.column=Math.min(this.document.getLine(d.row).length,Math.max(0,o))),o<0&&(d.column=0),d}}).call(c.prototype)});ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,r){"use strict";var n=e("./lib/oop"),s=e("./apply_delta").applyDelta,c=e("./lib/event_emitter").EventEmitter,l=e("./range").Range,a=e("./anchor").Anchor,i=function(o){this.$lines=[""],o.length===0?this.$lines=[""]:Array.isArray(o)?this.insertMergedLines({row:0,column:0},o):this.insert({row:0,column:0},o)};(function(){n.implement(this,c),this.setValue=function(o){var d=this.getLength()-1;this.remove(new l(0,0,d,this.getLine(d).length)),this.insert({row:0,column:0},o)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(o,d){return new a(this,o,d)},"aaa".split(/a/).length===0?this.$split=function(o){return o.replace(/\r\n|\r/g,` `).split(` `)}:this.$split=function(o){return o.split(/\r\n|\r|\n/)},this.$detectNewLine=function(o){var d=o.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=d?d[1]:` `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r @@ -17,30 +17,30 @@ var au=Object.create;var Xr=Object.defineProperty,lu=Object.defineProperties,cu= `;default:return this.$autoNewLine||` `}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(o){this.$newLineMode!==o&&(this.$newLineMode=o,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(o){return o==`\r `||o=="\r"||o==` -`},this.getLine=function(o){return this.$lines[o]||""},this.getLines=function(o,d){return this.$lines.slice(o,d+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(o){return this.getLinesForRange(o).join(this.getNewLineCharacter())},this.getLinesForRange=function(o){var d;if(o.start.row===o.end.row)d=[this.getLine(o.start.row).substring(o.start.column,o.end.column)];else{d=this.getLines(o.start.row,o.end.row),d[0]=(d[0]||"").substring(o.start.column);var u=d.length-1;o.end.row-o.start.row==u&&(d[u]=d[u].substring(0,o.end.column))}return d},this.insertLines=function(o,d){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(o,d)},this.removeLines=function(o,d){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(o,d)},this.insertNewLine=function(o){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(o,["",""])},this.insert=function(o,d){return this.getLength()<=1&&this.$detectNewLine(d),this.insertMergedLines(o,this.$split(d))},this.insertInLine=function(o,d){var u=this.clippedPos(o.row,o.column),f=this.pos(o.row,o.column+d.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[d]},!0),this.clonePos(f)},this.clippedPos=function(o,d){var u=this.getLength();o===void 0?o=u:o<0?o=0:o>=u&&(o=u-1,d=void 0);var f=this.getLine(o);return d==null&&(d=f.length),d=Math.min(Math.max(d,0),f.length),{row:o,column:d}},this.clonePos=function(o){return{row:o.row,column:o.column}},this.pos=function(o,d){return{row:o,column:d}},this.$clipPosition=function(o){var d=this.getLength();return o.row>=d?(o.row=Math.max(0,d-1),o.column=this.getLine(d-1).length):(o.row=Math.max(0,o.row),o.column=Math.min(Math.max(o.column,0),this.getLine(o.row).length)),o},this.insertFullLines=function(o,d){o=Math.min(Math.max(o,0),this.getLength());var u=0;o0,f=d=0&&this.applyDelta({start:this.pos(o,this.getLine(o).length),end:this.pos(o+1,0),action:"remove",lines:["",""]})},this.replace=function(o,d){if(o instanceof l||(o=l.fromPoints(o.start,o.end)),d.length===0&&o.isEmpty())return o.start;if(d==this.getTextRange(o))return o.end;this.remove(o);var u;return d?u=this.insert(o.start,d):u=o.start,u},this.applyDeltas=function(o){for(var d=0;d=0;d--)this.revertDelta(o[d])},this.applyDelta=function(o,d){var u=o.action=="insert";(u?o.lines.length<=1&&!o.lines[0]:!l.comparePoints(o.start,o.end))||(u&&o.lines.length>2e4&&this.$splitAndapplyLargeDelta(o,2e4),s(this.$lines,o,d),this._signal("change",o))},this.$splitAndapplyLargeDelta=function(o,d){var u=o.lines,f=u.length,h=o.start.row,g=o.start.column,b=0,x=0;do{b=x,x+=d-1;var A=u.slice(b,x);if(x>f){o.lines=A,o.start.row=h+b,o.start.column=g;break}A.push(""),this.applyDelta({start:this.pos(h+b,g),end:this.pos(h+x,g=0),action:o.action,lines:A},!0)}while(!0)},this.revertDelta=function(o){this.applyDelta({start:this.clonePos(o.start),end:this.clonePos(o.end),action:o.action=="insert"?"remove":"insert",lines:o.lines.slice()})},this.indexToPosition=function(o,d){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,h=d||0,g=u.length;h20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=d,u==-1&&(u=d),h<=u&&i.fireUpdateEvent(h,u)}}};(function(){n.implement(this,s),this.setTokenizer=function(l){this.tokenizer=l,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(l){this.doc=l,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(l,a){var i={first:l,last:a};this._signal("update",{data:i})},this.start=function(l){this.currentLine=Math.min(l||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(l){var a=l.start.row,i=l.end.row-a;if(i===0)this.lines[a]=null;else if(l.action=="remove")this.lines.splice(a,i+1,null),this.states.splice(a,i+1,null);else{var o=Array(i+1);o.unshift(a,1),this.lines.splice.apply(this.lines,o),this.states.splice.apply(this.states,o)}this.currentLine=Math.min(a,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(l){return this.lines[l]||this.$tokenizeRow(l)},this.getState=function(l){return this.currentLine==l&&this.$tokenizeRow(l),this.states[l]||"start"},this.$tokenizeRow=function(l){var a=this.doc.getLine(l),i=this.states[l-1],o=this.tokenizer.getLineTokens(a,i,l);return this.states[l]+""!=o.state+""?(this.states[l]=o.state,this.lines[l+1]=null,this.currentLine>l+1&&(this.currentLine=l+1)):this.currentLine==l&&(this.currentLine=l+1),this.lines[l]=o.tokens}}).call(c.prototype),t.BackgroundTokenizer=c});ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,r){"use strict";var n=e("./lib/lang"),s=e("./lib/oop"),c=e("./range").Range,l=function(a,i,o){this.setRegexp(a),this.clazz=i,this.type=o||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(a){this.regExp+""!=a+""&&(this.regExp=a,this.cache=[])},this.update=function(a,i,o,d){if(this.regExp)for(var u=d.firstRow,f=d.lastRow,h=u;h<=f;h++){var g=this.cache[h];g==null&&(g=n.getMatchOffsets(o.getLine(h),this.regExp),g.length>this.MAX_RANGES&&(g=g.slice(0,this.MAX_RANGES)),g=g.map(function(x){return new c(h,x.offset,h,x.offset+x.length)}),this.cache[h]=g.length?g:"");for(var b=g.length;b--;)i.drawSingleLineMarker(a,g[b].toScreenRange(o),this.clazz,d)}}}).call(l.prototype),t.SearchHighlight=l});ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,r){"use strict";var n=e("../range").Range;function s(c,l){this.foldData=c,Array.isArray(l)?this.folds=l:l=this.folds=[l];var a=l[l.length-1];this.range=new n(l[0].start.row,l[0].start.column,a.end.row,a.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(i){i.setFoldLine(this)},this)}(function(){this.shiftRow=function(c){this.start.row+=c,this.end.row+=c,this.folds.forEach(function(l){l.start.row+=c,l.end.row+=c})},this.addFold=function(c){if(c.sameRow){if(c.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(c),this.folds.sort(function(l,a){return-l.range.compareEnd(a.start.row,a.start.column)}),this.range.compareEnd(c.start.row,c.start.column)>0?(this.end.row=c.end.row,this.end.column=c.end.column):this.range.compareStart(c.end.row,c.end.column)<0&&(this.start.row=c.start.row,this.start.column=c.start.column)}else if(c.start.row==this.end.row)this.folds.push(c),this.end.row=c.end.row,this.end.column=c.end.column;else if(c.end.row==this.start.row)this.folds.unshift(c),this.start.row=c.start.row,this.start.column=c.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");c.foldLine=this},this.containsRow=function(c){return c>=this.start.row&&c<=this.end.row},this.walk=function(c,l,a){var i=0,o=this.folds,d,u,f,h=!0;l==null&&(l=this.end.row,a=this.end.column);for(var g=0;g0)){var h=s(l,u.start);return f===0?a&&h!==0?-d-2:d:h>0||h===0&&!a?d:-d-1}}return-d-1},this.add=function(l){var a=!l.isEmpty(),i=this.pointIndex(l.start,a);i<0&&(i=-i-1);var o=this.pointIndex(l.end,a,i);return o<0?o=-o-1:o++,this.ranges.splice(i,o-i,l)},this.addList=function(l){for(var a=[],i=l.length;i--;)a.push.apply(a,this.add(l[i]));return a},this.substractPoint=function(l){var a=this.pointIndex(l);if(a>=0)return this.ranges.splice(a,1)},this.merge=function(){var l=[],a=this.ranges;a=a.sort(function(f,h){return s(f.start,h.start)});for(var i=a[0],o,d=1;d=0},this.containsPoint=function(l){return this.pointIndex(l)>=0},this.rangeAtPoint=function(l){var a=this.pointIndex(l);if(a>=0)return this.ranges[a]},this.clipRows=function(l,a){var i=this.ranges;if(i[0].start.row>a||i[i.length-1].start.rowo)break;if(x.start.row==o&&x.start.column>=a.column&&(x.start.column==a.column&&this.$insertRight||(x.start.column+=f,x.start.row+=u)),x.end.row==o&&x.end.column>=a.column){if(x.end.column==a.column&&this.$insertRight)continue;x.end.column==a.column&&f>0&&gx.start.column&&x.end.column==h[g+1].start.column&&(x.end.column-=f),x.end.column+=f,x.end.row+=u}}}if(u!=0&&g=i)return f;if(f.end.row>i)return null}return null},this.getNextFoldLine=function(i,o){var d=this.$foldData,u=0;for(o&&(u=d.indexOf(o)),u==-1&&(u=0),u;u=i)return f}return null},this.getFoldedRowCount=function(i,o){for(var d=this.$foldData,u=o-i+1,f=0;f=o){b=i?u-=o-b:u=0);break}else g>=i&&(b>=i?u-=g-b:u-=g-i+1)}return u},this.$addFoldLine=function(i){return this.$foldData.push(i),this.$foldData.sort(function(o,d){return o.start.row-d.start.row}),i},this.addFold=function(i,o){var d=this.$foldData,u=!1,f;i instanceof c?f=i:(f=new c(o,i),f.collapseChildren=o.collapseChildren),this.$clipRangeToDocument(f.range);var h=f.start.row,g=f.start.column,b=f.end.row,x=f.end.column;if(!(h0&&(this.removeFolds(w),w.forEach(function(D){f.addSubFold(D)}));for(var p=0;p0&&this.foldAll(i.start.row+1,i.end.row,i.collapseChildren-1),i.subFolds=[]},this.expandFolds=function(i){i.forEach(function(o){this.expandFold(o)},this)},this.unfold=function(i,o){var d,u;if(i==null?(d=new n(0,0,this.getLength(),0),o=!0):typeof i=="number"?d=new n(i,0,i,this.getLine(i).length):"row"in i?d=n.fromPoints(i,i):d=i,u=this.getFoldsInRangeList(d),o)this.removeFolds(u);else for(var f=u;f.length;)this.expandFolds(f),f=this.getFoldsInRangeList(d);if(u.length)return u},this.isRowFolded=function(i,o){return!!this.getFoldLine(i,o)},this.getRowFoldEnd=function(i,o){var d=this.getFoldLine(i,o);return d?d.end.row:i},this.getRowFoldStart=function(i,o){var d=this.getFoldLine(i,o);return d?d.start.row:i},this.getFoldDisplayLine=function(i,o,d,u,f){u==null&&(u=i.start.row),f==null&&(f=0),o==null&&(o=i.end.row),d==null&&(d=this.getLine(o).length);var h=this.doc,g="";return i.walk(function(b,x,A,v){if(!(xx)break;while(f&&g.test(f.type));f=u.stepBackward()}else f=u.getCurrentToken();return b.end.row=u.getCurrentTokenRow(),b.end.column=u.getCurrentTokenColumn()+f.value.length-2,b}},this.foldAll=function(i,o,d){d==null&&(d=1e5);var u=this.foldWidgets;if(u){o=o||this.getLength(),i=i||0;for(var f=i;f=i){f=h.end.row;try{var g=this.addFold("...",h);g&&(g.collapseChildren=d)}catch{}}}}},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 o=this.$foldMode;this.$setFolding(null),this.$setFolding(o)}},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,o){var d=this.foldWidgets;if(!d||o&&d[i])return{};for(var u=i-1,f;u>=0;){var h=d[u];if(h==null&&(h=d[u]=this.getFoldWidget(u)),h=="start"){var g=this.getFoldWidgetRange(u);if(f||(f=g),g&&g.end.row>=i)break}u--}return{range:u!==-1&&g,firstRange:f}},this.onFoldWidgetClick=function(i,o){o=o.domEvent;var d={children:o.shiftKey,all:o.ctrlKey||o.metaKey,siblings:o.altKey},u=this.$toggleFoldWidget(i,d);if(!u){var f=o.target||o.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(i,o){if(this.getFoldWidget){var d=this.getFoldWidget(i),u=this.getLine(i),f=d==="end"?-1:1,h=this.getFoldAt(i,f===-1?0:u.length,f);if(h)return o.children||o.all?this.removeFold(h):this.expandFold(h),h;var g=this.getFoldWidgetRange(i,!0);if(g&&!g.isMultiLine()&&(h=this.getFoldAt(g.start.row,g.start.column,1),h&&g.isEqual(h.range)))return this.removeFold(h),h;if(o.siblings){var b=this.getParentFoldRangeData(i);if(b.range)var x=b.range.start.row+1,A=b.range.end.row;this.foldAll(x,A,o.all?1e4:0)}else o.children?(A=g?g.end.row:this.getLength(),this.foldAll(i+1,A,o.all?1e4:0)):g&&(o.all&&(g.collapseChildren=1e4),this.addFold("...",g));return g}},this.toggleFoldWidget=function(i){var o=this.selection.getCursor().row;o=this.getRowFoldStart(o);var d=this.$toggleFoldWidget(o,{});if(!d){var u=this.getParentFoldRangeData(o,!0);if(d=u.range||u.firstRange,d){o=d.start.row;var f=this.getFoldAt(o,this.getLine(o).length,1);f?this.removeFold(f):this.addFold("...",d)}}},this.updateFoldWidgets=function(i){var o=i.start.row,d=i.end.row-o;if(d===0)this.foldWidgets[o]=null;else if(i.action=="remove")this.foldWidgets.splice(o,d+1,null);else{var u=Array(d+1);u.unshift(o,1),this.foldWidgets.splice.apply(this.foldWidgets,u)}},this.tokenizerUpdateFoldWidgets=function(i){var o=i.data;o.first!=o.last&&this.foldWidgets.length>o.first&&this.foldWidgets.splice(o.first,this.foldWidgets.length)}}t.Folding=a});ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,r){"use strict";var n=e("../token_iterator").TokenIterator,s=e("../range").Range;function c(){this.findMatchingBracket=function(l,a){if(l.column==0)return null;var i=a||this.getLine(l.row).charAt(l.column-1);if(i=="")return null;var o=i.match(/([\(\[\{])|([\)\]\}])/);return o?o[1]?this.$findClosingBracket(o[1],l):this.$findOpeningBracket(o[2],l):null},this.getBracketRange=function(l){var a=this.getLine(l.row),i=!0,o,d=a.charAt(l.column-1),u=d&&d.match(/([\(\[\{])|([\)\]\}])/);if(u||(d=a.charAt(l.column),l={row:l.row,column:l.column+1},u=d&&d.match(/([\(\[\{])|([\)\]\}])/),i=!1),!u)return null;if(u[1]){var f=this.$findClosingBracket(u[1],l);if(!f)return null;o=s.fromPoints(l,f),i||(o.end.column++,o.start.column--),o.cursor=o.end}else{var f=this.$findOpeningBracket(u[2],l);if(!f)return null;o=s.fromPoints(f,l),i||(o.start.column++,o.end.column--),o.cursor=o.start}return o},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(l,a,i){var o=this.$brackets[l],d=1,u=new n(this,a.row,a.column),f=u.getCurrentToken();if(f||(f=u.stepForward()),!!f){i||(i=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var h=a.column-u.getCurrentTokenColumn()-2,g=f.value;;){for(;h>=0;){var b=g.charAt(h);if(b==o){if(d-=1,d==0)return{row:u.getCurrentTokenRow(),column:h+u.getCurrentTokenColumn()}}else b==l&&(d+=1);h-=1}do f=u.stepBackward();while(f&&!i.test(f.type));if(f==null)break;g=f.value,h=g.length-1}return null}},this.$findClosingBracket=function(l,a,i){var o=this.$brackets[l],d=1,u=new n(this,a.row,a.column),f=u.getCurrentToken();if(f||(f=u.stepForward()),!!f){i||(i=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var h=a.column-u.getCurrentTokenColumn();;){for(var g=f.value,b=g.length;hk&&(this.$docRowCache.splice(k,E),this.$screenRowCache.splice(k,E))},this.$getRowCacheIndex=function(m,E){for(var k=0,S=m.length-1;k<=S;){var F=k+S>>1,_=m[F];if(E>_)k=F+1;else if(E<_)S=F-1;else return F}return k-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(m){var E=m.data;this.$resetRowCache(E.start.row)},this.onChange=function(m){this.$modified=!0,this.$bidiHandler.onChange(m),this.$resetRowCache(m.start.row);var E=this.$updateInternalDataOnChange(m);!this.$fromUndo&&this.$undoManager&&!m.ignore&&(this.$deltasDoc.push(m),E&&E.length!=0&&this.$deltasFold.push({action:"removeFolds",folds:E}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(m),this._signal("change",m)},this.setValue=function(m){this.doc.setValue(m),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(m){return this.bgTokenizer.getState(m)},this.getTokens=function(m){return this.bgTokenizer.getTokens(m)},this.getTokenAt=function(m,E){var k=this.bgTokenizer.getTokens(m),S,F=0;if(E==null){var _=k.length-1;F=this.getLine(m).length}else for(var _=0;_=E));_++);return S=k[_],S?(S.index=_,S.start=F-S.value.length,S):null},this.setUndoManager=function(m){if(this.$undoManager=m,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),m){var E=this;this.$syncInformUndoManager=function(){E.$informUndoManager.cancel(),E.$deltasFold.length&&(E.$deltas.push({group:"fold",deltas:E.$deltasFold}),E.$deltasFold=[]),E.$deltasDoc.length&&(E.$deltas.push({group:"doc",deltas:E.$deltasDoc}),E.$deltasDoc=[]),E.$deltas.length>0&&m.execute({action:"aceupdate",args:[E.$deltas,E],merge:E.mergeUndoDeltas}),E.mergeUndoDeltas=!1,E.$deltas=[]},this.$informUndoManager=s.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?s.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(m){this.setOption("useSoftTabs",m)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(m){this.setOption("tabSize",m)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(m){return this.$useSoftTabs&&m.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(m){this.setOption("navigateWithinSoftTabs",m)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(m){this.setOption("overwrite",m)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(m,E){this.$decorations[m]||(this.$decorations[m]=""),this.$decorations[m]+=" "+E,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(m,E){this.$decorations[m]=(this.$decorations[m]||"").replace(" "+E,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(m){this.$breakpoints=[];for(var E=0;E0&&(S=!!k.charAt(E-1).match(this.tokenRe)),S||(S=!!k.charAt(E).match(this.tokenRe)),S)var F=this.tokenRe;else if(/^\s+$/.test(k.slice(E-1,E+1)))var F=/\s/;else var F=this.nonTokenRe;var _=E;if(_>0){do _--;while(_>=0&&k.charAt(_).match(F));_++}for(var T=E;Tm&&(m=E.screenWidth)}),this.lineWidgetWidth=m},this.$computeWidth=function(m){if(this.$modified||m){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var E=this.doc.getAllLines(),k=this.$rowLengthCache,S=0,F=0,_=this.$foldData[F],T=_?_.start.row:1/0,B=E.length,N=0;NT){if(N=_.end.row+1,N>=B)break;_=this.$foldData[F++],T=_?_.start.row:1/0}k[N]==null&&(k[N]=this.$getStringScreenWidth(E[N])[0]),k[N]>S&&(S=k[N])}this.screenWidth=S}},this.getLine=function(m){return this.doc.getLine(m)},this.getLines=function(m,E){return this.doc.getLines(m,E)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(m){return this.doc.getTextRange(m||this.selection.getRange())},this.insert=function(m,E){return this.doc.insert(m,E)},this.remove=function(m){return this.doc.remove(m)},this.removeFullLines=function(m,E){return this.doc.removeFullLines(m,E)},this.undoChanges=function(m,E){if(m.length){this.$fromUndo=!0;for(var k=null,S=m.length-1;S!=-1;S--){var F=m[S];F.group=="doc"?(this.doc.revertDeltas(F.deltas),k=this.$getUndoSelection(F.deltas,!0,k)):F.deltas.forEach(function(_){this.addFolds(_.folds)},this)}return this.$fromUndo=!1,k&&this.$undoSelect&&!E&&this.selection.setSelectionRange(k),k}},this.redoChanges=function(m,E){if(m.length){this.$fromUndo=!0;for(var k=null,S=0;Sm.end.column&&(_.start.column+=B),_.end.row==m.end.row&&_.end.column>m.end.column&&(_.end.column+=B)),T&&_.start.row>=m.end.row&&(_.start.row+=T,_.end.row+=T)}if(_.end=this.insert(_.start,S),F.length){var N=m.start,W=_.start,T=W.row-N.row,B=W.column-N.column;this.addFolds(F.map(function(z){return z=z.clone(),z.start.row==N.row&&(z.start.column+=B),z.end.row==N.row&&(z.end.column+=B),z.start.row+=T,z.end.row+=T,z}))}return _},this.indentRows=function(m,E,k){k=k.replace(/\t/g,this.getTabString());for(var S=m;S<=E;S++)this.doc.insertInLine({row:S,column:0},k)},this.outdentRows=function(m){for(var E=m.collapseRows(),k=new d(0,0,0,0),S=this.getTabSize(),F=E.start.row;F<=E.end.row;++F){var _=this.getLine(F);k.start.row=F,k.end.row=F;for(var T=0;T0){var S=this.getRowFoldEnd(E+k);if(S>this.doc.getLength()-1)return 0;var F=S-E}else{m=this.$clipRowToDocument(m),E=this.$clipRowToDocument(E);var F=E-m+1}var _=new d(m,0,E,Number.MAX_VALUE),T=this.getFoldsInRange(_).map(function(N){return N=N.clone(),N.start.row+=F,N.end.row+=F,N}),B=k==0?this.doc.getLines(m,E):this.doc.removeFullLines(m,E);return this.doc.insertFullLines(m+F,B),T.length&&this.addFolds(T),F},this.moveLinesUp=function(m,E){return this.$moveLines(m,E,-1)},this.moveLinesDown=function(m,E){return this.$moveLines(m,E,1)},this.duplicateLines=function(m,E){return this.$moveLines(m,E,0)},this.$clipRowToDocument=function(m){return Math.max(0,Math.min(m,this.doc.getLength()-1))},this.$clipColumnToRow=function(m,E){return E<0?0:Math.min(this.doc.getLine(m).length,E)},this.$clipPositionToDocument=function(m,E){if(E=Math.max(0,E),m<0)m=0,E=0;else{var k=this.doc.getLength();m>=k?(m=k-1,E=this.doc.getLine(k-1).length):E=Math.min(this.doc.getLine(m).length,E)}return{row:m,column:E}},this.$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 E=this.doc.getLength()-1;return m.end.row>E?(m.end.row=E,m.end.column=this.doc.getLine(E).length):m.end.column=this.$clipColumnToRow(m.end.row,m.end.column),m},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(m){if(m!=this.$useWrapMode){if(this.$useWrapMode=m,this.$modified=!0,this.$resetRowCache(0),m){var E=this.getLength();this.$wrapData=Array(E),this.$updateWrapData(0,E-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(m,E){(this.$wrapLimitRange.min!==m||this.$wrapLimitRange.max!==E)&&(this.$wrapLimitRange={min:m,max:E},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(m,E){var k=this.$wrapLimitRange;k.max<0&&(k={min:E,max:E});var S=this.$constrainWrapLimit(m,k.min,k.max);return S!=this.$wrapLimit&&S>1?(this.$wrapLimit=S,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(m,E,k){return E&&(m=Math.max(E,m)),k&&(m=Math.min(k,m)),m},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(m){this.setWrapLimitRange(m,m)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(m){var E=this.$useWrapMode,k=m.action,S=m.start,F=m.end,_=S.row,T=F.row,B=T-_,N=null;if(this.$updating=!0,B!=0)if(k==="remove"){this[E?"$wrapData":"$rowLengthCache"].splice(_,B);var W=this.$foldData;N=this.getFoldsInRange(m),this.removeFolds(N);var H=this.getFoldLine(F.row),R=0;if(H){H.addRemoveChars(F.row,F.column,S.column-F.column),H.shiftRow(-B);var z=this.getFoldLine(_);z&&z!==H&&(z.merge(H),H=z),R=W.indexOf(H)+1}for(R;R=F.row&&H.shiftRow(-B)}T=_}else{var O=Array(B);O.unshift(_,0);var M=E?this.$wrapData:this.$rowLengthCache;M.splice.apply(M,O);var W=this.$foldData,H=this.getFoldLine(_),R=0;if(H){var I=H.range.compareInside(S.row,S.column);I==0?(H=H.split(S.row,S.column),H&&(H.shiftRow(B),H.addRemoveChars(T,0,F.column-S.column))):I==-1&&(H.addRemoveChars(_,0,F.column-S.column),H.shiftRow(B)),R=W.indexOf(H)+1}for(R;R=_&&H.shiftRow(B)}}else{B=Math.abs(m.start.column-m.end.column),k==="remove"&&(N=this.getFoldsInRange(m),this.removeFolds(N),B=-B);var H=this.getFoldLine(_);H&&H.addRemoveChars(_,S.column,B)}return E&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,E?this.$updateWrapData(_,T):this.$updateRowLengthCache(_,T),N},this.$updateRowLengthCache=function(m,E,k){this.$rowLengthCache[m]=null,this.$rowLengthCache[E]=null},this.$updateWrapData=function(m,E){var k=this.doc.getAllLines(),S=this.getTabSize(),F=this.$wrapData,_=this.$wrapLimit,T,B,N=m;for(E=Math.min(E,k.length-1);N<=E;)B=this.getFoldLine(N,B),B?(T=[],B.walk((function(W,H,R,z){var O;if(W!=null){O=this.$getDisplayTokens(W,T.length),O[0]=A;for(var M=1;ME-z;){var O=_+E-z;if(m[O-1]>=p&&m[O]>=p){R(O);continue}if(m[O]==A||m[O]==v){for(O;O!=_-1&&m[O]!=A;O--);if(O>_){R(O);continue}for(O=_+E,O;O>2)),_-1);O>M&&m[O]M&&m[O]M&&m[O]==w;)O--}else for(;O>M&&m[O]M){R(++O);continue}O=_+E,m[O]==x&&O--,R(O-z)}return S},this.$getDisplayTokens=function(m,E){var k=[],S;E=E||0;for(var F=0;F39&&_<48||_>57&&_<64?k.push(w):_>=4352&&D(_)?k.push(b,x):k.push(b)}return k},this.$getStringScreenWidth=function(m,E,k){if(E==0)return[0,0];E==null&&(E=1/0),k=k||0;var S,F;for(F=0;F=4352&&D(S)?k+=2:k+=1,!(k>E));F++);return[k,F]},this.lineWidgets=null,this.getRowLength=function(m){if(this.lineWidgets)var E=this.lineWidgets[m]&&this.lineWidgets[m].rowCount||0;else E=0;return!this.$useWrapMode||!this.$wrapData[m]?1+E:this.$wrapData[m].length+1+E},this.getRowLineCount=function(m){return!this.$useWrapMode||!this.$wrapData[m]?1:this.$wrapData[m].length+1},this.getRowWrapIndent=function(m){if(this.$useWrapMode){var E=this.screenToDocumentPosition(m,Number.MAX_VALUE),k=this.$wrapData[E.row];return k.length&&k[0]=0)var B=W[H],F=this.$docRowCache[H],z=m>W[R-1];else var z=!R;for(var O=this.getLength()-1,M=this.getNextFoldLine(F),I=M?M.start.row:1/0;B<=m&&(N=this.getRowLength(F),!(B+N>m||F>=O));)B+=N,F++,F>I&&(F=M.end.row+1,M=this.getNextFoldLine(F,M),I=M?M.start.row:1/0),z&&(this.$docRowCache.push(F),this.$screenRowCache.push(B));if(M&&M.start.row<=F)S=this.getFoldDisplayLine(M),F=M.start.row;else{if(B+N<=m||F>O)return{row:O,column:this.getLine(O).length};S=this.getLine(F),M=null}var j=0,$=Math.floor(m-B);if(this.$useWrapMode){var U=this.$wrapData[F];U&&(T=U[$],$>0&&U.length&&(j=U.indent,_=U[$-1]||U[U.length-1],S=S.substring(_)))}return k!==void 0&&this.$bidiHandler.isBidiRow(B+$,F,$)&&(E=this.$bidiHandler.offsetToCol(k)),_+=this.$getStringScreenWidth(S,E-j)[1],this.$useWrapMode&&_>=T&&(_=T-1),M?M.idxToPosition(_):{row:F,column:_}},this.documentToScreenPosition=function(m,E){if(typeof E>"u")var k=this.$clipPositionToDocument(m.row,m.column);else k=this.$clipPositionToDocument(m,E);m=k.row,E=k.column;var S=0,F=null,_=null;_=this.getFoldAt(m,E,1),_&&(m=_.start.row,E=_.start.column);var T,B=0,N=this.$docRowCache,W=this.$getRowCacheIndex(N,m),H=N.length;if(H&&W>=0)var B=N[W],S=this.$screenRowCache[W],R=m>N[H-1];else var R=!H;for(var z=this.getNextFoldLine(B),O=z?z.start.row:1/0;B=O){if(T=z.end.row+1,T>m)break;z=this.getNextFoldLine(T,z),O=z?z.start.row:1/0}else T=B+1;S+=this.getRowLength(B),B=T,R&&(this.$docRowCache.push(B),this.$screenRowCache.push(S))}var M="";z&&B>=O?(M=this.getFoldDisplayLine(z,m,E),F=z.start.row):(M=this.getLine(m).substring(0,E),F=m);var I=0;if(this.$useWrapMode){var j=this.$wrapData[F];if(j){for(var $=0;M.length>=j[$];)S++,$++;M=M.substring(j[$-1]||0,M.length),I=$>0?j.indent:0}}return{row:S,column:I+this.$getStringScreenWidth(M)[0]}},this.documentToScreenColumn=function(m,E){return this.documentToScreenPosition(m,E).column},this.documentToScreenRow=function(m,E){return this.documentToScreenPosition(m,E).row},this.getScreenLength=function(){var m=0,E=null;if(this.$useWrapMode)for(var F=this.$wrapData.length,_=0,S=0,E=this.$foldData[S++],T=E?E.start.row:1/0;_T&&(_=E.end.row+1,E=this.$foldData[S++],T=E?E.start.row:1/0)}else{m=this.getLength();for(var k=this.$foldData,S=0;Sk));_++);return[S,_]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=D;function D(m){return m<4352?!1:m>=4352&&m<=4447||m>=4515&&m<=4519||m>=4602&&m<=4607||m>=9001&&m<=9002||m>=11904&&m<=11929||m>=11931&&m<=12019||m>=12032&&m<=12245||m>=12272&&m<=12283||m>=12288&&m<=12350||m>=12353&&m<=12438||m>=12441&&m<=12543||m>=12549&&m<=12589||m>=12593&&m<=12686||m>=12688&&m<=12730||m>=12736&&m<=12771||m>=12784&&m<=12830||m>=12832&&m<=12871||m>=12880&&m<=13054||m>=13056&&m<=19903||m>=19968&&m<=42124||m>=42128&&m<=42182||m>=43360&&m<=43388||m>=44032&&m<=55203||m>=55216&&m<=55238||m>=55243&&m<=55291||m>=63744&&m<=64255||m>=65040&&m<=65049||m>=65072&&m<=65106||m>=65108&&m<=65126||m>=65128&&m<=65131||m>=65281&&m<=65376||m>=65504&&m<=65510}}).call(g.prototype),e("./edit_session/folding").Folding.call(g.prototype),e("./edit_session/bracket_match").BracketMatch.call(g.prototype),l.defineOptions(g.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 x=typeof b=="number"?b:null;this.setWrapLimitRange(x,x),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.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{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){isNaN(b)||this.$tabSize===b||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=b,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},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}}}),t.EditSession=g});ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,r){"use strict";var n=e("./lib/lang"),s=e("./lib/oop"),c=e("./range").Range,l=function(){this.$options={}};(function(){this.set=function(i){return s.mixin(this.$options,i),this},this.getOptions=function(){return n.copyObject(this.$options)},this.setOptions=function(i){this.$options=i},this.find=function(i){var o=this.$options,d=this.$matchIterator(i,o);if(!d)return!1;var u=null;return d.forEach(function(f,h,g,b){return u=new c(f,h,g,b),h==b&&o.start&&o.start.start&&o.skipCurrent!=!1&&u.isEqual(o.start)?(u=null,!1):!0}),u},this.findAll=function(i){var o=this.$options;if(!o.needle)return[];this.$assembleRegExp(o);var d=o.range,u=d?i.getLines(d.start.row,d.end.row):i.doc.getAllLines(),f=[],h=o.re;if(o.$isMultiLine){var g=h.length,b=u.length-g,x;e:for(var A=h.offset||0;A<=b;A++){for(var v=0;vy||(f.push(x=new c(A,y,A+g-1,C)),g>2&&(A=A+g-2))}}else for(var D=0;DS&&f[v].end.row==d.end.row;)v--;for(f=f.slice(D,v+1),D=0,v=f.length;D=u&&(o=u-1,d=void 0);var h=this.getLine(o);return d==null&&(d=h.length),d=Math.min(Math.max(d,0),h.length),{row:o,column:d}},this.clonePos=function(o){return{row:o.row,column:o.column}},this.pos=function(o,d){return{row:o,column:d}},this.$clipPosition=function(o){var d=this.getLength();return o.row>=d?(o.row=Math.max(0,d-1),o.column=this.getLine(d-1).length):(o.row=Math.max(0,o.row),o.column=Math.min(Math.max(o.column,0),this.getLine(o.row).length)),o},this.insertFullLines=function(o,d){o=Math.min(Math.max(o,0),this.getLength());var u=0;o0,h=d=0&&this.applyDelta({start:this.pos(o,this.getLine(o).length),end:this.pos(o+1,0),action:"remove",lines:["",""]})},this.replace=function(o,d){if(o instanceof l||(o=l.fromPoints(o.start,o.end)),d.length===0&&o.isEmpty())return o.start;if(d==this.getTextRange(o))return o.end;this.remove(o);var u;return d?u=this.insert(o.start,d):u=o.start,u},this.applyDeltas=function(o){for(var d=0;d=0;d--)this.revertDelta(o[d])},this.applyDelta=function(o,d){var u=o.action=="insert";(u?o.lines.length<=1&&!o.lines[0]:!l.comparePoints(o.start,o.end))||(u&&o.lines.length>2e4&&this.$splitAndapplyLargeDelta(o,2e4),s(this.$lines,o,d),this._signal("change",o))},this.$splitAndapplyLargeDelta=function(o,d){var u=o.lines,h=u.length,f=o.start.row,g=o.start.column,b=0,x=0;do{b=x,x+=d-1;var A=u.slice(b,x);if(x>h){o.lines=A,o.start.row=f+b,o.start.column=g;break}A.push(""),this.applyDelta({start:this.pos(f+b,g),end:this.pos(f+x,g=0),action:o.action,lines:A},!0)}while(!0)},this.revertDelta=function(o){this.applyDelta({start:this.clonePos(o.start),end:this.clonePos(o.end),action:o.action=="insert"?"remove":"insert",lines:o.lines.slice()})},this.indexToPosition=function(o,d){for(var u=this.$lines||this.getAllLines(),h=this.getNewLineCharacter().length,f=d||0,g=u.length;f20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=d,u==-1&&(u=d),f<=u&&i.fireUpdateEvent(f,u)}}};(function(){n.implement(this,s),this.setTokenizer=function(l){this.tokenizer=l,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(l){this.doc=l,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(l,a){var i={first:l,last:a};this._signal("update",{data:i})},this.start=function(l){this.currentLine=Math.min(l||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(l){var a=l.start.row,i=l.end.row-a;if(i===0)this.lines[a]=null;else if(l.action=="remove")this.lines.splice(a,i+1,null),this.states.splice(a,i+1,null);else{var o=Array(i+1);o.unshift(a,1),this.lines.splice.apply(this.lines,o),this.states.splice.apply(this.states,o)}this.currentLine=Math.min(a,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(l){return this.lines[l]||this.$tokenizeRow(l)},this.getState=function(l){return this.currentLine==l&&this.$tokenizeRow(l),this.states[l]||"start"},this.$tokenizeRow=function(l){var a=this.doc.getLine(l),i=this.states[l-1],o=this.tokenizer.getLineTokens(a,i,l);return this.states[l]+""!=o.state+""?(this.states[l]=o.state,this.lines[l+1]=null,this.currentLine>l+1&&(this.currentLine=l+1)):this.currentLine==l&&(this.currentLine=l+1),this.lines[l]=o.tokens}}).call(c.prototype),t.BackgroundTokenizer=c});ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,r){"use strict";var n=e("./lib/lang"),s=e("./lib/oop"),c=e("./range").Range,l=function(a,i,o){this.setRegexp(a),this.clazz=i,this.type=o||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(a){this.regExp+""!=a+""&&(this.regExp=a,this.cache=[])},this.update=function(a,i,o,d){if(this.regExp)for(var u=d.firstRow,h=d.lastRow,f=u;f<=h;f++){var g=this.cache[f];g==null&&(g=n.getMatchOffsets(o.getLine(f),this.regExp),g.length>this.MAX_RANGES&&(g=g.slice(0,this.MAX_RANGES)),g=g.map(function(x){return new c(f,x.offset,f,x.offset+x.length)}),this.cache[f]=g.length?g:"");for(var b=g.length;b--;)i.drawSingleLineMarker(a,g[b].toScreenRange(o),this.clazz,d)}}}).call(l.prototype),t.SearchHighlight=l});ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,r){"use strict";var n=e("../range").Range;function s(c,l){this.foldData=c,Array.isArray(l)?this.folds=l:l=this.folds=[l];var a=l[l.length-1];this.range=new n(l[0].start.row,l[0].start.column,a.end.row,a.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(i){i.setFoldLine(this)},this)}(function(){this.shiftRow=function(c){this.start.row+=c,this.end.row+=c,this.folds.forEach(function(l){l.start.row+=c,l.end.row+=c})},this.addFold=function(c){if(c.sameRow){if(c.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(c),this.folds.sort(function(l,a){return-l.range.compareEnd(a.start.row,a.start.column)}),this.range.compareEnd(c.start.row,c.start.column)>0?(this.end.row=c.end.row,this.end.column=c.end.column):this.range.compareStart(c.end.row,c.end.column)<0&&(this.start.row=c.start.row,this.start.column=c.start.column)}else if(c.start.row==this.end.row)this.folds.push(c),this.end.row=c.end.row,this.end.column=c.end.column;else if(c.end.row==this.start.row)this.folds.unshift(c),this.start.row=c.start.row,this.start.column=c.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");c.foldLine=this},this.containsRow=function(c){return c>=this.start.row&&c<=this.end.row},this.walk=function(c,l,a){var i=0,o=this.folds,d,u,h,f=!0;l==null&&(l=this.end.row,a=this.end.column);for(var g=0;g0)){var f=s(l,u.start);return h===0?a&&f!==0?-d-2:d:f>0||f===0&&!a?d:-d-1}}return-d-1},this.add=function(l){var a=!l.isEmpty(),i=this.pointIndex(l.start,a);i<0&&(i=-i-1);var o=this.pointIndex(l.end,a,i);return o<0?o=-o-1:o++,this.ranges.splice(i,o-i,l)},this.addList=function(l){for(var a=[],i=l.length;i--;)a.push.apply(a,this.add(l[i]));return a},this.substractPoint=function(l){var a=this.pointIndex(l);if(a>=0)return this.ranges.splice(a,1)},this.merge=function(){var l=[],a=this.ranges;a=a.sort(function(h,f){return s(h.start,f.start)});for(var i=a[0],o,d=1;d=0},this.containsPoint=function(l){return this.pointIndex(l)>=0},this.rangeAtPoint=function(l){var a=this.pointIndex(l);if(a>=0)return this.ranges[a]},this.clipRows=function(l,a){var i=this.ranges;if(i[0].start.row>a||i[i.length-1].start.rowo)break;if(x.start.row==o&&x.start.column>=a.column&&(x.start.column==a.column&&this.$insertRight||(x.start.column+=h,x.start.row+=u)),x.end.row==o&&x.end.column>=a.column){if(x.end.column==a.column&&this.$insertRight)continue;x.end.column==a.column&&h>0&&gx.start.column&&x.end.column==f[g+1].start.column&&(x.end.column-=h),x.end.column+=h,x.end.row+=u}}}if(u!=0&&g=i)return h;if(h.end.row>i)return null}return null},this.getNextFoldLine=function(i,o){var d=this.$foldData,u=0;for(o&&(u=d.indexOf(o)),u==-1&&(u=0),u;u=i)return h}return null},this.getFoldedRowCount=function(i,o){for(var d=this.$foldData,u=o-i+1,h=0;h=o){b=i?u-=o-b:u=0);break}else g>=i&&(b>=i?u-=g-b:u-=g-i+1)}return u},this.$addFoldLine=function(i){return this.$foldData.push(i),this.$foldData.sort(function(o,d){return o.start.row-d.start.row}),i},this.addFold=function(i,o){var d=this.$foldData,u=!1,h;i instanceof c?h=i:(h=new c(o,i),h.collapseChildren=o.collapseChildren),this.$clipRangeToDocument(h.range);var f=h.start.row,g=h.start.column,b=h.end.row,x=h.end.column;if(!(f0&&(this.removeFolds(w),w.forEach(function(D){h.addSubFold(D)}));for(var p=0;p0&&this.foldAll(i.start.row+1,i.end.row,i.collapseChildren-1),i.subFolds=[]},this.expandFolds=function(i){i.forEach(function(o){this.expandFold(o)},this)},this.unfold=function(i,o){var d,u;if(i==null?(d=new n(0,0,this.getLength(),0),o=!0):typeof i=="number"?d=new n(i,0,i,this.getLine(i).length):"row"in i?d=n.fromPoints(i,i):d=i,u=this.getFoldsInRangeList(d),o)this.removeFolds(u);else for(var h=u;h.length;)this.expandFolds(h),h=this.getFoldsInRangeList(d);if(u.length)return u},this.isRowFolded=function(i,o){return!!this.getFoldLine(i,o)},this.getRowFoldEnd=function(i,o){var d=this.getFoldLine(i,o);return d?d.end.row:i},this.getRowFoldStart=function(i,o){var d=this.getFoldLine(i,o);return d?d.start.row:i},this.getFoldDisplayLine=function(i,o,d,u,h){u==null&&(u=i.start.row),h==null&&(h=0),o==null&&(o=i.end.row),d==null&&(d=this.getLine(o).length);var f=this.doc,g="";return i.walk(function(b,x,A,v){if(!(xx)break;while(h&&g.test(h.type));h=u.stepBackward()}else h=u.getCurrentToken();return b.end.row=u.getCurrentTokenRow(),b.end.column=u.getCurrentTokenColumn()+h.value.length-2,b}},this.foldAll=function(i,o,d){d==null&&(d=1e5);var u=this.foldWidgets;if(u){o=o||this.getLength(),i=i||0;for(var h=i;h=i){h=f.end.row;try{var g=this.addFold("...",f);g&&(g.collapseChildren=d)}catch{}}}}},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 o=this.$foldMode;this.$setFolding(null),this.$setFolding(o)}},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,o){var d=this.foldWidgets;if(!d||o&&d[i])return{};for(var u=i-1,h;u>=0;){var f=d[u];if(f==null&&(f=d[u]=this.getFoldWidget(u)),f=="start"){var g=this.getFoldWidgetRange(u);if(h||(h=g),g&&g.end.row>=i)break}u--}return{range:u!==-1&&g,firstRange:h}},this.onFoldWidgetClick=function(i,o){o=o.domEvent;var d={children:o.shiftKey,all:o.ctrlKey||o.metaKey,siblings:o.altKey},u=this.$toggleFoldWidget(i,d);if(!u){var h=o.target||o.srcElement;h&&/ace_fold-widget/.test(h.className)&&(h.className+=" ace_invalid")}},this.$toggleFoldWidget=function(i,o){if(this.getFoldWidget){var d=this.getFoldWidget(i),u=this.getLine(i),h=d==="end"?-1:1,f=this.getFoldAt(i,h===-1?0:u.length,h);if(f)return o.children||o.all?this.removeFold(f):this.expandFold(f),f;var g=this.getFoldWidgetRange(i,!0);if(g&&!g.isMultiLine()&&(f=this.getFoldAt(g.start.row,g.start.column,1),f&&g.isEqual(f.range)))return this.removeFold(f),f;if(o.siblings){var b=this.getParentFoldRangeData(i);if(b.range)var x=b.range.start.row+1,A=b.range.end.row;this.foldAll(x,A,o.all?1e4:0)}else o.children?(A=g?g.end.row:this.getLength(),this.foldAll(i+1,A,o.all?1e4:0)):g&&(o.all&&(g.collapseChildren=1e4),this.addFold("...",g));return g}},this.toggleFoldWidget=function(i){var o=this.selection.getCursor().row;o=this.getRowFoldStart(o);var d=this.$toggleFoldWidget(o,{});if(!d){var u=this.getParentFoldRangeData(o,!0);if(d=u.range||u.firstRange,d){o=d.start.row;var h=this.getFoldAt(o,this.getLine(o).length,1);h?this.removeFold(h):this.addFold("...",d)}}},this.updateFoldWidgets=function(i){var o=i.start.row,d=i.end.row-o;if(d===0)this.foldWidgets[o]=null;else if(i.action=="remove")this.foldWidgets.splice(o,d+1,null);else{var u=Array(d+1);u.unshift(o,1),this.foldWidgets.splice.apply(this.foldWidgets,u)}},this.tokenizerUpdateFoldWidgets=function(i){var o=i.data;o.first!=o.last&&this.foldWidgets.length>o.first&&this.foldWidgets.splice(o.first,this.foldWidgets.length)}}t.Folding=a});ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,r){"use strict";var n=e("../token_iterator").TokenIterator,s=e("../range").Range;function c(){this.findMatchingBracket=function(l,a){if(l.column==0)return null;var i=a||this.getLine(l.row).charAt(l.column-1);if(i=="")return null;var o=i.match(/([\(\[\{])|([\)\]\}])/);return o?o[1]?this.$findClosingBracket(o[1],l):this.$findOpeningBracket(o[2],l):null},this.getBracketRange=function(l){var a=this.getLine(l.row),i=!0,o,d=a.charAt(l.column-1),u=d&&d.match(/([\(\[\{])|([\)\]\}])/);if(u||(d=a.charAt(l.column),l={row:l.row,column:l.column+1},u=d&&d.match(/([\(\[\{])|([\)\]\}])/),i=!1),!u)return null;if(u[1]){var h=this.$findClosingBracket(u[1],l);if(!h)return null;o=s.fromPoints(l,h),i||(o.end.column++,o.start.column--),o.cursor=o.end}else{var h=this.$findOpeningBracket(u[2],l);if(!h)return null;o=s.fromPoints(h,l),i||(o.start.column++,o.end.column--),o.cursor=o.start}return o},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(l,a,i){var o=this.$brackets[l],d=1,u=new n(this,a.row,a.column),h=u.getCurrentToken();if(h||(h=u.stepForward()),!!h){i||(i=new RegExp("(\\.?"+h.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var f=a.column-u.getCurrentTokenColumn()-2,g=h.value;;){for(;f>=0;){var b=g.charAt(f);if(b==o){if(d-=1,d==0)return{row:u.getCurrentTokenRow(),column:f+u.getCurrentTokenColumn()}}else b==l&&(d+=1);f-=1}do h=u.stepBackward();while(h&&!i.test(h.type));if(h==null)break;g=h.value,f=g.length-1}return null}},this.$findClosingBracket=function(l,a,i){var o=this.$brackets[l],d=1,u=new n(this,a.row,a.column),h=u.getCurrentToken();if(h||(h=u.stepForward()),!!h){i||(i=new RegExp("(\\.?"+h.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var f=a.column-u.getCurrentTokenColumn();;){for(var g=h.value,b=g.length;fk&&(this.$docRowCache.splice(k,E),this.$screenRowCache.splice(k,E))},this.$getRowCacheIndex=function(m,E){for(var k=0,S=m.length-1;k<=S;){var F=k+S>>1,_=m[F];if(E>_)k=F+1;else if(E<_)S=F-1;else return F}return k-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(m){var E=m.data;this.$resetRowCache(E.start.row)},this.onChange=function(m){this.$modified=!0,this.$bidiHandler.onChange(m),this.$resetRowCache(m.start.row);var E=this.$updateInternalDataOnChange(m);!this.$fromUndo&&this.$undoManager&&!m.ignore&&(this.$deltasDoc.push(m),E&&E.length!=0&&this.$deltasFold.push({action:"removeFolds",folds:E}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(m),this._signal("change",m)},this.setValue=function(m){this.doc.setValue(m),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(m){return this.bgTokenizer.getState(m)},this.getTokens=function(m){return this.bgTokenizer.getTokens(m)},this.getTokenAt=function(m,E){var k=this.bgTokenizer.getTokens(m),S,F=0;if(E==null){var _=k.length-1;F=this.getLine(m).length}else for(var _=0;_=E));_++);return S=k[_],S?(S.index=_,S.start=F-S.value.length,S):null},this.setUndoManager=function(m){if(this.$undoManager=m,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),m){var E=this;this.$syncInformUndoManager=function(){E.$informUndoManager.cancel(),E.$deltasFold.length&&(E.$deltas.push({group:"fold",deltas:E.$deltasFold}),E.$deltasFold=[]),E.$deltasDoc.length&&(E.$deltas.push({group:"doc",deltas:E.$deltasDoc}),E.$deltasDoc=[]),E.$deltas.length>0&&m.execute({action:"aceupdate",args:[E.$deltas,E],merge:E.mergeUndoDeltas}),E.mergeUndoDeltas=!1,E.$deltas=[]},this.$informUndoManager=s.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?s.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(m){this.setOption("useSoftTabs",m)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(m){this.setOption("tabSize",m)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(m){return this.$useSoftTabs&&m.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(m){this.setOption("navigateWithinSoftTabs",m)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(m){this.setOption("overwrite",m)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(m,E){this.$decorations[m]||(this.$decorations[m]=""),this.$decorations[m]+=" "+E,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(m,E){this.$decorations[m]=(this.$decorations[m]||"").replace(" "+E,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(m){this.$breakpoints=[];for(var E=0;E0&&(S=!!k.charAt(E-1).match(this.tokenRe)),S||(S=!!k.charAt(E).match(this.tokenRe)),S)var F=this.tokenRe;else if(/^\s+$/.test(k.slice(E-1,E+1)))var F=/\s/;else var F=this.nonTokenRe;var _=E;if(_>0){do _--;while(_>=0&&k.charAt(_).match(F));_++}for(var T=E;Tm&&(m=E.screenWidth)}),this.lineWidgetWidth=m},this.$computeWidth=function(m){if(this.$modified||m){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var E=this.doc.getAllLines(),k=this.$rowLengthCache,S=0,F=0,_=this.$foldData[F],T=_?_.start.row:1/0,O=E.length,B=0;BT){if(B=_.end.row+1,B>=O)break;_=this.$foldData[F++],T=_?_.start.row:1/0}k[B]==null&&(k[B]=this.$getStringScreenWidth(E[B])[0]),k[B]>S&&(S=k[B])}this.screenWidth=S}},this.getLine=function(m){return this.doc.getLine(m)},this.getLines=function(m,E){return this.doc.getLines(m,E)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(m){return this.doc.getTextRange(m||this.selection.getRange())},this.insert=function(m,E){return this.doc.insert(m,E)},this.remove=function(m){return this.doc.remove(m)},this.removeFullLines=function(m,E){return this.doc.removeFullLines(m,E)},this.undoChanges=function(m,E){if(m.length){this.$fromUndo=!0;for(var k=null,S=m.length-1;S!=-1;S--){var F=m[S];F.group=="doc"?(this.doc.revertDeltas(F.deltas),k=this.$getUndoSelection(F.deltas,!0,k)):F.deltas.forEach(function(_){this.addFolds(_.folds)},this)}return this.$fromUndo=!1,k&&this.$undoSelect&&!E&&this.selection.setSelectionRange(k),k}},this.redoChanges=function(m,E){if(m.length){this.$fromUndo=!0;for(var k=null,S=0;Sm.end.column&&(_.start.column+=O),_.end.row==m.end.row&&_.end.column>m.end.column&&(_.end.column+=O)),T&&_.start.row>=m.end.row&&(_.start.row+=T,_.end.row+=T)}if(_.end=this.insert(_.start,S),F.length){var B=m.start,W=_.start,T=W.row-B.row,O=W.column-B.column;this.addFolds(F.map(function(z){return z=z.clone(),z.start.row==B.row&&(z.start.column+=O),z.end.row==B.row&&(z.end.column+=O),z.start.row+=T,z.end.row+=T,z}))}return _},this.indentRows=function(m,E,k){k=k.replace(/\t/g,this.getTabString());for(var S=m;S<=E;S++)this.doc.insertInLine({row:S,column:0},k)},this.outdentRows=function(m){for(var E=m.collapseRows(),k=new d(0,0,0,0),S=this.getTabSize(),F=E.start.row;F<=E.end.row;++F){var _=this.getLine(F);k.start.row=F,k.end.row=F;for(var T=0;T0){var S=this.getRowFoldEnd(E+k);if(S>this.doc.getLength()-1)return 0;var F=S-E}else{m=this.$clipRowToDocument(m),E=this.$clipRowToDocument(E);var F=E-m+1}var _=new d(m,0,E,Number.MAX_VALUE),T=this.getFoldsInRange(_).map(function(B){return B=B.clone(),B.start.row+=F,B.end.row+=F,B}),O=k==0?this.doc.getLines(m,E):this.doc.removeFullLines(m,E);return this.doc.insertFullLines(m+F,O),T.length&&this.addFolds(T),F},this.moveLinesUp=function(m,E){return this.$moveLines(m,E,-1)},this.moveLinesDown=function(m,E){return this.$moveLines(m,E,1)},this.duplicateLines=function(m,E){return this.$moveLines(m,E,0)},this.$clipRowToDocument=function(m){return Math.max(0,Math.min(m,this.doc.getLength()-1))},this.$clipColumnToRow=function(m,E){return E<0?0:Math.min(this.doc.getLine(m).length,E)},this.$clipPositionToDocument=function(m,E){if(E=Math.max(0,E),m<0)m=0,E=0;else{var k=this.doc.getLength();m>=k?(m=k-1,E=this.doc.getLine(k-1).length):E=Math.min(this.doc.getLine(m).length,E)}return{row:m,column:E}},this.$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 E=this.doc.getLength()-1;return m.end.row>E?(m.end.row=E,m.end.column=this.doc.getLine(E).length):m.end.column=this.$clipColumnToRow(m.end.row,m.end.column),m},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(m){if(m!=this.$useWrapMode){if(this.$useWrapMode=m,this.$modified=!0,this.$resetRowCache(0),m){var E=this.getLength();this.$wrapData=Array(E),this.$updateWrapData(0,E-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(m,E){(this.$wrapLimitRange.min!==m||this.$wrapLimitRange.max!==E)&&(this.$wrapLimitRange={min:m,max:E},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(m,E){var k=this.$wrapLimitRange;k.max<0&&(k={min:E,max:E});var S=this.$constrainWrapLimit(m,k.min,k.max);return S!=this.$wrapLimit&&S>1?(this.$wrapLimit=S,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(m,E,k){return E&&(m=Math.max(E,m)),k&&(m=Math.min(k,m)),m},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(m){this.setWrapLimitRange(m,m)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(m){var E=this.$useWrapMode,k=m.action,S=m.start,F=m.end,_=S.row,T=F.row,O=T-_,B=null;if(this.$updating=!0,O!=0)if(k==="remove"){this[E?"$wrapData":"$rowLengthCache"].splice(_,O);var W=this.$foldData;B=this.getFoldsInRange(m),this.removeFolds(B);var H=this.getFoldLine(F.row),R=0;if(H){H.addRemoveChars(F.row,F.column,S.column-F.column),H.shiftRow(-O);var z=this.getFoldLine(_);z&&z!==H&&(z.merge(H),H=z),R=W.indexOf(H)+1}for(R;R=F.row&&H.shiftRow(-O)}T=_}else{var N=Array(O);N.unshift(_,0);var M=E?this.$wrapData:this.$rowLengthCache;M.splice.apply(M,N);var W=this.$foldData,H=this.getFoldLine(_),R=0;if(H){var I=H.range.compareInside(S.row,S.column);I==0?(H=H.split(S.row,S.column),H&&(H.shiftRow(O),H.addRemoveChars(T,0,F.column-S.column))):I==-1&&(H.addRemoveChars(_,0,F.column-S.column),H.shiftRow(O)),R=W.indexOf(H)+1}for(R;R=_&&H.shiftRow(O)}}else{O=Math.abs(m.start.column-m.end.column),k==="remove"&&(B=this.getFoldsInRange(m),this.removeFolds(B),O=-O);var H=this.getFoldLine(_);H&&H.addRemoveChars(_,S.column,O)}return E&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,E?this.$updateWrapData(_,T):this.$updateRowLengthCache(_,T),B},this.$updateRowLengthCache=function(m,E,k){this.$rowLengthCache[m]=null,this.$rowLengthCache[E]=null},this.$updateWrapData=function(m,E){var k=this.doc.getAllLines(),S=this.getTabSize(),F=this.$wrapData,_=this.$wrapLimit,T,O,B=m;for(E=Math.min(E,k.length-1);B<=E;)O=this.getFoldLine(B,O),O?(T=[],O.walk((function(W,H,R,z){var N;if(W!=null){N=this.$getDisplayTokens(W,T.length),N[0]=A;for(var M=1;ME-z;){var N=_+E-z;if(m[N-1]>=p&&m[N]>=p){R(N);continue}if(m[N]==A||m[N]==v){for(N;N!=_-1&&m[N]!=A;N--);if(N>_){R(N);continue}for(N=_+E,N;N>2)),_-1);N>M&&m[N]M&&m[N]M&&m[N]==w;)N--}else for(;N>M&&m[N]M){R(++N);continue}N=_+E,m[N]==x&&N--,R(N-z)}return S},this.$getDisplayTokens=function(m,E){var k=[],S;E=E||0;for(var F=0;F39&&_<48||_>57&&_<64?k.push(w):_>=4352&&D(_)?k.push(b,x):k.push(b)}return k},this.$getStringScreenWidth=function(m,E,k){if(E==0)return[0,0];E==null&&(E=1/0),k=k||0;var S,F;for(F=0;F=4352&&D(S)?k+=2:k+=1,!(k>E));F++);return[k,F]},this.lineWidgets=null,this.getRowLength=function(m){if(this.lineWidgets)var E=this.lineWidgets[m]&&this.lineWidgets[m].rowCount||0;else E=0;return!this.$useWrapMode||!this.$wrapData[m]?1+E:this.$wrapData[m].length+1+E},this.getRowLineCount=function(m){return!this.$useWrapMode||!this.$wrapData[m]?1:this.$wrapData[m].length+1},this.getRowWrapIndent=function(m){if(this.$useWrapMode){var E=this.screenToDocumentPosition(m,Number.MAX_VALUE),k=this.$wrapData[E.row];return k.length&&k[0]=0)var O=W[H],F=this.$docRowCache[H],z=m>W[R-1];else var z=!R;for(var N=this.getLength()-1,M=this.getNextFoldLine(F),I=M?M.start.row:1/0;O<=m&&(B=this.getRowLength(F),!(O+B>m||F>=N));)O+=B,F++,F>I&&(F=M.end.row+1,M=this.getNextFoldLine(F,M),I=M?M.start.row:1/0),z&&(this.$docRowCache.push(F),this.$screenRowCache.push(O));if(M&&M.start.row<=F)S=this.getFoldDisplayLine(M),F=M.start.row;else{if(O+B<=m||F>N)return{row:N,column:this.getLine(N).length};S=this.getLine(F),M=null}var j=0,$=Math.floor(m-O);if(this.$useWrapMode){var U=this.$wrapData[F];U&&(T=U[$],$>0&&U.length&&(j=U.indent,_=U[$-1]||U[U.length-1],S=S.substring(_)))}return k!==void 0&&this.$bidiHandler.isBidiRow(O+$,F,$)&&(E=this.$bidiHandler.offsetToCol(k)),_+=this.$getStringScreenWidth(S,E-j)[1],this.$useWrapMode&&_>=T&&(_=T-1),M?M.idxToPosition(_):{row:F,column:_}},this.documentToScreenPosition=function(m,E){if(typeof E>"u")var k=this.$clipPositionToDocument(m.row,m.column);else k=this.$clipPositionToDocument(m,E);m=k.row,E=k.column;var S=0,F=null,_=null;_=this.getFoldAt(m,E,1),_&&(m=_.start.row,E=_.start.column);var T,O=0,B=this.$docRowCache,W=this.$getRowCacheIndex(B,m),H=B.length;if(H&&W>=0)var O=B[W],S=this.$screenRowCache[W],R=m>B[H-1];else var R=!H;for(var z=this.getNextFoldLine(O),N=z?z.start.row:1/0;O=N){if(T=z.end.row+1,T>m)break;z=this.getNextFoldLine(T,z),N=z?z.start.row:1/0}else T=O+1;S+=this.getRowLength(O),O=T,R&&(this.$docRowCache.push(O),this.$screenRowCache.push(S))}var M="";z&&O>=N?(M=this.getFoldDisplayLine(z,m,E),F=z.start.row):(M=this.getLine(m).substring(0,E),F=m);var I=0;if(this.$useWrapMode){var j=this.$wrapData[F];if(j){for(var $=0;M.length>=j[$];)S++,$++;M=M.substring(j[$-1]||0,M.length),I=$>0?j.indent:0}}return{row:S,column:I+this.$getStringScreenWidth(M)[0]}},this.documentToScreenColumn=function(m,E){return this.documentToScreenPosition(m,E).column},this.documentToScreenRow=function(m,E){return this.documentToScreenPosition(m,E).row},this.getScreenLength=function(){var m=0,E=null;if(this.$useWrapMode)for(var F=this.$wrapData.length,_=0,S=0,E=this.$foldData[S++],T=E?E.start.row:1/0;_T&&(_=E.end.row+1,E=this.$foldData[S++],T=E?E.start.row:1/0)}else{m=this.getLength();for(var k=this.$foldData,S=0;Sk));_++);return[S,_]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=D;function D(m){return m<4352?!1:m>=4352&&m<=4447||m>=4515&&m<=4519||m>=4602&&m<=4607||m>=9001&&m<=9002||m>=11904&&m<=11929||m>=11931&&m<=12019||m>=12032&&m<=12245||m>=12272&&m<=12283||m>=12288&&m<=12350||m>=12353&&m<=12438||m>=12441&&m<=12543||m>=12549&&m<=12589||m>=12593&&m<=12686||m>=12688&&m<=12730||m>=12736&&m<=12771||m>=12784&&m<=12830||m>=12832&&m<=12871||m>=12880&&m<=13054||m>=13056&&m<=19903||m>=19968&&m<=42124||m>=42128&&m<=42182||m>=43360&&m<=43388||m>=44032&&m<=55203||m>=55216&&m<=55238||m>=55243&&m<=55291||m>=63744&&m<=64255||m>=65040&&m<=65049||m>=65072&&m<=65106||m>=65108&&m<=65126||m>=65128&&m<=65131||m>=65281&&m<=65376||m>=65504&&m<=65510}}).call(g.prototype),e("./edit_session/folding").Folding.call(g.prototype),e("./edit_session/bracket_match").BracketMatch.call(g.prototype),l.defineOptions(g.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 x=typeof b=="number"?b:null;this.setWrapLimitRange(x,x),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.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{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){isNaN(b)||this.$tabSize===b||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=b,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},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}}}),t.EditSession=g});ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,r){"use strict";var n=e("./lib/lang"),s=e("./lib/oop"),c=e("./range").Range,l=function(){this.$options={}};(function(){this.set=function(i){return s.mixin(this.$options,i),this},this.getOptions=function(){return n.copyObject(this.$options)},this.setOptions=function(i){this.$options=i},this.find=function(i){var o=this.$options,d=this.$matchIterator(i,o);if(!d)return!1;var u=null;return d.forEach(function(h,f,g,b){return u=new c(h,f,g,b),f==b&&o.start&&o.start.start&&o.skipCurrent!=!1&&u.isEqual(o.start)?(u=null,!1):!0}),u},this.findAll=function(i){var o=this.$options;if(!o.needle)return[];this.$assembleRegExp(o);var d=o.range,u=d?i.getLines(d.start.row,d.end.row):i.doc.getAllLines(),h=[],f=o.re;if(o.$isMultiLine){var g=f.length,b=u.length-g,x;e:for(var A=f.offset||0;A<=b;A++){for(var v=0;vy||(h.push(x=new c(A,y,A+g-1,C)),g>2&&(A=A+g-2))}}else for(var D=0;DS&&h[v].end.row==d.end.row;)v--;for(h=h.slice(D,v+1),D=0,v=h.length;D=b;y--)if(w(y,Number.MAX_VALUE,p))return;if(o.wrap!=!1){for(y=x,b=g.row;y>=b;y--)if(w(y,Number.MAX_VALUE,p))return}}};else var A=function(y){var C=g.row;if(!w(C,g.column,y)){for(C=C+1;C<=x;C++)if(w(C,0,y))return;if(o.wrap!=!1){for(C=b,x=g.row;C<=x;C++)if(w(C,0,y))return}}};if(o.$isMultiLine)var v=d.length,w=function(p,y,C){var D=u?p-v+1:p;if(!(D<0)){var m=i.getLine(D),E=m.search(d[0]);if(!(!u&&Ey)&&C(D,E,D+v-1,S))return!0}}};else if(u)var w=function(y,C,D){var m=i.getLine(y),E=[],k,S=0;for(d.lastIndex=0;k=d.exec(m);){var F=k[0].length;if(S=k.index,!F){if(S>=m.length)break;d.lastIndex=S+=1}if(k.index+F>C)break;E.push(k.index,F)}for(var _=E.length-1;_>=0;_-=2){var T=E[_-1],F=E[_];if(D(y,T,y,T+F))return!0}};else var w=function(y,C,D){var m=i.getLine(y),E,k=C;for(d.lastIndex=C;E=d.exec(m);){var S=E[0].length;if(k=E.index,D(y,k,y,k+S))return!0;if(!S&&(d.lastIndex=k+=1,k>=m.length))return!1}};return{forEach:A}}}).call(l.prototype);function a(i,o){function d(u){return/\w/.test(u)||o.regExp?"\\b":""}return d(i[0])+i+d(i[i.length-1])}t.Search=l});ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,r){"use strict";var n=e("../lib/keys"),s=e("../lib/useragent"),c=n.KEY_MODS;function l(i,o){this.platform=o||(s.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(i),this.$singleCommand=!0}function a(i,o){l.call(this,i,o),this.$singleCommand=!1}a.prototype=l.prototype,(function(){this.addCommand=function(o){this.commands[o.name]&&this.removeCommand(o),this.commands[o.name]=o,o.bindKey&&this._buildKeyHash(o)},this.removeCommand=function(o,d){var u=o&&(typeof o=="string"?o:o.name);o=this.commands[u],d||delete this.commands[u];var f=this.commandKeyBinding;for(var h in f){var g=f[h];if(g==o)delete f[h];else if(Array.isArray(g)){var b=g.indexOf(o);b!=-1&&(g.splice(b,1),g.length==1&&(f[h]=g[0]))}}},this.bindKey=function(o,d,u){if(typeof o=="object"&&o&&(u==null&&(u=o.position),o=o[this.platform]),!!o){if(typeof d=="function")return this.addCommand({exec:d,bindKey:o,name:d.name||o});o.split("|").forEach(function(f){var h="";if(f.indexOf(" ")!=-1){var g=f.split(/\s+/);f=g.pop(),g.forEach(function(A){var v=this.parseKeys(A),w=c[v.hashId]+v.key;h+=(h?" ":"")+w,this._addCommandToBinding(h,"chainKeys")},this),h+=" "}var b=this.parseKeys(f),x=c[b.hashId]+b.key;this._addCommandToBinding(h+x,d,u)},this)}};function i(o){return typeof o=="object"&&o.bindKey&&o.bindKey.position||(o.isDefault?-100:0)}this._addCommandToBinding=function(o,d,u){var f=this.commandKeyBinding,h;if(!d)delete f[o];else if(!f[o]||this.$singleCommand)f[o]=d;else{Array.isArray(f[o])?(h=f[o].indexOf(d))!=-1&&f[o].splice(h,1):f[o]=[f[o]],typeof u!="number"&&(u=i(d));var g=f[o];for(h=0;hu)break}g.splice(h,0,d)}},this.addCommands=function(o){o&&Object.keys(o).forEach(function(d){var u=o[d];if(u){if(typeof u=="string")return this.bindKey(u,d);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=d),this.addCommand(u))}},this)},this.removeCommands=function(o){Object.keys(o).forEach(function(d){this.removeCommand(o[d])},this)},this.bindKeys=function(o){Object.keys(o).forEach(function(d){this.bindKey(d,o[d])},this)},this._buildKeyHash=function(o){this.bindKey(o.bindKey,o)},this.parseKeys=function(o){var d=o.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(x){return x}),u=d.pop(),f=n[u];if(n.FUNCTION_KEYS[f])u=n.FUNCTION_KEYS[f].toLowerCase();else if(d.length){if(d.length==1&&d[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var h=0,g=d.length;g--;){var b=n.KEY_MODS[d[g]];if(b==null)return typeof console<"u"&&console.error("invalid modifier "+d[g]+" in "+o),!1;h|=b}return{key:u,hashId:h}},this.findKeyCommand=function(d,u){var f=c[d]+u;return this.commandKeyBinding[f]},this.handleKeyboard=function(o,d,u,f){if(!(f<0)){var h=c[d]+u,g=this.commandKeyBinding[h];return o.$keyChain&&(o.$keyChain+=" "+h,g=this.commandKeyBinding[o.$keyChain]||g),g&&(g=="chainKeys"||g[g.length-1]=="chainKeys")?(o.$keyChain=o.$keyChain||h,{command:"null"}):(o.$keyChain&&((!d||d==4)&&u.length==1?o.$keyChain=o.$keyChain.slice(0,-h.length-1):(d==-1||f>0)&&(o.$keyChain="")),{command:g})}},this.getStatusText=function(o,d){return d.$keyChain||""}}).call(l.prototype),t.HashHandler=l,t.MultiHashHandler=a});ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("../keyboard/hash_handler").MultiHashHandler,c=e("../lib/event_emitter").EventEmitter,l=function(a,i){s.call(this,i,a),this.byName=this.commands,this.setDefaultHandler("exec",function(o){return o.command.exec(o.editor,o.args||{})})};n.inherits(l,s),(function(){n.implement(this,c),this.exec=function(a,i,o){if(Array.isArray(a)){for(var d=a.length;d--;)if(this.exec(a[d],i,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!a||i&&i.$readOnly&&!a.readOnly||a.isAvailable&&!a.isAvailable(i))return!1;var u={editor:i,command:a,args:o};return u.returnValue=this._emit("exec",u),this._signal("afterExec",u),u.returnValue!==!1},this.toggleRecording=function(a){if(!this.$inReplay)return a&&a._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(i){this.macro.push([i.command,i.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(i){typeof i=="string"?this.exec(i,a):this.exec(i[0],a,i[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(a){return a.map(function(i){return typeof i[0]!="string"&&(i[0]=i[0].name),i[1]||(i=i[0]),i})}}).call(l.prototype),t.CommandManager=l});ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,r){"use strict";var n=e("../lib/lang"),s=e("../config"),c=e("../range").Range;function l(a,i){return{win:a,mac:i}}t.commands=[{name:"showSettingsMenu",bindKey:l("Ctrl-,","Command-,"),exec:function(a){s.loadModule("ace/ext/settings_menu",function(i){i.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:l("Alt-E","F4"),exec:function(a){s.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:l("Alt-Shift-E","Shift-F4"),exec:function(a){s.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(a,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:l("Ctrl-A","Command-A"),exec:function(a){a.selectAll()},readOnly:!0},{name:"centerselection",bindKey:l(null,"Ctrl-L"),exec:function(a){a.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:l("Ctrl-L","Command-L"),exec:function(a){var i=parseInt(prompt("Enter line number:"),10);isNaN(i)||a.gotoLine(i)},readOnly:!0},{name:"fold",bindKey:l("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(a){a.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:l("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(a){a.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:l("F2","F2"),exec:function(a){a.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:l("Alt-F2","Alt-F2"),exec:function(a){a.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:l("Alt-0","Command-Option-0"),exec:function(a){a.session.foldAll(),a.session.unfold(a.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:l("Alt-Shift-0","Command-Option-Shift-0"),exec:function(a){a.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:l("Ctrl-K","Command-G"),exec:function(a){a.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:l("Ctrl-Shift-K","Command-Shift-G"),exec:function(a){a.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:l("Alt-K","Ctrl-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:l("Alt-Shift-K","Ctrl-Shift-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findPrevious()},readOnly:!0},{name:"find",bindKey:l("Ctrl-F","Command-F"),exec:function(a){s.loadModule("ace/ext/searchbox",function(i){i.Search(a)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(a){a.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:l("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(a){a.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:l("Ctrl-Home","Command-Home|Command-Up"),exec:function(a){a.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:l("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(a){a.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:l("Up","Up|Ctrl-P"),exec:function(a,i){a.navigateUp(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:l("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(a){a.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:l("Ctrl-End","Command-End|Command-Down"),exec:function(a){a.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:l("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(a){a.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:l("Down","Down|Ctrl-N"),exec:function(a,i){a.navigateDown(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:l("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(a){a.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:l("Ctrl-Left","Option-Left"),exec:function(a){a.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:l("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:l("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(a){a.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:l("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(a){a.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:l("Left","Left|Ctrl-B"),exec:function(a,i){a.navigateLeft(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:l("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(a){a.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:l("Ctrl-Right","Option-Right"),exec:function(a){a.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:l("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:l("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(a){a.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:l("Shift-Right","Shift-Right"),exec:function(a){a.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:l("Right","Right|Ctrl-F"),exec:function(a,i){a.navigateRight(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(a){a.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:l(null,"Option-PageDown"),exec:function(a){a.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:l("PageDown","PageDown|Ctrl-V"),exec:function(a){a.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(a){a.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:l(null,"Option-PageUp"),exec:function(a){a.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(a){a.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:l("Ctrl-Up",null),exec:function(a){a.renderer.scrollBy(0,-2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:l("Ctrl-Down",null),exec:function(a){a.renderer.scrollBy(0,2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:l("Ctrl-Alt-E","Command-Option-E"),exec:function(a){a.commands.toggleRecording(a)},readOnly:!0},{name:"replaymacro",bindKey:l("Ctrl-Shift-E","Command-Shift-E"),exec:function(a){a.commands.replay(a)},readOnly:!0},{name:"jumptomatching",bindKey:l("Ctrl-P","Ctrl-P"),exec:function(a){a.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:l("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(a){a.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:l("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(a){a.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:l(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(a){},readOnly:!0},{name:"cut",exec:function(a){var i=a.getSelectionRange();a._emit("cut",i),a.selection.isEmpty()||(a.session.remove(i),a.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(a,i){a.$handlePaste(i)},scrollIntoView:"cursor"},{name:"removeline",bindKey:l("Ctrl-D","Command-D"),exec:function(a){a.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:l("Ctrl-Shift-D","Command-Shift-D"),exec:function(a){a.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:l("Ctrl-Alt-S","Command-Alt-S"),exec:function(a){a.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:l("Ctrl-/","Command-/"),exec:function(a){a.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:l("Ctrl-Shift-/","Command-Shift-/"),exec:function(a){a.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:l("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(a){a.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:l("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(a){a.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:l("Ctrl-H","Command-Option-F"),exec:function(a){s.loadModule("ace/ext/searchbox",function(i){i.Search(a,!0)})}},{name:"undo",bindKey:l("Ctrl-Z","Command-Z"),exec:function(a){a.undo()}},{name:"redo",bindKey:l("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(a){a.redo()}},{name:"copylinesup",bindKey:l("Alt-Shift-Up","Command-Option-Up"),exec:function(a){a.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:l("Alt-Up","Option-Up"),exec:function(a){a.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:l("Alt-Shift-Down","Command-Option-Down"),exec:function(a){a.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:l("Alt-Down","Option-Down"),exec:function(a){a.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:l("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(a){a.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:l("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(a){a.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:l("Shift-Delete",null),exec:function(a){if(a.selection.isEmpty())a.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:l("Alt-Backspace","Command-Backspace"),exec:function(a){a.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:l("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(a){a.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:l("Ctrl-Shift-Backspace",null),exec:function(a){var i=a.selection.getRange();i.start.column=0,a.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:l("Ctrl-Shift-Delete",null),exec:function(a){var i=a.selection.getRange();i.end.column=Number.MAX_VALUE,a.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:l("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(a){a.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:l("Ctrl-Delete","Alt-Delete"),exec:function(a){a.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:l("Shift-Tab","Shift-Tab"),exec:function(a){a.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:l("Tab","Tab"),exec:function(a){a.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:l("Ctrl-[","Ctrl-["),exec:function(a){a.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:l("Ctrl-]","Ctrl-]"),exec:function(a){a.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(a,i){a.insert(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(a,i){a.insert(n.stringRepeat(i.text||"",i.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:l(null,"Ctrl-O"),exec:function(a){a.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:l("Alt-Shift-X","Ctrl-T"),exec:function(a){a.transposeLetters()},multiSelectAction:function(a){a.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:l("Ctrl-U","Ctrl-U"),exec:function(a){a.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:l("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(a){a.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:l("Ctrl-Shift-L","Command-Shift-L"),exec:function(a){var i=a.selection.getRange();i.start.column=i.end.column=0,i.end.row++,a.selection.setRange(i,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:l(null,null),exec:function(a){for(var i=a.selection.isBackwards(),o=i?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),d=i?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),u=a.session.doc.getLine(o.row).length,f=a.session.doc.getTextRange(a.selection.getRange()),h=f.replace(/\n\s*/," ").length,g=a.session.doc.getLine(o.row),b=o.row+1;b<=d.row+1;b++){var x=n.stringTrimLeft(n.stringTrimRight(a.session.doc.getLine(b)));x.length!==0&&(x=" "+x),g+=x}d.row+10?(a.selection.moveCursorTo(o.row,o.column),a.selection.selectTo(o.row,o.column+h)):(u=a.session.doc.getLine(o.row).length>u?u+1:u,a.selection.moveCursorTo(o.row,u))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:l(null,null),exec:function(a){var i=a.session.doc.getLength()-1,o=a.session.doc.getLine(i).length,d=a.selection.rangeList.ranges,u=[];d.length<1&&(d=[a.selection.getRange()]);for(var f=0;f0&&this.$blockScrolling--;var C=y&&y.scrollIntoView;if(C){switch(C){case"center-animate":C="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var D=this.selection.getRange(),m=this.renderer.layerConfig;(D.start.row>=m.lastRow||D.end.row<=m.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}C=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(p){if(this.$mergeUndoDeltas){var y=this.prevOp,C=this.$mergeableCommands,D=y.command&&p.command.name==y.command.name;if(p.command.name=="insertstring"){var m=p.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),D=D&&this.mergeNextCommand&&(!/\s/.test(m)||/\s/.test(y.args)),this.mergeNextCommand=!0}else D=D&&C.indexOf(p.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(D=!1),D?this.session.mergeUndoDeltas=!0:C.indexOf(p.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(p,y){if(p&&typeof p=="string"){this.$keybindingId=p;var C=this;A.loadModule(["keybinding",p],function(D){C.$keybindingId==p&&C.keyBinding.setKeyboardHandler(D&&D.handler),y&&y()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(p),y&&y()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(p){if(this.session!=p){this.curOp&&this.endOperation(),this.curOp={};var y=this.session;if(y){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 C=this.session.getSelection();C.off("changeCursor",this.$onCursorChange),C.off("changeSelection",this.$onSelectionChange)}this.session=p,p?(this.$onDocumentChange=this.onDocumentChange.bind(this),p.on("change",this.$onDocumentChange),this.renderer.setSession(p),this.$onChangeMode=this.onChangeMode.bind(this),p.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),p.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),p.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),p.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),p.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),p.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=p.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,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(p)),this._signal("changeSession",{session:p,oldSession:y}),this.curOp=null,y&&y._signal("changeEditor",{oldEditor:this}),p&&p._signal("changeEditor",{editor:this}),p&&p.bgTokenizer&&p.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(p,y){return this.session.doc.setValue(p),y?y==1?this.navigateFileEnd():y==-1&&this.navigateFileStart():this.selectAll(),p},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(p){this.renderer.onResize(p)},this.setTheme=function(p,y){this.renderer.setTheme(p,y)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(p){this.renderer.setStyle(p)},this.unsetStyle=function(p){this.renderer.unsetStyle(p)},this.getFontSize=function(){return this.getOption("fontSize")||s.computedStyle(this.container,"fontSize")},this.setFontSize=function(p){this.setOption("fontSize",p)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var p=this;this.$highlightPending=!0,setTimeout(function(){p.$highlightPending=!1;var y=p.session;if(!(!y||!y.bgTokenizer)){var C=y.findMatchingBracket(p.getCursorPosition());if(C)var D=new h(C.row,C.column,C.row,C.column+1);else if(y.$mode.getMatching)var D=y.$mode.getMatching(p.session);D&&(y.$bracketHighlight=y.addMarker(D,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var p=this;this.$highlightTagPending=!0,setTimeout(function(){p.$highlightTagPending=!1;var y=p.session;if(!(!y||!y.bgTokenizer)){var C=p.getCursorPosition(),D=new v(p.session,C.row,C.column),m=D.getCurrentToken();if(!m||!/\b(?:tag-open|tag-name)/.test(m.type)){y.removeMarker(y.$tagHighlight),y.$tagHighlight=null;return}if(!(m.type.indexOf("tag-open")!=-1&&(m=D.stepForward(),!m))){var E=m.value,k=0,S=D.stepBackward();if(S.value=="<")do S=m,m=D.stepForward(),m&&m.value===E&&m.type.indexOf("tag-name")!==-1&&(S.value==="<"?k++:S.value==="=0);else{do m=S,S=D.stepBackward(),m&&m.value===E&&m.type.indexOf("tag-name")!==-1&&(S.value==="<"?k++:S.value==="1)&&(y=!1)),p.$highlightLineMarker&&!y)p.removeMarker(p.$highlightLineMarker.id),p.$highlightLineMarker=null;else if(!p.$highlightLineMarker&&y){var C=new h(y.row,y.column,y.row,1/0);C.id=p.addMarker(C,"ace_active-line","screenLine"),p.$highlightLineMarker=C}else y&&(p.$highlightLineMarker.start.row=y.row,p.$highlightLineMarker.end.row=y.row,p.$highlightLineMarker.start.column=y.column,p._signal("changeBackMarker"))},this.onSelectionChange=function(p){var y=this.session;if(y.$selectionMarker&&y.removeMarker(y.$selectionMarker),y.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var C=this.selection.getRange(),D=this.getSelectionStyle();y.$selectionMarker=y.addMarker(C,"ace_selection",D)}var m=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(m),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var p=this.session,y=this.getSelectionRange();if(!(y.isEmpty()||y.isMultiLine())){var C=y.start.column-1,D=y.end.column+1,m=p.getLine(y.start.row),E=m.length,k=m.substring(Math.max(C,0),Math.min(D,E));if(!(C>=0&&/^[\w\d]/.test(k)||D<=E&&/[\w\d]$/.test(k))&&(k=m.substring(y.start.column,y.end.column),!!/^[\w\d]+$/.test(k))){var S=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:k});return S}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(p){this.renderer.updateText(),this._emit("changeMode",p)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var p=this.getSelectedText();return this._signal("copy",p),p},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(p,y){var C={text:p,event:y};this.commands.exec("paste",this,C)},this.$handlePaste=function(p){typeof p=="string"&&(p={text:p}),this._signal("paste",p);var y=p.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(y);else{var C=y.split(/\r\n|\r|\n/),D=this.selection.rangeList.ranges;if(C.length>D.length||C.length<2||!C[1])return this.commands.exec("insertstring",this,y);for(var m=D.length;m--;){var E=D[m];E.isEmpty()||this.session.remove(E),this.session.insert(E.start,C[m])}}},this.execCommand=function(p,y){return this.commands.exec(p,this,y)},this.insert=function(p,y){var C=this.session,D=C.getMode(),m=this.getCursorPosition();if(this.getBehavioursEnabled()&&!y){var E=D.transformAction(C.getState(m.row),"insertion",this,C,p);E&&(p!==E.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),p=E.text)}if(p==" "&&(p=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&p.indexOf(` -`)==-1){var k=new h.fromPoints(m,m);k.end.column+=p.length,this.session.remove(k)}}else{var k=this.getSelectionRange();m=this.session.remove(k),this.clearSelection()}if(p==` +`),u=[],h=0;h=b;y--)if(w(y,Number.MAX_VALUE,p))return;if(o.wrap!=!1){for(y=x,b=g.row;y>=b;y--)if(w(y,Number.MAX_VALUE,p))return}}};else var A=function(y){var C=g.row;if(!w(C,g.column,y)){for(C=C+1;C<=x;C++)if(w(C,0,y))return;if(o.wrap!=!1){for(C=b,x=g.row;C<=x;C++)if(w(C,0,y))return}}};if(o.$isMultiLine)var v=d.length,w=function(p,y,C){var D=u?p-v+1:p;if(!(D<0)){var m=i.getLine(D),E=m.search(d[0]);if(!(!u&&Ey)&&C(D,E,D+v-1,S))return!0}}};else if(u)var w=function(y,C,D){var m=i.getLine(y),E=[],k,S=0;for(d.lastIndex=0;k=d.exec(m);){var F=k[0].length;if(S=k.index,!F){if(S>=m.length)break;d.lastIndex=S+=1}if(k.index+F>C)break;E.push(k.index,F)}for(var _=E.length-1;_>=0;_-=2){var T=E[_-1],F=E[_];if(D(y,T,y,T+F))return!0}};else var w=function(y,C,D){var m=i.getLine(y),E,k=C;for(d.lastIndex=C;E=d.exec(m);){var S=E[0].length;if(k=E.index,D(y,k,y,k+S))return!0;if(!S&&(d.lastIndex=k+=1,k>=m.length))return!1}};return{forEach:A}}}).call(l.prototype);function a(i,o){function d(u){return/\w/.test(u)||o.regExp?"\\b":""}return d(i[0])+i+d(i[i.length-1])}t.Search=l});ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,r){"use strict";var n=e("../lib/keys"),s=e("../lib/useragent"),c=n.KEY_MODS;function l(i,o){this.platform=o||(s.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(i),this.$singleCommand=!0}function a(i,o){l.call(this,i,o),this.$singleCommand=!1}a.prototype=l.prototype,(function(){this.addCommand=function(o){this.commands[o.name]&&this.removeCommand(o),this.commands[o.name]=o,o.bindKey&&this._buildKeyHash(o)},this.removeCommand=function(o,d){var u=o&&(typeof o=="string"?o:o.name);o=this.commands[u],d||delete this.commands[u];var h=this.commandKeyBinding;for(var f in h){var g=h[f];if(g==o)delete h[f];else if(Array.isArray(g)){var b=g.indexOf(o);b!=-1&&(g.splice(b,1),g.length==1&&(h[f]=g[0]))}}},this.bindKey=function(o,d,u){if(typeof o=="object"&&o&&(u==null&&(u=o.position),o=o[this.platform]),!!o){if(typeof d=="function")return this.addCommand({exec:d,bindKey:o,name:d.name||o});o.split("|").forEach(function(h){var f="";if(h.indexOf(" ")!=-1){var g=h.split(/\s+/);h=g.pop(),g.forEach(function(A){var v=this.parseKeys(A),w=c[v.hashId]+v.key;f+=(f?" ":"")+w,this._addCommandToBinding(f,"chainKeys")},this),f+=" "}var b=this.parseKeys(h),x=c[b.hashId]+b.key;this._addCommandToBinding(f+x,d,u)},this)}};function i(o){return typeof o=="object"&&o.bindKey&&o.bindKey.position||(o.isDefault?-100:0)}this._addCommandToBinding=function(o,d,u){var h=this.commandKeyBinding,f;if(!d)delete h[o];else if(!h[o]||this.$singleCommand)h[o]=d;else{Array.isArray(h[o])?(f=h[o].indexOf(d))!=-1&&h[o].splice(f,1):h[o]=[h[o]],typeof u!="number"&&(u=i(d));var g=h[o];for(f=0;fu)break}g.splice(f,0,d)}},this.addCommands=function(o){o&&Object.keys(o).forEach(function(d){var u=o[d];if(u){if(typeof u=="string")return this.bindKey(u,d);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=d),this.addCommand(u))}},this)},this.removeCommands=function(o){Object.keys(o).forEach(function(d){this.removeCommand(o[d])},this)},this.bindKeys=function(o){Object.keys(o).forEach(function(d){this.bindKey(d,o[d])},this)},this._buildKeyHash=function(o){this.bindKey(o.bindKey,o)},this.parseKeys=function(o){var d=o.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(x){return x}),u=d.pop(),h=n[u];if(n.FUNCTION_KEYS[h])u=n.FUNCTION_KEYS[h].toLowerCase();else if(d.length){if(d.length==1&&d[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var f=0,g=d.length;g--;){var b=n.KEY_MODS[d[g]];if(b==null)return typeof console<"u"&&console.error("invalid modifier "+d[g]+" in "+o),!1;f|=b}return{key:u,hashId:f}},this.findKeyCommand=function(d,u){var h=c[d]+u;return this.commandKeyBinding[h]},this.handleKeyboard=function(o,d,u,h){if(!(h<0)){var f=c[d]+u,g=this.commandKeyBinding[f];return o.$keyChain&&(o.$keyChain+=" "+f,g=this.commandKeyBinding[o.$keyChain]||g),g&&(g=="chainKeys"||g[g.length-1]=="chainKeys")?(o.$keyChain=o.$keyChain||f,{command:"null"}):(o.$keyChain&&((!d||d==4)&&u.length==1?o.$keyChain=o.$keyChain.slice(0,-f.length-1):(d==-1||h>0)&&(o.$keyChain="")),{command:g})}},this.getStatusText=function(o,d){return d.$keyChain||""}}).call(l.prototype),t.HashHandler=l,t.MultiHashHandler=a});ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("../keyboard/hash_handler").MultiHashHandler,c=e("../lib/event_emitter").EventEmitter,l=function(a,i){s.call(this,i,a),this.byName=this.commands,this.setDefaultHandler("exec",function(o){return o.command.exec(o.editor,o.args||{})})};n.inherits(l,s),(function(){n.implement(this,c),this.exec=function(a,i,o){if(Array.isArray(a)){for(var d=a.length;d--;)if(this.exec(a[d],i,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!a||i&&i.$readOnly&&!a.readOnly||a.isAvailable&&!a.isAvailable(i))return!1;var u={editor:i,command:a,args:o};return u.returnValue=this._emit("exec",u),this._signal("afterExec",u),u.returnValue!==!1},this.toggleRecording=function(a){if(!this.$inReplay)return a&&a._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(i){this.macro.push([i.command,i.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(i){typeof i=="string"?this.exec(i,a):this.exec(i[0],a,i[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(a){return a.map(function(i){return typeof i[0]!="string"&&(i[0]=i[0].name),i[1]||(i=i[0]),i})}}).call(l.prototype),t.CommandManager=l});ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,r){"use strict";var n=e("../lib/lang"),s=e("../config"),c=e("../range").Range;function l(a,i){return{win:a,mac:i}}t.commands=[{name:"showSettingsMenu",bindKey:l("Ctrl-,","Command-,"),exec:function(a){s.loadModule("ace/ext/settings_menu",function(i){i.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:l("Alt-E","F4"),exec:function(a){s.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:l("Alt-Shift-E","Shift-F4"),exec:function(a){s.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(a,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:l("Ctrl-A","Command-A"),exec:function(a){a.selectAll()},readOnly:!0},{name:"centerselection",bindKey:l(null,"Ctrl-L"),exec:function(a){a.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:l("Ctrl-L","Command-L"),exec:function(a){var i=parseInt(prompt("Enter line number:"),10);isNaN(i)||a.gotoLine(i)},readOnly:!0},{name:"fold",bindKey:l("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(a){a.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:l("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(a){a.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:l("F2","F2"),exec:function(a){a.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:l("Alt-F2","Alt-F2"),exec:function(a){a.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:l("Alt-0","Command-Option-0"),exec:function(a){a.session.foldAll(),a.session.unfold(a.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:l("Alt-Shift-0","Command-Option-Shift-0"),exec:function(a){a.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:l("Ctrl-K","Command-G"),exec:function(a){a.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:l("Ctrl-Shift-K","Command-Shift-G"),exec:function(a){a.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:l("Alt-K","Ctrl-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:l("Alt-Shift-K","Ctrl-Shift-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findPrevious()},readOnly:!0},{name:"find",bindKey:l("Ctrl-F","Command-F"),exec:function(a){s.loadModule("ace/ext/searchbox",function(i){i.Search(a)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(a){a.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:l("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(a){a.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:l("Ctrl-Home","Command-Home|Command-Up"),exec:function(a){a.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:l("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(a){a.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:l("Up","Up|Ctrl-P"),exec:function(a,i){a.navigateUp(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:l("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(a){a.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:l("Ctrl-End","Command-End|Command-Down"),exec:function(a){a.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:l("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(a){a.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:l("Down","Down|Ctrl-N"),exec:function(a,i){a.navigateDown(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:l("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(a){a.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:l("Ctrl-Left","Option-Left"),exec:function(a){a.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:l("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:l("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(a){a.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:l("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(a){a.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:l("Left","Left|Ctrl-B"),exec:function(a,i){a.navigateLeft(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:l("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(a){a.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:l("Ctrl-Right","Option-Right"),exec:function(a){a.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:l("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:l("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(a){a.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:l("Shift-Right","Shift-Right"),exec:function(a){a.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:l("Right","Right|Ctrl-F"),exec:function(a,i){a.navigateRight(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(a){a.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:l(null,"Option-PageDown"),exec:function(a){a.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:l("PageDown","PageDown|Ctrl-V"),exec:function(a){a.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(a){a.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:l(null,"Option-PageUp"),exec:function(a){a.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(a){a.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:l("Ctrl-Up",null),exec:function(a){a.renderer.scrollBy(0,-2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:l("Ctrl-Down",null),exec:function(a){a.renderer.scrollBy(0,2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:l("Ctrl-Alt-E","Command-Option-E"),exec:function(a){a.commands.toggleRecording(a)},readOnly:!0},{name:"replaymacro",bindKey:l("Ctrl-Shift-E","Command-Shift-E"),exec:function(a){a.commands.replay(a)},readOnly:!0},{name:"jumptomatching",bindKey:l("Ctrl-P","Ctrl-P"),exec:function(a){a.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:l("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(a){a.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:l("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(a){a.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:l(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(a){},readOnly:!0},{name:"cut",exec:function(a){var i=a.getSelectionRange();a._emit("cut",i),a.selection.isEmpty()||(a.session.remove(i),a.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(a,i){a.$handlePaste(i)},scrollIntoView:"cursor"},{name:"removeline",bindKey:l("Ctrl-D","Command-D"),exec:function(a){a.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:l("Ctrl-Shift-D","Command-Shift-D"),exec:function(a){a.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:l("Ctrl-Alt-S","Command-Alt-S"),exec:function(a){a.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:l("Ctrl-/","Command-/"),exec:function(a){a.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:l("Ctrl-Shift-/","Command-Shift-/"),exec:function(a){a.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:l("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(a){a.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:l("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(a){a.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:l("Ctrl-H","Command-Option-F"),exec:function(a){s.loadModule("ace/ext/searchbox",function(i){i.Search(a,!0)})}},{name:"undo",bindKey:l("Ctrl-Z","Command-Z"),exec:function(a){a.undo()}},{name:"redo",bindKey:l("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(a){a.redo()}},{name:"copylinesup",bindKey:l("Alt-Shift-Up","Command-Option-Up"),exec:function(a){a.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:l("Alt-Up","Option-Up"),exec:function(a){a.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:l("Alt-Shift-Down","Command-Option-Down"),exec:function(a){a.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:l("Alt-Down","Option-Down"),exec:function(a){a.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:l("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(a){a.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:l("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(a){a.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:l("Shift-Delete",null),exec:function(a){if(a.selection.isEmpty())a.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:l("Alt-Backspace","Command-Backspace"),exec:function(a){a.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:l("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(a){a.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:l("Ctrl-Shift-Backspace",null),exec:function(a){var i=a.selection.getRange();i.start.column=0,a.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:l("Ctrl-Shift-Delete",null),exec:function(a){var i=a.selection.getRange();i.end.column=Number.MAX_VALUE,a.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:l("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(a){a.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:l("Ctrl-Delete","Alt-Delete"),exec:function(a){a.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:l("Shift-Tab","Shift-Tab"),exec:function(a){a.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:l("Tab","Tab"),exec:function(a){a.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:l("Ctrl-[","Ctrl-["),exec:function(a){a.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:l("Ctrl-]","Ctrl-]"),exec:function(a){a.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(a,i){a.insert(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(a,i){a.insert(n.stringRepeat(i.text||"",i.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:l(null,"Ctrl-O"),exec:function(a){a.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:l("Alt-Shift-X","Ctrl-T"),exec:function(a){a.transposeLetters()},multiSelectAction:function(a){a.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:l("Ctrl-U","Ctrl-U"),exec:function(a){a.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:l("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(a){a.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:l("Ctrl-Shift-L","Command-Shift-L"),exec:function(a){var i=a.selection.getRange();i.start.column=i.end.column=0,i.end.row++,a.selection.setRange(i,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:l(null,null),exec:function(a){for(var i=a.selection.isBackwards(),o=i?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),d=i?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),u=a.session.doc.getLine(o.row).length,h=a.session.doc.getTextRange(a.selection.getRange()),f=h.replace(/\n\s*/," ").length,g=a.session.doc.getLine(o.row),b=o.row+1;b<=d.row+1;b++){var x=n.stringTrimLeft(n.stringTrimRight(a.session.doc.getLine(b)));x.length!==0&&(x=" "+x),g+=x}d.row+10?(a.selection.moveCursorTo(o.row,o.column),a.selection.selectTo(o.row,o.column+f)):(u=a.session.doc.getLine(o.row).length>u?u+1:u,a.selection.moveCursorTo(o.row,u))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:l(null,null),exec:function(a){var i=a.session.doc.getLength()-1,o=a.session.doc.getLine(i).length,d=a.selection.rangeList.ranges,u=[];d.length<1&&(d=[a.selection.getRange()]);for(var h=0;h0&&this.$blockScrolling--;var C=y&&y.scrollIntoView;if(C){switch(C){case"center-animate":C="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var D=this.selection.getRange(),m=this.renderer.layerConfig;(D.start.row>=m.lastRow||D.end.row<=m.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}C=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(p){if(this.$mergeUndoDeltas){var y=this.prevOp,C=this.$mergeableCommands,D=y.command&&p.command.name==y.command.name;if(p.command.name=="insertstring"){var m=p.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),D=D&&this.mergeNextCommand&&(!/\s/.test(m)||/\s/.test(y.args)),this.mergeNextCommand=!0}else D=D&&C.indexOf(p.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(D=!1),D?this.session.mergeUndoDeltas=!0:C.indexOf(p.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(p,y){if(p&&typeof p=="string"){this.$keybindingId=p;var C=this;A.loadModule(["keybinding",p],function(D){C.$keybindingId==p&&C.keyBinding.setKeyboardHandler(D&&D.handler),y&&y()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(p),y&&y()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(p){if(this.session!=p){this.curOp&&this.endOperation(),this.curOp={};var y=this.session;if(y){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 C=this.session.getSelection();C.off("changeCursor",this.$onCursorChange),C.off("changeSelection",this.$onSelectionChange)}this.session=p,p?(this.$onDocumentChange=this.onDocumentChange.bind(this),p.on("change",this.$onDocumentChange),this.renderer.setSession(p),this.$onChangeMode=this.onChangeMode.bind(this),p.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),p.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),p.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),p.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),p.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),p.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=p.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,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(p)),this._signal("changeSession",{session:p,oldSession:y}),this.curOp=null,y&&y._signal("changeEditor",{oldEditor:this}),p&&p._signal("changeEditor",{editor:this}),p&&p.bgTokenizer&&p.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(p,y){return this.session.doc.setValue(p),y?y==1?this.navigateFileEnd():y==-1&&this.navigateFileStart():this.selectAll(),p},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(p){this.renderer.onResize(p)},this.setTheme=function(p,y){this.renderer.setTheme(p,y)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(p){this.renderer.setStyle(p)},this.unsetStyle=function(p){this.renderer.unsetStyle(p)},this.getFontSize=function(){return this.getOption("fontSize")||s.computedStyle(this.container,"fontSize")},this.setFontSize=function(p){this.setOption("fontSize",p)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var p=this;this.$highlightPending=!0,setTimeout(function(){p.$highlightPending=!1;var y=p.session;if(!(!y||!y.bgTokenizer)){var C=y.findMatchingBracket(p.getCursorPosition());if(C)var D=new f(C.row,C.column,C.row,C.column+1);else if(y.$mode.getMatching)var D=y.$mode.getMatching(p.session);D&&(y.$bracketHighlight=y.addMarker(D,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var p=this;this.$highlightTagPending=!0,setTimeout(function(){p.$highlightTagPending=!1;var y=p.session;if(!(!y||!y.bgTokenizer)){var C=p.getCursorPosition(),D=new v(p.session,C.row,C.column),m=D.getCurrentToken();if(!m||!/\b(?:tag-open|tag-name)/.test(m.type)){y.removeMarker(y.$tagHighlight),y.$tagHighlight=null;return}if(!(m.type.indexOf("tag-open")!=-1&&(m=D.stepForward(),!m))){var E=m.value,k=0,S=D.stepBackward();if(S.value=="<")do S=m,m=D.stepForward(),m&&m.value===E&&m.type.indexOf("tag-name")!==-1&&(S.value==="<"?k++:S.value==="=0);else{do m=S,S=D.stepBackward(),m&&m.value===E&&m.type.indexOf("tag-name")!==-1&&(S.value==="<"?k++:S.value==="1)&&(y=!1)),p.$highlightLineMarker&&!y)p.removeMarker(p.$highlightLineMarker.id),p.$highlightLineMarker=null;else if(!p.$highlightLineMarker&&y){var C=new f(y.row,y.column,y.row,1/0);C.id=p.addMarker(C,"ace_active-line","screenLine"),p.$highlightLineMarker=C}else y&&(p.$highlightLineMarker.start.row=y.row,p.$highlightLineMarker.end.row=y.row,p.$highlightLineMarker.start.column=y.column,p._signal("changeBackMarker"))},this.onSelectionChange=function(p){var y=this.session;if(y.$selectionMarker&&y.removeMarker(y.$selectionMarker),y.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var C=this.selection.getRange(),D=this.getSelectionStyle();y.$selectionMarker=y.addMarker(C,"ace_selection",D)}var m=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(m),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var p=this.session,y=this.getSelectionRange();if(!(y.isEmpty()||y.isMultiLine())){var C=y.start.column-1,D=y.end.column+1,m=p.getLine(y.start.row),E=m.length,k=m.substring(Math.max(C,0),Math.min(D,E));if(!(C>=0&&/^[\w\d]/.test(k)||D<=E&&/[\w\d]$/.test(k))&&(k=m.substring(y.start.column,y.end.column),!!/^[\w\d]+$/.test(k))){var S=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:k});return S}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(p){this.renderer.updateText(),this._emit("changeMode",p)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var p=this.getSelectedText();return this._signal("copy",p),p},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(p,y){var C={text:p,event:y};this.commands.exec("paste",this,C)},this.$handlePaste=function(p){typeof p=="string"&&(p={text:p}),this._signal("paste",p);var y=p.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(y);else{var C=y.split(/\r\n|\r|\n/),D=this.selection.rangeList.ranges;if(C.length>D.length||C.length<2||!C[1])return this.commands.exec("insertstring",this,y);for(var m=D.length;m--;){var E=D[m];E.isEmpty()||this.session.remove(E),this.session.insert(E.start,C[m])}}},this.execCommand=function(p,y){return this.commands.exec(p,this,y)},this.insert=function(p,y){var C=this.session,D=C.getMode(),m=this.getCursorPosition();if(this.getBehavioursEnabled()&&!y){var E=D.transformAction(C.getState(m.row),"insertion",this,C,p);E&&(p!==E.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),p=E.text)}if(p==" "&&(p=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&p.indexOf(` +`)==-1){var k=new f.fromPoints(m,m);k.end.column+=p.length,this.session.remove(k)}}else{var k=this.getSelectionRange();m=this.session.remove(k),this.clearSelection()}if(p==` `||p==`\r -`){var T=C.getLine(m.row);if(m.column>T.search(/\S|$/)){var S=T.substr(m.column).search(/\S|$/);C.doc.removeInLine(m.row,m.column,m.column+S)}}this.clearSelection();var F=m.column,_=C.getState(m.row),T=C.getLine(m.row),B=D.checkOutdent(_,T,p),N=C.insert(m,p);if(E&&E.selection&&(E.selection.length==2?this.selection.setSelectionRange(new h(m.row,F+E.selection[0],m.row,F+E.selection[1])):this.selection.setSelectionRange(new h(m.row+E.selection[0],E.selection[1],m.row+E.selection[2],E.selection[3]))),C.getDocument().isNewLine(p)){var W=D.getNextLineIndent(_,T.slice(0,m.column),C.getTabString());C.insert({row:m.row+1,column:0},W)}B&&D.autoOutdent(_,C,m.row)},this.onTextInput=function(p){this.keyBinding.onTextInput(p)},this.onCommandKey=function(p,y,C){this.keyBinding.onCommandKey(p,y,C)},this.setOverwrite=function(p){this.session.setOverwrite(p)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(p){this.setOption("scrollSpeed",p)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(p){this.setOption("dragDelay",p)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(p){this.setOption("selectionStyle",p)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(p){this.setOption("highlightActiveLine",p)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(p){this.setOption("highlightGutterLine",p)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(p){this.setOption("highlightSelectedWord",p)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(p){this.renderer.setAnimatedScroll(p)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(p){this.renderer.setShowInvisibles(p)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(p){this.renderer.setDisplayIndentGuides(p)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(p){this.renderer.setShowPrintMargin(p)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(p){this.renderer.setPrintMarginColumn(p)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(p){this.setOption("readOnly",p)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(p){this.setOption("behavioursEnabled",p)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(p){this.setOption("wrapBehavioursEnabled",p)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(p){this.setOption("showFoldWidgets",p)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(p){this.setOption("fadeFoldWidgets",p)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(p){this.selection.isEmpty()&&(p=="left"?this.selection.selectLeft():this.selection.selectRight());var y=this.getSelectionRange();if(this.getBehavioursEnabled()){var C=this.session,D=C.getState(y.start.row),m=C.getMode().transformAction(D,"deletion",this,C,y);if(y.end.column===0){var E=C.getTextRange(y);if(E[E.length-1]==` +`){var T=C.getLine(m.row);if(m.column>T.search(/\S|$/)){var S=T.substr(m.column).search(/\S|$/);C.doc.removeInLine(m.row,m.column,m.column+S)}}this.clearSelection();var F=m.column,_=C.getState(m.row),T=C.getLine(m.row),O=D.checkOutdent(_,T,p),B=C.insert(m,p);if(E&&E.selection&&(E.selection.length==2?this.selection.setSelectionRange(new f(m.row,F+E.selection[0],m.row,F+E.selection[1])):this.selection.setSelectionRange(new f(m.row+E.selection[0],E.selection[1],m.row+E.selection[2],E.selection[3]))),C.getDocument().isNewLine(p)){var W=D.getNextLineIndent(_,T.slice(0,m.column),C.getTabString());C.insert({row:m.row+1,column:0},W)}O&&D.autoOutdent(_,C,m.row)},this.onTextInput=function(p){this.keyBinding.onTextInput(p)},this.onCommandKey=function(p,y,C){this.keyBinding.onCommandKey(p,y,C)},this.setOverwrite=function(p){this.session.setOverwrite(p)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(p){this.setOption("scrollSpeed",p)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(p){this.setOption("dragDelay",p)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(p){this.setOption("selectionStyle",p)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(p){this.setOption("highlightActiveLine",p)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(p){this.setOption("highlightGutterLine",p)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(p){this.setOption("highlightSelectedWord",p)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(p){this.renderer.setAnimatedScroll(p)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(p){this.renderer.setShowInvisibles(p)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(p){this.renderer.setDisplayIndentGuides(p)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(p){this.renderer.setShowPrintMargin(p)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(p){this.renderer.setPrintMarginColumn(p)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(p){this.setOption("readOnly",p)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(p){this.setOption("behavioursEnabled",p)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(p){this.setOption("wrapBehavioursEnabled",p)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(p){this.setOption("showFoldWidgets",p)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(p){this.setOption("fadeFoldWidgets",p)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(p){this.selection.isEmpty()&&(p=="left"?this.selection.selectLeft():this.selection.selectRight());var y=this.getSelectionRange();if(this.getBehavioursEnabled()){var C=this.session,D=C.getState(y.start.row),m=C.getMode().transformAction(D,"deletion",this,C,y);if(y.end.column===0){var E=C.getTextRange(y);if(E[E.length-1]==` `){var k=C.getLine(y.end.row);/^\s+$/.test(k)&&(y.end.column=k.length)}}m&&(y=m)}this.session.remove(y),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var p=this.getSelectionRange();p.start.column==p.end.column&&p.start.row==p.end.row&&(p.end.column=0,p.end.row++),this.session.remove(p),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var p=this.getCursorPosition();this.insert(` -`),this.moveCursorToPosition(p)},this.transposeLetters=function(){if(this.selection.isEmpty()){var p=this.getCursorPosition(),y=p.column;if(y!==0){var C=this.session.getLine(p.row),D,m;yS.toLowerCase()?1:0});for(var m=new h(0,0,0,0),D=p.first;D<=p.last;D++){var E=y.getLine(D);m.start.row=D,m.end.row=D,m.end.column=E.length,y.replace(m,C[D-p.first])}},this.toggleCommentLines=function(){var p=this.session.getState(this.getCursorPosition().row),y=this.$getSelectedRows();this.session.getMode().toggleCommentLines(p,this.session,y.first,y.last)},this.toggleBlockComment=function(){var p=this.getCursorPosition(),y=this.session.getState(p.row),C=this.getSelectionRange();this.session.getMode().toggleBlockComment(y,this.session,C,p)},this.getNumberAt=function(p,y){var C=/[\-]?[0-9]+(?:\.[0-9]+)?/g;C.lastIndex=0;for(var D=this.session.getLine(p);C.lastIndex=y){var E={value:m[0],start:m.index,end:m.index+m[0].length};return E}}return null},this.modifyNumber=function(p){var y=this.selection.getCursor().row,C=this.selection.getCursor().column,D=new h(y,C-1,y,C),m=this.session.getTextRange(D);if(!isNaN(parseFloat(m))&&isFinite(m)){var E=this.getNumberAt(y,C);if(E){var k=E.value.indexOf(".")>=0?E.start+E.value.indexOf(".")+1:E.end,S=E.start+E.value.length-k,F=parseFloat(E.value);F*=Math.pow(10,S),k!==E.end&&CW+1)break;W=H.last}for(T--,S=this.session.$moveLines(N,W,y?0:p),y&&p==-1&&(B=T+1);B<=T;)k[B].moveBy(S,0),B++;y||(S=0),F+=S}m.fromOrientedRange(m.ranges[0]),m.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(p){return p=(p||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(p.start.row),last:this.session.getRowFoldEnd(p.end.row)}},this.onCompositionStart=function(p){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(p){this.renderer.setCompositionText(p)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(p){return p>=this.getFirstVisibleRow()&&p<=this.getLastVisibleRow()},this.isRowFullyVisible=function(p){return p>=this.renderer.getFirstFullyVisibleRow()&&p<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(p,y){var C=this.renderer,D=this.renderer.layerConfig,m=p*Math.floor(D.height/D.lineHeight);this.$blockScrolling++,y===!0?this.selection.$moveSelection(function(){this.moveCursorBy(m,0)}):y===!1&&(this.selection.moveCursorBy(m,0),this.selection.clearSelection()),this.$blockScrolling--;var E=C.scrollTop;C.scrollBy(0,m*D.lineHeight),y!=null&&C.scrollCursorIntoView(null,.5),C.animateScrolling(E)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(p){this.renderer.scrollToRow(p)},this.scrollToLine=function(p,y,C,D){this.renderer.scrollToLine(p,y,C,D)},this.centerSelection=function(){var p=this.getSelectionRange(),y={row:Math.floor(p.start.row+(p.end.row-p.start.row)/2),column:Math.floor(p.start.column+(p.end.column-p.start.column)/2)};this.renderer.alignCursor(y,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(p,y){this.selection.moveCursorTo(p,y)},this.moveCursorToPosition=function(p){this.selection.moveCursorToPosition(p)},this.jumpToMatching=function(p,y){var C=this.getCursorPosition(),D=new v(this.session,C.row,C.column),m=D.getCurrentToken(),E=m||D.stepForward();if(E){var k,S=!1,F={},_=C.column-E.start,T,B={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(E.value.match(/[{}()\[\]]/g)){for(;_=0;--E)this.$tryReplace(C[E],p)&&D++;return this.selection.setSelectionRange(m),this.$blockScrolling-=1,D},this.$tryReplace=function(p,y){var C=this.session.getTextRange(p);return y=this.$search.replace(C,y),y!==null?(p.end=this.session.replace(p,y),p):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(p,y,C){y||(y={}),typeof p=="string"||p instanceof RegExp?y.needle=p:typeof p=="object"&&n.mixin(y,p);var D=this.selection.getRange();y.needle==null&&(p=this.session.getTextRange(D)||this.$search.$options.needle,p||(D=this.session.getWordRange(D.start.row,D.start.column),p=this.session.getTextRange(D)),this.$search.set({needle:p})),this.$search.set(y),y.start||this.$search.set({start:D});var m=this.$search.find(this.session);if(y.preventScroll)return m;if(m)return this.revealRange(m,C),m;y.backwards?D.start=D.end:D.end=D.start,this.selection.setRange(D)},this.findNext=function(p,y){this.find({skipCurrent:!0,backwards:!1},p,y)},this.findPrevious=function(p,y){this.find(p,{skipCurrent:!0,backwards:!0},y)},this.revealRange=function(p,y){this.$blockScrolling+=1,this.session.unfold(p),this.selection.setSelectionRange(p),this.$blockScrolling-=1;var C=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(p.start,p.end,.5),y!==!1&&this.renderer.animateScrolling(C)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(p){if(p){var y,C=this,D=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var m=this.$scrollAnchor;m.style.cssText="position:absolute",this.container.insertBefore(m,this.container.firstChild);var E=this.on("changeSelection",function(){D=!0}),k=this.renderer.on("beforeRender",function(){D&&(y=C.renderer.container.getBoundingClientRect())}),S=this.renderer.on("afterRender",function(){if(D&&y&&(C.isFocused()||C.searchBox&&C.searchBox.isFocused())){var F=C.renderer,_=F.$cursorLayer.$pixelPos,T=F.layerConfig,B=_.top-T.offset;_.top>=0&&B+y.top<0?D=!0:_.topwindow.innerHeight?D=!1:D=null,D!=null&&(m.style.top=B+"px",m.style.left=_.left+"px",m.style.height=T.lineHeight+"px",m.scrollIntoView(D)),D=y=null}});this.setAutoScrollEditorIntoView=function(F){F||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",E),this.renderer.off("afterRender",S),this.renderer.off("beforeRender",k))}}},this.$resetCursorStyle=function(){var p=this.$cursorStyle||"ace",y=this.renderer.$cursorLayer;y&&(y.setSmoothBlinking(/smooth/.test(p)),y.isBlinking=!this.$readOnly&&p!="wide",s.setCssClass(y.element,"ace_slim-cursors",/slim/.test(p)))}}).call(w.prototype),A.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(p){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:p})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(p){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(p){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(p){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(p){this.setAutoScrollEditorIntoView(p)}},keyboardHandler:{set:function(p){this.setKeyboardHandler(p)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=w});ace.define("ace/undomanager",["require","exports","module"],function(e,t,r){"use strict";var n=function(){this.reset()};(function(){this.execute=function(a){var i=a.args[0];this.$doc=a.args[1],a.merge&&this.hasUndo()&&(this.dirtyCounter--,i=this.$undoStack.pop().concat(i)),this.$undoStack.push(i),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(a){var i=this.$undoStack.pop(),o=null;return i&&(o=this.$doc.undoChanges(i,a),this.$redoStack.push(i),this.dirtyCounter--),o},this.redo=function(a){var i=this.$redoStack.pop(),o=null;return i&&(o=this.$doc.redoChanges(this.$deserializeDeltas(i),a),this.$undoStack.push(i),this.dirtyCounter++),o},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return this.dirtyCounter===0},this.$serializeDeltas=function(a){return l(a,s)},this.$deserializeDeltas=function(a){return l(a,c)};function s(a){return{action:a.action,start:a.start,end:a.end,lines:a.lines.length==1?null:a.lines,text:a.lines.length==1?a.lines[0]:null}}function c(a){return{action:a.action,start:a.start,end:a.end,lines:a.lines||[a.text]}}function l(a,i){for(var o=new Array(a.length),d=0;dh&&(C=f.end.row+1,f=o.getNextFoldLine(C,f),h=f?f.start.row:1/0),C>u){for(;this.$cells.length>y+1;)p=this.$cells.pop(),this.element.removeChild(p.element);break}p=this.$cells[++y],p||(p={element:null,textNode:null,foldWidget:null},p.element=n.createElement("div"),p.textNode=document.createTextNode(""),p.element.appendChild(p.textNode),this.element.appendChild(p.element),this.$cells[y]=p);var D="ace_gutter-cell ";b[C]&&(D+=b[C]),x[C]&&(D+=x[C]),this.$annotations[C]&&(D+=this.$annotations[C].className),p.element.className!=D&&(p.element.className=D);var m=o.getRowLength(C)*i.lineHeight+"px";if(m!=p.element.style.height&&(p.element.style.height=m),g){var E=g[C];E==null&&(E=g[C]=o.getFoldWidget(C))}if(E){p.foldWidget||(p.foldWidget=n.createElement("span"),p.element.appendChild(p.foldWidget));var D="ace_fold-widget ace_"+E;E=="start"&&C==h&&Cd.right-o.right)return"foldWidgets"}}).call(a.prototype),t.Gutter=a});ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,r){"use strict";var n=e("../range").Range,s=e("../lib/dom"),c=function(l){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",l.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(a){this.$padding=a},this.setSession=function(a){this.session=a},this.setMarkers=function(a){this.markers=a},this.update=function(a){if(a){this.config=a;var i=[];for(var o in this.markers){var d=this.markers[o];if(!d.range){d.update(i,this,this.session,a);continue}var u=d.range.clipRows(a.firstRow,a.lastRow);if(!u.isEmpty())if(u=u.toScreenRange(this.session),d.renderer){var f=this.$getTop(u.start.row,a),h=this.$padding+(this.session.$bidiHandler.isBidiRow(u.start.row)?this.session.$bidiHandler.getPosLeft(u.start.column):u.start.column*a.characterWidth);d.renderer(i,u,h,f,a)}else d.type=="fullLine"?this.drawFullLineMarker(i,u,d.clazz,a):d.type=="screenLine"?this.drawScreenLineMarker(i,u,d.clazz,a):u.isMultiLine()?d.type=="text"?this.drawTextMarker(i,u,d.clazz,a):this.drawMultiLineMarker(i,u,d.clazz,a):this.session.$bidiHandler.isBidiRow(u.start.row)?this.drawBidiSingleLineMarker(i,u,d.clazz+" ace_start ace_br15",a):this.drawSingleLineMarker(i,u,d.clazz+" ace_start ace_br15",a)}this.element.innerHTML=i.join("")}},this.$getTop=function(a,i){return(a-i.firstRowScreen)*i.lineHeight};function l(a,i,o,d){return(a?1:0)|(i?2:0)|(o?4:0)|(d?8:0)}this.drawTextMarker=function(a,i,o,d,u){for(var f=this.session,h=i.start.row,g=i.end.row,b=h,x=0,A=0,v=f.getScreenLastRowColumn(b),w=null,p=new n(b,i.start.column,b,A);b<=g;b++)p.start.row=p.end.row=b,p.start.column=b==h?i.start.column:f.getRowWrapIndent(b),p.end.column=v,x=A,A=v,v=b+1v,b==g),this.session.$bidiHandler.isBidiRow(b)?this.drawBidiSingleLineMarker(a,p,w,d,b==g?0:1,u):this.drawSingleLineMarker(a,p,w,d,b==g?0:1,u)},this.drawMultiLineMarker=function(a,i,o,d,u){var f=this.$padding,h,g,b;if(u=u||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var x=i.clone();x.end.row=x.start.row,x.end.column=this.session.getLine(x.start.row).length,this.drawBidiSingleLineMarker(a,x,o+" ace_br1 ace_start",d,null,u)}else h=d.lineHeight,g=this.$getTop(i.start.row,d),b=f+i.start.column*d.characterWidth,a.push("
");if(this.session.$bidiHandler.isBidiRow(i.end.row)){var x=i.clone();x.start.row=x.end.row,x.start.column=0,this.drawBidiSingleLineMarker(a,x,o+" ace_br12",d,null,u)}else{var A=i.end.column*d.characterWidth;h=d.lineHeight,g=this.$getTop(i.end.row,d),a.push("
")}if(h=(i.end.row-i.start.row-1)*d.lineHeight,!(h<=0)){g=this.$getTop(i.start.row+1,d);var v=(i.start.column?1:0)|(i.end.column?0:8);a.push("
")}},this.drawSingleLineMarker=function(a,i,o,d,u,f){var h=d.lineHeight,g=(i.end.column+(u||0)-i.start.column)*d.characterWidth,b=this.$getTop(i.start.row,d),x=this.$padding+i.start.column*d.characterWidth;a.push("
")},this.drawBidiSingleLineMarker=function(a,i,o,d,u,f){var h=d.lineHeight,g=this.$getTop(i.start.row,d),b=this.$padding,x=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);x.forEach(function(A){a.push("
")})},this.drawFullLineMarker=function(a,i,o,d,u){var f=this.$getTop(i.start.row,d),h=d.lineHeight;i.start.row!=i.end.row&&(h+=this.$getTop(i.end.row,d)-f),a.push("
")},this.drawScreenLineMarker=function(a,i,o,d,u){var f=this.$getTop(i.start.row,d),h=d.lineHeight;a.push("
")}}).call(c.prototype),t.Marker=c});ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("../lib/dom"),c=e("../lib/lang"),l=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,i=function(o){this.element=s.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){n.implement(this,a),this.EOF_CHAR="\xB6",this.EOL_CHAR_LF="\xAC",this.EOL_CHAR_CRLF="\xA4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xB7",this.$padding=0,this.$updateEolChar=function(){var o=this.session.doc.getNewLineCharacter()==` -`?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=o)return this.EOL_CHAR=o,!0},this.setPadding=function(o){this.$padding=o,this.element.style.padding="0 "+o+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(d){this._signal("changeCharacterSize",d)}).bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(o){this.session=o,o&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var d=this.$tabStrings=[0],u=1;u"+c.stringRepeat(this.TAB_CHAR,u)+""):d.push(c.stringRepeat(" ",u));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var f="ace_indent-guide",h="",g="";if(this.showInvisibles){f+=" ace_invisible",h=" ace_invisible_space",g=" ace_invisible_tab";var b=c.stringRepeat(this.SPACE_CHAR,this.tabSize),x=c.stringRepeat(this.TAB_CHAR,this.tabSize)}else var b=c.stringRepeat(" ",this.tabSize),x=b;this.$tabStrings[" "]=""+b+"",this.$tabStrings[" "]=""+x+""}},this.updateLines=function(o,d,u){(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)&&this.scrollLines(o),this.config=o;for(var f=Math.max(d,o.firstRow),h=Math.min(u,o.lastRow),g=this.element.childNodes,b=0,x=o.firstRow;xv&&(x=A.end.row+1,A=this.session.getNextFoldLine(x,A),v=A?A.start.row:1/0),!(x>h);){var w=g[b++];if(w){var p=[];this.$renderLine(p,x,!this.$useLineGroups(),x==v?A:!1),w.style.height=o.lineHeight*this.session.getRowLength(x)+"px",w.innerHTML=p.join("")}x++}},this.scrollLines=function(o){var d=this.config;if(this.config=o,!d||d.lastRow0;f--)u.removeChild(u.firstChild);if(d.lastRow>o.lastRow)for(var f=this.session.getFoldedRowCount(o.lastRow+1,d.lastRow);f>0;f--)u.removeChild(u.lastChild);if(o.firstRowd.lastRow){var h=this.$renderLinesFragment(o,d.lastRow+1,o.lastRow);u.appendChild(h)}},this.$renderLinesFragment=function(o,d,u){for(var f=this.element.ownerDocument.createDocumentFragment(),h=d,g=this.session.getNextFoldLine(h),b=g?g.start.row:1/0;h>b&&(h=g.end.row+1,g=this.session.getNextFoldLine(h,g),b=g?g.start.row:1/0),!(h>u);){var x=s.createElement("div"),A=[];if(this.$renderLine(A,h,!1,h==b?g:!1),x.innerHTML=A.join(""),this.$useLineGroups())x.className="ace_line_group",f.appendChild(x),x.style.height=o.lineHeight*this.session.getRowLength(h)+"px";else for(;x.firstChild;)f.appendChild(x.firstChild);h++}return f},this.update=function(o){this.config=o;for(var d=[],u=o.firstRow,f=o.lastRow,h=u,g=this.session.getNextFoldLine(h),b=g?g.start.row:1/0;h>b&&(h=g.end.row+1,g=this.session.getNextFoldLine(h,g),b=g?g.start.row:1/0),!(h>f);)this.$useLineGroups()&&d.push("
"),this.$renderLine(d,h,!1,h==b?g:!1),this.$useLineGroups()&&d.push("
"),h++;this.element.innerHTML=d.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(o,d,u,f){var h=this,g=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\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,b=function(w,p,y,C,D){if(p)return h.showInvisibles?""+c.stringRepeat(h.SPACE_CHAR,w.length)+"":w;if(w=="&")return"&";if(w=="<")return"<";if(w==">")return">";if(w==" "){var m=h.session.getScreenTabSize(d+C);return d+=m-1,h.$tabStrings[m]}else if(w=="\u3000"){var E=h.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",k=h.showInvisibles?h.SPACE_CHAR:"";return d+=1,""+k+""}else return y?""+h.SPACE_CHAR+"":(d+=1,""+w+"")},x=f.replace(g,b);if(this.$textToken[u.type])o.push(x);else{var A="ace_"+u.type.replace(/\./g," ace_"),v="";u.type=="fold"&&(v=" style='width:"+u.value.length*this.config.characterWidth+"px;' "),o.push("",x,"")}return d+f.length},this.renderIndentGuide=function(o,d,u){var f=d.search(this.$indentGuideRe);return f<=0||f>=u?d:d[0]==" "?(f-=f%this.tabSize,o.push(c.stringRepeat(this.$tabStrings[" "],f/this.tabSize)),d.substr(f)):d[0]==" "?(o.push(c.stringRepeat(this.$tabStrings[" "],f)),d.substr(f)):d},this.$renderWrappedLine=function(o,d,u,f){for(var h=0,g=0,b=u[0],x=0,A=0;A=b;)x=this.$renderToken(o,x,v,w.substring(0,b-h)),w=w.substring(b-h),h=b,f||o.push("","
"),o.push(c.stringRepeat("\xA0",u.indent)),g++,x=0,b=u[g]||Number.MAX_VALUE;w.length!=0&&(h+=w.length,x=this.$renderToken(o,x,v,w))}}},this.$renderSimpleLine=function(o,d){var u=0,f=d[0],h=f.value;this.displayIndentGuides&&(h=this.renderIndentGuide(o,h)),h&&(u=this.$renderToken(o,u,f,h));for(var g=1;g"),h.length){var g=this.session.getRowSplitData(d);g&&g.length?this.$renderWrappedLine(o,h,g,u):this.$renderSimpleLine(o,h)}this.showInvisibles&&(f&&(d=f.end.row),o.push("",d==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"")),u||o.push("
")},this.$getFoldLineTokens=function(o,d){var u=this.session,f=[];function h(b,x,A){for(var v=0,w=0;w+b[v].value.lengthA-x&&(p=p.substring(0,A-x)),f.push({type:b[v].type,value:p}),w=x+p.length,v+=1}for(;wA?f.push({type:b[v].type,value:p.substring(0,A-w)}):f.push(b[v]),w+=p.length,v+=1}}var g=u.getTokens(o);return d.walk(function(b,x,A,v,w){b!=null?f.push({type:"fold",value:b}):(w&&(g=u.getTokens(x)),g.length&&h(g,v,A))},d.end.row,this.session.getLine(d.end.row).length),f},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(i.prototype),t.Text=i});ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,r){"use strict";var n=e("../lib/dom"),s,c=function(l){this.element=n.createElement("div"),this.element.className="ace_layer ace_cursor-layer",l.appendChild(this.element),s===void 0&&(s=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),n.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(s?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(l){for(var a=this.cursors,i=a.length;i--;)a[i].style.visibility=l?"":"hidden"},this.$updateOpacity=function(l){for(var a=this.cursors,i=a.length;i--;)a[i].style.opacity=l?"":"0"},this.$padding=0,this.setPadding=function(l){this.$padding=l},this.setSession=function(l){this.session=l},this.setBlinking=function(l){l!=this.isBlinking&&(this.isBlinking=l,this.restartTimer())},this.setBlinkInterval=function(l){l!=this.blinkInterval&&(this.blinkInterval=l,this.restartTimer())},this.setSmoothBlinking=function(l){l!=this.smoothBlinking&&!s&&(this.smoothBlinking=l,n.setCssClass(this.element,"ace_smooth-blinking",l),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var l=n.createElement("div");return l.className="ace_cursor",this.element.appendChild(l),this.cursors.push(l),l},this.removeCursor=function(){if(this.cursors.length>1){var l=this.cursors.pop();return l.parentNode.removeChild(l),l}},this.hideCursor=function(){this.isVisible=!1,n.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,n.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var l=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&n.removeCssClass(this.element,"ace_smooth-blinking"),l(!0),!(!this.isBlinking||!this.blinkInterval||!this.isVisible)){this.smoothBlinking&&setTimeout((function(){n.addCssClass(this.element,"ace_smooth-blinking")}).bind(this));var a=(function(){this.timeoutId=setTimeout(function(){l(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){l(!0),a()},this.blinkInterval),a()}},this.getPixelPosition=function(l,a){if(!this.config||!this.session)return{left:0,top:0};l||(l=this.session.selection.getCursor());var i=this.session.documentToScreenPosition(l),o=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,l.row)?this.session.$bidiHandler.getPosLeft(i.column):i.column*this.config.characterWidth),d=(i.row-(a?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:o,top:d}},this.update=function(l){this.config=l;var a=this.session.$selectionMarkers,i=0,o=0;(a===void 0||a.length===0)&&(a=[{cursor:null}]);for(var i=0,d=a.length;il.height+l.offset||u.top<0)&&i>1)){var f=(this.cursors[o++]||this.addCursor()).style;this.drawCursor?this.drawCursor(f,u,l,a[i],this.session):(f.left=u.left+"px",f.top=u.top+"px",f.width=l.characterWidth+"px",f.height=l.lineHeight+"px")}}for(;this.cursors.length>o;)this.removeCursor();var h=this.session.getOverwrite();this.$setOverwrite(h),this.$pixelPos=u,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(l){l!=this.overwrite&&(this.overwrite=l,l?n.addCssClass(this.element,"ace_overwrite-cursors"):n.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(c.prototype),t.Cursor=c});ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,r){"use strict";var n=e("./lib/oop"),s=e("./lib/dom"),c=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter,a=32768,i=function(u){this.element=s.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=s.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addListener(this.element,"scroll",this.onScroll.bind(this)),c.addListener(this.element,"mousedown",c.preventDefault)};(function(){n.implement(this,l),this.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1}}).call(i.prototype);var o=function(u,f){i.call(this,u),this.scrollTop=0,this.scrollHeight=0,f.$scrollbarWidth=this.width=s.scrollbarWidth(u.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};n.inherits(o,i),(function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var u=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-u)/(this.coeff-u)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(u){this.element.style.height=u+"px"},this.setInnerHeight=this.setScrollHeight=function(u){this.scrollHeight=u,u>a?(this.coeff=a/u,u=a):this.coeff!=1&&(this.coeff=1),this.inner.style.height=u+"px"},this.setScrollTop=function(u){this.scrollTop!=u&&(this.skipEvent=!0,this.scrollTop=u,this.element.scrollTop=u*this.coeff)}}).call(o.prototype);var d=function(u,f){i.call(this,u),this.scrollLeft=0,this.height=f.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};n.inherits(d,i),(function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(u){this.element.style.width=u+"px"},this.setInnerWidth=function(u){this.inner.style.width=u+"px"},this.setScrollWidth=function(u){this.inner.style.width=u+"px"},this.setScrollLeft=function(u){this.scrollLeft!=u&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=u)}}).call(d.prototype),t.ScrollBar=o,t.ScrollBarV=o,t.ScrollBarH=d,t.VScrollBar=o,t.HScrollBar=d});ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,r){"use strict";var n=e("./lib/event"),s=function(c,l){this.onRender=c,this.pending=!1,this.changes=0,this.window=l||window};(function(){this.schedule=function(c){if(this.changes=this.changes|c,!this.pending&&this.changes){this.pending=!0;var l=this;n.nextFrame(function(){l.pending=!1;for(var a;a=l.changes;)l.changes=0,l.onRender(a)},this.window)}}}).call(s.prototype),t.RenderLoop=s});ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,r){var n=e("../lib/oop"),s=e("../lib/dom"),c=e("../lib/lang"),l=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,i=0,o=t.FontMetrics=function(d){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),d.appendChild(this.el),i||this.$testFractionalRect(),this.$measureNode.innerHTML=c.stringRepeat("X",i),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){n.implement(this,a),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var d=s.createElement("div");this.$setMeasureNodeStyles(d.style),d.style.width="0.2px",document.documentElement.appendChild(d);var u=d.getBoundingClientRect().width;u>0&&u<1?i=50:i=100,d.parentNode.removeChild(d)},this.$setMeasureNodeStyles=function(d,u){d.width=d.height="auto",d.left=d.top="0px",d.visibility="hidden",d.position="absolute",d.whiteSpace="pre",l.isIE<8?d["font-family"]="inherit":d.font="inherit",d.overflow=u?"hidden":"visible"},this.checkForSizeChanges=function(){var d=this.$measureSizes();if(d&&(this.$characterSize.width!==d.width||this.$characterSize.height!==d.height)){this.$measureNode.style.fontWeight="bold";var u=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=d,this.charSizes=Object.create(null),this.allowBoldFonts=u&&u.width===d.width&&u.height===d.height,this._emit("changeCharacterSize",{data:d})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var d=this;return this.$pollSizeChangesTimer=setInterval(function(){d.checkForSizeChanges()},500)},this.setPolling=function(d){d?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(i===50){var d=null;try{d=this.$measureNode.getBoundingClientRect()}catch{d={width:0,height:0}}var u={height:d.height,width:d.width/i}}else var u={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/i};return u.width===0||u.height===0?null:u},this.$measureCharWidth=function(d){this.$main.innerHTML=c.stringRepeat(d,i);var u=this.$main.getBoundingClientRect();return u.width/i},this.getCharacterWidth=function(d){var u=this.charSizes[d];return u===void 0&&(u=this.charSizes[d]=this.$measureCharWidth(d)/this.$characterSize.width),u},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(o.prototype)});ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],function(e,t,r){"use strict";var n=e("./lib/oop"),s=e("./lib/dom"),c=e("./config"),l=e("./lib/useragent"),a=e("./layer/gutter").Gutter,i=e("./layer/marker").Marker,o=e("./layer/text").Text,d=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,f=e("./scrollbar").VScrollBar,h=e("./renderloop").RenderLoop,g=e("./layer/font_metrics").FontMetrics,b=e("./lib/event_emitter").EventEmitter,x=`.ace_editor {position: relative;overflow: hidden;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}`;s.importCssString(x,"ace_editor.css");var A=function(v,w){var p=this;this.container=v||s.createElement("div"),this.$keepTextAreaAtCursor=!l.isOldIE,s.addCssClass(this.container,"ace_editor"),this.setTheme(w),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new i(this.content);var y=this.$textLayer=new o(this.content);this.canvas=y.element,this.$markerFront=new i(this.content),this.$cursorLayer=new d(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new f(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(C){p.$scrollAnimation||p.session.setScrollTop(C.data-p.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(C){p.$scrollAnimation||p.session.setScrollLeft(C.data-p.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(C){p.updateCharacterSize(),p.onResize(!0,p.gutterWidth,p.$size.width,p.$size.height),p._signal("changeCharacterSize",C)}),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.$loop=new h(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),c.resetOptions(this),c._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,n.implement(this,b),this.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()},this.setSession=function(v){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=v,v&&this.scrollMargin.top&&v.getScrollTop()<=0&&v.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(v),this.$markerBack.setSession(v),this.$markerFront.setSession(v),this.$gutterLayer.setSession(v),this.$textLayer.setSession(v),v&&(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))},this.updateLines=function(v,w,p){if(w===void 0&&(w=1/0),this.$changedLines?(this.$changedLines.firstRow>v&&(this.$changedLines.firstRow=v),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(v){v?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(v,w,p,y){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=v?1:0;var C=this.container;y||(y=C.clientHeight||C.scrollHeight),p||(p=C.clientWidth||C.scrollWidth);var D=this.$updateCachedSize(v,w,p,y);if(!this.$size.scrollerHeight||!p&&!y)return this.resizing=0;v&&(this.$gutterLayer.$padding=null),v?this.$renderChanges(D|this.$changes,!0):this.$loop.schedule(D|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(v,w,p,y){y-=this.$extraHeight||0;var C=0,D=this.$size,m={width:D.width,height:D.height,scrollerHeight:D.scrollerHeight,scrollerWidth:D.scrollerWidth};return y&&(v||D.height!=y)&&(D.height=y,C|=this.CHANGE_SIZE,D.scrollerHeight=D.height,this.$horizScroll&&(D.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",C=C|this.CHANGE_SCROLL),p&&(v||D.width!=p)&&(C|=this.CHANGE_SIZE,D.width=p,w==null&&(w=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=w,this.scrollBarH.element.style.left=this.scroller.style.left=w+"px",D.scrollerWidth=Math.max(0,p-w-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||v)&&(C|=this.CHANGE_FULL)),D.$dirty=!p||!y,C&&this._signal("resize",m),C},this.onGutterResize=function(){var v=this.$showGutter?this.$gutter.offsetWidth:0;v!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,v,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(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var v=this.$size.scrollerWidth-this.$padding*2,w=Math.floor(v/this.characterWidth);return this.session.adjustWrapLimit(w,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(v){this.setOption("animatedScroll",v)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(v){this.setOption("showInvisibles",v),this.session.$bidiHandler.setShowInvisibles(v)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(v){this.setOption("displayIndentGuides",v)},this.setShowPrintMargin=function(v){this.setOption("showPrintMargin",v)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(v){this.setOption("printMarginColumn",v)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(v){return this.setOption("showGutter",v)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(v){this.setOption("fadeFoldWidgets",v)},this.setHighlightGutterLine=function(v){this.setOption("highlightGutterLine",v)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var v=this.$cursorLayer.$pixelPos,w=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var p=this.session.selection.getCursor();p.column=0,v=this.$cursorLayer.getPixelPosition(p,!0),w*=this.session.getRowLength(p.row)}this.$gutterLineHighlight.style.top=v.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=w+"px"},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var v=s.createElement("div");v.className="ace_layer ace_print-margin-layer",this.$printMarginEl=s.createElement("div"),this.$printMarginEl.className="ace_print-margin",v.appendChild(this.$printMarginEl),this.content.insertBefore(v,this.content.firstChild)}var w=this.$printMarginEl.style;w.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",w.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var v=this.layerConfig,w=this.$cursorLayer.$pixelPos.top,p=this.$cursorLayer.$pixelPos.left;w-=v.offset;var y=this.textarea.style,C=this.lineHeight;if(w<0||w>v.height-C){y.top=y.left="0";return}var D=this.characterWidth;if(this.$composition){var m=this.textarea.value.replace(/^\x01+/,"");D*=this.session.$getStringScreenWidth(m)[0]+2,C+=2}p-=this.scrollLeft,p>this.$size.scrollerWidth-D&&(p=this.$size.scrollerWidth-D),p+=this.gutterWidth,y.height=C+"px",y.width=D+"px",y.left=Math.min(p,this.$size.scrollerWidth-D)+"px",y.top=Math.min(w,this.$size.height-C)+"px"}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var v=this.layerConfig,w=v.lastRow,p=this.session.documentToScreenRow(w,0)*v.lineHeight;return p-this.session.getScrollTop()>v.height-v.lineHeight?w-1:w},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(v){this.$padding=v,this.$textLayer.setPadding(v),this.$cursorLayer.setPadding(v),this.$markerFront.setPadding(v),this.$markerBack.setPadding(v),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(v,w,p,y){var C=this.scrollMargin;C.top=v|0,C.bottom=w|0,C.right=y|0,C.left=p|0,C.v=C.top+C.bottom,C.h=C.left+C.right,C.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-C.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(v){this.setOption("hScrollBarAlwaysVisible",v)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(v){this.setOption("vScrollBarAlwaysVisible",v)},this.$updateScrollBarV=function(){var v=this.layerConfig.maxHeight,w=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(v-=(w-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>v-w&&(v=this.scrollTop+w,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(v+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(v,w){if(this.$changes&&(v|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!v&&!w){this.$changes|=v;return}if(this.$size.$dirty)return this.$changes|=v,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var p=this.layerConfig;if(v&this.CHANGE_FULL||v&this.CHANGE_SIZE||v&this.CHANGE_TEXT||v&this.CHANGE_LINES||v&this.CHANGE_SCROLL||v&this.CHANGE_H_SCROLL){if(v|=this.$computeLayerConfig(),p.firstRow!=this.layerConfig.firstRow&&p.firstRowScreen==this.layerConfig.firstRowScreen){var y=this.scrollTop+(p.firstRow-this.layerConfig.firstRow)*this.lineHeight;y>0&&(this.scrollTop=y,v=v|this.CHANGE_SCROLL,v|=this.$computeLayerConfig())}p=this.layerConfig,this.$updateScrollBarV(),v&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-p.offset+"px",this.content.style.marginTop=-p.offset+"px",this.content.style.width=p.width+2*this.$padding+"px",this.content.style.height=p.minHeight+"px"}if(v&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),v&this.CHANGE_FULL){this.$textLayer.update(p),this.$showGutter&&this.$gutterLayer.update(p),this.$markerBack.update(p),this.$markerFront.update(p),this.$cursorLayer.update(p),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this._signal("afterRender");return}if(v&this.CHANGE_SCROLL){v&this.CHANGE_TEXT||v&this.CHANGE_LINES?this.$textLayer.update(p):this.$textLayer.scrollLines(p),this.$showGutter&&this.$gutterLayer.update(p),this.$markerBack.update(p),this.$markerFront.update(p),this.$cursorLayer.update(p),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),this._signal("afterRender");return}v&this.CHANGE_TEXT?(this.$textLayer.update(p),this.$showGutter&&this.$gutterLayer.update(p)):v&this.CHANGE_LINES?(this.$updateLines()||v&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(p):(v&this.CHANGE_TEXT||v&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(p),v&this.CHANGE_CURSOR&&(this.$cursorLayer.update(p),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),v&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(p),v&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(p),this._signal("afterRender")},this.$autosize=function(){var v=this.session.getScreenLength()*this.lineHeight,w=this.$maxLines*this.lineHeight,p=Math.min(w,Math.max((this.$minLines||1)*this.lineHeight,v))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(p+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&p>this.$maxPixelHeight&&(p=this.$maxPixelHeight);var y=v>w;if(p!=this.desiredHeight||this.$size.height!=this.desiredHeight||y!=this.$vScroll){y!=this.$vScroll&&(this.$vScroll=y,this.scrollBarV.setVisible(y));var C=this.container.clientWidth;this.container.style.height=p+"px",this.$updateCachedSize(!0,this.$gutterWidth,C,p),this.desiredHeight=p,this._signal("autosize")}},this.$computeLayerConfig=function(){var v=this.session,w=this.$size,p=w.height<=2*this.lineHeight,y=this.session.getScreenLength(),C=y*this.lineHeight,D=this.$getLongestLine(),m=!p&&(this.$hScrollBarAlwaysVisible||w.scrollerWidth-D-2*this.$padding<0),E=this.$horizScroll!==m;E&&(this.$horizScroll=m,this.scrollBarH.setVisible(m));var k=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var S=this.scrollTop%this.lineHeight,F=w.scrollerHeight+this.lineHeight,_=!this.$maxLines&&this.$scrollPastEnd?(w.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;C+=_;var T=this.scrollMargin;this.session.setScrollTop(Math.max(-T.top,Math.min(this.scrollTop,C-w.scrollerHeight+T.bottom))),this.session.setScrollLeft(Math.max(-T.left,Math.min(this.scrollLeft,D+2*this.$padding-w.scrollerWidth+T.right)));var B=!p&&(this.$vScrollBarAlwaysVisible||w.scrollerHeight-C+_<0||this.scrollTop>T.top),N=k!==B;N&&(this.$vScroll=B,this.scrollBarV.setVisible(B));var W=Math.ceil(F/this.lineHeight)-1,H=Math.max(0,Math.round((this.scrollTop-S)/this.lineHeight)),R=H+W,z,O,M=this.lineHeight;H=v.screenToDocumentRow(H,0);var I=v.getFoldLine(H);I&&(H=I.start.row),z=v.documentToScreenRow(H,0),O=v.getRowLength(H)*M,R=Math.min(v.screenToDocumentRow(R,0),v.getLength()-1),F=w.scrollerHeight+v.getRowLength(R)*M+O,S=this.scrollTop-z*M;var j=0;return this.layerConfig.width!=D&&(j=this.CHANGE_H_SCROLL),(E||N)&&(j=this.$updateCachedSize(!0,this.gutterWidth,w.width,w.height),this._signal("scrollbarVisibilityChanged"),N&&(D=this.$getLongestLine())),this.layerConfig={width:D,padding:this.$padding,firstRow:H,firstRowScreen:z,lastRow:R,lineHeight:M,characterWidth:this.characterWidth,minHeight:F,maxHeight:C,offset:S,gutterOffset:M?Math.max(0,Math.ceil((S+w.height-w.scrollerHeight)/M)):0,height:this.$size.scrollerHeight},j},this.$updateLines=function(){if(this.$changedLines){var v=this.$changedLines.firstRow,w=this.$changedLines.lastRow;this.$changedLines=null;var p=this.layerConfig;if(!(v>p.lastRow+1)&&!(wD?(w&&k+m>D+this.lineHeight&&(D-=w*this.$size.scrollerHeight),D===0&&(D=-this.scrollMargin.top),this.session.setScrollTop(D)):k+this.$size.scrollerHeight-EC?(C=1-this.scrollMargin.top||w>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||v<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||v>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(v,w){var p=this.scroller.getBoundingClientRect(),y=v+this.scrollLeft-p.left-this.$padding,C=y/this.characterWidth,D=Math.floor((w+this.scrollTop-p.top)/this.lineHeight),m=Math.round(C);return{row:D,column:m,side:C-m>0?1:-1,offsetX:y}},this.screenToTextCoordinates=function(v,w){var p=this.scroller.getBoundingClientRect(),y=v+this.scrollLeft-p.left-this.$padding,C=Math.round(y/this.characterWidth),D=(w+this.scrollTop-p.top)/this.lineHeight;return this.session.screenToDocumentPosition(D,Math.max(C,0),y)},this.textToScreenCoordinates=function(v,w){var p=this.scroller.getBoundingClientRect(),y=this.session.documentToScreenPosition(v,w),C=this.$padding+(this.session.$bidiHandler.isBidiRow(y.row,v)?this.session.$bidiHandler.getPosLeft(y.column):Math.round(y.column*this.characterWidth)),D=y.row*this.lineHeight;return{pageX:p.left+C-this.scrollLeft,pageY:p.top+D-this.scrollTop}},this.visualizeFocus=function(){s.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){s.removeCssClass(this.container,"ace_focus")},this.showComposition=function(v){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,s.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(v){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(s.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(v,w){var p=this;if(this.$themeId=v,p._dispatchEvent("themeChange",{theme:v}),!v||typeof v=="string"){var y=v||this.$options.theme.initialValue;c.loadModule(["theme",y],C)}else C(v);function C(D){if(p.$themeId!=v)return w&&w();if(!D||!D.cssClass)throw new Error("couldn't load module "+v+" or it didn't call define");s.importCssString(D.cssText,D.cssClass,p.container.ownerDocument),p.theme&&s.removeCssClass(p.container,p.theme.cssClass);var m="padding"in D?D.padding:"padding"in(p.theme||{})?4:p.$padding;p.$padding&&m!=p.$padding&&p.setPadding(m),p.$theme=D.cssClass,p.theme=D,s.addCssClass(p.container,D.cssClass),s.setCssClass(p.container,"ace_dark",D.isDark),p.$size&&(p.$size.width=0,p.$updateSizeAsync()),p._dispatchEvent("themeLoaded",{theme:D}),w&&w()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(v,w){s.setCssClass(this.container,v,w!==!1)},this.unsetStyle=function(v){s.removeCssClass(this.container,v)},this.setCursorStyle=function(v){this.scroller.style.cursor!=v&&(this.scroller.style.cursor=v)},this.setMouseCursor=function(v){this.scroller.style.cursor=v},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(A.prototype),c.defineOptions(A.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(v){this.$textLayer.setShowInvisibles(v)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(v){typeof v=="number"&&(this.$printMarginColumn=v),this.$showPrintMargin=!!v,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(v){this.$gutter.style.display=v?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(v){s.setCssClass(this.$gutter,"ace_fade-fold-widgets",v)},initialValue:!1},showFoldWidgets:{set:function(v){this.$gutterLayer.setShowFoldWidgets(v)},initialValue:!0},showLineNumbers:{set:function(v){this.$gutterLayer.setShowLineNumbers(v),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(v){this.$textLayer.setDisplayIndentGuides(v)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(v){if(!this.$gutterLineHighlight){this.$gutterLineHighlight=s.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",this.$gutter.appendChild(this.$gutterLineHighlight);return}this.$gutterLineHighlight.style.display=v?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(v){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(v){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(v){typeof v=="number"&&(v=v+"px"),this.container.style.fontSize=v,this.updateFontSize()},initialValue:12},fontFamily:{set:function(v){this.container.style.fontFamily=v,this.updateFontSize()}},maxLines:{set:function(v){this.updateFull()}},minLines:{set:function(v){this.updateFull()}},maxPixelHeight:{set:function(v){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(v){v=+v||0,this.$scrollPastEnd!=v&&(this.$scrollPastEnd=v,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(v){this.$gutterLayer.$fixedWidth=!!v,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(v){this.setTheme(v)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=A});ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("../lib/net"),c=e("../lib/event_emitter").EventEmitter,l=e("../config");function a(u,f){var h=f.src;""+s.qualifyURL(u);try{return new Blob([h],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,b=new g;return b.append(h),b.getBlob("application/javascript")}}function i(u,f){var h=a(u,f),g=window.URL||window.webkitURL,b=g.createObjectURL(h);return new Worker(b)}var o=function(u,f,h,g,b){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),l.get("packaged")||!e.toUrl)g=g||l.moduleUrl(f.id,"worker");else{var x=this.$normalizePath;g=g||x(e.toUrl("ace/worker/worker.js",null,"_"));var A={};u.forEach(function(v){A[v]=x(e.toUrl(v,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}this.$worker=i(g,f),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:A,module:f.id,classname:h}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){n.implement(this,c),this.onMessage=function(u){var f=u.data;switch(f.type){case"event":this._signal(f.name,{data:f.data});break;case"call":var h=this.callbacks[f.id];h&&(h(f.data),delete this.callbacks[f.id]);break;case"error":this.reportError(f.data);break;case"log":window.console&&console.log&&console.log.apply(console,f.data);break}},this.reportError=function(u){window.console&&console.error&&console.error(u)},this.$normalizePath=function(u){return s.qualifyURL(u)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(u,f){this.$worker.postMessage({command:u,args:f})},this.call=function(u,f,h){if(h){var g=this.callbackId++;this.callbacks[g]=h,f.push(g)}this.send(u,f)},this.emit=function(u,f){try{this.$worker.postMessage({event:u,data:{data:f.data}})}catch(h){console.error(h.stack)}},this.attachToDocument=function(u){this.$doc&&this.terminate(),this.$doc=u,this.call("setValue",[u.getValue()]),u.on("change",this.changeListener)},this.changeListener=function(u){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),u.action=="insert"?this.deltaQueue.push(u.start,u.lines):this.deltaQueue.push(u.start,u.end)},this.$sendDeltaQueue=function(){var u=this.deltaQueue;u&&(this.deltaQueue=null,u.length>50&&u.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:u}))}}).call(o.prototype);var d=function(u,f,h){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var g=null,b=!1,x=Object.create(c),A=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(w){A.messageBuffer.push(w),g&&(b?setTimeout(v):v())},this.setEmitSync=function(w){b=w};var v=function(){var w=A.messageBuffer.shift();w.command?g[w.command].apply(g,w.args):w.event&&x._signal(w.event,w.data)};x.postMessage=function(w){A.onMessage({data:w})},x.callback=function(w,p){this.postMessage({type:"call",id:p,data:w})},x.emit=function(w,p){this.postMessage({type:"event",name:w,data:p})},l.loadModule(["worker",f],function(w){for(g=new w[h](x);A.messageBuffer.length;)v()})};d.prototype=o.prototype,t.UIWorkerClient=d,t.WorkerClient=o,t.createWorker=i});ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,r){"use strict";var n=e("./range").Range,s=e("./lib/event_emitter").EventEmitter,c=e("./lib/oop"),l=function(a,i,o,d,u,f){var h=this;this.length=i,this.session=a,this.doc=a.getDocument(),this.mainClass=u,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=d,this.$onCursorChange=function(){setTimeout(function(){h.onCursorChange()})},this.$pos=o;var g=a.getUndoManager().$undoStack||a.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=g.length,this.setup(),a.selection.on("changeCursor",this.$onCursorChange)};(function(){c.implement(this,s),this.setup=function(){var a=this,i=this.doc,o=this.session;this.selectionBefore=o.selection.toJSON(),o.selection.inMultiSelectMode&&o.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var d=this.pos;d.$insertRight=!0,d.detach(),d.markerId=o.addMarker(new n(d.row,d.column,d.row,d.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(u){var f=i.createAnchor(u.row,u.column);f.$insertRight=!0,f.detach(),a.others.push(f)}),o.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var a=this.session,i=this;this.othersActive=!0,this.others.forEach(function(o){o.markerId=a.addMarker(new n(o.row,o.column,o.row,o.column+i.length),i.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var a=0;a=this.pos.column&&i.start.column<=this.pos.column+this.length+1,u=i.start.column-this.pos.column;if(this.updateAnchors(a),d&&(this.length+=o),d&&!this.session.$fromUndo){if(a.action==="insert")for(var f=this.others.length-1;f>=0;f--){var h=this.others[f],g={row:h.row,column:h.column+u};this.doc.insertMergedLines(g,a.lines)}else if(a.action==="remove")for(var f=this.others.length-1;f>=0;f--){var h=this.others[f],g={row:h.row,column:h.column+u};this.doc.remove(new n(g.row,g.column,g.row,g.column-o))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(a){this.pos.onChange(a);for(var i=this.others.length;i--;)this.others[i].onChange(a);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var a=this,i=this.session,o=function(u,f){i.removeMarker(u.markerId),u.markerId=i.addMarker(new n(u.row,u.column,u.row,u.column+a.length),f,null,!1)};o(this.pos,this.mainClass);for(var d=this.others.length;d--;)o(this.others[d],this.othersClass)}},this.onCursorChange=function(a){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",a)):(this.hideOtherMarkers(),this._emit("cursorLeave",a))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var a=this.session.getUndoManager(),i=(a.$undoStack||a.$undostack).length-this.$undoStackDepth,o=0;o1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange(v)}},this.toSingleRange=function(v){v=v||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),v&&this.fromOrientedRange(v)},this.substractPoint=function(v){var w=this.rangeList.substractPoint(v);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var v=this.rangeList.merge();v.length?this.$onRemoveRange(v):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(v){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(v),this._signal("addRange",{range:v})},this.$onRemoveRange=function(v){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();v.push(w),this.rangeCount=0}for(var p=v.length;p--;){var y=this.ranges.indexOf(v[p]);this.ranges.splice(y,1)}this._signal("removeRange",{ranges:v}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),w=w||this.ranges[0],w&&!w.isEqual(this.getRange())&&this.fromOrientedRange(w)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new n,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var v=this.rangeList.ranges,w=v[v.length-1],p=s.fromPoints(v[0].start,w.end);this.toSingleRange(),this.setSelectionRange(p,w.cursor==w.start)}else{var p=this.getRange(),y=this.isBackwards(),C=p.start.row,D=p.end.row;if(C==D){if(y)var m=p.end,E=p.start;else var m=p.start,E=p.end;this.addRange(s.fromPoints(E,E)),this.addRange(s.fromPoints(m,m));return}var k=[],S=this.getLineRange(C,!0);S.start.column=p.start.column,k.push(S);for(var F=C+1;F1){var v=this.rangeList.ranges,w=v[v.length-1],p=s.fromPoints(v[0].start,w.end);this.toSingleRange(),this.setSelectionRange(p,w.cursor==w.start)}else{var y=this.session.documentToScreenPosition(this.selectionLead),C=this.session.documentToScreenPosition(this.selectionAnchor),D=this.rectangularRangeBlock(y,C);D.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(v,w,p){var y=[],C=v.column0;)W--;if(W>0)for(var H=0;y[H].isEmpty();)H++;for(var R=W;R>=H;R--)y[R].isEmpty()&&y.splice(R,1)}return y}}).call(c.prototype);var g=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(v){v.cursor||(v.cursor=v.end);var w=this.getSelectionStyle();return v.marker=this.session.addMarker(v,"ace_selection",w),this.session.$selectionMarkers.push(v),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,v},this.removeSelectionMarker=function(v){if(v.marker){this.session.removeMarker(v.marker);var w=this.session.$selectionMarkers.indexOf(v);w!=-1&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(v){for(var w=this.session.$selectionMarkers,p=v.length;p--;){var y=v[p];if(y.marker){this.session.removeMarker(y.marker);var C=w.indexOf(y);C!=-1&&w.splice(C,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function(v){this.addSelectionMarker(v.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(v){this.removeSelectionMarkers(v.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(v){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(o.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(v){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(o.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(v){var w=v.command,p=v.editor;if(p.multiSelect){if(w.multiSelectAction)w.multiSelectAction=="forEach"?y=p.forEachSelection(w,v.args):w.multiSelectAction=="forEachLine"?y=p.forEachSelection(w,v.args,!0):w.multiSelectAction=="single"?(p.exitMultiSelectMode(),y=w.exec(p,v.args||{})):y=w.multiSelectAction(p,v.args||{});else{var y=w.exec(p,v.args||{});p.multiSelect.addRange(p.multiSelect.toOrientedRange()),p.multiSelect.mergeOverlappingRanges()}return y}},this.forEachSelection=function(v,w,p){if(!this.inVirtualSelectionMode){var y=p&&p.keepOrder,C=p==!0||p&&p.$byLines,D=this.session,m=this.selection,E=m.rangeList,k=(y?m:E).ranges,S;if(!k.length)return v.exec?v.exec(this,w||{}):v(this,w||{});var F=m._eventRegistry;m._eventRegistry={};var _=new c(D);this.inVirtualSelectionMode=!0;for(var T=k.length;T--;){if(C)for(;T>0&&k[T].start.row==k[T-1].end.row;)T--;_.fromOrientedRange(k[T]),_.index=T,this.selection=D.selection=_;var B=v.exec?v.exec(this,w||{}):v(this,w||{});!S&&B!==void 0&&(S=B),_.toOrientedRange(k[T])}_.detach(),this.selection=D.selection=m,this.inVirtualSelectionMode=!1,m._eventRegistry=F,m.mergeOverlappingRanges();var N=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),N&&N.from==N.to&&this.renderer.animateScrolling(N.from),S}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var v="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,p=[],y=0;y0);m<0&&(m=0),E>=S&&(E=S-1)}var _=this.session.removeFullLines(m,E);_=this.$reAlignText(_,k),this.session.insert({row:m,column:0},_.join(` +`),this.moveCursorToPosition(p)},this.transposeLetters=function(){if(this.selection.isEmpty()){var p=this.getCursorPosition(),y=p.column;if(y!==0){var C=this.session.getLine(p.row),D,m;yS.toLowerCase()?1:0});for(var m=new f(0,0,0,0),D=p.first;D<=p.last;D++){var E=y.getLine(D);m.start.row=D,m.end.row=D,m.end.column=E.length,y.replace(m,C[D-p.first])}},this.toggleCommentLines=function(){var p=this.session.getState(this.getCursorPosition().row),y=this.$getSelectedRows();this.session.getMode().toggleCommentLines(p,this.session,y.first,y.last)},this.toggleBlockComment=function(){var p=this.getCursorPosition(),y=this.session.getState(p.row),C=this.getSelectionRange();this.session.getMode().toggleBlockComment(y,this.session,C,p)},this.getNumberAt=function(p,y){var C=/[\-]?[0-9]+(?:\.[0-9]+)?/g;C.lastIndex=0;for(var D=this.session.getLine(p);C.lastIndex=y){var E={value:m[0],start:m.index,end:m.index+m[0].length};return E}}return null},this.modifyNumber=function(p){var y=this.selection.getCursor().row,C=this.selection.getCursor().column,D=new f(y,C-1,y,C),m=this.session.getTextRange(D);if(!isNaN(parseFloat(m))&&isFinite(m)){var E=this.getNumberAt(y,C);if(E){var k=E.value.indexOf(".")>=0?E.start+E.value.indexOf(".")+1:E.end,S=E.start+E.value.length-k,F=parseFloat(E.value);F*=Math.pow(10,S),k!==E.end&&CW+1)break;W=H.last}for(T--,S=this.session.$moveLines(B,W,y?0:p),y&&p==-1&&(O=T+1);O<=T;)k[O].moveBy(S,0),O++;y||(S=0),F+=S}m.fromOrientedRange(m.ranges[0]),m.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(p){return p=(p||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(p.start.row),last:this.session.getRowFoldEnd(p.end.row)}},this.onCompositionStart=function(p){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(p){this.renderer.setCompositionText(p)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(p){return p>=this.getFirstVisibleRow()&&p<=this.getLastVisibleRow()},this.isRowFullyVisible=function(p){return p>=this.renderer.getFirstFullyVisibleRow()&&p<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(p,y){var C=this.renderer,D=this.renderer.layerConfig,m=p*Math.floor(D.height/D.lineHeight);this.$blockScrolling++,y===!0?this.selection.$moveSelection(function(){this.moveCursorBy(m,0)}):y===!1&&(this.selection.moveCursorBy(m,0),this.selection.clearSelection()),this.$blockScrolling--;var E=C.scrollTop;C.scrollBy(0,m*D.lineHeight),y!=null&&C.scrollCursorIntoView(null,.5),C.animateScrolling(E)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(p){this.renderer.scrollToRow(p)},this.scrollToLine=function(p,y,C,D){this.renderer.scrollToLine(p,y,C,D)},this.centerSelection=function(){var p=this.getSelectionRange(),y={row:Math.floor(p.start.row+(p.end.row-p.start.row)/2),column:Math.floor(p.start.column+(p.end.column-p.start.column)/2)};this.renderer.alignCursor(y,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(p,y){this.selection.moveCursorTo(p,y)},this.moveCursorToPosition=function(p){this.selection.moveCursorToPosition(p)},this.jumpToMatching=function(p,y){var C=this.getCursorPosition(),D=new v(this.session,C.row,C.column),m=D.getCurrentToken(),E=m||D.stepForward();if(E){var k,S=!1,F={},_=C.column-E.start,T,O={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(E.value.match(/[{}()\[\]]/g)){for(;_=0;--E)this.$tryReplace(C[E],p)&&D++;return this.selection.setSelectionRange(m),this.$blockScrolling-=1,D},this.$tryReplace=function(p,y){var C=this.session.getTextRange(p);return y=this.$search.replace(C,y),y!==null?(p.end=this.session.replace(p,y),p):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(p,y,C){y||(y={}),typeof p=="string"||p instanceof RegExp?y.needle=p:typeof p=="object"&&n.mixin(y,p);var D=this.selection.getRange();y.needle==null&&(p=this.session.getTextRange(D)||this.$search.$options.needle,p||(D=this.session.getWordRange(D.start.row,D.start.column),p=this.session.getTextRange(D)),this.$search.set({needle:p})),this.$search.set(y),y.start||this.$search.set({start:D});var m=this.$search.find(this.session);if(y.preventScroll)return m;if(m)return this.revealRange(m,C),m;y.backwards?D.start=D.end:D.end=D.start,this.selection.setRange(D)},this.findNext=function(p,y){this.find({skipCurrent:!0,backwards:!1},p,y)},this.findPrevious=function(p,y){this.find(p,{skipCurrent:!0,backwards:!0},y)},this.revealRange=function(p,y){this.$blockScrolling+=1,this.session.unfold(p),this.selection.setSelectionRange(p),this.$blockScrolling-=1;var C=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(p.start,p.end,.5),y!==!1&&this.renderer.animateScrolling(C)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(p){if(p){var y,C=this,D=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var m=this.$scrollAnchor;m.style.cssText="position:absolute",this.container.insertBefore(m,this.container.firstChild);var E=this.on("changeSelection",function(){D=!0}),k=this.renderer.on("beforeRender",function(){D&&(y=C.renderer.container.getBoundingClientRect())}),S=this.renderer.on("afterRender",function(){if(D&&y&&(C.isFocused()||C.searchBox&&C.searchBox.isFocused())){var F=C.renderer,_=F.$cursorLayer.$pixelPos,T=F.layerConfig,O=_.top-T.offset;_.top>=0&&O+y.top<0?D=!0:_.topwindow.innerHeight?D=!1:D=null,D!=null&&(m.style.top=O+"px",m.style.left=_.left+"px",m.style.height=T.lineHeight+"px",m.scrollIntoView(D)),D=y=null}});this.setAutoScrollEditorIntoView=function(F){F||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",E),this.renderer.off("afterRender",S),this.renderer.off("beforeRender",k))}}},this.$resetCursorStyle=function(){var p=this.$cursorStyle||"ace",y=this.renderer.$cursorLayer;y&&(y.setSmoothBlinking(/smooth/.test(p)),y.isBlinking=!this.$readOnly&&p!="wide",s.setCssClass(y.element,"ace_slim-cursors",/slim/.test(p)))}}).call(w.prototype),A.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(p){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:p})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(p){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(p){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(p){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(p){this.setAutoScrollEditorIntoView(p)}},keyboardHandler:{set:function(p){this.setKeyboardHandler(p)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=w});ace.define("ace/undomanager",["require","exports","module"],function(e,t,r){"use strict";var n=function(){this.reset()};(function(){this.execute=function(a){var i=a.args[0];this.$doc=a.args[1],a.merge&&this.hasUndo()&&(this.dirtyCounter--,i=this.$undoStack.pop().concat(i)),this.$undoStack.push(i),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(a){var i=this.$undoStack.pop(),o=null;return i&&(o=this.$doc.undoChanges(i,a),this.$redoStack.push(i),this.dirtyCounter--),o},this.redo=function(a){var i=this.$redoStack.pop(),o=null;return i&&(o=this.$doc.redoChanges(this.$deserializeDeltas(i),a),this.$undoStack.push(i),this.dirtyCounter++),o},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return this.dirtyCounter===0},this.$serializeDeltas=function(a){return l(a,s)},this.$deserializeDeltas=function(a){return l(a,c)};function s(a){return{action:a.action,start:a.start,end:a.end,lines:a.lines.length==1?null:a.lines,text:a.lines.length==1?a.lines[0]:null}}function c(a){return{action:a.action,start:a.start,end:a.end,lines:a.lines||[a.text]}}function l(a,i){for(var o=new Array(a.length),d=0;df&&(C=h.end.row+1,h=o.getNextFoldLine(C,h),f=h?h.start.row:1/0),C>u){for(;this.$cells.length>y+1;)p=this.$cells.pop(),this.element.removeChild(p.element);break}p=this.$cells[++y],p||(p={element:null,textNode:null,foldWidget:null},p.element=n.createElement("div"),p.textNode=document.createTextNode(""),p.element.appendChild(p.textNode),this.element.appendChild(p.element),this.$cells[y]=p);var D="ace_gutter-cell ";b[C]&&(D+=b[C]),x[C]&&(D+=x[C]),this.$annotations[C]&&(D+=this.$annotations[C].className),p.element.className!=D&&(p.element.className=D);var m=o.getRowLength(C)*i.lineHeight+"px";if(m!=p.element.style.height&&(p.element.style.height=m),g){var E=g[C];E==null&&(E=g[C]=o.getFoldWidget(C))}if(E){p.foldWidget||(p.foldWidget=n.createElement("span"),p.element.appendChild(p.foldWidget));var D="ace_fold-widget ace_"+E;E=="start"&&C==f&&Cd.right-o.right)return"foldWidgets"}}).call(a.prototype),t.Gutter=a});ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,r){"use strict";var n=e("../range").Range,s=e("../lib/dom"),c=function(l){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",l.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(a){this.$padding=a},this.setSession=function(a){this.session=a},this.setMarkers=function(a){this.markers=a},this.update=function(a){if(a){this.config=a;var i=[];for(var o in this.markers){var d=this.markers[o];if(!d.range){d.update(i,this,this.session,a);continue}var u=d.range.clipRows(a.firstRow,a.lastRow);if(!u.isEmpty())if(u=u.toScreenRange(this.session),d.renderer){var h=this.$getTop(u.start.row,a),f=this.$padding+(this.session.$bidiHandler.isBidiRow(u.start.row)?this.session.$bidiHandler.getPosLeft(u.start.column):u.start.column*a.characterWidth);d.renderer(i,u,f,h,a)}else d.type=="fullLine"?this.drawFullLineMarker(i,u,d.clazz,a):d.type=="screenLine"?this.drawScreenLineMarker(i,u,d.clazz,a):u.isMultiLine()?d.type=="text"?this.drawTextMarker(i,u,d.clazz,a):this.drawMultiLineMarker(i,u,d.clazz,a):this.session.$bidiHandler.isBidiRow(u.start.row)?this.drawBidiSingleLineMarker(i,u,d.clazz+" ace_start ace_br15",a):this.drawSingleLineMarker(i,u,d.clazz+" ace_start ace_br15",a)}this.element.innerHTML=i.join("")}},this.$getTop=function(a,i){return(a-i.firstRowScreen)*i.lineHeight};function l(a,i,o,d){return(a?1:0)|(i?2:0)|(o?4:0)|(d?8:0)}this.drawTextMarker=function(a,i,o,d,u){for(var h=this.session,f=i.start.row,g=i.end.row,b=f,x=0,A=0,v=h.getScreenLastRowColumn(b),w=null,p=new n(b,i.start.column,b,A);b<=g;b++)p.start.row=p.end.row=b,p.start.column=b==f?i.start.column:h.getRowWrapIndent(b),p.end.column=v,x=A,A=v,v=b+1v,b==g),this.session.$bidiHandler.isBidiRow(b)?this.drawBidiSingleLineMarker(a,p,w,d,b==g?0:1,u):this.drawSingleLineMarker(a,p,w,d,b==g?0:1,u)},this.drawMultiLineMarker=function(a,i,o,d,u){var h=this.$padding,f,g,b;if(u=u||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var x=i.clone();x.end.row=x.start.row,x.end.column=this.session.getLine(x.start.row).length,this.drawBidiSingleLineMarker(a,x,o+" ace_br1 ace_start",d,null,u)}else f=d.lineHeight,g=this.$getTop(i.start.row,d),b=h+i.start.column*d.characterWidth,a.push("
");if(this.session.$bidiHandler.isBidiRow(i.end.row)){var x=i.clone();x.start.row=x.end.row,x.start.column=0,this.drawBidiSingleLineMarker(a,x,o+" ace_br12",d,null,u)}else{var A=i.end.column*d.characterWidth;f=d.lineHeight,g=this.$getTop(i.end.row,d),a.push("
")}if(f=(i.end.row-i.start.row-1)*d.lineHeight,!(f<=0)){g=this.$getTop(i.start.row+1,d);var v=(i.start.column?1:0)|(i.end.column?0:8);a.push("
")}},this.drawSingleLineMarker=function(a,i,o,d,u,h){var f=d.lineHeight,g=(i.end.column+(u||0)-i.start.column)*d.characterWidth,b=this.$getTop(i.start.row,d),x=this.$padding+i.start.column*d.characterWidth;a.push("
")},this.drawBidiSingleLineMarker=function(a,i,o,d,u,h){var f=d.lineHeight,g=this.$getTop(i.start.row,d),b=this.$padding,x=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);x.forEach(function(A){a.push("
")})},this.drawFullLineMarker=function(a,i,o,d,u){var h=this.$getTop(i.start.row,d),f=d.lineHeight;i.start.row!=i.end.row&&(f+=this.$getTop(i.end.row,d)-h),a.push("
")},this.drawScreenLineMarker=function(a,i,o,d,u){var h=this.$getTop(i.start.row,d),f=d.lineHeight;a.push("
")}}).call(c.prototype),t.Marker=c});ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("../lib/dom"),c=e("../lib/lang"),l=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,i=function(o){this.element=s.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){n.implement(this,a),this.EOF_CHAR="\xB6",this.EOL_CHAR_LF="\xAC",this.EOL_CHAR_CRLF="\xA4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xB7",this.$padding=0,this.$updateEolChar=function(){var o=this.session.doc.getNewLineCharacter()==` +`?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=o)return this.EOL_CHAR=o,!0},this.setPadding=function(o){this.$padding=o,this.element.style.padding="0 "+o+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(d){this._signal("changeCharacterSize",d)}).bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(o){this.session=o,o&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var d=this.$tabStrings=[0],u=1;u"+c.stringRepeat(this.TAB_CHAR,u)+""):d.push(c.stringRepeat(" ",u));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var h="ace_indent-guide",f="",g="";if(this.showInvisibles){h+=" ace_invisible",f=" ace_invisible_space",g=" ace_invisible_tab";var b=c.stringRepeat(this.SPACE_CHAR,this.tabSize),x=c.stringRepeat(this.TAB_CHAR,this.tabSize)}else var b=c.stringRepeat(" ",this.tabSize),x=b;this.$tabStrings[" "]=""+b+"",this.$tabStrings[" "]=""+x+""}},this.updateLines=function(o,d,u){(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)&&this.scrollLines(o),this.config=o;for(var h=Math.max(d,o.firstRow),f=Math.min(u,o.lastRow),g=this.element.childNodes,b=0,x=o.firstRow;xv&&(x=A.end.row+1,A=this.session.getNextFoldLine(x,A),v=A?A.start.row:1/0),!(x>f);){var w=g[b++];if(w){var p=[];this.$renderLine(p,x,!this.$useLineGroups(),x==v?A:!1),w.style.height=o.lineHeight*this.session.getRowLength(x)+"px",w.innerHTML=p.join("")}x++}},this.scrollLines=function(o){var d=this.config;if(this.config=o,!d||d.lastRow0;h--)u.removeChild(u.firstChild);if(d.lastRow>o.lastRow)for(var h=this.session.getFoldedRowCount(o.lastRow+1,d.lastRow);h>0;h--)u.removeChild(u.lastChild);if(o.firstRowd.lastRow){var f=this.$renderLinesFragment(o,d.lastRow+1,o.lastRow);u.appendChild(f)}},this.$renderLinesFragment=function(o,d,u){for(var h=this.element.ownerDocument.createDocumentFragment(),f=d,g=this.session.getNextFoldLine(f),b=g?g.start.row:1/0;f>b&&(f=g.end.row+1,g=this.session.getNextFoldLine(f,g),b=g?g.start.row:1/0),!(f>u);){var x=s.createElement("div"),A=[];if(this.$renderLine(A,f,!1,f==b?g:!1),x.innerHTML=A.join(""),this.$useLineGroups())x.className="ace_line_group",h.appendChild(x),x.style.height=o.lineHeight*this.session.getRowLength(f)+"px";else for(;x.firstChild;)h.appendChild(x.firstChild);f++}return h},this.update=function(o){this.config=o;for(var d=[],u=o.firstRow,h=o.lastRow,f=u,g=this.session.getNextFoldLine(f),b=g?g.start.row:1/0;f>b&&(f=g.end.row+1,g=this.session.getNextFoldLine(f,g),b=g?g.start.row:1/0),!(f>h);)this.$useLineGroups()&&d.push("
"),this.$renderLine(d,f,!1,f==b?g:!1),this.$useLineGroups()&&d.push("
"),f++;this.element.innerHTML=d.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(o,d,u,h){var f=this,g=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\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,b=function(w,p,y,C,D){if(p)return f.showInvisibles?""+c.stringRepeat(f.SPACE_CHAR,w.length)+"":w;if(w=="&")return"&";if(w=="<")return"<";if(w==">")return">";if(w==" "){var m=f.session.getScreenTabSize(d+C);return d+=m-1,f.$tabStrings[m]}else if(w=="\u3000"){var E=f.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",k=f.showInvisibles?f.SPACE_CHAR:"";return d+=1,""+k+""}else return y?""+f.SPACE_CHAR+"":(d+=1,""+w+"")},x=h.replace(g,b);if(this.$textToken[u.type])o.push(x);else{var A="ace_"+u.type.replace(/\./g," ace_"),v="";u.type=="fold"&&(v=" style='width:"+u.value.length*this.config.characterWidth+"px;' "),o.push("",x,"")}return d+h.length},this.renderIndentGuide=function(o,d,u){var h=d.search(this.$indentGuideRe);return h<=0||h>=u?d:d[0]==" "?(h-=h%this.tabSize,o.push(c.stringRepeat(this.$tabStrings[" "],h/this.tabSize)),d.substr(h)):d[0]==" "?(o.push(c.stringRepeat(this.$tabStrings[" "],h)),d.substr(h)):d},this.$renderWrappedLine=function(o,d,u,h){for(var f=0,g=0,b=u[0],x=0,A=0;A=b;)x=this.$renderToken(o,x,v,w.substring(0,b-f)),w=w.substring(b-f),f=b,h||o.push("","
"),o.push(c.stringRepeat("\xA0",u.indent)),g++,x=0,b=u[g]||Number.MAX_VALUE;w.length!=0&&(f+=w.length,x=this.$renderToken(o,x,v,w))}}},this.$renderSimpleLine=function(o,d){var u=0,h=d[0],f=h.value;this.displayIndentGuides&&(f=this.renderIndentGuide(o,f)),f&&(u=this.$renderToken(o,u,h,f));for(var g=1;g"),f.length){var g=this.session.getRowSplitData(d);g&&g.length?this.$renderWrappedLine(o,f,g,u):this.$renderSimpleLine(o,f)}this.showInvisibles&&(h&&(d=h.end.row),o.push("",d==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"")),u||o.push("
")},this.$getFoldLineTokens=function(o,d){var u=this.session,h=[];function f(b,x,A){for(var v=0,w=0;w+b[v].value.lengthA-x&&(p=p.substring(0,A-x)),h.push({type:b[v].type,value:p}),w=x+p.length,v+=1}for(;wA?h.push({type:b[v].type,value:p.substring(0,A-w)}):h.push(b[v]),w+=p.length,v+=1}}var g=u.getTokens(o);return d.walk(function(b,x,A,v,w){b!=null?h.push({type:"fold",value:b}):(w&&(g=u.getTokens(x)),g.length&&f(g,v,A))},d.end.row,this.session.getLine(d.end.row).length),h},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(i.prototype),t.Text=i});ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,r){"use strict";var n=e("../lib/dom"),s,c=function(l){this.element=n.createElement("div"),this.element.className="ace_layer ace_cursor-layer",l.appendChild(this.element),s===void 0&&(s=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),n.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(s?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(l){for(var a=this.cursors,i=a.length;i--;)a[i].style.visibility=l?"":"hidden"},this.$updateOpacity=function(l){for(var a=this.cursors,i=a.length;i--;)a[i].style.opacity=l?"":"0"},this.$padding=0,this.setPadding=function(l){this.$padding=l},this.setSession=function(l){this.session=l},this.setBlinking=function(l){l!=this.isBlinking&&(this.isBlinking=l,this.restartTimer())},this.setBlinkInterval=function(l){l!=this.blinkInterval&&(this.blinkInterval=l,this.restartTimer())},this.setSmoothBlinking=function(l){l!=this.smoothBlinking&&!s&&(this.smoothBlinking=l,n.setCssClass(this.element,"ace_smooth-blinking",l),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var l=n.createElement("div");return l.className="ace_cursor",this.element.appendChild(l),this.cursors.push(l),l},this.removeCursor=function(){if(this.cursors.length>1){var l=this.cursors.pop();return l.parentNode.removeChild(l),l}},this.hideCursor=function(){this.isVisible=!1,n.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,n.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var l=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&n.removeCssClass(this.element,"ace_smooth-blinking"),l(!0),!(!this.isBlinking||!this.blinkInterval||!this.isVisible)){this.smoothBlinking&&setTimeout((function(){n.addCssClass(this.element,"ace_smooth-blinking")}).bind(this));var a=(function(){this.timeoutId=setTimeout(function(){l(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){l(!0),a()},this.blinkInterval),a()}},this.getPixelPosition=function(l,a){if(!this.config||!this.session)return{left:0,top:0};l||(l=this.session.selection.getCursor());var i=this.session.documentToScreenPosition(l),o=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,l.row)?this.session.$bidiHandler.getPosLeft(i.column):i.column*this.config.characterWidth),d=(i.row-(a?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:o,top:d}},this.update=function(l){this.config=l;var a=this.session.$selectionMarkers,i=0,o=0;(a===void 0||a.length===0)&&(a=[{cursor:null}]);for(var i=0,d=a.length;il.height+l.offset||u.top<0)&&i>1)){var h=(this.cursors[o++]||this.addCursor()).style;this.drawCursor?this.drawCursor(h,u,l,a[i],this.session):(h.left=u.left+"px",h.top=u.top+"px",h.width=l.characterWidth+"px",h.height=l.lineHeight+"px")}}for(;this.cursors.length>o;)this.removeCursor();var f=this.session.getOverwrite();this.$setOverwrite(f),this.$pixelPos=u,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(l){l!=this.overwrite&&(this.overwrite=l,l?n.addCssClass(this.element,"ace_overwrite-cursors"):n.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(c.prototype),t.Cursor=c});ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,r){"use strict";var n=e("./lib/oop"),s=e("./lib/dom"),c=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter,a=32768,i=function(u){this.element=s.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=s.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addListener(this.element,"scroll",this.onScroll.bind(this)),c.addListener(this.element,"mousedown",c.preventDefault)};(function(){n.implement(this,l),this.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1}}).call(i.prototype);var o=function(u,h){i.call(this,u),this.scrollTop=0,this.scrollHeight=0,h.$scrollbarWidth=this.width=s.scrollbarWidth(u.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};n.inherits(o,i),(function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var u=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-u)/(this.coeff-u)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(u){this.element.style.height=u+"px"},this.setInnerHeight=this.setScrollHeight=function(u){this.scrollHeight=u,u>a?(this.coeff=a/u,u=a):this.coeff!=1&&(this.coeff=1),this.inner.style.height=u+"px"},this.setScrollTop=function(u){this.scrollTop!=u&&(this.skipEvent=!0,this.scrollTop=u,this.element.scrollTop=u*this.coeff)}}).call(o.prototype);var d=function(u,h){i.call(this,u),this.scrollLeft=0,this.height=h.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};n.inherits(d,i),(function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(u){this.element.style.width=u+"px"},this.setInnerWidth=function(u){this.inner.style.width=u+"px"},this.setScrollWidth=function(u){this.inner.style.width=u+"px"},this.setScrollLeft=function(u){this.scrollLeft!=u&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=u)}}).call(d.prototype),t.ScrollBar=o,t.ScrollBarV=o,t.ScrollBarH=d,t.VScrollBar=o,t.HScrollBar=d});ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,r){"use strict";var n=e("./lib/event"),s=function(c,l){this.onRender=c,this.pending=!1,this.changes=0,this.window=l||window};(function(){this.schedule=function(c){if(this.changes=this.changes|c,!this.pending&&this.changes){this.pending=!0;var l=this;n.nextFrame(function(){l.pending=!1;for(var a;a=l.changes;)l.changes=0,l.onRender(a)},this.window)}}}).call(s.prototype),t.RenderLoop=s});ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,r){var n=e("../lib/oop"),s=e("../lib/dom"),c=e("../lib/lang"),l=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,i=0,o=t.FontMetrics=function(d){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),d.appendChild(this.el),i||this.$testFractionalRect(),this.$measureNode.innerHTML=c.stringRepeat("X",i),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){n.implement(this,a),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var d=s.createElement("div");this.$setMeasureNodeStyles(d.style),d.style.width="0.2px",document.documentElement.appendChild(d);var u=d.getBoundingClientRect().width;u>0&&u<1?i=50:i=100,d.parentNode.removeChild(d)},this.$setMeasureNodeStyles=function(d,u){d.width=d.height="auto",d.left=d.top="0px",d.visibility="hidden",d.position="absolute",d.whiteSpace="pre",l.isIE<8?d["font-family"]="inherit":d.font="inherit",d.overflow=u?"hidden":"visible"},this.checkForSizeChanges=function(){var d=this.$measureSizes();if(d&&(this.$characterSize.width!==d.width||this.$characterSize.height!==d.height)){this.$measureNode.style.fontWeight="bold";var u=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=d,this.charSizes=Object.create(null),this.allowBoldFonts=u&&u.width===d.width&&u.height===d.height,this._emit("changeCharacterSize",{data:d})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var d=this;return this.$pollSizeChangesTimer=setInterval(function(){d.checkForSizeChanges()},500)},this.setPolling=function(d){d?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(i===50){var d=null;try{d=this.$measureNode.getBoundingClientRect()}catch{d={width:0,height:0}}var u={height:d.height,width:d.width/i}}else var u={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/i};return u.width===0||u.height===0?null:u},this.$measureCharWidth=function(d){this.$main.innerHTML=c.stringRepeat(d,i);var u=this.$main.getBoundingClientRect();return u.width/i},this.getCharacterWidth=function(d){var u=this.charSizes[d];return u===void 0&&(u=this.charSizes[d]=this.$measureCharWidth(d)/this.$characterSize.width),u},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(o.prototype)});ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],function(e,t,r){"use strict";var n=e("./lib/oop"),s=e("./lib/dom"),c=e("./config"),l=e("./lib/useragent"),a=e("./layer/gutter").Gutter,i=e("./layer/marker").Marker,o=e("./layer/text").Text,d=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,f=e("./renderloop").RenderLoop,g=e("./layer/font_metrics").FontMetrics,b=e("./lib/event_emitter").EventEmitter,x=`.ace_editor {position: relative;overflow: hidden;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}`;s.importCssString(x,"ace_editor.css");var A=function(v,w){var p=this;this.container=v||s.createElement("div"),this.$keepTextAreaAtCursor=!l.isOldIE,s.addCssClass(this.container,"ace_editor"),this.setTheme(w),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new i(this.content);var y=this.$textLayer=new o(this.content);this.canvas=y.element,this.$markerFront=new i(this.content),this.$cursorLayer=new d(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(C){p.$scrollAnimation||p.session.setScrollTop(C.data-p.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(C){p.$scrollAnimation||p.session.setScrollLeft(C.data-p.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(C){p.updateCharacterSize(),p.onResize(!0,p.gutterWidth,p.$size.width,p.$size.height),p._signal("changeCharacterSize",C)}),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.$loop=new f(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),c.resetOptions(this),c._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,n.implement(this,b),this.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()},this.setSession=function(v){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=v,v&&this.scrollMargin.top&&v.getScrollTop()<=0&&v.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(v),this.$markerBack.setSession(v),this.$markerFront.setSession(v),this.$gutterLayer.setSession(v),this.$textLayer.setSession(v),v&&(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))},this.updateLines=function(v,w,p){if(w===void 0&&(w=1/0),this.$changedLines?(this.$changedLines.firstRow>v&&(this.$changedLines.firstRow=v),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(v){v?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(v,w,p,y){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=v?1:0;var C=this.container;y||(y=C.clientHeight||C.scrollHeight),p||(p=C.clientWidth||C.scrollWidth);var D=this.$updateCachedSize(v,w,p,y);if(!this.$size.scrollerHeight||!p&&!y)return this.resizing=0;v&&(this.$gutterLayer.$padding=null),v?this.$renderChanges(D|this.$changes,!0):this.$loop.schedule(D|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(v,w,p,y){y-=this.$extraHeight||0;var C=0,D=this.$size,m={width:D.width,height:D.height,scrollerHeight:D.scrollerHeight,scrollerWidth:D.scrollerWidth};return y&&(v||D.height!=y)&&(D.height=y,C|=this.CHANGE_SIZE,D.scrollerHeight=D.height,this.$horizScroll&&(D.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",C=C|this.CHANGE_SCROLL),p&&(v||D.width!=p)&&(C|=this.CHANGE_SIZE,D.width=p,w==null&&(w=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=w,this.scrollBarH.element.style.left=this.scroller.style.left=w+"px",D.scrollerWidth=Math.max(0,p-w-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||v)&&(C|=this.CHANGE_FULL)),D.$dirty=!p||!y,C&&this._signal("resize",m),C},this.onGutterResize=function(){var v=this.$showGutter?this.$gutter.offsetWidth:0;v!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,v,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(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var v=this.$size.scrollerWidth-this.$padding*2,w=Math.floor(v/this.characterWidth);return this.session.adjustWrapLimit(w,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(v){this.setOption("animatedScroll",v)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(v){this.setOption("showInvisibles",v),this.session.$bidiHandler.setShowInvisibles(v)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(v){this.setOption("displayIndentGuides",v)},this.setShowPrintMargin=function(v){this.setOption("showPrintMargin",v)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(v){this.setOption("printMarginColumn",v)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(v){return this.setOption("showGutter",v)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(v){this.setOption("fadeFoldWidgets",v)},this.setHighlightGutterLine=function(v){this.setOption("highlightGutterLine",v)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var v=this.$cursorLayer.$pixelPos,w=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var p=this.session.selection.getCursor();p.column=0,v=this.$cursorLayer.getPixelPosition(p,!0),w*=this.session.getRowLength(p.row)}this.$gutterLineHighlight.style.top=v.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=w+"px"},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var v=s.createElement("div");v.className="ace_layer ace_print-margin-layer",this.$printMarginEl=s.createElement("div"),this.$printMarginEl.className="ace_print-margin",v.appendChild(this.$printMarginEl),this.content.insertBefore(v,this.content.firstChild)}var w=this.$printMarginEl.style;w.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",w.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var v=this.layerConfig,w=this.$cursorLayer.$pixelPos.top,p=this.$cursorLayer.$pixelPos.left;w-=v.offset;var y=this.textarea.style,C=this.lineHeight;if(w<0||w>v.height-C){y.top=y.left="0";return}var D=this.characterWidth;if(this.$composition){var m=this.textarea.value.replace(/^\x01+/,"");D*=this.session.$getStringScreenWidth(m)[0]+2,C+=2}p-=this.scrollLeft,p>this.$size.scrollerWidth-D&&(p=this.$size.scrollerWidth-D),p+=this.gutterWidth,y.height=C+"px",y.width=D+"px",y.left=Math.min(p,this.$size.scrollerWidth-D)+"px",y.top=Math.min(w,this.$size.height-C)+"px"}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var v=this.layerConfig,w=v.lastRow,p=this.session.documentToScreenRow(w,0)*v.lineHeight;return p-this.session.getScrollTop()>v.height-v.lineHeight?w-1:w},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(v){this.$padding=v,this.$textLayer.setPadding(v),this.$cursorLayer.setPadding(v),this.$markerFront.setPadding(v),this.$markerBack.setPadding(v),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(v,w,p,y){var C=this.scrollMargin;C.top=v|0,C.bottom=w|0,C.right=y|0,C.left=p|0,C.v=C.top+C.bottom,C.h=C.left+C.right,C.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-C.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(v){this.setOption("hScrollBarAlwaysVisible",v)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(v){this.setOption("vScrollBarAlwaysVisible",v)},this.$updateScrollBarV=function(){var v=this.layerConfig.maxHeight,w=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(v-=(w-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>v-w&&(v=this.scrollTop+w,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(v+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(v,w){if(this.$changes&&(v|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!v&&!w){this.$changes|=v;return}if(this.$size.$dirty)return this.$changes|=v,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var p=this.layerConfig;if(v&this.CHANGE_FULL||v&this.CHANGE_SIZE||v&this.CHANGE_TEXT||v&this.CHANGE_LINES||v&this.CHANGE_SCROLL||v&this.CHANGE_H_SCROLL){if(v|=this.$computeLayerConfig(),p.firstRow!=this.layerConfig.firstRow&&p.firstRowScreen==this.layerConfig.firstRowScreen){var y=this.scrollTop+(p.firstRow-this.layerConfig.firstRow)*this.lineHeight;y>0&&(this.scrollTop=y,v=v|this.CHANGE_SCROLL,v|=this.$computeLayerConfig())}p=this.layerConfig,this.$updateScrollBarV(),v&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-p.offset+"px",this.content.style.marginTop=-p.offset+"px",this.content.style.width=p.width+2*this.$padding+"px",this.content.style.height=p.minHeight+"px"}if(v&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),v&this.CHANGE_FULL){this.$textLayer.update(p),this.$showGutter&&this.$gutterLayer.update(p),this.$markerBack.update(p),this.$markerFront.update(p),this.$cursorLayer.update(p),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this._signal("afterRender");return}if(v&this.CHANGE_SCROLL){v&this.CHANGE_TEXT||v&this.CHANGE_LINES?this.$textLayer.update(p):this.$textLayer.scrollLines(p),this.$showGutter&&this.$gutterLayer.update(p),this.$markerBack.update(p),this.$markerFront.update(p),this.$cursorLayer.update(p),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),this._signal("afterRender");return}v&this.CHANGE_TEXT?(this.$textLayer.update(p),this.$showGutter&&this.$gutterLayer.update(p)):v&this.CHANGE_LINES?(this.$updateLines()||v&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(p):(v&this.CHANGE_TEXT||v&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(p),v&this.CHANGE_CURSOR&&(this.$cursorLayer.update(p),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),v&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(p),v&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(p),this._signal("afterRender")},this.$autosize=function(){var v=this.session.getScreenLength()*this.lineHeight,w=this.$maxLines*this.lineHeight,p=Math.min(w,Math.max((this.$minLines||1)*this.lineHeight,v))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(p+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&p>this.$maxPixelHeight&&(p=this.$maxPixelHeight);var y=v>w;if(p!=this.desiredHeight||this.$size.height!=this.desiredHeight||y!=this.$vScroll){y!=this.$vScroll&&(this.$vScroll=y,this.scrollBarV.setVisible(y));var C=this.container.clientWidth;this.container.style.height=p+"px",this.$updateCachedSize(!0,this.$gutterWidth,C,p),this.desiredHeight=p,this._signal("autosize")}},this.$computeLayerConfig=function(){var v=this.session,w=this.$size,p=w.height<=2*this.lineHeight,y=this.session.getScreenLength(),C=y*this.lineHeight,D=this.$getLongestLine(),m=!p&&(this.$hScrollBarAlwaysVisible||w.scrollerWidth-D-2*this.$padding<0),E=this.$horizScroll!==m;E&&(this.$horizScroll=m,this.scrollBarH.setVisible(m));var k=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var S=this.scrollTop%this.lineHeight,F=w.scrollerHeight+this.lineHeight,_=!this.$maxLines&&this.$scrollPastEnd?(w.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;C+=_;var T=this.scrollMargin;this.session.setScrollTop(Math.max(-T.top,Math.min(this.scrollTop,C-w.scrollerHeight+T.bottom))),this.session.setScrollLeft(Math.max(-T.left,Math.min(this.scrollLeft,D+2*this.$padding-w.scrollerWidth+T.right)));var O=!p&&(this.$vScrollBarAlwaysVisible||w.scrollerHeight-C+_<0||this.scrollTop>T.top),B=k!==O;B&&(this.$vScroll=O,this.scrollBarV.setVisible(O));var W=Math.ceil(F/this.lineHeight)-1,H=Math.max(0,Math.round((this.scrollTop-S)/this.lineHeight)),R=H+W,z,N,M=this.lineHeight;H=v.screenToDocumentRow(H,0);var I=v.getFoldLine(H);I&&(H=I.start.row),z=v.documentToScreenRow(H,0),N=v.getRowLength(H)*M,R=Math.min(v.screenToDocumentRow(R,0),v.getLength()-1),F=w.scrollerHeight+v.getRowLength(R)*M+N,S=this.scrollTop-z*M;var j=0;return this.layerConfig.width!=D&&(j=this.CHANGE_H_SCROLL),(E||B)&&(j=this.$updateCachedSize(!0,this.gutterWidth,w.width,w.height),this._signal("scrollbarVisibilityChanged"),B&&(D=this.$getLongestLine())),this.layerConfig={width:D,padding:this.$padding,firstRow:H,firstRowScreen:z,lastRow:R,lineHeight:M,characterWidth:this.characterWidth,minHeight:F,maxHeight:C,offset:S,gutterOffset:M?Math.max(0,Math.ceil((S+w.height-w.scrollerHeight)/M)):0,height:this.$size.scrollerHeight},j},this.$updateLines=function(){if(this.$changedLines){var v=this.$changedLines.firstRow,w=this.$changedLines.lastRow;this.$changedLines=null;var p=this.layerConfig;if(!(v>p.lastRow+1)&&!(wD?(w&&k+m>D+this.lineHeight&&(D-=w*this.$size.scrollerHeight),D===0&&(D=-this.scrollMargin.top),this.session.setScrollTop(D)):k+this.$size.scrollerHeight-EC?(C=1-this.scrollMargin.top||w>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||v<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||v>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(v,w){var p=this.scroller.getBoundingClientRect(),y=v+this.scrollLeft-p.left-this.$padding,C=y/this.characterWidth,D=Math.floor((w+this.scrollTop-p.top)/this.lineHeight),m=Math.round(C);return{row:D,column:m,side:C-m>0?1:-1,offsetX:y}},this.screenToTextCoordinates=function(v,w){var p=this.scroller.getBoundingClientRect(),y=v+this.scrollLeft-p.left-this.$padding,C=Math.round(y/this.characterWidth),D=(w+this.scrollTop-p.top)/this.lineHeight;return this.session.screenToDocumentPosition(D,Math.max(C,0),y)},this.textToScreenCoordinates=function(v,w){var p=this.scroller.getBoundingClientRect(),y=this.session.documentToScreenPosition(v,w),C=this.$padding+(this.session.$bidiHandler.isBidiRow(y.row,v)?this.session.$bidiHandler.getPosLeft(y.column):Math.round(y.column*this.characterWidth)),D=y.row*this.lineHeight;return{pageX:p.left+C-this.scrollLeft,pageY:p.top+D-this.scrollTop}},this.visualizeFocus=function(){s.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){s.removeCssClass(this.container,"ace_focus")},this.showComposition=function(v){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,s.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(v){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(s.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(v,w){var p=this;if(this.$themeId=v,p._dispatchEvent("themeChange",{theme:v}),!v||typeof v=="string"){var y=v||this.$options.theme.initialValue;c.loadModule(["theme",y],C)}else C(v);function C(D){if(p.$themeId!=v)return w&&w();if(!D||!D.cssClass)throw new Error("couldn't load module "+v+" or it didn't call define");s.importCssString(D.cssText,D.cssClass,p.container.ownerDocument),p.theme&&s.removeCssClass(p.container,p.theme.cssClass);var m="padding"in D?D.padding:"padding"in(p.theme||{})?4:p.$padding;p.$padding&&m!=p.$padding&&p.setPadding(m),p.$theme=D.cssClass,p.theme=D,s.addCssClass(p.container,D.cssClass),s.setCssClass(p.container,"ace_dark",D.isDark),p.$size&&(p.$size.width=0,p.$updateSizeAsync()),p._dispatchEvent("themeLoaded",{theme:D}),w&&w()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(v,w){s.setCssClass(this.container,v,w!==!1)},this.unsetStyle=function(v){s.removeCssClass(this.container,v)},this.setCursorStyle=function(v){this.scroller.style.cursor!=v&&(this.scroller.style.cursor=v)},this.setMouseCursor=function(v){this.scroller.style.cursor=v},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(A.prototype),c.defineOptions(A.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(v){this.$textLayer.setShowInvisibles(v)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(v){typeof v=="number"&&(this.$printMarginColumn=v),this.$showPrintMargin=!!v,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(v){this.$gutter.style.display=v?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(v){s.setCssClass(this.$gutter,"ace_fade-fold-widgets",v)},initialValue:!1},showFoldWidgets:{set:function(v){this.$gutterLayer.setShowFoldWidgets(v)},initialValue:!0},showLineNumbers:{set:function(v){this.$gutterLayer.setShowLineNumbers(v),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(v){this.$textLayer.setDisplayIndentGuides(v)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(v){if(!this.$gutterLineHighlight){this.$gutterLineHighlight=s.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",this.$gutter.appendChild(this.$gutterLineHighlight);return}this.$gutterLineHighlight.style.display=v?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(v){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(v){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(v){typeof v=="number"&&(v=v+"px"),this.container.style.fontSize=v,this.updateFontSize()},initialValue:12},fontFamily:{set:function(v){this.container.style.fontFamily=v,this.updateFontSize()}},maxLines:{set:function(v){this.updateFull()}},minLines:{set:function(v){this.updateFull()}},maxPixelHeight:{set:function(v){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(v){v=+v||0,this.$scrollPastEnd!=v&&(this.$scrollPastEnd=v,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(v){this.$gutterLayer.$fixedWidth=!!v,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(v){this.setTheme(v)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=A});ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("../lib/net"),c=e("../lib/event_emitter").EventEmitter,l=e("../config");function a(u,h){var f=h.src;""+s.qualifyURL(u);try{return new Blob([f],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,b=new g;return b.append(f),b.getBlob("application/javascript")}}function i(u,h){var f=a(u,h),g=window.URL||window.webkitURL,b=g.createObjectURL(f);return new Worker(b)}var o=function(u,h,f,g,b){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),l.get("packaged")||!e.toUrl)g=g||l.moduleUrl(h.id,"worker");else{var x=this.$normalizePath;g=g||x(e.toUrl("ace/worker/worker.js",null,"_"));var A={};u.forEach(function(v){A[v]=x(e.toUrl(v,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}this.$worker=i(g,h),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:A,module:h.id,classname:f}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){n.implement(this,c),this.onMessage=function(u){var h=u.data;switch(h.type){case"event":this._signal(h.name,{data:h.data});break;case"call":var f=this.callbacks[h.id];f&&(f(h.data),delete this.callbacks[h.id]);break;case"error":this.reportError(h.data);break;case"log":window.console&&console.log&&console.log.apply(console,h.data);break}},this.reportError=function(u){window.console&&console.error&&console.error(u)},this.$normalizePath=function(u){return s.qualifyURL(u)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(u,h){this.$worker.postMessage({command:u,args:h})},this.call=function(u,h,f){if(f){var g=this.callbackId++;this.callbacks[g]=f,h.push(g)}this.send(u,h)},this.emit=function(u,h){try{this.$worker.postMessage({event:u,data:{data:h.data}})}catch(f){console.error(f.stack)}},this.attachToDocument=function(u){this.$doc&&this.terminate(),this.$doc=u,this.call("setValue",[u.getValue()]),u.on("change",this.changeListener)},this.changeListener=function(u){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),u.action=="insert"?this.deltaQueue.push(u.start,u.lines):this.deltaQueue.push(u.start,u.end)},this.$sendDeltaQueue=function(){var u=this.deltaQueue;u&&(this.deltaQueue=null,u.length>50&&u.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:u}))}}).call(o.prototype);var d=function(u,h,f){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var g=null,b=!1,x=Object.create(c),A=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(w){A.messageBuffer.push(w),g&&(b?setTimeout(v):v())},this.setEmitSync=function(w){b=w};var v=function(){var w=A.messageBuffer.shift();w.command?g[w.command].apply(g,w.args):w.event&&x._signal(w.event,w.data)};x.postMessage=function(w){A.onMessage({data:w})},x.callback=function(w,p){this.postMessage({type:"call",id:p,data:w})},x.emit=function(w,p){this.postMessage({type:"event",name:w,data:p})},l.loadModule(["worker",h],function(w){for(g=new w[f](x);A.messageBuffer.length;)v()})};d.prototype=o.prototype,t.UIWorkerClient=d,t.WorkerClient=o,t.createWorker=i});ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,r){"use strict";var n=e("./range").Range,s=e("./lib/event_emitter").EventEmitter,c=e("./lib/oop"),l=function(a,i,o,d,u,h){var f=this;this.length=i,this.session=a,this.doc=a.getDocument(),this.mainClass=u,this.othersClass=h,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=d,this.$onCursorChange=function(){setTimeout(function(){f.onCursorChange()})},this.$pos=o;var g=a.getUndoManager().$undoStack||a.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=g.length,this.setup(),a.selection.on("changeCursor",this.$onCursorChange)};(function(){c.implement(this,s),this.setup=function(){var a=this,i=this.doc,o=this.session;this.selectionBefore=o.selection.toJSON(),o.selection.inMultiSelectMode&&o.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var d=this.pos;d.$insertRight=!0,d.detach(),d.markerId=o.addMarker(new n(d.row,d.column,d.row,d.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(u){var h=i.createAnchor(u.row,u.column);h.$insertRight=!0,h.detach(),a.others.push(h)}),o.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var a=this.session,i=this;this.othersActive=!0,this.others.forEach(function(o){o.markerId=a.addMarker(new n(o.row,o.column,o.row,o.column+i.length),i.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var a=0;a=this.pos.column&&i.start.column<=this.pos.column+this.length+1,u=i.start.column-this.pos.column;if(this.updateAnchors(a),d&&(this.length+=o),d&&!this.session.$fromUndo){if(a.action==="insert")for(var h=this.others.length-1;h>=0;h--){var f=this.others[h],g={row:f.row,column:f.column+u};this.doc.insertMergedLines(g,a.lines)}else if(a.action==="remove")for(var h=this.others.length-1;h>=0;h--){var f=this.others[h],g={row:f.row,column:f.column+u};this.doc.remove(new n(g.row,g.column,g.row,g.column-o))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(a){this.pos.onChange(a);for(var i=this.others.length;i--;)this.others[i].onChange(a);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var a=this,i=this.session,o=function(u,h){i.removeMarker(u.markerId),u.markerId=i.addMarker(new n(u.row,u.column,u.row,u.column+a.length),h,null,!1)};o(this.pos,this.mainClass);for(var d=this.others.length;d--;)o(this.others[d],this.othersClass)}},this.onCursorChange=function(a){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",a)):(this.hideOtherMarkers(),this._emit("cursorLeave",a))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var a=this.session.getUndoManager(),i=(a.$undoStack||a.$undostack).length-this.$undoStackDepth,o=0;o1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange(v)}},this.toSingleRange=function(v){v=v||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),v&&this.fromOrientedRange(v)},this.substractPoint=function(v){var w=this.rangeList.substractPoint(v);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var v=this.rangeList.merge();v.length?this.$onRemoveRange(v):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(v){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(v),this._signal("addRange",{range:v})},this.$onRemoveRange=function(v){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();v.push(w),this.rangeCount=0}for(var p=v.length;p--;){var y=this.ranges.indexOf(v[p]);this.ranges.splice(y,1)}this._signal("removeRange",{ranges:v}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),w=w||this.ranges[0],w&&!w.isEqual(this.getRange())&&this.fromOrientedRange(w)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new n,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var v=this.rangeList.ranges,w=v[v.length-1],p=s.fromPoints(v[0].start,w.end);this.toSingleRange(),this.setSelectionRange(p,w.cursor==w.start)}else{var p=this.getRange(),y=this.isBackwards(),C=p.start.row,D=p.end.row;if(C==D){if(y)var m=p.end,E=p.start;else var m=p.start,E=p.end;this.addRange(s.fromPoints(E,E)),this.addRange(s.fromPoints(m,m));return}var k=[],S=this.getLineRange(C,!0);S.start.column=p.start.column,k.push(S);for(var F=C+1;F1){var v=this.rangeList.ranges,w=v[v.length-1],p=s.fromPoints(v[0].start,w.end);this.toSingleRange(),this.setSelectionRange(p,w.cursor==w.start)}else{var y=this.session.documentToScreenPosition(this.selectionLead),C=this.session.documentToScreenPosition(this.selectionAnchor),D=this.rectangularRangeBlock(y,C);D.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(v,w,p){var y=[],C=v.column0;)W--;if(W>0)for(var H=0;y[H].isEmpty();)H++;for(var R=W;R>=H;R--)y[R].isEmpty()&&y.splice(R,1)}return y}}).call(c.prototype);var g=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(v){v.cursor||(v.cursor=v.end);var w=this.getSelectionStyle();return v.marker=this.session.addMarker(v,"ace_selection",w),this.session.$selectionMarkers.push(v),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,v},this.removeSelectionMarker=function(v){if(v.marker){this.session.removeMarker(v.marker);var w=this.session.$selectionMarkers.indexOf(v);w!=-1&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(v){for(var w=this.session.$selectionMarkers,p=v.length;p--;){var y=v[p];if(y.marker){this.session.removeMarker(y.marker);var C=w.indexOf(y);C!=-1&&w.splice(C,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function(v){this.addSelectionMarker(v.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(v){this.removeSelectionMarkers(v.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(v){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(o.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(v){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(o.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(v){var w=v.command,p=v.editor;if(p.multiSelect){if(w.multiSelectAction)w.multiSelectAction=="forEach"?y=p.forEachSelection(w,v.args):w.multiSelectAction=="forEachLine"?y=p.forEachSelection(w,v.args,!0):w.multiSelectAction=="single"?(p.exitMultiSelectMode(),y=w.exec(p,v.args||{})):y=w.multiSelectAction(p,v.args||{});else{var y=w.exec(p,v.args||{});p.multiSelect.addRange(p.multiSelect.toOrientedRange()),p.multiSelect.mergeOverlappingRanges()}return y}},this.forEachSelection=function(v,w,p){if(!this.inVirtualSelectionMode){var y=p&&p.keepOrder,C=p==!0||p&&p.$byLines,D=this.session,m=this.selection,E=m.rangeList,k=(y?m:E).ranges,S;if(!k.length)return v.exec?v.exec(this,w||{}):v(this,w||{});var F=m._eventRegistry;m._eventRegistry={};var _=new c(D);this.inVirtualSelectionMode=!0;for(var T=k.length;T--;){if(C)for(;T>0&&k[T].start.row==k[T-1].end.row;)T--;_.fromOrientedRange(k[T]),_.index=T,this.selection=D.selection=_;var O=v.exec?v.exec(this,w||{}):v(this,w||{});!S&&O!==void 0&&(S=O),_.toOrientedRange(k[T])}_.detach(),this.selection=D.selection=m,this.inVirtualSelectionMode=!1,m._eventRegistry=F,m.mergeOverlappingRanges();var B=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),B&&B.from==B.to&&this.renderer.animateScrolling(B.from),S}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var v="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,p=[],y=0;y0);m<0&&(m=0),E>=S&&(E=S-1)}var _=this.session.removeFullLines(m,E);_=this.$reAlignText(_,k),this.session.insert({row:m,column:0},_.join(` `)+` -`),k||(D.start.column=0,D.end.column=_[_.length-1].length),this.selection.setRange(D)}else{C.forEach(function(W){w.substractPoint(W.cursor)});var T=0,B=1/0,N=p.map(function(W){var H=W.cursor,R=v.getLine(H.row),z=R.substr(H.column).search(/\S/g);return z==-1&&(z=0),H.column>T&&(T=H.column),zO?v.insert(R,i.stringRepeat(" ",z-O)):v.remove(new s(R.row,R.column,R.row,R.column-z+O)),W.start.column=W.end.column=T,W.start.row=W.end.row=R.row,W.cursor=W.end}),w.fromOrientedRange(p[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(v,w){var p=!0,y=!0,C,D,m;return v.map(function(_){var T=_.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?C==null?(C=T[1].length,D=T[2].length,m=T[3].length,T):(C+D+m!=T[1].length+T[2].length+T[3].length&&(y=!1),C!=T[1].length&&(p=!1),C>T[1].length&&(C=T[1].length),DT[3].length&&(m=T[3].length),T):[_]}).map(w?k:p?y?S:k:F);function E(_){return i.stringRepeat(" ",_)}function k(_){return _[2]?E(C)+_[2]+E(D-_[2].length+m)+_[4].replace(/^([=:])\s+/,"$1 "):_[0]}function S(_){return _[2]?E(C+D-_[2].length)+_[2]+E(m," ")+_[4].replace(/^([=:])\s+/,"$1 "):_[0]}function F(_){return _[2]?E(C)+_[2]+E(m)+_[4].replace(/^([=:])\s+/,"$1 "):_[0]}}}).call(g.prototype);function b(v,w){return v.row==w.row&&v.column==w.column}t.onSessionChange=function(v){var w=v.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var p=v.oldSession;p&&(p.multiSelect.off("addRange",this.$onAddRange),p.multiSelect.off("removeRange",this.$onRemoveRange),p.multiSelect.off("multiSelect",this.$onMultiSelect),p.multiSelect.off("singleSelect",this.$onSingleSelect),p.multiSelect.lead.off("change",this.$checkMultiselectChange),p.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(v){v.$multiselectOnSessionChange||(v.$onAddRange=v.$onAddRange.bind(v),v.$onRemoveRange=v.$onRemoveRange.bind(v),v.$onMultiSelect=v.$onMultiSelect.bind(v),v.$onSingleSelect=v.$onSingleSelect.bind(v),v.$multiselectOnSessionChange=t.onSessionChange.bind(v),v.$checkMultiselectChange=v.$checkMultiselectChange.bind(v),v.$multiselectOnSessionChange(v),v.on("changeSession",v.$multiselectOnSessionChange),v.on("mousedown",l),v.commands.addCommands(o.defaultCommands),A(v))}function A(v){var w=v.textInput.getElement(),p=!1;a.addListener(w,"keydown",function(C){var D=C.keyCode==18&&!(C.ctrlKey||C.shiftKey||C.metaKey);v.$blockSelectEnabled&&D?p||(v.renderer.setMouseCursor("crosshair"),p=!0):p&&y()}),a.addListener(w,"keyup",y),a.addListener(w,"blur",y);function y(C){p&&(v.renderer.setMouseCursor(""),p=!1)}}t.MultiSelect=x,e("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(v){x(this),v?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",l)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",l))},value:!0},enableBlockSelect:{set:function(v){this.$blockSelectEnabled=v},value:!0}})});ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,r){"use strict";var n=e("../../range").Range,s=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(c,l,a){var i=c.getLine(a);return this.foldingStartMarker.test(i)?"start":l=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(c,l,a){return null},this.indentationBlock=function(c,l,a){var i=/\S/,o=c.getLine(l),d=o.search(i);if(d!=-1){for(var u=a||o.length,f=c.getLength(),h=l,g=l;++lh){var x=c.getLine(g).length;return new n(h,u,g,x)}}},this.openingBracketBlock=function(c,l,a,i,o){var d={row:a,column:i+1},u=c.$findClosingBracket(l,d,o);if(u){var f=c.foldWidgets[u.row];return f==null&&(f=c.getFoldWidget(u.row)),f=="start"&&u.row>d.row&&(u.row--,u.column=c.getLine(u.row).length),n.fromPoints(d,u)}},this.closingBracketBlock=function(c,l,a,i,o){var d={row:a,column:i},u=c.$findOpeningBracket(l,d);if(u)return u.column++,d.column--,n.fromPoints(u,d)}}).call(s.prototype)});ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,r){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var n=e("../lib/dom");n.importCssString(t.cssText,t.cssClass)});ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(e,t,r){"use strict";var n=e("./lib/oop"),s=e("./lib/dom"),c=e("./range").Range;function l(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)}(function(){this.getRowLength=function(a){var i;return this.lineWidgets?i=this.lineWidgets[a]&&this.lineWidgets[a].rowCount||0:i=0,!this.$useWrapMode||!this.$wrapData[a]?1+i:this.$wrapData[a].length+1+i},this.$getWidgetScreenLength=function(){var a=0;return this.lineWidgets.forEach(function(i){i&&i.rowCount&&!i.hidden&&(a+=i.rowCount)}),a},this.$onChangeEditor=function(a){this.attach(a.editor)},this.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)))},this.detach=function(a){var i=this.editor;if(i){this.editor=null,i.widgetManager=null,i.renderer.off("beforeRender",this.measureWidgets),i.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(d){d&&d.el&&d.el.parentNode&&(d._inDocument=!1,d.el.parentNode.removeChild(d.el))})}},this.updateOnFold=function(a,i){var o=i.lineWidgets;if(!(!o||!a.action)){for(var d=a.data,u=d.start.row,f=d.end.row,h=a.action=="add",g=u+1;g0&&!d[u];)u--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,i.$cursorLayer.config=o;for(var h=u;h<=f;h++){var g=d[h];if(!(!g||!g.el)){if(g.hidden){g.el.style.top=-100-(g.pixelHeight||0)+"px";continue}g._inDocument||(g._inDocument=!0,i.container.appendChild(g.el));var b=i.$cursorLayer.getPixelPosition({row:h,column:0},!0).top;g.coverLine||(b+=o.lineHeight*this.session.getRowLineCount(g.row)),g.el.style.top=b-o.offset+"px";var x=g.coverGutter?0:i.gutterWidth;g.fixedWidth||(x-=i.scrollLeft),g.el.style.left=x+"px",g.fullWidth&&g.screenWidth&&(g.el.style.minWidth=o.width+2*o.padding+"px"),g.fixedWidth?g.el.style.right=i.scrollBar.getWidth()+"px":g.el.style.right=""}}}}}).call(l.prototype),t.LineWidgets=l});ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(e,t,r){"use strict";var n=e("../line_widgets").LineWidgets,s=e("../lib/dom"),c=e("../range").Range;function l(i,o,d){for(var u=0,f=i.length-1;u<=f;){var h=u+f>>1,g=d(o,i[h]);if(g>0)u=h+1;else if(g<0)f=h-1;else return h}return-(u+1)}function a(i,o,d){var u=i.getAnnotations().sort(c.comparePoints);if(u.length){var f=l(u,{row:o,column:-1},c.comparePoints);f<0&&(f=-f-1),f>=u.length?f=d>0?0:u.length-1:f===0&&d<0&&(f=u.length-1);var h=u[f];if(!(!h||!d)){if(h.row===o){do h=u[f+=d];while(h&&h.row===o);if(!h)return u.slice()}var g=[];o=h.row;do g[d<0?"unshift":"push"](h),h=u[f+=d];while(h&&h.row==o);return g.length&&g}}}t.showErrorMarker=function(i,o){var d=i.session;d.widgetManager||(d.widgetManager=new n(d),d.widgetManager.attach(i));var u=i.getCursorPosition(),f=u.row,h=d.widgetManager.getWidgetsAtRow(f).filter(function(C){return C.type=="errorMarker"})[0];h?h.destroy():f-=o;var g=a(d,f,o),b;if(g){var x=g[0];u.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,u.row=x.row,b=i.renderer.$gutterLayer.$annotations[u.row]}else{if(h)return;b={text:["Looks good!"],className:"ace_ok"}}i.session.unfold(u.row),i.selection.moveToPosition(u);var A={row:u.row,fixedWidth:!0,coverGutter:!0,el:s.createElement("div"),type:"errorMarker"},v=A.el.appendChild(s.createElement("div")),w=A.el.appendChild(s.createElement("div"));w.className="error_widget_arrow "+b.className;var p=i.renderer.$cursorLayer.getPixelPosition(u).left;w.style.left=p+i.renderer.gutterWidth-5+"px",A.el.className="error_widget_wrapper",v.className="error_widget "+b.className,v.innerHTML=b.text.join("
"),v.appendChild(s.createElement("div"));var y=function(C,D,m){if(D===0&&(m==="esc"||m==="return"))return A.destroy(),{command:"null"}};A.destroy=function(){i.$mouseHandler.isMousePressed||(i.keyBinding.removeKeyboardHandler(y),d.widgetManager.removeLineWidget(A),i.off("changeSelection",A.destroy),i.off("changeSession",A.destroy),i.off("mouseup",A.destroy),i.off("change",A.destroy))},i.keyBinding.addKeyboardHandler(y),i.on("changeSelection",A.destroy),i.on("changeSession",A.destroy),i.on("mouseup",A.destroy),i.on("change",A.destroy),i.session.widgetManager.addLineWidget(A),A.el.onmousedown=i.focus.bind(i),i.renderer.scrollCursorIntoView(null,.5,{bottom:A.el.offsetHeight})},s.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")});ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","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"],function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var n=e("./lib/dom"),s=e("./lib/event"),c=e("./editor").Editor,l=e("./edit_session").EditSession,a=e("./undomanager").UndoManager,i=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.acequire=e,typeof define=="function"&&(t.define=define),t.edit=function(o){if(typeof o=="string"){var d=o;if(o=document.getElementById(d),!o)throw new Error("ace.edit can't find div #"+d)}if(o&&o.env&&o.env.editor instanceof c)return o.env.editor;var u="";if(o&&/input|textarea/i.test(o.tagName)){var f=o;u=f.value,o=n.createElement("pre"),f.parentNode.replaceChild(o,f)}else o&&(u=n.getInnerText(o),o.innerHTML="");var h=t.createEditSession(u),g=new c(new i(o));g.setSession(h);var b={document:h,editor:g,onResize:g.resize.bind(g,null)};return f&&(b.textarea=f),s.addListener(window,"resize",b.onResize),g.on("destroy",function(){s.removeListener(window,"resize",b.onResize),b.editor.container.env=null}),g.container.env=g.env=b,g},t.createEditSession=function(o,d){var u=new l(o,d);return u.setUndoManager(new a),u},t.EditSession=l,t.UndoManager=a,t.version="1.2.9"});(function(){ace.acequire(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e);for(var t in e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])})})();Jc.exports=window.ace.acequire("ace/ace")});var iu=Es((F1,vs)=>{vs.exports.id="ace/mode/javascript_worker";vs.exports.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/javascript/jshint",["require","exports","module"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire="function"==typeof acequire&&acequire;if(!jumped&¤tRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error("Cannot find module '"+name+"'");throw err.code="MODULE_NOT_FOUND",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire="function"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({"/node_modules/browserify/node_modules/events/events.js":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified "error" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-->0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this +`),k||(D.start.column=0,D.end.column=_[_.length-1].length),this.selection.setRange(D)}else{C.forEach(function(W){w.substractPoint(W.cursor)});var T=0,O=1/0,B=p.map(function(W){var H=W.cursor,R=v.getLine(H.row),z=R.substr(H.column).search(/\S/g);return z==-1&&(z=0),H.column>T&&(T=H.column),zN?v.insert(R,i.stringRepeat(" ",z-N)):v.remove(new s(R.row,R.column,R.row,R.column-z+N)),W.start.column=W.end.column=T,W.start.row=W.end.row=R.row,W.cursor=W.end}),w.fromOrientedRange(p[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(v,w){var p=!0,y=!0,C,D,m;return v.map(function(_){var T=_.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?C==null?(C=T[1].length,D=T[2].length,m=T[3].length,T):(C+D+m!=T[1].length+T[2].length+T[3].length&&(y=!1),C!=T[1].length&&(p=!1),C>T[1].length&&(C=T[1].length),DT[3].length&&(m=T[3].length),T):[_]}).map(w?k:p?y?S:k:F);function E(_){return i.stringRepeat(" ",_)}function k(_){return _[2]?E(C)+_[2]+E(D-_[2].length+m)+_[4].replace(/^([=:])\s+/,"$1 "):_[0]}function S(_){return _[2]?E(C+D-_[2].length)+_[2]+E(m," ")+_[4].replace(/^([=:])\s+/,"$1 "):_[0]}function F(_){return _[2]?E(C)+_[2]+E(m)+_[4].replace(/^([=:])\s+/,"$1 "):_[0]}}}).call(g.prototype);function b(v,w){return v.row==w.row&&v.column==w.column}t.onSessionChange=function(v){var w=v.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var p=v.oldSession;p&&(p.multiSelect.off("addRange",this.$onAddRange),p.multiSelect.off("removeRange",this.$onRemoveRange),p.multiSelect.off("multiSelect",this.$onMultiSelect),p.multiSelect.off("singleSelect",this.$onSingleSelect),p.multiSelect.lead.off("change",this.$checkMultiselectChange),p.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(v){v.$multiselectOnSessionChange||(v.$onAddRange=v.$onAddRange.bind(v),v.$onRemoveRange=v.$onRemoveRange.bind(v),v.$onMultiSelect=v.$onMultiSelect.bind(v),v.$onSingleSelect=v.$onSingleSelect.bind(v),v.$multiselectOnSessionChange=t.onSessionChange.bind(v),v.$checkMultiselectChange=v.$checkMultiselectChange.bind(v),v.$multiselectOnSessionChange(v),v.on("changeSession",v.$multiselectOnSessionChange),v.on("mousedown",l),v.commands.addCommands(o.defaultCommands),A(v))}function A(v){var w=v.textInput.getElement(),p=!1;a.addListener(w,"keydown",function(C){var D=C.keyCode==18&&!(C.ctrlKey||C.shiftKey||C.metaKey);v.$blockSelectEnabled&&D?p||(v.renderer.setMouseCursor("crosshair"),p=!0):p&&y()}),a.addListener(w,"keyup",y),a.addListener(w,"blur",y);function y(C){p&&(v.renderer.setMouseCursor(""),p=!1)}}t.MultiSelect=x,e("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(v){x(this),v?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",l)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",l))},value:!0},enableBlockSelect:{set:function(v){this.$blockSelectEnabled=v},value:!0}})});ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,r){"use strict";var n=e("../../range").Range,s=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(c,l,a){var i=c.getLine(a);return this.foldingStartMarker.test(i)?"start":l=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(c,l,a){return null},this.indentationBlock=function(c,l,a){var i=/\S/,o=c.getLine(l),d=o.search(i);if(d!=-1){for(var u=a||o.length,h=c.getLength(),f=l,g=l;++lf){var x=c.getLine(g).length;return new n(f,u,g,x)}}},this.openingBracketBlock=function(c,l,a,i,o){var d={row:a,column:i+1},u=c.$findClosingBracket(l,d,o);if(u){var h=c.foldWidgets[u.row];return h==null&&(h=c.getFoldWidget(u.row)),h=="start"&&u.row>d.row&&(u.row--,u.column=c.getLine(u.row).length),n.fromPoints(d,u)}},this.closingBracketBlock=function(c,l,a,i,o){var d={row:a,column:i},u=c.$findOpeningBracket(l,d);if(u)return u.column++,d.column--,n.fromPoints(u,d)}}).call(s.prototype)});ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,r){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var n=e("../lib/dom");n.importCssString(t.cssText,t.cssClass)});ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(e,t,r){"use strict";var n=e("./lib/oop"),s=e("./lib/dom"),c=e("./range").Range;function l(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)}(function(){this.getRowLength=function(a){var i;return this.lineWidgets?i=this.lineWidgets[a]&&this.lineWidgets[a].rowCount||0:i=0,!this.$useWrapMode||!this.$wrapData[a]?1+i:this.$wrapData[a].length+1+i},this.$getWidgetScreenLength=function(){var a=0;return this.lineWidgets.forEach(function(i){i&&i.rowCount&&!i.hidden&&(a+=i.rowCount)}),a},this.$onChangeEditor=function(a){this.attach(a.editor)},this.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)))},this.detach=function(a){var i=this.editor;if(i){this.editor=null,i.widgetManager=null,i.renderer.off("beforeRender",this.measureWidgets),i.renderer.off("afterRender",this.renderWidgets);var o=this.session.lineWidgets;o&&o.forEach(function(d){d&&d.el&&d.el.parentNode&&(d._inDocument=!1,d.el.parentNode.removeChild(d.el))})}},this.updateOnFold=function(a,i){var o=i.lineWidgets;if(!(!o||!a.action)){for(var d=a.data,u=d.start.row,h=d.end.row,f=a.action=="add",g=u+1;g0&&!d[u];)u--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,i.$cursorLayer.config=o;for(var f=u;f<=h;f++){var g=d[f];if(!(!g||!g.el)){if(g.hidden){g.el.style.top=-100-(g.pixelHeight||0)+"px";continue}g._inDocument||(g._inDocument=!0,i.container.appendChild(g.el));var b=i.$cursorLayer.getPixelPosition({row:f,column:0},!0).top;g.coverLine||(b+=o.lineHeight*this.session.getRowLineCount(g.row)),g.el.style.top=b-o.offset+"px";var x=g.coverGutter?0:i.gutterWidth;g.fixedWidth||(x-=i.scrollLeft),g.el.style.left=x+"px",g.fullWidth&&g.screenWidth&&(g.el.style.minWidth=o.width+2*o.padding+"px"),g.fixedWidth?g.el.style.right=i.scrollBar.getWidth()+"px":g.el.style.right=""}}}}}).call(l.prototype),t.LineWidgets=l});ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(e,t,r){"use strict";var n=e("../line_widgets").LineWidgets,s=e("../lib/dom"),c=e("../range").Range;function l(i,o,d){for(var u=0,h=i.length-1;u<=h;){var f=u+h>>1,g=d(o,i[f]);if(g>0)u=f+1;else if(g<0)h=f-1;else return f}return-(u+1)}function a(i,o,d){var u=i.getAnnotations().sort(c.comparePoints);if(u.length){var h=l(u,{row:o,column:-1},c.comparePoints);h<0&&(h=-h-1),h>=u.length?h=d>0?0:u.length-1:h===0&&d<0&&(h=u.length-1);var f=u[h];if(!(!f||!d)){if(f.row===o){do f=u[h+=d];while(f&&f.row===o);if(!f)return u.slice()}var g=[];o=f.row;do g[d<0?"unshift":"push"](f),f=u[h+=d];while(f&&f.row==o);return g.length&&g}}}t.showErrorMarker=function(i,o){var d=i.session;d.widgetManager||(d.widgetManager=new n(d),d.widgetManager.attach(i));var u=i.getCursorPosition(),h=u.row,f=d.widgetManager.getWidgetsAtRow(h).filter(function(C){return C.type=="errorMarker"})[0];f?f.destroy():h-=o;var g=a(d,h,o),b;if(g){var x=g[0];u.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,u.row=x.row,b=i.renderer.$gutterLayer.$annotations[u.row]}else{if(f)return;b={text:["Looks good!"],className:"ace_ok"}}i.session.unfold(u.row),i.selection.moveToPosition(u);var A={row:u.row,fixedWidth:!0,coverGutter:!0,el:s.createElement("div"),type:"errorMarker"},v=A.el.appendChild(s.createElement("div")),w=A.el.appendChild(s.createElement("div"));w.className="error_widget_arrow "+b.className;var p=i.renderer.$cursorLayer.getPixelPosition(u).left;w.style.left=p+i.renderer.gutterWidth-5+"px",A.el.className="error_widget_wrapper",v.className="error_widget "+b.className,v.innerHTML=b.text.join("
"),v.appendChild(s.createElement("div"));var y=function(C,D,m){if(D===0&&(m==="esc"||m==="return"))return A.destroy(),{command:"null"}};A.destroy=function(){i.$mouseHandler.isMousePressed||(i.keyBinding.removeKeyboardHandler(y),d.widgetManager.removeLineWidget(A),i.off("changeSelection",A.destroy),i.off("changeSession",A.destroy),i.off("mouseup",A.destroy),i.off("change",A.destroy))},i.keyBinding.addKeyboardHandler(y),i.on("changeSelection",A.destroy),i.on("changeSession",A.destroy),i.on("mouseup",A.destroy),i.on("change",A.destroy),i.session.widgetManager.addLineWidget(A),A.el.onmousedown=i.focus.bind(i),i.renderer.scrollCursorIntoView(null,.5,{bottom:A.el.offsetHeight})},s.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")});ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","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"],function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var n=e("./lib/dom"),s=e("./lib/event"),c=e("./editor").Editor,l=e("./edit_session").EditSession,a=e("./undomanager").UndoManager,i=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.acequire=e,typeof define=="function"&&(t.define=define),t.edit=function(o){if(typeof o=="string"){var d=o;if(o=document.getElementById(d),!o)throw new Error("ace.edit can't find div #"+d)}if(o&&o.env&&o.env.editor instanceof c)return o.env.editor;var u="";if(o&&/input|textarea/i.test(o.tagName)){var h=o;u=h.value,o=n.createElement("pre"),h.parentNode.replaceChild(o,h)}else o&&(u=n.getInnerText(o),o.innerHTML="");var f=t.createEditSession(u),g=new c(new i(o));g.setSession(f);var b={document:f,editor:g,onResize:g.resize.bind(g,null)};return h&&(b.textarea=h),s.addListener(window,"resize",b.onResize),g.on("destroy",function(){s.removeListener(window,"resize",b.onResize),b.editor.container.env=null}),g.container.env=g.env=b,g},t.createEditSession=function(o,d){var u=new l(o,d);return u.setUndoManager(new a),u},t.EditSession=l,t.UndoManager=a,t.version="1.2.9"});(function(){ace.acequire(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e);for(var t in e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])})})();Fc.exports=window.ace.acequire("ace/ace")});var Lc=rs((Vv,Jo)=>{Jo.exports.id="ace/mode/javascript_worker";Jo.exports.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/javascript/jshint",["require","exports","module"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire="function"==typeof acequire&&acequire;if(!jumped&¤tRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error("Cannot find module '"+name+"'");throw err.code="MODULE_NOT_FOUND",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire="function"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({"/node_modules/browserify/node_modules/events/events.js":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified "error" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-->0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this }if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0}},{}],"/node_modules/jshint/data/ascii-identifier-data.js":[function(_dereq_,module){for(var identifierStartTable=[],i=0;128>i;i++)identifierStartTable[i]=36===i||i>=65&&90>=i||95===i||i>=97&&122>=i;for(var identifierPartTable=[],i=0;128>i;i++)identifierPartTable[i]=identifierStartTable[i]||i>=48&&57>=i;module.exports={asciiIdentifierStartTable:identifierStartTable,asciiIdentifierPartTable:identifierPartTable}},{}],"/node_modules/jshint/lodash.js":[function(_dereq_,module,exports){(function(global){(function(){function baseFindIndex(array,predicate,fromRight){for(var length=array.length,index=fromRight?length:-1;fromRight?index--:length>++index;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){if(value!==value)return indexOfNaN(array,fromIndex);for(var index=fromIndex-1,length=array.length;length>++index;)if(array[index]===value)return index;return-1}function baseIsFunction(value){return"function"==typeof value||!1}function baseToString(value){return"string"==typeof value?value:null==value?"":value+""}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:length>++index;){var other=array[index];if(other!==other)return index}return-1}function isObjectLike(value){return!!value&&"object"==typeof value}function lodash(){}function arrayCopy(source,array){var index=-1,length=source.length;for(array||(array=Array(length));length>++index;)array[index]=source[index];return array}function arrayEach(array,iteratee){for(var index=-1,length=array.length;length>++index&&iteratee(array[index],index,array)!==!1;);return array}function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];length>++index;){var value=array[index];predicate(value,index,array)&&(result[++resIndex]=value)}return result}function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);length>++index;)result[index]=iteratee(array[index],index,array);return result}function arrayMax(array){for(var index=-1,length=array.length,result=NEGATIVE_INFINITY;length>++index;){var value=array[index];value>result&&(result=value)}return result}function arraySome(array,predicate){for(var index=-1,length=array.length;length>++index;)if(predicate(array[index],index,array))return!0;return!1}function assignWith(object,source,customizer){var props=keys(source);push.apply(props,getSymbols(source));for(var index=-1,length=props.length;length>++index;){var key=props[index],value=object[key],result=customizer(value,source[key],key,object,source);(result===result?result===value:value!==value)&&(value!==undefined||key in object)||(object[key]=result)}return object}function baseCopy(source,props,object){object||(object={});for(var index=-1,length=props.length;length>++index;){var key=props[index];object[key]=source[key]}return object}function baseCallback(func,thisArg,argCount){var type=typeof func;return"function"==type?thisArg===undefined?func:bindCallback(func,thisArg,argCount):null==func?identity:"object"==type?baseMatches(func):thisArg===undefined?property(func):baseMatchesProperty(func,thisArg)}function baseClone(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer&&(result=object?customizer(value,key,object):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return arrayCopy(value,result)}else{var tag=objToString.call(value),isFunc=tag==funcTag;if(tag!=objectTag&&tag!=argsTag&&(!isFunc||object))return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{};if(result=initCloneObject(isFunc?{}:value),!isDeep)return baseAssign(result,value)}stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==value)return stackB[length];return stackA.push(value),stackB.push(result),(isArr?arrayEach:baseForOwn)(value,function(subValue,key){result[key]=baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)}),result}function baseFilter(collection,predicate){var result=[];return baseEach(collection,function(value,index,collection){predicate(value,index,collection)&&result.push(value)}),result}function baseForIn(object,iteratee){return baseFor(object,iteratee,keysIn)}function baseForOwn(object,iteratee){return baseFor(object,iteratee,keys)}function baseGet(object,path,pathKey){if(null!=object){pathKey!==undefined&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=-1,length=path.length;null!=object&&length>++index;)var result=object=object[path[index]];return result}}function baseIsEqual(value,other,customizer,isLoose,stackA,stackB){if(value===other)return 0!==value||1/value==1/other;var valType=typeof value,othType=typeof other;return"function"!=valType&&"object"!=valType&&"function"!=othType&&"object"!=othType||null==value||null==other?value!==value&&other!==other:baseIsEqualDeep(value,other,baseIsEqual,customizer,isLoose,stackA,stackB)}function baseIsEqualDeep(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;objIsArr||(objTag=objToString.call(object),objTag==argsTag?objTag=objectTag:objTag!=objectTag&&(objIsArr=isTypedArray(object))),othIsArr||(othTag=objToString.call(other),othTag==argsTag?othTag=objectTag:othTag!=objectTag&&(othIsArr=isTypedArray(other)));var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&!objIsArr&&!objIsObj)return equalByTag(object,other,objTag);if(!isLoose){var valWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(valWrapped||othWrapped)return equalFunc(valWrapped?object.value():object,othWrapped?other.value():other,customizer,isLoose,stackA,stackB)}if(!isSameTag)return!1;stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==object)return stackB[length]==other;stackA.push(object),stackB.push(other);var result=(objIsArr?equalArrays:equalObjects)(object,other,equalFunc,customizer,isLoose,stackA,stackB);return stackA.pop(),stackB.pop(),result}function baseIsMatch(object,props,values,strictCompareFlags,customizer){for(var index=-1,length=props.length,noCustomizer=!customizer;length>++index;)if(noCustomizer&&strictCompareFlags[index]?values[index]!==object[props[index]]:!(props[index]in object))return!1;for(index=-1;length>++index;){var key=props[index],objValue=object[key],srcValue=values[index];if(noCustomizer&&strictCompareFlags[index])var result=objValue!==undefined||key in object;else result=customizer?customizer(objValue,srcValue,key):undefined,result===undefined&&(result=baseIsEqual(srcValue,objValue,customizer,!0));if(!result)return!1}return!0}function baseMatches(source){var props=keys(source),length=props.length;if(!length)return constant(!0);if(1==length){var key=props[0],value=source[key];if(isStrictComparable(value))return function(object){return null==object?!1:object[key]===value&&(value!==undefined||key in toObject(object))}}for(var values=Array(length),strictCompareFlags=Array(length);length--;)value=source[props[length]],values[length]=value,strictCompareFlags[length]=isStrictComparable(value);return function(object){return null!=object&&baseIsMatch(toObject(object),props,values,strictCompareFlags)}}function baseMatchesProperty(path,value){var isArr=isArray(path),isCommon=isKey(path)&&isStrictComparable(value),pathKey=path+"";return path=toPath(path),function(object){if(null==object)return!1;var key=pathKey;if(object=toObject(object),!(!isArr&&isCommon||key in object)){if(object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),null==object)return!1;key=last(path),object=toObject(object)}return object[key]===value?value!==undefined||key in object:baseIsEqual(value,object[key],null,!0)}}function baseMerge(object,source,customizer,stackA,stackB){if(!isObject(object))return object;var isSrcArr=isLength(source.length)&&(isArray(source)||isTypedArray(source));if(!isSrcArr){var props=keys(source);push.apply(props,getSymbols(source))}return arrayEach(props||source,function(srcValue,key){if(props&&(key=srcValue,srcValue=source[key]),isObjectLike(srcValue))stackA||(stackA=[]),stackB||(stackB=[]),baseMergeDeep(object,source,key,baseMerge,customizer,stackA,stackB);else{var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue),!isSrcArr&&result===undefined||!isCommon&&(result===result?result===value:value!==value)||(object[key]=result)}}),object}function baseMergeDeep(object,source,key,mergeFunc,customizer,stackA,stackB){for(var length=stackA.length,srcValue=source[key];length--;)if(stackA[length]==srcValue)return object[key]=stackB[length],undefined;var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue,isLength(srcValue.length)&&(isArray(srcValue)||isTypedArray(srcValue))?result=isArray(value)?value:getLength(value)?arrayCopy(value):[]:isPlainObject(srcValue)||isArguments(srcValue)?result=isArguments(value)?toPlainObject(value):isPlainObject(value)?value:{}:isCommon=!1),stackA.push(srcValue),stackB.push(result),isCommon?object[key]=mergeFunc(result,srcValue,customizer,stackA,stackB):(result===result?result!==value:value===value)&&(object[key]=result)}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyDeep(path){var pathKey=path+"";return path=toPath(path),function(object){return baseGet(object,path,pathKey)}}function baseSlice(array,start,end){var index=-1,length=array.length;start=null==start?0:+start||0,0>start&&(start=-start>length?0:length+start),end=end===undefined||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);length>++index;)result[index]=array[index+start];return result}function baseSome(collection,predicate){var result;return baseEach(collection,function(value,index,collection){return result=predicate(value,index,collection),!result}),!!result}function baseValues(object,props){for(var index=-1,length=props.length,result=Array(length);length>++index;)result[index]=object[props[index]];return result}function binaryIndex(array,value,retHighest){var low=0,high=array?array.length:low;if("number"==typeof value&&value===value&&HALF_MAX_ARRAY_LENGTH>=high){for(;high>low;){var mid=low+high>>>1,computed=array[mid];(retHighest?value>=computed:value>computed)?low=mid+1:high=mid}return high}return binaryIndexBy(array,value,identity,retHighest)}function binaryIndexBy(array,value,iteratee,retHighest){value=iteratee(value);for(var low=0,high=array?array.length:0,valIsNaN=value!==value,valIsUndef=value===undefined;high>low;){var mid=floor((low+high)/2),computed=iteratee(array[mid]),isReflexive=computed===computed;if(valIsNaN)var setLow=isReflexive||retHighest;else setLow=valIsUndef?isReflexive&&(retHighest||computed!==undefined):retHighest?value>=computed:value>computed;setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function bindCallback(func,thisArg,argCount){if("function"!=typeof func)return identity;if(thisArg===undefined)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function bufferClone(buffer){return bufferSlice.call(buffer,0)}function createAssigner(assigner){return restParam(function(object,sources){var index=-1,length=null==object?0:sources.length,customizer=length>2&&sources[length-2],guard=length>2&&sources[2],thisArg=length>1&&sources[length-1];for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:null,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?null:customizer,length=1);length>++index;){var source=sources[index];source&&assigner(object,source,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){var length=collection?getLength(collection):0;if(!isLength(length))return eachFunc(collection,iteratee);for(var index=fromRight?length:-1,iterable=toObject(collection);(fromRight?index--:length>++index)&&iteratee(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var iterable=toObject(object),props=keysFunc(object),length=props.length,index=fromRight?length:-1;fromRight?index--:length>++index;){var key=props[index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createForEach(arrayFunc,eachFunc){return function(collection,iteratee,thisArg){return"function"==typeof iteratee&&thisArg===undefined&&isArray(collection)?arrayFunc(collection,iteratee):eachFunc(collection,bindCallback(iteratee,thisArg,3))}}function equalArrays(array,other,equalFunc,customizer,isLoose,stackA,stackB){var index=-1,arrLength=array.length,othLength=other.length,result=!0;if(arrLength!=othLength&&!(isLoose&&othLength>arrLength))return!1;for(;result&&arrLength>++index;){var arrValue=array[index],othValue=other[index];if(result=undefined,customizer&&(result=isLoose?customizer(othValue,arrValue,index):customizer(arrValue,othValue,index)),result===undefined)if(isLoose)for(var othIndex=othLength;othIndex--&&(othValue=other[othIndex],!(result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB))););else result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB)}return!!result}function equalByTag(object,other,tag){switch(tag){case boolTag:case dateTag:return+object==+other;case errorTag:return object.name==other.name&&object.message==other.message;case numberTag:return object!=+object?other!=+other:0==object?1/object==1/other:object==+other;case regexpTag:case stringTag:return object==other+""}return!1}function equalObjects(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isLoose)return!1;for(var skipCtor=isLoose,index=-1;objLength>++index;){var key=objProps[index],result=isLoose?key in other:hasOwnProperty.call(other,key);if(result){var objValue=object[key],othValue=other[key];result=undefined,customizer&&(result=isLoose?customizer(othValue,objValue,key):customizer(objValue,othValue,key)),result===undefined&&(result=objValue&&objValue===othValue||equalFunc(objValue,othValue,customizer,isLoose,stackA,stackB))}if(!result)return!1;skipCtor||(skipCtor="constructor"==key)}if(!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!("function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor))return!1}return!0}function getCallback(func,thisArg,argCount){var result=lodash.callback||callback;return result=result===callback?baseCallback:result,argCount?result(func,thisArg,argCount):result}function getIndexOf(collection,target,fromIndex){var result=lodash.indexOf||indexOf;return result=result===indexOf?baseIndexOf:result,collection?result(collection,target,fromIndex):result}function initCloneArray(array){var length=array.length,result=new array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){var Ctor=object.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor||(Ctor=Object),new Ctor}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return bufferClone(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:var buffer=object.buffer;return new Ctor(isDeep?bufferClone(buffer):buffer,object.byteOffset,object.length);case numberTag:case stringTag:return new Ctor(object);case regexpTag:var result=new Ctor(object.source,reFlags.exec(object));result.lastIndex=object.lastIndex}return result}function isIndex(value,length){return value=+value,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&0==value%1&&length>value}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;if("number"==type)var length=getLength(object),prereq=isLength(length)&&isIndex(index,length);else prereq="string"==type&&index in object;if(prereq){var other=object[index];return value===value?value===other:other!==other}return!1}function isKey(value,object){var type=typeof value;if("string"==type&&reIsPlainProp.test(value)||"number"==type)return!0;if(isArray(value))return!1;var result=!reIsDeepProp.test(value);return result||null!=object&&value in toObject(object)}function isLength(value){return"number"==typeof value&&value>-1&&0==value%1&&MAX_SAFE_INTEGER>=value}function isStrictComparable(value){return value===value&&(0===value?1/value>0:!isObject(value))}function shimIsPlainObject(value){var Ctor;if(lodash.support,!isObjectLike(value)||objToString.call(value)!=objectTag||!hasOwnProperty.call(value,"constructor")&&(Ctor=value.constructor,"function"==typeof Ctor&&!(Ctor instanceof Ctor)))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,support=lodash.support,allowIndexes=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object)),index=-1,result=[];propsLength>++index;){var key=props[index];(allowIndexes&&isIndex(key,length)||hasOwnProperty.call(object,key))&&result.push(key)}return result}function toObject(value){return isObject(value)?value:Object(value)}function toPath(value){if(isArray(value))return value;var result=[];return baseToString(value).replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,"$1"):number||match)}),result}function indexOf(array,value,fromIndex){var length=array?array.length:0;if(!length)return-1;if("number"==typeof fromIndex)fromIndex=0>fromIndex?nativeMax(length+fromIndex,0):fromIndex;else if(fromIndex){var index=binaryIndex(array,value),other=array[index];return(value===value?value===other:other!==other)?index:-1}return baseIndexOf(array,value,fromIndex||0)}function last(array){var length=array?array.length:0;return length?array[length-1]:undefined}function slice(array,start,end){var length=array?array.length:0;return length?(end&&"number"!=typeof end&&isIterateeCall(array,start,end)&&(start=0,end=length),baseSlice(array,start,end)):[]}function unzip(array){for(var index=-1,length=(array&&array.length&&arrayMax(arrayMap(array,getLength)))>>>0,result=Array(length);length>++index;)result[index]=arrayMap(array,baseProperty(index));return result}function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),length?(fromIndex="number"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:0>fromIndex?nativeMax(length+fromIndex,0):fromIndex||0,"string"==typeof collection||!isArray(collection)&&isString(collection)?length>fromIndex&&collection.indexOf(target,fromIndex)>-1:getIndexOf(collection,target,fromIndex)>-1):!1}function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function some(collection,predicate,thisArg){var func=isArray(collection)?arraySome:baseSome;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=null),("function"!=typeof predicate||thisArg!==undefined)&&(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function restParam(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);length>++index;)rest[index]=args[start+index];switch(start){case 0:return func.call(this,rest);case 1:return func.call(this,args[0],rest);case 2:return func.call(this,args[0],args[1],rest)}var otherArgs=Array(start+1);for(index=-1;start>++index;)otherArgs[index]=args[index];return otherArgs[start]=rest,func.apply(this,otherArgs)}}function clone(value,isDeep,customizer,thisArg){return isDeep&&"boolean"!=typeof isDeep&&isIterateeCall(value,isDeep,customizer)?isDeep=!1:"function"==typeof isDeep&&(thisArg=customizer,customizer=isDeep,isDeep=!1),customizer="function"==typeof customizer&&bindCallback(customizer,thisArg,1),baseClone(value,isDeep,customizer)}function isArguments(value){var length=isObjectLike(value)?value.length:undefined;return isLength(length)&&objToString.call(value)==argsTag}function isEmpty(value){if(null==value)return!0;var length=getLength(value);return isLength(length)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!length:!keys(value).length}function isObject(value){var type=typeof value;return"function"==type||!!value&&"object"==type}function isNative(value){return null==value?!1:objToString.call(value)==funcTag?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function toPlainObject(value){return baseCopy(value,keysIn(value))}function has(object,path){if(null==object)return!1;var result=hasOwnProperty.call(object,path);return result||isKey(path)||(path=toPath(path),object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),path=last(path),result=null!=object&&hasOwnProperty.call(object,path)),result}function keysIn(object){if(null==object)return[];isObject(object)||(object=Object(object));var length=object.length;length=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object))&&length||0;for(var Ctor=object.constructor,index=-1,isProto="function"==typeof Ctor&&Ctor.prototype===object,result=Array(length),skipIndexes=length>0;length>++index;)result[index]=index+"";for(var key in object)skipIndexes&&isIndex(key,length)||"constructor"==key&&(isProto||!hasOwnProperty.call(object,key))||result.push(key);return result}function values(object){return baseValues(object,keys(object))}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,"\\\\$&"):string}function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=null),baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function property(path){return isKey(path)?baseProperty(path):basePropertyDeep(path)}var undefined,VERSION="3.7.0",FUNC_ERROR_TEXT="Expected a function",argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reIsDeepProp=/\\.|\\[(?:[^[\\]]+|(["'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?)\\1\\]/,reIsPlainProp=/^\\w*$/,rePropName=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,reRegExpChars=/[.*+?^\${}()|[\\]\\/\\\\]/g,reHasRegExpChars=RegExp(reRegExpChars.source),reEscapeChar=/\\\\(\\\\)?/g,reFlags=/\\w*$/,reIsHostCtor=/^\\[object .+?Constructor\\]$/,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var objectTypes={"function":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&"object"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this,arrayProto=Array.prototype,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+escapeRegExp(objToString).replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),ArrayBuffer=isNative(ArrayBuffer=root.ArrayBuffer)&&ArrayBuffer,bufferSlice=isNative(bufferSlice=ArrayBuffer&&new ArrayBuffer(0).slice)&&bufferSlice,floor=Math.floor,getOwnPropertySymbols=isNative(getOwnPropertySymbols=Object.getOwnPropertySymbols)&&getOwnPropertySymbols,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,push=arrayProto.push,preventExtensions=isNative(Object.preventExtensions=Object.preventExtensions)&&preventExtensions,propertyIsEnumerable=objectProto.propertyIsEnumerable,Uint8Array=isNative(Uint8Array=root.Uint8Array)&&Uint8Array,Float64Array=function(){try{var func=isNative(func=root.Float64Array)&&func,result=new func(new ArrayBuffer(10),0,1)&&func}catch(e){}return result}(),nativeAssign=function(){var object={1:0},func=preventExtensions&&isNative(func=Object.assign)&&func;try{func(preventExtensions(object),"xo")}catch(e){}return!object[1]&&func}(),nativeIsArray=isNative(nativeIsArray=Array.isArray)&&nativeIsArray,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=Math.max,nativeMin=Math.min,NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,MAX_ARRAY_LENGTH=Math.pow(2,32)-1,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,FLOAT64_BYTES_PER_ELEMENT=Float64Array?Float64Array.BYTES_PER_ELEMENT:0,MAX_SAFE_INTEGER=Math.pow(2,53)-1,support=lodash.support={};(function(x){var Ctor=function(){this.x=x},props=[];Ctor.prototype={valueOf:x,y:x};for(var key in new Ctor)props.push(key);support.funcDecomp=/\\bthis\\b/.test(function(){return this}),support.funcNames="string"==typeof Function.name;try{support.nonEnumArgs=!propertyIsEnumerable.call(arguments,1)}catch(e){support.nonEnumArgs=!0}})(1,0);var baseAssign=nativeAssign||function(object,source){return null==source?object:baseCopy(source,getSymbols(source),baseCopy(source,keys(source),object))},baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor();bufferSlice||(bufferClone=ArrayBuffer&&Uint8Array?function(buffer){var byteLength=buffer.byteLength,floatLength=Float64Array?floor(byteLength/FLOAT64_BYTES_PER_ELEMENT):0,offset=floatLength*FLOAT64_BYTES_PER_ELEMENT,result=new ArrayBuffer(byteLength);if(floatLength){var view=new Float64Array(result,0,floatLength);view.set(new Float64Array(buffer,0,floatLength))}return byteLength!=offset&&(view=new Uint8Array(result,offset),view.set(new Uint8Array(buffer,offset))),result}:constant(null));var getLength=baseProperty("length"),getSymbols=getOwnPropertySymbols?function(object){return getOwnPropertySymbols(toObject(object))}:constant([]),findLastIndex=createFindIndex(!0),zip=restParam(unzip),forEach=createForEach(arrayEach,baseEach),isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag},isFunction=baseIsFunction(/x/)||Uint8Array&&!baseIsFunction(Uint8Array)?function(value){return objToString.call(value)==funcTag}:baseIsFunction,isPlainObject=getPrototypeOf?function(value){if(!value||objToString.call(value)!=objectTag)return!1;var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)}:shimIsPlainObject,assign=createAssigner(function(object,source,customizer){return customizer?assignWith(object,source,customizer):baseAssign(object,source)}),keys=nativeKeys?function(object){if(object)var Ctor=object.constructor,length=object.length;return"function"==typeof Ctor&&Ctor.prototype===object||"function"!=typeof object&&isLength(length)?shimKeys(object):isObject(object)?nativeKeys(object):[]}:shimKeys,merge=createAssigner(baseMerge);lodash.assign=assign,lodash.callback=callback,lodash.constant=constant,lodash.forEach=forEach,lodash.keys=keys,lodash.keysIn=keysIn,lodash.merge=merge,lodash.property=property,lodash.reject=reject,lodash.restParam=restParam,lodash.slice=slice,lodash.toPlainObject=toPlainObject,lodash.unzip=unzip,lodash.values=values,lodash.zip=zip,lodash.each=forEach,lodash.extend=assign,lodash.iteratee=callback,lodash.clone=clone,lodash.escapeRegExp=escapeRegExp,lodash.findLastIndex=findLastIndex,lodash.has=has,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isEmpty=isEmpty,lodash.isFunction=isFunction,lodash.isNative=isNative,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isPlainObject=isPlainObject,lodash.isString=isString,lodash.isTypedArray=isTypedArray,lodash.last=last,lodash.some=some,lodash.any=some,lodash.contains=includes,lodash.include=includes,lodash.VERSION=VERSION,freeExports&&freeModule?moduleExports?(freeModule.exports=lodash)._=lodash:freeExports._=lodash:root._=lodash }).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/node_modules/jshint/src/jshint.js":[function(_dereq_,module,exports){var _=_dereq_("../lodash"),events=_dereq_("events"),vars=_dereq_("./vars.js"),messages=_dereq_("./messages.js"),Lexer=_dereq_("./lex.js").Lexer,reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,style=_dereq_("./style.js"),options=_dereq_("./options.js"),scopeManager=_dereq_("./scope-manager.js"),JSHINT=function(){"use strict";function checkOption(name,t){return name=name.trim(),/^[+-]W\\d{3}$/g.test(name)?!0:-1!==options.validNames.indexOf(name)||"jslint"===t.type||_.has(options.removed,name)?!0:(error("E001",t,name),!1)}function isString(obj){return"[object String]"===Object.prototype.toString.call(obj)}function isIdentifier(tkn,value){return tkn?tkn.identifier&&tkn.value===value?!0:!1:!1}function isReserved(token){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(token.isProperty)return!1}return!0}function supplant(str,data){return str.replace(/\\{([^{}]*)\\}/g,function(a,b){var r=data[b];return"string"==typeof r||"number"==typeof r?r:a})}function combine(dest,src){Object.keys(src).forEach(function(name){_.has(JSHINT.blacklist,name)||(dest[name]=src[name])})}function processenforceall(){if(state.option.enforceall){for(var enforceopt in options.bool.enforcing)void 0!==state.option[enforceopt]||options.noenforceall[enforceopt]||(state.option[enforceopt]=!0);for(var relaxopt in options.bool.relaxing)void 0===state.option[relaxopt]&&(state.option[relaxopt]=!1)}}function assume(){processenforceall(),state.option.esversion||state.option.moz||(state.option.esversion=state.option.es3?3:state.option.esnext?6:5),state.inES5()&&combine(predefined,vars.ecmaIdentifiers[5]),state.inES6()&&combine(predefined,vars.ecmaIdentifiers[6]),state.option.module&&(state.option.strict===!0&&(state.option.strict="global"),state.inES6()||warning("W134",state.tokens.next,"module",6)),state.option.couch&&combine(predefined,vars.couch),state.option.qunit&&combine(predefined,vars.qunit),state.option.rhino&&combine(predefined,vars.rhino),state.option.shelljs&&(combine(predefined,vars.shelljs),combine(predefined,vars.node)),state.option.typed&&combine(predefined,vars.typed),state.option.phantom&&(combine(predefined,vars.phantom),state.option.strict===!0&&(state.option.strict="global")),state.option.prototypejs&&combine(predefined,vars.prototypejs),state.option.node&&(combine(predefined,vars.node),combine(predefined,vars.typed),state.option.strict===!0&&(state.option.strict="global")),state.option.devel&&combine(predefined,vars.devel),state.option.dojo&&combine(predefined,vars.dojo),state.option.browser&&(combine(predefined,vars.browser),combine(predefined,vars.typed)),state.option.browserify&&(combine(predefined,vars.browser),combine(predefined,vars.typed),combine(predefined,vars.browserify),state.option.strict===!0&&(state.option.strict="global")),state.option.nonstandard&&combine(predefined,vars.nonstandard),state.option.jasmine&&combine(predefined,vars.jasmine),state.option.jquery&&combine(predefined,vars.jquery),state.option.mootools&&combine(predefined,vars.mootools),state.option.worker&&combine(predefined,vars.worker),state.option.wsh&&combine(predefined,vars.wsh),state.option.globalstrict&&state.option.strict!==!1&&(state.option.strict="global"),state.option.yui&&combine(predefined,vars.yui),state.option.mocha&&combine(predefined,vars.mocha)}function quit(code,line,chr){var percentage=Math.floor(100*(line/state.lines.length)),message=messages.errors[code].desc;throw{name:"JSHintError",line:line,character:chr,message:message+" ("+percentage+"% scanned).",raw:message,code:code}}function removeIgnoredMessages(){var ignored=state.ignoredLines;_.isEmpty(ignored)||(JSHINT.errors=_.reject(JSHINT.errors,function(err){return ignored[err.line]}))}function warning(code,t,a,b,c,d){var ch,l,w,msg;if(/^W\\d{3}$/.test(code)){if(state.ignored[code])return;msg=messages.warnings[code]}else/E\\d{3}/.test(code)?msg=messages.errors[code]:/I\\d{3}/.test(code)&&(msg=messages.info[code]);return t=t||state.tokens.next||{},"(end)"===t.id&&(t=state.tokens.curr),l=t.line||0,ch=t.from||0,w={id:"(error)",raw:msg.desc,code:msg.code,evidence:state.lines[l-1]||"",line:l,character:ch,scope:JSHINT.scope,a:a,b:b,c:c,d:d},w.reason=supplant(msg.desc,w),JSHINT.errors.push(w),removeIgnoredMessages(),JSHINT.errors.length>=state.option.maxerr&&quit("E043",l,ch),w}function warningAt(m,l,ch,a,b,c,d){return warning(m,{line:l,from:ch},a,b,c,d)}function error(m,t,a,b,c,d){warning(m,t,a,b,c,d)}function errorAt(m,l,ch,a,b,c,d){return error(m,{line:l,from:ch},a,b,c,d)}function addInternalSrc(elem,src){var i;return i={id:"(internal)",elem:elem,value:src},JSHINT.internals.push(i),i}function doOption(){var nt=state.tokens.next,body=nt.body.match(/(-\\s+)?[^\\s,:]+(?:\\s*:\\s*(-\\s+)?[^\\s,]+)?/g)||[],predef={};if("globals"===nt.type){body.forEach(function(g,idx){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if("-"===key||!key.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}"-"===key.charAt(0)?(key=key.slice(1),val=!1,JSHINT.blacklist[key]=key,delete predefined[key]):predef[key]="true"===val}),combine(predefined,predef);for(var key in predef)_.has(predef,key)&&(declared[key]=nt)}"exported"===nt.type&&body.forEach(function(e,idx){if(!e.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}state.funct["(scope)"].addExported(e)}),"members"===nt.type&&(membersOnly=membersOnly||{},body.forEach(function(m){var ch1=m.charAt(0),ch2=m.charAt(m.length-1);ch1!==ch2||'"'!==ch1&&"'"!==ch1||(m=m.substr(1,m.length-2).replace('\\\\"','"')),membersOnly[m]=!1}));var numvals=["maxstatements","maxparams","maxdepth","maxcomplexity","maxerr","maxlen","indent"];("jshint"===nt.type||"jslint"===nt.type)&&(body.forEach(function(g){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if(checkOption(key,nt))if(numvals.indexOf(key)>=0)if("false"!==val){if(val=+val,"number"!=typeof val||!isFinite(val)||0>=val||Math.floor(val)!==val)return error("E032",nt,g[1].trim()),void 0;state.option[key]=val}else state.option[key]="indent"===key?4:!1;else{if("validthis"===key)return state.funct["(global)"]?void error("E009"):"true"!==val&&"false"!==val?void error("E002",nt):(state.option.validthis="true"===val,void 0);if("quotmark"!==key)if("shadow"!==key)if("unused"!==key)if("latedef"!==key)if("ignore"!==key)if("strict"!==key){"module"===key&&(hasParsedCode(state.funct)||error("E055",state.tokens.next,"module"));var esversions={es3:3,es5:5,esnext:6};if(!_.has(esversions,key)){if("esversion"===key){switch(val){case"5":state.inES5(!0)&&warning("I003");case"3":case"6":state.option.moz=!1,state.option.esversion=+val;break;case"2015":state.option.moz=!1,state.option.esversion=6;break;default:error("E002",nt)}return hasParsedCode(state.funct)||error("E055",state.tokens.next,"esversion"),void 0}var match=/^([+-])(W\\d{3})$/g.exec(key);if(match)return state.ignored[match[2]]="-"===match[1],void 0;var tn;return"true"===val||"false"===val?("jslint"===nt.type?(tn=options.renamed[key]||key,state.option[tn]="true"===val,void 0!==options.inverted[tn]&&(state.option[tn]=!state.option[tn])):state.option[key]="true"===val,"newcap"===key&&(state.option["(explicitNewcap)"]=!0),void 0):(error("E002",nt),void 0)}switch(val){case"true":state.option.moz=!1,state.option.esversion=esversions[key];break;case"false":state.option.moz||(state.option.esversion=5);break;default:error("E002",nt)}}else switch(val){case"true":state.option.strict=!0;break;case"false":state.option.strict=!1;break;case"func":case"global":case"implied":state.option.strict=val;break;default:error("E002",nt)}else switch(val){case"line":state.ignoredLines[nt.line]=!0,removeIgnoredMessages();break;default:error("E002",nt)}else switch(val){case"true":state.option.latedef=!0;break;case"false":state.option.latedef=!1;break;case"nofunc":state.option.latedef="nofunc";break;default:error("E002",nt)}else switch(val){case"true":state.option.unused=!0;break;case"false":state.option.unused=!1;break;case"vars":case"strict":state.option.unused=val;break;default:error("E002",nt)}else switch(val){case"true":state.option.shadow=!0;break;case"outer":state.option.shadow="outer";break;case"false":case"inner":state.option.shadow="inner";break;default:error("E002",nt)}else switch(val){case"true":case"false":state.option.quotmark="true"===val;break;case"double":case"single":state.option.quotmark=val;break;default:error("E002",nt)}}}),assume())}function peek(p){var t,i=p||0,j=lookahead.length;if(j>i)return lookahead[i];for(;i>=j;)t=lookahead[j],t||(t=lookahead[j]=lex.token()),j+=1;return t||"(end)"!==state.tokens.next.id?t:state.tokens.next}function peekIgnoreEOL(){var t,i=0;do t=peek(i++);while("(endline)"===t.id);return t}function advance(id,t){switch(state.tokens.curr.id){case"(number)":"."===state.tokens.next.id&&warning("W005",state.tokens.curr);break;case"-":("-"===state.tokens.next.id||"--"===state.tokens.next.id)&&warning("W006");break;case"+":("+"===state.tokens.next.id||"++"===state.tokens.next.id)&&warning("W007")}for(id&&state.tokens.next.id!==id&&(t?"(end)"===state.tokens.next.id?error("E019",t,t.id):error("E020",state.tokens.next,id,t.id,t.line,state.tokens.next.value):("(identifier)"!==state.tokens.next.type||state.tokens.next.value!==id)&&warning("W116",state.tokens.next,id,state.tokens.next.value)),state.tokens.prev=state.tokens.curr,state.tokens.curr=state.tokens.next;;){if(state.tokens.next=lookahead.shift()||lex.token(),state.tokens.next||quit("E041",state.tokens.curr.line),"(end)"===state.tokens.next.id||"(error)"===state.tokens.next.id)return;if(state.tokens.next.check&&state.tokens.next.check(),state.tokens.next.isSpecial)"falls through"===state.tokens.next.type?state.tokens.curr.caseFallsThrough=!0:doOption();else if("(endline)"!==state.tokens.next.id)break}}function isInfix(token){return token.infix||!token.identifier&&!token.template&&!!token.led}function isEndOfExpr(){var curr=state.tokens.curr,next=state.tokens.next;return";"===next.id||"}"===next.id||":"===next.id?!0:isInfix(next)===isInfix(curr)||"yield"===curr.id&&state.inMoz()?curr.line!==startLine(next):!1}function isBeginOfExpr(prev){return!prev.left&&"unary"!==prev.arity}function expression(rbp,initial){var left,isArray=!1,isObject=!1,isLetExpr=!1;state.nameStack.push(),initial||"let"!==state.tokens.next.value||"("!==peek(0).value||(state.inMoz()||warning("W118",state.tokens.next,"let expressions"),isLetExpr=!0,state.funct["(scope)"].stack(),advance("let"),advance("("),state.tokens.prev.fud(),advance(")")),"(end)"===state.tokens.next.id&&error("E006",state.tokens.curr);var isDangerous=state.option.asi&&state.tokens.prev.line!==startLine(state.tokens.curr)&&_.contains(["]",")"],state.tokens.prev.id)&&_.contains(["[","("],state.tokens.curr.id);if(isDangerous&&warning("W014",state.tokens.curr,state.tokens.curr.id),advance(),initial&&(state.funct["(verb)"]=state.tokens.curr.value,state.tokens.curr.beginsStmt=!0),initial===!0&&state.tokens.curr.fud)left=state.tokens.curr.fud();else for(state.tokens.curr.nud?left=state.tokens.curr.nud():error("E030",state.tokens.curr,state.tokens.curr.id);(state.tokens.next.lbp>rbp||"(template)"===state.tokens.next.type)&&!isEndOfExpr();)isArray="Array"===state.tokens.curr.value,isObject="Object"===state.tokens.curr.value,left&&(left.value||left.first&&left.first.value)&&("new"!==left.value||left.first&&left.first.value&&"."===left.first.value)&&(isArray=!1,left.value!==state.tokens.curr.value&&(isObject=!1)),advance(),isArray&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W009",state.tokens.curr),isObject&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W010",state.tokens.curr),left&&state.tokens.curr.led?left=state.tokens.curr.led(left):error("E033",state.tokens.curr,state.tokens.curr.id);return isLetExpr&&state.funct["(scope)"].unstack(),state.nameStack.pop(),left}function startLine(token){return token.startLine||token.line}function nobreaknonadjacent(left,right){left=left||state.tokens.curr,right=right||state.tokens.next,state.option.laxbreak||left.line===startLine(right)||warning("W014",right,right.value)}function nolinebreak(t){t=t||state.tokens.curr,t.line!==startLine(state.tokens.next)&&warning("E022",t,t.value)}function nobreakcomma(left,right){left.line!==startLine(right)&&(state.option.laxcomma||(comma.first&&(warning("I001"),comma.first=!1),warning("W014",left,right.value)))}function comma(opts){if(opts=opts||{},opts.peek?nobreakcomma(state.tokens.prev,state.tokens.curr):(nobreakcomma(state.tokens.curr,state.tokens.next),advance(",")),state.tokens.next.identifier&&(!opts.property||!state.inES5()))switch(state.tokens.next.value){case"break":case"case":case"catch":case"continue":case"default":case"do":case"else":case"finally":case"for":case"if":case"in":case"instanceof":case"return":case"switch":case"throw":case"try":case"var":case"let":case"while":case"with":return error("E024",state.tokens.next,state.tokens.next.value),!1}if("(punctuator)"===state.tokens.next.type)switch(state.tokens.next.value){case"}":case"]":case",":if(opts.allowTrailing)return!0;case")":return error("E024",state.tokens.next,state.tokens.next.value),!1}return!0}function symbol(s,p){var x=state.syntax[s];return x&&"object"==typeof x||(state.syntax[s]=x={id:s,lbp:p,value:s}),x}function delim(s){var x=symbol(s,0);return x.delim=!0,x}function stmt(s,f){var x=delim(s);return x.identifier=x.reserved=!0,x.fud=f,x}function blockstmt(s,f){var x=stmt(s,f);return x.block=!0,x}function reserveName(x){var c=x.id.charAt(0);return(c>="a"&&"z">=c||c>="A"&&"Z">=c)&&(x.identifier=x.reserved=!0),x}function prefix(s,f){var x=symbol(s,150);return reserveName(x),x.nud="function"==typeof f?f:function(){return this.arity="unary",this.right=expression(150),("++"===this.id||"--"===this.id)&&(state.option.plusplus?warning("W016",this,this.id):!this.right||this.right.identifier&&!isReserved(this.right)||"."===this.right.id||"["===this.right.id||warning("W017",this),this.right&&this.right.isMetaProperty?error("E031",this):this.right&&this.right.identifier&&state.funct["(scope)"].block.modify(this.right.value,this)),this},x}function type(s,f){var x=delim(s);return x.type=s,x.nud=f,x}function reserve(name,func){var x=type(name,func);return x.identifier=!0,x.reserved=!0,x}function FutureReservedWord(name,meta){var x=type(name,meta&&meta.nud||function(){return this});return meta=meta||{},meta.isFutureReservedWord=!0,x.value=name,x.identifier=!0,x.reserved=!0,x.meta=meta,x}function reservevar(s,v){return reserve(s,function(){return"function"==typeof v&&v(this),this})}function infix(s,f,p,w){var x=symbol(s,p);return reserveName(x),x.infix=!0,x.led=function(left){return w||nobreaknonadjacent(state.tokens.prev,state.tokens.curr),"in"!==s&&"instanceof"!==s||"!"!==left.id||warning("W018",left,"!"),"function"==typeof f?f(left,this):(this.left=left,this.right=expression(p),this)},x}function application(s){var x=symbol(s,42);return x.led=function(left){return nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left,this.right=doFunction({type:"arrow",loneArg:left}),this},x}function relation(s,f){var x=symbol(s,100);return x.led=function(left){nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left;var right=this.right=expression(100);return isIdentifier(left,"NaN")||isIdentifier(right,"NaN")?warning("W019",this):f&&f.apply(this,[left,right]),left&&right||quit("E041",state.tokens.curr.line),"!"===left.id&&warning("W018",left,"!"),"!"===right.id&&warning("W018",right,"!"),this},x}function isPoorRelation(node){return node&&("(number)"===node.type&&0===+node.value||"(string)"===node.type&&""===node.value||"null"===node.type&&!state.option.eqnull||"true"===node.type||"false"===node.type||"undefined"===node.type)}function isTypoTypeof(left,right,state){var values;return state.option.notypeof?!1:left&&right?(values=state.inES6()?typeofValues.es6:typeofValues.es3,"(identifier)"===right.type&&"typeof"===right.value&&"(string)"===left.type?!_.contains(values,left.value):!1):!1}function isGlobalEval(left,state){var isGlobal=!1;return"this"===left.type&&null===state.funct["(context)"]?isGlobal=!0:"(identifier)"===left.type&&(state.option.node&&"global"===left.value?isGlobal=!0:!state.option.browser||"window"!==left.value&&"document"!==left.value||(isGlobal=!0)),isGlobal}function findNativePrototype(left){function walkPrototype(obj){return"object"==typeof obj?"prototype"===obj.right?obj:walkPrototype(obj.left):void 0}function walkNative(obj){for(;!obj.identifier&&"object"==typeof obj.left;)obj=obj.left;return obj.identifier&&natives.indexOf(obj.value)>=0?obj.value:void 0}var natives=["Array","ArrayBuffer","Boolean","Collator","DataView","Date","DateTimeFormat","Error","EvalError","Float32Array","Float64Array","Function","Infinity","Intl","Int16Array","Int32Array","Int8Array","Iterator","Number","NumberFormat","Object","RangeError","ReferenceError","RegExp","StopIteration","String","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError"],prototype=walkPrototype(left);return prototype?walkNative(prototype):void 0}function checkLeftSideAssign(left,assignToken,options){var allowDestructuring=options&&options.allowDestructuring;if(assignToken=assignToken||left,state.option.freeze){var nativeObject=findNativePrototype(left);nativeObject&&warning("W121",left,nativeObject)}return left.identifier&&!left.isMetaProperty&&state.funct["(scope)"].block.reassign(left.value,left),"."===left.id?((!left.left||"arguments"===left.left.value&&!state.isStrict())&&warning("E031",assignToken),state.nameStack.set(state.tokens.prev),!0):"{"===left.id||"["===left.id?(allowDestructuring&&state.tokens.curr.left.destructAssign?state.tokens.curr.left.destructAssign.forEach(function(t){t.id&&state.funct["(scope)"].block.modify(t.id,t.token)}):"{"!==left.id&&left.left?"arguments"!==left.left.value||state.isStrict()||warning("E031",assignToken):warning("E031",assignToken),"["===left.id&&state.nameStack.set(left.right),!0):left.isMetaProperty?(error("E031",assignToken),!0):left.identifier&&!isReserved(left)?("exception"===state.funct["(scope)"].labeltype(left.value)&&warning("W022",left),state.nameStack.set(left),!0):(left===state.syntax["function"]&&warning("W023",state.tokens.curr),!1)}function assignop(s,f,p){var x=infix(s,"function"==typeof f?f:function(left,that){return that.left=left,left&&checkLeftSideAssign(left,that,{allowDestructuring:!0})?(that.right=expression(10),that):(error("E031",that),void 0)},p);return x.exps=!0,x.assign=!0,x}function bitwise(s,f,p){var x=symbol(s,p);return reserveName(x),x.led="function"==typeof f?f:function(left){return state.option.bitwise&&warning("W016",this,this.id),this.left=left,this.right=expression(p),this},x}function bitwiseassignop(s){return assignop(s,function(left,that){return state.option.bitwise&&warning("W016",that,that.id),left&&checkLeftSideAssign(left,that)?(that.right=expression(10),that):(error("E031",that),void 0)},20)}function suffix(s){var x=symbol(s,150);return x.led=function(left){return state.option.plusplus?warning("W016",this,this.id):left.identifier&&!isReserved(left)||"."===left.id||"["===left.id||warning("W017",this),left.isMetaProperty?error("E031",this):left&&left.identifier&&state.funct["(scope)"].block.modify(left.value,left),this.left=left,this},x}function optionalidentifier(fnparam,prop,preserve){if(state.tokens.next.identifier){preserve||advance();var curr=state.tokens.curr,val=state.tokens.curr.value;return isReserved(curr)?prop&&state.inES5()?val:fnparam&&"undefined"===val?val:(warning("W024",state.tokens.curr,state.tokens.curr.id),val):val}}function identifier(fnparam,prop){var i=optionalidentifier(fnparam,prop,!1);if(i)return i;if("..."===state.tokens.next.value){if(state.inES6(!0)||warning("W119",state.tokens.next,"spread/rest operator","6"),advance(),checkPunctuator(state.tokens.next,"..."))for(warning("E024",state.tokens.next,"...");checkPunctuator(state.tokens.next,"...");)advance();return state.tokens.next.identifier?identifier(fnparam,prop):(warning("E024",state.tokens.curr,"..."),void 0)}error("E030",state.tokens.next,state.tokens.next.value),";"!==state.tokens.next.id&&advance()}function reachable(controlToken){var t,i=0;if(";"===state.tokens.next.id&&!controlToken.inBracelessBlock)for(;;){do t=peek(i),i+=1;while("(end)"!==t.id&&"(comment)"===t.id);if(t.reach)return;if("(endline)"!==t.id){if("function"===t.id){state.option.latedef===!0&&warning("W026",t);break}warning("W027",t,t.value,controlToken.value);break}}}function parseFinalSemicolon(){if(";"!==state.tokens.next.id){if(state.tokens.next.isUnclosed)return advance();var sameLine=startLine(state.tokens.next)===state.tokens.curr.line&&"(end)"!==state.tokens.next.id,blockEnd=checkPunctuator(state.tokens.next,"}");sameLine&&!blockEnd?errorAt("E058",state.tokens.curr.line,state.tokens.curr.character):state.option.asi||(blockEnd&&!state.option.lastsemic||!sameLine)&&warningAt("W033",state.tokens.curr.line,state.tokens.curr.character)}else advance(";")}function statement(){var r,i=indent,t=state.tokens.next,hasOwnScope=!1;if(";"===t.id)return advance(";"),void 0;var res=isReserved(t);if(res&&t.meta&&t.meta.isFutureReservedWord&&":"===peek().id&&(warning("W024",t,t.id),res=!1),t.identifier&&!res&&":"===peek().id&&(advance(),advance(":"),hasOwnScope=!0,state.funct["(scope)"].stack(),state.funct["(scope)"].block.addBreakLabel(t.value,{token:state.tokens.curr}),state.tokens.next.labelled||"{"===state.tokens.next.value||warning("W028",state.tokens.next,t.value,state.tokens.next.value),state.tokens.next.label=t.value,t=state.tokens.next),"{"===t.id){var iscase="case"===state.funct["(verb)"]&&":"===state.tokens.curr.value;return block(!0,!0,!1,!1,iscase),void 0}return r=expression(0,!0),!r||r.identifier&&"function"===r.value||"(punctuator)"===r.type&&r.left&&r.left.identifier&&"function"===r.left.value||state.isStrict()||"global"!==state.option.strict||warning("E007"),t.block||(state.option.expr||r&&r.exps?state.option.nonew&&r&&r.left&&"("===r.id&&"new"===r.left.id&&warning("W031",t):warning("W030",state.tokens.curr),parseFinalSemicolon()),indent=i,hasOwnScope&&state.funct["(scope)"].unstack(),r}function statements(){for(var p,a=[];!state.tokens.next.reach&&"(end)"!==state.tokens.next.id;)";"===state.tokens.next.id?(p=peek(),(!p||"("!==p.id&&"["!==p.id)&&warning("W032"),advance(";")):a.push(statement());return a}function directives(){for(var i,p,pn;"(string)"===state.tokens.next.id;){if(p=peek(0),"(endline)"===p.id){i=1;do pn=peek(i++);while("(endline)"===pn.id);if(";"===pn.id)p=pn;else{if("["===pn.value||"."===pn.value)break;state.option.asi&&"("!==pn.value||warning("W033",state.tokens.next)}}else{if("."===p.id||"["===p.id)break;";"!==p.id&&warning("W033",p)}advance();var directive=state.tokens.curr.value;(state.directive[directive]||"use strict"===directive&&"implied"===state.option.strict)&&warning("W034",state.tokens.curr,directive),state.directive[directive]=!0,";"===p.id&&advance(";")}state.isStrict()&&(state.option["(explicitNewcap)"]||(state.option.newcap=!0),state.option.undef=!0)}function block(ordinary,stmt,isfunc,isfatarrow,iscase){var a,m,t,line,d,b=inblock,old_indent=indent;inblock=ordinary,t=state.tokens.next;var metrics=state.funct["(metrics)"];if(metrics.nestedBlockDepth+=1,metrics.verifyMaxNestedBlockDepthPerFunction(),"{"===state.tokens.next.id){if(advance("{"),state.funct["(scope)"].stack(),line=state.tokens.curr.line,"}"!==state.tokens.next.id){for(indent+=state.option.indent;!ordinary&&state.tokens.next.from>indent;)indent+=state.option.indent;if(isfunc){m={};for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);directives(),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007"))}a=statements(),metrics.statementCount+=a.length,indent-=state.option.indent}advance("}",t),isfunc&&(state.funct["(scope)"].validateParams(),m&&(state.directive=m)),state.funct["(scope)"].unstack(),indent=old_indent}else if(ordinary)state.funct["(noblockscopedvar)"]="for"!==state.tokens.next.id,state.funct["(scope)"].stack(),(!stmt||state.option.curly)&&warning("W116",state.tokens.next,"{",state.tokens.next.value),state.tokens.next.inBracelessBlock=!0,indent+=state.option.indent,a=[statement()],indent-=state.option.indent,state.funct["(scope)"].unstack(),delete state.funct["(noblockscopedvar)"];else if(isfunc){if(state.funct["(scope)"].stack(),m={},!stmt||isfatarrow||state.inMoz()||error("W118",state.tokens.curr,"function closure expressions"),!stmt)for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);expression(10),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007")),state.funct["(scope)"].unstack()}else error("E021",state.tokens.next,"{",state.tokens.next.value);switch(state.funct["(verb)"]){case"break":case"continue":case"return":case"throw":if(iscase)break;default:state.funct["(verb)"]=null}return inblock=b,!ordinary||!state.option.noempty||a&&0!==a.length||warning("W035",state.tokens.prev),metrics.nestedBlockDepth-=1,a}function countMember(m){membersOnly&&"boolean"!=typeof membersOnly[m]&&warning("W036",state.tokens.curr,m),"number"==typeof member[m]?member[m]+=1:member[m]=1}function comprehensiveArrayExpression(){var res={};res.exps=!0,state.funct["(comparray)"].stack();var reversed=!1;return"for"!==state.tokens.next.value&&(reversed=!0,state.inMoz()||warning("W116",state.tokens.next,"for",state.tokens.next.value),state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("for"),"each"===state.tokens.next.value&&(advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),advance("("),state.funct["(comparray)"].setState("define"),res.left=expression(130),_.contains(["in","of"],state.tokens.next.value)?advance():error("E045",state.tokens.curr),state.funct["(comparray)"].setState("generate"),expression(10),advance(")"),"if"===state.tokens.next.value&&(advance("if"),advance("("),state.funct["(comparray)"].setState("filter"),res.filter=expression(10),advance(")")),reversed||(state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("]"),state.funct["(comparray)"].unstack(),res}function isMethod(){return state.funct["(statement)"]&&"class"===state.funct["(statement)"].type||state.funct["(context)"]&&"class"===state.funct["(context)"]["(verb)"]}function isPropertyName(token){return token.identifier||"(string)"===token.id||"(number)"===token.id}function propertyName(preserveOrToken){var id,preserve=!0;return"object"==typeof preserveOrToken?id=preserveOrToken:(preserve=preserveOrToken,id=optionalidentifier(!1,!0,preserve)),id?"object"==typeof id&&("(string)"===id.id||"(identifier)"===id.id?id=id.value:"(number)"===id.id&&(id=""+id.value)):"(string)"===state.tokens.next.id?(id=state.tokens.next.value,preserve||advance()):"(number)"===state.tokens.next.id&&(id=""+state.tokens.next.value,preserve||advance()),"hasOwnProperty"===id&&warning("W001"),id}function functionparams(options){function addParam(addParamArgs){state.funct["(scope)"].addParam.apply(state.funct["(scope)"],addParamArgs)}var next,ident,t,paramsIds=[],tokens=[],pastDefault=!1,pastRest=!1,arity=0,loneArg=options&&options.loneArg;if(loneArg&&loneArg.identifier===!0)return state.funct["(scope)"].addParam(loneArg.value,loneArg),{arity:1,params:[loneArg.value]};if(next=state.tokens.next,options&&options.parsedOpening||advance("("),")"===state.tokens.next.id)return advance(")"),void 0;for(;;){arity++;var currentParams=[];if(_.contains(["{","["],state.tokens.next.id)){tokens=destructuringPattern();for(t in tokens)t=tokens[t],t.id&&(paramsIds.push(t.id),currentParams.push([t.id,t.token]))}else if(checkPunctuator(state.tokens.next,"...")&&(pastRest=!0),ident=identifier(!0))paramsIds.push(ident),currentParams.push([ident,state.tokens.curr]);else for(;!checkPunctuators(state.tokens.next,[",",")"]);)advance();if(pastDefault&&"="!==state.tokens.next.id&&error("W138",state.tokens.current),"="===state.tokens.next.id&&(state.inES6()||warning("W119",state.tokens.next,"default parameters","6"),advance("="),pastDefault=!0,expression(10)),currentParams.forEach(addParam),","!==state.tokens.next.id)return advance(")",next),{arity:arity,params:paramsIds};pastRest&&warning("W131",state.tokens.next),comma()}}function functor(name,token,overwrites){var funct={"(name)":name,"(breakage)":0,"(loopage)":0,"(tokens)":{},"(properties)":{},"(catch)":!1,"(global)":!1,"(line)":null,"(character)":null,"(metrics)":null,"(statement)":null,"(context)":null,"(scope)":null,"(comparray)":null,"(generator)":null,"(arrow)":null,"(params)":null};return token&&_.extend(funct,{"(line)":token.line,"(character)":token.character,"(metrics)":createMetrics(token)}),_.extend(funct,overwrites),funct["(context)"]&&(funct["(scope)"]=funct["(context)"]["(scope)"],funct["(comparray)"]=funct["(context)"]["(comparray)"]),funct}function isFunctor(token){return"(scope)"in token}function hasParsedCode(funct){return funct["(global)"]&&!funct["(verb)"]}function doTemplateLiteral(left){function end(){if(state.tokens.curr.template&&state.tokens.curr.tail&&state.tokens.curr.context===ctx)return!0;var complete=state.tokens.next.template&&state.tokens.next.tail&&state.tokens.next.context===ctx;return complete&&advance(),complete||state.tokens.next.isUnclosed}var ctx=this.context,noSubst=this.noSubst,depth=this.depth;if(!noSubst)for(;!end();)!state.tokens.next.template||state.tokens.next.depth>depth?expression(0):advance();return{id:"(template)",type:"(template)",tag:left}}function doFunction(options){var f,token,name,statement,classExprBinding,isGenerator,isArrow,ignoreLoopFunc,oldOption=state.option,oldIgnored=state.ignored;options&&(name=options.name,statement=options.statement,classExprBinding=options.classExprBinding,isGenerator="generator"===options.type,isArrow="arrow"===options.type,ignoreLoopFunc=options.ignoreLoopFunc),state.option=Object.create(state.option),state.ignored=Object.create(state.ignored),state.funct=functor(name||state.nameStack.infer(),state.tokens.next,{"(statement)":statement,"(context)":state.funct,"(arrow)":isArrow,"(generator)":isGenerator}),f=state.funct,token=state.tokens.curr,token.funct=state.funct,functions.push(state.funct),state.funct["(scope)"].stack("functionouter");var internallyAccessibleName=name||classExprBinding;internallyAccessibleName&&state.funct["(scope)"].block.add(internallyAccessibleName,classExprBinding?"class":"function",state.tokens.curr,!1),state.funct["(scope)"].stack("functionparams");var paramsInfo=functionparams(options);return paramsInfo?(state.funct["(params)"]=paramsInfo.params,state.funct["(metrics)"].arity=paramsInfo.arity,state.funct["(metrics)"].verifyMaxParametersPerFunction()):state.funct["(metrics)"].arity=0,isArrow&&(state.inES6(!0)||warning("W119",state.tokens.curr,"arrow function syntax (=>)","6"),options.loneArg||advance("=>")),block(!1,!0,!0,isArrow),!state.option.noyield&&isGenerator&&"yielded"!==state.funct["(generator)"]&&warning("W124",state.tokens.curr),state.funct["(metrics)"].verifyMaxStatementsPerFunction(),state.funct["(metrics)"].verifyMaxComplexityPerFunction(),state.funct["(unusedOption)"]=state.option.unused,state.option=oldOption,state.ignored=oldIgnored,state.funct["(last)"]=state.tokens.curr.line,state.funct["(lastcharacter)"]=state.tokens.curr.character,state.funct["(scope)"].unstack(),state.funct["(scope)"].unstack(),state.funct=state.funct["(context)"],ignoreLoopFunc||state.option.loopfunc||!state.funct["(loopage)"]||f["(isCapturing)"]&&warning("W083",token),f}function createMetrics(functionStartToken){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){state.option.maxstatements&&this.statementCount>state.option.maxstatements&&warning("W071",functionStartToken,this.statementCount) },verifyMaxParametersPerFunction:function(){_.isNumber(state.option.maxparams)&&this.arity>state.option.maxparams&&warning("W072",functionStartToken,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){state.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===state.option.maxdepth+1&&warning("W073",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var max=state.option.maxcomplexity,cc=this.ComplexityCount;max&&cc>max&&warning("W074",functionStartToken,cc)}}}function increaseComplexityCount(){state.funct["(metrics)"].ComplexityCount+=1}function checkCondAssignment(expr){var id,paren;switch(expr&&(id=expr.id,paren=expr.paren,","===id&&(expr=expr.exprs[expr.exprs.length-1])&&(id=expr.id,paren=paren||expr.paren)),id){case"=":case"+=":case"-=":case"*=":case"%=":case"&=":case"|=":case"^=":case"/=":paren||state.option.boss||warning("W084")}}function checkProperties(props){if(state.inES5())for(var name in props)props[name]&&props[name].setterToken&&!props[name].getterToken&&warning("W078",props[name].setterToken)}function metaProperty(name,c){if(checkPunctuator(state.tokens.next,".")){var left=state.tokens.curr.id;advance(".");var id=identifier();return state.tokens.curr.isMetaProperty=!0,name!==id?error("E057",state.tokens.prev,left,id):c(),state.tokens.curr}}function destructuringPattern(options){var isAssignment=options&&options.assignment;return state.inES6()||warning("W104",state.tokens.curr,isAssignment?"destructuring assignment":"destructuring binding","6"),destructuringPatternRecursive(options)}function destructuringPatternRecursive(options){var ids,identifiers=[],openingParsed=options&&options.openingParsed,isAssignment=options&&options.assignment,recursiveOptions=isAssignment?{assignment:isAssignment}:null,firstToken=openingParsed?state.tokens.curr:state.tokens.next,nextInnerDE=function(){var ident;if(checkPunctuators(state.tokens.next,["[","{"])){ids=destructuringPatternRecursive(recursiveOptions);for(var id in ids)id=ids[id],identifiers.push({id:id.id,token:id.token})}else if(checkPunctuator(state.tokens.next,","))identifiers.push({id:null,token:state.tokens.curr});else{if(!checkPunctuator(state.tokens.next,"(")){var is_rest=checkPunctuator(state.tokens.next,"...");if(isAssignment){var identifierToken=is_rest?peek(0):state.tokens.next;identifierToken.identifier||warning("E030",identifierToken,identifierToken.value);var assignTarget=expression(155);assignTarget&&(checkLeftSideAssign(assignTarget),assignTarget.identifier&&(ident=assignTarget.value))}else ident=identifier();return ident&&identifiers.push({id:ident,token:state.tokens.curr}),is_rest}advance("("),nextInnerDE(),advance(")")}return!1},assignmentProperty=function(){var id;checkPunctuator(state.tokens.next,"[")?(advance("["),expression(10),advance("]"),advance(":"),nextInnerDE()):"(string)"===state.tokens.next.id||"(number)"===state.tokens.next.id?(advance(),advance(":"),nextInnerDE()):(id=identifier(),checkPunctuator(state.tokens.next,":")?(advance(":"),nextInnerDE()):id&&(isAssignment&&checkLeftSideAssign(state.tokens.curr),identifiers.push({id:id,token:state.tokens.curr})))};if(checkPunctuator(firstToken,"[")){openingParsed||advance("["),checkPunctuator(state.tokens.next,"]")&&warning("W137",state.tokens.curr);for(var element_after_rest=!1;!checkPunctuator(state.tokens.next,"]");)nextInnerDE()&&!element_after_rest&&checkPunctuator(state.tokens.next,",")&&(warning("W130",state.tokens.next),element_after_rest=!0),checkPunctuator(state.tokens.next,"=")&&(checkPunctuator(state.tokens.prev,"...")?advance("]"):advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"]")||advance(",");advance("]")}else if(checkPunctuator(firstToken,"{")){for(openingParsed||advance("{"),checkPunctuator(state.tokens.next,"}")&&warning("W137",state.tokens.curr);!checkPunctuator(state.tokens.next,"}")&&(assignmentProperty(),checkPunctuator(state.tokens.next,"=")&&(advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"}")||(advance(","),!checkPunctuator(state.tokens.next,"}"))););advance("}")}return identifiers}function destructuringPatternMatch(tokens,value){var first=value.first;first&&_.zip(tokens,Array.isArray(first)?first:[first]).forEach(function(val){var token=val[0],value=val[1];token&&value?token.first=value:token&&token.first&&!value&&warning("W080",token.first,token.first.value)})}function blockVariableStatement(type,statement,context){var tokens,lone,value,letblock,prefix=context&&context.prefix,inexport=context&&context.inexport,isLet="let"===type,isConst="const"===type;for(state.inES6()||warning("W104",state.tokens.curr,type,"6"),isLet&&"("===state.tokens.next.value?(state.inMoz()||warning("W118",state.tokens.next,"let block"),advance("("),state.funct["(scope)"].stack(),letblock=!0):state.funct["(noblockscopedvar)"]&&error("E048",state.tokens.curr,isConst?"Const":"Let"),statement.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),!prefix&&isConst&&"="!==state.tokens.next.id&&warning("E012",state.tokens.curr,state.tokens.curr.value);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],state.funct["(scope)"].block.isGlobal()&&predefined[t.id]===!1&&warning("W079",t.token,t.id),t.id&&!state.funct["(noblockscopedvar)"]&&(state.funct["(scope)"].addlabel(t.id,{type:type,token:t.token}),names.push(t.token),lone&&inexport&&state.funct["(scope)"].setExported(t.token.value,t.token)));if("="===state.tokens.next.id&&(advance("="),prefix||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),!prefix&&"="===peek(0).id&&state.tokens.next.identifier&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),statement.first=statement.first.concat(names),","!==state.tokens.next.id)break;comma()}return letblock&&(advance(")"),block(!0,!0),statement.block=!0,state.funct["(scope)"].unstack()),statement}function classdef(isStatement){return state.inES6()||warning("W104",state.tokens.curr,"class","6"),isStatement?(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"class",token:state.tokens.curr})):state.tokens.next.identifier&&"extends"!==state.tokens.next.value?(this.name=identifier(),this.namedExpr=!0):this.name=state.nameStack.infer(),classtail(this),this}function classtail(c){var wasInClassBody=state.inClassBody;"extends"===state.tokens.next.value&&(advance("extends"),c.heritage=expression(10)),state.inClassBody=!0,advance("{"),c.body=classbody(c),advance("}"),state.inClassBody=wasInClassBody}function classbody(c){for(var name,isStatic,isGenerator,getset,computed,props=Object.create(null),staticProps=Object.create(null),i=0;"}"!==state.tokens.next.id;++i)if(name=state.tokens.next,isStatic=!1,isGenerator=!1,getset=null,";"!==name.id){if("*"===name.id&&(isGenerator=!0,advance("*"),name=state.tokens.next),"["===name.id)name=computedPropertyName(),computed=!0;else{if(!isPropertyName(name)){warning("W052",state.tokens.next,state.tokens.next.value||state.tokens.next.type),advance();continue}advance(),computed=!1,name.identifier&&"static"===name.value&&(checkPunctuator(state.tokens.next,"*")&&(isGenerator=!0,advance("*")),(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,isStatic=!0,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())),!name.identifier||"get"!==name.value&&"set"!==name.value||(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,getset=name,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())}if(!checkPunctuator(state.tokens.next,"(")){for(error("E054",state.tokens.next,state.tokens.next.value);"}"!==state.tokens.next.id&&!checkPunctuator(state.tokens.next,"(");)advance();"("!==state.tokens.next.value&&doFunction({statement:c})}if(computed||(getset?saveAccessor(getset.value,isStatic?staticProps:props,name.value,name,!0,isStatic):("constructor"===name.value?state.nameStack.set(c):state.nameStack.set(name),saveProperty(isStatic?staticProps:props,name.value,name,!0,isStatic))),getset&&"constructor"===name.value){var propDesc="get"===getset.value?"class getter method":"class setter method";error("E049",name,propDesc,"constructor")}else"prototype"===name.value&&error("E049",name,"class method","prototype");propertyName(name),doFunction({statement:c,type:isGenerator?"generator":null,classExprBinding:c.namedExpr?c.name:null})}else warning("W032"),advance(";");checkProperties(props)}function saveProperty(props,name,tkn,isClass,isStatic){var msg=["key","class method","static class method"];msg=msg[(isClass||!1)+(isStatic||!1)],tkn.identifier&&(name=tkn.value),props[name]&&"__proto__"!==name?warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name].basic=!0,props[name].basictkn=tkn}function saveAccessor(accessorType,props,name,tkn,isClass,isStatic){var flagName="get"===accessorType?"getterToken":"setterToken",msg="";isClass?(isStatic&&(msg+="static "),msg+=accessorType+"ter method"):msg="key",state.tokens.curr.accessorType=accessorType,state.nameStack.set(tkn),props[name]?(props[name].basic||props[name][flagName])&&"__proto__"!==name&&warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name][flagName]=tkn}function computedPropertyName(){advance("["),state.inES6()||warning("W119",state.tokens.curr,"computed property names","6");var value=expression(10);return advance("]"),value}function checkPunctuators(token,values){return"(punctuator)"===token.type?_.contains(values,token.value):!1}function checkPunctuator(token,value){return"(punctuator)"===token.type&&token.value===value}function destructuringAssignOrJsonValue(){var block=lookupBlockType();block.notJson?(!state.inES6()&&block.isDestAssign&&warning("W104",state.tokens.curr,"destructuring assignment","6"),statements()):(state.option.laxbreak=!0,state.jsonMode=!0,jsonValue())}function jsonValue(){function jsonObject(){var o={},t=state.tokens.next;if(advance("{"),"}"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E026",state.tokens.next,t.line);else{if("}"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id?error("E028",state.tokens.next):"(string)"!==state.tokens.next.id&&warning("W095",state.tokens.next,state.tokens.next.value)}if(o[state.tokens.next.value]===!0?warning("W075",state.tokens.next,"key",state.tokens.next.value):"__proto__"===state.tokens.next.value&&!state.option.proto||"__iterator__"===state.tokens.next.value&&!state.option.iterator?warning("W096",state.tokens.next,state.tokens.next.value):o[state.tokens.next.value]=!0,advance(),advance(":"),jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("}")}function jsonArray(){var t=state.tokens.next;if(advance("["),"]"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E027",state.tokens.next,t.line);else{if("]"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id&&error("E028",state.tokens.next)}if(jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("]")}switch(state.tokens.next.id){case"{":jsonObject();break;case"[":jsonArray();break;case"true":case"false":case"null":case"(number)":case"(string)":advance();break;case"-":advance("-"),advance("(number)");break;default:error("E003",state.tokens.next)}}var api,declared,functions,inblock,indent,lookahead,lex,member,membersOnly,predefined,stack,urls,bang={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},functionicity=["closure","exception","global","label","outer","unused","var"],extraModules=[],emitter=new events.EventEmitter,typeofValues={};typeofValues.legacy=["xml","unknown"],typeofValues.es3=["undefined","boolean","number","string","function","object"],typeofValues.es3=typeofValues.es3.concat(typeofValues.legacy),typeofValues.es6=typeofValues.es3.concat("symbol"),type("(number)",function(){return this}),type("(string)",function(){return this}),state.syntax["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var v=this.value;return"=>"===state.tokens.next.id?this:(state.funct["(comparray)"].check(v)||state.funct["(scope)"].block.use(v,state.tokens.curr),this)},led:function(){error("E033",state.tokens.next,state.tokens.next.value)}};var baseTemplateSyntax={lbp:0,identifier:!1,template:!0};state.syntax["(template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!1},baseTemplateSyntax),state.syntax["(template middle)"]=_.extend({type:"(template middle)",middle:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(template tail)"]=_.extend({type:"(template tail)",tail:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(no subst template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!0,tail:!0},baseTemplateSyntax),type("(regexp)",function(){return this}),delim("(endline)"),delim("(begin)"),delim("(end)").reach=!0,delim("(error)").reach=!0,delim("}").reach=!0,delim(")"),delim("]"),delim('"').reach=!0,delim("'").reach=!0,delim(";"),delim(":").reach=!0,delim("#"),reserve("else"),reserve("case").reach=!0,reserve("catch"),reserve("default").reach=!0,reserve("finally"),reservevar("arguments",function(x){state.isStrict()&&state.funct["(global)"]&&warning("E008",x)}),reservevar("eval"),reservevar("false"),reservevar("Infinity"),reservevar("null"),reservevar("this",function(x){state.isStrict()&&!isMethod()&&!state.option.validthis&&(state.funct["(statement)"]&&state.funct["(name)"].charAt(0)>"Z"||state.funct["(global)"])&&warning("W040",x)}),reservevar("true"),reservevar("undefined"),assignop("=","assign",20),assignop("+=","assignadd",20),assignop("-=","assignsub",20),assignop("*=","assignmult",20),assignop("/=","assigndiv",20).nud=function(){error("E014")},assignop("%=","assignmod",20),bitwiseassignop("&="),bitwiseassignop("|="),bitwiseassignop("^="),bitwiseassignop("<<="),bitwiseassignop(">>="),bitwiseassignop(">>>="),infix(",",function(left,that){var expr;if(that.exprs=[left],state.option.nocomma&&warning("W127"),!comma({peek:!0}))return that;for(;;){if(!(expr=expression(10)))break;if(that.exprs.push(expr),","!==state.tokens.next.value||!comma())break}return that},10,!0),infix("?",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(10),advance(":"),that["else"]=expression(10),that},30);var orPrecendence=40;infix("||",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(orPrecendence),that},orPrecendence),infix("&&","and",50),bitwise("|","bitor",70),bitwise("^","bitxor",80),bitwise("&","bitand",90),relation("==",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));switch(!0){case!eqnull&&state.option.eqeqeq:this.from=this.character,warning("W116",this,"===","==");break;case isPoorRelation(left):warning("W041",this,"===",left.value);break;case isPoorRelation(right):warning("W041",this,"===",right.value);break;case isTypoTypeof(right,left,state):warning("W122",this,right.value);break;case isTypoTypeof(left,right,state):warning("W122",this,left.value)}return this}),relation("===",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!=",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));return!eqnull&&state.option.eqeqeq?(this.from=this.character,warning("W116",this,"!==","!=")):isPoorRelation(left)?warning("W041",this,"!==",left.value):isPoorRelation(right)?warning("W041",this,"!==",right.value):isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!==",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("<"),relation(">"),relation("<="),relation(">="),bitwise("<<","shiftleft",120),bitwise(">>","shiftright",120),bitwise(">>>","shiftrightunsigned",120),infix("in","in",120),infix("instanceof","instanceof",120),infix("+",function(left,that){var right;return that.left=left,that.right=right=expression(130),left&&right&&"(string)"===left.id&&"(string)"===right.id?(left.value+=right.value,left.character=right.character,!state.option.scripturl&®.javascriptURL.test(left.value)&&warning("W050",left),left):that},130),prefix("+","num"),prefix("+++",function(){return warning("W007"),this.arity="unary",this.right=expression(150),this}),infix("+++",function(left){return warning("W007"),this.left=left,this.right=expression(130),this},130),infix("-","sub",130),prefix("-","neg"),prefix("---",function(){return warning("W006"),this.arity="unary",this.right=expression(150),this}),infix("---",function(left){return warning("W006"),this.left=left,this.right=expression(130),this},130),infix("*","mult",140),infix("/","div",140),infix("%","mod",140),suffix("++"),prefix("++","preinc"),state.syntax["++"].exps=!0,suffix("--"),prefix("--","predec"),state.syntax["--"].exps=!0,prefix("delete",function(){var p=expression(10);return p?("."!==p.id&&"["!==p.id&&warning("W051"),this.first=p,p.identifier&&!state.isStrict()&&(p.forgiveUndef=!0),this):this}).exps=!0,prefix("~",function(){return state.option.bitwise&&warning("W016",this,"~"),this.arity="unary",this.right=expression(150),this}),prefix("...",function(){return state.inES6(!0)||warning("W119",this,"spread/rest operator","6"),state.tokens.next.identifier||"(string)"===state.tokens.next.type||checkPunctuators(state.tokens.next,["[","("])||error("E030",state.tokens.next,state.tokens.next.value),expression(150),this}),prefix("!",function(){return this.arity="unary",this.right=expression(150),this.right||quit("E041",this.line||0),bang[this.right.id]===!0&&warning("W018",this,"!"),this}),prefix("typeof",function(){var p=expression(150);return this.first=this.right=p,p||quit("E041",this.line||0,this.character||0),p.identifier&&(p.forgiveUndef=!0),this}),prefix("new",function(){var mp=metaProperty("target",function(){state.inES6(!0)||warning("W119",state.tokens.prev,"new.target","6");for(var inFunction,c=state.funct;c&&(inFunction=!c["(global)"],c["(arrow)"]);)c=c["(context)"];inFunction||warning("W136",state.tokens.prev,"new.target")});if(mp)return mp;var i,c=expression(155);if(c&&"function"!==c.id)if(c.identifier)switch(c["new"]=!0,c.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":warning("W053",state.tokens.prev,c.value);break;case"Symbol":state.inES6()&&warning("W053",state.tokens.prev,c.value);break;case"Function":state.option.evil||warning("W054");break;case"Date":case"RegExp":case"this":break;default:"function"!==c.id&&(i=c.value.substr(0,1),state.option.newcap&&("A">i||i>"Z")&&!state.funct["(scope)"].isPredefined(c.value)&&warning("W055",state.tokens.curr))}else"."!==c.id&&"["!==c.id&&"("!==c.id&&warning("W056",state.tokens.curr);else state.option.supernew||warning("W057",this);return"("===state.tokens.next.id||state.option.supernew||warning("W058",state.tokens.curr,state.tokens.curr.value),this.first=this.right=c,this}),state.syntax["new"].exps=!0,prefix("void").exps=!0,infix(".",function(left,that){var m=identifier(!1,!0);return"string"==typeof m&&countMember(m),that.left=left,that.right=m,m&&"hasOwnProperty"===m&&"="===state.tokens.next.value&&warning("W001"),!left||"arguments"!==left.value||"callee"!==m&&"caller"!==m?state.option.evil||!left||"document"!==left.value||"write"!==m&&"writeln"!==m||warning("W060",left):state.option.noarg?warning("W059",left,m):state.isStrict()&&error("E008"),state.option.evil||"eval"!==m&&"execScript"!==m||isGlobalEval(left,state)&&warning("W061"),that},160,!0),infix("(",function(left,that){state.option.immed&&left&&!left.immed&&"function"===left.id&&warning("W062");var n=0,p=[];if(left&&"(identifier)"===left.type&&left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&-1==="Array Number String Boolean Date Object Error Symbol".indexOf(left.value)&&("Math"===left.value?warning("W063",left):state.option.newcap&&warning("W064",left)),")"!==state.tokens.next.id)for(;p[p.length]=expression(10),n+=1,","===state.tokens.next.id;)comma();return advance(")"),"object"==typeof left&&(state.inES5()||"parseInt"!==left.value||1!==n||warning("W065",state.tokens.curr),state.option.evil||("eval"===left.value||"Function"===left.value||"execScript"===left.value?(warning("W061",left),p[0]&&"(string)"===[0].id&&addInternalSrc(left,p[0].value)):!p[0]||"(string)"!==p[0].id||"setTimeout"!==left.value&&"setInterval"!==left.value?!p[0]||"(string)"!==p[0].id||"."!==left.value||"window"!==left.left.value||"setTimeout"!==left.right&&"setInterval"!==left.right||(warning("W066",left),addInternalSrc(left,p[0].value)):(warning("W066",left),addInternalSrc(left,p[0].value))),left.identifier||"."===left.id||"["===left.id||"=>"===left.id||"("===left.id||"&&"===left.id||"||"===left.id||"?"===left.id||state.inES6()&&left["(name)"]||warning("W067",that)),that.left=left,that},155,!0).exps=!0,prefix("(",function(){var pn1,ret,triggerFnExpr,first,last,pn=state.tokens.next,i=-1,parens=1,opening=state.tokens.curr,preceeding=state.tokens.prev,isNecessary=!state.option.singleGroups;do"("===pn.value?parens+=1:")"===pn.value&&(parens-=1),i+=1,pn1=pn,pn=peek(i);while((0!==parens||")"!==pn1.value)&&";"!==pn.value&&"(end)"!==pn.type);if("function"===state.tokens.next.id&&(triggerFnExpr=state.tokens.next.immed=!0),"=>"===pn.value)return doFunction({type:"arrow",parsedOpening:!0});var exprs=[];if(")"!==state.tokens.next.id)for(;exprs.push(expression(10)),","===state.tokens.next.id;)state.option.nocomma&&warning("W127"),comma();return advance(")",this),state.option.immed&&exprs[0]&&"function"===exprs[0].id&&"("!==state.tokens.next.id&&"."!==state.tokens.next.id&&"["!==state.tokens.next.id&&warning("W068",this),exprs.length?(exprs.length>1?(ret=Object.create(state.syntax[","]),ret.exprs=exprs,first=exprs[0],last=exprs[exprs.length-1],isNecessary||(isNecessary=preceeding.assign||preceeding.delim)):(ret=first=last=exprs[0],isNecessary||(isNecessary=opening.beginsStmt&&("{"===ret.id||triggerFnExpr||isFunctor(ret))||triggerFnExpr&&(!isEndOfExpr()||"}"!==state.tokens.prev.id)||isFunctor(ret)&&!isEndOfExpr()||"{"===ret.id&&"=>"===preceeding.id||"(number)"===ret.type&&checkPunctuator(pn,".")&&/^\\d+$/.test(ret.value))),ret&&(!isNecessary&&(first.left||first.right||ret.exprs)&&(isNecessary=!isBeginOfExpr(preceeding)&&first.lbp<=preceeding.lbp||!isEndOfExpr()&&last.lbp"),infix("[",function(left,that){var s,e=expression(10);return e&&"(string)"===e.type&&(state.option.evil||"eval"!==e.value&&"execScript"!==e.value||isGlobalEval(left,state)&&warning("W061"),countMember(e.value),!state.option.sub&®.identifier.test(e.value)&&(s=state.syntax[e.value],s&&isReserved(s)||warning("W069",state.tokens.prev,e.value))),advance("]",that),e&&"hasOwnProperty"===e.value&&"="===state.tokens.next.value&&warning("W001"),that.left=left,that.right=e,that},160,!0),prefix("[",function(){var blocktype=lookupBlockType();if(blocktype.isCompArray)return state.option.esnext||state.inMoz()||warning("W118",state.tokens.curr,"array comprehension"),comprehensiveArrayExpression();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;var b=state.tokens.curr.line!==startLine(state.tokens.next);for(this.first=[],b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));"(end)"!==state.tokens.next.id;){for(;","===state.tokens.next.id;){if(!state.option.elision){if(state.inES5()){warning("W128");do advance(",");while(","===state.tokens.next.id);continue}warning("W070")}advance(",")}if("]"===state.tokens.next.id)break;if(this.first.push(expression(10)),","!==state.tokens.next.id)break;if(comma({allowTrailing:!0}),"]"===state.tokens.next.id&&!state.inES5()){warning("W070",state.tokens.curr);break}}return b&&(indent-=state.option.indent),advance("]",this),this}),function(x){x.nud=function(){var b,f,i,p,t,nextVal,isGeneratorMethod=!1,props=Object.create(null);b=state.tokens.curr.line!==startLine(state.tokens.next),b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));var blocktype=lookupBlockType();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;for(;"}"!==state.tokens.next.id;){if(nextVal=state.tokens.next.value,!state.tokens.next.identifier||","!==peekIgnoreEOL().id&&"}"!==peekIgnoreEOL().id)if(":"===peek().id||"get"!==nextVal&&"set"!==nextVal){if("*"===state.tokens.next.value&&"(punctuator)"===state.tokens.next.type?(state.inES6()||warning("W104",state.tokens.next,"generator functions","6"),advance("*"),isGeneratorMethod=!0):isGeneratorMethod=!1,"["===state.tokens.next.id)i=computedPropertyName(),state.nameStack.set(i);else if(state.nameStack.set(state.tokens.next),i=propertyName(),saveProperty(props,i,state.tokens.next),"string"!=typeof i)break;"("===state.tokens.next.value?(state.inES6()||warning("W104",state.tokens.curr,"concise methods","6"),doFunction({type:isGeneratorMethod?"generator":null})):(advance(":"),expression(10))}else advance(nextVal),state.inES5()||error("E034"),i=propertyName(),i||state.inES6()||error("E035"),i&&saveAccessor(nextVal,props,i,state.tokens.curr),t=state.tokens.next,f=doFunction(),p=f["(params)"],"get"===nextVal&&i&&p?warning("W076",t,p[0],i):"set"!==nextVal||!i||p&&1===p.length||warning("W077",t,i);else state.inES6()||warning("W104",state.tokens.next,"object short notation","6"),i=propertyName(!0),saveProperty(props,i,state.tokens.next),expression(10);if(countMember(i),","!==state.tokens.next.id)break;comma({allowTrailing:!0,property:!0}),","===state.tokens.next.id?warning("W070",state.tokens.curr):"}"!==state.tokens.next.id||state.inES5()||warning("W070",state.tokens.curr)}return b&&(indent-=state.option.indent),advance("}",this),checkProperties(props),this},x.fud=function(){error("E036",state.tokens.curr)}}(delim("{"));var conststatement=stmt("const",function(context){return blockVariableStatement("const",this,context)});conststatement.exps=!0;var letstatement=stmt("let",function(context){return blockVariableStatement("let",this,context)});letstatement.exps=!0;var varstatement=stmt("var",function(context){var tokens,lone,value,prefix=context&&context.prefix,inexport=context&&context.inexport,implied=context&&context.implied,report=!(context&&context.ignore);for(this.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),prefix&&implied||!report||!state.option.varstmt||warning("W132",this),this.first=this.first.concat(names);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],!implied&&state.funct["(global)"]&&(predefined[t.id]===!1?warning("W079",t.token,t.id):state.option.futurehostile===!1&&(!state.inES5()&&vars.ecmaIdentifiers[5][t.id]===!1||!state.inES6()&&vars.ecmaIdentifiers[6][t.id]===!1)&&warning("W129",t.token,t.id)),t.id&&("for"===implied?(state.funct["(scope)"].has(t.id)||report&&warning("W088",t.token,t.id),state.funct["(scope)"].block.use(t.id,t.token)):(state.funct["(scope)"].addlabel(t.id,{type:"var",token:t.token}),lone&&inexport&&state.funct["(scope)"].setExported(t.id,t.token)),names.push(t.token)));if("="===state.tokens.next.id&&(state.nameStack.set(state.tokens.curr),advance("="),prefix||!report||state.funct["(loopage)"]||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),"="===peek(0).id&&state.tokens.next.identifier&&(!prefix&&report&&!state.funct["(params)"]||-1===state.funct["(params)"].indexOf(state.tokens.next.value))&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),","!==state.tokens.next.id)break;comma()}return this});varstatement.exps=!0,blockstmt("class",function(){return classdef.call(this,!0)}),blockstmt("function",function(context){var inexport=context&&context.inexport,generator=!1;"*"===state.tokens.next.value&&(advance("*"),state.inES6({strict:!0})?generator=!0:warning("W119",state.tokens.curr,"function*","6")),inblock&&warning("W082",state.tokens.curr);var i=optionalidentifier();return state.funct["(scope)"].addlabel(i,{type:"function",token:state.tokens.curr}),void 0===i?warning("W025"):inexport&&state.funct["(scope)"].setExported(i,state.tokens.prev),doFunction({name:i,statement:this,type:generator?"generator":null,ignoreLoopFunc:inblock}),"("===state.tokens.next.id&&state.tokens.next.line===state.tokens.curr.line&&error("E039"),this}),prefix("function",function(){var generator=!1;"*"===state.tokens.next.value&&(state.inES6()||warning("W119",state.tokens.curr,"function*","6"),advance("*"),generator=!0);var i=optionalidentifier();return doFunction({name:i,type:generator?"generator":null}),this}),blockstmt("if",function(){var t=state.tokens.next;increaseComplexityCount(),state.condition=!0,advance("(");var expr=expression(0);checkCondAssignment(expr);var forinifcheck=null;state.option.forin&&state.forinifcheckneeded&&(state.forinifcheckneeded=!1,forinifcheck=state.forinifchecks[state.forinifchecks.length-1],forinifcheck.type="(punctuator)"===expr.type&&"!"===expr.value?"(negative)":"(positive)"),advance(")",t),state.condition=!1;var s=block(!0,!0);return forinifcheck&&"(negative)"===forinifcheck.type&&s&&s[0]&&"(identifier)"===s[0].type&&"continue"===s[0].value&&(forinifcheck.type="(negative-with-continue)"),"else"===state.tokens.next.id&&(advance("else"),"if"===state.tokens.next.id||"switch"===state.tokens.next.id?statement():block(!0,!0)),this}),blockstmt("try",function(){function doCatch(){if(advance("catch"),advance("("),state.funct["(scope)"].stack("catchparams"),checkPunctuators(state.tokens.next,["[","{"])){var tokens=destructuringPattern();_.each(tokens,function(token){token.id&&state.funct["(scope)"].addParam(token.id,token,"exception")})}else"(identifier)"!==state.tokens.next.type?warning("E030",state.tokens.next,state.tokens.next.value):state.funct["(scope)"].addParam(identifier(),state.tokens.curr,"exception");"if"===state.tokens.next.value&&(state.inMoz()||warning("W118",state.tokens.curr,"catch filter"),advance("if"),expression(0)),advance(")"),block(!1),state.funct["(scope)"].unstack()}var b;for(block(!0);"catch"===state.tokens.next.id;)increaseComplexityCount(),b&&!state.inMoz()&&warning("W118",state.tokens.next,"multiple catch blocks"),doCatch(),b=!0;return"finally"===state.tokens.next.id?(advance("finally"),block(!0),void 0):(b||error("E021",state.tokens.next,"catch",state.tokens.next.value),this)}),blockstmt("while",function(){var t=state.tokens.next;return state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),advance("("),checkCondAssignment(expression(0)),advance(")",t),block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this}).labelled=!0,blockstmt("with",function(){var t=state.tokens.next;return state.isStrict()?error("E010",state.tokens.curr):state.option.withstmt||warning("W085",state.tokens.curr),advance("("),expression(0),advance(")",t),block(!0,!0),this}),blockstmt("switch",function(){var t=state.tokens.next,g=!1,noindent=!1; for(state.funct["(breakage)"]+=1,advance("("),checkCondAssignment(expression(0)),advance(")",t),t=state.tokens.next,advance("{"),state.tokens.next.from===indent&&(noindent=!0),noindent||(indent+=state.option.indent),this.cases=[];;)switch(state.tokens.next.id){case"case":switch(state.funct["(verb)"]){case"yield":case"break":case"case":case"continue":case"return":case"switch":case"throw":break;default:state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"case")}advance("case"),this.cases.push(expression(0)),increaseComplexityCount(),g=!0,advance(":"),state.funct["(verb)"]="case";break;case"default":switch(state.funct["(verb)"]){case"yield":case"break":case"continue":case"return":case"throw":break;default:this.cases.length&&(state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"default"))}advance("default"),g=!0,advance(":");break;case"}":return noindent||(indent-=state.option.indent),advance("}",t),state.funct["(breakage)"]-=1,state.funct["(verb)"]=void 0,void 0;case"(end)":return error("E023",state.tokens.next,"}"),void 0;default:if(indent+=state.option.indent,g)switch(state.tokens.curr.id){case",":return error("E040"),void 0;case":":g=!1,statements();break;default:return error("E025",state.tokens.curr),void 0}else{if(":"!==state.tokens.curr.id)return error("E021",state.tokens.next,"case",state.tokens.next.value),void 0;advance(":"),error("E024",state.tokens.curr,":"),statements()}indent-=state.option.indent}return this}).labelled=!0,stmt("debugger",function(){return state.option.debug||warning("W087",this),this}).exps=!0,function(){var x=stmt("do",function(){state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),this.first=block(!0,!0),advance("while");var t=state.tokens.next;return advance("("),checkCondAssignment(expression(0)),advance(")",t),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this});x.labelled=!0,x.exps=!0}(),blockstmt("for",function(){var s,t=state.tokens.next,letscope=!1,foreachtok=null;"each"===t.value&&(foreachtok=t,advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),increaseComplexityCount(),advance("(");var nextop,comma,initializer,i=0,inof=["in","of"],level=0;checkPunctuators(state.tokens.next,["{","["])&&++level;do{if(nextop=peek(i),++i,checkPunctuators(nextop,["{","["])?++level:checkPunctuators(nextop,["}","]"])&&--level,0>level)break;0===level&&(!comma&&checkPunctuator(nextop,",")?comma=nextop:!initializer&&checkPunctuator(nextop,"=")&&(initializer=nextop))}while(level>0||!_.contains(inof,nextop.value)&&";"!==nextop.value&&"(end)"!==nextop.type);if(_.contains(inof,nextop.value)){state.inES6()||"of"!==nextop.value||warning("W104",nextop,"for of","6");var ok=!(initializer||comma);if(initializer&&error("W133",comma,nextop.value,"initializer is forbidden"),comma&&error("W133",comma,nextop.value,"more than one ForBinding"),"var"===state.tokens.next.id?(advance("var"),state.tokens.curr.fud({prefix:!0})):"let"===state.tokens.next.id||"const"===state.tokens.next.id?(advance(state.tokens.next.id),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud({prefix:!0})):Object.create(varstatement).fud({prefix:!0,implied:"for",ignore:!ok}),advance(nextop.value),expression(20),advance(")",t),"in"===nextop.value&&state.option.forin&&(state.forinifcheckneeded=!0,void 0===state.forinifchecks&&(state.forinifchecks=[]),state.forinifchecks.push({type:"(none)"})),state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,s=block(!0,!0),"in"===nextop.value&&state.option.forin){if(state.forinifchecks&&state.forinifchecks.length>0){var check=state.forinifchecks.pop();(s&&s.length>0&&("object"!=typeof s[0]||"if"!==s[0].value)||"(positive)"===check.type&&s.length>1||"(negative)"===check.type)&&warning("W089",this)}state.forinifcheckneeded=!1}state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}else{if(foreachtok&&error("E045",foreachtok),";"!==state.tokens.next.id)if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud();else if("let"===state.tokens.next.id)advance("let"),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud();else for(;expression(0,"for"),","===state.tokens.next.id;)comma();if(nolinebreak(state.tokens.curr),advance(";"),state.funct["(loopage)"]+=1,";"!==state.tokens.next.id&&checkCondAssignment(expression(0)),nolinebreak(state.tokens.curr),advance(";"),";"===state.tokens.next.id&&error("E021",state.tokens.next,")",";"),")"!==state.tokens.next.id)for(;expression(0,"for"),","===state.tokens.next.id;)comma();advance(")",t),state.funct["(breakage)"]+=1,block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}return letscope&&state.funct["(scope)"].unstack(),this}).labelled=!0,stmt("break",function(){var v=state.tokens.next.value;return state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line!==startLine(state.tokens.next)?0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value):(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("continue",function(){var v=state.tokens.next.value;return 0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value),state.funct["(loopage)"]||warning("W052",state.tokens.next,this.value),state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line===startLine(state.tokens.next)&&(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("return",function(){return this.line===startLine(state.tokens.next)?";"===state.tokens.next.id||state.tokens.next.reach||(this.first=expression(0),!this.first||"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)):"(punctuator)"===state.tokens.next.type&&["[","{","+","-"].indexOf(state.tokens.next.value)>-1&&nolinebreak(this),reachable(this),this}).exps=!0,function(x){x.exps=!0,x.lbp=25}(prefix("yield",function(){var prev=state.tokens.prev;state.inES6(!0)&&!state.funct["(generator)"]?"(catch)"===state.funct["(name)"]&&state.funct["(context)"]["(generator)"]||error("E046",state.tokens.curr,"yield"):state.inES6()||warning("W104",state.tokens.curr,"yield","6"),state.funct["(generator)"]="yielded";var delegatingYield=!1;return"*"===state.tokens.next.value&&(delegatingYield=!0,advance("*")),this.line!==startLine(state.tokens.next)&&state.inMoz()?state.option.asi||nolinebreak(this):((delegatingYield||";"!==state.tokens.next.id&&!state.option.asi&&!state.tokens.next.reach&&state.tokens.next.nud)&&(nobreaknonadjacent(state.tokens.curr,state.tokens.next),this.first=expression(10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)),state.inMoz()&&")"!==state.tokens.next.id&&(prev.lbp>30||!prev.assign&&!isEndOfExpr()||"yield"===prev.id)&&error("E050",this)),this})),stmt("throw",function(){return nolinebreak(this),this.first=expression(20),reachable(this),this}).exps=!0,stmt("import",function(){if(state.inES6()||warning("W119",state.tokens.curr,"import","6"),"(string)"===state.tokens.next.type)return advance("(string)"),this;if(state.tokens.next.identifier){if(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value)return advance("from"),advance("(string)"),this;advance(",")}if("*"===state.tokens.next.id)advance("*"),advance("as"),state.tokens.next.identifier&&(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}));else for(advance("{");;){if("}"===state.tokens.next.value){advance("}");break}var importName;if("default"===state.tokens.next.type?(importName="default",advance("default")):importName=identifier(),"as"===state.tokens.next.value&&(advance("as"),importName=identifier()),state.funct["(scope)"].addlabel(importName,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return advance("from"),advance("(string)"),this}).exps=!0,stmt("export",function(){var token,identifier,ok=!0;if(state.inES6()||(warning("W119",state.tokens.curr,"export","6"),ok=!1),state.funct["(scope)"].block.isGlobal()||(error("E053",state.tokens.curr),ok=!1),"*"===state.tokens.next.value)return advance("*"),advance("from"),advance("(string)"),this;if("default"===state.tokens.next.type){state.nameStack.set(state.tokens.next),advance("default");var exportType=state.tokens.next.id;return("function"===exportType||"class"===exportType)&&(this.block=!0),token=peek(),expression(10),identifier=token.value,this.block&&(state.funct["(scope)"].addlabel(identifier,{type:exportType,token:token}),state.funct["(scope)"].setExported(identifier,token)),this}if("{"===state.tokens.next.value){advance("{");for(var exportedTokens=[];;){if(state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance(),exportedTokens.push(state.tokens.curr),"as"===state.tokens.next.value&&(advance("as"),state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance()),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return"from"===state.tokens.next.value?(advance("from"),advance("(string)")):ok&&exportedTokens.forEach(function(token){state.funct["(scope)"].setExported(token.value,token)}),this}if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud({inexport:!0});else if("let"===state.tokens.next.id)advance("let"),state.tokens.curr.fud({inexport:!0});else if("const"===state.tokens.next.id)advance("const"),state.tokens.curr.fud({inexport:!0});else if("function"===state.tokens.next.id)this.block=!0,advance("function"),state.syntax["function"].fud({inexport:!0});else if("class"===state.tokens.next.id){this.block=!0,advance("class");var classNameToken=state.tokens.next;state.syntax["class"].fud(),state.funct["(scope)"].setExported(classNameToken.value,classNameToken)}else error("E024",state.tokens.next,state.tokens.next.value);return this}).exps=!0,FutureReservedWord("abstract"),FutureReservedWord("boolean"),FutureReservedWord("byte"),FutureReservedWord("char"),FutureReservedWord("class",{es5:!0,nud:classdef}),FutureReservedWord("double"),FutureReservedWord("enum",{es5:!0}),FutureReservedWord("export",{es5:!0}),FutureReservedWord("extends",{es5:!0}),FutureReservedWord("final"),FutureReservedWord("float"),FutureReservedWord("goto"),FutureReservedWord("implements",{es5:!0,strictOnly:!0}),FutureReservedWord("import",{es5:!0}),FutureReservedWord("int"),FutureReservedWord("interface",{es5:!0,strictOnly:!0}),FutureReservedWord("long"),FutureReservedWord("native"),FutureReservedWord("package",{es5:!0,strictOnly:!0}),FutureReservedWord("private",{es5:!0,strictOnly:!0}),FutureReservedWord("protected",{es5:!0,strictOnly:!0}),FutureReservedWord("public",{es5:!0,strictOnly:!0}),FutureReservedWord("short"),FutureReservedWord("static",{es5:!0,strictOnly:!0}),FutureReservedWord("super",{es5:!0}),FutureReservedWord("synchronized"),FutureReservedWord("transient"),FutureReservedWord("volatile");var lookupBlockType=function(){var pn,pn1,prev,i=-1,bracketStack=0,ret={};checkPunctuators(state.tokens.curr,["[","{"])&&(bracketStack+=1);do{if(prev=-1===i?state.tokens.curr:pn,pn=-1===i?state.tokens.next:peek(i),pn1=peek(i+1),i+=1,checkPunctuators(pn,["[","{"])?bracketStack+=1:checkPunctuators(pn,["]","}"])&&(bracketStack-=1),1===bracketStack&&pn.identifier&&"for"===pn.value&&!checkPunctuator(prev,".")){ret.isCompArray=!0,ret.notJson=!0;break}if(0===bracketStack&&checkPunctuators(pn,["}","]"])){if("="===pn1.value){ret.isDestAssign=!0,ret.notJson=!0;break}if("."===pn1.value){ret.notJson=!0;break}}checkPunctuator(pn,";")&&(ret.isBlock=!0,ret.notJson=!0)}while(bracketStack>0&&"(end)"!==pn.id);return ret},arrayComprehension=function(){function declare(v){var l=_current.variables.filter(function(elt){return elt.value===v?(elt.undef=!1,v):void 0}).length;return 0!==l}function use(v){var l=_current.variables.filter(function(elt){return elt.value!==v||elt.undef?void 0:(elt.unused===!0&&(elt.unused=!1),v)}).length;return 0===l}var _current,CompArray=function(){this.mode="use",this.variables=[]},_carrays=[];return{stack:function(){_current=new CompArray,_carrays.push(_current)},unstack:function(){_current.variables.filter(function(v){v.unused&&warning("W098",v.token,v.raw_text||v.value),v.undef&&state.funct["(scope)"].block.use(v.value,v.token)}),_carrays.splice(-1,1),_current=_carrays[_carrays.length-1]},setState:function(s){_.contains(["use","define","generate","filter"],s)&&(_current.mode=s)},check:function(v){return _current?_current&&"use"===_current.mode?(use(v)&&_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!0,unused:!1}),!0):_current&&"define"===_current.mode?(declare(v)||_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!1,unused:!0}),!0):_current&&"generate"===_current.mode?(state.funct["(scope)"].block.use(v,state.tokens.curr),!0):_current&&"filter"===_current.mode?(use(v)&&state.funct["(scope)"].block.use(v,state.tokens.curr),!0):!1:void 0}}},escapeRegex=function(str){return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,"\\\\$&")},itself=function(s,o,g){function each(obj,cb){obj&&(Array.isArray(obj)||"object"!=typeof obj||(obj=Object.keys(obj)),obj.forEach(cb))}var i,k,x,reIgnoreStr,reIgnore,optionKeys,newOptionObj={},newIgnoredObj={};o=_.clone(o),state.reset(),o&&o.scope?JSHINT.scope=o.scope:(JSHINT.errors=[],JSHINT.undefs=[],JSHINT.internals=[],JSHINT.blacklist={},JSHINT.scope="(main)"),predefined=Object.create(null),combine(predefined,vars.ecmaIdentifiers[3]),combine(predefined,vars.reservedVars),combine(predefined,g||{}),declared=Object.create(null);var exported=Object.create(null);if(o)for(each(o.predef||null,function(item){var slice,prop;"-"===item[0]?(slice=item.slice(1),JSHINT.blacklist[slice]=slice,delete predefined[slice]):(prop=Object.getOwnPropertyDescriptor(o.predef,item),predefined[item]=prop?prop.value:!1)}),each(o.exported||null,function(item){exported[item]=!0}),delete o.predef,delete o.exported,optionKeys=Object.keys(o),x=0;optionKeys.length>x;x++)if(/^-W\\d{3}$/g.test(optionKeys[x]))newIgnoredObj[optionKeys[x].slice(1)]=!0;else{var optionKey=optionKeys[x];newOptionObj[optionKey]=o[optionKey],("esversion"===optionKey&&5===o[optionKey]||"es5"===optionKey&&o[optionKey])&&warning("I003"),"newcap"===optionKeys[x]&&o[optionKey]===!1&&(newOptionObj["(explicitNewcap)"]=!0)}state.option=newOptionObj,state.ignored=newIgnoredObj,state.option.indent=state.option.indent||4,state.option.maxerr=state.option.maxerr||50,indent=1;var scopeManagerInst=scopeManager(state,predefined,exported,declared);if(scopeManagerInst.on("warning",function(ev){warning.apply(null,[ev.code,ev.token].concat(ev.data))}),scopeManagerInst.on("error",function(ev){error.apply(null,[ev.code,ev.token].concat(ev.data))}),state.funct=functor("(global)",null,{"(global)":!0,"(scope)":scopeManagerInst,"(comparray)":arrayComprehension(),"(metrics)":createMetrics(state.tokens.next)}),functions=[state.funct],urls=[],stack=null,member={},membersOnly=null,inblock=!1,lookahead=[],!isString(s)&&!Array.isArray(s))return errorAt("E004",0),!1;api={get isJSON(){return state.jsonMode},getOption:function(name){return state.option[name]||null},getCache:function(name){return state.cache[name]},setCache:function(name,value){state.cache[name]=value},warn:function(code,data){warningAt.apply(null,[code,data.line,data.char].concat(data.data))},on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)}.bind(this))}},emitter.removeAllListeners(),(extraModules||[]).forEach(function(func){func(api)}),state.tokens.prev=state.tokens.curr=state.tokens.next=state.syntax["(begin)"],o&&o.ignoreDelimiters&&(Array.isArray(o.ignoreDelimiters)||(o.ignoreDelimiters=[o.ignoreDelimiters]),o.ignoreDelimiters.forEach(function(delimiterPair){delimiterPair.start&&delimiterPair.end&&(reIgnoreStr=escapeRegex(delimiterPair.start)+"[\\\\s\\\\S]*?"+escapeRegex(delimiterPair.end),reIgnore=RegExp(reIgnoreStr,"ig"),s=s.replace(reIgnore,function(match){return match.replace(/./g," ")}))})),lex=new Lexer(s),lex.on("warning",function(ev){warningAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("error",function(ev){errorAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("fatal",function(ev){quit("E041",ev.line,ev.from)}),lex.on("Identifier",function(ev){emitter.emit("Identifier",ev)}),lex.on("String",function(ev){emitter.emit("String",ev)}),lex.on("Number",function(ev){emitter.emit("Number",ev)}),lex.start();for(var name in o)_.has(o,name)&&checkOption(name,state.tokens.curr);assume(),combine(predefined,g||{}),comma.first=!0;try{switch(advance(),state.tokens.next.id){case"{":case"[":destructuringAssignOrJsonValue();break;default:directives(),state.directive["use strict"]&&"global"!==state.option.strict&&warning("W097",state.tokens.prev),statements()}"(end)"!==state.tokens.next.id&&quit("E041",state.tokens.curr.line),state.funct["(scope)"].unstack()}catch(err){if(!err||"JSHintError"!==err.name)throw err;var nt=state.tokens.next||{};JSHINT.errors.push({scope:"(main)",raw:err.raw,code:err.code,reason:err.message,line:err.line||nt.line,character:err.character||nt.from},null)}if("(main)"===JSHINT.scope)for(o=o||{},i=0;JSHINT.internals.length>i;i+=1)k=JSHINT.internals[i],o.scope=k.elem,itself(k.value,o,g);return 0===JSHINT.errors.length};return itself.addModule=function(func){extraModules.push(func)},itself.addModule(style.register),itself.data=function(){var fu,f,i,j,n,globals,data={functions:[],options:state.option};itself.errors.length&&(data.errors=itself.errors),state.jsonMode&&(data.json=!0);var impliedGlobals=state.funct["(scope)"].getImpliedGlobals();for(impliedGlobals.length>0&&(data.implieds=impliedGlobals),urls.length>0&&(data.urls=urls),globals=state.funct["(scope)"].getUsedOrDefinedGlobals(),globals.length>0&&(data.globals=globals),i=1;functions.length>i;i+=1){for(f=functions[i],fu={},j=0;functionicity.length>j;j+=1)fu[functionicity[j]]=[];for(j=0;functionicity.length>j;j+=1)0===fu[functionicity[j]].length&&delete fu[functionicity[j]];fu.name=f["(name)"],fu.param=f["(params)"],fu.line=f["(line)"],fu.character=f["(character)"],fu.last=f["(last)"],fu.lastcharacter=f["(lastcharacter)"],fu.metrics={complexity:f["(metrics)"].ComplexityCount,parameters:f["(metrics)"].arity,statements:f["(metrics)"].statementCount},data.functions.push(fu)}var unuseds=state.funct["(scope)"].getUnuseds();unuseds.length>0&&(data.unused=unuseds);for(n in member)if("number"==typeof member[n]){data.member=member;break}return data},itself.jshint=itself,itself}();"object"==typeof exports&&exports&&(exports.JSHINT=JSHINT)},{"../lodash":"/node_modules/jshint/lodash.js","./lex.js":"/node_modules/jshint/src/lex.js","./messages.js":"/node_modules/jshint/src/messages.js","./options.js":"/node_modules/jshint/src/options.js","./reg.js":"/node_modules/jshint/src/reg.js","./scope-manager.js":"/node_modules/jshint/src/scope-manager.js","./state.js":"/node_modules/jshint/src/state.js","./style.js":"/node_modules/jshint/src/style.js","./vars.js":"/node_modules/jshint/src/vars.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/lex.js":[function(_dereq_,module,exports){"use strict";function asyncTrigger(){var _checks=[];return{push:function(fn){_checks.push(fn)},check:function(){for(var check=0;_checks.length>check;++check)_checks[check]();_checks.splice(0,_checks.length)}}}function Lexer(source){var lines=source;"string"==typeof lines&&(lines=lines.replace(/\\r\\n/g,"\\n").replace(/\\r/g,"\\n").split("\\n")),lines[0]&&"#!"===lines[0].substr(0,2)&&(-1!==lines[0].indexOf("node")&&(state.option.node=!0),lines[0]=""),this.emitter=new events.EventEmitter,this.source=source,this.setLines(lines),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input="",this.inComment=!1,this.context=[],this.templateStarts=[];for(var i=0;state.option.indent>i;i+=1)state.tab+=" ";this.ignoreLinterErrors=!1}var _=_dereq_("../lodash"),events=_dereq_("events"),reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,unicodeData=_dereq_("../data/ascii-identifier-data.js"),asciiIdentifierStartTable=unicodeData.asciiIdentifierStartTable,asciiIdentifierPartTable=unicodeData.asciiIdentifierPartTable,Token={Identifier:1,Punctuator:2,NumericLiteral:3,StringLiteral:4,Comment:5,Keyword:6,NullLiteral:7,BooleanLiteral:8,RegExp:9,TemplateHead:10,TemplateMiddle:11,TemplateTail:12,NoSubstTemplate:13},Context={Block:1,Template:2};Lexer.prototype={_lines:[],inContext:function(ctxType){return this.context.length>0&&this.context[this.context.length-1].type===ctxType},pushContext:function(ctxType){this.context.push({type:ctxType})},popContext:function(){return this.context.pop()},isContext:function(context){return this.context.length>0&&this.context[this.context.length-1]===context},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=state.lines,this._lines},setLines:function(val){this._lines=val,state.lines=this._lines},peek:function(i){return this.input.charAt(i||0)},skip:function(i){i=i||1,this.char+=i,this.input=this.input.slice(i)},on:function(names,listener){names.split(" ").forEach(function(name){this.emitter.on(name,listener)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(type,args,checks,fn){checks.push(function(){fn()&&this.trigger(type,args)}.bind(this))},scanPunctuator:function(){var ch2,ch3,ch4,ch1=this.peek();switch(ch1){case".":if(/^[0-9]$/.test(this.peek(1)))return null;if("."===this.peek(1)&&"."===this.peek(2))return{type:Token.Punctuator,value:"..."};case"(":case")":case";":case",":case"[":case"]":case":":case"~":case"?":return{type:Token.Punctuator,value:ch1};case"{":return this.pushContext(Context.Block),{type:Token.Punctuator,value:ch1};case"}":return this.inContext(Context.Block)&&this.popContext(),{type:Token.Punctuator,value:ch1};case"#":return{type:Token.Punctuator,value:ch1};case"":return null}return ch2=this.peek(1),ch3=this.peek(2),ch4=this.peek(3),">"===ch1&&">"===ch2&&">"===ch3&&"="===ch4?{type:Token.Punctuator,value:">>>="}:"="===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"==="}:"!"===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"!=="}:">"===ch1&&">"===ch2&&">"===ch3?{type:Token.Punctuator,value:">>>"}:"<"===ch1&&"<"===ch2&&"="===ch3?{type:Token.Punctuator,value:"<<="}:">"===ch1&&">"===ch2&&"="===ch3?{type:Token.Punctuator,value:">>="}:"="===ch1&&">"===ch2?{type:Token.Punctuator,value:ch1+ch2}:ch1===ch2&&"+-<>&|".indexOf(ch1)>=0?{type:Token.Punctuator,value:ch1+ch2}:"<>=!+-*%&|^".indexOf(ch1)>=0?"="===ch2?{type:Token.Punctuator,value:ch1+ch2}:{type:Token.Punctuator,value:ch1}:"/"===ch1?"="===ch2?{type:Token.Punctuator,value:"/="}:{type:Token.Punctuator,value:"/"}:null},scanComments:function(){function commentToken(label,body,opt){var special=["jshint","jslint","members","member","globals","global","exported"],isSpecial=!1,value=label+body,commentType="plain";return opt=opt||{},opt.isMultiline&&(value+="*/"),body=body.replace(/\\n/g," "),"/*"===label&®.fallsThrough.test(body)&&(isSpecial=!0,commentType="falls through"),special.forEach(function(str){if(!isSpecial&&("//"!==label||"jshint"===str)&&(" "===body.charAt(str.length)&&body.substr(0,str.length)===str&&(isSpecial=!0,label+=str,body=body.substr(str.length)),isSpecial||" "!==body.charAt(0)||" "!==body.charAt(str.length+1)||body.substr(1,str.length)!==str||(isSpecial=!0,label=label+" "+str,body=body.substr(str.length+1)),isSpecial))switch(str){case"member":commentType="members";break;case"global":commentType="globals";break;default:var options=body.split(":").map(function(v){return v.replace(/^\\s+/,"").replace(/\\s+$/,"")});if(2===options.length)switch(options[0]){case"ignore":switch(options[1]){case"start":self.ignoringLinterErrors=!0,isSpecial=!1;break;case"end":self.ignoringLinterErrors=!1,isSpecial=!1}}commentType=str}}),{type:Token.Comment,commentType:commentType,value:value,body:body,isSpecial:isSpecial,isMultiline:opt.isMultiline||!1,isMalformed:opt.isMalformed||!1}}var ch1=this.peek(),ch2=this.peek(1),rest=this.input.substr(2),startLine=this.line,startChar=this.char,self=this;if("*"===ch1&&"/"===ch2)return this.trigger("error",{code:"E018",line:startLine,character:startChar}),this.skip(2),null;if("/"!==ch1||"*"!==ch2&&"/"!==ch2)return null;if("/"===ch2)return this.skip(this.input.length),commentToken("//",rest);var body="";if("*"===ch2){for(this.inComment=!0,this.skip(2);"*"!==this.peek()||"/"!==this.peek(1);)if(""===this.peek()){if(body+="\\n",!this.nextLine())return this.trigger("error",{code:"E017",line:startLine,character:startChar}),this.inComment=!1,commentToken("/*",body,{isMultiline:!0,isMalformed:!0})}else body+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,commentToken("/*",body,{isMultiline:!0})}},scanKeyword:function(){var result=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input),keywords=["if","in","do","var","for","new","try","let","this","else","case","void","with","enum","while","break","catch","throw","const","yield","class","super","return","typeof","delete","switch","export","import","default","finally","extends","function","continue","debugger","instanceof"];return result&&keywords.indexOf(result[0])>=0?{type:Token.Keyword,value:result[0]}:null},scanIdentifier:function(){function isNonAsciiIdentifierStart(code){return code>256}function isNonAsciiIdentifierPart(code){return code>256}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function removeEscapeSequences(id){return id.replace(/\\\\u([0-9a-fA-F]{4})/g,function(m0,codepoint){return String.fromCharCode(parseInt(codepoint,16))})}var type,char,id="",index=0,readUnicodeEscapeSequence=function(){if(index+=1,"u"!==this.peek(index))return null;var code,ch1=this.peek(index+1),ch2=this.peek(index+2),ch3=this.peek(index+3),ch4=this.peek(index+4);return isHexDigit(ch1)&&isHexDigit(ch2)&&isHexDigit(ch3)&&isHexDigit(ch4)?(code=parseInt(ch1+ch2+ch3+ch4,16),asciiIdentifierPartTable[code]||isNonAsciiIdentifierPart(code)?(index+=5,"\\\\u"+ch1+ch2+ch3+ch4):null):null}.bind(this),getIdentifierStart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierStartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierStart(code)?(index+=1,chr):null}.bind(this),getIdentifierPart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierPartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierPart(code)?(index+=1,chr):null}.bind(this);if(char=getIdentifierStart(),null===char)return null;for(id=char;char=getIdentifierPart(),null!==char;)id+=char;switch(id){case"true":case"false":type=Token.BooleanLiteral;break;case"null":type=Token.NullLiteral;break;default:type=Token.Identifier}return{type:type,value:removeEscapeSequences(id),text:id,tokenLength:id.length}},scanNumericLiteral:function(){function isDecimalDigit(str){return/^[0-9]$/.test(str)}function isOctalDigit(str){return/^[0-7]$/.test(str)}function isBinaryDigit(str){return/^[01]$/.test(str)}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function isIdentifierStart(ch){return"$"===ch||"_"===ch||"\\\\"===ch||ch>="a"&&"z">=ch||ch>="A"&&"Z">=ch}var bad,index=0,value="",length=this.input.length,char=this.peek(index),isAllowedDigit=isDecimalDigit,base=10,isLegacy=!1;if("."!==char&&!isDecimalDigit(char))return null;if("."!==char){for(value=this.peek(index),index+=1,char=this.peek(index),"0"===value&&(("x"===char||"X"===char)&&(isAllowedDigit=isHexDigit,base=16,index+=1,value+=char),("o"===char||"O"===char)&&(isAllowedDigit=isOctalDigit,base=8,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Octal integer literal","6"]}),index+=1,value+=char),("b"===char||"B"===char)&&(isAllowedDigit=isBinaryDigit,base=2,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Binary integer literal","6"]}),index+=1,value+=char),isOctalDigit(char)&&(isAllowedDigit=isOctalDigit,base=8,isLegacy=!0,bad=!1,index+=1,value+=char),!isOctalDigit(char)&&isDecimalDigit(char)&&(index+=1,value+=char));length>index;){if(char=this.peek(index),isLegacy&&isDecimalDigit(char))bad=!0;else if(!isAllowedDigit(char))break;value+=char,index+=1}if(isAllowedDigit!==isDecimalDigit)return!isLegacy&&2>=value.length?{type:Token.NumericLiteral,value:value,isMalformed:!0}:length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isLegacy:isLegacy,isMalformed:!1}}if("."===char)for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1;if("e"===char||"E"===char){if(value+=char,index+=1,char=this.peek(index),("+"===char||"-"===char)&&(value+=this.peek(index),index+=1),char=this.peek(index),!isDecimalDigit(char))return null;for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1}return length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isMalformed:!isFinite(value)}},scanEscapeSequence:function(checks){var allowNewLine=!1,jump=1;this.skip();var char=this.peek();switch(char){case"'":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\'"]},checks,function(){return state.jsonMode});break;case"b":char="\\\\b";break;case"f":char="\\\\f";break;case"n":char="\\\\n";break;case"r":char="\\\\r";break;case"t":char="\\\\t";break;case"0":char="\\\\0";var n=parseInt(this.peek(1),10);this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},checks,function(){return n>=0&&7>=n&&state.isStrict()});break;case"u":var hexCode=this.input.substr(1,4),code=parseInt(hexCode,16);isNaN(code)&&this.trigger("warning",{code:"W052",line:this.line,character:this.char,data:["u"+hexCode]}),char=String.fromCharCode(code),jump=5;break;case"v":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\v"]},checks,function(){return state.jsonMode}),char="\v";break;case"x":var x=parseInt(this.input.substr(1,2),16);this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\x-"]},checks,function(){return state.jsonMode}),char=String.fromCharCode(x),jump=3;break;case"\\\\":char="\\\\\\\\";break;case'"':char='\\\\"';break;case"/":break;case"":allowNewLine=!0,char=""}return{"char":char,jump:jump,allowNewLine:allowNewLine}},scanTemplateLiteral:function(checks){var tokenType,ch,value="",startLine=this.line,startChar=this.char,depth=this.templateStarts.length;if(!state.inES6(!0))return null;if("\`"===this.peek())tokenType=Token.TemplateHead,this.templateStarts.push({line:this.line,"char":this.char}),depth=this.templateStarts.length,this.skip(1),this.pushContext(Context.Template);else{if(!this.inContext(Context.Template)||"}"!==this.peek())return null;tokenType=Token.TemplateMiddle}for(;"\`"!==this.peek();){for(;""===(ch=this.peek());)if(value+="\\n",!this.nextLine()){var startPos=this.templateStarts.pop();return this.trigger("error",{code:"E052",line:startPos.line,character:startPos.char}),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,depth:depth,context:this.popContext()}}if("$"===ch&&"{"===this.peek(1))return value+="\${",this.skip(2),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.currentContext()}; if("\\\\"===ch){var escape=this.scanEscapeSequence(checks);value+=escape.char,this.skip(escape.jump)}else"\`"!==ch&&(value+=ch,this.skip(1))}return tokenType=tokenType===Token.TemplateHead?Token.NoSubstTemplate:Token.TemplateTail,this.skip(1),this.templateStarts.pop(),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.popContext()}},scanStringLiteral:function(checks){var quote=this.peek();if('"'!==quote&&"'"!==quote)return null;this.triggerAsync("warning",{code:"W108",line:this.line,character:this.char},checks,function(){return state.jsonMode&&'"'!==quote});var value="",startLine=this.line,startChar=this.char,allowNewLine=!1;for(this.skip();this.peek()!==quote;)if(""===this.peek()){if(allowNewLine?(allowNewLine=!1,this.triggerAsync("warning",{code:"W043",line:this.line,character:this.char},checks,function(){return!state.option.multistr}),this.triggerAsync("warning",{code:"W042",line:this.line,character:this.char},checks,function(){return state.jsonMode&&state.option.multistr})):this.trigger("warning",{code:"W112",line:this.line,character:this.char}),!this.nextLine())return this.trigger("error",{code:"E029",line:startLine,character:startChar}),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,quote:quote}}else{allowNewLine=!1;var char=this.peek(),jump=1;if(" ">char&&this.trigger("warning",{code:"W113",line:this.line,character:this.char,data:[""]}),"\\\\"===char){var parsed=this.scanEscapeSequence(checks);char=parsed.char,jump=parsed.jump,allowNewLine=parsed.allowNewLine}value+=char,this.skip(jump)}return this.skip(),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,quote:quote}},scanRegExp:function(){var terminated,index=0,length=this.input.length,char=this.peek(),value=char,body="",flags=[],malformed=!1,isCharSet=!1,scanUnexpectedChars=function(){" ">char&&(malformed=!0,this.trigger("warning",{code:"W048",line:this.line,character:this.char})),"<"===char&&(malformed=!0,this.trigger("warning",{code:"W049",line:this.line,character:this.char,data:[char]}))}.bind(this);if(!this.prereg||"/"!==char)return null;for(index+=1,terminated=!1;length>index;)if(char=this.peek(index),value+=char,body+=char,isCharSet)"]"===char&&("\\\\"!==this.peek(index-1)||"\\\\"===this.peek(index-2))&&(isCharSet=!1),"\\\\"===char&&(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars()),index+=1;else{if("\\\\"===char){if(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars(),"/"===char){index+=1;continue}if("["===char){index+=1;continue}}if("["!==char){if("/"===char){body=body.substr(0,body.length-1),terminated=!0,index+=1;break}index+=1}else isCharSet=!0,index+=1}if(!terminated)return this.trigger("error",{code:"E015",line:this.line,character:this.from}),void this.trigger("fatal",{line:this.line,from:this.from});for(;length>index&&(char=this.peek(index),/[gim]/.test(char));)flags.push(char),value+=char,index+=1;try{RegExp(body,flags.join(""))}catch(err){malformed=!0,this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[err.message]})}return{type:Token.RegExp,value:value,flags:flags,isMalformed:malformed}},scanNonBreakingSpaces:function(){return state.option.nonbsp?this.input.search(/(\\u00A0)/):-1},scanUnsafeChars:function(){return this.input.search(reg.unsafeChars)},next:function(checks){this.from=this.char;var start;if(/\\s/.test(this.peek()))for(start=this.char;/\\s/.test(this.peek());)this.from+=1,this.skip();var match=this.scanComments()||this.scanStringLiteral(checks)||this.scanTemplateLiteral(checks);return match?match:(match=this.scanRegExp()||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier()||this.scanNumericLiteral(),match?(this.skip(match.tokenLength||match.value.length),match):null)},nextLine:function(){var char;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var inputTrimmed=this.input.trim(),startsWith=function(){return _.some(arguments,function(prefix){return 0===inputTrimmed.indexOf(prefix)})},endsWith=function(){return _.some(arguments,function(suffix){return-1!==inputTrimmed.indexOf(suffix,inputTrimmed.length-suffix.length)})};if(this.ignoringLinterErrors===!0&&(startsWith("/*","//")||this.inComment&&endsWith("*/")||(this.input="")),char=this.scanNonBreakingSpaces(),char>=0&&this.trigger("warning",{code:"W125",line:this.line,character:char+1}),this.input=this.input.replace(/\\t/g,state.tab),char=this.scanUnsafeChars(),char>=0&&this.trigger("warning",{code:"W100",line:this.line,character:char}),!this.ignoringLinterErrors&&state.option.maxlen&&state.option.maxlen=0;--i){var scopeLabels=_scopeStack[i]["(labels)"];if(scopeLabels[labelName])return scopeLabels}}function usedSoFarInCurrentFunction(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(usages)"][labelName])return current["(usages)"][labelName];if(current===_currentFunctBody)break}return!1}function _checkOuterShadow(labelName,token){if("outer"===state.option.shadow)for(var isGlobal="global"===_currentFunctBody["(type)"],isNewFunction="functionparams"===_current["(type)"],outsideCurrentFunction=!isGlobal,i=0;_scopeStack.length>i;i++){var stackItem=_scopeStack[i];isNewFunction||_scopeStack[i+1]!==_currentFunctBody||(outsideCurrentFunction=!1),outsideCurrentFunction&&stackItem["(labels)"][labelName]&&warning("W123",token,labelName),stackItem["(breakLabels)"][labelName]&&warning("W123",token,labelName)}}function _latedefWarning(type,labelName,token){state.option.latedef&&(state.option.latedef===!0&&"function"===type||"function"!==type)&&warning("W003",token,labelName)}var _current,_scopeStack=[];_newScope("global"),_current["(predefined)"]=predefined;var _currentFunctBody=_current,usedPredefinedAndGlobals=Object.create(null),impliedGlobals=Object.create(null),unuseds=[],emitter=new events.EventEmitter,_getUnusedOption=function(unused_opt){return void 0===unused_opt&&(unused_opt=state.option.unused),unused_opt===!0&&(unused_opt="last-param"),unused_opt},_warnUnused=function(name,tkn,type,unused_opt){var line=tkn.line,chr=tkn.from,raw_name=tkn.raw_text||name;unused_opt=_getUnusedOption(unused_opt);var warnable_types={vars:["var"],"last-param":["var","param"],strict:["var","param","last-param"]};unused_opt&&warnable_types[unused_opt]&&-1!==warnable_types[unused_opt].indexOf(type)&&warning("W098",{line:line,from:chr},raw_name),(unused_opt||"var"===type)&&unuseds.push({name:name,line:line,character:chr})},scopeManagerInst={on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)})},isPredefined:function(labelName){return!this.has(labelName)&&_.has(_scopeStack[0]["(predefined)"],labelName)},stack:function(type){var previousScope=_current;_newScope(type),type||"functionparams"!==previousScope["(type)"]||(_current["(isFuncBody)"]=!0,_current["(context)"]=_currentFunctBody,_currentFunctBody=_current)},unstack:function(){var i,j,subScope=_scopeStack.length>1?_scopeStack[_scopeStack.length-2]:null,isUnstackingFunctionBody=_current===_currentFunctBody,isUnstackingFunctionParams="functionparams"===_current["(type)"],isUnstackingFunctionOuter="functionouter"===_current["(type)"],currentUsages=_current["(usages)"],currentLabels=_current["(labels)"],usedLabelNameList=Object.keys(currentUsages);for(currentUsages.__proto__&&-1===usedLabelNameList.indexOf("__proto__")&&usedLabelNameList.push("__proto__"),i=0;usedLabelNameList.length>i;i++){var usedLabelName=usedLabelNameList[i],usage=currentUsages[usedLabelName],usedLabel=currentLabels[usedLabelName];if(usedLabel){var usedLabelType=usedLabel["(type)"];if(usedLabel["(useOutsideOfScope)"]&&!state.option.funcscope){var usedTokens=usage["(tokens)"];if(usedTokens)for(j=0;usedTokens.length>j;j++)usedLabel["(function)"]===usedTokens[j]["(function)"]&&error("W038",usedTokens[j],usedLabelName)}if(_current["(labels)"][usedLabelName]["(unused)"]=!1,"const"===usedLabelType&&usage["(modified)"])for(j=0;usage["(modified)"].length>j;j++)error("E013",usage["(modified)"][j],usedLabelName);if(("function"===usedLabelType||"class"===usedLabelType)&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)error("W021",usage["(reassigned)"][j],usedLabelName,usedLabelType)}else if(isUnstackingFunctionOuter&&(state.funct["(isCapturing)"]=!0),subScope)if(subScope["(usages)"][usedLabelName]){var subScopeUsage=subScope["(usages)"][usedLabelName];subScopeUsage["(modified)"]=subScopeUsage["(modified)"].concat(usage["(modified)"]),subScopeUsage["(tokens)"]=subScopeUsage["(tokens)"].concat(usage["(tokens)"]),subScopeUsage["(reassigned)"]=subScopeUsage["(reassigned)"].concat(usage["(reassigned)"]),subScopeUsage["(onlyUsedSubFunction)"]=!1}else subScope["(usages)"][usedLabelName]=usage,isUnstackingFunctionBody&&(subScope["(usages)"][usedLabelName]["(onlyUsedSubFunction)"]=!0);else if("boolean"==typeof _current["(predefined)"][usedLabelName]){if(delete declared[usedLabelName],usedPredefinedAndGlobals[usedLabelName]=marker,_current["(predefined)"][usedLabelName]===!1&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)warning("W020",usage["(reassigned)"][j])}else if(usage["(tokens)"])for(j=0;usage["(tokens)"].length>j;j++){var undefinedToken=usage["(tokens)"][j];undefinedToken.forgiveUndef||(state.option.undef&&!undefinedToken.ignoreUndef&&warning("W117",undefinedToken,usedLabelName),impliedGlobals[usedLabelName]?impliedGlobals[usedLabelName].line.push(undefinedToken.line):impliedGlobals[usedLabelName]={name:usedLabelName,line:[undefinedToken.line]})}}if(subScope||Object.keys(declared).forEach(function(labelNotUsed){_warnUnused(labelNotUsed,declared[labelNotUsed],"var")}),subScope&&!isUnstackingFunctionBody&&!isUnstackingFunctionParams&&!isUnstackingFunctionOuter){var labelNames=Object.keys(currentLabels);for(i=0;labelNames.length>i;i++){var defLabelName=labelNames[i];currentLabels[defLabelName]["(blockscoped)"]||"exception"===currentLabels[defLabelName]["(type)"]||this.funct.has(defLabelName,{excludeCurrent:!0})||(subScope["(labels)"][defLabelName]=currentLabels[defLabelName],"global"!==_currentFunctBody["(type)"]&&(subScope["(labels)"][defLabelName]["(useOutsideOfScope)"]=!0),delete currentLabels[defLabelName])}}_checkForUnused(),_scopeStack.pop(),isUnstackingFunctionBody&&(_currentFunctBody=_scopeStack[_.findLastIndex(_scopeStack,function(scope){return scope["(isFuncBody)"]||"global"===scope["(type)"]})]),_current=subScope},addParam:function(labelName,token,type){if(type=type||"param","exception"===type){var previouslyDefinedLabelType=this.funct.labeltype(labelName);previouslyDefinedLabelType&&"exception"!==previouslyDefinedLabelType&&(state.option.node||warning("W002",state.tokens.next,labelName))}if(_.has(_current["(labels)"],labelName)?_current["(labels)"][labelName].duplicated=!0:(_checkOuterShadow(labelName,token,type),_current["(labels)"][labelName]={"(type)":type,"(token)":token,"(unused)":!0},_current["(params)"].push(labelName)),_.has(_current["(usages)"],labelName)){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}},validateParams:function(){if("global"!==_currentFunctBody["(type)"]){var isStrict=state.isStrict(),currentFunctParamScope=_currentFunctBody["(parent)"];currentFunctParamScope["(params)"]&¤tFunctParamScope["(params)"].forEach(function(labelName){var label=currentFunctParamScope["(labels)"][labelName];label&&label.duplicated&&(isStrict?warning("E011",label["(token)"],labelName):state.option.shadow!==!0&&warning("W004",label["(token)"],labelName))})}},getUsedOrDefinedGlobals:function(){var list=Object.keys(usedPredefinedAndGlobals);return usedPredefinedAndGlobals.__proto__===marker&&-1===list.indexOf("__proto__")&&list.push("__proto__"),list},getImpliedGlobals:function(){var values=_.values(impliedGlobals),hasProto=!1;return impliedGlobals.__proto__&&(hasProto=values.some(function(value){return"__proto__"===value.name}),hasProto||values.push(impliedGlobals.__proto__)),values},getUnuseds:function(){return unuseds},has:function(labelName){return Boolean(_getLabel(labelName))},labeltype:function(labelName){var scopeLabels=_getLabel(labelName);return scopeLabels?scopeLabels[labelName]["(type)"]:null},addExported:function(labelName){var globalLabels=_scopeStack[0]["(labels)"];if(_.has(declared,labelName))delete declared[labelName];else if(_.has(globalLabels,labelName))globalLabels[labelName]["(unused)"]=!1;else{for(var i=1;_scopeStack.length>i;i++){var scope=_scopeStack[i];if(scope["(type)"])break;if(_.has(scope["(labels)"],labelName)&&!scope["(labels)"][labelName]["(blockscoped)"])return scope["(labels)"][labelName]["(unused)"]=!1,void 0}exported[labelName]=!0}},setExported:function(labelName,token){this.block.use(labelName,token) -},addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped="let"===type||"const"===type||"class"===type,isexported="global"===(isblockscoped?_current:_currentFunctBody)["(type)"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current["(labels)"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||"global"===_current["(type)"]||(declaredInCurrentScope=!!_currentFunctBody["(parent)"]["(labels)"][labelName]),!declaredInCurrentScope&&_current["(usages)"][labelName]){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}declaredInCurrentScope?warning("E011",token,labelName):"outer"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning("W004",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning("E011",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&"__proto__"!==labelName&&"global"!==_currentFunctBody["(type)"]&&warning("W004",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),"global"===_currentFunctBody["(type)"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current["(labels)"][labelName]&&(!onlyBlockscoped||current["(labels)"][labelName]["(blockscoped)"]))return current["(labels)"][labelName]["(type)"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&"functionparams"===scopeCheck["(type)"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(breakLabels)"][labelName])return!0;if("functionparams"===current["(type)"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!1,"(function)":_currentFunctBody,"(unused)":unused}}},block:{isGlobal:function(){return"global"===_current["(type)"]},use:function(labelName,token){var paramScope=_currentFunctBody["(parent)"];paramScope&¶mScope["(labels)"][labelName]&&"param"===paramScope["(labels)"][labelName]["(type)"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope["(labels)"][labelName]["(unused)"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token["(function)"]=_currentFunctBody,_current["(usages)"][labelName]["(tokens)"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current["(usages)"][labelName]["(reassigned)"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current["(usages)"][labelName]["(modified)"].push(token)},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!0,"(unused)":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning("E011",token,labelName):"outer"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning("W004",token,labelName):_checkOuterShadow(labelName,token)),_current["(breakLabels)"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{"../lodash":"/node_modules/jshint/lodash.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/state.js":[function(_dereq_,module,exports){"use strict";var NameStack=_dereq_("./name-stack.js"),state={syntax:{},isStrict:function(){return this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{"./name-stack.js":"/node_modules/jshint/src/name-stack.js"}],"/node_modules/jshint/src/style.js":[function(_dereq_,module,exports){"use strict";exports.register=function(linter){linter.on("Identifier",function(data){linter.getOption("proto")||"__proto__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name,"6"]})}),linter.on("Identifier",function(data){linter.getOption("iterator")||"__iterator__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name]})}),linter.on("Identifier",function(data){linter.getOption("camelcase")&&data.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn("W106",{line:data.line,"char":data.from,data:[data.name]})}),linter.on("String",function(data){var code,quotmark=linter.getOption("quotmark");quotmark&&("single"===quotmark&&"'"!==data.quote&&(code="W109"),"double"===quotmark&&'"'!==data.quote&&(code="W108"),quotmark===!0&&(linter.getCache("quotmark")||linter.setCache("quotmark",data.quote),linter.getCache("quotmark")!==data.quote&&(code="W110")),code&&linter.warn(code,{line:data.line,"char":data.char}))}),linter.on("Number",function(data){"."===data.value.charAt(0)&&linter.warn("W008",{line:data.line,"char":data.char,data:[data.value]}),"."===data.value.substr(data.value.length-1)&&linter.warn("W047",{line:data.line,"char":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn("W046",{line:data.line,"char":data.char,data:[data.value]})}),linter.on("String",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption("scripturl")||re.test(data.value)&&linter.warn("W107",{line:data.line,"char":data.char})})}},{}],"/node_modules/jshint/src/vars.js":[function(_dereq_,module,exports){"use strict";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,"throws":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},["/node_modules/jshint/src/jshint.js"])}),ace.define("ace/mode/javascript_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/javascript/jshint"],function(acequire,exports,module){"use strict";function startRegex(arr){return RegExp("^("+arr.join("|")+")")}var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,lint=acequire("./javascript/jshint").JSHINT,disabledWarningsRe=startRegex(["Bad for in variable '(.+)'.",'Missing "use strict"']),errorsRe=startRegex(["Unexpected","Expected ","Confusing (plus|minus)","\\\\{a\\\\} unterminated regular expression","Unclosed ","Unmatched ","Unbegun comment","Bad invocation","Missing space after","Missing operator at"]),infoRe=startRegex(["Expected an assignment","Bad escapement of EOL","Unexpected comma","Unexpected space","Missing radix parameter.","A leading decimal point can","\\\\['{a}'\\\\] is better written in dot notation.","'{a}' used out of scope"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval("throw 0;"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,"\\n"),!value)return this.sender.emit("annotate",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?"warning":"error";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type="warning";if("Missing semicolon."==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),"error"==maxErrorLevel&&str&&/[\\w\\d{(['"]/.test(str)?(error.reason='Missing ";" before statement',type="error"):type="info"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type="info":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):"'{a}' is not defined."==raw?type="warning":"'{a}' is defined but never used."==raw&&(type="info")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit("annotate",errors)}}.call(JavaScriptWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`});var Cs=null;var ei=1;function De(e){let t=Cs;return Cs=e,t}var As={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function gu(e){if(!(ri(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ei)){if(!e.producerMustRecompute(e)&&!ti(e)){e.dirty=!1,e.lastCleanEpoch=ei;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=ei}}function xs(e){return e&&(e.nextProducerIndex=0),De(e)}function Ds(e,t){if(De(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(ri(e))for(let r=e.nextProducerIndex;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ti(e){Bn(e);for(let t=0;t0}function Bn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function mu(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function vu(){throw new Error}var yu=vu;function Ss(e){yu=e}function ie(e){return typeof e=="function"}function Nn(e){let r=e(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var $n=Nn(e=>function(r){e(this),this.message=r?`${r.length} errors occurred during unsubscription: +},addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped="let"===type||"const"===type||"class"===type,isexported="global"===(isblockscoped?_current:_currentFunctBody)["(type)"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current["(labels)"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||"global"===_current["(type)"]||(declaredInCurrentScope=!!_currentFunctBody["(parent)"]["(labels)"][labelName]),!declaredInCurrentScope&&_current["(usages)"][labelName]){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}declaredInCurrentScope?warning("E011",token,labelName):"outer"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning("W004",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning("E011",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&"__proto__"!==labelName&&"global"!==_currentFunctBody["(type)"]&&warning("W004",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),"global"===_currentFunctBody["(type)"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current["(labels)"][labelName]&&(!onlyBlockscoped||current["(labels)"][labelName]["(blockscoped)"]))return current["(labels)"][labelName]["(type)"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&"functionparams"===scopeCheck["(type)"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(breakLabels)"][labelName])return!0;if("functionparams"===current["(type)"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!1,"(function)":_currentFunctBody,"(unused)":unused}}},block:{isGlobal:function(){return"global"===_current["(type)"]},use:function(labelName,token){var paramScope=_currentFunctBody["(parent)"];paramScope&¶mScope["(labels)"][labelName]&&"param"===paramScope["(labels)"][labelName]["(type)"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope["(labels)"][labelName]["(unused)"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token["(function)"]=_currentFunctBody,_current["(usages)"][labelName]["(tokens)"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current["(usages)"][labelName]["(reassigned)"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current["(usages)"][labelName]["(modified)"].push(token)},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!0,"(unused)":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning("E011",token,labelName):"outer"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning("W004",token,labelName):_checkOuterShadow(labelName,token)),_current["(breakLabels)"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{"../lodash":"/node_modules/jshint/lodash.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/state.js":[function(_dereq_,module,exports){"use strict";var NameStack=_dereq_("./name-stack.js"),state={syntax:{},isStrict:function(){return this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{"./name-stack.js":"/node_modules/jshint/src/name-stack.js"}],"/node_modules/jshint/src/style.js":[function(_dereq_,module,exports){"use strict";exports.register=function(linter){linter.on("Identifier",function(data){linter.getOption("proto")||"__proto__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name,"6"]})}),linter.on("Identifier",function(data){linter.getOption("iterator")||"__iterator__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name]})}),linter.on("Identifier",function(data){linter.getOption("camelcase")&&data.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn("W106",{line:data.line,"char":data.from,data:[data.name]})}),linter.on("String",function(data){var code,quotmark=linter.getOption("quotmark");quotmark&&("single"===quotmark&&"'"!==data.quote&&(code="W109"),"double"===quotmark&&'"'!==data.quote&&(code="W108"),quotmark===!0&&(linter.getCache("quotmark")||linter.setCache("quotmark",data.quote),linter.getCache("quotmark")!==data.quote&&(code="W110")),code&&linter.warn(code,{line:data.line,"char":data.char}))}),linter.on("Number",function(data){"."===data.value.charAt(0)&&linter.warn("W008",{line:data.line,"char":data.char,data:[data.value]}),"."===data.value.substr(data.value.length-1)&&linter.warn("W047",{line:data.line,"char":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn("W046",{line:data.line,"char":data.char,data:[data.value]})}),linter.on("String",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption("scripturl")||re.test(data.value)&&linter.warn("W107",{line:data.line,"char":data.char})})}},{}],"/node_modules/jshint/src/vars.js":[function(_dereq_,module,exports){"use strict";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,"throws":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},["/node_modules/jshint/src/jshint.js"])}),ace.define("ace/mode/javascript_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/javascript/jshint"],function(acequire,exports,module){"use strict";function startRegex(arr){return RegExp("^("+arr.join("|")+")")}var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,lint=acequire("./javascript/jshint").JSHINT,disabledWarningsRe=startRegex(["Bad for in variable '(.+)'.",'Missing "use strict"']),errorsRe=startRegex(["Unexpected","Expected ","Confusing (plus|minus)","\\\\{a\\\\} unterminated regular expression","Unclosed ","Unmatched ","Unbegun comment","Bad invocation","Missing space after","Missing operator at"]),infoRe=startRegex(["Expected an assignment","Bad escapement of EOL","Unexpected comma","Unexpected space","Missing radix parameter.","A leading decimal point can","\\\\['{a}'\\\\] is better written in dot notation.","'{a}' used out of scope"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval("throw 0;"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,"\\n"),!value)return this.sender.emit("annotate",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?"warning":"error";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type="warning";if("Missing semicolon."==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),"error"==maxErrorLevel&&str&&/[\\w\\d{(['"]/.test(str)?(error.reason='Missing ";" before statement',type="error"):type="info"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type="info":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):"'{a}' is not defined."==raw?type="warning":"'{a}' is defined but never used."==raw&&(type="info")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit("annotate",errors)}}.call(JavaScriptWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`});var is=null;var Ir=1,Mr=Symbol("SIGNAL");function ie(e){let t=is;return is=e,t}var os={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Uc(e){if(!(Nr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ir)){if(!e.producerMustRecompute(e)&&!Lr(e)){e.dirty=!1,e.lastCleanEpoch=Ir;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Ir}}function ss(e){return e&&(e.nextProducerIndex=0),ie(e)}function as(e,t){if(ie(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Nr(e))for(let r=e.nextProducerIndex;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Lr(e){_n(e);for(let t=0;t0}function _n(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function zc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Gc(){throw new Error}var qc=Gc;function cs(e){qc=e}function Ce(e){return typeof e=="function"}function Tn(e){let r=e(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var In=Tn(e=>function(r){e(this),this.message=r?`${r.length} errors occurred during unsubscription: ${r.map((n,s)=>`${s+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function tn(e,t){if(e){let r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ke=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let c of r)c.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(ie(n))try{n()}catch(c){t=c instanceof $n?c.errors:[c]}let{_finalizers:s}=this;if(s){this._finalizers=null;for(let c of s)try{Fs(c)}catch(l){t=t??[],l instanceof $n?t=[...t,...l.errors]:t.push(l)}}if(t)throw new $n(t)}}add(t){var r;if(t&&t!==this)if(this.closed)Fs(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}}_hasParent(t){let{_parentage:r}=this;return r===t||Array.isArray(r)&&r.includes(t)}_addParent(t){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}_removeParent(t){let{_parentage:r}=this;r===t?this._parentage=null:Array.isArray(r)&&tn(r,t)}remove(t){let{_finalizers:r}=this;r&&tn(r,t),t instanceof e&&t._removeParent(this)}};ke.EMPTY=(()=>{let e=new ke;return e.closed=!0,e})();var ii=ke.EMPTY;function Pn(e){return e instanceof ke||e&&"closed"in e&&ie(e.remove)&&ie(e.add)&&ie(e.unsubscribe)}function Fs(e){ie(e)?e():e.unsubscribe()}var Oe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ft={setTimeout(e,t,...r){let{delegate:n}=Ft;return n?.setTimeout?n.setTimeout(e,t,...r):setTimeout(e,t,...r)},clearTimeout(e){let{delegate:t}=Ft;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function jn(e){Ft.setTimeout(()=>{let{onUnhandledError:t}=Oe;if(t)t(e);else throw e})}function oi(){}var _s=(()=>si("C",void 0,void 0))();function Ts(e){return si("E",void 0,e)}function Is(e){return si("N",e,void 0)}function si(e,t,r){return{kind:e,value:t,error:r}}var gt=null;function _t(e){if(Oe.useDeprecatedSynchronousErrorHandling){let t=!gt;if(t&&(gt={errorThrown:!1,error:null}),e(),t){let{errorThrown:r,error:n}=gt;if(gt=null,r)throw n}}else e()}function Ms(e){Oe.useDeprecatedSynchronousErrorHandling&>&&(gt.errorThrown=!0,gt.error=e)}var mt=class extends ke{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Pn(t)&&t.add(this)):this.destination=Eu}static create(t,r,n){return new Je(t,r,n)}next(t){this.isStopped?li(Is(t),this):this._next(t)}error(t){this.isStopped?li(Ts(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?li(_s,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},bu=Function.prototype.bind;function ai(e,t){return bu.call(e,t)}var ci=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:r}=this;if(r.next)try{r.next(t)}catch(n){Vn(n)}}error(t){let{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){Vn(n)}else Vn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){Vn(r)}}},Je=class extends mt{constructor(t,r,n){super();let s;if(ie(t)||!t)s={next:t??void 0,error:r??void 0,complete:n??void 0};else{let c;this&&Oe.useDeprecatedNextContext?(c=Object.create(t),c.unsubscribe=()=>this.unsubscribe(),s={next:t.next&&ai(t.next,c),error:t.error&&ai(t.error,c),complete:t.complete&&ai(t.complete,c)}):s=t}this.destination=new ci(s)}};function Vn(e){Oe.useDeprecatedSynchronousErrorHandling?Ms(e):jn(e)}function wu(e){throw e}function li(e,t){let{onStoppedNotification:r}=Oe;r&&Ft.setTimeout(()=>r(e,t))}var Eu={closed:!0,next:oi,error:wu,complete:oi};var Tt=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")();function It(e){return e}function Ls(e){return e.length===0?It:e.length===1?e[0]:function(r){return e.reduce((n,s)=>s(n),r)}}var le=(()=>{class e{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new e;return n.source=this,n.operator=r,n}subscribe(r,n,s){let c=Au(r)?r:new Je(r,n,s);return _t(()=>{let{operator:l,source:a}=this;c.add(l?l.call(c,a):a?this._subscribe(c):this._trySubscribe(c))}),c}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Rs(n),new n((s,c)=>{let l=new Je({next:a=>{try{r(a)}catch(i){c(i),l.unsubscribe()}},error:c,complete:s});this.subscribe(l)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Tt](){return this}pipe(...r){return Ls(r)(this)}toPromise(r){return r=Rs(r),new r((n,s)=>{let c;this.subscribe(l=>c=l,l=>s(l),()=>n(c))})}}return e.create=t=>new e(t),e})();function Rs(e){var t;return(t=e??Oe.Promise)!==null&&t!==void 0?t:Promise}function Cu(e){return e&&ie(e.next)&&ie(e.error)&&ie(e.complete)}function Au(e){return e&&e instanceof mt||Cu(e)&&Pn(e)}function xu(e){return ie(e?.lift)}function xe(e){return t=>{if(xu(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function _e(e,t,r,n,s){return new ui(e,t,r,n,s)}var ui=class extends mt{constructor(t,r,n,s,c,l){super(t),this.onFinalize=c,this.shouldUnsubscribe=l,this._next=r?function(a){try{r(a)}catch(i){t.error(i)}}:super._next,this._error=s?function(a){try{s(a)}catch(i){t.error(i)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Os=Nn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ct=(()=>{class e extends le{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Wn(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Os}next(r){_t(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){_t(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){_t(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:s,observers:c}=this;return n||s?ii:(this.currentObservers=null,c.push(r),new ke(()=>{this.currentObservers=null,tn(c,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:s,isStopped:c}=this;n?r.error(s):c&&r.complete()}asObservable(){let r=new le;return r.source=this,r}}return e.create=(t,r)=>new Wn(t,r),e})(),Wn=class extends ct{constructor(t,r){super(),this.destination=t,this.source=r}next(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)}error(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)}complete(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)}_subscribe(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:ii}};var nn=class extends ct{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let r=super._subscribe(t);return!r.closed&&t.next(this._value),r}getValue(){let{hasError:t,thrownError:r,_value:n}=this;if(t)throw r;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}};var Bs=new le(e=>e.complete());function Ns(e){return e&&ie(e.schedule)}function $s(e){return e[e.length-1]}function Hn(e){return Ns($s(e))?e.pop():void 0}function Ps(e,t){return typeof $s(e)=="number"?e.pop():t}function Vs(e,t,r,n){function s(c){return c instanceof r?c:new r(function(l){l(c)})}return new(r||(r=Promise))(function(c,l){function a(d){try{o(n.next(d))}catch(u){l(u)}}function i(d){try{o(n.throw(d))}catch(u){l(u)}}function o(d){d.done?c(d.value):s(d.value).then(a,i)}o((n=n.apply(e,t||[])).next())})}function js(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vt(e){return this instanceof vt?(this.v=e,this):new vt(e)}function Ws(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),s,c=[];return s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(f){n[f]&&(s[f]=function(h){return new Promise(function(g,b){c.push([f,h,g,b])>1||a(f,h)})})}function a(f,h){try{i(n[f](h))}catch(g){u(c[0][3],g)}}function i(f){f.value instanceof vt?Promise.resolve(f.value.v).then(o,d):u(c[0][2],f)}function o(f){a("next",f)}function d(f){a("throw",f)}function u(f,h){f(h),c.shift(),c.length&&a(c[0][0],c[0][1])}}function Hs(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof js=="function"?js(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(c){r[c]=e[c]&&function(l){return new Promise(function(a,i){l=e[c](l),s(a,i,l.done,l.value)})}}function s(c,l,a,i){Promise.resolve(i).then(function(o){c({value:o,done:a})},l)}}var Un=e=>e&&typeof e.length=="number"&&typeof e!="function";function zn(e){return ie(e?.then)}function Gn(e){return ie(e[Tt])}function Kn(e){return Symbol.asyncIterator&&ie(e?.[Symbol.asyncIterator])}function qn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Du(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yn=Du();function Qn(e){return ie(e?.[Yn])}function Zn(e){return Ws(this,arguments,function*(){let r=e.getReader();try{for(;;){let{value:n,done:s}=yield vt(r.read());if(s)return yield vt(void 0);yield yield vt(n)}}finally{r.releaseLock()}})}function Xn(e){return ie(e?.getReader)}function me(e){if(e instanceof le)return e;if(e!=null){if(Gn(e))return ku(e);if(Un(e))return Su(e);if(zn(e))return Fu(e);if(Kn(e))return Us(e);if(Qn(e))return _u(e);if(Xn(e))return Tu(e)}throw qn(e)}function ku(e){return new le(t=>{let r=e[Tt]();if(ie(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Su(e){return new le(t=>{for(let r=0;r{e.then(r=>{t.closed||(t.next(r),t.complete())},r=>t.error(r)).then(null,jn)})}function _u(e){return new le(t=>{for(let r of e)if(t.next(r),t.closed)return;t.complete()})}function Us(e){return new le(t=>{Iu(e,t).catch(r=>t.error(r))})}function Tu(e){return Us(Zn(e))}function Iu(e,t){var r,n,s,c;return Vs(this,void 0,void 0,function*(){try{for(r=Hs(e);n=yield r.next(),!n.done;){let l=n.value;if(t.next(l),t.closed)return}}catch(l){s={error:l}}finally{try{n&&!n.done&&(c=r.return)&&(yield c.call(r))}finally{if(s)throw s.error}}t.complete()})}function Te(e,t,r,n=0,s=!1){let c=t.schedule(function(){r(),s?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(c),!s)return c}function Jn(e,t=0){return xe((r,n)=>{r.subscribe(_e(n,s=>Te(n,e,()=>n.next(s),t),()=>Te(n,e,()=>n.complete(),t),s=>Te(n,e,()=>n.error(s),t)))})}function er(e,t=0){return xe((r,n)=>{n.add(e.schedule(()=>r.subscribe(n),t))})}function zs(e,t){return me(e).pipe(er(t),Jn(t))}function Gs(e,t){return me(e).pipe(er(t),Jn(t))}function Ks(e,t){return new le(r=>{let n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function qs(e,t){return new le(r=>{let n;return Te(r,t,()=>{n=e[Yn](),Te(r,t,()=>{let s,c;try{({value:s,done:c}=n.next())}catch(l){r.error(l);return}c?r.complete():r.next(s)},0,!0)}),()=>ie(n?.return)&&n.return()})}function tr(e,t){if(!e)throw new Error("Iterable cannot be null");return new le(r=>{Te(r,t,()=>{let n=e[Symbol.asyncIterator]();Te(r,t,()=>{n.next().then(s=>{s.done?r.complete():r.next(s.value)})},0,!0)})})}function Ys(e,t){return tr(Zn(e),t)}function Qs(e,t){if(e!=null){if(Gn(e))return zs(e,t);if(Un(e))return Ks(e,t);if(zn(e))return Gs(e,t);if(Kn(e))return tr(e,t);if(Qn(e))return qs(e,t);if(Xn(e))return Ys(e,t)}throw qn(e)}function nr(e,t){return t?Qs(e,t):me(e)}function di(...e){let t=Hn(e);return nr(e,t)}function Zs(e,t){return xe((r,n)=>{let s=0;r.subscribe(_e(n,c=>{n.next(e.call(t,c,s++))}))})}function Xs(e,t,r,n,s,c,l,a){let i=[],o=0,d=0,u=!1,f=()=>{u&&!i.length&&!o&&t.complete()},h=b=>o{c&&t.next(b),o++;let x=!1;me(r(b,d++)).subscribe(_e(t,A=>{s?.(A),c?h(A):t.next(A)},()=>{x=!0},void 0,()=>{if(x)try{for(o--;i.length&&og(A)):g(A)}f()}catch(A){t.error(A)}}))};return e.subscribe(_e(t,h,()=>{u=!0,f()})),()=>{a?.()}}function fi(e,t,r=1/0){return ie(t)?fi((n,s)=>Zs((c,l)=>t(n,c,s,l))(me(e(n,s))),r):(typeof t=="number"&&(r=t),xe((n,s)=>Xs(n,s,e,r)))}function Js(e=1/0){return fi(It,e)}function hi(...e){let t=Hn(e),r=Ps(e,1/0),n=e;return n.length?n.length===1?me(n[0]):Js(r)(nr(n,t)):Bs}function pi(e,t=It){return e=e??Mu,xe((r,n)=>{let s,c=!0;r.subscribe(_e(n,l=>{let a=t(l);(c||!e(s,a))&&(c=!1,s=a,n.next(l))}))})}function Mu(e,t){return e===t}function rr(e={}){let{connector:t=()=>new ct,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:s=!0}=e;return c=>{let l,a,i,o=0,d=!1,u=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),l=i=void 0,d=u=!1},g=()=>{let b=l;h(),b?.unsubscribe()};return xe((b,x)=>{o++,!u&&!d&&f();let A=i=i??t();x.add(()=>{o--,o===0&&!u&&!d&&(a=gi(g,s))}),A.subscribe(x),!l&&o>0&&(l=new Je({next:v=>A.next(v),error:v=>{u=!0,f(),a=gi(h,r,v),A.error(v)},complete:()=>{d=!0,f(),a=gi(h,n),A.complete()}}),me(b).subscribe(l))})(c)}}function gi(e,t,...r){if(t===!0){e();return}if(t===!1)return;let n=new Je({next:()=>{n.unsubscribe(),e()}});return me(t(...r)).subscribe(n)}function mi(e,t){return xe((r,n)=>{let s=null,c=0,l=!1,a=()=>l&&!s&&n.complete();r.subscribe(_e(n,i=>{s?.unsubscribe();let o=0,d=c++;me(e(i,d)).subscribe(s=_e(n,u=>n.next(t?t(i,u,d,o++):u),()=>{s=null,a()}))},()=>{l=!0,a()}))})}function ae(e){for(let t in e)if(e[t]===ae)return t;throw Error("Could not find renamed property on target object.")}function be(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(be).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(` -`);return r===-1?t:t.substring(0,r)}function ea(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Lu=ae({__forward_ref__:ae});function Na(e){return e.__forward_ref__=Na,e.toString=function(){return be(this())},e}function Ne(e){return Ru(e)?e():e}function Ru(e){return typeof e=="function"&&e.hasOwnProperty(Lu)&&e.__forward_ref__===Na}function $a(e){return e&&!!e.\u0275providers}var Ou="https://g.co/ng/security#xss",ne=class extends Error{constructor(t,r){super(yo(t,r)),this.code=t}};function yo(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Bu=ae({\u0275cmp:ae}),Nu=ae({\u0275dir:ae}),$u=ae({\u0275pipe:ae}),Pu=ae({\u0275mod:ae}),ta=ae({\u0275fac:ae}),rn=ae({__NG_ELEMENT_ID__:ae}),na=ae({__NG_ENV_ID__:ae});function Pa(e){return typeof e=="string"?e:e==null?"":String(e)}function ju(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Pa(e)}function Vu(e,t){let r=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ne(-200,`Circular dependency in DI detected for ${e}${r}`)}function bo(e,t){let r=t?` in ${t}`:"";throw new ne(-201,!1)}function Wu(e,t){e==null&&Hu(t,e,null,"!=")}function Hu(e,t,r,n){throw new Error(`ASSERTION ERROR: ${e}`+(n==null?"":` [Expected=> ${r} ${n} ${t} <=Actual]`))}function de(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function rt(e){return{providers:e.providers||[],imports:e.imports||[]}}function wo(e){return ra(e,ja)||ra(e,Va)}function ra(e,t){return e.hasOwnProperty(t)?e[t]:null}function Uu(e){let t=e&&(e[ja]||e[Va]);return t||null}function ia(e){return e&&(e.hasOwnProperty(oa)||e.hasOwnProperty(zu))?e[oa]:null}var ja=ae({\u0275prov:ae}),oa=ae({\u0275inj:ae}),Va=ae({ngInjectableDef:ae}),zu=ae({ngInjectorDef:ae}),te=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(te||{}),_i;function Gu(){return _i}function He(e){let t=_i;return _i=e,t}function Wa(e,t,r){let n=wo(e);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&te.Optional)return null;if(t!==void 0)return t;bo(be(e),"Injector")}var Se=globalThis;var oe=class{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=de({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};var Ku={},ln=Ku,Ti="__NG_DI_FLAG__",hr="ngTempTokenPath",qu="ngTokenPath",Yu=/\n/gm,Qu="\u0275",sa="__source",on;function Mt(e){let t=on;return on=e,t}function Zu(e,t=te.Default){if(on===void 0)throw new ne(-203,!1);return on===null?Wa(e,void 0,t):on.get(e,t&te.Optional?null:void 0,t)}function re(e,t=te.Default){return(Gu()||Zu)(Ne(e),t)}function Ce(e,t=te.Default){return re(e,Fr(t))}function Fr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ii(e){let t=[];for(let r=0;r ");else if(typeof t=="object"){let c=[];for(let l in t)if(t.hasOwnProperty(l)){let a=t[l];c.push(l+":"+(typeof a=="string"?JSON.stringify(a):be(a)))}s=`{${c.join(", ")}}`}return`${r}${n?"("+n+")":""}[${s}]: ${e.replace(Yu,` - `)}`}function _r(e){return{toString:e}.toString()}var Ua=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Ua||{}),Ke=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ke||{}),cn={},$e=[];function za(e,t,r){let n=e.length;for(;;){let s=e.indexOf(t,r);if(s===-1)return s;if(s===0||e.charCodeAt(s-1)<=32){let c=t.length;if(s+c===n||e.charCodeAt(s+c)<=32)return s}r=s+1}}function Mi(e,t,r){let n=0;for(;nt){l=c-1;break}}}for(;cc?f="":f=s[u+1].toLowerCase();let h=n&8?f:null;if(h&&za(h,o,0)!==-1||n&2&&o!==f){if(Be(n))return!1;l=!0}}}}return Be(n)||l}function Be(e){return(e&1)===0}function sd(e,t,r,n){if(t===null)return-1;let s=0;if(n||!r){let c=!1;for(;s-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?s+="."+l:n&4&&(s+=" "+l);else s!==""&&!Be(l)&&(t+=la(c,s),s=""),n=l,c=c||!Be(n);r++}return s!==""&&(t+=la(c,s)),t}function dd(e){return e.map(ud).join(",")}function fd(e){let t=[],r=[],n=1,s=2;for(;n{let t=Qa(e),r=pt(Xe({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ua.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ke.Emulated,styles:e.styles||$e,_:null,schemas:e.schemas||null,tView:null,id:""});Za(r);let n=e.dependencies;return r.directiveDefs=ua(n,!1),r.pipeDefs=ua(n,!0),r.id=vd(r),r})}function hd(e){return Nt(e)||qa(e)}function pd(e){return e!==null}function it(e){return _r(()=>({type:e.type,bootstrap:e.bootstrap||$e,declarations:e.declarations||$e,imports:e.imports||$e,exports:e.exports||$e,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ca(e,t){if(e==null)return cn;let r={};for(let n in e)if(e.hasOwnProperty(n)){let s=e[n],c=s;Array.isArray(s)&&(c=s[1],s=s[0]),r[s]=n,t&&(t[s]=c)}return r}function Ir(e){return _r(()=>{let t=Qa(e);return Za(t),t})}function Nt(e){return e[Bu]||null}function qa(e){return e[Nu]||null}function Ya(e){return e[$u]||null}function gd(e){let t=Nt(e)||qa(e)||Ya(e);return t!==null?t.standalone:!1}function md(e,t){let r=e[Pu]||null;if(!r&&t===!0)throw new Error(`Type ${be(e)} does not have '\u0275mod' property.`);return r}function Qa(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||cn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||$e,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ca(e.inputs,t),outputs:ca(e.outputs),debugInfo:null}}function Za(e){e.features?.forEach(t=>t(e))}function ua(e,t){if(!e)return null;let r=t?Ya:hd;return()=>(typeof e=="function"?e():e).map(n=>r(n)).filter(pd)}function vd(e){let t=0,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let s of r)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483647+1,"c"+t}var ot=0,J=1,Q=2,fe=3,Pe=4,Ve=5,Li=6,un=7,Ie=8,$t=9,dn=10,we=11,fn=12,da=13,zt=14,et=15,bn=16,Lt=17,Ge=18,Mr=19,Xa=20,sn=21,vi=22,wt=23,ut=25,Ja=1;var Et=7,pr=8,Pt=9,Fe=10,jt=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e[e.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",e}(jt||{});function yt(e){return Array.isArray(e)&&typeof e[Ja]=="object"}function je(e){return Array.isArray(e)&&e[Ja]===!0}function el(e){return(e.flags&4)!==0}function Co(e){return e.componentOffset>-1}function Ao(e){return(e.flags&1)===1}function wn(e){return!!e.template}function yd(e){return(e[Q]&512)!==0}function hn(e,t){let r=e.hasOwnProperty(ta);return r?e[ta]:null}var Ri=class{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Lr(){return tl}function tl(e){return e.type.prototype.ngOnChanges&&(e.setInput=wd),bd}Lr.ngInherit=!0;function bd(){let e=rl(this),t=e?.current;if(t){let r=e.previous;if(r===cn)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function wd(e,t,r,n){let s=this.declaredInputs[r],c=rl(e)||Ed(e,{previous:cn,current:null}),l=c.current||(c.current={}),a=c.previous,i=a[s];l[s]=new Ri(i&&i.currentValue,t,a===cn),e[n]=t}var nl="__ngSimpleChanges__";function rl(e){return e[nl]||null}function Ed(e,t){return e[nl]=t}var fa=null;var Ue=function(e,t,r){fa?.(e,t,r)},Cd="svg",Ad="math";function qe(e){for(;Array.isArray(e);)e=e[ot];return e}function il(e,t){return qe(t[e])}function We(e,t){return qe(t[e.index])}function ol(e,t){return e.data[t]}function Gt(e,t){let r=t[e];return yt(r)?r:r[ot]}function xd(e){return(e[Q]&4)===4}function xo(e){return(e[Q]&128)===128}function Dd(e){return je(e[fe])}function gr(e,t){return t==null?null:e[t]}function sl(e){e[Lt]=0}function kd(e){e[Q]&1024||(e[Q]|=1024,xo(e)&&Rr(e))}function Sd(e,t){for(;e>0;)t=t[zt],e--;return t}function al(e){e[Q]&9216&&Rr(e)}function Rr(e){let t=e[fe];for(;t!==null&&!(je(t)&&t[Q]&jt.HasChildViewsToRefresh||yt(t)&&t[Q]&8192);){if(je(t))t[Q]|=jt.HasChildViewsToRefresh;else if(t[Q]|=8192,!xo(t))break;t=t[fe]}}function Fd(e,t){if((e[Q]&256)===256)throw new ne(911,!1);e[sn]===null&&(e[sn]=[]),e[sn].push(t)}var ee={lFrame:gl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function _d(){return ee.lFrame.elementDepthCount}function Td(){ee.lFrame.elementDepthCount++}function Id(){ee.lFrame.elementDepthCount--}function ll(){return ee.bindingsEnabled}function Md(){return ee.skipHydrationRootTNode!==null}function Ld(e){return ee.skipHydrationRootTNode===e}function Rd(){ee.skipHydrationRootTNode=null}function he(){return ee.lFrame.lView}function Ye(){return ee.lFrame.tView}function Qe(e){return ee.lFrame.contextLView=e,e[Ie]}function Ze(e){return ee.lFrame.contextLView=null,e}function st(){let e=cl();for(;e!==null&&e.type===64;)e=e.parent;return e}function cl(){return ee.lFrame.currentTNode}function Od(){let e=ee.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function En(e,t){let r=ee.lFrame;r.currentTNode=e,r.isParent=t}function ul(){return ee.lFrame.isParent}function Bd(){ee.lFrame.isParent=!1}function Nd(e){return ee.lFrame.bindingIndex=e}function dl(){return ee.lFrame.bindingIndex++}function $d(e){let t=ee.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function Pd(){return ee.lFrame.inI18n}function jd(e,t){let r=ee.lFrame;r.bindingIndex=r.bindingRootIndex=e,Oi(t)}function Vd(){return ee.lFrame.currentDirectiveIndex}function Oi(e){ee.lFrame.currentDirectiveIndex=e}function Wd(e){let t=ee.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function fl(){return ee.lFrame.currentQueryIndex}function Do(e){ee.lFrame.currentQueryIndex=e}function Hd(e){let t=e[J];return t.type===2?t.declTNode:t.type===1?e[Ve]:null}function hl(e,t,r){if(r&te.SkipSelf){let s=t,c=e;for(;s=s.parent,s===null&&!(r&te.Host);)if(s=Hd(c),s===null||(c=c[zt],s.type&10))break;if(s===null)return!1;t=s,e=c}let n=ee.lFrame=pl();return n.currentTNode=t,n.lView=e,!0}function ko(e){let t=pl(),r=e[J];ee.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function pl(){let e=ee.lFrame,t=e===null?null:e.child;return t===null?gl(e):t}function gl(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function ml(){let e=ee.lFrame;return ee.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vl=ml;function So(){let e=ml();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ud(e){return(ee.lFrame.contextLView=Sd(e,ee.lFrame.contextLView))[Ie]}function Kt(){return ee.lFrame.selectedIndex}function Ct(e){ee.lFrame.selectedIndex=e}function zd(){let e=ee.lFrame;return ol(e.tView,e.selectedIndex)}function Gd(){return ee.lFrame.currentNamespace}var yl=!0;function Fo(){return yl}function _o(e){yl=e}function Kd(e,t,r){let{ngOnChanges:n,ngOnInit:s,ngDoCheck:c}=t.type.prototype;if(n){let l=tl(t);(r.preOrderHooks??=[]).push(e,l),(r.preOrderCheckHooks??=[]).push(e,l)}s&&(r.preOrderHooks??=[]).push(0-e,s),c&&((r.preOrderHooks??=[]).push(e,c),(r.preOrderCheckHooks??=[]).push(e,c))}function To(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r=n)break}else t[i]<0&&(e[Lt]+=65536),(a>14>16&&(e[Q]&3)===t&&(e[Q]+=16384,ha(a,c)):ha(a,c)}var Bt=-1,pn=class{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function Yd(e){return e instanceof pn}function Qd(e){return(e.flags&8)!==0}function Zd(e){return(e.flags&16)!==0}function wl(e){return e!==Bt}function mr(e){let t=e&32767;return e&32767}function Xd(e){return e>>16}function vr(e,t){let r=Xd(e),n=t;for(;r>0;)n=n[zt],r--;return n}var Bi=!0;function pa(e){let t=Bi;return Bi=e,t}var Jd=256,El=Jd-1,Cl=5,ef=0,ze={};function tf(e,t,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(rn)&&(n=r[rn]),n==null&&(n=r[rn]=ef++);let s=n&El,c=1<>Cl)]|=c}function Al(e,t){let r=xl(e,t);if(r!==-1)return r;let n=t[J];n.firstCreatePass&&(e.injectorIndex=t.length,bi(n.data,e),bi(t,null),bi(n.blueprint,null));let s=Io(e,t),c=e.injectorIndex;if(wl(s)){let l=mr(s),a=vr(s,t),i=a[J].data;for(let o=0;o<8;o++)t[c+o]=a[l+o]|i[l+o]}return t[c+8]=s,c}function bi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function xl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Io(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let r=0,n=null,s=t;for(;s!==null;){if(n=_l(s),n===null)return Bt;if(r++,s=s[zt],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Bt}function nf(e,t,r){tf(e,t,r)}function Dl(e,t,r){if(r&te.Optional||e!==void 0)return e;bo(t,"NodeInjector")}function kl(e,t,r,n){if(r&te.Optional&&n===void 0&&(n=null),!(r&(te.Self|te.Host))){let s=e[$t],c=He(void 0);try{return s?s.get(t,n,r&te.Optional):Wa(t,n,r&te.Optional)}finally{He(c)}}return Dl(n,t,r)}function Sl(e,t,r,n=te.Default,s){if(e!==null){if(t[Q]&2048&&!(n&te.Self)){let l=af(e,t,r,n,ze);if(l!==ze)return l}let c=Fl(e,t,r,n,ze);if(c!==ze)return c}return kl(t,r,n,s)}function Fl(e,t,r,n,s){let c=of(r);if(typeof c=="function"){if(!hl(t,e,n))return n&te.Host?Dl(s,r,n):kl(t,r,n,s);try{let l;if(l=c(n),l==null&&!(n&te.Optional))bo(r);else return l}finally{vl()}}else if(typeof c=="number"){let l=null,a=xl(e,t),i=Bt,o=n&te.Host?t[et][Ve]:null;for((a===-1||n&te.SkipSelf)&&(i=a===-1?Io(e,t):t[a+8],i===Bt||!ma(n,!1)?a=-1:(l=t[J],a=mr(i),t=vr(i,t)));a!==-1;){let d=t[J];if(ga(c,a,d.data)){let u=rf(a,t,r,l,n,o);if(u!==ze)return u}i=t[a+8],i!==Bt&&ma(n,t[J].data[a+8]===o)&&ga(c,a,t)?(l=d,a=mr(i),t=vr(i,t)):a=-1}}return s}function rf(e,t,r,n,s,c){let l=t[J],a=l.data[e+8],i=n==null?Co(a)&&Bi:n!=l&&(a.type&3)!==0,o=s&te.Host&&c===a,d=cr(a,l,r,i,o);return d!==null?Vt(t,l,d,a):ze}function cr(e,t,r,n,s){let c=e.providerIndexes,l=t.data,a=c&1048575,i=e.directiveStart,o=e.directiveEnd,d=c>>20,u=n?a:a+d,f=s?a+d:o;for(let h=u;h=i&&g.type===r)return h}if(s){let h=l[i];if(h&&wn(h)&&h.type===r)return i}return null}function Vt(e,t,r,n){let s=e[r],c=t.data;if(Yd(s)){let l=s;l.resolving&&Vu(ju(c[r]));let a=pa(l.canSeeViewProviders);l.resolving=!0;let i,o=l.injectImpl?He(l.injectImpl):null,d=hl(e,n,te.Default);try{s=e[r]=l.factory(void 0,c,e,n),t.firstCreatePass&&r>=n.directiveStart&&Kd(r,c[r],t)}finally{o!==null&&He(o),pa(a),l.resolving=!1,vl()}}return s}function of(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(rn)?e[rn]:void 0;return typeof t=="number"?t>=0?t&El:sf:t}function ga(e,t,r){let n=1<>Cl)]&n)}function ma(e,t){return!(e&te.Self)&&!(e&te.Host&&t)}var bt=class{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return Sl(this._tNode,this._lView,t,Fr(n),r)}};function sf(){return new bt(st(),he())}function af(e,t,r,n,s){let c=e,l=t;for(;c!==null&&l!==null&&l[Q]&2048&&!(l[Q]&512);){let a=Fl(c,l,r,n|te.Self,ze);if(a!==ze)return a;let i=c.parent;if(!i){let o=l[Xa];if(o){let d=o.get(r,ze,n);if(d!==ze)return d}i=_l(l),l=l[zt]}c=i}return s}function _l(e){let t=e[J],r=t.type;return r===2?t.declTNode:r===1?e[Ve]:null}var ir="__parameters__";function lf(e){return function(...r){if(e){let n=e(...r);for(let s in n)this[s]=n[s]}}}function Tl(e,t,r){return _r(()=>{let n=lf(t);function s(...c){if(this instanceof s)return n.apply(this,c),this;let l=new s(...c);return a.annotation=l,a;function a(i,o,d){let u=i.hasOwnProperty(ir)?i[ir]:Object.defineProperty(i,ir,{value:[]})[ir];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(l),i}}return r&&(s.prototype=Object.create(r.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function cf(e){let t=Se.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function uf(e){return typeof e=="function"}function df(e,t,r){if(e.length!==t.length)return!1;for(let n=0;nArray.isArray(r)?Mo(r,t):t(r))}function Il(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function yr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function hf(e,t){let r=[];for(let n=0;nt;){let c=s-2;e[s]=e[c],s--}e[t]=r,e[t+1]=n}}function gf(e,t,r){let n=Cn(e,t);return n>=0?e[n|1]=r:(n=~n,pf(e,n,t,r)),n}function wi(e,t){let r=Cn(e,t);if(r>=0)return e[r|1]}function Cn(e,t){return mf(e,t,1)}function mf(e,t,r){let n=0,s=e.length>>r;for(;s!==n;){let c=n+(s-n>>1),l=e[c<t?s=c:n=c+1}return~(s<{let l=[];s.templateUrl&&l.push(n(s.templateUrl).then(o=>{s.template=o}));let a=typeof s.styles=="string"?[s.styles]:s.styles||[];if(s.styles=a,s.styleUrl&&s.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(s.styleUrls?.length){let o=s.styles.length,d=s.styleUrls;s.styleUrls.forEach((u,f)=>{a.push(""),l.push(n(u).then(h=>{a[o+f]=h,d.splice(d.indexOf(u),1),d.length==0&&(s.styleUrls=void 0)}))})}else s.styleUrl&&l.push(n(s.styleUrl).then(o=>{a.push(o),s.styleUrl=void 0}));let i=Promise.all(l).then(()=>Af(c));t.push(i)}),wf(),Promise.all(t).then(()=>{})}var br=new Map,bf=new Set;function wf(){let e=br;return br=new Map,e}function Ef(){return br.size===0}function Cf(e){return typeof e=="string"?e:e.text()}function Af(e){bf.delete(e)}var Or=new oe("ENVIRONMENT_INITIALIZER"),Ll=new oe("INJECTOR",-1),Rl=new oe("INJECTOR_DEF_TYPES"),wr=class{get(t,r=ln){if(r===ln){let n=new Error(`NullInjectorError: No provider for ${be(t)}!`);throw n.name="NullInjectorError",n}return r}};function xf(...e){return{\u0275providers:Df(!0,e),\u0275fromNgModule:!0}}function Df(e,...t){let r=[],n=new Set,s,c=l=>{r.push(l)};return Mo(t,l=>{let a=l;Ni(a,c,[],n)&&(s||=[],s.push(a))}),s!==void 0&&Ol(s,c),r}function Ol(e,t){for(let r=0;r{t(c,n)})}}function Ni(e,t,r,n){if(e=Ne(e),!e)return!1;let s=null,c=ia(e),l=!c&&Nt(e);if(!c&&!l){let i=e.ngModule;if(c=ia(i),c)s=i;else return!1}else{if(l&&!l.standalone)return!1;s=e}let a=n.has(s);if(l){if(a)return!1;if(n.add(s),l.dependencies){let i=typeof l.dependencies=="function"?l.dependencies():l.dependencies;for(let o of i)Ni(o,t,r,n)}}else if(c){if(c.imports!=null&&!a){n.add(s);let o;try{Mo(c.imports,d=>{Ni(d,t,r,n)&&(o||=[],o.push(d))})}finally{}o!==void 0&&Ol(o,t)}if(!a){let o=hn(s)||(()=>new s);t({provide:s,useFactory:o,deps:$e},s),t({provide:Rl,useValue:s,multi:!0},s),t({provide:Or,useValue:()=>re(s),multi:!0},s)}let i=c.providers;if(i!=null&&!a){let o=e;Lo(i,d=>{t(d,o)})}}else return!1;return s!==e&&e.providers!==void 0}function Lo(e,t){for(let r of e)$a(r)&&(r=r.\u0275providers),Array.isArray(r)?Lo(r,t):t(r)}var kf=ae({provide:String,useValue:ae});function Bl(e){return e!==null&&typeof e=="object"&&kf in e}function Sf(e){return!!(e&&e.useExisting)}function Ff(e){return!!(e&&e.useFactory)}function $i(e){return typeof e=="function"}var Br=new oe("Set Injector scope."),ur={},_f={},Ei;function Nl(){return Ei===void 0&&(Ei=new wr),Ei}var At=class{},Pi=class extends At{get destroyed(){return this._destroyed}constructor(t,r,n,s){super(),this.parent=r,this.source=n,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Vi(t,l=>this.processProvider(l)),this.records.set(Ll,Rt(void 0,this)),s.has("environment")&&this.records.set(At,Rt(void 0,this));let c=this.records.get(Br);c!=null&&typeof c.value=="string"&&this.scopes.add(c.value),this.injectorDefTypes=new Set(this.get(Rl,$e,te.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let r=Mt(this),n=He(void 0),s;try{return t()}finally{Mt(r),He(n)}}get(t,r=ln,n=te.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(na))return t[na](this);n=Fr(n);let s,c=Mt(this),l=He(void 0);try{if(!(n&te.SkipSelf)){let i=this.records.get(t);if(i===void 0){let o=Of(t)&&wo(t);o&&this.injectableDefInScope(o)?i=Rt(ji(t),ur):i=null,this.records.set(t,i)}if(i!=null)return this.hydrate(t,i)}let a=n&te.Self?Nl():this.parent;return r=n&te.Optional&&r===ln?null:r,a.get(t,r)}catch(a){if(a.name==="NullInjectorError"){if((a[hr]=a[hr]||[]).unshift(be(t)),c)throw a;return Ju(a,t,"R3InjectorError",this.source)}else throw a}finally{He(l),Mt(c)}}resolveInjectorInitializers(){let t=Mt(this),r=He(void 0),n;try{let s=this.get(Or,$e,te.Self);for(let c of s)c()}finally{Mt(t),He(r)}}toString(){let t=[],r=this.records;for(let n of r.keys())t.push(be(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processProvider(t){t=Ne(t);let r=$i(t)?t:Ne(t&&t.provide),n=If(t);if(!$i(t)&&t.multi===!0){let s=this.records.get(r);s||(s=Rt(void 0,ur,!0),s.factory=()=>Ii(s.multi),this.records.set(r,s)),r=t,s.multi.push(t)}else{let s=this.records.get(r)}this.records.set(r,n)}hydrate(t,r){return r.value===ur&&(r.value=_f,r.value=r.factory()),typeof r.value=="object"&&r.value&&Rf(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(t){if(!t.providedIn)return!1;let r=Ne(t.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){let r=this._onDestroyHooks.indexOf(t);r!==-1&&this._onDestroyHooks.splice(r,1)}};function ji(e){let t=wo(e),r=t!==null?t.factory:hn(e);if(r!==null)return r;if(e instanceof oe)throw new ne(204,!1);if(e instanceof Function)return Tf(e);throw new ne(204,!1)}function Tf(e){let t=e.length;if(t>0){let n=hf(t,"?");throw new ne(204,!1)}let r=Uu(e);return r!==null?()=>r.factory(e):()=>new e}function If(e){if(Bl(e))return Rt(void 0,e.useValue);{let t=Mf(e);return Rt(t,ur)}}function Mf(e,t,r){let n;if($i(e)){let s=Ne(e);return hn(s)||ji(s)}else if(Bl(e))n=()=>Ne(e.useValue);else if(Ff(e))n=()=>e.useFactory(...Ii(e.deps||[]));else if(Sf(e))n=()=>re(Ne(e.useExisting));else{let s=Ne(e&&(e.useClass||e.provide));if(Lf(e))n=()=>new s(...Ii(e.deps));else return hn(s)||ji(s)}return n}function Rt(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Lf(e){return!!e.deps}function Rf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Of(e){return typeof e=="function"||typeof e=="object"&&e instanceof oe}function Vi(e,t){for(let r of e)Array.isArray(r)?Vi(r,t):r&&$a(r)?Vi(r.\u0275providers,t):t(r)}function va(e,t=null,r=null,n){let s=$l(e,t,r,n);return s.resolveInjectorInitializers(),s}function $l(e,t=null,r=null,n,s=new Set){let c=[r||$e,xf(e)];return n=n||(typeof e=="object"?void 0:be(e)),new Pi(c,t||Nl(),n||null,s)}var qt=(()=>{let t=class t{static create(n,s){if(Array.isArray(n))return va({name:""},s,n,"");{let c=n.name??"";return va({name:c},n.parent,n.providers,c)}}};t.THROW_IF_NOT_FOUND=ln,t.NULL=new wr,t.\u0275prov=de({token:t,providedIn:"any",factory:()=>re(Ll)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var Wi;function Pl(e){Wi=e}function Bf(){if(Wi!==void 0)return Wi;if(typeof document<"u")return document;throw new ne(210,!1)}var Nr=new oe("AppId",{providedIn:"root",factory:()=>Nf}),Nf="ng",Ro=new oe("Platform Initializer"),Yt=new oe("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var Oo=new oe("CSP nonce",{providedIn:"root",factory:()=>Bf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function $f(e){return e instanceof Function?e():e}function jl(e){return(e.flags&128)===128}var tt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(tt||{});var Vl=new Map,Pf=0;function jf(){return Pf++}function Vf(e){Vl.set(e[Mr],e)}function Wf(e){Vl.delete(e[Mr])}var ya="__ngContext__";function xt(e,t){yt(t)?(e[ya]=t[Mr],Vf(t)):e[ya]=t}var Hf;function Bo(e,t){return Hf(e,t)}function No(e){let t=e[fe];return je(t)?t[fe]:t}function Wl(e){return Ul(e[fn])}function Hl(e){return Ul(e[Pe])}function Ul(e){for(;e!==null&&!je(e);)e=e[Pe];return e}function Ot(e,t,r,n,s){if(n!=null){let c,l=!1;je(n)?c=n:yt(n)&&(l=!0,n=n[ot]);let a=qe(n);e===0&&r!==null?s==null?ql(t,r,a):Er(t,r,a,s||null,!0):e===1&&r!==null?Er(t,r,a,s||null,!0):e===2?ah(t,a,l):e===3&&t.destroyNode(a),c!=null&&ch(t,e,c,r,s)}}function Uf(e,t){return e.createText(t)}function zf(e,t,r){e.setValue(t,r)}function zl(e,t,r){return e.createElement(t,r)}function Gf(e,t){let r=t[we];An(e,t,r,2,null,null),t[ot]=null,t[Ve]=null}function Kf(e,t,r,n,s,c){n[ot]=s,n[Ve]=t,An(e,n,r,1,s,c)}function qf(e,t){An(e,t,t[we],2,null,null)}function Yf(e){let t=e[fn];if(!t)return Ci(e[J],e);for(;t;){let r=null;if(yt(t))r=t[fn];else{let n=t[Fe];n&&(r=n)}if(!r){for(;t&&!t[Pe]&&t!==e;)yt(t)&&Ci(t[J],t),t=t[fe];t===null&&(t=e),yt(t)&&Ci(t[J],t),r=t&&t[Pe]}t=r}}function Qf(e,t,r,n){let s=Fe+n,c=r.length;n>0&&(r[s-1][Pe]=t),n0&&(e[r-1][Pe]=n[Pe]);let c=yr(e,Fe+t);Gf(n[J],n);let l=c[Ge];l!==null&&l.detachView(c[J]),n[fe]=null,n[Pe]=null,n[Q]&=-129}return n}function Kl(e,t){if(!(t[Q]&256)){let r=t[we];t[wt]&&ks(t[wt]),r.destroyNode&&An(e,t,r,3,null,null),Yf(t)}}function Ci(e,t){if(!(t[Q]&256)){t[Q]&=-129,t[Q]|=256,Jf(e,t),Xf(e,t),t[J].type===1&&t[we].destroy();let r=t[bn];if(r!==null&&je(t[fe])){r!==t[fe]&&Gl(r,t);let n=t[Ge];n!==null&&n.detachView(e)}Wf(t)}}function Xf(e,t){let r=e.cleanup,n=t[un];if(r!==null)for(let c=0;c=0?n[l]():n[-l].unsubscribe(),c+=2}else{let l=n[r[c+1]];r[c].call(l)}n!==null&&(t[un]=null);let s=t[sn];if(s!==null){t[sn]=null;for(let c=0;c-1){let{encapsulation:c}=e.data[n.directiveStart+s];if(c===Ke.None||c===Ke.Emulated)return null}return We(n,r)}}function Er(e,t,r,n,s){e.insertBefore(t,r,n,s)}function ql(e,t,r){e.appendChild(t,r)}function ba(e,t,r,n,s){n!==null?Er(e,t,r,n,s):ql(e,t,r)}function nh(e,t,r,n){e.removeChild(t,r,n)}function $o(e,t){return e.parentNode(t)}function rh(e,t){return e.nextSibling(t)}function ih(e,t,r){return sh(e,t,r)}function oh(e,t,r){return e.type&40?We(e,r):null}var sh=oh,wa;function Po(e,t,r,n){let s=eh(e,n,t),c=t[we],l=n.parent||t[Ve],a=ih(l,n,t);if(s!=null)if(Array.isArray(r))for(let i=0;inull;function Wo(e,t,r=!1){return ph(e,t,r)}var Gi=class{},Cr=class{};function gh(e){let t=Error(`No component factory found for ${be(e)}.`);return t[mh]=e,t}var mh="ngComponent";var Ki=class{resolveComponentFactory(t){throw gh(t)}},Ho=(()=>{let t=class t{};t.NULL=new Ki;let e=t;return e})();function vh(){return Qt(st(),he())}function Qt(e,t){return new dt(We(e,t))}var dt=(()=>{let t=class t{constructor(n){this.nativeElement=n}};t.__NG_ELEMENT_ID__=vh;let e=t;return e})();function yh(e){return e instanceof dt?e.nativeElement:e}var gn=class{};var bh=(()=>{let t=class t{};t.\u0275prov=de({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),mn=class{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}},wh=new mn("17.0.4"),Ai={};function Xl(e){return e!==null&&(typeof e=="function"||typeof e=="object")}var qi=class{constructor(){}supports(t){return t instanceof Map||Xl(t)}create(){return new Yi}},Yi=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let r;for(r=this._mapHead;r!==null;r=r._next)t(r)}forEachPreviousItem(t){let r;for(r=this._previousMapHead;r!==null;r=r._nextPrevious)t(r)}forEachChangedItem(t){let r;for(r=this._changesHead;r!==null;r=r._nextChanged)t(r)}forEachAddedItem(t){let r;for(r=this._additionsHead;r!==null;r=r._nextAdded)t(r)}forEachRemovedItem(t){let r;for(r=this._removalsHead;r!==null;r=r._nextRemoved)t(r)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||Xl(t)))throw new ne(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r=this._mapHead;if(this._appendAfter=null,this._forEach(t,(n,s)=>{if(r&&r.key===s)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let c=this._getOrCreateRecordForKey(s,n);r=this._insertBeforeOrAppend(r,c)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){let n=t._prev;return r._next=t,r._prev=n,t._prev=r,n&&(n._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){let s=this._records.get(t);this._maybeAddToChanges(s,r);let c=s._prev,l=s._next;return c&&(c._next=l),l&&(l._prev=c),s._next=null,s._prev=null,s}let n=new Qi(t);return this._records.set(t,n),n.currentValue=r,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(n=>r(t[n],n))}},Qi=class{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Ea(){return new $r([new qi])}var $r=(()=>{let t=class t{constructor(n){this.factories=n}static create(n,s){if(s){let c=s.factories.slice();n=n.concat(c)}return new t(n)}static extend(n){return{provide:t,useFactory:s=>t.create(n,s||Ea()),deps:[[t,new vf,new Ml]]}}find(n){let s=this.factories.find(c=>c.supports(n));if(s)return s;throw new ne(901,!1)}};t.\u0275prov=de({token:t,providedIn:"root",factory:Ea});let e=t;return e})();function Ar(e,t,r,n,s=!1){for(;r!==null;){let c=t[r.index];c!==null&&n.push(qe(c)),je(c)&&Eh(c,n);let l=r.type;if(l&8)Ar(e,t,r.child,n);else if(l&32){let a=Bo(r,t),i;for(;i=a();)n.push(i)}else if(l&16){let a=Yl(t,r);if(Array.isArray(a))n.push(...a);else{let i=No(t[et]);Ar(i[J],i,a,n,!0)}}r=s?r.projectionNext:r.next}return n}function Eh(e,t){for(let r=Fe;r{Rr(e.lView)},consumerOnSignalRead(){this.lView[wt]=this}}),kh="ngOriginalError";function xi(e){return e[kh]}var nt=class{constructor(){this._console=console}handleError(t){let r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&xi(t);for(;r&&xi(r);)r=xi(r);return r||null}};var ec=!1,Sh=new oe("",{providedIn:"root",factory:()=>ec});var Zt={};function Xt(e){tc(Ye(),he(),Kt()+e,!1)}function tc(e,t,r,n){if(!n)if((t[Q]&3)===3){let c=e.preOrderCheckHooks;c!==null&&ar(t,c,r)}else{let c=e.preOrderHooks;c!==null&&lr(t,c,0,r)}Ct(r)}function at(e,t=te.Default){let r=he();if(r===null)return re(e,t);let n=st();return Sl(n,r,Ne(e),t)}function Fh(e,t){let r=e.hostBindingOpCodes;if(r!==null)try{for(let n=0;nut&&tc(e,t,ut,!1),Ue(l?2:0,s),r(n,s)}finally{Ct(c),Ue(l?3:1,s)}}function ic(e,t,r){if(el(t)){let n=De(null);try{let s=t.directiveStart,c=t.directiveEnd;for(let l=s;lnull;function Rh(e,t,r,n){let s=pc(t);s.push(r),e.firstCreatePass&&gc(e).push(n,s.length-1)}function Oh(e,t,r,n,s,c){let l=t?t.injectorIndex:-1,a=0;return Md()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:l,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:s,attrs:c,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Ca(e,t,r,n){for(let s in e)if(e.hasOwnProperty(s)){r=r===null?{}:r;let c=e[s];n===null?Aa(r,t,s,c):n.hasOwnProperty(s)&&Aa(r,t,n[s],c)}return r}function Aa(e,t,r,n){e.hasOwnProperty(r)?e[r].push(t,n):e[r]=[t,n]}function Bh(e,t,r){let n=t.directiveStart,s=t.directiveEnd,c=e.data,l=t.attrs,a=[],i=null,o=null;for(let d=n;d0;){let r=e[--t];if(typeof r=="number"&&r<0)return r}return 0}function Wh(e,t,r,n){let s=r.directiveStart,c=r.directiveEnd;Co(r)&&Yh(t,r,e.data[s+r.componentOffset]),e.firstCreatePass||Al(r,t),xt(n,t);let l=r.initialInputs;for(let a=s;a-1&&(Hi(t,n),yr(r,n))}this._attachedToViewContainer=!1}Kl(this._lView[J],this._lView)}onDestroy(t){Fd(this._lView,t)}markForCheck(){Go(this._cdRefInjectingView||this._lView)}detach(){this._lView[Q]&=-129}reattach(){al(this._lView),this._lView[Q]|=128}detectChanges(){ep(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ne(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,qf(this._lView[J],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ne(902,!1);this._appRef=t}};var Ji=class extends ct{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,r,n){let s=t,c=r||(()=>null),l=n;if(t&&typeof t=="object"){let i=t;s=i.next?.bind(i),c=i.error?.bind(i),l=i.complete?.bind(i)}this.__isAsync&&(c=Di(c),s&&(s=Di(s)),l&&(l=Di(l)));let a=super.subscribe({next:s,error:c,complete:l});return t instanceof ke&&t.add(a),a}};function Di(e){return t=>{setTimeout(e,void 0,t)}}var se=Ji;function xa(...e){}function op(){let e=typeof Se.requestAnimationFrame=="function",t=Se[e?"requestAnimationFrame":"setTimeout"],r=Se[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){let n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);let s=r[Zone.__symbol__("OriginalDelegate")];s&&(r=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}var ue=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new se(!1),this.onMicrotaskEmpty=new se(!1),this.onStable=new se(!1),this.onError=new se(!1),typeof Zone>"u")throw new ne(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&r,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=op().nativeRequestAnimationFrame,lp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new ne(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new ne(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,s){let c=this._inner,l=c.scheduleEventTask("NgZoneEvent: "+s,t,sp,xa,xa);try{return c.runTask(l,r,n)}finally{c.cancelTask(l)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}},sp={};function Ko(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ap(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,eo(e),e.isCheckStableRunning=!0,Ko(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),eo(e))}function lp(e){let t=()=>{ap(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,s,c,l,a)=>{if(cp(a))return r.invokeTask(s,c,l,a);try{return Da(e),r.invokeTask(s,c,l,a)}finally{(e.shouldCoalesceEventChangeDetection&&c.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),ka(e)}},onInvoke:(r,n,s,c,l,a,i)=>{try{return Da(e),r.invoke(s,c,l,a,i)}finally{e.shouldCoalesceRunChangeDetection&&t(),ka(e)}},onHasTask:(r,n,s,c)=>{r.hasTask(s,c),n===s&&(c.change=="microTask"?(e._hasPendingMicrotasks=c.microTask,eo(e),Ko(e)):c.change=="macroTask"&&(e.hasPendingMacrotasks=c.macroTask))},onHandleError:(r,n,s,c)=>(r.handleError(s,c),e.runOutsideAngular(()=>e.onError.emit(c)),!1)})}function eo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Da(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ka(e){e._nesting--,Ko(e)}var to=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new se,this.onMicrotaskEmpty=new se,this.onStable=new se,this.onError=new se}run(t,r,n){return t.apply(r,n)}runGuarded(t,r,n){return t.apply(r,n)}runOutsideAngular(t){return t()}runTask(t,r,n,s){return t.apply(r,n)}},Cc=new oe("",{providedIn:"root",factory:Ac});function Ac(){let e=Ce(ue),t=!0,r=new le(s=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{s.next(t),s.complete()})}),n=new le(s=>{let c;e.runOutsideAngular(()=>{c=e.onStable.subscribe(()=>{ue.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,s.next(!0))})})});let l=e.onUnstable.subscribe(()=>{ue.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{s.next(!1)}))});return()=>{c.unsubscribe(),l.unsubscribe()}});return hi(r,n.pipe(rr()))}function cp(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var up=(()=>{let t=class t{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,this.renderDepth===0){for(let n of this.internalCallbacks)n();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=de({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function dp(e,t){let r=Gt(t,e),n=r[J];fp(n,r);let s=r[ot];s!==null&&r[Li]===null&&(r[Li]=Wo(s,r[$t])),qo(n,r,r[Ie])}function fp(e,t){for(let r=t.length;r0&&Ql(e,r,c.join(" "))}}function wp(e,t,r){let n=e.projection=[];for(let s=0;s>17&32767}function Ap(e){return(e&2)==2}function xp(e,t){return e&131071|t<<17}function so(e){return e|2}function Wt(e){return(e&131068)>>2}function ki(e,t){return e&-131069|t<<2}function Dp(e){return(e&1)===1}function ao(e){return e|1}function kp(e,t,r,n,s,c){let l=c?t.classBindings:t.styleBindings,a=Dt(l),i=Wt(l);e[n]=r;let o=!1,d;if(Array.isArray(r)){let u=r;d=u[1],(d===null||Cn(u,d)>0)&&(o=!0)}else d=r;if(s)if(i!==0){let f=Dt(e[a+1]);e[n+1]=or(f,a),f!==0&&(e[f+1]=ki(e[f+1],n)),e[a+1]=xp(e[a+1],n)}else e[n+1]=or(a,0),a!==0&&(e[a+1]=ki(e[a+1],n)),a=n;else e[n+1]=or(i,0),a===0?a=n:e[i+1]=ki(e[i+1],n),i=n;o&&(e[n+1]=so(e[n+1])),Fa(e,d,n,!0,c),Fa(e,d,n,!1,c),Sp(t,d,e,n,c),l=or(a,i),c?t.classBindings=l:t.styleBindings=l}function Sp(e,t,r,n,s){let c=s?e.residualClasses:e.residualStyles;c!=null&&typeof t=="string"&&Cn(c,t)>=0&&(r[n+1]=ao(r[n+1]))}function Fa(e,t,r,n,s){let c=e[r+1],l=t===null,a=n?Dt(c):Wt(c),i=!1;for(;a!==0&&(i===!1||l);){let o=e[a],d=e[a+1];Fp(o,t)&&(i=!0,e[a+1]=n?ao(d):so(d)),a=n?Dt(d):Wt(d)}i&&(e[r+1]=n?so(c):ao(c))}function Fp(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Cn(e,t)>=0:!1}function ft(e,t,r){let n=he(),s=dl();if(Yo(n,s,t)){let c=Ye(),l=zd();$h(c,l,n,e,t,n[we],r,!1)}return ft}function _a(e,t,r,n,s){let c=t.inputs,l=s?"class":"style";zo(e,r,c[l],l,n)}function Qo(e,t){return _p(e,t,null,!0),Qo}function _p(e,t,r,n){let s=he(),c=Ye(),l=$d(2);if(c.firstUpdatePass&&Ip(c,e,l,n),t!==Zt&&Yo(s,l,t)){let a=c.data[Kt()];Bp(c,a,s,s[we],e,s[l+1]=Np(t,r),n,l)}}function Tp(e,t){return t>=e.expandoStartIndex}function Ip(e,t,r,n){let s=e.data;if(s[r+1]===null){let c=s[Kt()],l=Tp(e,r);$p(c,n)&&t===null&&!l&&(t=!1),t=Mp(s,c,t,n),kp(s,c,t,r,l,n)}}function Mp(e,t,r,n){let s=Wd(e),c=n?t.residualClasses:t.residualStyles;if(s===null)(n?t.classBindings:t.styleBindings)===0&&(r=Si(null,e,t,r,n),r=yn(r,t.attrs,n),c=null);else{let l=t.directiveStylingLast;if(l===-1||e[l]!==s)if(r=Si(s,e,t,r,n),c===null){let i=Lp(e,t,n);i!==void 0&&Array.isArray(i)&&(i=Si(null,e,t,i[1],n),i=yn(i,t.attrs,n),Rp(e,t,n,i))}else c=Op(e,t,n)}return c!==void 0&&(n?t.residualClasses=c:t.residualStyles=c),r}function Lp(e,t,r){let n=r?t.classBindings:t.styleBindings;if(Wt(n)!==0)return e[Dt(n)]}function Rp(e,t,r,n){let s=r?t.classBindings:t.styleBindings;e[Dt(s)]=n}function Op(e,t,r){let n,s=t.directiveEnd;for(let c=1+t.directiveStylingLast;c0;){let i=e[s],o=Array.isArray(i),d=o?i[1]:i,u=d===null,f=r[s+1];f===Zt&&(f=u?$e:void 0);let h=u?wi(f,n):d===n?f:void 0;if(o&&!Dr(h)&&(h=wi(i,n)),Dr(h)&&(a=h,l))return a;let g=e[s+1];s=l?Dt(g):Wt(g)}if(t!==null){let i=c?t.residualClasses:t.residualStyles;i!=null&&(a=wi(i,n))}return a}function Dr(e){return e!==void 0}function Np(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=be(Vo(e)))),e}function $p(e,t){return(e.flags&(t?8:16))!==0}var qy=new RegExp(`^(\\d+)*(${hh}|${fh})*(.*)`);var Pp=(e,t)=>null;function Ia(e,t){return Pp(e,t)}function jp(e,t,r,n){let s=t.tView,l=e[Q]&4096?4096:16,a=Pr(e,s,r,l,null,t,null,null,null,n?.injector??null,n?.dehydratedView??null),i=e[t.index];a[bn]=i;let o=e[Ge];return o!==null&&(a[Ge]=o.createEmbeddedView(s)),qo(s,a,r),a}function Ma(e,t){return!t||jl(e)}function Vp(e,t,r,n=!0){let s=t[J];if(Qf(s,t,e,r),n){let c=Ui(r,e),l=t[we],a=$o(l,e[Et]);a!==null&&Kf(s,e[Ve],l,t,a,c)}}var xn=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Wp;let e=t;return e})();function Wp(){let e=st();return Dc(e,he())}var Hp=xn,xc=class extends Hp{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return Qt(this._hostTNode,this._hostLView)}get injector(){return new bt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Io(this._hostTNode,this._hostLView);if(wl(t)){let r=vr(t,this._hostLView),n=mr(t),s=r[J].data[n+8];return new bt(s,r)}else return new bt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let r=La(this._lContainer);return r!==null&&r[t]||null}get length(){return this._lContainer.length-Fe}createEmbeddedView(t,r,n){let s,c;typeof n=="number"?s=n:n!=null&&(s=n.index,c=n.injector);let l=Ia(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(r||{},c,l);return this.insertImpl(a,s,Ma(this._hostTNode,l)),a}createComponent(t,r,n,s,c){let l=t&&!uf(t),a;if(l)a=r;else{let g=r||{};a=g.index,n=g.injector,s=g.projectableNodes,c=g.environmentInjector||g.ngModuleRef}let i=l?t:new xr(Nt(t)),o=n||this.parentInjector;if(!c&&i.ngModule==null){let b=(l?o:this.parentInjector).get(At,null);b&&(c=b)}let d=Nt(i.componentType??{}),u=Ia(this._lContainer,d?.id??null),f=u?.firstChild??null,h=i.create(o,s,f,c);return this.insertImpl(h.hostView,a,Ma(this._hostTNode,u)),h}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,n){let s=t._lView;if(Dd(s)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let i=s[fe],o=new xc(i,i[Ve],i[fe]);o.detach(o.indexOf(t))}}let c=this._adjustIndex(r),l=this._lContainer;return Vp(l,s,c,n),t.attachToViewContainerRef(),Il(Fi(l),c,t),t}move(t,r){return this.insert(t,r)}indexOf(t){let r=La(this._lContainer);return r!==null?r.indexOf(t):-1}remove(t){let r=this._adjustIndex(t,-1),n=Hi(this._lContainer,r);n&&(yr(Fi(this._lContainer),r),Kl(n[J],n))}detach(t){let r=this._adjustIndex(t,-1),n=Hi(this._lContainer,r);return n&&yr(Fi(this._lContainer),r)!=null?new vn(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function La(e){return e[pr]}function Fi(e){return e[pr]||(e[pr]=[])}function Dc(e,t){let r,n=t[e.index];return je(n)?r=n:(r=fc(n,t,null,e),t[e.index]=r,Vr(t,r)),zp(r,t,e,n),new xc(r,e,t)}function Up(e,t){let r=e[we],n=r.createComment(""),s=We(t,e),c=$o(r,s);return Er(r,c,n,rh(r,s),!1),n}var zp=qp,Gp=(e,t,r)=>!1;function Kp(e,t,r){return Gp(e,t,r)}function qp(e,t,r,n){if(e[Et])return;let s;r.type&8?s=qe(n):s=Up(t,r),e[Et]=s}function Yp(e,t,r,n,s,c,l,a,i){let o=t.consts,d=jr(t,e,4,l||null,gr(o,a));lc(t,r,d,gr(o,i)),To(t,d);let u=d.tView=Uo(2,d,n,s,c,t.directiveRegistry,t.pipeRegistry,null,t.schemas,o,null);return t.queries!==null&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}function Zo(e,t,r,n,s,c,l,a){let i=he(),o=Ye(),d=e+ut,u=o.firstCreatePass?Yp(d,o,i,t,r,n,s,c,l):o.data[d];En(u,!1);let f=Qp(o,i,u,e);Fo()&&Po(o,i,f,u),xt(f,i);let h=fc(f,i,f,u);return i[d]=h,Vr(i,h),Kp(h,u,i),Ao(u)&&oc(o,i,u),l!=null&&sc(i,u,a),Zo}var Qp=Zp;function Zp(e,t,r,n){return _o(!0),t[we].createComment("")}function Xp(e,t,r,n,s,c){let l=t.consts,a=gr(l,s),i=jr(t,e,2,n,a);return lc(t,r,i,gr(l,c)),i.attrs!==null&&no(i,i.attrs,!1),i.mergedAttrs!==null&&no(i,i.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,i),i}function pe(e,t,r,n){let s=he(),c=Ye(),l=ut+e,a=s[we],i=c.firstCreatePass?Xp(l,c,s,t,r,n):c.data[l],o=Jp(c,s,i,a,t,e);s[l]=o;let d=Ao(i);return En(i,!0),Zl(a,o,i),(i.flags&32)!==32&&Fo()&&Po(c,s,o,i),_d()===0&&xt(o,s),Td(),d&&(oc(c,s,i),ic(c,i,s)),n!==null&&sc(s,i),pe}function ve(){let e=st();ul()?Bd():(e=e.parent,En(e,!1));let t=e;Ld(t)&&Rd(),Id();let r=Ye();return r.firstCreatePass&&(To(r,e),el(e)&&r.queries.elementEnd(e)),t.classesWithoutHost!=null&&Qd(t)&&_a(r,t,he(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Zd(t)&&_a(r,t,he(),t.stylesWithoutHost,!1),ve}var Jp=(e,t,r,n,s,c)=>(_o(!0),zl(n,s,Gd()));function Xo(){return he()}var kr="en-US";var eg=kr;function tg(e){Wu(e,"Expected localeId to be defined"),typeof e=="string"&&(eg=e.toLowerCase().replace(/_/g,"-"))}function Jo(e){return!!e&&typeof e.then=="function"}function kc(e){return!!e&&typeof e.subscribe=="function"}function Me(e,t,r,n){let s=he(),c=Ye(),l=st();return rg(c,s,s[we],l,e,t,n),Me}function ng(e,t,r,n){let s=e.cleanup;if(s!=null)for(let c=0;ci?a[i]:null}typeof l=="string"&&(c+=2)}return null}function rg(e,t,r,n,s,c,l){let a=Ao(n),o=e.firstCreatePass&&gc(e),d=t[Ie],u=pc(t),f=!0;if(n.type&3||l){let b=We(n,t),x=l?l(b):b,A=u.length,v=l?p=>l(qe(p[n.index])):n.index,w=null;if(!l&&a&&(w=ng(e,t,s,n.index)),w!==null){let p=w.__ngLastListenerFn__||w;p.__ngNextListenerFn__=c,w.__ngLastListenerFn__=c,f=!1}else{c=Oa(n,t,d,c,!1);let p=r.listen(x,s,c);u.push(c,p),o&&o.push(s,v,A,A+1)}}else c=Oa(n,t,d,c,!1);let h=n.outputs,g;if(f&&h!==null&&(g=h[s])){let b=g.length;if(b)for(let x=0;x-1?Gt(e.index,t):t;Go(a);let i=Ra(t,r,n,l),o=c.__ngNextListenerFn__;for(;o;)i=Ra(t,r,o,l)&&i,o=o.__ngNextListenerFn__;return s&&i===!1&&l.preventDefault(),i}}function Le(e=1){return Ud(e)}function Re(e,t=""){let r=he(),n=Ye(),s=e+ut,c=n.firstCreatePass?jr(n,s,1,t,null):n.data[s],l=ig(n,r,c,t,e);r[s]=l,Fo()&&Po(n,r,l,c),En(c,!1)}var ig=(e,t,r,n,s)=>(_o(!0),Uf(t[we],n));function Dn(e){return Sc("",e,""),Dn}function Sc(e,t,r){let n=he(),s=Cp(n,e,t,r);return s!==Zt&&Xh(n,Kt(),s),Sc}var Ht=class{},lo=class{};var Sr=class extends Ht{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ro(this);let s=md(t);this._bootstrapComponents=$f(s.bootstrap),this._r3Injector=$l(t,r,[{provide:Ht,useValue:this},{provide:Ho,useValue:this.componentFactoryResolver},...n],be(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},co=class extends lo{constructor(t){super(),this.moduleType=t}create(t){return new Sr(this.moduleType,t,[])}};function og(e,t,r){return new Sr(e,t,r)}function sg(){return this._results[Symbol.iterator]()}var uo=class e{get changes(){return this._changes||(this._changes=new se)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;let r=e.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=sg)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;let n=ff(t);(this._changesDetected=!df(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}},Ut=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=cg;let e=t;return e})(),ag=Ut,lg=class extends ag{constructor(t,r,n){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,n){let s=jp(this._declarationLView,this._declarationTContainer,t,{injector:r,dehydratedView:n});return new vn(s)}};function cg(){return es(st(),he())}function es(e,t){return e.type&4?new lg(t,e,Qt(e,t)):null}var fo=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},ho=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let r=t.queries;if(r!==null){let n=t.contentQueries!==null?t.contentQueries[0]:r.length,s=[];for(let c=0;c0)n.push(l[a/2]);else{let o=c[a+1],d=t[-i];for(let u=Fe;u{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,s)=>{this.resolve=n,this.reject=s}),this.appInits=Ce(yg,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let c of this.appInits){let l=c();if(Jo(l))n.push(l);else if(kc(l)){let a=new Promise((i,o)=>{l.subscribe({complete:i,error:o})});n.push(a)}}let s=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{s()}).catch(c=>{this.reject(c)}),n.length===0&&s(),this.initialized=!0}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function bg(){return typeof $localize<"u"&&$localize.locale||kr}var ts=new oe("LocaleId",{providedIn:"root",factory:()=>Ce(ts,te.Optional|te.SkipSelf)||bg()});var wg=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new nn(!1)}add(){this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Eg=new oe("compilerOptions");var ns=new oe(""),_n=new oe(""),Wr=(()=>{let t=class t{constructor(n,s,c){this._ngZone=n,this.registry=s,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,rs||(Cg(c),c.addToWindow(s)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ue.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>s.updateCb&&s.updateCb(n)?(clearTimeout(s.timeoutId),!1):!0),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,s,c){let l=-1;s&&s>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==l),n(this._didWork,this.getPendingTasks())},s)),this._callbacks.push({doneCb:n,timeoutId:l,updateCb:c})}whenStable(n,s,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,s,c),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,s,c){return[]}};t.\u0275fac=function(s){return new(s||t)(re(ue),re(Hr),re(_n))},t.\u0275prov=de({token:t,factory:t.\u0275fac});let e=t;return e})(),Hr=(()=>{let t=class t{constructor(){this._applications=new Map}registerApplication(n,s){this._applications.set(n,s)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,s=!0){return rs?.findTestabilityInTree(this,n,s)??null}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function Cg(e){rs=e}var rs,an=null,Ic=new oe("AllowMultipleToken"),Mc=new oe("PlatformDestroyListeners"),Ag=new oe("appBootstrapListener");function xg(e,t,r){let n=new co(r);return Promise.resolve(n)}function Dg(){Ss(()=>{throw new ne(600,!1)})}function kg(e){return e.isBoundToModule}function Sg(e){if(an&&!an.get(Ic,!1))throw new ne(400,!1);Dg(),an=e;let t=e.get(Rc);return Fg(e),t}function Fg(e){e.get(Ro,null)?.forEach(r=>r())}function is(e,t,r=[]){let n=`Platform: ${t}`,s=new oe(n);return(c=[])=>{let l=Lc();if(!l||l.injector.get(Ic,!1)){let a=[...r,...c,{provide:s,useValue:!0}];e?e(a):Sg(Tg(a,n))}return _g(s)}}function _g(e){let t=Lc();if(!t)throw new ne(401,!1);return t}function Tg(e=[],t){return qt.create({name:t,providers:[{provide:Br,useValue:"platform"},{provide:Mc,useValue:new Set([()=>an=null])},...e]})}function Lc(){return an?.get(Rc)??null}var Rc=(()=>{let t=class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,s){let c=Mg(s?.ngZone,Ig({eventCoalescing:s?.ngZoneEventCoalescing,runCoalescing:s?.ngZoneRunCoalescing}));return c.run(()=>{let l=og(n.moduleType,this.injector,Bg(()=>c)),a=l.injector.get(nt,null);return c.runOutsideAngular(()=>{let i=c.onError.subscribe({next:o=>{a.handleError(o)}});l.onDestroy(()=>{fr(this._modules,l),i.unsubscribe()})}),Lg(a,c,()=>{let i=l.injector.get(Tc);return i.runInitializers(),i.donePromise.then(()=>{let o=l.injector.get(ts,kr);return tg(o||kr),this._moduleDoBootstrap(l),l})})})}bootstrapModule(n,s=[]){let c=Oc({},s);return xg(this.injector,c,n).then(l=>this.bootstrapModuleFactory(l,c))}_moduleDoBootstrap(n){let s=n.injector.get(Ur);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(c=>s.bootstrap(c));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(s);else throw new ne(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());let n=this._injector.get(Mc,null);n&&(n.forEach(s=>s()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};t.\u0275fac=function(s){return new(s||t)(re(qt))},t.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function Ig(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}function Mg(e="zone.js",t){return e==="noop"?new to:e==="zone.js"?new ue(t):e}function Lg(e,t,r){try{let n=r();return Jo(n)?n.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}function Oc(e,t){return Array.isArray(t)?t.reduce(Oc,e):Xe(Xe({},e),t)}var Ur=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ce(Bc),this.zoneIsStable=Ce(Cc),this.componentTypes=[],this.components=[],this.isStable=Ce(wg).hasPendingTasks.pipe(mi(n=>n?di(!1):this.zoneIsStable),pi(),rr()),this._injector=Ce(At)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,s){let c=n instanceof Cr;if(!this._injector.get(Tc).done){let g="Cannot bootstrap as there are still asynchronous initializers running."+(!c&&gd(n)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new ne(405,!1)}let a;c?a=n:a=this._injector.get(Ho).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let i=kg(a)?void 0:this._injector.get(Ht),o=s||a.selector,d=a.create(qt.NULL,[],o,i),u=d.location.nativeElement,f=d.injector.get(ns,null);return f?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),fr(this.components,d),f?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new ne(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){let s=n;this._views.push(s),s.attachToAppRef(this)}detachView(n){let s=n;fr(this._views,s),s.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let s=this._injector.get(Ag,[]);[...this._bootstrapListeners,...s].forEach(c=>c(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ne(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function fr(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function Ba(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var Bc=new oe("",{providedIn:"root",factory:()=>Ce(nt).handleError.bind(void 0)});function Rg(){let e=Ce(ue),t=Ce(nt);return r=>e.runOutsideAngular(()=>t.handleError(r))}var Og=(()=>{let t=class t{constructor(){this.zone=Ce(ue),this.applicationRef=Ce(Ur)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Bg(e){return[{provide:ue,useFactory:e},{provide:Or,multi:!0,useFactory:()=>{let t=Ce(Og,{optional:!0});return()=>t.initialize()}},{provide:Bc,useFactory:Rg},{provide:Cc,useFactory:Ac}]}var Nc=is(null,"core",[]),$c=(()=>{let t=class t{constructor(n){}};t.\u0275fac=function(s){return new(s||t)(re(Ur))},t.\u0275mod=it({type:t}),t.\u0275inj=rt({});let e=t;return e})();var os=null;function Kr(){return os}function jc(e){os||(os=e)}var zr=class{},ht=new oe("DocumentToken");function Vc(e,t){t=encodeURIComponent(t);for(let r of e.split(";")){let n=r.indexOf("="),[s,c]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(s.trim()===t)return decodeURIComponent(c)}return null}var Wc=(()=>{let t=class t{constructor(n,s){this._viewContainer=n,this._context=new ss,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=s}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Pc("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Pc("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,s){return!0}};t.\u0275fac=function(s){return new(s||t)(at(xn),at(Ut))},t.\u0275dir=Ir({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),ss=class{constructor(){this.$implicit=null,this.ngIf=null}};function Pc(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${be(t)}'.`)}var St=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=it({type:t}),t.\u0275inj=rt({});let e=t;return e})(),Hc="browser",$g="server";function as(e){return e===$g}var Gr=class{};var us=class extends zr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ds=class e extends us{static makeCurrent(){jc(new e)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return r=r||this.getDefaultDocument(),r.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=Vg();return r==null?null:Wg(r)}resetBaseElement(){Tn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Vc(document.cookie,t)}},Tn=null;function Vg(){return Tn=Tn||document.querySelector("base"),Tn?Tn.getAttribute("href"):null}var qr;function Wg(e){qr=qr||document.createElement("a"),qr.setAttribute("href",e);let t=qr.pathname;return t.charAt(0)==="/"?t:`/${t}`}var fs=class{addToWindow(t){Se.getAngularTestability=(n,s=!0)=>{let c=t.findTestabilityInTree(n,s);if(c==null)throw new ne(5103,!1);return c},Se.getAllAngularTestabilities=()=>t.getAllTestabilities(),Se.getAllAngularRootElements=()=>t.getAllRootElements();let r=n=>{let s=Se.getAllAngularTestabilities(),c=s.length,l=!1,a=function(i){l=l||i,c--,c==0&&n(l)};s.forEach(i=>{i.whenStable(a)})};Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push(r)}findTestabilityInTree(t,r,n){if(r==null)return null;let s=t.getTestability(r);return s??(n?Kr().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null)}},Hg=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=de({token:t,factory:t.\u0275fac});let e=t;return e})(),hs=new oe("EventManagerPlugins"),Kc=(()=>{let t=class t{constructor(n,s){this._zone=s,this._eventNameToPlugin=new Map,n.forEach(c=>{c.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,s,c){return this._findPluginFor(s).addEventListener(n,s,c)}getZone(){return this._zone}_findPluginFor(n){let s=this._eventNameToPlugin.get(n);if(s)return s;if(s=this._plugins.find(l=>l.supports(n)),!s)throw new ne(5101,!1);return this._eventNameToPlugin.set(n,s),s}};t.\u0275fac=function(s){return new(s||t)(re(hs),re(ue))},t.\u0275prov=de({token:t,factory:t.\u0275fac});let e=t;return e})(),Yr=class{constructor(t){this._doc=t}},ls="ng-app-id",qc=(()=>{let t=class t{constructor(n,s,c,l={}){this.doc=n,this.appId=s,this.nonce=c,this.platformId=l,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=as(l),this.resetHostNodes()}addStyles(n){for(let s of n)this.changeUsageCount(s,1)===1&&this.onStyleAdded(s)}removeStyles(n){for(let s of n)this.changeUsageCount(s,-1)<=0&&this.onStyleRemoved(s)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(s=>s.remove()),n.clear());for(let s of this.getAllStyles())this.onStyleRemoved(s);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let s of this.getAllStyles())this.addStyleToHost(n,s)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let s of this.hostNodes)this.addStyleToHost(s,n)}onStyleRemoved(n){let s=this.styleRef;s.get(n)?.elements?.forEach(c=>c.remove()),s.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${ls}="${this.appId}"]`);if(n?.length){let s=new Map;return n.forEach(c=>{c.textContent!=null&&s.set(c.textContent,c)}),s}return null}changeUsageCount(n,s){let c=this.styleRef;if(c.has(n)){let l=c.get(n);return l.usage+=s,l.usage}return c.set(n,{usage:s,elements:[]}),s}getStyleElement(n,s){let c=this.styleNodesInDOM,l=c?.get(s);if(l?.parentNode===n)return c.delete(s),l.removeAttribute(ls),l;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=s,this.platformIsServer&&a.setAttribute(ls,this.appId),n.appendChild(a),a}}addStyleToHost(n,s){let c=this.getStyleElement(n,s),l=this.styleRef,a=l.get(s)?.elements;a?a.push(c):l.set(s,{elements:[c],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};t.\u0275fac=function(s){return new(s||t)(re(ht),re(Nr),re(Oo,8),re(Yt))},t.\u0275prov=de({token:t,factory:t.\u0275fac});let e=t;return e})(),cs={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},gs=/%COMP%/g,Yc="%COMP%",Ug=`_nghost-${Yc}`,zg=`_ngcontent-${Yc}`,Gg=!0,Kg=new oe("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>Gg});function qg(e){return zg.replace(gs,e)}function Yg(e){return Ug.replace(gs,e)}function Qc(e,t){return t.map(r=>r.replace(gs,e))}var Uc=(()=>{let t=class t{constructor(n,s,c,l,a,i,o,d=null){this.eventManager=n,this.sharedStylesHost=s,this.appId=c,this.removeStylesOnCompDestroy=l,this.doc=a,this.platformId=i,this.ngZone=o,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=as(i),this.defaultRenderer=new In(n,a,o,this.platformIsServer)}createRenderer(n,s){if(!n||!s)return this.defaultRenderer;this.platformIsServer&&s.encapsulation===Ke.ShadowDom&&(s=pt(Xe({},s),{encapsulation:Ke.Emulated}));let c=this.getOrCreateRenderer(n,s);return c instanceof Qr?c.applyToHost(n):c instanceof Mn&&c.applyStyles(),c}getOrCreateRenderer(n,s){let c=this.rendererByCompId,l=c.get(s.id);if(!l){let a=this.doc,i=this.ngZone,o=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(s.encapsulation){case Ke.Emulated:l=new Qr(o,d,s,this.appId,u,a,i,f);break;case Ke.ShadowDom:return new ps(o,d,n,s,a,i,this.nonce,f);default:l=new Mn(o,d,s,u,a,i,f);break}c.set(s.id,l)}return l}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(s){return new(s||t)(re(Kc),re(qc),re(Nr),re(Kg),re(ht),re(Yt),re(ue),re(Oo))},t.\u0275prov=de({token:t,factory:t.\u0275fac});let e=t;return e})(),In=class{constructor(t,r,n,s){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=s,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(cs[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(zc(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(zc(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new ne(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,s){if(s){r=s+":"+r;let c=cs[s];c?t.setAttributeNS(c,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){let s=cs[n];s?t.removeAttributeNS(s,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,s){s&(tt.DashCase|tt.Important)?t.style.setProperty(r,n,s&tt.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&tt.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t!=null&&(t[r]=n)}setValue(t,r){t.nodeValue=r}listen(t,r,n){if(typeof t=="string"&&(t=Kr().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function zc(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var ps=class extends In{constructor(t,r,n,s,c,l,a,i){super(t,c,l,i),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let o=Qc(s.id,s.styles);for(let d of o){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Mn=class extends In{constructor(t,r,n,s,c,l,a,i){super(t,c,l,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=s,this.styles=i?Qc(i,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Qr=class extends Mn{constructor(t,r,n,s,c,l,a,i){let o=s+"-"+n.id;super(t,r,n,c,l,a,i,o),this.contentAttr=qg(o),this.hostAttr=Yg(o)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}},Qg=(()=>{let t=class t extends Yr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,s,c){return n.addEventListener(s,c,!1),()=>this.removeEventListener(n,s,c)}removeEventListener(n,s,c){return n.removeEventListener(s,c)}};t.\u0275fac=function(s){return new(s||t)(re(ht))},t.\u0275prov=de({token:t,factory:t.\u0275fac});let e=t;return e})(),Gc=["alt","control","meta","shift"],Zg={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Xg={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Jg=(()=>{let t=class t extends Yr{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,s,c){let l=t.parseEventName(s),a=t.eventCallback(l.fullKey,c,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Kr().onAndCancel(n,l.domEventName,a))}static parseEventName(n){let s=n.toLowerCase().split("."),c=s.shift();if(s.length===0||!(c==="keydown"||c==="keyup"))return null;let l=t._normalizeKey(s.pop()),a="",i=s.indexOf("code");if(i>-1&&(s.splice(i,1),a="code."),Gc.forEach(d=>{let u=s.indexOf(d);u>-1&&(s.splice(u,1),a+=d+".")}),a+=l,s.length!=0||l.length===0)return null;let o={};return o.domEventName=c,o.fullKey=a,o}static matchEventFullKeyCode(n,s){let c=Zg[n.key]||n.key,l="";return s.indexOf("code.")>-1&&(c=n.code,l="code."),c==null||!c?!1:(c=c.toLowerCase(),c===" "?c="space":c==="."&&(c="dot"),Gc.forEach(a=>{if(a!==c){let i=Xg[a];i(n)&&(l+=a+".")}}),l+=c,l===s)}static eventCallback(n,s,c){return l=>{t.matchEventFullKeyCode(l,n)&&c.runGuarded(()=>s(l))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(s){return new(s||t)(re(ht))},t.\u0275prov=de({token:t,factory:t.\u0275fac});let e=t;return e})();function em(){ds.makeCurrent()}function tm(){return new nt}function nm(){return Pl(document),document}var rm=[{provide:Yt,useValue:Hc},{provide:Ro,useValue:em,multi:!0},{provide:ht,useFactory:nm,deps:[]}],Zc=is(Nc,"browser",rm),im=new oe(""),om=[{provide:_n,useClass:fs,deps:[]},{provide:ns,useClass:Wr,deps:[ue,Hr,_n]},{provide:Wr,useClass:Wr,deps:[ue,Hr,_n]}],sm=[{provide:Br,useValue:"root"},{provide:nt,useFactory:tm,deps:[]},{provide:hs,useClass:Qg,multi:!0,deps:[ht,ue,Yt]},{provide:hs,useClass:Jg,multi:!0,deps:[ht]},Uc,qc,Kc,{provide:gn,useExisting:Uc},{provide:Gr,useClass:Hg,deps:[]},[]],Xc=(()=>{let t=class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Nr,useValue:n.appId}]}}};t.\u0275fac=function(s){return new(s||t)(re(im,12))},t.\u0275mod=it({type:t}),t.\u0275inj=rt({providers:[...sm,...om],imports:[St,$c]});let e=t;return e})();var a1=Jr(Zr());ace.define("ace/theme/github",["require","exports","module","ace/lib/dom"],function(e,t,r){t.isDark=!1,t.cssClass="ace-github",t.cssText='.ace-github .ace_gutter {background: #e8e8e8;color: #AAA;}.ace-github {background: #fff;color: #000;}.ace-github .ace_keyword {font-weight: bold;}.ace-github .ace_string {color: #D14;}.ace-github .ace_variable.ace_class {color: teal;}.ace-github .ace_constant.ace_numeric {color: #099;}.ace-github .ace_constant.ace_buildin {color: #0086B3;}.ace-github .ace_support.ace_function {color: #0086B3;}.ace-github .ace_comment {color: #998;font-style: italic;}.ace-github .ace_variable.ace_language {color: #0086B3;}.ace-github .ace_paren {font-weight: bold;}.ace-github .ace_boolean {font-weight: bold;}.ace-github .ace_string.ace_regexp {color: #009926;font-weight: normal;}.ace-github .ace_variable.ace_instance {color: teal;}.ace-github .ace_constant.ace_language {font-weight: bold;}.ace-github .ace_cursor {color: black;}.ace-github.ace_focus .ace_marker-layer .ace_active-line {background: rgb(255, 255, 204);}.ace-github .ace_marker-layer .ace_active-line {background: rgb(245, 245, 245);}.ace-github .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-github.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-github.ace_nobold .ace_line > span {font-weight: normal !important;}.ace-github .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-github .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-github .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-github .ace_gutter-active-line {background-color : rgba(0, 0, 0, 0.07);}.ace-github .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-github .ace_invisible {color: #BFBFBF}.ace-github .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-github .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var n=e("../lib/dom");n.importCssString(t.cssText,t.cssClass)});var nu=Jr(Zr());var Ln=new oe("ACE_CONFIG"),eu=["blur","focus","copy","paste","change","changeSession"],tu=["changeCursor","changeSelection"],Jt=class{readOnly;cursorStyle;selectionStyle;mergeUndoDeltas;behavioursEnabled;highlightActiveLine;highlightSelectedWord;wrapBehavioursEnabled;copyWithEmptySelection;navigateWithinSoftTabs;autoScrollEditorIntoView;mode;wrap;tabSize;overwrite;useWorker;foldStyle;newLineMode;useSoftTabs;firstLineNumber;theme;minLines;maxLines;fontSize;fontFamily;showGutter;printMargin;scrollPastEnd;animatedScroll;showInvisibles;fadeFoldWidgets;showLineNumbers;showFoldWidgets;showPrintMargin;fixedWidthGutter;printMarginColumn;displayIndentGuides;highlightGutterLine;hScrollBarAlwaysVisible;vScrollBarAlwaysVisible;dragDelay;dragEnabled;scrollSpeed;focusTimeout;tooltipFollowsMouse;enableBasicAutocompletion;enableLiveAutocompletion;enableSnippets;enableEmmet;useElasticTabstops;constructor(t={}){this.assign(t)}assign(t={},r){r=r||this;for(let n in t)t[n]&&!Array.isArray(t[n])&&typeof t[n]=="object"?(r[n]={},this.assign(t[n],r[n])):r[n]=t[n]}};var lt=(()=>{class e{zone;elementRef;differs;defaults;instance=null;instanceEventListeners=[];selectionEventListeners=[];configDiff=null;disabled=!1;config;blur=new se;focus=new se;copy=new se;paste=new se;change=new se;changeCursor=new se;changeSession=new se;changeSelection=new se;constructor(r,n,s,c){this.zone=r,this.elementRef=n,this.differs=s,this.defaults=c}ngOnInit(){let r=new Jt(this.defaults);r.assign(this.config),this.disabled?(r.readOnly=!0,r.highlightActiveLine=!1):r.highlightActiveLine!==!1&&(r.highlightActiveLine=!0),r.mode="ace/mode/"+(r.mode||"text"),r.theme="ace/theme/"+(r.theme||"github"),this.zone.runOutsideAngular(()=>{this.instance=nu.edit(this.elementRef.nativeElement),this.instance.$blockScrolling=1/0,this.instance.setOptions(r)}),eu.forEach(n=>{if(this.instance){let s=(...c)=>{c.length===1&&(c=c[0]),this[n]&&this.zone.run(()=>{this[n].observers.length&&this[n].emit(c)})};this.instance.on(n,s),this.instanceEventListeners.push({eventName:n,callback:s})}}),tu.forEach(n=>{if(this.instance){let s=(...c)=>{c.length===1&&(c=c[0]),this[n]&&this[n].observers.length&&this[n].emit(c)};this.instance.selection.on(n,s),this.selectionEventListeners.push({eventName:n,callback:s})}}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{}))}ngDoCheck(){this.configDiff&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnDestroy(){this.instance&&(this.instance.isFocused()&&this.blur.emit(),this.instanceEventListeners.forEach(r=>{this.instance.off(r.eventName,r.callback)}),this.instanceEventListeners=[],this.selectionEventListeners.forEach(r=>{this.instance.selection.off(r.eventName,r.callback)}),this.selectionEventListeners=[],delete this.instance,this.instance=null)}ngOnChanges(r){r.disabled&&r.disabled.currentValue!==r.disabled.previousValue&&this.zone.runOutsideAngular(()=>{if(this.instance){let n=new Jt(this.defaults);n.assign(this.config),this.instance.clearSelection();let s=n.highlightActiveLine!==!1;this.instance.setHighlightActiveLine(this.disabled?!1:s),this.instance.setReadOnly(this.disabled?!0:n.readOnly||!1)}})}ace(){return this.instance}clear(){this.instance&&(this.instance.setValue(""),this.instance.clearSelection())}getValue(){if(this.instance)return this.instance.getValue()}setValue(r,n){this.instance&&this.instance.setValue(r||"",n)}static \u0275fac=function(n){return new(n||e)(at(ue),at(dt),at($r),at(Ln,8))};static \u0275dir=Ir({type:e,selectors:[["","ace",""]],inputs:{disabled:"disabled",config:["ace","config"]},outputs:{blur:"blur",focus:"focus",copy:"copy",paste:"paste",change:"change",changeCursor:"changeCursor",changeSession:"changeSession",changeSelection:"changeSelection"},exportAs:["ngxAce"],features:[Lr]})}return e})();var Rn=(()=>{class e{content="";get value(){return this.content}set value(r){this.setContent(r)}disabled=!1;mode="";theme="";config;useAceClass=!0;blur=new se;focus=new se;copy=new se;paste=new se;change=new se;valueChange=new se;changeCursor=new se;changeSession=new se;changeSelection=new se;directiveRef;constructor(){}ngAfterViewInit(){this.content!=null&&this.setContent(this.content,!0)}setContent(r,n){(n||r!==this.content)&&(this.directiveRef&&this.directiveRef.setValue(r,1),this.content=r)}getConfig(){return this.config=this.config||{},this.config.mode=this.mode||this.config.mode,this.config.theme=this.theme||this.config.theme,this.config}onContentChange(r){this.directiveRef&&(this.change.emit(r),this.content=this.directiveRef.getValue()||"",this.valueChange.emit(this.value))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Tr({type:e,selectors:[["ace"]],viewQuery:function(n,s){if(n&1&&Sn(lt,7),n&2){let c;kn(c=Fn())&&(s.directiveRef=c.first)}},hostVars:2,hostBindings:function(n,s){n&2&&Qo("ace",s.useAceClass)},inputs:{value:"value",disabled:"disabled",mode:"mode",theme:"theme",config:"config",useAceClass:"useAceClass"},outputs:{blur:"blur",focus:"focus",copy:"copy",paste:"paste",change:"change",valueChange:"valueChange",changeCursor:"changeCursor",changeSession:"changeSession",changeSelection:"changeSelection"},exportAs:["ngxAce"],decls:1,vars:2,consts:[[3,"ace","disabled","blur","focus","copy","paste","change","changeCursor","changeSession","changeSelection"]],template:function(n,s){n&1&&(pe(0,"div",0),Me("blur",function(l){return s.blur.emit(l)})("focus",function(l){return s.focus.emit(l)})("copy",function(l){return s.copy.emit(l)})("paste",function(l){return s.paste.emit(l)})("change",function(l){return s.onContentChange(l)})("changeCursor",function(l){return s.changeCursor.emit(l)})("changeSession",function(l){return s.changeSession.emit(l)})("changeSelection",function(l){return s.changeSelection.emit(l)}),ve()),n&2&&ft("ace",s.getConfig())("disabled",s.disabled)},dependencies:[lt],styles:[`.ace,.ace>.ace_editor{display:block;width:100%;height:100%}.ace.flex{display:flex;flex-direction:inherit;align-items:inherit;min-width:0;min-height:0;-webkit-box-direction:inherit;-webkit-box-orient:inherit}.ace.flex>.ace_editor{flex:1 1 auto;min-width:0;min-height:0;-webkit-box-flex:1} -`],encapsulation:2})}return e})();var ms=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=it({type:e});static \u0275inj=rt({imports:[St,St]})}return e})();var _1=Jr(Zr());ace.define("ace/theme/clouds",["require","exports","module","ace/lib/dom"],function(e,t,r){t.isDark=!1,t.cssClass="ace-clouds",t.cssText='.ace-clouds .ace_gutter {background: #ebebeb;color: #333}.ace-clouds .ace_print-margin {width: 1px;background: #e8e8e8}.ace-clouds {background-color: #FFFFFF;color: #000000}.ace-clouds .ace_cursor {color: #000000}.ace-clouds .ace_marker-layer .ace_selection {background: #BDD5FC}.ace-clouds.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-clouds .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-clouds .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #BFBFBF}.ace-clouds .ace_marker-layer .ace_active-line {background: #FFFBD1}.ace-clouds .ace_gutter-active-line {background-color : #dcdcdc}.ace-clouds .ace_marker-layer .ace_selected-word {border: 1px solid #BDD5FC}.ace-clouds .ace_invisible {color: #BFBFBF}.ace-clouds .ace_keyword,.ace-clouds .ace_meta,.ace-clouds .ace_support.ace_constant.ace_property-value {color: #AF956F}.ace-clouds .ace_keyword.ace_operator {color: #484848}.ace-clouds .ace_keyword.ace_other.ace_unit {color: #96DC5F}.ace-clouds .ace_constant.ace_language {color: #39946A}.ace-clouds .ace_constant.ace_numeric {color: #46A609}.ace-clouds .ace_constant.ace_character.ace_entity {color: #BF78CC}.ace-clouds .ace_invalid {background-color: #FF002A}.ace-clouds .ace_fold {background-color: #AF956F;border-color: #000000}.ace-clouds .ace_storage,.ace-clouds .ace_support.ace_class,.ace-clouds .ace_support.ace_function,.ace-clouds .ace_support.ace_other,.ace-clouds .ace_support.ace_type {color: #C52727}.ace-clouds .ace_string {color: #5D90CD}.ace-clouds .ace_comment {color: #BCC8BA}.ace-clouds .ace_entity.ace_name.ace_tag,.ace-clouds .ace_entity.ace_other.ace_attribute-name {color: #606060}.ace-clouds .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y}';var n=e("../lib/dom");n.importCssString(t.cssText,t.cssClass)});ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("./text_highlight_rules").TextHighlightRules,c=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},c.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};n.inherits(c,s),c.getTagRule=function(l){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},c.getStartRule=function(l){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:l}},c.getEndRule=function(l){return{token:"comment.doc",regex:"\\*\\/",next:l}},t.DocCommentHighlightRules=c});ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("./doc_comment_highlight_rules").DocCommentHighlightRules,c=e("./text_highlight_rules").TextHighlightRules,l="[a-zA-Z\\$_\xA1-\uFFFF][a-zA-Z\\d\\$_\xA1-\uFFFF]*",a=function(d){var u=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),f="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",h="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),o("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+l+")(\\.)(prototype)(\\.)("+l+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+l+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+f+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:u,regex:l},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:l},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),o("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:l},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:h},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:h},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!d||!d.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(g,b,x){if(this.next=g=="{"?this.nextState:"",g=="{"&&x.length)x.unshift("start",b);else if(g=="}"&&x.length&&(x.shift(),this.next=x.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return g=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:h},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!d||d.jsx!=!1)&&i.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};n.inherits(a,c);function i(){var d=l.replace("\\d","\\d\\-"),u={onMatch:function(h,g,b){var x=h.charAt(1)=="/"?2:1;return x==1?(g!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):x==2&&g==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:h.slice(0,x)},{type:"meta.tag.tag-name.xml",value:h.substr(x)}]},regex:"",onMatch:function(h,g,b){return g==b[0]&&b.shift(),h.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:h}]},nextState:"jsx"},f,o("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:d},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},u],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function o(d){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:d||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:d||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}t.JavaScriptHighlightRules=a});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,r){"use strict";var n=e("../range").Range,s=function(){};(function(){this.checkOutdent=function(c,l){return/^\s+$/.test(c)?/^\s*\}/.test(l):!1},this.autoOutdent=function(c,l){var a=c.getLine(l),i=a.match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,d=c.findMatchingBracket({row:l,column:o});if(!d||d.row==l)return 0;var u=this.$getIndent(c.getLine(d.row));c.replace(new n(l,0,l,o-1),u)},this.$getIndent=function(c){return c.match(/^\s*/)[0]}}).call(s.prototype),t.MatchingBraceOutdent=s});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,r){"use strict";var n=e("../../lib/oop"),s=e("../../range").Range,c=e("./fold_mode").FoldMode,l=t.FoldMode=function(a){a&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+a.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+a.end)))};n.inherits(l,c),(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(a,i,o){var d=a.getLine(o);if(this.singleLineBlockCommentRe.test(d)&&!this.startRegionRe.test(d)&&!this.tripleStarBlockCommentRe.test(d))return"";var u=this._getFoldWidgetBase(a,i,o);return!u&&this.startRegionRe.test(d)?"start":u},this.getFoldWidgetRange=function(a,i,o,d){var u=a.getLine(o);if(this.startRegionRe.test(u))return this.getCommentRegionBlock(a,u,o);var g=u.match(this.foldingStartMarker);if(g){var f=g.index;if(g[1])return this.openingBracketBlock(a,g[1],o,f);var h=a.getCommentFoldRange(o,f+g[0].length,1);return h&&!h.isMultiLine()&&(d?h=this.getSectionRange(a,o):i!="all"&&(h=null)),h}if(i!=="markbegin"){var g=u.match(this.foldingStopMarker);if(g){var f=g.index+g[0].length;return g[1]?this.closingBracketBlock(a,g[1],o,f):a.getCommentFoldRange(o,f,-1)}}},this.getSectionRange=function(a,i){var o=a.getLine(i),d=o.search(/\S/),u=i,f=o.length;i=i+1;for(var h=i,g=a.getLength();++ib)break;var x=this.getFoldWidgetRange(a,"all",i);if(x){if(x.start.row<=u)break;if(x.isMultiLine())i=x.end.row;else if(d==b)break}h=i}}return new s(u,f,h,a.getLine(h).length)},this.getCommentRegionBlock=function(a,i,o){for(var d=i.search(/\s*$/),u=a.getLength(),f=o,h=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++of)return new s(f,d,x,i.length)}}).call(l.prototype)});ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("./text").Mode,c=e("./javascript_highlight_rules").JavaScriptHighlightRules,l=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,i=e("./behaviour/cstyle").CstyleBehaviour,o=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=c,this.$outdent=new l,this.$behaviour=new i,this.foldingRules=new o};n.inherits(d,s),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(u,f,h){var g=this.$getIndent(f),b=this.getTokenizer().getLineTokens(f,u),x=b.tokens,A=b.state;if(x.length&&x[x.length-1].type=="comment")return g;if(u=="start"||u=="no_regex"){var v=f.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);v&&(g+=h)}else if(u=="doc-start"){if(A=="start"||A=="no_regex")return"";var v=f.match(/^\s*(\/?)\*/);v&&(v[1]&&(g+=" "),g+="* ")}return g},this.checkOutdent=function(u,f,h){return this.$outdent.checkOutdent(f,h)},this.autoOutdent=function(u,f,h){this.$outdent.autoOutdent(f,h)},this.createWorker=function(u){var f=new a(["ace"],iu(),"JavaScriptWorker");return f.attachToDocument(u.getDocument()),f.on("annotate",function(h){u.setAnnotations(h.data)}),f.on("terminate",function(){u.clearAnnotations()}),f},this.$id="ace/mode/javascript"}).call(d.prototype),t.Mode=d});function cm(e,t){if(e&1){let r=Xo();pe(0,"ace",11),Me("blur",function(s){Qe(r);let c=Le();return Ze(c.onEditorBlur(s))})("focus",function(s){Qe(r);let c=Le();return Ze(c.onEditorFocus(s))})("valueChange",function(s){Qe(r);let c=Le();return Ze(c.onValueChange(s))})("selectionChange",function(s){Qe(r);let c=Le();return Ze(c.onSelectionChange(s))})("valueChange",function(s){Qe(r);let c=Le();return Ze(c.content=s)}),ve()}if(e&2){let r=Le();ft("config",r.config)("disabled",r.disabled)("value",r.content)}}function um(e,t){if(e&1){let r=Xo();pe(0,"div",12),Me("blur",function(s){Qe(r);let c=Le();return Ze(c.onEditorBlur(s))})("focus",function(s){Qe(r);let c=Le();return Ze(c.onEditorFocus(s))})("change",function(s){Qe(r);let c=Le();return Ze(c.onContentChange(s))})("selectionChange",function(s){Qe(r);let c=Le();return Ze(c.onSelectionChange(s))}),Re(1," Some example content "),ve()}if(e&2){let r=Le();ft("ace",r.config)("disabled",r.disabled)}}var ou=(()=>{class e{show=!0;type="component";content="Some example content";disabled=!1;config={mode:"text",theme:"github",readOnly:!1};componentRef;directiveRef;constructor(){}ngAfterViewInit(){}toggleType(){this.type=this.type==="component"?"directive":"component"}toggleMode(){this.config.mode=this.config.mode==="text"?"javascript":"text"}toggleTheme(){this.config.theme=this.config.theme==="github"?"clouds":"github"}toggleDisabled(){this.disabled=!this.disabled}toggleReadonly(){this.config.readOnly=this.config.readOnly!==!0}clearEditorContent(){this.type==="directive"&&this.directiveRef?this.directiveRef.clear():this.type==="component"&&this.componentRef&&this.componentRef.directiveRef&&this.componentRef.directiveRef.clear()}onEditorBlur(r){console.log("Editor blur:",r)}onEditorFocus(r){console.log("Editor focus:",r)}onValueChange(r){console.log("Value change:",r)}onContentChange(r){console.log("Content change:",r)}onSelectionChange(r){console.log("Selection change:",r)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Tr({type:e,selectors:[["my-app"]],viewQuery:function(n,s){if(n&1&&(Sn(Rn,5),Sn(lt,5)),n&2){let c;kn(c=Fn())&&(s.componentRef=c.first),kn(c=Fn())&&(s.directiveRef=c.first)}},decls:29,vars:5,consts:[[1,"box-container","flex-col"],[1,"app-title"],[1,"info-container"],[1,"horizontal-container","flex","content-stretch","flex-col","md:flex-row"],[1,"vertical-container","flex-1","flex-col","content-stretch",2,"min-width","0"],[1,"box-title"],[1,"action-container","flex-col","content-stretch"],[1,"action-button","flex","items-center","justify-center",3,"click"],[1,"content-container","flex","flex-col","content-stretch"],["class","flex",3,"config","disabled","value","blur","focus","valueChange","selectionChange",4,"ngIf"],["class","ace-editor flex flex-1",3,"ace","disabled","blur","focus","change","selectionChange",4,"ngIf"],[1,"flex",3,"config","disabled","value","blur","focus","valueChange","selectionChange"],[1,"ace-editor","flex","flex-1",3,"ace","disabled","blur","focus","change","selectionChange"]],template:function(n,s){n&1&&(pe(0,"div",0)(1,"div",1),Re(2,"Simple example app for the ngx-ace-wrapper"),ve(),pe(3,"div",2),Re(4," This example only shows some of the available features, to see all check Ace demos / documentation. "),ve(),pe(5,"div",3)(6,"div",4)(7,"div",5),Re(8,"Settings"),ve(),pe(9,"div",6)(10,"div",7),Me("click",function(){return s.toggleType()}),Re(11),ve(),pe(12,"div",7),Me("click",function(){return s.toggleDisabled()}),pe(13,"span"),Re(14,"Toggle disabled state"),ve()(),pe(15,"div",7),Me("click",function(){return s.toggleReadonly()}),Re(16,"Toggle read-only mode"),ve(),pe(17,"div",7),Me("click",function(){return s.toggleMode()}),Re(18),ve(),pe(19,"div",7),Me("click",function(){return s.toggleTheme()}),Re(20),ve(),pe(21,"div",7),Me("click",function(){return s.clearEditorContent()}),Re(22,"Clear the editor content"),ve()()(),pe(23,"div",4)(24,"div",5),Re(25,"Ace"),ve(),pe(26,"div",8),Zo(27,cm,1,3,"ace",9)(28,um,2,2,"div",10),ve()()()()),n&2&&(Xt(11),Dn(s.type==="component"?"Switch to directive":"Switch to component"),Xt(7),Dn(s.config.mode==="javascript"?"Change to text mode":"Change to javascript mode"),Xt(2),Dn(s.config.theme==="github"?"Change to clouds theme":"Change to github theme"),Xt(7),ft("ngIf",s.type==="component"&&s.show),Xt(1),ft("ngIf",s.type==="directive"&&s.show))},dependencies:[Wc,Rn,lt],styles:[".app-title[_ngcontent-%COMP%]{font-size:24px}.box-title[_ngcontent-%COMP%]{font-size:20px}.box-container[_ngcontent-%COMP%]{box-sizing:border-box;width:800px;max-width:90%;max-height:90%;padding:24px;margin:24px auto;border-radius:4px;color:#555;background-color:#eee;box-shadow:0 6px 20px #0000002e,0 6px 6px #00000040}.info-container[_ngcontent-%COMP%]{padding:12px 16px;line-height:24px}.action-container[_ngcontent-%COMP%]{overflow:auto;padding:16px}.content-container[_ngcontent-%COMP%]{overflow:visible}.action-container[_ngcontent-%COMP%], .content-container[_ngcontent-%COMP%]{position:relative;height:300px;min-height:0;margin:8px 16px;border-radius:4px;background-color:#fff}.action-button[_ngcontent-%COMP%]{box-sizing:border-box;width:calc(100% - 16px);min-height:35px;padding:4px 16px;margin:8px;border:1px solid #555;border-radius:4px;cursor:pointer;font-size:14px;font-weight:700;line-height:14px;text-align:center}.action-button[_ngcontent-%COMP%]:hover{color:#fff;background-color:#555}"]})}return e})();var dm={tabSize:2},su=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=it({type:e,bootstrap:[ou]});static \u0275inj=rt({providers:[{provide:Ln,useValue:dm}],imports:[ms,St,Xc]})}return e})();Zc().bootstrapModule(su); + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Yt(e,t){if(e){let r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ae=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let c of r)c.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(Ce(n))try{n()}catch(c){t=c instanceof In?c.errors:[c]}let{_finalizers:s}=this;if(s){this._finalizers=null;for(let c of s)try{us(c)}catch(l){t=t??[],l instanceof In?t=[...t,...l.errors]:t.push(l)}}if(t)throw new In(t)}}add(t){var r;if(t&&t!==this)if(this.closed)us(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}}_hasParent(t){let{_parentage:r}=this;return r===t||Array.isArray(r)&&r.includes(t)}_addParent(t){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}_removeParent(t){let{_parentage:r}=this;r===t?this._parentage=null:Array.isArray(r)&&Yt(r,t)}remove(t){let{_finalizers:r}=this;r&&Yt(r,t),t instanceof e&&t._removeParent(this)}};Ae.EMPTY=(()=>{let e=new Ae;return e.closed=!0,e})();var Or=Ae.EMPTY;function Mn(e){return e instanceof Ae||e&&"closed"in e&&Ce(e.remove)&&Ce(e.add)&&Ce(e.unsubscribe)}function us(e){Ce(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var At={setTimeout(e,t,...r){let{delegate:n}=At;return n?.setTimeout?n.setTimeout(e,t,...r):setTimeout(e,t,...r)},clearTimeout(e){let{delegate:t}=At;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ds(e){At.setTimeout(()=>{let{onUnhandledError:t}=Te;if(t)t(e);else throw e})}function Br(){}var hs=$r("C",void 0,void 0);function fs(e){return $r("E",void 0,e)}function ps(e){return $r("N",e,void 0)}function $r(e,t,r){return{kind:e,value:t,error:r}}var ht=null;function xt(e){if(Te.useDeprecatedSynchronousErrorHandling){let t=!ht;if(t&&(ht={errorThrown:!1,error:null}),e(),t){let{errorThrown:r,error:n}=ht;if(ht=null,r)throw n}}else e()}function gs(e){Te.useDeprecatedSynchronousErrorHandling&&ht&&(ht.errorThrown=!0,ht.error=e)}var ft=class extends Ae{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Mn(t)&&t.add(this)):this.destination=Qc}static create(t,r,n){return new Dt(t,r,n)}next(t){this.isStopped?jr(ps(t),this):this._next(t)}error(t){this.isStopped?jr(fs(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?jr(hs,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Kc=Function.prototype.bind;function Pr(e,t){return Kc.call(e,t)}var Vr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:r}=this;if(r.next)try{r.next(t)}catch(n){Ln(n)}}error(t){let{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){Ln(n)}else Ln(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){Ln(r)}}},Dt=class extends ft{constructor(t,r,n){super();let s;if(Ce(t)||!t)s={next:t??void 0,error:r??void 0,complete:n??void 0};else{let c;this&&Te.useDeprecatedNextContext?(c=Object.create(t),c.unsubscribe=()=>this.unsubscribe(),s={next:t.next&&Pr(t.next,c),error:t.error&&Pr(t.error,c),complete:t.complete&&Pr(t.complete,c)}):s=t}this.destination=new Vr(s)}};function Ln(e){Te.useDeprecatedSynchronousErrorHandling?gs(e):ds(e)}function Yc(e){throw e}function jr(e,t){let{onStoppedNotification:r}=Te;r&&At.setTimeout(()=>r(e,t))}var Qc={closed:!0,next:Br,error:Yc,complete:Br};var ms=typeof Symbol=="function"&&Symbol.observable||"@@observable";function vs(e){return e}function ys(e){return e.length===0?vs:e.length===1?e[0]:function(r){return e.reduce((n,s)=>s(n),r)}}var Wr=(()=>{class e{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new e;return n.source=this,n.operator=r,n}subscribe(r,n,s){let c=Xc(r)?r:new Dt(r,n,s);return xt(()=>{let{operator:l,source:a}=this;c.add(l?l.call(c,a):a?this._subscribe(c):this._trySubscribe(c))}),c}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=bs(n),new n((s,c)=>{let l=new Dt({next:a=>{try{r(a)}catch(i){c(i),l.unsubscribe()}},error:c,complete:s});this.subscribe(l)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[ms](){return this}pipe(...r){return ys(r)(this)}toPromise(r){return r=bs(r),new r((n,s)=>{let c;this.subscribe(l=>c=l,l=>s(l),()=>n(c))})}}return e.create=t=>new e(t),e})();function bs(e){var t;return(t=e??Te.Promise)!==null&&t!==void 0?t:Promise}function Zc(e){return e&&Ce(e.next)&&Ce(e.error)&&Ce(e.complete)}function Xc(e){return e&&e instanceof ft||Zc(e)&&Mn(e)}function Jc(e){return Ce(e?.lift)}function ws(e){return t=>{if(Jc(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Es(e,t,r,n,s){return new Hr(e,t,r,n,s)}var Hr=class extends ft{constructor(t,r,n,s,c,l){super(t),this.onFinalize=c,this.shouldUnsubscribe=l,this._next=r?function(a){try{r(a)}catch(i){t.error(i)}}:super._next,this._error=s?function(a){try{s(a)}catch(i){t.error(i)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Cs=Tn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ot=(()=>{class e extends Wr{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Rn(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Cs}next(r){xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:s,observers:c}=this;return n||s?Or:(this.currentObservers=null,c.push(r),new Ae(()=>{this.currentObservers=null,Yt(c,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:s,isStopped:c}=this;n?r.error(s):c&&r.complete()}asObservable(){let r=new Wr;return r.source=this,r}}return e.create=(t,r)=>new Rn(t,r),e})(),Rn=class extends ot{constructor(t,r){super(),this.destination=t,this.source=r}next(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)}error(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)}complete(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)}_subscribe(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:Or}};var Qt=class extends ot{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let r=super._subscribe(t);return!r.closed&&t.next(this._value),r}getValue(){let{hasError:t,thrownError:r,_value:n}=this;if(t)throw r;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}};function Ur(e,t){return ws((r,n)=>{let s=0;r.subscribe(Es(n,c=>{n.next(e.call(t,c,s++))}))})}var eu="https://g.co/ng/security#xss",te=class extends Error{constructor(t,r){super(Yi(t,r)),this.code=t}};function Yi(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function sr(e){return{toString:e}.toString()}var Nn="__parameters__";function tu(e){return function(...r){if(e){let n=e(...r);for(let s in n)this[s]=n[s]}}}function sa(e,t,r){return sr(()=>{let n=tu(t);function s(...c){if(this instanceof s)return n.apply(this,c),this;let l=new s(...c);return a.annotation=l,a;function a(i,o,d){let u=i.hasOwnProperty(Nn)?i[Nn]:Object.defineProperty(i,Nn,{value:[]})[Nn];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(l),i}}return r&&(s.prototype=Object.create(r.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}var xe=globalThis;function ae(e){for(let t in e)if(e[t]===ae)return t;throw Error("Could not find renamed property on target object.")}function we(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(we).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(` +`);return r===-1?t:t.substring(0,r)}function As(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var nu=ae({__forward_ref__:ae});function aa(e){return e.__forward_ref__=aa,e.toString=function(){return we(this())},e}function Me(e){return ru(e)?e():e}function ru(e){return typeof e=="function"&&e.hasOwnProperty(nu)&&e.__forward_ref__===aa}function ce(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Je(e){return{providers:e.providers||[],imports:e.imports||[]}}function Qi(e){return xs(e,la)||xs(e,ca)}function xs(e,t){return e.hasOwnProperty(t)?e[t]:null}function iu(e){let t=e&&(e[la]||e[ca]);return t||null}function Ds(e){return e&&(e.hasOwnProperty(ks)||e.hasOwnProperty(ou))?e[ks]:null}var la=ae({\u0275prov:ae}),ks=ae({\u0275inj:ae}),ca=ae({ngInjectableDef:ae}),ou=ae({ngInjectorDef:ae}),oe=class{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=ce({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ua(e){return e&&!!e.\u0275providers}var su=ae({\u0275cmp:ae}),au=ae({\u0275dir:ae}),lu=ae({\u0275pipe:ae}),cu=ae({\u0275mod:ae}),Ss=ae({\u0275fac:ae}),Zt=ae({__NG_ELEMENT_ID__:ae}),Fs=ae({__NG_ENV_ID__:ae});function da(e){return typeof e=="string"?e:e==null?"":String(e)}function uu(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():da(e)}function du(e,t){let r=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new te(-200,e)}function Zi(e,t){throw new te(-201,!1)}var ne=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ne||{}),ri;function ha(){return ri}function $e(e){let t=ri;return ri=e,t}function fa(e,t,r){let n=Qi(e);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&ne.Optional)return null;if(t!==void 0)return t;Zi(e,"Injector")}var hu={},Jt=hu,ii="__NG_DI_FLAG__",Un="ngTempTokenPath",fu="ngTokenPath",pu=/\n/gm,gu="\u0275",_s="__source",Tt;function mu(){return Tt}function kt(e){let t=Tt;return Tt=e,t}function vu(e,t=ne.Default){if(Tt===void 0)throw new te(-203,!1);return Tt===null?fa(e,void 0,t):Tt.get(e,t&ne.Optional?null:void 0,t)}function re(e,t=ne.Default){return(ha()||vu)(Me(e),t)}function he(e,t=ne.Default){return re(e,ar(t))}function ar(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function oi(e){let t=[];for(let r=0;r ");else if(typeof t=="object"){let c=[];for(let l in t)if(t.hasOwnProperty(l)){let a=t[l];c.push(l+":"+(typeof a=="string"?JSON.stringify(a):we(a)))}s=`{${c.join(", ")}}`}return`${r}${n?"("+n+")":""}[${s}]: ${e.replace(pu,` + `)}`}var ga=pa(sa("Optional"),8);var Eu=pa(sa("SkipSelf"),4);function en(e,t){let r=e.hasOwnProperty(Ss);return r?e[Ss]:null}function Cu(e,t,r){if(e.length!==t.length)return!1;for(let n=0;nArray.isArray(r)?Xi(r,t):t(r))}function ma(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function zn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function xu(e,t,r,n){let s=e.length;if(s==t)e.push(r,n);else if(s===1)e.push(n,e[0]),e[0]=r;else{for(s--,e.push(e[s-1],e[s]);s>t;){let c=s-2;e[s]=e[c],s--}e[t]=r,e[t+1]=n}}function Du(e,t,r){let n=hn(e,t);return n>=0?e[n|1]=r:(n=~n,xu(e,n,t,r)),n}function zr(e,t){let r=hn(e,t);if(r>=0)return e[r|1]}function hn(e,t){return ku(e,t,1)}function ku(e,t,r){let n=0,s=e.length>>r;for(;s!==n;){let c=n+(s-n>>1),l=e[c<t?s=c:n=c+1}return~(s<t){l=c-1;break}}}for(;c-1){let c;for(;++sc?u="":u=s[d+1].toLowerCase(),n&2&&o!==u){if(Ie(n))return!1;l=!0}}}}return Ie(n)||l}function Ie(e){return(e&1)===0}function Lu(e,t,r,n){if(t===null)return-1;let s=0;if(n||!r){let c=!1;for(;s-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?s+="."+l:n&4&&(s+=" "+l);else s!==""&&!Ie(l)&&(t+=Is(c,s),s=""),n=l,c=c||!Ie(n);r++}return s!==""&&(t+=Is(c,s)),t}function $u(e){return e.map(Bu).join(",")}function Pu(e){let t=[],r=[],n=1,s=2;for(;n{let t=Aa(e),r=dt(qe({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ba.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ve.Emulated,styles:e.styles||Le,_:null,schemas:e.schemas||null,tView:null,id:""});xa(r);let n=e.dependencies;return r.directiveDefs=Ls(n,!1),r.pipeDefs=Ls(n,!0),r.id=Uu(r),r})}function ju(e){return Lt(e)||Ea(e)}function Vu(e){return e!==null}function et(e){return sr(()=>({type:e.type,bootstrap:e.bootstrap||Le,declarations:e.declarations||Le,imports:e.imports||Le,exports:e.exports||Le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ms(e,t){if(e==null)return tn;let r={};for(let n in e)if(e.hasOwnProperty(n)){let s=e[n],c,l,a=Ke.None;Array.isArray(s)?(a=s[0],c=s[1],l=s[2]??c):(c=s,l=s),t?(r[c]=a!==Ke.None?[n,a]:n,t[c]=l):r[c]=n}return r}function cr(e){return sr(()=>{let t=Aa(e);return xa(t),t})}function Lt(e){return e[su]||null}function Ea(e){return e[au]||null}function Ca(e){return e[lu]||null}function Wu(e){let t=Lt(e)||Ea(e)||Ca(e);return t!==null?t.standalone:!1}function Hu(e,t){let r=e[cu]||null;if(!r&&t===!0)throw new Error(`Type ${we(e)} does not have '\u0275mod' property.`);return r}function Aa(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||tn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ms(e.inputs,t),outputs:Ms(e.outputs),debugInfo:null}}function xa(e){e.features?.forEach(t=>t(e))}function Ls(e,t){if(!e)return null;let r=t?Ca:ju;return()=>(typeof e=="function"?e():e).map(n=>r(n)).filter(Vu)}function Uu(e){let t=0,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let s of r)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function zu(...e){return{\u0275providers:Gu(!0,e),\u0275fromNgModule:!0}}function Gu(e,...t){let r=[],n=new Set,s,c=l=>{r.push(l)};return Xi(t,l=>{let a=l;ai(a,c,[],n)&&(s||=[],s.push(a))}),s!==void 0&&Da(s,c),r}function Da(e,t){for(let r=0;r{t(c,n)})}}function ai(e,t,r,n){if(e=Me(e),!e)return!1;let s=null,c=Ds(e),l=!c&&Lt(e);if(!c&&!l){let i=e.ngModule;if(c=Ds(i),c)s=i;else return!1}else{if(l&&!l.standalone)return!1;s=e}let a=n.has(s);if(l){if(a)return!1;if(n.add(s),l.dependencies){let i=typeof l.dependencies=="function"?l.dependencies():l.dependencies;for(let o of i)ai(o,t,r,n)}}else if(c){if(c.imports!=null&&!a){n.add(s);let o;try{Xi(c.imports,d=>{ai(d,t,r,n)&&(o||=[],o.push(d))})}finally{}o!==void 0&&Da(o,t)}if(!a){let o=en(s)||(()=>new s);t({provide:s,useFactory:o,deps:Le},s),t({provide:ya,useValue:s,multi:!0},s),t({provide:nn,useValue:()=>re(s),multi:!0},s)}let i=c.providers;if(i!=null&&!a){let o=e;to(i,d=>{t(d,o)})}}else return!1;return s!==e&&e.providers!==void 0}function to(e,t){for(let r of e)ua(r)&&(r=r.\u0275providers),Array.isArray(r)?to(r,t):t(r)}var qu=ae({provide:String,useValue:ae});function ka(e){return e!==null&&typeof e=="object"&&qu in e}function Ku(e){return!!(e&&e.useExisting)}function Yu(e){return!!(e&&e.useFactory)}function li(e){return typeof e=="function"}var ur=new oe(""),$n={},Qu={},Gr;function Sa(){return Gr===void 0&&(Gr=new Gn),Gr}var gt=class{},ci=class extends gt{get destroyed(){return this._destroyed}constructor(t,r,n,s){super(),this.parent=r,this.source=n,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,di(t,l=>this.processProvider(l)),this.records.set(va,St(void 0,this)),s.has("environment")&&this.records.set(gt,St(void 0,this));let c=this.records.get(ur);c!=null&&typeof c.value=="string"&&this.scopes.add(c.value),this.injectorDefTypes=new Set(this.get(ya,Le,ne.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=ie(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ie(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let r=kt(this),n=$e(void 0),s;try{return t()}finally{kt(r),$e(n)}}get(t,r=Jt,n=ne.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Fs))return t[Fs](this);n=ar(n);let s,c=kt(this),l=$e(void 0);try{if(!(n&ne.SkipSelf)){let i=this.records.get(t);if(i===void 0){let o=nd(t)&&Qi(t);o&&this.injectableDefInScope(o)?i=St(ui(t),$n):i=null,this.records.set(t,i)}if(i!=null)return this.hydrate(t,i)}let a=n&ne.Self?Sa():this.parent;return r=n&ne.Optional&&r===Jt?null:r,a.get(t,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Un]=a[Un]||[]).unshift(we(t)),c)throw a;return bu(a,t,"R3InjectorError",this.source)}else throw a}finally{$e(l),kt(c)}}resolveInjectorInitializers(){let t=ie(null),r=kt(this),n=$e(void 0),s;try{let c=this.get(nn,Le,ne.Self);for(let l of c)l()}finally{kt(r),$e(n),ie(t)}}toString(){let t=[],r=this.records;for(let n of r.keys())t.push(we(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new te(205,!1)}processProvider(t){t=Me(t);let r=li(t)?t:Me(t&&t.provide),n=Xu(t);if(!li(t)&&t.multi===!0){let s=this.records.get(r);s||(s=St(void 0,$n,!0),s.factory=()=>oi(s.multi),this.records.set(r,s)),r=t,s.multi.push(t)}this.records.set(r,n)}hydrate(t,r){let n=ie(null);try{return r.value===$n&&(r.value=Qu,r.value=r.factory()),typeof r.value=="object"&&r.value&&td(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{ie(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let r=Me(t.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){let r=this._onDestroyHooks.indexOf(t);r!==-1&&this._onDestroyHooks.splice(r,1)}};function ui(e){let t=Qi(e),r=t!==null?t.factory:en(e);if(r!==null)return r;if(e instanceof oe)throw new te(204,!1);if(e instanceof Function)return Zu(e);throw new te(204,!1)}function Zu(e){if(e.length>0)throw new te(204,!1);let r=iu(e);return r!==null?()=>r.factory(e):()=>new e}function Xu(e){if(ka(e))return St(void 0,e.useValue);{let t=Ju(e);return St(t,$n)}}function Ju(e,t,r){let n;if(li(e)){let s=Me(e);return en(s)||ui(s)}else if(ka(e))n=()=>Me(e.useValue);else if(Yu(e))n=()=>e.useFactory(...oi(e.deps||[]));else if(Ku(e))n=()=>re(Me(e.useExisting));else{let s=Me(e&&(e.useClass||e.provide));if(ed(e))n=()=>new s(...oi(e.deps));else return en(s)||ui(s)}return n}function St(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function ed(e){return!!e.deps}function td(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function nd(e){return typeof e=="function"||typeof e=="object"&&e instanceof oe}function di(e,t){for(let r of e)Array.isArray(r)?di(r,t):r&&ua(r)?di(r.\u0275providers,t):t(r)}function rd(){return ha()!==void 0||mu()!=null}function id(e){let t=xe.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function od(e){return typeof e=="function"}var tt=0,J=1,Q=2,ge=3,Re=4,Oe=5,qn=6,rn=7,Ne=8,Rt=9,We=10,me=11,on=12,Rs=13,jt=14,Ye=15,fn=16,Ft=17,Qe=18,dr=19,Fa=20,st=21,qr=22,mt=23,at=25,_a=1;var vt=7,Kn=8,Nt=9,De=10,no=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(no||{});function It(e){return Array.isArray(e)&&typeof e[_a]=="object"}function nt(e){return Array.isArray(e)&&e[_a]===!0}function Ta(e){return(e.flags&4)!==0}function ro(e){return e.componentOffset>-1}function io(e){return(e.flags&1)===1}function pn(e){return!!e.template}function sd(e){return(e[Q]&512)!==0}var hi=class{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Ia(e,t,r,n){t!==null?t.applyValueToInputSignal(t,n):e[r]=n}function hr(){return Ma}function Ma(e){return e.type.prototype.ngOnChanges&&(e.setInput=ld),ad}hr.ngInherit=!0;function ad(){let e=Ra(this),t=e?.current;if(t){let r=e.previous;if(r===tn)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function ld(e,t,r,n,s){let c=this.declaredInputs[n],l=Ra(e)||cd(e,{previous:tn,current:null}),a=l.current||(l.current={}),i=l.previous,o=i[c];a[c]=new hi(o&&o.currentValue,r,i===tn),Ia(e,t,s,r)}var La="__ngSimpleChanges__";function Ra(e){return e[La]||null}function cd(e,t){return e[La]=t}var Ns=null;var Pe=function(e,t,r){Ns?.(e,t,r)},ud="svg",dd="math",hd=!1;function fd(){return hd}function He(e){for(;Array.isArray(e);)e=e[tt];return e}function Na(e,t){return He(t[e])}function Be(e,t){return He(t[e.index])}function Oa(e,t){return e.data[t]}function Vt(e,t){let r=t[e];return It(r)?r:r[tt]}function pd(e){return(e[Q]&4)===4}function oo(e){return(e[Q]&128)===128}function gd(e){return nt(e[ge])}function Yn(e,t){return t==null?null:e[t]}function Ba(e){e[Ft]=0}function md(e){e[Q]&1024||(e[Q]|=1024,oo(e)&&sn(e))}function vd(e,t){for(;e>0;)t=t[jt],e--;return t}function so(e){return!!(e[Q]&9216||e[mt]?.dirty)}function fi(e){e[We].changeDetectionScheduler?.notify(1),so(e)?sn(e):e[Q]&64&&(fd()?(e[Q]|=1024,sn(e)):e[We].changeDetectionScheduler?.notify())}function sn(e){e[We].changeDetectionScheduler?.notify();let t=an(e);for(;t!==null&&!(t[Q]&8192||(t[Q]|=8192,!oo(t)));)t=an(t)}function $a(e,t){if((e[Q]&256)===256)throw new te(911,!1);e[st]===null&&(e[st]=[]),e[st].push(t)}function yd(e,t){if(e[st]===null)return;let r=e[st].indexOf(t);r!==-1&&e[st].splice(r,1)}function an(e){let t=e[ge];return nt(t)?t[ge]:t}var ee={lFrame:za(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function bd(){return ee.lFrame.elementDepthCount}function wd(){ee.lFrame.elementDepthCount++}function Ed(){ee.lFrame.elementDepthCount--}function Pa(){return ee.bindingsEnabled}function Cd(){return ee.skipHydrationRootTNode!==null}function Ad(e){return ee.skipHydrationRootTNode===e}function xd(){ee.skipHydrationRootTNode=null}function le(){return ee.lFrame.lView}function ke(){return ee.lFrame.tView}function Ue(e){return ee.lFrame.contextLView=e,e[Ne]}function ze(e){return ee.lFrame.contextLView=null,e}function Ge(){let e=ja();for(;e!==null&&e.type===64;)e=e.parent;return e}function ja(){return ee.lFrame.currentTNode}function Dd(){let e=ee.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function gn(e,t){let r=ee.lFrame;r.currentTNode=e,r.isParent=t}function Va(){return ee.lFrame.isParent}function kd(){ee.lFrame.isParent=!1}function Sd(e){return ee.lFrame.bindingIndex=e}function ao(){return ee.lFrame.bindingIndex++}function Fd(e){let t=ee.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function _d(){return ee.lFrame.inI18n}function Td(e,t){let r=ee.lFrame;r.bindingIndex=r.bindingRootIndex=e,pi(t)}function Id(){return ee.lFrame.currentDirectiveIndex}function pi(e){ee.lFrame.currentDirectiveIndex=e}function Md(e){let t=ee.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Wa(){return ee.lFrame.currentQueryIndex}function lo(e){ee.lFrame.currentQueryIndex=e}function Ld(e){let t=e[J];return t.type===2?t.declTNode:t.type===1?e[Oe]:null}function Ha(e,t,r){if(r&ne.SkipSelf){let s=t,c=e;for(;s=s.parent,s===null&&!(r&ne.Host);)if(s=Ld(c),s===null||(c=c[jt],s.type&10))break;if(s===null)return!1;t=s,e=c}let n=ee.lFrame=Ua();return n.currentTNode=t,n.lView=e,!0}function co(e){let t=Ua(),r=e[J];ee.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Ua(){let e=ee.lFrame,t=e===null?null:e.child;return t===null?za(e):t}function za(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Ga(){let e=ee.lFrame;return ee.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var qa=Ga;function uo(){let e=Ga();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Rd(e){return(ee.lFrame.contextLView=vd(e,ee.lFrame.contextLView))[Ne]}function Wt(){return ee.lFrame.selectedIndex}function yt(e){ee.lFrame.selectedIndex=e}function Ka(){let e=ee.lFrame;return Oa(e.tView,e.selectedIndex)}function Nd(){return ee.lFrame.currentNamespace}var Ya=!0;function ho(){return Ya}function fo(e){Ya=e}function Od(e,t,r){let{ngOnChanges:n,ngOnInit:s,ngDoCheck:c}=t.type.prototype;if(n){let l=Ma(t);(r.preOrderHooks??=[]).push(e,l),(r.preOrderCheckHooks??=[]).push(e,l)}s&&(r.preOrderHooks??=[]).push(0-e,s),c&&((r.preOrderHooks??=[]).push(e,c),(r.preOrderCheckHooks??=[]).push(e,c))}function po(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r=n)break}else t[i]<0&&(e[Ft]+=65536),(a>14>16&&(e[Q]&3)===t&&(e[Q]+=16384,Os(a,c)):Os(a,c)}var Mt=-1,ln=class{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function $d(e){return e instanceof ln}function Pd(e){return(e.flags&8)!==0}function jd(e){return(e.flags&16)!==0}function Za(e){return e!==Mt}function Qn(e){return e&32767}function Vd(e){return e>>16}function Zn(e,t){let r=Vd(e),n=t;for(;r>0;)n=n[jt],r--;return n}var gi=!0;function Bs(e){let t=gi;return gi=e,t}var Wd=256,Xa=Wd-1,Ja=5,Hd=0,je={};function Ud(e,t,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Zt)&&(n=r[Zt]),n==null&&(n=r[Zt]=Hd++);let s=n&Xa,c=1<>Ja)]|=c}function el(e,t){let r=tl(e,t);if(r!==-1)return r;let n=t[J];n.firstCreatePass&&(e.injectorIndex=t.length,Yr(n.data,e),Yr(t,null),Yr(n.blueprint,null));let s=go(e,t),c=e.injectorIndex;if(Za(s)){let l=Qn(s),a=Zn(s,t),i=a[J].data;for(let o=0;o<8;o++)t[c+o]=a[l+o]|i[l+o]}return t[c+8]=s,c}function Yr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function tl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function go(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let r=0,n=null,s=t;for(;s!==null;){if(n=sl(s),n===null)return Mt;if(r++,s=s[jt],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Mt}function zd(e,t,r){Ud(e,t,r)}function nl(e,t,r){if(r&ne.Optional||e!==void 0)return e;Zi(t,"NodeInjector")}function rl(e,t,r,n){if(r&ne.Optional&&n===void 0&&(n=null),!(r&(ne.Self|ne.Host))){let s=e[Rt],c=$e(void 0);try{return s?s.get(t,n,r&ne.Optional):fa(t,n,r&ne.Optional)}finally{$e(c)}}return nl(n,t,r)}function il(e,t,r,n=ne.Default,s){if(e!==null){if(t[Q]&2048&&!(n&ne.Self)){let l=Yd(e,t,r,n,je);if(l!==je)return l}let c=ol(e,t,r,n,je);if(c!==je)return c}return rl(t,r,n,s)}function ol(e,t,r,n,s){let c=qd(r);if(typeof c=="function"){if(!Ha(t,e,n))return n&ne.Host?nl(s,r,n):rl(t,r,n,s);try{let l;if(l=c(n),l==null&&!(n&ne.Optional))Zi(r);else return l}finally{qa()}}else if(typeof c=="number"){let l=null,a=tl(e,t),i=Mt,o=n&ne.Host?t[Ye][Oe]:null;for((a===-1||n&ne.SkipSelf)&&(i=a===-1?go(e,t):t[a+8],i===Mt||!Ps(n,!1)?a=-1:(l=t[J],a=Qn(i),t=Zn(i,t)));a!==-1;){let d=t[J];if($s(c,a,d.data)){let u=Gd(a,t,r,l,n,o);if(u!==je)return u}i=t[a+8],i!==Mt&&Ps(n,t[J].data[a+8]===o)&&$s(c,a,t)?(l=d,a=Qn(i),t=Zn(i,t)):a=-1}}return s}function Gd(e,t,r,n,s,c){let l=t[J],a=l.data[e+8],i=n==null?ro(a)&&gi:n!=l&&(a.type&3)!==0,o=s&ne.Host&&c===a,d=Vn(a,l,r,i,o);return d!==null?Ot(t,l,d,a):je}function Vn(e,t,r,n,s){let c=e.providerIndexes,l=t.data,a=c&1048575,i=e.directiveStart,o=e.directiveEnd,d=c>>20,u=n?a:a+d,h=s?a+d:o;for(let f=u;f=i&&g.type===r)return f}if(s){let f=l[i];if(f&&pn(f)&&f.type===r)return i}return null}function Ot(e,t,r,n){let s=e[r],c=t.data;if($d(s)){let l=s;l.resolving&&du(uu(c[r]));let a=Bs(l.canSeeViewProviders);l.resolving=!0;let i,o=l.injectImpl?$e(l.injectImpl):null,d=Ha(e,n,ne.Default);try{s=e[r]=l.factory(void 0,c,e,n),t.firstCreatePass&&r>=n.directiveStart&&Od(r,c[r],t)}finally{o!==null&&$e(o),Bs(a),l.resolving=!1,qa()}}return s}function qd(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Zt)?e[Zt]:void 0;return typeof t=="number"?t>=0?t&Xa:Kd:t}function $s(e,t,r){let n=1<>Ja)]&n)}function Ps(e,t){return!(e&ne.Self)&&!(e&ne.Host&&t)}var pt=class{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return il(this._tNode,this._lView,t,ar(n),r)}};function Kd(){return new pt(Ge(),le())}function Yd(e,t,r,n,s){let c=e,l=t;for(;c!==null&&l!==null&&l[Q]&2048&&!(l[Q]&512);){let a=ol(c,l,r,n|ne.Self,je);if(a!==je)return a;let i=c.parent;if(!i){let o=l[Fa];if(o){let d=o.get(r,je,n);if(d!==je)return d}i=sl(l),l=l[jt]}c=i}return s}function sl(e){let t=e[J],r=t.type;return r===2?t.declTNode:r===1?e[Oe]:null}function js(e,t=null,r=null,n){let s=al(e,t,r,n);return s.resolveInjectorInitializers(),s}function al(e,t=null,r=null,n,s=new Set){let c=[r||Le,zu(e)];return n=n||(typeof e=="object"?void 0:we(e)),new ci(c,t||Sa(),n||null,s)}var mn=(()=>{let t=class t{static create(n,s){if(Array.isArray(n))return js({name:""},s,n,"");{let c=n.name??"";return js({name:c},n.parent,n.providers,c)}}};t.THROW_IF_NOT_FOUND=Jt,t.NULL=new Gn,t.\u0275prov=ce({token:t,providedIn:"any",factory:()=>re(va)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var Qd="ngOriginalError";function Qr(e){return e[Qd]}var Ze=class{constructor(){this._console=console}handleError(t){let r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Qr(t);for(;r&&Qr(r);)r=Qr(r);return r||null}},ll=new oe("",{providedIn:"root",factory:()=>he(Ze).handleError.bind(void 0)}),cl=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Zd,t.__NG_ENV_ID__=n=>n;let e=t;return e})(),mi=class extends cl{constructor(t){super(),this._lView=t}onDestroy(t){return $a(this._lView,t),()=>yd(this._lView,t)}};function Zd(){return new mi(le())}function Xd(){return Ht(Ge(),le())}function Ht(e,t){return new lt(Be(e,t))}var lt=(()=>{let t=class t{constructor(n){this.nativeElement=n}};t.__NG_ELEMENT_ID__=Xd;let e=t;return e})();function Jd(e){return e instanceof lt?e.nativeElement:e}var vi=class extends ot{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,rd()&&(this.destroyRef=he(cl,{optional:!0})??void 0)}emit(t){let r=ie(null);try{super.next(t)}finally{ie(r)}}subscribe(t,r,n){let s=t,c=r||(()=>null),l=n;if(t&&typeof t=="object"){let i=t;s=i.next?.bind(i),c=i.error?.bind(i),l=i.complete?.bind(i)}this.__isAsync&&(c=Zr(c),s&&(s=Zr(s)),l&&(l=Zr(l)));let a=super.subscribe({next:s,error:c,complete:l});return t instanceof Ae&&t.add(a),a}};function Zr(e){return t=>{setTimeout(e,void 0,t)}}var se=vi;function eh(){return this._results[Symbol.iterator]()}var yi=class e{get changes(){return this._changes??=new se}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=e.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=eh)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;let n=Au(t);(this._changesDetected=!Cu(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function ul(e){return(e.flags&128)===128}var dl=new Map,th=0;function nh(){return th++}function rh(e){dl.set(e[dr],e)}function ih(e){dl.delete(e[dr])}var Vs="__ngContext__";function bt(e,t){It(t)?(e[Vs]=t[dr],rh(t)):e[Vs]=t}function hl(e){return pl(e[on])}function fl(e){return pl(e[Re])}function pl(e){for(;e!==null&&!nt(e);)e=e[Re];return e}var bi;function gl(e){bi=e}function oh(){if(bi!==void 0)return bi;if(typeof document<"u")return document;throw new te(210,!1)}var fr=new oe("",{providedIn:"root",factory:()=>sh}),sh="ng",mo=new oe(""),Ut=new oe("",{providedIn:"platform",factory:()=>"unknown"});var vo=new oe("",{providedIn:"root",factory:()=>oh().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var ah="h",lh="b";var ch=()=>null;function yo(e,t,r=!1){return ch(e,t,r)}var ml=!1,uh=new oe("",{providedIn:"root",factory:()=>ml});var wi=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${eu})`}};function bo(e){return e instanceof wi?e.changingThisBreaksApplicationSecurity:e}function dh(e){return e instanceof Function?e():e}var Xe=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xe||{}),hh;function wo(e,t){return hh(e,t)}function _t(e,t,r,n,s){if(n!=null){let c,l=!1;nt(n)?c=n:It(n)&&(l=!0,n=n[tt]);let a=He(n);e===0&&r!==null?s==null?El(t,r,a):Xn(t,r,a,s||null,!0):e===1&&r!==null?Xn(t,r,a,s||null,!0):e===2?_h(t,a,l):e===3&&t.destroyNode(a),c!=null&&Ih(t,e,c,r,s)}}function fh(e,t){return e.createText(t)}function ph(e,t,r){e.setValue(t,r)}function vl(e,t,r){return e.createElement(t,r)}function gh(e,t){yl(e,t),t[tt]=null,t[Oe]=null}function mh(e,t,r,n,s,c){n[tt]=s,n[Oe]=t,pr(e,n,r,1,s,c)}function yl(e,t){t[We].changeDetectionScheduler?.notify(1),pr(e,t,t[me],2,null,null)}function vh(e){let t=e[on];if(!t)return Xr(e[J],e);for(;t;){let r=null;if(It(t))r=t[on];else{let n=t[De];n&&(r=n)}if(!r){for(;t&&!t[Re]&&t!==e;)It(t)&&Xr(t[J],t),t=t[ge];t===null&&(t=e),It(t)&&Xr(t[J],t),r=t&&t[Re]}t=r}}function yh(e,t,r,n){let s=De+n,c=r.length;n>0&&(r[s-1][Re]=t),n0&&(e[r-1][Re]=n[Re]);let c=zn(e,De+t);gh(n[J],n);let l=c[Qe];l!==null&&l.detachView(c[J]),n[ge]=null,n[Re]=null,n[Q]&=-129}return n}function wl(e,t){if(!(t[Q]&256)){let r=t[me];r.destroyNode&&pr(e,t,r,3,null,null),vh(t)}}function Xr(e,t){if(t[Q]&256)return;let r=ie(null);try{t[Q]&=-129,t[Q]|=256,t[mt]&&ls(t[mt]),Eh(e,t),wh(e,t),t[J].type===1&&t[me].destroy();let n=t[fn];if(n!==null&&nt(t[ge])){n!==t[ge]&&bl(n,t);let s=t[Qe];s!==null&&s.detachView(e)}ih(t)}finally{ie(r)}}function wh(e,t){let r=e.cleanup,n=t[rn];if(r!==null)for(let c=0;c=0?n[l]():n[-l].unsubscribe(),c+=2}else{let l=n[r[c+1]];r[c].call(l)}n!==null&&(t[rn]=null);let s=t[st];if(s!==null){t[st]=null;for(let c=0;c-1){let{encapsulation:c}=e.data[n.directiveStart+s];if(c===Ve.None||c===Ve.Emulated)return null}return Be(n,r)}}function Xn(e,t,r,n,s){e.insertBefore(t,r,n,s)}function El(e,t,r){e.appendChild(t,r)}function Ws(e,t,r,n,s){n!==null?Xn(e,t,r,n,s):El(e,t,r)}function xh(e,t,r,n){e.removeChild(t,r,n)}function Eo(e,t){return e.parentNode(t)}function Dh(e,t){return e.nextSibling(t)}function kh(e,t,r){return Fh(e,t,r)}function Sh(e,t,r){return e.type&40?Be(e,r):null}var Fh=Sh,Hs;function Co(e,t,r,n){let s=Ch(e,n,t),c=t[me],l=n.parent||t[Oe],a=kh(l,n,t);if(s!=null)if(Array.isArray(r))for(let i=0;iat&&Dl(e,t,at,!1),Pe(l?2:0,s),r(n,s)}finally{yt(c),Pe(l?3:1,s)}}function _l(e,t,r){if(Ta(t)){let n=ie(null);try{let s=t.directiveStart,c=t.directiveEnd;for(let l=s;lnull;function jh(e,t,r,n){let s=Pl(t);s.push(r),e.firstCreatePass&&jl(e).push(n,s.length-1)}function Vh(e,t,r,n,s,c){let l=t?t.injectorIndex:-1,a=0;return Cd()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:l,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:s,attrs:c,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Us(e,t,r,n,s){for(let c in t){if(!t.hasOwnProperty(c))continue;let l=t[c];if(l===void 0)continue;n??={};let a,i=Ke.None;Array.isArray(l)?(a=l[0],i=l[1]):a=l;let o=c;if(s!==null){if(!s.hasOwnProperty(c))continue;o=s[c]}e===0?zs(n,r,o,a,i):zs(n,r,o,a)}return n}function zs(e,t,r,n,s){let c;e.hasOwnProperty(r)?(c=e[r]).push(t,n):c=e[r]=[t,n],s!==void 0&&c.push(s)}function Wh(e,t,r){let n=t.directiveStart,s=t.directiveEnd,c=e.data,l=t.attrs,a=[],i=null,o=null;for(let d=n;d0;){let r=e[--t];if(typeof r=="number"&&r<0)return r}return 0}function qh(e,t,r,n){let s=r.directiveStart,c=r.directiveEnd;ro(r)&&ef(t,r,e.data[s+r.componentOffset]),e.firstCreatePass||el(r,t),bt(n,t);let l=r.initialInputs;for(let a=s;a{sn(e.lView)},consumerOnSignalRead(){this.lView[mt]=this}}),Hl=100;function Ul(e,t=!0,r=0){let n=e[We],s=n.rendererFactory,c=!1;c||s.begin?.();try{gf(e,r)}catch(l){throw t&&Vl(e,l),l}finally{c||(s.end?.(),n.inlineEffectRunner?.flush())}}function gf(e,t){Di(e,t);let r=0;for(;so(e);){if(r===Hl)throw new te(103,!1);r++,Di(e,1)}}function mf(e,t,r,n){let s=t[Q];if((s&256)===256)return;let c=!1;!c&&t[We].inlineEffectRunner?.flush(),co(t);let l=null,a=null;!c&&vf(e)&&(a=df(t),l=ss(a));try{Ba(t),Sd(e.bindingStartIndex),r!==null&&Fl(e,t,r,2,n);let i=(s&3)===3;if(!c)if(i){let u=e.preOrderCheckHooks;u!==null&&Pn(t,u,null)}else{let u=e.preOrderHooks;u!==null&&jn(t,u,0,null),Kr(t,0)}if(yf(t),zl(t,0),e.contentQueries!==null&&$l(e,t),!c)if(i){let u=e.contentCheckHooks;u!==null&&Pn(t,u)}else{let u=e.contentHooks;u!==null&&jn(t,u,1),Kr(t,1)}Rh(e,t);let o=e.components;o!==null&&ql(t,o,0);let d=e.viewQuery;if(d!==null&&xi(2,d,n),!c)if(i){let u=e.viewCheckHooks;u!==null&&Pn(t,u)}else{let u=e.viewHooks;u!==null&&jn(t,u,2),Kr(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[qr]){for(let u of t[qr])u();t[qr]=null}c||(t[Q]&=-73)}catch(i){throw sn(t),i}finally{a!==null&&(as(a,l),ff(a)),uo()}}function vf(e){return e.type!==2}function zl(e,t){for(let r=hl(e);r!==null;r=fl(r))for(let n=De;n-1&&(Ei(t,n),zn(r,n))}this._attachedToViewContainer=!1}wl(this._lView[J],this._lView)}onDestroy(t){$a(this._lView,t)}markForCheck(){So(this._cdRefInjectingView||this._lView)}detach(){this._lView[Q]&=-129}reattach(){fi(this._lView),this._lView[Q]|=128}detectChanges(){this._lView[Q]|=1024,Ul(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,yl(this._lView[J],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new te(902,!1);this._appRef=t,fi(this._lView)}},Bt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Cf;let e=t;return e})(),wf=Bt,Ef=class extends wf{constructor(t,r,n){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,n){let s=lf(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:n});return new cn(s)}};function Cf(){return Fo(Ge(),le())}function Fo(e,t){return e.type&4?new Ef(t,e,Ht(e,t)):null}var c0=new RegExp(`^(\\d+)*(${lh}|${ah})*(.*)`);var Af=()=>null;function qs(e,t){return Af(e,t)}var ki=class{},Si=class{},er=class{};function xf(e){let t=Error(`No component factory found for ${we(e)}.`);return t[Df]=e,t}var Df="ngComponent";var Fi=class{resolveComponentFactory(t){throw xf(t)}},_o=(()=>{let t=class t{};t.NULL=new Fi;let e=t;return e})(),un=class{};var kf=(()=>{let t=class t{};t.\u0275prov=ce({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Jr={};function Ks(...e){}function Sf(){let e=typeof xe.requestAnimationFrame=="function",t=xe[e?"requestAnimationFrame":"setTimeout"],r=xe[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){let n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);let s=r[Zone.__symbol__("OriginalDelegate")];s&&(r=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}var de=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new se(!1),this.onMicrotaskEmpty=new se(!1),this.onStable=new se(!1),this.onError=new se(!1),typeof Zone>"u")throw new te(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&r,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=Sf().nativeRequestAnimationFrame,Tf(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new te(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new te(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,s){let c=this._inner,l=c.scheduleEventTask("NgZoneEvent: "+s,t,Ff,Ks,Ks);try{return c.runTask(l,r,n)}finally{c.cancelTask(l)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}},Ff={};function To(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function _f(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(xe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,_i(e),e.isCheckStableRunning=!0,To(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),_i(e))}function Tf(e){let t=()=>{_f(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,s,c,l,a)=>{if(If(a))return r.invokeTask(s,c,l,a);try{return Ys(e),r.invokeTask(s,c,l,a)}finally{(e.shouldCoalesceEventChangeDetection&&c.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Qs(e)}},onInvoke:(r,n,s,c,l,a,i)=>{try{return Ys(e),r.invoke(s,c,l,a,i)}finally{e.shouldCoalesceRunChangeDetection&&t(),Qs(e)}},onHasTask:(r,n,s,c)=>{r.hasTask(s,c),n===s&&(c.change=="microTask"?(e._hasPendingMicrotasks=c.microTask,_i(e),To(e)):c.change=="macroTask"&&(e.hasPendingMacrotasks=c.macroTask))},onHandleError:(r,n,s,c)=>(r.handleError(s,c),e.runOutsideAngular(()=>e.onError.emit(c)),!1)})}function _i(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ys(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Qs(e){e._nesting--,To(e)}var Ti=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new se,this.onMicrotaskEmpty=new se,this.onStable=new se,this.onError=new se}run(t,r,n){return t.apply(r,n)}runGuarded(t,r,n){return t.apply(r,n)}runOutsideAngular(t){return t()}runTask(t,r,n,s){return t.apply(r,n)}};function If(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}function Mf(e="zone.js",t){return e==="noop"?new Ti:e==="zone.js"?new de(t):e}var Kl=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let s of n)s()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=ce({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Ii(e,t,r){let n=r?e.styles:null,s=r?e.classes:null,c=0;if(t!==null)for(let l=0;l0&&Al(e,r,c.join(" "))}}function Pf(e,t,r){let n=e.projection=[];for(let s=0;s{let t=class t{};t.__NG_ELEMENT_ID__=Vf;let e=t;return e})();function Vf(){let e=Ge();return Ql(e,le())}var Wf=vn,Yl=class extends Wf{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return Ht(this._hostTNode,this._hostLView)}get injector(){return new pt(this._hostTNode,this._hostLView)}get parentInjector(){let t=go(this._hostTNode,this._hostLView);if(Za(t)){let r=Zn(t,this._hostLView),n=Qn(t),s=r[J].data[n+8];return new pt(s,r)}else return new pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let r=Xs(this._lContainer);return r!==null&&r[t]||null}get length(){return this._lContainer.length-De}createEmbeddedView(t,r,n){let s,c;typeof n=="number"?s=n:n!=null&&(s=n.index,c=n.injector);let l=qs(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(r||{},c,l);return this.insertImpl(a,s,Gs(this._hostTNode,l)),a}createComponent(t,r,n,s,c){let l=t&&!od(t),a;if(l)a=r;else{let g=r||{};a=g.index,n=g.injector,s=g.projectableNodes,c=g.environmentInjector||g.ngModuleRef}let i=l?t:new tr(Lt(t)),o=n||this.parentInjector;if(!c&&i.ngModule==null){let b=(l?o:this.parentInjector).get(gt,null);b&&(c=b)}let d=Lt(i.componentType??{}),u=qs(this._lContainer,d?.id??null),h=u?.firstChild??null,f=i.create(o,s,h,c);return this.insertImpl(f.hostView,a,Gs(this._hostTNode,u)),f}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,n){let s=t._lView;if(gd(s)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let i=s[ge],o=new Yl(i,i[Oe],i[ge]);o.detach(o.indexOf(t))}}let c=this._adjustIndex(r),l=this._lContainer;return cf(l,s,c,n),t.attachToViewContainerRef(),ma(ei(l),c,t),t}move(t,r){return this.insert(t,r)}indexOf(t){let r=Xs(this._lContainer);return r!==null?r.indexOf(t):-1}remove(t){let r=this._adjustIndex(t,-1),n=Ei(this._lContainer,r);n&&(zn(ei(this._lContainer),r),wl(n[J],n))}detach(t){let r=this._adjustIndex(t,-1),n=Ei(this._lContainer,r);return n&&zn(ei(this._lContainer),r)!=null?new cn(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function Xs(e){return e[Kn]}function ei(e){return e[Kn]||(e[Kn]=[])}function Ql(e,t){let r,n=t[e.index];return nt(n)?r=n:(r=Bl(n,t,null,e),t[e.index]=r,vr(t,r)),Uf(r,t,e,n),new Yl(r,e,t)}function Hf(e,t){let r=e[me],n=r.createComment(""),s=Be(t,e),c=Eo(r,s);return Xn(r,c,n,Dh(r,s),!1),n}var Uf=qf,zf=()=>!1;function Gf(e,t,r){return zf(e,t,r)}function qf(e,t,r,n){if(e[vt])return;let s;r.type&8?s=He(n):s=Hf(t,r),e[vt]=s}var Ni=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Oi=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let r=t.queries;if(r!==null){let n=t.contentQueries!==null?t.contentQueries[0]:r.length,s=[];for(let c=0;c0)n.push(l[a/2]);else{let o=c[a+1],d=t[-i];for(let u=De;ut.trim())}function np(e,t,r){e.queries===null&&(e.queries=new $i),e.queries.track(new Pi(t,r))}function Io(e,t){return e.queries.getByIndex(t)}function rp(e,t){let r=e[J],n=Io(r,t);return n.crossesNgTemplate?ji(r,e,t,[]):Zl(r,e,n,t)}function ip(e){return typeof e=="function"&&e[Mr]!==void 0}function Xl(e){return ip(e)&&typeof e.set=="function"}function op(e){let t=[],r=new Map;function n(s){let c=r.get(s);if(!c){let l=e(s);r.set(s,c=l.then(cp))}return c}return nr.forEach((s,c)=>{let l=[];s.templateUrl&&l.push(n(s.templateUrl).then(o=>{s.template=o}));let a=typeof s.styles=="string"?[s.styles]:s.styles||[];if(s.styles=a,s.styleUrl&&s.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(s.styleUrls?.length){let o=s.styles.length,d=s.styleUrls;s.styleUrls.forEach((u,h)=>{a.push(""),l.push(n(u).then(f=>{a[o+h]=f,d.splice(d.indexOf(u),1),d.length==0&&(s.styleUrls=void 0)}))})}else s.styleUrl&&l.push(n(s.styleUrl).then(o=>{a.push(o),s.styleUrl=void 0}));let i=Promise.all(l).then(()=>up(c));t.push(i)}),ap(),Promise.all(t).then(()=>{})}var nr=new Map,sp=new Set;function ap(){let e=nr;return nr=new Map,e}function lp(){return nr.size===0}function cp(e){return typeof e=="string"?e:e.text()}function up(e){sp.delete(e)}var $t=class{},Vi=class{};var rr=class extends $t{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Mi(this);let s=Hu(t);this._bootstrapComponents=dh(s.bootstrap),this._r3Injector=al(t,r,[{provide:$t,useValue:this},{provide:_o,useValue:this.componentFactoryResolver},...n],we(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Wi=class extends Vi{constructor(t){super(),this.moduleType=t}create(t){return new rr(this.moduleType,t,[])}};function dp(e,t,r){return new rr(e,t,r)}var Jl=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Qt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ec(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function yr(e,t,r){let n=e[t];return Object.is(n,r)?!1:(e[t]=r,!0)}function hp(e){return(e.flags&32)===32}function fp(e,t,r,n,s,c,l,a,i){let o=t.consts,d=mr(t,e,4,l||null,Yn(o,a));Rl(t,r,d,Yn(o,i)),po(t,d);let u=d.tView=xo(2,d,n,s,c,t.directiveRegistry,t.pipeRegistry,null,t.schemas,o,null);return t.queries!==null&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}function Mo(e,t,r,n,s,c,l,a){let i=le(),o=ke(),d=e+at,u=o.firstCreatePass?fp(d,o,i,t,r,n,s,c,l):o.data[d];gn(u,!1);let h=pp(o,i,u,e);ho()&&Co(o,i,h,u),bt(h,i);let f=Bl(h,i,h,u);return i[d]=f,vr(i,f),Gf(f,u,i),io(u)&&Tl(o,i,u),l!=null&&Il(i,u,a),Mo}var pp=gp;function gp(e,t,r,n){return fo(!0),t[me].createComment("")}function mp(e,t,r,n){return yr(e,ao(),r)?t+da(r)+n:zt}function On(e,t){return e<<17|t<<2}function wt(e){return e>>17&32767}function vp(e){return(e&2)==2}function yp(e,t){return e&131071|t<<17}function Hi(e){return e|2}function Pt(e){return(e&131068)>>2}function ti(e,t){return e&-131069|t<<2}function bp(e){return(e&1)===1}function Ui(e){return e|1}function wp(e,t,r,n,s,c){let l=c?t.classBindings:t.styleBindings,a=wt(l),i=Pt(l);e[n]=r;let o=!1,d;if(Array.isArray(r)){let u=r;d=u[1],(d===null||hn(u,d)>0)&&(o=!0)}else d=r;if(s)if(i!==0){let h=wt(e[a+1]);e[n+1]=On(h,a),h!==0&&(e[h+1]=ti(e[h+1],n)),e[a+1]=yp(e[a+1],n)}else e[n+1]=On(a,0),a!==0&&(e[a+1]=ti(e[a+1],n)),a=n;else e[n+1]=On(i,0),a===0?a=n:e[i+1]=ti(e[i+1],n),i=n;o&&(e[n+1]=Hi(e[n+1])),Js(e,d,n,!0),Js(e,d,n,!1),Ep(t,d,e,n,c),l=On(a,i),c?t.classBindings=l:t.styleBindings=l}function Ep(e,t,r,n,s){let c=s?e.residualClasses:e.residualStyles;c!=null&&typeof t=="string"&&hn(c,t)>=0&&(r[n+1]=Ui(r[n+1]))}function Js(e,t,r,n){let s=e[r+1],c=t===null,l=n?wt(s):Pt(s),a=!1;for(;l!==0&&(a===!1||c);){let i=e[l],o=e[l+1];Cp(i,t)&&(a=!0,e[l+1]=n?Ui(o):Hi(o)),l=n?wt(o):Pt(o)}a&&(e[r+1]=n?Hi(s):Ui(s))}function Cp(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?hn(e,t)>=0:!1}function ct(e,t,r){let n=le(),s=ao();if(yr(n,s,t)){let c=ke(),l=Ka();Ll(c,l,n,e,t,n[me],r,!1)}return ct}function ea(e,t,r,n,s){let c=t.inputs,l=s?"class":"style";Do(e,r,c[l],l,n)}function Lo(e,t){return Ap(e,t,null,!0),Lo}function Ap(e,t,r,n){let s=le(),c=ke(),l=Fd(2);if(c.firstUpdatePass&&Dp(c,e,l,n),t!==zt&&yr(s,l,t)){let a=c.data[Wt()];Tp(c,a,s,s[me],e,s[l+1]=Ip(t,r),n,l)}}function xp(e,t){return t>=e.expandoStartIndex}function Dp(e,t,r,n){let s=e.data;if(s[r+1]===null){let c=s[Wt()],l=xp(e,r);Mp(c,n)&&t===null&&!l&&(t=!1),t=kp(s,c,t,n),wp(s,c,t,r,l,n)}}function kp(e,t,r,n){let s=Md(e),c=n?t.residualClasses:t.residualStyles;if(s===null)(n?t.classBindings:t.styleBindings)===0&&(r=ni(null,e,t,r,n),r=dn(r,t.attrs,n),c=null);else{let l=t.directiveStylingLast;if(l===-1||e[l]!==s)if(r=ni(s,e,t,r,n),c===null){let i=Sp(e,t,n);i!==void 0&&Array.isArray(i)&&(i=ni(null,e,t,i[1],n),i=dn(i,t.attrs,n),Fp(e,t,n,i))}else c=_p(e,t,n)}return c!==void 0&&(n?t.residualClasses=c:t.residualStyles=c),r}function Sp(e,t,r){let n=r?t.classBindings:t.styleBindings;if(Pt(n)!==0)return e[wt(n)]}function Fp(e,t,r,n){let s=r?t.classBindings:t.styleBindings;e[wt(s)]=n}function _p(e,t,r){let n,s=t.directiveEnd;for(let c=1+t.directiveStylingLast;c0;){let i=e[s],o=Array.isArray(i),d=o?i[1]:i,u=d===null,h=r[s+1];h===zt&&(h=u?Le:void 0);let f=u?zr(h,n):d===n?h:void 0;if(o&&!ir(f)&&(f=zr(i,n)),ir(f)&&(a=f,l))return a;let g=e[s+1];s=l?wt(g):Pt(g)}if(t!==null){let i=c?t.residualClasses:t.residualStyles;i!=null&&(a=zr(i,n))}return a}function ir(e){return e!==void 0}function Ip(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=we(bo(e)))),e}function Mp(e,t){return(e.flags&(t?8:16))!==0}function Lp(e,t,r,n,s,c){let l=t.consts,a=Yn(l,s),i=mr(t,e,2,n,a);return Rl(t,r,i,Yn(l,c)),i.attrs!==null&&Ii(i,i.attrs,!1),i.mergedAttrs!==null&&Ii(i,i.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,i),i}function fe(e,t,r,n){let s=le(),c=ke(),l=at+e,a=s[me],i=c.firstCreatePass?Lp(l,c,s,t,r,n):c.data[l],o=Rp(c,s,i,a,t,e);s[l]=o;let d=io(i);return gn(i,!0),xl(a,o,i),!hp(i)&&ho()&&Co(c,s,o,i),bd()===0&&bt(o,s),wd(),d&&(Tl(c,s,i),_l(c,i,s)),n!==null&&Il(s,i),fe}function ve(){let e=Ge();Va()?kd():(e=e.parent,gn(e,!1));let t=e;Ad(t)&&xd(),Ed();let r=ke();return r.firstCreatePass&&(po(r,e),Ta(e)&&r.queries.elementEnd(e)),t.classesWithoutHost!=null&&Pd(t)&&ea(r,t,le(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&jd(t)&&ea(r,t,le(),t.stylesWithoutHost,!1),ve}var Rp=(e,t,r,n,s,c)=>(fo(!0),vl(n,s,Nd()));function Ro(){return le()}var or="en-US";var Np=or;function Op(e){typeof e=="string"&&(Np=e.toLowerCase().replace(/_/g,"-"))}function Se(e,t,r,n){let s=le(),c=ke(),l=Ge();return tc(c,s,s[me],l,e,t,n),Se}function Bp(e,t,r,n){let s=e.cleanup;if(s!=null)for(let c=0;ci?a[i]:null}typeof l=="string"&&(c+=2)}return null}function tc(e,t,r,n,s,c,l){let a=io(n),o=e.firstCreatePass&&jl(e),d=t[Ne],u=Pl(t),h=!0;if(n.type&3||l){let b=Be(n,t),x=l?l(b):b,A=u.length,v=l?p=>l(He(p[n.index])):n.index,w=null;if(!l&&a&&(w=Bp(e,t,s,n.index)),w!==null){let p=w.__ngLastListenerFn__||w;p.__ngNextListenerFn__=c,w.__ngLastListenerFn__=c,h=!1}else{c=ra(n,t,d,c,!1);let p=r.listen(x,s,c);u.push(c,p),o&&o.push(s,v,A,A+1)}}else c=ra(n,t,d,c,!1);let f=n.outputs,g;if(h&&f!==null&&(g=f[s])){let b=g.length;if(b)for(let x=0;x-1?Vt(e.index,t):t;So(a);let i=na(t,r,n,l),o=c.__ngNextListenerFn__;for(;o;)i=na(t,r,o,l)&&i,o=o.__ngNextListenerFn__;return s&&i===!1&&l.preventDefault(),i}}function Fe(e=1){return Rd(e)}function yn(e,t,r){ep(e,t,r)}function bn(e){let t=le(),r=ke(),n=Wa();lo(n+1);let s=Io(r,n);if(e.dirty&&pd(t)===((s.metadata.flags&2)===2)){if(s.matches===null)e.reset([]);else{let c=rp(t,n);e.reset(c,Jd),e.notifyOnChanges()}return!0}return!1}function wn(){return Xf(le(),Wa())}function _e(e,t=""){let r=le(),n=ke(),s=e+at,c=n.firstCreatePass?mr(n,s,1,t,null):n.data[s],l=$p(n,r,c,t,e);r[s]=l,ho()&&Co(n,r,l,c),gn(c,!1)}var $p=(e,t,r,n,s)=>(fo(!0),fh(t[me],n));function En(e){return nc("",e,""),En}function nc(e,t,r){let n=le(),s=mp(n,e,t,r);return s!==zt&&rf(n,Wt(),s),nc}function No(e,t,r){Xl(t)&&(t=t());let n=le(),s=ao();if(yr(n,s,t)){let c=ke(),l=Ka();Ll(c,l,n,e,t,n[me],r,!1)}return No}function rc(e,t){let r=Xl(e);return r&&e.set(t),r}function Oo(e,t){let r=le(),n=ke(),s=Ge();return tc(n,r,r[me],s,e,t),Oo}var Bn=null;function Pp(e){Bn!==null&&(e.defaultEncapsulation!==Bn.defaultEncapsulation||e.preserveWhitespaces!==Bn.preserveWhitespaces)||(Bn=e)}var Bo=new oe(""),Cn=new oe(""),br=(()=>{let t=class t{constructor(n,s,c){this._ngZone=n,this.registry=s,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,$o||(jp(c),c.addToWindow(s)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>s.updateCb&&s.updateCb(n)?(clearTimeout(s.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,s,c){let l=-1;s&&s>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==l),n()},s)),this._callbacks.push({doneCb:n,timeoutId:l,updateCb:c})}whenStable(n,s,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,s,c),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,s,c){return[]}};t.\u0275fac=function(s){return new(s||t)(re(de),re(wr),re(Cn))},t.\u0275prov=ce({token:t,factory:t.\u0275fac});let e=t;return e})(),wr=(()=>{let t=class t{constructor(){this._applications=new Map}registerApplication(n,s){this._applications.set(n,s)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,s=!0){return $o?.findTestabilityInTree(this,n,s)??null}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function jp(e){$o=e}var $o;function Po(e){return!!e&&typeof e.then=="function"}function ic(e){return!!e&&typeof e.subscribe=="function"}var Vp=new oe(""),oc=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,s)=>{this.resolve=n,this.reject=s}),this.appInits=he(Vp,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let c of this.appInits){let l=c();if(Po(l))n.push(l);else if(ic(l)){let a=new Promise((i,o)=>{l.subscribe({complete:i,error:o})});n.push(a)}}let s=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{s()}).catch(c=>{this.reject(c)}),n.length===0&&s(),this.initialized=!0}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Wp=new oe("");function Hp(){cs(()=>{throw new te(600,!1)})}function Up(e){return e.isBoundToModule}function zp(e,t,r){try{let n=r();return Po(n)?n.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}function sc(e,t){return Array.isArray(t)?t.reduce(sc,e):qe(qe({},e),t)}var Er=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=he(ll),this.afterRenderEffectManager=he(Kl),this.externalTestViews=new Set,this.beforeRender=new ot,this.afterTick=new ot,this.componentTypes=[],this.components=[],this.isStable=he(Jl).hasPendingTasks.pipe(Ur(n=>!n)),this._injector=he(gt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,s){let c=n instanceof er;if(!this._injector.get(oc).done){let f=!c&&Wu(n),g=!1;throw new te(405,g)}let a;c?a=n:a=this._injector.get(_o).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let i=Up(a)?void 0:this._injector.get($t),o=s||a.selector,d=a.create(mn.NULL,[],o,i),u=d.location.nativeElement,h=d.injector.get(Bo,null);return h?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),Hn(this.components,d),h?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new te(101,!1);let s=ie(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(c){this.internalErrorHandler(c)}finally{this.afterTick.next(),this._runningTick=!1,ie(s)}}detectChangesInAttachedViews(n){let s=0,c=this.afterRenderEffectManager;for(;;){if(s===Hl)throw new te(103,!1);if(n){let l=s===0;this.beforeRender.next(l);for(let{_lView:a,notifyErrorHandler:i}of this._views)Gp(a,l,i)}if(s++,c.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:l})=>zi(l))&&(c.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:l})=>zi(l))))break}}attachView(n){let s=n;this._views.push(s),s.attachToAppRef(this)}detachView(n){let s=n;Hn(this._views,s),s.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let s=this._injector.get(Wp,[]);[...this._bootstrapListeners,...s].forEach(c=>c(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Hn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new te(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Hn(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function Gp(e,t,r){!t&&!zi(e)||qp(e,r,t)}function zi(e){return so(e)}function qp(e,t,r){let n;r?(n=0,e[Q]|=1024):e[Q]&64?n=0:n=1,Ul(e,t,n)}var Kp=new oe("");function Yp(e,t,r){let n=new Wi(r);return Promise.resolve(n)}function ia(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var Qp=(()=>{let t=class t{constructor(){this.zone=he(de),this.applicationRef=he(Er)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Zp(e){return[{provide:de,useFactory:e},{provide:nn,multi:!0,useFactory:()=>{let t=he(Qp,{optional:!0});return()=>t.initialize()}},{provide:nn,multi:!0,useFactory:()=>{let t=he(eg);return()=>{t.initialize()}}},{provide:ll,useFactory:Xp}]}function Xp(){let e=he(de),t=he(Ze);return r=>e.runOutsideAngular(()=>t.handleError(r))}function Jp(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var eg=(()=>{let t=class t{constructor(){this.subscription=new Ae,this.initialized=!1,this.zone=he(de),this.pendingTasks=he(Jl)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{de.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function tg(){return typeof $localize<"u"&&$localize.locale||or}var jo=new oe("",{providedIn:"root",factory:()=>he(jo,ne.Optional|ne.SkipSelf)||tg()});var ac=new oe(""),lc=(()=>{let t=class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,s){let c=Mf(s?.ngZone,Jp({eventCoalescing:s?.ngZoneEventCoalescing,runCoalescing:s?.ngZoneRunCoalescing}));return c.run(()=>{let l=dp(n.moduleType,this.injector,Zp(()=>c)),a=l.injector.get(Ze,null);return c.runOutsideAngular(()=>{let i=c.onError.subscribe({next:o=>{a.handleError(o)}});l.onDestroy(()=>{Hn(this._modules,l),i.unsubscribe()})}),zp(a,c,()=>{let i=l.injector.get(oc);return i.runInitializers(),i.donePromise.then(()=>{let o=l.injector.get(jo,or);return Op(o||or),this._moduleDoBootstrap(l),l})})})}bootstrapModule(n,s=[]){let c=sc({},s);return Yp(this.injector,c,n).then(l=>this.bootstrapModuleFactory(l,c))}_moduleDoBootstrap(n){let s=n.injector.get(Er);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(c=>s.bootstrap(c));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(s);else throw new te(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new te(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());let n=this._injector.get(ac,null);n&&(n.forEach(s=>s()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};t.\u0275fac=function(s){return new(s||t)(re(mn))},t.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),Xt=null,cc=new oe("");function ng(e){if(Xt&&!Xt.get(cc,!1))throw new te(400,!1);Hp(),Xt=e;let t=e.get(lc);return og(e),t}function Vo(e,t,r=[]){let n=`Platform: ${t}`,s=new oe(n);return(c=[])=>{let l=uc();if(!l||l.injector.get(cc,!1)){let a=[...r,...c,{provide:s,useValue:!0}];e?e(a):ng(rg(a,n))}return ig(s)}}function rg(e=[],t){return mn.create({name:t,providers:[{provide:ur,useValue:"platform"},{provide:ac,useValue:new Set([()=>Xt=null])},...e]})}function ig(e){let t=uc();if(!t)throw new te(401,!1);return t}function uc(){return Xt?.get(lc)??null}function og(e){e.get(mo,null)?.forEach(r=>r())}var Gi=class{constructor(){}supports(t){return t instanceof Map||ec(t)}create(){return new qi}},qi=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let r;for(r=this._mapHead;r!==null;r=r._next)t(r)}forEachPreviousItem(t){let r;for(r=this._previousMapHead;r!==null;r=r._nextPrevious)t(r)}forEachChangedItem(t){let r;for(r=this._changesHead;r!==null;r=r._nextChanged)t(r)}forEachAddedItem(t){let r;for(r=this._additionsHead;r!==null;r=r._nextAdded)t(r)}forEachRemovedItem(t){let r;for(r=this._removalsHead;r!==null;r=r._nextRemoved)t(r)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||ec(t)))throw new te(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r=this._mapHead;if(this._appendAfter=null,this._forEach(t,(n,s)=>{if(r&&r.key===s)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let c=this._getOrCreateRecordForKey(s,n);r=this._insertBeforeOrAppend(r,c)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){let n=t._prev;return r._next=t,r._prev=n,t._prev=r,n&&(n._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){let s=this._records.get(t);this._maybeAddToChanges(s,r);let c=s._prev,l=s._next;return c&&(c._next=l),l&&(l._prev=c),s._next=null,s._prev=null,s}let n=new Ki(t);return this._records.set(t,n),n.currentValue=r,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(n=>r(t[n],n))}},Ki=class{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function oa(){return new Cr([new Gi])}var Cr=(()=>{let t=class t{constructor(n){this.factories=n}static create(n,s){if(s){let c=s.factories.slice();n=n.concat(c)}return new t(n)}static extend(n){return{provide:t,useFactory:s=>t.create(n,s||oa()),deps:[[t,new Eu,new ga]]}}find(n){let s=this.factories.find(c=>c.supports(n));if(s)return s;throw new te(901,!1)}};t.\u0275prov=ce({token:t,providedIn:"root",factory:oa});let e=t;return e})();var dc=Vo(null,"core",[]),hc=(()=>{let t=class t{constructor(n){}};t.\u0275fac=function(s){return new(s||t)(re(Er))},t.\u0275mod=et({type:t}),t.\u0275inj=Je({});let e=t;return e})();var pc=null;function Dr(){return pc}function gc(e){pc??=e}var Ar=class{};var ut=new oe("");function mc(e,t){t=encodeURIComponent(t);for(let r of e.split(";")){let n=r.indexOf("="),[s,c]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(s.trim()===t)return decodeURIComponent(c)}return null}var vc=(()=>{let t=class t{constructor(n,s){this._viewContainer=n,this._context=new Wo,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=s}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){fc("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){fc("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,s){return!0}};t.\u0275fac=function(s){return new(s||t)(rt(vn),rt(Bt))},t.\u0275dir=cr({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Wo=class{constructor(){this.$implicit=null,this.ngIf=null}};function fc(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${we(t)}'.`)}var Ct=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=et({type:t}),t.\u0275inj=Je({});let e=t;return e})(),yc="browser",cg="server";function Ho(e){return e===cg}var xr=class{};var Go=class extends Ar{constructor(){super(...arguments),this.supportsDOMEvents=!0}},qo=class e extends Go{static makeCurrent(){gc(new e)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return r=r||this.getDefaultDocument(),r.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=hg();return r==null?null:fg(r)}resetBaseElement(){An=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return mc(document.cookie,t)}},An=null;function hg(){return An=An||document.querySelector("base"),An?An.getAttribute("href"):null}function fg(e){return new URL(e,document.baseURI).pathname}var Ko=class{addToWindow(t){xe.getAngularTestability=(n,s=!0)=>{let c=t.findTestabilityInTree(n,s);if(c==null)throw new te(5103,!1);return c},xe.getAllAngularTestabilities=()=>t.getAllTestabilities(),xe.getAllAngularRootElements=()=>t.getAllRootElements();let r=n=>{let s=xe.getAllAngularTestabilities(),c=s.length,l=function(){c--,c==0&&n()};s.forEach(a=>{a.whenStable(l)})};xe.frameworkStabilizers||(xe.frameworkStabilizers=[]),xe.frameworkStabilizers.push(r)}findTestabilityInTree(t,r,n){if(r==null)return null;let s=t.getTestability(r);return s??(n?Dr().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null)}},pg=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=ce({token:t,factory:t.\u0275fac});let e=t;return e})(),Yo=new oe(""),Cc=(()=>{let t=class t{constructor(n,s){this._zone=s,this._eventNameToPlugin=new Map,n.forEach(c=>{c.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,s,c){return this._findPluginFor(s).addEventListener(n,s,c)}getZone(){return this._zone}_findPluginFor(n){let s=this._eventNameToPlugin.get(n);if(s)return s;if(s=this._plugins.find(l=>l.supports(n)),!s)throw new te(5101,!1);return this._eventNameToPlugin.set(n,s),s}};t.\u0275fac=function(s){return new(s||t)(re(Yo),re(de))},t.\u0275prov=ce({token:t,factory:t.\u0275fac});let e=t;return e})(),kr=class{constructor(t){this._doc=t}},Uo="ng-app-id",Ac=(()=>{let t=class t{constructor(n,s,c,l={}){this.doc=n,this.appId=s,this.nonce=c,this.platformId=l,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ho(l),this.resetHostNodes()}addStyles(n){for(let s of n)this.changeUsageCount(s,1)===1&&this.onStyleAdded(s)}removeStyles(n){for(let s of n)this.changeUsageCount(s,-1)<=0&&this.onStyleRemoved(s)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(s=>s.remove()),n.clear());for(let s of this.getAllStyles())this.onStyleRemoved(s);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let s of this.getAllStyles())this.addStyleToHost(n,s)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let s of this.hostNodes)this.addStyleToHost(s,n)}onStyleRemoved(n){let s=this.styleRef;s.get(n)?.elements?.forEach(c=>c.remove()),s.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Uo}="${this.appId}"]`);if(n?.length){let s=new Map;return n.forEach(c=>{c.textContent!=null&&s.set(c.textContent,c)}),s}return null}changeUsageCount(n,s){let c=this.styleRef;if(c.has(n)){let l=c.get(n);return l.usage+=s,l.usage}return c.set(n,{usage:s,elements:[]}),s}getStyleElement(n,s){let c=this.styleNodesInDOM,l=c?.get(s);if(l?.parentNode===n)return c.delete(s),l.removeAttribute(Uo),l;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=s,this.platformIsServer&&a.setAttribute(Uo,this.appId),n.appendChild(a),a}}addStyleToHost(n,s){let c=this.getStyleElement(n,s),l=this.styleRef,a=l.get(s)?.elements;a?a.push(c):l.set(s,{elements:[c],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};t.\u0275fac=function(s){return new(s||t)(re(ut),re(fr),re(vo,8),re(Ut))},t.\u0275prov=ce({token:t,factory:t.\u0275fac});let e=t;return e})(),zo={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Zo=/%COMP%/g,xc="%COMP%",gg=`_nghost-${xc}`,mg=`_ngcontent-${xc}`,vg=!0,yg=new oe("",{providedIn:"root",factory:()=>vg});function bg(e){return mg.replace(Zo,e)}function wg(e){return gg.replace(Zo,e)}function Dc(e,t){return t.map(r=>r.replace(Zo,e))}var bc=(()=>{let t=class t{constructor(n,s,c,l,a,i,o,d=null){this.eventManager=n,this.sharedStylesHost=s,this.appId=c,this.removeStylesOnCompDestroy=l,this.doc=a,this.platformId=i,this.ngZone=o,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Ho(i),this.defaultRenderer=new xn(n,a,o,this.platformIsServer)}createRenderer(n,s){if(!n||!s)return this.defaultRenderer;this.platformIsServer&&s.encapsulation===Ve.ShadowDom&&(s=dt(qe({},s),{encapsulation:Ve.Emulated}));let c=this.getOrCreateRenderer(n,s);return c instanceof Sr?c.applyToHost(n):c instanceof Dn&&c.applyStyles(),c}getOrCreateRenderer(n,s){let c=this.rendererByCompId,l=c.get(s.id);if(!l){let a=this.doc,i=this.ngZone,o=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(s.encapsulation){case Ve.Emulated:l=new Sr(o,d,s,this.appId,u,a,i,h);break;case Ve.ShadowDom:return new Qo(o,d,n,s,a,i,this.nonce,h);default:l=new Dn(o,d,s,u,a,i,h);break}c.set(s.id,l)}return l}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(s){return new(s||t)(re(Cc),re(Ac),re(fr),re(yg),re(ut),re(Ut),re(de),re(vo))},t.\u0275prov=ce({token:t,factory:t.\u0275fac});let e=t;return e})(),xn=class{constructor(t,r,n,s){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=s,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(zo[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(wc(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(wc(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new te(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,s){if(s){r=s+":"+r;let c=zo[s];c?t.setAttributeNS(c,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){let s=zo[n];s?t.removeAttributeNS(s,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,s){s&(Xe.DashCase|Xe.Important)?t.style.setProperty(r,n,s&Xe.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&Xe.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t!=null&&(t[r]=n)}setValue(t,r){t.nodeValue=r}listen(t,r,n){if(typeof t=="string"&&(t=Dr().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function wc(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Qo=class extends xn{constructor(t,r,n,s,c,l,a,i){super(t,c,l,i),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let o=Dc(s.id,s.styles);for(let d of o){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Dn=class extends xn{constructor(t,r,n,s,c,l,a,i){super(t,c,l,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=s,this.styles=i?Dc(i,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Sr=class extends Dn{constructor(t,r,n,s,c,l,a,i){let o=s+"-"+n.id;super(t,r,n,c,l,a,i,o),this.contentAttr=bg(o),this.hostAttr=wg(o)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}},Eg=(()=>{let t=class t extends kr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,s,c){return n.addEventListener(s,c,!1),()=>this.removeEventListener(n,s,c)}removeEventListener(n,s,c){return n.removeEventListener(s,c)}};t.\u0275fac=function(s){return new(s||t)(re(ut))},t.\u0275prov=ce({token:t,factory:t.\u0275fac});let e=t;return e})(),Ec=["alt","control","meta","shift"],Cg={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ag={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},xg=(()=>{let t=class t extends kr{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,s,c){let l=t.parseEventName(s),a=t.eventCallback(l.fullKey,c,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Dr().onAndCancel(n,l.domEventName,a))}static parseEventName(n){let s=n.toLowerCase().split("."),c=s.shift();if(s.length===0||!(c==="keydown"||c==="keyup"))return null;let l=t._normalizeKey(s.pop()),a="",i=s.indexOf("code");if(i>-1&&(s.splice(i,1),a="code."),Ec.forEach(d=>{let u=s.indexOf(d);u>-1&&(s.splice(u,1),a+=d+".")}),a+=l,s.length!=0||l.length===0)return null;let o={};return o.domEventName=c,o.fullKey=a,o}static matchEventFullKeyCode(n,s){let c=Cg[n.key]||n.key,l="";return s.indexOf("code.")>-1&&(c=n.code,l="code."),c==null||!c?!1:(c=c.toLowerCase(),c===" "?c="space":c==="."&&(c="dot"),Ec.forEach(a=>{if(a!==c){let i=Ag[a];i(n)&&(l+=a+".")}}),l+=c,l===s)}static eventCallback(n,s,c){return l=>{t.matchEventFullKeyCode(l,n)&&c.runGuarded(()=>s(l))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(s){return new(s||t)(re(ut))},t.\u0275prov=ce({token:t,factory:t.\u0275fac});let e=t;return e})();function Dg(){qo.makeCurrent()}function kg(){return new Ze}function Sg(){return gl(document),document}var Fg=[{provide:Ut,useValue:yc},{provide:mo,useValue:Dg,multi:!0},{provide:ut,useFactory:Sg,deps:[]}],kc=Vo(dc,"browser",Fg),_g=new oe(""),Tg=[{provide:Cn,useClass:Ko,deps:[]},{provide:Bo,useClass:br,deps:[de,wr,Cn]},{provide:br,useClass:br,deps:[de,wr,Cn]}],Ig=[{provide:ur,useValue:"root"},{provide:Ze,useFactory:kg,deps:[]},{provide:Yo,useClass:Eg,multi:!0,deps:[ut,de,Ut]},{provide:Yo,useClass:xg,multi:!0,deps:[ut]},bc,Ac,Cc,{provide:un,useExisting:bc},{provide:xr,useClass:pg,deps:[]},[]],Sc=(()=>{let t=class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:fr,useValue:n.appId}]}}};t.\u0275fac=function(s){return new(s||t)(re(_g,12))},t.\u0275mod=et({type:t}),t.\u0275inj=Je({providers:[...Ig,...Tg],imports:[Ct,hc]});let e=t;return e})();var wv=Tr(Fr());ace.define("ace/theme/github",["require","exports","module","ace/lib/dom"],function(e,t,r){t.isDark=!1,t.cssClass="ace-github",t.cssText='.ace-github .ace_gutter {background: #e8e8e8;color: #AAA;}.ace-github {background: #fff;color: #000;}.ace-github .ace_keyword {font-weight: bold;}.ace-github .ace_string {color: #D14;}.ace-github .ace_variable.ace_class {color: teal;}.ace-github .ace_constant.ace_numeric {color: #099;}.ace-github .ace_constant.ace_buildin {color: #0086B3;}.ace-github .ace_support.ace_function {color: #0086B3;}.ace-github .ace_comment {color: #998;font-style: italic;}.ace-github .ace_variable.ace_language {color: #0086B3;}.ace-github .ace_paren {font-weight: bold;}.ace-github .ace_boolean {font-weight: bold;}.ace-github .ace_string.ace_regexp {color: #009926;font-weight: normal;}.ace-github .ace_variable.ace_instance {color: teal;}.ace-github .ace_constant.ace_language {font-weight: bold;}.ace-github .ace_cursor {color: black;}.ace-github.ace_focus .ace_marker-layer .ace_active-line {background: rgb(255, 255, 204);}.ace-github .ace_marker-layer .ace_active-line {background: rgb(245, 245, 245);}.ace-github .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-github.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-github.ace_nobold .ace_line > span {font-weight: normal !important;}.ace-github .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-github .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-github .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-github .ace_gutter-active-line {background-color : rgba(0, 0, 0, 0.07);}.ace-github .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-github .ace_invisible {color: #BFBFBF}.ace-github .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-github .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var n=e("../lib/dom");n.importCssString(t.cssText,t.cssClass)});var Ic=Tr(Fr());var kn=new oe("ACE_CONFIG"),_c=["blur","focus","copy","paste","change","changeSession"],Tc=["changeCursor","changeSelection"],qt=class{readOnly;cursorStyle;selectionStyle;mergeUndoDeltas;behavioursEnabled;highlightActiveLine;highlightSelectedWord;wrapBehavioursEnabled;copyWithEmptySelection;navigateWithinSoftTabs;autoScrollEditorIntoView;mode;wrap;tabSize;overwrite;useWorker;foldStyle;newLineMode;useSoftTabs;firstLineNumber;theme;minLines;maxLines;fontSize;fontFamily;showGutter;printMargin;scrollPastEnd;animatedScroll;showInvisibles;fadeFoldWidgets;showLineNumbers;showFoldWidgets;showPrintMargin;fixedWidthGutter;printMarginColumn;displayIndentGuides;highlightGutterLine;hScrollBarAlwaysVisible;vScrollBarAlwaysVisible;dragDelay;dragEnabled;scrollSpeed;focusTimeout;tooltipFollowsMouse;enableBasicAutocompletion;enableLiveAutocompletion;enableSnippets;enableEmmet;useElasticTabstops;constructor(t={}){this.assign(t)}assign(t={},r){r=r||this;for(let n in t)t[n]&&!Array.isArray(t[n])&&typeof t[n]=="object"?(r[n]={},this.assign(t[n],r[n])):r[n]=t[n]}};var it=(()=>{class e{zone;elementRef;differs;defaults;instance=null;instanceEventListeners=[];selectionEventListeners=[];configDiff=null;disabled=!1;config;blur=new se;focus=new se;copy=new se;paste=new se;change=new se;changeCursor=new se;changeSession=new se;changeSelection=new se;constructor(r,n,s,c){this.zone=r,this.elementRef=n,this.differs=s,this.defaults=c}ngOnInit(){let r=new qt(this.defaults);r.assign(this.config),this.disabled?(r.readOnly=!0,r.highlightActiveLine=!1):r.highlightActiveLine!==!1&&(r.highlightActiveLine=!0),r.mode="ace/mode/"+(r.mode||"text"),r.theme="ace/theme/"+(r.theme||"github"),this.zone.runOutsideAngular(()=>{this.instance=Ic.edit(this.elementRef.nativeElement),this.instance.$blockScrolling=1/0,this.instance.setOptions(r)}),_c.forEach(n=>{if(this.instance){let s=(...c)=>{c.length===1&&(c=c[0]),this[n]&&this.zone.run(()=>{this[n].observers.length&&this[n].emit(c)})};this.instance.on(n,s),this.instanceEventListeners.push({eventName:n,callback:s})}}),Tc.forEach(n=>{if(this.instance){let s=(...c)=>{c.length===1&&(c=c[0]),this[n]&&this[n].observers.length&&this[n].emit(c)};this.instance.selection.on(n,s),this.selectionEventListeners.push({eventName:n,callback:s})}}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{}))}ngDoCheck(){this.configDiff&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnDestroy(){this.instance&&(this.instance.isFocused()&&this.blur.emit(),this.instanceEventListeners.forEach(r=>{this.instance.off(r.eventName,r.callback)}),this.instanceEventListeners=[],this.selectionEventListeners.forEach(r=>{this.instance.selection.off(r.eventName,r.callback)}),this.selectionEventListeners=[],delete this.instance,this.instance=null)}ngOnChanges(r){r.disabled&&r.disabled.currentValue!==r.disabled.previousValue&&this.zone.runOutsideAngular(()=>{if(this.instance){let n=new qt(this.defaults);n.assign(this.config),this.instance.clearSelection();let s=n.highlightActiveLine!==!1;this.instance.setHighlightActiveLine(this.disabled?!1:s),this.instance.setReadOnly(this.disabled?!0:n.readOnly||!1)}})}ace(){return this.instance}clear(){this.instance&&(this.instance.setValue(""),this.instance.clearSelection())}getValue(){if(this.instance)return this.instance.getValue()}setValue(r,n){this.instance&&this.instance.setValue(r||"",n)}static \u0275fac=function(n){return new(n||e)(rt(de),rt(lt),rt(Cr),rt(kn,8))};static \u0275dir=cr({type:e,selectors:[["","ace",""]],inputs:{disabled:"disabled",config:[Ke.None,"ace","config"]},outputs:{blur:"blur",focus:"focus",copy:"copy",paste:"paste",change:"change",changeCursor:"changeCursor",changeSession:"changeSession",changeSelection:"changeSelection"},exportAs:["ngxAce"],features:[hr]})}return e})();var Sn=(()=>{class e{content="";get value(){return this.content}set value(r){this.setContent(r)}disabled=!1;mode="";theme="";config;useAceClass=!0;blur=new se;focus=new se;copy=new se;paste=new se;change=new se;valueChange=new se;changeCursor=new se;changeSession=new se;changeSelection=new se;directiveRef;constructor(){}ngAfterViewInit(){this.content!=null&&this.setContent(this.content,!0)}setContent(r,n){(n||r!==this.content)&&(this.directiveRef&&this.directiveRef.setValue(r,1),this.content=r)}getConfig(){return this.config=this.config||{},this.config.mode=this.mode||this.config.mode,this.config.theme=this.theme||this.config.theme,this.config}onContentChange(r){this.directiveRef&&(this.change.emit(r),this.content=this.directiveRef.getValue()||"",this.valueChange.emit(this.value))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=lr({type:e,selectors:[["ace"]],viewQuery:function(n,s){if(n&1&&yn(it,7),n&2){let c;bn(c=wn())&&(s.directiveRef=c.first)}},hostVars:2,hostBindings:function(n,s){n&2&&Lo("ace",s.useAceClass)},inputs:{value:"value",disabled:"disabled",mode:"mode",theme:"theme",config:"config",useAceClass:"useAceClass"},outputs:{blur:"blur",focus:"focus",copy:"copy",paste:"paste",change:"change",valueChange:"valueChange",changeCursor:"changeCursor",changeSession:"changeSession",changeSelection:"changeSelection"},exportAs:["ngxAce"],decls:1,vars:2,consts:[[3,"blur","focus","copy","paste","change","changeCursor","changeSession","changeSelection","ace","disabled"]],template:function(n,s){n&1&&(fe(0,"div",0),Se("blur",function(l){return s.blur.emit(l)})("focus",function(l){return s.focus.emit(l)})("copy",function(l){return s.copy.emit(l)})("paste",function(l){return s.paste.emit(l)})("change",function(l){return s.onContentChange(l)})("changeCursor",function(l){return s.changeCursor.emit(l)})("changeSession",function(l){return s.changeSession.emit(l)})("changeSelection",function(l){return s.changeSelection.emit(l)}),ve()),n&2&&ct("ace",s.getConfig())("disabled",s.disabled)},dependencies:[it],styles:[`.ace,.ace>.ace_editor{display:block;width:100%;height:100%}.ace.flex{display:flex;flex-direction:inherit;align-items:inherit;min-width:0;min-height:0;-webkit-box-direction:inherit;-webkit-box-orient:inherit}.ace.flex>.ace_editor{flex:1 1 auto;min-width:0;min-height:0;-webkit-box-flex:1} +`],encapsulation:2})}return e})();var Xo=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=et({type:e});static \u0275inj=Je({imports:[Ct,Ct]})}return e})();var Wv=Tr(Fr());ace.define("ace/theme/clouds",["require","exports","module","ace/lib/dom"],function(e,t,r){t.isDark=!1,t.cssClass="ace-clouds",t.cssText='.ace-clouds .ace_gutter {background: #ebebeb;color: #333}.ace-clouds .ace_print-margin {width: 1px;background: #e8e8e8}.ace-clouds {background-color: #FFFFFF;color: #000000}.ace-clouds .ace_cursor {color: #000000}.ace-clouds .ace_marker-layer .ace_selection {background: #BDD5FC}.ace-clouds.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-clouds .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-clouds .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #BFBFBF}.ace-clouds .ace_marker-layer .ace_active-line {background: #FFFBD1}.ace-clouds .ace_gutter-active-line {background-color : #dcdcdc}.ace-clouds .ace_marker-layer .ace_selected-word {border: 1px solid #BDD5FC}.ace-clouds .ace_invisible {color: #BFBFBF}.ace-clouds .ace_keyword,.ace-clouds .ace_meta,.ace-clouds .ace_support.ace_constant.ace_property-value {color: #AF956F}.ace-clouds .ace_keyword.ace_operator {color: #484848}.ace-clouds .ace_keyword.ace_other.ace_unit {color: #96DC5F}.ace-clouds .ace_constant.ace_language {color: #39946A}.ace-clouds .ace_constant.ace_numeric {color: #46A609}.ace-clouds .ace_constant.ace_character.ace_entity {color: #BF78CC}.ace-clouds .ace_invalid {background-color: #FF002A}.ace-clouds .ace_fold {background-color: #AF956F;border-color: #000000}.ace-clouds .ace_storage,.ace-clouds .ace_support.ace_class,.ace-clouds .ace_support.ace_function,.ace-clouds .ace_support.ace_other,.ace-clouds .ace_support.ace_type {color: #C52727}.ace-clouds .ace_string {color: #5D90CD}.ace-clouds .ace_comment {color: #BCC8BA}.ace-clouds .ace_entity.ace_name.ace_tag,.ace-clouds .ace_entity.ace_other.ace_attribute-name {color: #606060}.ace-clouds .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y}';var n=e("../lib/dom");n.importCssString(t.cssText,t.cssClass)});ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("./text_highlight_rules").TextHighlightRules,c=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},c.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};n.inherits(c,s),c.getTagRule=function(l){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},c.getStartRule=function(l){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:l}},c.getEndRule=function(l){return{token:"comment.doc",regex:"\\*\\/",next:l}},t.DocCommentHighlightRules=c});ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("./doc_comment_highlight_rules").DocCommentHighlightRules,c=e("./text_highlight_rules").TextHighlightRules,l="[a-zA-Z\\$_\xA1-\uFFFF][a-zA-Z\\d\\$_\xA1-\uFFFF]*",a=function(d){var u=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),h="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",f="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),o("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+l+")(\\.)(prototype)(\\.)("+l+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+l+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+h+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:u,regex:l},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:l},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),o("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:l},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:f},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:f},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!d||!d.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(g,b,x){if(this.next=g=="{"?this.nextState:"",g=="{"&&x.length)x.unshift("start",b);else if(g=="}"&&x.length&&(x.shift(),this.next=x.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return g=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:f},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!d||d.jsx!=!1)&&i.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};n.inherits(a,c);function i(){var d=l.replace("\\d","\\d\\-"),u={onMatch:function(f,g,b){var x=f.charAt(1)=="/"?2:1;return x==1?(g!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):x==2&&g==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:f.slice(0,x)},{type:"meta.tag.tag-name.xml",value:f.substr(x)}]},regex:"",onMatch:function(f,g,b){return g==b[0]&&b.shift(),f.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:f}]},nextState:"jsx"},h,o("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:d},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},u],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function o(d){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:d||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:d||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}t.JavaScriptHighlightRules=a});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,r){"use strict";var n=e("../range").Range,s=function(){};(function(){this.checkOutdent=function(c,l){return/^\s+$/.test(c)?/^\s*\}/.test(l):!1},this.autoOutdent=function(c,l){var a=c.getLine(l),i=a.match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,d=c.findMatchingBracket({row:l,column:o});if(!d||d.row==l)return 0;var u=this.$getIndent(c.getLine(d.row));c.replace(new n(l,0,l,o-1),u)},this.$getIndent=function(c){return c.match(/^\s*/)[0]}}).call(s.prototype),t.MatchingBraceOutdent=s});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,r){"use strict";var n=e("../../lib/oop"),s=e("../../range").Range,c=e("./fold_mode").FoldMode,l=t.FoldMode=function(a){a&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+a.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+a.end)))};n.inherits(l,c),(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(a,i,o){var d=a.getLine(o);if(this.singleLineBlockCommentRe.test(d)&&!this.startRegionRe.test(d)&&!this.tripleStarBlockCommentRe.test(d))return"";var u=this._getFoldWidgetBase(a,i,o);return!u&&this.startRegionRe.test(d)?"start":u},this.getFoldWidgetRange=function(a,i,o,d){var u=a.getLine(o);if(this.startRegionRe.test(u))return this.getCommentRegionBlock(a,u,o);var g=u.match(this.foldingStartMarker);if(g){var h=g.index;if(g[1])return this.openingBracketBlock(a,g[1],o,h);var f=a.getCommentFoldRange(o,h+g[0].length,1);return f&&!f.isMultiLine()&&(d?f=this.getSectionRange(a,o):i!="all"&&(f=null)),f}if(i!=="markbegin"){var g=u.match(this.foldingStopMarker);if(g){var h=g.index+g[0].length;return g[1]?this.closingBracketBlock(a,g[1],o,h):a.getCommentFoldRange(o,h,-1)}}},this.getSectionRange=function(a,i){var o=a.getLine(i),d=o.search(/\S/),u=i,h=o.length;i=i+1;for(var f=i,g=a.getLength();++ib)break;var x=this.getFoldWidgetRange(a,"all",i);if(x){if(x.start.row<=u)break;if(x.isMultiLine())i=x.end.row;else if(d==b)break}f=i}}return new s(u,h,f,a.getLine(f).length)},this.getCommentRegionBlock=function(a,i,o){for(var d=i.search(/\s*$/),u=a.getLength(),h=o,f=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++oh)return new s(h,d,x,i.length)}}).call(l.prototype)});ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t,r){"use strict";var n=e("../lib/oop"),s=e("./text").Mode,c=e("./javascript_highlight_rules").JavaScriptHighlightRules,l=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,i=e("./behaviour/cstyle").CstyleBehaviour,o=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=c,this.$outdent=new l,this.$behaviour=new i,this.foldingRules=new o};n.inherits(d,s),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(u,h,f){var g=this.$getIndent(h),b=this.getTokenizer().getLineTokens(h,u),x=b.tokens,A=b.state;if(x.length&&x[x.length-1].type=="comment")return g;if(u=="start"||u=="no_regex"){var v=h.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);v&&(g+=f)}else if(u=="doc-start"){if(A=="start"||A=="no_regex")return"";var v=h.match(/^\s*(\/?)\*/);v&&(v[1]&&(g+=" "),g+="* ")}return g},this.checkOutdent=function(u,h,f){return this.$outdent.checkOutdent(h,f)},this.autoOutdent=function(u,h,f){this.$outdent.autoOutdent(h,f)},this.createWorker=function(u){var h=new a(["ace"],Lc(),"JavaScriptWorker");return h.attachToDocument(u.getDocument()),h.on("annotate",function(f){u.setAnnotations(f.data)}),h.on("terminate",function(){u.clearAnnotations()}),h},this.$id="ace/mode/javascript"}).call(d.prototype),t.Mode=d});function Rg(e,t){if(e&1){let r=Ro();fe(0,"ace",11),Se("blur",function(s){Ue(r);let c=Fe();return ze(c.onEditorBlur(s))})("focus",function(s){Ue(r);let c=Fe();return ze(c.onEditorFocus(s))})("valueChange",function(s){Ue(r);let c=Fe();return ze(c.onValueChange(s))})("selectionChange",function(s){Ue(r);let c=Fe();return ze(c.onSelectionChange(s))}),Oo("valueChange",function(s){Ue(r);let c=Fe();return rc(c.content,s)||(c.content=s),ze(s)}),ve()}if(e&2){let r=Fe();ct("config",r.config)("disabled",r.disabled),No("value",r.content)}}function Ng(e,t){if(e&1){let r=Ro();fe(0,"div",12),Se("blur",function(s){Ue(r);let c=Fe();return ze(c.onEditorBlur(s))})("focus",function(s){Ue(r);let c=Fe();return ze(c.onEditorFocus(s))})("change",function(s){Ue(r);let c=Fe();return ze(c.onContentChange(s))})("selectionChange",function(s){Ue(r);let c=Fe();return ze(c.onSelectionChange(s))}),_e(1," Some example content "),ve()}if(e&2){let r=Fe();ct("ace",r.config)("disabled",r.disabled)}}var Rc=(()=>{class e{show=!0;type="component";content="Some example content";disabled=!1;config={mode:"text",theme:"github",readOnly:!1};componentRef;directiveRef;constructor(){}ngAfterViewInit(){}toggleType(){this.type=this.type==="component"?"directive":"component"}toggleMode(){this.config.mode=this.config.mode==="text"?"javascript":"text"}toggleTheme(){this.config.theme=this.config.theme==="github"?"clouds":"github"}toggleDisabled(){this.disabled=!this.disabled}toggleReadonly(){this.config.readOnly=this.config.readOnly!==!0}clearEditorContent(){this.type==="directive"&&this.directiveRef?this.directiveRef.clear():this.type==="component"&&this.componentRef&&this.componentRef.directiveRef&&this.componentRef.directiveRef.clear()}onEditorBlur(r){console.log("Editor blur:",r)}onEditorFocus(r){console.log("Editor focus:",r)}onValueChange(r){console.log("Value change:",r)}onContentChange(r){console.log("Content change:",r)}onSelectionChange(r){console.log("Selection change:",r)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=lr({type:e,selectors:[["my-app"]],viewQuery:function(n,s){if(n&1&&(yn(Sn,5),yn(it,5)),n&2){let c;bn(c=wn())&&(s.componentRef=c.first),bn(c=wn())&&(s.directiveRef=c.first)}},decls:29,vars:5,consts:[[1,"box-container","flex-col"],[1,"app-title"],[1,"info-container"],[1,"horizontal-container","flex","content-stretch","flex-col","md:flex-row"],[1,"vertical-container","flex-1","flex-col","content-stretch",2,"min-width","0"],[1,"box-title"],[1,"action-container","flex-col","content-stretch"],[1,"action-button","flex","items-center","justify-center",3,"click"],[1,"content-container","flex","flex-col","content-stretch"],["class","flex",3,"config","disabled","value","blur","focus","valueChange","selectionChange",4,"ngIf"],["class","ace-editor flex flex-1",3,"ace","disabled","blur","focus","change","selectionChange",4,"ngIf"],[1,"flex",3,"blur","focus","valueChange","selectionChange","config","disabled","value"],[1,"ace-editor","flex","flex-1",3,"blur","focus","change","selectionChange","ace","disabled"]],template:function(n,s){n&1&&(fe(0,"div",0)(1,"div",1),_e(2,"Simple example app for the ngx-ace-wrapper"),ve(),fe(3,"div",2),_e(4," This example only shows some of the available features, to see all check Ace demos / documentation. "),ve(),fe(5,"div",3)(6,"div",4)(7,"div",5),_e(8,"Settings"),ve(),fe(9,"div",6)(10,"div",7),Se("click",function(){return s.toggleType()}),_e(11),ve(),fe(12,"div",7),Se("click",function(){return s.toggleDisabled()}),fe(13,"span"),_e(14,"Toggle disabled state"),ve()(),fe(15,"div",7),Se("click",function(){return s.toggleReadonly()}),_e(16,"Toggle read-only mode"),ve(),fe(17,"div",7),Se("click",function(){return s.toggleMode()}),_e(18),ve(),fe(19,"div",7),Se("click",function(){return s.toggleTheme()}),_e(20),ve(),fe(21,"div",7),Se("click",function(){return s.clearEditorContent()}),_e(22,"Clear the editor content"),ve()()(),fe(23,"div",4)(24,"div",5),_e(25,"Ace"),ve(),fe(26,"div",8),Mo(27,Rg,1,3,"ace",9)(28,Ng,2,2,"div",10),ve()()()()),n&2&&(Gt(11),En(s.type==="component"?"Switch to directive":"Switch to component"),Gt(7),En(s.config.mode==="javascript"?"Change to text mode":"Change to javascript mode"),Gt(2),En(s.config.theme==="github"?"Change to clouds theme":"Change to github theme"),Gt(7),ct("ngIf",s.type==="component"&&s.show),Gt(),ct("ngIf",s.type==="directive"&&s.show))},dependencies:[vc,Sn,it],styles:[".app-title[_ngcontent-%COMP%]{font-size:24px}.box-title[_ngcontent-%COMP%]{font-size:20px}.box-container[_ngcontent-%COMP%]{box-sizing:border-box;width:800px;max-width:90%;max-height:90%;padding:24px;margin:24px auto;border-radius:4px;color:#555;background-color:#eee;box-shadow:0 6px 20px #0000002e,0 6px 6px #00000040}.info-container[_ngcontent-%COMP%]{padding:12px 16px;line-height:24px}.action-container[_ngcontent-%COMP%]{overflow:auto;padding:16px}.content-container[_ngcontent-%COMP%]{overflow:visible}.action-container[_ngcontent-%COMP%], .content-container[_ngcontent-%COMP%]{position:relative;height:300px;min-height:0;margin:8px 16px;border-radius:4px;background-color:#fff}.action-button[_ngcontent-%COMP%]{box-sizing:border-box;width:calc(100% - 16px);min-height:35px;padding:4px 16px;margin:8px;border:1px solid #555;border-radius:4px;cursor:pointer;font-size:14px;font-weight:700;line-height:14px;text-align:center}.action-button[_ngcontent-%COMP%]:hover{color:#fff;background-color:#555}"]})}return e})();var Og={tabSize:2},Nc=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=et({type:e,bootstrap:[Rc]});static \u0275inj=Je({providers:[{provide:kn,useValue:Og}],imports:[Xo,Ct,Sc]})}return e})();kc().bootstrapModule(Nc); diff --git a/browser/polyfills.js b/browser/polyfills.js index 475dc89..e322ce7 100644 --- a/browser/polyfills.js +++ b/browser/polyfills.js @@ -1,2 +1,2 @@ -(function(e){let n=e.performance;function s(A){n&&n.mark&&n.mark(A)}function r(A,h){n&&n.measure&&n.measure(A,h)}s("Zone");let i=e.__Zone_symbol_prefix||"__zone_symbol__";function l(A){return i+A}let m=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(m||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let E=(()=>{let h=class h{static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=h.current;for(;t.parent;)t=t.parent;return t}static get current(){return W.zone}static get currentTask(){return ne}static __load_patch(t,_,w=!1){if(oe.hasOwnProperty(t)){if(!w&&m)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let L="Zone:"+t;s(L),oe[t]=_(e,h,Y),r(L,L)}}get parent(){return this._parent}get name(){return this._name}constructor(t,_){this._parent=t,this._name=_?_.name||"unnamed":"",this._properties=_&&_.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,_)}get(t){let _=this.getZoneWith(t);if(_)return _._properties[t]}getZoneWith(t){let _=this;for(;_;){if(_._properties.hasOwnProperty(t))return _;_=_._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,_){if(typeof t!="function")throw new Error("Expecting function got: "+t);let w=this._zoneDelegate.intercept(this,t,_),L=this;return function(){return L.runGuarded(w,this,arguments,_)}}run(t,_,w,L){W={parent:W,zone:this};try{return this._zoneDelegate.invoke(this,t,_,w,L)}finally{W=W.parent}}runGuarded(t,_=null,w,L){W={parent:W,zone:this};try{try{return this._zoneDelegate.invoke(this,t,_,w,L)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{W=W.parent}}runTask(t,_,w){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===G&&(t.type===Q||t.type===P))return;let L=t.state!=y;L&&t._transitionTo(y,j),t.runCount++;let a=ne;ne=t,W={parent:W,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,_,w)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{t.state!==G&&t.state!==d&&(t.type==Q||t.data&&t.data.isPeriodic?L&&t._transitionTo(j,y):(t.runCount=0,this._updateTaskCount(t,-1),L&&t._transitionTo(G,y,G))),W=W.parent,ne=a}}scheduleTask(t){if(t.zone&&t.zone!==this){let w=this;for(;w;){if(w===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);w=w.parent}}t._transitionTo(z,G);let _=[];t._zoneDelegates=_,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(w){throw t._transitionTo(d,z,G),this._zoneDelegate.handleError(this,w),w}return t._zoneDelegates===_&&this._updateTaskCount(t,1),t.state==z&&t._transitionTo(j,z),t}scheduleMicroTask(t,_,w,L){return this.scheduleTask(new p(I,t,_,w,L,void 0))}scheduleMacroTask(t,_,w,L,a){return this.scheduleTask(new p(P,t,_,w,L,a))}scheduleEventTask(t,_,w,L,a){return this.scheduleTask(new p(Q,t,_,w,L,a))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(!(t.state!==j&&t.state!==y)){t._transitionTo(V,j,y);try{this._zoneDelegate.cancelTask(this,t)}catch(_){throw t._transitionTo(d,V),this._zoneDelegate.handleError(this,_),_}return this._updateTaskCount(t,-1),t._transitionTo(G,V),t.runCount=0,t}}_updateTaskCount(t,_){let w=t._zoneDelegates;_==-1&&(t._zoneDelegates=null);for(let L=0;LA.hasTask(c,t),onScheduleTask:(A,h,c,t)=>A.scheduleTask(c,t),onInvokeTask:(A,h,c,t,_,w)=>A.invokeTask(c,t,_,w),onCancelTask:(A,h,c,t)=>A.cancelTask(c,t)};class v{constructor(h,c,t){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=h,this._parentDelegate=c,this._forkZS=t&&(t&&t.onFork?t:c._forkZS),this._forkDlgt=t&&(t.onFork?c:c._forkDlgt),this._forkCurrZone=t&&(t.onFork?this.zone:c._forkCurrZone),this._interceptZS=t&&(t.onIntercept?t:c._interceptZS),this._interceptDlgt=t&&(t.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=t&&(t.onIntercept?this.zone:c._interceptCurrZone),this._invokeZS=t&&(t.onInvoke?t:c._invokeZS),this._invokeDlgt=t&&(t.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=t&&(t.onInvoke?this.zone:c._invokeCurrZone),this._handleErrorZS=t&&(t.onHandleError?t:c._handleErrorZS),this._handleErrorDlgt=t&&(t.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=t&&(t.onHandleError?this.zone:c._handleErrorCurrZone),this._scheduleTaskZS=t&&(t.onScheduleTask?t:c._scheduleTaskZS),this._scheduleTaskDlgt=t&&(t.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=t&&(t.onScheduleTask?this.zone:c._scheduleTaskCurrZone),this._invokeTaskZS=t&&(t.onInvokeTask?t:c._invokeTaskZS),this._invokeTaskDlgt=t&&(t.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=t&&(t.onInvokeTask?this.zone:c._invokeTaskCurrZone),this._cancelTaskZS=t&&(t.onCancelTask?t:c._cancelTaskZS),this._cancelTaskDlgt=t&&(t.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=t&&(t.onCancelTask?this.zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let _=t&&t.onHasTask,w=c&&c._hasTaskZS;(_||w)&&(this._hasTaskZS=_?t:b,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=h,t.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this.zone),t.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this.zone),t.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this.zone))}fork(h,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,h,c):new E(h,c)}intercept(h,c,t){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,h,c,t):c}invoke(h,c,t,_,w){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,h,c,t,_,w):c.apply(t,_)}handleError(h,c){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,h,c):!0}scheduleTask(h,c){let t=c;if(this._scheduleTaskZS)this._hasTaskZS&&t._zoneDelegates.push(this._hasTaskDlgtOwner),t=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,h,c),t||(t=c);else if(c.scheduleFn)c.scheduleFn(c);else if(c.type==I)C(c);else throw new Error("Task is missing scheduleFn.");return t}invokeTask(h,c,t,_){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,h,c,t,_):c.callback.apply(t,_)}cancelTask(h,c){let t;if(this._cancelTaskZS)t=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,h,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");t=c.cancelFn(c)}return t}hasTask(h,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,h,c)}catch(t){this.handleError(h,t)}}_updateTaskCount(h,c){let t=this._taskCounts,_=t[h],w=t[h]=_+c;if(w<0)throw new Error("More tasks executed then were scheduled.");if(_==0||w==0){let L={microTask:t.microTask>0,macroTask:t.macroTask>0,eventTask:t.eventTask>0,change:h};this.hasTask(this.zone,L)}}}class p{constructor(h,c,t,_,w,L){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=h,this.source=c,this.data=_,this.scheduleFn=w,this.cancelFn=L,!t)throw new Error("callback is not defined");this.callback=t;let a=this;h===Q&&_&&_.useG?this.invoke=p.invokeTask:this.invoke=function(){return p.invokeTask.call(e,a,this,arguments)}}static invokeTask(h,c,t){h||(h=this),ee++;try{return h.runCount++,h.zone.runTask(h,c,t)}finally{ee==1&&T(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(G,z)}_transitionTo(h,c,t){if(this._state===c||this._state===t)this._state=h,h==G&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${h}', expecting state '${c}'${t?" or '"+t+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let M=l("setTimeout"),O=l("Promise"),N=l("then"),U=[],H=!1,K;function X(A){if(K||e[O]&&(K=e[O].resolve(0)),K){let h=K[N];h||(h=K.then),h.call(K,A)}else e[M](A,0)}function C(A){ee===0&&U.length===0&&X(T),A&&U.push(A)}function T(){if(!H){for(H=!0;U.length;){let A=U;U=[];for(let h=0;hW,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:C,showUncaughtError:()=>!E[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:X},W={parent:null,zone:new E(null,null)},ne=null,ee=0;function q(){}return r("Zone","Zone"),e.Zone=E})(globalThis);var me=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,Ie=Object.getPrototypeOf,it=Object.create,ct=Array.prototype.slice,Me="addEventListener",Le="removeEventListener",Se=Zone.__symbol__(Me),De=Zone.__symbol__(Le),ie="true",ce="false",pe=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function je(e,n,s,r,i){return Zone.current.scheduleMacroTask(e,n,s,r,i)}var x=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,$=Pe&&Te||globalThis,at="removeAttribute";function He(e,n){for(let s=e.length-1;s>=0;s--)typeof e[s]=="function"&&(e[s]=Ae(e[s],n+"_"+s));return e}function lt(e,n){let s=e.constructor.name;for(let r=0;r{let b=function(){return E.apply(this,He(arguments,s+"."+i))};return ae(b,E),b})(l)}}}function Ye(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var $e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in $)&&typeof $.process<"u"&&{}.toString.call($.process)==="[object process]",xe=!we&&!$e&&!!(Pe&&Te.HTMLElement),Je=typeof $.process<"u"&&{}.toString.call($.process)==="[object process]"&&!$e&&!!(Pe&&Te.HTMLElement),be={},We=function(e){if(e=e||$.event,!e)return;let n=be[e.type];n||(n=be[e.type]=x("ON_PROPERTY"+e.type));let s=this||e.target||$,r=s[n],i;if(xe&&s===Te&&e.type==="error"){let l=e;i=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),i===!0&&e.preventDefault()}else i=r&&r.apply(this,arguments),i!=null&&!i&&e.preventDefault();return i};function qe(e,n,s){let r=me(e,n);if(!r&&s&&me(s,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let i=x("on"+n+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete r.writable,delete r.value;let l=r.get,m=r.set,E=n.slice(2),b=be[E];b||(b=be[E]=x("ON_PROPERTY"+E)),r.set=function(v){let p=this;if(!p&&e===$&&(p=$),!p)return;typeof p[b]=="function"&&p.removeEventListener(E,We),m&&m.call(p,null),p[b]=v,typeof v=="function"&&p.addEventListener(E,We,!1)},r.get=function(){let v=this;if(!v&&e===$&&(v=$),!v)return null;let p=v[b];if(p)return p;if(l){let M=l.call(this);if(M)return r.set.call(this,M),typeof v[at]=="function"&&v.removeAttribute(n),M}return null},Ne(e,n,r),e[i]=!0}function Ke(e,n,s){if(n)for(let r=0;rfunction(m,E){let b=s(m,E);return b.cbIdx>=0&&typeof E[b.cbIdx]=="function"?je(b.name,E[b.cbIdx],b,i):l.apply(m,E)})}function ae(e,n){e[x("OriginalDelegate")]=n}var Xe=!1,Ze=!1;function ft(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function ht(){if(Xe)return Ze;Xe=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,s)=>{let r=Object.getOwnPropertyDescriptor,i=Object.defineProperty;function l(a){if(a&&a.toString===Object.prototype.toString){let u=a.constructor&&a.constructor.name;return(u||"")+": "+JSON.stringify(a)}return a?a.toString():Object.prototype.toString.call(a)}let m=s.symbol,E=[],b=e[m("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,v=m("Promise"),p=m("then"),M="__creationTrace__";s.onUnhandledError=a=>{if(s.showUncaughtError()){let u=a&&a.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",a.zone.name,"; Task:",a.task&&a.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(a)}},s.microtaskDrainDone=()=>{for(;E.length;){let a=E.shift();try{a.zone.runGuarded(()=>{throw a.throwOriginal?a.rejection:a})}catch(u){N(u)}}};let O=m("unhandledPromiseRejectionHandler");function N(a){s.onUnhandledError(a);try{let u=n[O];typeof u=="function"&&u.call(this,a)}catch{}}function U(a){return a&&a.then}function H(a){return a}function K(a){return c.reject(a)}let X=m("state"),C=m("value"),T=m("finally"),J=m("parentPromiseValue"),G=m("parentPromiseState"),z="Promise.then",j=null,y=!0,V=!1,d=0;function I(a,u){return o=>{try{Y(a,u,o)}catch(f){Y(a,!1,f)}}}let P=function(){let a=!1;return function(o){return function(){a||(a=!0,o.apply(null,arguments))}}},Q="Promise resolved with itself",oe=m("currentTaskTrace");function Y(a,u,o){let f=P();if(a===o)throw new TypeError(Q);if(a[X]===j){let k=null;try{(typeof o=="object"||typeof o=="function")&&(k=o&&o.then)}catch(R){return f(()=>{Y(a,!1,R)})(),a}if(u!==V&&o instanceof c&&o.hasOwnProperty(X)&&o.hasOwnProperty(C)&&o[X]!==j)ne(o),Y(a,o[X],o[C]);else if(u!==V&&typeof k=="function")try{k.call(o,f(I(a,u)),f(I(a,!1)))}catch(R){f(()=>{Y(a,!1,R)})()}else{a[X]=u;let R=a[C];if(a[C]=o,a[T]===T&&u===y&&(a[X]=a[G],a[C]=a[J]),u===V&&o instanceof Error){let g=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];g&&i(o,oe,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g{try{let S=a[C],D=!!o&&T===o[T];D&&(o[J]=S,o[G]=R);let Z=u.run(g,void 0,D&&g!==K&&g!==H?[]:[S]);Y(o,!0,Z)}catch(S){Y(o,!1,S)}},o)}let q="function ZoneAwarePromise() { [native code] }",A=function(){},h=e.AggregateError;class c{static toString(){return q}static resolve(u){return Y(new this(null),y,u)}static reject(u){return Y(new this(null),V,u)}static any(u){if(!u||typeof u[Symbol.iterator]!="function")return Promise.reject(new h([],"All promises were rejected"));let o=[],f=0;try{for(let g of u)f++,o.push(c.resolve(g))}catch{return Promise.reject(new h([],"All promises were rejected"))}if(f===0)return Promise.reject(new h([],"All promises were rejected"));let k=!1,R=[];return new c((g,S)=>{for(let D=0;D{k||(k=!0,g(Z))},Z=>{R.push(Z),f--,f===0&&(k=!0,S(new h(R,"All promises were rejected")))})})}static race(u){let o,f,k=new this((S,D)=>{o=S,f=D});function R(S){o(S)}function g(S){f(S)}for(let S of u)U(S)||(S=this.resolve(S)),S.then(R,g);return k}static all(u){return c.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof c?this:c).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,o){let f,k,R=new this((Z,F)=>{f=Z,k=F}),g=2,S=0,D=[];for(let Z of u){U(Z)||(Z=this.resolve(Z));let F=S;try{Z.then(B=>{D[F]=o?o.thenCallback(B):B,g--,g===0&&f(D)},B=>{o?(D[F]=o.errorCallback(B),g--,g===0&&f(D)):k(B)})}catch(B){k(B)}g++,S++}return g-=2,g===0&&f(D),R}constructor(u){let o=this;if(!(o instanceof c))throw new Error("Must be an instanceof Promise.");o[X]=j,o[C]=[];try{let f=P();u&&u(f(I(o,y)),f(I(o,V)))}catch(f){Y(o,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return c}then(u,o){let f=this.constructor?.[Symbol.species];(!f||typeof f!="function")&&(f=this.constructor||c);let k=new f(A),R=n.current;return this[X]==j?this[C].push(R,k,u,o):ee(this,R,k,u,o),k}catch(u){return this.then(null,u)}finally(u){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=c);let f=new o(A);f[T]=T;let k=n.current;return this[X]==j?this[C].push(k,f,u,u):ee(this,k,f,u,u),f}}c.resolve=c.resolve,c.reject=c.reject,c.race=c.race,c.all=c.all;let t=e[v]=e.Promise;e.Promise=c;let _=m("thenPatched");function w(a){let u=a.prototype,o=r(u,"then");if(o&&(o.writable===!1||!o.configurable))return;let f=u.then;u[p]=f,a.prototype.then=function(k,R){return new c((S,D)=>{f.call(this,S,D)}).then(k,R)},a[_]=!0}s.patchThen=w;function L(a){return function(u,o){let f=a.apply(u,o);if(f instanceof c)return f;let k=f.constructor;return k[_]||w(k),f}}return t&&(w(t),le(e,"fetch",a=>L(a))),Promise[n.__symbol__("uncaughtPromiseErrors")]=E,c});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,s=x("OriginalDelegate"),r=x("Promise"),i=x("Error"),l=function(){if(typeof this=="function"){let v=this[s];if(v)return typeof v=="function"?n.call(v):Object.prototype.toString.call(v);if(this===Promise){let p=e[r];if(p)return n.call(p)}if(this===Error){let p=e[i];if(p)return n.call(p)}}return n.call(this)};l[s]=n,Function.prototype.toString=l;let m=Object.prototype.toString,E="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?E:m.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var dt={useG:!0},te={},Qe={},et=new RegExp("^"+pe+"(\\w+)(true|false)$"),tt=x("propagationStopped");function nt(e,n){let s=(n?n(e):e)+ce,r=(n?n(e):e)+ie,i=pe+s,l=pe+r;te[e]={},te[e][ce]=i,te[e][ie]=l}function _t(e,n,s,r){let i=r&&r.add||Me,l=r&&r.rm||Le,m=r&&r.listeners||"eventListeners",E=r&&r.rmAll||"removeAllListeners",b=x(i),v="."+i+":",p="prependListener",M="."+p+":",O=function(C,T,J){if(C.isRemoved)return;let G=C.callback;typeof G=="object"&&G.handleEvent&&(C.callback=y=>G.handleEvent(y),C.originalDelegate=G);let z;try{C.invoke(C,T,[J])}catch(y){z=y}let j=C.options;if(j&&typeof j=="object"&&j.once){let y=C.originalDelegate?C.originalDelegate:C.callback;T[l].call(T,J.type,y,j)}return z};function N(C,T,J){if(T=T||e.event,!T)return;let G=C||T.target||e,z=G[te[T.type][J?ie:ce]];if(z){let j=[];if(z.length===1){let y=O(z[0],G,T);y&&j.push(y)}else{let y=z.slice();for(let V=0;V{throw V})}}}let U=function(C){return N(this,C,!1)},H=function(C){return N(this,C,!0)};function K(C,T){if(!C)return!1;let J=!0;T&&T.useG!==void 0&&(J=T.useG);let G=T&&T.vh,z=!0;T&&T.chkDup!==void 0&&(z=T.chkDup);let j=!1;T&&T.rt!==void 0&&(j=T.rt);let y=C;for(;y&&!y.hasOwnProperty(i);)y=Ie(y);if(!y&&C[i]&&(y=C),!y||y[b])return!1;let V=T&&T.eventNameToString,d={},I=y[b]=y[i],P=y[x(l)]=y[l],Q=y[x(m)]=y[m],oe=y[x(E)]=y[E],Y;T&&T.prepend&&(Y=y[x(T.prepend)]=y[T.prepend]);function W(o,f){return!_e&&typeof o=="object"&&o?!!o.capture:!_e||!f?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let ne=function(o){if(!d.isExisting)return I.call(d.target,d.eventName,d.capture?H:U,d.options)},ee=function(o){if(!o.isRemoved){let f=te[o.eventName],k;f&&(k=f[o.capture?ie:ce]);let R=k&&o.target[k];if(R){for(let g=0;gfunction(i,l){i[tt]=!0,r&&r.apply(i,l)})}function Tt(e,n,s,r,i){let l=Zone.__symbol__(r);if(n[l])return;let m=n[l]=n[r];n[r]=function(E,b,v){return b&&b.prototype&&i.forEach(function(p){let M=`${s}.${r}::`+p,O=b.prototype;try{if(O.hasOwnProperty(p)){let N=e.ObjectGetOwnPropertyDescriptor(O,p);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,M),e._redefineProperty(b.prototype,p,N)):O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],M))}else O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],M))}catch{}}),m.call(n,E,b,v)},e.attachOriginToPatched(n[r],m)}function ot(e,n,s){if(!s||s.length===0)return n;let r=s.filter(l=>l.target===e);if(!r||r.length===0)return n;let i=r[0].ignoreProperties;return n.filter(l=>i.indexOf(l)===-1)}function ze(e,n,s,r){if(!e)return;let i=ot(e,n,s);Ke(e,i,r)}function Oe(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function yt(e,n){if(we&&!Je||Zone[e.symbol("patchEvents")])return;let s=n.__Zone_ignore_on_properties,r=[];if(xe){let i=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ft()?[{target:i,ignoreProperties:["error"]}]:[];ze(i,Oe(i),s&&s.concat(l),Ie(i))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i{let r=Oe(e);s.patchOnProperties=Ke,s.patchMethod=le,s.bindArguments=He,s.patchMacroTask=ut;let i=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[i]=e[l]),e[i]&&(n[i]=n[l]=e[i]),s.patchEventPrototype=Et,s.patchEventTarget=_t,s.isIEOrEdge=ht,s.ObjectDefineProperty=Ne,s.ObjectGetOwnPropertyDescriptor=me,s.ObjectCreate=it,s.ArraySlice=ct,s.patchClass=ge,s.wrapWithCurrentZone=Ae,s.filterProperties=ot,s.attachOriginToPatched=ae,s._redefineProperty=Object.defineProperty,s.patchCallbacks=Tt,s.getGlobalObjects=()=>({globalSources:Qe,zoneSymbolEventNames:te,eventNames:r,isBrowser:xe,isMix:Je,isNode:we,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:Me,REMOVE_EVENT_LISTENER_STR:Le})});function mt(e,n){n.patchMethod(e,"queueMicrotask",s=>function(r,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}var ve=x("zoneTask");function Ee(e,n,s,r){let i=null,l=null;n+=r,s+=r;let m={};function E(v){let p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=i.apply(e,p.args),v}function b(v){return l.call(e,v.data.handleId)}i=le(e,n,v=>function(p,M){if(typeof M[0]=="function"){let O={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||(typeof O.handleId=="number"?delete m[O.handleId]:O.handleId&&(O.handleId[ve]=null))}};let U=je(n,M[0],O,E,b);if(!U)return U;let H=U.data.handleId;return typeof H=="number"?m[H]=U:H&&(H[ve]=U),H&&H.ref&&H.unref&&typeof H.ref=="function"&&typeof H.unref=="function"&&(U.ref=H.ref.bind(H),U.unref=H.unref.bind(H)),typeof H=="number"||H?H:U}else return v.apply(e,M)}),l=le(e,s,v=>function(p,M){let O=M[0],N;typeof O=="number"?N=m[O]:(N=O&&O[ve],N||(N=O)),N&&typeof N.type=="string"?N.state!=="notScheduled"&&(N.cancelFn&&N.data.isPeriodic||N.runCount===0)&&(typeof O=="number"?delete m[O]:O&&(O[ve]=null),N.zone.cancelTask(N)):v.apply(e,M)})}function pt(e,n){let{isBrowser:s,isMix:r}=n.getGlobalObjects();if(!s&&!r||!e.customElements||!("customElements"in e))return;let i=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",i)}function gt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:s,zoneSymbolEventNames:r,TRUE_STR:i,FALSE_STR:l,ZONE_SYMBOL_PREFIX:m}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",s="clear";Ee(e,n,s,"Timeout"),Ee(e,n,s,"Interval"),Ee(e,n,s,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let s=["alert","prompt","confirm"];for(let r=0;rfunction(b,v){return n.current.run(l,e,v,E)})}});Zone.__load_patch("EventTarget",(e,n,s)=>{kt(e,s),gt(e,s);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&s.patchEventTarget(e,s,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,s)=>{ge("MutationObserver"),ge("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,s)=>{ge("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,s)=>{ge("FileReader")});Zone.__load_patch("on_property",(e,n,s)=>{yt(s,e)});Zone.__load_patch("customElements",(e,n,s)=>{pt(e,s)});Zone.__load_patch("XHR",(e,n)=>{b(e);let s=x("xhrTask"),r=x("xhrSync"),i=x("xhrListener"),l=x("xhrScheduled"),m=x("xhrURL"),E=x("xhrErrorBeforeScheduled");function b(v){let p=v.XMLHttpRequest;if(!p)return;let M=p.prototype;function O(d){return d[s]}let N=M[Se],U=M[De];if(!N){let d=v.XMLHttpRequestEventTarget;if(d){let I=d.prototype;N=I[Se],U=I[De]}}let H="readystatechange",K="scheduled";function X(d){let I=d.data,P=I.target;P[l]=!1,P[E]=!1;let Q=P[i];N||(N=P[Se],U=P[De]),Q&&U.call(P,H,Q);let oe=P[i]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[l]&&d.state===K){let W=P[n.__symbol__("loadfalse")];if(P.status!==0&&W&&W.length>0){let ne=d.invoke;d.invoke=function(){let ee=P[n.__symbol__("loadfalse")];for(let q=0;qfunction(d,I){return d[r]=I[2]==!1,d[m]=I[1],J.apply(d,I)}),G="XMLHttpRequest.send",z=x("fetchTaskAborting"),j=x("fetchTaskScheduling"),y=le(M,"send",()=>function(d,I){if(n.current[j]===!0||d[r])return y.apply(d,I);{let P={target:d,url:d[m],isPeriodic:!1,args:I,aborted:!1},Q=je(G,C,P,X,T);d&&d[E]===!0&&!P.aborted&&Q.state===K&&Q.invoke()}}),V=le(M,"abort",()=>function(d,I){let P=O(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[z]===!0)return V.apply(d,I)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&<(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function s(r){return function(i){rt(e,r).forEach(m=>{let E=e.PromiseRejectionEvent;if(E){let b=new E(r,{promise:i.promise,reason:i.rejection});m.invoke(b)}})}}e.PromiseRejectionEvent&&(n[x("unhandledPromiseRejectionHandler")]=s("unhandledrejection"),n[x("rejectionHandledHandler")]=s("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,s)=>{mt(e,s)}); +var ie=globalThis;function Q(t){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+t}function ft(){let t=ie.performance;function r(L){t&&t.mark&&t.mark(L)}function i(L,_){t&&t.measure&&t.measure(L,_)}r("Zone");let n=(()=>{let _=class _{static assertZonePatched(){if(ie.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=_.current;for(;e.parent;)e=e.parent;return e}static get current(){return v.zone}static get currentTask(){return S}static __load_patch(e,h,D=!1){if(O.hasOwnProperty(e)){let j=ie[Q("forceDuplicateZoneCheck")]===!0;if(!D&&j)throw Error("Already loaded patch: "+e)}else if(!ie["__Zone_disable_"+e]){let j="Zone:"+e;r(j),O[e]=h(ie,_,w),i(j,j)}}get parent(){return this._parent}get name(){return this._name}constructor(e,h){this._parent=e,this._name=h?h.name||"unnamed":"",this._properties=h&&h.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,h)}get(e){let h=this.getZoneWith(e);if(h)return h._properties[e]}getZoneWith(e){let h=this;for(;h;){if(h._properties.hasOwnProperty(e))return h;h=h._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,h){if(typeof e!="function")throw new Error("Expecting function got: "+e);let D=this._zoneDelegate.intercept(this,e,h),j=this;return function(){return j.runGuarded(D,this,arguments,h)}}run(e,h,D,j){v={parent:v,zone:this};try{return this._zoneDelegate.invoke(this,e,h,D,j)}finally{v=v.parent}}runGuarded(e,h=null,D,j){v={parent:v,zone:this};try{try{return this._zoneDelegate.invoke(this,e,h,D,j)}catch(N){if(this._zoneDelegate.handleError(this,N))throw N}}finally{v=v.parent}}runTask(e,h,D){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||te).name+"; Execution: "+this.name+")");if(e.state===Y&&(e.type===W||e.type===y))return;let j=e.state!=B;j&&e._transitionTo(B,d),e.runCount++;let N=S;S=e,v={parent:v,zone:this};try{e.type==y&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,h,D)}catch(he){if(this._zoneDelegate.handleError(this,he))throw he}}finally{e.state!==Y&&e.state!==$&&(e.type==W||e.data&&e.data.isPeriodic?j&&e._transitionTo(d,B):(e.runCount=0,this._updateTaskCount(e,-1),j&&e._transitionTo(Y,B,Y))),v=v.parent,S=N}}scheduleTask(e){if(e.zone&&e.zone!==this){let D=this;for(;D;){if(D===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);D=D.parent}}e._transitionTo(b,Y);let h=[];e._zoneDelegates=h,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(D){throw e._transitionTo($,b,Y),this._zoneDelegate.handleError(this,D),D}return e._zoneDelegates===h&&this._updateTaskCount(e,1),e.state==b&&e._transitionTo(d,b),e}scheduleMicroTask(e,h,D,j){return this.scheduleTask(new E(U,e,h,D,j,void 0))}scheduleMacroTask(e,h,D,j,N){return this.scheduleTask(new E(y,e,h,D,j,N))}scheduleEventTask(e,h,D,j,N){return this.scheduleTask(new E(W,e,h,D,j,N))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||te).name+"; Execution: "+this.name+")");if(!(e.state!==d&&e.state!==B)){e._transitionTo(z,d,B);try{this._zoneDelegate.cancelTask(this,e)}catch(h){throw e._transitionTo($,z),this._zoneDelegate.handleError(this,h),h}return this._updateTaskCount(e,-1),e._transitionTo(Y,z),e.runCount=0,e}}_updateTaskCount(e,h){let D=e._zoneDelegates;h==-1&&(e._zoneDelegates=null);for(let j=0;jL.hasTask(c,e),onScheduleTask:(L,_,c,e)=>L.scheduleTask(c,e),onInvokeTask:(L,_,c,e,h,D)=>L.invokeTask(c,e,h,D),onCancelTask:(L,_,c,e)=>L.cancelTask(c,e)};class u{get zone(){return this._zone}constructor(_,c,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=c,this._forkZS=e&&(e&&e.onFork?e:c._forkZS),this._forkDlgt=e&&(e.onFork?c:c._forkDlgt),this._forkCurrZone=e&&(e.onFork?this._zone:c._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:c._interceptZS),this._interceptDlgt=e&&(e.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this._zone:c._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:c._invokeZS),this._invokeDlgt=e&&(e.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this._zone:c._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:c._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this._zone:c._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:c._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this._zone:c._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:c._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this._zone:c._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:c._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this._zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let h=e&&e.onHasTask,D=c&&c._hasTaskZS;(h||D)&&(this._hasTaskZS=h?e:s,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,e.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this._zone),e.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this._zone),e.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this._zone))}fork(_,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,c):new n(_,c)}intercept(_,c,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,c,e):c}invoke(_,c,e,h,D){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,c,e,h,D):c.apply(e,h)}handleError(_,c){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,c):!0}scheduleTask(_,c){let e=c;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,c),e||(e=c);else if(c.scheduleFn)c.scheduleFn(c);else if(c.type==U)q(c);else throw new Error("Task is missing scheduleFn.");return e}invokeTask(_,c,e,h){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,c,e,h):c.callback.apply(e,h)}cancelTask(_,c){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");e=c.cancelFn(c)}return e}hasTask(_,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,c)}catch(e){this.handleError(_,e)}}_updateTaskCount(_,c){let e=this._taskCounts,h=e[_],D=e[_]=h+c;if(D<0)throw new Error("More tasks executed then were scheduled.");if(h==0||D==0){let j={microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:_};this.hasTask(this._zone,j)}}}class E{constructor(_,c,e,h,D,j){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=c,this.data=h,this.scheduleFn=D,this.cancelFn=j,!e)throw new Error("callback is not defined");this.callback=e;let N=this;_===W&&h&&h.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ie,N,this,arguments)}}static invokeTask(_,c,e){_||(_=this),K++;try{return _.runCount++,_.zone.runTask(_,c,e)}finally{K==1&&x(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Y,b)}_transitionTo(_,c,e){if(this._state===c||this._state===e)this._state=_,_==Y&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${c}'${e?" or '"+e+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=Q("setTimeout"),p=Q("Promise"),C=Q("then"),g=[],A=!1,P;function H(L){if(P||ie[p]&&(P=ie[p].resolve(0)),P){let _=P[C];_||(_=P.then),_.call(P,L)}else ie[T](L,0)}function q(L){K===0&&g.length===0&&H(x),L&&g.push(L)}function x(){if(!A){for(A=!0;g.length;){let L=g;g=[];for(let _=0;_v,onUnhandledError:X,microtaskDrainDone:X,scheduleMicroTask:q,showUncaughtError:()=>!n[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:X,patchMethod:()=>X,bindArguments:()=>[],patchThen:()=>X,patchMacroTask:()=>X,patchEventPrototype:()=>X,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>X,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>X,wrapWithCurrentZone:()=>X,filterProperties:()=>[],attachOriginToPatched:()=>X,_redefineProperty:()=>X,patchCallbacks:()=>X,nativeScheduleMicroTask:H},v={parent:null,zone:new n(null,null)},S=null,K=0;function X(){}return i("Zone","Zone"),n}function ht(){let t=globalThis,r=t[Q("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(r||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=ft(),t.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Ie=Q(He),Le=Q(xe),ce="true",ae="false",be=Q("");function Ge(t,r){return Zone.current.wrap(t,r)}function Ve(t,r,i,n,s){return Zone.current.scheduleMacroTask(t,r,i,n,s)}var G=Q,Se=typeof window<"u",ye=Se?window:void 0,J=Se&&ye||globalThis,Et="removeAttribute";function Fe(t,r){for(let i=t.length-1;i>=0;i--)typeof t[i]=="function"&&(t[i]=Ge(t[i],r+"_"+i));return t}function Tt(t,r){let i=t.constructor.name;for(let n=0;n{let p=function(){return T.apply(this,Fe(arguments,i+"."+s))};return ue(p,T),p})(u)}}}function Qe(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var et=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Be=!De&&!et&&!!(Se&&ye.HTMLElement),tt=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!et&&!!(Se&&ye.HTMLElement),Ce={},Ye=function(t){if(t=t||J.event,!t)return;let r=Ce[t.type];r||(r=Ce[t.type]=G("ON_PROPERTY"+t.type));let i=this||t.target||J,n=i[r],s;if(Be&&i===ye&&t.type==="error"){let u=t;s=n&&n.call(this,u.message,u.filename,u.lineno,u.colno,u.error),s===!0&&t.preventDefault()}else s=n&&n.apply(this,arguments),s!=null&&!s&&t.preventDefault();return s};function $e(t,r,i){let n=ve(t,r);if(!n&&i&&ve(i,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let s=G("on"+r+"patched");if(t.hasOwnProperty(s)&&t[s])return;delete n.writable,delete n.value;let u=n.get,E=n.set,T=r.slice(2),p=Ce[T];p||(p=Ce[T]=G("ON_PROPERTY"+T)),n.set=function(C){let g=this;if(!g&&t===J&&(g=J),!g)return;typeof g[p]=="function"&&g.removeEventListener(T,Ye),E&&E.call(g,null),g[p]=C,typeof C=="function"&&g.addEventListener(T,Ye,!1)},n.get=function(){let C=this;if(!C&&t===J&&(C=J),!C)return null;let g=C[p];if(g)return g;if(u){let A=u.call(this);if(A)return n.set.call(this,A),typeof C[Et]=="function"&&C.removeAttribute(r),A}return null},Ae(t,r,n),t[s]=!0}function nt(t,r,i){if(r)for(let n=0;nfunction(E,T){let p=i(E,T);return p.cbIdx>=0&&typeof T[p.cbIdx]=="function"?Ve(p.name,T[p.cbIdx],p,s):u.apply(E,T)})}function ue(t,r){t[G("OriginalDelegate")]=r}var Je=!1,Me=!1;function yt(){try{let t=ye.navigator.userAgent;if(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1)return!0}catch{}return!1}function mt(){if(Je)return Me;Je=!0;try{let t=ye.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var ge=!1;if(typeof window<"u")try{let t=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ge=!1}var pt={useG:!0},ee={},rt={},ot=new RegExp("^"+be+"(\\w+)(true|false)$"),st=G("propagationStopped");function it(t,r){let i=(r?r(t):t)+ae,n=(r?r(t):t)+ce,s=be+i,u=be+n;ee[t]={},ee[t][ae]=s,ee[t][ce]=u}function kt(t,r,i,n){let s=n&&n.add||He,u=n&&n.rm||xe,E=n&&n.listeners||"eventListeners",T=n&&n.rmAll||"removeAllListeners",p=G(s),C="."+s+":",g="prependListener",A="."+g+":",P=function(b,d,B){if(b.isRemoved)return;let z=b.callback;typeof z=="object"&&z.handleEvent&&(b.callback=y=>z.handleEvent(y),b.originalDelegate=z);let $;try{b.invoke(b,d,[B])}catch(y){$=y}let U=b.options;if(U&&typeof U=="object"&&U.once){let y=b.originalDelegate?b.originalDelegate:b.callback;d[u].call(d,B.type,y,U)}return $};function H(b,d,B){if(d=d||t.event,!d)return;let z=b||d.target||t,$=z[ee[d.type][B?ce:ae]];if($){let U=[];if($.length===1){let y=P($[0],z,d);y&&U.push(y)}else{let y=$.slice();for(let W=0;W{throw W})}}}let q=function(b){return H(this,b,!1)},x=function(b){return H(this,b,!0)};function te(b,d){if(!b)return!1;let B=!0;d&&d.useG!==void 0&&(B=d.useG);let z=d&&d.vh,$=!0;d&&d.chkDup!==void 0&&($=d.chkDup);let U=!1;d&&d.rt!==void 0&&(U=d.rt);let y=b;for(;y&&!y.hasOwnProperty(s);)y=je(y);if(!y&&b[s]&&(y=b),!y||y[p])return!1;let W=d&&d.eventNameToString,O={},w=y[p]=y[s],v=y[G(u)]=y[u],S=y[G(E)]=y[E],K=y[G(T)]=y[T],X;d&&d.prepend&&(X=y[G(d.prepend)]=y[d.prepend]);function L(o,l){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!l?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let _=function(o){if(!O.isExisting)return w.call(O.target,O.eventName,O.capture?x:q,O.options)},c=function(o){if(!o.isRemoved){let l=ee[o.eventName],k;l&&(k=l[o.capture?ce:ae]);let R=k&&o.target[k];if(R){for(let m=0;mne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(O.target=null,pe&&(pe.taskData=null),Ue&&(O.options.once=!0),!ge&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=M,ne.capture=Oe,ne.eventName=Z,F&&(ne.originalDelegate=V),I?Ee.unshift(ne):Ee.push(ne),m)return M}};return y[s]=a(w,C,j,N,U),X&&(y[g]=a(X,A,h,N,U,!0)),y[u]=function(){let o=this||t,l=arguments[0];d&&d.transferEventName&&(l=d.transferEventName(l));let k=arguments[2],R=k?typeof k=="boolean"?!0:k.capture:!1,m=arguments[1];if(!m)return v.apply(this,arguments);if(z&&!z(v,m,o,arguments))return;let I=ee[l],M;I&&(M=I[R?ce:ae]);let Z=M&&o[M];if(Z)for(let V=0;Vfunction(s,u){s[st]=!0,n&&n.apply(s,u)})}function bt(t,r){r.patchMethod(t,"queueMicrotask",i=>function(n,s){Zone.current.scheduleMicroTask("queueMicrotask",s[0])})}var Re=G("zoneTask");function Te(t,r,i,n){let s=null,u=null;r+=n,i+=n;let E={};function T(C){let g=C.data;return g.args[0]=function(){return C.invoke.apply(this,arguments)},g.handleId=s.apply(t,g.args),C}function p(C){return u.call(t,C.data.handleId)}s=le(t,r,C=>function(g,A){if(typeof A[0]=="function"){let P={isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?A[1]||0:void 0,args:A},H=A[0];A[0]=function(){try{return H.apply(this,arguments)}finally{P.isPeriodic||(typeof P.handleId=="number"?delete E[P.handleId]:P.handleId&&(P.handleId[Re]=null))}};let q=Ve(r,A[0],P,T,p);if(!q)return q;let x=q.data.handleId;return typeof x=="number"?E[x]=q:x&&(x[Re]=q),x&&x.ref&&x.unref&&typeof x.ref=="function"&&typeof x.unref=="function"&&(q.ref=x.ref.bind(x),q.unref=x.unref.bind(x)),typeof x=="number"||x?x:q}else return C.apply(t,A)}),u=le(t,i,C=>function(g,A){let P=A[0],H;typeof P=="number"?H=E[P]:(H=P&&P[Re],H||(H=P)),H&&typeof H.type=="string"?H.state!=="notScheduled"&&(H.cancelFn&&H.data.isPeriodic||H.runCount===0)&&(typeof P=="number"?delete E[P]:P&&(P[Re]=null),H.zone.cancelTask(H)):C.apply(t,A)})}function Pt(t,r){let{isBrowser:i,isMix:n}=r.getGlobalObjects();if(!i&&!n||!t.customElements||!("customElements"in t))return;let s=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,t.customElements,"customElements","define",s)}function wt(t,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:i,zoneSymbolEventNames:n,TRUE_STR:s,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let p=0;pu.target===t);if(!n||n.length===0)return r;let s=n[0].ignoreProperties;return r.filter(u=>s.indexOf(u)===-1)}function Ke(t,r,i,n){if(!t)return;let s=at(t,r,i);nt(t,s,n)}function Ze(t){return Object.getOwnPropertyNames(t).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Ct(t,r){if(De&&!tt||Zone[t.symbol("patchEvents")])return;let i=r.__Zone_ignore_on_properties,n=[];if(Be){let s=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=yt()?[{target:s,ignoreProperties:["error"]}]:[];Ke(s,Ze(s),i&&i.concat(u),je(s))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let s=0;s{let i=r[t.__symbol__("legacyPatch")];i&&i()}),t.__load_patch("timers",r=>{let i="set",n="clear";Te(r,i,n,"Timeout"),Te(r,i,n,"Interval"),Te(r,i,n,"Immediate")}),t.__load_patch("requestAnimationFrame",r=>{Te(r,"request","cancel","AnimationFrame"),Te(r,"mozRequest","mozCancel","AnimationFrame"),Te(r,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(r,i)=>{let n=["alert","prompt","confirm"];for(let s=0;sfunction(C,g){return i.current.run(E,r,g,p)})}}),t.__load_patch("EventTarget",(r,i,n)=>{Rt(r,n),wt(r,n);let s=r.XMLHttpRequestEventTarget;s&&s.prototype&&n.patchEventTarget(r,n,[s.prototype])}),t.__load_patch("MutationObserver",(r,i,n)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(r,i,n)=>{ke("IntersectionObserver")}),t.__load_patch("FileReader",(r,i,n)=>{ke("FileReader")}),t.__load_patch("on_property",(r,i,n)=>{Ct(n,r)}),t.__load_patch("customElements",(r,i,n)=>{Pt(r,n)}),t.__load_patch("XHR",(r,i)=>{C(r);let n=G("xhrTask"),s=G("xhrSync"),u=G("xhrListener"),E=G("xhrScheduled"),T=G("xhrURL"),p=G("xhrErrorBeforeScheduled");function C(g){let A=g.XMLHttpRequest;if(!A)return;let P=A.prototype;function H(w){return w[n]}let q=P[Ie],x=P[Le];if(!q){let w=g.XMLHttpRequestEventTarget;if(w){let v=w.prototype;q=v[Ie],x=v[Le]}}let te="readystatechange",Y="scheduled";function b(w){let v=w.data,S=v.target;S[E]=!1,S[p]=!1;let K=S[u];q||(q=S[Ie],x=S[Le]),K&&x.call(S,te,K);let X=S[u]=()=>{if(S.readyState===S.DONE)if(!v.aborted&&S[E]&&w.state===Y){let _=S[i.__symbol__("loadfalse")];if(S.status!==0&&_&&_.length>0){let c=w.invoke;w.invoke=function(){let e=S[i.__symbol__("loadfalse")];for(let h=0;hfunction(w,v){return w[s]=v[2]==!1,w[T]=v[1],z.apply(w,v)}),$="XMLHttpRequest.send",U=G("fetchTaskAborting"),y=G("fetchTaskScheduling"),W=le(P,"send",()=>function(w,v){if(i.current[y]===!0||w[s])return W.apply(w,v);{let S={target:w,url:w[T],isPeriodic:!1,args:v,aborted:!1},K=Ve($,d,S,b,B);w&&w[p]===!0&&!S.aborted&&K.state===Y&&K.invoke()}}),O=le(P,"abort",()=>function(w,v){let S=H(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(i.current[U]===!0)return O.apply(w,v)})}}),t.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&Tt(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(r,i)=>{function n(s){return function(u){ct(r,s).forEach(T=>{let p=r.PromiseRejectionEvent;if(p){let C=new p(s,{promise:u.promise,reason:u.rejection});T.invoke(C)}})}}r.PromiseRejectionEvent&&(i[G("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),i[G("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(r,i,n)=>{bt(r,n)})}function Dt(t){t.__load_patch("ZoneAwarePromise",(r,i,n)=>{let s=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function E(f){if(f&&f.toString===Object.prototype.toString){let a=f.constructor&&f.constructor.name;return(a||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let T=n.symbol,p=[],C=r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,g=T("Promise"),A=T("then"),P="__creationTrace__";n.onUnhandledError=f=>{if(n.showUncaughtError()){let a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},n.microtaskDrainDone=()=>{for(;p.length;){let f=p.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){q(a)}}};let H=T("unhandledPromiseRejectionHandler");function q(f){n.onUnhandledError(f);try{let a=i[H];typeof a=="function"&&a.call(this,f)}catch{}}function x(f){return f&&f.then}function te(f){return f}function Y(f){return N.reject(f)}let b=T("state"),d=T("value"),B=T("finally"),z=T("parentPromiseValue"),$=T("parentPromiseState"),U="Promise.then",y=null,W=!0,O=!1,w=0;function v(f,a){return o=>{try{L(f,a,o)}catch(l){L(f,!1,l)}}}let S=function(){let f=!1;return function(o){return function(){f||(f=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",X=T("currentTaskTrace");function L(f,a,o){let l=S();if(f===o)throw new TypeError(K);if(f[b]===y){let k=null;try{(typeof o=="object"||typeof o=="function")&&(k=o&&o.then)}catch(R){return l(()=>{L(f,!1,R)})(),f}if(a!==O&&o instanceof N&&o.hasOwnProperty(b)&&o.hasOwnProperty(d)&&o[b]!==y)c(o),L(f,o[b],o[d]);else if(a!==O&&typeof k=="function")try{k.call(o,l(v(f,a)),l(v(f,!1)))}catch(R){l(()=>{L(f,!1,R)})()}else{f[b]=a;let R=f[d];if(f[d]=o,f[B]===B&&a===W&&(f[b]=f[$],f[d]=f[z]),a===O&&o instanceof Error){let m=i.currentTask&&i.currentTask.data&&i.currentTask.data[P];m&&u(o,X,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let I=f[d],M=!!o&&B===o[B];M&&(o[z]=I,o[$]=R);let Z=a.run(m,void 0,M&&m!==Y&&m!==te?[]:[I]);L(o,!0,Z)}catch(I){L(o,!1,I)}},o)}let h="function ZoneAwarePromise() { [native code] }",D=function(){},j=r.AggregateError;class N{static toString(){return h}static resolve(a){return a instanceof N?a:L(new this(null),W,a)}static reject(a){return L(new this(null),O,a)}static withResolvers(){let a={};return a.promise=new N((o,l)=>{a.resolve=o,a.reject=l}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new j([],"All promises were rejected"));let o=[],l=0;try{for(let m of a)l++,o.push(N.resolve(m))}catch{return Promise.reject(new j([],"All promises were rejected"))}if(l===0)return Promise.reject(new j([],"All promises were rejected"));let k=!1,R=[];return new N((m,I)=>{for(let M=0;M{k||(k=!0,m(Z))},Z=>{R.push(Z),l--,l===0&&(k=!0,I(new j(R,"All promises were rejected")))})})}static race(a){let o,l,k=new this((I,M)=>{o=I,l=M});function R(I){o(I)}function m(I){l(I)}for(let I of a)x(I)||(I=this.resolve(I)),I.then(R,m);return k}static all(a){return N.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof N?this:N).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,o){let l,k,R=new this((Z,V)=>{l=Z,k=V}),m=2,I=0,M=[];for(let Z of a){x(Z)||(Z=this.resolve(Z));let V=I;try{Z.then(F=>{M[V]=o?o.thenCallback(F):F,m--,m===0&&l(M)},F=>{o?(M[V]=o.errorCallback(F),m--,m===0&&l(M)):k(F)})}catch(F){k(F)}m++,I++}return m-=2,m===0&&l(M),R}constructor(a){let o=this;if(!(o instanceof N))throw new Error("Must be an instanceof Promise.");o[b]=y,o[d]=[];try{let l=S();a&&a(l(v(o,W)),l(v(o,O)))}catch(l){L(o,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return N}then(a,o){let l=this.constructor?.[Symbol.species];(!l||typeof l!="function")&&(l=this.constructor||N);let k=new l(D),R=i.current;return this[b]==y?this[d].push(R,k,a,o):e(this,R,k,a,o),k}catch(a){return this.then(null,a)}finally(a){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=N);let l=new o(D);l[B]=B;let k=i.current;return this[b]==y?this[d].push(k,l,a,a):e(this,k,l,a,a),l}}N.resolve=N.resolve,N.reject=N.reject,N.race=N.race,N.all=N.all;let he=r[g]=r.Promise;r.Promise=N;let me=T("thenPatched");function de(f){let a=f.prototype,o=s(a,"then");if(o&&(o.writable===!1||!o.configurable))return;let l=a.then;a[A]=l,f.prototype.then=function(k,R){return new N((I,M)=>{l.call(this,I,M)}).then(k,R)},f[me]=!0}n.patchThen=de;function Pe(f){return function(a,o){let l=f.apply(a,o);if(l instanceof N)return l;let k=l.constructor;return k[me]||de(k),l}}return he&&(de(he),le(r,"fetch",f=>Pe(f))),Promise[i.__symbol__("uncaughtPromiseErrors")]=p,N})}function Ot(t){t.__load_patch("toString",r=>{let i=Function.prototype.toString,n=G("OriginalDelegate"),s=G("Promise"),u=G("Error"),E=function(){if(typeof this=="function"){let g=this[n];if(g)return typeof g=="function"?i.call(g):Object.prototype.toString.call(g);if(this===Promise){let A=r[s];if(A)return i.call(A)}if(this===Error){let A=r[u];if(A)return i.call(A)}}return i.call(this)};E[n]=i,Function.prototype.toString=E;let T=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:T.call(this)}})}function Nt(t,r,i,n,s){let u=Zone.__symbol__(n);if(r[u])return;let E=r[u]=r[n];r[n]=function(T,p,C){return p&&p.prototype&&s.forEach(function(g){let A=`${i}.${n}::`+g,P=p.prototype;try{if(P.hasOwnProperty(g)){let H=t.ObjectGetOwnPropertyDescriptor(P,g);H&&H.value?(H.value=t.wrapWithCurrentZone(H.value,A),t._redefineProperty(p.prototype,g,H)):P[g]&&(P[g]=t.wrapWithCurrentZone(P[g],A))}else P[g]&&(P[g]=t.wrapWithCurrentZone(P[g],A))}catch{}}),E.call(r,T,p,C)},t.attachOriginToPatched(r[n],E)}function It(t){t.__load_patch("util",(r,i,n)=>{let s=Ze(r);n.patchOnProperties=nt,n.patchMethod=le,n.bindArguments=Fe,n.patchMacroTask=gt;let u=i.__symbol__("BLACK_LISTED_EVENTS"),E=i.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(i[u]=i[E]=r[u]),n.patchEventPrototype=vt,n.patchEventTarget=kt,n.isIEOrEdge=mt,n.ObjectDefineProperty=Ae,n.ObjectGetOwnPropertyDescriptor=ve,n.ObjectCreate=dt,n.ArraySlice=_t,n.patchClass=ke,n.wrapWithCurrentZone=Ge,n.filterProperties=at,n.attachOriginToPatched=ue,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Nt,n.getGlobalObjects=()=>({globalSources:rt,zoneSymbolEventNames:ee,eventNames:s,isBrowser:Be,isMix:tt,isNode:De,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function Lt(t){Dt(t),Ot(t),It(t)}var lt=ht();Lt(lt);St(lt); diff --git a/browser/styles.css b/browser/styles.css index 898ddcd..e648d5d 100644 --- a/browser/styles.css +++ b/browser/styles.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.absolute{position:absolute}.relative{position:relative}.flex{display:flex}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.content-stretch{align-content:stretch}.items-center{align-items:center}.justify-center{justify-content:center}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.md\:flex-row{flex-direction:row}} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.static{position:static}.absolute{position:absolute}.relative{position:relative}.flex{display:flex}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.content-stretch{align-content:stretch}.items-center{align-items:center}.justify-center{justify-content:center}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.md\:flex-row{flex-direction:row}}