1 line
234 KiB
JavaScript
1 line
234 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0b65ffb6"],{db4f:function(e,t,r){"use strict";r.r(t),r.d(t,"setupMode",(function(){return Ga}));var n,i=r("0b3c"),o=(s.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},s.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},s.prototype._checkIfIdle=function(){this._worker&&12e4<Date.now()-this._lastUsedTime&&this._stopWorker()},s.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=i.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},s.prototype.getLanguageServiceWorker=function(){for(var e,t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return this._getClient().then((function(t){e=t})).then((function(e){return t._worker.withSyncedResources(r)})).then((function(t){return e}))},s);function s(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=window.setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}(t=n=n||{})[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken",c.prototype.substring=function(e,t){return void 0===t&&(t=this.position),this.source.substring(e,t)},c.prototype.eos=function(){return this.len<=this.position},c.prototype.pos=function(){return this.position},c.prototype.goBackTo=function(e){this.position=e},c.prototype.goBack=function(e){this.position-=e},c.prototype.advance=function(e){this.position+=e},c.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},c.prototype.peekChar=function(e){return this.source.charCodeAt(this.position+(e=void 0===e?0:e))||0},c.prototype.lookbackChar=function(e){return this.source.charCodeAt(this.position-(e=void 0===e?0:e))||0},c.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)},c.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0},c.prototype.advanceWhileChar=function(e){for(var t=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t};var a=c;function c(e){this.source=e,this.len=e.length,this.position=0}var u="a".charCodeAt(0),h="f".charCodeAt(0),l="z".charCodeAt(0),p="A".charCodeAt(0),f="F".charCodeAt(0),d="Z".charCodeAt(0),m="0".charCodeAt(0),g="9".charCodeAt(0),y="~".charCodeAt(0),b="^".charCodeAt(0),v="=".charCodeAt(0),C="|".charCodeAt(0),x="-".charCodeAt(0),k="_".charCodeAt(0),_="%".charCodeAt(0),w="*".charCodeAt(0),P="(".charCodeAt(0),S=")".charCodeAt(0),E="<".charCodeAt(0),R=">".charCodeAt(0),I="@".charCodeAt(0),A="#".charCodeAt(0),D="$".charCodeAt(0),T="\\".charCodeAt(0),F="/".charCodeAt(0),O="\n".charCodeAt(0),M="\r".charCodeAt(0),L="\f".charCodeAt(0),V='"'.charCodeAt(0),N="'".charCodeAt(0),$=" ".charCodeAt(0),j="\t".charCodeAt(0),B=(t=";".charCodeAt(0),":".charCodeAt(0)),U="{".charCodeAt(0),W="}".charCodeAt(0),K="[".charCodeAt(0),q="]".charCodeAt(0),z=",".charCodeAt(0),H=".".charCodeAt(0),G="!".charCodeAt(0),Q={},J=(Q[t]=n.SemiColon,Q[B]=n.Colon,Q[U]=n.CurlyL,Q[W]=n.CurlyR,Q[q]=n.BracketR,Q[K]=n.BracketL,Q[P]=n.ParenthesisL,Q[S]=n.ParenthesisR,Q[z]=n.Comma,{}),X=(J.em=n.EMS,J.ex=n.EXS,J.px=n.Length,J.cm=n.Length,J.mm=n.Length,J.in=n.Length,J.pt=n.Length,J.pc=n.Length,J.deg=n.Angle,J.rad=n.Angle,J.grad=n.Angle,J.ms=n.Time,J.s=n.Time,J.hz=n.Freq,J.khz=n.Freq,J["%"]=n.Percentage,J.fr=n.Percentage,J.dpi=n.Resolution,J.dpcm=n.Resolution,Z.prototype.setSource=function(e){this.stream=new a(e)},Z.prototype.finishToken=function(e,t,r){return{offset:e,len:this.stream.pos()-e,type:t,text:r||this.stream.substring(e)}},Z.prototype.substring=function(e,t){return this.stream.substring(e,e+t)},Z.prototype.pos=function(){return this.stream.pos()},Z.prototype.goBackTo=function(e){this.stream.goBackTo(e)},Z.prototype.scanUnquotedString=function(){var e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,n.UnquotedString,t.join("")):null},Z.prototype.scan=function(){var e=this.trivia();return null!==e?e:(e=this.stream.pos(),this.stream.eos()?this.finishToken(e,n.EOF):this.scanNext(e))},Z.prototype.scanNext=function(e){var t,r;return this.stream.advanceIfChars([E,G,x,x])?this.finishToken(e,n.CDO):this.stream.advanceIfChars([x,x,R])?this.finishToken(e,n.CDC):this.ident(t=[])?this.finishToken(e,n.Ident,t.join("")):this.stream.advanceIfChar(I)?this._name(t=["@"])?"@charset"===(r=t.join(""))?this.finishToken(e,n.Charset,r):this.finishToken(e,n.AtKeyword,r):this.finishToken(e,n.Delim):this.stream.advanceIfChar(A)?this._name(t=["#"])?this.finishToken(e,n.Hash,t.join("")):this.finishToken(e,n.Delim):this.stream.advanceIfChar(G)?this.finishToken(e,n.Exclamation):this._number()?(r=this.stream.pos(),t=[this.stream.substring(e,r)],this.stream.advanceIfChar(_)?this.finishToken(e,n.Percentage):this.ident(t)?(r=this.stream.substring(r).toLowerCase(),void 0!==(r=J[r])?this.finishToken(e,r,t.join("")):this.finishToken(e,n.Dimension,t.join(""))):this.finishToken(e,n.Num)):null!==(r=this._string(t=[]))?this.finishToken(e,r,t.join("")):void 0!==(r=Q[this.stream.peekChar()])?(this.stream.advance(1),this.finishToken(e,r)):this.stream.peekChar(0)===y&&this.stream.peekChar(1)===v?(this.stream.advance(2),this.finishToken(e,n.Includes)):this.stream.peekChar(0)===C&&this.stream.peekChar(1)===v?(this.stream.advance(2),this.finishToken(e,n.Dashmatch)):this.stream.peekChar(0)===w&&this.stream.peekChar(1)===v?(this.stream.advance(2),this.finishToken(e,n.SubstringOperator)):this.stream.peekChar(0)===b&&this.stream.peekChar(1)===v?(this.stream.advance(2),this.finishToken(e,n.PrefixOperator)):this.stream.peekChar(0)===D&&this.stream.peekChar(1)===v?(this.stream.advance(2),this.finishToken(e,n.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,n.Delim))},Z.prototype.trivia=function(){for(;;){var e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,n.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,n.Comment)}}},Z.prototype.comment=function(){var e,t;return!!this.stream.advanceIfChars([F,w])&&(t=e=!1,this.stream.advanceWhileChar((function(r){return t&&r===F?!(e=!0):(t=r===w,!0)})),e&&this.stream.advance(1),!0)},Z.prototype._number=function(){var e,t=0;return this.stream.peekChar()===H&&(t=1),e=this.stream.peekChar(t),m<=e&&e<=g&&(this.stream.advance(t+1),this.stream.advanceWhileChar((function(e){return m<=e&&e<=g||0===t&&e===H})),!0)},Z.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case M:case L:case O:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===M&&this.stream.advanceIfChar(O)&&e.push("\n"),!0}return!1},Z.prototype._escape=function(e,t){if((r=this.stream.peekChar())===T){this.stream.advance(1);for(var r=this.stream.peekChar(),n=0;n<6&&(m<=r&&r<=g||u<=r&&r<=h||p<=r&&r<=f);)this.stream.advance(1),r=this.stream.peekChar(),n++;if(0<n){try{var i=parseInt(this.stream.substring(this.stream.pos()-n),16);i&&e.push(String.fromCharCode(i))}catch(e){}return r===$||r===j?this.stream.advance(1):this._newline([]),!0}if(r!==M&&r!==L&&r!==O)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(t)return this._newline(e)}return!1},Z.prototype._stringChar=function(e,t){var r=this.stream.peekChar();return 0!==r&&r!==e&&r!==T&&r!==M&&r!==L&&r!==O&&(this.stream.advance(1),t.push(String.fromCharCode(r)),!0)},Z.prototype._string=function(e){if(this.stream.peekChar()!==N&&this.stream.peekChar()!==V)return null;var t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),n.String):n.BadString},Z.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return 0!==t&&t!==T&&t!==N&&t!==V&&t!==P&&t!==S&&t!==$&&t!==j&&t!==O&&t!==L&&t!==M&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},Z.prototype._unquotedString=function(e){for(var t=!1;this._unquotedChar(e)||this._escape(e);)t=!0;return t},Z.prototype._whitespace=function(){return 0<this.stream.advanceWhileChar((function(e){return e===$||e===j||e===O||e===L||e===M}))},Z.prototype._name=function(e){for(var t=!1;this._identChar(e)||this._escape(e);)t=!0;return t},Z.prototype.ident=function(e){var t=this.stream.pos();if(this._minus(e)&&this._minus(e),this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1},Z.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return(t===k||u<=t&&t<=l||p<=t&&t<=d||128<=t&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},Z.prototype._minus=function(e){var t=this.stream.peekChar();return t===x&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},Z.prototype._identChar=function(e){var t=this.stream.peekChar();return(t===k||t===x||u<=t&&t<=l||p<=t&&t<=d||m<=t&&t<=g||128<=t&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},Z);function Z(){this.stream=new a(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}function Y(e,t){if(e.length<t.length)return!1;for(var r=0;r<t.length;r++)if(e[r]!==t[r])return!1;return!0}function ee(e,t){var r=e.length-t.length;return 0<r?e.lastIndexOf(t)===r:0==r&&e===t}function te(e,t){return void 0===t&&(t=!0),e?e.length<140?e:e.slice(0,140)+(t?"…":""):""}re=function(e,t){return(re=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var re,ne,ie;t=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}re(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};function oe(e,t){var r=null;return!e||t<e.offset||t>e.end?null:(e.accept((function(e){return-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&((!r||e.length<=r.length)&&(r=e),!0)})),r)}function se(e,t){for(var r=oe(e,t),n=[];r;)n.unshift(r),r=r.parent;return n}(B=ne=ne||{})[B.Undefined=0]="Undefined",B[B.Identifier=1]="Identifier",B[B.Stylesheet=2]="Stylesheet",B[B.Ruleset=3]="Ruleset",B[B.Selector=4]="Selector",B[B.SimpleSelector=5]="SimpleSelector",B[B.SelectorInterpolation=6]="SelectorInterpolation",B[B.SelectorCombinator=7]="SelectorCombinator",B[B.SelectorCombinatorParent=8]="SelectorCombinatorParent",B[B.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",B[B.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",B[B.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",B[B.Page=12]="Page",B[B.PageBoxMarginBox=13]="PageBoxMarginBox",B[B.ClassSelector=14]="ClassSelector",B[B.IdentifierSelector=15]="IdentifierSelector",B[B.ElementNameSelector=16]="ElementNameSelector",B[B.PseudoSelector=17]="PseudoSelector",B[B.AttributeSelector=18]="AttributeSelector",B[B.Declaration=19]="Declaration",B[B.Declarations=20]="Declarations",B[B.Property=21]="Property",B[B.Expression=22]="Expression",B[B.BinaryExpression=23]="BinaryExpression",B[B.Term=24]="Term",B[B.Operator=25]="Operator",B[B.Value=26]="Value",B[B.StringLiteral=27]="StringLiteral",B[B.URILiteral=28]="URILiteral",B[B.EscapedValue=29]="EscapedValue",B[B.Function=30]="Function",B[B.NumericValue=31]="NumericValue",B[B.HexColorValue=32]="HexColorValue",B[B.MixinDeclaration=33]="MixinDeclaration",B[B.MixinReference=34]="MixinReference",B[B.VariableName=35]="VariableName",B[B.VariableDeclaration=36]="VariableDeclaration",B[B.Prio=37]="Prio",B[B.Interpolation=38]="Interpolation",B[B.NestedProperties=39]="NestedProperties",B[B.ExtendsReference=40]="ExtendsReference",B[B.SelectorPlaceholder=41]="SelectorPlaceholder",B[B.Debug=42]="Debug",B[B.If=43]="If",B[B.Else=44]="Else",B[B.For=45]="For",B[B.Each=46]="Each",B[B.While=47]="While",B[B.MixinContentReference=48]="MixinContentReference",B[B.MixinContentDeclaration=49]="MixinContentDeclaration",B[B.Media=50]="Media",B[B.Keyframe=51]="Keyframe",B[B.FontFace=52]="FontFace",B[B.Import=53]="Import",B[B.Namespace=54]="Namespace",B[B.Invocation=55]="Invocation",B[B.FunctionDeclaration=56]="FunctionDeclaration",B[B.ReturnStatement=57]="ReturnStatement",B[B.MediaQuery=58]="MediaQuery",B[B.FunctionParameter=59]="FunctionParameter",B[B.FunctionArgument=60]="FunctionArgument",B[B.KeyframeSelector=61]="KeyframeSelector",B[B.ViewPort=62]="ViewPort",B[B.Document=63]="Document",B[B.AtApplyRule=64]="AtApplyRule",B[B.CustomPropertyDeclaration=65]="CustomPropertyDeclaration",B[B.CustomPropertySet=66]="CustomPropertySet",B[B.ListEntry=67]="ListEntry",B[B.Supports=68]="Supports",B[B.SupportsCondition=69]="SupportsCondition",B[B.NamespacePrefix=70]="NamespacePrefix",B[B.GridLine=71]="GridLine",B[B.Plugin=72]="Plugin",B[B.UnknownAtRule=73]="UnknownAtRule",B[B.Use=74]="Use",B[B.ModuleConfiguration=75]="ModuleConfiguration",B[B.Forward=76]="Forward",B[B.ForwardVisibility=77]="ForwardVisibility",B[B.Module=78]="Module",(U=ie=ie||{})[U.Mixin=0]="Mixin",U[U.Rule=1]="Rule",U[U.Variable=2]="Variable",U[U.Function=3]="Function",U[U.Keyframe=4]="Keyframe",U[U.Unknown=5]="Unknown",U[U.Module=6]="Module",U[U.Forward=7]="Forward",U[U.ForwardVisibility=8]="ForwardVisibility",Object.defineProperty(ce.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"type",{get:function(){return this.nodeType||ne.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),ce.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},ce.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},ce.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},ce.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},ce.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},ce.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,r=this.children;t<r.length;t++)r[t].accept(e)},ce.prototype.acceptVisitor=function(e){this.accept(e.visitNode.bind(e))},ce.prototype.adoptChild=function(e,t){void 0===t&&(t=-1),e.parent&&e.parent.children&&0<=(r=e.parent.children.indexOf(e))&&e.parent.children.splice(r,1);var r=(r=(e.parent=this).children)||(this.children=[]);return-1!==t?r.splice(t,0,e):r.push(e),e},ce.prototype.attachTo=function(e,t){return void 0===t&&(t=-1),e&&e.adoptChild(this,t),this},ce.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},ce.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},ce.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some((function(t){return t.getRule()===e}))},ce.prototype.isErroneous=function(e){return void 0===e&&(e=!1),!!(this.issues&&0<this.issues.length)||e&&Array.isArray(this.children)&&this.children.some((function(e){return e.isErroneous(!0)}))},ce.prototype.setNode=function(e,t,r){return void 0===r&&(r=-1),!!t&&(t.attachTo(this,r),this[e]=t,!0)},ce.prototype.addChild=function(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)},ce.prototype.updateOffsetAndLength=function(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset),e=e.end,(e>this.end||-1===this.length)&&(this.length=e-this.offset)},ce.prototype.hasChildren=function(){return!!this.children&&0<this.children.length},ce.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},ce.prototype.getChild=function(e){return this.children&&e<this.children.length?this.children[e]:null},ce.prototype.addChildren=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.addChild(n)}},ce.prototype.findFirstChildBeforeOffset=function(e){if(this.children)for(var t,r=this.children.length-1;0<=r;r--)if((t=this.children[r]).offset<=e)return t;return null},ce.prototype.findChildAtOffset=function(e,t){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?t&&r.findChildAtOffset(e,!0)||r:null},ce.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},ce.prototype.getParent=function(){for(var e=this.parent;e instanceof he;)e=e.parent;return e},ce.prototype.findParent=function(e){for(var t=this;t&&t.type!==e;)t=t.parent;return t},ce.prototype.findAParent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this;r&&!e.some((function(e){return r.type===e}));)r=r.parent;return r},ce.prototype.setData=function(e,t){this.options||(this.options={}),this.options[e]=t},ce.prototype.getData=function(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null};var ae=ce;function ce(e,t,r){void 0===e&&(e=-1),void 0===t&&(t=-1),this.parent=null,this.offset=e,this.length=t,r&&(this.nodeType=r)}t(le,ue=ae);var ue,he=le;function le(e,t){void 0===t&&(t=-1);var r=ue.call(this,-1,-1)||this;return r.attachTo(e,t),r.offset=-1,r.length=-1,r}t(de,pe=ae),Object.defineProperty(de.prototype,"type",{get:function(){return ne.Identifier},enumerable:!1,configurable:!0}),de.prototype.containsInterpolation=function(){return this.hasChildren()};var pe,fe=de;function de(e,t){return e=pe.call(this,e,t)||this,e.isCustomProperty=!1,e}t(ye,me=ae),Object.defineProperty(ye.prototype,"type",{get:function(){return ne.Stylesheet},enumerable:!1,configurable:!0});var me,ge=ye;function ye(e,t){return me.call(this,e,t)||this}t(Ce,be=ae),Object.defineProperty(Ce.prototype,"type",{get:function(){return ne.Declarations},enumerable:!1,configurable:!0});var be,ve=Ce;function Ce(e,t){return be.call(this,e,t)||this}t(_e,xe=ae),_e.prototype.getDeclarations=function(){return this.declarations},_e.prototype.setDeclarations=function(e){return this.setNode("declarations",e)};var xe,ke=_e;function _e(e,t){return xe.call(this,e,t)||this}t(Se,we=ke),Object.defineProperty(Se.prototype,"type",{get:function(){return ne.Ruleset},enumerable:!1,configurable:!0}),Se.prototype.getSelectors=function(){return this.selectors||(this.selectors=new he(this)),this.selectors},Se.prototype.isNested=function(){return!!this.parent&&null!==this.parent.findParent(ne.Declarations)};var we,Pe=Se;function Se(e,t){return we.call(this,e,t)||this}t(Ie,Ee=ae),Object.defineProperty(Ie.prototype,"type",{get:function(){return ne.Selector},enumerable:!1,configurable:!0});var Ee,Re=Ie;function Ie(e,t){return Ee.call(this,e,t)||this}t(Fe,Ae=ae),Object.defineProperty(Fe.prototype,"type",{get:function(){return ne.SimpleSelector},enumerable:!1,configurable:!0});var Ae,De,Te=Fe;function Fe(e,t){return Ae.call(this,e,t)||this}function Oe(e,t){return De.call(this,e,t)||this}t(Oe,De=ae),Object.defineProperty(Oe.prototype,"type",{get:function(){return ne.AtApplyRule},enumerable:!1,configurable:!0}),Oe.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Oe.prototype.getIdentifier=function(){return this.identifier},Oe.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t(Ve,Me=ae);var Me,Le=Ve;function Ve(e,t){return Me.call(this,e,t)||this}t(je,Ne=ke),Object.defineProperty(je.prototype,"type",{get:function(){return ne.CustomPropertySet},enumerable:!1,configurable:!0});var Ne,$e=je;function je(e,t){return Ne.call(this,e,t)||this}t(We,Be=Le),Object.defineProperty(We.prototype,"type",{get:function(){return ne.Declaration},enumerable:!1,configurable:!0}),We.prototype.setProperty=function(e){return this.setNode("property",e)},We.prototype.getProperty=function(){return this.property},We.prototype.getFullPropertyName=function(){var e=this.property?this.property.getName():"unknown";if(this.parent instanceof ve&&this.parent.getParent()instanceof Tt){var t=this.parent.getParent().getParent();if(t instanceof We)return t.getFullPropertyName()+e}return e},We.prototype.getNonPrefixedPropertyName=function(){var e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){var t=e.indexOf("-",1);if(-1!==t)return e.substring(t+1)}return e},We.prototype.setValue=function(e){return this.setNode("value",e)},We.prototype.getValue=function(){return this.value},We.prototype.setNestedProperties=function(e){return this.setNode("nestedProperties",e)},We.prototype.getNestedProperties=function(){return this.nestedProperties};var Be,Ue=We;function We(e,t){return e=Be.call(this,e,t)||this,e.property=null,e}t(ze,Ke=Ue),Object.defineProperty(ze.prototype,"type",{get:function(){return ne.CustomPropertyDeclaration},enumerable:!1,configurable:!0}),ze.prototype.setPropertySet=function(e){return this.setNode("propertySet",e)},ze.prototype.getPropertySet=function(){return this.propertySet};var Ke,qe=ze;function ze(e,t){return Ke.call(this,e,t)||this}t(Qe,He=ae),Object.defineProperty(Qe.prototype,"type",{get:function(){return ne.Property},enumerable:!1,configurable:!0}),Qe.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},Qe.prototype.getIdentifier=function(){return this.identifier},Qe.prototype.getName=function(){return e=this.getText(),(t=(t=/[_\+]+$/).exec(e))&&t[0].length?e.substr(0,e.length-t[0].length):e;var e,t},Qe.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty};var He,Ge=Qe;function Qe(e,t){return He.call(this,e,t)||this}t(Xe,Je=ae),Object.defineProperty(Xe.prototype,"type",{get:function(){return ne.Invocation},enumerable:!1,configurable:!0}),Xe.prototype.getArguments=function(){return this.arguments||(this.arguments=new he(this)),this.arguments};var Je;W=Xe;function Xe(e,t){return Je.call(this,e,t)||this}t(et,Ze=W),Object.defineProperty(et.prototype,"type",{get:function(){return ne.Function},enumerable:!1,configurable:!0}),et.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},et.prototype.getIdentifier=function(){return this.identifier},et.prototype.getName=function(){return this.identifier?this.identifier.getText():""};var Ze,Ye=et;function et(e,t){return Ze.call(this,e,t)||this}t(nt,tt=ae),Object.defineProperty(nt.prototype,"type",{get:function(){return ne.FunctionParameter},enumerable:!1,configurable:!0}),nt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},nt.prototype.getIdentifier=function(){return this.identifier},nt.prototype.getName=function(){return this.identifier?this.identifier.getText():""},nt.prototype.setDefaultValue=function(e){return this.setNode("defaultValue",e,0)},nt.prototype.getDefaultValue=function(){return this.defaultValue};var tt,rt=nt;function nt(e,t){return tt.call(this,e,t)||this}t(st,it=ae),Object.defineProperty(st.prototype,"type",{get:function(){return ne.FunctionArgument},enumerable:!1,configurable:!0}),st.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},st.prototype.getIdentifier=function(){return this.identifier},st.prototype.getName=function(){return this.identifier?this.identifier.getText():""},st.prototype.setValue=function(e){return this.setNode("value",e,0)},st.prototype.getValue=function(){return this.value};var it,ot=st;function st(e,t){return it.call(this,e,t)||this}t(ut,at=ke),Object.defineProperty(ut.prototype,"type",{get:function(){return ne.If},enumerable:!1,configurable:!0}),ut.prototype.setExpression=function(e){return this.setNode("expression",e,0)},ut.prototype.setElseClause=function(e){return this.setNode("elseClause",e)};var at,ct=ut;function ut(e,t){return at.call(this,e,t)||this}t(pt,ht=ke),Object.defineProperty(pt.prototype,"type",{get:function(){return ne.For},enumerable:!1,configurable:!0}),pt.prototype.setVariable=function(e){return this.setNode("variable",e,0)};var ht,lt=pt;function pt(e,t){return ht.call(this,e,t)||this}t(mt,ft=ke),Object.defineProperty(mt.prototype,"type",{get:function(){return ne.Each},enumerable:!1,configurable:!0}),mt.prototype.getVariables=function(){return this.variables||(this.variables=new he(this)),this.variables};var ft,dt=mt;function mt(e,t){return ft.call(this,e,t)||this}t(bt,gt=ke),Object.defineProperty(bt.prototype,"type",{get:function(){return ne.While},enumerable:!1,configurable:!0});var gt,yt=bt;function bt(e,t){return gt.call(this,e,t)||this}t(xt,vt=ke),Object.defineProperty(xt.prototype,"type",{get:function(){return ne.Else},enumerable:!1,configurable:!0});var vt,Ct=xt;function xt(e,t){return vt.call(this,e,t)||this}t(wt,kt=ke),Object.defineProperty(wt.prototype,"type",{get:function(){return ne.FunctionDeclaration},enumerable:!1,configurable:!0}),wt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},wt.prototype.getIdentifier=function(){return this.identifier},wt.prototype.getName=function(){return this.identifier?this.identifier.getText():""},wt.prototype.getParameters=function(){return this.parameters||(this.parameters=new he(this)),this.parameters};var kt,_t=wt;function wt(e,t){return kt.call(this,e,t)||this}t(Et,Pt=ke),Object.defineProperty(Et.prototype,"type",{get:function(){return ne.ViewPort},enumerable:!1,configurable:!0});var Pt,St=Et;function Et(e,t){return Pt.call(this,e,t)||this}t(At,Rt=ke),Object.defineProperty(At.prototype,"type",{get:function(){return ne.FontFace},enumerable:!1,configurable:!0});var Rt,It=At;function At(e,t){return Rt.call(this,e,t)||this}t(Ft,Dt=ke),Object.defineProperty(Ft.prototype,"type",{get:function(){return ne.NestedProperties},enumerable:!1,configurable:!0});var Dt,Tt=Ft;function Ft(e,t){return Dt.call(this,e,t)||this}t(Lt,Ot=ke),Object.defineProperty(Lt.prototype,"type",{get:function(){return ne.Keyframe},enumerable:!1,configurable:!0}),Lt.prototype.setKeyword=function(e){return this.setNode("keyword",e,0)},Lt.prototype.getKeyword=function(){return this.keyword},Lt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Lt.prototype.getIdentifier=function(){return this.identifier},Lt.prototype.getName=function(){return this.identifier?this.identifier.getText():""};var Ot,Mt=Lt;function Lt(e,t){return Ot.call(this,e,t)||this}t($t,Vt=ke),Object.defineProperty($t.prototype,"type",{get:function(){return ne.KeyframeSelector},enumerable:!1,configurable:!0});var Vt,Nt=$t;function $t(e,t){return Vt.call(this,e,t)||this}t(Ut,jt=ae),Object.defineProperty(Ut.prototype,"type",{get:function(){return ne.Import},enumerable:!1,configurable:!0}),Ut.prototype.setMedialist=function(e){return!!e&&(e.attachTo(this),!0)};var jt,Bt=Ut;function Ut(e,t){return jt.call(this,e,t)||this}t(qt,Wt=ae),Object.defineProperty(qt.prototype,"type",{get:function(){return ne.Use},enumerable:!1,configurable:!0}),qt.prototype.getParameters=function(){return this.parameters||(this.parameters=new he(this)),this.parameters},qt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},qt.prototype.getIdentifier=function(){return this.identifier};var Wt,Kt=qt;function qt(){return null!==Wt&&Wt.apply(this,arguments)||this}t(Gt,zt=ae),Object.defineProperty(Gt.prototype,"type",{get:function(){return ne.ModuleConfiguration},enumerable:!1,configurable:!0}),Gt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Gt.prototype.getIdentifier=function(){return this.identifier},Gt.prototype.getName=function(){return this.identifier?this.identifier.getText():""},Gt.prototype.setValue=function(e){return this.setNode("value",e,0)},Gt.prototype.getValue=function(){return this.value};var zt,Ht=Gt;function Gt(){return null!==zt&&zt.apply(this,arguments)||this}t(Xt,Qt=ae),Object.defineProperty(Xt.prototype,"type",{get:function(){return ne.Forward},enumerable:!1,configurable:!0}),Xt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Xt.prototype.getIdentifier=function(){return this.identifier},Xt.prototype.getMembers=function(){return this.members||(this.members=new he(this)),this.members},Xt.prototype.getParameters=function(){return this.parameters||(this.parameters=new he(this)),this.parameters};var Qt,Jt=Xt;function Xt(){return null!==Qt&&Qt.apply(this,arguments)||this}t(er,Zt=ae),Object.defineProperty(er.prototype,"type",{get:function(){return ne.ForwardVisibility},enumerable:!1,configurable:!0}),er.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},er.prototype.getIdentifier=function(){return this.identifier};var Zt,Yt=er;function er(){return null!==Zt&&Zt.apply(this,arguments)||this}t(nr,tr=ae),Object.defineProperty(nr.prototype,"type",{get:function(){return ne.Namespace},enumerable:!1,configurable:!0});var tr,rr=nr;function nr(e,t){return tr.call(this,e,t)||this}t(sr,ir=ke),Object.defineProperty(sr.prototype,"type",{get:function(){return ne.Media},enumerable:!1,configurable:!0});var ir,or=sr;function sr(e,t){return ir.call(this,e,t)||this}t(ur,ar=ke),Object.defineProperty(ur.prototype,"type",{get:function(){return ne.Supports},enumerable:!1,configurable:!0});var ar,cr=ur;function ur(e,t){return ar.call(this,e,t)||this}t(pr,hr=ke),Object.defineProperty(pr.prototype,"type",{get:function(){return ne.Document},enumerable:!1,configurable:!0});var hr,lr=pr;function pr(e,t){return hr.call(this,e,t)||this}t(mr,fr=ae),mr.prototype.getMediums=function(){return this.mediums||(this.mediums=new he(this)),this.mediums};var fr,dr=mr;function mr(e,t){return fr.call(this,e,t)||this}t(br,gr=ae),Object.defineProperty(br.prototype,"type",{get:function(){return ne.MediaQuery},enumerable:!1,configurable:!0});var gr,yr=br;function br(e,t){return gr.call(this,e,t)||this}t(xr,vr=ae),Object.defineProperty(xr.prototype,"type",{get:function(){return ne.SupportsCondition},enumerable:!1,configurable:!0});var vr,Cr=xr;function xr(e,t){return vr.call(this,e,t)||this}t(wr,kr=ke),Object.defineProperty(wr.prototype,"type",{get:function(){return ne.Page},enumerable:!1,configurable:!0});var kr,_r=wr;function wr(e,t){return kr.call(this,e,t)||this}t(Er,Pr=ke),Object.defineProperty(Er.prototype,"type",{get:function(){return ne.PageBoxMarginBox},enumerable:!1,configurable:!0});var Pr,Sr=Er;function Er(e,t){return Pr.call(this,e,t)||this}t(Ar,Rr=ae),Object.defineProperty(Ar.prototype,"type",{get:function(){return ne.Expression},enumerable:!1,configurable:!0});var Rr,Ir=Ar;function Ar(e,t){return Rr.call(this,e,t)||this}t(Fr,Dr=ae),Object.defineProperty(Fr.prototype,"type",{get:function(){return ne.BinaryExpression},enumerable:!1,configurable:!0}),Fr.prototype.setLeft=function(e){return this.setNode("left",e)},Fr.prototype.getLeft=function(){return this.left},Fr.prototype.setRight=function(e){return this.setNode("right",e)},Fr.prototype.getRight=function(){return this.right},Fr.prototype.setOperator=function(e){return this.setNode("operator",e)},Fr.prototype.getOperator=function(){return this.operator};var Dr,Tr=Fr;function Fr(e,t){return Dr.call(this,e,t)||this}t(Lr,Or=ae),Object.defineProperty(Lr.prototype,"type",{get:function(){return ne.Term},enumerable:!1,configurable:!0}),Lr.prototype.setOperator=function(e){return this.setNode("operator",e)},Lr.prototype.getOperator=function(){return this.operator},Lr.prototype.setExpression=function(e){return this.setNode("expression",e)},Lr.prototype.getExpression=function(){return this.expression};var Or,Mr=Lr;function Lr(e,t){return Or.call(this,e,t)||this}t(jr,Vr=ae),Object.defineProperty(jr.prototype,"type",{get:function(){return ne.AttributeSelector},enumerable:!1,configurable:!0}),jr.prototype.setNamespacePrefix=function(e){return this.setNode("namespacePrefix",e)},jr.prototype.getNamespacePrefix=function(){return this.namespacePrefix},jr.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},jr.prototype.getIdentifier=function(){return this.identifier},jr.prototype.setOperator=function(e){return this.setNode("operator",e)},jr.prototype.getOperator=function(){return this.operator},jr.prototype.setValue=function(e){return this.setNode("value",e)},jr.prototype.getValue=function(){return this.value};var Vr,Nr,$r=jr;function jr(e,t){return Vr.call(this,e,t)||this}function Br(e,t){return Nr.call(this,e,t)||this}t(Br,Nr=ae),Object.defineProperty(Br.prototype,"type",{get:function(){return ne.Operator},enumerable:!1,configurable:!0}),t(Kr,Ur=ae),Object.defineProperty(Kr.prototype,"type",{get:function(){return ne.HexColorValue},enumerable:!1,configurable:!0});var Ur,Wr=Kr;function Kr(e,t){return Ur.call(this,e,t)||this}var qr,zr=".".charCodeAt(0),Hr="0".charCodeAt(0),Gr="9".charCodeAt(0),Qr=(t(Jr,qr=ae),Object.defineProperty(Jr.prototype,"type",{get:function(){return ne.NumericValue},enumerable:!1,configurable:!0}),Jr.prototype.getValue=function(){for(var e,t=this.getText(),r=0,n=0,i=t.length;n<i&&(e=t.charCodeAt(n),Hr<=e&&e<=Gr||e===zr);n++)r+=1;return{value:t.substring(0,r),unit:r<t.length?t.substring(r):void 0}},Jr);function Jr(e,t){return qr.call(this,e,t)||this}t(Yr,Xr=Le),Object.defineProperty(Yr.prototype,"type",{get:function(){return ne.VariableDeclaration},enumerable:!1,configurable:!0}),Yr.prototype.setVariable=function(e){return!!e&&(e.attachTo(this),this.variable=e,!0)},Yr.prototype.getVariable=function(){return this.variable},Yr.prototype.getName=function(){return this.variable?this.variable.getName():""},Yr.prototype.setValue=function(e){return!!e&&(e.attachTo(this),this.value=e,!0)},Yr.prototype.getValue=function(){return this.value};var Xr,Zr=Yr;function Yr(e,t){return e=Xr.call(this,e,t)||this,e.variable=null,e.value=null,e.needsSemicolon=!0,e}t(rn,en=ae),Object.defineProperty(rn.prototype,"type",{get:function(){return ne.Interpolation},enumerable:!1,configurable:!0});var en,tn=rn;function rn(e,t){return en.call(this,e,t)||this}t(sn,nn=ae),Object.defineProperty(sn.prototype,"type",{get:function(){return ne.VariableName},enumerable:!1,configurable:!0}),sn.prototype.getName=function(){return this.getText()};var nn,on=sn;function sn(e,t){return nn.call(this,e,t)||this}t(un,an=ae),Object.defineProperty(un.prototype,"type",{get:function(){return ne.ExtendsReference},enumerable:!1,configurable:!0}),un.prototype.getSelectors=function(){return this.selectors||(this.selectors=new he(this)),this.selectors};var an,cn=un;function un(e,t){return an.call(this,e,t)||this}t(pn,hn=ae),Object.defineProperty(pn.prototype,"type",{get:function(){return ne.MixinContentReference},enumerable:!1,configurable:!0}),pn.prototype.getArguments=function(){return this.arguments||(this.arguments=new he(this)),this.arguments};var hn,ln=pn;function pn(e,t){return hn.call(this,e,t)||this}t(mn,fn=ke),Object.defineProperty(mn.prototype,"type",{get:function(){return ne.MixinContentReference},enumerable:!1,configurable:!0}),mn.prototype.getParameters=function(){return this.parameters||(this.parameters=new he(this)),this.parameters};var fn,dn=mn;function mn(e,t){return fn.call(this,e,t)||this}t(bn,gn=ae),Object.defineProperty(bn.prototype,"type",{get:function(){return ne.MixinReference},enumerable:!1,configurable:!0}),bn.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new he(this)),this.namespaces},bn.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},bn.prototype.getIdentifier=function(){return this.identifier},bn.prototype.getName=function(){return this.identifier?this.identifier.getText():""},bn.prototype.getArguments=function(){return this.arguments||(this.arguments=new he(this)),this.arguments},bn.prototype.setContent=function(e){return this.setNode("content",e)},bn.prototype.getContent=function(){return this.content};var gn,yn=bn;function bn(e,t){return gn.call(this,e,t)||this}t(xn,vn=ke),Object.defineProperty(xn.prototype,"type",{get:function(){return ne.MixinDeclaration},enumerable:!1,configurable:!0}),xn.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},xn.prototype.getIdentifier=function(){return this.identifier},xn.prototype.getName=function(){return this.identifier?this.identifier.getText():""},xn.prototype.getParameters=function(){return this.parameters||(this.parameters=new he(this)),this.parameters},xn.prototype.setGuard=function(e){return e&&(e.attachTo(this),this.guard=e),!1};var vn,Cn=xn;function xn(e,t){return vn.call(this,e,t)||this}t(wn,kn=ke),Object.defineProperty(wn.prototype,"type",{get:function(){return ne.UnknownAtRule},enumerable:!1,configurable:!0}),wn.prototype.setAtRuleName=function(e){this.atRuleName=e},wn.prototype.getAtRuleName=function(){return this.atRuleName};var kn,_n=wn;function wn(e,t){return kn.call(this,e,t)||this}t(En,Pn=ae),Object.defineProperty(En.prototype,"type",{get:function(){return ne.ListEntry},enumerable:!1,configurable:!0}),En.prototype.setKey=function(e){return this.setNode("key",e,0)},En.prototype.setValue=function(e){return this.setNode("value",e,1)};var Pn,Sn=En;function En(){return null!==Pn&&Pn.apply(this,arguments)||this}t(An,Rn=ae),An.prototype.getConditions=function(){return this.conditions||(this.conditions=new he(this)),this.conditions};var Rn,In=An;function An(){return null!==Rn&&Rn.apply(this,arguments)||this}t(Fn,Dn=ae),Fn.prototype.setVariable=function(e){return this.setNode("variable",e)};var Dn,Tn=Fn;function Fn(){return null!==Dn&&Dn.apply(this,arguments)||this}t(Vn,On=ae),Object.defineProperty(Vn.prototype,"type",{get:function(){return ne.Module},enumerable:!1,configurable:!0}),Vn.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Vn.prototype.getIdentifier=function(){return this.identifier};var On,Mn,Ln=Vn;function Vn(){return null!==On&&On.apply(this,arguments)||this}(q=Mn=Mn||{})[q.Ignore=1]="Ignore",q[q.Warning=2]="Warning",q[q.Error=4]="Error",$n.prototype.getRule=function(){return this.rule},$n.prototype.getLevel=function(){return this.level},$n.prototype.getOffset=function(){return this.offset},$n.prototype.getLength=function(){return this.length},$n.prototype.getNode=function(){return this.node},$n.prototype.getMessage=function(){return this.message};var Nn=$n;function $n(e,t,r,n,i,o){void 0===i&&(i=e.offset),void 0===o&&(o=e.length),this.node=e,this.rule=t,this.level=r,this.message=n||t.message,this.offset=i,this.length=o}function jn(e,t){for(var r,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return t=t,0===(r=n).length?t:t.replace(/\{(\d+)\}/g,(function(e,t){return t=t[0],void 0!==r[t]?r[t]:e}))}K=jn,z=function(e,t){this.id=e,this.message=t};var Bn={NumberExpected:new z("css-numberexpected",K("expected.number","number expected")),ConditionExpected:new z("css-conditionexpected",K("expected.condt","condition expected")),RuleOrSelectorExpected:new z("css-ruleorselectorexpected",K("expected.ruleorselector","at-rule or selector expected")),DotExpected:new z("css-dotexpected",K("expected.dot","dot expected")),ColonExpected:new z("css-colonexpected",K("expected.colon","colon expected")),SemiColonExpected:new z("css-semicolonexpected",K("expected.semicolon","semi-colon expected")),TermExpected:new z("css-termexpected",K("expected.term","term expected")),ExpressionExpected:new z("css-expressionexpected",K("expected.expression","expression expected")),OperatorExpected:new z("css-operatorexpected",K("expected.operator","operator expected")),IdentifierExpected:new z("css-identifierexpected",K("expected.ident","identifier expected")),PercentageExpected:new z("css-percentageexpected",K("expected.percentage","percentage expected")),URIOrStringExpected:new z("css-uriorstringexpected",K("expected.uriorstring","uri or string expected")),URIExpected:new z("css-uriexpected",K("expected.uri","URI expected")),VariableNameExpected:new z("css-varnameexpected",K("expected.varname","variable name expected")),VariableValueExpected:new z("css-varvalueexpected",K("expected.varvalue","variable value expected")),PropertyValueExpected:new z("css-propertyvalueexpected",K("expected.propvalue","property value expected")),LeftCurlyExpected:new z("css-lcurlyexpected",K("expected.lcurly","{ expected")),RightCurlyExpected:new z("css-rcurlyexpected",K("expected.rcurly","} expected")),LeftSquareBracketExpected:new z("css-rbracketexpected",K("expected.lsquare","[ expected")),RightSquareBracketExpected:new z("css-lbracketexpected",K("expected.rsquare","] expected")),LeftParenthesisExpected:new z("css-lparentexpected",K("expected.lparen","( expected")),RightParenthesisExpected:new z("css-rparentexpected",K("expected.rparent",") expected")),CommaExpected:new z("css-commaexpected",K("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new z("css-pagedirordeclexpected",K("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new z("css-unknownatrule",K("unknown.atrule","at-rule unknown")),UnknownKeyword:new z("css-unknownkeyword",K("unknown.keyword","unknown keyword")),SelectorExpected:new z("css-selectorexpected",K("expected.selector","selector expected")),StringLiteralExpected:new z("css-stringliteralexpected",K("expected.stringliteral","string literal expected")),WhitespaceExpected:new z("css-whitespaceexpected",K("expected.whitespace","whitespace expected")),MediaQueryExpected:new z("css-mediaqueryexpected",K("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new z("css-idorwildcardexpected",K("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new z("css-wildcardexpected",K("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new z("css-idorvarexpected",K("expected.idorvar","identifier or variable expected"))},Un={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Wn(e){switch(e){case"experimental":return"⚠️ Property is experimental. Be cautious when using it.️\n\n";case"nonstandard":return"🚨️ Property is nonstandard. Avoid using it.\n\n";case"obsolete":return"🚨️️️ Property is obsolete. Avoid using it.\n\n";default:return""}}function Kn(e,t,r){if(t=t?{kind:"markdown",value:function(e,t){if(!e.description||""===e.description)return"";var r,n="";return!1!==(null==t?void 0:t.documentation)&&(e.status&&(n+=Wn(e.status)),r="string"==typeof e.description?e.description:e.description.value,n+=qn(r),(r=zn(e.browsers))&&(n+="\n\n("+qn(r)+")"),"syntax"in e)&&e.syntax&&(n+="\n\nSyntax: "+qn(e.syntax)),e.references&&0<e.references.length&&!1!==(null==t?void 0:t.references)&&(0<n.length&&(n+="\n\n"),n+=e.references.map((function(e){return"["+e.name+"]("+e.url+")"})).join(" | ")),n}(e,r)}:{kind:"plaintext",value:function(e,t){if(!e.description||""===e.description)return"";if("string"!=typeof e.description)return e.description.value;var r,n="";return!1!==(null==t?void 0:t.documentation)&&(e.status&&(n+=Wn(e.status)),n+=e.description,(r=zn(e.browsers))&&(n+="\n("+r+")"),"syntax"in e)&&(n+="\n\nSyntax: "+e.syntax),e.references&&0<e.references.length&&!1!==(null==t?void 0:t.references)&&(0<n.length&&(n+="\n\n"),n+=e.references.map((function(e){return e.name+": "+e.url})).join(" | ")),n}(e,r)},""!==t.value)return t}function qn(e){return(e=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"<").replace(/>/g,">")}function zn(e){return 0===(e=void 0===e?[]:e).length?null:e.map((function(e){var t="",r=(e=e.match(/([A-Z]+)(\d+)?/),e[1]);e=e[2];return r in Un&&(t+=Un[r]),e&&(t+=" "+e),t})).join(", ")}B=jn;var Hn=[{func:"rgb($red, $green, $blue)",desc:B("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:B("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:B("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:B("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],Gn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Qn={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function Jn(e,t){if(e=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/),e&&(e[2]&&(t=100),e=parseFloat(e[1])/t,0<=e&&e<=1))return e;throw new Error}function Xn(e){return e=e.getName(),!!e&&/^(rgb|rgba|hsl|hsla)$/gi.test(e)}function Zn(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),97<=e&&e<=102?e-97+10:0)}function Yn(e){if("#"===e[0])switch(e.length){case 4:return{red:17*Zn(e.charCodeAt(1))/255,green:17*Zn(e.charCodeAt(2))/255,blue:17*Zn(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Zn(e.charCodeAt(1))/255,green:17*Zn(e.charCodeAt(2))/255,blue:17*Zn(e.charCodeAt(3))/255,alpha:17*Zn(e.charCodeAt(4))/255};case 7:return{red:(16*Zn(e.charCodeAt(1))+Zn(e.charCodeAt(2)))/255,green:(16*Zn(e.charCodeAt(3))+Zn(e.charCodeAt(4)))/255,blue:(16*Zn(e.charCodeAt(5))+Zn(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Zn(e.charCodeAt(1))+Zn(e.charCodeAt(2)))/255,green:(16*Zn(e.charCodeAt(3))+Zn(e.charCodeAt(4)))/255,blue:(16*Zn(e.charCodeAt(5))+Zn(e.charCodeAt(6)))/255,alpha:(16*Zn(e.charCodeAt(7))+Zn(e.charCodeAt(8)))/255}}return null}function ei(e){var t,r,n,i,o;if(e.type===ne.HexColorValue)return Yn(e.getText());if(e.type===ne.Function){var s=e,a=s.getName();s=s.getArguments().getChildren();if(!a||s.length<3||4<s.length)return null;try{var c,u=4===s.length?Jn(s[3],1):1;if("rgb"===a||"rgba"===a)return{red:Jn(s[0],255),green:Jn(s[1],255),blue:Jn(s[2],255),alpha:u};if("hsl"===a||"hsla"===a)return h=function(e){if((e=e.getText()).match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/))return parseFloat(e)%360;throw new Error}(s[0]),c=Jn(s[1],100),l=Jn(s[2],100),t=h,n=l,void 0===(i=u)&&(i=1),t/=60,0===(r=c)?{red:n,green:n,blue:n,alpha:i}:{red:(o=function(e,t,r){for(;r<0;)r+=6;for(;6<=r;)r-=6;return r<1?(t-e)*r+e:r<3?t:r<4?(t-e)*(4-r)+e:e})(r=2*n-(n=n<=.5?n*(r+1):n+r-n*r),n,t+2),green:o(r,n,t),blue:o(r,n,t-2),alpha:i}}catch(e){}}else if(e.type===ne.Identifier){if(e.parent&&e.parent.type!==ne.Term)return null;if(a=e.parent,a&&a.parent&&a.parent.type===ne.BinaryExpression&&(s=a.parent,s.parent&&s.parent.type===ne.ListEntry&&s.parent.key===s))return null;var h=e.getText().toLowerCase();if("none"===h)return null;var l=Gn[h];if(l)return Yn(l)}return null}var ti={bottom:"Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},ri={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},ni={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},ii=["medium","thick","thin"],oi={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},si={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},ai={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},ci={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position."},ui={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},hi={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},li={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},pi=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],fi=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],di=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function mi(e){return void 0!==e}function gi(e){void 0===e&&(e=new X),this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:n.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}gi.prototype.peekIdent=function(e){return n.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()},gi.prototype.peekKeyword=function(e){return n.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()},gi.prototype.peekDelim=function(e){return n.Delim===this.token.type&&e===this.token.text},gi.prototype.peek=function(e){return e===this.token.type},gi.prototype.peekOne=function(e){return-1!==e.indexOf(this.token.type)},gi.prototype.peekRegExp=function(e,t){return e===this.token.type&&t.test(this.token.text)},gi.prototype.hasWhitespace=function(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset},gi.prototype.consumeToken=function(){this.prevToken=this.token,this.token=this.scanner.scan()},gi.prototype.mark=function(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}},gi.prototype.restoreAtMark=function(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)},gi.prototype.try=function(e){var t=this.mark();e=e();return e||(this.restoreAtMark(t),null)},gi.prototype.acceptOneKeyword=function(e){if(n.AtKeyword===this.token.type)for(var t=0,r=e;t<r.length;t++){var i=r[t];if(i.length===this.token.text.length&&i===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1},gi.prototype.accept=function(e){return e===this.token.type&&(this.consumeToken(),!0)},gi.prototype.acceptIdent=function(e){return!!this.peekIdent(e)&&(this.consumeToken(),!0)},gi.prototype.acceptKeyword=function(e){return!!this.peekKeyword(e)&&(this.consumeToken(),!0)},gi.prototype.acceptDelim=function(e){return!!this.peekDelim(e)&&(this.consumeToken(),!0)},gi.prototype.acceptRegexp=function(e){return!!e.test(this.token.text)&&(this.consumeToken(),!0)},gi.prototype._parseRegexp=function(e){for(var t=this.createNode(ne.Identifier);this.acceptRegexp(e););return this.finish(t)},gi.prototype.acceptUnquotedString=function(){var e=this.scanner.pos(),t=(this.scanner.goBackTo(this.token.offset),this.scanner.scanUnquotedString());return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)},gi.prototype.resync=function(e,t){for(;;){if(e&&-1!==e.indexOf(this.token.type))return this.consumeToken(),!0;if(t&&-1!==t.indexOf(this.token.type))return!0;if(this.token.type===n.EOF)return!1;this.token=this.scanner.scan()}},gi.prototype.createNode=function(e){return new ae(this.token.offset,this.token.len,e)},gi.prototype.create=function(e){return new e(this.token.offset,this.token.len)},gi.prototype.finish=function(e,t,r,n){return e instanceof he||(t&&this.markError(e,t,r,n),this.prevToken&&(t=this.prevToken.offset+this.prevToken.len,e.length=t>e.offset?t-e.offset:0)),e},gi.prototype.markError=function(e,t,r,n){this.token!==this.lastErrorToken&&(e.addIssue(new Nn(e,t,Mn.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||n)&&this.resync(r,n)},gi.prototype.parseStylesheet=function(e){var t=e.version,r=e.getText();return this.internalParse(r,this._parseStylesheet,(function(n,i){if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(n,i)}))},gi.prototype.internalParse=function(e,t,r){return this.scanner.setSource(e),this.token=this.scanner.scan(),t=t.bind(this)(),t&&(t.textProvider=r||function(t,r){return e.substr(t,r)}),t},gi.prototype._parseStylesheet=function(){for(var e=this.create(ge);e.addChild(this._parseStylesheetStart()););var t=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),t=!(r=!0),this.peek(n.EOF)||!this._needsSemicolonAfter(i)||this.accept(n.SemiColon)||this.markError(e,Bn.SemiColonExpected));this.accept(n.SemiColon)||this.accept(n.CDO)||this.accept(n.CDC);)t=!(r=!0)}while(r)}while(!this.peek(n.EOF)&&(t||(this.peek(n.AtKeyword)?this.markError(e,Bn.UnknownAtRule):this.markError(e,Bn.RuleOrSelectorExpected),t=!0),this.consumeToken(),!this.peek(n.EOF)));return this.finish(e)},gi.prototype._parseStylesheetStart=function(){return this._parseCharset()},gi.prototype._parseStylesheetStatement=function(e){return void 0===e&&(e=!1),this.peek(n.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},gi.prototype._parseStylesheetAtStatement=function(e){return void 0===e&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},gi.prototype._tryParseRuleset=function(e){var t=this.mark();if(this._parseSelector(e)){for(;this.accept(n.Comma)&&this._parseSelector(e););if(this.accept(n.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null},gi.prototype._parseRuleset=function(e){void 0===e&&(e=!1);var t=this.create(Pe),r=t.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(n.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(t,Bn.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},gi.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},gi.prototype._parseRuleSetDeclaration=function(){return this.peek(n.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},gi.prototype._needsSemicolonAfter=function(e){switch(e.type){case ne.Keyframe:case ne.ViewPort:case ne.Media:case ne.Ruleset:case ne.Namespace:case ne.If:case ne.For:case ne.Each:case ne.While:case ne.MixinDeclaration:case ne.FunctionDeclaration:case ne.MixinContentDeclaration:return!1;case ne.ExtendsReference:case ne.MixinContentReference:case ne.ReturnStatement:case ne.MediaQuery:case ne.Debug:case ne.Import:case ne.AtApplyRule:case ne.CustomPropertyDeclaration:return!0;case ne.VariableDeclaration:return e.needsSemicolon;case ne.MixinReference:return!e.getContent();case ne.Declaration:return!e.getNestedProperties()}return!1},gi.prototype._parseDeclarations=function(e){var t=this.create(ve);if(!this.accept(n.CurlyL))return null;for(var r=e();t.addChild(r)&&!this.peek(n.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(n.SemiColon))return this.finish(t,Bn.SemiColonExpected,[n.SemiColon,n.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===n.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(n.SemiColon););r=e()}return this.accept(n.CurlyR)?this.finish(t):this.finish(t,Bn.RightCurlyExpected,[n.CurlyR,n.SemiColon])},gi.prototype._parseBody=function(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,Bn.LeftCurlyExpected,[n.CurlyR,n.SemiColon])},gi.prototype._parseSelector=function(e){var t=this.create(Re),r=!1;for(e&&(r=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)r=!0,t.addChild(this._parseCombinator());return r?this.finish(t):null},gi.prototype._parseDeclaration=function(e){var t=this._tryParseCustomPropertyDeclaration(e);return t||((t=this.create(Ue)).setProperty(this._parseProperty())?this.accept(n.Colon)?(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseExpr())?(t.addChild(this._parsePrio()),this.peek(n.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):this.finish(t,Bn.PropertyValueExpected)):this.finish(t,Bn.ColonExpected,[n.Colon],e||[n.SemiColon]):null)},gi.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(n.Ident,/^--/))return null;var t=this.create(qe);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(n.Colon))return this.finish(t,Bn.ColonExpected,[n.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(n.CurlyL)){var i=this.create($e),o=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(o)&&!o.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(n.SemiColon)))return this.finish(i),t.setPropertySet(i),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(r)}return o=this._parseExpr(),o&&!o.isErroneous(!0)&&(this._parsePrio(),this.peekOne(e||[n.SemiColon]))?(t.setValue(o),t.semicolonPosition=this.token.offset,this.finish(t)):(this.restoreAtMark(r),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),mi(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,Bn.PropertyValueExpected):this.finish(t))},gi.prototype._parseCustomPropertyValue=function(e){function t(){return 0===s&&0===a&&0===c}function r(){return-1!==e.indexOf(i.token.type)}var i=this,o=(void 0===e&&(e=[n.CurlyR]),this.create(ae)),s=0,a=0,c=0;e:for(;;){switch(this.token.type){case n.SemiColon:case n.Exclamation:if(t())break e;break;case n.CurlyL:s++;break;case n.CurlyR:if(--s<0){if(r()&&0===a&&0===c)break e;return this.finish(o,Bn.LeftCurlyExpected)}break;case n.ParenthesisL:a++;break;case n.ParenthesisR:if(--a<0){if(r()&&0===c&&0===s)break e;return this.finish(o,Bn.LeftParenthesisExpected)}break;case n.BracketL:c++;break;case n.BracketR:if(--c<0)return this.finish(o,Bn.LeftSquareBracketExpected);break;case n.BadString:break e;case n.EOF:var u=Bn.RightCurlyExpected;return 0<c?u=Bn.RightSquareBracketExpected:0<a&&(u=Bn.RightParenthesisExpected),this.finish(o,u)}this.consumeToken()}return this.finish(o)},gi.prototype._tryToParseDeclaration=function(e){var t=this.mark();return this._parseProperty()&&this.accept(n.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)},gi.prototype._parseProperty=function(){var e=this.create(Ge),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},gi.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},gi.prototype._parseCharset=function(){var e;return this.peek(n.Charset)?(e=this.create(ae),this.consumeToken(),this.accept(n.String)?this.accept(n.SemiColon)?this.finish(e):this.finish(e,Bn.SemiColonExpected):this.finish(e,Bn.IdentifierExpected)):null},gi.prototype._parseImport=function(){var e;return this.peekKeyword("@import")?(e=this.create(Bt),this.consumeToken(),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(n.SemiColon)||this.peek(n.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e)):this.finish(e,Bn.URIOrStringExpected)):null},gi.prototype._parseNamespace=function(){var e;return this.peekKeyword("@namespace")?(e=this.create(rr),this.consumeToken(),e.addChild(this._parseURILiteral())||(e.addChild(this._parseIdent()),e.addChild(this._parseURILiteral()))||e.addChild(this._parseStringLiteral())?this.accept(n.SemiColon)?this.finish(e):this.finish(e,Bn.SemiColonExpected):this.finish(e,Bn.URIExpected,[n.SemiColon])):null},gi.prototype._parseFontFace=function(){var e;return this.peekKeyword("@font-face")?(e=this.create(It),this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))):null},gi.prototype._parseViewPort=function(){var e;return this.peekKeyword("@-ms-viewport")||this.peekKeyword("@-o-viewport")||this.peekKeyword("@viewport")?(e=this.create(St),this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))):null},gi.prototype._parseKeyframe=function(){var e,t;return this.peekRegExp(n.AtKeyword,this.keyframeRegex)?(e=this.create(Mt),t=this.create(ae),this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,Bn.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,Bn.IdentifierExpected,[n.CurlyR])):null},gi.prototype._parseKeyframeIdent=function(){return this._parseIdent([ie.Keyframe])},gi.prototype._parseKeyframeSelector=function(){var e=this.create(Nt);if(!e.addChild(this._parseIdent())&&!this.accept(n.Percentage))return null;for(;this.accept(n.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(n.Percentage))return this.finish(e,Bn.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},gi.prototype._tryParseKeyframeSelector=function(){var e=this.create(Nt),t=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(n.Percentage))return null;for(;this.accept(n.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(n.Percentage))return this.restoreAtMark(t),null;return this.peek(n.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)},gi.prototype._parseSupports=function(e){var t;return void 0===e&&(e=!1),this.peekKeyword("@supports")?(t=this.create(cr),this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))):null},gi.prototype._parseSupportsDeclaration=function(e){return(e=void 0!==e&&e)?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},gi.prototype._parseSupportsCondition=function(){var e=this.create(Cr);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(n.Ident,/^(and|or)$/i))for(var t=this.token.text.toLowerCase();this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},gi.prototype._parseSupportsConditionInParens=function(){var e=this.create(Cr);if(this.accept(n.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),e.addChild(this._tryToParseDeclaration([n.ParenthesisR]))||this._parseSupportsCondition()?this.accept(n.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,Bn.RightParenthesisExpected,[n.ParenthesisR],[]):this.finish(e,Bn.ConditionExpected);if(this.peek(n.Ident)){var t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(n.ParenthesisL)){for(var r=1;this.token.type!==n.EOF&&0!==r;)this.token.type===n.ParenthesisL?r++:this.token.type===n.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}this.restoreAtMark(t)}return this.finish(e,Bn.LeftParenthesisExpected,[],[n.ParenthesisL])},gi.prototype._parseMediaDeclaration=function(e){return(e=void 0!==e&&e)?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},gi.prototype._parseMedia=function(e){var t;return void 0===e&&(e=!1),this.peekKeyword("@media")?(t=this.create(or),this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,Bn.MediaQueryExpected)):null},gi.prototype._parseMediaQueryList=function(){var e=this.create(dr);if(!e.addChild(this._parseMediaQuery([n.CurlyL])))return this.finish(e,Bn.MediaQueryExpected);for(;this.accept(n.Comma);)if(!e.addChild(this._parseMediaQuery([n.CurlyL])))return this.finish(e,Bn.MediaQueryExpected);return this.finish(e)},gi.prototype._parseMediaQuery=function(e){var t=this.create(yr),r=!0,i=!1;if(!this.peek(n.ParenthesisL)){if(this.acceptIdent("only")||this.acceptIdent("not"),!t.addChild(this._parseIdent()))return null;i=!0,r=this.acceptIdent("and")}for(;r;){if(t.addChild(this._parseMediaContentStart()));else{if(!this.accept(n.ParenthesisL))return i?this.finish(t,Bn.LeftParenthesisExpected,[],e):null;if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,Bn.IdentifierExpected,[],e);if(this.accept(n.Colon)&&!t.addChild(this._parseExpr()))return this.finish(t,Bn.TermExpected,[],e);if(!this.accept(n.ParenthesisR))return this.finish(t,Bn.RightParenthesisExpected,[],e)}r=this.acceptIdent("and")}return this.finish(t)},gi.prototype._parseMediaContentStart=function(){return null},gi.prototype._parseMediaFeatureName=function(){return this._parseIdent()},gi.prototype._parseMedium=function(){var e=this.create(ae);return e.addChild(this._parseIdent())?this.finish(e):null},gi.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},gi.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(_r);if(this.consumeToken(),e.addChild(this._parsePageSelector()))for(;this.accept(n.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,Bn.IdentifierExpected);return this._parseBody(e,this._parsePageDeclaration.bind(this))},gi.prototype._parsePageMarginBox=function(){var e;return this.peek(n.AtKeyword)?(e=this.create(Sr),this.acceptOneKeyword(di)||this.markError(e,Bn.UnknownAtRule,[],[n.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))):null},gi.prototype._parsePageSelector=function(){var e;return this.peek(n.Ident)||this.peek(n.Colon)?((e=this.create(ae)).addChild(this._parseIdent()),this.accept(n.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,Bn.IdentifierExpected):this.finish(e)):null},gi.prototype._parseDocument=function(){var e;return this.peekKeyword("@-moz-document")?(e=this.create(lr),this.consumeToken(),this.resync([],[n.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))):null},gi.prototype._parseUnknownAtRule=function(){if(!this.peek(n.AtKeyword))return null;var e=this.create(_n),t=(e.addChild(this._parseUnknownAtRuleName()),0),r=0,i=0,o=0;e:for(;;){switch(this.token.type){case n.SemiColon:if(0===r&&0===i&&0===o)break e;break;case n.EOF:return 0<r?this.finish(e,Bn.RightCurlyExpected):0<o?this.finish(e,Bn.RightSquareBracketExpected):0<i?this.finish(e,Bn.RightParenthesisExpected):this.finish(e);case n.CurlyL:t++,r++;break;case n.CurlyR:if(r--,0<t&&0===r){if(this.consumeToken(),0<o)return this.finish(e,Bn.RightSquareBracketExpected);if(0<i)return this.finish(e,Bn.RightParenthesisExpected);break e}if(r<0){if(0===i&&0===o)break e;return this.finish(e,Bn.LeftCurlyExpected)}break;case n.ParenthesisL:i++;break;case n.ParenthesisR:if(--i<0)return this.finish(e,Bn.LeftParenthesisExpected);break;case n.BracketL:o++;break;case n.BracketR:if(--o<0)return this.finish(e,Bn.LeftSquareBracketExpected)}this.consumeToken()}return e},gi.prototype._parseUnknownAtRuleName=function(){var e=this.create(ae);return this.accept(n.AtKeyword)?this.finish(e):e},gi.prototype._parseOperator=function(){var e;return this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(n.Dashmatch)||this.peek(n.Includes)||this.peek(n.SubstringOperator)||this.peek(n.PrefixOperator)||this.peek(n.SuffixOperator)||this.peekDelim("=")?(e=this.createNode(ne.Operator),this.consumeToken(),this.finish(e)):null},gi.prototype._parseUnaryOperator=function(){var e;return this.peekDelim("+")||this.peekDelim("-")?(e=this.create(ae),this.consumeToken(),this.finish(e)):null},gi.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(ae),t=(this.consumeToken(),this.mark());if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=ne.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=ne.SelectorCombinatorParent,this.finish(e)}if(this.peekDelim("+"))return e=this.create(ae),this.consumeToken(),e.type=ne.SelectorCombinatorSibling,this.finish(e);if(this.peekDelim("~"))return e=this.create(ae),this.consumeToken(),e.type=ne.SelectorCombinatorAllSiblings,this.finish(e);if(this.peekDelim("/")){if(e=this.create(ae),this.consumeToken(),t=this.mark(),!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=ne.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null},gi.prototype._parseSimpleSelector=function(){var e=this.create(Te),t=0;for(e.addChild(this._parseElementName())&&t++;(0===t||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return 0<t?this.finish(e):null},gi.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},gi.prototype._parseSelectorIdent=function(){return this._parseIdent()},gi.prototype._parseHash=function(){if(!this.peek(n.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(ne.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,Bn.IdentifierExpected)}else this.consumeToken();return this.finish(e)},gi.prototype._parseClass=function(){var e;return this.peekDelim(".")?(e=this.createNode(ne.ClassSelector),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,Bn.IdentifierExpected):this.finish(e)):null},gi.prototype._parseElementName=function(){var e=this.mark(),t=this.createNode(ne.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),t.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(t):(this.restoreAtMark(e),null)},gi.prototype._parseNamespacePrefix=function(){var e=this.mark(),t=this.createNode(ne.NamespacePrefix);return t.addChild(this._parseIdent())||this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)},gi.prototype._parseAttrib=function(){var e;return this.peek(n.BracketL)?(e=this.create($r),this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(n.BracketR)?this.finish(e):this.finish(e,Bn.RightSquareBracketExpected)):this.finish(e,Bn.IdentifierExpected)):null},gi.prototype._parsePseudo=function(){var e=this,t=this._tryParsePseudoIdentifier();return t?this.hasWhitespace()||!this.accept(n.ParenthesisL)||(t.addChild(this.try((function(){var t=e.create(ae);if(!t.addChild(e._parseSelector(!1)))return null;for(;e.accept(n.Comma)&&t.addChild(e._parseSelector(!1)););return e.peek(n.ParenthesisR)?e.finish(t):null}))||this._parseBinaryExpr()),this.accept(n.ParenthesisR))?this.finish(t):this.finish(t,Bn.RightParenthesisExpected):null},gi.prototype._tryParsePseudoIdentifier=function(){var e,t;return this.peek(n.Colon)?(e=this.mark(),t=this.createNode(ne.PseudoSelector),this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(n.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,Bn.IdentifierExpected):this.finish(t))):null},gi.prototype._tryParsePrio=function(){var e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)},gi.prototype._parsePrio=function(){var e;return this.peek(n.Exclamation)&&(e=this.createNode(ne.Prio),this.accept(n.Exclamation))&&this.acceptIdent("important")?this.finish(e):null},gi.prototype._parseExpr=function(e){void 0===e&&(e=!1);var t=this.create(Ir);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(n.Comma)){if(e)return this.finish(t);this.consumeToken()}if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)},gi.prototype._parseNamedLine=function(){if(!this.peek(n.BracketL))return null;var e=this.createNode(ne.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(n.BracketR)?this.finish(e):this.finish(e,Bn.RightSquareBracketExpected)},gi.prototype._parseBinaryExpr=function(e,t){if(!(r=this.create(Tr)).setLeft(e||this._parseTerm()))return null;if(r.setOperator(t||this._parseOperator())){if(!r.setRight(this._parseTerm()))return this.finish(r,Bn.TermExpected);var r=this.finish(r);e=this._parseOperator();e&&(r=this._parseBinaryExpr(r,e))}return this.finish(r)},gi.prototype._parseTerm=function(){var e=this.create(Mr);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},gi.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},gi.prototype._parseOperation=function(){var e;return this.peek(n.ParenthesisL)?(e=this.create(ae),this.consumeToken(),e.addChild(this._parseExpr()),this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Bn.RightParenthesisExpected)):null},gi.prototype._parseNumeric=function(){var e;return this.peek(n.Num)||this.peek(n.Percentage)||this.peek(n.Resolution)||this.peek(n.Length)||this.peek(n.EMS)||this.peek(n.EXS)||this.peek(n.Angle)||this.peek(n.Time)||this.peek(n.Dimension)||this.peek(n.Freq)?(e=this.create(Qr),this.consumeToken(),this.finish(e)):null},gi.prototype._parseStringLiteral=function(){var e;return this.peek(n.String)||this.peek(n.BadString)?(e=this.createNode(ne.StringLiteral),this.consumeToken(),this.finish(e)):null},gi.prototype._parseURILiteral=function(){var e,t;return this.peekRegExp(n.Ident,/^url(-prefix)?$/i)?(e=this.mark(),t=this.createNode(ne.URILiteral),this.accept(n.Ident),this.hasWhitespace()||!this.peek(n.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(n.ParenthesisR)?this.finish(t):this.finish(t,Bn.RightParenthesisExpected))):null},gi.prototype._parseURLArgument=function(){var e=this.create(ae);return this.accept(n.String)||this.accept(n.BadString)||this.acceptUnquotedString()?this.finish(e):null},gi.prototype._parseIdent=function(e){var t;return this.peek(n.Ident)?(t=this.create(fe),e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(n.Ident,/^--/),this.consumeToken(),this.finish(t)):null},gi.prototype._parseFunction=function(){var e=this.mark(),t=this.create(Ye);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(n.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,Bn.ExpressionExpected);return this.accept(n.ParenthesisR)?this.finish(t):this.finish(t,Bn.RightParenthesisExpected)},gi.prototype._parseFunctionIdentifier=function(){if(!this.peek(n.Ident))return null;var e=this.create(fe);if(e.referenceTypes=[ie.Function],this.acceptIdent("progid")){if(this.accept(n.Colon))for(;this.accept(n.Ident)&&this.acceptDelim("."););}else this.consumeToken();return this.finish(e)},gi.prototype._parseFunctionArgument=function(){var e=this.create(ot);return e.setValue(this._parseExpr(!0))?this.finish(e):null},gi.prototype._parseHexColor=function(){var e;return this.peekRegExp(n.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)?(e=this.create(Wr),this.consumeToken(),this.finish(e)):null},U=gi,yi=function(e,t){return(yi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};W=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}yi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};var yi,bi=(vi.prototype.addChild=function(e){this.children.push(e),e.setParent(this)},vi.prototype.setParent=function(e){this.parent=e},vi.prototype.findScope=function(e,t){return void 0===t&&(t=0),this.offset<=e&&this.offset+this.length>e+t||this.offset===e&&this.length===t?this.findInScope(e,t):null},vi.prototype.findInScope=function(e,t){var r=e+(t=void 0===t?0:t),n=function(e,t){var r=0,n=e.length;if(0===n)return 0;for(;r<n;){var i=Math.floor((r+n)/2);t(e[i])?n=i:r=i+1}return r}(this.children,(function(e){return e.offset>r}));return 0!==n&&(n=this.children[n-1]).offset<=e&&n.offset+n.length>=e+t?n.findInScope(e,t):this},vi.prototype.addSymbol=function(e){this.symbols.push(e)},vi.prototype.getSymbol=function(e,t){for(var r=0;r<this.symbols.length;r++){var n=this.symbols[r];if(n.name===e&&n.type===t)return n}return null},vi.prototype.getSymbols=function(){return this.symbols},vi);function vi(e,t){this.offset=e,this.length=t,this.symbols=[],this.parent=null,this.children=[]}W(ki,Ci=bi);var Ci,xi=ki;function ki(){return Ci.call(this,0,Number.MAX_VALUE)||this}var _i=function(e,t,r,n){this.name=e,this.value=t,this.node=r,this.type=n},wi=(Pi.prototype.addSymbol=function(e,t,r,n){var i;-1!==e.offset&&(i=this.scope.findScope(e.offset,e.length))&&i.addSymbol(new _i(t,r,e,n))},Pi.prototype.addScope=function(e){var t;return-1!==e.offset?!(t=this.scope.findScope(e.offset,e.length))||t.offset===e.offset&&t.length===e.length?t:(e=new bi(e.offset,e.length),t.addChild(e),e):null},Pi.prototype.addSymbolToChildScope=function(e,t,r,n,i){e&&-1!==e.offset&&(e=this.addScope(e))&&e.addSymbol(new _i(r,n,t,i))},Pi.prototype.visitNode=function(e){switch(e.type){case ne.Keyframe:return this.addSymbol(e,e.getName(),void 0,ie.Keyframe),!0;case ne.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case ne.VariableDeclaration:return this.visitVariableDeclarationNode(e);case ne.Ruleset:return this.visitRuleSet(e);case ne.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,ie.Mixin),!0;case ne.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,ie.Function),!0;case ne.FunctionParameter:return this.visitFunctionParameterNode(e);case ne.Declarations:return this.addScope(e),!0;case ne.For:var t=e,r=t.getDeclarations();return r&&t.variable&&this.addSymbolToChildScope(r,t.variable,t.variable.getName(),void 0,ie.Variable),!0;case ne.Each:r=e;var n=r.getDeclarations();if(n)for(var i=0,o=r.getVariables().getChildren();i<o.length;i++){var s=o[i];this.addSymbolToChildScope(n,s,s.getName(),void 0,ie.Variable)}return!0}return!0},Pi.prototype.visitRuleSet=function(e){var t=this.scope.findScope(e.offset,e.length);if(t)for(var r=0,n=e.getSelectors().getChildren();r<n.length;r++){var i=n[r];i instanceof Re&&1===i.getChildren().length&&t.addSymbol(new _i(i.getChild(0).getText(),void 0,i,ie.Rule))}return!0},Pi.prototype.visitVariableDeclarationNode=function(e){var t=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),t,ie.Variable),!0},Pi.prototype.visitFunctionParameterNode=function(e){var t,r=e.getParent().getDeclarations();return r&&(t=(t=e.getDefaultValue())?t.getText():void 0,this.addSymbolToChildScope(r,e,e.getName(),t,ie.Variable)),!0},Pi.prototype.visitCustomPropertyDeclarationNode=function(e){var t=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),t,ie.Variable),!0},Pi.prototype.addCSSVariable=function(e,t,r,n){-1!==e.offset&&this.scope.addSymbol(new _i(t,r,e,n))},Pi);function Pi(e){this.scope=e}qi.prototype.findSymbolsAtOffset=function(e,t){for(var r=this.global.findScope(e,0),n=[],i={};r;){for(var o=r.getSymbols(),s=0;s<o.length;s++){var a=o[s];a.type!==t||i[a.name]||(n.push(a),i[a.name]=!0)}r=r.parent}return n},qi.prototype.internalFindSymbol=function(e,t){var r,n=e;if(e.parent instanceof rt&&e.parent.getParent()instanceof ke&&(n=e.parent.getParent().getDeclarations()),n=e.parent instanceof ot&&e.parent.getParent()instanceof Ye&&(r=e.parent.getParent().getIdentifier())&&(r=this.internalFindSymbol(r,[ie.Function]))?r.node.getDeclarations():n)for(var i=e.getText(),o=this.global.findScope(n.offset,n.length);o;){for(var s=0;s<t.length;s++){var a=t[s];a=o.getSymbol(i,a);if(a)return a}o=o.parent}return null},qi.prototype.evaluateReferenceTypes=function(e){if(e instanceof fe){var t=e.referenceTypes;if(t)return t;if(e.isCustomProperty)return[ie.Variable];if(r=(t=e).findParent(ne.Declaration),n=(n=r&&r.getValue())&&n.encloses(t)?r:null,n&&(t=n.getNonPrefixedPropertyName(),("animation"===t||"animation-name"===t)&&n.getValue()&&n.getValue().offset===e.offset))return[ie.Keyframe]}else if(e instanceof on)return[ie.Variable];var r,n;return e.findAParent(ne.Selector,ne.ExtendsReference)?[ie.Rule]:null},qi.prototype.findSymbolFromNode=function(e){if(!e)return null;for(;e.type===ne.Interpolation;)e=e.getParent();var t=this.evaluateReferenceTypes(e);return t?this.internalFindSymbol(e,t):null},qi.prototype.matchesSymbol=function(e,t){if(!e)return!1;for(;e.type===ne.Interpolation;)e=e.getParent();var r;return!(!e.matches(t.name)||!(r=this.evaluateReferenceTypes(e))||-1===r.indexOf(t.type)||this.internalFindSymbol(e,r)!==t)},qi.prototype.findSymbol=function(e,t,r){for(var n=this.global.findScope(r);n;){var i=n.getSymbol(e,t);if(i)return i;n=n.parent}return null};var Si,Ei,Ri,Ii,Ai,Di,Ti,Fi,Oi,Mi,Li,Vi,Ni,$i,ji,Bi,Ui,Wi,Ki=qi;function qi(e){this.global=new xi,e.acceptVisitor(new wi(this.global))}(t=Si=Si||{}).MIN_VALUE=0,t.MAX_VALUE=2147483647,(q=Ei=Ei||{}).create=function(e,t){return{line:e=e===Number.MAX_VALUE?Si.MAX_VALUE:e,character:t=t===Number.MAX_VALUE?Si.MAX_VALUE:t}},q.is=function(e){return co.objectLiteral(e)&&co.uinteger(e.line)&&co.uinteger(e.character)},(z=Ri=Ri||{}).create=function(e,t,r,n){if(co.uinteger(e)&&co.uinteger(t)&&co.uinteger(r)&&co.uinteger(n))return{start:Ei.create(e,t),end:Ei.create(r,n)};if(Ei.is(e)&&Ei.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+r+", "+n+"]")},z.is=function(e){return co.objectLiteral(e)&&Ei.is(e.start)&&Ei.is(e.end)},(K=Ii=Ii||{}).create=function(e,t){return{uri:e,range:t}},K.is=function(e){return co.defined(e)&&Ri.is(e.range)&&(co.string(e.uri)||co.undefined(e.uri))},(B=Fs=Fs||{}).create=function(e,t,r,n){return{red:e,green:t,blue:r,alpha:n}},B.is=function(e){return co.numberRange(e.red,0,1)&&co.numberRange(e.green,0,1)&&co.numberRange(e.blue,0,1)&&co.numberRange(e.alpha,0,1)},(W=Ai=Ai||{}).Comment="comment",W.Imports="imports",W.Region="region",(t=Di=Di||{}).create=function(e,t){return{location:e,message:t}},t.is=function(e){return co.defined(e)&&Ii.is(e.location)&&co.string(e.message)},(q=Ti=Ti||{}).Error=1,q.Warning=2,q.Information=3,q.Hint=4,(ds||{}).is=function(e){return null!=e&&co.string(e.href)},(z=Fi=Fi||{}).create=function(e,t,r,n,i,o){return e={range:e,message:t},co.defined(r)&&(e.severity=r),co.defined(n)&&(e.code=n),co.defined(i)&&(e.source=i),co.defined(o)&&(e.relatedInformation=o),e},z.is=function(e){var t;return co.defined(e)&&Ri.is(e.range)&&co.string(e.message)&&(co.number(e.severity)||co.undefined(e.severity))&&(co.integer(e.code)||co.string(e.code)||co.undefined(e.code))&&(co.undefined(e.codeDescription)||co.string(null==(t=e.codeDescription)?void 0:t.href))&&(co.string(e.source)||co.undefined(e.source))&&(co.undefined(e.relatedInformation)||co.typedArray(e.relatedInformation,Di.is))},(K=Oi=Oi||{}).create=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return e={title:e,command:t},co.defined(r)&&0<r.length&&(e.arguments=r),e},K.is=function(e){return co.defined(e)&&co.string(e.title)&&co.string(e.command)},(Fs=Mi=Mi||{}).replace=function(e,t){return{range:e,newText:t}},Fs.insert=function(e,t){return{range:{start:e,end:e},newText:t}},Fs.del=function(e){return{range:e,newText:""}},Fs.is=function(e){return co.objectLiteral(e)&&co.string(e.newText)&&Ri.is(e.range)},(B=Li=Li||{}).create=function(e,t,r){return e={label:e},void 0!==t&&(e.needsConfirmation=t),void 0!==r&&(e.description=r),e},B.is=function(e){return void 0!==e&&co.objectLiteral(e)&&co.string(e.label)&&(co.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(co.string(e.description)||void 0===e.description)},(Vi||(Vi={})).is=function(e){return"string"==typeof e},(W=Ni=Ni||{}).replace=function(e,t,r){return{range:e,newText:t,annotationId:r}},W.insert=function(e,t,r){return{range:{start:e,end:e},newText:t,annotationId:r}},W.del=function(e,t){return{range:e,newText:"",annotationId:t}},W.is=function(e){return Mi.is(e)&&(Li.is(e.annotationId)||Vi.is(e.annotationId))},(t=$i=$i||{}).create=function(e,t){return{textDocument:e,edits:t}},t.is=function(e){return co.defined(e)&&Qi.is(e.textDocument)&&Array.isArray(e.edits)},(q=ji=ji||{}).create=function(e,t,r){return e={kind:"create",uri:e},void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(e.options=t),void 0!==r&&(e.annotationId=r),e},q.is=function(e){return e&&"create"===e.kind&&co.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||co.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||co.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||Vi.is(e.annotationId))},(ds=Bi=Bi||{}).create=function(e,t,r,n){return e={kind:"rename",oldUri:e,newUri:t},void 0===r||void 0===r.overwrite&&void 0===r.ignoreIfExists||(e.options=r),void 0!==n&&(e.annotationId=n),e},ds.is=function(e){return e&&"rename"===e.kind&&co.string(e.oldUri)&&co.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||co.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||co.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||Vi.is(e.annotationId))},(z=Ui=Ui||{}).create=function(e,t,r){return e={kind:"delete",uri:e},void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(e.options=t),void 0!==r&&(e.annotationId=r),e},z.is=function(e){return e&&"delete"===e.kind&&co.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||co.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||co.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||Vi.is(e.annotationId))},(Wi||(Wi={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every((function(e){return co.string(e.kind)?ji.is(e)||Bi.is(e)||Ui.is(e):$i.is(e)})))},Hi.prototype.insert=function(e,t,r){var n;r=void 0===r?Mi.insert(e,t):Vi.is(r)?Ni.insert(e,t,n=r):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(r),Ni.insert(e,t,n));if(this.edits.push(r),void 0!==n)return n},Hi.prototype.replace=function(e,t,r){var n;r=void 0===r?Mi.replace(e,t):Vi.is(r)?Ni.replace(e,t,n=r):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(r),Ni.replace(e,t,n));if(this.edits.push(r),void 0!==n)return n},Hi.prototype.delete=function(e,t){var r;t=void 0===t?Mi.del(e):Vi.is(t)?Ni.del(e,r=t):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),Ni.del(e,r));if(this.edits.push(t),void 0!==r)return r},Hi.prototype.add=function(e){this.edits.push(e)},Hi.prototype.all=function(){return this.edits},Hi.prototype.clear=function(){this.edits.splice(0,this.edits.length)},Hi.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")};var zi=Hi;function Hi(e,t){this.edits=e,this.changeAnnotations=t}po.prototype.all=function(){return this._annotations},Object.defineProperty(po.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),po.prototype.manage=function(e,t){var r;if(Vi.is(e)?r=e:(r=this.nextId(),t=e),void 0!==this._annotations[r])throw new Error("Id "+r+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+r);return this._annotations[r]=t,this._size++,r},po.prototype.nextId=function(){return this._counter++,this._counter.toString()};var Gi,Qi,Ji,Xi,Zi,Yi,eo,to,ro,no,io,oo,so,ao,co,uo,ho,lo=po;function po(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}function fo(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e).documentChanges?(this._changeAnnotations=new lo(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){var r;$i.is(e)&&(r=new zi(e.edits,t._changeAnnotations),t._textEditChanges[e.textDocument.uri]=r)}))):e.changes&&Object.keys(e.changes).forEach((function(r){var n=new zi(e.changes[r]);t._textEditChanges[r]=n})):this._workspaceEdit={}}function mo(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}function go(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}function yo(e,t,r){void 0===r&&(r=0);for(var n=t?[r]:[],i=0;i<e.length;i++){var o=e.charCodeAt(i);13!==o&&10!==o||(13===o&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,n.push(r+i+1))}return n}function bo(e){var t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}Object.defineProperty(fo.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),fo.prototype.getTextEditChange=function(e){if(Qi.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};(r=this._textEditChanges[t.uri])||(this._workspaceEdit.documentChanges.push({textDocument:t,edits:n=[]}),r=new zi(n,this._changeAnnotations),this._textEditChanges[t.uri]=r)}else{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r,n;(r=this._textEditChanges[e])||(this._workspaceEdit.changes[e]=n=[],r=new zi(n),this._textEditChanges[e]=r)}return r},fo.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new lo,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},fo.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},fo.prototype.createFile=function(e,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n,i;if(Li.is(t)||Vi.is(t)?n=t:r=t,t=void 0===n?ji.create(e,r):(i=Vi.is(n)?n:this._changeAnnotations.manage(n),ji.create(e,r,i)),this._workspaceEdit.documentChanges.push(t),void 0!==i)return i},fo.prototype.renameFile=function(e,t,r,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o;if(Li.is(r)||Vi.is(r)?i=r:n=r,r=void 0===i?Bi.create(e,t,n):(o=Vi.is(i)?i:this._changeAnnotations.manage(i),Bi.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},fo.prototype.deleteFile=function(e,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n,i;if(Li.is(t)||Vi.is(t)?n=t:r=t,t=void 0===n?Ui.create(e,r):(i=Vi.is(n)?n:this._changeAnnotations.manage(n),Ui.create(e,r,i)),this._workspaceEdit.documentChanges.push(t),void 0!==i)return i},(K=Gi=Gi||{}).create=function(e,t){return{uri:e,version:t}},K.is=function(e){return co.defined(e)&&co.string(e.uri)&&co.integer(e.version)},(Fs=Qi=Qi||{}).create=function(e,t){return{uri:e,version:t}},Fs.is=function(e){return co.defined(e)&&co.string(e.uri)&&(null===e.version||co.integer(e.version))},(B=Ji=Ji||{}).PlainText="plaintext",B.Markdown="markdown",(Xi=Ji=Ji||{}).is=function(e){return e===Xi.PlainText||e===Xi.Markdown},(Zi||(Zi={})).is=function(e){var t=e;return co.objectLiteral(e)&&Ji.is(t.kind)&&co.string(t.value)},(W=Yi=Yi||{}).Text=1,W.Method=2,W.Function=3,W.Constructor=4,W.Field=5,W.Variable=6,W.Class=7,W.Interface=8,W.Module=9,W.Property=10,W.Unit=11,W.Value=12,W.Enum=13,W.Keyword=14,W.Snippet=15,W.Color=16,W.File=17,W.Reference=18,W.Folder=19,W.EnumMember=20,W.Constant=21,W.Struct=22,W.Event=23,W.Operator=24,W.TypeParameter=25,(t=eo=eo||{}).PlainText=1,t.Snippet=2,(to=to||{}).Deprecated=1,(Lo||{}).create=function(e){return{label:e}},(zo||{}).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(q=ro=ro||{}).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},q.is=function(e){return co.string(e)||co.objectLiteral(e)&&co.string(e.language)&&co.string(e.value)},(as||{}).is=function(e){var t=e;return!!t&&co.objectLiteral(t)&&(Zi.is(t.contents)||ro.is(t.contents)||co.typedArray(t.contents,ro.is))&&(void 0===e.range||Ri.is(e.range))},(ps||{}).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(fs||{}).create=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return e={label:e},co.defined(t)&&(e.documentation=t),co.defined(r)?e.parameters=r:e.parameters=[],e},(ds=no=no||{}).Text=1,ds.Read=2,ds.Write=3,(ms||{}).create=function(e,t){return e={range:e},co.number(t)&&(e.kind=t),e},(z=io=io||{}).File=1,z.Module=2,z.Namespace=3,z.Package=4,z.Class=5,z.Method=6,z.Property=7,z.Field=8,z.Constructor=9,z.Enum=10,z.Interface=11,z.Function=12,z.Variable=13,z.Constant=14,z.String=15,z.Number=16,z.Boolean=17,z.Array=18,z.Object=19,z.Key=20,z.Null=21,z.EnumMember=22,z.Struct=23,z.Event=24,z.Operator=25,z.TypeParameter=26,(gs||{}).create=function(e,t,r,n,i){return e={name:e,kind:t,location:{uri:n,range:r}},i&&(e.containerName=i),e},(K=oo=oo||{}).Empty="",K.QuickFix="quickfix",K.Refactor="refactor",K.RefactorExtract="refactor.extract",K.RefactorInline="refactor.inline",K.RefactorRewrite="refactor.rewrite",K.Source="source",K.SourceOrganizeImports="source.organizeImports",K.SourceFixAll="source.fixAll",(Fs=so=so||{}).create=function(e,t,r){e={title:e};var n=!0;return"string"==typeof t?(n=!1,e.kind=t):Oi.is(t)?e.command=t:e.edit=t,n&&void 0!==r&&(e.kind=r),e},Fs.is=function(e){return e&&co.string(e.title)&&(void 0===e.diagnostics||co.typedArray(e.diagnostics,Fi.is))&&(void 0===e.kind||co.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||Oi.is(e.command))&&(void 0===e.isPreferred||co.boolean(e.isPreferred))&&(void 0===e.edit||Wi.is(e.edit))},(ao=qs=qs||{}).create=function(e,t){return{range:e,parent:t}},ao.is=function(e){return void 0!==e&&Ri.is(e.range)&&(void 0===e.parent||ao.is(e.parent))},Object.defineProperty(mo.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(mo.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(mo.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),mo.prototype.getText=function(e){var t;return e?(t=this.offsetAt(e.start),e=this.offsetAt(e.end),this._content.substring(t,e)):this._content},mo.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},mo.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,r=!0,n=0;n<t.length;n++){r&&(e.push(n),r=!1);var i=t.charAt(n);r="\r"===i||"\n"===i;"\r"===i&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}r&&0<t.length&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},mo.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return Ei.create(0,e);for(;r<n;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}var o=r-1;return Ei.create(o,e-t[o])},mo.prototype.offsetAt=function(e){var t,r=this.getLineOffsets();return e.line>=r.length?this._content.length:e.line<0?0:(t=r[e.line],r=e.line+1<r.length?r[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,r),t))},Object.defineProperty(mo.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),B=co=co||{},uo=Object.prototype.toString,B.defined=function(e){return void 0!==e},B.undefined=function(e){return void 0===e},B.boolean=function(e){return!0===e||!1===e},B.string=function(e){return"[object String]"===uo.call(e)},B.number=function(e){return"[object Number]"===uo.call(e)},B.numberRange=function(e,t,r){return"[object Number]"===uo.call(e)&&t<=e&&e<=r},B.integer=function(e){return"[object Number]"===uo.call(e)&&-2147483648<=e&&e<=2147483647},B.uinteger=function(e){return"[object Number]"===uo.call(e)&&0<=e&&e<=2147483647},B.func=function(e){return"[object Function]"===uo.call(e)},B.objectLiteral=function(e){return null!==e&&"object"==typeof e},B.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},Object.defineProperty(go.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(go.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(go.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),go.prototype.getText=function(e){var t;return e?(t=this.offsetAt(e.start),e=this.offsetAt(e.end),this._content.substring(t,e)):this._content},go.prototype.update=function(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(go.isIncremental(i)){var o=bo(i.range),s=this.offsetAt(o.start),a=this.offsetAt(o.end),c=(this._content=this._content.substring(0,s)+i.text+this._content.substring(a,this._content.length),Math.max(o.start.line,0)),u=(o=Math.max(o.end.line,0),this._lineOffsets),h=yo(i.text,!1,s);if(o-c===h.length)for(var l=0,p=h.length;l<p;l++)u[l+c+1]=h[l];else h.length<1e4?u.splice.apply(u,[c+1,o-c].concat(h)):this._lineOffsets=u=u.slice(0,c+1).concat(h,u.slice(o+1));var f=i.text.length-(a-s);if(0!=f)for(l=c+1+h.length,p=u.length;l<p;l++)u[l]=u[l]+f}else{if(!go.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}}this._version=t},go.prototype.getLineOffsets=function(){return void 0===this._lineOffsets&&(this._lineOffsets=yo(this._content,!0)),this._lineOffsets},go.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return{line:0,character:e};for(;r<n;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}var o=r-1;return{line:o,character:e-t[o]}},go.prototype.offsetAt=function(e){var t,r=this.getLineOffsets();return e.line>=r.length?this._content.length:e.line<0?0:(t=r[e.line],r=e.line+1<r.length?r[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,r),t))},Object.defineProperty(go.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),go.isIncremental=function(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)},go.isFull=function(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength},Ji.Markdown,Ji.PlainText,Ji.Markdown,Ji.PlainText,(W=ho=ho||{})[W.Unknown=0]="Unknown",W[W.File=1]="File",W[W.Directory=2]="Directory",W[W.SymbolicLink=64]="SymbolicLink";var vo=r("ed59"),Co=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};function xo(e){return vo.b.dirname(vo.a.parse(e)).toString()}function ko(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return vo.b.joinPath.apply(vo.b,Co([vo.a.parse(e)],t,!1)).toString()}var _o=function(e,t,r,n){return new(r=r||Promise)((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},wo=function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var c=[s,a];if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(6===c[0]&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=t.call(e,o)}catch(a){c=[6,a],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},Po=(So.prototype.onCssURILiteralValue=function(e){this.literalCompletions.push(e)},So.prototype.onCssImportPath=function(e){this.importCompletions.push(e)},So.prototype.computeCompletions=function(e,t){return _o(this,void 0,void 0,(function(){var r,n,i,o,s,a,c,u,h,l,p,f,d,m,g,y;return wo(this,(function(b){switch(b.label){case 0:r={items:[],isIncomplete:!1},n=0,i=this.literalCompletions,b.label=1;case 1:return n<i.length?(o=i[n],s=o.uriValue,"."!==(f=Ro(s))&&".."!==f?[3,2]:(r.isIncomplete=!0,[3,4])):[3,5];case 2:return[4,this.providePathSuggestions(s,o.position,o.range,e,t)];case 3:for(d=b.sent(),a=0,c=d;a<c.length;a++)y=c[a],r.items.push(y);b.label=4;case 4:return n++,[3,1];case 5:u=0,h=this.importCompletions,b.label=6;case 6:return u<h.length?(l=h[u],p=l.pathValue,"."!==(f=Ro(p))&&".."!==f?[3,7]:(r.isIncomplete=!0,[3,9])):[3,10];case 7:return[4,this.providePathSuggestions(p,l.position,l.range,e,t)];case 8:for(d=b.sent(),"scss"===e.languageId&&d.forEach((function(e){Y(e.label,"_")&&ee(e.label,".scss")&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5))})),m=0,g=d;m<g.length;m++)y=g[m],r.items.push(y);b.label=9;case 9:return u++,[3,6];case 10:return[2,r]}}))}))},So.prototype.providePathSuggestions=function(e,t,r,n,i){return _o(this,void 0,void 0,(function(){var o,s,a,c,u,h,l,p,f,d,m;return wo(this,(function(g){switch(g.label){case 0:if(c=Ro(e),l=Y(e,"'")||Y(e,'"'),o=l?c.slice(0,t.character-(r.start.character+1)):c.slice(0,t.character-r.start.character),s=n.uri,l=l?function(e,t,r){return t=Ao(e.start,t),e=Ao(e.end,r),Ri.create(t,e)}(r,1,-1):r,a=function(e,t,r){var n;return e=e.lastIndexOf("/"),t=-1===e?r:(t=t.slice(e+1),e=Ao(r.end,-t.length),t=t.indexOf(" "),n=void 0,n=-1!==t?Ao(e,t):r.end,Ri.create(e,n)),t}(o,c,l),c=o.substring(0,o.lastIndexOf("/")+1),!(u=i.resolveReference(c||".",s)))return[3,4];g.label=1;case 1:return g.trys.push([1,3,,4]),h=[],[4,this.readDirectory(u)];case 2:for(l=g.sent(),p=0,f=l;p<f.length;p++)m=f[p],d=m[0],m=m[1],d.charCodeAt(0)===Eo||m!==ho.Directory&&ko(u,d)===s||h.push((y=d,b=m===ho.Directory,v=a,b?{label:Io(y+="/"),kind:Yi.Folder,textEdit:Mi.replace(v,Io(y)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:Io(y),kind:Yi.File,textEdit:Mi.replace(v,Io(y))}));return[2,h];case 3:return g.sent(),[3,4];case 4:return[2,[]]}var y,b,v}))}))},So);function So(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}var Eo=".".charCodeAt(0);function Ro(e){return Y(e,"'")||Y(e,'"')?e.slice(1,-1):e}function Io(e){return e.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function Ao(e,t){return Ei.create(e.line,e.character+t)}var Do,To=function(e,t,r,n){return new(r=r||Promise)((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},Fo=function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var c=[s,a];if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(6===c[0]&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=t.call(e,o)}catch(a){c=[6,a],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},Oo=jn,Mo=eo.Snippet,Lo=((t=Do=Do||{}).Enums=" ",t.Normal="d",t.VendorPrefixed="x",t.Term="y",t.Variable="z",Vo.prototype.configure=function(e){this.defaultSettings=e},Vo.prototype.getSymbolContext=function(){return this.symbolContext||(this.symbolContext=new Ki(this.styleSheet)),this.symbolContext},Vo.prototype.setCompletionParticipants=function(e){this.completionParticipants=e||[]},Vo.prototype.doComplete2=function(e,t,r,n,i){return void 0===i&&(i=this.defaultSettings),To(this,void 0,void 0,(function(){var o,s,a,c;return Fo(this,(function(u){switch(u.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(e,t,r,i)];o=new Po(this.lsOptions.fileSystemProvider.readDirectory),s=this.completionParticipants,this.completionParticipants=[o].concat(s),a=this.doComplete(e,t,r,i),u.label=1;case 1:return u.trys.push([1,,3,4]),[4,o.computeCompletions(e,n)];case 2:return c=u.sent(),[2,{isIncomplete:a.isIncomplete||c.isIncomplete,items:c.items.concat(a.items)}];case 3:return this.completionParticipants=s,[7];case 4:return[2]}}))}))},Vo.prototype.doComplete=function(e,t,r,n){this.offset=e.offsetAt(t),this.position=t,this.currentWord=function(e,t){for(var r=t-1,n=e.getText();0<=r&&-1===' \t\n\r":{[()]},*>+'.indexOf(n.charAt(r));)r--;return n.substring(r+1,t)}(e,this.offset),this.defaultReplaceRange=Ri.create(Ei.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=r,this.documentSettings=n;try{var i={isIncomplete:!1,items:[]};this.nodePath=se(this.styleSheet,this.offset);for(var o=this.nodePath.length-1;0<=o;o--){var s=this.nodePath[o];if(s instanceof Ge)this.getCompletionsForDeclarationProperty(s.getParent(),i);else if(s instanceof Ir)s.parent instanceof tn?this.getVariableProposals(null,i):this.getCompletionsForExpression(s,i);else if(s instanceof Te){var a=s.findAParent(ne.ExtendsReference,ne.Ruleset);a&&(a.type===ne.ExtendsReference?this.getCompletionsForExtendsReference(a,s,i):this.getCompletionsForSelector(a,a&&a.isNested(),i))}else if(s instanceof ot)this.getCompletionsForFunctionArgument(s,s.getParent(),i);else if(s instanceof ve)this.getCompletionsForDeclarations(s,i);else if(s instanceof Zr)this.getCompletionsForVariableDeclaration(s,i);else if(s instanceof Pe)this.getCompletionsForRuleSet(s,i);else if(s instanceof tn)this.getCompletionsForInterpolation(s,i);else if(s instanceof _t)this.getCompletionsForFunctionDeclaration(s,i);else if(s instanceof yn)this.getCompletionsForMixinReference(s,i);else if(s instanceof Ye)this.getCompletionsForFunctionArgument(null,s,i);else if(s instanceof cr)this.getCompletionsForSupports(s,i);else if(s instanceof Cr)this.getCompletionsForSupportsCondition(s,i);else if(s instanceof cn)this.getCompletionsForExtendsReference(s,null,i);else if(s.type===ne.URILiteral)this.getCompletionForUriLiteralValue(s,i);else if(null===s.parent)this.getCompletionForTopLevel(i);else{if(s.type!==ne.StringLiteral||!this.isImportPathParent(s.parent.type))continue;this.getCompletionForImportPath(s,i)}if(0<i.items.length||this.offset>s.offset)return this.finalize(i)}return this.getCompletionsForStylesheet(i),0===i.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&this.getVariableProposals(null,i),this.finalize(i)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},Vo.prototype.isImportPathParent=function(e){return e===ne.Import},Vo.prototype.finalize=function(e){return e},Vo.prototype.findInNodePath=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this.nodePath.length-1;0<=r;r--){var n=this.nodePath[r];if(-1!==e.indexOf(n.type))return n}return null},Vo.prototype.getCompletionsForDeclarationProperty=function(e,t){return this.getPropertyProposals(e,t)},Vo.prototype.getPropertyProposals=function(e,t){var r=this,n=this.isTriggerPropertyValueCompletionEnabled,i=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach((function(o){var s=!1,a=(e?(a=r.getCompletionRange(e.getProperty()),c=o.name,mi(e.colonPosition)||(c+=": ",s=!0)):(a=r.getCompletionRange(null),c=o.name+": ",s=!0),!e&&i&&(c+="$0;"),e&&!e.semicolonPosition&&i&&r.offset>=r.textDocument.offsetAt(a.end)&&(c+="$0;"),{label:o.name,documentation:Kn(o,r.doesSupportMarkdown()),tags:No(o)?[to.Deprecated]:[],textEdit:Mi.replace(a,c),insertTextFormat:eo.Snippet,kind:Yi.Property});o.restrictions||(s=!1),n&&s&&(a.command={title:"Suggest",command:"editor.action.triggerSuggest"});var c=(255-("number"==typeof o.relevance?Math.min(Math.max(o.relevance,0),99):50)).toString(16);s=Y(o.name,"-")?Do.VendorPrefixed:Do.Normal;a.sortText=s+"_"+c,t.items.push(a)})),this.completionParticipants.forEach((function(e){e.onCssProperty&&e.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})})),t},Object.defineProperty(Vo.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e;return null==(e=null==(e=this.documentSettings)?void 0:e.triggerPropertyValueCompletion)||e},enumerable:!1,configurable:!0}),Object.defineProperty(Vo.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e;return null==(e=null==(e=this.documentSettings)?void 0:e.completePropertyWithSemicolon)||e},enumerable:!1,configurable:!0}),Vo.prototype.getCompletionsForDeclarationValue=function(e,t){for(var r,n,i,o,s=this,a=e.getFullPropertyName(),c=this.cssDataManager.getProperty(a),u=e.getValue()||null;u&&u.hasChildren();)u=u.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach((function(e){e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:a,propertyValue:s.currentWord,range:s.getCompletionRange(u)})})),c){if(c.restrictions)for(var h=0,l=c.restrictions;h<l.length;h++)switch(l[h]){case"color":this.getColorProposals(c,u,t);break;case"position":this.getPositionProposals(c,u,t);break;case"repeat":this.getRepeatStyleProposals(c,u,t);break;case"line-style":this.getLineStyleProposals(c,u,t);break;case"line-width":this.getLineWidthProposals(c,u,t);break;case"geometry-box":this.getGeometryBoxProposals(c,u,t);break;case"box":this.getBoxProposals(c,u,t);break;case"image":this.getImageProposals(c,u,t);break;case"timing-function":this.getTimingFunctionProposals(c,u,t);break;case"shape":this.getBasicShapeProposals(c,u,t)}this.getValueEnumProposals(c,u,t),this.getCSSWideKeywordProposals(c,u,t),this.getUnitProposals(c,u,t)}else{r=this.styleSheet,i=(n=e).getFullPropertyName(),o=new $o,r.accept((function(e){var t;return e instanceof Ue&&e!==n&&(t=(t=e).getFullPropertyName(),i===t)&&(t=e.getValue())&&t.accept(m),!0}));for(var p=0,f=o.getEntries();p<f.length;p++){var d=f[p];t.items.push({label:d,textEdit:Mi.replace(this.getCompletionRange(u),d),kind:Yi.Value})}}function m(e){return(e instanceof fe||e instanceof Qr||e instanceof Wr)&&o.add(e.getText()),!0}return this.getVariableProposals(u,t),this.getTermProposals(c,u,t),t},Vo.prototype.getValueEnumProposals=function(e,t,r){if(e.values)for(var n=0,i=e.values;n<i.length;n++){var o=i[n],s=o.name,a=void 0,c=(ee(s,")")&&-1!==(c=s.lastIndexOf("("))&&(s=s.substr(0,c)+"($1)",a=Mo),Do.Enums);o=(Y(o.name,"-")&&(c+=Do.VendorPrefixed),{label:o.name,documentation:Kn(o,this.doesSupportMarkdown()),tags:No(e)?[to.Deprecated]:[],textEdit:Mi.replace(this.getCompletionRange(t),s),sortText:c,kind:Yi.Value,insertTextFormat:a});r.items.push(o)}return r},Vo.prototype.getCSSWideKeywordProposals=function(e,t,r){for(var n in ai)r.items.push({label:n,documentation:ai[n],textEdit:Mi.replace(this.getCompletionRange(t),n),kind:Yi.Value});return r},Vo.prototype.getCompletionsForInterpolation=function(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t},Vo.prototype.getVariableProposals=function(e,t){for(var r=0,n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Variable);r<n.length;r++){var i=n[r],o=Y(i.name,"--")?"var("+i.name+")":i.name;o={label:i.name,documentation:i.value&&te(i.value),textEdit:Mi.replace(this.getCompletionRange(e),o),kind:Yi.Variable,sortText:Do.Variable};"string"==typeof o.documentation&&Ko(o.documentation)&&(o.kind=Yi.Color),i.node.type===ne.FunctionParameter&&(i=i.node.getParent()).type===ne.MixinDeclaration&&(o.detail=Oo("completion.argument","argument from '{0}'",i.getName())),t.items.push(o)}return t},Vo.prototype.getVariableProposalsForCSSVarFunction=function(e){for(var t=0,r=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Variable).filter((function(e){return Y(e.name,"--")}));t<r.length;t++){var n=r[t];n={label:n.name,documentation:n.value&&te(n.value),textEdit:Mi.replace(this.getCompletionRange(null),n.name),kind:Yi.Variable};"string"==typeof n.documentation&&Ko(n.documentation)&&(n.kind=Yi.Color),e.items.push(n)}return e},Vo.prototype.getUnitProposals=function(e,t,r){var n,i="0";if(0<this.currentWord.length?(n=this.currentWord.match(/^-?\d[\.\d+]*/))&&(i=n[0],r.isIncomplete=i.length===this.currentWord.length):0===this.currentWord.length&&(r.isIncomplete=!0),t&&t.parent&&t.parent.type===ne.Term&&(t=t.getParent()),e.restrictions)for(var o=0,s=e.restrictions;o<s.length;o++){var a=s[o];a=li[a];if(a)for(var c=0,u=a;c<u.length;c++){var h=i+u[c];r.items.push({label:h,textEdit:Mi.replace(this.getCompletionRange(t),h),kind:Yi.Unit})}}return r},Vo.prototype.getCompletionRange=function(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){var t=-1!==e.end?this.textDocument.positionAt(e.end):this.position;e=this.textDocument.positionAt(e.offset);if(e.line===t.line)return Ri.create(e,t)}return this.defaultReplaceRange},Vo.prototype.getColorProposals=function(e,t,r){for(var n in Gn)r.items.push({label:n,documentation:Gn[n],textEdit:Mi.replace(this.getCompletionRange(t),n),kind:Yi.Color});for(var n in Qn)r.items.push({label:n,documentation:Qn[n],textEdit:Mi.replace(this.getCompletionRange(t),n),kind:Yi.Value});var i=new $o;this.styleSheet.acceptVisitor(new Uo(i,this.offset));for(var o=0,s=i.getEntries();o<s.length;o++)n=s[o],r.items.push({label:n,textEdit:Mi.replace(this.getCompletionRange(t),n),kind:Yi.Color});for(var a=this,c=0,u=Hn;c<u.length;c++)!function(e){var n=1,i=e.func.replace(/\[?\$(\w+)\]?/g,(function(e,t){return"${"+n+++":"+t+"}"}));r.items.push({label:e.func.substr(0,e.func.indexOf("(")),detail:e.func,documentation:e.desc,textEdit:Mi.replace(a.getCompletionRange(t),i),insertTextFormat:Mo,kind:Yi.Function})}(u[c]);return r},Vo.prototype.getPositionProposals=function(e,t,r){for(var n in ti)r.items.push({label:n,documentation:ti[n],textEdit:Mi.replace(this.getCompletionRange(t),n),kind:Yi.Value});return r},Vo.prototype.getRepeatStyleProposals=function(e,t,r){for(var n in ri)r.items.push({label:n,documentation:ri[n],textEdit:Mi.replace(this.getCompletionRange(t),n),kind:Yi.Value});return r},Vo.prototype.getLineStyleProposals=function(e,t,r){for(var n in ni)r.items.push({label:n,documentation:ni[n],textEdit:Mi.replace(this.getCompletionRange(t),n),kind:Yi.Value});return r},Vo.prototype.getLineWidthProposals=function(e,t,r){for(var n=0,i=ii;n<i.length;n++){var o=i[n];r.items.push({label:o,textEdit:Mi.replace(this.getCompletionRange(t),o),kind:Yi.Value})}return r},Vo.prototype.getGeometryBoxProposals=function(e,t,r){for(var n in si)r.items.push({label:n,documentation:si[n],textEdit:Mi.replace(this.getCompletionRange(t),n),kind:Yi.Value});return r},Vo.prototype.getBoxProposals=function(e,t,r){for(var n in oi)r.items.push({label:n,documentation:oi[n],textEdit:Mi.replace(this.getCompletionRange(t),n),kind:Yi.Value});return r},Vo.prototype.getImageProposals=function(e,t,r){for(var n in ci){var i=Bo(n);r.items.push({label:n,documentation:ci[n],textEdit:Mi.replace(this.getCompletionRange(t),i),kind:Yi.Function,insertTextFormat:n!==i?Mo:void 0})}return r},Vo.prototype.getTimingFunctionProposals=function(e,t,r){for(var n in ui){var i=Bo(n);r.items.push({label:n,documentation:ui[n],textEdit:Mi.replace(this.getCompletionRange(t),i),kind:Yi.Function,insertTextFormat:n!==i?Mo:void 0})}return r},Vo.prototype.getBasicShapeProposals=function(e,t,r){for(var n in hi){var i=Bo(n);r.items.push({label:n,documentation:hi[n],textEdit:Mi.replace(this.getCompletionRange(t),i),kind:Yi.Function,insertTextFormat:n!==i?Mo:void 0})}return r},Vo.prototype.getCompletionsForStylesheet=function(e){var t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof Pe?this.getCompletionsForRuleSet(t,e):t instanceof cr?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)},Vo.prototype.getCompletionForTopLevel=function(e){var t=this;return this.cssDataManager.getAtDirectives().forEach((function(r){e.items.push({label:r.name,textEdit:Mi.replace(t.getCompletionRange(null),r.name),documentation:Kn(r,t.doesSupportMarkdown()),tags:No(r)?[to.Deprecated]:[],kind:Yi.Keyword})})),this.getCompletionsForSelector(null,!1,e),e},Vo.prototype.getCompletionsForRuleSet=function(e,t){var r=e.getDeclarations();return r&&r.endsWith("}")&&this.offset>=r.end?this.getCompletionForTopLevel(t):!r||this.offset<=r.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)},Vo.prototype.getCompletionsForSelector=function(e,t,r){var n=this,i=this.findInNodePath(ne.PseudoSelector,ne.IdentifierSelector,ne.ClassSelector,ne.ElementNameSelector);if(!i&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=Ri.create(Ei.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach((function(e){var t=Bo(e.name);t={label:e.name,textEdit:Mi.replace(n.getCompletionRange(i),t),documentation:Kn(e,n.doesSupportMarkdown()),tags:No(e)?[to.Deprecated]:[],kind:Yi.Function,insertTextFormat:e.name!==t?Mo:void 0};Y(e.name,":-")&&(t.sortText=Do.VendorPrefixed),r.items.push(t)})),this.cssDataManager.getPseudoElements().forEach((function(e){var t=Bo(e.name);t={label:e.name,textEdit:Mi.replace(n.getCompletionRange(i),t),documentation:Kn(e,n.doesSupportMarkdown()),tags:No(e)?[to.Deprecated]:[],kind:Yi.Function,insertTextFormat:e.name!==t?Mo:void 0};Y(e.name,"::-")&&(t.sortText=Do.VendorPrefixed),r.items.push(t)})),!t){for(var o=0,s=pi;o<s.length;o++){var a=s[o];r.items.push({label:a,textEdit:Mi.replace(this.getCompletionRange(i),a),kind:Yi.Keyword})}for(var c=0,u=fi;c<u.length;c++)a=u[c],r.items.push({label:a,textEdit:Mi.replace(this.getCompletionRange(i),a),kind:Yi.Keyword})}var h={},l=(h[this.currentWord]=!0,this.textDocument.getText());return this.styleSheet.accept((function(e){return!(e.type===ne.SimpleSelector&&0<e.length&&("."!==(e=l.substr(e.offset,e.length)).charAt(0)||h[e]||(h[e]=!0,r.items.push({label:e,textEdit:Mi.replace(n.getCompletionRange(i),e),kind:Yi.Keyword})),1))})),e&&e.isNested()&&(t=e.getSelectors().findFirstChildBeforeOffset(this.offset))&&0===e.getSelectors().getChildren().indexOf(t)&&this.getPropertyProposals(null,r),r},Vo.prototype.getCompletionsForDeclarations=function(e,t){if(e&&this.offset!==e.offset){if(e=e.findFirstChildBeforeOffset(this.offset),!e)return this.getCompletionsForDeclarationProperty(null,t);if(e instanceof Le){var r=e;if(!mi(r.colonPosition)||this.offset<=r.colonPosition)return this.getCompletionsForDeclarationProperty(r,t);if(mi(r.semicolonPosition)&&r.semicolonPosition<this.offset)return this.offset===r.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(r instanceof Ue)return this.getCompletionsForDeclarationValue(r,t)}else e instanceof cn?this.getCompletionsForExtendsReference(e,null,t):(this.currentWord&&"@"===this.currentWord[0]||e instanceof Pe)&&this.getCompletionsForDeclarationProperty(null,t)}return t},Vo.prototype.getCompletionsForVariableDeclaration=function(e,t){return this.offset&&mi(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue(),t),t},Vo.prototype.getCompletionsForExpression=function(e,t){var r=e.getParent();return r instanceof ot?(this.getCompletionsForFunctionArgument(r,r.getParent(),t),t):(r=e.findParent(ne.Declaration))?!(e=e.findChildAtOffset(this.offset,!0))||e instanceof Qr||e instanceof fe?this.getCompletionsForDeclarationValue(r,t):t:(this.getTermProposals(void 0,null,t),t)},Vo.prototype.getCompletionsForFunctionArgument=function(e,t,r){var n=t.getIdentifier();return n&&n.matches("var")&&(t.getArguments().hasChildren()&&t.getArguments().getChild(0)!==e||this.getVariableProposalsForCSSVarFunction(r)),r},Vo.prototype.getCompletionsForFunctionDeclaration=function(e,t){return e=e.getDeclarations(),e&&this.offset>e.offset&&this.offset<e.end&&this.getTermProposals(void 0,null,t),t},Vo.prototype.getCompletionsForMixinReference=function(e,t){for(var r=this,n=0,i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Mixin);n<i.length;n++){var o=i[n];o.node instanceof Cn&&t.items.push(this.makeTermProposal(o,o.node.getParameters(),null))}var s=e.getIdentifier()||null;return this.completionParticipants.forEach((function(e){e.onCssMixinReference&&e.onCssMixinReference({mixinName:r.currentWord,range:r.getCompletionRange(s)})})),t},Vo.prototype.getTermProposals=function(e,t,r){for(var n=0,i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Function);n<i.length;n++){var o=i[n];o.node instanceof _t&&r.items.push(this.makeTermProposal(o,o.node.getParameters(),t))}return r},Vo.prototype.makeTermProposal=function(e,t,r){e.node;t=t.getChildren().map((function(e){return e instanceof rt?e.getName():e.getText()}));var n=e.name+"("+t.map((function(e,t){return"${"+(t+1)+":"+e+"}"})).join(", ")+")";return{label:e.name,detail:e.name+"("+t.join(", ")+")",textEdit:Mi.replace(this.getCompletionRange(r),n),insertTextFormat:Mo,kind:Yi.Function,sortText:Do.Term}},Vo.prototype.getCompletionsForSupportsCondition=function(e,t){var r=e.findFirstChildBeforeOffset(this.offset);if(r){if(r instanceof Ue)return!mi(r.colonPosition)||this.offset<=r.colonPosition?this.getCompletionsForDeclarationProperty(r,t):this.getCompletionsForDeclarationValue(r,t);if(r instanceof Cr)return this.getCompletionsForSupportsCondition(r,t)}return mi(e.lParent)&&this.offset>e.lParent&&(!mi(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t},Vo.prototype.getCompletionsForSupports=function(e,t){var r=e.getDeclarations();return!r||this.offset<=r.offset?(r=e.findFirstChildBeforeOffset(this.offset))instanceof Cr?this.getCompletionsForSupportsCondition(r,t):t:this.getCompletionForTopLevel(t)},Vo.prototype.getCompletionsForExtendsReference=function(e,t,r){return r},Vo.prototype.getCompletionForUriLiteralValue=function(e,t){var r,n,i,o;return o=e.hasChildren()?(i=e.getChild(0),r=i.getText(),n=this.position,this.getCompletionRange(i)):(r="",n=this.position,i=this.textDocument.positionAt(e.offset+"url(".length),Ri.create(i,i)),this.completionParticipants.forEach((function(e){e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:r,position:n,range:o})})),t},Vo.prototype.getCompletionForImportPath=function(e,t){var r=this;return this.completionParticipants.forEach((function(t){t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})})),t},Vo.prototype.hasCharacterAtPosition=function(e,t){var r=this.textDocument.getText();return 0<=e&&e<r.length&&r.charAt(e)===t},Vo.prototype.doesSupportMarkdown=function(){if(!mi(this.supportsMarkdown)){if(!mi(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var e=null==(e=null==(e=null==(e=this.lsOptions.clientCapabilities.textDocument)?void 0:e.completion)?void 0:e.completionItem)?void 0:e.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(Ji.Markdown)}return this.supportsMarkdown},Vo);function Vo(e,t,r){this.variablePrefix=e=void 0===e?null:e,this.lsOptions=t,this.cssDataManager=r,this.completionParticipants=[]}function No(e){return!(!e.status||"nonstandard"!==e.status&&"obsolete"!==e.status)}jo.prototype.add=function(e){this.entries[e]=!0},jo.prototype.getEntries=function(){return Object.keys(this.entries)};var $o=jo;function jo(){this.entries={}}function Bo(e){return e.replace(/\(\)$/,"($1)")}Wo.prototype.visitNode=function(e){return(e instanceof Wr||e instanceof Ye&&Xn(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0};var Uo=Wo;function Wo(e,t){this.entries=e,this.currentOffset=t}function Ko(e){return e.toLowerCase()in Gn||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)}qo=function(e,t){return(qo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var qo,zo=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}qo(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},Ho=(Go.prototype.findAttribute=function(e){if(this.attributes)for(var t=0,r=this.attributes;t<r.length;t++){var n=r[t];if(n.name===e)return n.value}return null},Go.prototype.addChild=function(e){e instanceof Go&&(e.parent=this),this.children||(this.children=[]),this.children.push(e)},Go.prototype.append=function(e){var t;this.attributes&&((t=this.attributes[this.attributes.length-1]).value=t.value+e)},Go.prototype.prepend=function(e){var t;this.attributes&&((t=this.attributes[0]).value=e+t.value)},Go.prototype.findRoot=function(){for(var e=this;e.parent&&!(e.parent instanceof Zo);)e=e.parent;return e},Go.prototype.removeChild=function(e){return!(!this.children||(e=this.children.indexOf(e),-1===e))&&(this.children.splice(e,1),!0)},Go.prototype.addAttr=function(e,t){this.attributes||(this.attributes=[]);for(var r=0,n=this.attributes;r<n.length;r++){var i=n[r];if(i.name===e)return void(i.value+=" "+t)}this.attributes.push({name:e,value:t})},Go.prototype.clone=function(e){void 0===e&&(e=!0);var t=new Go;if(this.attributes){t.attributes=[];for(var r=0,n=this.attributes;r<n.length;r++){var i=n[r];t.addAttr(i.name,i.value)}}if(e&&this.children){t.children=[];for(var o=0;o<this.children.length;o++)t.addChild(this.children[o].clone())}return t},Go.prototype.cloneWithParent=function(){var e=this.clone(!1);return!this.parent||this.parent instanceof Zo||this.parent.cloneWithParent().addChild(e),e},Go);function Go(){this.parent=null,this.children=null,this.attributes=null}zo(Yo,Qo=Ho);var Qo,Jo,Xo,Zo=Yo;function Yo(){return null!==Qo&&Qo.apply(this,arguments)||this}function es(e){var t=Jo.call(this)||this;return t.addAttr("name",e),t}function ts(e){var t=e.match(/^['"](.*)["']$/);return t?t[1]:e}zo(es,Jo=Ho),(q=Xo=Xo||{}).ensure=function(e,t){return t+ts(e)+t},q.remove=ts;var rs=function(e,t,r,n){return new(r=r||Promise)((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},ns=function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var c=[s,a];if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(6===c[0]&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=t.call(e,o)}catch(a){c=[6,a],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},is=jn,os=/^\w+:\/\//,ss=/^data:/,as=(cs.prototype.findDefinition=function(e,t,r){var n=new Ki(r);r=oe(r,e.offsetAt(t));return r&&(t=n.findSymbolFromNode(r))?{uri:e.uri,range:us(t.node,e)}:null},cs.prototype.findReferences=function(e,t,r){return this.findDocumentHighlights(e,t,r).map((function(t){return{uri:e.uri,range:t.range}}))},cs.prototype.findDocumentHighlights=function(e,t,r){var n,i,o,s=[],a=oe(r,e.offsetAt(t));return a&&a.type!==ne.Stylesheet&&a.type!==ne.Declarations&&(a.type===ne.Identifier&&a.parent&&a.parent.type===ne.ClassSelector&&(a=a.parent),n=new Ki(r),i=n.findSymbolFromNode(a),o=a.getText(),r.accept((function(t){if(i){if(n.matchesSymbol(t,i))return s.push({kind:hs(t),range:us(t,e)}),!1}else a&&a.type===t.type&&t.matches(o)&&s.push({kind:hs(t),range:us(t,e)});return!0}))),s},cs.prototype.isRawStringDocumentLinkNode=function(e){return e.type===ne.Import},cs.prototype.findDocumentLinks=function(e,t,r){for(var n=[],i=0,o=this.findUnresolvedLinks(e,t);i<o.length;i++){var s=o[i].link,a=s.target;a&&!ss.test(a)&&(os.test(a)||(a=r.resolveReference(a,e.uri))&&(s.target=a),n.push(s))}return n},cs.prototype.findDocumentLinks2=function(e,t,r){return rs(this,void 0,void 0,(function(){var n,i,o,s,a,c,u;return ns(this,(function(h){switch(h.label){case 0:o=this.findUnresolvedLinks(e,t),n=[],i=0,o=o,h.label=1;case 1:return i<o.length?(s=o[i],a=s.link,(c=a.target)&&!ss.test(c)?[3,2]:[3,5]):[3,6];case 2:return os.test(c)?(n.push(a),[3,5]):[3,3];case 3:return[4,this.resolveRelativeReference(c,e.uri,r,s.isRawLink)];case 4:void 0!==(u=h.sent())&&(a.target=u,n.push(a)),h.label=5;case 5:return i++,[3,1];case 6:return[2,n]}}))}))},cs.prototype.findUnresolvedLinks=function(e,t){function r(t){var r=t.getText(),o=us(t,e);o.start.line===o.end.line&&o.start.character===o.end.character||((Y(r,"'")||Y(r,'"'))&&(r=r.slice(1,-1)),t=!!t.parent&&n.isRawStringDocumentLinkNode(t.parent),i.push({link:{target:r,range:o},isRawLink:t}))}var n=this,i=[];return t.accept((function(e){var t;return e.type===ne.URILiteral?((t=e.getChild(0))&&r(t),!1):!e.parent||!n.isRawStringDocumentLinkNode(e.parent)||((Y(t=e.getText(),"'")||Y(t,'"'))&&r(e),!1)})),i},cs.prototype.findDocumentSymbols=function(e,t){var r=[];return t.accept((function(t){var n={name:null,kind:io.Class,location:null},i=t;return t instanceof Re?(n.name=t.getText(),(i=t.findAParent(ne.Ruleset,ne.ExtendsReference))&&(n.location=Ii.create(e.uri,us(i,e)),r.push(n)),!1):(t instanceof Zr?(n.name=t.getName(),n.kind=io.Variable):t instanceof Cn?(n.name=t.getName(),n.kind=io.Method):t instanceof _t?(n.name=t.getName(),n.kind=io.Function):t instanceof Mt?n.name=is("literal.keyframes","@keyframes {0}",t.getName()):t instanceof It?n.name=is("literal.fontface","@font-face"):t instanceof or&&(t=t.getChild(0))instanceof dr&&(n.name="@media "+t.getText(),n.kind=io.Module),n.name&&(n.location=Ii.create(e.uri,us(i,e)),r.push(n)),!0)})),r},cs.prototype.findDocumentColors=function(e,t){var r=[];return t.accept((function(t){return t=function(e,t){var r=ei(e);return r?(e=us(e,t),{color:r,range:e}):null}(t,e),t&&r.push(t),!0})),r},cs.prototype.getColorPresentations=function(e,t,r,n){var i=[],o=Math.round(255*r.red),s=Math.round(255*r.green),a=Math.round(255*r.blue),c=1===r.alpha?"rgb("+o+", "+s+", "+a+")":"rgba("+o+", "+s+", "+a+", "+r.alpha+")";i.push({label:c,textEdit:Mi.replace(n,c)}),c=1===r.alpha?"#"+ls(o)+ls(s)+ls(a):"#"+ls(o)+ls(s)+ls(a)+ls(Math.round(255*r.alpha)),i.push({label:c,textEdit:Mi.replace(n,c)}),o=function(e){var t=e.red,r=e.green,n=e.blue,i=(e=e.alpha,Math.max(t,r,n)),o=Math.min(t,r,n),s=0,a=0,c=(o+i)/2,u=i-o;if(0<u){switch(a=Math.min(c<=.5?u/(2*c):u/(2-2*c),1),i){case t:s=(r-n)/u+(r<n?6:0);break;case r:s=(n-t)/u+2;break;case n:s=(t-r)/u+4}s*=60,s=Math.round(s)}return{h:s,s:a,l:c,a:e}}(r);return c=1===o.a?"hsl("+o.h+", "+Math.round(100*o.s)+"%, "+Math.round(100*o.l)+"%)":"hsla("+o.h+", "+Math.round(100*o.s)+"%, "+Math.round(100*o.l)+"%, "+o.a+")",i.push({label:c,textEdit:Mi.replace(n,c)}),i},cs.prototype.doRename=function(e,t,r,n){return t=this.findDocumentHighlights(e,t,n).map((function(e){return Mi.replace(e.range,r)})),{changes:((n={})[e.uri]=t,n)}},cs.prototype.resolveRelativeReference=function(e,t,r,n){return rs(this,void 0,void 0,(function(){var n,i,o;return ns(this,(function(s){switch(s.label){case 0:return"~"===e[0]&&"/"!==e[1]&&this.fileSystemProvider?(e=e.substring(1),Y(t,"file://")?(n="@"!==(a=e)[0]?a.substring(0,a.indexOf("/")):a.substring(0,a.indexOf("/",a.indexOf("/")+1)),o=r.resolveReference("/",t),i=xo(t),[4,this.resolvePathToModule(n,i,o)]):[3,2]):[3,3];case 1:if(i=s.sent())return o=e.substring(n.length+1),[2,ko(i,o)];s.label=2;case 2:case 3:return[2,r.resolveReference(e,t)]}var a}))}))},cs.prototype.resolvePathToModule=function(e,t,r){return rs(this,void 0,void 0,(function(){var n;return ns(this,(function(i){switch(i.label){case 0:return n=ko(t,"node_modules",e,"package.json"),[4,this.fileExists(n)];case 1:return i.sent()?[2,xo(n)]:r&&t.startsWith(r)&&t.length!==r.length?[2,this.resolvePathToModule(e,xo(t),r)]:[2,void 0]}}))}))},cs.prototype.fileExists=function(e){return rs(this,void 0,void 0,(function(){var t;return ns(this,(function(r){switch(r.label){case 0:if(!this.fileSystemProvider)return[2,!1];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.fileSystemProvider.stat(e)];case 2:return(t=r.sent()).type===ho.Unknown&&-1===t.size?[2,!1]:[2,!0];case 3:return r.sent(),[2,!1];case 4:return[2]}}))}))},cs);function cs(e){this.fileSystemProvider=e}function us(e,t){return Ri.create(t.positionAt(e.offset),t.positionAt(e.end))}function hs(e){if(e.type===ne.Selector)return no.Write;if(e instanceof fe&&e.parent&&e.parent instanceof Ge&&e.isCustomProperty)return no.Write;if(e.parent)switch(e.parent.type){case ne.FunctionDeclaration:case ne.MixinDeclaration:case ne.Keyframe:case ne.VariableDeclaration:case ne.FunctionParameter:return no.Write}return no.Read}function ls(e){return e=e.toString(16),2!==e.length?"0"+e:e}var ps=jn,fs=Mn.Warning,ds=Mn.Error,ms=Mn.Ignore,gs=(z=function(e,t,r){this.id=e,this.message=t,this.defaultValue=r},function(e,t,r){this.id=e,this.message=t,this.defaultValue=r});function ys(e){this.conf=e=void 0===e?{}:e}function bs(){this.data={}}new z("compatibleVendorPrefixes",ps("rule.vendorprefixes.all","When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),ms),new z("vendorPrefix",ps("rule.standardvendorprefix.all","When using a vendor-specific prefix also include the standard property"),fs),new z("duplicateProperties",ps("rule.duplicateDeclarations","Do not use duplicate style definitions"),ms),new z("emptyRules",ps("rule.emptyRuleSets","Do not use empty rulesets"),fs),new z("importStatement",ps("rule.importDirective","Import statements do not load in parallel"),ms),new z("boxModel",ps("rule.bewareOfBoxModelSize","Do not use width or height when using padding or border"),ms),new z("universalSelector",ps("rule.universalSelector","The universal selector (*) is known to be slow"),ms),new z("zeroUnits",ps("rule.zeroWidthUnit","No unit for zero needed"),ms),new z("fontFaceProperties",ps("rule.fontFaceProperties","@font-face rule must define 'src' and 'font-family' properties"),fs),new z("hexColorLength",ps("rule.hexColor","Hex colors must consist of three, four, six or eight hex numbers"),ds),new z("argumentsInColorFunction",ps("rule.colorFunction","Invalid number of parameters"),ds),new z("unknownProperties",ps("rule.unknownProperty","Unknown property."),fs),new z("unknownAtRules",ps("rule.unknownAtRules","Unknown at-rule."),fs),new z("ieHack",ps("rule.ieHack","IE hacks are only necessary when supporting IE7 and older"),ms),new z("unknownVendorSpecificProperties",ps("rule.unknownVendorSpecificProperty","Unknown vendor specific property."),ms),new z("propertyIgnoredDueToDisplay",ps("rule.propertyIgnoredDueToDisplay","Property is ignored due to the display."),fs),new z("important",ps("rule.avoidImportant","Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),ms),new z("float",ps("rule.avoidFloat","Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),ms),new z("idSelector",ps("rule.avoidIdSelector","Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),ms),new gs("validProperties",ps("rule.validProperties","A list of properties that are not validated against the `unknownProperties` rule."),[]),ys.prototype.getRule=function(e){if(this.conf.hasOwnProperty(e.id)){var t=function(e){switch(e){case"ignore":return Mn.Ignore;case"warning":return Mn.Warning;case"error":return Mn.Error}return null}(this.conf[e.id]);if(t)return t}return e.defaultValue},ys.prototype.getSetting=function(e){return this.conf[e.id]},bs.prototype.add=function(e,t,r){var n=this.data[e];n||(this.data[e]=n={nodes:[],names:[]}),n.names.push(t),r&&n.nodes.push(r)},vs=function(e,t){return(vs=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};K=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}vs(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};var vs,Cs,xs="/".charCodeAt(0),ks="\n".charCodeAt(0),_s="\r".charCodeAt(0),ws="\f".charCodeAt(0),Ps="$".charCodeAt(0),Ss="#".charCodeAt(0),Es="{".charCodeAt(0),Rs="=".charCodeAt(0),Is="!".charCodeAt(0),As="<".charCodeAt(0),Ds=">".charCodeAt(0),Ts=".".charCodeAt(0),Fs=("@".charCodeAt(0),n.CustomToken),Os=Fs++,Ms=Fs++,Ls=(Fs++,Fs++),Vs=Fs++,Ns=Fs++,$s=Fs++,js=Fs++,Bs=(K(Us,Cs=X),Us.prototype.scanNext=function(e){if(this.stream.advanceIfChar(Ps)){var t=["$"];if(this.ident(t))return this.finishToken(e,Os,t.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([Ss,Es])?this.finishToken(e,Ms):this.stream.advanceIfChars([Rs,Rs])?this.finishToken(e,Ls):this.stream.advanceIfChars([Is,Rs])?this.finishToken(e,Vs):this.stream.advanceIfChar(As)?this.stream.advanceIfChar(Rs)?this.finishToken(e,$s):this.finishToken(e,n.Delim):this.stream.advanceIfChar(Ds)?this.stream.advanceIfChar(Rs)?this.finishToken(e,Ns):this.finishToken(e,n.Delim):this.stream.advanceIfChars([Ts,Ts,Ts])?this.finishToken(e,js):Cs.prototype.scanNext.call(this,e)},Us.prototype.comment=function(){return!!Cs.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([xs,xs])||(this.stream.advanceWhileChar((function(e){switch(e){case ks:case _s:case ws:return!1;default:return!0}})),0))},Us);function Us(){return null!==Cs&&Cs.apply(this,arguments)||this}var Ws,Ks,qs=jn,zs=(B=function(e,t){this.id=e,this.message=t},{FromExpected:new B("scss-fromexpected",qs("expected.from","'from' expected")),ThroughOrToExpected:new B("scss-throughexpected",qs("expected.through","'through' or 'to' expected")),InExpected:new B("scss-fromexpected",qs("expected.in","'in' expected"))});function Hs(){return Ks.call(this,new Bs)||this}Ws=function(e,t){return(Ws=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ws(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(Hs,Ks=U),Hs.prototype._parseStylesheetStatement=function(e){return void 0===e&&(e=!1),this.peek(n.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||Ks.prototype._parseStylesheetAtStatement.call(this,e):this._parseRuleset(!0)||this._parseVariableDeclaration()},Hs.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(Bt);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,Bn.URIOrStringExpected);for(;this.accept(n.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,Bn.URIOrStringExpected);return this.peek(n.SemiColon)||this.peek(n.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e)},Hs.prototype._parseVariableDeclaration=function(e){if(void 0===e&&(e=[]),!this.peek(Os))return null;var t=this.create(Zr);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(n.Colon))return this.finish(t,Bn.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,Bn.VariableValueExpected,[],e);for(;this.peek(n.Exclamation);)if(!t.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(n.Ident,/^(default|global)$/))return this.finish(t,Bn.UnknownKeyword);this.consumeToken()}return this.peek(n.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)},Hs.prototype._parseMediaContentStart=function(){return this._parseInterpolation()},Hs.prototype._parseMediaFeatureName=function(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()},Hs.prototype._parseKeyframeSelector=function(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()},Hs.prototype._parseVariable=function(){var e;return this.peek(Os)?(e=this.create(on),this.consumeToken(),e):null},Hs.prototype._parseModuleMember=function(){var e=this.mark(),t=this.create(Ln);return t.setIdentifier(this._parseIdent([ie.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,Bn.IdentifierOrVariableExpected):null},Hs.prototype._parseIdent=function(e){var t=this;if(!this.peek(n.Ident)&&!this.peek(Ms)&&!this.peekDelim("-"))return null;for(var r,i=this.create(fe),o=(i.referenceTypes=e,i.isCustomProperty=this.peekRegExp(n.Ident,/^--/),!1);(this.accept(n.Ident)||i.addChild((r=void 0,r=t.mark(),t.acceptDelim("-")&&(t.hasWhitespace()||t.acceptDelim("-"),t.hasWhitespace())?(t.restoreAtMark(r),null):t._parseInterpolation()))||o&&this.acceptRegexp(/^[\w-]/))&&(o=!0,!this.hasWhitespace()););return o?this.finish(i):null},Hs.prototype._parseTermExpression=function(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||Ks.prototype._parseTermExpression.call(this)},Hs.prototype._parseInterpolation=function(){var e;return this.peek(Ms)?(e=this.create(tn),this.consumeToken(),e.addChild(this._parseExpr())||this._parseSelectorCombinator()?this.accept(n.CurlyR)?this.finish(e):this.finish(e,Bn.RightCurlyExpected):this.accept(n.CurlyR)?this.finish(e):this.finish(e,Bn.ExpressionExpected)):null},Hs.prototype._parseOperator=function(){var e;return this.peek(Ls)||this.peek(Vs)||this.peek(Ns)||this.peek($s)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")?(e=this.createNode(ne.Operator),this.consumeToken(),this.finish(e)):Ks.prototype._parseOperator.call(this)},Hs.prototype._parseUnaryOperator=function(){var e;return this.peekIdent("not")?(e=this.create(ae),this.consumeToken(),this.finish(e)):Ks.prototype._parseUnaryOperator.call(this)},Hs.prototype._parseRuleSetDeclaration=function(){return this.peek(n.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||Ks.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||Ks.prototype._parseRuleSetDeclaration.call(this)},Hs.prototype._parseDeclaration=function(e){var t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;if(t=this.create(Ue),!t.setProperty(this._parseProperty()))return null;if(!this.accept(n.Colon))return this.finish(t,Bn.ColonExpected,[n.Colon],e||[n.SemiColon]);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),e=!1,t.setValue(this._parseExpr())&&(e=!0,t.addChild(this._parsePrio())),this.peek(n.CurlyL))t.setNestedProperties(this._parseNestedProperties());else if(!e)return this.finish(t,Bn.PropertyValueExpected);return this.peek(n.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)},Hs.prototype._parseNestedProperties=function(){var e=this.create(Tt);return this._parseBody(e,this._parseDeclaration.bind(this))},Hs.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var e=this.create(cn);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,Bn.SelectorExpected);for(;this.accept(n.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(n.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,Bn.UnknownKeyword):this.finish(e)}return null},Hs.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||Ks.prototype._parseSimpleSelectorBody.call(this)},Hs.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var e=this.createNode(ne.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(n.Num)||this.accept(n.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null},Hs.prototype._parseSelectorPlaceholder=function(){var e;return this.peekDelim("%")?(e=this.createNode(ne.SelectorPlaceholder),this.consumeToken(),this._parseIdent(),this.finish(e)):this.peekKeyword("@at-root")?(e=this.createNode(ne.SelectorPlaceholder),this.consumeToken(),this.finish(e)):null},Hs.prototype._parseElementName=function(){var e=this.mark(),t=Ks.prototype._parseElementName.call(this);return t&&!this.hasWhitespace()&&this.peek(n.ParenthesisL)?(this.restoreAtMark(e),null):t},Hs.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||Ks.prototype._tryParsePseudoIdentifier.call(this)},Hs.prototype._parseWarnAndDebug=function(){var e;return this.peekKeyword("@debug")||this.peekKeyword("@warn")||this.peekKeyword("@error")?(e=this.createNode(ne.Debug),this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)):null},Hs.prototype._parseControlStatement=function(e){return void 0===e&&(e=this._parseRuleSetDeclaration.bind(this)),this.peek(n.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null},Hs.prototype._parseIfStatement=function(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null},Hs.prototype._internalParseIfStatement=function(e){var t,r=this.create(ct);return this.consumeToken(),r.setExpression(this._parseExpr(!0))?(this._parseBody(r,e),this.acceptKeyword("@else")&&(this.peekIdent("if")?r.setElseClause(this._internalParseIfStatement(e)):this.peek(n.CurlyL)&&(t=this.create(Ct),this._parseBody(t,e),r.setElseClause(t))),this.finish(r)):this.finish(r,Bn.ExpressionExpected)},Hs.prototype._parseForStatement=function(e){var t;return this.peekKeyword("@for")?(t=this.create(lt),this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,Bn.ExpressionExpected,[n.CurlyR]):this.finish(t,zs.ThroughOrToExpected,[n.CurlyR]):this.finish(t,Bn.ExpressionExpected,[n.CurlyR]):this.finish(t,zs.FromExpected,[n.CurlyR]):this.finish(t,Bn.VariableNameExpected,[n.CurlyR])):null},Hs.prototype._parseEachStatement=function(e){if(!this.peekKeyword("@each"))return null;var t=this.create(dt),r=(this.consumeToken(),t.getVariables());if(!r.addChild(this._parseVariable()))return this.finish(t,Bn.VariableNameExpected,[n.CurlyR]);for(;this.accept(n.Comma);)if(!r.addChild(this._parseVariable()))return this.finish(t,Bn.VariableNameExpected,[n.CurlyR]);return this.finish(r),this.acceptIdent("in")?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,Bn.ExpressionExpected,[n.CurlyR]):this.finish(t,zs.InExpected,[n.CurlyR])},Hs.prototype._parseWhileStatement=function(e){var t;return this.peekKeyword("@while")?(t=this.create(yt),this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,Bn.ExpressionExpected,[n.CurlyR])):null},Hs.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},Hs.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var e=this.create(_t);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ie.Function])))return this.finish(e,Bn.IdentifierExpected,[n.CurlyR]);if(!this.accept(n.ParenthesisL))return this.finish(e,Bn.LeftParenthesisExpected,[n.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Bn.VariableNameExpected);return this.accept(n.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,Bn.RightParenthesisExpected,[n.CurlyR])},Hs.prototype._parseReturnStatement=function(){var e;return this.peekKeyword("@return")?(e=this.createNode(ne.ReturnStatement),this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,Bn.ExpressionExpected)):null},Hs.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var e=this.create(Cn);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ie.Mixin])))return this.finish(e,Bn.IdentifierExpected,[n.CurlyR]);if(this.accept(n.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Bn.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Bn.RightParenthesisExpected,[n.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},Hs.prototype._parseParameterDeclaration=function(){var e=this.create(rt);return e.setIdentifier(this._parseVariable())?(this.accept(js),this.accept(n.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,Bn.VariableValueExpected,[],[n.Comma,n.ParenthesisR]):this.finish(e)):null},Hs.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var e=this.create(ln);if(this.consumeToken(),this.accept(n.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,Bn.ExpressionExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Bn.RightParenthesisExpected)}return this.finish(e)},Hs.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var e=this.create(yn),t=(this.consumeToken(),this._parseIdent([ie.Mixin]));if(!e.setIdentifier(t))return this.finish(e,Bn.IdentifierExpected,[n.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var r=this._parseIdent([ie.Mixin]);if(!r)return this.finish(e,Bn.IdentifierExpected,[n.CurlyR]);var i=this.create(Ln);t.referenceTypes=[ie.Module],i.setIdentifier(t),e.setIdentifier(r),e.addChild(i)}if(this.accept(n.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,Bn.ExpressionExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Bn.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(n.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)},Hs.prototype._parseMixinContentDeclaration=function(){var e=this.create(dn);if(this.acceptIdent("using")){if(!this.accept(n.ParenthesisL))return this.finish(e,Bn.LeftParenthesisExpected,[n.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Bn.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Bn.RightParenthesisExpected,[n.CurlyL])}return this.peek(n.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)},Hs.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},Hs.prototype._parseFunctionArgument=function(){var e=this.create(ot),t=this.mark(),r=this._parseVariable();if(r)if(this.accept(n.Colon))e.setIdentifier(r);else{if(this.accept(js))return e.setValue(r),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(js),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null},Hs.prototype._parseURLArgument=function(){var e=this.mark(),t=Ks.prototype._parseURLArgument.call(this);return t&&this.peek(n.ParenthesisR)?t:(this.restoreAtMark(e),(t=this.create(ae)).addChild(this._parseBinaryExpr()),this.finish(t))},Hs.prototype._parseOperation=function(){if(!this.peek(n.ParenthesisL))return null;var e=this.create(ae);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(n.Comma);return this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Bn.RightParenthesisExpected)},Hs.prototype._parseListElement=function(){var e=this.create(Sn),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(n.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,Bn.ExpressionExpected)}else e.setValue(t);return this.finish(e)},Hs.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var e=this.create(Kt);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,Bn.StringLiteralExpected);if(!this.peek(n.SemiColon)&&!this.peek(n.EOF)){if(!this.peekRegExp(n.Ident,/as|with/))return this.finish(e,Bn.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([ie.Module]))&&!this.acceptDelim("*"))return this.finish(e,Bn.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(n.ParenthesisL))return this.finish(e,Bn.LeftParenthesisExpected,[n.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Bn.VariableNameExpected);for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Bn.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Bn.RightParenthesisExpected)}}return this.accept(n.SemiColon)||this.accept(n.EOF)?this.finish(e):this.finish(e,Bn.SemiColonExpected)},Hs.prototype._parseModuleConfigDeclaration=function(){var e=this.create(Ht);return e.setIdentifier(this._parseVariable())?this.accept(n.Colon)&&e.setValue(this._parseExpr(!0))?!this.accept(n.Exclamation)||!this.hasWhitespace()&&this.acceptIdent("default")?this.finish(e):this.finish(e,Bn.UnknownKeyword):this.finish(e,Bn.VariableValueExpected,[],[n.Comma,n.ParenthesisR]):null},Hs.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var e=this.create(Jt);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,Bn.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(n.ParenthesisL))return this.finish(e,Bn.LeftParenthesisExpected,[n.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Bn.VariableNameExpected);for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Bn.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Bn.RightParenthesisExpected)}if(!this.peek(n.SemiColon)&&!this.peek(n.EOF)){if(!this.peekRegExp(n.Ident,/as|hide|show/))return this.finish(e,Bn.UnknownKeyword);if(this.acceptIdent("as")){var t=this._parseIdent([ie.Forward]);if(!e.setIdentifier(t))return this.finish(e,Bn.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,Bn.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,Bn.IdentifierOrVariableExpected)}return this.accept(n.SemiColon)||this.accept(n.EOF)?this.finish(e):this.finish(e,Bn.SemiColonExpected)},Hs.prototype._parseForwardVisibility=function(){var e=this.create(Yt);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(n.Comma);return 1<e.getChildren().length?e:null},Hs.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||Ks.prototype._parseSupportsCondition.call(this)},Gs=function(e,t){return(Gs=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var Gs,Qs;W=jn;function Js(e,t){return e=Qs.call(this,"$",e,t)||this,Xs(Js.scssModuleLoaders),Xs(Js.scssModuleBuiltIns),e}function Xs(e){e.forEach((function(e){var t;e.documentation&&e.references&&0<e.references.length&&((t="string"==typeof e.documentation?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value}).value+="\n\n",t.value+=e.references.map((function(e){return"["+e.name+"]("+e.url+")"})).join(" | "),e.documentation=t)}))}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Gs(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Js,Qs=Lo),Js.prototype.isImportPathParent=function(e){return e===ne.Forward||e===ne.Use||Qs.prototype.isImportPathParent.call(this,e)},Js.prototype.getCompletionForImportPath=function(e,t){var r=e.getParent().type;if(r===ne.Forward||r===ne.Use)for(var n=0,i=Js.scssModuleBuiltIns;n<i.length;n++){var o=i[n];o={label:o.label,documentation:o.documentation,textEdit:Mi.replace(this.getCompletionRange(e),"'"+o.label+"'"),kind:Yi.Module};t.items.push(o)}return Qs.prototype.getCompletionForImportPath.call(this,e,t)},Js.prototype.createReplaceFunction=function(){var e=1;return function(t,r){return"\\"+r+": ${"+e+++":"+(Js.variableDefaults[r]||"")+"}"}},Js.prototype.createFunctionProposals=function(e,t,r,n){for(var i=0,o=e;i<o.length;i++){var s=o[i],a=s.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction());s={label:s.func.substr(0,s.func.indexOf("(")),detail:s.func,documentation:s.desc,textEdit:Mi.replace(this.getCompletionRange(t),a),insertTextFormat:eo.Snippet,kind:Yi.Function};r&&(s.sortText="z"),n.items.push(s)}return n},Js.prototype.getCompletionsForSelector=function(e,t,r){return this.createFunctionProposals(Js.selectorFuncs,null,!0,r),Qs.prototype.getCompletionsForSelector.call(this,e,t,r)},Js.prototype.getTermProposals=function(e,t,r){var n=Js.builtInFuncs;return e&&(n=n.filter((function(t){return!t.type||!e.restrictions||-1!==e.restrictions.indexOf(t.type)}))),this.createFunctionProposals(n,t,!0,r),Qs.prototype.getTermProposals.call(this,e,t,r)},Js.prototype.getColorProposals=function(e,t,r){return this.createFunctionProposals(Js.colorProposals,t,!1,r),Qs.prototype.getColorProposals.call(this,e,t,r)},Js.prototype.getCompletionsForDeclarationProperty=function(e,t){return this.getCompletionForAtDirectives(t),this.getCompletionsForSelector(null,!0,t),Qs.prototype.getCompletionsForDeclarationProperty.call(this,e,t)},Js.prototype.getCompletionsForExtendsReference=function(e,t,r){for(var n=0,i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Rule);n<i.length;n++){var o=i[n];o={label:o.name,textEdit:Mi.replace(this.getCompletionRange(t),o.name),kind:Yi.Function};r.items.push(o)}return r},Js.prototype.getCompletionForAtDirectives=function(e){var t;return(t=e.items).push.apply(t,Js.scssAtDirectives),e},Js.prototype.getCompletionForTopLevel=function(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),Qs.prototype.getCompletionForTopLevel.call(this,e),e},Js.prototype.getCompletionForModuleLoaders=function(e){var t;return(t=e.items).push.apply(t,Js.scssModuleLoaders),e},Js.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},Js.colorProposals=[{func:"red($color)",desc:W("scss.builtin.red","Gets the red component of a color.")},{func:"green($color)",desc:W("scss.builtin.green","Gets the green component of a color.")},{func:"blue($color)",desc:W("scss.builtin.blue","Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:W("scss.builtin.mix","Mixes two colors together.")},{func:"hue($color)",desc:W("scss.builtin.hue","Gets the hue component of a color.")},{func:"saturation($color)",desc:W("scss.builtin.saturation","Gets the saturation component of a color.")},{func:"lightness($color)",desc:W("scss.builtin.lightness","Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:W("scss.builtin.adjust-hue","Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:W("scss.builtin.lighten","Makes a color lighter.")},{func:"darken($color, $amount)",desc:W("scss.builtin.darken","Makes a color darker.")},{func:"saturate($color, $amount)",desc:W("scss.builtin.saturate","Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:W("scss.builtin.desaturate","Makes a color less saturated.")},{func:"grayscale($color)",desc:W("scss.builtin.grayscale","Converts a color to grayscale.")},{func:"complement($color)",desc:W("scss.builtin.complement","Returns the complement of a color.")},{func:"invert($color)",desc:W("scss.builtin.invert","Returns the inverse of a color.")},{func:"alpha($color)",desc:W("scss.builtin.alpha","Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:W("scss.builtin.rgba","Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:W("scss.builtin.opacify","Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:W("scss.builtin.fade-in","Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:W("scss.builtin.transparentize","Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:W("scss.builtin.fade-out","Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:W("scss.builtin.adjust-color","Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:W("scss.builtin.scale-color","Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:W("scss.builtin.change-color","Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:W("scss.builtin.ie-hex-str","Converts a color into the format understood by IE filters.")}],Js.selectorFuncs=[{func:"selector-nest($selectors…)",desc:W("scss.builtin.selector-nest","Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors…)",desc:W("scss.builtin.selector-append","Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:W("scss.builtin.selector-extend","Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:W("scss.builtin.selector-replace","Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:W("scss.builtin.selector-unify","Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:W("scss.builtin.is-superselector","Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:W("scss.builtin.simple-selectors","Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:W("scss.builtin.selector-parse","Parses a selector into the format returned by &.")}],Js.builtInFuncs=[{func:"unquote($string)",desc:W("scss.builtin.unquote","Removes quotes from a string.")},{func:"quote($string)",desc:W("scss.builtin.quote","Adds quotes to a string.")},{func:"str-length($string)",desc:W("scss.builtin.str-length","Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:W("scss.builtin.str-insert","Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:W("scss.builtin.str-index","Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:W("scss.builtin.str-slice","Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:W("scss.builtin.to-upper-case","Converts a string to upper case.")},{func:"to-lower-case($string)",desc:W("scss.builtin.to-lower-case","Converts a string to lower case.")},{func:"percentage($number)",desc:W("scss.builtin.percentage","Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:W("scss.builtin.round","Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:W("scss.builtin.ceil","Rounds a number up to the next whole number.")},{func:"floor($number)",desc:W("scss.builtin.floor","Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:W("scss.builtin.abs","Returns the absolute value of a number.")},{func:"min($numbers)",desc:W("scss.builtin.min","Finds the minimum of several numbers.")},{func:"max($numbers)",desc:W("scss.builtin.max","Finds the maximum of several numbers.")},{func:"random([$limit])",desc:W("scss.builtin.random","Returns a random number.")},{func:"length($list)",desc:W("scss.builtin.length","Returns the length of a list.")},{func:"nth($list, $n)",desc:W("scss.builtin.nth","Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:W("scss.builtin.set-nth","Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:W("scss.builtin.join","Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:W("scss.builtin.append","Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:W("scss.builtin.zip","Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:W("scss.builtin.index","Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:W("scss.builtin.list-separator","Returns the separator of a list.")},{func:"map-get($map, $key)",desc:W("scss.builtin.map-get","Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:W("scss.builtin.map-merge","Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:W("scss.builtin.map-remove","Returns a new map with keys removed.")},{func:"map-keys($map)",desc:W("scss.builtin.map-keys","Returns a list of all keys in a map.")},{func:"map-values($map)",desc:W("scss.builtin.map-values","Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:W("scss.builtin.map-has-key","Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:W("scss.builtin.keywords","Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:W("scss.builtin.feature-exists","Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:W("scss.builtin.variable-exists","Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:W("scss.builtin.global-variable-exists","Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:W("scss.builtin.function-exists","Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:W("scss.builtin.mixin-exists","Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:W("scss.builtin.inspect","Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:W("scss.builtin.type-of","Returns the type of a value.")},{func:"unit($number)",desc:W("scss.builtin.unit","Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:W("scss.builtin.unitless","Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:W("scss.builtin.comparable","Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args…)",desc:W("scss.builtin.call","Dynamically calls a Sass function.")}],Js.scssAtDirectives=[{label:"@extend",documentation:W("scss.builtin.@extend","Inherits the styles of another selector."),kind:Yi.Keyword},{label:"@at-root",documentation:W("scss.builtin.@at-root","Causes one or more rules to be emitted at the root of the document."),kind:Yi.Keyword},{label:"@debug",documentation:W("scss.builtin.@debug","Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:Yi.Keyword},{label:"@warn",documentation:W("scss.builtin.@warn","Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:Yi.Keyword},{label:"@error",documentation:W("scss.builtin.@error","Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:Yi.Keyword},{label:"@if",documentation:W("scss.builtin.@if","Includes the body if the expression does not evaluate to `false` or `null`."),insertText:"@if ${1:expr} {\n\t$0\n}",insertTextFormat:eo.Snippet,kind:Yi.Keyword},{label:"@for",documentation:W("scss.builtin.@for","For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n\t$0\n}",insertTextFormat:eo.Snippet,kind:Yi.Keyword},{label:"@each",documentation:W("scss.builtin.@each","Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:"@each \\$${1:var} in ${2:list} {\n\t$0\n}",insertTextFormat:eo.Snippet,kind:Yi.Keyword},{label:"@while",documentation:W("scss.builtin.@while","While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:"@while ${1:condition} {\n\t$0\n}",insertTextFormat:eo.Snippet,kind:Yi.Keyword},{label:"@mixin",documentation:W("scss.builtin.@mixin","Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:"@mixin ${1:name} {\n\t$0\n}",insertTextFormat:eo.Snippet,kind:Yi.Keyword},{label:"@include",documentation:W("scss.builtin.@include","Includes the styles defined by another mixin into the current rule."),kind:Yi.Keyword},{label:"@function",documentation:W("scss.builtin.@function","Defines complex operations that can be re-used throughout stylesheets."),kind:Yi.Keyword}],Js.scssModuleLoaders=[{label:"@use",documentation:W("scss.builtin.@use","Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:eo.Snippet,kind:Yi.Keyword},{label:"@forward",documentation:W("scss.builtin.@forward","Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:eo.Snippet,kind:Yi.Keyword}],Js.scssModuleBuiltIns=[{label:"sass:math",documentation:W("scss.builtin.sass:math","Provides functions that operate on numbers."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:W("scss.builtin.sass:string","Makes it easy to combine, search, or split apart strings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:W("scss.builtin.sass:color","Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:W("scss.builtin.sass:list","Lets you access and modify values in lists."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:W("scss.builtin.sass:map","Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:W("scss.builtin.sass:selector","Provides access to Sass’s powerful selector engine."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:W("scss.builtin.sass:meta","Exposes the details of Sass’s inner workings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/meta"}]}],Zs=function(e,t){return(Zs=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};r=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Zs(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};var Zs,Ys,ea,ta,ra="/".charCodeAt(0),na="\n".charCodeAt(0),ia="\r".charCodeAt(0),oa="\f".charCodeAt(0),sa="`".charCodeAt(0),aa=".".charCodeAt(0),ca=(t=n.CustomToken,+t),ua=(r(ha,Ys=X),ha.prototype.scanNext=function(e){var t=this.escapedJavaScript();return null!==t?this.finishToken(e,t):this.stream.advanceIfChars([aa,aa,aa])?this.finishToken(e,ca):Ys.prototype.scanNext.call(this,e)},ha.prototype.comment=function(){return!!Ys.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([ra,ra])||(this.stream.advanceWhileChar((function(e){switch(e){case na:case ia:case oa:return!1;default:return!0}})),0))},ha.prototype.escapedJavaScript=function(){return this.stream.peekChar()===sa?(this.stream.advance(1),this.stream.advanceWhileChar((function(e){return e!==sa})),this.stream.advanceIfChar(sa)?n.EscapedJavaScript:n.BadEscapedJavaScript):null},ha);function ha(){return null!==Ys&&Ys.apply(this,arguments)||this}function la(){return ta.call(this,new ua)||this}ea=function(e,t){return(ea=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ea(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(la,ta=U),la.prototype._parseStylesheetStatement=function(e){return void 0===e&&(e=!1),this.peek(n.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||ta.prototype._parseStylesheetAtStatement.call(this,e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},la.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var e=this.create(Bt);if(this.consumeToken(),this.accept(n.ParenthesisL)){if(!this.accept(n.Ident))return this.finish(e,Bn.IdentifierExpected,[n.SemiColon]);do{if(!this.accept(n.Comma))break}while(this.accept(n.Ident));if(!this.accept(n.ParenthesisR))return this.finish(e,Bn.RightParenthesisExpected,[n.SemiColon])}return e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(n.SemiColon)||this.peek(n.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e)):this.finish(e,Bn.URIOrStringExpected,[n.SemiColon])},la.prototype._parsePlugin=function(){var e;return this.peekKeyword("@plugin")?(e=this.createNode(ne.Plugin),this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(n.SemiColon)?this.finish(e):this.finish(e,Bn.SemiColonExpected):this.finish(e,Bn.StringLiteralExpected)):null},la.prototype._parseMediaQuery=function(e){e=ta.prototype._parseMediaQuery.call(this,e);return e||((e=this.create(yr)).addChild(this._parseVariable())?this.finish(e):null)},la.prototype._parseMediaDeclaration=function(e){return this._tryParseRuleset(e=void 0!==e&&e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)},la.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},la.prototype._parseVariableDeclaration=function(e){void 0===e&&(e=[]);var t=this.create(Zr),r=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(!this.accept(n.Colon))return this.restoreAtMark(r),null;if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,Bn.VariableValueExpected,[],e);return t.addChild(this._parsePrio()),this.peek(n.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)},la.prototype._parseDetachedRuleSet=function(){var e=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(n.ParenthesisL))return this.restoreAtMark(e),null;var t=this.create(Cn);if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,Bn.IdentifierExpected,[],[n.ParenthesisR]);if(!this.accept(n.ParenthesisR))return this.restoreAtMark(e),null}return this.peek(n.CurlyL)?(e=this.create(ke),this._parseBody(e,this._parseDetachedRuleSetBody.bind(this)),this.finish(e)):null},la.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},la.prototype._addLookupChildren=function(e){if(!e.addChild(this._parseLookupValue()))return!1;for(var t=!1;this.peek(n.BracketL)&&(t=!0),e.addChild(this._parseLookupValue());)t=!1;return!t},la.prototype._parseLookupValue=function(){var e=this.create(ae),t=this.mark();return this.accept(n.BracketL)&&((e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(n.BracketR)||this.accept(n.BracketR))?e:(this.restoreAtMark(t),null)},la.prototype._parseVariable=function(e,t){void 0===t&&(t=!1);var r=!(e=void 0!==e&&e)&&this.peekDelim("$");if(!this.peekDelim("@")&&!r&&!this.peek(n.AtKeyword))return null;r=this.create(on);for(var i=this.mark();this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(i),null;return!this.accept(n.AtKeyword)&&!this.accept(n.Ident)||!t&&this.peek(n.BracketL)&&!this._addLookupChildren(r)?(this.restoreAtMark(i),null):r},la.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||ta.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},la.prototype._parseEscaped=function(){var e;return this.peek(n.EscapedJavaScript)||this.peek(n.BadEscapedJavaScript)?(e=this.createNode(ne.EscapedValue),this.consumeToken(),this.finish(e)):this.peekDelim("~")?(e=this.createNode(ne.EscapedValue),this.consumeToken(),this.accept(n.String)||this.accept(n.EscapedJavaScript)?this.finish(e):this.finish(e,Bn.TermExpected)):null},la.prototype._parseOperator=function(){var e=this._parseGuardOperator();return e||ta.prototype._parseOperator.call(this)},la.prototype._parseGuardOperator=function(){var e;return this.peekDelim(">")?(e=this.createNode(ne.Operator),this.consumeToken(),this.acceptDelim("="),e):this.peekDelim("=")?(e=this.createNode(ne.Operator),this.consumeToken(),this.acceptDelim("<"),e):this.peekDelim("<")?(e=this.createNode(ne.Operator),this.consumeToken(),this.acceptDelim("="),e):null},la.prototype._parseRuleSetDeclaration=function(){return this.peek(n.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||ta.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||ta.prototype._parseRuleSetDeclaration.call(this)},la.prototype._parseKeyframeIdent=function(){return this._parseIdent([ie.Keyframe])||this._parseVariable()},la.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||ta.prototype._parseKeyframeSelector.call(this)},la.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||ta.prototype._parseSimpleSelectorBody.call(this)},la.prototype._parseSelector=function(e){var t=this.create(Re),r=!1;for(e&&(r=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){r=!0;var i=this.mark();if(t.addChild(this._parseGuard())&&this.peek(n.CurlyL))break;this.restoreAtMark(i),t.addChild(this._parseCombinator())}return r?this.finish(t):null},la.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var e=this.createNode(ne.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(n.Num)||this.accept(n.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null},la.prototype._parseSelectorIdent=function(){var e;return this.peekInterpolatedIdent()&&(e=this.createNode(ne.SelectorInterpolation),this._acceptInterpolatedIdent(e))?this.finish(e):null},la.prototype._parsePropertyIdentifier=function(e){void 0===e&&(e=!1);var t,r,n=/^[\w-]+/;return this.peekInterpolatedIdent()||this.peekRegExp(this.token.type,n)?(t=this.mark(),(r=this.create(fe)).isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-"),(e?r.isCustomProperty?r.addChild(this._parseIdent()):r.addChild(this._parseRegexp(n)):r.isCustomProperty?this._acceptInterpolatedIdent(r):this._acceptInterpolatedIdent(r,n))?(e||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace())||this.acceptIdent("_"),this.finish(r)):(this.restoreAtMark(t),null)):null},la.prototype.peekInterpolatedIdent=function(){return this.peek(n.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},la.prototype._acceptInterpolatedIdent=function(e,t){for(var r=this,i=!1,o=function(){var e=r.mark();return r.acceptDelim("-")&&(r.hasWhitespace()||r.acceptDelim("-"),r.hasWhitespace())?(r.restoreAtMark(e),null):r._parseInterpolation()},s=t?function(){return r.acceptRegexp(t)}:function(){return r.accept(n.Ident)};(s()||e.addChild(this._parseInterpolation()||this.try(o)))&&(i=!0,!this.hasWhitespace()););return i},la.prototype._parseInterpolation=function(){var e,t=this.mark();return this.peekDelim("@")||this.peekDelim("$")?(e=this.createNode(ne.Interpolation),this.consumeToken(),this.hasWhitespace()||!this.accept(n.CurlyL)?(this.restoreAtMark(t),null):e.addChild(this._parseIdent())?this.accept(n.CurlyR)?this.finish(e):this.finish(e,Bn.RightCurlyExpected):this.finish(e,Bn.IdentifierExpected)):null},la.prototype._tryParseMixinDeclaration=function(){var e=this.mark(),t=this.create(Cn);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(n.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,Bn.IdentifierExpected,[],[n.ParenthesisR]);return this.accept(n.ParenthesisR)&&(t.setGuard(this._parseGuard()),this.peek(n.CurlyL))?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)},la.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},la.prototype._parseMixinDeclarationIdentifier=function(){var e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(fe),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else{if(!this.peek(n.Hash))return null;e=this.create(fe),this.consumeToken()}return e.referenceTypes=[ie.Mixin],this.finish(e)},la.prototype._parsePseudo=function(){var e,t;return this.peek(n.Colon)?(e=this.mark(),t=this.create(cn),this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),ta.prototype._parsePseudo.call(this))):null},la.prototype._parseExtend=function(){var e,t;return this.peekDelim("&")?(e=this.mark(),t=this.create(cn),this.consumeToken(),!this.hasWhitespace()&&this.accept(n.Colon)&&this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),null)):null},la.prototype._completeExtends=function(e){if(!this.accept(n.ParenthesisL))return this.finish(e,Bn.LeftParenthesisExpected);var t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,Bn.SelectorExpected);for(;this.accept(n.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,Bn.SelectorExpected);return this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Bn.RightParenthesisExpected)},la.prototype._parseDetachedRuleSetMixin=function(){var e,t;return this.peek(n.AtKeyword)?(e=this.mark(),!(t=this.create(yn)).addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(n.ParenthesisL)?this.accept(n.ParenthesisR)?this.finish(t):this.finish(t,Bn.RightParenthesisExpected):(this.restoreAtMark(e),null)):null},la.prototype._tryParseMixinReference=function(e){void 0===e&&(e=!0);for(var t=this.mark(),r=this.create(yn),i=this._parseMixinDeclarationIdentifier();i;){this.acceptDelim(">");var o=this._parseMixinDeclarationIdentifier();if(!o)break;r.getNamespaces().addChild(i),i=o}if(!r.setIdentifier(i))return this.restoreAtMark(t),null;var s=!1;if(this.accept(n.ParenthesisL)){if(s=!0,r.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,Bn.ExpressionExpected);if(!this.accept(n.ParenthesisR))return this.finish(r,Bn.RightParenthesisExpected);i.referenceTypes=[ie.Mixin]}else i.referenceTypes=[ie.Mixin,ie.Rule];return this.peek(n.BracketL)?e||this._addLookupChildren(r):r.addChild(this._parsePrio()),s||this.peek(n.SemiColon)||this.peek(n.CurlyR)||this.peek(n.EOF)?this.finish(r):(this.restoreAtMark(t),null)},la.prototype._parseMixinArgument=function(){var e=this.create(ot),t=this.mark(),r=this._parseVariable();return r&&(this.accept(n.Colon)?e.setIdentifier(r):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)},la.prototype._parseMixinParameter=function(){var e,t=this.create(rt);return this.peekKeyword("@rest")?(e=this.create(ae),this.consumeToken(),this.accept(ca)?(t.setIdentifier(this.finish(e)),this.finish(t)):this.finish(t,Bn.DotExpected,[],[n.Comma,n.ParenthesisR])):this.peek(ca)?(e=this.create(ae),this.consumeToken(),t.setIdentifier(this.finish(e)),this.finish(t)):(e=!1,t.setIdentifier(this._parseVariable())&&(this.accept(n.Colon),e=!0),t.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||e?this.finish(t):null)},la.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var e=this.create(In);if(this.consumeToken(),e.isNegated=this.acceptIdent("not"),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,Bn.ConditionExpected);for(;this.acceptIdent("and")||this.accept(n.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,Bn.ConditionExpected);return this.finish(e)},la.prototype._parseGuardCondition=function(){var e;return this.peek(n.ParenthesisL)?(e=this.create(Tn),this.consumeToken(),e.addChild(this._parseExpr()),this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Bn.RightParenthesisExpected)):null},la.prototype._parseFunction=function(){var e=this.mark(),t=this.create(Ye);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(n.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,Bn.ExpressionExpected);return this.accept(n.ParenthesisR)?this.finish(t):this.finish(t,Bn.RightParenthesisExpected)},la.prototype._parseFunctionIdentifier=function(){var e;return this.peekDelim("%")?((e=this.create(fe)).referenceTypes=[ie.Function],this.consumeToken(),this.finish(e)):ta.prototype._parseFunctionIdentifier.call(this)},la.prototype._parseURLArgument=function(){var e=this.mark(),t=ta.prototype._parseURLArgument.call(this);return t&&this.peek(n.ParenthesisR)?t:(this.restoreAtMark(e),(t=this.create(ae)).addChild(this._parseBinaryExpr()),this.finish(t))},pa=function(e,t){return(pa=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var pa,fa;zo=jn;function da(e,t){return fa.call(this,"@",e,t)||this}function ma(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}pa(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(da,fa=Lo),da.prototype.createFunctionProposals=function(e,t,r,n){for(var i=0,o=e;i<o.length;i++){var s=o[i];s={label:s.name,detail:s.example,documentation:s.description,textEdit:Mi.replace(this.getCompletionRange(t),s.name+"($0)"),insertTextFormat:eo.Snippet,kind:Yi.Function};r&&(s.sortText="z"),n.items.push(s)}return n},da.prototype.getTermProposals=function(e,t,r){var n=da.builtInProposals;return e&&(n=n.filter((function(t){return!t.type||!e.restrictions||-1!==e.restrictions.indexOf(t.type)}))),this.createFunctionProposals(n,t,!0,r),fa.prototype.getTermProposals.call(this,e,t,r)},da.prototype.getColorProposals=function(e,t,r){return this.createFunctionProposals(da.colorProposals,t,!1,r),fa.prototype.getColorProposals.call(this,e,t,r)},da.prototype.getCompletionsForDeclarationProperty=function(e,t){return this.getCompletionsForSelector(null,!0,t),fa.prototype.getCompletionsForDeclarationProperty.call(this,e,t)},da.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:zo("less.builtin.if","returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:zo("less.builtin.boolean",'"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:zo("less.builtin.length","returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:zo("less.builtin.extract","returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:zo("less.builtin.range","generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:zo("less.builtin.each","bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:zo("less.builtin.escape","URL encodes a string")},{name:"e",example:"e(@string);",description:zo("less.builtin.e","escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:zo("less.builtin.replace","string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:zo("less.builtin.unit","remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:zo("less.builtin.color","parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:zo("less.builtin.convert","converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:zo("less.builtin.data-uri","inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:zo("less.builtin.abs","absolute value of a number"),example:"abs(number);"},{name:"acos",description:zo("less.builtin.acos","arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:zo("less.builtin.asin","arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:zo("less.builtin.ceil","rounds up to an integer")},{name:"cos",description:zo("less.builtin.cos","cosine function"),example:"cos(number);"},{name:"floor",description:zo("less.builtin.floor","rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:zo("less.builtin.percentage","converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:zo("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:zo("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:zo("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:zo("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:zo("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:zo("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:zo("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:zo("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:zo("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:zo("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],da.colorProposals=[{name:"argb",example:"argb(@color);",description:zo("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:zo("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:zo("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:zo("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:zo("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:zo("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:zo("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:zo("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:zo("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:zo("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:zo("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:zo("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:zo("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:zo("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:zo("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:zo("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:zo("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:zo("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:zo("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:zo("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:zo("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:zo("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:zo("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:zo("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:zo("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:zo("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:zo("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],ma.prototype.provideProperties=function(){return this._properties},ma.prototype.provideAtDirectives=function(){return this._atDirectives},ma.prototype.providePseudoClasses=function(){return this._pseudoClasses},ma.prototype.providePseudoElements=function(){return this._pseudoElements},ma.prototype.addData=function(e){if(Array.isArray(e.properties))for(var t=0,r=e.properties;t<r.length;t++)"string"==typeof(a=r[t]).name&&this._properties.push(a);if(Array.isArray(e.atDirectives))for(var n=0,i=e.atDirectives;n<i.length;n++)"string"==typeof(a=i[n]).name&&this._atDirectives.push(a);if(Array.isArray(e.pseudoClasses))for(var o=0,s=e.pseudoClasses;o<s.length;o++)"string"==typeof(a=s[o]).name&&this._pseudoClasses.push(a);if(Array.isArray(e.pseudoElements))for(var a,c=0,u=e.pseudoElements;c<u.length;c++)"string"==typeof(a=u[c]).name&&this._pseudoElements.push(a)},ga=function(e,t){return(ga=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var ga,ya,ba=function(e,t,r,n){return new(r=r||Promise)((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},va=function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var c=[s,a];if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(6===c[0]&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=t.call(e,o)}catch(a){c=[6,a],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}};function Ca(e){return ya.call(this,e)||this}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ga(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Ca,ya=as),Ca.prototype.isRawStringDocumentLinkNode=function(e){return ya.prototype.isRawStringDocumentLinkNode.call(this,e)||e.type===ne.Use||e.type===ne.Forward},Ca.prototype.resolveRelativeReference=function(e,t,r,n){return ba(this,void 0,void 0,(function(){var i,o,s,a;return va(this,(function(c){switch(c.label){case 0:return Y(e,"sass:")?[2,void 0]:[4,ya.prototype.resolveRelativeReference.call(this,e,t,r,n)];case 1:if(i=c.sent(),!(this.fileSystemProvider&&i&&n))return[3,8];o=vo.a.parse(i),c.label=2;case 2:if(c.trys.push([2,7,,8]),!(s=function(e){var t,r,n;if(""!==e.path&&!e.path.endsWith(".scss")&&!e.path.endsWith(".css"))return e.path.endsWith("/")?[e.with({path:e.path+"index.scss"}).toString(),e.with({path:e.path+"_index.scss"}).toString()]:(r=(r=e.path.split("/"))[r.length-1],t=e.path.slice(0,-r.length),r.startsWith("_")?e.path.endsWith(".scss")?void 0:[e.with({path:e.path+".scss"}).toString()]:[(n=function(r){return e.with({path:t+r}).toString()})(r+=".scss"),n("_"+r),n(r.slice(0,-5)+"/index.scss"),n(r.slice(0,-5)+"/_index.scss"),n(r.slice(0,-5)+".css")])}(o)))return[3,6];a=0,c.label=3;case 3:return a<s.length?[4,this.fileExists(s[a])]:[3,6];case 4:if(c.sent())return[2,s[a]];c.label=5;case 5:return a++,[3,3];case 6:return[3,8];case 7:return c.sent(),[3,8];case 8:return[2,i]}}))}))},ka.prototype.dispose=function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables=[]},ka.prototype._doValidate=function(e,t){this._worker(e).then((function(t){return t.doValidation(e.toString())})).then((function(r){r=r.map((function(e){return t="number"==typeof(e=e).code?String(e.code):e.code,{severity:function(e){switch(e){case Ti.Error:return i.MarkerSeverity.Error;case Ti.Warning:return i.MarkerSeverity.Warning;case Ti.Information:return i.MarkerSeverity.Info;case Ti.Hint:return i.MarkerSeverity.Hint;default:return i.MarkerSeverity.Info}}(e.severity),startLineNumber:e.range.start.line+1,startColumn:e.range.start.character+1,endLineNumber:e.range.end.line+1,endColumn:e.range.end.character+1,message:e.message,code:t,source:e.source};var t}));var n=i.editor.getModel(e);n&&n.getModeId()===t&&i.editor.setModelMarkers(n,t,r)})).then(void 0,(function(e){}))};var xa=ka;function ka(e,t,r){function n(e){var t,r=e.getModeId();r===s._languageId&&(s._listener[e.uri.toString()]=e.onDidChangeContent((function(){window.clearTimeout(t),t=window.setTimeout((function(){return s._doValidate(e.uri,r)}),500)})),s._doValidate(e.uri,r))}function o(e){i.editor.setModelMarkers(e,s._languageId,[]);e=e.uri.toString();var t=s._listener[e];t&&(t.dispose(),delete s._listener[e])}var s=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null),this._disposables.push(i.editor.onDidCreateModel(n)),this._disposables.push(i.editor.onWillDisposeModel(o)),this._disposables.push(i.editor.onDidChangeModelLanguage((function(e){o(e.model),n(e.model)}))),r.onDidChange((function(e){i.editor.getModels().forEach((function(e){e.getModeId()===s._languageId&&(o(e),n(e))}))})),this._disposables.push({dispose:function(){for(var e in s._listener)s._listener[e].dispose()}}),i.editor.getModels().forEach(n)}function _a(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function wa(e){if(e)return new i.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Pa(e){if(e)return{range:wa(e.range),text:e.newText}}Object.defineProperty(Ea.prototype,"triggerCharacters",{get:function(){return["/","-",":"]},enumerable:!1,configurable:!0}),Ea.prototype.provideCompletionItems=function(e,t,r,n){var o=e.uri;return this._worker(o).then((function(e){return e.doComplete(o.toString(),_a(t))})).then((function(r){var n,o;if(r)return o=e.getWordUntilPosition(t),n=new i.Range(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn),o=r.items.map((function(e){var t,r={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(r=e.command)&&"editor.action.triggerSuggest"===r.command?{id:r.command,title:r.title,arguments:r.arguments}:void 0,range:n,kind:function(e){var t=i.languages.CompletionItemKind;switch(e){case Yi.Text:return t.Text;case Yi.Method:return t.Method;case Yi.Function:return t.Function;case Yi.Constructor:return t.Constructor;case Yi.Field:return t.Field;case Yi.Variable:return t.Variable;case Yi.Class:return t.Class;case Yi.Interface:return t.Interface;case Yi.Module:return t.Module;case Yi.Property:return t.Property;case Yi.Unit:return t.Unit;case Yi.Value:return t.Value;case Yi.Enum:return t.Enum;case Yi.Keyword:return t.Keyword;case Yi.Snippet:return t.Snippet;case Yi.Color:return t.Color;case Yi.File:return t.File;case Yi.Reference:return t.Reference}return t.Property}(e.kind)};return e.textEdit&&(void 0!==(t=e.textEdit).insert&&void 0!==t.replace?r.range={insert:wa(e.textEdit.insert),replace:wa(e.textEdit.replace)}:r.range=wa(e.textEdit.range),r.insertText=e.textEdit.newText),e.additionalTextEdits&&(r.additionalTextEdits=e.additionalTextEdits.map(Pa)),e.insertTextFormat===eo.Snippet&&(r.insertTextRules=i.languages.CompletionItemInsertTextRule.InsertAsSnippet),r})),{isIncomplete:r.isIncomplete,suggestions:o}}))};var Sa=Ea;function Ea(e){this._worker=e}function Ra(e){var t;return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"}}Aa.prototype.provideHover=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.doHover(n.toString(),_a(t))})).then((function(e){if(e)return{range:wa(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(Ra):[Ra(e)]}(e.contents)}}))};var Ia=Aa;function Aa(e){this._worker=e}Ta.prototype.provideDocumentHighlights=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.findDocumentHighlights(n.toString(),_a(t))})).then((function(e){if(e)return e.map((function(e){return{range:wa(e.range),kind:function(e){switch(e){case no.Read:return i.languages.DocumentHighlightKind.Read;case no.Write:return i.languages.DocumentHighlightKind.Write;case no.Text:return i.languages.DocumentHighlightKind.Text}return i.languages.DocumentHighlightKind.Text}(e.kind)}}))}))};var Da=Ta;function Ta(e){this._worker=e}function Fa(e){return{uri:i.Uri.parse(e.uri),range:wa(e.range)}}Ma.prototype.provideDefinition=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.findDefinition(n.toString(),_a(t))})).then((function(e){if(e)return[Fa(e)]}))};var Oa=Ma;function Ma(e){this._worker=e}Va.prototype.provideReferences=function(e,t,r,n){var i=e.uri;return this._worker(i).then((function(e){return e.findReferences(i.toString(),_a(t))})).then((function(e){if(e)return e.map(Fa)}))};var La=Va;function Va(e){this._worker=e}$a.prototype.provideRenameEdits=function(e,t,r,n){var o=e.uri;return this._worker(o).then((function(e){return e.doRename(o.toString(),_a(t),r)})).then((function(e){var t=e;if(t&&t.changes){var r,n=[];for(r in t.changes)for(var o=i.Uri.parse(r),s=0,a=t.changes[r];s<a.length;s++){var c=a[s];n.push({resource:o,edit:{range:wa(c.range),text:c.newText}})}return{edits:n}}}))};var Na=$a;function $a(e){this._worker=e}Ba.prototype.provideDocumentSymbols=function(e,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDocumentSymbols(r.toString())})).then((function(e){if(e)return e.map((function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:function(e){var t=i.languages.SymbolKind;switch(e){case io.File:return t.Array;case io.Module:return t.Module;case io.Namespace:return t.Namespace;case io.Package:return t.Package;case io.Class:return t.Class;case io.Method:return t.Method;case io.Property:return t.Property;case io.Field:return t.Field;case io.Constructor:return t.Constructor;case io.Enum:return t.Enum;case io.Interface:return t.Interface;case io.Function:return t.Function;case io.Variable:return t.Variable;case io.Constant:return t.Constant;case io.String:return t.String;case io.Number:return t.Number;case io.Boolean:return t.Boolean;case io.Array:return t.Array}return t.Function}(e.kind),tags:[],range:wa(e.location.range),selectionRange:wa(e.location.range)}}))}))};var ja=Ba;function Ba(e){this._worker=e}Wa.prototype.provideDocumentColors=function(e,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDocumentColors(r.toString())})).then((function(e){if(e)return e.map((function(e){return{color:e.color,range:wa(e.range)}}))}))},Wa.prototype.provideColorPresentations=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getColorPresentations(n.toString(),t.color,function(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}(t.range))})).then((function(e){if(e)return e.map((function(e){var t={label:e.label};return e.textEdit&&(t.textEdit=Pa(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Pa)),t}))}))};var Ua=Wa;function Wa(e){this._worker=e}qa.prototype.provideFoldingRanges=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getFoldingRanges(n.toString(),t)})).then((function(e){if(e)return e.map((function(e){var t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case Ai.Comment:return i.languages.FoldingRangeKind.Comment;case Ai.Imports:return i.languages.FoldingRangeKind.Imports;case Ai.Region:return i.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))};var Ka=qa;function qa(e){this._worker=e}Ha.prototype.provideSelectionRanges=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getSelectionRanges(n.toString(),t.map(_a))})).then((function(e){if(e)return e.map((function(e){for(var t=[];e;)t.push({range:wa(e.range)}),e=e.parent;return t}))}))};var za=Ha;function Ha(e){this._worker=e}function Ga(e){function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c.getLanguageServiceWorker.apply(c,e)}var r,n,s=[],a=[],c=new o(e);return s.push(c),r=e.languageId,n=e.modeConfiguration,Ja(a),n.completionItems&&a.push(i.languages.registerCompletionItemProvider(r,new Sa(t))),n.hovers&&a.push(i.languages.registerHoverProvider(r,new Ia(t))),n.documentHighlights&&a.push(i.languages.registerDocumentHighlightProvider(r,new Da(t))),n.definitions&&a.push(i.languages.registerDefinitionProvider(r,new Oa(t))),n.references&&a.push(i.languages.registerReferenceProvider(r,new La(t))),n.documentSymbols&&a.push(i.languages.registerDocumentSymbolProvider(r,new ja(t))),n.rename&&a.push(i.languages.registerRenameProvider(r,new Na(t))),n.colors&&a.push(i.languages.registerColorProvider(r,new Ua(t))),n.foldingRanges&&a.push(i.languages.registerFoldingRangeProvider(r,new Ka(t))),n.diagnostics&&a.push(new xa(r,t,e)),n.selectionRanges&&a.push(i.languages.registerSelectionRangeProvider(r,new za(t))),s.push(Qa(a)),Qa(s)}function Qa(e){return{dispose:function(){return Ja(e)}}}function Ja(e){for(;e.length;)e.pop().dispose()}},ed59:function(e,t,r){"use strict";(function(e){var n,i;function o(e){var t;return(i[e]||(t=i[e]={exports:{}},n[e](t,t.exports,o),t)).exports}r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return a})),n={470:t=>{function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var r,n="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(47===r)break;r=47}if(47===r){if(o!==a-1&&1!==s)if(o!==a-1&&2===s){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(2<n.length){var c=n.lastIndexOf("/");if(c!==n.length-1){i=-1===c?(n="",0):(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=a,s=0;continue}}else if(2===n.length||1===n.length){n="",o=a,s=i=0;continue}t&&(0<n.length?n+="/..":n="..",i=2)}else 0<n.length?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===r&&-1!==s?++s:s=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,s=arguments.length-1;-1<=s&&!o;s--){var a=0<=s?arguments[s]:t=void 0===t?e.cwd():t;r(a),0!==a.length&&(i=a+"/"+i,o=47===a.charCodeAt(0))}return i=n(i,!o),o?0<i.length?"/"+i:"/":0<i.length?i:"."},normalize:function(e){var t,i;return r(e),0===e.length?".":(t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1),0<(e=0!==(e=n(e,!t)).length||t?e:".").length&&i&&(e+="/"),t?"/"+e:e)},isAbsolute:function(e){return r(e),0<e.length&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),0<n.length&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var o=e.length,s=o-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var c=t.length-a,u=s<c?s:c,h=-1,l=0;l<=u;++l){if(l===u){if(u<c){if(47===t.charCodeAt(a+l))return t.slice(a+l+1);if(0===l)return t.slice(a+l)}else u<s&&(47===e.charCodeAt(n+l)?h=l:0===l&&(h=0));break}var p=e.charCodeAt(n+l);if(p!==t.charCodeAt(a+l))break;47===p&&(h=l)}var f="";for(l=n+h+1;l<=o;++l)l!==o&&47!==e.charCodeAt(l)||(0===f.length?f+="..":f+="/..");return 0<f.length?f+t.slice(a+h):(47===t.charCodeAt(a+=h)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=47===e.charCodeAt(0),n=-1,i=!0,o=e.length-1;1<=o;--o)if(47===e.charCodeAt(o)){if(!i){n=o;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n=0,i=-1,o=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";for(var s=t.length-1,a=-1,c=e.length-1;0<=c;--c){var u=e.charCodeAt(c);if(47===u){if(!o){n=c+1;break}}else-1===a&&(o=!1,a=c+1),0<=s&&(u===t.charCodeAt(s)?-1==--s&&(i=c):(s=-1,i=a))}return n===i?i=a:-1===i&&(i=e.length),e.slice(n,i)}for(c=e.length-1;0<=c;--c)if(47===e.charCodeAt(c)){if(!o){n=c+1;break}}else-1===i&&(o=!1,i=c+1);return-1===i?"":e.slice(n,i)},extname:function(e){r(e);for(var t=-1,n=0,i=-1,o=!0,s=0,a=e.length-1;0<=a;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(o=!1,i=a+1),46===c?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){n=a+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r;var t,r},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){for(var n,i=47===e.charCodeAt(0),o=i?(t.root="/",1):0,s=-1,a=0,c=-1,u=!0,h=e.length-1,l=0;o<=h;--h)if(47!==(n=e.charCodeAt(h)))-1===c&&(u=!1,c=h+1),46===n?-1===s?s=h:1!==l&&(l=1):-1!==s&&(l=-1);else if(!u){a=h+1;break}-1===s||-1===c||0===l||1===l&&s===c-1&&s===a+1?-1!==c&&(t.base=t.name=0===a&&i?e.slice(1,c):e.slice(a,c)):(0===a&&i?(t.name=e.slice(1,s),t.base=e.slice(1,c)):(t.name=e.slice(a,s),t.base=e.slice(a,c)),t.ext=e.slice(s,c)),0<a?t.dir=e.slice(0,a-1):i&&(t.dir="/")}return t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i},447:(t,r,n)=>{var i;n.r(r),n.d(r,{URI:()=>p,Utils:()=>S}),"object"==typeof e?i="win32"===e.platform:"object"==typeof navigator&&(i=0<=navigator.userAgent.indexOf("Windows")),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var o,s,a,c=/^\w[\w\d+.-]*$/,u=/^\//,h=/^\/\//,l=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,p=(b.isUri=function(e){return e instanceof b||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(b.prototype,"fsPath",{get:function(){return x(this,!1)},enumerable:!1,configurable:!0}),b.prototype.with=function(e){var t,r,n,i;return e&&(t=e.scheme,r=e.authority,n=e.path,i=e.query,e=e.fragment,void 0===t?t=this.scheme:null===t&&(t=""),void 0===r?r=this.authority:null===r&&(r=""),void 0===n?n=this.path:null===n&&(n=""),void 0===i?i=this.query:null===i&&(i=""),void 0===e?e=this.fragment:null===e&&(e=""),t!==this.scheme||r!==this.authority||n!==this.path||i!==this.query||e!==this.fragment)?new d(t,r,n,i,e):this},b.parse=function(e,t){return void 0===t&&(t=!1),e=l.exec(e),e?new d(e[2]||"",w(e[4]||""),w(e[5]||""),w(e[7]||""),w(e[9]||""),t):new d("","","","","")},b.file=function(e){var t,r="";return"/"===(e=i?e.replace(/\\/g,"/"):e)[0]&&"/"===e[1]&&(e=-1===(t=e.indexOf("/",2))?(r=e.substring(2),"/"):(r=e.substring(2,t),e.substring(t)||"/")),new d("file",r,e,"","")},b.from=function(e){return new d(e.scheme,e.authority,e.path,e.query,e.fragment)},b.prototype.toString=function(e){return k(this,e=void 0!==e&&e)},b.prototype.toJSON=function(){return this},b.revive=function(e){var t;return e&&(e instanceof b?e:((t=new d(e))._formatted=e.external,t._fsPath=e._sep===f?e.fsPath:null,t))},b),f=i?1:void 0,d=(o(a=g,r=s=p),a.prototype=null===r?Object.create(r):(y.prototype=r.prototype,new y),Object.defineProperty(g.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=x(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),g.prototype.toString=function(e){return(e=void 0!==e&&e)?k(this,!0):(this._formatted||(this._formatted=k(this,!1)),this._formatted)},g.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},g),m=((r={})[58]="%3A",r[47]="%2F",r[63]="%3F",r[35]="%23",r[91]="%5B",r[93]="%5D",r[64]="%40",r[33]="%21",r[36]="%24",r[38]="%26",r[39]="%27",r[40]="%28",r[41]="%29",r[42]="%2A",r[43]="%2B",r[44]="%2C",r[59]="%3B",r[61]="%3D",r[32]="%20",r);function g(){var e=null!==s&&s.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}function y(){this.constructor=a}function b(e,t,r,n,i,o){if(void 0===o&&(o=!1),"object"==typeof e)this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||"";else{if(this.scheme=e||o?e:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,r||""),this.query=n||"",this.fragment=i||"",e=this,t=o,!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(h.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function v(e,t){for(var r=void 0,n=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);97<=o&&o<=122||65<=o&&o<=90||48<=o&&o<=57||45===o||46===o||95===o||126===o||t&&47===o?(-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),void 0!==r&&(r+=e.charAt(i))):(void 0===r&&(r=e.substr(0,i)),void 0!==(o=m[o])?(-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=o):-1===n&&(n=i))}return-1!==n&&(r+=encodeURIComponent(e.substring(n))),void 0!==r?r:e}function C(e){for(var t=void 0,r=0;r<e.length;r++){var n=e.charCodeAt(r);35===n||63===n?(void 0===t&&(t=e.substr(0,r)),t+=m[n]):void 0!==t&&(t+=e[r])}return void 0!==t?t:e}function x(e,t){return t=e.authority&&1<e.path.length&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(65<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=90||97<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i?t.replace(/\//g,"\\"):t}function k(e,t){var r,n,i=t?C:v,o="",s=e.scheme,a=e.authority,c=e.path,u=e.query;e=e.fragment;return s&&(o=o+s+":"),!a&&"file"!==s||(o+="//"),a&&(-1!==(s=a.indexOf("@"))&&(r=a.substr(0,s),a=a.substr(s+1),-1===(s=r.indexOf(":"))?o+=i(r,!1):o=(o=o+i(r.substr(0,s),!1)+":")+i(r.substr(s+1),!1),o+="@"),-1===(s=(a=a.toLowerCase()).indexOf(":"))?o+=i(a,!1):o=(o+=i(a.substr(0,s),!1))+a.substr(s)),c&&(3<=c.length&&47===c.charCodeAt(0)&&58===c.charCodeAt(2)?65<=(n=c.charCodeAt(1))&&n<=90&&(c="/"+String.fromCharCode(n+32)+":"+c.substr(3)):2<=c.length&&58===c.charCodeAt(1)&&65<=(n=c.charCodeAt(0))&&n<=90&&(c=String.fromCharCode(n+32)+":"+c.substr(2)),o+=i(c,!0)),u&&(o=(o+="?")+i(u,!1)),e?(o+="#")+(t?e:v(e,!1)):o}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(_)?e.replace(_,(function t(r){try{return decodeURIComponent(r)}catch(e){return 3<r.length?r.substr(0,3)+t(r.substr(3)):r}})):e}function P(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}r=n(470);var S,E=r.posix||r;(n=S=S||{}).joinPath=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e.with({path:E.join.apply(E,P([e.path],t))})},n.resolvePath=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=e.path||"/";return e.with({path:E.resolve.apply(E,P([n],t))})},n.dirname=function(e){var t=E.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)?e:e.with({path:t})},n.basename=function(e){return E.basename(e.path)},n.extname=function(e){return E.extname(e.path)}}},i={},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};const{URI:s,Utils:a}=o(447)}).call(this,r("f28c"))}}]); |