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

ber-security.graylog.graylog-plugin-correlation-count.6.0.0.source-code.fd98f0e48b18e1de428edd5174539c2a.js Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
"no use strict";(()=>{var Er=(D,B)=>()=>(B||D((B={exports:{}}).exports,B),B.exports);var Sr=Er(Cn=>{(function(D){if(typeof D.window<"u"&&D.document||D.require&&D.define)return;D.console||(D.console=function(){var S=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:S})},D.console.error=D.console.warn=D.console.log=D.console.trace=D.console),D.window=D,D.ace=D,D.onerror=function(S,a,l,c,o){postMessage({type:"error",data:{message:S,data:o&&o.data,file:a,line:l,col:c,stack:o&&o.stack}})},D.normalizeModule=function(S,a){if(a.indexOf("!")!==-1){var l=a.split("!");return D.normalizeModule(S,l[0])+"!"+D.normalizeModule(S,l[1])}if(a.charAt(0)=="."){var c=S.split("/").slice(0,-1).join("/");for(a=(c?c+"/":"")+a;a.indexOf(".")!==-1&&o!=a;){var o=a;a=a.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return a},D.require=function(a,l){if(l||(l=a,a=null),!l.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");l=D.normalizeModule(a,l);var c=D.require.modules[l];if(c)return c.initialized||(c.initialized=!0,c.exports=c.factory().exports),c.exports;if(!D.require.tlns)return console.log("unable to load "+l);var o=B(l,D.require.tlns);return o.slice(-3)!=".js"&&(o+=".js"),D.require.id=l,D.require.modules[l]={},importScripts(o),D.require(a,l)};function B(S,a){for(var l=S,c="";l;){var o=a[l];if(typeof o=="string")return o+c;if(o)return o.location.replace(/\/*$/,"/")+(c||o.main||o.name);if(o===!1)return"";var i=l.lastIndexOf("/");if(i===-1)break;c=l.substr(i)+c,l=l.slice(0,i)}return S}D.require.modules={},D.require.tlns={},D.define=function(S,a,l){if(arguments.length==2?(l=a,typeof S!="string"&&(a=S,S=D.require.id)):arguments.length==1&&(l=S,a=[],S=D.require.id),typeof l!="function"){D.require.modules[S]={exports:l,initialized:!0};return}a.length||(a=["require","exports","module"]);var c=function(o){return D.require(S,o)};D.require.modules[S]={exports:{},factory:function(){var o=this,i=l.apply(this,a.slice(0,l.length).map(function(t){switch(t){case"require":return c;case"exports":return o.exports;case"module":return o;default:return c(t)}}));return i&&(o.exports=i),o}}},D.define.amd={},D.require.tlns={},D.initBaseUrls=function(a){for(var l in a)this.require.tlns[l]=a[l]},D.initSender=function(){var a=D.require("ace/lib/event_emitter").EventEmitter,l=D.require("ace/lib/oop"),c=function(){};return function(){l.implement(this,a),this.callback=function(o,i){postMessage({type:"call",id:i,data:o})},this.emit=function(o,i){postMessage({type:"event",name:o,data:i})}}.call(c.prototype),new c};var ne=D.main=null,U=D.sender=null;D.onmessage=function(S){var a=S.data;if(a.event&&U)U._signal(a.event,a.data);else if(a.command)if(ne[a.command])ne[a.command].apply(ne,a.args);else if(D[a.command])D[a.command].apply(D,a.args);else throw new Error("Unknown command:"+a.command);else if(a.init){D.initBaseUrls(a.tlns),U=D.sender=D.initSender();var l=this.require(a.module)[a.classname];ne=D.main=new l(U)}}})(Cn);ace.define("ace/lib/oop",[],function(D,B,ne){"use strict";B.inherits=function(U,S){U.super_=S,U.prototype=Object.create(S.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}})},B.mixin=function(U,S){for(var a in S)U[a]=S[a];return U},B.implement=function(U,S){B.mixin(U,S)}});ace.define("ace/apply_delta",[],function(D,B,ne){"use strict";function U(l,c){throw console.log("Invalid Delta:",l),"Invalid Delta: "+c}function S(l,c){return c.row>=0&&c.row=0&&c.column<=l[c.row].length}function a(l,c){c.action!="insert"&&c.action!="remove"&&U(c,"delta.action must be 'insert' or 'remove'"),c.lines instanceof Array||U(c,"delta.lines must be an Array"),(!c.start||!c.end)&&U(c,"delta.start/end must be an present");var o=c.start;S(l,c.start)||U(c,"delta.start must be contained in document");var i=c.end;c.action=="remove"&&!S(l,i)&&U(c,"delta.end must contained in document for 'remove' actions");var t=i.row-o.row,u=i.column-(t==0?o.column:0);(t!=c.lines.length-1||c.lines[t].length!=u)&&U(c,"delta.range must match delta lines")}B.applyDelta=function(l,c,o){var i=c.start.row,t=c.start.column,u=l[i]||"";switch(c.action){case"insert":var y=c.lines;if(y.length===1)l[i]=u.substring(0,t)+c.lines[0]+u.substring(t);else{var F=[i,1].concat(c.lines);l.splice.apply(l,F),l[i]=u.substring(0,t)+l[i],l[i+c.lines.length-1]+=u.substring(t)}break;case"remove":var O=c.end.column,C=c.end.row;i===C?l[i]=u.substring(0,t)+u.substring(O):l.splice(i,C-i+1,u.substring(0,t)+l[C].substring(O));break}}});ace.define("ace/lib/event_emitter",[],function(D,B,ne){"use strict";var U={},S=function(){this.propagationStopped=!0},a=function(){this.defaultPrevented=!0};U._emit=U._dispatchEvent=function(l,c){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[l]||[],i=this._defaultHandlers[l];if(!(!o.length&&!i)){(typeof c!="object"||!c)&&(c={}),c.type||(c.type=l),c.stopPropagation||(c.stopPropagation=S),c.preventDefault||(c.preventDefault=a),o=o.slice();for(var t=0;t ["+this.end.row+"/"+this.end.column+"]"},S.prototype.contains=function(a,l){return this.compare(a,l)==0},S.prototype.compareRange=function(a){var l,c=a.end,o=a.start;return l=this.compare(c.row,c.column),l==1?(l=this.compare(o.row,o.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(o.row,o.column),l==-1?-1:l==1?42:0)},S.prototype.comparePoint=function(a){return this.compare(a.row,a.column)},S.prototype.containsRange=function(a){return this.comparePoint(a.start)==0&&this.comparePoint(a.end)==0},S.prototype.intersects=function(a){var l=this.compareRange(a);return l==-1||l==0||l==1},S.prototype.isEnd=function(a,l){return this.end.row==a&&this.end.column==l},S.prototype.isStart=function(a,l){return this.start.row==a&&this.start.column==l},S.prototype.setStart=function(a,l){typeof a=="object"?(this.start.column=a.column,this.start.row=a.row):(this.start.row=a,this.start.column=l)},S.prototype.setEnd=function(a,l){typeof a=="object"?(this.end.column=a.column,this.end.row=a.row):(this.end.row=a,this.end.column=l)},S.prototype.inside=function(a,l){return this.compare(a,l)==0?!(this.isEnd(a,l)||this.isStart(a,l)):!1},S.prototype.insideStart=function(a,l){return this.compare(a,l)==0?!this.isEnd(a,l):!1},S.prototype.insideEnd=function(a,l){return this.compare(a,l)==0?!this.isStart(a,l):!1},S.prototype.compare=function(a,l){return!this.isMultiLine()&&a===this.start.row?lthis.end.column?1:0:athis.end.row?1:this.start.row===a?l>=this.start.column?0:-1:this.end.row===a?l<=this.end.column?0:1:0},S.prototype.compareStart=function(a,l){return this.start.row==a&&this.start.column==l?-1:this.compare(a,l)},S.prototype.compareEnd=function(a,l){return this.end.row==a&&this.end.column==l?1:this.compare(a,l)},S.prototype.compareInside=function(a,l){return this.end.row==a&&this.end.column==l?1:this.start.row==a&&this.start.column==l?-1:this.compare(a,l)},S.prototype.clipRows=function(a,l){if(this.end.row>l)var c={row:l+1,column:0};else if(this.end.rowl)var o={row:l+1,column:0};else if(this.start.rowthis.row)){var t=c(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},o.prototype.setPosition=function(i,t,u){var y;if(u?y={row:i,column:t}:y=this.$clipPositionToDocument(i,t),!(this.row==y.row&&this.column==y.column)){var F={row:this.row,column:this.column};this.row=y.row,this.column=y.column,this._signal("change",{old:F,value:y})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(i,t){var u={};return i>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):i<0?(u.row=0,u.column=0):(u.row=i,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,t))),t<0&&(u.column=0),u},o}();a.prototype.$insertRight=!1,U.implement(a.prototype,S);function l(o,i,t){var u=t?o.column<=i.column:o.column=y&&(t=y-1,u=void 0);var F=this.getLine(t);return u==null&&(u=F.length),u=Math.min(Math.max(u,0),F.length),{row:t,column:u}},i.prototype.clonePos=function(t){return{row:t.row,column:t.column}},i.prototype.pos=function(t,u){return{row:t,column:u}},i.prototype.$clipPosition=function(t){var u=this.getLength();return t.row>=u?(t.row=Math.max(0,u-1),t.column=this.getLine(u-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},i.prototype.insertFullLines=function(t,u){t=Math.min(Math.max(t,0),this.getLength());var y=0;t0,F=u=0&&this.applyDelta({start:this.pos(t,this.getLine(t).length),end:this.pos(t+1,0),action:"remove",lines:["",""]})},i.prototype.replace=function(t,u){if(t instanceof l||(t=l.fromPoints(t.start,t.end)),u.length===0&&t.isEmpty())return t.start;if(u==this.getTextRange(t))return t.end;this.remove(t);var y;return u?y=this.insert(t.start,u):y=t.start,y},i.prototype.applyDeltas=function(t){for(var u=0;u=0;u--)this.revertDelta(t[u])},i.prototype.applyDelta=function(t,u){var y=t.action=="insert";(y?t.lines.length<=1&&!t.lines[0]:!l.comparePoints(t.start,t.end))||(y&&t.lines.length>2e4?this.$splitAndapplyLargeDelta(t,2e4):(S(this.$lines,t,u),this._signal("change",t)))},i.prototype.$safeApplyDelta=function(t){var u=this.$lines.length;(t.action=="remove"&&t.start.row0;)l&1&&(c+=a),(l>>=1)&&(a+=a);return c};var U=/^\s\s*/,S=/\s\s*$/;B.stringTrimLeft=function(a){return a.replace(U,"")},B.stringTrimRight=function(a){return a.replace(S,"")},B.copyObject=function(a){var l={};for(var c in a)l[c]=a[c];return l},B.copyArray=function(a){for(var l=[],c=0,o=a.length;c65535?2:1}});ace.define("ace/worker/mirror",[],function(D,B,ne){"use strict";var U=D("../document").Document,S=D("../lib/lang"),a=B.Mirror=function(l){this.sender=l;var c=this.doc=new U(""),o=this.deferredUpdate=S.delayedCall(this.onUpdate.bind(this)),i=this;l.on("change",function(t){var u=t.data;if(u[0].start)c.applyDeltas(u);else for(var y=0;y=c.$lines.length)throw O=new Error("Invalid delta"),O.data={path:i.$path,linesLength:c.$lines.length,start:F.start,end:F.end},O;c.applyDelta(F,!0)}if(i.$timeout)return o.schedule(i.$timeout);i.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(l){this.$timeout=l},this.setValue=function(l){this.doc.setValue(l),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(l){this.sender.callback(this.doc.getValue(),l)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(a.prototype)});ace.define("ace/mode/yaml/yaml-lint",[],function(D,B,ne){var U={require:D,exports:B,module:ne};B=void 0,ne=void 0;function S(a,l,c){typeof a=="function"&&(c=a,l=["require","exports","module"],a=U.module.id),typeof a!="string"&&(c=l,l=a,a=U.module.id),c||(c=l,l=[]);var o=typeof c=="function"?c.apply(U.module,l.map(function(i){return U[i]||D(i)})):c;o!=null&&(U.module.exports=o)}S.amd=!0,function(a){if(typeof B=="object"&&typeof ne<"u")ne.exports=a();else if(typeof S=="function"&&S.amd)S([],a);else{var l;typeof window<"u"?l=window:typeof global<"u"?l=global:typeof self<"u"?l=self:l=this,l.lint=a()}}(function(){var a,l,c;return function(){function o(i,t,u){function y(C,A){if(!t[C]){if(!i[C]){var _=typeof D=="function"&&D;if(!A&&_)return _(C,!0);if(F)return F(C,!0);var b=new Error("Cannot find module '"+C+"'");throw b.code="MODULE_NOT_FOUND",b}var p=t[C]={exports:{}};i[C][0].call(p.exports,function(m){var w=i[C][1][m];return y(w||m)},p,p.exports,o,i,t,u)}return t[C].exports}for(var F=typeof D=="function"&&D,O=0;O"u"||_===null}function y(_){return typeof _=="object"&&_!==null}function F(_){return Array.isArray(_)?_:u(_)?[]:[_]}function O(_,b){var p,m,w,N;if(b)for(N=Object.keys(b),p=0,m=N.length;p=32&&n<=126||n>=161&&n<=55295&&n!==8232&&n!==8233||n>=57344&&n<=65533&&n!==65279||n>=65536&&n<=1114111}function V(n){return oe(n)&&n!==65279&&n!==pe&&n!==Re&&n!==Ne&&n!==be&&n!==Ee&&n!==te&&n!==N}function Q(n){return oe(n)&&n!==65279&&!Te(n)&&n!==he&&n!==ie&&n!==te&&n!==pe&&n!==Re&&n!==Ne&&n!==be&&n!==Ee&&n!==N&&n!==ee&&n!==X&&n!==m&&n!==ze&&n!==fe&&n!==Y&&n!==w&&n!==j&&n!==de&&n!==Ge}function xe(n){var f=/^\n* /;return f.test(n)}var se=1,Fe=2,Le=3,Oe=4,ge=5;function je(n,f,h,x,v){var L,M,T=!1,P=!1,I=x!==-1,$=-1,W=Q(n.charCodeAt(0))&&!Te(n.charCodeAt(n.length-1));if(f)for(L=0;Lx&&n[$+1]!==" ",$=L);else if(!oe(M))return ge;W=W&&V(M)}P=P||I&&L-$-1>x&&n[$+1]!==" "}return!T&&!P?W&&!v(n)?se:Fe:h>9&&xe(n)?ge:P?Oe:Le}function Me(n,f,h,x){n.dump=function(){if(f.length===0)return"''";if(!n.noCompatMode&&me.indexOf(f)!==-1)return"'"+f+"'";var v=n.indent*Math.max(1,h),L=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-v),M=x||n.flowLevel>-1&&h>=n.flowLevel;function T(P){return ae(n,P)}switch(je(f,M,n.indent,L,T)){case se:return f;case Fe:return"'"+f.replace(/'/g,"''")+"'";case Le:return"|"+Ue(f,n.indent)+He(ve(f,v));case Oe:return">"+Ue(f,n.indent)+He(ve(We(f,L),v));case ge:return'"'+ye(f,L)+'"';default:throw new y("impossible error: invalid scalar style")}}()}function Ue(n,f){var h=xe(n)?String(f):"",x=n[n.length-1]===`
`,v=x&&(n[n.length-2]===`
`||n===`
`),L=v?"+":x?"":"-";return h+L+`
`}function He(n){return n[n.length-1]===`
`?n.slice(0,-1):n}function We(n,f){for(var h=/(\n+)([^\n]*)/g,x=function(){var I=n.indexOf(`
`);return I=I!==-1?I:n.length,h.lastIndex=I,Be(n.slice(0,I),f)}(),v=n[0]===`
`||n[0]===" ",L,M;M=h.exec(n);){var T=M[1],P=M[2];L=P[0]===" ",x+=T+(!v&&!L&&P!==""?`
`:"")+Be(P,f),v=L}return x}function Be(n,f){if(n===""||n[0]===" ")return n;for(var h=/ [^ ]/g,x,v=0,L,M=0,T=0,P="";x=h.exec(n);)T=x.index,T-v>f&&(L=M>v?M:T,P+=`
`+n.slice(v,L),v=L+1),M=T;return P+=`
`,n.length-v>f&&M>v?P+=n.slice(v,M)+`
`+n.slice(M+1):P+=n.slice(v),P.slice(1)}function ye(n){for(var f="",h,x,v,L=0;L=55296&&h<=56319&&(x=n.charCodeAt(L+1),x>=56320&&x<=57343)){f+=Se((h-55296)*1024+x-56320+65536),L++;continue}v=re[h],f+=!v&&oe(h)?n[L]:v||Se(h)}return f}function De(n,f,h){var x="",v=n.tag,L,M;for(L=0,M=h.length;L1024&&($+="? "),$+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),ue(n,f,I,!1,!1)&&($+=n.dump,x+=$));n.tag=v,n.dump="{"+x+"}"}function _e(n,f,h,x){var v="",L=n.tag,M=Object.keys(h),T,P,I,$,W,K;if(n.sortKeys===!0)M.sort();else if(typeof n.sortKeys=="function")M.sort(n.sortKeys);else if(n.sortKeys)throw new y("sortKeys must be a boolean or a function");for(T=0,P=M.length;T1024,W&&(n.dump&&b===n.dump.charCodeAt(0)?K+="?":K+="? "),K+=n.dump,W&&(K+=we(n,f)),ue(n,f+1,$,!0,W)&&(n.dump&&b===n.dump.charCodeAt(0)?K+=":":K+=": ",K+=n.dump,v+=K));n.tag=L,n.dump=v||"{}"}function Ce(n,f,h){var x,v,L,M,T,P;for(v=h?n.explicitTypes:n.implicitTypes,L=0,M=v.length;L tag resolver accepts not "'+P+'" style');n.dump=x}return!0}return!1}function ue(n,f,h,x,v,L){n.tag=null,n.dump=h,Ce(n,h,!1)||Ce(n,h,!0);var M=C.call(n.dump);x&&(x=n.flowLevel<0||n.flowLevel>f);var T=M==="[object Object]"||M==="[object Array]",P,I;if(T&&(P=n.duplicates.indexOf(h),I=P!==-1),(n.tag!==null&&n.tag!=="?"||I||n.indent!==2&&f>0)&&(v=!1),I&&n.usedDuplicates[P])n.dump="*ref_"+P;else{if(T&&I&&!n.usedDuplicates[P]&&(n.usedDuplicates[P]=!0),M==="[object Object]")x&&Object.keys(n.dump).length!==0?(_e(n,f,n.dump,v),I&&(n.dump="&ref_"+P+n.dump)):(Ie(n,f,n.dump),I&&(n.dump="&ref_"+P+" "+n.dump));else if(M==="[object Array]"){var $=n.noArrayIndent&&f>0?f-1:f;x&&n.dump.length!==0?($e(n,$,n.dump,v),I&&(n.dump="&ref_"+P+n.dump)):(De(n,$,n.dump),I&&(n.dump="&ref_"+P+" "+n.dump))}else if(M==="[object String]")n.tag!=="?"&&Me(n,n.dump,f,L);else{if(n.skipInvalid)return!1;throw new y("unacceptable kind of an object to dump "+M)}n.tag!==null&&n.tag!=="?"&&(n.dump="!<"+n.tag+"> "+n.dump)}return!0}function e(n,f){var h=[],x=[],v,L;for(g(n,h,x),v=0,L=x.length;v=48&&e<=57?e-48:(g=e|32,g>=97&&g<=102?g-97+10:-1)}function Ne(e){return e===120?2:e===117?4:e===85?8:0}function Ge(e){return e>=48&&e<=57?e-48:-1}function be(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?"	":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function ze(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var Ee=new Array(256),re=new Array(256),me=0;me<256;me++)Ee[me]=be(me)?1:0,re[me]=be(me);function Ve(e,g){this.input=e,this.filename=g.filename||null,this.schema=g.schema||C,this.onWarning=g.onWarning||null,this.legacy=g.legacy||!1,this.json=g.json||!1,this.listener=g.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Se(e,g){return new y(g,new F(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function H(e,g){throw Se(e,g)}function ve(e,g){e.onWarning&&e.onWarning.call(null,Se(e,g))}var we={YAML:function(g,E,k){var n,f,h;g.version!==null&&H(g,"duplication of %YAML directive"),k.length!==1&&H(g,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(k[0]),n===null&&H(g,"ill-formed argument of the YAML directive"),f=parseInt(n[1],10),h=parseInt(n[2],10),f!==1&&H(g,"unacceptable YAML version of the document"),g.version=k[0],g.checkLineBreaks=h<2,h!==1&&h!==2&&ve(g,"unsupported YAML version of the document")},TAG:function(g,E,k){var n,f;k.length!==2&&H(g,"TAG directive accepts exactly two arguments"),n=k[0],f=k[1],pe.test(n)||H(g,"ill-formed tag handle (first argument) of the TAG directive"),A.call(g.tagMap,n)&&H(g,'there is a previously declared suffix for "'+n+'" tag handle'),he.test(f)||H(g,"ill-formed tag prefix (second argument) of the TAG directive"),g.tagMap[n]=f}};function ae(e,g,E,k){var n,f,h,x;if(g=32&&h<=1114111||H(e,"expected valid JSON character");else ee.test(x)&&H(e,"the stream contains non-printable characters");e.result+=x}}function Te(e,g,E,k){var n,f,h,x;for(u.isObject(E)||H(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(E),h=0,x=n.length;h1&&(e.result+=u.repeat(`
`,g-1))}function Fe(e,g,E){var k,n,f,h,x,v,L,M,T=e.kind,P=e.result,I;if(I=e.input.charCodeAt(e.position),ie(I)||de(I)||I===35||I===38||I===42||I===33||I===124||I===62||I===39||I===34||I===37||I===64||I===96||(I===63||I===45)&&(n=e.input.charCodeAt(e.position+1),ie(n)||E&&de(n)))return!1;for(e.kind="scalar",e.result="",f=h=e.position,x=!1;I!==0;){if(I===58){if(n=e.input.charCodeAt(e.position+1),ie(n)||E&&de(n))break}else if(I===35){if(k=e.input.charCodeAt(e.position-1),ie(k))break}else{if(e.position===e.lineStart&&xe(e)||E&&de(I))break;if(te(I))if(v=e.line,L=e.lineStart,M=e.lineIndent,Q(e,!1,-1),e.lineIndent>=g){x=!0,I=e.input.charCodeAt(e.position);continue}else{e.position=h,e.line=v,e.lineStart=L,e.lineIndent=M;break}}x&&(ae(e,f,h,!1),se(e,e.line-v),f=h=e.position,x=!1),fe(I)||(h=e.position+1),I=e.input.charCodeAt(++e.position)}return ae(e,f,h,!1),e.result?!0:(e.kind=T,e.result=P,!1)}function Le(e,g){var E,k,n;if(E=e.input.charCodeAt(e.position),E!==39)return!1;for(e.kind="scalar",e.result="",e.position++,k=n=e.position;(E=e.input.charCodeAt(e.position))!==0;)if(E===39)if(ae(e,k,e.position,!0),E=e.input.charCodeAt(++e.position),E===39)k=e.position,e.position++,n=e.position;else return!0;else te(E)?(ae(e,k,n,!0),se(e,Q(e,!1,g)),k=n=e.position):e.position===e.lineStart&&xe(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function Oe(e,g){var E,k,n,f,h,x;if(x=e.input.charCodeAt(e.position),x!==34)return!1;for(e.kind="scalar",e.result="",e.position++,E=k=e.position;(x=e.input.charCodeAt(e.position))!==0;){if(x===34)return ae(e,E,e.position,!0),e.position++,!0;if(x===92){if(ae(e,E,e.position,!0),x=e.input.charCodeAt(++e.position),te(x))Q(e,!1,g);else if(x<256&&Ee[x])e.result+=re[x],e.position++;else if((h=Ne(x))>0){for(n=h,f=0;n>0;n--)x=e.input.charCodeAt(++e.position),(h=Re(x))>=0?f=(f<<4)+h:H(e,"expected hexadecimal character");e.result+=ze(f),e.position++}else H(e,"unknown escape sequence");E=k=e.position}else te(x)?(ae(e,E,k,!0),se(e,Q(e,!1,g)),E=k=e.position):e.position===e.lineStart&&xe(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,k=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function ge(e,g){var E=!0,k,n=e.tag,f,h=e.anchor,x,v,L,M,T,P={},I,$,W,K;if(K=e.input.charCodeAt(e.position),K===91)v=93,T=!1,f=[];else if(K===123)v=125,T=!0,f={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),K=e.input.charCodeAt(++e.position);K!==0;){if(Q(e,!0,g),K=e.input.charCodeAt(e.position),K===v)return e.position++,e.tag=n,e.anchor=h,e.kind=T?"mapping":"sequence",e.result=f,!0;E||H(e,"missed comma between flow collection entries"),$=I=W=null,L=M=!1,K===63&&(x=e.input.charCodeAt(e.position+1),ie(x)&&(L=M=!0,e.position++,Q(e,!0,g))),k=e.line,ye(e,g,_,!1,!0),$=e.tag,I=e.result,Q(e,!0,g),K=e.input.charCodeAt(e.position),(M||e.line===k)&&K===58&&(L=!0,K=e.input.charCodeAt(++e.position),Q(e,!0,g),ye(e,g,_,!1,!0),W=e.result),T?oe(e,f,P,$,I,W):L?f.push(oe(e,null,P,$,I,W)):f.push(I),Q(e,!0,g),K=e.input.charCodeAt(e.position),K===44?(E=!0,K=e.input.charCodeAt(++e.position)):E=!1}H(e,"unexpected end of the stream within a flow collection")}function je(e,g){var E,k,n=w,f=!1,h=!1,x=g,v=0,L=!1,M,T;if(T=e.input.charCodeAt(e.position),T===124)k=!1;else if(T===62)k=!0;else return!1;for(e.kind="scalar",e.result="";T!==0;)if(T=e.input.charCodeAt(++e.position),T===43||T===45)w===n?n=T===43?j:N:H(e,"repeat of a chomping mode identifier");else if((M=Ge(T))>=0)M===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?H(e,"repeat of an indentation width identifier"):(x=g+M-1,h=!0);else break;if(fe(T)){do T=e.input.charCodeAt(++e.position);while(fe(T));if(T===35)do T=e.input.charCodeAt(++e.position);while(!te(T)&&T!==0)}for(;T!==0;){for(V(e),e.lineIndent=0,T=e.input.charCodeAt(e.position);(!h||e.lineIndentx&&(x=e.lineIndent),te(T)){v++;continue}if(e.lineIndentg)&&v!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndentg)&&(ye(e,g,m,!0,n)&&($?P=e.result:I=e.result),$||(oe(e,L,M,T,P,I,f,h),T=P=I=null),Q(e,!0,-1),K=e.input.charCodeAt(e.position)),e.lineIndent>g&&K!==0)H(e,"bad indentation of a mapping entry");else if(e.lineIndentg?v=1:e.lineIndent===g?v=0:e.lineIndentg?v=1:e.lineIndent===g?v=0:e.lineIndent tag; it should be "'+I.kind+'", not "'+e.kind+'"'),I.resolve(e.result)?(e.result=I.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):H(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):H(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||M}function De(e){var g=e.position,E,k,n,f=!1,h;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(h=e.input.charCodeAt(e.position))!==0&&(Q(e,!0,-1),h=e.input.charCodeAt(e.position),!(e.lineIndent>0||h!==37));){for(f=!0,h=e.input.charCodeAt(++e.position),E=e.position;h!==0&&!ie(h);)h=e.input.charCodeAt(++e.position);for(k=e.input.slice(E,e.position),n=[],k.length<1&&H(e,"directive name must not be less than one character in length");h!==0;){for(;fe(h);)h=e.input.charCodeAt(++e.position);if(h===35){do h=e.input.charCodeAt(++e.position);while(h!==0&&!te(h));break}if(te(h))break;for(E=e.position;h!==0&&!ie(h);)h=e.input.charCodeAt(++e.position);n.push(e.input.slice(E,e.position))}h!==0&&V(e),A.call(we,k)?we[k](e,k,n):ve(e,'unknown document directive "'+k+'"')}if(Q(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Q(e,!0,-1)):f&&H(e,"directives end mark is expected"),ye(e,e.lineIndent-1,m,!1,!0),Q(e,!0,-1),e.checkLineBreaks&&Y.test(e.input.slice(g,e.position))&&ve(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&xe(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Q(e,!0,-1));return}if(e.position0&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(_-1))===-1;)if(_-=1,this.position-_>C/2-1){A=" ... ",_+=5;break}for(b="",p=this.position;pC/2-1){b=" ... ",p-=5;break}return m=this.buffer.slice(_,p),u.repeat(" ",O)+A+m+b+`
`+u.repeat(" ",O+this.position-_+A.length)+"^"},y.prototype.toString=function(O){var C,A="";return this.name&&(A+='in "'+this.name+'" '),A+="at line "+(this.line+1)+", column "+(this.column+1),O||(C=this.getSnippet(),C&&(A+=`:
`+C)),A},i.exports=y},{"./common":5}],10:[function(o,i,t){"use strict";var u=o("./common"),y=o("./exception"),F=o("./type");function O(_,b,p){var m=[];return _.include.forEach(function(w){p=O(w,b,p)}),_[b].forEach(function(w){p.forEach(function(N,j){N.tag===w.tag&&N.kind===w.kind&&m.push(j)}),p.push(w)}),p.filter(function(w,N){return m.indexOf(N)===-1})}function C(){var _={scalar:{},sequence:{},mapping:{},fallback:{}},b,p;function m(w){_[w.kind][w.tag]=_.fallback[w.tag]=w}for(b=0,p=arguments.length;b64)){if(m<0)return!1;N+=6}return N%8===0}function A(p){var m,w,N=p.replace(/[\r\n=]/g,""),j=N.length,ee=O,Y=0,X=[];for(m=0;m>16&255),X.push(Y>>8&255),X.push(Y&255)),Y=Y<<6|ee.indexOf(N.charAt(m));return w=j%4*6,w===0?(X.push(Y>>16&255),X.push(Y>>8&255),X.push(Y&255)):w===18?(X.push(Y>>10&255),X.push(Y>>2&255)):w===12&&X.push(Y>>4&255),u?u.from?u.from(X):new u(X):X}function _(p){var m="",w=0,N,j,ee=p.length,Y=O;for(N=0;N>18&63],m+=Y[w>>12&63],m+=Y[w>>6&63],m+=Y[w&63]),w=(w<<8)+p[N];return j=ee%3,j===0?(m+=Y[w>>18&63],m+=Y[w>>12&63],m+=Y[w>>6&63],m+=Y[w&63]):j===2?(m+=Y[w>>10&63],m+=Y[w>>4&63],m+=Y[w<<2&63],m+=Y[64]):j===1&&(m+=Y[w>>2&63],m+=Y[w<<4&63],m+=Y[64],m+=Y[64]),m}function b(p){return u&&u.isBuffer(p)}i.exports=new F("tag:yaml.org,2002:binary",{kind:"scalar",resolve:C,construct:A,predicate:b,represent:_})},{"../type":16}],18:[function(o,i,t){"use strict";var u=o("../type");function y(C){if(C===null)return!1;var A=C.length;return A===4&&(C==="true"||C==="True"||C==="TRUE")||A===5&&(C==="false"||C==="False"||C==="FALSE")}function F(C){return C==="true"||C==="True"||C==="TRUE"}function O(C){return Object.prototype.toString.call(C)==="[object Boolean]"}i.exports=new u("tag:yaml.org,2002:bool",{kind:"scalar",resolve:y,construct:F,predicate:O,represent:{lowercase:function(C){return C?"true":"false"},uppercase:function(C){return C?"TRUE":"FALSE"},camelcase:function(C){return C?"True":"False"}},defaultStyle:"lowercase"})},{"../type":16}],19:[function(o,i,t){"use strict";var u=o("../common"),y=o("../type"),F=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function O(p){return!(p===null||!F.test(p)||p[p.length-1]==="_")}function C(p){var m,w,N,j;return m=p.replace(/_/g,"").toLowerCase(),w=m[0]==="-"?-1:1,j=[],"+-".indexOf(m[0])>=0&&(m=m.slice(1)),m===".inf"?w===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:m===".nan"?NaN:m.indexOf(":")>=0?(m.split(":").forEach(function(ee){j.unshift(parseFloat(ee,10))}),m=0,N=1,j.forEach(function(ee){m+=ee*N,N*=60}),w*m):w*parseFloat(m,10)}var A=/^[-+]?[0-9]+e/;function _(p,m){var w;if(isNaN(p))switch(m){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===p)switch(m){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===p)switch(m){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(u.isNegativeZero(p))return"-0.0";return w=p.toString(10),A.test(w)?w.replace("e",".e"):w}function b(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1!==0||u.isNegativeZero(p))}i.exports=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:O,construct:C,predicate:b,represent:_,defaultStyle:"lowercase"})},{"../common":5,"../type":16}],20:[function(o,i,t){"use strict";var u=o("../common"),y=o("../type");function F(p){return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function O(p){return p>=48&&p<=55}function C(p){return p>=48&&p<=57}function A(p){if(p===null)return!1;var m=p.length,w=0,N=!1,j;if(!m)return!1;if(j=p[w],(j==="-"||j==="+")&&(j=p[++w]),j==="0"){if(w+1===m)return!0;if(j=p[++w],j==="b"){for(w++;w=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)},octal:function(p){return p>=0?"0"+p.toString(8):"-0"+p.toString(8).slice(1)},decimal:function(p){return p.toString(10)},hexadecimal:function(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":5,"../type":16}],21:[function(o,i,t){"use strict";var u;try{var y=o;u=y("esprima")}catch{typeof window<"u"&&(u=window.esprima)}var F=o("../../type");function O(b){if(b===null)return!1;try{var p="("+b+")",m=u.parse(p,{range:!0});return!(m.type!=="Program"||m.body.length!==1||m.body[0].type!=="ExpressionStatement"||m.body[0].expression.type!=="ArrowFunctionExpression"&&m.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function C(b){var p="("+b+")",m=u.parse(p,{range:!0}),w=[],N;if(m.type!=="Program"||m.body.length!==1||m.body[0].type!=="ExpressionStatement"||m.body[0].expression.type!=="ArrowFunctionExpression"&&m.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return m.body[0].expression.params.forEach(function(j){w.push(j.name)}),N=m.body[0].expression.body.range,m.body[0].expression.body.type==="BlockStatement"?new Function(w,p.slice(N[0]+1,N[1]-1)):new Function(w,"return "+p.slice(N[0],N[1]))}function A(b){return b.toString()}function _(b){return Object.prototype.toString.call(b)==="[object Function]"}i.exports=new F("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:O,construct:C,predicate:_,represent:A})},{"../../type":16}],22:[function(o,i,t){"use strict";var u=o("../../type");function y(A){if(A===null||A.length===0)return!1;var _=A,b=/\/([gim]*)$/.exec(A),p="";return!(_[0]==="/"&&(b&&(p=b[1]),p.length>3||_[_.length-p.length-1]!=="/"))}function F(A){var _=A,b=/\/([gim]*)$/.exec(A),p="";return _[0]==="/"&&(b&&(p=b[1]),_=_.slice(1,_.length-p.length-1)),new RegExp(_,p)}function O(A){var _="/"+A.source+"/";return A.global&&(_+="g"),A.multiline&&(_+="m"),A.ignoreCase&&(_+="i"),_}function C(A){return Object.prototype.toString.call(A)==="[object RegExp]"}i.exports=new u("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:y,construct:F,predicate:C,represent:O})},{"../../type":16}],23:[function(o,i,t){"use strict";var u=o("../../type");function y(){return!0}function F(){}function O(){return""}function C(A){return typeof A>"u"}i.exports=new u("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:y,construct:F,predicate:C,represent:O})},{"../../type":16}],24:[function(o,i,t){"use strict";var u=o("../type");i.exports=new u("tag:yaml.org,2002:map",{kind:"mapping",construct:function(y){return y!==null?y:{}}})},{"../type":16}],25:[function(o,i,t){"use strict";var u=o("../type");function y(F){return F==="<<"||F===null}i.exports=new u("tag:yaml.org,2002:merge",{kind:"scalar",resolve:y})},{"../type":16}],26:[function(o,i,t){"use strict";var u=o("../type");function y(C){if(C===null)return!0;var A=C.length;return A===1&&C==="~"||A===4&&(C==="null"||C==="Null"||C==="NULL")}function F(){return null}function O(C){return C===null}i.exports=new u("tag:yaml.org,2002:null",{kind:"scalar",resolve:y,construct:F,predicate:O,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":16}],27:[function(o,i,t){"use strict";var u=o("../type"),y=Object.prototype.hasOwnProperty,F=Object.prototype.toString;function O(A){if(A===null)return!0;var _=[],b,p,m,w,N,j=A;for(b=0,p=j.length;b-1}function Pn(r,s){var d=this.__data__,R=Ze(d,r);return R<0?(++this.size,d.push([r,s])):d[R][1]=s,this}Ae.prototype.clear=Mn,Ae.prototype.delete=Dn,Ae.prototype.get=In,Ae.prototype.has=kn,Ae.prototype.set=Pn;function Ye(r){var s=-1,d=r==null?0:r.length;for(this.clear();++s1?d[z-1]:void 0,Z=z>2?d[2]:void 0;for(J=r.length>3&&typeof J=="function"?(z--,J):void 0,Z&&cr(d[0],d[1],Z)&&(J=z<3?void 0:J,z=1),s=Object(s);++R-1&&r%1==0&&r0){if(++s>=O)return arguments[0]}else s=0;return r.apply(void 0,arguments)}}function vr(r){if(r!=null){try{return ue.call(r)}catch{}try{return r+""}catch{}}return""}function nn(r,s){return r===s||r!==r&&s!==s}var un=hn(function(){return arguments}())?hn:function(r){return Qe(r)&&e.call(r,"callee")&&!T.call(r,"callee")},ln=Array.isArray;function an(r){return r!=null&&vn(r.length)&&!sn(r)}function xr(r){return Qe(r)&&an(r)}var yn=W||br;function sn(r){if(!Pe(r))return!1;var s=qe(r);return s==j||s==ee||s==p||s==te}function vn(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=A}function Pe(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function Qe(r){return r!=null&&typeof r=="object"}function _r(r){if(!Qe(r)||qe(r)!=he)return!1;var s=L(r);if(s===null)return!0;var d=e.call(s,"constructor")&&s.constructor;return typeof d=="function"&&d instanceof d&&ue.call(d)==k}var xn=Me?We(Me):Qn;function Ar(r){return or(r,_n(r))}function _n(r){return an(r)?zn(r,!0):Xn(r)}var wr=ur(function(r,s,d){dn(r,s,d)});function Cr(r){return function(){return r}}function An(r){return r}function br(){return!1}i.exports=wr}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[2])(2)})});ace.define("ace/mode/yaml_worker",[],function(D,B){"use strict";var ne=D("../lib/oop"),U=D("../worker/mirror").Mirror,S=D("./yaml/yaml-lint").lint,a=B.YamlWorker=function(l){U.call(this,l),this.setTimeout(500),this.setOptions()};ne.inherits(a,U),function(){this.setOptions=function(){this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(l){ne.mixin(this.options,l),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.onUpdate=function(){var l=this,c=this.doc.getValue(),o=[];S(c,{},function(i){if(!i){l.sender.emit("annotate",o);return}var t=!!i.mark;o.push({row:t?i.mark.line:0,column:t?i.mark.column:0,text:i.reason,type:"error",raw:i}),l.sender.emit("annotate",o)})}}.call(a.prototype)})});Sr();})();

//# sourceMappingURL=fd98f0e48b18e1de428edd5174539c2a.js.map




© 2015 - 2025 Weber Informatics LLC | Privacy Policy