All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.11dc77ef2ea3a04834945a52f7de2072.js Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
!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){var n=t,r="";for(;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(require,exports,t){"use strict";exports.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(t,e){for(var n in e)t[n]=e[n];return t},exports.implement=function(t,e){exports.mixin(t,e)}})),ace.define("ace/lib/lang",[],(function(require,exports,t){"use strict";exports.last=function(t){return t[t.length-1]},exports.stringReverse=function(t){return t.split("").reverse().join("")},exports.stringRepeat=function(t,e){for(var n="";e>0;)1&e&&(n+=t),(e>>=1)&&(t+=t);return n};var e=/^\s\s*/,n=/\s\s*$/;exports.stringTrimLeft=function(t){return t.replace(e,"")},exports.stringTrimRight=function(t){return t.replace(n,"")},exports.copyObject=function(t){var e={};for(var n in t)e[n]=t[n];return e},exports.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,n){if(this.end.row>n)var r={row:n+1,column:0};else if(this.end.rown)var i={row:n+1,column:0};else if(this.start.rowthis.row)){var n=function(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,u=i?a:e.end;if(t(n,a,r))return{row:n.row,column:n.column};if(t(u,n,!r))return{row:n.row+o,column:n.column+(n.row==u.row?s:0)};return{row:a.row,column:a.column}}(e,{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(r.prototype)})),ace.define("ace/document",[],(function(require,exports,t){"use strict";var e=require("./lib/oop"),n=require("./apply_delta").applyDelta,r=require("./lib/event_emitter").EventEmitter,i=require("./range").Range,o=require("./anchor").Anchor,s=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(){e.implement(this,r),this.setValue=function(t){var e=this.getLength()-1;this.remove(new i(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 o(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 i||(t=i.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 r="insert"==t.action;(r?t.lines.length<=1&&!t.lines[0]:!i.comparePoints(t.start,t.end))||(r&&t.lines.length>2e4?this.$splitAndapplyLargeDelta(t,2e4):(n(this.$lines,t,e),this._signal("change",t)))},this.$safeApplyDelta=function(t){var e=this.$lines.length;("remove"==t.action&&t.start.row0))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=5}else{if(4!=a)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=5}break;case"/":switch(a){case 0:n.setTagName(t.slice(e,s));case 5:case 6:case 7:a=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":i.error("unexpected end of input");case">":switch(a){case 0:n.setTagName(t.slice(e,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(c=t.slice(e,s)).slice(-1)&&(n.closed=!0,c=c.slice(0,-1));case 2:2===a&&(c=o),4==a?(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 3:throw new Error("attribute value missed!!")}return s;case"€":u=" ";default:if(u<=" ")switch(a){case 0:n.setTagName(t.slice(e,s)),a=6;break;case 1:o=t.slice(e,s),a=2;break;case 4:var c=t.slice(e,s).replace(/&#?\w+;/g,r);i.warning('attribute "'+c+'" missed quot(")!!'),n.add(o,c,e);case 5:a=6}else switch(a){case 2:i.warning('attribute "'+o+'" missed value!! "'+o+'" instead!!'),n.add(o,o,e),e=s,a=1;break;case 5:i.warning('attribute space is required"'+o+'"!!');case 6:a=1,e=s;break;case 3:a=4,e=s;break;case 7: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("",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("")),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}return i.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),l(e,e={}),function(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 m(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 p(e){var n=t.substring(D,e).replace(/&#?\w+;/g,m);y&&g(D),r.characters(n,0,e-D),D=e}function g(e,n){for(;e>=v&&(n=N.exec(t));)w=n.index,v=w+n[0].length,y.lineNumber++;y.columnNumber=e-w+1}var w=0,v=0,N=/.+(?:\r\n?|\n)|.*$/g,y=r.locator,b=[{currentNSMap:e}],E={},D=0;for(;;){if((O=t.indexOf("<",D))<0){if(!t.substr(D).match(/^\s*$/)){var x=r.document,_=x.createTextNode(t.substr(D));x.appendChild(_),r.currentElement=_}return}switch(O>D&&p(O),t.charAt(O+1)){case"/":var T,S=t.indexOf(">",O+3),C=t.substring(O+2,S);if(!(b.length>1)){i.fatalError("end tag name not found for: "+C);break}var A=(T=b.pop()).localNSMap;if(T.tagName!=C&&i.fatalError("end tag name: "+C+" does not match the current start tagName: "+T.tagName),r.endElement(T.uri,T.localName,C),A)for(var L in A)r.endPrefixMapping(L);S++;break;case"?":y&&g(O),S=f(t,O,r);break;case"!":y&&g(O),S=h(t,O,r,i);break;default:try{y&&g(O);var R=new d,I=(S=s(t,O,R,m,i),R.length);if(I&&y){for(var M=o(y,{}),O=0;O=0))throw new y(v,new Error);for(var i=e.length-1;r"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function R(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(R(t,e))return!0}while(t=t.nextSibling)}function I(){}function M(t,e,n,r){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete e._nsMap[n.prefix?n.localName:""]}function O(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 P(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,O(t.ownerDocument,t),e}function F(t,e,n){var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===m){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 O(t.ownerDocument||t,t),e.nodeType==m&&(e.firstChild=e.lastChild=null),e}function U(){this._nsMap={}}function k(){}function q(){}function j(){}function B(){}function V(){}function H(){}function z(){}function Y(){}function W(){}function G(){}function X(){}function Q(){}function Z(t,e){switch(t.nodeType){case i:var n=t.attributes,r=n.length,c=t.firstChild,p=t.tagName,g="http://www.w3.org/1999/xhtml"===t.namespaceURI;e.push("<",p);for(var w=0;w"),g&&/^script$/i.test(p))c&&e.push(c.data);else for(;c;)Z(c,e),c=c.nextSibling;e.push("")}else e.push("/>");return;case f:case m:for(c=t.firstChild;c;)Z(c,e),c=c.nextSibling;return;case o:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,L),'"');case s:return e.push(t.data.replace(/[<&]/g,L));case a:return e.push("");case h:return e.push("\x3c!--",t.data,"--\x3e");case d:var v=t.publicId,N=t.systemId;if(e.push("');else if(N&&"."!=N)e.push(' SYSTEM "',N,'">');else{var y=t.internalSubset;y&&e.push(" [",y,"]"),e.push(">")}return;case l:return e.push("");case u:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function J(t,e,n){var r;switch(e.nodeType){case i:(r=e.cloneNode(!1)).ownerDocument=t;case m:break;case o:n=!0}if(r||(r=e.cloneNode(!1)),r.ownerDocument=t,r.parentNode=null,n)for(var s=e.firstChild;s;)r.appendChild(J(t,s,n)),s=s.nextSibling;return r}function K(t,e,n){var r=new e.constructor;for(var s in e){var a=e[s];"object"!=typeof a&&a!=r[s]&&(r[s]=a)}switch(e.childNodes&&(r.childNodes=new b),r.ownerDocument=t,r.nodeType){case i:var u=e.attributes,c=r.attributes=new x,l=u.length;c._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)}},e(r,A),e(r,A.prototype),I.prototype={nodeName:"#document",nodeType:f,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==m){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),F(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),P(this,t)},importNode:function(t,e){return J(this,t,e)},getElementById:function(t){var e=null;return R(this.documentElement,(function(n){if(1==n.nodeType&&n.getAttribute("id")==t)return e=n,!0})),e},createElement:function(t){var e=new U;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new b,(e.attributes=new x)._ownerElement=e,e},createDocumentFragment:function(){var t=new G;return t.ownerDocument=this,t.childNodes=new b,t},createTextNode:function(t){var e=new j;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new B;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new V;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new X;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new k;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new W;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new U,r=e.split(":"),i=n.attributes=new x;return n.childNodes=new b,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 k,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}},n(I,A),U.prototype={nodeType:i,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===m?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,O(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 E(this,(function(e){var n=[];return R(e,(function(r){r===e||r.nodeType!=i||"*"!==t&&r.tagName!=t||n.push(r)})),n}))},getElementsByTagNameNS:function(t,e){return new E(this,(function(n){var r=[];return R(n,(function(o){o===n||o.nodeType!==i||"*"!==t&&o.namespaceURI!==t||"*"!==e&&o.localName!=e||r.push(o)})),r}))}},I.prototype.getElementsByTagName=U.prototype.getElementsByTagName,I.prototype.getElementsByTagNameNS=U.prototype.getElementsByTagNameNS,n(U,A),k.prototype.nodeType=o,n(k,A),q.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(w[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}},n(q,A),j.prototype={nodeName:"#text",nodeType:s,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}},n(j,q),B.prototype={nodeName:"#comment",nodeType:h},n(B,q),V.prototype={nodeName:"#cdata-section",nodeType:a},n(V,q),H.prototype.nodeType=d,n(H,A),z.prototype.nodeType=p,n(z,A),Y.prototype.nodeType=c,n(Y,A),W.prototype.nodeType=u,n(W,A),G.prototype.nodeName="#document-fragment",G.prototype.nodeType=m,n(G,A),X.prototype.nodeType=l,n(X,A),Q.prototype.serializeToString=function(t){var e=[];return Z(t,e),e.join("")},A.prototype.toString=function(){return Q.prototype.serializeToString(this)};try{Object.defineProperty&&(Object.defineProperty(E.prototype,"length",{get:function(){return D(this),this.$$length}}),Object.defineProperty(A.prototype,"textContent",{get:function(){return et(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}}}),tt=function(t,e,n){t["$$"+e]=n})}catch(t){}return C})),ace.define("ace/mode/xml/dom-parser",[],(function(require,exports,t){"use strict";var e=require("./sax"),n=require("./dom");function r(t){this.options=t||{locator:{}}}function i(){this.cdata=!1}function o(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function s(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function a(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)}return r.prototype.parseFromString=function(t,n){var r=this.options,o=new e,a=r.domBuilder||new i,u=r.errorHandler,c=r.locator,l=r.xmlns||{},h={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&a.setDocumentLocator(c),o.errorHandler=function(t,e,n){if(!t){if(e instanceof i)return e;t=e}var r={},o=t instanceof Function;function a(e){var i=t[e];if(!i)if(o)i=2==t.length?function(n){t(e,n)}:t;else for(var a=arguments.length;--a&&!(i=t[arguments[a]]););r[e]=i&&function(t){i(t+s(n),t,n)}||function(){}}return n=n||{},a("warning","warn"),a("error","warn","warning"),a("fatalError","warn","warning","error"),r}(u,a,c),o.domBuilder=r.domBuilder||a,/\/x?html?$/.test(n)&&(h.nbsp=" ",h.copy="©",l[""]="http://www.w3.org/1999/xhtml"),t?o.parse(t,l,h):o.errorHandler.error("invalid document source"),a.document},i.prototype={startDocument:function(){this.document=(new n).createDocument(null,null,null),this.locator&&(this.document.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var i=this.document,s=i.createElementNS(t,n||e),a=r.length;u(this,s),this.currentElement=s,this.locator&&o(this.locator,s);for(var c=0;c




© 2015 - 2024 Weber Informatics LLC | Privacy Policy