function e(e){e={...x,...e};var t=e.inline,n=e.tokenHooks,r=e.documentTypes||{},i=e.mediaTypes||{},a=e.mediaFeatures||{},o=e.mediaValueKeywords||{},s=e.propertyKeywords||{},c=e.nonStandardPropertyKeywords||{},l=e.fontProperties||{},u=e.counterDescriptors||{},d=e.colorKeywords||{},f=e.valueKeywords||{},p=e.allowNested,m=e.lineComment,h=e.supportsAtComponent===!0,g=e.highlightNonStandardPropertyKeywords!==!1,_,v;function y(e,t){return _=t,e}function S(e,t){var r=e.next();if(n[r]){var i=n[r](e,t);if(i!==!1)return i}if(r==`@`)return e.eatWhile(/[\w\\\-]/),y(`def`,e.current());if(r==`=`||(r==`~`||r==`|`)&&e.eat(`=`))return y(null,`compare`);if(r==`"`||r==`'`)return t.tokenize=C(r),t.tokenize(e,t);if(r==`#`)return e.eatWhile(/[\w\\\-]/),y(`atom`,`hash`);if(r==`!`)return e.match(/^\s*\w*/),y(`keyword`,`important`);if(/\d/.test(r)||r==`.`&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),y(`number`,`unit`);if(r===`-`){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),y(`number`,`unit`);if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?y(`def`,`variable-definition`):y(`variableName`,`variable`);if(e.match(/^\w+-/))return y(`meta`,`meta`)}else if(/[,+>*\/]/.test(r))return y(null,`select-op`);else if(r==`.`&&e.match(/^-?[_a-z][_a-z0-9-]*/i))return y(`qualifier`,`qualifier`);else if(/[:;{}\[\]\(\)]/.test(r))return y(null,r);else if(e.match(/^[\w-.]+(?=\()/))return/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=w),y(`variableName.function`,`variable`);else if(/[\w\\\-]/.test(r))return e.eatWhile(/[\w\\\-]/),y(`property`,`word`);else return y(null,null)}function C(e){return function(t,n){for(var r=!1,i;(i=t.next())!=null;){if(i==e&&!r){e==`)`&&t.backUp(1);break}r=!r&&i==`\\`}return(i==e||!r&&e!=`)`)&&(n.tokenize=null),y(`string`,`string`)}}function w(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=C(`)`),y(null,`(`)}function T(e,t,n){this.type=e,this.indent=t,this.prev=n}function E(e,t,n,r){return e.context=new T(n,t.indentation()+(r===!1?0:t.indentUnit),e.context),n}function D(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function O(e,t,n){return j[n.context.type](e,t,n)}function k(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return O(e,t,n)}function A(e){var t=e.current().toLowerCase();v=f.hasOwnProperty(t)?`atom`:d.hasOwnProperty(t)?`keyword`:`variable`}var j={};return j.top=function(e,t,n){if(e==`{`)return E(n,t,`block`);if(e==`}`&&n.context.prev)return D(n);if(h&&/@component/i.test(e))return E(n,t,`atComponentBlock`);if(/^@(-moz-)?document$/i.test(e))return E(n,t,`documentTypes`);if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return E(n,t,`atBlock`);if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,`restricted_atBlock_before`;if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return`keyframes`;if(e&&e.charAt(0)==`@`)return E(n,t,`at`);if(e==`hash`)v=`builtin`;else if(e==`word`)v=`tag`;else if(e==`variable-definition`)return`maybeprop`;else if(e==`interpolation`)return E(n,t,`interpolation`);else if(e==`:`)return`pseudo`;else if(p&&e==`(`)return E(n,t,`parens`);return n.context.type},j.block=function(e,t,n){if(e==`word`){var r=t.current().toLowerCase();return s.hasOwnProperty(r)?(v=`property`,`maybeprop`):c.hasOwnProperty(r)?(v=g?`string.special`:`property`,`maybeprop`):p?(v=t.match(/^\s*:(?:\s|$)/,!1)?`property`:`tag`,`block`):(v=`error`,`maybeprop`)}else if(e==`meta`)return`block`;else if(!p&&(e==`hash`||e==`qualifier`))return v=`error`,`block`;else return j.top(e,t,n)},j.maybeprop=function(e,t,n){return e==`:`?E(n,t,`prop`):O(e,t,n)},j.prop=function(e,t,n){if(e==`;`)return D(n);if(e==`{`&&p)return E(n,t,`propBlock`);if(e==`}`||e==`{`)return k(e,t,n);if(e==`(`)return E(n,t,`parens`);if(e==`hash`&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current()))v=`error`;else if(e==`word`)A(t);else if(e==`interpolation`)return E(n,t,`interpolation`);return`prop`},j.propBlock=function(e,t,n){return e==`}`?D(n):e==`word`?(v=`property`,`maybeprop`):n.context.type},j.parens=function(e,t,n){return e==`{`||e==`}`?k(e,t,n):e==`)`?D(n):e==`(`?E(n,t,`parens`):e==`interpolation`?E(n,t,`interpolation`):(e==`word`&&A(t),`parens`)},j.pseudo=function(e,t,n){return e==`meta`?`pseudo`:e==`word`?(v=`variableName.constant`,n.context.type):O(e,t,n)},j.documentTypes=function(e,t,n){return e==`word`&&r.hasOwnProperty(t.current())?(v=`tag`,n.context.type):j.atBlock(e,t,n)},j.atBlock=function(e,t,n){if(e==`(`)return E(n,t,`atBlock_parens`);if(e==`}`||e==`;`)return k(e,t,n);if(e==`{`)return D(n)&&E(n,t,p?`block`:`top`);if(e==`interpolation`)return E(n,t,`interpolation`);if(e==`word`){var r=t.current().toLowerCase();v=r==`only`||r==`not`||r==`and`||r==`or`?`keyword`:i.hasOwnProperty(r)?`attribute`:a.hasOwnProperty(r)?`property`:o.hasOwnProperty(r)?`keyword`:s.hasOwnProperty(r)?`property`:c.hasOwnProperty(r)?g?`string.special`:`property`:f.hasOwnProperty(r)?`atom`:d.hasOwnProperty(r)?`keyword`:`error`}return n.context.type},j.atComponentBlock=function(e,t,n){return e==`}`?k(e,t,n):e==`{`?D(n)&&E(n,t,p?`block`:`top`,!1):(e==`word`&&(v=`error`),n.context.type)},j.atBlock_parens=function(e,t,n){return e==`)`?D(n):e==`{`||e==`}`?k(e,t,n,2):j.atBlock(e,t,n)},j.restricted_atBlock_before=function(e,t,n){return e==`{`?E(n,t,`restricted_atBlock`):e==`word`&&n.stateArg==`@counter-style`?(v=`variable`,`restricted_atBlock_before`):O(e,t,n)},j.restricted_atBlock=function(e,t,n){return e==`}`?(n.stateArg=null,D(n)):e==`word`?(v=n.stateArg==`@font-face`&&!l.hasOwnProperty(t.current().toLowerCase())||n.stateArg==`@counter-style`&&!u.hasOwnProperty(t.current().toLowerCase())?`error`:`property`,`maybeprop`):`restricted_atBlock`},j.keyframes=function(e,t,n){return e==`word`?(v=`variable`,`keyframes`):e==`{`?E(n,t,`top`):O(e,t,n)},j.at=function(e,t,n){return e==`;`?D(n):e==`{`||e==`}`?k(e,t,n):(e==`word`?v=`tag`:e==`hash`&&(v=`builtin`),`at`)},j.interpolation=function(e,t,n){return e==`}`?D(n):e==`{`||e==`;`?k(e,t,n):(e==`word`?v=`variable`:e!=`variable`&&e!=`(`&&e!=`)`&&(v=`error`),`interpolation`)},{name:e.name,startState:function(){return{tokenize:null,state:t?`block`:`top`,stateArg:null,context:new T(t?`block`:`top`,0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||S)(e,t);return n&&typeof n==`object`&&(_=n[1],n=n[0]),v=n,_!=`comment`&&(t.state=j[t.state](_,e,t)),v},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),a=r.indent;return r.type==`prop`&&(i==`}`||i==`)`)&&(r=r.prev),r.prev&&(i==`}`&&(r.type==`block`||r.type==`top`||r.type==`interpolation`||r.type==`restricted_atBlock`)?(r=r.prev,a=r.indent):(i==`)`&&(r.type==`parens`||r.type==`atBlock_parens`)||i==`{`&&(r.type==`at`||r.type==`atBlock`))&&(a=Math.max(0,r.indent-n.unit))),a},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:m,block:{open:`/*`,close:`*/`}},autocomplete:b}}}function t(e){for(var t={},n=0;n