var CodeMirrorConfig=window.CodeMirrorConfig||{};var CodeMirror=(function(){function e(f,h){for(var g in h){if(!f.hasOwnProperty(g)){f[g]=h[g]}}}function d(h,g){for(var f=0;f<h.length;f++){g(h[f])}}e(CodeMirrorConfig,{stylesheet:"",path:"",parserfile:[],basefiles:["prod_base_0f7c85805b26606e181dcf31e249f007.js"],linesPerPass:30,passDelay:200,continuousScanning:false,saveFunction:null,onChange:null,undoDepth:50,undoDelay:800,disableSpellcheck:true,textWrapping:true,readOnly:false,width:"100%",height:"300px",autoMatchParens:false,parserConfig:null,tabMode:"indent",activeTokens:null,cursorActivity:null,lineNumbers:false,breakPoints:false,indentUnit:2});function c(f){return function(j){var h=document.createElement("DIV"),k=document.createElement("DIV"),g=document.createElement("DIV");h.style.position="relative";k.style.position="absolute";k.style.height="100%";if(k.style.setExpression){k.style.setExpression("height","this.previousSibling.offsetHeight + 'px'")}k.style.top="0px";k.style.overflow="hidden";k.style.whiteSpace="nowrap";f(h);h.appendChild(j);h.appendChild(k);g.className="CodeMirror-line-numbers";k.appendChild(g)}}function b(g,k,l){var n=g.contentWindow,o=n.document,p=g.nextSibling,m=p.firstChild;var j=1,q=null;function f(){if(p.offsetWidth!=q){q=p.offsetWidth;p.style.left="-"+(g.parentNode.style.marginLeft=q+"px")}}function h(){var s=20+Math.max(o.body.offsetHeight,g.offsetHeight)-m.offsetHeight;for(var t=Math.ceil(s/10);t>0;t--){var r=document.createElement("span");r.id="line-number-"+j;r.className="line-number";if(l){r.onclick=function(v,u){return function(){if(!u.previousSibling||u.previousSibling.nodeName!="IMG"){var w=document.createElement("img");w.src="images/breakpoint.png";w.className="breakpoint";w.title="Breakpoint";w.id="breakPoint-"+v;w.onclick=function(y,x){return function(){delete k.breakpoints[y];x.parentNode.removeChild(x.previousSibling)}}(v,u);k.breakpoints[v]=true;u.parentNode.insertBefore(w,u)}else{delete k.breakpoints[v];u.parentNode.removeChild(u.previousSibling)}}}(j,r)}r.innerHTML=j++;m.appendChild(r);m.appendChild(document.createElement("BR"))}p.scrollTop=o.body.scrollTop||o.documentElement.scrollTop||0}f();h();n.addEventHandler(n,"scroll",h);setInterval(f,500)}function a(f,g){if(g.dumbTabs){g.tabMode="spaces"}else{if(g.normalTab){g.tabMode="default"}}this.options=g=g||{};this.breakpoints=[];e(g,CodeMirrorConfig);var l=this.frame=document.createElement("IFRAME");l.frameBorder=0;l.src="javascript:false;";l.style.border="0";l.style.width=g.width;l.style.height=g.height;l.style.display="block";if(f.appendChild){var j=f;f=function(m){j.appendChild(m)}}if(g.lineNumbers){f=c(f)}f(l);l.CodeMirror=this;this.win=l.contentWindow;if(typeof g.parserfile=="string"){g.parserfile=[g.parserfile]}if(typeof g.stylesheet=="string"){g.stylesheet=[g.stylesheet]}var h=['<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>'];d(g.stylesheet,function(m){h.push('<link rel="stylesheet" type="text/css" href="'+m+'"/>')});d(g.basefiles.concat(g.parserfile),function(m){h.push('<script type="text/javascript" src="'+g.path+m+'"><\/script>')});h.push('</head><body style="border: 0px none;" class="editbox" spellcheck="'+(g.disableSpellcheck?"false":"true")+'"></body></html>');var k=this.win.document;k.open();k.write(h.join(""));k.close()}a.prototype={init:function(){if(this.options.initCallback){this.options.initCallback(this)}if(this.options.lineNumbers){b(this.frame,this,this.options.breakPoints)}},getBreakPoints:function(){return this.breakpoints},clearBreakPoints:function(){for(i in this.breakpoints){if(this.breakpoints[i]==true){breakPoint=document.getElementById("breakPoint-"+i);breakPoint.parentNode.removeChild(breakPoint)}}this.breakpoints=[]},getCode:function(){return this.editor.getCode()},setCode:function(f){this.editor.importCode(f)},selection:function(){return this.editor.selectedText()},reindent:function(){this.editor.reindent()},focus:function(){this.win.focus();if(this.editor.selectionSnapshot){this.win.select.selectCoords(this.win,this.editor.selectionSnapshot)}},replaceSelection:function(f){this.focus();this.editor.replaceSelection(f);return true},replaceChars:function(g,h,f){this.editor.replaceChars(g,h,f)},getSearchCursor:function(g,f){return this.editor.getSearchCursor(g,f)},undo:function(){this.editor.history.undo()},redo:function(){this.editor.history.redo()},historySize:function(){return this.editor.history.historySize()},grabKeys:function(g,f){this.editor.grabKeys(g,f)},ungrabKeys:function(){this.editor.ungrabKeys()},cursorPosition:function(f){if(this.win.select.ie_selection){this.focus()}return this.editor.cursorPosition(f)},firstLine:function(){return this.editor.firstLine()},lastLine:function(){return this.editor.lastLine()},nextLine:function(f){return this.editor.nextLine(f)},prevLine:function(f){return this.editor.prevLine(f)},lineContent:function(f){return this.editor.lineContent(f)},setLineContent:function(f,g){this.editor.setLineContent(f,g)},insertIntoLine:function(g,f,h){this.editor.insertIntoLine(g,f,h)},selectLines:function(j,f,h,g){this.win.focus();this.editor.selectLines(j,f,h,g)},nthLine:function(g){var f=this.firstLine();for(;g>1&&f!==false;g--){f=this.nextLine(f)}return f},lineNumber:function(f){var g=0;while(f!==false){g++;f=this.prevLine(f)}return g},jumpToLine:function(f){this.selectLines(this.nthLine(f),0);this.win.focus()},currentLine:function(){return this.lineNumber(this.cursorPosition().line)}};a.InvalidLineHandle={toString:function(){return"CodeMirror.InvalidLineHandle"}};a.replace=function(f){if(typeof f=="string"){f=document.getElementById(f)}return function(g){f.parentNode.replaceChild(g,f)}};a.fromTextArea=function(h,g){if(typeof h=="string"){h=document.getElementById(h)}g=g||{};if(h.style.width){g.width=h.style.width}if(h.style.height){g.height=h.style.height}if(g.content==null){g.content=h.value}if(h.form){function f(){h.value=k.getCode()}if(typeof h.form.addEventListener=="function"){h.form.addEventListener("submit",f,false)}else{h.form.attachEvent("onsubmit",f)}}function j(l){if(h.nextSibling){h.parentNode.insertBefore(l,h.nextSibling)}else{h.parentNode.appendChild(l)}}h.style.display="none";var k=new a(j,g);return k};a.isProbablySupported=function(){var f;if(window.opera){return Number(window.opera.version())>=9.52}else{if(/Apple Computers, Inc/.test(navigator.vendor)&&(f=navigator.userAgent.match(/Version\/(\d+(?:\.\d+)?)\./))){return Number(f[1])>=3}else{if(document.selection&&window.ActiveXObject&&(f=navigator.userAgent.match(/MSIE (\d+(?:\.\d*)?)\b/))){return Number(f[1])>=6}else{if(f=navigator.userAgent.match(/gecko\/(\d{8})/i)){return Number(f[1])>=20050901}else{if(f=navigator.userAgent.match(/AppleWebKit\/(\d+)/)){return Number(f[1])>=525}else{return null}}}}}};return a})();