ace.define("ace/ext/textarea",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/net","ace/ace","ace/theme/textmate","ace/mode/text"],(function(e,t,a){function r(e,t){for(var a in t)e.style[a]=t[a]}function o(e,t){if("textarea"!=e.type)throw"Textarea required!";var a=e.parentNode,r=document.createElement("div"),o=function(){var t="position:relative;";["margin-top","margin-left","margin-right","margin-bottom"].forEach((function(a){t+=a+":"+u(e,r,a)+";"}));var a=u(e,r,"width")||e.clientWidth+"px",o=u(e,r,"height")||e.clientHeight+"px";t+="height:"+o+";width:"+a+";",t+="display:inline-block;",r.setAttribute("style",t)};for(c.addListener(window,"resize",o),o(),e.nextSibling?a.insertBefore(r,e.nextSibling):a.appendChild(r);a!==document;){if("FORM"===a.tagName.toUpperCase()){var n=a.onsubmit;a.onsubmit=function(a){e.innerHTML=t(),e.value=t(),n&&n.call(this,a)};break}a=a.parentNode}return r}function n(t,a,r){l.loadScript(t,(function(){e([a],r)}))}function i(a,r,o,i,c,s){function l(e){return"true"==e}var d=a.getSession(),u=a.renderer;for(var m in s=s||n,a.setDisplaySettings=function(e){null==e&&(e="none"==o.style.display),o.style.display=e?"block":"none"},a.setOption=function(t,o){if(c[t]!=o){switch(t){case"gutter":u.setShowGutter(l(o));break;case"mode":"text"!=o?s("mode-"+o+".js","ace/mode/"+o,(function(){var t=e("../mode/"+o).Mode;d.setMode(new t)})):d.setMode(new(e("../mode/text").Mode));break;case"theme":"textmate"!=o?s("theme-"+o+".js","ace/theme/"+o,(function(){a.setTheme("ace/theme/"+o)})):a.setTheme("ace/theme/textmate");break;case"fontSize":r.style.fontSize=o;break;case"softWrap":switch(o){case"off":d.setUseWrapMode(!1),u.setPrintMarginColumn(80);break;case"40":d.setUseWrapMode(!0),d.setWrapLimitRange(40,40),u.setPrintMarginColumn(40);break;case"80":d.setUseWrapMode(!0),d.setWrapLimitRange(80,80),u.setPrintMarginColumn(80);break;case"free":d.setUseWrapMode(!0),d.setWrapLimitRange(null,null),u.setPrintMarginColumn(80)}break;case"useSoftTabs":d.setUseSoftTabs(l(o));break;case"showPrintMargin":u.setShowPrintMargin(l(o));break;case"showInvisibles":a.setShowInvisibles(l(o))}c[t]=o}},a.getOption=function(e){return c[e]},a.getOptions=function(){return c},t.options)a.setOption(m,t.options[m]);return a}var c=e("../lib/event"),s=e("../lib/useragent"),l=e("../lib/net"),d=e("../ace");e("../theme/textmate"),a.exports=t=d;var u=function(e,t,a){var r=e.style[a];return r||(r=window.getComputedStyle?window.getComputedStyle(e,"").getPropertyValue(a):e.currentStyle[a]),r&&"auto"!=r&&"intrinsic"!=r||(r=t.style[a]),r};t.transformTextarea=function(e,t){var a,n=o(e,(function(){return a.getValue()}));e.style.display="none",n.style.background="white";var l=document.createElement("div");r(l,{top:"0px",left:"0px",right:"0px",bottom:"0px",border:"1px solid gray"}),n.appendChild(l);var u=document.createElement("div");r(u,{position:"absolute",right:"0px",bottom:"0px",background:"red",cursor:"nw-resize",borderStyle:"solid",borderWidth:"9px 8px 10px 9px",width:"2px",borderColor:"lightblue gray gray lightblue",zIndex:101});var m=document.createElement("div"),p={top:"0px",left:"0px",right:"0px",bottom:"0px",position:"absolute",padding:"5px",zIndex:100,color:"white",display:"none",overflow:"auto",fontSize:"14px"};s.isOldIE?p.backgroundColor="#333":p.backgroundColor="rgba(0, 0, 0, 0.6)",r(m,p),n.appendChild(m);var g={},b=d.edit(l);(a=b.getSession()).setValue(e.value||e.innerHTML),b.focus(),l.appendChild(u),i(b,l,m,0,g,t),function(e,t,a,r){function o(e,t,a,r){for(var o in e.push("<select title='"+t+"'>"),a)e.push("<option value='"+o+"' "),r==o&&e.push(" selected "),e.push(">",a[o],"</option>");e.push("</select>")}var n={true:!0,false:!1},i={mode:"Mode:",gutter:"Display Gutter:",theme:"Theme:",fontSize:"Font Size:",softWrap:"Soft Wrap:",showPrintMargin:"Show Print Margin:",useSoftTabs:"Use Soft Tabs:",showInvisibles:"Show Invisibles"},s={mode:{text:"Plain",javascript:"JavaScript",xml:"XML",html:"HTML",css:"CSS",scss:"SCSS",python:"Python",php:"PHP",java:"Java",ruby:"Ruby",c_cpp:"C/C++",coffee:"CoffeeScript",json:"json",perl:"Perl",clojure:"Clojure",ocaml:"OCaml",csharp:"C#",haxe:"haXe",svg:"SVG",textile:"Textile",groovy:"Groovy",liquid:"Liquid",Scala:"Scala"},theme:{clouds:"Clouds",clouds_midnight:"Clouds Midnight",cobalt:"Cobalt",crimson_editor:"Crimson Editor",dawn:"Dawn",eclipse:"Eclipse",idle_fingers:"Idle Fingers",kr_theme:"Kr Theme",merbivore:"Merbivore",merbivore_soft:"Merbivore Soft",mono_industrial:"Mono Industrial",monokai:"Monokai",pastel_on_dark:"Pastel On Dark",solarized_dark:"Solarized Dark",solarized_light:"Solarized Light",textmate:"Textmate",twilight:"Twilight",vibrant_ink:"Vibrant Ink"},gutter:n,fontSize:{"10px":"10px","11px":"11px","12px":"12px","14px":"14px","16px":"16px"},softWrap:{off:"Off",40:"40",80:"80",free:"Free"},showPrintMargin:n,useSoftTabs:n,showInvisibles:n},l=[];for(var d in l.push("<table><tr><th>Setting</th><th>Value</th></tr>"),r)l.push("<tr><td>",i[d],"</td>"),l.push("<td>"),o(l,d,s[d],r[d]),l.push("</td></tr>");l.push("</table>"),e.innerHTML=l.join("");for(var u=e.getElementsByTagName("select"),m=0;m<u.length;m++){var p=function(){var e=u[m];return function(){var t=e.title,r=e.value;a.setOption(t,r)}}();u[m].onchange=p}var g=document.createElement("input");g.type="button",g.value="Hide",c.addListener(g,"click",(function(){a.setDisplaySettings(!1)})),e.appendChild(g)}(m,0,b,g);var h="";return c.addListener(u,"mousemove",(function(e){var t=this.getBoundingClientRect();e.clientX-t.left+(e.clientY-t.top)<(t.width+t.height)/2?(this.style.cursor="pointer",h="toggle"):(h="resize",this.style.cursor="nw-resize")})),c.addListener(u,"mousedown",(function(e){if("toggle"!=h){n.style.zIndex=1e5;var t=n.getBoundingClientRect(),a=t.width+t.left-e.clientX,r=t.height+t.top-e.clientY;c.capture(u,(function(e){n.style.width=e.clientX-t.left+a+"px",n.style.height=e.clientY-t.top+r+"px",b.resize()}),(function(){}))}else b.setDisplaySettings()})),b},t.options={mode:"text",theme:"textmate",gutter:"false",fontSize:"12px",softWrap:"off",showPrintMargin:"false",useSoftTabs:"true",showInvisibles:"true"}})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,a){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 .ace_scroller {background-color: #FFFFFF;}.ace-tm .ace_cursor {border-left: 2px solid black;}.ace-tm .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid 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_markup.ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_markup.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;border-radius: 2px;}.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;}',e("../lib/dom").importCssString(t.cssText,t.cssClass)}));