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===""&&k--);while(m&&k>=0);else{do m=S,S=D.stepBackward(),m&&m.value===E&&m.type.indexOf("tag-name")!==-1&&(S.value==="<"?k++:S.value===""&&k--);while(S&&k<=0);D.stepForward()}if(!m){y.removeMarker(y.$tagHighlight),y.$tagHighlight=null;return}var F=D.getCurrentTokenRow(),_=D.getCurrentTokenColumn(),T=new h(F,_,F,_+m.value.length),B=y.$backMarkers[y.$tagHighlight];y.$tagHighlight&&B!=null&&T.compareRange(B.range)!==0&&(y.removeMarker(y.$tagHighlight),y.$tagHighlight=null),T&&!y.$tagHighlight&&(y.$tagHighlight=y.addMarker(T,"ace_bracket","text"))}}},50)}},this.focus=function(){var p=this;setTimeout(function(){p.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(p){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",p))},this.onBlur=function(p){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",p))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(p){var y=this.session.$useWrapMode,C=p.start.row==p.end.row?p.end.row:1/0;this.renderer.updateLines(p.start.row,C,y),this._signal("change",p),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(p){var y=p.data;this.renderer.updateLines(y.first,y.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(A.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var p=this.getSession(),y;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(y=this.getCursorPosition()),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>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===""&&k--);while(m&&k>=0);else{do m=S,S=D.stepBackward(),m&&m.value===E&&m.type.indexOf("tag-name")!==-1&&(S.value==="<"?k++:S.value===""&&k--);while(S&&k<=0);D.stepForward()}if(!m){y.removeMarker(y.$tagHighlight),y.$tagHighlight=null;return}var F=D.getCurrentTokenRow(),_=D.getCurrentTokenColumn(),T=new f(F,_,F,_+m.value.length),O=y.$backMarkers[y.$tagHighlight];y.$tagHighlight&&O!=null&&T.compareRange(O.range)!==0&&(y.removeMarker(y.$tagHighlight),y.$tagHighlight=null),T&&!y.$tagHighlight&&(y.$tagHighlight=y.addMarker(T,"ace_bracket","text"))}}},50)}},this.focus=function(){var p=this;setTimeout(function(){p.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(p){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",p))},this.onBlur=function(p){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",p))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(p){var y=this.session.$useWrapMode,C=p.start.row==p.end.row?p.end.row:1/0;this.renderer.updateLines(p.start.row,C,y),this._signal("change",p),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(p){var y=p.data;this.renderer.updateLines(y.first,y.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(A.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var p=this.getSession(),y;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(y=this.getCursorPosition()),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>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:"?"+d,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(u);var f={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[f,u,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",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]+;)|(?:[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;l