|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).csso={})}(this,(function(e){"use strict";function t(e){return{prev:null,next:null,data:e}}function n(e,t,n){var r;return null!==a?(r=a,a=a.cursor,r.prev=t,r.next=n,r.cursor=e.cursor):r={prev:t,next:n,cursor:e.cursor},e.cursor=r,r}function r(e){var t=e.cursor;e.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=a,a=t}var a=null,i=function(){this.cursor=null,this.head=null,this.tail=null};i.createItem=t,i.prototype.createItem=t,i.prototype.updateCursors=function(e,t,n,r){for(var a=this.cursor;null!==a;)a.prev===e&&(a.prev=t),a.next===n&&(a.next=r),a=a.cursor},i.prototype.getSize=function(){for(var e=0,t=this.head;t;)e++,t=t.next;return e},i.prototype.fromArray=function(e){var n=null;this.head=null;for(var r=0;r<e.length;r++){var a=t(e[r]);null!==n?n.next=a:this.head=a,a.prev=n,n=a}return this.tail=n,this},i.prototype.toArray=function(){for(var e=this.head,t=[];e;)t.push(e.data),e=e.next;return t},i.prototype.toJSON=i.prototype.toArray,i.prototype.isEmpty=function(){return null===this.head},i.prototype.first=function(){return this.head&&this.head.data},i.prototype.last=function(){return this.tail&&this.tail.data},i.prototype.each=function(e,t){var a;void 0===t&&(t=this);for(var i=n(this,null,this.head);null!==i.next;)a=i.next,i.next=a.next,e.call(t,a.data,a,this);r(this)},i.prototype.forEach=i.prototype.each,i.prototype.eachRight=function(e,t){var a;void 0===t&&(t=this);for(var i=n(this,this.tail,null);null!==i.prev;)a=i.prev,i.prev=a.prev,e.call(t,a.data,a,this);r(this)},i.prototype.forEachRight=i.prototype.eachRight,i.prototype.nextUntil=function(e,t,a){if(null!==e){var i;void 0===a&&(a=this);for(var o=n(this,null,e);null!==o.next&&(i=o.next,o.next=i.next,!t.call(a,i.data,i,this)););r(this)}},i.prototype.prevUntil=function(e,t,a){if(null!==e){var i;void 0===a&&(a=this);for(var o=n(this,e,null);null!==o.prev&&(i=o.prev,o.prev=i.prev,!t.call(a,i.data,i,this)););r(this)}},i.prototype.some=function(e,t){var n=this.head;for(void 0===t&&(t=this);null!==n;){if(e.call(t,n.data,n,this))return!0;n=n.next}return!1},i.prototype.map=function(e,t){var n=new i,r=this.head;for(void 0===t&&(t=this);null!==r;)n.appendData(e.call(t,r.data,r,this)),r=r.next;return n},i.prototype.filter=function(e,t){var n=new i,r=this.head;for(void 0===t&&(t=this);null!==r;)e.call(t,r.data,r,this)&&n.appendData(r.data),r=r.next;return n},i.prototype.clear=function(){this.head=null,this.tail=null},i.prototype.copy=function(){for(var e=new i,n=this.head;null!==n;)e.insert(t(n.data)),n=n.next;return e},i.prototype.prepend=function(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this},i.prototype.prependData=function(e){return this.prepend(t(e))},i.prototype.append=function(e){return this.insert(e)},i.prototype.appendData=function(e){return this.insert(t(e))},i.prototype.insert=function(e,t){if(null!=t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this},i.prototype.insertData=function(e,n){return this.insert(t(e),n)},i.prototype.remove=function(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e},i.prototype.push=function(e){this.insert(t(e))},i.prototype.pop=function(){if(null!==this.tail)return this.remove(this.tail)},i.prototype.unshift=function(e){this.prepend(t(e))},i.prototype.shift=function(){if(null!==this.head)return this.remove(this.head)},i.prototype.prependList=function(e){return this.insertList(e,this.head)},i.prototype.appendList=function(e){return this.insertList(e)},i.prototype.insertList=function(e,t){return null===e.head?this:(null!=t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)},i.prototype.replace=function(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)};var o=i,s=function(e,t){var n=Object.create(SyntaxError.prototype),r=new Error;return n.name=e,n.message=t,Object.defineProperty(n,"stack",{get:function(){return(r.stack||"").replace(/^(.+\n){1,3}/,e+": "+t+"\n")}}),n},l=100,c=60,u=" ";function h(e,t){function n(e,t){return r.slice(e,t).map((function(t,n){for(var r=String(e+n+1);r.length<h;)r=" "+r;return r+" |"+t})).join("\n")}var r=e.source.split(/\r\n?|\n|\f/),a=e.line,i=e.column,o=Math.max(1,a-t)-1,s=Math.min(a+t,r.length+1),h=Math.max(4,String(s).length)+1,d=0;(i+=(u.length-1)*(r[a-1].substr(0,i-1).match(/\t/g)||[]).length)>l&&(d=i-c+3,i=c-2);for(var p=o;p<=s;p++)p>=0&&p<r.length&&(r[p]=r[p].replace(/\t/g,u),r[p]=(d>0&&r[p].length>d?"…":"")+r[p].substr(d,l-2)+(r[p].length>d+l-1?"…":""));return[n(o,a),new Array(i+h+2).join("-")+"^",n(a,s)].filter(Boolean).join("\n")}var d=function(e,t,n,r,a){var i=s("SyntaxError",e);return i.source=t,i.offset=n,i.line=r,i.column=a,i.sourceFragment=function(e){return h(i,isNaN(e)?0:e)},Object.defineProperty(i,"formattedMessage",{get:function(){return"Parse error: "+i.message+"\n"+h(i,2)}}),i.parseError={offset:n,line:r,column:a},i},p={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25},f=Object.keys(p).reduce((function(e,t){return e[p[t]]=t,e}),{}),m={TYPE:p,NAME:f},g=0;function b(e){return e>=48&&e<=57}function y(e){return e>=65&&e<=90}function v(e){return e>=97&&e<=122}function k(e){return y(e)||v(e)}function w(e){return e>=128}function x(e){return k(e)||w(e)||95===e}function S(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function C(e){return 10===e||13===e||12===e}function A(e){return C(e)||32===e||9===e}function z(e,t){return 92===e&&(!C(t)&&t!==g)}var P=new Array(128);T.Eof=128,T.WhiteSpace=130,T.Digit=131,T.NameStart=132,T.NonPrintable=133;for(var L=0;L<P.length;L++)switch(!0){case A(L):P[L]=T.WhiteSpace;break;case b(L):P[L]=T.Digit;break;case x(L):P[L]=T.NameStart;break;case S(L):P[L]=T.NonPrintable;break;default:P[L]=L||T.Eof}function T(e){return e<128?P[e]:T.NameStart}var E={isDigit:b,isHexDigit:function(e){return b(e)||e>=65&&e<=70||e>=97&&e<=102},isUppercaseLetter:y,isLowercaseLetter:v,isLetter:k,isNonAscii:w,isNameStart:x,isName:function(e){return x(e)||b(e)||45===e},isNonPrintable:S,isNewline:C,isWhiteSpace:A,isValidEscape:z,isIdentifierStart:function(e,t,n){return 45===e?x(t)||45===t||z(t,n):!!x(e)||92===e&&z(e,t)},isNumberStart:function(e,t,n){return 43===e||45===e?b(t)?2:46===t&&b(n)?3:0:46===e?b(t)?2:0:b(e)?1:0},isBOM:function(e){return 65279===e?1:65534===e?1:0},charCodeCategory:T},O=E.isDigit,D=E.isHexDigit,M=E.isUppercaseLetter,I=E.isName,R=E.isWhiteSpace,N=E.isValidEscape;function B(e,t){return t<e.length?e.charCodeAt(t):0}function j(e,t,n){return 13===n&&10===B(e,t+1)?2:1}function _(e,t,n){var r=e.charCodeAt(t);return M(r)&&(r|=32),r===n}function W(e,t){for(;t<e.length&&O(e.charCodeAt(t));t++);return t}function q(e,t){if(D(B(e,(t+=2)-1))){for(var n=Math.min(e.length,t+5);t<n&&D(B(e,t));t++);var r=B(e,t);R(r)&&(t+=j(e,t,r))}return t}var F={consumeEscaped:q,consumeName:function(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(!I(n)){if(!N(n,B(e,t+1)))break;t=q(e,t)-1}}return t},consumeNumber:function(e,t){var n=e.charCodeAt(t);if(43!==n&&45!==n||(n=e.charCodeAt(t+=1)),O(n)&&(t=W(e,t+1),n=e.charCodeAt(t)),46===n&&O(e.charCodeAt(t+1))&&(n=e.charCodeAt(t+=2),t=W(e,t)),_(e,t,101)){var r=0;45!==(n=e.charCodeAt(t+1))&&43!==n||(r=1,n=e.charCodeAt(t+2)),O(n)&&(t=W(e,t+1+r+1))}return t},consumeBadUrlRemnants:function(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(41===n){t++;break}N(n,B(e,t+1))&&(t=q(e,t))}return t},cmpChar:_,cmpStr:function(e,t,n,r){if(n-t!==r.length)return!1;if(t<0||n>e.length)return!1;for(var a=t;a<n;a++){var i=e.charCodeAt(a),o=r.charCodeAt(a-t);if(M(i)&&(i|=32),i!==o)return!1}return!0},getNewlineLength:j,findWhiteSpaceStart:function(e,t){for(;t>=0&&R(e.charCodeAt(t));t--);return t+1},findWhiteSpaceEnd:function(e,t){for(;t<e.length&&R(e.charCodeAt(t));t++);return t}},U=m.TYPE,Y=m.NAME,H=F.cmpStr,V=U.EOF,G=U.WhiteSpace,K=U.Comment,$=function(){this.offsetAndType=null,this.balance=null,this.reset()};$.prototype={reset:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset},lookupType:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>24:V},lookupOffset:function(e){return(e+=this.tokenIndex)<this.tokenCount?16777215&this.offsetAndType[e-1]:this.source.length},lookupValue:function(e,t){return(e+=this.tokenIndex)<this.tokenCount&&H(this.source,16777215&this.offsetAndType[e-1],16777215&this.offsetAndType[e],t)},getTokenStart:function(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?16777215&this.offsetAndType[e-1]:16777215&this.offsetAndType[this.tokenCount]:this.firstCharOffset},getRawLength:function(e,t){var n,r=e,a=16777215&this.offsetAndType[Math.max(r-1,0)];e:for(;r<this.tokenCount&&!((n=this.balance[r])<e);r++)switch(t(this.offsetAndType[r]>>24,this.source,a)){case 1:break e;case 2:r++;break e;default:a=16777215&this.offsetAndType[r],this.balance[n]===r&&(r=n)}return r-this.tokenIndex},isBalanceEdge:function(e){return this.balance[this.tokenIndex]<e},isDelim:function(e,t){return t?this.lookupType(t)===U.Delim&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===U.Delim&&this.source.charCodeAt(this.tokenStart)===e},getTokenValue:function(){return this.source.substring(this.tokenStart,this.tokenEnd)},getTokenLength:function(){return this.tokenEnd-this.tokenStart},substrToCursor:function(e){return this.source.substring(e,this.tokenStart)},skipWS:function(){for(var e=this.tokenIndex,t=0;e<this.tokenCount&&this.offsetAndType[e]>>24===G;e++,t++);t>0&&this.skip(t)},skipSC:function(){for(;this.tokenType===G||this.tokenType===K;)this.next()},skip:function(e){var t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=16777215&this.offsetAndType[t-1],t=this.offsetAndType[t],this.tokenType=t>>24,this.tokenEnd=16777215&t):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>24,this.tokenEnd=16777215&e):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=V,this.tokenStart=this.tokenEnd=this.source.length)},dump:function(){var e=this.firstCharOffset;return Array.prototype.slice.call(this.offsetAndType,0,this.tokenCount).map((function(t,n){var r=e,a=16777215&t;return e=a,{idx:n,type:Y[t>>24],chunk:this.source.substring(r,a),balance:this.balance[n]}}),this)}};var Q=$;function X(e){return e}function Z(e,t,n,r){var a,i;switch(e.type){case"Group":a=function(e,t,n,r){var a=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",i=e.terms.map((function(e){return Z(e,t,n,r)})).join(a);return(e.explicit||n)&&(i=(r||","===i[0]?"[":"[ ")+i+(r?"]":" ]")),i}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Z(e.term,t,n,r)+t(0===(i=e).min&&0===i.max?"*":0===i.min&&1===i.max?"?":1===i.min&&0===i.max?i.comma?"#":"+":1===i.min&&1===i.max?"":(i.comma?"#":"")+(i.min===i.max?"{"+i.min+"}":"{"+i.min+","+(0!==i.max?i.max:"")+"}"),e);case"Type":a="<"+e.name+(e.opts?t(function(e){switch(e.type){case"Range":return" ["+(null===e.min?"-∞":e.min)+","+(null===e.max?"∞":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}(e.opts),e.opts):"")+">";break;case"Property":a="<'"+e.name+"'>";break;case"Keyword":a=e.name;break;case"AtKeyword":a="@"+e.name;break;case"Function":a=e.name+"(";break;case"String":case"Token":a=e.value;break;case"Comma":a=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(a,e)}var J=function(e,t){var n=X,r=!1,a=!1;return"function"==typeof t?n=t:t&&(r=Boolean(t.forceBraces),a=Boolean(t.compact),"function"==typeof t.decorate&&(n=t.decorate)),Z(e,n,r,a)};function ee(e,t){var n=e&&e.loc&&e.loc[t];return n?{offset:n.offset,line:n.line,column:n.column}:null}var te=function(e,t){var n=s("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},ne=function(e,t,n,r){var a=s("SyntaxMatchError",e),i=function(e){for(var t=e.tokens,n=e.longestMatch,r=n<t.length?t[n].node:null,a=-1,i=0,o="",s=0;s<t.length;s++)s===n&&(a=o.length),null!==r&&t[s].node===r&&(s<=n?i++:i=0),o+=t[s].value;return{node:r,css:o,mismatchOffset:-1===a?o.length:a,last:null===r||i>1}}(r),o=i.mismatchOffset||0,l=i.node||n,c=ee(l,"end"),u=i.last?c:ee(l,"start"),h=i.css;return a.rawMessage=e,a.syntax=t?J(t):"<generic>",a.css=h,a.mismatchOffset=o,a.loc={source:l&&l.loc&&l.loc.source||"<unknown>",start:u,end:c},a.line=u?u.line:void 0,a.column=u?u.column:void 0,a.offset=u?u.offset:void 0,a.message=e+"\n syntax: "+a.syntax+"\n value: "+(a.css||"<empty string>")+"\n --------"+new Array(a.mismatchOffset+1).join("-")+"^",a},re=Object.prototype.hasOwnProperty,ae=Object.create(null),ie=Object.create(null),oe=45;function se(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===oe&&e.charCodeAt(t+1)===oe}function le(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===oe&&e.charCodeAt(t+1)!==oe){var n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var ce={keyword:function(e){if(re.call(ae,e))return ae[e];var t=e.toLowerCase();if(re.call(ae,t))return ae[e]=ae[t];var n=se(t,0),r=n?"":le(t,0);return ae[e]=Object.freeze({basename:t.substr(r.length),name:t,vendor:r,prefix:r,custom:n})},property:function(e){if(re.call(ie,e))return ie[e];var t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");var r=se(t,n.length);if(!r&&(t=t.toLowerCase(),re.call(ie,t)))return ie[e]=ie[t];var a=r?"":le(t,n.length),i=t.substr(0,n.length+a.length);return ie[e]=Object.freeze({basename:t.substr(i.length),name:t.substr(n.length),hack:n,vendor:a,prefix:i,custom:r})},isCustomProperty:se,vendorPrefix:le},ue="undefined"!=typeof Uint32Array?Uint32Array:Array,he=function(e,t){return null===e||e.length<t?new ue(Math.max(t+1024,16384)):e},de=m.TYPE,pe=E.isNewline,fe=E.isName,me=E.isValidEscape,ge=E.isNumberStart,be=E.isIdentifierStart,ye=E.charCodeCategory,ve=E.isBOM,ke=F.cmpStr,we=F.getNewlineLength,xe=F.findWhiteSpaceEnd,Se=F.consumeEscaped,Ce=F.consumeName,Ae=F.consumeNumber,ze=F.consumeBadUrlRemnants,Pe=16777215,Le=24;function Te(e,t){function n(t){return t<o?e.charCodeAt(t):0}function r(){return h=Ae(e,h),be(n(h),n(h+1),n(h+2))?(g=de.Dimension,void(h=Ce(e,h))):37===n(h)?(g=de.Percentage,void h++):void(g=de.Number)}function a(){const t=h;return h=Ce(e,h),ke(e,t,h,"url")&&40===n(h)?34===n(h=xe(e,h+1))||39===n(h)?(g=de.Function,void(h=t+4)):void function(){for(g=de.Url,h=xe(e,h);h<e.length;h++){var t=e.charCodeAt(h);switch(ye(t)){case 41:return void h++;case ye.Eof:return;case ye.WhiteSpace:return 41===n(h=xe(e,h))||h>=e.length?void(h<e.length&&h++):(h=ze(e,h),void(g=de.BadUrl));case 34:case 39:case 40:case ye.NonPrintable:return h=ze(e,h),void(g=de.BadUrl);case 92:if(me(t,n(h+1))){h=Se(e,h)-1;break}return h=ze(e,h),void(g=de.BadUrl)}}}():40===n(h)?(g=de.Function,void h++):void(g=de.Ident)}function i(t){for(t||(t=n(h++)),g=de.String;h<e.length;h++){var r=e.charCodeAt(h);switch(ye(r)){case t:return void h++;case ye.Eof:return;case ye.WhiteSpace:if(pe(r))return h+=we(e,h,r),void(g=de.BadString);break;case 92:if(h===e.length-1)break;var a=n(h+1);pe(a)?h+=we(e,h+1,a):me(r,a)&&(h=Se(e,h)-1)}}}t||(t=new Q);for(var o=(e=String(e||"")).length,s=he(t.offsetAndType,o+1),l=he(t.balance,o+1),c=0,u=ve(n(0)),h=u,d=0,p=0,f=0;h<o;){var m=e.charCodeAt(h),g=0;switch(l[c]=o,ye(m)){case ye.WhiteSpace:g=de.WhiteSpace,h=xe(e,h+1);break;case 34:i();break;case 35:fe(n(h+1))||me(n(h+1),n(h+2))?(g=de.Hash,h=Ce(e,h+1)):(g=de.Delim,h++);break;case 39:i();break;case 40:g=de.LeftParenthesis,h++;break;case 41:g=de.RightParenthesis,h++;break;case 43:ge(m,n(h+1),n(h+2))?r():(g=de.Delim,h++);break;case 44:g=de.Comma,h++;break;case 45:ge(m,n(h+1),n(h+2))?r():45===n(h+1)&&62===n(h+2)?(g=de.CDC,h+=3):be(m,n(h+1),n(h+2))?a():(g=de.Delim,h++);break;case 46:ge(m,n(h+1),n(h+2))?r():(g=de.Delim,h++);break;case 47:42===n(h+1)?(g=de.Comment,1===(h=e.indexOf("*/",h+2)+2)&&(h=e.length)):(g=de.Delim,h++);break;case 58:g=de.Colon,h++;break;case 59:g=de.Semicolon,h++;break;case 60:33===n(h+1)&&45===n(h+2)&&45===n(h+3)?(g=de.CDO,h+=4):(g=de.Delim,h++);break;case 64:be(n(h+1),n(h+2),n(h+3))?(g=de.AtKeyword,h=Ce(e,h+1)):(g=de.Delim,h++);break;case 91:g=de.LeftSquareBracket,h++;break;case 92:me(m,n(h+1))?a():(g=de.Delim,h++);break;case 93:g=de.RightSquareBracket,h++;break;case 123:g=de.LeftCurlyBracket,h++;break;case 125:g=de.RightCurlyBracket,h++;break;case ye.Digit:r();break;case ye.NameStart:a();break;case ye.Eof:break;default:g=de.Delim,h++}switch(g){case d:for(d=(p=l[f=p&Pe])>>Le,l[c]=f,l[f++]=c;f<c;f++)l[f]===o&&(l[f]=c);break;case de.LeftParenthesis:case de.Function:l[c]=p,p=(d=de.RightParenthesis)<<Le|c;break;case de.LeftSquareBracket:l[c]=p,p=(d=de.RightSquareBracket)<<Le|c;break;case de.LeftCurlyBracket:l[c]=p,p=(d=de.RightCurlyBracket)<<Le|c}s[c++]=g<<Le|h}for(s[c]=de.EOF<<Le|h,l[c]=o,l[o]=o;0!==p;)p=l[f=p&Pe],l[f]=o;return t.source=e,t.firstCharOffset=u,t.offsetAndType=s,t.tokenCount=c,t.balance=l,t.reset(),t.next(),t}Object.keys(m).forEach((function(e){Te[e]=m[e]})),Object.keys(E).forEach((function(e){Te[e]=E[e]})),Object.keys(F).forEach((function(e){Te[e]=F[e]}));var Ee=Te,Oe=Ee.isDigit,De=Ee.cmpChar,Me=Ee.TYPE,Ie=Me.Delim,Re=Me.WhiteSpace,Ne=Me.Comment,Be=Me.Ident,je=Me.Number,_e=Me.Dimension,We=43,qe=45;function Fe(e,t){return null!==e&&e.type===Ie&&e.value.charCodeAt(0)===t}function Ue(e,t,n){for(;null!==e&&(e.type===Re||e.type===Ne);)e=n(++t);return t}function Ye(e,t,n,r){if(!e)return 0;var a=e.value.charCodeAt(t);if(a===We||a===qe){if(n)return 0;t++}for(;t<e.value.length;t++)if(!Oe(e.value.charCodeAt(t)))return 0;return r+1}function He(e,t,n){var r=!1,a=Ue(e,t,n);if(null===(e=n(a)))return t;if(e.type!==je){if(!Fe(e,We)&&!Fe(e,qe))return t;if(r=!0,a=Ue(n(++a),a,n),null===(e=n(a))&&e.type!==je)return 0}if(!r){var i=e.value.charCodeAt(0);if(i!==We&&i!==qe)return 0}return Ye(e,r?0:1,r,a)}var Ve=Ee.isHexDigit,Ge=Ee.cmpChar,Ke=Ee.TYPE,$e=Ke.Ident,Qe=Ke.Delim,Xe=Ke.Number,Ze=Ke.Dimension,Je=45,et=63;function tt(e,t){return null!==e&&e.type===Qe&&e.value.charCodeAt(0)===t}function nt(e,t){return e.value.charCodeAt(0)===t}function rt(e,t,n){for(var r=t,a=0;r<e.value.length;r++){var i=e.value.charCodeAt(r);if(i===Je&&n&&0!==a)return rt(e,t+a+1,!1)>0?6:0;if(!Ve(i))return 0;if(++a>6)return 0}return a}function at(e,t,n){if(!e)return 0;for(;tt(n(t),et);){if(++e>6)return 0;t++}return t}var it=Ee.isIdentifierStart,ot=Ee.isHexDigit,st=Ee.isDigit,lt=Ee.cmpStr,ct=Ee.consumeNumber,ut=Ee.TYPE,ht=["unset","initial","inherit"],dt=["calc(","-moz-calc(","-webkit-calc("];function pt(e,t){return t<e.length?e.charCodeAt(t):0}function ft(e,t){return lt(e,0,e.length,t)}function mt(e,t){for(var n=0;n<t.length;n++)if(ft(e,t[n]))return!0;return!1}function gt(e,t){return t===e.length-2&&(92===e.charCodeAt(t)&&st(e.charCodeAt(t+1)))}function bt(e,t,n){if(e&&"Range"===e.type){var r=Number(void 0!==n&&n!==t.length?t.substr(0,n):t);if(isNaN(r))return!0;if(null!==e.min&&r<e.min)return!0;if(null!==e.max&&r>e.max)return!0}return!1}function yt(e,t){var n=e.index,r=0;do{if(r++,e.balance<=n)break}while(e=t(r));return r}function vt(e){return function(t,n,r){return null===t?0:t.type===ut.Function&&mt(t.value,dt)?yt(t,n):e(t,n,r)}}function kt(e){return function(t){return null===t||t.type!==e?0:1}}function wt(e){return function(t,n,r){if(null===t||t.type!==ut.Dimension)return 0;var a=ct(t.value,0);if(null!==e){var i=t.value.indexOf("\\",a),o=-1!==i&>(t.value,i)?t.value.substring(a,i):t.value.substr(a);if(!1===e.hasOwnProperty(o.toLowerCase()))return 0}return bt(r,t.value,a)?0:1}}function xt(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===ut.Number&&0===Number(t.value)?1:e(t,n,r)}}var St,Ct={"ident-token":kt(ut.Ident),"function-token":kt(ut.Function),"at-keyword-token":kt(ut.AtKeyword),"hash-token":kt(ut.Hash),"string-token":kt(ut.String),"bad-string-token":kt(ut.BadString),"url-token":kt(ut.Url),"bad-url-token":kt(ut.BadUrl),"delim-token":kt(ut.Delim),"number-token":kt(ut.Number),"percentage-token":kt(ut.Percentage),"dimension-token":kt(ut.Dimension),"whitespace-token":kt(ut.WhiteSpace),"CDO-token":kt(ut.CDO),"CDC-token":kt(ut.CDC),"colon-token":kt(ut.Colon),"semicolon-token":kt(ut.Semicolon),"comma-token":kt(ut.Comma),"[-token":kt(ut.LeftSquareBracket),"]-token":kt(ut.RightSquareBracket),"(-token":kt(ut.LeftParenthesis),")-token":kt(ut.RightParenthesis),"{-token":kt(ut.LeftCurlyBracket),"}-token":kt(ut.RightCurlyBracket),string:kt(ut.String),ident:kt(ut.Ident),"custom-ident":function(e){if(null===e||e.type!==ut.Ident)return 0;var t=e.value.toLowerCase();return mt(t,ht)?0:ft(t,"default")?0:1},"custom-property-name":function(e){return null===e||e.type!==ut.Ident?0:45!==pt(e.value,0)||45!==pt(e.value,1)?0:1},"hex-color":function(e){if(null===e||e.type!==ut.Hash)return 0;var t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(var n=1;n<t;n++)if(!ot(e.value.charCodeAt(n)))return 0;return 1},"id-selector":function(e){return null===e||e.type!==ut.Hash?0:it(pt(e.value,1),pt(e.value,2),pt(e.value,3))?1:0},"an-plus-b":function(e,t){var n=0;if(!e)return 0;if(e.type===je)return Ye(e,0,!1,n);if(e.type===Be&&e.value.charCodeAt(0)===qe){if(!De(e.value,1,110))return 0;switch(e.value.length){case 2:return He(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==qe?0:(n=Ue(t(++n),n,t),Ye(e=t(n),0,!0,n));default:return e.value.charCodeAt(2)!==qe?0:Ye(e,3,!0,n)}}else if(e.type===Be||Fe(e,We)&&t(n+1).type===Be){if(e.type!==Be&&(e=t(++n)),null===e||!De(e.value,0,110))return 0;switch(e.value.length){case 1:return He(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==qe?0:(n=Ue(t(++n),n,t),Ye(e=t(n),0,!0,n));default:return e.value.charCodeAt(1)!==qe?0:Ye(e,2,!0,n)}}else if(e.type===_e){for(var r=e.value.charCodeAt(0),a=r===We||r===qe?1:0,i=a;i<e.value.length&&Oe(e.value.charCodeAt(i));i++);return i===a?0:De(e.value,i,110)?i+1===e.value.length?He(t(++n),n,t):e.value.charCodeAt(i+1)!==qe?0:i+2===e.value.length?(n=Ue(t(++n),n,t),Ye(e=t(n),0,!0,n)):Ye(e,i+2,!0,n):0}return 0},urange:function(e,t){var n=0;if(null===e||e.type!==$e||!Ge(e.value,0,117))return 0;if(null===(e=t(++n)))return 0;if(tt(e,43))return null===(e=t(++n))?0:e.type===$e?at(rt(e,0,!0),++n,t):tt(e,et)?at(1,++n,t):0;if(e.type===Xe){if(!nt(e,43))return 0;var r=rt(e,1,!0);return 0===r?0:null===(e=t(++n))?n:e.type===Ze||e.type===Xe?nt(e,Je)&&rt(e,1,!1)?n+1:0:at(r,n,t)}return e.type===Ze&&nt(e,43)?at(rt(e,1,!0),++n,t):0},"declaration-value":function(e,t){if(!e)return 0;var n=0,r=0,a=e.index;e:do{switch(e.type){case ut.BadString:case ut.BadUrl:break e;case ut.RightCurlyBracket:case ut.RightParenthesis:case ut.RightSquareBracket:if(e.balance>e.index||e.balance<a)break e;r--;break;case ut.Semicolon:if(0===r)break e;break;case ut.Delim:if("!"===e.value&&0===r)break e;break;case ut.Function:case ut.LeftParenthesis:case ut.LeftSquareBracket:case ut.LeftCurlyBracket:r++}if(n++,e.balance<=a)break}while(e=t(n));return n},"any-value":function(e,t){if(!e)return 0;var n=e.index,r=0;e:do{switch(e.type){case ut.BadString:case ut.BadUrl:break e;case ut.RightCurlyBracket:case ut.RightParenthesis:case ut.RightSquareBracket:if(e.balance>e.index||e.balance<n)break e}if(r++,e.balance<=n)break}while(e=t(r));return r},dimension:vt(wt(null)),angle:vt(wt({deg:!0,grad:!0,rad:!0,turn:!0})),decibel:vt(wt({db:!0})),frequency:vt(wt({hz:!0,khz:!0})),flex:vt(wt({fr:!0})),length:vt(xt(wt({px:!0,mm:!0,cm:!0,in:!0,pt:!0,pc:!0,q:!0,em:!0,ex:!0,ch:!0,rem:!0,vh:!0,vw:!0,vmin:!0,vmax:!0,vm:!0}))),resolution:vt(wt({dpi:!0,dpcm:!0,dppx:!0,x:!0})),semitones:vt(wt({st:!0})),time:vt(wt({s:!0,ms:!0})),percentage:vt((function(e,t,n){return null===e||e.type!==ut.Percentage?0:bt(n,e.value,e.value.length-1)?0:1})),zero:xt(),number:vt((function(e,t,n){if(null===e)return 0;var r=ct(e.value,0);return r===e.value.length||gt(e.value,r)?bt(n,e.value,r)?0:1:0})),integer:vt((function(e,t,n){if(null===e||e.type!==ut.Number)return 0;for(var r=43===e.value.charCodeAt(0)||45===e.value.charCodeAt(0)?1:0;r<e.value.length;r++)if(!st(e.value.charCodeAt(r)))return 0;return bt(n,e.value,r)?0:1})),"-ms-legacy-expression":(St="expression",St+="(",function(e,t){return null!==e&&ft(e.value,St)?yt(e,t):0})},At=function(e,t,n){var r=s("SyntaxError",e);return r.input=t,r.offset=n,r.rawMessage=e,r.message=r.rawMessage+"\n "+r.input+"\n--"+new Array((r.offset||r.input.length)+1).join("-")+"^",r},zt=function(e){this.str=e,this.pos=0};zt.prototype={charCodeAt:function(e){return e<this.str.length?this.str.charCodeAt(e):0},charCode:function(){return this.charCodeAt(this.pos)},nextCharCode:function(){return this.charCodeAt(this.pos+1)},nextNonWsCode:function(e){return this.charCodeAt(this.findWsEnd(e))},findWsEnd:function(e){for(;e<this.str.length;e++){var t=this.str.charCodeAt(e);if(13!==t&&10!==t&&12!==t&&32!==t&&9!==t)break}return e},substringToPos:function(e){return this.str.substring(this.pos,this.pos=e)},eat:function(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++},peek:function(){return this.pos<this.str.length?this.str.charAt(this.pos++):""},error:function(e){throw new At(e,this.str,this.pos)}};var Pt=zt,Lt=9,Tt=10,Et=12,Ot=13,Dt=32,Mt=33,It=35,Rt=38,Nt=39,Bt=40,jt=41,_t=42,Wt=43,qt=44,Ft=45,Ut=60,Yt=62,Ht=63,Vt=64,Gt=91,Kt=93,$t=123,Qt=124,Xt=125,Zt=8734,Jt=function(e){for(var t="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),n=0;n<128;n++)t[n]=e(String.fromCharCode(n))?1:0;return t}((function(e){return/[a-zA-Z0-9\-]/.test(e)})),en={" ":1,"&&":2,"||":3,"|":4};function tn(e){return e.substringToPos(e.findWsEnd(e.pos))}function nn(e){for(var t=e.pos;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n>=128||0===Jt[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function rn(e){for(var t=e.pos;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function an(e){var t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function on(e){var t,n=null;return e.eat($t),t=rn(e),e.charCode()===qt?(e.pos++,e.charCode()!==Xt&&(n=rn(e))):n=t,e.eat(Xt),{min:Number(t),max:n?Number(n):0}}function sn(e,t){var n=function(e){var t=null,n=!1;switch(e.charCode()){case _t:e.pos++,t={min:0,max:0};break;case Wt:e.pos++,t={min:1,max:0};break;case Ht:e.pos++,t={min:0,max:1};break;case It:e.pos++,n=!0,t=e.charCode()===$t?on(e):{min:1,max:0};break;case $t:t=on(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,n):t}function ln(e){var t=e.peek();return""===t?null:{type:"Token",value:t}}function cn(e){var t,n=null;return e.eat(Ut),t=nn(e),e.charCode()===Bt&&e.nextCharCode()===jt&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Gt&&(tn(e),n=function(e){var t=null,n=null,r=1;return e.eat(Gt),e.charCode()===Ft&&(e.peek(),r=-1),-1==r&&e.charCode()===Zt?e.peek():t=r*Number(rn(e)),tn(e),e.eat(qt),tn(e),e.charCode()===Zt?e.peek():(r=1,e.charCode()===Ft&&(e.peek(),r=-1),n=r*Number(rn(e))),e.eat(Kt),null===t&&null===n?null:{type:"Range",min:t,max:n}}(e)),e.eat(Yt),sn(e,{type:"Type",name:t,opts:n})}function un(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}for(t=Object.keys(t).sort((function(e,t){return en[e]-en[t]}));t.length>0;){for(var r=t.shift(),a=0,i=0;a<e.length;a++){var o=e[a];"Combinator"===o.type&&(o.value===r?(-1===i&&(i=a-1),e.splice(a,1),a--):(-1!==i&&a-i>1&&(e.splice(i,a-i,n(e.slice(i,a),r)),a=i+1),i=-1))}-1!==i&&t.length&&e.splice(i,a-i,n(e.slice(i,a),r))}return r}function hn(e){for(var t,n=[],r={},a=null,i=e.pos;t=dn(e);)"Spaces"!==t.type&&("Combinator"===t.type?(null!==a&&"Combinator"!==a.type||(e.pos=i,e.error("Unexpected combinator")),r[t.value]=!0):null!==a&&"Combinator"!==a.type&&(r[" "]=!0,n.push({type:"Combinator",value:" "})),n.push(t),a=t,i=e.pos);return null!==a&&"Combinator"===a.type&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:n,combinator:un(n,r)||" ",disallowEmpty:!1,explicit:!1}}function dn(e){var t=e.charCode();if(t<128&&1===Jt[t])return function(e){var t;return t=nn(e),e.charCode()===Bt?(e.pos++,{type:"Function",name:t}):sn(e,{type:"Keyword",name:t})}(e);switch(t){case Kt:break;case Gt:return sn(e,function(e){var t;return e.eat(Gt),t=hn(e),e.eat(Kt),t.explicit=!0,e.charCode()===Mt&&(e.pos++,t.disallowEmpty=!0),t}(e));case Ut:return e.nextCharCode()===Nt?function(e){var t;return e.eat(Ut),e.eat(Nt),t=nn(e),e.eat(Nt),e.eat(Yt),sn(e,{type:"Property",name:t})}(e):cn(e);case Qt:return{type:"Combinator",value:e.substringToPos(e.nextCharCode()===Qt?e.pos+2:e.pos+1)};case Rt:return e.pos++,e.eat(Rt),{type:"Combinator",value:"&&"};case qt:return e.pos++,{type:"Comma"};case Nt:return sn(e,{type:"String",value:an(e)});case Dt:case Lt:case Tt:case Ot:case Et:return{type:"Spaces",value:tn(e)};case Vt:return(t=e.nextCharCode())<128&&1===Jt[t]?(e.pos++,{type:"AtKeyword",name:nn(e)}):ln(e);case _t:case Wt:case Ht:case It:case Mt:break;case $t:if((t=e.nextCharCode())<48||t>57)return ln(e);break;default:return ln(e)}}function pn(e){var t=new Pt(e),n=hn(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type&&(n=n.terms[0]),n}pn("[a&&<b>#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!");var fn=pn,mn=function(){};function gn(e){return"function"==typeof e?e:mn}var bn=function(e,t,n){var r=mn,a=mn;if("function"==typeof t?r=t:t&&(r=gn(t.enter),a=gn(t.leave)),r===mn&&a===mn)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}a.call(n,t)}(e)},yn=new Q,vn={decorator:function(e){var t=null,n={len:0,node:null},r=[n],a="";return{children:e.children,node:function(n){var r=t;t=n,e.node.call(this,n),t=r},chunk:function(e){a+=e,n.node!==t?r.push({len:e.length,node:t}):n.len+=e.length},result:function(){return kn(a,r)}}}};function kn(e,t){var n=[],r=0,a=0,i=t?t[a].node:null;for(Ee(e,yn);!yn.eof;){if(t)for(;a<t.length&&r+t[a].len<=yn.tokenStart;)r+=t[a++].len,i=t[a].node;n.push({type:yn.tokenType,value:yn.getTokenValue(),index:yn.tokenIndex,balance:yn.balance[yn.tokenIndex],node:i}),yn.next()}return n}var wn=function(e,t){return"string"==typeof e?kn(e,null):t.generate(e,vn)},xn={type:"Match"},Sn={type:"Mismatch"},Cn={type:"DisallowEmpty"},An=40,zn=41;function Pn(e,t,n){return t===xn&&n===Sn?e:e===xn&&t===xn&&n===xn?e:("If"===e.type&&e.else===Sn&&t===xn&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Ln(e){return e.length>2&&e.charCodeAt(e.length-2)===An&&e.charCodeAt(e.length-1)===zn}function Tn(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&Ln(e.name)}function En(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=function e(t,n,r){switch(t){case" ":for(var a=xn,i=n.length-1;i>=0;i--){a=Pn(l=n[i],a,Sn)}return a;case"|":a=Sn;var o=null;for(i=n.length-1;i>=0;i--){if(Tn(l=n[i])&&(null===o&&i>0&&Tn(n[i-1])&&(a=Pn({type:"Enum",map:o=Object.create(null)},xn,a)),null!==o)){var s=(Ln(l.name)?l.name.slice(0,-1):l.name).toLowerCase();if(s in o==!1){o[s]=l;continue}}o=null,a=Pn(l,xn,a)}return a;case"&&":if(n.length>5)return{type:"MatchOnce",terms:n,all:!0};for(a=Sn,i=n.length-1;i>=0;i--){var l=n[i];c=n.length>1?e(t,n.filter((function(e){return e!==l})),!1):xn,a=Pn(l,c,a)}return a;case"||":if(n.length>5)return{type:"MatchOnce",terms:n,all:!1};for(a=r?xn:Sn,i=n.length-1;i>=0;i--){var c;l=n[i];c=n.length>1?e(t,n.filter((function(e){return e!==l})),!0):xn,a=Pn(l,c,a)}return a}}(e.combinator,e.terms.map(En),!1);return e.disallowEmpty&&(t=Pn(t,Cn,Sn)),t;case"Multiplier":return function(e){var t=xn,n=En(e.term);if(0===e.max)n=Pn(n,Cn,Sn),(t=Pn(n,null,Sn)).then=Pn(xn,xn,t),e.comma&&(t.then.else=Pn({type:"Comma",syntax:e},t,Sn));else for(var r=e.min||1;r<=e.max;r++)e.comma&&t!==xn&&(t=Pn({type:"Comma",syntax:e},t,Sn)),t=Pn(n,Pn(xn,xn,t),Sn);if(0===e.min)t=Pn(xn,xn,t);else for(r=0;r<e.min-1;r++)e.comma&&t!==xn&&(t=Pn({type:"Comma",syntax:e},t,Sn)),t=Pn(n,t,Sn);return t}(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return 3===e.value.length?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}var On={MATCH:xn,MISMATCH:Sn,DISALLOW_EMPTY:Cn,buildMatchGraph:function(e,t){return"string"==typeof e&&(e=fn(e)),{type:"MatchGraph",match:En(e),syntax:t||null,source:e}}},Dn=Object.prototype.hasOwnProperty,Mn=On.MATCH,In=On.MISMATCH,Rn=On.DISALLOW_EMPTY,Nn=m.TYPE,Bn=0,jn=1,_n=2,Wn=3,qn="Match",Fn="Mismatch",Un="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Yn=15e3;function Hn(e){for(var t=null,n=null,r=e;null!==r;)n=r.prev,r.prev=t,t=r,r=n;return t}function Vn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>=65&&r<=90&&(r|=32),r!==t.charCodeAt(n))return!1}return!0}function Gn(e){return null===e||(e.type===Nn.Comma||e.type===Nn.Function||e.type===Nn.LeftParenthesis||e.type===Nn.LeftSquareBracket||e.type===Nn.LeftCurlyBracket||e.type===Nn.Delim)}function Kn(e){return null===e||(e.type===Nn.RightParenthesis||e.type===Nn.RightSquareBracket||e.type===Nn.RightCurlyBracket||e.type===Nn.Delim)}function $n(e,t,n){function r(){do{g=++b<e.length?e[b]:null}while(null!==g&&(g.type===Nn.WhiteSpace||g.type===Nn.Comment))}function a(t){var n=b+t;return n<e.length?e[n]:null}function i(e,t){return{nextState:e,matchStack:v,syntaxStack:u,thenStack:h,tokenIndex:b,prev:t}}function o(e){h={nextState:e,matchStack:v,syntaxStack:u,prev:h}}function s(e){d=i(e,d)}function l(){v={type:jn,syntax:t.syntax,token:g,prev:v},r(),p=null,b>y&&(y=b)}function c(){v=v.type===_n?v.prev:{type:Wn,syntax:u.syntax,token:v.token,prev:v},u=u.prev}var u=null,h=null,d=null,p=null,f=0,m=null,g=null,b=-1,y=0,v={type:Bn,syntax:null,token:null,prev:null};for(r();null===m&&++f<Yn;)switch(t.type){case"Match":if(null===h){if(null!==g&&(b!==e.length-1||"\\0"!==g.value&&"\\9"!==g.value)){t=In;break}m=qn;break}if((t=h.nextState)===Rn){if(h.matchStack===v){t=In;break}t=Mn}for(;h.syntaxStack!==u;)c();h=h.prev;break;case"Mismatch":if(null!==p&&!1!==p)(null===d||b>d.tokenIndex)&&(d=p,p=!1);else if(null===d){m=Fn;break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,v=d.matchStack,b=d.tokenIndex,g=b<e.length?e[b]:null,d=d.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==In&&s(t.else),t.then!==Mn&&o(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":var k=t.syntax.terms;if(t.index===k.length){if(0===t.mask||t.syntax.all){t=In;break}t=Mn;break}if(t.mask===(1<<k.length)-1){t=Mn;break}for(;t.index<k.length;t.index++){var w=1<<t.index;if(0==(t.mask&w)){s(t),o({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|w}),t=k[t.index++];break}}break;case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==g)if(-1!==(z=g.value.toLowerCase()).indexOf("\\")&&(z=z.replace(/\\[09].*$/,"")),Dn.call(t.map,z)){t=t.map[z];break}t=In;break;case"Generic":var x=null!==u?u.opts:null,S=b+Math.floor(t.fn(g,a,x));if(!isNaN(S)&&S>b){for(;b<S;)l();t=Mn}else t=In;break;case"Type":case"Property":var C="Type"===t.type?"types":"properties",A=Dn.call(n,C)?n[C][t.name]:null;if(!A||!A.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==p&&null!==g&&"Type"===t.type)if("custom-ident"===t.name&&g.type===Nn.Ident||"length"===t.name&&"0"===g.value){null===p&&(p=i(t,d)),t=In;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},v={type:_n,syntax:t.syntax,token:v.token,prev:v},t=A.match;break;case"Keyword":var z=t.name;if(null!==g){var P=g.value;if(-1!==P.indexOf("\\")&&(P=P.replace(/\\[09].*$/,"")),Vn(P,z)){l(),t=Mn;break}}t=In;break;case"AtKeyword":case"Function":if(null!==g&&Vn(g.value,t.name)){l(),t=Mn;break}t=In;break;case"Token":if(null!==g&&g.value===t.value){l(),t=Mn;break}t=In;break;case"Comma":null!==g&&g.type===Nn.Comma?Gn(v.token)?t=In:(l(),t=Kn(g)?In:Mn):t=Gn(v.token)||Kn(g)?Mn:In;break;case"String":var L="";for(S=b;S<e.length&&L.length<t.value.length;S++)L+=e[S].value;if(Vn(L,t.value)){for(;b<S;)l();t=Mn}else t=In;break;default:throw new Error("Unknown node type: "+t.type)}switch(f,m){case null:console.warn("[csstree-match] BREAK after "+Yn+" iterations"),m=Un,v=null;break;case qn:for(;null!==u;)c();break;default:v=null}return{tokens:e,reason:m,iterations:f,match:v,longestMatch:y}}var Qn=function(e,t,n){var r=$n(e,t,n||{});if(null===r.match)return r;var a=r.match,i=r.match={syntax:t.syntax||null,match:[]},o=[i];for(a=Hn(a).prev;null!==a;){switch(a.type){case _n:i.match.push(i={syntax:a.syntax,match:[]}),o.push(i);break;case Wn:o.pop(),i=o[o.length-1];break;default:i.match.push({syntax:a.syntax||null,token:a.token.value,node:a.token.node})}a=a.prev}return r};function Xn(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}var n=null;return null!==this.matched&&function r(a){if(Array.isArray(a.match)){for(var i=0;i<a.match.length;i++)if(r(a.match[i]))return t(a.syntax)&&n.unshift(a.syntax),!0}else if(a.node===e)return n=t(a.syntax)?[a.syntax]:[],!0;return!1}(this.matched),n}function Zn(e,t,n){var r=Xn.call(e,t);return null!==r&&r.some(n)}var Jn={getTrace:Xn,isType:function(e,t){return Zn(this,e,(function(e){return"Type"===e.type&&e.name===t}))},isProperty:function(e,t){return Zn(this,e,(function(e){return"Property"===e.type&&e.name===t}))},isKeyword:function(e){return Zn(this,e,(function(e){return"Keyword"===e.type}))}};var er={matchFragments:function(e,t,n,r,a){var i=[];return null!==n.matched&&function n(s){if(null!==s.syntax&&s.syntax.type===r&&s.syntax.name===a){var l=function e(t){return"node"in t?t.node:e(t.match[0])}(s),c=function e(t){return"node"in t?t.node:e(t.match[t.match.length-1])}(s);e.syntax.walk(t,(function(e,t,n){if(e===l){var r=new o;do{if(r.appendData(t.data),t.data===c)break;t=t.next}while(null!==t);i.push({parent:n,nodes:r})}}))}Array.isArray(s.match)&&s.match.forEach(n)}(n.matched),i}},tr=Object.prototype.hasOwnProperty;function nr(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function rr(e){return Boolean(e)&&nr(e.offset)&&nr(e.line)&&nr(e.column)}function ar(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(var a in n){var i=!0;if(!1!==tr.call(n,a)){if("type"===a)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===a){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)a+=".source";else if(rr(n.loc.start)){if(rr(n.loc.end))continue;a+=".end"}else a+=".start";i=!1}else if(t.hasOwnProperty(a)){var s=0;for(i=!1;!i&&s<t[a].length;s++){var l=t[a][s];switch(l){case String:i="string"==typeof n[a];break;case Boolean:i="boolean"==typeof n[a];break;case null:i=null===n[a];break;default:"string"==typeof l?i=n[a]&&n[a].type===l:Array.isArray(l)&&(i=n[a]instanceof o)}}}else r(n,"Unknown field `"+a+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+a+"`")}}for(var a in t)tr.call(t,a)&&!1===tr.call(n,a)&&r(n,"Field `"+e+"."+a+"` is missed")}}function ir(e,t){var n=t.structure,r={type:String,loc:!0},a={type:'"'+e+'"'};for(var i in n)if(!1!==tr.call(n,i)){for(var o=[],s=r[i]=Array.isArray(n[i])?n[i].slice():[n[i]],l=0;l<s.length;l++){var c=s[l];if(c===String||c===Boolean)o.push(c.name);else if(null===c)o.push("null");else if("string"==typeof c)o.push("<"+c+">");else{if(!Array.isArray(c))throw new Error("Wrong value `"+c+"` in `"+e+"."+i+"` structure definition");o.push("List")}}a[i]=o.join(" | ")}return{docs:a,check:ar(e,r)}}var or=te,sr=ne,lr=On.buildMatchGraph,cr=Qn,ur=function(e){var t={};if(e.node)for(var n in e.node)if(tr.call(e.node,n)){var r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=ir(n,r)}return t},hr=lr("inherit | initial | unset"),dr=lr("inherit | initial | unset | <-ms-legacy-expression>");function pr(e,t,n){var r={};for(var a in e)e[a].syntax&&(r[a]=n?e[a].syntax:J(e[a].syntax,{compact:t}));return r}function fr(e,t,n){return{matched:e,iterations:n,error:t,getTrace:Jn.getTrace,isType:Jn.isType,isProperty:Jn.isProperty,isKeyword:Jn.isKeyword}}function mr(e,t,n,r){var a,i=wn(n,e.syntax);return function(e){for(var t=0;t<e.length;t++)if("var("===e[t].value.toLowerCase())return!0;return!1}(i)?fr(null,new Error("Matching for a tree with var() is not supported")):(r&&(a=cr(i,e.valueCommonSyntax,e)),r&&a.match||(a=cr(i,t.match,e)).match?fr(a.match,null,a.iterations):fr(null,new sr(a.reason,t.syntax,n,a),a.iterations))}var gr=function(e,t,n){if(this.valueCommonSyntax=hr,this.syntax=t,this.generic=!1,this.properties={},this.types={},this.structure=n||ur(e),e){if(e.types)for(var r in e.types)this.addType_(r,e.types[r]);if(e.generic)for(var r in this.generic=!0,Ct)this.addType_(r,Ct[r]);if(e.properties)for(var r in e.properties)this.addProperty_(r,e.properties[r])}};gr.prototype={structure:{},checkStructure:function(e){function t(e,t){r.push({node:e,message:t})}var n=this.structure,r=[];return this.syntax.walk(e,(function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!r.length&&r},createDescriptor:function(e,t,n){var r={type:t,name:n},a={type:t,name:n,syntax:null,match:null};return"function"==typeof e?a.match=lr(e,r):("string"==typeof e?Object.defineProperty(a,"syntax",{get:function(){return Object.defineProperty(a,"syntax",{value:fn(e)}),a.syntax}}):a.syntax=e,Object.defineProperty(a,"match",{get:function(){return Object.defineProperty(a,"match",{value:lr(a.syntax,r)}),a.match}})),a},addProperty_:function(e,t){this.properties[e]=this.createDescriptor(t,"Property",e)},addType_:function(e,t){this.types[e]=this.createDescriptor(t,"Type",e),t===Ct["-ms-legacy-expression"]&&(this.valueCommonSyntax=dr)},matchDeclaration:function(e){return"Declaration"!==e.type?fr(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)},matchProperty:function(e,t){var n=ce.property(e);if(n.custom)return fr(null,new Error("Lexer matching doesn't applicable for custom properties"));var r=n.vendor?this.getProperty(n.name)||this.getProperty(n.basename):this.getProperty(n.name);return r?mr(this,r,t,!0):fr(null,new or("Unknown property",e))},matchType:function(e,t){var n=this.getType(e);return n?mr(this,n,t,!1):fr(null,new or("Unknown type",e))},match:function(e,t){return"string"==typeof e||e&&e.type?("string"!=typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),mr(this,e,t,!1)):fr(null,new or("Bad syntax"))},findValueFragments:function(e,t,n,r){return er.matchFragments(this,t,this.matchProperty(e,t),n,r)},findDeclarationValueFragments:function(e,t,n){return er.matchFragments(this,e.value,this.matchDeclaration(e),t,n)},findAllFragments:function(e,t,n){var r=[];return this.syntax.walk(e,{visit:"Declaration",enter:function(e){r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}.bind(this)}),r},getProperty:function(e){return this.properties.hasOwnProperty(e)?this.properties[e]:null},getType:function(e){return this.types.hasOwnProperty(e)?this.types[e]:null},validate:function(){function e(r,a,i,o){if(i.hasOwnProperty(a))return i[a];i[a]=!1,null!==o.syntax&&bn(o.syntax,(function(o){if("Type"===o.type||"Property"===o.type){var s="Type"===o.type?r.types:r.properties,l="Type"===o.type?t:n;s.hasOwnProperty(o.name)&&!e(r,o.name,l,s[o.name])||(i[a]=!0)}}),this)}var t={},n={};for(var r in this.types)e(this,r,t,this.types[r]);for(var r in this.properties)e(this,r,n,this.properties[r]);return t=Object.keys(t).filter((function(e){return t[e]})),n=Object.keys(n).filter((function(e){return n[e]})),t.length||n.length?{types:t,properties:n}:null},dump:function(e,t){return{generic:this.generic,types:pr(this.types,!t,e),properties:pr(this.properties,!t,e)}},toString:function(){return JSON.stringify(this.dump())}};var br=gr,yr={SyntaxError:At,parse:fn,generate:J,walk:bn},vr=Ee.isBOM,kr=10,wr=12,xr=13;var Sr=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1};Sr.prototype={setSource:function(e,t,n,r){this.source=e,this.startOffset=void 0===t?0:t,this.startLine=void 0===n?1:n,this.startColumn=void 0===r?1:r,this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function(){this.linesAndColumnsComputed||(!function(e,t){for(var n=t.length,r=he(e.lines,n),a=e.startLine,i=he(e.columns,n),o=e.startColumn,s=t.length>0?vr(t.charCodeAt(0)):0;s<n;s++){var l=t.charCodeAt(s);r[s]=a,i[s]=o++,l!==kr&&l!==xr&&l!==wr||(l===xr&&s+1<n&&t.charCodeAt(s+1)===kr&&(r[++s]=a,i[s]=o),a++,o=1)}r[s]=a,i[s]=o,e.lines=r,e.columns=i}(this,this.source),this.linesAndColumnsComputed=!0)},getLocation:function(e,t){return this.ensureLinesAndColumnsComputed(),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}},getLocationRange:function(e,t,n){return this.ensureLinesAndColumnsComputed(),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}};var Cr=Sr,Ar=Ee.TYPE,zr=Ar.WhiteSpace,Pr=Ar.Comment,Lr=function(e){var t=this.createList(),n=null,r={recognizer:e,space:null,ignoreWS:!1,ignoreWSAfter:!1};for(this.scanner.skipSC();!this.scanner.eof;){switch(this.scanner.tokenType){case Pr:this.scanner.next();continue;case zr:r.ignoreWS?this.scanner.next():r.space=this.WhiteSpace();continue}if(void 0===(n=e.getNode.call(this,r)))break;null!==r.space&&(t.push(r.space),r.space=null),t.push(n),r.ignoreWSAfter?(r.ignoreWSAfter=!1,r.ignoreWS=!0):r.ignoreWS=!1}return t},Tr=F.findWhiteSpaceStart,Er=function(){},Or=m.TYPE,Dr=m.NAME,Mr=Or.WhiteSpace,Ir=Or.Ident,Rr=Or.Function,Nr=Or.Url,Br=Or.Hash,jr=Or.Percentage,_r=Or.Number;function Wr(e){return function(){return this[e]()}}var qr=function(e){var t={scanner:new Q,locationMap:new Cr,filename:"<unknown>",needPositions:!1,onParseError:Er,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Lr,createList:function(){return new o},createSingleNodeList:function(e){return(new o).appendData(e)},getFirstListNode:function(e){return e&&e.first()},getLastListNode:function(e){return e.last()},parseWithFallback:function(e,t){var n=this.scanner.tokenIndex;try{return e.call(this)}catch(e){if(this.onParseErrorThrow)throw e;var r=t.call(this,n);return this.onParseErrorThrow=!0,this.onParseError(e,r),this.onParseErrorThrow=!1,r}},lookupNonWSType:function(e){do{var t=this.scanner.lookupType(e++);if(t!==Mr)return t}while(0!==t);return 0},eat:function(e){if(this.scanner.tokenType!==e){var t=this.scanner.tokenStart,n=Dr[e]+" is expected";switch(e){case Ir:this.scanner.tokenType===Rr||this.scanner.tokenType===Nr?(t=this.scanner.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case Br:this.scanner.isDelim(35)&&(this.scanner.next(),t++,n="Name is expected");break;case jr:this.scanner.tokenType===_r&&(t=this.scanner.tokenEnd,n="Percent sign is expected");break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===e&&(t+=1)}this.error(n,t)}this.scanner.next()},consume:function(e){var t=this.scanner.getTokenValue();return this.eat(e),t},consumeFunctionName:function(){var e=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(Rr),e},getLocation:function(e,t){return this.needPositions?this.locationMap.getLocationRange(e,t,this.filename):null},getLocationFromList:function(e){if(this.needPositions){var t=this.getFirstListNode(e),n=this.getLastListNode(e);return this.locationMap.getLocationRange(null!==t?t.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==n?n.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(e,t){var n=void 0!==t&&t<this.scanner.source.length?this.locationMap.getLocation(t):this.scanner.eof?this.locationMap.getLocation(Tr(this.scanner.source,this.scanner.source.length-1)):this.locationMap.getLocation(this.scanner.tokenStart);throw new d(e||"Unexpected input",this.scanner.source,n.offset,n.line,n.column)}};for(var n in e=function(e){var t={context:{},scope:{},atrule:{},pseudo:{}};if(e.parseContext)for(var n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=Wr(e.parseContext[n])}if(e.scope)for(var n in e.scope)t.scope[n]=e.scope[n];if(e.atrule)for(var n in e.atrule){var r=e.atrule[n];r.parse&&(t.atrule[n]=r.parse)}if(e.pseudo)for(var n in e.pseudo){var a=e.pseudo[n];a.parse&&(t.pseudo[n]=a.parse)}if(e.node)for(var n in e.node)t[n]=e.node[n].parse;return t}(e||{}))t[n]=e[n];return function(e,n){var r,a=(n=n||{}).context||"default";if(Ee(e,t.scanner),t.locationMap.setSource(e,n.offset,n.line,n.column),t.filename=n.filename||"<unknown>",t.needPositions=Boolean(n.positions),t.onParseError="function"==typeof n.onParseError?n.onParseError:Er,t.onParseErrorThrow=!1,t.parseAtrulePrelude=!("parseAtrulePrelude"in n)||Boolean(n.parseAtrulePrelude),t.parseRulePrelude=!("parseRulePrelude"in n)||Boolean(n.parseRulePrelude),t.parseValue=!("parseValue"in n)||Boolean(n.parseValue),t.parseCustomProperty="parseCustomProperty"in n&&Boolean(n.parseCustomProperty),!t.context.hasOwnProperty(a))throw new Error("Unknown context `"+a+"`");return r=t.context[a].call(t,n),t.scanner.eof||t.error(),r}},Fr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Ur=function(e){if(0<=e&&e<Fr.length)return Fr[e];throw new TypeError("Must be between 0 and 63: "+e)};var Yr=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=Ur(t)}while(r>0);return n};function Hr(e){return e&&e.default||e}var Vr=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function a(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var n=e,r=a(e);if(r){if(!r.path)return e;n=r.path}for(var o,s=t.isAbsolute(n),l=n.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(o=l[u])?l.splice(u,1):".."===o?c++:c>0&&(""===o?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(n=l.join("/"))&&(n=s?"/":"."),r?(r.path=n,i(r)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=a(t),s=a(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),i(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var l="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,i(s)):l}t.urlParse=a,t.urlGenerate=i,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function c(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?c:function(e){return u(e)?"$"+e:e},t.fromSetString=l?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=h(e.source,t.source);return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=e.generatedLine-t.generatedLine)?r:h(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=h(e.source,t.source))?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)?r:h(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=h(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:0!==(n=e.originalColumn-t.originalColumn)?n:h(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=a(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var l=r.path.lastIndexOf("/");l>=0&&(r.path=r.path.substring(0,l+1))}t=s(i(r),t)}return o(t)}})),Gr=(Vr.getArg,Vr.urlParse,Vr.urlGenerate,Vr.normalize,Vr.join,Vr.isAbsolute,Vr.relative,Vr.toSetString,Vr.fromSetString,Vr.compareByOriginalPositions,Vr.compareByGeneratedPositionsDeflated,Vr.compareByGeneratedPositionsInflated,Vr.parseSourceMapInput,Vr.computeSourceURL,Object.prototype.hasOwnProperty),Kr="undefined"!=typeof Map;function $r(){this._array=[],this._set=Kr?new Map:Object.create(null)}$r.fromArray=function(e,t){for(var n=new $r,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},$r.prototype.size=function(){return Kr?this._set.size:Object.getOwnPropertyNames(this._set).length},$r.prototype.add=function(e,t){var n=Kr?e:Vr.toSetString(e),r=Kr?this.has(e):Gr.call(this._set,n),a=this._array.length;r&&!t||this._array.push(e),r||(Kr?this._set.set(e,a):this._set[n]=a)},$r.prototype.has=function(e){if(Kr)return this._set.has(e);var t=Vr.toSetString(e);return Gr.call(this._set,t)},$r.prototype.indexOf=function(e){if(Kr){var t=this._set.get(e);if(t>=0)return t}else{var n=Vr.toSetString(e);if(Gr.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},$r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},$r.prototype.toArray=function(){return this._array.slice()};var Qr={ArraySet:$r};function Xr(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Xr.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Xr.prototype.add=function(e){var t,n,r,a,i,o;t=this._last,n=e,r=t.generatedLine,a=n.generatedLine,i=t.generatedColumn,o=n.generatedColumn,a>r||a==r&&o>=i||Vr.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Xr.prototype.toArray=function(){return this._sorted||(this._array.sort(Vr.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Zr=Qr.ArraySet,Jr={MappingList:Xr}.MappingList;function ea(e){e||(e={}),this._file=Vr.getArg(e,"file",null),this._sourceRoot=Vr.getArg(e,"sourceRoot",null),this._skipValidation=Vr.getArg(e,"skipValidation",!1),this._sources=new Zr,this._names=new Zr,this._mappings=new Jr,this._sourcesContents=null}ea.prototype._version=3,ea.fromSourceMap=function(e){var t=e.sourceRoot,n=new ea({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=Vr.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var a=r;null!==t&&(a=Vr.relative(t,r)),n._sources.has(a)||n._sources.add(a);var i=e.sourceContentFor(r);null!=i&&n.setSourceContent(r,i)})),n},ea.prototype.addMapping=function(e){var t=Vr.getArg(e,"generated"),n=Vr.getArg(e,"original",null),r=Vr.getArg(e,"source",null),a=Vr.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,a),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:a})},ea.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=Vr.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Vr.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[Vr.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},ea.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=Vr.relative(a,r));var i=new Zr,o=new Zr;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=n&&(t.source=Vr.join(n,t.source)),null!=a&&(t.source=Vr.relative(a,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var l=t.source;null==l||i.has(l)||i.add(l);var c=t.name;null==c||o.has(c)||o.add(c)}),this),this._sources=i,this._names=o,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=Vr.join(n,t)),null!=a&&(t=Vr.relative(a,t)),this.setSourceContent(t,r))}),this)},ea.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},ea.prototype._serializeMappings=function(){for(var e,t,n,r,a=0,i=1,o=0,s=0,l=0,c=0,u="",h=this._mappings.toArray(),d=0,p=h.length;d<p;d++){if(e="",(t=h[d]).generatedLine!==i)for(a=0;t.generatedLine!==i;)e+=";",i++;else if(d>0){if(!Vr.compareByGeneratedPositionsInflated(t,h[d-1]))continue;e+=","}e+=Yr(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=Yr(r-c),c=r,e+=Yr(t.originalLine-1-s),s=t.originalLine-1,e+=Yr(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=Yr(n-l),l=n)),u+=e}return u},ea.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=Vr.relative(t,e));var n=Vr.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},ea.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},ea.prototype.toString=function(){return JSON.stringify(this.toJSON())};var ta={SourceMapGenerator:ea}.SourceMapGenerator,na={Atrule:!0,Selector:!0,Declaration:!0},ra=Object.prototype.hasOwnProperty;function aa(e,t){var n=e.children,r=null;"function"!=typeof t?n.forEach(this.node,this):n.forEach((function(e){null!==r&&t.call(this,r),this.node(e),r=e}),this)}var ia=function(e){function t(e){if(!ra.call(n,e.type))throw new Error("Unknown node type: "+e.type);n[e.type].call(this,e)}var n={};if(e.node)for(var r in e.node)n[r]=e.node[r].generate;return function(e,n){var r="",a={children:aa,node:t,chunk:function(e){r+=e},result:function(){return r}};return n&&("function"==typeof n.decorator&&(a=n.decorator(a)),n.sourceMap&&(a=function(e){var t=new ta,n=1,r=0,a={line:1,column:0},i={line:0,column:0},o=!1,s={line:1,column:0},l={generated:s},c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&na.hasOwnProperty(e.type)){var u=e.loc.start.line,h=e.loc.start.column-1;i.line===u&&i.column===h||(i.line=u,i.column=h,a.line=n,a.column=r,o&&(o=!1,a.line===s.line&&a.column===s.column||t.addMapping(l)),o=!0,t.addMapping({source:e.loc.source,original:i,generated:a}))}c.call(this,e),o&&na.hasOwnProperty(e.type)&&(s.line=n,s.column=r)};var u=e.chunk;e.chunk=function(e){for(var t=0;t<e.length;t++)10===e.charCodeAt(t)?(n++,r=0):r++;u(e)};var h=e.result;return e.result=function(){return o&&t.addMapping(l),{css:h(),map:t}},e}(a))),a.node(e),a.result()}},oa=function(e){return{fromPlainObject:function(t){return e(t,{enter:function(e){e.children&&e.children instanceof o==!1&&(e.children=(new o).fromArray(e.children))}}),t},toPlainObject:function(t){return e(t,{leave:function(e){e.children&&e.children instanceof o&&(e.children=e.children.toArray())}}),t}}},sa=Object.prototype.hasOwnProperty,la=function(){};function ca(e){return"function"==typeof e?e:la}function ua(e,t){return function(n,r,a){n.type===t&&e.call(this,n,r,a)}}function ha(e,t){var n=t.structure,r=[];for(var a in n)if(!1!==sa.call(n,a)){var i=n[a],o={name:a,type:!1,nullable:!1};Array.isArray(n[a])||(i=[n[a]]);for(var s=0;s<i.length;s++){var l=i[s];null===l?o.nullable=!0:"string"==typeof l?o.type="node":Array.isArray(l)&&(o.type="list")}o.type&&r.push(o)}return r.length?{context:t.walkContext,fields:r}:null}function da(e,t){var n=e.fields.slice(),r=e.context,a="string"==typeof r;return t&&n.reverse(),function(e,i,o){var s;a&&(s=i[r],i[r]=e);for(var l=0;l<n.length;l++){var c=n[l],u=e[c.name];c.nullable&&!u||("list"===c.type?t?u.forEachRight(o):u.forEach(o):o(u))}a&&(i[r]=s)}}function pa(e){return{Atrule:{StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block},Rule:{StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block},Declaration:{StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block}}}var fa=function(e){var t=function(e){var t={};for(var n in e.node)if(sa.call(e.node,n)){var r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=ha(0,r)}return t}(e),n={},r={};for(var a in t)sa.call(t,a)&&null!==t[a]&&(n[a]=da(t[a],!1),r[a]=da(t[a],!0));var i=pa(n),o=pa(r),s=function(e,a){var s=la,l=la,c=n,u={root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof a)s=a;else if(a&&(s=ca(a.enter),l=ca(a.leave),a.reverse&&(c=r),a.visit)){if(i.hasOwnProperty(a.visit))c=a.reverse?o[a.visit]:i[a.visit];else if(!t.hasOwnProperty(a.visit))throw new Error("Bad value `"+a.visit+"` for `visit` option (should be: "+Object.keys(t).join(", ")+")");s=ua(s,a.visit),l=ua(l,a.visit)}if(s===la&&l===la)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");if(a.reverse){var h=s;s=l,l=h}!function e(t,n,r){s.call(u,t,n,r),c.hasOwnProperty(t.type)&&c[t.type](t,u,e),l.call(u,t,n,r)}(e)};return s.find=function(e,t){var n=null;return s(e,(function(e,r,a){null===n&&t.call(this,e,r,a)&&(n=e)})),n},s.findLast=function(e,t){var n=null;return s(e,{reverse:!0,enter:function(e,r,a){null===n&&t.call(this,e,r,a)&&(n=e)}}),n},s.findAll=function(e,t){var n=[];return s(e,(function(e,r,a){t.call(this,e,r,a)&&n.push(e)})),n},s},ma=function e(t){var n={};for(var r in t){var a=t[r];a&&(Array.isArray(a)||a instanceof o?a=a.map(e):a.constructor===Object&&(a=e(a))),n[r]=a}return n},ga=Object.prototype.hasOwnProperty,ba={generic:!0,types:{},properties:{},parseContext:{},scope:{},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function ya(e){return e&&e.constructor===Object}function va(e){if(ya(e)){var t={};for(var n in e)ga.call(e,n)&&(t[n]=e[n]);return t}return e}function ka(e,t){for(var n in t)ga.call(t,n)&&(ya(e[n])?ka(e[n],va(t[n])):e[n]=va(t[n]))}var wa=function(e,t){return function e(t,n,r){for(var a in r)if(!1!==ga.call(r,a))if(!0===r[a])a in n&&ga.call(n,a)&&(t[a]=va(n[a]));else if(r[a]){if(ya(r[a]))ka(i={},t[a]),ka(i,n[a]),t[a]=i;else if(Array.isArray(r[a])){var i={},o=r[a].reduce((function(e,t){return e[t]=!0,e}),{});for(var s in t[a])ga.call(t[a],s)&&(i[s]={},t[a]&&t[a][s]&&e(i[s],t[a][s],o));for(var s in n[a])ga.call(n[a],s)&&(i[s]||(i[s]={}),n[a]&&n[a][s]&&e(i[s],n[a][s],o));t[a]=i}}return t}(e,t,ba)};function xa(e,t){for(var n in t)e[n]=t[n];return e}var Sa=function(e){return function e(t){var n=qr(t),r=fa(t),a=ia(t),i=oa(r),s={List:o,SyntaxError:d,TokenStream:Q,Lexer:br,vendorPrefix:ce.vendorPrefix,keyword:ce.keyword,property:ce.property,isCustomProperty:ce.isCustomProperty,definitionSyntax:yr,lexer:null,createLexer:function(e){return new br(e,s,s.lexer.structure)},tokenize:Ee,parse:n,walk:r,generate:a,find:r.find,findLast:r.findLast,findAll:r.findAll,clone:ma,fromPlainObject:i.fromPlainObject,toPlainObject:i.toPlainObject,createSyntax:function(t){return e(wa({},t))},fork:function(n){var r=wa({},t);return e("function"==typeof n?n(r,xa):wa(r,n))}};return s.lexer=new br({generic:!0,types:t.types,properties:t.properties,node:t.node},s),s}(wa({},e))},Ca={"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|( <calc-sum> )","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]",compat:"searchfield|textarea|push-button|button-bevel|slider-horizontal|checkbox|radio|square-button|menulist|menulist-button|listbox|meter|progress-bar","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<url>|<quote>|<attr()>|counter( <ident> , <'list-style-type'>? )]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","counter()":"counter( <custom-ident> , [<counter-style>|none]? )","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <custom-ident> , <string> , [<counter-style>|none]? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number> , <number> , <number> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fit-content()":"fit-content( [<length>|<percentage>] )","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<positive-integer>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )",image:"<url>|<image()>|<image-set()>|<element()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] <resolution>","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length>|<percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length>|<percentage>|<flex>|min-content|max-content|auto] , [<length>|<percentage>|<flex>|min-content|max-content|auto] )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","perspective()":"perspective( <length> )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","saturate()":"saturate( <number-percentage> )","scale()":"scale( <number> , <number>? )","scale3d()":"scale3d( <number> , <number> , <number> )","scaleX()":"scaleX( <number> )","scaleY()":"scaleY( <number> )","scaleZ()":"scaleZ( <number> )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","single-animation":"<time>||<timing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-transition":"[none|<single-transition-property>]||<time>||<timing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<positive-integer>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( [<length>|<percentage>] )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"min-intrinsic|intrinsic|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","border-radius":"<length-percentage>{1,2}",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#","name-repeat":"repeat( [<positive-integer>|auto-fill] , <line-names>+ )",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","path()":"path( <string> )",ratio:"<integer> / <integer>",right:"<length>|auto","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","positive-integer":"<integer [0,∞]>"},Aa={"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"<integer>","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|listbox|listitem|media-fullscreen-button|media-mute-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield","-webkit-border-before":"<'border-width'>||<'border-style'>||<'color'>","-webkit-border-before-color":"<'color'>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>",all:"initial|inherit|unset|revert",animation:"<single-animation>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<timing-function>#",appearance:"none|auto|button|textfield|<compat>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<box>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[left|right|x-start|x-end]? <length-percentage>?]#","background-position-y":"[center|[top|bottom|y-start|y-end]? <length-percentage>?]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<'color'>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<'color'>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<'color'>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<'color'>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<'color'>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<'color'>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end","caret-color":"auto|<color>",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","color-adjust":"economy|exact","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[size||layout||style||paint]",content:"normal|none|[<content-replacement>|<content-list>] [/ <string>]?","counter-increment":"[<custom-ident> <integer>?]+|none","counter-reset":"[<custom-ident> <integer>?]+|none","counter-set":"[<custom-ident> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"none|inline|block|list-item|inline-list-item|inline-block|inline-table|table|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|flex|inline-flex|grid|inline-grid|run-in|ruby|ruby-base|ruby-text|ruby-base-container|ruby-text-container|contents|-ms-flexbox|-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|<number>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>","grid-template-rows":"none|<track-list>|<auto-track-list>","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"[<length>|<percentage>]&&[border-box|content-box]?|available|min-content|max-content|fit-content|auto",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<url>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","max-block-size":"<'max-width'>","max-height":"<length>|<percentage>|none|max-content|min-content|fit-content|fill-available","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"<length>|<percentage>|none|max-content|min-content|fit-content|fill-available|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"<length>|<percentage>|auto|max-content|min-content|fit-content|fill-available","min-inline-size":"<'min-width'>","min-width":"<length>|<percentage>|auto|max-content|min-content|fit-content|fill-available|<-non-standard-width>","mix-blend-mode":"<blend-mode>","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>?&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<number-zero-one>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"over|under|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|dark|light|<color>{2}","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","shape-image-threshold":"<number>","shape-margin":"<length-percentage>","shape-outside":"none|<shape-box>||<basic-shape>|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-position":"auto|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"border-box|fill-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<timing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line",widows:"<integer>",width:"[<length>|<percentage>]&&[border-box|content-box]?|available|min-content|max-content|fit-content|auto","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length-percentage>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},za={generic:!0,types:Ca,properties:Aa},Pa=Object.freeze({__proto__:null,generic:!0,types:Ca,properties:Aa,default:za}),La=Ee.cmpChar,Ta=Ee.isDigit,Ea=Ee.TYPE,Oa=Ea.WhiteSpace,Da=Ea.Comment,Ma=Ea.Ident,Ia=Ea.Number,Ra=Ea.Dimension,Na=43,Ba=45,ja=110,_a=!0;function Wa(e,t){var n=this.scanner.tokenStart+e,r=this.scanner.source.charCodeAt(n);for(r!==Na&&r!==Ba||(t&&this.error("Number sign is not allowed"),n++);n<this.scanner.tokenEnd;n++)Ta(this.scanner.source.charCodeAt(n))||this.error("Integer is expected",n)}function qa(e){return Wa.call(this,0,e)}function Fa(e,t){if(!La(this.scanner.source,this.scanner.tokenStart+e,t)){var n="";switch(t){case ja:n="N is expected";break;case Ba:n="HyphenMinus is expected"}this.error(n,this.scanner.tokenStart+e)}}function Ua(){for(var e=0,t=0,n=this.scanner.tokenType;n===Oa||n===Da;)n=this.scanner.lookupType(++e);if(n!==Ia){if(!this.scanner.isDelim(Na,e)&&!this.scanner.isDelim(Ba,e))return null;t=this.scanner.isDelim(Na,e)?Na:Ba;do{n=this.scanner.lookupType(++e)}while(n===Oa||n===Da);n!==Ia&&(this.scanner.skip(e),qa.call(this,_a))}return e>0&&this.scanner.skip(e),0===t&&(n=this.scanner.source.charCodeAt(this.scanner.tokenStart))!==Na&&n!==Ba&&this.error("Number sign is expected"),qa.call(this,0!==t),t===Ba?"-"+this.consume(Ia):this.consume(Ia)}var Ya={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var e=this.scanner.tokenStart,t=null,n=null;if(this.scanner.tokenType===Ia)qa.call(this,!1),n=this.consume(Ia);else if(this.scanner.tokenType===Ma&&La(this.scanner.source,this.scanner.tokenStart,Ba))switch(t="-1",Fa.call(this,1,ja),this.scanner.getTokenLength()){case 2:this.scanner.next(),n=Ua.call(this);break;case 3:Fa.call(this,2,Ba),this.scanner.next(),this.scanner.skipSC(),qa.call(this,_a),n="-"+this.consume(Ia);break;default:Fa.call(this,2,Ba),Wa.call(this,3,_a),this.scanner.next(),n=this.scanner.substrToCursor(e+2)}else if(this.scanner.tokenType===Ma||this.scanner.isDelim(Na)&&this.scanner.lookupType(1)===Ma){var r=0;switch(t="1",this.scanner.isDelim(Na)&&(r=1,this.scanner.next()),Fa.call(this,0,ja),this.scanner.getTokenLength()){case 1:this.scanner.next(),n=Ua.call(this);break;case 2:Fa.call(this,1,Ba),this.scanner.next(),this.scanner.skipSC(),qa.call(this,_a),n="-"+this.consume(Ia);break;default:Fa.call(this,1,Ba),Wa.call(this,2,_a),this.scanner.next(),n=this.scanner.substrToCursor(e+r+1)}}else if(this.scanner.tokenType===Ra){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),i=(r=a===Na||a===Ba,this.scanner.tokenStart+r);i<this.scanner.tokenEnd&&Ta(this.scanner.source.charCodeAt(i));i++);i===this.scanner.tokenStart+r&&this.error("Integer is expected",this.scanner.tokenStart+r),Fa.call(this,i-this.scanner.tokenStart,ja),t=this.scanner.source.substring(e,i),i+1===this.scanner.tokenEnd?(this.scanner.next(),n=Ua.call(this)):(Fa.call(this,i-this.scanner.tokenStart+1,Ba),i+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),qa.call(this,_a),n="-"+this.consume(Ia)):(Wa.call(this,i-this.scanner.tokenStart+2,_a),this.scanner.next(),n=this.scanner.substrToCursor(i+1)))}else this.error();return null!==t&&t.charCodeAt(0)===Na&&(t=t.substr(1)),null!==n&&n.charCodeAt(0)===Na&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.scanner.tokenStart),a:t,b:n}},generate:function(e){var t=null!==e.a&&void 0!==e.a,n=null!==e.b&&void 0!==e.b;t?(this.chunk("+1"===e.a?"+n":"1"===e.a?"n":"-1"===e.a?"-n":e.a+"n"),n&&("-"===(n=String(e.b)).charAt(0)||"+"===n.charAt(0)?(this.chunk(n.charAt(0)),this.chunk(n.substr(1))):(this.chunk("+"),this.chunk(n)))):this.chunk(String(e.b))}},Ha=Ee.TYPE,Va=Ha.WhiteSpace,Ga=Ha.Semicolon,Ka=Ha.LeftCurlyBracket,$a=Ha.Delim,Qa=33;function Xa(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===Va?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function Za(){return 0}var Ja={name:"Raw",structure:{value:String},parse:function(e,t,n){var r,a=this.scanner.getTokenStart(e);return this.scanner.skip(this.scanner.getRawLength(e,t||Za)),r=n&&this.scanner.tokenStart>a?Xa.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(a,r),value:this.scanner.source.substring(a,r)}},generate:function(e){this.chunk(e.value)},mode:{default:Za,leftCurlyBracket:function(e){return e===Ka?1:0},leftCurlyBracketOrSemicolon:function(e){return e===Ka||e===Ga?1:0},exclamationMarkOrSemicolon:function(e,t,n){return e===$a&&t.charCodeAt(n)===Qa?1:e===Ga?1:0},semicolonIncluded:function(e){return e===Ga?2:0}}},ei=Ee.TYPE,ti=Ja.mode,ni=ei.AtKeyword,ri=ei.Semicolon,ai=ei.LeftCurlyBracket,ii=ei.RightCurlyBracket;function oi(e){return this.Raw(e,ti.leftCurlyBracketOrSemicolon,!0)}function si(){for(var e,t=1;e=this.scanner.lookupType(t);t++){if(e===ii)return!0;if(e===ai||e===ni)return!1}return!1}var li={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var e,t,n=this.scanner.tokenStart,r=null,a=null;switch(this.eat(ni),t=(e=this.scanner.substrToCursor(n+1)).toLowerCase(),this.scanner.skipSC(),!1===this.scanner.eof&&this.scanner.tokenType!==ai&&this.scanner.tokenType!==ri&&(this.parseAtrulePrelude?"AtrulePrelude"===(r=this.parseWithFallback(this.AtrulePrelude.bind(this,e),oi)).type&&null===r.children.head&&(r=null):r=oi.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case ri:this.scanner.next();break;case ai:a=this.atrule.hasOwnProperty(t)&&"function"==typeof this.atrule[t].block?this.atrule[t].block.call(this):this.Block(si.call(this))}return{type:"Atrule",loc:this.getLocation(n,this.scanner.tokenStart),name:e,prelude:r,block:a}},generate:function(e){this.chunk("@"),this.chunk(e.name),null!==e.prelude&&(this.chunk(" "),this.node(e.prelude)),e.block?this.node(e.block):this.chunk(";")},walkContext:"atrule"},ci=Ee.TYPE,ui=ci.Semicolon,hi=ci.LeftCurlyBracket,di={name:"AtrulePrelude",structure:{children:[[]]},parse:function(e){var t=null;return null!==e&&(e=e.toLowerCase()),this.scanner.skipSC(),t=this.atrule.hasOwnProperty(e)&&"function"==typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),!0!==this.scanner.eof&&this.scanner.tokenType!==hi&&this.scanner.tokenType!==ui&&this.error("Semicolon or block is expected"),null===t&&(t=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e)},walkContext:"atrulePrelude"},pi=Ee.TYPE,fi=pi.Ident,mi=pi.String,gi=pi.Colon,bi=pi.LeftSquareBracket,yi=pi.RightSquareBracket,vi=36,ki=42,wi=61,xi=94,Si=124,Ci=126;function Ai(){this.scanner.eof&&this.error("Unexpected end of input");var e=this.scanner.tokenStart,t=!1,n=!0;return this.scanner.isDelim(ki)?(t=!0,n=!1,this.scanner.next()):this.scanner.isDelim(Si)||this.eat(fi),this.scanner.isDelim(Si)?this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==wi?(this.scanner.next(),this.eat(fi)):t&&this.error("Identifier is expected",this.scanner.tokenEnd):t&&this.error("Vertical line is expected"),n&&this.scanner.tokenType===gi&&(this.scanner.next(),this.eat(fi)),{type:"Identifier",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}}function zi(){var e=this.scanner.tokenStart,t=this.scanner.source.charCodeAt(e);return t!==wi&&t!==Ci&&t!==xi&&t!==vi&&t!==ki&&t!==Si&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),t!==wi&&(this.scanner.isDelim(wi)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(e)}var Pi={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var e,t=this.scanner.tokenStart,n=null,r=null,a=null;return this.eat(bi),this.scanner.skipSC(),e=Ai.call(this),this.scanner.skipSC(),this.scanner.tokenType!==yi&&(this.scanner.tokenType!==fi&&(n=zi.call(this),this.scanner.skipSC(),r=this.scanner.tokenType===mi?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===fi&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(yi),{type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,matcher:n,value:r,flags:a}},generate:function(e){var t=" ";this.chunk("["),this.node(e.name),null!==e.matcher&&(this.chunk(e.matcher),null!==e.value&&(this.node(e.value),"String"===e.value.type&&(t=""))),null!==e.flags&&(this.chunk(t),this.chunk(e.flags)),this.chunk("]")}},Li=Ee.TYPE,Ti=Ja.mode,Ei=Li.WhiteSpace,Oi=Li.Comment,Di=Li.Semicolon,Mi=Li.AtKeyword,Ii=Li.LeftCurlyBracket,Ri=Li.RightCurlyBracket;function Ni(e){return this.Raw(e,null,!0)}function Bi(){return this.parseWithFallback(this.Rule,Ni)}function ji(e){return this.Raw(e,Ti.semicolonIncluded,!0)}function _i(){if(this.scanner.tokenType===Di)return ji.call(this,this.scanner.tokenIndex);var e=this.parseWithFallback(this.Declaration,ji);return this.scanner.tokenType===Di&&this.scanner.next(),e}var Wi={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(e){var t=e?_i:Bi,n=this.scanner.tokenStart,r=this.createList();this.eat(Ii);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case Ri:break e;case Ei:case Oi:this.scanner.next();break;case Mi:r.push(this.parseWithFallback(this.Atrule,Ni));break;default:r.push(t.call(this))}return this.scanner.eof||this.eat(Ri),{type:"Block",loc:this.getLocation(n,this.scanner.tokenStart),children:r}},generate:function(e){this.chunk("{"),this.children(e,(function(e){"Declaration"===e.type&&this.chunk(";")})),this.chunk("}")},walkContext:"block"},qi=Ee.TYPE,Fi=qi.LeftSquareBracket,Ui=qi.RightSquareBracket,Yi={name:"Brackets",structure:{children:[[]]},parse:function(e,t){var n,r=this.scanner.tokenStart;return this.eat(Fi),n=e.call(this,t),this.scanner.eof||this.eat(Ui),{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("["),this.children(e),this.chunk("]")}},Hi=Ee.TYPE.CDC,Vi={name:"CDC",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.eat(Hi),{type:"CDC",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("--\x3e")}},Gi=Ee.TYPE.CDO,Ki={name:"CDO",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.eat(Gi),{type:"CDO",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("\x3c!--")}},$i=Ee.TYPE.Ident,Qi={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(46)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume($i)}},generate:function(e){this.chunk("."),this.chunk(e.name)}},Xi=Ee.TYPE.Ident,Zi={name:"Combinator",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 62:case 43:case 126:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.tokenType===Xi&&!1!==this.scanner.lookupValue(0,"deep")||this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}},Ji=Ee.TYPE.Comment,eo={name:"Comment",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=this.scanner.tokenEnd;return this.eat(Ji),t-e+2>=2&&42===this.scanner.source.charCodeAt(t-2)&&47===this.scanner.source.charCodeAt(t-1)&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e+2,t)}},generate:function(e){this.chunk("/*"),this.chunk(e.value),this.chunk("*/")}},to=ce.isCustomProperty,no=Ee.TYPE,ro=Ja.mode,ao=no.Ident,io=no.Hash,oo=no.Colon,so=no.Semicolon,lo=no.Delim,co=33,uo=35,ho=36,po=38,fo=42,mo=43,go=47;function bo(e){return this.Raw(e,ro.exclamationMarkOrSemicolon,!0)}function yo(e){return this.Raw(e,ro.exclamationMarkOrSemicolon,!1)}function vo(){var e=this.scanner.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.scanner.eof&&this.scanner.tokenType!==so&&!1===this.scanner.isDelim(co)&&!1===this.scanner.isBalanceEdge(e)&&this.error(),t}var ko={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var e,t=this.scanner.tokenStart,n=this.scanner.tokenIndex,r=wo.call(this),a=to(r),i=a?this.parseCustomProperty:this.parseValue,o=a?yo:bo,s=!1;return this.scanner.skipSC(),this.eat(oo),a||this.scanner.skipSC(),e=i?this.parseWithFallback(vo,o):o.call(this,this.scanner.tokenIndex),this.scanner.isDelim(co)&&(s=xo.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==so&&!1===this.scanner.isBalanceEdge(n)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:s,property:r,value:e}},generate:function(e){this.chunk(e.property),this.chunk(":"),this.node(e.value),e.important&&this.chunk(!0===e.important?"!important":"!"+e.important)},walkContext:"declaration"};function wo(){var e=this.scanner.tokenStart;if(this.scanner.tokenType===lo)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case fo:case ho:case mo:case uo:case po:this.scanner.next();break;case go:this.scanner.next(),this.scanner.isDelim(go)&&this.scanner.next()}return this.scanner.tokenType===io?this.eat(io):this.eat(ao),this.scanner.substrToCursor(e)}function xo(){this.eat(lo),this.scanner.skipSC();var e=this.consume(ao);return"important"===e||e}var So=Ee.TYPE,Co=Ja.mode,Ao=So.WhiteSpace,zo=So.Comment,Po=So.Semicolon;function Lo(e){return this.Raw(e,Co.semicolonIncluded,!0)}var To={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var e=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case Ao:case zo:case Po:this.scanner.next();break;default:e.push(this.parseWithFallback(this.Declaration,Lo))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,(function(e){"Declaration"===e.type&&this.chunk(";")}))}},Eo=F.consumeNumber,Oo=Ee.TYPE.Dimension,Do={name:"Dimension",structure:{value:String,unit:String},parse:function(){var e=this.scanner.tokenStart,t=Eo(this.scanner.source,e);return this.eat(Oo),{type:"Dimension",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t),unit:this.scanner.source.substring(t,this.scanner.tokenStart)}},generate:function(e){this.chunk(e.value),this.chunk(e.unit)}},Mo=Ee.TYPE.RightParenthesis,Io={name:"Function",structure:{name:String,children:[[]]},parse:function(e,t){var n,r=this.scanner.tokenStart,a=this.consumeFunctionName(),i=a.toLowerCase();return n=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.scanner.eof||this.eat(Mo),{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:a,children:n}},generate:function(e){this.chunk(e.name),this.chunk("("),this.children(e),this.chunk(")")},walkContext:"function"},Ro=Ee.TYPE.Hash,No={name:"HexColor",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return this.eat(Ro),{type:"HexColor",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#"),this.chunk(e.value)}},Bo=Ee.TYPE.Ident,jo={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(Bo)}},generate:function(e){this.chunk(e.name)}},_o=Ee.TYPE.Hash,Wo={name:"IdSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;return this.eat(_o),{type:"IdSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#"),this.chunk(e.name)}},qo=Ee.TYPE,Fo=qo.Ident,Uo=qo.Number,Yo=qo.Dimension,Ho=qo.LeftParenthesis,Vo=qo.RightParenthesis,Go=qo.Colon,Ko=qo.Delim,$o={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var e,t=this.scanner.tokenStart,n=null;if(this.eat(Ho),this.scanner.skipSC(),e=this.consume(Fo),this.scanner.skipSC(),this.scanner.tokenType!==Vo){switch(this.eat(Go),this.scanner.skipSC(),this.scanner.tokenType){case Uo:n=this.lookupNonWSType(1)===Ko?this.Ratio():this.Number();break;case Yo:n=this.Dimension();break;case Fo:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(Vo),{type:"MediaFeature",loc:this.getLocation(t,this.scanner.tokenStart),name:e,value:n}},generate:function(e){this.chunk("("),this.chunk(e.name),null!==e.value&&(this.chunk(":"),this.node(e.value)),this.chunk(")")}},Qo=Ee.TYPE,Xo=Qo.WhiteSpace,Zo=Qo.Comment,Jo=Qo.Ident,es=Qo.LeftParenthesis,ts={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var e=this.createList(),t=null,n=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case Zo:this.scanner.next();continue;case Xo:n=this.WhiteSpace();continue;case Jo:t=this.Identifier();break;case es:t=this.MediaFeature();break;default:break e}null!==n&&(e.push(n),n=null),e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e)}},ns=Ee.TYPE.Comma,rs={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(e){var t=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(t.push(this.MediaQuery(e)),this.scanner.tokenType===ns);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e,(function(){this.chunk(",")}))}},as=Ee.TYPE.Number,is={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(as)}},generate:function(e){this.chunk(e.value)}},os={name:"Operator",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.value)}},ss=Ee.TYPE,ls=ss.LeftParenthesis,cs=ss.RightParenthesis,us={name:"Parentheses",structure:{children:[[]]},parse:function(e,t){var n,r=this.scanner.tokenStart;return this.eat(ls),n=e.call(this,t),this.scanner.eof||this.eat(cs),{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("("),this.children(e),this.chunk(")")}},hs=F.consumeNumber,ds=Ee.TYPE.Percentage,ps={name:"Percentage",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=hs(this.scanner.source,e);return this.eat(ds),{type:"Percentage",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t)}},generate:function(e){this.chunk(e.value),this.chunk("%")}},fs=Ee.TYPE,ms=fs.Ident,gs=fs.Function,bs=fs.Colon,ys=fs.RightParenthesis,vs={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t,n=this.scanner.tokenStart,r=null;return this.eat(bs),this.scanner.tokenType===gs?(t=(e=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(t)?(this.scanner.skipSC(),r=this.pseudo[t].call(this),this.scanner.skipSC()):(r=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(ys)):e=this.consume(ms),{type:"PseudoClassSelector",loc:this.getLocation(n,this.scanner.tokenStart),name:e,children:r}},generate:function(e){this.chunk(":"),this.chunk(e.name),null!==e.children&&(this.chunk("("),this.children(e),this.chunk(")"))},walkContext:"function"},ks=Ee.TYPE,ws=ks.Ident,xs=ks.Function,Ss=ks.Colon,Cs=ks.RightParenthesis,As={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t,n=this.scanner.tokenStart,r=null;return this.eat(Ss),this.eat(Ss),this.scanner.tokenType===xs?(t=(e=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(t)?(this.scanner.skipSC(),r=this.pseudo[t].call(this),this.scanner.skipSC()):(r=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(Cs)):e=this.consume(ws),{type:"PseudoElementSelector",loc:this.getLocation(n,this.scanner.tokenStart),name:e,children:r}},generate:function(e){this.chunk("::"),this.chunk(e.name),null!==e.children&&(this.chunk("("),this.children(e),this.chunk(")"))},walkContext:"function"},zs=Ee.isDigit,Ps=Ee.TYPE,Ls=Ps.Number,Ts=Ps.Delim,Es=46;function Os(){this.scanner.skipWS();for(var e=this.consume(Ls),t=0;t<e.length;t++){var n=e.charCodeAt(t);zs(n)||n===Es||this.error("Unsigned number is expected",this.scanner.tokenStart-e.length+t)}return 0===Number(e)&&this.error("Zero number is not allowed",this.scanner.tokenStart-e.length),e}var Ds={name:"Ratio",structure:{left:String,right:String},parse:function(){var e,t=this.scanner.tokenStart,n=Os.call(this);return this.scanner.skipWS(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.eat(Ts),e=Os.call(this),{type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:n,right:e}},generate:function(e){this.chunk(e.left),this.chunk("/"),this.chunk(e.right)}},Ms=Ee.TYPE,Is=Ja.mode,Rs=Ms.LeftCurlyBracket;function Ns(e){return this.Raw(e,Is.leftCurlyBracket,!0)}function Bs(){var e=this.SelectorList();return"Raw"!==e.type&&!1===this.scanner.eof&&this.scanner.tokenType!==Rs&&this.error(),e}var js={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var e,t,n=this.scanner.tokenIndex,r=this.scanner.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(Bs,Ns):Ns.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.scanner.tokenStart),prelude:e,block:t}},generate:function(e){this.node(e.prelude),this.node(e.block)},walkContext:"rule"},_s=Ee.TYPE.Comma,Ws={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var e=this.createList();!this.scanner.eof&&(e.push(this.Selector()),this.scanner.tokenType===_s);)this.scanner.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,(function(){this.chunk(",")}))},walkContext:"selector"},qs=Ee.TYPE.String,Fs={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(qs)}},generate:function(e){this.chunk(e.value)}},Us=Ee.TYPE,Ys=Us.WhiteSpace,Hs=Us.Comment,Vs=Us.AtKeyword,Gs=Us.CDO,Ks=Us.CDC;function $s(e){return this.Raw(e,null,!1)}var Qs={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var e,t=this.scanner.tokenStart,n=this.createList();!this.scanner.eof;){switch(this.scanner.tokenType){case Ys:this.scanner.next();continue;case Hs:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}e=this.Comment();break;case Gs:e=this.CDO();break;case Ks:e=this.CDC();break;case Vs:e=this.parseWithFallback(this.Atrule,$s);break;default:e=this.parseWithFallback(this.Rule,$s)}n.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:n}},generate:function(e){this.children(e)},walkContext:"stylesheet"},Xs=Ee.TYPE.Ident,Zs=42;function Js(){this.scanner.tokenType!==Xs&&!1===this.scanner.isDelim(Zs)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var el={name:"TypeSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;return this.scanner.isDelim(124)?(this.scanner.next(),Js.call(this)):(Js.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),Js.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}},tl=Ee.isHexDigit,nl=Ee.cmpChar,rl=Ee.TYPE,al=Ee.NAME,il=rl.Ident,ol=rl.Number,sl=rl.Dimension,ll=43,cl=45,ul=63;function hl(e,t){for(var n=this.scanner.tokenStart+e,r=0;n<this.scanner.tokenEnd;n++){var a=this.scanner.source.charCodeAt(n);if(a===cl&&t&&0!==r)return 0===hl.call(this,e+r+1,!1)&&this.error(),-1;tl(a)||this.error(t&&0!==r?"HyphenMinus"+(r<6?" or hex digit":"")+" is expected":r<6?"Hex digit is expected":"Unexpected input",n),++r>6&&this.error("Too many hex digits",n)}return this.scanner.next(),r}function dl(e){for(var t=0;this.scanner.isDelim(ul);)++t>e&&this.error("Too many question marks"),this.scanner.next()}function pl(e){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==e&&this.error(al[e]+" is expected")}function fl(){var e=0;return this.scanner.isDelim(ll)?(this.scanner.next(),this.scanner.tokenType===il?void((e=hl.call(this,0,!0))>0&&dl.call(this,6-e)):this.scanner.isDelim(ul)?(this.scanner.next(),void dl.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===ol?(pl.call(this,ll),e=hl.call(this,1,!0),this.scanner.isDelim(ul)?void dl.call(this,6-e):this.scanner.tokenType===sl||this.scanner.tokenType===ol?(pl.call(this,cl),void hl.call(this,1,!1)):void 0):this.scanner.tokenType===sl?(pl.call(this,ll),void((e=hl.call(this,1,!0))>0&&dl.call(this,6-e))):void this.error()}var ml={name:"UnicodeRange",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return nl(this.scanner.source,e,117)||this.error("U is expected"),nl(this.scanner.source,e+1,ll)||this.error("Plus sign is expected"),this.scanner.next(),fl.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.value)}},gl=Ee.isWhiteSpace,bl=Ee.cmpStr,yl=Ee.TYPE,vl=yl.Function,kl=yl.Url,wl=yl.RightParenthesis,xl={name:"Url",structure:{value:["String","Raw"]},parse:function(){var e,t=this.scanner.tokenStart;switch(this.scanner.tokenType){case kl:for(var n=t+4,r=this.scanner.tokenEnd-1;n<r&&gl(this.scanner.source.charCodeAt(n));)n++;for(;n<r&&gl(this.scanner.source.charCodeAt(r-1));)r--;e={type:"Raw",loc:this.getLocation(n,r),value:this.scanner.source.substring(n,r)},this.eat(kl);break;case vl:bl(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(vl),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(wl);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.scanner.tokenStart),value:e}},generate:function(e){this.chunk("url"),this.chunk("("),this.node(e.value),this.chunk(")")}},Sl=Ee.TYPE.WhiteSpace,Cl=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Al={AnPlusB:Ya,Atrule:li,AtrulePrelude:di,AttributeSelector:Pi,Block:Wi,Brackets:Yi,CDC:Vi,CDO:Ki,ClassSelector:Qi,Combinator:Zi,Comment:eo,Declaration:ko,DeclarationList:To,Dimension:Do,Function:Io,HexColor:No,Identifier:jo,IdSelector:Wo,MediaFeature:$o,MediaQuery:ts,MediaQueryList:rs,Nth:{name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(e){this.scanner.skipSC();var t,n=this.scanner.tokenStart,r=n,a=null;return t=this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),this.scanner.skipSC(),e&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),a=this.SelectorList(),this.needPositions&&(r=this.getLastListNode(a.children).loc.end.offset)):this.needPositions&&(r=t.loc.end.offset),{type:"Nth",loc:this.getLocation(n,r),nth:t,selector:a}},generate:function(e){this.node(e.nth),null!==e.selector&&(this.chunk(" of "),this.node(e.selector))}},Number:is,Operator:os,Parentheses:us,Percentage:ps,PseudoClassSelector:vs,PseudoElementSelector:As,Ratio:Ds,Raw:Ja,Rule:js,Selector:{name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e)}},SelectorList:Ws,String:Fs,StyleSheet:Qs,TypeSelector:el,UnicodeRange:ml,Url:xl,Value:{name:"Value",structure:{children:[[]]},parse:function(){var e=this.scanner.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.scanner.tokenStart),children:t}},generate:function(e){this.children(e)}},WhiteSpace:{name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(Sl),Cl},generate:function(e){this.chunk(e.value)}}},zl=Hr(Pa),Pl={generic:!0,types:zl.types,properties:zl.properties,node:Al},Ll=Ee.cmpChar,Tl=Ee.cmpStr,El=Ee.TYPE,Ol=El.Ident,Dl=El.String,Ml=El.Number,Il=El.Function,Rl=El.Url,Nl=El.Hash,Bl=El.Dimension,jl=El.Percentage,_l=El.LeftParenthesis,Wl=El.LeftSquareBracket,ql=El.Comma,Fl=El.Delim,Ul=function(e){switch(this.scanner.tokenType){case Nl:return this.HexColor();case ql:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case _l:return this.Parentheses(this.readSequence,e.recognizer);case Wl:return this.Brackets(this.readSequence,e.recognizer);case Dl:return this.String();case Bl:return this.Dimension();case jl:return this.Percentage();case Ml:return this.Number();case Il:return Tl(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Rl:return this.Url();case Ol:return Ll(this.scanner.source,this.scanner.tokenStart,117)&&Ll(this.scanner.source,this.scanner.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case Fl:var t=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(47===t||42===t||43===t||45===t)return this.Operator();35===t&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1)}},Yl={getNode:Ul},Hl=Ee.TYPE,Vl=Hl.Delim,Gl=Hl.Ident,Kl=Hl.Dimension,$l=Hl.Percentage,Ql=Hl.Number,Xl=Hl.Hash,Zl=Hl.Colon,Jl=Hl.LeftSquareBracket,ec=35,tc=42,nc=43,rc=47,ac=46,ic=62,oc=124,sc=126;var lc={getNode:function(e){switch(this.scanner.tokenType){case Jl:return this.AttributeSelector();case Xl:return this.IdSelector();case Zl:return this.scanner.lookupType(1)===Zl?this.PseudoElementSelector():this.PseudoClassSelector();case Gl:return this.TypeSelector();case Ql:case $l:return this.Percentage();case Kl:this.scanner.source.charCodeAt(this.scanner.tokenStart)===ac&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case Vl:switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case nc:case ic:case sc:return e.space=null,e.ignoreWSAfter=!0,this.Combinator();case rc:return this.Combinator();case ac:return this.ClassSelector();case tc:case oc:return this.TypeSelector();case ec:return this.IdSelector()}}}},cc=function(){this.scanner.skipSC();var e=this.createSingleNodeList(this.IdSelector());return this.scanner.skipSC(),e},uc=Ee.TYPE,hc=Ja.mode,dc=uc.Comma,pc={AtrulePrelude:Yl,Selector:lc,Value:{getNode:Ul,"-moz-element":cc,element:cc,expression:function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))},var:function(){var e=this.createList();return this.scanner.skipSC(),e.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===dc&&(e.push(this.Operator()),e.push(this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,hc.exclamationMarkOrSemicolon,!1))),e}}},fc=Ee.TYPE,mc=fc.String,gc=fc.Ident,bc=fc.Url,yc=fc.Function,vc=fc.LeftParenthesis,kc={parse:{prelude:function(){var e=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case mc:e.push(this.String());break;case bc:case yc:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.lookupNonWSType(0)!==gc&&this.lookupNonWSType(0)!==vc||(e.push(this.WhiteSpace()),e.push(this.MediaQueryList())),e},block:null}},wc=Ee.TYPE,xc=wc.WhiteSpace,Sc=wc.Comment,Cc=wc.Ident,Ac=wc.Function,zc=wc.Colon,Pc=wc.LeftParenthesis;function Lc(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function Tc(){return this.scanner.skipSC(),this.scanner.tokenType===Cc&&this.lookupNonWSType(1)===zc?this.createSingleNodeList(this.Declaration()):Ec.call(this)}function Ec(){var e,t=this.createList(),n=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case xc:n=this.WhiteSpace();continue;case Sc:this.scanner.next();continue;case Ac:e=this.Function(Lc,this.scope.AtrulePrelude);break;case Cc:e=this.Identifier();break;case Pc:e=this.Parentheses(Tc,this.scope.AtrulePrelude);break;default:break e}null!==n&&(t.push(n),n=null),t.push(e)}return t}var Oc={parse:function(){return this.createSingleNodeList(this.SelectorList())}},Dc={parse:function(){return this.createSingleNodeList(this.Nth(!0))}},Mc={parse:function(){return this.createSingleNodeList(this.Nth(!1))}};var Ic=Sa(function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}(Pl,{parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:pc,atrule:{"font-face":{parse:{prelude:null,block:function(){return this.Block(!0)}}},import:kc,media:{parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},page:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},supports:{parse:{prelude:function(){var e=Ec.call(this);return null===this.getFirstListNode(e)&&this.error("Condition is expected"),e},block:function(){return this.Block(!1)}}}},pseudo:{dir:{parse:function(){return this.createSingleNodeList(this.Identifier())}},has:{parse:function(){return this.createSingleNodeList(this.SelectorList())}},lang:{parse:function(){return this.createSingleNodeList(this.Identifier())}},matches:Oc,not:Oc,"nth-child":Dc,"nth-last-child":Dc,"nth-last-of-type":Mc,"nth-of-type":Mc,slotted:{parse:function(){return this.createSingleNodeList(this.Selector())}}},node:Al},{node:Al})),Rc=Object.prototype.hasOwnProperty;function Nc(e,t){var n=Object.create(null);if(!Array.isArray(e))return null;for(var r=0;r<e.length;r++){var a=e[r];t&&(a=a.toLowerCase()),n[a]=!0}return n}function Bc(e){if(!e)return null;var t=Nc(e.tags,!0),n=Nc(e.ids),r=Nc(e.classes);return null===t&&null===n&&null===r?null:{tags:t,ids:n,classes:r}}var jc={buildIndex:function(e){var t=!1;if(e.scopes&&Array.isArray(e.scopes)){t=Object.create(null);for(var n=0;n<e.scopes.length;n++){var r=e.scopes[n];if(!r||!Array.isArray(r))throw new Error("Wrong usage format");for(var a=0;a<r.length;a++){var i=r[a];if(Rc.call(t,i))throw new Error("Class can't be used for several scopes: "+i);t[i]=n+1}}}return{whitelist:Bc(e),blacklist:Bc(e.blacklist),scopes:t}}},_c={hasNoChildren:function(e){return!e||!e.children||e.children.isEmpty()},isNodeChildrenList:function(e,t){return null!==e&&e.children===t}},Wc=Ic.keyword,{hasNoChildren:qc}=_c,{isNodeChildrenList:Fc}=_c,Uc=Object.prototype.hasOwnProperty,Yc=Ic.walk,{hasNoChildren:Hc}=_c;var{isNodeChildrenList:Vc}=_c;function Gc(e){return"Operator"===e.type&&"+"!==e.value&&"-"!==e.value}var Kc=Ic.walk,$c={Atrule:function(e,t,n){if(e.block&&(null!==this.stylesheet&&(this.stylesheet.firstAtrulesAllowed=!1),qc(e.block)))n.remove(t);else switch(e.name){case"charset":if(qc(e.prelude))return void n.remove(t);if(t.prev)return void n.remove(t);break;case"import":if(null===this.stylesheet||!this.stylesheet.firstAtrulesAllowed)return void n.remove(t);n.prevUntil(t.prev,(function(e){if("Atrule"!==e.type||"import"!==e.name&&"charset"!==e.name)return this.root.firstAtrulesAllowed=!1,n.remove(t),!0}),this);break;default:var r=Wc(e.name).basename;"keyframes"!==r&&"media"!==r&&"supports"!==r||(qc(e.prelude)||qc(e.block))&&n.remove(t)}},Comment:function(e,t,n){n.remove(t)},Declaration:function(e,t,n){e.value.children&&e.value.children.isEmpty()&&n.remove(t)},Raw:function(e,t,n){(Fc(this.stylesheet,n)||Fc(this.block,n))&&n.remove(t)},Rule:function(e,t,n,r){if(Hc(e.prelude)||Hc(e.block))n.remove(t);else{var a=r.usage;!a||null===a.whitelist&&null===a.blacklist||(function e(t,n){return t.children.each((function(r,a,i){var o=!1;Yc(r,(function(r){if(null===this.selector||this.selector===t)switch(r.type){case"SelectorList":null!==this.function&&"not"===this.function.name.toLowerCase()||e(r,n)&&(o=!0);break;case"ClassSelector":null===n.whitelist||null===n.whitelist.classes||Uc.call(n.whitelist.classes,r.name)||(o=!0),null!==n.blacklist&&null!==n.blacklist.classes&&Uc.call(n.blacklist.classes,r.name)&&(o=!0);break;case"IdSelector":null===n.whitelist||null===n.whitelist.ids||Uc.call(n.whitelist.ids,r.name)||(o=!0),null!==n.blacklist&&null!==n.blacklist.ids&&Uc.call(n.blacklist.ids,r.name)&&(o=!0);break;case"TypeSelector":"*"!==r.name.charAt(r.name.length-1)&&(null===n.whitelist||null===n.whitelist.tags||Uc.call(n.whitelist.tags,r.name.toLowerCase())||(o=!0),null!==n.blacklist&&null!==n.blacklist.tags&&Uc.call(n.blacklist.tags,r.name.toLowerCase())&&(o=!0))}})),o&&i.remove(a)})),t.children.isEmpty()}(e.prelude,a),!Hc(e.prelude))||n.remove(t)}},TypeSelector:function(e,t,n){if("*"===t.data.name){var r=t.next&&t.next.data.type;"IdSelector"!==r&&"ClassSelector"!==r&&"AttributeSelector"!==r&&"PseudoClassSelector"!==r&&"PseudoElementSelector"!==r||n.remove(t)}},WhiteSpace:function(e,t,n){null!==t.next&&null!==t.prev?Vc(this.stylesheet,n)||Vc(this.block,n)?n.remove(t):"WhiteSpace"!==t.next.data.type?(Gc(t.prev.data)||Gc(t.next.data))&&n.remove(t):n.remove(t):n.remove(t)}},Qc=function(e,t){Kc(e,{leave:function(e,n,r){$c.hasOwnProperty(e.type)&&$c[e.type].call(this,e,n,r,t)}})},Xc=Ic.keyword,Zc=/\\([0-9A-Fa-f]{1,6})(\r\n|[ \t\n\f\r])?|\\./g,Jc=/^(-?\d|--)|[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;var eu=Ic.List;var tu=function(e){e.children.each((function(e,t,n){"Identifier"===e.type&&"none"===e.name.toLowerCase()&&(n.head===n.tail?t.data={type:"Number",loc:e.loc,value:"0"}:function(e,t){var n=t.prev,r=t.next;null!==r?"WhiteSpace"!==r.data.type||null!==n&&"WhiteSpace"!==n.data.type||e.remove(r):null!==n&&"WhiteSpace"===n.data.type&&e.remove(n),e.remove(t)}(n,t))}))},nu=Ic.property,ru={font:function(e){var t=e.children;t.eachRight((function(e,t){if("Identifier"===e.type)if("bold"===e.name)t.data={type:"Number",loc:e.loc,value:"700"};else if("normal"===e.name){var n=t.prev;n&&"Operator"===n.data.type&&"/"===n.data.value&&this.remove(n),this.remove(t)}else if("medium"===e.name){var r=t.next;r&&"Operator"===r.data.type||this.remove(t)}})),t.each((function(e,t){"WhiteSpace"===e.type&&(t.prev&&t.next&&"WhiteSpace"!==t.next.data.type||this.remove(t))})),t.isEmpty()&&t.insert(t.createItem({type:"Identifier",name:"normal"}))},"font-weight":function(e){var t=e.children.head.data;if("Identifier"===t.type)switch(t.name){case"normal":e.children.head.data={type:"Number",loc:t.loc,value:"400"};break;case"bold":e.children.head.data={type:"Number",loc:t.loc,value:"700"}}},background:function(e){function t(){if(a.length)return a[a.length-1].type}function n(){"WhiteSpace"===t()&&a.pop(),a.length||a.unshift({type:"Number",loc:null,value:"0"},{type:"WhiteSpace",value:" "},{type:"Number",loc:null,value:"0"}),r.push.apply(r,a),a=[]}var r=[],a=[];e.children.each((function(e){if("Operator"===e.type&&","===e.value)return n(),void r.push(e);("Identifier"!==e.type||"transparent"!==e.name&&"none"!==e.name&&"repeat"!==e.name&&"scroll"!==e.name)&&("WhiteSpace"!==e.type||a.length&&"WhiteSpace"!==t())&&a.push(e)})),n(),e.children=(new eu).fromArray(r)},border:tu,outline:tu},au=/^(?:\+|(-))?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,iu=/^([\+\-])?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,ou={Dimension:!0,HexColor:!0,Identifier:!0,Number:!0,Raw:!0,UnicodeRange:!0};function su(e,t){var n=t&&null!==t.prev&&ou.hasOwnProperty(t.prev.data.type)?iu:au;return""!==(e=String(e).replace(n,"$1$2$3"))&&"-"!==e||(e="0"),e}var lu=function(e,t){e.value=su(e.value,t)},cu=lu.pack=su,uu={px:!0,mm:!0,cm:!0,in:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vh:!0,vw:!0,vmin:!0,vmax:!0,vm:!0},hu=Ic.lexer,du=lu.pack,pu=new Set(["width","min-width","max-width","height","min-height","max-height"]),fu=new RegExp("^((\\\\[0-9a-f]{1,6}(\\r\\n|[ \\n\\r\\t\\f])?|\\\\[^\\n\\r\\f0-9a-fA-F])|[^\"'\\(\\)\\\\\\s\0\b\v-])*$","i"),mu=Ic.lexer,gu=lu.pack,bu={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},yu={8e5:"maroon",800080:"purple",808e3:"olive",808080:"gray","00ffff":"cyan",f0ffff:"azure",f5f5dc:"beige",ffe4c4:"bisque","000000":"black","0000ff":"blue",a52a2a:"brown",ff7f50:"coral",ffd700:"gold","008000":"green","4b0082":"indigo",fffff0:"ivory",f0e68c:"khaki","00ff00":"lime",faf0e6:"linen","000080":"navy",ffa500:"orange",da70d6:"orchid",cd853f:"peru",ffc0cb:"pink",dda0dd:"plum",f00:"red",ff0000:"red",fa8072:"salmon",a0522d:"sienna",c0c0c0:"silver",fffafa:"snow",d2b48c:"tan","008080":"teal",ff6347:"tomato",ee82ee:"violet",f5deb3:"wheat",ffffff:"white",ffff00:"yellow"};function vu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ku(e,t,n,r){var a,i,o;if(0===t)a=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;a=vu(l,s,e+1/3),i=vu(l,s,e),o=vu(l,s,e-1/3)}return[Math.round(255*a),Math.round(255*i),Math.round(255*o),r]}function wu(e){return 1===(e=e.toString(16)).length?"0"+e:e}function xu(e,t,n){for(var r=e.head,a=[],i=!1;null!==r;){var o=r.data,s=o.type;switch(s){case"Number":case"Percentage":if(i)return;i=!0,a.push({type:s,value:Number(o.value)});break;case"Operator":if(","===o.value){if(!i)return;i=!1}else if(i||"+"!==o.value)return;break;default:return}r=r.next}if(a.length===t){if(4===a.length){if("Number"!==a[3].type)return;a[3].type="Alpha"}if(n){if(a[0].type!==a[1].type||a[0].type!==a[2].type)return}else{if("Number"!==a[0].type||"Percentage"!==a[1].type||"Percentage"!==a[2].type)return;a[0].type="Angle"}return a.map((function(e){var t=Math.max(0,e.value);switch(e.type){case"Number":t=Math.min(t,255);break;case"Percentage":if(t=Math.min(t,100)/100,!n)return t;t*=255;break;case"Angle":return(t%360+360)%360/360;case"Alpha":return Math.min(t,1)}return Math.round(t)}))}}function Su(e,t){var n=e.value.toLowerCase();6===n.length&&n[0]===n[1]&&n[2]===n[3]&&n[4]===n[5]&&(n=n[0]+n[2]+n[4]),yu[n]?t.data={type:"Identifier",loc:e.loc,name:yu[n]}:e.value=n}var Cu={compressFunction:function(e,t,n){var r,a=e.name;if("rgba"===a||"hsla"===a){if(!(r=xu(e.children,4,"rgba"===a)))return;if("hsla"===a&&(r=ku.apply(null,r),e.name="rgba"),0===r[3]){var i=this.function&&this.function.name;if(0===r[0]&&0===r[1]&&0===r[2]||!/^(?:to|from|color-stop)$|gradient$/i.test(i))return void(t.data={type:"Identifier",loc:e.loc,name:"transparent"})}if(1!==r[3])return void e.children.each((function(e,t,n){"Operator"!==e.type?t.data={type:"Number",loc:e.loc,value:gu(r.shift(),null)}:","!==e.value&&n.remove(t)}));a="rgb"}if("hsl"===a){if(!(r=r||xu(e.children,3,!1)))return;r=ku.apply(null,r),a="rgb"}if("rgb"===a){if(!(r=r||xu(e.children,3,!0)))return;var o=t.next;o&&"WhiteSpace"!==o.data.type&&n.insert(n.createItem({type:"WhiteSpace",value:" "}),o),t.data={type:"HexColor",loc:e.loc,value:wu(r[0])+wu(r[1])+wu(r[2])},Su(t.data,t)}},compressIdent:function(e,t){if(null!==this.declaration){var n=e.name.toLowerCase();if(bu.hasOwnProperty(n)&&mu.matchDeclaration(this.declaration).isType(e,"color")){var r=bu[n];r.length+1<=n.length?t.data={type:"HexColor",loc:e.loc,value:r}:("grey"===n&&(n="gray"),e.name=n)}}},compressHex:Su},Au=Ic.walk,zu={Atrule:function(e){"keyframes"===Xc(e.name).basename&&function(e){e.block.children.each((function(e){e.prelude.children.each((function(e){e.children.each((function(e,t){"Percentage"===e.type&&"100"===e.value?t.data={type:"TypeSelector",loc:e.loc,name:"to"}:"TypeSelector"===e.type&&"from"===e.name&&(t.data={type:"Percentage",loc:e.loc,value:"0"})}))}))}))}(e)},AttributeSelector:function(e){var t=e.value;if(t&&"String"===t.type){var n=t.value.replace(/^(.)(.*)\1$/,"$2");(function(e){if(""!==e&&"-"!==e)return e=e.replace(Zc,"a"),!Jc.test(e)})(n)&&(e.value={type:"Identifier",loc:t.loc,name:n})}},Value:function(e){if(this.declaration){var t=nu(this.declaration.property);ru.hasOwnProperty(t.basename)&&ru[t.basename](e)}},Dimension:function(e,t){var n=cu(e.value,t);if(e.value=n,"0"===n&&null!==this.declaration&&null===this.atrulePrelude){var r=e.unit.toLowerCase();if(!uu.hasOwnProperty(r))return;if("-ms-flex"===this.declaration.property||"flex"===this.declaration.property)return;if(this.function&&"calc"===this.function.name)return;t.data={type:"Number",loc:e.loc,value:n}}},Percentage:function(e,t){e.value=du(e.value,t),"0"===e.value&&this.declaration&&!pu.has(this.declaration.property)&&(t.data={type:"Number",loc:e.loc,value:e.value},hu.matchDeclaration(this.declaration).isType(t.data,"length")||(t.data=e))},Number:lu,String:function(e){var t=e.value;t=t.replace(/\\(\r\n|\r|\n|\f)/g,""),e.value=t},Url:function(e){var t=e.value;if("String"===t.type){var n=t.value[0],r=t.value.substr(1,t.value.length-2);r=r.replace(/\\\\/g,"/"),fu.test(r)?e.value={type:"Raw",loc:e.value.loc,value:r}:e.value.value=-1===r.indexOf('"')?'"'+r+'"':n+r+n}},HexColor:Cu.compressHex,Identifier:Cu.compressIdent,Function:Cu.compressFunction},Pu=function(e){Au(e,{leave:function(e,t,n){zu.hasOwnProperty(e.type)&&zu[e.type].call(this,e,t,n)}})},Lu=Ic.generate;function Tu(){this.seed=0,this.map=Object.create(null)}Tu.prototype.resolve=function(e){var t=this.map[e];return t||(t=++this.seed,this.map[e]=t),t};var Eu=Ic.generate,Ou={"first-letter":!0,"first-line":!0,after:!0,before:!0},Du={link:!0,visited:!0,hover:!0,active:!0,"first-letter":!0,"first-line":!0,after:!0,before:!0},Mu=Ic.keyword,Iu=Ic.walk,Ru=Ic.generate,Nu=function(e,t){var n,r=(n=new Tu,function(e){var t=Lu(e);return e.id=n.resolve(t),e.length=t.length,e.fingerprint=null,e});return Iu(e,{visit:"Rule",enter:function(e){e.block.children.each(r),function(e,t){var n=Object.create(null),r=!1;e.prelude.children.each((function(e){var a="*",i=0;e.children.each((function(o){switch(o.type){case"ClassSelector":if(t&&t.scopes){var s=t.scopes[o.name]||0;if(0!==i&&s!==i)throw new Error("Selector can't has classes from different scopes: "+Eu(e));i=s}break;case"PseudoClassSelector":var l=o.name.toLowerCase();Du.hasOwnProperty(l)||(n[l]=!0,r=!0);break;case"PseudoElementSelector":l=o.name.toLowerCase();Ou.hasOwnProperty(l)||(n[l]=!0,r=!0);break;case"TypeSelector":a=o.name.toLowerCase();break;case"AttributeSelector":o.flags&&(n["["+o.flags.toLowerCase()+"]"]=!0,r=!0);break;case"WhiteSpace":case"Combinator":a="*"}})),e.compareMarker=function(e){var t=0,n=0,r=0;return e.children.each((function e(a){switch(a.type){case"SelectorList":case"Selector":a.children.each(e);break;case"IdSelector":t++;break;case"ClassSelector":case"AttributeSelector":n++;break;case"PseudoClassSelector":switch(a.name.toLowerCase()){case"not":a.children.each(e);break;case"before":case"after":case"first-line":case"first-letter":r++;break;default:n++}break;case"PseudoElementSelector":r++;break;case"TypeSelector":"*"!==a.name.charAt(a.name.length-1)&&r++}})),[t,n,r]}(e).toString(),e.id=null,e.id=Eu(e),i&&(e.compareMarker+=":"+i),"*"!==a&&(e.compareMarker+=","+a)})),e.pseudoSignature=r&&Object.keys(n).sort().join(",")}(e,t.usage)}}),Iu(e,{visit:"Atrule",enter:function(e){e.prelude&&(e.prelude.id=null,e.prelude.id=Ru(e.prelude)),"keyframes"===Mu(e.name).basename&&(e.block.avoidRulesMerge=!0,e.block.children.each((function(e){e.prelude.children.each((function(e){e.compareMarker=e.id}))})))}}),{declaration:r}},Bu=Ic.List,ju=Ic.keyword,_u=Object.prototype.hasOwnProperty,Wu=Ic.walk;function qu(e,t,n,r){var a=t.data,i=ju(a.name).basename,o=a.name.toLowerCase()+"/"+(a.prelude?a.prelude.id:null);_u.call(e,i)||(e[i]=Object.create(null)),r&&delete e[i][o],_u.call(e[i],o)||(e[i][o]=new Bu),e[i][o].append(n.remove(t))}function Fu(e){return"Atrule"===e.type&&"media"===e.name}function Uu(e,t,n){if(Fu(e)){var r=t.prev&&t.prev.data;r&&Fu(r)&&e.prelude&&r.prelude&&e.prelude.id===r.prelude.id&&(r.block.children.appendList(e.block.children),n.remove(t))}}var Yu=function(e,t){!function(e,t){var n=Object.create(null),r=null;for(var a in e.children.each((function(e,a,i){if("Atrule"===e.type){var o=ju(e.name).basename;switch(o){case"keyframes":return void qu(n,a,i,!0);case"media":if(t.forceMediaMerge)return void qu(n,a,i,!1)}null===r&&"charset"!==o&&"import"!==o&&(r=a)}else null===r&&(r=a)})),n)for(var i in n[a])e.children.insertList(n[a][i],"media"===a?null:r)}(e,t),Wu(e,{visit:"Atrule",reverse:!0,enter:Uu})},Hu=Object.prototype.hasOwnProperty;function Vu(e,t){for(var n=e.head;null!==n;){for(var r=t.head;null!==r;){if(n.data.compareMarker===r.data.compareMarker)return!0;r=r.next}n=n.next}return!1}var Gu={isEqualSelectors:function(e,t){for(var n=e.head,r=t.head;null!==n&&null!==r&&n.data.id===r.data.id;)n=n.next,r=r.next;return null===n&&null===r},isEqualDeclarations:function(e,t){for(var n=e.head,r=t.head;null!==n&&null!==r&&n.data.id===r.data.id;)n=n.next,r=r.next;return null===n&&null===r},compareDeclarations:function(e,t){for(var n={eq:[],ne1:[],ne2:[],ne2overrided:[]},r=Object.create(null),a=Object.create(null),i=t.head;i;i=i.next)a[i.data.id]=!0;for(i=e.head;i;i=i.next){(o=i.data).fingerprint&&(r[o.fingerprint]=o.important),a[o.id]?(a[o.id]=!1,n.eq.push(o)):n.ne1.push(o)}for(i=t.head;i;i=i.next){var o;a[(o=i.data).id]&&((!Hu.call(r,o.fingerprint)||!r[o.fingerprint]&&o.important)&&n.ne2.push(o),n.ne2overrided.push(o))}return n},addSelectors:function(e,t){return t.each((function(t){for(var n=t.id,r=e.head;r;){var a=r.data.id;if(a===n)return;if(a>n)break;r=r.next}e.insert(e.createItem(t),r)})),e},hasSimilarSelectors:Vu,unsafeToSkipNode:function e(t){switch(t.type){case"Rule":return Vu(t.prelude.children,this);case"Atrule":if(t.block)return t.block.children.some(e,this);break;case"Declaration":return!1}return!0}},Ku=Ic.walk;function $u(e,t,n){var r=e.prelude.children,a=e.block.children;n.prevUntil(t.prev,(function(i){if("Rule"!==i.type)return Gu.unsafeToSkipNode.call(r,i);var o=i.prelude.children,s=i.block.children;if(e.pseudoSignature===i.pseudoSignature){if(Gu.isEqualSelectors(o,r))return s.appendList(a),n.remove(t),!0;if(Gu.isEqualDeclarations(a,s))return Gu.addSelectors(o,r),n.remove(t),!0}return Gu.hasSimilarSelectors(r,o)}))}var Qu=Ic.List,Xu=Ic.walk;function Zu(e,t,n){for(var r=e.prelude.children;r.head!==r.tail;){var a=new Qu;a.insert(r.remove(r.head)),n.insert(n.createItem({type:"Rule",loc:e.loc,prelude:{type:"SelectorList",loc:e.prelude.loc,children:a},block:{type:"Block",loc:e.block.loc,children:e.block.children.copy()},pseudoSignature:e.pseudoSignature}),t)}}var Ju=Ic.List,eh=Ic.generate,th=Ic.walk,nh=1,rh=2,ah=0,ih=1,oh=2,sh=3,lh=["top","right","bottom","left"],ch={"margin-top":"top","margin-right":"right","margin-bottom":"bottom","margin-left":"left","padding-top":"top","padding-right":"right","padding-bottom":"bottom","padding-left":"left","border-top-color":"top","border-right-color":"right","border-bottom-color":"bottom","border-left-color":"left","border-top-width":"top","border-right-width":"right","border-bottom-width":"bottom","border-left-width":"left","border-top-style":"top","border-right-style":"right","border-bottom-style":"bottom","border-left-style":"left"},uh={margin:"margin","margin-top":"margin","margin-right":"margin","margin-bottom":"margin","margin-left":"margin",padding:"padding","padding-top":"padding","padding-right":"padding","padding-bottom":"padding","padding-left":"padding","border-color":"border-color","border-top-color":"border-color","border-right-color":"border-color","border-bottom-color":"border-color","border-left-color":"border-color","border-width":"border-width","border-top-width":"border-width","border-right-width":"border-width","border-bottom-width":"border-width","border-left-width":"border-width","border-style":"border-style","border-top-style":"border-style","border-right-style":"border-style","border-bottom-style":"border-style","border-left-style":"border-style"};function hh(e){this.name=e,this.loc=null,this.iehack=void 0,this.sides={top:null,right:null,bottom:null,left:null}}function dh(e,t,n,r){var a=e.block.children,i=e.prelude.children.first().id;return e.block.children.eachRight((function(e,o){var s=e.property;if(uh.hasOwnProperty(s)){var l,c,u=uh[s];r&&i!==r||u in t&&(c=rh,l=t[u]),l&&l.add(s,e)||(c=nh,(l=new hh(u)).add(s,e))?(t[u]=l,n.push({operation:c,block:a,item:o,shorthand:l}),r=i):r=null}})),r}hh.prototype.getValueSequence=function(e,t){var n=[],r="";return!(e.value.children.some((function(t){var a=!1;switch(t.type){case"Identifier":switch(t.name){case"\\0":case"\\9":return void(r=t.name);case"inherit":case"initial":case"unset":case"revert":a=t.name}break;case"Dimension":switch(t.unit){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":a=t.unit}break;case"HexColor":case"Number":case"Percentage":break;case"Function":a=t.name;break;case"WhiteSpace":return!1;default:return!0}n.push({node:t,special:a,important:e.important})}))||n.length>t)&&(("string"!=typeof this.iehack||this.iehack===r)&&(this.iehack=r,n))},hh.prototype.canOverride=function(e,t){var n=this.sides[e];return!n||t.important&&!n.important},hh.prototype.add=function(e,t){return!!function(){var n=this.sides,r=ch[e];if(r){if(r in n==!1)return!1;if(!(i=this.getValueSequence(t,1))||!i.length)return!1;for(var a in n)if(null!==n[a]&&n[a].special!==i[0].special)return!1;return!this.canOverride(r,i[0])||(n[r]=i[0],!0)}if(e===this.name){var i;if(!(i=this.getValueSequence(t,4))||!i.length)return!1;switch(i.length){case 1:i[ih]=i[ah],i[oh]=i[ah],i[sh]=i[ah];break;case 2:i[oh]=i[ah],i[sh]=i[ih];break;case 3:i[sh]=i[ih]}for(var o=0;o<4;o++)for(var a in n)if(null!==n[a]&&n[a].special!==i[o].special)return!1;for(o=0;o<4;o++)this.canOverride(lh[o],i[o])&&(n[lh[o]]=i[o]);return!0}}.call(this)&&(this.loc||(this.loc=t.loc),!0)},hh.prototype.isOkToMinimize=function(){var e=this.sides.top,t=this.sides.right,n=this.sides.bottom,r=this.sides.left;if(e&&t&&n&&r){var a=e.important+t.important+n.important+r.important;return 0===a||4===a}return!1},hh.prototype.getValue=function(){var e=new Ju,t=this.sides,n=[t.top,t.right,t.bottom,t.left],r=[eh(t.top.node),eh(t.right.node),eh(t.bottom.node),eh(t.left.node)];r[sh]===r[ih]&&(n.pop(),r[oh]===r[ah]&&(n.pop(),r[ih]===r[ah]&&n.pop()));for(var a=0;a<n.length;a++)a&&e.appendData({type:"WhiteSpace",value:" "}),e.appendData(n[a].node);return this.iehack&&(e.appendData({type:"WhiteSpace",value:" "}),e.appendData({type:"Identifier",loc:null,name:this.iehack})),{type:"Value",loc:null,children:e}},hh.prototype.getDeclaration=function(){return{type:"Declaration",loc:this.loc,important:this.sides.top.important,property:this.name,value:this.getValue()}};var ph=function(e,t){var n={},r=[];th(e,{visit:"Rule",reverse:!0,enter:function(e){var t,a,i=this.block||this.stylesheet,o=(e.pseudoSignature||"")+"|"+e.prelude.children.first().id;n.hasOwnProperty(i.id)?t=n[i.id]:(t={lastShortSelector:null},n[i.id]=t),t.hasOwnProperty(o)?a=t[o]:(a={},t[o]=a),t.lastShortSelector=dh.call(this,e,a,r,t.lastShortSelector)}}),function(e,t){e.forEach((function(e){var n=e.shorthand;n.isOkToMinimize()&&(e.operation===nh?e.item.data=t(n.getDeclaration()):e.block.remove(e.item))}))}(r,t.declaration)},fh=Ic.property,mh=Ic.keyword,gh=Ic.walk,bh=Ic.generate,yh=1,vh={src:1},kh={display:/table|ruby|flex|-(flex)?box$|grid|contents|run-in/i,"text-align":/^(start|end|match-parent|justify-all)$/i},wh=["auto","crosshair","default","move","text","wait","help","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","pointer","progress","not-allowed","no-drop","vertical-text","all-scroll","col-resize","row-resize"],xh=["static","relative","absolute","fixed"],Sh={"border-width":["border"],"border-style":["border"],"border-color":["border"],"border-top":["border"],"border-right":["border"],"border-bottom":["border"],"border-left":["border"],"border-top-width":["border-top","border-width","border"],"border-right-width":["border-right","border-width","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left-width":["border-left","border-width","border"],"border-top-style":["border-top","border-style","border"],"border-right-style":["border-right","border-style","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-left-style":["border-left","border-style","border"],"border-top-color":["border-top","border-color","border"],"border-right-color":["border-right","border-color","border"],"border-bottom-color":["border-bottom","border-color","border"],"border-left-color":["border-left","border-color","border"],"margin-top":["margin"],"margin-right":["margin"],"margin-bottom":["margin"],"margin-left":["margin"],"padding-top":["padding"],"padding-right":["padding"],"padding-bottom":["padding"],"padding-left":["padding"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"font-size":["font"],"font-family":["font"],"list-style-type":["list-style"],"list-style-position":["list-style"],"list-style-image":["list-style"]};function Ch(e,t,n){var r=fh(e).basename;if("background"===r)return e+":"+bh(t.value);var a=t.id,i=n[a];if(!i){switch(t.value.type){case"Value":var o="",s="",l={},c=!1;t.value.children.each((function e(t){switch(t.type){case"Value":case"Brackets":case"Parentheses":t.children.each(e);break;case"Raw":c=!0;break;case"Identifier":var n=t.name;o||(o=mh(n).vendor),/\\[09]/.test(n)&&(s=RegExp.lastMatch),"cursor"===r?-1===wh.indexOf(n)&&(l[n]=!0):"position"===r?-1===xh.indexOf(n)&&(l[n]=!0):kh.hasOwnProperty(r)&&kh[r].test(n)&&(l[n]=!0);break;case"Function":n=t.name;if(o||(o=mh(n).vendor),"rect"===n)t.children.some((function(e){return"Operator"===e.type&&","===e.value}))||(n="rect-backward");l[n+"()"]=!0,t.children.each(e);break;case"Dimension":var a=t.unit;switch(/\\[09]/.test(a)&&(s=RegExp.lastMatch),a){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":l[a]=!0}}})),i=c?"!"+yh++:"!"+Object.keys(l).sort()+"|"+s+o;break;case"Raw":i="!"+t.value.value;break;default:i=bh(t.value)}n[a]=i}return e+i}function Ah(e,t,n,r,a){var i=e.block.children;i.eachRight((function(e,t){var n,o=e.property,s=Ch(o,e,a);(n=r[s])&&!vh.hasOwnProperty(o)?e.important&&!n.item.data.important?(r[s]={block:i,item:t},n.block.remove(n.item)):i.remove(t):(n=function(e,t,n){var r=fh(t.property);if(Sh.hasOwnProperty(r.basename))for(var a=Sh[r.basename],i=0;i<a.length;i++){var o=Ch(r.prefix+a[i],t,n),s=e.hasOwnProperty(o)?e[o]:null;if(s&&(!t.important||s.item.data.important))return s}}(r,e,a))?i.remove(t):(e.fingerprint=s,r[s]={block:i,item:t})})),i.isEmpty()&&n.remove(t)}var zh=Ic.walk;function Ph(e,t,n){var r=e.prelude.children,a=e.block.children,i=r.first().compareMarker,o={};n.nextUntil(t.next,(function(t,s){if("Rule"!==t.type)return Gu.unsafeToSkipNode.call(r,t);if(e.pseudoSignature!==t.pseudoSignature)return!0;var l=t.prelude.children.head,c=t.block.children,u=l.data.compareMarker;if(u in o)return!0;if(r.head===r.tail&&r.first().id===l.data.id)return a.appendList(c),void n.remove(s);if(Gu.isEqualDeclarations(a,c)){var h=l.data.id;return r.some((function(e,t){var n=e.id;return h<n?(r.insert(l,t),!0):t.next?void 0:(r.insert(l),!0)})),void n.remove(s)}if(u===i)return!0;o[u]=!0}))}var Lh=Ic.List,Th=Ic.walk;function Eh(e){var t=0;return e.each((function(e){t+=e.id.length+1})),t-1}function Oh(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].length;return t+e.length-1}function Dh(e,t,n){var r=null!==this.block&&this.block.avoidRulesMerge,a=e.prelude.children,i=e.block,o=Object.create(null),s=!0,l=!0;n.prevUntil(t.prev,(function(c,u){if("Rule"!==c.type)return Gu.unsafeToSkipNode.call(a,c);var h=c.prelude.children,d=c.block;if(e.pseudoSignature!==c.pseudoSignature)return!0;if(!(l=!h.some((function(e){return e.compareMarker in o})))&&!s)return!0;if(s&&Gu.isEqualSelectors(h,a))return d.children.appendList(i.children),n.remove(t),!0;var p=Gu.compareDeclarations(i.children,d.children);if(p.eq.length){if(!p.ne1.length&&!p.ne2.length)return l&&(Gu.addSelectors(a,h),n.remove(u)),!0;if(!r)if(p.ne1.length&&!p.ne2.length){var f=Eh(a),m=Oh(p.eq);s&&f<m&&(Gu.addSelectors(h,a),i.children=(new Lh).fromArray(p.ne1))}else if(!p.ne1.length&&p.ne2.length){f=Eh(h),m=Oh(p.eq);l&&f<m&&(Gu.addSelectors(a,h),d.children=(new Lh).fromArray(p.ne2))}else{var g={type:"SelectorList",loc:null,children:Gu.addSelectors(h.copy(),a)},b=Eh(g.children)+2;m=Oh(p.eq);if(l&&m>=b){var y={type:"Rule",loc:null,prelude:g,block:{type:"Block",loc:null,children:(new Lh).fromArray(p.eq)},pseudoSignature:e.pseudoSignature};return i.children=(new Lh).fromArray(p.ne1),d.children=(new Lh).fromArray(p.ne2overrided),n.insert(n.createItem(y),u),!0}}}s&&(s=!h.some((function(e){return a.some((function(t){return t.compareMarker===e.compareMarker}))}))),h.each((function(e){o[e.compareMarker]=!0}))}))}var Mh=function(e,t){var n=Nu(e,t);t.logger("prepare",e),Yu(e,t),t.logger("mergeAtrule",e),function(e){Ku(e,{visit:"Rule",enter:$u})}(e),t.logger("initialMergeRuleset",e),function(e){Xu(e,{visit:"Rule",reverse:!0,enter:Zu})}(e),t.logger("disjoinRuleset",e),ph(e,n),t.logger("restructShorthand",e),function(e){var t={},n=Object.create(null);gh(e,{visit:"Rule",reverse:!0,enter:function(e,r,a){var i,o,s=this.block||this.stylesheet,l=(e.pseudoSignature||"")+"|"+e.prelude.children.first().id;t.hasOwnProperty(s.id)?i=t[s.id]:(i={},t[s.id]=i),i.hasOwnProperty(l)?o=i[l]:(o={},i[l]=o),Ah.call(this,e,r,a,o,n)}})}(e),t.logger("restructBlock",e),function(e){zh(e,{visit:"Rule",enter:Ph})}(e),t.logger("mergeRuleset",e),function(e){Th(e,{visit:"Rule",reverse:!0,enter:Dh})}(e),t.logger("restructRuleset",e)},Ih=Ic.List,Rh=Ic.clone,Nh=Ic.walk;function Bh(e,t){var n,r=new Ih,a=!1;return e.nextUntil(e.head,(function(e,i,o){if("Comment"===e.type)return t&&"!"===e.value.charAt(0)?!(!a&&!n)||(o.remove(i),void(n=e)):void o.remove(i);"WhiteSpace"!==e.type&&(a=!0),r.insert(o.remove(i))})),{comment:n,stylesheet:{type:"StyleSheet",loc:null,children:r}}}function jh(e,t,n,r){r.logger("Compress block #"+n,null,!0);var a=1;return"StyleSheet"===e.type&&(e.firstAtrulesAllowed=t,e.id=a++),Nh(e,{visit:"Atrule",enter:function(e){null!==e.block&&(e.block.id=a++)}}),r.logger("init",e),Qc(e,r),r.logger("clean",e),Pu(e),r.logger("replace",e),r.restructuring&&Mh(e,r),e}function _h(e){return"restructure"in e?e.restructure:!("restructuring"in e)||e.restructuring}var Wh=function(e,t){e=e||{type:"StyleSheet",loc:null,children:new Ih};var n,r,a,i,o={logger:"function"==typeof(t=t||{}).logger?t.logger:function(){},restructuring:_h(t),forceMediaMerge:Boolean(t.forceMediaMerge),usage:!!t.usage&&jc.buildIndex(t.usage)},s=function(e){var t="comments"in e?e.comments:"exclamation";return"boolean"==typeof t?t=!!t&&"exclamation":"exclamation"!==t&&"first-exclamation"!==t&&(t=!1),t}(t),l=!0,c=new Ih,u=1;t.clone&&(e=Rh(e)),"StyleSheet"===e.type?(n=e.children,e.children=c):(i=e,n=(new Ih).appendData({type:"Rule",loc:null,prelude:{type:"SelectorList",loc:null,children:(new Ih).appendData({type:"Selector",loc:null,children:(new Ih).appendData({type:"TypeSelector",loc:null,name:"x"})})},block:i}));do{if(jh((r=Bh(n,Boolean(s))).stylesheet,l,u++,o),a=r.stylesheet.children,r.comment&&(c.isEmpty()||c.insert(Ih.createItem({type:"Raw",value:"\n"})),c.insert(Ih.createItem(r.comment)),a.isEmpty()||c.insert(Ih.createItem({type:"Raw",value:"\n"}))),l&&!a.isEmpty()){var h=a.last();("Atrule"!==h.type||"import"!==h.name&&"charset"!==h.name)&&(l=!1)}"exclamation"!==s&&(s=!1),c.appendList(a)}while(!n.isEmpty());return{ast:e}},qh={version:"4.0.2"},Fh=Hr(Object.freeze({__proto__:null,version:"4.0.2",default:qh})),Uh=Ic.parse,Yh=Ic.generate;function Hh(e,t,n,r){return t.debug&&console.error("## "+e+" done in %d ms\n",Date.now()-n),r}function Vh(e){var t,n;return"function"!=typeof(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e)).logger&&e.debug&&(e.logger=(t=e.debug,function(e,r){var a=e;if(r&&(a="["+((Date.now()-n)/1e3).toFixed(3)+"s] "+a),t>1&&r){var i=Yh(r);2===t&&i.length>256&&(i=i.substr(0,256)+"..."),a+="\n "+i+"\n"}console.error(a),n=Date.now()})),e}function Gh(e,t,n){Array.isArray(n)||(n=[n]),n.forEach((function(n){n(e,t)}))}function Kh(e,t,n){var r=(n=n||{}).filename||"<unknown>",a=Hh("parsing",n,Date.now(),Uh(t,{context:e,filename:r,positions:Boolean(n.sourceMap)}));n.beforeCompress&&Hh("beforeCompress",n,Date.now(),Gh(a,n,n.beforeCompress));var i,o=Hh("compress",n,Date.now(),Wh(a,Vh(n)));return n.afterCompress&&Hh("afterCompress",n,Date.now(),Gh(o,n,n.afterCompress)),n.sourceMap?Hh("generate(sourceMap: true)",n,Date.now(),((i=Yh(o.ast,{sourceMap:!0})).map._file=r,i.map.setSourceContent(r,t),i)):Hh("generate",n,Date.now(),{css:Yh(o.ast),map:null})}var $h={version:Fh.version,minify:function(e,t){return Kh("stylesheet",e,t)},minifyBlock:function(e,t){return Kh("declarationList",e,t)},syntax:Object.assign({compress:Wh},Ic)},Qh=$h.version,Xh=$h.minify,Zh=$h.minifyBlock,Jh=$h.syntax;e.default=$h,e.minify=Xh,e.minifyBlock=Zh,e.syntax=Jh,e.version=Qh,Object.defineProperty(e,"__esModule",{value:!0})}));
|