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

ber-security.graylog.graylog-plugin-alert-wizard.5.2.1.source-code.4ff96a186576c0af6f2398f3ac26dd9f.js Maven / Gradle / Ivy

The newest version!
(()=>{var V=(L,D)=>()=>(D||L((D={exports:{}}).exports,D),D.exports);var G=V(B=>{(function(L){if(typeof L.window<"u"&&L.document||L.require&&L.define)return;L.console||(L.console=function(){var P=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:P})},L.console.error=L.console.warn=L.console.log=L.console.trace=L.console),L.window=L,L.ace=L,L.onerror=function(P,v,m,b,y){postMessage({type:"error",data:{message:P,data:y&&y.data,file:v,line:m,col:b,stack:y&&y.stack}})},L.normalizeModule=function(P,v){if(v.indexOf("!")!==-1){var m=v.split("!");return L.normalizeModule(P,m[0])+"!"+L.normalizeModule(P,m[1])}if(v.charAt(0)=="."){var b=P.split("/").slice(0,-1).join("/");for(v=(b?b+"/":"")+v;v.indexOf(".")!==-1&&y!=v;){var y=v;v=v.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return v},L.require=function(v,m){if(m||(m=v,v=null),!m.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");m=L.normalizeModule(v,m);var b=L.require.modules[m];if(b)return b.initialized||(b.initialized=!0,b.exports=b.factory().exports),b.exports;if(!L.require.tlns)return console.log("unable to load "+m);var y=D(m,L.require.tlns);return y.slice(-3)!=".js"&&(y+=".js"),L.require.id=m,L.require.modules[m]={},importScripts(y),L.require(v,m)};function D(P,v){for(var m=P,b="";m;){var y=v[m];if(typeof y=="string")return y+b;if(y)return y.location.replace(/\/*$/,"/")+(b||y.main||y.name);if(y===!1)return"";var k=m.lastIndexOf("/");if(k===-1)break;b=m.substr(k)+b,m=m.slice(0,k)}return P}L.require.modules={},L.require.tlns={},L.define=function(P,v,m){if(arguments.length==2?(m=v,typeof P!="string"&&(v=P,P=L.require.id)):arguments.length==1&&(m=P,v=[],P=L.require.id),typeof m!="function"){L.require.modules[P]={exports:m,initialized:!0};return}v.length||(v=["require","exports","module"]);var b=function(y){return L.require(P,y)};L.require.modules[P]={exports:{},factory:function(){var y=this,k=m.apply(this,v.slice(0,m.length).map(function(e){switch(e){case"require":return b;case"exports":return y.exports;case"module":return y;default:return b(e)}}));return k&&(y.exports=k),y}}},L.define.amd={},L.require.tlns={},L.initBaseUrls=function(v){for(var m in v)this.require.tlns[m]=v[m]},L.initSender=function(){var v=L.require("ace/lib/event_emitter").EventEmitter,m=L.require("ace/lib/oop"),b=function(){};return function(){m.implement(this,v),this.callback=function(y,k){postMessage({type:"call",id:k,data:y})},this.emit=function(y,k){postMessage({type:"event",name:y,data:k})}}.call(b.prototype),new b};var Y=L.main=null,N=L.sender=null;L.onmessage=function(P){var v=P.data;if(v.event&&N)N._signal(v.event,v.data);else if(v.command)if(Y[v.command])Y[v.command].apply(Y,v.args);else if(L[v.command])L[v.command].apply(L,v.args);else throw new Error("Unknown command:"+v.command);else if(v.init){L.initBaseUrls(v.tlns),N=L.sender=L.initSender();var m=this.require(v.module)[v.classname];Y=L.main=new m(N)}}})(B);ace.define("ace/lib/oop",[],function(L,D,Y){"use strict";D.inherits=function(N,P){N.super_=P,N.prototype=Object.create(P.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}})},D.mixin=function(N,P){for(var v in P)N[v]=P[v];return N},D.implement=function(N,P){D.mixin(N,P)}});ace.define("ace/lib/lang",[],function(L,D,Y){"use strict";D.last=function(v){return v[v.length-1]},D.stringReverse=function(v){return v.split("").reverse().join("")},D.stringRepeat=function(v,m){for(var b="";m>0;)m&1&&(b+=v),(m>>=1)&&(v+=v);return b};var N=/^\s\s*/,P=/\s\s*$/;D.stringTrimLeft=function(v){return v.replace(N,"")},D.stringTrimRight=function(v){return v.replace(P,"")},D.copyObject=function(v){var m={};for(var b in v)m[b]=v[b];return m},D.copyArray=function(v){for(var m=[],b=0,y=v.length;b=0&&b.row=0&&b.column<=m[b.row].length}function v(m,b){b.action!="insert"&&b.action!="remove"&&N(b,"delta.action must be 'insert' or 'remove'"),b.lines instanceof Array||N(b,"delta.lines must be an Array"),(!b.start||!b.end)&&N(b,"delta.start/end must be an present");var y=b.start;P(m,b.start)||N(b,"delta.start must be contained in document");var k=b.end;b.action=="remove"&&!P(m,k)&&N(b,"delta.end must contained in document for 'remove' actions");var e=k.row-y.row,n=k.column-(e==0?y.column:0);(e!=b.lines.length-1||b.lines[e].length!=n)&&N(b,"delta.range must match delta lines")}D.applyDelta=function(m,b,y){var k=b.start.row,e=b.start.column,n=m[k]||"";switch(b.action){case"insert":var f=b.lines;if(f.length===1)m[k]=n.substring(0,e)+b.lines[0]+n.substring(e);else{var h=[k,1].concat(b.lines);m.splice.apply(m,h),m[k]=n.substring(0,e)+m[k],m[k+b.lines.length-1]+=n.substring(e)}break;case"remove":var s=b.end.column,a=b.end.row;k===a?m[k]=n.substring(0,e)+n.substring(s):m.splice(k,a-k+1,n.substring(0,e)+m[a].substring(s));break}}});ace.define("ace/lib/event_emitter",[],function(L,D,Y){"use strict";var N={},P=function(){this.propagationStopped=!0},v=function(){this.defaultPrevented=!0};N._emit=N._dispatchEvent=function(m,b){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var y=this._eventRegistry[m]||[],k=this._defaultHandlers[m];if(!(!y.length&&!k)){(typeof b!="object"||!b)&&(b={}),b.type||(b.type=m),b.stopPropagation||(b.stopPropagation=P),b.preventDefault||(b.preventDefault=v),y=y.slice();for(var e=0;e ["+this.end.row+"/"+this.end.column+"]"},v.prototype.contains=function(m,b){return this.compare(m,b)==0},v.prototype.compareRange=function(m){var b,y=m.end,k=m.start;return b=this.compare(y.row,y.column),b==1?(b=this.compare(k.row,k.column),b==1?2:b==0?1:0):b==-1?-2:(b=this.compare(k.row,k.column),b==-1?-1:b==1?42:0)},v.prototype.comparePoint=function(m){return this.compare(m.row,m.column)},v.prototype.containsRange=function(m){return this.comparePoint(m.start)==0&&this.comparePoint(m.end)==0},v.prototype.intersects=function(m){var b=this.compareRange(m);return b==-1||b==0||b==1},v.prototype.isEnd=function(m,b){return this.end.row==m&&this.end.column==b},v.prototype.isStart=function(m,b){return this.start.row==m&&this.start.column==b},v.prototype.setStart=function(m,b){typeof m=="object"?(this.start.column=m.column,this.start.row=m.row):(this.start.row=m,this.start.column=b)},v.prototype.setEnd=function(m,b){typeof m=="object"?(this.end.column=m.column,this.end.row=m.row):(this.end.row=m,this.end.column=b)},v.prototype.inside=function(m,b){return this.compare(m,b)==0?!(this.isEnd(m,b)||this.isStart(m,b)):!1},v.prototype.insideStart=function(m,b){return this.compare(m,b)==0?!this.isEnd(m,b):!1},v.prototype.insideEnd=function(m,b){return this.compare(m,b)==0?!this.isStart(m,b):!1},v.prototype.compare=function(m,b){return!this.isMultiLine()&&m===this.start.row?bthis.end.column?1:0:mthis.end.row?1:this.start.row===m?b>=this.start.column?0:-1:this.end.row===m?b<=this.end.column?0:1:0},v.prototype.compareStart=function(m,b){return this.start.row==m&&this.start.column==b?-1:this.compare(m,b)},v.prototype.compareEnd=function(m,b){return this.end.row==m&&this.end.column==b?1:this.compare(m,b)},v.prototype.compareInside=function(m,b){return this.end.row==m&&this.end.column==b?1:this.start.row==m&&this.start.column==b?-1:this.compare(m,b)},v.prototype.clipRows=function(m,b){if(this.end.row>b)var y={row:b+1,column:0};else if(this.end.rowb)var k={row:b+1,column:0};else if(this.start.row"u"?this.setPosition(e.row,e.column):this.setPosition(e,n)}return y.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},y.prototype.getDocument=function(){return this.document},y.prototype.onChange=function(k){if(!(k.start.row==k.end.row&&k.start.row!=this.row)&&!(k.start.row>this.row)){var e=b(k,{row:this.row,column:this.column},this.$insertRight);this.setPosition(e.row,e.column,!0)}},y.prototype.setPosition=function(k,e,n){var f;if(n?f={row:k,column:e}:f=this.$clipPositionToDocument(k,e),!(this.row==f.row&&this.column==f.column)){var h={row:this.row,column:this.column};this.row=f.row,this.column=f.column,this._signal("change",{old:h,value:f})}},y.prototype.detach=function(){this.document.off("change",this.$onChange)},y.prototype.attach=function(k){this.document=k||this.document,this.document.on("change",this.$onChange)},y.prototype.$clipPositionToDocument=function(k,e){var n={};return k>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):k<0?(n.row=0,n.column=0):(n.row=k,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,e))),e<0&&(n.column=0),n},y}();v.prototype.$insertRight=!1,N.implement(v.prototype,P);function m(y,k,e){var n=e?y.column<=k.column:y.column=f&&(e=f-1,n=void 0);var h=this.getLine(e);return n==null&&(n=h.length),n=Math.min(Math.max(n,0),h.length),{row:e,column:n}},k.prototype.clonePos=function(e){return{row:e.row,column:e.column}},k.prototype.pos=function(e,n){return{row:e,column:n}},k.prototype.$clipPosition=function(e){var n=this.getLength();return e.row>=n?(e.row=Math.max(0,n-1),e.column=this.getLine(n-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},k.prototype.insertFullLines=function(e,n){e=Math.min(Math.max(e,0),this.getLength());var f=0;e0,h=n=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},k.prototype.replace=function(e,n){if(e instanceof m||(e=m.fromPoints(e.start,e.end)),n.length===0&&e.isEmpty())return e.start;if(n==this.getTextRange(e))return e.end;this.remove(e);var f;return n?f=this.insert(e.start,n):f=e.start,f},k.prototype.applyDeltas=function(e){for(var n=0;n=0;n--)this.revertDelta(e[n])},k.prototype.applyDelta=function(e,n){var f=e.action=="insert";(f?e.lines.length<=1&&!e.lines[0]:!m.comparePoints(e.start,e.end))||(f&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(P(this.$lines,e,n),this._signal("change",e)))},k.prototype.$safeApplyDelta=function(e){var n=this.$lines.length;(e.action=="remove"&&e.start.row=b.$lines.length)throw s=new Error("Invalid delta"),s.data={path:k.$path,linesLength:b.$lines.length,start:h.start,end:h.end},s;b.applyDelta(h,!0)}if(k.$timeout)return y.schedule(k.$timeout);k.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(m){this.$timeout=m},this.setValue=function(m){this.doc.setValue(m),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(m){this.sender.callback(this.doc.getValue(),m)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(v.prototype)});ace.define("ace/mode/css/csslint",[],function(L,D,Y){var N=function(){var P=P||{},v=v||{},m=function(){var e;return e=function(){function n(f,h,s){function a(l,d){if(!h[l]){if(!f[l]){var g=typeof e=="function"&&e;if(!d&&g)return g(l,!0);if(o)return o(l,!0);var w=new Error("Cannot find module '"+l+"'");throw w.code="MODULE_NOT_FOUND",w}var S=h[l]={exports:{}};f[l][0].call(S.exports,function(E){var T=f[l][1][E];return a(T||E)},S,S.exports,n,f,h,s)}return h[l].exports}for(var o=typeof e=="function"&&e,t=0;t"?this.type="child":t==="+"?this.type="adjacent-sibling":t==="~"&&(this.type="sibling")}o.prototype=new s,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],3:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/StringReader"),a=n("../util/SyntaxError");function o(t,l){this.match=function(d){var g;return d.mark(),g=t(d),g?d.drop():d.restore(),g},this.toString=typeof l=="function"?l:function(){return l}}o.prec={MOD:5,SEQ:4,ANDAND:3,OROR:2,ALT:1},o.parse=function(t){var l,d,g,w,S,E,T,A,O;if(l=new s(t),d=function(c){var z=l.readMatch(c);if(z===null)throw new a("Expected "+c,l.getLine(),l.getCol());return z},g=function(){for(var c=[w()];l.readMatch(" | ")!==null;)c.push(w());return c.length===1?c[0]:o.alt.apply(o,c)},w=function(){for(var c=[S()];l.readMatch(" || ")!==null;)c.push(S());return c.length===1?c[0]:o.oror.apply(o,c)},S=function(){for(var c=[E()];l.readMatch(" && ")!==null;)c.push(E());return c.length===1?c[0]:o.andand.apply(o,c)},E=function(){for(var c=[T()];l.readMatch(/^ (?![&|\]])/)!==null;)c.push(T());return c.length===1?c[0]:o.seq.apply(o,c)},T=function(){var c=A();if(l.readMatch("?")!==null)return c.question();if(l.readMatch("*")!==null)return c.star();if(l.readMatch("+")!==null)return c.plus();if(l.readMatch("#")!==null)return c.hash();if(l.readMatch(/^\{\s*/)!==null){var z=d(/^\d+/);d(/^\s*,\s*/);var C=d(/^\d+/);return d(/^\s*\}/),c.braces(Number(z),Number(C))}return c},A=function(){if(l.readMatch("[ ")!==null){var c=g();return d(" ]"),c}return o.fromType(d(/^[^ ?*+#{]+/))},O=g(),!l.eof())throw new a("Expected end of string",l.getLine(),l.getCol());return O},o.cast=function(t){return t instanceof o?t:o.parse(t)},o.fromType=function(t){var l=n("./ValidationTypes");return new o(function(d){return d.hasNext()&&l.isType(d,t)},t)},o.seq=function(){var t=Array.prototype.slice.call(arguments).map(o.cast);return t.length===1?t[0]:new o(function(l){var d,g=!0;for(d=0;g&&dd&&(g="[ "+g+" ]"),g})},o.alt=function(){var t=Array.prototype.slice.call(arguments).map(o.cast);return t.length===1?t[0]:new o(function(l){var d,g=!1;for(d=0;!g&&dd&&(g="[ "+g+" ]"),g})},o.many=function(t){var l=Array.prototype.slice.call(arguments,1).reduce(function(g,w){if(w.expand){var S=n("./ValidationTypes");g.push.apply(g,S.complex[w.expand].options)}else g.push(o.cast(w));return g},[]);t===!0&&(t=l.map(function(){return!0}));var d=new o(function(g){var w=[],S=0,E=0,T=function(c){return E===0?(S=Math.max(c,S),c===l.length):c===S},A=function(c){for(var z=0;z0;for(var O=0;Ow&&(S="[ "+S+" ]"),S});return d.options=l,d},o.andand=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(!0),o.many.apply(o,t)},o.oror=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(!1),o.many.apply(o,t)},o.prototype={constructor:o,match:function(){throw new Error("unimplemented")},toString:function(){throw new Error("unimplemented")},func:function(){return this.match.bind(this)},then:function(t){return o.seq(this,t)},or:function(t){return o.alt(this,t)},andand:function(t){return o.many(!0,this,t)},oror:function(t){return o.many(!1,this,t)},star:function(){return this.braces(0,1/0,"*")},plus:function(){return this.braces(1,1/0,"+")},question:function(){return this.braces(0,1,"?")},hash:function(){return this.braces(1,1/0,"#",o.cast(","))},braces:function(t,l,d,g){var w=this,S=g?g.then(this):this;return d||(d="{"+t+","+l+"}"),new o(function(E){var T=!0,A;for(A=0;A0&&g?T=S.match(E):T=w.match(E),!!T);A++);return A>=t},function(){return w.toString(o.prec.MOD)+d})}}},{"../util/StringReader":24,"../util/SyntaxError":25,"./ValidationTypes":21}],4:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/SyntaxUnit"),a=n("./Parser");function o(t,l){s.call(this,"("+t+(l!==null?":"+l:"")+")",t.startLine,t.startCol,a.MEDIA_FEATURE_TYPE),this.name=t,this.value=l}o.prototype=new s,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],5:[function(n,f,h){"use strict";f.exports=o;var s=n("../util/SyntaxUnit"),a=n("./Parser");function o(t,l,d,g,w){s.call(this,(t?t+" ":"")+(l||"")+(l&&d.length>0?" and ":"")+d.join(" and "),g,w,a.MEDIA_QUERY_TYPE),this.modifier=t,this.mediaType=l,this.features=d}o.prototype=new s,o.prototype.constructor=o},{"../util/SyntaxUnit":26,"./Parser":6}],6:[function(n,f,h){"use strict";f.exports=C;var s=n("../util/EventTarget"),a=n("../util/SyntaxError"),o=n("../util/SyntaxUnit"),t=n("./Combinator"),l=n("./MediaFeature"),d=n("./MediaQuery"),g=n("./PropertyName"),w=n("./PropertyValue"),S=n("./PropertyValuePart"),E=n("./Selector"),T=n("./SelectorPart"),A=n("./SelectorSubPart"),O=n("./TokenStream"),c=n("./Tokens"),z=n("./Validation");function C(U){s.call(this),this.options=U||{},this._tokenStream=null}C.DEFAULT_TYPE=0,C.COMBINATOR_TYPE=1,C.MEDIA_FEATURE_TYPE=2,C.MEDIA_QUERY_TYPE=3,C.PROPERTY_NAME_TYPE=4,C.PROPERTY_VALUE_TYPE=5,C.PROPERTY_VALUE_PART_TYPE=6,C.SELECTOR_TYPE=7,C.SELECTOR_PART_TYPE=8,C.SELECTOR_SUB_PART_TYPE=9,C.prototype=function(){var U=new s,I,_={__proto__:null,constructor:C,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var r=this._tokenStream,i,u,p;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();r.peek()===c.IMPORT_SYM;)this._import(),this._skipCruft();for(;r.peek()===c.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(p=r.peek();p>c.EOF;){try{switch(p){case c.MEDIA_SYM:this._media(),this._skipCruft();break;case c.PAGE_SYM:this._page(),this._skipCruft();break;case c.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case c.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case c.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case c.DOCUMENT_SYM:this._document(),this._skipCruft();break;case c.SUPPORTS_SYM:this._supports(),this._skipCruft();break;case c.UNKNOWN_SYM:if(r.get(),this.options.strict)throw new a("Unknown @ rule.",r.LT(0).startLine,r.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+r.LT(0).value+".",line:r.LT(0).startLine,col:r.LT(0).startCol}),i=0;r.advance([c.LBRACE,c.RBRACE])===c.LBRACE;)i++;for(;i;)r.advance([c.RBRACE]),i--;break;case c.S:this._readWhitespace();break;default:if(!this._ruleset())switch(p){case c.CHARSET_SYM:throw u=r.LT(1),this._charset(!1),new a("@charset not allowed here.",u.startLine,u.startCol);case c.IMPORT_SYM:throw u=r.LT(1),this._import(!1),new a("@import not allowed here.",u.startLine,u.startCol);case c.NAMESPACE_SYM:throw u=r.LT(1),this._namespace(!1),new a("@namespace not allowed here.",u.startLine,u.startCol);default:r.get(),this._unexpectedToken(r.token())}}}catch(x){if(x instanceof a&&!this.options.strict)this.fire({type:"error",error:x,message:x.message,line:x.line,col:x.col});else throw x}p=r.peek()}p!==c.EOF&&this._unexpectedToken(r.token()),this.fire("endstylesheet")},_charset:function(r){var i=this._tokenStream,u,p,x,R;i.match(c.CHARSET_SYM)&&(x=i.token().startLine,R=i.token().startCol,this._readWhitespace(),i.mustMatch(c.STRING),p=i.token(),u=p.value,this._readWhitespace(),i.mustMatch(c.SEMICOLON),r!==!1&&this.fire({type:"charset",charset:u,line:x,col:R}))},_import:function(r){var i=this._tokenStream,u,p,x=[];i.mustMatch(c.IMPORT_SYM),p=i.token(),this._readWhitespace(),i.mustMatch([c.STRING,c.URI]),u=i.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),x=this._media_query_list(),i.mustMatch(c.SEMICOLON),this._readWhitespace(),r!==!1&&this.fire({type:"import",uri:u,media:x,line:p.startLine,col:p.startCol})},_namespace:function(r){var i=this._tokenStream,u,p,x,R;i.mustMatch(c.NAMESPACE_SYM),u=i.token().startLine,p=i.token().startCol,this._readWhitespace(),i.match(c.IDENT)&&(x=i.token().value,this._readWhitespace()),i.mustMatch([c.STRING,c.URI]),R=i.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),i.mustMatch(c.SEMICOLON),this._readWhitespace(),r!==!1&&this.fire({type:"namespace",prefix:x,uri:R,line:u,col:p})},_supports:function(r){var i=this._tokenStream,u,p;if(i.match(c.SUPPORTS_SYM)){for(u=i.token().startLine,p=i.token().startCol,this._readWhitespace(),this._supports_condition(),this._readWhitespace(),i.mustMatch(c.LBRACE),this._readWhitespace(),r!==!1&&this.fire({type:"startsupports",line:u,col:p});this._ruleset(););i.mustMatch(c.RBRACE),this._readWhitespace(),this.fire({type:"endsupports",line:u,col:p})}},_supports_condition:function(){var r=this._tokenStream,i;if(r.match(c.IDENT))i=r.token().value.toLowerCase(),i==="not"?(r.mustMatch(c.S),this._supports_condition_in_parens()):r.unget();else for(this._supports_condition_in_parens(),this._readWhitespace();r.peek()===c.IDENT;)i=r.LT(1).value.toLowerCase(),(i==="and"||i==="or")&&(r.mustMatch(c.IDENT),this._readWhitespace(),this._supports_condition_in_parens(),this._readWhitespace())},_supports_condition_in_parens:function(){var r=this._tokenStream,i;r.match(c.LPAREN)?(this._readWhitespace(),r.match(c.IDENT)?(i=r.token().value.toLowerCase(),i==="not"?(this._readWhitespace(),this._supports_condition(),this._readWhitespace(),r.mustMatch(c.RPAREN)):(r.unget(),this._supports_declaration_condition(!1))):(this._supports_condition(),this._readWhitespace(),r.mustMatch(c.RPAREN))):this._supports_declaration_condition()},_supports_declaration_condition:function(r){var i=this._tokenStream;r!==!1&&i.mustMatch(c.LPAREN),this._readWhitespace(),this._declaration(),i.mustMatch(c.RPAREN)},_media:function(){var r=this._tokenStream,i,u,p;for(r.mustMatch(c.MEDIA_SYM),i=r.token().startLine,u=r.token().startCol,this._readWhitespace(),p=this._media_query_list(),r.mustMatch(c.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:p,line:i,col:u});;)if(r.peek()===c.PAGE_SYM)this._page();else if(r.peek()===c.FONT_FACE_SYM)this._font_face();else if(r.peek()===c.VIEWPORT_SYM)this._viewport();else if(r.peek()===c.DOCUMENT_SYM)this._document();else if(r.peek()===c.SUPPORTS_SYM)this._supports();else if(r.peek()===c.MEDIA_SYM)this._media();else if(!this._ruleset())break;r.mustMatch(c.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:p,line:i,col:u})},_media_query_list:function(){var r=this._tokenStream,i=[];for(this._readWhitespace(),(r.peek()===c.IDENT||r.peek()===c.LPAREN)&&i.push(this._media_query());r.match(c.COMMA);)this._readWhitespace(),i.push(this._media_query());return i},_media_query:function(){var r=this._tokenStream,i=null,u=null,p=null,x=[];if(r.match(c.IDENT)&&(u=r.token().value.toLowerCase(),u!=="only"&&u!=="not"?(r.unget(),u=null):p=r.token()),this._readWhitespace(),r.peek()===c.IDENT?(i=this._media_type(),p===null&&(p=r.token())):r.peek()===c.LPAREN&&(p===null&&(p=r.LT(1)),x.push(this._media_expression())),i===null&&x.length===0)return null;for(this._readWhitespace();r.match(c.IDENT);)r.token().value.toLowerCase()!=="and"&&this._unexpectedToken(r.token()),this._readWhitespace(),x.push(this._media_expression());return new d(u,i,x,p.startLine,p.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var r=this._tokenStream,i=null,u,p=null;return r.mustMatch(c.LPAREN),this._readWhitespace(),i=this._media_feature(),this._readWhitespace(),r.match(c.COLON)&&(this._readWhitespace(),u=r.LT(1),p=this._expression()),r.mustMatch(c.RPAREN),this._readWhitespace(),new l(i,p?new o(p,u.startLine,u.startCol):null)},_media_feature:function(){var r=this._tokenStream;return this._readWhitespace(),r.mustMatch(c.IDENT),o.fromToken(r.token())},_page:function(){var r=this._tokenStream,i,u,p=null,x=null;r.mustMatch(c.PAGE_SYM),i=r.token().startLine,u=r.token().startCol,this._readWhitespace(),r.match(c.IDENT)&&(p=r.token().value,p.toLowerCase()==="auto"&&this._unexpectedToken(r.token())),r.peek()===c.COLON&&(x=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:p,pseudo:x,line:i,col:u}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:p,pseudo:x,line:i,col:u})},_margin:function(){var r=this._tokenStream,i,u,p=this._margin_sym();return p?(i=r.token().startLine,u=r.token().startCol,this.fire({type:"startpagemargin",margin:p,line:i,col:u}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:p,line:i,col:u}),!0):!1},_margin_sym:function(){var r=this._tokenStream;return r.match([c.TOPLEFTCORNER_SYM,c.TOPLEFT_SYM,c.TOPCENTER_SYM,c.TOPRIGHT_SYM,c.TOPRIGHTCORNER_SYM,c.BOTTOMLEFTCORNER_SYM,c.BOTTOMLEFT_SYM,c.BOTTOMCENTER_SYM,c.BOTTOMRIGHT_SYM,c.BOTTOMRIGHTCORNER_SYM,c.LEFTTOP_SYM,c.LEFTMIDDLE_SYM,c.LEFTBOTTOM_SYM,c.RIGHTTOP_SYM,c.RIGHTMIDDLE_SYM,c.RIGHTBOTTOM_SYM])?o.fromToken(r.token()):null},_pseudo_page:function(){var r=this._tokenStream;return r.mustMatch(c.COLON),r.mustMatch(c.IDENT),r.token().value},_font_face:function(){var r=this._tokenStream,i,u;r.mustMatch(c.FONT_FACE_SYM),i=r.token().startLine,u=r.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:i,col:u}),this._readDeclarations(!0),this.fire({type:"endfontface",line:i,col:u})},_viewport:function(){var r=this._tokenStream,i,u;r.mustMatch(c.VIEWPORT_SYM),i=r.token().startLine,u=r.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:i,col:u}),this._readDeclarations(!0),this.fire({type:"endviewport",line:i,col:u})},_document:function(){var r=this._tokenStream,i,u=[],p="";for(r.mustMatch(c.DOCUMENT_SYM),i=r.token(),/^@-([^-]+)-/.test(i.value)&&(p=RegExp.$1),this._readWhitespace(),u.push(this._document_function());r.match(c.COMMA);)this._readWhitespace(),u.push(this._document_function());r.mustMatch(c.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions:u,prefix:p,line:i.startLine,col:i.startCol});for(var x=!0;x;)switch(r.peek()){case c.PAGE_SYM:this._page();break;case c.FONT_FACE_SYM:this._font_face();break;case c.VIEWPORT_SYM:this._viewport();break;case c.MEDIA_SYM:this._media();break;case c.KEYFRAMES_SYM:this._keyframes();break;case c.DOCUMENT_SYM:this._document();break;default:x=Boolean(this._ruleset())}r.mustMatch(c.RBRACE),i=r.token(),this._readWhitespace(),this.fire({type:"enddocument",functions:u,prefix:p,line:i.startLine,col:i.startCol})},_document_function:function(){var r=this._tokenStream,i;return r.match(c.URI)?(i=r.token().value,this._readWhitespace()):i=this._function(),i},_operator:function(r){var i=this._tokenStream,u=null;return(i.match([c.SLASH,c.COMMA])||r&&i.match([c.PLUS,c.STAR,c.MINUS]))&&(u=i.token(),this._readWhitespace()),u?S.fromToken(u):null},_combinator:function(){var r=this._tokenStream,i=null,u;return r.match([c.PLUS,c.GREATER,c.TILDE])&&(u=r.token(),i=new t(u.value,u.startLine,u.startCol),this._readWhitespace()),i},_unary_operator:function(){var r=this._tokenStream;return r.match([c.MINUS,c.PLUS])?r.token().value:null},_property:function(){var r=this._tokenStream,i=null,u=null,p="",x,R,M;if(r.peek()===c.STAR&&this.options.starHack&&(r.get(),x=r.token(),u=x.value,R=x.startLine,M=x.startCol),r.peek()===c.MINUS&&(r.get(),x=r.token(),p=x.value,R=x.startLine,M=x.startCol),r.match(c.IDENT))x=r.token(),p+=x.value,p.charAt(0)==="_"&&this.options.underscoreHack&&(u="_",p=p.substring(1)),i=new g(p,u,R||x.startLine,M||x.startCol),this._readWhitespace();else{var F=r.peek();F!==c.EOF&&F!==c.RBRACE&&this._unexpectedToken(r.LT(1))}return i},_ruleset:function(){var r=this._tokenStream,i,u;try{u=this._selectors_group()}catch(p){if(p instanceof a&&!this.options.strict){if(this.fire({type:"error",error:p,message:p.message,line:p.line,col:p.col}),i=r.advance([c.RBRACE]),i!==c.RBRACE)throw p}else throw p;return!0}return u&&(this.fire({type:"startrule",selectors:u,line:u[0].line,col:u[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:u,line:u[0].line,col:u[0].col})),u},_selectors_group:function(){var r=this._tokenStream,i=[],u;if(u=this._selector(),u!==null)for(i.push(u);r.match(c.COMMA);)this._readWhitespace(),u=this._selector(),u!==null?i.push(u):this._unexpectedToken(r.LT(1));return i.length?i:null},_selector:function(){var r=this._tokenStream,i=[],u=null,p=null,x=null;if(u=this._simple_selector_sequence(),u===null)return null;i.push(u);do if(p=this._combinator(),p!==null)i.push(p),u=this._simple_selector_sequence(),u===null?this._unexpectedToken(r.LT(1)):i.push(u);else if(this._readWhitespace())x=new t(r.token().value,r.token().startLine,r.token().startCol),p=this._combinator(),u=this._simple_selector_sequence(),u===null?p!==null&&this._unexpectedToken(r.LT(1)):(p!==null?i.push(p):i.push(x),i.push(u));else break;while(!0);return new E(i,i[0].line,i[0].col)},_simple_selector_sequence:function(){var r=this._tokenStream,i=null,u=[],p="",x=[function(){return r.match(c.HASH)?new A(r.token().value,"id",r.token().startLine,r.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],R=0,M=x.length,F=null,$,W;for($=r.LT(1).startLine,W=r.LT(1).startCol,i=this._type_selector(),i||(i=this._universal()),i!==null&&(p+=i);r.peek()!==c.S;){for(;R1&&r.unget()),null)},_class:function(){var r=this._tokenStream,i;return r.match(c.DOT)?(r.mustMatch(c.IDENT),i=r.token(),new A("."+i.value,"class",i.startLine,i.startCol-1)):null},_element_name:function(){var r=this._tokenStream,i;return r.match(c.IDENT)?(i=r.token(),new A(i.value,"elementName",i.startLine,i.startCol)):null},_namespace_prefix:function(){var r=this._tokenStream,i="";return(r.LA(1)===c.PIPE||r.LA(2)===c.PIPE)&&(r.match([c.IDENT,c.STAR])&&(i+=r.token().value),r.mustMatch(c.PIPE),i+="|"),i.length?i:null},_universal:function(){var r=this._tokenStream,i="",u;return u=this._namespace_prefix(),u&&(i+=u),r.match(c.STAR)&&(i+="*"),i.length?i:null},_attrib:function(){var r=this._tokenStream,i=null,u,p;return r.match(c.LBRACKET)?(p=r.token(),i=p.value,i+=this._readWhitespace(),u=this._namespace_prefix(),u&&(i+=u),r.mustMatch(c.IDENT),i+=r.token().value,i+=this._readWhitespace(),r.match([c.PREFIXMATCH,c.SUFFIXMATCH,c.SUBSTRINGMATCH,c.EQUALS,c.INCLUDES,c.DASHMATCH])&&(i+=r.token().value,i+=this._readWhitespace(),r.mustMatch([c.IDENT,c.STRING]),i+=r.token().value,i+=this._readWhitespace()),r.mustMatch(c.RBRACKET),new A(i+"]","attribute",p.startLine,p.startCol)):null},_pseudo:function(){var r=this._tokenStream,i=null,u=":",p,x;if(r.match(c.COLON))if(r.match(c.COLON)&&(u+=":"),r.match(c.IDENT)?(i=r.token().value,p=r.token().startLine,x=r.token().startCol-u.length):r.peek()===c.FUNCTION&&(p=r.LT(1).startLine,x=r.LT(1).startCol-u.length,i=this._functional_pseudo()),i)i=new A(u+i,"pseudo",p,x);else{var R=r.LT(1).startLine,M=r.LT(0).startCol;throw new a("Expected a `FUNCTION` or `IDENT` after colon at line "+R+", col "+M+".",R,M)}return i},_functional_pseudo:function(){var r=this._tokenStream,i=null;return r.match(c.FUNCTION)&&(i=r.token().value,i+=this._readWhitespace(),i+=this._expression(),r.mustMatch(c.RPAREN),i+=")"),i},_expression:function(){for(var r=this._tokenStream,i="";r.match([c.PLUS,c.MINUS,c.DIMENSION,c.NUMBER,c.STRING,c.IDENT,c.LENGTH,c.FREQ,c.ANGLE,c.TIME,c.RESOLUTION,c.SLASH]);)i+=r.token().value,i+=this._readWhitespace();return i.length?i:null},_negation:function(){var r=this._tokenStream,i,u,p="",x,R=null;return r.match(c.NOT)&&(p=r.token().value,i=r.token().startLine,u=r.token().startCol,p+=this._readWhitespace(),x=this._negation_arg(),p+=x,p+=this._readWhitespace(),r.match(c.RPAREN),p+=r.token().value,R=new A(p,"not",i,u),R.args.push(x)),R},_negation_arg:function(){var r=this._tokenStream,i=[this._type_selector,this._universal,function(){return r.match(c.HASH)?new A(r.token().value,"id",r.token().startLine,r.token().startCol):null},this._class,this._attrib,this._pseudo],u=null,p=0,x=i.length,R,M,F;for(R=r.LT(1).startLine,M=r.LT(1).startCol;p0?new w(i,i[0].line,i[0].col):null},_term:function(r){var i=this._tokenStream,u=null,p=null,x=null,R=null,M,F,$;return u=this._unary_operator(),u!==null&&(F=i.token().startLine,$=i.token().startCol),i.peek()===c.IE_FUNCTION&&this.options.ieFilters?(p=this._ie_function(),u===null&&(F=i.token().startLine,$=i.token().startCol)):r&&i.match([c.LPAREN,c.LBRACE,c.LBRACKET])?(M=i.token(),x=M.endChar,p=M.value+this._expr(r).text,u===null&&(F=i.token().startLine,$=i.token().startCol),i.mustMatch(c.type(x)),p+=x,this._readWhitespace()):i.match([c.NUMBER,c.PERCENTAGE,c.LENGTH,c.ANGLE,c.TIME,c.FREQ,c.STRING,c.IDENT,c.URI,c.UNICODE_RANGE])?(p=i.token().value,u===null&&(F=i.token().startLine,$=i.token().startCol,R=S.fromToken(i.token())),this._readWhitespace()):(M=this._hexcolor(),M===null?(u===null&&(F=i.LT(1).startLine,$=i.LT(1).startCol),p===null&&(i.LA(3)===c.EQUALS&&this.options.ieFilters?p=this._ie_function():p=this._function())):(p=M.value,u===null&&(F=M.startLine,$=M.startCol))),R!==null?R:p!==null?new S(u!==null?u+p:p,F,$):null},_function:function(){var r=this._tokenStream,i=null,u=null,p;if(r.match(c.FUNCTION)){if(i=r.token().value,this._readWhitespace(),u=this._expr(!0),i+=u,this.options.ieFilters&&r.peek()===c.EQUALS)do for(this._readWhitespace()&&(i+=r.token().value),r.LA(0)===c.COMMA&&(i+=r.token().value),r.match(c.IDENT),i+=r.token().value,r.match(c.EQUALS),i+=r.token().value,p=r.peek();p!==c.COMMA&&p!==c.S&&p!==c.RPAREN;)r.get(),i+=r.token().value,p=r.peek();while(r.match([c.COMMA,c.S]));r.match(c.RPAREN),i+=")",this._readWhitespace()}return i},_ie_function:function(){var r=this._tokenStream,i=null,u;if(r.match([c.IE_FUNCTION,c.FUNCTION])){i=r.token().value;do for(this._readWhitespace()&&(i+=r.token().value),r.LA(0)===c.COMMA&&(i+=r.token().value),r.match(c.IDENT),i+=r.token().value,r.match(c.EQUALS),i+=r.token().value,u=r.peek();u!==c.COMMA&&u!==c.S&&u!==c.RPAREN;)r.get(),i+=r.token().value,u=r.peek();while(r.match([c.COMMA,c.S]));r.match(c.RPAREN),i+=")",this._readWhitespace()}return i},_hexcolor:function(){var r=this._tokenStream,i=null,u;if(r.match(c.HASH)){if(i=r.token(),u=i.value,!/#[a-f0-9]{3,6}/i.test(u))throw new a("Expected a hex color but found '"+u+"' at line "+i.startLine+", col "+i.startCol+".",i.startLine,i.startCol);this._readWhitespace()}return i},_keyframes:function(){var r=this._tokenStream,i,u,p,x="";for(r.mustMatch(c.KEYFRAMES_SYM),i=r.token(),/^@-([^-]+)-/.test(i.value)&&(x=RegExp.$1),this._readWhitespace(),p=this._keyframe_name(),this._readWhitespace(),r.mustMatch(c.LBRACE),this.fire({type:"startkeyframes",name:p,prefix:x,line:i.startLine,col:i.startCol}),this._readWhitespace(),u=r.peek();u===c.IDENT||u===c.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),u=r.peek();this.fire({type:"endkeyframes",name:p,prefix:x,line:i.startLine,col:i.startCol}),this._readWhitespace(),r.mustMatch(c.RBRACE),this._readWhitespace()},_keyframe_name:function(){var r=this._tokenStream;return r.mustMatch([c.IDENT,c.STRING]),o.fromToken(r.token())},_keyframe_rule:function(){var r=this._key_list();this.fire({type:"startkeyframerule",keys:r,line:r[0].line,col:r[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:r,line:r[0].line,col:r[0].col})},_key_list:function(){var r=this._tokenStream,i=[];for(i.push(this._key()),this._readWhitespace();r.match(c.COMMA);)this._readWhitespace(),i.push(this._key()),this._readWhitespace();return i},_key:function(){var r=this._tokenStream,i;if(r.match(c.PERCENTAGE))return o.fromToken(r.token());if(r.match(c.IDENT)){if(i=r.token(),/from|to/i.test(i.value))return o.fromToken(i);r.unget()}this._unexpectedToken(r.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([c.S,c.CDO,c.CDC]););},_readDeclarations:function(r,i){var u=this._tokenStream,p;this._readWhitespace(),r&&u.mustMatch(c.LBRACE),this._readWhitespace();try{for(;;){if(!(u.match(c.SEMICOLON)||i&&this._margin()))if(this._declaration()){if(!u.match(c.SEMICOLON))break}else break;this._readWhitespace()}u.mustMatch(c.RBRACE),this._readWhitespace()}catch(x){if(x instanceof a&&!this.options.strict){if(this.fire({type:"error",error:x,message:x.message,line:x.line,col:x.col}),p=u.advance([c.SEMICOLON,c.RBRACE]),p===c.SEMICOLON)this._readDeclarations(!1,i);else if(p!==c.EOF&&p!==c.RBRACE)throw x}else throw x}},_readWhitespace:function(){for(var r=this._tokenStream,i="";r.match(c.S);)i+=r.token().value;return i},_unexpectedToken:function(r){throw new a("Unexpected token '"+r.value+"' at line "+r.startLine+", col "+r.startCol+".",r.startLine,r.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==c.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(r,i){z.validate(r,i)},parse:function(r){this._tokenStream=new O(r,c),this._stylesheet()},parseStyleSheet:function(r){return this.parse(r)},parseMediaQuery:function(r){this._tokenStream=new O(r,c);var i=this._media_query();return this._verifyEnd(),i},parsePropertyValue:function(r){this._tokenStream=new O(r,c),this._readWhitespace();var i=this._expr();return this._readWhitespace(),this._verifyEnd(),i},parseRule:function(r){this._tokenStream=new O(r,c),this._readWhitespace();var i=this._ruleset();return this._readWhitespace(),this._verifyEnd(),i},parseSelector:function(r){this._tokenStream=new O(r,c),this._readWhitespace();var i=this._selector();return this._readWhitespace(),this._verifyEnd(),i},parseStyleAttribute:function(r){r+="}",this._tokenStream=new O(r,c),this._readDeclarations()}};for(I in _)Object.prototype.hasOwnProperty.call(_,I)&&(U[I]=_[I]);return U}()},{"../util/EventTarget":23,"../util/SyntaxError":25,"../util/SyntaxUnit":26,"./Combinator":2,"./MediaFeature":4,"./MediaQuery":5,"./PropertyName":8,"./PropertyValue":9,"./PropertyValuePart":11,"./Selector":13,"./SelectorPart":14,"./SelectorSubPart":15,"./TokenStream":17,"./Tokens":18,"./Validation":19}],7:[function(n,f,h){"use strict";var s=f.exports={__proto__:null,"align-items":"flex-start | flex-end | center | baseline | stretch","align-content":"flex-start | flex-end | center | space-between | space-around | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch",all:"initial | inherit | unset","-webkit-align-items":"flex-start | flex-end | center | baseline | stretch","-webkit-align-content":"flex-start | flex-end | center | space-between | space-around | stretch","-webkit-align-self":"auto | flex-start | flex-end | center | baseline | stretch","alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical |  | ","alignment-baseline":"auto | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy