text: function ParseURL(e){var t={};t.protocol="",t.user="",t.password="",t.host="",t.port="",t.path="",t.query="";for(var s="PROTOCOL",i=0,r=!1;i<e.length;)if("PROTOCOL"==s)":"==e.charAt(i)?(s="AFTER_PROTOCOL",i++):"/"==e.charAt(i)&&0==t.protocol.length()?s=PATH:t.protocol+=e.charAt(i++);else if("AFTER_PROTOCOL"==s){if("/"!=e.charAt(i))throw new ParseException("Protocol shell be separated with 2 slashes");r?(r=!1,s="USER"):r=!0,i++}else"USER"==s?"/"==e.charAt(i)?(t.host=t.user,t.user="",s="PATH"):"?"==e.charAt(i)?(t.host=t.user,t.user="",s="QUERY",i++):":"==e.charAt(i)?(s="PASSWORD",i++):"@"==e.charAt(i)?(s="HOST",i++):t.user+=e.charAt(i++):"PASSWORD"==s?"/"==e.charAt(i)?(t.host=t.user,t.port=t.password,t.user="",t.password="",s="PATH"):"?"==e.charAt(i)?(t.host=t.user,t.port=t.password,t.user="",t.password="",s="QUERY",i++):"@"==e.charAt(i)?(s="HOST",i++):t.password+=e.charAt(i++):"HOST"==s?"/"==e.charAt(i)?s="PATH":":"==e.charAt(i)?(s="PORT",i++):"?"==e.charAt(i)?(s="QUERY",i++):t.host+=e.charAt(i++):"PORT"==s?"/"==e.charAt(i)?s="PATH":"?"==e.charAt(i)?(s="QUERY",i++):t.port+=e.charAt(i++):"PATH"==s?"?"==e.charAt(i)?(s="QUERY",i++):t.path+=e.charAt(i++):"QUERY"==s&&(t.query+=e.charAt(i++));if("PROTOCOL"==s)t.host=t.protocol,t.protocol="http";else{if("AFTER_PROTOCOL"==s)throw new ParseException("Invalid url");"USER"==s?(t.host=t.user,t.user=""):"PASSWORD"==s&&(t.host=t.user,t.port=t.password,t.user="",t.password="")}return t}function ParseException(e){this.description=e}function CountLF(e){var t=e.match(/\n/g);return t?t.length+1:1}function DisposablePartialParsing(e,t){var s=new CSSParser;return s._init(),s.mPreserveWS=!1,s.mPreserveComments=!1,s.mPreservedTokens=[],s.mScanner.init(e),s[t]()}function FilterLinearGradient(e,t){var s=DisposablePartialParsing(e,"parseBackgroundImages");if(!s)return null;var i=s[0];if(!i.value)return null;var r="",o="position"in i.value?i.value.position.toLowerCase():"",n="angle"in i.value?i.value.angle.toLowerCase():"";if("webkit20110101"==t){var a=!1;if(r="-webkit-gradient(linear, ",n){var l=n.match(/^([0-9\-\.\\+]+)([a-z]*)/),n=parseFloat(l[1]),u=l[2];switch(u){case"grad":n=90*n/100;break;case"rad":n=180*n/Math.PI}for(;n<0;)n+=360;for(;n>=360;)n-=360}var c=[],p=[];if(""!=o)if("center"==o&&(o="center center"),c=o.split(" "),""==n&&0!=n){switch(c[0]){case"left":p.push("right");break;case"center":p.push("center");break;case"right":p.push("left");break;default:var l=c[0].match(/^([0-9\-\.\\+]+)([a-z]*)/),k=parseFloat(l[0]),u=l[1];"%"==u?p.push(100-k+"%"):a=!0}if(!a)switch(c[1]){case"top":p.push("bottom");break;case"center":p.push("center");break;case"bottom":p.push("top");break;default:var l=c[1].match(/^([0-9\-\.\\+]+)([a-z]*)/),k=parseFloat(l[0]),u=l[1];"%"==u?p.push(100-k+"%"):a=!0}}else switch(n){case 0:p.push("right"),p.push(c[1]);break;case 90:p.push(c[0]),p.push("top");break;case 180:p.push("left"),p.push(c[1]);break;case 270:p.push(c[0]),p.push("bottom");break;default:a=!0}else switch(""==n&&(n=270),n){case 0:c=["left","center"],p=["right","center"];break;case 90:c=["center","bottom"],p=["center","top"];break;case 180:c=["right","center"],p=["left","center"];break;case 270:c=["center","top"],p=["center","bottom"];break;default:a=!0}if(a)return"";r+=c.join(" ")+", "+p.join(" "),i.value.stops[0].position||(i.value.stops[0].position="0%"),i.value.stops[i.value.stops.length-1].position||(i.value.stops[i.value.stops.length-1].position="100%");for(var h=0,d=0;d<i.value.stops.length&&!a;d++){var b=i.value.stops[d];if(b.position){if(b.position.indexOf("%")==-1){a=!0;break}}else{for(var g=d+1;g<i.value.stops.length&&!i.value.stops[g].position;)g++;for(var m=parseFloat(i.value.stops[g].position)-h,f=d;f<g;f++)i.value.stops[f].position=h+m*(f-d+1)/(g-d+1)+"%"}h=parseFloat(b.position),r+=", color-stop("+parseFloat(h)/100+", "+b.color+")"}if(a)return""}else{r=(i.value.isRepeating?"repeating-":"")+"linear-gradient(",(n||o)&&(r+=(n?n:o)+", ");for(var d=0;d<i.value.stops.length;d++){var b=i.value.stops[d];r+=b.color+(b.position?" "+b.position:"")+(d!=i.value.stops.length-1?", ":"")}}switch(r+=")",t){case"webkit":r="-webkit-"+r;break;case"gecko1.9.2":r="-moz-"+r;break;case"presto":r="-o-"+r;break;case"trident":r="-ms-"+r}return r}function FilterRadialGradient(e,t){var s=DisposablePartialParsing(e,"parseBackgroundImages");if(!s)return null;var i=s[0];if(!i.value)return null;if("webkit20110101"==t)return null;var r=(i.value.isRepeating?"repeating-":"")+"radial-gradient(",o="shape"in i.value?i.value.shape:"",n="extent"in i.value?i.value.extent:"",a="";switch(i.value.positions.length){case 1:a=i.value.positions[0]+" "+i.value.positions[0];break;case 2:a=i.value.positions[0]+" "+i.value.positions[1]}var l=i.value.at;r+=(l?l+", ":"")+(o||n||l?(o?o+" ":"")+(n?n+" ":"")+(a?a+" ":"")+", ":"");for(var u=0;u<i.value.stops.length;u++){var c=i.value.stops[u];r+=c.color+(c.position?" "+c.position:"")+(u!=i.value.stops.length-1?", ":"")}switch(r+=")",t){case"webkit":r="-webkit-"+r;break;case"gecko1.9.2":r="-moz-"+r;break;case"presto":r="-o-"+r;break;case"trident":r="-ms-"+r}return r}function CSSScanner(e){this.init(e)}function CSSParser(e){this.mToken=null,this.mLookAhead=null,this.mScanner=new CSSScanner(e),this.mPreserveWS=!0,this.mPreserveComments=!0,this.mPreservedTokens=[],this.mError=null}function jscsspToken(e,t,s){this.type=e,this.value=t,this.unit=s}function jscsspCharsetRule(){this.type=kJscsspCHARSET_RULE,this.encoding=null,this.parsedCssText=null,this.parentStyleSheet=null,this.parentRule=null}function jscsspComment(){this.type=kJscsspCOMMENT,this.parsedCssText=null,this.parentStyleSheet=null,this.parentRule=null}function jscsspDeclaration(){this.type=kJscsspSTYLE_DECLARATION,this.property=null,this.values=[],this.valueText=null,this.priority=null,this.parsedCssText=null,this.parentStyleSheet=null,this.parentRule=null}function jscsspErrorRule(e){this.error=e?e:"INVALID",this.type=kJscsspUNKNOWN_RULE,this.parsedCssText=null,this.parentStyleSheet=null,this.parentRule=null}function jscsspFontFaceRule(){this.type=kJscsspFONT_FACE_RULE,this.parsedCssText=null,this.descriptors=[],this.parentStyleSheet=null,this.parentRule=null}function jscsspImportRule(){this.type=kJscsspIMPORT_RULE,this.parsedCssText=null,this.href=null,this.media=[],this.parentStyleSheet=null,this.parentRule=null}function jscsspKeyframeRule(){this.type=kJscsspKEYFRAME_RULE,this.parsedCssText=null,this.declarations=[],this.keyText=null,this.parentStyleSheet=null,this.parentRule=null}function jscsspKeyframesRule(){this.type=kJscsspKEYFRAMES_RULE,this.parsedCssText=null,this.cssRules=[],this.name=null,this.parentStyleSheet=null,this.parentRule=null}function jscsspMediaRule(){this.type=kJscsspMEDIA_RULE,this.parsedCssText=null,this.cssRules=[],this.media=[],this.parentStyleSheet=null,this.parentRule=null}function jscsspNamespaceRule(){this.type=kJscsspNAMESPACE_RULE,this.parsedCssText=null,this.prefix=null,this.url=null,this.parentStyleSheet=null,this.parentRule=null}function jscsspPageRule(){this.type=kJscsspPAGE_RULE,this.parsedCssText=null,this.pageSelector=null,this.declarations=[],this.parentStyleSheet=null,this.parentRule=null}function jscsspStyleRule(){this.type=kJscsspSTYLE_RULE,this.parsedCssText=null,this.declarations=[],this.mSelectorText=null,this.parentStyleSheet=null,this.parentRule=null}function jscsspStylesheet(){this.cssRules=[],this.variables={}}function jscsspVariable(e,t){this.value="",this.type=e,this.name=null,this.parentRule=null,this.parentStyleSheet=t}function jscsspVariablesRule(){this.type=kJscsspVARIABLES_RULE,this.parsedCssText=null,this.declarations=[],this.parentStyleSheet=null,this.parentRule=null,this.media=null}function jscsspWhitespace(){this.type=kJscsspWHITE_SPACE,this.parsedCssText=null,this.parentStyleSheet=null,this.parentRule=null}var kCHARSET_RULE_MISSING_SEMICOLON="Missing semicolon at the end of @charset rule",kCHARSET_RULE_CHARSET_IS_STRING="The charset in the @charset rule should be a string",kCHARSET_RULE_MISSING_WS="Missing mandatory whitespace after @charset",kIMPORT_RULE_MISSING_URL="Missing URL in @import rule",kURL_EOF="Unexpected end of stylesheet",kURL_WS_INSIDE="Multiple tokens inside a url() notation",kVARIABLES_RULE_POSITION="@variables rule invalid at this position in the stylesheet",kIMPORT_RULE_POSITION="@import rule invalid at this position in the stylesheet",kNAMESPACE_RULE_POSITION="@namespace rule invalid at this position in the stylesheet",kCHARSET_RULE_CHARSET_SOF="@charset rule invalid at this position in the stylesheet",kUNKNOWN_AT_RULE="Unknow @-rule",kCSS_VENDOR_VALUES={"-moz-box":{webkit:"-webkit-box",presto:"",trident:"",generic:"box"},"-moz-inline-box":{webkit:"-webkit-inline-box",presto:"",trident:"",generic:"inline-box"},"-moz-initial":{webkit:"",presto:"",trident:"",generic:"initial"},flex:{webkit:"-webkit-flex",presto:"",trident:"",generic:""},"inline-flex":{webkit:"-webkit-inline-flex",presto:"",trident:"",generic:""},"linear-gradient":{webkit20110101:FilterLinearGradient,webkit:FilterLinearGradient,presto:FilterLinearGradient,trident:FilterLinearGradient,"gecko1.9.2":FilterLinearGradient},"repeating-linear-gradient":{webkit20110101:FilterLinearGradient,webkit:FilterLinearGradient,presto:FilterLinearGradient,trident:FilterLinearGradient,"gecko1.9.2":FilterLinearGradient},"radial-gradient":{webkit20110101:FilterRadialGradient,webkit:FilterRadialGradient,presto:FilterRadialGradient,trident:FilterRadialGradient,"gecko1.9.2":FilterRadialGradient},"repeating-radial-gradient":{webkit20110101:FilterRadialGradient,webkit:FilterRadialGradient,presto:FilterRadialGradient,trident:FilterRadialGradient,"gecko1.9.2":FilterRadialGradient}},kCSS_PREFIXED_VALUE=[{gecko:"-moz-box",webkit:"-moz-box",presto:"",trident:"",generic:"box"}],kCSS_VENDOR_PREFIXES={lastUpdate:1374677405,properties:[{gecko:"",webkit:"",presto:"",trident:"-ms-accelerator",status:"P"},{gecko:"",webkit:"",presto:"-wap-accesskey",trident:"",status:""},{gecko:"",webkit:"-webkit-align-content",presto:"",trident:"",status:""},{gecko:"align-items",webkit:"-webkit-align-items",presto:"",trident:"",status:""},{gecko:"align-self",webkit:"-webkit-align-self",presto:"",trident:"",status:""},{gecko:"animation",webkit:"-webkit-animation",presto:"",trident:"animation",status:"WD"},{gecko:"animation-delay",webkit:"-webkit-animation-delay",presto:"",trident:"animation-delay",status:"WD"},{gecko:"animation-direction",webkit:"-webkit-animation-direction",presto:"",trident:"animation-direction",status:"WD"},{gecko:"animation-duration",webkit:"-webkit-animation-duration",presto:"",trident:"animation-duration",status:"WD"},{gecko:"animation-fill-mode",webkit:"-webkit-animation-fill-mode",presto:"",trident:"animation-fill-mode",status:"ED"},{gecko:"animation-iteration-count",webkit:"-webkit-animation-iteration-count",presto:"",trident:"animation-iteration-count",status:"WD"},{gecko:"animation-name",webkit:"-webkit-animation-name",presto:"",trident:"animation-name",status:"WD"},{gecko:"animation-play-state",webkit:"-webkit-animation-play-state",presto:"",trident:"animation-play-state",status:"WD"},{gecko:"animation-timing-function",webkit:"-webkit-animation-timing-function",presto:"",trident:"animation-timing-function",status:"WD"},{gecko:"",webkit:"-webkit-app-region",presto:"",trident:"",status:""},{gecko:"-moz-appearance",webkit:"-webkit-appearance",presto:"",trident:"",status:"CR"},{gecko:"",webkit:"-webkit-aspect-ratio",presto:"",trident:"",status:""},{gecko:"backface-visibility",webkit:"-webkit-backface-visibility",presto:"",trident:"backface-visibility",status:"WD"},{gecko:"",webkit:"-webkit-background-blend-mode",presto:"",trident:"",status:""},{gecko:"background-clip",webkit:"-webkit-background-clip",presto:"background-clip",trident:"background-clip",status:"WD"},{gecko:"",webkit:"-webkit-background-composite",presto:"",trident:"",status:""},{gecko:"-moz-background-inline-policy",webkit:"",presto:"",trident:"",status:"P"},{gecko:"background-origin",webkit:"-webkit-background-origin",presto:"background-origin",trident:"background-origin",status:"WD"},{gecko:"",webkit:"background-position-x",presto:"",trident:"-ms-background-position-x",status:""},{gecko:"",webkit:"background-position-y",presto:"",trident:"-ms-background-position-y",status:""},{gecko:"background-size",webkit:"-webkit-background-size",presto:"background-size",trident:"background-size",status:"WD"},{gecko:"",webkit:"",presto:"",trident:"-ms-behavior",status:""},{gecko:"-moz-binding",webkit:"",presto:"",trident:"",status:"P"},{gecko:"",webkit:"-webkit-blend-mode",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-block-progression",status:""},{gecko:"",webkit:"-webkit-border-after",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-border-after-color",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-border-after-style",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-border-after-width",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-border-before",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-border-before-color",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-border-before-style",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-border-before-width",presto:"",trident:"",status:"ED"},{gecko:"-moz-border-bottom-colors",webkit:"",presto:"",trident:"",status:"P"},{gecko:"border-bottom-left-radius",webkit:"-webkit-border-bottom-left-radius",presto:"border-bottom-left-radius",trident:"border-bottom-left-radius",status:"WD"},{gecko:"border-bottom-right-radius",webkit:"-webkit-border-bottom-right-radius",presto:"border-bottom-right-radius",trident:"border-bottom-right-radius",status:"WD"},{gecko:"-moz-border-end",webkit:"-webkit-border-end",presto:"",trident:"",status:"ED"},{gecko:"-moz-border-end-color",webkit:"-webkit-border-end-color",presto:"",trident:"",status:"ED"},{gecko:"-moz-border-end-style",webkit:"-webkit-border-end-style",presto:"",trident:"",status:"ED"},{gecko:"-moz-border-end-width",webkit:"-webkit-border-end-width",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-border-fit",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-border-horizontal-spacing",presto:"",trident:"",status:""},{gecko:"border-image",webkit:"-webkit-border-image",presto:"-o-border-image",trident:"",status:"WD"},{gecko:"-moz-border-left-colors",webkit:"",presto:"",trident:"",status:"P"},{gecko:"border-radius",webkit:"-webkit-border-radius",presto:"border-radius",trident:"border-radius",status:"WD"},{gecko:"-moz-border-right-colors",webkit:"",presto:"",trident:"",status:"P"},{gecko:"-moz-border-start",webkit:"-webkit-border-start",presto:"",trident:"",status:"ED"},{gecko:"-moz-border-start-color",webkit:"-webkit-border-start-color",presto:"",trident:"",status:"ED"},{gecko:"-moz-border-start-style",webkit:"-webkit-border-start-style",presto:"",trident:"",status:"ED"},{gecko:"-moz-border-start-width",webkit:"-webkit-border-start-width",presto:"",trident:"",status:"ED"},{gecko:"-moz-border-top-colors",webkit:"",presto:"",trident:"",status:"P"},{gecko:"border-top-left-radius",webkit:"-webkit-border-top-left-radius",presto:"border-top-left-radius",trident:"border-top-left-radius",status:"WD"},{gecko:"border-top-right-radius",webkit:"-webkit-border-top-right-radius",presto:"border-top-right-radius",trident:"border-top-right-radius",status:"WD"},{gecko:"",webkit:"-webkit-border-vertical-spacing",presto:"",trident:"",status:""},{gecko:"-moz-box-align",webkit:"-webkit-box-align",presto:"",trident:"",status:"WD"},{gecko:"",webkit:"-webkit-box-decoration-break",presto:"box-decoration-break",trident:"",status:"WD"},{gecko:"-moz-box-direction",webkit:"-webkit-box-direction",presto:"",trident:"",status:"WD"},{gecko:"-moz-box-flex",webkit:"-webkit-box-flex",presto:"",trident:"",status:"WD"},{gecko:"",webkit:"-webkit-box-flex-group",presto:"",trident:"",status:"WD"},{gecko:"",webkit:"-webkit-box-lines",presto:"",trident:"",status:"WD"},{gecko:"-moz-box-ordinal-group",webkit:"-webkit-box-ordinal-group",presto:"",trident:"",status:"WD"},{gecko:"-moz-box-orient",webkit:"-webkit-box-orient",presto:"",trident:"",status:"WD"},{gecko:"-moz-box-pack",webkit:"-webkit-box-pack",presto:"",trident:"",status:"WD"},{gecko:"",webkit:"-webkit-box-reflect",presto:"",trident:"",status:""},{gecko:"box-shadow",webkit:"-webkit-box-shadow",presto:"box-shadow",trident:"box-shadow",status:"WD"},{gecko:"-moz-box-sizing",webkit:"-webkit-box-sizing",presto:"box-sizing",trident:"box-sizing",status:"CR"},{gecko:"caption-side",webkit:"-epub-caption-side",presto:"caption-side",trident:"caption-side",status:""},{gecko:"clip-path",webkit:"-webkit-clip-path",presto:"clip-path",trident:"",status:""},{gecko:"",webkit:"-webkit-color-correction",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-column-axis",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-column-break-after",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-column-break-before",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-column-break-inside",presto:"",trident:"",status:""},{gecko:"-moz-column-count",webkit:"-webkit-column-count",presto:"column-count",trident:"column-count",status:"CR"},{gecko:"-moz-column-fill",webkit:"",presto:"column-fill",trident:"column-fill",status:"CR"},{gecko:"-moz-column-gap",webkit:"-webkit-column-gap",presto:"column-gap",trident:"column-gap",status:"CR"},{gecko:"",webkit:"-webkit-column-progression",presto:"",trident:"",status:""},{gecko:"-moz-column-rule",webkit:"-webkit-column-rule",presto:"column-rule",trident:"column-rule",status:"CR"},{gecko:"-moz-column-rule-color",webkit:"-webkit-column-rule-color",presto:"column-rule-color",trident:"column-rule-color",status:"CR"},{gecko:"-moz-column-rule-style",webkit:"-webkit-column-rule-style",presto:"column-rule-style",trident:"column-rule-style",status:"CR"},{gecko:"-moz-column-rule-width",webkit:"-webkit-column-rule-width",presto:"column-rule-width",trident:"column-rule-width",status:"CR"},{gecko:"",webkit:"-webkit-column-span",presto:"column-span",trident:"column-span",status:"CR"},{gecko:"-moz-column-width",webkit:"-webkit-column-width",presto:"column-width",trident:"column-width",status:"CR"},{gecko:"-moz-columns",webkit:"-webkit-columns",presto:"columns",trident:"columns",status:"CR"},{gecko:"",webkit:"",presto:"",trident:"-ms-content-zoom-chaining",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-content-zoom-limit",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-content-zoom-limit-max",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-content-zoom-limit-min",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-content-zoom-snap",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-content-zoom-snap-points",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-content-zoom-snap-type",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-content-zooming",status:""},{gecko:"",webkit:"-webkit-cursor-visibility",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-dashboard-region",presto:"-apple-dashboard-region",trident:"",status:""},{gecko:"",webkit:"",presto:"-o-device-pixel-ratio",trident:"",status:""},{gecko:"filter",webkit:"-webkit-filter",presto:"filter",trident:"-ms-filter",status:""},{gecko:"flex",webkit:"-webkit-flex",presto:"",trident:"-ms-flex",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-flex-align",status:""},{gecko:"flex-basis",webkit:"-webkit-flex-basis",presto:"",trident:"",status:""},{gecko:"flex-direction",webkit:"-webkit-flex-direction",presto:"",trident:"-ms-flex-direction",status:""},{gecko:"",webkit:"-webkit-flex-flow",presto:"",trident:"",status:""},{gecko:"flex-grow",webkit:"-webkit-flex-grow",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-flex-order",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-flex-pack",status:""},{gecko:"flex-shrink",webkit:"-webkit-flex-shrink",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-flex-wrap",presto:"",trident:"-ms-flex-wrap",status:""},{gecko:"-moz-float-edge",webkit:"",presto:"",trident:"",status:"P"},{gecko:"",webkit:"-webkit-flow-from",presto:"",trident:"-ms-flow-from",status:""},{gecko:"",webkit:"-webkit-flow-into",presto:"",trident:"-ms-flow-into",status:""},{gecko:"",webkit:"",presto:"-o-focus-opacity",trident:"",status:""},{gecko:"-moz-font-feature-settings",webkit:"-webkit-font-feature-settings",presto:"",trident:"font-feature-settings",status:""},{gecko:"font-kerning",webkit:"-webkit-font-kerning",presto:"",trident:"",status:""},{gecko:"-moz-font-language-override",webkit:"",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-font-size-delta",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-font-smoothing",presto:"",trident:"",status:""},{gecko:"font-variant-ligatures",webkit:"-webkit-font-variant-ligatures",presto:"",trident:"",status:""},{gecko:"-moz-force-broken-image-icon",webkit:"",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-grid-after",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-grid-auto-columns",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-grid-auto-flow",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-grid-auto-rows",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-grid-before",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-grid-column",presto:"",trident:"-ms-grid-column",status:"WD"},{gecko:"",webkit:"",presto:"",trident:"-ms-grid-column-align",status:"WD"},{gecko:"",webkit:"",presto:"",trident:"-ms-grid-column-span",status:"WD"},{gecko:"",webkit:"",presto:"",trident:"-ms-grid-columns",status:"WD"},{gecko:"",webkit:"-webkit-grid-definition-columns",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-grid-definition-rows",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-grid-end",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-grid-row",presto:"",trident:"-ms-grid-row",status:"WD"},{gecko:"",webkit:"",presto:"",trident:"-ms-grid-row-align",status:"WD"},{gecko:"",webkit:"",presto:"",trident:"-ms-grid-row-span",status:"WD"},{gecko:"",webkit:"",presto:"",trident:"-ms-grid-rows",status:"WD"},{gecko:"",webkit:"-webkit-grid-start",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-high-contrast-adjust",status:""},{gecko:"",webkit:"-webkit-highlight",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-hyphenate-character",presto:"",trident:"",status:"WD"},{gecko:"",webkit:"-webkit-hyphenate-limit-after",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-hyphenate-limit-before",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-hyphenate-limit-chars",status:""},{gecko:"",webkit:"-webkit-hyphenate-limit-lines",presto:"",trident:"-ms-hyphenate-limit-lines",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-hyphenate-limit-zone",status:""},{gecko:"-moz-hyphens",webkit:"-epub-hyphens",presto:"",trident:"-ms-hyphens",status:"WD"},{gecko:"-moz-image-region",webkit:"",presto:"",trident:"",status:"P"},{gecko:"ime-mode",webkit:"",presto:"",trident:"-ms-ime-mode",status:""},{gecko:"",webkit:"",presto:"-wap-input-format",trident:"",status:""},{gecko:"",webkit:"",presto:"-wap-input-required",trident:"",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-interpolation-mode",status:""},{gecko:"",webkit:"",presto:"-xv-interpret-as",trident:"",status:""},{gecko:"justify-content",webkit:"-webkit-justify-content",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-layout-flow",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-layout-grid",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-layout-grid-char",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-layout-grid-line",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-layout-grid-mode",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-layout-grid-type",status:""},{gecko:"",webkit:"-webkit-line-align",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-line-box-contain",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-line-break",presto:"",trident:"line-break",status:""},{gecko:"",webkit:"-webkit-line-clamp",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-line-grid",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-line-snap",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"-o-link",trident:"",status:""},{gecko:"",webkit:"",presto:"-o-link-source",trident:"",status:""},{gecko:"",webkit:"-webkit-locale",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-logical-height",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-logical-width",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-margin-after",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-margin-after-collapse",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-margin-before",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-margin-before-collapse",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-margin-bottom-collapse",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-margin-collapse",presto:"",trident:"",status:""},{gecko:"-moz-margin-end",webkit:"-webkit-margin-end",presto:"",trident:"",status:"ED"},{gecko:"-moz-margin-start",webkit:"-webkit-margin-start",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-margin-top-collapse",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-marquee",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"-wap-marquee-dir",trident:"",status:""},{gecko:"",webkit:"-webkit-marquee-direction",presto:"",trident:"",status:"WD"},{gecko:"",webkit:"-webkit-marquee-increment",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"-wap-marquee-loop",trident:"",status:"WD"},{gecko:"",webkit:"-webkit-marquee-repetition",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-marquee-speed",presto:"-wap-marquee-speed",trident:"",status:"WD"},{gecko:"",webkit:"-webkit-marquee-style",presto:"-wap-marquee-style",trident:"",status:"WD"},{gecko:"mask",webkit:"-webkit-mask",presto:"mask",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-box-image",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-box-image-outset",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-box-image-repeat",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-box-image-slice",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-box-image-source",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-box-image-width",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-clip",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-composite",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-image",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-origin",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-position",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-position-x",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-position-y",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-repeat",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-repeat-x",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-repeat-y",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-mask-size",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-max-logical-height",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-max-logical-width",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-min-logical-height",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-min-logical-width",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"",presto:"-o-mini-fold",trident:"",status:""},{gecko:"",webkit:"-webkit-nbsp-mode",presto:"",trident:"",status:"P"},{gecko:"",webkit:"",presto:"-o-object-fit",trident:"",status:"ED"},{gecko:"",webkit:"",presto:"-o-object-position",trident:"",status:"ED"},{gecko:"opacity",webkit:"-webkit-opacity",presto:"opacity",trident:"opacity",status:"WD"},{gecko:"order",webkit:"-webkit-order",presto:"",trident:"",status:""},{gecko:"-moz-orient",webkit:"",presto:"",trident:"",status:""},{gecko:"-moz-outline-radius",webkit:"",presto:"",trident:"",status:"P"},{gecko:"-moz-outline-radius-bottomleft",webkit:"",presto:"",trident:"",status:"P"},{gecko:"-moz-outline-radius-bottomright",webkit:"",presto:"",trident:"",status:"P"},{gecko:"-moz-outline-radius-topleft",webkit:"",presto:"",trident:"",status:"P"},{gecko:"-moz-outline-radius-topright",webkit:"",presto:"",trident:"",status:"P"},{gecko:"",webkit:"-webkit-overflow-scrolling",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-overflow-style",status:"CR"},{gecko:"overflow-x",webkit:"overflow-x",presto:"overflow-x",trident:"-ms-overflow-x",status:"WD"},{gecko:"overflow-y",webkit:"overflow-y",presto:"overflow-y",trident:"-ms-overflow-y",status:"WD"},{gecko:"",webkit:"-webkit-padding-after",presto:"",trident:"",status:"ED"},{gecko:"",webkit:"-webkit-padding-before",presto:"",trident:"",status:"ED"},{gecko:"-moz-padding-end",webkit:"-webkit-padding-end",presto:"",trident:"",status:"ED"},{gecko:"-moz-padding-start",webkit:"-webkit-padding-start",presto:"",trident:"",status:"ED"},{gecko:"perspective",webkit:"-webkit-perspective",presto:"",trident:"perspective",status:"WD"},{gecko:"perspective-origin",webkit:"-webkit-perspective-origin",presto:"",trident:"perspective-origin",status:"WD"},{gecko:"",webkit:"-webkit-perspective-origin-x",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-perspective-origin-y",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"-xv-phonemes",trident:"",status:""},{gecko:"",webkit:"-webkit-print-color-adjust",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-progress-appearance",status:""},{gecko:"",webkit:"-webkit-region-break-after",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-region-break-before",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-region-break-inside",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-region-fragment",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-rtl-ordering",presto:"",trident:"",status:"P"},{gecko:"",webkit:"-webkit-ruby-position",presto:"",trident:"ruby-position",status:"CR"},{gecko:"-moz-script-level",webkit:"",presto:"",trident:"",status:""},{gecko:"-moz-script-min-size",webkit:"",presto:"",trident:"",status:""},{gecko:"-moz-script-size-multiplier",webkit:"",presto:"",trident:"",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-chaining",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-limit",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-limit-x-max",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-limit-x-min",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-limit-y-max",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-limit-y-min",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-rails",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-snap-points-x",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-snap-points-y",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-snap-type",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-snap-x",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-snap-y",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-scroll-translation",status:""},{gecko:"",webkit:"",presto:"scrollbar-arrow-color",trident:"-ms-scrollbar-arrow-color",status:"P"},{gecko:"",webkit:"",presto:"scrollbar-base-color",trident:"-ms-scrollbar-base-color",status:"P"},{gecko:"",webkit:"",presto:"scrollbar-darkshadow-color",trident:"-ms-scrollbar-darkshadow-color",status:"P"},{gecko:"",webkit:"",presto:"scrollbar-face-color",trident:"-ms-scrollbar-face-color",status:"P"},{gecko:"",webkit:"",presto:"scrollbar-highlight-color",trident:"-ms-scrollbar-highlight-color",status:"P"},{gecko:"",webkit:"",
  presto:"scrollbar-shadow-color",trident:"-ms-scrollbar-shadow-color",status:"P"},{gecko:"",webkit:"",presto:"scrollbar-track-color",trident:"-ms-scrollbar-track-color",status:"P"},{gecko:"",webkit:"-webkit-shape-inside",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-shape-margin",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-shape-outside",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-shape-padding",presto:"",trident:"",status:""},{gecko:"-moz-stack-sizing",webkit:"",presto:"",trident:"",status:"P"},{gecko:"",webkit:"-webkit-svg-shadow",presto:"",trident:"",status:""},{gecko:"-moz-tab-size",webkit:"tab-size",presto:"-o-tab-size",trident:"",status:""},{gecko:"",webkit:"",presto:"-o-table-baseline",trident:"",status:""},{gecko:"",webkit:"-webkit-tap-highlight-color",presto:"",trident:"",status:"P"},{gecko:"-moz-text-align-last",webkit:"-webkit-text-align-last",presto:"",trident:"-ms-text-align-last",status:"WD"},{gecko:"",webkit:"",presto:"",trident:"-ms-text-autospace",status:"WD"},{gecko:"-moz-text-blink",webkit:"",presto:"",trident:"",status:""},{gecko:"",webkit:"-epub-text-combine",presto:"",trident:"",status:""},{gecko:"-moz-text-decoration-color",webkit:"-webkit-text-decoration-color",presto:"",trident:"",status:""},{gecko:"-moz-text-decoration-line",webkit:"-webkit-text-decoration-line",presto:"",trident:"",status:""},{gecko:"-moz-text-decoration-style",webkit:"-webkit-text-decoration-style",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-text-decorations-in-effect",presto:"",trident:"",status:""},{gecko:"",webkit:"-epub-text-emphasis",presto:"",trident:"",status:""},{gecko:"",webkit:"-epub-text-emphasis-color",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-text-emphasis-position",presto:"",trident:"",status:""},{gecko:"",webkit:"-epub-text-emphasis-style",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-text-fill-color",presto:"",trident:"",status:"P"},{gecko:"",webkit:"-webkit-text-justify",presto:"",trident:"-ms-text-justify",status:"WD"},{gecko:"",webkit:"",presto:"",trident:"-ms-text-kashida-space",status:"P"},{gecko:"",webkit:"-epub-text-orientation",presto:"",trident:"",status:""},{gecko:"text-overflow",webkit:"text-overflow",presto:"text-overflow",trident:"-ms-text-overflow",status:"WD"},{gecko:"",webkit:"-webkit-text-security",presto:"",trident:"",status:"P"},{gecko:"-moz-text-size-adjust",webkit:"",presto:"",trident:"",status:""},{gecko:"",webkit:"-webkit-text-stroke",presto:"",trident:"",status:"P"},{gecko:"",webkit:"-webkit-text-stroke-color",presto:"",trident:"",status:"P"},{gecko:"",webkit:"-webkit-text-stroke-width",presto:"",trident:"",status:"P"},{gecko:"text-transform",webkit:"-epub-text-transform",presto:"text-transform",trident:"text-transform",status:""},{gecko:"",webkit:"-webkit-text-underline-position",presto:"",trident:"-ms-text-underline-position",status:"P"},{gecko:"",webkit:"",presto:"",trident:"-ms-touch-action",status:""},{gecko:"",webkit:"-webkit-touch-callout",presto:"",trident:"",status:"P"},{gecko:"-moz-transform",webkit:"-webkit-transform",presto:"-o-transform",trident:"transform",status:"WD"},{gecko:"transform-origin",webkit:"-webkit-transform-origin",presto:"-o-transform-origin",trident:"transform-origin",status:"WD"},{gecko:"",webkit:"-webkit-transform-origin-x",presto:"",trident:"",status:"P"},{gecko:"",webkit:"-webkit-transform-origin-y",presto:"",trident:"",status:"P"},{gecko:"",webkit:"-webkit-transform-origin-z",presto:"",trident:"",status:"P"},{gecko:"transform-style",webkit:"-webkit-transform-style",presto:"",trident:"transform-style",status:"WD"},{gecko:"transition",webkit:"-webkit-transition",presto:"-o-transition",trident:"transition",status:"WD"},{gecko:"transition-delay",webkit:"-webkit-transition-delay",presto:"-o-transition-delay",trident:"transition-delay",status:"WD"},{gecko:"transition-duration",webkit:"-webkit-transition-duration",presto:"-o-transition-duration",trident:"transition-duration",status:"WD"},{gecko:"transition-property",webkit:"-webkit-transition-property",presto:"-o-transition-property",trident:"transition-property",status:"WD"},{gecko:"transition-timing-function",webkit:"-webkit-transition-timing-function",presto:"-o-transition-timing-function",trident:"transition-timing-function",status:"WD"},{gecko:"",webkit:"-webkit-user-drag",presto:"",trident:"",status:"P"},{gecko:"-moz-user-focus",webkit:"",presto:"",trident:"",status:"P"},{gecko:"-moz-user-input",webkit:"",presto:"",trident:"",status:"P"},{gecko:"-moz-user-modify",webkit:"-webkit-user-modify",presto:"",trident:"",status:"P"},{gecko:"-moz-user-select",webkit:"-webkit-user-select",presto:"",trident:"-ms-user-select",status:"P"},{gecko:"",webkit:"",presto:"-xv-voice-balance",trident:"",status:""},{gecko:"",webkit:"",presto:"-xv-voice-duration",trident:"",status:""},{gecko:"",webkit:"",presto:"-xv-voice-pitch",trident:"",status:""},{gecko:"",webkit:"",presto:"-xv-voice-pitch-range",trident:"",status:""},{gecko:"",webkit:"",presto:"-xv-voice-rate",trident:"",status:""},{gecko:"",webkit:"",presto:"-xv-voice-stress",trident:"",status:""},{gecko:"",webkit:"",presto:"-xv-voice-volume",trident:"",status:""},{gecko:"-moz-window-shadow",webkit:"",presto:"",trident:"",status:"P"},{gecko:"word-break",webkit:"-epub-word-break",presto:"",trident:"-ms-word-break",status:"WD"},{gecko:"word-wrap",webkit:"word-wrap",presto:"word-wrap",trident:"-ms-word-wrap",status:"WD"},{gecko:"",webkit:"-webkit-wrap-flow",presto:"",trident:"-ms-wrap-flow",status:""},{gecko:"",webkit:"",presto:"",trident:"-ms-wrap-margin",status:""},{gecko:"",webkit:"-webkit-wrap-through",presto:"",trident:"-ms-wrap-through",status:""},{gecko:"writing-mode",webkit:"-epub-writing-mode",presto:"writing-mode",trident:"-ms-writing-mode",status:"ED"},{gecko:"",webkit:"zoom",presto:"",trident:"-ms-zoom",status:""}]},PrefixHelper={mVENDOR_PREFIXES:null,kEXPORTS_FOR_GECKO:!0,kEXPORTS_FOR_WEBKIT:!0,kEXPORTS_FOR_PRESTO:!0,kEXPORTS_FOR_TRIDENT:!0,cleanPrefixes:function(){this.mVENDOR_PREFIXES=null},prefixesForProperty:function(e){if(!this.mVENDOR_PREFIXES){this.mVENDOR_PREFIXES={};for(var t=0;t<kCSS_VENDOR_PREFIXES.properties.length;t++){var s=kCSS_VENDOR_PREFIXES.properties[t];if(s.gecko&&(s.webkit||s.presto||s.trident)){var i={};this.kEXPORTS_FOR_GECKO&&(i[s.gecko]=!0),this.kEXPORTS_FOR_WEBKIT&&s.webkit&&(i[s.webkit]=!0),this.kEXPORTS_FOR_PRESTO&&s.presto&&(i[s.presto]=!0),this.kEXPORTS_FOR_TRIDENT&&s.trident&&(i[s.trident]=!0),this.mVENDOR_PREFIXES[s.gecko]=[];for(var r in i)this.mVENDOR_PREFIXES[s.gecko].push(r)}}}return e in this.mVENDOR_PREFIXES?this.mVENDOR_PREFIXES[e].sort():null}},CSS_ESCAPE="\\",IS_HEX_DIGIT=1,START_IDENT=2,IS_IDENT=4,IS_WHITESPACE=8,W=IS_WHITESPACE,I=IS_IDENT,S=START_IDENT,SI=IS_IDENT|START_IDENT,XI=IS_IDENT|IS_HEX_DIGIT,XSI=IS_IDENT|START_IDENT|IS_HEX_DIGIT;CSSScanner.prototype={kLexTable:[0,0,0,0,0,0,0,0,0,W,W,0,W,W,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,W,0,0,0,0,0,0,0,0,0,0,0,0,I,0,0,XI,XI,XI,XI,XI,XI,XI,XI,XI,XI,0,0,0,0,0,0,0,XSI,XSI,XSI,XSI,XSI,XSI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,0,S,0,0,SI,0,XSI,XSI,XSI,XSI,XSI,XSI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI,SI],kHexValues:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15},mString:"",mPos:0,mPreservedPos:[],init:function(e){this.mString=e,this.mPos=0,this.mPreservedPos=[]},getCurrentPos:function(){return this.mPos},getAlreadyScanned:function(){return this.mString.substr(0,this.mPos)},preserveState:function(){this.mPreservedPos.push(this.mPos)},restoreState:function(){this.mPreservedPos.length&&(this.mPos=this.mPreservedPos.pop())},forgetState:function(){this.mPreservedPos.length&&this.mPreservedPos.pop()},read:function(){return this.mPos<this.mString.length?this.mString.charAt(this.mPos++):-1},peek:function(){return this.mPos<this.mString.length?this.mString.charAt(this.mPos):-1},isHexDigit:function(e){var t=e.charCodeAt(0);return t<256&&0!=(this.kLexTable[t]&IS_HEX_DIGIT)},isIdentStart:function(e){var t=e.charCodeAt(0);return t>=256||0!=(this.kLexTable[t]&START_IDENT)},startsWithIdent:function(e,t){e.charCodeAt(0);return this.isIdentStart(e)||"-"==e&&this.isIdentStart(t)},isIdent:function(e){var t=e.charCodeAt(0);return t>=256||0!=(this.kLexTable[t]&IS_IDENT)},pushback:function(){this.mPos--},nextHexValue:function(){var e=this.read();if(e==-1||!this.isHexDigit(e))return new jscsspToken(jscsspToken.NULL_TYPE,null);var t=e;for(e=this.read();e!=-1&&this.isHexDigit(e);)t+=e,e=this.read();return e!=-1&&this.pushback(),new jscsspToken(jscsspToken.HEX_TYPE,t)},gatherEscape:function(){var e=this.peek();if(e==-1)return"";if(this.isHexDigit(e)){for(var t=0,s=0;s<6;s++){if(e=this.read(),!this.isHexDigit(e)){if(this.isHexDigit(e)||this.isWhiteSpace(e))break;this.pushback();break}t=16*t+this.kHexValues[e.toLowerCase()]}return 6==s&&(e=this.peek(),this.isWhiteSpace(e)&&this.read()),String.fromCharCode(t)}return e=this.read(),"\n"!=e?e:""},gatherIdent:function(e){var t="";for(t+=e==CSS_ESCAPE?this.gatherEscape():e,e=this.read();e!=-1&&(this.isIdent(e)||e==CSS_ESCAPE);)t+=e==CSS_ESCAPE?this.gatherEscape():e,e=this.read();return e!=-1&&this.pushback(),t},parseIdent:function(e){var t=this.gatherIdent(e),s=this.peek();return"("==s?(t+=this.read(),new jscsspToken(jscsspToken.FUNCTION_TYPE,t)):new jscsspToken(jscsspToken.IDENT_TYPE,t)},isDigit:function(e){return e>="0"&&e<="9"},parseComment:function(e){for(var t=e;(e=this.read())!=-1;)if(t+=e,"*"==e){if(e=this.read(),e==-1)break;if("/"==e){t+=e;break}this.pushback()}return new jscsspToken(jscsspToken.COMMENT_TYPE,t)},parseNumber:function(e){for(var t=e,s=!1;(e=this.read())!=-1;)if("."==e){if(s)break;t+=e,s=!0}else{if(!this.isDigit(e))break;t+=e}if(e!=-1&&this.startsWithIdent(e,this.peek())){var i=this.gatherIdent(e);return t+=i,new jscsspToken(jscsspToken.DIMENSION_TYPE,t,i)}return"%"==e?(t+="%",new jscsspToken(jscsspToken.PERCENTAGE_TYPE,t)):(e!=-1&&this.pushback(),new jscsspToken(jscsspToken.NUMBER_TYPE,t))},parseString:function(e){for(var t,s=e,i=e;(t=this.read())!=-1;){if(t==e&&i!=CSS_ESCAPE){s+=t;break}if(t==CSS_ESCAPE){if(t=this.peek(),t==-1)break;"\n"==t||"\r"==t||"\f"==t?(d=t,t=this.read(),"\r"==d&&(t=this.peek(),"\n"==t&&(t=this.read()))):(s+=this.gatherEscape(),t=this.peek())}else{if("\n"==t||"\r"==t||"\f"==t)break;s+=t}i=t}return new jscsspToken(jscsspToken.STRING_TYPE,s)},isWhiteSpace:function(e){var t=e.charCodeAt(0);return t<256&&0!=(this.kLexTable[t]&IS_WHITESPACE)},eatWhiteSpace:function(e){for(var t=e;(e=this.read())!=-1&&this.isWhiteSpace(e);)t+=e;return e!=-1&&this.pushback(),t},parseAtKeyword:function(e){return new jscsspToken(jscsspToken.ATRULE_TYPE,this.gatherIdent(e))},nextToken:function(){var e=this.read();if(e==-1)return new jscsspToken(jscsspToken.NULL_TYPE,null);if(this.startsWithIdent(e,this.peek()))return this.parseIdent(e);if("@"==e){var t=this.read();if(t!=-1){var s=this.peek();if(this.pushback(),this.startsWithIdent(t,s))return this.parseAtKeyword(e)}}if("."==e||"+"==e||"-"==e){var t=this.peek();if(this.isDigit(t))return this.parseNumber(e);if("."==t&&"."!=e){firstChar=this.read();var i=this.peek();if(this.pushback(),this.isDigit(i))return this.parseNumber(e)}}if(this.isDigit(e))return this.parseNumber(e);if("'"==e||'"'==e)return this.parseString(e);if(this.isWhiteSpace(e)){var r=this.eatWhiteSpace(e);return new jscsspToken(jscsspToken.WHITESPACE_TYPE,r)}if("|"==e||"~"==e||"^"==e||"$"==e||"*"==e){var t=this.read();if("="==t)switch(e){case"~":return new jscsspToken(jscsspToken.INCLUDES_TYPE,"~=");case"|":return new jscsspToken(jscsspToken.DASHMATCH_TYPE,"|=");case"^":return new jscsspToken(jscsspToken.BEGINSMATCH_TYPE,"^=");case"$":return new jscsspToken(jscsspToken.ENDSMATCH_TYPE,"$=");case"*":return new jscsspToken(jscsspToken.CONTAINSMATCH_TYPE,"*=")}else t!=-1&&this.pushback()}return"/"==e&&"*"==this.peek()?this.parseComment(e):new jscsspToken(jscsspToken.SYMBOL_TYPE,e)}},CSSParser.prototype.parseBackgroundImages=function(){for(var e=[],t=this.getToken(!0,!0);t.isNotNull();){if(t.isFunction("url(")){t=this.getToken(!0,!0);var s=this.parseURL(t);e.push({type:"image",value:"url("+s}),t=this.getToken(!0,!0)}else if(t.isFunction("linear-gradient(")||t.isFunction("radial-gradient(")||t.isFunction("repeating-linear-gradient(")||t.isFunction("repeating-radial-gradient(")){this.ungetToken();var i=this.parseGradient();if(!i)return null;e.push({type:i.isRadial?"radial-gradient":"linear-gradient",value:i}),t=this.getToken(!0,!0)}else{if(!(t.isIdent("none")||t.isIdent("inherit")||t.isIdent("initial")))return null;e.push({type:t.value}),t=this.getToken(!0,!0)}if(t.isSymbol(",")&&(t=this.getToken(!0,!0),!t.isNotNull()))return null}return e},CSSParser.prototype.parseBackgroundShorthand=function(e,t,s){for(var i={left:!0,right:!0},r={top:!0,bottom:!0},o={left:!0,right:!0,top:!0,bottom:!0,center:!0},n=null,a=null,l=null,u=null,c=null;;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){e.isSymbol("}")&&this.ungetToken();break}if(n||a||l||u||c||!e.isIdent(this.kINHERIT))if(l||!e.isIdent("scroll")&&!e.isIdent("fixed")){if(!c&&(e.isIdent()&&e.value in o||e.isDimension()||e.isNumber("0")||e.isPercentage()))if(c=e.value,e=this.getToken(!0,!0),e.isDimension()||e.isNumber("0")||e.isPercentage())c+=" "+e.value;else if(e.isIdent()&&e.value in o){if(c in i&&e.value in i||c in r&&e.value in r)return"";c+=" "+e.value}else this.ungetToken(),c+=" center";else if(!a&&(e.isIdent("repeat")||e.isIdent("repeat-x")||e.isIdent("repeat-y")||e.isIdent("no-repeat")))a=e.value;else if(u||!e.isFunction("url(")&&!e.isIdent("none"))if(!u&&(e.isFunction("linear-gradient(")||e.isFunction("radial-gradient(")||e.isFunction("repeating-linear-gradient(")||e.isFunction("repeating-radial-gradient("))){this.ungetToken();var p=this.parseGradient();if(!p)return"";u=this.serializeGradient(p)}else{var k=this.parseColor(e);if(n||!k)return"";n=k}else if(u=e.value,e.isFunction("url(")){e=this.getToken(!0,!0);var h=this.parseURL(e);if(!h)return"";u+=h}}else l=e.value;else n=this.kINHERIT,a=this.kINHERIT,l=this.kINHERIT,u=this.kINHERIT,c=this.kINHERIT;e=this.getToken(!0,!0)}return this.forgetState(),n=n?n:"transparent",u=u?u:"none",a=a?a:"repeat",l=l?l:"scroll",c=c?c:"top left",t.push(this._createJscsspDeclarationFromValue("background-color",n)),t.push(this._createJscsspDeclarationFromValue("background-image",u)),t.push(this._createJscsspDeclarationFromValue("background-repeat",a)),t.push(this._createJscsspDeclarationFromValue("background-attachment",l)),t.push(this._createJscsspDeclarationFromValue("background-position",c)),n+" "+u+" "+a+" "+l+" "+c},CSSParser.prototype.parseBorderColorShorthand=function(e,t,s){for(var i=null,r=null,o=null,n=null,a=[];;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){e.isSymbol("}")&&this.ungetToken();break}if(!a.length&&e.isIdent(this.kINHERIT)){a.push(e.value),e=this.getToken(!0,!0);break}var l=this.parseColor(e);if(!l)return"";a.push(l),e=this.getToken(!0,!0)}var u=a.length;switch(u){case 1:i=a[0],r=i,o=i,n=i;break;case 2:i=a[0],r=i,o=a[1],n=o;break;case 3:i=a[0],o=a[1],n=o,r=a[2];break;case 4:i=a[0],n=a[1],r=a[2],o=a[3];break;default:return""}return this.forgetState(),t.push(this._createJscsspDeclarationFromValue("border-top-color",i)),t.push(this._createJscsspDeclarationFromValue("border-right-color",n)),t.push(this._createJscsspDeclarationFromValue("border-bottom-color",r)),t.push(this._createJscsspDeclarationFromValue("border-left-color",o)),i+" "+n+" "+r+" "+o},CSSParser.prototype.parseBorderEdgeOrOutlineShorthand=function(e,t,s,i){function r(e,t,s,i,r,o){t.push(e._createJscsspDeclarationFromValue(s+"-width",i)),t.push(e._createJscsspDeclarationFromValue(s+"-style",r)),t.push(e._createJscsspDeclarationFromValue(s+"-color",o))}for(var o=null,n=null,a=null;;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){e.isSymbol("}")&&this.ungetToken();break}if(o||n||a||!e.isIdent(this.kINHERIT))if(!o&&(e.isDimension()||e.isIdent()&&e.value in this.kBORDER_WIDTH_NAMES||e.isNumber("0")))o=e.value;else if(!n&&e.isIdent()&&e.value in this.kBORDER_STYLE_NAMES)n=e.value;else{var l="outline"==i&&e.isIdent("invert")?"invert":this.parseColor(e);if(a||!l)return"";a=l}else o=this.kINHERIT,n=this.kINHERIT,a=this.kINHERIT;e=this.getToken(!0,!0)}return this.forgetState(),o=o?o:"medium",n=n?n:"none",a=a?a:"-moz-initial","border"==i?(r(this,t,"border-top",o,n,a),r(this,t,"border-right",o,n,a),r(this,t,"border-bottom",o,n,a),r(this,t,"border-left",o,n,a)):r(this,t,i,o,n,a),o+" "+n+" "+a},CSSParser.prototype.parseBorderImage=function(){var e={url:"",offsets:[],widths:[],sizes:[]},t=this.getToken(!0,!0);if(!t.isFunction("url("))return null;t=this.getToken(!0,!0);var s=this.parseURL(t);if(!s)return null;if(e.url=s.substr(0,s.length-1).trim(),('"'==e.url[0]&&'"'==e.url[e.url.length-1]||"'"==e.url[0]&&"'"==e.url[e.url.length-1])&&(e.url=e.url.substr(1,e.url.length-2)),t=this.getToken(!0,!0),!t.isNumber()&&!t.isPercentage())return null;e.offsets.push(t.value);var i;for(i=0;i<3&&(t=this.getToken(!0,!0),t.isNumber()||t.isPercentage());i++)e.offsets.push(t.value);if(3==i&&(t=this.getToken(!0,!0)),t.isSymbol("/")){if(t=this.getToken(!0,!0),!(t.isDimension()||t.isNumber("0")||t.isIdent()&&t.value in this.kBORDER_WIDTH_NAMES))return null;e.widths.push(t.value);for(var i=0;i<3&&(t=this.getToken(!0,!0),t.isDimension()||t.isNumber("0")||t.isIdent()&&t.value in this.kBORDER_WIDTH_NAMES);i++)e.widths.push(t.value);3==i&&(t=this.getToken(!0,!0))}for(var i=0;i<2;i++){if(!(t.isIdent("stretch")||t.isIdent("repeat")||t.isIdent("round")))return t.isNotNull()?null:e;e.sizes.push(t.value),t=this.getToken(!0,!0)}return t.isNotNull()?null:e},CSSParser.prototype.parseBorderStyleShorthand=function(e,t,s){for(var i=null,r=null,o=null,n=null,a=[];;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){e.isSymbol("}")&&this.ungetToken();break}if(!a.length&&e.isIdent(this.kINHERIT))a.push(e.value);else{if(!(e.isIdent()&&e.value in this.kBORDER_STYLE_NAMES))return"";a.push(e.value)}e=this.getToken(!0,!0)}var l=a.length;switch(l){case 1:i=a[0],r=i,o=i,n=i;break;case 2:i=a[0],r=i,o=a[1],n=o;break;case 3:i=a[0],o=a[1],n=o,r=a[2];break;case 4:i=a[0],n=a[1],r=a[2],o=a[3];break;default:return""}return this.forgetState(),t.push(this._createJscsspDeclarationFromValue("border-top-style",i)),t.push(this._createJscsspDeclarationFromValue("border-right-style",n)),t.push(this._createJscsspDeclarationFromValue("border-bottom-style",r)),t.push(this._createJscsspDeclarationFromValue("border-left-style",o)),i+" "+n+" "+r+" "+o},CSSParser.prototype.parseBorderWidthShorthand=function(e,t,s){for(var i=null,r=null,o=null,n=null,a=[];;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){e.isSymbol("}")&&this.ungetToken();break}if(!a.length&&e.isIdent(this.kINHERIT))a.push(e.value);else{if(!(e.isDimension()||e.isNumber("0")||e.isIdent()&&e.value in this.kBORDER_WIDTH_NAMES))return"";a.push(e.value)}e=this.getToken(!0,!0)}var l=a.length;switch(l){case 1:i=a[0],r=i,o=i,n=i;break;case 2:i=a[0],r=i,o=a[1],n=o;break;case 3:i=a[0],o=a[1],n=o,r=a[2];break;case 4:i=a[0],n=a[1],r=a[2],o=a[3];break;default:return""}return this.forgetState(),t.push(this._createJscsspDeclarationFromValue("border-top-width",i)),t.push(this._createJscsspDeclarationFromValue("border-right-width",n)),t.push(this._createJscsspDeclarationFromValue("border-bottom-width",r)),t.push(this._createJscsspDeclarationFromValue("border-left-width",o)),i+" "+n+" "+r+" "+o},CSSParser.prototype.parseBoxShadows=function(){for(var e=[],t=this.getToken(!0,!0),s="",i="0px",r="0px",o="0px",n="0px",a=!1;t.isNotNull();)if(t.isIdent("none"))e.push({none:!0}),t=this.getToken(!0,!0);else{if(t.isIdent("inset")&&(a=!0,t=this.getToken(!0,!0)),!(t.isPercentage()||t.isDimensionOfUnit("cm")||t.isDimensionOfUnit("mm")||t.isDimensionOfUnit("in")||t.isDimensionOfUnit("pc")||t.isDimensionOfUnit("px")||t.isDimensionOfUnit("em")||t.isDimensionOfUnit("ex")||t.isDimensionOfUnit("pt")))return[];var r=t.value;if(t=this.getToken(!0,!0),!a&&t.isIdent("inset")&&(a=!0,t=this.getToken(!0,!0)),!(t.isPercentage()||t.isDimensionOfUnit("cm")||t.isDimensionOfUnit("mm")||t.isDimensionOfUnit("in")||t.isDimensionOfUnit("pc")||t.isDimensionOfUnit("px")||t.isDimensionOfUnit("em")||t.isDimensionOfUnit("ex")||t.isDimensionOfUnit("pt")))return[];var o=t.value;if(t=this.getToken(!0,!0),!a&&t.isIdent("inset")&&(a=!0,t=this.getToken(!0,!0)),t.isPercentage()||t.isDimensionOfUnit("cm")||t.isDimensionOfUnit("mm")||t.isDimensionOfUnit("in")||t.isDimensionOfUnit("pc")||t.isDimensionOfUnit("px")||t.isDimensionOfUnit("em")||t.isDimensionOfUnit("ex")||t.isDimensionOfUnit("pt")){var i=t.value;t=this.getToken(!0,!0)}if(!a&&t.isIdent("inset")&&(a=!0,t=this.getToken(!0,!0)),t.isPercentage()||t.isDimensionOfUnit("cm")||t.isDimensionOfUnit("mm")||t.isDimensionOfUnit("in")||t.isDimensionOfUnit("pc")||t.isDimensionOfUnit("px")||t.isDimensionOfUnit("em")||t.isDimensionOfUnit("ex")||t.isDimensionOfUnit("pt")){var n=t.value;t=this.getToken(!0,!0)}if(!a&&t.isIdent("inset")&&(a=!0,t=this.getToken(!0,!0)),t.isFunction("rgb(")||t.isFunction("rgba(")||t.isFunction("hsl(")||t.isFunction("hsla(")||t.isSymbol("#")||t.isIdent()){var s=this.parseColor(t);t=this.getToken(!0,!0)}if(!a&&t.isIdent("inset")&&(a=!0,t=this.getToken(!0,!0)),e.push({none:!1,color:s,offsetX:r,offsetY:o,blurRadius:i,spreadRadius:n,inset:a}),!t.isSymbol(","))return t.isNotNull()?[]:e;a=!1,s="",i="0px",n="0px",r="0px",o="0px",t=this.getToken(!0,!0)}return e},CSSParser.prototype.parseCharsetRule=function(e){var t=this.getToken(!1,!1);if(t.isAtRule("@charset")&&"@charset"==t.value){var s=t.value;if(t=this.getToken(!1,!1),s+=t.value,t.isWhiteSpace(" "))if(t=this.getToken(!1,!1),s+=t.value,t.isString()){var i=t.value;if(t=this.getToken(!1,!1),s+=t.value,t.isSymbol(";")){var r=new jscsspCharsetRule;return r.encoding=i,r.parsedCssText=s,r.parentStyleSheet=e,e.cssRules.push(r),!0}this.reportError(kCHARSET_RULE_MISSING_SEMICOLON)}else this.reportError(kCHARSET_RULE_CHARSET_IS_STRING);else this.reportError(kCHARSET_RULE_MISSING_WS)}return this.addUnknownAtRule(e,s),!1},CSSParser.prototype.parseColor=function(e){var t="";if(e.isFunction("rgb(")||e.isFunction("rgba(")){t=e.value;var s=e.isFunction("rgba(");if(e=this.getToken(!0,!0),!e.isNumber()&&!e.isPercentage())return"";if(t+=e.value,e=this.getToken(!0,!0),!e.isSymbol(","))return"";if(t+=", ",e=this.getToken(!0,!0),!e.isNumber()&&!e.isPercentage())return"";if(t+=e.value,e=this.getToken(!0,!0),!e.isSymbol(","))return"";if(t+=", ",e=this.getToken(!0,!0),!e.isNumber()&&!e.isPercentage())return"";if(t+=e.value,s){if(e=this.getToken(!0,!0),!e.isSymbol(","))return"";if(t+=", ",e=this.getToken(!0,!0),!e.isNumber())return"";t+=e.value}if(e=this.getToken(!0,!0),!e.isSymbol(")"))return"";t+=e.value}else if(e.isFunction("hsl(")||e.isFunction("hsla(")){t=e.value;var i=e.isFunction("hsla(");if(e=this.getToken(!0,!0),!e.isNumber())return"";if(t+=e.value,e=this.getToken(!0,!0),!e.isSymbol(","))return"";if(t+=", ",e=this.getToken(!0,!0),!e.isPercentage())return"";if(t+=e.value,e=this.getToken(!0,!0),!e.isSymbol(","))return"";if(t+=", ",e=this.getToken(!0,!0),!e.isPercentage())return"";if(t+=e.value,i){if(e=this.getToken(!0,!0),!e.isSymbol(","))return"";if(t+=", ",e=this.getToken(!0,!0),!e.isNumber())return"";t+=e.value}if(e=this.getToken(!0,!0),!e.isSymbol(")"))return"";t+=e.value}else if(e.isIdent()&&e.value in this.kCOLOR_NAMES)t=e.value;else if(e.isSymbol("#")){if(e=this.getHexValue(),!e.isHex())return"";var r=e.value.length;if(3!=r&&6!=r)return"";if(e.value.match(/[a-fA-F0-9]/g).length!=r)return"";t="#"+e.value}return t},CSSParser.prototype.parseCueShorthand=function(e,t,s){for(var i="",r="",o=[],o=[];;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){e.isSymbol("}")&&this.ungetToken();break}if(!o.length&&e.isIdent(this.kINHERIT))o.push(e.value);else if(e.isIdent("none"))o.push(e.value);else{if(!e.isFunction("url("))return"";e=this.getToken(!0,!0);var n=this.parseURL(e);if(!n)return"";o.push("url("+n)}e=this.getToken(!0,!0)}var a=o.length;switch(a){case 1:i=o[0],r=i;break;case 2:i=o[0],r=o[1];break;default:return""}return this.forgetState(),aDecl.push(this._createJscsspDeclarationFromValue("cue-before",i)),aDecl.push(this._createJscsspDeclarationFromValue("cue-after",r)),i+" "+r},CSSParser.prototype.parseDeclaration=function(e,t,s,i,r){this.preserveState();var o=[];if(e.isIdent()){var n=e.value.toLowerCase(),a=this.getToken(!0,!0);if(a.isSymbol(":")){var a=this.getToken(!0,!0),l="",u=[];if(i)switch(n){case"background":l=this.parseBackgroundShorthand(a,u,s);break;case"margin":case"padding":l=this.parseMarginOrPaddingShorthand(a,u,s,n);break;case"border-color":l=this.parseBorderColorShorthand(a,u,s);break;case"border-style":l=this.parseBorderStyleShorthand(a,u,s);break;case"border-width":l=this.parseBorderWidthShorthand(a,u,s);break;case"border-top":case"border-right":case"border-bottom":case"border-left":case"border":case"outline":l=this.parseBorderEdgeOrOutlineShorthand(a,u,s,n);break;case"cue":l=this.parseCueShorthand(a,u,s);break;case"pause":l=this.parsePauseShorthand(a,u,s);break;case"font":l=this.parseFontShorthand(a,u,s);break;case"list-style":l=this.parseListStyleShorthand(a,u,s);break;default:l=this.parseDefaultPropertyValue(a,u,s,n,r)}else l=this.parseDefaultPropertyValue(a,u,s,n,r);if(a=this.currentToken(),l){var c=!1;if(a.isSymbol("!")){if(a=this.getToken(!0,!0),!a.isIdent("important"))return"";if(c=!0,a=this.getToken(!0,!0),!a.isSymbol(";")&&!a.isSymbol("}"))return"";a.isSymbol("}")&&this.ungetToken()}else if(a.isNotNull()&&!a.isSymbol(";")&&!a.isSymbol("}"))return"";for(var p=0;p<u.length;p++)u[p].priority=c,t.push(u[p]);return n+": "+l+";"}}}else if(e.isComment()){if(this.mPreserveComments){this.forgetState();var k=new jscsspComment;k.parsedCssText=e.value,t.push(k)}return e.value}this.restoreState();var h=e.value;o=[];for(var a=this.getToken(!1,!1);a.isNotNull();){if(h+=a.value,(a.isSymbol(";")||a.isSymbol("}"))&&!o.length){a.isSymbol("}")&&this.ungetToken();break}if(a.isSymbol("{")||a.isSymbol("(")||a.isSymbol("[")||a.isFunction())o.push(a.isFunction()?"(":a.value);else if((a.isSymbol("}")||a.isSymbol(")")||a.isSymbol("]"))&&o.length){var d=o[o.length-1];(a.isSymbol("}")&&"{"==d||a.isSymbol(")")&&"("==d||a.isSymbol("]")&&"["==d)&&o.pop()}a=this.getToken(!1,!1)}return""},CSSParser.prototype.reportError=function(e){this.mError=e},CSSParser.prototype.consumeError=function(){var e=this.mError;return this.mError=null,e},CSSParser.prototype._init=function(){this.mToken=null,this.mLookAhead=null},CSSParser.prototype.kINHERIT="inherit",CSSParser.prototype.kBORDER_WIDTH_NAMES={thin:!0,medium:!0,thick:!0},CSSParser.prototype.kBORDER_STYLE_NAMES={none:!0,hidden:!0,dotted:!0,dashed:!0,solid:!0,"double":!0,groove:!0,ridge:!0,inset:!0,outset:!0},CSSParser.prototype.kCOLOR_NAMES={transparent:!0,black:!0,silver:!0,gray:!0,white:!0,maroon:!0,red:!0,purple:!0,fuchsia:!0,green:!0,lime:!0,olive:!0,yellow:!0,navy:!0,blue:!0,teal:!0,aqua:!0,aliceblue:!0,antiquewhite:!0,aquamarine:!0,azure:!0,beige:!0,bisque:!0,blanchedalmond:!0,blueviolet:!0,brown:!0,burlywood:!0,cadetblue:!0,chartreuse:!0,chocolate:!0,coral:!0,cornflowerblue:!0,cornsilk:!0,crimson:!0,cyan:!0,darkblue:!0,darkcyan:!0,darkgoldenrod:!0,darkgray:!0,darkgreen:!0,darkgrey:!0,darkkhaki:!0,darkmagenta:!0,darkolivegreen:!0,darkorange:!0,darkorchid:!0,darkred:!0,darksalmon:!0,darkseagreen:!0,darkslateblue:!0,darkslategray:!0,darkslategrey:!0,darkturquoise:!0,darkviolet:!0,deeppink:!0,deepskyblue:!0,dimgray:!0,dimgrey:!0,dodgerblue:!0,firebrick:!0,floralwhite:!0,forestgreen:!0,gainsboro:!0,ghostwhite:!0,gold:!0,goldenrod:!0,greenyellow:!0,grey:!0,honeydew:!0,hotpink:!0,indianred:!0,indigo:!0,ivory:!0,khaki:!0,lavender:!0,lavenderblush:!0,lawngreen:!0,lemonchiffon:!0,lightblue:!0,lightcoral:!0,lightcyan:!0,lightgoldenrodyellow:!0,lightgray:!0,lightgreen:!0,lightgrey:!0,lightpink:!0,lightsalmon:!0,lightseagreen:!0,lightskyblue:!0,lightslategray:!0,lightslategrey:!0,lightsteelblue:!0,lightyellow:!0,limegreen:!0,linen:!0,magenta:!0,mediumaquamarine:!0,mediumblue:!0,mediumorchid:!0,mediumpurple:!0,mediumseagreen:!0,mediumslateblue:!0,mediumspringgreen:!0,mediumturquoise:!0,mediumvioletred:!0,midnightblue:!0,mintcream:!0,mistyrose:!0,moccasin:!0,navajowhite:!0,oldlace:!0,olivedrab:!0,orange:!0,orangered:!0,orchid:!0,palegoldenrod:!0,palegreen:!0,paleturquoise:!0,palevioletred:!0,papayawhip:!0,peachpuff:!0,peru:!0,pink:!0,plum:!0,powderblue:!0,rosybrown:!0,royalblue:!0,saddlebrown:!0,salmon:!0,sandybrown:!0,seagreen:!0,seashell:!0,sienna:!0,skyblue:!0,slateblue:!0,slategray:!0,slategrey:!0,snow:!0,springgreen:!0,steelblue:!0,tan:!0,thistle:!0,tomato:!0,turquoise:!0,violet:!0,wheat:!0,whitesmoke:!0,yellowgreen:!0,activeborder:!0,activecaption:!0,appworkspace:!0,background:!0,buttonface:!0,buttonhighlight:!0,buttonshadow:!0,buttontext:!0,captiontext:!0,graytext:!0,highlight:!0,highlighttext:!0,inactiveborder:!0,inactivecaption:!0,inactivecaptiontext:!0,infobackground:!0,infotext:!0,menu:!0,menutext:!0,scrollbar:!0,threeddarkshadow:!0,threedface:!0,threedhighlight:!0,threedlightshadow:!0,threedshadow:!0,window:!0,windowframe:!0,windowtext:!0},CSSParser.prototype.kLIST_STYLE_TYPE_NAMES={decimal:!0,"decimal-leading-zero":!0,"lower-roman":!0,"upper-roman":!0,georgian:!0,armenian:!0,"lower-latin":!0,"lower-alpha":!0,"upper-latin":!0,"upper-alpha":!0,"lower-greek":!0,disc:!0,circle:!0,square:!0,none:!0,box:!0,check:!0,diamond:!0,hyphen:!0,"lower-armenian":!0,"cjk-ideographic":!0,"ethiopic-numeric":!0,hebrew:!0,"japanese-formal":!0,"japanese-informal":!0,"simp-chinese-formal":!0,"simp-chinese-informal":!0,syriac:!0,tamil:!0,"trad-chinese-formal":!0,"trad-chinese-informal":!0,"upper-armenian":!0,"arabic-indic":!0,binary:!0,bengali:!0,cambodian:!0,khmer:!0,devanagari:!0,gujarati:!0,gurmukhi:!0,kannada:!0,"lower-hexadecimal":!0,lao:!0,malayalam:!0,mongolian:!0,myanmar:!0,octal:!0,oriya:!0,persian:!0,urdu:!0,telugu:!0,tibetan:!0,"upper-hexadecimal":!0,afar:!0,"ethiopic-halehame-aa-et":!0,"ethiopic-halehame-am-et":!0,"amharic-abegede":!0,"ehiopic-abegede-am-et":!0,"cjk-earthly-branch":!0,"cjk-heavenly-stem":!0,ethiopic:!0,"ethiopic-abegede":!0,"ethiopic-abegede-gez":!0,"hangul-consonant":!0,hangul:!0,"hiragana-iroha":!0,hiragana:!0,"katakana-iroha":!0,katakana:!0,"lower-norwegian":!0,oromo:!0,"ethiopic-halehame-om-et":!0,sidama:!0,"ethiopic-halehame-sid-et":!0,somali:!0,"ethiopic-halehame-so-et":!0,tigre:!0,"ethiopic-halehame-tig":!0,"tigrinya-er-abegede":!0,"ethiopic-abegede-ti-er":!0,"tigrinya-et":!0,"ethiopic-halehame-ti-et":!0,"upper-greek":!0,asterisks:!0,footnotes:!0,"circled-decimal":!0,"circled-lower-latin":!0,"circled-upper-latin":!0,"dotted-decimal":!0,"double-circled-decimal":!0,"filled-circled-decimal":!0,"parenthesised-decimal":!0,"parenthesised-lower-latin":!0},CSSParser.prototype.parseFontFaceRule=function(e,t){var s=CountLF(this.mScanner.getAlreadyScanned()),i=e.value,r=!1,o=[];this.preserveState();var n=this.getToken(!0,!0);if(n.isNotNull()&&n.isSymbol("{")){i+=" "+n.value;for(var n=this.getToken(!0,!1);;){if(n.isSymbol("}")){i+="}",r=!0;break}var a=this.parseDeclaration(n,o,!1,!1,t);i+=(a&&o.length?" ":"")+a,n=this.getToken(!0,!1)}}if(r){this.forgetState();var l=new jscsspFontFaceRule;return l.currentLine=s,l.parsedCssText=i,l.descriptors=o,l.parentStyleSheet=t,t.cssRules.push(l),!0}return this.restoreState(),!1},CSSParser.prototype.parseFontShorthand=function(e,t,s){for(var i={italic:!0,
  oblique:!0},r={"small-caps":!0},o={bold:!0,bolder:!0,lighter:!0,100:!0,200:!0,300:!0,400:!0,500:!0,600:!0,700:!0,800:!0,900:!0},n={"xx-small":!0,"x-small":!0,small:!0,medium:!0,large:!0,"x-large":!0,"xx-large":!0,larger:!0,smaller:!0},a={caption:!0,icon:!0,menu:!0,"message-box":!0,"small-caption":!0,"status-bar":!0},l={serif:!0,"sans-serif":!0,cursive:!0,fantasy:!0,monospace:!0},u=null,c=null,p=null,k=null,h=null,d="",b=null,g=[],m=0;;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){e.isSymbol("}")&&this.ungetToken();break}if(u||c||p||k||h||d||b||!e.isIdent(this.kINHERIT)){if(!b&&e.isIdent()&&e.value in a){b=e.value;break}if(!u&&e.isIdent()&&e.value in i)u=e.value;else if(!c&&e.isIdent()&&e.value in r)c=e.value;else if(!p&&(e.isIdent()||e.isNumber())&&e.value in o)p=e.value;else if(!k&&(e.isIdent()&&e.value in n||e.isDimension()||e.isPercentage())){if(k=e.value,e=this.getToken(!1,!1),e.isSymbol("/")){if(e=this.getToken(!1,!1),h||!(e.isDimension()||e.isNumber()||e.isPercentage()))return"";h=e.value}else if(!e.isWhiteSpace())continue}else if(e.isIdent("normal")){if(m++,m>3)return""}else{if(d||!e.isString()&&!e.isIdent())return"";for(var f=!1;;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){this.ungetToken();break}if(e.isIdent()&&e.value in l){var S=new jscsspVariable(kJscsspPRIMITIVE_VALUE,null);S.value=e.value,g.push(S),d+=e.value;break}if(e.isString()||e.isIdent()){var S=new jscsspVariable(kJscsspPRIMITIVE_VALUE,null);S.value=e.value,g.push(S),d+=e.value,f=!1}else{if(f||!e.isSymbol(","))return"";d+=", ",f=!0}e=this.getToken(!0,!0)}}}else u=this.kINHERIT,c=this.kINHERIT,p=this.kINHERIT,k=this.kINHERIT,h=this.kINHERIT,d=this.kINHERIT,b=this.kINHERIT;e=this.getToken(!0,!0)}return this.forgetState(),b?(t.push(this._createJscsspDeclarationFromValue("font",b)),b):(u=u?u:"normal",c=c?c:"normal",p=p?p:"normal",k=k?k:"medium",h=h?h:"normal",d=d?d:"-moz-initial",t.push(this._createJscsspDeclarationFromValue("font-style",u)),t.push(this._createJscsspDeclarationFromValue("font-variant",c)),t.push(this._createJscsspDeclarationFromValue("font-weight",p)),t.push(this._createJscsspDeclarationFromValue("font-size",k)),t.push(this._createJscsspDeclarationFromValue("line-height",h)),t.push(this._createJscsspDeclarationFromValuesArray("font-family",g,d)),u+" "+c+" "+p+" "+k+"/"+h+" "+d)},CSSParser.prototype.parseFunctionArgument=function(e){var t="";if(e.isString())t+=e.value,e=this.getToken(!0,!0);else for(var s=1;;){if(!e.isNotNull())return"";if((e.isFunction()||e.isSymbol("("))&&s++,e.isSymbol(")")&&(s--,!s))break;t+=e.value,e=this.getToken(!1,!1)}return e.isSymbol(")")?t+")":""},CSSParser.prototype.parseColorStop=function(e){var t=this.parseColor(e),s="";return t?(e=this.getToken(!0,!0),e.isLength()&&(s=e.value,e=this.getToken(!0,!0)),{color:t,position:s}):null},CSSParser.prototype.parseGradient=function(){var e={left:!0,right:!0},t={top:!0,bottom:!0},s={left:!0,right:!0,top:!0,bottom:!0,center:!0},i={isRepeating:!1},r=this.getToken(!0,!0);if(r.isNotNull()&&(r.isFunction("linear-gradient(")||r.isFunction("radial-gradient(")||r.isFunction("repeating-linear-gradient(")||r.isFunction("repeating-radial-gradient("))){(r.isFunction("radial-gradient(")||r.isFunction("repeating-radial-gradient("))&&(i.isRadial=!0),(r.isFunction("repeating-linear-gradient(")||r.isFunction("repeating-radial-gradient("))&&(i.isRepeating=!0),r=this.getToken(!0,!0);var o=!1,n=!1;if(r.isAngle()){if(i.angle=r.value,n=!0,r=this.getToken(!0,!0),!r.isSymbol(","))return null;r=this.getToken(!0,!0)}else if(r.isIdent("to")){if(o=!0,r=this.getToken(!0,!0),!(r.isIdent("top")||r.isIdent("bottom")||r.isIdent("left")||r.isIdent("right")))return null;if(i.position=r.value,r=this.getToken(!0,!0),("top"!=i.position&&"bottom"!=i.position||!r.isIdent("left")&&!r.isIdent("right"))&&("left"!=i.position&&"right"!=i.position||!r.isIdent("top")&&!r.isIdent("bottom"))||(i.position+=" "+r.value,r=this.getToken(!0,!0)),!r.isSymbol(","))return null;r=this.getToken(!0,!0)}else if(i.isRadial){for(i.shape="",i.extent="",i.positions=[],i.at="";!r.isIdent("at")&&!r.isSymbol(",");)if(i.shape||!r.isIdent("circle")&&!r.isIdent("ellipse"))if(!i.extent&&(r.isIdent("closest-corner")||r.isIdent("closes-side")||r.isIdent("farthest-corner")||r.isIdent("farthest-corner")))i.extent=r.value,r=this.getToken(!0,!0);else{if(!(i.positions.length<2&&r.isLength()))break;i.positions.push(r.value),r=this.getToken(!0,!0)}else i.shape=r.value,r=this.getToken(!0,!0);if((1!=i.positions.length||i.extent||"circle"!=i.shape&&i.shape)&&(2!=i.positions.length||i.extent||"ellipse"!=i.shape&&i.shape)&&(i.positions.length||!i.extent)&&(i.positions.length||i.extent))return null;if(r.isIdent("at")){if(r=this.getToken(!0,!0),!(r.isIdent()&&r.value in s||r.isDimension()||r.isNumber("0")||r.isPercentage()))return null;if(i.at=r.value,r=this.getToken(!0,!0),r.isDimension()||r.isNumber("0")||r.isPercentage())i.at+=" "+r.value;else if(r.isIdent()&&r.value in s){if(i.at in e&&r.value in e||i.at in t&&r.value in t)return"";i.at+=" "+r.value}else this.ungetToken(),i.at+=" center";r=this.getToken(!0,!0)}if(i.shape||i.extent||i.positions.length||i.at){if(!r.isSymbol(","))return null;r=this.getToken(!0,!0)}}var a=this.parseColorStop(r);if(!a)return null;if(r=this.currentToken(),!r.isSymbol(","))return null;r=this.getToken(!0,!0);var l=this.parseColorStop(r);if(!l)return null;for(r=this.currentToken(),r.isSymbol(",")&&(r=this.getToken(!0,!0)),i.stops=[a,l];!r.isSymbol(")");){var u=this.parseColorStop(r);if(!u)return null;if(r=this.currentToken(),!r.isSymbol(")")&&!r.isSymbol(","))return null;r.isSymbol(",")&&(r=this.getToken(!0,!0)),i.stops.push(u)}return i}return null},CSSParser.prototype.serializeGradient=function(e){var t=e.isRadial?e.isRepeating?"repeating-radial-gradient(":"radial-gradient(":e.isRepeating?"repeating-linear-gradient(":"linear-gradient(";(e.angle||e.position)&&(t+=(e.angle?e.angle:"")+(e.position?"to "+e.position:"")+", "),e.isRadial&&(t+=(e.shape?e.shape+" ":"")+(e.extent?e.extent+" ":"")+(e.positions.length?e.positions.join(" ")+" ":"")+(e.at?"at "+e.at+" ":"")+(e.shape||e.extent||e.positions.length||e.at?", ":""));for(var s=0;s<e.stops.length;s++){var i=e.stops[s];t+=i.color+(i.position?" "+i.position:""),s!=e.stops.length-1&&(t+=", ")}return t+=")"},CSSParser.prototype.parseImportRule=function(e,t){var s=CountLF(this.mScanner.getAlreadyScanned()),i=e.value;this.preserveState();var r=this.getToken(!0,!0),o=[],n="";if(r.isString())n=r.value,i+=" "+n;else if(r.isFunction("url(")){r=this.getToken(!0,!0);var a=this.parseURL(r);a&&(n="url("+a,i+=" "+n)}else this.reportError(kIMPORT_RULE_MISSING_URL);if(n){for(r=this.getToken(!0,!0);r.isIdent()&&(i+=" "+r.value,o.push(r.value),r=this.getToken(!0,!0));){if(!r.isSymbol(",")){if(r.isSymbol(";"))break;break}i+=",",r=this.getToken(!0,!0)}if(o.length||o.push("all"),r.isSymbol(";")){i+=";",this.forgetState();var l=new jscsspImportRule;return l.currentLine=s,l.parsedCssText=i,l.href=n,l.media=o,l.parentStyleSheet=t,t.cssRules.push(l),!0}}return this.restoreState(),this.addUnknownAtRule(t,"@import"),!1},CSSParser.prototype.parseKeyframesRule=function(e,t){var s=CountLF(this.mScanner.getAlreadyScanned()),i=e.value,r=!1,o=new jscsspKeyframesRule;o.currentLine=s,this.preserveState();for(var n=this.getToken(!0,!0),a=!1;n.isNotNull();){if(!n.isIdent()){if(n.isSymbol("{")){a||(n.type=jscsspToken.NULL_TYPE);break}n.type=jscsspToken.NULL_TYPE;break}if(a=!0,i+=" "+n.value,o.name=n.value,n=this.getToken(!0,!0),!n.isSymbol("{")){n.type=jscsspToken.NULL_TYPE;break}this.ungetToken(),n=this.getToken(!0,!0)}if(n.isSymbol("{")&&o.name)for(i+=" { ",n=this.getToken(!0,!1);n.isNotNull();){if(n.isComment()&&this.mPreserveComments){i+=" "+n.value;var l=new jscsspComment;l.parsedCssText=n.value,o.cssRules.push(l)}else{if(n.isSymbol("}")){r=!0;break}var u=this.parseKeyframeRule(n,o,!0);u&&(i+=u)}n=this.getToken(!0,!1)}return r?(this.forgetState(),o.currentLine=s,o.parsedCssText=i,t.cssRules.push(o),!0):(this.restoreState(),!1)},CSSParser.prototype.parseKeyframeRule=function(e,t){var s=CountLF(this.mScanner.getAlreadyScanned());this.preserveState();for(var i=e,r="";i.isNotNull();){if(!i.isIdent()&&!i.isPercentage()){r="";break}if(i.isIdent()&&!i.isIdent("from")&&!i.isIdent("to")){r="";break}if(r+=i.value,i=this.getToken(!0,!0),i.isSymbol("{")){this.ungetToken();break}if(!i.isSymbol(",")){r="";break}r+=", ",i=this.getToken(!0,!0)}var o=!1,n=[];if(r){var a=r;if(i=this.getToken(!0,!0),i.isSymbol("{"))for(a+=" { ",i=this.getToken(!0,!1);;){if(!i.isNotNull()){o=!0;break}if(i.isSymbol("}")){a+="}",o=!0;break}var l=this.parseDeclaration(i,n,!0,!0,t);a+=(l&&n.length?" ":"")+l,i=this.getToken(!0,!1)}}if(o){var u=new jscsspKeyframeRule;return u.currentLine=s,u.parsedCssText=a,u.declarations=n,u.keyText=r,u.parentRule=t,t.cssRules.push(u),a}return this.restoreState(),a=this.currentToken().value,this.addUnknownAtRule(t,a),""},CSSParser.prototype.parseListStyleShorthand=function(e,t,s){for(var i={inside:!0,outside:!0},r=null,o=null,n=null;;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){e.isSymbol("}")&&this.ungetToken();break}if(r||o||n||!e.isIdent(this.kINHERIT)){if(!r&&e.isIdent()&&e.value in this.kLIST_STYLE_TYPE_NAMES)r=e.value;else if(!o&&e.isIdent()&&e.value in i)o=e.value;else if(!n&&e.isFunction("url")){e=this.getToken(!0,!0);var a=this.parseURL(e);if(!a)return"";n="url("+a}else if(!e.isIdent("none"))return""}else r=this.kINHERIT,o=this.kINHERIT,n=this.kINHERIT;e=this.getToken(!0,!0)}return this.forgetState(),r=r?r:"none",n=n?n:"none",o=o?o:"outside",t.push(this._createJscsspDeclarationFromValue("list-style-type",r)),t.push(this._createJscsspDeclarationFromValue("list-style-position",o)),t.push(this._createJscsspDeclarationFromValue("list-style-image",n)),r+" "+o+" "+n},CSSParser.prototype.parse=function(e,t,s){if(!e)return null;this.mPreserveWS=t,this.mPreserveComments=s,this.mPreservedTokens=[],this.mScanner.init(e);var i=new jscsspStylesheet,r=this.getToken(!1,!1);if(!r.isNotNull())return i;r.isAtRule("@charset")&&(this.ungetToken(),this.parseCharsetRule(i),r=this.getToken(!1,!1));for(var o=!1,n=!1,a=!1;;){if(!r.isNotNull())break;if(r.isWhiteSpace())t&&this.addWhitespace(i,r.value);else if(r.isComment())this.mPreserveComments&&this.addComment(i,r.value);else if(r.isAtRule())r.isAtRule("@variables")?n||o?(this.reportError(kVARIABLES_RULE_POSITION),this.addUnknownAtRule(i,r.value)):this.parseVariablesRule(r,i):r.isAtRule("@import")?o||a?(this.reportError(kIMPORT_RULE_POSITION),this.addUnknownAtRule(i,r.value)):n=this.parseImportRule(r,i):r.isAtRule("@namespace")?o?(this.reportError(kNAMESPACE_RULE_POSITION),this.addUnknownAtRule(i,r.value)):a=this.parseNamespaceRule(r,i):r.isAtRule("@font-face")?this.parseFontFaceRule(r,i)?o=!0:this.addUnknownAtRule(i,r.value):r.isAtRule("@page")?this.parsePageRule(r,i)?o=!0:this.addUnknownAtRule(i,r.value):r.isAtRule("@media")?this.parseMediaRule(r,i)?o=!0:this.addUnknownAtRule(i,r.value):r.isAtRule("@keyframes")?this.parseKeyframesRule(r,i)||this.addUnknownAtRule(i,r.value):r.isAtRule("@charset")?(this.reportError(kCHARSET_RULE_CHARSET_SOF),this.addUnknownAtRule(i,r.value)):(this.reportError(kUNKNOWN_AT_RULE),this.addUnknownAtRule(i,r.value));else{var l=this.parseStyleRule(r,i,!1);l&&(o=!0)}r=this.getToken(!1)}return i},CSSParser.prototype.parseMarginOrPaddingShorthand=function(e,t,s,i){for(var r=null,o=null,n=null,a=null,l=[];;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){e.isSymbol("}")&&this.ungetToken();break}if(!l.length&&e.isIdent(this.kINHERIT)){l.push(e.value),e=this.getToken(!0,!0);break}if(!(e.isDimension()||e.isNumber("0")||e.isPercentage()||e.isIdent("auto")))return"";l.push(e.value),e=this.getToken(!0,!0)}var u=l.length;switch(u){case 1:r=l[0],o=r,n=r,a=r;break;case 2:r=l[0],o=r,n=l[1],a=n;break;case 3:r=l[0],n=l[1],a=n,o=l[2];break;case 4:r=l[0],a=l[1],o=l[2],n=l[3];break;default:return""}return this.forgetState(),t.push(this._createJscsspDeclarationFromValue(i+"-top",r)),t.push(this._createJscsspDeclarationFromValue(i+"-right",a)),t.push(this._createJscsspDeclarationFromValue(i+"-bottom",o)),t.push(this._createJscsspDeclarationFromValue(i+"-left",n)),r+" "+a+" "+o+" "+n},CSSParser.prototype.parseMediaQuery=function(){var e={width:!0,"min-width":!0,"max-width":!0,height:!0,"min-height":!0,"max-height":!0,"device-width":!0,"min-device-width":!0,"max-device-width":!0,"device-height":!0,"min-device-height":!0,"max-device-height":!0,orientation:!0,"aspect-ratio":!0,"min-aspect-ratio":!0,"max-aspect-ratio":!0,"device-aspect-ratio":!0,"min-device-aspect-ratio":!0,"max-device-aspect-ratio":!0,color:!0,"min-color":!0,"max-color":!0,"color-index":!0,"min-color-index":!0,"max-color-index":!0,monochrome:!0,"min-monochrome":!0,"max-monochrome":!0,resolution:!0,"min-resolution":!0,"max-resolution":!0,scan:!0,grid:!0},t={cssText:"",amplifier:"",medium:"",constraints:[]},s=this.getToken(!0,!0);if(s.isIdent("all")||s.isIdent("aural")||s.isIdent("braille")||s.isIdent("handheld")||s.isIdent("print")||s.isIdent("projection")||s.isIdent("screen")||s.isIdent("tty")||s.isIdent("tv"))t.medium=s.value,t.cssText+=s.value,s=this.getToken(!0,!0);else if(s.isIdent("not")||s.isIdent("only")){if(t.amplifier=s.value.toLowerCase(),t.cssText+=s.value.toLowerCase(),s=this.getToken(!0,!0),!(s.isIdent("all")||s.isIdent("aural")||s.isIdent("braille")||s.isIdent("handheld")||s.isIdent("print")||s.isIdent("projection")||s.isIdent("screen")||s.isIdent("tty")||s.isIdent("tv")))return null;t.cssText+=" "+s.value,t.medium=s.value,s=this.getToken(!0,!0)}if(t.medium){if(!s.isNotNull())return t;if(s.isIdent("and"))t.cssText+=" and",s=this.getToken(!0,!0);else if(!s.isSymbol("{"))return null}for(;s.isSymbol("(");){if(s=this.getToken(!0,!0),!(s.isIdent()&&s.value in e))return null;var i=s.value;if(s=this.getToken(!0,!0),s.isSymbol(":")){s=this.getToken(!0,!0);for(var r=[];!s.isSymbol(")");)r.push(s.value),s=this.getToken(!0,!0);if(!s.isSymbol(")"))return null;if(t.constraints.push({constraint:i,value:r}),t.cssText+=" ("+i+": "+r.join(" ")+")",s=this.getToken(!0,!0),!s.isNotNull())return t;if(s.isIdent("and"))t.cssText+=" and",s=this.getToken(!0,!0);else if(!s.isSymbol("{"))return null}else{if(!s.isSymbol(")"))return null;if(t.constraints.push({constraint:i,value:null}),t.cssText+=" ("+i+")",s=this.getToken(!0,!0),!s.isNotNull())return t;if(!s.isIdent("and"))return null;t.cssText+=" and",s=this.getToken(!0,!0)}}return t},CSSParser.prototype.parseMediaRule=function(e,t){var s=CountLF(this.mScanner.getAlreadyScanned()),i=e.value,r=!1,o=new jscsspMediaRule;o.currentLine=s,this.preserveState();for(var n=this.getToken(!0,!0),a=!1;n.isNotNull();){this.ungetToken();var l=this.parseMediaQuery();if(n=this.currentToken(),l){if(a=!0,i+=" "+l.cssText,o.media.push(l.cssText),!n.isSymbol(",")){if(n.isSymbol("{"))break;n.type=jscsspToken.NULL_TYPE;break}i+=","}else{if(n.isSymbol("{"))break;if(a){n.type=jscsspToken.NULL_TYPE;break}}n=this.getToken(!0,!0)}if(n.isSymbol("{")&&o.media.length)for(i+=" { ",n=this.getToken(!0,!1);n.isNotNull();){if(n.isComment()){if(this.mPreserveComments){i+=" "+n.value;var u=new jscsspComment;u.parsedCssText=n.value,o.cssRules.push(u)}}else{if(n.isSymbol("}")){r=!0;break}var c=this.parseStyleRule(n,o,!0);c&&(i+=c)}n=this.getToken(!0,!1)}return r?(this.forgetState(),o.parsedCssText=i,t.cssRules.push(o),!0):(this.restoreState(),!1)},CSSParser.prototype.parseNamespaceRule=function(e,t){var s=CountLF(this.mScanner.getAlreadyScanned()),i=e.value;this.preserveState();var r=this.getToken(!0,!0);if(r.isNotNull()){var o="",n="";if(r.isIdent()&&(o=r.value,i+=" "+o,r=this.getToken(!0,!0)),r){var a=!1;if(r.isString())a=!0,n=r.value,i+=" "+n;else if(r.isFunction("url(")){r=this.getToken(!0,!0);var l=this.parseURL(r);l&&(n+="url("+l,a=!0,i+=" "+l)}}if(a&&(r=this.getToken(!0,!0),r.isSymbol(";"))){i+=";",this.forgetState();var u=new jscsspNamespaceRule;return u.currentLine=s,u.parsedCssText=i,u.prefix=o,u.url=n,u.parentStyleSheet=t,t.cssRules.push(u),!0}}return this.restoreState(),this.addUnknownAtRule(t,"@namespace"),!1},CSSParser.prototype.parsePageRule=function(e,t){var s=CountLF(this.mScanner.getAlreadyScanned()),i=e.value,r=!1,o=[];this.preserveState();var n=this.getToken(!0,!0),a="";if((n.isSymbol(":")||n.isIdent())&&(n.isSymbol(":")&&(a=":",n=this.getToken(!1,!1)),n.isIdent()&&(a+=n.value,i+=" "+a,n=this.getToken(!0,!0))),n.isNotNull()&&n.isSymbol("{")){i+=" "+n.value;for(var n=this.getToken(!0,!1);;){if(n.isSymbol("}")){i+="}",r=!0;break}var l=this.parseDeclaration(n,o,!0,!0,t);i+=(l&&o.length?" ":"")+l,n=this.getToken(!0,!1)}}if(r){this.forgetState();var u=new jscsspPageRule;return u.currentLine=s,u.parsedCssText=i,u.pageSelector=a,u.declarations=o,u.parentStyleSheet=t,t.cssRules.push(u),!0}return this.restoreState(),!1},CSSParser.prototype.parsePauseShorthand=function(e,t,s){for(var i="",r="",o=[],o=[];;){if(!e.isNotNull())break;if(e.isSymbol(";")||s&&e.isSymbol("!")||e.isSymbol("}")){e.isSymbol("}")&&this.ungetToken();break}if(!o.length&&e.isIdent(this.kINHERIT))o.push(e.value);else{if(!(e.isDimensionOfUnit("ms")||e.isDimensionOfUnit("s")||e.isPercentage()||e.isNumber("0")))return"";o.push(e.value)}e=this.getToken(!0,!0)}var n=o.length;switch(n){case 1:i=o[0],r=i;break;case 2:i=o[0],r=o[1];break;default:return""}return this.forgetState(),aDecl.push(this._createJscsspDeclarationFromValue("pause-before",i)),aDecl.push(this._createJscsspDeclarationFromValue("pause-after",r)),i+" "+r},CSSParser.prototype.parseDefaultPropertyValue=function(e,t,s,i,r){for(var o="",n=[],a=[];e.isNotNull();){if((e.isSymbol(";")||e.isSymbol("}")||e.isSymbol("!"))&&!n.length){e.isSymbol("}")&&this.ungetToken();break}if(e.isIdent(this.kINHERIT)){if(a.length)return"";o=this.kINHERIT;var l=new jscsspVariable(kJscsspINHERIT_VALUE,r);a.push(l),e=this.getToken(!0,!0);break}if(e.isSymbol("{")||e.isSymbol("(")||e.isSymbol("["))n.push(e.value);else if((e.isSymbol("}")||e.isSymbol("]"))&&n.length){var u=n[n.length-1];(e.isSymbol("}")&&"{"==u||e.isSymbol(")")&&"("==u||e.isSymbol("]")&&"["==u)&&n.pop()}if(e.isFunction())if(e.isFunction("var(")){if(e=this.getToken(!0,!0),!e.isIdent())return"";var c=e.value;if(e=this.getToken(!0,!0),!e.isSymbol(")"))return"";var l=new jscsspVariable(kJscsspVARIABLE_VALUE,r);o+="var("+c+")",l.name=c,a.push(l)}else{var p=e.value;e=this.getToken(!1,!0);var k=this.parseFunctionArgument(e);if(!k)return"";o+=p+k;var l=new jscsspVariable(kJscsspPRIMITIVE_VALUE,r);l.value=p+k,a.push(l)}else if(e.isSymbol("#")){var h=this.parseColor(e);if(!h)return"";o+=h;var l=new jscsspVariable(kJscsspPRIMITIVE_VALUE,r);l.value=h,a.push(l)}else if(e.isWhiteSpace()||e.isSymbol(","))o+=e.value;else{var l=new jscsspVariable(kJscsspPRIMITIVE_VALUE,r);l.value=e.value,a.push(l),o+=e.value}e=this.getToken(!1,!0)}return a.length&&o?(this.forgetState(),t.push(this._createJscsspDeclarationFromValuesArray(i,a,o)),o):""},CSSParser.prototype.parseSelector=function(e,t){for(var s="",i={a:0,b:0,c:0,d:0},r=!0,o=e,n=!1,a=!1;;){if(!o.isNotNull())return t?{selector:s,specificity:i}:"";if(!t&&o.isSymbol("{")){n=!a,n&&this.ungetToken();break}if(o.isSymbol(","))s+=o.value,r=!0,a=!1,o=this.getToken(!1,!0);else if(a||!(o.isWhiteSpace()||o.isSymbol(">")||o.isSymbol("+")||o.isSymbol("~"))){var l=this.parseSimpleSelector(o,r,!0);if(!l)break;s+=l.selector,i.b+=l.specificity.b,i.c+=l.specificity.c,i.d+=l.specificity.d,r=!1,a=!1,o=this.getToken(!1,!0)}else{if(o.isWhiteSpace()){s+=" ";var u=this.lookAhead(!0,!0);if(!u.isNotNull())return t?{selector:s,specificity:i}:"";(u.isSymbol(">")||u.isSymbol("+")||u.isSymbol("~"))&&(o=this.getToken(!0,!0),s+=o.value+" ",a=!0)}else s+=o.value,a=!0;r=!0,o=this.getToken(!0,!0)}}return n?{selector:s,specificity:i}:""},CSSParser.prototype.isPseudoElement=function(e){switch(e){case"first-letter":case"first-line":case"before":case"after":case"marker":return!0}return!1},CSSParser.prototype.parseSimpleSelector=function(e,t,s){var i="",r={a:0,b:0,c:0,d:0};if(t&&(e.isSymbol("*")||e.isSymbol("|")||e.isIdent())){if(e.isSymbol("*")||e.isIdent()){i+=e.value;var o=e.isIdent();if(e=this.getToken(!1,!0),e.isSymbol("|")){if(i+=e.value,e=this.getToken(!1,!0),!e.isIdent()&&!e.isSymbol("*"))return null;i+=e.value,e.isIdent()&&r.d++}else this.ungetToken(),o&&r.d++}else if(e.isSymbol("|")){if(i+=e.value,e=this.getToken(!1,!0),!e.isIdent()&&!e.isSymbol("*"))return null;i+=e.value,e.isIdent()&&r.d++}}else if(e.isSymbol(".")||e.isSymbol("#")){var n=e.isSymbol(".");if(i+=e.value,e=this.getToken(!1,!0),!e.isIdent())return null;i+=e.value,n?r.c++:r.b++}else if(e.isSymbol(":"))if(i+=e.value,e=this.getToken(!1,!0),e.isSymbol(":")&&(i+=e.value,e=this.getToken(!1,!0)),e.isIdent())i+=e.value,this.isPseudoElement(e.value)?r.d++:r.c++;else{if(!e.isFunction())return null;if(i+=e.value,e.isFunction(":not(")){if(!s)return null;e=this.getToken(!0,!0);var a=this.parseSimpleSelector(e,t,!1);if(!a)return null;if(i+=a.selector,e=this.getToken(!0,!0),!e.isSymbol(")"))return null;i+=")",r.c++}else{for(;;){if(e=this.getToken(!1,!0),e.isSymbol(")")){i+=")";break}i+=e.value}r.c++}}else if(e.isSymbol("[")){if(i+="[",e=this.getToken(!0,!0),e.isIdent()||e.isSymbol("*")){i+=e.value;var l=this.getToken(!0,!0);if(l.isSymbol("|")){if(i+="|",e=this.getToken(!0,!0),!e.isIdent())return null;i+=e.value}else this.ungetToken()}else{if(!e.isSymbol("|"))return null;if(i+="|",e=this.getToken(!0,!0),!e.isIdent())return null;i+=e.value}if(e=this.getToken(!0,!0),e.isIncludes()||e.isDashmatch()||e.isBeginsmatch()||e.isEndsmatch()||e.isContainsmatch()||e.isSymbol("=")){if(i+=e.value,e=this.getToken(!0,!0),!e.isString()&&!e.isIdent())return null;if(i+=e.value,e=this.getToken(!0,!0),!e.isSymbol("]"))return null;i+=e.value,r.c++}else{if(!e.isSymbol("]"))return null;i+=e.value,r.c++}}else if(e.isWhiteSpace()){var u=this.lookAhead(!0,!0);if(u.isSymbol("{"))return""}return i?{selector:i,specificity:r}:null},CSSParser.prototype.trim11=function(e){e=e.replace(/^\s+/,"");for(var t=e.length-1;t>=0;t--)if(/\S/.test(e.charAt(t))){e=e.substring(0,t+1);break}return e},CSSParser.prototype.parseStyleRule=function(e,t,s){var i=CountLF(this.mScanner.getAlreadyScanned());this.preserveState();var r=this.parseSelector(e,!1),o=!1,n=[];if(r){r=this.trim11(r.selector);var a=r,l=this.getToken(!0,!0);if(l.isSymbol("{")){a+=" { ";for(var l=this.getToken(!0,!1);;){if(!l.isNotNull()){o=!0;break}if(l.isSymbol("}")){a+="}",o=!0;break}var u=this.parseDeclaration(l,n,!0,!0,t);a+=(u&&n.length?" ":"")+u,l=this.getToken(!0,!1)}}}if(o){var c=new jscsspStyleRule;return c.currentLine=i,c.parsedCssText=a,c.declarations=n,c.mSelectorText=r,s?c.parentRule=t:c.parentStyleSheet=t,t.cssRules.push(c),a}return this.restoreState(),a=this.currentToken().value,this.addUnknownAtRule(t,a),""},CSSParser.prototype.parseTextShadows=function(){for(var e=[],t=this.getToken(!0,!0),s="",i="0px",r="0px",o="0px";t.isNotNull();)if(t.isIdent("none"))e.push({none:!0}),t=this.getToken(!0,!0);else{if(t.isFunction("rgb(")||t.isFunction("rgba(")||t.isFunction("hsl(")||t.isFunction("hsla(")||t.isSymbol("#")||t.isIdent()){var s=this.parseColor(t);t=this.getToken(!0,!0)}if(!(t.isPercentage()||t.isDimensionOfUnit("cm")||t.isDimensionOfUnit("mm")||t.isDimensionOfUnit("in")||t.isDimensionOfUnit("pc")||t.isDimensionOfUnit("px")||t.isDimensionOfUnit("em")||t.isDimensionOfUnit("ex")||t.isDimensionOfUnit("pt")))return[];var r=t.value;if(t=this.getToken(!0,!0),!(t.isPercentage()||t.isDimensionOfUnit("cm")||t.isDimensionOfUnit("mm")||t.isDimensionOfUnit("in")||t.isDimensionOfUnit("pc")||t.isDimensionOfUnit("px")||t.isDimensionOfUnit("em")||t.isDimensionOfUnit("ex")||t.isDimensionOfUnit("pt")))return[];var o=t.value;if(t=this.getToken(!0,!0),t.isPercentage()||t.isDimensionOfUnit("cm")||t.isDimensionOfUnit("mm")||t.isDimensionOfUnit("in")||t.isDimensionOfUnit("pc")||t.isDimensionOfUnit("px")||t.isDimensionOfUnit("em")||t.isDimensionOfUnit("ex")||t.isDimensionOfUnit("pt")){var i=t.value;t=this.getToken(!0,!0)}if(!s&&(t.isFunction("rgb(")||t.isFunction("rgba(")||t.isFunction("hsl(")||t.isFunction("hsla(")||t.isSymbol("#")||t.isIdent())){var s=this.parseColor(t);t=this.getToken(!0,!0)}if(e.push({none:!1,color:s,offsetX:r,offsetY:o,blurRadius:i}),!t.isSymbol(","))return t.isNotNull()?[]:e;s="",i="0px",r="0px",o="0px",t=this.getToken(!0,!0)}return e},CSSParser.prototype.currentToken=function(){return this.mToken},CSSParser.prototype.getHexValue=function(){return this.mToken=this.mScanner.nextHexValue(),this.mToken},CSSParser.prototype.getToken=function(e,t){if(this.mLookAhead)return this.mToken=this.mLookAhead,this.mLookAhead=null,this.mToken;for(this.mToken=this.mScanner.nextToken();this.mToken&&(e&&this.mToken.isWhiteSpace()||t&&this.mToken.isComment());)this.mToken=this.mScanner.nextToken();return this.mToken},CSSParser.prototype.lookAhead=function(e,t){var s=this.mToken;this.mScanner.preserveState();var i=this.getToken(e,t);return this.mScanner.restoreState(),this.mToken=s,i},CSSParser.prototype.ungetToken=function(){this.mLookAhead=this.mToken},CSSParser.prototype.addWhitespace=function(e,t){var s=new jscsspWhitespace;s.parsedCssText=t,s.parentStyleSheet=e,e.cssRules.push(s)},CSSParser.prototype.addComment=function(e,t){var s=new jscsspComment;s.parsedCssText=t,s.parentStyleSheet=e,e.cssRules.push(s)},CSSParser.prototype._createJscsspDeclaration=function(e,t){var s=new jscsspDeclaration;return s.property=e,s.value=this.trim11(t),s.parsedCssText=e+": "+t+";",s},CSSParser.prototype._createJscsspDeclarationFromValue=function(e,t){var s=new jscsspDeclaration;s.property=e;var i=new jscsspVariable(kJscsspPRIMITIVE_VALUE,null);return i.value=t,s.values=[i],s.valueText=t,s.parsedCssText=e+": "+t+";",s},CSSParser.prototype._createJscsspDeclarationFromValuesArray=function(e,t,s){var i=new jscsspDeclaration;return i.property=e,i.values=t,i.valueText=s,i.parsedCssText=e+": "+s+";",i},CSSParser.prototype.preserveState=function(){this.mPreservedTokens.push(this.currentToken()),this.mScanner.preserveState()},CSSParser.prototype.restoreState=function(){this.mPreservedTokens.length&&(this.mScanner.restoreState(),this.mToken=this.mPreservedTokens.pop())},CSSParser.prototype.forgetState=function(){this.mPreservedTokens.length&&(this.mScanner.forgetState(),this.mPreservedTokens.pop())},CSSParser.prototype.addUnknownAtRule=function(e,t){for(var s=CountLF(this.mScanner.getAlreadyScanned()),i=[],r=this.getToken(!1,!1);r.isNotNull()&&(t+=r.value,!r.isSymbol(";")||i.length);){if(r.isSymbol("{")||r.isSymbol("(")||r.isSymbol("[")||"function"==r.type)i.push(r.isFunction()?"(":r.value);else if((r.isSymbol("}")||r.isSymbol(")")||r.isSymbol("]"))&&i.length){var o=i[i.length-1];if((r.isSymbol("}")&&"{"==o||r.isSymbol(")")&&"("==o||r.isSymbol("]")&&"["==o)&&(i.pop(),!i.length&&r.isSymbol("}")))break}r=this.getToken(!1,!1)}this.addUnknownRule(e,t,s)},CSSParser.prototype.addUnknownRule=function(e,t,s){var i=this.consumeError(),r=new jscsspErrorRule(i);r.currentLine=s,r.parsedCssText=t,r.parentStyleSheet=e,e.cssRules.push(r)},CSSParser.prototype.parseURL=function(e){var t="";if(e.isString())t+=e.value,e=this.getToken(!0,!0);else for(;;){if(!e.isNotNull())return this.reportError(kURL_EOF),"";if(e.isWhiteSpace()&&(nextToken=this.lookAhead(!0,!0),!nextToken.isSymbol(")"))){this.reportError(kURL_WS_INSIDE),e=this.currentToken();break}if(e.isSymbol(")"))break;t+=e.value,e=this.getToken(!1,!1)}return e.isSymbol(")")?t+")":""},CSSParser.prototype.parseVariablesRule=function(e,t){var s=CountLF(this.mScanner.getAlreadyScanned()),i=e.value,r=[],o=!1;this.preserveState(),e=this.getToken(!0,!0);for(var n=[],a=!1;e.isNotNull();){if(e.isIdent())if(a=!0,i+=" "+e.value,n.push(e.value),e=this.getToken(!0,!0),e.isSymbol(","))i+=",";else{if(!e.isSymbol("{")){e.type=jscsspToken.NULL_TYPE;break}this.ungetToken()}else{if(e.isSymbol("{"))break;if(a){e.type=jscsspToken.NULL_TYPE;break}}e=this.getToken(!0,!0)}if(e.isSymbol("{"))for(i+=" {",e=this.getToken(!0,!0);;){if(!e.isNotNull()){o=!0;break}if(e.isSymbol("}")){i+="}",o=!0;break}var l=this.parseDeclaration(e,r,!0,!1,t);i+=(l&&r.length?" ":"")+l,e=this.getToken(!0,!1)}if(o){this.forgetState();var u=new jscsspVariablesRule;return u.currentLine=s,u.parsedCssText=i,u.declarations=r,u.media=n,u.parentStyleSheet=t,t.cssRules.push(u),!0}return this.restoreState(),!1},jscsspToken.NULL_TYPE=0,jscsspToken.WHITESPACE_TYPE=1,jscsspToken.STRING_TYPE=2,jscsspToken.COMMENT_TYPE=3,jscsspToken.NUMBER_TYPE=4,jscsspToken.IDENT_TYPE=5,jscsspToken.FUNCTION_TYPE=6,jscsspToken.ATRULE_TYPE=7,jscsspToken.INCLUDES_TYPE=8,jscsspToken.DASHMATCH_TYPE=9,jscsspToken.BEGINSMATCH_TYPE=10,jscsspToken.ENDSMATCH_TYPE=11,jscsspToken.CONTAINSMATCH_TYPE=12,jscsspToken.SYMBOL_TYPE=13,jscsspToken.DIMENSION_TYPE=14,jscsspToken.PERCENTAGE_TYPE=15,jscsspToken.HEX_TYPE=16,jscsspToken.prototype={isNotNull:function(){return this.type},_isOfType:function(e,t){return this.type==e&&(!t||this.value.toLowerCase()==t)},isWhiteSpace:function(e){return this._isOfType(jscsspToken.WHITESPACE_TYPE,e)},isString:function(){return this._isOfType(jscsspToken.STRING_TYPE)},isComment:function(){return this._isOfType(jscsspToken.COMMENT_TYPE)},isNumber:function(e){return this._isOfType(jscsspToken.NUMBER_TYPE,e)},isIdent:function(e){return this._isOfType(jscsspToken.IDENT_TYPE,e)},isFunction:function(e){return this._isOfType(jscsspToken.FUNCTION_TYPE,e)},isAtRule:function(e){return this._isOfType(jscsspToken.ATRULE_TYPE,e)},isIncludes:function(){return this._isOfType(jscsspToken.INCLUDES_TYPE)},isDashmatch:function(){return this._isOfType(jscsspToken.DASHMATCH_TYPE)},isBeginsmatch:function(){return this._isOfType(jscsspToken.BEGINSMATCH_TYPE)},isEndsmatch:function(){return this._isOfType(jscsspToken.ENDSMATCH_TYPE)},isContainsmatch:function(){return this._isOfType(jscsspToken.CONTAINSMATCH_TYPE)},isSymbol:function(e){return this._isOfType(jscsspToken.SYMBOL_TYPE,e)},isDimension:function(){return this._isOfType(jscsspToken.DIMENSION_TYPE)},isPercentage:function(){return this._isOfType(jscsspToken.PERCENTAGE_TYPE)},isHex:function(){return this._isOfType(jscsspToken.HEX_TYPE)},isDimensionOfUnit:function(e){return this.isDimension()&&this.unit==e},isLength:function(){return this.isPercentage()||this.isDimensionOfUnit("cm")||this.isDimensionOfUnit("mm")||this.isDimensionOfUnit("in")||this.isDimensionOfUnit("pc")||this.isDimensionOfUnit("px")||this.isDimensionOfUnit("em")||this.isDimensionOfUnit("ex")||this.isDimensionOfUnit("pt")},isAngle:function(){return this.isDimensionOfUnit("deg")||this.isDimensionOfUnit("rad")||this.isDimensionOfUnit("grad")}},jscsspCharsetRule.prototype={cssText:function(){return"@charset "+this.encoding+";"},setCssText:function(e){var t={cssRules:[]},s=new CSSParser(e);if(s.parseCharsetRule(t)){var i=t.cssRules[0];return this.encoding=i.encoding,void(this.parsedCssText=i.parsedCssText)}throw DOMException.SYNTAX_ERR}},jscsspComment.prototype={cssText:function(){return this.parsedCssText},setCssText:function(e){var t=new CSSParser(e),s=t.getToken(!0,!1);if(!s.isComment())throw DOMException.SYNTAX_ERR;this.parsedCssText=s.value}},jscsspDeclaration.prototype={kCOMMA_SEPARATED:{cursor:!0,"font-family":!0,"voice-family":!0,"background-image":!0},kUNMODIFIED_COMMA_SEPARATED_PROPERTIES:{"text-shadow":!0,"box-shadow":!0,"-moz-transition":!0,"-moz-transition-property":!0,"-moz-transition-duration":!0,"-moz-transition-timing-function":!0,"-moz-transition-delay":!0,src:!0,"-moz-font-feature-settings":!0},cssText:function(){var e=PrefixHelper.prefixesForProperty(this.property),t="";if(this.property in this.kUNMODIFIED_COMMA_SEPARATED_PROPERTIES){if(e){t="";for(var s=0;s<e.length;s++){var i=e[s];t+=(s?gTABS:"")+i+": ",t+=this.valueText+(this.priority?" !important":"")+";",t+=e.length>1&&s!=e.length-1?"\n":""}return t}return this.property+": "+this.valueText+(this.priority?" !important":"")+";"}if(e){t="";for(var s=0;s<e.length;s++){var i=e[s];t+=(s?gTABS:"")+i+": ";
  for(var r=(i in this.kCOMMA_SEPARATED?", ":" "),o=0;o<this.values.length;o++){if(null==this.values[o].cssText())return null;t+=(o?r:"")+this.values[o].cssText()}t+=(this.priority?" !important":"")+";"+(e.length>1&&s!=e.length-1?"\n":"")}return t}for(var r=(this.property in this.kCOMMA_SEPARATED?", ":" "),n={webkit:!1,presto:!1,trident:!1,"gecko1.9.2":!1,generic:!1},o=0;o<this.values.length;o++){var a=this.values[o].cssText();if(null==a)return null;var l=a.indexOf("("),u=a;if(l!=-1&&(u=a.substr(0,l)),u in kCSS_VENDOR_VALUES)for(var c in kCSS_VENDOR_VALUES[u])n[c]=n[c]||""!=kCSS_VENDOR_VALUES[u][c]}for(var c in n)if(n[c]){for(var p="\n"+gTABS+this.property+": ",o=0;o<this.values.length;o++){var a=this.values[o].cssText();if(null==a)return null;var l=a.indexOf("("),u=a;if(l!=-1&&(u=a.substr(0,l)),u in kCSS_VENDOR_VALUES&&(functor=kCSS_VENDOR_VALUES[u][c],functor&&(a="string"==typeof functor?functor:functor(a,c),!a))){p=null;break}p+=(o?r:"")+a}t+=p?p+";":"\n"+gTABS+"/* Impossible to translate property "+this.property+" for "+c+" */"}t+="\n"+gTABS+this.property+": ";for(var o=0;o<this.values.length;o++){var a=this.values[o].cssText();null!=a&&(t+=(o?r:"")+a)}return t+=(this.priority?" !important":"")+";"},setCssText:function(e){var t=[],s=new CSSParser(e),i=s.getToken(!0,!0);if(s.parseDeclaration(i,t,!0,!0,null)&&t.length&&t[0].type==kJscsspSTYLE_DECLARATION){var r=t.cssRules[0];return this.property=r.property,this.value=r.value,this.priority=r.priority,void(this.parsedCssText=newRule.parsedCssText)}throw DOMException.SYNTAX_ERR}},jscsspErrorRule.prototype={cssText:function(){return this.parsedCssText}},jscsspFontFaceRule.prototype={cssText:function(){var e=gTABS+"@font-face {\n",t=gTABS;gTABS+="  ";for(var s=0;s<this.descriptors.length;s++)e+=gTABS+this.descriptors[s].cssText()+"\n";return gTABS=t,e+gTABS+"}"},setCssText:function(e){var t={cssRules:[]},s=new CSSParser(e),i=s.getToken(!0,!0);if(i.isAtRule("@font-face")&&s.parseFontFaceRule(i,t)){var r=t.cssRules[0];return this.descriptors=r.descriptors,void(this.parsedCssText=r.parsedCssText)}throw DOMException.SYNTAX_ERR}},jscsspImportRule.prototype={cssText:function(){var e=this.media.join(", ");return"@import "+this.href+(e&&"all"!=e?e+" ":"")+";"},setCssText:function(e){var t={cssRules:[]},s=new CSSParser(e),i=s.getToken(!0,!0);if(i.isAtRule("@import")&&s.parseImportRule(i,t)){var r=t.cssRules[0];return this.href=r.href,this.media=r.media,void(this.parsedCssText=r.parsedCssText)}throw DOMException.SYNTAX_ERR}},jscsspKeyframeRule.prototype={cssText:function(){var e=this.keyText+" {\n",t=gTABS;gTABS+="  ";for(var s=0;s<this.declarations.length;s++){var i=this.declarations[s].cssText();i&&(e+=gTABS+this.declarations[s].cssText()+"\n")}return gTABS=t,e+gTABS+"}"},setCssText:function(e){var t={cssRules:[]},s=new CSSParser(e),i=s.getToken(!0,!0);if(!i.isNotNull()&&s.parseKeyframeRule(i,t,!1)){var r=t.cssRules[0];return this.keyText=r.keyText,this.declarations=r.declarations,void(this.parsedCssText=r.parsedCssText)}throw DOMException.SYNTAX_ERR}},jscsspKeyframesRule.prototype={cssText:function(){for(var e="",t=["moz","webkit","ms","o",""],s=0;s<t.length;s++){e+=gTABS+"@"+(t[s]?"-"+t[s]+"-":"")+"keyframes "+this.name+" {\n";var i=gTABS;gTABS+="  ";for(var r=0;r<this.cssRules.length;r++)e+=gTABS+this.cssRules[r].cssText()+"\n";gTABS=i,e+=gTABS+"}\n\n"}return e},setCssText:function(e){var t={cssRules:[]},s=new CSSParser(e),i=s.getToken(!0,!0);if(i.isAtRule("@-mozkeyframes")&&s.parseKeyframesRule(i,t)){var r=t.cssRules[0];return this.cssRules=r.cssRules,this.name=r.name,void(this.parsedCssText=r.parsedCssText)}throw DOMException.SYNTAX_ERR}},jscsspMediaRule.prototype={cssText:function(){var e=gTABS+"@media "+this.media.join(", ")+" {\n",t=gTABS;gTABS+="  ";for(var s=0;s<this.cssRules.length;s++)e+=this.cssRules[s].cssText()+"\n";return gTABS=t,e+gTABS+"}"},setCssText:function(e){var t={cssRules:[]},s=new CSSParser(e),i=s.getToken(!0,!0);if(i.isAtRule("@media")&&s.parseMediaRule(i,t)){var r=t.cssRules[0];return this.cssRules=r.cssRules,this.media=r.media,void(this.parsedCssText=r.parsedCssText)}throw DOMException.SYNTAX_ERR}},jscsspNamespaceRule.prototype={cssText:function(){return"@namespace "+(this.prefix?this.prefix+" ":"")+this.url+";"},setCssText:function(e){var t={cssRules:[]},s=new CSSParser(e),i=s.getToken(!0,!0);if(i.isAtRule("@namespace")&&s.parseNamespaceRule(i,t)){var r=t.cssRules[0];return this.url=r.url,this.prefix=r.prefix,void(this.parsedCssText=r.parsedCssText)}throw DOMException.SYNTAX_ERR}},jscsspPageRule.prototype={cssText:function(){var e=gTABS+"@page "+(this.pageSelector?this.pageSelector+" ":"")+"{\n",t=gTABS;gTABS+="  ";for(var s=0;s<this.declarations.length;s++)e+=gTABS+this.declarations[s].cssText()+"\n";return gTABS=t,e+gTABS+"}"},setCssText:function(e){var t={cssRules:[]},s=new CSSParser(e),i=s.getToken(!0,!0);if(i.isAtRule("@page")&&s.parsePageRule(i,t)){var r=t.cssRules[0];return this.pageSelector=r.pageSelector,this.declarations=r.declarations,void(this.parsedCssText=r.parsedCssText)}throw DOMException.SYNTAX_ERR}},jscsspStyleRule.prototype={cssText:function(){var e=gTABS+this.mSelectorText+" {",t=gTABS;gTABS+="  ";for(var s=0;s<this.declarations.length;s++){var i=this.declarations[s].cssText();i&&(e+=gTABS+this.declarations[s].cssText())}return gTABS=t,e+"\n"+gTABS+"}"},setCssText:function(e){var t={cssRules:[]},s=new CSSParser(e),i=s.getToken(!0,!0);if(!i.isNotNull()&&s.parseStyleRule(i,t,!1)){var r=t.cssRules[0];return this.mSelectorText=r.mSelectorText,this.declarations=r.declarations,void(this.parsedCssText=r.parsedCssText)}throw DOMException.SYNTAX_ERR},selectorText:function(){return this.mSelectorText},setSelectorText:function(e){var t=new CSSParser(e),s=t.getToken(!0,!0);if(!s.isNotNull()){var i=t.parseSelector(s,!0);if(i)return void(this.mSelectorText=i.selector)}throw DOMException.SYNTAX_ERR}},jscsspStylesheet.prototype={insertRule:function(e,t){try{this.cssRules.splice(t,1,e)}catch(s){}},deleteRule:function(e){try{this.cssRules.splice(e)}catch(t){}},cssText:function(){for(var e="",t=0;t<this.cssRules.length;t++)e+=this.cssRules[t].cssText()+"\n\n";return e}};var kJscsspINHERIT_VALUE=0,kJscsspPRIMITIVE_VALUE=1,kJscsspVARIABLE_VALUE=4;jscsspVariable.prototype={cssText:function(){return this.type==kJscsspVARIABLE_VALUE?this.resolveVariable(this.name,this.parentRule,this.parentStyleSheet):this.value},setCssText:function(e){if(this.type==kJscsspVARIABLE_VALUE)throw DOMException.SYNTAX_ERR;this.value=e},resolveVariable:function(e,t,s){return"var("+e+")"}},jscsspVariablesRule.prototype={cssText:function(){var e=gTABS+"@variables "+(this.media.length?this.media.join(", ")+" ":"")+"{\n",t=gTABS;gTABS+="  ";for(var s=0;s<this.declarations.length;s++)e+=gTABS+this.declarations[s].cssText()+"\n";return gTABS=t,e+gTABS+"}"},setCssText:function(e){var t={cssRules:[]},s=new CSSParser(e),i=s.getToken(!0,!0);if(i.isAtRule("@variables")&&s.parseVariablesRule(i,t)){var r=t.cssRules[0];return this.declarations=r.declarations,void(this.parsedCssText=r.parsedCssText)}throw DOMException.SYNTAX_ERR}},jscsspWhitespace.prototype={cssText:function(){return this.parsedCssText}};var kJscsspUNKNOWN_RULE=0,kJscsspSTYLE_RULE=1,kJscsspCHARSET_RULE=2,kJscsspIMPORT_RULE=3,kJscsspMEDIA_RULE=4,kJscsspFONT_FACE_RULE=5,kJscsspPAGE_RULE=6,kJscsspKEYFRAMES_RULE=7,kJscsspKEYFRAME_RULE=8,kJscsspNAMESPACE_RULE=100,kJscsspCOMMENT=101,kJscsspWHITE_SPACE=102,kJscsspVARIABLES_RULE=200,kJscsspSTYLE_DECLARATION=1e3,gTABS="";
  