code-server
Version:
Run VS Code on a remote server.
1 lines • 1.04 MB
JavaScript
"use strict";exports.id=920,exports.ids=[920],exports.modules={866:(e,t,n)=>{var i;n.r(t),n.d(t,{ClientCapabilities:()=>ri,CodeAction:()=>In,CodeActionContext:()=>Tn,CodeActionKind:()=>Dn,Color:()=>Wt,ColorInformation:()=>qt,ColorPresentation:()=>Lt,Command:()=>Gt,CompletionItem:()=>bn,CompletionItemKind:()=>hn,CompletionItemTag:()=>un,CompletionList:()=>yn,Diagnostic:()=>Ht,DiagnosticSeverity:()=>Vt,DocumentHighlight:()=>xn,DocumentHighlightKind:()=>Cn,DocumentLink:()=>zn,DocumentSymbol:()=>Rn,DocumentUri:()=>Dt,FileType:()=>si,FoldingRange:()=>$t,FoldingRangeKind:()=>jt,Hover:()=>wn,InsertTextFormat:()=>pn,Location:()=>zt,MarkedString:()=>vn,MarkupContent:()=>dn,MarkupKind:()=>cn,Position:()=>Pt,Range:()=>Ot,SelectionRange:()=>Nn,SymbolInformation:()=>An,SymbolKind:()=>Fn,TextDocument:()=>ii,TextDocumentEdit:()=>Zt,TextEdit:()=>Jt,VersionedTextDocumentIdentifier:()=>on,WorkspaceEdit:()=>rn,getCSSLanguageService:()=>ko,getDefaultCSSDataProvider:()=>_o,getLESSLanguageService:()=>Eo,getSCSSLanguageService:()=>Ao,newCSSDataProvider:()=>Co}),function(e){e[e.Ident=0]="Ident",e[e.AtKeyword=1]="AtKeyword",e[e.String=2]="String",e[e.BadString=3]="BadString",e[e.UnquotedString=4]="UnquotedString",e[e.Hash=5]="Hash",e[e.Num=6]="Num",e[e.Percentage=7]="Percentage",e[e.Dimension=8]="Dimension",e[e.UnicodeRange=9]="UnicodeRange",e[e.CDO=10]="CDO",e[e.CDC=11]="CDC",e[e.Colon=12]="Colon",e[e.SemiColon=13]="SemiColon",e[e.CurlyL=14]="CurlyL",e[e.CurlyR=15]="CurlyR",e[e.ParenthesisL=16]="ParenthesisL",e[e.ParenthesisR=17]="ParenthesisR",e[e.BracketL=18]="BracketL",e[e.BracketR=19]="BracketR",e[e.Whitespace=20]="Whitespace",e[e.Includes=21]="Includes",e[e.Dashmatch=22]="Dashmatch",e[e.SubstringOperator=23]="SubstringOperator",e[e.PrefixOperator=24]="PrefixOperator",e[e.SuffixOperator=25]="SuffixOperator",e[e.Delim=26]="Delim",e[e.EMS=27]="EMS",e[e.EXS=28]="EXS",e[e.Length=29]="Length",e[e.Angle=30]="Angle",e[e.Time=31]="Time",e[e.Freq=32]="Freq",e[e.Exclamation=33]="Exclamation",e[e.Resolution=34]="Resolution",e[e.Comma=35]="Comma",e[e.Charset=36]="Charset",e[e.EscapedJavaScript=37]="EscapedJavaScript",e[e.BadEscapedJavaScript=38]="BadEscapedJavaScript",e[e.Comment=39]="Comment",e[e.SingleLineComment=40]="SingleLineComment",e[e.EOF=41]="EOF",e[e.ContainerQueryLength=42]="ContainerQueryLength",e[e.CustomToken=43]="CustomToken"}(i||(i={}));class r{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,t=this.position){return this.source.substring(e,t)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let t=0;for(;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}}const s="a".charCodeAt(0),o="f".charCodeAt(0),a="z".charCodeAt(0),l=("u".charCodeAt(0),"A".charCodeAt(0)),c="F".charCodeAt(0),d="Z".charCodeAt(0),h="0".charCodeAt(0),p="9".charCodeAt(0),u="~".charCodeAt(0),m="^".charCodeAt(0),f="=".charCodeAt(0),g="|".charCodeAt(0),b="-".charCodeAt(0),y="_".charCodeAt(0),v="%".charCodeAt(0),w="*".charCodeAt(0),S="(".charCodeAt(0),_=")".charCodeAt(0),C="<".charCodeAt(0),x=">".charCodeAt(0),F="@".charCodeAt(0),k="#".charCodeAt(0),A="$".charCodeAt(0),E="\\".charCodeAt(0),R="/".charCodeAt(0),D="\n".charCodeAt(0),M="\r".charCodeAt(0),T="\f".charCodeAt(0),I='"'.charCodeAt(0),P="'".charCodeAt(0),O=" ".charCodeAt(0),z="\t".charCodeAt(0),N=";".charCodeAt(0),W=":".charCodeAt(0),q="{".charCodeAt(0),L="}".charCodeAt(0),j="[".charCodeAt(0),$="]".charCodeAt(0),U=",".charCodeAt(0),V=".".charCodeAt(0),B="!".charCodeAt(0),K="?".charCodeAt(0),H="+".charCodeAt(0),G={};G[N]=i.SemiColon,G[W]=i.Colon,G[q]=i.CurlyL,G[L]=i.CurlyR,G[$]=i.BracketR,G[j]=i.BracketL,G[S]=i.ParenthesisL,G[_]=i.ParenthesisR,G[U]=i.Comma;const J={};J.em=i.EMS,J.ex=i.EXS,J.px=i.Length,J.cm=i.Length,J.mm=i.Length,J.in=i.Length,J.pt=i.Length,J.pc=i.Length,J.deg=i.Angle,J.rad=i.Angle,J.grad=i.Angle,J.ms=i.Time,J.s=i.Time,J.hz=i.Freq,J.khz=i.Freq,J["%"]=i.Percentage,J.fr=i.Percentage,J.dpi=i.Resolution,J.dpcm=i.Resolution,J.cqw=i.ContainerQueryLength,J.cqh=i.ContainerQueryLength,J.cqi=i.ContainerQueryLength,J.cqb=i.ContainerQueryLength,J.cqmin=i.ContainerQueryLength,J.cqmax=i.ContainerQueryLength;class X{constructor(){this.stream=new r(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new r(e)}finishToken(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}}substring(e,t){return this.stream.substring(e,e+t)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){const e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,i.UnquotedString,t.join("")):null}scan(){const e=this.trivia();if(null!==e)return e;const t=this.stream.pos();return this.stream.eos()?this.finishToken(t,i.EOF):this.scanNext(t)}tryScanUnicode(){const e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,i.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([C,B,b,b]))return this.finishToken(e,i.CDO);if(this.stream.advanceIfChars([b,b,x]))return this.finishToken(e,i.CDC);let t=[];if(this.ident(t))return this.finishToken(e,i.Ident,t.join(""));if(this.stream.advanceIfChar(F)){if(t=["@"],this._name(t)){const n=t.join("");return"@charset"===n?this.finishToken(e,i.Charset,n):this.finishToken(e,i.AtKeyword,n)}return this.finishToken(e,i.Delim)}if(this.stream.advanceIfChar(k))return t=["#"],this._name(t)?this.finishToken(e,i.Hash,t.join("")):this.finishToken(e,i.Delim);if(this.stream.advanceIfChar(B))return this.finishToken(e,i.Exclamation);if(this._number()){const n=this.stream.pos();if(t=[this.stream.substring(e,n)],this.stream.advanceIfChar(v))return this.finishToken(e,i.Percentage);if(this.ident(t)){const r=this.stream.substring(n).toLowerCase(),s=J[r];return void 0!==s?this.finishToken(e,s,t.join("")):this.finishToken(e,i.Dimension,t.join(""))}return this.finishToken(e,i.Num)}t=[];let n=this._string(t);return null!==n?this.finishToken(e,n,t.join("")):(n=G[this.stream.peekChar()],void 0!==n?(this.stream.advance(1),this.finishToken(e,n)):this.stream.peekChar(0)===u&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,i.Includes)):this.stream.peekChar(0)===g&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,i.Dashmatch)):this.stream.peekChar(0)===w&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,i.SubstringOperator)):this.stream.peekChar(0)===m&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,i.PrefixOperator)):this.stream.peekChar(0)===A&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,i.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,i.Delim)))}trivia(){for(;;){const e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,i.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,i.Comment)}}}comment(){if(this.stream.advanceIfChars([R,w])){let e=!1,t=!1;return this.stream.advanceWhileChar((n=>t&&n===R?(e=!0,!1):(t=n===w,!0))),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,t=!1;const n=this.stream.peekChar();n!==H&&n!==b||e++,this.stream.peekChar(e)===V&&(e++,t=!0);const i=this.stream.peekChar(e);return i>=h&&i<=p&&(this.stream.advance(e+1),this.stream.advanceWhileChar((e=>e>=h&&e<=p||!t&&e===V)),!0)}_newline(e){const t=this.stream.peekChar();switch(t){case M:case T:case D:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===M&&this.stream.advanceIfChar(D)&&e.push("\n"),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===E){this.stream.advance(1),n=this.stream.peekChar();let i=0;for(;i<6&&(n>=h&&n<=p||n>=s&&n<=o||n>=l&&n<=c);)this.stream.advance(1),n=this.stream.peekChar(),i++;if(i>0){try{const t=parseInt(this.stream.substring(this.stream.pos()-i),16);t&&e.push(String.fromCharCode(t))}catch(e){}return n===O||n===z?this.stream.advance(1):this._newline([]),!0}if(n!==M&&n!==T&&n!==D)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1}_stringChar(e,t){const n=this.stream.peekChar();return 0!==n&&n!==e&&n!==E&&n!==M&&n!==T&&n!==D&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)}_string(e){if(this.stream.peekChar()===P||this.stream.peekChar()===I){const 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)),i.String):i.BadString}return null}_unquotedChar(e){const t=this.stream.peekChar();return 0!==t&&t!==E&&t!==P&&t!==I&&t!==S&&t!==_&&t!==O&&t!==z&&t!==D&&t!==T&&t!==M&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unquotedString(e){let t=!1;for(;this._unquotedChar(e)||this._escape(e);)t=!0;return t}_whitespace(){return this.stream.advanceWhileChar((e=>e===O||e===z||e===D||e===T||e===M))>0}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t}ident(e){const t=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1}_identFirstChar(e){const t=this.stream.peekChar();return(t===y||t>=s&&t<=a||t>=l&&t<=d||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_minus(e){const t=this.stream.peekChar();return t===b&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_identChar(e){const t=this.stream.peekChar();return(t===y||t===b||t>=s&&t<=a||t>=l&&t<=d||t>=h&&t<=p||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unicodeRange(){if(this.stream.advanceIfChar(H)){const e=e=>e>=h&&e<=p||e>=s&&e<=o||e>=l&&e<=c,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar((e=>e===K));if(t>=1&&t<=6){if(!this.stream.advanceIfChar(b))return!0;{const t=this.stream.advanceWhileChar(e);if(t>=1&&t<=6)return!0}}}return!1}}function Y(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Q(e,t){let n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function Z(e,t=!0){return e?e.length<140?e:e.slice(0,140)+(t?"…":""):""}function ee(e,t){let n="";for(;t>0;)1&~t||(n+=e),e+=e,t>>>=1;return n}var te,ne;function ie(e,t){let n=null;return!e||t<e.offset||t>e.end?null:(e.accept((e=>-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0))),n)}function re(e,t){let n=ie(e,t);const i=[];for(;n;)i.unshift(n),n=n.parent;return i}!function(e){e[e.Undefined=0]="Undefined",e[e.Identifier=1]="Identifier",e[e.Stylesheet=2]="Stylesheet",e[e.Ruleset=3]="Ruleset",e[e.Selector=4]="Selector",e[e.SimpleSelector=5]="SimpleSelector",e[e.SelectorInterpolation=6]="SelectorInterpolation",e[e.SelectorCombinator=7]="SelectorCombinator",e[e.SelectorCombinatorParent=8]="SelectorCombinatorParent",e[e.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",e[e.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",e[e.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",e[e.Page=12]="Page",e[e.PageBoxMarginBox=13]="PageBoxMarginBox",e[e.ClassSelector=14]="ClassSelector",e[e.IdentifierSelector=15]="IdentifierSelector",e[e.ElementNameSelector=16]="ElementNameSelector",e[e.PseudoSelector=17]="PseudoSelector",e[e.AttributeSelector=18]="AttributeSelector",e[e.Declaration=19]="Declaration",e[e.Declarations=20]="Declarations",e[e.Property=21]="Property",e[e.Expression=22]="Expression",e[e.BinaryExpression=23]="BinaryExpression",e[e.Term=24]="Term",e[e.Operator=25]="Operator",e[e.Value=26]="Value",e[e.StringLiteral=27]="StringLiteral",e[e.URILiteral=28]="URILiteral",e[e.EscapedValue=29]="EscapedValue",e[e.Function=30]="Function",e[e.NumericValue=31]="NumericValue",e[e.HexColorValue=32]="HexColorValue",e[e.RatioValue=33]="RatioValue",e[e.MixinDeclaration=34]="MixinDeclaration",e[e.MixinReference=35]="MixinReference",e[e.VariableName=36]="VariableName",e[e.VariableDeclaration=37]="VariableDeclaration",e[e.Prio=38]="Prio",e[e.Interpolation=39]="Interpolation",e[e.NestedProperties=40]="NestedProperties",e[e.ExtendsReference=41]="ExtendsReference",e[e.SelectorPlaceholder=42]="SelectorPlaceholder",e[e.Debug=43]="Debug",e[e.If=44]="If",e[e.Else=45]="Else",e[e.For=46]="For",e[e.Each=47]="Each",e[e.While=48]="While",e[e.MixinContentReference=49]="MixinContentReference",e[e.MixinContentDeclaration=50]="MixinContentDeclaration",e[e.Media=51]="Media",e[e.Keyframe=52]="Keyframe",e[e.FontFace=53]="FontFace",e[e.Import=54]="Import",e[e.Namespace=55]="Namespace",e[e.Invocation=56]="Invocation",e[e.FunctionDeclaration=57]="FunctionDeclaration",e[e.ReturnStatement=58]="ReturnStatement",e[e.MediaQuery=59]="MediaQuery",e[e.MediaCondition=60]="MediaCondition",e[e.MediaFeature=61]="MediaFeature",e[e.FunctionParameter=62]="FunctionParameter",e[e.FunctionArgument=63]="FunctionArgument",e[e.KeyframeSelector=64]="KeyframeSelector",e[e.ViewPort=65]="ViewPort",e[e.Document=66]="Document",e[e.AtApplyRule=67]="AtApplyRule",e[e.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",e[e.CustomPropertySet=69]="CustomPropertySet",e[e.ListEntry=70]="ListEntry",e[e.Supports=71]="Supports",e[e.SupportsCondition=72]="SupportsCondition",e[e.NamespacePrefix=73]="NamespacePrefix",e[e.GridLine=74]="GridLine",e[e.Plugin=75]="Plugin",e[e.UnknownAtRule=76]="UnknownAtRule",e[e.Use=77]="Use",e[e.ModuleConfiguration=78]="ModuleConfiguration",e[e.Forward=79]="Forward",e[e.ForwardVisibility=80]="ForwardVisibility",e[e.Module=81]="Module",e[e.UnicodeRange=82]="UnicodeRange",e[e.Layer=83]="Layer",e[e.LayerNameList=84]="LayerNameList",e[e.LayerName=85]="LayerName",e[e.PropertyAtRule=86]="PropertyAtRule",e[e.Container=87]="Container",e[e.ModuleConfig=88]="ModuleConfig",e[e.SelectorList=89]="SelectorList",e[e.StartingStyleAtRule=90]="StartingStyleAtRule"}(te||(te={})),function(e){e[e.Mixin=0]="Mixin",e[e.Rule=1]="Rule",e[e.Variable=2]="Variable",e[e.Function=3]="Function",e[e.Keyframe=4]="Keyframe",e[e.Unknown=5]="Unknown",e[e.Module=6]="Module",e[e.Forward=7]="Forward",e[e.ForwardVisibility=8]="ForwardVisibility",e[e.Property=9]="Property"}(ne||(ne={}));class se{get end(){return this.offset+this.length}constructor(e=-1,t=-1,n){this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}set type(e){this.nodeType=e}get type(){return this.nodeType||te.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(const t of this.children)t.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,t=-1){if(e.parent&&e.parent.children){const t=e.parent.children.indexOf(e);t>=0&&e.parent.children.splice(t,1)}e.parent=this;let n=this.children;return n||(n=this.children=[]),-1!==t?n.splice(t,0,e):n.push(e),e}attachTo(e,t=-1){return e&&e.adoptChild(this,t),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some((t=>t.getRule()===e))}isErroneous(e=!1){return!!(this.issues&&this.issues.length>0)||e&&Array.isArray(this.children)&&this.children.some((e=>e.isErroneous(!0)))}setNode(e,t,n=-1){return!!t&&(t.attachTo(this,n),this[e]=t,!0)}addChild(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)}updateOffsetAndLength(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset);const t=e.end;(t>this.end||-1===this.length)&&(this.length=t-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e<this.children.length?this.children[e]:null}addChildren(e){for(const t of e)this.addChild(t)}findFirstChildBeforeOffset(e){if(this.children){let t=null;for(let n=this.children.length-1;n>=0;n--)if(t=this.children[n],t.offset<=e)return t}return null}findChildAtOffset(e,t){const n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof oe;)e=e.parent;return e}findParent(e){let t=this;for(;t&&t.type!==e;)t=t.parent;return t}findAParent(...e){let t=this;for(;t&&!e.some((e=>t.type===e));)t=t.parent;return t}setData(e,t){this.options||(this.options={}),this.options[e]=t}getData(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null}}class oe extends se{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}}class ae extends se{constructor(e,t){super(e,t)}get type(){return te.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}}class le extends se{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return te.Identifier}containsInterpolation(){return this.hasChildren()}}class ce extends se{constructor(e,t){super(e,t)}get type(){return te.Stylesheet}}class de extends se{constructor(e,t){super(e,t)}get type(){return te.Declarations}}class he extends se{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}}class pe extends he{constructor(e,t){super(e,t)}get type(){return te.Ruleset}getSelectors(){return this.selectors||(this.selectors=new oe(this)),this.selectors}isNested(){return!!this.parent&&null!==this.parent.findParent(te.Declarations)}}class ue extends se{constructor(e,t){super(e,t)}get type(){return te.Selector}}class me extends se{constructor(e,t){super(e,t)}get type(){return te.SimpleSelector}}class fe extends se{constructor(e,t){super(e,t)}}class ge extends he{constructor(e,t){super(e,t)}get type(){return te.CustomPropertySet}}class be extends fe{constructor(e,t){super(e,t),this.property=null}get type(){return te.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){const e=this.property?this.property.getName():"unknown";if(this.parent instanceof de&&this.parent.getParent()instanceof Te){const t=this.parent.getParent().getParent();if(t instanceof be)return t.getFullPropertyName()+e}return e}getNonPrefixedPropertyName(){const e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){const t=e.indexOf("-",1);if(-1!==t)return e.substring(t+1)}return e}setValue(e){return this.setNode("value",e)}getValue(){return this.value}setNestedProperties(e){return this.setNode("nestedProperties",e)}getNestedProperties(){return this.nestedProperties}}class ye extends be{constructor(e,t){super(e,t)}get type(){return te.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}}class ve extends se{constructor(e,t){super(e,t)}get type(){return te.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return function(e,t){const n=/[_\+]+$/.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}(this.getText())}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}}class we extends se{constructor(e,t){super(e,t)}get type(){return te.Invocation}getArguments(){return this.arguments||(this.arguments=new oe(this)),this.arguments}}class Se extends we{constructor(e,t){super(e,t)}get type(){return te.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}}class _e extends se{constructor(e,t){super(e,t)}get type(){return te.FunctionParameter}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(e){return this.setNode("defaultValue",e,0)}getDefaultValue(){return this.defaultValue}}class Ce extends se{constructor(e,t){super(e,t)}get type(){return te.FunctionArgument}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}}class xe extends he{constructor(e,t){super(e,t)}get type(){return te.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}}class Fe extends he{constructor(e,t){super(e,t)}get type(){return te.For}setVariable(e){return this.setNode("variable",e,0)}}class ke extends he{constructor(e,t){super(e,t)}get type(){return te.Each}getVariables(){return this.variables||(this.variables=new oe(this)),this.variables}}class Ae extends he{constructor(e,t){super(e,t)}get type(){return te.While}}class Ee extends he{constructor(e,t){super(e,t)}get type(){return te.Else}}class Re extends he{constructor(e,t){super(e,t)}get type(){return te.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new oe(this)),this.parameters}}class De extends he{constructor(e,t){super(e,t)}get type(){return te.ViewPort}}class Me extends he{constructor(e,t){super(e,t)}get type(){return te.FontFace}}class Te extends he{constructor(e,t){super(e,t)}get type(){return te.NestedProperties}}class Ie extends he{constructor(e,t){super(e,t)}get type(){return te.Keyframe}setKeyword(e){return this.setNode("keyword",e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}}class Pe extends he{constructor(e,t){super(e,t)}get type(){return te.KeyframeSelector}}class Oe extends se{constructor(e,t){super(e,t)}get type(){return te.Import}setMedialist(e){return!!e&&(e.attachTo(this),!0)}}class ze extends se{get type(){return te.Use}setParameters(e){return this.setNode("parameters",e)}getParameters(){return this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}class Ne extends se{get type(){return te.ModuleConfiguration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}}class We extends se{get type(){return te.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}setParameters(e){return this.setNode("parameters",e)}getParameters(){return this.parameters}}class qe extends se{get type(){return te.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}class Le extends se{constructor(e,t){super(e,t)}get type(){return te.Namespace}}class je extends he{constructor(e,t){super(e,t)}get type(){return te.Media}}class $e extends he{constructor(e,t){super(e,t)}get type(){return te.Supports}}class Ue extends he{constructor(e,t){super(e,t)}get type(){return te.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}}class Ve extends he{constructor(e,t){super(e,t)}get type(){return te.PropertyAtRule}setName(e){return!!e&&(e.attachTo(this),this.name=e,!0)}getName(){return this.name}}class Be extends he{constructor(e,t){super(e,t)}get type(){return te.StartingStyleAtRule}}class Ke extends he{constructor(e,t){super(e,t)}get type(){return te.Document}}class He extends he{constructor(e,t){super(e,t)}get type(){return te.Container}}class Ge extends se{constructor(e,t){super(e,t)}}class Je extends se{constructor(e,t){super(e,t)}get type(){return te.MediaQuery}}class Xe extends se{constructor(e,t){super(e,t)}get type(){return te.MediaCondition}}class Ye extends se{constructor(e,t){super(e,t)}get type(){return te.MediaFeature}}class Qe extends se{constructor(e,t){super(e,t)}get type(){return te.SupportsCondition}}class Ze extends he{constructor(e,t){super(e,t)}get type(){return te.Page}}class et extends he{constructor(e,t){super(e,t)}get type(){return te.PageBoxMarginBox}}class tt extends se{constructor(e,t){super(e,t)}get type(){return te.Expression}}class nt extends se{constructor(e,t){super(e,t)}get type(){return te.BinaryExpression}setLeft(e){return this.setNode("left",e)}getLeft(){return this.left}setRight(e){return this.setNode("right",e)}getRight(){return this.right}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}}class it extends se{constructor(e,t){super(e,t)}get type(){return te.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}}class rt extends se{constructor(e,t){super(e,t)}get type(){return te.AttributeSelector}setNamespacePrefix(e){return this.setNode("namespacePrefix",e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setValue(e){return this.setNode("value",e)}getValue(){return this.value}}class st extends se{constructor(e,t){super(e,t)}get type(){return te.HexColorValue}}class ot extends se{constructor(e,t){super(e,t)}get type(){return te.RatioValue}}const at=".".charCodeAt(0),lt="0".charCodeAt(0),ct="9".charCodeAt(0);class dt extends se{constructor(e,t){super(e,t)}get type(){return te.NumericValue}getValue(){const e=this.getText();let t,n=0;for(let i=0,r=e.length;i<r&&(t=e.charCodeAt(i),lt<=t&&t<=ct||t===at);i++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}}class ht extends fe{constructor(e,t){super(e,t),this.needsSemicolon=!0}get type(){return te.VariableDeclaration}setVariable(e){return!!e&&(e.attachTo(this),this.variable=e,!0)}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return!!e&&(e.attachTo(this),this.value=e,!0)}getValue(){return this.value}}class pt extends se{constructor(e,t){super(e,t)}get type(){return te.Interpolation}}class ut extends se{constructor(e,t){super(e,t)}get type(){return te.VariableName}getName(){return this.getText()}}class mt extends se{constructor(e,t){super(e,t)}get type(){return te.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new oe(this)),this.selectors}}class ft extends se{constructor(e,t){super(e,t)}get type(){return te.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new oe(this)),this.arguments}}class gt extends he{constructor(e,t){super(e,t)}get type(){return te.MixinContentDeclaration}getParameters(){return this.parameters||(this.parameters=new oe(this)),this.parameters}}class bt extends se{constructor(e,t){super(e,t)}get type(){return te.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new oe(this)),this.namespaces}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getArguments(){return this.arguments||(this.arguments=new oe(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}}class yt extends he{constructor(e,t){super(e,t)}get type(){return te.MixinDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new oe(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}}class vt extends he{constructor(e,t){super(e,t)}get type(){return te.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}}class wt extends se{get type(){return te.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}}class St extends se{getConditions(){return this.conditions||(this.conditions=new oe(this)),this.conditions}}class _t extends se{setVariable(e){return this.setNode("variable",e)}}class Ct extends se{get type(){return te.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}var xt;!function(e){e[e.Ignore=1]="Ignore",e[e.Warning=2]="Warning",e[e.Error=4]="Error"}(xt||(xt={}));class Ft{constructor(e,t,n,i,r=e.offset,s=e.length){this.node=e,this.rule=t,this.level=n,this.message=i||t.message,this.offset=r,this.length=s}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}}class kt{static entries(e){const t=new kt;return e.acceptVisitor(t),t.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}}var At=n(5747);class Et{constructor(e,t){this.id=e,this.message=t}}const Rt={NumberExpected:new Et("css-numberexpected",At.t("number expected")),ConditionExpected:new Et("css-conditionexpected",At.t("condition expected")),RuleOrSelectorExpected:new Et("css-ruleorselectorexpected",At.t("at-rule or selector expected")),DotExpected:new Et("css-dotexpected",At.t("dot expected")),ColonExpected:new Et("css-colonexpected",At.t("colon expected")),SemiColonExpected:new Et("css-semicolonexpected",At.t("semi-colon expected")),TermExpected:new Et("css-termexpected",At.t("term expected")),ExpressionExpected:new Et("css-expressionexpected",At.t("expression expected")),OperatorExpected:new Et("css-operatorexpected",At.t("operator expected")),IdentifierExpected:new Et("css-identifierexpected",At.t("identifier expected")),PercentageExpected:new Et("css-percentageexpected",At.t("percentage expected")),URIOrStringExpected:new Et("css-uriorstringexpected",At.t("uri or string expected")),URIExpected:new Et("css-uriexpected",At.t("URI expected")),VariableNameExpected:new Et("css-varnameexpected",At.t("variable name expected")),VariableValueExpected:new Et("css-varvalueexpected",At.t("variable value expected")),PropertyValueExpected:new Et("css-propertyvalueexpected",At.t("property value expected")),LeftCurlyExpected:new Et("css-lcurlyexpected",At.t("{ expected")),RightCurlyExpected:new Et("css-rcurlyexpected",At.t("} expected")),LeftSquareBracketExpected:new Et("css-rbracketexpected",At.t("[ expected")),RightSquareBracketExpected:new Et("css-lbracketexpected",At.t("] expected")),LeftParenthesisExpected:new Et("css-lparentexpected",At.t("( expected")),RightParenthesisExpected:new Et("css-rparentexpected",At.t(") expected")),CommaExpected:new Et("css-commaexpected",At.t("comma expected")),PageDirectiveOrDeclarationExpected:new Et("css-pagedirordeclexpected",At.t("page directive or declaraton expected")),UnknownAtRule:new Et("css-unknownatrule",At.t("at-rule unknown")),UnknownKeyword:new Et("css-unknownkeyword",At.t("unknown keyword")),SelectorExpected:new Et("css-selectorexpected",At.t("selector expected")),StringLiteralExpected:new Et("css-stringliteralexpected",At.t("string literal expected")),WhitespaceExpected:new Et("css-whitespaceexpected",At.t("whitespace expected")),MediaQueryExpected:new Et("css-mediaqueryexpected",At.t("media query expected")),IdentifierOrWildcardExpected:new Et("css-idorwildcardexpected",At.t("identifier or wildcard expected")),WildcardExpected:new Et("css-wildcardexpected",At.t("wildcard expected")),IdentifierOrVariableExpected:new Et("css-idorvarexpected",At.t("identifier or variable expected"))};var Dt,Mt,Tt,It,Pt,Ot,zt,Nt,Wt,qt,Lt,jt,$t,Ut,Vt,Bt,Kt,Ht,Gt,Jt,Xt,Yt,Qt,Zt,en,tn,nn,rn,sn,on,an,ln,cn,dn,hn,pn,un,mn,fn,gn,bn,yn,vn,wn,Sn,_n,Cn,xn,Fn,kn,An,En,Rn,Dn,Mn,Tn,In,Pn,On,zn,Nn,Wn,qn,Ln,jn,$n,Un,Vn,Bn,Kn,Hn,Gn,Jn,Xn,Yn,Qn,Zn,ei,ti,ni,ii,ri,si;!function(e){e.is=function(e){return"string"==typeof e}}(Dt||(Dt={})),function(e){e.is=function(e){return"string"==typeof e}}(Mt||(Mt={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(Tt||(Tt={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(It||(It={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=It.MAX_VALUE),t===Number.MAX_VALUE&&(t=It.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return ni.objectLiteral(t)&&ni.uinteger(t.line)&&ni.uinteger(t.character)}}(Pt||(Pt={})),function(e){e.create=function(e,t,n,i){if(ni.uinteger(e)&&ni.uinteger(t)&&ni.uinteger(n)&&ni.uinteger(i))return{start:Pt.create(e,t),end:Pt.create(n,i)};if(Pt.is(e)&&Pt.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},e.is=function(e){let t=e;return ni.objectLiteral(t)&&Pt.is(t.start)&&Pt.is(t.end)}}(Ot||(Ot={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return ni.objectLiteral(t)&&Ot.is(t.range)&&(ni.string(t.uri)||ni.undefined(t.uri))}}(zt||(zt={})),function(e){e.create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},e.is=function(e){let t=e;return ni.objectLiteral(t)&&Ot.is(t.targetRange)&&ni.string(t.targetUri)&&Ot.is(t.targetSelectionRange)&&(Ot.is(t.originSelectionRange)||ni.undefined(t.originSelectionRange))}}(Nt||(Nt={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},e.is=function(e){const t=e;return ni.objectLiteral(t)&&ni.numberRange(t.red,0,1)&&ni.numberRange(t.green,0,1)&&ni.numberRange(t.blue,0,1)&&ni.numberRange(t.alpha,0,1)}}(Wt||(Wt={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return ni.objectLiteral(t)&&Ot.is(t.range)&&Wt.is(t.color)}}(qt||(qt={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return ni.objectLiteral(t)&&ni.string(t.label)&&(ni.undefined(t.textEdit)||Jt.is(t))&&(ni.undefined(t.additionalTextEdits)||ni.typedArray(t.additionalTextEdits,Jt.is))}}(Lt||(Lt={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(jt||(jt={})),function(e){e.create=function(e,t,n,i,r,s){const o={startLine:e,endLine:t};return ni.defined(n)&&(o.startCharacter=n),ni.defined(i)&&(o.endCharacter=i),ni.defined(r)&&(o.kind=r),ni.defined(s)&&(o.collapsedText=s),o},e.is=function(e){const t=e;return ni.objectLiteral(t)&&ni.uinteger(t.startLine)&&ni.uinteger(t.startLine)&&(ni.undefined(t.startCharacter)||ni.uinteger(t.startCharacter))&&(ni.undefined(t.endCharacter)||ni.uinteger(t.endCharacter))&&(ni.undefined(t.kind)||ni.string(t.kind))}}($t||($t={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return ni.defined(t)&&zt.is(t.location)&&ni.string(t.message)}}(Ut||(Ut={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(Vt||(Vt={})),function(e){e.Unnecessary=1,e.Deprecated=2}(Bt||(Bt={})),function(e){e.is=function(e){const t=e;return ni.objectLiteral(t)&&ni.string(t.href)}}(Kt||(Kt={})),function(e){e.create=function(e,t,n,i,r,s){let o={range:e,message:t};return ni.defined(n)&&(o.severity=n),ni.defined(i)&&(o.code=i),ni.defined(r)&&(o.source=r),ni.defined(s)&&(o.relatedInformation=s),o},e.is=function(e){var t;let n=e;return ni.defined(n)&&Ot.is(n.range)&&ni.string(n.message)&&(ni.number(n.severity)||ni.undefined(n.severity))&&(ni.integer(n.code)||ni.string(n.code)||ni.undefined(n.code))&&(ni.undefined(n.codeDescription)||ni.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ni.string(n.source)||ni.undefined(n.source))&&(ni.undefined(n.relatedInformation)||ni.typedArray(n.relatedInformation,Ut.is))}}(Ht||(Ht={})),function(e){e.create=function(e,t,...n){let i={title:e,command:t};return ni.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){let t=e;return ni.defined(t)&&ni.string(t.title)&&ni.string(t.command)}}(Gt||(Gt={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return ni.objectLiteral(t)&&ni.string(t.newText)&&Ot.is(t.range)}}(Jt||(Jt={})),function(e){e.create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},e.is=function(e){const t=e;return ni.objectLiteral(t)&&ni.string(t.label)&&(ni.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ni.string(t.description)||void 0===t.description)}}(Xt||(Xt={})),function(e){e.is=function(e){const t=e;return ni.string(t)}}(Yt||(Yt={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return Jt.is(t)&&(Xt.is(t.annotationId)||Yt.is(t.annotationId))}}(Qt||(Qt={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return ni.defined(t)&&an.is(t.textDocument)&&Array.isArray(t.edits)}}(Zt||(Zt={})),function(e){e.create=function(e,t,n){let i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){let t=e;return t&&"create"===t.kind&&ni.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ni.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ni.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Yt.is(t.annotationId))}}(en||(en={})),function(e){e.create=function(e,t,n,i){let r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},e.is=function(e){let t=e;return t&&"rename"===t.kind&&ni.string(t.oldUri)&&ni.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ni.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ni.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Yt.is(t.annotationId))}}(tn||(tn={})),function(e){e.create=function(e,t,n){let i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){let t=e;return t&&"delete"===t.kind&&ni.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ni.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ni.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Yt.is(t.annotationId))}}(nn||(nn={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>ni.string(e.kind)?en.is(e)||tn.is(e)||nn.is(e):Zt.is(e))))}}(rn||(rn={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return ni.defined(t)&&ni.string(t.uri)}}(sn||(sn={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return ni.defined(t)&&ni.string(t.uri)&&ni.integer(t.version)}}(on||(on={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return ni.defined(t)&&ni.string(t.uri)&&(null===t.version||ni.integer(t.version))}}(an||(an={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){let t=e;return ni.defined(t)&&ni.string(t.uri)&&ni.string(t.languageId)&&ni.integer(t.version)&&ni.string(t.text)}}(ln||(ln={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(cn||(cn={})),function(e){e.is=function(e){const t=e;return ni.objectLiteral(e)&&cn.is(t.kind)&&ni.string(t.value)}}(dn||(dn={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(hn||(hn={})),function(e){e.PlainText=1,e.Snippet=2}(pn||(pn={})),function(e){e.Deprecated=1}(un||(un={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&ni.string(t.newText)&&Ot.is(t.insert)&&Ot.is(t.replace)}}(mn||(mn={})),function(e){e.asIs=1,e.adjustIndentation=2}(fn||(fn={})),function(e){e.is=function(e){const t=e;return t&&(ni.string(t.detail)||void 0===t.detail)&&(ni.string(t.description)||void 0===t.description)}}(gn||(gn={})),function(e){e.create=function(e){return{label:e}}}(bn||(bn={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(yn||(yn={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return ni.string(t)||ni.objectLiteral(t)&&ni.string(t.language)&&ni.string(t.value)}}(vn||(vn={})),function(e){e.is=function(e){let t=e;return!!t&&ni.objectLiteral(t)&&(dn.is(t.contents)||vn.is(t.contents)||ni.typedArray(t.contents,vn.is))&&(void 0===e.range||Ot.is(e.range))}}(wn||(wn={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Sn||(Sn={})),function(e){e.create=function(e,t,...n){let i={label:e};return ni.defined(t)&&(i.documentation=t),ni.defined(n)?i.parameters=n:i.parameters=[],i}}(_n||(_n={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Cn||(Cn={})),function(e){e.create=function(e,t){let n={range:e};return ni.number(t)&&(n.kind=t),n}}(xn||(xn={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Fn||(Fn={})),function(e){e.Deprecated=1}(kn||(kn={})),function(e){e.create=function(e,t,n,i,r){let s={name:e,kind:t,location:{uri:i,range:n}};return r&&(s.containerName=r),s}}(An||(An={})),function(e){e.create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}}}(En||(En={})),function(e){e.create=function(e,t,n,i,r,s){let o={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==s&&(o.children=s),o},e.is=function(e){let t=e;return t&&ni.string(t.name)&&ni.number(t.kind)&&Ot.is(t.range)&&Ot.is(t.selectionRange)&&(void 0===t.detail||ni.string(t.detail))&&(void 0===t.deprecated||ni.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(Rn||(Rn={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(Dn||(Dn={})),function(e){e.Invoked=1,e.Automatic=2}(Mn||(Mn={})),function(e){e.create=function(e,t,n){let i={diagnostics:e};return null!=t&&(i.only=t),null!=n&&(i.triggerKind=n),i},e.is=function(e){let t=e;return ni.defined(t)&&ni.typedArray(t.diagnostics,Ht.is)&&(void 0===t.only||ni.typedArray(t.only,ni.string))&&(void 0===t.triggerKind||t.triggerKind===Mn.Invoked||t.triggerKind===Mn.Automatic)}}(Tn||(Tn={})),function(e){e.create=function(e,t,n){let i={title:e},r=!0;return"string"==typeof t?(r=!1,i.kind=t):Gt.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},e.is=function(e){let t=e;return t&&ni.string(t.title)&&(void 0===t.diagnostics||ni.typedArray(t.diagnostics,Ht.is))&&(void 0===t.kind||ni.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||Gt.is(t.command))&&(void 0===t.isPreferred||ni.boolean(t.isPreferred))&&(void 0===t.edit||rn.is(t.edit))}}(In||(In={})),function(e){e.create=function(e,t){let n={range:e};return ni.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return ni.defined(t)&&Ot.is(t.range)&&(ni.undefined(t.command)||Gt.is(t.command))}}(Pn||(Pn={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return ni.defined(t)&&ni.uinteger(t.tabSize)&&ni.boolean(t.insertSpaces)}}(On||(On={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return ni.defined(t)&&Ot.is(t.range)&&(ni.undefined(t.target)||ni.string(t.target))}}(zn||(zn={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return ni.objectLiteral(n)&&Ot.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(Nn||(Nn={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(Wn||(Wn={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(qn||(qn={})),function(e){e.is=function(e){const t=e;return ni.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(Ln||(Ln={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&Ot.is(t.range)&&ni.string(t.text)}}(jn||(jn={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&Ot.is(t.range)&&ni.boolean(t.caseSensitiveLookup)&&(ni.string(t.variableName)||void 0===t.variableName)}}($n||($n={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&Ot.is(t.range)&&(ni.string(t.expression)||void 0===t.expression)}}(Un||(Un={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return ni.defined(t)&&Ot.is(e.stoppedLocation)}}(Vn||(Vn={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Bn||(Bn={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return ni.objectLiteral(t)&&(void 0===t.tooltip||ni.string(t.tooltip)||dn.is(t.tooltip))&&(void 0===t.location||zt.is(t.location))&&(void 0===t.command||Gt.is(t.command))}}(Kn||(Kn={})),function(e){e.create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return ni.objectLiteral(t)&&Pt.is(t.position)&&(ni.string(t.label)||ni.typedArray(t.label,Kn.is))&&(void 0===t.kind||Bn.is(t.kind))&&void 0===t.textEdits||ni.typedArray(t.textEdits,Jt.is)&&(void 0===t.tooltip||ni.string(t.tooltip)||dn.is(t.tooltip))&&(void 0===t.paddingLeft||ni.boolean(t.paddingLeft))&&(void 0===t.paddingRight||ni.boolean(t.paddingRight))}}(Hn||(Hn={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(Gn||(Gn={})),function(e){e.create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}}}(Jn||(Jn={})),function(e){e.create=function(e){return{items:e}}}(Xn||(Xn={})),function(e){e.Invoked=0,e.Automatic=1}(Yn||(Yn={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(Qn||(Qn={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Zn||(Zn={})),function(e){e.is=function(e){const t=e;return ni.objectLiteral(t)&&Mt.is(t.uri)&&ni.string(t.name)}}(ei||(ei={})),function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),s=e.slice(i);t(r,n),t(s,n);let o=0,a=0,l=0;for(;o<r.length&&a<s.length;){let t=n(r[o],s[a]);e[l++]=t<=0?r[o++]:s[a++]}for(;o<r.length;)e[l++]=r[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,i){return new oi(e,t,n,i)},e.is=function(e){let t=e;return!!(ni.defined(t)&&ni.string(t.uri)&&(ni.undefined(t.languageId)||ni.string(t.languageId))&&ni.uinteger(t.lineCount)&&ni.func(t.getText)&&ni.func(t.positionAt)&&ni.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText(),r=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=i.length;for(let t=r.length-1;t>=0;t--){let n=r[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.e