Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'release/v0.7.1'

  • Loading branch information...
commit 14240f1482a17fbac130861c3183845fb869858e 2 parents 4545d8a + 01abfa0
@andzdroid authored
View
19 README.md
@@ -1,9 +1,22 @@
mongo-express
=============
-Web-based MongoDB admin written with Node.js and express
+Web-based MongoDB admin interface written with Node.js and express
-[![Build Status](https://secure.travis-ci.org/andzdroid/mongo-express.png?branch=master)](http://travis-ci.org/andzdroid/mongo-express) - Master (stable) branch
+Features
+--------
-[![Build Status](https://secure.travis-ci.org/andzdroid/mongo-express.png?branch=develop)](http://travis-ci.org/andzdroid/mongo-express) - Develop branch
+Current features:
+
+* Supports multiple databases
+* Database blacklist/whitelist
+* View/add/rename/delete collections
+* View documents
+
+Planned features:
+
+* Add/edit/delete documents
+* Support for replica set connections
+* Web-based command-line interface
+* Site authentication
View
4 config.js
@@ -21,6 +21,10 @@ module.exports = {
port: 8081
},
options: {
+ //editorTheme: Name of the theme you want to use for displaying documents
+ //See http://codemirror.net/demo/theme.html for all examples
+ editorTheme: "rubyblue",
+
//The options below aren't being used yet
//cmdType: the type of command line you want mongo express to run
View
2  filters.js
@@ -1,3 +1,3 @@
exports.json = function(input) {
- return JSON.stringify(input, null, ' ');
+ return JSON.stringify(input, null, ' ');
};
View
2  package.json
@@ -2,7 +2,7 @@
"author": "Chun-hao Hu <hu.chunhao@gmail.com> (http://blog.huchunhao.com)",
"name": "mongo-express",
"description": "Web-based admin interface for MongoDB",
- "version": "0.7.0",
+ "version": "0.7.1",
"repository": {
"type": "git",
"url": "git://github.com/andzdroid/mongo-express.git"
View
1  public/javascripts/codemirror-compressed.js
@@ -0,0 +1 @@
+var CodeMirror=function(){function a(d,e){function Yb(a){return a>=0&&a<ub.size}function $b(a){return v(ub,a)}function _b(a,b){Lb=!0;var c=b-a.height;for(var d=a;d;d=d.parent)d.height+=c}function ac(a){var b={line:0,ch:0};qc(b,{line:ub.size-1,ch:$b(ub.size-1).text.length},hb(a),b,b),Fb=!0}function bc(){var a=[];return ub.iter(0,ub.size,function(b){a.push(b.text)}),a.join("\n")}function cc(a){function l(a){var b=Kd(a,!0);if(b&&!_(b,g)){wb||oc(),g=b,Rc(d,b),Fb=!1;var c=Kc();if(b.line>=c.to||b.line<c.from)h=setTimeout(Xd(function(){l(a)}),150)}}function m(a){clearTimeout(h);var b=Kd(a);b&&Rc(d,b),C(a),Gc(),Fb=!0,n(),j()}Qc(H(a,"shiftKey"));for(var b=F(a);b!=A;b=b.parentNode)if(b.parentNode==W&&b!=X)return;for(var b=F(a);b!=A;b=b.parentNode)if(b.parentNode==db)return f.onGutterClick&&f.onGutterClick(Zb,fb(db.childNodes,b)+Ob,a),C(a);var d=Kd(a);switch(G(a)){case 3:L&&!c&&Ld(a);return;case 2:d&&Uc(d.line,d.ch,!0),setTimeout(Gc,20);return}if(!d){F(a)==U&&C(a);return}wb||oc();var e=+(new Date);if(Ab&&Ab.time>e-400&&_(Ab.pos,d))return C(a),setTimeout(Gc,20),bd(d.line);if(zb&&zb.time>e-400&&_(zb.pos,d))return Ab={time:e,pos:d},C(a),ad(d);zb={time:e,pos:d};var g=d,h;if(f.dragDrop&&T&&!f.readOnly&&!_(xb.from,xb.to)&&!ab(d,xb.from)&&!ab(xb.to,d)){P&&(kb.draggable=!0);function i(b){P&&(kb.draggable=!1),Cb=!1,j(),k(),Math.abs(a.clientX-b.clientX)+Math.abs(a.clientY-b.clientY)<10&&(C(b),Uc(d.line,d.ch,!0),Gc())}var j=I(document,"mouseup",Xd(i),!0),k=I(U,"drop",Xd(i),!0);Cb=!0,kb.dragDrop&&kb.dragDrop();return}C(a),Uc(d.line,d.ch,!0);var n=I(document,"mousemove",Xd(function(a){clearTimeout(h),C(a),!M&&!G(a)?m(a):l(a)}),!0),j=I(document,"mouseup",Xd(m),!0)}function dc(a){for(var b=F(a);b!=A;b=b.parentNode)if(b.parentNode==db)return C(a);var c=Kd(a);if(!c)return;Ab={time:+(new Date),pos:c},C(a),ad(c)}function ec(a){if(f.onDragEvent&&f.onDragEvent(Zb,B(a)))return;a.preventDefault();var b=Kd(a,!0),c=a.dataTransfer.files;if(!b||f.readOnly)return;if(c&&c.length&&window.FileReader&&window.File){function d(a,c){var d=new FileReader;d.onload=function(){g[c]=d.result,++h==e&&(b=Wc(b),Xd(function(){var a=vc(g.join(""),b,b);Rc(b,a)})())},d.readAsText(a)}var e=c.length,g=Array(e),h=0;for(var i=0;i<e;++i)d(c[i],i)}else try{var g=a.dataTransfer.getData("Text");g&&Yd(function(){var a=xb.from,c=xb.to;Rc(b,b),Cb&&vc("",a,c),wc(g),Gc()})}catch(a){}}function fc(a){var b=zc();a.dataTransfer.setData("Text",b);if(L||Q){var c=document.createElement("img");c.scr="data:image/gif;base64,R0lGODdhAgACAIAAAAAAAP///ywAAAAAAgACAAACAoRRADs=",a.dataTransfer.setDragImage(c,0,0)}}function gc(a,b){if(typeof a=="string"){a=h[a];if(!a)return!1}var c=yb;try{f.readOnly&&(Eb=!0),b&&(yb=null),a(Zb)}catch(d){if(d!=K)throw d;return!1}finally{yb=c,Eb=!1}return!0}function hc(a){function h(){g=!0}var b=j(f.keyMap),c=b.auto;clearTimeout(kc),c&&!l(a)&&(kc=setTimeout(function(){j(f.keyMap)==b&&(f.keyMap=c.call?c.call(null,Zb):c)},50));var d=jb[H(a,"keyCode")],e=!1;if(d==null||a.altGraphKey)return!1;H(a,"altKey")&&(d="Alt-"+d),H(a,"ctrlKey")&&(d="Ctrl-"+d),H(a,"metaKey")&&(d="Cmd-"+d);var g=!1;return H(a,"shiftKey")?e=k("Shift-"+d,f.extraKeys,f.keyMap,function(a){return gc(a,!0)},h)||k(d,f.extraKeys,f.keyMap,function(a){if(typeof a=="string"&&/^go[A-Z]/.test(a))return gc(a)},h):e=k(d,f.extraKeys,f.keyMap,gc,h),g&&(e=!1),e&&(C(a),Md(),M&&(a.oldKeyCode=a.keyCode,a.keyCode=0)),e}function ic(a,b){var c=k("'"+b+"'",f.extraKeys,f.keyMap,function(a){return gc(a,!0)});return c&&(C(a),Md()),c}function lc(a){wb||oc(),M&&a.keyCode==27&&(a.returnValue=!1),Ac&&Ec()&&(Ac=!1);if(f.onKeyEvent&&f.onKeyEvent(Zb,B(a)))return;var b=H(a,"keyCode");Qc(b==16||H(a,"shiftKey"));var d=hc(a);window.opera&&(jc=d?b:null,!d&&b==88&&H(a,c?"metaKey":"ctrlKey")&&wc(""))}function mc(a){Ac&&Ec();if(f.onKeyEvent&&f.onKeyEvent(Zb,B(a)))return;var b=H(a,"keyCode"),c=H(a,"charCode");if(window.opera&&b==jc){jc=null,C(a);return}if((window.opera&&!a.which||S)&&hc(a))return;var d=String.fromCharCode(c==null?b:c);f.electricChars&&tb.electricChars&&f.smartIndent&&!f.readOnly&&tb.electricChars.indexOf(d)>-1&&setTimeout(Xd(function(){dd(xb.to.line,"smart")}),75);if(ic(a,d))return;Cc()}function nc(a){if(f.onKeyEvent&&f.onKeyEvent(Zb,B(a)))return;H(a,"keyCode")==16&&(yb=null)}function oc(){if(f.readOnly=="nocursor")return;wb||(f.onFocus&&f.onFocus(Zb),wb=!0,A.className.search(/\bCodeMirror-focused\b/)==-1&&(A.className+=" CodeMirror-focused"),Kb||Fc(!0)),Bc(),Md()}function pc(){wb&&(f.onBlur&&f.onBlur(Zb),wb=!1,Rb&&Xd(function(){Rb&&(Rb(),Rb=null)})(),A.className=A.className.replace(" CodeMirror-focused","")),clearInterval(sb),setTimeout(function(){wb||(yb=null)},150)}function qc(a,b,c,d,e){if(Eb)return;if(Vb){var g=[];ub.iter(a.line,b.line+1,function(a){g.push(a.text)}),Vb.addChange(a.line,c.length,g);while(Vb.done.length>f.undoDepth)Vb.done.shift()}uc(a,b,c,d,e)}function rc(a,b){if(!a.length)return;var c=a.pop(),d=[];for(var e=c.length-1;e>=0;e-=1){var f=c[e],g=[],h=f.start+f.added;ub.iter(f.start,h,function(a){g.push(a.text)}),d.push({start:f.start,added:f.old.length,old:g});var i=Wc({line:f.start+f.old.length-1,ch:eb(g[g.length-1],f.old[f.old.length-1])});uc({line:f.start,ch:0},{line:h-1,ch:$b(h-1).text.length},f.old,i,i)}Fb=!0,b.push(d)}function sc(){rc(Vb.done,Vb.undone)}function tc(){rc(Vb.undone,Vb.done)}function uc(a,b,c,d,e){function y(a){return a<=Math.min(b.line,b.line+s)?a:a+s}if(Eb)return;var g=!1,h=Sb.length;f.lineWrapping||ub.iter(a.line,b.line+1,function(a){if(a.text.length==h)return g=!0,!0});if(a.line!=b.line||c.length>1)Lb=!0;var i=b.line-a.line,j=$b(a.line),k=$b(b.line);if(a.ch==0&&b.ch==0&&c[c.length-1]==""){var l=[],m=null;a.line?(m=$b(a.line-1),m.fixMarkEnds(k)):k.fixMarkStarts();for(var n=0,o=c.length-1;n<o;++n)l.push(r.inheritMarks(c[n],m));i&&ub.remove(a.line,i,Mb),l.length&&ub.insert(a.line,l)}else if(j==k)if(c.length==1)j.replace(a.ch,b.ch,c[0]);else{k=j.split(b.ch,c[c.length-1]),j.replace(a.ch,null,c[0]),j.fixMarkEnds(k);var l=[];for(var n=1,o=c.length-1;n<o;++n)l.push(r.inheritMarks(c[n],j));l.push(k),ub.insert(a.line+1,l)}else if(c.length==1)j.replace(a.ch,null,c[0]),k.replace(null,b.ch,""),j.append(k),ub.remove(a.line+1,i,Mb);else{var l=[];j.replace(a.ch,null,c[0]),k.replace(null,b.ch,c[c.length-1]),j.fixMarkEnds(k);for(var n=1,o=c.length-1;n<o;++n)l.push(r.inheritMarks(c[n],j));i>1&&ub.remove(a.line+1,i-1,Mb),ub.insert(a.line+1,l)}if(f.lineWrapping){var p=Math.max(5,U.clientWidth/Hd()-3);ub.iter(a.line,a.line+c.length,function(a){if(a.hidden)return;var b=Math.ceil(a.text.length/p)||1;b!=a.height&&_b(a,b)})}else ub.iter(a.line,a.line+c.length,function(a){var b=a.text;b.length>h&&(Sb=b,h=b.length,Tb=null,g=!1)}),g&&(h=0,Sb="",Tb=null,ub.iter(0,ub.size,function(a){var b=a.text;b.length>h&&(h=b.length,Sb=b)}));var q=[],s=c.length-i-1;for(var n=0,t=vb.length;n<t;++n){var u=vb[n];u<a.line?q.push(u):u>b.line&&q.push(u+s)}var v=a.line+Math.min(c.length,500);Rd(a.line,v),q.push(v),vb=q,Td(100),Hb.push({from:a.line,to:b.line+1,diff:s});var w={from:a,to:b,text:c};if(Ib){for(var x=Ib;x.next;x=x.next);x.next=w}else Ib=w;Sc(d,e,y(xb.from.line),y(xb.to.line)),U.clientHeight&&(W.style.height=ub.height*Ed()+2*Id()+"px")}function vc(a,b,c){function d(d){if(ab(d,b))return d;if(!ab(c,d))return e;var f=d.line+a.length-(c.line-b.line)-1,g=d.ch;return d.line==c.line&&(g+=a[a.length-1].length-(c.ch-(c.line==b.line?b.ch:0))),{line:f,ch:g}}b=Wc(b),c?c=Wc(c):c=b,a=hb(a);var e;return xc(a,b,c,function(a){return e=a,{from:d(xb.from),to:d(xb.to)}}),e}function wc(a,b){xc(hb(a),xb.from,xb.to,function(a){return b=="end"?{from:a,to:a}:b=="start"?{from:xb.from,to:xb.from}:{from:xb.from,to:a}})}function xc(a,b,c,d){var e=a.length==1?a[0].length+b.ch:a[a.length-1].length,f=d({line:b.line+a.length-1,ch:e});qc(b,c,a,f.from,f.to)}function yc(a,b){var c=a.line,d=b.line;if(c==d)return $b(c).text.slice(a.ch,b.ch);var e=[$b(c).text.slice(a.ch)];return ub.iter(c+1,d,function(a){e.push(a.text)}),e.push($b(d).text.slice(0,b.ch)),e.join("\n")}function zc(){return yc(xb.from,xb.to)}function Bc(){if(Ac)return;qb.set(f.pollInterval,function(){Ud(),Ec(),wb&&Bc(),Vd()})}function Cc(){function b(){Ud();var c=Ec();!c&&!a?(a=!0,qb.set(60,b)):(Ac=!1,Bc()),Vd()}var a=!1;Ac=!0,qb.set(20,b)}function Ec(){if(Kb||!wb||ib(R)||f.readOnly)return!1;var a=R.value;if(a==Dc)return!1;yb=null;var b=0,c=Math.min(Dc.length,a.length);while(b<c&&Dc[b]==a[b])++b;return b<Dc.length?xb.from={line:xb.from.line,ch:xb.from.ch-(Dc.length-b)}:Db&&_(xb.from,xb.to)&&(xb.to={line:xb.to.line,ch:Math.min($b(xb.to.line).text.length,xb.to.ch+(a.length-b))}),wc(a.slice(b),"end"),Dc=a,!0}function Fc(a){_(xb.from,xb.to)?a&&(Dc=R.value=""):(Dc="",R.value=zc(),$(R))}function Gc(){f.readOnly!="nocursor"&&R.focus()}function Hc(){if(!mb.getBoundingClientRect)return;var a=mb.getBoundingClientRect();if(M&&a.top==a.bottom)return;var b=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(a.top<0||a.bottom>b)&&mb.scrollIntoView()}function Ic(){var a=yd(xb.inverted?xb.from:xb.to),b=f.lineWrapping?Math.min(a.x,kb.offsetWidth):a.x;return Jc(b,a.y,b,a.yBot)}function Jc(a,b,c,d){var e=Jd(),g=Id();b+=g,d+=g,a+=e,c+=e;var h=U.clientHeight,i=U.scrollTop,j=!1,k=!0;b<i?(U.scrollTop=Math.max(0,b),j=!0):d>i+h&&(U.scrollTop=d-h,j=!0);var l=U.clientWidth,m=U.scrollLeft,n=f.fixedGutter?cb.clientWidth:0,o=a<n+e+10;return a<m+n||o?(o&&(a=0),U.scrollLeft=Math.max(0,a-10-n),j=!0):c>l+m-3&&(U.scrollLeft=c+10-l,j=!0,c>W.clientWidth&&(k=!1)),j&&f.onScroll&&f.onScroll(Zb),k}function Kc(){var a=Ed(),b=U.scrollTop-Id(),c=Math.max(0,Math.floor(b/a)),d=Math.ceil((b+U.clientHeight)/a);return{from:x(ub,c),to:x(ub,d)}}function Lc(a,b){function n(){Tb=U.clientWidth;var a=ob.firstChild,b=!1;return ub.iter(Ob,Pb,function(c){if(!c.hidden){var d=Math.round(a.offsetHeight/k)||1;c.height!=d&&(_b(c,d),Lb=b=!0)}a=a.nextSibling}),b&&(W.style.height=ub.height*k+2*Id()+"px"),b}if(!U.clientWidth){Ob=Pb=Nb=0;return}var c=Kc();if(a!==!0&&a.length==0&&c.from>Ob&&c.to<Pb)return;var d=Math.max(c.from-100,0),e=Math.min(ub.size,c.to+100);Ob<d&&d-Ob<20&&(d=Ob),Pb>e&&Pb-e<20&&(e=Math.min(ub.size,Pb));var g=a===!0?[]:Mc([{from:Ob,to:Pb,domStart:0}],a),h=0;for(var i=0;i<g.length;++i){var j=g[i];j.from<d&&(j.domStart+=d-j.from,j.from=d),j.to>e&&(j.to=e),j.from>=j.to?g.splice(i--,1):h+=j.to-j.from}if(h==e-d&&d==Ob&&e==Pb)return;g.sort(function(a,b){return a.domStart-b.domStart});var k=Ed(),l=cb.style.display;ob.style.display="none",Nc(d,e,g),ob.style.display=cb.style.display="";var m=d!=Ob||e!=Pb||Qb!=U.clientHeight+k;m&&(Qb=U.clientHeight+k),Ob=d,Pb=e,Nb=y(ub,d),X.style.top=Nb*k+"px",U.clientHeight&&(W.style.height=ub.height*k+2*Id()+"px");if(ob.childNodes.length!=Pb-Ob)throw new Error("BAD PATCH! "+JSON.stringify(g)+" size="+(Pb-Ob)+" nodes="+ob.childNodes.length);return f.lineWrapping?n():(Tb==null&&(Tb=ud(Sb)),Tb>U.clientWidth?(kb.style.width=Tb+"px",W.style.width="",W.style.width=U.scrollWidth+"px"):kb.style.width=W.style.width=""),cb.style.display=l,(m||Lb)&&Oc()&&f.lineWrapping&&n()&&Oc(),Pc(),!b&&f.onUpdate&&f.onUpdate(Zb),!0}function Mc(a,b){for(var c=0,d=b.length||0;c<d;++c){var e=b[c],f=[],g=e.diff||0;for(var h=0,i=a.length;h<i;++h){var j=a[h];e.to<=j.from&&e.diff?f.push({from:j.from+g,to:j.to+g,domStart:j.domStart}):e.to<=j.from||e.from>=j.to?f.push(j):(e.from>j.from&&f.push({from:j.from,to:e.from,domStart:j.domStart}),e.to<j.to&&f.push({from:e.to+g,to:j.to+g,domStart:j.domStart+(e.to-j.from)}))}a=f}return a}function Nc(a,b,c){if(!c.length)ob.innerHTML="";else{function d(a){var b=a.nextSibling;return a.parentNode.removeChild(a),b}var e=0,f=ob.firstChild,g;for(var h=0;h<c.length;++h){var i=c[h];while(i.domStart>e)f=d(f),e++;for(var j=0,k=i.to-i.from;j<k;++j)f=f.nextSibling,e++}while(f)f=d(f)}var l=c.shift(),f=ob.firstChild,j=a,m=document.createElement("div");ub.iter(a,b,function(a){l&&l.to==j&&(l=c.shift());if(!l||l.from>j){if(a.hidden)var b=m.innerHTML="<pre></pre>";else{var b="<pre"+(a.className?' class="'+a.className+'"':"")+">"+a.getHTML(hd)+"</pre>";a.bgClassName&&(b='<div style="position: relative"><pre class="'+a.bgClassName+'" style="position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -2">&#160;</pre>'+b+"</div>")}m.innerHTML=b,ob.insertBefore(m.firstChild,f)}else f=f.nextSibling;++j})}function Oc(){if(!f.gutter&&!f.lineNumbers)return;var a=X.offsetHeight,b=U.clientHeight;cb.style.height=(a-b<2?b:a)+"px";var c=[],d=Ob,e;ub.iter(Ob,Math.max(Pb,Ob+1),function(a){if(a.hidden)c.push("<pre></pre>");else{var b=a.gutterMarker,g=f.lineNumbers?d+f.firstLineNumber:null;b&&b.text?g=b.text.replace("%N%",g!=null?g:""):g==null&&(g="\u00a0"),c.push(b&&b.style?'<pre class="'+b.style+'">':"<pre>",g);for(var h=1;h<a.height;++h)c.push("<br/>&#160;");c.push("</pre>"),b||(e=d)}++d}),cb.style.display="none",db.innerHTML=c.join("");if(e!=null){var g=db.childNodes[e-Ob],h=String(ub.size).length,i=Z(g),j="";while(i.length+j.length<h)j+="\u00a0";j&&g.insertBefore(document.createTextNode(j),g.firstChild)}cb.style.display="";var k=Math.abs((parseInt(kb.style.marginLeft)||0)-cb.offsetWidth)>2;return kb.style.marginLeft=cb.offsetWidth+"px",Lb=!1,k}function Pc(){var a=_(xb.from,xb.to),b=yd(xb.from,!0),c=a?b:yd(xb.to,!0),d=xb.inverted?b:c,e=Ed(),g=Y(A),h=Y(ob);D.style.top=Math.max(0,Math.min(U.offsetHeight,d.y+h.top-g.top))+"px",D.style.left=Math.max(0,Math.min(U.offsetWidth,d.x+h.left-g.left))+"px";if(a)mb.style.top=d.y+"px",mb.style.left=(f.lineWrapping?Math.min(d.x,kb.offsetWidth):d.x)+"px",mb.style.display="",nb.style.display="none";else{var i=b.y==c.y,j="",k=kb.clientWidth||kb.offsetWidth,l=kb.clientHeight||kb.offsetHeight;function m(a,b,c,d){var e=O?"width: "+(c?k-c-a:k)+"px":"right: "+c+"px";j+='<div class="CodeMirror-selected" style="position: absolute; left: '+a+"px; top: "+b+"px; "+e+"; height: "+d+'px"></div>'}if(xb.from.ch&&b.y>=0){var n=i?k-c.x:0;m(b.x,b.y,n,e)}var o=Math.max(0,b.y+(xb.from.ch?e:0)),p=Math.min(c.y,l)-o;p>.2*e&&m(0,o,0,p),(!i||!xb.from.ch)&&c.y<l-.5*e&&m(0,c.y,k-c.x,e),nb.innerHTML=j,mb.style.display="none",nb.style.display=""}}function Qc(a){a?yb=yb||(xb.inverted?xb.to:xb.from):yb=null}function Rc(a,b){var c=yb&&Wc(yb);c&&(ab(c,a)?a=c:ab(b,c)&&(b=c)),Sc(a,b),Gb=!0}function Sc(a,b,c,d){$c=null,c==null&&(c=xb.from.line,d=xb.to.line);if(_(xb.from,a)&&_(xb.to,b))return;if(ab(b,a)){var e=b;b=a,a=e}if(a.line!=c){var g=Tc(a,c,xb.from.ch);g?a=g:sd(a.line,!1)}b.line!=d&&(b=Tc(b,d,xb.to.ch)),_(a,b)?xb.inverted=!1:_(a,xb.to)?xb.inverted=!1:_(b,xb.from)&&(xb.inverted=!0);if(f.autoClearEmptyLines&&_(xb.from,xb.to)){var h=xb.inverted?a:b;if(h.line!=xb.from.line&&xb.from.line<ub.size){var i=$b(xb.from.line);/^\s+$/.test(i.text)&&setTimeout(Xd(function(){if(i.parent&&/^\s+$/.test(i.text)){var a=w(i);vc("",{line:a,ch:0},{line:a,ch:i.text.length})}},10))}}xb.from=a,xb.to=b,Jb=!0}function Tc(a,b,c){function d(b){var d=a.line+b,e=b==1?ub.size:-1;while(d!=e){var g=$b(d);if(!g.hidden){var h=a.ch;if(f||h>c||h>g.text.length)h=g.text.length;return{line:d,ch:h}}d+=b}}var e=$b(a.line),f=a.ch==e.text.length&&a.ch!=c;return e.hidden?a.line>=b?d(1)||d(-1):d(-1)||d(1):a}function Uc(a,b,c){var d=Wc({line:a,ch:b||0});(c?Rc:Sc)(d,d)}function Vc(a){return Math.max(0,Math.min(a,ub.size-1))}function Wc(a){if(a.line<0)return{line:0,ch:0};if(a.line>=ub.size)return{line:ub.size-1,ch:$b(ub.size-1).text.length};var b=a.ch,c=$b(a.line).text.length;return b==null||b>c?{line:a.line,ch:c}:b<0?{line:a.line,ch:0}:a}function Xc(a,b){function g(){for(var b=d+a,c=a<0?-1:ub.size;b!=c;b+=a){var e=$b(b);if(!e.hidden)return d=b,f=e,!0}}function h(b){if(e==(a<0?0:f.text.length)){if(!!b||!g())return!1;e=a<0?f.text.length:0}else e+=a;return!0}var c=xb.inverted?xb.from:xb.to,d=c.line,e=c.ch,f=$b(d);if(b=="char")h();else if(b=="column")h(!0);else if(b=="word"){var i=!1;for(;;){if(a<0&&!h())break;if(gb(f.text.charAt(e)))i=!0;else if(i){a<0&&(a=1,h());break}if(a>0&&!h())break}}return{line:d,ch:e}}function Yc(a,b){var c=a<0?xb.from:xb.to;if(yb||_(xb.from,xb.to))c=Xc(a,b);Uc(c.line,c.ch,!0)}function Zc(a,b){_(xb.from,xb.to)?a<0?vc("",Xc(a,b),xb.to):vc("",xb.from,Xc(a,b)):vc("",xb.from,xb.to),Gb=!0}function _c(a,b){var c=0,d=yd(xb.inverted?xb.from:xb.to,!0);$c!=null&&(d.x=$c),b=="page"?c=Math.min(U.clientHeight,window.innerHeight||document.documentElement.clientHeight):b=="line"&&(c=Ed());var e=zd(d.x,d.y+c*a+2);b=="page"&&(U.scrollTop+=yd(e,!0).y-d.y),Uc(e.line,e.ch,!0),$c=d.x}function ad(a){var b=$b(a.line).text,c=a.ch,d=a.ch;while(c>0&&gb(b.charAt(c-1)))--c;while(d<b.length&&gb(b.charAt(d)))++d;Rc({line:a.line,ch:c},{line:a.line,ch:d})}function bd(a){Rc({line:a,ch:0},Wc({line:a+1,ch:0}))}function cd(a){if(_(xb.from,xb.to))return dd(xb.from.line,a);var b=xb.to.line-(xb.to.ch?0:1);for(var c=xb.from.line;c<=b;++c)dd(c,a)}function dd(a,b){b||(b="add");if(b=="smart")if(!tb.indent)b="prev";else var c=Qd(a);var d=$b(a),e=d.indentation(f.tabSize),g=d.text.match(/^\s*/)[0],h;b=="prev"?a?h=$b(a-1).indentation(f.tabSize):h=0:b=="smart"?h=tb.indent(c,d.text.slice(g.length),d.text):b=="add"?h=e+f.indentUnit:b=="subtract"&&(h=e-f.indentUnit),h=Math.max(0,h);var i=h-e;if(!i){if(xb.from.line!=a&&xb.to.line!=a)return;var j=g}else{var j="",k=0;if(f.indentWithTabs)for(var l=Math.floor(h/f.tabSize);l;--l)k+=f.tabSize,j+=" ";while(k<h)++k,j+=" "}vc(j,{line:a,ch:0},{line:a,ch:g.length})}function ed(){tb=a.getMode(f,f.mode),ub.iter(0,ub.size,function(a){a.stateAfter=null}),vb=[0],Td()}function fd(){var a=f.gutter||f.lineNumbers;cb.style.display=a?"":"none",a?Lb=!0:ob.parentNode.style.marginLeft=0}function gd(a,b){if(f.lineWrapping){A.className+=" CodeMirror-wrap";var c=U.clientWidth/Hd()-3;ub.iter(0,ub.size,function(a){if(a.hidden)return;var b=Math.ceil(a.text.length/c)||1;b!=1&&_b(a,b)}),kb.style.width=W.style.width=""}else A.className=A.className.replace(" CodeMirror-wrap",""),Tb=null,Sb="",ub.iter(0,ub.size,function(a){a.height!=1&&!a.hidden&&_b(a,1),a.text.length>Sb.length&&(Sb=a.text)});Hb.push({from:0,to:ub.size})}function hd(a){var b=f.tabSize-a%f.tabSize,c=Ub[b];if(c)return c;for(var d='<span class="cm-tab">',e=0;e<b;++e)d+=" ";return Ub[b]={html:d+"</span>",width:b}}function id(){U.className=U.className.replace(/\s*cm-s-\S+/g,"")+f.theme.replace(/(^|\s)\s*/g," cm-s-")}function jd(){var a=i[f.keyMap].style;A.className=A.className.replace(/\s*cm-keymap-\S+/g,"")+(a?" cm-keymap-"+a:"")}function kd(){this.set=[]}function ld(a,b,c){function e(a,b,c,e){$b(a).addMark(new p(b,c,e,d))}a=Wc(a),b=Wc(b);var d=new kd;if(!ab(a,b))return d;if(a.line==b.line)e(a.line,a.ch,b.ch,c);else{e(a.line,a.ch,null,c);for(var f=a.line+1,g=b.line;f<g;++f)e(f,null,null,c);e(b.line,null,b.ch,c)}return Hb.push({from:a.line,to:b.line+1}),d}function md(a){a=Wc(a);var b=new q(a.ch);return $b(a.line).addMark(b),b}function nd(a){a=Wc(a);var b=[],c=$b(a.line).marked;if(!c)return b;for(var d=0,e=c.length;d<e;++d){var f=c[d];(f.from==null||f.from<=a.ch)&&(f.to==null||f.to>=a.ch)&&b.push(f.marker||f)}return b}function od(a,b,c){return typeof a=="number"&&(a=$b(Vc(a))),a.gutterMarker={text:b,style:c},Lb=!0,a}function pd(a){typeof a=="number"&&(a=$b(Vc(a))),a.gutterMarker=null,Lb=!0}function qd(a,b){var c=a,d=a;return typeof a=="number"?d=$b(Vc(a)):c=w(a),c==null?null:b(d,c)?(Hb.push({from:c,to:c+1}),d):null}function rd(a,b,c){return qd(a,function(a){if(a.className!=b||a.bgClassName!=c)return a.className=b,a.bgClassName=c,!0})}function sd(a,b){return qd(a,function(a,c){if(a.hidden!=b){a.hidden=b,_b(a,b?0:1);var d=xb.from.line,e=xb.to.line;if(b&&(d==c||e==c)){var f=d==c?Tc({line:d,ch:0},d,0):xb.from,g=e==c?Tc({line:e,ch:0},e,0):xb.to;if(!g)return;Sc(f,g)}return Lb=!0}})}function td(a){if(typeof a=="number"){if(!Yb(a))return null;var b=a;a=$b(a);if(!a)return null}else{var b=w(a);if(b==null)return null}var c=a.gutterMarker;return{line:b,handle:a,text:a.text,markerText:c&&c.text,markerClass:c&&c.style,lineClass:a.className,bgClass:a.bgClassName}}function ud(a){return lb.innerHTML="<pre><span>x</span></pre>",lb.firstChild.firstChild.firstChild.nodeValue=a,lb.firstChild.firstChild.offsetWidth||10}function vd(a,b){function e(a){return xd(c,a).left}if(b<=0)return 0;var c=$b(a),d=c.text,f=0,g=0,h=d.length,i,j=Math.min(h,Math.ceil(b/Hd()));for(;;){var k=e(j);if(!(k<=b&&j<h)){i=k,h=j;break}j=Math.min(h,Math.ceil(j*1.2))}if(b>i)return h;j=Math.floor(h*.8),k=e(j),k<b&&(f=j,g=k);for(;;){if(h-f<=1)return i-b>b-g?f:h;var l=Math.ceil((f+h)/2),m=e(l);m>b?(h=l,i=m):(f=l,g=m)}}function xd(a,b){if(b==0)return{top:0,left:0};var c=f.lineWrapping&&b<a.text.length&&V.test(a.text.slice(b-1,b+1));lb.innerHTML="<pre>"+a.getHTML(hd,b,wd,c)+"</pre>";var d=document.getElementById(wd),e=d.offsetTop,g=d.offsetLeft;if(M&&e==0&&g==0){var h=document.createElement("span");h.innerHTML="x",d.parentNode.insertBefore(h,d.nextSibling),e=h.offsetTop}return{top:e,left:g}}function yd(a,b){var c,d=Ed(),e=d*(y(ub,a.line)-(b?Nb:0));if(a.ch==0)c=0;else{var g=xd($b(a.line),a.ch);c=g.left,f.lineWrapping&&(e+=Math.max(0,g.top))}return{x:c,y:e,yBot:e+d}}function zd(a,b){function l(a){var b=xd(h,a);if(j){var d=Math.round(b.top/c);return Math.max(0,b.left+(d-k)*U.clientWidth)}return b.left}b<0&&(b=0);var c=Ed(),d=Hd(),e=Nb+Math.floor(b/c),g=x(ub,e);if(g>=ub.size)return{line:ub.size-1,ch:$b(ub.size-1).text.length};var h=$b(g),i=h.text,j=f.lineWrapping,k=j?e-y(ub,g):0;if(a<=0&&k==0)return{line:g,ch:0};var m=0,n=0,o=i.length,p,q=Math.min(o,Math.ceil((a+k*U.clientWidth*.9)/d));for(;;){var r=l(q);if(!(r<=a&&q<o)){p=r,o=q;break}q=Math.min(o,Math.ceil(q*1.2))}if(a>p)return{line:g,ch:o};q=Math.floor(o*.8),r=l(q),r<a&&(m=q,n=r);for(;;){if(o-m<=1)return{line:g,ch:p-a>a-n?m:o};var s=Math.ceil((m+o)/2),t=l(s);t>a?(o=s,p=t):(m=s,n=t)}}function Ad(a){var b=yd(a,!0),c=Y(kb);return{x:c.left+b.x,y:c.top+b.y,yBot:c.top+b.yBot}}function Ed(){if(Dd==null){Dd="<pre>";for(var a=0;a<49;++a)Dd+="x<br/>";Dd+="x</pre>"}var b=ob.clientHeight;return b==Cd?Bd:(Cd=b,lb.innerHTML=Dd,Bd=lb.firstChild.offsetHeight/50||1,lb.innerHTML="",Bd)}function Hd(){return U.clientWidth==Gd?Fd:(Gd=U.clientWidth,Fd=ud("x"))}function Id(){return kb.offsetTop}function Jd(){return kb.offsetLeft}function Kd(a,b){var c=Y(U,!0),d,e;try{d=a.clientX,e=a.clientY}catch(a){return null}if(!b&&(d-c.left>U.clientWidth||e-c.top>U.clientHeight))return null;var f=Y(kb,!0);return zd(d-f.left,e-f.top)}function Ld(a){function f(){var a=hb(R.value).join("\n");a!=e&&Xd(wc)(a,"end"),D.style.position="relative",R.style.cssText=d,N&&(U.scrollTop=c),Kb=!1,Fc(!0),Bc()}var b=Kd(a),c=U.scrollTop;if(!b||window.opera)return;(_(xb.from,xb.to)||ab(b,xb.from)||!ab(b,xb.to))&&Xd(Uc)(b.line,b.ch);var d=R.style.cssText;D.style.position="absolute",R.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(a.clientY-5)+"px; left: "+(a.clientX-5)+"px; z-index: 1000; background: white; "+"border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",Kb=!0;var e=R.value=zc();Gc(),$(R);if(L){E(a);var g=I(window,"mouseup",function(){g(),setTimeout(f,20)},!0)}else setTimeout(f,50)}function Md(){clearInterval(sb);var a=!0;mb.style.visibility="",sb=setInterval(function(){mb.style.visibility=(a=!a)?"":"hidden"},650)}function Od(a){function p(a,b,c){if(!a.text)return;var d=a.styles,e=g?0:a.text.length-1,f;for(var i=g?0:d.length-2,j=g?d.length:-2;i!=j;i+=2*h){var k=d[i];if(d[i+1]!=null&&d[i+1]!=m){e+=h*k.length;continue}for(var l=g?0:k.length-1,p=g?k.length:-1;l!=p;l+=h,e+=h)if(e>=b&&e<c&&o.test(f=k.charAt(l))){var q=Nd[f];if(q.charAt(1)==">"==g)n.push(f);else{if(n.pop()!=q.charAt(0))return{pos:e,match:!1};if(!n.length)return{pos:e,match:!0}}}}}var b=xb.inverted?xb.from:xb.to,c=$b(b.line),d=b.ch-1,e=d>=0&&Nd[c.text.charAt(d)]||Nd[c.text.charAt(++d)];if(!e)return;var f=e.charAt(0),g=e.charAt(1)==">",h=g?1:-1,i=c.styles;for(var j=d+1,k=0,l=i.length;k<l;k+=2)if((j-=i[k].length)<=0){var m=i[k+1];break}var n=[c.text.charAt(d)],o=/[(){}[\]]/;for(var k=b.line,l=g?Math.min(k+100,ub.size):Math.max(-1,k-100);k!=l;k+=h){var c=$b(k),q=k==b.line,r=p(c,q&&g?d+1:0,q&&!g?d:c.text.length);if(r)break}r||(r={pos:null,match:!1});var m=r.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket",s=ld({line:b.line,ch:d},{line:b.line,ch:d+1},m),t=r.pos!=null&&ld({line:k,ch:r.pos},{line:k,ch:r.pos+1},m),u=Xd(function(){s.clear(),t&&t.clear()});a?setTimeout(u,800):Rb=u}function Pd(a){var b,c;for(var d=a,e=a-40;d>e;--d){if(d==0)return 0;var g=$b(d-1);if(g.stateAfter)return d;var h=g.indentation(f.tabSize);if(c==null||b>h)c=d-1,b=h}return c}function Qd(a){var b=Pd(a),c=b&&$b(b-1).stateAfter;return c?c=m(tb,c):c=n(tb),ub.iter(b,a,function(a){a.highlight(tb,c,f.tabSize),a.stateAfter=m(tb,c)}),b<a&&Hb.push({from:b,to:a}),a<ub.size&&!$b(a).stateAfter&&vb.push(a),c}function Rd(a,b){var c=Qd(a);ub.iter(a,b,function(a){a.highlight(tb,c,f.tabSize),a.stateAfter=m(tb,c)})}function Sd(){var a=+(new Date)+f.workTime,b=vb.length;while(vb.length){if(!$b(Ob).stateAfter)var c=Ob;else var c=vb.pop();if(c>=ub.size)continue;var d=Pd(c),e=d&&$b(d-1).stateAfter;e?e=m(tb,e):e=n(tb);var g=0,h=tb.compareStates,i=!1,j=d,k=!1;ub.iter(j,ub.size,function(b){var d=b.stateAfter;if(+(new Date)>a)return vb.push(j),Td(f.workDelay),i&&Hb.push({from:c,to:j+1}),k=!0;var l=b.highlight(tb,e,f.tabSize);l&&(i=!0),b.stateAfter=m(tb,e);var n=null;if(h){var o=d&&h(d,e);o!=K&&(n=!!o)}n==null&&(l!==!1||!d?g=0:++g>3&&(!tb.indent||tb.indent(d,"")==tb.indent(e,""))&&(n=!0));if(n)return!0;++j});if(k)return;i&&Hb.push({from:c,to:j+1})}b&&f.onHighlightComplete&&f.onHighlightComplete(Zb)}function Td(a){if(!vb.length)return;rb.set(a,Xd(Sd))}function Ud(){Fb=Gb=Ib=null,Hb=[],Jb=!1,Mb=[]}function Vd(){var a=!1,b;Jb&&(a=!Ic()),Hb.length?b=Lc(Hb,!0):(Jb&&Pc(),Lb&&Oc()),a&&Ic(),Jb&&(Hc(),Md()),wb&&!Kb&&(Fb===!0||Fb!==!1&&Jb)&&Fc(Gb),Jb&&f.matchBrackets&&setTimeout(Xd(function(){Rb&&(Rb(),Rb=null),_(xb.from,xb.to)&&Od(!1)}),20);var c=Ib,d=Mb;Jb&&f.onCursorActivity&&f.onCursorActivity(Zb),c&&f.onChange&&Zb&&f.onChange(Zb,c);for(var e=0;e<d.length;++e)d[e](Zb);b&&f.onUpdate&&f.onUpdate(Zb)}function Xd(a){return function(){Wd++||Ud();try{var b=a.apply(this,arguments)}finally{--Wd||Vd()}return b}}function Yd(a){Vb.startCompound();try{return a()}finally{Vb.endCompound()}}var f={},o=a.defaults;for(var s in o)o.hasOwnProperty(s)&&(f[s]=(e&&e.hasOwnProperty(s)?e:o)[s]);var A=document.createElement("div");A.className="CodeMirror"+(f.lineWrapping?" CodeMirror-wrap":""),A.innerHTML='<div style="overflow: hidden; position: relative; width: 3px; height: 0px;"><textarea style="position: absolute; padding: 0; width: 1px; height: 1em" wrap="off" autocorrect="off" autocapitalize="off"></textarea></div><div class="CodeMirror-scroll" tabindex="-1"><div style="position: relative"><div style="position: relative"><div class="CodeMirror-gutter"><div class="CodeMirror-gutter-text"></div></div><div class="CodeMirror-lines"><div style="position: relative; z-index: 0"><div style="position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden;"></div><pre class="CodeMirror-cursor">&#160;</pre><div style="position: relative; z-index: -1"></div><div></div></div></div></div></div></div>',d.appendChild?d.appendChild(A):d(A);var D=A.firstChild,R=D.firstChild,U=A.lastChild,W=U.firstChild,X=W.firstChild,cb=X.firstChild,db=cb.firstChild,kb=cb.nextSibling.firstChild,lb=kb.firstChild,mb=lb.nextSibling,nb=mb.nextSibling,ob=nb.nextSibling;id(),jd(),b&&(R.style.width="0px"),P||(kb.draggable=!0),kb.style.outline="none",f.tabindex!=null&&(R.tabIndex=f.tabindex),f.autofocus&&Gc(),!f.gutter&&!f.lineNumbers&&(cb.style.display="none"),S&&(D.style.height="1px",D.style.position="absolute");try{ud("x")}catch(pb){throw pb.message.match(/runtime/i)&&(pb=new Error("A CodeMirror inside a P-style element does not work in Internet Explorer. (innerHTML bug)")),pb}var qb=new J,rb=new J,sb,tb,ub=new u([new t([new r("")])]),vb,wb;ed();var xb={from:{line:0,ch:0},to:{line:0,ch:0},inverted:!1},yb,zb,Ab,Bb=0,Cb,Db=!1,Eb=!1,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb=0,Ob=0,Pb=0,Qb=0,Rb,Sb="",Tb,Ub={};Xd(function(){ac(f.value||""),Fb=!1})();var Vb=new z;I(U,"mousedown",Xd(cc)),I(U,"dblclick",Xd(dc)),I(kb,"selectstart",C),L||I(U,"contextmenu",Ld),I(U,"scroll",function(){Bb=U.scrollTop,Lc([]),f.fixedGutter&&(cb.style.left=U.scrollLeft+"px"),f.onScroll&&f.onScroll(Zb)}),I(window,"resize",function(){Lc(!0)}),I(R,"keyup",Xd(nc)),I(R,"input",Cc),I(R,"keydown",Xd(lc)),I(R,"keypress",Xd(mc)),I(R,"focus",oc),I(R,"blur",pc);if(f.dragDrop){I(kb,"dragstart",fc);function Wb(a){if(f.onDragEvent&&f.onDragEvent(Zb,B(a)))return;E(a)}I(U,"dragenter",Wb),I(U,"dragover",Wb),I(U,"drop",Xd(ec))}I(U,"paste",function(){Gc(),Cc()}),I(R,"paste",Cc),I(R,"cut",Xd(function(){f.readOnly||wc("")})),S&&I(W,"mouseup",function(){document.activeElement==R&&R.blur(),Gc()});var Xb;try{Xb=document.activeElement==R}catch(pb){}Xb||f.autofocus?setTimeout(oc,20):pc();var Zb=A.CodeMirror={getValue:bc,setValue:Xd(ac),getSelection:zc,replaceSelection:Xd(wc),focus:function(){window.focus(),Gc(),oc(),Cc()},setOption:function(a,b){var c=f[a];f[a]=b,a=="mode"||a=="indentUnit"?ed():a=="readOnly"&&b=="nocursor"?(pc(),R.blur()):a=="readOnly"&&!b?Fc(!0):a=="theme"?id():a=="lineWrapping"&&c!=b?Xd(gd)():a=="tabSize"?Lc(!0):a=="keyMap"&&jd();if(a=="lineNumbers"||a=="gutter"||a=="firstLineNumber"||a=="theme")fd(),Lc(!0)},getOption:function(a){return f[a]},undo:Xd(sc),redo:Xd(tc),indentLine:Xd(function(a,b){typeof b!="string"&&(b==null?b=f.smartIndent?"smart":"prev":b=b?"add":"subtract"),Yb(a)&&dd(a,b)}),indentSelection:Xd(cd),historySize:function(){return{undo:Vb.done.length,redo:Vb.undone.length}},clearHistory:function(){Vb=new z},matchBrackets:Xd(function(){Od(!0)}),getTokenAt:Xd(function(a){return a=Wc(a),$b(a.line).getTokenAt(tb,Qd(a.line),a.ch)}),getStateAfter:function(a){return a=Vc(a==null?ub.size-1:a),Qd(a+1)},cursorCoords:function(a,b){return a==null&&(a=xb.inverted),this.charCoords(a?xb.from:xb.to,b)},charCoords:function(a,b){return a=Wc(a),b=="local"?yd(a,!1):b=="div"?yd(a,!0):Ad(a)},coordsChar:function(a){var b=Y(kb);return zd(a.x-b.left,a.y-b.top)},markText:Xd(ld),setBookmark:md,findMarksAt:nd,setMarker:Xd(od),clearMarker:Xd(pd),setLineClass:Xd(rd),hideLine:Xd(function(a){return sd(a,!0)}),showLine:Xd(function(a){return sd(a,!1)}),onDeleteLine:function(a,b){if(typeof a=="number"){if(!Yb(a))return null;a=$b(a)}return(a.handlers||(a.handlers=[])).push(b),a},lineInfo:td,addWidget:function(a,b,c,d,e){a=yd(Wc(a));var f=a.yBot,g=a.x;b.style.position="absolute",W.appendChild(b);if(d=="over")f=a.y;else if(d=="near"){var h=Math.max(U.offsetHeight,ub.height*Ed()),i=Math.max(W.clientWidth,kb.clientWidth)-Jd();a.yBot+b.offsetHeight>h&&a.y>b.offsetHeight&&(f=a.y-b.offsetHeight),g+b.offsetWidth>i&&(g=i-b.offsetWidth)}b.style.top=f+Id()+"px",b.style.left=b.style.right="",e=="right"?(g=W.clientWidth-b.offsetWidth,b.style.right="0px"):(e=="left"?g=0:e=="middle"&&(g=(W.clientWidth-b.offsetWidth)/2),b.style.left=g+Jd()+"px"),c&&Jc(g,f,g+b.offsetWidth,f+b.offsetHeight)},lineCount:function(){return ub.size},clipPos:Wc,getCursor:function(a){return a==null&&(a=xb.inverted),bb(a?xb.from:xb.to)},somethingSelected:function(){return!_(xb.from,xb.to)},setCursor:Xd(function(a,b,c){b==null&&typeof a.line=="number"?Uc(a.line,a.ch,c):Uc(a,b,c)}),setSelection:Xd(function(a,b,c){(c?Rc:Sc)(Wc(a),Wc(b||a))}),getLine:function(a){if(Yb(a))return $b(a).text},getLineHandle:function(a){if(Yb(a))return $b(a)},setLine:Xd(function(a,b){Yb(a)&&vc(b,{line:a,ch:0},{line:a,ch:$b(a).text.length})}),removeLine:Xd(function(a){Yb(a)&&vc("",{line:a,ch:0},Wc({line:a+1,ch:0}))}),replaceRange:Xd(vc),getRange:function(a,b){return yc(Wc(a),Wc(b))},triggerOnKeyDown:Xd(lc),execCommand:function(a){return h[a](Zb)},moveH:Xd(Yc),deleteH:Xd(Zc),moveV:Xd(_c),toggleOverwrite:function(){Db?(Db=!1,mb.className=mb.className.replace(" CodeMirror-overwrite","")):(Db=!0,mb.className+=" CodeMirror-overwrite")},posFromIndex:function(a){var b=0,c;return ub.iter(0,ub.size,function(d){var e=d.text.length+1;if(e>a)return c=a,!0;a-=e,++b}),Wc({line:b,ch:c})},indexFromPos:function(a){if(a.line<0||a.ch<0)return 0;var b=a.ch;return ub.iter(0,a.line,function(a){b+=a.text.length+1}),b},scrollTo:function(a,b){a!=null&&(U.scrollLeft=a),b!=null&&(U.scrollTop=b),Lc([])},operation:function(a){return Xd(a)()},compoundChange:function(a){return Yd(a)},refresh:function(){Lc(!0),U.scrollHeight>Bb&&(U.scrollTop=Bb)},getInputField:function(){return R},getWrapperElement:function(){return A},getScrollerElement:function(){return U},getGutterElement:function(){return cb}},jc=null,kc,Ac=!1,Dc="",$c=null;kd.prototype.clear=Xd(function(){var a=Infinity,b=-Infinity;for(var c=0,d=this.set.length;c<d;++c){var e=this.set[c],f=e.marked;if(!f||!e.parent)continue;var g=w(e);a=Math.min(a,g),b=Math.max(b,g);for(var h=0;h<f.length;++h)f[h].marker==this&&f.splice(h--,1)}a!=Infinity&&Hb.push({from:a,to:b+1})}),kd.prototype.find=function(){var a,b;for(var c=0,d=this.set.length;c<d;++c){var e=this.set[c],f=e.marked;for(var g=0;g<f.length;++g){var h=f[g];if(h.marker==this)if(h.from!=null||h.to!=null){var i=w(e);i!=null&&(h.from!=null&&(a={line:i,ch:h.from}),h.to!=null&&(b={line:i,ch:h.to}))}}}return{from:a,to:b}};var wd="CodeMirror-temp-"+Math.floor(Math.random()*16777215).toString(16),Bd,Cd,Dd,Fd,Gd=0,Nd={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},Wd=0;for(var Zd in g)g.propertyIsEnumerable(Zd)&&!Zb.propertyIsEnumerable(Zd)&&(Zb[Zd]=g[Zd]);return Zb}function j(a){return typeof a=="string"?i[a]:a}function k(a,b,c,d,e){function f(b){b=j(b);var c=b[a];if(c!=null&&d(c))return!0;if(b.nofallthrough)return e&&e(),!0;var g=b.fallthrough;if(g==null)return!1;if(Object.prototype.toString.call(g)!="[object Array]")return f(g);for(var h=0,i=g.length;h<i;++h)if(f(g[h]))return!0;return!1}return b&&f(b)?!0:f(c)}function l(a){var b=jb[H(a,"keyCode")];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function m(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var c={};for(var d in b){var e=b[d];e instanceof Array&&(e=e.concat([])),c[d]=e}return c}function n(a,b,c){return a.startState?a.startState(b,c):!0}function o(a,b){this.pos=this.start=0,this.string=a,this.tabSize=b||8}function p(a,b,c,d){this.from=a,this.to=b,this.style=c,this.marker=d}function q(a){this.from=a,this.to=a,this.line=null}function r(a,b){this.styles=b||[a,null],this.text=a,this.height=1,this.marked=this.gutterMarker=this.className=this.bgClassName=this.handlers=null,this.stateAfter=this.parent=this.hidden=null}function s(a,b,c,d){for(var e=0,f=0,g=0;f<b;e+=2){var h=c[e],i=f+h.length;g==0?(i>a&&d.push(h.slice(a-f,Math.min(h.length,b-f)),c[e+1]),i>=a&&(g=1)):g==1&&(i>b?d.push(h.slice(0,b-f),c[e+1]):d.push(h,c[e+1])),f=i}}function t(a){this.lines=a,this.parent=null;for(var b=0,c=a.length,d=0;b<c;++b)a[b].parent=this,d+=a[b].height;this.height=d}function u(a){this.children=a;var b=0,c=0;for(var d=0,e=a.length;d<e;++d){var f=a[d];b+=f.chunkSize(),c+=f.height,f.parent=this}this.size=b,this.height=c,this.parent=null}function v(a,b){while(!a.lines)for(var c=0;;++c){var d=a.children[c],e=d.chunkSize();if(b<e){a=d;break}b-=e}return a.lines[b]}function w(a){if(a.parent==null)return null;var b=a.parent,c=fb(b.lines,a);for(var d=b.parent;d;b=d,d=d.parent)for(var e=0,f=d.children.length;;++e){if(d.children[e]==b)break;c+=d.children[e].chunkSize()}return c}function x(a,b){var c=0;a:do{for(var d=0,e=a.children.length;d<e;++d){var f=a.children[d],g=f.height;if(b<g){a=f;continue a}b-=g,c+=f.chunkSize()}return c}while(!a.lines);for(var d=0,e=a.lines.length;d<e;++d){var h=a.lines[d],i=h.height;if(b<i)break;b-=i}return c+d}function y(a,b){var c=0;a:do{for(var d=0,e=a.children.length;d<e;++d){var f=a.children[d],g=f.chunkSize();if(b<g){a=f;continue a}b-=g,c+=f.height}return c}while(!a.lines);for(var d=0;d<b;++d)c+=a.lines[d].height;return c}function z(){this.time=0,this.done=[],this.undone=[],this.compound=0,this.closed=!1}function A(){E(this)}function B(a){return a.stop||(a.stop=A),a}function C(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function D(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function E(a){C(a),D(a)}function F(a){return a.target||a.srcElement}function G(a){if(a.which)return a.which;if(a.button&1)return 1;if(a.button&2)return 3;if(a.button&4)return 2}function H(a,b){var c=a.override&&a.override.hasOwnProperty(b);return c?a.override[b]:a[b]}function I(a,b,c,d){if(typeof a.addEventListener=="function"){a.addEventListener(b,c,!1);if(d)return function(){a.removeEventListener(b,c,!1)}}else{var e=function(a){c(a||window.event)};a.attachEvent("on"+b,e);if(d)return function(){a.detachEvent("on"+b,e)}}}function J(){this.id=null}function W(a,b,c){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var d=0,e=0;d<b;++d)a.charAt(d)==" "?e+=c-e%c:++e;return e}function X(a){return a.currentStyle?a.currentStyle:window.getComputedStyle(a,null)}function Y(a,b){var c=a.ownerDocument.body,d=0,e=0,f=!1;for(var g=a;g;g=g.offsetParent){var h=g.offsetLeft,i=g.offsetTop;g==c?(d+=Math.abs(h),e+=Math.abs(i)):(d+=h,e+=i),b&&X(g).position=="fixed"&&(f=!0)}var j=b&&!f?null:c;for(var g=a.parentNode;g!=j;g=g.parentNode)g.scrollLeft!=null&&(d-=g.scrollLeft,e-=g.scrollTop);return{left:d,top:e}}function Z(a){return a.textContent||a.innerText||a.nodeValue||""}function $(a){b?(a.selectionStart=0,a.selectionEnd=a.value.length):a.select()}function _(a,b){return a.line==b.line&&a.ch==b.ch}function ab(a,b){return a.line<b.line||a.line==b.line&&a.ch<b.ch}function bb(a){return{line:a.line,ch:a.ch}}function db(a){return cb.textContent=a,cb.innerHTML}function eb(a,b){if(!b)return 0;if(!a)return b.length;for(var c=a.length,d=b.length;c>=0&&d>=0;--c,--d)if(a.charAt(c)!=b.charAt(d))break;return d+1}function fb(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0,d=a.length;c<d;++c)if(a[c]==b)return c;return-1}function gb(a){return/\w/.test(a)||a.toUpperCase()!=a.toLowerCase()}a.defaults={value:"",mode:null,theme:"default",indentUnit:2,indentWithTabs:!1,smartIndent:!0,tabSize:4,keyMap:"default",extraKeys:null,electricChars:!0,autoClearEmptyLines:!1,onKeyEvent:null,onDragEvent:null,lineWrapping:!1,lineNumbers:!1,gutter:!1,fixedGutter:!1,firstLineNumber:1,readOnly:!1,dragDrop:!0,onChange:null,onCursorActivity:null,onGutterClick:null,onHighlightComplete:null,onUpdate:null,onFocus:null,onBlur:null,onScroll:null,matchBrackets:!1,workTime:100,workDelay:200,pollInterval:100,undoDepth:40,tabindex:null,autofocus:null};var b=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),c=b||/Mac/.test(navigator.platform),d=/Win/.test(navigator.platform),e=a.modes={},f=a.mimeModes={};a.defineMode=function(b,c){!a.defaults.mode&&b!="null"&&(a.defaults.mode=b);if(arguments.length>2){c.dependencies=[];for(var d=2;d<arguments.length;++d)c.dependencies.push(arguments[d])}e[b]=c},a.defineMIME=function(a,b){f[a]=b},a.resolveMode=function(b){if(typeof b=="string"&&f.hasOwnProperty(b))b=f[b];else if(typeof b=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(b))return a.resolveMode("application/xml");return typeof b=="string"?{name:b}:b||{name:"null"}},a.getMode=function(b,c){var c=a.resolveMode(c),d=e[c.name];return d?d(b,c):a.getMode(b,"text/plain")},a.listModes=function(){var a=[];for(var b in e)e.propertyIsEnumerable(b)&&a.push(b);return a},a.listMIMEs=function(){var a=[];for(var b in f)f.propertyIsEnumerable(b)&&a.push({mime:b,mode:f[b]});return a};var g=a.extensions={};a.defineExtension=function(a,b){g[a]=b};var h=a.commands={selectAll:function(a){a.setSelection({line:0,ch:0},{line:a.lineCount()-1})},killLine:function(a){var b=a.getCursor(!0),c=a.getCursor(!1),d=!_(b,c);!d&&a.getLine(b.line).length==b.ch?a.replaceRange("",b,{line:b.line+1,ch:0}):a.replaceRange("",b,d?c:{line:b.line})},deleteLine:function(a){var b=a.getCursor().line;a.replaceRange("",{line:b,ch:0},{line:b})},undo:function(a){a.undo()},redo:function(a){a.redo()},goDocStart:function(a){a.setCursor(0,0,!0)},goDocEnd:function(a){a.setSelection({line:a.lineCount()-1},null,!0)},goLineStart:function(a){a.setCursor(a.getCursor().line,0,!0)},goLineStartSmart:function(a){var b=a.getCursor(),c=a.getLine(b.line),d=Math.max(0,c.search(/\S/));a.setCursor(b.line,b.ch<=d&&b.ch?0:d,!0)},goLineEnd:function(a){a.setSelection({line:a.getCursor().line},null,!0)},goLineUp:function(a){a.moveV(-1,"line")},goLineDown:function(a){a.moveV(1,"line")},goPageUp:function(a){a.moveV(-1,"page")},goPageDown:function(a){a.moveV(1,"page")},goCharLeft:function(a){a.moveH(-1,"char")},goCharRight:function(a){a.moveH(1,"char")},goColumnLeft:function(a){a.moveH(-1,"column")},goColumnRight:function(a){a.moveH(1,"column")},goWordLeft:function(a){a.moveH(-1,"word")},goWordRight:function(a){a.moveH(1,"word")},delCharLeft:function(a){a.deleteH(-1,"char")},delCharRight:function(a){a.deleteH(1,"char")},delWordLeft:function(a){a.deleteH(-1,"word")},delWordRight:function(a){a.deleteH(1,"word")},indentAuto:function(a){a.indentSelection("smart")},indentMore:function(a){a.indentSelection("add")},indentLess:function(a){a.indentSelection("subtract")},insertTab:function(a){a.replaceSelection(" ","end")},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.replaceSelection(" ","end")},transposeChars:function(a){var b=a.getCursor(),c=a.getLine(b.line);b.ch>0&&b.ch<c.length-1&&a.replaceRange(c.charAt(b.ch)+c.charAt(b.ch-1),{line:b.line,ch:b.ch-1},{line:b.line,ch:b.ch+1})},newlineAndIndent:function(a){a.replaceSelection("\n","end"),a.indentLine(a.getCursor().line)},toggleOverwrite:function(a){a.toggleOverwrite()}},i=a.keyMap={};i.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharRight",Backspace:"delCharLeft",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite"},i.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Alt-Up":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Down":"goDocEnd","Ctrl-Left":"goWordLeft","Ctrl-Right":"goWordRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delWordLeft","Ctrl-Delete":"delWordRight","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore",fallthrough:"basic"},i.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goWordLeft","Alt-Right":"goWordRight","Cmd-Left":"goLineStart","Cmd-Right":"goLineEnd","Alt-Backspace":"delWordLeft","Ctrl-Alt-Backspace":"delWordRight","Alt-Delete":"delWordRight","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore",fallthrough:["basic","emacsy"]},i["default"]=c?i.macDefault:i.pcDefault,i.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageUp","Shift-Ctrl-V":"goPageDown","Ctrl-D":"delCharRight","Ctrl-H":"delCharLeft","Alt-D":"delWordRight","Alt-Backspace":"delWordLeft","Ctrl-K":"killLine","Ctrl-T":"transposeChars"},a.fromTextArea=function(b,c){function d(){b.value=h.getValue()}c||(c={}),c.value=b.value,!c.tabindex&&b.tabindex&&(c.tabindex=b.tabindex),c.autofocus==null&&b.getAttribute("autofocus")!=null&&(c.autofocus=!0);if(b.form){var e=I(b.form,"submit",d,!0);if(typeof b.form.submit=="function"){var f=b.form.submit;function g(){d(),b.form.submit=f,b.form.submit(),b.form.submit=g}b.form.submit=g}}b.style.display="none";var h=a(function(a){b.parentNode.insertBefore(a,b.nextSibling)},c);return h.save=d,h.getTextArea=function(){return b},h.toTextArea=function(){d(),b.parentNode.removeChild(h.getWrapperElement()),b.style.display="",b.form&&(e(),typeof b.form.submit=="function"&&(b.form.submit=f))},h},a.copyState=m,a.startState=n,o.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==0},peek:function(){return this.string.charAt(this.pos)},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(a){var b=this.string.charAt(this.pos);if(typeof a=="string")var c=b==a;else var c=b&&(a.test?a.test(b):a(b));if(c)return++this.pos,b},eatWhile:function(a){var b=this.pos;while(this.eat(a));return this.pos>b},eatSpace:function(){var a=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>a},skipToEnd:function(){this.pos=this.string.length},skipTo:function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},backUp:function(a){this.pos-=a},column:function(){return W(this.string,this.start,this.tabSize)},indentation:function(){return W(this.string,null,this.tabSize)},match:function(a,b,c){if(typeof a!="string"){var e=this.string.slice(this.pos).match(a);return e&&b!==!1&&(this.pos+=e[0].length),e}function d(a){return c?a.toLowerCase():a}if(d(this.string).indexOf(d(a),this.pos)==this.pos)return b!==!1&&(this.pos+=a.length),!0},current:function(){return this.string.slice(this.start,this.pos)}},a.StringStream=o,p.prototype={attach:function(a){this.marker.set.push(a)},detach:function(a){var b=fb(this.marker.set,a);b>-1&&this.marker.set.splice(b,1)},split:function(a,b){if(this.to<=a&&this.to!=null)return null;var c=this.from<a||this.from==null?null:this.from-a+b,d=this.to==null?null:this.to-a+b;return new p(c,d,this.style,this.marker)},dup:function(){return new p(null,null,this.style,this.marker)},clipTo:function(a,b,c,d,e){a&&d>this.from&&(d<this.to||this.to==null)?this.from=null:this.from!=null&&this.from>=b&&(this.from=Math.max(d,this.from)+e),c&&(b<this.to||this.to==null)&&(b>this.from||this.from==null)?this.to=null:this.to!=null&&this.to>b&&(this.to=d<this.to?this.to+e:b)},isDead:function(){return this.from!=null&&this.to!=null&&this.from>=this.to},sameSet:function(a){return this.marker==a.marker}},q.prototype={attach:function(a){this.line=a},detach:function(a){this.line==a&&(this.line=null)},split:function(a,b){if(a<this.from)return this.from=this.to=this.from-a+b,this},isDead:function(){return this.from>this.to},clipTo:function(a,b,c,d,e){(a||b<this.from)&&(c||d>this.to)?(this.from=0,this.to=-1):this.from>b&&(this.from=this.to=Math.max(d,this.from)+e)},sameSet:function(a){return!1},find:function(){return!this.line||!this.line.parent?null:{line:w(this.line),ch:this.from}},clear:function(){if(this.line){var a=fb(this.line.marked,this);a!=-1&&this.line.marked.splice(a,1),this.line=null}}},r.inheritMarks=function(a,b){var c=new r(a),d=b&&b.marked;if(d)for(var e=0;e<d.length;++e)if(d[e].to==null&&d[e].style){var f=c.marked||(c.marked=[]),g=d[e],h=g.dup();f.push(h),h.attach(c)}return c},r.prototype={replace:function(a,b,c){var d=[],e=this.marked,f=b==null?this.text.length:b;s(0,a,this.styles,d),c&&d.push(c,null),s(f,this.text.length,this.styles,d),this.styles=d,this.text=this.text.slice(0,a)+c+this.text.slice(f),this.stateAfter=null;if(e){var g=c.length-(f-a);for(var h=0;h<e.length;++h){var i=e[h];i.clipTo(a==null,a||0,b==null,f,g),i.isDead()&&(i.detach(this),e.splice(h--,1))}}},split:function(a,b){var c=[b,null],d=this.marked;s(a,this.text.length,this.styles,c);var e=new r(b+this.text.slice(a),c);if(d)for(var f=0;f<d.length;++f){var g=d[f],h=g.split(a,b.length);h&&(e.marked||(e.marked=[]),e.marked.push(h),h.attach(e),h==g&&d.splice(f--,1))}return e},append:function(a){var b=this.text.length,c=a.marked,d=this.marked;this.text+=a.text,s(0,a.text.length,a.styles,this.styles);if(d)for(var e=0;e<d.length;++e)d[e].to==null&&(d[e].to=b);if(c&&c.length){d||(this.marked=d=[]);a:for(var e=0;e<c.length;++e){var f=c[e];if(!f.from)for(var g=0;g<d.length;++g){var h=d[g];if(h.to==b&&h.sameSet(f)){h.to=f.to==null?null:f.to+b,h.isDead()&&(h.detach(this),c.splice(e--,1));continue a}}d.push(f),f.attach(this),f.from+=b,f.to!=null&&(f.to+=b)}}},fixMarkEnds:function(a){var b=this.marked,c=a.marked;if(!b)return;for(var d=0;d<b.length;++d){var e=b[d],f=e.to==null;if(f&&c)for(var g=0;g<c.length;++g)if(c[g].sameSet(e)){f=!1;break}f&&(e.to=this.text.length)}},fixMarkStarts:function(){var a=this.marked;if(!a)return;for(var b=0;b<a.length;++b)a[b].from==null&&(a[b].from=0)},addMark:function(a){a.attach(this),this.marked==null&&(this.marked=[]),this.marked.push(a),this.marked.sort(function(a,b){return(a.from||0)-(b.from||0)})},highlight:function(a,b,c){var d=new o(this.text,c),e=this.styles,f=0,g=!1,h=e[0],i;this.text==""&&a.blankLine&&a.blankLine(b);while(!d.eol()){var j=a.token(d,b),k=this.text.slice(d.start,d.pos);d.start=d.pos,f&&e[f-1]==j?e[f-2]+=k:k&&(!g&&(e[f+1]!=j||f&&e[f-2]!=i)&&(g=!0),e[f++]=k,e[f++]=j,i=h,h=e[f]);if(d.pos>5e3){e[f++]=this.text.slice(d.pos),e[f++]=null;break}}return e.length!=f&&(e.length=f,g=!0),f&&e[f-2]!=i&&(g=!0),g||(e.length<5&&this.text.length<10?null:!1)},getTokenAt:function(a,b,c){var d=this.text,e=new o(d);while(e.pos<c&&!e.eol()){e.start=e.pos;var f=a.token(e,b)}return{start:e.start,end:e.pos,string:e.current(),className:f||null,state:b}},indentation:function(a){return W(this.text,null,a)},getHTML:function(a,b,c,d){function h(b,c){if(!b)return;f&&M&&b.charAt(0)==" "&&(b="\u00a0"+b.slice(1)),f=!1;if(b.indexOf(" ")==-1){g+=b.length;var d=db(b)}else{var d="";for(var h=0;;){var i=b.indexOf(" ",h);if(i==-1){d+=db(b.slice(h)),g+=b.length-h;break}g+=i-h;var j=a(g);d+=db(b.slice(h,i))+j.html,g+=j.width,h=i+1}}c?e.push('<span class="',c,'">',d,"</span>"):e.push(d)}function p(a){return a?"cm-"+a.replace(/ +/g," cm-"):null}var e=[],f=!0,g=0,i=h;if(b!=null){var j=0,k='<span id="'+c+'">';i=function(a,c){var f=a.length;if(b>=j&&b<j+f){b>j&&(h(a.slice(0,b-j),c),d&&e.push("<wbr>")),e.push(k);var g=b-j;h(window.opera?a.slice(g,g+1):a.slice(g),c),e.push("</span>"),window.opera&&h(a.slice(g+1),c),b--,j+=f}else j+=f,h(a,c),j==b&&j==o?e.push(k+" </span>"):j>b+10&&/\s/.test(a)&&(i=function(){})}}var l=this.styles,m=this.text,n=this.marked,o=m.length;if(!m&&b==null)i(" ");else if(!n||!n.length)for(var q=0,r=0;r<o;q+=2){var s=l[q],t=l[q+1],u=s.length;r+u>o&&(s=s.slice(0,o-r)),r+=u,i(s,p(t))}else{var v=0,q=0,w="",t,x=0,y=n[0].from||0,z=[],A=0;function B(){var a;while(A<n.length&&((a=n[A]).from==v||a.from==null))a.style!=null&&z.push(a),++A;y=A<n.length?n[A].from:Infinity;for(var b=0;b<z.length;++b){var c=z[b].to||Infinity;c==v?z.splice(b--,1):y=Math.min(c,y)}}var C=0;while(v<o){y==v&&B();var D=Math.min(o,y);for(;;){if(w){var E=v+w.length,F=t;for(var G=0;G<z.length;++G)F=(F?F+" ":"")+z[G].style;i(E>D?w.slice(0,D-v):w,F);if(E>=D){w=w.slice(D-v),v=D;break}v=E}w=l[q++],t=p(l[q++])}}}return e.join("")},cleanUp:function(){this.parent=null;if(this.marked)for(var a=0,b=this.marked.length;a<b;++a)this.marked[a].detach(this)}},t.prototype={chunkSize:function(){return this.lines.length},remove:function(a,b,c){for(var d=a,e=a+b;d<e;++d){var f=this.lines[d];this.height-=f.height,f.cleanUp();if(f.handlers)for(var g=0;g<f.handlers.length;++g)c.push(f.handlers[g])}this.lines.splice(a,b)},collapse:function(a){a.splice.apply(a,[a.length,0].concat(this.lines))},insertHeight:function(a,b,c){this.height+=c,M?this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a)):this.lines.splice.apply(this.lines,[a,0].concat(b));for(var d=0,e=b.length;d<e;++d)b[d].parent=this},iterN:function(a,b,c){for(var d=a+b;a<d;++a)if(c(this.lines[a]))return!0}},u.prototype={chunkSize:function(){return this.size},remove:function(a,b,c){this.size-=b;for(var d=0;d<this.children.length;++d){var e=this.children[d],f=e.chunkSize();if(a<f){var g=Math.min(b,f-a),h=e.height;e.remove(a,g,c),this.height-=h-e.height,f==g&&(this.children.splice(d--,1),e.parent=null);if((b-=g)==0)break;a=0}else a-=f}if(this.size-b<25){var i=[];this.collapse(i),this.children=[new t(i)],this.children[0].parent=this}},collapse:function(a){for(var b=0,c=this.children.length;b<c;++b)this.children[b].collapse(a)},insert:function(a,b){var c=0;for(var d=0,e=b.length;d<e;++d)c+=b[d].height;this.insertHeight(a,b,c)},insertHeight:function(a,b,c){this.size+=b.length,this.height+=c;for(var d=0,e=this.children.length;d<e;++d){var f=this.children[d],g=f.chunkSize();if(a<=g){f.insertHeight(a,b,c);if(f.lines&&f.lines.length>50){while(f.lines.length>50){var h=f.lines.splice(f.lines.length-25,25),i=new t(h);f.height-=i.height,this.children.splice(d+1,0,i),i.parent=this}this.maybeSpill()}break}a-=g}},maybeSpill:function(){if(this.children.length<=10)return;var a=this;do{var b=a.children.splice(a.children.length-5,5),c=new u(b);if(!a.parent){var d=new u(a.children);d.parent=a,a.children=[d,c],a=d}else{a.size-=c.size,a.height-=c.height;var e=fb(a.parent.children,a);a.parent.children.splice(e+1,0,c)}c.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()},iter:function(a,b,c){this.iterN(a,b-a,c)},iterN:function(a,b,c){for(var d=0,e=this.children.length;d<e;++d){var f=this.children[d],g=f.chunkSize();if(a<g){var h=Math.min(b,g-a);if(f.iterN(a,h,c))return!0;if((b-=h)==0)break;a=0}else a-=g}}},z.prototype={addChange:function(a,b,c){this.undone.length=0;var d=+(new Date),e=this.done[this.done.length-1],f=e&&e[e.length-1],g=d-this.time;if(this.compound&&e&&!this.closed)e.push({start:a,added:b,old:c});else if(g>400||!f||this.closed||f.start>a+c.length||f.start+f.added<a)this.done.push([{start:a,added:b,old:c}]),this.closed=!1;else{var h=Math.max(0,f.start-a),i=Math.max(0,a+c.length-(f.start+f.added));for(var j=h;j>0;--j)f.old.unshift(c[j-1]);for(var j=i;j>0;--j)f.old.push(c[c.length-j]);h&&(f.start=a),f.added+=b-(c.length-h-i)}this.time=d},startCompound:function(){this.compound++||(this.closed=!0)},endCompound:function(){--this.compound||(this.closed=!0)}},a.e_stop=E,a.e_preventDefault=C,a.e_stopPropagation=D,a.connect=I,J.prototype={set:function(a,b){clearTimeout(this.id),this.id=setTimeout(b,a)}};var K=a.Pass={toString:function(){return"CodeMirror.Pass"}},L=/gecko\/\d{7}/i.test(navigator.userAgent),M=/MSIE \d/.test(navigator.userAgent),N=/MSIE [1-8]\b/.test(navigator.userAgent),O=M&&document.documentMode==5,P=/WebKit\//.test(navigator.userAgent),Q=/Chrome\//.test(navigator.userAgent),R=/Apple Computer/.test(navigator.vendor),S=/KHTML\//.test(navigator.userAgent),T=function(){if(N)return!1;var a=document.createElement("div");return"draggable"in a||"dragDrop"in a}(),U=function(){var a=document.createElement("textarea");return a.value="foo\nbar",a.value.indexOf("\r")>-1?"\r\n":"\n"}(),V=/^$/;L?V=/$'/:R?V=/\-[^ \-?]|\?[^ !'\"\),.\-\/:;\?\]\}]/:Q&&(V=/\-[^ \-\.?]|\?[^ \-\.?\]\}:;!'\"\),\/]|[\.!\"#&%\)*+,:;=>\]|\}~][\(\{\[<]|\$'/),document.documentElement.getBoundingClientRect!=null&&(Y=function(a,b){try{var c=a.getBoundingClientRect();c={top:c.top,left:c.left}}catch(d){c={top:0,left:0}}if(!b)if(window.pageYOffset==null){var e=document.documentElement||document.body.parentNode;e.scrollTop==null&&(e=document.body),c.top+=e.scrollTop,c.left+=e.scrollLeft}else c.top+=window.pageYOffset,c.left+=window.pageXOffset;return c});var cb=document.createElement("pre");db("a")=="\na"?db=function(a){return cb.textContent=a,cb.innerHTML.slice(1)}:db(" ")!=" "&&(db=function(a){return cb.innerHTML="",cb.appendChild(document.createTextNode(a)),cb.innerHTML}),a.htmlEscape=db;var hb="\n\nb".split(/\n/).length!=3?function(a){var b=0,c,d=[];while((c=a.indexOf("\n",b))>-1)d.push(a.slice(b,a.charAt(c-1)=="\r"?c-1:c)),b=c+1;return d.push(a.slice(b)),d}:function(a){return a.split(/\r?\n/)};a.splitLines=hb;var ib=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){try{var b=a.ownerDocument.selection.createRange()}catch(c){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0};a.defineMode("null",function(){return{token:function(a){a.skipToEnd()}}}),a.defineMIME("text/plain","null");var jb={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",91:"Mod",92:"Mod",93:"Mod",127:"Delete",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63276:"PageUp",63277:"PageDown",63275:"End",63273:"Home",63234:"Left",63232:"Up",63235:"Right",63233:"Down",63302:"Insert",63272:"Delete"};return a.keyNames=jb,function(){for(var a=0;a<10;a++)jb[a+48]=String(a);for(var a=65;a<=90;a++)jb[a]=String.fromCharCode(a);for(var a=1;a<=12;a++)jb[a+111]=jb[a+63235]="F"+a}(),a}();CodeMirror.defineMode("javascript",function(a,b){function g(a,b,c){return b.tokenize=c,c(a,b)}function h(a,b){var c=!1,d;while((d=a.next())!=null){if(d==b&&!c)return!1;c=!c&&d=="\\"}return c}function k(a,b,c){return i=a,j=c,b}function l(a,b){var c=a.next();if(c=='"'||c=="'")return g(a,b,m(c));if(/[\[\]{}\(\),;\:\.]/.test(c))return k(c);if(c=="0"&&a.eat(/x/i))return a.eatWhile(/[\da-f]/i),k("number","number");if(/\d/.test(c)||c=="-"&&a.eat(/\d/))return a.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),k("number","number");if(c=="/")return a.eat("*")?g(a,b,n):a.eat("/")?(a.skipToEnd(),k("comment","comment")):b.reAllowed?(h(a,"/"),a.eatWhile(/[gimy]/),k("regexp","string-2")):(a.eatWhile(f),k("operator",null,a.current()));if(c=="#")return a.skipToEnd(),k("error","error");if(f.test(c))return a.eatWhile(f),k("operator",null,a.current());a.eatWhile(/[\w\$_]/);var d=a.current(),i=e.propertyIsEnumerable(d)&&e[d];return i&&b.kwAllowed?k(i.type,i.style,d):k("variable","variable",d)}function m(a){return function(b,c){return h(b,a)||(c.tokenize=l),k("string","string")}}function n(a,b){var c=!1,d;while(d=a.next()){if(d=="/"&&c){b.tokenize=l;break}c=d=="*"}return k("comment","comment")}function p(a,b,c,d,e,f){this.indented=a,this.column=b,this.type=c,this.prev=e,this.info=f,d!=null&&(this.align=d)}function q(a,b){for(var c=a.localVars;c;c=c.next)if(c.name==b)return!0}function r(a,b,c,e,f){var g=a.cc;s.state=a,s.stream=f,s.marked=null,s.cc=g,a.lexical.hasOwnProperty("align")||(a.lexical.align=!0);for(;;){var h=g.length?g.pop():d?D:C;if(h(c,e)){while(g.length&&g[g.length-1].lex)g.pop()();return s.marked?s.marked:c=="variable"&&q(a,e)?"variable-2":b}}}function t(){for(var a=arguments.length-1;a>=0;a--)s.cc.push(arguments[a])}function u(){return t.apply(null,arguments),!0}function v(a){var b=s.state;if(b.context){s.marked="def";for(var c=b.localVars;c;c=c.next)if(c.name==a)return;b.localVars={name:a,next:b.localVars}}}function x(){s.state.context||(s.state.localVars=w),s.state.context={prev:s.state.context,vars:s.state.localVars}}function y(){s.state.localVars=s.state.context.vars,s.state.context=s.state.context.prev}function z(a,b){var c=function(){var c=s.state;c.lexical=new p(c.indented,s.stream.column(),a,null,c.lexical,b)};return c.lex=!0,c}function A(){var a=s.state;a.lexical.prev&&(a.lexical.type==")"&&(a.indented=a.lexical.indented),a.lexical=a.lexical.prev)}function B(a){return function(c){return c==a?u():a==";"?t():u(arguments.callee)}}function C(a){return a=="var"?u(z("vardef"),L,B(";"),A):a=="keyword a"?u(z("form"),D,C,A):a=="keyword b"?u(z("form"),C,A):a=="{"?u(z("}"),K,A):a==";"?u():a=="function"?u(R):a=="for"?u(z("form"),B("("),z(")"),N,B(")"),A,C,A):a=="variable"?u(z("stat"),G):a=="switch"?u(z("form"),D,z("}","switch"),B("{"),K,A,A):a=="case"?u(D,B(":")):a=="default"?u(B(":")):a=="catch"?u(z("form"),x,B("("),S,B(")"),C,A,y):t(z("stat"),D,B(";"),A)}function D(a){return o.hasOwnProperty(a)?u(F):a=="function"?u(R):a=="keyword c"?u(E):a=="("?u(z(")"),E,B(")"),A,F):a=="operator"?u(D):a=="["?u(z("]"),J(D,"]"),A,F):a=="{"?u(z("}"),J(I,"}"),A,F):u()}function E(a){return a.match(/[;\}\)\],]/)?t():t(D)}function F(a,b){if(a=="operator"&&/\+\+|--/.test(b))return u(F);if(a=="operator"||a==":")return u(D);if(a==";")return;if(a=="(")return u(z(")"),J(D,")"),A,F);if(a==".")return u(H,F);if(a=="[")return u(z("]"),D,B("]"),A,F)}function G(a){return a==":"?u(A,C):t(F,B(";"),A)}function H(a){if(a=="variable")return s.marked="property",u()}function I(a){a=="variable"&&(s.marked="property");if(o.hasOwnProperty(a))return u(B(":"),D)}function J(a,b){function c(d){return d==","?u(a,c):d==b?u():u(B(b))}return function(e){return e==b?u():t(a,c)}}function K(a){return a=="}"?u():t(C,K)}function L(a,b){return a=="variable"?(v(b),u(M)):u()}function M(a,b){if(b=="=")return u(D,M);if(a==",")return u(L)}function N(a){return a=="var"?u(L,P):a==";"?t(P):a=="variable"?u(O):t(P)}function O(a,b){return b=="in"?u(D):u(F,P)}function P(a,b){return a==";"?u(Q):b=="in"?u(D):u(D,B(";"),Q)}function Q(a){a!=")"&&u(D)}function R(a,b){if(a=="variable")return v(b),u(R);if(a=="(")return u(z(")"),x,J(S,")"),A,C,y)}function S(a,b){if(a=="variable")return v(b),u()}var c=a.indentUnit,d=b.json,e=function(){function a(a){return{type:a,style:"keyword"}}var b=a("keyword a"),c=a("keyword b"),d=a("keyword c"),e=a("operator"),f={type:"atom",style:"atom"};return{"if":b,"while":b,"with":b,"else":c,"do":c,"try":c,"finally":c,"return":d,"break":d,"continue":d,"new":d,"delete":d,"throw":d,"var":a("var"),"const":a("var"),let:a("var"),"function":a("function"),"catch":a("catch"),"for":a("for"),"switch":a("switch"),"case":a("case"),"default":a("default"),"in":e,"typeof":e,"instanceof":e,"true":f,"false":f,"null":f,"undefined":f,NaN:f,Infinity:f}}(),f=/[+\-*&%=<>!?|]/,i,j,o={atom:!0,number:!0,variable:!0,string:!0,regexp:!0},s={state:null,column:null,marked:null,cc:null},w={name:"this",next:{name:"arguments"}};return A.lex=!0,{startState:function(a){return{tokenize:l,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new p((a||0)-c,0,"block",!1),localVars:b.localVars,context:b.localVars&&{vars:b.localVars},indented:0}},token:function(a,b){a.sol()&&(b.lexical.hasOwnProperty("align")||(b.lexical.align=!1),b.indented=a.indentation());if(a.eatSpace())return null;var c=b.tokenize(a,b);return i=="comment"?c:(b.reAllowed=i=="operator"||i=="keyword c"||!!i.match(/^[\[{}\(,;:]$/),b.kwAllowed=i!=".",r(b,c,i,j,a))},indent:function(a,b){if(a.tokenize!=l)return 0;var d=b&&b.charAt(0),e=a.lexical;e.type=="stat"&&d=="}"&&(e=e.prev);var f=e.type,g=d==f;return f=="vardef"?e.indented+4:f=="form"&&d=="{"?e.indented:f=="stat"||f=="form"?e.indented+c:e.info=="switch"&&!g?e.indented+(/^(?:case|default)\b/.test(b)?c:2*c):e.align?e.column+(g?0:1):e.indented+(g?0:c)},electricChars:":{}"}}),CodeMirror.defineMIME("text/javascript","javascript"),CodeMirror.defineMIME("application/json",{name:"javascript",json:!0}),function(){CodeMirror.simpleHint=function(a,b){function e(b){a.replaceRange(b,c.from,c.to)}function m(){if(l)return;l=!0,f.parentNode.removeChild(f)}function n(){e(d[g.selectedIndex]),m(),setTimeout(function(){a.focus()},50)}if(a.somethingSelected())return;var c=b(a);if(!c||!c.list.length)return;var d=c.list;if(d.length==1)return e(d[0]),!0;var f=document.createElement("div");f.className="CodeMirror-completions";var g=f.appendChild(document.createElement("select"));window.opera||(g.multiple=!0);for(var h=0;h<d.length;++h){var i=g.appendChild(document.createElement("option"));i.appendChild(document.createTextNode(d[h]))}g.firstChild.selected=!0,g.size=Math.min(10,d.length);var j=a.cursorCoords();f.style.left=j.x+"px",f.style.top=j.yBot+"px",document.body.appendChild(f);var k=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth);k-j.x<g.clientWidth&&(f.style.left=j.x-g.clientWidth+"px"),d.length<=10&&(f.style.width=g.clientWidth-1+"px");var l=!1;return CodeMirror.connect(g,"blur",m),CodeMirror.connect(g,"keydown",function(c){var d=c.keyCode;d==13?(CodeMirror.e_stop(c),n()):d==27?(CodeMirror.e_stop(c),m(),a.focus()):d!=38&&d!=40&&(m(),a.focus(),a.triggerOnKeyDown(c),setTimeout(function(){CodeMirror.simpleHint(a,b)},50))}),CodeMirror.connect(g,"dblclick",n),g.focus(),window.opera&&setTimeout(function(){l||g.focus()},100),!0}}(),function(){function a(a,b){for(var c=0,d=a.length;c<d;++c)b(a[c])}function b(a,b){if(!Array.prototype.indexOf){var c=a.length;while(c--)if(a[c]===b)return!0;return!1}return a.indexOf(b)!=-1}function c(a,b,c){var d=a.getCursor(),e=c(a,d),f=e;/^[\w$_]*$/.test(e.string)||(e=f={start:d.ch,end:d.ch,string:"",state:e.state,className:e.string=="."?"property":null});while(f.className=="property"){f=c(a,{line:d.line,ch:f.start});if(f.string!=".")return;f=c(a,{line:d.line,ch:f.start});if(f.string==")"){var g=1;do{f=c(a,{line:d.line,ch:f.start});switch(f.string){case")":g++;break;case"(":g--;break;default:}}while(g>0);f=c(a,{line:d.line,ch:f.start});if(f.className!="variable")return;f.className="function"}if(!h)var h=[];h.push(f)}return{list:j(e,h,b),from:{line:d.line,ch:e.start},to:{line:d.line,ch:e.end}}}function d(a,b){var c=a.getTokenAt(b);return b.ch==c.start+1&&c.string.charAt(0)=="."?(c.end=c.start,c.string=".",c.className="property"):/^\.[\w$_]*$/.test(c.string)&&(c.className="property",c.start++,c.string=c.string.replace(/\./,"")),c}function j(c,d,h){function k(a){a.indexOf(j)==0&&!b(i,a)&&i.push(a)}function l(b){typeof b=="string"?a(e,k):b instanceof Array?a(f,k):b instanceof Function&&a(g,k);for(var c in b)k(c)}var i=[],j=c.string;if(d){var m=d.pop(),n;m.className=="variable"?n=window[m.string]:m.className=="string"?n="":m.className=="atom"?n=1:m.className=="function"&&(window.jQuery==null||m.string!="$"&&m.string!="jQuery"||typeof window.jQuery!="function"?window._!=null&&m.string=="_"&&typeof window._=="function"&&(n=window._()):n=window.jQuery());while(n!=null&&d.length)n=n[d.pop().string];n!=null&&l(n)}else{for(var o=c.state.localVars;o;o=o.next)k(o.name);l(window),a(h,k)}return i}CodeMirror.javascriptHint=function(a){return c(a,h,function(a,b){return a.getTokenAt(b)})},CodeMirror.coffeescriptHint=function(a){return c(a,i,d)};var e="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),f="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),g="prototype apply call bind".split(" "),h="break case catch continue debugger default delete do else false finally for function if in instanceof new null return switch throw true try typeof var void while with".split(" "),i="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ")}(),function(){function a(){this.posFrom=this.posTo=this.query=null,this.marked=[]}function b(b){return b._searchState||(b._searchState=new a)}function c(a,b,c,d){a.openDialog?a.openDialog(b,d):d(prompt(c,""))}function d(a,b,c,d){a.openConfirm?a.openConfirm(b,d):confirm(c)&&d[0]()}function e(a){var b=a.match(/^\/(.*)\/$/);return b?new RegExp(b[1]):a}function g(a,d){var g=b(a);if(g.query)return h(a,d);c(a,f,"Search for:",function(b){a.operation(function(){if(!b||g.query)return;g.query=e(b);if(a.lineCount()<2e3)for(var c=a.getSearchCursor(b);c.findNext();)g.marked.push(a.markText(c.from(),c.to(),"CodeMirror-searching"));g.posFrom=g.posTo=a.getCursor(),h(a,d)})})}function h(a,c){a.operation(function(){var d=b(a),e=a.getSearchCursor(d.query,c?d.posFrom:d.posTo);if(!e.find(c)){e=a.getSearchCursor(d.query,c?{line:a.lineCount()-1}:{line:0,ch:0});if(!e.find(c))return}a.setSelection(e.from(),e.to()),d.posFrom=e.from(),d.posTo=e.to()})}function i(a){a.operation(function(){var c=b(a);if(!c.query)return;c.query=null;for(var d=0;d<c.marked.length;++d)c.marked[d].clear();c.marked.length=0})}function m(a,b){c(a,j,"Replace:",function(f){if(!f)return;f=e(f),c(a,k,"Replace with:",function(c){if(b)a.compoundChange(function(){a.operation(function(){for(var b=a.getSearchCursor(f);b.findNext();)if(typeof f!="string"){var d=a.getRange(b.from(),b.to()).match(f);b.replace(c.replace(/\$(\d)/,function(a,b){return d[b]}))}else b.replace(c)})});else{i(a);var e=a.getSearchCursor(f,a.getCursor());function g(){var b=e.from(),c;if(!(c=e.findNext())){e=a.getSearchCursor(f);if(!(c=e.findNext())||e.from().line==b.line&&e.from().ch==b.ch)return}a.setSelection(e.from(),e.to()),d(a,l,"Replace?",[function(){h(c)},g])}function h(a){e.replace(typeof f=="string"?c:c.replace(/\$(\d)/,function(b,c){return a[c]})),g()}g()}})})}var f='Search: <input type="text" style="width: 10em"> <span style="color: #888">(Use /re/ syntax for regexp search)</span>',j='Replace: <input type="text" style="width: 10em"> <span style="color: #888">(Use /re/ syntax for regexp search)</span>',k='With: <input type="text" style="width: 10em">',l="Replace? <button>Yes</button> <button>No</button> <button>Stop</button>";CodeMirror.commands.find=function(a){i(a),g(a)},CodeMirror.commands.findNext=g,CodeMirror.commands.findPrev=function(a){g(a,!0)},CodeMirror.commands.clearSearch=i,CodeMirror.commands.replace=m,CodeMirror.commands.replaceAll=function(a){m(a,!0)}}(),function(){function a(a,b,c,d){this.atOccurrence=!1,this.cm=a,d==null&&(d=typeof b=="string"&&b==b.toLowerCase()),c=c?a.clipPos(c):{line:0,ch:0},this.pos={from:c,to:c};if(typeof b!="string")this.matches=function(c,d){if(c){var e=a.getLine(d.line).slice(0,d.ch),f=e.match(b),g=0;while(f){var h=e.indexOf(f[0]);g+=h,e=e.slice(h+1);var i=e.match(b);if(!i)break;f=i,g++}}else var e=a.getLine(d.line).slice(d.ch),f=e.match(b),g=f&&d.ch+e.indexOf(f[0]);if(f)return{from:{line:d.line,ch:g},to:{line:d.line,ch:g+f[0].length},match:f}};else{d&&(b=b.toLowerCase());var e=d?function(a){return a.toLowerCase()}:function(a){return a},f=b.split("\n");f.length==1?this.matches=function(c,d){var f=e(a.getLine(d.line)),g=b.length,h;if(c?d.ch>=g&&(h=f.lastIndexOf(b,d.ch-g))!=-1:(h=f.indexOf(b,d.ch))!=-1)return{from:{line:d.line,ch:h},to:{line:d.line,ch:h+g}}}:this.matches=function(b,c){var d=c.line,g=b?f.length-1:0,h=f[g],i=e(a.getLine(d)),j=b?i.indexOf(h)+h.length:i.lastIndexOf(h);if(b?j>=c.ch||j!=h.length:j<=c.ch||j!=i.length-h.length)return;for(;;){if(b?!d:d==a.lineCount()-1)return;i=e(a.getLine(d+=b?-1:1)),h=f[b?--g:++g];if(g>0&&g<f.length-1){if(i!=h)return;continue}var k=b?i.lastIndexOf(h):i.indexOf(h)+h.length;if(b?k!=i.length-h.length:k!=h.length)return;var l={line:c.line,ch:j},m={line:d,ch:k};return{from:b?m:l,to:b?l:m}}}}}a.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(a){function d(a){var c={line:a,ch:0};return b.pos={from:c,to:c},b.atOccurrence=!1,!1}var b=this,c=this.cm.clipPos(a?this.pos.from:this.pos.to);for(;;){if(this.pos=this.matches(a,c))return this.atOccurrence=!0,this.pos.match||!0;if(a){if(!c.line)return d(0);c={line:c.line-1,ch:this.cm.getLine(c.line-1).length}}else{var e=this.cm.lineCount();if(c.line==e-1)return d(e);c={line:c.line+1,ch:0}}}},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(a){var b=this;this.atOccurrence&&(b.pos.to=this.cm.replaceRange(a,b.pos.from,b.pos.to))}},CodeMirror.defineExtension("getSearchCursor",function(b,c,d){return new a(this,b,c,d)})}(),CodeMirror.modeExtensions||(CodeMirror.modeExtensions={}),CodeMirror.defineExtension("getModeExt",function(){var a=CodeMirror.resolveMode(this.getOption("mode")).name,b=CodeMirror.modeExtensions[a];if(!b)throw new Error("No extensions found for mode "+a);return b}),CodeMirror.defineExtension("getModeExtAtPos",function(a){var b=this.getTokenAt(a);return b&&b.state&&b.state.mode?CodeMirror.modeExtensions[b.state.mode=="html"?"htmlmixed":b.state.mode]:this.getModeExt()}),CodeMirror.defineExtension("commentRange",function(a,b,c){var d=this.getModeExtAtPos(this.getCursor());if(a){var e=this.getRange(b,c);this.replaceRange(d.commentStart+this.getRange(b,c)+d.commentEnd,b,c),b.line==c.line&&b.ch==c.ch&&this.setCursor(b.line,b.ch+d.commentStart.length)}else{var f=this.getRange(b,c),g=f.indexOf(d.commentStart),h=f.lastIndexOf(d.commentEnd);g>-1&&h>-1&&h>g&&(f=f.substr(0,g)+f.substring(g+d.commentStart.length,h)+f.substr(h+d.commentEnd.length)),this.replaceRange(f,b,c)}}),CodeMirror.defineExtension("autoIndentRange",function(a,b){var c=this;this.operation(function(){for(var d=a.line;d<=b.line;d++)c.indentLine(d,"smart")})}),CodeMirror.defineExtension("autoFormatRange",function(a,b){var c=this.indexFromPos(a),d=this.indexFromPos(b),e=this.getModeExt().autoFormatLineBreaks(this.getValue(),c,d),f=this;this.operation(function(){f.replaceRange(e,a,b);var d=f.posFromIndex(c).line,g=f.posFromIndex(c+e.length).line;for(var h=d;h<=g;h++)f.indentLine(h,"smart")})}),CodeMirror.modeExtensions.css={commentStart:"/*",commentEnd:"*/",wordWrapChars:[";","\\{","\\}"],autoFormatLineBreaks:function(a){return a.replace(new RegExp("(;|\\{|\\})([^\r\n])","g"),"$1\n$2")}},CodeMirror.modeExtensions.javascript={commentStart:"/*",commentEnd:"*/",wordWrapChars:[";","\\{","\\}"],getNonBreakableBlocks:function(a){var b=[new RegExp("for\\s*?\\(([\\s\\S]*?)\\)"),new RegExp("'([\\s\\S]*?)('|$)"),new RegExp('"([\\s\\S]*?)("|$)'),new RegExp("//.*([\r\n]|$)")],c=new Array;for(var d=0;d<b.length;d++){var e=0;while(e<a.length){var f=a.substr(e).match(b[d]);if(f==null)break;c.push({start:e+f.index,end:e+f.index+f[0].length}),e+=f.index+Math.max(1,f[0].length)}}return c.sort(function(a,b){return a.start-b.start}),c},autoFormatLineBreaks:function(a){var b=0,c=new RegExp("(;|\\{|\\})([^\r\n])","g"),d=this.getNonBreakableBlocks(a);if(d!=null){var e="";for(var f=0;f<d.length;f++)d[f].start>b&&(e+=a.substring(b,d[f].start).replace(c,"$1\n$2"),b=d[f].start),d[f].start<=b&&d[f].end>=b&&(e+=a.substring(b,d[f].end),b=d[f].end);return b<a.length-1&&(e+=a.substr(b).replace(c,"$1\n$2")),e}return a.replace(c,"$1\n$2")}},CodeMirror.modeExtensions.xml={commentStart:"<!--",commentEnd:"-->",wordWrapChars:[">"],autoFormatLineBreaks:function(a){var b=a.split("\n"),c=new RegExp("(^\\s*?<|^[^<]*?)(.+)(>\\s*?$|[^>]*?$)"),d=new RegExp("<","g"),e=new RegExp("(>)([^\r\n])","g");for(var f=0;f<b.length;f++){var g=b[f].match(c);if(g!=null&&g.length>3){b[f]=g[1]+g[2].replace(d,"\n$&").replace(e,"$1\n$2")+g[3];continue}}return b.join("\n")}},CodeMirror.modeExtensions.htmlmixed={commentStart:"<!--",commentEnd:"-->",wordWrapChars:[">",";","\\{","\\}"],getModeInfos:function(a,b){var c=new Array;c[0]={pos:0,modeExt:CodeMirror.modeExtensions.xml,modeName:"xml"};var d=new Array;d[0]={regex:new RegExp("<style[^>]*>([\\s\\S]*?)(</style[^>]*>|$)","i"),modeExt:CodeMirror.modeExtensions.css,modeName:"css"},d[1]={regex:new RegExp("<script[^>]*>([\\s\\S]*?)(</script[^>]*>|$)","i"),modeExt:CodeMirror.modeExtensions.javascript,modeName:"javascript"};var e=typeof b!="undefined"?b:a.length-1;for(var f=0;f<d.length;f++){var g=0;while(g<=e){var h=a.substr(g).match(d[f].regex);if(h==null)break;if(h.length>1&&h[1].length>0){var i=g+h.index+h[0].indexOf(h[1]);c.push({pos:i,modeExt:d[f].modeExt,modeName:d[f].modeName}),c.push({pos:i+h[1].length,modeExt:c[0].modeExt,modeName:c[0].modeName}),g+=h.index+h[0].length;continue}g+=h.index+Math.max(h[0].length,1)}}return c.sort(function(b,c){return b.pos-c.pos}),c},autoFormatLineBreaks:function(a,b,c){var d=this.getModeInfos(a),e=new RegExp("^\\s*?\n"),f=new RegExp("\n\\s*?$"),g="";if(d.length>1)for(var h=1;h<=d.length;h++){var i=d[h-1].pos,j=h<d.length?d[h].pos:c;if(i>=c)break;if(i<b){if(j<=b)continue;i=b}j>c&&(j=c);var k=a.substring(i,j);d[h-1].modeName!="xml"&&(!e.test(k)&&i>0&&(k="\n"+k),!f.test(k)&&j<a.length-1&&(k+="\n")),g+=d[h-1].modeExt.autoFormatLineBreaks(k)}else g=d[0].modeExt.autoFormatLineBreaks(a.substring(b,c));return g}},function(){function b(){this.marked=[]}function c(a){return a._matchHighlightState||(a._matchHighlightState=new b)}function d(a){var b=c(a);for(var d=0;d<b.marked.length;++d)b.marked[d].clear();b.marked=[]}function e(b,e,f){d(b),f=typeof f!="undefined"?f:a;if(b.somethingSelected()&&b.getSelection().replace(/^\s+|\s+$/g,"").length>=f){var g=c(b),h=b.getSelection();b.operation(function(){if(b.lineCount()<2e3)for(var a=b.getSearchCursor(h);a.findNext();)(a.from().line!==b.getCursor(!0).line||a.from().ch!==b.getCursor(!0).ch)&&g.marked.push(b.markText(a.from(),a.to(),e))})}}var a=2;CodeMirror.defineExtension("matchHighlight",function(a,b){e(this,a,b)})}(),function(){function a(a,c,d,e){b(a,c,e)?(a.replaceSelection("\n\n</"+e+">","end"),a.indentLine(d.line+1),a.indentLine(d.line+2),a.setCursor({line:d.line+1,ch:a.getLine(d.line+1).length})):(a.replaceSelection("</"+e+">"),a.setCursor(d))}function b(a,b,d){if(typeof b=="undefined"||b==null||b==1)b=a.getOption("closeTagIndent");return b||(b=[]),c(b,d.toLowerCase())!=-1}function c(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0,d=a.length;c<d;++c)if(a[c]==b)return c;return-1}function d(a,b,c){a.replaceSelection("/"+c+">"),a.setCursor({line:b.line,ch:b.ch+c.length+2})}CodeMirror.defaults.closeTagEnabled=!0,CodeMirror.defaults.closeTagIndent=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"],CodeMirror.defineExtension("closeTag",function(b,c,e){if(!b.getOption("closeTagEnabled"))throw CodeMirror.Pass;var f=b.getOption("mode");if(f=="text/html"){var g=b.getCursor(),h=b.getTokenAt(g),i=h.state;if(i.mode&&i.mode!="html")throw CodeMirror.Pass;if(c==">"){var j=i.htmlState?i.htmlState.type:i.type;if(h.className=="tag"&&j=="closeTag")throw CodeMirror.Pass;b.replaceSelection(">"),g={line:g.line,ch:g.ch+1},b.setCursor(g),h=b.getTokenAt(b.getCursor()),i=h.state,j=i.htmlState?i.htmlState.type:i.type;if(h.className=="tag"&&j!="selfcloseTag"){var k=i.htmlState?i.htmlState.context.tagName:i.tagName;k.length>0&&a(b,e,g,k);return}b.setSelection({line:g.line,ch:g.ch-1},g),b.replaceSelection("")}else if(c=="/"&&h.className=="tag"&&h.string=="<"){var k=i.htmlState?i.htmlState.context?i.htmlState.context.tagName:"":i.context.tagName;if(k.length>0){d(b,g,k);return}}}throw CodeMirror.Pass})}()
View
1  public/stylesheets/bootstrap.css
@@ -674,7 +674,6 @@ pre {
padding: 0 3px 2px;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
font-size: 12px;
- color: #333333;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
View
2  public/stylesheets/bootstrap.min.css
1 addition, 1 deletion not shown
View
114 public/stylesheets/codemirror.css
@@ -0,0 +1,114 @@
+.CodeMirror {
+ line-height: 1em;
+ font-family: monospace;
+}
+
+.CodeMirror-scroll {
+ overflow: auto;
+ height: 300px;
+ /* This is needed to prevent an IE[67] bug where the scrolled content
+ is visible outside of the scrolling box. */
+ position: relative;
+ outline: none;
+}
+
+.CodeMirror-gutter {
+ position: absolute; left: 0; top: 0;
+ z-index: 10;
+ background-color: #f7f7f7;
+ border-right: 1px solid #eee;
+ min-width: 2em;
+ height: 100%;
+}
+.CodeMirror-gutter-text {
+ color: #aaa;
+ text-align: right;
+ padding: .4em .2em .4em .4em;
+ white-space: pre !important;
+}
+.CodeMirror-lines {
+ padding: .4em;
+ white-space: pre;
+}
+
+.CodeMirror pre {
+ -moz-border-radius: 0;
+ -webkit-border-radius: 0;
+ -o-border-radius: 0;
+ border-radius: 0;
+ border-width: 0; margin: 0; padding: 0; background: transparent;
+ font-family: inherit;
+ font-size: inherit;
+ padding: 0; margin: 0;
+ white-space: pre;
+ word-wrap: normal;
+ line-height: inherit;
+}
+
+.CodeMirror-wrap pre {
+ word-wrap: break-word;
+ white-space: pre-wrap;
+ word-break: normal;
+}
+.CodeMirror-wrap .CodeMirror-scroll {
+ overflow-x: hidden;
+}
+
+.CodeMirror textarea {
+ outline: none !important;
+}
+
+.CodeMirror pre.CodeMirror-cursor {
+ z-index: 10;
+ position: absolute;
+ visibility: hidden;
+ border-left: 1px solid black;
+ border-right:none;
+ width:0;
+}
+.CodeMirror pre.CodeMirror-cursor.CodeMirror-overwrite {}
+.CodeMirror-focused pre.CodeMirror-cursor {
+ visibility: visible;
+}
+
+div.CodeMirror-selected { background: #d9d9d9; }
+.CodeMirror-focused div.CodeMirror-selected { background: #d7d4f0; }
+
+.CodeMirror-searching {
+ background: #ffa;
+ background: rgba(255, 255, 0, .4);
+}
+
+/* Default theme */
+
+.cm-s-default span.cm-keyword {color: #708;}
+.cm-s-default span.cm-atom {color: #219;}
+.cm-s-default span.cm-number {color: #164;}
+.cm-s-default span.cm-def {color: #00f;}
+.cm-s-default span.cm-variable {color: black;}
+.cm-s-default span.cm-variable-2 {color: #05a;}
+.cm-s-default span.cm-variable-3 {color: #085;}
+.cm-s-default span.cm-property {color: black;}
+.cm-s-default span.cm-operator {color: black;}
+.cm-s-default span.cm-comment {color: #a50;}
+.cm-s-default span.cm-string {color: #a11;}
+.cm-s-default span.cm-string-2 {color: #f50;}
+.cm-s-default span.cm-meta {color: #555;}
+.cm-s-default span.cm-error {color: #f00;}
+.cm-s-default span.cm-qualifier {color: #555;}
+.cm-s-default span.cm-builtin {color: #30a;}
+.cm-s-default span.cm-bracket {color: #cc7;}
+.cm-s-default span.cm-tag {color: #170;}
+.cm-s-default span.cm-attribute {color: #00c;}
+.cm-s-default span.cm-header {color: #a0a;}
+.cm-s-default span.cm-quote {color: #090;}
+.cm-s-default span.cm-hr {color: #999;}
+.cm-s-default span.cm-link {color: #00c;}
+
+span.cm-header, span.cm-strong {font-weight: bold;}
+span.cm-em {font-style: italic;}
+span.cm-emstrong {font-style: italic; font-weight: bold;}
+span.cm-link {text-decoration: underline;}
+
+div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
+div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
View
82 public/stylesheets/theme/ambiance.css
@@ -0,0 +1,82 @@
+/* ambiance theme for code-mirror */
+
+/* Color scheme */
+
+.cm-s-ambiance .cm-keyword { color: #cda869; }
+.cm-s-ambiance .cm-atom { color: #CF7EA9; }
+.cm-s-ambiance .cm-number { color: #78CF8A; }
+.cm-s-ambiance .cm-def { color: #aac6e3; }
+.cm-s-ambiance .cm-variable { color: #ffb795; }
+.cm-s-ambiance .cm-variable-2 { color: #eed1b3; }
+.cm-s-ambiance .cm-variable-3 { color: #faded3; }
+.cm-s-ambiance .cm-property { color: #eed1b3; }
+.cm-s-ambiance .cm-operator {color: #fa8d6a;}
+.cm-s-ambiance .cm-comment { color: #555; font-style:italic; }
+.cm-s-ambiance .cm-string { color: #8f9d6a; }
+.cm-s-ambiance .cm-string-2 { color: #9d937c; }
+.cm-s-ambiance .cm-meta { color: #D2A8A1; }
+.cm-s-ambiance .cm-error { color: #AF2018; }
+.cm-s-ambiance .cm-qualifier { color: yellow; }
+.cm-s-ambiance .cm-builtin { color: #9999cc; }
+.cm-s-ambiance .cm-bracket { color: #24C2C7; }
+.cm-s-ambiance .cm-tag { color: #fee4ff }
+.cm-s-ambiance .cm-attribute { color: #9B859D; }
+.cm-s-ambiance .cm-header {color: #blue;}
+.cm-s-ambiance .cm-quote { color: #24C2C7; }
+.cm-s-ambiance .cm-hr { color: pink; }
+.cm-s-ambiance .cm-link { color: #F4C20B; }
+.cm-s-ambiance .cm-special { color: #FF9D00; }
+
+.cm-s-ambiance .CodeMirror-matchingbracket { color: #0f0; }
+.cm-s-ambiance .CodeMirror-nonmatchingbracket { color: #f22; }
+
+.cm-s-ambiance .CodeMirror-selected {
+ background: rgba(255, 255, 255, 0.15);
+}
+.CodeMirror-focused .cm-s-ambiance .CodeMirror-selected {
+ background: rgba(255, 255, 255, 0.10);
+}
+
+/* Editor styling */
+
+.cm-s-ambiance {
+ line-height: 1.40em;
+ font-family: Monaco, Menlo,"Andale Mono","lucida console","Courier New",monospace !important;
+ font-size: 12px;
+ color: #E6E1DC;
+ background-color: #202020;
+ -webkit-box-shadow: inset 0 0 10px black;
+ -moz-box-shadow: inset 0 0 10px black;
+ -o-box-shadow: inset 0 0 10px black;
+ box-shadow: inset 0 0 10px black;
+}
+
+.cm-s-ambiance .CodeMirror-gutter {
+ background: #3D3D3D;
+ padding: 0 5px;
+ text-shadow: #333 1px 1px;
+ border-right: 1px solid #4D4D4D;
+ box-shadow: 0 10px 20px black;
+}
+
+.cm-s-ambiance .CodeMirror-gutter .CodeMirror-gutter-text {
+ text-shadow: 0px 1px 1px #4d4d4d;
+ color: #222;
+}
+
+.cm-s-ambiance .CodeMirror-lines {
+
+}
+
+.cm-s-ambiance .CodeMirror-lines .CodeMirror-cursor {
+ border-left: 1px solid #7991E8;
+}
+
+.cm-s-ambiance .activeline {
+ background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.031);
+}
+
+.cm-s-ambiance,
+.cm-s-ambiance .CodeMirror-gutter {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7gdk+wmSHZ1z4pJItqapjoKXWahm8NmV6eOTbWUOp6/6a/XIg6GQqmenJ2lDHyvCFZ2cBDbmtHA043VFhHwXxClWmeYAdLhV00Bd85go8VmaFCkbVkzlQENzfBDZ5gtN7HwF0KDrTwJ0dypSOzpaKCMwQHKTIreYIxlmhXTzTWkVm+LTynZhiSBT3RZQ7aGfjGEd3qyXQ1FDymqbKxpspERQN2MiRjNZlFFQXfCNFm9nM1zpAsoYjmtRTc5ajwuaXc5xrWskT97RaKzAGe5ARHhVUsDbjKklziiX5WROcJwSNCNI+9w1Jwv4Zb2r7lCMZ4oq5C0EdTx+2GzNuKpJ+iFf38JEWkHJn9DNF7mmBDITrWEg0VWL3pHU20tSZnuqWu+R3BtYa8XxV1HO7GyD32UkOpL/yDloINFTmvtId+nmAjxRw40VMwVKiwrKLE4bK5UOVntYwhOcSSXKrJHKPJedocpGjVz/ZMIbnYUPB10/eKCrs5apqpgVmWzBYWpmtKHecJPjaUuEgRDDaU0oZghCJ6zNMQ5ZhDYx05r5v2muQdM0EILtXUsaKiQX9WMEUotagQzFbUNN6NUPC2nm5pxEWGCjMc3GdJHjSU2kORLK/JGSrkfGEIjncU/CYUnOipoYemwj8tST9NsJmB7TUVXtbUtXATJVZXBMvYeTXJfobgJUPmGMP/yFaWonaa6BcFO3nqcIqCozSZoZoSr1g4zJOzuyGnxTEX3lUEJ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U9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC");
+}
View
25 public/stylesheets/theme/blackboard.css
@@ -0,0 +1,25 @@
+/* Port of TextMate's Blackboard theme */
+
+.cm-s-blackboard { background: #0C1021; color: #F8F8F8; }
+.cm-s-blackboard .CodeMirror-selected { background: #253B76 !important; }
+.cm-s-blackboard .CodeMirror-gutter { background: #0C1021; border-right: 0; }
+.cm-s-blackboard .CodeMirror-gutter-text { color: #888; }
+.cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; }
+
+.cm-s-blackboard .cm-keyword { color: #FBDE2D; }
+.cm-s-blackboard .cm-atom { color: #D8FA3C; }
+.cm-s-blackboard .cm-number { color: #D8FA3C; }
+.cm-s-blackboard .cm-def { color: #8DA6CE; }
+.cm-s-blackboard .cm-variable { color: #FF6400; }
+.cm-s-blackboard .cm-operator { color: #FBDE2D;}
+.cm-s-blackboard .cm-comment { color: #AEAEAE; }
+.cm-s-blackboard .cm-string { color: #61CE3C; }
+.cm-s-blackboard .cm-string-2 { color: #61CE3C; }
+.cm-s-blackboard .cm-meta { color: #D8FA3C; }
+.cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; }
+.cm-s-blackboard .cm-builtin { color: #8DA6CE; }
+.cm-s-blackboard .cm-tag { color: #8DA6CE; }
+.cm-s-blackboard .cm-attribute { color: #8DA6CE; }
+.cm-s-blackboard .cm-header { color: #FF6400; }
+.cm-s-blackboard .cm-hr { color: #AEAEAE; }
+.cm-s-blackboard .cm-link { color: #8DA6CE; }
View
18 public/stylesheets/theme/cobalt.css
@@ -0,0 +1,18 @@
+.cm-s-cobalt { background: #002240; color: white; }
+.cm-s-cobalt div.CodeMirror-selected { background: #b36539 !important; }
+.cm-s-cobalt .CodeMirror-gutter { background: #002240; border-right: 1px solid #aaa; }
+.cm-s-cobalt .CodeMirror-gutter-text { color: #d0d0d0; }
+.cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; }
+
+.cm-s-cobalt span.cm-comment { color: #08f; }
+.cm-s-cobalt span.cm-atom { color: #845dc4; }
+.cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
+.cm-s-cobalt span.cm-keyword { color: #ffee80; }
+.cm-s-cobalt span.cm-string { color: #3ad900; }
+.cm-s-cobalt span.cm-meta { color: #ff9d00; }
+.cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
+.cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
+.cm-s-cobalt span.cm-error { color: #9d1e15; }
+.cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
+.cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
+.cm-s-cobalt span.cm-link { color: #845dc4; }
View
25 public/stylesheets/theme/eclipse.css
@@ -0,0 +1,25 @@
+.cm-s-eclipse span.cm-meta {color: #FF1717;}
+.cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }
+.cm-s-eclipse span.cm-atom {color: #219;}
+.cm-s-eclipse span.cm-number {color: #164;}
+.cm-s-eclipse span.cm-def {color: #00f;}
+.cm-s-eclipse span.cm-variable {color: black;}
+.cm-s-eclipse span.cm-variable-2 {color: #0000C0;}
+.cm-s-eclipse span.cm-variable-3 {color: #0000C0;}
+.cm-s-eclipse span.cm-property {color: black;}
+.cm-s-eclipse span.cm-operator {color: black;}
+.cm-s-eclipse span.cm-comment {color: #3F7F5F;}
+.cm-s-eclipse span.cm-string {color: #2A00FF;}
+.cm-s-eclipse span.cm-string-2 {color: #f50;}
+.cm-s-eclipse span.cm-error {color: #f00;}
+.cm-s-eclipse span.cm-qualifier {color: #555;}
+.cm-s-eclipse span.cm-builtin {color: #30a;}
+.cm-s-eclipse span.cm-bracket {color: #cc7;}
+.cm-s-eclipse span.cm-tag {color: #170;}
+.cm-s-eclipse span.cm-attribute {color: #00c;}
+.cm-s-eclipse span.cm-link {color: #219;}
+
+.cm-s-eclipse .CodeMirror-matchingbracket {
+ border:1px solid grey;
+ color:black !important;;
+}
View
10 public/stylesheets/theme/elegant.css
@@ -0,0 +1,10 @@
+.cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;}
+.cm-s-elegant span.cm-comment {color: #262; font-style: italic; line-height: 1em;}
+.cm-s-elegant span.cm-meta {color: #555; font-style: italic; line-height: 1em;}
+.cm-s-elegant span.cm-variable {color: black;}
+.cm-s-elegant span.cm-variable-2 {color: #b11;}
+.cm-s-elegant span.cm-qualifier {color: #555;}
+.cm-s-elegant span.cm-keyword {color: #730;}
+.cm-s-elegant span.cm-builtin {color: #30a;}
+.cm-s-elegant span.cm-error {background-color: #fdd;}
+.cm-s-elegant span.cm-link {color: #762;}
View
45 public/stylesheets/theme/lesser-dark.css
@@ -0,0 +1,45 @@
+/*
+http://lesscss.org/ dark theme
+Ported to CodeMirror by Peter Kroon
+*/
+.CodeMirror{
+ line-height: 15px;
+}
+.cm-s-lesser-dark {
+ font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Monaco', Courier, monospace !important;
+ font-size:12px;
+}
+
+.cm-s-lesser-dark { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; }
+.cm-s-lesser-dark div.CodeMirror-selected {background: #45443B !important;} /* 33322B*/
+.cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
+.cm-s-lesser-dark .CodeMirror-lines { margin-left:3px; margin-right:3px; }/*editable code holder*/
+
+div.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/
+
+.cm-s-lesser-dark .CodeMirror-gutter { background: #262626; border-right:1px solid #aaa; padding-right:3px; min-width:2.5em; }
+.cm-s-lesser-dark .CodeMirror-gutter-text { color: #777; }
+
+.cm-s-lesser-dark span.cm-keyword { color: #599eff; }
+.cm-s-lesser-dark span.cm-atom { color: #C2B470; }
+.cm-s-lesser-dark span.cm-number { color: #B35E4D; }
+.cm-s-lesser-dark span.cm-def {color: white;}
+.cm-s-lesser-dark span.cm-variable { color:#D9BF8C; }
+.cm-s-lesser-dark span.cm-variable-2 { color: #669199; }
+.cm-s-lesser-dark span.cm-variable-3 { color: white; }
+.cm-s-lesser-dark span.cm-property {color: #92A75C;}
+.cm-s-lesser-dark span.cm-operator {color: #92A75C;}
+.cm-s-lesser-dark span.cm-comment { color: #666; }
+.cm-s-lesser-dark span.cm-string { color: #BCD279; }
+.cm-s-lesser-dark span.cm-string-2 {color: #f50;}
+.cm-s-lesser-dark span.cm-meta { color: #738C73; }
+.cm-s-lesser-dark span.cm-error { color: #9d1e15; }
+.cm-s-lesser-dark span.cm-qualifier {color: #555;}
+.cm-s-lesser-dark span.cm-builtin { color: #ff9e59; }
+.cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; }
+.cm-s-lesser-dark span.cm-tag { color: #669199; }
+.cm-s-lesser-dark span.cm-attribute {color: #00c;}
+.cm-s-lesser-dark span.cm-header {color: #a0a;}
+.cm-s-lesser-dark span.cm-quote {color: #090;}
+.cm-s-lesser-dark span.cm-hr {color: #999;}
+.cm-s-lesser-dark span.cm-link {color: #00c;}
View
28 public/stylesheets/theme/monokai.css
@@ -0,0 +1,28 @@
+/* Based on Sublime Text's Monokai theme */
+
+.cm-s-monokai {background: #272822; color: #f8f8f2;}
+.cm-s-monokai div.CodeMirror-selected {background: #49483E !important;}
+.cm-s-monokai .CodeMirror-gutter {background: #272822; border-right: 0px;}
+.cm-s-monokai .CodeMirror-gutter-text {color: #d0d0d0;}
+.cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
+
+.cm-s-monokai span.cm-comment {color: #75715e;}
+.cm-s-monokai span.cm-atom {color: #ae81ff;}
+.cm-s-monokai span.cm-number {color: #ae81ff;}
+
+.cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;}
+.cm-s-monokai span.cm-keyword {color: #f92672;}
+.cm-s-monokai span.cm-string {color: #e6db74;}
+
+.cm-s-monokai span.cm-variable {color: #a6e22e;}
+.cm-s-monokai span.cm-variable-2 {color: #9effff;}
+.cm-s-monokai span.cm-def {color: #fd971f;}
+.cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
+.cm-s-monokai span.cm-bracket {color: #f8f8f2;}
+.cm-s-monokai span.cm-tag {color: #f92672;}
+.cm-s-monokai span.cm-link {color: #ae81ff;}
+
+.cm-s-monokai .CodeMirror-matchingbracket {
+ text-decoration: underline;
+ color: white !important;
+}
View
9 public/stylesheets/theme/neat.css
@@ -0,0 +1,9 @@
+.cm-s-neat span.cm-comment { color: #a86; }
+.cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }
+.cm-s-neat span.cm-string { color: #a22; }
+.cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }
+.cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }
+.cm-s-neat span.cm-variable { color: black; }
+.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
+.cm-s-neat span.cm-meta {color: #555;}
+.cm-s-neat span.cm-link { color: #3a3; }
View
21 public/stylesheets/theme/night.css
@@ -0,0 +1,21 @@
+/* Loosely based on the Midnight Textmate theme */
+
+.cm-s-night { background: #0a001f; color: #f8f8f8; }
+.cm-s-night div.CodeMirror-selected { background: #a8f !important; }
+.cm-s-night .CodeMirror-gutter { background: #0a001f; border-right: 1px solid #aaa; }
+.cm-s-night .CodeMirror-gutter-text { color: #f8f8f8; }
+.cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; }
+
+.cm-s-night span.cm-comment { color: #6900a1; }
+.cm-s-night span.cm-atom { color: #845dc4; }
+.cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
+.cm-s-night span.cm-keyword { color: #599eff; }
+.cm-s-night span.cm-string { color: #37f14a; }
+.cm-s-night span.cm-meta { color: #7678e2; }
+.cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
+.cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
+.cm-s-night span.cm-error { color: #9d1e15; }
+.cm-s-night span.cm-bracket { color: #8da6ce; }
+.cm-s-night span.cm-comment { color: #6900a1; }
+.cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
+.cm-s-night span.cm-link { color: #845dc4; }
View
21 public/stylesheets/theme/rubyblue.css
@@ -0,0 +1,21 @@
+.cm-s-rubyblue { font:13px/1.4em Trebuchet, Verdana, sans-serif; } /* - customized editor font - */
+
+.cm-s-rubyblue { background: #112435; color: white; }
+.cm-s-rubyblue div.CodeMirror-selected { background: #38566F !important; }
+.cm-s-rubyblue .CodeMirror-gutter { background: #1F4661; border-right: 7px solid #3E7087; min-width:2.5em; }
+.cm-s-rubyblue .CodeMirror-gutter-text { color: white; }
+.cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }
+
+.cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }
+.cm-s-rubyblue span.cm-atom { color: #F4C20B; }
+.cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
+.cm-s-rubyblue span.cm-keyword { color: #F0F; }
+.cm-s-rubyblue span.cm-string { color: #F08047; }
+.cm-s-rubyblue span.cm-meta { color: #F0F; }
+.cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
+.cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
+.cm-s-rubyblue span.cm-error { color: #AF2018; }
+.cm-s-rubyblue span.cm-bracket { color: #F0F; }
+.cm-s-rubyblue span.cm-link { color: #F4C20B; }
+.cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
+.cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
View
46 public/stylesheets/theme/xq-dark.css
@@ -0,0 +1,46 @@
+/*
+Copyright (C) 2011 by MarkLogic Corporation
+Author: Mike Brevoort <mike@brevoort.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+*/
+.cm-s-xq-dark { background: #0a001f; color: #f8f8f8; }
+.cm-s-xq-dark span.CodeMirror-selected { background: #a8f !important; }
+.cm-s-xq-dark .CodeMirror-gutter { background: #0a001f; border-right: 1px solid #aaa; }
+.cm-s-xq-dark .CodeMirror-gutter-text { color: #f8f8f8; }
+.cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
+
+.cm-s-xq-dark span.cm-keyword {color: #FFBD40;}
+.cm-s-xq-dark span.cm-atom {color: #6C8CD5;}
+.cm-s-xq-dark span.cm-number {color: #164;}
+.cm-s-xq-dark span.cm-def {color: #FFF; text-decoration:underline;}
+.cm-s-xq-dark span.cm-variable {color: #FFF;}
+.cm-s-xq-dark span.cm-variable-2 {color: #EEE;}
+.cm-s-xq-dark span.cm-variable-3 {color: #DDD;}
+.cm-s-xq-dark span.cm-property {}
+.cm-s-xq-dark span.cm-operator {}
+.cm-s-xq-dark span.cm-comment {color: gray;}
+.cm-s-xq-dark span.cm-string {color: #9FEE00;}
+.cm-s-xq-dark span.cm-meta {color: yellow;}
+.cm-s-xq-dark span.cm-error {color: #f00;}
+.cm-s-xq-dark span.cm-qualifier {color: #FFF700;}
+.cm-s-xq-dark span.cm-builtin {color: #30a;}
+.cm-s-xq-dark span.cm-bracket {color: #cc7;}
+.cm-s-xq-dark span.cm-tag {color: #FFBD40;}
+.cm-s-xq-dark span.cm-attribute {color: #FFF700;}
View
5 routes/collection.js
@@ -1,3 +1,5 @@
+var config = require('../config');
+
//view all entries in a collection
exports.viewCollection = function(req, res, next) {
var query_options = {
@@ -10,7 +12,8 @@ exports.viewCollection = function(req, res, next) {
var ctx = {
title: 'Viewing Collection: ' + req.collectionName,
documents: items,
- stats: stats
+ stats: stats,
+ editorTheme: config.options.editorTheme
};
res.render('collection', ctx);
View
3  routes/document.js
@@ -1,6 +1,9 @@
+var config = require('../config');
+
exports.viewDocument = function(req, res, next) {
var ctx = {
title: 'Viewing Document: ' + req.document._id,
+ editorTheme: config.options.editorTheme
};
res.render('document', ctx);
View
139 views/collection.html
@@ -2,18 +2,36 @@
{% block title %}{{ collectionName }}{% endblock %}
+
+{% block head %}
+ <link href="stylesheets/codemirror.css" rel="stylesheet">
+ <script type="text/javascript" src="javascripts/codemirror-compressed.js"></script>
+
+ {% if editorTheme != "default" %}
+ <link href="stylesheets/theme/{{ editorTheme }}.css" rel="stylesheet">
+ {% endif %}
+
+ <style type="text/css">
+ .CodeMirror-scroll {
+ height: 100px;
+ overflow: auto;
+ }
+ </style>
+{% endblock %}
+
+
{% block breadcrumb %}
-<li>
- <a href="">Home</a>
- <span class="divider">/</span>
-</li>
-<li>
- <a href="/db/{{ dbName }}">{{ dbName }}</a>
- <span class="divider">/</span>
-</li>
-<li class="active">
- {{ collectionName }}
-</li>
+ <li>
+ <a href="">Home</a>
+ <span class="divider">/</span>
+ </li>
+ <li>
+ <a href="/db/{{ dbName }}">{{ dbName }}</a>
+ <span class="divider">/</span>
+ </li>
+ <li class="active">
+ {{ collectionName }}
+ </li>
{% endblock %}
@@ -34,11 +52,22 @@
{% endif %}
{% for document in documents %}
- <pre class="prettyprint documentlist"
- {%- if collectionName != 'system.indexes' %} onclick="loadDocument('{{ document._id }}')"{% endif -%}
- >
-{{ document|json }}
- </pre>
+ <textarea readonly="readonly" class="span9" id="doc_{{ loop.index }}" name="doc_{{ loop.index }}">{{ document|json }}</textarea>
+ <p>&nbsp;</p>
+
+<script>
+ var doc = CodeMirror.fromTextArea(document.getElementById('doc_{{ loop.index }}'), {
+ mode: { name: "javascript", json: true },
+ readOnly: true,
+ autoClearEmptyLines: true,
+ matchBrackets: true,
+ theme: "{{ editorTheme }}",
+ lineNumbers: true
+ {%- if collectionName != 'system.indexes' %},
+ onFocus: function() { loadDocument('{{ document._id }}') }
+ {%- endif %}
+ });
+</script>
{% endfor %}
{% endif %}
@@ -99,43 +128,43 @@
{% block sidebar %}
-<div class="sidebar-nav">
- <ul class="nav nav-list">
- <li class="nav-header">Collection Stats</li>
- <li>
- <strong>Documents</strong>
- <span class="pull-right" id="collStatsCount">{{ stats.count }}</span>
- </li>
- <li>
- <strong>Total doc size</strong>
- <span class="pull-right">{{ stats.size }} bytes</span>
- </li>
- <li>
- <strong>Average doc size</strong>
- <span class="pull-right">{{ stats.avgObjSize }} bytes</span>
- </li>
- <li>
- <strong>Pre-allocated size</strong>
- <span class="pull-right">{{ stats.storageSize }} bytes</span>
- </li>
- <li>&nbsp;</li>
- <li>
- <strong>Indexes</strong>
- <span class="pull-right">{{ stats.nindexes }}</span>
- </li>
- <li>
- <strong>Total index size</strong>
- <span class="pull-right">{{ stats.totalIndexSize }} bytes</span>
- </li>
- <li>&nbsp;</li>
- <li>
- <strong>Padding factor</strong>
- <span class="pull-right">{{ stats.paddingFactor }}</span>
- </li>
- <li>
- <strong>Extents</strong>
- <span class="pull-right">{{ stats.numExtents }}</span>
- </li>
- </ul>
-</div>
+ <div class="sidebar-nav">
+ <ul class="nav nav-list">
+ <li class="nav-header">Collection Stats</li>
+ <li>
+ <strong>Documents</strong>
+ <span class="pull-right" id="collStatsCount">{{ stats.count }}</span>
+ </li>
+ <li>
+ <strong>Total doc size</strong>
+ <span class="pull-right">{{ stats.size }} bytes</span>
+ </li>
+ <li>
+ <strong>Average doc size</strong>
+ <span class="pull-right">{{ stats.avgObjSize }} bytes</span>
+ </li>
+ <li>
+ <strong>Pre-allocated size</strong>
+ <span class="pull-right">{{ stats.storageSize }} bytes</span>
+ </li>
+ <li>&nbsp;</li>
+ <li>
+ <strong>Indexes</strong>
+ <span class="pull-right">{{ stats.nindexes }}</span>
+ </li>
+ <li>
+ <strong>Total index size</strong>
+ <span class="pull-right">{{ stats.totalIndexSize }} bytes</span>
+ </li>
+ <li>&nbsp;</li>
+ <li>
+ <strong>Padding factor</strong>
+ <span class="pull-right">{{ stats.paddingFactor }}</span>
+ </li>
+ <li>
+ <strong>Extents</strong>
+ <span class="pull-right">{{ stats.numExtents }}</span>
+ </li>
+ </ul>
+ </div>
{% endblock %}
View
64 views/document.html
@@ -2,29 +2,57 @@
{% block title %}{{ document._id }}{% endblock %}
+
+{% block head %}
+ <link href="stylesheets/codemirror.css" rel="stylesheet">
+ <script type="text/javascript" src="javascripts/codemirror-compressed.js"></script>
+
+ {% if editorTheme != "default" %}
+ <link href="stylesheets/theme/{{ editorTheme }}.css" rel="stylesheet">
+ {% endif %}
+
+ <style type="text/css">
+ .CodeMirror-scroll {
+ height: auto;
+ overflow-y: hidden;
+ overflow-x: auto;
+ width: 100%;
+ }
+ </style>
+{% endblock %}
+
+
{% block breadcrumb %}
-<li>
- <a href="">Home</a>
- <span class="divider">/</span>
-</li>
-<li>
- <a href="/db/{{ dbName }}">{{ dbName }}</a>
- <span class="divider">/</span>
-</li>
-<li>
- <a href="/db/{{ dbName }}/{{ collectionName }}">{{ collectionName }}</a>
- <span class="divider">/</span>
-</li>
-<li class="active">
- {{ document._id }}
-</li>
+ <li>
+ <a href="">Home</a>
+ <span class="divider">/</span>
+ </li>
+ <li>
+ <a href="/db/{{ dbName }}">{{ dbName }}</a>
+ <span class="divider">/</span>
+ </li>
+ <li>
+ <a href="/db/{{ dbName }}/{{ collectionName }}">{{ collectionName }}</a>
+ <span class="divider">/</span>
+ </li>
+ <li class="active">
+ {{ document._id }}
+ </li>
{% endblock %}
{% block content %}
-<textarea class="prettyprint span9" style="height: 500px;">
-{{ document|json }}
-</textarea>
+<textarea class="span9" id="documentContent" name="documentContent">{{ document|json }}</textarea>
+
+<script>
+ var doc = CodeMirror.fromTextArea(document.getElementById('documentContent'), {
+ mode: { name: "javascript", json: true },
+ lineNumbers: true,
+ autoClearEmptyLines: true,
+ matchBrackets: true,
+ theme: "{{ editorTheme }}"
+ });
+</script>
{% endblock %}
View
16 views/layout.html
@@ -7,7 +7,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="stylesheets/bootstrap.css" rel="stylesheet">
- <link href="stylesheets/prettify.css" rel="stylesheet" />
<link href="stylesheets/style.css" rel="stylesheet" />
<style type="text/css">
body {
@@ -19,11 +18,14 @@
}
</style>
- <link href="stylesheets/bootstrap-responsive.css" rel="stylesheet">
- <script type="text/javascript" src="javascripts/prettify.js"></script>
+ <link href="stylesheets/bootstrap-responsive.min.css" rel="stylesheet">
+ <script src="javascripts/jquery-1.7.2.min.js"></script>
+ <script src="javascripts/bootstrap.min.js"></script>
+
+ {% block head %}{% endblock %}
</head>
-<body onload="prettyPrint()">
+<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
@@ -32,7 +34,7 @@
<div class="nav-collapse">
<ul class="nav">
<li><a href="">Home</a></li>
- <li><a href="cmd">Command Line</a></li>
+ {#<li><a href="cmd">Command Line</a></li>#}
</ul>
</div>
</div>
@@ -87,9 +89,5 @@ <h1 id="pageTitle">{{ title }}</h1>
</div>
</div>
-
-<script src="javascripts/jquery-1.7.2.min.js"></script>
-<script src="javascripts/bootstrap.min.js"></script>
-
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.