eyes_selenium 3.18.4 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,12 +2,11 @@ module Applitools
2
2
  module Selenium
3
3
  module Scripts
4
4
  PROCESS_PAGE_AND_POLL = <<'END'
5
- /* @applitools/dom-snapshot@4.3.1 */
6
-
5
+ /* @applitools/dom-snapshot@4.5.11 */
7
6
  function __processPageAndSerializePoll() {
8
- var processPageAndSerializePoll=function(){"use strict";let e,t,r,n,o,a;try{const i=document.createElement("iframe");i.style.display="none";const s=document.body.appendChild(i);e=s.contentWindow.Set,t=s.contentWindow.Map,r=s.contentWindow.Array,n=s.contentWindow.Object,o=s.contentWindow.Promise;const{isPrototypeOf:l}=n.prototype,{Node:c}=s.contentWindow;a=Object.getOwnPropertyNames(s.contentWindow).filter(e=>l.call(c,s.contentWindow[e])).reduce((e,t)=>Object.assign(e,Object.setPrototypeOf({[t]:s.contentWindow[t]},Object.prototype)),Object.setPrototypeOf({Node:c},Object.prototype)),document.body.removeChild(i)}catch(e){}var i=t||Map,s=e||Set,l=r||Array,c=n||Object,u=o||Promise,p=a||Object.setPrototypeOf({},Object.prototype),h=Object.setPrototypeOf({Map:i,Set:s,Array:l,Object:c,Promise:u,elementConstructors:p},Object.prototype);function d(e,t=0){const r=e.charCodeAt(t);if(r>=55296&&r<56320){return 1024*(r-55296)+(e.charCodeAt(t+1)-56320)+65536}return 56320<=r&&r<=57343?-1:r}var f=function(e,t){const r=l.of();let n=0;for(let o=0;o<e.length;++o){const a=d(e,o);let i=0;a>0&&(i=a<128?1:a<2048?2:a<65536?3:a<2097152?4:a<67108864?5:6),n+i>t?(r.push(o),n=i):n+=i}return r};const m=c.setPrototypeOf({WIP:"WIP",SUCCESS:"SUCCESS",SUCCESS_CHUNKED:"SUCCESS_CHUNKED",ERROR:"ERROR"},c.prototype);var g=function(e,t,r=c.setPrototypeOf({},c.prototype)){const n=function(e,{chunkByteLength:t=0}=c.setPrototypeOf({},c.prototype)){if(e){if(e.value){if(t){if(!e.chunks){const r=JSON.stringify(e.value);e.chunks=f(r,t),e.chunks.length>0&&(e.from=0,e.value=r)}if(e.from>=0)return c.setPrototypeOf({status:m.SUCCESS_CHUNKED,value:e.value.substring(e.from,e.from=e.chunks.shift()),done:!e.from},c.prototype)}return c.setPrototypeOf({status:m.SUCCESS,value:e.value},c.prototype)}return e.error?c.setPrototypeOf({status:m.ERROR,error:e.error},c.prototype):c.setPrototypeOf({status:m.WIP},c.prototype)}return c.setPrototypeOf({status:m.ERROR,error:"unexpected poll request received - cannot find state of current operation"},c.prototype)}((e=e||c.setPrototypeOf({},c.prototype))[t],r);return(n.status===m.SUCCESS||n.status===m.ERROR||n.status===m.SUCCESS_CHUNKED&&n.done)&&(e[t]=null),n};var y=function(e,t,r){return n=>function(){return t[r]||(t[r]=c.setPrototypeOf({},c.prototype),e.apply(null,arguments).then(e=>t[r].value=e).catch(e=>t[r].error=e.message)),g(t,r,n)}};var b=function(e,t){return new URL(e,t).href};var k=function(e){return e.contentDocument&&e.contentDocument.location&&!/^https?:$/.test(e.contentDocument.location.protocol)};var v=function(e){try{const t=e.contentDocument;return Boolean(t&&t.defaultView&&t.defaultView.frameElement)}catch(e){return!1}},w=c.setPrototypeOf({chunkify:f,pollify:y,poll:g,absolutizeUrl:b,isInlineFrame:k,isAccessibleFrame:v},c.prototype),x=(w.chunkify,w.pollify,w.poll,w.absolutizeUrl,w.isInlineFrame,w.isAccessibleFrame,c.setPrototypeOf({EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"},c.prototype));var _=function(){return window.crypto.getRandomValues(new Uint32Array(1))[0]};function P(e){return c.setPrototypeOf({prev:null,next:null,data:e},c.prototype)}function S(e,t,r){var n;return null!==C?(n=C,C=C.cursor,n.prev=t,n.next=r,n.cursor=e.cursor):n=c.setPrototypeOf({prev:t,next:r,cursor:e.cursor},c.prototype),e.cursor=n,n}function O(e){var t=e.cursor;e.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=C,C=t}var C=null,z=function(){this.cursor=null,this.head=null,this.tail=null};z.createItem=P,z.prototype.createItem=P,z.prototype.updateCursors=function(e,t,r,n){for(var o=this.cursor;null!==o;)o.prev===e&&(o.prev=t),o.next===r&&(o.next=n),o=o.cursor},z.prototype.getSize=function(){for(var e=0,t=this.head;t;)e++,t=t.next;return e},z.prototype.fromArray=function(e){var t=null;this.head=null;for(var r=0;r<e.length;r++){var n=P(e[r]);null!==t?t.next=n:this.head=n,n.prev=t,t=n}return this.tail=t,this},z.prototype.toArray=function(){for(var e=this.head,t=l.of();e;)t.push(e.data),e=e.next;return t},z.prototype.toJSON=z.prototype.toArray,z.prototype.isEmpty=function(){return null===this.head},z.prototype.first=function(){return this.head&&this.head.data},z.prototype.last=function(){return this.tail&&this.tail.data},z.prototype.each=function(e,t){var r;void 0===t&&(t=this);for(var n=S(this,null,this.head);null!==n.next;)r=n.next,n.next=r.next,e.call(t,r.data,r,this);O(this)},z.prototype.forEach=z.prototype.each,z.prototype.eachRight=function(e,t){var r;void 0===t&&(t=this);for(var n=S(this,this.tail,null);null!==n.prev;)r=n.prev,n.prev=r.prev,e.call(t,r.data,r,this);O(this)},z.prototype.forEachRight=z.prototype.eachRight,z.prototype.nextUntil=function(e,t,r){if(null!==e){var n;void 0===r&&(r=this);for(var o=S(this,null,e);null!==o.next&&(n=o.next,o.next=n.next,!t.call(r,n.data,n,this)););O(this)}},z.prototype.prevUntil=function(e,t,r){if(null!==e){var n;void 0===r&&(r=this);for(var o=S(this,e,null);null!==o.prev&&(n=o.prev,o.prev=n.prev,!t.call(r,n.data,n,this)););O(this)}},z.prototype.some=function(e,t){var r=this.head;for(void 0===t&&(t=this);null!==r;){if(e.call(t,r.data,r,this))return!0;r=r.next}return!1},z.prototype.map=function(e,t){var r=new z,n=this.head;for(void 0===t&&(t=this);null!==n;)r.appendData(e.call(t,n.data,n,this)),n=n.next;return r},z.prototype.filter=function(e,t){var r=new z,n=this.head;for(void 0===t&&(t=this);null!==n;)e.call(t,n.data,n,this)&&r.appendData(n.data),n=n.next;return r},z.prototype.clear=function(){this.head=null,this.tail=null},z.prototype.copy=function(){for(var e=new z,t=this.head;null!==t;)e.insert(P(t.data)),t=t.next;return e},z.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},z.prototype.prependData=function(e){return this.prepend(P(e))},z.prototype.append=function(e){return this.insert(e)},z.prototype.appendData=function(e){return this.insert(P(e))},z.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},z.prototype.insertData=function(e,t){return this.insert(P(e),t)},z.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},z.prototype.push=function(e){this.insert(P(e))},z.prototype.pop=function(){if(null!==this.tail)return this.remove(this.tail)},z.prototype.unshift=function(e){this.prepend(P(e))},z.prototype.shift=function(){if(null!==this.head)return this.remove(this.head)},z.prototype.prependList=function(e){return this.insertList(e,this.head)},z.prototype.appendList=function(e){return this.insertList(e)},z.prototype.insertList=function(e,t){return null===e.head||(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},z.prototype.replace=function(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)};var E=z,A=function(e,t){var r=c.create(SyntaxError.prototype),n=new Error;return r.name=e,r.message=t,c.defineProperty(r,"stack",c.setPrototypeOf({get:function(){return(n.stack||"").replace(/^(.+\n){1,3}/,e+": "+t+"\n")}},c.prototype)),r};function T(e,t){function r(e,t){return n.slice(e,t).map((function(t,r){for(var n=String(e+r+1);n.length<c;)n=" "+n;return n+" |"+t})).join("\n")}var n=e.source.split(/\r\n?|\n|\f/),o=e.line,a=e.column,i=Math.max(1,o-t)-1,s=Math.min(o+t,n.length+1),c=Math.max(4,String(s).length)+1,u=0;(a+=(" ".length-1)*(n[o-1].substr(0,a-1).match(/\t/g)||l.of()).length)>100&&(u=a-60+3,a=58);for(var p=i;p<=s;p++)p>=0&&p<n.length&&(n[p]=n[p].replace(/\t/g," "),n[p]=(u>0&&n[p].length>u?"…":"")+n[p].substr(u,98)+(n[p].length>u+100-1?"…":""));return l.of(r(i,o),new l(a+c+2).join("-")+"^",r(o,s)).filter(Boolean).join("\n")}var L=function(e,t,r,n,o){var a=A("SyntaxError",e);return a.source=t,a.offset=r,a.line=n,a.column=o,a.sourceFragment=function(e){return T(a,isNaN(e)?0:e)},c.defineProperty(a,"formattedMessage",c.setPrototypeOf({get:function(){return"Parse error: "+a.message+"\n"+T(a,2)}},c.prototype)),a.parseError=c.setPrototypeOf({offset:r,line:n,column:o},c.prototype),a},R=c.setPrototypeOf({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},c.prototype),N=c.keys(R).reduce((function(e,t){return e[R[t]]=t,e}),c.setPrototypeOf({},c.prototype)),D=c.setPrototypeOf({TYPE:R,NAME:N},c.prototype);D.TYPE,D.NAME;function B(e){return e>=48&&e<=57}function I(e){return e>=65&&e<=90}function U(e){return e>=97&&e<=122}function M(e){return I(e)||U(e)}function F(e){return e>=128}function j(e){return M(e)||F(e)||95===e}function W(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function Y(e){return 10===e||13===e||12===e}function Z(e){return Y(e)||32===e||9===e}function H(e,t){return 92===e&&(!Y(t)&&0!==t)}var q=new l(128);K.Eof=128,K.WhiteSpace=130,K.Digit=131,K.NameStart=132,K.NonPrintable=133;for(var V=0;V<q.length;V++)switch(!0){case Z(V):q[V]=K.WhiteSpace;break;case B(V):q[V]=K.Digit;break;case j(V):q[V]=K.NameStart;break;case W(V):q[V]=K.NonPrintable;break;default:q[V]=V||K.Eof}function K(e){return e<128?q[e]:K.NameStart}var $=c.setPrototypeOf({isDigit:B,isHexDigit:function(e){return B(e)||e>=65&&e<=70||e>=97&&e<=102},isUppercaseLetter:I,isLowercaseLetter:U,isLetter:M,isNonAscii:F,isNameStart:j,isName:function(e){return j(e)||B(e)||45===e},isNonPrintable:W,isNewline:Y,isWhiteSpace:Z,isValidEscape:H,isIdentifierStart:function(e,t,r){return 45===e?j(t)||45===t||H(t,r):!!j(e)||92===e&&H(e,t)},isNumberStart:function(e,t,r){return 43===e||45===e?B(t)?2:46===t&&B(r)?3:0:46===e?B(t)?2:0:B(e)?1:0},isBOM:function(e){return 65279===e||65534===e?1:0},charCodeCategory:K},c.prototype),G=($.isDigit,$.isHexDigit,$.isUppercaseLetter,$.isLowercaseLetter,$.isLetter,$.isNonAscii,$.isNameStart,$.isName,$.isNonPrintable,$.isNewline,$.isWhiteSpace,$.isValidEscape,$.isIdentifierStart,$.isNumberStart,$.isBOM,$.charCodeCategory,$.isDigit),X=$.isHexDigit,Q=$.isUppercaseLetter,J=$.isName,ee=$.isWhiteSpace,te=$.isValidEscape;function re(e,t){return t<e.length?e.charCodeAt(t):0}function ne(e,t,r){return 13===r&&10===re(e,t+1)?2:1}function oe(e,t,r){var n=e.charCodeAt(t);return Q(n)&&(n|=32),n===r}function ae(e,t){for(;t<e.length&&G(e.charCodeAt(t));t++);return t}function ie(e,t){if(X(re(e,(t+=2)-1))){for(var r=Math.min(e.length,t+5);t<r&&X(re(e,t));t++);var n=re(e,t);ee(n)&&(t+=ne(e,t,n))}return t}var se=c.setPrototypeOf({consumeEscaped:ie,consumeName:function(e,t){for(;t<e.length;t++){var r=e.charCodeAt(t);if(!J(r)){if(!te(r,re(e,t+1)))break;t=ie(e,t)-1}}return t},consumeNumber:function(e,t){var r=e.charCodeAt(t);if(43!==r&&45!==r||(r=e.charCodeAt(t+=1)),G(r)&&(t=ae(e,t+1),r=e.charCodeAt(t)),46===r&&G(e.charCodeAt(t+1))&&(r=e.charCodeAt(t+=2),t=ae(e,t)),oe(e,t,101)){var n=0;45!==(r=e.charCodeAt(t+1))&&43!==r||(n=1,r=e.charCodeAt(t+2)),G(r)&&(t=ae(e,t+1+n+1))}return t},consumeBadUrlRemnants:function(e,t){for(;t<e.length;t++){var r=e.charCodeAt(t);if(41===r){t++;break}te(r,re(e,t+1))&&(t=ie(e,t))}return t},cmpChar:oe,cmpStr:function(e,t,r,n){if(r-t!==n.length)return!1;if(t<0||r>e.length)return!1;for(var o=t;o<r;o++){var a=e.charCodeAt(o),i=n.charCodeAt(o-t);if(Q(a)&&(a|=32),a!==i)return!1}return!0},getNewlineLength:ne,findWhiteSpaceStart:function(e,t){for(;t>=0&&ee(e.charCodeAt(t));t--);return t+1},findWhiteSpaceEnd:function(e,t){for(;t<e.length&&ee(e.charCodeAt(t));t++);return t}},c.prototype),le=(se.consumeEscaped,se.consumeName,se.consumeNumber,se.consumeBadUrlRemnants,se.cmpChar,se.cmpStr,se.getNewlineLength,se.findWhiteSpaceStart,se.findWhiteSpaceEnd,D.TYPE),ce=D.NAME,ue=se.cmpStr,pe=le.EOF,he=le.WhiteSpace,de=le.Comment,fe=function(){this.offsetAndType=null,this.balance=null,this.reset()};fe.prototype=c.setPrototypeOf({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:pe},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&&ue(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 r,n=e,o=16777215&this.offsetAndType[Math.max(n-1,0)];e:for(;n<this.tokenCount&&!((r=this.balance[n])<e);n++)switch(t(this.offsetAndType[n]>>24,this.source,o)){case 1:break e;case 2:n++;break e;default:o=16777215&this.offsetAndType[n],this.balance[r]===n&&(n=r)}return n-this.tokenIndex},isBalanceEdge:function(e){return this.balance[this.tokenIndex]<e},isDelim:function(e,t){return t?this.lookupType(t)===le.Delim&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===le.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===he;e++,t++);t>0&&this.skip(t)},skipSC:function(){for(;this.tokenType===he||this.tokenType===de;)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=pe,this.tokenStart=this.tokenEnd=this.source.length)},dump:function(){var e=this.firstCharOffset;return l.prototype.slice.call(this.offsetAndType,0,this.tokenCount).map((function(t,r){var n=e,o=16777215&t;return e=o,c.setPrototypeOf({idx:r,type:ce[t>>24],chunk:this.source.substring(n,o),balance:this.balance[r]},c.prototype)}),this)}},c.prototype);var me=fe;function ge(e){return e}function ye(e,t,r,n){var o,a;switch(e.type){case"Group":o=function(e,t,r,n){var o=" "===e.combinator||n?e.combinator:" "+e.combinator+" ",a=e.terms.map((function(e){return ye(e,t,r,n)})).join(o);return(e.explicit||r)&&(a=(n||","===a[0]?"[":"[ ")+a+(n?"]":" ]")),a}(e,t,r,n)+(e.disallowEmpty?"!":"");break;case"Multiplier":return ye(e.term,t,r,n)+t(0===(a=e).min&&0===a.max?"*":0===a.min&&1===a.max?"?":1===a.min&&0===a.max?a.comma?"#":"+":1===a.min&&1===a.max?"":(a.comma?"#":"")+(a.min===a.max?"{"+a.min+"}":"{"+a.min+","+(0!==a.max?a.max:"")+"}"),e);case"Type":o="<"+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":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(o,e)}var be=function(e,t){var r=ge,n=!1,o=!1;return"function"==typeof t?r=t:t&&(n=Boolean(t.forceBraces),o=Boolean(t.compact),"function"==typeof t.decorate&&(r=t.decorate)),ye(e,r,n,o)};function ke(e,t){var r=e&&e.loc&&e.loc[t];return r?c.setPrototypeOf({offset:r.offset,line:r.line,column:r.column},c.prototype):null}var ve=c.setPrototypeOf({SyntaxReferenceError:function(e,t){var r=A("SyntaxReferenceError",e+(t?" `"+t+"`":""));return r.reference=t,r},MatchError:function(e,t,r,n){var o=A("SyntaxMatchError",e),a=function(e){for(var t=e.tokens,r=e.longestMatch,n=r<t.length?t[r].node:null,o=-1,a=0,i="",s=0;s<t.length;s++)s===r&&(o=i.length),null!==n&&t[s].node===n&&(s<=r?a++:a=0),i+=t[s].value;return c.setPrototypeOf({node:n,css:i,mismatchOffset:-1===o?i.length:o,last:null===n||a>1},c.prototype)}(n),i=a.mismatchOffset||0,s=a.node||r,u=ke(s,"end"),p=a.last?u:ke(s,"start"),h=a.css;return o.rawMessage=e,o.syntax=t?be(t):"<generic>",o.css=h,o.mismatchOffset=i,o.loc=c.setPrototypeOf({source:s&&s.loc&&s.loc.source||"<unknown>",start:p,end:u},c.prototype),o.line=p?p.line:void 0,o.column=p?p.column:void 0,o.offset=p?p.offset:void 0,o.message=e+"\n syntax: "+o.syntax+"\n value: "+(o.css||"<empty string>")+"\n --------"+new l(o.mismatchOffset+1).join("-")+"^",o}},c.prototype),we=(ve.SyntaxReferenceError,ve.MatchError,c.prototype.hasOwnProperty),xe=c.create(null),_e=c.create(null);function Pe(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function Se(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){var r=e.indexOf("-",t+2);if(-1!==r)return e.substring(t,r+1)}return""}var Oe=c.setPrototypeOf({keyword:function(e){if(we.call(xe,e))return xe[e];var t=e.toLowerCase();if(we.call(xe,t))return xe[e]=xe[t];var r=Pe(t,0),n=r?"":Se(t,0);return xe[e]=c.freeze(c.setPrototypeOf({basename:t.substr(n.length),name:t,vendor:n,prefix:n,custom:r},c.prototype))},property:function(e){if(we.call(_e,e))return _e[e];var t=e,r=e[0];"/"===r?r="/"===e[1]?"//":"/":"_"!==r&&"*"!==r&&"$"!==r&&"#"!==r&&"+"!==r&&"&"!==r&&(r="");var n=Pe(t,r.length);if(!n&&(t=t.toLowerCase(),we.call(_e,t)))return _e[e]=_e[t];var o=n?"":Se(t,r.length),a=t.substr(0,r.length+o.length);return _e[e]=c.freeze(c.setPrototypeOf({basename:t.substr(a.length),name:t.substr(r.length),hack:r,vendor:o,prefix:a,custom:n},c.prototype))},isCustomProperty:Pe,vendorPrefix:Se},c.prototype),Ce=(Oe.keyword,Oe.property,Oe.isCustomProperty,Oe.vendorPrefix,"undefined"!=typeof Uint32Array?Uint32Array:l),ze=function(e,t){return null===e||e.length<t?new Ce(Math.max(t+1024,16384)):e},Ee=D.TYPE,Ae=$.isNewline,Te=$.isName,Le=$.isValidEscape,Re=$.isNumberStart,Ne=$.isIdentifierStart,De=$.charCodeCategory,Be=$.isBOM,Ie=se.cmpStr,Ue=se.getNewlineLength,Me=se.findWhiteSpaceEnd,Fe=se.consumeEscaped,je=se.consumeName,We=se.consumeNumber,Ye=se.consumeBadUrlRemnants;function Ze(e,t){function r(t){return t<i?e.charCodeAt(t):0}function n(){return p=We(e,p),Ne(r(p),r(p+1),r(p+2))?(g=Ee.Dimension,void(p=je(e,p))):37===r(p)?(g=Ee.Percentage,void p++):void(g=Ee.Number)}function o(){const t=p;return p=je(e,p),Ie(e,t,p,"url")&&40===r(p)?34===r(p=Me(e,p+1))||39===r(p)?(g=Ee.Function,void(p=t+4)):void function(){for(g=Ee.Url,p=Me(e,p);p<e.length;p++){var t=e.charCodeAt(p);switch(De(t)){case 41:return void p++;case De.Eof:return;case De.WhiteSpace:return 41===r(p=Me(e,p))||p>=e.length?void(p<e.length&&p++):(p=Ye(e,p),void(g=Ee.BadUrl));case 34:case 39:case 40:case De.NonPrintable:return p=Ye(e,p),void(g=Ee.BadUrl);case 92:if(Le(t,r(p+1))){p=Fe(e,p)-1;break}return p=Ye(e,p),void(g=Ee.BadUrl)}}}():40===r(p)?(g=Ee.Function,void p++):void(g=Ee.Ident)}function a(t){for(t||(t=r(p++)),g=Ee.String;p<e.length;p++){var n=e.charCodeAt(p);switch(De(n)){case t:return void p++;case De.Eof:return;case De.WhiteSpace:if(Ae(n))return p+=Ue(e,p,n),void(g=Ee.BadString);break;case 92:if(p===e.length-1)break;var o=r(p+1);Ae(o)?p+=Ue(e,p+1,o):Le(n,o)&&(p=Fe(e,p)-1)}}}t||(t=new me);for(var i=(e=String(e||"")).length,s=ze(t.offsetAndType,i+1),l=ze(t.balance,i+1),c=0,u=Be(r(0)),p=u,h=0,d=0,f=0;p<i;){var m=e.charCodeAt(p),g=0;switch(l[c]=i,De(m)){case De.WhiteSpace:g=Ee.WhiteSpace,p=Me(e,p+1);break;case 34:a();break;case 35:Te(r(p+1))||Le(r(p+1),r(p+2))?(g=Ee.Hash,p=je(e,p+1)):(g=Ee.Delim,p++);break;case 39:a();break;case 40:g=Ee.LeftParenthesis,p++;break;case 41:g=Ee.RightParenthesis,p++;break;case 43:Re(m,r(p+1),r(p+2))?n():(g=Ee.Delim,p++);break;case 44:g=Ee.Comma,p++;break;case 45:Re(m,r(p+1),r(p+2))?n():45===r(p+1)&&62===r(p+2)?(g=Ee.CDC,p+=3):Ne(m,r(p+1),r(p+2))?o():(g=Ee.Delim,p++);break;case 46:Re(m,r(p+1),r(p+2))?n():(g=Ee.Delim,p++);break;case 47:42===r(p+1)?(g=Ee.Comment,1===(p=e.indexOf("*/",p+2)+2)&&(p=e.length)):(g=Ee.Delim,p++);break;case 58:g=Ee.Colon,p++;break;case 59:g=Ee.Semicolon,p++;break;case 60:33===r(p+1)&&45===r(p+2)&&45===r(p+3)?(g=Ee.CDO,p+=4):(g=Ee.Delim,p++);break;case 64:Ne(r(p+1),r(p+2),r(p+3))?(g=Ee.AtKeyword,p=je(e,p+1)):(g=Ee.Delim,p++);break;case 91:g=Ee.LeftSquareBracket,p++;break;case 92:Le(m,r(p+1))?o():(g=Ee.Delim,p++);break;case 93:g=Ee.RightSquareBracket,p++;break;case 123:g=Ee.LeftCurlyBracket,p++;break;case 125:g=Ee.RightCurlyBracket,p++;break;case De.Digit:n();break;case De.NameStart:o();break;case De.Eof:break;default:g=Ee.Delim,p++}switch(g){case h:for(h=(d=l[f=16777215&d])>>24,l[c]=f,l[f++]=c;f<c;f++)l[f]===i&&(l[f]=c);break;case Ee.LeftParenthesis:case Ee.Function:l[c]=d,d=(h=Ee.RightParenthesis)<<24|c;break;case Ee.LeftSquareBracket:l[c]=d,d=(h=Ee.RightSquareBracket)<<24|c;break;case Ee.LeftCurlyBracket:l[c]=d,d=(h=Ee.RightCurlyBracket)<<24|c}s[c++]=g<<24|p}for(s[c]=Ee.EOF<<24|p,l[c]=i,l[i]=i;0!==d;)d=l[f=16777215&d],l[f]=i;return t.source=e,t.firstCharOffset=u,t.offsetAndType=s,t.tokenCount=c,t.balance=l,t.reset(),t.next(),t}c.keys(D).forEach((function(e){Ze[e]=D[e]})),c.keys($).forEach((function(e){Ze[e]=$[e]})),c.keys(se).forEach((function(e){Ze[e]=se[e]}));var He=Ze,qe=He.isDigit,Ve=He.cmpChar,Ke=He.TYPE,$e=Ke.Delim,Ge=Ke.WhiteSpace,Xe=Ke.Comment,Qe=Ke.Ident,Je=Ke.Number,et=Ke.Dimension;function tt(e,t){return null!==e&&e.type===$e&&e.value.charCodeAt(0)===t}function rt(e,t,r){for(;null!==e&&(e.type===Ge||e.type===Xe);)e=r(++t);return t}function nt(e,t,r,n){if(!e)return 0;var o=e.value.charCodeAt(t);if(43===o||45===o){if(r)return 0;t++}for(;t<e.value.length;t++)if(!qe(e.value.charCodeAt(t)))return 0;return n+1}function ot(e,t,r){var n=!1,o=rt(e,t,r);if(null===(e=r(o)))return t;if(e.type!==Je){if(!tt(e,43)&&!tt(e,45))return t;if(n=!0,o=rt(r(++o),o,r),null===(e=r(o))&&e.type!==Je)return 0}if(!n){var a=e.value.charCodeAt(0);if(43!==a&&45!==a)return 0}return nt(e,n?0:1,n,o)}var at=He.isHexDigit,it=He.cmpChar,st=He.TYPE,lt=st.Ident,ct=st.Delim,ut=st.Number,pt=st.Dimension;function ht(e,t){return null!==e&&e.type===ct&&e.value.charCodeAt(0)===t}function dt(e,t){return e.value.charCodeAt(0)===t}function ft(e,t,r){for(var n=t,o=0;n<e.value.length;n++){var a=e.value.charCodeAt(n);if(45===a&&r&&0!==o)return ft(e,t+o+1,!1)>0?6:0;if(!at(a))return 0;if(++o>6)return 0}return o}function mt(e,t,r){if(!e)return 0;for(;ht(r(t),63);){if(++e>6)return 0;t++}return t}var gt=He.isIdentifierStart,yt=He.isHexDigit,bt=He.isDigit,kt=He.cmpStr,vt=He.consumeNumber,wt=He.TYPE,xt=l.of("unset","initial","inherit"),_t=l.of("calc(","-moz-calc(","-webkit-calc("),Pt=c.setPrototypeOf({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},c.prototype),St=c.setPrototypeOf({deg:!0,grad:!0,rad:!0,turn:!0},c.prototype),Ot=c.setPrototypeOf({s:!0,ms:!0},c.prototype),Ct=c.setPrototypeOf({hz:!0,khz:!0},c.prototype),zt=c.setPrototypeOf({dpi:!0,dpcm:!0,dppx:!0,x:!0},c.prototype),Et=c.setPrototypeOf({fr:!0},c.prototype),At=c.setPrototypeOf({db:!0},c.prototype),Tt=c.setPrototypeOf({st:!0},c.prototype);function Lt(e,t){return t<e.length?e.charCodeAt(t):0}function Rt(e,t){return kt(e,0,e.length,t)}function Nt(e,t){for(var r=0;r<t.length;r++)if(Rt(e,t[r]))return!0;return!1}function Dt(e,t){return t===e.length-2&&(92===e.charCodeAt(t)&&bt(e.charCodeAt(t+1)))}function Bt(e,t,r){if(e&&"Range"===e.type){var n=Number(void 0!==r&&r!==t.length?t.substr(0,r):t);if(isNaN(n))return!0;if(null!==e.min&&n<e.min)return!0;if(null!==e.max&&n>e.max)return!0}return!1}function It(e,t){var r=e.index,n=0;do{if(n++,e.balance<=r)break}while(e=t(n));return n}function Ut(e){return function(t,r,n){return null===t?0:t.type===wt.Function&&Nt(t.value,_t)?It(t,r):e(t,r,n)}}function Mt(e){return function(t){return null===t||t.type!==e?0:1}}function Ft(e){return function(t,r,n){if(null===t||t.type!==wt.Dimension)return 0;var o=vt(t.value,0);if(null!==e){var a=t.value.indexOf("\\",o),i=-1!==a&&Dt(t.value,a)?t.value.substring(o,a):t.value.substr(o);if(!1===e.hasOwnProperty(i.toLowerCase()))return 0}return Bt(n,t.value,o)?0:1}}function jt(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,r,n){return null!==t&&t.type===wt.Number&&0===Number(t.value)?1:e(t,r,n)}}var Wt,Yt=c.setPrototypeOf({"ident-token":Mt(wt.Ident),"function-token":Mt(wt.Function),"at-keyword-token":Mt(wt.AtKeyword),"hash-token":Mt(wt.Hash),"string-token":Mt(wt.String),"bad-string-token":Mt(wt.BadString),"url-token":Mt(wt.Url),"bad-url-token":Mt(wt.BadUrl),"delim-token":Mt(wt.Delim),"number-token":Mt(wt.Number),"percentage-token":Mt(wt.Percentage),"dimension-token":Mt(wt.Dimension),"whitespace-token":Mt(wt.WhiteSpace),"CDO-token":Mt(wt.CDO),"CDC-token":Mt(wt.CDC),"colon-token":Mt(wt.Colon),"semicolon-token":Mt(wt.Semicolon),"comma-token":Mt(wt.Comma),"[-token":Mt(wt.LeftSquareBracket),"]-token":Mt(wt.RightSquareBracket),"(-token":Mt(wt.LeftParenthesis),")-token":Mt(wt.RightParenthesis),"{-token":Mt(wt.LeftCurlyBracket),"}-token":Mt(wt.RightCurlyBracket),string:Mt(wt.String),ident:Mt(wt.Ident),"custom-ident":function(e){if(null===e||e.type!==wt.Ident)return 0;var t=e.value.toLowerCase();return Nt(t,xt)||Rt(t,"default")?0:1},"custom-property-name":function(e){return null===e||e.type!==wt.Ident||45!==Lt(e.value,0)||45!==Lt(e.value,1)?0:1},"hex-color":function(e){if(null===e||e.type!==wt.Hash)return 0;var t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(var r=1;r<t;r++)if(!yt(e.value.charCodeAt(r)))return 0;return 1},"id-selector":function(e){return null===e||e.type!==wt.Hash?0:gt(Lt(e.value,1),Lt(e.value,2),Lt(e.value,3))?1:0},"an-plus-b":function(e,t){var r=0;if(!e)return 0;if(e.type===Je)return nt(e,0,!1,r);if(e.type===Qe&&45===e.value.charCodeAt(0)){if(!Ve(e.value,1,110))return 0;switch(e.value.length){case 2:return ot(t(++r),r,t);case 3:return 45!==e.value.charCodeAt(2)?0:(r=rt(t(++r),r,t),nt(e=t(r),0,!0,r));default:return 45!==e.value.charCodeAt(2)?0:nt(e,3,!0,r)}}else if(e.type===Qe||tt(e,43)&&t(r+1).type===Qe){if(e.type!==Qe&&(e=t(++r)),null===e||!Ve(e.value,0,110))return 0;switch(e.value.length){case 1:return ot(t(++r),r,t);case 2:return 45!==e.value.charCodeAt(1)?0:(r=rt(t(++r),r,t),nt(e=t(r),0,!0,r));default:return 45!==e.value.charCodeAt(1)?0:nt(e,2,!0,r)}}else if(e.type===et){for(var n=e.value.charCodeAt(0),o=43===n||45===n?1:0,a=o;a<e.value.length&&qe(e.value.charCodeAt(a));a++);return a===o?0:Ve(e.value,a,110)?a+1===e.value.length?ot(t(++r),r,t):45!==e.value.charCodeAt(a+1)?0:a+2===e.value.length?(r=rt(t(++r),r,t),nt(e=t(r),0,!0,r)):nt(e,a+2,!0,r):0}return 0},urange:function(e,t){var r=0;if(null===e||e.type!==lt||!it(e.value,0,117))return 0;if(null===(e=t(++r)))return 0;if(ht(e,43))return null===(e=t(++r))?0:e.type===lt?mt(ft(e,0,!0),++r,t):ht(e,63)?mt(1,++r,t):0;if(e.type===ut){if(!dt(e,43))return 0;var n=ft(e,1,!0);return 0===n?0:null===(e=t(++r))?r:e.type===pt||e.type===ut?dt(e,45)&&ft(e,1,!1)?r+1:0:mt(n,r,t)}return e.type===pt&&dt(e,43)?mt(ft(e,1,!0),++r,t):0},"declaration-value":function(e,t){if(!e)return 0;var r=0,n=0,o=e.index;e:do{switch(e.type){case wt.BadString:case wt.BadUrl:break e;case wt.RightCurlyBracket:case wt.RightParenthesis:case wt.RightSquareBracket:if(e.balance>e.index||e.balance<o)break e;n--;break;case wt.Semicolon:if(0===n)break e;break;case wt.Delim:if("!"===e.value&&0===n)break e;break;case wt.Function:case wt.LeftParenthesis:case wt.LeftSquareBracket:case wt.LeftCurlyBracket:n++}if(r++,e.balance<=o)break}while(e=t(r));return r},"any-value":function(e,t){if(!e)return 0;var r=e.index,n=0;e:do{switch(e.type){case wt.BadString:case wt.BadUrl:break e;case wt.RightCurlyBracket:case wt.RightParenthesis:case wt.RightSquareBracket:if(e.balance>e.index||e.balance<r)break e}if(n++,e.balance<=r)break}while(e=t(n));return n},dimension:Ut(Ft(null)),angle:Ut(Ft(St)),decibel:Ut(Ft(At)),frequency:Ut(Ft(Ct)),flex:Ut(Ft(Et)),length:Ut(jt(Ft(Pt))),resolution:Ut(Ft(zt)),semitones:Ut(Ft(Tt)),time:Ut(Ft(Ot)),percentage:Ut((function(e,t,r){return null===e||e.type!==wt.Percentage||Bt(r,e.value,e.value.length-1)?0:1})),zero:jt(),number:Ut((function(e,t,r){if(null===e)return 0;var n=vt(e.value,0);return n===e.value.length||Dt(e.value,n)?Bt(r,e.value,n)?0:1:0})),integer:Ut((function(e,t,r){if(null===e||e.type!==wt.Number)return 0;for(var n=43===e.value.charCodeAt(0)||45===e.value.charCodeAt(0)?1:0;n<e.value.length;n++)if(!bt(e.value.charCodeAt(n)))return 0;return Bt(r,e.value,n)?0:1})),"-ms-legacy-expression":(Wt="expression",Wt+="(",function(e,t){return null!==e&&Rt(e.value,Wt)?It(e,t):0})},c.prototype),Zt=function(e,t,r){var n=A("SyntaxError",e);return n.input=t,n.offset=r,n.rawMessage=e,n.message=n.rawMessage+"\n "+n.input+"\n--"+new l((n.offset||n.input.length)+1).join("-")+"^",n},Ht=function(e){this.str=e,this.pos=0};Ht.prototype=c.setPrototypeOf({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 Zt(e,this.str,this.pos)}},c.prototype);var qt=Ht,Vt=function(e){for(var t="function"==typeof Uint32Array?new Uint32Array(128):new l(128),r=0;r<128;r++)t[r]=e(String.fromCharCode(r))?1:0;return t}((function(e){return/[a-zA-Z0-9\-]/.test(e)})),Kt=c.setPrototypeOf({" ":1,"&&":2,"||":3,"|":4},c.prototype);function $t(e){return e.substringToPos(e.findWsEnd(e.pos))}function Gt(e){for(var t=e.pos;t<e.str.length;t++){var r=e.str.charCodeAt(t);if(r>=128||0===Vt[r])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Xt(e){for(var t=e.pos;t<e.str.length;t++){var r=e.str.charCodeAt(t);if(r<48||r>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function Qt(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 Jt(e){var t,r=null;return e.eat(123),t=Xt(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(r=Xt(e))):r=t,e.eat(125),c.setPrototypeOf({min:Number(t),max:r?Number(r):0},c.prototype)}function er(e,t){var r=function(e){var t=null,r=!1;switch(e.charCode()){case 42:e.pos++,t=c.setPrototypeOf({min:0,max:0},c.prototype);break;case 43:e.pos++,t=c.setPrototypeOf({min:1,max:0},c.prototype);break;case 63:e.pos++,t=c.setPrototypeOf({min:0,max:1},c.prototype);break;case 35:e.pos++,r=!0,t=123===e.charCode()?Jt(e):c.setPrototypeOf({min:1,max:0},c.prototype);break;case 123:t=Jt(e);break;default:return null}return c.setPrototypeOf({type:"Multiplier",comma:r,min:t.min,max:t.max,term:null},c.prototype)}(e);return null!==r?(r.term=t,r):t}function tr(e){var t=e.peek();return""===t?null:c.setPrototypeOf({type:"Token",value:t},c.prototype)}function rr(e){var t,r=null;return e.eat(60),t=Gt(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&($t(e),r=function(e){var t=null,r=null,n=1;return e.eat(91),45===e.charCode()&&(e.peek(),n=-1),-1==n&&8734===e.charCode()?e.peek():t=n*Number(Xt(e)),$t(e),e.eat(44),$t(e),8734===e.charCode()?e.peek():(n=1,45===e.charCode()&&(e.peek(),n=-1),r=n*Number(Xt(e))),e.eat(93),null===t&&null===r?null:c.setPrototypeOf({type:"Range",min:t,max:r},c.prototype)}(e)),e.eat(62),er(e,c.setPrototypeOf({type:"Type",name:t,opts:r},c.prototype))}function nr(e,t){function r(e,t){return c.setPrototypeOf({type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1},c.prototype)}for(t=c.keys(t).sort((function(e,t){return Kt[e]-Kt[t]}));t.length>0;){for(var n=t.shift(),o=0,a=0;o<e.length;o++){var i=e[o];"Combinator"===i.type&&(i.value===n?(-1===a&&(a=o-1),e.splice(o,1),o--):(-1!==a&&o-a>1&&(e.splice(a,o-a,r(e.slice(a,o),n)),o=a+1),a=-1))}-1!==a&&t.length&&e.splice(a,o-a,r(e.slice(a,o),n))}return n}function or(e){for(var t,r=l.of(),n=c.setPrototypeOf({},c.prototype),o=null,a=e.pos;t=ar(e);)"Spaces"!==t.type&&("Combinator"===t.type?(null!==o&&"Combinator"!==o.type||(e.pos=a,e.error("Unexpected combinator")),n[t.value]=!0):null!==o&&"Combinator"!==o.type&&(n[" "]=!0,r.push(c.setPrototypeOf({type:"Combinator",value:" "},c.prototype))),r.push(t),o=t,a=e.pos);return null!==o&&"Combinator"===o.type&&(e.pos-=a,e.error("Unexpected combinator")),c.setPrototypeOf({type:"Group",terms:r,combinator:nr(r,n)||" ",disallowEmpty:!1,explicit:!1},c.prototype)}function ar(e){var t=e.charCode();if(t<128&&1===Vt[t])return function(e){var t;return t=Gt(e),40===e.charCode()?(e.pos++,c.setPrototypeOf({type:"Function",name:t},c.prototype)):er(e,c.setPrototypeOf({type:"Keyword",name:t},c.prototype))}(e);switch(t){case 93:break;case 91:return er(e,function(e){var t;return e.eat(91),t=or(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){var t;return e.eat(60),e.eat(39),t=Gt(e),e.eat(39),e.eat(62),er(e,c.setPrototypeOf({type:"Property",name:t},c.prototype))}(e):rr(e);case 124:return c.setPrototypeOf({type:"Combinator",value:e.substringToPos(124===e.nextCharCode()?e.pos+2:e.pos+1)},c.prototype);case 38:return e.pos++,e.eat(38),c.setPrototypeOf({type:"Combinator",value:"&&"},c.prototype);case 44:return e.pos++,c.setPrototypeOf({type:"Comma"},c.prototype);case 39:return er(e,c.setPrototypeOf({type:"String",value:Qt(e)},c.prototype));case 32:case 9:case 10:case 13:case 12:return c.setPrototypeOf({type:"Spaces",value:$t(e)},c.prototype);case 64:return(t=e.nextCharCode())<128&&1===Vt[t]?(e.pos++,c.setPrototypeOf({type:"AtKeyword",name:Gt(e)},c.prototype)):tr(e);case 42:case 43:case 63:case 35:case 33:break;case 123:if((t=e.nextCharCode())<48||t>57)return tr(e);break;default:return tr(e)}}function ir(e){var t=new qt(e),r=or(t);return t.pos!==e.length&&t.error("Unexpected input"),1===r.terms.length&&"Group"===r.terms[0].type&&(r=r.terms[0]),r}ir("[a&&<b>#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!");var sr=ir,lr=function(){};function cr(e){return"function"==typeof e?e:lr}var ur=function(e,t,r){var n=lr,o=lr;if("function"==typeof t?n=t:t&&(n=cr(t.enter),o=cr(t.leave)),n===lr&&o===lr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(n.call(r,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)}o.call(r,t)}(e)},pr=new me,hr=c.setPrototypeOf({decorator:function(e){var t=null,r=c.setPrototypeOf({len:0,node:null},c.prototype),n=l.of(r),o="";return c.setPrototypeOf({children:e.children,node:function(r){var n=t;t=r,e.node.call(this,r),t=n},chunk:function(e){o+=e,r.node!==t?n.push(c.setPrototypeOf({len:e.length,node:t},c.prototype)):r.len+=e.length},result:function(){return dr(o,n)}},c.prototype)}},c.prototype);function dr(e,t){var r=l.of(),n=0,o=0,a=t?t[o].node:null;for(He(e,pr);!pr.eof;){if(t)for(;o<t.length&&n+t[o].len<=pr.tokenStart;)n+=t[o++].len,a=t[o].node;r.push(c.setPrototypeOf({type:pr.tokenType,value:pr.getTokenValue(),index:pr.tokenIndex,balance:pr.balance[pr.tokenIndex],node:a},c.prototype)),pr.next()}return r}var fr=c.setPrototypeOf({type:"Match"},c.prototype),mr=c.setPrototypeOf({type:"Mismatch"},c.prototype),gr=c.setPrototypeOf({type:"DisallowEmpty"},c.prototype);function yr(e,t,r){return t===fr&&r===mr||e===fr&&t===fr&&r===fr?e:("If"===e.type&&e.else===mr&&t===fr&&(t=e.then,e=e.match),c.setPrototypeOf({type:"If",match:e,then:t,else:r},c.prototype))}function br(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function kr(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&br(e.name)}function vr(e){if("function"==typeof e)return c.setPrototypeOf({type:"Generic",fn:e},c.prototype);switch(e.type){case"Group":var t=function e(t,r,n){switch(t){case" ":for(var o=fr,a=r.length-1;a>=0;a--){o=yr(l=r[a],o,mr)}return o;case"|":o=mr;var i=null;for(a=r.length-1;a>=0;a--){if(kr(l=r[a])&&(null===i&&a>0&&kr(r[a-1])&&(i=c.create(null),o=yr(c.setPrototypeOf({type:"Enum",map:i},c.prototype),fr,o)),null!==i)){var s=(br(l.name)?l.name.slice(0,-1):l.name).toLowerCase();if(s in i==!1){i[s]=l;continue}}i=null,o=yr(l,fr,o)}return o;case"&&":if(r.length>5)return c.setPrototypeOf({type:"MatchOnce",terms:r,all:!0},c.prototype);for(o=mr,a=r.length-1;a>=0;a--){var l=r[a];u=r.length>1?e(t,r.filter((function(e){return e!==l})),!1):fr,o=yr(l,u,o)}return o;case"||":if(r.length>5)return c.setPrototypeOf({type:"MatchOnce",terms:r,all:!1},c.prototype);for(o=n?fr:mr,a=r.length-1;a>=0;a--){var u;l=r[a];u=r.length>1?e(t,r.filter((function(e){return e!==l})),!0):fr,o=yr(l,u,o)}return o}}(e.combinator,e.terms.map(vr),!1);return e.disallowEmpty&&(t=yr(t,gr,mr)),t;case"Multiplier":return function(e){var t=fr,r=vr(e.term);if(0===e.max)r=yr(r,gr,mr),(t=yr(r,null,mr)).then=yr(fr,fr,t),e.comma&&(t.then.else=yr(c.setPrototypeOf({type:"Comma",syntax:e},c.prototype),t,mr));else for(var n=e.min||1;n<=e.max;n++)e.comma&&t!==fr&&(t=yr(c.setPrototypeOf({type:"Comma",syntax:e},c.prototype),t,mr)),t=yr(r,yr(fr,fr,t),mr);if(0===e.min)t=yr(fr,fr,t);else for(n=0;n<e.min-1;n++)e.comma&&t!==fr&&(t=yr(c.setPrototypeOf({type:"Comma",syntax:e},c.prototype),t,mr)),t=yr(r,t,mr);return t}(e);case"Type":case"Property":return c.setPrototypeOf({type:e.type,name:e.name,syntax:e},c.prototype);case"Keyword":return c.setPrototypeOf({type:e.type,name:e.name.toLowerCase(),syntax:e},c.prototype);case"AtKeyword":return c.setPrototypeOf({type:e.type,name:"@"+e.name.toLowerCase(),syntax:e},c.prototype);case"Function":return c.setPrototypeOf({type:e.type,name:e.name.toLowerCase()+"(",syntax:e},c.prototype);case"String":return 3===e.value.length?c.setPrototypeOf({type:"Token",value:e.value.charAt(1),syntax:e},c.prototype):c.setPrototypeOf({type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e},c.prototype);case"Token":return c.setPrototypeOf({type:e.type,value:e.value,syntax:e},c.prototype);case"Comma":return c.setPrototypeOf({type:e.type,syntax:e},c.prototype);default:throw new Error("Unknown node type:",e.type)}}var wr=c.setPrototypeOf({MATCH:fr,MISMATCH:mr,DISALLOW_EMPTY:gr,buildMatchGraph:function(e,t){return"string"==typeof e&&(e=sr(e)),c.setPrototypeOf({type:"MatchGraph",match:vr(e),syntax:t||null,source:e},c.prototype)}},c.prototype),xr=(wr.MATCH,wr.MISMATCH,wr.DISALLOW_EMPTY,wr.buildMatchGraph,c.prototype.hasOwnProperty),_r=wr.MATCH,Pr=wr.MISMATCH,Sr=wr.DISALLOW_EMPTY,Or=D.TYPE,Cr=0;function zr(e){for(var t=null,r=null,n=e;null!==n;)r=n.prev,n.prev=t,t=n,n=r;return t}function Er(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n>=65&&n<=90&&(n|=32),n!==t.charCodeAt(r))return!1}return!0}function Ar(e){return null===e||(e.type===Or.Comma||e.type===Or.Function||e.type===Or.LeftParenthesis||e.type===Or.LeftSquareBracket||e.type===Or.LeftCurlyBracket||e.type===Or.Delim)}function Tr(e){return null===e||(e.type===Or.RightParenthesis||e.type===Or.RightSquareBracket||e.type===Or.RightCurlyBracket||e.type===Or.Delim)}function Lr(e,t,r){function n(){do{b++,y=b<e.length?e[b]:null}while(null!==y&&(y.type===Or.WhiteSpace||y.type===Or.Comment))}function o(t){var r=b+t;return r<e.length?e[r]:null}function a(e,t){return c.setPrototypeOf({nextState:e,matchStack:v,syntaxStack:p,thenStack:h,tokenIndex:b,prev:t},c.prototype)}function i(e){h=c.setPrototypeOf({nextState:e,matchStack:v,syntaxStack:p,prev:h},c.prototype)}function s(e){d=a(e,d)}function l(){v=c.setPrototypeOf({type:1,syntax:t.syntax,token:y,prev:v},c.prototype),n(),f=null,b>k&&(k=b)}function u(){v=2===v.type?v.prev:c.setPrototypeOf({type:3,syntax:p.syntax,token:v.token,prev:v},c.prototype),p=p.prev}var p=null,h=null,d=null,f=null,m=0,g=null,y=null,b=-1,k=0,v=c.setPrototypeOf({type:0,syntax:null,token:null,prev:null},c.prototype);for(n();null===g&&++m<15e3;)switch(t.type){case"Match":if(null===h){if(null!==y&&(b!==e.length-1||"\\0"!==y.value&&"\\9"!==y.value)){t=Pr;break}g="Match";break}if((t=h.nextState)===Sr){if(h.matchStack===v){t=Pr;break}t=_r}for(;h.syntaxStack!==p;)u();h=h.prev;break;case"Mismatch":if(null!==f&&!1!==f)(null===d||b>d.tokenIndex)&&(d=f,f=!1);else if(null===d){g="Mismatch";break}t=d.nextState,h=d.thenStack,p=d.syntaxStack,v=d.matchStack,b=d.tokenIndex,y=b<e.length?e[b]:null,d=d.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Pr&&s(t.else),t.then!==_r&&i(t.then),t=t.match;break;case"MatchOnce":t=c.setPrototypeOf({type:"MatchOnceBuffer",syntax:t,index:0,mask:0},c.prototype);break;case"MatchOnceBuffer":var w=t.syntax.terms;if(t.index===w.length){if(0===t.mask||t.syntax.all){t=Pr;break}t=_r;break}if(t.mask===(1<<w.length)-1){t=_r;break}for(;t.index<w.length;t.index++){var x=1<<t.index;if(0==(t.mask&x)){s(t),i(c.setPrototypeOf({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|x},c.prototype)),t=w[t.index++];break}}break;case"AddMatchOnce":t=c.setPrototypeOf({type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask},c.prototype);break;case"Enum":if(null!==y)if(-1!==(C=y.value.toLowerCase()).indexOf("\\")&&(C=C.replace(/\\[09].*$/,"")),xr.call(t.map,C)){t=t.map[C];break}t=Pr;break;case"Generic":var _=null!==p?p.opts:null,P=b+Math.floor(t.fn(y,o,_));if(!isNaN(P)&&P>b){for(;b<P;)l();t=_r}else t=Pr;break;case"Type":case"Property":var S="Type"===t.type?"types":"properties",O=xr.call(r,S)?r[S][t.name]:null;if(!O||!O.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==f&&null!==y&&"Type"===t.type)if("custom-ident"===t.name&&y.type===Or.Ident||"length"===t.name&&"0"===y.value){null===f&&(f=a(t,d)),t=Pr;break}p=c.setPrototypeOf({syntax:t.syntax,opts:t.syntax.opts||null!==p&&p.opts||null,prev:p},c.prototype),v=c.setPrototypeOf({type:2,syntax:t.syntax,token:v.token,prev:v},c.prototype),t=O.match;break;case"Keyword":var C=t.name;if(null!==y){var z=y.value;if(-1!==z.indexOf("\\")&&(z=z.replace(/\\[09].*$/,"")),Er(z,C)){l(),t=_r;break}}t=Pr;break;case"AtKeyword":case"Function":if(null!==y&&Er(y.value,t.name)){l(),t=_r;break}t=Pr;break;case"Token":if(null!==y&&y.value===t.value){l(),t=_r;break}t=Pr;break;case"Comma":null!==y&&y.type===Or.Comma?Ar(v.token)?t=Pr:(l(),t=Tr(y)?Pr:_r):t=Ar(v.token)||Tr(y)?_r:Pr;break;case"String":var E="";for(P=b;P<e.length&&E.length<t.value.length;P++)E+=e[P].value;if(Er(E,t.value)){for(;b<P;)l();t=_r}else t=Pr;break;default:throw new Error("Unknown node type: "+t.type)}switch(Cr+=m,g){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),g="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",v=null;break;case"Match":for(;null!==p;)u();break;default:v=null}return c.setPrototypeOf({tokens:e,reason:g,iterations:m,match:v,longestMatch:k},c.prototype)}var Rr=c.setPrototypeOf({matchAsList:function(e,t,r){var n=Lr(e,t,r||c.setPrototypeOf({},c.prototype));if(null!==n.match){var o=zr(n.match).prev;for(n.match=l.of();null!==o;){switch(o.type){case 0:break;case 2:case 3:n.match.push(c.setPrototypeOf({type:o.type,syntax:o.syntax},c.prototype));break;default:n.match.push(c.setPrototypeOf({token:o.token.value,node:o.token.node},c.prototype))}o=o.prev}}return n},matchAsTree:function(e,t,r){var n=Lr(e,t,r||c.setPrototypeOf({},c.prototype));if(null===n.match)return n;var o=n.match,a=n.match=c.setPrototypeOf({syntax:t.syntax||null,match:l.of()},c.prototype),i=l.of(a);for(o=zr(o).prev;null!==o;){switch(o.type){case 2:a.match.push(a=c.setPrototypeOf({syntax:o.syntax,match:l.of()},c.prototype)),i.push(a);break;case 3:i.pop(),a=i[i.length-1];break;default:a.match.push(c.setPrototypeOf({syntax:o.syntax||null,token:o.token.value,node:o.token.node},c.prototype))}o=o.prev}return n},getTotalIterationCount:function(){return Cr}},c.prototype);Rr.matchAsList,Rr.matchAsTree,Rr.getTotalIterationCount;function Nr(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}var r=null;return null!==this.matched&&function n(o){if(l.isArray(o.match)){for(var a=0;a<o.match.length;a++)if(n(o.match[a]))return t(o.syntax)&&r.unshift(o.syntax),!0}else if(o.node===e)return r=t(o.syntax)?l.of(o.syntax):l.of(),!0;return!1}(this.matched),r}function Dr(e,t,r){var n=Nr.call(e,t);return null!==n&&n.some(r)}var Br=c.setPrototypeOf({getTrace:Nr,isType:function(e,t){return Dr(this,e,(function(e){return"Type"===e.type&&e.name===t}))},isProperty:function(e,t){return Dr(this,e,(function(e){return"Property"===e.type&&e.name===t}))},isKeyword:function(e){return Dr(this,e,(function(e){return"Keyword"===e.type}))}},c.prototype);Br.getTrace,Br.isType,Br.isProperty,Br.isKeyword;var Ir=c.setPrototypeOf({matchFragments:function(e,t,r,n,o){var a=l.of();return null!==r.matched&&function r(i){if(null!==i.syntax&&i.syntax.type===n&&i.syntax.name===o){var s=function e(t){return"node"in t?t.node:e(t.match[0])}(i),u=function e(t){return"node"in t?t.node:e(t.match[t.match.length-1])}(i);e.syntax.walk(t,(function(e,t,r){if(e===s){var n=new E;do{if(n.appendData(t.data),t.data===u)break;t=t.next}while(null!==t);a.push(c.setPrototypeOf({parent:r,nodes:n},c.prototype))}}))}l.isArray(i.match)&&i.match.forEach(r)}(r.matched),a}},c.prototype),Ur=(Ir.matchFragments,c.prototype.hasOwnProperty);function Mr(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Fr(e){return Boolean(e)&&Mr(e.offset)&&Mr(e.line)&&Mr(e.column)}function jr(e,t){return function(r,n){if(!r||r.constructor!==c)return n(r,"Type of node should be an Object");for(var o in r){var a=!0;if(!1!==Ur.call(r,o)){if("type"===o)r.type!==e&&n(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if("loc"===o){if(null===r.loc)continue;if(r.loc&&r.loc.constructor===c)if("string"!=typeof r.loc.source)o+=".source";else if(Fr(r.loc.start)){if(Fr(r.loc.end))continue;o+=".end"}else o+=".start";a=!1}else if(t.hasOwnProperty(o)){var i=0;for(a=!1;!a&&i<t[o].length;i++){var s=t[o][i];switch(s){case String:a="string"==typeof r[o];break;case Boolean:a="boolean"==typeof r[o];break;case null:a=null===r[o];break;default:"string"==typeof s?a=r[o]&&r[o].type===s:l.isArray(s)&&(a=r[o]instanceof E)}}}else n(r,"Unknown field `"+o+"` for "+e+" node type");a||n(r,"Bad value for `"+e+"."+o+"`")}}for(var o in t)Ur.call(t,o)&&!1===Ur.call(r,o)&&n(r,"Field `"+e+"."+o+"` is missed")}}function Wr(e,t){var r=t.structure,n=c.setPrototypeOf({type:String,loc:!0},c.prototype),o=c.setPrototypeOf({type:'"'+e+'"'},c.prototype);for(var a in r)if(!1!==Ur.call(r,a)){for(var i=l.of(),s=n[a]=l.isArray(r[a])?r[a].slice():l.of(r[a]),u=0;u<s.length;u++){var p=s[u];if(p===String||p===Boolean)i.push(p.name);else if(null===p)i.push("null");else if("string"==typeof p)i.push("<"+p+">");else{if(!l.isArray(p))throw new Error("Wrong value `"+p+"` in `"+e+"."+a+"` structure definition");i.push("List")}}o[a]=i.join(" | ")}return c.setPrototypeOf({docs:o,check:jr(e,n)},c.prototype)}var Yr=c.setPrototypeOf({getStructureFromConfig:function(e){var t=c.setPrototypeOf({},c.prototype);if(e.node)for(var r in e.node)if(Ur.call(e.node,r)){var n=e.node[r];if(!n.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=Wr(r,n)}return t}},c.prototype),Zr=(Yr.getStructureFromConfig,ve.SyntaxReferenceError),Hr=ve.MatchError,qr=wr.buildMatchGraph,Vr=Rr.matchAsTree,Kr=Yr.getStructureFromConfig,$r=qr("inherit | initial | unset"),Gr=qr("inherit | initial | unset | <-ms-legacy-expression>");function Xr(e,t,r){var n=c.setPrototypeOf({},c.prototype);for(var o in e)e[o].syntax&&(n[o]=r?e[o].syntax:be(e[o].syntax,c.setPrototypeOf({compact:t},c.prototype)));return n}function Qr(e,t,r){return c.setPrototypeOf({matched:e,iterations:r,error:t,getTrace:Br.getTrace,isType:Br.isType,isProperty:Br.isProperty,isKeyword:Br.isKeyword},c.prototype)}function Jr(e,t,r,n){var o,a=function(e,t){return"string"==typeof e?dr(e,null):t.generate(e,hr)}(r,e.syntax);return function(e){for(var t=0;t<e.length;t++)if("var("===e[t].value.toLowerCase())return!0;return!1}(a)?Qr(null,new Error("Matching for a tree with var() is not supported")):(n&&(o=Vr(a,e.valueCommonSyntax,e)),n&&o.match||(o=Vr(a,t.match,e)).match?Qr(o.match,null,o.iterations):Qr(null,new Hr(o.reason,t.syntax,r,o),o.iterations))}var en=function(e,t,r){if(this.valueCommonSyntax=$r,this.syntax=t,this.generic=!1,this.atrules=c.setPrototypeOf({},c.prototype),this.properties=c.setPrototypeOf({},c.prototype),this.types=c.setPrototypeOf({},c.prototype),this.structure=r||Kr(e),e){if(e.types)for(var n in e.types)this.addType_(n,e.types[n]);if(e.generic)for(var n in this.generic=!0,Yt)this.addType_(n,Yt[n]);if(e.atrules)for(var n in e.atrules)this.addAtrule_(n,e.atrules[n]);if(e.properties)for(var n in e.properties)this.addProperty_(n,e.properties[n])}};en.prototype=c.setPrototypeOf({structure:c.setPrototypeOf({},c.prototype),checkStructure:function(e){function t(e,t){n.push(c.setPrototypeOf({node:e,message:t},c.prototype))}var r=this.structure,n=l.of();return this.syntax.walk(e,(function(e){r.hasOwnProperty(e.type)?r[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!n.length&&n},createDescriptor:function(e,t,r){var n=c.setPrototypeOf({type:t,name:r},c.prototype),o=c.setPrototypeOf({type:t,name:r,syntax:null,match:null},c.prototype);return"function"==typeof e?o.match=qr(e,n):("string"==typeof e?c.defineProperty(o,"syntax",c.setPrototypeOf({get:function(){return c.defineProperty(o,"syntax",c.setPrototypeOf({value:sr(e)},c.prototype)),o.syntax}},c.prototype)):o.syntax=e,c.defineProperty(o,"match",c.setPrototypeOf({get:function(){return c.defineProperty(o,"match",c.setPrototypeOf({value:qr(o.syntax,n)},c.prototype)),o.match}},c.prototype))),o},addAtrule_:function(e,t){this.atrules[e]=c.setPrototypeOf({prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?c.keys(t.descriptors).reduce((e,r)=>(e[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r),e),c.setPrototypeOf({},c.prototype)):null},c.prototype)},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===Yt["-ms-legacy-expression"]&&(this.valueCommonSyntax=Gr)},matchAtrulePrelude:function(e,t){var r=Oe.keyword(e),n=r.vendor?this.getAtrulePrelude(r.name)||this.getAtrulePrelude(r.basename):this.getAtrulePrelude(r.name);return n?Jr(this,n,t,!0):r.basename in this.atrules?Qr(null,new Error("At-rule `"+e+"` should not contain a prelude")):Qr(null,new Zr("Unknown at-rule",e))},matchAtruleDescriptor:function(e,t,r){var n=Oe.keyword(e),o=Oe.keyword(t),a=n.vendor?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name];if(!a)return Qr(null,new Zr("Unknown at-rule",e));if(!a.descriptors)return Qr(null,new Error("At-rule `"+e+"` has no known descriptors"));var i=o.vendor?a.descriptors[o.name]||a.descriptors[o.basename]:a.descriptors[o.name];return i?Jr(this,i,r,!0):Qr(null,new Zr("Unknown at-rule descriptor",t))},matchDeclaration:function(e){return"Declaration"!==e.type?Qr(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)},matchProperty:function(e,t){var r=Oe.property(e);if(r.custom)return Qr(null,new Error("Lexer matching doesn't applicable for custom properties"));var n=r.vendor?this.getProperty(r.name)||this.getProperty(r.basename):this.getProperty(r.name);return n?Jr(this,n,t,!0):Qr(null,new Zr("Unknown property",e))},matchType:function(e,t){var r=this.getType(e);return r?Jr(this,r,t,!1):Qr(null,new Zr("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")),Jr(this,e,t,!1)):Qr(null,new Zr("Bad syntax"))},findValueFragments:function(e,t,r,n){return Ir.matchFragments(this,t,this.matchProperty(e,t),r,n)},findDeclarationValueFragments:function(e,t,r){return Ir.matchFragments(this,e.value,this.matchDeclaration(e),t,r)},findAllFragments:function(e,t,r){var n=l.of();return this.syntax.walk(e,c.setPrototypeOf({visit:"Declaration",enter:function(e){n.push.apply(n,this.findDeclarationValueFragments(e,t,r))}.bind(this)},c.prototype)),n},getAtrulePrelude:function(e){return this.atrules.hasOwnProperty(e)?this.atrules[e].prelude:null},getAtruleDescriptor:function(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null},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(n,o,a,i){if(a.hasOwnProperty(o))return a[o];a[o]=!1,null!==i.syntax&&ur(i.syntax,(function(i){if("Type"===i.type||"Property"===i.type){var s="Type"===i.type?n.types:n.properties,l="Type"===i.type?t:r;s.hasOwnProperty(i.name)&&!e(n,i.name,l,s[i.name])||(a[o]=!0)}}),this)}var t=c.setPrototypeOf({},c.prototype),r=c.setPrototypeOf({},c.prototype);for(var n in this.types)e(this,n,t,this.types[n]);for(var n in this.properties)e(this,n,r,this.properties[n]);return t=c.keys(t).filter((function(e){return t[e]})),r=c.keys(r).filter((function(e){return r[e]})),t.length||r.length?c.setPrototypeOf({types:t,properties:r},c.prototype):null},dump:function(e,t){return c.setPrototypeOf({generic:this.generic,types:Xr(this.types,!t,e),properties:Xr(this.properties,!t,e)},c.prototype)},toString:function(){return JSON.stringify(this.dump())}},c.prototype);var tn=en,rn=c.setPrototypeOf({SyntaxError:Zt,parse:sr,generate:be,walk:ur},c.prototype),nn=(rn.parse,rn.generate,rn.walk,He.isBOM);var on=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1};on.prototype=c.setPrototypeOf({setSource:function(e,t,r,n){this.source=e,this.startOffset=void 0===t?0:t,this.startLine=void 0===r?1:r,this.startColumn=void 0===n?1:n,this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function(){this.linesAndColumnsComputed||(!function(e,t){for(var r=t.length,n=ze(e.lines,r),o=e.startLine,a=ze(e.columns,r),i=e.startColumn,s=t.length>0?nn(t.charCodeAt(0)):0;s<r;s++){var l=t.charCodeAt(s);n[s]=o,a[s]=i++,10!==l&&13!==l&&12!==l||(13===l&&s+1<r&&10===t.charCodeAt(s+1)&&(n[++s]=o,a[s]=i),o++,i=1)}n[s]=o,a[s]=i,e.lines=n,e.columns=a}(this,this.source),this.linesAndColumnsComputed=!0)},getLocation:function(e,t){return this.ensureLinesAndColumnsComputed(),c.setPrototypeOf({source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},c.prototype)},getLocationRange:function(e,t,r){return this.ensureLinesAndColumnsComputed(),c.setPrototypeOf({source:r,start:c.setPrototypeOf({offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},c.prototype),end:c.setPrototypeOf({offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]},c.prototype)},c.prototype)}},c.prototype);var an=on,sn=He.TYPE,ln=sn.WhiteSpace,cn=sn.Comment,un=function(e){var t=this.createList(),r=null,n=c.setPrototypeOf({recognizer:e,space:null,ignoreWS:!1,ignoreWSAfter:!1},c.prototype);for(this.scanner.skipSC();!this.scanner.eof;){switch(this.scanner.tokenType){case cn:this.scanner.next();continue;case ln:n.ignoreWS?this.scanner.next():n.space=this.WhiteSpace();continue}if(void 0===(r=e.getNode.call(this,n)))break;null!==n.space&&(t.push(n.space),n.space=null),t.push(r),n.ignoreWSAfter?(n.ignoreWSAfter=!1,n.ignoreWS=!0):n.ignoreWS=!1}return t},pn=se.findWhiteSpaceStart,hn=function(){},dn=D.TYPE,fn=D.NAME,mn=dn.WhiteSpace,gn=dn.Ident,yn=dn.Function,bn=dn.Url,kn=dn.Hash,vn=dn.Percentage,wn=dn.Number;function xn(e){return function(){return this[e]()}}var _n=function(e){var t=c.setPrototypeOf({scanner:new me,locationMap:new an,filename:"<unknown>",needPositions:!1,onParseError:hn,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:un,createList:function(){return new E},createSingleNodeList:function(e){return(new E).appendData(e)},getFirstListNode:function(e){return e&&e.first()},getLastListNode:function(e){return e.last()},parseWithFallback:function(e,t){var r=this.scanner.tokenIndex;try{return e.call(this)}catch(e){if(this.onParseErrorThrow)throw e;var n=t.call(this,r);return this.onParseErrorThrow=!0,this.onParseError(e,n),this.onParseErrorThrow=!1,n}},lookupNonWSType:function(e){do{var t=this.scanner.lookupType(e++);if(t!==mn)return t}while(0!==t);return 0},eat:function(e){if(this.scanner.tokenType!==e){var t=this.scanner.tokenStart,r=fn[e]+" is expected";switch(e){case gn:this.scanner.tokenType===yn||this.scanner.tokenType===bn?(t=this.scanner.tokenEnd-1,r="Identifier is expected but function found"):r="Identifier is expected";break;case kn:this.scanner.isDelim(35)&&(this.scanner.next(),t++,r="Name is expected");break;case vn:this.scanner.tokenType===wn&&(t=this.scanner.tokenEnd,r="Percent sign is expected");break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===e&&(t+=1)}this.error(r,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(yn),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),r=this.getLastListNode(e);return this.locationMap.getLocationRange(null!==t?t.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==r?r.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(e,t){var r=void 0!==t&&t<this.scanner.source.length?this.locationMap.getLocation(t):this.scanner.eof?this.locationMap.getLocation(pn(this.scanner.source,this.scanner.source.length-1)):this.locationMap.getLocation(this.scanner.tokenStart);throw new L(e||"Unexpected input",this.scanner.source,r.offset,r.line,r.column)}},c.prototype);for(var r in e=function(e){var t=c.setPrototypeOf({context:c.setPrototypeOf({},c.prototype),scope:c.setPrototypeOf({},c.prototype),atrule:c.setPrototypeOf({},c.prototype),pseudo:c.setPrototypeOf({},c.prototype)},c.prototype);if(e.parseContext)for(var r in e.parseContext)switch(typeof e.parseContext[r]){case"function":t.context[r]=e.parseContext[r];break;case"string":t.context[r]=xn(e.parseContext[r])}if(e.scope)for(var r in e.scope)t.scope[r]=e.scope[r];if(e.atrule)for(var r in e.atrule){var n=e.atrule[r];n.parse&&(t.atrule[r]=n.parse)}if(e.pseudo)for(var r in e.pseudo){var o=e.pseudo[r];o.parse&&(t.pseudo[r]=o.parse)}if(e.node)for(var r in e.node)t[r]=e.node[r].parse;return t}(e||c.setPrototypeOf({},c.prototype)))t[r]=e[r];return function(e,r){var n,o=(r=r||c.setPrototypeOf({},c.prototype)).context||"default";if(He(e,t.scanner),t.locationMap.setSource(e,r.offset,r.line,r.column),t.filename=r.filename||"<unknown>",t.needPositions=Boolean(r.positions),t.onParseError="function"==typeof r.onParseError?r.onParseError:hn,t.onParseErrorThrow=!1,t.parseAtrulePrelude=!("parseAtrulePrelude"in r)||Boolean(r.parseAtrulePrelude),t.parseRulePrelude=!("parseRulePrelude"in r)||Boolean(r.parseRulePrelude),t.parseValue=!("parseValue"in r)||Boolean(r.parseValue),t.parseCustomProperty="parseCustomProperty"in r&&Boolean(r.parseCustomProperty),!t.context.hasOwnProperty(o))throw new Error("Unknown context `"+o+"`");return n=t.context[o].call(t,r),t.scanner.eof||t.error(),n}},Pn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Sn=c.setPrototypeOf({encode:function(e){if(0<=e&&e<Pn.length)return Pn[e];throw new TypeError("Must be between 0 and 63: "+e)},decode:function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},c.prototype);var On=c.setPrototypeOf({encode:function(e){var t,r="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=Sn.encode(t)}while(n>0);return r},decode:function(e,t,r){var n,o,a,i,s=e.length,l=0,c=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=Sn.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&o),l+=(o&=31)<<c,c+=5}while(n);r.value=(i=(a=l)>>1,1==(1&a)?-i:i),r.rest=t}},c.prototype);function Cn(e,t){return e(t={exports:{}},t.exports),t.exports}var zn=Cn((function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function o(e){var t=e.match(r);return t?c.setPrototypeOf({scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]},c.prototype):null}function a(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 i(e){var r=e,n=o(e);if(n){if(!n.path)return e;r=n.path}for(var i,s=t.isAbsolute(r),l=r.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(i=l[u])?l.splice(u,1):".."===i?c++:c>0&&(""===i?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(r=l.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=o(t),s=o(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var l="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,a(s)):l}t.urlParse=o,t.urlGenerate=a,t.normalize=i,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return l(r+1).join("../")+t.substr(e.length+1)};var u=!("__proto__"in c.create(null));function p(e){return e}function h(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?p:function(e){return h(e)?"$"+e:e},t.fromSetString=u?p:function(e){return h(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=d(e.source,t.source);return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=d(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=d(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=o(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var l=n.path.lastIndexOf("/");l>=0&&(n.path=n.path.substring(0,l+1))}t=s(a(n),t)}return i(t)}})),En=(zn.getArg,zn.urlParse,zn.urlGenerate,zn.normalize,zn.join,zn.isAbsolute,zn.relative,zn.toSetString,zn.fromSetString,zn.compareByOriginalPositions,zn.compareByGeneratedPositionsDeflated,zn.compareByGeneratedPositionsInflated,zn.parseSourceMapInput,zn.computeSourceURL,c.prototype.hasOwnProperty),An=void 0!==i;function Tn(){this._array=l.of(),this._set=An?new i:c.create(null)}Tn.fromArray=function(e,t){for(var r=new Tn,n=0,o=e.length;n<o;n++)r.add(e[n],t);return r},Tn.prototype.size=function(){return An?this._set.size:c.getOwnPropertyNames(this._set).length},Tn.prototype.add=function(e,t){var r=An?e:zn.toSetString(e),n=An?this.has(e):En.call(this._set,r),o=this._array.length;n&&!t||this._array.push(e),n||(An?this._set.set(e,o):this._set[r]=o)},Tn.prototype.has=function(e){if(An)return this._set.has(e);var t=zn.toSetString(e);return En.call(this._set,t)},Tn.prototype.indexOf=function(e){if(An){var t=this._set.get(e);if(t>=0)return t}else{var r=zn.toSetString(e);if(En.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},Tn.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},Tn.prototype.toArray=function(){return this._array.slice()};var Ln=Tn,Rn=c.setPrototypeOf({ArraySet:Ln},c.prototype);function Nn(){this._array=l.of(),this._sorted=!0,this._last=c.setPrototypeOf({generatedLine:-1,generatedColumn:0},c.prototype)}Nn.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Nn.prototype.add=function(e){var t,r,n,o,a,i;t=this._last,r=e,n=t.generatedLine,o=r.generatedLine,a=t.generatedColumn,i=r.generatedColumn,o>n||o==n&&i>=a||zn.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Nn.prototype.toArray=function(){return this._sorted||(this._array.sort(zn.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Dn=Nn,Bn=c.setPrototypeOf({MappingList:Dn},c.prototype),In=Rn.ArraySet,Un=Bn.MappingList;function Mn(e){e||(e=c.setPrototypeOf({},c.prototype)),this._file=zn.getArg(e,"file",null),this._sourceRoot=zn.getArg(e,"sourceRoot",null),this._skipValidation=zn.getArg(e,"skipValidation",!1),this._sources=new In,this._names=new In,this._mappings=new Un,this._sourcesContents=null}Mn.prototype._version=3,Mn.fromSourceMap=function(e){var t=e.sourceRoot,r=new Mn(c.setPrototypeOf({file:e.file,sourceRoot:t},c.prototype));return e.eachMapping((function(e){var n=c.setPrototypeOf({generated:c.setPrototypeOf({line:e.generatedLine,column:e.generatedColumn},c.prototype)},c.prototype);null!=e.source&&(n.source=e.source,null!=t&&(n.source=zn.relative(t,n.source)),n.original=c.setPrototypeOf({line:e.originalLine,column:e.originalColumn},c.prototype),null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var o=n;null!==t&&(o=zn.relative(t,n)),r._sources.has(o)||r._sources.add(o);var a=e.sourceContentFor(n);null!=a&&r.setSourceContent(n,a)})),r},Mn.prototype.addMapping=function(e){var t=zn.getArg(e,"generated"),r=zn.getArg(e,"original",null),n=zn.getArg(e,"source",null),o=zn.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,o),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add(c.setPrototypeOf({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:o},c.prototype))},Mn.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=zn.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=c.create(null)),this._sourcesContents[zn.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[zn.toSetString(r)],0===c.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Mn.prototype.applySourceMap=function(e,t,r){var n=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.');n=e.file}var o=this._sourceRoot;null!=o&&(n=zn.relative(o,n));var a=new In,i=new In;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor(c.setPrototypeOf({line:t.originalLine,column:t.originalColumn},c.prototype));null!=s.source&&(t.source=s.source,null!=r&&(t.source=zn.join(r,t.source)),null!=o&&(t.source=zn.relative(o,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var l=t.source;null==l||a.has(l)||a.add(l);var u=t.name;null==u||i.has(u)||i.add(u)}),this),this._sources=a,this._names=i,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=zn.join(r,t)),null!=o&&(t=zn.relative(o,t)),this.setSourceContent(t,n))}),this)},Mn.prototype._validateMapping=function(e,t,r,n){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||r||n)&&!(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&&r))throw new Error("Invalid mapping: "+JSON.stringify(c.setPrototypeOf({generated:e,source:r,original:t,name:n},c.prototype)))},Mn.prototype._serializeMappings=function(){for(var e,t,r,n,o=0,a=1,i=0,s=0,l=0,c=0,u="",p=this._mappings.toArray(),h=0,d=p.length;h<d;h++){if(e="",(t=p[h]).generatedLine!==a)for(o=0;t.generatedLine!==a;)e+=";",a++;else if(h>0){if(!zn.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=On.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=On.encode(n-c),c=n,e+=On.encode(t.originalLine-1-s),s=t.originalLine-1,e+=On.encode(t.originalColumn-i),i=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=On.encode(r-l),l=r)),u+=e}return u},Mn.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=zn.relative(t,e));var r=zn.toSetString(e);return c.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},Mn.prototype.toJSON=function(){var e=c.setPrototypeOf({version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()},c.prototype);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},Mn.prototype.toString=function(){return JSON.stringify(this.toJSON())};var Fn=Mn,jn=c.setPrototypeOf({SourceMapGenerator:Fn},c.prototype).SourceMapGenerator,Wn=c.setPrototypeOf({Atrule:!0,Selector:!0,Declaration:!0},c.prototype),Yn=c.prototype.hasOwnProperty;function Zn(e,t){var r=e.children,n=null;"function"!=typeof t?r.forEach(this.node,this):r.forEach((function(e){null!==n&&t.call(this,n),this.node(e),n=e}),this)}var Hn=function(e){function t(e){if(!Yn.call(r,e.type))throw new Error("Unknown node type: "+e.type);r[e.type].call(this,e)}var r=c.setPrototypeOf({},c.prototype);if(e.node)for(var n in e.node)r[n]=e.node[n].generate;return function(e,r){var n="",o=c.setPrototypeOf({children:Zn,node:t,chunk:function(e){n+=e},result:function(){return n}},c.prototype);return r&&("function"==typeof r.decorator&&(o=r.decorator(o)),r.sourceMap&&(o=function(e){var t=new jn,r=1,n=0,o=c.setPrototypeOf({line:1,column:0},c.prototype),a=c.setPrototypeOf({line:0,column:0},c.prototype),i=!1,s=c.setPrototypeOf({line:1,column:0},c.prototype),l=c.setPrototypeOf({generated:s},c.prototype),u=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Wn.hasOwnProperty(e.type)){var p=e.loc.start.line,h=e.loc.start.column-1;a.line===p&&a.column===h||(a.line=p,a.column=h,o.line=r,o.column=n,i&&(i=!1,o.line===s.line&&o.column===s.column||t.addMapping(l)),i=!0,t.addMapping(c.setPrototypeOf({source:e.loc.source,original:a,generated:o},c.prototype)))}u.call(this,e),i&&Wn.hasOwnProperty(e.type)&&(s.line=r,s.column=n)};var p=e.chunk;e.chunk=function(e){for(var t=0;t<e.length;t++)10===e.charCodeAt(t)?(r++,n=0):n++;p(e)};var h=e.result;return e.result=function(){return i&&t.addMapping(l),c.setPrototypeOf({css:h(),map:t},c.prototype)},e}(o))),o.node(e),o.result()}},qn=c.prototype.hasOwnProperty,Vn=function(){};function Kn(e){return"function"==typeof e?e:Vn}function $n(e,t){return function(r,n,o){r.type===t&&e.call(this,r,n,o)}}function Gn(e,t){var r=t.structure,n=l.of();for(var o in r)if(!1!==qn.call(r,o)){var a=r[o],i=c.setPrototypeOf({name:o,type:!1,nullable:!1},c.prototype);l.isArray(r[o])||(a=l.of(r[o]));for(var s=0;s<a.length;s++){var u=a[s];null===u?i.nullable=!0:"string"==typeof u?i.type="node":l.isArray(u)&&(i.type="list")}i.type&&n.push(i)}return n.length?c.setPrototypeOf({context:t.walkContext,fields:n},c.prototype):null}function Xn(e,t){var r=e.fields.slice(),n=e.context,o="string"==typeof n;return t&&r.reverse(),function(e,a,i){var s;o&&(s=a[n],a[n]=e);for(var l=0;l<r.length;l++){var c=r[l],u=e[c.name];c.nullable&&!u||("list"===c.type?t?u.forEachRight(i):u.forEach(i):i(u))}o&&(a[n]=s)}}function Qn(e){return c.setPrototypeOf({Atrule:c.setPrototypeOf({StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block},c.prototype),Rule:c.setPrototypeOf({StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block},c.prototype),Declaration:c.setPrototypeOf({StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block,DeclarationList:e.DeclarationList},c.prototype)},c.prototype)}var Jn=function(e){var t=function(e){var t=c.setPrototypeOf({},c.prototype);for(var r in e.node)if(qn.call(e.node,r)){var n=e.node[r];if(!n.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=Gn(0,n)}return t}(e),r=c.setPrototypeOf({},c.prototype),n=c.setPrototypeOf({},c.prototype);for(var o in t)qn.call(t,o)&&null!==t[o]&&(r[o]=Xn(t[o],!1),n[o]=Xn(t[o],!0));var a=Qn(r),i=Qn(n),s=function(e,o){var s=Vn,l=Vn,u=r,p=c.setPrototypeOf({root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null},c.prototype);if("function"==typeof o)s=o;else if(o&&(s=Kn(o.enter),l=Kn(o.leave),o.reverse&&(u=n),o.visit)){if(a.hasOwnProperty(o.visit))u=o.reverse?i[o.visit]:a[o.visit];else if(!t.hasOwnProperty(o.visit))throw new Error("Bad value `"+o.visit+"` for `visit` option (should be: "+c.keys(t).join(", ")+")");s=$n(s,o.visit),l=$n(l,o.visit)}if(s===Vn&&l===Vn)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");if(o.reverse){var h=s;s=l,l=h}!function e(t,r,n){s.call(p,t,r,n),u.hasOwnProperty(t.type)&&u[t.type](t,p,e),l.call(p,t,r,n)}(e)};return s.find=function(e,t){var r=null;return s(e,(function(e,n,o){null===r&&t.call(this,e,n,o)&&(r=e)})),r},s.findLast=function(e,t){var r=null;return s(e,c.setPrototypeOf({reverse:!0,enter:function(e,n,o){null===r&&t.call(this,e,n,o)&&(r=e)}},c.prototype)),r},s.findAll=function(e,t){var r=l.of();return s(e,(function(e,n,o){t.call(this,e,n,o)&&r.push(e)})),r},s},eo=function e(t){var r=c.setPrototypeOf({},c.prototype);for(var n in t){var o=t[n];o&&(l.isArray(o)||o instanceof E?o=o.map(e):o.constructor===c&&(o=e(o))),r[n]=o}return r},to=c.prototype.hasOwnProperty,ro=c.setPrototypeOf({generic:!0,types:c.setPrototypeOf({},c.prototype),atrules:c.setPrototypeOf({},c.prototype),properties:c.setPrototypeOf({},c.prototype),parseContext:c.setPrototypeOf({},c.prototype),scope:c.setPrototypeOf({},c.prototype),atrule:l.of("parse"),pseudo:l.of("parse"),node:l.of("name","structure","parse","generate","walkContext")},c.prototype);function no(e){return e&&e.constructor===c}function oo(e){return no(e)?c.assign(c.setPrototypeOf({},c.prototype),e):e}function ao(e,t){for(var r in t)to.call(t,r)&&(no(e[r])?ao(e[r],oo(t[r])):e[r]=oo(t[r]))}var io=function(e,t){return function e(t,r,n){for(var o in n)if(!1!==to.call(n,o))if(!0===n[o])o in r&&to.call(r,o)&&(t[o]=oo(r[o]));else if(n[o]){if(no(n[o]))ao(a=c.setPrototypeOf({},c.prototype),t[o]),ao(a,r[o]),t[o]=a;else if(l.isArray(n[o])){var a=c.setPrototypeOf({},c.prototype),i=n[o].reduce((function(e,t){return e[t]=!0,e}),c.setPrototypeOf({},c.prototype));for(var s in t[o])to.call(t[o],s)&&(a[s]=c.setPrototypeOf({},c.prototype),t[o]&&t[o][s]&&e(a[s],t[o][s],i));for(var s in r[o])to.call(r[o],s)&&(a[s]||(a[s]=c.setPrototypeOf({},c.prototype)),r[o]&&r[o][s]&&e(a[s],r[o][s],i));t[o]=a}}return t}(e,t,ro)};function so(e){var t=_n(e),r=Jn(e),n=Hn(e),o=function(e){return c.setPrototypeOf({fromPlainObject:function(t){return e(t,c.setPrototypeOf({enter:function(e){e.children&&e.children instanceof E==!1&&(e.children=(new E).fromArray(e.children))}},c.prototype)),t},toPlainObject:function(t){return e(t,c.setPrototypeOf({leave:function(e){e.children&&e.children instanceof E&&(e.children=e.children.toArray())}},c.prototype)),t}},c.prototype)}(r),a=c.setPrototypeOf({List:E,SyntaxError:L,TokenStream:me,Lexer:tn,vendorPrefix:Oe.vendorPrefix,keyword:Oe.keyword,property:Oe.property,isCustomProperty:Oe.isCustomProperty,definitionSyntax:rn,lexer:null,createLexer:function(e){return new tn(e,a,a.lexer.structure)},tokenize:He,parse:t,walk:r,generate:n,find:r.find,findLast:r.findLast,findAll:r.findAll,clone:eo,fromPlainObject:o.fromPlainObject,toPlainObject:o.toPlainObject,createSyntax:function(e){return so(io(c.setPrototypeOf({},c.prototype),e))},fork:function(t){var r=io(c.setPrototypeOf({},c.prototype),e);return so("function"==typeof t?t(r,c.assign):io(r,t))}},c.prototype);return a.lexer=new tn(c.setPrototypeOf({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},c.prototype),a),a}var lo=c.setPrototypeOf({create:function(e){return so(io(c.setPrototypeOf({},c.prototype),e))}},c.prototype),co={"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","track-group":"'(' [<string>* <track-minmax> <string>*]+ ')' ['[' <positive-integer> ']']?|<track-minmax>","track-list-v0":"[<string>* <track-group> <string>*]+|none","track-minmax":"minmax( <track-breadth> , <track-breadth> )|auto|<track-breadth>|fit-content",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,∞]>"},uo={"--*":"<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:"block|contents|flex|flow|flow-root|grid|inline|inline-block|inline-flex|inline-grid|inline-list-item|inline-table|list-item|none|ruby|ruby-base|ruby-base-container|ruby-text|ruby-text-container|run-in|table|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|-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-control-character-visibility":"visible|hidden","-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-columns":"<track-list-v0>","-ms-grid-row-align":"start|end|center|stretch","-ms-grid-rows":"<track-list-v0>","-ms-hyphenate-limit-last":"none|always|column|page|spread","-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>]"},po={generic:!0,types:co,properties:uo},ho=Object.freeze({generic:!0,types:co,properties:uo,default:po}),fo=He.cmpChar,mo=He.isDigit,go=He.TYPE,yo=go.WhiteSpace,bo=go.Comment,ko=go.Ident,vo=go.Number,wo=go.Dimension;function xo(e,t){var r=this.scanner.tokenStart+e,n=this.scanner.source.charCodeAt(r);for(43!==n&&45!==n||(t&&this.error("Number sign is not allowed"),r++);r<this.scanner.tokenEnd;r++)mo(this.scanner.source.charCodeAt(r))||this.error("Integer is expected",r)}function _o(e){return xo.call(this,0,e)}function Po(e,t){if(!fo(this.scanner.source,this.scanner.tokenStart+e,t)){var r="";switch(t){case 110:r="N is expected";break;case 45:r="HyphenMinus is expected"}this.error(r,this.scanner.tokenStart+e)}}function So(){for(var e=0,t=0,r=this.scanner.tokenType;r===yo||r===bo;)r=this.scanner.lookupType(++e);if(r!==vo){if(!this.scanner.isDelim(43,e)&&!this.scanner.isDelim(45,e))return null;t=this.scanner.isDelim(43,e)?43:45;do{r=this.scanner.lookupType(++e)}while(r===yo||r===bo);r!==vo&&(this.scanner.skip(e),_o.call(this,!0))}return e>0&&this.scanner.skip(e),0===t&&43!==(r=this.scanner.source.charCodeAt(this.scanner.tokenStart))&&45!==r&&this.error("Number sign is expected"),_o.call(this,0!==t),45===t?"-"+this.consume(vo):this.consume(vo)}var Oo=c.setPrototypeOf({name:"AnPlusB",structure:c.setPrototypeOf({a:l.of(String,null),b:l.of(String,null)},c.prototype),parse:function(){var e=this.scanner.tokenStart,t=null,r=null;if(this.scanner.tokenType===vo)_o.call(this,!1),r=this.consume(vo);else if(this.scanner.tokenType===ko&&fo(this.scanner.source,this.scanner.tokenStart,45))switch(t="-1",Po.call(this,1,110),this.scanner.getTokenLength()){case 2:this.scanner.next(),r=So.call(this);break;case 3:Po.call(this,2,45),this.scanner.next(),this.scanner.skipSC(),_o.call(this,!0),r="-"+this.consume(vo);break;default:Po.call(this,2,45),xo.call(this,3,!0),this.scanner.next(),r=this.scanner.substrToCursor(e+2)}else if(this.scanner.tokenType===ko||this.scanner.isDelim(43)&&this.scanner.lookupType(1)===ko){var n=0;switch(t="1",this.scanner.isDelim(43)&&(n=1,this.scanner.next()),Po.call(this,0,110),this.scanner.getTokenLength()){case 1:this.scanner.next(),r=So.call(this);break;case 2:Po.call(this,1,45),this.scanner.next(),this.scanner.skipSC(),_o.call(this,!0),r="-"+this.consume(vo);break;default:Po.call(this,1,45),xo.call(this,2,!0),this.scanner.next(),r=this.scanner.substrToCursor(e+n+1)}}else if(this.scanner.tokenType===wo){for(var o=this.scanner.source.charCodeAt(this.scanner.tokenStart),a=(n=43===o||45===o,this.scanner.tokenStart+n);a<this.scanner.tokenEnd&&mo(this.scanner.source.charCodeAt(a));a++);a===this.scanner.tokenStart+n&&this.error("Integer is expected",this.scanner.tokenStart+n),Po.call(this,a-this.scanner.tokenStart,110),t=this.scanner.source.substring(e,a),a+1===this.scanner.tokenEnd?(this.scanner.next(),r=So.call(this)):(Po.call(this,a-this.scanner.tokenStart+1,45),a+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),_o.call(this,!0),r="-"+this.consume(vo)):(xo.call(this,a-this.scanner.tokenStart+2,!0),this.scanner.next(),r=this.scanner.substrToCursor(a+1)))}else this.error();return null!==t&&43===t.charCodeAt(0)&&(t=t.substr(1)),null!==r&&43===r.charCodeAt(0)&&(r=r.substr(1)),c.setPrototypeOf({type:"AnPlusB",loc:this.getLocation(e,this.scanner.tokenStart),a:t,b:r},c.prototype)},generate:function(e){var t=null!==e.a&&void 0!==e.a,r=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"),r&&("-"===(r=String(e.b)).charAt(0)||"+"===r.charAt(0)?(this.chunk(r.charAt(0)),this.chunk(r.substr(1))):(this.chunk("+"),this.chunk(r)))):this.chunk(String(e.b))}},c.prototype),Co=(Oo.name,Oo.structure,Oo.parse,Oo.generate,He.TYPE),zo=Co.WhiteSpace,Eo=Co.Semicolon,Ao=Co.LeftCurlyBracket,To=Co.Delim;function Lo(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===zo?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function Ro(){return 0}var No=c.setPrototypeOf({name:"Raw",structure:c.setPrototypeOf({value:String},c.prototype),parse:function(e,t,r){var n,o=this.scanner.getTokenStart(e);return this.scanner.skip(this.scanner.getRawLength(e,t||Ro)),n=r&&this.scanner.tokenStart>o?Lo.call(this):this.scanner.tokenStart,c.setPrototypeOf({type:"Raw",loc:this.getLocation(o,n),value:this.scanner.source.substring(o,n)},c.prototype)},generate:function(e){this.chunk(e.value)},mode:c.setPrototypeOf({default:Ro,leftCurlyBracket:function(e){return e===Ao?1:0},leftCurlyBracketOrSemicolon:function(e){return e===Ao||e===Eo?1:0},exclamationMarkOrSemicolon:function(e,t,r){return e===To&&33===t.charCodeAt(r)||e===Eo?1:0},semicolonIncluded:function(e){return e===Eo?2:0}},c.prototype)},c.prototype),Do=(No.name,No.structure,No.parse,No.generate,No.mode,He.TYPE),Bo=No.mode,Io=Do.AtKeyword,Uo=Do.Semicolon,Mo=Do.LeftCurlyBracket,Fo=Do.RightCurlyBracket;function jo(e){return this.Raw(e,Bo.leftCurlyBracketOrSemicolon,!0)}function Wo(){for(var e,t=1;e=this.scanner.lookupType(t);t++){if(e===Fo)return!0;if(e===Mo||e===Io)return!1}return!1}var Yo=c.setPrototypeOf({name:"Atrule",structure:c.setPrototypeOf({name:String,prelude:l.of("AtrulePrelude","Raw",null),block:l.of("Block",null)},c.prototype),parse:function(){var e,t,r=this.scanner.tokenStart,n=null,o=null;switch(this.eat(Io),t=(e=this.scanner.substrToCursor(r+1)).toLowerCase(),this.scanner.skipSC(),!1===this.scanner.eof&&this.scanner.tokenType!==Mo&&this.scanner.tokenType!==Uo&&(this.parseAtrulePrelude?"AtrulePrelude"===(n=this.parseWithFallback(this.AtrulePrelude.bind(this,e),jo)).type&&null===n.children.head&&(n=null):n=jo.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case Uo:this.scanner.next();break;case Mo:o=this.atrule.hasOwnProperty(t)&&"function"==typeof this.atrule[t].block?this.atrule[t].block.call(this):this.Block(Wo.call(this))}return c.setPrototypeOf({type:"Atrule",loc:this.getLocation(r,this.scanner.tokenStart),name:e,prelude:n,block:o},c.prototype)},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"},c.prototype),Zo=(Yo.name,Yo.structure,Yo.parse,Yo.generate,Yo.walkContext,He.TYPE),Ho=Zo.Semicolon,qo=Zo.LeftCurlyBracket,Vo=c.setPrototypeOf({name:"AtrulePrelude",structure:c.setPrototypeOf({children:l.of(l.of())},c.prototype),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!==qo&&this.scanner.tokenType!==Ho&&this.error("Semicolon or block is expected"),null===t&&(t=this.createList()),c.setPrototypeOf({type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t},c.prototype)},generate:function(e){this.children(e)},walkContext:"atrulePrelude"},c.prototype),Ko=(Vo.name,Vo.structure,Vo.parse,Vo.generate,Vo.walkContext,He.TYPE),$o=Ko.Ident,Go=Ko.String,Xo=Ko.Colon,Qo=Ko.LeftSquareBracket,Jo=Ko.RightSquareBracket;function ea(){this.scanner.eof&&this.error("Unexpected end of input");var e=this.scanner.tokenStart,t=!1,r=!0;return this.scanner.isDelim(42)?(t=!0,r=!1,this.scanner.next()):this.scanner.isDelim(124)||this.eat($o),this.scanner.isDelim(124)?61!==this.scanner.source.charCodeAt(this.scanner.tokenStart+1)?(this.scanner.next(),this.eat($o)):t&&this.error("Identifier is expected",this.scanner.tokenEnd):t&&this.error("Vertical line is expected"),r&&this.scanner.tokenType===Xo&&(this.scanner.next(),this.eat($o)),c.setPrototypeOf({type:"Identifier",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)},c.prototype)}function ta(){var e=this.scanner.tokenStart,t=this.scanner.source.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),61!==t&&(this.scanner.isDelim(61)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(e)}var ra=c.setPrototypeOf({name:"AttributeSelector",structure:c.setPrototypeOf({name:"Identifier",matcher:l.of(String,null),value:l.of("String","Identifier",null),flags:l.of(String,null)},c.prototype),parse:function(){var e,t=this.scanner.tokenStart,r=null,n=null,o=null;return this.eat(Qo),this.scanner.skipSC(),e=ea.call(this),this.scanner.skipSC(),this.scanner.tokenType!==Jo&&(this.scanner.tokenType!==$o&&(r=ta.call(this),this.scanner.skipSC(),n=this.scanner.tokenType===Go?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===$o&&(o=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(Jo),c.setPrototypeOf({type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,matcher:r,value:n,flags:o},c.prototype)},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("]")}},c.prototype),na=(ra.name,ra.structure,ra.parse,ra.generate,He.TYPE),oa=No.mode,aa=na.WhiteSpace,ia=na.Comment,sa=na.Semicolon,la=na.AtKeyword,ca=na.LeftCurlyBracket,ua=na.RightCurlyBracket;function pa(e){return this.Raw(e,null,!0)}function ha(){return this.parseWithFallback(this.Rule,pa)}function da(e){return this.Raw(e,oa.semicolonIncluded,!0)}function fa(){if(this.scanner.tokenType===sa)return da.call(this,this.scanner.tokenIndex);var e=this.parseWithFallback(this.Declaration,da);return this.scanner.tokenType===sa&&this.scanner.next(),e}var ma=c.setPrototypeOf({name:"Block",structure:c.setPrototypeOf({children:l.of(l.of("Atrule","Rule","Declaration"))},c.prototype),parse:function(e){var t=e?fa:ha,r=this.scanner.tokenStart,n=this.createList();this.eat(ca);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case ua:break e;case aa:case ia:this.scanner.next();break;case la:n.push(this.parseWithFallback(this.Atrule,pa));break;default:n.push(t.call(this))}return this.scanner.eof||this.eat(ua),c.setPrototypeOf({type:"Block",loc:this.getLocation(r,this.scanner.tokenStart),children:n},c.prototype)},generate:function(e){this.chunk("{"),this.children(e,(function(e){"Declaration"===e.type&&this.chunk(";")})),this.chunk("}")},walkContext:"block"},c.prototype),ga=(ma.name,ma.structure,ma.parse,ma.generate,ma.walkContext,He.TYPE),ya=ga.LeftSquareBracket,ba=ga.RightSquareBracket,ka=c.setPrototypeOf({name:"Brackets",structure:c.setPrototypeOf({children:l.of(l.of())},c.prototype),parse:function(e,t){var r,n=this.scanner.tokenStart;return this.eat(ya),r=e.call(this,t),this.scanner.eof||this.eat(ba),c.setPrototypeOf({type:"Brackets",loc:this.getLocation(n,this.scanner.tokenStart),children:r},c.prototype)},generate:function(e){this.chunk("["),this.children(e),this.chunk("]")}},c.prototype),va=(ka.name,ka.structure,ka.parse,ka.generate,He.TYPE.CDC),wa=c.setPrototypeOf({name:"CDC",structure:l.of(),parse:function(){var e=this.scanner.tokenStart;return this.eat(va),c.setPrototypeOf({type:"CDC",loc:this.getLocation(e,this.scanner.tokenStart)},c.prototype)},generate:function(){this.chunk("--\x3e")}},c.prototype),xa=(wa.name,wa.structure,wa.parse,wa.generate,He.TYPE.CDO),_a=c.setPrototypeOf({name:"CDO",structure:l.of(),parse:function(){var e=this.scanner.tokenStart;return this.eat(xa),c.setPrototypeOf({type:"CDO",loc:this.getLocation(e,this.scanner.tokenStart)},c.prototype)},generate:function(){this.chunk("\x3c!--")}},c.prototype),Pa=(_a.name,_a.structure,_a.parse,_a.generate,He.TYPE.Ident),Sa=c.setPrototypeOf({name:"ClassSelector",structure:c.setPrototypeOf({name:String},c.prototype),parse:function(){return this.scanner.isDelim(46)||this.error("Full stop is expected"),this.scanner.next(),c.setPrototypeOf({type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(Pa)},c.prototype)},generate:function(e){this.chunk("."),this.chunk(e.name)}},c.prototype),Oa=(Sa.name,Sa.structure,Sa.parse,Sa.generate,He.TYPE.Ident),Ca=c.setPrototypeOf({name:"Combinator",structure:c.setPrototypeOf({name:String},c.prototype),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===Oa&&!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 c.setPrototypeOf({type:"Combinator",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)},c.prototype)},generate:function(e){this.chunk(e.name)}},c.prototype),za=(Ca.name,Ca.structure,Ca.parse,Ca.generate,He.TYPE.Comment),Ea=c.setPrototypeOf({name:"Comment",structure:c.setPrototypeOf({value:String},c.prototype),parse:function(){var e=this.scanner.tokenStart,t=this.scanner.tokenEnd;return this.eat(za),t-e+2>=2&&42===this.scanner.source.charCodeAt(t-2)&&47===this.scanner.source.charCodeAt(t-1)&&(t-=2),c.setPrototypeOf({type:"Comment",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e+2,t)},c.prototype)},generate:function(e){this.chunk("/*"),this.chunk(e.value),this.chunk("*/")}},c.prototype),Aa=(Ea.name,Ea.structure,Ea.parse,Ea.generate,Oe.isCustomProperty),Ta=He.TYPE,La=No.mode,Ra=Ta.Ident,Na=Ta.Hash,Da=Ta.Colon,Ba=Ta.Semicolon,Ia=Ta.Delim;function Ua(e){return this.Raw(e,La.exclamationMarkOrSemicolon,!0)}function Ma(e){return this.Raw(e,La.exclamationMarkOrSemicolon,!1)}function Fa(){var e=this.scanner.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.scanner.eof&&this.scanner.tokenType!==Ba&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(e)&&this.error(),t}var ja=c.setPrototypeOf({name:"Declaration",structure:c.setPrototypeOf({important:l.of(Boolean,String),property:String,value:l.of("Value","Raw")},c.prototype),parse:function(){var e,t=this.scanner.tokenStart,r=this.scanner.tokenIndex,n=Wa.call(this),o=Aa(n),a=o?this.parseCustomProperty:this.parseValue,i=o?Ma:Ua,s=!1;return this.scanner.skipSC(),this.eat(Da),o||this.scanner.skipSC(),e=a?this.parseWithFallback(Fa,i):i.call(this,this.scanner.tokenIndex),this.scanner.isDelim(33)&&(s=Ya.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==Ba&&!1===this.scanner.isBalanceEdge(r)&&this.error(),c.setPrototypeOf({type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:s,property:n,value:e},c.prototype)},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"},c.prototype);function Wa(){var e=this.scanner.tokenStart;if(this.scanner.tokenType===Ia)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.isDelim(47)&&this.scanner.next()}return this.scanner.tokenType===Na?this.eat(Na):this.eat(Ra),this.scanner.substrToCursor(e)}function Ya(){this.eat(Ia),this.scanner.skipSC();var e=this.consume(Ra);return"important"===e||e}ja.name,ja.structure,ja.parse,ja.generate,ja.walkContext;var Za=He.TYPE,Ha=No.mode,qa=Za.WhiteSpace,Va=Za.Comment,Ka=Za.Semicolon;function $a(e){return this.Raw(e,Ha.semicolonIncluded,!0)}var Ga=c.setPrototypeOf({name:"DeclarationList",structure:c.setPrototypeOf({children:l.of(l.of("Declaration"))},c.prototype),parse:function(){for(var e=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case qa:case Va:case Ka:this.scanner.next();break;default:e.push(this.parseWithFallback(this.Declaration,$a))}return c.setPrototypeOf({type:"DeclarationList",loc:this.getLocationFromList(e),children:e},c.prototype)},generate:function(e){this.children(e,(function(e){"Declaration"===e.type&&this.chunk(";")}))}},c.prototype),Xa=(Ga.name,Ga.structure,Ga.parse,Ga.generate,se.consumeNumber),Qa=He.TYPE.Dimension,Ja=c.setPrototypeOf({name:"Dimension",structure:c.setPrototypeOf({value:String,unit:String},c.prototype),parse:function(){var e=this.scanner.tokenStart,t=Xa(this.scanner.source,e);return this.eat(Qa),c.setPrototypeOf({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)},c.prototype)},generate:function(e){this.chunk(e.value),this.chunk(e.unit)}},c.prototype),ei=(Ja.name,Ja.structure,Ja.parse,Ja.generate,He.TYPE.RightParenthesis),ti=c.setPrototypeOf({name:"Function",structure:c.setPrototypeOf({name:String,children:l.of(l.of())},c.prototype),parse:function(e,t){var r,n=this.scanner.tokenStart,o=this.consumeFunctionName(),a=o.toLowerCase();return r=t.hasOwnProperty(a)?t[a].call(this,t):e.call(this,t),this.scanner.eof||this.eat(ei),c.setPrototypeOf({type:"Function",loc:this.getLocation(n,this.scanner.tokenStart),name:o,children:r},c.prototype)},generate:function(e){this.chunk(e.name),this.chunk("("),this.children(e),this.chunk(")")},walkContext:"function"},c.prototype),ri=(ti.name,ti.structure,ti.parse,ti.generate,ti.walkContext,He.TYPE.Hash),ni=c.setPrototypeOf({name:"HexColor",structure:c.setPrototypeOf({value:String},c.prototype),parse:function(){var e=this.scanner.tokenStart;return this.eat(ri),c.setPrototypeOf({type:"HexColor",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e+1)},c.prototype)},generate:function(e){this.chunk("#"),this.chunk(e.value)}},c.prototype),oi=(ni.name,ni.structure,ni.parse,ni.generate,He.TYPE.Ident),ai=c.setPrototypeOf({name:"Identifier",structure:c.setPrototypeOf({name:String},c.prototype),parse:function(){return c.setPrototypeOf({type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(oi)},c.prototype)},generate:function(e){this.chunk(e.name)}},c.prototype),ii=(ai.name,ai.structure,ai.parse,ai.generate,He.TYPE.Hash),si=c.setPrototypeOf({name:"IdSelector",structure:c.setPrototypeOf({name:String},c.prototype),parse:function(){var e=this.scanner.tokenStart;return this.eat(ii),c.setPrototypeOf({type:"IdSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e+1)},c.prototype)},generate:function(e){this.chunk("#"),this.chunk(e.name)}},c.prototype),li=(si.name,si.structure,si.parse,si.generate,He.TYPE),ci=li.Ident,ui=li.Number,pi=li.Dimension,hi=li.LeftParenthesis,di=li.RightParenthesis,fi=li.Colon,mi=li.Delim,gi=c.setPrototypeOf({name:"MediaFeature",structure:c.setPrototypeOf({name:String,value:l.of("Identifier","Number","Dimension","Ratio",null)},c.prototype),parse:function(){var e,t=this.scanner.tokenStart,r=null;if(this.eat(hi),this.scanner.skipSC(),e=this.consume(ci),this.scanner.skipSC(),this.scanner.tokenType!==di){switch(this.eat(fi),this.scanner.skipSC(),this.scanner.tokenType){case ui:r=this.lookupNonWSType(1)===mi?this.Ratio():this.Number();break;case pi:r=this.Dimension();break;case ci:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(di),c.setPrototypeOf({type:"MediaFeature",loc:this.getLocation(t,this.scanner.tokenStart),name:e,value:r},c.prototype)},generate:function(e){this.chunk("("),this.chunk(e.name),null!==e.value&&(this.chunk(":"),this.node(e.value)),this.chunk(")")}},c.prototype),yi=(gi.name,gi.structure,gi.parse,gi.generate,He.TYPE),bi=yi.WhiteSpace,ki=yi.Comment,vi=yi.Ident,wi=yi.LeftParenthesis,xi=c.setPrototypeOf({name:"MediaQuery",structure:c.setPrototypeOf({children:l.of(l.of("Identifier","MediaFeature","WhiteSpace"))},c.prototype),parse:function(){this.scanner.skipSC();var e=this.createList(),t=null,r=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case ki:this.scanner.next();continue;case bi:r=this.WhiteSpace();continue;case vi:t=this.Identifier();break;case wi:t=this.MediaFeature();break;default:break e}null!==r&&(e.push(r),r=null),e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),c.setPrototypeOf({type:"MediaQuery",loc:this.getLocationFromList(e),children:e},c.prototype)},generate:function(e){this.children(e)}},c.prototype),_i=(xi.name,xi.structure,xi.parse,xi.generate,He.TYPE.Comma),Pi=c.setPrototypeOf({name:"MediaQueryList",structure:c.setPrototypeOf({children:l.of(l.of("MediaQuery"))},c.prototype),parse:function(e){var t=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(t.push(this.MediaQuery(e)),this.scanner.tokenType===_i);)this.scanner.next();return c.setPrototypeOf({type:"MediaQueryList",loc:this.getLocationFromList(t),children:t},c.prototype)},generate:function(e){this.children(e,(function(){this.chunk(",")}))}},c.prototype),Si=(Pi.name,Pi.structure,Pi.parse,Pi.generate,c.setPrototypeOf({name:"Nth",structure:c.setPrototypeOf({nth:l.of("AnPlusB","Identifier"),selector:l.of("SelectorList",null)},c.prototype),parse:function(e){this.scanner.skipSC();var t,r=this.scanner.tokenStart,n=r,o=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(),o=this.SelectorList(),this.needPositions&&(n=this.getLastListNode(o.children).loc.end.offset)):this.needPositions&&(n=t.loc.end.offset),c.setPrototypeOf({type:"Nth",loc:this.getLocation(r,n),nth:t,selector:o},c.prototype)},generate:function(e){this.node(e.nth),null!==e.selector&&(this.chunk(" of "),this.node(e.selector))}},c.prototype)),Oi=(Si.name,Si.structure,Si.parse,Si.generate,He.TYPE.Number),Ci=c.setPrototypeOf({name:"Number",structure:c.setPrototypeOf({value:String},c.prototype),parse:function(){return c.setPrototypeOf({type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(Oi)},c.prototype)},generate:function(e){this.chunk(e.value)}},c.prototype),zi=(Ci.name,Ci.structure,Ci.parse,Ci.generate,c.setPrototypeOf({name:"Operator",structure:c.setPrototypeOf({value:String},c.prototype),parse:function(){var e=this.scanner.tokenStart;return this.scanner.next(),c.setPrototypeOf({type:"Operator",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)},c.prototype)},generate:function(e){this.chunk(e.value)}},c.prototype)),Ei=(zi.name,zi.structure,zi.parse,zi.generate,He.TYPE),Ai=Ei.LeftParenthesis,Ti=Ei.RightParenthesis,Li=c.setPrototypeOf({name:"Parentheses",structure:c.setPrototypeOf({children:l.of(l.of())},c.prototype),parse:function(e,t){var r,n=this.scanner.tokenStart;return this.eat(Ai),r=e.call(this,t),this.scanner.eof||this.eat(Ti),c.setPrototypeOf({type:"Parentheses",loc:this.getLocation(n,this.scanner.tokenStart),children:r},c.prototype)},generate:function(e){this.chunk("("),this.children(e),this.chunk(")")}},c.prototype),Ri=(Li.name,Li.structure,Li.parse,Li.generate,se.consumeNumber),Ni=He.TYPE.Percentage,Di=c.setPrototypeOf({name:"Percentage",structure:c.setPrototypeOf({value:String},c.prototype),parse:function(){var e=this.scanner.tokenStart,t=Ri(this.scanner.source,e);return this.eat(Ni),c.setPrototypeOf({type:"Percentage",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t)},c.prototype)},generate:function(e){this.chunk(e.value),this.chunk("%")}},c.prototype),Bi=(Di.name,Di.structure,Di.parse,Di.generate,He.TYPE),Ii=Bi.Ident,Ui=Bi.Function,Mi=Bi.Colon,Fi=Bi.RightParenthesis,ji=c.setPrototypeOf({name:"PseudoClassSelector",structure:c.setPrototypeOf({name:String,children:l.of(l.of("Raw"),null)},c.prototype),parse:function(){var e,t,r=this.scanner.tokenStart,n=null;return this.eat(Mi),this.scanner.tokenType===Ui?(t=(e=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(t)?(this.scanner.skipSC(),n=this.pseudo[t].call(this),this.scanner.skipSC()):(n=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(Fi)):e=this.consume(Ii),c.setPrototypeOf({type:"PseudoClassSelector",loc:this.getLocation(r,this.scanner.tokenStart),name:e,children:n},c.prototype)},generate:function(e){this.chunk(":"),this.chunk(e.name),null!==e.children&&(this.chunk("("),this.children(e),this.chunk(")"))},walkContext:"function"},c.prototype),Wi=(ji.name,ji.structure,ji.parse,ji.generate,ji.walkContext,He.TYPE),Yi=Wi.Ident,Zi=Wi.Function,Hi=Wi.Colon,qi=Wi.RightParenthesis,Vi=c.setPrototypeOf({name:"PseudoElementSelector",structure:c.setPrototypeOf({name:String,children:l.of(l.of("Raw"),null)},c.prototype),parse:function(){var e,t,r=this.scanner.tokenStart,n=null;return this.eat(Hi),this.eat(Hi),this.scanner.tokenType===Zi?(t=(e=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(t)?(this.scanner.skipSC(),n=this.pseudo[t].call(this),this.scanner.skipSC()):(n=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(qi)):e=this.consume(Yi),c.setPrototypeOf({type:"PseudoElementSelector",loc:this.getLocation(r,this.scanner.tokenStart),name:e,children:n},c.prototype)},generate:function(e){this.chunk("::"),this.chunk(e.name),null!==e.children&&(this.chunk("("),this.children(e),this.chunk(")"))},walkContext:"function"},c.prototype),Ki=(Vi.name,Vi.structure,Vi.parse,Vi.generate,Vi.walkContext,He.isDigit),$i=He.TYPE,Gi=$i.Number,Xi=$i.Delim;function Qi(){this.scanner.skipWS();for(var e=this.consume(Gi),t=0;t<e.length;t++){var r=e.charCodeAt(t);Ki(r)||46===r||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 Ji=c.setPrototypeOf({name:"Ratio",structure:c.setPrototypeOf({left:String,right:String},c.prototype),parse:function(){var e,t=this.scanner.tokenStart,r=Qi.call(this);return this.scanner.skipWS(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.eat(Xi),e=Qi.call(this),c.setPrototypeOf({type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:r,right:e},c.prototype)},generate:function(e){this.chunk(e.left),this.chunk("/"),this.chunk(e.right)}},c.prototype),es=(Ji.name,Ji.structure,Ji.parse,Ji.generate,He.TYPE),ts=No.mode,rs=es.LeftCurlyBracket;function ns(e){return this.Raw(e,ts.leftCurlyBracket,!0)}function os(){var e=this.SelectorList();return"Raw"!==e.type&&!1===this.scanner.eof&&this.scanner.tokenType!==rs&&this.error(),e}var as=c.setPrototypeOf({name:"Rule",structure:c.setPrototypeOf({prelude:l.of("SelectorList","Raw"),block:l.of("Block")},c.prototype),parse:function(){var e,t,r=this.scanner.tokenIndex,n=this.scanner.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(os,ns):ns.call(this,r),t=this.Block(!0),c.setPrototypeOf({type:"Rule",loc:this.getLocation(n,this.scanner.tokenStart),prelude:e,block:t},c.prototype)},generate:function(e){this.node(e.prelude),this.node(e.block)},walkContext:"rule"},c.prototype),is=(as.name,as.structure,as.parse,as.generate,as.walkContext,c.setPrototypeOf({name:"Selector",structure:c.setPrototypeOf({children:l.of(l.of("TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"))},c.prototype),parse:function(){var e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),c.setPrototypeOf({type:"Selector",loc:this.getLocationFromList(e),children:e},c.prototype)},generate:function(e){this.children(e)}},c.prototype)),ss=(is.name,is.structure,is.parse,is.generate,He.TYPE.Comma),ls=c.setPrototypeOf({name:"SelectorList",structure:c.setPrototypeOf({children:l.of(l.of("Selector","Raw"))},c.prototype),parse:function(){for(var e=this.createList();!this.scanner.eof&&(e.push(this.Selector()),this.scanner.tokenType===ss);)this.scanner.next();return c.setPrototypeOf({type:"SelectorList",loc:this.getLocationFromList(e),children:e},c.prototype)},generate:function(e){this.children(e,(function(){this.chunk(",")}))},walkContext:"selector"},c.prototype),cs=(ls.name,ls.structure,ls.parse,ls.generate,ls.walkContext,He.TYPE.String),us=c.setPrototypeOf({name:"String",structure:c.setPrototypeOf({value:String},c.prototype),parse:function(){return c.setPrototypeOf({type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(cs)},c.prototype)},generate:function(e){this.chunk(e.value)}},c.prototype),ps=(us.name,us.structure,us.parse,us.generate,He.TYPE),hs=ps.WhiteSpace,ds=ps.Comment,fs=ps.AtKeyword,ms=ps.CDO,gs=ps.CDC;function ys(e){return this.Raw(e,null,!1)}var bs=c.setPrototypeOf({name:"StyleSheet",structure:c.setPrototypeOf({children:l.of(l.of("Comment","CDO","CDC","Atrule","Rule","Raw"))},c.prototype),parse:function(){for(var e,t=this.scanner.tokenStart,r=this.createList();!this.scanner.eof;){switch(this.scanner.tokenType){case hs:this.scanner.next();continue;case ds:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}e=this.Comment();break;case ms:e=this.CDO();break;case gs:e=this.CDC();break;case fs:e=this.parseWithFallback(this.Atrule,ys);break;default:e=this.parseWithFallback(this.Rule,ys)}r.push(e)}return c.setPrototypeOf({type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:r},c.prototype)},generate:function(e){this.children(e)},walkContext:"stylesheet"},c.prototype),ks=(bs.name,bs.structure,bs.parse,bs.generate,bs.walkContext,He.TYPE.Ident);function vs(){this.scanner.tokenType!==ks&&!1===this.scanner.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var ws=c.setPrototypeOf({name:"TypeSelector",structure:c.setPrototypeOf({name:String},c.prototype),parse:function(){var e=this.scanner.tokenStart;return this.scanner.isDelim(124)?(this.scanner.next(),vs.call(this)):(vs.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),vs.call(this))),c.setPrototypeOf({type:"TypeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)},c.prototype)},generate:function(e){this.chunk(e.name)}},c.prototype),xs=(ws.name,ws.structure,ws.parse,ws.generate,He.isHexDigit),_s=He.cmpChar,Ps=He.TYPE,Ss=He.NAME,Os=Ps.Ident,Cs=Ps.Number,zs=Ps.Dimension;function Es(e,t){for(var r=this.scanner.tokenStart+e,n=0;r<this.scanner.tokenEnd;r++){var o=this.scanner.source.charCodeAt(r);if(45===o&&t&&0!==n)return 0===Es.call(this,e+n+1,!1)&&this.error(),-1;xs(o)||this.error(t&&0!==n?"HyphenMinus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.scanner.next(),n}function As(e){for(var t=0;this.scanner.isDelim(63);)++t>e&&this.error("Too many question marks"),this.scanner.next()}function Ts(e){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==e&&this.error(Ss[e]+" is expected")}function Ls(){var e=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===Os?void((e=Es.call(this,0,!0))>0&&As.call(this,6-e)):this.scanner.isDelim(63)?(this.scanner.next(),void As.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===Cs?(Ts.call(this,43),e=Es.call(this,1,!0),this.scanner.isDelim(63)?void As.call(this,6-e):this.scanner.tokenType===zs||this.scanner.tokenType===Cs?(Ts.call(this,45),void Es.call(this,1,!1)):void 0):this.scanner.tokenType===zs?(Ts.call(this,43),void((e=Es.call(this,1,!0))>0&&As.call(this,6-e))):void this.error()}var Rs,Ns=c.setPrototypeOf({name:"UnicodeRange",structure:c.setPrototypeOf({value:String},c.prototype),parse:function(){var e=this.scanner.tokenStart;return _s(this.scanner.source,e,117)||this.error("U is expected"),_s(this.scanner.source,e+1,43)||this.error("Plus sign is expected"),this.scanner.next(),Ls.call(this),c.setPrototypeOf({type:"UnicodeRange",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)},c.prototype)},generate:function(e){this.chunk(e.value)}},c.prototype),Ds=(Ns.name,Ns.structure,Ns.parse,Ns.generate,He.isWhiteSpace),Bs=He.cmpStr,Is=He.TYPE,Us=Is.Function,Ms=Is.Url,Fs=Is.RightParenthesis,js=c.setPrototypeOf({name:"Url",structure:c.setPrototypeOf({value:l.of("String","Raw")},c.prototype),parse:function(){var e,t=this.scanner.tokenStart;switch(this.scanner.tokenType){case Ms:for(var r=t+4,n=this.scanner.tokenEnd-1;r<n&&Ds(this.scanner.source.charCodeAt(r));)r++;for(;r<n&&Ds(this.scanner.source.charCodeAt(n-1));)n--;e=c.setPrototypeOf({type:"Raw",loc:this.getLocation(r,n),value:this.scanner.source.substring(r,n)},c.prototype),this.eat(Ms);break;case Us:Bs(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Us),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(Fs);break;default:this.error("Url or Function is expected")}return c.setPrototypeOf({type:"Url",loc:this.getLocation(t,this.scanner.tokenStart),value:e},c.prototype)},generate:function(e){this.chunk("url"),this.chunk("("),this.node(e.value),this.chunk(")")}},c.prototype),Ws=(js.name,js.structure,js.parse,js.generate,c.setPrototypeOf({name:"Value",structure:c.setPrototypeOf({children:l.of(l.of())},c.prototype),parse:function(){var e=this.scanner.tokenStart,t=this.readSequence(this.scope.Value);return c.setPrototypeOf({type:"Value",loc:this.getLocation(e,this.scanner.tokenStart),children:t},c.prototype)},generate:function(e){this.children(e)}},c.prototype)),Ys=(Ws.name,Ws.structure,Ws.parse,Ws.generate,He.TYPE.WhiteSpace),Zs=c.freeze(c.setPrototypeOf({type:"WhiteSpace",loc:null,value:" "},c.prototype)),Hs=c.setPrototypeOf({name:"WhiteSpace",structure:c.setPrototypeOf({value:String},c.prototype),parse:function(){return this.eat(Ys),Zs},generate:function(e){this.chunk(e.value)}},c.prototype),qs=(Hs.name,Hs.structure,Hs.parse,Hs.generate,c.setPrototypeOf({AnPlusB:Oo,Atrule:Yo,AtrulePrelude:Vo,AttributeSelector:ra,Block:ma,Brackets:ka,CDC:wa,CDO:_a,ClassSelector:Sa,Combinator:Ca,Comment:Ea,Declaration:ja,DeclarationList:Ga,Dimension:Ja,Function:ti,HexColor:ni,Identifier:ai,IdSelector:si,MediaFeature:gi,MediaQuery:xi,MediaQueryList:Pi,Nth:Si,Number:Ci,Operator:zi,Parentheses:Li,Percentage:Di,PseudoClassSelector:ji,PseudoElementSelector:Vi,Ratio:Ji,Raw:No,Rule:as,Selector:is,SelectorList:ls,String:us,StyleSheet:bs,TypeSelector:ws,UnicodeRange:Ns,Url:js,Value:Ws,WhiteSpace:Hs},c.prototype)),Vs=(qs.AnPlusB,qs.Atrule,qs.AtrulePrelude,qs.AttributeSelector,qs.Block,qs.Brackets,qs.CDC,qs.CDO,qs.ClassSelector,qs.Combinator,qs.Comment,qs.Declaration,qs.DeclarationList,qs.Dimension,qs.HexColor,qs.Identifier,qs.IdSelector,qs.MediaFeature,qs.MediaQuery,qs.MediaQueryList,qs.Nth,qs.Operator,qs.Parentheses,qs.Percentage,qs.PseudoClassSelector,qs.PseudoElementSelector,qs.Ratio,qs.Raw,qs.Rule,qs.Selector,qs.SelectorList,qs.StyleSheet,qs.TypeSelector,qs.UnicodeRange,qs.Url,qs.Value,qs.WhiteSpace,(Rs=ho)&&Rs.default||Rs),Ks=c.setPrototypeOf({generic:!0,types:Vs.types,atrules:Vs.atrules,properties:Vs.properties,node:qs},c.prototype),$s=(Ks.generic,Ks.types,Ks.atrules,Ks.properties,Ks.node,He.cmpChar),Gs=He.cmpStr,Xs=He.TYPE,Qs=Xs.Ident,Js=Xs.String,el=Xs.Number,tl=Xs.Function,rl=Xs.Url,nl=Xs.Hash,ol=Xs.Dimension,al=Xs.Percentage,il=Xs.LeftParenthesis,sl=Xs.LeftSquareBracket,ll=Xs.Comma,cl=Xs.Delim,ul=function(e){switch(this.scanner.tokenType){case nl:return this.HexColor();case ll:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case il:return this.Parentheses(this.readSequence,e.recognizer);case sl:return this.Brackets(this.readSequence,e.recognizer);case Js:return this.String();case ol:return this.Dimension();case al:return this.Percentage();case el:return this.Number();case tl:return Gs(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case rl:return this.Url();case Qs:return $s(this.scanner.source,this.scanner.tokenStart,117)&&$s(this.scanner.source,this.scanner.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case cl: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)}},pl=c.setPrototypeOf({getNode:ul},c.prototype),hl=(pl.getNode,He.TYPE),dl=hl.Delim,fl=hl.Ident,ml=hl.Dimension,gl=hl.Percentage,yl=hl.Number,bl=hl.Hash,kl=hl.Colon,vl=hl.LeftSquareBracket;var wl=c.setPrototypeOf({getNode:function(e){switch(this.scanner.tokenType){case vl:return this.AttributeSelector();case bl:return this.IdSelector();case kl:return this.scanner.lookupType(1)===kl?this.PseudoElementSelector():this.PseudoClassSelector();case fl:return this.TypeSelector();case yl:case gl:return this.Percentage();case ml:46===this.scanner.source.charCodeAt(this.scanner.tokenStart)&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case dl:switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 43:case 62:case 126:return e.space=null,e.ignoreWSAfter=!0,this.Combinator();case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector()}}}},c.prototype),xl=(wl.getNode,function(){this.scanner.skipSC();var e=this.createSingleNodeList(this.IdSelector());return this.scanner.skipSC(),e}),_l=He.TYPE,Pl=No.mode,Sl=_l.Comma,Ol=c.setPrototypeOf({getNode:ul,"-moz-element":xl,element:xl,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===Sl&&(e.push(this.Operator()),e.push(this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,Pl.exclamationMarkOrSemicolon,!1))),e}},c.prototype),Cl=(Ol.getNode,c.setPrototypeOf({AtrulePrelude:pl,Selector:wl,Value:Ol},c.prototype)),zl=(Cl.AtrulePrelude,Cl.Selector,Cl.Value,c.setPrototypeOf({parse:c.setPrototypeOf({prelude:null,block:function(){return this.Block(!0)}},c.prototype)},c.prototype)),El=(zl.parse,He.TYPE),Al=El.String,Tl=El.Ident,Ll=El.Url,Rl=El.Function,Nl=El.LeftParenthesis,Dl=c.setPrototypeOf({parse:c.setPrototypeOf({prelude:function(){var e=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case Al:e.push(this.String());break;case Ll:case Rl:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.lookupNonWSType(0)!==Tl&&this.lookupNonWSType(0)!==Nl||(e.push(this.WhiteSpace()),e.push(this.MediaQueryList())),e},block:null},c.prototype)},c.prototype),Bl=(Dl.parse,c.setPrototypeOf({parse:c.setPrototypeOf({prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}},c.prototype)},c.prototype)),Il=(Bl.parse,c.setPrototypeOf({parse:c.setPrototypeOf({prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}},c.prototype)},c.prototype)),Ul=(Il.parse,He.TYPE),Ml=Ul.WhiteSpace,Fl=Ul.Comment,jl=Ul.Ident,Wl=Ul.Function,Yl=Ul.Colon,Zl=Ul.LeftParenthesis;function Hl(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function ql(){return this.scanner.skipSC(),this.scanner.tokenType===jl&&this.lookupNonWSType(1)===Yl?this.createSingleNodeList(this.Declaration()):Vl.call(this)}function Vl(){var e,t=this.createList(),r=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case Ml:r=this.WhiteSpace();continue;case Fl:this.scanner.next();continue;case Wl:e=this.Function(Hl,this.scope.AtrulePrelude);break;case jl:e=this.Identifier();break;case Zl:e=this.Parentheses(ql,this.scope.AtrulePrelude);break;default:break e}null!==r&&(t.push(r),r=null),t.push(e)}return t}var Kl=c.setPrototypeOf({parse:c.setPrototypeOf({prelude:function(){var e=Vl.call(this);return null===this.getFirstListNode(e)&&this.error("Condition is expected"),e},block:function(){return this.Block(!1)}},c.prototype)},c.prototype),$l=(Kl.parse,c.setPrototypeOf({"font-face":zl,import:Dl,media:Bl,page:Il,supports:Kl},c.prototype)),Gl=c.setPrototypeOf({parse:function(){return this.createSingleNodeList(this.Identifier())}},c.prototype),Xl=(Gl.parse,c.setPrototypeOf({parse:function(){return this.createSingleNodeList(this.SelectorList())}},c.prototype)),Ql=(Xl.parse,c.setPrototypeOf({parse:function(){return this.createSingleNodeList(this.Identifier())}},c.prototype)),Jl=(Ql.parse,c.setPrototypeOf({parse:function(){return this.createSingleNodeList(this.SelectorList())}},c.prototype)),ec=(Jl.parse,Jl),tc=Jl,rc=c.setPrototypeOf({parse:function(){return this.createSingleNodeList(this.Nth(!0))}},c.prototype),nc=(rc.parse,rc),oc=rc,ac=c.setPrototypeOf({parse:function(){return this.createSingleNodeList(this.Nth(!1))}},c.prototype),ic=(ac.parse,ac),sc=ac,lc=c.setPrototypeOf({parse:function(){return this.createSingleNodeList(this.Selector())}},c.prototype),cc=(lc.parse,c.setPrototypeOf({dir:Gl,has:Xl,lang:Ql,matches:ec,not:tc,"nth-child":nc,"nth-last-child":oc,"nth-last-of-type":ic,"nth-of-type":sc,slotted:lc},c.prototype)),uc=c.setPrototypeOf({parseContext:c.setPrototypeOf({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"},c.prototype),scope:Cl,atrule:$l,pseudo:cc,node:qs},c.prototype),pc=(uc.parseContext,uc.scope,uc.atrule,uc.pseudo,uc.node,c.setPrototypeOf({node:qs},c.prototype));pc.node;var hc=lo.create(function(){for(var e=c.setPrototypeOf({},c.prototype),t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}(Ks,uc,pc));const dc=new i(l.of(l.of("background",new s(l.of("background-color","background-position","background-position-x","background-position-y","background-size","background-repeat","background-repeat-x","background-repeat-y","background-clip","background-origin","background-attachment","background-image"))),l.of("background-position",new s(l.of("background-position-x","background-position-y"))),l.of("background-repeat",new s(l.of("background-repeat-x","background-repeat-y"))),l.of("font",new s(l.of("font-style","font-variant-caps","font-weight","font-stretch","font-size","line-height","font-family","font-size-adjust","font-kerning","font-optical-sizing","font-variant-alternates","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-language-override","font-feature-settings","font-variation-settings"))),l.of("font-variant",new s(l.of("font-variant-caps","font-variant-numeric","font-variant-alternates","font-variant-ligatures","font-variant-east-asian"))),l.of("outline",new s(l.of("outline-width","outline-style","outline-color"))),l.of("border",new s(l.of("border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"))),l.of("border-width",new s(l.of("border-top-width","border-right-width","border-bottom-width","border-left-width"))),l.of("border-style",new s(l.of("border-top-style","border-right-style","border-bottom-style","border-left-style"))),l.of("border-color",new s(l.of("border-top-color","border-right-color","border-bottom-color","border-left-color"))),l.of("border-block",new s(l.of("border-block-start-width","border-block-end-width","border-block-start-style","border-block-end-style","border-block-start-color","border-block-end-color"))),l.of("border-block-start",new s(l.of("border-block-start-width","border-block-start-style","border-block-start-color"))),l.of("border-block-end",new s(l.of("border-block-end-width","border-block-end-style","border-block-end-color"))),l.of("border-inline",new s(l.of("border-inline-start-width","border-inline-end-width","border-inline-start-style","border-inline-end-style","border-inline-start-color","border-inline-end-color"))),l.of("border-inline-start",new s(l.of("border-inline-start-width","border-inline-start-style","border-inline-start-color"))),l.of("border-inline-end",new s(l.of("border-inline-end-width","border-inline-end-style","border-inline-end-color"))),l.of("border-image",new s(l.of("border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"))),l.of("border-radius",new s(l.of("border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"))),l.of("padding",new s(l.of("padding-top","padding-right","padding-bottom","padding-left"))),l.of("padding-block",new s(l.of("padding-block-start","padding-block-end"))),l.of("padding-inline",new s(l.of("padding-inline-start","padding-inline-end"))),l.of("margin",new s(l.of("margin-top","margin-right","margin-bottom","margin-left"))),l.of("margin-block",new s(l.of("margin-block-start","margin-block-end"))),l.of("margin-inline",new s(l.of("margin-inline-start","margin-inline-end"))),l.of("inset",new s(l.of("top","right","bottom","left"))),l.of("inset-block",new s(l.of("inset-block-start","inset-block-end"))),l.of("inset-inline",new s(l.of("inset-inline-start","inset-inline-end"))),l.of("flex",new s(l.of("flex-grow","flex-shrink","flex-basis"))),l.of("flex-flow",new s(l.of("flex-direction","flex-wrap"))),l.of("gap",new s(l.of("row-gap","column-gap"))),l.of("transition",new s(l.of("transition-duration","transition-timing-function","transition-delay","transition-property"))),l.of("grid",new s(l.of("grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-flow","grid-auto-columns","grid-auto-rows"))),l.of("grid-template",new s(l.of("grid-template-rows","grid-template-columns","grid-template-areas"))),l.of("grid-row",new s(l.of("grid-row-start","grid-row-end"))),l.of("grid-column",new s(l.of("grid-column-start","grid-column-end"))),l.of("grid-gap",new s(l.of("grid-row-gap","grid-column-gap"))),l.of("place-content",new s(l.of("align-content","justify-content"))),l.of("place-items",new s(l.of("align-items","justify-items"))),l.of("place-self",new s(l.of("align-self","justify-self"))),l.of("columns",new s(l.of("column-width","column-count"))),l.of("column-rule",new s(l.of("column-rule-width","column-rule-style","column-rule-color"))),l.of("list-style",new s(l.of("list-style-type","list-style-position","list-style-image"))),l.of("offset",new s(l.of("offset-position","offset-path","offset-distance","offset-rotate","offset-anchor"))),l.of("overflow",new s(l.of("overflow-x","overflow-y"))),l.of("overscroll-behavior",new s(l.of("overscroll-behavior-x","overscroll-behavior-y"))),l.of("scroll-margin",new s(l.of("scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left"))),l.of("scroll-padding",new s(l.of("scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left"))),l.of("text-decoration",new s(l.of("text-decoration-line","text-decoration-style","text-decoration-color"))),l.of("text-stroke",new s(l.of("text-stroke-color","text-stroke-width"))),l.of("animation",new s(l.of("animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name"))),l.of("mask",new s(l.of("mask-image","mask-mode","mask-repeat-x","mask-repeat-y","mask-position-x","mask-position-y","mask-clip","mask-origin","mask-size","mask-composite"))),l.of("mask-repeat",new s(l.of("mask-repeat-x","mask-repeat-y"))),l.of("mask-position",new s(l.of("mask-position-x","mask-position-y"))),l.of("perspective-origin",new s(l.of("perspective-origin-x","perspective-origin-y"))),l.of("transform-origin",new s(l.of("transform-origin-x","transform-origin-y","transform-origin-z"))))),fc=new i(l.of(bc("animation","moz"),bc("border-image","moz"),bc("mask","moz"),bc("transition","moz"),bc("columns","moz"),bc("text-stroke","moz"),bc("column-rule","moz"),l.of("-moz-border-end",new s(l.of("-moz-border-end-color","-moz-border-end-style","-moz-border-end-width"))),l.of("-moz-border-start",new s(l.of("-moz-border-start-color","-moz-border-start-style","-moz-border-start-width"))),l.of("-moz-outline-radius",new s(l.of("-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"))))),mc=new i(l.of(bc("animation","webkit"),bc("border-radius","webkit"),bc("column-rule","webkit"),bc("columns","webkit"),bc("flex","webkit"),bc("flex-flow","webkit"),bc("mask","webkit"),bc("text-stroke","webkit"),bc("perspective-origin","webkit"),bc("transform-origin","webkit"),bc("transition","webkit"),l.of("-webkit-border-start",new s(l.of("-webkit-border-start-color","-webkit-border-start-style","-webkit-border-start-width"))),l.of("-webkit-border-before",new s(l.of("-webkit-border-before-color","-webkit-border-before-style","-webkit-border-before-width"))),l.of("-webkit-border-end",new s(l.of("-webkit-border-end-color","-webkit-border-end-style","-webkit-border-end-width"))),l.of("-webkit-border-after",new s(l.of("-webkit-border-after-color","-webkit-border-after-style","-webkit-border-after-width"))))),gc=l.of("background-position","background-repeat","text-decoration");fc.forEach((e,t)=>dc.set(t,e)),mc.forEach((e,t)=>dc.set(t,e));const yc=new i;function bc(e,t){const r=dc.get(e);if(r)return l.of(`-${t}-${e}`,new s(l.from(r,e=>`-${t}-${e}`)))}function kc(e,t){const r=dc.get(e);return!!r&&r.has(t)}dc.forEach((e,t)=>{e.forEach(e=>{yc.get(e)||yc.set(e,new s),yc.get(e).add(t)})});var vc=kc,wc=function(e){return yc.has(e)},xc=function(e,t){return t.some(t=>kc(t,e))},_c=function(e){return yc.get(e)},Pc=function(e){return gc.find(t=>dc.get(t).has(e))},Sc=c.setPrototypeOf({isShorthandFor:vc,hasShorthand:wc,hasShorthandWithin:xc,getShorthands:_c,preferredShorthand:Pc},c.prototype);const{preferredShorthand:Oc,getShorthands:Cc}=Sc,zc=c.setPrototypeOf({UNKNOWN_RULE:0,STYLE_RULE:1,CHARSET_RULE:2,IMPORT_RULE:3,MEDIA_RULE:4,FONT_FACE_RULE:5,PAGE_RULE:6,KEYFRAMES_RULE:7,KEYFRAME_RULE:8,NAMESPACE_RULE:10,COUNTER_STYLE_RULE:11,SUPPORTS_RULE:12,DOCUMENT_RULE:13,FONT_FEATURE_VALUES_RULE:14,VIEWPORT_RULE:15,REGION_STYLE_RULE:16},c.prototype),Ec=c.setPrototypeOf({[zc.CHARSET_RULE]:c.setPrototypeOf({atrule:"charset",prelude:"charset"},c.prototype),[zc.IMPORT_RULE]:c.setPrototypeOf({atrule:"import",prelude:"import"},c.prototype),[zc.NAMESPACE_RULE]:c.setPrototypeOf({atrule:"namespace",prelude:"namespace"},c.prototype),[zc.STYLE_RULE]:c.setPrototypeOf({prelude:"selector",block:"style"},c.prototype),[zc.KEYFRAME_RULE]:c.setPrototypeOf({prelude:"key",block:"style"},c.prototype),[zc.PAGE_RULE]:c.setPrototypeOf({atrule:"page",prelude:"selector",block:"style"},c.prototype),[zc.FONT_FACE_RULE]:c.setPrototypeOf({atrule:"font-face",block:"style"},c.prototype),[zc.MEDIA_RULE]:c.setPrototypeOf({atrule:"media",prelude:"condition",block:"nested"},c.prototype),[zc.SUPPORTS_RULE]:c.setPrototypeOf({atrule:"supports",prelude:"condition",block:"nested"},c.prototype),[zc.DOCUMENT_RULE]:c.setPrototypeOf({atrule:"document",prelude:"condition",block:"nested"},c.prototype),[zc.KEYFRAMES_RULE]:c.setPrototypeOf({atrule:"keyframes",prelude:"name",block:"nested"},c.prototype)},c.prototype);function Ac(e,t){return c.setPrototypeOf({type:"Declaration",important:Boolean(e.style.getPropertyPriority(t)),property:t,value:c.setPrototypeOf({type:"Raw",value:e.style.getPropertyValue(t)},c.prototype)},c.prototype)}var Tc=function e(t){return l.from(t,t=>{const r=Ec[t.type],n=c.setPrototypeOf({},c.prototype);if(r.atrule){n.type="Atrule";const[e,o]=t.cssText.match(new RegExp("^@(-\\w+-)?"+r.atrule));n.name=o?o+r.atrule:r.atrule}else n.type="Rule";let o;if("selector"===r.prelude?o=t.selectorText:"key"===r.prelude?o=t.keyText:"condition"===r.prelude?o=t.conditionText:"name"===r.prelude?o=t.name:"import"===r.prelude?o=`url("${t.href}") ${t.media.mediaText}`:"namespace"===r.prelude?o=`${t.prefix} url("${t.namespaceURI}")`:"charset"===r.prelude&&(o=`"${t.encoding}"`),o){const e=r.atrule?c.setPrototypeOf({context:"atrulePrelude",atrule:r.atrule},c.prototype):c.setPrototypeOf({context:"selectorList"},c.prototype);n.prelude=hc.toPlainObject(hc.parse(o,e))}else n.prelude=null;if("style"===r.block){const e=new s,r=l.from(t.style).reduce((r,n)=>{const o=Oc(n)||n;r.set(o,Ac(t,o));const a=Cc(n);return a&&a.forEach(t=>e.add(t)),r},new i);e.forEach(e=>{t.style.getPropertyValue(e)&&r.set(e,Ac(t,e))}),n.block=c.setPrototypeOf({type:"Block",children:l.from(r.values())},c.prototype)}else"nested"===r.block?n.block=c.setPrototypeOf({type:"Block",children:e(t.cssRules)},c.prototype):n.block=null;return n})};var Lc=function(e){const t=hc.parse(e,c.setPrototypeOf({context:"stylesheet",parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!1,parseCustomProperty:!1},c.prototype));return hc.walk(t,c.setPrototypeOf({visit:"TypeSelector",enter(e,t){"from"===e.name?t.data=c.setPrototypeOf({type:"Percentage",value:"0"},c.prototype):"to"===e.name&&(t.data=c.setPrototypeOf({type:"Percentage",value:"100"},c.prototype))}},c.prototype)),hc.walk(t,c.setPrototypeOf({visit:"AtrulePrelude",enter(e){if(l.of("import","namespace").includes(this.atrule.name)){const t=e.children.toArray(),r="import"===e.name?0:t.length-1,n=t[r];let o;"String"===n.type?o=n.value.slice(1,-1):"Url"===n.type&&("String"===n.value.type?o=n.value.value.slice(1,-1):"Raw"===n.value.type&&(o=n.value.value)),o&&(t[r]=c.setPrototypeOf({type:"Url",value:c.setPrototypeOf({type:"String",value:`"${o}"`},c.prototype)},c.prototype),e.children.fromArray(t))}}},c.prototype)),hc.toPlainObject(t)};const{isShorthandFor:Rc,hasShorthandWithin:Nc}=Sc,Dc=c.setPrototypeOf({"word-wrap":"overflow-wrap",clip:"clip-path"},c.prototype);function Bc(e,t){const r=new i;e.forEach(({type:e,property:t,important:n,value:{value:o}=c.setPrototypeOf({},c.prototype)})=>{if("Declaration"!==e)return;let a=r.get(t);a||(a=new i,r.set(t,a)),a.set(o,n)}),t.forEach(({type:e,property:t,important:n,value:{value:o}=c.setPrototypeOf({},c.prototype)})=>{if("Declaration"!==e)return;if(Nc(t,l.from(r.keys())))return;let a=r.get(t);a?a.has(o)?a.get(o)!==n&&a.forEach((e,t)=>a.set(t,n)):a.clear():(a=new i,r.set(t,a)),a.set(o,n)});const n=l.of();return r.forEach((e,t)=>{e.forEach((e,r)=>n.push(c.setPrototypeOf({type:"Declaration",property:t,value:c.setPrototypeOf({type:"Raw",value:r},c.prototype),important:e},c.prototype)))}),n}function Ic(e){return"Rule"===e.type||/^(-\w+-)?(page|font-face)$/.test(e.name)}function Uc(e,t,r,n){for(let o=t;o<r;++o)n(e[o],o,e)}var Mc=function e(t,r){let n=0;const o=l.of();return t.forEach(t=>{const a=c.setPrototypeOf({},c.prototype);a.type=t.type,a.name=t.name,a.prelude=t.prelude,a.block=t.block;const i=function(e,t,r){return function(e,t,r){for(let n=t;n<e.length;++n)if(r(e[n],n,e))return n;return-1}(e,t,e=>{return e.type===r.type&&e.name===r.name&&(o=e.prelude,a=r.prelude,!o&&!a||o.type===a.type&&function e(t,r){return!l.isArray(t)&&!l.isArray(r)||l.isArray(t)&&l.isArray(r)&&t.length===r.length&&t.every((t,n)=>{const o=r[n];return t.type===o.type&&t.name===o.name&&(t.value===o.value||t.value.type===o.value.type&&t.value.value===o.value.value)&&e(t.children,o.children)})}(o.children,a.children))&&(!Ic(r)||(t=e.block.children,(n=r.block.children).reduce((e,r)=>{var n;return e+("Declaration"===r.type&&(n=r.property,/^(-\w+-)/.test(n)||t.some(e=>function(e,t){const r=Dc[e]||e,n=Dc[t]||t;return r===n||Rc(n,r)||Rc(r,n)}(e.property,r.property)))?1:0)},0)>=n.length));var t,n,o,a})}(r,n,t);i>n&&Uc(r,n,i,e=>o.push(e)),i>=0&&(n=i+1,!function(e){return"Atrule"===e.type&&/^(-\w+-)?(media|supports|document|keyframes)$/.test(e.name)}(t)?Ic(t)&&(a.block=c.setPrototypeOf({type:"Block",children:Bc(t.block.children,r[i].block.children)},c.prototype)):a.block=c.setPrototypeOf({type:"Block",children:e(t.block.children,r[i].block.children)},c.prototype)),o.push(a)},l.of()),n<r.length&&Uc(r,n,r.length,e=>o.push(e)),o},Fc=()=>{};var jc=function(e){const t=l.from(e.attributes).map(t=>"id"===t.name?"#"+t.value:"class"===t.name?l.from(e.classList).map(e=>"."+e).join(""):`[${t.name}="${t.value}"]`).join("");return`${e.nodeName}${t}`};var Wc=function(e,t=Fc){t("[processInlineCss] processing inline css for",jc(e));try{const r=Lc(e.textContent);t("[processInlineCss] created AST for textContent");const n=Tc(e.sheet.cssRules);t("[processInlineCss] created AST for CSSOM");const o=Mc(r.children,n);t("[processInlineCss] merged AST");const a=hc.generate(hc.fromPlainObject(c.setPrototypeOf({type:"StyleSheet",children:o},c.prototype)));return t("[processInlineCss] generated cssText of length",a.length),a}catch(r){return t("[processInlineCss] error while processing inline css:",r.message,r),e.textContent}};var Yc=function(e){const t=/url\((?!['"]?:)['"]?([^'")]*)['"]?\)/g,r=l.of();let n;for(;null!==(n=t.exec(e));)r.push(n[1]);return r};var Zc=function(e){let t=l.of();for(let r=0,n=e.length;r<n;r++){const n=e[r];let o=e.getPropertyValue(n);(/^\s*var\s*\(/.test(o)||/^--/.test(n))&&(o=o.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,e=>String.fromCodePoint(parseInt(e.substr(1).trim(),16))).replace(/\\([^0-9a-fA-F])/g,"$1"));const a=Yc(o);t=t.concat(a)}return t};var Hc=function(e){if(e.hasAttribute("style"))return Zc(e.style)};const qc=/(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;var Vc=function(e){const t=(e.matches||e.msMatchesSelector).bind(e);let r=l.of();if(t("img[srcset],source[srcset]")&&(r=r.concat(function(e,t,r){const n=l.of(),o=new RegExp(e.source,e.flags),a=o.global;let i;for(;(i=o.exec(t))&&(n.push(r(i)),a););return n}(qc,e.getAttribute("srcset"),e=>e[1]))),t('img[src],source[src],input[type="image"][src],audio[src],video[src]')&&r.push(e.getAttribute("src")),t("image,use")){const t=e.getAttribute("href")||e.getAttribute("xlink:href");t&&"#"!==t[0]&&r.push(t)}t("object")&&e.getAttribute("data")&&r.push(e.getAttribute("data")),t('link[rel~="stylesheet"], link[as="stylesheet"]')&&r.push(e.getAttribute("href")),t("video[poster]")&&r.push(e.getAttribute("poster"));const n=Hc(e);return n&&(r=r.concat(n)),r};var Kc=function(e){const t=Tc(e.cssRules);return hc.generate(hc.fromPlainObject(c.setPrototypeOf({type:"StyleSheet",children:t},c.prototype)))};var $c=function(e){const{display:t}=e.ownerDocument.defaultView.getComputedStyle(e),{width:r,height:n}=e.getBoundingClientRect();return"none"===t||0===r||0===n};const{elementConstructors:Gc}=h,Xc=Symbol("raw");function Qc(e){const t=function(e){if(!Gc.Node)return null;const{toString:t}=Gc.Node.prototype,r=t.apply(e).replace(/\[object (.*)]/,"$1");return Gc[r]}(e);return t?(r=e,n=t.prototype,new Proxy(c.create(r),c.setPrototypeOf({get(e,t,o){if(t===Xc)return r;const a=Reflect.get(n,t,r);return"function"==typeof a?function(){return a.apply(this===o?r:this,arguments)}:a}},c.prototype))):e;var r,n}Qc.unwrap=function(e){return e[Xc]||e};var Jc=Qc;const{absolutizeUrl:eu,isInlineFrame:tu,isAccessibleFrame:ru}=w,nu=new s(l.of("date","datetime-local","email","month","number","password","search","tel","text","time","url","week")),ou=/^on[a-z]+$/;function au({attributes:e=c.setPrototypeOf({},c.prototype)}){return c.keys(e).filter(t=>e[t]&&e[t].name)}function iu(e,t,r){const n=e.find(e=>e.name===t);n?n.value=r:e.push(c.setPrototypeOf({name:t,value:r},c.prototype))}function su(e){return l.from(e.adoptedStyleSheets).map(Kc)}var lu=function(e,t,r=Fc){const n=l.of(c.setPrototypeOf({nodeType:Node.DOCUMENT_NODE},c.prototype)),o=l.of(e),a=l.of(),i=l.of(),s=l.of(),u=l.of();let p=l.of();const h=l.of();return n[0].childNodeIndexes=d(n,e.childNodes),e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&(n[0].exp_adoptedStyleSheets=su(e)),c.setPrototypeOf({cdt:n,docRoots:o,canvasElements:a,frames:s,inlineFrames:i,crossFrames:u,linkUrls:p,imageBlobs:h},c.prototype);function d(e,n){if(!n||0===n.length)return null;const f=l.of();return l.prototype.forEach.call(n,n=>{const m=function e(n,f){const m=Jc(f);let g,y;const{nodeType:b}=m;if(l.of(Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE).includes(b))if("SCRIPT"!==m.nodeName){if("STYLE"===m.nodeName&&m.sheet&&m.sheet.cssRules.length&&(n.push(function(e,t){return c.setPrototypeOf({nodeType:Node.TEXT_NODE,nodeValue:Wc(e,t)},c.prototype)}(m,r)),y=l.of(n.length-1)),"TEXTAREA"===m.tagName&&m.value!==m.textContent&&(n.push(function(e){return c.setPrototypeOf({nodeType:Node.TEXT_NODE,nodeValue:e.value},c.prototype)}(m)),y=l.of(n.length-1)),g=function(e){const t=c.setPrototypeOf({nodeType:e.nodeType,nodeName:e.nodeName,attributes:au(e).map(t=>{let r=e.attributes[t].value;const n=e.attributes[t].name;return/^blob:/.test(r)?r=r.replace(/^blob:/,""):ou.test(n)?r="":"IFRAME"===e.nodeName&&ru(e)&&"src"===n&&"about:blank"!==e.contentDocument.location.href&&e.contentDocument.location.href!==eu(r,e.ownerDocument.location.href)&&(r=e.contentDocument.location.href),c.setPrototypeOf({name:n,value:r},c.prototype)})},c.prototype);if("INPUT"===e.tagName&&l.of("checkbox","radio").includes(e.type)){if(e.attributes.checked&&!e.checked){const e=t.attributes.findIndex(e=>"checked"===e.name);t.attributes.splice(e,1)}!e.attributes.checked&&e.checked&&t.attributes.push(c.setPrototypeOf({name:"checked"},c.prototype)),e.indeterminate&&t.attributes.push(c.setPrototypeOf({name:"data-applitools-js-properties",value:JSON.stringify(c.setPrototypeOf({indeterminate:!0},c.prototype))},c.prototype))}"INPUT"===e.tagName&&nu.has(e.type)&&(e.attributes.value&&e.attributes.value.value)!==e.value&&iu(t.attributes,"value",e.value);"OPTION"===e.tagName&&e.parentElement.selectedOptions&&l.from(e.parentElement.selectedOptions).indexOf(Jc.unwrap(e))>-1&&iu(t.attributes,"selected","");"STYLE"===e.tagName&&e.sheet&&e.sheet.disabled&&t.attributes.push(c.setPrototypeOf({name:"data-applitools-disabled",value:""},c.prototype));"LINK"===e.tagName&&"text/css"===e.type&&e.sheet&&e.sheet.disabled&&iu(t.attributes,"disabled","");return t}(m),g.childNodeIndexes=y||(m.childNodes.length?d(n,m.childNodes):l.of()),m.shadowRoot&&(g.shadowRootIndex=e(n,m.shadowRoot),o.push(m.shadowRoot)),"CANVAS"===m.nodeName){const e=eu(`applitools-canvas-${_()}.png`,t);g.attributes.push(c.setPrototypeOf({name:"data-applitools-src",value:e},c.prototype)),a.push(c.setPrototypeOf({element:m,url:e},c.prototype))}if("IFRAME"===m.nodeName)if($c(f))g.attributes.forEach(e=>{"src"!==e.name&&"srcdoc"!==e.name||(g.attributes.push(c.setPrototypeOf({name:"data-applitools-original-"+e.name,value:e.value},c.prototype)),e.value="")});else{const e=_();if(m.setAttribute("data-applitools-selector",e),ru(f))if(tu(m)){const e=eu("?applitools-iframe="+_(),t);g.attributes.push(c.setPrototypeOf({name:"data-applitools-src",value:e},c.prototype)),i.push(c.setPrototypeOf({element:m,url:e},c.prototype))}else{const e=m.contentDocument.location.href,t=eu("?applitools-iframe="+_(),e);g.attributes.push(c.setPrototypeOf({name:"data-applitools-src",value:t},c.prototype)),s.push(c.setPrototypeOf({element:m,url:t},c.prototype))}else{const t=`[data-applitools-selector="${e}"]`;u.push(c.setPrototypeOf({selector:t,index:n.length},c.prototype))}}m.adoptedStyleSheets&&m.adoptedStyleSheets.length>0&&(g.exp_adoptedStyleSheets=su(m))}else g=function(e){return c.setPrototypeOf({nodeType:Node.ELEMENT_NODE,nodeName:"SCRIPT",attributes:au(e).map(t=>{const r=e.attributes[t].name,n=ou.test(r)?"":e.attributes[t].value;return c.setPrototypeOf({name:r,value:n},c.prototype)}).filter(e=>"src"!==e.name),childNodeIndexes:l.of()},c.prototype)}(m);else b===Node.TEXT_NODE?g=function(e){return c.setPrototypeOf({nodeType:Node.TEXT_NODE,nodeValue:e.nodeValue},c.prototype)}(m):b===Node.DOCUMENT_TYPE_NODE&&(g=function(e){return c.setPrototypeOf({nodeType:Node.DOCUMENT_TYPE_NODE,nodeName:e.nodeName},c.prototype)}(m));if(g){if(b===Node.ELEMENT_NODE){const e=Vc(m);e.length>0&&(p=p.concat(e));const t=function(e){if("IMG"===e.tagName&&/^blob:/.test(e.src))return c.setPrototypeOf({element:e,url:e.src.replace(/^blob:/,"")},c.prototype);return null}(m);t&&h.push(t)}return n.push(g),n.length-1}return null}(e,n);null!==m&&f.push(m)}),f}};var cu=function(e){const t=l.of();return new s(e).forEach(e=>e&&t.push(e)),t};var uu=function(e){return e.reduce(({resourceUrls:e,blobsObj:t},{resourceUrls:r,blobsObj:n})=>c.setPrototypeOf({resourceUrls:cu(e.concat(r)),blobsObj:c.assign(t,n)},c.prototype),c.setPrototypeOf({resourceUrls:l.of(),blobsObj:c.setPrototypeOf({},c.prototype)},c.prototype))};var pu=function({processResource:e,aggregateResourceUrlsAndBlobs:t}){return function r({documents:n,urls:o,forceCreateStyle:a=!1,skipResources:i}){return u.all(o.map(t=>e(c.setPrototypeOf({url:t,documents:n,getResourceUrlsAndBlobs:r,forceCreateStyle:a,skipResources:i},c.prototype)))).then(e=>t(e))}},hu=Cn((function(e,t){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return c.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=l.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var o in r)n(r,o)&&(e[o]=r[o])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o=c.setPrototypeOf({arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),o);else for(var a=0;a<n;a++)e[o+a]=t[r+a]},flattenChunks:function(e){var t,r,n,o,a,i;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(i=new Uint8Array(n),o=0,t=0,r=e.length;t<r;t++)a=e[t],i.set(a,o),o+=a.length;return i}},c.prototype),a=c.setPrototypeOf({arraySet:function(e,t,r,n,o){for(var a=0;a<n;a++)e[o+a]=t[r+a]},flattenChunks:function(e){return l.of().concat.apply(l.of(),e)}},c.prototype);t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,o)):(t.Buf8=l,t.Buf16=l,t.Buf32=l,t.assign(t,a))},t.setTyped(r)}));hu.assign,hu.shrinkBuf,hu.setTyped,hu.Buf8,hu.Buf16,hu.Buf32;function du(e){for(var t=e.length;--t>=0;)e[t]=0}var fu=l.of(0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0),mu=l.of(0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13),gu=l.of(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7),yu=l.of(16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15),bu=new l(576);du(bu);var ku=new l(60);du(ku);var vu=new l(512);du(vu);var wu=new l(256);du(wu);var xu=new l(29);du(xu);var _u,Pu,Su,Ou=new l(30);function Cu(e,t,r,n,o){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=e&&e.length}function zu(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Eu(e){return e<256?vu[e]:vu[256+(e>>>7)]}function Au(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Tu(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,Au(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Lu(e,t,r){Tu(e,r[2*t],r[2*t+1])}function Ru(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function Nu(e,t,r){var n,o,a=new l(16),i=0;for(n=1;n<=15;n++)a[n]=i=i+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=Ru(a[s]++,s))}}function Du(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Bu(e){e.bi_valid>8?Au(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Iu(e,t,r,n){var o=2*t,a=2*r;return e[o]<e[a]||e[o]===e[a]&&n[t]<=n[r]}function Uu(e,t,r){for(var n=e.heap[r],o=r<<1;o<=e.heap_len&&(o<e.heap_len&&Iu(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!Iu(t,n,e.heap[o],e.depth));)e.heap[r]=e.heap[o],r=o,o<<=1;e.heap[r]=n}function Mu(e,t,r){var n,o,a,i,s=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===n?Lu(e,o,t):(Lu(e,(a=wu[o])+256+1,t),0!==(i=fu[a])&&Tu(e,o-=xu[a],i),Lu(e,a=Eu(--n),r),0!==(i=mu[a])&&Tu(e,n-=Ou[a],i))}while(s<e.last_lit);Lu(e,256,t)}function Fu(e,t){var r,n,o,a=t.dyn_tree,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=i[2*o+1]);for(t.max_code=c,r=e.heap_len>>1;r>=1;r--)Uu(e,a,r);o=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Uu(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*o]=a[2*r]+a[2*n],e.depth[o]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=o,e.heap[1]=o++,Uu(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,o,a,i,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,p=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,f=t.stat_desc.max_length,m=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(a=l[2*l[2*(n=e.heap[r])+1]+1]+1)>f&&(a=f,m++),l[2*n+1]=a,n>c||(e.bl_count[a]++,i=0,n>=d&&(i=h[n-d]),s=l[2*n],e.opt_len+=s*(a+i),p&&(e.static_len+=s*(u[2*n+1]+i)));if(0!==m){do{for(a=f-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[f]--,m-=2}while(m>0);for(a=f;0!==a;a--)for(n=e.bl_count[a];0!==n;)(o=e.heap[--r])>c||(l[2*o+1]!==a&&(e.opt_len+=(a-l[2*o+1])*l[2*o],l[2*o+1]=a),n--)}}(e,t),Nu(a,c,e.bl_count)}function ju(e,t,r){var n,o,a=-1,i=t[1],s=0,l=7,c=4;for(0===i&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)o=i,i=t[2*(n+1)+1],++s<l&&o===i||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==a&&e.bl_tree[2*o]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=o,0===i?(l=138,c=3):o===i?(l=6,c=3):(l=7,c=4))}function Wu(e,t,r){var n,o,a=-1,i=t[1],s=0,l=7,c=4;for(0===i&&(l=138,c=3),n=0;n<=r;n++)if(o=i,i=t[2*(n+1)+1],!(++s<l&&o===i)){if(s<c)do{Lu(e,o,e.bl_tree)}while(0!=--s);else 0!==o?(o!==a&&(Lu(e,o,e.bl_tree),s--),Lu(e,16,e.bl_tree),Tu(e,s-3,2)):s<=10?(Lu(e,17,e.bl_tree),Tu(e,s-3,3)):(Lu(e,18,e.bl_tree),Tu(e,s-11,7));s=0,a=o,0===i?(l=138,c=3):o===i?(l=6,c=3):(l=7,c=4)}}du(Ou);var Yu=!1;function Zu(e,t,r,n){Tu(e,0+(n?1:0),3),function(e,t,r,n){Bu(e),n&&(Au(e,r),Au(e,~r)),hu.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}var Hu=function(e){Yu||(!function(){var e,t,r,n,o,a=new l(16);for(r=0,n=0;n<28;n++)for(xu[n]=r,e=0;e<1<<fu[n];e++)wu[r++]=n;for(wu[r-1]=n,o=0,n=0;n<16;n++)for(Ou[n]=o,e=0;e<1<<mu[n];e++)vu[o++]=n;for(o>>=7;n<30;n++)for(Ou[n]=o<<7,e=0;e<1<<mu[n]-7;e++)vu[256+o++]=n;for(t=0;t<=15;t++)a[t]=0;for(e=0;e<=143;)bu[2*e+1]=8,e++,a[8]++;for(;e<=255;)bu[2*e+1]=9,e++,a[9]++;for(;e<=279;)bu[2*e+1]=7,e++,a[7]++;for(;e<=287;)bu[2*e+1]=8,e++,a[8]++;for(Nu(bu,287,a),e=0;e<30;e++)ku[2*e+1]=5,ku[2*e]=Ru(e,5);_u=new Cu(bu,fu,257,286,15),Pu=new Cu(ku,mu,0,30,15),Su=new Cu(new l(0),gu,0,19,7)}(),Yu=!0),e.l_desc=new zu(e.dyn_ltree,_u),e.d_desc=new zu(e.dyn_dtree,Pu),e.bl_desc=new zu(e.bl_tree,Su),e.bi_buf=0,e.bi_valid=0,Du(e)},qu=Zu,Vu=function(e,t,r,n){var o,a,i=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Fu(e,e.l_desc),Fu(e,e.d_desc),i=function(e){var t;for(ju(e,e.dyn_ltree,e.l_desc.max_code),ju(e,e.dyn_dtree,e.d_desc.max_code),Fu(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*yu[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=o&&(o=a)):o=a=r+5,r+4<=o&&-1!==t?Zu(e,t,r,n):4===e.strategy||a===o?(Tu(e,2+(n?1:0),3),Mu(e,bu,ku)):(Tu(e,4+(n?1:0),3),function(e,t,r,n){var o;for(Tu(e,t-257,5),Tu(e,r-1,5),Tu(e,n-4,4),o=0;o<n;o++)Tu(e,e.bl_tree[2*yu[o]+1],3);Wu(e,e.dyn_ltree,t-1),Wu(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,i+1),Mu(e,e.dyn_ltree,e.dyn_dtree)),Du(e),n&&Bu(e)},Ku=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(wu[r]+256+1)]++,e.dyn_dtree[2*Eu(t)]++),e.last_lit===e.lit_bufsize-1},$u=function(e){Tu(e,2,3),Lu(e,256,bu),function(e){16===e.bi_valid?(Au(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)},Gu=c.setPrototypeOf({_tr_init:Hu,_tr_stored_block:qu,_tr_flush_block:Vu,_tr_tally:Ku,_tr_align:$u},c.prototype);var Xu=function(e,t,r,n){for(var o=65535&e|0,a=e>>>16&65535|0,i=0;0!==r;){r-=i=r>2e3?2e3:r;do{a=a+(o=o+t[n++]|0)|0}while(--i);o%=65521,a%=65521}return o|a<<16|0};var Qu=function(){for(var e,t=l.of(),r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();var Ju,ep=function(e,t,r,n){var o=Qu,a=n+r;e^=-1;for(var i=n;i<a;i++)e=e>>>8^o[255&(e^t[i])];return-1^e},tp=c.setPrototypeOf({2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},c.prototype);function rp(e,t){return e.msg=tp[t],t}function np(e){return(e<<1)-(e>4?9:0)}function op(e){for(var t=e.length;--t>=0;)e[t]=0}function ap(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(hu.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function ip(e,t){Gu._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ap(e.strm)}function sp(e,t){e.pending_buf[e.pending++]=t}function lp(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function cp(e,t){var r,n,o=e.max_chain_length,a=e.strstart,i=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,c=e.window,u=e.w_mask,p=e.prev,h=e.strstart+258,d=c[a+i-1],f=c[a+i];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+i]===f&&c[r+i-1]===d&&c[r]===c[a]&&c[++r]===c[a+1]){a+=2,r++;do{}while(c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&a<h);if(n=258-(h-a),a=h-258,n>i){if(e.match_start=t,i=n,n>=s)break;d=c[a+i-1],f=c[a+i]}}}while((t=p[t&u])>l&&0!=--o);return i<=e.lookahead?i:e.lookahead}function up(e){var t,r,n,o,a,i,s,l,c,u,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-262)){hu.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=p?n-p:0}while(--r);t=r=p;do{n=e.prev[--t],e.prev[t]=n>=p?n-p:0}while(--r);o+=p}if(0===e.strm.avail_in)break;if(i=e.strm,s=e.window,l=e.strstart+e.lookahead,c=o,u=void 0,(u=i.avail_in)>c&&(u=c),r=0===u?0:(i.avail_in-=u,hu.arraySet(s,i.input,i.next_in,u,l),1===i.state.wrap?i.adler=Xu(i.adler,s,u,l):2===i.state.wrap&&(i.adler=ep(i.adler,s,u,l)),i.next_in+=u,i.total_in+=u,u),e.lookahead+=r,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function pp(e,t){for(var r,n;;){if(e.lookahead<262){if(up(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=cp(e,r)),e.match_length>=3)if(n=Gu._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=Gu._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(ip(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(ip(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(ip(e,!1),0===e.strm.avail_out)?1:2}function hp(e,t){for(var r,n,o;;){if(e.lookahead<262){if(up(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=cp(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,n=Gu._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(ip(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=Gu._tr_tally(e,0,e.window[e.strstart-1]))&&ip(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Gu._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(ip(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(ip(e,!1),0===e.strm.avail_out)?1:2}function dp(e,t,r,n,o){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=o}function fp(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new hu.Buf16(1146),this.dyn_dtree=new hu.Buf16(122),this.bl_tree=new hu.Buf16(78),op(this.dyn_ltree),op(this.dyn_dtree),op(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new hu.Buf16(16),this.heap=new hu.Buf16(573),op(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new hu.Buf16(573),op(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function mp(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,Gu._tr_init(t),0):rp(e,-2)}function gp(e){var t,r=mp(e);return 0===r&&((t=e.state).window_size=2*t.w_size,op(t.head),t.max_lazy_match=Ju[t.level].max_lazy,t.good_match=Ju[t.level].good_length,t.nice_match=Ju[t.level].nice_length,t.max_chain_length=Ju[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function yp(e,t,r,n,o,a){if(!e)return-2;var i=1;if(-1===t&&(t=6),n<0?(i=0,n=-n):n>15&&(i=2,n-=16),o<1||o>9||8!==r||n<8||n>15||t<0||t>9||a<0||a>4)return rp(e,-2);8===n&&(n=9);var s=new fp;return e.state=s,s.strm=e,s.wrap=i,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=o+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new hu.Buf8(2*s.w_size),s.head=new hu.Buf16(s.hash_size),s.prev=new hu.Buf16(s.w_size),s.lit_bufsize=1<<o+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new hu.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,gp(e)}Ju=l.of(new dp(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(up(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,ip(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(ip(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(ip(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(ip(e,!1),e.strm.avail_out),1)})),new dp(4,4,8,4,pp),new dp(4,5,16,8,pp),new dp(4,6,32,32,pp),new dp(4,4,16,16,hp),new dp(8,16,32,32,hp),new dp(8,16,128,128,hp),new dp(8,32,128,256,hp),new dp(32,128,258,1024,hp),new dp(32,258,258,4096,hp));var bp=function(e,t){return yp(e,t,8,15,8,0)},kp=yp,vp=gp,wp=mp,xp=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},_p=function(e,t){var r,n,o,a;if(!e||!e.state||t>5||t<0)return e?rp(e,-2):-2;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&4!==t)return rp(e,0===e.avail_out?-5:-2);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status)if(2===n.wrap)e.adler=0,sp(n,31),sp(n,139),sp(n,8),n.gzhead?(sp(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),sp(n,255&n.gzhead.time),sp(n,n.gzhead.time>>8&255),sp(n,n.gzhead.time>>16&255),sp(n,n.gzhead.time>>24&255),sp(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),sp(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(sp(n,255&n.gzhead.extra.length),sp(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=ep(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(sp(n,0),sp(n,0),sp(n,0),sp(n,0),sp(n,0),sp(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),sp(n,3),n.status=113);else{var i=8+(n.w_bits-8<<4)<<8;i|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=32),i+=31-i%31,n.status=113,lp(n,i),0!==n.strstart&&(lp(n,e.adler>>>16),lp(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(o=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>o&&(e.adler=ep(e.adler,n.pending_buf,n.pending-o,o)),ap(e),o=n.pending,n.pending!==n.pending_buf_size));)sp(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>o&&(e.adler=ep(e.adler,n.pending_buf,n.pending-o,o)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=ep(e.adler,n.pending_buf,n.pending-o,o)),ap(e),o=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,sp(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>o&&(e.adler=ep(e.adler,n.pending_buf,n.pending-o,o)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=ep(e.adler,n.pending_buf,n.pending-o,o)),ap(e),o=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,sp(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>o&&(e.adler=ep(e.adler,n.pending_buf,n.pending-o,o)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&ap(e),n.pending+2<=n.pending_buf_size&&(sp(n,255&e.adler),sp(n,e.adler>>8&255),e.adler=0,n.status=113)):n.status=113),0!==n.pending){if(ap(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&np(t)<=np(r)&&4!==t)return rp(e,-5);if(666===n.status&&0!==e.avail_in)return rp(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&666!==n.status){var s=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(up(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=Gu._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ip(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(ip(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(ip(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){for(var r,n,o,a,i=e.window;;){if(e.lookahead<=258){if(up(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=i[o=e.strstart-1])===i[++o]&&n===i[++o]&&n===i[++o]){a=e.strstart+258;do{}while(n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&o<a);e.match_length=258-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=Gu._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Gu._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ip(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(ip(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(ip(e,!1),0===e.strm.avail_out)?1:2}(n,t):Ju[n.level].func(n,t);if(3!==s&&4!==s||(n.status=666),1===s||3===s)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===t?Gu._tr_align(n):5!==t&&(Gu._tr_stored_block(n,0,0,!1),3===t&&(op(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),ap(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t?0:n.wrap<=0?1:(2===n.wrap?(sp(n,255&e.adler),sp(n,e.adler>>8&255),sp(n,e.adler>>16&255),sp(n,e.adler>>24&255),sp(n,255&e.total_in),sp(n,e.total_in>>8&255),sp(n,e.total_in>>16&255),sp(n,e.total_in>>24&255)):(lp(n,e.adler>>>16),lp(n,65535&e.adler)),ap(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)},Pp=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?rp(e,-2):(e.state=null,113===t?rp(e,-3):0):-2},Sp=function(e,t){var r,n,o,a,i,s,l,c,u=t.length;if(!e||!e.state)return-2;if(2===(a=(r=e.state).wrap)||1===a&&42!==r.status||r.lookahead)return-2;for(1===a&&(e.adler=Xu(e.adler,t,u,0)),r.wrap=0,u>=r.w_size&&(0===a&&(op(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new hu.Buf8(r.w_size),hu.arraySet(c,t,u-r.w_size,r.w_size,0),t=c,u=r.w_size),i=e.avail_in,s=e.next_in,l=e.input,e.avail_in=u,e.next_in=0,e.input=t,up(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,up(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=s,e.input=l,e.avail_in=i,r.wrap=a,0},Op=c.setPrototypeOf({deflateInit:bp,deflateInit2:kp,deflateReset:vp,deflateResetKeep:wp,deflateSetHeader:xp,deflate:_p,deflateEnd:Pp,deflateSetDictionary:Sp,deflateInfo:"pako deflate (from Nodeca project)"},c.prototype),Cp=!0,zp=!0;try{String.fromCharCode.apply(null,l.of(0))}catch(e){Cp=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){zp=!1}for(var Ep=new hu.Buf8(256),Ap=0;Ap<256;Ap++)Ep[Ap]=Ap>=252?6:Ap>=248?5:Ap>=240?4:Ap>=224?3:Ap>=192?2:1;Ep[254]=Ep[254]=1;function Tp(e,t){if(t<65534&&(e.subarray&&zp||!e.subarray&&Cp))return String.fromCharCode.apply(null,hu.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}var Lp=c.setPrototypeOf({string2buf:function(e){var t,r,n,o,a,i=e.length,s=0;for(o=0;o<i;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<i&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new hu.Buf8(s),a=0,o=0;a<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<i&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},buf2binstring:function(e){return Tp(e,e.length)},binstring2buf:function(e){for(var t=new hu.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},buf2string:function(e,t){var r,n,o,a,i=t||e.length,s=new l(2*i);for(n=0,r=0;r<i;)if((o=e[r++])<128)s[n++]=o;else if((a=Ep[o])>4)s[n++]=65533,r+=a-1;else{for(o&=2===a?31:3===a?15:7;a>1&&r<i;)o=o<<6|63&e[r++],a--;a>1?s[n++]=65533:o<65536?s[n++]=o:(o-=65536,s[n++]=55296|o>>10&1023,s[n++]=56320|1023&o)}return Tp(s,n)},utf8border:function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+Ep[e[r]]>t?r:t}},c.prototype);var Rp=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Np=c.prototype.toString;function Dp(e){if(!(this instanceof Dp))return new Dp(e);this.options=hu.assign(c.setPrototypeOf({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},c.prototype),e||c.setPrototypeOf({},c.prototype));var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=l.of(),this.strm=new Rp,this.strm.avail_out=0;var r=Op.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(tp[r]);if(t.header&&Op.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="string"==typeof t.dictionary?Lp.string2buf(t.dictionary):"[object ArrayBuffer]"===Np.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=Op.deflateSetDictionary(this.strm,n)))throw new Error(tp[r]);this._dict_set=!0}}function Bp(e,t){var r=new Dp(t);if(r.push(e,!0),r.err)throw r.msg||tp[r.err];return r.result}Dp.prototype.push=function(e,t){var r,n,o=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=Lp.string2buf(e):"[object ArrayBuffer]"===Np.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new hu.Buf8(a),o.next_out=0,o.avail_out=a),1!==(r=Op.deflate(o,n))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(Lp.buf2binstring(hu.shrinkBuf(o.output,o.next_out))):this.onData(hu.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==r);return 4===n?(r=Op.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),o.avail_out=0,!0)},Dp.prototype.onData=function(e){this.chunks.push(e)},Dp.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=hu.flattenChunks(this.chunks)),this.chunks=l.of(),this.err=e,this.msg=this.strm.msg};var Ip=Dp,Up=Bp,Mp=function(e,t){return(t=t||c.setPrototypeOf({},c.prototype)).raw=!0,Bp(e,t)},Fp=function(e,t){return(t=t||c.setPrototypeOf({},c.prototype)).gzip=!0,Bp(e,t)},jp=c.setPrototypeOf({Deflate:Ip,deflate:Up,deflateRaw:Mp,gzip:Fp},c.prototype),Wp=function(e,t){var r,n,o,a,i,s,l,c,u,p,h,d,f,m,g,y,b,k,v,w,x,_,P,S,O;r=e.state,n=e.next_in,S=e.input,o=n+(e.avail_in-5),a=e.next_out,O=e.output,i=a-(t-e.avail_out),s=a+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,p=r.wnext,h=r.window,d=r.hold,f=r.bits,m=r.lencode,g=r.distcode,y=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{f<15&&(d+=S[n++]<<f,f+=8,d+=S[n++]<<f,f+=8),k=m[d&y];t:for(;;){if(d>>>=v=k>>>24,f-=v,0===(v=k>>>16&255))O[a++]=65535&k;else{if(!(16&v)){if(0==(64&v)){k=m[(65535&k)+(d&(1<<v)-1)];continue t}if(32&v){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&k,(v&=15)&&(f<v&&(d+=S[n++]<<f,f+=8),w+=d&(1<<v)-1,d>>>=v,f-=v),f<15&&(d+=S[n++]<<f,f+=8,d+=S[n++]<<f,f+=8),k=g[d&b];r:for(;;){if(d>>>=v=k>>>24,f-=v,!(16&(v=k>>>16&255))){if(0==(64&v)){k=g[(65535&k)+(d&(1<<v)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(x=65535&k,f<(v&=15)&&(d+=S[n++]<<f,(f+=8)<v&&(d+=S[n++]<<f,f+=8)),(x+=d&(1<<v)-1)>l){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=v,f-=v,x>(v=a-i)){if((v=x-v)>u&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(_=0,P=h,0===p){if(_+=c-v,v<w){w-=v;do{O[a++]=h[_++]}while(--v);_=a-x,P=O}}else if(p<v){if(_+=c+p-v,(v-=p)<w){w-=v;do{O[a++]=h[_++]}while(--v);if(_=0,p<w){w-=v=p;do{O[a++]=h[_++]}while(--v);_=a-x,P=O}}}else if(_+=p-v,v<w){w-=v;do{O[a++]=h[_++]}while(--v);_=a-x,P=O}for(;w>2;)O[a++]=P[_++],O[a++]=P[_++],O[a++]=P[_++],w-=3;w&&(O[a++]=P[_++],w>1&&(O[a++]=P[_++]))}else{_=a-x;do{O[a++]=O[_++],O[a++]=O[_++],O[a++]=O[_++],w-=3}while(w>2);w&&(O[a++]=O[_++],w>1&&(O[a++]=O[_++]))}break}}break}}while(n<o&&a<s);n-=w=f>>3,d&=(1<<(f-=w<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<o?o-n+5:5-(n-o),e.avail_out=a<s?s-a+257:257-(a-s),r.hold=d,r.bits=f},Yp=l.of(3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0),Zp=l.of(16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78),Hp=l.of(1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0),qp=l.of(16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64),Vp=function(e,t,r,n,o,a,i,s){var l,c,u,p,h,d,f,m,g,y=s.bits,b=0,k=0,v=0,w=0,x=0,_=0,P=0,S=0,O=0,C=0,z=null,E=0,A=new hu.Buf16(16),T=new hu.Buf16(16),L=null,R=0;for(b=0;b<=15;b++)A[b]=0;for(k=0;k<n;k++)A[t[r+k]]++;for(x=y,w=15;w>=1&&0===A[w];w--);if(x>w&&(x=w),0===w)return o[a++]=20971520,o[a++]=20971520,s.bits=1,0;for(v=1;v<w&&0===A[v];v++);for(x<v&&(x=v),S=1,b=1;b<=15;b++)if(S<<=1,(S-=A[b])<0)return-1;if(S>0&&(0===e||1!==w))return-1;for(T[1]=0,b=1;b<15;b++)T[b+1]=T[b]+A[b];for(k=0;k<n;k++)0!==t[r+k]&&(i[T[t[r+k]]++]=k);if(0===e?(z=L=i,d=19):1===e?(z=Yp,E-=257,L=Zp,R-=257,d=256):(z=Hp,L=qp,d=-1),C=0,k=0,b=v,h=a,_=x,P=0,u=-1,p=(O=1<<x)-1,1===e&&O>852||2===e&&O>592)return 1;for(;;){f=b-P,i[k]<d?(m=0,g=i[k]):i[k]>d?(m=L[R+i[k]],g=z[E+i[k]]):(m=96,g=0),l=1<<b-P,v=c=1<<_;do{o[h+(C>>P)+(c-=l)]=f<<24|m<<16|g|0}while(0!==c);for(l=1<<b-1;C&l;)l>>=1;if(0!==l?(C&=l-1,C+=l):C=0,k++,0==--A[b]){if(b===w)break;b=t[r+i[k]]}if(b>x&&(C&p)!==u){for(0===P&&(P=x),h+=v,S=1<<(_=b-P);_+P<w&&!((S-=A[_+P])<=0);)_++,S<<=1;if(O+=1<<_,1===e&&O>852||2===e&&O>592)return 1;o[u=C&p]=x<<24|_<<16|h-a|0}}return 0!==C&&(o[h+C]=b-P<<24|64<<16|0),s.bits=x,0};function Kp(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function $p(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new hu.Buf16(320),this.work=new hu.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Gp(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new hu.Buf32(852),t.distcode=t.distdyn=new hu.Buf32(592),t.sane=1,t.back=-1,0):-2}function Xp(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,Gp(e)):-2}function Qp(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,Xp(e))):-2}function Jp(e,t){var r,n;return e?(n=new $p,e.state=n,n.window=null,0!==(r=Qp(e,t))&&(e.state=null),r):-2}var eh,th,rh=!0;function nh(e){if(rh){var t;for(eh=new hu.Buf32(512),th=new hu.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Vp(1,e.lens,0,288,eh,0,e.work,c.setPrototypeOf({bits:9},c.prototype)),t=0;t<32;)e.lens[t++]=5;Vp(2,e.lens,0,32,th,0,e.work,c.setPrototypeOf({bits:5},c.prototype)),rh=!1}e.lencode=eh,e.lenbits=9,e.distcode=th,e.distbits=5}function oh(e,t,r,n){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new hu.Buf8(a.wsize)),n>=a.wsize?(hu.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>n&&(o=n),hu.arraySet(a.window,t,r-n,o,a.wnext),(n-=o)?(hu.arraySet(a.window,t,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}var ah=Xp,ih=Qp,sh=Gp,lh=function(e){return Jp(e,15)},ch=Jp,uh=function(e,t){var r,n,o,a,i,s,u,p,h,d,f,m,g,y,b,k,v,w,x,_,P,S,O,C,z=0,E=new hu.Buf8(4),A=l.of(16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15);if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(r=e.state).mode&&(r.mode=13),i=e.next_out,o=e.output,u=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,p=r.hold,h=r.bits,d=s,f=u,S=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;h<16;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}if(2&r.wrap&&35615===p){r.check=0,E[0]=255&p,E[1]=p>>>8&255,r.check=ep(r.check,E,2,0),p=0,h=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&p)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&p)){e.msg="unknown compression method",r.mode=30;break}if(h-=4,P=8+(15&(p>>>=4)),0===r.wbits)r.wbits=P;else if(P>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<P,e.adler=r.check=1,r.mode=512&p?10:12,p=0,h=0;break;case 2:for(;h<16;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}if(r.flags=p,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=p>>8&1),512&r.flags&&(E[0]=255&p,E[1]=p>>>8&255,r.check=ep(r.check,E,2,0)),p=0,h=0,r.mode=3;case 3:for(;h<32;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}r.head&&(r.head.time=p),512&r.flags&&(E[0]=255&p,E[1]=p>>>8&255,E[2]=p>>>16&255,E[3]=p>>>24&255,r.check=ep(r.check,E,4,0)),p=0,h=0,r.mode=4;case 4:for(;h<16;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}r.head&&(r.head.xflags=255&p,r.head.os=p>>8),512&r.flags&&(E[0]=255&p,E[1]=p>>>8&255,r.check=ep(r.check,E,2,0)),p=0,h=0,r.mode=5;case 5:if(1024&r.flags){for(;h<16;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}r.length=p,r.head&&(r.head.extra_len=p),512&r.flags&&(E[0]=255&p,E[1]=p>>>8&255,r.check=ep(r.check,E,2,0)),p=0,h=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((m=r.length)>s&&(m=s),m&&(r.head&&(P=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new l(r.head.extra_len)),hu.arraySet(r.head.extra,n,a,m,P)),512&r.flags&&(r.check=ep(r.check,n,m,a)),s-=m,a+=m,r.length-=m),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;m=0;do{P=n[a+m++],r.head&&P&&r.length<65536&&(r.head.name+=String.fromCharCode(P))}while(P&&m<s);if(512&r.flags&&(r.check=ep(r.check,n,m,a)),s-=m,a+=m,P)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break e;m=0;do{P=n[a+m++],r.head&&P&&r.length<65536&&(r.head.comment+=String.fromCharCode(P))}while(P&&m<s);if(512&r.flags&&(r.check=ep(r.check,n,m,a)),s-=m,a+=m,P)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;h<16;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}if(p!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}p=0,h=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;h<32;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}e.adler=r.check=Kp(p),p=0,h=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=i,e.avail_out=u,e.next_in=a,e.avail_in=s,r.hold=p,r.bits=h,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){p>>>=7&h,h-=7&h,r.mode=27;break}for(;h<3;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}switch(r.last=1&p,h-=1,3&(p>>>=1)){case 0:r.mode=14;break;case 1:if(nh(r),r.mode=20,6===t){p>>>=2,h-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}p>>>=2,h-=2;break;case 14:for(p>>>=7&h,h-=7&h;h<32;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}if((65535&p)!=(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&p,p=0,h=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(m=r.length){if(m>s&&(m=s),m>u&&(m=u),0===m)break e;hu.arraySet(o,n,a,m,i),s-=m,a+=m,u-=m,i+=m,r.length-=m;break}r.mode=12;break;case 17:for(;h<14;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}if(r.nlen=257+(31&p),p>>>=5,h-=5,r.ndist=1+(31&p),p>>>=5,h-=5,r.ncode=4+(15&p),p>>>=4,h-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;h<3;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}r.lens[A[r.have++]]=7&p,p>>>=3,h-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,O=c.setPrototypeOf({bits:r.lenbits},c.prototype),S=Vp(0,r.lens,0,19,r.lencode,0,r.work,O),r.lenbits=O.bits,S){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;k=(z=r.lencode[p&(1<<r.lenbits)-1])>>>16&255,v=65535&z,!((b=z>>>24)<=h);){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}if(v<16)p>>>=b,h-=b,r.lens[r.have++]=v;else{if(16===v){for(C=b+2;h<C;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}if(p>>>=b,h-=b,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}P=r.lens[r.have-1],m=3+(3&p),p>>>=2,h-=2}else if(17===v){for(C=b+3;h<C;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}h-=b,P=0,m=3+(7&(p>>>=b)),p>>>=3,h-=3}else{for(C=b+7;h<C;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}h-=b,P=0,m=11+(127&(p>>>=b)),p>>>=7,h-=7}if(r.have+m>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;m--;)r.lens[r.have++]=P}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,O=c.setPrototypeOf({bits:r.lenbits},c.prototype),S=Vp(1,r.lens,0,r.nlen,r.lencode,0,r.work,O),r.lenbits=O.bits,S){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,O=c.setPrototypeOf({bits:r.distbits},c.prototype),S=Vp(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,O),r.distbits=O.bits,S){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(s>=6&&u>=258){e.next_out=i,e.avail_out=u,e.next_in=a,e.avail_in=s,r.hold=p,r.bits=h,Wp(e,f),i=e.next_out,o=e.output,u=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,p=r.hold,h=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;k=(z=r.lencode[p&(1<<r.lenbits)-1])>>>16&255,v=65535&z,!((b=z>>>24)<=h);){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}if(k&&0==(240&k)){for(w=b,x=k,_=v;k=(z=r.lencode[_+((p&(1<<w+x)-1)>>w)])>>>16&255,v=65535&z,!(w+(b=z>>>24)<=h);){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}p>>>=w,h-=w,r.back+=w}if(p>>>=b,h-=b,r.back+=b,r.length=v,0===k){r.mode=26;break}if(32&k){r.back=-1,r.mode=12;break}if(64&k){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&k,r.mode=22;case 22:if(r.extra){for(C=r.extra;h<C;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,h-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;k=(z=r.distcode[p&(1<<r.distbits)-1])>>>16&255,v=65535&z,!((b=z>>>24)<=h);){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}if(0==(240&k)){for(w=b,x=k,_=v;k=(z=r.distcode[_+((p&(1<<w+x)-1)>>w)])>>>16&255,v=65535&z,!(w+(b=z>>>24)<=h);){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}p>>>=w,h-=w,r.back+=w}if(p>>>=b,h-=b,r.back+=b,64&k){e.msg="invalid distance code",r.mode=30;break}r.offset=v,r.extra=15&k,r.mode=24;case 24:if(r.extra){for(C=r.extra;h<C;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,h-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===u)break e;if(m=f-u,r.offset>m){if((m=r.offset-m)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}m>r.wnext?(m-=r.wnext,g=r.wsize-m):g=r.wnext-m,m>r.length&&(m=r.length),y=r.window}else y=o,g=i-r.offset,m=r.length;m>u&&(m=u),u-=m,r.length-=m;do{o[i++]=y[g++]}while(--m);0===r.length&&(r.mode=21);break;case 26:if(0===u)break e;o[i++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;h<32;){if(0===s)break e;s--,p|=n[a++]<<h,h+=8}if(f-=u,e.total_out+=f,r.total+=f,f&&(e.adler=r.check=r.flags?ep(r.check,o,f,i-f):Xu(r.check,o,f,i-f)),f=u,(r.flags?p:Kp(p))!==r.check){e.msg="incorrect data check",r.mode=30;break}p=0,h=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;h<32;){if(0===s)break e;s--,p+=n[a++]<<h,h+=8}if(p!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}p=0,h=0}r.mode=29;case 29:S=1;break e;case 30:S=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=i,e.avail_out=u,e.next_in=a,e.avail_in=s,r.hold=p,r.bits=h,(r.wsize||f!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&oh(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,r.total+=f,r.wrap&&f&&(e.adler=r.check=r.flags?ep(r.check,o,f,e.next_out-f):Xu(r.check,o,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===d&&0===f||4===t)&&0===S&&(S=-5),S},ph=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},hh=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?-2:(r.head=t,t.done=!1,0):-2},dh=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?-2:11===r.mode&&Xu(1,t,n,0)!==r.check?-3:oh(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},fh=c.setPrototypeOf({inflateReset:ah,inflateReset2:ih,inflateResetKeep:sh,inflateInit:lh,inflateInit2:ch,inflate:uh,inflateEnd:ph,inflateGetHeader:hh,inflateSetDictionary:dh,inflateInfo:"pako inflate (from Nodeca project)"},c.prototype),mh=c.setPrototypeOf({Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},c.prototype);mh.Z_NO_FLUSH,mh.Z_PARTIAL_FLUSH,mh.Z_SYNC_FLUSH,mh.Z_FULL_FLUSH,mh.Z_FINISH,mh.Z_BLOCK,mh.Z_TREES,mh.Z_OK,mh.Z_STREAM_END,mh.Z_NEED_DICT,mh.Z_ERRNO,mh.Z_STREAM_ERROR,mh.Z_DATA_ERROR,mh.Z_BUF_ERROR,mh.Z_NO_COMPRESSION,mh.Z_BEST_SPEED,mh.Z_BEST_COMPRESSION,mh.Z_DEFAULT_COMPRESSION,mh.Z_FILTERED,mh.Z_HUFFMAN_ONLY,mh.Z_RLE,mh.Z_FIXED,mh.Z_DEFAULT_STRATEGY,mh.Z_BINARY,mh.Z_TEXT,mh.Z_UNKNOWN,mh.Z_DEFLATED;var gh=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},yh=c.prototype.toString;function bh(e){if(!(this instanceof bh))return new bh(e);this.options=hu.assign(c.setPrototypeOf({chunkSize:16384,windowBits:0,to:""},c.prototype),e||c.setPrototypeOf({},c.prototype));var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=l.of(),this.strm=new Rp,this.strm.avail_out=0;var r=fh.inflateInit2(this.strm,t.windowBits);if(r!==mh.Z_OK)throw new Error(tp[r]);if(this.header=new gh,fh.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Lp.string2buf(t.dictionary):"[object ArrayBuffer]"===yh.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=fh.inflateSetDictionary(this.strm,t.dictionary))!==mh.Z_OK))throw new Error(tp[r])}function kh(e,t){var r=new bh(t);if(r.push(e,!0),r.err)throw r.msg||tp[r.err];return r.result}bh.prototype.push=function(e,t){var r,n,o,a,i,s=this.strm,l=this.options.chunkSize,c=this.options.dictionary,u=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?mh.Z_FINISH:mh.Z_NO_FLUSH,"string"==typeof e?s.input=Lp.binstring2buf(e):"[object ArrayBuffer]"===yh.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new hu.Buf8(l),s.next_out=0,s.avail_out=l),(r=fh.inflate(s,mh.Z_NO_FLUSH))===mh.Z_NEED_DICT&&c&&(r=fh.inflateSetDictionary(this.strm,c)),r===mh.Z_BUF_ERROR&&!0===u&&(r=mh.Z_OK,u=!1),r!==mh.Z_STREAM_END&&r!==mh.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==mh.Z_STREAM_END&&(0!==s.avail_in||n!==mh.Z_FINISH&&n!==mh.Z_SYNC_FLUSH)||("string"===this.options.to?(o=Lp.utf8border(s.output,s.next_out),a=s.next_out-o,i=Lp.buf2string(s.output,o),s.next_out=a,s.avail_out=l-a,a&&hu.arraySet(s.output,s.output,o,a,0),this.onData(i)):this.onData(hu.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(u=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==mh.Z_STREAM_END);return r===mh.Z_STREAM_END&&(n=mh.Z_FINISH),n===mh.Z_FINISH?(r=fh.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===mh.Z_OK):n!==mh.Z_SYNC_FLUSH||(this.onEnd(mh.Z_OK),s.avail_out=0,!0)},bh.prototype.onData=function(e){this.chunks.push(e)},bh.prototype.onEnd=function(e){e===mh.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=hu.flattenChunks(this.chunks)),this.chunks=l.of(),this.err=e,this.msg=this.strm.msg};var vh=bh,wh=kh,xh=function(e,t){return(t=t||c.setPrototypeOf({},c.prototype)).raw=!0,kh(e,t)},_h=kh,Ph=c.setPrototypeOf({Inflate:vh,inflate:wh,inflateRaw:xh,ungzip:_h},c.prototype),Sh=hu.assign,Oh=c.setPrototypeOf({},c.prototype);Sh(Oh,jp,Ph,mh);var Ch=Oh;var zh=function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),r=new Uint8Array(e),n=r.length,o=n%3,a=l.of();let i;for(let e=0,t=n-o;e<t;e+=16383)a.push(s(e,e+16383>t?t:e+16383));return 1===o?(i=r[n-1],a.push(t[i>>2]+t[i<<4&63]+"==")):2===o&&(i=(r[n-2]<<8)+r[n-1],a.push(t[i>>10]+t[i>>4&63]+t[i<<2&63]+"=")),a.join("");function s(e,n){let o;const a=l.of();for(let s=e;s<n;s+=3)o=(r[s]<<16&16711680)+(r[s+1]<<8&65280)+(255&r[s+2]),a.push(t[(i=o)>>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i]);var i;return a.join("")}};const{deflate:Eh}=Ch;var Ah=function({type:e,value:t,compress:r,serialize:n}){const o=c.setPrototypeOf({type:e,value:t},c.prototype);return r&&(o.value=Eh(new Uint8Array(o.value)),o.compressed=!0),n&&(o.value=zh(o.value)),o};var Th=function(e){return/^(blob|https?):/.test(e)};var Lh=function(e){const t=e&&e.match(/(^[^#]*)/),r=t&&t[1]||e;return r&&r.replace(/\?\s*$/,"?")||e};var Rh=function(e){return e.reduce((e,t)=>e.concat(t),l.of())};const{absolutizeUrl:Nh}=w;var Dh=function({fetchUrl:e,findStyleSheetByUrl:t,getCorsFreeStyleSheet:r,extractResourcesFromStyleSheet:n,extractResourcesFromSvg:o,sessionCache:a,cache:i=c.setPrototypeOf({},c.prototype),compress:s,serialize:p,log:h=Fc}){return function({url:d,documents:f,getResourceUrlsAndBlobs:m,forceCreateStyle:g=!1,skipResources:y}){if(!i[d])if(a&&a.getItem(d)){const e=function e(t){const r=a.getItem(t);return l.of(t).concat(r?cu(Rh(r.map(e))):l.of())}(d);h("doProcessResource from sessionStorage",d,"deps:",e.slice(1)),i[d]=u.resolve(c.setPrototypeOf({resourceUrls:e},c.prototype))}else if(y&&y.indexOf(d)>-1||/https:\/\/fonts.googleapis.com/.test(d))h("not processing resource from skip list (or google font):",d),i[d]=u.resolve(c.setPrototypeOf({resourceUrls:l.of(d)},c.prototype));else{const u=Date.now();i[d]=function(i){h("fetching",i);const u=Date.now();return e(i).catch(e=>{if(function(e){const t=e.message&&(e.message.includes("Failed to fetch")||e.message.includes("Network request failed")),r=e.name&&e.name.includes("TypeError");return t&&r}(e))return c.setPrototypeOf({probablyCORS:!0,url:i},c.prototype);if(e.isTimeout)return c.setPrototypeOf({isTimeout:!0,url:i},c.prototype);throw e}).then(({url:e,type:i,value:d,probablyCORS:b,errorStatusCode:k,isTimeout:v})=>{if(b)return h("not fetched due to CORS",`[${Date.now()-u}ms]`,e),a&&a.setItem(e,l.of()),c.setPrototypeOf({resourceUrls:l.of(e)},c.prototype);if(k){const t=c.setPrototypeOf({[e]:c.setPrototypeOf({errorStatusCode:k},c.prototype)},c.prototype);return a&&a.setItem(e,l.of()),c.setPrototypeOf({blobsObj:t},c.prototype)}if(v)return h("not fetched due to timeout, returning error status code 504 (Gateway timeout)"),a&&a.setItem(e,l.of()),c.setPrototypeOf({blobsObj:c.setPrototypeOf({[e]:c.setPrototypeOf({errorStatusCode:504},c.prototype)},c.prototype)},c.prototype);let w;if(h(`fetched [${Date.now()-u}ms] ${e} bytes: ${d.byteLength}`),/text\/css/.test(i)){let o=t(e,f);if(o||g){const{corsFreeStyleSheet:e,cleanStyleSheet:t}=r(d,o);w=n(e),t()}}else if(/image\/svg/.test(i))try{w=o(d),g=!!w}catch(e){h("could not parse svg content",e)}const x=c.setPrototypeOf({[e]:Ah(c.setPrototypeOf({type:i,value:d,compress:s,serialize:p},c.prototype))},c.prototype);if(w){const t=w.map(t=>Nh(t,e.replace(/^blob:/,""))).map(Lh).filter(Th);return t.length&&(x[e].dependencies=t),a&&a.setItem(e,t),m(c.setPrototypeOf({documents:f,urls:t,forceCreateStyle:g,skipResources:y},c.prototype)).then(({resourceUrls:e,blobsObj:t})=>c.setPrototypeOf({resourceUrls:e,blobsObj:c.assign(t,x)},c.prototype))}return a&&a.setItem(e,l.of()),c.setPrototypeOf({blobsObj:x},c.prototype)}).catch(e=>(h("error while fetching",i,e,e?`message=${e.message} | name=${e.name}`:""),a&&b(),c.setPrototypeOf({},c.prototype)))}(d).then(e=>(h("doProcessResource",`[${Date.now()-u}ms]`,d),e))}return i[d];function b(){h("clearing from sessionStorage:",d),a.keys().forEach(e=>{const t=a.getItem(e);a.setItem(e,t.filter(e=>e!==d))}),h("cleared from sessionStorage:",d)}}};var Bh=function({parser:e,decoder:t,extractResourceUrlsFromStyleTags:r}){return function(n){const o=(t||new TextDecoder("utf-8")).decode(n),a=(e||new DOMParser).parseFromString(o,"image/svg+xml"),i=l.from(a.querySelectorAll("img[srcset]")).map(e=>e.getAttribute("srcset").split(", ").map(e=>e.trim().split(/\s+/)[0])).reduce((e,t)=>e.concat(t),l.of()),s=l.from(a.querySelectorAll("img[src]")).map(e=>e.getAttribute("src")),c=l.from(a.querySelectorAll('image,use,link[rel="stylesheet"]')).map(e=>e.getAttribute("href")||e.getAttribute("xlink:href")),u=l.from(a.getElementsByTagName("object")).map(e=>e.getAttribute("data")),p=r(a,!1),h=function(e){return Rh(l.from(e.querySelectorAll("*[style]")).map(e=>e.style.cssText).map(Yc).filter(Boolean))}(a);return i.concat(s).concat(c).concat(u).concat(p).concat(h).filter(e=>"#"!==e[0])}};var Ih=function({fetch:e=window.fetch,AbortController:t=window.AbortController,timeout:r=1e4}){return function(n){return new u((o,a)=>{const i=new t,s=setTimeout(()=>{const e=new Error("fetchUrl timeout reached");e.isTimeout=!0,a(e),i.abort()},r);return e(n,c.setPrototypeOf({cache:"force-cache",credentials:"same-origin",signal:i.signal},c.prototype)).then(e=>(clearTimeout(s),200===e.status?e.arrayBuffer().then(t=>c.setPrototypeOf({url:n,type:e.headers.get("Content-Type"),value:t},c.prototype)):c.setPrototypeOf({url:n,errorStatusCode:e.status},c.prototype))).then(o).catch(e=>a(e))})}};var Uh=function(e){const t=new URL(e);return t.username&&(t.username=""),t.password&&(t.password=""),t.href};var Mh=function({styleSheetCache:e}){return function(t,r){const n=Rh(r.map(e=>{try{return l.from(e.styleSheets)}catch(e){return l.of()}}));return e[t]||n.find(e=>{const r=e.href&&Lh(e.href);return r&&Uh(r)===t})}};var Fh=function({styleSheetCache:e,CSSRule:t=window.CSSRule}){return function r(n){return cu(l.from(n.cssRules||l.of()).reduce((n,o)=>{const a=c.setPrototypeOf({[t.IMPORT_RULE]:()=>(o.styleSheet&&(e[o.styleSheet.href]=o.styleSheet),o.href),[t.FONT_FACE_RULE]:()=>Yc(o.cssText),[t.SUPPORTS_RULE]:()=>r(o),[t.MEDIA_RULE]:()=>r(o),[t.STYLE_RULE]:()=>Zc(o.style)},c.prototype)[o.type],i=a&&a()||l.of();return n.concat(i)},l.of())).filter(e=>"#"!==e[0])}};var jh=function(e){return function(t,r=!0){return cu(l.from(t.querySelectorAll("style")).reduce((n,o)=>{const a=r?l.from(t.styleSheets).find(e=>e.ownerNode===o):o.sheet;return a?n.concat(e(a)):n},l.of()))}};var Wh=function(e){const t=new TextDecoder("utf-8").decode(e),r=document.head||document.querySelectorAll("head")[0],n=document.createElement("style");return n.type="text/css",n.setAttribute("data-desc","Applitools tmp variable created by DOM SNAPSHOT"),r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),n.sheet};var Yh=function(e,t,r=Fc){let n;if(t)try{t.cssRules,n=t}catch(o){r(`[dom-snapshot] could not access cssRules for ${t.href} ${o}\ncreating temp style for access.`),n=Wh(e)}else n=Wh(e);return c.setPrototypeOf({corsFreeStyleSheet:n,cleanStyleSheet:function(){n!==t&&n.ownerNode.parentNode.removeChild(n.ownerNode)}},c.prototype)};var Zh=function(e,{log:t,compress:r,serialize:n}){return e.reduce((e,{url:o,element:a})=>{const i=new u(e=>{try{a.toBlob(t=>e(t.arrayBuffer()),"image/png")}catch(n){t(n.message,a&&a.attributes&&(r=a,JSON.stringify(l.from(r.attributes).reduce((e,t)=>c.assign(c.setPrototypeOf({[t.name]:t.value},c.prototype),e),c.setPrototypeOf({},c.prototype))))),e()}var r});return e.then(e=>i.then(t=>{if(t){const a=Ah(c.setPrototypeOf({type:"image/png",value:t,compress:r,serialize:n},c.prototype));a.url=o,e.push(a)}return e}))},u.resolve(l.of()))};var Hh=function(e,{doc:t,fetchedBlobs:r,log:n,compress:o,serialize:a,sessionCache:i}){const p=new s(c.keys(r));let h=e.filter(({url:e})=>!(p.has("blob:"+e)||i&&i.getItem("blob:"+e)));const d=t.createElement("canvas");d.style.display="none";const f=Jc(t.body);return f.appendChild(d),u.all(h.map(({element:e,url:t})=>{d.width=e.naturalWidth,d.height=e.naturalHeight;return d.getContext("2d").drawImage(Jc.unwrap(e),0,0),Zh(l.of(c.setPrototypeOf({url:t,element:d},c.prototype)),c.setPrototypeOf({log:n,compress:o,serialize:a},c.prototype))})).then(e=>Rh(e)).finally(()=>{f.removeChild(d)})};var qh=function(e){const t=e.querySelectorAll("base")[0]&&e.querySelectorAll("base")[0].href;if(t&&((r=t)&&!/^(about:blank|javascript:void|blob:)/.test(r)))return t;var r};var Vh=function(e){return e&&e.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,e=>{const t=parseInt(e.substr(1).trim(),16);return String.fromCodePoint(t)})||e};var Kh=function(e){return function(){const t=l.of("[dom-snapshot]",`[+${Date.now()-e}ms]`).concat(l.from(arguments));console.log.apply(console,t)}};var $h=function({log:e,sessionStorage:t}){let r;try{const e=(t=t||window.sessionStorage).getItem("__process_resource");r=e?JSON.parse(e):c.setPrototypeOf({},c.prototype)}catch(t){e("error creating session cache",t)}return c.setPrototypeOf({getItem:function(e){if(r)return r[e]},setItem:function(t,n){r&&(e("saving to in-memory sessionStorage, key:",t,"value:",n),r[t]=n)},keys:function(){return r?c.keys(r):l.of()},persist:function(){r&&t.setItem("__process_resource",JSON.stringify(r))}},c.prototype)};const{absolutizeUrl:Gh}=w;function Xh(e){return function(t){try{return Gh(t,e)}catch(e){}}}function Qh(e){return c.keys(e).map(t=>c.assign(c.setPrototypeOf({url:t.replace(/^blob:/,"")},c.prototype),e[t]))}function Jh(e){return e&&Th(e)}var ed=function({doc:e=document,showLogs:t,useSessionCache:r,dontFetchResources:n,fetchTimeout:o,skipResources:a,compressResources:i,serializeResources:s}=c.setPrototypeOf({},c.prototype)){
7
+ var processPageAndSerializePoll=function(){"use strict";return function(){const e=function(e){return function(){function t(e,t=0){const n=e.charCodeAt(t);return n>=55296&&n<56320?1024*(n-55296)+(e.charCodeAt(t+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(e,n){const r=[];let a=0;for(let i=0;i<e.length;++i){const o=t(e,i);let s=0;o>0&&(s=o<128?1:o<2048?2:o<65536?3:o<2097152?4:o<67108864?5:6),a+s>n?(r.push(i),a=s):a+=s}return r};const r="SUCCESS",a="SUCCESS_CHUNKED",i="ERROR";var o=function(e,t,o={}){const s=function(e,{chunkByteLength:t=0}={}){if(e){if(e.value){if(t){if(!e.chunks){const r=JSON.stringify(e.value);e.chunks=n(r,t),e.chunks.length>0&&(e.from=0,e.value=r)}if(e.from>=0)return{status:a,value:e.value.substring(e.from,e.from=e.chunks.shift()),done:!e.from}}return{status:r,value:e.value}}return e.error?{status:i,error:e.error}:{status:"WIP"}}return{status:i,error:"unexpected poll request received - cannot find state of current operation"}}((e=e||{})[t],o);return(s.status===r||s.status===i||s.status===a&&s.done)&&(e[t]=null),s},s={chunkify:n,pollify:function(e,t,n){return r=>function(){return t[n]||(t[n]={},e.apply(null,arguments).then(e=>t[n].value=e).catch(e=>t[n].error=e.message)),o(t,n,r)}},poll:o,absolutizeUrl:function(e,t){let n=!0;try{n=e!==decodeURI(e)}catch(e){n=!0}const r=new URL(e,t).href;return n?r:decodeURI(r)},isInlineFrame:function(e){return e.contentDocument&&e.contentDocument.location&&!/^https?:$/.test(e.contentDocument.location.protocol)},isAccessibleFrame:function(e){try{const t=e.contentDocument;return Boolean(t&&t.defaultView&&t.defaultView.frameElement)}catch(e){return!1}}},l=function(e){let t=!0;try{t=e!==decodeURI(e)}catch(e){t=!0}const n=new URL(e);return n.username="",n.password="",t?n.href:decodeURI(n.href)},c=function(){return window.crypto.getRandomValues(new Uint32Array(1))[0]};function u(e){return{prev:null,next:null,data:e}}function h(e,t,n){var r;return null!==p?(r=p,p=p.cursor,r.prev=t,r.next=n,r.cursor=e.cursor):r={prev:t,next:n,cursor:e.cursor},e.cursor=r,r}function d(e){var t=e.cursor;e.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=p,p=t}var p=null,f=function(){this.cursor=null,this.head=null,this.tail=null};f.createItem=u,f.prototype.createItem=u,f.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},f.prototype.getSize=function(){for(var e=0,t=this.head;t;)e++,t=t.next;return e},f.prototype.fromArray=function(e){var t=null;this.head=null;for(var n=0;n<e.length;n++){var r=u(e[n]);null!==t?t.next=r:this.head=r,r.prev=t,t=r}return this.tail=t,this},f.prototype.toArray=function(){for(var e=this.head,t=[];e;)t.push(e.data),e=e.next;return t},f.prototype.toJSON=f.prototype.toArray,f.prototype.isEmpty=function(){return null===this.head},f.prototype.first=function(){return this.head&&this.head.data},f.prototype.last=function(){return this.tail&&this.tail.data},f.prototype.each=function(e,t){var n;void 0===t&&(t=this);for(var r=h(this,null,this.head);null!==r.next;)n=r.next,r.next=n.next,e.call(t,n.data,n,this);d(this)},f.prototype.forEach=f.prototype.each,f.prototype.eachRight=function(e,t){var n;void 0===t&&(t=this);for(var r=h(this,this.tail,null);null!==r.prev;)n=r.prev,r.prev=n.prev,e.call(t,n.data,n,this);d(this)},f.prototype.forEachRight=f.prototype.eachRight,f.prototype.nextUntil=function(e,t,n){if(null!==e){var r;void 0===n&&(n=this);for(var a=h(this,null,e);null!==a.next&&(r=a.next,a.next=r.next,!t.call(n,r.data,r,this)););d(this)}},f.prototype.prevUntil=function(e,t,n){if(null!==e){var r;void 0===n&&(n=this);for(var a=h(this,e,null);null!==a.prev&&(r=a.prev,a.prev=r.prev,!t.call(n,r.data,r,this)););d(this)}},f.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},f.prototype.map=function(e,t){var n=new f,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},f.prototype.filter=function(e,t){var n=new f,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},f.prototype.clear=function(){this.head=null,this.tail=null},f.prototype.copy=function(){for(var e=new f,t=this.head;null!==t;)e.insert(u(t.data)),t=t.next;return e},f.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},f.prototype.prependData=function(e){return this.prepend(u(e))},f.prototype.append=function(e){return this.insert(e)},f.prototype.appendData=function(e){return this.insert(u(e))},f.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},f.prototype.insertData=function(e,t){return this.insert(u(e),t)},f.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},f.prototype.push=function(e){this.insert(u(e))},f.prototype.pop=function(){if(null!==this.tail)return this.remove(this.tail)},f.prototype.unshift=function(e){this.prepend(u(e))},f.prototype.shift=function(){if(null!==this.head)return this.remove(this.head)},f.prototype.prependList=function(e){return this.insertList(e,this.head)},f.prototype.appendList=function(e){return this.insertList(e)},f.prototype.insertList=function(e,t){return null===e.head||(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},f.prototype.replace=function(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)};var m=f,g=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};function b(e,t){function n(e,t){return r.slice(e,t).map((function(t,n){for(var r=String(e+n+1);r.length<l;)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),l=Math.max(4,String(s).length)+1,c=0;(i+=(" ".length-1)*(r[a-1].substr(0,i-1).match(/\t/g)||[]).length)>100&&(c=i-60+3,i=58);for(var u=o;u<=s;u++)u>=0&&u<r.length&&(r[u]=r[u].replace(/\t/g," "),r[u]=(c>0&&r[u].length>c?"…":"")+r[u].substr(c,98)+(r[u].length>c+100-1?"…":""));return[n(o,a),new Array(i+l+2).join("-")+"^",n(a,s)].filter(Boolean).join("\n")}var y=function(e,t,n,r,a){var i=g("SyntaxError",e);return i.source=t,i.offset=n,i.line=r,i.column=a,i.sourceFragment=function(e){return b(i,isNaN(e)?0:e)},Object.defineProperty(i,"formattedMessage",{get:function(){return"Parse error: "+i.message+"\n"+b(i,2)}}),i.parseError={offset:n,line:r,column:a},i},k={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},v=Object.keys(k).reduce((function(e,t){return e[k[t]]=t,e}),{}),w={TYPE:k,NAME:v};function x(e){return e>=48&&e<=57}function S(e){return e>=65&&e<=90}function _(e){return e>=97&&e<=122}function C(e){return S(e)||_(e)}function z(e){return e>=128}function A(e){return C(e)||z(e)||95===e}function T(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function E(e){return 10===e||13===e||12===e}function P(e){return E(e)||32===e||9===e}function L(e,t){return 92===e&&!E(t)&&0!==t}var O=new Array(128);D.Eof=128,D.WhiteSpace=130,D.Digit=131,D.NameStart=132,D.NonPrintable=133;for(var R=0;R<O.length;R++)switch(!0){case P(R):O[R]=D.WhiteSpace;break;case x(R):O[R]=D.Digit;break;case A(R):O[R]=D.NameStart;break;case T(R):O[R]=D.NonPrintable;break;default:O[R]=R||D.Eof}function D(e){return e<128?O[e]:D.NameStart}var N={isDigit:x,isHexDigit:function(e){return x(e)||e>=65&&e<=70||e>=97&&e<=102},isUppercaseLetter:S,isLowercaseLetter:_,isLetter:C,isNonAscii:z,isNameStart:A,isName:function(e){return A(e)||x(e)||45===e},isNonPrintable:T,isNewline:E,isWhiteSpace:P,isValidEscape:L,isIdentifierStart:function(e,t,n){return 45===e?A(t)||45===t||L(t,n):!!A(e)||92===e&&L(e,t)},isNumberStart:function(e,t,n){return 43===e||45===e?x(t)?2:46===t&&x(n)?3:0:46===e?x(t)?2:0:x(e)?1:0},isBOM:function(e){return 65279===e||65534===e?1:0},charCodeCategory:D},B=N.isDigit,I=N.isHexDigit,U=N.isUppercaseLetter,j=N.isName,F=N.isWhiteSpace,M=N.isValidEscape;function W(e,t){return t<e.length?e.charCodeAt(t):0}function q(e,t,n){return 13===n&&10===W(e,t+1)?2:1}function Y(e,t,n){var r=e.charCodeAt(t);return U(r)&&(r|=32),r===n}function H(e,t){for(;t<e.length&&B(e.charCodeAt(t));t++);return t}function Z(e,t){if(I(W(e,(t+=2)-1))){for(var n=Math.min(e.length,t+5);t<n&&I(W(e,t));t++);var r=W(e,t);F(r)&&(t+=q(e,t,r))}return t}var V={consumeEscaped:Z,consumeName:function(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(!j(n)){if(!M(n,W(e,t+1)))break;t=Z(e,t)-1}}return t},consumeNumber:function(e,t){var n=e.charCodeAt(t);if(43!==n&&45!==n||(n=e.charCodeAt(t+=1)),B(n)&&(t=H(e,t+1),n=e.charCodeAt(t)),46===n&&B(e.charCodeAt(t+1))&&(n=e.charCodeAt(t+=2),t=H(e,t)),Y(e,t,101)){var r=0;45!==(n=e.charCodeAt(t+1))&&43!==n||(r=1,n=e.charCodeAt(t+2)),B(n)&&(t=H(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}M(n,W(e,t+1))&&(t=Z(e,t))}return t},cmpChar:Y,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(U(i)&&(i|=32),i!==o)return!1}return!0},getNewlineLength:q,findWhiteSpaceStart:function(e,t){for(;t>=0&&F(e.charCodeAt(t));t--);return t+1},findWhiteSpaceEnd:function(e,t){for(;t<e.length&&F(e.charCodeAt(t));t++);return t}},$=w.TYPE,K=w.NAME,G=V.cmpStr,X=$.EOF,Q=$.WhiteSpace,J=$.Comment,ee=function(){this.offsetAndType=null,this.balance=null,this.reset()};ee.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:X},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&&G(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)===$.Delim&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===$.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===Q;e++,t++);t>0&&this.skip(t)},skipSC:function(){for(;this.tokenType===Q||this.tokenType===J;)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=X,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:K[t>>24],chunk:this.source.substring(r,a),balance:this.balance[n]}}),this)}};var te=ee;function ne(e){return e}var re=function(e,t){var n=ne,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)),function e(t,n,r,a){var i,o;switch(t.type){case"Group":i=function(t,n,r,a){var i=" "===t.combinator||a?t.combinator:" "+t.combinator+" ",o=t.terms.map((function(t){return e(t,n,r,a)})).join(i);return(t.explicit||r)&&(o=(a||","===o[0]?"[":"[ ")+o+(a?"]":" ]")),o}(t,n,r,a)+(t.disallowEmpty?"!":"");break;case"Multiplier":return e(t.term,n,r,a)+n(0===(o=t).min&&0===o.max?"*":0===o.min&&1===o.max?"?":1===o.min&&0===o.max?o.comma?"#":"+":1===o.min&&1===o.max?"":(o.comma?"#":"")+(o.min===o.max?"{"+o.min+"}":"{"+o.min+","+(0!==o.max?o.max:"")+"}"),t);case"Type":i="<"+t.name+(t.opts?n(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+"`")}}(t.opts),t.opts):"")+">";break;case"Property":i="<'"+t.name+"'>";break;case"Keyword":i=t.name;break;case"AtKeyword":i="@"+t.name;break;case"Function":i=t.name+"(";break;case"String":case"Token":i=t.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+t.type+"`")}return n(i,t)}(e,n,r,a)};function ae(e,t){var n=e&&e.loc&&e.loc[t];return n?{offset:n.offset,line:n.line,column:n.column}:null}var ie=Object.prototype.hasOwnProperty,oe=Object.create(null),se=Object.create(null);function le(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function ce(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){var n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var ue={keyword:function(e){if(ie.call(oe,e))return oe[e];var t=e.toLowerCase();if(ie.call(oe,t))return oe[e]=oe[t];var n=le(t,0),r=n?"":ce(t,0);return oe[e]=Object.freeze({basename:t.substr(r.length),name:t,vendor:r,prefix:r,custom:n})},property:function(e){if(ie.call(se,e))return se[e];var t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");var r=le(t,n.length);if(!r&&(t=t.toLowerCase(),ie.call(se,t)))return se[e]=se[t];var a=r?"":ce(t,n.length),i=t.substr(0,n.length+a.length);return se[e]=Object.freeze({basename:t.substr(i.length),name:t.substr(n.length),hack:n,vendor:a,prefix:i,custom:r})},isCustomProperty:le,vendorPrefix:ce},he="undefined"!=typeof Uint32Array?Uint32Array:Array,de=function(e,t){return null===e||e.length<t?new he(Math.max(t+1024,16384)):e},pe=w.TYPE,fe=N.isNewline,me=N.isName,ge=N.isValidEscape,be=N.isNumberStart,ye=N.isIdentifierStart,ke=N.charCodeCategory,ve=N.isBOM,we=V.cmpStr,xe=V.getNewlineLength,Se=V.findWhiteSpaceEnd,_e=V.consumeEscaped,Ce=V.consumeName,ze=V.consumeNumber,Ae=V.consumeBadUrlRemnants;function Te(e,t){function n(t){return t<o?e.charCodeAt(t):0}function r(){return h=ze(e,h),ye(n(h),n(h+1),n(h+2))?(g=pe.Dimension,void(h=Ce(e,h))):37===n(h)?(g=pe.Percentage,void h++):void(g=pe.Number)}function a(){const t=h;return h=Ce(e,h),we(e,t,h,"url")&&40===n(h)?34===n(h=Se(e,h+1))||39===n(h)?(g=pe.Function,void(h=t+4)):void function(){for(g=pe.Url,h=Se(e,h);h<e.length;h++){var t=e.charCodeAt(h);switch(ke(t)){case 41:return void h++;case ke.Eof:return;case ke.WhiteSpace:return 41===n(h=Se(e,h))||h>=e.length?void(h<e.length&&h++):(h=Ae(e,h),void(g=pe.BadUrl));case 34:case 39:case 40:case ke.NonPrintable:return h=Ae(e,h),void(g=pe.BadUrl);case 92:if(ge(t,n(h+1))){h=_e(e,h)-1;break}return h=Ae(e,h),void(g=pe.BadUrl)}}}():40===n(h)?(g=pe.Function,void h++):void(g=pe.Ident)}function i(t){for(t||(t=n(h++)),g=pe.String;h<e.length;h++){var r=e.charCodeAt(h);switch(ke(r)){case t:return void h++;case ke.Eof:return;case ke.WhiteSpace:if(fe(r))return h+=xe(e,h,r),void(g=pe.BadString);break;case 92:if(h===e.length-1)break;var a=n(h+1);fe(a)?h+=xe(e,h+1,a):ge(r,a)&&(h=_e(e,h)-1)}}}t||(t=new te);for(var o=(e=String(e||"")).length,s=de(t.offsetAndType,o+1),l=de(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,ke(m)){case ke.WhiteSpace:g=pe.WhiteSpace,h=Se(e,h+1);break;case 34:i();break;case 35:me(n(h+1))||ge(n(h+1),n(h+2))?(g=pe.Hash,h=Ce(e,h+1)):(g=pe.Delim,h++);break;case 39:i();break;case 40:g=pe.LeftParenthesis,h++;break;case 41:g=pe.RightParenthesis,h++;break;case 43:be(m,n(h+1),n(h+2))?r():(g=pe.Delim,h++);break;case 44:g=pe.Comma,h++;break;case 45:be(m,n(h+1),n(h+2))?r():45===n(h+1)&&62===n(h+2)?(g=pe.CDC,h+=3):ye(m,n(h+1),n(h+2))?a():(g=pe.Delim,h++);break;case 46:be(m,n(h+1),n(h+2))?r():(g=pe.Delim,h++);break;case 47:42===n(h+1)?(g=pe.Comment,1===(h=e.indexOf("*/",h+2)+2)&&(h=e.length)):(g=pe.Delim,h++);break;case 58:g=pe.Colon,h++;break;case 59:g=pe.Semicolon,h++;break;case 60:33===n(h+1)&&45===n(h+2)&&45===n(h+3)?(g=pe.CDO,h+=4):(g=pe.Delim,h++);break;case 64:ye(n(h+1),n(h+2),n(h+3))?(g=pe.AtKeyword,h=Ce(e,h+1)):(g=pe.Delim,h++);break;case 91:g=pe.LeftSquareBracket,h++;break;case 92:ge(m,n(h+1))?a():(g=pe.Delim,h++);break;case 93:g=pe.RightSquareBracket,h++;break;case 123:g=pe.LeftCurlyBracket,h++;break;case 125:g=pe.RightCurlyBracket,h++;break;case ke.Digit:r();break;case ke.NameStart:a();break;case ke.Eof:break;default:g=pe.Delim,h++}switch(g){case d:for(d=(p=l[f=16777215&p])>>24,l[c]=f,l[f++]=c;f<c;f++)l[f]===o&&(l[f]=c);break;case pe.LeftParenthesis:case pe.Function:l[c]=p,p=(d=pe.RightParenthesis)<<24|c;break;case pe.LeftSquareBracket:l[c]=p,p=(d=pe.RightSquareBracket)<<24|c;break;case pe.LeftCurlyBracket:l[c]=p,p=(d=pe.RightCurlyBracket)<<24|c}s[c++]=g<<24|h}for(s[c]=pe.EOF<<24|h,l[c]=o,l[o]=o;0!==p;)p=l[f=16777215&p],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(w).forEach((function(e){Te[e]=w[e]})),Object.keys(N).forEach((function(e){Te[e]=N[e]})),Object.keys(V).forEach((function(e){Te[e]=V[e]}));var Ee=Te,Pe=Ee.isDigit,Le=Ee.cmpChar,Oe=Ee.TYPE,Re=Oe.Delim,De=Oe.WhiteSpace,Ne=Oe.Comment,Be=Oe.Ident,Ie=Oe.Number,Ue=Oe.Dimension;function je(e,t){return null!==e&&e.type===Re&&e.value.charCodeAt(0)===t}function Fe(e,t,n){for(;null!==e&&(e.type===De||e.type===Ne);)e=n(++t);return t}function Me(e,t,n,r){if(!e)return 0;var a=e.value.charCodeAt(t);if(43===a||45===a){if(n)return 0;t++}for(;t<e.value.length;t++)if(!Pe(e.value.charCodeAt(t)))return 0;return r+1}function We(e,t,n){var r=!1,a=Fe(e,t,n);if(null===(e=n(a)))return t;if(e.type!==Ie){if(!je(e,43)&&!je(e,45))return t;if(r=!0,a=Fe(n(++a),a,n),null===(e=n(a))&&e.type!==Ie)return 0}if(!r){var i=e.value.charCodeAt(0);if(43!==i&&45!==i)return 0}return Me(e,r?0:1,r,a)}var qe=Ee.isHexDigit,Ye=Ee.cmpChar,He=Ee.TYPE,Ze=He.Ident,Ve=He.Delim,$e=He.Number,Ke=He.Dimension;function Ge(e,t){return null!==e&&e.type===Ve&&e.value.charCodeAt(0)===t}function Xe(e,t){return e.value.charCodeAt(0)===t}function Qe(e,t,n){for(var r=t,a=0;r<e.value.length;r++){var i=e.value.charCodeAt(r);if(45===i&&n&&0!==a)return Qe(e,t+a+1,!1)>0?6:0;if(!qe(i))return 0;if(++a>6)return 0}return a}function Je(e,t,n){if(!e)return 0;for(;Ge(n(t),63);){if(++e>6)return 0;t++}return t}var et=Ee.isIdentifierStart,tt=Ee.isHexDigit,nt=Ee.isDigit,rt=Ee.cmpStr,at=Ee.consumeNumber,it=Ee.TYPE,ot=["unset","initial","inherit"],st=["calc(","-moz-calc(","-webkit-calc("];function lt(e,t){return t<e.length?e.charCodeAt(t):0}function ct(e,t){return rt(e,0,e.length,t)}function ut(e,t){for(var n=0;n<t.length;n++)if(ct(e,t[n]))return!0;return!1}function ht(e,t){return t===e.length-2&&92===e.charCodeAt(t)&&nt(e.charCodeAt(t+1))}function dt(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 pt(e,t){var n=e.index,r=0;do{if(r++,e.balance<=n)break}while(e=t(r));return r}function ft(e){return function(t,n,r){return null===t?0:t.type===it.Function&&ut(t.value,st)?pt(t,n):e(t,n,r)}}function mt(e){return function(t){return null===t||t.type!==e?0:1}}function gt(e){return function(t,n,r){if(null===t||t.type!==it.Dimension)return 0;var a=at(t.value,0);if(null!==e){var i=t.value.indexOf("\\",a),o=-1!==i&&ht(t.value,i)?t.value.substring(a,i):t.value.substr(a);if(!1===e.hasOwnProperty(o.toLowerCase()))return 0}return dt(r,t.value,a)?0:1}}function bt(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===it.Number&&0===Number(t.value)?1:e(t,n,r)}}var yt={"ident-token":mt(it.Ident),"function-token":mt(it.Function),"at-keyword-token":mt(it.AtKeyword),"hash-token":mt(it.Hash),"string-token":mt(it.String),"bad-string-token":mt(it.BadString),"url-token":mt(it.Url),"bad-url-token":mt(it.BadUrl),"delim-token":mt(it.Delim),"number-token":mt(it.Number),"percentage-token":mt(it.Percentage),"dimension-token":mt(it.Dimension),"whitespace-token":mt(it.WhiteSpace),"CDO-token":mt(it.CDO),"CDC-token":mt(it.CDC),"colon-token":mt(it.Colon),"semicolon-token":mt(it.Semicolon),"comma-token":mt(it.Comma),"[-token":mt(it.LeftSquareBracket),"]-token":mt(it.RightSquareBracket),"(-token":mt(it.LeftParenthesis),")-token":mt(it.RightParenthesis),"{-token":mt(it.LeftCurlyBracket),"}-token":mt(it.RightCurlyBracket),string:mt(it.String),ident:mt(it.Ident),"custom-ident":function(e){if(null===e||e.type!==it.Ident)return 0;var t=e.value.toLowerCase();return ut(t,ot)||ct(t,"default")?0:1},"custom-property-name":function(e){return null===e||e.type!==it.Ident||45!==lt(e.value,0)||45!==lt(e.value,1)?0:1},"hex-color":function(e){if(null===e||e.type!==it.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(!tt(e.value.charCodeAt(n)))return 0;return 1},"id-selector":function(e){return null===e||e.type!==it.Hash?0:et(lt(e.value,1),lt(e.value,2),lt(e.value,3))?1:0},"an-plus-b":function(e,t){var n=0;if(!e)return 0;if(e.type===Ie)return Me(e,0,!1,n);if(e.type===Be&&45===e.value.charCodeAt(0)){if(!Le(e.value,1,110))return 0;switch(e.value.length){case 2:return We(t(++n),n,t);case 3:return 45!==e.value.charCodeAt(2)?0:(n=Fe(t(++n),n,t),Me(e=t(n),0,!0,n));default:return 45!==e.value.charCodeAt(2)?0:Me(e,3,!0,n)}}else if(e.type===Be||je(e,43)&&t(n+1).type===Be){if(e.type!==Be&&(e=t(++n)),null===e||!Le(e.value,0,110))return 0;switch(e.value.length){case 1:return We(t(++n),n,t);case 2:return 45!==e.value.charCodeAt(1)?0:(n=Fe(t(++n),n,t),Me(e=t(n),0,!0,n));default:return 45!==e.value.charCodeAt(1)?0:Me(e,2,!0,n)}}else if(e.type===Ue){for(var r=e.value.charCodeAt(0),a=43===r||45===r?1:0,i=a;i<e.value.length&&Pe(e.value.charCodeAt(i));i++);return i===a?0:Le(e.value,i,110)?i+1===e.value.length?We(t(++n),n,t):45!==e.value.charCodeAt(i+1)?0:i+2===e.value.length?(n=Fe(t(++n),n,t),Me(e=t(n),0,!0,n)):Me(e,i+2,!0,n):0}return 0},urange:function(e,t){var n=0;if(null===e||e.type!==Ze||!Ye(e.value,0,117))return 0;if(null===(e=t(++n)))return 0;if(Ge(e,43))return null===(e=t(++n))?0:e.type===Ze?Je(Qe(e,0,!0),++n,t):Ge(e,63)?Je(1,++n,t):0;if(e.type===$e){if(!Xe(e,43))return 0;var r=Qe(e,1,!0);return 0===r?0:null===(e=t(++n))?n:e.type===Ke||e.type===$e?Xe(e,45)&&Qe(e,1,!1)?n+1:0:Je(r,n,t)}return e.type===Ke&&Xe(e,43)?Je(Qe(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 it.BadString:case it.BadUrl:break e;case it.RightCurlyBracket:case it.RightParenthesis:case it.RightSquareBracket:if(e.balance>e.index||e.balance<a)break e;r--;break;case it.Semicolon:if(0===r)break e;break;case it.Delim:if("!"===e.value&&0===r)break e;break;case it.Function:case it.LeftParenthesis:case it.LeftSquareBracket:case it.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 it.BadString:case it.BadUrl:break e;case it.RightCurlyBracket:case it.RightParenthesis:case it.RightSquareBracket:if(e.balance>e.index||e.balance<n)break e}if(r++,e.balance<=n)break}while(e=t(r));return r},dimension:ft(gt(null)),angle:ft(gt({deg:!0,grad:!0,rad:!0,turn:!0})),decibel:ft(gt({db:!0})),frequency:ft(gt({hz:!0,khz:!0})),flex:ft(gt({fr:!0})),length:ft(bt(gt({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:ft(gt({dpi:!0,dpcm:!0,dppx:!0,x:!0})),semitones:ft(gt({st:!0})),time:ft(gt({s:!0,ms:!0})),percentage:ft((function(e,t,n){return null===e||e.type!==it.Percentage||dt(n,e.value,e.value.length-1)?0:1})),zero:bt(),number:ft((function(e,t,n){if(null===e)return 0;var r=at(e.value,0);return r===e.value.length||ht(e.value,r)?dt(n,e.value,r)?0:1:0})),integer:ft((function(e,t,n){if(null===e||e.type!==it.Number)return 0;for(var r=43===e.value.charCodeAt(0)||45===e.value.charCodeAt(0)?1:0;r<e.value.length;r++)if(!nt(e.value.charCodeAt(r)))return 0;return dt(n,e.value,r)?0:1})),"-ms-legacy-expression":("expression","(",function(e,t){return null!==e&&ct(e.value,"expression(")?pt(e,t):0})},kt=function(e,t,n){var r=g("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},vt=function(e){this.str=e,this.pos=0};vt.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 kt(e,this.str,this.pos)}};var wt=vt,xt=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)})),St={" ":1,"&&":2,"||":3,"|":4};function _t(e){return e.substringToPos(e.findWsEnd(e.pos))}function Ct(e){for(var t=e.pos;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n>=128||0===xt[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function zt(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 At(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 Tt(e){var t,n=null;return e.eat(123),t=zt(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(n=zt(e))):n=t,e.eat(125),{min:Number(t),max:n?Number(n):0}}function Et(e,t){var n=function(e){var t=null,n=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,n=!0,t=123===e.charCode()?Tt(e):{min:1,max:0};break;case 123:t=Tt(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 Pt(e){var t=e.peek();return""===t?null:{type:"Token",value:t}}function Lt(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 St[e]-St[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 Ot(e){for(var t,n=[],r={},a=null,i=e.pos;t=Rt(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:Lt(n,r)||" ",disallowEmpty:!1,explicit:!1}}function Rt(e){var t=e.charCode();if(t<128&&1===xt[t])return function(e){var t;return t=Ct(e),40===e.charCode()?(e.pos++,{type:"Function",name:t}):Et(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return Et(e,function(e){var t;return e.eat(91),t=Ot(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){var t;return e.eat(60),e.eat(39),t=Ct(e),e.eat(39),e.eat(62),Et(e,{type:"Property",name:t})}(e):function(e){var t,n=null;return e.eat(60),t=Ct(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(_t(e),n=function(e){var t=null,n=null,r=1;return e.eat(91),45===e.charCode()&&(e.peek(),r=-1),-1==r&&8734===e.charCode()?e.peek():t=r*Number(zt(e)),_t(e),e.eat(44),_t(e),8734===e.charCode()?e.peek():(r=1,45===e.charCode()&&(e.peek(),r=-1),n=r*Number(zt(e))),e.eat(93),null===t&&null===n?null:{type:"Range",min:t,max:n}}(e)),e.eat(62),Et(e,{type:"Type",name:t,opts:n})}(e);case 124:return{type:"Combinator",value:e.substringToPos(124===e.nextCharCode()?e.pos+2:e.pos+1)};case 38:return e.pos++,e.eat(38),{type:"Combinator",value:"&&"};case 44:return e.pos++,{type:"Comma"};case 39:return Et(e,{type:"String",value:At(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:_t(e)};case 64:return(t=e.nextCharCode())<128&&1===xt[t]?(e.pos++,{type:"AtKeyword",name:Ct(e)}):Pt(e);case 42:case 43:case 63:case 35:case 33:break;case 123:if((t=e.nextCharCode())<48||t>57)return Pt(e);break;default:return Pt(e)}}function Dt(e){var t=new wt(e),n=Ot(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type&&(n=n.terms[0]),n}Dt("[a&&<b>#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!");var Nt=Dt,Bt=function(){};function It(e){return"function"==typeof e?e:Bt}var Ut=function(e,t,n){var r=Bt,a=Bt;if("function"==typeof t?r=t:t&&(r=It(t.enter),a=It(t.leave)),r===Bt&&a===Bt)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)},jt=new te,Ft={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 Mt(a,r)}}}};function Mt(e,t){var n=[],r=0,a=0,i=t?t[a].node:null;for(Ee(e,jt);!jt.eof;){if(t)for(;a<t.length&&r+t[a].len<=jt.tokenStart;)r+=t[a++].len,i=t[a].node;n.push({type:jt.tokenType,value:jt.getTokenValue(),index:jt.tokenIndex,balance:jt.balance[jt.tokenIndex],node:i}),jt.next()}return n}var Wt={type:"Match"},qt={type:"Mismatch"},Yt={type:"DisallowEmpty"};function Ht(e,t,n){return t===Wt&&n===qt||e===Wt&&t===Wt&&n===Wt?e:("If"===e.type&&e.else===qt&&t===Wt&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Zt(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function Vt(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&Zt(e.name)}function $t(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=Wt,i=n.length-1;i>=0;i--)a=Ht(l=n[i],a,qt);return a;case"|":a=qt;var o=null;for(i=n.length-1;i>=0;i--){if(Vt(l=n[i])&&(null===o&&i>0&&Vt(n[i-1])&&(a=Ht({type:"Enum",map:o=Object.create(null)},Wt,a)),null!==o)){var s=(Zt(l.name)?l.name.slice(0,-1):l.name).toLowerCase();if(s in o==0){o[s]=l;continue}}o=null,a=Ht(l,Wt,a)}return a;case"&&":if(n.length>5)return{type:"MatchOnce",terms:n,all:!0};for(a=qt,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):Wt,a=Ht(l,c,a)}return a;case"||":if(n.length>5)return{type:"MatchOnce",terms:n,all:!1};for(a=r?Wt:qt,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):Wt,a=Ht(l,c,a)}return a}}(e.combinator,e.terms.map($t),!1);return e.disallowEmpty&&(t=Ht(t,Yt,qt)),t;case"Multiplier":return function(e){var t=Wt,n=$t(e.term);if(0===e.max)n=Ht(n,Yt,qt),(t=Ht(n,null,qt)).then=Ht(Wt,Wt,t),e.comma&&(t.then.else=Ht({type:"Comma",syntax:e},t,qt));else for(var r=e.min||1;r<=e.max;r++)e.comma&&t!==Wt&&(t=Ht({type:"Comma",syntax:e},t,qt)),t=Ht(n,Ht(Wt,Wt,t),qt);if(0===e.min)t=Ht(Wt,Wt,t);else for(r=0;r<e.min-1;r++)e.comma&&t!==Wt&&(t=Ht({type:"Comma",syntax:e},t,qt)),t=Ht(n,t,qt);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 Kt=Wt,Gt=qt,Xt=Yt,Qt=Object.prototype.hasOwnProperty,Jt=Kt,en=Gt,tn=Xt,nn=w.TYPE;function rn(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 an(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 on(e){return null===e||e.type===nn.RightParenthesis||e.type===nn.RightSquareBracket||e.type===nn.RightCurlyBracket||e.type===nn.Delim}function sn(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 ln(e,t,n){var r=sn.call(e,t);return null!==r&&r.some(n)}var cn={getTrace:sn,isType:function(e,t){return ln(this,e,(function(e){return"Type"===e.type&&e.name===t}))},isProperty:function(e,t){return ln(this,e,(function(e){return"Property"===e.type&&e.name===t}))},isKeyword:function(e){return ln(this,e,(function(e){return"Keyword"===e.type}))}},un=function(e,t,n,r,a){var i=[];return null!==n.matched&&function n(o){if(null!==o.syntax&&o.syntax.type===r&&o.syntax.name===a){var s=function e(t){return"node"in t?t.node:e(t.match[0])}(o),l=function e(t){return"node"in t?t.node:e(t.match[t.match.length-1])}(o);e.syntax.walk(t,(function(e,t,n){if(e===s){var r=new m;do{if(r.appendData(t.data),t.data===l)break;t=t.next}while(null!==t);i.push({parent:n,nodes:r})}}))}Array.isArray(o.match)&&o.match.forEach(n)}(n.matched),i},hn=Object.prototype.hasOwnProperty;function dn(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function pn(e){return Boolean(e)&&dn(e.offset)&&dn(e.line)&&dn(e.column)}function fn(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!==hn.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(pn(n.loc.start)){if(pn(n.loc.end))continue;a+=".end"}else a+=".start";i=!1}else if(t.hasOwnProperty(a)){var o=0;for(i=!1;!i&&o<t[a].length;o++){var s=t[a][o];switch(s){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 s?i=n[a]&&n[a].type===s:Array.isArray(s)&&(i=n[a]instanceof m)}}}else r(n,"Unknown field `"+a+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+a+"`")}}for(var a in t)hn.call(t,a)&&!1===hn.call(n,a)&&r(n,"Field `"+e+"."+a+"` is missed")}}function mn(e,t){var n=t.structure,r={type:String,loc:!0},a={type:'"'+e+'"'};for(var i in n)if(!1!==hn.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:fn(e,r)}}var gn=function(e,t){var n=g("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},bn=function(e,t,n,r){var a=g("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,s=i.node||n,l=ae(s,"end"),c=i.last?l:ae(s,"start"),u=i.css;return a.rawMessage=e,a.syntax=t?re(t):"<generic>",a.css=u,a.mismatchOffset=o,a.loc={source:s&&s.loc&&s.loc.source||"<unknown>",start:c,end:l},a.line=c?c.line:void 0,a.column=c?c.column:void 0,a.offset=c?c.offset:void 0,a.message=e+"\n syntax: "+a.syntax+"\n value: "+(a.css||"<empty string>")+"\n --------"+new Array(a.mismatchOffset+1).join("-")+"^",a},yn=function(e,t){return"string"==typeof e&&(e=Nt(e)),{type:"MatchGraph",match:$t(e),syntax:t||null,source:e}},kn=function(e,t,n){var r=function(e,t,n){function r(){do{b++,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:k,syntaxStack:u,thenStack:h,tokenIndex:b,prev:t}}function o(e){h={nextState:e,matchStack:k,syntaxStack:u,prev:h}}function s(e){d=i(e,d)}function l(){k={type:1,syntax:t.syntax,token:g,prev:k},r(),p=null,b>y&&(y=b)}function c(){k=2===k.type?k.prev:{type:3,syntax:u.syntax,token:k.token,prev:k},u=u.prev}var u=null,h=null,d=null,p=null,f=0,m=null,g=null,b=-1,y=0,k={type:0,syntax:null,token:null,prev:null};for(r();null===m&&++f<15e3;)switch(t.type){case"Match":if(null===h){if(null!==g&&(b!==e.length-1||"\\0"!==g.value&&"\\9"!==g.value)){t=en;break}m="Match";break}if((t=h.nextState)===tn){if(h.matchStack===k){t=en;break}t=Jt}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="Mismatch";break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,k=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!==en&&s(t.else),t.then!==Jt&&o(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":var v=t.syntax.terms;if(t.index===v.length){if(0===t.mask||t.syntax.all){t=en;break}t=Jt;break}if(t.mask===(1<<v.length)-1){t=Jt;break}for(;t.index<v.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=v[t.index++];break}}break;case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==g&&(-1!==(z=g.value.toLowerCase()).indexOf("\\")&&(z=z.replace(/\\[09].*$/,"")),Qt.call(t.map,z))){t=t.map[z];break}t=en;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=Jt}else t=en;break;case"Type":case"Property":var _="Type"===t.type?"types":"properties",C=Qt.call(n,_)?n[_][t.name]:null;if(!C||!C.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==p&&null!==g&&"Type"===t.type&&("custom-ident"===t.name&&g.type===nn.Ident||"length"===t.name&&"0"===g.value)){null===p&&(p=i(t,d)),t=en;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},k={type:2,syntax:t.syntax,token:k.token,prev:k},t=C.match;break;case"Keyword":var z=t.name;if(null!==g){var A=g.value;if(-1!==A.indexOf("\\")&&(A=A.replace(/\\[09].*$/,"")),rn(A,z)){l(),t=Jt;break}}t=en;break;case"AtKeyword":case"Function":if(null!==g&&rn(g.value,t.name)){l(),t=Jt;break}t=en;break;case"Token":if(null!==g&&g.value===t.value){l(),t=Jt;break}t=en;break;case"Comma":null!==g&&g.type===nn.Comma?an(k.token)?t=en:(l(),t=on(g)?en:Jt):t=an(k.token)||on(g)?Jt:en;break;case"String":var T="";for(S=b;S<e.length&&T.length<t.value.length;S++)T+=e[S].value;if(rn(T,t.value)){for(;b<S;)l();t=Jt}else t=en;break;default:throw new Error("Unknown node type: "+t.type)}switch(m){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),m="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",k=null;break;case"Match":for(;null!==u;)c();break;default:k=null}return{tokens:e,reason:m,iterations:f,match:k,longestMatch:y}}(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=function(e){for(var t=null,n=null,r=e;null!==r;)n=r.prev,r.prev=t,t=r,r=n;return t}(a).prev;null!==a;){switch(a.type){case 2:i.match.push(i={syntax:a.syntax,match:[]}),o.push(i);break;case 3: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},vn=yn("inherit | initial | unset"),wn=yn("inherit | initial | unset | <-ms-legacy-expression>");function xn(e,t,n){var r={};for(var a in e)e[a].syntax&&(r[a]=n?e[a].syntax:re(e[a].syntax,{compact:t}));return r}function Sn(e,t,n){return{matched:e,iterations:n,error:t,getTrace:cn.getTrace,isType:cn.isType,isProperty:cn.isProperty,isKeyword:cn.isKeyword}}function _n(e,t,n,r){var a,i=function(e,t){return"string"==typeof e?Mt(e,null):t.generate(e,Ft)}(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)?Sn(null,new Error("Matching for a tree with var() is not supported")):(r&&(a=kn(i,e.valueCommonSyntax,e)),r&&a.match||(a=kn(i,t.match,e)).match?Sn(a.match,null,a.iterations):Sn(null,new bn(a.reason,t.syntax,n,a),a.iterations))}var Cn=function(e,t,n){if(this.valueCommonSyntax=vn,this.syntax=t,this.generic=!1,this.atrules={},this.properties={},this.types={},this.structure=n||function(e){var t={};if(e.node)for(var n in e.node)if(hn.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]=mn(n,r)}return t}(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,yt)this.addType_(r,yt[r]);if(e.atrules)for(var r in e.atrules)this.addAtrule_(r,e.atrules[r]);if(e.properties)for(var r in e.properties)this.addProperty_(r,e.properties[r])}};Cn.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=yn(e,r):("string"==typeof e?Object.defineProperty(a,"syntax",{get:function(){return Object.defineProperty(a,"syntax",{value:Nt(e)}),a.syntax}}):a.syntax=e,Object.defineProperty(a,"match",{get:function(){return Object.defineProperty(a,"match",{value:yn(a.syntax,r)}),a.match}})),a},addAtrule_:function(e,t){this.atrules[e]={prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((e,n)=>(e[n]=this.createDescriptor(t.descriptors[n],"AtruleDescriptor",n),e),{}):null}},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===yt["-ms-legacy-expression"]&&(this.valueCommonSyntax=wn)},matchAtrulePrelude:function(e,t){var n=ue.keyword(e),r=n.vendor?this.getAtrulePrelude(n.name)||this.getAtrulePrelude(n.basename):this.getAtrulePrelude(n.name);return r?_n(this,r,t,!0):n.basename in this.atrules?Sn(null,new Error("At-rule `"+e+"` should not contain a prelude")):Sn(null,new gn("Unknown at-rule",e))},matchAtruleDescriptor:function(e,t,n){var r=ue.keyword(e),a=ue.keyword(t),i=r.vendor?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name];if(!i)return Sn(null,new gn("Unknown at-rule",e));if(!i.descriptors)return Sn(null,new Error("At-rule `"+e+"` has no known descriptors"));var o=a.vendor?i.descriptors[a.name]||i.descriptors[a.basename]:i.descriptors[a.name];return o?_n(this,o,n,!0):Sn(null,new gn("Unknown at-rule descriptor",t))},matchDeclaration:function(e){return"Declaration"!==e.type?Sn(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)},matchProperty:function(e,t){var n=ue.property(e);if(n.custom)return Sn(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?_n(this,r,t,!0):Sn(null,new gn("Unknown property",e))},matchType:function(e,t){var n=this.getType(e);return n?_n(this,n,t,!1):Sn(null,new gn("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")),_n(this,e,t,!1)):Sn(null,new gn("Bad syntax"))},findValueFragments:function(e,t,n,r){return un(this,t,this.matchProperty(e,t),n,r)},findDeclarationValueFragments:function(e,t,n){return un(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},getAtrulePrelude:function(e){return this.atrules.hasOwnProperty(e)?this.atrules[e].prelude:null},getAtruleDescriptor:function(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null},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&&Ut(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:xn(this.types,!t,e),properties:xn(this.properties,!t,e)}},toString:function(){return JSON.stringify(this.dump())}};var zn=Cn,An={SyntaxError:kt,parse:Nt,generate:re,walk:Ut},Tn=Ee.isBOM,En=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1};En.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=de(e.lines,n),a=e.startLine,i=de(e.columns,n),o=e.startColumn,s=t.length>0?Tn(t.charCodeAt(0)):0;s<n;s++){var l=t.charCodeAt(s);r[s]=a,i[s]=o++,10!==l&&13!==l&&12!==l||(13===l&&s+1<n&&10===t.charCodeAt(s+1)&&(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 Pn=En,Ln=Ee.TYPE,On=Ln.WhiteSpace,Rn=Ln.Comment,Dn=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 Rn:this.scanner.next();continue;case On: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},Nn=V.findWhiteSpaceStart,Bn=function(){},In=w.TYPE,Un=w.NAME,jn=In.WhiteSpace,Fn=In.Ident,Mn=In.Function,Wn=In.Url,qn=In.Hash,Yn=In.Percentage,Hn=In.Number;function Zn(e){return function(){return this[e]()}}var Vn=function(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}(Object.freeze({__proto__:null,default:{}})).SourceMapGenerator,$n={Atrule:!0,Selector:!0,Declaration:!0},Kn=Object.prototype.hasOwnProperty;function Gn(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 Xn=Object.prototype.hasOwnProperty,Qn=function(){};function Jn(e){return"function"==typeof e?e:Qn}function er(e,t){return function(n,r,a){n.type===t&&e.call(this,n,r,a)}}function tr(e,t){var n=t.structure,r=[];for(var a in n)if(!1!==Xn.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 nr(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 rr(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,DeclarationList:e.DeclarationList}}}var ar=function e(t){var n={};for(var r in t){var a=t[r];a&&(Array.isArray(a)||a instanceof m?a=a.map(e):a.constructor===Object&&(a=e(a))),n[r]=a}return n},ir=Object.prototype.hasOwnProperty,or={generic:!0,types:{},atrules:{},properties:{},parseContext:{},scope:{},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function sr(e){return e&&e.constructor===Object}function lr(e){return sr(e)?Object.assign({},e):e}function cr(e,t){for(var n in t)ir.call(t,n)&&(sr(e[n])?cr(e[n],lr(t[n])):e[n]=lr(t[n]))}var ur=function(e,t){return function e(t,n,r){for(var a in r)if(!1!==ir.call(r,a))if(!0===r[a])a in n&&ir.call(n,a)&&(t[a]=lr(n[a]));else if(r[a])if(sr(r[a]))cr(i={},t[a]),cr(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])ir.call(t[a],s)&&(i[s]={},t[a]&&t[a][s]&&e(i[s],t[a][s],o));for(var s in n[a])ir.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,or)};function hr(e){var t=function(e){var t={scanner:new te,locationMap:new Pn,filename:"<unknown>",needPositions:!1,onParseError:Bn,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Dn,createList:function(){return new m},createSingleNodeList:function(e){return(new m).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!==jn)return t}while(0!==t);return 0},eat:function(e){if(this.scanner.tokenType!==e){var t=this.scanner.tokenStart,n=Un[e]+" is expected";switch(e){case Fn:this.scanner.tokenType===Mn||this.scanner.tokenType===Wn?(t=this.scanner.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case qn:this.scanner.isDelim(35)&&(this.scanner.next(),t++,n="Name is expected");break;case Yn:this.scanner.tokenType===Hn&&(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(Mn),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(Nn(this.scanner.source,this.scanner.source.length-1)):this.locationMap.getLocation(this.scanner.tokenStart);throw new y(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]=Zn(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:Bn,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}}(e),n=function(e){var t=function(e){var t={};for(var n in e.node)if(Xn.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]=tr(0,r)}return t}(e),n={},r={};for(var a in t)Xn.call(t,a)&&null!==t[a]&&(n[a]=nr(t[a],!1),r[a]=nr(t[a],!0));var i=rr(n),o=rr(r),s=function(e,a){var s=Qn,l=Qn,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=Jn(a.enter),l=Jn(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=er(s,a.visit),l=er(l,a.visit)}if(s===Qn&&l===Qn)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}(e),r=function(e){function t(e){if(!Kn.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:Gn,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 Vn,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&&$n.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&&$n.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()}}(e),a=function(e){return{fromPlainObject:function(t){return e(t,{enter:function(e){e.children&&e.children instanceof m==0&&(e.children=(new m).fromArray(e.children))}}),t},toPlainObject:function(t){return e(t,{leave:function(e){e.children&&e.children instanceof m&&(e.children=e.children.toArray())}}),t}}}(n),i={List:m,SyntaxError:y,TokenStream:te,Lexer:zn,vendorPrefix:ue.vendorPrefix,keyword:ue.keyword,property:ue.property,isCustomProperty:ue.isCustomProperty,definitionSyntax:An,lexer:null,createLexer:function(e){return new zn(e,i,i.lexer.structure)},tokenize:Ee,parse:t,walk:n,generate:r,find:n.find,findLast:n.findLast,findAll:n.findAll,clone:ar,fromPlainObject:a.fromPlainObject,toPlainObject:a.toPlainObject,createSyntax:function(e){return hr(ur({},e))},fork:function(t){var n=ur({},e);return hr("function"==typeof t?t(n,Object.assign):ur(n,t))}};return i.lexer=new zn({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},i),i}var dr={generic:!0,types:{"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","track-group":"'(' [<string>* <track-minmax> <string>*]+ ')' ['[' <positive-integer> ']']?|<track-minmax>","track-list-v0":"[<string>* <track-group> <string>*]+|none","track-minmax":"minmax( <track-breadth> , <track-breadth> )|auto|<track-breadth>|fit-content",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,∞]>"},properties:{"--*":"<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:"block|contents|flex|flow|flow-root|grid|inline|inline-block|inline-flex|inline-grid|inline-list-item|inline-table|list-item|none|ruby|ruby-base|ruby-base-container|ruby-text|ruby-text-container|run-in|table|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|-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-control-character-visibility":"visible|hidden","-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-columns":"<track-list-v0>","-ms-grid-row-align":"start|end|center|stretch","-ms-grid-rows":"<track-list-v0>","-ms-hyphenate-limit-last":"none|always|column|page|spread","-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>]"}},pr=Ee.cmpChar,fr=Ee.isDigit,mr=Ee.TYPE,gr=mr.WhiteSpace,br=mr.Comment,yr=mr.Ident,kr=mr.Number,vr=mr.Dimension;function wr(e,t){var n=this.scanner.tokenStart+e,r=this.scanner.source.charCodeAt(n);for(43!==r&&45!==r||(t&&this.error("Number sign is not allowed"),n++);n<this.scanner.tokenEnd;n++)fr(this.scanner.source.charCodeAt(n))||this.error("Integer is expected",n)}function xr(e){return wr.call(this,0,e)}function Sr(e,t){if(!pr(this.scanner.source,this.scanner.tokenStart+e,t)){var n="";switch(t){case 110:n="N is expected";break;case 45:n="HyphenMinus is expected"}this.error(n,this.scanner.tokenStart+e)}}function _r(){for(var e=0,t=0,n=this.scanner.tokenType;n===gr||n===br;)n=this.scanner.lookupType(++e);if(n!==kr){if(!this.scanner.isDelim(43,e)&&!this.scanner.isDelim(45,e))return null;t=this.scanner.isDelim(43,e)?43:45;do{n=this.scanner.lookupType(++e)}while(n===gr||n===br);n!==kr&&(this.scanner.skip(e),xr.call(this,!0))}return e>0&&this.scanner.skip(e),0===t&&43!==(n=this.scanner.source.charCodeAt(this.scanner.tokenStart))&&45!==n&&this.error("Number sign is expected"),xr.call(this,0!==t),45===t?"-"+this.consume(kr):this.consume(kr)}var Cr={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var e=this.scanner.tokenStart,t=null,n=null;if(this.scanner.tokenType===kr)xr.call(this,!1),n=this.consume(kr);else if(this.scanner.tokenType===yr&&pr(this.scanner.source,this.scanner.tokenStart,45))switch(t="-1",Sr.call(this,1,110),this.scanner.getTokenLength()){case 2:this.scanner.next(),n=_r.call(this);break;case 3:Sr.call(this,2,45),this.scanner.next(),this.scanner.skipSC(),xr.call(this,!0),n="-"+this.consume(kr);break;default:Sr.call(this,2,45),wr.call(this,3,!0),this.scanner.next(),n=this.scanner.substrToCursor(e+2)}else if(this.scanner.tokenType===yr||this.scanner.isDelim(43)&&this.scanner.lookupType(1)===yr){var r=0;switch(t="1",this.scanner.isDelim(43)&&(r=1,this.scanner.next()),Sr.call(this,0,110),this.scanner.getTokenLength()){case 1:this.scanner.next(),n=_r.call(this);break;case 2:Sr.call(this,1,45),this.scanner.next(),this.scanner.skipSC(),xr.call(this,!0),n="-"+this.consume(kr);break;default:Sr.call(this,1,45),wr.call(this,2,!0),this.scanner.next(),n=this.scanner.substrToCursor(e+r+1)}}else if(this.scanner.tokenType===vr){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),i=(r=43===a||45===a,this.scanner.tokenStart+r);i<this.scanner.tokenEnd&&fr(this.scanner.source.charCodeAt(i));i++);i===this.scanner.tokenStart+r&&this.error("Integer is expected",this.scanner.tokenStart+r),Sr.call(this,i-this.scanner.tokenStart,110),t=this.scanner.source.substring(e,i),i+1===this.scanner.tokenEnd?(this.scanner.next(),n=_r.call(this)):(Sr.call(this,i-this.scanner.tokenStart+1,45),i+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),xr.call(this,!0),n="-"+this.consume(kr)):(wr.call(this,i-this.scanner.tokenStart+2,!0),this.scanner.next(),n=this.scanner.substrToCursor(i+1)))}else this.error();return null!==t&&43===t.charCodeAt(0)&&(t=t.substr(1)),null!==n&&43===n.charCodeAt(0)&&(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))}},zr=Ee.TYPE,Ar=zr.WhiteSpace,Tr=zr.Semicolon,Er=zr.LeftCurlyBracket,Pr=zr.Delim;function Lr(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===Ar?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function Or(){return 0}var Rr={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||Or)),r=n&&this.scanner.tokenStart>a?Lr.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:Or,leftCurlyBracket:function(e){return e===Er?1:0},leftCurlyBracketOrSemicolon:function(e){return e===Er||e===Tr?1:0},exclamationMarkOrSemicolon:function(e,t,n){return e===Pr&&33===t.charCodeAt(n)||e===Tr?1:0},semicolonIncluded:function(e){return e===Tr?2:0}}},Dr=Ee.TYPE,Nr=Rr.mode,Br=Dr.AtKeyword,Ir=Dr.Semicolon,Ur=Dr.LeftCurlyBracket,jr=Dr.RightCurlyBracket;function Fr(e){return this.Raw(e,Nr.leftCurlyBracketOrSemicolon,!0)}function Mr(){for(var e,t=1;e=this.scanner.lookupType(t);t++){if(e===jr)return!0;if(e===Ur||e===Br)return!1}return!1}var Wr={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(Br),t=(e=this.scanner.substrToCursor(n+1)).toLowerCase(),this.scanner.skipSC(),!1===this.scanner.eof&&this.scanner.tokenType!==Ur&&this.scanner.tokenType!==Ir&&(this.parseAtrulePrelude?"AtrulePrelude"===(r=this.parseWithFallback(this.AtrulePrelude.bind(this,e),Fr)).type&&null===r.children.head&&(r=null):r=Fr.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case Ir:this.scanner.next();break;case Ur:a=this.atrule.hasOwnProperty(t)&&"function"==typeof this.atrule[t].block?this.atrule[t].block.call(this):this.Block(Mr.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"},qr=Ee.TYPE,Yr=qr.Semicolon,Hr=qr.LeftCurlyBracket,Zr={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!==Hr&&this.scanner.tokenType!==Yr&&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"},Vr=Ee.TYPE,$r=Vr.Ident,Kr=Vr.String,Gr=Vr.Colon,Xr=Vr.LeftSquareBracket,Qr=Vr.RightSquareBracket;function Jr(){this.scanner.eof&&this.error("Unexpected end of input");var e=this.scanner.tokenStart,t=!1,n=!0;return this.scanner.isDelim(42)?(t=!0,n=!1,this.scanner.next()):this.scanner.isDelim(124)||this.eat($r),this.scanner.isDelim(124)?61!==this.scanner.source.charCodeAt(this.scanner.tokenStart+1)?(this.scanner.next(),this.eat($r)):t&&this.error("Identifier is expected",this.scanner.tokenEnd):t&&this.error("Vertical line is expected"),n&&this.scanner.tokenType===Gr&&(this.scanner.next(),this.eat($r)),{type:"Identifier",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}}function ea(){var e=this.scanner.tokenStart,t=this.scanner.source.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),61!==t&&(this.scanner.isDelim(61)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(e)}var ta={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(Xr),this.scanner.skipSC(),e=Jr.call(this),this.scanner.skipSC(),this.scanner.tokenType!==Qr&&(this.scanner.tokenType!==$r&&(n=ea.call(this),this.scanner.skipSC(),r=this.scanner.tokenType===Kr?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===$r&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(Qr),{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("]")}},na=Ee.TYPE,ra=Rr.mode,aa=na.WhiteSpace,ia=na.Comment,oa=na.Semicolon,sa=na.AtKeyword,la=na.LeftCurlyBracket,ca=na.RightCurlyBracket;function ua(e){return this.Raw(e,null,!0)}function ha(){return this.parseWithFallback(this.Rule,ua)}function da(e){return this.Raw(e,ra.semicolonIncluded,!0)}function pa(){if(this.scanner.tokenType===oa)return da.call(this,this.scanner.tokenIndex);var e=this.parseWithFallback(this.Declaration,da);return this.scanner.tokenType===oa&&this.scanner.next(),e}var fa={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(e){var t=e?pa:ha,n=this.scanner.tokenStart,r=this.createList();this.eat(la);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case ca:break e;case aa:case ia:this.scanner.next();break;case sa:r.push(this.parseWithFallback(this.Atrule,ua));break;default:r.push(t.call(this))}return this.scanner.eof||this.eat(ca),{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"},ma=Ee.TYPE,ga=ma.LeftSquareBracket,ba=ma.RightSquareBracket,ya={name:"Brackets",structure:{children:[[]]},parse:function(e,t){var n,r=this.scanner.tokenStart;return this.eat(ga),n=e.call(this,t),this.scanner.eof||this.eat(ba),{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("["),this.children(e),this.chunk("]")}},ka=Ee.TYPE.CDC,va={name:"CDC",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.eat(ka),{type:"CDC",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("--\x3e")}},wa=Ee.TYPE.CDO,xa={name:"CDO",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.eat(wa),{type:"CDO",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("\x3c!--")}},Sa=Ee.TYPE.Ident,_a={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(Sa)}},generate:function(e){this.chunk("."),this.chunk(e.name)}},Ca=Ee.TYPE.Ident,za={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===Ca&&!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)}},Aa=Ee.TYPE.Comment,Ta={name:"Comment",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=this.scanner.tokenEnd;return this.eat(Aa),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("*/")}},Ea=ue.isCustomProperty,Pa=Ee.TYPE,La=Rr.mode,Oa=Pa.Ident,Ra=Pa.Hash,Da=Pa.Colon,Na=Pa.Semicolon,Ba=Pa.Delim;function Ia(e){return this.Raw(e,La.exclamationMarkOrSemicolon,!0)}function Ua(e){return this.Raw(e,La.exclamationMarkOrSemicolon,!1)}function ja(){var e=this.scanner.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.scanner.eof&&this.scanner.tokenType!==Na&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(e)&&this.error(),t}var Fa={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var e,t=this.scanner.tokenStart,n=this.scanner.tokenIndex,r=Ma.call(this),a=Ea(r),i=a?this.parseCustomProperty:this.parseValue,o=a?Ua:Ia,s=!1;return this.scanner.skipSC(),this.eat(Da),a||this.scanner.skipSC(),e=i?this.parseWithFallback(ja,o):o.call(this,this.scanner.tokenIndex),this.scanner.isDelim(33)&&(s=Wa.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==Na&&!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 Ma(){var e=this.scanner.tokenStart;if(this.scanner.tokenType===Ba)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.isDelim(47)&&this.scanner.next()}return this.scanner.tokenType===Ra?this.eat(Ra):this.eat(Oa),this.scanner.substrToCursor(e)}function Wa(){this.eat(Ba),this.scanner.skipSC();var e=this.consume(Oa);return"important"===e||e}var qa=Ee.TYPE,Ya=Rr.mode,Ha=qa.WhiteSpace,Za=qa.Comment,Va=qa.Semicolon;function $a(e){return this.Raw(e,Ya.semicolonIncluded,!0)}var Ka={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var e=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case Ha:case Za:case Va:this.scanner.next();break;default:e.push(this.parseWithFallback(this.Declaration,$a))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,(function(e){"Declaration"===e.type&&this.chunk(";")}))}},Ga=V.consumeNumber,Xa=Ee.TYPE.Dimension,Qa={name:"Dimension",structure:{value:String,unit:String},parse:function(){var e=this.scanner.tokenStart,t=Ga(this.scanner.source,e);return this.eat(Xa),{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)}},Ja=Ee.TYPE.RightParenthesis,ei={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(Ja),{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"},ti=Ee.TYPE.Hash,ni={name:"HexColor",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return this.eat(ti),{type:"HexColor",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#"),this.chunk(e.value)}},ri=Ee.TYPE.Ident,ai={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(ri)}},generate:function(e){this.chunk(e.name)}},ii=Ee.TYPE.Hash,oi={name:"IdSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;return this.eat(ii),{type:"IdSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#"),this.chunk(e.name)}},si=Ee.TYPE,li=si.Ident,ci=si.Number,ui=si.Dimension,hi=si.LeftParenthesis,di=si.RightParenthesis,pi=si.Colon,fi=si.Delim,mi={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var e,t=this.scanner.tokenStart,n=null;if(this.eat(hi),this.scanner.skipSC(),e=this.consume(li),this.scanner.skipSC(),this.scanner.tokenType!==di){switch(this.eat(pi),this.scanner.skipSC(),this.scanner.tokenType){case ci:n=this.lookupNonWSType(1)===fi?this.Ratio():this.Number();break;case ui:n=this.Dimension();break;case li:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(di),{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(")")}},gi=Ee.TYPE,bi=gi.WhiteSpace,yi=gi.Comment,ki=gi.Ident,vi=gi.LeftParenthesis,wi={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 yi:this.scanner.next();continue;case bi:n=this.WhiteSpace();continue;case ki:t=this.Identifier();break;case vi: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)}},xi=Ee.TYPE.Comma,Si={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===xi);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e,(function(){this.chunk(",")}))}},_i=Ee.TYPE.Number,Ci={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(_i)}},generate:function(e){this.chunk(e.value)}},zi={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)}},Ai=Ee.TYPE,Ti=Ai.LeftParenthesis,Ei=Ai.RightParenthesis,Pi={name:"Parentheses",structure:{children:[[]]},parse:function(e,t){var n,r=this.scanner.tokenStart;return this.eat(Ti),n=e.call(this,t),this.scanner.eof||this.eat(Ei),{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("("),this.children(e),this.chunk(")")}},Li=V.consumeNumber,Oi=Ee.TYPE.Percentage,Ri={name:"Percentage",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=Li(this.scanner.source,e);return this.eat(Oi),{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("%")}},Di=Ee.TYPE,Ni=Di.Ident,Bi=Di.Function,Ii=Di.Colon,Ui=Di.RightParenthesis,ji={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t,n=this.scanner.tokenStart,r=null;return this.eat(Ii),this.scanner.tokenType===Bi?(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(Ui)):e=this.consume(Ni),{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"},Fi=Ee.TYPE,Mi=Fi.Ident,Wi=Fi.Function,qi=Fi.Colon,Yi=Fi.RightParenthesis,Hi={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t,n=this.scanner.tokenStart,r=null;return this.eat(qi),this.eat(qi),this.scanner.tokenType===Wi?(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(Yi)):e=this.consume(Mi),{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"},Zi=Ee.isDigit,Vi=Ee.TYPE,$i=Vi.Number,Ki=Vi.Delim;function Gi(){this.scanner.skipWS();for(var e=this.consume($i),t=0;t<e.length;t++){var n=e.charCodeAt(t);Zi(n)||46===n||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 Xi={name:"Ratio",structure:{left:String,right:String},parse:function(){var e,t=this.scanner.tokenStart,n=Gi.call(this);return this.scanner.skipWS(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.eat(Ki),e=Gi.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)}},Qi=Ee.TYPE,Ji=Rr.mode,eo=Qi.LeftCurlyBracket;function to(e){return this.Raw(e,Ji.leftCurlyBracket,!0)}function no(){var e=this.SelectorList();return"Raw"!==e.type&&!1===this.scanner.eof&&this.scanner.tokenType!==eo&&this.error(),e}var ro={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(no,to):to.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"},ao=Ee.TYPE.Comma,io={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var e=this.createList();!this.scanner.eof&&(e.push(this.Selector()),this.scanner.tokenType===ao);)this.scanner.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,(function(){this.chunk(",")}))},walkContext:"selector"},oo=Ee.TYPE.String,so={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(oo)}},generate:function(e){this.chunk(e.value)}},lo=Ee.TYPE,co=lo.WhiteSpace,uo=lo.Comment,ho=lo.AtKeyword,po=lo.CDO,fo=lo.CDC;function mo(e){return this.Raw(e,null,!1)}var go={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 co:this.scanner.next();continue;case uo:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}e=this.Comment();break;case po:e=this.CDO();break;case fo:e=this.CDC();break;case ho:e=this.parseWithFallback(this.Atrule,mo);break;default:e=this.parseWithFallback(this.Rule,mo)}n.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:n}},generate:function(e){this.children(e)},walkContext:"stylesheet"},bo=Ee.TYPE.Ident;function yo(){this.scanner.tokenType!==bo&&!1===this.scanner.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var ko={name:"TypeSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;return this.scanner.isDelim(124)?(this.scanner.next(),yo.call(this)):(yo.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),yo.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}},vo=Ee.isHexDigit,wo=Ee.cmpChar,xo=Ee.TYPE,So=Ee.NAME,_o=xo.Ident,Co=xo.Number,zo=xo.Dimension;function Ao(e,t){for(var n=this.scanner.tokenStart+e,r=0;n<this.scanner.tokenEnd;n++){var a=this.scanner.source.charCodeAt(n);if(45===a&&t&&0!==r)return 0===Ao.call(this,e+r+1,!1)&&this.error(),-1;vo(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 To(e){for(var t=0;this.scanner.isDelim(63);)++t>e&&this.error("Too many question marks"),this.scanner.next()}function Eo(e){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==e&&this.error(So[e]+" is expected")}function Po(){var e=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===_o?void((e=Ao.call(this,0,!0))>0&&To.call(this,6-e)):this.scanner.isDelim(63)?(this.scanner.next(),void To.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===Co?(Eo.call(this,43),e=Ao.call(this,1,!0),this.scanner.isDelim(63)?void To.call(this,6-e):this.scanner.tokenType===zo||this.scanner.tokenType===Co?(Eo.call(this,45),void Ao.call(this,1,!1)):void 0):this.scanner.tokenType===zo?(Eo.call(this,43),void((e=Ao.call(this,1,!0))>0&&To.call(this,6-e))):void this.error()}var Lo={name:"UnicodeRange",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return wo(this.scanner.source,e,117)||this.error("U is expected"),wo(this.scanner.source,e+1,43)||this.error("Plus sign is expected"),this.scanner.next(),Po.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.value)}},Oo=Ee.isWhiteSpace,Ro=Ee.cmpStr,Do=Ee.TYPE,No=Do.Function,Bo=Do.Url,Io=Do.RightParenthesis,Uo={name:"Url",structure:{value:["String","Raw"]},parse:function(){var e,t=this.scanner.tokenStart;switch(this.scanner.tokenType){case Bo:for(var n=t+4,r=this.scanner.tokenEnd-1;n<r&&Oo(this.scanner.source.charCodeAt(n));)n++;for(;n<r&&Oo(this.scanner.source.charCodeAt(r-1));)r--;e={type:"Raw",loc:this.getLocation(n,r),value:this.scanner.source.substring(n,r)},this.eat(Bo);break;case No:Ro(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(No),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(Io);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(")")}},jo=Ee.TYPE.WhiteSpace,Fo=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Mo={AnPlusB:Cr,Atrule:Wr,AtrulePrelude:Zr,AttributeSelector:ta,Block:fa,Brackets:ya,CDC:va,CDO:xa,ClassSelector:_a,Combinator:za,Comment:Ta,Declaration:Fa,DeclarationList:Ka,Dimension:Qa,Function:ei,HexColor:ni,Identifier:ai,IdSelector:oi,MediaFeature:mi,MediaQuery:wi,MediaQueryList:Si,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:Ci,Operator:zi,Parentheses:Pi,Percentage:Ri,PseudoClassSelector:ji,PseudoElementSelector:Hi,Ratio:Xi,Raw:Rr,Rule:ro,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:io,String:so,StyleSheet:go,TypeSelector:ko,UnicodeRange:Lo,Url:Uo,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(jo),Fo},generate:function(e){this.chunk(e.value)}}},Wo={generic:!0,types:dr.types,atrules:dr.atrules,properties:dr.properties,node:Mo},qo=Ee.cmpChar,Yo=Ee.cmpStr,Ho=Ee.TYPE,Zo=Ho.Ident,Vo=Ho.String,$o=Ho.Number,Ko=Ho.Function,Go=Ho.Url,Xo=Ho.Hash,Qo=Ho.Dimension,Jo=Ho.Percentage,es=Ho.LeftParenthesis,ts=Ho.LeftSquareBracket,ns=Ho.Comma,rs=Ho.Delim,as=function(e){switch(this.scanner.tokenType){case Xo:return this.HexColor();case ns:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case es:return this.Parentheses(this.readSequence,e.recognizer);case ts:return this.Brackets(this.readSequence,e.recognizer);case Vo:return this.String();case Qo:return this.Dimension();case Jo:return this.Percentage();case $o:return this.Number();case Ko:return Yo(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Go:return this.Url();case Zo:return qo(this.scanner.source,this.scanner.tokenStart,117)&&qo(this.scanner.source,this.scanner.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case rs: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)}},is={getNode:as},os=Ee.TYPE,ss=os.Delim,ls=os.Ident,cs=os.Dimension,us=os.Percentage,hs=os.Number,ds=os.Hash,ps=os.Colon,fs=os.LeftSquareBracket,ms={getNode:function(e){switch(this.scanner.tokenType){case fs:return this.AttributeSelector();case ds:return this.IdSelector();case ps:return this.scanner.lookupType(1)===ps?this.PseudoElementSelector():this.PseudoClassSelector();case ls:return this.TypeSelector();case hs:case us:return this.Percentage();case cs:46===this.scanner.source.charCodeAt(this.scanner.tokenStart)&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case ss:switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 43:case 62:case 126:return e.space=null,e.ignoreWSAfter=!0,this.Combinator();case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector()}}}},gs=function(){this.scanner.skipSC();var e=this.createSingleNodeList(this.IdSelector());return this.scanner.skipSC(),e},bs=Ee.TYPE,ys=Rr.mode,ks=bs.Comma,vs={AtrulePrelude:is,Selector:ms,Value:{getNode:as,"-moz-element":gs,element:gs,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===ks&&(e.push(this.Operator()),e.push(this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,ys.exclamationMarkOrSemicolon,!1))),e}}},ws=Ee.TYPE,xs=ws.String,Ss=ws.Ident,_s=ws.Url,Cs=ws.Function,zs=ws.LeftParenthesis,As={parse:{prelude:function(){var e=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case xs:e.push(this.String());break;case _s:case Cs:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.lookupNonWSType(0)!==Ss&&this.lookupNonWSType(0)!==zs||(e.push(this.WhiteSpace()),e.push(this.MediaQueryList())),e},block:null}},Ts=Ee.TYPE,Es=Ts.WhiteSpace,Ps=Ts.Comment,Ls=Ts.Ident,Os=Ts.Function,Rs=Ts.Colon,Ds=Ts.LeftParenthesis;function Ns(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function Bs(){return this.scanner.skipSC(),this.scanner.tokenType===Ls&&this.lookupNonWSType(1)===Rs?this.createSingleNodeList(this.Declaration()):Is.call(this)}function Is(){var e,t=this.createList(),n=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case Es:n=this.WhiteSpace();continue;case Ps:this.scanner.next();continue;case Os:e=this.Function(Ns,this.scope.AtrulePrelude);break;case Ls:e=this.Identifier();break;case Ds:e=this.Parentheses(Bs,this.scope.AtrulePrelude);break;default:break e}null!==n&&(t.push(n),n=null),t.push(e)}return t}var Us={parse:function(){return this.createSingleNodeList(this.SelectorList())}},js={parse:function(){return this.createSingleNodeList(this.Nth(!0))}},Fs={parse:function(){return this.createSingleNodeList(this.Nth(!1))}},Ms=function(e){return hr(ur({},e))}(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}(Wo,{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:vs,atrule:{"font-face":{parse:{prelude:null,block:function(){return this.Block(!0)}}},import:As,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=Is.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:Us,not:Us,"nth-child":js,"nth-last-child":js,"nth-last-of-type":Fs,"nth-of-type":Fs,slotted:{parse:function(){return this.createSingleNodeList(this.Selector())}}},node:Mo},{node:Mo}));const Ws=new Map([["background",new Set(["background-color","background-position","background-position-x","background-position-y","background-size","background-repeat","background-repeat-x","background-repeat-y","background-clip","background-origin","background-attachment","background-image"])],["background-position",new Set(["background-position-x","background-position-y"])],["background-repeat",new Set(["background-repeat-x","background-repeat-y"])],["font",new Set(["font-style","font-variant-caps","font-weight","font-stretch","font-size","line-height","font-family","font-size-adjust","font-kerning","font-optical-sizing","font-variant-alternates","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-language-override","font-feature-settings","font-variation-settings"])],["font-variant",new Set(["font-variant-caps","font-variant-numeric","font-variant-alternates","font-variant-ligatures","font-variant-east-asian"])],["outline",new Set(["outline-width","outline-style","outline-color"])],["border",new Set(["border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-width",new Set(["border-top-width","border-right-width","border-bottom-width","border-left-width"])],["border-style",new Set(["border-top-style","border-right-style","border-bottom-style","border-left-style"])],["border-color",new Set(["border-top-color","border-right-color","border-bottom-color","border-left-color"])],["border-block",new Set(["border-block-start-width","border-block-end-width","border-block-start-style","border-block-end-style","border-block-start-color","border-block-end-color"])],["border-block-start",new Set(["border-block-start-width","border-block-start-style","border-block-start-color"])],["border-block-end",new Set(["border-block-end-width","border-block-end-style","border-block-end-color"])],["border-inline",new Set(["border-inline-start-width","border-inline-end-width","border-inline-start-style","border-inline-end-style","border-inline-start-color","border-inline-end-color"])],["border-inline-start",new Set(["border-inline-start-width","border-inline-start-style","border-inline-start-color"])],["border-inline-end",new Set(["border-inline-end-width","border-inline-end-style","border-inline-end-color"])],["border-image",new Set(["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-radius",new Set(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"])],["padding",new Set(["padding-top","padding-right","padding-bottom","padding-left"])],["padding-block",new Set(["padding-block-start","padding-block-end"])],["padding-inline",new Set(["padding-inline-start","padding-inline-end"])],["margin",new Set(["margin-top","margin-right","margin-bottom","margin-left"])],["margin-block",new Set(["margin-block-start","margin-block-end"])],["margin-inline",new Set(["margin-inline-start","margin-inline-end"])],["inset",new Set(["top","right","bottom","left"])],["inset-block",new Set(["inset-block-start","inset-block-end"])],["inset-inline",new Set(["inset-inline-start","inset-inline-end"])],["flex",new Set(["flex-grow","flex-shrink","flex-basis"])],["flex-flow",new Set(["flex-direction","flex-wrap"])],["gap",new Set(["row-gap","column-gap"])],["transition",new Set(["transition-duration","transition-timing-function","transition-delay","transition-property"])],["grid",new Set(["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-flow","grid-auto-columns","grid-auto-rows"])],["grid-template",new Set(["grid-template-rows","grid-template-columns","grid-template-areas"])],["grid-row",new Set(["grid-row-start","grid-row-end"])],["grid-column",new Set(["grid-column-start","grid-column-end"])],["grid-gap",new Set(["grid-row-gap","grid-column-gap","row-gap","column-gap"])],["place-content",new Set(["align-content","justify-content"])],["place-items",new Set(["align-items","justify-items"])],["place-self",new Set(["align-self","justify-self"])],["columns",new Set(["column-width","column-count"])],["column-rule",new Set(["column-rule-width","column-rule-style","column-rule-color"])],["list-style",new Set(["list-style-type","list-style-position","list-style-image"])],["offset",new Set(["offset-position","offset-path","offset-distance","offset-rotate","offset-anchor"])],["overflow",new Set(["overflow-x","overflow-y"])],["overscroll-behavior",new Set(["overscroll-behavior-x","overscroll-behavior-y"])],["scroll-margin",new Set(["scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left"])],["scroll-padding",new Set(["scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left"])],["text-decoration",new Set(["text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness"])],["text-stroke",new Set(["text-stroke-color","text-stroke-width"])],["animation",new Set(["animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name"])],["mask",new Set(["mask-image","mask-mode","mask-repeat-x","mask-repeat-y","mask-position-x","mask-position-y","mask-clip","mask-origin","mask-size","mask-composite"])],["mask-repeat",new Set(["mask-repeat-x","mask-repeat-y"])],["mask-position",new Set(["mask-position-x","mask-position-y"])],["perspective-origin",new Set(["perspective-origin-x","perspective-origin-y"])],["transform-origin",new Set(["transform-origin-x","transform-origin-y","transform-origin-z"])]]),qs=new Map([Vs("animation","moz"),Vs("border-image","moz"),Vs("mask","moz"),Vs("transition","moz"),Vs("columns","moz"),Vs("text-stroke","moz"),Vs("column-rule","moz"),["-moz-border-end",new Set(["-moz-border-end-color","-moz-border-end-style","-moz-border-end-width"])],["-moz-border-start",new Set(["-moz-border-start-color","-moz-border-start-style","-moz-border-start-width"])],["-moz-outline-radius",new Set(["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"])]]),Ys=new Map([Vs("animation","webkit"),Vs("border-radius","webkit"),Vs("column-rule","webkit"),Vs("columns","webkit"),Vs("flex","webkit"),Vs("flex-flow","webkit"),Vs("mask","webkit"),Vs("text-stroke","webkit"),Vs("perspective-origin","webkit"),Vs("transform-origin","webkit"),Vs("transition","webkit"),["-webkit-border-start",new Set(["-webkit-border-start-color","-webkit-border-start-style","-webkit-border-start-width"])],["-webkit-border-before",new Set(["-webkit-border-before-color","-webkit-border-before-style","-webkit-border-before-width"])],["-webkit-border-end",new Set(["-webkit-border-end-color","-webkit-border-end-style","-webkit-border-end-width"])],["-webkit-border-after",new Set(["-webkit-border-after-color","-webkit-border-after-style","-webkit-border-after-width"])]]),Hs=["background-position","background-repeat","text-decoration"];qs.forEach((e,t)=>Ws.set(t,e)),Ys.forEach((e,t)=>Ws.set(t,e));const Zs=new Map;function Vs(e,t){const n=Ws.get(e);if(n)return[`-${t}-${e}`,new Set(Array.from(n,e=>`-${t}-${e}`))]}function $s(e,t){const n=Ws.get(e);return!!n&&n.has(t)}Ws.forEach((e,t)=>{e.forEach(e=>{Zs.get(e)||Zs.set(e,new Set),Zs.get(e).add(t)})});var Ks={isShorthand:function(e){return Ws.has(e)},isShorthandFor:$s,hasShorthand:function(e){return Zs.has(e)},hasShorthandWithin:function(e,t){return t.some(t=>$s(t,e))},getShorthands:function(e){return Zs.get(e)},preferredShorthand:function(e){return Hs.find(t=>Ws.get(t).has(e))}};const{preferredShorthand:Gs,getShorthands:Xs}=Ks;function Qs(e,t){return{type:"Declaration",important:Boolean(e.getPropertyPriority(t)),property:t,value:{type:"Raw",value:e.getPropertyValue(t)}}}var Js=function(e){const t=new Set,n=Array.from(e).reduce((n,r)=>{const a=Gs(r)||r;n.set(a,Qs(e,a));const i=Xs(r);return i&&i.forEach(e=>t.add(e)),n},new Map);return t.forEach(t=>{e.getPropertyValue(t)&&n.set(t,Qs(e,t))}),Array.from(n.values())};const el={2:{atrule:"charset",prelude:"charset"},3:{atrule:"import",prelude:"import"},10:{atrule:"namespace",prelude:"namespace"},1:{prelude:"selector",block:"style"},8:{prelude:"key",block:"style"},6:{atrule:"page",prelude:"selector",block:"style"},5:{atrule:"font-face",block:"style"},4:{atrule:"media",prelude:"condition",block:"nested"},12:{atrule:"supports",prelude:"condition",block:"nested"},13:{atrule:"document",prelude:"condition",block:"nested"},7:{atrule:"keyframes",prelude:"name",block:"nested"}};var tl=function e(t){return Array.from(t,t=>{const n=el[t.type],r={};if(n.atrule){r.type="Atrule";const[e,a]=t.cssText.match(new RegExp("^@(-\\w+-)?"+n.atrule));r.name=a?a+n.atrule:n.atrule}else r.type="Rule";let a;if("selector"===n.prelude?a=t.selectorText:"key"===n.prelude?a=t.keyText:"condition"===n.prelude?a=t.conditionText:"name"===n.prelude?a=t.name:"import"===n.prelude?a=`url("${t.href}") ${t.media.mediaText}`:"namespace"===n.prelude?a=`${t.prefix} url("${t.namespaceURI}")`:"charset"===n.prelude&&(a=`"${t.encoding}"`),a){const e=n.atrule?{context:"atrulePrelude",atrule:n.atrule}:{context:"selectorList"};r.prelude=Ms.toPlainObject(Ms.parse(a,e))}else r.prelude=null;return"style"===n.block?r.block={type:"Block",children:Js(t.style)}:"nested"===n.block?r.block={type:"Block",children:e(t.cssRules)}:r.block=null,r})};const nl=new Set(["before","after","first-line","first-letter"]);const{isShorthand:rl,isShorthandFor:al,hasShorthandWithin:il}=Ks,ol={"word-wrap":"overflow-wrap",clip:"clip-path"};function sl(e,t){const n=new Map;e.forEach(({type:e,property:t,important:r,value:{value:a}={}})=>{if("Declaration"!==e)return;let i=n.get(t);i||(i=new Map,n.set(t,i)),i.set(a,r)}),t.forEach(({type:e,property:t,important:r,value:{value:a}={}})=>{if("Declaration"!==e)return;if(il(t,Array.from(n.keys())))return;let i=n.get(t);if(i)if(i.has(a))i.get(a)!==r&&i.forEach((e,t)=>i.set(t,r));else{if(rl(t))return;i.clear()}else i=new Map,n.set(t,i);i.set(a,r)});const r=[];return n.forEach((e,t)=>{e.forEach((e,n)=>r.push({type:"Declaration",property:t,value:{type:"Raw",value:n},important:e}))}),r}function ll(e){return"Rule"===e.type||/^(-\w+-)?(page|font-face)$/.test(e.name)}function cl(e,t,n,r){for(let a=t;a<n;++a)r(e[a],a,e)}var ul=()=>{},hl=function(e,t=ul){t("[processInlineCss] processing inline css for",function(e){const t=Array.from(e.attributes).map(t=>"id"===t.name?"#"+t.value:"class"===t.name?Array.from(e.classList).map(e=>"."+e).join(""):`[${t.name}="${t.value}"]`).join("");return`${e.nodeName}${t}`}(e));try{const n=function(e){const t=Ms.parse(e,{context:"stylesheet",parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!1,parseCustomProperty:!1});return Ms.walk(t,{visit:"TypeSelector",enter(e,t){"from"===e.name?t.data={type:"Percentage",value:"0"}:"to"===e.name&&(t.data={type:"Percentage",value:"100"})}}),Ms.walk(t,{visit:"AtrulePrelude",enter(e){if(["import","namespace"].includes(this.atrule.name)){const t=e.children.toArray(),n="import"===e.name?0:t.length-1,r=t[n];let a;"String"===r.type?a=r.value.slice(1,-1):"Url"===r.type&&("String"===r.value.type?a=r.value.value.slice(1,-1):"Raw"===r.value.type&&(a=r.value.value)),a&&(t[n]={type:"Url",value:{type:"String",value:`"${a}"`}},e.children.fromArray(t))}}}),Ms.walk(t,{visit:"PseudoClassSelector",enter(e){nl.has(e.name)&&(e.type="PseudoElementSelector")}}),Ms.walk(t,{visit:"Selector",enter(e){const t=e.children.toArray();if(t.length>1){const n=t.filter((e,n)=>{const r=t[n+1],a=r?"PseudoClassSelector"===r.type||"PseudoElementSelector"===r.type:void 0;return!("*"===e.name&&"TypeSelector"===e.type&&a)});e.children.fromArray(n.length?n:null)}}}),Ms.walk(t,{visit:"AttributeSelector",enter(e){e.value&&"Identifier"===e.value.type&&(e.value.type="String",e.value.value=`"${e.value.name}"`,delete e.value.name)}}),Ms.toPlainObject(t)}(e.textContent);t("[processInlineCss] created AST for textContent");const r=tl(e.sheet.cssRules);t("[processInlineCss] created AST for CSSOM");const a=function e(t,n){let r=0;const a=[];return t.forEach(t=>{const i={};i.type=t.type,i.name=t.name,i.prelude=t.prelude,i.block=t.block;const o=function(e,t,n){return function(e,t,n){for(let r=t;r<e.length;++r)if(n(e[r]))return r;return-1}(e,t,e=>{return e.type===n.type&&e.name===n.name&&(a=e.prelude,i=n.prelude,!a&&!i||a.type===i.type&&function e(t,n){return!Array.isArray(t)&&!Array.isArray(n)||Array.isArray(t)&&Array.isArray(n)&&t.length===n.length&&t.every((t,r)=>{const a=n[r];return t.type===a.type&&((s=t.name)===(l=a.name)||s&&l&&s.name&&s.name===l.name)&&((i=t.value)===(o=a.value)||i.type===o.type&&i.value===o.value)&&e(t.children,a.children);var i,o,s,l})}(a.children,i.children))&&(!ll(n)||(t=e.block.children,(r=n.block.children).reduce((e,n)=>{var r;return e+("Declaration"===n.type&&(r=n.property,/^(-\w+-)/.test(r)||t.some(e=>function(e,t){const n=ol[e]||e,r=ol[t]||t;return n===r||al(r,n)||al(n,r)}(e.property,n.property)))?1:0)},0)>=r.length));var t,r,a,i})}(n,r,t);o>r&&cl(n,r,o,e=>a.push(e)),o>=0&&(r=o+1,function(e){return"Atrule"===e.type&&/^(-\w+-)?(media|supports|document|keyframes)$/.test(e.name)}(t)?i.block={type:"Block",children:e(t.block.children,n[o].block.children)}:ll(t)&&(i.block={type:"Block",children:sl(t.block.children,n[o].block.children)})),a.push(i)},[]),r<n.length&&cl(n,r,n.length,e=>a.push(e)),a}(n.children,r);t("[processInlineCss] merged AST");const i=Ms.generate(Ms.fromPlainObject({type:"StyleSheet",children:a}));return t("[processInlineCss] generated cssText of length",i.length),i}catch(n){return t("[processInlineCss] error while processing inline css:",n.message,n),e.textContent}},dl=function(e,{removeReverseProxyURLPrefixes:t}={}){const n=/url\((?!['"]?:)['"]?([^'")]*)['"]?\)/g,r=[];let a;for(;null!==(a=n.exec(e));)r.push(a[1]);return t?r.map(e=>{const t=e.match(/\/http(.*)$/);return t&&t.length?t[0].substring(1):e}):r},pl=function(e){let t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];let a=e.getPropertyValue(r);(/^\s*var\s*\(/.test(a)||/^--/.test(r))&&(a=a.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,e=>String.fromCodePoint(parseInt(e.substr(1).trim(),16))).replace(/\\([^0-9a-fA-F])/g,"$1"));const i=dl(a);t=t.concat(i)}return t};const fl=/(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;var ml=function(e){const t=(e.matches||e.msMatchesSelector).bind(e);let n=[];if(t("img[srcset],source[srcset]")&&(n=n.concat(function(e,t,n){const r=[],a=new RegExp(e.source,e.flags),i=a.global;let o;for(;(o=a.exec(t))&&(r.push(n(o)),i););return r}(fl,e.getAttribute("srcset"),e=>e[1]))),t('img[src],source[src],input[type="image"][src],audio[src],video[src]')&&n.push(e.getAttribute("src")),t("image,use")){const t=e.getAttribute("href")||e.getAttribute("xlink:href");t&&"#"!==t[0]&&n.push(t)}t("object")&&e.getAttribute("data")&&n.push(e.getAttribute("data")),t('link[rel~="stylesheet"], link[as="stylesheet"]')&&n.push(e.getAttribute("href")),t("video[poster]")&&n.push(e.getAttribute("poster"));const r=function(e){if(e.hasAttribute("style"))return pl(e.style)}(e);return r&&(n=n.concat(r)),n},gl=function(e){const t=tl(e.cssRules);return Ms.generate(Ms.fromPlainObject({type:"StyleSheet",children:t}))},bl=function(e){const{display:t}=e.ownerDocument.defaultView.getComputedStyle(e),{width:n,height:r}=e.getBoundingClientRect();return"none"===t||0===n||0===r};const yl=Symbol("raw");function kl(e){const t=function(e){if("undefined"==typeof window)return null;const t=window.Node.prototype.toString.apply(e).replace(/\[object (.*)]/,"$1");return window[t]}(e);return t?(n=e,r=t.prototype,new Proxy(Object.create(n),{get(e,t,a){if(t===yl)return n;const i=Reflect.get(r,t,n);return"function"==typeof i?function(){return i.apply(this===a?n:this,arguments)}:i}})):e;var n,r}kl.unwrap=function(e){return e[yl]||e};var vl=kl;const{absolutizeUrl:wl,isInlineFrame:xl,isAccessibleFrame:Sl}=s,_l=new Set(["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"]),Cl=/^on[a-z]+$/;function zl({attributes:e={}}){return Object.keys(e).filter(t=>e[t]&&e[t].name)}function Al(e,t,n){const r=e.find(e=>e.name===t);r?r.value=n:e.push({name:t,value:n})}function Tl(e){return Array.from(e.adoptedStyleSheets).map(gl)}var El,Pl=function(e,t,n=ul){const r=[{nodeType:Node.DOCUMENT_NODE}],a=[e],i=[],o=[],s=[],l=[];let u=[];const h=[];return r[0].childNodeIndexes=function e(r,d){if(!d||0===d.length)return null;const p=[];return Array.prototype.forEach.call(d,d=>{const f=function r(d,p){const f=vl(p);let m;if([Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(f.nodeType)){if(f.hasAttribute&&f.hasAttribute("data-applitools-skip"))return null;if("SCRIPT"===f.nodeName)m=function(e){return{nodeType:Node.ELEMENT_NODE,nodeName:"SCRIPT",attributes:zl(e).map(t=>{const n=e.attributes[t].name;return{name:n,value:Cl.test(n)?"":e.attributes[t].value}}).filter(e=>"src"!==e.name),childNodeIndexes:[]}}(f);else{if(m=function(e){const t={nodeType:e.nodeType,nodeName:e.nodeName,attributes:zl(e).map(t=>{let n=e.attributes[t].value;const r=e.attributes[t].name;return n.includes("blob:")?n=n.replace(/blob:/g,""):Cl.test(r)?n="":"IFRAME"===e.nodeName&&Sl(e)&&"src"===r&&"about:blank"!==e.contentDocument.location.href&&e.contentDocument.location.href!==wl(n,e.ownerDocument.location.href)?n=e.contentDocument.location.href:"style"===r&&(n=function(e){const t={type:"DeclarationList",children:Js(e)};return Ms.generate(t)}(e.style)),{name:r,value:n}})};if("INPUT"===e.tagName&&["checkbox","radio"].includes(e.type)){if(e.attributes.checked&&!e.checked){const e=t.attributes.findIndex(e=>"checked"===e.name);t.attributes.splice(e,1)}!e.attributes.checked&&e.checked&&t.attributes.push({name:"checked"}),e.indeterminate&&t.attributes.push({name:"data-applitools-js-properties",value:JSON.stringify({indeterminate:!0})})}return"INPUT"===e.tagName&&_l.has(e.type)&&(e.attributes.value&&e.attributes.value.value)!==e.value&&Al(t.attributes,"value",e.value),"OPTION"===e.tagName&&e.parentElement.selectedOptions&&Array.from(e.parentElement.selectedOptions).indexOf(vl.unwrap(e))>-1&&Al(t.attributes,"selected",""),"STYLE"===e.tagName&&e.sheet&&e.sheet.disabled&&t.attributes.push({name:"data-applitools-disabled",value:""}),"LINK"===e.tagName&&"text/css"===e.type&&e.sheet&&e.sheet.disabled&&Al(t.attributes,"disabled",""),t}(f),"STYLE"===f.nodeName&&f.sheet&&f.sheet.cssRules.length?(d.push(function(e,t){return{nodeType:Node.TEXT_NODE,nodeValue:hl(e,t)}}(f,n)),m.childNodeIndexes=[d.length-1]):"TEXTAREA"===f.tagName&&f.value!==f.textContent?(d.push(function(e){return{nodeType:Node.TEXT_NODE,nodeValue:e.value}}(f)),m.childNodeIndexes=[d.length-1]):m.childNodeIndexes=f.childNodes.length?e(d,f.childNodes):[],f.shadowRoot&&(m.shadowRootIndex=r(d,f.shadowRoot),a.push(f.shadowRoot)),"CANVAS"===f.nodeName&&!bl(p)){const e=wl(`applitools-canvas-${c()}.png`,t);m.attributes.push({name:"data-applitools-src",value:e}),i.push({element:f,cdtNode:m,url:e})}if("IFRAME"===f.nodeName){const e=c();if(f.setAttribute("data-applitools-selector",e),bl(p))m.attributes.forEach(e=>{"src"!==e.name&&"srcdoc"!==e.name||(m.attributes.push({name:"data-applitools-original-"+e.name,value:e.value}),e.value="")});else if(Sl(p))if(xl(f)){const e=wl("?applitools-iframe="+c(),t);m.attributes.push({name:"data-applitools-src",value:e}),o.push({element:f,url:e})}else{const e=f.contentDocument.location.href,t=wl("?applitools-iframe="+c(),e);m.attributes.push({name:"data-applitools-src",value:t}),s.push({element:f,url:t})}else{const t=`[data-applitools-selector="${e}"]`;l.push({selector:t,index:d.length})}}f.adoptedStyleSheets&&f.adoptedStyleSheets.length>0&&(m.exp_adoptedStyleSheets=Tl(f))}if(f.nodeType===Node.ELEMENT_NODE){const e=ml(f);e.length>0&&(u=u.concat(e));const t=function(e){return"IMG"===e.tagName&&/^blob:/.test(e.src)?{element:e,url:e.src.replace(/^blob:/,"")}:null}(f);t&&h.push({element:t.element,cdtNode:m,url:t.url})}}else f.nodeType===Node.TEXT_NODE?m=function(e){return{nodeType:Node.TEXT_NODE,nodeValue:e.nodeValue}}(f):f.nodeType===Node.DOCUMENT_TYPE_NODE&&(m=function(e){return{nodeType:Node.DOCUMENT_TYPE_NODE,nodeName:e.nodeName}}(f));return m?(d.push(m),d.length-1):null}(r,d);null!==f&&p.push(f)}),p}(r,e.childNodes),e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&(r[0].exp_adoptedStyleSheets=Tl(e)),{cdt:r,docRoots:a,canvasElements:i,frames:s,inlineFrames:o,crossFrames:l,linkUrls:u,imageBlobs:h}},Ll=function(e){const t=[];return new Set(e).forEach(e=>e&&t.push(e)),t},Ol=function(e){return e.reduce(({resourceUrls:e,blobsObj:t},{resourceUrls:n,blobsObj:r})=>({resourceUrls:Ll(e.concat(n)),blobsObj:Object.assign(t,r)}),{resourceUrls:[],blobsObj:{}})},Rl=function({processResource:e,aggregateResourceUrlsAndBlobs:t}){return function n({documents:r,urls:a,forceCreateStyle:i=!1,skipResources:o}){return Promise.all(a.map(t=>e({url:t,documents:r,getResourceUrlsAndBlobs:n,forceCreateStyle:i,skipResources:o}))).then(e=>t(e))}},Dl=(function(e,t){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var a in n)r(n,a)&&(e[a]=n[a])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,n,r,a){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),a);else for(var i=0;i<r;i++)e[a+i]=t[n+i]},flattenChunks:function(e){var t,n,r,a,i,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),a=0,t=0,n=e.length;t<n;t++)i=e[t],o.set(i,a),a+=i.length;return o}},i={arraySet:function(e,t,n,r,a){for(var i=0;i<r;i++)e[a+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,a)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(n)}(El={exports:{}},El.exports),El.exports);function Nl(e){for(var t=e.length;--t>=0;)e[t]=0}var Bl=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Il=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ul=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],jl=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Fl=new Array(576);Nl(Fl);var Ml=new Array(60);Nl(Ml);var Wl=new Array(512);Nl(Wl);var ql=new Array(256);Nl(ql);var Yl=new Array(29);Nl(Yl);var Hl,Zl,Vl,$l=new Array(30);function Kl(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}function Gl(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Xl(e){return e<256?Wl[e]:Wl[256+(e>>>7)]}function Ql(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Jl(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,Ql(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function ec(e,t,n){Jl(e,n[2*t],n[2*t+1])}function tc(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function nc(e,t,n){var r,a,i=new Array(16),o=0;for(r=1;r<=15;r++)i[r]=o=o+n[r-1]<<1;for(a=0;a<=t;a++){var s=e[2*a+1];0!==s&&(e[2*a]=tc(i[s]++,s))}}function rc(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function ac(e){e.bi_valid>8?Ql(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ic(e,t,n,r){var a=2*t,i=2*n;return e[a]<e[i]||e[a]===e[i]&&r[t]<=r[n]}function oc(e,t,n){for(var r=e.heap[n],a=n<<1;a<=e.heap_len&&(a<e.heap_len&&ic(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!ic(t,r,e.heap[a],e.depth));)e.heap[n]=e.heap[a],n=a,a<<=1;e.heap[n]=r}function sc(e,t,n){var r,a,i,o,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],a=e.pending_buf[e.l_buf+s],s++,0===r?ec(e,a,t):(ec(e,(i=ql[a])+256+1,t),0!==(o=Bl[i])&&Jl(e,a-=Yl[i],o),ec(e,i=Xl(--r),n),0!==(o=Il[i])&&Jl(e,r-=$l[i],o))}while(s<e.last_lit);ec(e,256,t)}function lc(e,t){var n,r,a,i=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(a=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[a]=0,e.opt_len--,s&&(e.static_len-=o[2*a+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)oc(e,i,n);a=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],oc(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*a]=i[2*n]+i[2*r],e.depth[a]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=a,e.heap[1]=a++,oc(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,a,i,o,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,f=t.stat_desc.max_length,m=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=l[2*l[2*(r=e.heap[n])+1]+1]+1)>f&&(i=f,m++),l[2*r+1]=i,r>c||(e.bl_count[i]++,o=0,r>=p&&(o=d[r-p]),s=l[2*r],e.opt_len+=s*(i+o),h&&(e.static_len+=s*(u[2*r+1]+o)));if(0!==m){do{for(i=f-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[f]--,m-=2}while(m>0);for(i=f;0!==i;i--)for(r=e.bl_count[i];0!==r;)(a=e.heap[--n])>c||(l[2*a+1]!==i&&(e.opt_len+=(i-l[2*a+1])*l[2*a],l[2*a+1]=i),r--)}}(e,t),nc(i,c,e.bl_count)}function cc(e,t,n){var r,a,i=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)a=o,o=t[2*(r+1)+1],++s<l&&a===o||(s<c?e.bl_tree[2*a]+=s:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=a,0===o?(l=138,c=3):a===o?(l=6,c=3):(l=7,c=4))}function uc(e,t,n){var r,a,i=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),r=0;r<=n;r++)if(a=o,o=t[2*(r+1)+1],!(++s<l&&a===o)){if(s<c)do{ec(e,a,e.bl_tree)}while(0!=--s);else 0!==a?(a!==i&&(ec(e,a,e.bl_tree),s--),ec(e,16,e.bl_tree),Jl(e,s-3,2)):s<=10?(ec(e,17,e.bl_tree),Jl(e,s-3,3)):(ec(e,18,e.bl_tree),Jl(e,s-11,7));s=0,i=a,0===o?(l=138,c=3):a===o?(l=6,c=3):(l=7,c=4)}}Nl($l);var hc=!1;function dc(e,t,n,r){Jl(e,0+(r?1:0),3),function(e,t,n,r){ac(e),Ql(e,n),Ql(e,~n),Dl.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}var pc,fc={_tr_init:function(e){hc||(function(){var e,t,n,r,a,i=new Array(16);for(n=0,r=0;r<28;r++)for(Yl[r]=n,e=0;e<1<<Bl[r];e++)ql[n++]=r;for(ql[n-1]=r,a=0,r=0;r<16;r++)for($l[r]=a,e=0;e<1<<Il[r];e++)Wl[a++]=r;for(a>>=7;r<30;r++)for($l[r]=a<<7,e=0;e<1<<Il[r]-7;e++)Wl[256+a++]=r;for(t=0;t<=15;t++)i[t]=0;for(e=0;e<=143;)Fl[2*e+1]=8,e++,i[8]++;for(;e<=255;)Fl[2*e+1]=9,e++,i[9]++;for(;e<=279;)Fl[2*e+1]=7,e++,i[7]++;for(;e<=287;)Fl[2*e+1]=8,e++,i[8]++;for(nc(Fl,287,i),e=0;e<30;e++)Ml[2*e+1]=5,Ml[2*e]=tc(e,5);Hl=new Kl(Fl,Bl,257,286,15),Zl=new Kl(Ml,Il,0,30,15),Vl=new Kl(new Array(0),Ul,0,19,7)}(),hc=!0),e.l_desc=new Gl(e.dyn_ltree,Hl),e.d_desc=new Gl(e.dyn_dtree,Zl),e.bl_desc=new Gl(e.bl_tree,Vl),e.bi_buf=0,e.bi_valid=0,rc(e)},_tr_stored_block:dc,_tr_flush_block:function(e,t,n,r){var a,i,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),lc(e,e.l_desc),lc(e,e.d_desc),o=function(e){var t;for(cc(e,e.dyn_ltree,e.l_desc.max_code),cc(e,e.dyn_dtree,e.d_desc.max_code),lc(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*jl[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=a&&(a=i)):a=i=n+5,n+4<=a&&-1!==t?dc(e,t,n,r):4===e.strategy||i===a?(Jl(e,2+(r?1:0),3),sc(e,Fl,Ml)):(Jl(e,4+(r?1:0),3),function(e,t,n,r){var a;for(Jl(e,t-257,5),Jl(e,n-1,5),Jl(e,r-4,4),a=0;a<r;a++)Jl(e,e.bl_tree[2*jl[a]+1],3);uc(e,e.dyn_ltree,t-1),uc(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),sc(e,e.dyn_ltree,e.dyn_dtree)),rc(e),r&&ac(e)},_tr_tally:function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(ql[n]+256+1)]++,e.dyn_dtree[2*Xl(t)]++),e.last_lit===e.lit_bufsize-1},_tr_align:function(e){Jl(e,2,3),ec(e,256,Fl),function(e){16===e.bi_valid?(Ql(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},mc=function(e,t,n,r){for(var a=65535&e|0,i=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{i=i+(a=a+t[r++]|0)|0}while(--o);a%=65521,i%=65521}return a|i<<16|0},gc=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}(),bc=function(e,t,n,r){var a=gc,i=r+n;e^=-1;for(var o=r;o<i;o++)e=e>>>8^a[255&(e^t[o])];return-1^e},yc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function kc(e,t){return e.msg=yc[t],t}function vc(e){return(e<<1)-(e>4?9:0)}function wc(e){for(var t=e.length;--t>=0;)e[t]=0}function xc(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Dl.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Sc(e,t){fc._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,xc(e.strm)}function _c(e,t){e.pending_buf[e.pending++]=t}function Cc(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function zc(e,t){var n,r,a=e.max_chain_length,i=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,c=e.window,u=e.w_mask,h=e.prev,d=e.strstart+258,p=c[i+o-1],f=c[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+o]===f&&c[n+o-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<d);if(r=258-(d-i),i=d-258,r>o){if(e.match_start=t,o=r,r>=s)break;p=c[i+o-1],f=c[i+o]}}}while((t=h[t&u])>l&&0!=--a);return o<=e.lookahead?o:e.lookahead}function Ac(e){var t,n,r,a,i,o,s,l,c,u,h=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-262)){Dl.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=h?r-h:0}while(--n);t=n=h;do{r=e.prev[--t],e.prev[t]=r>=h?r-h:0}while(--n);a+=h}if(0===e.strm.avail_in)break;if(o=e.strm,s=e.window,l=e.strstart+e.lookahead,c=a,u=void 0,(u=o.avail_in)>c&&(u=c),n=0===u?0:(o.avail_in-=u,Dl.arraySet(s,o.input,o.next_in,u,l),1===o.state.wrap?o.adler=mc(o.adler,s,u,l):2===o.state.wrap&&(o.adler=bc(o.adler,s,u,l)),o.next_in+=u,o.total_in+=u,u),e.lookahead+=n,e.lookahead+e.insert>=3)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+3-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function Tc(e,t){for(var n,r;;){if(e.lookahead<262){if(Ac(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=zc(e,n)),e.match_length>=3)if(r=fc._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=fc._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Sc(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(Sc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Sc(e,!1),0===e.strm.avail_out)?1:2}function Ec(e,t){for(var n,r,a;;){if(e.lookahead<262){if(Ac(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=zc(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,r=fc._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Sc(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=fc._tr_tally(e,0,e.window[e.strstart-1]))&&Sc(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=fc._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(Sc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Sc(e,!1),0===e.strm.avail_out)?1:2}function Pc(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}function Lc(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Dl.Buf16(1146),this.dyn_dtree=new Dl.Buf16(122),this.bl_tree=new Dl.Buf16(78),wc(this.dyn_ltree),wc(this.dyn_dtree),wc(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Dl.Buf16(16),this.heap=new Dl.Buf16(573),wc(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Dl.Buf16(573),wc(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Oc(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,fc._tr_init(t),0):kc(e,-2)}function Rc(e){var t,n=Oc(e);return 0===n&&((t=e.state).window_size=2*t.w_size,wc(t.head),t.max_lazy_match=pc[t.level].max_lazy,t.good_match=pc[t.level].good_length,t.nice_match=pc[t.level].nice_length,t.max_chain_length=pc[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function Dc(e,t,n,r,a,i){if(!e)return-2;var o=1;if(-1===t&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),a<1||a>9||8!==n||r<8||r>15||t<0||t>9||i<0||i>4)return kc(e,-2);8===r&&(r=9);var s=new Lc;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Dl.Buf8(2*s.w_size),s.head=new Dl.Buf16(s.hash_size),s.prev=new Dl.Buf16(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Dl.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=i,s.method=n,Rc(e)}pc=[new Pc(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ac(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Sc(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(Sc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Sc(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Sc(e,!1),e.strm.avail_out),1)})),new Pc(4,4,8,4,Tc),new Pc(4,5,16,8,Tc),new Pc(4,6,32,32,Tc),new Pc(4,4,16,16,Ec),new Pc(8,16,32,32,Ec),new Pc(8,16,128,128,Ec),new Pc(8,32,128,256,Ec),new Pc(32,128,258,1024,Ec),new Pc(32,258,258,4096,Ec)];var Nc={deflateInit:function(e,t){return Dc(e,t,8,15,8,0)},deflateInit2:Dc,deflateReset:Rc,deflateResetKeep:Oc,deflateSetHeader:function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},deflate:function(e,t){var n,r,a,i;if(!e||!e.state||t>5||t<0)return e?kc(e,-2):-2;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&4!==t)return kc(e,0===e.avail_out?-5:-2);if(r.strm=e,n=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,_c(r,31),_c(r,139),_c(r,8),r.gzhead?(_c(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),_c(r,255&r.gzhead.time),_c(r,r.gzhead.time>>8&255),_c(r,r.gzhead.time>>16&255),_c(r,r.gzhead.time>>24&255),_c(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),_c(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(_c(r,255&r.gzhead.extra.length),_c(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=bc(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(_c(r,0),_c(r,0),_c(r,0),_c(r,0),_c(r,0),_c(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),_c(r,3),r.status=113);else{var o=8+(r.w_bits-8<<4)<<8;o|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(o|=32),o+=31-o%31,r.status=113,Cc(r,o),0!==r.strstart&&(Cc(r,e.adler>>>16),Cc(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(e.adler=bc(e.adler,r.pending_buf,r.pending-a,a)),xc(e),a=r.pending,r.pending!==r.pending_buf_size));)_c(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=bc(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=bc(e.adler,r.pending_buf,r.pending-a,a)),xc(e),a=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,_c(r,i)}while(0!==i);r.gzhead.hcrc&&r.pending>a&&(e.adler=bc(e.adler,r.pending_buf,r.pending-a,a)),0===i&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=bc(e.adler,r.pending_buf,r.pending-a,a)),xc(e),a=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,_c(r,i)}while(0!==i);r.gzhead.hcrc&&r.pending>a&&(e.adler=bc(e.adler,r.pending_buf,r.pending-a,a)),0===i&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&xc(e),r.pending+2<=r.pending_buf_size&&(_c(r,255&e.adler),_c(r,e.adler>>8&255),e.adler=0,r.status=113)):r.status=113),0!==r.pending){if(xc(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&vc(t)<=vc(n)&&4!==t)return kc(e,-5);if(666===r.status&&0!==e.avail_in)return kc(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&666!==r.status){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Ac(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=fc._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Sc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Sc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Sc(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,a,i,o=e.window;;){if(e.lookahead<=258){if(Ac(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[a=e.strstart-1])===o[++a]&&r===o[++a]&&r===o[++a]){i=e.strstart+258;do{}while(r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&a<i);e.match_length=258-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=fc._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=fc._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Sc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Sc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Sc(e,!1),0===e.strm.avail_out)?1:2}(r,t):pc[r.level].func(r,t);if(3!==s&&4!==s||(r.status=666),1===s||3===s)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===t?fc._tr_align(r):5!==t&&(fc._tr_stored_block(r,0,0,!1),3===t&&(wc(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),xc(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(_c(r,255&e.adler),_c(r,e.adler>>8&255),_c(r,e.adler>>16&255),_c(r,e.adler>>24&255),_c(r,255&e.total_in),_c(r,e.total_in>>8&255),_c(r,e.total_in>>16&255),_c(r,e.total_in>>24&255)):(Cc(r,e.adler>>>16),Cc(r,65535&e.adler)),xc(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},deflateEnd:function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?kc(e,-2):(e.state=null,113===t?kc(e,-3):0):-2},deflateSetDictionary:function(e,t){var n,r,a,i,o,s,l,c,u=t.length;if(!e||!e.state)return-2;if(2===(i=(n=e.state).wrap)||1===i&&42!==n.status||n.lookahead)return-2;for(1===i&&(e.adler=mc(e.adler,t,u,0)),n.wrap=0,u>=n.w_size&&(0===i&&(wc(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new Dl.Buf8(n.w_size),Dl.arraySet(c,t,u-n.w_size,n.w_size,0),t=c,u=n.w_size),o=e.avail_in,s=e.next_in,l=e.input,e.avail_in=u,e.next_in=0,e.input=t,Ac(n);n.lookahead>=3;){r=n.strstart,a=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=2,Ac(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=o,n.wrap=i,0},deflateInfo:"pako deflate (from Nodeca project)"},Bc=!0,Ic=!0;try{String.fromCharCode.apply(null,[0])}catch(t){Bc=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ic=!1}for(var Uc=new Dl.Buf8(256),jc=0;jc<256;jc++)Uc[jc]=jc>=252?6:jc>=248?5:jc>=240?4:jc>=224?3:jc>=192?2:1;function Fc(e,t){if(t<65534&&(e.subarray&&Ic||!e.subarray&&Bc))return String.fromCharCode.apply(null,Dl.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}Uc[254]=Uc[254]=1;var Mc=function(e){var t,n,r,a,i,o=e.length,s=0;for(a=0;a<o;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Dl.Buf8(s),i=0,a=0;i<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},Wc=function(e){return Fc(e,e.length)},qc=function(e,t){var n,r,a,i,o=t||e.length,s=new Array(2*o);for(r=0,n=0;n<o;)if((a=e[n++])<128)s[r++]=a;else if((i=Uc[a])>4)s[r++]=65533,n+=i-1;else{for(a&=2===i?31:3===i?15:7;i>1&&n<o;)a=a<<6|63&e[n++],i--;i>1?s[r++]=65533:a<65536?s[r++]=a:(a-=65536,s[r++]=55296|a>>10&1023,s[r++]=56320|1023&a)}return Fc(s,r)},Yc=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+Uc[e[n]]>t?n:t},Hc=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Zc=Object.prototype.toString;function Vc(e){if(!(this instanceof Vc))return new Vc(e);this.options=Dl.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Hc,this.strm.avail_out=0;var n=Nc.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(yc[n]);if(t.header&&Nc.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?Mc(t.dictionary):"[object ArrayBuffer]"===Zc.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=Nc.deflateSetDictionary(this.strm,r)))throw new Error(yc[n]);this._dict_set=!0}}function $c(e,t){var n=new Vc(t);if(n.push(e,!0),n.err)throw n.msg||yc[n.err];return n.result}Vc.prototype.push=function(e,t){var n,r,a=this.strm,i=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=Mc(e):"[object ArrayBuffer]"===Zc.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new Dl.Buf8(i),a.next_out=0,a.avail_out=i),1!==(n=Nc.deflate(a,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(Wc(Dl.shrinkBuf(a.output,a.next_out))):this.onData(Dl.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==n);return 4===r?(n=Nc.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),a.avail_out=0,!0)},Vc.prototype.onData=function(e){this.chunks.push(e)},Vc.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Dl.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Kc={Deflate:Vc,deflate:$c,deflateRaw:function(e,t){return(t=t||{}).raw=!0,$c(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,$c(e,t)}},Gc=function(e,t){var n,r,a,i,o,s,l,c,u,h,d,p,f,m,g,b,y,k,v,w,x,S,_,C,z;n=e.state,r=e.next_in,C=e.input,a=r+(e.avail_in-5),i=e.next_out,z=e.output,o=i-(t-e.avail_out),s=i+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,h=n.wnext,d=n.window,p=n.hold,f=n.bits,m=n.lencode,g=n.distcode,b=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{f<15&&(p+=C[r++]<<f,f+=8,p+=C[r++]<<f,f+=8),k=m[p&b];t:for(;;){if(p>>>=v=k>>>24,f-=v,0==(v=k>>>16&255))z[i++]=65535&k;else{if(!(16&v)){if(0==(64&v)){k=m[(65535&k)+(p&(1<<v)-1)];continue t}if(32&v){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&k,(v&=15)&&(f<v&&(p+=C[r++]<<f,f+=8),w+=p&(1<<v)-1,p>>>=v,f-=v),f<15&&(p+=C[r++]<<f,f+=8,p+=C[r++]<<f,f+=8),k=g[p&y];n:for(;;){if(p>>>=v=k>>>24,f-=v,!(16&(v=k>>>16&255))){if(0==(64&v)){k=g[(65535&k)+(p&(1<<v)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&k,f<(v&=15)&&(p+=C[r++]<<f,(f+=8)<v&&(p+=C[r++]<<f,f+=8)),(x+=p&(1<<v)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=v,f-=v,x>(v=i-o)){if((v=x-v)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,_=d,0===h){if(S+=c-v,v<w){w-=v;do{z[i++]=d[S++]}while(--v);S=i-x,_=z}}else if(h<v){if(S+=c+h-v,(v-=h)<w){w-=v;do{z[i++]=d[S++]}while(--v);if(S=0,h<w){w-=v=h;do{z[i++]=d[S++]}while(--v);S=i-x,_=z}}}else if(S+=h-v,v<w){w-=v;do{z[i++]=d[S++]}while(--v);S=i-x,_=z}for(;w>2;)z[i++]=_[S++],z[i++]=_[S++],z[i++]=_[S++],w-=3;w&&(z[i++]=_[S++],w>1&&(z[i++]=_[S++]))}else{S=i-x;do{z[i++]=z[S++],z[i++]=z[S++],z[i++]=z[S++],w-=3}while(w>2);w&&(z[i++]=z[S++],w>1&&(z[i++]=z[S++]))}break}}break}}while(r<a&&i<s);r-=w=f>>3,p&=(1<<(f-=w<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<a?a-r+5:5-(r-a),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=p,n.bits=f},Xc=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Qc=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Jc=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],eu=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],tu=function(e,t,n,r,a,i,o,s){var l,c,u,h,d,p,f,m,g,b=s.bits,y=0,k=0,v=0,w=0,x=0,S=0,_=0,C=0,z=0,A=0,T=null,E=0,P=new Dl.Buf16(16),L=new Dl.Buf16(16),O=null,R=0;for(y=0;y<=15;y++)P[y]=0;for(k=0;k<r;k++)P[t[n+k]]++;for(x=b,w=15;w>=1&&0===P[w];w--);if(x>w&&(x=w),0===w)return a[i++]=20971520,a[i++]=20971520,s.bits=1,0;for(v=1;v<w&&0===P[v];v++);for(x<v&&(x=v),C=1,y=1;y<=15;y++)if(C<<=1,(C-=P[y])<0)return-1;if(C>0&&(0===e||1!==w))return-1;for(L[1]=0,y=1;y<15;y++)L[y+1]=L[y]+P[y];for(k=0;k<r;k++)0!==t[n+k]&&(o[L[t[n+k]]++]=k);if(0===e?(T=O=o,p=19):1===e?(T=Xc,E-=257,O=Qc,R-=257,p=256):(T=Jc,O=eu,p=-1),A=0,k=0,y=v,d=i,S=x,_=0,u=-1,h=(z=1<<x)-1,1===e&&z>852||2===e&&z>592)return 1;for(;;){f=y-_,o[k]<p?(m=0,g=o[k]):o[k]>p?(m=O[R+o[k]],g=T[E+o[k]]):(m=96,g=0),l=1<<y-_,v=c=1<<S;do{a[d+(A>>_)+(c-=l)]=f<<24|m<<16|g|0}while(0!==c);for(l=1<<y-1;A&l;)l>>=1;if(0!==l?(A&=l-1,A+=l):A=0,k++,0==--P[y]){if(y===w)break;y=t[n+o[k]]}if(y>x&&(A&h)!==u){for(0===_&&(_=x),d+=v,C=1<<(S=y-_);S+_<w&&!((C-=P[S+_])<=0);)S++,C<<=1;if(z+=1<<S,1===e&&z>852||2===e&&z>592)return 1;a[u=A&h]=x<<24|S<<16|d-i|0}}return 0!==A&&(a[d+A]=y-_<<24|64<<16|0),s.bits=x,0};function nu(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ru(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Dl.Buf16(320),this.work=new Dl.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function au(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Dl.Buf32(852),t.distcode=t.distdyn=new Dl.Buf32(592),t.sane=1,t.back=-1,0):-2}function iu(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,au(e)):-2}function ou(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,iu(e))):-2}function su(e,t){var n,r;return e?(r=new ru,e.state=r,r.window=null,0!==(n=ou(e,t))&&(e.state=null),n):-2}var lu,cu,uu=!0;function hu(e){if(uu){var t;for(lu=new Dl.Buf32(512),cu=new Dl.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(tu(1,e.lens,0,288,lu,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;tu(2,e.lens,0,32,cu,0,e.work,{bits:5}),uu=!1}e.lencode=lu,e.lenbits=9,e.distcode=cu,e.distbits=5}function du(e,t,n,r){var a,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Dl.Buf8(i.wsize)),r>=i.wsize?(Dl.arraySet(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>r&&(a=r),Dl.arraySet(i.window,t,n-r,a,i.wnext),(r-=a)?(Dl.arraySet(i.window,t,n-r,r,0),i.wnext=r,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0}var pu={inflateReset:iu,inflateReset2:ou,inflateResetKeep:au,inflateInit:function(e){return su(e,15)},inflateInit2:su,inflate:function(e,t){var n,r,a,i,o,s,l,c,u,h,d,p,f,m,g,b,y,k,v,w,x,S,_,C,z=0,A=new Dl.Buf8(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(n=e.state).mode&&(n.mode=13),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,h=s,d=l,S=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(2&n.wrap&&35615===c){n.check=0,A[0]=255&c,A[1]=c>>>8&255,n.check=bc(n.check,A,2,0),c=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&c)){e.msg="unknown compression method",n.mode=30;break}if(u-=4,x=8+(15&(c>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<x,e.adler=n.check=1,n.mode=512&c?10:12,c=0,u=0;break;case 2:for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(n.flags=c,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(A[0]=255&c,A[1]=c>>>8&255,n.check=bc(n.check,A,2,0)),c=0,u=0,n.mode=3;case 3:for(;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&(A[0]=255&c,A[1]=c>>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,n.check=bc(n.check,A,4,0)),c=0,u=0,n.mode=4;case 4:for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(A[0]=255&c,A[1]=c>>>8&255,n.check=bc(n.check,A,2,0)),c=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(A[0]=255&c,A[1]=c>>>8&255,n.check=bc(n.check,A,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((p=n.length)>s&&(p=s),p&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Dl.arraySet(n.head.extra,r,i,p,x)),512&n.flags&&(n.check=bc(n.check,r,p,i)),s-=p,i+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;p=0;do{x=r[i+p++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&n.flags&&(n.check=bc(n.check,r,p,i)),s-=p,i+=p,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;p=0;do{x=r[i+p++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&n.flags&&(n.check=bc(n.check,r,p,i)),s-=p,i+=p,x)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}e.adler=n.check=nu(c),c=0,u=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){c>>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}switch(n.last=1&c,u-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(hu(n),n.mode=20,6===t){c>>>=2,u-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}c>>>=2,u-=2;break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&c,c=0,u=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(p=n.length){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;Dl.arraySet(a,r,i,p,o),s-=p,i+=p,l-=p,o+=p,n.length-=p;break}n.mode=12;break;case 17:for(;u<14;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.lens[T[n.have++]]=7&c,c>>>=3,u-=3}for(;n.have<19;)n.lens[T[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},S=tu(0,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,S){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;b=(z=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&z,!((g=z>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(y<16)c>>>=g,u-=g,n.lens[n.have++]=y;else{if(16===y){for(C=g+2;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}x=n.lens[n.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===y){for(C=g+3;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}u-=g,x=0,p=3+(7&(c>>>=g)),c>>>=3,u-=3}else{for(C=g+7;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}u-=g,x=0,p=11+(127&(c>>>=g)),c>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;p--;)n.lens[n.have++]=x}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,_={bits:n.lenbits},S=tu(1,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,S){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},S=tu(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,S){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,Gc(e,d),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;b=(z=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&z,!((g=z>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(b&&0==(240&b)){for(k=g,v=b,w=y;b=(z=n.lencode[w+((c&(1<<k+v)-1)>>k)])>>>16&255,y=65535&z,!(k+(g=z>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}c>>>=k,u-=k,n.back+=k}if(c>>>=g,u-=g,n.back+=g,n.length=y,0===b){n.mode=26;break}if(32&b){n.back=-1,n.mode=12;break}if(64&b){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&b,n.mode=22;case 22:if(n.extra){for(C=n.extra;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;b=(z=n.distcode[c&(1<<n.distbits)-1])>>>16&255,y=65535&z,!((g=z>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(0==(240&b)){for(k=g,v=b,w=y;b=(z=n.distcode[w+((c&(1<<k+v)-1)>>k)])>>>16&255,y=65535&z,!(k+(g=z>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}c>>>=k,u-=k,n.back+=k}if(c>>>=g,u-=g,n.back+=g,64&b){e.msg="invalid distance code",n.mode=30;break}n.offset=y,n.extra=15&b,n.mode=24;case 24:if(n.extra){for(C=n.extra;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===l)break e;if(p=d-l,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}p>n.wnext?(p-=n.wnext,f=n.wsize-p):f=n.wnext-p,p>n.length&&(p=n.length),m=n.window}else m=a,f=o-n.offset,p=n.length;p>l&&(p=l),l-=p,n.length-=p;do{a[o++]=m[f++]}while(--p);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;a[o++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===s)break e;s--,c|=r[i++]<<u,u+=8}if(d-=l,e.total_out+=d,n.total+=d,d&&(e.adler=n.check=n.flags?bc(n.check,a,d,o-d):mc(n.check,a,d,o-d)),d=l,(n.flags?c:nu(c))!==n.check){e.msg="incorrect data check",n.mode=30;break}c=0,u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}c=0,u=0}n.mode=29;case 29:S=1;break e;case 30:S=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||d!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&du(e,e.output,e.next_out,d-e.avail_out),h-=e.avail_in,d-=e.avail_out,e.total_in+=h,e.total_out+=d,n.total+=d,n.wrap&&d&&(e.adler=n.check=n.flags?bc(n.check,a,d,e.next_out-d):mc(n.check,a,d,e.next_out-d)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===h&&0===d||4===t)&&0===S&&(S=-5),S},inflateEnd:function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},inflateGetHeader:function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?-2:(n.head=t,t.done=!1,0):-2},inflateSetDictionary:function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?-2:11===n.mode&&mc(1,t,r,0)!==n.check?-3:du(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},inflateInfo:"pako inflate (from Nodeca project)"},fu={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},mu=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},gu=Object.prototype.toString;function bu(e){if(!(this instanceof bu))return new bu(e);this.options=Dl.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Hc,this.strm.avail_out=0;var n=pu.inflateInit2(this.strm,t.windowBits);if(n!==fu.Z_OK)throw new Error(yc[n]);if(this.header=new mu,pu.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Mc(t.dictionary):"[object ArrayBuffer]"===gu.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=pu.inflateSetDictionary(this.strm,t.dictionary))!==fu.Z_OK))throw new Error(yc[n])}function yu(e,t){var n=new bu(t);if(n.push(e,!0),n.err)throw n.msg||yc[n.err];return n.result}bu.prototype.push=function(e,t){var n,r,a,i,o,s=this.strm,l=this.options.chunkSize,c=this.options.dictionary,u=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?fu.Z_FINISH:fu.Z_NO_FLUSH,"string"==typeof e?s.input=function(e){for(var t=new Dl.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t}(e):"[object ArrayBuffer]"===gu.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Dl.Buf8(l),s.next_out=0,s.avail_out=l),(n=pu.inflate(s,fu.Z_NO_FLUSH))===fu.Z_NEED_DICT&&c&&(n=pu.inflateSetDictionary(this.strm,c)),n===fu.Z_BUF_ERROR&&!0===u&&(n=fu.Z_OK,u=!1),n!==fu.Z_STREAM_END&&n!==fu.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==fu.Z_STREAM_END&&(0!==s.avail_in||r!==fu.Z_FINISH&&r!==fu.Z_SYNC_FLUSH)||("string"===this.options.to?(a=Yc(s.output,s.next_out),i=s.next_out-a,o=qc(s.output,a),s.next_out=i,s.avail_out=l-i,i&&Dl.arraySet(s.output,s.output,a,i,0),this.onData(o)):this.onData(Dl.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(u=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==fu.Z_STREAM_END);return n===fu.Z_STREAM_END&&(r=fu.Z_FINISH),r===fu.Z_FINISH?(n=pu.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===fu.Z_OK):r!==fu.Z_SYNC_FLUSH||(this.onEnd(fu.Z_OK),s.avail_out=0,!0)},bu.prototype.onData=function(e){this.chunks.push(e)},bu.prototype.onEnd=function(e){e===fu.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Dl.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ku={Inflate:bu,inflate:yu,inflateRaw:function(e,t){return(t=t||{}).raw=!0,yu(e,t)},ungzip:yu},vu={};(0,Dl.assign)(vu,Kc,ku,fu);var wu=vu;const{deflate:xu}=wu;var Su=function({type:e,value:t,compress:n,serialize:r}){const a={type:e,value:t};return n&&(a.value=xu(new Uint8Array(a.value)),a.compressed=!0),r&&(a.value=function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),n=new Uint8Array(e),r=n.length,a=r%3,i=[];let o;for(let e=0,t=r-a;e<t;e+=16383)i.push(s(e,e+16383>t?t:e+16383));return 1===a?(o=n[r-1],i.push(t[o>>2]+t[o<<4&63]+"==")):2===a&&(o=(n[r-2]<<8)+n[r-1],i.push(t[o>>10]+t[o>>4&63]+t[o<<2&63]+"=")),i.join("");function s(e,r){let a;const i=[];for(let s=e;s<r;s+=3)a=(n[s]<<16&16711680)+(n[s+1]<<8&65280)+(255&n[s+2]),i.push(t[(o=a)>>18&63]+t[o>>12&63]+t[o>>6&63]+t[63&o]);var o;return i.join("")}}(a.value)),a},_u=function(e){return/^(blob|https?):/.test(e)},Cu=function(e){const t=e&&e.match(/(^[^#]*)/),n=t&&t[1]||e;return n&&n.replace(/\?\s*$/,"?")||e},zu=function(e){return e.reduce((e,t)=>e.concat(t),[])};const{absolutizeUrl:Au}=s;var Tu=function({fetchUrl:e,findStyleSheetByUrl:t,getCorsFreeStyleSheet:n,extractResourcesFromStyleSheet:r,extractResourcesFromSvg:a,sessionCache:i,cache:o={},compress:s,serialize:l,log:c=ul}){return function({url:u,documents:h,getResourceUrlsAndBlobs:d,forceCreateStyle:p=!1,skipResources:f}){if(!o[u])if(i&&i.getItem(u)){const e=function e(t){const n=i.getItem(t);return[t].concat(n?Ll(zu(n.map(e))):[])}(u);c("doProcessResource from sessionStorage",u,"deps:",e.slice(1)),o[u]=Promise.resolve({resourceUrls:e})}else if(f&&f.indexOf(u)>-1||/https:\/\/fonts.googleapis.com/.test(u))c("not processing resource from skip list (or google font):",u),o[u]=Promise.resolve({resourceUrls:[u]});else{const g=Date.now();o[u]=function(o){c("fetching",o);const u=Date.now();return e(o).catch(e=>function(e){const t=e.message&&(e.message.includes("Failed to fetch")||e.message.includes("Network request failed")),n=e.name&&e.name.includes("TypeError");return t&&n}(e)?{probablyCORS:!0,url:o}:e.isTimeout?{isTimeout:!0,url:o}:(c(`error while fetching resource ${o} ${e?`message=${e.message} | name=${e.name}`:""}`,e),{errorStatusCode:599,url:o})).then(({url:e,type:o,value:m,probablyCORS:g,errorStatusCode:b,isTimeout:y})=>{if(g)return c("not fetched due to CORS",`[${Date.now()-u}ms]`,e),i&&i.setItem(e,[]),{resourceUrls:[e]};if(b){const t={[e]:{errorStatusCode:b}};return i&&i.setItem(e,[]),{blobsObj:t}}if(y)return c("not fetched due to timeout, returning error status code 504 (Gateway timeout)"),i&&i.setItem(e,[]),{blobsObj:{[e]:{errorStatusCode:504}}};let k;if(c(`fetched [${Date.now()-u}ms] ${e} bytes: ${m.byteLength}`),/text\/css/.test(o)){let a=t(e,h);if(a||p){const{corsFreeStyleSheet:e,cleanStyleSheet:t}=n(m,a);k=r(e),t()}}else if(/image\/svg/.test(o))try{k=a(m),p=!!k}catch(e){c("could not parse svg content",e)}const v={[e]:Su({type:o,value:m,compress:s,serialize:l})};if(k){const t=k.map(t=>Au(t,e.replace(/^blob:/,""))).map(Cu).filter(_u);return t.length&&(v[e].dependencies=t),i&&i.setItem(e,t),d({documents:h,urls:t,forceCreateStyle:p,skipResources:f}).then(({resourceUrls:e,blobsObj:t})=>({resourceUrls:e,blobsObj:Object.assign(t,v)}))}return i&&i.setItem(e,[]),{blobsObj:v}}).catch(e=>(c("error while processing resource",o,e,e?`message=${e.message} | name=${e.name}`:""),i&&m(),{}))}(u).then(e=>(c("doProcessResource",`[${Date.now()-g}ms]`,u),e))}return o[u];function m(){c("clearing from sessionStorage:",u),i.keys().forEach(e=>{const t=i.getItem(e);i.setItem(e,t.filter(e=>e!==u))}),c("cleared from sessionStorage:",u)}}},Eu=function({parser:e,decoder:t,extractResourceUrlsFromStyleTags:n}){return function(r){const a=(t||new TextDecoder("utf-8")).decode(r),i=(e||new DOMParser).parseFromString(a,"image/svg+xml"),o=Array.from(i.querySelectorAll("img[srcset]")).map(e=>e.getAttribute("srcset").split(", ").map(e=>e.trim().split(/\s+/)[0])).reduce((e,t)=>e.concat(t),[]),s=Array.from(i.querySelectorAll("img[src]")).map(e=>e.getAttribute("src")),l=Array.from(i.querySelectorAll('image,use,link[rel="stylesheet"]')).map(e=>e.getAttribute("href")||e.getAttribute("xlink:href")),c=Array.from(i.getElementsByTagName("object")).map(e=>e.getAttribute("data")),u=n(i,!1),h=function(e){return zu(Array.from(e.querySelectorAll("*[style]")).map(e=>e.style.cssText).map(dl).filter(Boolean))}(i);return o.concat(s).concat(l).concat(c).concat(u).concat(h).filter(e=>"#"!==e[0])}},Pu=function({fetch:e=window.fetch,AbortController:t=window.AbortController,timeout:n=1e4,mediaDownloadTimeout:r=3e4}){return function(a){return new Promise((i,o)=>{const s=new t,l=()=>{const e=new Error("fetchUrl timeout reached");e.isTimeout=!0,o(e),s.abort()},c=setTimeout(l,n);return e(a,{cache:"force-cache",credentials:"same-origin",signal:s.signal}).then(e=>{if(clearTimeout(c),200===e.status){const t=e.headers.get("Content-Type"),n=!e.headers.get("Content-Length")&&["audio/","video/"].some(n=>t&&e.headers.get("Content-Type").startsWith(n))&&setTimeout(l,r);return e.arrayBuffer().then(e=>(n&&clearTimeout(n),{url:a,value:e,type:t}))}return{url:a,errorStatusCode:e.status}}).then(i).catch(e=>o(e))})}},Lu=function({styleSheetCache:e}){return function(t,n){const r=zu(n.map(e=>{try{return Array.from(e.styleSheets)}catch(e){return[]}}));return e[t]||r.find(e=>{const n=e.href&&Cu(e.href);return n&&function(e){const t=new URL(e);return t.username&&(t.username=""),t.password&&(t.password=""),t.href}(n)===t})}},Ou=function({styleSheetCache:e,CSSRule:t=window.CSSRule,removeReverseProxyURLPrefixes:n}){return function r(a){return Ll(Array.from(a.cssRules||[]).reduce((a,i)=>{const o={[t.IMPORT_RULE]:()=>i.styleSheet&&(e[i.styleSheet.href]=i.styleSheet,i.styleSheet.href)?i.styleSheet.href:i.href,[t.FONT_FACE_RULE]:()=>dl(i.cssText,{removeReverseProxyURLPrefixes:n}),[t.SUPPORTS_RULE]:()=>r(i),[t.MEDIA_RULE]:()=>r(i),[t.STYLE_RULE]:()=>pl(i.style)}[i.type],s=o&&o()||[];return a.concat(s)},[])).filter(e=>"#"!==e[0])}},Ru=function(e){return function(t,n=!0){return Ll(Array.from(t.querySelectorAll("style")).reduce((r,a)=>{const i=n?Array.from(t.styleSheets).find(e=>e.ownerNode===a):a.sheet;return i?r.concat(e(i)):r},[]))}},Du=function(e){return function(t){return t.adoptedStyleSheets?Ll(t.adoptedStyleSheets.reduce((t,n)=>t.concat(e(n)),[])):[]}},Nu=function(t){const n=new TextDecoder("utf-8").decode(t),r=e.head||e.querySelectorAll("head")[0],a=e.createElement("style");return a.type="text/css",a.setAttribute("data-desc","Applitools tmp variable created by DOM SNAPSHOT"),r.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(e.createTextNode(n)),a.sheet},Bu=function(e,t,n=ul){let r;if(t)try{t.cssRules,r=t}catch(a){n(`[dom-snapshot] could not access cssRules for ${t.href} ${a}\ncreating temp style for access.`),r=Nu(e)}else r=Nu(e);return{corsFreeStyleSheet:r,cleanStyleSheet:function(){r!==t&&r.ownerNode.parentNode.removeChild(r.ownerNode)}}},Iu=function(e,{log:t,compress:n,serialize:r}){return e.reduce((e,{url:a,element:i,cdtNode:o})=>{const s=new Promise(e=>{try{i.toBlob(t=>t?e(t.arrayBuffer()):n(),"image/png")}catch(e){n(e)}function n(n){var r;t("resetting canvas node",n?n.message:"",i&&i.attributes&&(r=i,JSON.stringify(Array(r.attributes).reduce((e,t)=>Object.assign({[t.name]:t.value},e),{})))),o.attributes.splice(o.attributes.findIndex(e=>"data-applitools-src"===e.name),1),o.attributes.push({name:"data-applitools-tainted-canvas",value:"true"}),e()}});return e.then(e=>s.then(t=>{if(t){const i=Su({type:"image/png",value:t,compress:n,serialize:r});i.url=a,e.push(i)}return e}))},Promise.resolve([]))},Uu=function(e,{doc:t,fetchedBlobs:n,log:r,compress:a,serialize:i,sessionCache:o}){if(!t.body)return Promise.resolve([]);const s=new Set(Object.keys(n));let l=e.filter(({url:e})=>!(s.has("blob:"+e)||o&&o.getItem("blob:"+e)));const c=t.createElement("canvas");c.style.display="none";const u=vl(t.body);return u.appendChild(c),Promise.all(l.map(({element:e,url:t,cdtNode:n})=>(c.width=e.naturalWidth,c.height=e.naturalHeight,c.getContext("2d").drawImage(vl.unwrap(e),0,0),Iu([{url:t,element:c,cdtNode:n}],{log:r,compress:a,serialize:i})))).then(e=>(u.removeChild(c),zu(e))).catch(()=>{u.removeChild(c)})},ju=function(e){const t=e.querySelectorAll("base")[0]&&e.querySelectorAll("base")[0].href;if(t&&(n=t)&&!/^(about:blank|javascript:void|blob:)/.test(n))return l(t);var n},Fu=function(e){return e&&e.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,e=>{const t=parseInt(e.substr(1).trim(),16);return String.fromCodePoint(t)})||e},Mu=function(e){return function(){const t=["[dom-snapshot]",`[+${Date.now()-e}ms]`].concat(Array.from(arguments));console.log.apply(console,t)}},Wu=function({log:e,sessionStorage:t}){let n;try{const e=(t=t||window.sessionStorage).getItem("__process_resource");n=e?JSON.parse(e):{}}catch(t){e("error creating session cache",t)}return{getItem:function(e){if(n)return n[e]},setItem:function(t,r){n&&(e("saving to in-memory sessionStorage, key:",t,"value:",r),n[t]=r)},keys:function(){return n?Object.keys(n):[]},persist:function(){n&&t.setItem("__process_resource",JSON.stringify(n))}}};const{absolutizeUrl:qu}=s;function Yu(e){return function(t){try{return l(qu(t,e))}catch(e){}}}function Hu(e){return Object.keys(e).map(t=>Object.assign({url:t.replace(/^blob:/,"")},e[t]))}function Zu(e){return e&&_u(e)}const{pollify:Vu}=s,{EYES_NAMESPACE:$u,DOM_SNAPSHOT_KEY:Ku}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"};window[$u]=window[$u]||{};const Gu=Vu((function(t){return function({doc:t=e,showLogs:n,useSessionCache:r,dontFetchResources:a,fetchTimeout:i,skipResources:o,compressResources:s,serializeResources:l,removeReverseProxyURLPrefixes:c}={}){
9
8
  /* MARKER FOR TEST - DO NOT DELETE */
10
- arguments[0]instanceof Document&&(e=arguments[0],t=arguments[1].showLogs,r=arguments[1].useSessionCache,n=arguments[1].dontFetchResources,o=arguments[1].fetchTimeout,a=arguments[1].skipResources,i=arguments[1].compressResources,s=arguments[1].serializeResources);const p=t?Kh(Date.now()):Fc;p("processPage start"),p("skipResources length: "+(a&&a.length));const h=r&&$h(c.setPrototypeOf({log:p},c.prototype)),d=c.setPrototypeOf({},c.prototype),f=Fh(c.setPrototypeOf({styleSheetCache:d},c.prototype)),m=Mh(c.setPrototypeOf({styleSheetCache:d},c.prototype)),g=jh(f),y=Bh(c.setPrototypeOf({extractResourceUrlsFromStyleTags:g},c.prototype)),b=Ih(c.setPrototypeOf({timeout:o},c.prototype)),k=Dh(c.setPrototypeOf({fetchUrl:b,findStyleSheetByUrl:m,getCorsFreeStyleSheet:Yh,extractResourcesFromStyleSheet:f,extractResourcesFromSvg:y,absolutizeUrl:Gh,log:p,sessionCache:h,compress:i,serialize:s},c.prototype)),v=pu(c.setPrototypeOf({processResource:k,aggregateResourceUrlsAndBlobs:uu},c.prototype));return w(e).then(e=>(p("processPage end"),e.scriptVersion="4.3.1",e));function w(e,t=e.location.href){const r=qh(e)||t,{cdt:o,docRoots:d,canvasElements:f,frames:m,inlineFrames:y,crossFrames:b,linkUrls:k,imageBlobs:x}=lu(e,r,p),_=Rh(d.map(e=>g(e))),P=Xh(r),S=cu(l.from(k).concat(l.from(_))).map(Vh).map(P).map(Lh).filter(Jh),O=n?u.resolve(c.setPrototypeOf({resourceUrls:S,blobsObj:c.setPrototypeOf({},c.prototype)},c.prototype)):v(c.setPrototypeOf({documents:d,urls:S,skipResources:a},c.prototype)).then(e=>(h&&h.persist(),e)),C=Zh(f,c.setPrototypeOf({log:p,compress:i,serialize:s},c.prototype)),z=O.then(t=>Hh(x,c.setPrototypeOf({fetchedBlobs:t.blobsObj,doc:e,log:p,compress:i,serialize:s,sessionCache:h},c.prototype))),E=m.map(({element:e,url:t})=>w(e.contentDocument,t)),A=y.map(({element:e,url:t})=>w(e.contentDocument,t));return u.all(l.of(O,C,z).concat(E).concat(A)).then((function(e){const{resourceUrls:r,blobsObj:n}=e[0],a=e[1],i=e[2],s=e.slice(3),l=T("src"),u=T("data-applitools-selector"),p=u?`[data-applitools-selector="${u}"]`:void 0,h=Qh(n).concat(a).concat(i);return c.setPrototypeOf({cdt:o,url:t,srcAttr:l,resourceUrls:r.map(e=>e.replace(/^blob:/,"")),blobs:h,frames:s,crossFrames:b,selector:p},c.prototype)}));function T(t){return e.defaultView&&e.defaultView.frameElement&&e.defaultView.frameElement.getAttribute(t)}}};var td=function(e){return ed(c.assign(c.setPrototypeOf({serializeResources:!0},c.prototype),e))};const{pollify:rd}=w,{EYES_NAMESPACE:nd,DOM_SNAPSHOT_KEY:od}=x;window[nd]=window[nd]||c.setPrototypeOf({},c.prototype);const ad=rd(td,window[nd],od);return function(e){return JSON.stringify(ad(e)(e))}}();
9
+ arguments[0]instanceof Document&&(t=arguments[0],n=arguments[1].showLogs,r=arguments[1].useSessionCache,a=arguments[1].dontFetchResources,i=arguments[1].fetchTimeout,o=arguments[1].skipResources,s=arguments[1].compressResources,l=arguments[1].serializeResources,c=arguments[1].removeReverseProxyURLPrefixes);const u=n?Mu(Date.now()):ul;u("processPage start"),u("skipResources length: "+(o&&o.length));const h=r&&Wu({log:u}),d={},p=Ou({styleSheetCache:d,removeReverseProxyURLPrefixes:c}),f=Lu({styleSheetCache:d}),m=Ru(p),g=Du(p),b=Eu({extractResourceUrlsFromStyleTags:m}),y=Pu({timeout:i}),k=Tu({fetchUrl:y,findStyleSheetByUrl:f,getCorsFreeStyleSheet:Bu,extractResourcesFromStyleSheet:p,extractResourcesFromSvg:b,absolutizeUrl:qu,log:u,sessionCache:h,compress:s,serialize:l}),v=Rl({processResource:k,aggregateResourceUrlsAndBlobs:Ol});return w(t).then(e=>(u("processPage end"),e.scriptVersion="4.5.11",e));function w(e,t=e.location.href){const n=ju(e)||t,{cdt:r,docRoots:i,canvasElements:c,frames:d,inlineFrames:p,crossFrames:f,linkUrls:b,imageBlobs:y}=Pl(e,n,u),k=zu(i.map(e=>m(e))),x=zu(i.map(e=>g(e))),S=Yu(n),_=Ll(Array.from(b).concat(Array.from(k)).concat(Array.from(x))).map(Fu).map(S).map(Cu).filter(Zu),C=a?Promise.resolve({resourceUrls:_,blobsObj:{}}):v({documents:i,urls:_,skipResources:o}).then(e=>(h&&h.persist(),e)),z=Iu(c,{log:u,compress:s,serialize:l}),A=C.then(t=>Uu(y,{fetchedBlobs:t.blobsObj,doc:e,log:u,compress:s,serialize:l,sessionCache:h})),T=d.map(({element:e,url:t})=>w(e.contentDocument,t)),E=p.map(({element:e,url:t})=>w(e.contentDocument,t));return Promise.all([C,z,A].concat(T).concat(E)).then((function(e){const{resourceUrls:a,blobsObj:i}=e[0],o=e[1],s=e[2],l=e.slice(3),c=P("src"),u=P("data-applitools-selector"),h=u?`[data-applitools-selector="${u}"]`:void 0,d=Hu(i).concat(o).concat(s),p={cdt:r,url:t,srcAttr:c,resourceUrls:a.map(e=>e.replace(/^blob:/,"")),blobs:d,frames:l,crossFrames:f,selector:h};return n!==t&&(p.baseUri=n),p}));function P(t){return e.defaultView&&e.defaultView.frameElement&&e.defaultView.frameElement.getAttribute(t)}}}(Object.assign({serializeResources:!0},t))}),window[$u],Ku);return function(e){return JSON.stringify(Gu(e)(e))}}()};let t;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const r=window.crypto.getRandomValues(new Uint32Array(1))[0],a=n.contentDocument.createElement("script");a.textContent=`window['ctor-${r}'] = ${e.toString()};`,n.contentDocument.head.appendChild(a),t=n.contentWindow["ctor-"+r]}catch(e){}return t=t||e,t(document).apply(null,arguments)}}();
11
10
 
12
11
  return processPageAndSerializePoll.apply(this, arguments);
13
12
  }