
ide.453e7eeb3bf9d4d47f7f62405fb6224a.js Maven / Gradle / Ivy
!function(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(e,n){if(n||(n=e,e=null),!n.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");n=t.normalizeModule(e,n);var r=t.require.modules[n];if(r)return r.initialized||(r.initialized=!0,r.exports=r.factory().exports),r.exports;if(!t.require.tlns)return console.log("unable to load "+n);var i=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}(n,t.require.tlns);return".js"!=i.slice(-3)&&(i+=".js"),t.require.id=n,t.require.modules[n]={},importScripts(i),t.require(e,n)},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 e=t.main=null,n=t.sender=null;t.onmessage=function(r){var i=r.data;if(i.event&&n)n._signal(i.event,i.data);else if(i.command)if(e[i.command])e[i.command].apply(e,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),n=t.sender=t.initSender();var o=require(i.module)[i.classname];e=t.main=new o(n)}}}}(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 ["+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?tthis.end.row?1:this.start.row===t?e>=this.start.column?0:-1:this.end.row===t?e<=this.end.column?0:1:0:ethis.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.rowe)var i={row:e+1,column:0};else if(this.start.rowthis.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.off("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,u=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 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()))0,r=e=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){return t instanceof s||(t=s.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=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.$safeApplyDelta=function(t){var e=this.$lines.length;("remove"==t.action&&t.start.row65535){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"))):(i.error("entity not found:"+t),t)}function m(e){var n=t.substring(E,e).replace(/?\w+;/g,l);N&&p(E),r.characters(n,0,e-E),E=e}function p(e,n){for(;e>=w&&(n=v.exec(t));)g=n.index,w=g+n[0].length,N.lineNumber++;N.columnNumber=e-g+1}for(var g=0,w=0,v=/.+(?:\r\n?|\n)|.*$/g,N=r.locator,y=[{currentNSMap:e}],b={},E=0;;){if((M=t.indexOf("<",E))<0){if(!t.substr(E).match(/^\s*$/)){var D=r.document,x=D.createTextNode(t.substr(E));D.appendChild(x),r.currentElement=x}return}switch(M>E&&m(M),t.charAt(M+1)){case"/":var _,T=t.indexOf(">",M+3),S=t.substring(M+2,T);if(!(y.length>1)){i.fatalError("end tag name not found for: "+S);break}var C=(_=y.pop()).localNSMap;if(_.tagName!=S&&i.fatalError("end tag name: "+S+" does not match the current start tagName: "+_.tagName),r.endElement(_.uri,_.localName,S),C)for(var A in C)r.endPrefixMapping(A);T++;break;case"?":N&&p(M),T=f(t,M,r);break;case"!":N&&p(M),T=h(t,M,r,i);break;default:try{N&&p(M);var L=new d,R=(T=s(t,M,L,l,i),L.length);if(R&&N){for(var I=o(N,{}),M=0;M0))throw new Error("attribute value no end '"+u+"' match");c=t.slice(e,s).replace(/?\w+;/g,r),n.add(o,c,e-1),a=D}else{if(a!=E)throw new Error('attribute value must after "="');c=t.slice(e,s).replace(/?\w+;/g,r),n.add(o,c,e),i.warning('attribute "'+o+'" missed start quot('+u+")!!"),e=s+1,a=D}break;case"/":switch(a){case v:n.setTagName(t.slice(e,s));case D:case x:case _:a=_,n.closed=!0;case E:case N:case y:break;default:throw new Error("attribute invalid close char('/')")}break;case"":i.error("unexpected end of input");case">":switch(a){case v:n.setTagName(t.slice(e,s));case D:case x:case _:break;case E:case N:"/"===(c=t.slice(e,s)).slice(-1)&&(n.closed=!0,c=c.slice(0,-1));case y:a===y&&(c=o),a==E?(i.warning('attribute "'+c+'" missed quot(")!!'),n.add(o,c.replace(/?\w+;/g,r),e)):(i.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),n.add(c,c,e));break;case b:throw new Error("attribute value missed!!")}return s;case"":u=" ";default:if(u<=" ")switch(a){case v:n.setTagName(t.slice(e,s)),a=x;break;case N:o=t.slice(e,s),a=y;break;case E:var c=t.slice(e,s).replace(/?\w+;/g,r);i.warning('attribute "'+c+'" missed quot(")!!'),n.add(o,c,e);case D:a=x}else switch(a){case y:i.warning('attribute "'+o+'" missed value!! "'+o+'" instead!!'),n.add(o,o,e),e=s,a=N;break;case D:i.warning('attribute space is required"'+o+'"!!');case x:a=N,e=s;break;case b:a=E,e=s;break;case _: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],u=a.qName,c=a.value;if((m=u.indexOf(":"))>0)var h=a.prefix=u.slice(0,m),f=u.slice(m+1),d="xmlns"===h&&f;else f=u,h=null,d="xmlns"===u&&"";a.localName=f,!1!==d&&(null==i&&(i={},l(o,o={})),o[d]=i[d]=c,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(d,c))}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 m;(m=r.indexOf(":"))>0?(h=t.prefix=r.slice(0,m),f=t.localName=r.slice(m+1)):(h=null,f=t.localName=r);var p=t.uri=o[h||""];if(e.startElement(p,f,r,t),t.closed){if(e.endElement(p,f,r),i)for(h in i)e.endPrefixMapping(h)}else t.currentNSMap=o,t.localNSMap=i,n.push(t)}function u(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 c(t,e,n,r){var i=r[n];return null==i&&(i=r[n]=t.lastIndexOf(""+n+">")),ie?(n.comment(t,e+4,i-e-4),i+3):(r.error("Unclosed comment"),-1):-1;default:var i;if("CDATA["==t.substr(e+3,6))return(i=t.indexOf("]]>",e+9))>e?(n.startCDATA(),n.characters(t,e+9,i-e-9),n.endCDATA(),i+3):(r.error("Unclosed CDATA"),-1);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(s>1&&/!doctype/i.test(o[0][0])){var a=o[1][0],u=s>3&&/^public$/i.test(o[2][0])&&o[3][0],c=s>4&&o[4][0],l=o[s-1];return n.startDTD(a,u&&u.replace(/^(['"])(.*?)\1$/,"$2"),c&&c.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 d(t){}function m(t,e){return t.__proto__=e,t}var p=/[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]/,g=new RegExp("[\\-\\.0-9"+p.source.slice(1,-1)+"·̀-ͯ\\ux203F-⁀]"),w=new RegExp("^"+p.source+g.source+"*(?::"+p.source+g.source+"*)?$"),v=0,N=1,y=2,b=3,E=4,D=5,x=6,_=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()}},d.prototype={setTagName:function(t){if(!w.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},add:function(t,e,n){if(!w.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}},m({},m.prototype)instanceof m||(m=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 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,r(i,n=new 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,et[t]),this.message=et[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,u(this)}function u(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 c(){}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&&v(i,t,r),function(t,e,n){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(e._nsMap[n.prefix?n.localName:""]=n.value)}(i,t,n))}}function f(t,e,n){var r=l(e,n);if(!(r>=0))throw new o(nt,new Error);for(var i=e.length-1;r"==t&&">")||"&"==t&&"&"||'"'==t&&"""||""+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 N(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 y(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,N(t.ownerDocument,t),e}function b(t,e,n){var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===J){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 N(t.ownerDocument||t,t),e.nodeType==J&&(e.firstChild=e.lastChild=null),e}function E(){this._nsMap={}}function D(){}function x(){}function _(){}function T(){}function S(){}function C(){}function A(){}function L(){}function R(){}function I(){}function M(){}function O(){}function P(t,e){switch(t.nodeType){case B:var n=t.attributes,r=n.length,i=t.firstChild,o=t.tagName,s=q===t.namespaceURI;e.push("<",o);for(var a=0;a"),s&&/^script$/i.test(o))i&&e.push(i.data);else for(;i;)P(i,e),i=i.nextSibling;e.push("",o,">")}else e.push("/>");return;case Q:case J:for(i=t.firstChild;i;)P(i,e),i=i.nextSibling;return;case V:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,p),'"');case H:return e.push(t.data.replace(/[<&]/g,p));case z:return e.push("");case X:return e.push("\x3c!--",t.data,"--\x3e");case Z:var u=t.publicId,c=t.systemId;if(e.push("');else if(c&&"."!=c)e.push(' SYSTEM "',c,'">');else{var l=t.internalSubset;l&&e.push(" [",l,"]"),e.push(">")}return;case G:return e.push("",t.target," ",t.data,"?>");case Y:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function $(t,e,n){var r;switch(e.nodeType){case B:(r=e.cloneNode(!1)).ownerDocument=t;case J:break;case V:n=!0}if(r||(r=e.cloneNode(!1)),r.ownerDocument=t,r.parentNode=null,n)for(var i=e.firstChild;i;)r.appendChild($(t,i,n)),i=i.nextSibling;return r}function F(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 B:var a=e.attributes,u=r.attributes=new c,l=a.length;u._ownerElement=r;for(var h=0;h0},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(j,m),r(j,m.prototype),w.prototype={nodeName:"#document",nodeType:Q,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==J){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),b(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),y(this,t)},importNode:function(t,e){return $(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 E;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new s,(e.attributes=new c)._ownerElement=e,e},createDocumentFragment:function(){var t=new I;return t.ownerDocument=this,t.childNodes=new s,t},createTextNode:function(t){var e=new _;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 S;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new M;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new D;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new R;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new E,r=e.split(":"),i=n.attributes=new c;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 D,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,m),E.prototype={nodeType:B,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===J?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,N(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(t){return new a(this,(function(e){var n=[];return g(e,(function(r){r!==e&&r.nodeType==B&&("*"===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===B&&("*"===t||i.namespaceURI===t)&&("*"===e||i.localName==e)&&r.push(i)})),r}))}},w.prototype.getElementsByTagName=E.prototype.getElementsByTagName,w.prototype.getElementsByTagNameNS=E.prototype.getElementsByTagNameNS,i(E,m),D.prototype.nodeType=V,i(D,m),x.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(et[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(x,m),_.prototype={nodeName:"#text",nodeType:H,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(_,x),T.prototype={nodeName:"#comment",nodeType:X},i(T,x),S.prototype={nodeName:"#cdata-section",nodeType:z},i(S,x),C.prototype.nodeType=Z,i(C,m),A.prototype.nodeType=K,i(A,m),L.prototype.nodeType=W,i(L,m),R.prototype.nodeType=Y,i(R,m),I.prototype.nodeName="#document-fragment",I.prototype.nodeType=J,i(I,m),M.prototype.nodeType=G,i(M,m),O.prototype.serializeToString=function(t){var e=[];return P(t,e),e.join("")},m.prototype.toString=function(){return O.prototype.serializeToString(this)};try{Object.defineProperty&&(Object.defineProperty(a.prototype,"length",{get:function(){return u(this),this.$$length}}),Object.defineProperty(m.prototype,"textContent",{get:function(){return k(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 d})),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 u(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 c(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,u=n.locator,c=n.xmlns||{},h={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return u&&s.setDocumentLocator(u),r.errorHandler=i(a,s,u),r.domBuilder=n.domBuilder||s,/\/x?html?$/.test(e)&&(h.nbsp=" ",h.copy="©",c[""]="http://www.w3.org/1999/xhtml"),t?r.parse(t,c,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;c(this,o),this.currentElement=o,this.locator&&s(this.locator,o);for(var u=0;u
© 2015 - 2025 Weber Informatics LLC | Privacy Policy