src/pyams_skin/resources/js/ext/ace/worker-xml.min.js
changeset 504 fb5a531cddbe
parent 501 2f0eb9a77324
--- a/src/pyams_skin/resources/js/ext/ace/worker-xml.min.js	Fri Dec 28 10:06:15 2018 +0100
+++ b/src/pyams_skin/resources/js/ext/ace/worker-xml.min.js	Fri Dec 28 10:58:26 2018 +0100
@@ -1,1 +1,1 @@
-"no use strict";!function(t){function e(t,e){for(var n=t,r="";n;){var i=e[n];if("string"==typeof i)return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(!1===i)return"";var o=n.lastIndexOf("/");if(-1===o)break;r=n.substr(o)+r,n=n.slice(0,o)}return t}if(!(void 0!==t.window&&t.document||t.require&&t.define)){t.console||(t.console=function(){var t=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:t})},t.console.error=t.console.warn=t.console.log=t.console.trace=t.console),t.window=t,t.ace=t,t.onerror=function(t,e,n,r,i){postMessage({type:"error",data:{message:t,data:i.data,file:e,line:n,col:r,stack:i.stack}})},t.normalizeModule=function(e,n){if(-1!==n.indexOf("!")){var r=n.split("!");return t.normalizeModule(e,r[0])+"!"+t.normalizeModule(e,r[1])}if("."==n.charAt(0)){var i=e.split("/").slice(0,-1).join("/");for(n=(i?i+"/":"")+n;-1!==n.indexOf(".")&&o!=n;){var o=n;n=n.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return n},t.require=function(n,r){if(r||(r=n,n=null),!r.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");r=t.normalizeModule(n,r);var i=t.require.modules[r];if(i)return i.initialized||(i.initialized=!0,i.exports=i.factory().exports),i.exports;if(!t.require.tlns)return console.log("unable to load "+r);var o=e(r,t.require.tlns);return".js"!=o.slice(-3)&&(o+=".js"),t.require.id=r,t.require.modules[r]={},importScripts(o),t.require(n,r)},t.require.modules={},t.require.tlns={},t.define=function(e,n,r){if(2==arguments.length?(r=n,"string"!=typeof e&&(n=e,e=t.require.id)):1==arguments.length&&(r=e,n=[],e=t.require.id),"function"==typeof r){n.length||(n=["require","exports","module"]);var i=function(n){return t.require(e,n)};t.require.modules[e]={exports:{},factory:function(){var t=this,e=r.apply(this,n.slice(0,r.length).map(function(e){switch(e){case"require":return i;case"exports":return t.exports;case"module":return t;default:return i(e)}}));return e&&(t.exports=e),t}}}else t.require.modules[e]={exports:r,initialized:!0}},t.define.amd={},require.tlns={},t.initBaseUrls=function(t){for(var e in t)require.tlns[e]=t[e]},t.initSender=function(){var e=t.require("ace/lib/event_emitter").EventEmitter,n=t.require("ace/lib/oop"),r=function(){};return function(){n.implement(this,e),this.callback=function(t,e){postMessage({type:"call",id:e,data:t})},this.emit=function(t,e){postMessage({type:"event",name:t,data:e})}}.call(r.prototype),new r};var n=t.main=null,r=t.sender=null;t.onmessage=function(e){var i=e.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!t[i.command])throw new Error("Unknown command:"+i.command);t[i.command].apply(t,i.args)}else if(i.init){t.initBaseUrls(i.tlns),require("ace/lib/es5-shim"),r=t.sender=t.initSender();var o=require(i.module)[i.classname];n=t.main=new o(r)}}}}(this),ace.define("ace/lib/oop",[],function(t,e,n){"use strict";e.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},e.mixin=function(t,e){for(var n in e)t[n]=e[n];return t},e.implement=function(t,n){e.mixin(t,n)}}),ace.define("ace/lib/lang",[],function(t,e,n){"use strict";e.last=function(t){return t[t.length-1]},e.stringReverse=function(t){return t.split("").reverse().join("")},e.stringRepeat=function(t,e){for(var n="";e>0;)1&e&&(n+=t),(e>>=1)&&(t+=t);return n};var r=/^\s\s*/,i=/\s\s*$/;e.stringTrimLeft=function(t){return t.replace(r,"")},e.stringTrimRight=function(t){return t.replace(i,"")},e.copyObject=function(t){var e={};for(var n in t)e[n]=t[n];return e},e.copyArray=function(t){for(var e=[],n=0,r=t.length;n<r;n++)t[n]&&"object"==typeof t[n]?e[n]=this.copyObject(t[n]):e[n]=t[n];return e},e.deepCopy=function t(e){if("object"!=typeof e||!e)return e;var n;if(Array.isArray(e)){n=[];for(r=0;r<e.length;r++)n[r]=t(e[r]);return n}if("[object Object]"!==Object.prototype.toString.call(e))return e;n={};for(var r in e)n[r]=t(e[r]);return n},e.arrayToMap=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=1;return e},e.createMap=function(t){var e=Object.create(null);for(var n in t)e[n]=t[n];return e},e.arrayRemove=function(t,e){for(var n=0;n<=t.length;n++)e===t[n]&&t.splice(n,1)},e.escapeRegExp=function(t){return t.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},e.escapeHTML=function(t){return(""+t).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},e.getMatchOffsets=function(t,e){var n=[];return t.replace(e,function(t){n.push({offset:arguments[arguments.length-2],length:t.length})}),n},e.deferredCall=function(t){var e=null,n=function(){e=null,t()},r=function(t){return r.cancel(),e=setTimeout(n,t||0),r};return r.schedule=r,r.call=function(){return this.cancel(),t(),r},r.cancel=function(){return clearTimeout(e),e=null,r},r.isPending=function(){return e},r},e.delayedCall=function(t,e){var n=null,r=function(){n=null,t()},i=function(t){null==n&&(n=setTimeout(r,t||e))};return i.delay=function(t){n&&clearTimeout(n),n=setTimeout(r,t||e)},i.schedule=i,i.call=function(){this.cancel(),t()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),ace.define("ace/range",[],function(t,e,n){"use strict";var r=function(t,e,n,r){this.start={row:t,column:e},this.end={row:n,column:r}};(function(){this.isEqual=function(t){return this.start.row===t.start.row&&this.end.row===t.end.row&&this.start.column===t.start.column&&this.end.column===t.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(t,e){return 0==this.compare(t,e)},this.compareRange=function(t){var e,n=t.end,r=t.start;return 1==(e=this.compare(n.row,n.column))?1==(e=this.compare(r.row,r.column))?2:0==e?1:0:-1==e?-2:-1==(e=this.compare(r.row,r.column))?-1:1==e?42:0},this.comparePoint=function(t){return this.compare(t.row,t.column)},this.containsRange=function(t){return 0==this.comparePoint(t.start)&&0==this.comparePoint(t.end)},this.intersects=function(t){var e=this.compareRange(t);return-1==e||0==e||1==e},this.isEnd=function(t,e){return this.end.row==t&&this.end.column==e},this.isStart=function(t,e){return this.start.row==t&&this.start.column==e},this.setStart=function(t,e){"object"==typeof t?(this.start.column=t.column,this.start.row=t.row):(this.start.row=t,this.start.column=e)},this.setEnd=function(t,e){"object"==typeof t?(this.end.column=t.column,this.end.row=t.row):(this.end.row=t,this.end.column=e)},this.inside=function(t,e){return 0==this.compare(t,e)&&(!this.isEnd(t,e)&&!this.isStart(t,e))},this.insideStart=function(t,e){return 0==this.compare(t,e)&&!this.isEnd(t,e)},this.insideEnd=function(t,e){return 0==this.compare(t,e)&&!this.isStart(t,e)},this.compare=function(t,e){return this.isMultiLine()||t!==this.start.row?t<this.start.row?-1:t>this.end.row?1:this.start.row===t?e>=this.start.column?0:-1:this.end.row===t?e<=this.end.column?0:1:0:e<this.start.column?-1:e>this.end.column?1:0},this.compareStart=function(t,e){return this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.compareEnd=function(t,e){return this.end.row==t&&this.end.column==e?1:this.compare(t,e)},this.compareInside=function(t,e){return this.end.row==t&&this.end.column==e?1:this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.clipRows=function(t,e){if(this.end.row>e)n={row:e+1,column:0};else if(this.end.row<t)var n={row:t,column:0};if(this.start.row>e)i={row:e+1,column:0};else if(this.start.row<t)var i={row:t,column:0};return r.fromPoints(i||this.start,n||this.end)},this.extend=function(t,e){var n=this.compare(t,e);if(0==n)return this;if(-1==n)var i={row:t,column:e};else var o={row:t,column:e};return r.fromPoints(i||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(t){var e=t.documentToScreenPosition(this.start),n=t.documentToScreenPosition(this.end);return new r(e.row,e.column,n.row,n.column)},this.moveBy=function(t,e){this.start.row+=t,this.start.column+=e,this.end.row+=t,this.end.column+=e}}).call(r.prototype),r.fromPoints=function(t,e){return new r(t.row,t.column,e.row,e.column)},r.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},r.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},e.Range=r}),ace.define("ace/apply_delta",[],function(t,e,n){"use strict";function r(t,e){throw console.log("Invalid Delta:",t),"Invalid Delta: "+e}function i(t,e){return e.row>=0&&e.row<t.length&&e.column>=0&&e.column<=t[e.row].length}e.applyDelta=function(t,e,n){var r=e.start.row,i=e.start.column,o=t[r]||"";switch(e.action){case"insert":if(1===e.lines.length)t[r]=o.substring(0,i)+e.lines[0]+o.substring(i);else{var s=[r,1].concat(e.lines);t.splice.apply(t,s),t[r]=o.substring(0,i)+t[r],t[r+e.lines.length-1]+=o.substring(i)}break;case"remove":var a=e.end.column,c=e.end.row;r===c?t[r]=o.substring(0,i)+o.substring(a):t.splice(r,c-r+1,o.substring(0,i)+t[c].substring(a))}}}),ace.define("ace/lib/event_emitter",[],function(t,e,n){"use strict";var r={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(t,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[t]||[],r=this._defaultHandlers[t];if(n.length||r){"object"==typeof e&&e||(e={}),e.type||(e.type=t),e.stopPropagation||(e.stopPropagation=i),e.preventDefault||(e.preventDefault=o),n=n.slice();for(var s=0;s<n.length&&(n[s](e,this),!e.propagationStopped);s++);return r&&!e.defaultPrevented?r(e,this):void 0}},r._signal=function(t,e){var n=(this._eventRegistry||{})[t];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](e,this)}},r.once=function(t,e){var n=this;if(this.addEventListener(t,function r(){n.removeEventListener(t,r),e.apply(null,arguments)}),!e)return new Promise(function(t){e=t})},r.setDefaultHandler=function(t,e){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[t]){var r=n[t],i=n._disabled_[t];i||(n._disabled_[t]=i=[]),i.push(r);var o=i.indexOf(e);-1!=o&&i.splice(o,1)}n[t]=e},r.removeDefaultHandler=function(t,e){var n=this._defaultHandlers;if(n){var r=n._disabled_[t];if(n[t]==e)r&&this.setDefaultHandler(t,r.pop());else if(r){var i=r.indexOf(e);-1!=i&&r.splice(i,1)}}},r.on=r.addEventListener=function(t,e,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[t];return r||(r=this._eventRegistry[t]=[]),-1==r.indexOf(e)&&r[n?"unshift":"push"](e),e},r.off=r.removeListener=r.removeEventListener=function(t,e){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[t];if(n){var r=n.indexOf(e);-1!==r&&n.splice(r,1)}},r.removeAllListeners=function(t){this._eventRegistry&&(this._eventRegistry[t]=[])},e.EventEmitter=r}),ace.define("ace/anchor",[],function(t,e,n){"use strict";var r=t("./lib/oop"),i=t("./lib/event_emitter").EventEmitter,o=e.Anchor=function(t,e,n){this.$onChange=this.onChange.bind(this),this.attach(t),void 0===n?this.setPosition(e.row,e.column):this.setPosition(e,n)};(function(){function t(t,e,n){var r=n?t.column<=e.column:t.column<e.column;return t.row<e.row||t.row==e.row&&r}function e(e,n,r){var i="insert"==e.action,o=(i?1:-1)*(e.end.row-e.start.row),s=(i?1:-1)*(e.end.column-e.start.column),a=e.start,c=i?a:e.end;return t(n,a,r)?{row:n.row,column:n.column}:t(c,n,!r)?{row:n.row+o,column:n.column+(n.row==c.row?s:0)}:{row:a.row,column:a.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row||t.start.row>this.row)){var n=e(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(t,e,n){var r;if(r=n?{row:t,column:e}:this.$clipPositionToDocument(t,e),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(t){this.document=t||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(t,e){var n={};return t>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):t<0?(n.row=0,n.column=0):(n.row=t,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,e))),e<0&&(n.column=0),n}}).call(o.prototype)}),ace.define("ace/document",[],function(t,e,n){"use strict";var r=t("./lib/oop"),i=t("./apply_delta").applyDelta,o=t("./lib/event_emitter").EventEmitter,s=t("./range").Range,a=t("./anchor").Anchor,c=function(t){this.$lines=[""],0===t.length?this.$lines=[""]:Array.isArray(t)?this.insertMergedLines({row:0,column:0},t):this.insert({row:0,column:0},t)};(function(){r.implement(this,o),this.setValue=function(t){var e=this.getLength()-1;this.remove(new s(0,0,e,this.getLine(e).length)),this.insert({row:0,column:0},t)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(t,e){return new a(this,t,e)},0==="aaa".split(/a/).length?this.$split=function(t){return t.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(t){return t.split(/\r\n|\r|\n/)},this.$detectNewLine=function(t){var e=t.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[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(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(t){return"\r\n"==t||"\r"==t||"\n"==t},this.getLine=function(t){return this.$lines[t]||""},this.getLines=function(t,e){return this.$lines.slice(t,e+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},this.getLinesForRange=function(t){var e;if(t.start.row===t.end.row)e=[this.getLine(t.start.row).substring(t.start.column,t.end.column)];else{(e=this.getLines(t.start.row,t.end.row))[0]=(e[0]||"").substring(t.start.column);var n=e.length-1;t.end.row-t.start.row==n&&(e[n]=e[n].substring(0,t.end.column))}return e},this.insertLines=function(t,e){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,e)},this.removeLines=function(t,e){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,e)},this.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},this.insert=function(t,e){return this.getLength()<=1&&this.$detectNewLine(e),this.insertMergedLines(t,this.$split(e))},this.insertInLine=function(t,e){var n=this.clippedPos(t.row,t.column),r=this.pos(t.row,t.column+e.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[e]},!0),this.clonePos(r)},this.clippedPos=function(t,e){var n=this.getLength();void 0===t?t=n:t<0?t=0:t>=n&&(t=n-1,e=void 0);var r=this.getLine(t);return void 0==e&&(e=r.length),e=Math.min(Math.max(e,0),r.length),{row:t,column:e}},this.clonePos=function(t){return{row:t.row,column:t.column}},this.pos=function(t,e){return{row:t,column:e}},this.$clipPosition=function(t){var e=this.getLength();return t.row>=e?(t.row=Math.max(0,e-1),t.column=this.getLine(e-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},this.insertFullLines=function(t,e){var n=0;(t=Math.min(Math.max(t,0),this.getLength()))<this.getLength()?(e=e.concat([""]),n=0):(e=[""].concat(e),t--,n=this.$lines[t].length),this.insertMergedLines({row:t,column:n},e)},this.insertMergedLines=function(t,e){var n=this.clippedPos(t.row,t.column),r={row:n.row+e.length-1,column:(1==e.length?n.column:0)+e[e.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:e}),this.clonePos(r)},this.remove=function(t){var e=this.clippedPos(t.start.row,t.start.column),n=this.clippedPos(t.end.row,t.end.column);return this.applyDelta({start:e,end:n,action:"remove",lines:this.getLinesForRange({start:e,end:n})}),this.clonePos(e)},this.removeInLine=function(t,e,n){var r=this.clippedPos(t,e),i=this.clippedPos(t,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(t,e){t=Math.min(Math.max(0,t),this.getLength()-1);var n=(e=Math.min(Math.max(0,e),this.getLength()-1))==this.getLength()-1&&t>0,r=e<this.getLength()-1,i=n?t-1:t,o=n?this.getLine(i).length:0,a=r?e+1:e,c=r?0:this.getLine(a).length,u=new s(i,o,a,c),l=this.$lines.slice(t,e+1);return this.applyDelta({start:u.start,end:u.end,action:"remove",lines:this.getLinesForRange(u)}),l},this.removeNewLine=function(t){t<this.getLength()-1&&t>=0&&this.applyDelta({start:this.pos(t,this.getLine(t).length),end:this.pos(t+1,0),action:"remove",lines:["",""]})},this.replace=function(t,e){if(t instanceof s||(t=s.fromPoints(t.start,t.end)),0===e.length&&t.isEmpty())return t.start;if(e==this.getTextRange(t))return t.end;this.remove(t);return e?this.insert(t.start,e):t.start},this.applyDeltas=function(t){for(var e=0;e<t.length;e++)this.applyDelta(t[e])},this.revertDeltas=function(t){for(var e=t.length-1;e>=0;e--)this.revertDelta(t[e])},this.applyDelta=function(t,e){var n="insert"==t.action;(n?t.lines.length<=1&&!t.lines[0]:!s.comparePoints(t.start,t.end))||(n&&t.lines.length>2e4?this.$splitAndapplyLargeDelta(t,2e4):(i(this.$lines,t,e),this._signal("change",t)))},this.$splitAndapplyLargeDelta=function(t,e){for(var n=t.lines,r=n.length-e+1,i=t.start.row,o=t.start.column,s=0,a=0;s<r;s=a){a+=e-1;var c=n.slice(s,a);c.push(""),this.applyDelta({start:this.pos(i+s,o),end:this.pos(i+a,o=0),action:t.action,lines:c},!0)}t.lines=n.slice(s),t.start.row=i+s,t.start.column=o,this.applyDelta(t,!0)},this.revertDelta=function(t){this.applyDelta({start:this.clonePos(t.start),end:this.clonePos(t.end),action:"insert"==t.action?"remove":"insert",lines:t.lines.slice()})},this.indexToPosition=function(t,e){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=e||0,o=n.length;i<o;i++)if((t-=n[i].length+r)<0)return{row:i,column:t+n[i].length+r};return{row:o-1,column:t+n[o-1].length+r}},this.positionToIndex=function(t,e){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(t.row,n.length),s=e||0;s<o;++s)i+=n[s].length+r;return i+t.column}}).call(c.prototype),e.Document=c}),ace.define("ace/worker/mirror",[],function(t,e,n){"use strict";t("../range").Range;var r=t("../document").Document,i=t("../lib/lang"),o=e.Mirror=function(t){this.sender=t;var e=this.doc=new r(""),n=this.deferredUpdate=i.delayedCall(this.onUpdate.bind(this)),o=this;t.on("change",function(t){var r=t.data;if(r[0].start)e.applyDeltas(r);else for(var i=0;i<r.length;i+=2){if(Array.isArray(r[i+1]))s={action:"insert",start:r[i],lines:r[i+1]};else var s={action:"remove",start:r[i],end:r[i+1]};e.applyDelta(s,!0)}if(o.$timeout)return n.schedule(o.$timeout);o.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(t){this.$timeout=t},this.setValue=function(t){this.doc.setValue(t),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(t){this.sender.callback(this.doc.getValue(),t)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/mode/xml/sax",[],function(t,e,n){function r(){}function i(t,e,n,r,i){function l(t){if(t>65535){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}function d(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?l(parseInt(e.substr(1).replace("x","0x"))):(i.error("entity not found:"+t),t)}function m(e){var n=t.substring(_,e).replace(/&#?\w+;/g,d);b&&g(_),r.characters(n,0,e-_),_=e}function g(e,n){for(;e>=v&&(n=y.exec(t));)w=n.index,v=w+n[0].length,b.lineNumber++;b.columnNumber=e-w+1}for(var w=0,v=0,y=/.+(?:\r\n?|\n)|.*$/g,b=r.locator,N=[{currentNSMap:e}],E={},_=0;;){if((I=t.indexOf("<",_))<0){if(!t.substr(_).match(/^\s*$/)){var D=r.document,x=D.createTextNode(t.substr(_));D.appendChild(x),r.currentElement=x}return}switch(I>_&&m(I),t.charAt(I+1)){case"/":var T,O=t.indexOf(">",I+3),S=t.substring(I+2,O);if(!(N.length>1)){i.fatalError("end tag name not found for: "+S);break}var A=(T=N.pop()).localNSMap;if(T.tagName!=S&&i.fatalError("end tag name: "+S+" does not match the current start tagName: "+T.tagName),r.endElement(T.uri,T.localName,S),A)for(var L in A)r.endPrefixMapping(L);O++;break;case"?":b&&g(I),O=f(t,I,r);break;case"!":b&&g(I),O=h(t,I,r,i);break;default:try{b&&g(I);var C=new p,O=s(t,I,C,d,i),R=C.length;if(R&&b){for(var j=o(b,{}),I=0;I<R;I++){var P=C[I];g(P.offset),P.offset=o(b,{})}o(j,b)}!C.closed&&u(t,O,C.tagName,E)&&(C.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),a(C,r,N),"http://www.w3.org/1999/xhtml"!==C.uri||C.closed?O++:O=c(t,O,C.tagName,d,r)}catch(t){i.error("element parse error: "+t),O=-1}}O<0?m(I+1):_=O}}function o(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function s(t,e,n,r,i){for(var o,s=++e,a=y;;){var c=t.charAt(s);switch(c){case"=":if(a===b)o=t.slice(e,s),a=E;else{if(a!==N)throw new Error("attribute equal must after attrName");a=E}break;case"'":case'"':if(a===E){if(e=s+1,!((s=t.indexOf(c,e))>0))throw new Error("attribute value no end '"+c+"' match");u=t.slice(e,s).replace(/&#?\w+;/g,r),n.add(o,u,e-1),a=D}else{if(a!=_)throw new Error('attribute value must after "="');u=t.slice(e,s).replace(/&#?\w+;/g,r),n.add(o,u,e),i.warning('attribute "'+o+'" missed start quot('+c+")!!"),e=s+1,a=D}break;case"/":switch(a){case y:n.setTagName(t.slice(e,s));case D:case x:case T:a=T,n.closed=!0;case _:case b:case N:break;default:throw new Error("attribute invalid close char('/')")}break;case"":i.error("unexpected end of input");case">":switch(a){case y:n.setTagName(t.slice(e,s));case D:case x:case T:break;case _:case b:"/"===(u=t.slice(e,s)).slice(-1)&&(n.closed=!0,u=u.slice(0,-1));case N:a===N&&(u=o),a==_?(i.warning('attribute "'+u+'" missed quot(")!!'),n.add(o,u.replace(/&#?\w+;/g,r),e)):(i.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),n.add(u,u,e));break;case E:throw new Error("attribute value missed!!")}return s;case"€":c=" ";default:if(c<=" ")switch(a){case y:n.setTagName(t.slice(e,s)),a=x;break;case b:o=t.slice(e,s),a=N;break;case _:var u=t.slice(e,s).replace(/&#?\w+;/g,r);i.warning('attribute "'+u+'" missed quot(")!!'),n.add(o,u,e);case D:a=x}else switch(a){case N:i.warning('attribute "'+o+'" missed value!! "'+o+'" instead!!'),n.add(o,o,e),e=s,a=b;break;case D:i.warning('attribute space is required"'+o+'"!!');case x:a=b,e=s;break;case E:a=_,e=s;break;case T:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function a(t,e,n){for(var r=t.tagName,i=null,o=n[n.length-1].currentNSMap,s=t.length;s--;){var a=t[s],c=a.qName,u=a.value;if((d=c.indexOf(":"))>0)var h=a.prefix=c.slice(0,d),f=c.slice(d+1),p="xmlns"===h&&f;else f=c,h=null,p="xmlns"===c&&"";a.localName=f,!1!==p&&(null==i&&(i={},l(o,o={})),o[p]=i[p]=u,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(p,u))}for(s=t.length;s--;)(h=(a=t[s]).prefix)&&("xml"===h&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==h&&(a.uri=o[h]));var d=r.indexOf(":");d>0?(h=t.prefix=r.slice(0,d),f=t.localName=r.slice(d+1)):(h=null,f=t.localName=r);var m=t.uri=o[h||""];if(e.startElement(m,f,r,t),t.closed){if(e.endElement(m,f,r),i)for(h in i)e.endPrefixMapping(h)}else t.currentNSMap=o,t.localNSMap=i,n.push(t)}function c(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("</"+n+">",e),s=t.substring(e+1,o);if(/[&<]/.test(s))return/^script$/i.test(n)?(i.characters(s,0,s.length),o):(s=s.replace(/&#?\w+;/g,r),i.characters(s,0,s.length),o)}return e+1}function u(t,e,n,r){var i=r[n];return null==i&&(i=r[n]=t.lastIndexOf("</"+n+">")),i<e}function l(t,e){for(var n in t)e[n]=t[n]}function h(t,e,n,r){switch(t.charAt(e+2)){case"-":return"-"===t.charAt(e+3)?(i=t.indexOf("--\x3e",e+4))>e?(n.comment(t,e+4,i-e-4),i+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,i-e-9),n.endCDATA(),i+3}var o=m(t,e),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var a=o[1][0],c=s>3&&/^public$/i.test(o[2][0])&&o[3][0],u=s>4&&o[4][0],l=o[s-1];return n.startDTD(a,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),l.index+l[0].length}}return-1}function f(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function p(t){}function d(t,e){return t.__proto__=e,t}function m(t,e){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);n=i.exec(t);)if(r.push(n),n[1])return r}var g=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,w=new RegExp("[\\-\\.0-9"+g.source.slice(1,-1)+"·̀-ͯ\\ux203F-⁀]"),v=new RegExp("^"+g.source+w.source+"*(?::"+g.source+w.source+"*)?$"),y=0,b=1,N=2,E=3,_=4,D=5,x=6,T=7;return r.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),l(e,e={}),i(t,e,n,r,this.errorHandler),r.endDocument()}},p.prototype={setTagName:function(t){if(!v.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},add:function(t,e,n){if(!v.test(t))throw new Error("invalid attribute:"+t);this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getOffset:function(t){return this[t].offset},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},d({},d.prototype)instanceof d||(d=function(t,e){function n(){}n.prototype=e,n=new n;for(e in t)n[e]=t[e];return n}),r}),ace.define("ace/mode/xml/dom",[],function(t,e,n){function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e){var n=function(){},i=t.prototype;if(Object.create){var o=Object.create(e.prototype);i.__proto__=o}i instanceof e||(n.prototype=e.prototype,n=new n,r(i,n),t.prototype=i=n),i.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),i.constructor=t)}function o(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,rt[t]),this.message=rt[t],Error.captureStackTrace&&Error.captureStackTrace(this,o);return n.code=t,e&&(this.message=this.message+": "+e),n}function s(){}function a(t,e){this._node=t,this._refresh=e,c(this)}function c(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var n=t._refresh(t._node);U(t,"length",n.length),r(n,t),t._inc=e}}function u(){}function l(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function h(t,e,n,r){if(r?e[l(e,r)]=n:e[e.length++]=n,t){n.ownerElement=t;var i=t.ownerDocument;i&&(r&&y(i,t,r),v(i,t,n))}}function f(t,e,n){var r=l(e,n);if(!(r>=0))throw new o(it,new Error);for(var i=e.length-1;r<i;)e[r]=e[++r];if(e.length=i,t){var s=t.ownerDocument;s&&(y(s,t,n),n.ownerElement=null)}}function p(t){if(this._features={},t)for(var e in t)this._features=t[e]}function d(){}function m(t){return"<"==t&&"&lt;"||">"==t&&"&gt;"||"&"==t&&"&amp;"||'"'==t&&"&quot;"||"&#"+t.charCodeAt()+";"}function g(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(g(t,e))return!0}while(t=t.nextSibling)}function w(){}function v(t,e,n){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(e._nsMap[n.prefix?n.localName:""]=n.value)}function y(t,e,n,r){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete e._nsMap[n.prefix?n.localName:""]}function b(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{for(var i=e.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function N(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,b(t.ownerDocument,t),e}function E(t,e,n){var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===tt){var i=e.firstChild;if(null==i)return e;var o=e.lastChild}else i=o=e;var s=n?n.previousSibling:t.lastChild;i.previousSibling=s,o.nextSibling=n,s?s.nextSibling=i:t.firstChild=i,null==n?t.lastChild=o:n.previousSibling=o;do{i.parentNode=t}while(i!==o&&(i=i.nextSibling));return b(t.ownerDocument||t,t),e.nodeType==tt&&(e.firstChild=e.lastChild=null),e}function _(t,e){var n=e.parentNode;if(n){r=t.lastChild;n.removeChild(e);r=t.lastChild}var r=t.lastChild;return e.parentNode=t,e.previousSibling=r,e.nextSibling=null,r?r.nextSibling=e:t.firstChild=e,t.lastChild=e,b(t.ownerDocument,t,e),e}function D(){this._nsMap={}}function x(){}function T(){}function O(){}function S(){}function A(){}function L(){}function C(){}function R(){}function j(){}function I(){}function P(){}function M(){}function $(t,e){switch(t.nodeType){case z:var n=t.attributes,r=n.length,i=t.firstChild,o=t.tagName,s=B===t.namespaceURI;e.push("<",o);for(var a=0;a<r;a++)$(n.item(a),e);if(i||s&&!/^(?:meta|link|img|br|hr|input|button)$/i.test(o)){if(e.push(">"),s&&/^script$/i.test(o))i&&e.push(i.data);else for(;i;)$(i,e),i=i.nextSibling;e.push("</",o,">")}else e.push("/>");return;case J:case tt:for(i=t.firstChild;i;)$(i,e),i=i.nextSibling;return;case H:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,m),'"');case G:return e.push(t.data.replace(/[<&]/g,m));case X:return e.push("<![CDATA[",t.data,"]]>");case Z:return e.push("\x3c!--",t.data,"--\x3e");case K:var c=t.publicId,u=t.systemId;if(e.push("<!DOCTYPE ",t.name),c)e.push(' PUBLIC "',c),u&&"."!=u&&e.push('" "',u),e.push('">');else if(u&&"."!=u)e.push(' SYSTEM "',u,'">');else{var l=t.internalSubset;l&&e.push(" [",l,"]"),e.push(">")}return;case Q:return e.push("<?",t.target," ",t.data,"?>");case Y:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function F(t,e,n){var r;switch(e.nodeType){case z:(r=e.cloneNode(!1)).ownerDocument=t;case tt:break;case H:n=!0}if(r||(r=e.cloneNode(!1)),r.ownerDocument=t,r.parentNode=null,n)for(var i=e.firstChild;i;)r.appendChild(F(t,i,n)),i=i.nextSibling;return r}function k(t,e,n){var r=new e.constructor;for(var i in e){var o=e[i];"object"!=typeof o&&o!=r[i]&&(r[i]=o)}switch(e.childNodes&&(r.childNodes=new s),r.ownerDocument=t,r.nodeType){case z:var a=e.attributes,c=r.attributes=new u,l=a.length;c._ownerElement=r;for(var h=0;h<l;h++)r.setAttributeNode(k(t,a.item(h),!0));break;case H:n=!0}if(n)for(var f=e.firstChild;f;)r.appendChild(k(t,f,n)),f=f.nextSibling;return r}function U(t,e,n){t[e]=n}function q(t){switch(t.nodeType){case 1:case 11:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(q(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}var B="http://www.w3.org/1999/xhtml",V={},z=V.ELEMENT_NODE=1,H=V.ATTRIBUTE_NODE=2,G=V.TEXT_NODE=3,X=V.CDATA_SECTION_NODE=4,Y=V.ENTITY_REFERENCE_NODE=5,W=V.ENTITY_NODE=6,Q=V.PROCESSING_INSTRUCTION_NODE=7,Z=V.COMMENT_NODE=8,J=V.DOCUMENT_NODE=9,K=V.DOCUMENT_TYPE_NODE=10,tt=V.DOCUMENT_FRAGMENT_NODE=11,et=V.NOTATION_NODE=12,nt={},rt={},it=(nt.INDEX_SIZE_ERR=(rt[1]="Index size error",1),nt.DOMSTRING_SIZE_ERR=(rt[2]="DOMString size error",2),nt.HIERARCHY_REQUEST_ERR=(rt[3]="Hierarchy request error",3),nt.WRONG_DOCUMENT_ERR=(rt[4]="Wrong document",4),nt.INVALID_CHARACTER_ERR=(rt[5]="Invalid character",5),nt.NO_DATA_ALLOWED_ERR=(rt[6]="No data allowed",6),nt.NO_MODIFICATION_ALLOWED_ERR=(rt[7]="No modification allowed",7),nt.NOT_FOUND_ERR=(rt[8]="Not found",8)),ot=(nt.NOT_SUPPORTED_ERR=(rt[9]="Not supported",9),nt.INUSE_ATTRIBUTE_ERR=(rt[10]="Attribute in use",10));nt.INVALID_STATE_ERR=(rt[11]="Invalid state",11),nt.SYNTAX_ERR=(rt[12]="Syntax error",12),nt.INVALID_MODIFICATION_ERR=(rt[13]="Invalid modification",13),nt.NAMESPACE_ERR=(rt[14]="Invalid namespace",14),nt.INVALID_ACCESS_ERR=(rt[15]="Invalid access",15);o.prototype=Error.prototype,r(nt,o),s.prototype={length:0,item:function(t){return this[t]||null}},a.prototype.item=function(t){return c(this),this[t]},i(a,s),u.prototype={length:0,item:s.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new o(ot);var n=this.getNamedItem(t.nodeName);return h(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e,n=t.ownerElement;if(n&&n!=this._ownerElement)throw new o(ot);return e=this.getNamedItemNS(t.namespaceURI,t.localName),h(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return f(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return f(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var r=this[n];if(r.localName==e&&r.namespaceURI==t)return r}return null}},p.prototype={hasFeature:function(t,e){var n=this._features[t.toLowerCase()];return!(!n||e&&!(e in n))},createDocument:function(t,e,n){var r=new w;if(r.implementation=this,r.childNodes=new s,r.doctype=n,n&&r.appendChild(n),e){var i=r.createElementNS(t,e);r.appendChild(i)}return r},createDocumentType:function(t,e,n){var r=new L;return r.name=t,r.nodeName=t,r.publicId=e,r.systemId=n,r}},d.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return E(this,t,e)},replaceChild:function(t,e){this.insertBefore(t,e),e&&this.removeChild(e)},removeChild:function(t){return N(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return k(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==G&&t.nodeType==G?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n)for(var r in n)if(n[r]==t)return r;e=2==e.nodeType?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&t in n)return n[t];e=2==e.nodeType?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},r(V,d),r(V,d.prototype),w.prototype={nodeName:"#document",nodeType:J,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==tt){for(var n=t.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,e),n=r}return t}return null==this.documentElement&&1==t.nodeType&&(this.documentElement=t),E(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),N(this,t)},importNode:function(t,e){return F(this,t,e)},getElementById:function(t){var e=null;return g(this.documentElement,function(n){if(1==n.nodeType&&n.getAttribute("id")==t)return e=n,!0}),e},createElement:function(t){var e=new D;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new s,(e.attributes=new u)._ownerElement=e,e},createDocumentFragment:function(){var t=new I;return t.ownerDocument=this,t.childNodes=new s,t},createTextNode:function(t){var e=new O;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new S;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new A;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new P;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new x;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new j;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new D,r=e.split(":"),i=n.attributes=new u;return n.childNodes=new s,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,i._ownerElement=n,n},createAttributeNS:function(t,e){var n=new x,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}},i(w,d),D.prototype={nodeType:z,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===tt?this.insertBefore(t,null):_(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new a(this,function(e){var n=[];return g(e,function(r){r!==e&&r.nodeType==z&&("*"===t||r.tagName==t)&&n.push(r)}),n})},getElementsByTagNameNS:function(t,e){return new a(this,function(n){var r=[];return g(n,function(i){i!==n&&i.nodeType===z&&("*"===t||i.namespaceURI===t)&&("*"===e||i.localName==e)&&r.push(i)}),r})}},w.prototype.getElementsByTagName=D.prototype.getElementsByTagName,w.prototype.getElementsByTagNameNS=D.prototype.getElementsByTagNameNS,i(D,d),x.prototype.nodeType=H,i(x,d),T.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(rt[3])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){n=this.data.substring(0,t)+n+this.data.substring(t+e),this.nodeValue=this.data=n,this.length=n.length}},i(T,d),O.prototype={nodeName:"#text",nodeType:G,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},i(O,T),S.prototype={nodeName:"#comment",nodeType:Z},i(S,T),A.prototype={nodeName:"#cdata-section",nodeType:X},i(A,T),L.prototype.nodeType=K,i(L,d),C.prototype.nodeType=et,i(C,d),R.prototype.nodeType=W,i(R,d),j.prototype.nodeType=Y,i(j,d),I.prototype.nodeName="#document-fragment",I.prototype.nodeType=tt,i(I,d),P.prototype.nodeType=Q,i(P,d),M.prototype.serializeToString=function(t){var e=[];return $(t,e),e.join("")},d.prototype.toString=function(){return M.prototype.serializeToString(this)};try{Object.defineProperty&&(Object.defineProperty(a.prototype,"length",{get:function(){return c(this),this.$$length}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return q(this)},set:function(t){switch(this.nodeType){case 1:case 11:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=value,this.nodeValue=t}}}),U=function(t,e,n){t["$$"+e]=n})}catch(t){}return p}),ace.define("ace/mode/xml/dom-parser",[],function(t,e,n){"use strict";function r(t){this.options=t||{locator:{}}}function i(t,e,n){function r(e){var r=t[e];if(!r)if(s)r=2==t.length?function(n){t(e,n)}:t;else for(var o=arguments.length;--o&&!(r=t[arguments[o]]););i[e]=r&&function(t){r(t+a(n),t,n)}||function(){}}if(!t){if(e instanceof o)return e;t=e}var i={},s=t instanceof Function;return n=n||{},r("warning","warn"),r("error","warn","warning"),r("fatalError","warn","warning","error"),i}function o(){this.cdata=!1}function s(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function a(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function c(t,e,n){return"string"==typeof t?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}function u(t,e){t.currentElement?t.currentElement.appendChild(e):t.document.appendChild(e)}var l=t("./sax"),h=t("./dom");return r.prototype.parseFromString=function(t,e){var n=this.options,r=new l,s=n.domBuilder||new o,a=n.errorHandler,c=n.locator,u=n.xmlns||{},h={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&s.setDocumentLocator(c),r.errorHandler=i(a,s,c),r.domBuilder=n.domBuilder||s,/\/x?html?$/.test(e)&&(h.nbsp=" ",h.copy="©",u[""]="http://www.w3.org/1999/xhtml"),t?r.parse(t,u,h):r.errorHandler.error("invalid document source"),s.document},o.prototype={startDocument:function(){this.document=(new h).createDocument(null,null,null),this.locator&&(this.document.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var i=this.document,o=i.createElementNS(t,n||e),a=r.length;u(this,o),this.currentElement=o,this.locator&&s(this.locator,o);for(var c=0;c<a;c++){var t=r.getURI(c),l=r.getValue(c),n=r.getQName(c),h=i.createAttributeNS(t,n);h.getOffset&&s(h.getOffset(1),h),h.value=h.nodeValue=l,o.setAttributeNode(h)}},endElement:function(t,e,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.document.createProcessingInstruction(t,e);this.locator&&s(this.locator,n),u(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=c.apply(this,arguments),this.currentElement&&t){if(this.cdata){r=this.document.createCDATASection(t);this.currentElement.appendChild(r)}else{var r=this.document.createTextNode(t);this.currentElement.appendChild(r)}this.locator&&s(this.locator,r)}},skippedEntity:function(t){},endDocument:function(){this.document.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=c.apply(this,arguments);var r=this.document.createComment(t);this.locator&&s(this.locator,r),u(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var r=this.document.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(t,e,n);this.locator&&s(this.locator,i),u(this,i)}},warning:function(t){console.warn(t,a(this.locator))},error:function(t){console.error(t,a(this.locator))},fatalError:function(t){throw console.error(t,a(this.locator)),t}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){o.prototype[t]=function(){return null}}),{DOMParser:r}}),ace.define("ace/mode/xml_worker",[],function(t,e,n){"use strict";var r=t("../lib/oop"),i=(t("../lib/lang"),t("../worker/mirror").Mirror),o=t("./xml/dom-parser").DOMParser,s=e.Worker=function(t){i.call(this,t),this.setTimeout(400),this.context=null};r.inherits(s,i),function(){this.setOptions=function(t){this.context=t.context},this.onUpdate=function(){var t=this.doc.getValue();if(t){var e=new o,n=[];e.options.errorHandler={fatalError:function(t,e,r){n.push({row:r.lineNumber,column:r.columnNumber,text:e,type:"error"})},error:function(t,e,r){n.push({row:r.lineNumber,column:r.columnNumber,text:e,type:"error"})},warning:function(t,e,r){n.push({row:r.lineNumber,column:r.columnNumber,text:e,type:"warning"})}},e.parseFromString(t),this.sender.emit("error",n)}}}.call(s.prototype)}),ace.define("ace/lib/es5-shim",[],function(t,e,n){function r(){}function i(t){try{return Object.defineProperty(t,"sentinel",{}),"sentinel"in t}catch(t){}}function o(t){return(t=+t)!==t?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t}Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError("Function.prototype.bind called on incompatible "+e);var n=d.call(arguments,1),i=function(){if(this instanceof i){var r=e.apply(this,n.concat(d.call(arguments)));return Object(r)===r?r:this}return e.apply(t,n.concat(d.call(arguments)))};return e.prototype&&(r.prototype=e.prototype,i.prototype=new r,r.prototype=null),i});var s,a,c,u,l,h=Function.prototype.call,f=Array.prototype,p=Object.prototype,d=f.slice,m=h.bind(p.toString),g=h.bind(p.hasOwnProperty);if((l=g(p,"__defineGetter__"))&&(s=h.bind(p.__defineGetter__),a=h.bind(p.__defineSetter__),c=h.bind(p.__lookupGetter__),u=h.bind(p.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function t(t){var e=new Array(t+2);return e[0]=e[1]=0,e}var e,n=[];if(n.splice.apply(n,t(20)),n.splice.apply(n,t(26)),e=n.length,n.splice(5,0,"XXX"),n.length,e+1==n.length)return!0}()){var w=Array.prototype.splice;Array.prototype.splice=function(t,e){return arguments.length?w.apply(this,[void 0===t?0:t,void 0===e?this.length-t:e].concat(d.call(arguments,2))):[]}}else Array.prototype.splice=function(t,e){var n=this.length;t>0?t>n&&(t=n):void 0==t?t=0:t<0&&(t=Math.max(n+t,0)),t+e<n||(e=n-t);var r=this.slice(t,t+e),i=d.call(arguments,2),o=i.length;if(t===n)o&&this.push.apply(this,i);else{var s=Math.min(e,n-t),a=t+s,c=a+o-s,u=n-a,l=n-s;if(c<a)for(var h=0;h<u;++h)this[c+h]=this[a+h];else if(c>a)for(h=u;h--;)this[c+h]=this[a+h];if(o&&t===l)this.length=l,this.push.apply(this,i);else for(this.length=l+o,h=0;h<o;++h)this[t+h]=i[h]}return r};Array.isArray||(Array.isArray=function(t){return"[object Array]"==m(t)});var v=Object("a"),y="a"!=v[0]||!(0 in v);if(Array.prototype.forEach||(Array.prototype.forEach=function(t){var e=C(this),n=y&&"[object String]"==m(this)?this.split(""):e,r=arguments[1],i=-1,o=n.length>>>0;if("[object Function]"!=m(t))throw new TypeError;for(;++i<o;)i in n&&t.call(r,n[i],i,e)}),Array.prototype.map||(Array.prototype.map=function(t){var e=C(this),n=y&&"[object String]"==m(this)?this.split(""):e,r=n.length>>>0,i=Array(r),o=arguments[1];if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");for(var s=0;s<r;s++)s in n&&(i[s]=t.call(o,n[s],s,e));return i}),Array.prototype.filter||(Array.prototype.filter=function(t){var e,n=C(this),r=y&&"[object String]"==m(this)?this.split(""):n,i=r.length>>>0,o=[],s=arguments[1];if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");for(var a=0;a<i;a++)a in r&&(e=r[a],t.call(s,e,a,n)&&o.push(e));return o}),Array.prototype.every||(Array.prototype.every=function(t){var e=C(this),n=y&&"[object String]"==m(this)?this.split(""):e,r=n.length>>>0,i=arguments[1];if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");for(var o=0;o<r;o++)if(o in n&&!t.call(i,n[o],o,e))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var e=C(this),n=y&&"[object String]"==m(this)?this.split(""):e,r=n.length>>>0,i=arguments[1];if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");for(var o=0;o<r;o++)if(o in n&&t.call(i,n[o],o,e))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var e=C(this),n=y&&"[object String]"==m(this)?this.split(""):e,r=n.length>>>0;if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var i,o=0;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o++];break}if(++o>=r)throw new TypeError("reduce of empty array with no initial value")}for(;o<r;o++)o in n&&(i=t.call(void 0,i,n[o],o,e));return i}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var e=C(this),n=y&&"[object String]"==m(this)?this.split(""):e,r=n.length>>>0;if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,o=r-1;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}do{o in this&&(i=t.call(void 0,i,n[o],o,e))}while(o--);return i}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(t){var e=y&&"[object String]"==m(this)?this.split(""):C(this),n=e.length>>>0;if(!n)return-1;var r=0;for(arguments.length>1&&(r=o(arguments[1])),r=r>=0?r:Math.max(0,n+r);r<n;r++)if(r in e&&e[r]===t)return r;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(t){var e=y&&"[object String]"==m(this)?this.split(""):C(this),n=e.length>>>0;if(!n)return-1;var r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in e&&t===e[r])return r;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:p)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(t,e){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+t);if(g(t,e)){var n;if(n={enumerable:!0,configurable:!0},l){var r=t.__proto__;t.__proto__=p;var i=c(t,e),o=u(t,e);if(t.__proto__=r,i||o)return i&&(n.get=i),o&&(n.set=o),n}return n.value=t[e],n}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)}),!Object.create){var b;b=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var t={};for(var e in t)t[e]=null;return t.constructor=t.hasOwnProperty=t.propertyIsEnumerable=t.isPrototypeOf=t.toLocaleString=t.toString=t.valueOf=t.__proto__=null,t},Object.create=function(t,e){var n;if(null===t)n=b();else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var r=function(){};r.prototype=t,(n=new r).__proto__=t}return void 0!==e&&Object.defineProperties(n,e),n}}if(Object.defineProperty){var N=i({}),E="undefined"==typeof document||i(document.createElement("div"));if(!N||!E)var _=Object.defineProperty}if(!Object.defineProperty||_){Object.defineProperty=function(t,e,n){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.defineProperty called on non-object: "+t);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(_)try{return _.call(Object,t,e,n)}catch(t){}if(g(n,"value"))if(l&&(c(t,e)||u(t,e))){var r=t.__proto__;t.__proto__=p,delete t[e],t[e]=n.value,t.__proto__=r}else t[e]=n.value;else{if(!l)throw new TypeError("getters & setters can not be defined on this javascript engine");g(n,"get")&&s(t,e,n.get),g(n,"set")&&a(t,e,n.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,e){for(var n in e)g(e,n)&&Object.defineProperty(t,n,e[n]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(t){Object.freeze=function(t){return function(e){return"function"==typeof e?e:t(e)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;for(var e="";g(t,e);)e+="?";t[e]=!0;var n=g(t,e);return delete t[e],n}),!Object.keys){var D=!0,x=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],T=x.length;for(var O in{toString:null})D=!1;Object.keys=function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.keys called on a non-object");var e=[];for(var n in t)g(t,n)&&e.push(n);if(D)for(var r=0,i=T;r<i;r++){var o=x[r];g(t,o)&&e.push(o)}return e}}Date.now||(Date.now=function(){return(new Date).getTime()});var S="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff";if(!String.prototype.trim||S.trim()){S="["+S+"]";var A=new RegExp("^"+S+S+"*"),L=new RegExp(S+S+"*$");String.prototype.trim=function(){return String(this).replace(A,"").replace(L,"")}}var C=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return Object(t)}});
+"no use strict";!function(o){if(!(void 0!==o.window&&o.document||o.require&&o.define)){o.console||(o.console=function(){var t=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:t})},o.console.error=o.console.warn=o.console.log=o.console.trace=o.console),((o.window=o).ace=o).onerror=function(t,e,n,r,i){postMessage({type:"error",data:{message:t,data:i.data,file:e,line:n,col:r,stack:i.stack}})},o.normalizeModule=function(t,e){if(-1!==e.indexOf("!")){var n=e.split("!");return o.normalizeModule(t,n[0])+"!"+o.normalizeModule(t,n[1])}if("."==e.charAt(0)){var r=t.split("/").slice(0,-1).join("/");for(e=(r?r+"/":"")+e;-1!==e.indexOf(".")&&i!=e;){var i=e;e=e.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return e},o.require=function(t,e){if(e||(e=t,t=null),!e.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");e=o.normalizeModule(t,e);var n=o.require.modules[e];if(n)return n.initialized||(n.initialized=!0,n.exports=n.factory().exports),n.exports;if(!o.require.tlns)return console.log("unable to load "+e);var r=function(t,e){for(var n=t,r="";n;){var i=e[n];if("string"==typeof i)return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(!1===i)return"";var o=n.lastIndexOf("/");if(-1===o)break;r=n.substr(o)+r,n=n.slice(0,o)}return t}(e,o.require.tlns);return".js"!=r.slice(-3)&&(r+=".js"),o.require.id=e,o.require.modules[e]={},importScripts(r),o.require(t,e)},o.require.modules={},o.require.tlns={},o.define=function(e,n,r){if(2==arguments.length?(r=n,"string"!=typeof e&&(n=e,e=o.require.id)):1==arguments.length&&(r=e,n=[],e=o.require.id),"function"==typeof r){n.length||(n=["require","exports","module"]);var i=function(t){return o.require(e,t)};o.require.modules[e]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case"require":return i;case"exports":return e.exports;case"module":return e;default:return i(t)}}));return t&&(e.exports=t),e}}}else o.require.modules[e]={exports:r,initialized:!0}},o.define.amd={},require.tlns={},o.initBaseUrls=function(t){for(var e in t)require.tlns[e]=t[e]},o.initSender=function(){var t=o.require("ace/lib/event_emitter").EventEmitter,e=o.require("ace/lib/oop"),n=function(){};return function(){e.implement(this,t),this.callback=function(t,e){postMessage({type:"call",id:e,data:t})},this.emit=function(t,e){postMessage({type:"event",name:t,data:e})}}.call(n.prototype),new n};var r=o.main=null,i=o.sender=null;o.onmessage=function(t){var e=t.data;if(e.event&&i)i._signal(e.event,e.data);else if(e.command)if(r[e.command])r[e.command].apply(r,e.args);else{if(!o[e.command])throw new Error("Unknown command:"+e.command);o[e.command].apply(o,e.args)}else if(e.init){o.initBaseUrls(e.tlns),require("ace/lib/es5-shim"),i=o.sender=o.initSender();var n=require(e.module)[e.classname];r=o.main=new n(i)}}}}(this),ace.define("ace/lib/oop",[],function(t,n,e){"use strict";n.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},n.mixin=function(t,e){for(var n in e)t[n]=e[n];return t},n.implement=function(t,e){n.mixin(t,e)}}),ace.define("ace/lib/lang",[],function(t,e,n){"use strict";e.last=function(t){return t[t.length-1]},e.stringReverse=function(t){return t.split("").reverse().join("")},e.stringRepeat=function(t,e){for(var n="";0<e;)1&e&&(n+=t),(e>>=1)&&(t+=t);return n};var r=/^\s\s*/,i=/\s\s*$/;e.stringTrimLeft=function(t){return t.replace(r,"")},e.stringTrimRight=function(t){return t.replace(i,"")},e.copyObject=function(t){var e={};for(var n in t)e[n]=t[n];return e},e.copyArray=function(t){for(var e=[],n=0,r=t.length;n<r;n++)t[n]&&"object"==typeof t[n]?e[n]=this.copyObject(t[n]):e[n]=t[n];return e},e.deepCopy=function t(e){if("object"!=typeof e||!e)return e;var n;if(Array.isArray(e)){n=[];for(var r=0;r<e.length;r++)n[r]=t(e[r]);return n}if("[object Object]"!==Object.prototype.toString.call(e))return e;for(var r in n={},e)n[r]=t(e[r]);return n},e.arrayToMap=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=1;return e},e.createMap=function(t){var e=Object.create(null);for(var n in t)e[n]=t[n];return e},e.arrayRemove=function(t,e){for(var n=0;n<=t.length;n++)e===t[n]&&t.splice(n,1)},e.escapeRegExp=function(t){return t.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},e.escapeHTML=function(t){return(""+t).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},e.getMatchOffsets=function(t,e){var n=[];return t.replace(e,function(t){n.push({offset:arguments[arguments.length-2],length:t.length})}),n},e.deferredCall=function(t){var e=null,n=function(){e=null,t()},r=function(t){return r.cancel(),e=setTimeout(n,t||0),r};return(r.schedule=r).call=function(){return this.cancel(),t(),r},r.cancel=function(){return clearTimeout(e),e=null,r},r.isPending=function(){return e},r},e.delayedCall=function(t,e){var n=null,r=function(){n=null,t()},i=function(t){null==n&&(n=setTimeout(r,t||e))};return i.delay=function(t){n&&clearTimeout(n),n=setTimeout(r,t||e)},(i.schedule=i).call=function(){this.cancel(),t()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),ace.define("ace/range",[],function(t,e,n){"use strict";var o=function(t,e,n,r){this.start={row:t,column:e},this.end={row:n,column:r}};(function(){this.isEqual=function(t){return this.start.row===t.start.row&&this.end.row===t.end.row&&this.start.column===t.start.column&&this.end.column===t.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(t,e){return 0==this.compare(t,e)},this.compareRange=function(t){var e,n=t.end,r=t.start;return 1==(e=this.compare(n.row,n.column))?1==(e=this.compare(r.row,r.column))?2:0==e?1:0:-1==e?-2:-1==(e=this.compare(r.row,r.column))?-1:1==e?42:0},this.comparePoint=function(t){return this.compare(t.row,t.column)},this.containsRange=function(t){return 0==this.comparePoint(t.start)&&0==this.comparePoint(t.end)},this.intersects=function(t){var e=this.compareRange(t);return-1==e||0==e||1==e},this.isEnd=function(t,e){return this.end.row==t&&this.end.column==e},this.isStart=function(t,e){return this.start.row==t&&this.start.column==e},this.setStart=function(t,e){"object"==typeof t?(this.start.column=t.column,this.start.row=t.row):(this.start.row=t,this.start.column=e)},this.setEnd=function(t,e){"object"==typeof t?(this.end.column=t.column,this.end.row=t.row):(this.end.row=t,this.end.column=e)},this.inside=function(t,e){return 0==this.compare(t,e)&&(!this.isEnd(t,e)&&!this.isStart(t,e))},this.insideStart=function(t,e){return 0==this.compare(t,e)&&!this.isEnd(t,e)},this.insideEnd=function(t,e){return 0==this.compare(t,e)&&!this.isStart(t,e)},this.compare=function(t,e){return this.isMultiLine()||t!==this.start.row?t<this.start.row?-1:t>this.end.row?1:this.start.row===t?e>=this.start.column?0:-1:this.end.row===t?e<=this.end.column?0:1:0:e<this.start.column?-1:e>this.end.column?1:0},this.compareStart=function(t,e){return this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.compareEnd=function(t,e){return this.end.row==t&&this.end.column==e?1:this.compare(t,e)},this.compareInside=function(t,e){return this.end.row==t&&this.end.column==e?1:this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.clipRows=function(t,e){if(this.end.row>e)var n={row:e+1,column:0};else if(this.end.row<t)n={row:t,column:0};if(this.start.row>e)var r={row:e+1,column:0};else if(this.start.row<t)r={row:t,column:0};return o.fromPoints(r||this.start,n||this.end)},this.extend=function(t,e){var n=this.compare(t,e);if(0==n)return this;if(-1==n)var r={row:t,column:e};else var i={row:t,column:e};return o.fromPoints(r||this.start,i||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return o.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new o(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new o(this.start.row,0,this.end.row,0)},this.toScreenRange=function(t){var e=t.documentToScreenPosition(this.start),n=t.documentToScreenPosition(this.end);return new o(e.row,e.column,n.row,n.column)},this.moveBy=function(t,e){this.start.row+=t,this.start.column+=e,this.end.row+=t,this.end.column+=e}}).call(o.prototype),o.fromPoints=function(t,e){return new o(t.row,t.column,e.row,e.column)},o.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},o.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},e.Range=o}),ace.define("ace/apply_delta",[],function(t,e,n){"use strict";e.applyDelta=function(t,e,n){var r=e.start.row,i=e.start.column,o=t[r]||"";switch(e.action){case"insert":if(1===e.lines.length)t[r]=o.substring(0,i)+e.lines[0]+o.substring(i);else{var s=[r,1].concat(e.lines);t.splice.apply(t,s),t[r]=o.substring(0,i)+t[r],t[r+e.lines.length-1]+=o.substring(i)}break;case"remove":var a=e.end.column,c=e.end.row;r===c?t[r]=o.substring(0,i)+o.substring(a):t.splice(r,c-r+1,o.substring(0,i)+t[c].substring(a))}}}),ace.define("ace/lib/event_emitter",[],function(t,e,n){"use strict";var r={},o=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(t,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[t]||[],r=this._defaultHandlers[t];if(n.length||r){"object"==typeof e&&e||(e={}),e.type||(e.type=t),e.stopPropagation||(e.stopPropagation=o),e.preventDefault||(e.preventDefault=s),n=n.slice();for(var i=0;i<n.length&&(n[i](e,this),!e.propagationStopped);i++);return r&&!e.defaultPrevented?r(e,this):void 0}},r._signal=function(t,e){var n=(this._eventRegistry||{})[t];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](e,this)}},r.once=function(e,n){var r=this;if(this.addEventListener(e,function t(){r.removeEventListener(e,t),n.apply(null,arguments)}),!n)return new Promise(function(t){n=t})},r.setDefaultHandler=function(t,e){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[t]){var r=n[t],i=n._disabled_[t];i||(n._disabled_[t]=i=[]),i.push(r);var o=i.indexOf(e);-1!=o&&i.splice(o,1)}n[t]=e},r.removeDefaultHandler=function(t,e){var n=this._defaultHandlers;if(n){var r=n._disabled_[t];if(n[t]==e)r&&this.setDefaultHandler(t,r.pop());else if(r){var i=r.indexOf(e);-1!=i&&r.splice(i,1)}}},r.on=r.addEventListener=function(t,e,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[t];return r||(r=this._eventRegistry[t]=[]),-1==r.indexOf(e)&&r[n?"unshift":"push"](e),e},r.off=r.removeListener=r.removeEventListener=function(t,e){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[t];if(n){var r=n.indexOf(e);-1!==r&&n.splice(r,1)}},r.removeAllListeners=function(t){this._eventRegistry&&(this._eventRegistry[t]=[])},e.EventEmitter=r}),ace.define("ace/anchor",[],function(t,e,n){"use strict";var r=t("./lib/oop"),i=t("./lib/event_emitter").EventEmitter,o=e.Anchor=function(t,e,n){this.$onChange=this.onChange.bind(this),this.attach(t),void 0===n?this.setPosition(e.row,e.column):this.setPosition(e,n)};(function(){function l(t,e,n){var r=n?t.column<=e.column:t.column<e.column;return t.row<e.row||t.row==e.row&&r}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row||t.start.row>this.row)){var e,n,r,i,o,s,a,c,u=(e=t,n={row:this.row,column:this.column},r=this.$insertRight,i="insert"==e.action,o=(i?1:-1)*(e.end.row-e.start.row),s=(i?1:-1)*(e.end.column-e.start.column),a=e.start,c=i?a:e.end,l(n,a,r)?{row:n.row,column:n.column}:l(c,n,!r)?{row:n.row+o,column:n.column+(n.row==c.row?s:0)}:{row:a.row,column:a.column});this.setPosition(u.row,u.column,!0)}},this.setPosition=function(t,e,n){var r;if(r=n?{row:t,column:e}:this.$clipPositionToDocument(t,e),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(t){this.document=t||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(t,e){var n={};return t>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):t<0?(n.row=0,n.column=0):(n.row=t,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,e))),e<0&&(n.column=0),n}}).call(o.prototype)}),ace.define("ace/document",[],function(t,e,n){"use strict";var r=t("./lib/oop"),i=t("./apply_delta").applyDelta,o=t("./lib/event_emitter").EventEmitter,l=t("./range").Range,s=t("./anchor").Anchor,a=function(t){this.$lines=[""],0===t.length?this.$lines=[""]:Array.isArray(t)?this.insertMergedLines({row:0,column:0},t):this.insert({row:0,column:0},t)};(function(){r.implement(this,o),this.setValue=function(t){var e=this.getLength()-1;this.remove(new l(0,0,e,this.getLine(e).length)),this.insert({row:0,column:0},t)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(t,e){return new s(this,t,e)},0==="aaa".split(/a/).length?this.$split=function(t){return t.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(t){return t.split(/\r\n|\r|\n/)},this.$detectNewLine=function(t){var e=t.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[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(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(t){return"\r\n"==t||"\r"==t||"\n"==t},this.getLine=function(t){return this.$lines[t]||""},this.getLines=function(t,e){return this.$lines.slice(t,e+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},this.getLinesForRange=function(t){var e;if(t.start.row===t.end.row)e=[this.getLine(t.start.row).substring(t.start.column,t.end.column)];else{(e=this.getLines(t.start.row,t.end.row))[0]=(e[0]||"").substring(t.start.column);var n=e.length-1;t.end.row-t.start.row==n&&(e[n]=e[n].substring(0,t.end.column))}return e},this.insertLines=function(t,e){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,e)},this.removeLines=function(t,e){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,e)},this.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},this.insert=function(t,e){return this.getLength()<=1&&this.$detectNewLine(e),this.insertMergedLines(t,this.$split(e))},this.insertInLine=function(t,e){var n=this.clippedPos(t.row,t.column),r=this.pos(t.row,t.column+e.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[e]},!0),this.clonePos(r)},this.clippedPos=function(t,e){var n=this.getLength();void 0===t?t=n:t<0?t=0:n<=t&&(t=n-1,e=void 0);var r=this.getLine(t);return null==e&&(e=r.length),{row:t,column:e=Math.min(Math.max(e,0),r.length)}},this.clonePos=function(t){return{row:t.row,column:t.column}},this.pos=function(t,e){return{row:t,column:e}},this.$clipPosition=function(t){var e=this.getLength();return t.row>=e?(t.row=Math.max(0,e-1),t.column=this.getLine(e-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},this.insertFullLines=function(t,e){var n=0;(t=Math.min(Math.max(t,0),this.getLength()))<this.getLength()?(e=e.concat([""]),n=0):(e=[""].concat(e),t--,n=this.$lines[t].length),this.insertMergedLines({row:t,column:n},e)},this.insertMergedLines=function(t,e){var n=this.clippedPos(t.row,t.column),r={row:n.row+e.length-1,column:(1==e.length?n.column:0)+e[e.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:e}),this.clonePos(r)},this.remove=function(t){var e=this.clippedPos(t.start.row,t.start.column),n=this.clippedPos(t.end.row,t.end.column);return this.applyDelta({start:e,end:n,action:"remove",lines:this.getLinesForRange({start:e,end:n})}),this.clonePos(e)},this.removeInLine=function(t,e,n){var r=this.clippedPos(t,e),i=this.clippedPos(t,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(t,e){t=Math.min(Math.max(0,t),this.getLength()-1);var n=(e=Math.min(Math.max(0,e),this.getLength()-1))==this.getLength()-1&&0<t,r=e<this.getLength()-1,i=n?t-1:t,o=n?this.getLine(i).length:0,s=r?e+1:e,a=r?0:this.getLine(s).length,c=new l(i,o,s,a),u=this.$lines.slice(t,e+1);return this.applyDelta({start:c.start,end:c.end,action:"remove",lines:this.getLinesForRange(c)}),u},this.removeNewLine=function(t){t<this.getLength()-1&&0<=t&&this.applyDelta({start:this.pos(t,this.getLine(t).length),end:this.pos(t+1,0),action:"remove",lines:["",""]})},this.replace=function(t,e){return t instanceof l||(t=l.fromPoints(t.start,t.end)),0===e.length&&t.isEmpty()?t.start:e==this.getTextRange(t)?t.end:(this.remove(t),e?this.insert(t.start,e):t.start)},this.applyDeltas=function(t){for(var e=0;e<t.length;e++)this.applyDelta(t[e])},this.revertDeltas=function(t){for(var e=t.length-1;0<=e;e--)this.revertDelta(t[e])},this.applyDelta=function(t,e){var n="insert"==t.action;(n?t.lines.length<=1&&!t.lines[0]:!l.comparePoints(t.start,t.end))||(n&&2e4<t.lines.length?this.$splitAndapplyLargeDelta(t,2e4):(i(this.$lines,t,e),this._signal("change",t)))},this.$splitAndapplyLargeDelta=function(t,e){for(var n=t.lines,r=n.length-e+1,i=t.start.row,o=t.start.column,s=0,a=0;s<r;s=a){a+=e-1;var c=n.slice(s,a);c.push(""),this.applyDelta({start:this.pos(i+s,o),end:this.pos(i+a,o=0),action:t.action,lines:c},!0)}t.lines=n.slice(s),t.start.row=i+s,t.start.column=o,this.applyDelta(t,!0)},this.revertDelta=function(t){this.applyDelta({start:this.clonePos(t.start),end:this.clonePos(t.end),action:"insert"==t.action?"remove":"insert",lines:t.lines.slice()})},this.indexToPosition=function(t,e){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=e||0,o=n.length;i<o;i++)if((t-=n[i].length+r)<0)return{row:i,column:t+n[i].length+r};return{row:o-1,column:t+n[o-1].length+r}},this.positionToIndex=function(t,e){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(t.row,n.length),s=e||0;s<o;++s)i+=n[s].length+r;return i+t.column}}).call(a.prototype),e.Document=a}),ace.define("ace/worker/mirror",[],function(t,e,n){"use strict";t("../range").Range;var r=t("../document").Document,a=t("../lib/lang"),i=e.Mirror=function(t){this.sender=t;var i=this.doc=new r(""),o=this.deferredUpdate=a.delayedCall(this.onUpdate.bind(this)),s=this;t.on("change",function(t){var e=t.data;if(e[0].start)i.applyDeltas(e);else for(var n=0;n<e.length;n+=2){if(Array.isArray(e[n+1]))var r={action:"insert",start:e[n],lines:e[n+1]};else r={action:"remove",start:e[n],end:e[n+1]};i.applyDelta(r,!0)}if(s.$timeout)return o.schedule(s.$timeout);s.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(t){this.$timeout=t},this.setValue=function(t){this.doc.setValue(t),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(t){this.sender.callback(this.doc.getValue(),t)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(i.prototype)}),ace.define("ace/mode/xml/sax",[],function(t,e,n){function r(){}function i(n,t,r,i,o){function s(t){var e=t.slice(1,-1);return e in r?r[e]:"#"===e.charAt(0)?function(t){if(65535<t){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(o.error("entity not found:"+t),t)}function e(t){var e=n.substring(y,t).replace(/&#?\w+;/g,s);g&&a(y),i.characters(e,0,t-y),y=t}function a(t,e){for(;d<=t&&(e=m.exec(n));)p=e.index,d=p+e[0].length,g.lineNumber++;g.columnNumber=t-p+1}for(var c,u,l,h,f,p=0,d=0,m=/.+(?:\r\n?|\n)|.*$/g,g=i.locator,w=[{currentNSMap:t}],v={},y=0;;){if((L=n.indexOf("<",y))<0){if(!n.substr(y).match(/^\s*$/)){var b=i.document,N=b.createTextNode(n.substr(y));b.appendChild(N),i.currentElement=N}return}switch(y<L&&e(L),n.charAt(L+1)){case"/":var E,_=n.indexOf(">",L+3),D=n.substring(L+2,_);if(!(1<w.length)){o.fatalError("end tag name not found for: "+D);break}var x=(E=w.pop()).localNSMap;if(E.tagName!=D&&o.fatalError("end tag name: "+D+" does not match the current start tagName: "+E.tagName),i.endElement(E.uri,E.localName,D),x)for(var T in x)i.endPrefixMapping(T);_++;break;case"?":g&&a(L),_=$(n,L,i);break;case"!":g&&a(L),_=M(n,L,i,o);break;default:try{g&&a(L);var O=new F,S=(_=j(n,L,O,s,o),O.length);if(S&&g){for(var A=R(g,{}),L=0;L<S;L++){var C=O[L];a(C.offset),C.offset=R(g,{})}R(A,g)}!O.closed&&(c=n,u=_,l=O.tagName,f=void 0,null==(f=(h=v)[l])&&(f=h[l]=c.lastIndexOf("</"+l+">")),f<u)&&(O.closed=!0,r.nbsp||o.warning("unclosed xml attribute")),P(O,i,w),"http://www.w3.org/1999/xhtml"!==O.uri||O.closed?_++:_=I(n,_,O.tagName,s,i)}catch(t){o.error("element parse error: "+t),_=-1}}_<0?e(L+1):y=_}}function R(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function j(t,e,n,r,i){for(var o,s=++e,a=l;;){var c=t.charAt(s);switch(c){case"=":if(a===h)o=t.slice(e,s),a=p;else{if(a!==f)throw new Error("attribute equal must after attrName");a=p}break;case"'":case'"':if(a===p){if(e=s+1,!(0<(s=t.indexOf(c,e))))throw new Error("attribute value no end '"+c+"' match");u=t.slice(e,s).replace(/&#?\w+;/g,r),n.add(o,u,e-1),a=g}else{if(a!=d)throw new Error('attribute value must after "="');u=t.slice(e,s).replace(/&#?\w+;/g,r),n.add(o,u,e),i.warning('attribute "'+o+'" missed start quot('+c+")!!"),e=s+1,a=g}break;case"/":switch(a){case l:n.setTagName(t.slice(e,s));case g:case w:case v:a=v,n.closed=!0;case d:case h:case f:break;default:throw new Error("attribute invalid close char('/')")}break;case"":i.error("unexpected end of input");case">":switch(a){case l:n.setTagName(t.slice(e,s));case g:case w:case v:break;case d:case h:"/"===(u=t.slice(e,s)).slice(-1)&&(n.closed=!0,u=u.slice(0,-1));case f:a===f&&(u=o),a==d?(i.warning('attribute "'+u+'" missed quot(")!!'),n.add(o,u.replace(/&#?\w+;/g,r),e)):(i.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),n.add(u,u,e));break;case p:throw new Error("attribute value missed!!")}return s;case"€":c=" ";default:if(c<=" ")switch(a){case l:n.setTagName(t.slice(e,s)),a=w;break;case h:o=t.slice(e,s),a=f;break;case d:var u=t.slice(e,s).replace(/&#?\w+;/g,r);i.warning('attribute "'+u+'" missed quot(")!!'),n.add(o,u,e);case g:a=w}else switch(a){case f:i.warning('attribute "'+o+'" missed value!! "'+o+'" instead!!'),n.add(o,o,e),e=s,a=h;break;case g:i.warning('attribute space is required"'+o+'"!!');case w:a=h,e=s;break;case p:a=d,e=s;break;case v:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function P(t,e,n){for(var r=t.tagName,i=null,o=n[n.length-1].currentNSMap,s=t.length;s--;){var a=t[s],c=a.qName,u=a.value;if(0<(p=c.indexOf(":")))var l=a.prefix=c.slice(0,p),h=c.slice(p+1),f="xmlns"===l&&h;else l=null,f="xmlns"===(h=c)&&"";a.localName=h,!1!==f&&(null==i&&(i={},m(o,o={})),o[f]=i[f]=u,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(f,u))}for(s=t.length;s--;){(l=(a=t[s]).prefix)&&("xml"===l&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(a.uri=o[l]))}var p;0<(p=r.indexOf(":"))?(l=t.prefix=r.slice(0,p),h=t.localName=r.slice(p+1)):(l=null,h=t.localName=r);var d=t.uri=o[l||""];if(e.startElement(d,h,r,t),t.closed){if(e.endElement(d,h,r),i)for(l in i)e.endPrefixMapping(l)}else t.currentNSMap=o,t.localNSMap=i,n.push(t)}function I(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("</"+n+">",e),s=t.substring(e+1,o);if(/[&<]/.test(s))return/^script$/i.test(n)||(s=s.replace(/&#?\w+;/g,r)),i.characters(s,0,s.length),o}return e+1}function m(t,e){for(var n in t)e[n]=t[n]}function M(t,e,n,r){switch(t.charAt(e+2)){case"-":return"-"===t.charAt(e+3)?e<(i=t.indexOf("--\x3e",e+4))?(n.comment(t,e+4,i-e-4),i+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,i-e-9),n.endCDATA(),i+3}var o=function(t,e){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e,i.exec(t);for(;n=i.exec(t);)if(r.push(n),n[1])return r}(t,e),s=o.length;if(1<s&&/!doctype/i.test(o[0][0])){var a=o[1][0],c=3<s&&/^public$/i.test(o[2][0])&&o[3][0],u=4<s&&o[4][0],l=o[s-1];return n.startDTD(a,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),l.index+l[0].length}}return-1}function $(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function F(t){}function o(t,e){return t.__proto__=e,t}var s=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+s.source.slice(1,-1)+"·̀-ͯ\\ux203F-⁀]"),c=new RegExp("^"+s.source+a.source+"*(?::"+s.source+a.source+"*)?$"),l=0,h=1,f=2,p=3,d=4,g=5,w=6,v=7;return r.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),m(e,e={}),i(t,e,n,r,this.errorHandler),r.endDocument()}},F.prototype={setTagName:function(t){if(!c.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},add:function(t,e,n){if(!c.test(t))throw new Error("invalid attribute:"+t);this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getOffset:function(t){return this[t].offset},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},o({},o.prototype)instanceof o||(o=function(t,e){function n(){}for(e in n.prototype=e,n=new n,t)n[e]=t[e];return n}),r}),ace.define("ace/mode/xml/dom",[],function(t,e,n){function o(t,e){for(var n in t)e[n]=t[n]}function r(t,e){var n=function(){},r=t.prototype;if(Object.create){var i=Object.create(e.prototype);r.__proto__=i}r instanceof e||(n.prototype=e.prototype,o(r,n=new n),t.prototype=r=n),r.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),r.constructor=t)}function s(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,Z[t]),this.message=Z[t],Error.captureStackTrace&&Error.captureStackTrace(this,s);return n.code=t,e&&(this.message=this.message+": "+e),n}function f(){}function a(t,e){this._node=t,this._refresh=e,i(this)}function i(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var n=t._refresh(t._node);I(t,"length",n.length),o(n,t),t._inc=e}}function p(){}function c(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function u(t,e,n,r){if(r?e[c(e,r)]=n:e[e.length++]=n,t){var i=(n.ownerElement=t).ownerDocument;i&&(r&&v(i,t,r),s=t,a=n,(o=i)&&o._inc++,"http://www.w3.org/2000/xmlns/"==a.namespaceURI&&(s._nsMap[a.prefix?a.localName:""]=a.value))}var o,s,a}function l(t,e,n){var r=c(e,n);if(!(0<=r))throw new s(J,new Error);for(var i=e.length-1;r<i;)e[r]=e[++r];if(e.length=i,t){var o=t.ownerDocument;o&&(v(o,t,n),n.ownerElement=null)}}function h(t){if(this._features={},t)for(var e in t)this._features=t[e]}function d(){}function m(t){return("<"==t?"&lt;":">"==t&&"&gt;")||"&"==t&&"&amp;"||'"'==t&&"&quot;"||"&#"+t.charCodeAt()+";"}function g(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(g(t,e))return!0}while(t=t.nextSibling)}function w(){}function v(t,e,n,r){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete e._nsMap[n.prefix?n.localName:""]}function y(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{for(var i=e.firstChild,o=0;i;)i=(r[o++]=i).nextSibling;r.length=o}}}function b(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,y(t.ownerDocument,t),e}function N(t,e,n){var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===Y){var i=e.firstChild;if(null==i)return e;var o=e.lastChild}else i=o=e;var s=n?n.previousSibling:t.lastChild;for(i.previousSibling=s,o.nextSibling=n,s?s.nextSibling=i:t.firstChild=i,null==n?t.lastChild=o:n.previousSibling=o;i.parentNode=t,i!==o&&(i=i.nextSibling););return y(t.ownerDocument||t,t),e.nodeType==Y&&(e.firstChild=e.lastChild=null),e}function E(){this._nsMap={}}function _(){}function D(){}function x(){}function T(){}function O(){}function S(){}function A(){}function L(){}function C(){}function R(){}function j(){}function P(){}function I(t,e,n){t[e]=n}var M="http://www.w3.org/1999/xhtml",$={},F=$.ELEMENT_NODE=1,k=$.ATTRIBUTE_NODE=2,U=$.TEXT_NODE=3,q=$.CDATA_SECTION_NODE=4,B=$.ENTITY_REFERENCE_NODE=5,V=$.ENTITY_NODE=6,z=$.PROCESSING_INSTRUCTION_NODE=7,H=$.COMMENT_NODE=8,G=$.DOCUMENT_NODE=9,X=$.DOCUMENT_TYPE_NODE=10,Y=$.DOCUMENT_FRAGMENT_NODE=11,W=$.NOTATION_NODE=12,Q={},Z={},J=(Q.INDEX_SIZE_ERR=(Z[1]="Index size error",1),Q.DOMSTRING_SIZE_ERR=(Z[2]="DOMString size error",2),Q.HIERARCHY_REQUEST_ERR=(Z[3]="Hierarchy request error",3),Q.WRONG_DOCUMENT_ERR=(Z[4]="Wrong document",4),Q.INVALID_CHARACTER_ERR=(Z[5]="Invalid character",5),Q.NO_DATA_ALLOWED_ERR=(Z[6]="No data allowed",6),Q.NO_MODIFICATION_ALLOWED_ERR=(Z[7]="No modification allowed",7),Q.NOT_FOUND_ERR=(Z[8]="Not found",8)),K=(Q.NOT_SUPPORTED_ERR=(Z[9]="Not supported",9),Q.INUSE_ATTRIBUTE_ERR=(Z[10]="Attribute in use",10));Q.INVALID_STATE_ERR=(Z[11]="Invalid state",11),Q.SYNTAX_ERR=(Z[12]="Syntax error",12),Q.INVALID_MODIFICATION_ERR=(Z[13]="Invalid modification",13),Q.NAMESPACE_ERR=(Z[14]="Invalid namespace",14),Q.INVALID_ACCESS_ERR=(Z[15]="Invalid access",15);s.prototype=Error.prototype,o(Q,s),f.prototype={length:0,item:function(t){return this[t]||null}},a.prototype.item=function(t){return i(this),this[t]},r(a,f),p.prototype={length:0,item:f.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new s(K);var n=this.getNamedItem(t.nodeName);return u(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e,n=t.ownerElement;if(n&&n!=this._ownerElement)throw new s(K);return e=this.getNamedItemNS(t.namespaceURI,t.localName),u(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return l(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return l(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var r=this[n];if(r.localName==e&&r.namespaceURI==t)return r}return null}},h.prototype={hasFeature:function(t,e){var n=this._features[t.toLowerCase()];return!(!n||e&&!(e in n))},createDocument:function(t,e,n){var r=new w;if(r.implementation=this,r.childNodes=new f,(r.doctype=n)&&r.appendChild(n),e){var i=r.createElementNS(t,e);r.appendChild(i)}return r},createDocumentType:function(t,e,n){var r=new S;return r.name=t,r.nodeName=t,r.publicId=e,r.systemId=n,r}},d.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return N(this,t,e)},replaceChild:function(t,e){this.insertBefore(t,e),e&&this.removeChild(e)},removeChild:function(t){return b(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return function t(e,n,r){var i=new n.constructor;for(var o in n){var s=n[o];"object"!=typeof s&&s!=i[o]&&(i[o]=s)}switch(n.childNodes&&(i.childNodes=new f),i.ownerDocument=e,i.nodeType){case F:var a=n.attributes,c=i.attributes=new p,u=a.length;c._ownerElement=i;for(var l=0;l<u;l++)i.setAttributeNode(t(e,a.item(l),!0));break;case k:r=!0}if(r)for(var h=n.firstChild;h;)i.appendChild(t(e,h,r)),h=h.nextSibling;return i}(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==U&&t.nodeType==U?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return 0<this.attributes.length},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n)for(var r in n)if(n[r]==t)return r;e=2==e.nodeType?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&t in n)return n[t];e=2==e.nodeType?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},o($,d),o($,d.prototype),w.prototype={nodeName:"#document",nodeType:G,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==Y){for(var n=t.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,e),n=r}return t}return null==this.documentElement&&1==t.nodeType&&(this.documentElement=t),N(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),b(this,t)},importNode:function(t,e){return function t(e,n,r){var i;switch(n.nodeType){case F:(i=n.cloneNode(!1)).ownerDocument=e;case Y:break;case k:r=!0}if(i||(i=n.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,r)for(var o=n.firstChild;o;)i.appendChild(t(e,o,r)),o=o.nextSibling;return i}(this,t,e)},getElementById:function(e){var n=null;return g(this.documentElement,function(t){if(1==t.nodeType&&t.getAttribute("id")==e)return n=t,!0}),n},createElement:function(t){var e=new E;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new f,(e.attributes=new p)._ownerElement=e},createDocumentFragment:function(){var t=new R;return t.ownerDocument=this,t.childNodes=new f,t},createTextNode:function(t){var e=new x;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new T;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new O;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new j;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new _;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new C;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new E,r=e.split(":"),i=n.attributes=new p;return n.childNodes=new f,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,i._ownerElement=n},createAttributeNS:function(t,e){var n=new _,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}},r(w,d),w.prototype.getElementsByTagName=(E.prototype={nodeType:F,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Y?this.insertBefore(t,null):function(t,e){var n=e.parentNode;if(n){var r=t.lastChild;n.removeChild(e),r=t.lastChild}return r=t.lastChild,e.parentNode=t,e.previousSibling=r,e.nextSibling=null,r?r.nextSibling=e:t.firstChild=e,t.lastChild=e,y(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(r){return new a(this,function(e){var n=[];return g(e,function(t){t!==e&&t.nodeType==F&&("*"===r||t.tagName==r)&&n.push(t)}),n})},getElementsByTagNameNS:function(r,i){return new a(this,function(e){var n=[];return g(e,function(t){t!==e&&t.nodeType===F&&("*"===r||t.namespaceURI===r)&&("*"===i||t.localName==i)&&n.push(t)}),n})}}).getElementsByTagName,w.prototype.getElementsByTagNameNS=E.prototype.getElementsByTagNameNS,r(E,d),_.prototype.nodeType=k,r(_,d),D.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(Z[3])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){n=this.data.substring(0,t)+n+this.data.substring(t+e),this.nodeValue=this.data=n,this.length=n.length}},r(D,d),x.prototype={nodeName:"#text",nodeType:U,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(x,D),T.prototype={nodeName:"#comment",nodeType:H},r(T,D),O.prototype={nodeName:"#cdata-section",nodeType:q},r(O,D),S.prototype.nodeType=X,r(S,d),A.prototype.nodeType=W,r(A,d),L.prototype.nodeType=V,r(L,d),C.prototype.nodeType=B,r(C,d),R.prototype.nodeName="#document-fragment",R.prototype.nodeType=Y,r(R,d),j.prototype.nodeType=z,r(j,d),P.prototype.serializeToString=function(t){var e=[];return function t(e,n){switch(e.nodeType){case F:var r=e.attributes,i=r.length,o=e.firstChild,s=e.tagName,a=M===e.namespaceURI;n.push("<",s);for(var c=0;c<i;c++)t(r.item(c),n);if(o||a&&!/^(?:meta|link|img|br|hr|input|button)$/i.test(s)){if(n.push(">"),a&&/^script$/i.test(s))o&&n.push(o.data);else for(;o;)t(o,n),o=o.nextSibling;n.push("</",s,">")}else n.push("/>");return;case G:case Y:for(o=e.firstChild;o;)t(o,n),o=o.nextSibling;return;case k:return n.push(" ",e.name,'="',e.value.replace(/[<&"]/g,m),'"');case U:return n.push(e.data.replace(/[<&]/g,m));case q:return n.push("<![CDATA[",e.data,"]]>");case H:return n.push("\x3c!--",e.data,"--\x3e");case X:var u=e.publicId,l=e.systemId;if(n.push("<!DOCTYPE ",e.name),u)n.push(' PUBLIC "',u),l&&"."!=l&&n.push('" "',l),n.push('">');else if(l&&"."!=l)n.push(' SYSTEM "',l,'">');else{var h=e.internalSubset;h&&n.push(" [",h,"]"),n.push(">")}return;case z:return n.push("<?",e.target," ",e.data,"?>");case B:return n.push("&",e.nodeName,";");default:n.push("??",e.nodeName)}}(t,e),e.join("")},d.prototype.toString=function(){return P.prototype.serializeToString(this)};try{Object.defineProperty&&(Object.defineProperty(a.prototype,"length",{get:function(){return i(this),this.$$length}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case 1:case 11:var n=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case 1:case 11:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=value,this.nodeValue=t}}}),I=function(t,e,n){t["$$"+e]=n})}catch(t){}return h}),ace.define("ace/mode/xml/dom-parser",[],function(t,e,n){"use strict";function r(t){this.options=t||{locator:{}}}function u(){this.cdata=!1}function l(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function h(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function i(t,e,n){return"string"==typeof t?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}function f(t,e){t.currentElement?t.currentElement.appendChild(e):t.document.appendChild(e)}var p=t("./sax"),o=t("./dom");return r.prototype.parseFromString=function(t,e){var n=this.options,r=new p,i=n.domBuilder||new u,o=n.errorHandler,s=n.locator,a=n.xmlns||{},c={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return s&&i.setDocumentLocator(s),r.errorHandler=function(r,t,i){function e(e){var n=r[e];if(!n)if(s)n=2==r.length?function(t){r(e,t)}:r;else for(var t=arguments.length;--t&&!(n=r[arguments[t]]););o[e]=n&&function(t){n(t+h(i),t,i)}||function(){}}if(!r){if(t instanceof u)return t;r=t}var o={},s=r instanceof Function;return i=i||{},e("warning","warn"),e("error","warn","warning"),e("fatalError","warn","warning","error"),o}(o,i,s),r.domBuilder=n.domBuilder||i,/\/x?html?$/.test(e)&&(c.nbsp=" ",c.copy="©",a[""]="http://www.w3.org/1999/xhtml"),t?r.parse(t,a,c):r.errorHandler.error("invalid document source"),i.document},u.prototype={startDocument:function(){this.document=(new o).createDocument(null,null,null),this.locator&&(this.document.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var i=this.document,o=i.createElementNS(t,n||e),s=r.length;f(this,o),this.currentElement=o,this.locator&&l(this.locator,o);for(var a=0;a<s;a++){t=r.getURI(a);var c=r.getValue(a),u=(n=r.getQName(a),i.createAttributeNS(t,n));u.getOffset&&l(u.getOffset(1),u),u.value=u.nodeValue=c,o.setAttributeNode(u)}},endElement:function(t,e,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.document.createProcessingInstruction(t,e);this.locator&&l(this.locator,n),f(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=i.apply(this,arguments),this.currentElement&&t){if(this.cdata){var r=this.document.createCDATASection(t);this.currentElement.appendChild(r)}else{r=this.document.createTextNode(t);this.currentElement.appendChild(r)}this.locator&&l(this.locator,r)}},skippedEntity:function(t){},endDocument:function(){this.document.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=i.apply(this,arguments);var r=this.document.createComment(t);this.locator&&l(this.locator,r),f(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var r=this.document.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(t,e,n);this.locator&&l(this.locator,i),f(this,i)}},warning:function(t){console.warn(t,h(this.locator))},error:function(t){console.error(t,h(this.locator))},fatalError:function(t){throw console.error(t,h(this.locator)),t}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){u.prototype[t]=function(){return null}}),{DOMParser:r}}),ace.define("ace/mode/xml_worker",[],function(t,e,n){"use strict";var r=t("../lib/oop"),i=(t("../lib/lang"),t("../worker/mirror").Mirror),o=t("./xml/dom-parser").DOMParser,s=e.Worker=function(t){i.call(this,t),this.setTimeout(400),this.context=null};r.inherits(s,i),function(){this.setOptions=function(t){this.context=t.context},this.onUpdate=function(){var t=this.doc.getValue();if(t){var e=new o,r=[];e.options.errorHandler={fatalError:function(t,e,n){r.push({row:n.lineNumber,column:n.columnNumber,text:e,type:"error"})},error:function(t,e,n){r.push({row:n.lineNumber,column:n.columnNumber,text:e,type:"error"})},warning:function(t,e,n){r.push({row:n.lineNumber,column:n.columnNumber,text:e,type:"warning"})}},e.parseFromString(t),this.sender.emit("error",r)}}}.call(s.prototype)}),ace.define("ace/lib/es5-shim",[],function(t,e,n){function o(){}function r(t){try{return Object.defineProperty(t,"sentinel",{}),"sentinel"in t}catch(t){}}function i(t){return(t=+t)!=t?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(0<t||-1)*Math.floor(Math.abs(t))),t}Function.prototype.bind||(Function.prototype.bind=function(e){var n=this;if("function"!=typeof n)throw new TypeError("Function.prototype.bind called on incompatible "+n);var r=d.call(arguments,1),i=function(){if(this instanceof i){var t=n.apply(this,r.concat(d.call(arguments)));return Object(t)===t?t:this}return n.apply(e,r.concat(d.call(arguments)))};return n.prototype&&(o.prototype=n.prototype,i.prototype=new o,o.prototype=null),i});var s,a,c,u,l,h=Function.prototype.call,f=Array.prototype,p=Object.prototype,d=f.slice,m=h.bind(p.toString),g=h.bind(p.hasOwnProperty);if((l=g(p,"__defineGetter__"))&&(s=h.bind(p.__defineGetter__),a=h.bind(p.__defineSetter__),c=h.bind(p.__lookupGetter__),u=h.bind(p.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function t(t){var e=new Array(t+2);return e[0]=e[1]=0,e}var e,n=[];if(n.splice.apply(n,t(20)),n.splice.apply(n,t(26)),e=n.length,n.splice(5,0,"XXX"),n.length,e+1==n.length)return!0}()){var w=Array.prototype.splice;Array.prototype.splice=function(t,e){return arguments.length?w.apply(this,[void 0===t?0:t,void 0===e?this.length-t:e].concat(d.call(arguments,2))):[]}}else Array.prototype.splice=function(t,e){var n=this.length;0<t?n<t&&(t=n):null==t?t=0:t<0&&(t=Math.max(n+t,0)),t+e<n||(e=n-t);var r=this.slice(t,t+e),i=d.call(arguments,2),o=i.length;if(t===n)o&&this.push.apply(this,i);else{var s=Math.min(e,n-t),a=t+s,c=a+o-s,u=n-a,l=n-s;if(c<a)for(var h=0;h<u;++h)this[c+h]=this[a+h];else if(a<c)for(h=u;h--;)this[c+h]=this[a+h];if(o&&t===l)this.length=l,this.push.apply(this,i);else for(this.length=l+o,h=0;h<o;++h)this[t+h]=i[h]}return r};Array.isArray||(Array.isArray=function(t){return"[object Array]"==m(t)});var v,y,b=Object("a"),N="a"!=b[0]||!(0 in b);if(Array.prototype.forEach||(Array.prototype.forEach=function(t){var e=R(this),n=N&&"[object String]"==m(this)?this.split(""):e,r=arguments[1],i=-1,o=n.length>>>0;if("[object Function]"!=m(t))throw new TypeError;for(;++i<o;)i in n&&t.call(r,n[i],i,e)}),Array.prototype.map||(Array.prototype.map=function(t){var e=R(this),n=N&&"[object String]"==m(this)?this.split(""):e,r=n.length>>>0,i=Array(r),o=arguments[1];if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");for(var s=0;s<r;s++)s in n&&(i[s]=t.call(o,n[s],s,e));return i}),Array.prototype.filter||(Array.prototype.filter=function(t){var e,n=R(this),r=N&&"[object String]"==m(this)?this.split(""):n,i=r.length>>>0,o=[],s=arguments[1];if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");for(var a=0;a<i;a++)a in r&&(e=r[a],t.call(s,e,a,n)&&o.push(e));return o}),Array.prototype.every||(Array.prototype.every=function(t){var e=R(this),n=N&&"[object String]"==m(this)?this.split(""):e,r=n.length>>>0,i=arguments[1];if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");for(var o=0;o<r;o++)if(o in n&&!t.call(i,n[o],o,e))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var e=R(this),n=N&&"[object String]"==m(this)?this.split(""):e,r=n.length>>>0,i=arguments[1];if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");for(var o=0;o<r;o++)if(o in n&&t.call(i,n[o],o,e))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var e=R(this),n=N&&"[object String]"==m(this)?this.split(""):e,r=n.length>>>0;if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var i,o=0;if(2<=arguments.length)i=arguments[1];else for(;;){if(o in n){i=n[o++];break}if(++o>=r)throw new TypeError("reduce of empty array with no initial value")}for(;o<r;o++)o in n&&(i=t.call(void 0,i,n[o],o,e));return i}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var e=R(this),n=N&&"[object String]"==m(this)?this.split(""):e,r=n.length>>>0;if("[object Function]"!=m(t))throw new TypeError(t+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,o=r-1;if(2<=arguments.length)i=arguments[1];else for(;;){if(o in n){i=n[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}for(;o in this&&(i=t.call(void 0,i,n[o],o,e)),o--;);return i}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(t){var e=N&&"[object String]"==m(this)?this.split(""):R(this),n=e.length>>>0;if(!n)return-1;var r=0;for(1<arguments.length&&(r=i(arguments[1])),r=0<=r?r:Math.max(0,n+r);r<n;r++)if(r in e&&e[r]===t)return r;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(t){var e=N&&"[object String]"==m(this)?this.split(""):R(this),n=e.length>>>0;if(!n)return-1;var r=n-1;for(1<arguments.length&&(r=Math.min(r,i(arguments[1]))),r=0<=r?r:n-Math.abs(r);0<=r;r--)if(r in e&&t===e[r])return r;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:p)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(t,e){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+t);if(g(t,e)){var n;if(n={enumerable:!0,configurable:!0},l){var r=t.__proto__;t.__proto__=p;var i=c(t,e),o=u(t,e);if(t.__proto__=r,i||o)return i&&(n.get=i),o&&(n.set=o),n}return n.value=t[e],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)}),Object.create)||(v=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var t={};for(var e in t)t[e]=null;return t.constructor=t.hasOwnProperty=t.propertyIsEnumerable=t.isPrototypeOf=t.toLocaleString=t.toString=t.valueOf=t.__proto__=null,t},Object.create=function(t,e){var n;if(null===t)n=v();else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var r=function(){};r.prototype=t,(n=new r).__proto__=t}return void 0!==e&&Object.defineProperties(n,e),n});if(Object.defineProperty){var E=r({}),_="undefined"==typeof document||r(document.createElement("div"));if(!E||!_)var D=Object.defineProperty}if(!Object.defineProperty||D){Object.defineProperty=function(t,e,n){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.defineProperty called on non-object: "+t);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(D)try{return D.call(Object,t,e,n)}catch(t){}if(g(n,"value"))if(l&&(c(t,e)||u(t,e))){var r=t.__proto__;t.__proto__=p,delete t[e],t[e]=n.value,t.__proto__=r}else t[e]=n.value;else{if(!l)throw new TypeError("getters & setters can not be defined on this javascript engine");g(n,"get")&&s(t,e,n.get),g(n,"set")&&a(t,e,n.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,e){for(var n in e)g(e,n)&&Object.defineProperty(t,n,e[n]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(t){Object.freeze=(y=Object.freeze,function(t){return"function"==typeof t?t:y(t)})}if(Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;for(var e="";g(t,e);)e+="?";t[e]=!0;var n=g(t,e);return delete t[e],n}),!Object.keys){var x=!0,T=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],O=T.length;for(var S in{toString:null})x=!1;Object.keys=function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.keys called on a non-object");var e=[];for(var n in t)g(t,n)&&e.push(n);if(x)for(var r=0,i=O;r<i;r++){var o=T[r];g(t,o)&&e.push(o)}return e}}Date.now||(Date.now=function(){return(new Date).getTime()});var A="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff";if(!String.prototype.trim||A.trim()){A="["+A+"]";var L=new RegExp("^"+A+A+"*"),C=new RegExp(A+A+"*$");String.prototype.trim=function(){return String(this).replace(L,"").replace(C,"")}}var R=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return Object(t)}});