diff --git a/LSP-eslint.sublime-settings b/LSP-eslint.sublime-settings index a9ca3d7..dbc1e48 100644 --- a/LSP-eslint.sublime-settings +++ b/LSP-eslint.sublime-settings @@ -1,14 +1,13 @@ { "settings": { - // Whether to use the ESLint class API even if the CLIEngine API is present. The setting is only honored - // when using using ESLint version 7.x. - "useESLintClass": false, // Show disable lint rule in the quick fix menu. "codeAction.disableRuleComment": { // Show the disable code actions. "enable": true, // Configure the disable rule code action to insert the comment on the `sameLine` or `separateLine`. - "location": "separateLine" + "location": "separateLine", + // The comment style to use when disabling a rule on a specific line. + "commentStyle": "line" }, // Show open lint rule documentation web page in the quick fix. "codeAction.showDocumentation": { @@ -18,6 +17,8 @@ "codeActionOnSave.enable": true, // Specifies the code action mode. Possible values are 'all' and 'problems'. "codeActionOnSave.mode": "all", + // Enables support for experimental Flat Config (aka `eslint.config.js`, supported by ESLint version 8.21 or later). + "experimental.useFlatConfig": false, // The rules that should be executed when computing the code actions on save or formatting a file. // Defaults to the rules configured via the ESLint configuration. // An empty array results in no rules being considered. @@ -58,6 +59,8 @@ // Deprecated. Recommended to use the global LSP option `lsp_code_actions_on_save` with the. // `"source.fixAll.eslint": true` key instead. "format": false, + // If true, untitled files won't be validated by ESLint. + "ignoreUntitled": false, // A path added to NODE_PATH when resolving the eslint module (auto-detected by default). "nodePath": null, // Whether ESLint should issue a warning on ignored files. @@ -92,6 +95,8 @@ "vue", "markdown", ], + // Shortens the text spans of underlined problems to their first related line. + "problems.shortenToSingleLine": false, // Override the severity of one or more rules, regardless of the project's ESLint config. Use globs to // apply default severities for multiple rules. "rulesCustomizations": [], @@ -100,6 +105,9 @@ // Run the linter on save or on type. // Possible values: `onSave`, `onType` "run": "onType", + // Whether to use the ESLint class API even if the CLIEngine API is present. The setting is only honored + // when using using ESLint version 7.x. + "useESLintClass": false, // An array of language ids which should be validated by ESLint. "validate": [ "javascript", diff --git a/language-server/out/eslintServer.js b/language-server/out/eslintServer.js index 6a31d06..7409af0 100644 --- a/language-server/out/eslintServer.js +++ b/language-server/out/eslintServer.js @@ -1,2 +1,2 @@ -(()=>{"use strict";var e={5232:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LcsDiff=t.Debug=t.stringDiff=void 0,t.stringDiff=function(e,t,o){return new a(new n(e),new n(t)).ComputeDiff(o).changes};class n{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,o=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new o(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class a{constructor(e,t,n=null){this.ContinueProcessingPredicate=n;const[o,i,r]=a._getElements(e),[s,c,u]=a._getElements(t);this._hasStrings=r&&u,this._originalStringElements=o,this._originalElementsOrHash=i,this._modifiedStringElements=s,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _getElements(e){const t=e.getElements();return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,o,i){const r=[!1];let s=this.ComputeDiffRecursive(e,t,n,o,r);return i&&(s=this.PrettifyChanges(s)),{quitEarly:r[0],changes:s}}ComputeDiffRecursive(e,t,n,r,s){for(s[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let s;return n<=r?(i.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new o(e,0,n,r-n+1)]):e<=t?(i.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new o(e,t-e+1,n,0)]):(i.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const a=[0],c=[0],u=this.ComputeRecursionPoint(e,t,n,r,a,c,s),l=a[0],d=c[0];if(null!==u)return u;if(!s[0]){const i=this.ComputeDiffRecursive(e,l,n,d,s);let a=[];return a=s[0]?[new o(l+1,t-(l+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(l+1,t,d+1,r,s),this.ConcatenateChanges(i,a)}return[new o(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,i,r,a,c,u,l,d,h,f,g,p,m,y,v,b){let R=null,_=null,C=new s,w=t,D=n,S=g[0]-y[0]-i,k=-1073741824,P=this.m_forwardHistory.length-1;do{const t=S+e;t===w||t=0&&(e=(l=this.m_forwardHistory[P])[0],w=1,D=l.length-1)}while(--P>=-1);if(R=C.getReverseChanges(),b[0]){let e=g[0]+1,t=y[0]+1;if(null!==R&&R.length>0){const n=R[R.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}_=[new o(e,f-e+1,t,m-t+1)]}else{C=new s,w=a,D=c,S=g[0]-y[0]-u,k=1073741824,P=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+r;e===w||e=d[e+1]?(p=(h=d[e+1]-1)-S-u,h>k&&C.MarkNextChange(),k=h+1,C.AddOriginalElement(h+1,p+1),S=e+1-r):(p=(h=d[e-1])-S-u,h>k&&C.MarkNextChange(),k=h,C.AddModifiedElement(h+1,p+1),S=e-1-r),P>=0&&(r=(d=this.m_reverseHistory[P])[0],w=1,D=d.length-1)}while(--P>=-1);_=C.getChanges()}return this.ConcatenateChanges(R,_)}ComputeRecursionPoint(e,t,n,i,s,a,c){let u=0,l=0,d=0,h=0,f=0,g=0;e--,n--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const p=t-e+(i-n),m=p+1,y=new Int32Array(m),v=new Int32Array(m),b=i-n,R=t-e,_=e-n,C=t-i,w=(R-b)%2==0;y[b]=e,v[R]=t,c[0]=!1;for(let D=1;D<=p/2+1;D++){let p=0,S=0;d=this.ClipDiagonalBound(b-D,D,b,m),h=this.ClipDiagonalBound(b+D,D,b,m);for(let e=d;e<=h;e+=2){u=e===d||ep+S&&(p=u,S=l),!w&&Math.abs(e-R)<=D-1&&u>=v[e])return s[0]=u,a[0]=l,n<=v[e]&&D<=1448?this.WALKTRACE(b,d,h,_,R,f,g,C,y,v,u,t,s,l,i,a,w,c):null}const k=(p-e+(S-n)-D)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(p,k))return c[0]=!0,s[0]=p,a[0]=S,k>0&&D<=1448?this.WALKTRACE(b,d,h,_,R,f,g,C,y,v,u,t,s,l,i,a,w,c):(e++,n++,[new o(e,t-e+1,n,i-n+1)]);f=this.ClipDiagonalBound(R-D,D,R,m),g=this.ClipDiagonalBound(R+D,D,R,m);for(let o=f;o<=g;o+=2){u=o===f||o=v[o+1]?v[o+1]-1:v[o-1],l=u-(o-R)-C;const r=u;for(;u>e&&l>n&&this.ElementsAreEqual(u,l);)u--,l--;if(v[o]=u,w&&Math.abs(o-b)<=D&&u<=y[o])return s[0]=u,a[0]=l,r>=y[o]&&D<=1448?this.WALKTRACE(b,d,h,_,R,f,g,C,y,v,u,t,s,l,i,a,w,c):null}if(D<=1447){let e=new Int32Array(h-d+2);e[0]=b-d+1,r.Copy2(y,d,e,1,h-d+1),this.m_forwardHistory.push(e),e=new Int32Array(g-f+2),e[0]=R-f+1,r.Copy2(v,f,e,1,g-f+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,d,h,_,R,f,g,C,y,v,u,t,s,l,i,a,w,c)}PrettifyChanges(e){for(let t=0;t0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let o=0,i=0;if(t>0){const n=e[t-1];n.originalLength>0&&(o=n.originalStart+n.originalLength),n.modifiedLength>0&&(i=n.modifiedStart+n.modifiedLength)}const r=n.originalLength>0,s=n.modifiedLength>0;let a=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(tc&&(c=l,a=e)}n.originalStart-=a,n.modifiedStart-=a}return e}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,o){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,o)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const o=new Array(e.length+t.length-1);return r.Copy(e,0,o,0,e.length-1),o[e.length-1]=n[0],r.Copy(t,1,o,e.length,t.length-1),o}{const n=new Array(e.length+t.length);return r.Copy(e,0,n,0,e.length),r.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(i.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),i.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let r=e.originalLength;const s=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new o(i,r,s,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,o){if(e>=0&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.ESLint=t.CodeActions=t.RuleSeverities=t.SaveRuleConfigs=t.Fixes=t.ESLintModule=t.SuggestionsProblem=t.FixableProblem=t.Problem=t.RuleMetaData=t.ESLintError=t.TextDocumentSettings=void 0;const o=n(7147),i=n(1017),r=n(6113),s=n(2081),a=n(8212),c=n(7373),u=n(2116),l=n(7237),d=n(2389),h=n(572),f=n(9675),g=n(2388);var p,m,y,v,b,R,_,C,w,D,S;!function(e){e.hasLibrary=function(e){return void 0!==e.library}}(p=t.TextDocumentSettings||(t.TextDocumentSettings={})),function(e){e.isNoConfigFound=function(e){const t=e;return"no-config-found"===t.messageTemplate||"No ESLint configuration found."===t.message}}(m=t.ESLintError||(t.ESLintError={})),function(e){const t=new Set,n=new Map;e.capture=function(e,o){let i;if(e.isCLIEngine){const n=o.filter((e=>!t.has(e.filePath)));if(0===n.length)return;i="function"==typeof e.getRulesMetaForResults?e.getRulesMetaForResults(n):void 0,n.forEach((e=>t.add(e.filePath)))}else i="function"==typeof e.getRulesMetaForResults?e.getRulesMetaForResults(o):void 0;void 0!==i&&Object.entries(i).forEach((([e,t])=>{n.has(e)||t&&t.docs&&d.string(t.docs.url)&&n.set(e,t)}))},e.clear=function(){t.clear(),n.clear()},e.getUrl=function(e){return n.get(e)?.docs?.url},e.getType=function(e){return n.get(e)?.type},e.hasRuleId=function(e){return n.has(e)}}(y=t.RuleMetaData||(t.RuleMetaData={})),function(e){e.isFixable=function(e){return void 0!==e.edit},e.hasSuggestions=function(e){return void 0!==e.suggestions}}(v=t.Problem||(t.Problem={})),(t.FixableProblem||(t.FixableProblem={})).createTextEdit=function(e,t){return a.TextEdit.replace(a.Range.create(e.positionAt(t.edit.range[0]),e.positionAt(t.edit.range[1])),t.edit.text||"")},(t.SuggestionsProblem||(t.SuggestionsProblem={})).createTextEdit=function(e,t){return a.TextEdit.replace(a.Range.create(e.positionAt(t.fix.range[0]),e.positionAt(t.fix.range[1])),t.fix.text||"")},function(e){e.hasESLintClass=function(e){return void 0!==e.ESLint},e.hasCLIEngine=function(e){return void 0!==e.CLIEngine}}(b=t.ESLintModule||(t.ESLintModule={})),function(e){e.hasMetaType=function(e){return void 0!==e&&void 0!==e.type}}(R||(R={})),function(e){e.hasRule=function(e){return void 0!==e.getRules}}(_||(_={}));class k{constructor(e){this.cli=e}get isCLIEngine(){return!0}async lintText(e,t){return this.cli.executeOnText(e,t.filePath,t.warnIgnored).results}async isPathIgnored(e){return this.cli.isPathIgnored(e)}getRulesMetaForResults(e){if(!_.hasRule(this.cli))return;const t={};for(const[e,n]of this.cli.getRules())void 0!==n.meta&&(t[e]=n.meta);return t}async calculateConfigForFile(e){return"function"==typeof this.cli.getConfigForFile?this.cli.getConfigForFile(e):void 0}}class P{constructor(e){this.edits=e}static overlaps(e,t){return void 0!==e&&e.edit.range[1]>t.edit.range[0]}static sameRange(e,t){return e.edit.range[0]===t.edit.range[0]&&e.edit.range[1]===t.edit.range[1]}isEmpty(){return 0===this.edits.size}getDocumentVersion(){if(this.isEmpty())throw new Error("No edits recorded.");return this.edits.values().next().value.documentVersion}getScoped(e){const t=[];for(const n of e){const e=w.computeKey(n),o=this.edits.get(e);o&&t.push(o)}return t}getAllSorted(){const e=[];for(const t of this.edits.values())v.isFixable(t)&&e.push(t);return e.sort(((e,t)=>{const n=e.edit.range[0]-t.edit.range[0];if(0!==n)return n;const o=e.edit.range[1]-e.edit.range[0],i=t.edit.range[1]-t.edit.range[0];return o===i?0:0===o?-1:0===i?1:o-i}))}getApplicable(){const e=this.getAllSorted();if(e.length<=1)return e;const t=[];let n=e[0];t.push(n);for(let o=1;o{if(void 0===a||e.isCLIEngine)return;const t=await e.calculateConfigForFile(r);if(void 0===t||void 0===t.rules||0===t.rules.length)return;const o=new Set,i=new Set;if(0===a.length)Object.keys(t.rules).forEach((e=>o.add(e)));else for(const e of Object.keys(t.rules))n(e,a)?o.add(e):i.add(e);return o.size>0?{offRules:o,onRules:i}:void 0}),i),null==s?void t.set(o,null):(t.set(o,s),s)},e.remove=function(e){return t.delete(e)},e.clear=function(){t.clear()}}(t.SaveRuleConfigs||(t.SaveRuleConfigs={})),function(e){const t=new h.LRUCache(1024);function n(e,t){return e.startsWith("!")?!new RegExp(`^${e.slice(1).replace(/\*/g,".*")}$`,"g").test(t):new RegExp(`^${e.replace(/\*/g,".*")}$`,"g").test(t)}e.getOverride=function(e,o){let i=t.get(e);if(null!==i){if(void 0!==i)return i;for(const t of o)n(t.rule,e)&&(i=t.severity);if(void 0!==i)return t.set(e,i),i;t.set(e,null)}},e.clear=function(){t.clear()}}(C=t.RuleSeverities||(t.RuleSeverities={})),function(e){function t(e,t){switch(t){case l.RuleSeverity.off:case l.RuleSeverity.info:case l.RuleSeverity.warn:case l.RuleSeverity.error:return t;case l.RuleSeverity.downgrade:switch(n(e)){case a.DiagnosticSeverity.Error:return l.RuleSeverity.warn;case a.DiagnosticSeverity.Warning:case a.DiagnosticSeverity.Information:return l.RuleSeverity.info}case l.RuleSeverity.upgrade:switch(n(e)){case a.DiagnosticSeverity.Information:return l.RuleSeverity.warn;case a.DiagnosticSeverity.Warning:case a.DiagnosticSeverity.Error:return l.RuleSeverity.error}default:return e}}function n(e){switch(e){case 1:case l.RuleSeverity.warn:return a.DiagnosticSeverity.Warning;case 2:case l.RuleSeverity.error:return a.DiagnosticSeverity.Error;case l.RuleSeverity.info:return a.DiagnosticSeverity.Information;default:return a.DiagnosticSeverity.Error}}e.computeKey=function(e){const t=e.range;let n;if(e.message){const t=r.createHash("md5");t.update(e.message),n=t.digest("base64")}return`[${t.start.line},${t.start.character},${t.end.line},${t.end.character}]-${e.code}-${n??""}`},e.create=function(e,o){const i=o.message,r="number"!=typeof o.line||Number.isNaN(o.line)?0:Math.max(0,o.line-1),s="number"!=typeof o.column||Number.isNaN(o.column)?0:Math.max(0,o.column-1),c="number"!=typeof o.endLine||Number.isNaN(o.endLine)?r:Math.max(0,o.endLine-1),u="number"!=typeof o.endColumn||Number.isNaN(o.endColumn)?s:Math.max(0,o.endColumn-1),l=C.getOverride(o.ruleId,e.rulesCustomizations),d={message:i,severity:(h=o.severity,f=l,n(t(h,f))),source:"eslint",range:{start:{line:r,character:s},end:{line:c,character:u}}};var h,f;if(o.ruleId){const e=y.getUrl(o.ruleId);d.code=o.ruleId,void 0!==e&&(d.codeDescription={href:e}),"no-unused-vars"===o.ruleId&&(d.tags=[a.DiagnosticTag.Unnecessary])}return[d,l]}}(w||(w={})),function(e){const t=new Map;e.get=function(e){return t.get(e)},e.set=function(e,n){t.set(e,n)},e.remove=function(e){return t.delete(e)},e.record=function(t,n,o){if(!o.ruleId)return;const i=t.uri;let r=e.get(i);void 0===r&&(r=new Map,e.set(i,r)),r.set(w.computeKey(n),{label:`Fix this ${o.ruleId} problem`,documentVersion:t.version,ruleId:o.ruleId,line:o.line,diagnostic:n,edit:o.fix,suggestions:o.suggestions})}}(D=t.CodeActions||(t.CodeActions={})),function(e){let t,n,r,h;const v=function(){const e=new Map,t=/\/@typescript-eslint\/parser\//,n=/\/babel-eslint\/lib\/index.js$/,o=/\/vue-eslint-parser\/index.js$/;return e.set("typescript",[t,n,o]),e.set("typescriptreact",[t,n,o]),e.set("html",[/\/@angular-eslint\/template-parser\//]),e}(),R=function(){const e=new Map;return e.set("typescript",{regExps:[/vue-eslint-parser\/.*\.js$/],parsers:new Set(["@typescript-eslint/parser"]),parserRegExps:[/@typescript-eslint\/parser\/.*\.js$/]}),e}(),_=new Map([["html","html"],["vue","vue"],["markdown","markdown"]]),C=new Set(["javascript","javascriptreact"]),S=[["package.json",!0],[".eslintignore",!0],[".eslintrc",!1],[".eslintrc.json",!1],[".eslintrc.js",!1],[".eslintrc.yaml",!1],[".eslintrc.yml",!1]],P=new Map,T=new Map,x=new Map;function q(e,t,n){return b.hasESLintClass(e)&&n?new e.ESLint(t):b.hasCLIEngine(e)?new k(new e.CLIEngine(t)):new e.ESLint(t)}function E(e,t,n){const i=void 0===n?Object.assign(Object.create(null),t.options):Object.assign(Object.create(null),t.options,n),r=process.cwd();try{if(t.workingDirectory){const e=(0,f.normalizeDriveLetter)(t.workingDirectory.directory);i.cwd=e,!0!==t.workingDirectory["!cwd"]&&o.existsSync(e)&&process.chdir(e)}return e(q(t.library,i,t.useESLintClass))}finally{r!==process.cwd()&&process.chdir(r)}}function N(e,t){if(void 0===e)return;const n=c.URI.parse(e.uri);if("untitled"!==n.scheme)return r(n);if(void 0!==t.workspaceFolder){const n=g.default.getExtension(e.languageId),o=r(t.workspaceFolder.uri);if(void 0!==o&&void 0!==n)return i.join(o,`test.${n}`)}}e.initialize=function(e,o,i,s){t=e,n=o,r=i,h=s},e.removeSettings=function(e){return T.delete(e)},e.clearSettings=function(){T.clear()},e.unregisterAsFormatter=function(e){const t=x.get(e.uri);void 0!==t&&(t.then((e=>e.dispose())),x.delete(e.uri))},e.clearFormatters=function(){for(const e of x.values())e.then((e=>e.dispose()));x.clear()},e.resolveSettings=function(n){const s=n.uri;let d=T.get(s);return d||(d=t.workspace.getConfiguration({scopeUri:s,section:""}).then((d=>{const g=Object.assign({},d,{silent:!1,library:void 0,resolvedGlobalPackageManagerPath:void 0},{workingDirectory:void 0});if(g.validate===l.Validate.off)return g;g.resolvedGlobalPackageManagerPath=L.get(g.packageManager);const m=r(n),y=void 0!==g.workspaceFolder?r(g.workspaceFolder.uri):void 0,b=void 0!==d.workingDirectory,w=d.workingDirectory??{mode:l.ModeEnum.location};if(l.ModeItem.is(w)){let e;w.mode===l.ModeEnum.location?void 0!==y?e=y:void 0===m||(0,f.isUNC)(m)||(e=i.dirname(m)):w.mode===l.ModeEnum.auto&&(void 0!==y?e=j(y,m):void 0===m||(0,f.isUNC)(m)||(e=i.dirname(m))),void 0!==e&&o.existsSync(e)&&(g.workingDirectory={directory:e})}else g.workingDirectory=w;let D,S,k;return null!==g.nodePath&&(S=g.nodePath,i.isAbsolute(S)||void 0===y||(S=i.join(y,S))),b||void 0===m||(k=i.dirname(m)),void 0!==k||void 0===g.workingDirectory||g.workingDirectory["!cwd"]||(k=g.workingDirectory.directory),D=void 0!==S?a.Files.resolve("eslint",S,S,M).then(void 0,(()=>a.Files.resolve("eslint",g.resolvedGlobalPackageManagerPath,k,M))):a.Files.resolve("eslint",g.resolvedGlobalPackageManagerPath,k,M),g.silent=g.validate===l.Validate.probe,D.then((async o=>{let i=P.get(o);if(void 0===i?(i=h(o),void 0===i?(g.validate=l.Validate.off,g.silent||t.console.error(`Failed to load eslint library from ${o}. See output panel for more information.`)):void 0===i.CLIEngine&&void 0===i.ESLint?(g.validate=l.Validate.off,t.console.error(`The eslint library loaded from ${o} doesn't neither exports a CLIEngine nor an ESLint class. You need at least eslint@1.0.0`)):(t.console.info(`ESLint library loaded from: ${o}`),g.library=i,P.set(o,i))):g.library=i,g.validate===l.Validate.probe&&p.hasLibrary(g)){g.validate=l.Validate.off;let o=e.getFilePath(n,g);if(void 0!==o){const t=v.get(n.languageId),i=_.get(n.languageId),r=R.get(n.languageId);if(C.has(n.languageId))g.validate=l.Validate.on;else if(void 0!==t||void 0!==i||void 0!==r){const n=await e.withClass((e=>{try{return e.calculateConfigForFile(o)}catch(e){return}}),g);if(void 0!==n){const e=null!==n.parser?(0,f.normalizePath)(n.parser):void 0;if(void 0!==e){if(void 0!==t)for(const n of t)if(n.test(e)){g.validate=l.Validate.on;break}if(g.validate!==l.Validate.on&&void 0!==r&&"string"==typeof n.parserOptions?.parser){const t=(0,f.normalizePath)(n.parserOptions.parser);for(const o of r.regExps)if(o.test(e)&&(r.parsers.has(n.parserOptions.parser)||void 0!==r.parserRegExps&&r.parserRegExps.some((e=>e.test(t))))){g.validate=l.Validate.on;break}}}if(g.validate!==l.Validate.on&&Array.isArray(n.plugins)&&n.plugins.length>0&&void 0!==i)for(const e of n.plugins)if(e===i){g.validate=l.Validate.on;break}}}}if(g.validate===l.Validate.off){const e={textDocument:{uri:n.uri}};t.sendRequest(u.ProbeFailedRequest.type,e)}}if(g.format&&g.validate===l.Validate.on&&p.hasLibrary(g)){const n=c.URI.parse(s),o="file"===n.scheme;let i=o?n.fsPath.replace(/\\/g,"/"):n.fsPath;i=i.replace(/[\[\]\{\}]/g,"?");const u={documentSelector:[{scheme:n.scheme,pattern:i}]};if(o){const n=r(s);await e.withClass((async e=>{await e.isPathIgnored(n)||x.set(s,t.client.register(a.DocumentFormattingRequest.type,u))}),g)}else x.set(s,t.client.register(a.DocumentFormattingRequest.type,u))}return g}),(()=>(g.validate=l.Validate.off,g.silent||t.sendRequest(u.NoESLintLibraryRequest.type,{source:{uri:n.uri}}),g)))})),T.set(s,d),d)},e.newClass=q,e.withClass=E,e.getFilePath=N;const O=new Set(["problem","suggestion","layout"]);function M(e,n){t.tracer.log(e,n)}let L,A;function j(e,t){if(void 0===t||(0,f.isUNC)(t))return e;if(-1!==t.indexOf(`${i.sep}node_modules${i.sep}`))return e;let n=e,r=i.dirname(t);e:for(;void 0!==r&&r.startsWith(e);){for(const e of S)if(o.existsSync(i.join(r,e[0]))){if(n=r,e[1])break e;break}const e=i.dirname(r);r=e!==r?e:void 0}return n}e.validate=async function(e,t){const n=Object.assign(Object.create(null),t.options);let o;if(Array.isArray(n.fixTypes)&&n.fixTypes.length>0){o=new Set;for(const e of n.fixTypes)O.has(e)&&o.add(e);0===o.size&&(o=void 0)}const i=e.getText(),r=e.uri,s=N(e,t);return E((async n=>{D.remove(r);const c=await n.lintText(i,{filePath:s,warnIgnored:t.onIgnoredFiles!==l.ESLintSeverity.off});y.capture(n,c);const u=[];if(c&&Array.isArray(c)&&c.length>0){const n=c[0];n.messages&&Array.isArray(n.messages)&&n.messages.forEach((n=>{if(n){const[i,r]=w.create(t,n);if(r===l.RuleSeverity.off||t.quiet&&i.severity===a.DiagnosticSeverity.Warning||u.push(i),void 0!==o&&void 0!==n.ruleId&&void 0!==n.fix){const t=y.getType(n.ruleId);void 0!==t&&o.has(t)&&D.record(e,i,n)}else D.record(e,i,n)}}))}return u}),t)},function(e){const t={yarn:{cache:void 0,get:()=>a.Files.resolveGlobalYarnPath(M)},npm:{cache:void 0,get:()=>a.Files.resolveGlobalNodePath(M)},pnpm:{cache:void 0,get:()=>(0,s.execSync)("pnpm root -g").toString().trim()}};e.get=function(e){const n=t[e];if(n)return void 0===n.cache&&(n.cache=n.get()),n.cache}}(L||(L={})),e.findWorkingDirectory=j,function(e){function o(e,t){let n;return"string"==typeof e.message||e.message instanceof String?(n=e.message,n=n.replace(/\r?\n/g," "),/^CLI: /.test(n)&&(n=n.substr(5))):n=`An unknown error occurred while validating document: ${t.uri}`,n}e.single=[function(e,n,r){if(m.isNoConfigFound(e))return i.has(n.uri)||(t.sendRequest(u.NoConfigRequest.type,{message:o(e,n),document:{uri:n.uri}}).then(void 0,(()=>{})),i.set(n.uri,r)),u.Status.warn},function(e,i,r){if(!e.message)return;function a(a){return s.has(a)||(t.console.error(o(e,i)),n.get(c.URI.file(a).toString())||t.window.showInformationMessage(o(e,i)),s.set(a,r)),u.Status.warn}let l=/Cannot read config file:\s+(.*)\nError:\s+(.*)/.exec(e.message);return l&&3===l.length?a(l[1]):(l=/(.*):\n\s*Configuration for rule \"(.*)\" is /.exec(e.message),l&&3===l.length?a(l[1]):(l=/Cannot find module '([^']*)'\nReferenced from:\s+(.*)/.exec(e.message),l&&3===l.length?a(l[2]):void 0))},function(e,n,o){if(!e.message)return;const i=/Failed to load plugin (.*): Cannot find module (.*)/.exec(e.message);return i&&3===i.length?function(e,i,s){if(!a.has(e)){const c=r(n);a.set(e,o),"plugin-missing"===s.messageTemplate?t.console.error(["",`${s.message.toString()}`,`Happened while validating ${c||n.uri}`,"This can happen for a couple of reasons:","1. The plugin name is spelled incorrectly in an ESLint configuration file (e.g. .eslintrc).",`2. If ESLint is installed globally, then make sure ${i} is installed globally as well.`,`3. If ESLint is installed locally, then ${i} isn't installed correctly.`,"",`Consider running eslint --debug ${c||n.uri} from a terminal to obtain a trace about the configuration files used.`].join("\n")):t.console.error([`${s.message.toString()}`,`Happened while validating ${c||n.uri}`].join("\n"))}return u.Status.warn}(i[1],i[2],e):void 0},function(e,n){const i=`ESLint: ${o(e,n)}. Please see the 'ESLint' output channel for details.`;return l.has(i)?t.console.error(i):t.window.showErrorMessage(i,{title:"Open Output",id:1},{title:"Ignore for this Session",id:2}).then((e=>{void 0!==e&&(1===e.id?t.sendNotification(u.ShowOutputChannel.type):2===e.id&&l.add(i))})),d.string(e.stack)&&(t.console.error("ESLint stack trace:"),t.console.error(e.stack)),u.Status.error}],e.getMessage=o;const i=new Map;e.clearNoConfigRepoerted=function(){i.clear()};const s=new Map;e.getConfigErrorReported=function(e){return s.get(e)},e.removeConfigErrorReported=function(e){return s.delete(e)};const a=new Map;e.clearMissingModuleReported=function(){a.clear()};const l=new Set}(A=e.ErrorHandlers||(e.ErrorHandlers={}))}(S=t.ESLint||(t.ESLint={}))},2389:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.nullOrUndefined=t.boolean=void 0;const n=Object.prototype.toString;t.boolean=function(e){return!0===e||!1===e},t.nullOrUndefined=function(e){return null==e},t.string=function(e){return"[object String]"===n.call(e)}},2388:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=new Map([["javascript",{ext:"js",lineComment:"//",blockComment:["/*","*/"]}],["javascriptreact",{ext:"jsx",lineComment:"//",blockComment:["/*","*/"]}],["typescript",{ext:"ts",lineComment:"//",blockComment:["/*","*/"]}],["typescriptreact",{ext:"tsx",lineComment:"//",blockComment:["/*","*/"]}],["html",{ext:"html",lineComment:"//",blockComment:["\x3c!--","--\x3e"]}],["vue",{ext:"vue",lineComment:"//",blockComment:["\x3c!--","--\x3e"]}],["coffeescript",{ext:"coffee",lineComment:"#",blockComment:["###","###"]}],["yaml",{ext:"yaml",lineComment:"#",blockComment:["#",""]}],["graphql",{ext:"graphql",lineComment:"#",blockComment:["#",""]}]]);var o;!function(e){e.getLineComment=function(e){return n.get(e)?.lineComment??"//"},e.getBlockComment=function(e){return n.get(e)?.blockComment??["/**","*/"]},e.getExtension=function(e){return n.get(e)?.ext}}(o||(o={})),t.default=o},572:(e,t)=>{var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(o=t.Touch||(t.Touch={}));class i{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=o.None){const n=this._map.get(e);if(n)return t!==o.None&&this.touch(n,t),n.value}set(e,t,n=o.None){let i=this._map.get(e);if(i)i.value=t,n!==o.None&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case o.None:this.addItemLast(i);break;case o.First:this.addItemFirst(i);break;case o.Last:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let o=this._head;for(;o;){if(t?e.bind(t)(o.value,o.key,this):e(o.value,o.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");o=o.next}}keys(){const e=this,t=this._state;let n=this._head;const o={[Symbol.iterator]:()=>o,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return o}values(){const e=this,t=this._state;let n=this._head;const o={[Symbol.iterator]:()=>o,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return o}entries(){const e=this,t=this._state;let n=this._head;const o={[Symbol.iterator]:()=>o,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return o}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===o.First||t===o.Last)if(t===o.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===o.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=i,t.LRUCache=class extends i{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=o.AsNew){return super.get(e,t)}peek(e){return super.get(e,o.None)}set(e,t){return super.set(e,t,o.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},9675:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getUri=t.normalizePath=t.getFileSystemPath=t.isUNC=t.normalizeDriveLetter=void 0;const o=n(7147),i=n(7373),r=n(2389);t.normalizeDriveLetter=function(e){return"win32"!==process.platform||e.length<2||":"!==e[1]?e:e[0].toUpperCase()+e.substring(1)},t.isUNC=function(e){if("win32"!==process.platform)return!1;if(!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t)return!1;if(t=e.charCodeAt(1),92!==t)return!1;let n=2;const o=n;for(;n=2&&":"===t[1]&&(t=t[0].toUpperCase()+t.substr(1)),"win32"===process.platform||"darwin"===process.platform){const e=o.realpathSync.native(t);e.toLowerCase()===t.toLowerCase()&&(t=e)}return t},t.normalizePath=function(e){if(void 0!==e)return"win32"===process.platform?e.replace(/\\/g,"/"):e},t.getUri=function(e){return r.string(e)?i.URI.parse(e):e instanceof i.URI?e:i.URI.parse(e.uri)}},2116:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExitCalled=t.ShowOutputChannel=t.ProbeFailedRequest=t.OpenESLintDocRequest=t.NoESLintLibraryRequest=t.NoConfigRequest=t.StatusNotification=t.Status=void 0;const o=n(273);var i,r,s,a,c,u,l,d;(d=t.Status||(t.Status={}))[d.ok=1]="ok",d[d.warn=2]="warn",d[d.error=3]="error",(l=t.StatusNotification||(t.StatusNotification={})).method="eslint/status",l.type=new o.NotificationType(l.method),(u=t.NoConfigRequest||(t.NoConfigRequest={})).method="eslint/noConfig",u.type=new o.RequestType(u.method),(c=t.NoESLintLibraryRequest||(t.NoESLintLibraryRequest={})).method="eslint/noLibrary",c.type=new o.RequestType(c.method),(a=t.OpenESLintDocRequest||(t.OpenESLintDocRequest={})).method="eslint/openDoc",a.type=new o.RequestType(a.method),(s=t.ProbeFailedRequest||(t.ProbeFailedRequest={})).method="eslint/probeFailed",s.type=new o.RequestType(s.method),(r=t.ShowOutputChannel||(t.ShowOutputChannel={})).method="eslint/showOutputChannel",r.type=new o.NotificationType0("eslint/showOutputChannel"),(i=t.ExitCalled||(t.ExitCalled={})).method="eslint/exitCalled",i.type=new o.NotificationType(i.method)},7237:(e,t)=>{var n,o,i,r,s,a;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectoryItem=t.ModeItem=t.ModeEnum=t.RuleSeverity=t.ESLintSeverity=t.CodeActionsOnSaveRules=t.CodeActionsOnSaveMode=t.Validate=void 0,function(e){const t=Object.prototype.toString;e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)}}(n||(n={})),(a=t.Validate||(t.Validate={})).on="on",a.off="off",a.probe="probe",(s=t.CodeActionsOnSaveMode||(t.CodeActionsOnSaveMode={})).all="all",s.problems="problems",function(e){e.from=function(t){if(null==t||!n.string(t))return e.all;switch(t.toLowerCase()){case e.problems:return e.problems;default:return e.all}}}(t.CodeActionsOnSaveMode||(t.CodeActionsOnSaveMode={})),(t.CodeActionsOnSaveRules||(t.CodeActionsOnSaveRules={})).from=function(e){if(null!=e&&Array.isArray(e))return e.filter((e=>n.string(e)))},(r=t.ESLintSeverity||(t.ESLintSeverity={})).off="off",r.warn="warn",r.error="error",function(e){e.from=function(t){if(null==t)return e.off;switch(t.toLowerCase()){case e.off:return e.off;case e.warn:return e.warn;case e.error:return e.error;default:return e.off}}}(t.ESLintSeverity||(t.ESLintSeverity={})),(i=t.RuleSeverity||(t.RuleSeverity={})).info="info",i.warn="warn",i.error="error",i.off="off",i.default="default",i.downgrade="downgrade",i.upgrade="upgrade",function(e){e.auto="auto",e.location="location"}(o=t.ModeEnum||(t.ModeEnum={})),function(e){e.is=function(t){return t===e.auto||t===e.location}}(o=t.ModeEnum||(t.ModeEnum={})),(t.ModeItem||(t.ModeItem={})).is=function(e){const t=e;return t&&o.is(t.mode)},(t.DirectoryItem||(t.DirectoryItem={})).is=function(e){const t=e;return t&&n.string(t.directory)&&(n.boolean(t["!cwd"])||void 0===t["!cwd"])}},3870:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceFormat=t.TraceValues=t.Trace=t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=void 0;const o=n(839);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return o.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return o.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return o.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return o.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return o.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return o.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return o.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return o.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return o.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return o.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return o.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return o.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return o.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return o.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return o.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return o.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return o.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return o.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return o.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return o.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return o.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return o.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return o.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return o.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return o.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return o.ParameterStructures}});const i=n(6184);Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return i.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return i.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return i.Touch}});const r=n(3911);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return r.Disposable}});const s=n(7135);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return s.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return s.Emitter}});const a=n(3881);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return a.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return a.CancellationToken}});const c=n(6525);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return c.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return c.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return c.ReadableStreamMessageReader}});const u=n(6654);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return u.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return u.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return u.WriteableStreamMessageWriter}});const l=n(1343);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return l.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return l.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return l.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return l.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return l.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return l.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return l.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return l.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return l.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return l.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return l.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return l.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return l.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return l.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return l.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return l.CancellationStrategy}});const d=n(147);t.RAL=d.default},3881:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const o=n(147),i=n(7574),r=n(7135);var s;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||i.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(s=t.CancellationToken||(t.CancellationToken={}));const a=Object.freeze((function(e,t){const n=(0,o.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}));class c{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new r.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{get token(){return this._token||(this._token=new c),this._token}cancel(){this._token?this._token.cancel():this._token=s.Cancelled}dispose(){this._token?this._token instanceof c&&this._token.dispose():this._token=s.None}}},1343:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const o=n(147),i=n(7574),r=n(839),s=n(6184),a=n(7135),c=n(3881);var u,l,d,h,f,g,p,m,y,v,b,R,_,C,w;!function(e){e.type=new r.NotificationType("$/cancelRequest")}(u||(u={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(l=t.ProgressToken||(t.ProgressToken={})),function(e){e.type=new r.NotificationType("$/progress")}(d||(d={})),t.ProgressType=class{constructor(){}},function(e){e.is=function(e){return i.func(e)}}(h||(h={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(f=t.Trace||(t.Trace={})),(w=t.TraceValues||(t.TraceValues={})).Off="off",w.Messages="messages",w.Compact="compact",w.Verbose="verbose",function(e){e.fromString=function(t){if(!i.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(f=t.Trace||(t.Trace={})),function(e){e.Text="text",e.JSON="json"}(t.TraceFormat||(t.TraceFormat={})),function(e){e.fromString=function(t){return i.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(g=t.TraceFormat||(t.TraceFormat={})),function(e){e.type=new r.NotificationType("$/setTrace")}(p=t.SetTraceNotification||(t.SetTraceNotification={})),function(e){e.type=new r.NotificationType("$/logTrace")}(m=t.LogTraceNotification||(t.LogTraceNotification={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(y=t.ConnectionErrors||(t.ConnectionErrors={}));class D extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,D.prototype)}}t.ConnectionError=D,function(e){e.is=function(e){const t=e;return t&&i.func(t.cancelUndispatched)}}(v=t.ConnectionStrategy||(t.ConnectionStrategy={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new c.CancellationTokenSource}),e.is=function(e){const t=e;return t&&i.func(t.createCancellationTokenSource)}}(b=t.CancellationReceiverStrategy||(t.CancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(u.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&i.func(t.sendCancellation)&&i.func(t.cleanup)}}(R=t.CancellationSenderStrategy||(t.CancellationSenderStrategy={})),function(e){e.Message=Object.freeze({receiver:b.Message,sender:R.Message}),e.is=function(e){const t=e;return t&&b.is(t.receiver)&&R.is(t.sender)}}(_=t.CancellationStrategy||(t.CancellationStrategy={})),(t.ConnectionOptions||(t.ConnectionOptions={})).is=function(e){const t=e;return t&&(_.is(t.cancellationStrategy)||v.is(t.connectionStrategy))},function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(C||(C={})),t.createMessageConnection=function(e,n,v,b){const R=void 0!==v?v:t.NullLogger;let w=0,S=0,k=0;const P="2.0";let T;const x=new Map;let q;const E=new Map,N=new Map;let O,M,L=new s.LinkedMap,A=new Map,j=new Set,F=new Map,I=f.Off,W=g.Text,H=C.New;const $=new a.Emitter,U=new a.Emitter,z=new a.Emitter,V=new a.Emitter,K=new a.Emitter,B=b&&b.cancellationStrategy?b.cancellationStrategy:_.Message;function J(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function G(e){}function X(){return H===C.Listening}function Q(){return H===C.Closed}function Y(){return H===C.Disposed}function Z(){H!==C.New&&H!==C.Listening||(H=C.Closed,U.fire(void 0))}function ee(){O||0===L.size||(O=(0,o.default)().timer.setImmediate((()=>{O=void 0,function(){if(0===L.size)return;const e=L.shift();try{r.Message.isRequest(e)?function(e){if(Y())return;function t(t,o,i){const s={jsonrpc:P,id:e.id};t instanceof r.ResponseError?s.error=t.toJson():s.result=void 0===t?null:t,oe(s,o,i),n.write(s).catch((()=>R.error("Sending response failed.")))}function o(t,o,i){const r={jsonrpc:P,id:e.id,error:t.toJson()};oe(r,o,i),n.write(r).catch((()=>R.error("Sending response failed.")))}!function(e){if(I!==f.Off&&M)if(W===g.Text){let t;I!==f.Verbose&&I!==f.Compact||!e.params||(t=`Params: ${ne(e.params)}\n\n`),M.log(`Received request '${e.method} - (${e.id})'.`,t)}else re("receive-request",e)}(e);const s=x.get(e.method);let a,c;s&&(a=s.type,c=s.handler);const u=Date.now();if(c||T){const s=e.id??String(Date.now()),l=B.receiver.createCancellationTokenSource(s);null!==e.id&&j.has(e.id)&&l.cancel(),null!==e.id&&F.set(s,l);try{let d;if(c)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return void o(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but received none.`),e.method,u);d=c(l.token)}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===r.ParameterStructures.byName)return void o(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);d=c(...e.params,l.token)}else{if(void 0!==a&&a.parameterStructures===r.ParameterStructures.byPosition)return void o(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);d=c(e.params,l.token)}else T&&(d=T(e.method,e.params,l.token));const h=d;d?h.then?h.then((n=>{F.delete(s),t(n,e.method,u)}),(t=>{F.delete(s),t instanceof r.ResponseError?o(t,e.method,u):t&&i.string(t.message)?o(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,u):o(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)})):(F.delete(s),t(d,e.method,u)):(F.delete(s),function(t,o,i){void 0===t&&(t=null);const r={jsonrpc:P,id:e.id,result:t};oe(r,o,i),n.write(r).catch((()=>R.error("Sending response failed.")))}(d,e.method,u))}catch(n){F.delete(s),n instanceof r.ResponseError?t(n,e.method,u):n&&i.string(n.message)?o(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,u):o(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}}else o(new r.ResponseError(r.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}(e):r.Message.isNotification(e)?function(e){if(Y())return;let t,n;if(e.method===u.type.method){const t=e.params.id;return j.delete(t),void ie(e)}{const o=E.get(e.method);o&&(n=o.handler,t=o.type)}if(n||q)try{if(ie(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==r.ParameterStructures.byName&&R.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){const o=e.params;e.method===d.type.method&&2===o.length&&l.is(o[0])?n({token:o[0],value:o[1]}):(void 0!==t&&(t.parameterStructures===r.ParameterStructures.byName&&R.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&R.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${o.length} arguments`)),n(...o))}else void 0!==t&&t.parameterStructures===r.ParameterStructures.byPosition&&R.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params);else q&&q(e.method,e.params)}catch(t){t.message?R.error(`Notification handler '${e.method}' failed with message: ${t.message}`):R.error(`Notification handler '${e.method}' failed unexpectedly.`)}else z.fire(e)}(e):r.Message.isResponse(e)?function(e){if(!Y())if(null===e.id)e.error?R.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):R.error("Received response message without id. No further error information provided.");else{const t=e.id,n=A.get(t);if(function(e,t){if(I!==f.Off&&M)if(W===g.Text){let n;if(I!==f.Verbose&&I!==f.Compact||(e.error&&e.error.data?n=`Error data: ${ne(e.error.data)}\n\n`:e.result?n=`Result: ${ne(e.result)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),t){const o=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";M.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${o}`,n)}else M.log(`Received response ${e.id} without active response promise.`,n)}else re("receive-response",e)}(e,n),void 0!==n){A.delete(t);try{if(e.error){const t=e.error;n.reject(new r.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?R.error(`Response handler '${n.method}' failed with message: ${e.message}`):R.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}(e):function(e){if(!e)return void R.error("Received empty message.");R.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(i.string(t.id)||i.number(t.id)){const e=t.id,n=A.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}finally{ee()}}()})))}e.onClose(Z),e.onError((function(e){$.fire([e,void 0,void 0])})),n.onClose(Z),n.onError((function(e){$.fire(e)}));const te=e=>{try{if(r.Message.isNotification(e)&&e.method===u.type.method){const t=e.params.id,o=J(t),i=L.get(o);if(r.Message.isRequest(i)){const r=b?.connectionStrategy,s=r&&r.cancelUndispatched?r.cancelUndispatched(i,G):void 0;if(s&&(void 0!==s.error||void 0!==s.result))return L.delete(o),F.delete(t),s.id=i.id,oe(s,e.method,Date.now()),void n.write(s).catch((()=>R.error("Sending response for canceled message failed.")))}const s=F.get(t);if(void 0!==s)return s.cancel(),void ie(e);j.add(t)}!function(e,t){var n;r.Message.isRequest(t)?e.set(J(t.id),t):r.Message.isResponse(t)?e.set(null===(n=t.id)?"res-unknown-"+(++k).toString():"res-"+n.toString(),t):e.set("not-"+(++S).toString(),t)}(L,e)}finally{ee()}};function ne(e){if(null!=e)switch(I){case f.Verbose:return JSON.stringify(e,null,4);case f.Compact:return JSON.stringify(e);default:return}}function oe(e,t,n){if(I!==f.Off&&M)if(W===g.Text){let o;I!==f.Verbose&&I!==f.Compact||(e.error&&e.error.data?o=`Error data: ${ne(e.error.data)}\n\n`:e.result?o=`Result: ${ne(e.result)}\n\n`:void 0===e.error&&(o="No result returned.\n\n")),M.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,o)}else re("send-response",e)}function ie(e){if(I!==f.Off&&M&&e.method!==m.type.method)if(W===g.Text){let t;I!==f.Verbose&&I!==f.Compact||(t=e.params?`Params: ${ne(e.params)}\n\n`:"No parameters provided.\n\n"),M.log(`Received notification '${e.method}'.`,t)}else re("receive-notification",e)}function re(e,t){if(!M||I===f.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};M.log(n)}function se(){if(Q())throw new D(y.Closed,"Connection is closed.");if(Y())throw new D(y.Disposed,"Connection is disposed.")}function ae(e){return void 0===e?null:e}function ce(e){return null===e?void 0:e}function ue(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function le(e,t){switch(e){case r.ParameterStructures.auto:return ue(t)?ce(t):[ae(t)];case r.ParameterStructures.byName:if(!ue(t))throw new Error("Received parameters by name but param is not an object literal.");return ce(t);case r.ParameterStructures.byPosition:return[ae(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function de(e,t){let n;const o=e.numberOfParams;switch(o){case 0:n=void 0;break;case 1:n=le(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{let o,s;if(se(),i.string(e)){o=e;const n=t[0];let i=0,a=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(i=1,a=n);let c=t.length;const u=c-i;switch(u){case 0:s=void 0;break;case 1:s=le(a,t[i]);break;default:if(a===r.ParameterStructures.byName)throw new Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);s=t.slice(i,c).map((e=>ae(e)))}}else{const n=t;o=e.method,s=de(e,n)}const a={jsonrpc:P,method:o,params:s};return function(e){if(I!==f.Off&&M)if(W===g.Text){let t;I!==f.Verbose&&I!==f.Compact||(t=e.params?`Params: ${ne(e.params)}\n\n`:"No parameters provided.\n\n"),M.log(`Sending notification '${e.method}'.`,t)}else re("send-notification",e)}(a),n.write(a).catch((()=>R.error("Sending notification failed.")))},onNotification:(e,t)=>{let n;return se(),i.func(e)?q=e:t&&(i.string(e)?(n=e,E.set(e,{type:void 0,handler:t})):(n=e.method,E.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?E.delete(n):q=void 0}}},onProgress:(e,t,n)=>{if(N.has(t))throw new Error(`Progress handler for token ${t} already registered`);return N.set(t,n),{dispose:()=>{N.delete(t)}}},sendProgress:(e,t,n)=>he.sendNotification(d.type,{token:t,value:n}),onUnhandledProgress:V.event,sendRequest:(e,...t)=>{let o,s,a;if(se(),function(){if(!X())throw new Error("Call listen() first.")}(),i.string(e)){o=e;const n=t[0],i=t[t.length-1];let u=0,l=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(u=1,l=n);let d=t.length;c.CancellationToken.is(i)&&(d-=1,a=i);const h=d-u;switch(h){case 0:s=void 0;break;case 1:s=le(l,t[u]);break;default:if(l===r.ParameterStructures.byName)throw new Error(`Received ${h} parameters for 'by Name' request parameter structure.`);s=t.slice(u,d).map((e=>ae(e)))}}else{const n=t;o=e.method,s=de(e,n);const i=e.numberOfParams;a=c.CancellationToken.is(n[i])?n[i]:void 0}const u=w++;let l;return a&&(l=a.onCancellationRequested((()=>{const e=B.sender.sendCancellation(he,u);return void 0===e?(R.log(`Received no promise from cancellation strategy when cancelling id ${u}`),Promise.resolve()):e.catch((()=>{R.log(`Sending cancellation messages for id ${u} failed`)}))}))),new Promise(((e,t)=>{const i={jsonrpc:P,id:u,method:o,params:s};let a={method:o,timerStart:Date.now(),resolve:t=>{e(t),B.sender.cleanup(u),l?.dispose()},reject:e=>{t(e),B.sender.cleanup(u),l?.dispose()}};!function(e){if(I!==f.Off&&M)if(W===g.Text){let t;I!==f.Verbose&&I!==f.Compact||!e.params||(t=`Params: ${ne(e.params)}\n\n`),M.log(`Sending request '${e.method} - (${e.id})'.`,t)}else re("send-request",e)}(i);try{n.write(i).catch((()=>R.error("Sending request failed.")))}catch(e){a.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),a=null}a&&A.set(u,a)}))},onRequest:(e,t)=>{se();let n=null;return h.is(e)?(n=void 0,T=e):i.string(e)?(n=null,void 0!==t&&(n=e,x.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,x.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?x.delete(n):T=void 0)}}},hasPendingResponse:()=>A.size>0,trace:async(e,t,n)=>{let o=!1,r=g.Text;void 0!==n&&(i.boolean(n)?o=n:(o=n.sendNotification||!1,r=n.traceFormat||g.Text)),I=e,W=r,M=I===f.Off?void 0:t,!o||Q()||Y()||await he.sendNotification(p.type,{value:f.toString(e)})},onError:$.event,onClose:U.event,onUnhandledNotification:z.event,onDispose:K.event,end:()=>{n.end()},dispose:()=>{if(Y())return;H=C.Disposed,K.fire(void 0);const t=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of A.values())e.reject(t);A=new Map,F=new Map,j=new Set,L=new s.LinkedMap,i.func(n.dispose)&&n.dispose(),i.func(e.dispose)&&e.dispose()},listen:()=>{se(),function(){if(X())throw new D(y.AlreadyListening,"Connection is already listening")}(),H=C.Listening,e.listen(te)},inspect:()=>{(0,o.default)().console.log("inspect")}};return he.onNotification(m.type,(e=>{if(I===f.Off||!M)return;const t=I===f.Verbose||I===f.Compact;M.log(e.message,t?e.verbose:void 0)})),he.onNotification(d.type,(e=>{const t=N.get(e.token);t?t(e.value):V.fire(e)})),he}},3911:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,(t.Disposable||(t.Disposable={})).create=function(e){return{dispose:e}}},7135:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const o=n(147);!function(e){const t={dispose(){}};e.None=function(){return t}}(t.Event||(t.Event={}));class i{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let o=0,i=this._callbacks.length;o{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const o={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),o.dispose=r._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(o),o}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=r,r._noop=function(){}},7574:(e,t)=>{function n(e){return"string"==typeof e||e instanceof String}function o(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=o,t.stringArray=function(e){return o(e)&&e.every((e=>n(e)))}},6184:(e,t)=>{var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(o=t.Touch||(t.Touch={}));class i{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=o.None){const n=this._map.get(e);if(n)return t!==o.None&&this.touch(n,t),n.value}set(e,t,n=o.None){let i=this._map.get(e);if(i)i.value=t,n!==o.None&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case o.None:this.addItemLast(i);break;case o.First:this.addItemFirst(i);break;case o.Last:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let o=this._head;for(;o;){if(t?e.bind(t)(o.value,o.key,this):e(o.value,o.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");o=o.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===o.First||t===o.Last)if(t===o.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===o.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=i,t.LRUCache=class extends i{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=o.AsNew){return super.get(e,t)}peek(e){return super.get(e,o.None)}set(e,t){return super.set(e,t,o.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},5530:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(){if(0===this._chunks.length)return;let e=0,t=0,n=0,o=0;e:for(;tthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const o=this._chunks[0];if(o.byteLength>e){const i=o.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=o.slice(e),this._totalLength-=e,e-=e}else t.set(o,n),n+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return t}}},6525:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const o=n(147),i=n(7574),r=n(7135);var s;(t.MessageReader||(t.MessageReader={})).is=function(e){let t=e;return t&&i.func(t.listen)&&i.func(t.dispose)&&i.func(t.onError)&&i.func(t.onClose)&&i.func(t.onPartialMessage)};class a{constructor(){this.errorEmitter=new r.Emitter,this.closeEmitter=new r.Emitter,this.partialMessageEmitter=new r.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=a,function(e){e.fromOptions=function(e){let t,n;const i=new Map;let r;const s=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(n=e.contentDecoder,i.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)i.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(r=e.contentTypeDecoder,s.set(r.name,r)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)s.set(t.name,t)}return void 0===r&&(r=(0,o.default)().applicationJson.decoder,s.set(r.name,r)),{charset:t,contentDecoder:n,contentDecoders:i,contentTypeDecoder:r,contentTypeDecoders:s}}}(s||(s={})),t.ReadableStreamMessageReader=class extends a{constructor(e,t){super(),this.readable=e,this.options=s.fromOptions(t),this.buffer=(0,o.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders();if(!e)return;const t=e.get("Content-Length");if(!t)throw new Error("Header must provide a Content-Length property.");const n=parseInt(t);if(isNaN(n))throw new Error("Content-Length value must be a number.");this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();let t;this.clearPartialMessageTimer(),this.nextMessageLength=-1,t=void 0!==this.options.contentDecoder?this.options.contentDecoder.decode(e):Promise.resolve(e),t.then((e=>{this.options.contentTypeDecoder.decode(e,this.options).then((e=>{this.callback(e)}),(e=>{this.fireError(e)}))}),(e=>{this.fireError(e)}))}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,o.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},6654:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const o=n(147),i=n(7574),r=n(142),s=n(7135);var a;(t.MessageWriter||(t.MessageWriter={})).is=function(e){let t=e;return t&&i.func(t.dispose)&&i.func(t.onClose)&&i.func(t.onError)&&i.func(t.write)};class c{constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=c,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,o.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,o.default)().applicationJson.encoder}}}(a||(a={})),t.WriteableStreamMessageWriter=class extends c{constructor(e,t){super(),this.writable=e,this.options=a.fromOptions(t),this.errorCount=0,this.writeSemaphore=new r.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},839:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const o=n(7574);var i,r;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(i=t.ErrorCodes||(t.ErrorCodes={}));class s extends Error{constructor(e,t,n){super(t),this.code=o.number(e)?e:i.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,s.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=s;class a{constructor(e){this.kind=e}static is(e){return e===a.auto||e===a.byName||e===a.byPosition}toString(){return this.kind}}t.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");class c{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return a.auto}}t.AbstractMessageSignature=c,t.RequestType0=class extends c{constructor(e){super(e,0)}},t.RequestType=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends c{constructor(e){super(e,2)}},t.RequestType3=class extends c{constructor(e){super(e,3)}},t.RequestType4=class extends c{constructor(e){super(e,4)}},t.RequestType5=class extends c{constructor(e){super(e,5)}},t.RequestType6=class extends c{constructor(e){super(e,6)}},t.RequestType7=class extends c{constructor(e){super(e,7)}},t.RequestType8=class extends c{constructor(e){super(e,8)}},t.RequestType9=class extends c{constructor(e){super(e,9)}},t.NotificationType=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends c{constructor(e){super(e,0)}},t.NotificationType1=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends c{constructor(e){super(e,2)}},t.NotificationType3=class extends c{constructor(e){super(e,3)}},t.NotificationType4=class extends c{constructor(e){super(e,4)}},t.NotificationType5=class extends c{constructor(e){super(e,5)}},t.NotificationType6=class extends c{constructor(e){super(e,6)}},t.NotificationType7=class extends c{constructor(e){super(e,7)}},t.NotificationType8=class extends c{constructor(e){super(e,8)}},t.NotificationType9=class extends c{constructor(e){super(e,9)}},(r=t.Message||(t.Message={})).isRequest=function(e){const t=e;return t&&o.string(t.method)&&(o.string(t.id)||o.number(t.id))},r.isNotification=function(e){const t=e;return t&&o.string(t.method)&&void 0===e.id},r.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(o.string(t.id)||o.number(t.id)||null===t.id)}},147:(e,t)=>{let n;function o(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(o||(o={})),t.default=o},142:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const o=n(147);t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,o.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},4389:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.createServerSocketTransport=t.createClientSocketTransport=t.createServerPipeTransport=t.createClientPipeTransport=t.generateRandomPipeName=t.StreamMessageWriter=t.StreamMessageReader=t.SocketMessageWriter=t.SocketMessageReader=t.IPCMessageWriter=t.IPCMessageReader=void 0;const r=n(3034);r.default.install();const s=n(3870),a=n(1017),c=n(2037),u=n(6113),l=n(1808);i(n(3870),t);class d extends s.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose()))}listen(e){return this.process.on("message",e),s.Disposable.create((()=>this.process.off("message",e)))}}t.IPCMessageReader=d;class h extends s.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose))}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,(t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0})),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.IPCMessageWriter=h;class f extends s.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,r.default)().stream.asReadableStream(e),t)}}t.SocketMessageReader=f;class g extends s.WriteableStreamMessageWriter{constructor(e,t){super((0,r.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}t.SocketMessageWriter=g;class p extends s.ReadableStreamMessageReader{constructor(e,t){super((0,r.default)().stream.asReadableStream(e),t)}}t.StreamMessageReader=p;class m extends s.WriteableStreamMessageWriter{constructor(e,t){super((0,r.default)().stream.asWritableStream(e),t)}}t.StreamMessageWriter=m;const y=process.env.XDG_RUNTIME_DIR,v=new Map([["linux",107],["darwin",103]]);t.generateRandomPipeName=function(){const e=(0,u.randomBytes)(21).toString("hex");if("win32"===process.platform)return`\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`;let t;t=y?a.join(y,`vscode-ipc-${e}.sock`):a.join(c.tmpdir(),`vscode-${e}.sock`);const n=v.get(process.platform);return void 0!==n&&t.length>=n&&(0,r.default)().console.warn(`WARNING: IPC handle "${t}" is longer than ${n} characters.`),t},t.createClientPipeTransport=function(e,t="utf-8"){let n;const o=new Promise(((e,t)=>{n=e}));return new Promise(((i,r)=>{let s=(0,l.createServer)((e=>{s.close(),n([new f(e,t),new g(e,t)])}));s.on("error",r),s.listen(e,(()=>{s.removeListener("error",r),i({onConnected:()=>o})}))}))},t.createServerPipeTransport=function(e,t="utf-8"){const n=(0,l.createConnection)(e);return[new f(n,t),new g(n,t)]},t.createClientSocketTransport=function(e,t="utf-8"){let n;const o=new Promise(((e,t)=>{n=e}));return new Promise(((i,r)=>{const s=(0,l.createServer)((e=>{s.close(),n([new f(e,t),new g(e,t)])}));s.on("error",r),s.listen(e,"127.0.0.1",(()=>{s.removeListener("error",r),i({onConnected:()=>o})}))}))},t.createServerSocketTransport=function(e,t="utf-8"){const n=(0,l.createConnection)(e,"127.0.0.1");return[new f(n,t),new g(n,t)]},t.createMessageConnection=function(e,t,n,o){n||(n=s.NullLogger);const i=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new p(e):e,r=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new m(t):t;return s.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,s.createMessageConnection)(i,r,n,o)}},3034:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=n(147),i=n(3837),r=n(3911),s=n(5530);class a extends s.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return a.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new i.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}a.emptyBuffer=Buffer.allocUnsafe(0);class c{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),r.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),r.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),r.Disposable.create((()=>this.stream.off("end",e)))}onData(e){return this.stream.on("data",e),r.Disposable.create((()=>this.stream.off("data",e)))}}class u{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),r.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),r.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),r.Disposable.create((()=>this.stream.off("end",e)))}write(e,t){return new Promise(((n,o)=>{const i=e=>{null==e?n():o(e)};"string"==typeof e?this.stream.write(e,t,i):this.stream.write(e,i)}))}end(){this.stream.end()}}const l=Object.freeze({messageBuffer:Object.freeze({create:e=>new a(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new i.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new c(e),asWritableStream:e=>new u(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){const o=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(o)}},setImmediate(e,...t){const n=setImmediate(e,...t);return{dispose:()=>clearImmediate(n)}},setInterval(e,t,...n){const o=setInterval(e,t,...n);return{dispose:()=>clearInterval(o)}}})});function d(){return l}!function(e){e.install=function(){o.default.install(l)}}(d||(d={})),t.default=d},5028:(e,t,n)=>{e.exports=n(4389)},1661:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,i(n(4389),t),i(n(1674),t),i(n(6140),t),i(n(542),t);var r,s=n(3767);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return s.createProtocolConnection}}),(r=t.LSPErrorCodes||(t.LSPErrorCodes={})).lspReservedErrorRangeStart=-32899,r.RequestFailed=-32803,r.ServerCancelled=-32802,r.ContentModified=-32801,r.RequestCancelled=-32800,r.lspReservedErrorRangeEnd=-32800},3767:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const o=n(4389);t.createProtocolConnection=function(e,t,n,i){return o.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,o.createMessageConnection)(e,t,n,i)}},6140:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=void 0;const o=n(4389);t.RegistrationType=class{constructor(e){this.method=e}};class i extends o.RequestType0{constructor(e){super(e)}}t.ProtocolRequestType0=i;class r extends o.RequestType{constructor(e){super(e,o.ParameterStructures.byName)}}t.ProtocolRequestType=r;class s extends o.NotificationType0{constructor(e){super(e)}}t.ProtocolNotificationType0=s;class a extends o.NotificationType{constructor(e){super(e,o.ParameterStructures.byName)}}t.ProtocolNotificationType=a},2918:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const o=n(6140);var i,r,s;(s=t.CallHierarchyPrepareRequest||(t.CallHierarchyPrepareRequest={})).method="textDocument/prepareCallHierarchy",s.type=new o.ProtocolRequestType(s.method),(r=t.CallHierarchyIncomingCallsRequest||(t.CallHierarchyIncomingCallsRequest={})).method="callHierarchy/incomingCalls",r.type=new o.ProtocolRequestType(r.method),(i=t.CallHierarchyOutgoingCallsRequest||(t.CallHierarchyOutgoingCallsRequest={})).method="callHierarchy/outgoingCalls",i.type=new o.ProtocolRequestType(i.method)},3390:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const o=n(6140);var i;(i=t.DocumentColorRequest||(t.DocumentColorRequest={})).method="textDocument/documentColor",i.type=new o.ProtocolRequestType(i.method),(t.ColorPresentationRequest||(t.ColorPresentationRequest={})).type=new o.ProtocolRequestType("textDocument/colorPresentation")},5934:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const o=n(6140);(t.ConfigurationRequest||(t.ConfigurationRequest={})).type=new o.ProtocolRequestType("workspace/configuration")},764:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const o=n(6140);var i;(i=t.DeclarationRequest||(t.DeclarationRequest={})).method="textDocument/declaration",i.type=new o.ProtocolRequestType(i.method)},9824:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;const o=n(4389),i=n(9533),r=n(6140);var s,a,c,u;(t.DiagnosticServerCancellationData||(t.DiagnosticServerCancellationData={})).is=function(e){const t=e;return t&&i.boolean(t.retriggerRequest)},(u=t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={})).Full="full",u.Unchanged="unchanged",(c=t.DocumentDiagnosticRequest||(t.DocumentDiagnosticRequest={})).method="textDocument/diagnostic",c.type=new r.ProtocolRequestType(c.method),c.partialResult=new o.ProgressType,(a=t.WorkspaceDiagnosticRequest||(t.WorkspaceDiagnosticRequest={})).method="workspace/diagnostic",a.type=new r.ProtocolRequestType(a.method),a.partialResult=new o.ProgressType,(s=t.DiagnosticRefreshRequest||(t.DiagnosticRefreshRequest={})).method="workspace/diagnostic/refresh",s.type=new r.ProtocolRequestType0(s.method)},7846:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const o=n(6140);var i,r,s,a,c,u,l;(l=t.FileOperationPatternKind||(t.FileOperationPatternKind={})).file="file",l.folder="folder",(u=t.WillCreateFilesRequest||(t.WillCreateFilesRequest={})).method="workspace/willCreateFiles",u.type=new o.ProtocolRequestType(u.method),(c=t.DidCreateFilesNotification||(t.DidCreateFilesNotification={})).method="workspace/didCreateFiles",c.type=new o.ProtocolNotificationType(c.method),(a=t.WillRenameFilesRequest||(t.WillRenameFilesRequest={})).method="workspace/willRenameFiles",a.type=new o.ProtocolRequestType(a.method),(s=t.DidRenameFilesNotification||(t.DidRenameFilesNotification={})).method="workspace/didRenameFiles",s.type=new o.ProtocolNotificationType(s.method),(r=t.DidDeleteFilesNotification||(t.DidDeleteFilesNotification={})).method="workspace/didDeleteFiles",r.type=new o.ProtocolNotificationType(r.method),(i=t.WillDeleteFilesRequest||(t.WillDeleteFilesRequest={})).method="workspace/willDeleteFiles",i.type=new o.ProtocolRequestType(i.method)},3394:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRequest=void 0;const o=n(6140);var i;(i=t.FoldingRangeRequest||(t.FoldingRangeRequest={})).method="textDocument/foldingRange",i.type=new o.ProtocolRequestType(i.method)},2122:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const o=n(6140);var i;(i=t.ImplementationRequest||(t.ImplementationRequest={})).method="textDocument/implementation",i.type=new o.ProtocolRequestType(i.method)},9999:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const o=n(6140);var i,r,s;(s=t.InlayHintRequest||(t.InlayHintRequest={})).method="textDocument/inlayHint",s.type=new o.ProtocolRequestType(s.method),(r=t.InlayHintResolveRequest||(t.InlayHintResolveRequest={})).method="inlayHint/resolve",r.type=new o.ProtocolRequestType(r.method),(i=t.InlayHintRefreshRequest||(t.InlayHintRefreshRequest={})).method="workspace/inlayHint/refresh",i.type=new o.ProtocolRequestType0(i.method)},5246:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const o=n(6140);var i,r;(r=t.InlineValueRequest||(t.InlineValueRequest={})).method="textDocument/inlineValue",r.type=new o.ProtocolRequestType(r.method),(i=t.InlineValueRefreshRequest||(t.InlineValueRefreshRequest={})).method="workspace/inlineValue/refresh",i.type=new o.ProtocolRequestType0(i.method)},542:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=void 0;const o=n(6140),i=n(1674),r=n(9533),s=n(2122);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return s.ImplementationRequest}});const a=n(1589);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return a.TypeDefinitionRequest}});const c=n(8744);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return c.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return c.DidChangeWorkspaceFoldersNotification}});const u=n(5934);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return u.ConfigurationRequest}});const l=n(3390);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return l.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return l.ColorPresentationRequest}});const d=n(3394);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return d.FoldingRangeRequest}});const h=n(764);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return h.DeclarationRequest}});const f=n(5206);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return f.SelectionRangeRequest}});const g=n(1862);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return g.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return g.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return g.WorkDoneProgressCancelNotification}});const p=n(2918);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return p.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return p.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return p.CallHierarchyPrepareRequest}});const m=n(9434);Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return m.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return m.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return m.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return m.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return m.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return m.SemanticTokensRegistrationType}});const y=n(5726);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return y.ShowDocumentRequest}});const v=n(6305);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return v.LinkedEditingRangeRequest}});const b=n(7846);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return b.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return b.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return b.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return b.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return b.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return b.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return b.WillDeleteFilesRequest}});const R=n(3443);Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return R.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return R.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return R.MonikerRequest}});const _=n(3693);Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return _.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return _.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return _.TypeHierarchySupertypesRequest}});const C=n(5246);Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return C.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return C.InlineValueRefreshRequest}});const w=n(9999);Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return w.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return w.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return w.InlayHintRefreshRequest}});const D=n(9824);Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return D.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return D.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return D.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return D.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return D.DiagnosticRefreshRequest}});const S=n(7169);var k,P,T,x,q,E,N,O,M,L,A,j,F,I,W,H,$,U,z,V,K,B,J,G,X,Q,Y,Z,ee,te,ne,oe,ie,re,se,ae,ce,ue,le,de,he,fe,ge,pe;Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return S.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return S.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return S.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return S.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return S.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return S.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return S.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return S.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return S.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return S.DidCloseNotebookDocumentNotification}}),function(e){e.is=function(e){const t=e;return r.string(t.language)||r.string(t.scheme)||r.string(t.pattern)}}(k=t.TextDocumentFilter||(t.TextDocumentFilter={})),function(e){e.is=function(e){const t=e;return r.objectLiteral(t)&&(r.string(t.notebookType)||r.string(t.scheme)||r.string(t.pattern))}}(P=t.NotebookDocumentFilter||(t.NotebookDocumentFilter={})),function(e){e.is=function(e){const t=e;return r.objectLiteral(t)&&(r.string(t.notebook)||P.is(t.notebook))&&(void 0===t.language||r.string(t.language))}}(T=t.NotebookCellTextDocumentFilter||(t.NotebookCellTextDocumentFilter={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(let t of e)if(!r.string(t)&&!k.is(t)&&!T.is(t))return!1;return!0}}(x=t.DocumentSelector||(t.DocumentSelector={})),(t.RegistrationRequest||(t.RegistrationRequest={})).type=new o.ProtocolRequestType("client/registerCapability"),(t.UnregistrationRequest||(t.UnregistrationRequest={})).type=new o.ProtocolRequestType("client/unregisterCapability"),(pe=t.ResourceOperationKind||(t.ResourceOperationKind={})).Create="create",pe.Rename="rename",pe.Delete="delete",(ge=t.FailureHandlingKind||(t.FailureHandlingKind={})).Abort="abort",ge.Transactional="transactional",ge.TextOnlyTransactional="textOnlyTransactional",ge.Undo="undo",(fe=t.PositionEncodingKind||(t.PositionEncodingKind={})).UTF8="utf-8",fe.UTF16="utf-16",fe.UTF32="utf-32",(t.StaticRegistrationOptions||(t.StaticRegistrationOptions={})).hasId=function(e){const t=e;return t&&r.string(t.id)&&t.id.length>0},(t.TextDocumentRegistrationOptions||(t.TextDocumentRegistrationOptions={})).is=function(e){const t=e;return t&&(null===t.documentSelector||x.is(t.documentSelector))},(he=t.WorkDoneProgressOptions||(t.WorkDoneProgressOptions={})).is=function(e){const t=e;return r.objectLiteral(t)&&(void 0===t.workDoneProgress||r.boolean(t.workDoneProgress))},he.hasWorkDoneProgress=function(e){const t=e;return t&&r.boolean(t.workDoneProgress)},(t.InitializeRequest||(t.InitializeRequest={})).type=new o.ProtocolRequestType("initialize"),(t.InitializeErrorCodes||(t.InitializeErrorCodes={})).unknownProtocolVersion=1,(t.InitializedNotification||(t.InitializedNotification={})).type=new o.ProtocolNotificationType("initialized"),(t.ShutdownRequest||(t.ShutdownRequest={})).type=new o.ProtocolRequestType0("shutdown"),(t.ExitNotification||(t.ExitNotification={})).type=new o.ProtocolNotificationType0("exit"),(t.DidChangeConfigurationNotification||(t.DidChangeConfigurationNotification={})).type=new o.ProtocolNotificationType("workspace/didChangeConfiguration"),(de=t.MessageType||(t.MessageType={})).Error=1,de.Warning=2,de.Info=3,de.Log=4,(t.ShowMessageNotification||(t.ShowMessageNotification={})).type=new o.ProtocolNotificationType("window/showMessage"),(t.ShowMessageRequest||(t.ShowMessageRequest={})).type=new o.ProtocolRequestType("window/showMessageRequest"),(t.LogMessageNotification||(t.LogMessageNotification={})).type=new o.ProtocolNotificationType("window/logMessage"),(t.TelemetryEventNotification||(t.TelemetryEventNotification={})).type=new o.ProtocolNotificationType("telemetry/event"),(le=t.TextDocumentSyncKind||(t.TextDocumentSyncKind={})).None=0,le.Full=1,le.Incremental=2,(ue=t.DidOpenTextDocumentNotification||(t.DidOpenTextDocumentNotification={})).method="textDocument/didOpen",ue.type=new o.ProtocolNotificationType(ue.method),(ce=t.TextDocumentContentChangeEvent||(t.TextDocumentContentChangeEvent={})).isIncremental=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},ce.isFull=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},(ae=t.DidChangeTextDocumentNotification||(t.DidChangeTextDocumentNotification={})).method="textDocument/didChange",ae.type=new o.ProtocolNotificationType(ae.method),(se=t.DidCloseTextDocumentNotification||(t.DidCloseTextDocumentNotification={})).method="textDocument/didClose",se.type=new o.ProtocolNotificationType(se.method),(re=t.DidSaveTextDocumentNotification||(t.DidSaveTextDocumentNotification={})).method="textDocument/didSave",re.type=new o.ProtocolNotificationType(re.method),(ie=t.TextDocumentSaveReason||(t.TextDocumentSaveReason={})).Manual=1,ie.AfterDelay=2,ie.FocusOut=3,(oe=t.WillSaveTextDocumentNotification||(t.WillSaveTextDocumentNotification={})).method="textDocument/willSave",oe.type=new o.ProtocolNotificationType(oe.method),(ne=t.WillSaveTextDocumentWaitUntilRequest||(t.WillSaveTextDocumentWaitUntilRequest={})).method="textDocument/willSaveWaitUntil",ne.type=new o.ProtocolRequestType(ne.method),(t.DidChangeWatchedFilesNotification||(t.DidChangeWatchedFilesNotification={})).type=new o.ProtocolNotificationType("workspace/didChangeWatchedFiles"),(te=t.FileChangeType||(t.FileChangeType={})).Created=1,te.Changed=2,te.Deleted=3,(t.RelativePattern||(t.RelativePattern={})).is=function(e){const t=e;return r.objectLiteral(t)&&(i.URI.is(t.baseUri)||i.WorkspaceFolder.is(t.baseUri))&&r.string(t.pattern)},(ee=t.WatchKind||(t.WatchKind={})).Create=1,ee.Change=2,ee.Delete=4,(t.PublishDiagnosticsNotification||(t.PublishDiagnosticsNotification={})).type=new o.ProtocolNotificationType("textDocument/publishDiagnostics"),(Z=t.CompletionTriggerKind||(t.CompletionTriggerKind={})).Invoked=1,Z.TriggerCharacter=2,Z.TriggerForIncompleteCompletions=3,(Y=t.CompletionRequest||(t.CompletionRequest={})).method="textDocument/completion",Y.type=new o.ProtocolRequestType(Y.method),(Q=t.CompletionResolveRequest||(t.CompletionResolveRequest={})).method="completionItem/resolve",Q.type=new o.ProtocolRequestType(Q.method),(X=t.HoverRequest||(t.HoverRequest={})).method="textDocument/hover",X.type=new o.ProtocolRequestType(X.method),(G=t.SignatureHelpTriggerKind||(t.SignatureHelpTriggerKind={})).Invoked=1,G.TriggerCharacter=2,G.ContentChange=3,(J=t.SignatureHelpRequest||(t.SignatureHelpRequest={})).method="textDocument/signatureHelp",J.type=new o.ProtocolRequestType(J.method),(B=t.DefinitionRequest||(t.DefinitionRequest={})).method="textDocument/definition",B.type=new o.ProtocolRequestType(B.method),(K=t.ReferencesRequest||(t.ReferencesRequest={})).method="textDocument/references",K.type=new o.ProtocolRequestType(K.method),(V=t.DocumentHighlightRequest||(t.DocumentHighlightRequest={})).method="textDocument/documentHighlight",V.type=new o.ProtocolRequestType(V.method),(z=t.DocumentSymbolRequest||(t.DocumentSymbolRequest={})).method="textDocument/documentSymbol",z.type=new o.ProtocolRequestType(z.method),(U=t.CodeActionRequest||(t.CodeActionRequest={})).method="textDocument/codeAction",U.type=new o.ProtocolRequestType(U.method),($=t.CodeActionResolveRequest||(t.CodeActionResolveRequest={})).method="codeAction/resolve",$.type=new o.ProtocolRequestType($.method),(H=t.WorkspaceSymbolRequest||(t.WorkspaceSymbolRequest={})).method="workspace/symbol",H.type=new o.ProtocolRequestType(H.method),(W=t.WorkspaceSymbolResolveRequest||(t.WorkspaceSymbolResolveRequest={})).method="workspaceSymbol/resolve",W.type=new o.ProtocolRequestType(W.method),(I=t.CodeLensRequest||(t.CodeLensRequest={})).method="textDocument/codeLens",I.type=new o.ProtocolRequestType(I.method),(F=t.CodeLensResolveRequest||(t.CodeLensResolveRequest={})).method="codeLens/resolve",F.type=new o.ProtocolRequestType(F.method),(j=t.CodeLensRefreshRequest||(t.CodeLensRefreshRequest={})).method="workspace/codeLens/refresh",j.type=new o.ProtocolRequestType0(j.method),(A=t.DocumentLinkRequest||(t.DocumentLinkRequest={})).method="textDocument/documentLink",A.type=new o.ProtocolRequestType(A.method),(L=t.DocumentLinkResolveRequest||(t.DocumentLinkResolveRequest={})).method="documentLink/resolve",L.type=new o.ProtocolRequestType(L.method),(M=t.DocumentFormattingRequest||(t.DocumentFormattingRequest={})).method="textDocument/formatting",M.type=new o.ProtocolRequestType(M.method),(O=t.DocumentRangeFormattingRequest||(t.DocumentRangeFormattingRequest={})).method="textDocument/rangeFormatting",O.type=new o.ProtocolRequestType(O.method),(N=t.DocumentOnTypeFormattingRequest||(t.DocumentOnTypeFormattingRequest={})).method="textDocument/onTypeFormatting",N.type=new o.ProtocolRequestType(N.method),(t.PrepareSupportDefaultBehavior||(t.PrepareSupportDefaultBehavior={})).Identifier=1,(E=t.RenameRequest||(t.RenameRequest={})).method="textDocument/rename",E.type=new o.ProtocolRequestType(E.method),(q=t.PrepareRenameRequest||(t.PrepareRenameRequest={})).method="textDocument/prepareRename",q.type=new o.ProtocolRequestType(q.method),(t.ExecuteCommandRequest||(t.ExecuteCommandRequest={})).type=new o.ProtocolRequestType("workspace/executeCommand"),(t.ApplyWorkspaceEditRequest||(t.ApplyWorkspaceEditRequest={})).type=new o.ProtocolRequestType("workspace/applyEdit")},6305:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const o=n(6140);var i;(i=t.LinkedEditingRangeRequest||(t.LinkedEditingRangeRequest={})).method="textDocument/linkedEditingRange",i.type=new o.ProtocolRequestType(i.method)},3443:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const o=n(6140);var i,r,s;(s=t.UniquenessLevel||(t.UniquenessLevel={})).document="document",s.project="project",s.group="group",s.scheme="scheme",s.global="global",(r=t.MonikerKind||(t.MonikerKind={})).$import="import",r.$export="export",r.local="local",(i=t.MonikerRequest||(t.MonikerRequest={})).method="textDocument/moniker",i.type=new o.ProtocolRequestType(i.method)},7169:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const o=n(1674),i=n(9533),r=n(6140);var s,a,c,u,l,d,h,f,g,p;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(s=t.NotebookCellKind||(t.NotebookCellKind={})),function(e){e.create=function(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const t=e;return i.objectLiteral(t)&&o.uinteger.is(t.executionOrder)&&(void 0===t.success||i.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}}(a=t.ExecutionSummary||(t.ExecutionSummary={})),function(e){function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(typeof e!=typeof n)return!1;if("object"!=typeof e)return!1;const o=Array.isArray(e),r=Array.isArray(n);if(o!==r)return!1;if(o&&r){if(e.length!==n.length)return!1;for(let o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const o=n(4389),i=n(6140);var r,s,a;(a=t.WorkDoneProgress||(t.WorkDoneProgress={})).type=new o.ProgressType,a.is=function(e){return e===a.type},(s=t.WorkDoneProgressCreateRequest||(t.WorkDoneProgressCreateRequest={})).method="window/workDoneProgress/create",s.type=new i.ProtocolRequestType(s.method),(r=t.WorkDoneProgressCancelNotification||(t.WorkDoneProgressCancelNotification={})).method="window/workDoneProgress/cancel",r.type=new i.ProtocolNotificationType(r.method)},5206:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const o=n(6140);var i;(i=t.SelectionRangeRequest||(t.SelectionRangeRequest={})).method="textDocument/selectionRange",i.type=new o.ProtocolRequestType(i.method)},9434:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const o=n(6140);var i,r,s,a,c;(t.TokenFormat||(t.TokenFormat={})).Relative="relative",(c=t.SemanticTokensRegistrationType||(t.SemanticTokensRegistrationType={})).method="textDocument/semanticTokens",c.type=new o.RegistrationType(c.method),(a=t.SemanticTokensRequest||(t.SemanticTokensRequest={})).method="textDocument/semanticTokens/full",a.type=new o.ProtocolRequestType(a.method),(s=t.SemanticTokensDeltaRequest||(t.SemanticTokensDeltaRequest={})).method="textDocument/semanticTokens/full/delta",s.type=new o.ProtocolRequestType(s.method),(r=t.SemanticTokensRangeRequest||(t.SemanticTokensRangeRequest={})).method="textDocument/semanticTokens/range",r.type=new o.ProtocolRequestType(r.method),(i=t.SemanticTokensRefreshRequest||(t.SemanticTokensRefreshRequest={})).method="workspace/semanticTokens/refresh",i.type=new o.ProtocolRequestType0(i.method)},5726:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const o=n(6140);var i;(i=t.ShowDocumentRequest||(t.ShowDocumentRequest={})).method="window/showDocument",i.type=new o.ProtocolRequestType(i.method)},1589:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const o=n(6140);var i;(i=t.TypeDefinitionRequest||(t.TypeDefinitionRequest={})).method="textDocument/typeDefinition",i.type=new o.ProtocolRequestType(i.method)},3693:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const o=n(6140);var i,r,s;(s=t.TypeHierarchyPrepareRequest||(t.TypeHierarchyPrepareRequest={})).method="textDocument/prepareTypeHierarchy",s.type=new o.ProtocolRequestType(s.method),(r=t.TypeHierarchySupertypesRequest||(t.TypeHierarchySupertypesRequest={})).method="typeHierarchy/supertypes",r.type=new o.ProtocolRequestType(r.method),(i=t.TypeHierarchySubtypesRequest||(t.TypeHierarchySubtypesRequest={})).method="typeHierarchy/subtypes",i.type=new o.ProtocolRequestType(i.method)},8744:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const o=n(6140);(t.WorkspaceFoldersRequest||(t.WorkspaceFoldersRequest={})).type=new o.ProtocolRequestType0("workspace/workspaceFolders"),(t.DidChangeWorkspaceFoldersNotification||(t.DidChangeWorkspaceFoldersNotification={})).type=new o.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")},9533:(e,t)=>{function n(e){return"string"==typeof e||e instanceof String}function o(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=o,t.stringArray=function(e){return o(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},273:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const r=n(5028);i(n(5028),t),i(n(1661),t),t.createProtocolConnection=function(e,t,n,o){return(0,r.createMessageConnection)(e,t,n,o)}},6560:(e,t,n)=>{e.exports=n(273)},6813:(e,t,n)=>{n.r(t),n.d(t,{TextDocument:()=>i});class o{constructor(e,t,n,o){this._uri=e,this._languageId=t,this._version=n,this._content=o,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(let t of e)if(o.isIncremental(t)){const e=a(t.range),n=this.offsetAt(e.start),o=this.offsetAt(e.end);this._content=this._content.substring(0,n)+t.text+this._content.substring(o,this._content.length);const i=Math.max(e.start.line,0),r=Math.max(e.end.line,0);let c=this._lineOffsets;const u=s(t.text,!1,n);if(r-i===u.length)for(let e=0,t=u.length;ee?o=i:n=i+1}let i=n-1;return{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],o=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function c(e){const t=a(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,i){return new o(e,t,n,i)},e.update=function(e,t,n){if(e instanceof o)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){let n=e.getText(),o=r(t.map(c),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=0;const s=[];for(const t of o){let o=e.offsetAt(t.range.start);if(oi&&s.push(n.substring(i,o)),t.newText.length&&s.push(t.newText),i=e.offsetAt(t.range.end)}return s.push(n.substr(i)),s.join("")}}(i||(i={}))},1674:(e,t,n)=>{var o,i,r,s,a,c,u,l,d,h,f,g,p,m,y,v,b,R,_,C,w,D,S,k,P,T,x,q;n.r(t),n.d(t,{AnnotatedTextEdit:()=>S,ChangeAnnotation:()=>w,ChangeAnnotationIdentifier:()=>D,CodeAction:()=>re,CodeActionContext:()=>ie,CodeActionKind:()=>ne,CodeActionTriggerKind:()=>oe,CodeDescription:()=>b,CodeLens:()=>se,Color:()=>d,ColorInformation:()=>h,ColorPresentation:()=>f,Command:()=>_,CompletionItem:()=>U,CompletionItemKind:()=>j,CompletionItemLabelDetails:()=>$,CompletionItemTag:()=>I,CompletionList:()=>z,CreateFile:()=>P,DeleteFile:()=>x,Diagnostic:()=>R,DiagnosticRelatedInformation:()=>m,DiagnosticSeverity:()=>y,DiagnosticTag:()=>v,DocumentHighlight:()=>X,DocumentHighlightKind:()=>G,DocumentLink:()=>ce,DocumentSymbol:()=>te,DocumentUri:()=>o,EOL:()=>Se,FoldingRange:()=>p,FoldingRangeKind:()=>g,FormattingOptions:()=>ae,Hover:()=>K,InlayHint:()=>be,InlayHintKind:()=>ye,InlayHintLabelPart:()=>ve,InlineValueContext:()=>me,InlineValueEvaluatableExpression:()=>pe,InlineValueText:()=>fe,InlineValueVariableLookup:()=>ge,InsertReplaceEdit:()=>W,InsertTextFormat:()=>F,InsertTextMode:()=>H,Location:()=>u,LocationLink:()=>l,MarkedString:()=>V,MarkupContent:()=>A,MarkupKind:()=>L,OptionalVersionedTextDocumentIdentifier:()=>O,ParameterInformation:()=>B,Position:()=>a,Range:()=>c,RenameFile:()=>T,SelectionRange:()=>ue,SemanticTokenModifiers:()=>de,SemanticTokenTypes:()=>le,SemanticTokens:()=>he,SignatureInformation:()=>J,SymbolInformation:()=>Z,SymbolKind:()=>Q,SymbolTag:()=>Y,TextDocument:()=>De,TextDocumentEdit:()=>k,TextDocumentIdentifier:()=>E,TextDocumentItem:()=>M,TextEdit:()=>C,URI:()=>i,VersionedTextDocumentIdentifier:()=>N,WorkspaceChange:()=>we,WorkspaceEdit:()=>q,WorkspaceFolder:()=>Re,WorkspaceSymbol:()=>ee,integer:()=>r,uinteger:()=>s}),function(e){e.is=function(e){return"string"==typeof e}}(o||(o={})),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),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}}(r||(r={})),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}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return ke.objectLiteral(t)&&ke.uinteger(t.line)&&ke.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,o){if(ke.uinteger(e)&&ke.uinteger(t)&&ke.uinteger(n)&&ke.uinteger(o))return{start:a.create(e,t),end:a.create(n,o)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(o,"]"))},e.is=function(e){var t=e;return ke.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(c||(c={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return ke.defined(t)&&c.is(t.range)&&(ke.string(t.uri)||ke.undefined(t.uri))}}(u||(u={})),function(e){e.create=function(e,t,n,o){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:o}},e.is=function(e){var t=e;return ke.defined(t)&&c.is(t.targetRange)&&ke.string(t.targetUri)&&c.is(t.targetSelectionRange)&&(c.is(t.originSelectionRange)||ke.undefined(t.originSelectionRange))}}(l||(l={})),function(e){e.create=function(e,t,n,o){return{red:e,green:t,blue:n,alpha:o}},e.is=function(e){var t=e;return ke.objectLiteral(t)&&ke.numberRange(t.red,0,1)&&ke.numberRange(t.green,0,1)&&ke.numberRange(t.blue,0,1)&&ke.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return ke.objectLiteral(t)&&c.is(t.range)&&d.is(t.color)}}(h||(h={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return ke.objectLiteral(t)&&ke.string(t.label)&&(ke.undefined(t.textEdit)||C.is(t))&&(ke.undefined(t.additionalTextEdits)||ke.typedArray(t.additionalTextEdits,C.is))}}(f||(f={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(g||(g={})),function(e){e.create=function(e,t,n,o,i,r){var s={startLine:e,endLine:t};return ke.defined(n)&&(s.startCharacter=n),ke.defined(o)&&(s.endCharacter=o),ke.defined(i)&&(s.kind=i),ke.defined(r)&&(s.collapsedText=r),s},e.is=function(e){var t=e;return ke.objectLiteral(t)&&ke.uinteger(t.startLine)&&ke.uinteger(t.startLine)&&(ke.undefined(t.startCharacter)||ke.uinteger(t.startCharacter))&&(ke.undefined(t.endCharacter)||ke.uinteger(t.endCharacter))&&(ke.undefined(t.kind)||ke.string(t.kind))}}(p||(p={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return ke.defined(t)&&u.is(t.location)&&ke.string(t.message)}}(m||(m={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(y||(y={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){var t=e;return ke.objectLiteral(t)&&ke.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,o,i,r){var s={range:e,message:t};return ke.defined(n)&&(s.severity=n),ke.defined(o)&&(s.code=o),ke.defined(i)&&(s.source=i),ke.defined(r)&&(s.relatedInformation=r),s},e.is=function(e){var t,n=e;return ke.defined(n)&&c.is(n.range)&&ke.string(n.message)&&(ke.number(n.severity)||ke.undefined(n.severity))&&(ke.integer(n.code)||ke.string(n.code)||ke.undefined(n.code))&&(ke.undefined(n.codeDescription)||ke.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ke.string(n.source)||ke.undefined(n.source))&&(ke.undefined(n.relatedInformation)||ke.typedArray(n.relatedInformation,m.is))}}(R||(R={})),function(e){e.create=function(e,t){for(var n=[],o=2;o0&&(i.arguments=n),i},e.is=function(e){var t=e;return ke.defined(t)&&ke.string(t.title)&&ke.string(t.command)}}(_||(_={})),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){var t=e;return ke.objectLiteral(t)&&ke.string(t.newText)&&c.is(t.range)}}(C||(C={})),function(e){e.create=function(e,t,n){var o={label:e};return void 0!==t&&(o.needsConfirmation=t),void 0!==n&&(o.description=n),o},e.is=function(e){var t=e;return ke.objectLiteral(t)&&ke.string(t.label)&&(ke.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ke.string(t.description)||void 0===t.description)}}(w||(w={})),function(e){e.is=function(e){var t=e;return ke.string(t)}}(D||(D={})),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){var t=e;return C.is(t)&&(w.is(t.annotationId)||D.is(t.annotationId))}}(S||(S={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return ke.defined(t)&&O.is(t.textDocument)&&Array.isArray(t.edits)}}(k||(k={})),function(e){e.create=function(e,t,n){var o={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(o.options=t),void 0!==n&&(o.annotationId=n),o},e.is=function(e){var t=e;return t&&"create"===t.kind&&ke.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ke.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ke.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(P||(P={})),function(e){e.create=function(e,t,n,o){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==o&&(i.annotationId=o),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&ke.string(t.oldUri)&&ke.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ke.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ke.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(T||(T={})),function(e){e.create=function(e,t,n){var o={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(o.options=t),void 0!==n&&(o.annotationId=n),o},e.is=function(e){var t=e;return t&&"delete"===t.kind&&ke.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ke.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ke.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(x||(x={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ke.string(e.kind)?P.is(e)||T.is(e)||x.is(e):k.is(e)})))}}(q||(q={}));var E,N,O,M,L,A,j,F,I,W,H,$,U,z,V,K,B,J,G,X,Q,Y,Z,ee,te,ne,oe,ie,re,se,ae,ce,ue,le,de,he,fe,ge,pe,me,ye,ve,be,Re,_e=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var o,i;if(void 0===n?o=C.insert(e,t):D.is(n)?(i=n,o=S.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),o=S.insert(e,t,i)),this.edits.push(o),void 0!==i)return i},e.prototype.replace=function(e,t,n){var o,i;if(void 0===n?o=C.replace(e,t):D.is(n)?(i=n,o=S.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),o=S.replace(e,t,i)),this.edits.push(o),void 0!==i)return i},e.prototype.delete=function(e,t){var n,o;if(void 0===t?n=C.del(e):D.is(t)?(o=t,n=S.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(t),n=S.del(e,o)),this.edits.push(n),void 0!==o)return o},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Ce=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(D.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),we=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ce(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(k.is(e)){var n=new _e(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var o=new _e(e.changes[n]);t._textEditChanges[n]=o}))):this._workspaceEdit={}}return Object.defineProperty(e.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}),e.prototype.getTextEditChange=function(e){if(O.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};if(!(o=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),o=new _e(i,this._changeAnnotations),this._textEditChanges[t.uri]=o}return o}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var o;if(!(o=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,o=new _e(i),this._textEditChanges[e]=o}return o},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Ce,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,i,r;if(w.is(t)||D.is(t)?o=t:n=t,void 0===o?i=P.create(e,n):(r=D.is(o)?o:this._changeAnnotations.manage(o),i=P.create(e,n,r)),this._workspaceEdit.documentChanges.push(i),void 0!==r)return r},e.prototype.renameFile=function(e,t,n,o){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,r,s;if(w.is(n)||D.is(n)?i=n:o=n,void 0===i?r=T.create(e,t,o):(s=D.is(i)?i:this._changeAnnotations.manage(i),r=T.create(e,t,o,s)),this._workspaceEdit.documentChanges.push(r),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,i,r;if(w.is(t)||D.is(t)?o=t:n=t,void 0===o?i=x.create(e,n):(r=D.is(o)?o:this._changeAnnotations.manage(o),i=x.create(e,n,r)),this._workspaceEdit.documentChanges.push(i),void 0!==r)return r},e}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return ke.defined(t)&&ke.string(t.uri)}}(E||(E={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ke.defined(t)&&ke.string(t.uri)&&ke.integer(t.version)}}(N||(N={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ke.defined(t)&&ke.string(t.uri)&&(null===t.version||ke.integer(t.version))}}(O||(O={})),function(e){e.create=function(e,t,n,o){return{uri:e,languageId:t,version:n,text:o}},e.is=function(e){var t=e;return ke.defined(t)&&ke.string(t.uri)&&ke.string(t.languageId)&&ke.integer(t.version)&&ke.string(t.text)}}(M||(M={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(L||(L={})),function(e){e.is=function(e){var t=e;return ke.objectLiteral(e)&&L.is(t.kind)&&ke.string(t.value)}}(A||(A={})),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}(j||(j={})),function(e){e.PlainText=1,e.Snippet=2}(F||(F={})),function(e){e.Deprecated=1}(I||(I={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&ke.string(t.newText)&&c.is(t.insert)&&c.is(t.replace)}}(W||(W={})),function(e){e.asIs=1,e.adjustIndentation=2}(H||(H={})),function(e){e.is=function(e){var t=e;return t&&(ke.string(t.detail)||void 0===t.detail)&&(ke.string(t.description)||void 0===t.description)}}($||($={})),function(e){e.create=function(e){return{label:e}}}(U||(U={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(z||(z={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return ke.string(t)||ke.objectLiteral(t)&&ke.string(t.language)&&ke.string(t.value)}}(V||(V={})),function(e){e.is=function(e){var t=e;return!!t&&ke.objectLiteral(t)&&(A.is(t.contents)||V.is(t.contents)||ke.typedArray(t.contents,V.is))&&(void 0===e.range||c.is(e.range))}}(K||(K={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(B||(B={})),function(e){e.create=function(e,t){for(var n=[],o=2;o=0;s--){var a=i[s],c=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=r))throw new Error("Overlapping edit");o=o.substring(0,c)+a.newText+o.substring(u,o.length),r=c}return o}}(De||(De={}));var ke,Pe=function(){function e(e,t,n,o){this._uri=e,this._languageId=t,this._version=n,this._content=o,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,o=0;o0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,o=t.length;if(0===o)return a.create(0,e);for(;ne?o=i:n=i+1}var r=n-1;return a.create(r,e-t[r])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],o=e.line+1{Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const o=n(273);t.CallHierarchyFeature=e=>class extends e{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(o.CallHierarchyPrepareRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0))),onIncomingCalls:e=>{const t=o.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onOutgoingCalls:e=>{const t=o.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},2507:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationFeature=void 0;const o=n(273),i=n(289);t.ConfigurationFeature=e=>class extends e{getConfiguration(e){return e?i.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let t={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(o.ConfigurationRequest.type,t).then((t=>Array.isArray(t)?Array.isArray(e)?t:t[0]:Array.isArray(e)?[]:null))}}},6634:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticFeature=void 0;const o=n(273);t.DiagnosticFeature=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(o.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(o.DocumentDiagnosticRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(o.DocumentDiagnosticRequest.partialResult,t)))),onWorkspace:e=>this.connection.onRequest(o.WorkspaceDiagnosticRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(o.WorkspaceDiagnosticRequest.partialResult,t))))}}}},828:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileOperationsFeature=void 0;const o=n(273);t.FileOperationsFeature=e=>class extends e{onDidCreateFiles(e){return this.connection.onNotification(o.DidCreateFilesNotification.type,(t=>{e(t)}))}onDidRenameFiles(e){return this.connection.onNotification(o.DidRenameFilesNotification.type,(t=>{e(t)}))}onDidDeleteFiles(e){return this.connection.onNotification(o.DidDeleteFilesNotification.type,(t=>{e(t)}))}onWillCreateFiles(e){return this.connection.onRequest(o.WillCreateFilesRequest.type,((t,n)=>e(t,n)))}onWillRenameFiles(e){return this.connection.onRequest(o.WillRenameFilesRequest.type,((t,n)=>e(t,n)))}onWillDeleteFiles(e){return this.connection.onRequest(o.WillDeleteFilesRequest.type,((t,n)=>e(t,n)))}}},6507:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintFeature=void 0;const o=n(273);t.InlayHintFeature=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(o.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(o.InlayHintRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t)))),resolve:e=>this.connection.onRequest(o.InlayHintResolveRequest.type,((t,n)=>e(t,n)))}}}},8970:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueFeature=void 0;const o=n(273);t.InlineValueFeature=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(o.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(o.InlineValueRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t))))}}}},2776:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeFeature=void 0;const o=n(273);t.LinkedEditingRangeFeature=e=>class extends e{onLinkedEditingRange(e){return this.connection.onRequest(o.LinkedEditingRangeRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0)))}}},8120:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerFeature=void 0;const o=n(273);t.MonikerFeature=e=>class extends e{get moniker(){return{on:e=>{const t=o.MonikerRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},9748:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookDocuments=t.NotebookSyncFeature=void 0;const o=n(273),i=n(8382);t.NotebookSyncFeature=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(o.DidOpenNotebookDocumentNotification.type,(t=>{e(t)})),onDidChangeNotebookDocument:e=>this.connection.onNotification(o.DidChangeNotebookDocumentNotification.type,(t=>{e(t)})),onDidSaveNotebookDocument:e=>this.connection.onNotification(o.DidSaveNotebookDocumentNotification.type,(t=>{e(t)})),onDidCloseNotebookDocument:e=>this.connection.onNotification(o.DidCloseNotebookDocumentNotification.type,(t=>{e(t)}))}}};class r{onDidOpenTextDocument(e){return this.openHandler=e,o.Disposable.create((()=>{this.openHandler=void 0}))}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,o.Disposable.create((()=>{this.changeHandler=e}))}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,o.Disposable.create((()=>{this.closeHandler=void 0}))}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return r.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return r.NULL_DISPOSE}onDidSaveTextDocument(){return r.NULL_DISPOSE}}r.NULL_DISPOSE=Object.freeze({dispose:()=>{}}),t.NotebookDocuments=class{constructor(e){e instanceof i.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new i.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new o.Emitter,this._onDidChange=new o.Emitter,this._onDidSave=new o.Emitter,this._onDidClose=new o.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){const t=this.notebookCellMap.get(e);return t&&t[0]}findNotebookDocumentForCell(e){const t="string"==typeof e?e:e.document,n=this.notebookCellMap.get(t);return n&&n[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){const t=new r,n=[];return n.push(this.cellTextDocuments.listen(t)),n.push(e.notebooks.synchronization.onDidOpenNotebookDocument((e=>{this.notebookDocuments.set(e.notebookDocument.uri,e.notebookDocument);for(const n of e.cellTextDocuments)t.openTextDocument({textDocument:n});this.updateCellMap(e.notebookDocument),this._onDidOpen.fire(e.notebookDocument)}))),n.push(e.notebooks.synchronization.onDidChangeNotebookDocument((e=>{const n=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0===n)return;n.version=e.notebookDocument.version;const o=n.metadata;let i=!1;const r=e.change;void 0!==r.metadata&&(i=!0,n.metadata=r.metadata);const s=[],a=[],c=[],u=[];if(void 0!==r.cells){const e=r.cells;if(void 0!==e.structure){const o=e.structure.array;if(n.cells.splice(o.start,o.deleteCount,...void 0!==o.cells?o.cells:[]),void 0!==e.structure.didOpen)for(const n of e.structure.didOpen)t.openTextDocument({textDocument:n}),s.push(n.uri);if(e.structure.didClose)for(const n of e.structure.didClose)t.closeTextDocument({textDocument:n}),a.push(n.uri)}if(void 0!==e.data){const t=new Map(e.data.map((e=>[e.document,e])));for(let e=0;e<=n.cells.length;e++){const o=t.get(n.cells[e].document);if(void 0!==o){const i=n.cells.splice(e,1,o);if(c.push({old:i[0],new:o}),t.delete(o.document),0===t.size)break}}}if(void 0!==e.textContent)for(const n of e.textContent)t.changeTextDocument({textDocument:n.document,contentChanges:n.changes}),u.push(n.document.uri)}this.updateCellMap(n);const l={notebookDocument:n};i&&(l.metadata={old:o,new:n.metadata});const d=[];for(const e of s)d.push(this.getNotebookCell(e));const h=[];for(const e of a)h.push(this.getNotebookCell(e));const f=[];for(const e of u)f.push(this.getNotebookCell(e));(d.length>0||h.length>0||c.length>0||f.length>0)&&(l.cells={added:d,removed:h,changed:{data:c,textContent:f}}),void 0===l.metadata&&void 0===l.cells||this._onDidChange.fire(l)}))),n.push(e.notebooks.synchronization.onDidSaveNotebookDocument((e=>{const t=this.notebookDocuments.get(e.notebookDocument.uri);void 0!==t&&this._onDidSave.fire(t)}))),n.push(e.notebooks.synchronization.onDidCloseNotebookDocument((e=>{const n=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0!==n){this._onDidClose.fire(n);for(const n of e.cellTextDocuments)t.closeTextDocument({textDocument:n});this.notebookDocuments.delete(e.notebookDocument.uri);for(const e of n.cells)this.notebookCellMap.delete(e.document)}}))),o.Disposable.create((()=>{n.forEach((e=>e.dispose()))}))}updateCellMap(e){for(const t of e.cells)this.notebookCellMap.set(t.document,[t,e])}}},2731:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.attachPartialResult=t.ProgressFeature=t.attachWorkDone=void 0;const o=n(273),i=n(7560);class r{constructor(e,t){this._connection=e,this._token=t,r.Instances.set(this._token,this)}begin(e,t,n,i){let r={kind:"begin",title:e,percentage:t,message:n,cancellable:i};this._connection.sendProgress(o.WorkDoneProgress.type,this._token,r)}report(e,t){let n={kind:"report"};"number"==typeof e?(n.percentage=e,void 0!==t&&(n.message=t)):n.message=e,this._connection.sendProgress(o.WorkDoneProgress.type,this._token,n)}done(){r.Instances.delete(this._token),this._connection.sendProgress(o.WorkDoneProgress.type,this._token,{kind:"end"})}}r.Instances=new Map;class s extends r{constructor(e,t){super(e,t),this._source=new o.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}}class a{constructor(){}begin(){}report(){}done(){}}class c extends a{constructor(){super(),this._source=new o.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}}var u;t.attachWorkDone=function(e,t){if(void 0===t||void 0===t.workDoneToken)return new a;const n=t.workDoneToken;return delete t.workDoneToken,new r(e,n)},t.ProgressFeature=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),!0===e?.window?.workDoneProgress&&(this._progressSupported=!0,this.connection.onNotification(o.WorkDoneProgressCancelNotification.type,(e=>{let t=r.Instances.get(e.token);(t instanceof s||t instanceof c)&&t.cancel()})))}attachWorkDoneProgress(e){return void 0===e?new a:new r(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){const e=(0,i.generateUuid)();return this.connection.sendRequest(o.WorkDoneProgressCreateRequest.type,{token:e}).then((()=>new s(this.connection,e)))}return Promise.resolve(new c)}},function(e){e.type=new o.ProgressType}(u||(u={}));class l{constructor(e,t){this._connection=e,this._token=t}report(e){this._connection.sendProgress(u.type,this._token,e)}}t.attachPartialResult=function(e,t){if(void 0===t||void 0===t.partialResultToken)return;const n=t.partialResultToken;return delete t.partialResultToken,new l(e,n)}},9817:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensBuilder=t.SemanticTokensDiff=t.SemanticTokensFeature=void 0;const o=n(273);t.SemanticTokensFeature=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(o.SemanticTokensRefreshRequest.type),on:e=>{const t=o.SemanticTokensRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onDelta:e=>{const t=o.SemanticTokensDeltaRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onRange:e=>{const t=o.SemanticTokensRangeRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}};class i{constructor(e,t){this.originalSequence=e,this.modifiedSequence=t}computeDiff(){const e=this.originalSequence.length,t=this.modifiedSequence.length;let n=0;for(;n=n&&i>=n&&this.originalSequence[o]===this.modifiedSequence[i];)o--,i--;(o0&&(r-=this._prevLine,0===r&&(s-=this._prevChar)),this._data[this._dataLen++]=r,this._data[this._dataLen++]=s,this._data[this._dataLen++]=n,this._data[this._dataLen++]=o,this._data[this._dataLen++]=i,this._prevLine=e,this._prevChar=t}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return void 0!==this._prevData}buildEdits(){return void 0!==this._prevData?{resultId:this.id,edits:new i(this._prevData,this._data).computeDiff()}:this.build()}}},9891:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createConnection=t.combineFeatures=t.combineNotebooksFeatures=t.combineLanguagesFeatures=t.combineWorkspaceFeatures=t.combineWindowFeatures=t.combineClientFeatures=t.combineTracerFeatures=t.combineTelemetryFeatures=t.combineConsoleFeatures=t._NotebooksImpl=t._LanguagesImpl=t.BulkUnregistration=t.BulkRegistration=t.ErrorMessageTracker=void 0;const o=n(273),i=n(289),r=n(7560),s=n(2731),a=n(2507),c=n(1836),u=n(7985),l=n(9817),d=n(5421),h=n(828),f=n(2776),g=n(4606),p=n(8970),m=n(6507),y=n(6634),v=n(9748),b=n(8120);function R(e){if(null!==e)return e}t.ErrorMessageTracker=class{constructor(){this._messages=Object.create(null)}add(e){let t=this._messages[e];t||(t=0),t++,this._messages[e]=t}sendErrors(e){Object.keys(this._messages).forEach((t=>{e.window.showErrorMessage(t)}))}};class _{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(o.MessageType.Error,e)}warn(e){this.send(o.MessageType.Warning,e)}info(e){this.send(o.MessageType.Info,e)}log(e){this.send(o.MessageType.Log,e)}send(e,t){this._rawConnection&&this._rawConnection.sendNotification(o.LogMessageNotification.type,{type:e,message:t}).catch((()=>{(0,o.RAL)().console.error("Sending log message failed")}))}}const C=(0,d.ShowDocumentFeature)((0,s.ProgressFeature)(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...t){let n={type:o.MessageType.Error,message:e,actions:t};return this.connection.sendRequest(o.ShowMessageRequest.type,n).then(R)}showWarningMessage(e,...t){let n={type:o.MessageType.Warning,message:e,actions:t};return this.connection.sendRequest(o.ShowMessageRequest.type,n).then(R)}showInformationMessage(e,...t){let n={type:o.MessageType.Info,message:e,actions:t};return this.connection.sendRequest(o.ShowMessageRequest.type,n).then(R)}}));(t.BulkRegistration||(t.BulkRegistration={})).create=function(){return new w};class w{constructor(){this._registrations=[],this._registered=new Set}add(e,t){const n=i.string(e)?e:e.method;if(this._registered.has(n))throw new Error(`${n} is already added to this registration`);const o=r.generateUuid();this._registrations.push({id:o,method:n,registerOptions:t||{}}),this._registered.add(n)}asRegistrationParams(){return{registrations:this._registrations}}}(t.BulkUnregistration||(t.BulkUnregistration={})).create=function(){return new D(void 0,[])};class D{constructor(e,t){this._connection=e,this._unregistrations=new Map,t.forEach((e=>{this._unregistrations.set(e.method,e)}))}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let t of this._unregistrations.values())e.push(t);let t={unregisterations:e};this._connection.sendRequest(o.UnregistrationRequest.type,t).catch((()=>{this._connection.console.info("Bulk unregistration failed.")}))}disposeSingle(e){const t=i.string(e)?e:e.method,n=this._unregistrations.get(t);if(!n)return!1;let r={unregisterations:[n]};return this._connection.sendRequest(o.UnregistrationRequest.type,r).then((()=>{this._unregistrations.delete(t)}),(e=>{this._connection.console.info(`Un-registering request handler for ${n.id} failed.`)})),!0}}class S{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,t,n){return e instanceof w?this.registerMany(e):e instanceof D?this.registerSingle1(e,t,n):this.registerSingle2(e,t)}registerSingle1(e,t,n){const s=i.string(t)?t:t.method,a=r.generateUuid();let c={registrations:[{id:a,method:s,registerOptions:n||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(o.RegistrationRequest.type,c).then((t=>(e.add({id:a,method:s}),e)),(e=>(this.connection.console.info(`Registering request handler for ${s} failed.`),Promise.reject(e))))}registerSingle2(e,t){const n=i.string(e)?e:e.method,s=r.generateUuid();let a={registrations:[{id:s,method:n,registerOptions:t||{}}]};return this.connection.sendRequest(o.RegistrationRequest.type,a).then((e=>o.Disposable.create((()=>{this.unregisterSingle(s,n).catch((()=>{this.connection.console.info(`Un-registering capability with id ${s} failed.`)}))}))),(e=>(this.connection.console.info(`Registering request handler for ${n} failed.`),Promise.reject(e))))}unregisterSingle(e,t){let n={unregisterations:[{id:e,method:t}]};return this.connection.sendRequest(o.UnregistrationRequest.type,n).catch((()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)}))}registerMany(e){let t=e.asRegistrationParams();return this.connection.sendRequest(o.RegistrationRequest.type,t).then((()=>new D(this._connection,t.registrations.map((e=>({id:e.id,method:e.method}))))),(e=>(this.connection.console.info("Bulk registration failed."),Promise.reject(e))))}}const k=(0,h.FileOperationsFeature)((0,c.WorkspaceFoldersFeature)((0,a.ConfigurationFeature)(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){let t=(n=e)&&n.edit?e:{edit:e};var n;return this.connection.sendRequest(o.ApplyWorkspaceEditRequest.type,t)}})));class P{constructor(){this._trace=o.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,t){this._trace!==o.Trace.Off&&this.connection.sendNotification(o.LogTraceNotification.type,{message:e,verbose:this._trace===o.Trace.Verbose?t:void 0}).catch((()=>{}))}}class T{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(o.TelemetryEventNotification.type,e).catch((()=>{this.connection.console.log("Sending TelemetryEventNotification failed")}))}}class x{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,s.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,s.attachPartialResult)(this.connection,t)}}t._LanguagesImpl=x;const q=(0,b.MonikerFeature)((0,y.DiagnosticFeature)((0,m.InlayHintFeature)((0,p.InlineValueFeature)((0,g.TypeHierarchyFeature)((0,f.LinkedEditingRangeFeature)((0,l.SemanticTokensFeature)((0,u.CallHierarchyFeature)(x))))))));class E{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,s.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,s.attachPartialResult)(this.connection,t)}}t._NotebooksImpl=E;const N=(0,v.NotebookSyncFeature)(E);function O(e,t){return function(n){return t(e(n))}}function M(e,t){return function(n){return t(e(n))}}function L(e,t){return function(n){return t(e(n))}}function A(e,t){return function(n){return t(e(n))}}function j(e,t){return function(n){return t(e(n))}}function F(e,t){return function(n){return t(e(n))}}function I(e,t){return function(n){return t(e(n))}}function W(e,t){return function(n){return t(e(n))}}t.combineConsoleFeatures=O,t.combineTelemetryFeatures=M,t.combineTracerFeatures=L,t.combineClientFeatures=A,t.combineWindowFeatures=j,t.combineWorkspaceFeatures=F,t.combineLanguagesFeatures=I,t.combineNotebooksFeatures=W,t.combineFeatures=function(e,t){function n(e,t,n){return e&&t?n(e,t):e||t}return{__brand:"features",console:n(e.console,t.console,O),tracer:n(e.tracer,t.tracer,L),telemetry:n(e.telemetry,t.telemetry,M),client:n(e.client,t.client,A),window:n(e.window,t.window,j),workspace:n(e.workspace,t.workspace,F),languages:n(e.languages,t.languages,I),notebooks:n(e.notebooks,t.notebooks,W)}},t.createConnection=function(e,t,n){const r=n&&n.console?new(n.console(_)):new _,a=e(r);r.rawAttach(a);const c=n&&n.tracer?new(n.tracer(P)):new P,u=n&&n.telemetry?new(n.telemetry(T)):new T,l=n&&n.client?new(n.client(S)):new S,d=n&&n.window?new(n.window(C)):new C,h=n&&n.workspace?new(n.workspace(k)):new k,f=n&&n.languages?new(n.languages(q)):new q,g=n&&n.notebooks?new(n.notebooks(N)):new N,p=[r,c,u,l,d,h,f,g];function m(e){return e instanceof Promise?e:i.thenable(e)?new Promise(((t,n)=>{e.then((e=>t(e)),(e=>n(e)))})):Promise.resolve(e)}let y,v,b,R={listen:()=>a.listen(),sendRequest:(e,...t)=>a.sendRequest(i.string(e)?e:e.method,...t),onRequest:(e,t)=>a.onRequest(e,t),sendNotification:(e,t)=>{const n=i.string(e)?e:e.method;return 1===arguments.length?a.sendNotification(n):a.sendNotification(n,t)},onNotification:(e,t)=>a.onNotification(e,t),onProgress:a.onProgress,sendProgress:a.sendProgress,onInitialize:e=>(v=e,{dispose:()=>{v=void 0}}),onInitialized:e=>a.onNotification(o.InitializedNotification.type,e),onShutdown:e=>(y=e,{dispose:()=>{y=void 0}}),onExit:e=>(b=e,{dispose:()=>{b=void 0}}),get console(){return r},get telemetry(){return u},get tracer(){return c},get client(){return l},get window(){return d},get workspace(){return h},get languages(){return f},get notebooks(){return g},onDidChangeConfiguration:e=>a.onNotification(o.DidChangeConfigurationNotification.type,e),onDidChangeWatchedFiles:e=>a.onNotification(o.DidChangeWatchedFilesNotification.type,e),__textDocumentSync:void 0,onDidOpenTextDocument:e=>a.onNotification(o.DidOpenTextDocumentNotification.type,e),onDidChangeTextDocument:e=>a.onNotification(o.DidChangeTextDocumentNotification.type,e),onDidCloseTextDocument:e=>a.onNotification(o.DidCloseTextDocumentNotification.type,e),onWillSaveTextDocument:e=>a.onNotification(o.WillSaveTextDocumentNotification.type,e),onWillSaveTextDocumentWaitUntil:e=>a.onRequest(o.WillSaveTextDocumentWaitUntilRequest.type,e),onDidSaveTextDocument:e=>a.onNotification(o.DidSaveTextDocumentNotification.type,e),sendDiagnostics:e=>a.sendNotification(o.PublishDiagnosticsNotification.type,e),onHover:e=>a.onRequest(o.HoverRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),onCompletion:e=>a.onRequest(o.CompletionRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onCompletionResolve:e=>a.onRequest(o.CompletionResolveRequest.type,e),onSignatureHelp:e=>a.onRequest(o.SignatureHelpRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),onDeclaration:e=>a.onRequest(o.DeclarationRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onDefinition:e=>a.onRequest(o.DefinitionRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onTypeDefinition:e=>a.onRequest(o.TypeDefinitionRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onImplementation:e=>a.onRequest(o.ImplementationRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onReferences:e=>a.onRequest(o.ReferencesRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onDocumentHighlight:e=>a.onRequest(o.DocumentHighlightRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onDocumentSymbol:e=>a.onRequest(o.DocumentSymbolRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onWorkspaceSymbol:e=>a.onRequest(o.WorkspaceSymbolRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onWorkspaceSymbolResolve:e=>a.onRequest(o.WorkspaceSymbolResolveRequest.type,e),onCodeAction:e=>a.onRequest(o.CodeActionRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onCodeActionResolve:e=>a.onRequest(o.CodeActionResolveRequest.type,((t,n)=>e(t,n))),onCodeLens:e=>a.onRequest(o.CodeLensRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onCodeLensResolve:e=>a.onRequest(o.CodeLensResolveRequest.type,((t,n)=>e(t,n))),onDocumentFormatting:e=>a.onRequest(o.DocumentFormattingRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),onDocumentRangeFormatting:e=>a.onRequest(o.DocumentRangeFormattingRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),onDocumentOnTypeFormatting:e=>a.onRequest(o.DocumentOnTypeFormattingRequest.type,((t,n)=>e(t,n))),onRenameRequest:e=>a.onRequest(o.RenameRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),onPrepareRename:e=>a.onRequest(o.PrepareRenameRequest.type,((t,n)=>e(t,n))),onDocumentLinks:e=>a.onRequest(o.DocumentLinkRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onDocumentLinkResolve:e=>a.onRequest(o.DocumentLinkResolveRequest.type,((t,n)=>e(t,n))),onDocumentColor:e=>a.onRequest(o.DocumentColorRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onColorPresentation:e=>a.onRequest(o.ColorPresentationRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onFoldingRanges:e=>a.onRequest(o.FoldingRangeRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onSelectionRanges:e=>a.onRequest(o.SelectionRangeRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onExecuteCommand:e=>a.onRequest(o.ExecuteCommandRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),dispose:()=>a.dispose()};for(let e of p)e.attach(R);return a.onRequest(o.InitializeRequest.type,(e=>{t.initialize(e),i.string(e.trace)&&(c.trace=o.Trace.fromString(e.trace));for(let t of p)t.initialize(e.capabilities);if(v)return m(v(e,(new o.CancellationTokenSource).token,(0,s.attachWorkDone)(a,e),void 0)).then((e=>{if(e instanceof o.ResponseError)return e;let t=e;t||(t={capabilities:{}});let n=t.capabilities;n||(n={},t.capabilities=n),void 0===n.textDocumentSync||null===n.textDocumentSync?n.textDocumentSync=i.number(R.__textDocumentSync)?R.__textDocumentSync:o.TextDocumentSyncKind.None:i.number(n.textDocumentSync)||i.number(n.textDocumentSync.change)||(n.textDocumentSync.change=i.number(R.__textDocumentSync)?R.__textDocumentSync:o.TextDocumentSyncKind.None);for(let e of p)e.fillServerCapabilities(n);return t}));{let e={capabilities:{textDocumentSync:o.TextDocumentSyncKind.None}};for(let t of p)t.fillServerCapabilities(e.capabilities);return e}})),a.onRequest(o.ShutdownRequest.type,(()=>(t.shutdownReceived=!0,y?y((new o.CancellationTokenSource).token):void 0))),a.onNotification(o.ExitNotification.type,(()=>{try{b&&b()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}})),a.onNotification(o.SetTraceNotification.type,(e=>{c.trace=o.Trace.fromString(e.value)})),R}},5421:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentFeature=void 0;const o=n(273);t.ShowDocumentFeature=e=>class extends e{showDocument(e){return this.connection.sendRequest(o.ShowDocumentRequest.type,e)}}},8382:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocuments=void 0;const o=n(273);t.TextDocuments=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new o.Emitter,this._onDidOpen=new o.Emitter,this._onDidClose=new o.Emitter,this._onDidSave=new o.Emitter,this._onWillSave=new o.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=o.TextDocumentSyncKind.Incremental;const t=[];return t.push(e.onDidOpenTextDocument((e=>{const t=e.textDocument,n=this._configuration.create(t.uri,t.languageId,t.version,t.text);this._syncedDocuments.set(t.uri,n);const o=Object.freeze({document:n});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)}))),t.push(e.onDidChangeTextDocument((e=>{const t=e.textDocument,n=e.contentChanges;if(0===n.length)return;const{version:o}=t;if(null==o)throw new Error(`Received document change event for ${t.uri} without valid version identifier`);let i=this._syncedDocuments.get(t.uri);void 0!==i&&(i=this._configuration.update(i,n,o),this._syncedDocuments.set(t.uri,i),this._onDidChangeContent.fire(Object.freeze({document:i})))}))),t.push(e.onDidCloseTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&(this._syncedDocuments.delete(e.textDocument.uri),this._onDidClose.fire(Object.freeze({document:t})))}))),t.push(e.onWillSaveTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onWillSave.fire(Object.freeze({document:t,reason:e.reason}))}))),t.push(e.onWillSaveTextDocumentWaitUntil(((e,t)=>{let n=this._syncedDocuments.get(e.textDocument.uri);return void 0!==n&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:n,reason:e.reason}),t):[]}))),t.push(e.onDidSaveTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onDidSave.fire(Object.freeze({document:t}))}))),o.Disposable.create((()=>{t.forEach((e=>e.dispose()))}))}}},4606:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchyFeature=void 0;const o=n(273);t.TypeHierarchyFeature=e=>class extends e{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(o.TypeHierarchyPrepareRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0))),onSupertypes:e=>{const t=o.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onSubtypes:e=>{const t=o.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},289:(e,t)=>{function n(e){return"string"==typeof e||e instanceof String}function o(e){return"function"==typeof e}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.thenable=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=o,t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=function(e){return e&&o(e.then)}},7560:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.generateUuid=t.parse=t.isUUID=t.v4=t.empty=void 0;class n{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class o extends n{constructor(){super([o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),"-",o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),"-","4",o._randomHex(),o._randomHex(),o._randomHex(),"-",o._oneOf(o._timeHighBits),o._randomHex(),o._randomHex(),o._randomHex(),"-",o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return o._oneOf(o._chars)}}function i(){return new o}o._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"],o._timeHighBits=["8","9","a","b"],t.empty=new n("00000000-0000-0000-0000-000000000000"),t.v4=i;const r=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return r.test(e)}t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new n(e)},t.generateUuid=function(){return i().asHex()}},1836:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=void 0;const o=n(273);t.WorkspaceFoldersFeature=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let t=e.workspace;t&&t.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new o.Emitter,this.connection.onNotification(o.DidChangeWorkspaceFoldersNotification.type,(e=>{this._onDidChangeWorkspaceFolders.fire(e.event)})))}fillServerCapabilities(e){super.fillServerCapabilities(e);const t=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=!0===t||"string"==typeof t}getWorkspaceFolders(){return this.connection.sendRequest(o.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._notificationIsAutoRegistered||this._unregistration||(this._unregistration=this.connection.client.register(o.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}}},7613:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveModulePath=t.FileSystem=t.resolveGlobalYarnPath=t.resolveGlobalNodePath=t.resolve=t.uriToFilePath=void 0;const o=n(7310),i=n(1017),r=n(7147),s=n(2081);function a(){return"win32"===process.platform}function c(e,t,n,o){const a=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise(((c,u)=>{let l=process.env,d=Object.create(null);Object.keys(l).forEach((e=>d[e]=l[e])),t&&r.existsSync(t)&&(d.NODE_PATH?d.NODE_PATH=t+i.delimiter+d.NODE_PATH:d.NODE_PATH=t,o&&o(`NODE_PATH value is: ${d.NODE_PATH}`)),d.ELECTRON_RUN_AS_NODE="1";try{let t=(0,s.fork)("",[],{cwd:n,env:d,execArgv:["-e",a]});if(void 0===t.pid)return void u(new Error(`Starting process to resolve node module ${e} failed`));t.on("error",(e=>{u(e)})),t.on("message",(n=>{"r"===n.c&&(t.send({c:"e"}),n.s?c(n.r):u(new Error(`Failed to resolve module: ${e}`)))}));let o={c:"rs",a:e};t.send(o)}catch(e){u(e)}}))}function u(e){let t="npm";const n=Object.create(null);Object.keys(process.env).forEach((e=>n[e]=process.env[e])),n.NO_UPDATE_NOTIFIER="true";const o={encoding:"utf8",env:n};a()&&(t="npm.cmd",o.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let n=(0,s.spawnSync)(t,["config","get","prefix"],o).stdout;if(!n)return void(e&&e("'npm config get prefix' didn't return a value."));let c=n.trim();return e&&e(`'npm config get prefix' value is: ${c}`),c.length>0?a()?i.join(c,"node_modules"):i.join(c,"lib","node_modules"):void 0}catch(e){return}finally{process.removeListener("SIGPIPE",r)}}var l;t.uriToFilePath=function(e){let t=o.parse(e);if("file:"!==t.protocol||!t.path)return;let n=t.path.split("/");for(var r=0,s=n.length;r1){let e=n[0],t=n[1];0===e.length&&t.length>1&&":"===t[1]&&n.shift()}return i.normalize(n.join("/"))},t.resolve=c,t.resolveGlobalNodePath=u,t.resolveGlobalYarnPath=function(e){let t="yarn",n={encoding:"utf8"};a()&&(t="yarn.cmd",n.shell=!0);let o=()=>{};try{process.on("SIGPIPE",o);let r=(0,s.spawnSync)(t,["global","dir","--json"],n),a=r.stdout;if(!a)return void(e&&(e("'yarn global dir' didn't return a value."),r.stderr&&e(r.stderr)));let c=a.trim().split(/\r?\n/);for(let e of c)try{let t=JSON.parse(e);if("log"===t.type)return i.join(t.data,"node_modules")}catch(e){}return}catch(e){return}finally{process.removeListener("SIGPIPE",o)}},function(e){let t;function n(){return void 0!==t||(t=!("win32"===process.platform||r.existsSync(__filename.toUpperCase())&&r.existsSync(__filename.toLowerCase()))),t}e.isCaseSensitive=n,e.isParent=function(e,t){return n()?0===i.normalize(t).indexOf(i.normalize(e)):0===i.normalize(t).toLowerCase().indexOf(i.normalize(e).toLowerCase())}}(l=t.FileSystem||(t.FileSystem={})),t.resolveModulePath=function(e,t,n,o){return n?(i.isAbsolute(n)||(n=i.join(e,n)),c(t,n,n,o).then((e=>l.isParent(n,e)?e:Promise.reject(new Error(`Failed to load ${t} from node path location.`)))).then(void 0,(n=>c(t,u(o),e,o)))):c(t,u(o),e,o)}},5809:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createConnection=t.Files=void 0;const r=n(289),s=n(9891),a=n(7613),c=n(6560);var u;i(n(6560),t),i(n(6265),t),(u=t.Files||(t.Files={})).uriToFilePath=a.uriToFilePath,u.resolveGlobalNodePath=a.resolveGlobalNodePath,u.resolveGlobalYarnPath=a.resolveGlobalYarnPath,u.resolve=a.resolve,u.resolveModulePath=a.resolveModulePath;let l,d=!1;!function(){const e="--clientProcessId";function t(e){try{let t=parseInt(e);isNaN(t)||(l=setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(d?0:1)}}),3e3))}catch(e){}}for(let n=2;n{const t=e.processId;r.number(t)&&void 0===l&&setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(d?0:1)}}),3e3)},get shutdownReceived(){return d},set shutdownReceived(e){d=e},exit:e=>{process.exit(e)}};t.createConnection=function(e,t,n,o){let i,a,u,l;return void 0!==e&&"features"===e.__brand&&(i=e,e=t,t=n,n=o),c.ConnectionStrategy.is(e)||c.ConnectionOptions.is(e)?l=e:(a=e,u=t,l=n),function(e,t,n,o){if(!e&&!t&&process.argv.length>2){let n,o,r=process.argv.slice(2);for(let s=0;s{process.exit(d?0:1)})),t.on("close",(()=>{process.exit(d?0:1)}))}return(0,s.createConnection)((o=>(0,c.createProtocolConnection)(e,t,o,n)),h,o)}(a,u,l,i)}},8212:(e,t,n)=>{e.exports=n(5809)},7373:(e,t,n)=>{var o;n.r(t),n.d(t,{URI:()=>i,Utils:()=>r}),o=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,o="",i=0,r=-1,s=0,a=0;a<=e.length;++a){if(a2){var c=o.lastIndexOf("/");if(c!==o.length-1){-1===c?(o="",i=0):i=(o=o.slice(0,c)).length-1-o.lastIndexOf("/"),r=a,s=0;continue}}else if(2===o.length||1===o.length){o="",i=0,r=a,s=0;continue}t&&(o.length>0?o+="/..":o="..",i=2)}else o.length>0?o+="/"+e.slice(r+1,a):o=e.slice(r+1,a),i=a-r-1;r=a,s=0}else 46===n&&-1!==s?++s:s=-1}return o}var o={resolve:function(){for(var e,o="",i=!1,r=arguments.length-1;r>=-1&&!i;r--){var s;r>=0?s=arguments[r]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(o=s+"/"+o,i=47===s.charCodeAt(0))}return o=n(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var o=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!o)).length||o||(e="."),e.length>0&&i&&(e+="/"),o?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":o.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=o.resolve(e))===(n=o.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else s>u&&(47===e.charCodeAt(i+d)?l=d:0===d&&(l=0));break}var h=e.charCodeAt(i+d);if(h!==n.charCodeAt(a+d))break;47===h&&(l=d)}var f="";for(d=i+l+1;d<=r;++d)d!==r&&47!==e.charCodeAt(d)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),o=47===n,i=-1,r=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!r){i=s;break}}else r=!1;return-1===i?o?"/":".":o&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var o,i=0,r=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(o=e.length-1;o>=0;--o){var u=e.charCodeAt(o);if(47===u){if(!s){i=o+1;break}}else-1===c&&(s=!1,c=o+1),a>=0&&(u===n.charCodeAt(a)?-1==--a&&(r=o):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(o=e.length-1;o>=0;--o)if(47===e.charCodeAt(o)){if(!s){i=o+1;break}}else-1===r&&(s=!1,r=o+1);return-1===r?"":e.slice(i,r)},extname:function(e){t(e);for(var n=-1,o=0,i=-1,r=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!r){o=a+1;break}}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===o+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,o=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+o:n+"/"+o:o}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var o,i=e.charCodeAt(0),r=47===i;r?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,u=!0,l=e.length-1,d=0;l>=o;--l)if(47!==(i=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===i?-1===s?s=l:1!==d&&(d=1):-1!==s&&(d=-1);else if(!u){a=l+1;break}return-1===s||-1===c||0===d||1===d&&s===c-1&&s===a+1?-1!==c&&(n.base=n.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(n.name=e.slice(1,s),n.base=e.slice(1,c)):(n.name=e.slice(a,s),n.base=e.slice(a,c)),n.ext=e.slice(s,c)),a>0?n.dir=e.slice(0,a-1):r&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,e.exports=o},447:(e,t,n)=>{var o;if(n.r(t),n.d(t,{URI:()=>p,Utils:()=>k}),"object"==typeof process)o="win32"===process.platform;else if("object"==typeof navigator){var i=navigator.userAgent;o=i.indexOf("Windows")>=0}var r,s,a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=/^\w[\w\d+.-]*$/,u=/^\//,l=/^\/\//;function d(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(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(l.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 ("//")')}var h="",f="/",g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,p=function(){function e(e,t,n,o,i,r){void 0===r&&(r=!1),"object"==typeof e?(this.scheme=e.scheme||h,this.authority=e.authority||h,this.path=e.path||h,this.query=e.query||h,this.fragment=e.fragment||h):(this.scheme=function(e,t){return e||t?e:"file"}(e,r),this.authority=t||h,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==f&&(t=f+t):t=f}return t}(this.scheme,n||h),this.query=o||h,this.fragment=i||h,d(this,r))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return _(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,o=e.path,i=e.query,r=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===n?n=this.authority:null===n&&(n=h),void 0===o?o=this.path:null===o&&(o=h),void 0===i?i=this.query:null===i&&(i=h),void 0===r?r=this.fragment:null===r&&(r=h),t===this.scheme&&n===this.authority&&o===this.path&&i===this.query&&r===this.fragment?this:new y(t,n,o,i,r)},e.parse=function(e,t){void 0===t&&(t=!1);var n=g.exec(e);return n?new y(n[2]||h,S(n[4]||h),S(n[5]||h),S(n[7]||h),S(n[9]||h),t):new y(h,h,h,h,h)},e.file=function(e){var t=h;if(o&&(e=e.replace(/\\/g,f)),e[0]===f&&e[1]===f){var n=e.indexOf(f,2);-1===n?(t=e.substring(2),e=f):(t=e.substring(2,n),e=e.substring(n)||f)}return new y("file",t,e,h,h)},e.from=function(e){var t=new y(e.scheme,e.authority,e.path,e.query,e.fragment);return d(t,!0),t},e.prototype.toString=function(e){return void 0===e&&(e=!1),C(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new y(t);return n._formatted=t.external,n._fsPath=t._sep===m?t.fsPath:null,n}return t},e}(),m=o?1:void 0,y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return a(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),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},t}(p),v=((s={})[58]="%3A",s[47]="%2F",s[63]="%3F",s[35]="%23",s[91]="%5B",s[93]="%5D",s[64]="%40",s[33]="%21",s[36]="%24",s[38]="%26",s[39]="%27",s[40]="%28",s[41]="%29",s[42]="%2A",s[43]="%2B",s[44]="%2C",s[59]="%3B",s[61]="%3D",s[32]="%20",s);function b(e,t){for(var n=void 0,o=-1,i=0;i=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r)-1!==o&&(n+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=v[r];void 0!==s?(-1!==o&&(n+=encodeURIComponent(e.substring(o,i)),o=-1),n+=s):-1===o&&(o=i)}}return-1!==o&&(n+=encodeURIComponent(e.substring(o))),void 0!==n?n:e}function R(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o&&(n=n.replace(/\//g,"\\")),n}function C(e,t){var n=t?R:b,o="",i=e.scheme,r=e.authority,s=e.path,a=e.query,c=e.fragment;if(i&&(o+=i,o+=":"),(r||"file"===i)&&(o+=f,o+=f),r){var u=r.indexOf("@");if(-1!==u){var l=r.substr(0,u);r=r.substr(u+1),-1===(u=l.indexOf(":"))?o+=n(l,!1):(o+=n(l.substr(0,u),!1),o+=":",o+=n(l.substr(u+1),!1)),o+="@"}-1===(u=(r=r.toLowerCase()).indexOf(":"))?o+=n(r,!1):(o+=n(r.substr(0,u),!1),o+=r.substr(u))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(d=s.charCodeAt(1))>=65&&d<=90&&(s="/".concat(String.fromCharCode(d+32),":").concat(s.substr(3)));else if(s.length>=2&&58===s.charCodeAt(1)){var d;(d=s.charCodeAt(0))>=65&&d<=90&&(s="".concat(String.fromCharCode(d+32),":").concat(s.substr(2)))}o+=n(s,!0)}return a&&(o+="?",o+=n(a,!1)),c&&(o+="#",o+=t?c:b(c,!1)),o}function w(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+w(e.substr(3)):e}}var D=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function S(e){return e.match(D)?e.replace(D,(function(e){return w(e)})):e}var k,P=n(470),T=function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(447)})();const{URI:i,Utils:r}=o},2081:e=>{e.exports=require("child_process")},6113:e=>{e.exports=require("crypto")},7147:e=>{e.exports=require("fs")},1808:e=>{e.exports=require("net")},2037:e=>{e.exports=require("os")},1017:e=>{e.exports=require("path")},7310:e=>{e.exports=require("url")},3837:e=>{e.exports=require("util")}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{var e=o;Object.defineProperty(e,"__esModule",{value:!0});const t=n(1017),i=n(2037),r=n(8212),s=n(6813),a=n(7373),c=n(2116),u=n(7237),l=n(7567),d=n(9675),h=n(5232),f=n(2388),g=(0,r.createConnection)(r.ProposedFeatures.all,{cancelUndispatched:e=>{if(r.Message.isRequest(e)&&"textDocument/codeAction"===e.method)return{jsonrpc:e.jsonrpc,id:e.id,result:null}}});let p;const m=new r.TextDocuments(s.TextDocument),y=new r.NotebookDocuments(m),v=process.exit;function b(e){if(!e)return;const n=(0,d.getUri)(e);if("file"===n.scheme)return(0,d.getFileSystemPath)(n);const o=y.findNotebookDocumentForCell(n.toString());if(void 0!==o&&"file"===a.URI.parse(o.uri).scheme){const e=(0,d.getFileSystemPath)(n);if(void 0!==e){const o=m.get(n.toString());if(void 0!==o){const n=f.default.getExtension(o.languageId);if(void 0!==n){const o=t.extname(e);if(0===o.length&&"."===e[0])return`${e}.${n}`;if(o.length>0&&o!==n)return`${e.substring(0,e.length-o.length)}.${n}`}}}}}var R,_,C;process.exit=e=>{const t=new Error("stack");g.sendNotification(c.ExitCalled.type,[e||0,t.stack]),setTimeout((()=>{v(e)}),1e3)},process.on("uncaughtException",(e=>{let t;if(e&&("string"==typeof e.stack?t=e.stack:"string"==typeof e.message?t=e.message:"string"==typeof e&&(t=e),void 0===t||0===t.length))try{t=JSON.stringify(e,void 0,4)}catch(e){}console.error("Uncaught exception received."),t&&console.error(t)})),l.ESLint.initialize(g,m,b,(function(e){const t=require;try{return t(e)}catch(e){e.stack&&g.console.error(e.stack.toString())}})),l.SaveRuleConfigs.inferFilePath=b,function(e){e.is=function(e){const t=e;return t&&void 0!==t.token&&void 0!==t.resolve&&void 0!==t.reject}}(R||(R={})),function(e){e.is=function(e){return e&&"function"==typeof e.then}}(_||(_={})),function(e){e.type=new r.NotificationType("eslint/validate")}(C||(C={}));const w=new class{constructor(e){this.connection=e,this.queue=[],this.requestHandlers=new Map,this.notificationHandlers=new Map}registerRequest(e,t,n){this.connection.onRequest(e,((t,o)=>new Promise(((i,r)=>{this.queue.push({method:e.method,params:t,documentVersion:n?n(t):void 0,resolve:i,reject:r,token:o}),this.trigger()})))),this.requestHandlers.set(e.method,{handler:t,versionProvider:n})}registerNotification(e,t,n){g.onNotification(e,(t=>{this.queue.push({method:e.method,params:t,documentVersion:n?n(t):void 0}),this.trigger()})),this.notificationHandlers.set(e.method,{handler:t,versionProvider:n})}addNotificationMessage(e,t,n){this.queue.push({method:e.method,params:t,documentVersion:n}),this.trigger()}onNotification(e,t,n){this.notificationHandlers.set(e.method,{handler:t,versionProvider:n})}trigger(){this.timer||0===this.queue.length||(this.timer=setImmediate((()=>{this.timer=void 0,this.processQueue(),this.trigger()})))}processQueue(){const e=this.queue.shift();if(e)if(R.is(e)){const t=e;if(t.token.isCancellationRequested)return void t.reject(new r.ResponseError(r.LSPErrorCodes.RequestCancelled,"Request got cancelled"));const n=this.requestHandlers.get(t.method);if(void 0===n)throw new Error("No handler registered");if(n.versionProvider&&void 0!==t.documentVersion&&t.documentVersion!==n.versionProvider(t.params))return void t.reject(new r.ResponseError(r.LSPErrorCodes.RequestCancelled,"Request got cancelled"));const o=n.handler(t.params,t.token);_.is(o)?o.then((e=>{t.resolve(e)}),(e=>{t.reject(e)})):t.resolve(o)}else{const t=e,n=this.notificationHandlers.get(t.method);if(void 0===n)throw new Error("No handler registered");if(n.versionProvider&&void 0!==t.documentVersion&&t.documentVersion!==n.versionProvider(t.params))return;n.handler(t.params)}}}(g);function D(){l.ESLint.clearSettings(),l.RuleSeverities.clear(),l.SaveRuleConfigs.clear(),l.ESLint.clearFormatters();for(const e of m.all())w.addNotificationMessage(C.type,e,e.version)}var S,k;w.onNotification(C.type,(e=>{!async function(e,t=!0){if(!m.get(e.uri))return;const n=await l.ESLint.resolveSettings(e);if(n.validate===u.Validate.on&&l.TextDocumentSettings.hasLibrary(n))try{const o=await l.ESLint.validate(e,n);t&&g.sendDiagnostics({uri:e.uri,diagnostics:o}),g.sendNotification(c.StatusNotification.type,{uri:e.uri,state:c.Status.ok})}catch(t){if(g.sendDiagnostics({uri:e.uri,diagnostics:[]}),n.silent)g.console.info(l.ESLint.ErrorHandlers.getMessage(t,e)),g.sendNotification(c.StatusNotification.type,{uri:e.uri,state:c.Status.ok});else{let o;for(const i of l.ESLint.ErrorHandlers.single)if(o=i(t,e,n.library),o)break;o=o||c.Status.error,g.sendNotification(c.StatusNotification.type,{uri:e.uri,state:o})}}}(e,!0)}),(e=>e.version)),m.onDidOpen((async e=>{const t=e.document,n=await l.ESLint.resolveSettings(t);n.validate===u.Validate.on&&l.TextDocumentSettings.hasLibrary(n)&&"onSave"===n.run&&w.addNotificationMessage(C.type,t,t.version)})),m.onDidChangeContent((async e=>{const t=e.document,n=t.uri;l.CodeActions.remove(n);const o=await l.ESLint.resolveSettings(t);o.validate===u.Validate.on&&"onType"===o.run&&w.addNotificationMessage(C.type,t,t.version)})),m.onDidSave((async e=>{const t=e.document,n=await l.ESLint.resolveSettings(t);n.validate===u.Validate.on&&"onSave"===n.run&&w.addNotificationMessage(C.type,t,t.version)})),m.onDidClose((async e=>{const t=e.document,n=await l.ESLint.resolveSettings(t),o=t.uri;l.ESLint.removeSettings(o),l.SaveRuleConfigs.remove(o),l.CodeActions.remove(o),l.ESLint.unregisterAsFormatter(t),n.validate===u.Validate.on&&g.sendDiagnostics({uri:o,diagnostics:[]})})),function(e){e.applySingleFix="eslint.applySingleFix",e.applySuggestion="eslint.applySuggestion",e.applySameFixes="eslint.applySameFixes",e.applyAllFixes="eslint.applyAllFixes",e.applyDisableLine="eslint.applyDisableLine",e.applyDisableFile="eslint.applyDisableFile",e.openRuleDoc="eslint.openRuleDoc"}(S||(S={})),g.onInitialize(((e,t,n)=>{n.begin("Initializing ESLint Server");const o=r.TextDocumentSyncKind.Incremental;p=e.capabilities,n.done();const i={textDocumentSync:{openClose:!0,change:o,willSaveWaitUntil:!1,save:{includeText:!1}},workspace:{workspaceFolders:{supported:!0}},executeCommandProvider:{commands:[S.applySingleFix,S.applySuggestion,S.applySameFixes,S.applyAllFixes,S.applyDisableLine,S.applyDisableFile,S.openRuleDoc]}};return void 0!==p.textDocument?.codeAction?.codeActionLiteralSupport?.codeActionKind.valueSet&&(i.codeActionProvider={codeActionKinds:[r.CodeActionKind.QuickFix,`${r.CodeActionKind.SourceFixAll}.eslint`]}),{capabilities:i}})),g.onInitialized((()=>{!0===p.workspace?.didChangeConfiguration?.dynamicRegistration&&g.client.register(r.DidChangeConfigurationNotification.type,void 0),g.client.register(r.DidChangeWorkspaceFoldersNotification.type,void 0)})),w.registerNotification(r.DidChangeConfigurationNotification.type,(e=>{D()})),w.registerNotification(r.DidChangeWorkspaceFoldersNotification.type,(e=>{D()})),w.registerNotification(r.DidChangeWatchedFilesNotification.type,(async e=>{l.RuleMetaData.clear(),l.ESLint.ErrorHandlers.clearNoConfigRepoerted(),l.ESLint.ErrorHandlers.clearMissingModuleReported(),l.ESLint.clearSettings(),l.RuleSeverities.clear(),l.SaveRuleConfigs.clear(),await Promise.all(e.changes.map((async e=>{const n=b(e.uri);if(void 0===n||0===n.length||(0,d.isUNC)(n))return;const o=t.dirname(n);if(o){const e=l.ESLint.ErrorHandlers.getConfigErrorReported(n);if(void 0!==e){const i=l.ESLint.newClass(e,{},!1);try{await i.lintText("",{filePath:t.join(o,"___test___.js")}),l.ESLint.ErrorHandlers.removeConfigErrorReported(n)}catch(e){}}}}))),function(e){e.forEach((e=>{w.addNotificationMessage(C.type,e,e.version)}))}(m.all())}));class P{constructor(){this._actions=new Map}get(e){let t=this._actions.get(e);return void 0===t&&(t={fixes:[],suggestions:[]},this._actions.set(e,t)),t}get fixAll(){return void 0===this._fixAll&&(this._fixAll=[]),this._fixAll}all(){const e=[];for(const t of this._actions.values())e.push(...t.fixes),e.push(...t.suggestions),t.disable&&e.push(t.disable),t.fixAll&&e.push(t.fixAll),t.disableFile&&e.push(t.disableFile),t.showDocumentation&&e.push(t.showDocumentation);return void 0!==this._fixAll&&e.push(...this._fixAll),e}get length(){let e=0;for(const t of this._actions.values())e+=t.fixes.length;return e}}!function(e){e.create=function(e,t,n){return{uri:e.uri,version:e.version,ruleId:t,sequence:n}},e.hasRuleId=function(e){return void 0!==e.ruleId}}(k||(k={}));const T=new class{constructor(){this.values=new Map,this.uri=void 0,this.version=void 0}clear(e){void 0===e?(this.uri=void 0,this.version=void 0):(this.uri=e.uri,this.version=e.version),this.values.clear()}isUsable(e,t){return this.uri===e&&this.version===t}set(e,t){this.values.set(e,t)}get(e){return this.values.get(e)}},x=`${r.CodeActionKind.SourceFixAll}.eslint`;var q;async function E(e,t){const n=e.uri,o=m.get(n);if(void 0===o||e.version!==o.version)return;const i=await l.ESLint.resolveSettings(o);if(i.validate!==u.Validate.on||!l.TextDocumentSettings.hasLibrary(i)||t===q.format&&!i.format)return[];const r=b(o),a=l.CodeActions.get(n),c=o.getText();let d=Date.now();if(t===q.onSave&&i.codeActionOnSave.mode===u.CodeActionsOnSaveMode.problems){const e=void 0!==a&&a.size>0?new l.Fixes(a).getApplicable().map((e=>l.FixableProblem.createTextEdit(o,e))):[];return g.tracer.log(`Computing all fixes took: ${Date.now()-d} ms.`),e}{const e=void 0!==r&&t===q.onSave?await l.SaveRuleConfigs.get(n,i):void 0,u=e?.offRules,f=e?.onRules;let p;if(void 0!==u){p={rules:Object.create(null)};for(const e of u)p.rules[e]="off"}return l.ESLint.withClass((async e=>{const t=[];let n;if(void 0!==a&&a.size>0)if(void 0!==u){const e=new Map;for(const[t,n]of a)f?.has(n.ruleId)&&e.set(t,n);n=e.size>0?new l.Fixes(e).getApplicable().map((e=>l.FixableProblem.createTextEdit(o,e))):void 0}else n=new l.Fixes(a).getApplicable().map((e=>l.FixableProblem.createTextEdit(o,e)));const i=void 0!==n?s.TextDocument.applyEdits(o,n):c,p=await e.lintText(i,{filePath:r});if(g.tracer.log(`Computing all fixes took: ${Date.now()-d} ms.`),Array.isArray(p)&&1===p.length&&void 0!==p[0].output){const e=p[0].output;d=Date.now();const n=(0,h.stringDiff)(c,e,!1);g.tracer.log(`Computing minimal edits took: ${Date.now()-d} ms.`);for(const i of n)t.push({range:{start:o.positionAt(i.originalStart),end:o.positionAt(i.originalStart+i.originalLength)},newText:e.substr(i.modifiedStart,i.modifiedLength)})}else void 0!==n&&t.push(...n);return t}),i,void 0!==p?{fix:!0,overrideConfig:p}:{fix:!0})}}w.registerRequest(r.CodeActionRequest.type,(async e=>{const t=new P,n=e.textDocument.uri,o=m.get(n);if(void 0===o)return T.clear(o),t.all();function s(e,t,n,o,i){const s=r.Command.create(e,n,o),a=r.CodeAction.create(e,s,t);return void 0!==i&&(a.diagnostics=[i]),a}function a(e,t,n){if(t.line-1>0){const n=e.getText(r.Range.create(r.Position.create(t.line-2,0),r.Position.create(t.line-2,r.uinteger.MAX_VALUE))),o=n&&n.match(new RegExp(`${f.default.getLineComment(e.languageId)} eslint-disable-next-line`));if(o&&o.length)return r.TextEdit.insert(r.Position.create(t.line-2,r.uinteger.MAX_VALUE),`, ${t.ruleId}`)}return r.TextEdit.insert(r.Position.create(t.line-1,0),`${n}${f.default.getLineComment(e.languageId)} eslint-disable-next-line ${t.ruleId}${i.EOL}`)}function c(e,t){const n=e.getText(r.Range.create(r.Position.create(t.line-1,0),r.Position.create(t.line-1,r.uinteger.MAX_VALUE))),o=n&&new RegExp(`${f.default.getLineComment(e.languageId)} eslint-disable-line`).exec(n),i=o&&o.length?`, ${t.ruleId}`:` ${f.default.getLineComment(e.languageId)} eslint-disable-line ${t.ruleId}`;return r.TextEdit.insert(r.Position.create(t.line-1,r.uinteger.MAX_VALUE),i)}function d(e,t){const n="#!"===e.getText(r.Range.create(r.Position.create(0,0),r.Position.create(0,2)))?1:0,o=f.default.getBlockComment(e.languageId);return r.TextEdit.insert(r.Position.create(n,0),`${o[0]} eslint-disable ${t.ruleId} ${o[1]}${i.EOL}`)}function h(e){const t=e.length;if(0!==t)return e[t-1]}const g=await l.ESLint.resolveSettings(o);if(g.validate!==u.Validate.on||!l.TextDocumentSettings.hasLibrary(g))return t.all();const p=l.CodeActions.get(n);if(void 0===p&&"onType"===g.run)return t.all();const y=void 0!==e.context.only&&e.context.only.length>0?e.context.only[0]:void 0,v=y===r.CodeActionKind.Source,b=y===x||y===r.CodeActionKind.SourceFixAll;if(b||v){if(b){const e={uri:o.uri,version:o.version},n=await E(e,q.onSave);void 0!==n&&t.fixAll.push(r.CodeAction.create("Fix all fixable ESLint issues",{documentChanges:[r.TextDocumentEdit.create(e,n)]},x))}else v&&t.fixAll.push(s("Fix all fixable ESLint issues",r.CodeActionKind.Source,S.applyAllFixes,k.create(o)));return t.all()}if(void 0===p)return t.all();const R=new l.Fixes(p);if(R.isEmpty())return t.all();let _=-1;const C=[],w=y??r.CodeActionKind.QuickFix;for(const i of R.getScoped(e.context.diagnostics)){_=i.documentVersion;const e=i.ruleId;if(C.push(e),l.Problem.isFixable(i)){const a=new r.WorkspaceChange;a.getTextEditChange({uri:n,version:_}).add(l.FixableProblem.createTextEdit(o,i)),T.set(`${S.applySingleFix}:${e}`,a);const c=s(i.label,w,S.applySingleFix,k.create(o,e),i.diagnostic);c.isPreferred=!0,t.get(e).fixes.push(c)}if(l.Problem.hasSuggestions(i)&&i.suggestions.forEach(((a,c)=>{const u=new r.WorkspaceChange;u.getTextEditChange({uri:n,version:_}).add(l.SuggestionsProblem.createTextEdit(o,a)),T.set(`${S.applySuggestion}:${e}:${c}`,u);const d=s(`${a.desc} (${i.ruleId})`,r.CodeActionKind.QuickFix,S.applySuggestion,k.create(o,e,c),i.diagnostic);t.get(e).suggestions.push(d)})),g.codeAction.disableRuleComment.enable){let u=new r.WorkspaceChange;if("sameLine"===g.codeAction.disableRuleComment.location)u.getTextEditChange({uri:n,version:_}).add(c(o,i));else{const e=o.getText(r.Range.create(r.Position.create(i.line-1,0),r.Position.create(i.line-1,r.uinteger.MAX_VALUE))),t=/^([ \t]*)/.exec(e),s=null!==t&&t.length>0?t[1]:"";u.getTextEditChange({uri:n,version:_}).add(a(o,i,s))}T.set(`${S.applyDisableLine}:${e}`,u),t.get(e).disable=s(`Disable ${e} for this line`,w,S.applyDisableLine,k.create(o,e)),void 0===t.get(e).disableFile&&(u=new r.WorkspaceChange,u.getTextEditChange({uri:n,version:_}).add(d(o,i)),T.set(`${S.applyDisableFile}:${e}`,u),t.get(e).disableFile=s(`Disable ${e} for the entire file`,w,S.applyDisableFile,k.create(o,e)))}g.codeAction.showDocumentation.enable&&void 0===t.get(e).showDocumentation&&l.RuleMetaData.hasRuleId(e)&&(t.get(e).showDocumentation=s(`Show documentation for ${e}`,w,S.openRuleDoc,k.create(o,e)))}if(t.length>0){const e=new Map(C.map((e=>[e,[]])));for(const t of R.getAllSorted())if(-1===_&&(_=t.documentVersion),e.has(t.ruleId)){const n=e.get(t.ruleId);l.Fixes.overlaps(h(n),t)||n.push(t)}e.forEach(((e,i)=>{if(e.length>1){const a=new r.WorkspaceChange,c=a.getTextEditChange({uri:n,version:_});e.map((e=>l.FixableProblem.createTextEdit(o,e))).forEach((e=>c.add(e))),T.set(S.applySameFixes,a),t.get(i).fixAll=s(`Fix all ${i} problems`,w,S.applySameFixes,k.create(o))}})),t.fixAll.push(s("Fix all auto-fixable problems",w,S.applyAllFixes,k.create(o)))}return t.all()}),(e=>{const t=m.get(e.textDocument.uri);return void 0!==t?t.version:void 0})),function(e){e.onSave="onsave",e.format="format",e.command="command"}(q||(q={})),w.registerRequest(r.ExecuteCommandRequest.type,(async e=>{let t;const n=e.arguments[0];if(e.command===S.applyAllFixes){const e=await E(n,q.command);if(void 0!==e){t=new r.WorkspaceChange;const o=t.getTextEditChange(n);e.forEach((e=>o.add(e)))}}else if(-1!==[S.applySingleFix,S.applyDisableLine,S.applyDisableFile].indexOf(e.command))t=T.get(`${e.command}:${n.ruleId}`);else if(-1!==[S.applySuggestion].indexOf(e.command))t=T.get(`${e.command}:${n.ruleId}:${n.sequence}`);else if(e.command===S.openRuleDoc&&k.hasRuleId(n)){const e=l.RuleMetaData.getUrl(n.ruleId);e&&g.sendRequest(c.OpenESLintDocRequest.type,{url:e})}else t=T.get(e.command);return void 0===t?null:g.workspace.applyEdit(t.edit).then((t=>(t.applied||g.console.error(`Failed to apply command: ${e.command}`),null)),(()=>(g.console.error(`Failed to apply command: ${e.command}`),null)))}),(e=>{const t=e.arguments[0];return T.isUsable(t.uri,t.version)?t.version:void 0})),w.registerRequest(r.DocumentFormattingRequest.type,(e=>{const t=m.get(e.textDocument.uri);return void 0===t?[]:E({uri:t.uri,version:t.version},q.format)}),(e=>{const t=m.get(e.textDocument.uri);return void 0!==t?t.version:void 0})),m.listen(g),y.listen(g),g.listen(),g.console.info(`ESLint server running in node ${process.version}`)})();var i=exports;for(var r in o)i[r]=o[r];o.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})(); -//# sourceMappingURL=eslintServer.js.map \ No newline at end of file +(()=>{"use strict";var e={5232:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LcsDiff=t.Debug=t.stringDiff=void 0,t.stringDiff=function(e,t,o){return new a(new n(e),new n(t)).ComputeDiff(o).changes};class n{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,o=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new o(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class a{constructor(e,t,n=null){this.ContinueProcessingPredicate=n;const[o,i,r]=a._getElements(e),[s,c,u]=a._getElements(t);this._hasStrings=r&&u,this._originalStringElements=o,this._originalElementsOrHash=i,this._modifiedStringElements=s,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _getElements(e){const t=e.getElements();return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,o,i){const r=[!1];let s=this.ComputeDiffRecursive(e,t,n,o,r);return i&&(s=this.PrettifyChanges(s)),{quitEarly:r[0],changes:s}}ComputeDiffRecursive(e,t,n,r,s){for(s[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let s;return n<=r?(i.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new o(e,0,n,r-n+1)]):e<=t?(i.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new o(e,t-e+1,n,0)]):(i.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const a=[0],c=[0],u=this.ComputeRecursionPoint(e,t,n,r,a,c,s),l=a[0],d=c[0];if(null!==u)return u;if(!s[0]){const i=this.ComputeDiffRecursive(e,l,n,d,s);let a=[];return a=s[0]?[new o(l+1,t-(l+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(l+1,t,d+1,r,s),this.ConcatenateChanges(i,a)}return[new o(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,i,r,a,c,u,l,d,h,f,g,p,m,y,v,b){let R=null,D=null,S=new s,_=t,C=n,w=g[0]-y[0]-i,T=-1073741824,k=this.m_forwardHistory.length-1;do{const t=w+e;t===_||t=0&&(e=(l=this.m_forwardHistory[k])[0],_=1,C=l.length-1)}while(--k>=-1);if(R=S.getReverseChanges(),b[0]){let e=g[0]+1,t=y[0]+1;if(null!==R&&R.length>0){const n=R[R.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}D=[new o(e,f-e+1,t,m-t+1)]}else{S=new s,_=a,C=c,w=g[0]-y[0]-u,T=1073741824,k=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=w+r;e===_||e=d[e+1]?(p=(h=d[e+1]-1)-w-u,h>T&&S.MarkNextChange(),T=h+1,S.AddOriginalElement(h+1,p+1),w=e+1-r):(p=(h=d[e-1])-w-u,h>T&&S.MarkNextChange(),T=h,S.AddModifiedElement(h+1,p+1),w=e-1-r),k>=0&&(r=(d=this.m_reverseHistory[k])[0],_=1,C=d.length-1)}while(--k>=-1);D=S.getChanges()}return this.ConcatenateChanges(R,D)}ComputeRecursionPoint(e,t,n,i,s,a,c){let u=0,l=0,d=0,h=0,f=0,g=0;e--,n--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const p=t-e+(i-n),m=p+1,y=new Int32Array(m),v=new Int32Array(m),b=i-n,R=t-e,D=e-n,S=t-i,_=(R-b)%2==0;y[b]=e,v[R]=t,c[0]=!1;for(let C=1;C<=p/2+1;C++){let p=0,w=0;d=this.ClipDiagonalBound(b-C,C,b,m),h=this.ClipDiagonalBound(b+C,C,b,m);for(let e=d;e<=h;e+=2){u=e===d||ep+w&&(p=u,w=l),!_&&Math.abs(e-R)<=C-1&&u>=v[e])return s[0]=u,a[0]=l,n<=v[e]&&C<=1448?this.WALKTRACE(b,d,h,D,R,f,g,S,y,v,u,t,s,l,i,a,_,c):null}const T=(p-e+(w-n)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(p,T))return c[0]=!0,s[0]=p,a[0]=w,T>0&&C<=1448?this.WALKTRACE(b,d,h,D,R,f,g,S,y,v,u,t,s,l,i,a,_,c):(e++,n++,[new o(e,t-e+1,n,i-n+1)]);f=this.ClipDiagonalBound(R-C,C,R,m),g=this.ClipDiagonalBound(R+C,C,R,m);for(let o=f;o<=g;o+=2){u=o===f||o=v[o+1]?v[o+1]-1:v[o-1],l=u-(o-R)-S;const r=u;for(;u>e&&l>n&&this.ElementsAreEqual(u,l);)u--,l--;if(v[o]=u,_&&Math.abs(o-b)<=C&&u<=y[o])return s[0]=u,a[0]=l,r>=y[o]&&C<=1448?this.WALKTRACE(b,d,h,D,R,f,g,S,y,v,u,t,s,l,i,a,_,c):null}if(C<=1447){let e=new Int32Array(h-d+2);e[0]=b-d+1,r.Copy2(y,d,e,1,h-d+1),this.m_forwardHistory.push(e),e=new Int32Array(g-f+2),e[0]=R-f+1,r.Copy2(v,f,e,1,g-f+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,d,h,D,R,f,g,S,y,v,u,t,s,l,i,a,_,c)}PrettifyChanges(e){for(let t=0;t0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let o=0,i=0;if(t>0){const n=e[t-1];n.originalLength>0&&(o=n.originalStart+n.originalLength),n.modifiedLength>0&&(i=n.modifiedStart+n.modifiedLength)}const r=n.originalLength>0,s=n.modifiedLength>0;let a=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(tc&&(c=l,a=e)}n.originalStart-=a,n.modifiedStart-=a}return e}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,o){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,o)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const o=new Array(e.length+t.length-1);return r.Copy(e,0,o,0,e.length-1),o[e.length-1]=n[0],r.Copy(t,1,o,e.length,t.length-1),o}{const n=new Array(e.length+t.length);return r.Copy(e,0,n,0,e.length),r.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(i.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),i.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let r=e.originalLength;const s=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new o(i,r,s,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,o){if(e>=0&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.ESLint=t.CodeActions=t.RuleSeverities=t.SaveRuleConfigs=t.Fixes=t.ESLintModule=t.SuggestionsProblem=t.FixableProblem=t.Problem=t.RuleMetaData=t.ESLintError=t.TextDocumentSettings=void 0;const o=n(7147),i=n(1017),r=n(6113),s=n(2081),a=n(8212),c=n(7373),u=n(2116),l=n(7237),d=n(2389),h=n(572),f=n(9675),g=n(2388);var p,m,y,v,b,R,D,S,_,C,w;!function(e){e.hasLibrary=function(e){return void 0!==e.library}}(p=t.TextDocumentSettings||(t.TextDocumentSettings={})),function(e){e.isNoConfigFound=function(e){const t=e;return"no-config-found"===t.messageTemplate||"No ESLint configuration found."===t.message}}(m=t.ESLintError||(t.ESLintError={})),function(e){e.unusedDisableDirectiveId="unused-disable-directive";const t={docs:{url:"https://eslint.org/docs/latest/use/configure/rules#report-unused-eslint-disable-comments"},type:"directive"},n=new Set,o=new Map([[e.unusedDisableDirectiveId,t]]);e.capture=function(e,t){let i;if(e.isCLIEngine){const o=t.filter((e=>!n.has(e.filePath)));if(0===o.length)return;i="function"==typeof e.getRulesMetaForResults?e.getRulesMetaForResults(o):void 0,o.forEach((e=>n.add(e.filePath)))}else i="function"==typeof e.getRulesMetaForResults?e.getRulesMetaForResults(t):void 0;void 0!==i&&Object.entries(i).forEach((([e,t])=>{o.has(e)||t&&t.docs&&d.string(t.docs.url)&&o.set(e,t)}))},e.clear=function(){n.clear(),o.clear(),o.set(e.unusedDisableDirectiveId,t)},e.getUrl=function(e){return o.get(e)?.docs?.url},e.getType=function(e){return o.get(e)?.type},e.hasRuleId=function(e){return o.has(e)},e.isUnusedDisableDirectiveProblem=function(e){return null===e.ruleId&&e.message.startsWith("Unused eslint-disable directive")}}(y=t.RuleMetaData||(t.RuleMetaData={})),function(e){e.isFixable=function(e){return void 0!==e.edit},e.hasSuggestions=function(e){return void 0!==e.suggestions}}(v=t.Problem||(t.Problem={})),(t.FixableProblem||(t.FixableProblem={})).createTextEdit=function(e,t){return a.TextEdit.replace(a.Range.create(e.positionAt(t.edit.range[0]),e.positionAt(t.edit.range[1])),t.edit.text||"")},(t.SuggestionsProblem||(t.SuggestionsProblem={})).createTextEdit=function(e,t){return a.TextEdit.replace(a.Range.create(e.positionAt(t.fix.range[0]),e.positionAt(t.fix.range[1])),t.fix.text||"")},function(e){e.hasESLintClass=function(e){return void 0!==e.ESLint},e.hasCLIEngine=function(e){return void 0!==e.CLIEngine},e.isFlatConfig=function(e){const t=e;return void 0!==t.ESLint&&!0===t.isFlatConfig}}(b=t.ESLintModule||(t.ESLintModule={})),function(e){e.hasMetaType=function(e){return void 0!==e&&void 0!==e.type}}(R||(R={})),function(e){e.hasRule=function(e){return void 0!==e.getRules}}(D||(D={}));class T{constructor(e){this.cli=e}get isCLIEngine(){return!0}async lintText(e,t){return this.cli.executeOnText(e,t.filePath,t.warnIgnored).results}async isPathIgnored(e){return this.cli.isPathIgnored(e)}getRulesMetaForResults(e){if(!D.hasRule(this.cli))return;const t={};for(const[e,n]of this.cli.getRules())void 0!==n.meta&&(t[e]=n.meta);return t}async calculateConfigForFile(e){return"function"==typeof this.cli.getConfigForFile?this.cli.getConfigForFile(e):void 0}}class k{constructor(e){this.edits=e}static overlaps(e,t){return void 0!==e&&e.edit.range[1]>t.edit.range[0]}static sameRange(e,t){return e.edit.range[0]===t.edit.range[0]&&e.edit.range[1]===t.edit.range[1]}isEmpty(){return 0===this.edits.size}getDocumentVersion(){if(this.isEmpty())throw new Error("No edits recorded.");return this.edits.values().next().value.documentVersion}getScoped(e){const t=[];for(const n of e){const e=_.computeKey(n),o=this.edits.get(e);o&&t.push(o)}return t}getAllSorted(){const e=[];for(const t of this.edits.values())v.isFixable(t)&&e.push(t);return e.sort(((e,t)=>{const n=e.edit.range[0]-t.edit.range[0];if(0!==n)return n;const o=e.edit.range[1]-e.edit.range[0],i=t.edit.range[1]-t.edit.range[0];return o===i?0:0===o?-1:0===i?1:o-i}))}getApplicable(){const e=this.getAllSorted();if(e.length<=1)return e;const t=[];let n=e[0];t.push(n);for(let o=1;o{if(void 0===a||e.isCLIEngine)return;const t=await e.calculateConfigForFile(r);if(void 0===t||void 0===t.rules||0===t.rules.length)return;const o=new Set,i=new Set;if(0===a.length)Object.keys(t.rules).forEach((e=>o.add(e)));else for(const e of Object.keys(t.rules))n(e,a)?o.add(e):i.add(e);return o.size>0?{offRules:o,onRules:i}:void 0}),i),null==s?void t.set(o,null):(t.set(o,s),s)},e.remove=function(e){return t.delete(e)},e.clear=function(){t.clear()}}(t.SaveRuleConfigs||(t.SaveRuleConfigs={})),function(e){const t=new h.LRUCache(1024);function n(e,t){return e.startsWith("!")?!new RegExp(`^${e.slice(1).replace(/\*/g,".*")}$`,"g").test(t):new RegExp(`^${e.replace(/\*/g,".*")}$`,"g").test(t)}e.getOverride=function(e,o){let i=t.get(e);if(null!==i){if(void 0!==i)return i;for(const t of o)n(t.rule,e)&&(i=t.severity);if(void 0!==i)return t.set(e,i),i;t.set(e,null)}},e.clear=function(){t.clear()}}(S=t.RuleSeverities||(t.RuleSeverities={})),function(e){function t(e,t){switch(t){case l.RuleSeverity.off:case l.RuleSeverity.info:case l.RuleSeverity.warn:case l.RuleSeverity.error:return t;case l.RuleSeverity.downgrade:switch(n(e)){case a.DiagnosticSeverity.Error:return l.RuleSeverity.warn;case a.DiagnosticSeverity.Warning:case a.DiagnosticSeverity.Information:return l.RuleSeverity.info}case l.RuleSeverity.upgrade:switch(n(e)){case a.DiagnosticSeverity.Information:return l.RuleSeverity.warn;case a.DiagnosticSeverity.Warning:case a.DiagnosticSeverity.Error:return l.RuleSeverity.error}default:return e}}function n(e){switch(e){case 1:case l.RuleSeverity.warn:return a.DiagnosticSeverity.Warning;case 2:case l.RuleSeverity.error:return a.DiagnosticSeverity.Error;case l.RuleSeverity.info:return a.DiagnosticSeverity.Information;default:return a.DiagnosticSeverity.Error}}e.computeKey=function(e){const t=e.range;let n;if(e.message){const t=r.createHash("md5");t.update(e.message),n=t.digest("base64")}return`[${t.start.line},${t.start.character},${t.end.line},${t.end.character}]-${e.code}-${n??""}`},e.create=function(e,o,i){const r=o.message,s="number"!=typeof o.line||Number.isNaN(o.line)?0:Math.max(0,o.line-1),c="number"!=typeof o.column||Number.isNaN(o.column)?0:Math.max(0,o.column-1);let u="number"!=typeof o.endLine||Number.isNaN(o.endLine)?s:Math.max(0,o.endLine-1),l="number"!=typeof o.endColumn||Number.isNaN(o.endColumn)?c:Math.max(0,o.endColumn-1);e.problems.shortenToSingleLine&&u!==s&&(u=s,l=i.getText({start:{line:s,character:0},end:{line:s,character:a.uinteger.MAX_VALUE}}).length);const d=S.getOverride(o.ruleId,e.rulesCustomizations),h={message:r,severity:(f=o.severity,g=d,n(t(f,g))),source:"eslint",range:{start:{line:s,character:c},end:{line:u,character:l}}};var f,g;if(o.ruleId){const e=y.getUrl(o.ruleId);h.code=o.ruleId,void 0!==e&&(h.codeDescription={href:e}),"no-unused-vars"===o.ruleId&&(h.tags=[a.DiagnosticTag.Unnecessary])}return[h,d]}}(_||(_={})),function(e){const t=new Map;e.get=function(e){return t.get(e)},e.set=function(e,n){t.set(e,n)},e.remove=function(e){return t.delete(e)},e.record=function(t,n,o){if(!o.ruleId)return;const i=t.uri;let r=e.get(i);void 0===r&&(r=new Map,e.set(i,r)),r.set(_.computeKey(n),{label:`Fix this ${o.ruleId} problem`,documentVersion:t.version,ruleId:o.ruleId,line:o.line,diagnostic:n,edit:o.fix,suggestions:o.suggestions})}}(C=t.CodeActions||(t.CodeActions={})),function(e){let t,n,r,h;const v=function(){const e=new Map,t=/\/@typescript-eslint\/parser\//,n=/\/babel-eslint\/lib\/index.js$/,o=/\/vue-eslint-parser\/index.js$/;return e.set("typescript",[t,n,o]),e.set("typescriptreact",[t,n,o]),e.set("html",[/\/@angular-eslint\/template-parser\//]),e}(),R=function(){const e=new Map;return e.set("typescript",{regExps:[/vue-eslint-parser\/.*\.js$/],parsers:new Set(["@typescript-eslint/parser"]),parserRegExps:[/@typescript-eslint\/parser\/.*\.js$/]}),e}(),D=new Map([["html","html"],["vue","vue"],["markdown","markdown"]]),S=new Set(["javascript","javascriptreact"]),w=[{fileName:"package.json",isRoot:!0},{fileName:".eslintignore",isRoot:!0},{fileName:"eslint.config.js",isRoot:!0},{fileName:".eslintrc",isRoot:!1},{fileName:".eslintrc.json",isRoot:!1},{fileName:".eslintrc.js",isRoot:!1},{fileName:".eslintrc.yaml",isRoot:!1},{fileName:".eslintrc.yml",isRoot:!1}],k=new Map,P=new Map,x=new Map;function q(e,t,n){return b.hasESLintClass(e)&&n?new e.ESLint(t):b.hasCLIEngine(e)?new T(new e.CLIEngine(t)):new e.ESLint(t)}async function E(e,t,n){const r=void 0===n?Object.assign(Object.create(null),t.options):Object.assign(Object.create(null),t.options,n),s=process.cwd();try{if(t.workingDirectory){const e=function(e){const t=(0,f.normalizeDriveLetter)(e);return 0===t.length?t:t[t.length-1]===i.sep?t.substring(0,t.length-1):t}(t.workingDirectory.directory);r.cwd=e,!0!==t.workingDirectory["!cwd"]&&o.existsSync(e)&&process.chdir(e)}const n=q(t.library,r,t.useESLintClass);return await e(n)}finally{s!==process.cwd()&&process.chdir(s)}}function M(e,t){if(void 0===e)return;const n=c.URI.parse(e.uri);if("file"===n.scheme)return r(n);if(void 0!==t.workspaceFolder){const n=g.default.getExtension(e.languageId),o=r(t.workspaceFolder.uri);if(void 0!==o&&void 0!==n)return i.join(o,`test.${n}`)}}e.initialize=function(e,o,i,s){t=e,n=o,r=i,h=s},e.removeSettings=function(e){return P.delete(e)},e.clearSettings=function(){P.clear()},e.unregisterAsFormatter=function(e){const t=x.get(e.uri);void 0!==t&&(t.then((e=>e.dispose())),x.delete(e.uri))},e.clearFormatters=function(){for(const e of x.values())e.then((e=>e.dispose()));x.clear()},e.resolveSettings=function(n){const s=n.uri;let d=P.get(s);return d||(d=t.workspace.getConfiguration({scopeUri:s,section:""}).then((d=>{const g=Object.assign({},d,{silent:!1,library:void 0,resolvedGlobalPackageManagerPath:void 0},{workingDirectory:void 0});if(g.validate===l.Validate.off)return g;g.resolvedGlobalPackageManagerPath=L.get(g.packageManager);const m=r(n),y=void 0!==g.workspaceFolder?r(g.workspaceFolder.uri):void 0,_=void 0!==d.workingDirectory,C=d.workingDirectory??{mode:l.ModeEnum.location};if(l.ModeItem.is(C)){let e;C.mode===l.ModeEnum.location?void 0!==y?e=y:void 0===m||(0,f.isUNC)(m)||(e=i.dirname(m)):C.mode===l.ModeEnum.auto&&(void 0!==y?e=j(y,m):void 0===m||(0,f.isUNC)(m)||(e=i.dirname(m))),void 0!==e&&o.existsSync(e)&&(g.workingDirectory={directory:e})}else g.workingDirectory=C;let w,T,P;null!==g.nodePath&&(T=g.nodePath,i.isAbsolute(T)||void 0===y||(T=i.join(y,T))),_||void 0===m||(P=i.dirname(m)),void 0!==P||void 0===g.workingDirectory||g.workingDirectory["!cwd"]||(P=g.workingDirectory.directory);const q=g.experimental.useFlatConfig?"eslint/use-at-your-own-risk":"eslint";return w=void 0!==T?a.Files.resolve(q,T,T,O).then(void 0,(()=>a.Files.resolve(q,g.resolvedGlobalPackageManagerPath,P,O))):a.Files.resolve(q,g.resolvedGlobalPackageManagerPath,P,O),g.silent=g.validate===l.Validate.probe,w.then((async o=>{let i=k.get(o);if(void 0===i)if(g.experimental.useFlatConfig){const e=h(o);void 0===e?(g.validate=l.Validate.off,g.silent||t.console.error(`Failed to load eslint library from ${o}. If you are using ESLint v8.21 or earlier, try upgrading it. For newer versions, try disabling the 'eslint.experimental.useFlatConfig' setting. See the output panel for more information.`)):void 0===e.FlatESLint?(g.validate=l.Validate.off,t.console.error(`The eslint library loaded from ${o} doesn't export a FlatESLint class.`)):(t.console.info(`ESLint library loaded from: ${o}`),i={ESLint:e.FlatESLint,isFlatConfig:!0,CLIEngine:void 0},g.library=i,k.set(o,i))}else i=h(o),void 0===i?(g.validate=l.Validate.off,g.silent||t.console.error(`Failed to load eslint library from ${o}. See output panel for more information.`)):void 0===i.CLIEngine&&void 0===i.ESLint?(g.validate=l.Validate.off,t.console.error(`The eslint library loaded from ${o} doesn't export neither a CLIEngine nor an ESLint class. You need at least eslint@1.0.0`)):(t.console.info(`ESLint library loaded from: ${o}`),g.library=i,k.set(o,i));else g.library=i;if(g.validate===l.Validate.probe&&p.hasLibrary(g)){g.validate=l.Validate.off;let o=e.getFilePath(n,g);if(void 0!==o){const t=v.get(n.languageId),i=D.get(n.languageId),r=R.get(n.languageId);if(S.has(n.languageId))g.validate=l.Validate.on;else if(void 0!==t||void 0!==i||void 0!==r){const n=await e.withClass((async e=>{try{return e.calculateConfigForFile(o)}catch(e){return}}),g);if(void 0!==n)if(b.isFlatConfig(g.library))g.validate=l.Validate.on;else{const e=null!==n.parser?(0,f.normalizePath)(n.parser):void 0;if(void 0!==e){if(void 0!==t)for(const n of t)if(n.test(e)){g.validate=l.Validate.on;break}if(g.validate!==l.Validate.on&&void 0!==r&&"string"==typeof n.parserOptions?.parser){const t=(0,f.normalizePath)(n.parserOptions.parser);for(const o of r.regExps)if(o.test(e)&&(r.parsers.has(n.parserOptions.parser)||void 0!==r.parserRegExps&&r.parserRegExps.some((e=>e.test(t))))){g.validate=l.Validate.on;break}}}if(g.validate!==l.Validate.on&&Array.isArray(n.plugins)&&n.plugins.length>0&&void 0!==i)for(const e of n.plugins)if(e===i){g.validate=l.Validate.on;break}}}}if(g.validate===l.Validate.off){const e={textDocument:{uri:n.uri}};t.sendRequest(u.ProbeFailedRequest.type,e)}}if(g.validate===l.Validate.on&&(g.silent=!1,g.format&&p.hasLibrary(g))){const n=c.URI.parse(s),o="file"===n.scheme;let i=o?n.fsPath.replace(/\\/g,"/"):n.fsPath;i=i.replace(/[\[\]\{\}]/g,"?");const u={documentSelector:[{scheme:n.scheme,pattern:i}]};if(o){const n=r(s);await e.withClass((async e=>{await e.isPathIgnored(n)||x.set(s,t.client.register(a.DocumentFormattingRequest.type,u))}),g)}else x.set(s,t.client.register(a.DocumentFormattingRequest.type,u))}return g}),(()=>(g.validate=l.Validate.off,g.silent||t.sendRequest(u.NoESLintLibraryRequest.type,{source:{uri:n.uri}}),g)))})),P.set(s,d),d)},e.newClass=q,e.withClass=E,e.getFilePath=M;const N=new Set(["problem","suggestion","layout","directive"]);function O(e,n){t.tracer.log(e,n)}let L,A;function j(e,t){if(void 0===t||(0,f.isUNC)(t))return e;if(-1!==t.indexOf(`${i.sep}node_modules${i.sep}`))return e;let n=e,r=i.dirname(t);e:for(;void 0!==r&&r.startsWith(e);){for(const{fileName:e,isRoot:t}of w)if(o.existsSync(i.join(r,e))){if(n=r,t)break e;break}const e=i.dirname(r);r=e!==r?e:void 0}return n}e.validate=async function(e,t){const n=Object.assign(Object.create(null),t.options);let o;if(Array.isArray(n.fixTypes)&&n.fixTypes.length>0){o=new Set;for(const e of n.fixTypes)N.has(e)&&o.add(e);0===o.size&&(o=void 0)}const i=e.getText(),r=e.uri,s=M(e,t);return E((async n=>{C.remove(r);const c=await n.lintText(i,{filePath:s,warnIgnored:t.onIgnoredFiles!==l.ESLintSeverity.off});y.capture(n,c);const u=[];if(c&&Array.isArray(c)&&c.length>0){const n=c[0];n.messages&&Array.isArray(n.messages)&&n.messages.forEach((n=>{if(n){const[i,r]=_.create(t,n,e);if(r===l.RuleSeverity.off||t.quiet&&i.severity===a.DiagnosticSeverity.Warning||u.push(i),void 0!==o&&void 0!==n.ruleId&&void 0!==n.fix){const t=y.getType(n.ruleId);void 0!==t&&o.has(t)&&C.record(e,i,n)}else y.isUnusedDisableDirectiveProblem(n)&&(n.ruleId=y.unusedDisableDirectiveId),C.record(e,i,n)}}))}return u}),t)},function(e){const t={yarn:{cache:void 0,get:()=>a.Files.resolveGlobalYarnPath(O)},npm:{cache:void 0,get:()=>a.Files.resolveGlobalNodePath(O)},pnpm:{cache:void 0,get:()=>(0,s.execSync)("pnpm root -g").toString().trim()}};e.get=function(e){const n=t[e];if(n)return void 0===n.cache&&(n.cache=n.get()),n.cache}}(L||(L={})),e.findWorkingDirectory=j,function(e){function o(e,t){let n;return"string"==typeof e.message||e.message instanceof String?(n=e.message,n=n.replace(/\r?\n/g," "),/^CLI: /.test(n)&&(n=n.substr(5))):n=`An unknown error occurred while validating document: ${t.uri}`,n}e.single=[function(e,n,r){if(m.isNoConfigFound(e))return i.has(n.uri)||(t.sendRequest(u.NoConfigRequest.type,{message:o(e,n),document:{uri:n.uri}}).then(void 0,(()=>{})),i.set(n.uri,r)),u.Status.warn},function(e,i,r){if(!e.message)return;function a(a){return s.has(a)||(t.console.error(o(e,i)),n.get(c.URI.file(a).toString())||t.window.showInformationMessage(o(e,i)),s.set(a,r)),u.Status.warn}let l=/Cannot read config file:\s+(.*)\nError:\s+(.*)/.exec(e.message);return l&&3===l.length?a(l[1]):(l=/(.*):\n\s*Configuration for rule \"(.*)\" is /.exec(e.message),l&&3===l.length?a(l[1]):(l=/Cannot find module '([^']*)'\nReferenced from:\s+(.*)/.exec(e.message),l&&3===l.length?a(l[2]):void 0))},function(e,n,o){if(!e.message)return;const i=/Failed to load plugin (.*): Cannot find module (.*)/.exec(e.message);return i&&3===i.length?function(e,i,s){if(!a.has(e)){const c=r(n);a.set(e,o),"plugin-missing"===s.messageTemplate?t.console.error(["",`${s.message.toString()}`,`Happened while validating ${c||n.uri}`,"This can happen for a couple of reasons:","1. The plugin name is spelled incorrectly in an ESLint configuration file (e.g. .eslintrc).",`2. If ESLint is installed globally, then make sure ${i} is installed globally as well.`,`3. If ESLint is installed locally, then ${i} isn't installed correctly.`,"",`Consider running eslint --debug ${c||n.uri} from a terminal to obtain a trace about the configuration files used.`].join("\n")):t.console.error([`${s.message.toString()}`,`Happened while validating ${c||n.uri}`].join("\n"))}return u.Status.warn}(i[1],i[2],e):void 0},function(e,n){return d.string(e.stack)?(t.console.error("An unexpected error occurred:"),t.console.error(e.stack)):t.console.error(`An unexpected error occurred: ${o(e,n)}.`),u.Status.error}],e.getMessage=o;const i=new Map;e.clearNoConfigReported=function(){i.clear()};const s=new Map;e.getConfigErrorReported=function(e){return s.get(e)},e.removeConfigErrorReported=function(e){return s.delete(e)};const a=new Map;e.clearMissingModuleReported=function(){a.clear()}}(A=e.ErrorHandlers||(e.ErrorHandlers={}))}(w=t.ESLint||(t.ESLint={}))},2389:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.nullOrUndefined=t.boolean=void 0;const n=Object.prototype.toString;t.boolean=function(e){return!0===e||!1===e},t.nullOrUndefined=function(e){return null==e},t.string=function(e){return"[object String]"===n.call(e)}},2388:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=new Map([["javascript",{ext:"js",lineComment:"//",blockComment:["/*","*/"]}],["javascriptreact",{ext:"jsx",lineComment:"//",blockComment:["/*","*/"]}],["typescript",{ext:"ts",lineComment:"//",blockComment:["/*","*/"]}],["typescriptreact",{ext:"tsx",lineComment:"//",blockComment:["/*","*/"]}],["html",{ext:"html",lineComment:"//",blockComment:["\x3c!--","--\x3e"]}],["vue",{ext:"vue",lineComment:"//",blockComment:["\x3c!--","--\x3e"]}],["coffeescript",{ext:"coffee",lineComment:"#",blockComment:["###","###"]}],["yaml",{ext:"yaml",lineComment:"#",blockComment:["#",""]}],["graphql",{ext:"graphql",lineComment:"#",blockComment:["#",""]}]]);var o;!function(e){e.getLineComment=function(e){return n.get(e)?.lineComment??"//"},e.getBlockComment=function(e){return n.get(e)?.blockComment??["/**","*/"]},e.getExtension=function(e){return n.get(e)?.ext}}(o||(o={})),t.default=o},572:(e,t)=>{var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(o=t.Touch||(t.Touch={}));class i{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=o.None){const n=this._map.get(e);if(n)return t!==o.None&&this.touch(n,t),n.value}set(e,t,n=o.None){let i=this._map.get(e);if(i)i.value=t,n!==o.None&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case o.None:this.addItemLast(i);break;case o.First:this.addItemFirst(i);break;case o.Last:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let o=this._head;for(;o;){if(t?e.bind(t)(o.value,o.key,this):e(o.value,o.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");o=o.next}}keys(){const e=this,t=this._state;let n=this._head;const o={[Symbol.iterator]:()=>o,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return o}values(){const e=this,t=this._state;let n=this._head;const o={[Symbol.iterator]:()=>o,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return o}entries(){const e=this,t=this._state;let n=this._head;const o={[Symbol.iterator]:()=>o,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return o}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===o.First||t===o.Last)if(t===o.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===o.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=i,t.LRUCache=class extends i{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=o.AsNew){return super.get(e,t)}peek(e){return super.get(e,o.None)}set(e,t){return super.set(e,t,o.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},9675:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getUri=t.normalizePath=t.getFileSystemPath=t.isUNC=t.normalizeDriveLetter=void 0;const o=n(7147),i=n(7373),r=n(2389);t.normalizeDriveLetter=function(e){return"win32"!==process.platform||e.length<2||":"!==e[1]?e:e[0].toUpperCase()+e.substring(1)},t.isUNC=function(e){if("win32"!==process.platform)return!1;if(!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t)return!1;if(t=e.charCodeAt(1),92!==t)return!1;let n=2;const o=n;for(;n=2&&":"===t[1]&&(t=t[0].toUpperCase()+t.substr(1)),"win32"===process.platform||"darwin"===process.platform){const e=o.realpathSync.native(t);e.toLowerCase()===t.toLowerCase()&&(t=e)}return t},t.normalizePath=function(e){if(void 0!==e)return"win32"===process.platform?e.replace(/\\/g,"/"):e},t.getUri=function(e){return r.string(e)?i.URI.parse(e):e instanceof i.URI?e:i.URI.parse(e.uri)}},2116:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExitCalled=t.ShowOutputChannel=t.ProbeFailedRequest=t.OpenESLintDocRequest=t.NoESLintLibraryRequest=t.NoConfigRequest=t.StatusNotification=t.Status=void 0;const o=n(273);var i,r,s,a,c,u,l,d;(d=t.Status||(t.Status={}))[d.ok=1]="ok",d[d.warn=2]="warn",d[d.error=3]="error",(l=t.StatusNotification||(t.StatusNotification={})).method="eslint/status",l.type=new o.NotificationType(l.method),(u=t.NoConfigRequest||(t.NoConfigRequest={})).method="eslint/noConfig",u.type=new o.RequestType(u.method),(c=t.NoESLintLibraryRequest||(t.NoESLintLibraryRequest={})).method="eslint/noLibrary",c.type=new o.RequestType(c.method),(a=t.OpenESLintDocRequest||(t.OpenESLintDocRequest={})).method="eslint/openDoc",a.type=new o.RequestType(a.method),(s=t.ProbeFailedRequest||(t.ProbeFailedRequest={})).method="eslint/probeFailed",s.type=new o.RequestType(s.method),(r=t.ShowOutputChannel||(t.ShowOutputChannel={})).method="eslint/showOutputChannel",r.type=new o.NotificationType0("eslint/showOutputChannel"),(i=t.ExitCalled||(t.ExitCalled={})).method="eslint/exitCalled",i.type=new o.NotificationType(i.method)},7237:(e,t)=>{var n,o,i,r,s,a;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectoryItem=t.ModeItem=t.ModeEnum=t.RuleSeverity=t.ESLintSeverity=t.CodeActionsOnSaveRules=t.CodeActionsOnSaveMode=t.Validate=void 0,function(e){const t=Object.prototype.toString;e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)}}(n||(n={})),(a=t.Validate||(t.Validate={})).on="on",a.off="off",a.probe="probe",(s=t.CodeActionsOnSaveMode||(t.CodeActionsOnSaveMode={})).all="all",s.problems="problems",function(e){e.from=function(t){return null!=t&&n.string(t)&&t.toLowerCase()===e.problems?e.problems:e.all}}(t.CodeActionsOnSaveMode||(t.CodeActionsOnSaveMode={})),(t.CodeActionsOnSaveRules||(t.CodeActionsOnSaveRules={})).from=function(e){if(null!=e&&Array.isArray(e))return e.filter((e=>n.string(e)))},(r=t.ESLintSeverity||(t.ESLintSeverity={})).off="off",r.warn="warn",r.error="error",function(e){e.from=function(t){if(null==t)return e.off;switch(t.toLowerCase()){case e.off:return e.off;case e.warn:return e.warn;case e.error:return e.error;default:return e.off}}}(t.ESLintSeverity||(t.ESLintSeverity={})),(i=t.RuleSeverity||(t.RuleSeverity={})).info="info",i.warn="warn",i.error="error",i.off="off",i.default="default",i.downgrade="downgrade",i.upgrade="upgrade",function(e){e.auto="auto",e.location="location"}(o=t.ModeEnum||(t.ModeEnum={})),function(e){e.is=function(t){return t===e.auto||t===e.location}}(o=t.ModeEnum||(t.ModeEnum={})),(t.ModeItem||(t.ModeItem={})).is=function(e){const t=e;return t&&o.is(t.mode)},(t.DirectoryItem||(t.DirectoryItem={})).is=function(e){const t=e;return t&&n.string(t.directory)&&(n.boolean(t["!cwd"])||void 0===t["!cwd"])}},3870:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;const o=n(839);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return o.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return o.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return o.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return o.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return o.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return o.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return o.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return o.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return o.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return o.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return o.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return o.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return o.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return o.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return o.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return o.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return o.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return o.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return o.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return o.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return o.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return o.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return o.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return o.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return o.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return o.ParameterStructures}});const i=n(6184);Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return i.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return i.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return i.Touch}});const r=n(3911);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return r.Disposable}});const s=n(7135);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return s.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return s.Emitter}});const a=n(3881);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return a.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return a.CancellationToken}});const c=n(8211);Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return c.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return c.SharedArrayReceiverStrategy}});const u=n(6525);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return u.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return u.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return u.ReadableStreamMessageReader}});const l=n(6654);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return l.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return l.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return l.WriteableStreamMessageWriter}});const d=n(5530);Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return d.AbstractMessageBuffer}});const h=n(1343);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return h.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return h.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return h.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return h.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return h.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return h.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return h.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return h.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return h.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return h.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return h.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return h.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return h.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return h.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return h.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return h.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return h.MessageStrategy}});const f=n(147);t.RAL=f.default},3881:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const o=n(147),i=n(7574),r=n(7135);var s;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||i.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(s=t.CancellationToken||(t.CancellationToken={}));const a=Object.freeze((function(e,t){const n=(0,o.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}));class c{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new r.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{get token(){return this._token||(this._token=new c),this._token}cancel(){this._token?this._token.cancel():this._token=s.Cancelled}dispose(){this._token?this._token instanceof c&&this._token.dispose():this._token=s.None}}},1343:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const o=n(147),i=n(7574),r=n(839),s=n(6184),a=n(7135),c=n(3881);var u,l,d,h,f,g,p,m,y,v,b,R,D,S,_,C,w,T;!function(e){e.type=new r.NotificationType("$/cancelRequest")}(u||(u={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(l=t.ProgressToken||(t.ProgressToken={})),function(e){e.type=new r.NotificationType("$/progress")}(d||(d={})),t.ProgressType=class{constructor(){}},function(e){e.is=function(e){return i.func(e)}}(h||(h={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(f=t.Trace||(t.Trace={})),(T=t.TraceValues||(t.TraceValues={})).Off="off",T.Messages="messages",T.Compact="compact",T.Verbose="verbose",function(e){e.fromString=function(t){if(!i.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(f=t.Trace||(t.Trace={})),function(e){e.Text="text",e.JSON="json"}(t.TraceFormat||(t.TraceFormat={})),function(e){e.fromString=function(t){return i.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(g=t.TraceFormat||(t.TraceFormat={})),function(e){e.type=new r.NotificationType("$/setTrace")}(p=t.SetTraceNotification||(t.SetTraceNotification={})),function(e){e.type=new r.NotificationType("$/logTrace")}(m=t.LogTraceNotification||(t.LogTraceNotification={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(y=t.ConnectionErrors||(t.ConnectionErrors={}));class k extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,k.prototype)}}t.ConnectionError=k,function(e){e.is=function(e){const t=e;return t&&i.func(t.cancelUndispatched)}}(v=t.ConnectionStrategy||(t.ConnectionStrategy={})),function(e){e.is=function(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&i.func(t.createCancellationTokenSource)&&(void 0===t.dispose||i.func(t.dispose))}}(b=t.IdCancellationReceiverStrategy||(t.IdCancellationReceiverStrategy={})),function(e){e.is=function(e){const t=e;return t&&"request"===t.kind&&i.func(t.createCancellationTokenSource)&&(void 0===t.dispose||i.func(t.dispose))}}(R=t.RequestCancellationReceiverStrategy||(t.RequestCancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new c.CancellationTokenSource}),e.is=function(e){return b.is(e)||R.is(e)}}(D=t.CancellationReceiverStrategy||(t.CancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(u.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&i.func(t.sendCancellation)&&i.func(t.cleanup)}}(S=t.CancellationSenderStrategy||(t.CancellationSenderStrategy={})),function(e){e.Message=Object.freeze({receiver:D.Message,sender:S.Message}),e.is=function(e){const t=e;return t&&D.is(t.receiver)&&S.is(t.sender)}}(_=t.CancellationStrategy||(t.CancellationStrategy={})),function(e){e.is=function(e){const t=e;return t&&i.func(t.handleMessage)}}(C=t.MessageStrategy||(t.MessageStrategy={})),(t.ConnectionOptions||(t.ConnectionOptions={})).is=function(e){const t=e;return t&&(_.is(t.cancellationStrategy)||v.is(t.connectionStrategy)||C.is(t.messageStrategy))},function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(w||(w={})),t.createMessageConnection=function(e,n,v,R){const D=void 0!==v?v:t.NullLogger;let S=0,T=0,P=0;const x="2.0";let q;const E=new Map;let M;const N=new Map,O=new Map;let L,A,j=new s.LinkedMap,F=new Map,I=new Set,W=new Map,H=f.Off,$=g.Text,U=w.New;const z=new a.Emitter,V=new a.Emitter,K=new a.Emitter,B=new a.Emitter,J=new a.Emitter,G=R&&R.cancellationStrategy?R.cancellationStrategy:_.Message;function X(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function Q(e){}function Y(){return U===w.Listening}function Z(){return U===w.Closed}function ee(){return U===w.Disposed}function te(){U!==w.New&&U!==w.Listening||(U=w.Closed,V.fire(void 0))}function ne(){L||0===j.size||(L=(0,o.default)().timer.setImmediate((()=>{L=void 0,function(){if(0===j.size)return;const e=j.shift();try{const t=R?.messageStrategy;C.is(t)?t.handleMessage(e,oe):oe(e)}finally{ne()}}()})))}function oe(e){r.Message.isRequest(e)?function(e){if(ee())return;function t(t,o,i){const s={jsonrpc:x,id:e.id};t instanceof r.ResponseError?s.error=t.toJson():s.result=void 0===t?null:t,se(s,o,i),n.write(s).catch((()=>D.error("Sending response failed.")))}function o(t,o,i){const r={jsonrpc:x,id:e.id,error:t.toJson()};se(r,o,i),n.write(r).catch((()=>D.error("Sending response failed.")))}!function(e){if(H!==f.Off&&A)if($===g.Text){let t;H!==f.Verbose&&H!==f.Compact||!e.params||(t=`Params: ${re(e.params)}\n\n`),A.log(`Received request '${e.method} - (${e.id})'.`,t)}else ce("receive-request",e)}(e);const s=E.get(e.method);let a,c;s&&(a=s.type,c=s.handler);const u=Date.now();if(c||q){const s=e.id??String(Date.now()),l=b.is(G.receiver)?G.receiver.createCancellationTokenSource(s):G.receiver.createCancellationTokenSource(e);null!==e.id&&I.has(e.id)&&l.cancel(),null!==e.id&&W.set(s,l);try{let d;if(c)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return void o(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but received none.`),e.method,u);d=c(l.token)}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===r.ParameterStructures.byName)return void o(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);d=c(...e.params,l.token)}else{if(void 0!==a&&a.parameterStructures===r.ParameterStructures.byPosition)return void o(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);d=c(e.params,l.token)}else q&&(d=q(e.method,e.params,l.token));const h=d;d?h.then?h.then((n=>{W.delete(s),t(n,e.method,u)}),(t=>{W.delete(s),t instanceof r.ResponseError?o(t,e.method,u):t&&i.string(t.message)?o(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,u):o(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)})):(W.delete(s),t(d,e.method,u)):(W.delete(s),function(t,o,i){void 0===t&&(t=null);const r={jsonrpc:x,id:e.id,result:t};se(r,o,i),n.write(r).catch((()=>D.error("Sending response failed.")))}(d,e.method,u))}catch(n){W.delete(s),n instanceof r.ResponseError?t(n,e.method,u):n&&i.string(n.message)?o(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,u):o(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}}else o(new r.ResponseError(r.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}(e):r.Message.isNotification(e)?function(e){if(ee())return;let t,n;if(e.method===u.type.method){const t=e.params.id;return I.delete(t),void ae(e)}{const o=N.get(e.method);o&&(n=o.handler,t=o.type)}if(n||M)try{if(ae(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==r.ParameterStructures.byName&&D.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){const o=e.params;e.method===d.type.method&&2===o.length&&l.is(o[0])?n({token:o[0],value:o[1]}):(void 0!==t&&(t.parameterStructures===r.ParameterStructures.byName&&D.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&D.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${o.length} arguments`)),n(...o))}else void 0!==t&&t.parameterStructures===r.ParameterStructures.byPosition&&D.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params);else M&&M(e.method,e.params)}catch(t){t.message?D.error(`Notification handler '${e.method}' failed with message: ${t.message}`):D.error(`Notification handler '${e.method}' failed unexpectedly.`)}else K.fire(e)}(e):r.Message.isResponse(e)?function(e){if(!ee())if(null===e.id)e.error?D.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):D.error("Received response message without id. No further error information provided.");else{const t=e.id,n=F.get(t);if(function(e,t){if(H!==f.Off&&A)if($===g.Text){let n;if(H!==f.Verbose&&H!==f.Compact||(e.error&&e.error.data?n=`Error data: ${re(e.error.data)}\n\n`:e.result?n=`Result: ${re(e.result)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),t){const o=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";A.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${o}`,n)}else A.log(`Received response ${e.id} without active response promise.`,n)}else ce("receive-response",e)}(e,n),void 0!==n){F.delete(t);try{if(e.error){const t=e.error;n.reject(new r.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?D.error(`Response handler '${n.method}' failed with message: ${e.message}`):D.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}(e):function(e){if(!e)return void D.error("Received empty message.");D.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(i.string(t.id)||i.number(t.id)){const e=t.id,n=F.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}e.onClose(te),e.onError((function(e){z.fire([e,void 0,void 0])})),n.onClose(te),n.onError((function(e){z.fire(e)}));const ie=e=>{try{if(r.Message.isNotification(e)&&e.method===u.type.method){const t=e.params.id,o=X(t),i=j.get(o);if(r.Message.isRequest(i)){const r=R?.connectionStrategy,s=r&&r.cancelUndispatched?r.cancelUndispatched(i,Q):void 0;if(s&&(void 0!==s.error||void 0!==s.result))return j.delete(o),W.delete(t),s.id=i.id,se(s,e.method,Date.now()),void n.write(s).catch((()=>D.error("Sending response for canceled message failed.")))}const s=W.get(t);if(void 0!==s)return s.cancel(),void ae(e);I.add(t)}!function(e,t){var n;r.Message.isRequest(t)?e.set(X(t.id),t):r.Message.isResponse(t)?e.set(null===(n=t.id)?"res-unknown-"+(++P).toString():"res-"+n.toString(),t):e.set("not-"+(++T).toString(),t)}(j,e)}finally{ne()}};function re(e){if(null!=e)switch(H){case f.Verbose:return JSON.stringify(e,null,4);case f.Compact:return JSON.stringify(e);default:return}}function se(e,t,n){if(H!==f.Off&&A)if($===g.Text){let o;H!==f.Verbose&&H!==f.Compact||(e.error&&e.error.data?o=`Error data: ${re(e.error.data)}\n\n`:e.result?o=`Result: ${re(e.result)}\n\n`:void 0===e.error&&(o="No result returned.\n\n")),A.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,o)}else ce("send-response",e)}function ae(e){if(H!==f.Off&&A&&e.method!==m.type.method)if($===g.Text){let t;H!==f.Verbose&&H!==f.Compact||(t=e.params?`Params: ${re(e.params)}\n\n`:"No parameters provided.\n\n"),A.log(`Received notification '${e.method}'.`,t)}else ce("receive-notification",e)}function ce(e,t){if(!A||H===f.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};A.log(n)}function ue(){if(Z())throw new k(y.Closed,"Connection is closed.");if(ee())throw new k(y.Disposed,"Connection is disposed.")}function le(e){return void 0===e?null:e}function de(e){return null===e?void 0:e}function he(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function fe(e,t){switch(e){case r.ParameterStructures.auto:return he(t)?de(t):[le(t)];case r.ParameterStructures.byName:if(!he(t))throw new Error("Received parameters by name but param is not an object literal.");return de(t);case r.ParameterStructures.byPosition:return[le(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function ge(e,t){let n;const o=e.numberOfParams;switch(o){case 0:n=void 0;break;case 1:n=fe(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{let o,s;if(ue(),i.string(e)){o=e;const n=t[0];let i=0,a=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(i=1,a=n);let c=t.length;const u=c-i;switch(u){case 0:s=void 0;break;case 1:s=fe(a,t[i]);break;default:if(a===r.ParameterStructures.byName)throw new Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);s=t.slice(i,c).map((e=>le(e)))}}else{const n=t;o=e.method,s=ge(e,n)}const a={jsonrpc:x,method:o,params:s};return function(e){if(H!==f.Off&&A)if($===g.Text){let t;H!==f.Verbose&&H!==f.Compact||(t=e.params?`Params: ${re(e.params)}\n\n`:"No parameters provided.\n\n"),A.log(`Sending notification '${e.method}'.`,t)}else ce("send-notification",e)}(a),n.write(a).catch((e=>{throw D.error("Sending notification failed."),e}))},onNotification:(e,t)=>{let n;return ue(),i.func(e)?M=e:t&&(i.string(e)?(n=e,N.set(e,{type:void 0,handler:t})):(n=e.method,N.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?N.delete(n):M=void 0}}},onProgress:(e,t,n)=>{if(O.has(t))throw new Error(`Progress handler for token ${t} already registered`);return O.set(t,n),{dispose:()=>{O.delete(t)}}},sendProgress:(e,t,n)=>pe.sendNotification(d.type,{token:t,value:n}),onUnhandledProgress:B.event,sendRequest:(e,...t)=>{let o,s,a;if(ue(),function(){if(!Y())throw new Error("Call listen() first.")}(),i.string(e)){o=e;const n=t[0],i=t[t.length-1];let u=0,l=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(u=1,l=n);let d=t.length;c.CancellationToken.is(i)&&(d-=1,a=i);const h=d-u;switch(h){case 0:s=void 0;break;case 1:s=fe(l,t[u]);break;default:if(l===r.ParameterStructures.byName)throw new Error(`Received ${h} parameters for 'by Name' request parameter structure.`);s=t.slice(u,d).map((e=>le(e)))}}else{const n=t;o=e.method,s=ge(e,n);const i=e.numberOfParams;a=c.CancellationToken.is(n[i])?n[i]:void 0}const u=S++;let l;a&&(l=a.onCancellationRequested((()=>{const e=G.sender.sendCancellation(pe,u);return void 0===e?(D.log(`Received no promise from cancellation strategy when cancelling id ${u}`),Promise.resolve()):e.catch((()=>{D.log(`Sending cancellation messages for id ${u} failed`)}))})));const d={jsonrpc:x,id:u,method:o,params:s};return function(e){if(H!==f.Off&&A)if($===g.Text){let t;H!==f.Verbose&&H!==f.Compact||!e.params||(t=`Params: ${re(e.params)}\n\n`),A.log(`Sending request '${e.method} - (${e.id})'.`,t)}else ce("send-request",e)}(d),"function"==typeof G.sender.enableCancellation&&G.sender.enableCancellation(d),new Promise((async(e,t)=>{const i={method:o,timerStart:Date.now(),resolve:t=>{e(t),G.sender.cleanup(u),l?.dispose()},reject:e=>{t(e),G.sender.cleanup(u),l?.dispose()}};try{await n.write(d),F.set(u,i)}catch(e){throw D.error("Sending request failed."),i.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),e}}))},onRequest:(e,t)=>{ue();let n=null;return h.is(e)?(n=void 0,q=e):i.string(e)?(n=null,void 0!==t&&(n=e,E.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,E.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?E.delete(n):q=void 0)}}},hasPendingResponse:()=>F.size>0,trace:async(e,t,n)=>{let o=!1,r=g.Text;void 0!==n&&(i.boolean(n)?o=n:(o=n.sendNotification||!1,r=n.traceFormat||g.Text)),H=e,$=r,A=H===f.Off?void 0:t,!o||Z()||ee()||await pe.sendNotification(p.type,{value:f.toString(e)})},onError:z.event,onClose:V.event,onUnhandledNotification:K.event,onDispose:J.event,end:()=>{n.end()},dispose:()=>{if(ee())return;U=w.Disposed,J.fire(void 0);const t=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of F.values())e.reject(t);F=new Map,W=new Map,I=new Set,j=new s.LinkedMap,i.func(n.dispose)&&n.dispose(),i.func(e.dispose)&&e.dispose()},listen:()=>{ue(),function(){if(Y())throw new k(y.AlreadyListening,"Connection is already listening")}(),U=w.Listening,e.listen(ie)},inspect:()=>{(0,o.default)().console.log("inspect")}};return pe.onNotification(m.type,(e=>{if(H===f.Off||!A)return;const t=H===f.Verbose||H===f.Compact;A.log(e.message,t?e.verbose:void 0)})),pe.onNotification(d.type,(e=>{const t=O.get(e.token);t?t(e.value):B.fire(e)})),pe}},3911:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,(t.Disposable||(t.Disposable={})).create=function(e){return{dispose:e}}},7135:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const o=n(147);!function(e){const t={dispose(){}};e.None=function(){return t}}(t.Event||(t.Event={}));class i{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let o=0,i=this._callbacks.length;o{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const o={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),o.dispose=r._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(o),o}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=r,r._noop=function(){}},7574:(e,t)=>{function n(e){return"string"==typeof e||e instanceof String}function o(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=o,t.stringArray=function(e){return o(e)&&e.every((e=>n(e)))}},6184:(e,t)=>{var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(o=t.Touch||(t.Touch={}));class i{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=o.None){const n=this._map.get(e);if(n)return t!==o.None&&this.touch(n,t),n.value}set(e,t,n=o.None){let i=this._map.get(e);if(i)i.value=t,n!==o.None&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case o.None:this.addItemLast(i);break;case o.First:this.addItemFirst(i);break;case o.Last:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let o=this._head;for(;o;){if(t?e.bind(t)(o.value,o.key,this):e(o.value,o.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");o=o.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===o.First||t===o.Last)if(t===o.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===o.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=i,t.LRUCache=class extends i{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=o.AsNew){return super.get(e,t)}peek(e){return super.get(e,o.None)}set(e,t){return super.set(e,t,o.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},5530:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,n=0,o=0,i=0;e:for(;nthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const o=this._chunks[0];if(o.byteLength>e){const i=o.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=o.slice(e),this._totalLength-=e,e-=e}else t.set(o,n),n+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return t}}},6525:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const o=n(147),i=n(7574),r=n(7135),s=n(142);var a;(t.MessageReader||(t.MessageReader={})).is=function(e){let t=e;return t&&i.func(t.listen)&&i.func(t.dispose)&&i.func(t.onError)&&i.func(t.onClose)&&i.func(t.onPartialMessage)};class c{constructor(){this.errorEmitter=new r.Emitter,this.closeEmitter=new r.Emitter,this.partialMessageEmitter=new r.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=c,function(e){e.fromOptions=function(e){let t,n;const i=new Map;let r;const s=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(n=e.contentDecoder,i.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)i.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(r=e.contentTypeDecoder,s.set(r.name,r)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)s.set(t.name,t)}return void 0===r&&(r=(0,o.default)().applicationJson.decoder,s.set(r.name,r)),{charset:t,contentDecoder:n,contentDecoders:i,contentTypeDecoder:r,contentTypeDecoders:s}}}(a||(a={})),t.ReadableStreamMessageReader=class extends c{constructor(e,t){super(),this.readable=e,this.options=a.fromOptions(t),this.buffer=(0,o.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new s.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error("Header must provide a Content-Length property."));const n=parseInt(t);if(isNaN(n))return void this.fireError(new Error("Content-Length value must be a number."));this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock((async()=>{const t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)})).catch((e=>{this.fireError(e)}))}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,o.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},6654:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const o=n(147),i=n(7574),r=n(142),s=n(7135);var a;(t.MessageWriter||(t.MessageWriter={})).is=function(e){let t=e;return t&&i.func(t.dispose)&&i.func(t.onClose)&&i.func(t.onError)&&i.func(t.write)};class c{constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=c,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,o.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,o.default)().applicationJson.encoder}}}(a||(a={})),t.WriteableStreamMessageWriter=class extends c{constructor(e,t){super(),this.writable=e,this.options=a.fromOptions(t),this.errorCount=0,this.writeSemaphore=new r.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},839:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const o=n(7574);var i,r;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(i=t.ErrorCodes||(t.ErrorCodes={}));class s extends Error{constructor(e,t,n){super(t),this.code=o.number(e)?e:i.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,s.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=s;class a{constructor(e){this.kind=e}static is(e){return e===a.auto||e===a.byName||e===a.byPosition}toString(){return this.kind}}t.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");class c{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return a.auto}}t.AbstractMessageSignature=c,t.RequestType0=class extends c{constructor(e){super(e,0)}},t.RequestType=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends c{constructor(e){super(e,2)}},t.RequestType3=class extends c{constructor(e){super(e,3)}},t.RequestType4=class extends c{constructor(e){super(e,4)}},t.RequestType5=class extends c{constructor(e){super(e,5)}},t.RequestType6=class extends c{constructor(e){super(e,6)}},t.RequestType7=class extends c{constructor(e){super(e,7)}},t.RequestType8=class extends c{constructor(e){super(e,8)}},t.RequestType9=class extends c{constructor(e){super(e,9)}},t.NotificationType=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends c{constructor(e){super(e,0)}},t.NotificationType1=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends c{constructor(e){super(e,2)}},t.NotificationType3=class extends c{constructor(e){super(e,3)}},t.NotificationType4=class extends c{constructor(e){super(e,4)}},t.NotificationType5=class extends c{constructor(e){super(e,5)}},t.NotificationType6=class extends c{constructor(e){super(e,6)}},t.NotificationType7=class extends c{constructor(e){super(e,7)}},t.NotificationType8=class extends c{constructor(e){super(e,8)}},t.NotificationType9=class extends c{constructor(e){super(e,9)}},(r=t.Message||(t.Message={})).isRequest=function(e){const t=e;return t&&o.string(t.method)&&(o.string(t.id)||o.number(t.id))},r.isNotification=function(e){const t=e;return t&&o.string(t.method)&&void 0===e.id},r.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(o.string(t.id)||o.number(t.id)||null===t.id)}},147:(e,t)=>{let n;function o(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(o||(o={})),t.default=o},142:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const o=n(147);t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,o.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},8211:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;const o=n(3881);var i;!function(e){e.Continue=0,e.Cancelled=1}(i||(i={})),t.SharedArraySenderStrategy=class{constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=i.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){const n=this.buffers.get(t);if(void 0===n)return;const o=new Int32Array(n,0,1);Atomics.store(o,0,i.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};class r{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===i.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class s{constructor(e){this.token=new r(e)}cancel(){}dispose(){}}t.SharedArrayReceiverStrategy=class{constructor(){this.kind="request"}createCancellationTokenSource(e){const t=e.$cancellationData;return void 0===t?new o.CancellationTokenSource:new s(t)}}},4389:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.createServerSocketTransport=t.createClientSocketTransport=t.createServerPipeTransport=t.createClientPipeTransport=t.generateRandomPipeName=t.StreamMessageWriter=t.StreamMessageReader=t.SocketMessageWriter=t.SocketMessageReader=t.PortMessageWriter=t.PortMessageReader=t.IPCMessageWriter=t.IPCMessageReader=void 0;const r=n(3034);r.default.install();const s=n(1017),a=n(2037),c=n(6113),u=n(1808),l=n(3870);i(n(3870),t);class d extends l.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose()))}listen(e){return this.process.on("message",e),l.Disposable.create((()=>this.process.off("message",e)))}}t.IPCMessageReader=d;class h extends l.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;const t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose))}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,(t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0})),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.IPCMessageWriter=h;class f extends l.AbstractMessageReader{constructor(e){super(),this.onData=new l.Emitter,e.on("close",(()=>this.fireClose)),e.on("error",(e=>this.fireError(e))),e.on("message",(e=>{this.onData.fire(e)}))}listen(e){return this.onData.event(e)}}t.PortMessageReader=f;class g extends l.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.on("close",(()=>this.fireClose())),e.on("error",(e=>this.fireError(e)))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.PortMessageWriter=g;class p extends l.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,r.default)().stream.asReadableStream(e),t)}}t.SocketMessageReader=p;class m extends l.WriteableStreamMessageWriter{constructor(e,t){super((0,r.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}t.SocketMessageWriter=m;class y extends l.ReadableStreamMessageReader{constructor(e,t){super((0,r.default)().stream.asReadableStream(e),t)}}t.StreamMessageReader=y;class v extends l.WriteableStreamMessageWriter{constructor(e,t){super((0,r.default)().stream.asWritableStream(e),t)}}t.StreamMessageWriter=v;const b=process.env.XDG_RUNTIME_DIR,R=new Map([["linux",107],["darwin",103]]);t.generateRandomPipeName=function(){const e=(0,c.randomBytes)(21).toString("hex");if("win32"===process.platform)return`\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`;let t;t=b?s.join(b,`vscode-ipc-${e}.sock`):s.join(a.tmpdir(),`vscode-${e}.sock`);const n=R.get(process.platform);return void 0!==n&&t.length>n&&(0,r.default)().console.warn(`WARNING: IPC handle "${t}" is longer than ${n} characters.`),t},t.createClientPipeTransport=function(e,t="utf-8"){let n;const o=new Promise(((e,t)=>{n=e}));return new Promise(((i,r)=>{let s=(0,u.createServer)((e=>{s.close(),n([new p(e,t),new m(e,t)])}));s.on("error",r),s.listen(e,(()=>{s.removeListener("error",r),i({onConnected:()=>o})}))}))},t.createServerPipeTransport=function(e,t="utf-8"){const n=(0,u.createConnection)(e);return[new p(n,t),new m(n,t)]},t.createClientSocketTransport=function(e,t="utf-8"){let n;const o=new Promise(((e,t)=>{n=e}));return new Promise(((i,r)=>{const s=(0,u.createServer)((e=>{s.close(),n([new p(e,t),new m(e,t)])}));s.on("error",r),s.listen(e,"127.0.0.1",(()=>{s.removeListener("error",r),i({onConnected:()=>o})}))}))},t.createServerSocketTransport=function(e,t="utf-8"){const n=(0,u.createConnection)(e,"127.0.0.1");return[new p(n,t),new m(n,t)]},t.createMessageConnection=function(e,t,n,o){n||(n=l.NullLogger);const i=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new y(e):e,r=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new v(t):t;return l.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,l.createMessageConnection)(i,r,n,o)}},3034:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=n(3837),i=n(3870);class r extends i.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return r.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new o.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}r.emptyBuffer=Buffer.allocUnsafe(0);class s{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),i.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),i.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),i.Disposable.create((()=>this.stream.off("end",e)))}onData(e){return this.stream.on("data",e),i.Disposable.create((()=>this.stream.off("data",e)))}}class a{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),i.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),i.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),i.Disposable.create((()=>this.stream.off("end",e)))}write(e,t){return new Promise(((n,o)=>{const i=e=>{null==e?n():o(e)};"string"==typeof e?this.stream.write(e,t,i):this.stream.write(e,i)}))}end(){this.stream.end()}}const c=Object.freeze({messageBuffer:Object.freeze({create:e=>new r(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new o.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new s(e),asWritableStream:e=>new a(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){const o=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(o)}},setImmediate(e,...t){const n=setImmediate(e,...t);return{dispose:()=>clearImmediate(n)}},setInterval(e,t,...n){const o=setInterval(e,t,...n);return{dispose:()=>clearInterval(o)}}})});function u(){return c}!function(e){e.install=function(){i.RAL.install(c)}}(u||(u={})),t.default=u},5028:(e,t,n)=>{e.exports=n(4389)},1661:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,i(n(4389),t),i(n(1674),t),i(n(6140),t),i(n(542),t);var r,s=n(3767);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return s.createProtocolConnection}}),(r=t.LSPErrorCodes||(t.LSPErrorCodes={})).lspReservedErrorRangeStart=-32899,r.RequestFailed=-32803,r.ServerCancelled=-32802,r.ContentModified=-32801,r.RequestCancelled=-32800,r.lspReservedErrorRangeEnd=-32800},3767:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const o=n(4389);t.createProtocolConnection=function(e,t,n,i){return o.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,o.createMessageConnection)(e,t,n,i)}},6140:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;const o=n(4389);var i;(i=t.MessageDirection||(t.MessageDirection={})).clientToServer="clientToServer",i.serverToClient="serverToClient",i.both="both",t.RegistrationType=class{constructor(e){this.method=e}};class r extends o.RequestType0{constructor(e){super(e)}}t.ProtocolRequestType0=r;class s extends o.RequestType{constructor(e){super(e,o.ParameterStructures.byName)}}t.ProtocolRequestType=s;class a extends o.NotificationType0{constructor(e){super(e)}}t.ProtocolNotificationType0=a;class c extends o.NotificationType{constructor(e){super(e,o.ParameterStructures.byName)}}t.ProtocolNotificationType=c},2918:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const o=n(6140);var i,r,s;(s=t.CallHierarchyPrepareRequest||(t.CallHierarchyPrepareRequest={})).method="textDocument/prepareCallHierarchy",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolRequestType(s.method),(r=t.CallHierarchyIncomingCallsRequest||(t.CallHierarchyIncomingCallsRequest={})).method="callHierarchy/incomingCalls",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(i=t.CallHierarchyOutgoingCallsRequest||(t.CallHierarchyOutgoingCallsRequest={})).method="callHierarchy/outgoingCalls",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},3390:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const o=n(6140);var i,r;(r=t.DocumentColorRequest||(t.DocumentColorRequest={})).method="textDocument/documentColor",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(i=t.ColorPresentationRequest||(t.ColorPresentationRequest={})).method="textDocument/colorPresentation",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},5934:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const o=n(6140);var i;(i=t.ConfigurationRequest||(t.ConfigurationRequest={})).method="workspace/configuration",i.messageDirection=o.MessageDirection.serverToClient,i.type=new o.ProtocolRequestType(i.method)},764:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const o=n(6140);var i;(i=t.DeclarationRequest||(t.DeclarationRequest={})).method="textDocument/declaration",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},9824:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;const o=n(4389),i=n(9533),r=n(6140);var s,a,c,u;(t.DiagnosticServerCancellationData||(t.DiagnosticServerCancellationData={})).is=function(e){const t=e;return t&&i.boolean(t.retriggerRequest)},(u=t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={})).Full="full",u.Unchanged="unchanged",(c=t.DocumentDiagnosticRequest||(t.DocumentDiagnosticRequest={})).method="textDocument/diagnostic",c.messageDirection=r.MessageDirection.clientToServer,c.type=new r.ProtocolRequestType(c.method),c.partialResult=new o.ProgressType,(a=t.WorkspaceDiagnosticRequest||(t.WorkspaceDiagnosticRequest={})).method="workspace/diagnostic",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.partialResult=new o.ProgressType,(s=t.DiagnosticRefreshRequest||(t.DiagnosticRefreshRequest={})).method="workspace/diagnostic/refresh",s.messageDirection=r.MessageDirection.serverToClient,s.type=new r.ProtocolRequestType0(s.method)},7846:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const o=n(6140);var i,r,s,a,c,u,l;(l=t.FileOperationPatternKind||(t.FileOperationPatternKind={})).file="file",l.folder="folder",(u=t.WillCreateFilesRequest||(t.WillCreateFilesRequest={})).method="workspace/willCreateFiles",u.messageDirection=o.MessageDirection.clientToServer,u.type=new o.ProtocolRequestType(u.method),(c=t.DidCreateFilesNotification||(t.DidCreateFilesNotification={})).method="workspace/didCreateFiles",c.messageDirection=o.MessageDirection.clientToServer,c.type=new o.ProtocolNotificationType(c.method),(a=t.WillRenameFilesRequest||(t.WillRenameFilesRequest={})).method="workspace/willRenameFiles",a.messageDirection=o.MessageDirection.clientToServer,a.type=new o.ProtocolRequestType(a.method),(s=t.DidRenameFilesNotification||(t.DidRenameFilesNotification={})).method="workspace/didRenameFiles",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolNotificationType(s.method),(r=t.DidDeleteFilesNotification||(t.DidDeleteFilesNotification={})).method="workspace/didDeleteFiles",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolNotificationType(r.method),(i=t.WillDeleteFilesRequest||(t.WillDeleteFilesRequest={})).method="workspace/willDeleteFiles",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},3394:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRequest=void 0;const o=n(6140);var i;(i=t.FoldingRangeRequest||(t.FoldingRangeRequest={})).method="textDocument/foldingRange",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},2122:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const o=n(6140);var i;(i=t.ImplementationRequest||(t.ImplementationRequest={})).method="textDocument/implementation",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},9999:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const o=n(6140);var i,r,s;(s=t.InlayHintRequest||(t.InlayHintRequest={})).method="textDocument/inlayHint",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolRequestType(s.method),(r=t.InlayHintResolveRequest||(t.InlayHintResolveRequest={})).method="inlayHint/resolve",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(i=t.InlayHintRefreshRequest||(t.InlayHintRefreshRequest={})).method="workspace/inlayHint/refresh",i.messageDirection=o.MessageDirection.serverToClient,i.type=new o.ProtocolRequestType0(i.method)},5246:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const o=n(6140);var i,r;(r=t.InlineValueRequest||(t.InlineValueRequest={})).method="textDocument/inlineValue",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(i=t.InlineValueRefreshRequest||(t.InlineValueRefreshRequest={})).method="workspace/inlineValue/refresh",i.messageDirection=o.MessageDirection.serverToClient,i.type=new o.ProtocolRequestType0(i.method)},542:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=void 0;const o=n(6140),i=n(1674),r=n(9533),s=n(2122);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return s.ImplementationRequest}});const a=n(1589);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return a.TypeDefinitionRequest}});const c=n(8744);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return c.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return c.DidChangeWorkspaceFoldersNotification}});const u=n(5934);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return u.ConfigurationRequest}});const l=n(3390);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return l.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return l.ColorPresentationRequest}});const d=n(3394);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return d.FoldingRangeRequest}});const h=n(764);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return h.DeclarationRequest}});const f=n(5206);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return f.SelectionRangeRequest}});const g=n(1862);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return g.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return g.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return g.WorkDoneProgressCancelNotification}});const p=n(2918);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return p.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return p.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return p.CallHierarchyPrepareRequest}});const m=n(9434);Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return m.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return m.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return m.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return m.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return m.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return m.SemanticTokensRegistrationType}});const y=n(5726);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return y.ShowDocumentRequest}});const v=n(6305);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return v.LinkedEditingRangeRequest}});const b=n(7846);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return b.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return b.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return b.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return b.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return b.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return b.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return b.WillDeleteFilesRequest}});const R=n(3443);Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return R.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return R.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return R.MonikerRequest}});const D=n(3693);Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return D.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return D.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return D.TypeHierarchySupertypesRequest}});const S=n(5246);Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return S.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return S.InlineValueRefreshRequest}});const _=n(9999);Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return _.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return _.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return _.InlayHintRefreshRequest}});const C=n(9824);Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return C.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return C.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return C.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return C.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return C.DiagnosticRefreshRequest}});const w=n(7169);var T,k,P,x,q,E,M,N,O,L,A,j,F,I,W,H,$,U,z,V,K,B,J,G,X,Q,Y,Z,ee,te,ne,oe,ie,re,se,ae,ce,ue,le,de,he,fe,ge,pe,me,ye,ve,be,Re,De,Se,_e,Ce,we,Te,ke,Pe,xe,qe;Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return w.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return w.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return w.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return w.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return w.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return w.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return w.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return w.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return w.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return w.DidCloseNotebookDocumentNotification}}),function(e){e.is=function(e){const t=e;return r.string(t.language)||r.string(t.scheme)||r.string(t.pattern)}}(T=t.TextDocumentFilter||(t.TextDocumentFilter={})),function(e){e.is=function(e){const t=e;return r.objectLiteral(t)&&(r.string(t.notebookType)||r.string(t.scheme)||r.string(t.pattern))}}(k=t.NotebookDocumentFilter||(t.NotebookDocumentFilter={})),function(e){e.is=function(e){const t=e;return r.objectLiteral(t)&&(r.string(t.notebook)||k.is(t.notebook))&&(void 0===t.language||r.string(t.language))}}(P=t.NotebookCellTextDocumentFilter||(t.NotebookCellTextDocumentFilter={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(let t of e)if(!r.string(t)&&!T.is(t)&&!P.is(t))return!1;return!0}}(x=t.DocumentSelector||(t.DocumentSelector={})),(qe=t.RegistrationRequest||(t.RegistrationRequest={})).method="client/registerCapability",qe.messageDirection=o.MessageDirection.serverToClient,qe.type=new o.ProtocolRequestType(qe.method),(xe=t.UnregistrationRequest||(t.UnregistrationRequest={})).method="client/unregisterCapability",xe.messageDirection=o.MessageDirection.serverToClient,xe.type=new o.ProtocolRequestType(xe.method),(Pe=t.ResourceOperationKind||(t.ResourceOperationKind={})).Create="create",Pe.Rename="rename",Pe.Delete="delete",(ke=t.FailureHandlingKind||(t.FailureHandlingKind={})).Abort="abort",ke.Transactional="transactional",ke.TextOnlyTransactional="textOnlyTransactional",ke.Undo="undo",(Te=t.PositionEncodingKind||(t.PositionEncodingKind={})).UTF8="utf-8",Te.UTF16="utf-16",Te.UTF32="utf-32",(t.StaticRegistrationOptions||(t.StaticRegistrationOptions={})).hasId=function(e){const t=e;return t&&r.string(t.id)&&t.id.length>0},(t.TextDocumentRegistrationOptions||(t.TextDocumentRegistrationOptions={})).is=function(e){const t=e;return t&&(null===t.documentSelector||x.is(t.documentSelector))},(we=t.WorkDoneProgressOptions||(t.WorkDoneProgressOptions={})).is=function(e){const t=e;return r.objectLiteral(t)&&(void 0===t.workDoneProgress||r.boolean(t.workDoneProgress))},we.hasWorkDoneProgress=function(e){const t=e;return t&&r.boolean(t.workDoneProgress)},(Ce=t.InitializeRequest||(t.InitializeRequest={})).method="initialize",Ce.messageDirection=o.MessageDirection.clientToServer,Ce.type=new o.ProtocolRequestType(Ce.method),(t.InitializeErrorCodes||(t.InitializeErrorCodes={})).unknownProtocolVersion=1,(_e=t.InitializedNotification||(t.InitializedNotification={})).method="initialized",_e.messageDirection=o.MessageDirection.clientToServer,_e.type=new o.ProtocolNotificationType(_e.method),(Se=t.ShutdownRequest||(t.ShutdownRequest={})).method="shutdown",Se.messageDirection=o.MessageDirection.clientToServer,Se.type=new o.ProtocolRequestType0(Se.method),(De=t.ExitNotification||(t.ExitNotification={})).method="exit",De.messageDirection=o.MessageDirection.clientToServer,De.type=new o.ProtocolNotificationType0(De.method),(Re=t.DidChangeConfigurationNotification||(t.DidChangeConfigurationNotification={})).method="workspace/didChangeConfiguration",Re.messageDirection=o.MessageDirection.clientToServer,Re.type=new o.ProtocolNotificationType(Re.method),(be=t.MessageType||(t.MessageType={})).Error=1,be.Warning=2,be.Info=3,be.Log=4,(ve=t.ShowMessageNotification||(t.ShowMessageNotification={})).method="window/showMessage",ve.messageDirection=o.MessageDirection.serverToClient,ve.type=new o.ProtocolNotificationType(ve.method),(ye=t.ShowMessageRequest||(t.ShowMessageRequest={})).method="window/showMessageRequest",ye.messageDirection=o.MessageDirection.serverToClient,ye.type=new o.ProtocolRequestType(ye.method),(me=t.LogMessageNotification||(t.LogMessageNotification={})).method="window/logMessage",me.messageDirection=o.MessageDirection.serverToClient,me.type=new o.ProtocolNotificationType(me.method),(pe=t.TelemetryEventNotification||(t.TelemetryEventNotification={})).method="telemetry/event",pe.messageDirection=o.MessageDirection.serverToClient,pe.type=new o.ProtocolNotificationType(pe.method),(ge=t.TextDocumentSyncKind||(t.TextDocumentSyncKind={})).None=0,ge.Full=1,ge.Incremental=2,(fe=t.DidOpenTextDocumentNotification||(t.DidOpenTextDocumentNotification={})).method="textDocument/didOpen",fe.messageDirection=o.MessageDirection.clientToServer,fe.type=new o.ProtocolNotificationType(fe.method),(he=t.TextDocumentContentChangeEvent||(t.TextDocumentContentChangeEvent={})).isIncremental=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},he.isFull=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},(de=t.DidChangeTextDocumentNotification||(t.DidChangeTextDocumentNotification={})).method="textDocument/didChange",de.messageDirection=o.MessageDirection.clientToServer,de.type=new o.ProtocolNotificationType(de.method),(le=t.DidCloseTextDocumentNotification||(t.DidCloseTextDocumentNotification={})).method="textDocument/didClose",le.messageDirection=o.MessageDirection.clientToServer,le.type=new o.ProtocolNotificationType(le.method),(ue=t.DidSaveTextDocumentNotification||(t.DidSaveTextDocumentNotification={})).method="textDocument/didSave",ue.messageDirection=o.MessageDirection.clientToServer,ue.type=new o.ProtocolNotificationType(ue.method),(ce=t.TextDocumentSaveReason||(t.TextDocumentSaveReason={})).Manual=1,ce.AfterDelay=2,ce.FocusOut=3,(ae=t.WillSaveTextDocumentNotification||(t.WillSaveTextDocumentNotification={})).method="textDocument/willSave",ae.messageDirection=o.MessageDirection.clientToServer,ae.type=new o.ProtocolNotificationType(ae.method),(se=t.WillSaveTextDocumentWaitUntilRequest||(t.WillSaveTextDocumentWaitUntilRequest={})).method="textDocument/willSaveWaitUntil",se.messageDirection=o.MessageDirection.clientToServer,se.type=new o.ProtocolRequestType(se.method),(re=t.DidChangeWatchedFilesNotification||(t.DidChangeWatchedFilesNotification={})).method="workspace/didChangeWatchedFiles",re.messageDirection=o.MessageDirection.clientToServer,re.type=new o.ProtocolNotificationType(re.method),(ie=t.FileChangeType||(t.FileChangeType={})).Created=1,ie.Changed=2,ie.Deleted=3,(t.RelativePattern||(t.RelativePattern={})).is=function(e){const t=e;return r.objectLiteral(t)&&(i.URI.is(t.baseUri)||i.WorkspaceFolder.is(t.baseUri))&&r.string(t.pattern)},(oe=t.WatchKind||(t.WatchKind={})).Create=1,oe.Change=2,oe.Delete=4,(ne=t.PublishDiagnosticsNotification||(t.PublishDiagnosticsNotification={})).method="textDocument/publishDiagnostics",ne.messageDirection=o.MessageDirection.serverToClient,ne.type=new o.ProtocolNotificationType(ne.method),(te=t.CompletionTriggerKind||(t.CompletionTriggerKind={})).Invoked=1,te.TriggerCharacter=2,te.TriggerForIncompleteCompletions=3,(ee=t.CompletionRequest||(t.CompletionRequest={})).method="textDocument/completion",ee.messageDirection=o.MessageDirection.clientToServer,ee.type=new o.ProtocolRequestType(ee.method),(Z=t.CompletionResolveRequest||(t.CompletionResolveRequest={})).method="completionItem/resolve",Z.messageDirection=o.MessageDirection.clientToServer,Z.type=new o.ProtocolRequestType(Z.method),(Y=t.HoverRequest||(t.HoverRequest={})).method="textDocument/hover",Y.messageDirection=o.MessageDirection.clientToServer,Y.type=new o.ProtocolRequestType(Y.method),(Q=t.SignatureHelpTriggerKind||(t.SignatureHelpTriggerKind={})).Invoked=1,Q.TriggerCharacter=2,Q.ContentChange=3,(X=t.SignatureHelpRequest||(t.SignatureHelpRequest={})).method="textDocument/signatureHelp",X.messageDirection=o.MessageDirection.clientToServer,X.type=new o.ProtocolRequestType(X.method),(G=t.DefinitionRequest||(t.DefinitionRequest={})).method="textDocument/definition",G.messageDirection=o.MessageDirection.clientToServer,G.type=new o.ProtocolRequestType(G.method),(J=t.ReferencesRequest||(t.ReferencesRequest={})).method="textDocument/references",J.messageDirection=o.MessageDirection.clientToServer,J.type=new o.ProtocolRequestType(J.method),(B=t.DocumentHighlightRequest||(t.DocumentHighlightRequest={})).method="textDocument/documentHighlight",B.messageDirection=o.MessageDirection.clientToServer,B.type=new o.ProtocolRequestType(B.method),(K=t.DocumentSymbolRequest||(t.DocumentSymbolRequest={})).method="textDocument/documentSymbol",K.messageDirection=o.MessageDirection.clientToServer,K.type=new o.ProtocolRequestType(K.method),(V=t.CodeActionRequest||(t.CodeActionRequest={})).method="textDocument/codeAction",V.messageDirection=o.MessageDirection.clientToServer,V.type=new o.ProtocolRequestType(V.method),(z=t.CodeActionResolveRequest||(t.CodeActionResolveRequest={})).method="codeAction/resolve",z.messageDirection=o.MessageDirection.clientToServer,z.type=new o.ProtocolRequestType(z.method),(U=t.WorkspaceSymbolRequest||(t.WorkspaceSymbolRequest={})).method="workspace/symbol",U.messageDirection=o.MessageDirection.clientToServer,U.type=new o.ProtocolRequestType(U.method),($=t.WorkspaceSymbolResolveRequest||(t.WorkspaceSymbolResolveRequest={})).method="workspaceSymbol/resolve",$.messageDirection=o.MessageDirection.clientToServer,$.type=new o.ProtocolRequestType($.method),(H=t.CodeLensRequest||(t.CodeLensRequest={})).method="textDocument/codeLens",H.messageDirection=o.MessageDirection.clientToServer,H.type=new o.ProtocolRequestType(H.method),(W=t.CodeLensResolveRequest||(t.CodeLensResolveRequest={})).method="codeLens/resolve",W.messageDirection=o.MessageDirection.clientToServer,W.type=new o.ProtocolRequestType(W.method),(I=t.CodeLensRefreshRequest||(t.CodeLensRefreshRequest={})).method="workspace/codeLens/refresh",I.messageDirection=o.MessageDirection.serverToClient,I.type=new o.ProtocolRequestType0(I.method),(F=t.DocumentLinkRequest||(t.DocumentLinkRequest={})).method="textDocument/documentLink",F.messageDirection=o.MessageDirection.clientToServer,F.type=new o.ProtocolRequestType(F.method),(j=t.DocumentLinkResolveRequest||(t.DocumentLinkResolveRequest={})).method="documentLink/resolve",j.messageDirection=o.MessageDirection.clientToServer,j.type=new o.ProtocolRequestType(j.method),(A=t.DocumentFormattingRequest||(t.DocumentFormattingRequest={})).method="textDocument/formatting",A.messageDirection=o.MessageDirection.clientToServer,A.type=new o.ProtocolRequestType(A.method),(L=t.DocumentRangeFormattingRequest||(t.DocumentRangeFormattingRequest={})).method="textDocument/rangeFormatting",L.messageDirection=o.MessageDirection.clientToServer,L.type=new o.ProtocolRequestType(L.method),(O=t.DocumentOnTypeFormattingRequest||(t.DocumentOnTypeFormattingRequest={})).method="textDocument/onTypeFormatting",O.messageDirection=o.MessageDirection.clientToServer,O.type=new o.ProtocolRequestType(O.method),(t.PrepareSupportDefaultBehavior||(t.PrepareSupportDefaultBehavior={})).Identifier=1,(N=t.RenameRequest||(t.RenameRequest={})).method="textDocument/rename",N.messageDirection=o.MessageDirection.clientToServer,N.type=new o.ProtocolRequestType(N.method),(M=t.PrepareRenameRequest||(t.PrepareRenameRequest={})).method="textDocument/prepareRename",M.messageDirection=o.MessageDirection.clientToServer,M.type=new o.ProtocolRequestType(M.method),(E=t.ExecuteCommandRequest||(t.ExecuteCommandRequest={})).method="workspace/executeCommand",E.messageDirection=o.MessageDirection.clientToServer,E.type=new o.ProtocolRequestType(E.method),(q=t.ApplyWorkspaceEditRequest||(t.ApplyWorkspaceEditRequest={})).method="workspace/applyEdit",q.messageDirection=o.MessageDirection.serverToClient,q.type=new o.ProtocolRequestType("workspace/applyEdit")},6305:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const o=n(6140);var i;(i=t.LinkedEditingRangeRequest||(t.LinkedEditingRangeRequest={})).method="textDocument/linkedEditingRange",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},3443:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const o=n(6140);var i,r,s;(s=t.UniquenessLevel||(t.UniquenessLevel={})).document="document",s.project="project",s.group="group",s.scheme="scheme",s.global="global",(r=t.MonikerKind||(t.MonikerKind={})).$import="import",r.$export="export",r.local="local",(i=t.MonikerRequest||(t.MonikerRequest={})).method="textDocument/moniker",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},7169:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const o=n(1674),i=n(9533),r=n(6140);var s,a,c,u,l,d,h,f,g,p;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(s=t.NotebookCellKind||(t.NotebookCellKind={})),function(e){e.create=function(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const t=e;return i.objectLiteral(t)&&o.uinteger.is(t.executionOrder)&&(void 0===t.success||i.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}}(a=t.ExecutionSummary||(t.ExecutionSummary={})),function(e){function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(typeof e!=typeof n)return!1;if("object"!=typeof e)return!1;const o=Array.isArray(e),r=Array.isArray(n);if(o!==r)return!1;if(o&&r){if(e.length!==n.length)return!1;for(let o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const o=n(4389),i=n(6140);var r,s,a;(a=t.WorkDoneProgress||(t.WorkDoneProgress={})).type=new o.ProgressType,a.is=function(e){return e===a.type},(s=t.WorkDoneProgressCreateRequest||(t.WorkDoneProgressCreateRequest={})).method="window/workDoneProgress/create",s.messageDirection=i.MessageDirection.serverToClient,s.type=new i.ProtocolRequestType(s.method),(r=t.WorkDoneProgressCancelNotification||(t.WorkDoneProgressCancelNotification={})).method="window/workDoneProgress/cancel",r.messageDirection=i.MessageDirection.clientToServer,r.type=new i.ProtocolNotificationType(r.method)},5206:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const o=n(6140);var i;(i=t.SelectionRangeRequest||(t.SelectionRangeRequest={})).method="textDocument/selectionRange",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},9434:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const o=n(6140);var i,r,s,a,c;(t.TokenFormat||(t.TokenFormat={})).Relative="relative",function(e){e.method="textDocument/semanticTokens",e.type=new o.RegistrationType(e.method)}(i=t.SemanticTokensRegistrationType||(t.SemanticTokensRegistrationType={})),(c=t.SemanticTokensRequest||(t.SemanticTokensRequest={})).method="textDocument/semanticTokens/full",c.messageDirection=o.MessageDirection.clientToServer,c.type=new o.ProtocolRequestType(c.method),c.registrationMethod=i.method,(a=t.SemanticTokensDeltaRequest||(t.SemanticTokensDeltaRequest={})).method="textDocument/semanticTokens/full/delta",a.messageDirection=o.MessageDirection.clientToServer,a.type=new o.ProtocolRequestType(a.method),a.registrationMethod=i.method,(s=t.SemanticTokensRangeRequest||(t.SemanticTokensRangeRequest={})).method="textDocument/semanticTokens/range",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolRequestType(s.method),s.registrationMethod=i.method,(r=t.SemanticTokensRefreshRequest||(t.SemanticTokensRefreshRequest={})).method="workspace/semanticTokens/refresh",r.messageDirection=o.MessageDirection.serverToClient,r.type=new o.ProtocolRequestType0(r.method)},5726:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const o=n(6140);var i;(i=t.ShowDocumentRequest||(t.ShowDocumentRequest={})).method="window/showDocument",i.messageDirection=o.MessageDirection.serverToClient,i.type=new o.ProtocolRequestType(i.method)},1589:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const o=n(6140);var i;(i=t.TypeDefinitionRequest||(t.TypeDefinitionRequest={})).method="textDocument/typeDefinition",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},3693:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const o=n(6140);var i,r,s;(s=t.TypeHierarchyPrepareRequest||(t.TypeHierarchyPrepareRequest={})).method="textDocument/prepareTypeHierarchy",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolRequestType(s.method),(r=t.TypeHierarchySupertypesRequest||(t.TypeHierarchySupertypesRequest={})).method="typeHierarchy/supertypes",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(i=t.TypeHierarchySubtypesRequest||(t.TypeHierarchySubtypesRequest={})).method="typeHierarchy/subtypes",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method)},8744:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const o=n(6140);var i,r;(r=t.WorkspaceFoldersRequest||(t.WorkspaceFoldersRequest={})).method="workspace/workspaceFolders",r.messageDirection=o.MessageDirection.serverToClient,r.type=new o.ProtocolRequestType0(r.method),(i=t.DidChangeWorkspaceFoldersNotification||(t.DidChangeWorkspaceFoldersNotification={})).method="workspace/didChangeWorkspaceFolders",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolNotificationType(i.method)},9533:(e,t)=>{function n(e){return"string"==typeof e||e instanceof String}function o(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=o,t.stringArray=function(e){return o(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},273:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const r=n(5028);i(n(5028),t),i(n(1661),t),t.createProtocolConnection=function(e,t,n,o){return(0,r.createMessageConnection)(e,t,n,o)}},6560:(e,t,n)=>{e.exports=n(273)},6813:(e,t,n)=>{n.r(t),n.d(t,{TextDocument:()=>o});var o,i=function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;ie?o=i:n=i+1}var r=n-1;return{line:r,character:e-t[r]}},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],o=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function u(e){var t=c(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,o){return new r(e,t,n,o)},e.update=function(e,t,n){if(e instanceof r)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){for(var n=e.getText(),o=0,i=[],r=0,a=s(t.map(u),(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));ro&&i.push(n.substring(o,l)),c.newText.length&&i.push(c.newText),o=e.offsetAt(c.range.end)}return i.push(n.substr(o)),i.join("")}}(o||(o={}))},1674:(e,t,n)=>{var o,i,r,s,a,c,u,l,d,h,f,g,p,m,y,v,b,R,D,S,_,C,w,T,k,P,x,q;n.r(t),n.d(t,{AnnotatedTextEdit:()=>w,ChangeAnnotation:()=>_,ChangeAnnotationIdentifier:()=>C,CodeAction:()=>re,CodeActionContext:()=>ie,CodeActionKind:()=>ne,CodeActionTriggerKind:()=>oe,CodeDescription:()=>b,CodeLens:()=>se,Color:()=>d,ColorInformation:()=>h,ColorPresentation:()=>f,Command:()=>D,CompletionItem:()=>U,CompletionItemKind:()=>j,CompletionItemLabelDetails:()=>$,CompletionItemTag:()=>I,CompletionList:()=>z,CreateFile:()=>k,DeleteFile:()=>x,Diagnostic:()=>R,DiagnosticRelatedInformation:()=>m,DiagnosticSeverity:()=>y,DiagnosticTag:()=>v,DocumentHighlight:()=>X,DocumentHighlightKind:()=>G,DocumentLink:()=>ce,DocumentSymbol:()=>te,DocumentUri:()=>o,EOL:()=>we,FoldingRange:()=>p,FoldingRangeKind:()=>g,FormattingOptions:()=>ae,Hover:()=>K,InlayHint:()=>be,InlayHintKind:()=>ye,InlayHintLabelPart:()=>ve,InlineValueContext:()=>me,InlineValueEvaluatableExpression:()=>pe,InlineValueText:()=>fe,InlineValueVariableLookup:()=>ge,InsertReplaceEdit:()=>W,InsertTextFormat:()=>F,InsertTextMode:()=>H,Location:()=>u,LocationLink:()=>l,MarkedString:()=>V,MarkupContent:()=>A,MarkupKind:()=>L,OptionalVersionedTextDocumentIdentifier:()=>N,ParameterInformation:()=>B,Position:()=>a,Range:()=>c,RenameFile:()=>P,SelectionRange:()=>ue,SemanticTokenModifiers:()=>de,SemanticTokenTypes:()=>le,SemanticTokens:()=>he,SignatureInformation:()=>J,SymbolInformation:()=>Z,SymbolKind:()=>Q,SymbolTag:()=>Y,TextDocument:()=>Ce,TextDocumentEdit:()=>T,TextDocumentIdentifier:()=>E,TextDocumentItem:()=>O,TextEdit:()=>S,URI:()=>i,VersionedTextDocumentIdentifier:()=>M,WorkspaceChange:()=>_e,WorkspaceEdit:()=>q,WorkspaceFolder:()=>Re,WorkspaceSymbol:()=>ee,integer:()=>r,uinteger:()=>s}),function(e){e.is=function(e){return"string"==typeof e}}(o||(o={})),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),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}}(r||(r={})),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}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Te.objectLiteral(t)&&Te.uinteger(t.line)&&Te.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,o){if(Te.uinteger(e)&&Te.uinteger(t)&&Te.uinteger(n)&&Te.uinteger(o))return{start:a.create(e,t),end:a.create(n,o)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(o,"]"))},e.is=function(e){var t=e;return Te.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(c||(c={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Te.objectLiteral(t)&&c.is(t.range)&&(Te.string(t.uri)||Te.undefined(t.uri))}}(u||(u={})),function(e){e.create=function(e,t,n,o){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:o}},e.is=function(e){var t=e;return Te.objectLiteral(t)&&c.is(t.targetRange)&&Te.string(t.targetUri)&&c.is(t.targetSelectionRange)&&(c.is(t.originSelectionRange)||Te.undefined(t.originSelectionRange))}}(l||(l={})),function(e){e.create=function(e,t,n,o){return{red:e,green:t,blue:n,alpha:o}},e.is=function(e){var t=e;return Te.objectLiteral(t)&&Te.numberRange(t.red,0,1)&&Te.numberRange(t.green,0,1)&&Te.numberRange(t.blue,0,1)&&Te.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Te.objectLiteral(t)&&c.is(t.range)&&d.is(t.color)}}(h||(h={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Te.objectLiteral(t)&&Te.string(t.label)&&(Te.undefined(t.textEdit)||S.is(t))&&(Te.undefined(t.additionalTextEdits)||Te.typedArray(t.additionalTextEdits,S.is))}}(f||(f={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(g||(g={})),function(e){e.create=function(e,t,n,o,i,r){var s={startLine:e,endLine:t};return Te.defined(n)&&(s.startCharacter=n),Te.defined(o)&&(s.endCharacter=o),Te.defined(i)&&(s.kind=i),Te.defined(r)&&(s.collapsedText=r),s},e.is=function(e){var t=e;return Te.objectLiteral(t)&&Te.uinteger(t.startLine)&&Te.uinteger(t.startLine)&&(Te.undefined(t.startCharacter)||Te.uinteger(t.startCharacter))&&(Te.undefined(t.endCharacter)||Te.uinteger(t.endCharacter))&&(Te.undefined(t.kind)||Te.string(t.kind))}}(p||(p={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Te.defined(t)&&u.is(t.location)&&Te.string(t.message)}}(m||(m={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(y||(y={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){var t=e;return Te.objectLiteral(t)&&Te.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,o,i,r){var s={range:e,message:t};return Te.defined(n)&&(s.severity=n),Te.defined(o)&&(s.code=o),Te.defined(i)&&(s.source=i),Te.defined(r)&&(s.relatedInformation=r),s},e.is=function(e){var t,n=e;return Te.defined(n)&&c.is(n.range)&&Te.string(n.message)&&(Te.number(n.severity)||Te.undefined(n.severity))&&(Te.integer(n.code)||Te.string(n.code)||Te.undefined(n.code))&&(Te.undefined(n.codeDescription)||Te.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Te.string(n.source)||Te.undefined(n.source))&&(Te.undefined(n.relatedInformation)||Te.typedArray(n.relatedInformation,m.is))}}(R||(R={})),function(e){e.create=function(e,t){for(var n=[],o=2;o0&&(i.arguments=n),i},e.is=function(e){var t=e;return Te.defined(t)&&Te.string(t.title)&&Te.string(t.command)}}(D||(D={})),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){var t=e;return Te.objectLiteral(t)&&Te.string(t.newText)&&c.is(t.range)}}(S||(S={})),function(e){e.create=function(e,t,n){var o={label:e};return void 0!==t&&(o.needsConfirmation=t),void 0!==n&&(o.description=n),o},e.is=function(e){var t=e;return Te.objectLiteral(t)&&Te.string(t.label)&&(Te.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Te.string(t.description)||void 0===t.description)}}(_||(_={})),function(e){e.is=function(e){var t=e;return Te.string(t)}}(C||(C={})),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){var t=e;return S.is(t)&&(_.is(t.annotationId)||C.is(t.annotationId))}}(w||(w={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Te.defined(t)&&N.is(t.textDocument)&&Array.isArray(t.edits)}}(T||(T={})),function(e){e.create=function(e,t,n){var o={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(o.options=t),void 0!==n&&(o.annotationId=n),o},e.is=function(e){var t=e;return t&&"create"===t.kind&&Te.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Te.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Te.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(k||(k={})),function(e){e.create=function(e,t,n,o){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==o&&(i.annotationId=o),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Te.string(t.oldUri)&&Te.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Te.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Te.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(P||(P={})),function(e){e.create=function(e,t,n){var o={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(o.options=t),void 0!==n&&(o.annotationId=n),o},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Te.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Te.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Te.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(x||(x={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Te.string(e.kind)?k.is(e)||P.is(e)||x.is(e):T.is(e)})))}}(q||(q={}));var E,M,N,O,L,A,j,F,I,W,H,$,U,z,V,K,B,J,G,X,Q,Y,Z,ee,te,ne,oe,ie,re,se,ae,ce,ue,le,de,he,fe,ge,pe,me,ye,ve,be,Re,De=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var o,i;if(void 0===n?o=S.insert(e,t):C.is(n)?(i=n,o=w.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),o=w.insert(e,t,i)),this.edits.push(o),void 0!==i)return i},e.prototype.replace=function(e,t,n){var o,i;if(void 0===n?o=S.replace(e,t):C.is(n)?(i=n,o=w.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),o=w.replace(e,t,i)),this.edits.push(o),void 0!==i)return i},e.prototype.delete=function(e,t){var n,o;if(void 0===t?n=S.del(e):C.is(t)?(o=t,n=w.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(t),n=w.del(e,o)),this.edits.push(n),void 0!==o)return o},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Se=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(C.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),_e=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Se(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(T.is(e)){var n=new De(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var o=new De(e.changes[n]);t._textEditChanges[n]=o}))):this._workspaceEdit={}}return Object.defineProperty(e.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}),e.prototype.getTextEditChange=function(e){if(N.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};if(!(o=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),o=new De(i,this._changeAnnotations),this._textEditChanges[t.uri]=o}return o}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var o;if(!(o=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,o=new De(i),this._textEditChanges[e]=o}return o},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Se,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,i,r;if(_.is(t)||C.is(t)?o=t:n=t,void 0===o?i=k.create(e,n):(r=C.is(o)?o:this._changeAnnotations.manage(o),i=k.create(e,n,r)),this._workspaceEdit.documentChanges.push(i),void 0!==r)return r},e.prototype.renameFile=function(e,t,n,o){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,r,s;if(_.is(n)||C.is(n)?i=n:o=n,void 0===i?r=P.create(e,t,o):(s=C.is(i)?i:this._changeAnnotations.manage(i),r=P.create(e,t,o,s)),this._workspaceEdit.documentChanges.push(r),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,i,r;if(_.is(t)||C.is(t)?o=t:n=t,void 0===o?i=x.create(e,n):(r=C.is(o)?o:this._changeAnnotations.manage(o),i=x.create(e,n,r)),this._workspaceEdit.documentChanges.push(i),void 0!==r)return r},e}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Te.defined(t)&&Te.string(t.uri)}}(E||(E={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Te.defined(t)&&Te.string(t.uri)&&Te.integer(t.version)}}(M||(M={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Te.defined(t)&&Te.string(t.uri)&&(null===t.version||Te.integer(t.version))}}(N||(N={})),function(e){e.create=function(e,t,n,o){return{uri:e,languageId:t,version:n,text:o}},e.is=function(e){var t=e;return Te.defined(t)&&Te.string(t.uri)&&Te.string(t.languageId)&&Te.integer(t.version)&&Te.string(t.text)}}(O||(O={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(L||(L={})),function(e){e.is=function(e){var t=e;return Te.objectLiteral(e)&&L.is(t.kind)&&Te.string(t.value)}}(A||(A={})),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}(j||(j={})),function(e){e.PlainText=1,e.Snippet=2}(F||(F={})),function(e){e.Deprecated=1}(I||(I={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Te.string(t.newText)&&c.is(t.insert)&&c.is(t.replace)}}(W||(W={})),function(e){e.asIs=1,e.adjustIndentation=2}(H||(H={})),function(e){e.is=function(e){var t=e;return t&&(Te.string(t.detail)||void 0===t.detail)&&(Te.string(t.description)||void 0===t.description)}}($||($={})),function(e){e.create=function(e){return{label:e}}}(U||(U={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(z||(z={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Te.string(t)||Te.objectLiteral(t)&&Te.string(t.language)&&Te.string(t.value)}}(V||(V={})),function(e){e.is=function(e){var t=e;return!!t&&Te.objectLiteral(t)&&(A.is(t.contents)||V.is(t.contents)||Te.typedArray(t.contents,V.is))&&(void 0===e.range||c.is(e.range))}}(K||(K={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(B||(B={})),function(e){e.create=function(e,t){for(var n=[],o=2;o=0;s--){var a=i[s],c=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=r))throw new Error("Overlapping edit");o=o.substring(0,c)+a.newText+o.substring(u,o.length),r=c}return o}}(Ce||(Ce={}));var Te,ke=function(){function e(e,t,n,o){this._uri=e,this._languageId=t,this._version=n,this._content=o,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,o=0;o0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,o=t.length;if(0===o)return a.create(0,e);for(;ne?o=i:n=i+1}var r=n-1;return a.create(r,e-t[r])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],o=e.line+1{Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const o=n(273);t.CallHierarchyFeature=e=>class extends e{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(o.CallHierarchyPrepareRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0))),onIncomingCalls:e=>{const t=o.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onOutgoingCalls:e=>{const t=o.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},2507:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationFeature=void 0;const o=n(273),i=n(289);t.ConfigurationFeature=e=>class extends e{getConfiguration(e){return e?i.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let t={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(o.ConfigurationRequest.type,t).then((t=>Array.isArray(t)?Array.isArray(e)?t:t[0]:Array.isArray(e)?[]:null))}}},6634:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticFeature=void 0;const o=n(273);t.DiagnosticFeature=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(o.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(o.DocumentDiagnosticRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(o.DocumentDiagnosticRequest.partialResult,t)))),onWorkspace:e=>this.connection.onRequest(o.WorkspaceDiagnosticRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(o.WorkspaceDiagnosticRequest.partialResult,t))))}}}},828:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileOperationsFeature=void 0;const o=n(273);t.FileOperationsFeature=e=>class extends e{onDidCreateFiles(e){return this.connection.onNotification(o.DidCreateFilesNotification.type,(t=>{e(t)}))}onDidRenameFiles(e){return this.connection.onNotification(o.DidRenameFilesNotification.type,(t=>{e(t)}))}onDidDeleteFiles(e){return this.connection.onNotification(o.DidDeleteFilesNotification.type,(t=>{e(t)}))}onWillCreateFiles(e){return this.connection.onRequest(o.WillCreateFilesRequest.type,((t,n)=>e(t,n)))}onWillRenameFiles(e){return this.connection.onRequest(o.WillRenameFilesRequest.type,((t,n)=>e(t,n)))}onWillDeleteFiles(e){return this.connection.onRequest(o.WillDeleteFilesRequest.type,((t,n)=>e(t,n)))}}},6507:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintFeature=void 0;const o=n(273);t.InlayHintFeature=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(o.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(o.InlayHintRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t)))),resolve:e=>this.connection.onRequest(o.InlayHintResolveRequest.type,((t,n)=>e(t,n)))}}}},8970:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueFeature=void 0;const o=n(273);t.InlineValueFeature=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(o.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(o.InlineValueRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t))))}}}},2776:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeFeature=void 0;const o=n(273);t.LinkedEditingRangeFeature=e=>class extends e{onLinkedEditingRange(e){return this.connection.onRequest(o.LinkedEditingRangeRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0)))}}},8120:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerFeature=void 0;const o=n(273);t.MonikerFeature=e=>class extends e{get moniker(){return{on:e=>{const t=o.MonikerRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},9748:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookDocuments=t.NotebookSyncFeature=void 0;const o=n(273),i=n(8382);t.NotebookSyncFeature=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(o.DidOpenNotebookDocumentNotification.type,(t=>{e(t)})),onDidChangeNotebookDocument:e=>this.connection.onNotification(o.DidChangeNotebookDocumentNotification.type,(t=>{e(t)})),onDidSaveNotebookDocument:e=>this.connection.onNotification(o.DidSaveNotebookDocumentNotification.type,(t=>{e(t)})),onDidCloseNotebookDocument:e=>this.connection.onNotification(o.DidCloseNotebookDocumentNotification.type,(t=>{e(t)}))}}};class r{onDidOpenTextDocument(e){return this.openHandler=e,o.Disposable.create((()=>{this.openHandler=void 0}))}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,o.Disposable.create((()=>{this.changeHandler=e}))}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,o.Disposable.create((()=>{this.closeHandler=void 0}))}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return r.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return r.NULL_DISPOSE}onDidSaveTextDocument(){return r.NULL_DISPOSE}}r.NULL_DISPOSE=Object.freeze({dispose:()=>{}}),t.NotebookDocuments=class{constructor(e){e instanceof i.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new i.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new o.Emitter,this._onDidChange=new o.Emitter,this._onDidSave=new o.Emitter,this._onDidClose=new o.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){const t=this.notebookCellMap.get(e);return t&&t[0]}findNotebookDocumentForCell(e){const t="string"==typeof e?e:e.document,n=this.notebookCellMap.get(t);return n&&n[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){const t=new r,n=[];return n.push(this.cellTextDocuments.listen(t)),n.push(e.notebooks.synchronization.onDidOpenNotebookDocument((e=>{this.notebookDocuments.set(e.notebookDocument.uri,e.notebookDocument);for(const n of e.cellTextDocuments)t.openTextDocument({textDocument:n});this.updateCellMap(e.notebookDocument),this._onDidOpen.fire(e.notebookDocument)}))),n.push(e.notebooks.synchronization.onDidChangeNotebookDocument((e=>{const n=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0===n)return;n.version=e.notebookDocument.version;const o=n.metadata;let i=!1;const r=e.change;void 0!==r.metadata&&(i=!0,n.metadata=r.metadata);const s=[],a=[],c=[],u=[];if(void 0!==r.cells){const e=r.cells;if(void 0!==e.structure){const o=e.structure.array;if(n.cells.splice(o.start,o.deleteCount,...void 0!==o.cells?o.cells:[]),void 0!==e.structure.didOpen)for(const n of e.structure.didOpen)t.openTextDocument({textDocument:n}),s.push(n.uri);if(e.structure.didClose)for(const n of e.structure.didClose)t.closeTextDocument({textDocument:n}),a.push(n.uri)}if(void 0!==e.data){const t=new Map(e.data.map((e=>[e.document,e])));for(let e=0;e<=n.cells.length;e++){const o=t.get(n.cells[e].document);if(void 0!==o){const i=n.cells.splice(e,1,o);if(c.push({old:i[0],new:o}),t.delete(o.document),0===t.size)break}}}if(void 0!==e.textContent)for(const n of e.textContent)t.changeTextDocument({textDocument:n.document,contentChanges:n.changes}),u.push(n.document.uri)}this.updateCellMap(n);const l={notebookDocument:n};i&&(l.metadata={old:o,new:n.metadata});const d=[];for(const e of s)d.push(this.getNotebookCell(e));const h=[];for(const e of a)h.push(this.getNotebookCell(e));const f=[];for(const e of u)f.push(this.getNotebookCell(e));(d.length>0||h.length>0||c.length>0||f.length>0)&&(l.cells={added:d,removed:h,changed:{data:c,textContent:f}}),void 0===l.metadata&&void 0===l.cells||this._onDidChange.fire(l)}))),n.push(e.notebooks.synchronization.onDidSaveNotebookDocument((e=>{const t=this.notebookDocuments.get(e.notebookDocument.uri);void 0!==t&&this._onDidSave.fire(t)}))),n.push(e.notebooks.synchronization.onDidCloseNotebookDocument((e=>{const n=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0!==n){this._onDidClose.fire(n);for(const n of e.cellTextDocuments)t.closeTextDocument({textDocument:n});this.notebookDocuments.delete(e.notebookDocument.uri);for(const e of n.cells)this.notebookCellMap.delete(e.document)}}))),o.Disposable.create((()=>{n.forEach((e=>e.dispose()))}))}updateCellMap(e){for(const t of e.cells)this.notebookCellMap.set(t.document,[t,e])}}},2731:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.attachPartialResult=t.ProgressFeature=t.attachWorkDone=void 0;const o=n(273),i=n(7560);class r{constructor(e,t){this._connection=e,this._token=t,r.Instances.set(this._token,this)}begin(e,t,n,i){let r={kind:"begin",title:e,percentage:t,message:n,cancellable:i};this._connection.sendProgress(o.WorkDoneProgress.type,this._token,r)}report(e,t){let n={kind:"report"};"number"==typeof e?(n.percentage=e,void 0!==t&&(n.message=t)):n.message=e,this._connection.sendProgress(o.WorkDoneProgress.type,this._token,n)}done(){r.Instances.delete(this._token),this._connection.sendProgress(o.WorkDoneProgress.type,this._token,{kind:"end"})}}r.Instances=new Map;class s extends r{constructor(e,t){super(e,t),this._source=new o.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}}class a{constructor(){}begin(){}report(){}done(){}}class c extends a{constructor(){super(),this._source=new o.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}}var u;t.attachWorkDone=function(e,t){if(void 0===t||void 0===t.workDoneToken)return new a;const n=t.workDoneToken;return delete t.workDoneToken,new r(e,n)},t.ProgressFeature=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),!0===e?.window?.workDoneProgress&&(this._progressSupported=!0,this.connection.onNotification(o.WorkDoneProgressCancelNotification.type,(e=>{let t=r.Instances.get(e.token);(t instanceof s||t instanceof c)&&t.cancel()})))}attachWorkDoneProgress(e){return void 0===e?new a:new r(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){const e=(0,i.generateUuid)();return this.connection.sendRequest(o.WorkDoneProgressCreateRequest.type,{token:e}).then((()=>new s(this.connection,e)))}return Promise.resolve(new c)}},function(e){e.type=new o.ProgressType}(u||(u={}));class l{constructor(e,t){this._connection=e,this._token=t}report(e){this._connection.sendProgress(u.type,this._token,e)}}t.attachPartialResult=function(e,t){if(void 0===t||void 0===t.partialResultToken)return;const n=t.partialResultToken;return delete t.partialResultToken,new l(e,n)}},9817:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensBuilder=t.SemanticTokensDiff=t.SemanticTokensFeature=void 0;const o=n(273);t.SemanticTokensFeature=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(o.SemanticTokensRefreshRequest.type),on:e=>{const t=o.SemanticTokensRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onDelta:e=>{const t=o.SemanticTokensDeltaRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onRange:e=>{const t=o.SemanticTokensRangeRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}};class i{constructor(e,t){this.originalSequence=e,this.modifiedSequence=t}computeDiff(){const e=this.originalSequence.length,t=this.modifiedSequence.length;let n=0;for(;n=n&&i>=n&&this.originalSequence[o]===this.modifiedSequence[i];)o--,i--;(o0&&(r-=this._prevLine,0===r&&(s-=this._prevChar)),this._data[this._dataLen++]=r,this._data[this._dataLen++]=s,this._data[this._dataLen++]=n,this._data[this._dataLen++]=o,this._data[this._dataLen++]=i,this._prevLine=e,this._prevChar=t}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return void 0!==this._prevData}buildEdits(){return void 0!==this._prevData?{resultId:this.id,edits:new i(this._prevData,this._data).computeDiff()}:this.build()}}},9891:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createConnection=t.combineFeatures=t.combineNotebooksFeatures=t.combineLanguagesFeatures=t.combineWorkspaceFeatures=t.combineWindowFeatures=t.combineClientFeatures=t.combineTracerFeatures=t.combineTelemetryFeatures=t.combineConsoleFeatures=t._NotebooksImpl=t._LanguagesImpl=t.BulkUnregistration=t.BulkRegistration=t.ErrorMessageTracker=void 0;const o=n(273),i=n(289),r=n(7560),s=n(2731),a=n(2507),c=n(1836),u=n(7985),l=n(9817),d=n(5421),h=n(828),f=n(2776),g=n(4606),p=n(8970),m=n(6507),y=n(6634),v=n(9748),b=n(8120);function R(e){if(null!==e)return e}t.ErrorMessageTracker=class{constructor(){this._messages=Object.create(null)}add(e){let t=this._messages[e];t||(t=0),t++,this._messages[e]=t}sendErrors(e){Object.keys(this._messages).forEach((t=>{e.window.showErrorMessage(t)}))}};class D{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(o.MessageType.Error,e)}warn(e){this.send(o.MessageType.Warning,e)}info(e){this.send(o.MessageType.Info,e)}log(e){this.send(o.MessageType.Log,e)}send(e,t){this._rawConnection&&this._rawConnection.sendNotification(o.LogMessageNotification.type,{type:e,message:t}).catch((()=>{(0,o.RAL)().console.error("Sending log message failed")}))}}const S=(0,d.ShowDocumentFeature)((0,s.ProgressFeature)(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...t){let n={type:o.MessageType.Error,message:e,actions:t};return this.connection.sendRequest(o.ShowMessageRequest.type,n).then(R)}showWarningMessage(e,...t){let n={type:o.MessageType.Warning,message:e,actions:t};return this.connection.sendRequest(o.ShowMessageRequest.type,n).then(R)}showInformationMessage(e,...t){let n={type:o.MessageType.Info,message:e,actions:t};return this.connection.sendRequest(o.ShowMessageRequest.type,n).then(R)}}));(t.BulkRegistration||(t.BulkRegistration={})).create=function(){return new _};class _{constructor(){this._registrations=[],this._registered=new Set}add(e,t){const n=i.string(e)?e:e.method;if(this._registered.has(n))throw new Error(`${n} is already added to this registration`);const o=r.generateUuid();this._registrations.push({id:o,method:n,registerOptions:t||{}}),this._registered.add(n)}asRegistrationParams(){return{registrations:this._registrations}}}(t.BulkUnregistration||(t.BulkUnregistration={})).create=function(){return new C(void 0,[])};class C{constructor(e,t){this._connection=e,this._unregistrations=new Map,t.forEach((e=>{this._unregistrations.set(e.method,e)}))}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let t of this._unregistrations.values())e.push(t);let t={unregisterations:e};this._connection.sendRequest(o.UnregistrationRequest.type,t).catch((()=>{this._connection.console.info("Bulk unregistration failed.")}))}disposeSingle(e){const t=i.string(e)?e:e.method,n=this._unregistrations.get(t);if(!n)return!1;let r={unregisterations:[n]};return this._connection.sendRequest(o.UnregistrationRequest.type,r).then((()=>{this._unregistrations.delete(t)}),(e=>{this._connection.console.info(`Un-registering request handler for ${n.id} failed.`)})),!0}}class w{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,t,n){return e instanceof _?this.registerMany(e):e instanceof C?this.registerSingle1(e,t,n):this.registerSingle2(e,t)}registerSingle1(e,t,n){const s=i.string(t)?t:t.method,a=r.generateUuid();let c={registrations:[{id:a,method:s,registerOptions:n||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(o.RegistrationRequest.type,c).then((t=>(e.add({id:a,method:s}),e)),(e=>(this.connection.console.info(`Registering request handler for ${s} failed.`),Promise.reject(e))))}registerSingle2(e,t){const n=i.string(e)?e:e.method,s=r.generateUuid();let a={registrations:[{id:s,method:n,registerOptions:t||{}}]};return this.connection.sendRequest(o.RegistrationRequest.type,a).then((e=>o.Disposable.create((()=>{this.unregisterSingle(s,n).catch((()=>{this.connection.console.info(`Un-registering capability with id ${s} failed.`)}))}))),(e=>(this.connection.console.info(`Registering request handler for ${n} failed.`),Promise.reject(e))))}unregisterSingle(e,t){let n={unregisterations:[{id:e,method:t}]};return this.connection.sendRequest(o.UnregistrationRequest.type,n).catch((()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)}))}registerMany(e){let t=e.asRegistrationParams();return this.connection.sendRequest(o.RegistrationRequest.type,t).then((()=>new C(this._connection,t.registrations.map((e=>({id:e.id,method:e.method}))))),(e=>(this.connection.console.info("Bulk registration failed."),Promise.reject(e))))}}const T=(0,h.FileOperationsFeature)((0,c.WorkspaceFoldersFeature)((0,a.ConfigurationFeature)(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){let t=(n=e)&&n.edit?e:{edit:e};var n;return this.connection.sendRequest(o.ApplyWorkspaceEditRequest.type,t)}})));class k{constructor(){this._trace=o.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,t){this._trace!==o.Trace.Off&&this.connection.sendNotification(o.LogTraceNotification.type,{message:e,verbose:this._trace===o.Trace.Verbose?t:void 0}).catch((()=>{}))}}class P{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(o.TelemetryEventNotification.type,e).catch((()=>{this.connection.console.log("Sending TelemetryEventNotification failed")}))}}class x{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,s.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,s.attachPartialResult)(this.connection,t)}}t._LanguagesImpl=x;const q=(0,b.MonikerFeature)((0,y.DiagnosticFeature)((0,m.InlayHintFeature)((0,p.InlineValueFeature)((0,g.TypeHierarchyFeature)((0,f.LinkedEditingRangeFeature)((0,l.SemanticTokensFeature)((0,u.CallHierarchyFeature)(x))))))));class E{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,s.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,s.attachPartialResult)(this.connection,t)}}t._NotebooksImpl=E;const M=(0,v.NotebookSyncFeature)(E);function N(e,t){return function(n){return t(e(n))}}function O(e,t){return function(n){return t(e(n))}}function L(e,t){return function(n){return t(e(n))}}function A(e,t){return function(n){return t(e(n))}}function j(e,t){return function(n){return t(e(n))}}function F(e,t){return function(n){return t(e(n))}}function I(e,t){return function(n){return t(e(n))}}function W(e,t){return function(n){return t(e(n))}}t.combineConsoleFeatures=N,t.combineTelemetryFeatures=O,t.combineTracerFeatures=L,t.combineClientFeatures=A,t.combineWindowFeatures=j,t.combineWorkspaceFeatures=F,t.combineLanguagesFeatures=I,t.combineNotebooksFeatures=W,t.combineFeatures=function(e,t){function n(e,t,n){return e&&t?n(e,t):e||t}return{__brand:"features",console:n(e.console,t.console,N),tracer:n(e.tracer,t.tracer,L),telemetry:n(e.telemetry,t.telemetry,O),client:n(e.client,t.client,A),window:n(e.window,t.window,j),workspace:n(e.workspace,t.workspace,F),languages:n(e.languages,t.languages,I),notebooks:n(e.notebooks,t.notebooks,W)}},t.createConnection=function(e,t,n){const r=n&&n.console?new(n.console(D)):new D,a=e(r);r.rawAttach(a);const c=n&&n.tracer?new(n.tracer(k)):new k,u=n&&n.telemetry?new(n.telemetry(P)):new P,l=n&&n.client?new(n.client(w)):new w,d=n&&n.window?new(n.window(S)):new S,h=n&&n.workspace?new(n.workspace(T)):new T,f=n&&n.languages?new(n.languages(q)):new q,g=n&&n.notebooks?new(n.notebooks(M)):new M,p=[r,c,u,l,d,h,f,g];function m(e){return e instanceof Promise?e:i.thenable(e)?new Promise(((t,n)=>{e.then((e=>t(e)),(e=>n(e)))})):Promise.resolve(e)}let y,v,b,R={listen:()=>a.listen(),sendRequest:(e,...t)=>a.sendRequest(i.string(e)?e:e.method,...t),onRequest:(e,t)=>a.onRequest(e,t),sendNotification:(e,t)=>{const n=i.string(e)?e:e.method;return 1===arguments.length?a.sendNotification(n):a.sendNotification(n,t)},onNotification:(e,t)=>a.onNotification(e,t),onProgress:a.onProgress,sendProgress:a.sendProgress,onInitialize:e=>(v=e,{dispose:()=>{v=void 0}}),onInitialized:e=>a.onNotification(o.InitializedNotification.type,e),onShutdown:e=>(y=e,{dispose:()=>{y=void 0}}),onExit:e=>(b=e,{dispose:()=>{b=void 0}}),get console(){return r},get telemetry(){return u},get tracer(){return c},get client(){return l},get window(){return d},get workspace(){return h},get languages(){return f},get notebooks(){return g},onDidChangeConfiguration:e=>a.onNotification(o.DidChangeConfigurationNotification.type,e),onDidChangeWatchedFiles:e=>a.onNotification(o.DidChangeWatchedFilesNotification.type,e),__textDocumentSync:void 0,onDidOpenTextDocument:e=>a.onNotification(o.DidOpenTextDocumentNotification.type,e),onDidChangeTextDocument:e=>a.onNotification(o.DidChangeTextDocumentNotification.type,e),onDidCloseTextDocument:e=>a.onNotification(o.DidCloseTextDocumentNotification.type,e),onWillSaveTextDocument:e=>a.onNotification(o.WillSaveTextDocumentNotification.type,e),onWillSaveTextDocumentWaitUntil:e=>a.onRequest(o.WillSaveTextDocumentWaitUntilRequest.type,e),onDidSaveTextDocument:e=>a.onNotification(o.DidSaveTextDocumentNotification.type,e),sendDiagnostics:e=>a.sendNotification(o.PublishDiagnosticsNotification.type,e),onHover:e=>a.onRequest(o.HoverRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),onCompletion:e=>a.onRequest(o.CompletionRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onCompletionResolve:e=>a.onRequest(o.CompletionResolveRequest.type,e),onSignatureHelp:e=>a.onRequest(o.SignatureHelpRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),onDeclaration:e=>a.onRequest(o.DeclarationRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onDefinition:e=>a.onRequest(o.DefinitionRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onTypeDefinition:e=>a.onRequest(o.TypeDefinitionRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onImplementation:e=>a.onRequest(o.ImplementationRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onReferences:e=>a.onRequest(o.ReferencesRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onDocumentHighlight:e=>a.onRequest(o.DocumentHighlightRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onDocumentSymbol:e=>a.onRequest(o.DocumentSymbolRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onWorkspaceSymbol:e=>a.onRequest(o.WorkspaceSymbolRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onWorkspaceSymbolResolve:e=>a.onRequest(o.WorkspaceSymbolResolveRequest.type,e),onCodeAction:e=>a.onRequest(o.CodeActionRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onCodeActionResolve:e=>a.onRequest(o.CodeActionResolveRequest.type,((t,n)=>e(t,n))),onCodeLens:e=>a.onRequest(o.CodeLensRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onCodeLensResolve:e=>a.onRequest(o.CodeLensResolveRequest.type,((t,n)=>e(t,n))),onDocumentFormatting:e=>a.onRequest(o.DocumentFormattingRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),onDocumentRangeFormatting:e=>a.onRequest(o.DocumentRangeFormattingRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),onDocumentOnTypeFormatting:e=>a.onRequest(o.DocumentOnTypeFormattingRequest.type,((t,n)=>e(t,n))),onRenameRequest:e=>a.onRequest(o.RenameRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),onPrepareRename:e=>a.onRequest(o.PrepareRenameRequest.type,((t,n)=>e(t,n))),onDocumentLinks:e=>a.onRequest(o.DocumentLinkRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onDocumentLinkResolve:e=>a.onRequest(o.DocumentLinkResolveRequest.type,((t,n)=>e(t,n))),onDocumentColor:e=>a.onRequest(o.DocumentColorRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onColorPresentation:e=>a.onRequest(o.ColorPresentationRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onFoldingRanges:e=>a.onRequest(o.FoldingRangeRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onSelectionRanges:e=>a.onRequest(o.SelectionRangeRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),(0,s.attachPartialResult)(a,t)))),onExecuteCommand:e=>a.onRequest(o.ExecuteCommandRequest.type,((t,n)=>e(t,n,(0,s.attachWorkDone)(a,t),void 0))),dispose:()=>a.dispose()};for(let e of p)e.attach(R);return a.onRequest(o.InitializeRequest.type,(e=>{t.initialize(e),i.string(e.trace)&&(c.trace=o.Trace.fromString(e.trace));for(let t of p)t.initialize(e.capabilities);if(v)return m(v(e,(new o.CancellationTokenSource).token,(0,s.attachWorkDone)(a,e),void 0)).then((e=>{if(e instanceof o.ResponseError)return e;let t=e;t||(t={capabilities:{}});let n=t.capabilities;n||(n={},t.capabilities=n),void 0===n.textDocumentSync||null===n.textDocumentSync?n.textDocumentSync=i.number(R.__textDocumentSync)?R.__textDocumentSync:o.TextDocumentSyncKind.None:i.number(n.textDocumentSync)||i.number(n.textDocumentSync.change)||(n.textDocumentSync.change=i.number(R.__textDocumentSync)?R.__textDocumentSync:o.TextDocumentSyncKind.None);for(let e of p)e.fillServerCapabilities(n);return t}));{let e={capabilities:{textDocumentSync:o.TextDocumentSyncKind.None}};for(let t of p)t.fillServerCapabilities(e.capabilities);return e}})),a.onRequest(o.ShutdownRequest.type,(()=>(t.shutdownReceived=!0,y?y((new o.CancellationTokenSource).token):void 0))),a.onNotification(o.ExitNotification.type,(()=>{try{b&&b()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}})),a.onNotification(o.SetTraceNotification.type,(e=>{c.trace=o.Trace.fromString(e.value)})),R}},5421:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentFeature=void 0;const o=n(273);t.ShowDocumentFeature=e=>class extends e{showDocument(e){return this.connection.sendRequest(o.ShowDocumentRequest.type,e)}}},8382:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocuments=void 0;const o=n(273);t.TextDocuments=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new o.Emitter,this._onDidOpen=new o.Emitter,this._onDidClose=new o.Emitter,this._onDidSave=new o.Emitter,this._onWillSave=new o.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=o.TextDocumentSyncKind.Incremental;const t=[];return t.push(e.onDidOpenTextDocument((e=>{const t=e.textDocument,n=this._configuration.create(t.uri,t.languageId,t.version,t.text);this._syncedDocuments.set(t.uri,n);const o=Object.freeze({document:n});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)}))),t.push(e.onDidChangeTextDocument((e=>{const t=e.textDocument,n=e.contentChanges;if(0===n.length)return;const{version:o}=t;if(null==o)throw new Error(`Received document change event for ${t.uri} without valid version identifier`);let i=this._syncedDocuments.get(t.uri);void 0!==i&&(i=this._configuration.update(i,n,o),this._syncedDocuments.set(t.uri,i),this._onDidChangeContent.fire(Object.freeze({document:i})))}))),t.push(e.onDidCloseTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&(this._syncedDocuments.delete(e.textDocument.uri),this._onDidClose.fire(Object.freeze({document:t})))}))),t.push(e.onWillSaveTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onWillSave.fire(Object.freeze({document:t,reason:e.reason}))}))),t.push(e.onWillSaveTextDocumentWaitUntil(((e,t)=>{let n=this._syncedDocuments.get(e.textDocument.uri);return void 0!==n&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:n,reason:e.reason}),t):[]}))),t.push(e.onDidSaveTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onDidSave.fire(Object.freeze({document:t}))}))),o.Disposable.create((()=>{t.forEach((e=>e.dispose()))}))}}},4606:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchyFeature=void 0;const o=n(273);t.TypeHierarchyFeature=e=>class extends e{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(o.TypeHierarchyPrepareRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0))),onSupertypes:e=>{const t=o.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onSubtypes:e=>{const t=o.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},289:(e,t)=>{function n(e){return"string"==typeof e||e instanceof String}function o(e){return"function"==typeof e}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.thenable=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=o,t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=function(e){return e&&o(e.then)}},7560:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.generateUuid=t.parse=t.isUUID=t.v4=t.empty=void 0;class n{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class o extends n{constructor(){super([o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),"-",o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),"-","4",o._randomHex(),o._randomHex(),o._randomHex(),"-",o._oneOf(o._timeHighBits),o._randomHex(),o._randomHex(),o._randomHex(),"-",o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex(),o._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return o._oneOf(o._chars)}}function i(){return new o}o._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"],o._timeHighBits=["8","9","a","b"],t.empty=new n("00000000-0000-0000-0000-000000000000"),t.v4=i;const r=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return r.test(e)}t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new n(e)},t.generateUuid=function(){return i().asHex()}},1836:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=void 0;const o=n(273);t.WorkspaceFoldersFeature=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let t=e.workspace;t&&t.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new o.Emitter,this.connection.onNotification(o.DidChangeWorkspaceFoldersNotification.type,(e=>{this._onDidChangeWorkspaceFolders.fire(e.event)})))}fillServerCapabilities(e){super.fillServerCapabilities(e);const t=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=!0===t||"string"==typeof t}getWorkspaceFolders(){return this.connection.sendRequest(o.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._notificationIsAutoRegistered||this._unregistration||(this._unregistration=this.connection.client.register(o.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}}},7613:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveModulePath=t.FileSystem=t.resolveGlobalYarnPath=t.resolveGlobalNodePath=t.resolve=t.uriToFilePath=void 0;const o=n(7310),i=n(1017),r=n(7147),s=n(2081);function a(){return"win32"===process.platform}function c(e,t,n,o){const a=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise(((c,u)=>{let l=process.env,d=Object.create(null);Object.keys(l).forEach((e=>d[e]=l[e])),t&&r.existsSync(t)&&(d.NODE_PATH?d.NODE_PATH=t+i.delimiter+d.NODE_PATH:d.NODE_PATH=t,o&&o(`NODE_PATH value is: ${d.NODE_PATH}`)),d.ELECTRON_RUN_AS_NODE="1";try{let t=(0,s.fork)("",[],{cwd:n,env:d,execArgv:["-e",a]});if(void 0===t.pid)return void u(new Error(`Starting process to resolve node module ${e} failed`));t.on("error",(e=>{u(e)})),t.on("message",(n=>{"r"===n.c&&(t.send({c:"e"}),n.s?c(n.r):u(new Error(`Failed to resolve module: ${e}`)))}));let o={c:"rs",a:e};t.send(o)}catch(e){u(e)}}))}function u(e){let t="npm";const n=Object.create(null);Object.keys(process.env).forEach((e=>n[e]=process.env[e])),n.NO_UPDATE_NOTIFIER="true";const o={encoding:"utf8",env:n};a()&&(t="npm.cmd",o.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let n=(0,s.spawnSync)(t,["config","get","prefix"],o).stdout;if(!n)return void(e&&e("'npm config get prefix' didn't return a value."));let c=n.trim();return e&&e(`'npm config get prefix' value is: ${c}`),c.length>0?a()?i.join(c,"node_modules"):i.join(c,"lib","node_modules"):void 0}catch(e){return}finally{process.removeListener("SIGPIPE",r)}}var l;t.uriToFilePath=function(e){let t=o.parse(e);if("file:"!==t.protocol||!t.path)return;let n=t.path.split("/");for(var r=0,s=n.length;r1){let e=n[0],t=n[1];0===e.length&&t.length>1&&":"===t[1]&&n.shift()}return i.normalize(n.join("/"))},t.resolve=c,t.resolveGlobalNodePath=u,t.resolveGlobalYarnPath=function(e){let t="yarn",n={encoding:"utf8"};a()&&(t="yarn.cmd",n.shell=!0);let o=()=>{};try{process.on("SIGPIPE",o);let r=(0,s.spawnSync)(t,["global","dir","--json"],n),a=r.stdout;if(!a)return void(e&&(e("'yarn global dir' didn't return a value."),r.stderr&&e(r.stderr)));let c=a.trim().split(/\r?\n/);for(let e of c)try{let t=JSON.parse(e);if("log"===t.type)return i.join(t.data,"node_modules")}catch(e){}return}catch(e){return}finally{process.removeListener("SIGPIPE",o)}},function(e){let t;function n(){return void 0!==t||(t=!("win32"===process.platform||r.existsSync(__filename.toUpperCase())&&r.existsSync(__filename.toLowerCase()))),t}e.isCaseSensitive=n,e.isParent=function(e,t){return n()?0===i.normalize(t).indexOf(i.normalize(e)):0===i.normalize(t).toLowerCase().indexOf(i.normalize(e).toLowerCase())}}(l=t.FileSystem||(t.FileSystem={})),t.resolveModulePath=function(e,t,n,o){return n?(i.isAbsolute(n)||(n=i.join(e,n)),c(t,n,n,o).then((e=>l.isParent(n,e)?e:Promise.reject(new Error(`Failed to load ${t} from node path location.`)))).then(void 0,(n=>c(t,u(o),e,o)))):c(t,u(o),e,o)}},5809:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createConnection=t.Files=void 0;const r=n(289),s=n(9891),a=n(7613),c=n(6560);var u;i(n(6560),t),i(n(6265),t),(u=t.Files||(t.Files={})).uriToFilePath=a.uriToFilePath,u.resolveGlobalNodePath=a.resolveGlobalNodePath,u.resolveGlobalYarnPath=a.resolveGlobalYarnPath,u.resolve=a.resolve,u.resolveModulePath=a.resolveModulePath;let l,d=!1;!function(){const e="--clientProcessId";function t(e){try{let t=parseInt(e);isNaN(t)||(l=setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(d?0:1)}}),3e3))}catch(e){}}for(let n=2;n{const t=e.processId;r.number(t)&&void 0===l&&setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(d?0:1)}}),3e3)},get shutdownReceived(){return d},set shutdownReceived(e){d=e},exit:e=>{process.exit(e)}};t.createConnection=function(e,t,n,o){let i,a,u,l;return void 0!==e&&"features"===e.__brand&&(i=e,e=t,t=n,n=o),c.ConnectionStrategy.is(e)||c.ConnectionOptions.is(e)?l=e:(a=e,u=t,l=n),function(e,t,n,o){if(!e&&!t&&process.argv.length>2){let n,o,r=process.argv.slice(2);for(let s=0;s{process.exit(d?0:1)})),t.on("close",(()=>{process.exit(d?0:1)}))}return(0,s.createConnection)((o=>(0,c.createProtocolConnection)(e,t,o,n)),h,o)}(a,u,l,i)}},8212:(e,t,n)=>{e.exports=n(5809)},7373:(e,t,n)=>{var o;n.r(t),n.d(t,{URI:()=>i,Utils:()=>r}),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,o="",i=0,r=-1,s=0,a=0;a<=e.length;++a){if(a2){var c=o.lastIndexOf("/");if(c!==o.length-1){-1===c?(o="",i=0):i=(o=o.slice(0,c)).length-1-o.lastIndexOf("/"),r=a,s=0;continue}}else if(2===o.length||1===o.length){o="",i=0,r=a,s=0;continue}t&&(o.length>0?o+="/..":o="..",i=2)}else o.length>0?o+="/"+e.slice(r+1,a):o=e.slice(r+1,a),i=a-r-1;r=a,s=0}else 46===n&&-1!==s?++s:s=-1}return o}var o={resolve:function(){for(var e,o="",i=!1,r=arguments.length-1;r>=-1&&!i;r--){var s;r>=0?s=arguments[r]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(o=s+"/"+o,i=47===s.charCodeAt(0))}return o=n(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var o=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!o)).length||o||(e="."),e.length>0&&i&&(e+="/"),o?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":o.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=o.resolve(e))===(n=o.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else s>u&&(47===e.charCodeAt(i+d)?l=d:0===d&&(l=0));break}var h=e.charCodeAt(i+d);if(h!==n.charCodeAt(a+d))break;47===h&&(l=d)}var f="";for(d=i+l+1;d<=r;++d)d!==r&&47!==e.charCodeAt(d)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),o=47===n,i=-1,r=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!r){i=s;break}}else r=!1;return-1===i?o?"/":".":o&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var o,i=0,r=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(o=e.length-1;o>=0;--o){var u=e.charCodeAt(o);if(47===u){if(!s){i=o+1;break}}else-1===c&&(s=!1,c=o+1),a>=0&&(u===n.charCodeAt(a)?-1==--a&&(r=o):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(o=e.length-1;o>=0;--o)if(47===e.charCodeAt(o)){if(!s){i=o+1;break}}else-1===r&&(s=!1,r=o+1);return-1===r?"":e.slice(i,r)},extname:function(e){t(e);for(var n=-1,o=0,i=-1,r=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!r){o=a+1;break}}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===o+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,o=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+o:n+"/"+o:o}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var o,i=e.charCodeAt(0),r=47===i;r?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,u=!0,l=e.length-1,d=0;l>=o;--l)if(47!==(i=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===i?-1===s?s=l:1!==d&&(d=1):-1!==s&&(d=-1);else if(!u){a=l+1;break}return-1===s||-1===c||0===d||1===d&&s===c-1&&s===a+1?-1!==c&&(n.base=n.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(n.name=e.slice(1,s),n.base=e.slice(1,c)):(n.name=e.slice(a,s),n.base=e.slice(a,c)),n.ext=e.slice(s,c)),a>0?n.dir=e.slice(0,a-1):r&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,e.exports=o}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{var e;if(n.r(i),n.d(i,{URI:()=>g,Utils:()=>w}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){var t=navigator.userAgent;e=t.indexOf("Windows")>=0}var o,r,s=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=/^\w[\w\d+.-]*$/,c=/^\//,u=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!a.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.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(u.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 ("//")')}var d="",h="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function t(e,t,n,o,i,r){void 0===r&&(r=!1),"object"==typeof e?(this.scheme=e.scheme||d,this.authority=e.authority||d,this.path=e.path||d,this.query=e.query||d,this.fragment=e.fragment||d):(this.scheme=function(e,t){return e||t?e:"file"}(e,r),this.authority=t||d,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||d),this.query=o||d,this.fragment=i||d,l(this,r))}return t.isUri=function(e){return e instanceof t||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(t.prototype,"fsPath",{get:function(){return R(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,o=e.path,i=e.query,r=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=d),void 0===n?n=this.authority:null===n&&(n=d),void 0===o?o=this.path:null===o&&(o=d),void 0===i?i=this.query:null===i&&(i=d),void 0===r?r=this.fragment:null===r&&(r=d),t===this.scheme&&n===this.authority&&o===this.path&&i===this.query&&r===this.fragment?this:new m(t,n,o,i,r)},t.parse=function(e,t){void 0===t&&(t=!1);var n=f.exec(e);return n?new m(n[2]||d,C(n[4]||d),C(n[5]||d),C(n[7]||d),C(n[9]||d),t):new m(d,d,d,d,d)},t.file=function(t){var n=d;if(e&&(t=t.replace(/\\/g,h)),t[0]===h&&t[1]===h){var o=t.indexOf(h,2);-1===o?(n=t.substring(2),t=h):(n=t.substring(2,o),t=t.substring(o)||h)}return new m("file",n,t,d,d)},t.from=function(e){var t=new m(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t},t.prototype.toString=function(e){return void 0===e&&(e=!1),D(this,e)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var n=new m(e);return n._formatted=e.external,n._fsPath=e._sep===p?e.fsPath:null,n}return e},t}(),p=e?1:void 0,m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return s(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=R(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?D(this,!0):(this._formatted||(this._formatted=D(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),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},t}(g),y=((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 v(e,t,n){for(var o=void 0,i=-1,r=0;r=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==i&&(o+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==o&&(o+=e.charAt(r));else{void 0===o&&(o=e.substr(0,r));var a=y[s];void 0!==a?(-1!==i&&(o+=encodeURIComponent(e.substring(i,r)),i=-1),o+=a):-1===i&&(i=r)}}return-1!==i&&(o+=encodeURIComponent(e.substring(i))),void 0!==o?o:e}function b(e){for(var t=void 0,n=0;n1&&"file"===t.scheme?"//".concat(t.authority).concat(t.path):47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(o=o.replace(/\//g,"\\")),o}function D(e,t){var n=t?b:v,o="",i=e.scheme,r=e.authority,s=e.path,a=e.query,c=e.fragment;if(i&&(o+=i,o+=":"),(r||"file"===i)&&(o+=h,o+=h),r){var u=r.indexOf("@");if(-1!==u){var l=r.substr(0,u);r=r.substr(u+1),-1===(u=l.lastIndexOf(":"))?o+=n(l,!1,!1):(o+=n(l.substr(0,u),!1,!1),o+=":",o+=n(l.substr(u+1),!1,!0)),o+="@"}-1===(u=(r=r.toLowerCase()).lastIndexOf(":"))?o+=n(r,!1,!0):(o+=n(r.substr(0,u),!1,!0),o+=r.substr(u))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(d=s.charCodeAt(1))>=65&&d<=90&&(s="/".concat(String.fromCharCode(d+32),":").concat(s.substr(3)));else if(s.length>=2&&58===s.charCodeAt(1)){var d;(d=s.charCodeAt(0))>=65&&d<=90&&(s="".concat(String.fromCharCode(d+32),":").concat(s.substr(2)))}o+=n(s,!0,!1)}return a&&(o+="?",o+=n(a,!1,!1)),c&&(o+="#",o+=t?c:v(c,!1,!1)),o}function S(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+S(e.substr(3)):e}}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(_)?e.replace(_,(function(e){return S(e)})):e}var w,T=n(470),k=function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i{e.exports=require("child_process")},6113:e=>{e.exports=require("crypto")},7147:e=>{e.exports=require("fs")},1808:e=>{e.exports=require("net")},2037:e=>{e.exports=require("os")},1017:e=>{e.exports=require("path")},7310:e=>{e.exports=require("url")},3837:e=>{e.exports=require("util")}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{var e=o;Object.defineProperty(e,"__esModule",{value:!0});const t=n(1017),i=n(2037),r=n(8212),s=n(6813),a=n(7373),c=n(2116),u=n(7237),l=n(7567),d=n(9675),h=n(5232),f=n(2388),g=(0,r.createConnection)(r.ProposedFeatures.all,{cancelUndispatched:e=>{if(r.Message.isRequest(e)&&"textDocument/codeAction"===e.method)return{jsonrpc:e.jsonrpc,id:e.id,result:null}}});let p;const m=new r.TextDocuments(s.TextDocument),y=new r.NotebookDocuments(m),v=process.exit;function b(e){if(!e)return;const n=(0,d.getUri)(e);if("file"===n.scheme)return(0,d.getFileSystemPath)(n);const o=y.findNotebookDocumentForCell(n.toString());if(void 0!==o&&"file"===a.URI.parse(o.uri).scheme){const e=(0,d.getFileSystemPath)(n);if(void 0!==e){const o=m.get(n.toString());if(void 0!==o){const n=f.default.getExtension(o.languageId);if(void 0!==n){const o=t.extname(e);if(0===o.length&&"."===e[0])return`${e}.${n}`;if(o.length>0&&o!==n)return`${e.substring(0,e.length-o.length)}.${n}`}}}}}var R,D,S;process.exit=e=>{const t=new Error("stack");g.sendNotification(c.ExitCalled.type,[e||0,t.stack]),setTimeout((()=>{v(e)}),1e3)},process.on("uncaughtException",(e=>{let t;if(e&&("string"==typeof e.stack?t=e.stack:"string"==typeof e.message?t=e.message:"string"==typeof e&&(t=e),void 0===t||0===t.length))try{t=JSON.stringify(e,void 0,4)}catch(e){}console.error("Uncaught exception received."),t&&console.error(t)})),l.ESLint.initialize(g,m,b,(function(e){const t=require;try{return t(e)}catch(e){e.stack&&g.console.error(e.stack.toString())}})),l.SaveRuleConfigs.inferFilePath=b,function(e){e.is=function(e){const t=e;return t&&void 0!==t.token&&void 0!==t.resolve&&void 0!==t.reject}}(R||(R={})),function(e){e.is=function(e){return e&&"function"==typeof e.then}}(D||(D={})),function(e){e.type=new r.NotificationType("eslint/validate")}(S||(S={}));const _=new class{constructor(e){this.connection=e,this.queue=[],this.requestHandlers=new Map,this.notificationHandlers=new Map}registerRequest(e,t,n){this.connection.onRequest(e,((t,o)=>new Promise(((i,r)=>{this.queue.push({method:e.method,params:t,documentVersion:n?n(t):void 0,resolve:i,reject:r,token:o}),this.trigger()})))),this.requestHandlers.set(e.method,{handler:t,versionProvider:n})}registerNotification(e,t,n){g.onNotification(e,(t=>{this.queue.push({method:e.method,params:t,documentVersion:n?n(t):void 0}),this.trigger()})),this.notificationHandlers.set(e.method,{handler:t,versionProvider:n})}addNotificationMessage(e,t,n){this.queue.push({method:e.method,params:t,documentVersion:n}),this.trigger()}onNotification(e,t,n){this.notificationHandlers.set(e.method,{handler:t,versionProvider:n})}trigger(){this.timer||0===this.queue.length||(this.timer=setImmediate((()=>{this.timer=void 0,this.processQueue(),this.trigger()})))}processQueue(){const e=this.queue.shift();if(e)if(R.is(e)){const t=e;if(t.token.isCancellationRequested)return void t.reject(new r.ResponseError(r.LSPErrorCodes.RequestCancelled,"Request got cancelled"));const n=this.requestHandlers.get(t.method);if(void 0===n)throw new Error("No handler registered");if(n.versionProvider&&void 0!==t.documentVersion&&t.documentVersion!==n.versionProvider(t.params))return void t.reject(new r.ResponseError(r.LSPErrorCodes.RequestCancelled,"Request got cancelled"));const o=n.handler(t.params,t.token);D.is(o)?o.then((e=>{t.resolve(e)}),(e=>{t.reject(e)})):t.resolve(o)}else{const t=e,n=this.notificationHandlers.get(t.method);if(void 0===n)throw new Error("No handler registered");if(n.versionProvider&&void 0!==t.documentVersion&&t.documentVersion!==n.versionProvider(t.params))return;n.handler(t.params)}}}(g);function C(){l.ESLint.clearSettings(),l.RuleSeverities.clear(),l.SaveRuleConfigs.clear(),l.ESLint.clearFormatters();for(const e of m.all())_.addNotificationMessage(S.type,e,e.version)}var w,T;_.onNotification(S.type,(e=>{!async function(e,t=!0){if(!m.get(e.uri))return;const n=await l.ESLint.resolveSettings(e);if(n.validate===u.Validate.on&&l.TextDocumentSettings.hasLibrary(n))try{const o=Date.now(),i=await l.ESLint.validate(e,n);t&&g.sendDiagnostics({uri:e.uri,diagnostics:i});const r=Date.now()-o;g.sendNotification(c.StatusNotification.type,{uri:e.uri,state:c.Status.ok,validationTime:r})}catch(t){if(g.sendDiagnostics({uri:e.uri,diagnostics:[]}),n.silent)g.console.info(l.ESLint.ErrorHandlers.getMessage(t,e)),g.sendNotification(c.StatusNotification.type,{uri:e.uri,state:c.Status.ok});else{let o;for(const i of l.ESLint.ErrorHandlers.single)if(o=i(t,e,n.library),o)break;o=o||c.Status.error,g.sendNotification(c.StatusNotification.type,{uri:e.uri,state:o})}}}(e,!0)}),(e=>e.version)),m.onDidOpen((async e=>{const t=e.document,n=await l.ESLint.resolveSettings(t);n.validate===u.Validate.on&&l.TextDocumentSettings.hasLibrary(n)&&"onSave"===n.run&&_.addNotificationMessage(S.type,t,t.version)})),m.onDidChangeContent((async e=>{const t=e.document,n=t.uri;l.CodeActions.remove(n);const o=await l.ESLint.resolveSettings(t);o.validate===u.Validate.on&&"onType"===o.run&&_.addNotificationMessage(S.type,t,t.version)})),m.onDidSave((async e=>{const t=e.document,n=await l.ESLint.resolveSettings(t);n.validate===u.Validate.on&&"onSave"===n.run&&_.addNotificationMessage(S.type,t,t.version)})),m.onDidClose((async e=>{const t=e.document,n=await l.ESLint.resolveSettings(t),o=t.uri;l.ESLint.removeSettings(o),l.SaveRuleConfigs.remove(o),l.CodeActions.remove(o),l.ESLint.unregisterAsFormatter(t),n.validate===u.Validate.on&&g.sendDiagnostics({uri:o,diagnostics:[]})})),function(e){e.applySingleFix="eslint.applySingleFix",e.applySuggestion="eslint.applySuggestion",e.applySameFixes="eslint.applySameFixes",e.applyAllFixes="eslint.applyAllFixes",e.applyDisableLine="eslint.applyDisableLine",e.applyDisableFile="eslint.applyDisableFile",e.openRuleDoc="eslint.openRuleDoc"}(w||(w={})),g.onInitialize(((e,t,n)=>{n.begin("Initializing ESLint Server");const o=r.TextDocumentSyncKind.Incremental;p=e.capabilities,n.done();const i={textDocumentSync:{openClose:!0,change:o,willSaveWaitUntil:!1,save:{includeText:!1}},workspace:{workspaceFolders:{supported:!0}},executeCommandProvider:{commands:[w.applySingleFix,w.applySuggestion,w.applySameFixes,w.applyAllFixes,w.applyDisableLine,w.applyDisableFile,w.openRuleDoc]}};return void 0!==p.textDocument?.codeAction?.codeActionLiteralSupport?.codeActionKind.valueSet&&(i.codeActionProvider={codeActionKinds:[r.CodeActionKind.QuickFix,`${r.CodeActionKind.SourceFixAll}.eslint`]}),{capabilities:i}})),g.onInitialized((()=>{!0===p.workspace?.didChangeConfiguration?.dynamicRegistration&&g.client.register(r.DidChangeConfigurationNotification.type,void 0),g.client.register(r.DidChangeWorkspaceFoldersNotification.type,void 0)})),_.registerNotification(r.DidChangeConfigurationNotification.type,(e=>{C()})),_.registerNotification(r.DidChangeWorkspaceFoldersNotification.type,(e=>{C()})),_.registerNotification(r.DidChangeWatchedFilesNotification.type,(async e=>{l.RuleMetaData.clear(),l.ESLint.ErrorHandlers.clearNoConfigReported(),l.ESLint.ErrorHandlers.clearMissingModuleReported(),l.ESLint.clearSettings(),l.RuleSeverities.clear(),l.SaveRuleConfigs.clear(),await Promise.all(e.changes.map((async e=>{const n=b(e.uri);if(void 0===n||0===n.length||(0,d.isUNC)(n))return;const o=t.dirname(n);if(o){const e=l.ESLint.ErrorHandlers.getConfigErrorReported(n);if(void 0!==e){const i=l.ESLint.newClass(e,{},!1);try{await i.lintText("",{filePath:t.join(o,"___test___.js")}),l.ESLint.ErrorHandlers.removeConfigErrorReported(n)}catch(e){}}}}))),function(e){e.forEach((e=>{_.addNotificationMessage(S.type,e,e.version)}))}(m.all())}));class k{constructor(){this._actions=new Map}get(e){let t=this._actions.get(e);return void 0===t&&(t={fixes:[],suggestions:[]},this._actions.set(e,t)),t}get fixAll(){return void 0===this._fixAll&&(this._fixAll=[]),this._fixAll}all(){const e=[];for(const t of this._actions.values())e.push(...t.fixes),e.push(...t.suggestions),t.disable&&e.push(t.disable),t.fixAll&&e.push(t.fixAll),t.disableFile&&e.push(t.disableFile),t.showDocumentation&&e.push(t.showDocumentation);return void 0!==this._fixAll&&e.push(...this._fixAll),e}get length(){let e=0;for(const t of this._actions.values())e+=t.fixes.length;return e}}!function(e){e.create=function(e,t,n){return{uri:e.uri,version:e.version,ruleId:t,sequence:n}},e.hasRuleId=function(e){return void 0!==e.ruleId}}(T||(T={}));const P=new class{constructor(){this.values=new Map,this.uri=void 0,this.version=void 0}clear(e){void 0===e?(this.uri=void 0,this.version=void 0):(this.uri=e.uri,this.version=e.version),this.values.clear()}isUsable(e,t){return this.uri===e&&this.version===t}set(e,t){this.values.set(e,t)}get(e){return this.values.get(e)}},x=`${r.CodeActionKind.SourceFixAll}.eslint`;var q;async function E(e,t){const n=e.uri,o=m.get(n);if(void 0===o||e.version!==o.version)return;const i=await l.ESLint.resolveSettings(o);if(i.validate!==u.Validate.on||!l.TextDocumentSettings.hasLibrary(i)||t===q.format&&!i.format)return[];const r=b(o),a=l.CodeActions.get(n),c=o.getText();let d=Date.now();if(t===q.onSave&&i.codeActionOnSave.mode===u.CodeActionsOnSaveMode.problems){const e=void 0!==a&&a.size>0?new l.Fixes(a).getApplicable().map((e=>l.FixableProblem.createTextEdit(o,e))):[];return g.tracer.log(`Computing all fixes took: ${Date.now()-d} ms.`),e}{const e=void 0!==r&&t===q.onSave?await l.SaveRuleConfigs.get(n,i):void 0,u=e?.offRules,f=e?.onRules;let p;if(void 0!==u){p={rules:Object.create(null)};for(const e of u)p.rules[e]="off"}return l.ESLint.withClass((async e=>{const t=[];let n;if(void 0!==a&&a.size>0)if(void 0!==u){const e=new Map;for(const[t,n]of a)f?.has(n.ruleId)&&e.set(t,n);n=e.size>0?new l.Fixes(e).getApplicable().map((e=>l.FixableProblem.createTextEdit(o,e))):void 0}else n=new l.Fixes(a).getApplicable().map((e=>l.FixableProblem.createTextEdit(o,e)));const i=void 0!==n?s.TextDocument.applyEdits(o,n):c,p=await e.lintText(i,{filePath:r});if(g.tracer.log(`Computing all fixes took: ${Date.now()-d} ms.`),Array.isArray(p)&&1===p.length&&void 0!==p[0].output){const e=p[0].output;d=Date.now();const n=(0,h.stringDiff)(c,e,!1);g.tracer.log(`Computing minimal edits took: ${Date.now()-d} ms.`);for(const i of n)t.push({range:{start:o.positionAt(i.originalStart),end:o.positionAt(i.originalStart+i.originalLength)},newText:e.substr(i.modifiedStart,i.modifiedLength)})}else void 0!==n&&t.push(...n);return t}),i,void 0!==p?{fix:!0,overrideConfig:p}:{fix:!0})}}_.registerRequest(r.CodeActionRequest.type,(async e=>{const t=new k,n=e.textDocument.uri,o=m.get(n);if(void 0===o)return P.clear(o),t.all();function s(e,t,n,o,i){const s=r.Command.create(e,n,o),a=r.CodeAction.create(e,s,t);return void 0!==i&&(a.diagnostics=[i]),a}function a(e,t){let n=e.indexOf("--");if(n<0){if("string"==typeof t)return e.length;for(n=e.indexOf(t[1]);n>0&&" "===e[n-1];)n--}else for(;n>1&&" "===e[n-1];)n--;return n}function c(e,t,n){const o=f.default.getLineComment(e.languageId),s=f.default.getBlockComment(e.languageId);if(t.line-1>0){const n=e.getText(r.Range.create(r.Position.create(t.line-2,0),r.Position.create(t.line-2,r.uinteger.MAX_VALUE)));if(new RegExp(`${o} eslint-disable-next-line`).test(n)){const e=a(n,o);return r.TextEdit.insert(r.Position.create(t.line-2,e),`, ${t.ruleId}`)}if(new RegExp(`${s[0]} eslint-disable-next-line`).test(n)){const e=a(n,s);return r.TextEdit.insert(r.Position.create(t.line-2,e),`, ${t.ruleId}`)}}let c;return c="block"===p.codeAction.disableRuleComment.commentStyle?`${n}${s[0]} eslint-disable-next-line ${t.ruleId} ${s[1]}${i.EOL}`:`${n}${o} eslint-disable-next-line ${t.ruleId}${i.EOL}`,r.TextEdit.insert(r.Position.create(t.line-1,0),c)}function d(e,t){const n=f.default.getLineComment(e.languageId),o=f.default.getBlockComment(e.languageId),i=e.getText(r.Range.create(r.Position.create(t.line-1,0),r.Position.create(t.line-1,r.uinteger.MAX_VALUE)));let s,c;const u=new RegExp(`${n} eslint-disable-line`).test(i),l=new RegExp(`${o[0]} eslint-disable-line`).test(i);return u?(s=`, ${t.ruleId}`,c=a(i,n)):l?(s=`, ${t.ruleId}`,c=a(i,o)):(s="line"===p.codeAction.disableRuleComment.commentStyle?` ${n} eslint-disable-line ${t.ruleId}`:` ${o[0]} eslint-disable-line ${t.ruleId} ${o[1]}`,c=r.uinteger.MAX_VALUE),r.TextEdit.insert(r.Position.create(t.line-1,c),s)}function h(e,t){const n="#!"===e.getText(r.Range.create(r.Position.create(0,0),r.Position.create(0,2)))?1:0,o=f.default.getBlockComment(e.languageId);return r.TextEdit.insert(r.Position.create(n,0),`${o[0]} eslint-disable ${t.ruleId} ${o[1]}${i.EOL}`)}function g(e){const t=e.length;if(0!==t)return e[t-1]}const p=await l.ESLint.resolveSettings(o);if(p.validate!==u.Validate.on||!l.TextDocumentSettings.hasLibrary(p))return t.all();const y=l.CodeActions.get(n);if(void 0===y&&"onType"===p.run)return t.all();const v=void 0!==e.context.only&&e.context.only.length>0?e.context.only[0]:void 0,b=v===r.CodeActionKind.Source,R=v===x||v===r.CodeActionKind.SourceFixAll;if(R||b){if(R){const e={uri:o.uri,version:o.version},n=await E(e,q.onSave);void 0!==n&&t.fixAll.push(r.CodeAction.create("Fix all fixable ESLint issues",{documentChanges:[r.TextDocumentEdit.create(e,n)]},x))}else b&&t.fixAll.push(s("Fix all fixable ESLint issues",r.CodeActionKind.Source,w.applyAllFixes,T.create(o)));return t.all()}if(void 0===y)return t.all();const D=new l.Fixes(y);if(D.isEmpty())return t.all();let S=-1;const _=[],C=v??r.CodeActionKind.QuickFix;for(const i of D.getScoped(e.context.diagnostics)){S=i.documentVersion;const e=i.ruleId;if(_.push(e),l.Problem.isFixable(i)){const a=new r.WorkspaceChange;a.getTextEditChange({uri:n,version:S}).add(l.FixableProblem.createTextEdit(o,i)),P.set(`${w.applySingleFix}:${e}`,a);const c=s(i.label,C,w.applySingleFix,T.create(o,e),i.diagnostic);c.isPreferred=!0,t.get(e).fixes.push(c)}if(l.Problem.hasSuggestions(i)&&i.suggestions.forEach(((a,c)=>{const u=new r.WorkspaceChange;u.getTextEditChange({uri:n,version:S}).add(l.SuggestionsProblem.createTextEdit(o,a)),P.set(`${w.applySuggestion}:${e}:${c}`,u);const d=s(`${a.desc} (${i.ruleId})`,r.CodeActionKind.QuickFix,w.applySuggestion,T.create(o,e,c),i.diagnostic);t.get(e).suggestions.push(d)})),p.codeAction.disableRuleComment.enable&&e!==l.RuleMetaData.unusedDisableDirectiveId){let a=new r.WorkspaceChange;if("sameLine"===p.codeAction.disableRuleComment.location)a.getTextEditChange({uri:n,version:S}).add(d(o,i));else{const e=o.getText(r.Range.create(r.Position.create(i.line-1,0),r.Position.create(i.line-1,r.uinteger.MAX_VALUE))),t=/^([ \t]*)/.exec(e),s=null!==t&&t.length>0?t[1]:"";a.getTextEditChange({uri:n,version:S}).add(c(o,i,s))}P.set(`${w.applyDisableLine}:${e}`,a),t.get(e).disable=s(`Disable ${e} for this line`,C,w.applyDisableLine,T.create(o,e)),void 0===t.get(e).disableFile&&(a=new r.WorkspaceChange,a.getTextEditChange({uri:n,version:S}).add(h(o,i)),P.set(`${w.applyDisableFile}:${e}`,a),t.get(e).disableFile=s(`Disable ${e} for the entire file`,C,w.applyDisableFile,T.create(o,e)))}p.codeAction.showDocumentation.enable&&void 0===t.get(e).showDocumentation&&l.RuleMetaData.hasRuleId(e)&&(t.get(e).showDocumentation=s(`Show documentation for ${e}`,C,w.openRuleDoc,T.create(o,e)))}if(t.length>0){const e=new Map(_.map((e=>[e,[]])));for(const t of D.getAllSorted())if(-1===S&&(S=t.documentVersion),e.has(t.ruleId)){const n=e.get(t.ruleId);l.Fixes.overlaps(g(n),t)||n.push(t)}e.forEach(((e,i)=>{if(e.length>1){const a=new r.WorkspaceChange,c=a.getTextEditChange({uri:n,version:S});e.map((e=>l.FixableProblem.createTextEdit(o,e))).forEach((e=>c.add(e))),P.set(w.applySameFixes,a),t.get(i).fixAll=s(`Fix all ${i} problems`,C,w.applySameFixes,T.create(o))}})),t.fixAll.push(s("Fix all auto-fixable problems",C,w.applyAllFixes,T.create(o)))}return t.all()}),(e=>{const t=m.get(e.textDocument.uri);return void 0!==t?t.version:void 0})),function(e){e.onSave="onsave",e.format="format",e.command="command"}(q||(q={})),_.registerRequest(r.ExecuteCommandRequest.type,(async e=>{let t;const n=e.arguments[0];if(e.command===w.applyAllFixes){const e=await E(n,q.command);if(void 0!==e){t=new r.WorkspaceChange;const o=t.getTextEditChange(n);e.forEach((e=>o.add(e)))}}else if(-1!==[w.applySingleFix,w.applyDisableLine,w.applyDisableFile].indexOf(e.command))t=P.get(`${e.command}:${n.ruleId}`);else if(-1!==[w.applySuggestion].indexOf(e.command))t=P.get(`${e.command}:${n.ruleId}:${n.sequence}`);else if(e.command===w.openRuleDoc&&T.hasRuleId(n)){const e=l.RuleMetaData.getUrl(n.ruleId);e&&g.sendRequest(c.OpenESLintDocRequest.type,{url:e})}else t=P.get(e.command);return void 0===t?null:g.workspace.applyEdit(t.edit).then((t=>(t.applied||g.console.error(`Failed to apply command: ${e.command}`),null)),(()=>(g.console.error(`Failed to apply command: ${e.command}`),null)))}),(e=>{const t=e.arguments[0];return P.isUsable(t.uri,t.version)?t.version:void 0})),_.registerRequest(r.DocumentFormattingRequest.type,(e=>{const t=m.get(e.textDocument.uri);return void 0===t?[]:E({uri:t.uri,version:t.version},q.format)}),(e=>{const t=m.get(e.textDocument.uri);return void 0!==t?t.version:void 0})),m.listen(g),y.listen(g),g.listen(),g.console.info(`ESLint server running in node ${process.version}`)})();var i=exports;for(var r in o)i[r]=o[r];o.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})(); +//# sourceMappingURL=eslintServer.js.map diff --git a/language-server/package.json b/language-server/package.json index 94b6274..4aea084 100644 --- a/language-server/package.json +++ b/language-server/package.json @@ -1,6 +1,6 @@ { "name": "eslint-server", - "version": "2.2.5", + "version": "2.3.3", "private": true, "author": "Microsoft Corporation", "license": "MIT", @@ -15,9 +15,9 @@ "node": "*" }, "dependencies": { - "vscode-languageserver": "8.0.2-next.5", - "vscode-languageserver-textdocument": "1.0.4", - "vscode-uri": "^3.0.3" + "vscode-languageserver": "8.1.0", + "vscode-languageserver-textdocument": "1.0.9", + "vscode-uri": "^3.0.7" }, "scripts": { "webpack": "npm run clean && webpack --mode production --config ./webpack.config.js", diff --git a/language-server/update-info.log b/language-server/update-info.log index ab63eb2..f0ca5bb 100644 --- a/language-server/update-info.log +++ b/language-server/update-info.log @@ -1,2 +1,2 @@ -Archive: src-release-2.2.6.zip -705f5f5d86aab57b16c36e31f229549883d6a37f +Archive: src-main.zip +747efb780e024eabc48b67ca68a2f8a0c594b753 diff --git a/sublime-package.json b/sublime-package.json index ccbd4cd..d86b0ea 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -27,6 +27,18 @@ "settings": { "additionalProperties": false, "properties": { + "problems.shortenToSingleLine": { + "type": "boolean", + "default": false, + "description": "Shortens the text spans of underlined problems to their first related line.", + "scope": "resource" + }, + "experimental.useFlatConfig": { + "scope": "resource", + "type": "boolean", + "default": false, + "description": "Enables support for experimental Flat Config (aka `eslint.config.js`, supported by ESLint version 8.21 or later)." + }, "codeActionOnSave.enable": { "type": "boolean", "default": true, @@ -41,7 +53,7 @@ ], "enumDescriptions": [ "Fixes all possible problems in the file. This option might take some time.", - "Only fixes reported problems that have non overlapping textual edits. This options runs a lot faster." + "Fixes only reported problems that have non-overlapping textual edits. This option runs a lot faster." ], "markdownDescription": "Specifies the code action mode. Possible values are `all` and `problems`." }, @@ -86,6 +98,12 @@ "default": false, "markdownDescription": "Whether to use the ESLint class API even if the CLIEngine API is present. The setting is only honored when using using ESLint version 7.x." }, + "ignoreUntitled": { + "scope": "resource", + "type": "boolean", + "default": false, + "description": "If true, untitled files won't be validated by ESLint." + }, "probe": { "type": "array", "items": { @@ -245,7 +263,8 @@ "type": "object", "default": { "enable": true, - "location": "separateLine" + "location": "separateLine", + "commentStyle": "line" }, "properties": { "enable": { @@ -261,6 +280,15 @@ ], "default": "separateLine", "description": "Configure the disable rule code action to insert the comment on the same line or a new line." + }, + "commentStyle": { + "type": "string", + "enum": [ + "line", + "block" + ], + "default": "line", + "definition": "The comment style to use when disabling a rule on a specific line." } }, "additionalProperties": false,