(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&&12e4this.source.length)return!1;for(var t=0;te.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;tthis.end||-1===this.length)&&(this.length=e-this.offset)},ce.prototype.hasChildren=function(){return!!this.children&&0=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/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||4e.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")){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 0e+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(;rr}));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;rr.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;ne?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+1e?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+1i[0]&&c[1]i[0]&&c[1]+'.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(0s.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=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=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=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;oe.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.offsete.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&&ei[0]&&c[1]")||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=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 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;ti[0]&&c[1]{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{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{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"))}}]);