ber-security.graylog.graylog-plugin-alert-wizard.5.2.1.source-code.c8f182d7dc987b3534e6db28bb0dc3df.js Maven / Gradle / Ivy
Show all versions of graylog-plugin-alert-wizard Show documentation
(()=>{var br=(M,$)=>()=>($||M(($={exports:{}}).exports,$),$.exports);var Sr=br(Cn=>{(function(M){if(typeof M.window<"u"&&M.document||M.require&&M.define)return;M.console||(M.console=function(){var j=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:j})},M.console.error=M.console.warn=M.console.log=M.console.trace=M.console),M.window=M,M.ace=M,M.onerror=function(j,c,l,a,o){postMessage({type:"error",data:{message:j,data:o&&o.data,file:c,line:l,col:a,stack:o&&o.stack}})},M.normalizeModule=function(j,c){if(c.indexOf("!")!==-1){var l=c.split("!");return M.normalizeModule(j,l[0])+"!"+M.normalizeModule(j,l[1])}if(c.charAt(0)=="."){var a=j.split("/").slice(0,-1).join("/");for(c=(a?a+"/":"")+c;c.indexOf(".")!==-1&&o!=c;){var o=c;c=c.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return c},M.require=function(c,l){if(l||(l=c,c=null),!l.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");l=M.normalizeModule(c,l);var a=M.require.modules[l];if(a)return a.initialized||(a.initialized=!0,a.exports=a.factory().exports),a.exports;if(!M.require.tlns)return console.log("unable to load "+l);var o=$(l,M.require.tlns);return o.slice(-3)!=".js"&&(o+=".js"),M.require.id=l,M.require.modules[l]={},importScripts(o),M.require(c,l)};function $(j,c){for(var l=j,a="";l;){var o=c[l];if(typeof o=="string")return o+a;if(o)return o.location.replace(/\/*$/,"/")+(a||o.main||o.name);if(o===!1)return"";var t=l.lastIndexOf("/");if(t===-1)break;a=l.substr(t)+a,l=l.slice(0,t)}return j}M.require.modules={},M.require.tlns={},M.define=function(j,c,l){if(arguments.length==2?(l=c,typeof j!="string"&&(c=j,j=M.require.id)):arguments.length==1&&(l=j,c=[],j=M.require.id),typeof l!="function"){M.require.modules[j]={exports:l,initialized:!0};return}c.length||(c=["require","exports","module"]);var a=function(o){return M.require(j,o)};M.require.modules[j]={exports:{},factory:function(){var o=this,t=l.apply(this,c.slice(0,l.length).map(function(i){switch(i){case"require":return a;case"exports":return o.exports;case"module":return o;default:return a(i)}}));return t&&(o.exports=t),o}}},M.define.amd={},M.require.tlns={},M.initBaseUrls=function(c){for(var l in c)this.require.tlns[l]=c[l]},M.initSender=function(){var c=M.require("ace/lib/event_emitter").EventEmitter,l=M.require("ace/lib/oop"),a=function(){};return function(){l.implement(this,c),this.callback=function(o,t){postMessage({type:"call",id:t,data:o})},this.emit=function(o,t){postMessage({type:"event",name:o,data:t})}}.call(a.prototype),new a};var re=M.main=null,U=M.sender=null;M.onmessage=function(j){var c=j.data;if(c.event&&U)U._signal(c.event,c.data);else if(c.command)if(re[c.command])re[c.command].apply(re,c.args);else if(M[c.command])M[c.command].apply(M,c.args);else throw new Error("Unknown command:"+c.command);else if(c.init){M.initBaseUrls(c.tlns),U=M.sender=M.initSender();var l=this.require(c.module)[c.classname];re=M.main=new l(U)}}})(Cn);ace.define("ace/lib/oop",[],function(M,$,re){"use strict";$.inherits=function(U,j){U.super_=j,U.prototype=Object.create(j.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}})},$.mixin=function(U,j){for(var c in j)U[c]=j[c];return U},$.implement=function(U,j){$.mixin(U,j)}});ace.define("ace/apply_delta",[],function(M,$,re){"use strict";function U(l,a){throw console.log("Invalid Delta:",l),"Invalid Delta: "+a}function j(l,a){return a.row>=0&&a.row=0&&a.column<=l[a.row].length}function c(l,a){a.action!="insert"&&a.action!="remove"&&U(a,"delta.action must be 'insert' or 'remove'"),a.lines instanceof Array||U(a,"delta.lines must be an Array"),(!a.start||!a.end)&&U(a,"delta.start/end must be an present");var o=a.start;j(l,a.start)||U(a,"delta.start must be contained in document");var t=a.end;a.action=="remove"&&!j(l,t)&&U(a,"delta.end must contained in document for 'remove' actions");var i=t.row-o.row,u=t.column-(i==0?o.column:0);(i!=a.lines.length-1||a.lines[i].length!=u)&&U(a,"delta.range must match delta lines")}$.applyDelta=function(l,a,o){var t=a.start.row,i=a.start.column,u=l[t]||"";switch(a.action){case"insert":var y=a.lines;if(y.length===1)l[t]=u.substring(0,i)+a.lines[0]+u.substring(i);else{var T=[t,1].concat(a.lines);l.splice.apply(l,T),l[t]=u.substring(0,i)+l[t],l[t+a.lines.length-1]+=u.substring(i)}break;case"remove":var L=a.end.column,C=a.end.row;t===C?l[t]=u.substring(0,i)+u.substring(L):l.splice(t,C-t+1,u.substring(0,i)+l[C].substring(L));break}}});ace.define("ace/lib/event_emitter",[],function(M,$,re){"use strict";var U={},j=function(){this.propagationStopped=!0},c=function(){this.defaultPrevented=!0};U._emit=U._dispatchEvent=function(l,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[l]||[],t=this._defaultHandlers[l];if(!(!o.length&&!t)){(typeof a!="object"||!a)&&(a={}),a.type||(a.type=l),a.stopPropagation||(a.stopPropagation=j),a.preventDefault||(a.preventDefault=c),o=o.slice();for(var i=0;i ["+this.end.row+"/"+this.end.column+"]"},c.prototype.contains=function(l,a){return this.compare(l,a)==0},c.prototype.compareRange=function(l){var a,o=l.end,t=l.start;return a=this.compare(o.row,o.column),a==1?(a=this.compare(t.row,t.column),a==1?2:a==0?1:0):a==-1?-2:(a=this.compare(t.row,t.column),a==-1?-1:a==1?42:0)},c.prototype.comparePoint=function(l){return this.compare(l.row,l.column)},c.prototype.containsRange=function(l){return this.comparePoint(l.start)==0&&this.comparePoint(l.end)==0},c.prototype.intersects=function(l){var a=this.compareRange(l);return a==-1||a==0||a==1},c.prototype.isEnd=function(l,a){return this.end.row==l&&this.end.column==a},c.prototype.isStart=function(l,a){return this.start.row==l&&this.start.column==a},c.prototype.setStart=function(l,a){typeof l=="object"?(this.start.column=l.column,this.start.row=l.row):(this.start.row=l,this.start.column=a)},c.prototype.setEnd=function(l,a){typeof l=="object"?(this.end.column=l.column,this.end.row=l.row):(this.end.row=l,this.end.column=a)},c.prototype.inside=function(l,a){return this.compare(l,a)==0?!(this.isEnd(l,a)||this.isStart(l,a)):!1},c.prototype.insideStart=function(l,a){return this.compare(l,a)==0?!this.isEnd(l,a):!1},c.prototype.insideEnd=function(l,a){return this.compare(l,a)==0?!this.isStart(l,a):!1},c.prototype.compare=function(l,a){return!this.isMultiLine()&&l===this.start.row?athis.end.column?1:0:lthis.end.row?1:this.start.row===l?a>=this.start.column?0:-1:this.end.row===l?a<=this.end.column?0:1:0},c.prototype.compareStart=function(l,a){return this.start.row==l&&this.start.column==a?-1:this.compare(l,a)},c.prototype.compareEnd=function(l,a){return this.end.row==l&&this.end.column==a?1:this.compare(l,a)},c.prototype.compareInside=function(l,a){return this.end.row==l&&this.end.column==a?1:this.start.row==l&&this.start.column==a?-1:this.compare(l,a)},c.prototype.clipRows=function(l,a){if(this.end.row>a)var o={row:a+1,column:0};else if(this.end.rowa)var t={row:a+1,column:0};else if(this.start.row"u"?this.setPosition(i.row,i.column):this.setPosition(i,u)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row)&&!(t.start.row>this.row)){var i=a(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(i.row,i.column,!0)}},o.prototype.setPosition=function(t,i,u){var y;if(u?y={row:t,column:i}:y=this.$clipPositionToDocument(t,i),!(this.row==y.row&&this.column==y.column)){var T={row:this.row,column:this.column};this.row=y.row,this.column=y.column,this._signal("change",{old:T,value:y})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(t){this.document=t||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(t,i){var u={};return t>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):t<0?(u.row=0,u.column=0):(u.row=t,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,i))),i<0&&(u.column=0),u},o}();c.prototype.$insertRight=!1,U.implement(c.prototype,j);function l(o,t,i){var u=i?o.column<=t.column:o.column=y&&(i=y-1,u=void 0);var T=this.getLine(i);return u==null&&(u=T.length),u=Math.min(Math.max(u,0),T.length),{row:i,column:u}},t.prototype.clonePos=function(i){return{row:i.row,column:i.column}},t.prototype.pos=function(i,u){return{row:i,column:u}},t.prototype.$clipPosition=function(i){var u=this.getLength();return i.row>=u?(i.row=Math.max(0,u-1),i.column=this.getLine(u-1).length):(i.row=Math.max(0,i.row),i.column=Math.min(Math.max(i.column,0),this.getLine(i.row).length)),i},t.prototype.insertFullLines=function(i,u){i=Math.min(Math.max(i,0),this.getLength());var y=0;i0,T=u=0&&this.applyDelta({start:this.pos(i,this.getLine(i).length),end:this.pos(i+1,0),action:"remove",lines:["",""]})},t.prototype.replace=function(i,u){if(i instanceof l||(i=l.fromPoints(i.start,i.end)),u.length===0&&i.isEmpty())return i.start;if(u==this.getTextRange(i))return i.end;this.remove(i);var y;return u?y=this.insert(i.start,u):y=i.start,y},t.prototype.applyDeltas=function(i){for(var u=0;u=0;u--)this.revertDelta(i[u])},t.prototype.applyDelta=function(i,u){var y=i.action=="insert";(y?i.lines.length<=1&&!i.lines[0]:!l.comparePoints(i.start,i.end))||(y&&i.lines.length>2e4?this.$splitAndapplyLargeDelta(i,2e4):(j(this.$lines,i,u),this._signal("change",i)))},t.prototype.$safeApplyDelta=function(i){var u=this.$lines.length;(i.action=="remove"&&i.start.row0;)l&1&&(a+=c),(l>>=1)&&(c+=c);return a};var U=/^\s\s*/,j=/\s\s*$/;$.stringTrimLeft=function(c){return c.replace(U,"")},$.stringTrimRight=function(c){return c.replace(j,"")},$.copyObject=function(c){var l={};for(var a in c)l[a]=c[a];return l},$.copyArray=function(c){for(var l=[],a=0,o=c.length;a=a.$lines.length)throw L=new Error("Invalid delta"),L.data={path:t.$path,linesLength:a.$lines.length,start:T.start,end:T.end},L;a.applyDelta(T,!0)}if(t.$timeout)return o.schedule(t.$timeout);t.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(c.prototype)});ace.define("ace/mode/yaml/yaml-lint",[],function(M,$,re){var U={require:M,exports:$,module:re};$=void 0,re=void 0;function j(c,l,a){typeof c=="function"&&(a=c,l=["require","exports","module"],c=U.module.id),typeof c!="string"&&(a=l,l=c,c=U.module.id),a||(a=l,l=[]);var o=typeof a=="function"?a.apply(U.module,l.map(function(t){return U[t]||M(t)})):a;o!=null&&(U.module.exports=o)}j.amd=!0,function(c){if(typeof $=="object"&&typeof re<"u")re.exports=c();else if(typeof j=="function"&&j.amd)j([],c);else{var l;typeof window<"u"?l=window:typeof global<"u"?l=global:typeof self<"u"?l=self:l=this,l.lint=c()}}(function(){var c,l,a;return function(){function o(t,i,u){function y(C,A){if(!i[C]){if(!t[C]){var _=typeof M=="function"&&M;if(!A&&_)return _(C,!0);if(T)return T(C,!0);var E=new Error("Cannot find module '"+C+"'");throw E.code="MODULE_NOT_FOUND",E}var p=i[C]={exports:{}};t[C][0].call(p.exports,function(m){var w=t[C][1][m];return y(w||m)},p,p.exports,o,t,i,u)}return i[C].exports}for(var T=typeof M=="function"&&M,L=0;L"u"||_===null}function y(_){return typeof _=="object"&&_!==null}function T(_){return Array.isArray(_)?_:u(_)?[]:[_]}function L(_,E){var p,m,w,R;if(E)for(R=Object.keys(E),p=0,m=R.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!==ke&&n!==Ee&&n!==be&&n!==te&&n!==R}function Q(n){return oe(n)&&n!==65279&&!Te(n)&&n!==he&&n!==ie&&n!==te&&n!==pe&&n!==Re&&n!==ke&&n!==Ee&&n!==be&&n!==R&&n!==ee&&n!==X&&n!==m&&n!==ze&&n!==fe&&n!==Y&&n!==w&&n!==k&&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 F,O,S=!1,P=!1,D=x!==-1,B=-1,W=Q(n.charCodeAt(0))&&!Te(n.charCodeAt(n.length-1));if(f)for(F=0;Fx&&n[B+1]!==" ",B=F);else if(!oe(O))return ge;W=W&&V(O)}P=P||D&&F-B-1>x&&n[B+1]!==" "}return!S&&!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),F=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-v),O=x||n.flowLevel>-1&&h>=n.flowLevel;function S(P){return ae(n,P)}switch(je(f,O,n.indent,F,S)){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,F),v));case ge:return'"'+ye(f,F)+'"';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===`
`),F=v?"+":x?"":"-";return h+F+`
`}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 D=n.indexOf(`
`);return D=D!==-1?D:n.length,h.lastIndex=D,Be(n.slice(0,D),f)}(),v=n[0]===`
`||n[0]===" ",F,O;O=h.exec(n);){var S=O[1],P=O[2];F=P[0]===" ",x+=S+(!v&&!F&&P!==""?`
`:"")+Be(P,f),v=F}return x}function Be(n,f){if(n===""||n[0]===" ")return n;for(var h=/ [^ ]/g,x,v=0,F,O=0,S=0,P="";x=h.exec(n);)S=x.index,S-v>f&&(F=O>v?O:S,P+=`
`+n.slice(v,F),v=F+1),O=S;return P+=`
`,n.length-v>f&&O>v?P+=n.slice(v,O)+`
`+n.slice(O+1):P+=n.slice(v),P.slice(1)}function ye(n){for(var f="",h,x,v,F=0;F=55296&&h<=56319&&(x=n.charCodeAt(F+1),x>=56320&&x<=57343)){f+=Se((h-55296)*1024+x-56320+65536),F++;continue}v=ne[h],f+=!v&&oe(h)?n[F]:v||Se(h)}return f}function De(n,f,h){var x="",v=n.tag,F,O;for(F=0,O=h.length;F1024&&(B+="? "),B+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),le(n,f,D,!1,!1)&&(B+=n.dump,x+=B));n.tag=v,n.dump="{"+x+"}"}function _e(n,f,h,x){var v="",F=n.tag,O=Object.keys(h),S,P,D,B,W,K;if(n.sortKeys===!0)O.sort();else if(typeof n.sortKeys=="function")O.sort(n.sortKeys);else if(n.sortKeys)throw new y("sortKeys must be a boolean or a function");for(S=0,P=O.length;S1024,W&&(n.dump&&E===n.dump.charCodeAt(0)?K+="?":K+="? "),K+=n.dump,W&&(K+=we(n,f)),le(n,f+1,B,!0,W)&&(n.dump&&E===n.dump.charCodeAt(0)?K+=":":K+=": ",K+=n.dump,v+=K));n.tag=F,n.dump=v||"{}"}function Ce(n,f,h){var x,v,F,O,S,P;for(v=h?n.explicitTypes:n.implicitTypes,F=0,O=v.length;F tag resolver accepts not "'+P+'" style');n.dump=x}return!0}return!1}function le(n,f,h,x,v,F){n.tag=null,n.dump=h,Ce(n,h,!1)||Ce(n,h,!0);var O=C.call(n.dump);x&&(x=n.flowLevel<0||n.flowLevel>f);var S=O==="[object Object]"||O==="[object Array]",P,D;if(S&&(P=n.duplicates.indexOf(h),D=P!==-1),(n.tag!==null&&n.tag!=="?"||D||n.indent!==2&&f>0)&&(v=!1),D&&n.usedDuplicates[P])n.dump="*ref_"+P;else{if(S&&D&&!n.usedDuplicates[P]&&(n.usedDuplicates[P]=!0),O==="[object Object]")x&&Object.keys(n.dump).length!==0?(_e(n,f,n.dump,v),D&&(n.dump="&ref_"+P+n.dump)):(Ie(n,f,n.dump),D&&(n.dump="&ref_"+P+" "+n.dump));else if(O==="[object Array]"){var B=n.noArrayIndent&&f>0?f-1:f;x&&n.dump.length!==0?($e(n,B,n.dump,v),D&&(n.dump="&ref_"+P+n.dump)):(De(n,B,n.dump),D&&(n.dump="&ref_"+P+" "+n.dump))}else if(O==="[object String]")n.tag!=="?"&&Me(n,n.dump,f,F);else{if(n.skipInvalid)return!1;throw new y("unacceptable kind of an object to dump "+O)}n.tag!==null&&n.tag!=="?"&&(n.dump="!<"+n.tag+"> "+n.dump)}return!0}function e(n,f){var h=[],x=[],v,F;for(g(n,h,x),v=0,F=x.length;v=48&&e<=57?e-48:(g=e|32,g>=97&&g<=102?g-97+10:-1)}function ke(e){return e===120?2:e===117?4:e===85?8:0}function Ge(e){return e>=48&&e<=57?e-48:-1}function Ee(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 be=new Array(256),ne=new Array(256),me=0;me<256;me++)be[me]=Ee(me)?1:0,ne[me]=Ee(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 T(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,b,I){var n,f,h;g.version!==null&&H(g,"duplication of %YAML directive"),I.length!==1&&H(g,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(I[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=I[0],g.checkLineBreaks=h<2,h!==1&&h!==2&&ve(g,"unsupported YAML version of the document")},TAG:function(g,b,I){var n,f;I.length!==2&&H(g,"TAG directive accepts exactly two arguments"),n=I[0],f=I[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,b,I){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,b,I){var n,f,h,x;for(u.isObject(b)||H(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(b),h=0,x=n.length;h1&&(e.result+=u.repeat(`
`,g-1))}function Fe(e,g,b){var I,n,f,h,x,v,F,O,S=e.kind,P=e.result,D;if(D=e.input.charCodeAt(e.position),ie(D)||de(D)||D===35||D===38||D===42||D===33||D===124||D===62||D===39||D===34||D===37||D===64||D===96||(D===63||D===45)&&(n=e.input.charCodeAt(e.position+1),ie(n)||b&&de(n)))return!1;for(e.kind="scalar",e.result="",f=h=e.position,x=!1;D!==0;){if(D===58){if(n=e.input.charCodeAt(e.position+1),ie(n)||b&&de(n))break}else if(D===35){if(I=e.input.charCodeAt(e.position-1),ie(I))break}else{if(e.position===e.lineStart&&xe(e)||b&&de(D))break;if(te(D))if(v=e.line,F=e.lineStart,O=e.lineIndent,Q(e,!1,-1),e.lineIndent>=g){x=!0,D=e.input.charCodeAt(e.position);continue}else{e.position=h,e.line=v,e.lineStart=F,e.lineIndent=O;break}}x&&(ae(e,f,h,!1),se(e,e.line-v),f=h=e.position,x=!1),fe(D)||(h=e.position+1),D=e.input.charCodeAt(++e.position)}return ae(e,f,h,!1),e.result?!0:(e.kind=S,e.result=P,!1)}function Le(e,g){var b,I,n;if(b=e.input.charCodeAt(e.position),b!==39)return!1;for(e.kind="scalar",e.result="",e.position++,I=n=e.position;(b=e.input.charCodeAt(e.position))!==0;)if(b===39)if(ae(e,I,e.position,!0),b=e.input.charCodeAt(++e.position),b===39)I=e.position,e.position++,n=e.position;else return!0;else te(b)?(ae(e,I,n,!0),se(e,Q(e,!1,g)),I=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 b,I,n,f,h,x;if(x=e.input.charCodeAt(e.position),x!==34)return!1;for(e.kind="scalar",e.result="",e.position++,b=I=e.position;(x=e.input.charCodeAt(e.position))!==0;){if(x===34)return ae(e,b,e.position,!0),e.position++,!0;if(x===92){if(ae(e,b,e.position,!0),x=e.input.charCodeAt(++e.position),te(x))Q(e,!1,g);else if(x<256&&be[x])e.result+=ne[x],e.position++;else if((h=ke(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");b=I=e.position}else te(x)?(ae(e,b,I,!0),se(e,Q(e,!1,g)),b=I=e.position):e.position===e.lineStart&&xe(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,I=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function ge(e,g){var b=!0,I,n=e.tag,f,h=e.anchor,x,v,F,O,S,P={},D,B,W,K;if(K=e.input.charCodeAt(e.position),K===91)v=93,S=!1,f=[];else if(K===123)v=125,S=!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=S?"mapping":"sequence",e.result=f,!0;b||H(e,"missed comma between flow collection entries"),B=D=W=null,F=O=!1,K===63&&(x=e.input.charCodeAt(e.position+1),ie(x)&&(F=O=!0,e.position++,Q(e,!0,g))),I=e.line,ye(e,g,_,!1,!0),B=e.tag,D=e.result,Q(e,!0,g),K=e.input.charCodeAt(e.position),(O||e.line===I)&&K===58&&(F=!0,K=e.input.charCodeAt(++e.position),Q(e,!0,g),ye(e,g,_,!1,!0),W=e.result),S?oe(e,f,P,B,D,W):F?f.push(oe(e,null,P,B,D,W)):f.push(D),Q(e,!0,g),K=e.input.charCodeAt(e.position),K===44?(b=!0,K=e.input.charCodeAt(++e.position)):b=!1}H(e,"unexpected end of the stream within a flow collection")}function je(e,g){var b,I,n=w,f=!1,h=!1,x=g,v=0,F=!1,O,S;if(S=e.input.charCodeAt(e.position),S===124)I=!1;else if(S===62)I=!0;else return!1;for(e.kind="scalar",e.result="";S!==0;)if(S=e.input.charCodeAt(++e.position),S===43||S===45)w===n?n=S===43?k:R:H(e,"repeat of a chomping mode identifier");else if((O=Ge(S))>=0)O===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+O-1,h=!0);else break;if(fe(S)){do S=e.input.charCodeAt(++e.position);while(fe(S));if(S===35)do S=e.input.charCodeAt(++e.position);while(!te(S)&&S!==0)}for(;S!==0;){for(V(e),e.lineIndent=0,S=e.input.charCodeAt(e.position);(!h||e.lineIndentx&&(x=e.lineIndent),te(S)){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)&&(B?P=e.result:D=e.result),B||(oe(e,F,O,S,P,D,f,h),S=P=D=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 "'+D.kind+'", not "'+e.kind+'"'),D.resolve(e.result)?(e.result=D.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||O}function De(e){var g=e.position,b,I,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),b=e.position;h!==0&&!ie(h);)h=e.input.charCodeAt(++e.position);for(I=e.input.slice(b,e.position),n=[],I.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(b=e.position;h!==0&&!ie(h);)h=e.input.charCodeAt(++e.position);n.push(e.input.slice(b,e.position))}h!==0&&V(e),A.call(we,I)?we[I](e,I,n):ve(e,'unknown document directive "'+I+'"')}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(E="",p=this.position;pC/2-1){E=" ... ",p-=5;break}return m=this.buffer.slice(_,p),u.repeat(" ",L)+A+m+E+`
`+u.repeat(" ",L+this.position-_+A.length)+"^"},y.prototype.toString=function(L){var C,A="";return this.name&&(A+='in "'+this.name+'" '),A+="at line "+(this.line+1)+", column "+(this.column+1),L||(C=this.getSnippet(),C&&(A+=`:
`+C)),A},t.exports=y},{"./common":5}],10:[function(o,t,i){"use strict";var u=o("./common"),y=o("./exception"),T=o("./type");function L(_,E,p){var m=[];return _.include.forEach(function(w){p=L(w,E,p)}),_[E].forEach(function(w){p.forEach(function(R,k){R.tag===w.tag&&R.kind===w.kind&&m.push(k)}),p.push(w)}),p.filter(function(w,R){return m.indexOf(R)===-1})}function C(){var _={scalar:{},sequence:{},mapping:{},fallback:{}},E,p;function m(w){_[w.kind][w.tag]=_.fallback[w.tag]=w}for(E=0,p=arguments.length;E64)){if(m<0)return!1;R+=6}return R%8===0}function A(p){var m,w,R=p.replace(/[\r\n=]/g,""),k=R.length,ee=L,Y=0,X=[];for(m=0;m>16&255),X.push(Y>>8&255),X.push(Y&255)),Y=Y<<6|ee.indexOf(R.charAt(m));return w=k%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,R,k,ee=p.length,Y=L;for(R=0;R>18&63],m+=Y[w>>12&63],m+=Y[w>>6&63],m+=Y[w&63]),w=(w<<8)+p[R];return k=ee%3,k===0?(m+=Y[w>>18&63],m+=Y[w>>12&63],m+=Y[w>>6&63],m+=Y[w&63]):k===2?(m+=Y[w>>10&63],m+=Y[w>>4&63],m+=Y[w<<2&63],m+=Y[64]):k===1&&(m+=Y[w>>2&63],m+=Y[w<<4&63],m+=Y[64],m+=Y[64]),m}function E(p){return u&&u.isBuffer(p)}t.exports=new T("tag:yaml.org,2002:binary",{kind:"scalar",resolve:C,construct:A,predicate:E,represent:_})},{"../type":16}],18:[function(o,t,i){"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 T(C){return C==="true"||C==="True"||C==="TRUE"}function L(C){return Object.prototype.toString.call(C)==="[object Boolean]"}t.exports=new u("tag:yaml.org,2002:bool",{kind:"scalar",resolve:y,construct:T,predicate:L,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,t,i){"use strict";var u=o("../common"),y=o("../type"),T=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 L(p){return!(p===null||!T.test(p)||p[p.length-1]==="_")}function C(p){var m,w,R,k;return m=p.replace(/_/g,"").toLowerCase(),w=m[0]==="-"?-1:1,k=[],"+-".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){k.unshift(parseFloat(ee,10))}),m=0,R=1,k.forEach(function(ee){m+=ee*R,R*=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 E(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1!==0||u.isNegativeZero(p))}t.exports=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:L,construct:C,predicate:E,represent:_,defaultStyle:"lowercase"})},{"../common":5,"../type":16}],20:[function(o,t,i){"use strict";var u=o("../common"),y=o("../type");function T(p){return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function L(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,R=!1,k;if(!m)return!1;if(k=p[w],(k==="-"||k==="+")&&(k=p[++w]),k==="0"){if(w+1===m)return!0;if(k=p[++w],k==="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,t,i){"use strict";var u;try{var y=o;u=y("esprima")}catch{typeof window<"u"&&(u=window.esprima)}var T=o("../../type");function L(E){if(E===null)return!1;try{var p="("+E+")",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(E){var p="("+E+")",m=u.parse(p,{range:!0}),w=[],R;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(k){w.push(k.name)}),R=m.body[0].expression.body.range,m.body[0].expression.body.type==="BlockStatement"?new Function(w,p.slice(R[0]+1,R[1]-1)):new Function(w,"return "+p.slice(R[0],R[1]))}function A(E){return E.toString()}function _(E){return Object.prototype.toString.call(E)==="[object Function]"}t.exports=new T("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:L,construct:C,predicate:_,represent:A})},{"../../type":16}],22:[function(o,t,i){"use strict";var u=o("../../type");function y(A){if(A===null||A.length===0)return!1;var _=A,E=/\/([gim]*)$/.exec(A),p="";return!(_[0]==="/"&&(E&&(p=E[1]),p.length>3||_[_.length-p.length-1]!=="/"))}function T(A){var _=A,E=/\/([gim]*)$/.exec(A),p="";return _[0]==="/"&&(E&&(p=E[1]),_=_.slice(1,_.length-p.length-1)),new RegExp(_,p)}function L(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]"}t.exports=new u("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:y,construct:T,predicate:C,represent:L})},{"../../type":16}],23:[function(o,t,i){"use strict";var u=o("../../type");function y(){return!0}function T(){}function L(){return""}function C(A){return typeof A>"u"}t.exports=new u("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:y,construct:T,predicate:C,represent:L})},{"../../type":16}],24:[function(o,t,i){"use strict";var u=o("../type");t.exports=new u("tag:yaml.org,2002:map",{kind:"mapping",construct:function(y){return y!==null?y:{}}})},{"../type":16}],25:[function(o,t,i){"use strict";var u=o("../type");function y(T){return T==="<<"||T===null}t.exports=new u("tag:yaml.org,2002:merge",{kind:"scalar",resolve:y})},{"../type":16}],26:[function(o,t,i){"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 T(){return null}function L(C){return C===null}t.exports=new u("tag:yaml.org,2002:null",{kind:"scalar",resolve:y,construct:T,predicate:L,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":16}],27:[function(o,t,i){"use strict";var u=o("../type"),y=Object.prototype.hasOwnProperty,T=Object.prototype.toString;function L(A){if(A===null)return!0;var _=[],E,p,m,w,R,k=A;for(E=0,p=k.length;E-1}function Nn(r,s){var d=this.__data__,N=Ze(d,r);return N<0?(++this.size,d.push([r,s])):d[N][1]=s,this}Ae.prototype.clear=Mn,Ae.prototype.delete=Dn,Ae.prototype.get=In,Ae.prototype.has=Pn,Ae.prototype.set=Nn;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);++N-1&&r%1==0&&r0){if(++s>=L)return arguments[0]}else s=0;return r.apply(void 0,arguments)}}function vr(r){if(r!=null){try{return le.call(r)}catch{}try{return r+""}catch{}}return""}function nn(r,s){return r===s||r!==r&&s!==s}var ln=hn(function(){return arguments}())?hn:function(r){return Qe(r)&&e.call(r,"callee")&&!S.call(r,"callee")},un=Array.isArray;function an(r){return r!=null&&vn(r.length)&&!sn(r)}function xr(r){return Qe(r)&&an(r)}var yn=W||Er;function sn(r){if(!Ne(r))return!1;var s=qe(r);return s==k||s==ee||s==p||s==te}function vn(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=A}function Ne(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=F(r);if(s===null)return!0;var d=e.call(s,"constructor")&&s.constructor;return typeof d=="function"&&d instanceof d&&le.call(d)==I}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=lr(function(r,s,d){dn(r,s,d)});function Cr(r){return function(){return r}}function An(r){return r}function Er(){return!1}t.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(M,$){"use strict";var re=M("../lib/oop"),U=M("../worker/mirror").Mirror,j=M("./yaml/yaml-lint").lint,c=$.YamlWorker=function(l){U.call(this,l),this.setTimeout(500),this.setOptions()};re.inherits(c,U),function(){this.setOptions=function(){this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(l){re.mixin(this.options,l),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.onUpdate=function(){var l=this,a=this.doc.getValue(),o=[];j(a,{},function(t){if(!t){l.sender.emit("annotate",o);return}o.push({row:t.mark.line,column:t.mark.column,text:t.reason,type:"error",raw:t}),l.sender.emit("annotate",o)})}}.call(c.prototype)})});Sr();})();
//# sourceMappingURL=c8f182d7dc987b3534e6db28bb0dc3df.js.map