(function(){functiono(e){vari=function(e,t){returnr("",e,t)},s=t;e&&(t[e]||(t[e]={}),s=t[e]);if(!s.define||!s.define.packaged)n.original=s.define,s.define=n,s.define.packaged=!0;if(!s.require||!s.require.packaged)r.original=s.require,s.require=i,s.require.packaged=!0}vare="ace",t=function(){returnthis}();if(!e&&typeofrequirejs!="undefined")return;varn=function(e,t,r){if(typeofe!="string"){n.original?n.original.apply(window,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(r=t),n.modules||(n.modules={}),n.modules[e]=r},r=function(e,t,n){if(Object.prototype.toString.call(t)==="[object Array]"){vari=[];for(varo=0,u=t.length;o<u;++o){vara=s(e,t[o]);if(!a&&r.original)returnr.original.apply(window,arguments);i.push(a)}n&&n.apply(null,i)}else{if(typeoft=="string"){varf=s(e,t);return!f&&r.original?r.original.apply(window,arguments):(n&&n(),f)}if(r.original)returnr.original.apply(window,arguments)}},i=function(e,t){if(t.indexOf("!")!==-1){varn=t.split("!");returni(e,n[0])+"!"+i(e,n[1])}if(t.charAt(0)=="."){varr=e.split("/").slice(0,-1).join("/");t=r+"/"+t;while(t.indexOf(".")!==-1&&s!=t){vars=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}returnt},s=function(e,t){t=i(e,t);vars=n.modules[t];if(!s)returnnull;if(typeofs=="function"){varo={},u={id:t,uri:"",exports:o,packaged:!0},a=function(e,n){returnr(t,e,n)},f=s(a,o,u);returno=f||u.exports,n.modules[t]=o,o}returns};o(e)})(),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/multi_select","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/mode/folding/fold_mode","ace/theme/textmate","ace/config"],function(e,t,n){e("./lib/fixoldbrowsers");varr=e("./lib/dom"),i=e("./lib/event"),s=e("./editor").Editor,o=e("./edit_session").EditSession,u=e("./undomanager").UndoManager,a=e("./virtual_renderer").VirtualRenderer,f=e("./multi_select").MultiSelect;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./mode/folding/fold_mode"),e("./theme/textmate"),t.config=e("./config"),t.require=e,t.edit=function(e){if(typeofe=="string"){varn=e,e=document.getElementById(n);if(!e)throw"ace.edit can't find div #"+n}if(e.env&&e.env.editorinstanceofs)returne.env.editor;varo=t.createEditSession(r.getInnerText(e));e.innerHTML="";varu=news(newa(e));newf(u),u.setSession(o);varl={document:o,editor:u,onResize:u.resize.bind(u,null)};returni.addListener(window,"resize",l.onResize),u.on("destroy",function(){i.removeListener(window,"resize",l.onResize)}),e.env=u.env=l,u},t.createEditSession=function(e,t){varn=newo(e,n);returnn.setUndoManager(newu),n},t.EditSession=o,t.UndoManager=u}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(e,t,n){e("./regexp"),e("./es5-shim")}),ace.define("ace/lib/regexp",["require","exports","module"],function(e,t,n){functiono(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}functionu(e,t,n){if(Array.prototype.indexOf)returne.indexOf(t,n);for(varr=n||0;r<e.length;r++)if(e[r]===t)returnr;return-1}varr={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},i=r.exec.call(/()??/,"")[1]===undefined,s=function(){vare=/^/g;returnr.test.call(e,""),!e.lastIndex}();if(s&&i)return;RegExp.prototype.exec=function(e){vart=r.exec.apply(this,arguments),n,a;if(typeofe=="string"&&t){!i&&t.length>1&&u(t,"")>-1&&(a=RegExp(this.source,r.replace.call(o(this),"g","")),r.replace.call(e.slice(t.index),a,function(){for(vare=1;e<arguments.length-2;e++)arguments[e]===undefined&&(t[e]=undefined)}));if(this._xregexp&&this._xregexp.captureNames)for(varf=1;f<t.length;f++)n=this._xregexp.captureNames[f-1],n&&(t[n]=t[f]);!s&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--}retur