"no use strict";;(function(w){if(typeof w.window!="undefined"&&w.document)return;if(w.require&&w.define)return;if(!w.console){w.console=function(){var a=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:a});};w.console.error=w.console.warn=w.console.log=w.console.trace=w.console;}w.window=w;w.ace=w;w.onerror=function(a,f,l,c,e){postMessage({type:"error",data:{message:a,data:e.data,file:f,line:l,col:c,stack:e.stack}});};w.normalizeModule=function(p,a){if(a.indexOf("!")!==-1){var c=a.split("!");return w.normalizeModule(p,c[0])+"!"+w.normalizeModule(p,c[1]);}if(a.charAt(0)=="."){var b=p.split("/").slice(0,-1).join("/");a=(b?b+"/":"")+a;while(a.indexOf(".")!==-1&&d!=a){var d=a;a=a.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"");}}return a;};w.require=function require(p,i){if(!i){i=p;p=null;}if(!i.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");i=w.normalizeModule(p,i);var a=w.require.modules[i];if(a){if(!a.initialized){a.initialized=true;a.exports=a.factory().exports;}return a.exports;}if(!w.require.tlns)return console.log("unable to load "+i);var b=r(i,w.require.tlns);if(b.slice(-3)!=".js")b+=".js";w.require.id=i;w.require.modules[i]={};importScripts(b);return w.require(p,i);};function r(a,p){var t=a,b="";while(t){var c=p[t];if(typeof c=="string"){return c+b;}else if(c){return c.location.replace(/\/*$/,"/")+(b||c.main||c.name);}else if(c===false){return"";}var i=t.lastIndexOf("/");if(i===-1)break;b=t.substr(i)+b;t=t.slice(0,i);}return a;}w.require.modules={};w.require.tlns={};w.define=function(i,d,f){if(arguments.length==2){f=d;if(typeof i!="string"){d=i;i=w.require.id;}}else if(arguments.length==1){f=i;d=[];i=w.require.id;}if(typeof f!="function"){w.require.modules[i]={exports:f,initialized:true};return;}if(!d.length)d=["require","exports","module"];var a=function(c){return w.require(i,c);};w.require.modules[i]={exports:{},factory:function(){var b=this;var c=f.apply(this,d.map(function(e){switch(e){case"require":return a;case"exports":return b.exports;case"module":return b;default:return a(e);}}));if(c)b.exports=c;return b;}};};w.define.amd={};require.tlns={};w.initBaseUrls=function initBaseUrls(t){for(var i in t)require.tlns[i]=t[i];};w.initSender=function initSender(){var E=w.require("ace/lib/event_emitter").EventEmitter;var o=w.require("ace/lib/oop");var S=function(){};(function(){o.implement(this,E);this.callback=function(d,c){postMessage({type:"call",id:c,data:d});};this.emit=function(n,d){postMessage({type:"event",name:n,data:d});};}).call(S.prototype);return new S();};var m=w.main=null;var s=w.sender=null;w.onmessage=function(e){var a=e.data;if(a.event&&s){s._signal(a.event,a.data);}else if(a.command){if(m[a.command])m[a.command].apply(m,a.args);else if(w[a.command])w[a.command].apply(w,a.args);else throw new Error("Unknown command:"+a.command);}else if(a.init){w.initBaseUrls(a.tlns);require("ace/lib/es5-shim");s=w.sender=w.initSender();var c=require(a.module)[a.classname];m=w.main=new c(s);}};})(this);ace.define("ace/lib/oop",["require","exports","module"],function(r,e,m){"use strict";e.inherits=function(c,s){c.super_=s;c.prototype=Object.create(s.prototype,{constructor:{value:c,enumerable:false,writable:true,configurable:true}});};e.mixin=function(o,a){for(var k in a){o[k]=a[k];}return o;};e.implement=function(p,a){e.mixin(p,a);};});ace.define("ace/lib/lang",["require","exports","module"],function(r,e,m){"use strict";e.last=function(a){return a[a.length-1];};e.stringReverse=function(s){return s.split("").reverse().join("");};e.stringRepeat=function(s,c){var a='';while(c>0){if(c&1)a+=s;if(c>>=1)s+=s;}return a;};var t=/^\s\s*/;var b=/\s\s*$/;e.stringTrimLeft=function(s){return s.replace(t,'');};e.stringTrimRight=function(s){return s.replace(b,'');};e.copyObject=function(o){var c={};for(var k in o){c[k]=o[k];}return c;};e.copyArray=function(a){var c=[];for(var i=0,l=a.length;i ["+this.end.row+"/"+this.end.column+"]");};this.contains=function(a,b){return this.compare(a,b)==0;};this.compareRange=function(a){var b,d=a.end,s=a.start;b=this.compare(d.row,d.column);if(b==1){b=this.compare(s.row,s.column);if(b==1){return 2;}else if(b==0){return 1;}else{return 0;}}else if(b==-1){return-2;}else{b=this.compare(s.row,s.column);if(b==-1){return-1;}else if(b==1){return 42;}else{return 0;}}};this.comparePoint=function(p){return this.compare(p.row,p.column);};this.containsRange=function(a){return this.comparePoint(a.start)==0&&this.comparePoint(a.end)==0;};this.intersects=function(a){var b=this.compareRange(a);return(b==-1||b==0||b==1);};this.isEnd=function(a,b){return this.end.row==a&&this.end.column==b;};this.isStart=function(a,b){return this.start.row==a&&this.start.column==b;};this.setStart=function(a,b){if(typeof a=="object"){this.start.column=a.column;this.start.row=a.row;}else{this.start.row=a;this.start.column=b;}};this.setEnd=function(a,b){if(typeof a=="object"){this.end.column=a.column;this.end.row=a.row;}else{this.end.row=a;this.end.column=b;}};this.inside=function(a,b){if(this.compare(a,b)==0){if(this.isEnd(a,b)||this.isStart(a,b)){return false;}else{return true;}}return false;};this.insideStart=function(a,b){if(this.compare(a,b)==0){if(this.isEnd(a,b)){return false;}else{return true;}}return false;};this.insideEnd=function(a,b){if(this.compare(a,b)==0){if(this.isStart(a,b)){return false;}else{return true;}}return false;};this.compare=function(a,b){if(!this.isMultiLine()){if(a===this.start.row){return bthis.end.column?1:0);}}if(athis.end.row)return 1;if(this.start.row===a)return b>=this.start.column?0:-1;if(this.end.row===a)return b<=this.end.column?0:1;return 0;};this.compareStart=function(a,b){if(this.start.row==a&&this.start.column==b){return-1;}else{return this.compare(a,b);}};this.compareEnd=function(a,b){if(this.end.row==a&&this.end.column==b){return 1;}else{return this.compare(a,b);}};this.compareInside=function(a,b){if(this.end.row==a&&this.end.column==b){return 1;}else if(this.start.row==a&&this.start.column==b){return-1;}else{return this.compare(a,b);}};this.clipRows=function(f,l){if(this.end.row>l)var a={row:l+1,column:0};else if(this.end.rowl)var s={row:l+1,column:0};else if(this.start.row=0&&a.row=0&&a.column<=d[a.row].length;}function v(d,a){if(a.action!="insert"&&a.action!="remove")t(a,"delta.action must be 'insert' or 'remove'");if(!(a.lines instanceof Array))t(a,"delta.lines must be an Array");if(!a.start||!a.end)t(a,"delta.start/end must be an present");var s=a.start;if(!p(d,a.start))t(a,"delta.start must be contained in document");var b=a.end;if(a.action=="remove"&&!p(d,b))t(a,"delta.end must contained in document for 'remove' actions");var n=b.row-s.row;var c=(b.column-(n==0?s.column:0));if(n!=a.lines.length-1||a.lines[n].length!=c)t(a,"delta.range must match delta lines");}e.applyDelta=function(d,a,b){var c=a.start.row;var s=a.start.column;var l=d[c]||"";switch(a.action){case"insert":var f=a.lines;if(f.length===1){d[c]=l.substring(0,s)+a.lines[0]+l.substring(s);}else{var g=[c,1].concat(a.lines);d.splice.apply(d,g);d[c]=l.substring(0,s)+d[c];d[c+a.lines.length-1]+=l.substring(s);}break;case"remove":var h=a.end.column;var i=a.end.row;if(c===i){d[c]=l.substring(0,s)+l.substring(h);}else{d.splice(c,i-c+1,l.substring(0,s)+d[i].substring(h));}break;}}});ace.define("ace/lib/event_emitter",["require","exports","module"],function(r,a,m){"use strict";var E={};var s=function(){this.propagationStopped=true;};var p=function(){this.defaultPrevented=true;};E._emit=E._dispatchEvent=function(b,e){this._eventRegistry||(this._eventRegistry={});this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[b]||[];var d=this._defaultHandlers[b];if(!l.length&&!d)return;if(typeof e!="object"||!e)e={};if(!e.type)e.type=b;if(!e.stopPropagation)e.stopPropagation=s;if(!e.preventDefault)e.preventDefault=p;l=l.slice();for(var i=0;ithis.row)return;var p=a(d,{row:this.row,column:this.column},this.$insertRight);this.setPosition(p.row,p.column,true);};function $(p,b,c){var C=c?p.column<=b.column:p.column=this.document.getLength()){p.row=Math.max(0,this.document.getLength()-1);p.column=this.document.getLine(p.row).length;}else if(b<0){p.row=0;p.column=0;}else{p.row=b;p.column=Math.min(this.document.getLine(p.row).length,Math.max(0,c));}if(c<0)p.column=0;return p;};}).call(A.prototype);});ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(r,e,m){"use strict";var o=r("./lib/oop");var a=r("./apply_delta").applyDelta;var E=r("./lib/event_emitter").EventEmitter;var R=r("./range").Range;var A=r("./anchor").Anchor;var D=function(t){this.$lines=[""];if(t.length===0){this.$lines=[""];}else if(Array.isArray(t)){this.insertMergedLines({row:0,column:0},t);}else{this.insert({row:0,column:0},t);}};(function(){o.implement(this,E);this.setValue=function(t){var l=this.getLength()-1;this.remove(new R(0,0,l,this.getLine(l).length));this.insert({row:0,column:0},t);};this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter());};this.createAnchor=function(b,c){return new A(this,b,c);};if("aaa".split(/a/).length===0){this.$split=function(t){return t.replace(/\r\n|\r/g,"\n").split("\n");};}else{this.$split=function(t){return t.split(/\r\n|\r|\n/);};}this.$detectNewLine=function(t){var b=t.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=b?b[1]:"\n";this._signal("changeNewLineMode");};this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n";}};this.$autoNewLine="";this.$newLineMode="auto";this.setNewLineMode=function(n){if(this.$newLineMode===n)return;this.$newLineMode=n;this._signal("changeNewLineMode");};this.getNewLineMode=function(){return this.$newLineMode;};this.isNewLine=function(t){return(t=="\r\n"||t=="\r"||t=="\n");};this.getLine=function(b){return this.$lines[b]||"";};this.getLines=function(f,l){return this.$lines.slice(f,l+1);};this.getAllLines=function(){return this.getLines(0,this.getLength());};this.getLength=function(){return this.$lines.length;};this.getTextRange=function(b){return this.getLinesForRange(b).join(this.getNewLineCharacter());};this.getLinesForRange=function(b){var c;if(b.start.row===b.end.row){c=[this.getLine(b.start.row).substring(b.start.column,b.end.column)];}else{c=this.getLines(b.start.row,b.end.row);c[0]=(c[0]||"").substring(b.start.column);var l=c.length-1;if(b.end.row-b.start.row==l)c[l]=c[l].substring(0,b.end.column);}return c;};this.insertLines=function(b,l){console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead.");return this.insertFullLines(b,l);};this.removeLines=function(f,l){console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead.");return this.removeFullLines(f,l);};this.insertNewLine=function(p){console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.");return this.insertMergedLines(p,["",""]);};this.insert=function(p,t){if(this.getLength()<=1)this.$detectNewLine(t);return this.insertMergedLines(p,this.$split(t));};this.insertInLine=function(p,t){var s=this.clippedPos(p.row,p.column);var b=this.pos(p.row,p.column+t.length);this.applyDelta({start:s,end:b,action:"insert",lines:[t]},true);return this.clonePos(b);};this.clippedPos=function(b,c){var l=this.getLength();if(b===undefined){b=l;}else if(b<0){b=0;}else if(b>=l){b=l-1;c=undefined;}var d=this.getLine(b);if(c==undefined)c=d.length;c=Math.min(Math.max(c,0),d.length);return{row:b,column:c};};this.clonePos=function(p){return{row:p.row,column:p.column};};this.pos=function(b,c){return{row:b,column:c};};this.$clipPosition=function(p){var l=this.getLength();if(p.row>=l){p.row=Math.max(0,l-1);p.column=this.getLine(l-1).length;}else{p.row=Math.max(0,p.row);p.column=Math.min(Math.max(p.column,0),this.getLine(p.row).length);}return p;};this.insertFullLines=function(b,l){b=Math.min(Math.max(b,0),this.getLength());var c=0;if(b0;var b=l=0){this.applyDelta({start:this.pos(b,this.getLine(b).length),end:this.pos(b+1,0),action:"remove",lines:["",""]});}};this.replace=function(b,t){if(!(b instanceof R))b=R.fromPoints(b.start,b.end);if(t.length===0&&b.isEmpty())return b.start;if(t==this.getTextRange(b))return b.end;this.remove(b);var c;if(t){c=this.insert(b.start,t);}else{c=b.start;}return c;};this.applyDeltas=function(d){for(var i=0;i=0;i--){this.revertDelta(d[i]);}};this.applyDelta=function(d,b){var i=d.action=="insert";if(i?d.lines.length<=1&&!d.lines[0]:!R.comparePoints(d.start,d.end)){return;}if(i&&d.lines.length>20000)this.$splitAndapplyLargeDelta(d,20000);a(this.$lines,d,b);this._signal("change",d);};this.$splitAndapplyLargeDelta=function(d,M){var b=d.lines;var l=b.length;var c=d.start.row;var f=d.start.column;var g=0,t=0;do{g=t;t+=M-1;var h=b.slice(g,t);if(t>l){d.lines=h;d.start.row=c+g;d.start.column=f;break;}h.push("");this.applyDelta({start:this.pos(c+g,f),end:this.pos(c+t,f=0),action:d.action,lines:h},true);}while(true);};this.revertDelta=function(d){this.applyDelta({start:this.clonePos(d.start),end:this.clonePos(d.end),action:(d.action=="insert"?"remove":"insert"),lines:d.lines.slice()});};this.indexToPosition=function(b,s){var c=this.$lines||this.getAllLines();var n=this.getNewLineCharacter().length;for(var i=s||0,l=c.length;i0xffff){k-=0x10000;var m=0xd800+(k>>10),e1=0xdc00+(k&0x3ff);return String.fromCharCode(m,e1);}else{return String.fromCharCode(k);}}function J(a){var k=a.slice(1,-1);if(k in f){return f[k];}else if(k.charAt(0)==='#'){return t(parseInt(k.substr(1).replace('x','0x')))}else{p.error('entity not found:'+a);return a;}}function K(Y){var k=s.substring(T,Y).replace(/&#?\w+;/g,J);P&&L(T);n.characters(k,0,Y-T);T=Y}function L(T,m){while(T>=N&&(m=O.exec(s))){M=m.index;N=M+m[0].length;P.lineNumber++;}P.columnNumber=T-M+1;}var M=0;var N=0;var O=/.+(?:\r\n?|\n)|.*$/g;var P=n.locator;var Q=[{currentNSMap:c}];var R={};var T=0;while(true){var i=s.indexOf('<',T);if(i<0){if(!s.substr(T).match(/^\s*$/)){var U=n.document;var V=U.createTextNode(s.substr(T));U.appendChild(V);n.currentElement=V;}return;}if(i>T){K(i);}switch(s.charAt(i+1)){case'/':var Y=s.indexOf('>',i+3);var a1=s.substring(i+2,Y);var b1;if(Q.length>1){b1=Q.pop();}else{p.fatalError("end tag name not found for: "+a1);break;}var c1=b1.localNSMap;if(b1.tagName!=a1){p.fatalError("end tag name: "+a1+" does not match the current start tagName: "+b1.tagName);}n.endElement(b1.uri,b1.localName,a1);if(c1){for(var d1 in c1){n.endPrefixMapping(d1);}}Y++;break;case'?':P&&L(i);Y=F(s,i,n);break;case'!':P&&L(i);Y=E(s,i,n,p);break;default:try{P&&L(i);var W=new G();var Y=A(s,i,W,J,p);var Z=W.length;if(Z&&P){var $=z(P,{});for(var i=0;i0){n=a.slice(e,p).replace(/&#?\w+;/g,i);f.add(m,n,e-1);s=v;}else{throw new Error('attribute value no end \''+c+'\' match');}}else if(s==u){n=a.slice(e,p).replace(/&#?\w+;/g,i);f.add(m,n,e);k.warning('attribute "'+m+'" missed start quot('+c+')!!');e=p+1;s=v}else{throw new Error('attribute value must after "="');}break;case'/':switch(s){case S:f.setTagName(a.slice(e,p));case v:case w:case x:s=x;f.closed=true;case u:case l:case o:break;default:throw new Error("attribute invalid close char('/')")}break;case'':k.error('unexpected end of input');case'>':switch(s){case S:f.setTagName(a.slice(e,p));case v:case w:case x:break;case u:case l:n=a.slice(e,p);if(n.slice(-1)==='/'){f.closed=true;n=n.slice(0,-1)}case o:if(s===o){n=m;}if(s==u){k.warning('attribute "'+n+'" missed quot(")!!');f.add(m,n.replace(/&#?\w+;/g,i),e)}else{k.warning('attribute "'+n+'" missed value!! "'+n+'" instead!!');f.add(n,n,e)}break;case q:throw new Error('attribute value missed!!');}return p;case'\u0080':c=' ';default:if(c<=' '){switch(s){case S:f.setTagName(a.slice(e,p));s=w;break;case l:m=a.slice(e,p);s=o;break;case u:var n=a.slice(e,p).replace(/&#?\w+;/g,i);k.warning('attribute "'+n+'" missed quot(")!!');f.add(m,n,e);case v:s=w;break;}}else{switch(s){case o:k.warning('attribute "'+m+'" missed value!! "'+m+'" instead!!');f.add(m,m,e);e=p;s=l;break;case v:k.warning('attribute space is required"'+m+'"!!');case w:s=l;e=p;break;case q:s=u;e=p;break;case x:throw new Error("elements closed character '/' and '>' must be connected to");}}}p++;}}function B(e,c,p){var t=e.tagName;var f=null;var k=p[p.length-1].currentNSMap;var i=e.length;while(i--){var a=e[i];var m=a.qName;var n=a.value;var s=m.indexOf(':');if(s>0){var J=a.prefix=m.slice(0,s);var K=m.slice(s+1);var L=J==='xmlns'&&K}else{K=m;J=null;L=m==='xmlns'&&''}a.localName=K;if(L!==false){if(f==null){f={};_(k,k={})}k[L]=f[L]=n;a.uri='http://www.w3.org/2000/xmlns/';c.startPrefixMapping(L,n)}}var i=e.length;while(i--){a=e[i];var J=a.prefix;if(J){if(J==='xml'){a.uri='http://www.w3.org/XML/1998/namespace';}if(J!=='xmlns'){a.uri=k[J]}}}var s=t.indexOf(':');if(s>0){J=e.prefix=t.slice(0,s);K=e.localName=t.slice(s+1);}else{J=null;K=e.localName=t;}var M=e.uri=k[J||''];c.startElement(M,K,t,e);if(e.closed){c.endElement(M,K,t);if(f){for(J in f){c.endPrefixMapping(J)}}}else{e.currentNSMap=k;e.localNSMap=f;p.push(e);}}function C(s,e,t,a,c){if(/^(?:script|textarea)$/i.test(t)){var f=s.indexOf('',e);var i=s.substring(e+1,f);if(/[&<]/.test(i)){if(/^script$/i.test(t)){c.characters(i,0,i.length);return f;}i=i.replace(/&#?\w+;/g,a);c.characters(i,0,i.length);return f;}}return e+1;}function D(s,e,t,c){var p=c[t];if(p==null){p=c[t]=s.lastIndexOf('')}return p',a+4);if(f>a){c.comment(s,a+4,f-a-4);return f+3;}else{e.error("Unclosed comment");return-1;}}else{return-1;}default:if(s.substr(a+3,6)=='CDATA['){var f=s.indexOf(']]>',a+9);c.startCDATA();c.characters(s,a+9,f-a-9);c.endCDATA();return f+3;}var m=I(s,a);var i=m.length;if(i>1&&/!doctype/i.test(m[0][0])){var k=m[1][0];var p=i>3&&/^public$/i.test(m[2][0])&&m[3][0];var t=i>4&&m[4][0];var J=m[i-1];c.startDTD(k,p&&p.replace(/^(['"])(.*?)\1$/,'$2'),t&&t.replace(/^(['"])(.*?)\1$/,'$2'));c.endDTD();return J.index+J[0].length}}return-1;}function F(s,a,c){var e=s.indexOf('?>',a);if(e){var m=s.substring(a,e).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(m){var f=m[0].length;c.processingInstruction(m[1],m[2]);return e+2;}else{return-1;}}return-1;}function G(s){}G.prototype={setTagName:function(t){if(!j.test(t)){throw new Error('invalid tagName:'+t)}this.tagName=t},add:function(a,c,e){if(!j.test(a)){throw new Error('invalid attribute:'+a)}this[this.length++]={qName:a,value:c,offset:e}},length:0,getLocalName:function(i){return this[i].localName},getOffset:function(i){return this[i].offset},getQName:function(i){return this[i].qName},getURI:function(i){return this[i].uri},getValue:function(i){return this[i].value}};function H(t,p){t.__proto__=p;return t;}if(!(H({},H.prototype)instanceof H)){H=function(t,a){function p(){};p.prototype=a;p=new p();for(a in t){p[a]=t[a];}return p;}}function I(s,a){var m;var c=[];var e=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;e.lastIndex=a;e.exec(s);while(m=e.exec(s)){c.push(m);if(m[1])return c;}}return X;});ace.define("ace/mode/xml/dom",["require","exports","module"],function(r,a,m){function b(c,i){for(var p in c){i[p]=c[p];}}function _(c,i){var p=c.prototype;if(Object.create){var n=Object.create(i.prototype);p.__proto__=n;}if(!(p instanceof i)){function t(){};t.prototype=i.prototype;t=new t();b(p,t);c.prototype=p=t;}if(p.constructor!=c){if(typeof c!='function'){console.error("unknow Class:"+c)}p.constructor=c}}var h='http://www.w3.org/1999/xhtml';var N={};var E=N.ELEMENT_NODE=1;var A=N.ATTRIBUTE_NODE=2;var T=N.TEXT_NODE=3;var C=N.CDATA_SECTION_NODE=4;var d=N.ENTITY_REFERENCE_NODE=5;var f=N.ENTITY_NODE=6;var P=N.PROCESSING_INSTRUCTION_NODE=7;var g=N.COMMENT_NODE=8;var D=N.DOCUMENT_NODE=9;var j=N.DOCUMENT_TYPE_NODE=10;var k=N.DOCUMENT_FRAGMENT_NODE=11;var l=N.NOTATION_NODE=12;var o={};var q={};var I=o.INDEX_SIZE_ERR=((q[1]="Index size error"),1);var s=o.DOMSTRING_SIZE_ERR=((q[2]="DOMString size error"),2);var H=o.HIERARCHY_REQUEST_ERR=((q[3]="Hierarchy request error"),3);var W=o.WRONG_DOCUMENT_ERR=((q[4]="Wrong document"),4);var u=o.INVALID_CHARACTER_ERR=((q[5]="Invalid character"),5);var w=o.NO_DATA_ALLOWED_ERR=((q[6]="No data allowed"),6);var x=o.NO_MODIFICATION_ALLOWED_ERR=((q[7]="No modification allowed"),7);var y=o.NOT_FOUND_ERR=((q[8]="Not found"),8);var z=o.NOT_SUPPORTED_ERR=((q[9]="Not supported"),9);var B=o.INUSE_ATTRIBUTE_ERR=((q[10]="Attribute in use"),10);var F=o.INVALID_STATE_ERR=((q[11]="Invalid state"),11);var S=o.SYNTAX_ERR=((q[12]="Syntax error"),12);var G=o.INVALID_MODIFICATION_ERR=((q[13]="Invalid modification"),13);var J=o.NAMESPACE_ERR=((q[14]="Invalid namespace"),14);var K=o.INVALID_ACCESS_ERR=((q[15]="Invalid access"),15);function L(c,i){if(i instanceof Error){var n=i;}else{n=this;Error.call(this,q[c]);this.message=q[c];if(Error.captureStackTrace)Error.captureStackTrace(this,L);}n.code=c;if(i)this.message=this.message+": "+i;return n;};L.prototype=Error.prototype;b(o,L);function M(){};M.prototype={length:0,item:function(i){return this[i]||null;}};function O(n,c){this._node=n;this._refresh=c;Q(this);}function Q(c){var i=c._node._inc||c._node.ownerDocument._inc;if(c._inc!=i){var n=c._refresh(c._node);y1(c,'length',n.length);b(n,c);c._inc=i;}}O.prototype.item=function(i){Q(this);return this[i];};_(O,M);function R(){};function U(c,n){var i=c.length;while(i--){if(c[i]===n){return i}}}function V(c,i,n,p){if(p){i[U(i,p)]=n;}else{i[i.length++]=n;}if(c){n.ownerElement=c;var t=c.ownerDocument;if(t){p&&d1(t,c,p);c1(t,c,n);}}}function X(c,n,p){var i=U(n,p);if(i>=0){var t=n.length-1;while(i0;},lookupPrefix:function(c){var i=this;while(i){var p=i._nsMap;if(p){for(var n in p){if(p[n]==c){return n;}}}i=i.nodeType==2?i.ownerDocument:i.parentNode;}return null;},lookupNamespaceURI:function(p){var c=this;while(c){var i=c._nsMap;if(i){if(p in i){return i[p];}}c=c.nodeType==2?c.ownerDocument:c.parentNode;}return null;},isDefaultNamespace:function(n){var p=this.lookupPrefix(n);return p==null;}};function $(c){return c=='<'&&'<'||c=='>'&&'>'||c=='&'&&'&'||c=='"'&&'"'||'&#'+c.charCodeAt()+';'}b(N,Z);b(N,Z.prototype);function a1(n,c){if(c(n)){return true;}if(n=n.firstChild){do{if(a1(n,c)){return true}}while(n=n.nextSibling)}}function b1(){}function c1(c,i,n){c&&c._inc++;var p=n.namespaceURI;if(p=='http://www.w3.org/2000/xmlns/'){i._nsMap[n.prefix?n.localName:'']=n.value}}function d1(c,i,n,p){c&&c._inc++;var t=n.namespaceURI;if(t=='http://www.w3.org/2000/xmlns/'){delete i._nsMap[n.prefix?n.localName:'']}}function e1(c,n,p){if(c&&c._inc){c._inc++;var t=n.childNodes;if(p){t[t.length++]=p;}else{var v=n.firstChild;var i=0;while(v){t[i++]=v;v=v.nextSibling;}t.length=i;}}}function f1(p,c){var i=c.previousSibling;var n=c.nextSibling;if(i){i.nextSibling=n;}else{p.firstChild=n}if(n){n.previousSibling=i;}else{p.lastChild=i;}e1(p.ownerDocument,p);return c;}function g1(p,n,c){var i=n.parentNode;if(i){i.removeChild(n);}if(n.nodeType===k){var t=n.firstChild;if(t==null){return n;}var v=n.lastChild;}else{t=v=n;}var A1=c?c.previousSibling:p.lastChild;t.previousSibling=A1;v.nextSibling=c;if(A1){A1.nextSibling=t;}else{p.firstChild=t;}if(c==null){p.lastChild=v;}else{c.previousSibling=v;}do{t.parentNode=p;}while(t!==v&&(t=t.nextSibling));e1(p.ownerDocument||p,p);if(n.nodeType==k){n.firstChild=n.lastChild=null;}return n;}function h1(p,n){var c=n.parentNode;if(c){var i=p.lastChild;c.removeChild(n);var i=p.lastChild;}var i=p.lastChild;n.parentNode=p;n.previousSibling=i;n.nextSibling=null;if(i){i.nextSibling=n;}else{p.firstChild=n;}p.lastChild=n;e1(p.ownerDocument,p,n);return n;}b1.prototype={nodeName:'#document',nodeType:D,doctype:null,documentElement:null,_inc:1,insertBefore:function(n,c){if(n.nodeType==k){var i=n.firstChild;while(i){var p=i.nextSibling;this.insertBefore(i,c);i=p;}return n;}if(this.documentElement==null&&n.nodeType==1){this.documentElement=n;}return g1(this,n,c),(n.ownerDocument=this),n;},removeChild:function(c){if(this.documentElement==c){this.documentElement=null;}return f1(this,c);},importNode:function(i,c){return w1(this,i,c);},getElementById:function(i){var c=null;a1(this.documentElement,function(n){if(n.nodeType==1){if(n.getAttribute('id')==i){c=n;return true;}}});return c;},createElement:function(t){var n=new i1();n.ownerDocument=this;n.nodeName=t;n.tagName=t;n.childNodes=new M();var c=n.attributes=new R();c._ownerElement=n;return n;},createDocumentFragment:function(){var n=new s1();n.ownerDocument=this;n.childNodes=new M();return n;},createTextNode:function(c){var n=new l1();n.ownerDocument=this;n.appendData(c);return n;},createComment:function(c){var n=new m1();n.ownerDocument=this;n.appendData(c);return n;},createCDATASection:function(c){var n=new n1();n.ownerDocument=this;n.appendData(c);return n;},createProcessingInstruction:function(t,c){var n=new t1();n.ownerDocument=this;n.tagName=n.target=t;n.nodeValue=n.data=c;return n;},createAttribute:function(n){var c=new j1();c.ownerDocument=this;c.name=n;c.nodeName=n;c.localName=n;c.specified=true;return c;},createEntityReference:function(n){var c=new r1();c.ownerDocument=this;c.nodeName=n;return c;},createElementNS:function(n,c){var i=new i1();var p=c.split(':');var t=i.attributes=new R();i.childNodes=new M();i.ownerDocument=this;i.nodeName=c;i.tagName=c;i.namespaceURI=n;if(p.length==2){i.prefix=p[0];i.localName=p[1];}else{i.localName=c;}t._ownerElement=i;return i;},createAttributeNS:function(n,c){var i=new j1();var p=c.split(':');i.ownerDocument=this;i.nodeName=c;i.name=c;i.namespaceURI=n;i.specified=true;if(p.length==2){i.prefix=p[0];i.localName=p[1];}else{i.localName=c;}return i;}};_(b1,Z);function i1(){this._nsMap={};};i1.prototype={nodeType:E,hasAttribute:function(n){return this.getAttributeNode(n)!=null;},getAttribute:function(n){var c=this.getAttributeNode(n);return c&&c.value||'';},getAttributeNode:function(n){return this.attributes.getNamedItem(n);},setAttribute:function(n,v){var c=this.ownerDocument.createAttribute(n);c.value=c.nodeValue=""+v;this.setAttributeNode(c)},removeAttribute:function(n){var c=this.getAttributeNode(n);c&&this.removeAttributeNode(c);},appendChild:function(n){if(n.nodeType===k){return this.insertBefore(n,null);}else{return h1(this,n);}},setAttributeNode:function(n){return this.attributes.setNamedItem(n);},setAttributeNodeNS:function(n){return this.attributes.setNamedItemNS(n);},removeAttributeNode:function(c){return this.attributes.removeNamedItem(c.nodeName);},removeAttributeNS:function(n,c){var i=this.getAttributeNodeNS(n,c);i&&this.removeAttributeNode(i);},hasAttributeNS:function(n,c){return this.getAttributeNodeNS(n,c)!=null;},getAttributeNS:function(n,c){var i=this.getAttributeNodeNS(n,c);return i&&i.value||'';},setAttributeNS:function(n,c,v){var i=this.ownerDocument.createAttributeNS(n,c);i.value=i.nodeValue=""+v;this.setAttributeNode(i)},getAttributeNodeNS:function(n,c){return this.attributes.getNamedItemNS(n,c);},getElementsByTagName:function(t){return new O(this,function(c){var i=[];a1(c,function(n){if(n!==c&&n.nodeType==E&&(t==='*'||n.tagName==t)){i.push(n);}});return i;});},getElementsByTagNameNS:function(n,c){return new O(this,function(i){var p=[];a1(i,function(t){if(t!==i&&t.nodeType===E&&(n==='*'||t.namespaceURI===n)&&(c==='*'||t.localName==c)){p.push(t);}});return p;});}};b1.prototype.getElementsByTagName=i1.prototype.getElementsByTagName;b1.prototype.getElementsByTagNameNS=i1.prototype.getElementsByTagNameNS;_(i1,Z);function j1(){};j1.prototype.nodeType=A;_(j1,Z);function k1(){};k1.prototype={data:'',substringData:function(c,i){return this.data.substring(c,c+i);},appendData:function(t){t=this.data+t;this.nodeValue=this.data=t;this.length=t.length;},insertData:function(c,t){this.replaceData(c,0,t);},appendChild:function(n){throw new Error(q[3]);return Z.prototype.appendChild.apply(this,arguments)},deleteData:function(c,i){this.replaceData(c,i,"");},replaceData:function(c,i,t){var n=this.data.substring(0,c);var p=this.data.substring(c+i);t=n+t+p;this.nodeValue=this.data=t;this.length=t.length;}};_(k1,Z);function l1(){};l1.prototype={nodeName:"#text",nodeType:T,splitText:function(c){var t=this.data;var n=t.substring(c);t=t.substring(0,c);this.data=this.nodeValue=t;this.length=t.length;var i=this.ownerDocument.createTextNode(n);if(this.parentNode){this.parentNode.insertBefore(i,this.nextSibling);}return i;}};_(l1,k1);function m1(){};m1.prototype={nodeName:"#comment",nodeType:g};_(m1,k1);function n1(){};n1.prototype={nodeName:"#cdata-section",nodeType:C};_(n1,k1);function o1(){};o1.prototype.nodeType=j;_(o1,Z);function p1(){};p1.prototype.nodeType=l;_(p1,Z);function q1(){};q1.prototype.nodeType=f;_(q1,Z);function r1(){};r1.prototype.nodeType=d;_(r1,Z);function s1(){};s1.prototype.nodeName="#document-fragment";s1.prototype.nodeType=k;_(s1,Z);function t1(){}t1.prototype.nodeType=P;_(t1,Z);function u1(){}u1.prototype.serializeToString=function(n){var c=[];v1(n,c);return c.join('');};Z.prototype.toString=function(){return u1.prototype.serializeToString(this);};function v1(n,c){switch(n.nodeType){case E:var p=n.attributes;var t=p.length;var v=n.firstChild;var A1=n.tagName;var B1=h===n.namespaceURI;c.push('<',A1);for(var i=0;i');if(B1&&/^script$/i.test(A1)){if(v){c.push(v.data);}}else{while(v){v1(v,c);v=v.nextSibling;}}c.push('');}else{c.push('/>');}return;case D:case k:var v=n.firstChild;while(v){v1(v,c);v=v.nextSibling;}return;case A:return c.push(' ',n.name,'="',n.value.replace(/[<&"]/g,$),'"');case T:return c.push(n.data.replace(/[<&]/g,$));case C:return c.push('');case g:return c.push("");case j:var C1=n.publicId;var D1=n.systemId;c.push('');}else if(D1&&D1!='.'){c.push(' SYSTEM "',D1,'">');}else{var E1=n.internalSubset;if(E1){c.push(" [",E1,"]");}c.push(">");}return;case P:return c.push("");case d:return c.push('&',n.nodeName,';');default:c.push('??',n.nodeName);}}function w1(c,n,i){var p;switch(n.nodeType){case E:p=n.cloneNode(false);p.ownerDocument=c;case k:break;case A:i=true;break;}if(!p){p=n.cloneNode(false);}p.ownerDocument=c;p.parentNode=null;if(i){var t=n.firstChild;while(t){p.appendChild(w1(c,t,i));t=t.nextSibling;}}return p;}function x1(c,p,t){var A1=new p.constructor();for(var n in p){var v=p[n];if(typeof v!='object'){if(v!=A1[n]){A1[n]=v;}}}if(p.childNodes){A1.childNodes=new M();}A1.ownerDocument=c;switch(A1.nodeType){case E:var B1=p.attributes;var C1=A1.attributes=new R();var D1=B1.length;C1._ownerElement=A1;for(var i=0;i','amp':'&','quot':'"','apos':"'"};if(l){i.setDocumentLocator(l)}h.errorHandler=b(j,i,l);h.domBuilder=o.domBuilder||i;if(/\/x?html?$/.test(g)){n.nbsp='\xa0';n.copy='\xa9';k['']='http://www.w3.org/1999/xhtml';}if(s){h.parse(s,k,n);}else{h.errorHandler.error("invalid document source");}return i.document;};function b(g,h,l){if(!g){if(h instanceof c){return h;}g=h;}var j={};var k=g instanceof Function;l=l||{};function n(o){var q=g[o];if(!q){if(k){q=g.length==2?function(s){g(o,s)}:g;}else{var i=arguments.length;while(--i){if(q=g[arguments[i]]){break;}}}}j[o]=q&&function(s){q(s+_(l),s,l);}||function(){};}n('warning','warn');n('error','warn','warning');n('fatalError','warn','warning','error');return j;}function c(){this.cdata=false;}function p(l,n){n.lineNumber=l.lineNumber;n.columnNumber=l.columnNumber;}c.prototype={startDocument:function(){this.document=new D().createDocument(null,null,null);if(this.locator){this.document.documentURI=this.locator.systemId;}},startElement:function(n,l,q,g){var h=this.document;var j=h.createElementNS(n,q||l);var k=g.length;f(this,j);this.currentElement=j;this.locator&&p(this.locator,j);for(var i=0;i=s+l||s){return new java.lang.String(g,s,l)+'';}return g;}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(k){c.prototype[k]=function(){return null}});function f(h,n){if(!h.currentElement){h.document.appendChild(n);}else{h.currentElement.appendChild(n);}}return{DOMParser:a};});ace.define("ace/mode/xml_worker",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/worker/mirror","ace/mode/xml/dom-parser"],function(r,e,m){"use strict";var o=r("../lib/oop");var l=r("../lib/lang");var M=r("../worker/mirror").Mirror;var D=r("./xml/dom-parser").DOMParser;var W=e.Worker=function(s){M.call(this,s);this.setTimeout(400);this.context=null;};o.inherits(W,M);(function(){this.setOptions=function(a){this.context=a.context;};this.onUpdate=function(){var v=this.doc.getValue();if(!v)return;var p=new D();var a=[];p.options.errorHandler={fatalError:function(f,b,c){a.push({row:c.lineNumber,column:c.columnNumber,text:b,type:"error"});},error:function(f,b,c){a.push({row:c.lineNumber,column:c.columnNumber,text:b,type:"error"});},warning:function(f,b,c){a.push({row:c.lineNumber,column:c.columnNumber,text:b,type:"warning"});}};p.parseFromString(v);this.sender.emit("error",a);};}).call(W.prototype);});ace.define("ace/lib/es5-shim",["require","exports","module"],function(r,e,m){function E(){}if(!Function.prototype.bind){Function.prototype.bind=function bind(a){var i=this;if(typeof i!="function"){throw new TypeError("Function.prototype.bind called on incompatible "+i);}var l=s.call(arguments,1);var n=function(){if(this instanceof n){var o=i.apply(this,l.concat(s.call(arguments)));if(Object(o)===o){return o;}return this;}else{return i.apply(a,l.concat(s.call(arguments)));}};if(i.prototype){E.prototype=i.prototype;n.prototype=new E();E.prototype=null;}return n;};}var c=Function.prototype.call;var p=Array.prototype;var b=Object.prototype;var s=p.slice;var _=c.bind(b.toString);var d=c.bind(b.hasOwnProperty);var f;var g;var h;var j;var k;if((k=d(b,"__defineGetter__"))){f=c.bind(b.__defineGetter__);g=c.bind(b.__defineSetter__);h=c.bind(b.__lookupGetter__);j=c.bind(b.__lookupSetter__);}if([1,2].splice(0).length!=2){if(function(){function i(l){var a=new Array(l+2);a[0]=a[1]=0;return a;}var n=[],o;n.splice.apply(n,i(20));n.splice.apply(n,i(26));o=n.length;n.splice(5,0,"XXX");o+1==n.length;if(o+1==n.length){return true;}}()){var q=Array.prototype.splice;Array.prototype.splice=function(a,i){if(!arguments.length){return[];}else{return q.apply(this,[a===void 0?0:a,i===void 0?(this.length-a):i].concat(s.call(arguments,2)))}};}else{Array.prototype.splice=function(a,l){var n=this.length;if(a>0){if(a>n)a=n;}else if(a==void 0){a=0;}else if(a<0){a=Math.max(n+a,0);}if(!(a+lU){for(i=W;i--;){this[V+i]=this[U+i];}}if(S&&a===X){this.length=X;this.push.apply(this,R);}else{this.length=X+S;for(i=0;i>>0;if(_(a)!="[object Function]"){throw new TypeError();}while(++i>>0,R=Array(n),S=arguments[1];if(_(a)!="[object Function]"){throw new TypeError(a+" is not a function");}for(var i=0;i>>0,R=[],S,T=arguments[1];if(_(a)!="[object Function]"){throw new TypeError(a+" is not a function");}for(var i=0;i>>0,R=arguments[1];if(_(a)!="[object Function]"){throw new TypeError(a+" is not a function");}for(var i=0;i>>0,R=arguments[1];if(_(a)!="[object Function]"){throw new TypeError(a+" is not a function");}for(var i=0;i>>0;if(_(a)!="[object Function]"){throw new TypeError(a+" is not a function");}if(!n&&arguments.length==1){throw new TypeError("reduce of empty array with no initial value");}var i=0;var R;if(arguments.length>=2){R=arguments[1];}else{do{if(i in l){R=l[i++];break;}if(++i>=n){throw new TypeError("reduce of empty array with no initial value");}}while(true);}for(;i>>0;if(_(a)!="[object Function]"){throw new TypeError(a+" is not a function");}if(!n&&arguments.length==1){throw new TypeError("reduceRight of empty array with no initial value");}var R,i=n-1;if(arguments.length>=2){R=arguments[1];}else{do{if(i in l){R=l[i--];break;}if(--i<0){throw new TypeError("reduceRight of empty array with no initial value");}}while(true);}do{if(i in this){R=a.call(void 0,R,l[i],i,o);}}while(i--);return R;};}if(!Array.prototype.indexOf||([0,1].indexOf(1,2)!=-1)){Array.prototype.indexOf=function indexOf(a){var l=u&&_(this)=="[object String]"?this.split(""):Q(this),n=l.length>>>0;if(!n){return-1;}var i=0;if(arguments.length>1){i=N(arguments[1]);}i=i>=0?i:Math.max(0,n+i);for(;i>>0;if(!n){return-1;}var i=n-1;if(arguments.length>1){i=Math.min(i,N(arguments[1]));}i=i>=0?i:n-Math.abs(i);for(;i>=0;i--){if(i in l&&a===l[i]){return i;}}return-1;};}if(!Object.getPrototypeOf){Object.getPrototypeOf=function getPrototypeOf(o){return o.__proto__||(o.constructor?o.constructor.prototype:b);};}if(!Object.getOwnPropertyDescriptor){var v="Object.getOwnPropertyDescriptor called on a "+"non-object: ";Object.getOwnPropertyDescriptor=function getOwnPropertyDescriptor(o,a){if((typeof o!="object"&&typeof o!="function")||o===null)throw new TypeError(v+o);if(!d(o,a))return;var i,l,n;i={enumerable:true,configurable:true};if(k){var R=o.__proto__;o.__proto__=b;var l=h(o,a);var n=j(o,a);o.__proto__=R;if(l||n){if(l)i.get=l;if(n)i.set=n;return i;}}i.value=o[a];return i;};}if(!Object.getOwnPropertyNames){Object.getOwnPropertyNames=function getOwnPropertyNames(o){return Object.keys(o);};}if(!Object.create){var w;if(Object.prototype.__proto__===null){w=function(){return{"__proto__":null};};}else{w=function(){var a={};for(var i in a)a[i]=null;a.constructor=a.hasOwnProperty=a.propertyIsEnumerable=a.isPrototypeOf=a.toLocaleString=a.toString=a.valueOf=a.__proto__=null;return a;}}Object.create=function create(a,i){var o;if(a===null){o=w();}else{if(typeof a!="object")throw new TypeError("typeof prototype["+(typeof a)+"] != 'object'");var T=function(){};T.prototype=a;o=new T();o.__proto__=a;}if(i!==void 0)Object.defineProperties(o,i);return o;};}function x(o){try{Object.defineProperty(o,"sentinel",{});return"sentinel"in o;}catch(F){}}if(Object.defineProperty){var y=x({});var z=typeof document=="undefined"||x(document.createElement("div"));if(!y||!z){var A=Object.defineProperty;}}if(!Object.defineProperty||A){var B="Property description must be an object: ";var C="Object.defineProperty called on non-object: ";var D="getters & setters can not be defined "+"on this javascript engine";Object.defineProperty=function defineProperty(o,a,i){if((typeof o!="object"&&typeof o!="function")||o===null)throw new TypeError(C+o);if((typeof i!="object"&&typeof i!="function")||i===null)throw new TypeError(B+i);if(A){try{return A.call(Object,o,a,i);}catch(F){}}if(d(i,"value")){if(k&&(h(o,a)||j(o,a))){var l=o.__proto__;o.__proto__=b;delete o[a];o[a]=i.value;o.__proto__=l;}else{o[a]=i.value;}}else{if(!k)throw new TypeError(D);if(d(i,"get"))f(o,a,i.get);if(d(i,"set"))g(o,a,i.set);}return o;};}if(!Object.defineProperties){Object.defineProperties=function defineProperties(o,a){for(var i in a){if(d(a,i))Object.defineProperty(o,i,a[i]);}return o;};}if(!Object.seal){Object.seal=function seal(o){return o;};}if(!Object.freeze){Object.freeze=function freeze(o){return o;};}try{Object.freeze(function(){});}catch(F){Object.freeze=(function freeze(a){return function freeze(o){if(typeof o=="function"){return o;}else{return a(o);}};})(Object.freeze);}if(!Object.preventExtensions){Object.preventExtensions=function preventExtensions(o){return o;};}if(!Object.isSealed){Object.isSealed=function isSealed(o){return false;};}if(!Object.isFrozen){Object.isFrozen=function isFrozen(o){return false;};}if(!Object.isExtensible){Object.isExtensible=function isExtensible(o){if(Object(o)===o){throw new TypeError();}var n='';while(d(o,n)){n+='?';}o[n]=true;var a=d(o,n);delete o[n];return a;};}if(!Object.keys){var G=true,H=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],I=H.length;for(var J in{"toString":null}){G=false;}Object.keys=function keys(o){if((typeof o!="object"&&typeof o!="function")||o===null){throw new TypeError("Object.keys called on a non-object");}var a=[];for(var n in o){if(d(o,n)){a.push(n);}}if(G){for(var i=0,l=I;i0||-1)*Math.floor(Math.abs(n));}return n;}function O(i){var a=typeof i;return(i===null||a==="undefined"||a==="boolean"||a==="number"||a==="string");}function P(i){var a,l,n;if(O(i)){return i;}l=i.valueOf;if(typeof l==="function"){a=l.call(i);if(O(a)){return a;}}n=i.toString;if(typeof n==="function"){a=n.call(i);if(O(a)){return a;}}throw new TypeError();}var Q=function(o){if(o==null){throw new TypeError("can't convert "+o+" to object");}return Object(o);};});